diff --git a/tgui/packages/tgui/interfaces/Phorochem.jsx b/tgui/packages/tgui/interfaces/Phorochem.jsx index 073319bb3be..d04f0551f10 100644 --- a/tgui/packages/tgui/interfaces/Phorochem.jsx +++ b/tgui/packages/tgui/interfaces/Phorochem.jsx @@ -58,7 +58,8 @@ export const Phorochem = (props) => { good: [0.35, Infinity], average: [0.15, 0.35], bad: [-Infinity, 0.15], - }}> + }} + > {phoron + ' Moles'} diff --git a/tgui/packages/tgui/interfaces/PrecisionEditor.jsx b/tgui/packages/tgui/interfaces/PrecisionEditor.jsx index 9ff78b68771..e31f853840b 100644 --- a/tgui/packages/tgui/interfaces/PrecisionEditor.jsx +++ b/tgui/packages/tgui/interfaces/PrecisionEditor.jsx @@ -1,5 +1,12 @@ import { useBackend } from '../backend'; -import { Button, LabeledList, Section, ColorBox, NoticeBox, Box } from '../components'; +import { + Button, + LabeledList, + Section, + ColorBox, + NoticeBox, + Box, +} from '../components'; import { Window } from '../layouts'; export const PrecisionEditor = (props) => { diff --git a/tgui/public/tgui-panel.bundle.js b/tgui/public/tgui-panel.bundle.js index a88348d656e..be1ebb3d54d 100644 --- a/tgui/public/tgui-panel.bundle.js +++ b/tgui/public/tgui-panel.bundle.js @@ -383,7 +383,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function qo(){return qo=Object.assign||function(c){for(var f=1;f=0)&&(A[m]=c[m]);return A}var ws=function(c){var f=c.className,A=c.children,P=c.onEnter,m=Hi(c,["className","children","onEnter"]),L;return P&&(L=function(_){var Q=_.which||_.keyCode;Q===13&&P(_)}),_jsx(Dimmer,{onKeyDown:L,children:_jsx("div",qo({className:classes(["Modal",f,computeBoxClassName(m)])},computeBoxProps(m),{children:A}))})},hi=t(45280);function Ra(){return Ra=Object.assign||function(c){for(var f=1;f500&&(zt=500);var Pt=rt.offsetY-256*Bt;return Pt<-200&&(Pt=-200),Pt>200&&(Pt=200),rt.offsetX=zt,rt.offsetY=Pt,P.onZoom&&P.onZoom(rt.zoom),rt})},m}var A=f.prototype;return A.render=function(){var m=(0,hi.yy)(this.context).config,L=this.state,_=L.dragging,Q=L.offsetX,ot=L.offsetY,rt=L.zoom,ut=rt===void 0?1:rt,Bt=this.props.children,zt=m.map+"_nanomap_z"+m.mapZLevel+".png",Pt=Yi*ut+"px",Kt={width:Pt,height:Pt,"margin-top":ot+"px","margin-left":Q+"px",overflow:"hidden",position:"relative","background-image":"url("+zt+")","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:_?"move":"auto"};return(0,r.jsxs)(R.kv,{className:"NanoMap__container",children:[(0,r.jsx)(R.kv,{style:Kt,textAlign:"center",onMouseDown:this.handleDragStart,onClick:this.handleOnClick,children:(0,r.jsx)(R.kv,{children:Bt})}),(0,r.jsx)(Xi,{zoom:ut,onZoom:this.handleZoom})]})},f}(i.Component),co=function(c,f){var A=c.x,P=c.y,m=c.zoom,L=m===void 0?1:m,_=c.icon,Q=c.tooltip,ot=c.color,rt=c.onClick,ut=function(Pt){mi(Pt),rt&&rt(Pt)},Bt=A*2*L-L-3,zt=P*2*L-L-3;return(0,r.jsx)("div",{children:(0,r.jsxs)(R.kv,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:zt+"px",left:Bt+"px",onMouseDown:ut,children:[(0,r.jsx)(K,{name:_,color:ot,fontSize:"6px"}),(0,r.jsx)(dn,{content:Q})]})})};yi.Marker=co;var Xi=function(c){var f=(0,hi.yy)(),A=f.act,P=f.config,m=f.data;return(0,r.jsx)(R.kv,{className:"NanoMap__zoomer",children:(0,r.jsxs)(qe,{children:[(0,r.jsx)(qe.Item,{label:"Zoom",children:(0,r.jsx)(Na,{minValue:"1",maxValue:"8",stepPixelSize:"10",format:function(L){return L+"x"},value:c.zoom,onDrag:function(L,_){return c.onZoom(L,_)}})}),(0,r.jsx)(qe.Item,{label:"Z-Level",children:m.map_levels.sort(function(L,_){return Number(L)-Number(_)}).map(function(L){return(0,r.jsx)(Ln,{selected:~~L===~~P.mapZLevel,content:L,onClick:function(){A("setZLevel",{mapZLevel:L})}},L)})})]})})};yi.Zoomer=Xi;/** + */function qo(){return qo=Object.assign||function(c){for(var f=1;f=0)&&(A[m]=c[m]);return A}var ws=function(c){var f=c.className,A=c.children,P=c.onEnter,m=Hi(c,["className","children","onEnter"]),L;return P&&(L=function(_){var Q=_.which||_.keyCode;Q===13&&P(_)}),_jsx(Dimmer,{onKeyDown:L,children:_jsx("div",qo({className:classes(["Modal",f,computeBoxClassName(m)])},computeBoxProps(m),{children:A}))})},hi=t(45280);function Ra(){return Ra=Object.assign||function(c){for(var f=1;f500&&(zt=500);var Pt=rt.offsetY-256*Bt;return Pt<-200&&(Pt=-200),Pt>200&&(Pt=200),rt.offsetX=zt,rt.offsetY=Pt,P.onZoom&&P.onZoom(rt.zoom),rt})},m}var A=f.prototype;return A.render=function(){var m=(0,hi.yy)(this.context).config,L=this.state,_=L.dragging,Q=L.offsetX,ot=L.offsetY,rt=L.zoom,ut=rt===void 0?1:rt,Bt=this.props.children,zt=m.map+"_nanomap_z"+m.mapZLevel+".png",Pt=Yi*ut+"px",Kt={width:Pt,height:Pt,"margin-top":ot+"px","margin-left":Q+"px",overflow:"hidden",position:"relative","background-image":"url("+zt+")","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:_?"move":"auto"};return(0,r.jsxs)(R.kv,{className:"NanoMap__container",children:[(0,r.jsx)(R.kv,{style:Kt,textAlign:"center",onMouseDown:this.handleDragStart,onClick:this.handleOnClick,children:(0,r.jsx)(R.kv,{children:Bt})}),(0,r.jsx)(Xi,{zoom:ut,onZoom:this.handleZoom})]})},f}(i.Component),co=function(c,f){var A=c.x,P=c.y,m=c.zoom,L=m===void 0?1:m,_=c.icon,Q=c.tooltip,ot=c.color,rt=c.onClick,ut=function(Pt){mi(Pt),rt&&rt(Pt)},Bt=A*2*L-L-3,zt=P*2*L-L-3;return(0,r.jsx)("div",{children:(0,r.jsxs)(R.kv,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:zt+"px",left:Bt+"px",onMouseDown:ut,children:[(0,r.jsx)(K,{name:_,color:ot,fontSize:"6px"}),(0,r.jsx)(dn,{content:Q})]})})};yi.Marker=co;var Xi=function(c){var f=(0,hi.yy)(),A=f.act,P=f.config,m=f.data;return(0,r.jsx)(R.kv,{className:"NanoMap__zoomer",children:(0,r.jsxs)(qe,{children:[(0,r.jsx)(qe.Item,{label:"Zoom",children:(0,r.jsx)(Na,{minValue:"1",maxValue:"8",stepPixelSize:"10",format:function(L){return L+"x"},value:c.zoom,onDrag:function(L,_){return c.onZoom(L,_)}})}),(0,r.jsx)(qe.Item,{label:"Z-Level",children:m.map_levels.sort(function(L,_){return Number(L)-Number(_)}).map(function(L){return(0,r.jsx)(Ln,{selected:~~L===~~P.mapZLevel,content:L,onClick:function(){A("setZLevel",{mapZLevel:L})}},L)})})]})})};yi.Zoomer=Xi;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index 13b20a0b657..8c8be507125 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.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(a,i){return i!=null&&typeof Symbol!="undefined"&&i[Symbol.hasInstance]?!!i[Symbol.hasInstance](a):a instanceof i}function s(a){"@swc/helpers - typeof";return a&&typeof Symbol!="undefined"&&a.constructor===Symbol?"symbol":typeof a}var n=t(69344),r=t(96336);function o(a){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+a,E=1;Ei}return!1}function y(a,i,E,D,w,F,X){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=D,this.attributeNamespace=w,this.mustUseProperty=E,this.propertyName=a,this.type=i,this.sanitizeURL=F,this.removeEmptyString=X}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){b[a]=new y(a,0,!1,a,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var i=a[0];b[i]=new y(i,1,!1,a[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(a){b[a]=new y(a,2,!1,a.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){b[a]=new y(a,2,!1,a,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(a){b[a]=new y(a,3,!1,a.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(a){b[a]=new y(a,3,!0,a,null,!1,!1)}),["capture","download"].forEach(function(a){b[a]=new y(a,4,!1,a,null,!1,!1)}),["cols","rows","size","span"].forEach(function(a){b[a]=new y(a,6,!1,a,null,!1,!1)}),["rowSpan","start"].forEach(function(a){b[a]=new y(a,5,!1,a.toLowerCase(),null,!1,!1)});var O=/[\-:]([a-z])/g;function I(a){return a[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(a){var i=a.replace(O,I);b[i]=new y(i,1,!1,a,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var i=a.replace(O,I);b[i]=new y(i,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(a){var i=a.replace(O,I);b[i]=new y(i,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(a){b[a]=new y(a,1,!1,a.toLowerCase(),null,!1,!1)}),b.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(a){b[a]=new y(a,1,!1,a.toLowerCase(),null,!0,!0)});function _(a,i,E,D){var w=b.hasOwnProperty(i)?b[i]:null;(w!==null?w.type!==0:D||!(2ie||w[X]!==F[ie]){var xe="\n"+w[X].replace(" at new "," at ");return a.displayName&&xe.includes("")&&(xe=xe.replace("",a.displayName)),xe}while(1<=X&&0<=ie);break}}}finally{le=!1,Error.prepareStackTrace=E}return(a=a?a.displayName||a.name:"")?re(a):""}function fe(a){switch(a.tag){case 5:return re(a.type);case 16:return re("Lazy");case 13:return re("Suspense");case 19:return re("SuspenseList");case 0:case 2:case 15:return a=se(a.type,!1),a;case 11:return a=se(a.type.render,!1),a;case 1:return a=se(a.type,!0),a;default:return""}}function de(a){if(a==null)return null;if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case R:return"Fragment";case T:return"Portal";case N:return"Profiler";case L:return"StrictMode";case Q:return"Suspense";case H:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case V:return(a.displayName||"Context")+".Consumer";case U:return(a._context.displayName||"Context")+".Provider";case z:var i=a.render;return a=a.displayName,a||(a=i.displayName||i.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case q:return i=a.displayName||null,i!==null?i:de(a.type)||"Memo";case Z:i=a._payload,a=a._init;try{return de(a(i))}catch(E){}}return null}function he(a){var i=a.type;switch(a.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return a=i.render,a=a.displayName||a.name||"",i.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return de(i);case 8:return i===L?"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 i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function me(a){switch(typeof a=="undefined"?"undefined":s(a)){case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function Ie(a){var i=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Pe(a){var i=Ie(a)?"checked":"value",E=Object.getOwnPropertyDescriptor(a.constructor.prototype,i),D=""+a[i];if(!a.hasOwnProperty(i)&&typeof E!="undefined"&&typeof E.get=="function"&&typeof E.set=="function"){var w=E.get,F=E.set;return Object.defineProperty(a,i,{configurable:!0,get:function(){return w.call(this)},set:function(ie){D=""+ie,F.call(this,ie)}}),Object.defineProperty(a,i,{enumerable:E.enumerable}),{getValue:function(){return D},setValue:function(ie){D=""+ie},stopTracking:function(){a._valueTracker=null,delete a[i]}}}}function Me(a){a._valueTracker||(a._valueTracker=Pe(a))}function Be(a){if(!a)return!1;var i=a._valueTracker;if(!i)return!0;var E=i.getValue(),D="";return a&&(D=Ie(a)?a.checked?"true":"false":a.value),a=D,a!==E?(i.setValue(a),!0):!1}function He(a){if(a=a||(typeof document!="undefined"?document:void 0),typeof a=="undefined")return null;try{return a.activeElement||a.body}catch(i){return a.body}}function Ke(a,i){var E=i.checked;return ee({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:E!=null?E:a._wrapperState.initialChecked})}function vt(a,i){var E=i.defaultValue==null?"":i.defaultValue,D=i.checked!=null?i.checked:i.defaultChecked;E=me(i.value!=null?i.value:E),a._wrapperState={initialChecked:D,initialValue:E,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function ct(a,i){i=i.checked,i!=null&&_(a,"checked",i,!1)}function Fe(a,i){ct(a,i);var E=me(i.value),D=i.type;if(E!=null)D==="number"?(E===0&&a.value===""||a.value!=E)&&(a.value=""+E):a.value!==""+E&&(a.value=""+E);else if(D==="submit"||D==="reset"){a.removeAttribute("value");return}i.hasOwnProperty("value")?we(a,i.type,E):i.hasOwnProperty("defaultValue")&&we(a,i.type,me(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(a.defaultChecked=!!i.defaultChecked)}function Xe(a,i,E){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var D=i.type;if(!(D!=="submit"&&D!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+a._wrapperState.initialValue,E||i===a.value||(a.value=i),a.defaultValue=i}E=a.name,E!==""&&(a.name=""),a.defaultChecked=!!a._wrapperState.initialChecked,E!==""&&(a.name=E)}function we(a,i,E){(i!=="number"||He(a.ownerDocument)!==a)&&(E==null?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+E&&(a.defaultValue=""+E))}var Ae=Array.isArray;function Se(a,i,E,D){if(a=a.options,i){i={};for(var w=0;w"+i.valueOf().toString()+"",i=Mt.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;i.firstChild;)a.appendChild(i.firstChild)}});function mt(a,i){if(i){var E=a.firstChild;if(E&&E===a.lastChild&&E.nodeType===3){E.nodeValue=i;return}}a.textContent=i}var Ye={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(Ye).forEach(function(a){Ve.forEach(function(i){i=i+a.charAt(0).toUpperCase()+a.substring(1),Ye[i]=Ye[a]})});function it(a,i,E){return i==null||typeof i=="boolean"||i===""?"":E||typeof i!="number"||i===0||Ye.hasOwnProperty(a)&&Ye[a]?(""+i).trim():i+"px"}function xt(a,i){a=a.style;for(var E in i)if(i.hasOwnProperty(E)){var D=E.indexOf("--")===0,w=it(E,i[E],D);E==="float"&&(E="cssFloat"),D?a.setProperty(E,w):a[E]=w}}var _t=ee({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 Wt(a,i){if(i){if(_t[a]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(o(137,a));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(o(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(o(61))}if(i.style!=null&&typeof i.style!="object")throw Error(o(62))}}function Qt(a,i){if(a.indexOf("-")===-1)return typeof i.is=="string";switch(a){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 Kt=null;function un(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var An=null,Gn=null,Vn=null;function go(a){if(a=Rr(a)){if(typeof An!="function")throw Error(o(280));var i=a.stateNode;i&&(i=Ko(i),An(a.stateNode,a.type,i))}}function po(a){Gn?Vn?Vn.push(a):Vn=[a]:Gn=a}function jo(){if(Gn){var a=Gn,i=Vn;if(Vn=Gn=null,go(a),i)for(a=0;a>>=0,a===0?32:31-($i(a)/Yi|0)|0}var Qn=64,ha=4194304;function Eo(a){switch(a&-a){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 a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return a}}function va(a,i){var E=a.pendingLanes;if(E===0)return 0;var D=0,w=a.suspendedLanes,F=a.pingedLanes,X=E&268435455;if(X!==0){var ie=X&~w;ie!==0?D=Eo(ie):(F&=X,F!==0&&(D=Eo(F)))}else X=E&~w,X!==0?D=Eo(X):F!==0&&(D=Eo(F));if(D===0)return 0;if(i!==0&&i!==D&&!(i&w)&&(w=D&-D,F=i&-i,w>=F||w===16&&(F&4194240)!==0))return i;if(D&4&&(D|=E&16),i=a.entangledLanes,i!==0)for(a=a.entanglements,i&=D;0E;E++)i.push(a);return i}function bo(a,i,E){a.pendingLanes|=i,i!==536870912&&(a.suspendedLanes=0,a.pingedLanes=0),a=a.eventTimes,i=31-On(i),a[i]=E}function nl(a,i){var E=a.pendingLanes&~i;a.pendingLanes=i,a.suspendedLanes=0,a.pingedLanes=0,a.expiredLanes&=i,a.mutableReadLanes&=i,a.entangledLanes&=i,i=a.entanglements;var D=a.eventTimes;for(a=a.expirationTimes;0=To),mi=" ",_a=!1;function ds(a,i){switch(a){case"keyup":return us.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gl(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Pr=!1;function Cc(a,i){switch(a){case"compositionend":return gl(i);case"keypress":return i.which!==32?null:(_a=!0,mi);case"textInput":return a=i.data,a===mi&&_a?null:a;default:return null}}function xi(a,i){if(Pr)return a==="compositionend"||!Ia&&ds(a,i)?(a=tr(),er=Po=Rn=null,Pr=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1=i)return{node:E,offset:i-a};a=D}e:{for(;E;){if(E.nextSibling){E=E.nextSibling;break e}E=E.parentNode}E=void 0}E=hs(E)}}function Da(a,i){return a&&i?a===i?!0:a&&a.nodeType===3?!1:i&&i.nodeType===3?Da(a,i.parentNode):"contains"in a?a.contains(i):a.compareDocumentPosition?!!(a.compareDocumentPosition(i)&16):!1:!1}function Sa(){for(var a=window,i=He();e(i,a.HTMLIFrameElement);){try{var E=typeof i.contentWindow.location.href=="string"}catch(D){E=!1}if(E)a=i.contentWindow;else break;i=He(a.document)}return i}function Ci(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i&&(i==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||i==="textarea"||a.contentEditable==="true")}function El(a){var i=Sa(),E=a.focusedElem,D=a.selectionRange;if(i!==E&&E&&E.ownerDocument&&Da(E.ownerDocument.documentElement,E)){if(D!==null&&Ci(E)){if(i=D.start,a=D.end,a===void 0&&(a=i),"selectionStart"in E)E.selectionStart=i,E.selectionEnd=Math.min(a,E.value.length);else if(a=(i=E.ownerDocument||document)&&i.defaultView||window,a.getSelection){a=a.getSelection();var w=E.textContent.length,F=Math.min(D.start,w);D=D.end===void 0?F:Math.min(D.end,w),!a.extend&&F>D&&(w=D,D=F,F=w),w=Mr(E,F);var X=Mr(E,D);w&&X&&(a.rangeCount!==1||a.anchorNode!==w.node||a.anchorOffset!==w.offset||a.focusNode!==X.node||a.focusOffset!==X.offset)&&(i=i.createRange(),i.setStart(w.node,w.offset),a.removeAllRanges(),F>D?(a.addRange(i),a.extend(X.node,X.offset)):(i.setEnd(X.node,X.offset),a.addRange(i)))}}for(i=[],a=E;a=a.parentNode;)a.nodeType===1&&i.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E=document.documentMode,Dr=null,vs=null,Aa=null,Bo=!1;function bl(a,i,E){var D=E.window===E?E.document:E.nodeType===9?E:E.ownerDocument;Bo||Dr==null||Dr!==He(D)||(D=Dr,"selectionStart"in D&&Ci(D)?D={start:D.selectionStart,end:D.selectionEnd}:(D=(D.ownerDocument&&D.ownerDocument.defaultView||window).getSelection(),D={anchorNode:D.anchorNode,anchorOffset:D.anchorOffset,focusNode:D.focusNode,focusOffset:D.focusOffset}),Aa&&Ro(Aa,D)||(Aa=D,D=wa(vs,"onSelect"),0no||(a.current=Fo[no],Fo[no]=null,no--)}function At(a,i){no++,Fo[no]=a.current,a.current=i}var xn={},Jt=sr(xn),dn=sr(!1),lr=xn;function cr(a,i){var E=a.type.contextTypes;if(!E)return xn;var D=a.stateNode;if(D&&D.__reactInternalMemoizedUnmaskedChildContext===i)return D.__reactInternalMemoizedMaskedChildContext;var w={},F;for(F in E)w[F]=i[F];return D&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=i,a.__reactInternalMemoizedMaskedChildContext=w),w}function on(a){return a=a.childContextTypes,a!=null}function Fa(){Pt(dn),Pt(Jt)}function Ga(a,i,E){if(Jt.current!==xn)throw Error(o(168));At(Jt,i),At(dn,E)}function Cs(a,i,E){var D=a.stateNode;if(i=i.childContextTypes,typeof D.getChildContext!="function")return E;D=D.getChildContext();for(var w in D)if(!(w in i))throw Error(o(108,he(a)||"Unknown",w));return ee({},E,D)}function Go(a){return a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||xn,lr=Jt.current,At(Jt,a),At(dn,dn.current),!0}function Tl(a,i,E){var D=a.stateNode;if(!D)throw Error(o(169));E?(a=Cs(a,i,lr),D.__reactInternalMemoizedMergedChildContext=a,Pt(dn),Pt(Jt),At(Jt,a)):Pt(dn),At(dn,E)}var gn=null,Vo=!1,Va=!1;function Es(a){gn===null?gn=[a]:gn.push(a)}function ki(a){Vo=!0,Es(a)}function ur(){if(!Va&&gn!==null){Va=!0;var a=0,i=It;try{var E=gn;for(It=1;a>=X,w-=X,fr=1<<32-On(i)+w|E<gt?(Xt=ht,ht=null):Xt=ht.sibling;var Ot=Te(pe,ht,ye[gt],Ue);if(Ot===null){ht===null&&(ht=Xt);break}a&&ht&&Ot.alternate===null&&i(pe,ht),ge=F(Ot,ge,gt),ft===null?at=Ot:ft.sibling=Ot,ft=Ot,ht=Xt}if(gt===ye.length)return E(pe,ht),k&&oo(pe,gt),at;if(ht===null){for(;gtgt?(Xt=ht,ht=null):Xt=ht.sibling;var xo=Te(pe,ht,Ot.value,Ue);if(xo===null){ht===null&&(ht=Xt);break}a&&ht&&xo.alternate===null&&i(pe,ht),ge=F(xo,ge,gt),ft===null?at=xo:ft.sibling=xo,ft=xo,ht=Xt}if(Ot.done)return E(pe,ht),k&&oo(pe,gt),at;if(ht===null){for(;!Ot.done;gt++,Ot=ye.next())Ot=Re(pe,Ot.value,Ue),Ot!==null&&(ge=F(Ot,ge,gt),ft===null?at=Ot:ft.sibling=Ot,ft=Ot);return k&&oo(pe,gt),at}for(ht=D(pe,ht);!Ot.done;gt++,Ot=ye.next())Ot=Ze(ht,pe,gt,Ot.value,Ue),Ot!==null&&(a&&Ot.alternate!==null&&ht.delete(Ot.key===null?gt:Ot.key),ge=F(Ot,ge,gt),ft===null?at=Ot:ft.sibling=Ot,ft=Ot);return a&&ht.forEach(function(xd){return i(pe,xd)}),k&&oo(pe,gt),at}function Ft(pe,ge,ye,Ue){if(typeof ye=="object"&&ye!==null&&ye.type===R&&ye.key===null&&(ye=ye.props.children),typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case P:e:{for(var at=ye.key,ft=ge;ft!==null;){if(ft.key===at){if(at=ye.type,at===R){if(ft.tag===7){E(pe,ft.sibling),ge=w(ft,ye.props.children),ge.return=pe,pe=ge;break e}}else if(ft.elementType===at||typeof at=="object"&&at!==null&&at.$$typeof===Z&&Ha(at)===ft.type){E(pe,ft.sibling),ge=w(ft,ye.props),ge.ref=mr(pe,ft,ye),ge.return=pe,pe=ge;break e}E(pe,ft);break}else i(pe,ft);ft=ft.sibling}ye.type===R?(ge=ra(ye.props.children,pe.mode,Ue,ye.key),ge.return=pe,pe=ge):(Ue=Fs(ye.type,ye.key,ye.props,null,pe.mode,Ue),Ue.ref=mr(pe,ge,ye),Ue.return=pe,pe=Ue)}return X(pe);case T:e:{for(ft=ye.key;ge!==null;){if(ge.key===ft)if(ge.tag===4&&ge.stateNode.containerInfo===ye.containerInfo&&ge.stateNode.implementation===ye.implementation){E(pe,ge.sibling),ge=w(ge,ye.children||[]),ge.return=pe,pe=ge;break e}else{E(pe,ge);break}else i(pe,ge);ge=ge.sibling}ge=fc(ye,pe.mode,Ue),ge.return=pe,pe=ge}return X(pe);case Z:return ft=ye._init,Ft(pe,ge,ft(ye._payload),Ue)}if(Ae(ye))return et(pe,ge,ye,Ue);if(Y(ye))return tt(pe,ge,ye,Ue);Nn(pe,ye)}return typeof ye=="string"&&ye!==""||typeof ye=="number"?(ye=""+ye,ge!==null&&ge.tag===6?(E(pe,ge.sibling),ge=w(ge,ye),ge.return=pe,pe=ge):(E(pe,ge),ge=dc(ye,pe.mode,Ue),ge.return=pe,pe=ge),X(pe)):E(pe,ge)}return Ft}var xr=Os(!0),Is=Os(!1),ao={},Un=sr(ao),Yo=sr(ao),io=sr(ao);function gr(a){if(a===ao)throw Error(o(174));return a}function Bi(a,i){switch(At(io,i),At(Yo,a),At(Un,ao),a=i.nodeType,a){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:wt(null,"");break;default:a=a===8?i.parentNode:i,i=a.namespaceURI||null,a=a.tagName,i=wt(i,a)}Pt(Un),At(Un,i)}function so(){Pt(Un),Pt(Yo),Pt(io)}function pr(a){gr(io.current);var i=gr(Un.current),E=wt(i,a.type);i!==E&&(At(Yo,a),At(Un,E))}function lo(a){Yo.current===a&&(Pt(Un),Pt(Yo))}var Lt=sr(0);function Zo(a){for(var i=a;i!==null;){if(i.tag===13){var E=i.memoizedState;if(E!==null&&(E=E.dehydrated,E===null||E.data==="$?"||E.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if(i.flags&128)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break;for(;i.sibling===null;){if(i.return===null||i.return===a)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Xo=[];function Ja(){for(var a=0;aE?E:4,a(!0);var D=$a.transition;$a.transition={};try{a(!1),i()}finally{It=E,$a.transition=D}}function Fc(){return Wn().memoizedState}function Wu(a,i,E){var D=ho(a);if(E={lane:D,action:E,hasEagerState:!1,eagerState:null,next:null},Gc(a))Vc(i,E);else if(E=jt(a,i,E,D),E!==null){var w=hn();Zn(E,a,D,w),zc(E,i,D)}}function Ku(a,i,E){var D=ho(a),w={lane:D,action:E,hasEagerState:!1,eagerState:null,next:null};if(Gc(a))Vc(i,w);else{var F=a.alternate;if(a.lanes===0&&(F===null||F.lanes===0)&&(F=i.lastRenderedReducer,F!==null))try{var X=i.lastRenderedState,ie=F(X,E);if(w.hasEagerState=!0,w.eagerState=ie,rn(ie,X)){var xe=i.interleaved;xe===null?(w.next=w,ut(i)):(w.next=xe.next,xe.next=w),i.interleaved=w;return}}catch(Ce){}finally{}E=jt(a,i,w,D),E!==null&&(w=hn(),Zn(E,a,D,w),zc(E,i,D))}}function Gc(a){var i=a.alternate;return a===Nt||i!==null&&i===Nt}function Vc(a,i){Li=_s=!0;var E=a.pending;E===null?i.next=i:(i.next=E.next,E.next=i),a.pending=i}function zc(a,i,E){if(E&4194240){var D=i.lanes;D&=a.pendingLanes,E|=D,i.lanes=E,ai(a,E)}}var Ds={readContext:ot,useCallback:sn,useContext:sn,useEffect:sn,useImperativeHandle:sn,useInsertionEffect:sn,useLayoutEffect:sn,useMemo:sn,useReducer:sn,useRef:sn,useState:sn,useDebugValue:sn,useDeferredValue:sn,useTransition:sn,useMutableSource:sn,useSyncExternalStore:sn,useId:sn,unstable_isNewReconciler:!1},Fu={readContext:ot,useCallback:function(i,E){return yr().memoizedState=[i,E===void 0?null:E],i},useContext:ot,useEffect:Rc,useImperativeHandle:function(i,E,D){return D=D!=null?D.concat([i]):null,Ps(4194308,4,wc.bind(null,E,i),D)},useLayoutEffect:function(i,E){return Ps(4194308,4,i,E)},useInsertionEffect:function(i,E){return Ps(4,2,i,E)},useMemo:function(i,E){var D=yr();return E=E===void 0?null:E,i=i(),D.memoizedState=[i,E],i},useReducer:function(i,E,D){var w=yr();return E=D!==void 0?D(E):E,w.memoizedState=w.baseState=E,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:E},w.queue=i,i=i.dispatch=Wu.bind(null,Nt,i),[w.memoizedState,i]},useRef:function(i){var E=yr();return i={current:i},E.memoizedState=i},useState:Tc,useDebugValue:Wl,useDeferredValue:function(i){return yr().memoizedState=i},useTransition:function(){var i=Tc(!1),E=i[0];return i=Uu.bind(null,i[1]),yr().memoizedState=i,[E,i]},useMutableSource:function(){},useSyncExternalStore:function(i,E,D){var w=Nt,F=yr();if(k){if(D===void 0)throw Error(o(407));D=D()}else{if(D=E(),Zt===null)throw Error(o(349));jr&30||Pc(w,E,D)}F.memoizedState=D;var X={value:D,getSnapshot:E};return F.queue=X,Rc(Dc.bind(null,w,X,i),[i]),w.flags|=2048,Ui(9,Mc.bind(null,w,X,D,E),void 0,null),D},useId:function(){var i=yr(),E=Zt.identifierPrefix;if(k){var D=hr,w=fr;D=(w&~(1<<32-On(w)-1)).toString(32)+D,E=":"+E+"R"+D,D=wi++,0<\/script>",a=a.removeChild(a.firstChild)):typeof D.is=="string"?a=X.createElement(E,{is:D.is}):(a=X.createElement(E),E==="select"&&(X=a,D.multiple?X.multiple=!0:D.size&&(X.size=D.size))):a=X.createElementNS(a,E),a[Ln]=i,a[Wo]=D,lu(a,i,!1,!1),i.stateNode=a;e:{switch(X=Qt(E,D),E){case"dialog":bt("cancel",a),bt("close",a),w=D;break;case"iframe":case"object":case"embed":bt("load",a),w=D;break;case"video":case"audio":for(w=0;wQa&&(i.flags|=128,D=!0,Wi(F,!1),i.lanes=4194304)}else{if(!D)if(a=Zo(X),a!==null){if(i.flags|=128,D=!0,E=a.updateQueue,E!==null&&(i.updateQueue=E,i.flags|=4),Wi(F,!0),F.tail===null&&F.tailMode==="hidden"&&!X.alternate&&!k)return ln(i),null}else 2*Rt()-F.renderingStartTime>Qa&&E!==1073741824&&(i.flags|=128,D=!0,Wi(F,!1),i.lanes=4194304);F.isBackwards?(X.sibling=i.child,i.child=X):(E=F.last,E!==null?E.sibling=X:i.child=X,F.last=X)}return F.tail!==null?(i=F.tail,F.rendering=i,F.tail=i.sibling,F.renderingStartTime=Rt(),i.sibling=null,E=Lt.current,At(Lt,D?E&1|2:E&1),i):(ln(i),null);case 22:case 23:return lc(),D=i.memoizedState!==null,a!==null&&a.memoizedState!==null!==D&&(i.flags|=8192),D&&i.mode&1?Sn&1073741824&&(ln(i),i.subtreeFlags&6&&(i.flags|=8192)):ln(i),null;case 24:return null;case 25:return null}throw Error(o(156,i.tag))}function Zu(a,i){switch(bs(i),i.tag){case 1:return on(i.type)&&Fa(),a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 3:return so(),Pt(dn),Pt(Jt),Ja(),a=i.flags,a&65536&&!(a&128)?(i.flags=a&-65537|128,i):null;case 5:return lo(i),null;case 13:if(Pt(Lt),a=i.memoizedState,a!==null&&a.dehydrated!==null){if(i.alternate===null)throw Error(o(340));ve()}return a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 19:return Pt(Lt),null;case 4:return so(),null;case 10:return nt(i.type._context),null;case 22:case 23:return lc(),null;case 24:return null;default:return null}}var Ts=!1,cn=!1,Xu=typeof WeakSet=="function"?WeakSet:Set,qe=null;function Za(a,i){var E=a.ref;if(E!==null)if(typeof E=="function")try{E(null)}catch(D){Ut(a,i,D)}else E.current=null}function Zl(a,i,E){try{E()}catch(D){Ut(a,i,D)}}var du=!1;function Qu(a,i){if(Pi=ga,a=Sa(),Ci(a)){if("selectionStart"in a)var E={start:a.selectionStart,end:a.selectionEnd};else e:{E=(E=a.ownerDocument)&&E.defaultView||window;var D=E.getSelection&&E.getSelection();if(D&&D.rangeCount!==0){E=D.anchorNode;var w=D.anchorOffset,F=D.focusNode;D=D.focusOffset;try{E.nodeType,F.nodeType}catch(Ue){E=null;break e}var X=0,ie=-1,xe=-1,Ce=0,be=0,Re=a,Te=null;t:for(;;){for(var Ze;Re!==E||w!==0&&Re.nodeType!==3||(ie=X+w),Re!==F||D!==0&&Re.nodeType!==3||(xe=X+D),Re.nodeType===3&&(X+=Re.nodeValue.length),(Ze=Re.firstChild)!==null;)Te=Re,Re=Ze;for(;;){if(Re===a)break t;if(Te===E&&++Ce===w&&(ie=X),Te===F&&++be===D&&(xe=X),(Ze=Re.nextSibling)!==null)break;Re=Te,Te=Re.parentNode}Re=Ze}E=ie===-1||xe===-1?null:{start:ie,end:xe}}else E=null}E=E||{start:0,end:0}}else E=null;for(Mi={focusedElem:a,selectionRange:E},ga=!1,qe=i;qe!==null;)if(i=qe,a=i.child,(i.subtreeFlags&1028)!==0&&a!==null)a.return=i,qe=a;else for(;qe!==null;){i=qe;try{var et=i.alternate;if(i.flags&1024)switch(i.tag){case 0:case 11:case 15:break;case 1:if(et!==null){var tt=et.memoizedProps,Ft=et.memoizedState,pe=i.stateNode,ge=pe.getSnapshotBeforeUpdate(i.elementType===i.type?tt:je(i.type,tt),Ft);pe.__reactInternalSnapshotBeforeUpdate=ge}break;case 3:var ye=i.stateNode.containerInfo;ye.nodeType===1?ye.textContent="":ye.nodeType===9&&ye.documentElement&&ye.removeChild(ye.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(Ue){Ut(i,i.return,Ue)}if(a=i.sibling,a!==null){a.return=i.return,qe=a;break}qe=i.return}return et=du,du=!1,et}function Ki(a,i,E){var D=i.updateQueue;if(D=D!==null?D.lastEffect:null,D!==null){var w=D=D.next;do{if((w.tag&a)===a){var F=w.destroy;w.destroy=void 0,F!==void 0&&Zl(i,E,F)}w=w.next}while(w!==D)}}function ks(a,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var E=i=i.next;do{if((E.tag&a)===a){var D=E.create;E.destroy=D()}E=E.next}while(E!==i)}}function Xl(a){var i=a.ref;if(i!==null){var E=a.stateNode;switch(a.tag){case 5:a=E;break;default:a=E}typeof i=="function"?i(a):i.current=a}}function fu(a){var i=a.alternate;i!==null&&(a.alternate=null,fu(i)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(i=a.stateNode,i!==null&&(delete i[Ln],delete i[Wo],delete i[Ai],delete i[Ti],delete i[Al])),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function hu(a){return a.tag===5||a.tag===3||a.tag===4}function vu(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||hu(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function Ql(a,i,E){var D=a.tag;if(D===5||D===6)a=a.stateNode,i?E.nodeType===8?E.parentNode.insertBefore(a,i):E.insertBefore(a,i):(E.nodeType===8?(i=E.parentNode,i.insertBefore(a,E)):(i=E,i.appendChild(a)),E=E._reactRootContainer,E!=null||i.onclick!==null||(i.onclick=eo));else if(D!==4&&(a=a.child,a!==null))for(Ql(a,i,E),a=a.sibling;a!==null;)Ql(a,i,E),a=a.sibling}function ql(a,i,E){var D=a.tag;if(D===5||D===6)a=a.stateNode,i?E.insertBefore(a,i):E.appendChild(a);else if(D!==4&&(a=a.child,a!==null))for(ql(a,i,E),a=a.sibling;a!==null;)ql(a,i,E),a=a.sibling}var qt=null,$n=!1;function co(a,i,E){for(E=E.child;E!==null;)mu(a,i,E),E=E.sibling}function mu(a,i,E){if(bn&&typeof bn.onCommitFiberUnmount=="function")try{bn.onCommitFiberUnmount(fa,E)}catch(ie){}switch(E.tag){case 5:cn||Za(E,i);case 6:var D=qt,w=$n;qt=null,co(a,i,E),qt=D,$n=w,qt!==null&&($n?(a=qt,E=E.stateNode,a.nodeType===8?a.parentNode.removeChild(E):a.removeChild(E)):qt.removeChild(E.stateNode));break;case 18:qt!==null&&($n?(a=qt,E=E.stateNode,a.nodeType===8?Uo(a.parentNode,E):a.nodeType===1&&Uo(a,E),_o(a)):Uo(qt,E.stateNode));break;case 4:D=qt,w=$n,qt=E.stateNode.containerInfo,$n=!0,co(a,i,E),qt=D,$n=w;break;case 0:case 11:case 14:case 15:if(!cn&&(D=E.updateQueue,D!==null&&(D=D.lastEffect,D!==null))){w=D=D.next;do{var F=w,X=F.destroy;F=F.tag,X!==void 0&&(F&2||F&4)&&Zl(E,i,X),w=w.next}while(w!==D)}co(a,i,E);break;case 1:if(!cn&&(Za(E,i),D=E.stateNode,typeof D.componentWillUnmount=="function"))try{D.props=E.memoizedProps,D.state=E.memoizedState,D.componentWillUnmount()}catch(ie){Ut(E,i,ie)}co(a,i,E);break;case 21:co(a,i,E);break;case 22:E.mode&1?(cn=(D=cn)||E.memoizedState!==null,co(a,i,E),cn=D):co(a,i,E);break;default:co(a,i,E)}}function xu(a){var i=a.updateQueue;if(i!==null){a.updateQueue=null;var E=a.stateNode;E===null&&(E=a.stateNode=new Xu),i.forEach(function(D){var w=sd.bind(null,a,D);E.has(D)||(E.add(D),D.then(w,w))})}}function Yn(a,i){var E=i.deletions;if(E!==null)for(var D=0;Dw&&(w=X),D&=~F}if(D=w,D=Rt()-D,D=(120>D?120:480>D?480:1080>D?1080:1920>D?1920:3e3>D?3e3:4320>D?4320:1960*ed(D/1960))-D,10a?16:a,fo===null)var D=!1;else{if(a=fo,fo=null,Ns=0,Et&6)throw Error(o(331));var w=Et;for(Et|=4,qe=a.current;qe!==null;){var F=qe,X=F.child;if(qe.flags&16){var ie=F.deletions;if(ie!==null){for(var xe=0;xeRt()-nc?ta(a,0):tc|=E),Cn(a,i)}function Du(a,i){i===0&&(a.mode&1?(i=ha,ha<<=1,!(ha&130023424)&&(ha=4194304)):i=1);var E=hn();a=Ct(a,i),a!==null&&(bo(a,i,E),Cn(a,E))}function id(a){var i=a.memoizedState,E=0;i!==null&&(E=i.retryLane),Du(a,E)}function sd(a,i){var E=0;switch(a.tag){case 13:var D=a.stateNode,w=a.memoizedState;w!==null&&(E=w.retryLane);break;case 19:D=a.stateNode;break;default:throw Error(o(314))}D!==null&&D.delete(i),Du(a,E)}var Su;Su=function(i,E,D){if(i!==null)if(i.memoizedProps!==E.pendingProps||dn.current)jn=!0;else{if(!(i.lanes&D)&&!(E.flags&128))return jn=!1,$u(i,E,D);jn=!!(i.flags&131072)}else jn=!1,k&&E.flags&1048576&&kl(E,Ri,E.index);switch(E.lanes=0,E.tag){case 2:var w=E.type;As(i,E),i=E.pendingProps;var F=cr(E,Jt.current);rt(E,D),F=Bl(null,E,w,i,F,D);var X=Ll();return E.flags|=1,typeof F=="object"&&F!==null&&typeof F.render=="function"&&F.$$typeof===void 0?(E.tag=1,E.memoizedState=null,E.updateQueue=null,on(w)?(X=!0,Go(E)):X=!1,E.memoizedState=F.state!==null&&F.state!==void 0?F.state:null,lt(E),F.updater=vr,E.stateNode=F,F._reactInternals=E,wr(E,w,i,D),E=Vl(null,E,w,!0,X,D)):(E.tag=0,k&&X&&zo(E),fn(null,E,F,D),E=E.child),E;case 16:w=E.elementType;e:{switch(As(i,E),i=E.pendingProps,F=w._init,w=F(w._payload),E.type=w,F=E.tag=cd(w),i=je(w,i),F){case 0:E=Gl(null,E,w,i,D);break e;case 1:E=nu(null,E,w,i,D);break e;case 11:E=Xc(null,E,w,i,D);break e;case 14:E=Qc(null,E,w,je(w.type,i),D);break e}throw Error(o(306,w,""))}return E;case 0:return w=E.type,F=E.pendingProps,F=E.elementType===w?F:je(w,F),Gl(i,E,w,F,D);case 1:return w=E.type,F=E.pendingProps,F=E.elementType===w?F:je(w,F),nu(i,E,w,F,D);case 3:e:{if(ru(E),i===null)throw Error(o(387));w=E.pendingProps,X=E.memoizedState,F=X.element,Tt(i,E),Hn(E,w,null,D);var ie=E.memoizedState;if(w=ie.element,X.isDehydrated)if(X={element:w,isDehydrated:!1,cache:ie.cache,pendingSuspenseBoundaries:ie.pendingSuspenseBoundaries,transitions:ie.transitions},E.updateQueue.baseState=X,E.memoizedState=X,E.flags&256){F=Ya(Error(o(423)),E),E=ou(i,E,w,D,F);break e}else if(w!==F){F=Ya(Error(o(424)),E),E=ou(i,E,w,D,F);break e}else for(S=or(E.stateNode.containerInfo.firstChild),pn=E,k=!0,W=null,D=Is(E,null,w,D),E.child=D;D;)D.flags=D.flags&-3|4096,D=D.sibling;else{if(ve(),w===F){E=Nr(i,E,D);break e}fn(i,E,w,D)}E=E.child}return E;case 5:return pr(E),i===null&&ne(E),w=E.type,F=E.pendingProps,X=i!==null?i.memoizedProps:null,ie=F.children,Ua(w,F)?ie=null:X!==null&&Ua(w,X)&&(E.flags|=32),tu(i,E),fn(i,E,ie,D),E.child;case 6:return i===null&&ne(E),null;case 13:return au(i,E,D);case 4:return Bi(E,E.stateNode.containerInfo),w=E.pendingProps,i===null?E.child=xr(E,null,w,D):fn(i,E,w,D),E.child;case 11:return w=E.type,F=E.pendingProps,F=E.elementType===w?F:je(w,F),Xc(i,E,w,F,D);case 7:return fn(i,E,E.pendingProps,D),E.child;case 8:return fn(i,E,E.pendingProps.children,D),E.child;case 12:return fn(i,E,E.pendingProps.children,D),E.child;case 10:e:{if(w=E.type._context,F=E.pendingProps,X=E.memoizedProps,ie=F.value,At(De,w._currentValue),w._currentValue=ie,X!==null)if(rn(X.value,ie)){if(X.children===F.children&&!dn.current){E=Nr(i,E,D);break e}}else for(X=E.child,X!==null&&(X.return=E);X!==null;){var xe=X.dependencies;if(xe!==null){ie=X.child;for(var Ce=xe.firstContext;Ce!==null;){if(Ce.context===w){if(X.tag===1){Ce=Dt(-1,D&-D),Ce.tag=2;var be=X.updateQueue;if(be!==null){be=be.shared;var Re=be.pending;Re===null?Ce.next=Ce:(Ce.next=Re.next,Re.next=Ce),be.pending=Ce}}X.lanes|=D,Ce=X.alternate,Ce!==null&&(Ce.lanes|=D),ze(X.return,D,E),xe.lanes|=D;break}Ce=Ce.next}}else if(X.tag===10)ie=X.type===E.type?null:X.child;else if(X.tag===18){if(ie=X.return,ie===null)throw Error(o(341));ie.lanes|=D,xe=ie.alternate,xe!==null&&(xe.lanes|=D),ze(ie,D,E),ie=X.sibling}else ie=X.child;if(ie!==null)ie.return=X;else for(ie=X;ie!==null;){if(ie===E){ie=null;break}if(X=ie.sibling,X!==null){X.return=ie.return,ie=X;break}ie=ie.return}X=ie}fn(i,E,F.children,D),E=E.child}return E;case 9:return F=E.type,w=E.pendingProps.children,rt(E,D),F=ot(F),w=w(F),E.flags|=1,fn(i,E,w,D),E.child;case 14:return w=E.type,F=je(w,E.pendingProps),F=je(w.type,F),Qc(i,E,w,F,D);case 15:return qc(i,E,E.type,E.pendingProps,D);case 17:return w=E.type,F=E.pendingProps,F=E.elementType===w?F:je(w,F),As(i,E),E.tag=1,on(w)?(i=!0,Go(E)):i=!1,rt(E,D),Lr(E,w,F),wr(E,w,F,D),Vl(null,E,w,!0,i,D);case 19:return su(i,E,D);case 22:return eu(i,E,D)}throw Error(o(156,E.tag))};function Au(a,i){return oe(a,i)}function ld(a,i,E,D){this.tag=a,this.key=E,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=D,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Fn(a,i,E,D){return new ld(a,i,E,D)}function uc(a){return a=a.prototype,!(!a||!a.isReactComponent)}function cd(a){if(typeof a=="function")return uc(a)?1:0;if(a!=null){if(a=a.$$typeof,a===z)return 11;if(a===q)return 14}return 2}function mo(a,i){var E=a.alternate;return E===null?(E=Fn(a.tag,i,a.key,a.mode),E.elementType=a.elementType,E.type=a.type,E.stateNode=a.stateNode,E.alternate=a,a.alternate=E):(E.pendingProps=i,E.type=a.type,E.flags=0,E.subtreeFlags=0,E.deletions=null),E.flags=a.flags&14680064,E.childLanes=a.childLanes,E.lanes=a.lanes,E.child=a.child,E.memoizedProps=a.memoizedProps,E.memoizedState=a.memoizedState,E.updateQueue=a.updateQueue,i=a.dependencies,E.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},E.sibling=a.sibling,E.index=a.index,E.ref=a.ref,E}function Fs(a,i,E,D,w,F){var X=2;if(D=a,typeof a=="function")uc(a)&&(X=1);else if(typeof a=="string")X=5;else e:switch(a){case R:return ra(E.children,w,F,i);case L:X=8,w|=8;break;case N:return a=Fn(12,E,i,w|2),a.elementType=N,a.lanes=F,a;case Q:return a=Fn(13,E,i,w),a.elementType=Q,a.lanes=F,a;case H:return a=Fn(19,E,i,w),a.elementType=H,a.lanes=F,a;case $:return Gs(E,w,F,i);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case U:X=10;break e;case V:X=9;break e;case z:X=11;break e;case q:X=14;break e;case Z:X=16,D=null;break e}throw Error(o(130,a==null?a:typeof a=="undefined"?"undefined":s(a),""))}return i=Fn(X,E,i,w),i.elementType=a,i.type=D,i.lanes=F,i}function ra(a,i,E,D){return a=Fn(7,a,D,i),a.lanes=E,a}function Gs(a,i,E,D){return a=Fn(22,a,D,i),a.elementType=$,a.lanes=E,a.stateNode={isHidden:!1},a}function dc(a,i,E){return a=Fn(6,a,null,i),a.lanes=E,a}function fc(a,i,E){return i=Fn(4,a.children!==null?a.children:[],a.key,i),i.lanes=E,i.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},i}function ud(a,i,E,D,w){this.tag=i,this.containerInfo=a,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=oi(0),this.expirationTimes=oi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=oi(0),this.identifierPrefix=D,this.onRecoverableError=w,this.mutableSourceEagerHydrationData=null}function hc(a,i,E,D,w,F,X,ie,xe){return a=new ud(a,i,E,ie,xe),i===1?(i=1,F===!0&&(i|=8)):i=0,F=Fn(3,null,null,i),a.current=F,F.stateNode=a,F.memoizedState={element:D,isDehydrated:E,cache:null,transitions:null,pendingSuspenseBoundaries:null},lt(F),a}function dd(a,i,E){var D=3s}return!1}function y(a,s,E,D,w,F,X){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=D,this.attributeNamespace=w,this.mustUseProperty=E,this.propertyName=a,this.type=s,this.sanitizeURL=F,this.removeEmptyString=X}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){b[a]=new y(a,0,!1,a,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var s=a[0];b[s]=new y(s,1,!1,a[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(a){b[a]=new y(a,2,!1,a.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){b[a]=new y(a,2,!1,a,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(a){b[a]=new y(a,3,!1,a.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(a){b[a]=new y(a,3,!0,a,null,!1,!1)}),["capture","download"].forEach(function(a){b[a]=new y(a,4,!1,a,null,!1,!1)}),["cols","rows","size","span"].forEach(function(a){b[a]=new y(a,6,!1,a,null,!1,!1)}),["rowSpan","start"].forEach(function(a){b[a]=new y(a,5,!1,a.toLowerCase(),null,!1,!1)});var O=/[\-:]([a-z])/g;function I(a){return a[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(a){var s=a.replace(O,I);b[s]=new y(s,1,!1,a,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var s=a.replace(O,I);b[s]=new y(s,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(a){var s=a.replace(O,I);b[s]=new y(s,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(a){b[a]=new y(a,1,!1,a.toLowerCase(),null,!1,!1)}),b.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(a){b[a]=new y(a,1,!1,a.toLowerCase(),null,!0,!0)});function _(a,s,E,D){var w=b.hasOwnProperty(s)?b[s]:null;(w!==null?w.type!==0:D||!(2ie||w[X]!==F[ie]){var xe="\n"+w[X].replace(" at new "," at ");return a.displayName&&xe.includes("")&&(xe=xe.replace("",a.displayName)),xe}while(1<=X&&0<=ie);break}}}finally{le=!1,Error.prepareStackTrace=E}return(a=a?a.displayName||a.name:"")?re(a):""}function fe(a){switch(a.tag){case 5:return re(a.type);case 16:return re("Lazy");case 13:return re("Suspense");case 19:return re("SuspenseList");case 0:case 2:case 15:return a=se(a.type,!1),a;case 11:return a=se(a.type.render,!1),a;case 1:return a=se(a.type,!0),a;default:return""}}function de(a){if(a==null)return null;if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case R:return"Fragment";case T:return"Portal";case N:return"Profiler";case L:return"StrictMode";case Q:return"Suspense";case H:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case V:return(a.displayName||"Context")+".Consumer";case U:return(a._context.displayName||"Context")+".Provider";case z:var s=a.render;return a=a.displayName,a||(a=s.displayName||s.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case q:return s=a.displayName||null,s!==null?s:de(a.type)||"Memo";case Z:s=a._payload,a=a._init;try{return de(a(s))}catch(E){}}return null}function he(a){var s=a.type;switch(a.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return a=s.render,a=a.displayName||a.name||"",s.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return de(s);case 8:return s===L?"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 s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function me(a){switch(typeof a=="undefined"?"undefined":i(a)){case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function Ie(a){var s=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function Pe(a){var s=Ie(a)?"checked":"value",E=Object.getOwnPropertyDescriptor(a.constructor.prototype,s),D=""+a[s];if(!a.hasOwnProperty(s)&&typeof E!="undefined"&&typeof E.get=="function"&&typeof E.set=="function"){var w=E.get,F=E.set;return Object.defineProperty(a,s,{configurable:!0,get:function(){return w.call(this)},set:function(ie){D=""+ie,F.call(this,ie)}}),Object.defineProperty(a,s,{enumerable:E.enumerable}),{getValue:function(){return D},setValue:function(ie){D=""+ie},stopTracking:function(){a._valueTracker=null,delete a[s]}}}}function Me(a){a._valueTracker||(a._valueTracker=Pe(a))}function Be(a){if(!a)return!1;var s=a._valueTracker;if(!s)return!0;var E=s.getValue(),D="";return a&&(D=Ie(a)?a.checked?"true":"false":a.value),a=D,a!==E?(s.setValue(a),!0):!1}function He(a){if(a=a||(typeof document!="undefined"?document:void 0),typeof a=="undefined")return null;try{return a.activeElement||a.body}catch(s){return a.body}}function Ke(a,s){var E=s.checked;return ee({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:E!=null?E:a._wrapperState.initialChecked})}function vt(a,s){var E=s.defaultValue==null?"":s.defaultValue,D=s.checked!=null?s.checked:s.defaultChecked;E=me(s.value!=null?s.value:E),a._wrapperState={initialChecked:D,initialValue:E,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function ct(a,s){s=s.checked,s!=null&&_(a,"checked",s,!1)}function Fe(a,s){ct(a,s);var E=me(s.value),D=s.type;if(E!=null)D==="number"?(E===0&&a.value===""||a.value!=E)&&(a.value=""+E):a.value!==""+E&&(a.value=""+E);else if(D==="submit"||D==="reset"){a.removeAttribute("value");return}s.hasOwnProperty("value")?we(a,s.type,E):s.hasOwnProperty("defaultValue")&&we(a,s.type,me(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(a.defaultChecked=!!s.defaultChecked)}function Xe(a,s,E){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var D=s.type;if(!(D!=="submit"&&D!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+a._wrapperState.initialValue,E||s===a.value||(a.value=s),a.defaultValue=s}E=a.name,E!==""&&(a.name=""),a.defaultChecked=!!a._wrapperState.initialChecked,E!==""&&(a.name=E)}function we(a,s,E){(s!=="number"||He(a.ownerDocument)!==a)&&(E==null?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+E&&(a.defaultValue=""+E))}var Ae=Array.isArray;function Se(a,s,E,D){if(a=a.options,s){s={};for(var w=0;w"+s.valueOf().toString()+"",s=Mt.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;s.firstChild;)a.appendChild(s.firstChild)}});function mt(a,s){if(s){var E=a.firstChild;if(E&&E===a.lastChild&&E.nodeType===3){E.nodeValue=s;return}}a.textContent=s}var Ye={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(Ye).forEach(function(a){Ve.forEach(function(s){s=s+a.charAt(0).toUpperCase()+a.substring(1),Ye[s]=Ye[a]})});function it(a,s,E){return s==null||typeof s=="boolean"||s===""?"":E||typeof s!="number"||s===0||Ye.hasOwnProperty(a)&&Ye[a]?(""+s).trim():s+"px"}function xt(a,s){a=a.style;for(var E in s)if(s.hasOwnProperty(E)){var D=E.indexOf("--")===0,w=it(E,s[E],D);E==="float"&&(E="cssFloat"),D?a.setProperty(E,w):a[E]=w}}var _t=ee({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 Wt(a,s){if(s){if(_t[a]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(o(137,a));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(o(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(o(61))}if(s.style!=null&&typeof s.style!="object")throw Error(o(62))}}function Qt(a,s){if(a.indexOf("-")===-1)return typeof s.is=="string";switch(a){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 Kt=null;function un(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var An=null,Gn=null,Vn=null;function go(a){if(a=Rr(a)){if(typeof An!="function")throw Error(o(280));var s=a.stateNode;s&&(s=Ko(s),An(a.stateNode,a.type,s))}}function po(a){Gn?Vn?Vn.push(a):Vn=[a]:Gn=a}function jo(){if(Gn){var a=Gn,s=Vn;if(Vn=Gn=null,go(a),s)for(a=0;a>>=0,a===0?32:31-($i(a)/Yi|0)|0}var Qn=64,ha=4194304;function Eo(a){switch(a&-a){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 a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return a}}function va(a,s){var E=a.pendingLanes;if(E===0)return 0;var D=0,w=a.suspendedLanes,F=a.pingedLanes,X=E&268435455;if(X!==0){var ie=X&~w;ie!==0?D=Eo(ie):(F&=X,F!==0&&(D=Eo(F)))}else X=E&~w,X!==0?D=Eo(X):F!==0&&(D=Eo(F));if(D===0)return 0;if(s!==0&&s!==D&&!(s&w)&&(w=D&-D,F=s&-s,w>=F||w===16&&(F&4194240)!==0))return s;if(D&4&&(D|=E&16),s=a.entangledLanes,s!==0)for(a=a.entanglements,s&=D;0E;E++)s.push(a);return s}function bo(a,s,E){a.pendingLanes|=s,s!==536870912&&(a.suspendedLanes=0,a.pingedLanes=0),a=a.eventTimes,s=31-On(s),a[s]=E}function nl(a,s){var E=a.pendingLanes&~s;a.pendingLanes=s,a.suspendedLanes=0,a.pingedLanes=0,a.expiredLanes&=s,a.mutableReadLanes&=s,a.entangledLanes&=s,s=a.entanglements;var D=a.eventTimes;for(a=a.expirationTimes;0=To),mi=" ",_a=!1;function ds(a,s){switch(a){case"keyup":return us.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gl(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Pr=!1;function Cc(a,s){switch(a){case"compositionend":return gl(s);case"keypress":return s.which!==32?null:(_a=!0,mi);case"textInput":return a=s.data,a===mi&&_a?null:a;default:return null}}function xi(a,s){if(Pr)return a==="compositionend"||!Ia&&ds(a,s)?(a=tr(),er=Po=Rn=null,Pr=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1=s)return{node:E,offset:s-a};a=D}e:{for(;E;){if(E.nextSibling){E=E.nextSibling;break e}E=E.parentNode}E=void 0}E=hs(E)}}function Da(a,s){return a&&s?a===s?!0:a&&a.nodeType===3?!1:s&&s.nodeType===3?Da(a,s.parentNode):"contains"in a?a.contains(s):a.compareDocumentPosition?!!(a.compareDocumentPosition(s)&16):!1:!1}function Sa(){for(var a=window,s=He();e(s,a.HTMLIFrameElement);){try{var E=typeof s.contentWindow.location.href=="string"}catch(D){E=!1}if(E)a=s.contentWindow;else break;s=He(a.document)}return s}function Ci(a){var s=a&&a.nodeName&&a.nodeName.toLowerCase();return s&&(s==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||s==="textarea"||a.contentEditable==="true")}function El(a){var s=Sa(),E=a.focusedElem,D=a.selectionRange;if(s!==E&&E&&E.ownerDocument&&Da(E.ownerDocument.documentElement,E)){if(D!==null&&Ci(E)){if(s=D.start,a=D.end,a===void 0&&(a=s),"selectionStart"in E)E.selectionStart=s,E.selectionEnd=Math.min(a,E.value.length);else if(a=(s=E.ownerDocument||document)&&s.defaultView||window,a.getSelection){a=a.getSelection();var w=E.textContent.length,F=Math.min(D.start,w);D=D.end===void 0?F:Math.min(D.end,w),!a.extend&&F>D&&(w=D,D=F,F=w),w=Mr(E,F);var X=Mr(E,D);w&&X&&(a.rangeCount!==1||a.anchorNode!==w.node||a.anchorOffset!==w.offset||a.focusNode!==X.node||a.focusOffset!==X.offset)&&(s=s.createRange(),s.setStart(w.node,w.offset),a.removeAllRanges(),F>D?(a.addRange(s),a.extend(X.node,X.offset)):(s.setEnd(X.node,X.offset),a.addRange(s)))}}for(s=[],a=E;a=a.parentNode;)a.nodeType===1&&s.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E=document.documentMode,Dr=null,vs=null,Aa=null,Bo=!1;function bl(a,s,E){var D=E.window===E?E.document:E.nodeType===9?E:E.ownerDocument;Bo||Dr==null||Dr!==He(D)||(D=Dr,"selectionStart"in D&&Ci(D)?D={start:D.selectionStart,end:D.selectionEnd}:(D=(D.ownerDocument&&D.ownerDocument.defaultView||window).getSelection(),D={anchorNode:D.anchorNode,anchorOffset:D.anchorOffset,focusNode:D.focusNode,focusOffset:D.focusOffset}),Aa&&Ro(Aa,D)||(Aa=D,D=wa(vs,"onSelect"),0no||(a.current=Fo[no],Fo[no]=null,no--)}function At(a,s){no++,Fo[no]=a.current,a.current=s}var xn={},Jt=sr(xn),dn=sr(!1),lr=xn;function cr(a,s){var E=a.type.contextTypes;if(!E)return xn;var D=a.stateNode;if(D&&D.__reactInternalMemoizedUnmaskedChildContext===s)return D.__reactInternalMemoizedMaskedChildContext;var w={},F;for(F in E)w[F]=s[F];return D&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=s,a.__reactInternalMemoizedMaskedChildContext=w),w}function on(a){return a=a.childContextTypes,a!=null}function Fa(){Pt(dn),Pt(Jt)}function Ga(a,s,E){if(Jt.current!==xn)throw Error(o(168));At(Jt,s),At(dn,E)}function Cs(a,s,E){var D=a.stateNode;if(s=s.childContextTypes,typeof D.getChildContext!="function")return E;D=D.getChildContext();for(var w in D)if(!(w in s))throw Error(o(108,he(a)||"Unknown",w));return ee({},E,D)}function Go(a){return a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||xn,lr=Jt.current,At(Jt,a),At(dn,dn.current),!0}function Tl(a,s,E){var D=a.stateNode;if(!D)throw Error(o(169));E?(a=Cs(a,s,lr),D.__reactInternalMemoizedMergedChildContext=a,Pt(dn),Pt(Jt),At(Jt,a)):Pt(dn),At(dn,E)}var gn=null,Vo=!1,Va=!1;function Es(a){gn===null?gn=[a]:gn.push(a)}function ki(a){Vo=!0,Es(a)}function ur(){if(!Va&&gn!==null){Va=!0;var a=0,s=It;try{var E=gn;for(It=1;a>=X,w-=X,fr=1<<32-On(s)+w|E<gt?(Xt=ht,ht=null):Xt=ht.sibling;var Ot=Te(pe,ht,ye[gt],Ue);if(Ot===null){ht===null&&(ht=Xt);break}a&&ht&&Ot.alternate===null&&s(pe,ht),ge=F(Ot,ge,gt),ft===null?at=Ot:ft.sibling=Ot,ft=Ot,ht=Xt}if(gt===ye.length)return E(pe,ht),k&&oo(pe,gt),at;if(ht===null){for(;gtgt?(Xt=ht,ht=null):Xt=ht.sibling;var xo=Te(pe,ht,Ot.value,Ue);if(xo===null){ht===null&&(ht=Xt);break}a&&ht&&xo.alternate===null&&s(pe,ht),ge=F(xo,ge,gt),ft===null?at=xo:ft.sibling=xo,ft=xo,ht=Xt}if(Ot.done)return E(pe,ht),k&&oo(pe,gt),at;if(ht===null){for(;!Ot.done;gt++,Ot=ye.next())Ot=Re(pe,Ot.value,Ue),Ot!==null&&(ge=F(Ot,ge,gt),ft===null?at=Ot:ft.sibling=Ot,ft=Ot);return k&&oo(pe,gt),at}for(ht=D(pe,ht);!Ot.done;gt++,Ot=ye.next())Ot=Ze(ht,pe,gt,Ot.value,Ue),Ot!==null&&(a&&Ot.alternate!==null&&ht.delete(Ot.key===null?gt:Ot.key),ge=F(Ot,ge,gt),ft===null?at=Ot:ft.sibling=Ot,ft=Ot);return a&&ht.forEach(function(xd){return s(pe,xd)}),k&&oo(pe,gt),at}function Ft(pe,ge,ye,Ue){if(typeof ye=="object"&&ye!==null&&ye.type===R&&ye.key===null&&(ye=ye.props.children),typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case P:e:{for(var at=ye.key,ft=ge;ft!==null;){if(ft.key===at){if(at=ye.type,at===R){if(ft.tag===7){E(pe,ft.sibling),ge=w(ft,ye.props.children),ge.return=pe,pe=ge;break e}}else if(ft.elementType===at||typeof at=="object"&&at!==null&&at.$$typeof===Z&&Ha(at)===ft.type){E(pe,ft.sibling),ge=w(ft,ye.props),ge.ref=mr(pe,ft,ye),ge.return=pe,pe=ge;break e}E(pe,ft);break}else s(pe,ft);ft=ft.sibling}ye.type===R?(ge=ra(ye.props.children,pe.mode,Ue,ye.key),ge.return=pe,pe=ge):(Ue=Fs(ye.type,ye.key,ye.props,null,pe.mode,Ue),Ue.ref=mr(pe,ge,ye),Ue.return=pe,pe=Ue)}return X(pe);case T:e:{for(ft=ye.key;ge!==null;){if(ge.key===ft)if(ge.tag===4&&ge.stateNode.containerInfo===ye.containerInfo&&ge.stateNode.implementation===ye.implementation){E(pe,ge.sibling),ge=w(ge,ye.children||[]),ge.return=pe,pe=ge;break e}else{E(pe,ge);break}else s(pe,ge);ge=ge.sibling}ge=fc(ye,pe.mode,Ue),ge.return=pe,pe=ge}return X(pe);case Z:return ft=ye._init,Ft(pe,ge,ft(ye._payload),Ue)}if(Ae(ye))return et(pe,ge,ye,Ue);if(Y(ye))return tt(pe,ge,ye,Ue);Nn(pe,ye)}return typeof ye=="string"&&ye!==""||typeof ye=="number"?(ye=""+ye,ge!==null&&ge.tag===6?(E(pe,ge.sibling),ge=w(ge,ye),ge.return=pe,pe=ge):(E(pe,ge),ge=dc(ye,pe.mode,Ue),ge.return=pe,pe=ge),X(pe)):E(pe,ge)}return Ft}var xr=Os(!0),Is=Os(!1),ao={},Un=sr(ao),Yo=sr(ao),io=sr(ao);function gr(a){if(a===ao)throw Error(o(174));return a}function Bi(a,s){switch(At(io,s),At(Yo,a),At(Un,ao),a=s.nodeType,a){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:wt(null,"");break;default:a=a===8?s.parentNode:s,s=a.namespaceURI||null,a=a.tagName,s=wt(s,a)}Pt(Un),At(Un,s)}function so(){Pt(Un),Pt(Yo),Pt(io)}function pr(a){gr(io.current);var s=gr(Un.current),E=wt(s,a.type);s!==E&&(At(Yo,a),At(Un,E))}function lo(a){Yo.current===a&&(Pt(Un),Pt(Yo))}var Lt=sr(0);function Zo(a){for(var s=a;s!==null;){if(s.tag===13){var E=s.memoizedState;if(E!==null&&(E=E.dehydrated,E===null||E.data==="$?"||E.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if(s.flags&128)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===a)break;for(;s.sibling===null;){if(s.return===null||s.return===a)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var Xo=[];function Ja(){for(var a=0;aE?E:4,a(!0);var D=$a.transition;$a.transition={};try{a(!1),s()}finally{It=E,$a.transition=D}}function Fc(){return Wn().memoizedState}function Wu(a,s,E){var D=ho(a);if(E={lane:D,action:E,hasEagerState:!1,eagerState:null,next:null},Gc(a))Vc(s,E);else if(E=jt(a,s,E,D),E!==null){var w=hn();Zn(E,a,D,w),zc(E,s,D)}}function Ku(a,s,E){var D=ho(a),w={lane:D,action:E,hasEagerState:!1,eagerState:null,next:null};if(Gc(a))Vc(s,w);else{var F=a.alternate;if(a.lanes===0&&(F===null||F.lanes===0)&&(F=s.lastRenderedReducer,F!==null))try{var X=s.lastRenderedState,ie=F(X,E);if(w.hasEagerState=!0,w.eagerState=ie,rn(ie,X)){var xe=s.interleaved;xe===null?(w.next=w,ut(s)):(w.next=xe.next,xe.next=w),s.interleaved=w;return}}catch(Ce){}finally{}E=jt(a,s,w,D),E!==null&&(w=hn(),Zn(E,a,D,w),zc(E,s,D))}}function Gc(a){var s=a.alternate;return a===Nt||s!==null&&s===Nt}function Vc(a,s){Li=_s=!0;var E=a.pending;E===null?s.next=s:(s.next=E.next,E.next=s),a.pending=s}function zc(a,s,E){if(E&4194240){var D=s.lanes;D&=a.pendingLanes,E|=D,s.lanes=E,ai(a,E)}}var Ds={readContext:ot,useCallback:sn,useContext:sn,useEffect:sn,useImperativeHandle:sn,useInsertionEffect:sn,useLayoutEffect:sn,useMemo:sn,useReducer:sn,useRef:sn,useState:sn,useDebugValue:sn,useDeferredValue:sn,useTransition:sn,useMutableSource:sn,useSyncExternalStore:sn,useId:sn,unstable_isNewReconciler:!1},Fu={readContext:ot,useCallback:function(s,E){return yr().memoizedState=[s,E===void 0?null:E],s},useContext:ot,useEffect:Rc,useImperativeHandle:function(s,E,D){return D=D!=null?D.concat([s]):null,Ps(4194308,4,wc.bind(null,E,s),D)},useLayoutEffect:function(s,E){return Ps(4194308,4,s,E)},useInsertionEffect:function(s,E){return Ps(4,2,s,E)},useMemo:function(s,E){var D=yr();return E=E===void 0?null:E,s=s(),D.memoizedState=[s,E],s},useReducer:function(s,E,D){var w=yr();return E=D!==void 0?D(E):E,w.memoizedState=w.baseState=E,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:E},w.queue=s,s=s.dispatch=Wu.bind(null,Nt,s),[w.memoizedState,s]},useRef:function(s){var E=yr();return s={current:s},E.memoizedState=s},useState:Tc,useDebugValue:Wl,useDeferredValue:function(s){return yr().memoizedState=s},useTransition:function(){var s=Tc(!1),E=s[0];return s=Uu.bind(null,s[1]),yr().memoizedState=s,[E,s]},useMutableSource:function(){},useSyncExternalStore:function(s,E,D){var w=Nt,F=yr();if(k){if(D===void 0)throw Error(o(407));D=D()}else{if(D=E(),Zt===null)throw Error(o(349));jr&30||Pc(w,E,D)}F.memoizedState=D;var X={value:D,getSnapshot:E};return F.queue=X,Rc(Dc.bind(null,w,X,s),[s]),w.flags|=2048,Ui(9,Mc.bind(null,w,X,D,E),void 0,null),D},useId:function(){var s=yr(),E=Zt.identifierPrefix;if(k){var D=hr,w=fr;D=(w&~(1<<32-On(w)-1)).toString(32)+D,E=":"+E+"R"+D,D=wi++,0<\/script>",a=a.removeChild(a.firstChild)):typeof D.is=="string"?a=X.createElement(E,{is:D.is}):(a=X.createElement(E),E==="select"&&(X=a,D.multiple?X.multiple=!0:D.size&&(X.size=D.size))):a=X.createElementNS(a,E),a[Ln]=s,a[Wo]=D,lu(a,s,!1,!1),s.stateNode=a;e:{switch(X=Qt(E,D),E){case"dialog":bt("cancel",a),bt("close",a),w=D;break;case"iframe":case"object":case"embed":bt("load",a),w=D;break;case"video":case"audio":for(w=0;wQa&&(s.flags|=128,D=!0,Wi(F,!1),s.lanes=4194304)}else{if(!D)if(a=Zo(X),a!==null){if(s.flags|=128,D=!0,E=a.updateQueue,E!==null&&(s.updateQueue=E,s.flags|=4),Wi(F,!0),F.tail===null&&F.tailMode==="hidden"&&!X.alternate&&!k)return ln(s),null}else 2*Rt()-F.renderingStartTime>Qa&&E!==1073741824&&(s.flags|=128,D=!0,Wi(F,!1),s.lanes=4194304);F.isBackwards?(X.sibling=s.child,s.child=X):(E=F.last,E!==null?E.sibling=X:s.child=X,F.last=X)}return F.tail!==null?(s=F.tail,F.rendering=s,F.tail=s.sibling,F.renderingStartTime=Rt(),s.sibling=null,E=Lt.current,At(Lt,D?E&1|2:E&1),s):(ln(s),null);case 22:case 23:return lc(),D=s.memoizedState!==null,a!==null&&a.memoizedState!==null!==D&&(s.flags|=8192),D&&s.mode&1?Sn&1073741824&&(ln(s),s.subtreeFlags&6&&(s.flags|=8192)):ln(s),null;case 24:return null;case 25:return null}throw Error(o(156,s.tag))}function Zu(a,s){switch(bs(s),s.tag){case 1:return on(s.type)&&Fa(),a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 3:return so(),Pt(dn),Pt(Jt),Ja(),a=s.flags,a&65536&&!(a&128)?(s.flags=a&-65537|128,s):null;case 5:return lo(s),null;case 13:if(Pt(Lt),a=s.memoizedState,a!==null&&a.dehydrated!==null){if(s.alternate===null)throw Error(o(340));ve()}return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 19:return Pt(Lt),null;case 4:return so(),null;case 10:return nt(s.type._context),null;case 22:case 23:return lc(),null;case 24:return null;default:return null}}var Ts=!1,cn=!1,Xu=typeof WeakSet=="function"?WeakSet:Set,qe=null;function Za(a,s){var E=a.ref;if(E!==null)if(typeof E=="function")try{E(null)}catch(D){Ut(a,s,D)}else E.current=null}function Zl(a,s,E){try{E()}catch(D){Ut(a,s,D)}}var du=!1;function Qu(a,s){if(Pi=ga,a=Sa(),Ci(a)){if("selectionStart"in a)var E={start:a.selectionStart,end:a.selectionEnd};else e:{E=(E=a.ownerDocument)&&E.defaultView||window;var D=E.getSelection&&E.getSelection();if(D&&D.rangeCount!==0){E=D.anchorNode;var w=D.anchorOffset,F=D.focusNode;D=D.focusOffset;try{E.nodeType,F.nodeType}catch(Ue){E=null;break e}var X=0,ie=-1,xe=-1,Ce=0,be=0,Re=a,Te=null;t:for(;;){for(var Ze;Re!==E||w!==0&&Re.nodeType!==3||(ie=X+w),Re!==F||D!==0&&Re.nodeType!==3||(xe=X+D),Re.nodeType===3&&(X+=Re.nodeValue.length),(Ze=Re.firstChild)!==null;)Te=Re,Re=Ze;for(;;){if(Re===a)break t;if(Te===E&&++Ce===w&&(ie=X),Te===F&&++be===D&&(xe=X),(Ze=Re.nextSibling)!==null)break;Re=Te,Te=Re.parentNode}Re=Ze}E=ie===-1||xe===-1?null:{start:ie,end:xe}}else E=null}E=E||{start:0,end:0}}else E=null;for(Mi={focusedElem:a,selectionRange:E},ga=!1,qe=s;qe!==null;)if(s=qe,a=s.child,(s.subtreeFlags&1028)!==0&&a!==null)a.return=s,qe=a;else for(;qe!==null;){s=qe;try{var et=s.alternate;if(s.flags&1024)switch(s.tag){case 0:case 11:case 15:break;case 1:if(et!==null){var tt=et.memoizedProps,Ft=et.memoizedState,pe=s.stateNode,ge=pe.getSnapshotBeforeUpdate(s.elementType===s.type?tt:je(s.type,tt),Ft);pe.__reactInternalSnapshotBeforeUpdate=ge}break;case 3:var ye=s.stateNode.containerInfo;ye.nodeType===1?ye.textContent="":ye.nodeType===9&&ye.documentElement&&ye.removeChild(ye.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(Ue){Ut(s,s.return,Ue)}if(a=s.sibling,a!==null){a.return=s.return,qe=a;break}qe=s.return}return et=du,du=!1,et}function Ki(a,s,E){var D=s.updateQueue;if(D=D!==null?D.lastEffect:null,D!==null){var w=D=D.next;do{if((w.tag&a)===a){var F=w.destroy;w.destroy=void 0,F!==void 0&&Zl(s,E,F)}w=w.next}while(w!==D)}}function ks(a,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var E=s=s.next;do{if((E.tag&a)===a){var D=E.create;E.destroy=D()}E=E.next}while(E!==s)}}function Xl(a){var s=a.ref;if(s!==null){var E=a.stateNode;switch(a.tag){case 5:a=E;break;default:a=E}typeof s=="function"?s(a):s.current=a}}function fu(a){var s=a.alternate;s!==null&&(a.alternate=null,fu(s)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(s=a.stateNode,s!==null&&(delete s[Ln],delete s[Wo],delete s[Ai],delete s[Ti],delete s[Al])),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function hu(a){return a.tag===5||a.tag===3||a.tag===4}function vu(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||hu(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function Ql(a,s,E){var D=a.tag;if(D===5||D===6)a=a.stateNode,s?E.nodeType===8?E.parentNode.insertBefore(a,s):E.insertBefore(a,s):(E.nodeType===8?(s=E.parentNode,s.insertBefore(a,E)):(s=E,s.appendChild(a)),E=E._reactRootContainer,E!=null||s.onclick!==null||(s.onclick=eo));else if(D!==4&&(a=a.child,a!==null))for(Ql(a,s,E),a=a.sibling;a!==null;)Ql(a,s,E),a=a.sibling}function ql(a,s,E){var D=a.tag;if(D===5||D===6)a=a.stateNode,s?E.insertBefore(a,s):E.appendChild(a);else if(D!==4&&(a=a.child,a!==null))for(ql(a,s,E),a=a.sibling;a!==null;)ql(a,s,E),a=a.sibling}var qt=null,$n=!1;function co(a,s,E){for(E=E.child;E!==null;)mu(a,s,E),E=E.sibling}function mu(a,s,E){if(bn&&typeof bn.onCommitFiberUnmount=="function")try{bn.onCommitFiberUnmount(fa,E)}catch(ie){}switch(E.tag){case 5:cn||Za(E,s);case 6:var D=qt,w=$n;qt=null,co(a,s,E),qt=D,$n=w,qt!==null&&($n?(a=qt,E=E.stateNode,a.nodeType===8?a.parentNode.removeChild(E):a.removeChild(E)):qt.removeChild(E.stateNode));break;case 18:qt!==null&&($n?(a=qt,E=E.stateNode,a.nodeType===8?Uo(a.parentNode,E):a.nodeType===1&&Uo(a,E),_o(a)):Uo(qt,E.stateNode));break;case 4:D=qt,w=$n,qt=E.stateNode.containerInfo,$n=!0,co(a,s,E),qt=D,$n=w;break;case 0:case 11:case 14:case 15:if(!cn&&(D=E.updateQueue,D!==null&&(D=D.lastEffect,D!==null))){w=D=D.next;do{var F=w,X=F.destroy;F=F.tag,X!==void 0&&(F&2||F&4)&&Zl(E,s,X),w=w.next}while(w!==D)}co(a,s,E);break;case 1:if(!cn&&(Za(E,s),D=E.stateNode,typeof D.componentWillUnmount=="function"))try{D.props=E.memoizedProps,D.state=E.memoizedState,D.componentWillUnmount()}catch(ie){Ut(E,s,ie)}co(a,s,E);break;case 21:co(a,s,E);break;case 22:E.mode&1?(cn=(D=cn)||E.memoizedState!==null,co(a,s,E),cn=D):co(a,s,E);break;default:co(a,s,E)}}function xu(a){var s=a.updateQueue;if(s!==null){a.updateQueue=null;var E=a.stateNode;E===null&&(E=a.stateNode=new Xu),s.forEach(function(D){var w=sd.bind(null,a,D);E.has(D)||(E.add(D),D.then(w,w))})}}function Yn(a,s){var E=s.deletions;if(E!==null)for(var D=0;Dw&&(w=X),D&=~F}if(D=w,D=Rt()-D,D=(120>D?120:480>D?480:1080>D?1080:1920>D?1920:3e3>D?3e3:4320>D?4320:1960*ed(D/1960))-D,10a?16:a,fo===null)var D=!1;else{if(a=fo,fo=null,Ns=0,Et&6)throw Error(o(331));var w=Et;for(Et|=4,qe=a.current;qe!==null;){var F=qe,X=F.child;if(qe.flags&16){var ie=F.deletions;if(ie!==null){for(var xe=0;xeRt()-nc?ta(a,0):tc|=E),Cn(a,s)}function Du(a,s){s===0&&(a.mode&1?(s=ha,ha<<=1,!(ha&130023424)&&(ha=4194304)):s=1);var E=hn();a=Ct(a,s),a!==null&&(bo(a,s,E),Cn(a,E))}function id(a){var s=a.memoizedState,E=0;s!==null&&(E=s.retryLane),Du(a,E)}function sd(a,s){var E=0;switch(a.tag){case 13:var D=a.stateNode,w=a.memoizedState;w!==null&&(E=w.retryLane);break;case 19:D=a.stateNode;break;default:throw Error(o(314))}D!==null&&D.delete(s),Du(a,E)}var Su;Su=function(s,E,D){if(s!==null)if(s.memoizedProps!==E.pendingProps||dn.current)jn=!0;else{if(!(s.lanes&D)&&!(E.flags&128))return jn=!1,$u(s,E,D);jn=!!(s.flags&131072)}else jn=!1,k&&E.flags&1048576&&kl(E,Ri,E.index);switch(E.lanes=0,E.tag){case 2:var w=E.type;As(s,E),s=E.pendingProps;var F=cr(E,Jt.current);rt(E,D),F=Bl(null,E,w,s,F,D);var X=Ll();return E.flags|=1,typeof F=="object"&&F!==null&&typeof F.render=="function"&&F.$$typeof===void 0?(E.tag=1,E.memoizedState=null,E.updateQueue=null,on(w)?(X=!0,Go(E)):X=!1,E.memoizedState=F.state!==null&&F.state!==void 0?F.state:null,lt(E),F.updater=vr,E.stateNode=F,F._reactInternals=E,wr(E,w,s,D),E=Vl(null,E,w,!0,X,D)):(E.tag=0,k&&X&&zo(E),fn(null,E,F,D),E=E.child),E;case 16:w=E.elementType;e:{switch(As(s,E),s=E.pendingProps,F=w._init,w=F(w._payload),E.type=w,F=E.tag=cd(w),s=je(w,s),F){case 0:E=Gl(null,E,w,s,D);break e;case 1:E=nu(null,E,w,s,D);break e;case 11:E=Xc(null,E,w,s,D);break e;case 14:E=Qc(null,E,w,je(w.type,s),D);break e}throw Error(o(306,w,""))}return E;case 0:return w=E.type,F=E.pendingProps,F=E.elementType===w?F:je(w,F),Gl(s,E,w,F,D);case 1:return w=E.type,F=E.pendingProps,F=E.elementType===w?F:je(w,F),nu(s,E,w,F,D);case 3:e:{if(ru(E),s===null)throw Error(o(387));w=E.pendingProps,X=E.memoizedState,F=X.element,Tt(s,E),Hn(E,w,null,D);var ie=E.memoizedState;if(w=ie.element,X.isDehydrated)if(X={element:w,isDehydrated:!1,cache:ie.cache,pendingSuspenseBoundaries:ie.pendingSuspenseBoundaries,transitions:ie.transitions},E.updateQueue.baseState=X,E.memoizedState=X,E.flags&256){F=Ya(Error(o(423)),E),E=ou(s,E,w,D,F);break e}else if(w!==F){F=Ya(Error(o(424)),E),E=ou(s,E,w,D,F);break e}else for(S=or(E.stateNode.containerInfo.firstChild),pn=E,k=!0,W=null,D=Is(E,null,w,D),E.child=D;D;)D.flags=D.flags&-3|4096,D=D.sibling;else{if(ve(),w===F){E=Nr(s,E,D);break e}fn(s,E,w,D)}E=E.child}return E;case 5:return pr(E),s===null&&ne(E),w=E.type,F=E.pendingProps,X=s!==null?s.memoizedProps:null,ie=F.children,Ua(w,F)?ie=null:X!==null&&Ua(w,X)&&(E.flags|=32),tu(s,E),fn(s,E,ie,D),E.child;case 6:return s===null&&ne(E),null;case 13:return au(s,E,D);case 4:return Bi(E,E.stateNode.containerInfo),w=E.pendingProps,s===null?E.child=xr(E,null,w,D):fn(s,E,w,D),E.child;case 11:return w=E.type,F=E.pendingProps,F=E.elementType===w?F:je(w,F),Xc(s,E,w,F,D);case 7:return fn(s,E,E.pendingProps,D),E.child;case 8:return fn(s,E,E.pendingProps.children,D),E.child;case 12:return fn(s,E,E.pendingProps.children,D),E.child;case 10:e:{if(w=E.type._context,F=E.pendingProps,X=E.memoizedProps,ie=F.value,At(De,w._currentValue),w._currentValue=ie,X!==null)if(rn(X.value,ie)){if(X.children===F.children&&!dn.current){E=Nr(s,E,D);break e}}else for(X=E.child,X!==null&&(X.return=E);X!==null;){var xe=X.dependencies;if(xe!==null){ie=X.child;for(var Ce=xe.firstContext;Ce!==null;){if(Ce.context===w){if(X.tag===1){Ce=Dt(-1,D&-D),Ce.tag=2;var be=X.updateQueue;if(be!==null){be=be.shared;var Re=be.pending;Re===null?Ce.next=Ce:(Ce.next=Re.next,Re.next=Ce),be.pending=Ce}}X.lanes|=D,Ce=X.alternate,Ce!==null&&(Ce.lanes|=D),ze(X.return,D,E),xe.lanes|=D;break}Ce=Ce.next}}else if(X.tag===10)ie=X.type===E.type?null:X.child;else if(X.tag===18){if(ie=X.return,ie===null)throw Error(o(341));ie.lanes|=D,xe=ie.alternate,xe!==null&&(xe.lanes|=D),ze(ie,D,E),ie=X.sibling}else ie=X.child;if(ie!==null)ie.return=X;else for(ie=X;ie!==null;){if(ie===E){ie=null;break}if(X=ie.sibling,X!==null){X.return=ie.return,ie=X;break}ie=ie.return}X=ie}fn(s,E,F.children,D),E=E.child}return E;case 9:return F=E.type,w=E.pendingProps.children,rt(E,D),F=ot(F),w=w(F),E.flags|=1,fn(s,E,w,D),E.child;case 14:return w=E.type,F=je(w,E.pendingProps),F=je(w.type,F),Qc(s,E,w,F,D);case 15:return qc(s,E,E.type,E.pendingProps,D);case 17:return w=E.type,F=E.pendingProps,F=E.elementType===w?F:je(w,F),As(s,E),E.tag=1,on(w)?(s=!0,Go(E)):s=!1,rt(E,D),Lr(E,w,F),wr(E,w,F,D),Vl(null,E,w,!0,s,D);case 19:return su(s,E,D);case 22:return eu(s,E,D)}throw Error(o(156,E.tag))};function Au(a,s){return oe(a,s)}function ld(a,s,E,D){this.tag=a,this.key=E,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=D,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Fn(a,s,E,D){return new ld(a,s,E,D)}function uc(a){return a=a.prototype,!(!a||!a.isReactComponent)}function cd(a){if(typeof a=="function")return uc(a)?1:0;if(a!=null){if(a=a.$$typeof,a===z)return 11;if(a===q)return 14}return 2}function mo(a,s){var E=a.alternate;return E===null?(E=Fn(a.tag,s,a.key,a.mode),E.elementType=a.elementType,E.type=a.type,E.stateNode=a.stateNode,E.alternate=a,a.alternate=E):(E.pendingProps=s,E.type=a.type,E.flags=0,E.subtreeFlags=0,E.deletions=null),E.flags=a.flags&14680064,E.childLanes=a.childLanes,E.lanes=a.lanes,E.child=a.child,E.memoizedProps=a.memoizedProps,E.memoizedState=a.memoizedState,E.updateQueue=a.updateQueue,s=a.dependencies,E.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},E.sibling=a.sibling,E.index=a.index,E.ref=a.ref,E}function Fs(a,s,E,D,w,F){var X=2;if(D=a,typeof a=="function")uc(a)&&(X=1);else if(typeof a=="string")X=5;else e:switch(a){case R:return ra(E.children,w,F,s);case L:X=8,w|=8;break;case N:return a=Fn(12,E,s,w|2),a.elementType=N,a.lanes=F,a;case Q:return a=Fn(13,E,s,w),a.elementType=Q,a.lanes=F,a;case H:return a=Fn(19,E,s,w),a.elementType=H,a.lanes=F,a;case $:return Gs(E,w,F,s);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case U:X=10;break e;case V:X=9;break e;case z:X=11;break e;case q:X=14;break e;case Z:X=16,D=null;break e}throw Error(o(130,a==null?a:typeof a=="undefined"?"undefined":i(a),""))}return s=Fn(X,E,s,w),s.elementType=a,s.type=D,s.lanes=F,s}function ra(a,s,E,D){return a=Fn(7,a,D,s),a.lanes=E,a}function Gs(a,s,E,D){return a=Fn(22,a,D,s),a.elementType=$,a.lanes=E,a.stateNode={isHidden:!1},a}function dc(a,s,E){return a=Fn(6,a,null,s),a.lanes=E,a}function fc(a,s,E){return s=Fn(4,a.children!==null?a.children:[],a.key,s),s.lanes=E,s.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},s}function ud(a,s,E,D,w){this.tag=s,this.containerInfo=a,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=oi(0),this.expirationTimes=oi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=oi(0),this.identifierPrefix=D,this.onRecoverableError=w,this.mutableSourceEagerHydrationData=null}function hc(a,s,E,D,w,F,X,ie,xe){return a=new ud(a,s,E,ie,xe),s===1?(s=1,F===!0&&(s|=8)):s=0,F=Fn(3,null,null,s),a.current=F,F.stateNode=a,F.memoizedState={element:D,isDehydrated:E,cache:null,transitions:null,pendingSuspenseBoundaries:null},lt(F),a}function dd(a,s,E){var D=3=0;--ee){var ae=this.tryEntries[ee],re=ae.completion;if(ae.tryLoc==="root")return Y("end");if(ae.tryLoc<=this.prev){var le=r.call(ae,"catchLoc"),se=r.call(ae,"finallyLoc");if(le&&se){if(this.prev=0;--Y){var ee=this.tryEntries[Y];if(ee.tryLoc<=this.prev&&r.call(ee,"finallyLoc")&&this.prev=0;--G){var Y=this.tryEntries[G];if(Y.finallyLoc===$)return this.complete(Y.completion,Y.afterLoc),z(Y),y}},catch:function(Z){for(var $=this.tryEntries.length-1;$>=0;--$){var G=this.tryEntries[$];if(G.tryLoc===Z){var Y=G.completion;if(Y.type==="throw"){var ee=Y.arg;z(G)}return ee}}throw new Error("illegal catch attempt")},delegateYield:function($,G,Y){return this.delegate={iterator:H($),resultName:G,nextLoc:Y},this.method==="next"&&(this.arg=v),y}},s}(M.exports);try{regeneratorRuntime=e}catch(s){typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},61528:function(M,j){"use strict";/** + */function t(G){"@swc/helpers - typeof";return G&&typeof Symbol!="undefined"&&G.constructor===Symbol?"symbol":typeof G}var e=Symbol.for("react.element"),i=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),g=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),c=Symbol.iterator;function h(G){return G===null||typeof G!="object"?null:(G=c&&G[c]||G["@@iterator"],typeof G=="function"?G:null)}var l={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,p={};function C(G,Y,ee){this.props=G,this.context=Y,this.refs=p,this.updater=ee||l}C.prototype.isReactComponent={},C.prototype.setState=function(G,Y){if(typeof G!="object"&&typeof G!="function"&&G!=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,G,Y,"setState")},C.prototype.forceUpdate=function(G){this.updater.enqueueForceUpdate(this,G,"forceUpdate")};function y(){}y.prototype=C.prototype;function b(G,Y,ee){this.props=G,this.context=Y,this.refs=p,this.updater=ee||l}var O=b.prototype=new y;O.constructor=b,f(O,C.prototype),O.isPureReactComponent=!0;var I=Array.isArray,_=Object.prototype.hasOwnProperty,A={current:null},P={key:!0,ref:!0,__self:!0,__source:!0};function T(G,Y,ee){var ae,re={},le=null,se=null;if(Y!=null)for(ae in Y.ref!==void 0&&(se=Y.ref),Y.key!==void 0&&(le=""+Y.key),Y)_.call(Y,ae)&&!P.hasOwnProperty(ae)&&(re[ae]=Y[ae]);var fe=arguments.length-2;if(fe===1)re.children=ee;else if(1=0;--ee){var ae=this.tryEntries[ee],re=ae.completion;if(ae.tryLoc==="root")return Y("end");if(ae.tryLoc<=this.prev){var le=r.call(ae,"catchLoc"),se=r.call(ae,"finallyLoc");if(le&&se){if(this.prev=0;--Y){var ee=this.tryEntries[Y];if(ee.tryLoc<=this.prev&&r.call(ee,"finallyLoc")&&this.prev=0;--G){var Y=this.tryEntries[G];if(Y.finallyLoc===$)return this.complete(Y.completion,Y.afterLoc),z(Y),y}},catch:function(Z){for(var $=this.tryEntries.length-1;$>=0;--$){var G=this.tryEntries[$];if(G.tryLoc===Z){var Y=G.completion;if(Y.type==="throw"){var ee=Y.arg;z(G)}return ee}}throw new Error("illegal catch attempt")},delegateYield:function($,G,Y){return this.delegate={iterator:H($),resultName:G,nextLoc:Y},this.method==="next"&&(this.arg=v),y}},i}(M.exports);try{regeneratorRuntime=e}catch(i){typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},61528:function(M,j){"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 t(H,q){var Z=H.length;H.push(q);e:for(;0>>1,G=H[$];if(0>>1;$n(ae,Z))ren(le,ae)?(H[$]=le,H[re]=Z,$=re):(H[$]=ae,H[ee]=Z,$=ee);else if(ren(le,Z))H[$]=le,H[re]=Z,$=re;else break e}}return q}function n(H,q){var Z=H.sortIndex-q.sortIndex;return Z!==0?Z:H.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var r=performance;j.unstable_now=function(){return r.now()}}else{var o=Date,v=o.now();j.unstable_now=function(){return o.now()-v}}var g=[],x=[],f=1,u=null,m=3,c=!1,h=!1,l=!1,d=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,C=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(H){for(var q=e(x);q!==null;){if(q.callback===null)s(x);else if(q.startTime<=H)s(x),q.sortIndex=q.expirationTime,t(g,q);else break;q=e(x)}}function b(H){if(l=!1,y(H),!h)if(e(g)!==null)h=!0,z(O);else{var q=e(x);q!==null&&Q(b,q.startTime-H)}}function O(H,q){h=!1,l&&(l=!1,p(A),A=-1),c=!0;var Z=m;try{for(y(q),u=e(g);u!==null&&(!(u.expirationTime>q)||H&&!R());){var $=u.callback;if(typeof $=="function"){u.callback=null,m=u.priorityLevel;var G=$(u.expirationTime<=q);q=j.unstable_now(),typeof G=="function"?u.callback=G:u===e(g)&&s(g),y(q)}else s(g);u=e(g)}if(u!==null)var Y=!0;else{var ee=e(x);ee!==null&&Q(b,ee.startTime-q),Y=!1}return Y}finally{u=null,m=Z,c=!1}}var I=!1,_=null,A=-1,P=5,T=-1;function R(){return!(j.unstable_now()-TH||125$?(H.sortIndex=Z,t(x,H),e(g)===null&&H===e(x)&&(l?(p(A),A=-1):l=!0,Q(b,Z-$))):(H.sortIndex=G,t(g,H),h||c||(h=!0,z(O))),H},j.unstable_shouldYield=R,j.unstable_wrapCallback=function(H){var q=m;return function(){var Z=m;m=q;try{return H.apply(this,arguments)}finally{m=Z}}}},96336:function(M,j,t){"use strict";M.exports=t(61528)},59832:function(){self.fetch||(self.fetch=function(M,j){return j=j||{},new Promise(function(t,e){var s=new XMLHttpRequest,n=[],r={},o=function g(){return{ok:(s.status/100|0)==2,statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:g,headers:{keys:function(){return n},entries:function(){return n.map(function(f){return[f,s.getResponseHeader(f)]})},get:function(f){return s.getResponseHeader(f)},has:function(f){return s.getResponseHeader(f)!=null}}}};for(var v in s.open(j.method||"get",M,!0),s.onload=function(){s.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(g,x){r[x]||n.push(r[x]=x)}),t(o())},s.onerror=e,s.withCredentials=j.credentials=="include",j.headers)s.setRequestHeader(v,j.headers[v]);s.send(j.body||null)})})},47392:function(M,j,t){"use strict";t.d(j,{IF:function(){return o},Oy:function(){return h},_e:function(){return l},cp:function(){return f},kH:function(){return v},yC:function(){return C}});/** + */function t(H,q){var Z=H.length;H.push(q);e:for(;0>>1,G=H[$];if(0>>1;$n(ae,Z))ren(le,ae)?(H[$]=le,H[re]=Z,$=re):(H[$]=ae,H[ee]=Z,$=ee);else if(ren(le,Z))H[$]=le,H[re]=Z,$=re;else break e}}return q}function n(H,q){var Z=H.sortIndex-q.sortIndex;return Z!==0?Z:H.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var r=performance;j.unstable_now=function(){return r.now()}}else{var o=Date,v=o.now();j.unstable_now=function(){return o.now()-v}}var g=[],x=[],d=1,u=null,m=3,c=!1,h=!1,l=!1,f=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,C=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(H){for(var q=e(x);q!==null;){if(q.callback===null)i(x);else if(q.startTime<=H)i(x),q.sortIndex=q.expirationTime,t(g,q);else break;q=e(x)}}function b(H){if(l=!1,y(H),!h)if(e(g)!==null)h=!0,z(O);else{var q=e(x);q!==null&&Q(b,q.startTime-H)}}function O(H,q){h=!1,l&&(l=!1,p(A),A=-1),c=!0;var Z=m;try{for(y(q),u=e(g);u!==null&&(!(u.expirationTime>q)||H&&!R());){var $=u.callback;if(typeof $=="function"){u.callback=null,m=u.priorityLevel;var G=$(u.expirationTime<=q);q=j.unstable_now(),typeof G=="function"?u.callback=G:u===e(g)&&i(g),y(q)}else i(g);u=e(g)}if(u!==null)var Y=!0;else{var ee=e(x);ee!==null&&Q(b,ee.startTime-q),Y=!1}return Y}finally{u=null,m=Z,c=!1}}var I=!1,_=null,A=-1,P=5,T=-1;function R(){return!(j.unstable_now()-TH||125$?(H.sortIndex=Z,t(x,H),e(g)===null&&H===e(x)&&(l?(p(A),A=-1):l=!0,Q(b,Z-$))):(H.sortIndex=G,t(g,H),h||c||(h=!0,z(O))),H},j.unstable_shouldYield=R,j.unstable_wrapCallback=function(H){var q=m;return function(){var Z=m;m=q;try{return H.apply(this,arguments)}finally{m=Z}}}},96336:function(M,j,t){"use strict";M.exports=t(61528)},59832:function(){self.fetch||(self.fetch=function(M,j){return j=j||{},new Promise(function(t,e){var i=new XMLHttpRequest,n=[],r={},o=function g(){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:g,headers:{keys:function(){return n},entries:function(){return n.map(function(d){return[d,i.getResponseHeader(d)]})},get:function(d){return i.getResponseHeader(d)},has:function(d){return i.getResponseHeader(d)!=null}}}};for(var v in i.open(j.method||"get",M,!0),i.onload=function(){i.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(g,x){r[x]||n.push(r[x]=x)}),t(o())},i.onerror=e,i.withCredentials=j.credentials=="include",j.headers)i.setRequestHeader(v,j.headers[v]);i.send(j.body||null)})})},47392:function(M,j,t){"use strict";t.d(j,{IF:function(){return o},Oy:function(){return h},_e:function(){return l},cp:function(){return d},kH:function(){return v},yC:function(){return C}});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function e(A,P){(P==null||P>A.length)&&(P=A.length);for(var T=0,R=new Array(P);T=A.length?{done:!0}:{done:!1,value:A[R++]}}}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 o=function(A){return function(P){if(P==null)return P;if(Array.isArray(P)){for(var T=[],R=0;RV)return 1}return 0},f=function(){for(var A=arguments.length,P=new Array(A),T=0;T>1,V=A(P[z]),VR?z:z+1},b=function(A){return function(P,T){var R=[].concat(P);return R.splice(y(A,P,T),0,T),R}},O=function(A,P){for(var T=[],R=[],L=P,N=r(A),U;!(U=N()).done;){var V=U.value;R.push(V),L--,L||(L=P,T.push(R),R=[])}return R.length&&T.push(R),T},I=function(A){return typeof A=="object"&&A!==null},_=function(){for(var A=arguments.length,P=new Array(A),T=0;TA.length)&&(P=A.length);for(var T=0,R=new Array(P);T=A.length?{done:!0}:{done:!1,value:A[R++]}}}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 o=function(A){return function(P){if(P==null)return P;if(Array.isArray(P)){for(var T=[],R=0;RV)return 1}return 0},d=function(){for(var A=arguments.length,P=new Array(A),T=0;T>1,V=A(P[z]),VR?z:z+1},b=function(A){return function(P,T){var R=[].concat(P);return R.splice(y(A,P,T),0,T),R}},O=function(A,P){for(var T=[],R=[],L=P,N=r(A),U;!(U=N()).done;){var V=U.value;R.push(V),L--,L||(L=P,T.push(R),R=[])}return R.length&&T.push(R),T},I=function(A){return typeof A=="object"&&A!==null},_=function(){for(var A=arguments.length,P=new Array(A),T=0;T1?v-1:0),x=1;x1?v-1:0),x=1;xg.length)&&(x=g.length);for(var f=0,u=new Array(x);f=g.length?{done:!0}:{done:!1,value:g[u++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=void 0,o=function(){for(var g=arguments.length,x=new Array(g),f=0;f1?c-1:0),l=1;l1?h-1:0),d=1;dg.length)&&(x=g.length);for(var d=0,u=new Array(x);d=g.length?{done:!0}:{done:!1,value:g[u++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=void 0,o=function(){for(var g=arguments.length,x=new Array(g),d=0;d1?c-1:0),l=1;l1?h-1:0),f=1;fc.length)&&(h=c.length);for(var l=0,d=new Array(h);l=c.length?{done:!0}:{done:!1,value:c[d++]}}}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(c,h,l){return cl?l:c},o=function(c){return c<0?0:c>1?1:c},v=function(c,h,l){return(c-h)/(l-h)},g=function(c,h){if(!c||isNaN(c))return c;var l,d,p,C;return h|=0,l=Math.pow(10,h),c*=l,C=+(c>0)|-(c<0),p=Math.abs(c%1)>=.4999999999854481,d=Math.floor(c),p&&(c=d+(C>0)),(p?c:Math.round(c))/l},x=function(c,h){return h===void 0&&(h=0),Number(c).toFixed(Math.max(h,0))},f=function(c,h){return h&&c>=h[0]&&c<=h[1]},u=function(c,h){for(var l=n(Object.keys(h)),d;!(d=l()).done;){var p=d.value,C=h[p];if(f(c,C))return p}},m=function(c){return Math.floor(c)!==c&&c.toString().split(".")[1].length||0}},30668:function(M,j,t){"use strict";t.d(j,{M:function(){return u}});/** + */function e(c,h){(h==null||h>c.length)&&(h=c.length);for(var l=0,f=new Array(h);l=c.length?{done:!0}:{done:!1,value:c[f++]}}}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(c,h,l){return cl?l:c},o=function(c){return c<0?0:c>1?1:c},v=function(c,h,l){return(c-h)/(l-h)},g=function(c,h){if(!c||isNaN(c))return c;var l,f,p,C;return h|=0,l=Math.pow(10,h),c*=l,C=+(c>0)|-(c<0),p=Math.abs(c%1)>=.4999999999854481,f=Math.floor(c),p&&(c=f+(C>0)),(p?c:Math.round(c))/l},x=function(c,h){return h===void 0&&(h=0),Number(c).toFixed(Math.max(h,0))},d=function(c,h){return h&&c>=h[0]&&c<=h[1]},u=function(c,h){for(var l=n(Object.keys(h)),f;!(f=l()).done;){var p=f.value,C=h[p];if(d(c,C))return p}},m=function(c){return Math.floor(c)!==c&&c.toString().split(".")[1].length||0}},30668:function(M,j,t){"use strict";t.d(j,{M:function(){return u}});/** * 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,s=60,n=1e3/s,r=!!((e=window.performance)!=null&&e.now),o={},v={},g=function(m,c){},x=function(m,c){if(0)var h,l,d},f=function(m){var c=m/n;return m.toFixed(m<10?1:0)+"ms ("+c.toFixed(2)+" frames)"},u={mark:g,measure:x}},28324:function(M,j,t){"use strict";t.d(j,{Cw:function(){return n},cS:function(){return r},iE:function(){return e}});/** + */var e,i=60,n=1e3/i,r=!!((e=window.performance)!=null&&e.now),o={},v={},g=function(m,c){},x=function(m,c){if(0)var h,l,f},d=function(m){var c=m/n;return m.toFixed(m<10?1:0)+"ms ("+c.toFixed(2)+" frames)"},u={mark:g,measure:x}},28324:function(M,j,t){"use strict";t.d(j,{Cw:function(){return n},cS:function(){return r},iE:function(){return e}});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var e=function(o){for(var v="",g=0;gf.length)&&(u=f.length);for(var m=0,c=new Array(u);m=f.length?{done:!0}:{done:!1,value:f[c++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o=function(f,u){if(u)return u(o)(f);var m,c=[],h=function(){return m},l=function(p){c.push(p)},d=function(p){m=f(m,p);for(var C=0;C1?l-1:0),p=1;p1?_-1:0),P=1;P<_;P++)A[P-1]=arguments[P];throw new Error("Dispatching while constructing your middleware is not allowed.")},b={getState:C.getState,dispatch:function(I){for(var _=arguments.length,A=new Array(_>1?_-1:0),P=1;P<_;P++)A[P-1]=arguments[P];return y.apply(void 0,[].concat([I],A))}},O=u.map(function(I){return I(b)});return y=O.reduceRight(function(I,_){return _(I)},C.dispatch),s({},C,{dispatch:y})}}},g=function(f){var u=Object.keys(f);return function(m,c){m===void 0&&(m={});for(var h=s({},m),l=!1,d=r(u),p;!(p=d()).done;){var C=p.value,y=f[C],b=m[C],O=y(b,c);b!==O&&(l=!0,h[C]=O)}return l?h:m}},x=function(f,u){var m=function(){for(var c=arguments.length,h=new Array(c),l=0;ld.length)&&(u=d.length);for(var m=0,c=new Array(u);m=d.length?{done:!0}:{done:!1,value:d[c++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o=function(d,u){if(u)return u(o)(d);var m,c=[],h=function(){return m},l=function(p){c.push(p)},f=function(p){m=d(m,p);for(var C=0;C1?l-1:0),p=1;p1?_-1:0),P=1;P<_;P++)A[P-1]=arguments[P];throw new Error("Dispatching while constructing your middleware is not allowed.")},b={getState:C.getState,dispatch:function(I){for(var _=arguments.length,A=new Array(_>1?_-1:0),P=1;P<_;P++)A[P-1]=arguments[P];return y.apply(void 0,[].concat([I],A))}},O=u.map(function(I){return I(b)});return y=O.reduceRight(function(I,_){return _(I)},C.dispatch),i({},C,{dispatch:y})}}},g=function(d){var u=Object.keys(d);return function(m,c){m===void 0&&(m={});for(var h=i({},m),l=!1,f=r(u),p;!(p=f()).done;){var C=p.value,y=d[C],b=m[C],O=y(b,c);b!==O&&(l=!0,h[C]=O)}return l?h:m}},x=function(d,u){var m=function(){for(var c=arguments.length,h=new Array(c),l=0;l0&&P[P.length-1])&&(U[0]===6||U[0]===2)){R=0;continue}if(U[0]===3&&(!P||U[1]>P[0]&&U[1]0&&P[P.length-1])&&(U[0]===6||U[0]===2)){R=0;continue}if(U[0]===3&&(!P||U[1]>P[0]&&U[1]h.length)&&(l=h.length);for(var d=0,p=new Array(l);d=h.length?{done:!0}:{done:!1,value:h[p++]}}}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(h){if(Array.isArray(h))return r(h.join(""));for(var l=h.split("\n"),d,p=n(l),C;!(C=p()).done;)for(var y=C.value,b=0;b",apos:"'"};return h.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(l,function(p,C){return d[C]}).replace(/&#?([0-9]+);/gi,function(p,C){var y=parseInt(C,10);return String.fromCharCode(y)}).replace(/&#x?([0-9a-f]+);/gi,function(p,C){var y=parseInt(C,16);return String.fromCharCode(y)})},c=function(h){return Object.keys(h).map(function(l){return encodeURIComponent(l)+"="+encodeURIComponent(h[l])}).join("&")}},59884:function(M,j,t){"use strict";t.d(j,{Gw:function(){return g},Ud:function(){return v},WE:function(){return u},aO:function(){return c},wP:function(){return x}});var e=t(47392);/** + */function e(h,l){(l==null||l>h.length)&&(l=h.length);for(var f=0,p=new Array(l);f=h.length?{done:!0}:{done:!1,value:h[p++]}}}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(h){if(Array.isArray(h))return r(h.join(""));for(var l=h.split("\n"),f,p=n(l),C;!(C=p()).done;)for(var y=C.value,b=0;b",apos:"'"};return h.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(l,function(p,C){return f[C]}).replace(/&#?([0-9]+);/gi,function(p,C){var y=parseInt(C,10);return String.fromCharCode(y)}).replace(/&#x?([0-9a-f]+);/gi,function(p,C){var y=parseInt(C,16);return String.fromCharCode(y)})},c=function(h){return Object.keys(h).map(function(l){return encodeURIComponent(l)+"="+encodeURIComponent(h[l])}).join("&")}},59884:function(M,j,t){"use strict";t.d(j,{Gw:function(){return g},Ud:function(){return v},WE:function(){return u},aO:function(){return c},wP:function(){return x}});var e=t(47392);/** * 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 s=function(l,d){return l+d},n=function(l,d){return l-d},r=function(l,d){return l*d},o=function(l,d){return l/d},v=function(){for(var l=arguments.length,d=new Array(l),p=0;px.length)&&(f=x.length);for(var u=0,m=new Array(f);u=x.length?{done:!0}:{done:!1,value:x[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=[/v4shim/i],o={},v=function(x){return o[x]||x},g=function(x){return function(f){return function(u){var m=u.type,c=u.payload;if(m==="asset/stylesheet"){Byond.loadCss(c);return}if(m==="asset/mappings"){for(var h=function(){var p=d.value;if(r.some(function(b){return b.test(p)}))return"continue";var C=c[p],y=p.split(".").pop();o[p]=C,y==="css"&&Byond.loadCss(C),y==="js"&&Byond.loadJs(C)},l=n(Object.keys(c)),d;!(d=l()).done;)h();return}f(u)}}}},45280:function(M,j,t){"use strict";t.d(j,{AQ:function(){return O},Ex:function(){return I},I1:function(){return h},W0:function(){return l},ao:function(){return R},cv:function(){return T},gz:function(){return C},yy:function(){return P}});var e=t(30668),s=t(78612),n=t(90244),r=t(20284),o=t(99992),v=t(37756),g=t(78332);/** + */function e(x,d){(d==null||d>x.length)&&(d=x.length);for(var u=0,m=new Array(d);u=x.length?{done:!0}:{done:!1,value:x[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=[/v4shim/i],o={},v=function(x){return o[x]||x},g=function(x){return function(d){return function(u){var m=u.type,c=u.payload;if(m==="asset/stylesheet"){Byond.loadCss(c);return}if(m==="asset/mappings"){for(var h=function(){var p=f.value;if(r.some(function(b){return b.test(p)}))return"continue";var C=c[p],y=p.split(".").pop();o[p]=C,y==="css"&&Byond.loadCss(C),y==="js"&&Byond.loadJs(C)},l=n(Object.keys(c)),f;!(f=l()).done;)h();return}d(u)}}}},45280:function(M,j,t){"use strict";t.d(j,{AQ:function(){return O},Ex:function(){return I},I1:function(){return h},W0:function(){return l},ao:function(){return R},cv:function(){return T},gz:function(){return C},yy:function(){return P}});var e=t(30668),i=t(78612),n=t(90244),r=t(20284),o=t(99992),v=t(37756),g=t(78332);/** * This file provides a clear separation layer between backend updates * and what state our React app sees. * @@ -101,19 +101,19 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function x(U,V){(V==null||V>U.length)&&(V=U.length);for(var z=0,Q=new Array(V);z=U.length?{done:!0}:{done:!1,value:U[Q++]}}}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=(0,v.m)("backend"),h,l=function(U){h=U},d=(0,s.Uh)("backend/update"),p=(0,s.Uh)("backend/setSharedState"),C=(0,s.Uh)("backend/suspendStart"),y=function(){return{type:"backend/suspendSuccess",payload:{timestamp:Date.now()}}},b={config:{},data:{},shared:{},suspended:Date.now(),suspending:!1},O=function(U,V){U===void 0&&(U=b);var z=V.type,Q=V.payload;if(z==="backend/update"){var H=f({},U.config,Q.config),q=f({},U.data,Q.static_data,Q.data),Z=f({},U.shared);if(Q.shared)for(var $=m(Object.keys(Q.shared)),G;!(G=$()).done;){var Y=G.value,ee=Q.shared[Y];ee===""?Z[Y]=void 0:Z[Y]=JSON.parse(ee)}return f({},U,{config:H,data:q,shared:Z,suspended:!1})}if(z==="backend/setSharedState"){var ae=Q.key,re=Q.nextState,le;return f({},U,{shared:f({},U.shared,(le={},le[ae]=re,le))})}if(z==="byond/ctrldown"&&r.W4.emit("byond/ctrldown"),z==="byond/ctrlup"&&r.W4.emit("byond/ctrlup"),z==="backend/suspendStart")return f({},U,{suspending:!0});if(z==="backend/suspendSuccess"){var se=Q.timestamp;return f({},U,{data:{},shared:{},config:f({},U.config,{title:"",status:1}),suspending:!1,suspended:se})}return U},I=function(U){var V,z;return function(Q){return function(H){var q=A(U.getState()).suspended,Z=H.type,$=H.payload;if(Z==="update"){U.dispatch(d($));return}if(Z==="suspend"){U.dispatch(y());return}if(Z==="ping"){Byond.sendMessage("ping/reply");return}if(Z==="byond/mousedown"&&r.W4.emit("byond/mousedown"),Z==="byond/mouseup"&&r.W4.emit("byond/mouseup"),Z==="byond/ctrldown"&&r.W4.emit("byond/ctrldown"),Z==="byond/ctrlup"&&r.W4.emit("byond/ctrlup"),Z==="backend/suspendStart"&&!z){c.log("suspending ("+Byond.windowId+")");var G=function(){return Byond.sendMessage("suspend")};G(),z=setInterval(G,2e3)}if(Z==="backend/suspendSuccess"&&((0,g.yR)(),clearInterval(z),z=void 0,Byond.winset(Byond.windowId,{"is-visible":!1}),setImmediate(function(){return(0,o.E)()})),Z==="backend/update"){var Y,ee,ae=(ee=$.config)==null||(Y=ee.window)==null?void 0:Y.fancy;V===void 0?V=ae:V!==ae&&(c.log("changing fancy mode to",ae),V=ae,Byond.winset(Byond.windowId,{titlebar:!ae,"can-resize":!ae}))}return Z==="backend/update"&&q&&(c.log("backend/update",$),(0,g.OS)(),(0,n.m)(),setImmediate(function(){e.M.mark("resume/start");var re=A(U.getState()).suspended;re||(Byond.winset(Byond.windowId,{"is-visible":!0}),e.M.mark("resume/finish"))})),Q(H)}}},_=function(U,V){V===void 0&&(V={});var z=typeof V=="object"&&V!==null&&!Array.isArray(V);if(!z){c.error("Payload for act() must be an object, got this:",V);return}Byond.sendMessage("act/"+U,V)},A=function(U){return U.backend||{}},P=function(){var U,V=h==null||(U=h.getState())==null?void 0:U.backend;return f({},V,{act:_})},T=function(U,V){var z,Q=h==null||(z=h.getState())==null?void 0:z.backend,H,q=(H=Q==null?void 0:Q.shared)!=null?H:{},Z=U in q?q[U]:V;return[Z,function($){h.dispatch(p({key:U,nextState:typeof $=="function"?$(Z):$}))}]},R=function(U,V){var z,Q=h==null||(z=h.getState())==null?void 0:z.backend,H,q=(H=Q==null?void 0:Q.shared)!=null?H:{},Z=U in q?q[U]:V;return[Z,function($){Byond.sendMessage({type:"setSharedState",key:U,value:JSON.stringify(typeof $=="function"?$(Z):$)||""})}]},L=function(){return h.dispatch},N=function(U){return U(h==null?void 0:h.getState())}},33084:function(M,j,t){"use strict";t.d(j,{Gg:function(){return _},kv:function(){return A},sh:function(){return u},yc:function(){return I}});var e=t(28324),s=t(69344),n=t(36824),r=t(37756);/** + */function x(U,V){(V==null||V>U.length)&&(V=U.length);for(var z=0,Q=new Array(V);z=U.length?{done:!0}:{done:!1,value:U[Q++]}}}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=(0,v.m)("backend"),h,l=function(U){h=U},f=(0,i.Uh)("backend/update"),p=(0,i.Uh)("backend/setSharedState"),C=(0,i.Uh)("backend/suspendStart"),y=function(){return{type:"backend/suspendSuccess",payload:{timestamp:Date.now()}}},b={config:{},data:{},shared:{},suspended:Date.now(),suspending:!1},O=function(U,V){U===void 0&&(U=b);var z=V.type,Q=V.payload;if(z==="backend/update"){var H=d({},U.config,Q.config),q=d({},U.data,Q.static_data,Q.data),Z=d({},U.shared);if(Q.shared)for(var $=m(Object.keys(Q.shared)),G;!(G=$()).done;){var Y=G.value,ee=Q.shared[Y];ee===""?Z[Y]=void 0:Z[Y]=JSON.parse(ee)}return d({},U,{config:H,data:q,shared:Z,suspended:!1})}if(z==="backend/setSharedState"){var ae=Q.key,re=Q.nextState,le;return d({},U,{shared:d({},U.shared,(le={},le[ae]=re,le))})}if(z==="byond/ctrldown"&&r.W4.emit("byond/ctrldown"),z==="byond/ctrlup"&&r.W4.emit("byond/ctrlup"),z==="backend/suspendStart")return d({},U,{suspending:!0});if(z==="backend/suspendSuccess"){var se=Q.timestamp;return d({},U,{data:{},shared:{},config:d({},U.config,{title:"",status:1}),suspending:!1,suspended:se})}return U},I=function(U){var V,z;return function(Q){return function(H){var q=A(U.getState()).suspended,Z=H.type,$=H.payload;if(Z==="update"){U.dispatch(f($));return}if(Z==="suspend"){U.dispatch(y());return}if(Z==="ping"){Byond.sendMessage("ping/reply");return}if(Z==="byond/mousedown"&&r.W4.emit("byond/mousedown"),Z==="byond/mouseup"&&r.W4.emit("byond/mouseup"),Z==="byond/ctrldown"&&r.W4.emit("byond/ctrldown"),Z==="byond/ctrlup"&&r.W4.emit("byond/ctrlup"),Z==="backend/suspendStart"&&!z){c.log("suspending ("+Byond.windowId+")");var G=function(){return Byond.sendMessage("suspend")};G(),z=setInterval(G,2e3)}if(Z==="backend/suspendSuccess"&&((0,g.yR)(),clearInterval(z),z=void 0,Byond.winset(Byond.windowId,{"is-visible":!1}),setImmediate(function(){return(0,o.E)()})),Z==="backend/update"){var Y,ee,ae=(ee=$.config)==null||(Y=ee.window)==null?void 0:Y.fancy;V===void 0?V=ae:V!==ae&&(c.log("changing fancy mode to",ae),V=ae,Byond.winset(Byond.windowId,{titlebar:!ae,"can-resize":!ae}))}return Z==="backend/update"&&q&&(c.log("backend/update",$),(0,g.OS)(),(0,n.m)(),setImmediate(function(){e.M.mark("resume/start");var re=A(U.getState()).suspended;re||(Byond.winset(Byond.windowId,{"is-visible":!0}),e.M.mark("resume/finish"))})),Q(H)}}},_=function(U,V){V===void 0&&(V={});var z=typeof V=="object"&&V!==null&&!Array.isArray(V);if(!z){c.error("Payload for act() must be an object, got this:",V);return}Byond.sendMessage("act/"+U,V)},A=function(U){return U.backend||{}},P=function(){var U,V=h==null||(U=h.getState())==null?void 0:U.backend;return d({},V,{act:_})},T=function(U,V){var z,Q=h==null||(z=h.getState())==null?void 0:z.backend,H,q=(H=Q==null?void 0:Q.shared)!=null?H:{},Z=U in q?q[U]:V;return[Z,function($){h.dispatch(p({key:U,nextState:typeof $=="function"?$(Z):$}))}]},R=function(U,V){var z,Q=h==null||(z=h.getState())==null?void 0:z.backend,H,q=(H=Q==null?void 0:Q.shared)!=null?H:{},Z=U in q?q[U]:V;return[Z,function($){Byond.sendMessage({type:"setSharedState",key:U,value:JSON.stringify(typeof $=="function"?$(Z):$)||""})}]},L=function(){return h.dispatch},N=function(U){return U(h==null?void 0:h.getState())}},33084:function(M,j,t){"use strict";t.d(j,{Gg:function(){return _},kv:function(){return A},sh:function(){return u},yc:function(){return I}});var e=t(28324),i=t(69344),n=t(36824),r=t(37756);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function o(P,T){(T==null||T>P.length)&&(T=P.length);for(var R=0,L=new Array(T);R=0)&&(R[N]=P[N]);return R}function x(P,T){if(P){if(typeof P=="string")return o(P,T);var R=Object.prototype.toString.call(P).slice(8,-1);if(R==="Object"&&P.constructor&&(R=P.constructor.name),R==="Map"||R==="Set")return Array.from(R);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return o(P,T)}}function f(P,T){var R=typeof Symbol!="undefined"&&P[Symbol.iterator]||P["@@iterator"];if(R)return(R=R.call(P)).next.bind(R);if(Array.isArray(P)||(R=x(P))||T&&P&&typeof P.length=="number"){R&&(P=R);var L=0;return function(){return L>=P.length?{done:!0}:{done:!1,value:P[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 u=function(P){if(typeof P=="string")return P.endsWith("px")?parseFloat(P)/12+"rem":P;if(typeof P=="number")return P+"rem"},m=function(P){if(typeof P=="string")return u(P);if(typeof P=="number")return u(P*.5)},c=function(P){return!h(P)},h=function(P){return typeof P=="string"&&n.wZ.includes(P)},l=function(P){return function(T,R){(typeof R=="number"||typeof R=="string")&&(T[P]=R)}},d=function(P,T){return function(R,L){(typeof L=="number"||typeof L=="string")&&(R[P]=T(L))}},p=function(P,T){return function(R,L){L&&(R[P]=T)}},C=function(P,T,R){return function(L,N){if(typeof N=="number"||typeof N=="string")for(var U=0;UP.length)&&(T=P.length);for(var R=0,L=new Array(T);R=0)&&(R[N]=P[N]);return R}function x(P,T){if(P){if(typeof P=="string")return o(P,T);var R=Object.prototype.toString.call(P).slice(8,-1);if(R==="Object"&&P.constructor&&(R=P.constructor.name),R==="Map"||R==="Set")return Array.from(R);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return o(P,T)}}function d(P,T){var R=typeof Symbol!="undefined"&&P[Symbol.iterator]||P["@@iterator"];if(R)return(R=R.call(P)).next.bind(R);if(Array.isArray(P)||(R=x(P))||T&&P&&typeof P.length=="number"){R&&(P=R);var L=0;return function(){return L>=P.length?{done:!0}:{done:!1,value:P[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 u=function(P){if(typeof P=="string")return P.endsWith("px")?parseFloat(P)/12+"rem":P;if(typeof P=="number")return P+"rem"},m=function(P){if(typeof P=="string")return u(P);if(typeof P=="number")return u(P*.5)},c=function(P){return!h(P)},h=function(P){return typeof P=="string"&&n.wZ.includes(P)},l=function(P){return function(T,R){(typeof R=="number"||typeof R=="string")&&(T[P]=R)}},f=function(P,T){return function(R,L){(typeof L=="number"||typeof L=="string")&&(R[P]=T(L))}},p=function(P,T){return function(R,L){L&&(R[P]=T)}},C=function(P,T,R){return function(L,N){if(typeof N=="number"||typeof N=="string")for(var U=0;U=0)&&(m[h]=f[h]);return m}var v=function(f){var u=f.className,m=f.collapsing,c=f.children,h=o(f,["className","collapsing","children"]);return(0,e.jsx)("table",r({className:(0,s.iE)(["Table",m&&"Table--collapsing",u,(0,n.Gg)(h)])},(0,n.yc)(h),{children:(0,e.jsx)("tbody",{children:c})}))},g=function(f){var u=f.className,m=f.header,c=o(f,["className","header"]);return(0,e.jsx)("tr",r({className:(0,s.iE)(["Table__row",m&&"Table__row--header",u,(0,n.Gg)(f)])},(0,n.yc)(c)))},x=function(f){var u=f.className,m=f.collapsing,c=f.header,h=o(f,["className","collapsing","header"]);return(0,e.jsx)("td",r({className:(0,s.iE)(["Table__cell",m&&"Table__cell--collapsing",c&&"Table__cell--header",u,(0,n.Gg)(f)])},(0,n.yc)(h)))};v.Row=g,v.Cell=x},68644:function(M,j,t){"use strict";t.d(j,{Gg:function(){return u},bH:function(){return m},kb:function(){return p},uE:function(){return I},kv:function(){return y.kv},q:function(){return nn},cb:function(){return as},kR:function(){return al},Uv:function(){return di},wP:function(){return ll},Oe:function(){return ls},c1:function(){return cs},_c:function(){return Oa},cS:function(){return ds},Cu:function(){return Pn},ye:function(){return yi},GW:function(){return R},EF:function(){return xs},S6:function(){return Pl},Cw:function(){return Oi},Ce:function(){return bt},wJ:function(){return Mi},mo:function(){return Uo},yc:function(){return Wo},Ef:function(){return ir},Q3:function(){return mi},cH:function(){return hs},CW:function(){return At},iG:function(){return Fa},uQ:function(){return Go},fT:function(){return Sa},oJ:function(){return Xr.oJ},kZ:function(){return Va},IF:function(){return za},o5:function(){return tn}});var e=t(33496),s=t(10608),n=t(69344);/** + */function r(){return r=Object.assign||function(d){for(var u=1;u=0)&&(m[h]=d[h]);return m}var v=function(d){var u=d.className,m=d.collapsing,c=d.children,h=o(d,["className","collapsing","children"]);return(0,e.jsx)("table",r({className:(0,i.iE)(["Table",m&&"Table--collapsing",u,(0,n.Gg)(h)])},(0,n.yc)(h),{children:(0,e.jsx)("tbody",{children:c})}))},g=function(d){var u=d.className,m=d.header,c=o(d,["className","header"]);return(0,e.jsx)("tr",r({className:(0,i.iE)(["Table__row",m&&"Table__row--header",u,(0,n.Gg)(d)])},(0,n.yc)(c)))},x=function(d){var u=d.className,m=d.collapsing,c=d.header,h=o(d,["className","collapsing","header"]);return(0,e.jsx)("td",r({className:(0,i.iE)(["Table__cell",m&&"Table__cell--collapsing",c&&"Table__cell--header",u,(0,n.Gg)(d)])},(0,n.yc)(h)))};v.Row=g,v.Cell=x},68644:function(M,j,t){"use strict";t.d(j,{Gg:function(){return u},bH:function(){return m},kb:function(){return p},uE:function(){return I},kv:function(){return y.kv},q:function(){return nn},cb:function(){return as},kR:function(){return al},Uv:function(){return di},wP:function(){return ll},Oe:function(){return ls},c1:function(){return cs},_c:function(){return Oa},cS:function(){return ds},Cu:function(){return Pn},ye:function(){return yi},GW:function(){return R},EF:function(){return xs},S6:function(){return Pl},Cw:function(){return Oi},Ce:function(){return bt},wJ:function(){return Mi},mo:function(){return Uo},yc:function(){return Wo},Ef:function(){return ir},Q3:function(){return mi},cH:function(){return hs},CW:function(){return At},iG:function(){return Fa},uQ:function(){return Go},fT:function(){return Sa},oJ:function(){return Xr.oJ},kZ:function(){return Va},IF:function(){return za},o5:function(){return tn}});var e=t(33496),i=t(10608),n=t(69344);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function r(S,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(k&&k.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),k&&o(S,k)}function o(S,k){return o=Object.setPrototypeOf||function(K,B){return K.__proto__=B,K},o(S,k)}var v=function(S){return typeof S=="number"&&Number.isFinite(S)&&!Number.isNaN(S)},g=1e3/60,x=.8333,f=.001,u=function(S){"use strict";r(k,S);function k(K){var B;B=S.call(this,K)||this,B.ref=(0,n.createRef)(),B.currentValue=0;var J=K.initial,ne=K.value;return J!==void 0&&v(J)?B.currentValue=J:v(ne)&&(B.currentValue=ne),B}var W=k.prototype;return W.componentDidMount=function(){this.currentValue!==this.props.value&&this.startTicking()},W.componentWillUnmount=function(){this.stopTicking()},W.shouldComponentUpdate=function(B){return B.value!==this.props.value&&this.startTicking(),!1},W.startTicking=function(){var B=this;this.interval===void 0&&(this.interval=setInterval(function(){return B.tick()},g))},W.stopTicking=function(){this.interval!==void 0&&(clearInterval(this.interval),this.interval=void 0)},W.tick=function(){var B=this.currentValue,J=this.props.value;v(J)?this.currentValue=B*x+J*(1-x):this.stopTicking(),Math.abs(J-this.currentValue)0&&(B.setState({suppressingFlicker:!0}),clearTimeout(B.flickerTimer),B.flickerTimer=setTimeout(function(){B.setState({suppressingFlicker:!1})},J))},B.handleDragStart=function(J){var ne=B.props,te=ne.value,ue=ne.dragMatrix,ce=B.state.editing;ce||(document.body.style["pointer-events"]="none",B.ref=J.target,B.setState({dragging:!1,origin:ba(J,ue),value:te,internalValue:te}),B.timer=setTimeout(function(){B.setState({dragging:!0})},250),B.dragInterval=setInterval(function(){var ve=B.state,Ee=ve.dragging,_e=ve.value,je=B.props.onDrag;Ee&&je&&je(J,_e)},B.props.updateRate||fl),document.addEventListener("mousemove",B.handleDragMove),document.addEventListener("mouseup",B.handleDragEnd))},B.handleDragMove=function(J){var ne=B.props,te=ne.minValue,ue=ne.maxValue,ce=ne.step,ve=ne.stepPixelSize,Ee=ne.dragMatrix;B.setState(function(_e){var je=Ao({},_e),De=ba(J,Ee)-je.origin;if(_e.dragging){var Le=Number.isFinite(te)?te%ce:0;je.internalValue=(0,s.qk)(je.internalValue+De*ce/ve,te-ce,ue+ce),je.value=(0,s.qk)(je.internalValue-je.internalValue%ce+Le,te,ue),je.origin=ba(J,Ee)}else Math.abs(De)>4&&(je.dragging=!0);return je})},B.handleDragEnd=function(J){var ne=B.props,te=ne.onChange,ue=ne.onDrag,ce=B.state,ve=ce.dragging,Ee=ce.value,_e=ce.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(B.timer),clearInterval(B.dragInterval),B.setState({dragging:!1,editing:!ve,origin:null}),document.removeEventListener("mousemove",B.handleDragMove),document.removeEventListener("mouseup",B.handleDragEnd),ve)B.suppressFlicker(),te&&te(J,Ee),ue&&ue(J,Ee);else if(B.inputRef){var je=B.inputRef.current;je.value=_e;try{je.focus(),je.select()}catch(De){}}},B}var W=k.prototype;return W.render=function(){var B=this,J=this.state,ne=J.dragging,te=J.editing,ue=J.value,ce=J.suppressingFlicker,ve=this.props,Ee=ve.animated,_e=ve.value,je=ve.unit,De=ve.minValue,Le=ve.maxValue,Ne=ve.unclamped,We=ve.format,$e=ve.onChange,nt=ve.onDrag,ze=ve.children,rt=ve.height,ot=ve.lineHeight,st=ve.fontSize,ut=_e;(ne||ce)&&(ut=ue);var jt=(0,e.jsxs)(e.Fragment,{children:[Ee&&!ne&&!ce?(0,e.jsx)(u,{value:ut,format:We}):We?We(ut):ut,je?" "+je:""]}),Ct=(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:te?void 0:"none",height:rt,lineHeight:ot,fontsize:st},onBlur:function(dt){if(te){var lt;if(Ne?lt=parseFloat(dt.target.value):lt=(0,s.qk)(parseFloat(dt.target.value),De,Le),Number.isNaN(lt)){B.setState({editing:!1});return}B.setState({editing:!1,value:lt}),B.suppressFlicker(),$e&&$e(dt,lt),nt&&nt(dt,lt)}},onKeyDown:function(dt){if(dt.keyCode===13){var lt;if(Ne?lt=parseFloat(dt.target.value):lt=(0,s.qk)(parseFloat(dt.target.value),De,Le),Number.isNaN(lt)){B.setState({editing:!1});return}B.setState({editing:!1,value:lt}),B.suppressFlicker(),$e&&$e(dt,lt),nt&&nt(dt,lt);return}if(dt.keyCode===27){B.setState({editing:!1});return}}});return ze({dragging:ne,editing:te,value:_e,displayValue:ut,displayElement:jt,inputElement:Ct,handleDragStart:this.handleDragStart})},k}(n.Component);Oa.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50,dragMatrix:[1,0]};var hl=t(39840),vl=t.n(hl),jc=function(k){return Array.isArray(k)?k[0]:k},ml=function(k){if(typeof k=="function"){for(var W=arguments.length,K=new Array(W>1?W-1:0),B=1;B0&&(B.setState({suppressingFlicker:!0}),clearTimeout(B.flickerTimer),B.flickerTimer=setTimeout(function(){B.setState({suppressingFlicker:!1})},J))},B.handleDragStart=function(J){var ne=B.props,te=ne.value,ue=ne.dragMatrix,ce=B.state.editing;ce||(document.body.style["pointer-events"]="none",B.ref=J.target,B.setState({dragging:!1,origin:ba(J,ue),value:te,internalValue:te}),B.timer=setTimeout(function(){B.setState({dragging:!0})},250),B.dragInterval=setInterval(function(){var ve=B.state,Ee=ve.dragging,_e=ve.value,je=B.props.onDrag;Ee&&je&&je(J,_e)},B.props.updateRate||fl),document.addEventListener("mousemove",B.handleDragMove),document.addEventListener("mouseup",B.handleDragEnd))},B.handleDragMove=function(J){var ne=B.props,te=ne.minValue,ue=ne.maxValue,ce=ne.step,ve=ne.stepPixelSize,Ee=ne.dragMatrix;B.setState(function(_e){var je=Ao({},_e),De=ba(J,Ee)-je.origin;if(_e.dragging){var Le=Number.isFinite(te)?te%ce:0;je.internalValue=(0,i.qk)(je.internalValue+De*ce/ve,te-ce,ue+ce),je.value=(0,i.qk)(je.internalValue-je.internalValue%ce+Le,te,ue),je.origin=ba(J,Ee)}else Math.abs(De)>4&&(je.dragging=!0);return je})},B.handleDragEnd=function(J){var ne=B.props,te=ne.onChange,ue=ne.onDrag,ce=B.state,ve=ce.dragging,Ee=ce.value,_e=ce.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(B.timer),clearInterval(B.dragInterval),B.setState({dragging:!1,editing:!ve,origin:null}),document.removeEventListener("mousemove",B.handleDragMove),document.removeEventListener("mouseup",B.handleDragEnd),ve)B.suppressFlicker(),te&&te(J,Ee),ue&&ue(J,Ee);else if(B.inputRef){var je=B.inputRef.current;je.value=_e;try{je.focus(),je.select()}catch(De){}}},B}var W=k.prototype;return W.render=function(){var B=this,J=this.state,ne=J.dragging,te=J.editing,ue=J.value,ce=J.suppressingFlicker,ve=this.props,Ee=ve.animated,_e=ve.value,je=ve.unit,De=ve.minValue,Le=ve.maxValue,Ne=ve.unclamped,We=ve.format,$e=ve.onChange,nt=ve.onDrag,ze=ve.children,rt=ve.height,ot=ve.lineHeight,st=ve.fontSize,ut=_e;(ne||ce)&&(ut=ue);var jt=(0,e.jsxs)(e.Fragment,{children:[Ee&&!ne&&!ce?(0,e.jsx)(u,{value:ut,format:We}):We?We(ut):ut,je?" "+je:""]}),Ct=(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:te?void 0:"none",height:rt,lineHeight:ot,fontsize:st},onBlur:function(dt){if(te){var lt;if(Ne?lt=parseFloat(dt.target.value):lt=(0,i.qk)(parseFloat(dt.target.value),De,Le),Number.isNaN(lt)){B.setState({editing:!1});return}B.setState({editing:!1,value:lt}),B.suppressFlicker(),$e&&$e(dt,lt),nt&&nt(dt,lt)}},onKeyDown:function(dt){if(dt.keyCode===13){var lt;if(Ne?lt=parseFloat(dt.target.value):lt=(0,i.qk)(parseFloat(dt.target.value),De,Le),Number.isNaN(lt)){B.setState({editing:!1});return}B.setState({editing:!1,value:lt}),B.suppressFlicker(),$e&&$e(dt,lt),nt&&nt(dt,lt);return}if(dt.keyCode===27){B.setState({editing:!1});return}}});return ze({dragging:ne,editing:te,value:_e,displayValue:ut,displayElement:jt,inputElement:Ct,handleDragStart:this.handleDragStart})},k}(n.Component);Oa.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50,dragMatrix:[1,0]};var hl=t(39840),vl=t.n(hl),jc=function(k){return Array.isArray(k)?k[0]:k},ml=function(k){if(typeof k=="function"){for(var W=arguments.length,K=new Array(W>1?W-1:0),B=1;B=0)&&(W[B]=S[B]);return W}var hs=function(S){var k=S.className,W=S.value,K=S.minValue,B=K===void 0?0:K,J=S.maxValue,ne=J===void 0?1:J,te=S.color,ue=S.ranges,ce=ue===void 0?{}:ue,ve=S.children,Ee=Ro(S,["className","value","minValue","maxValue","color","ranges","children"]),_e=(0,s.aU)(W,B,ne),je=ve!==void 0,De=te||(0,s.e8)(W,ce)||"default",Le=(0,y.yc)(Ee),Ne=["ProgressBar",k,(0,y.Gg)(Ee)],We={width:(0,s.yi)(_e)*100+"%"};return Cl.wZ.includes(De)||De==="default"?Ne.push("ProgressBar--color--"+De):(Le.style=rn({},Le.style,{borderColor:De}),We.backgroundColor=De),(0,e.jsxs)("div",rn({className:(0,C.iE)(Ne)},Le,{children:[(0,e.jsx)("div",{className:"ProgressBar__fill ProgressBar__fill--animated",style:We}),(0,e.jsx)("div",{className:"ProgressBar__content",children:je?ve:(0,s.yI)(_e*100)+"%"})]}))};/** + */function rn(){return rn=Object.assign||function(S){for(var k=1;k=0)&&(W[B]=S[B]);return W}var hs=function(S){var k=S.className,W=S.value,K=S.minValue,B=K===void 0?0:K,J=S.maxValue,ne=J===void 0?1:J,te=S.color,ue=S.ranges,ce=ue===void 0?{}:ue,ve=S.children,Ee=Ro(S,["className","value","minValue","maxValue","color","ranges","children"]),_e=(0,i.aU)(W,B,ne),je=ve!==void 0,De=te||(0,i.e8)(W,ce)||"default",Le=(0,y.yc)(Ee),Ne=["ProgressBar",k,(0,y.Gg)(Ee)],We={width:(0,i.yi)(_e)*100+"%"};return Cl.wZ.includes(De)||De==="default"?Ne.push("ProgressBar--color--"+De):(Le.style=rn({},Le.style,{borderColor:De}),We.backgroundColor=De),(0,e.jsxs)("div",rn({className:(0,C.iE)(Ne)},Le,{children:[(0,e.jsx)("div",{className:"ProgressBar__fill ProgressBar__fill--animated",style:We}),(0,e.jsx)("div",{className:"ProgressBar__content",children:je?ve:(0,i.yI)(_e*100)+"%"})]}))};/** * @file * @copyright 2021 Aleksej Komarov * @license MIT @@ -187,7 +187,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function Ar(){return Ar=Object.assign||function(S){for(var k=1;k=0)&&(W[B]=S[B]);return W}var Pl=function(S){var k=S.animated,W=S.format,K=S.maxValue,B=S.minValue,J=S.unclamped,ne=S.onChange,te=S.onDrag,ue=S.step,ce=S.stepPixelSize,ve=S.suppressFlicker,Ee=S.unit,_e=S.value,je=S.className,De=S.style,Le=S.fillValue,Ne=S.color,We=S.ranges,$e=We===void 0?{}:We,nt=S.size,ze=nt===void 0?1:nt,rt=S.bipolar,ot=S.children,st=_l(S,["animated","format","maxValue","minValue","unclamped","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children"]);return(0,e.jsx)(Oa,{dragMatrix:[0,-1],animated:k,format:W,maxValue:K,minValue:B,unclamped:J,onChange:ne,onDrag:te,step:ue,stepPixelSize:ce,suppressFlicker:ve,unit:Ee,value:_e,children:function(ut){var jt=ut.dragging,Ct=ut.editing,dt=ut.value,lt=ut.displayValue,Tt=ut.displayElement,Dt=ut.inputElement,St=ut.handleDragStart,Bt=(0,s.aU)(Le!=null?Le:lt,B,K),$t=(0,s.aU)(lt,B,K),Hn=Ne||(0,s.e8)(Le!=null?Le:dt,$e)||"default",wn=Math.min(($t-.5)*270,225);return(0,e.jsxs)("div",Ar({className:(0,C.iE)(["Knob","Knob--color--"+Hn,rt&&"Knob--bipolar",je,(0,y.Gg)(st)])},(0,y.yc)(Ar({style:Ar({fontSize:ze+"em"},De)},st)),{onMouseDown:St,children:[(0,e.jsx)("div",{className:"Knob__circle",children:(0,e.jsx)("div",{className:"Knob__cursorBox",style:{transform:"rotate("+wn+"deg)"},children:(0,e.jsx)("div",{className:"Knob__cursor"})})}),jt&&(0,e.jsx)("div",{className:"Knob__popupValue",children:Tt}),(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(((rt?2.75:2)-Bt*1.5)*Math.PI*50,0)},cx:"50",cy:"50",r:"50"})}),Dt]}))}})};/** + */function Ar(){return Ar=Object.assign||function(S){for(var k=1;k=0)&&(W[B]=S[B]);return W}var Pl=function(S){var k=S.animated,W=S.format,K=S.maxValue,B=S.minValue,J=S.unclamped,ne=S.onChange,te=S.onDrag,ue=S.step,ce=S.stepPixelSize,ve=S.suppressFlicker,Ee=S.unit,_e=S.value,je=S.className,De=S.style,Le=S.fillValue,Ne=S.color,We=S.ranges,$e=We===void 0?{}:We,nt=S.size,ze=nt===void 0?1:nt,rt=S.bipolar,ot=S.children,st=_l(S,["animated","format","maxValue","minValue","unclamped","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children"]);return(0,e.jsx)(Oa,{dragMatrix:[0,-1],animated:k,format:W,maxValue:K,minValue:B,unclamped:J,onChange:ne,onDrag:te,step:ue,stepPixelSize:ce,suppressFlicker:ve,unit:Ee,value:_e,children:function(ut){var jt=ut.dragging,Ct=ut.editing,dt=ut.value,lt=ut.displayValue,Tt=ut.displayElement,Dt=ut.inputElement,St=ut.handleDragStart,Bt=(0,i.aU)(Le!=null?Le:lt,B,K),$t=(0,i.aU)(lt,B,K),Hn=Ne||(0,i.e8)(Le!=null?Le:dt,$e)||"default",wn=Math.min(($t-.5)*270,225);return(0,e.jsxs)("div",Ar({className:(0,C.iE)(["Knob","Knob--color--"+Hn,rt&&"Knob--bipolar",je,(0,y.Gg)(st)])},(0,y.yc)(Ar({style:Ar({fontSize:ze+"em"},De)},st)),{onMouseDown:St,children:[(0,e.jsx)("div",{className:"Knob__circle",children:(0,e.jsx)("div",{className:"Knob__cursorBox",style:{transform:"rotate("+wn+"deg)"},children:(0,e.jsx)("div",{className:"Knob__cursor"})})}),jt&&(0,e.jsx)("div",{className:"Knob__popupValue",children:Tt}),(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(((rt?2.75:2)-Bt*1.5)*Math.PI*50,0)},cx:"50",cy:"50",r:"50"})}),Dt]}))}})};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -203,7 +203,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function eo(){return eo=Object.assign||function(S){for(var k=1;k=0)&&(W[B]=S[B]);return W}var Mi=function(S){var k=S.className,W=S.children,K=S.onEnter,B=Pi(S,["className","children","onEnter"]),J;return K&&(J=function(ne){var te=ne.which||ne.keyCode;te===13&&K(ne)}),(0,e.jsx)(ls,{onKeyDown:J,children:(0,e.jsx)("div",eo({className:(0,C.iE)(["Modal",k,(0,y.Gg)(B)])},(0,y.yc)(B),{children:W}))})},Ua=t(45280);function No(){return No=Object.assign||function(S){for(var k=1;k500&&(_e=500);var je=ce.offsetY-256*Ee;return je<-200&&(je=-200),je>200&&(je=200),ce.offsetX=_e,ce.offsetY=je,K.onZoom&&K.onZoom(ce.zoom),ce})},B}var W=k.prototype;return W.render=function(){var B=(0,Ua.yy)(this.context).config,J=this.state,ne=J.dragging,te=J.offsetX,ue=J.offsetY,ce=J.zoom,ve=ce===void 0?1:ce,Ee=this.props.children,_e=B.map+"_nanomap_z"+B.mapZLevel+".png",je=Di*ve+"px",De={width:je,height:je,"margin-top":ue+"px","margin-left":te+"px",overflow:"hidden",position:"relative","background-image":"url("+_e+")","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:ne?"move":"auto"};return(0,e.jsxs)(y.kv,{className:"NanoMap__container",children:[(0,e.jsx)(y.kv,{style:De,textAlign:"center",onMouseDown:this.handleDragStart,onClick:this.handleOnClick,children:(0,e.jsx)(y.kv,{children:Ee})}),(0,e.jsx)(Si,{zoom:ve,onZoom:this.handleZoom})]})},k}(n.Component),or=function(S,k){var W=S.x,K=S.y,B=S.zoom,J=B===void 0?1:B,ne=S.icon,te=S.tooltip,ue=S.color,ce=S.onClick,ve=function(je){Ka(je),ce&&ce(je)},Ee=W*2*J-J-3,_e=K*2*J-J-3;return(0,e.jsx)("div",{children:(0,e.jsxs)(y.kv,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:_e+"px",left:Ee+"px",onMouseDown:ve,children:[(0,e.jsx)(R,{name:ne,color:ue,fontSize:"6px"}),(0,e.jsx)(tn,{content:te})]})})};Uo.Marker=or;var Si=function(S){var k=(0,Ua.yy)(),W=k.act,K=k.config,B=k.data;return(0,e.jsx)(y.kv,{className:"NanoMap__zoomer",children:(0,e.jsxs)(bt,{children:[(0,e.jsx)(bt.Item,{label:"Zoom",children:(0,e.jsx)(Go,{minValue:"1",maxValue:"8",stepPixelSize:"10",format:function(J){return J+"x"},value:S.zoom,onDrag:function(J,ne){return S.onZoom(J,ne)}})}),(0,e.jsx)(bt.Item,{label:"Z-Level",children:B.map_levels.sort(function(J,ne){return Number(J)-Number(ne)}).map(function(J){return(0,e.jsx)(nn,{selected:~~J===~~K.mapZLevel,content:J,onClick:function(){W("setZLevel",{mapZLevel:J})}},J)})})]})})};Uo.Zoomer=Si;/** + */function eo(){return eo=Object.assign||function(S){for(var k=1;k=0)&&(W[B]=S[B]);return W}var Mi=function(S){var k=S.className,W=S.children,K=S.onEnter,B=Pi(S,["className","children","onEnter"]),J;return K&&(J=function(ne){var te=ne.which||ne.keyCode;te===13&&K(ne)}),(0,e.jsx)(ls,{onKeyDown:J,children:(0,e.jsx)("div",eo({className:(0,C.iE)(["Modal",k,(0,y.Gg)(B)])},(0,y.yc)(B),{children:W}))})},Ua=t(45280);function No(){return No=Object.assign||function(S){for(var k=1;k500&&(_e=500);var je=ce.offsetY-256*Ee;return je<-200&&(je=-200),je>200&&(je=200),ce.offsetX=_e,ce.offsetY=je,K.onZoom&&K.onZoom(ce.zoom),ce})},B}var W=k.prototype;return W.render=function(){var B=(0,Ua.yy)(this.context).config,J=this.state,ne=J.dragging,te=J.offsetX,ue=J.offsetY,ce=J.zoom,ve=ce===void 0?1:ce,Ee=this.props.children,_e=B.map+"_nanomap_z"+B.mapZLevel+".png",je=Di*ve+"px",De={width:je,height:je,"margin-top":ue+"px","margin-left":te+"px",overflow:"hidden",position:"relative","background-image":"url("+_e+")","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:ne?"move":"auto"};return(0,e.jsxs)(y.kv,{className:"NanoMap__container",children:[(0,e.jsx)(y.kv,{style:De,textAlign:"center",onMouseDown:this.handleDragStart,onClick:this.handleOnClick,children:(0,e.jsx)(y.kv,{children:Ee})}),(0,e.jsx)(Si,{zoom:ve,onZoom:this.handleZoom})]})},k}(n.Component),or=function(S,k){var W=S.x,K=S.y,B=S.zoom,J=B===void 0?1:B,ne=S.icon,te=S.tooltip,ue=S.color,ce=S.onClick,ve=function(je){Ka(je),ce&&ce(je)},Ee=W*2*J-J-3,_e=K*2*J-J-3;return(0,e.jsx)("div",{children:(0,e.jsxs)(y.kv,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:_e+"px",left:Ee+"px",onMouseDown:ve,children:[(0,e.jsx)(R,{name:ne,color:ue,fontSize:"6px"}),(0,e.jsx)(tn,{content:te})]})})};Uo.Marker=or;var Si=function(S){var k=(0,Ua.yy)(),W=k.act,K=k.config,B=k.data;return(0,e.jsx)(y.kv,{className:"NanoMap__zoomer",children:(0,e.jsxs)(bt,{children:[(0,e.jsx)(bt.Item,{label:"Zoom",children:(0,e.jsx)(Go,{minValue:"1",maxValue:"8",stepPixelSize:"10",format:function(J){return J+"x"},value:S.zoom,onDrag:function(J,ne){return S.onZoom(J,ne)}})}),(0,e.jsx)(bt.Item,{label:"Z-Level",children:B.map_levels.sort(function(J,ne){return Number(J)-Number(ne)}).map(function(J){return(0,e.jsx)(nn,{selected:~~J===~~K.mapZLevel,content:J,onClick:function(){W("setZLevel",{mapZLevel:J})}},J)})})]})})};Uo.Zoomer=Si;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -211,7 +211,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function Mn(){return Mn=Object.assign||function(S){for(var k=1;k0&&(B.setState({suppressingFlicker:!0}),clearTimeout(B.flickerTimer),B.flickerTimer=setTimeout(function(){return B.setState({suppressingFlicker:!1})},ne))},B.handleDragStart=function(ne){var te=B.props.value,ue=B.state.editing;ue||(document.body.style["pointer-events"]="none",B.ref=ne.target,B.setState({dragging:!1,origin:ne.screenY,value:te,internalValue:te}),B.timer=setTimeout(function(){B.setState({dragging:!0})},250),B.dragInterval=setInterval(function(){var ce=B.state,ve=ce.dragging,Ee=ce.value,_e=B.props.onDrag;ve&&_e&&_e(ne,Ee)},B.props.updateRate||Al),document.addEventListener("mousemove",B.handleDragMove),document.addEventListener("mouseup",B.handleDragEnd))},B.handleDragMove=function(ne){var te=B.props,ue=te.minValue,ce=te.maxValue,ve=te.step,Ee=te.stepPixelSize;B.setState(function(_e){var je=Mn({},_e),De=je.origin-ne.screenY;if(_e.dragging){var Le=Number.isFinite(ue)?ue%ve:0;je.internalValue=(0,s.qk)(je.internalValue+De*ve/Ee,ue-ve,ce+ve),je.value=(0,s.qk)(je.internalValue-je.internalValue%ve+Le,ue,ce),je.origin=ne.screenY}else Math.abs(De)>4&&(je.dragging=!0);return je})},B.handleDragEnd=function(ne){var te=B.props,ue=te.onChange,ce=te.onDrag,ve=B.state,Ee=ve.dragging,_e=ve.value,je=ve.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(B.timer),clearInterval(B.dragInterval),B.setState({dragging:!1,editing:!Ee,origin:null}),document.removeEventListener("mousemove",B.handleDragMove),document.removeEventListener("mouseup",B.handleDragEnd),Ee)B.suppressFlicker(),ue&&ue(ne,_e),ce&&ce(ne,_e);else if(B.inputRef){var De=B.inputRef.current;De.value=je;try{De.focus(),De.select()}catch(Le){}}},B}var W=k.prototype;return W.render=function(){var B=this,J=this.state,ne=J.dragging,te=J.editing,ue=J.value,ce=J.suppressingFlicker,ve=this.props,Ee=ve.className,_e=ve.fluid,je=ve.animated,De=ve.value,Le=ve.unit,Ne=ve.minValue,We=ve.maxValue,$e=ve.height,nt=ve.width,ze=ve.lineHeight,rt=ve.fontSize,ot=ve.format,st=ve.onChange,ut=ve.onDrag,jt=De;(ne||ce)&&(jt=ue);var Ct=(0,e.jsxs)("div",{className:"NumberInput__content",children:[je&&!ne&&!ce?(0,e.jsx)(u,{value:jt,format:ot}):ot?ot(jt):jt,Le?" "+Le:""]});return(0,e.jsxs)(y.kv,{className:(0,C.iE)(["NumberInput",_e&&"NumberInput--fluid",Ee]),minWidth:nt,minHeight:$e,lineHeight:ze,fontSize:rt,onMouseDown:this.handleDragStart,children:[(0,e.jsx)("div",{className:"NumberInput__barContainer",children:(0,e.jsx)("div",{className:"NumberInput__bar",style:{height:(0,s.qk)((jt-Ne)/(We-Ne)*100,0,100)+"%"}})}),Ct,(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:te?void 0:"none",height:$e,lineHeight:ze,fontSize:rt},onBlur:function(dt){if(te){var lt=(0,s.qk)(parseFloat(dt.target.value),Ne,We);if(Number.isNaN(lt)){B.setState({editing:!1});return}B.setState({editing:!1,value:lt}),B.suppressFlicker(),st&&st(dt,lt),ut&&ut(dt,lt)}},onKeyDown:function(dt){if(dt.keyCode===13){var lt=(0,s.qk)(parseFloat(dt.target.value),Ne,We);if(Number.isNaN(lt)){B.setState({editing:!1});return}B.setState({editing:!1,value:lt}),B.suppressFlicker(),st&&st(dt,lt),ut&&ut(dt,lt);return}if(dt.keyCode===27){B.setState({editing:!1});return}}})]})},k}(n.Component);ir.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50};function Rr(){return Rr=Object.assign||function(S){for(var k=1;k=0)&&(W[B]=S[B]);return W}function Fo(S,k){return Fo=Object.setPrototypeOf||function(K,B){return K.__proto__=B,K},Fo(S,k)}var no=0,sr=1e4,Pt=function(S,k,W,K){var B=k||no,J=W||W===0?W:sr;if(!S||!S.length)return String(B);var ne=K?parseFloat(S.replace(/[^\-\d.]/g,"")):parseInt(S.replace(/[^\-\d]/g,""),10);return isNaN(ne)?String(B):String((0,s.qk)(ne,B,J))},At=function(S){"use strict";to(k,S);function k(K){var B;return B=S.call(this,K)||this,B.inputRef=(0,n.createRef)(),B.state={editing:!1},B.handleBlur=function(J){var ne=B.state.editing;ne&&B.setEditing(!1)},B.handleChange=function(J){var ne=B.props,te=ne.maxValue,ue=ne.minValue,ce=ne.onChange,ve=ne.allowFloats;J.target.value=Pt(J.target.value,ue,te,ve),ce&&ce(J,+J.target.value)},B.handleFocus=function(J){var ne=B.state.editing;ne||B.setEditing(!0)},B.handleInput=function(J){var ne=B.state.editing,te=B.props.onInput;ne||B.setEditing(!0),te&&te(J,+J.target.value)},B.handleKeyDown=function(J){var ne=B.props,te=ne.maxValue,ue=ne.minValue,ce=ne.onChange,ve=ne.onEnter,Ee=ne.allowFloats;if(J.keyCode===_.kt){var _e=Pt(J.target.value,ue,te,Ee);B.setEditing(!1),ce&&ce(J,+_e),ve&&ve(J,+_e),J.target.blur();return}if(J.keyCode===_.ER){if(B.props.onEscape){B.props.onEscape(J);return}B.setEditing(!1),J.target.value=B.props.value,J.target.blur();return}},B}var W=k.prototype;return W.componentDidMount=function(){var B=this,J,ne=this.props,te=ne.maxValue,ue=ne.minValue,ce=ne.allowFloats,ve=(J=this.props.value)==null?void 0:J.toString(),Ee=this.inputRef.current;Ee&&(Ee.value=Pt(ve,ue,te,ce)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){Ee.focus(),B.props.autoSelect&&Ee.select()},1)},W.componentDidUpdate=function(B,J){var ne,te,ue=this.props,ce=ue.maxValue,ve=ue.minValue,Ee=ue.allowFloats,_e=this.state.editing,je=(ne=B.value)==null?void 0:ne.toString(),De=(te=this.props.value)==null?void 0:te.toString(),Le=this.inputRef.current;Le&&!_e&&De!==je&&De!==Le.value&&(Le.value=Pt(De,ve,ce,Ee))},W.setEditing=function(B){this.setState({editing:B})},W.render=function(){var B=this.props,J=B.onChange,ne=B.onEnter,te=B.onInput,ue=B.value,ce=Ko(B,["onChange","onEnter","onInput","value"]),ve=ce.className,Ee=ce.fluid,_e=ce.monospace,je=Ko(ce,["className","fluid","monospace"]);return(0,e.jsxs)(y.kv,Rr({className:(0,C.iE)(["Input",Ee&&"Input--fluid",_e&&"Input--monospace",ve])},je,{children:[(0,e.jsx)("div",{className:"Input__baseline",children:"."}),(0,e.jsx)("input",{className:"Input__input",onChange:this.handleChange,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,ref:this.inputRef,type:"number"})]}))},k}(n.Component);/** + */function Mn(){return Mn=Object.assign||function(S){for(var k=1;k0&&(B.setState({suppressingFlicker:!0}),clearTimeout(B.flickerTimer),B.flickerTimer=setTimeout(function(){return B.setState({suppressingFlicker:!1})},ne))},B.handleDragStart=function(ne){var te=B.props.value,ue=B.state.editing;ue||(document.body.style["pointer-events"]="none",B.ref=ne.target,B.setState({dragging:!1,origin:ne.screenY,value:te,internalValue:te}),B.timer=setTimeout(function(){B.setState({dragging:!0})},250),B.dragInterval=setInterval(function(){var ce=B.state,ve=ce.dragging,Ee=ce.value,_e=B.props.onDrag;ve&&_e&&_e(ne,Ee)},B.props.updateRate||Al),document.addEventListener("mousemove",B.handleDragMove),document.addEventListener("mouseup",B.handleDragEnd))},B.handleDragMove=function(ne){var te=B.props,ue=te.minValue,ce=te.maxValue,ve=te.step,Ee=te.stepPixelSize;B.setState(function(_e){var je=Mn({},_e),De=je.origin-ne.screenY;if(_e.dragging){var Le=Number.isFinite(ue)?ue%ve:0;je.internalValue=(0,i.qk)(je.internalValue+De*ve/Ee,ue-ve,ce+ve),je.value=(0,i.qk)(je.internalValue-je.internalValue%ve+Le,ue,ce),je.origin=ne.screenY}else Math.abs(De)>4&&(je.dragging=!0);return je})},B.handleDragEnd=function(ne){var te=B.props,ue=te.onChange,ce=te.onDrag,ve=B.state,Ee=ve.dragging,_e=ve.value,je=ve.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(B.timer),clearInterval(B.dragInterval),B.setState({dragging:!1,editing:!Ee,origin:null}),document.removeEventListener("mousemove",B.handleDragMove),document.removeEventListener("mouseup",B.handleDragEnd),Ee)B.suppressFlicker(),ue&&ue(ne,_e),ce&&ce(ne,_e);else if(B.inputRef){var De=B.inputRef.current;De.value=je;try{De.focus(),De.select()}catch(Le){}}},B}var W=k.prototype;return W.render=function(){var B=this,J=this.state,ne=J.dragging,te=J.editing,ue=J.value,ce=J.suppressingFlicker,ve=this.props,Ee=ve.className,_e=ve.fluid,je=ve.animated,De=ve.value,Le=ve.unit,Ne=ve.minValue,We=ve.maxValue,$e=ve.height,nt=ve.width,ze=ve.lineHeight,rt=ve.fontSize,ot=ve.format,st=ve.onChange,ut=ve.onDrag,jt=De;(ne||ce)&&(jt=ue);var Ct=(0,e.jsxs)("div",{className:"NumberInput__content",children:[je&&!ne&&!ce?(0,e.jsx)(u,{value:jt,format:ot}):ot?ot(jt):jt,Le?" "+Le:""]});return(0,e.jsxs)(y.kv,{className:(0,C.iE)(["NumberInput",_e&&"NumberInput--fluid",Ee]),minWidth:nt,minHeight:$e,lineHeight:ze,fontSize:rt,onMouseDown:this.handleDragStart,children:[(0,e.jsx)("div",{className:"NumberInput__barContainer",children:(0,e.jsx)("div",{className:"NumberInput__bar",style:{height:(0,i.qk)((jt-Ne)/(We-Ne)*100,0,100)+"%"}})}),Ct,(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:te?void 0:"none",height:$e,lineHeight:ze,fontSize:rt},onBlur:function(dt){if(te){var lt=(0,i.qk)(parseFloat(dt.target.value),Ne,We);if(Number.isNaN(lt)){B.setState({editing:!1});return}B.setState({editing:!1,value:lt}),B.suppressFlicker(),st&&st(dt,lt),ut&&ut(dt,lt)}},onKeyDown:function(dt){if(dt.keyCode===13){var lt=(0,i.qk)(parseFloat(dt.target.value),Ne,We);if(Number.isNaN(lt)){B.setState({editing:!1});return}B.setState({editing:!1,value:lt}),B.suppressFlicker(),st&&st(dt,lt),ut&&ut(dt,lt);return}if(dt.keyCode===27){B.setState({editing:!1});return}}})]})},k}(n.Component);ir.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50};function Rr(){return Rr=Object.assign||function(S){for(var k=1;k=0)&&(W[B]=S[B]);return W}function Fo(S,k){return Fo=Object.setPrototypeOf||function(K,B){return K.__proto__=B,K},Fo(S,k)}var no=0,sr=1e4,Pt=function(S,k,W,K){var B=k||no,J=W||W===0?W:sr;if(!S||!S.length)return String(B);var ne=K?parseFloat(S.replace(/[^\-\d.]/g,"")):parseInt(S.replace(/[^\-\d]/g,""),10);return isNaN(ne)?String(B):String((0,i.qk)(ne,B,J))},At=function(S){"use strict";to(k,S);function k(K){var B;return B=S.call(this,K)||this,B.inputRef=(0,n.createRef)(),B.state={editing:!1},B.handleBlur=function(J){var ne=B.state.editing;ne&&B.setEditing(!1)},B.handleChange=function(J){var ne=B.props,te=ne.maxValue,ue=ne.minValue,ce=ne.onChange,ve=ne.allowFloats;J.target.value=Pt(J.target.value,ue,te,ve),ce&&ce(J,+J.target.value)},B.handleFocus=function(J){var ne=B.state.editing;ne||B.setEditing(!0)},B.handleInput=function(J){var ne=B.state.editing,te=B.props.onInput;ne||B.setEditing(!0),te&&te(J,+J.target.value)},B.handleKeyDown=function(J){var ne=B.props,te=ne.maxValue,ue=ne.minValue,ce=ne.onChange,ve=ne.onEnter,Ee=ne.allowFloats;if(J.keyCode===_.kt){var _e=Pt(J.target.value,ue,te,Ee);B.setEditing(!1),ce&&ce(J,+_e),ve&&ve(J,+_e),J.target.blur();return}if(J.keyCode===_.ER){if(B.props.onEscape){B.props.onEscape(J);return}B.setEditing(!1),J.target.value=B.props.value,J.target.blur();return}},B}var W=k.prototype;return W.componentDidMount=function(){var B=this,J,ne=this.props,te=ne.maxValue,ue=ne.minValue,ce=ne.allowFloats,ve=(J=this.props.value)==null?void 0:J.toString(),Ee=this.inputRef.current;Ee&&(Ee.value=Pt(ve,ue,te,ce)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){Ee.focus(),B.props.autoSelect&&Ee.select()},1)},W.componentDidUpdate=function(B,J){var ne,te,ue=this.props,ce=ue.maxValue,ve=ue.minValue,Ee=ue.allowFloats,_e=this.state.editing,je=(ne=B.value)==null?void 0:ne.toString(),De=(te=this.props.value)==null?void 0:te.toString(),Le=this.inputRef.current;Le&&!_e&&De!==je&&De!==Le.value&&(Le.value=Pt(De,ve,ce,Ee))},W.setEditing=function(B){this.setState({editing:B})},W.render=function(){var B=this.props,J=B.onChange,ne=B.onEnter,te=B.onInput,ue=B.value,ce=Ko(B,["onChange","onEnter","onInput","value"]),ve=ce.className,Ee=ce.fluid,_e=ce.monospace,je=Ko(ce,["className","fluid","monospace"]);return(0,e.jsxs)(y.kv,Rr({className:(0,C.iE)(["Input",Ee&&"Input--fluid",_e&&"Input--monospace",ve])},je,{children:[(0,e.jsx)("div",{className:"Input__baseline",children:"."}),(0,e.jsx)("input",{className:"Input__input",onChange:this.handleChange,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,ref:this.inputRef,type:"number"})]}))},k}(n.Component);/** * @file * @copyright 2020 bobbahbrown (https://github.com/bobbahbrown) * @license MIT @@ -223,7 +223,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function Ga(){return Ga=Object.assign||function(S){for(var k=1;k=0)&&(W[B]=S[B]);return W}var Go=function(S){var k=S.animated,W=S.format,K=S.maxValue,B=S.minValue,J=S.onChange,ne=S.onDrag,te=S.step,ue=S.stepPixelSize,ce=S.suppressFlicker,ve=S.unit,Ee=S.value,_e=S.className,je=S.fillValue,De=S.color,Le=S.ranges,Ne=Le===void 0?{}:Le,We=S.children,$e=Cs(S,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children"]),nt=We!==void 0;return(0,e.jsx)(Oa,{dragMatrix:[1,0],animated:k,format:W,maxValue:K,minValue:B,onChange:J,onDrag:ne,step:te,stepPixelSize:ue,suppressFlicker:ce,unit:ve,value:Ee,children:function(ze){var rt=ze.dragging,ot=ze.editing,st=ze.value,ut=ze.displayValue,jt=ze.displayElement,Ct=ze.inputElement,dt=ze.handleDragStart,lt=je!=null,Tt=(0,s.aU)(st,B,K),Dt=(0,s.aU)(je!=null?je:ut,B,K),St=(0,s.aU)(ut,B,K),Bt=De||(0,s.e8)(je!=null?je:st,Ne)||"default";return(0,e.jsxs)("div",Ga({className:(0,C.iE)(["Slider","ProgressBar","ProgressBar--color--"+Bt,_e,(0,y.Gg)($e)])},(0,y.yc)($e),{onMouseDown:dt,children:[(0,e.jsx)("div",{className:(0,C.iE)(["ProgressBar__fill",lt&&"ProgressBar__fill--animated"]),style:{width:(0,s.yi)(Dt)*100+"%",opacity:.4}}),(0,e.jsx)("div",{className:"ProgressBar__fill",style:{width:(0,s.yi)(Math.min(Dt,St))*100+"%"}}),(0,e.jsxs)("div",{className:"Slider__cursorOffset",style:{width:(0,s.yi)(St)*100+"%"},children:[(0,e.jsx)("div",{className:"Slider__cursor"}),(0,e.jsx)("div",{className:"Slider__pointer"}),rt&&(0,e.jsx)("div",{className:"Slider__popupValue",children:jt})]}),(0,e.jsx)("div",{className:"ProgressBar__content",children:nt?We:jt}),Ct]}))}})},Tl=function(S){return _jsxs(Box,{style:S.style,children:[_jsxs(Box,{className:"Section__title",style:S.titleStyle,children:[_jsx(Box,{className:"Section__titleText",style:S.textStyle,children:S.title}),_jsx("div",{className:"Section__buttons",children:S.titleSubtext})]}),_jsx(Box,{className:"Section__rest",children:_jsx(Box,{className:"Section__content",children:S.children})})]})};/** + */function Ga(){return Ga=Object.assign||function(S){for(var k=1;k=0)&&(W[B]=S[B]);return W}var Go=function(S){var k=S.animated,W=S.format,K=S.maxValue,B=S.minValue,J=S.onChange,ne=S.onDrag,te=S.step,ue=S.stepPixelSize,ce=S.suppressFlicker,ve=S.unit,Ee=S.value,_e=S.className,je=S.fillValue,De=S.color,Le=S.ranges,Ne=Le===void 0?{}:Le,We=S.children,$e=Cs(S,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children"]),nt=We!==void 0;return(0,e.jsx)(Oa,{dragMatrix:[1,0],animated:k,format:W,maxValue:K,minValue:B,onChange:J,onDrag:ne,step:te,stepPixelSize:ue,suppressFlicker:ce,unit:ve,value:Ee,children:function(ze){var rt=ze.dragging,ot=ze.editing,st=ze.value,ut=ze.displayValue,jt=ze.displayElement,Ct=ze.inputElement,dt=ze.handleDragStart,lt=je!=null,Tt=(0,i.aU)(st,B,K),Dt=(0,i.aU)(je!=null?je:ut,B,K),St=(0,i.aU)(ut,B,K),Bt=De||(0,i.e8)(je!=null?je:st,Ne)||"default";return(0,e.jsxs)("div",Ga({className:(0,C.iE)(["Slider","ProgressBar","ProgressBar--color--"+Bt,_e,(0,y.Gg)($e)])},(0,y.yc)($e),{onMouseDown:dt,children:[(0,e.jsx)("div",{className:(0,C.iE)(["ProgressBar__fill",lt&&"ProgressBar__fill--animated"]),style:{width:(0,i.yi)(Dt)*100+"%",opacity:.4}}),(0,e.jsx)("div",{className:"ProgressBar__fill",style:{width:(0,i.yi)(Math.min(Dt,St))*100+"%"}}),(0,e.jsxs)("div",{className:"Slider__cursorOffset",style:{width:(0,i.yi)(St)*100+"%"},children:[(0,e.jsx)("div",{className:"Slider__cursor"}),(0,e.jsx)("div",{className:"Slider__pointer"}),rt&&(0,e.jsx)("div",{className:"Slider__popupValue",children:jt})]}),(0,e.jsx)("div",{className:"ProgressBar__content",children:nt?We:jt}),Ct]}))}})},Tl=function(S){return _jsxs(Box,{style:S.style,children:[_jsxs(Box,{className:"Section__title",style:S.titleStyle,children:[_jsx(Box,{className:"Section__titleText",style:S.textStyle,children:S.title}),_jsx("div",{className:"Section__buttons",children:S.titleSubtext})]}),_jsx(Box,{className:"Section__rest",children:_jsx(Box,{className:"Section__content",children:S.children})})]})};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -236,139 +236,139 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */},36824:function(M,j,t){"use strict";t.d(j,{AL:function(){return m},Ax:function(){return n},GE:function(){return u},Ut:function(){return x},ic:function(){return e},m8:function(){return s},ol:function(){return r},wZ:function(){return g},yY:function(){return v}});/** + */},36824:function(M,j,t){"use strict";t.d(j,{AL:function(){return m},Ax:function(){return n},GE:function(){return u},Ut:function(){return x},ic:function(){return e},m8:function(){return i},ol:function(){return r},wZ:function(){return g},yY:function(){return v}});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var e=273.15,s=2,n=1,r=0,o=null,v={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"}},g=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"],x=[{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"}],f=[{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"}],u=function(h,l){if(!h)return l||"None";for(var d=h.toLowerCase(),p=h.replace(/(^\w{1})|(\s+\w{1})/g,function(y){return y.toUpperCase()}),C=0;C0&&re[re.length-1])&&(he[0]===6||he[0]===2)){se=0;continue}if(he[0]===3&&(!re||he[1]>re[0]&&he[1]de&&(re[se]=de-Y[se],le=!0)}return[le,re]},z=function(G){var Y;g.log("drag start"),m=!0,d=(0,s.Gw)([G.screenX,G.screenY],O()),(Y=G.target)==null||Y.focus(),document.addEventListener("mousemove",H),document.addEventListener("mouseup",Q),H(G)},Q=function(G){g.log("drag end"),H(G),document.removeEventListener("mousemove",H),document.removeEventListener("mouseup",Q),m=!1,L()},H=function(G){m&&(G.preventDefault(),_((0,s.Gw)([G.screenX,G.screenY],d)))},q=function(G,Y){return function(ee){var ae;p=[G,Y],g.log("resize start",p),c=!0,d=(0,s.Gw)([ee.screenX,ee.screenY],O()),C=I(),(ae=ee.target)==null||ae.focus(),document.addEventListener("mousemove",$),document.addEventListener("mouseup",Z),$(ee)}},Z=function(G){g.log("resize end",y),$(G),document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",Z),c=!1,L()},$=function(G){if(c){G.preventDefault();var Y=(0,s.Gw)([G.screenX,G.screenY],O()),ee=(0,s.Gw)(Y,d);y=(0,s.Ud)(C,(0,s.wP)(p,ee),[1,1]),y[0]=Math.max(y[0],150*f),y[1]=Math.max(y[1],50*f),A(y)}}},20284:function(M,j,t){"use strict";t.d(j,{Ck:function(){return o},W4:function(){return n},Wi:function(){return C},lx:function(){return p}});var e=t(4892),s=t(42480);/** + */function r(G,Y,ee,ae,re,le,se){try{var fe=G[le](se),de=fe.value}catch(he){ee(he);return}fe.done?Y(de):Promise.resolve(de).then(ae,re)}function o(G){return function(){var Y=this,ee=arguments;return new Promise(function(ae,re){var le=G.apply(Y,ee);function se(de){r(le,ae,re,se,fe,"next",de)}function fe(de){r(le,ae,re,se,fe,"throw",de)}se(void 0)})}}function v(G,Y){var ee,ae,re,le,se={label:0,sent:function(){if(re[0]&1)throw re[1];return re[1]},trys:[],ops:[]};return le={next:fe(0),throw:fe(1),return:fe(2)},typeof Symbol=="function"&&(le[Symbol.iterator]=function(){return this}),le;function fe(he){return function(me){return de([he,me])}}function de(he){if(ee)throw new TypeError("Generator is already executing.");for(;se;)try{if(ee=1,ae&&(re=he[0]&2?ae.return:he[0]?ae.throw||((re=ae.return)&&re.call(ae),0):ae.next)&&!(re=re.call(ae,he[1])).done)return re;switch(ae=0,re&&(he=[he[0]&2,re.value]),he[0]){case 0:case 1:re=he;break;case 4:return se.label++,{value:he[1],done:!1};case 5:se.label++,ae=he[1],he=[0];continue;case 7:he=se.ops.pop(),se.trys.pop();continue;default:if(re=se.trys,!(re=re.length>0&&re[re.length-1])&&(he[0]===6||he[0]===2)){se=0;continue}if(he[0]===3&&(!re||he[1]>re[0]&&he[1]de&&(re[se]=de-Y[se],le=!0)}return[le,re]},z=function(G){var Y;g.log("drag start"),m=!0,f=(0,i.Gw)([G.screenX,G.screenY],O()),(Y=G.target)==null||Y.focus(),document.addEventListener("mousemove",H),document.addEventListener("mouseup",Q),H(G)},Q=function(G){g.log("drag end"),H(G),document.removeEventListener("mousemove",H),document.removeEventListener("mouseup",Q),m=!1,L()},H=function(G){m&&(G.preventDefault(),_((0,i.Gw)([G.screenX,G.screenY],f)))},q=function(G,Y){return function(ee){var ae;p=[G,Y],g.log("resize start",p),c=!0,f=(0,i.Gw)([ee.screenX,ee.screenY],O()),C=I(),(ae=ee.target)==null||ae.focus(),document.addEventListener("mousemove",$),document.addEventListener("mouseup",Z),$(ee)}},Z=function(G){g.log("resize end",y),$(G),document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",Z),c=!1,L()},$=function(G){if(c){G.preventDefault();var Y=(0,i.Gw)([G.screenX,G.screenY],O()),ee=(0,i.Gw)(Y,f);y=(0,i.Ud)(C,(0,i.wP)(p,ee),[1,1]),y[0]=Math.max(y[0],150*d),y[1]=Math.max(y[1],50*d),A(y)}}},20284:function(M,j,t){"use strict";t.d(j,{Ck:function(){return o},W4:function(){return n},Wi:function(){return C},lx:function(){return p}});var e=t(4892),i=t(42480);/** * Normalized browser focus events and BYOND-specific focus helpers. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=new e._,r=!1,o=function(I){I===void 0&&(I={}),r=!!I.ignoreWindowFocus},v,g=!0,x=function(I,_){if(r){g=!0;return}if(v&&(clearTimeout(v),v=null),_){v=setTimeout(function(){return x(I)});return}g!==I&&(g=I,n.emit(I?"window-focus":"window-blur"),n.emit("window-focus-change",I))},f=null,u=function(I){var _=String(I.tagName).toLowerCase();return _==="input"||_==="textarea"},m=function(I){c(),f=I,f.addEventListener("blur",c)},c=function(){f&&(f.removeEventListener("blur",c),f=null)},h=null,l=null,d=[],p=function(I){d.push(I)},C=function(I){var _=d.indexOf(I);_>=0&&d.splice(_,1)},y=function(I){if(!(f||!g))for(var _=document.body;I&&I!==_;){if(d.includes(I)){if(I.contains(h))return;h=I,I.focus();return}I=I.parentElement}};window.addEventListener("mousemove",function(I){var _=I.target;_!==l&&(l=_,y(_))}),window.addEventListener("focusin",function(I){l=null,h=I.target,x(!0),u(I.target)&&m(I.target)}),window.addEventListener("focusout",function(I){l=null,x(!1,!0)}),window.addEventListener("blur",function(I){l=null,x(!1,!0)}),window.addEventListener("beforeunload",function(I){x(!1)});var b={},O=function(){"use strict";function I(A,P,T){this.event=A,this.type=P,this.code=A.keyCode,this.ctrl=A.ctrlKey,this.shift=A.shiftKey,this.alt=A.altKey,this.repeat=!!T}var _=I.prototype;return _.hasModifierKeys=function(){return this.ctrl||this.alt||this.shift},_.isModifierKey=function(){return this.code===s.KC||this.code===s.uN||this.code===s.Qj},_.isDown=function(){return this.type==="keydown"},_.isUp=function(){return this.type==="keyup"},_.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>=s.Ah&&this.code<=s.gu?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)},I}();document.addEventListener("keydown",function(I){if(!u(I.target)){var _=I.keyCode,A=new O(I,"keydown",b[_]);n.emit("keydown",A),n.emit("key",A),b[_]=!0}}),document.addEventListener("keyup",function(I){if(!u(I.target)){var _=I.keyCode,A=new O(I,"keyup");n.emit("keyup",A),n.emit("key",A),b[_]=!1}})},99992:function(M,j,t){"use strict";t.d(j,{E:function(){return e}});/** + */var n=new e._,r=!1,o=function(I){I===void 0&&(I={}),r=!!I.ignoreWindowFocus},v,g=!0,x=function(I,_){if(r){g=!0;return}if(v&&(clearTimeout(v),v=null),_){v=setTimeout(function(){return x(I)});return}g!==I&&(g=I,n.emit(I?"window-focus":"window-blur"),n.emit("window-focus-change",I))},d=null,u=function(I){var _=String(I.tagName).toLowerCase();return _==="input"||_==="textarea"},m=function(I){c(),d=I,d.addEventListener("blur",c)},c=function(){d&&(d.removeEventListener("blur",c),d=null)},h=null,l=null,f=[],p=function(I){f.push(I)},C=function(I){var _=f.indexOf(I);_>=0&&f.splice(_,1)},y=function(I){if(!(d||!g))for(var _=document.body;I&&I!==_;){if(f.includes(I)){if(I.contains(h))return;h=I,I.focus();return}I=I.parentElement}};window.addEventListener("mousemove",function(I){var _=I.target;_!==l&&(l=_,y(_))}),window.addEventListener("focusin",function(I){l=null,h=I.target,x(!0),u(I.target)&&m(I.target)}),window.addEventListener("focusout",function(I){l=null,x(!1,!0)}),window.addEventListener("blur",function(I){l=null,x(!1,!0)}),window.addEventListener("beforeunload",function(I){x(!1)});var b={},O=function(){"use strict";function I(A,P,T){this.event=A,this.type=P,this.code=A.keyCode,this.ctrl=A.ctrlKey,this.shift=A.shiftKey,this.alt=A.altKey,this.repeat=!!T}var _=I.prototype;return _.hasModifierKeys=function(){return this.ctrl||this.alt||this.shift},_.isModifierKey=function(){return this.code===i.KC||this.code===i.uN||this.code===i.Qj},_.isDown=function(){return this.type==="keydown"},_.isUp=function(){return this.type==="keyup"},_.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.Ah&&this.code<=i.gu?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)},I}();document.addEventListener("keydown",function(I){if(!u(I.target)){var _=I.keyCode,A=new O(I,"keydown",b[_]);n.emit("keydown",A),n.emit("key",A),b[_]=!0}}),document.addEventListener("keyup",function(I){if(!u(I.target)){var _=I.keyCode,A=new O(I,"keyup");n.emit("keyup",A),n.emit("key",A),b[_]=!1}})},99992:function(M,j,t){"use strict";t.d(j,{E:function(){return e}});/** * Various focus helpers. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var e=function(){Byond.winset("mapwindow.map",{focus:!0})},s=function(){Byond.winset(Byond.windowId,{focus:!0})}},96060:function(M,j,t){"use strict";t.d(j,{AB:function(){return f},WX:function(){return u},_c:function(){return n},_s:function(){return r},cp:function(){return o}});/** + */var e=function(){Byond.winset("mapwindow.map",{focus:!0})},i=function(){Byond.winset(Byond.windowId,{focus:!0})}},96060:function(M,j,t){"use strict";t.d(j,{AB:function(){return d},WX:function(){return u},_c:function(){return n},_s:function(){return r},cp:function(){return o}});/** * @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"],s=e.indexOf(" "),n=function(m,c,h){if(c===void 0&&(c=-s),h===void 0&&(h=""),!isFinite(m))return m.toString();var l=Math.floor(Math.log10(Math.abs(m))),d=Math.max(c*3,l),p=Math.floor(d/3),C=e[Math.min(p+s,e.length-1)],y=m/Math.pow(1e3,p),b=y.toFixed(2);return b.endsWith(".00")?b=b.slice(0,-3):b.endsWith(".0")&&(b=b.slice(0,-2)),(b+" "+C.trim()+h).trim()},r=function(m,c){return c===void 0&&(c=0),n(m,c,"W")},o=function(m,c){if(c===void 0&&(c=0),!Number.isFinite(m))return String(m);var h=Number(m.toFixed(c)),l=h<0,d=Math.abs(h),p=d.toString().split(".");p[0]=p[0].replace(/\B(?=(\d{3})+(?!\d))/g,"\u2009");var C=p.join(".");return l?"-"+C:C},v=function(m){var c=20*Math.log10(m),h=c>=0?"+":"-",l=Math.abs(c);return l===1/0?l="Inf":l=l.toFixed(2),""+h+l+" dB"},g=null,x=function(m,c,h){if(c===void 0&&(c=0),h===void 0&&(h=""),!isFinite(m))return"NaN";var l=Math.floor(Math.log10(m)),d=Math.max(c*3,l),p=Math.floor(d/3),C=g[p],y=m/Math.pow(1e3,p),b=Math.max(0,2-d%3),O=y.toFixed(b);return(O+" "+C+" "+h).trim()},f=function(m,c){c===void 0&&(c="default");var h=Math.floor(m/10),l=Math.floor(h/3600),d=Math.floor(h%3600/60),p=h%60;if(c==="short"){var C=l>0?""+l+"h":"",y=d>0?""+d+"m":"",b=p>0?""+p+"s":"";return""+C+y+b}var O=String(l).padStart(2,"0"),I=String(d).padStart(2,"0"),_=String(p).padStart(2,"0");return O+":"+I+":"+_},u=function(m){if(!Number.isFinite(m))return m;var c=m.toString().split(".");return c[0]=c[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),c.join(".")}},35012:function(M,j,t){"use strict";t.d(j,{Kw:function(){return C}});var e=t(42480),s=t(20284),n=t(37756);/** + */var e=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y","R","Q","F","N","H"],i=e.indexOf(" "),n=function(m,c,h){if(c===void 0&&(c=-i),h===void 0&&(h=""),!isFinite(m))return m.toString();var l=Math.floor(Math.log10(Math.abs(m))),f=Math.max(c*3,l),p=Math.floor(f/3),C=e[Math.min(p+i,e.length-1)],y=m/Math.pow(1e3,p),b=y.toFixed(2);return b.endsWith(".00")?b=b.slice(0,-3):b.endsWith(".0")&&(b=b.slice(0,-2)),(b+" "+C.trim()+h).trim()},r=function(m,c){return c===void 0&&(c=0),n(m,c,"W")},o=function(m,c){if(c===void 0&&(c=0),!Number.isFinite(m))return String(m);var h=Number(m.toFixed(c)),l=h<0,f=Math.abs(h),p=f.toString().split(".");p[0]=p[0].replace(/\B(?=(\d{3})+(?!\d))/g,"\u2009");var C=p.join(".");return l?"-"+C:C},v=function(m){var c=20*Math.log10(m),h=c>=0?"+":"-",l=Math.abs(c);return l===1/0?l="Inf":l=l.toFixed(2),""+h+l+" dB"},g=null,x=function(m,c,h){if(c===void 0&&(c=0),h===void 0&&(h=""),!isFinite(m))return"NaN";var l=Math.floor(Math.log10(m)),f=Math.max(c*3,l),p=Math.floor(f/3),C=g[p],y=m/Math.pow(1e3,p),b=Math.max(0,2-f%3),O=y.toFixed(b);return(O+" "+C+" "+h).trim()},d=function(m,c){c===void 0&&(c="default");var h=Math.floor(m/10),l=Math.floor(h/3600),f=Math.floor(h%3600/60),p=h%60;if(c==="short"){var C=l>0?""+l+"h":"",y=f>0?""+f+"m":"",b=p>0?""+p+"s":"";return""+C+y+b}var O=String(l).padStart(2,"0"),I=String(f).padStart(2,"0"),_=String(p).padStart(2,"0");return O+":"+I+":"+_},u=function(m){if(!Number.isFinite(m))return m;var c=m.toString().split(".");return c[0]=c[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),c.join(".")}},35012:function(M,j,t){"use strict";t.d(j,{Kw:function(){return C}});var e=t(42480),i=t(20284),n=t(37756);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function r(b,O){(O==null||O>b.length)&&(O=b.length);for(var I=0,_=new Array(O);I=b.length?{done:!0}:{done:!1,value: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 g=(0,n.m)("hotkeys"),x={},f=[e.ER,e.kt,e.YF,e.qe,e.KC,e.uN,e.UD,e.Mx,e.aD,e.y0,e.OS],u={},m=[],c=function(b){if(b===16)return"Shift";if(b===17)return"Ctrl";if(b===18)return"Alt";if(b===33)return"Northeast";if(b===34)return"Southeast";if(b===35)return"Southwest";if(b===36)return"Northwest";if(b===37)return"West";if(b===38)return"North";if(b===39)return"East";if(b===40)return"South";if(b===45)return"Insert";if(b===46)return"Delete";if(b>=48&&b<=57||b>=65&&b<=90)return String.fromCharCode(b);if(b>=96&&b<=105)return"Numpad"+(b-96);if(b>=112&&b<=123)return"F"+(b-111);if(b===188)return",";if(b===189)return"-";if(b===190)return"."},h=function(b){var O=String(b);if(O==="Ctrl+F5"||O==="Ctrl+R"){location.reload();return}if(O!=="Ctrl+F"&&!(b.event.defaultPrevented||b.isModifierKey()||f.includes(b.code))){var I=c(b.code);if(I){var _=x[I];if(_)return g.debug("macro",_),Byond.command(_);if(b.isDown()&&!u[I]){u[I]=!0;var A='TguiKeyDown "'+I+'"';return g.debug(A),Byond.command(A)}if(b.isUp()&&u[I]){u[I]=!1;var P='TguiKeyUp "'+I+'"';return g.debug(P),Byond.command(P)}}}},l=function(b){f.push(b)},d=function(b){var O=f.indexOf(b);O>=0&&f.splice(O,1)},p=function(){for(var b=v(Object.keys(u)),O;!(O=b()).done;){var I=O.value;u[I]&&(u[I]=!1,g.log('releasing key "'+I+'"'),Byond.command('TguiKeyUp "'+I+'"'))}},C=function(){Byond.winget("default.*").then(function(b){for(var O={},I=v(Object.keys(b)),_;!(_=I()).done;){var A=_.value,P=A.split("."),T=P[1],R=P[2];T&&R&&(O[T]||(O[T]={}),O[T][R]=b[A])}for(var L=/\\"/g,N=function(q){return q.substring(1,q.length-1).replace(L,'"')},U=v(Object.keys(O)),V;!(V=U()).done;){var z=V.value,Q=O[z],H=N(Q.name);x[H]=N(Q.command)}g.debug("loaded macros",x)}),s.W4.on("window-blur",function(){p()}),s.W4.on("key",function(b){for(var O=v(m),I;!(I=O()).done;){var _=I.value;_(b)}h(b)})},y=function(b){m.push(b);var O=!1;return function(){O||(O=!0,m.splice(m.indexOf(b),1))}}},12508:function(M,j,t){"use strict";t.r(j),t.d(j,{AICard:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.has_ai,m=f.integrity,c=f.backup_capacitor,h=f.flushing,l=f.has_laws,d=f.laws,p=f.wireless,C=f.radio;if(u===0)return(0,e.jsx)(r.qo,{width:600,height:470,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(n.iG,{title:"Stored AI",children:(0,e.jsx)(n.kv,{children:(0,e.jsx)("h3",{children:"No AI detected."})})})})});var y=null;m>=75?y="green":m>=25?y="yellow":y="red";var b=null;return c>=75&&(b="green"),c>=25?b="yellow":b="red",(0,e.jsx)(r.qo,{width:600,height:470,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsxs)(n.iG,{title:"Stored AI",children:[(0,e.jsx)(n.kv,{bold:!0,display:"inline-block",children:(0,e.jsx)("h3",{children:name})}),(0,e.jsx)(n.kv,{children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Integrity",children:(0,e.jsx)(n.cH,{color:y,value:m/100})}),(0,e.jsx)(n.Ce.Item,{label:"Power",children:(0,e.jsx)(n.cH,{color:b,value:c/100})})]})}),(0,e.jsx)(n.kv,{color:"red",children:(0,e.jsx)("h2",{children:h===1?"Wipe of AI in progress...":""})})]}),(0,e.jsx)(n.iG,{title:"Laws",children:!!l&&(0,e.jsx)(n.kv,{children:d.map(function(O,I){return(0,e.jsx)(n.kv,{display:"inline-block",children:O},I)})})||(0,e.jsx)(n.kv,{color:"red",children:(0,e.jsx)("h3",{children:"No laws detected."})})}),(0,e.jsx)(n.iG,{title:"Actions",children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Wireless Activity",children:(0,e.jsx)(n.q,{icon:p?"check":"times",content:p?"Enabled":"Disabled",color:p?"green":"red",onClick:function(){return x("wireless")}})}),(0,e.jsx)(n.Ce.Item,{label:"Subspace Transceiver",children:(0,e.jsx)(n.q,{icon:C?"check":"times",content:C?"Enabled":"Disabled",color:C?"green":"red",onClick:function(){return x("radio")}})}),(0,e.jsx)(n.Ce.Item,{label:"AI Power",children:(0,e.jsx)(n.q.Confirm,{icon:"radiation",confirmIcon:"radiation",disabled:h||m===0,confirmColor:"red",content:"Shutdown",onClick:function(){return x("wipe")}})})]})})]})})}},32712:function(M,j,t){"use strict";t.r(j),t.d(j,{APC:function(){return g}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=t(44664),v=t(95928),g=function(h){var l=(0,s.yy)(),d=l.act,p=l.data,C=(0,e.jsx)(u,{});return p.gridCheck?C=(0,e.jsx)(m,{}):p.failTime&&(C=(0,e.jsx)(c,{})),(0,e.jsx)(r.qo,{width:450,height:475,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:C})})},x={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"}},f={1:{icon:"terminal",content:"Override Programming",action:"hack"}},u=function(h){var l=(0,s.yy)(),d=l.act,p=l.data,C=p.locked&&!p.siliconUser,y=p.normallyLocked,b=x[p.externalPower]||x[0],O=x[p.chargingStatus]||x[0],I=p.powerChannels||[],_=p.powerCellStatus/100;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(v.InterfaceLockNoticeBox,{deny:p.emagged,denialMessage:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.kv,{color:"bad",fontSize:"1.5rem",children:"Fault in ID authenticator."}),(0,e.jsx)(n.kv,{color:"bad",children:"Please contact maintenance for service."})]})}),(0,e.jsx)(n.iG,{title:"Power Status",children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsxs)(n.Ce.Item,{label:"Main Breaker",color:b.color,buttons:(0,e.jsx)(n.q,{icon:p.isOperating?"power-off":"times",content:p.isOperating?"On":"Off",selected:p.isOperating&&!C,color:p.isOperating?"":"bad",disabled:C,onClick:function(){return d("breaker")}}),children:["[ ",b.externalPowerText," ]"]}),(0,e.jsx)(n.Ce.Item,{label:"Power Cell",children:(0,e.jsx)(n.cH,{color:"good",value:_})}),(0,e.jsxs)(n.Ce.Item,{label:"Charge Mode",color:O.color,buttons:(0,e.jsx)(n.q,{icon:p.chargeMode?"sync":"times",content:p.chargeMode?"Auto":"Off",selected:p.chargeMode,disabled:C,onClick:function(){return d("charge")}}),children:["[ ",O.chargingText," ]"]})]})}),(0,e.jsx)(n.iG,{title:"Power Channels",children:(0,e.jsxs)(n.Ce,{children:[I.map(function(A){var P=A.topicParams;return(0,e.jsxs)(n.Ce.Item,{label:A.title,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.kv,{inline:!0,mx:2,color:A.status>=2?"good":"bad",children:A.status>=2?"On":"Off"}),(0,e.jsx)(n.q,{icon:"sync",content:"Auto",selected:!C&&(A.status===1||A.status===3),disabled:C,onClick:function(){return d("channel",P.auto)}}),(0,e.jsx)(n.q,{icon:"power-off",content:"On",selected:!C&&A.status===2,disabled:C,onClick:function(){return d("channel",P.on)}}),(0,e.jsx)(n.q,{icon:"times",content:"Off",selected:!C&&A.status===0,disabled:C,onClick:function(){return d("channel",P.off)}})]}),children:[A.powerLoad," W"]},A.title)}),(0,e.jsx)(n.Ce.Item,{label:"Total Load",children:p.totalCharging?(0,e.jsxs)("b",{children:[p.totalLoad," W (+ ",p.totalCharging," W charging)"]}):(0,e.jsxs)("b",{children:[p.totalLoad," W"]})})]})}),(0,e.jsx)(n.iG,{title:"Misc",buttons:!!p.siliconUser&&(0,e.jsx)(n.q,{icon:"lightbulb-o",content:"Overload",onClick:function(){return d("overload")}}),children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Cover Lock",buttons:(0,e.jsx)(n.q,{icon:p.coverLocked?"lock":"unlock",content:p.coverLocked?"Engaged":"Disengaged",selected:p.coverLocked,disabled:C,onClick:function(){return d("cover")}})}),(0,e.jsx)(n.Ce.Item,{label:"Night Shift Lighting",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.q,{icon:"lightbulb-o",content:"Disabled",selected:p.nightshiftSetting===2,onClick:function(){return d("nightshift",{nightshift:2})}}),(0,e.jsx)(n.q,{icon:"lightbulb-o",content:"Automatic",selected:p.nightshiftSetting===1,onClick:function(){return d("nightshift",{nightshift:1})}}),(0,e.jsx)(n.q,{icon:"lightbulb-o",content:"Enabled",selected:p.nightshiftSetting===3,onClick:function(){return d("nightshift",{nightshift:3})}})]})}),(0,e.jsx)(n.Ce.Item,{label:"Emergency Lighting",buttons:(0,e.jsx)(n.q,{icon:"lightbulb-o",content:p.emergencyLights?"Enabled":"Disabled",selected:p.emergencyLights,onClick:function(){return d("emergency_lighting")}})})]})})]})},m=function(h){return(0,e.jsxs)(o.FullscreenNotice,{title:"System Failure",children:[(0,e.jsx)(n.kv,{fontSize:"1.5rem",bold:!0,children:(0,e.jsx)(n.GW,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,e.jsx)(n.kv,{fontSize:"1.5rem",bold:!0,children:"Power surge detected, grid check in effect..."})]})},c=function(h){var l=(0,s.yy)(),d=l.data,p=l.act,C=(0,e.jsx)(n.q,{icon:"repeat",content:"Restart Now",color:"good",onClick:function(){return p("reboot")}});return d.locked&&!d.siliconUser&&(C=(0,e.jsx)(n.kv,{color:"bad",children:"Swipe an ID card for manual reboot."})),(0,e.jsxs)(n.Oe,{textAlign:"center",children:[(0,e.jsx)(n.kv,{color:"bad",children:(0,e.jsx)("h1",{children:"SYSTEM FAILURE"})}),(0,e.jsx)(n.kv,{color:"average",children:(0,e.jsx)("h2",{children:"I/O regulators malfunction detected! Waiting for system reboot..."})}),(0,e.jsxs)(n.kv,{color:"good",children:["Automatic reboot in ",d.failTime," seconds..."]}),(0,e.jsx)(n.kv,{mt:4,children:C})]})}},46480:function(M,j,t){"use strict";t.r(j),t.d(j,{AccountsTerminal:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(u){var m=(0,s.yy)(),c=m.act,h=m.data,l=h.id_inserted,d=h.id_card,p=h.access_level,C=h.machine_id;return(0,e.jsx)(r.qo,{width:400,height:640,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsx)(n.iG,{children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Machine",color:"average",children:C}),(0,e.jsx)(n.Ce.Item,{label:"ID",children:(0,e.jsx)(n.q,{icon:l?"eject":"sign-in-alt",fluid:!0,content:d,onClick:function(){return c("insert_card")}})})]})}),p>0&&(0,e.jsx)(v,{})]})})},v=function(u){var m=(0,s.yy)(),c=m.act,h=m.data,l=h.creating_new_account,d=h.detailed_account_view;return(0,e.jsxs)(n.iG,{title:"Menu",children:[(0,e.jsxs)(n.kZ,{children:[(0,e.jsx)(n.kZ.Tab,{selected:!l&&!d,icon:"home",onClick:function(){return c("view_accounts_list")},children:"Home"}),(0,e.jsx)(n.kZ.Tab,{selected:l,icon:"cog",onClick:function(){return c("create_account")},children:"New Account"}),(0,e.jsx)(n.kZ.Tab,{disabled:l,icon:"print",onClick:function(){return c("print")},children:"Print"})]}),l&&(0,e.jsx)(g,{})||d&&(0,e.jsx)(x,{})||(0,e.jsx)(f,{})]})},g=function(u){var m=(0,s.yy)().act,c=(0,s.ao)("holder",""),h=c[0],l=c[1],d=(0,s.ao)("money",""),p=d[0],C=d[1];return(0,e.jsxs)(n.iG,{title:"Create Account",level:2,children:[(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Account Holder",children:(0,e.jsx)(n.EF,{value:h,fluid:!0,onInput:function(y,b){return l(b)}})}),(0,e.jsx)(n.Ce.Item,{label:"Initial Deposit",children:(0,e.jsx)(n.EF,{value:p,fluid:!0,onInput:function(y,b){return C(b)}})})]}),(0,e.jsx)(n.q,{disabled:!h||!p,mt:1,fluid:!0,icon:"plus",onClick:function(){return m("finalise_create_account",{holder_name:h,starting_funds:p})},content:"Create"})]})},x=function(u){var m=(0,s.yy)(),c=m.act,h=m.data,l=h.access_level,d=h.station_account_number,p=h.account_number,C=h.owner_name,y=h.money,b=h.suspended,O=h.transactions;return(0,e.jsxs)(n.iG,{title:"Account Details",level:2,buttons:(0,e.jsx)(n.q,{icon:"ban",selected:b,content:"Suspend",onClick:function(){return c("toggle_suspension")}}),children:[(0,e.jsxs)(n.Ce,{children:[(0,e.jsxs)(n.Ce.Item,{label:"Account Number",children:["#",p]}),(0,e.jsx)(n.Ce.Item,{label:"Holder",children:C}),(0,e.jsxs)(n.Ce.Item,{label:"Balance",children:[y,"\u20AE"]}),(0,e.jsx)(n.Ce.Item,{label:"Status",color:b?"bad":"good",children:b?"SUSPENDED":"Active"})]}),(0,e.jsx)(n.iG,{title:"CentCom Administrator",level:2,mt:1,children:(0,e.jsx)(n.Ce,{children:(0,e.jsx)(n.Ce.Item,{label:"Payroll",children:(0,e.jsx)(n.q.Confirm,{color:"bad",fluid:!0,icon:"ban",confirmIcon:"ban",content:"Revoke",confirmContent:"This cannot be undone.",disabled:p===d,onClick:function(){return c("revoke_payroll")}})})})}),l>=2&&(0,e.jsxs)(n.iG,{title:"Silent Funds Transfer",level:2,children:[(0,e.jsx)(n.q,{icon:"plus",onClick:function(){return c("add_funds")},content:"Add Funds"}),(0,e.jsx)(n.q,{icon:"plus",onClick:function(){return c("remove_funds")},content:"Remove Funds"})]}),(0,e.jsx)(n.iG,{title:"Transactions",level:2,mt:1,children:(0,e.jsxs)(n.oJ,{children:[(0,e.jsxs)(n.oJ.Row,{header:!0,children:[(0,e.jsx)(n.oJ.Cell,{children:"Timestamp"}),(0,e.jsx)(n.oJ.Cell,{children:"Target"}),(0,e.jsx)(n.oJ.Cell,{children:"Reason"}),(0,e.jsx)(n.oJ.Cell,{children:"Value"}),(0,e.jsx)(n.oJ.Cell,{children:"Terminal"})]}),O.map(function(I,_){return(0,e.jsxs)(n.oJ.Row,{children:[(0,e.jsxs)(n.oJ.Cell,{children:[I.date," ",I.time]}),(0,e.jsx)(n.oJ.Cell,{children:I.target_name}),(0,e.jsx)(n.oJ.Cell,{children:I.purpose}),(0,e.jsxs)(n.oJ.Cell,{children:[I.amount,"\u20AE"]}),(0,e.jsx)(n.oJ.Cell,{children:I.source_terminal})]},_)})]})})]})},f=function(u){var m=(0,s.yy)(),c=m.act,h=m.data,l=h.accounts;return(0,e.jsx)(n.iG,{title:"NanoTrasen Accounts",level:2,children:l.length&&(0,e.jsx)(n.Ce,{children:l.map(function(d){return(0,e.jsx)(n.Ce.Item,{label:d.owner_name+d.suspended,color:d.suspended?"bad":null,children:(0,e.jsx)(n.q,{fluid:!0,content:"#"+d.account_number,onClick:function(){return c("view_account_detail",{account_index:d.account_index})}})},d.account_index)})})||(0,e.jsx)(n.kv,{color:"bad",children:"There are no accounts available."})})}},61444:function(M,j,t){"use strict";t.r(j),t.d(j,{AdminShuttleController:function(){return v},ShuttleList:function(){return g}});var e=t(33496),s=t(47392),n=t(45280),r=t(68644),o=t(76512),v=function(){return(0,e.jsx)(o.qo,{width:600,height:600,children:(0,e.jsx)(o.qo.Content,{scrollable:!0,children:(0,e.jsx)(g,{})})})},g=function(f){var u=(0,n.yy)(),m=u.act,c=u.data,h=c.shuttles,l=c.overmap_ships;return(0,e.jsxs)(r.iG,{noTopPadding:!0,children:[(0,e.jsx)(r.iG,{title:"Classic Shuttles",children:(0,e.jsx)(r.oJ,{children:(0,s.cp)(function(d){return d.name})(h).map(function(d){return(0,e.jsxs)(r.oJ.Row,{children:[(0,e.jsx)(r.oJ.Cell,{collapsing:!0,children:(0,e.jsx)(r.q,{m:0,content:"JMP",onClick:function(){return m("adminobserve",{ref:d.ref})}})}),(0,e.jsx)(r.oJ.Cell,{collapsing:!0,children:(0,e.jsx)(r.q,{m:0,content:"Fly",onClick:function(){return m("classicmove",{ref:d.ref})}})}),(0,e.jsx)(r.oJ.Cell,{children:d.name}),(0,e.jsx)(r.oJ.Cell,{children:d.current_location}),(0,e.jsx)(r.oJ.Cell,{children:x(d.status)})]},d.ref)})})}),(0,e.jsx)(r.iG,{title:"Overmap Ships",children:(0,e.jsx)(r.oJ,{children:(0,s.cp)(function(d){var p;return((p=d.name)==null?void 0:p.toLowerCase())||d.name||d.ref})(l).map(function(d){return(0,e.jsxs)(r.oJ.Row,{children:[(0,e.jsx)(r.oJ.Cell,{collapsing:!0,children:(0,e.jsx)(r.q,{content:"JMP",onClick:function(){return m("adminobserve",{ref:d.ref})}})}),(0,e.jsx)(r.oJ.Cell,{collapsing:!0,children:(0,e.jsx)(r.q,{content:"Control",onClick:function(){return m("overmap_control",{ref:d.ref})}})}),(0,e.jsx)(r.oJ.Cell,{children:d.name})]},d.ref)})})})]})},x=function(f){switch(f){case 0:return"Idle";case 1:return"Warmup";case 2:return"Transit";default:return"UNK"}}},27792:function(M,j,t){"use strict";t.r(j),t.d(j,{AdminTicketPanel:function(){return v}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o={open:"Open",resolved:"Resolved",closed:"Closed",unknown:"Unknown"},v=function(g){var x=(0,s.yy)(),f=x.act,u=x.data,m=u.id,c=u.title,h=u.name,l=u.state,d=u.opened_at,p=u.closed_at,C=u.opened_at_date,y=u.closed_at_date,b=u.actions,O=u.log;return(0,e.jsx)(r.qo,{width:900,height:600,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:(0,e.jsx)(n.iG,{title:"Ticket #"+m,buttons:(0,e.jsxs)(n.kv,{nowrap:!0,children:[(0,e.jsx)(n.q,{icon:"pen",content:"Rename Ticket",onClick:function(){return f("retitle")}})," ",(0,e.jsx)(n.q,{content:"Legacy UI",onClick:function(){return f("legacy")}})]}),children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsxs)(n.Ce.Item,{label:"Admin Help Ticket",children:["#",m,": ",(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:h}})]}),(0,e.jsx)(n.Ce.Item,{label:"State",children:o[l]}),o[l]===o.open?(0,e.jsxs)(n.Ce.Item,{label:"Opened At",children:[C," (",Math.round(d/600*10)/10," ","minutes ago.)"]}):(0,e.jsxs)(n.Ce.Item,{label:"Closed At",children:[y," (",Math.round(p/600*10)/10," ","minutes ago.)"," ",(0,e.jsx)(n.q,{content:"Reopen",onClick:function(){return f("reopen")}})]}),(0,e.jsx)(n.Ce.Item,{label:"Actions",children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:b}})}),(0,e.jsx)(n.Ce.Item,{label:"Log",children:Object.keys(O).map(function(I,_){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:O[I]}},_)})})]})})})})}},64292:function(M,j,t){"use strict";t.r(j),t.d(j,{AgentCard:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.entries,m=f.electronic_warfare;return(0,e.jsx)(r.qo,{width:550,height:400,theme:"syndicate",children:(0,e.jsxs)(r.qo.Content,{children:[(0,e.jsx)(n.iG,{title:"Info",children:(0,e.jsx)(n.oJ,{children:u.map(function(c){return(0,e.jsxs)(n.oJ.Row,{children:[(0,e.jsx)(n.oJ.Cell,{children:(0,e.jsx)(n.q,{onClick:function(){return x(c.name.toLowerCase().replace(/ /g,""))},icon:"cog"})}),(0,e.jsx)(n.oJ.Cell,{children:c.name}),(0,e.jsx)(n.oJ.Cell,{children:c.value})]},c.name)})})}),(0,e.jsx)(n.iG,{title:"Electronic Warfare",children:(0,e.jsx)(n.q.Checkbox,{checked:m,content:m?"Electronic warfare is enabled. This will prevent you from being tracked by the AI.":"Electronic warfare disabled.",onClick:function(){return x("electronic_warfare")}})})]})})}},17196:function(M,j,t){"use strict";t.r(j),t.d(j,{AiAirlock:function(){return v}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o={2:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Offline"}},v=function(g){var x=(0,s.yy)(),f=x.act,u=x.data,m=o[u.power.main]||o[0],c=o[u.power.backup]||o[0],h=o[u.shock]||o[0];return(0,e.jsx)(r.qo,{width:500,height:390,children:(0,e.jsxs)(r.qo.Content,{children:[(0,e.jsx)(n.iG,{title:"Power Status",children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsxs)(n.Ce.Item,{label:"Main",color:m.color,buttons:(0,e.jsx)(n.q,{icon:"lightbulb-o",disabled:!u.power.main,content:"Disrupt",onClick:function(){return f("disrupt-main")}}),children:[u.power.main?"Online":"Offline"," ",(!u.wires.main_1||!u.wires.main_2)&&"[Wires have been cut!]"||u.power.main_timeleft>0&&"["+u.power.main_timeleft+"s]"]}),(0,e.jsxs)(n.Ce.Item,{label:"Backup",color:c.color,buttons:(0,e.jsx)(n.q,{icon:"lightbulb-o",disabled:!u.power.backup,content:"Disrupt",onClick:function(){return f("disrupt-backup")}}),children:[u.power.backup?"Online":"Offline"," ",(!u.wires.backup_1||!u.wires.backup_2)&&"[Wires have been cut!]"||u.power.backup_timeleft>0&&"["+u.power.backup_timeleft+"s]"]}),(0,e.jsxs)(n.Ce.Item,{label:"Electrify",color:h.color,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.q,{icon:"wrench",disabled:!(u.wires.shock&&u.shock===0),content:"Restore",onClick:function(){return f("shock-restore")}}),(0,e.jsx)(n.q,{icon:"bolt",disabled:!u.wires.shock,content:"Temporary",onClick:function(){return f("shock-temp")}}),(0,e.jsx)(n.q,{icon:"bolt",disabled:!u.wires.shock,content:"Permanent",onClick:function(){return f("shock-perm")}})]}),children:[u.shock===2?"Safe":"Electrified"," ",!u.wires.shock&&"[Wires have been cut!]"||u.shock_timeleft>0&&"["+u.shock_timeleft+"s]"||u.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.jsx)(n.iG,{title:"Access and Door Control",children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"ID Scan",color:"bad",buttons:(0,e.jsx)(n.q,{icon:u.id_scanner?"power-off":"times",content:u.id_scanner?"Enabled":"Disabled",selected:u.id_scanner,disabled:!u.wires.id_scanner,onClick:function(){return f("idscan-toggle")}}),children:!u.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ce.Divider,{}),(0,e.jsx)(n.Ce.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.jsx)(n.q,{icon:u.locked?"lock":"unlock",content:u.locked?"Lowered":"Raised",selected:u.locked,disabled:!u.wires.bolts,onClick:function(){return f("bolt-toggle")}}),children:!u.wires.bolts&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ce.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.jsx)(n.q,{icon:u.lights?"power-off":"times",content:u.lights?"Enabled":"Disabled",selected:u.lights,disabled:!u.wires.lights,onClick:function(){return f("light-toggle")}}),children:!u.wires.lights&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ce.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.jsx)(n.q,{icon:u.safe?"power-off":"times",content:u.safe?"Enabled":"Disabled",selected:u.safe,disabled:!u.wires.safe,onClick:function(){return f("safe-toggle")}}),children:!u.wires.safe&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ce.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.jsx)(n.q,{icon:u.speed?"power-off":"times",content:u.speed?"Enabled":"Disabled",selected:u.speed,disabled:!u.wires.timing,onClick:function(){return f("speed-toggle")}}),children:!u.wires.timing&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ce.Divider,{}),(0,e.jsx)(n.Ce.Item,{label:"Door Control",color:"bad",buttons:(0,e.jsx)(n.q,{icon:u.opened?"sign-out-alt":"sign-in-alt",content:u.opened?"Open":"Closed",selected:u.opened,disabled:u.locked||u.welded,onClick:function(){return f("open-close")}}),children:!!(u.locked||u.welded)&&(0,e.jsxs)("span",{children:["[Door is ",u.locked?"bolted":"",u.locked&&u.welded?" and ":"",u.welded?"welded":"","!]"]})})]})})]})})}},19588:function(M,j,t){"use strict";t.r(j),t.d(j,{AiRestorer:function(){return o},AiRestorerContent:function(){return v}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(){return(0,e.jsx)(r.qo,{width:370,height:360,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:(0,e.jsx)(v,{})})})},v=function(g){var x=(0,s.yy)(),f=x.act,u=x.data,m=u.AI_present,c=u.error,h=u.name,l=u.laws,d=u.isDead,p=u.restoring,C=u.health,y=u.ejectable;return(0,e.jsxs)(e.Fragment,{children:[c&&(0,e.jsx)(n.yc,{textAlign:"center",children:c}),!!y&&(0,e.jsx)(n.q,{fluid:!0,icon:"eject",content:m?h:"----------",disabled:!m,onClick:function(){return f("PRG_eject")}}),!!m&&(0,e.jsxs)(n.iG,{title:y?"System Status":h,buttons:(0,e.jsx)(n.kv,{inline:!0,bold:!0,color:d?"bad":"good",children:d?"Nonfunctional":"Functional"}),children:[(0,e.jsx)(n.Ce,{children:(0,e.jsx)(n.Ce.Item,{label:"Integrity",children:(0,e.jsx)(n.cH,{value:C,minValue:0,maxValue:100,ranges:{good:[70,1/0],average:[50,70],bad:[-1/0,50]}})})}),!!p&&(0,e.jsx)(n.kv,{bold:!0,textAlign:"center",fontSize:"20px",color:"good",mt:1,children:"RECONSTRUCTION IN PROGRESS"}),(0,e.jsx)(n.q,{fluid:!0,icon:"plus",content:"Begin Reconstruction",disabled:p,mt:1,onClick:function(){return f("PRG_beginReconstruction")}}),(0,e.jsx)(n.iG,{title:"Laws",level:2,children:l.map(function(b){return(0,e.jsx)(n.kv,{className:"candystripe",children:b},b)})})]})]})}},44708:function(M,j,t){"use strict";t.r(j),t.d(j,{AiSupermatter:function(){return v}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=t(44664),v=function(f){var u=(0,s.yy)().data,m=u.integrity_percentage,c=u.ambient_temp,h=u.ambient_pressure,l=u.detonating,d=(0,e.jsx)(x,{});return l&&(d=(0,e.jsx)(g,{})),(0,e.jsx)(r.qo,{width:500,height:300,children:(0,e.jsx)(r.qo.Content,{children:d})})},g=function(f){return(0,e.jsx)(o.FullscreenNotice,{title:"DETONATION IMMINENT",children:(0,e.jsxs)(n.kv,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,e.jsx)(n.GW,{color:"bad",name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,e.jsx)(n.kv,{color:"bad",children:"CRYSTAL DELAMINATING"}),(0,e.jsx)(n.kv,{color:"bad",children:"Evacuate area immediately"})]})})},x=function(f){var u=(0,s.yy)().data,m=u.integrity_percentage,c=u.ambient_temp,h=u.ambient_pressure;return(0,e.jsx)(n.iG,{title:"Status",children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Crystal Integrity",children:(0,e.jsx)(n.cH,{value:m,maxValue:100,ranges:{good:[90,1/0],average:[25,90],bad:[-1/0,25]}})}),(0,e.jsx)(n.Ce.Item,{label:"Environment Temperature",children:(0,e.jsxs)(n.cH,{value:c,maxValue:1e4,ranges:{bad:[5e3,1/0],average:[4e3,5e3],good:[-1/0,4e3]},children:[c," K"]})}),(0,e.jsxs)(n.Ce.Item,{label:"Environment Pressure",children:[h," kPa"]})]})})}},23392:function(M,j,t){"use strict";t.r(j),t.d(j,{AirAlarm:function(){return u}});var e=t(33496),s=t(10608),n=t(69344),r=t(45280),o=t(68644),v=t(36824),g=t(76512),x=t(23432),f=t(95928),u=function(O){var I=(0,r.yy)(),_=I.act,A=I.data,P=A.locked&&!A.siliconUser&&!A.remoteUser;return(0,e.jsx)(g.qo,{width:440,height:650,children:(0,e.jsxs)(g.qo.Content,{scrollable:!0,children:[(0,e.jsx)(f.InterfaceLockNoticeBox,{}),(0,e.jsx)(m,{}),(0,e.jsx)(c,{}),!P&&(0,e.jsx)(l,{})]})})},m=function(O){var I=(0,r.yy)().data,_=(I.environment_data||[]).filter(function(T){return T.value>=.01}),A={0:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},2:{color:"bad",localStatusText:"Danger (Internals Required)"}},P=A[I.danger_level]||A[0];return(0,e.jsx)(o.iG,{title:"Air Status",children:(0,e.jsxs)(o.Ce,{children:[_.length>0&&(0,e.jsxs)(e.Fragment,{children:[_.map(function(T){var R=A[T.danger_level]||A[0];return(0,e.jsxs)(o.Ce.Item,{label:(0,v.GE)(T.name),color:R.color,children:[(0,s.yI)(T.value,2),T.unit]},T.name)}),(0,e.jsx)(o.Ce.Item,{label:"Local status",color:P.color,children:P.localStatusText}),(0,e.jsx)(o.Ce.Item,{label:"Area status",color:I.atmos_alarm||I.fire_alarm?"bad":"good",children:I.atmos_alarm&&"Atmosphere Alarm"||I.fire_alarm&&"Fire Alarm"||"Nominal"})]})||(0,e.jsx)(o.Ce.Item,{label:"Warning",color:"bad",children:"Cannot obtain air sample for analysis."}),!!I.emagged&&(0,e.jsx)(o.Ce.Item,{label:"Warning",color:"bad",children:"Safety measures offline. Device may exhibit abnormal behavior."})]})})},c=function(O){var I=(0,r.yy)(),_=I.act,A=I.data,P=A.target_temperature,T=A.rcon;return(0,e.jsx)(o.iG,{title:"Comfort Settings",children:(0,e.jsxs)(o.Ce,{children:[(0,e.jsxs)(o.Ce.Item,{label:"Remote Control",children:[(0,e.jsx)(o.q,{selected:T===1,content:"Off",onClick:function(){return _("rcon",{rcon:1})}}),(0,e.jsx)(o.q,{selected:T===2,content:"Auto",onClick:function(){return _("rcon",{rcon:2})}}),(0,e.jsx)(o.q,{selected:T===3,content:"On",onClick:function(){return _("rcon",{rcon:3})}})]}),(0,e.jsx)(o.Ce.Item,{label:"Thermostat",children:(0,e.jsx)(o.q,{content:P,onClick:function(){return _("temperature")}})})]})})},h={home:{title:"Air Controls",component:function(){return d}},vents:{title:"Vent Controls",component:function(){return p}},scrubbers:{title:"Scrubber Controls",component:function(){return C}},modes:{title:"Operating Mode",component:function(){return y}},thresholds:{title:"Alarm Thresholds",component:function(){return b}}},l=function(O){var I=(0,r.cv)("screen"),_=I[0],A=I[1],P=h[_]||h.home,T=P.component();return(0,e.jsx)(o.iG,{title:P.title,buttons:_&&(0,e.jsx)(o.q,{icon:"arrow-left",content:"Back",onClick:function(){return A()}}),children:(0,e.jsx)(T,{})})},d=function(O){var I=(0,r.yy)(),_=I.act,A=I.data,P=(0,r.cv)("screen"),T=P[0],R=P[1],L=A.mode,N=A.atmos_alarm;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.q,{icon:N?"exclamation-triangle":"exclamation",color:N&&"caution",content:"Area Atmosphere Alarm",onClick:function(){return _(N?"reset":"alarm")}}),(0,e.jsx)(o.kv,{mt:1}),(0,e.jsx)(o.q,{icon:L===3?"exclamation-triangle":"exclamation",color:L===3&&"danger",content:"Panic Siphon",onClick:function(){return _("mode",{mode:L===3?1:3})}}),(0,e.jsx)(o.kv,{mt:2}),(0,e.jsx)(o.q,{icon:"sign-out-alt",content:"Vent Controls",onClick:function(){return R("vents")}}),(0,e.jsx)(o.kv,{mt:1}),(0,e.jsx)(o.q,{icon:"filter",content:"Scrubber Controls",onClick:function(){return R("scrubbers")}}),(0,e.jsx)(o.kv,{mt:1}),(0,e.jsx)(o.q,{icon:"cog",content:"Operating Mode",onClick:function(){return R("modes")}}),(0,e.jsx)(o.kv,{mt:1}),(0,e.jsx)(o.q,{icon:"chart-bar",content:"Alarm Thresholds",onClick:function(){return R("thresholds")}})]})},p=function(O){var I=(0,r.yy)().data,_=I.vents;return!_||_.length===0?"Nothing to show":_.map(function(A){return(0,e.jsx)(x.Vent,{vent:A},A.id_tag)})},C=function(O){var I=(0,r.yy)().data,_=I.scrubbers;return!_||_.length===0?"Nothing to show":_.map(function(A){return(0,e.jsx)(x.Scrubber,{scrubber:A},A.id_tag)})},y=function(O){var I=(0,r.yy)(),_=I.act,A=I.data,P=A.modes;return!P||P.length===0?"Nothing to show":P.map(function(T){return(0,e.jsxs)(n.Fragment,{children:[(0,e.jsx)(o.q,{icon:T.selected?"check-square-o":"square-o",selected:T.selected,color:T.selected&&T.danger&&"danger",content:T.name,onClick:function(){return _("mode",{mode:T.mode})}}),(0,e.jsx)(o.kv,{mt:1})]},T.mode)})},b=function(O){var I=(0,r.yy)(),_=I.act,A=I.data,P=A.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:P.map(function(T){return(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{className:"LabeledList__label",children:(0,e.jsx)("span",{className:"color-"+(0,v.AL)(T.name),children:(0,v.GE)(T.name)})}),T.settings.map(function(R){return(0,e.jsx)("td",{children:(0,e.jsx)(o.q,{content:(0,s.yI)(R.selected,2),onClick:function(){return _("threshold",{env:R.env,var:R.val})}})},R.val)})]},T.name)})})]})}},10256:function(M,j,t){"use strict";t.r(j),t.d(j,{AlertModal:function(){return u}});var e=t(33496),s=t(69344),n=t(42480),r=t(45280),o=t(68644),v=t(76512),g=t(26896),x=-1,f=1,u=function(h){var l=(0,r.yy)(),d=l.act,p=l.data,C=p.autofocus,y=p.buttons,b=y===void 0?[]:y,O=p.large_buttons,I=p.message,_=I===void 0?"":I,A=p.timeout,P=p.title,T=(0,s.useState)(0),R=T[0],L=T[1],N=115+(_.length>30?Math.ceil(_.length/4):0)+(_.length&&O?5:0),U=325+(b.length>2?55:0),V=function(z){R===0&&z===x?L(b.length-1):R===b.length-1&&z===f?L(0):L(R+z)};return(0,e.jsxs)(v.qo,{height:N,title:P,width:U,children:[!!A&&(0,e.jsx)(g.Loader,{value:A}),(0,e.jsx)(v.qo.Content,{onKeyDown:function(z){var Q=window.event?z.which:z.keyCode;Q===n.YF||Q===n.kt?d("choose",{choice:b[R]}):Q===n.ER?d("cancel"):Q===n.aD?(z.preventDefault(),V(x)):(Q===n.qe||Q===n.y0)&&(z.preventDefault(),V(f))},children:(0,e.jsx)(o.iG,{fill:!0,children:(0,e.jsxs)(o.fT,{fill:!0,vertical:!0,children:[(0,e.jsx)(o.fT.Item,{grow:!0,m:1,children:(0,e.jsx)(o.kv,{color:"label",overflow:"hidden",children:_})}),(0,e.jsxs)(o.fT.Item,{children:[!!C&&(0,e.jsx)(o.bH,{}),(0,e.jsx)(m,{selected:R})]})]})})})]})},m=function(h){var l=(0,r.yy)().data,d=l.buttons,p=d===void 0?[]:d,C=l.large_buttons,y=l.swapped_buttons,b=h.selected;return(0,e.jsx)(o.Cu,{align:"center",direction:y?"row":"row-reverse",fill:!0,justify:"space-around",wrap:!0,children:p==null?void 0:p.map(function(O,I){return C&&p.length<3?(0,e.jsx)(o.Cu.Item,{grow:!0,children:(0,e.jsx)(c,{button:O,id:I.toString(),selected:b===I})},I):(0,e.jsx)(o.Cu.Item,{children:(0,e.jsx)(c,{button:O,id:I.toString(),selected:b===I})},I)})})},c=function(h){var l=(0,r.yy)(),d=l.act,p=l.data,C=p.large_buttons,y=h.button,b=h.selected,O=y.length>7?y.length:7;return(0,e.jsx)(o.q,{fluid:!!C,height:!!C&&2,onClick:function(){return d("choose",{choice:y})},m:.5,pl:2,pr:2,pt:C?.33:0,selected:b,textAlign:"center",width:!C&&O,children:C?y.toUpperCase():y})}},32164:function(M,j,t){"use strict";t.r(j),t.d(j,{AlgaeFarm:function(){return v}});var e=t(33496),s=t(49900),n=t(45280),r=t(68644),o=t(76512),v=function(g){var x=(0,n.yy)(),f=x.act,u=x.data,m=u.usePower,c=u.materials,h=u.last_flow_rate,l=u.last_power_draw,d=u.inputDir,p=u.outputDir,C=u.input,y=u.output,b=u.errorText;return(0,e.jsx)(o.qo,{width:500,height:300,children:(0,e.jsxs)(o.qo.Content,{children:[b&&(0,e.jsx)(r.yc,{warning:!0,children:(0,e.jsx)(r.kv,{display:"inline-block",verticalAlign:"middle",children:b})}),(0,e.jsxs)(r.iG,{title:"Status",buttons:(0,e.jsx)(r.q,{icon:"power-off",content:"Processing",selected:m===2,onClick:function(){return f("toggle")}}),children:[(0,e.jsxs)(r.Ce,{children:[(0,e.jsxs)(r.Ce.Item,{label:"Flow Rate",children:[h," L/s"]}),(0,e.jsxs)(r.Ce.Item,{label:"Power Draw",children:[l," W"]}),(0,e.jsx)(r.Ce.Divider,{size:1}),c.map(function(O){return(0,e.jsxs)(r.Ce.Item,{label:(0,s.Yj)(O.display),children:[(0,e.jsxs)(r.cH,{width:"80%",value:O.qty,maxValue:O.max,children:[O.qty,"/",O.max]}),(0,e.jsx)(r.q,{ml:1,content:"Eject",onClick:function(){return f("ejectMaterial",{mat:O.name})}})]},O.name)})]}),(0,e.jsx)(r.oJ,{mt:1,children:(0,e.jsxs)(r.oJ.Row,{children:[(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(r.iG,{title:"Gas Input ("+d+")",children:C?(0,e.jsxs)(r.Ce,{children:[(0,e.jsxs)(r.Ce.Item,{label:"Total Pressure",children:[C.pressure," kPa"]}),(0,e.jsxs)(r.Ce.Item,{label:C.name,children:[C.percent,"% (",C.moles," moles)"]})]}):(0,e.jsx)(r.kv,{color:"bad",children:"No connection detected."})})}),(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(r.iG,{title:"Gas Output ("+p+")",children:y?(0,e.jsxs)(r.Ce,{children:[(0,e.jsxs)(r.Ce.Item,{label:"Total Pressure",children:[y.pressure," kPa"]}),(0,e.jsxs)(r.Ce.Item,{label:y.name,children:[y.percent,"% (",y.moles," moles)"]})]}):(0,e.jsx)(r.kv,{color:"bad",children:"No connection detected."})})})]})})]})]})})}},78140:function(M,j,t){"use strict";t.r(j),t.d(j,{AppearanceChanger:function(){return x}});var e=t(33496),s=t(47392),n=t(49900),r=t(69344),o=t(45280),v=t(68644),g=t(76512),x=function(y){var b=(0,o.yy)(),O=b.act,I=b.config,_=b.data,A=_.name,P=_.specimen,T=_.gender,R=_.gender_id,L=_.hair_style,N=_.facial_hair_style,U=_.ear_style,V=_.tail_style,z=_.wing_style,Q=_.markings,H=_.change_race,q=_.change_gender,Z=_.change_eye_color,$=_.change_skin_tone,G=_.change_skin_color,Y=_.change_hair_color,ee=_.change_facial_hair_color,ae=_.change_hair,re=_.change_facial_hair,le=_.mapRef,se=I.title,fe=Z||$||G||Y||ee,de=-1;H?de=0:q?de=1:fe?de=2:ae?de=4:re&&(de=5);var he=(0,r.useState)(de),me=he[0],Ie=he[1];return(0,e.jsx)(g.qo,{width:700,height:650,title:(0,n.Af)(se),children:(0,e.jsxs)(g.qo.Content,{children:[(0,e.jsx)(v.iG,{title:"Reflection",children:(0,e.jsxs)(v.Cu,{children:[(0,e.jsx)(v.Cu.Item,{grow:1,children:(0,e.jsxs)(v.Ce,{children:[(0,e.jsx)(v.Ce.Item,{label:"Name",children:A}),(0,e.jsx)(v.Ce.Item,{label:"Species",color:H?null:"grey",children:P}),(0,e.jsx)(v.Ce.Item,{label:"Biological Sex",color:q?null:"grey",children:T?(0,n.Yj)(T):"Not Set"}),(0,e.jsx)(v.Ce.Item,{label:"Gender Identity",color:fe?null:"grey",children:R?(0,n.Yj)(R):"Not Set"}),(0,e.jsx)(v.Ce.Item,{label:"Hair Style",color:ae?null:"grey",children:L?(0,n.Yj)(L):"Not Set"}),(0,e.jsx)(v.Ce.Item,{label:"Facial Hair Style",color:re?null:"grey",children:N?(0,n.Yj)(N):"Not Set"}),(0,e.jsx)(v.Ce.Item,{label:"Ear Style",color:ae?null:"grey",children:U?(0,n.Yj)(U):"Not Set"}),(0,e.jsx)(v.Ce.Item,{label:"Tail Style",color:ae?null:"grey",children:V?(0,n.Yj)(V):"Not Set"}),(0,e.jsx)(v.Ce.Item,{label:"Wing Style",color:ae?null:"grey",children:z?(0,n.Yj)(z):"Not Set"})]})}),(0,e.jsx)(v.Cu.Item,{children:(0,e.jsx)(v.cb,{style:{width:"256px",height:"256px"},params:{id:le,type:"map"}})})]})}),(0,e.jsxs)(v.kZ,{children:[H?(0,e.jsx)(v.kZ.Tab,{selected:me===0,onClick:function(){return Ie(0)},children:"Race"}):null,q?(0,e.jsx)(v.kZ.Tab,{selected:me===1,onClick:function(){return Ie(1)},children:"Gender & Sex"}):null,fe?(0,e.jsx)(v.kZ.Tab,{selected:me===2,onClick:function(){return Ie(2)},children:"Colors"}):null,ae?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(v.kZ.Tab,{selected:me===3,onClick:function(){return Ie(3)},children:"Hair"}),(0,e.jsx)(v.kZ.Tab,{selected:me===5,onClick:function(){return Ie(5)},children:"Ear"}),(0,e.jsx)(v.kZ.Tab,{selected:me===6,onClick:function(){return Ie(6)},children:"Tail"}),(0,e.jsx)(v.kZ.Tab,{selected:me===7,onClick:function(){return Ie(7)},children:"Wing"}),(0,e.jsx)(v.kZ.Tab,{selected:me===8,onClick:function(){return Ie(8)},children:"Markings"})]}):null,re?(0,e.jsx)(v.kZ.Tab,{selected:me===4,onClick:function(){return Ie(4)},children:"Facial Hair"}):null]}),(0,e.jsxs)(v.kv,{height:"43%",children:[H&&me===0?(0,e.jsx)(f,{}):null,q&&me===1?(0,e.jsx)(u,{}):null,fe&&me===2?(0,e.jsx)(m,{}):null,ae&&me===3?(0,e.jsx)(c,{}):null,re&&me===4?(0,e.jsx)(h,{}):null,ae&&me===5?(0,e.jsx)(l,{}):null,ae&&me===6?(0,e.jsx)(d,{}):null,ae&&me===7?(0,e.jsx)(p,{}):null,ae&&me===8?(0,e.jsx)(C,{}):null]})]})})},f=function(y){var b=(0,o.yy)(),O=b.act,I=b.data,_=I.species,A=I.specimen,P=(0,s.cp)(function(T){return T.specimen})(_||[]);return(0,e.jsx)(v.iG,{title:"Species",fill:!0,scrollable:!0,children:P.map(function(T){return(0,e.jsx)(v.q,{content:T.specimen,selected:A===T.specimen,onClick:function(){return O("race",{race:T.specimen})}},T.specimen)})})},u=function(y){var b=(0,o.yy)(),O=b.act,I=b.data,_=I.gender,A=I.gender_id,P=I.genders,T=I.id_genders;return(0,e.jsx)(v.iG,{title:"Gender & Sex",fill:!0,scrollable:!0,children:(0,e.jsxs)(v.Ce,{children:[(0,e.jsx)(v.Ce.Item,{label:"Biological Sex",children:P.map(function(R){return(0,e.jsx)(v.q,{selected:R.gender_key===_,content:R.gender_name,onClick:function(){return O("gender",{gender:R.gender_key})}},R.gender_key)})}),(0,e.jsx)(v.Ce.Item,{label:"Gender Identity",children:T.map(function(R){return(0,e.jsx)(v.q,{selected:R.gender_key===A,content:R.gender_name,onClick:function(){return O("gender_id",{gender_id:R.gender_key})}},R.gender_key)})})]})})},m=function(y){var b=(0,o.yy)(),O=b.act,I=b.data,_=I.change_eye_color,A=I.change_skin_tone,P=I.change_skin_color,T=I.change_hair_color,R=I.change_facial_hair_color,L=I.eye_color,N=I.skin_color,U=I.hair_color,V=I.facial_hair_color,z=I.ears_color,Q=I.ears2_color,H=I.tail_color,q=I.tail2_color,Z=I.wing_color,$=I.wing2_color;return(0,e.jsxs)(v.iG,{title:"Colors",fill:!0,scrollable:!0,children:[_?(0,e.jsxs)(v.kv,{children:[(0,e.jsx)(v.wP,{color:L,mr:1}),(0,e.jsx)(v.q,{content:"Change Eye Color",onClick:function(){return O("eye_color")}})]}):null,A?(0,e.jsx)(v.kv,{children:(0,e.jsx)(v.q,{content:"Change Skin Tone",onClick:function(){return O("skin_tone")}})}):null,P?(0,e.jsxs)(v.kv,{children:[(0,e.jsx)(v.wP,{color:N,mr:1}),(0,e.jsx)(v.q,{content:"Change Skin Color",onClick:function(){return O("skin_color")}})]}):null,T?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(v.kv,{children:[(0,e.jsx)(v.wP,{color:U,mr:1}),(0,e.jsx)(v.q,{content:"Change Hair Color",onClick:function(){return O("hair_color")}})]}),(0,e.jsxs)(v.kv,{children:[(0,e.jsx)(v.wP,{color:z,mr:1}),(0,e.jsx)(v.q,{content:"Change Ears Color",onClick:function(){return O("ears_color")}})]}),(0,e.jsxs)(v.kv,{children:[(0,e.jsx)(v.wP,{color:Q,mr:1}),(0,e.jsx)(v.q,{content:"Change Secondary Ears Color",onClick:function(){return O("ears2_color")}})]}),(0,e.jsxs)(v.kv,{children:[(0,e.jsx)(v.wP,{color:H,mr:1}),(0,e.jsx)(v.q,{content:"Change Tail Color",onClick:function(){return O("tail_color")}})]}),(0,e.jsxs)(v.kv,{children:[(0,e.jsx)(v.wP,{color:q,mr:1}),(0,e.jsx)(v.q,{content:"Change Secondary Tail Color",onClick:function(){return O("tail2_color")}})]}),(0,e.jsxs)(v.kv,{children:[(0,e.jsx)(v.wP,{color:Z,mr:1}),(0,e.jsx)(v.q,{content:"Change Wing Color",onClick:function(){return O("wing_color")}})]}),(0,e.jsxs)(v.kv,{children:[(0,e.jsx)(v.wP,{color:$,mr:1}),(0,e.jsx)(v.q,{content:"Change Secondary Wing Color",onClick:function(){return O("wing2_color")}})]})]}):null,R?(0,e.jsxs)(v.kv,{children:[(0,e.jsx)(v.wP,{color:V,mr:1}),(0,e.jsx)(v.q,{content:"Change Facial Hair Color",onClick:function(){return O("facial_hair_color")}})]}):null]})},c=function(y){var b=(0,o.yy)(),O=b.act,I=b.data,_=I.hair_style,A=I.hair_styles;return(0,e.jsx)(v.iG,{title:"Hair",fill:!0,scrollable:!0,children:A.map(function(P){return(0,e.jsx)(v.q,{onClick:function(){return O("hair",{hair:P.hairstyle})},selected:P.hairstyle===_,content:P.hairstyle},P.hairstyle)})})},h=function(y){var b=(0,o.yy)(),O=b.act,I=b.data,_=I.facial_hair_style,A=I.facial_hair_styles;return(0,e.jsx)(v.iG,{title:"Facial Hair",fill:!0,scrollable:!0,children:A.map(function(P){return(0,e.jsx)(v.q,{onClick:function(){return O("facial_hair",{facial_hair:P.facialhairstyle})},selected:P.facialhairstyle===_,content:P.facialhairstyle},P.facialhairstyle)})})},l=function(y){var b=(0,o.yy)(),O=b.act,I=b.data,_=I.ear_style,A=I.ear_styles;return(0,e.jsxs)(v.iG,{title:"Ears",fill:!0,scrollable:!0,children:[(0,e.jsx)(v.q,{onClick:function(){return O("ear",{clear:!0})},selected:_===null,content:"-- Not Set --"}),(0,s.cp)(function(P){return P.name.toLowerCase()})(A).map(function(P){return(0,e.jsx)(v.q,{onClick:function(){return O("ear",{ref:P.instance})},selected:P.name===_,content:P.name},P.instance)})]})},d=function(y){var b=(0,o.yy)(),O=b.act,I=b.data,_=I.tail_style,A=I.tail_styles;return(0,e.jsxs)(v.iG,{title:"Tails",fill:!0,scrollable:!0,children:[(0,e.jsx)(v.q,{onClick:function(){return O("tail",{clear:!0})},selected:_===null,content:"-- Not Set --"}),(0,s.cp)(function(P){return P.name.toLowerCase()})(A).map(function(P){return(0,e.jsx)(v.q,{onClick:function(){return O("tail",{ref:P.instance})},selected:P.name===_,content:P.name},P.instance)})]})},p=function(y){var b=(0,o.yy)(),O=b.act,I=b.data,_=I.wing_style,A=I.wing_styles;return(0,e.jsxs)(v.iG,{title:"Wings",fill:!0,scrollable:!0,children:[(0,e.jsx)(v.q,{onClick:function(){return O("wing",{clear:!0})},selected:_===null,content:"-- Not Set --"}),(0,s.cp)(function(P){return P.name.toLowerCase()})(A).map(function(P){return(0,e.jsx)(v.q,{onClick:function(){return O("wing",{ref:P.instance})},selected:P.name===_,content:P.name},P.instance)})]})},C=function(y){var b=(0,o.yy)(),O=b.act,I=b.data,_=I.markings;return(0,e.jsxs)(v.iG,{title:"Markings",fill:!0,scrollable:!0,children:[(0,e.jsx)(v.kv,{children:(0,e.jsx)(v.q,{content:"Add Marking",onClick:function(){return O("marking",{todo:1,name:"na"})}})}),(0,e.jsx)(v.Ce,{children:_.map(function(A){return(0,e.jsxs)(v.Ce.Item,{label:A.marking_name,children:[(0,e.jsx)(v.wP,{color:A.marking_color,mr:1}),(0,e.jsx)(v.q,{content:"Change Color",onClick:function(){return O("marking",{todo:4,name:A.marking_name})}}),(0,e.jsx)(v.q,{content:"-",onClick:function(){return O("marking",{todo:0,name:A.marking_name})}}),(0,e.jsx)(v.q,{content:"Move down",onClick:function(){return O("marking",{todo:3,name:A.marking_name})}}),(0,e.jsx)(v.q,{content:"Move up",onClick:function(){return O("marking",{todo:2,name:A.marking_name})}})]},A.marking_name)})})]})}},1464:function(M,j,t){"use strict";t.r(j),t.d(j,{ArcadeBattle:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.name,m=f.temp,c=f.enemyAction,h=f.enemyName,l=f.playerHP,d=f.playerMP,p=f.enemyHP,C=f.enemyMP,y=f.gameOver;return(0,e.jsx)(r.qo,{width:400,height:240,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsxs)(n.iG,{title:h,textAlign:"center",children:[(0,e.jsxs)(n.iG,{color:"label",children:[(0,e.jsx)(n.kv,{children:m}),(0,e.jsx)(n.kv,{children:!y&&c})]}),(0,e.jsxs)(n.Cu,{spacing:1,children:[(0,e.jsx)(n.Cu.Item,{children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Player Health",children:(0,e.jsxs)(n.cH,{value:l,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[l,"HP"]})}),(0,e.jsx)(n.Ce.Item,{label:"Player Magic",children:(0,e.jsxs)(n.cH,{value:d,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[d,"MP"]})})]})}),(0,e.jsx)(n.Cu.Item,{children:(0,e.jsx)(n.Ce,{children:(0,e.jsx)(n.Ce.Item,{label:"Enemy HP",children:(0,e.jsxs)(n.cH,{value:p,minValue:0,maxValue:45,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[p,"HP"]})})})})]}),y&&(0,e.jsx)(n.q,{fluid:!0,mt:1,color:"green",content:"New Game",onClick:function(){return x("newgame")}})||(0,e.jsxs)(n.Cu,{mt:2,justify:"space-between",spacing:1,children:[(0,e.jsx)(n.Cu.Item,{grow:1,children:(0,e.jsx)(n.q,{fluid:!0,icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",onClick:function(){return x("attack")},content:"Attack!"})}),(0,e.jsx)(n.Cu.Item,{grow:1,children:(0,e.jsx)(n.q,{fluid:!0,icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",onClick:function(){return x("heal")},content:"Heal!"})}),(0,e.jsx)(n.Cu.Item,{grow:1,children:(0,e.jsx)(n.q,{fluid:!0,icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",onClick:function(){return x("charge")},content:"Recharge!"})})]})]})})})}},30352:function(M,j,t){"use strict";t.r(j),t.d(j,{AreaScrubberControl:function(){return g}});var e=t(33496),s=t(49900),n=t(69344),r=t(45280),o=t(68644),v=t(76512),g=function(f){var u=(0,r.yy)(),m=u.act,c=u.data,h=(0,n.useState)(!1),l=h[0],d=h[1],p=c.scrubbers;return p?(0,e.jsx)(v.qo,{width:600,height:400,children:(0,e.jsx)(v.qo.Content,{scrollable:!0,children:(0,e.jsxs)(o.iG,{children:[(0,e.jsxs)(o.Cu,{wrap:"wrap",children:[(0,e.jsx)(o.Cu.Item,{m:"2px",basis:"49%",children:(0,e.jsx)(o.q,{textAlign:"center",fluid:!0,icon:"search",content:"Scan",onClick:function(){return m("scan")}})}),(0,e.jsx)(o.Cu.Item,{m:"2px",basis:"49%",grow:1,children:(0,e.jsx)(o.q,{textAlign:"center",fluid:!0,icon:"layer-group",content:"Show Areas",selected:l,onClick:function(){return d(!l)}})}),(0,e.jsx)(o.Cu.Item,{m:"2px",basis:"49%",children:(0,e.jsx)(o.q,{textAlign:"center",fluid:!0,icon:"toggle-on",content:"All On",onClick:function(){return m("allon")}})}),(0,e.jsx)(o.Cu.Item,{m:"2px",basis:"49%",grow:1,children:(0,e.jsx)(o.q,{textAlign:"center",fluid:!0,icon:"toggle-off",content:"All Off",onClick:function(){return m("alloff")}})})]}),(0,e.jsx)(o.Cu,{wrap:"wrap",children:p.map(function(C){return(0,e.jsx)(o.Cu.Item,{m:"2px",basis:"32%",children:(0,e.jsx)(x,{scrubber:C,showArea:l})},C.id)})})]})})}):(0,e.jsxs)(o.iG,{title:"Error",children:[(0,e.jsx)(o.kv,{color:"bad",children:"No Scrubbers Detected."}),(0,e.jsx)(o.q,{fluid:!0,icon:"search",content:"Scan",onClick:function(){return m("scan")}})]})},x=function(f){var u=(0,r.yy)().act,m=f.scrubber,c=f.showArea;return(0,e.jsxs)(o.iG,{title:m.name,children:[(0,e.jsx)(o.q,{fluid:!0,icon:"power-off",content:m.on?"Enabled":"Disabled",selected:m.on,onClick:function(){return u("toggle",{id:m.id})}}),(0,e.jsxs)(o.Ce,{children:[(0,e.jsxs)(o.Ce.Item,{label:"Pressure",children:[m.pressure," kPa"]}),(0,e.jsxs)(o.Ce.Item,{label:"Flow Rate",children:[m.flow_rate," L/s"]}),(0,e.jsxs)(o.Ce.Item,{label:"Load",children:[m.load," W"]}),c&&(0,e.jsx)(o.Ce.Item,{label:"Area",children:(0,s.Yl)(m.area)})]})]})}},31836:function(M,j,t){"use strict";t.r(j),t.d(j,{AssemblyInfrared:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.on,m=f.visible;return(0,e.jsx)(r.qo,{children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(n.iG,{title:"Infrared Unit",children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Laser",children:(0,e.jsx)(n.q,{icon:"power-off",fluid:!0,selected:u,onClick:function(){return x("state")},children:u?"On":"Off"})}),(0,e.jsx)(n.Ce.Item,{label:"Visibility",children:(0,e.jsx)(n.q,{icon:"eye",fluid:!0,selected:m,onClick:function(){return x("visible")},children:m?"Able to be seen":"Invisible"})})]})})})})}},73908:function(M,j,t){"use strict";t.r(j),t.d(j,{AssemblyProx:function(){return g}});var e=t(33496),s=t(10608),n=t(45280),r=t(68644),o=t(96060),v=t(76512),g=function(x){var f=(0,n.yy)(),u=f.act,m=f.data,c=m.timing,h=m.time,l=m.range,d=m.maxRange,p=m.scanning;return(0,e.jsx)(v.qo,{children:(0,e.jsxs)(v.qo.Content,{children:[(0,e.jsx)(r.iG,{title:"Timing Unit",children:(0,e.jsx)(r.Ce,{children:(0,e.jsx)(r.Ce.Item,{label:"Timer",buttons:(0,e.jsx)(r.q,{icon:"stopwatch",selected:c,onClick:function(){return u("timing")},children:c?"Counting Down":"Disabled"}),children:(0,e.jsx)(r.Ef,{animated:!0,fluid:!0,value:h/10,minValue:0,maxValue:600,format:function(C){return(0,o.AB)((0,s.kL)(C))},onDrag:function(C,y){return u("set_time",{time:y})}})})})}),(0,e.jsx)(r.iG,{title:"Prox Unit",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Range",children:(0,e.jsx)(r.Ef,{minValue:1,value:l,maxValue:d,onDrag:function(C,y){return u("range",{range:y})}})}),(0,e.jsxs)(r.Ce.Item,{label:"Armed",children:[(0,e.jsx)(r.q,{mr:1,icon:p?"lock":"lock-open",selected:p,onClick:function(){return u("scanning")},children:p?"ARMED":"Unarmed"}),"Movement sensor is active when armed!"]})]})})]})})}},25696:function(M,j,t){"use strict";t.r(j),t.d(j,{AssemblyTimer:function(){return g}});var e=t(33496),s=t(10608),n=t(45280),r=t(68644),o=t(96060),v=t(76512),g=function(x){var f=(0,n.yy)(),u=f.act,m=f.data,c=m.timing,h=m.time;return(0,e.jsx)(v.qo,{children:(0,e.jsx)(v.qo.Content,{children:(0,e.jsx)(r.iG,{title:"Timing Unit",children:(0,e.jsx)(r.Ce,{children:(0,e.jsx)(r.Ce.Item,{label:"Timer",buttons:(0,e.jsx)(r.q,{icon:"stopwatch",selected:c,onClick:function(){return u("timing")},children:c?"Counting Down":"Disabled"}),children:(0,e.jsx)(r.Ef,{animated:!0,fluid:!0,value:h/10,minValue:0,maxValue:600,format:function(l){return(0,o.AB)((0,s.kL)(l))},onDrag:function(l,d){return u("set_time",{time:d})}})})})})})})}},12144:function(M,j,t){"use strict";t.r(j),t.d(j,{AtmosAlertConsole:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.priority_alarms||[],m=f.minor_alarms||[];return(0,e.jsx)(r.qo,{width:350,height:300,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:(0,e.jsx)(n.iG,{title:"Alarms",children:(0,e.jsxs)("ul",{children:[u.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Priority Alerts"}),u.map(function(c){return(0,e.jsx)("li",{children:(0,e.jsx)(n.q,{icon:"times",content:c.name,color:"bad",onClick:function(){return x("clear",{ref:c.ref})}})},c.name)}),m.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Minor Alerts"}),m.map(function(c){return(0,e.jsx)("li",{children:(0,e.jsx)(n.q,{icon:"times",content:c.name,color:"average",onClick:function(){return x("clear",{ref:c.ref})}})},c.name)})]})})})})}},67064:function(M,j,t){"use strict";t.r(j),t.d(j,{AtmosControl:function(){return f},AtmosControlContent:function(){return u}});var e=t(33496),s=t(47392),n=t(69344),r=t(45280),o=t(68644),v=t(76512),g=t(37756),x=(0,g.m)("fuck"),f=function(m){return(0,e.jsx)(v.qo,{width:600,height:440,children:(0,e.jsx)(v.qo.Content,{scrollable:!0,children:(0,e.jsx)(u,{})})})},u=function(m){var c=(0,r.yy)(),h=c.act,l=c.data,d=c.config,p=(0,s.cp)(function(P){return P.name})(l.alarms||[]),C=(0,n.useState)(0),y=C[0],b=C[1],O=(0,n.useState)(1),I=O[0],_=O[1],A;return y===0?A=(0,e.jsx)(o.iG,{title:"Alarms",children:p.map(function(P){return(0,e.jsx)(o.q,{content:P.name,color:P.danger===2?"bad":P.danger===1?"average":"",onClick:function(){return h("alarm",{alarm:P.ref})}},P.name)})}):y===1&&(A=(0,e.jsx)(o.kv,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(o.mo,{onZoom:function(P){return _(P)},children:p.filter(function(P){return~~P.z===~~d.mapZLevel}).map(function(P){return(0,e.jsx)(o.mo.Marker,{x:P.x,y:P.y,zoom:I,icon:"bell",tooltip:P.name,color:P.danger?"red":"green",onClick:function(){return h("alarm",{alarm:P.ref})}},P.ref)})})})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(o.kZ,{children:[(0,e.jsxs)(o.kZ.Tab,{selected:y===0,onClick:function(){return b(0)},children:[(0,e.jsx)(o.GW,{name:"table"})," Alarm View"]},"AlarmView"),(0,e.jsxs)(o.kZ.Tab,{selected:y===1,onClick:function(){return b(1)},children:[(0,e.jsx)(o.GW,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.jsx)(o.kv,{m:2,children:A})]})}},31552:function(M,j,t){"use strict";t.r(j),t.d(j,{AtmosFilter:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.filter_types||[];return(0,e.jsx)(r.qo,{width:390,height:187,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(n.iG,{children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Power",children:(0,e.jsx)(n.q,{icon:f.on?"power-off":"times",content:f.on?"On":"Off",selected:f.on,onClick:function(){return x("power")}})}),(0,e.jsxs)(n.Ce.Item,{label:"Transfer Rate",children:[(0,e.jsx)(n.kv,{inline:!0,mr:1,children:(0,e.jsx)(n.Gg,{value:f.last_flow_rate,format:function(m){return m+" L/s"}})}),(0,e.jsx)(n.Ef,{animated:!0,value:parseFloat(f.rate),width:"63px",unit:"L/s",minValue:0,maxValue:200,onDrag:function(m,c){return x("rate",{rate:c})}}),(0,e.jsx)(n.q,{ml:1,icon:"plus",content:"Max",disabled:f.rate===f.max_rate,onClick:function(){return x("rate",{rate:"max"})}})]}),(0,e.jsx)(n.Ce.Item,{label:"Filter",children:u.map(function(m){return(0,e.jsx)(n.q,{selected:m.selected,content:m.name,onClick:function(){return x("filter",{filterset:m.f_type})}},m.name)})})]})})})})}},39232:function(M,j,t){"use strict";t.r(j),t.d(j,{AtmosMixer:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data;return(0,e.jsx)(r.qo,{width:370,height:195,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(n.iG,{children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Power",children:(0,e.jsx)(n.q,{icon:f.on?"power-off":"times",content:f.on?"On":"Off",selected:f.on,onClick:function(){return x("power")}})}),(0,e.jsxs)(n.Ce.Item,{label:"Output Pressure",children:[(0,e.jsx)(n.Ef,{animated:!0,value:parseFloat(f.set_pressure),unit:"kPa",width:"75px",minValue:0,maxValue:f.max_pressure,step:10,onChange:function(u,m){return x("pressure",{pressure:m})}}),(0,e.jsx)(n.q,{ml:1,icon:"plus",content:"Max",disabled:f.set_pressure===f.max_pressure,onClick:function(){return x("pressure",{pressure:"max"})}})]}),(0,e.jsx)(n.Ce.Divider,{size:1}),(0,e.jsx)(n.Ce.Item,{color:"label",children:(0,e.jsx)("u",{children:"Concentrations"})}),(0,e.jsx)(n.Ce.Item,{label:"Node 1 ("+f.node1_dir+")",children:(0,e.jsx)(n.Ef,{animated:!0,value:f.node1_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(u,m){return x("node1",{concentration:m})}})}),(0,e.jsx)(n.Ce.Item,{label:"Node 2 ("+f.node2_dir+")",children:(0,e.jsx)(n.Ef,{animated:!0,value:f.node2_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(u,m){return x("node2",{concentration:m})}})})]})})})})}},21644:function(M,j,t){"use strict";t.r(j),t.d(j,{Autolathe:function(){return l}});var e=t(33496),s=t(47392),n=t(18140),r=t(49900),o=t(45280),v=t(68644),g=t(76512),x=t(93436);function f(d,p){(p==null||p>d.length)&&(p=d.length);for(var C=0,y=new Array(p);C=d.length?{done:!0}:{done:!1,value:d[y++]}}}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 h=function(d,p,C){var y=function(){var A=I.value,P=p.find(function(T){return T.name===A});if(!P)return"continue";if(P.amount=0)&&(p[y]=l[y]);return p}var x={Alphabetical:function(l,d){return l-d},"By availability":function(l,d){return-(l.affordable-d.affordable)},"By price":function(l,d){return l.price-d.price}},f=function(l){var d=(0,n.yy)(),p=d.act,C=d.data;return(0,e.jsx)(o.qo,{width:400,height:450,children:(0,e.jsx)(o.qo.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:C.processing&&(0,e.jsx)(r.iG,{title:"Processing",children:"The biogenerator is processing reagents!"})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.iG,{children:[C.points," points available.",(0,e.jsx)(r.q,{ml:1,icon:"blender",onClick:function(){return p("activate")},children:"Activate"}),(0,e.jsx)(r.q,{ml:1,icon:"eject",disabled:!C.beaker,onClick:function(){return p("detach")},children:"Eject Beaker"})]}),(0,e.jsx)(m,{}),(0,e.jsx)(u,{})]})})})},u=function(l){var d=(0,n.yy)(),p=d.act,C=d.data,y=C.points,b=C.items,O=(0,n.cv)("search",""),I=O[0],_=O[1],A=(0,n.cv)("sort","Alphabetical"),P=A[0],T=A[1],R=(0,n.cv)("descending",!1),L=R[0],N=R[1],U=(0,s.od)(I,function(Q){return Q[0]}),V=!1,z=Object.entries(b).map(function(Q,H){var q=Object.entries(Q[1]).filter(U).map(function(Z){return Z[1].affordable=y>=Z[1].price/C.build_eff,Z[1]}).sort(x[P]);if(q.length!==0)return L&&(q=q.reverse()),V=!0,(0,e.jsx)(h,{title:Q[0],items:q},Q[0])});return(0,e.jsx)(r.Cu.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(r.iG,{children:V?z:(0,e.jsx)(r.kv,{color:"label",children:"No items matching your criteria was found!"})})})},m=function(l){var d=(0,n.cv)("search",""),p=d[0],C=d[1],y=(0,n.cv)("sort",""),b=y[0],O=y[1],I=(0,n.cv)("descending",!1),_=I[0],A=I[1];return(0,e.jsx)(r.kv,{mb:"0.5rem",children:(0,e.jsxs)(r.Cu,{width:"100%",children:[(0,e.jsx)(r.Cu.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(r.EF,{placeholder:"Search by item name..",width:"100%",onInput:function(P,T){return C(T)}})}),(0,e.jsx)(r.Cu.Item,{basis:"30%",children:(0,e.jsx)(r.cS,{selected:"Alphabetical",options:Object.keys(x),width:"100%",lineHeight:"19px",onSelected:function(P){return O(P)}})}),(0,e.jsx)(r.Cu.Item,{children:(0,e.jsx)(r.q,{icon:_?"arrow-down":"arrow-up",height:"19px",tooltip:_?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return A(!_)}})})]})})},c=function(l,d){return!(!l.affordable||l.reagent&&!d.beaker)},h=function(l){var d=(0,n.yy)(),p=d.act,C=d.data,y=l.title,b=l.items,O=g(l,["title","items"]);return(0,e.jsx)(r.Uv,v({open:!0,title:y},O,{children:b.map(function(I){return(0,e.jsxs)(r.kv,{children:[(0,e.jsx)(r.kv,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:I.name}),(0,e.jsx)(r.q,{disabled:!c(I,C),content:(I.price/C.build_eff).toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return p("purchase",{cat:y,name:I.name})}}),(0,e.jsx)(r.kv,{style:{clear:"both"}})]},I.name)})}))}},89744:function(M,j,t){"use strict";t.r(j),t.d(j,{BodyDesigner:function(){return v}});var e=t(33496),s=t(49900),n=t(45280),r=t(68644),o=t(76512),v=function(h){var l=(0,n.yy)(),d=l.act,p=l.data,C=p.menu,y=p.disk,b=p.diskStored,O=p.activeBodyRecord,I=c[C];return(0,e.jsx)(o.qo,{width:400,height:650,children:(0,e.jsxs)(o.qo.Content,{children:[y?(0,e.jsxs)(r.kv,{children:[(0,e.jsx)(r.q,{icon:"save",content:"Save To Disk",onClick:function(){return d("savetodisk")},disabled:!O}),(0,e.jsx)(r.q,{icon:"save",content:"Load From Disk",onClick:function(){return d("loadfromdisk")},disabled:!b}),(0,e.jsx)(r.q,{icon:"eject",content:"Eject",onClick:function(){return d("ejectdisk")}})]}):null,I]})})},g=function(h){var l=(0,n.yy)(),d=l.act,p=l.data;return(0,e.jsxs)(r.iG,{title:"Database Functions",children:[(0,e.jsx)(r.q,{icon:"eye",content:"View Individual Body Records",onClick:function(){return d("menu",{menu:"Body Records"})}}),(0,e.jsx)(r.q,{icon:"eye",content:"View Stock Body Records",onClick:function(){return d("menu",{menu:"Stock Records"})}})]})},x=function(h){var l=(0,n.yy)(),d=l.act,p=l.data,C=p.bodyrecords;return(0,e.jsx)(r.iG,{title:"Body Records",buttons:(0,e.jsx)(r.q,{icon:"arrow-left",content:"Back",onClick:function(){return d("menu",{menu:"Main"})}}),children:C.map(function(y){return(0,e.jsx)(r.q,{icon:"eye",content:y.name,onClick:function(){return d("view_brec",{view_brec:y.recref})}},y.name)})})},f=function(h){var l=(0,n.yy)(),d=l.act,p=l.data,C=p.stock_bodyrecords;return(0,e.jsx)(r.iG,{title:"Stock Records",buttons:(0,e.jsx)(r.q,{icon:"arrow-left",content:"Back",onClick:function(){return d("menu",{menu:"Main"})}}),children:C.map(function(y){return(0,e.jsx)(r.q,{icon:"eye",content:y,onClick:function(){return d("view_stock_brec",{view_stock_brec:y})}},y)})})},u=function(h){var l=(0,n.yy)(),d=l.act,p=l.data,C=p.activeBodyRecord,y=p.mapRef;return C?(0,e.jsxs)(r.Cu,{direction:"column",children:[(0,e.jsx)(r.Cu.Item,{basis:"165px",children:(0,e.jsx)(r.iG,{title:"Specific Record",buttons:(0,e.jsx)(r.q,{icon:"arrow-left",content:"Back",onClick:function(){return d("menu",{menu:"Main"})}}),children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Name",children:C.real_name}),(0,e.jsx)(r.Ce.Item,{label:"Species",children:C.speciesname}),(0,e.jsx)(r.Ce.Item,{label:"Bio. Sex",children:(0,e.jsx)(r.q,{icon:"pen",content:(0,s.Yj)(C.gender),onClick:function(){return d("href_conversion",{target_href:"bio_gender",target_value:1})}})}),(0,e.jsx)(r.Ce.Item,{label:"Synthetic",children:C.synthetic}),(0,e.jsxs)(r.Ce.Item,{label:"Mind Compat",children:[C.locked,(0,e.jsx)(r.q,{ml:1,icon:"eye",content:"View OOC Notes",disabled:!C.booc,onClick:function(){return d("boocnotes")}})]})]})})}),(0,e.jsx)(r.Cu.Item,{basis:"130px",children:(0,e.jsx)(r.cb,{style:{width:"100%",height:"128px"},params:{id:y,type:"map"}})}),(0,e.jsx)(r.Cu.Item,{basis:"300px",children:(0,e.jsx)(r.iG,{title:"Customize",height:"300px",style:{overflow:"auto"},children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Scale",children:(0,e.jsx)(r.q,{icon:"pen",content:C.scale,onClick:function(){return d("href_conversion",{target_href:"size_multiplier",target_value:1})}})}),Object.keys(C.styles).map(function(b){var O=C.styles[b];return(0,e.jsxs)(r.Ce.Item,{label:b,children:[O.styleHref?(0,e.jsx)(r.q,{icon:"pen",content:O.style,onClick:function(){return d("href_conversion",{target_href:O.styleHref,target_value:1})}}):null,O.colorHref?(0,e.jsxs)(r.kv,{children:[(0,e.jsx)(r.q,{icon:"pen",content:O.color,onClick:function(){return d("href_conversion",{target_href:O.colorHref,target_value:1})}}),(0,e.jsx)(r.wP,{verticalAlign:"top",width:"32px",height:"20px",color:O.color,style:{border:"1px solid #fff"}})]}):null,O.colorHref2?(0,e.jsxs)(r.kv,{children:[(0,e.jsx)(r.q,{icon:"pen",content:O.color2,onClick:function(){return d("href_conversion",{target_href:O.colorHref2,target_value:1})}}),(0,e.jsx)(r.wP,{verticalAlign:"top",width:"32px",height:"20px",color:O.color2,style:{border:"1px solid #fff"}})]}):null]},b)}),(0,e.jsxs)(r.Ce.Item,{label:"Body Markings",children:[(0,e.jsx)(r.q,{icon:"plus",content:"Add Marking",onClick:function(){return d("href_conversion",{target_href:"marking_style",target_value:1})}}),(0,e.jsx)(r.Cu,{wrap:"wrap",justify:"center",align:"center",children:Object.keys(C.markings).map(function(b){var O=C.markings[b];return(0,e.jsx)(r.Cu.Item,{basis:"100%",children:(0,e.jsxs)(r.Cu,{children:[(0,e.jsx)(r.Cu.Item,{children:(0,e.jsx)(r.q,{mr:.2,fluid:!0,icon:"times",color:"red",onClick:function(){return d("href_conversion",{target_href:"marking_remove",target_value:b})}})}),(0,e.jsx)(r.Cu.Item,{grow:1,children:(0,e.jsx)(r.q,{fluid:!0,backgroundColor:O,content:b,onClick:function(){return d("href_conversion",{target_href:"marking_color",target_value:b})}})})]})},b)})})]})]})})})]}):(0,e.jsx)(r.kv,{color:"bad",children:"ERROR: Record Not Found!"})},m=function(h){var l=(0,n.yy)(),d=l.act,p=l.data,C=p.activeBodyRecord;return(0,e.jsx)(r.iG,{title:"Body OOC Notes (This is OOC!)",height:"100%",scrollable:!0,buttons:(0,e.jsx)(r.q,{icon:"arrow-left",content:"Back",onClick:function(){return d("menu",{menu:"Specific Record"})}}),style:{"word-break":"break-all"},children:C&&C.booc||"ERROR: Body record not found!"})},c={Main:(0,e.jsx)(g,{}),"Body Records":(0,e.jsx)(x,{}),"Stock Records":(0,e.jsx)(f,{}),"Specific Record":(0,e.jsx)(u,{}),"OOC Notes":(0,e.jsx)(m,{})}},17644:function(M,j,t){"use strict";t.r(j),t.d(j,{BodyScanner:function(){return h}});var e=t(33496),s=t(10608),n=t(45280),r=t(68644),o=t(76512),v=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],g=[["hasBorer","bad",function(A){return"Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."}],["hasVirus","bad",function(A){return"Viral pathogen detected in blood stream."}],["blind","average",function(A){return"Cataracts detected."}],["colourblind","average",function(A){return"Photoreceptor abnormalities detected."}],["nearsighted","average",function(A){return"Retinal misalignment detected."}],["humanPrey","average",function(A){return"Foreign Humanoid(s) detected: "+A.humanPrey}],["livingPrey","average",function(A){return"Foreign Creature(s) detected: "+A.livingPrey}],["objectPrey","average",function(A){return"Foreign Object(s) detected: "+A.objectPrey}]],x=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Genetic","cloneLoss"],["Burn","fireLoss"],["Paralysis","paralysis"]],f={average:[.25,.5],bad:[.5,1/0]},u=function(A,P){for(var T=[],R=0;R0?A.reduce(function(P,T){return P===null?T:(0,e.jsxs)(e.Fragment,{children:[P,!!T&&(0,e.jsx)(r.kv,{children:T})]})}):null},c=function(A){if(A>100){if(A<300)return"mild infection";if(A<400)return"mild infection+";if(A<500)return"mild infection++";if(A<700)return"acute infection";if(A<800)return"acute infection+";if(A<900)return"acute infection++";if(A>=900)return"septic"}return""},h=function(A){var P=(0,n.yy)().data,T=P.occupied,R=P.occupant,L=R===void 0?{}:R,N=T?(0,e.jsx)(l,{occupant:L}):(0,e.jsx)(_,{});return(0,e.jsx)(o.qo,{width:690,height:600,children:(0,e.jsx)(o.qo.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:N})})},l=function(A){var P=A.occupant;return(0,e.jsxs)(r.kv,{children:[(0,e.jsx)(d,{occupant:P}),(0,e.jsx)(p,{occupant:P}),(0,e.jsx)(C,{occupant:P}),(0,e.jsx)(y,{occupant:P}),(0,e.jsx)(O,{organs:P.extOrgan}),(0,e.jsx)(I,{organs:P.intOrgan})]})},d=function(A){var P=(0,n.yy)(),T=P.act,R=P.data,L=R.occupant;return(0,e.jsx)(r.iG,{title:"Occupant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.q,{icon:"user-slash",onClick:function(){return T("ejectify")},children:"Eject"}),(0,e.jsx)(r.q,{icon:"print",onClick:function(){return T("print_p")},children:"Print Report"})]}),children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Name",children:L.name}),(0,e.jsx)(r.Ce.Item,{label:"Health",children:(0,e.jsx)(r.cH,{min:"0",max:L.maxHealth,value:L.health/L.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.jsx)(r.Ce.Item,{label:"Status",color:v[L.stat][0],children:v[L.stat][1]}),(0,e.jsxs)(r.Ce.Item,{label:"Temperature",children:[(0,e.jsx)(r.Gg,{value:(0,s.kL)(L.bodyTempC,0)}),"\xB0C,\xA0",(0,e.jsx)(r.Gg,{value:(0,s.kL)(L.bodyTempF,0)}),"\xB0F"]}),(0,e.jsxs)(r.Ce.Item,{label:"Blood Volume",children:[(0,e.jsx)(r.Gg,{value:(0,s.kL)(L.blood.volume,0)})," ","units\xA0(",(0,e.jsx)(r.Gg,{value:(0,s.kL)(L.blood.percent,0)}),"%)"]}),(0,e.jsx)(r.Ce.Item,{label:"Weight",children:(0,s.kL)(R.occupant.weight)+"lbs, "+(0,s.kL)(R.occupant.weight/2.20463)+"kgs"})]})})},p=function(A){var P=A.occupant;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.iG,{title:"Blood Reagents",children:P.reagents?(0,e.jsxs)(r.oJ,{children:[(0,e.jsxs)(r.oJ.Row,{header:!0,children:[(0,e.jsx)(r.oJ.Cell,{children:"Reagent"}),(0,e.jsx)(r.oJ.Cell,{textAlign:"right",children:"Amount"})]}),P.reagents.map(function(T){return(0,e.jsxs)(r.oJ.Row,{children:[(0,e.jsx)(r.oJ.Cell,{children:T.name}),(0,e.jsxs)(r.oJ.Cell,{textAlign:"right",children:[T.amount," Units"," ",T.overdose?(0,e.jsx)(r.kv,{color:"bad",children:"OVERDOSING"}):null]})]},T.name)})]}):(0,e.jsx)(r.kv,{color:"good",children:"No Blood Reagents Detected"})}),(0,e.jsx)(r.iG,{title:"Stomach Reagents",children:P.ingested?(0,e.jsxs)(r.oJ,{children:[(0,e.jsxs)(r.oJ.Row,{header:!0,children:[(0,e.jsx)(r.oJ.Cell,{children:"Reagent"}),(0,e.jsx)(r.oJ.Cell,{textAlign:"right",children:"Amount"})]}),P.ingested.map(function(T){return(0,e.jsxs)(r.oJ.Row,{children:[(0,e.jsx)(r.oJ.Cell,{children:T.name}),(0,e.jsxs)(r.oJ.Cell,{textAlign:"right",children:[T.amount," Units"," ",T.overdose?(0,e.jsx)(r.kv,{color:"bad",children:"OVERDOSING"}):null]})]},T.name)})]}):(0,e.jsx)(r.kv,{color:"good",children:"No Stomach Reagents Detected"})})]})},C=function(A){var P=A.occupant,T=P.hasBorer||P.blind||P.colourblind||P.nearsighted||P.hasVirus;return T=T||P.humanPrey||P.livingPrey||P.objectPrey,T?(0,e.jsx)(r.iG,{title:"Abnormalities",children:g.map(function(R,L){if(P[R[0]])return(0,e.jsx)(r.kv,{color:R[1],bold:R[1]==="bad",children:R[2](P)},L)})}):(0,e.jsx)(r.iG,{title:"Abnormalities",children:(0,e.jsx)(r.kv,{color:"label",children:"No abnormalities found."})})},y=function(A){var P=A.occupant;return(0,e.jsx)(r.iG,{title:"Damage",children:(0,e.jsx)(r.oJ,{children:u(x,function(T,R,L){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.oJ.Row,{color:"label",children:[(0,e.jsxs)(r.oJ.Cell,{children:[T[0],":"]}),(0,e.jsx)(r.oJ.Cell,{children:!!R&&R[0]+":"})]}),(0,e.jsxs)(r.oJ.Row,{children:[(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(b,{value:P[T[1]],marginBottom:L0&&"0.5rem",value:P.totalLoss/100,ranges:f,children:[(0,e.jsxs)(r.kv,{float:"left",inline:!0,children:[!!P.bruteLoss&&(0,e.jsxs)(r.kv,{inline:!0,position:"relative",children:[(0,e.jsx)(r.GW,{name:"bone"}),(0,s.kL)(P.bruteLoss,0),"\xA0",(0,e.jsx)(r.o5,{position:"top",content:"Brute damage"})]}),!!P.fireLoss&&(0,e.jsxs)(r.kv,{inline:!0,position:"relative",children:[(0,e.jsx)(r.GW,{name:"fire"}),(0,s.kL)(P.fireLoss,0),(0,e.jsx)(r.o5,{position:"top",content:"Burn damage"})]})]}),(0,e.jsx)(r.kv,{inline:!0,children:(0,s.kL)(P.totalLoss,0)})]})}),(0,e.jsxs)(r.oJ.Cell,{textAlign:"right",width:"33%",children:[(0,e.jsx)(r.kv,{color:"average",inline:!0,children:m([P.internalBleeding&&"Internal bleeding",!!P.status.bleeding&&"External bleeding",P.lungRuptured&&"Ruptured lung",P.destroyed&&"Destroyed",!!P.status.broken&&P.status.broken,c(P.germ_level),!!P.open&&"Open incision"])}),(0,e.jsxs)(r.kv,{inline:!0,children:[m([!!P.status.splinted&&"Splinted",!!P.status.robotic&&"Robotic",!!P.status.dead&&(0,e.jsx)(r.kv,{color:"bad",children:"DEAD"})]),m(P.implants.map(function(R){return R.known?R.name:"Unknown object"}))]})]})]},T)})]})})},I=function(A){return A.organs.length===0?(0,e.jsx)(r.iG,{title:"Internal Organs",children:(0,e.jsx)(r.kv,{color:"label",children:"N/A"})}):(0,e.jsx)(r.iG,{title:"Internal Organs",children:(0,e.jsxs)(r.oJ,{children:[(0,e.jsxs)(r.oJ.Row,{header:!0,children:[(0,e.jsx)(r.oJ.Cell,{children:"Name"}),(0,e.jsx)(r.oJ.Cell,{textAlign:"center",children:"Damage"}),(0,e.jsx)(r.oJ.Cell,{textAlign:"right",children:"Injuries"})]}),A.organs.map(function(P,T){return(0,e.jsxs)(r.oJ.Row,{style:{textTransform:"capitalize"},children:[(0,e.jsx)(r.oJ.Cell,{width:"33%",children:P.name}),(0,e.jsx)(r.oJ.Cell,{textAlign:"center",children:(0,e.jsx)(r.cH,{min:"0",max:P.maxHealth,value:P.damage/100,mt:T>0&&"0.5rem",ranges:f,children:(0,s.kL)(P.damage,0)})}),(0,e.jsxs)(r.oJ.Cell,{textAlign:"right",width:"33%",children:[(0,e.jsx)(r.kv,{color:"average",inline:!0,children:m([c(P.germ_level),!!P.inflamed&&"Appendicitis detected."])}),(0,e.jsx)(r.kv,{inline:!0,children:m([P.robotic===1&&"Robotic",P.robotic===2&&"Assisted",!!P.dead&&(0,e.jsx)(r.kv,{color:"bad",children:"DEAD"})])})]})]},T)})]})})},_=function(){return(0,e.jsx)(r.iG,{textAlign:"center",flexGrow:"1",children:(0,e.jsx)(r.Cu,{height:"100%",children:(0,e.jsxs)(r.Cu.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(r.GW,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No occupant detected."]})})})}},53716:function(M,j,t){"use strict";t.r(j),t.d(j,{BombTester:function(){return f}});var e=t(33496),s=t(69344),n=t(45280),r=t(68644),o=t(76512);function v(){return v=Object.assign||function(m){for(var c=1;c.5,O=Math.random()>.5;return d.state={x:b?p:0,y:O?C:0,reverseX:!1,reverseY:!1},d.process=setInterval(function(){d.setState(function(I){var _=v({},I);return _.reverseX?_.x-y<-5?(_.reverseX=!1,_.x+=y):_.x-=y:_.x+y>p?(_.reverseX=!0,_.x-=y):_.x+=y,_.reverseY?_.y-y<-20?(_.reverseY=!1,_.y+=y):_.y-=y:_.y+y>C?(_.reverseY=!0,_.y-=y):_.y+=y,_})},1),d}var h=c.prototype;return h.componentWillUnmount=function(){clearInterval(this.process)},h.render=function(){var d=this.state,p=d.x,C=d.y,y={position:"relative",left:p+"px",top:C+"px"};return(0,e.jsx)(r.iG,{title:"Simulation in progress!",fill:!0,children:(0,e.jsx)(r.kv,{position:"absolute",style:{overflow:"hidden",width:"100%",height:"100%"},children:(0,e.jsx)(r.GW,{style:y,name:"bomb",size:10,color:"red"})})})},c}(s.Component)},88588:function(M,j,t){"use strict";t.r(j),t.d(j,{BotanyEditor:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.activity,m=f.degradation,c=f.disk,h=f.sourceName,l=f.locus,d=f.loaded;return u?(0,e.jsx)(r.qo,{width:470,height:500,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:(0,e.jsx)(n.yc,{info:!0,children:"Scanning..."})})}):(0,e.jsx)(r.qo,{width:470,height:500,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsx)(n.iG,{title:"Buffered Genetic Data",children:c&&(0,e.jsxs)(n.kv,{children:[(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Source",children:h}),(0,e.jsxs)(n.Ce.Item,{label:"Gene Decay",children:[m,"%"]}),(0,e.jsx)(n.Ce.Item,{label:"Locus",children:l})]}),(0,e.jsx)(n.q,{mt:1,icon:"eject",onClick:function(){return x("eject_disk")},children:"Eject Loaded Disk"})]})||(0,e.jsx)(n.yc,{warning:!0,children:"No disk loaded."})}),(0,e.jsx)(n.iG,{title:"Loaded Material",children:d&&(0,e.jsxs)(n.kv,{children:[(0,e.jsx)(n.Ce,{children:(0,e.jsx)(n.Ce.Item,{label:"Target",children:d})}),(0,e.jsx)(n.q,{mt:1,icon:"cog",onClick:function(){return x("apply_gene")},children:"Apply Gene Mods"}),(0,e.jsx)(n.q,{mt:1,icon:"eject",onClick:function(){return x("eject_packet")},children:"Eject Target"})]})||(0,e.jsx)(n.yc,{warning:!0,children:"No target seed packet loaded."})})]})})}},30592:function(M,j,t){"use strict";t.r(j),t.d(j,{BotanyIsolator:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.geneMasks,m=f.activity,c=f.degradation,h=f.disk,l=f.loaded,d=f.hasGenetics,p=f.sourceName;return m?(0,e.jsx)(r.qo,{width:470,height:500,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:(0,e.jsx)(n.yc,{info:!0,children:"Scanning..."})})}):(0,e.jsx)(r.qo,{width:470,height:500,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsx)(n.iG,{title:"Buffered Genetic Data",children:d&&(0,e.jsxs)(n.kv,{children:[(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Source",children:p}),(0,e.jsxs)(n.Ce.Item,{label:"Gene decay",children:[c,"%"]}),h&&u.length&&u.map(function(C){return(0,e.jsx)(n.Ce.Item,{label:C.mask,children:(0,e.jsx)(n.q,{mb:-1,icon:"download",onClick:function(){return x("get_gene",{get_gene:C.tag})},children:"Extract"})},C.mask)})||null]}),h&&(0,e.jsxs)(n.kv,{mt:1,children:[(0,e.jsx)(n.q,{icon:"eject",onClick:function(){return x("eject_disk")},children:"Eject Loaded Disk"}),(0,e.jsx)(n.q,{icon:"trash",onClick:function(){return x("clear_buffer")},children:"Clear Genetic Buffer"})]})||(0,e.jsx)(n.yc,{mt:1,warning:!0,children:"No disk inserted."})]})||(0,e.jsxs)(n.kv,{children:[(0,e.jsx)(n.yc,{warning:!0,children:"No Data Buffered."}),h&&(0,e.jsx)(n.q,{icon:"eject",onClick:function(){return x("eject_disk")},children:"Eject Loaded Disk"})||(0,e.jsx)(n.yc,{mt:1,warning:!0,children:"No disk inserted."})]})}),(0,e.jsx)(n.iG,{title:"Loaded Material",children:l&&(0,e.jsxs)(n.kv,{children:[(0,e.jsx)(n.Ce,{children:(0,e.jsx)(n.Ce.Item,{label:"Packet Loaded",children:l})}),(0,e.jsx)(n.q,{mt:1,icon:"cog",onClick:function(){return x("scan_genome")},children:"Process Genome"}),(0,e.jsx)(n.q,{icon:"eject",onClick:function(){return x("eject_packet")},children:"Eject Packet"})]})||(0,e.jsx)(n.yc,{warning:!0,children:"No packet loaded."})})]})})}},95844:function(M,j,t){"use strict";t.r(j),t.d(j,{BrigTimer:function(){return g}});var e=t(33496),s=t(10608),n=t(45280),r=t(68644),o=t(96060),v=t(76512),g=function(x){var f=(0,n.yy)(),u=f.act,m=f.data;return(0,e.jsx)(v.qo,{width:300,height:138,children:(0,e.jsx)(v.qo.Content,{scrollable:!0,children:(0,e.jsxs)(r.iG,{title:"Cell Timer",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.q,{icon:"clock-o",content:m.timing?"Stop":"Start",selected:m.timing,onClick:function(){return u(m.timing?"stop":"start")}}),m.flash_found&&(0,e.jsx)(r.q,{icon:"lightbulb-o",content:m.flash_charging?"Recharging":"Flash",disabled:m.flash_charging,onClick:function(){return u("flash")}})||null]}),children:[(0,e.jsx)(r.Ef,{animated:!0,fluid:!0,value:m.time_left/10,minValue:0,maxValue:m.max_time_left/10,format:function(c){return(0,o.AB)((0,s.kL)(c))},onDrag:function(c,h){return u("time",{time:h})}}),(0,e.jsxs)(r.Cu,{mt:1,children:[(0,e.jsx)(r.Cu.Item,{grow:1,children:(0,e.jsx)(r.q,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,o.AB)(m.preset_short/10),onClick:function(){return u("preset",{preset:"short"})}})}),(0,e.jsx)(r.Cu.Item,{grow:1,children:(0,e.jsx)(r.q,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,o.AB)(m.preset_medium/10),onClick:function(){return u("preset",{preset:"medium"})}})}),(0,e.jsx)(r.Cu.Item,{grow:1,children:(0,e.jsx)(r.q,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,o.AB)(m.preset_long/10),onClick:function(){return u("preset",{preset:"long"})}})})]})]})})})}},42040:function(M,j,t){"use strict";t.r(j),t.d(j,{CameraConsole:function(){return c},CameraConsoleContent:function(){return h},prevNextCamera:function(){return u},selectCameras:function(){return m}});var e=t(33496),s=t(47392),n=t(18140),r=t(28324),o=t(49900),v=t(69344),g=t(45280),x=t(68644),f=t(76512),u=function(l,d){var p,C;if(!d)return[];var y=l.findIndex(function(b){return b.name===d.name});return[(p=l[y-1])==null?void 0:p.name,(C=l[y+1])==null?void 0:C.name]},m=function(l,d,p){d===void 0&&(d=""),p===void 0&&(p="");var C=(0,o.od)(d,function(y){return y.name});return(0,n.k)([(0,s.IF)(function(y){return y==null?void 0:y.name}),d&&(0,s.IF)(C),p&&(0,s.IF)(function(y){return y.networks.includes(p)}),(0,s.cp)(function(y){return y.name})])(l)},c=function(l){var d=(0,g.yy)(),p=d.act,C=d.data,y=C.mapRef,b=C.activeCamera,O=m(C.cameras),I=u(O,b),_=I[0],A=I[1];return(0,e.jsxs)(f.qo,{width:870,height:708,children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(f.qo.Content,{scrollable:!0,children:(0,e.jsx)(h,{})})}),(0,e.jsxs)("div",{className:"CameraConsole__right",children:[(0,e.jsxs)("div",{className:"CameraConsole__toolbar",children:[(0,e.jsx)("b",{children:"Camera: "}),b&&b.name||"\u2014"]}),(0,e.jsxs)("div",{className:"CameraConsole__toolbarRight",children:["SEL:",(0,e.jsx)(x.q,{icon:"chevron-left",disabled:!_,onClick:function(){return p("switch_camera",{name:_})}}),(0,e.jsx)(x.q,{icon:"chevron-right",disabled:!A,onClick:function(){return p("switch_camera",{name:A})}}),"| PAN:",(0,e.jsx)(x.q,{icon:"chevron-left",onClick:function(){return p("pan",{dir:8})}}),(0,e.jsx)(x.q,{icon:"chevron-up",onClick:function(){return p("pan",{dir:1})}}),(0,e.jsx)(x.q,{icon:"chevron-right",onClick:function(){return p("pan",{dir:4})}}),(0,e.jsx)(x.q,{icon:"chevron-down",onClick:function(){return p("pan",{dir:2})}})]}),(0,e.jsx)(x.cb,{className:"CameraConsole__map",params:{id:y,type:"map"}})]})]})},h=function(l){var d=(0,g.yy)(),p=d.act,C=d.data,y=(0,v.useState)(""),b=y[0],O=y[1],I=(0,v.useState)(""),_=I[0],A=I[1],P=C.activeCamera,T=C.allNetworks;T.sort();var R=m(C.cameras,b,_);return(0,e.jsxs)(x.Cu,{direction:"column",height:"100%",children:[(0,e.jsx)(x.Cu.Item,{children:(0,e.jsx)(x.EF,{autoFocus:!0,fluid:!0,mt:1,placeholder:"Search for a camera",onInput:function(L,N){return O(N)}})}),(0,e.jsx)(x.Cu.Item,{children:(0,e.jsx)(x.cS,{mb:1,width:"177px",displayText:_||"No Filter",options:T,onSelected:function(L){return A(L)}})}),(0,e.jsx)(x.Cu.Item,{height:"100%",children:(0,e.jsx)(x.iG,{fill:!0,scrollable:!0,children:R.map(function(L){return(0,e.jsx)("div",{title:L.name,className:(0,r.iE)(["Button","Button--fluid","Button--color--transparent","Button--ellipsis",P&&L.name===P.name&&"Button--selected"]),onClick:function(){return p("switch_camera",{name:L.name})},children:L.name},L.name)})})})]})}},38624:function(M,j,t){"use strict";t.r(j),t.d(j,{Canister:function(){return g}});var e=t(33496),s=t(10608),n=t(45280),r=t(68644),o=t(96060),v=t(76512),g=function(x){var f=(0,n.yy)(),u=f.act,m=f.data,c=m.connected,h=m.can_relabel,l=m.pressure,d=m.releasePressure,p=m.defaultReleasePressure,C=m.minReleasePressure,y=m.maxReleasePressure,b=m.valveOpen,O=m.holding;return(0,e.jsx)(v.qo,{width:360,height:242,children:(0,e.jsxs)(v.qo.Content,{children:[(0,e.jsx)(r.iG,{title:"Canister",buttons:(0,e.jsx)(r.q,{icon:"pencil-alt",disabled:!h,content:"Relabel",onClick:function(){return u("relabel")}}),children:(0,e.jsxs)(r.Cw,{children:[(0,e.jsx)(r.Cw.Item,{minWidth:"66px",label:"Tank Pressure",children:(0,e.jsx)(r.Gg,{value:l,format:function(I){return I<1e4?(0,s.yI)(I)+" kPa":(0,o._c)(I*1e3,1,"Pa")}})}),(0,e.jsx)(r.Cw.Item,{label:"Regulator",children:(0,e.jsxs)(r.kv,{position:"relative",left:"-8px",children:[(0,e.jsx)(r.S6,{forcedInputWidth:"60px",size:1.25,color:!!b&&"yellow",value:d,unit:"kPa",minValue:C,maxValue:y,stepPixelSize:1,onDrag:function(I,_){return u("pressure",{pressure:_})}}),(0,e.jsx)(r.q,{fluid:!0,position:"absolute",top:"-2px",right:"-20px",color:"transparent",icon:"fast-forward",onClick:function(){return u("pressure",{pressure:y})}}),(0,e.jsx)(r.q,{fluid:!0,position:"absolute",top:"16px",right:"-20px",color:"transparent",icon:"undo",onClick:function(){return u("pressure",{pressure:p})}})]})}),(0,e.jsx)(r.Cw.Item,{label:"Valve",children:(0,e.jsx)(r.q,{my:.5,width:"50px",lineHeight:2,fontSize:"11px",color:b?O?"caution":"danger":null,content:b?"Open":"Closed",onClick:function(){return u("valve")}})}),(0,e.jsx)(r.Cw.Item,{mr:1,label:"Port",children:(0,e.jsxs)(r.kv,{position:"relative",children:[(0,e.jsx)(r.GW,{size:1.25,name:c?"plug":"times",color:c?"good":"bad"}),(0,e.jsx)(r.o5,{content:c?"Connected":"Disconnected",position:"top"})]})})]})}),(0,e.jsxs)(r.iG,{title:"Holding Tank",buttons:!!O&&(0,e.jsx)(r.q,{icon:"eject",color:b&&"danger",content:"Eject",onClick:function(){return u("eject")}}),children:[!!O&&(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Label",children:O.name}),(0,e.jsxs)(r.Ce.Item,{label:"Pressure",children:[(0,e.jsx)(r.Gg,{value:O.pressure})," kPa"]})]}),!O&&(0,e.jsx)(r.kv,{color:"average",children:"No Holding Tank"})]})]})})}},20688:function(M,j,t){"use strict";t.r(j),t.d(j,{Canvas:function(){return h}});var e=t(33496),s=t(69344),n=t(45280),r=t(68644),o=t(76512);function v(){return v=Object.assign||function(l){for(var d=1;d=0)&&(p[y]=l[y]);return p}function f(l,d){return f=Object.setPrototypeOf||function(C,y){return C.__proto__=y,C},f(l,d)}var u=24,m=function(l){"use strict";g(d,l);function d(C){var y;return y=l.call(this,C)||this,y.canvasRef=(0,s.createRef)(),y.onCVClick=C.onCanvasClick,y}var p=d.prototype;return p.componentDidMount=function(){this.drawCanvas(this.props)},p.componentDidUpdate=function(){this.drawCanvas(this.props)},p.drawCanvas=function(y){var b=this.canvasRef.current.getContext("2d"),O=y.value,I=O.length;if(I){var _=O[0].length,A=Math.round(this.canvasRef.current.width/I),P=Math.round(this.canvasRef.current.height/_);b.save(),b.scale(A,P);for(var T=0;T=0)&&(d[C]=h[C]);return d}var x={Alphabetical:function(h,l){return h-l},"By availability":function(h,l){return-(h.affordable-l.affordable)},"By price":function(h,l){return h.price-l.price}},f=function(){return(0,e.jsx)(o.qo,{width:400,height:450,children:(0,e.jsx)(o.qo.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(u,{}),(0,e.jsx)(m,{})]})})})},u=function(h){var l=(0,n.cv)("search",""),d=l[0],p=l[1],C=(0,n.cv)("sort",""),y=C[0],b=C[1],O=(0,n.cv)("descending",!1),I=O[0],_=O[1];return(0,e.jsx)(r.kv,{mb:"0.5rem",children:(0,e.jsxs)(r.Cu,{width:"100%",children:[(0,e.jsx)(r.Cu.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(r.EF,{placeholder:"Search by item name..",width:"100%",onInput:function(A,P){return p(P)}})}),(0,e.jsx)(r.Cu.Item,{basis:"30%",children:(0,e.jsx)(r.cS,{selected:"Alphabetical",options:Object.keys(x),width:"100%",lineHeight:"19px",onSelected:function(A){return b(A)}})}),(0,e.jsx)(r.Cu.Item,{children:(0,e.jsx)(r.q,{icon:I?"arrow-down":"arrow-up",height:"19px",tooltip:I?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return _(!I)}})})]})})},m=function(h){var l=(0,n.yy)(),d=l.act,p=l.data,C=p.points,y=p.items,b=(0,n.cv)("search",""),O=b[0],I=b[1],_=(0,n.cv)("sort","Alphabetical"),A=_[0],P=_[1],T=(0,n.cv)("descending",!1),R=T[0],L=T[1],N=(0,s.od)(O,function(z){return z[0]}),U=!1,V=Object.entries(y).map(function(z,Q){var H=Object.entries(z[1]).filter(N).map(function(q){return q[1].affordable=C>=q[1].price,q[1]}).sort(x[A]);if(H.length!==0)return R&&(H=H.reverse()),U=!0,(0,e.jsx)(c,{title:z[0],items:H},z[0])});return(0,e.jsx)(r.Cu.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(r.iG,{children:U?V:(0,e.jsx)(r.kv,{color:"label",children:"No items matching your criteria was found!"})})})},c=function(h){var l=(0,n.yy)(),d=l.act,p=l.data,C=h.title,y=h.items,b=g(h,["title","items"]);return(0,e.jsx)(r.Uv,v({open:!0,title:C},b,{children:y.map(function(O){return(0,e.jsxs)(r.kv,{children:[(0,e.jsx)(r.kv,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:O.name}),(0,e.jsx)(r.q,{content:O.price.toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return d("purchase",{cat:C,name:O.name,price:O.price,restriction:O.restriction})}}),(0,e.jsx)(r.kv,{style:{clear:"both"}})]},O.name)})}))}},8760:function(M,j,t){"use strict";t.r(j),t.d(j,{CharacterDirectory:function(){return g}});var e=t(33496),s=t(69344),n=t(45280),r=t(68644),o=t(76512),v=function(m){switch(m){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"}},g=function(m){var c=function(R){I(R)},h=(0,n.yy)(),l=h.act,d=h.data,p=d.personalVisibility,C=d.personalTag,y=d.personalErpTag,b=(0,s.useState)(null),O=b[0],I=b[1],_=(0,s.useState)(!1),A=_[0],P=_[1];return(0,e.jsx)(o.qo,{width:640,height:480,resizeable:!0,children:(0,e.jsx)(o.qo.Content,{scrollable:!0,children:O&&(0,e.jsx)(x,{overlay:O,onOverlay:c})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.iG,{title:"Controls",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.kv,{color:"label",inline:!0,children:"Save to current preferences slot:\xA0"}),(0,e.jsx)(r.q,{icon:A?"toggle-on":"toggle-off",selected:A,content:A?"On":"Off",onClick:function(){return P(!A)}})]}),children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Visibility",children:(0,e.jsx)(r.q,{fluid:!0,content:p?"Shown":"Not Shown",onClick:function(){return l("setVisible",{overwrite_prefs:A})}})}),(0,e.jsx)(r.Ce.Item,{label:"Vore Tag",children:(0,e.jsx)(r.q,{fluid:!0,content:C,onClick:function(){return l("setTag",{overwrite_prefs:A})}})}),(0,e.jsx)(r.Ce.Item,{label:"ERP Tag",children:(0,e.jsx)(r.q,{fluid:!0,content:y,onClick:function(){return l("setErpTag",{overwrite_prefs:A})}})}),(0,e.jsx)(r.Ce.Item,{label:"Advertisement",children:(0,e.jsx)(r.q,{fluid:!0,content:"Edit Ad",onClick:function(){return l("editAd",{overwrite_prefs:A})}})})]})}),(0,e.jsx)(f,{onOverlay:c})]})})})},x=function(m){return(0,e.jsxs)(r.iG,{title:m.overlay.name,buttons:(0,e.jsx)(r.q,{icon:"arrow-left",content:"Back",onClick:function(){return m.onOverlay(null)}}),children:[(0,e.jsx)(r.iG,{level:2,title:"Species",children:(0,e.jsx)(r.kv,{children:m.overlay.species})}),(0,e.jsx)(r.iG,{level:2,title:"Vore Tag",children:(0,e.jsx)(r.kv,{p:1,backgroundColor:v(m.overlay.tag),children:m.overlay.tag})}),(0,e.jsx)(r.iG,{level:2,title:"ERP Tag",children:(0,e.jsx)(r.kv,{children:m.overlay.erptag})}),(0,e.jsx)(r.iG,{level:2,title:"Character Ad",children:(0,e.jsx)(r.kv,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:m.overlay.character_ad||"Unset."})}),(0,e.jsx)(r.iG,{level:2,title:"OOC Notes",children:(0,e.jsx)(r.kv,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:m.overlay.ooc_notes||"Unset."})}),(0,e.jsx)(r.iG,{level:2,title:"Flavor Text",children:(0,e.jsx)(r.kv,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:m.overlay.flavor_text||"Unset."})})]})},f=function(m){var c=(0,n.yy)(),h=c.act,l=c.data,d=l.directory,p=(0,s.useState)("name"),C=p[0],y=p[1],b=(0,s.useState)("name"),O=b[0],I=b[1];return(0,e.jsx)(r.iG,{title:"Directory",buttons:(0,e.jsx)(r.q,{icon:"sync",content:"Refresh",onClick:function(){return h("refresh")}}),children:(0,e.jsxs)(r.oJ,{children:[(0,e.jsxs)(r.oJ.Row,{bold:!0,children:[(0,e.jsx)(u,{id:"name",children:"Name"}),(0,e.jsx)(u,{id:"species",children:"Species"}),(0,e.jsx)(u,{id:"tag",children:"Vore Tag"}),(0,e.jsx)(u,{id:"erptag",children:"ERP Tag"}),(0,e.jsx)(r.oJ.Cell,{collapsing:!0,textAlign:"right",children:"View"})]}),d.sort(function(_,A){var P=O?1:-1;return _[C].localeCompare(A[C])*P}).map(function(_,A){return(0,e.jsxs)(r.oJ.Row,{backgroundColor:v(_.tag),children:[(0,e.jsx)(r.oJ.Cell,{p:1,children:_.name}),(0,e.jsx)(r.oJ.Cell,{children:_.species}),(0,e.jsx)(r.oJ.Cell,{children:_.tag}),(0,e.jsx)(r.oJ.Cell,{children:_.erptag}),(0,e.jsx)(r.oJ.Cell,{collapsing:!0,textAlign:"right",children:(0,e.jsx)(r.q,{onClick:function(){return m.onOverlay(_)},color:"transparent",icon:"sticky-note",mr:1,content:"View"})})]},A)})]})})},u=function(m){var c=(0,n.yy)(),h=c.act,l=c.data,d=m.id,p=m.children,C=(0,s.useState)("name"),y=C[0],b=C[1],O=(0,s.useState)("name"),I=O[0],_=O[1];return(0,e.jsx)(r.oJ.Cell,{collapsing:!0,children:(0,e.jsxs)(r.q,{width:"100%",color:y!==d&&"transparent",onClick:function(){y===d?_(!I):(b(d),_(!0))},children:[p,y===d&&(0,e.jsx)(r.GW,{name:I?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},10520:function(M,j,t){"use strict";t.r(j),t.d(j,{CheckboxInput:function(){return u}});var e=t(33496),s=t(49900),n=t(69344),r=t(45280),o=t(68644),v=t(98836),g=t(76512),x=t(14820),f=t(26896),u=function(m){var c=(0,r.yy)().data,h=c.items,l=h===void 0?[]:h,d=c.min_checked,p=c.max_checked,C=c.message,y=c.timeout,b=c.title,O=(0,n.useState)([]),I=O[0],_=O[1],A=(0,n.useState)(""),P=A[0],T=A[1],R=(0,s.od)(P,function(U){return U}),L=l.filter(R),N=function(U){var V=I.includes(U)?I.filter(function(z){return z!==U}):[].concat(I,[U]);_(V)};return(0,e.jsxs)(g.qo,{title:b,width:425,height:300,children:[!!y&&(0,e.jsx)(f.Loader,{value:y}),(0,e.jsx)(g.qo.Content,{children:(0,e.jsxs)(o.fT,{fill:!0,vertical:!0,children:[(0,e.jsx)(o.fT.Item,{children:(0,e.jsxs)(o.yc,{info:!0,textAlign:"center",children:[(0,s.Af)(C)," ",d>0&&" (Min: "+d+")",p<50&&" (Max: "+p+")"]})}),(0,e.jsx)(o.fT.Item,{grow:!0,mt:0,children:(0,e.jsx)(o.iG,{fill:!0,scrollable:!0,children:(0,e.jsx)(o.oJ,{children:L.map(function(U,V){return(0,e.jsx)(v.CG,{className:"candystripe",children:(0,e.jsx)(v.y6,{children:(0,e.jsx)(o.q.Checkbox,{checked:I.includes(U),disabled:I.length>=p&&!I.includes(U),fluid:!0,onClick:function(){return N(U)},children:U})})},V)})})})}),(0,e.jsxs)(o.fT,{m:1,mb:0,children:[(0,e.jsx)(o.fT.Item,{children:(0,e.jsx)(o.o5,{content:"Search",position:"bottom",children:(0,e.jsx)(o.GW,{name:"search",mt:.5})})}),(0,e.jsx)(o.fT.Item,{grow:!0,children:(0,e.jsx)(o.EF,{fluid:!0,value:P,onInput:function(U,V){return T(V)}})})]}),(0,e.jsx)(o.fT.Item,{mt:.7,children:(0,e.jsx)(o.iG,{children:(0,e.jsx)(x.InputButtons,{input:I})})})]})})]})}},54196:function(M,j,t){"use strict";t.r(j),t.d(j,{ChemDispenser:function(){return x}});var e=t(33496),s=t(45280),n=t(68644),r=t(59888),o=t(76512),v=[5,10,20,30,40,60],g=[1,5,10],x=function(c){return(0,e.jsx)(o.qo,{width:390,height:655,children:(0,e.jsxs)(o.qo.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(f,{}),(0,e.jsx)(u,{}),(0,e.jsx)(m,{})]})})},f=function(c){var h=(0,s.yy)(),l=h.act,d=h.data,p=d.amount;return(0,e.jsx)(n.iG,{title:"Settings",flex:"content",children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Dispense",verticalAlign:"middle",children:v.map(function(C,y){return(0,e.jsx)(n.q,{textAlign:"center",selected:p===C,content:C+"u",m:"0",onClick:function(){return l("amount",{amount:C})}},y)})}),(0,e.jsx)(n.Ce.Item,{label:"Custom Amount",children:(0,e.jsx)(n.uQ,{step:1,stepPixelSize:5,value:p,minValue:1,maxValue:120,onDrag:function(C,y){return l("amount",{amount:y})}})})]})})},u=function(c){for(var h=(0,s.yy)(),l=h.act,d=h.data,p=d.chemicals,C=p===void 0?[]:p,y=[],b=0;b<(C.length+1)%3;b++)y.push(!0);return(0,e.jsx)(n.iG,{title:d.glass?"Drink Dispenser":"Chemical Dispenser",flexGrow:"1",children:(0,e.jsxs)(n.Cu,{direction:"row",wrap:"wrap",height:"100%",align:"flex-start",children:[C.map(function(O,I){return(0,e.jsx)(n.Cu.Item,{grow:"1",m:.2,basis:"40%",height:"20px",children:(0,e.jsx)(n.q,{icon:"arrow-circle-down",width:"100%",height:"100%",align:"flex-start",content:O.title+" ("+O.amount+")",onClick:function(){return l("dispense",{reagent:O.id})}})},I)}),y.map(function(O,I){return(0,e.jsx)(n.Cu.Item,{grow:"1",basis:"25%",height:"20px"},I)})]})})},m=function(c){var h=(0,s.yy)(),l=h.act,d=h.data,p=d.isBeakerLoaded,C=d.beakerCurrentVolume,y=d.beakerMaxVolume,b=d.beakerContents,O=b===void 0?[]:b;return(0,e.jsx)(n.iG,{title:"Beaker",flex:"content",minHeight:"25%",buttons:(0,e.jsxs)(n.kv,{children:[!!p&&(0,e.jsxs)(n.kv,{inline:!0,color:"label",mr:2,children:[C," / ",y," units"]}),(0,e.jsx)(n.q,{icon:"eject",content:"Eject",disabled:!p,onClick:function(){return l("ejectBeaker")}})]}),children:(0,e.jsx)(r.BeakerContents,{beakerLoaded:p,beakerContents:O,buttons:function(I){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.q,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){return l("remove",{reagent:I.id,amount:-1})}}),g.map(function(_,A){return(0,e.jsx)(n.q,{content:_,onClick:function(){return l("remove",{reagent:I.id,amount:_})}},A)}),(0,e.jsx)(n.q,{content:"ALL",onClick:function(){return l("remove",{reagent:I.id,amount:I.volume})}})]})}})})}},87104:function(M,j,t){"use strict";t.r(j),t.d(j,{ChemMaster:function(){return u}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=t(59888),v=t(8020),g=[1,5,10,30,60],x=null,f=function(p){var C=(0,s.yy)(),y=C.act,b=C.data,O=p.args.analysis;return(0,e.jsx)(n.iG,{level:2,m:"-1rem",pb:"1rem",title:b.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.jsx)(n.kv,{mx:"0.5rem",children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Name",children:O.name}),(0,e.jsx)(n.Ce.Item,{label:"Description",children:(O.desc||"").length>0?O.desc:"N/A"}),O.blood_type&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ce.Item,{label:"Blood type",children:O.blood_type}),(0,e.jsx)(n.Ce.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:O.blood_dna})]}),!b.condi&&(0,e.jsx)(n.q,{icon:b.printing?"spinner":"print",disabled:b.printing,iconSpin:!!b.printing,ml:"0.5rem",content:"Print",onClick:function(){return y("print",{idx:O.idx,beaker:p.args.beaker})}})]})})})},u=function(p){var C=(0,s.yy)().data,y=C.condi,b=C.beaker,O=C.beaker_reagents,I=O===void 0?[]:O,_=C.buffer_reagents,A=_===void 0?[]:_,P=C.mode;return(0,e.jsxs)(r.qo,{width:575,height:500,children:[(0,e.jsx)(v.ComplexModal,{}),(0,e.jsxs)(r.qo.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:[(0,e.jsx)(m,{beaker:b,beakerReagents:I,bufferNonEmpty:A.length>0}),(0,e.jsx)(c,{mode:P,bufferReagents:A}),(0,e.jsx)(h,{isCondiment:y,bufferNonEmpty:A.length>0})]})]})},m=function(p){var C=(0,s.yy)(),y=C.act,b=C.data,O=p.beaker,I=p.beakerReagents,_=p.bufferNonEmpty,A=_?(0,e.jsx)(n.q.Confirm,{icon:"eject",disabled:!O,content:"Eject and Clear Buffer",onClick:function(){return y("eject")}}):(0,e.jsx)(n.q,{icon:"eject",disabled:!O,content:"Eject and Clear Buffer",onClick:function(){return y("eject")}});return(0,e.jsx)(n.iG,{title:"Beaker",buttons:A,children:O?(0,e.jsx)(o.BeakerContents,{beakerLoaded:!0,beakerContents:I,buttons:function(P,T){return(0,e.jsxs)(n.kv,{mb:T0?(0,e.jsx)(o.BeakerContents,{beakerLoaded:!0,beakerContents:O,buttons:function(I,_){return(0,e.jsxs)(n.kv,{mb:_1?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.kv,{color:o.yY.damageType.oxy,inline:!0,children:L[0]}),"\xA0|\xA0",(0,e.jsx)(r.kv,{color:o.yY.damageType.toxin,inline:!0,children:L[2]}),"\xA0|\xA0",(0,e.jsx)(r.kv,{color:o.yY.damageType.brute,inline:!0,children:L[3]}),"\xA0|\xA0",(0,e.jsx)(r.kv,{color:o.yY.damageType.burn,inline:!0,children:L[1]})]}):(0,e.jsx)(r.kv,{color:"bad",children:"Unknown"})}),(0,e.jsx)(r.Ce.Item,{label:"UI",className:"LabeledList__breakContents",children:T}),(0,e.jsx)(r.Ce.Item,{label:"SE",className:"LabeledList__breakContents",children:R}),(0,e.jsxs)(r.Ce.Item,{label:"Disk",children:[(0,e.jsx)(r.q.Confirm,{disabled:!O.disk,icon:"arrow-circle-down",content:"Import",onClick:function(){return b("disk",{option:"load"})}}),(0,e.jsx)(r.q,{disabled:!O.disk,icon:"arrow-circle-up",content:"Export UI",onClick:function(){return b("disk",{option:"save",savetype:"ui"})}}),(0,e.jsx)(r.q,{disabled:!O.disk,icon:"arrow-circle-up",content:"Export UI and UE",onClick:function(){return b("disk",{option:"save",savetype:"ue"})}}),(0,e.jsx)(r.q,{disabled:!O.disk,icon:"arrow-circle-up",content:"Export SE",onClick:function(){return b("disk",{option:"save",savetype:"se"})}})]}),(0,e.jsxs)(r.Ce.Item,{label:"Actions",children:[(0,e.jsx)(r.q,{disabled:!O.podready,icon:"user-plus",content:"Clone",onClick:function(){return b("clone",{ref:_})}}),(0,e.jsx)(r.q,{icon:"trash",content:"Delete",onClick:function(){return b("del_rec")}})]})]})})},u=function(C){var y=(0,n.yy)(),b=y.act,O=y.data,I=O.menu;return(0,v.modalRegisterBodyOverride)("view_rec",f),(0,e.jsxs)(g.qo,{children:[(0,e.jsx)(v.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.jsxs)(g.qo.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(d,{}),(0,e.jsx)(p,{}),(0,e.jsx)(m,{}),(0,e.jsx)(r.iG,{noTopPadding:!0,flexGrow:"1",children:(0,e.jsx)(c,{})})]})]})},m=function(C){var y=(0,n.yy)(),b=y.act,O=y.data,I=O.menu;return(0,e.jsxs)(r.kZ,{children:[(0,e.jsx)(r.kZ.Tab,{selected:I===1,icon:"home",onClick:function(){return b("menu",{num:1})},children:"Main"}),(0,e.jsx)(r.kZ.Tab,{selected:I===2,icon:"folder",onClick:function(){return b("menu",{num:2})},children:"Records"})]})},c=function(C){var y=(0,n.yy)().data,b=y.menu,O;return b===1?O=(0,e.jsx)(h,{}):b===2&&(O=(0,e.jsx)(l,{})),O},h=function(C){var y=(0,n.yy)(),b=y.act,O=y.data,I=O.loading,_=O.scantemp,A=O.occupant,P=O.locked,T=O.can_brainscan,R=O.scan_mode,L=O.numberofpods,N=O.pods,U=O.selected_pod,V=P&&!!A;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.iG,{title:"Scanner",level:"2",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.kv,{inline:!0,color:"label",children:"Scanner Lock:\xA0"}),(0,e.jsx)(r.q,{disabled:!A,selected:V,icon:V?"toggle-on":"toggle-off",content:V?"Engaged":"Disengaged",onClick:function(){return b("lock")}}),(0,e.jsx)(r.q,{disabled:V||!A,icon:"user-slash",content:"Eject Occupant",onClick:function(){return b("eject")}})]}),children:[(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Status",children:I?(0,e.jsxs)(r.kv,{color:"average",children:[(0,e.jsx)(r.GW,{name:"spinner",spin:!0}),"\xA0 Scanning..."]}):(0,e.jsx)(r.kv,{color:_.color,children:_.text})}),!!T&&(0,e.jsx)(r.Ce.Item,{label:"Scan Mode",children:(0,e.jsx)(r.q,{icon:R?"brain":"male",content:R?"Brain":"Body",onClick:function(){return b("toggle_mode")}})})]}),(0,e.jsx)(r.q,{disabled:!A||I,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){return b("scan")}})]}),(0,e.jsx)(r.iG,{title:"Pods",level:"2",children:L?N.map(function(z,Q){var H;return z.status==="cloning"?H=(0,e.jsx)(r.cH,{min:"0",max:"100",value:z.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.jsx)(r.kv,{textAlign:"center",children:(0,s.kL)(z.progress,0)+"%"})}):z.status==="mess"?H=(0,e.jsx)(r.kv,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):H=(0,e.jsx)(r.q,{selected:U===z.pod,icon:U===z.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return b("selectpod",{ref:z.pod})}}),(0,e.jsxs)(r.kv,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.jsx)("img",{src:"pod_"+z.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsxs)(r.kv,{color:"label",children:["Pod #",Q+1]}),(0,e.jsxs)(r.kv,{bold:!0,color:z.biomass>=150?"good":"bad",inline:!0,children:[(0,e.jsx)(r.GW,{name:z.biomass>=150?"circle":"circle-o"}),"\xA0",z.biomass]}),H]},Q)}):(0,e.jsx)(r.kv,{color:"bad",children:"No pods detected. Unable to clone."})})]})},l=function(C){var y=(0,n.yy)(),b=y.act,O=y.data,I=O.records;return I.length?(0,e.jsx)(r.kv,{mt:"0.5rem",children:I.map(function(_,A){return(0,e.jsx)(r.q,{icon:"user",mb:"0.5rem",content:_.realname,onClick:function(){return b("view_rec",{ref:_.record})}},A)})}):(0,e.jsx)(r.Cu,{height:"100%",children:(0,e.jsxs)(r.Cu.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(r.GW,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No records found."]})})},d=function(C){var y=(0,n.yy)(),b=y.act,O=y.data,I=O.temp;if(!(!I||!I.text||I.text.length<=0)){var _,A=(_={},_[I.style]=!0,_);return(0,e.jsxs)(r.yc,x({},A,{children:[(0,e.jsx)(r.kv,{display:"inline-block",verticalAlign:"middle",children:I.text}),(0,e.jsx)(r.q,{icon:"times-circle",float:"right",onClick:function(){return b("cleartemp")}}),(0,e.jsx)(r.kv,{clear:"both"})]}))}},p=function(C){var y=(0,n.yy)(),b=y.act,O=y.data,I=O.scanner,_=O.numberofpods,A=O.autoallowed,P=O.autoprocess,T=O.disk;return(0,e.jsx)(r.iG,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[!!A&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.kv,{inline:!0,color:"label",children:"Auto-processing:\xA0"}),(0,e.jsx)(r.q,{selected:P,icon:P?"toggle-on":"toggle-off",content:P?"Enabled":"Disabled",onClick:function(){return b("autoprocess",{on:P?0:1})}})]}),(0,e.jsx)(r.q,{disabled:!T,icon:"eject",content:"Eject Disk",onClick:function(){return b("disk",{option:"eject"})}})]}),children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Scanner",children:I?(0,e.jsx)(r.kv,{color:"good",children:"Connected"}):(0,e.jsx)(r.kv,{color:"bad",children:"Not connected!"})}),(0,e.jsx)(r.Ce.Item,{label:"Pods",children:_?(0,e.jsxs)(r.kv,{color:"good",children:[_," connected"]}):(0,e.jsx)(r.kv,{color:"bad",children:"None connected!"})})]})})}},56596:function(M,j,t){"use strict";t.r(j),t.d(j,{ColorMate:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.items,m=f.activecolor,c=Math.min(270+u.length*15,600);return(0,e.jsx)(r.qo,{width:300,height:c,children:(0,e.jsx)(r.qo.Content,{children:u.length&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.iG,{title:"Paint",children:(0,e.jsxs)(n.Cu,{justify:"center",align:"center",children:[(0,e.jsx)(n.Cu.Item,{basis:"50%",children:(0,e.jsx)(n.kv,{backgroundColor:m,width:"120px",height:"120px"})}),(0,e.jsxs)(n.Cu.Item,{basis:"50% ",children:[(0,e.jsx)(n.q,{fluid:!0,icon:"eye-dropper",onClick:function(){return x("select")},children:"Select Color"}),(0,e.jsx)(n.q,{fluid:!0,icon:"fill-drip",onClick:function(){return x("paint")},children:"Paint Items"}),(0,e.jsx)(n.q,{fluid:!0,icon:"tint-slash",onClick:function(){return x("clear")},children:"Remove Paintjob"}),(0,e.jsx)(n.q,{fluid:!0,icon:"eject",onClick:function(){return x("eject")},children:"Eject Items"})]})]})}),(0,e.jsx)(n.iG,{title:"Items",children:u.map(function(h,l){return(0,e.jsxs)(n.kv,{children:["#",l+1,": ",h]},l)})})]})||(0,e.jsx)(n.iG,{children:(0,e.jsx)(n.kv,{color:"bad",children:"No items inserted."})})})})}},55656:function(M,j,t){"use strict";t.r(j),t.d(j,{CommunicationsConsole:function(){return o},CommunicationsConsoleContent:function(){return v}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(m){return(0,e.jsx)(r.qo,{width:400,height:600,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:(0,e.jsx)(v,{})})})},v=function(m){var c=(0,s.yy)(),h=c.act,l=c.data,d=l.menu_state,p=(0,e.jsxs)(n.kv,{color:"bad",children:["ERRROR. Unknown menu_state: ",d,"Please report this to NT Technical Support."]});return d===1?p=(0,e.jsx)(g,{}):d===2?p=(0,e.jsx)(u,{}):d===3&&(p=(0,e.jsx)(f,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x,{}),p]})},g=function(m){var c=(0,s.yy)(),h=c.act,l=c.data,d=l.messages,p=l.msg_cooldown,C=l.emagged,y=l.cc_cooldown,b=l.str_security_level,O=l.levels,I=l.authmax,_=l.security_level,A=l.security_level_color,P=l.authenticated,T=l.atcsquelch,R=l.boss_short,L="View ("+d.length+")",N="Make Priority Announcement";p>0&&(N+=" ("+p+"s)");var U=C?"Message [UNKNOWN]":"Message "+R;y>0&&(U+=" ("+y+"s)");var V=b,z=O.map(function(Q){return(0,e.jsx)(n.q,{icon:Q.icon,content:Q.name,disabled:!P,selected:Q.id===_,onClick:function(){return h("newalertlevel",{level:Q.id})}},Q.name)});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.iG,{title:"Site Manager-Only Actions",children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Announcement",children:(0,e.jsx)(n.q,{icon:"bullhorn",content:N,disabled:!I||p>0,onClick:function(){return h("announce")}})}),!!C&&(0,e.jsxs)(n.Ce.Item,{label:"Transmit",children:[(0,e.jsx)(n.q,{icon:"broadcast-tower",color:"red",content:U,disabled:!I||y>0,onClick:function(){return h("MessageSyndicate")}}),(0,e.jsx)(n.q,{icon:"sync-alt",content:"Reset Relays",disabled:!I,onClick:function(){return h("RestoreBackup")}})]})||(0,e.jsx)(n.Ce.Item,{label:"Transmit",children:(0,e.jsx)(n.q,{icon:"broadcast-tower",content:U,disabled:!I||y>0,onClick:function(){return h("MessageCentCom")}})})]})}),(0,e.jsx)(n.iG,{title:"Command Staff Actions",children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Current Alert",color:A,children:V}),(0,e.jsx)(n.Ce.Item,{label:"Change Alert",children:z}),(0,e.jsx)(n.Ce.Item,{label:"Displays",children:(0,e.jsx)(n.q,{icon:"tv",content:"Change Status Displays",disabled:!P,onClick:function(){return h("status")}})}),(0,e.jsx)(n.Ce.Item,{label:"Incoming Messages",children:(0,e.jsx)(n.q,{icon:"folder-open",content:L,disabled:!P,onClick:function(){return h("messagelist")}})}),(0,e.jsx)(n.Ce.Item,{label:"Misc",children:(0,e.jsx)(n.q,{icon:"microphone",content:T?"ATC Relay Disabled":"ATC Relay Enabled",disabled:!P,selected:T,onClick:function(){return h("toggleatc")}})})]})})]})},x=function(m){var c=(0,s.yy)(),h=c.act,l=c.data,d=l.authenticated,p=l.is_ai,C=l.esc_status,y=l.esc_callable,b=l.esc_recallable,O;return d?p?O="AI":d===1?O="Command":d===2?O="Site Director":O="ERROR: Report This Bug!":O="Not Logged In",(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.iG,{title:"Authentication",children:(0,e.jsx)(n.Ce,{children:p&&(0,e.jsx)(n.Ce.Item,{label:"Access Level",children:"AI"})||(0,e.jsx)(n.Ce.Item,{label:"Actions",children:(0,e.jsx)(n.q,{icon:d?"sign-out-alt":"id-card",selected:d,content:d?"Log Out ("+O+")":"Log In",onClick:function(){return h("auth")}})})})}),(0,e.jsx)(n.iG,{title:"Escape Shuttle",children:(0,e.jsxs)(n.Ce,{children:[!!C&&(0,e.jsx)(n.Ce.Item,{label:"Status",children:C}),!!y&&(0,e.jsx)(n.Ce.Item,{label:"Options",children:(0,e.jsx)(n.q,{icon:"rocket",content:"Call Shuttle",disabled:!d,onClick:function(){return h("callshuttle")}})}),!!b&&(0,e.jsx)(n.Ce.Item,{label:"Options",children:(0,e.jsx)(n.q,{icon:"times",content:"Recall Shuttle",disabled:!d||p,onClick:function(){return h("cancelshuttle")}})})]})})]})},f=function(m){var c=(0,s.yy)(),h=c.act,l=c.data,d=l.message_current,p=l.message_deletion_allowed,C=l.authenticated,y=l.messages;if(d)return(0,e.jsx)(n.iG,{title:d.title,buttons:(0,e.jsx)(n.q,{icon:"times",content:"Return To Message List",disabled:!C,onClick:function(){return h("messagelist")}}),children:(0,e.jsx)(n.kv,{children:d.contents})});var b=y.map(function(O){return(0,e.jsxs)(n.Ce.Item,{label:O.title,children:[(0,e.jsx)(n.q,{icon:"eye",content:"View",disabled:!C||d&&d.title===O.title,onClick:function(){return h("messagelist",{msgid:O.id})}}),(0,e.jsx)(n.q,{icon:"times",content:"Delete",disabled:!C||!p,onClick:function(){return h("delmessage",{msgid:O.id})}})]},O.id)});return(0,e.jsx)(n.iG,{title:"Messages Received",buttons:(0,e.jsx)(n.q,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return h("main")}}),children:(0,e.jsx)(n.Ce,{children:y.length&&b||(0,e.jsx)(n.Ce.Item,{label:"404",color:"bad",children:"No messages."})})})},u=function(m){var c=(0,s.yy)(),h=c.act,l=c.data,d=l.stat_display,p=l.authenticated,C=d.presets.map(function(y){return(0,e.jsx)(n.q,{content:y.label,selected:y.name===d.type,disabled:!p,onClick:function(){return h("setstat",{statdisp:y.name})}},y.name)});return(0,e.jsx)(n.iG,{title:"Modify Status Screens",buttons:(0,e.jsx)(n.q,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return h("main")}}),children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Presets",children:C}),(0,e.jsx)(n.Ce.Item,{label:"Message Line 1",children:(0,e.jsx)(n.q,{icon:"pencil-alt",content:d.line_1,disabled:!p,onClick:function(){return h("setmsg1")}})}),(0,e.jsx)(n.Ce.Item,{label:"Message Line 2",children:(0,e.jsx)(n.q,{icon:"pencil-alt",content:d.line_2,disabled:!p,onClick:function(){return h("setmsg2")}})})]})})}},30492:function(M,j,t){"use strict";t.r(j),t.d(j,{Communicator:function(){return O}});var e=t(33496),s=t(47392),n=t(49900),r=t(69344),o=t(45280),v=t(68644),g=t(76512),x=t(94384),f=1,u=2,m=3,c=4,h=40,l=5,d=6,p=7,C=8,y=9,b={},O=function(le){var se=(0,o.yy)(),fe=se.act,de=se.data,he=de.currentTab,me=de.video_comm,Ie=de.mapRef,Pe=(0,r.useState)(0),Me=Pe[0],Be=Pe[1];return(0,e.jsx)(g.qo,{width:475,height:700,children:(0,e.jsxs)(g.qo.Content,{children:[me&&(0,e.jsx)(I,{videoSetting:Me,setVideoSetting:Be}),(!me||Me!==0)&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(A,{}),(0,e.jsx)(v.kv,{height:"88%",mb:1,style:{overflowY:"auto"},children:b[he]||(0,e.jsx)(_,{})}),(0,e.jsx)(P,{videoSetting:Me,setVideoSetting:Be})]})]})})},I=function(le){var se=(0,o.yy)(),fe=se.act,de=se.data,he=de.video_comm,me=de.mapRef,Ie=le.videoSetting,Pe=le.setVideoSetting;return Ie===0?(0,e.jsxs)(v.kv,{width:"100%",height:"100%",children:[(0,e.jsx)(v.cb,{width:"100%",height:"95%",params:{id:me,type:"map"}}),(0,e.jsxs)(v.Cu,{justify:"space-between",spacing:1,mt:.5,children:[(0,e.jsx)(v.Cu.Item,{grow:1,children:(0,e.jsx)(v.q,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){return Pe(1)}})}),(0,e.jsx)(v.Cu.Item,{grow:1,children:(0,e.jsx)(v.q,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){return fe("endvideo")}})}),(0,e.jsx)(v.Cu.Item,{grow:1,children:(0,e.jsx)(v.q,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){return fe("hang_up")}})})]})]}):Ie===1?(0,e.jsxs)(v.kv,{style:{position:"absolute",right:"5px",bottom:"50px",zIndex:"1"},children:[(0,e.jsx)(v.iG,{p:0,m:0,children:(0,e.jsxs)(v.Cu,{justify:"space-between",spacing:1,children:[(0,e.jsx)(v.Cu.Item,{grow:1,children:(0,e.jsx)(v.q,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){return Pe(2)}})}),(0,e.jsx)(v.Cu.Item,{grow:1,children:(0,e.jsx)(v.q,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-maximize",onClick:function(){return Pe(0)}})}),(0,e.jsx)(v.Cu.Item,{grow:1,children:(0,e.jsx)(v.q,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){return fe("endvideo")}})}),(0,e.jsx)(v.Cu.Item,{grow:1,children:(0,e.jsx)(v.q,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){return fe("hang_up")}})})]})}),(0,e.jsx)(v.cb,{width:"200px",height:"200px",params:{id:me,type:"map"}})]}):null},_=function(le){var se=(0,o.yy)(),fe=se.act,de=se.data,he=de.currentTab;return(0,e.jsxs)(v.iG,{title:"Error!",children:["You tried to access tab #",he,", but there was no template defined!"]})},A=function(le){var se=(0,o.yy)(),fe=se.act,de=se.data,he=de.time,me=de.connectionStatus,Ie=de.owner,Pe=de.occupation;return(0,e.jsx)(v.iG,{children:(0,e.jsxs)(v.Cu,{align:"center",justify:"space-between",children:[(0,e.jsx)(v.Cu.Item,{color:"average",children:he}),(0,e.jsx)(v.Cu.Item,{children:(0,e.jsx)(v.GW,{color:me===1?"good":"bad",name:me===1?"signal":"exclamation-triangle"})}),(0,e.jsx)(v.Cu.Item,{color:"average",children:(0,n.Af)(Ie)}),(0,e.jsx)(v.Cu.Item,{color:"average",children:(0,n.Af)(Pe)})]})})},P=function(le){var se=(0,o.yy)(),fe=se.act,de=se.data,he=de.flashlight,me=le.videoSetting,Ie=le.setVideoSetting;return(0,e.jsxs)(v.Cu,{children:[(0,e.jsx)(v.Cu.Item,{basis:me===2?"60%":"80%",children:(0,e.jsx)(v.q,{p:1,fluid:!0,icon:"home",iconSize:2,textAlign:"center",onClick:function(){return fe("switch_tab",{switch_tab:f})}})}),(0,e.jsx)(v.Cu.Item,{basis:"20%",children:(0,e.jsx)(v.q,{icon:"lightbulb",iconSize:2,p:1,fluid:!0,textAlign:"center",selected:he,tooltip:"Flashlight",tooltipPosition:"top",onClick:function(){return fe("Light")}})}),me===2&&(0,e.jsx)(v.Cu.Item,{basis:"20%",children:(0,e.jsx)(v.q,{icon:"video",iconSize:2,p:1,fluid:!0,textAlign:"center",tooltip:"Open Video",tooltipPosition:"top",onClick:function(){return Ie(1)}})})]})},T=function(le){var se=(0,o.yy)().data,fe=se.voice_mobs,de=se.communicating,he=se.requestsReceived,me=se.invitesSent,Ie=se.video_comm;return!!(le==="Phone"&&(fe.length||de.length||he.length||me.length||Ie))},R=function(le){var se=(0,o.yy)(),fe=se.act,de=se.data,he=de.homeScreen;return(0,e.jsx)(v.Cu,{mt:2,wrap:"wrap",align:"center",justify:"center",children:he.map(function(me){return(0,e.jsxs)(v.Cu.Item,{basis:"25%",textAlign:"center",mb:2,children:[(0,e.jsx)(v.q,{style:{"border-radius":"10%",border:"1px solid #000"},width:"64px",height:"64px",position:"relative",onClick:function(){return fe("switch_tab",{switch_tab:me.number})},children:(0,e.jsx)(v.GW,{spin:T(me.module),color:T(me.module)?"bad":null,name:me.icon,position:"absolute",size:3,top:"25%",left:"25%"})}),(0,e.jsx)(v.kv,{children:me.module})]},me.number)})})};b[f]=(0,e.jsx)(R,{});var L=function(le){var se=(0,o.yy)(),fe=se.act,de=se.data,he=de.targetAddress,me=de.voice_mobs,Ie=de.communicating,Pe=de.requestsReceived,Me=de.invitesSent,Be=de.video_comm,He=de.selfie_mode;return(0,e.jsxs)(v.iG,{title:"Phone",children:[(0,e.jsx)(v.Ce,{children:(0,e.jsx)(v.Ce.Item,{label:"Target EPv2 Address",verticalAlign:"middle",children:(0,e.jsxs)(v.Cu,{align:"center",children:[(0,e.jsx)(v.Cu.Item,{grow:1,children:(0,e.jsx)(v.EF,{fluid:!0,value:he,onInput:function(Ke,vt){return fe("write_target_address",{val:vt})}})}),(0,e.jsx)(v.Cu.Item,{children:(0,e.jsx)(v.q,{icon:"times",onClick:function(){return fe("clear_target_address")}})})]})})}),(0,e.jsx)(N,{}),(0,e.jsxs)(v.iG,{title:"Connection Management",mt:2,children:[(0,e.jsx)(v.Ce,{children:(0,e.jsx)(v.Ce.Item,{label:"Camera Mode",children:(0,e.jsx)(v.q,{fluid:!0,content:He?"Front-facing Camera":"Rear-facing Camera",onClick:function(){return fe("selfie_mode")}})})}),(0,e.jsx)(v.iG,{title:"External Connections",children:!!me.length&&(0,e.jsx)(v.Ce,{children:me.map(function(Ke){return(0,e.jsx)(v.Ce.Item,{label:(0,n.Af)(Ke.name),children:(0,e.jsx)(v.q,{icon:"times",color:"bad",content:"Disconnect",onClick:function(){return fe("disconnect",{disconnect:Ke.true_name})}})},Ke.ref)})})||(0,e.jsx)(v.kv,{children:"No connections"})}),(0,e.jsx)(v.iG,{title:"Internal Connections",children:!!Ie.length&&(0,e.jsx)(v.oJ,{children:Ie.map(function(Ke){return(0,e.jsxs)(v.oJ.Row,{children:[(0,e.jsx)(v.oJ.Cell,{color:"label",children:(0,n.Af)(Ke.name)}),(0,e.jsxs)(v.oJ.Cell,{children:[(0,e.jsx)(v.q,{icon:"times",color:"bad",content:"Disconnect",onClick:function(){return fe("disconnect",{disconnect:Ke.true_name})}}),Be===null&&(0,e.jsx)(v.q,{icon:"camera",content:"Start Video",onClick:function(){return fe("startvideo",{startvideo:Ke.ref})}})||Be===Ke.ref&&(0,e.jsx)(v.q,{icon:"times",color:"bad",content:"Stop Video",onClick:function(){return fe("endvideo",{endvideo:Ke.true_name})}})]})]},Ke.address)})})||(0,e.jsx)(v.kv,{children:"No connections"})}),(0,e.jsx)(v.iG,{title:"Requests Received",children:!!Pe.length&&(0,e.jsx)(v.Ce,{children:Pe.map(function(Ke){return(0,e.jsxs)(v.Ce.Item,{label:(0,n.Af)(Ke.name),children:[(0,e.jsx)(v.kv,{children:(0,n.Af)(Ke.address)}),(0,e.jsxs)(v.kv,{children:[(0,e.jsx)(v.q,{icon:"signal",content:"Accept",onClick:function(){return fe("dial",{dial:Ke.address})}}),(0,e.jsx)(v.q,{icon:"times",content:"Decline",onClick:function(){return fe("decline",{decline:Ke.ref})}})]})]},Ke.address)})})||(0,e.jsx)(v.kv,{children:"No requests received."})}),(0,e.jsx)(v.iG,{title:"Invites Sent",children:!!Me.length&&(0,e.jsx)(v.Ce,{children:Me.map(function(Ke){return(0,e.jsxs)(v.Ce.Item,{label:(0,n.Af)(Ke.name),children:[(0,e.jsx)(v.kv,{children:(0,n.Af)(Ke.address)}),(0,e.jsx)(v.kv,{children:(0,e.jsx)(v.q,{icon:"pen",onClick:function(){fe("copy",{copy:Ke.address})},content:"Copy"})})]},Ke.address)})})||(0,e.jsx)(v.kv,{children:"No invites sent."})})]})]})},N=function(le){for(var se=(0,o.yy)(),fe=se.act,de=se.data,he=de.targetAddress,me=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"],Ie=me.map(function(Be){return(0,e.jsx)(v.q,{content:Be,fontSize:2,fluid:!0,onClick:function(){return fe("add_hex",{add_hex:Be})}},Be)}),Pe=[],Me=0;Mefe?se.length>fe?se.slice(0,fe)+"...":se:le+se},H=function(le,se,fe,de){if(fe<0||fe>de.length)return z(le,se)?"TinderMessage_First_Sent":"TinderMessage_First_Received";var he=z(le,se),me=z(de[fe],se);return he&&me?"TinderMessage_Subsequent_Sent":!he&&!me?"TinderMessage_Subsequent_Received":he?"TinderMessage_First_Sent":"TinderMessage_First_Received"},q=function(le){var se=(0,o.yy)(),fe=se.act,de=se.data,he=de.targetAddressName,me=de.targetAddress,Ie=de.imList,Pe=(0,r.useState)(!1),Me=Pe[0],Be=Pe[1];return Me?(0,e.jsxs)(v.iG,{title:(0,e.jsx)(v.kv,{inline:!0,style:{whiteSpace:"nowrap",overflowX:"hidden"},width:"90%",children:Q("Conversation with ",(0,n.Af)(he),30)}),buttons:(0,e.jsx)(v.q,{icon:"eye",selected:Me,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return Be(!Me)}}),height:"100%",stretchContents:!0,children:[(0,e.jsx)(v.iG,{style:{height:"95%",overflowY:"auto"},children:Ie.map(function(He,Ke){return(He.to_address===me||He.address===me)&&(0,e.jsxs)(v.kv,{className:z(He,me)?"ClassicMessage_Sent":"ClassicMessage_Received",children:[z(He,me)?"You":"Them",": ",He.im]},Ke)})}),(0,e.jsx)(v.q,{icon:"comment",onClick:function(){return fe("message",{message:me})},content:"Message"})]}):(0,e.jsxs)(v.iG,{title:(0,e.jsx)(v.kv,{inline:!0,style:{whiteSpace:"nowrap",overflowX:"hidden"},width:"100%",children:Q("Conversation with ",(0,n.Af)(he),30)}),buttons:(0,e.jsx)(v.q,{icon:"eye",selected:Me,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return Be(!Me)}}),height:"100%",stretchContents:!0,children:[(0,e.jsx)(v.iG,{style:{height:"95%",overflowY:"auto"},children:Ie.map(function(He,Ke,vt){return(He.to_address===me||He.address===me)&&(0,e.jsx)(v.kv,{textAlign:z(He,me)?"right":"left",mb:1,children:(0,e.jsx)(v.kv,{maxWidth:"75%",className:H(He,me,Ke-1,vt),inline:!0,children:(0,n.Af)(He.im)})},Ke)})}),(0,e.jsx)(v.q,{icon:"comment",onClick:function(){return fe("message",{message:me})},content:"Message"})]})};b[h]=(0,e.jsx)(q,{});var Z=function(le){var se=(0,o.yy)(),fe=se.act,de=se.data,he=de.feeds,me=de.target_feed;return(0,e.jsx)(v.iG,{title:"News",stretchContents:!0,height:"100%",children:!he.length&&(0,e.jsx)(v.kv,{color:"bad",children:"Error: No newsfeeds available. Please try again later."})||me&&(0,e.jsx)($,{})||(0,e.jsx)(G,{})})},$=function(le){var se=(0,o.yy)(),fe=se.act,de=se.data,he=de.target_feed;return(0,e.jsx)(v.iG,{title:(0,n.Af)(he.name)+" by "+(0,n.Af)(he.author),buttons:(0,e.jsx)(v.q,{content:"Back",icon:"chevron-up",onClick:function(){return fe("newsfeed",{newsfeed:null})}}),children:he.messages.map(function(me){return(0,e.jsxs)(v.iG,{children:["- ",(0,n.Af)(me.body),!!me.img&&(0,e.jsxs)(v.kv,{children:[(0,e.jsx)("img",{src:"data:image/png;base64,"+me.img}),(0,n.Af)(me.caption)||null]}),(0,e.jsxs)(v.kv,{color:"grey",children:["[",me.message_type," by ",(0,n.Af)(me.author)," -"," ",me.time_stamp,"]"]})]},me.ref)})})},G=function(le){var se=(0,o.yy)(),fe=se.act,de=se.data,he=de.feeds,me=de.latest_news;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(v.iG,{title:"Recent News",children:(0,e.jsx)(v.iG,{children:me.map(function(Ie){return(0,e.jsxs)(v.kv,{mb:2,children:[(0,e.jsxs)("h5",{children:[(0,n.Af)(Ie.channel),(0,e.jsx)(v.q,{ml:1,icon:"chevron-up",onClick:function(){return fe("newsfeed",{newsfeed:Ie.index})},content:"Go to"})]}),"- ",(0,n.Af)(Ie.body),!!Ie.img&&(0,e.jsxs)(v.kv,{children:["[image omitted, view story for more details]",Ie.caption||null]}),(0,e.jsxs)(v.kv,{fontSize:.9,children:["[",Ie.message_type," by"," ",(0,e.jsx)(v.kv,{inline:!0,color:"average",children:Ie.author})," ","- ",Ie.time_stamp,"]"]})]},Ie.index)})})}),(0,e.jsx)(v.iG,{title:"News Feeds",children:he.map(function(Ie){return(0,e.jsx)(v.q,{fluid:!0,icon:"chevron-up",onClick:function(){return fe("newsfeed",{newsfeed:Ie.index})},content:Ie.name},Ie.index)})})]})};b[l]=(0,e.jsx)(Z,{});var Y=function(le){var se=(0,o.yy)(),fe=se.act,de=se.data,he=de.note;return(0,e.jsx)(v.iG,{title:"Note Keeper",height:"100%",stretchContents:!0,buttons:(0,e.jsx)(v.q,{icon:"pen",onClick:function(){return fe("edit")},content:"Edit Notes"}),children:(0,e.jsx)(v.iG,{color:"average",width:"100%",height:"100%",style:{wordBreak:"break-all",overflowY:"auto"},children:he})})};b[d]=(0,e.jsx)(Y,{});var ee=function(le,se,fe,de,he){return lede?"average":le>he?"bad":"good"},ae=function(le){var se=(0,o.yy)(),fe=se.act,de=se.data,he=de.aircontents,me=de.weather,Ie="\xB0";return(0,e.jsxs)(v.iG,{title:"Weather",children:[(0,e.jsx)(v.iG,{title:"Current Conditions",children:(0,e.jsx)(v.Ce,{children:(0,s.IF)(function(Pe){return Pe.val!=="0"||Pe.entry==="Pressure"||Pe.entry==="Temperature"})(he).map(function(Pe){return(0,e.jsxs)(v.Ce.Item,{label:Pe.entry,color:ee(Pe.val,Pe.bad_low,Pe.poor_low,Pe.poor_high,Pe.bad_high),children:[Pe.val,(0,n.Af)(Pe.units)]},Pe.entry)})})}),(0,e.jsx)(v.iG,{title:"Weather Reports",children:!!me.length&&(0,e.jsx)(v.Ce,{children:me.map(function(Pe){return(0,e.jsx)(v.Ce.Item,{label:Pe.Planet,children:(0,e.jsxs)(v.Ce,{children:[(0,e.jsx)(v.Ce.Item,{label:"Time",children:Pe.Time}),(0,e.jsx)(v.Ce.Item,{label:"Weather",children:(0,n.Yl)(Pe.Weather)}),(0,e.jsxs)(v.Ce.Item,{label:"Temperature",children:["Current: ",Pe.Temperature.toFixed()," ",Ie,"C | High:"," ",Pe.High.toFixed()," ",Ie,"C | Low: ",Pe.Low.toFixed()," ",Ie,"C"]}),(0,e.jsx)(v.Ce.Item,{label:"Wind Direction",children:Pe.WindDir}),(0,e.jsx)(v.Ce.Item,{label:"Wind Speed",children:Pe.WindSpeed}),(0,e.jsx)(v.Ce.Item,{label:"Forecast",children:(0,n.Af)(Pe.Forecast)})]})},Pe.Planet)})})||(0,e.jsx)(v.kv,{color:"bad",children:"No weather reports available. Please check back later."})})]})};b[p]=(0,e.jsx)(ae,{}),b[C]=(0,e.jsx)(x.CrewManifestContent,{});var re=function(le){var se=(0,o.yy)(),fe=se.act,de=se.data,he=de.owner,me=de.occupation,Ie=de.connectionStatus,Pe=de.address,Me=de.visible,Be=de.ring,He=de.selfie_mode;return(0,e.jsx)(v.iG,{title:"Settings",children:(0,e.jsxs)(v.Ce,{children:[(0,e.jsx)(v.Ce.Item,{label:"Owner",children:(0,e.jsx)(v.q,{icon:"pen",fluid:!0,content:(0,n.Af)(he),onClick:function(){return fe("rename")}})}),(0,e.jsx)(v.Ce.Item,{label:"Camera Mode",children:(0,e.jsx)(v.q,{fluid:!0,content:He?"Front-facing Camera":"Rear-facing Camera",onClick:function(){return fe("selfie_mode")}})}),(0,e.jsx)(v.Ce.Item,{label:"Occupation",children:(0,n.Af)(me)}),(0,e.jsx)(v.Ce.Item,{label:"Connection",children:Ie===1?(0,e.jsx)(v.kv,{color:"good",children:"Connected"}):(0,e.jsx)(v.kv,{color:"bad",children:"Disconnected"})}),(0,e.jsx)(v.Ce.Item,{label:"Device EPv2 Address",children:Pe}),(0,e.jsx)(v.Ce.Item,{label:"Visibility",children:(0,e.jsx)(v.q.Checkbox,{checked:Me,selected:Me,fluid:!0,content:Me?"This device can be seen by other devices.":"This device is invisible to other devices.",onClick:function(){return fe("toggle_visibility")}})}),(0,e.jsxs)(v.Ce.Item,{label:"Ringer",children:[(0,e.jsx)(v.q.Checkbox,{checked:Be,selected:Be,fluid:!0,content:Be?"Ringer on.":"Ringer off.",onClick:function(){return fe("toggle_ringer")}}),(0,e.jsx)(v.q,{fluid:!0,content:"Set Ringer Tone",onClick:function(){return fe("set_ringer_tone")}})]})]})})};b[y]=(0,e.jsx)(re,{})},90768:function(M,j,t){"use strict";t.r(j),t.d(j,{ComputerFabricator:function(){return l}});var e=t(33496),s=t(49900),n=t(45280),r=t(68644),o=t(76512);function v(b,O){return O||(O=b.slice(0)),b.raw=O,b}function g(){var b=v(["\n Allows your device to operate without external utility power\n source. Advanced batteries increase battery life.\n "]);return g=function(){return b},b}function x(){var b=v(["\n Stores file on your device. Advanced drives can store more\n files, but use more power, shortening battery life.\n "]);return x=function(){return b},b}function f(){var b=v(["\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 "]);return f=function(){return b},b}function u(){var b=v(["\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 "]);return u=function(){return b},b}function m(){var b=v(["\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 "]);return m=function(){return b},b}function c(){var b=v(["\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 "]);return c=function(){return b},b}function h(){var b=v(["\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 "]);return h=function(){return b},b}var l=function(b){var O=(0,n.yy)(),I=O.act,_=O.data;return(0,e.jsx)(o.qo,{title:"Personal Computer Vendor",width:500,height:420,children:(0,e.jsxs)(o.qo.Content,{children:[(0,e.jsx)(r.iG,{italic:!0,fontSize:"20px",children:"Your perfect device, only three steps away..."}),_.state!==0&&(0,e.jsx)(r.q,{fluid:!0,mb:1,icon:"circle",content:"Clear Order",onClick:function(){return I("clean_order")}}),_.state===0&&(0,e.jsx)(d,{}),_.state===1&&(0,e.jsx)(p,{}),_.state===2&&(0,e.jsx)(C,{}),_.state===3&&(0,e.jsx)(y,{})]})})},d=function(b){var O=(0,n.yy)(),I=O.act,_=O.data;return(0,e.jsxs)(r.iG,{title:"Step 1",minHeight:"306px",children:[(0,e.jsx)(r.kv,{mt:5,bold:!0,textAlign:"center",fontSize:"40px",children:"Choose your Device"}),(0,e.jsx)(r.kv,{mt:3,children:(0,e.jsxs)(r.ye,{width:"100%",children:[(0,e.jsx)(r.ye.Column,{children:(0,e.jsx)(r.q,{fluid:!0,icon:"laptop",content:"Laptop",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return I("pick_device",{pick:"1"})}})}),(0,e.jsx)(r.ye.Column,{children:(0,e.jsx)(r.q,{fluid:!0,icon:"tablet-alt",content:"Tablet",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return I("pick_device",{pick:"2"})}})})]})})]})},p=function(b){var O=(0,n.yy)(),I=O.act,_=O.data;return(0,e.jsxs)(r.iG,{title:"Step 2: Customize your device",minHeight:"282px",buttons:(0,e.jsxs)(r.kv,{bold:!0,color:"good",children:[_.totalprice,"\u20AE"]}),children:[(0,e.jsxs)(r.oJ,{children:[(0,e.jsxs)(r.oJ.Row,{children:[(0,e.jsxs)(r.oJ.Cell,{bold:!0,position:"relative",children:["Battery:",(0,e.jsx)(r.o5,{content:(0,s.JQ)(g()),position:"right"})]}),(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(r.q,{content:"Standard",selected:_.hw_battery===1,onClick:function(){return I("hw_battery",{battery:"1"})}})}),(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(r.q,{content:"Upgraded",selected:_.hw_battery===2,onClick:function(){return I("hw_battery",{battery:"2"})}})}),(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(r.q,{content:"Advanced",selected:_.hw_battery===3,onClick:function(){return I("hw_battery",{battery:"3"})}})})]}),(0,e.jsxs)(r.oJ.Row,{children:[(0,e.jsxs)(r.oJ.Cell,{bold:!0,position:"relative",children:["Hard Drive:",(0,e.jsx)(r.o5,{content:(0,s.JQ)(x()),position:"right"})]}),(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(r.q,{content:"Standard",selected:_.hw_disk===1,onClick:function(){return I("hw_disk",{disk:"1"})}})}),(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(r.q,{content:"Upgraded",selected:_.hw_disk===2,onClick:function(){return I("hw_disk",{disk:"2"})}})}),(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(r.q,{content:"Advanced",selected:_.hw_disk===3,onClick:function(){return I("hw_disk",{disk:"3"})}})})]}),(0,e.jsxs)(r.oJ.Row,{children:[(0,e.jsxs)(r.oJ.Cell,{bold:!0,position:"relative",children:["Network Card:",(0,e.jsx)(r.o5,{content:(0,s.JQ)(f()),position:"right"})]}),(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(r.q,{content:"None",selected:_.hw_netcard===0,onClick:function(){return I("hw_netcard",{netcard:"0"})}})}),(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(r.q,{content:"Standard",selected:_.hw_netcard===1,onClick:function(){return I("hw_netcard",{netcard:"1"})}})}),(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(r.q,{content:"Advanced",selected:_.hw_netcard===2,onClick:function(){return I("hw_netcard",{netcard:"2"})}})})]}),(0,e.jsxs)(r.oJ.Row,{children:[(0,e.jsxs)(r.oJ.Cell,{bold:!0,position:"relative",children:["Nano Printer:",(0,e.jsx)(r.o5,{content:(0,s.JQ)(u()),position:"right"})]}),(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(r.q,{content:"None",selected:_.hw_nanoprint===0,onClick:function(){return I("hw_nanoprint",{print:"0"})}})}),(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(r.q,{content:"Standard",selected:_.hw_nanoprint===1,onClick:function(){return I("hw_nanoprint",{print:"1"})}})})]}),(0,e.jsxs)(r.oJ.Row,{children:[(0,e.jsxs)(r.oJ.Cell,{bold:!0,position:"relative",children:["Secondary Card Reader:",(0,e.jsx)(r.o5,{content:(0,s.JQ)(m()),position:"right"})]}),(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(r.q,{content:"None",selected:_.hw_card===0,onClick:function(){return I("hw_card",{card:"0"})}})}),(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(r.q,{content:"Standard",selected:_.hw_card===1,onClick:function(){return I("hw_card",{card:"1"})}})})]}),_.devtype!==2&&(0,e.jsxs)(r.oJ.Row,{children:[(0,e.jsxs)(r.oJ.Cell,{bold:!0,position:"relative",children:["Processor Unit:",(0,e.jsx)(r.o5,{content:(0,s.JQ)(c()),position:"right"})]}),(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(r.q,{content:"Standard",selected:_.hw_cpu===1,onClick:function(){return I("hw_cpu",{cpu:"1"})}})}),(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(r.q,{content:"Advanced",selected:_.hw_cpu===2,onClick:function(){return I("hw_cpu",{cpu:"2"})}})})]}),(0,e.jsxs)(r.oJ.Row,{children:[(0,e.jsxs)(r.oJ.Cell,{bold:!0,position:"relative",children:["Tesla Relay:",(0,e.jsx)(r.o5,{content:(0,s.JQ)(h()),position:"right"})]}),(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(r.q,{content:"None",selected:_.hw_tesla===0,onClick:function(){return I("hw_tesla",{tesla:"0"})}})}),(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(r.q,{content:"Standard",selected:_.hw_tesla===1,onClick:function(){return I("hw_tesla",{tesla:"1"})}})})]})]}),(0,e.jsx)(r.q,{fluid:!0,mt:3,content:"Confirm Order",color:"good",textAlign:"center",fontSize:"18px",lineHeight:2,onClick:function(){return I("confirm_order")}})]})},C=function(b){var O=(0,n.yy)(),I=O.act,_=O.data;return(0,e.jsxs)(r.iG,{title:"Step 3: Payment",minHeight:"282px",children:[(0,e.jsx)(r.kv,{italic:!0,textAlign:"center",fontSize:"20px",children:"Your device is ready for fabrication..."}),(0,e.jsxs)(r.kv,{bold:!0,mt:2,textAlign:"center",fontSize:"16px",children:[(0,e.jsx)(r.kv,{inline:!0,children:"Please swipe your ID now to authorize payment of:"}),"\xA0",(0,e.jsxs)(r.kv,{inline:!0,color:"good",children:[_.totalprice,"\u20AE"]})]})]})},y=function(b){return(0,e.jsxs)(r.iG,{minHeight:"282px",children:[(0,e.jsx)(r.kv,{bold:!0,textAlign:"center",fontSize:"28px",mt:10,children:"Thank you for your purchase!"}),(0,e.jsx)(r.kv,{italic:!0,mt:1,textAlign:"center",children:"If you experience any difficulties with your new device, please contact your local network administrator."})]})}},39536:function(M,j,t){"use strict";t.r(j),t.d(j,{CookingAppliance:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.temperature,m=f.optimalTemp,c=f.temperatureEnough,h=f.efficiency,l=f.containersRemovable,d=f.our_contents;return(0,e.jsx)(r.qo,{width:600,height:600,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsx)(n.iG,{title:"Status",children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Temperature",children:(0,e.jsxs)(n.cH,{color:c?"good":"blue",value:u,maxValue:m,children:[(0,e.jsx)(n.Gg,{value:u}),"\xB0C / ",m,"\xB0C"]})}),(0,e.jsxs)(n.Ce.Item,{label:"Efficiency",children:[(0,e.jsx)(n.Gg,{value:h}),"%"]})]})}),(0,e.jsx)(n.iG,{title:"Containers",children:(0,e.jsx)(n.Ce,{children:d.map(function(p,C){return p.empty?(0,e.jsx)(n.Ce.Item,{label:"Slot #"+(C+1),children:(0,e.jsx)(n.q,{onClick:function(){return x("slot",{slot:C+1})},children:"Empty"})},C):(0,e.jsx)(n.Ce.Item,{label:"Slot #"+(C+1),verticalAlign:"middle",children:(0,e.jsxs)(n.Cu,{spacing:1,children:[(0,e.jsx)(n.Cu.Item,{children:(0,e.jsx)(n.q,{disabled:!l,onClick:function(){return x("slot",{slot:C+1})},children:p.container||"No Container"})}),(0,e.jsx)(n.Cu.Item,{grow:1,children:(0,e.jsx)(n.cH,{color:p.progressText[0],value:p.progress,maxValue:1,children:p.progressText[1]})})]})},C)})})})]})})}},94384:function(M,j,t){"use strict";t.r(j),t.d(j,{CrewManifest:function(){return g},CrewManifestContent:function(){return x}});var e=t(33496),s=t(49900),n=t(45280),r=t(68644),o=t(36824),v=t(76512),g=function(){return(0,e.jsx)(v.qo,{width:400,height:600,children:(0,e.jsx)(v.qo.Content,{scrollable:!0,children:(0,e.jsx)(x,{})})})},x=function(f){var u=(0,n.yy)(),m=u.act,c=u.data,h=c.manifest;return(0,e.jsx)(r.iG,{title:"Crew Manifest",noTopPadding:!0,children:h.map(function(l){return!!l.elems.length&&(0,e.jsx)(r.iG,{title:(0,e.jsx)(r.kv,{backgroundColor:o.yY.manifest[l.cat.toLowerCase()],m:-1,pt:1,pb:1,children:(0,e.jsx)(r.kv,{ml:1,textAlign:"center",fontSize:1.4,children:l.cat})}),children:(0,e.jsxs)(r.oJ,{children:[(0,e.jsxs)(r.oJ.Row,{header:!0,color:"white",children:[(0,e.jsx)(r.oJ.Cell,{children:"Name"}),(0,e.jsx)(r.oJ.Cell,{children:"Rank"}),(0,e.jsx)(r.oJ.Cell,{children:"Active"})]}),l.elems.map(function(d){return(0,e.jsxs)(r.oJ.Row,{color:"average",children:[(0,e.jsx)(r.oJ.Cell,{children:(0,s.Af)(d.name)}),(0,e.jsx)(r.oJ.Cell,{children:d.rank}),(0,e.jsx)(r.oJ.Cell,{children:d.active})]},d.name+d.rank)})]})},l.cat)})})}},37284:function(M,j,t){"use strict";t.r(j),t.d(j,{CrewMonitor:function(){return f},CrewMonitorContent:function(){return u}});var e=t(33496),s=t(47392),n=t(18140),r=t(45280),o=t(68644),v=t(76512),g=function(c){return c.dead?"Deceased":parseInt(c.stat,10)===1?"Unconscious":"Living"},x=function(c){return c.dead?"red":parseInt(c.stat,10)===1?"orange":"green"},f=function(){return(0,e.jsx)(v.qo,{width:800,height:600,children:(0,e.jsx)(v.qo.Content,{children:(0,e.jsx)(u,{})})})},u=function(c){var h=(0,r.yy)(),l=h.act,d=h.data,p=h.config,C=(0,r.cv)("tabIndex",0),y=C[0],b=C[1],O=(0,n.k)([(0,s.cp)(function(T){return T.name}),(0,s.cp)(function(T){return T==null?void 0:T.x}),(0,s.cp)(function(T){return T==null?void 0:T.y}),(0,s.cp)(function(T){return T==null?void 0:T.realZ})])(d.crewmembers||[]),I=(0,r.cv)("zoom",1),_=I[0],A=I[1],P;return y===0?P=(0,e.jsxs)(o.oJ,{children:[(0,e.jsxs)(o.oJ.Row,{header:!0,children:[(0,e.jsx)(o.oJ.Cell,{children:"Name"}),(0,e.jsx)(o.oJ.Cell,{children:"Status"}),(0,e.jsx)(o.oJ.Cell,{children:"Location"})]}),O.map(function(T){return(0,e.jsxs)(o.oJ.Row,{children:[(0,e.jsxs)(o.oJ.Cell,{children:[T.name," (",T.assignment,")"]}),(0,e.jsxs)(o.oJ.Cell,{children:[(0,e.jsx)(o.kv,{inline:!0,color:x(T),children:g(T)}),T.sensor_type>=2?(0,e.jsxs)(o.kv,{inline:!0,children:["(",(0,e.jsx)(o.kv,{inline:!0,color:"red",children:T.brute}),"|",(0,e.jsx)(o.kv,{inline:!0,color:"orange",children:T.fire}),"|",(0,e.jsx)(o.kv,{inline:!0,color:"green",children:T.tox}),"|",(0,e.jsx)(o.kv,{inline:!0,color:"blue",children:T.oxy}),")"]}):null]}),(0,e.jsx)(o.oJ.Cell,{children:T.sensor_type===3?d.isAI?(0,e.jsx)(o.q,{fluid:!0,icon:"location-arrow",content:T.area+" ("+T.x+", "+T.y+")",onClick:function(){return l("track",{track:T.ref})}}):T.area+" ("+T.x+", "+T.y+", "+T.z+")":"Not Available"})]},T.ref)})]}):y===1?P=(0,e.jsx)(m,{}):P="ERROR",(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(o.kZ,{children:[(0,e.jsxs)(o.kZ.Tab,{selected:y===0,onClick:function(){return b(0)},children:[(0,e.jsx)(o.GW,{name:"table"})," Data View"]},"DataView"),(0,e.jsxs)(o.kZ.Tab,{selected:y===1,onClick:function(){return b(1)},children:[(0,e.jsx)(o.GW,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.jsx)(o.kv,{m:2,children:P})]})},m=function(c){var h=(0,r.yy)(),l=h.act,d=h.config,p=h.data,C=(0,r.cv)("zoom",1),y=C[0],b=C[1];return(0,e.jsx)(o.kv,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(o.mo,{onZoom:function(O){return b(O)},children:p.crewmembers.filter(function(O){return O.sensor_type===3&&~~O.realZ===~~d.mapZLevel}).map(function(O){return(0,e.jsx)(o.mo.Marker,{x:O.x,y:O.y,zoom:y,icon:"circle",tooltip:O.name+" ("+O.assignment+")",color:x(O)},O.ref)})})})}},34888:function(M,j,t){"use strict";t.r(j),t.d(j,{Cryo:function(){return g}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],v=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],g=function(u){return(0,e.jsx)(r.qo,{width:520,height:470,resizeable:!0,children:(0,e.jsx)(r.qo.Content,{className:"Layout__content--flexColumn",children:(0,e.jsx)(x,{})})})},x=function(u){var m=(0,s.yy)(),c=m.act,h=m.data,l=h.isOperating,d=h.hasOccupant,p=h.occupant,C=p===void 0?[]:p,y=h.cellTemperature,b=h.cellTemperatureStatus,O=h.isBeakerLoaded;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.iG,{title:"Occupant",flexGrow:"1",buttons:(0,e.jsx)(n.q,{icon:"user-slash",onClick:function(){return c("ejectOccupant")},disabled:!d,children:"Eject"}),children:d?(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Occupant",children:C.name||"Unknown"}),(0,e.jsx)(n.Ce.Item,{label:"Health",children:(0,e.jsx)(n.cH,{min:C.health,max:C.maxHealth,value:C.health/C.maxHealth,color:C.health>0?"good":"average",children:(0,e.jsx)(n.Gg,{value:Math.round(C.health)})})}),(0,e.jsx)(n.Ce.Item,{label:"Status",color:v[C.stat][0],children:v[C.stat][1]}),(0,e.jsxs)(n.Ce.Item,{label:"Temperature",children:[(0,e.jsx)(n.Gg,{value:Math.round(C.bodyTemperature)})," K"]}),(0,e.jsx)(n.Ce.Divider,{}),o.map(function(I){return(0,e.jsx)(n.Ce.Item,{label:I.label,children:(0,e.jsx)(n.cH,{value:C[I.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.jsx)(n.Gg,{value:Math.round(C[I.type])})})},I.id)})]}):(0,e.jsx)(n.Cu,{height:"100%",textAlign:"center",children:(0,e.jsxs)(n.Cu.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(n.GW,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No occupant detected."]})})}),(0,e.jsx)(n.iG,{title:"Cell",buttons:(0,e.jsx)(n.q,{icon:"eject",onClick:function(){return c("ejectBeaker")},disabled:!O,children:"Eject Beaker"}),children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Power",children:(0,e.jsx)(n.q,{icon:"power-off",onClick:function(){return c(l?"switchOff":"switchOn")},selected:l,children:l?"On":"Off"})}),(0,e.jsxs)(n.Ce.Item,{label:"Temperature",color:b,children:[(0,e.jsx)(n.Gg,{value:y})," K"]}),(0,e.jsx)(n.Ce.Item,{label:"Beaker",children:(0,e.jsx)(f,{})})]})})]})},f=function(u){var m=(0,s.yy)(),c=m.act,h=m.data,l=h.isBeakerLoaded,d=h.beakerLabel,p=h.beakerVolume;return l?(0,e.jsxs)(e.Fragment,{children:[d||(0,e.jsx)(n.kv,{color:"average",children:"No label"}),(0,e.jsx)(n.kv,{color:!p&&"bad",children:p?(0,e.jsx)(n.Gg,{value:p,format:function(C){return Math.round(C)+" units remaining"}}):"Beaker is empty"})]}):(0,e.jsx)(n.kv,{color:"average",children:"No beaker loaded"})}},62208:function(M,j,t){"use strict";t.r(j),t.d(j,{CryoStorage:function(){return v},CryoStorageCrew:function(){return g},CryoStorageItems:function(){return x}});var e=t(33496),s=t(69344),n=t(45280),r=t(68644),o=t(76512),v=function(f){var u=(0,n.yy)(),m=u.act,c=u.data,h=c.real_name,l=c.allow_items,d=(0,s.useState)(0),p=d[0],C=d[1];return(0,e.jsx)(o.qo,{width:400,height:600,children:(0,e.jsxs)(o.qo.Content,{scrollable:!0,children:[(0,e.jsxs)(r.kZ,{children:[(0,e.jsx)(r.kZ.Tab,{selected:p===0,onClick:function(){return C(0)},children:"Crew"}),!!l&&(0,e.jsx)(r.kZ.Tab,{selected:p===1,onClick:function(){return C(1)},children:"Items"})]}),(0,e.jsxs)(r.yc,{info:!0,children:["Welcome, ",h,"."]}),p===0&&(0,e.jsx)(g,{}),!!l&&p===1&&(0,e.jsx)(x,{})]})})},g=function(f){var u=(0,n.yy)(),m=u.act,c=u.data,h=c.crew;return(0,e.jsx)(r.iG,{title:"Stored Crew",children:h.length&&h.map(function(l){return(0,e.jsx)(r.kv,{color:"label",children:l},l)})||(0,e.jsx)(r.kv,{color:"good",children:"No crew currently stored."})})},x=function(f){var u=(0,n.yy)(),m=u.act,c=u.data,h=c.items;return(0,e.jsx)(r.iG,{title:"Stored Items",buttons:(0,e.jsx)(r.q,{icon:"hand-rock",onClick:function(){return m("allitems")},children:"Claim All"}),children:h.length&&h.map(function(l){return(0,e.jsx)(r.q,{icon:"hand-rock",onClick:function(){return m("item",{ref:l.ref})},children:l.name},l.ref)})||(0,e.jsx)(r.kv,{color:"average",children:"No items stored."})})}},61440:function(M,j,t){"use strict";t.r(j),t.d(j,{CryoStorageItemsVr:function(){return x},CryoStorageVr:function(){return g}});var e=t(33496),s=t(69344),n=t(45280),r=t(68644),o=t(76512),v=t(62208),g=function(f){var u=(0,n.yy)(),m=u.act,c=u.data,h=c.real_name,l=c.allow_items,d=(0,s.useState)(0),p=d[0],C=d[1];return(0,e.jsx)(o.qo,{width:400,height:600,children:(0,e.jsxs)(o.qo.Content,{scrollable:!0,children:[(0,e.jsxs)(r.kZ,{children:[(0,e.jsx)(r.kZ.Tab,{selected:p===0,onClick:function(){return C(0)},children:"Crew"}),!!l&&(0,e.jsx)(r.kZ.Tab,{selected:p===1,onClick:function(){return C(1)},children:"Items"})]}),(0,e.jsxs)(r.yc,{info:!0,children:["Welcome, ",h,"."]}),p===0&&(0,e.jsx)(v.CryoStorageCrew,{}),!!l&&p===1&&(0,e.jsx)(x,{})]})})},x=function(f){var u=(0,n.yy)(),m=u.act,c=u.data,h=c.items;return(0,e.jsx)(r.iG,{title:"Stored Items",children:h.length&&h.map(function(l){return(0,e.jsx)(r.kv,{color:"label",children:l},l)})||(0,e.jsx)(r.kv,{color:"average",children:"No items stored."})})}},48936:function(M,j,t){"use strict";t.r(j),t.d(j,{DNAForensics:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.scan_progress,m=f.scanning,c=f.bloodsamp,h=f.bloodsamp_desc;return(0,e.jsx)(r.qo,{width:540,height:326,children:(0,e.jsxs)(r.qo.Content,{children:[(0,e.jsx)(n.iG,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.q,{selected:m,disabled:!c,icon:"power-off",onClick:function(){return x("scanItem")},children:m?"Halt Scan":"Begin Scan"}),(0,e.jsx)(n.q,{disabled:!c,icon:"eject",onClick:function(){return x("ejectItem")},children:"Eject Bloodsample"})]}),children:(0,e.jsx)(n.Ce,{children:(0,e.jsx)(n.Ce.Item,{label:"Scan Progress",children:(0,e.jsx)(n.cH,{ranges:{good:[99,1/0],violet:[-1/0,99]},value:u,maxValue:100})})})}),(0,e.jsx)(n.iG,{title:"Blood Sample",children:c&&(0,e.jsxs)(n.kv,{children:[c,(0,e.jsx)(n.kv,{color:"label",children:h})]})||(0,e.jsx)(n.kv,{color:"bad",children:"No blood sample inserted."})})]})})}},62936:function(M,j,t){"use strict";t.r(j),t.d(j,{DNAModifier:function(){return f}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=t(8020),v=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],g=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],x=[5,10,20,30,50],f=function(I){var _=(0,s.yy)(),A=_.act,P=_.data,T=P.irradiating,R=P.dnaBlockSize,L=P.occupant;context.dnaBlockSize=R,context.isDNAInvalid=!L.isViableSubject||!L.uniqueIdentity||!L.structuralEnzymes;var N;return T&&(N=(0,e.jsx)(b,{duration:T})),(0,e.jsxs)(r.qo,{width:660,height:700,children:[(0,e.jsx)(o.ComplexModal,{}),N,(0,e.jsxs)(r.qo.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(u,{}),(0,e.jsx)(m,{})]})]})},u=function(I){var _=(0,s.yy)(),A=_.act,P=_.data,T=P.locked,R=P.hasOccupant,L=P.occupant;return(0,e.jsx)(n.iG,{title:"Occupant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.kv,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.jsx)(n.q,{disabled:!R,selected:T,icon:T?"toggle-on":"toggle-off",content:T?"Engaged":"Disengaged",onClick:function(){return A("toggleLock")}}),(0,e.jsx)(n.q,{disabled:!R||T,icon:"user-slash",content:"Eject",onClick:function(){return A("ejectOccupant")}})]}),children:R?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.kv,{children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Name",children:L.name}),(0,e.jsx)(n.Ce.Item,{label:"Health",children:(0,e.jsx)(n.cH,{min:L.minHealth,max:L.maxHealth,value:L.health/L.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.jsx)(n.Ce.Item,{label:"Status",color:v[L.stat][0],children:v[L.stat][1]}),(0,e.jsx)(n.Ce.Divider,{})]})}),context.isDNAInvalid?(0,e.jsxs)(n.kv,{color:"bad",children:[(0,e.jsx)(n.GW,{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)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Radiation",children:(0,e.jsx)(n.cH,{min:"0",max:"100",value:L.radiationLevel/100,color:"average"})}),(0,e.jsx)(n.Ce.Item,{label:"Unique Enzymes",children:P.occupant.uniqueEnzymes?P.occupant.uniqueEnzymes:(0,e.jsxs)(n.kv,{color:"bad",children:[(0,e.jsx)(n.GW,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})]}):(0,e.jsx)(n.kv,{color:"label",children:"Cell unoccupied."})})},m=function(I){var _=(0,s.yy)(),A=_.act,P=_.data,T=P.selectedMenuKey,R=P.hasOccupant,L=P.occupant;if(R){if(context.isDNAInvalid)return(0,e.jsx)(n.iG,{flexGrow:"1",children:(0,e.jsx)(n.Cu,{height:"100%",children:(0,e.jsxs)(n.Cu.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(n.GW,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No operation possible on this subject."]})})})}else return(0,e.jsx)(n.iG,{flexGrow:"1",children:(0,e.jsx)(n.Cu,{height:"100%",children:(0,e.jsxs)(n.Cu.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(n.GW,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No occupant in DNA modifier."]})})});var N;return T==="ui"?N=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(c,{}),(0,e.jsx)(l,{})]}):T==="se"?N=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(h,{}),(0,e.jsx)(l,{})]}):T==="buffer"?N=(0,e.jsx)(d,{}):T==="rejuvenators"&&(N=(0,e.jsx)(y,{})),(0,e.jsxs)(n.iG,{flexGrow:"1",children:[(0,e.jsx)(n.kZ,{children:g.map(function(U,V){return(0,e.jsxs)(n.kZ.Tab,{selected:T===U[0],onClick:function(){return A("selectMenuKey",{key:U[0]})},children:[(0,e.jsx)(n.GW,{name:U[2]}),U[1]]},V)})}),N]})},c=function(I){var _=(0,s.yy)(),A=_.act,P=_.data,T=P.selectedUIBlock,R=P.selectedUISubBlock,L=P.selectedUITarget,N=P.occupant;return(0,e.jsxs)(n.iG,{title:"Modify Unique Identifier",level:"2",children:[(0,e.jsx)(O,{dnaString:N.uniqueIdentity,selectedBlock:T,selectedSubblock:R,blockSize:context.dnaBlockSize,action:"selectUIBlock"}),(0,e.jsx)(n.Ce,{children:(0,e.jsx)(n.Ce.Item,{label:"Target",children:(0,e.jsx)(n.S6,{minValue:"1",maxValue:"15",stepPixelSize:"20",value:L,format:function(U){return U.toString(16).toUpperCase()},ml:"0",onChange:function(U,V){return A("changeUITarget",{value:V})}})})}),(0,e.jsx)(n.q,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){return A("pulseUIRadiation")}})]})},h=function(I){var _=(0,s.yy)(),A=_.act,P=_.data,T=P.selectedSEBlock,R=P.selectedSESubBlock,L=P.occupant;return(0,e.jsxs)(n.iG,{title:"Modify Structural Enzymes",level:"2",children:[(0,e.jsx)(O,{dnaString:L.structuralEnzymes,selectedBlock:T,selectedSubblock:R,blockSize:context.dnaBlockSize,action:"selectSEBlock"}),(0,e.jsx)(n.q,{icon:"radiation",content:"Irradiate Block",onClick:function(){return A("pulseSERadiation")}})]})},l=function(I){var _=(0,s.yy)(),A=_.act,P=_.data,T=P.radiationIntensity,R=P.radiationDuration;return(0,e.jsxs)(n.iG,{title:"Radiation Emitter",level:"2",children:[(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Intensity",children:(0,e.jsx)(n.S6,{minValue:"1",maxValue:"10",stepPixelSize:"20",value:T,popUpPosition:"right",ml:"0",onChange:function(L,N){return A("radiationIntensity",{value:N})}})}),(0,e.jsx)(n.Ce.Item,{label:"Duration",children:(0,e.jsx)(n.S6,{minValue:"1",maxValue:"20",stepPixelSize:"10",unit:"s",value:R,popUpPosition:"right",ml:"0",onChange:function(L,N){return A("radiationDuration",{value:N})}})})]}),(0,e.jsx)(n.q,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top",mt:"0.5rem",onClick:function(){return A("pulseRadiation")}})]})},d=function(I){var _=(0,s.yy)(),A=_.act,P=_.data,T=P.buffers,R=T.map(function(L,N){return(0,e.jsx)(p,{id:N+1,name:"Buffer "+(N+1),buffer:L},N)});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.iG,{title:"Buffers",level:"2",children:R}),(0,e.jsx)(C,{})]})},p=function(I){var _=(0,s.yy)(),A=_.act,P=_.data,T=I.id,R=I.name,L=I.buffer,N=P.isInjectorReady,U=R+(L.data?" - "+L.label:"");return(0,e.jsx)(n.kv,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.jsxs)(n.iG,{title:U,level:"3",mx:"0",lineHeight:"18px",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.q.Confirm,{disabled:!L.data,icon:"trash",content:"Clear",onClick:function(){return A("bufferOption",{option:"clear",id:T})}}),(0,e.jsx)(n.q,{disabled:!L.data,icon:"pen",content:"Rename",onClick:function(){return A("bufferOption",{option:"changeLabel",id:T})}}),(0,e.jsx)(n.q,{disabled:!L.data||!P.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-end",onClick:function(){return A("bufferOption",{option:"saveDisk",id:T})}})]}),children:[(0,e.jsxs)(n.Ce,{children:[(0,e.jsxs)(n.Ce.Item,{label:"Write",children:[(0,e.jsx)(n.q,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){return A("bufferOption",{option:"saveUI",id:T})}}),(0,e.jsx)(n.q,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){return A("bufferOption",{option:"saveUIAndUE",id:T})}}),(0,e.jsx)(n.q,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){return A("bufferOption",{option:"saveSE",id:T})}}),(0,e.jsx)(n.q,{disabled:!P.hasDisk||!P.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){return A("bufferOption",{option:"loadDisk",id:T})}})]}),!!L.data&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ce.Item,{label:"Subject",children:L.owner||(0,e.jsx)(n.kv,{color:"average",children:"Unknown"})}),(0,e.jsxs)(n.Ce.Item,{label:"Data Type",children:[L.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!L.ue&&" and Unique Enzymes"]}),(0,e.jsxs)(n.Ce.Item,{label:"Transfer to",children:[(0,e.jsx)(n.q,{disabled:!N,icon:N?"syringe":"spinner",iconSpin:!N,content:"Injector",mb:"0",onClick:function(){return A("bufferOption",{option:"createInjector",id:T})}}),(0,e.jsx)(n.q,{disabled:!N,icon:N?"syringe":"spinner",iconSpin:!N,content:"Block Injector",mb:"0",onClick:function(){return A("bufferOption",{option:"createInjector",id:T,block:1})}}),(0,e.jsx)(n.q,{icon:"user",content:"Subject",mb:"0",onClick:function(){return A("bufferOption",{option:"transfer",id:T})}})]})]})]}),!L.data&&(0,e.jsx)(n.kv,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},C=function(I){var _=(0,s.yy)(),A=_.act,P=_.data,T=P.hasDisk,R=P.disk;return(0,e.jsx)(n.iG,{title:"Data Disk",level:"2",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.q.Confirm,{disabled:!T||!R.data,icon:"trash",content:"Wipe",onClick:function(){return A("wipeDisk")}}),(0,e.jsx)(n.q,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){return A("ejectDisk")}})]}),children:T?R.data?(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Label",children:R.label?R.label:"No label"}),(0,e.jsx)(n.Ce.Item,{label:"Subject",children:R.owner?R.owner:(0,e.jsx)(n.kv,{color:"average",children:"Unknown"})}),(0,e.jsxs)(n.Ce.Item,{label:"Data Type",children:[R.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!R.ue&&" and Unique Enzymes"]})]}):(0,e.jsx)(n.kv,{color:"label",children:"Disk is blank."}):(0,e.jsxs)(n.kv,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.jsx)(n.GW,{name:"save-o",size:"4"}),(0,e.jsx)("br",{}),"No disk inserted."]})})},y=function(I){var _=(0,s.yy)(),A=_.act,P=_.data,T=P.isBeakerLoaded,R=P.beakerVolume,L=P.beakerLabel;return(0,e.jsx)(n.iG,{title:"Rejuvenators and Beaker",level:"2",buttons:(0,e.jsx)(n.q,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){return A("ejectBeaker")}}),children:T?(0,e.jsxs)(n.Ce,{children:[(0,e.jsxs)(n.Ce.Item,{label:"Inject",children:[x.map(function(N,U){return(0,e.jsx)(n.q,{disabled:N>R,icon:"syringe",content:N,onClick:function(){return A("injectRejuvenators",{amount:N})}},U)}),(0,e.jsx)(n.q,{disabled:R<=0,icon:"syringe",content:"All",onClick:function(){return A("injectRejuvenators",{amount:R})}})]}),(0,e.jsxs)(n.Ce.Item,{label:"Beaker",children:[(0,e.jsx)(n.kv,{mb:"0.5rem",children:L||"No label"}),R?(0,e.jsxs)(n.kv,{color:"good",children:[R," unit",R===1?"":"s"," remaining"]}):(0,e.jsx)(n.kv,{color:"bad",children:"Empty"})]})]}):(0,e.jsxs)(n.kv,{color:"label",textAlign:"center",my:"25%",children:[(0,e.jsx)(n.GW,{name:"exclamation-triangle",size:"4"}),(0,e.jsx)("br",{}),"No beaker loaded."]})})},b=function(I){return(0,e.jsxs)(n.Oe,{textAlign:"center",children:[(0,e.jsx)(n.GW,{name:"spinner",size:"5",spin:!0}),(0,e.jsx)("br",{}),(0,e.jsx)(n.kv,{color:"average",children:(0,e.jsxs)("h1",{children:[(0,e.jsx)(n.GW,{name:"radiation"}),"\xA0Irradiating occupant\xA0",(0,e.jsx)(n.GW,{name:"radiation"})]})}),(0,e.jsx)(n.kv,{color:"label",children:(0,e.jsxs)("h3",{children:["For ",I.duration," second",I.duration===1?"":"s"]})})]})},O=function(I){for(var _=function(Z){for(var $=function(ae){var re=ae+1;Y.push((0,e.jsx)(n.q,{selected:L===G&&N===re,content:z[Z+ae],mb:"0",onClick:function(){return P(V,{block:G,subblock:re})}}))},G=Z/U+1,Y=[],ee=0;ee1?"Dangerous!":null]},C.stage)})||(0,e.jsx)(n.kv,{children:"No virus sample loaded."})}),(0,e.jsxs)(n.iG,{level:2,title:"Affected Species",color:"label",children:[!p||!p.length?"None":null,p.sort().join(", ")]}),(0,e.jsxs)(n.iG,{level:2,title:"Reverse Engineering",children:[(0,e.jsx)(n.kv,{color:"bad",mb:1,children:(0,e.jsx)("i",{children:"CAUTION: Reverse engineering will destroy the viral sample."})}),h.map(function(C){return(0,e.jsx)(n.q,{content:C.stage,icon:"exchange-alt",onClick:function(){return u("grab",{grab:C.reference})}},C.stage)}),(0,e.jsx)(n.q,{content:"Species",icon:"exchange-alt",onClick:function(){return u("affected_species")}})]})]})]})},g=function(x){var f=(0,s.yy)(),u=f.act,m=f.data,c=m.dish_inserted,h=m.buffer,l=m.species_buffer,d=m.effects,p=m.info,C=m.growth,y=m.affected_species,b=m.busy;return(0,e.jsxs)(n.iG,{title:"Storage",children:[(0,e.jsx)(n.Ce,{children:(0,e.jsx)(n.Ce.Item,{label:"Memory Buffer",children:h?(0,e.jsxs)(n.kv,{children:[h.name," (",h.stage,")"]}):l?(0,e.jsx)(n.kv,{children:l}):"Empty"})}),(0,e.jsx)(n.q,{mt:1,icon:"save",content:"Save To Disk",disabled:!h&&!l,onClick:function(){return u("disk")}}),h?(0,e.jsxs)(n.kv,{children:[(0,e.jsx)(n.q,{icon:"pen",content:"Splice #1",disabled:h.stage>1,onClick:function(){return u("splice",{splice:1})}}),(0,e.jsx)(n.q,{icon:"pen",content:"Splice #2",disabled:h.stage>2,onClick:function(){return u("splice",{splice:2})}}),(0,e.jsx)(n.q,{icon:"pen",content:"Splice #3",disabled:h.stage>3,onClick:function(){return u("splice",{splice:3})}}),(0,e.jsx)(n.q,{icon:"pen",content:"Splice #4",disabled:h.stage>4,onClick:function(){return u("splice",{splice:4})}})]}):l?(0,e.jsx)(n.kv,{children:(0,e.jsx)(n.q,{icon:"pen",content:"Splice Species",disabled:!l||p,onClick:function(){return u("splice",{splice:5})}})}):null]})}},13300:function(M,j,t){"use strict";t.r(j),t.d(j,{DishIncubator:function(){return v}});var e=t(33496),s=t(45280),n=t(68644),r=t(96060),o=t(76512),v=function(g){var x=(0,s.yy)(),f=x.act,u=x.data,m=u.on,c=u.system_in_use,h=u.food_supply,l=u.radiation,d=u.growth,p=u.toxins,C=u.chemicals_inserted,y=u.can_breed_virus,b=u.chemical_volume,O=u.max_chemical_volume,I=u.dish_inserted,_=u.blood_already_infected,A=u.virus,P=u.analysed,T=u.infection_rate;return(0,e.jsx)(o.qo,{width:400,height:600,children:(0,e.jsxs)(o.qo.Content,{scrollable:!0,children:[(0,e.jsxs)(n.iG,{title:"Environmental Conditions",buttons:(0,e.jsx)(n.q,{icon:"power-off",selected:m,content:m?"On":"Off",onClick:function(){return f("power")}}),children:[(0,e.jsxs)(n.Cu,{spacing:1,mb:1,children:[(0,e.jsx)(n.Cu.Item,{grow:1,children:(0,e.jsx)(n.q,{fluid:!0,icon:"radiation",content:"Add Radiation",onClick:function(){return f("rad")}})}),(0,e.jsx)(n.Cu.Item,{grow:1,children:(0,e.jsx)(n.q.Confirm,{fluid:!0,color:"red",icon:"trash",confirmIcon:"trash",content:"Flush System",disabled:!c,onClick:function(){return f("flush")}})})]}),(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Virus Food",children:(0,e.jsx)(n.cH,{minValue:0,maxValue:100,ranges:{good:[40,1/0],average:[20,40],bad:[-1/0,20]},value:h})}),(0,e.jsx)(n.Ce.Item,{label:"Radiation Level",children:(0,e.jsxs)(n.cH,{minValue:0,maxValue:100,color:l>=50?"bad":d>=25?"average":"good",value:l,children:[(0,r.WX)(l*1e4)," \xB5Sv"]})}),(0,e.jsx)(n.Ce.Item,{label:"Toxicity",children:(0,e.jsx)(n.cH,{minValue:0,maxValue:100,ranges:{bad:[50,1/0],average:[25,50],good:[-1/0,25]},value:p})})]})]}),(0,e.jsx)(n.iG,{title:y?"Vial":"Chemicals",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.q,{icon:"eject",content:"Eject "+(y?"Vial":"Chemicals"),disabled:!C,onClick:function(){return f("ejectchem")}}),(0,e.jsx)(n.q,{icon:"virus",content:"Breed Virus",disabled:!y,onClick:function(){return f("virus")}})]}),children:C&&(0,e.jsx)(n.kv,{children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Volume",children:(0,e.jsxs)(n.cH,{minValue:0,maxValue:O,value:b,children:[b,"/",O]})}),(0,e.jsxs)(n.Ce.Item,{label:"Breeding Environment",color:y?"good":"average",children:[I?y?"Suitable":"No hemolytic samples detected":"N/A",_?(0,e.jsx)(n.kv,{color:"bad",children:"CAUTION: Viral infection detected in blood sample."}):null]})]})})||(0,e.jsx)(n.kv,{color:"average",children:"No chemicals inserted."})}),(0,e.jsx)(n.iG,{title:"Virus Dish",buttons:(0,e.jsx)(n.q,{icon:"eject",content:"Eject Dish",disabled:!I,onClick:function(){return f("ejectdish")}}),children:I?A?(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Growth Density",children:(0,e.jsx)(n.cH,{minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,25]},value:d})}),(0,e.jsx)(n.Ce.Item,{label:"Infection Rate",children:P?T:"Unknown."})]}):(0,e.jsx)(n.kv,{color:"bad",children:"No virus detected."}):(0,e.jsx)(n.kv,{color:"average",children:"No dish loaded."})})]})})}},24644:function(M,j,t){"use strict";t.r(j),t.d(j,{DisposalBin:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.mode,m=f.pressure,c=f.isAI,h=f.panel_open,l=f.flushing,d,p;return u===2?(d="good",p="Ready"):u<=0?(d="bad",p="N/A"):u===1?(d="average",p="Pressurizing"):(d="average",p="Idle"),(0,e.jsx)(r.qo,{width:300,height:250,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsxs)(n.iG,{children:[(0,e.jsx)(n.kv,{bold:!0,m:1,children:"Status"}),(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"State",color:d,children:p}),(0,e.jsx)(n.Ce.Item,{label:"Pressure",children:(0,e.jsx)(n.cH,{ranges:{bad:[-1/0,0],average:[0,99],good:[99,1/0]},value:m,minValue:0,maxValue:100})})]}),(0,e.jsx)(n.kv,{bold:!0,m:1,children:"Controls"}),(0,e.jsxs)(n.Ce,{children:[(0,e.jsxs)(n.Ce.Item,{label:"Handle",children:[(0,e.jsx)(n.q,{icon:"toggle-off",disabled:c||h,content:"Disengaged",selected:l?null:"selected",onClick:function(){return x("disengageHandle")}}),(0,e.jsx)(n.q,{icon:"toggle-on",disabled:c||h,content:"Engaged",selected:l?"selected":null,onClick:function(){return x("engageHandle")}})]}),(0,e.jsxs)(n.Ce.Item,{label:"Power",children:[(0,e.jsx)(n.q,{icon:"toggle-off",disabled:u===-1,content:"Off",selected:u?null:"selected",onClick:function(){return x("pumpOff")}}),(0,e.jsx)(n.q,{icon:"toggle-on",disabled:u===-1,content:"On",selected:u?"selected":null,onClick:function(){return x("pumpOn")}})]}),(0,e.jsx)(n.Ce.Item,{label:"Eject",children:(0,e.jsx)(n.q,{icon:"sign-out-alt",disabled:c,content:"Eject Contents",onClick:function(){return x("eject")}})})]})]})})})}},31448:function(M,j,t){"use strict";t.r(j),t.d(j,{DroneConsole:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.drones,m=f.areas,c=f.selected_area,h=f.fabricator,l=f.fabPower;return(0,e.jsx)(r.qo,{width:600,height:350,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsx)(n.iG,{title:"Drone Fabricator",buttons:(0,e.jsx)(n.q,{disabled:!h,selected:l,icon:"power-off",content:l?"Enabled":"Disabled",onClick:function(){return x("toggle_fab")}}),children:h?(0,e.jsx)(n.kv,{color:"good",children:"Linked."}):(0,e.jsxs)(n.kv,{color:"bad",children:["Fabricator not detected.",(0,e.jsx)(n.q,{icon:"sync",content:"Search for Fabricator",onClick:function(){return x("search_fab")}})]})}),(0,e.jsxs)(n.iG,{title:"Request Drone",children:[(0,e.jsx)(n.cS,{options:m?m.sort():null,selected:c,width:"100%",onSelected:function(d){return x("set_dcall_area",{area:d})}}),(0,e.jsx)(n.q,{icon:"share-square",content:"Send Ping",onClick:function(){return x("ping")}})]}),(0,e.jsx)(n.iG,{title:"Maintenance Units",children:u&&u.length?(0,e.jsx)(n.Ce,{children:u.map(function(d){return(0,e.jsx)(n.Ce.Item,{label:d.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.q,{icon:"sync",content:"Resync",onClick:function(){return x("resync",{ref:d.ref})}}),(0,e.jsx)(n.q.Confirm,{icon:"exclamation-triangle",color:"red",content:"Shutdown",onClick:function(){return x("shutdown",{ref:d.ref})}})]}),children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Location",children:d.loc}),(0,e.jsxs)(n.Ce.Item,{label:"Charge",children:[d.charge," / ",d.maxCharge]}),(0,e.jsx)(n.Ce.Item,{label:"Active",children:d.active?"Yes":"No"})]})},d.name)})}):(0,e.jsx)(n.kv,{color:"bad",children:"No drones detected."})})]})})}},71324:function(M,j,t){"use strict";t.r(j),t.d(j,{EmbeddedController:function(){return x}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=t(37756),v=(0,o.m)("fuck"),g={},x=function(P){var T=(0,s.yy)(),R=T.act,L=T.data,N=L.internalTemplateName,U=g[N];if(!U)throw Error("Unable to find Component for template name: "+N);return(0,e.jsx)(r.qo,{width:450,height:340,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(U,{})})})},f=function(P){var T=P.bars;return(0,e.jsx)(n.iG,{title:"Status",children:(0,e.jsx)(n.Ce,{children:T.map(function(R){return(0,e.jsx)(n.Ce.Item,{label:R.label,children:(0,e.jsx)(n.cH,{color:R.color(R.value),minValue:R.minValue,maxValue:R.maxValue,value:R.value,children:R.textValue})},R.label)})})})},u=function(P){var T=(0,s.yy)(),R=T.data,L=T.act,N=!0;R.interior_status&&R.interior_status.state==="open"?N=!1:R.external_pressure&&R.chamber_pressure&&(N=!(Math.abs(R.external_pressure-R.chamber_pressure)>5));var U=!0;return R.exterior_status&&R.exterior_status.state==="open"?U=!1:R.internal_pressure&&R.chamber_pressure&&(U=!(Math.abs(R.internal_pressure-R.chamber_pressure)>5)),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.kv,{children:[(0,e.jsx)(n.q,{disabled:R.airlock_disabled,icon:"arrow-left",content:"Cycle to Exterior",onClick:function(){return L("cycle_ext")}}),(0,e.jsx)(n.q,{disabled:R.airlock_disabled,icon:"arrow-right",content:"Cycle to Interior",onClick:function(){return L("cycle_int")}})]}),(0,e.jsxs)(n.kv,{children:[(0,e.jsx)(n.q.Confirm,{disabled:R.airlock_disabled,color:N?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Exterior Door",onClick:function(){return L("force_ext")}}),(0,e.jsx)(n.q.Confirm,{disabled:R.airlock_disabled,color:U?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Interior Door",onClick:function(){return L("force_int")}})]})]})},m=function(P){var T=(0,s.yy)(),R=T.data,L=T.act,N={docked:(0,e.jsx)(c,{}),undocking:(0,e.jsx)(n.kv,{color:"average",children:"EJECTING-STAND CLEAR!"}),undocked:(0,e.jsx)(n.kv,{color:"grey",children:"POD EJECTED"}),docking:(0,e.jsx)(n.kv,{color:"good",children:"INITIALIZING..."})},U=(0,e.jsx)(n.kv,{color:"bad",children:"ERROR"});return R.exterior_status.state==="open"?U=(0,e.jsx)(n.kv,{color:"average",children:"OPEN"}):R.exterior_status.lock==="unlocked"?U=(0,e.jsx)(n.kv,{color:"average",children:"UNSECURED"}):R.exterior_status.lock==="locked"&&(U=(0,e.jsx)(n.kv,{color:"good",children:"SECURED"})),(0,e.jsx)(n.iG,{children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Escape Pod Status",children:N[R.docking_status]}),(0,e.jsx)(n.Ce.Item,{label:"Docking Hatch",children:U})]})})},c=function(P){var T=(0,s.yy)(),R=T.data,L=T.act;return R.armed?(0,e.jsx)(n.kv,{color:"average",children:"ARMED"}):(0,e.jsx)(n.kv,{color:"good",children:"SYSTEMS OK"})},h=function(P){var T=(0,s.yy)(),R=T.data,L=T.act;return(0,e.jsxs)(n.kv,{children:[(0,e.jsx)(n.q,{disabled:!R.override_enabled,icon:"exclamation-triangle",content:"Force Exterior Door",color:R.docking_status!=="docked"?"bad":"",onClick:function(){return L("force_door")}}),(0,e.jsx)(n.q,{selected:R.override_enabled,color:R.docking_status!=="docked"?"bad":"average",icon:"exclamation-triangle",content:"Override",onClick:function(){return L("toggle_override")}})]})},l=function(P){var T=(0,s.yy)(),R=T.data,L=T.act,N={docked:(0,e.jsx)(n.kv,{color:"good",children:"DOCKED"}),docking:(0,e.jsx)(n.kv,{color:"average",children:"DOCKING"}),undocking:(0,e.jsx)(n.kv,{color:"average",children:"UNDOCKING"}),undocked:(0,e.jsx)(n.kv,{color:"grey",children:"NOT IN USE"})},U=N[R.docking_status];return R.override_enabled&&(U=(0,e.jsxs)(n.kv,{color:"bad",children:[R.docking_status.toUpperCase(),"-OVERRIDE ENABLED"]})),U},d=function(P){var T=(0,s.yy)(),R=T.act,L=T.data,N=function(V){return V<80||V>120?"bad":V<95||V>110?"average":"good"},U=[{minValue:0,maxValue:202,value:L.external_pressure,label:"External Pressure",textValue:L.external_pressure+" kPa",color:N},{minValue:0,maxValue:202,value:L.chamber_pressure,label:"Chamber Pressure",textValue:L.chamber_pressure+" kPa",color:N},{minValue:0,maxValue:202,value:L.internal_pressure,label:"Internal Pressure",textValue:L.internal_pressure+" kPa",color:N}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(f,{bars:U}),(0,e.jsxs)(n.iG,{title:"Controls",children:[(0,e.jsx)(u,{}),(0,e.jsxs)(n.kv,{children:[(0,e.jsx)(n.q,{icon:"sync",content:"Purge",onClick:function(){return R("purge")}}),(0,e.jsx)(n.q,{icon:"lock-open",content:"Secure",onClick:function(){return R("secure")}})]}),(0,e.jsx)(n.kv,{children:(0,e.jsx)(n.q,{disabled:!L.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return R("abort")}})})]})]})};g.AirlockConsoleAdvanced=d;var p=function(P){var T=(0,s.yy)(),R=T.act,L=T.data,N=[{minValue:0,maxValue:202,value:L.chamber_pressure,label:"Chamber Pressure",textValue:L.chamber_pressure+" kPa",color:function(U){return U<80||U>120?"bad":U<95||U>110?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(f,{bars:N}),(0,e.jsxs)(n.iG,{title:"Controls",children:[(0,e.jsx)(u,{}),(0,e.jsx)(n.kv,{children:(0,e.jsx)(n.q,{disabled:!L.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return R("abort")}})})]})]})};g.AirlockConsoleSimple=p;var C=function(P){var T=(0,s.yy)(),R=T.act,L=T.data,N=[{minValue:0,maxValue:202,value:L.chamber_pressure,label:"Chamber Pressure",textValue:L.chamber_pressure+" kPa",color:function(U){return U<80||U>120?"bad":U<95||U>110?"average":"good"}},{minValue:0,maxValue:100,value:L.chamber_phoron,label:"Chamber Phoron",textValue:L.chamber_phoron+" mol",color:function(U){return U>5?"bad":U>.5?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(f,{bars:N}),(0,e.jsxs)(n.iG,{title:"Controls",children:[(0,e.jsx)(u,{}),(0,e.jsx)(n.kv,{children:(0,e.jsx)(n.q,{disabled:!L.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return R("abort")}})})]})]})};g.AirlockConsolePhoron=C;var y=function(P){var T=(0,s.yy)(),R=T.act,L=T.data,N=[{minValue:0,maxValue:202,value:L.chamber_pressure,label:"Chamber Pressure",textValue:L.chamber_pressure+" kPa",color:function(U){return U<80||U>120?"bad":U<95||U>110?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.iG,{title:"Dock",buttons:L.airlock_disabled||L.override_enabled?(0,e.jsx)(n.q,{icon:"exclamation-triangle",color:L.override_enabled?"red":"",content:"Override",onClick:function(){return R("toggle_override")}}):null,children:(0,e.jsx)(l,{})}),(0,e.jsx)(f,{bars:N}),(0,e.jsxs)(n.iG,{title:"Controls",children:[(0,e.jsx)(u,{}),(0,e.jsx)(n.kv,{children:(0,e.jsx)(n.q,{disabled:!L.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return R("abort")}})})]})]})};g.AirlockConsoleDocking=y;var b=function(P){var T=(0,s.yy)(),R=T.act,L=T.data,N=(0,e.jsx)(n.kv,{color:"bad",children:"ERROR"});return L.exterior_status.state==="open"?N=(0,e.jsx)(n.kv,{color:"average",children:"OPEN"}):L.exterior_status.lock==="unlocked"?N=(0,e.jsx)(n.kv,{color:"average",children:"UNSECURED"}):L.exterior_status.lock==="locked"&&(N=(0,e.jsx)(n.kv,{color:"good",children:"SECURED"})),(0,e.jsx)(n.iG,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.q,{icon:"exclamation-triangle",disabled:!L.override_enabled,content:"Force exterior door",onClick:function(){return R("force_door")}}),(0,e.jsx)(n.q,{icon:"exclamation-triangle",color:L.override_enabled?"red":"",content:"Override",onClick:function(){return R("toggle_override")}})]}),children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Dock Status",children:(0,e.jsx)(l,{})}),(0,e.jsx)(n.Ce.Item,{label:"Docking Hatch",children:N})]})})};g.DockingConsoleSimple=b;var O=function(P){var T=(0,s.yy)().data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.iG,{title:"Docking Status",children:(0,e.jsx)(l,{})}),(0,e.jsx)(n.iG,{title:"Airlocks",children:T.airlocks.length?(0,e.jsx)(n.Ce,{children:T.airlocks.map(function(R){return(0,e.jsx)(n.Ce.Item,{color:R.override_enabled?"bad":"good",label:R.name,children:R.override_enabled?"OVERRIDE ENABLED":"STATUS OK"},R.name)})}):(0,e.jsx)(n.Cu,{height:"100%",mt:"0.5em",children:(0,e.jsxs)(n.Cu.Item,{grow:"1",align:"center",textAlign:"center",color:"bad",children:[(0,e.jsx)(n.GW,{name:"door-closed",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No airlocks found."]})})})]})};g.DockingConsoleMulti=O;var I=function(P){var T=(0,s.yy)(),R=T.act,L=T.data,N=L.interior_status.state==="open"||L.exterior_status.state==="closed",U=L.exterior_status.state==="open"||L.interior_status.state==="closed";return(0,e.jsx)(n.iG,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.q,{icon:N?"arrow-left":"exclamation-triangle",content:N?"Cycle To Exterior":"Lock Exterior Door",onClick:function(){R(N?"cycle_ext_door":"force_ext")}}),(0,e.jsx)(n.q,{icon:U?"arrow-right":"exclamation-triangle",content:U?"Cycle To Interior":"Lock Interior Door",onClick:function(){R(U?"cycle_int_door":"force_int")}})]}),children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Exterior Door Status",children:L.exterior_status.state==="closed"?"Locked":"Open"}),(0,e.jsx)(n.Ce.Item,{label:"Interior Door Status",children:L.interior_status.state==="closed"?"Locked":"Open"})]})})};g.DoorAccessConsole=I;var _=function(P){var T=(0,s.yy)(),R=T.act,L=T.data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(m,{}),(0,e.jsxs)(n.iG,{title:"Controls",children:[(0,e.jsx)(h,{}),(0,e.jsxs)(n.kv,{children:[(0,e.jsx)(n.q,{icon:"exclamation-triangle",disabled:L.armed,color:L.armed?"bad":"average",content:"ARM",onClick:function(){return R("manual_arm")}}),(0,e.jsx)(n.q,{icon:"exclamation-triangle",disabled:!L.can_force,color:"bad",content:"MANUAL EJECT",onClick:function(){return R("force_launch")}})]})]})]})};g.EscapePodConsole=_;var A=function(P){var T=(0,s.yy)().data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(m,{}),(0,e.jsx)(n.iG,{title:"Controls",children:(0,e.jsx)(h,{})})]})};g.EscapePodBerthConsole=A},69572:function(M,j,t){"use strict";t.r(j),t.d(j,{DisplayDetails:function(){return x},EntityNarrate:function(){return v},EntitySelection:function(){return g},ModeSelector:function(){return f},NarrationInput:function(){return u}});var e=t(33496),s=t(69344),n=t(45280),r=t(68644),o=t(76512),v=function(m){var c=(0,n.yy)(),h=c.act,l=c.data;return(0,e.jsx)(o.qo,{width:800,height:470,theme:"abstract",children:(0,e.jsx)(o.qo.Content,{scrollable:!0,children:(0,e.jsx)(r.iG,{children:(0,e.jsxs)(r.Cu,{children:[(0,e.jsx)(r.Cu.Item,{scrollable:!0,grow:2,fill:!0,children:(0,e.jsx)(r.iG,{scrollable:!0,children:(0,e.jsx)(g,{})})}),(0,e.jsx)(r.Cu.Item,{grow:.25,fill:!0,children:(0,e.jsx)(r.c1,{vertical:!0})}),(0,e.jsx)(r.Cu.Item,{grow:6.75,fill:!0,children:(0,e.jsx)(r.iG,{children:(0,e.jsxs)(r.Cu,{direction:"column",justify:"space-between",children:[(0,e.jsx)(r.Cu.Item,{Flex:!0,children:(0,e.jsx)(r.iG,{title:"Details",children:(0,e.jsx)(x,{})})}),(0,e.jsx)(r.Cu.Item,{Flex:!0,children:(0,e.jsx)(r.iG,{title:"Select Behaviour",children:(0,e.jsx)(f,{})})}),(0,e.jsx)(r.Cu.Item,{Flex:!0,children:(0,e.jsx)(u,{})})]})})})]})})})})},g=function(m){var c=(0,n.yy)(),h=c.act,l=c.data,d=l.selection_mode,p=l.multi_id_selection,C=l.entity_names;return(0,e.jsx)(r.Cu,{direction:"column",grow:!0,children:(0,e.jsx)(r.Cu.Item,{children:(0,e.jsx)(r.iG,{title:"Choose!",buttons:(0,e.jsx)(r.q,{selected:d,fill:!0,content:"Multi-Selection",onClick:function(){return h("change_mode_multi")}}),children:(0,e.jsx)(r.kZ,{vertical:!0,children:C.map(function(y){return(0,e.jsx)(r.kZ.Tab,{selected:p.includes(y),onClick:function(){return h("select_entity",{id_selected:y})},children:(0,e.jsx)(r.kv,{inline:!0,children:y})},y)})})})})})},x=function(m){var c=(0,n.yy)(),h=c.act,l=c.data,d=l.selection_mode,p=l.number_mob_selected,C=l.selected_id,y=l.selected_name,b=l.selected_type;return d?(0,e.jsxs)(r.kv,{children:[(0,e.jsx)("b",{children:"Number of entities selected:"})," ",p]}):(0,e.jsxs)(r.kv,{children:[(0,e.jsx)("b",{children:"Selected ID:"})," ",C," ",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Selected Name:"})," ",y," ",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Selected Type:"})," ",b," ",(0,e.jsx)("br",{})]})},f=function(m){var c=(0,n.yy)(),h=c.act,l=c.data,d=l.privacy_select,p=l.mode_select;return(0,e.jsxs)(r.Cu,{direction:"row",children:[(0,e.jsx)(r.Cu.Item,{grow:!0,children:(0,e.jsx)(r.q,{onClick:function(){return h("change_mode_privacy")},selected:d,fluid:!0,tooltip:"This button changes whether your narration is loud (any who see/hear) or subtle (range of 1 tile) "+(d?"Click here to disable subtle mode":"Click here to enable subtle mode"),content:d?"Currently: Subtle":"Currently: Loud"})}),(0,e.jsx)(r.Cu.Item,{grow:!0,children:(0,e.jsx)(r.q,{onClick:function(){return h("change_mode_narration")},selected:p,fluid:!0,tooltip:"This button sets your narration to talk audiably or emote visibly "+(p?"Click here to emote visibly.":"Click here to talk audiably."),content:p?"Currently: Emoting":"Currently: Talking"})})]})},u=function(m){var c=(0,n.yy)(),h=c.act,l=c.data,d=(0,s.useState)(""),p=d[0],C=d[1];return(0,e.jsx)(r.iG,{title:"Narration Text",buttons:(0,e.jsx)(r.q,{onClick:function(){return h("narrate",{message:p})},content:"Send Narration"}),children:(0,e.jsx)(r.Cu,{children:(0,e.jsx)(r.Cu.Item,{width:"85%",children:(0,e.jsx)(r.IF,{height:"18rem",onChange:function(y,b){return C(b)},value:p||""})})})})}},32620:function(M,j,t){"use strict";t.r(j),t.d(j,{ExonetNode:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.on,m=f.allowPDAs,c=f.allowCommunicators,h=f.allowNewscasters,l=f.logs;return(0,e.jsx)(r.qo,{width:400,height:400,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsx)(n.iG,{title:"Status",buttons:(0,e.jsx)(n.q,{icon:"power-off",selected:u,content:"Power "+(u?"On":"Off"),onClick:function(){return x("toggle_power")}}),children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Incoming PDA Messages",children:(0,e.jsx)(n.q,{icon:"power-off",selected:m,content:m?"Open":"Closed",onClick:function(){return x("toggle_PDA_port")}})}),(0,e.jsx)(n.Ce.Item,{label:"Incoming Communicators",children:(0,e.jsx)(n.q,{icon:"power-off",selected:c,content:c?"Open":"Closed",onClick:function(){return x("toggle_communicator_port")}})}),(0,e.jsx)(n.Ce.Item,{label:"Incoming Newscaster Content",children:(0,e.jsx)(n.q,{icon:"power-off",selected:h,content:h?"Open":"Closed",onClick:function(){return x("toggle_newscaster_port")}})})]})}),(0,e.jsx)(n.iG,{title:"Logging",children:(0,e.jsxs)(n.Cu,{wrap:"wrap",children:[l.map(function(d,p){return(0,e.jsx)(n.Cu.Item,{m:"2px",basis:"49%",grow:p%2,children:d},p)}),!l||l.length===0?(0,e.jsx)(n.kv,{color:"average",children:"No logs found."}):null]})})]})})}},93436:function(M,j,t){"use strict";t.r(j),t.d(j,{ExosuitFabricator:function(){return T},Materials:function(){return L}});var e=t(33496),s=t(47392),n=t(10608),r=t(28324),o=t(49900),v=t(69344),g=t(45280),x=t(68644),f=t(96060),u=t(76512);function m($,G){(G==null||G>$.length)&&(G=$.length);for(var Y=0,ee=new Array(G);Y=$.length?{done:!0}:{done:!1,value:$[ee++]}}}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={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"},d=0,p=1,C=2,y,b=(y={},y[d]=!1,y[p]="average",y[C]="bad",y),O=function($){var G={};return $.forEach(function(Y){G[Y.name]=Y.amount}),G},I=function($,G,Y){return $>Y?{color:C,deficit:$-Y}:G>Y?{color:p,deficit:$}:$+G>Y?{color:p,deficit:$+G-Y}:{color:d,deficit:0}},_=function($,G,Y){var ee={textColor:d};return Object.keys(Y.cost).forEach(function(ae){ee[ae]=I(Y.cost[ae],G[ae],$[ae]),ee[ae].color>ee.textColor&&(ee.textColor=ee[ae].color)}),ee},A=function($,G){var Y={},ee={},ae={},re={};return G.forEach(function(le,se){re[se]=d,Object.keys(le.cost).forEach(function(fe){Y[fe]=Y[fe]||0,ae[fe]=ae[fe]||0,ee[fe]=I(le.cost[fe],Y[fe],$[fe]),ee[fe].color!==d?re[se]1&&re0});return le.length===0?(0,e.jsxs)(x.kv,{textAlign:"center",children:[(0,e.jsx)(x.GW,{textAlign:"center",size:5,name:"inbox"}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"No Materials Loaded."})]}):(0,e.jsx)(x.Cu,{wrap:"wrap",children:le.map(function(se){return(0,e.jsxs)(x.Cu.Item,{width:"80px",children:[(0,e.jsx)(N,{name:se.name,amount:se.amount,formatsi:!0}),!ae&&(0,e.jsx)(x.kv,{mt:1,style:{"text-align":"center"},children:(0,e.jsx)(R,{material:se})})]},se.name)||null})})},N=function($){var G=$.name,Y=$.amount,ee=$.formatsi,ae=$.formatmoney,re=$.color,le=$.style,se="0";return Y<1&&Y>0?se=(0,n.yI)(Y,2):ee?se=(0,f._c)(Y,0):ae?se=(0,f.cp)(Y):se=Y,(0,e.jsxs)(x.Cu,{direction:"column",align:"center",children:[(0,e.jsx)(x.Cu.Item,{children:(0,e.jsx)(x.o5,{position:"bottom",content:(0,o.Yl)(G),children:(0,e.jsx)(x.kv,{className:(0,r.iE)(["sheetmaterials32x32",l[G]]),position:"relative",style:le})})}),(0,e.jsx)(x.Cu.Item,{children:(0,e.jsx)(x.kv,{textColor:re,style:{"text-align":"center"},children:se})})]})},U=function($){var G=(0,g.yy)().data,Y=G.partSets||[],ee=G.buildableParts||{},ae=(0,g.ao)("part_tab",Y.length?ee[0]:""),re=ae[0],le=ae[1];return(0,e.jsx)(x.kZ,{vertical:!0,children:Y.map(function(se){return!!ee[se]&&(0,e.jsx)(x.kZ.Tab,{selected:se===re,disabled:!ee[se],onClick:function(){return le(se)},children:se},se)})})},V=function($){var G=(0,g.yy)().data,Y=function(Be){for(var He=h(Be),Ke;!(Ke=He()).done;){var vt=Ke.value;if(ae[vt])return vt}return null},ee=G.partSets||[],ae=G.buildableParts||[],re=$.queueMaterials,le=$.materials,se=(0,g.ao)("part_tab",Y(ee)),fe=se[0],de=se[1],he=(0,g.ao)("search_text",""),me=he[0],Ie=he[1];if(!fe||!ae[fe]){var Pe=Y(ee);if(Pe)de(Pe);else return}var Me;return me?(Me=[],P(me,ae).forEach(function(Be){Be.format=_(le,re,Be),Me.push(Be)})):(Me={Parts:[]},ae[fe].forEach(function(Be){if(Be.format=_(le,re,Be),!Be.subCategory){Me.Parts.push(Be);return}Be.subCategory in Me||(Me[Be.subCategory]=[]),Me[Be.subCategory].push(Be)})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x.iG,{children:(0,e.jsxs)(x.Cu,{children:[(0,e.jsx)(x.Cu.Item,{mr:1,children:(0,e.jsx)(x.GW,{name:"search"})}),(0,e.jsx)(x.Cu.Item,{grow:1,children:(0,e.jsx)(x.EF,{fluid:!0,placeholder:"Search for...",onInput:function(Be,He){return Ie(He)}})})]})}),!!me&&(0,e.jsx)(z,{name:"Search Results",parts:Me,forceShow:!0,placeholder:"No matching results..."})||Object.keys(Me).map(function(Be){return(0,e.jsx)(z,{name:Be,parts:Me[Be]},Be)})]})},z=function($){var G=(0,g.yy)(),Y=G.act,ee=G.data,ae=ee.buildingPart,re=$.parts,le=$.name,se=$.forceShow,fe=$.placeholder,de=(0,g.ao)("display_mats",!1),he=de[0];return(!!re.length||se)&&(0,e.jsxs)(x.iG,{title:le,buttons:(0,e.jsx)(x.q,{disabled:!re.length,color:"good",content:"Queue All",icon:"plus-circle",onClick:function(){return Y("add_queue_set",{part_list:re.map(function(me){return me.id})})}}),children:[!re.length&&fe,re.map(function(me){return(0,e.jsxs)(v.Fragment,{children:[(0,e.jsxs)(x.Cu,{align:"center",children:[(0,e.jsx)(x.Cu.Item,{children:(0,e.jsx)(x.q,{disabled:ae||me.format.textColor===C,color:"good",height:"20px",mr:1,icon:"play",onClick:function(){return Y("build_part",{id:me.id})}})}),(0,e.jsx)(x.Cu.Item,{children:(0,e.jsx)(x.q,{color:"average",height:"20px",mr:1,icon:"plus-circle",onClick:function(){return Y("add_queue_part",{id:me.id})}})}),(0,e.jsx)(x.Cu.Item,{children:(0,e.jsx)(x.kv,{inline:!0,textColor:b[me.format.textColor],children:me.name})}),(0,e.jsx)(x.Cu.Item,{grow:1}),(0,e.jsx)(x.Cu.Item,{children:(0,e.jsx)(x.q,{icon:"question-circle",transparent:!0,height:"20px",tooltip:"Build Time: "+me.printTime+"s. "+(me.desc||""),tooltipPosition:"left"})})]}),he&&(0,e.jsx)(x.Cu,{mb:2,children:Object.keys(me.cost).map(function(Ie){return(0,e.jsx)(x.Cu.Item,{width:"50px",color:b[me.format[Ie].color],children:(0,e.jsx)(N,{formatmoney:!0,style:{transform:"scale(0.75) translate(0%, 10%)"},name:Ie,amount:me.cost[Ie]})},Ie)})})]},me.name)})]})},Q=function($){var G=(0,g.yy)(),Y=G.act,ee=G.data,ae=ee.isProcessingQueue,re=ee.queue||[],le=$.queueMaterials,se=$.missingMaterials,fe=$.textColors;return(0,e.jsxs)(x.Cu,{height:"100%",width:"100%",direction:"column",children:[(0,e.jsx)(x.Cu.Item,{height:0,grow:1,children:(0,e.jsx)(x.iG,{height:"100%",title:"Queue",overflowY:"auto",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x.q.Confirm,{disabled:!re.length,color:"bad",icon:"minus-circle",content:"Clear Queue",onClick:function(){return Y("clear_queue")}}),!!ae&&(0,e.jsx)(x.q,{disabled:!re.length,content:"Stop",icon:"stop",onClick:function(){return Y("stop_queue")}})||(0,e.jsx)(x.q,{disabled:!re.length,content:"Build Queue",icon:"play",onClick:function(){return Y("build_queue")}})]}),children:(0,e.jsxs)(x.Cu,{direction:"column",height:"100%",children:[(0,e.jsx)(x.Cu.Item,{children:(0,e.jsx)(Z,{})}),(0,e.jsx)(x.Cu.Item,{children:(0,e.jsx)(q,{textColors:fe})})]})})}),!!re.length&&(0,e.jsx)(x.Cu.Item,{mt:1,children:(0,e.jsx)(x.iG,{title:"Material Cost",children:(0,e.jsx)(H,{queueMaterials:le,missingMaterials:se})})})]})},H=function($){var G=$.queueMaterials,Y=$.missingMaterials;return(0,e.jsx)(x.Cu,{wrap:"wrap",children:Object.keys(G).map(function(ee){return(0,e.jsxs)(x.Cu.Item,{width:"12%",children:[(0,e.jsx)(N,{formatmoney:!0,name:ee,amount:G[ee]}),!!Y[ee]&&(0,e.jsx)(x.kv,{textColor:"bad",style:{"text-align":"center"},children:(0,f.cp)(Y[ee])})]},ee)})})},q=function($){var G=(0,g.yy)(),Y=G.act,ee=G.data,ae=$.textColors,re=ee.queue||[];return re.length?re.map(function(le,se){return(0,e.jsx)(x.kv,{children:(0,e.jsxs)(x.Cu,{mb:.5,direction:"column",justify:"center",wrap:"wrap",height:"20px",inline:!0,children:[(0,e.jsx)(x.Cu.Item,{basis:"content",children:(0,e.jsx)(x.q,{height:"20px",mr:1,icon:"minus-circle",color:"bad",onClick:function(){return Y("del_queue_part",{index:se+1})}})}),(0,e.jsx)(x.Cu.Item,{children:(0,e.jsx)(x.kv,{inline:!0,textColor:b[ae[se]],children:le.name})})]})},le.name)}):(0,e.jsx)(e.Fragment,{children:"No parts in queue."})},Z=function($){var G=(0,g.yy)().data,Y=G.buildingPart,ee=G.storedPart;if(ee){var ae=ee.name;return(0,e.jsx)(x.kv,{children:(0,e.jsx)(x.cH,{minValue:0,maxValue:1,value:1,color:"average",children:(0,e.jsxs)(x.Cu,{children:[(0,e.jsx)(x.Cu.Item,{children:ae}),(0,e.jsx)(x.Cu.Item,{grow:1}),(0,e.jsx)(x.Cu.Item,{children:"Fabricator outlet obstructed..."})]})})})}if(Y){var re=Y.name,le=Y.duration,se=Y.printTime,fe=Math.ceil(le/10);return(0,e.jsx)(x.kv,{children:(0,e.jsx)(x.cH,{minValue:0,maxValue:se,value:le,children:(0,e.jsxs)(x.Cu,{children:[(0,e.jsx)(x.Cu.Item,{children:re}),(0,e.jsx)(x.Cu.Item,{grow:1}),(0,e.jsx)(x.Cu.Item,{children:fe>=0&&fe+"s"||"Dispensing..."})]})})})}}},13568:function(M,j,t){"use strict";t.r(j),t.d(j,{Farmbot:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.on,m=f.locked,c=f.tank,h=f.tankVolume,l=f.tankMaxVolume,d=f.waters_trays,p=f.refills_water,C=f.uproots_weeds,y=f.replaces_nutriment,b=f.collects_produce,O=f.removes_dead;return(0,e.jsx)(r.qo,{width:450,height:540,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsx)(n.iG,{title:"Automatic Hydroponic Assistance Unit v2.0",buttons:(0,e.jsx)(n.q,{icon:"power-off",selected:u,onClick:function(){return x("power")},children:u?"On":"Off"}),children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Water Tank",children:c&&(0,e.jsxs)(n.cH,{value:h,maxValue:l,children:[h," / ",l]})||(0,e.jsx)(n.kv,{color:"average",children:"No water tank detected."})}),(0,e.jsx)(n.Ce.Item,{label:"Behavior Controls",color:m?"good":"bad",children:m?"Locked":"Unlocked"})]})}),!m&&(0,e.jsxs)(n.iG,{title:"Behavior Controls",children:[(0,e.jsx)(n.iG,{level:2,title:"Watering Controls",children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Water plants",children:(0,e.jsx)(n.q,{icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){return x("water")},children:d?"Yes":"No"})}),(0,e.jsx)(n.Ce.Item,{label:"Refill watertank",children:(0,e.jsx)(n.q,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return x("refill")},children:p?"Yes":"No"})})]})}),(0,e.jsx)(n.iG,{level:2,title:"Weeding controls",children:(0,e.jsx)(n.Ce,{children:(0,e.jsx)(n.Ce.Item,{label:"Weed plants",children:(0,e.jsx)(n.q,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return x("weed")},children:C?"Yes":"No"})})})}),(0,e.jsx)(n.iG,{level:2,title:"Nutriment controls",children:(0,e.jsx)(n.Ce,{children:(0,e.jsx)(n.Ce.Item,{label:"Replace fertilizer",children:(0,e.jsx)(n.q,{icon:y?"toggle-on":"toggle-off",selected:y,onClick:function(){return x("replacenutri")},children:y?"Yes":"No"})})})})]})||null]})})}},73832:function(M,j,t){"use strict";t.r(j),t.d(j,{Fax:function(){return g},FaxContent:function(){return x}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=t(74800),v=t(79092),g=function(m){var c=(0,s.yy)().data,h=c.authenticated,l=c.copyItem,d=340;return l&&(d=358),h?(0,e.jsx)(r.qo,{width:600,height:d,children:(0,e.jsxs)(r.qo.Content,{children:[(0,e.jsx)(f,{}),(0,e.jsx)(o.LoginInfo,{}),(0,e.jsx)(x,{})]})}):(0,e.jsx)(r.qo,{width:600,height:250,children:(0,e.jsxs)(r.qo.Content,{children:[(0,e.jsx)(f,{}),(0,e.jsx)(v.LoginScreen,{machineType:"Fax"})]})})},x=function(m){var c=(0,s.yy)(),h=c.act,l=c.data,d=l.bossName,p=l.copyItem,C=l.cooldown,y=l.destination,b=l.adminDepartments,O=new Set(b);return(0,e.jsxs)(n.iG,{children:[!!C&&(0,e.jsx)(n.yc,{info:!0,children:"Transmitter arrays realigning. Please stand by."}),(0,e.jsx)(n.Ce,{children:(0,e.jsxs)(n.Ce.Item,{label:"Network",children:[d," Quantum Entanglement Network"]})}),p&&(0,e.jsxs)(n.kv,{mt:1,children:[(0,e.jsxs)(n.Ce,{children:[(0,e.jsxs)(n.Ce.Item,{label:"Currently Sending",children:[p," ",(0,e.jsx)(n.q,{icon:"pen",onClick:function(){return h("rename")},tooltip:"Renames the paper. This changes its preview in staff chat when sending to centcom/job board/supply (admin departments). It is advisable to name your faxes something self-explanatory for quick response."})]}),(0,e.jsx)(n.Ce.Item,{label:"Sending To",children:(0,e.jsx)(n.q,{icon:"map-marker-alt",content:y,onClick:function(){return h("dept")}})})]}),(0,e.jsx)(n.q,{icon:"share-square",onClick:function(){return h("send")},content:"Send",fluid:!0})]})||(0,e.jsx)(n.kv,{mt:1,children:"Please insert item to transmit."}),(0,e.jsx)(u,{})]})},f=function(m){var c=(0,s.yy)(),h=c.act,l=c.data,d=l.copyItem;return d?(0,e.jsx)(n.kv,{children:(0,e.jsx)(n.q,{fluid:!0,icon:"eject",onClick:function(){return h("remove")},content:"Remove Item"})}):null},u=function(m){var c=(0,s.yy)(),h=c.act,l=c.data,d=l.adminDepartments,p=l.destination,C=l.copyItem,y=new Set(d),b="1rem";return C&&(b="1.5rem"),!C||C&&y.has(p)?(0,e.jsxs)(n.kv,{mt:"1.5rem",children:[(0,e.jsx)("b",{children:"Or submit an automated staff request."})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{}),(0,e.jsxs)("i",{children:["The automated staff request form automatically populates the company job board ((sends to discord, but does not ping.)) without requiring intervention from central command clerks and officers. ",(0,e.jsx)("br",{}),"It also works without requiring a written request to be composed."]}),(0,e.jsx)("br",{}),(0,e.jsx)(n.kv,{mt:"1.5rem",children:(0,e.jsx)(n.q,{icon:"share-square",onClick:function(){return h("send_automated_staff_request")},content:"Send Automated Staff Request",fluid:!0})})]}):null}},19088:function(M,j,t){"use strict";t.r(j),t.d(j,{FileCabinet:function(){return v}});var e=t(33496),s=t(47392),n=t(45280),r=t(68644),o=t(76512),v=function(g){var x=(0,n.yy)(),f=x.act,u=x.data,m=u.contents,c=(0,s.cp)(function(h){return h.name})(m||[]);return(0,e.jsx)(o.qo,{width:350,height:300,children:(0,e.jsx)(o.qo.Content,{scrollable:!0,children:(0,e.jsx)(r.iG,{children:c.map(function(h){return(0,e.jsx)(r.q,{fluid:!0,icon:"file",content:h.name,onClick:function(){return f("retrieve",{ref:h.ref})}},h.ref)})})})})}},94e3:function(M,j,t){"use strict";t.r(j),t.d(j,{Floorbot:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.on,m=f.open,c=f.locked,h=f.vocal,l=f.amount,d=f.possible_bmode,p=f.improvefloors,C=f.eattiles,y=f.maketiles,b=f.bmode;return(0,e.jsx)(r.qo,{width:390,height:310,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsx)(n.iG,{title:"Automatic Station Floor Repairer v2.0",buttons:(0,e.jsx)(n.q,{icon:"power-off",selected:u,onClick:function(){return x("start")},children:u?"On":"Off"}),children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Tiles Left",children:(0,e.jsx)(n.Gg,{value:l})}),(0,e.jsx)(n.Ce.Item,{label:"Maintenance Panel",color:m?"bad":"good",children:m?"Open":"Closed"}),(0,e.jsx)(n.Ce.Item,{label:"Behavior Controls",color:c?"good":"bad",children:c?"Locked":"Unlocked"})]})}),!c&&(0,e.jsx)(n.iG,{title:"Behavior Controls",children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Speaker",children:(0,e.jsx)(n.q,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return x("vocal")},children:h?"On":"Off"})}),(0,e.jsx)(n.Ce.Item,{label:"Improves Floors",children:(0,e.jsx)(n.q,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return x("improve")},children:p?"On":"Off"})}),(0,e.jsx)(n.Ce.Item,{label:"Finds Tiles",children:(0,e.jsx)(n.q,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return x("tiles")},children:C?"On":"Off"})}),(0,e.jsx)(n.Ce.Item,{label:"Makes Metal Sheets into Tiles",children:(0,e.jsx)(n.q,{icon:y?"toggle-on":"toggle-off",selected:y,onClick:function(){return x("make")},children:y?"On":"Off"})}),(0,e.jsx)(n.Ce.Item,{label:"Bridge Mode",children:(0,e.jsx)(n.cS,{over:!0,width:"100%",placeholder:"Disabled",selected:b,options:d,onSelected:function(O){return x("bridgemode",{dir:O})}})})]})})||null]})})}},68620:function(M,j,t){"use strict";t.r(j),t.d(j,{GasPump:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.on,m=f.pressure_set,c=f.last_flow_rate,h=f.last_power_draw,l=f.max_power_draw;return(0,e.jsx)(r.qo,{width:470,height:290,children:(0,e.jsxs)(r.qo.Content,{children:[(0,e.jsx)(n.iG,{title:"Status",children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsxs)(n.Ce.Item,{label:"Flow Rate",children:[(0,e.jsx)(n.Gg,{value:c/10})," L/s"]}),(0,e.jsx)(n.Ce.Item,{label:"Load",children:(0,e.jsx)(n.cH,{value:h,minValue:0,maxValue:l,color:h=100?d="Running":!u&&m>0&&(d="DISCHARGING"),(0,e.jsx)(r.qo,{width:500,height:400,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(n.iG,{title:"Status",buttons:(0,e.jsx)(n.q.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",color:"red",content:"Toggle Breaker",confirmContent:u?"This will disable gravity!":"This will enable gravity!",onClick:function(){return x("gentoggle")}}),children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Breaker Setting",children:u?"Generator Enabled":"Generator Disabled"}),(0,e.jsxs)(n.Ce.Item,{label:"Charge Mode",children:["Generator ",d]}),(0,e.jsxs)(n.Ce.Item,{label:"Charge Status",children:[m,"%"]})]})})})})}},61284:function(M,j,t){"use strict";t.r(j),t.d(j,{GuestPass:function(){return v}});var e=t(33496),s=t(47392),n=t(45280),r=t(68644),o=t(76512),v=function(g){var x=(0,n.yy)(),f=x.act,u=x.data,m=u.access,c=u.area,h=u.giver,l=u.giveName,d=u.reason,p=u.duration,C=u.mode,y=u.log,b=u.uid;return(0,e.jsx)(o.qo,{width:500,height:520,children:(0,e.jsx)(o.qo.Content,{scrollable:!0,children:C===1&&(0,e.jsxs)(r.iG,{title:"Activity Log",buttons:(0,e.jsx)(r.q,{icon:"scroll",content:"Activity Log",selected:!0,onClick:function(){return f("mode",{mode:0})}}),children:[(0,e.jsx)(r.q,{icon:"print",content:"Print",onClick:function(){return f("print")},fluid:!0,mb:1}),(0,e.jsx)(r.iG,{level:2,title:"Logs",children:y.length&&y.map(function(O){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:O}},O)})||(0,e.jsx)(r.kv,{children:"No logs."})})]})||(0,e.jsxs)(r.iG,{title:"Guest pass terminal #"+b,buttons:(0,e.jsx)(r.q,{icon:"scroll",content:"Activity Log",onClick:function(){return f("mode",{mode:1})}}),children:[(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Issuing ID",children:(0,e.jsx)(r.q,{content:h||"Insert ID",onClick:function(){return f("id")}})}),(0,e.jsx)(r.Ce.Item,{label:"Issued To",children:(0,e.jsx)(r.q,{content:l,onClick:function(){return f("giv_name")}})}),(0,e.jsx)(r.Ce.Item,{label:"Reason",children:(0,e.jsx)(r.q,{content:d,onClick:function(){return f("reason")}})}),(0,e.jsx)(r.Ce.Item,{label:"Duration (minutes)",children:(0,e.jsx)(r.q,{content:p,onClick:function(){return f("duration")}})})]}),(0,e.jsx)(r.q.Confirm,{icon:"check",fluid:!0,content:"Issue Pass",onClick:function(){return f("issue")}}),(0,e.jsx)(r.iG,{title:"Access",level:2,children:(0,s.cp)(function(O){return O.area_name})(c).map(function(O){return(0,e.jsx)(r.q.Checkbox,{checked:O.on,content:O.area_name,onClick:function(){return f("access",{access:O.area})}},O.area)})})]})})})}},49484:function(M,j,t){"use strict";t.r(j),t.d(j,{GyrotronControl:function(){return o},GyrotronControlContent:function(){return v}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(){return(0,e.jsx)(r.qo,{width:627,height:700,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(v,{})})})},v=function(g){var x=(0,s.yy)(),f=x.act,u=x.data,m=u.gyros;return(0,e.jsx)(n.iG,{title:"Gyrotrons",buttons:(0,e.jsx)(n.q,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return f("set_tag")}}),children:(0,e.jsxs)(n.oJ,{children:[(0,e.jsxs)(n.oJ.Row,{header:!0,children:[(0,e.jsx)(n.oJ.Cell,{children:"Name"}),(0,e.jsx)(n.oJ.Cell,{children:"Position"}),(0,e.jsx)(n.oJ.Cell,{children:"Status"}),(0,e.jsx)(n.oJ.Cell,{children:"Fire Delay"}),(0,e.jsx)(n.oJ.Cell,{children:"Strength"})]}),m.map(function(c){return(0,e.jsxs)(n.oJ.Row,{children:[(0,e.jsx)(n.oJ.Cell,{children:c.name}),(0,e.jsxs)(n.oJ.Cell,{children:[c.x,", ",c.y,", ",c.z]}),(0,e.jsx)(n.oJ.Cell,{children:(0,e.jsx)(n.q,{icon:"power-off",content:c.active?"Online":"Offline",selected:c.active,disabled:!c.deployed,onClick:function(){return f("toggle_active",{gyro:c.ref})}})}),(0,e.jsx)(n.oJ.Cell,{children:(0,e.jsx)(n.S6,{forcedInputWidth:"60px",size:1.25,color:!!c.active&&"yellow",value:c.fire_delay,unit:"decisecond(s)",minValue:1,maxValue:60,stepPixelSize:1,onDrag:function(h,l){return f("set_rate",{gyro:c.ref,rate:l})}})}),(0,e.jsx)(n.oJ.Cell,{children:(0,e.jsx)(n.S6,{forcedInputWidth:"60px",size:1.25,color:!!c.active&&"yellow",value:c.strength,unit:"penta-dakw",minValue:1,maxValue:50,stepPixelSize:1,onDrag:function(h,l){return f("set_str",{gyro:c.ref,str:l})}})})]},c.name)})]})})}},60948:function(M,j,t){"use strict";t.r(j),t.d(j,{Holodeck:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.supportedPrograms,m=f.restrictedPrograms,c=f.currentProgram,h=f.isSilicon,l=f.safetyDisabled,d=f.emagged,p=f.gravity,C=u;return l&&(C=C.concat(m)),(0,e.jsx)(r.qo,{width:400,height:610,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsx)(n.iG,{title:"Programs",children:C.map(function(y){return(0,e.jsx)(n.q,{color:m.indexOf(y)!==-1?"bad":null,icon:"eye",content:y,selected:c===y,fluid:!0,onClick:function(){return x("program",{program:y})}},y)})}),!!h&&(0,e.jsx)(n.iG,{title:"Override",children:(0,e.jsxs)(n.q,{icon:"exclamation-triangle",fluid:!0,disabled:d,color:l?"good":"bad",onClick:function(){return x("AIoverride")},children:[!!d&&"Error, unable to control. ",l?"Enable Safeties":"Disable Safeties"]})}),(0,e.jsx)(n.iG,{title:"Controls",children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Safeties",children:l?(0,e.jsx)(n.kv,{color:"bad",children:"DISABLED"}):(0,e.jsx)(n.kv,{color:"good",children:"ENABLED"})}),(0,e.jsx)(n.Ce.Item,{label:"Gravity",children:(0,e.jsx)(n.q,{icon:"user-astronaut",selected:p,onClick:function(){return x("gravity")},children:p?"Enabled":"Disabled"})})]})})]})})}},38264:function(M,j,t){"use strict";t.r(j),t.d(j,{ICAssembly:function(){return g}});var e=t(33496),s=t(10608),n=t(45280),r=t(68644),o=t(96060),v=t(76512),g=function(f){var u=(0,n.yy)(),m=u.act,c=u.data,h=c.total_parts,l=c.max_components,d=c.total_complexity,p=c.max_complexity,C=c.battery_charge,y=c.battery_max,b=c.net_power,O=c.unremovable_circuits,I=c.removable_circuits;return(0,e.jsx)(v.qo,{width:600,height:380,children:(0,e.jsxs)(v.qo.Content,{scrollable:!0,children:[(0,e.jsx)(r.iG,{title:"Status",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Space in Assembly",children:(0,e.jsxs)(r.cH,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:h/l,maxValue:1,children:[h," / ",l," (",(0,s.kL)(h/l*100,1),"%)"]})}),(0,e.jsx)(r.Ce.Item,{label:"Complexity",children:(0,e.jsxs)(r.cH,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:d/p,maxValue:1,children:[d," / ",p," (",(0,s.kL)(d/p*100,1),"%)"]})}),(0,e.jsx)(r.Ce.Item,{label:"Cell Charge",children:C&&(0,e.jsxs)(r.cH,{ranges:{bad:[0,.25],average:[.5,.75],good:[.75,1]},value:C/y,maxValue:1,children:[C," / ",y," (",(0,s.kL)(C/y*100,1),"%)"]})||(0,e.jsx)(r.kv,{color:"bad",children:"No cell detected."})}),(0,e.jsx)(r.Ce.Item,{label:"Net Energy",children:b===0&&"0 W/s"||(0,e.jsx)(r.Gg,{value:b,format:function(_){return"-"+(0,o._s)(Math.abs(_))+"/s"}})})]})}),O.length&&(0,e.jsx)(x,{title:"Built-in Components",circuits:O})||null,I.length&&(0,e.jsx)(x,{title:"Removable Components",circuits:I})||null]})})},x=function(f){var u=(0,n.yy)().act,m=f.title,c=f.circuits;return(0,e.jsx)(r.iG,{title:m,children:(0,e.jsx)(r.Ce,{children:c.map(function(h){return(0,e.jsxs)(r.Ce.Item,{label:h.name,children:[(0,e.jsx)(r.q,{icon:"eye",onClick:function(){return u("open_circuit",{ref:h.ref})},children:"View"}),(0,e.jsx)(r.q,{icon:"eye",onClick:function(){return u("rename_circuit",{ref:h.ref})},children:"Rename"}),(0,e.jsx)(r.q,{icon:"eye",onClick:function(){return u("scan_circuit",{ref:h.ref})},children:"Debugger Scan"}),(0,e.jsx)(r.q,{icon:"eye",onClick:function(){return u("remove_circuit",{ref:h.ref})},children:"Remove"}),(0,e.jsx)(r.q,{icon:"eye",onClick:function(){return u("bottom_circuit",{ref:h.ref})},children:"Move to Bottom"})]},h.ref)})})})}},68464:function(M,j,t){"use strict";t.r(j),t.d(j,{ICCircuit:function(){return g}});var e=t(33496),s=t(49900),n=t(45280),r=t(68644),o=t(96060),v=t(76512),g=function(u){var m=(0,n.yy)(),c=m.act,h=m.data,l=h.name,d=h.desc,p=h.displayed_name,C=h.removable,y=h.complexity,b=h.power_draw_idle,O=h.power_draw_per_use,I=h.extended_desc,_=h.inputs,A=h.outputs,P=h.activators;return(0,e.jsx)(v.qo,{width:600,height:400,resizable:!0,title:p,children:(0,e.jsxs)(v.qo.Content,{scrollable:!0,children:[(0,e.jsxs)(r.iG,{title:"Stats",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.q,{onClick:function(){return c("rename")},children:"Rename"}),(0,e.jsx)(r.q,{onClick:function(){return c("scan")},children:"Scan with Device"}),(0,e.jsx)(r.q,{onClick:function(){return c("remove")},children:"Remove"})]}),children:[(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Complexity",children:y}),b&&(0,e.jsx)(r.Ce.Item,{label:"Power Draw (Idle)",children:(0,o._s)(b)})||null,O&&(0,e.jsx)(r.Ce.Item,{label:"Power Draw (Active)",children:(0,o._s)(O)})||null]}),I]}),(0,e.jsxs)(r.iG,{title:"Circuit",children:[(0,e.jsxs)(r.Cu,{textAlign:"center",spacing:1,children:[_.length&&(0,e.jsx)(r.Cu.Item,{grow:1,children:(0,e.jsx)(r.iG,{title:"Inputs",children:(0,e.jsx)(x,{list:_})})})||null,(0,e.jsx)(r.Cu.Item,{basis:_.length&&A.length?"33%":_.length||A.length?"45%":"100%",children:(0,e.jsx)(r.iG,{title:p,mb:1,children:(0,e.jsx)(r.kv,{children:d})})}),A.length&&(0,e.jsx)(r.Cu.Item,{grow:1,children:(0,e.jsx)(r.iG,{title:"Outputs",children:(0,e.jsx)(x,{list:A})})})||null]}),(0,e.jsx)(r.iG,{title:"Triggers",children:P.map(function(T){return(0,e.jsxs)(r.Ce.Item,{label:T.name,children:[(0,e.jsx)(r.q,{onClick:function(){return c("pin_name",{pin:T.ref})},children:T.pulse_out?"":""}),(0,e.jsx)(f,{pin:T})]},T.name)})})]})]})})},x=function(u){var m=(0,n.yy)().act,c=u.list;return c.map(function(h){return(0,e.jsxs)(r.kv,{children:[(0,e.jsxs)(r.q,{onClick:function(){return m("pin_name",{pin:h.ref})},children:[(0,s.Af)(h.type),": ",h.name]}),(0,e.jsx)(r.q,{onClick:function(){return m("pin_data",{pin:h.ref})},children:h.data}),(0,e.jsx)(f,{pin:h})]},h.ref)})},f=function(u){var m=(0,n.yy)().act,c=u.pin;return c.linked.map(function(h){return(0,e.jsxs)(r.kv,{inline:!0,children:[(0,e.jsx)(r.q,{onClick:function(){return m("pin_unwire",{pin:c.ref,link:h.ref})},children:h.name}),"@\xA0",(0,e.jsx)(r.q,{onClick:function(){return m("examine",{ref:h.holder_ref})},children:h.holder_name})]},h.ref)})}},86520:function(M,j,t){"use strict";t.r(j),t.d(j,{ICDetailer:function(){return v}});var e=t(33496),s=t(49900),n=t(45280),r=t(68644),o=t(76512),v=function(g){var x=(0,n.yy)(),f=x.act,u=x.data,m=u.detail_color,c=u.color_list;return(0,e.jsx)(o.qo,{width:420,height:254,children:(0,e.jsx)(o.qo.Content,{children:(0,e.jsx)(r.iG,{children:Object.keys(c).map(function(h,l){return(0,e.jsx)(r.q,{ml:0,mr:0,mb:-.4,mt:0,tooltip:(0,s.Yl)(h),tooltipPosition:l%6===5?"left":"right",height:"64px",width:"64px",onClick:function(){return f("change_color",{color:h})},style:c[h]===m?{border:"4px solid black","border-radius":0}:{"border-radius":0},backgroundColor:c[h]},h)})})})})}},20004:function(M,j,t){"use strict";t.r(j),t.d(j,{ICPrinter:function(){return v}});var e=t(33496),s=t(47392),n=t(45280),r=t(68644),o=t(76512),v=function(f){var u=(0,n.yy)(),m=u.act,c=u.data,h=c.metal,l=c.max_metal,d=c.metal_per_sheet,p=c.debug,C=c.upgraded,y=c.can_clone,b=c.assembly_to_clone,O=c.categories;return(0,e.jsx)(o.qo,{width:600,height:630,children:(0,e.jsxs)(o.qo.Content,{scrollable:!0,children:[(0,e.jsxs)(r.iG,{title:"Status",children:[(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Metal",children:(0,e.jsxs)(r.cH,{value:h,maxValue:l,children:[h/d," / ",l/d," sheets"]})}),(0,e.jsx)(r.Ce.Item,{label:"Circuits Available",children:C?"Advanced":"Regular"}),(0,e.jsx)(r.Ce.Item,{label:"Assembly Cloning",children:y?"Available":"Unavailable"})]}),(0,e.jsx)(r.kv,{mt:1,children:"Note: A red component name means that the printer must be upgraded to create that component."})]}),(0,e.jsx)(x,{})]})})},g=function(f,u){return!(!f.can_build||f.cost>u.metal)},x=function(f){var u=(0,n.yy)(),m=u.act,c=u.data,h=c.categories,l=c.debug,d=(0,n.ao)("categoryTarget",null),p=d[0],C=d[1],y=(0,s.IF)(function(b){return b.name===p})(h)[0];return(0,e.jsx)(r.iG,{title:"Circuits",children:(0,e.jsxs)(r.fT,{fill:!0,children:[(0,e.jsx)(r.fT.Item,{mr:2,children:(0,e.jsx)(r.kZ,{vertical:!0,children:(0,s.cp)(function(b){return b.name})(h).map(function(b){return(0,e.jsx)(r.kZ.Tab,{selected:p===b.name,onClick:function(){return C(b.name)},children:b.name},b.name)})})}),(0,e.jsx)(r.fT.Item,{children:y&&(0,e.jsx)(r.iG,{children:(0,e.jsx)(r.Ce,{children:(0,s.cp)(function(b){return b.name})(y.items).map(function(b){return(0,e.jsx)(r.Ce.Item,{label:b.name,labelColor:b.can_build?"good":"bad",buttons:(0,e.jsx)(r.q,{disabled:!g(b,c),icon:"print",onClick:function(){return m("build",{build:b.path})},children:"Print"}),children:b.desc},b.name)})})})||"No category selected."})]})})}},9292:function(M,j,t){"use strict";t.r(j),t.d(j,{IDCard:function(){return v}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=t(57353),v=function(g){var x=(0,s.yy)().data,f=x.registered_name,u=x.sex,m=x.species,c=x.age,h=x.assignment,l=x.fingerprint_hash,d=x.blood_type,p=x.dna_hash,C=x.photo_front,y=[{name:"Sex",val:u},{name:"Species",val:m},{name:"Age",val:c},{name:"Blood Type",val:d},{name:"Fingerprint",val:l},{name:"DNA Hash",val:p}];return(0,e.jsx)(r.qo,{width:470,height:250,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsxs)(n.iG,{children:[(0,e.jsxs)(n.Cu,{children:[(0,e.jsx)(n.Cu.Item,{basis:"25%",textAlign:"left",children:(0,e.jsx)(n.kv,{inline:!0,style:{width:"101px",height:"120px",overflow:"hidden",outline:"2px solid #4972a1"},children:C&&(0,e.jsx)("img",{src:C.substr(1,C.length-1),style:{width:"300px","margin-left":"-94px","-ms-interpolation-mode":"nearest-neighbor"}})||(0,e.jsx)(n.GW,{name:"user",size:8,ml:1.5,mt:2.5})})}),(0,e.jsx)(n.Cu.Item,{basis:0,grow:1,children:(0,e.jsx)(n.Ce,{children:y.map(function(b){return(0,e.jsx)(n.Ce.Item,{label:b.name,children:b.val},b.name)})})})]}),(0,e.jsxs)(n.Cu,{className:"IDCard__NamePlate",align:"center",justify:"space-around",children:[(0,e.jsx)(n.Cu.Item,{children:(0,e.jsx)(n.kv,{textAlign:"center",children:f})}),(0,e.jsx)(n.Cu.Item,{children:(0,e.jsx)(n.kv,{textAlign:"center",children:(0,e.jsx)(o.RankIcon,{rank:h})})}),(0,e.jsx)(n.Cu.Item,{children:(0,e.jsx)(n.kv,{textAlign:"center",children:h})})]})]})})})}},8816:function(M,j,t){"use strict";t.r(j),t.d(j,{IdentificationComputer:function(){return f},IdentificationComputerAccessModification:function(){return c},IdentificationComputerContent:function(){return u},IdentificationComputerPrinting:function(){return m},IdentificationComputerRegions:function(){return h}});var e=t(33496),s=t(47392),n=t(49900),r=t(69344),o=t(45280),v=t(68644),g=t(76512),x=t(94384),f=function(){return(0,e.jsx)(g.qo,{width:600,height:700,children:(0,e.jsx)(g.qo.Content,{children:(0,e.jsx)(u,{})})})},u=function(l){var d=(0,o.yy)(),p=d.act,C=d.data,y=l.ntos,b=C.mode,O=C.has_modify,I=C.printing,_=(0,e.jsx)(c,{ntos:y});return y&&!C.have_id_slot?_=(0,e.jsx)(x.CrewManifestContent,{}):I?_=(0,e.jsx)(m,{}):b===1&&(_=(0,e.jsx)(x.CrewManifestContent,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(v.kZ,{children:[(!y||!!C.have_id_slot)&&(0,e.jsx)(v.kZ.Tab,{icon:"home",selected:b===0,onClick:function(){return p("mode",{mode_target:0})},children:"Access Modification"}),(0,e.jsx)(v.kZ.Tab,{icon:"home",selected:b===1,onClick:function(){return p("mode",{mode_target:1})},children:"Crew Manifest"}),!y||!!C.have_printer&&(0,e.jsx)(v.kZ.Tab,{float:"right",icon:"print",onClick:function(){return p("print")},disabled:!b&&!O,color:"",children:"Print"})]}),_]})},m=function(l){return(0,e.jsx)(v.iG,{title:"Printing",children:"Please wait..."})},c=function(l){var d=(0,o.yy)(),p=d.act,C=d.data,y=l.ntos,b=C.station_name,O=C.target_name,I=C.target_owner,_=C.scan_name,A=C.authenticated,P=C.has_modify,T=C.account_number,R=C.centcom_access,L=C.all_centcom_access,N=C.regions,U=C.id_rank,V=C.departments;return(0,e.jsxs)(v.iG,{title:"Access Modification",children:[!A&&(0,e.jsx)(v.kv,{italic:!0,mb:1,children:"Please insert the IDs into the terminal to proceed."}),(0,e.jsxs)(v.Ce,{children:[(0,e.jsx)(v.Ce.Item,{label:"Target Identitity",children:(0,e.jsx)(v.q,{icon:"eject",fluid:!0,content:O,onClick:function(){return p("modify")}})}),!y&&(0,e.jsx)(v.Ce.Item,{label:"Authorized Identitity",children:(0,e.jsx)(v.q,{icon:"eject",fluid:!0,content:_,onClick:function(){return p("scan")}})})]}),!!A&&!!P&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(v.iG,{title:"Details",level:2,children:(0,e.jsxs)(v.Ce,{children:[(0,e.jsx)(v.Ce.Item,{label:"Registered Name",children:(0,e.jsx)(v.EF,{value:I,fluid:!0,onInput:function(z,Q){return p("reg",{reg:Q})}})}),(0,e.jsx)(v.Ce.Item,{label:"Account Number",children:(0,e.jsx)(v.EF,{value:T,fluid:!0,onInput:function(z,Q){return p("account",{account:Q})}})}),(0,e.jsx)(v.Ce.Item,{label:"Dismissals",children:(0,e.jsx)(v.q.Confirm,{color:"bad",icon:"exclamation-triangle",confirmIcon:"fire",fluid:!0,content:"Dismiss "+I,confirmContent:"You are dismissing "+I+", confirm?",onClick:function(){return p("terminate")}})})]})}),(0,e.jsx)(v.iG,{title:"Assignment",level:2,children:(0,e.jsxs)(v.oJ,{children:[V.map(function(z){return(0,e.jsxs)(r.Fragment,{children:[(0,e.jsxs)(v.oJ.Row,{children:[(0,e.jsx)(v.oJ.Cell,{header:!0,verticalAlign:"middle",children:z.department_name}),(0,e.jsx)(v.oJ.Cell,{children:z.jobs.map(function(Q){return(0,e.jsx)(v.q,{selected:Q.job===U,onClick:function(){return p("assign",{assign_target:Q.job})},children:(0,n.Af)(Q.display_name)},Q.job)})})]}),(0,e.jsx)(v.kv,{mt:-1,children:"\xA0"})," "]},z.department_name)}),(0,e.jsxs)(v.oJ.Row,{children:[(0,e.jsx)(v.oJ.Cell,{header:!0,verticalAlign:"middle",children:"Special"}),(0,e.jsx)(v.oJ.Cell,{children:(0,e.jsx)(v.q,{onClick:function(){return p("assign",{assign_target:"Custom"})},children:"Custom"})})]})]})}),!!R&&(0,e.jsx)(v.iG,{title:"Central Command",level:2,children:L.map(function(z){return(0,e.jsx)(v.kv,{children:(0,e.jsx)(v.q,{fluid:!0,selected:z.allowed,onClick:function(){return p("access",{access_target:z.ref,allowed:z.allowed})},children:(0,n.Af)(z.desc)})},z.ref)})})||(0,e.jsx)(v.iG,{title:b,level:2,children:(0,e.jsx)(h,{actName:"access"})})]})]})},h=function(l){var d=(0,o.yy)(),p=d.act,C=d.data,y=l.actName,b=C.regions;return(0,e.jsx)(v.Cu,{wrap:"wrap",spacing:1,children:(0,s.cp)(function(O){return O.name})(b).map(function(O){return(0,e.jsx)(v.Cu.Item,{mb:1,basis:"content",grow:1,children:(0,e.jsx)(v.iG,{title:O.name,height:"100%",children:(0,s.cp)(function(I){return I.desc})(O.accesses).map(function(I){return(0,e.jsx)(v.kv,{children:(0,e.jsx)(v.q,{fluid:!0,selected:I.allowed,onClick:function(){return p(y,{access_target:I.ref,allowed:I.allowed})},children:(0,n.Af)(I.desc)})},I.ref)})})},O.name)})})}},59100:function(M,j,t){"use strict";t.r(j),t.d(j,{InventoryPanel:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.slots,m=f.internalsValid;return(0,e.jsx)(r.qo,{width:400,height:200,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsx)(n.iG,{children:(0,e.jsx)(n.Ce,{children:u&&u.length&&u.map(function(c){return(0,e.jsx)(n.Ce.Item,{label:c.name,children:(0,e.jsx)(n.q,{mb:-1,icon:c.item?"hand-paper":"gift",onClick:function(){return x(c.act)},children:c.item||"Nothing"})},c.name)})})}),m&&(0,e.jsx)(n.iG,{title:"Actions",children:m&&(0,e.jsx)(n.q,{fluid:!0,icon:"lungs",onClick:function(){return x("internals")},children:"Set Internals"})||null})||null]})})}},18880:function(M,j,t){"use strict";t.r(j),t.d(j,{InventoryPanelHuman:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.slots,m=f.specialSlots,c=f.internals,h=f.internalsValid,l=f.sensors,d=f.handcuffed,p=f.handcuffedParams,C=f.legcuffed,y=f.legcuffedParams,b=f.accessory;return(0,e.jsx)(r.qo,{width:400,height:600,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsx)(n.iG,{children:(0,e.jsxs)(n.Ce,{children:[u&&u.length&&u.map(function(O){return(0,e.jsx)(n.Ce.Item,{label:O.name,children:(0,e.jsx)(n.q,{mb:-1,icon:O.item?"hand-paper":"gift",onClick:function(){return x(O.act,O.params)},children:O.item||"Nothing"})},O.name)}),(0,e.jsx)(n.Ce.Divider,{}),m&&m.length&&m.map(function(O){return(0,e.jsx)(n.Ce.Item,{label:O.name,children:(0,e.jsx)(n.q,{mb:-1,icon:O.item?"hand-paper":"gift",onClick:function(){return x(O.act,O.params)},children:O.item||"Nothing"})},O.name)})]})}),(0,e.jsxs)(n.iG,{title:"Actions",children:[(0,e.jsx)(n.q,{fluid:!0,icon:"running",onClick:function(){return x("targetSlot",{slot:"splints"})},children:"Remove Splints"}),(0,e.jsx)(n.q,{fluid:!0,icon:"hand-paper",onClick:function(){return x("targetSlot",{slot:"pockets"})},children:"Empty Pockets"}),h&&(0,e.jsx)(n.q,{fluid:!0,icon:"lungs",onClick:function(){return x("targetSlot",{slot:"internals"})},children:"Set Internals"})||null,l&&(0,e.jsx)(n.q,{fluid:!0,icon:"book-medical",onClick:function(){return x("targetSlot",{slot:"sensors"})},children:"Set Sensors"})||null,d&&(0,e.jsx)(n.q,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return x("targetSlot",p)},children:"Handcuffed"})||null,C&&(0,e.jsx)(n.q,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return x("targetSlot",y)},children:"Legcuffed"})||null,b&&(0,e.jsx)(n.q,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return x("targetSlot",{slot:"tie"})},children:"Remove Accessory"})||null]})]})})}},25028:function(M,j,t){"use strict";t.r(j),t.d(j,{IsolationCentrifuge:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.busy,m=f.antibodies,c=f.pathogens,h=f.is_antibody_sample,l=f.sample_inserted,d=(0,e.jsx)(n.kv,{color:"average",children:"No vial detected."});return l&&(!m&&!c?d=(0,e.jsx)(n.kv,{color:"average",children:"No antibodies or viral strains detected."}):d=(0,e.jsxs)(e.Fragment,{children:[m?(0,e.jsx)(n.iG,{title:"Antibodies",children:m}):null,c.length?(0,e.jsx)(n.iG,{title:"Pathogens",children:(0,e.jsx)(n.Ce,{children:c.map(function(p){return(0,e.jsx)(n.Ce.Item,{label:p.name,children:p.spread_type},p.name)})})}):null]})),(0,e.jsx)(r.qo,{width:400,height:500,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:u?(0,e.jsx)(n.iG,{title:"The Centrifuge is currently busy.",color:"bad",children:(0,e.jsx)("center",{children:(0,e.jsx)(n.kv,{color:"bad",children:u})})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.iG,{title:h?"Antibody Sample":"Blood Sample",children:[(0,e.jsxs)(n.Cu,{spacing:1,mb:1,children:[(0,e.jsx)(n.Cu.Item,{grow:1,children:(0,e.jsx)(n.q,{fluid:!0,icon:"print",content:"Print",disabled:!m&&!c.length,onClick:function(){return x("print")}})}),(0,e.jsx)(n.Cu.Item,{grow:1,children:(0,e.jsx)(n.q,{fluid:!0,icon:"eject",content:"Eject Vial",disabled:!l,onClick:function(){return x("sample")}})})]}),d]}),m&&!h||c.length?(0,e.jsx)(n.iG,{title:"Controls",children:(0,e.jsxs)(n.Ce,{children:[m&&!h?(0,e.jsx)(n.Ce.Item,{label:"Isolate Antibodies",children:(0,e.jsx)(n.q,{icon:"pen",content:m,onClick:function(){return x("antibody")}})}):null,c.length?(0,e.jsx)(n.Ce.Item,{label:"Isolate Strain",children:c.map(function(p){return(0,e.jsx)(n.q,{icon:"pen",content:p.name,onClick:function(){return x("isolate",{isolate:p.reference})}},p.name)})}):null]})}):null]})})})}},24248:function(M,j,t){"use strict";t.r(j),t.d(j,{JanitorCart:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(x){var f=(0,s.yy)(),u=f.act,m=f.data,c=m.mybag,h=m.mybucket,l=m.mymop,d=m.myspray,p=m.myreplacer,C=m.signs,y=m.icons;return(0,e.jsx)(r.qo,{width:210,height:180,children:(0,e.jsxs)(r.qo.Content,{children:[(0,e.jsx)(n.q,{width:"64px",height:"64px",position:"relative",tooltip:c||"Garbage Bag Slot",tooltipPosition:"bottom-end",color:c?"grey":"transparent",style:{border:c?null:"2px solid grey"},onClick:function(){return u("bag")},children:(0,e.jsx)(g,{iconkey:"mybag"})}),(0,e.jsx)(n.q,{width:"64px",height:"64px",position:"relative",tooltip:h||"Bucket Slot",tooltipPosition:"bottom",color:h?"grey":"transparent",style:{border:h?null:"2px solid grey"},onClick:function(){return u("bucket")},children:(0,e.jsx)(g,{iconkey:"mybucket"})}),(0,e.jsx)(n.q,{width:"64px",height:"64px",position:"relative",tooltip:l||"Mop Slot",tooltipPosition:"bottom-end",color:l?"grey":"transparent",style:{border:l?null:"2px solid grey"},onClick:function(){return u("mop")},children:(0,e.jsx)(g,{iconkey:"mymop"})}),(0,e.jsx)(n.q,{width:"64px",height:"64px",position:"relative",tooltip:d||"Spray Slot",tooltipPosition:"top-end",color:d?"grey":"transparent",style:{border:d?null:"2px solid grey"},onClick:function(){return u("spray")},children:(0,e.jsx)(g,{iconkey:"myspray"})}),(0,e.jsx)(n.q,{width:"64px",height:"64px",position:"relative",tooltip:p||"Light Replacer Slot",tooltipPosition:"top",color:p?"grey":"transparent",style:{border:p?null:"2px solid grey"},onClick:function(){return u("replacer")},children:(0,e.jsx)(g,{iconkey:"myreplacer"})}),(0,e.jsx)(n.q,{width:"64px",height:"64px",position:"relative",tooltip:C||"Signs Slot",tooltipPosition:"top-start",color:C?"grey":"transparent",style:{border:C?null:"2px solid grey"},onClick:function(){return u("sign")},children:(0,e.jsx)(g,{iconkey:"signs"})})]})})},v={mybag:"trash",mybucket:"fill",mymop:"broom",myspray:"spray-can",myreplacer:"lightbulb",signs:"sign"},g=function(x){var f=(0,s.yy)().data,u=x.iconkey,m=f.icons;return u in m?(0,e.jsx)("img",{src:m[u].substr(1,m[u].length-1),style:{position:"absolute",left:0,right:0,top:0,bottom:0,width:"64px",height:"64px","-ms-interpolation-mode":"nearest-neighbor"}}):(0,e.jsx)(n.GW,{style:{position:"absolute",left:"4px",right:0,top:"20px",bottom:0,width:"64px",height:"64px"},fontSize:2,name:v[u]})}},59904:function(M,j,t){"use strict";t.r(j),t.d(j,{Jukebox:function(){return v}});var e=t(33496),s=t(10608),n=t(45280),r=t(68644),o=t(76512),v=function(g){var x=(0,n.yy)(),f=x.act,u=x.data,m=u.playing,c=u.loop_mode,h=u.volume,l=u.current_track_ref,d=u.current_track,p=u.current_genre,C=u.percent,y=u.tracks,b=y.length&&y.reduce(function(I,_){var A=_.genre||"Uncategorized";return I[A]||(I[A]=[]),I[A].push(_),I},{}),O=m&&(p||"Uncategorized");return(0,e.jsx)(o.qo,{width:450,height:600,children:(0,e.jsxs)(o.qo.Content,{scrollable:!0,children:[(0,e.jsx)(r.iG,{title:"Currently Playing",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Title",children:m&&d&&(0,e.jsxs)(r.kv,{children:[d.title," by ",d.artist||"Unkown"]})||(0,e.jsx)(r.kv,{children:"Stopped"})}),(0,e.jsxs)(r.Ce.Item,{label:"Controls",children:[(0,e.jsx)(r.q,{icon:"play",disabled:m,onClick:function(){return f("play")},children:"Play"}),(0,e.jsx)(r.q,{icon:"stop",disabled:!m,onClick:function(){return f("stop")},children:"Stop"})]}),(0,e.jsxs)(r.Ce.Item,{label:"Loop Mode",children:[(0,e.jsx)(r.q,{icon:"play",onClick:function(){return f("loopmode",{loopmode:1})},selected:c===1,children:"Next"}),(0,e.jsx)(r.q,{icon:"random",onClick:function(){return f("loopmode",{loopmode:2})},selected:c===2,children:"Shuffle"}),(0,e.jsx)(r.q,{icon:"redo",onClick:function(){return f("loopmode",{loopmode:3})},selected:c===3,children:"Repeat"}),(0,e.jsx)(r.q,{icon:"step-forward",onClick:function(){return f("loopmode",{loopmode:4})},selected:c===4,children:"Once"})]}),(0,e.jsx)(r.Ce.Item,{label:"Progress",children:(0,e.jsx)(r.cH,{value:C,maxValue:1,color:"good"})}),(0,e.jsx)(r.Ce.Item,{label:"Volume",children:(0,e.jsx)(r.uQ,{minValue:0,step:1,value:h*100,maxValue:100,ranges:{good:[75,1/0],average:[25,75],bad:[0,25]},format:function(I){return(0,s.kL)(I,1)+"%"},onChange:function(I,_){return f("volume",{val:(0,s.kL)(_/100,2)})}})})]})}),(0,e.jsx)(r.iG,{title:"Available Tracks",children:y.length&&Object.keys(b).sort().map(function(I){return(0,e.jsx)(r.Uv,{title:I,color:O===I?"green":"default",child_mt:0,children:(0,e.jsx)("div",{style:{"margin-left":"1em"},children:b[I].map(function(_){return(0,e.jsx)(r.q,{fluid:!0,icon:"play",selected:l===_.ref,onClick:function(){return f("change_track",{change_track:_.ref})},children:_.title},_.ref)})})},I)})||(0,e.jsx)(r.kv,{color:"bad",children:"Error: No songs loaded."})})]})})}},85176:function(M,j,t){"use strict";t.r(j),t.d(j,{LawManager:function(){return g}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512);function o(){return o=Object.assign||function(c){for(var h=1;h=0)&&(l[p]=c[p]);return l}var g=function(c){var h=(0,s.yy)(),l=h.act,d=h.data,p=d.isSlaved;return(0,e.jsx)(r.qo,{width:800,height:600,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[p&&(0,e.jsxs)(n.yc,{info:!0,children:["Law-synced to ",p]})||null,(0,e.jsx)(x,{})]})})},x=function(c){var h=(0,s.ao)("lawsTabIndex",0),l=h[0],d=h[1];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.kZ,{children:[(0,e.jsx)(n.kZ.Tab,{selected:l===0,onClick:function(){return d(0)},children:"Law Management"}),(0,e.jsx)(n.kZ.Tab,{selected:l===1,onClick:function(){return d(1)},children:"Law Sets"})]}),l===0&&(0,e.jsx)(f,{})||null,l===1&&(0,e.jsx)(m,{})||null]})},f=function(c){var h=(0,s.yy)(),l=h.act,d=h.data,p=d.ion_law_nr,C=d.ion_law,y=d.zeroth_law,b=d.inherent_law,O=d.supplied_law,I=d.supplied_law_position,_=d.zeroth_laws,A=d.has_zeroth_laws,P=d.ion_laws,T=d.has_ion_laws,R=d.inherent_laws,L=d.has_inherent_laws,N=d.supplied_laws,U=d.has_supplied_laws,V=d.isAI,z=d.isMalf,Q=d.isAdmin,H=d.channel,q=d.channels,Z=_.map(function($){return $.zero=!0,$}).concat(R);return(0,e.jsxs)(n.iG,{children:[T&&(0,e.jsx)(u,{laws:P,title:p+" Laws:",mt:-2})||null,(A||L)&&(0,e.jsx)(u,{laws:Z,title:"Inherent Laws",mt:-2})||null,U&&(0,e.jsx)(u,{laws:N,title:"Supplied Laws",mt:-2})||null,(0,e.jsx)(n.iG,{level:2,title:"Controls",mt:-2,children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Statement Channel",children:q.map(function($){return(0,e.jsx)(n.q,{content:$.channel,selected:H===$.channel,onClick:function(){return l("law_channel",{law_channel:$.channel})}},$.channel)})}),(0,e.jsx)(n.Ce.Item,{label:"State Laws",children:(0,e.jsx)(n.q,{icon:"volume-up",onClick:function(){return l("state_laws")},children:"State Laws"})}),V&&(0,e.jsx)(n.Ce.Item,{label:"Law Notification",children:(0,e.jsx)(n.q,{icon:"exclamation",onClick:function(){return l("notify_laws")},children:"Notify"})})||null]})}),z&&(0,e.jsx)(n.iG,{level:2,title:"Add Laws",mt:-2,children:(0,e.jsxs)(n.oJ,{children:[(0,e.jsxs)(n.oJ.Row,{header:!0,children:[(0,e.jsx)(n.oJ.Cell,{collapsing:!0,children:"Type"}),(0,e.jsx)(n.oJ.Cell,{children:"Law"}),(0,e.jsx)(n.oJ.Cell,{collapsing:!0,children:"Index"}),(0,e.jsx)(n.oJ.Cell,{collapsing:!0,children:"Add"})]}),Q&&!A&&(0,e.jsxs)(n.oJ.Row,{children:[(0,e.jsx)(n.oJ.Cell,{collapsing:!0,children:"Zero"}),(0,e.jsx)(n.oJ.Cell,{children:(0,e.jsx)(n.EF,{value:y,fluid:!0,onChange:function($,G){return l("change_zeroth_law",{val:G})}})}),(0,e.jsx)(n.oJ.Cell,{children:"N/A"}),(0,e.jsx)(n.oJ.Cell,{collapsing:!0,children:(0,e.jsx)(n.q,{icon:"plus",onClick:function(){return l("add_zeroth_law")},children:"Add"})})]})||null,(0,e.jsxs)(n.oJ.Row,{children:[(0,e.jsx)(n.oJ.Cell,{collapsing:!0,children:"Ion"}),(0,e.jsx)(n.oJ.Cell,{children:(0,e.jsx)(n.EF,{value:C,fluid:!0,onChange:function($,G){return l("change_ion_law",{val:G})}})}),(0,e.jsx)(n.oJ.Cell,{children:"N/A"}),(0,e.jsx)(n.oJ.Cell,{collapsing:!0,children:(0,e.jsx)(n.q,{icon:"plus",onClick:function(){return l("add_ion_law")},children:"Add"})})]}),(0,e.jsxs)(n.oJ.Row,{children:[(0,e.jsx)(n.oJ.Cell,{children:"Inherent"}),(0,e.jsx)(n.oJ.Cell,{children:(0,e.jsx)(n.EF,{value:b,fluid:!0,onChange:function($,G){return l("change_inherent_law",{val:G})}})}),(0,e.jsx)(n.oJ.Cell,{children:"N/A"}),(0,e.jsx)(n.oJ.Cell,{children:(0,e.jsx)(n.q,{icon:"plus",onClick:function(){return l("add_inherent_law")},children:"Add"})})]}),(0,e.jsxs)(n.oJ.Row,{children:[(0,e.jsx)(n.oJ.Cell,{children:"Supplied"}),(0,e.jsx)(n.oJ.Cell,{children:(0,e.jsx)(n.EF,{value:O,fluid:!0,onChange:function($,G){return l("change_supplied_law",{val:G})}})}),(0,e.jsx)(n.oJ.Cell,{children:(0,e.jsx)(n.q,{icon:"pen",onClick:function(){return l("change_supplied_law_position")},children:I})}),(0,e.jsx)(n.oJ.Cell,{children:(0,e.jsx)(n.q,{icon:"plus",onClick:function(){return l("add_supplied_law")},children:"Add"})})]})]})})||null]})},u=function(c){var h=(0,s.yy)(),l=h.act,d=h.data,p=d.isMalf,C=d.isAdmin,y=c.laws,b=c.title,O=c.noButtons,I=v(c,["laws","title","noButtons"]);return(0,e.jsx)(n.iG,o({level:2,title:b},I,{children:(0,e.jsxs)(n.oJ,{children:[(0,e.jsxs)(n.oJ.Row,{header:!0,children:[(0,e.jsx)(n.oJ.Cell,{collapsing:!0,children:"Index"}),(0,e.jsx)(n.oJ.Cell,{children:"Law"}),!O&&(0,e.jsx)(n.oJ.Cell,{collapsing:!0,children:"State"})||null,p&&!O&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.oJ.Cell,{collapsing:!0,children:"Edit"}),(0,e.jsx)(n.oJ.Cell,{collapsing:!0,children:"Delete"})]})||null]}),y.map(function(_){return(0,e.jsxs)(n.oJ.Row,{children:[(0,e.jsxs)(n.oJ.Cell,{collapsing:!0,children:[_.index,"."]}),(0,e.jsx)(n.oJ.Cell,{color:_.zero?"bad":null,children:_.law}),!O&&(0,e.jsx)(n.oJ.Cell,{collapsing:!0,children:(0,e.jsx)(n.q,{fluid:!0,icon:"volume-up",selected:_.state,onClick:function(){return l("state_law",{ref:_.ref,state_law:!_.state})},children:_.state?"Yes":"No"})})||null,p&&!O&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.oJ.Cell,{collapsing:!0,children:(0,e.jsx)(n.q,{disabled:_.zero&&!C,icon:"pen",onClick:function(){return l("edit_law",{edit_law:_.ref})},children:"Edit"})}),(0,e.jsx)(n.oJ.Cell,{collapsing:!0,children:(0,e.jsx)(n.q,{disabled:_.zero&&!C,color:"bad",icon:"trash",onClick:function(){return l("delete_law",{delete_law:_.ref})},children:"Delete"})})]})||null]},_.index)})]})}))},m=function(c){var h=(0,s.yy)(),l=h.act,d=h.data,p=d.isMalf,C=d.law_sets;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.yc,{children:"Remember: Stating laws other than those currently loaded may be grounds for decommissioning! - NanoTrasen"}),C.length&&C.map(function(y){return(0,e.jsxs)(n.iG,{title:y.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.q,{disabled:!p,icon:"sync",onClick:function(){return l("transfer_laws",{transfer_laws:y.ref})},children:"Load Laws"}),(0,e.jsx)(n.q,{icon:"volume-up",onClick:function(){return l("state_law_set",{state_law_set:y.ref})},children:"State Laws"})]}),children:[y.laws.has_ion_laws&&(0,e.jsx)(u,{noButtons:!0,laws:y.laws.ion_laws,title:y.laws.ion_law_nr+" Laws:"})||null,(y.laws.has_zeroth_laws||y.laws.has_inherent_laws)&&(0,e.jsx)(u,{noButtons:!0,laws:y.laws.zeroth_laws.concat(y.laws.inherent_laws),title:y.header})||null,y.laws.has_supplied_laws&&(0,e.jsx)(u,{noButtons:!0,laws:y.laws.supplied_laws,title:"Supplied Laws"})||null]},y.name)})||null]})}},76192:function(M,j,t){"use strict";t.r(j),t.d(j,{ListInputModal:function(){return f}});var e=t(33496),s=t(69344),n=t(42480),r=t(45280),o=t(68644),v=t(76512),g=t(14820),x=t(26896),f=function(c){var h=(0,r.yy)(),l=h.act,d=h.data,p=d.items,C=p===void 0?[]:p,y=d.message,b=y===void 0?"":y,O=d.init_value,I=d.large_buttons,_=d.timeout,A=d.title,P=(0,s.useState)(C.indexOf(O)),T=P[0],R=P[1],L=(0,s.useState)(C.length>9),N=L[0],U=L[1],V=(0,s.useState)(""),z=V[0],Q=V[1],H=function(re){var le=ee.length-1;if(re===n.Mx)if(T===null||T===le){var se;R(0),(se=document.getElementById("0"))==null||se.scrollIntoView()}else{var fe;R(T+1),(fe=document.getElementById((T+1).toString()))==null||fe.scrollIntoView()}else if(re===n.UD)if(T===null||T===0){var de;R(le),(de=document.getElementById(le.toString()))==null||de.scrollIntoView()}else{var he;R(T-1),(he=document.getElementById((T-1).toString()))==null||he.scrollIntoView()}},q=function(re){re!==T&&R(re)},Z=function(){U(!1),U(!0)},$=function(re){var le=String.fromCharCode(re),se=C.find(function(he){return he==null?void 0:he.toLowerCase().startsWith(le==null?void 0:le.toLowerCase())});if(se){var fe,de=C.indexOf(se);R(de),(fe=document.getElementById(de.toString()))==null||fe.scrollIntoView()}},G=function(re){var le;re!==z&&(Q(re),R(0),(le=document.getElementById("0"))==null||le.scrollIntoView())},Y=function(){U(!N),Q("")},ee=C.filter(function(re){return re==null?void 0:re.toLowerCase().includes(z.toLowerCase())}),ae=325+Math.ceil(b.length/3)+(I?5:0);return N||setTimeout(function(){var re;return(re=document.getElementById(T.toString()))==null?void 0:re.focus()},1),(0,e.jsxs)(v.qo,{title:A,width:325,height:ae,children:[_&&(0,e.jsx)(x.Loader,{value:_}),(0,e.jsx)(v.qo.Content,{onKeyDown:function(re){var le=window.event?re.which:re.keyCode;(le===n.Mx||le===n.UD)&&(re.preventDefault(),H(le)),le===n.kt&&(re.preventDefault(),l("submit",{entry:ee[T]})),!N&&le>=n.mE&&le<=n.gf&&(re.preventDefault(),$(le)),le===n.ER&&(re.preventDefault(),l("cancel"))},children:(0,e.jsx)(o.iG,{buttons:(0,e.jsx)(o.q,{compact:!0,icon:N?"search":"font",selected:!0,tooltip:N?"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 Y()}}),className:"ListInput__Section",fill:!0,title:b,children:(0,e.jsxs)(o.fT,{fill:!0,vertical:!0,children:[(0,e.jsx)(o.fT.Item,{grow:!0,children:(0,e.jsx)(u,{filteredItems:ee,onClick:q,onFocusSearch:Z,searchBarVisible:N,selected:T})}),N&&(0,e.jsx)(m,{filteredItems:ee,onSearch:G,searchQuery:z,selected:T}),(0,e.jsx)(o.fT.Item,{children:(0,e.jsx)(g.InputButtons,{input:ee[T]})})]})})})]})},u=function(c){var h=(0,r.yy)().act,l=c.filteredItems,d=c.onClick,p=c.onFocusSearch,C=c.searchBarVisible,y=c.selected;return(0,e.jsxs)(o.iG,{fill:!0,scrollable:!0,children:[(0,e.jsx)(o.bH,{}),l.map(function(b,O){return(0,e.jsx)(o.q,{color:"transparent",fluid:!0,onClick:function(){return d(O)},onDoubleClick:function(I){I.preventDefault(),h("submit",{entry:l[y]})},onKeyDown:function(I){var _=window.event?I.which:I.keyCode;C&&_>=n.mE&&_<=n.gf&&(I.preventDefault(),p())},selected:O===y,style:{animation:"none",transition:"none"},children:b.replace(/^\w/,function(I){return I.toUpperCase()})},O)})]})},m=function(c){var h=(0,r.yy)().act,l=c.filteredItems,d=c.onSearch,p=c.searchQuery,C=c.selected;return(0,e.jsx)(o.EF,{autoFocus:!0,autoSelect:!0,fluid:!0,onEnter:function(y){y.preventDefault(),h("submit",{entry:l[C]})},onInput:function(y,b){return d(b)},placeholder:"Search...",value:p})}},44568:function(M,j,t){"use strict";t.r(j),t.d(j,{LookingGlass:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.supportedPrograms,m=f.currentProgram,c=f.immersion,h=f.gravity,l=Math.min(180+u.length*23,600);return(0,e.jsx)(r.qo,{width:300,height:l,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsx)(n.iG,{title:"Programs",children:u.map(function(d){return(0,e.jsx)(n.q,{fluid:!0,icon:"eye",selected:d===m,onClick:function(){return x("program",{program:d})},children:d},d)})}),(0,e.jsx)(n.iG,{title:"Controls",children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Gravity",children:(0,e.jsx)(n.q,{fluid:!0,icon:"user-astronaut",selected:h,onClick:function(){return x("gravity")},children:h?"Enabled":"Disabled"})}),(0,e.jsx)(n.Ce.Item,{label:"Full Immersion",children:(0,e.jsx)(n.q,{mt:-1,fluid:!0,icon:"eye",selected:c,onClick:function(){return x("immersion")},children:c?"Enabled":"Disabled"})})]})})]})})}},23944:function(M,j,t){"use strict";t.r(j),t.d(j,{MechaControlConsole:function(){return v}});var e=t(33496),s=t(49900),n=t(45280),r=t(68644),o=t(76512),v=function(g){var x=(0,n.yy)(),f=x.act,u=x.data,m=u.beacons,c=u.stored_data;return(0,e.jsx)(o.qo,{width:600,height:600,children:(0,e.jsxs)(o.qo.Content,{scrollable:!0,children:[c.length&&(0,e.jsx)(r.wJ,{children:(0,e.jsx)(r.iG,{height:"400px",style:{"overflow-y":"auto"},title:"Log",buttons:(0,e.jsx)(r.q,{icon:"window-close",onClick:function(){return f("clear_log")}}),children:c.map(function(h){return(0,e.jsxs)(r.kv,{children:[(0,e.jsxs)(r.kv,{color:"label",children:["(",h.time,") (",h.year,")"]}),(0,e.jsx)(r.kv,{children:(0,s.Af)(h.message)})]},h.time)})})})||null,m.length&&m.map(function(h){return(0,e.jsx)(r.iG,{title:h.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.q,{icon:"comment",onClick:function(){return f("send_message",{mt:h.ref})},children:"Message"}),(0,e.jsx)(r.q,{icon:"eye",onClick:function(){return f("get_log",{mt:h.ref})},children:"View Log"}),(0,e.jsx)(r.q.Confirm,{color:"red",content:"EMP",icon:"bomb",onClick:function(){return f("shock",{mt:h.ref})}})]}),children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Health",children:(0,e.jsx)(r.cH,{ranges:{good:[h.maxHealth*.75,1/0],average:[h.maxHealth*.5,h.maxHealth*.75],bad:[-1/0,h.maxHealth*.5]},value:h.health,maxValue:h.maxHealth})}),(0,e.jsx)(r.Ce.Item,{label:"Cell Charge",children:h.cell&&(0,e.jsx)(r.cH,{ranges:{good:[h.cellMaxCharge*.75,1/0],average:[h.cellMaxCharge*.5,h.cellMaxCharge*.75],bad:[-1/0,h.cellMaxCharge*.5]},value:h.cellCharge,maxValue:h.cellMaxCharge})||(0,e.jsx)(r.yc,{children:"No Cell Installed"})}),(0,e.jsxs)(r.Ce.Item,{label:"Air Tank",children:[h.airtank,"kPa"]}),(0,e.jsx)(r.Ce.Item,{label:"Pilot",children:h.pilot||"Unoccupied"}),(0,e.jsx)(r.Ce.Item,{label:"Location",children:(0,s.Yl)(h.location)||"Unknown"}),(0,e.jsx)(r.Ce.Item,{label:"Active Equipment",children:h.active||"None"}),h.cargoMax&&(0,e.jsx)(r.Ce.Item,{label:"Cargo Space",children:(0,e.jsx)(r.cH,{ranges:{bad:[h.cargoMax*.75,1/0],average:[h.cargoMax*.5,h.cargoMax*.75],good:[-1/0,h.cargoMax*.5]},value:h.cargoUsed,maxValue:h.cargoMax})})||null]})},h.name)})||(0,e.jsx)(r.yc,{children:"No mecha beacons found."})]})})}},59916:function(M,j,t){"use strict";t.r(j),t.d(j,{Medbot:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.on,m=f.open,c=f.beaker,h=f.beaker_total,l=f.beaker_max,d=f.locked,p=f.heal_threshold,C=f.heal_threshold_max,y=f.injection_amount_min,b=f.injection_amount,O=f.injection_amount_max,I=f.use_beaker,_=f.declare_treatment,A=f.vocal;return(0,e.jsx)(r.qo,{width:400,height:600,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsx)(n.iG,{title:"Automatic Medical Unit v2.0",buttons:(0,e.jsx)(n.q,{icon:"power-off",selected:u,onClick:function(){return x("power")},children:u?"On":"Off"}),children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Maintenance Panel",color:m?"bad":"good",children:m?"Open":"Closed"}),(0,e.jsx)(n.Ce.Item,{label:"Beaker",buttons:(0,e.jsx)(n.q,{disabled:!c,icon:"eject",onClick:function(){return x("eject")},children:"Eject"}),children:c&&(0,e.jsxs)(n.cH,{value:h,maxValue:l,children:[h," / ",l]})||(0,e.jsx)(n.kv,{color:"average",children:"No beaker loaded."})}),(0,e.jsx)(n.Ce.Item,{label:"Behavior Controls",color:d?"good":"bad",children:d?"Locked":"Unlocked"})]})}),!d&&(0,e.jsx)(n.iG,{title:"Behavioral Controls",children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Healing Threshold",children:(0,e.jsx)(n.Ef,{fluid:!0,minValue:0,maxValue:C,value:p,onDrag:function(P,T){return x("adj_threshold",{val:T})}})}),(0,e.jsx)(n.Ce.Item,{label:"Injection Amount",children:(0,e.jsx)(n.Ef,{fluid:!0,minValue:y,maxValue:O,value:b,onDrag:function(P,T){return x("adj_inject",{val:T})}})}),(0,e.jsx)(n.Ce.Item,{label:"Reagent Source",children:(0,e.jsx)(n.q,{fluid:!0,icon:I?"toggle-on":"toggle-off",selected:I,onClick:function(){return x("use_beaker")},children:I?"Loaded Beaker (When available)":"Internal Synthesizer"})}),(0,e.jsx)(n.Ce.Item,{label:"Treatment Report",children:(0,e.jsx)(n.q,{fluid:!0,icon:_?"toggle-on":"toggle-off",selected:_,onClick:function(){return x("declaretreatment")},children:_?"On":"Off"})}),(0,e.jsx)(n.Ce.Item,{label:"Speaker",children:(0,e.jsx)(n.q,{fluid:!0,icon:A?"toggle-on":"toggle-off",selected:A,onClick:function(){return x("togglevoice")},children:A?"On":"Off"})})]})})||null]})})}},33808:function(M,j,t){"use strict";t.r(j),t.d(j,{MedicalRecords:function(){return h}});var e=t(33496),s=t(69344),n=t(45280),r=t(68644),o=t(8020),v=t(76512),g=t(74800),x=t(79092),f=t(66632),u={Minor:"good",Medium:"average","Dangerous!":"bad",Harmful:"bad","BIOHAZARD THREAT!":"bad"},m=function(_){(0,o.modalOpen)("edit",{field:_.edit,value:_.value})},c=function(_){var A=(0,n.yy)().act,P=_.args;return(0,e.jsx)(r.iG,{level:2,m:"-1rem",title:P.name||"Virus",buttons:(0,e.jsx)(r.q,{icon:"times",color:"red",onClick:function(){return A("modal_close")}}),children:(0,e.jsx)(r.kv,{mx:"0.5rem",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsxs)(r.Ce.Item,{label:"Spread",children:[P.spread_text," Transmission"]}),(0,e.jsx)(r.Ce.Item,{label:"Possible cure",children:P.antigen}),(0,e.jsx)(r.Ce.Item,{label:"Rate of Progression",children:P.rate}),(0,e.jsxs)(r.Ce.Item,{label:"Antibiotic Resistance",children:[P.resistance,"%"]}),(0,e.jsx)(r.Ce.Item,{label:"Species Affected",children:P.species}),(0,e.jsx)(r.Ce.Item,{label:"Symptoms",children:(0,e.jsx)(r.Ce,{children:P.symptoms.map(function(T){return(0,e.jsxs)(r.Ce.Item,{label:T.stage+". "+T.name,children:[(0,e.jsx)(r.kv,{inline:!0,color:"label",children:"Strength:"})," ",T.strength,"\xA0",(0,e.jsx)(r.kv,{inline:!0,color:"label",children:"Aggressiveness:"})," ",T.aggressiveness]},T.stage)})})})]})})})},h=function(_){var A=(0,n.yy)().data,P=A.authenticated,T=A.screen;if(!P)return(0,e.jsx)(v.qo,{width:800,height:380,children:(0,e.jsx)(v.qo.Content,{children:(0,e.jsx)(x.LoginScreen,{})})});var R;return T===2?R=(0,e.jsx)(l,{}):T===3?R=(0,e.jsx)(d,{}):T===4?R=(0,e.jsx)(p,{}):T===5?R=(0,e.jsx)(b,{}):T===6&&(R=(0,e.jsx)(O,{})),(0,e.jsxs)(v.qo,{width:800,height:380,children:[(0,e.jsx)(o.ComplexModal,{maxHeight:"100%",maxWidth:"80%"}),(0,e.jsxs)(v.qo.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.jsx)(g.LoginInfo,{}),(0,e.jsx)(f.TemporaryNotice,{}),(0,e.jsx)(I,{}),(0,e.jsx)(r.iG,{height:"calc(100% - 5rem)",flexGrow:"1",children:R})]})]})},l=function(_){var A=(0,n.yy)(),P=A.act,T=A.data,R=T.records;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.EF,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(L,N){return P("search",{t1:N})}}),(0,e.jsx)(r.kv,{mt:"0.5rem",children:R.map(function(L,N){return(0,e.jsx)(r.q,{icon:"user",mb:"0.5rem",content:L.id+": "+L.name,onClick:function(){return P("d_rec",{d_rec:L.ref})}},N)})})]})},d=function(_){var A=(0,n.yy)().act;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.q,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,e.jsx)("br",{}),(0,e.jsx)(r.q,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," ",(0,e.jsx)("br",{}),(0,e.jsx)(r.q.Confirm,{icon:"trash",content:"Delete All Medical Records",onClick:function(){return A("del_all")}})]})},p=function(_){var A=(0,n.yy)(),P=A.act,T=A.data,R=T.medical,L=T.printing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.iG,{title:"General Data",level:2,mt:"-6px",children:(0,e.jsx)(C,{})}),(0,e.jsx)(r.iG,{title:"Medical Data",level:2,children:(0,e.jsx)(y,{})}),(0,e.jsxs)(r.iG,{title:"Actions",level:2,children:[(0,e.jsx)(r.q.Confirm,{icon:"trash",disabled:!!R.empty,content:"Delete Medical Record",color:"bad",onClick:function(){return P("del_r")}}),(0,e.jsx)(r.q,{icon:L?"spinner":"print",disabled:L,iconSpin:!!L,content:"Print Entry",ml:"0.5rem",onClick:function(){return P("print_p")}}),(0,e.jsx)("br",{}),(0,e.jsx)(r.q,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){return P("screen",{screen:2})}})]})]})},C=function(_){var A=(0,n.yy)().data,P=A.general;return!P||!P.fields?(0,e.jsx)(r.kv,{color:"bad",children:"General records lost!"}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.kv,{width:"50%",float:"left",children:(0,e.jsx)(r.Ce,{children:P.fields.map(function(T,R){return(0,e.jsxs)(r.Ce.Item,{label:T.field,children:[(0,e.jsx)(r.kv,{height:"20px",display:"inline-block",preserveWhitespace:!0,children:T.value}),!!T.edit&&(0,e.jsx)(r.q,{icon:"pen",ml:"0.5rem",onClick:function(){return m(T)}})]},R)})})}),(0,e.jsx)(r.kv,{width:"50%",float:"right",textAlign:"right",children:!!P.has_photos&&P.photos.map(function(T,R){return(0,e.jsxs)(r.kv,{display:"inline-block",textAlign:"center",color:"label",children:[(0,e.jsx)("img",{src:T.substr(1,T.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)("br",{}),"Photo #",R+1]},R)})})]})},y=function(_){var A=(0,n.yy)(),P=A.act,T=A.data,R=T.medical;return!R||!R.fields?(0,e.jsxs)(r.kv,{color:"bad",children:["Medical records lost!",(0,e.jsx)(r.q,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){return P("new")}})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ce,{children:R.fields.map(function(L,N){return(0,e.jsx)(r.Ce.Item,{label:L.field,children:(0,e.jsxs)(r.kv,{preserveWhitespace:!0,children:[L.value,(0,e.jsx)(r.q,{icon:"pen",ml:"0.5rem",mb:L.line_break?"1rem":"initial",onClick:function(){return m(L)}})]})},N)})}),(0,e.jsxs)(r.iG,{title:"Comments/Log",level:2,children:[R.comments.length===0?(0,e.jsx)(r.kv,{color:"label",children:"No comments found."}):R.comments.map(function(L,N){return(0,e.jsxs)(r.kv,{children:[(0,e.jsx)(r.kv,{color:"label",inline:!0,children:L.header}),(0,e.jsx)("br",{}),L.text,(0,e.jsx)(r.q,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return P("del_c",{del_c:N+1})}})]},N)}),(0,e.jsx)(r.q,{icon:"comment-medical",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,o.modalOpen)("add_c")}})]})]})},b=function(_){var A=(0,n.yy)(),P=A.act,T=A.data,R=T.virus;return R.sort(function(L,N){return L.name>N.name?1:-1}),R.map(function(L,N){return(0,e.jsxs)(s.Fragment,{children:[(0,e.jsx)(r.q,{icon:"flask",content:L.name,mb:"0.5rem",onClick:function(){return P("vir",{vir:L.D})}}),(0,e.jsx)("br",{})]},N)})},O=function(_){var A=(0,n.yy)().data,P=A.medbots;return P.length===0?(0,e.jsx)(r.kv,{color:"label",children:"There are no Medbots."}):P.map(function(T,R){return(0,e.jsx)(r.Uv,{open:!0,title:T.name,children:(0,e.jsx)(r.kv,{px:"0.5rem",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsxs)(r.Ce.Item,{label:"Location",children:[T.area||"Unknown"," (",T.x,", ",T.y,")"]}),(0,e.jsx)(r.Ce.Item,{label:"Status",children:T.on?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.kv,{color:"good",children:"Online"}),(0,e.jsx)(r.kv,{mt:"0.5rem",children:T.use_beaker?"Reservoir: "+T.total_volume+"/"+T.maximum_volume:"Using internal synthesizer."})]}):(0,e.jsx)(r.kv,{color:"average",children:"Offline"})})]})})},R)})},I=function(_){var A=(0,n.yy)(),P=A.act,T=A.data,R=T.screen;return(0,e.jsxs)(r.kZ,{children:[(0,e.jsxs)(r.kZ.Tab,{selected:R===2,onClick:function(){return P("screen",{screen:2})},children:[(0,e.jsx)(r.GW,{name:"list"}),"List Records"]}),(0,e.jsxs)(r.kZ.Tab,{selected:R===5,onClick:function(){return P("screen",{screen:5})},children:[(0,e.jsx)(r.GW,{name:"database"}),"Virus Database"]}),(0,e.jsxs)(r.kZ.Tab,{selected:R===6,onClick:function(){return P("screen",{screen:6})},children:[(0,e.jsx)(r.GW,{name:"plus-square"}),"Medbot Tracking"]}),(0,e.jsxs)(r.kZ.Tab,{selected:R===3,onClick:function(){return P("screen",{screen:3})},children:[(0,e.jsx)(r.GW,{name:"wrench"}),"Record Maintenance"]})]})};(0,o.modalRegisterBodyOverride)("virus",c)},34932:function(M,j,t){"use strict";t.r(j),t.d(j,{MentorTicketPanel:function(){return v}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o={open:"Open",resolved:"Resolved",unknown:"Unknown"},v=function(g){var x=(0,s.yy)(),f=x.act,u=x.data,m=u.id,c=u.title,h=u.name,l=u.state,d=u.opened_at,p=u.closed_at,C=u.opened_at_date,y=u.closed_at_date,b=u.actions,O=u.log;return(0,e.jsx)(r.qo,{width:900,height:600,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:(0,e.jsx)(n.iG,{title:"Ticket #"+m,buttons:(0,e.jsxs)(n.kv,{nowrap:!0,children:[(0,e.jsx)(n.q,{icon:"arrow-up",content:"Escalate",onClick:function(){return f("escalate")}})," ",(0,e.jsx)(n.q,{content:"Legacy UI",onClick:function(){return f("legacy")}})]}),children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsxs)(n.Ce.Item,{label:"Mentor Help Ticket",children:["#",m,": ",(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:h}})]}),(0,e.jsx)(n.Ce.Item,{label:"State",children:o[l]}),o[l]===o.open?(0,e.jsxs)(n.Ce.Item,{label:"Opened At",children:[C," (",Math.round(d/600*10)/10," ","minutes ago.)"]}):(0,e.jsxs)(n.Ce.Item,{label:"Closed At",children:[y," (",Math.round(p/600*10)/10," ","minutes ago.)"," ",(0,e.jsx)(n.q,{content:"Reopen",onClick:function(){return f("reopen")}})]}),(0,e.jsx)(n.Ce.Item,{label:"Actions",children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:b}})}),(0,e.jsx)(n.Ce.Item,{label:"Log",children:Object.keys(O).map(function(I,_){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:O[I]}},_)})})]})})})})}},34884:function(M,j,t){"use strict";t.r(j),t.d(j,{MessageMonitor:function(){return f}});var e=t(33496),s=t(49900),n=t(69344),r=t(45280),o=t(68644),v=t(76512),g=t(44664),x=t(66632),f=function(C){var y=(0,r.yy)(),b=y.act,O=y.data,I=O.auth,_=O.linkedServer,A=O.message,P=O.hacking,T=O.emag,R;return P||T?R=(0,e.jsx)(u,{}):I?_?R=(0,e.jsx)(c,{}):R=(0,e.jsx)(o.kv,{color:"bad",children:"ERROR"}):R=(0,e.jsx)(m,{}),(0,e.jsx)(v.qo,{width:670,height:450,children:(0,e.jsxs)(v.qo.Content,{scrollable:!0,children:[(0,e.jsx)(x.TemporaryNotice,{}),R]})})},u=function(C){var y=(0,r.yy)(),b=y.act,O=y.data,I=O.isMalfAI;return(0,e.jsx)(g.FullscreenNotice,{title:"ERROR",children:I?(0,e.jsx)(o.kv,{children:"Brute-forcing for server key. It will take 20 seconds for every character that the password has."}):(0,e.jsxs)(o.kv,{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"]})})},m=function(C){var y=(0,r.yy)(),b=y.act,O=y.data,I=O.isMalfAI;return(0,e.jsxs)(g.FullscreenNotice,{title:"Welcome",children:[(0,e.jsxs)(o.kv,{fontSize:"1.5rem",bold:!0,children:[(0,e.jsx)(o.GW,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),"Unauthorized"]}),(0,e.jsxs)(o.kv,{color:"label",my:"1rem",children:["Decryption Key:",(0,e.jsx)(o.EF,{placeholder:"Decryption Key",ml:"0.5rem",onChange:function(_,A){return b("auth",{key:A})}})]}),!!I&&(0,e.jsx)(o.q,{icon:"terminal",content:"Hack",onClick:function(){return b("hack")}}),(0,e.jsx)(o.kv,{color:"label",children:"Please authenticate with the server in order to show additional options."})]})},c=function(C){var y=(0,r.yy)(),b=y.act,O=y.data,I=O.linkedServer,_=(0,n.useState)(0),A=_[0],P=_[1],T;return A===0?T=(0,e.jsx)(h,{}):A===1?T=(0,e.jsx)(l,{logs:I.pda_msgs,pda:!0}):A===2?T=(0,e.jsx)(l,{logs:I.rc_msgs,rc:!0}):A===3?T=(0,e.jsx)(d,{}):A===4&&(T=(0,e.jsx)(p,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(o.kZ,{children:[(0,e.jsxs)(o.kZ.Tab,{selected:A===0,onClick:function(){return P(0)},children:[(0,e.jsx)(o.GW,{name:"bars"})," Main Menu"]},"Main"),(0,e.jsxs)(o.kZ.Tab,{selected:A===1,onClick:function(){return P(1)},children:[(0,e.jsx)(o.GW,{name:"font"})," Message Logs"]},"MessageLogs"),(0,e.jsxs)(o.kZ.Tab,{selected:A===2,onClick:function(){return P(2)},children:[(0,e.jsx)(o.GW,{name:"bold"})," Request Logs"]},"RequestLogs"),(0,e.jsxs)(o.kZ.Tab,{selected:A===3,onClick:function(){return P(3)},children:[(0,e.jsx)(o.GW,{name:"comment-alt"})," Admin Messaging"]},"AdminMessage"),(0,e.jsxs)(o.kZ.Tab,{selected:A===4,onClick:function(){return P(4)},children:[(0,e.jsx)(o.GW,{name:"comment-slash"})," Spam Filter"]},"SpamFilter"),(0,e.jsxs)(o.kZ.Tab,{color:"red",onClick:function(){return b("deauth")},children:[(0,e.jsx)(o.GW,{name:"sign-out-alt"})," Log Out"]},"Logout")]}),(0,e.jsx)(o.kv,{m:2,children:T})]})},h=function(C){var y=(0,r.yy)(),b=y.act,O=y.data,I=O.linkedServer;return(0,e.jsxs)(o.iG,{title:"Main Menu",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.q,{icon:"link",content:"Server Link",onClick:function(){return b("find")}}),(0,e.jsx)(o.q,{icon:"power-off",content:"Server "+(I.active?"Enabled":"Disabled"),selected:I.active,onClick:function(){return b("active")}})]}),children:[(0,e.jsx)(o.Ce,{children:(0,e.jsx)(o.Ce.Item,{label:"Server Status",children:(0,e.jsx)(o.kv,{color:"good",children:"Good"})})}),(0,e.jsx)(o.q,{mt:1,icon:"key",content:"Set Custom Key",onClick:function(){return b("pass")}}),(0,e.jsx)(o.q.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",content:"Clear Message Logs"}),(0,e.jsx)(o.q.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",content:"Clear Request Logs"})]})},l=function(C){var y=(0,r.yy)(),b=y.act,O=y.data,I=C.logs,_=C.pda,A=C.rc;return(0,e.jsx)(o.iG,{title:_?"PDA Logs":A?"Request Logs":"Logs",buttons:(0,e.jsx)(o.q.Confirm,{color:"red",icon:"trash",confirmIcon:"trash",content:"Delete All",onClick:function(){return b(_?"del_pda":"del_rc")}}),children:(0,e.jsx)(o.Cu,{wrap:"wrap",children:I.map(function(P,T){return(0,e.jsx)(o.Cu.Item,{m:"2px",basis:"49%",grow:T%2,children:(0,e.jsx)(o.iG,{title:P.sender+" -> "+P.recipient,buttons:(0,e.jsx)(o.q.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return b("delete",{id:P.ref,type:A?"rc":"pda"})}}),children:A?(0,e.jsxs)(o.Ce,{children:[(0,e.jsx)(o.Ce.Item,{label:"Message",children:P.message}),(0,e.jsx)(o.Ce.Item,{label:"Verification",color:P.id_auth==="Unauthenticated"?"bad":"good",children:(0,s.Af)(P.id_auth)}),(0,e.jsx)(o.Ce.Item,{label:"Stamp",children:P.stamp})]}):P.message})},P.ref)})})})},d=function(C){var y=(0,r.yy)(),b=y.act,O=y.data,I=O.possibleRecipients,_=O.customsender,A=O.customrecepient,P=O.customjob,T=O.custommessage,R=Object.keys(I);return(0,e.jsxs)(o.iG,{title:"Admin Messaging",children:[(0,e.jsxs)(o.Ce,{children:[(0,e.jsx)(o.Ce.Item,{label:"Sender",children:(0,e.jsx)(o.EF,{fluid:!0,value:_,onChange:function(L,N){return b("set_sender",{val:N})}})}),(0,e.jsx)(o.Ce.Item,{label:"Sender's Job",children:(0,e.jsx)(o.EF,{fluid:!0,value:P,onChange:function(L,N){return b("set_sender_job",{val:N})}})}),(0,e.jsx)(o.Ce.Item,{label:"Recipient",children:(0,e.jsx)(o.cS,{value:A,options:R,width:"100%",mb:-.7,onSelected:function(L){return b("set_recipient",{val:I[L]})}})}),(0,e.jsx)(o.Ce.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsx)(o.EF,{fluid:!0,mb:.5,value:T,onChange:function(L,N){return b("set_message",{val:N})}})})]}),(0,e.jsx)(o.q,{fluid:!0,icon:"comment",content:"Send Message",onClick:function(){return b("send_message")}})]})},p=function(C){var y=(0,r.yy)(),b=y.act,O=y.data,I=O.linkedServer;return(0,e.jsxs)(o.iG,{title:"Spam Filtering",children:[(0,e.jsx)(o.Ce,{children:I.spamFilter.map(function(_){return(0,e.jsx)(o.Ce.Item,{label:_.index,buttons:(0,e.jsx)(o.q,{icon:"trash",color:"bad",content:"Delete",onClick:function(){return b("deltoken",{deltoken:_.index})}}),children:_.token},_.index)})}),(0,e.jsx)(o.q,{icon:"plus",content:"Add New Entry",onClick:function(){return b("addtoken")}})]})}},31028:function(M,j,t){"use strict";t.r(j),t.d(j,{Microwave:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.config,u=g.data,m=u.broken,c=u.operating,h=u.dirty,l=u.items;return(0,e.jsx)(r.qo,{width:400,height:500,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:m&&(0,e.jsx)(n.iG,{children:(0,e.jsx)(n.kv,{color:"bad",children:"Bzzzzttttt!!"})})||c&&(0,e.jsx)(n.iG,{children:(0,e.jsxs)(n.kv,{color:"good",children:["Microwaving in progress!",(0,e.jsx)("br",{}),"Please wait...!"]})})||h&&(0,e.jsx)(n.iG,{children:(0,e.jsxs)(n.kv,{color:"bad",children:["This microwave is dirty!",(0,e.jsx)("br",{}),"Please clean it before use!"]})})||l.length&&(0,e.jsx)(n.iG,{level:1,title:"Ingredients",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.q,{icon:"radiation",onClick:function(){return x("cook")},children:"Microwave"}),(0,e.jsx)(n.q,{icon:"eject",onClick:function(){return x("dispose")},children:"Eject"})]}),children:(0,e.jsx)(n.Ce,{children:l.map(function(d){return(0,e.jsxs)(n.Ce.Item,{label:d.name,children:[d.amt," ",d.extra]},d.name)})})})||(0,e.jsx)(n.iG,{children:(0,e.jsxs)(n.kv,{color:"bad",children:[f.title," is empty."]})})})})}},20076:function(M,j,t){"use strict";t.r(j),t.d(j,{MiningOreProcessingConsole:function(){return g}});var e=t(33496),s=t(49900),n=t(45280),r=t(68644),o=t(76512),v=t(33292),g=function(c){var h=(0,n.yy)(),l=h.act,d=h.data,p=d.unclaimedPoints,C=d.ores,y=d.showAllOres,b=d.power,O=d.speed;return(0,e.jsx)(o.qo,{width:400,height:500,children:(0,e.jsxs)(o.qo.Content,{children:[(0,e.jsx)(v.MiningUser,{insertIdText:(0,e.jsxs)(r.kv,{children:[(0,e.jsx)(r.q,{icon:"arrow-right",mr:1,onClick:function(){return l("insert")},children:"Insert ID"}),"in order to claim points."]})}),(0,e.jsx)(r.iG,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.q,{icon:"bolt",selected:O,onClick:function(){return l("speed_toggle")},children:O?"High-Speed Active":"High-Speed Inactive"}),(0,e.jsx)(r.q,{icon:"power-off",selected:b,onClick:function(){return l("power")},children:b?"Smelting":"Not Smelting"})]}),children:(0,e.jsx)(r.Ce,{children:(0,e.jsx)(r.Ce.Item,{label:"Current unclaimed points",buttons:(0,e.jsx)(r.q,{disabled:p<1,icon:"download",onClick:function(){return l("claim")},children:"Claim"}),children:(0,e.jsx)(r.Gg,{value:p})})})}),(0,e.jsx)(m,{})]})})},x=["Not Processing","Smelting","Compressing","Alloying"],f=["verdantium","mhydrogen","diamond","platinum","uranium","gold","silver","rutile","phoron","marble","lead","sand","carbon","hematite"],u=function(c,h){return f.indexOf(c.ore)===-1||f.indexOf(h.ore)===-1?c.ore-h.ore:f.indexOf(h.ore)-f.indexOf(c.ore)},m=function(c){var h=(0,n.yy)(),l=h.act,d=h.data,p=d.ores,C=d.showAllOres,y=d.power;return(0,e.jsx)(r.iG,{title:"Ore Processing Controls",buttons:(0,e.jsx)(r.q,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return l("showAllOres")},children:C?"All Ores":"Ores in Machine"}),children:(0,e.jsx)(r.Ce,{children:p.length&&p.sort(u).map(function(b){return(0,e.jsx)(r.Ce.Item,{label:(0,s.Yl)(b.name),buttons:(0,e.jsx)(r.cS,{width:"120px",color:b.processing===0&&"red"||b.processing===1&&"green"||b.processing===2&&"blue"||b.processing===3&&"yellow",options:x,selected:x[b.processing],onSelected:function(O){return l("toggleSmelting",{ore:b.ore,set:x.indexOf(O)})}}),children:(0,e.jsx)(r.kv,{inline:!0,children:(0,e.jsx)(r.Gg,{value:b.amount})})},b.ore)})||(0,e.jsx)(r.kv,{color:"bad",textAlign:"center",children:"No ores in machine."})})})}},86592:function(M,j,t){"use strict";t.r(j),t.d(j,{MiningStackingConsole:function(){return v}});var e=t(33496),s=t(49900),n=t(45280),r=t(68644),o=t(76512),v=function(g){var x=(0,n.yy)(),f=x.act,u=x.data,m=u.stacktypes,c=u.stackingAmt;return(0,e.jsx)(o.qo,{width:400,height:500,children:(0,e.jsx)(o.qo.Content,{children:(0,e.jsx)(r.iG,{title:"Stacker Controls",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Stacking",children:(0,e.jsx)(r.Ef,{fluid:!0,value:c,minValue:1,maxValue:50,stepPixelSize:5,onChange:function(h,l){return f("change_stack",{amt:l})}})}),(0,e.jsx)(r.Ce.Divider,{}),m.length&&m.sort().map(function(h){return(0,e.jsx)(r.Ce.Item,{label:(0,s.Yl)(h.type),buttons:(0,e.jsx)(r.q,{icon:"eject",onClick:function(){return f("release_stack",{stack:h.type})},children:"Eject"}),children:(0,e.jsx)(r.Gg,{value:h.amt})},h.type)})||(0,e.jsx)(r.Ce.Item,{label:"Empty",color:"average",children:"No stacks in machine."})]})})})})}},60340:function(M,j,t){"use strict";t.r(j),t.d(j,{MiningVendor:function(){return u}});var e=t(33496),s=t(49900),n=t(45280),r=t(68644),o=t(76512),v=t(33292);function g(){return g=Object.assign||function(l){for(var d=1;d=0)&&(p[y]=l[y]);return p}var f={Alphabetical:function(l,d){return l-d},"By availability":function(l,d){return-(l.affordable-d.affordable)},"By price":function(l,d){return l.price-d.price}},u=function(l){return(0,e.jsx)(o.qo,{width:400,height:450,children:(0,e.jsxs)(o.qo.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.jsx)(v.MiningUser,{insertIdText:"Please insert an ID in order to make purchases."}),(0,e.jsx)(c,{}),(0,e.jsx)(m,{})]})})},m=function(l){var d=(0,n.yy)(),p=d.act,C=d.data,y=C.has_id,b=C.id,O=C.items,I=(0,n.cv)("search",""),_=I[0],A=I[1],P=(0,n.cv)("sort","Alphabetical"),T=P[0],R=P[1],L=(0,n.cv)("descending",!1),N=L[0],U=L[1],V=(0,s.od)(_,function(H){return H[0]}),z=!1,Q=Object.entries(O).map(function(H,q){var Z=Object.entries(H[1]).filter(V).map(function($){return $[1].affordable=y&&b.points>=$[1].price,$[1]}).sort(f[T]);if(Z.length!==0)return N&&(Z=Z.reverse()),z=!0,(0,e.jsx)(h,{title:H[0],items:Z},H[0])});return(0,e.jsx)(r.Cu.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(r.iG,{children:z?Q:(0,e.jsx)(r.kv,{color:"label",children:"No items matching your criteria was found!"})})})},c=function(l){var d=(0,n.cv)("search",""),p=d[0],C=d[1],y=(0,n.cv)("sort",""),b=y[0],O=y[1],I=(0,n.cv)("descending",!1),_=I[0],A=I[1];return(0,e.jsx)(r.kv,{mb:"0.5rem",children:(0,e.jsxs)(r.Cu,{width:"100%",children:[(0,e.jsx)(r.Cu.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(r.EF,{placeholder:"Search by item name..",width:"100%",onInput:function(P,T){return C(T)}})}),(0,e.jsx)(r.Cu.Item,{basis:"30%",children:(0,e.jsx)(r.cS,{selected:"Alphabetical",options:Object.keys(f),width:"100%",lineHeight:"19px",onSelected:function(P){return O(P)}})}),(0,e.jsx)(r.Cu.Item,{children:(0,e.jsx)(r.q,{icon:_?"arrow-down":"arrow-up",height:"19px",tooltip:_?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return A(!_)}})})]})})},h=function(l){var d=(0,n.yy)(),p=d.act,C=d.data,y=l.title,b=l.items,O=x(l,["title","items"]);return(0,e.jsx)(r.Uv,g({open:!0,title:y},O,{children:b.map(function(I){return(0,e.jsxs)(r.kv,{children:[(0,e.jsx)(r.kv,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:I.name}),(0,e.jsx)(r.q,{disabled:!C.has_id||C.id.points=450?"Overcharged":C>=250?"Good Charge":"Low Charge":C>=250?"NIF Power Requirement met.":C>=150?"Fluctuations in available power.":"Power failure imminent."},d=function(C){var y=(0,n.yy)(),b=y.act,O=y.config,I=y.data,_=I.nif_percent,A=I.nif_stat,P=I.last_notification,T=I.nutrition,R=I.isSynthetic,L=I.modules,N=C.setViewing;return(0,e.jsxs)(r.kv,{children:[(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"NIF Condition",children:(0,e.jsxs)(r.cH,{value:_,minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,0]},children:[h(A,_)," (",(0,e.jsx)(r.Gg,{value:_}),"%)"]})}),(0,e.jsx)(r.Ce.Item,{label:"NIF Power",children:(0,e.jsx)(r.cH,{value:T,minValue:0,maxValue:700,ranges:{good:[250,1/0],average:[150,250],bad:[0,150]},children:l(T,R)})})]}),(0,e.jsx)(r.iG,{level:2,title:"NIFSoft Modules",mt:1,children:(0,e.jsx)(r.Ce,{children:L.map(function(U){return(0,e.jsx)(r.Ce.Item,{label:U.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.q.Confirm,{icon:"trash",color:"bad",confirmContent:"UNINSTALL?",confirmIcon:"trash",tooltip:"Uninstall Module",tooltipPosition:"left",onClick:function(){return b("uninstall",{module:U.ref})}}),(0,e.jsx)(r.q,{icon:"search",onClick:function(){return N(U)},tooltip:"View Information",tooltipPosition:"left"})]}),children:U.activates&&(0,e.jsx)(r.q,{fluid:!0,selected:U.active,content:U.stat_text,onClick:function(){return b("toggle_module",{module:U.ref})}})||(0,e.jsx)(r.kv,{children:U.stat_text})},U.ref)})})})]})},p=function(C){var y=(0,n.yy)(),b=y.act,O=y.data,I=O.theme;return(0,e.jsx)(r.Ce,{children:(0,e.jsx)(r.Ce.Item,{label:"NIF Theme",verticalAlign:"top",children:(0,e.jsx)(r.cS,{width:"100%",placeholder:"Default",selected:I,options:m,onSelected:function(_){return b("setTheme",{theme:_})}})})})}},76332:function(M,j,t){"use strict";t.r(j),t.d(j,{NTNetRelay:function(){return v}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=t(44664),v=function(f){var u=(0,s.yy)(),m=u.act,c=u.data,h=c.dos_crashed,l=c.enabled,d=c.dos_overload,p=c.dos_capacity,C=(0,e.jsx)(g,{});return h&&(C=(0,e.jsx)(x,{})),(0,e.jsx)(r.qo,{width:h?700:500,height:h?600:300,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:C})})},g=function(f){var u=(0,s.yy)(),m=u.act,c=u.data,h=c.dos_crashed,l=c.enabled,d=c.dos_overload,p=c.dos_capacity;return(0,e.jsx)(n.iG,{title:"Status",buttons:(0,e.jsx)(n.q,{icon:"power-off",selected:l,content:"Relay "+(l?"On":"Off"),onClick:function(){return m("toggle")}}),children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsxs)(n.Ce.Item,{label:"Network Buffer Status",children:[d," / ",p," GQ"]}),(0,e.jsx)(n.Ce.Item,{label:"Options",children:(0,e.jsx)(n.q,{icon:"exclamation-triangle",content:"Purge network blacklist",onClick:function(){return m("purge")}})})]})})},x=function(f){var u=(0,s.yy)(),m=u.act,c=u.data;return(0,e.jsxs)(o.FullscreenNotice,{title:"ERROR",children:[(0,e.jsxs)(n.kv,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,e.jsx)(n.GW,{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)(n.kv,{children:(0,e.jsx)(n.q,{icon:"exclamation-triangle",content:"Purge buffered traffic",onClick:function(){return m("restart")}})})]})}},49480:function(M,j,t){"use strict";t.r(j),t.d(j,{Newscaster:function(){return d}});var e=t(33496),s=t(49900),n=t(45280),r=t(68644),o=t(76512),v=t(66632),g="Main Menu",x="New Channel",f="View List",u="New Story",m="Print",c="New Wanted",h="View Wanted",l="View Selected Channel",d=function(R){var L=(0,n.yy)(),N=L.act,U=L.data,V=U.screen,z=U.user;return(0,e.jsx)(o.qo,{width:600,height:600,children:(0,e.jsxs)(o.qo.Content,{scrollable:!0,children:[(0,e.jsx)(v.TemporaryNotice,{decode:!0}),(0,e.jsx)(p,{})]})})},p=function(R){var L=(0,n.yy)(),N=L.act,U=L.data,V=U.user,z=(0,n.ao)("screen",g),Q=z[0],H=z[1],q=T[Q];return(0,e.jsx)(r.kv,{children:(0,e.jsx)(q,{setScreen:H})})},C=function(R){var L=(0,n.yy)(),N=L.act,U=L.data,V=U.securityCaster,z=U.wanted_issue,Q=R.setScreen;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.iG,{title:"Main Menu",children:[z&&(0,e.jsx)(r.q,{fluid:!0,icon:"eye",onClick:function(){return Q(h)},color:"bad",children:"Read WANTED Issue"}),(0,e.jsx)(r.q,{fluid:!0,icon:"eye",onClick:function(){return Q(f)},children:"View Feed Channels"}),(0,e.jsx)(r.q,{fluid:!0,icon:"plus",onClick:function(){return Q(x)},children:"Create Feed Channel"}),(0,e.jsx)(r.q,{fluid:!0,icon:"plus",onClick:function(){return Q(u)},children:"Create Feed Message"}),(0,e.jsx)(r.q,{fluid:!0,icon:"print",onClick:function(){return Q(m)},children:"Print Newspaper"})]}),!!V&&(0,e.jsx)(r.iG,{title:"Feed Security Functions",children:(0,e.jsx)(r.q,{fluid:!0,icon:"plus",onClick:function(){return Q(c)},children:'Manage "Wanted" Issue'})})]})},y=function(R){var L=(0,n.yy)(),N=L.act,U=L.data,V=U.channel_name,z=U.c_locked,Q=U.user,H=R.setScreen;return(0,e.jsxs)(r.iG,{title:"Creating new Feed Channel",buttons:(0,e.jsx)(r.q,{icon:"undo",onClick:function(){return H(g)},children:"Back"}),children:[(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Channel Name",children:(0,e.jsx)(r.EF,{fluid:!0,value:(0,s.Af)(V),onInput:function(q,Z){return N("set_channel_name",{val:Z})}})}),(0,e.jsx)(r.Ce.Item,{label:"Channel Author",color:"good",children:Q}),(0,e.jsx)(r.Ce.Item,{label:"Accept Public Feeds",children:(0,e.jsx)(r.q,{icon:z?"lock":"lock-open",selected:!z,onClick:function(){return N("set_channel_lock")},children:z?"No":"Yes"})})]}),(0,e.jsx)(r.q,{fluid:!0,color:"good",icon:"plus",onClick:function(){return N("submit_new_channel")},children:"Submit Channel"}),(0,e.jsx)(r.q,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return H(g)},children:"Cancel"})]})},b=function(R){var L=(0,n.yy)(),N=L.act,U=L.data,V=U.channels,z=R.setScreen;return(0,e.jsx)(r.iG,{title:"Station Feed Channels",buttons:(0,e.jsx)(r.q,{icon:"undo",onClick:function(){return z(g)},children:"Back"}),children:V.map(function(Q){return(0,e.jsx)(r.q,{fluid:!0,icon:"eye",color:Q.admin?"good":Q.censored?"bad":"",onClick:function(){N("show_channel",{show_channel:Q.ref}),z(l)},children:(0,s.Af)(Q.name)},Q.name)})})},O=function(R){var L=(0,n.yy)(),N=L.act,U=L.data,V=U.channel_name,z=U.user,Q=U.title,H=U.msg,q=U.photo_data,Z=R.setScreen;return(0,e.jsxs)(r.iG,{title:"Creating new Feed Message...",buttons:(0,e.jsx)(r.q,{icon:"undo",onClick:function(){return Z(g)},children:"Back"}),children:[(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Receiving Channel",children:(0,e.jsx)(r.q,{fluid:!0,onClick:function(){return N("set_channel_receiving")},children:V||"Unset"})}),(0,e.jsx)(r.Ce.Item,{label:"Message Author",color:"good",children:z}),(0,e.jsx)(r.Ce.Item,{label:"Message Title",verticalAlign:"top",children:(0,e.jsxs)(r.Cu,{children:[(0,e.jsx)(r.Cu.Item,{grow:1,children:(0,e.jsx)(r.iG,{width:"99%",inline:!0,children:Q||"(no title yet)"})}),(0,e.jsx)(r.Cu.Item,{children:(0,e.jsx)(r.q,{verticalAlign:"top",onClick:function(){return N("set_new_title")},icon:"pen",tooltip:"Edit Title",tooltipPosition:"left"})})]})}),(0,e.jsx)(r.Ce.Item,{label:"Message Body",verticalAlign:"top",children:(0,e.jsxs)(r.Cu,{children:[(0,e.jsx)(r.Cu.Item,{grow:1,children:(0,e.jsx)(r.iG,{width:"99%",inline:!0,children:H||"(no message yet)"})}),(0,e.jsx)(r.Cu.Item,{children:(0,e.jsx)(r.q,{verticalAlign:"top",onClick:function(){return N("set_new_message")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})}),(0,e.jsx)(r.Ce.Item,{label:"Attach Photo",children:(0,e.jsx)(r.q,{fluid:!0,icon:"image",onClick:function(){return N("set_attachment")},children:q?"Photo Attached":"No Photo"})})]}),(0,e.jsx)(r.q,{fluid:!0,color:"good",icon:"plus",onClick:function(){return N("submit_new_message")},children:"Submit Message"}),(0,e.jsx)(r.q,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return Z(g)},children:"Cancel"})]})},I=function(R){var L=(0,n.yy)(),N=L.act,U=L.data,V=U.total_num,z=U.active_num,Q=U.message_num,H=U.paper_remaining,q=R.setScreen;return(0,e.jsxs)(r.iG,{title:"Printing",buttons:(0,e.jsx)(r.q,{icon:"undo",onClick:function(){return q(g)},children:"Back"}),children:[(0,e.jsxs)(r.kv,{color:"label",mb:1,children:["Newscaster currently serves a total of ",V," Feed channels,"," ",z," of which are active, and a total of ",Q," Feed stories."]}),(0,e.jsx)(r.Ce,{children:(0,e.jsxs)(r.Ce.Item,{label:"Liquid Paper remaining",children:[H*100," cm\xB3"]})}),(0,e.jsx)(r.q,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return N("print_paper")},children:"Print Paper"}),(0,e.jsx)(r.q,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return q(g)},children:"Cancel"})]})},_=function(R){var L=(0,n.yy)(),N=L.act,U=L.data,V=U.channel_name,z=U.msg,Q=U.photo_data,H=U.user,q=U.wanted_issue,Z=R.setScreen;return(0,e.jsxs)(r.iG,{title:"Wanted Issue Handler",buttons:(0,e.jsx)(r.q,{icon:"undo",onClick:function(){return Z(g)},children:"Back"}),children:[(0,e.jsxs)(r.Ce,{children:[!!q&&(0,e.jsx)(r.Ce.Item,{label:"Already In Circulation",children:"A wanted issue is already in circulation. You can edit or cancel it below."}),(0,e.jsx)(r.Ce.Item,{label:"Criminal Name",children:(0,e.jsx)(r.EF,{fluid:!0,value:(0,s.Af)(V),onInput:function($,G){return N("set_channel_name",{val:G})}})}),(0,e.jsx)(r.Ce.Item,{label:"Description",children:(0,e.jsx)(r.EF,{fluid:!0,value:(0,s.Af)(z),onInput:function($,G){return N("set_wanted_desc",{val:G})}})}),(0,e.jsx)(r.Ce.Item,{label:"Attach Photo",children:(0,e.jsx)(r.q,{fluid:!0,icon:"image",onClick:function(){return N("set_attachment")},children:Q?"Photo Attached":"No Photo"})}),(0,e.jsx)(r.Ce.Item,{label:"Prosecutor",color:"good",children:H})]}),(0,e.jsx)(r.q,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return N("submit_wanted")},children:"Submit Wanted Issue"}),!!q&&(0,e.jsx)(r.q,{fluid:!0,color:"average",icon:"minus",onClick:function(){return N("cancel_wanted")},children:"Take Down Issue"}),(0,e.jsx)(r.q,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return Z(g)},children:"Cancel"})]})},A=function(R){var L=(0,n.yy)(),N=L.act,U=L.data,V=U.wanted_issue,z=R.setScreen;return V?(0,e.jsx)(r.iG,{title:"--STATIONWIDE WANTED ISSUE--",color:"bad",buttons:(0,e.jsx)(r.q,{icon:"undo",onClick:function(){return z(g)},children:"Back"}),children:(0,e.jsx)(r.kv,{color:"white",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Submitted by",color:"good",children:(0,s.Af)(V.author)}),(0,e.jsx)(r.Ce.Divider,{}),(0,e.jsx)(r.Ce.Item,{label:"Criminal",children:(0,s.Af)(V.criminal)}),(0,e.jsx)(r.Ce.Item,{label:"Description",children:(0,s.Af)(V.desc)}),(0,e.jsx)(r.Ce.Item,{label:"Photo",children:V.img&&(0,e.jsx)("img",{src:V.img})||"None"})]})})}):(0,e.jsx)(r.iG,{title:"No Outstanding Wanted Issues",buttons:(0,e.jsx)(r.q,{icon:"undo",onClick:function(){return z(g)},children:"Back"}),children:"There are no wanted issues currently outstanding."})},P=function(R){var L=(0,n.yy)(),N=L.act,U=L.data,V=U.viewing_channel,z=U.securityCaster,Q=U.company,H=R.setScreen;return V?(0,e.jsxs)(r.iG,{title:(0,s.Af)(V.name),buttons:(0,e.jsxs)(e.Fragment,{children:[!!z&&(0,e.jsx)(r.q.Confirm,{color:"bad",icon:"ban",confirmIcon:"ban",content:"Issue D-Notice",onClick:function(){return N("toggle_d_notice",{ref:V.ref})}}),(0,e.jsx)(r.q,{icon:"undo",onClick:function(){return H(f)},children:"Back"})]}),children:[(0,e.jsx)(r.Ce,{children:(0,e.jsx)(r.Ce.Item,{label:"Channel Created By",children:z&&(0,e.jsx)(r.q.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:(0,s.Af)(V.author),tooltip:"Censor?",confirmContent:"Censor Author",onClick:function(){return N("censor_channel_author",{ref:V.ref})}})||(0,e.jsx)(r.kv,{children:(0,s.Af)(V.author)})})}),!!V.censored&&(0,e.jsxs)(r.kv,{color:"bad",children:["ATTENTION: This channel has been deemed as threatening to the welfare of the station, and marked with a ",Q," D-Notice. No further feed story additions are allowed while the D-Notice is in effect."]}),!!V.messages.length&&V.messages.map(function(q){return(0,e.jsxs)(r.iG,{children:["- ",(0,s.Af)(q.body),!!q.img&&(0,e.jsxs)(r.kv,{children:[(0,e.jsx)("img",{src:"data:image/png;base64,"+q.img}),(0,s.Af)(q.caption)||null]}),(0,e.jsxs)(r.kv,{color:"grey",children:["[Story by ",(0,s.Af)(q.author)," -"," ",q.timestamp,"]"]}),!!z&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.q.Confirm,{mt:1,color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Story",onClick:function(){return N("censor_channel_story_body",{ref:q.ref})}}),(0,e.jsx)(r.q.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Author",onClick:function(){return N("censor_channel_story_author",{ref:q.ref})}})]})]},q.ref)})||!V.censored&&(0,e.jsx)(r.kv,{color:"average",children:"No feed messages found in channel."})]}):(0,e.jsx)(r.iG,{title:"Channel Not Found",buttons:(0,e.jsx)(r.q,{icon:"undo",onClick:function(){return H(f)},children:"Back"}),children:"The channel you were looking for no longer exists."})},T={};T[g]=C,T[x]=y,T[f]=b,T[u]=O,T[m]=I,T[c]=_,T[h]=A,T[l]=P},74352:function(M,j,t){"use strict";t.r(j),t.d(j,{NoticeBoard:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.notices;return(0,e.jsx)(r.qo,{width:330,height:300,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(n.iG,{children:u.length?(0,e.jsx)(n.Ce,{children:u.map(function(m,c){return(0,e.jsxs)(n.Ce.Item,{label:m.name,children:[m.isphoto&&(0,e.jsx)(n.q,{icon:"image",content:"Look",onClick:function(){return x("look",{ref:m.ref})}})||m.ispaper&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.q,{icon:"sticky-note",content:"Read",onClick:function(){return x("read",{ref:m.ref})}}),(0,e.jsx)(n.q,{icon:"pen",content:"Write",onClick:function(){return x("write",{ref:m.ref})}})]})||"Unknown Entity",(0,e.jsx)(n.q,{icon:"minus-circle",content:"Remove",onClick:function(){return x("remove",{ref:m.ref})}})]},c)})}):(0,e.jsx)(n.kv,{color:"average",children:"No notices posted here."})})})})}},36660:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosAccessDecrypter:function(){return v}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=t(8816),v=function(g){var x=(0,s.yy)(),f=x.act,u=x.data,m=u.message,c=u.running,h=u.rate,l=u.factor,d=u.regions,p=function(y){for(var b="";b.lengthl?b+="0":b+="1";return b},C=45;return(0,e.jsx)(r.g9,{width:600,height:600,theme:"syndicate",children:(0,e.jsx)(r.g9.Content,{children:m&&(0,e.jsx)(n.yc,{children:m})||c&&(0,e.jsxs)(n.iG,{children:["Attempting to decrypt network access codes. Please wait. Rate:"," ",h," PHash/s",(0,e.jsx)(n.kv,{children:p(C)}),(0,e.jsx)(n.kv,{children:p(C)}),(0,e.jsx)(n.kv,{children:p(C)}),(0,e.jsx)(n.kv,{children:p(C)}),(0,e.jsx)(n.kv,{children:p(C)}),(0,e.jsx)(n.q,{fluid:!0,icon:"ban",onClick:function(){return f("PRG_reset")},children:"Abort"})]})||(0,e.jsx)(n.iG,{title:"Pick access code to decrypt",children:d.length&&(0,e.jsx)(o.IdentificationComputerRegions,{actName:"PRG_execute"})||(0,e.jsx)(n.kv,{children:"Please insert ID card."})})})})}},92732:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosArcade:function(){return v}});var e=t(33496),s=t(69912),n=t(45280),r=t(68644),o=t(76512),v=function(g){var x=(0,n.yy)(),f=x.act,u=x.data;return(0,e.jsx)(o.g9,{width:450,height:350,children:(0,e.jsx)(o.g9.Content,{children:(0,e.jsxs)(r.iG,{title:"Outbomb Cuban Pete Ultra",textAlign:"center",children:[(0,e.jsxs)(r.kv,{children:[(0,e.jsxs)(r.ye,{children:[(0,e.jsxs)(r.ye.Column,{size:2,children:[(0,e.jsx)(r.kv,{m:1}),(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Player Health",children:(0,e.jsxs)(r.cH,{value:u.PlayerHitpoints,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[u.PlayerHitpoints,"HP"]})}),(0,e.jsx)(r.Ce.Item,{label:"Player Magic",children:(0,e.jsxs)(r.cH,{value:u.PlayerMP,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[u.PlayerMP,"MP"]})})]}),(0,e.jsx)(r.kv,{my:1,mx:4}),(0,e.jsx)(r.iG,{backgroundColor:u.PauseState===1?"#1b3622":"#471915",children:u.Status})]}),(0,e.jsxs)(r.ye.Column,{children:[(0,e.jsxs)(r.cH,{value:u.Hitpoints,minValue:0,maxValue:45,ranges:{good:[30,1/0],average:[5,30],bad:[-1/0,5]},children:[(0,e.jsx)(r.Gg,{value:u.Hitpoints}),"HP"]}),(0,e.jsx)(r.kv,{m:1}),(0,e.jsx)(r.iG,{inline:!0,width:"156px",textAlign:"center",children:(0,e.jsx)("img",{src:(0,s.e)(u.BossID)})})]})]}),(0,e.jsx)(r.kv,{my:1,mx:4}),(0,e.jsx)(r.q,{icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",disabled:u.GameActive===0||u.PauseState===1,onClick:function(){return f("Attack")},content:"Attack!"}),(0,e.jsx)(r.q,{icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",disabled:u.GameActive===0||u.PauseState===1,onClick:function(){return f("Heal")},content:"Heal!"}),(0,e.jsx)(r.q,{icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",disabled:u.GameActive===0||u.PauseState===1,onClick:function(){return f("Recharge_Power")},content:"Recharge!"})]}),(0,e.jsxs)(r.kv,{children:[(0,e.jsx)(r.q,{icon:"sync-alt",tooltip:"One more game couldn't hurt.",tooltipPosition:"top",disabled:u.GameActive===1,onClick:function(){return f("Start_Game")},content:"Begin Game"}),(0,e.jsx)(r.q,{icon:"ticket-alt",tooltip:"Claim at your local Arcade Computer for Prizes!",tooltipPosition:"top",disabled:u.GameActive===1,onClick:function(){return f("Dispense_Tickets")},content:"Claim Tickets"})]}),(0,e.jsxs)(r.kv,{color:u.TicketCount>=1?"good":"normal",children:["Earned Tickets: ",u.TicketCount]})]})})})}},24184:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosAtmosControl:function(){return r}});var e=t(33496),s=t(76512),n=t(67064),r=function(){return(0,e.jsx)(s.g9,{width:870,height:708,children:(0,e.jsx)(s.g9.Content,{children:(0,e.jsx)(n.AtmosControlContent,{})})})}},75159:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosCameraConsole:function(){return m},prevNextCamera:function(){return f},selectCameras:function(){return u}});var e=t(33496),s=t(47392),n=t(18140),r=t(49900),o=t(45280),v=t(68644),g=t(76512),x=t(42040),f=function(c,h){var l,d;if(!h)return[];var p=c.findIndex(function(C){return C.name===h.name});return[(l=c[p-1])==null?void 0:l.name,(d=c[p+1])==null?void 0:d.name]},u=function(c,h,l){h===void 0&&(h=""),l===void 0&&(l="");var d=(0,r.od)(h,function(p){return p.name});return(0,n.k)([(0,s.IF)(function(p){return p==null?void 0:p.name}),h&&(0,s.IF)(d),l&&(0,s.IF)(function(p){return p.networks.includes(l)}),(0,s.cp)(function(p){return p.name})])(c)},m=function(c){var h=(0,o.yy)(),l=h.act,d=h.data,p=d.mapRef,C=d.activeCamera,y=u(d.cameras),b=f(y,C),O=b[0],I=b[1];return(0,e.jsx)(g.g9,{width:870,height:708,children:(0,e.jsxs)(g.g9.Content,{children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(x.CameraConsoleContent,{})}),(0,e.jsxs)("div",{className:"CameraConsole__right",children:[(0,e.jsxs)("div",{className:"CameraConsole__toolbar",children:[(0,e.jsx)("b",{children:"Camera: "}),C&&C.name||"\u2014"]}),(0,e.jsxs)("div",{className:"CameraConsole__toolbarRight",children:["SEL:",(0,e.jsx)(v.q,{icon:"chevron-left",disabled:!O,onClick:function(){return l("switch_camera",{name:O})}}),(0,e.jsx)(v.q,{icon:"chevron-right",disabled:!I,onClick:function(){return l("switch_camera",{name:I})}}),"| PAN:",(0,e.jsx)(v.q,{icon:"chevron-left",onClick:function(){return l("pan",{dir:8})}}),(0,e.jsx)(v.q,{icon:"chevron-up",onClick:function(){return l("pan",{dir:1})}}),(0,e.jsx)(v.q,{icon:"chevron-right",onClick:function(){return l("pan",{dir:4})}}),(0,e.jsx)(v.q,{icon:"chevron-down",onClick:function(){return l("pan",{dir:2})}})]}),(0,e.jsx)(v.cb,{className:"CameraConsole__map",params:{id:p,type:"map"}})]})]})})}},2416:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosCommunicationsConsole:function(){return r}});var e=t(33496),s=t(76512),n=t(55656),r=function(){return(0,e.jsx)(s.g9,{width:400,height:600,children:(0,e.jsx)(s.g9.Content,{scrollable:!0,children:(0,e.jsx)(n.CommunicationsConsoleContent,{})})})}},12112:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosConfiguration:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.PC_device_theme,m=f.power_usage,c=f.battery_exists,h=f.battery,l=h===void 0?{}:h,d=f.disk_size,p=f.disk_used,C=f.hardware,y=C===void 0?[]:C;return(0,e.jsx)(r.g9,{theme:u,width:520,height:630,children:(0,e.jsxs)(r.g9.Content,{scrollable:!0,children:[(0,e.jsx)(n.iG,{title:"Power Supply",buttons:(0,e.jsxs)(n.kv,{inline:!0,bold:!0,mr:1,children:["Power Draw: ",m,"W"]}),children:(0,e.jsx)(n.Ce,{children:(0,e.jsx)(n.Ce.Item,{label:"Battery Status",color:!c&&"average",children:c?(0,e.jsxs)(n.cH,{value:l.charge,minValue:0,maxValue:l.max,ranges:{good:[l.max/2,1/0],average:[l.max/4,l.max/2],bad:[-1/0,l.max/4]},children:[l.charge," / ",l.max]}):"Not Available"})})}),(0,e.jsx)(n.iG,{title:"File System",children:(0,e.jsxs)(n.cH,{value:p,minValue:0,maxValue:d,color:"good",children:[p," GQ / ",d," GQ"]})}),(0,e.jsx)(n.iG,{title:"Hardware Components",children:y.map(function(b){return(0,e.jsx)(n.iG,{title:b.name,level:2,buttons:(0,e.jsxs)(e.Fragment,{children:[!b.critical&&(0,e.jsx)(n.q.Checkbox,{content:"Enabled",checked:b.enabled,mr:1,onClick:function(){return x("PC_toggle_component",{name:b.name})}}),(0,e.jsxs)(n.kv,{inline:!0,bold:!0,mr:1,children:["Power Usage: ",b.powerusage,"W"]})]}),children:b.desc},b.name)})})]})})}},14144:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosCrewManifest:function(){return r}});var e=t(33496),s=t(76512),n=t(94384),r=function(){return(0,e.jsx)(s.g9,{width:800,height:600,children:(0,e.jsx)(s.g9.Content,{children:(0,e.jsx)(n.CrewManifestContent,{})})})}},4036:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosCrewMonitor:function(){return r}});var e=t(33496),s=t(76512),n=t(37284),r=function(){return(0,e.jsx)(s.g9,{width:800,height:600,children:(0,e.jsx)(s.g9.Content,{children:(0,e.jsx)(n.CrewMonitorContent,{})})})}},93816:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosDigitalWarrant:function(){return v}});var e=t(33496),s=t(47392),n=t(45280),r=t(68644),o=t(76512),v=function(u){var m=(0,n.yy)(),c=m.act,h=m.data,l=h.warrantname,d=h.warrantcharges,p=h.warrantauth,C=h.type,y=h.allwarrants,b=(0,e.jsx)(g,{});return p&&(b=(0,e.jsx)(f,{})),(0,e.jsx)(o.g9,{width:500,height:350,children:(0,e.jsx)(o.g9.Content,{scrollable:!0,children:b})})},g=function(u){var m=(0,n.yy)(),c=m.act,h=m.data,l=h.allwarrants;return(0,e.jsxs)(r.iG,{title:"Warrants",children:[(0,e.jsx)(r.q,{icon:"plus",fluid:!0,onClick:function(){return c("addwarrant")},children:"Create New Warrant"}),(0,e.jsx)(r.iG,{level:2,title:"Arrest Warrants",children:(0,e.jsx)(x,{type:"arrest"})}),(0,e.jsx)(r.iG,{level:2,title:"Search Warrants",children:(0,e.jsx)(x,{type:"search"})})]})},x=function(u){var m=(0,n.yy)(),c=m.act,h=m.data,l=u.type,d=h.allwarrants,p=(0,s.IF)(function(C){return C.arrestsearch===l})(d);return(0,e.jsxs)(r.oJ,{children:[(0,e.jsxs)(r.oJ.Row,{header:!0,children:[(0,e.jsx)(r.oJ.Cell,{children:l==="arrest"?"Name":"Location"}),(0,e.jsx)(r.oJ.Cell,{children:l==="arrest"?"Charges":"Reason"}),(0,e.jsx)(r.oJ.Cell,{children:"Authorized By"}),(0,e.jsx)(r.oJ.Cell,{collapsing:!0,children:"Edit"})]}),p.length&&p.map(function(C){return(0,e.jsxs)(r.oJ.Row,{children:[(0,e.jsx)(r.oJ.Cell,{children:C.warrantname}),(0,e.jsx)(r.oJ.Cell,{children:C.charges}),(0,e.jsx)(r.oJ.Cell,{children:C.auth}),(0,e.jsx)(r.oJ.Cell,{collapsing:!0,children:(0,e.jsx)(r.q,{icon:"pen",onClick:function(){return c("editwarrant",{id:C.id})}})})]},C.id)})||(0,e.jsx)(r.oJ.Row,{children:(0,e.jsxs)(r.oJ.Cell,{colspan:"3",color:"bad",children:["No ",l," warrants found."]})})]})},f=function(u){var m=(0,n.yy)(),c=m.act,h=m.data,l=h.warrantname,d=h.warrantcharges,p=h.warrantauth,C=h.type,y=C==="arrest",b=C==="arrest"?"Name":"Location",O=C==="arrest"?"Charges":"Reason";return(0,e.jsx)(r.iG,{title:y?"Editing Arrest Warrant":"Editing Search Warrant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.q,{icon:"save",onClick:function(){return c("savewarrant")},children:"Save"}),(0,e.jsx)(r.q,{color:"bad",icon:"trash",onClick:function(){return c("deletewarrant")},children:"Delete"}),(0,e.jsx)(r.q,{icon:"undo",onClick:function(){return c("back")},children:"Back"})]}),children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:b,buttons:y&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.q,{icon:"search",onClick:function(){return c("editwarrantname")}}),(0,e.jsx)(r.q,{icon:"pen",onClick:function(){return c("editwarrantnamecustom")}})]})||(0,e.jsx)(r.q,{icon:"pen",onClick:function(){return c("editwarrantnamecustom")}}),children:l}),(0,e.jsx)(r.Ce.Item,{label:O,buttons:(0,e.jsx)(r.q,{icon:"pen",onClick:function(){return c("editwarrantcharges")}}),children:d}),(0,e.jsx)(r.Ce.Item,{label:"Authorized By",buttons:(0,e.jsx)(r.q,{icon:"balance-scale",onClick:function(){return c("editwarrantauth")}}),children:p})]})})}},17032:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosEmailAdministration:function(){return v}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=t(78319),v=function(m){var c=(0,s.yy)(),h=c.act,l=c.data,d=l.error,p=l.cur_title,C=l.current_account,y=(0,e.jsx)(g,{});return d?y=(0,e.jsx)(x,{}):p?y=(0,e.jsx)(f,{}):C&&(y=(0,e.jsx)(u,{})),(0,e.jsx)(r.g9,{width:600,height:450,children:(0,e.jsx)(r.g9.Content,{scrollable:!0,children:y})})},g=function(m){var c=(0,s.yy)(),h=c.act,l=c.data,d=l.accounts;return(0,e.jsxs)(n.iG,{title:"Welcome to the NTNet Email Administration System",children:[(0,e.jsx)(n.kv,{italic:!0,mb:1,children:"SECURE SYSTEM - Have your identification ready"}),(0,e.jsx)(n.q,{fluid:!0,icon:"plus",onClick:function(){return h("newaccount")},children:"Create New Account"}),(0,e.jsx)(n.kv,{bold:!0,mt:1,mb:1,children:"Select account to administrate"}),d.map(function(p){return(0,e.jsx)(n.q,{fluid:!0,icon:"eye",onClick:function(){return h("viewaccount",{viewaccount:p.uid})},children:p.login},p.uid)})]})},x=function(m){var c=(0,s.yy)(),h=c.act,l=c.data,d=l.error;return(0,e.jsx)(n.iG,{title:"Message",buttons:(0,e.jsx)(n.q,{icon:"undo",onClick:function(){return h("back")},children:"Back"}),children:d})},f=function(m){var c=(0,s.yy)(),h=c.act,l=c.data;return(0,e.jsx)(n.iG,{children:(0,e.jsx)(o.NtosEmailClientViewMessage,{administrator:!0})})},u=function(m){var c=(0,s.yy)(),h=c.act,l=c.data,d=l.error,p=l.msg_title,C=l.msg_body,y=l.msg_timestamp,b=l.msg_source,O=l.current_account,I=l.cur_suspended,_=l.messages,A=l.accounts;return(0,e.jsxs)(n.iG,{title:"Viewing "+O+" in admin mode",buttons:(0,e.jsx)(n.q,{icon:"undo",onClick:function(){return h("back")},children:"Back"}),children:[(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Account Status",children:(0,e.jsx)(n.q,{color:I?"bad":"",icon:"ban",tooltip:(I?"Uns":"S")+"uspend Account?",onClick:function(){return h("ban")},children:I?"Suspended":"Normal"})}),(0,e.jsx)(n.Ce.Item,{label:"Actions",children:(0,e.jsx)(n.q,{icon:"key",onClick:function(){return h("changepass")},children:"Change Password"})})]}),(0,e.jsx)(n.iG,{level:2,title:"Messages",children:_.length&&(0,e.jsxs)(n.oJ,{children:[(0,e.jsxs)(n.oJ.Row,{header:!0,children:[(0,e.jsx)(n.oJ.Cell,{children:"Source"}),(0,e.jsx)(n.oJ.Cell,{children:"Title"}),(0,e.jsx)(n.oJ.Cell,{children:"Received at"}),(0,e.jsx)(n.oJ.Cell,{children:"Actions"})]}),_.map(function(P){return(0,e.jsxs)(n.oJ.Row,{children:[(0,e.jsx)(n.oJ.Cell,{children:P.source}),(0,e.jsx)(n.oJ.Cell,{children:P.title}),(0,e.jsx)(n.oJ.Cell,{children:P.timestamp}),(0,e.jsx)(n.oJ.Cell,{children:(0,e.jsx)(n.q,{icon:"eye",onClick:function(){return h("viewmail",{viewmail:P.uid})},children:"View"})})]},P.uid)})]})||(0,e.jsx)(n.kv,{color:"average",children:"No messages found in selected account."})})]})}},78319:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosEmailClient:function(){return v},NtosEmailClientViewMessage:function(){return u}});var e=t(33496),s=t(10608),n=t(45280),r=t(68644),o=t(76512),v=function(d){var p=(0,n.yy)(),C=p.act,y=p.data,b=y.PC_device_theme,O=y.error,I=y.downloading,_=y.current_account,A=(0,e.jsx)(l,{});return O?A=(0,e.jsx)(h,{error:O}):I?A=(0,e.jsx)(g,{}):_&&(A=(0,e.jsx)(x,{})),(0,e.jsx)(o.g9,{resizable:!0,theme:b,children:(0,e.jsx)(o.g9.Content,{scrollable:!0,children:A})})},g=function(d){var p=(0,n.yy)(),C=p.act,y=p.data,b=y.down_filename,O=y.down_progress,I=y.down_size,_=y.down_speed;return(0,e.jsx)(r.iG,{title:"Downloading...",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsxs)(r.Ce.Item,{label:"File",children:[b," (",I," GQ)"]}),(0,e.jsxs)(r.Ce.Item,{label:"Speed",children:[(0,e.jsx)(r.Gg,{value:_})," GQ/s"]}),(0,e.jsx)(r.Ce.Item,{label:"Progress",children:(0,e.jsxs)(r.cH,{color:"good",value:O,maxValue:I,children:[O,"/",I," (",(0,s.kL)(O/I*100,1),"%)"]})})]})})},x=function(d){var p=(0,n.yy)(),C=p.act,y=p.data,b=y.current_account,O=y.addressbook,I=y.new_message,_=y.cur_title,A=(0,e.jsx)(f,{});return O?A=(0,e.jsx)(m,{}):I?A=(0,e.jsx)(c,{}):_&&(A=(0,e.jsx)(u,{})),(0,e.jsx)(r.iG,{title:"Logged in as: "+b,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.q,{icon:"plus",tooltip:"New Message",tooltipPosition:"left",onClick:function(){return C("new_message")}}),(0,e.jsx)(r.q,{icon:"cogs",tooltip:"Change Password",tooltipPosition:"left",onClick:function(){return C("changepassword")}}),(0,e.jsx)(r.q,{icon:"sign-out-alt",tooltip:"Log Out",tooltipPosition:"left",onClick:function(){return C("logout")}})]}),children:A})},f=function(d){var p=(0,n.yy)(),C=p.act,y=p.data,b=y.current_account,O=y.folder,I=y.messagecount,_=y.messages;return(0,e.jsxs)(r.iG,{level:2,noTopPadding:!0,children:[(0,e.jsxs)(r.kZ,{children:[(0,e.jsx)(r.kZ.Tab,{selected:O==="Inbox",onClick:function(){return C("set_folder",{set_folder:"Inbox"})},children:"Inbox"}),(0,e.jsx)(r.kZ.Tab,{selected:O==="Spam",onClick:function(){return C("set_folder",{set_folder:"Spam"})},children:"Spam"}),(0,e.jsx)(r.kZ.Tab,{selected:O==="Deleted",onClick:function(){return C("set_folder",{set_folder:"Deleted"})},children:"Deleted"})]}),I&&(0,e.jsx)(r.iG,{children:(0,e.jsxs)(r.oJ,{children:[(0,e.jsxs)(r.oJ.Row,{header:!0,children:[(0,e.jsx)(r.oJ.Cell,{children:"Source"}),(0,e.jsx)(r.oJ.Cell,{children:"Title"}),(0,e.jsx)(r.oJ.Cell,{children:"Received At"}),(0,e.jsx)(r.oJ.Cell,{children:"Actions"})]}),_.map(function(A){return(0,e.jsxs)(r.oJ.Row,{children:[(0,e.jsx)(r.oJ.Cell,{children:A.source}),(0,e.jsx)(r.oJ.Cell,{children:A.title}),(0,e.jsx)(r.oJ.Cell,{children:A.timestamp}),(0,e.jsxs)(r.oJ.Cell,{children:[(0,e.jsx)(r.q,{icon:"eye",onClick:function(){return C("view",{view:A.uid})},tooltip:"View"}),(0,e.jsx)(r.q,{icon:"share",onClick:function(){return C("reply",{reply:A.uid})},tooltip:"Reply"}),(0,e.jsx)(r.q,{color:"bad",icon:"trash",onClick:function(){return C("delete",{delete:A.uid})},tooltip:"Delete"})]})]},A.timestamp+A.title)})]})})||(0,e.jsxs)(r.kv,{color:"bad",children:["No emails found in ",O,"."]})]})},u=function(d){var p=(0,n.yy)(),C=p.act,y=p.data,b=d.administrator,O=y.cur_title,I=y.cur_source,_=y.cur_timestamp,A=y.cur_body,P=y.cur_hasattachment,T=y.cur_attachment_filename,R=y.cur_attachment_size,L=y.cur_uid;return(0,e.jsx)(r.iG,{title:O,buttons:b?(0,e.jsx)(r.q,{icon:"times",onClick:function(){return C("back")}}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.q,{icon:"share",tooltip:"Reply",tooltipPosition:"left",onClick:function(){return C("reply",{reply:L})}}),(0,e.jsx)(r.q,{color:"bad",icon:"trash",tooltip:"Delete",tooltipPosition:"left",onClick:function(){return C("delete",{delete:L})}}),(0,e.jsx)(r.q,{icon:"save",tooltip:"Save To Disk",tooltipPosition:"left",onClick:function(){return C("save",{save:L})}}),P&&(0,e.jsx)(r.q,{icon:"paperclip",tooltip:"Save Attachment",tooltipPosition:"left",onClick:function(){return C("downloadattachment")}})||null,(0,e.jsx)(r.q,{icon:"times",tooltip:"Close",tooltipPosition:"left",onClick:function(){return C("cancel",{cancel:L})}})]}),children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"From",children:I}),(0,e.jsx)(r.Ce.Item,{label:"At",children:_}),P&&!b&&(0,e.jsxs)(r.Ce.Item,{label:"Attachment",color:"average",children:[T," (",R,"GQ)"]})||null,(0,e.jsx)(r.Ce.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsx)(r.iG,{children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:A}})})})]})})},m=function(d){var p=(0,n.yy)(),C=p.act,y=p.data,b=y.accounts;return(0,e.jsx)(r.iG,{title:"Address Book",level:2,buttons:(0,e.jsx)(r.q,{color:"bad",icon:"times",onClick:function(){return C("set_recipient",{set_recipient:null})}}),children:b.map(function(O){return(0,e.jsx)(r.q,{content:O.login,fluid:!0,onClick:function(){return C("set_recipient",{set_recipient:O.login})}},O.login)})})},c=function(d){var p=(0,n.yy)(),C=p.act,y=p.data,b=y.current_account,O=y.msg_title,I=y.msg_recipient,_=y.msg_body,A=y.msg_hasattachment,P=y.msg_attachment_filename,T=y.msg_attachment_size;return(0,e.jsx)(r.iG,{title:"New Message",level:2,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.q,{icon:"share",onClick:function(){return C("send")},children:"Send Message"}),(0,e.jsx)(r.q,{color:"bad",icon:"times",onClick:function(){return C("cancel")}})]}),children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Title",children:(0,e.jsx)(r.EF,{fluid:!0,value:O,onInput:function(R,L){return C("edit_title",{val:L})}})}),(0,e.jsx)(r.Ce.Item,{label:"Recipient",verticalAlign:"top",children:(0,e.jsxs)(r.Cu,{children:[(0,e.jsx)(r.Cu.Item,{grow:1,children:(0,e.jsx)(r.EF,{fluid:!0,value:I,onInput:function(R,L){return C("edit_recipient",{val:L})}})}),(0,e.jsx)(r.Cu.Item,{children:(0,e.jsx)(r.q,{icon:"address-book",onClick:function(){return C("addressbook")},tooltip:"Find Receipients",tooltipPosition:"left"})})]})}),(0,e.jsx)(r.Ce.Item,{label:"Attachments",buttons:A&&(0,e.jsx)(r.q,{color:"bad",icon:"times",onClick:function(){return C("remove_attachment")},children:"Remove Attachment"})||(0,e.jsx)(r.q,{icon:"plus",onClick:function(){return C("addattachment")},children:"Add Attachment"}),children:A&&(0,e.jsxs)(r.kv,{inline:!0,children:[P," (",T,"GQ)"]})||null}),(0,e.jsx)(r.Ce.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsxs)(r.Cu,{children:[(0,e.jsx)(r.Cu.Item,{grow:1,children:(0,e.jsx)(r.iG,{width:"99%",inline:!0,children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:_}})})}),(0,e.jsx)(r.Cu.Item,{children:(0,e.jsx)(r.q,{verticalAlign:"top",onClick:function(){return C("edit_body")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})})]})})},h=function(d){var p=(0,n.yy)().act,C=d.error;return(0,e.jsx)(r.iG,{title:"Notification",buttons:(0,e.jsx)(r.q,{icon:"arrow-left",content:"Return",onClick:function(){return p("reset")}}),children:(0,e.jsx)(r.kv,{color:"bad",children:C})})},l=function(d){var p=(0,n.yy)(),C=p.act,y=p.data,b=y.stored_login,O=y.stored_password;return(0,e.jsxs)(r.iG,{title:"Please Log In",children:[(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Email address",children:(0,e.jsx)(r.EF,{fluid:!0,value:b,onInput:function(I,_){return C("edit_login",{val:_})}})}),(0,e.jsx)(r.Ce.Item,{label:"Password",children:(0,e.jsx)(r.EF,{fluid:!0,value:O,onInput:function(I,_){return C("edit_password",{val:_})}})})]}),(0,e.jsx)(r.q,{icon:"sign-in-alt",onClick:function(){return C("login")},children:"Log In"})]})}},87384:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosFileManager:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(g){var x=(0,s.yy)(),f=x.act,u=x.data,m=u.PC_device_theme,c=u.usbconnected,h=u.filename,l=u.filedata,d=u.error,p=u.files,C=p===void 0?[]:p,y=u.usbfiles,b=y===void 0?[]:y;return(0,e.jsx)(r.g9,{resizable:!0,theme:m,children:(0,e.jsxs)(r.g9.Content,{scrollable:!0,children:[h&&(0,e.jsx)(n.iG,{title:"Viewing File "+h,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.q,{icon:"pen",content:"Edit",onClick:function(){return f("PRG_edit")}}),(0,e.jsx)(n.q,{icon:"print",content:"Print",onClick:function(){return f("PRG_printfile")}}),(0,e.jsx)(n.q,{icon:"times",content:"Close",onClick:function(){return f("PRG_closefile")}})]}),children:l&&(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:l}})})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.iG,{children:(0,e.jsx)(v,{files:C,usbconnected:c,onUpload:function(O){return f("PRG_copytousb",{uid:O})},onDelete:function(O){return f("PRG_deletefile",{uid:O})},onOpen:function(O){return f("PRG_openfile",{uid:O})},onRename:function(O,I){return f("PRG_rename",{uid:O,new_name:I})},onDuplicate:function(O){return f("PRG_clone",{uid:O})}})}),c&&(0,e.jsx)(n.iG,{title:"Data Disk",children:(0,e.jsx)(v,{usbmode:!0,files:b,usbconnected:c,onUpload:function(O){return f("PRG_copyfromusb",{uid:O})},onDelete:function(O){return f("PRG_deletefile",{uid:O})},onOpen:function(O){return f("PRG_openfile",{uid:O})},onRename:function(O,I){return f("PRG_rename",{uid:O,new_name:I})},onDuplicate:function(O){return f("PRG_clone",{uid:O})}})})||null,(0,e.jsx)(n.iG,{children:(0,e.jsx)(n.q,{icon:"plus",onClick:function(){return f("PRG_newtextfile")},children:"New Text File"})})]}),d&&(0,e.jsxs)(n.Cu,{wrap:"wrap",position:"fixed",bottom:"5px",children:[(0,e.jsx)(n.Cu.Item,{children:(0,e.jsx)(n.iG,{children:(0,e.jsx)(n.q,{bottom:"0",left:"0",icon:"ban",onClick:function(){return f("PRG_clearerror")}})})}),(0,e.jsx)(n.iG,{children:(0,e.jsx)(n.Cu.Item,{grow:!0,children:d})})]})]})})},v=function(g){var x=g.files,f=x===void 0?[]:x,u=g.usbconnected,m=g.usbmode,c=g.onUpload,h=g.onDelete,l=g.onRename,d=g.onOpen;return(0,e.jsxs)(n.oJ,{children:[(0,e.jsxs)(n.oJ.Row,{header:!0,children:[(0,e.jsx)(n.oJ.Cell,{children:"File"}),(0,e.jsx)(n.oJ.Cell,{collapsing:!0,children:"Type"}),(0,e.jsx)(n.oJ.Cell,{collapsing:!0,children:"Size"})]}),f.map(function(p){return(0,e.jsxs)(n.oJ.Row,{className:"candystripe",children:[(0,e.jsx)(n.oJ.Cell,{children:p.undeletable?p.name:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.q.Input,{width:"80%",content:p.name,currentValue:p.name,tooltip:"Rename",onCommit:function(C,y){return l(p.uid,y)}}),(0,e.jsx)(n.q,{content:"Open",onClick:function(){return d(p.uid)}})]})}),(0,e.jsx)(n.oJ.Cell,{children:p.type}),(0,e.jsx)(n.oJ.Cell,{children:p.size}),(0,e.jsx)(n.oJ.Cell,{collapsing:!0,children:!p.undeletable&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.q.Confirm,{icon:"trash",confirmIcon:"times",confirmContent:"",tooltip:"Delete",onClick:function(){return h(p.uid)}}),!!u&&(m?(0,e.jsx)(n.q,{icon:"download",tooltip:"Download",onClick:function(){return c(p.uid)}}):(0,e.jsx)(n.q,{icon:"upload",tooltip:"Upload",onClick:function(){return c(p.uid)}}))]})})]},p.name)})]})}},86564:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosIdentificationComputer:function(){return r}});var e=t(33496),s=t(76512),n=t(8816),r=function(){return(0,e.jsx)(s.g9,{width:600,height:700,children:(0,e.jsx)(s.g9.Content,{scrollable:!0,children:(0,e.jsx)(n.IdentificationComputerContent,{ntos:!0})})})}},72892:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosMain:function(){return v}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o={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"},v=function(g){var x=(0,s.yy)(),f=x.act,u=x.data,m=u.device_theme,c=u.programs,h=c===void 0?[]:c,l=u.has_light,d=u.light_on,p=u.comp_light_color,C=u.removable_media,y=C===void 0?[]:C,b=u.login,O=b===void 0?[]:b;return(0,e.jsx)(r.g9,{title:m==="syndicate"&&"Syndix Main Menu"||"NtOS Main Menu",theme:m,width:400,height:500,children:(0,e.jsxs)(r.g9.Content,{scrollable:!0,children:[!!l&&(0,e.jsxs)(n.iG,{children:[(0,e.jsxs)(n.q,{width:"144px",icon:"lightbulb",selected:d,onClick:function(){return f("PC_toggle_light")},children:["Flashlight: ",d?"ON":"OFF"]}),(0,e.jsxs)(n.q,{ml:1,onClick:function(){return f("PC_light_color")},children:["Color:",(0,e.jsx)(n.wP,{ml:1,color:p})]})]}),(0,e.jsx)(n.iG,{title:"User Login",buttons:(0,e.jsx)(n.q,{icon:"eject",content:"Eject ID",disabled:!O.IDName,onClick:function(){return f("PC_Eject_Disk",{name:"ID"})}}),children:(0,e.jsxs)(n.oJ,{children:[(0,e.jsxs)(n.oJ.Row,{children:["ID Name: ",O.IDName]}),(0,e.jsxs)(n.oJ.Row,{children:["Assignment: ",O.IDJob]})]})}),!!y.length&&(0,e.jsx)(n.iG,{title:"Media Eject",children:(0,e.jsx)(n.oJ,{children:y.map(function(I){return(0,e.jsx)(n.oJ.Row,{children:(0,e.jsx)(n.oJ.Cell,{children:(0,e.jsx)(n.q,{fluid:!0,color:"transparent",icon:"eject",content:I,onClick:function(){return f("PC_Eject_Disk",{name:I})}})})},I)})})}),(0,e.jsx)(n.iG,{title:"Programs",children:(0,e.jsx)(n.oJ,{children:h.map(function(I){return(0,e.jsxs)(n.oJ.Row,{children:[(0,e.jsx)(n.oJ.Cell,{children:(0,e.jsx)(n.q,{fluid:!0,color:"transparent",icon:o[I.name]||"window-maximize-o",content:I.desc,onClick:function(){return f("PC_runprogram",{name:I.name})}})}),(0,e.jsx)(n.oJ.Cell,{collapsing:!0,width:"18px",children:!!I.running&&(0,e.jsx)(n.q,{color:"transparent",icon:"times",tooltip:"Close program",tooltipPosition:"left",onClick:function(){return f("PC_killprogram",{name:I.name})}})}),(0,e.jsx)(n.oJ.Cell,{collapsing:!0,width:"18px",children:(0,e.jsx)(n.q,{color:"transparent",tooltip:"Set Autorun",tooltipPosition:"left",selected:I.autorun,onClick:function(){return f("PC_setautorun",{name:I.name})},children:"AR"})})]},I.name)})})})]})})}},84156:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosNetChat:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.can_admin,m=f.adminmode,c=f.authed,h=f.username,l=f.active_channel,d=f.is_operator,p=f.all_channels,C=p===void 0?[]:p,y=f.clients,b=y===void 0?[]:y,O=f.messages,I=O===void 0?[]:O,_=l!==null,A=c||m;return(0,e.jsx)(r.g9,{width:900,height:675,children:(0,e.jsx)(r.g9.Content,{children:(0,e.jsx)(n.iG,{height:"600px",children:(0,e.jsx)(n.oJ,{height:"580px",children:(0,e.jsxs)(n.oJ.Row,{children:[(0,e.jsxs)(n.oJ.Cell,{verticalAlign:"top",style:{width:"200px"},children:[(0,e.jsxs)(n.kv,{height:"560px",overflowY:"scroll",children:[(0,e.jsx)(n.q.Input,{fluid:!0,content:"New Channel...",onCommit:function(P,T){return x("PRG_newchannel",{new_channel_name:T})}}),C.map(function(P){return(0,e.jsx)(n.q,{fluid:!0,content:P.chan,selected:P.id===l,color:"transparent",onClick:function(){return x("PRG_joinchannel",{id:P.id})}},P.chan)})]}),(0,e.jsx)(n.q.Input,{fluid:!0,mt:1,content:h+"...",currentValue:h,onCommit:function(P,T){return x("PRG_changename",{new_name:T})}}),!!u&&(0,e.jsx)(n.q,{fluid:!0,bold:!0,content:"ADMIN MODE: "+(m?"ON":"OFF"),color:m?"bad":"good",onClick:function(){return x("PRG_toggleadmin")}})]}),(0,e.jsxs)(n.oJ.Cell,{children:[(0,e.jsx)(n.kv,{height:"560px",overflowY:"scroll",children:_&&(A?I.map(function(P){return(0,e.jsx)(n.kv,{children:P.msg},P.msg)}):(0,e.jsxs)(n.kv,{textAlign:"center",children:[(0,e.jsx)(n.GW,{name:"exclamation-triangle",mt:4,fontSize:"40px"}),(0,e.jsx)(n.kv,{mt:1,bold:!0,fontSize:"18px",children:"THIS CHANNEL IS PASSWORD PROTECTED"}),(0,e.jsx)(n.kv,{mt:1,children:"INPUT PASSWORD TO ACCESS"})]}))}),(0,e.jsx)(n.EF,{fluid:!0,selfClear:!0,mt:1,onEnter:function(P,T){return x("PRG_speak",{message:T})}})]}),(0,e.jsxs)(n.oJ.Cell,{verticalAlign:"top",style:{width:"150px"},children:[(0,e.jsx)(n.kv,{height:"465px",overflowY:"scroll",children:b.map(function(P){return(0,e.jsx)(n.kv,{children:P.name},P.name)})}),_&&A&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.q.Input,{fluid:!0,content:"Save log...",defaultValue:"new_log",onCommit:function(P,T){return x("PRG_savelog",{log_name:T})}}),(0,e.jsx)(n.q.Confirm,{fluid:!0,content:"Leave Channel",onClick:function(){return x("PRG_leavechannel")}})]}),!!d&&c&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.q.Confirm,{fluid:!0,content:"Delete Channel",onClick:function(){return x("PRG_deletechannel")}}),(0,e.jsx)(n.q.Input,{fluid:!0,content:"Rename Channel...",onCommit:function(P,T){return x("PRG_renamechannel",{new_name:T})}}),(0,e.jsx)(n.q.Input,{fluid:!0,content:"Set Password...",onCommit:function(P,T){return x("PRG_setpassword",{new_password:T})}})]})]})]})})})})})}},43688:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosNetDos:function(){return o},NtosNetDosContent:function(){return v}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(){return(0,e.jsx)(r.g9,{width:400,height:250,theme:"syndicate",children:(0,e.jsx)(r.g9.Content,{children:(0,e.jsx)(v,{})})})},v=function(g){var x=(0,s.yy)(),f=x.act,u=x.data,m=u.relays,c=m===void 0?[]:m,h=u.focus,l=u.target,d=u.speed,p=u.overload,C=u.capacity,y=u.error;if(y)return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.yc,{children:y}),(0,e.jsx)(n.q,{fluid:!0,content:"Reset",textAlign:"center",onClick:function(){return f("PRG_reset")}})]});var b=function(I){for(var _="",A=p/C;_.lengthA?_+="0":_+="1";return _},O=45;return l?(0,e.jsxs)(n.iG,{fontFamily:"monospace",textAlign:"center",children:[(0,e.jsxs)(n.kv,{children:["CURRENT SPEED: ",d," GQ/s"]}),(0,e.jsx)(n.kv,{children:b(O)}),(0,e.jsx)(n.kv,{children:b(O)}),(0,e.jsx)(n.kv,{children:b(O)}),(0,e.jsx)(n.kv,{children:b(O)}),(0,e.jsx)(n.kv,{children:b(O)})]}):(0,e.jsxs)(n.iG,{children:[(0,e.jsx)(n.Ce,{children:(0,e.jsx)(n.Ce.Item,{label:"Target",children:c.map(function(I){return(0,e.jsx)(n.q,{content:I.id,selected:h===I.id,onClick:function(){return f("PRG_target_relay",{targid:I.id})}},I.id)})})}),(0,e.jsx)(n.q,{fluid:!0,bold:!0,content:"EXECUTE",color:"bad",textAlign:"center",disabled:!h,mt:1,onClick:function(){return f("PRG_execute")}})]})}},89128:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosNetDownloader:function(){return v}});var e=t(33496),s=t(10608),n=t(45280),r=t(68644),o=t(76512),v=function(x){var f=(0,n.yy)(),u=f.act,m=f.data,c=m.PC_device_theme,h=m.disk_size,l=m.disk_used,d=m.downloadable_programs,p=d===void 0?[]:d,C=m.error,y=m.hacked_programs,b=y===void 0?[]:y,O=m.hackedavailable;return(0,e.jsx)(o.g9,{theme:c,width:480,height:735,children:(0,e.jsxs)(o.g9.Content,{scrollable:!0,children:[!!C&&(0,e.jsxs)(r.yc,{children:[(0,e.jsx)(r.kv,{mb:1,children:C}),(0,e.jsx)(r.q,{content:"Reset",onClick:function(){return u("PRG_reseterror")}})]}),(0,e.jsx)(r.iG,{children:(0,e.jsx)(r.Ce,{children:(0,e.jsx)(r.Ce.Item,{label:"Disk usage",children:(0,e.jsx)(r.cH,{value:l,minValue:0,maxValue:h,children:l+" GQ / "+h+" GQ"})})})}),(0,e.jsx)(r.iG,{children:p.map(function(I){return(0,e.jsx)(g,{program:I},I.filename)})}),!!O&&(0,e.jsxs)(r.iG,{title:"UNKNOWN Software Repository",children:[(0,e.jsx)(r.yc,{mb:1,children:"Please note that Nanotrasen does not recommend download of software from non-official servers."}),b.map(function(I){return(0,e.jsx)(g,{program:I},I.filename)})]})]})})},g=function(x){var f=x.program,u=(0,n.yy)(),m=u.act,c=u.data,h=c.disk_size,l=c.disk_used,d=c.downloadcompletion,p=c.downloading,C=c.downloadname,y=c.downloadsize,b=c.downloadspeed,O=c.downloads_queue,I=h-l;return(0,e.jsxs)(r.kv,{mb:3,children:[(0,e.jsxs)(r.Cu,{align:"baseline",children:[(0,e.jsx)(r.Cu.Item,{bold:!0,grow:1,children:f.filedesc}),(0,e.jsxs)(r.Cu.Item,{color:"label",nowrap:!0,children:[f.size," GQ"]}),(0,e.jsx)(r.Cu.Item,{ml:2,width:"94px",textAlign:"center",children:f.filename===C&&(0,e.jsxs)(r.cH,{color:"green",minValue:0,maxValue:y,value:d,children:[(0,s.kL)(d/y*100,1),"% (",b,"GQ/s)"]})||O.indexOf(f.filename)!==-1&&(0,e.jsx)(r.q,{icon:"ban",color:"bad",onClick:function(){return m("PRG_removequeued",{filename:f.filename})},children:"Queued..."})||(0,e.jsx)(r.q,{fluid:!0,icon:"download",content:"Download",disabled:f.size>I,onClick:function(){return m("PRG_downloadfile",{filename:f.filename})}})})]}),f.compatibility!=="Compatible"&&(0,e.jsxs)(r.kv,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,e.jsx)(r.GW,{mx:1,color:"red",name:"times"}),"Incompatible!"]}),f.size>I&&(0,e.jsxs)(r.kv,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,e.jsx)(r.GW,{mx:1,color:"red",name:"times"}),"Not enough disk space!"]}),(0,e.jsx)(r.kv,{mt:1,italic:!0,color:"label",fontSize:"12px",children:f.fileinfo})]})}},9736:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosNetMonitor:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.ntnetrelays,m=f.ntnetstatus,c=f.config_softwaredownload,h=f.config_peertopeer,l=f.config_communication,d=f.config_systemcontrol,p=f.idsalarm,C=f.idsstatus,y=f.ntnetmaxlogs,b=f.maxlogs,O=f.minlogs,I=f.banned_nids,_=f.ntnetlogs,A=_===void 0?[]:_;return(0,e.jsx)(r.g9,{children:(0,e.jsxs)(r.g9.Content,{scrollable:!0,children:[(0,e.jsx)(n.yc,{children:"WARNING: Disabling wireless transmitters when using a wireless device may prevent you from reenabling them!"}),(0,e.jsx)(n.iG,{title:"Wireless Connectivity",buttons:(0,e.jsx)(n.q.Confirm,{icon:m?"power-off":"times",content:m?"ENABLED":"DISABLED",selected:m,onClick:function(){return x("toggleWireless")}}),children:u?(0,e.jsx)(n.Ce,{children:(0,e.jsx)(n.Ce.Item,{label:"Active NTNet Relays",children:u})}):"No Relays Connected"}),(0,e.jsx)(n.iG,{title:"Firewall Configuration",children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Software Downloads",buttons:(0,e.jsx)(n.q,{icon:c?"power-off":"times",content:c?"ENABLED":"DISABLED",selected:c,onClick:function(){return x("toggle_function",{id:"1"})}})}),(0,e.jsx)(n.Ce.Item,{label:"Peer to Peer Traffic",buttons:(0,e.jsx)(n.q,{icon:h?"power-off":"times",content:h?"ENABLED":"DISABLED",selected:h,onClick:function(){return x("toggle_function",{id:"2"})}})}),(0,e.jsx)(n.Ce.Item,{label:"Communication Systems",buttons:(0,e.jsx)(n.q,{icon:l?"power-off":"times",content:l?"ENABLED":"DISABLED",selected:l,onClick:function(){return x("toggle_function",{id:"3"})}})}),(0,e.jsx)(n.Ce.Item,{label:"Remote System Control",buttons:(0,e.jsx)(n.q,{icon:d?"power-off":"times",content:d?"ENABLED":"DISABLED",selected:d,onClick:function(){return x("toggle_function",{id:"4"})}})})]})}),(0,e.jsxs)(n.iG,{title:"Security Systems",children:[!!p&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.yc,{children:"NETWORK INCURSION DETECTED"}),(0,e.jsx)(n.kv,{italics:!0,children:"Abnormal activity has been detected in the network. Check system logs for more information"})]}),(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Banned NIDs",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.q,{icon:"ban",onClick:function(){return x("ban_nid")},children:"Ban NID"}),(0,e.jsx)(n.q,{icon:"balance-scale",onClick:function(){return x("unban_nid")},children:"Unban NID"})]}),children:I.join(", ")||"None"}),(0,e.jsx)(n.Ce.Item,{label:"IDS Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.q,{icon:C?"power-off":"times",content:C?"ENABLED":"DISABLED",selected:C,onClick:function(){return x("toggleIDS")}}),(0,e.jsx)(n.q,{icon:"sync",content:"Reset",color:"bad",onClick:function(){return x("resetIDS")}})]})}),(0,e.jsx)(n.Ce.Item,{label:"Max Log Count",buttons:(0,e.jsx)(n.Ef,{value:y,minValue:O,maxValue:b,width:"39px",onChange:function(P,T){return x("updatemaxlogs",{new_number:T})}})})]}),(0,e.jsx)(n.iG,{title:"System Log",level:2,buttons:(0,e.jsx)(n.q.Confirm,{icon:"trash",content:"Clear Logs",onClick:function(){return x("purgelogs")}}),children:A.map(function(P){return(0,e.jsx)(n.kv,{className:"candystripe",children:P.entry},P.entry)})})]})]})})}},6600:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosNetTransfer:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(m){var c=(0,s.yy)(),h=c.act,l=c.data,d=l.error,p=l.downloading,C=l.uploading,y=l.upload_filelist,b=(0,e.jsx)(u,{});return d?b=(0,e.jsx)(v,{}):p?b=(0,e.jsx)(g,{}):C?b=(0,e.jsx)(x,{}):y.length&&(b=(0,e.jsx)(f,{})),(0,e.jsx)(r.g9,{width:575,height:700,children:(0,e.jsx)(r.g9.Content,{scrollable:!0,children:b})})},v=function(m){var c=(0,s.yy)(),h=c.act,l=c.data,d=l.error;return(0,e.jsxs)(n.iG,{title:"An error has occured during operation.",buttons:(0,e.jsx)(n.q,{icon:"undo",onClick:function(){return h("PRG_reset")},children:"Reset"}),children:["Additional Information: ",d]})},g=function(m){var c=(0,s.yy)(),h=c.act,l=c.data,d=l.download_name,p=l.download_progress,C=l.download_size,y=l.download_netspeed;return(0,e.jsx)(n.iG,{title:"Download in progress",children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Downloaded File",children:d}),(0,e.jsx)(n.Ce.Item,{label:"Progress",children:(0,e.jsxs)(n.cH,{value:p,maxValue:C,children:[p," / ",C," GQ"]})}),(0,e.jsxs)(n.Ce.Item,{label:"Transfer Speed",children:[y," GQ/s"]}),(0,e.jsx)(n.Ce.Item,{label:"Controls",children:(0,e.jsx)(n.q,{icon:"ban",onClick:function(){return h("PRG_reset")},children:"Cancel Download"})})]})})},x=function(m){var c=(0,s.yy)(),h=c.act,l=c.data,d=l.upload_clients,p=l.upload_filename,C=l.upload_haspassword;return(0,e.jsx)(n.iG,{title:"Server enabled",children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Clients Connected",children:d}),(0,e.jsx)(n.Ce.Item,{label:"Provided file",children:p}),(0,e.jsx)(n.Ce.Item,{label:"Server Password",children:C?"Enabled":"Disabled"}),(0,e.jsxs)(n.Ce.Item,{label:"Commands",children:[(0,e.jsx)(n.q,{icon:"lock",onClick:function(){return h("PRG_setpassword")},children:"Set Password"}),(0,e.jsx)(n.q,{icon:"ban",onClick:function(){return h("PRG_reset")},children:"Cancel Upload"})]})]})})},f=function(m){var c=(0,s.yy)(),h=c.act,l=c.data,d=l.upload_filelist;return(0,e.jsxs)(n.iG,{title:"File transfer server ready.",buttons:(0,e.jsx)(n.q,{icon:"undo",onClick:function(){return h("PRG_reset")},children:"Cancel"}),children:[(0,e.jsx)(n.q,{fluid:!0,icon:"lock",onClick:function(){return h("PRG_setpassword")},children:"Set Password"}),(0,e.jsx)(n.iG,{title:"Pick file to serve.",level:2,children:d.map(function(p){return(0,e.jsxs)(n.q,{fluid:!0,icon:"upload",onClick:function(){return h("PRG_uploadfile",{uid:p.uid})},children:[p.filename," (",p.size,"GQ)"]},p.uid)})})]})},u=function(m){var c=(0,s.yy)(),h=c.act,l=c.data,d=l.servers;return(0,e.jsx)(n.iG,{title:"Available Files",buttons:(0,e.jsx)(n.q,{icon:"upload",onClick:function(){return h("PRG_uploadmenu")},children:"Send File"}),children:d.length&&(0,e.jsx)(n.Ce,{children:d.map(function(p){return(0,e.jsxs)(n.Ce.Item,{label:p.uid,children:[!!p.haspassword&&(0,e.jsx)(n.GW,{name:"lock",mr:1}),p.filename,"\xA0 (",p.size,"GQ)\xA0",(0,e.jsx)(n.q,{icon:"download",onClick:function(){return h("PRG_downloadfile",{uid:p.uid})},children:"Download"})]},p.uid)})})||(0,e.jsx)(n.kv,{children:"No upload servers found."})})}},14092:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosNewsBrowser:function(){return v}});var e=t(33496),s=t(69912),n=t(45280),r=t(68644),o=t(76512),v=function(u){var m=(0,n.yy)(),c=m.act,h=m.data,l=h.article,d=h.download,p=h.message,C=(0,e.jsx)(x,{});return l?C=(0,e.jsx)(g,{}):d&&(C=(0,e.jsx)(f,{})),(0,e.jsx)(o.g9,{width:575,height:750,children:(0,e.jsxs)(o.g9.Content,{scrollable:!0,children:[!!p&&(0,e.jsxs)(r.yc,{children:[p," ",(0,e.jsx)(r.q,{icon:"times",onClick:function(){return c("PRG_clearmessage")}})]}),C]})})},g=function(u){var m=(0,n.yy)(),c=m.act,h=m.data,l=h.article;if(!l)return(0,e.jsx)(r.iG,{children:"Error: Article not found."});var d=l.title,p=l.cover,C=l.content;return(0,e.jsxs)(r.iG,{title:"Viewing: "+d,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.q,{icon:"save",onClick:function(){return c("PRG_savearticle")},children:"Save"}),(0,e.jsx)(r.q,{icon:"times",onClick:function(){return c("PRG_reset")},children:"Close"})]}),children:[!!p&&(0,e.jsx)("img",{src:(0,s.e)(p)}),(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:C}})]})},x=function(u){var m=(0,n.yy)(),c=m.act,h=m.data,l=h.showing_archived,d=h.all_articles;return(0,e.jsx)(r.iG,{title:"Articles List",buttons:(0,e.jsx)(r.q.Checkbox,{onClick:function(){return c("PRG_toggle_archived")},checked:l,children:"Show Archived"}),children:(0,e.jsx)(r.Ce,{children:d.length&&d.map(function(p){return(0,e.jsxs)(r.Ce.Item,{label:p.name,buttons:(0,e.jsx)(r.q,{icon:"download",onClick:function(){return c("PRG_openarticle",{uid:p.uid})}}),children:[p.size," GQ"]},p.uid)})||(0,e.jsx)(r.Ce.Item,{label:"Error",children:"There appear to be no outstanding news articles on NTNet today."})})})},f=function(u){var m=(0,n.yy)(),c=m.act,h=m.data,l=h.download,d=l.download_progress,p=l.download_maxprogress,C=l.download_rate;return(0,e.jsx)(r.iG,{title:"Downloading...",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Progress",children:(0,e.jsxs)(r.cH,{color:"good",minValue:0,value:d,maxValue:p,children:[d," / ",p," GQ"]})}),(0,e.jsxs)(r.Ce.Item,{label:"Download Speed",children:[C," GQ/s"]}),(0,e.jsx)(r.Ce.Item,{label:"Controls",children:(0,e.jsx)(r.q,{icon:"ban",fluid:!0,onClick:function(){return c("PRG_reset")},children:"Abort Download"})})]})})}},30884:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosOvermapNavigation:function(){return r}});var e=t(33496),s=t(76512),n=t(11764),r=function(){return(0,e.jsx)(s.g9,{width:380,height:530,children:(0,e.jsx)(s.g9.Content,{scrollable:!0,children:(0,e.jsx)(n.OvermapNavigationContent,{})})})}},74316:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosPowerMonitor:function(){return r}});var e=t(33496),s=t(76512),n=t(56620),r=function(){return(0,e.jsx)(s.g9,{width:550,height:700,children:(0,e.jsx)(s.g9.Content,{scrollable:!0,children:(0,e.jsx)(n.PowerMonitorContent,{})})})}},80276:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosRCON:function(){return r}});var e=t(33496),s=t(76512),n=t(47816),r=function(){return(0,e.jsx)(s.g9,{width:630,height:440,children:(0,e.jsx)(s.g9.Content,{scrollable:!0,children:(0,e.jsx)(n.RCONContent,{})})})}},79064:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosRevelation:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.armed;return(0,e.jsx)(r.g9,{width:400,height:250,theme:"syndicate",children:(0,e.jsx)(r.g9.Content,{children:(0,e.jsxs)(n.iG,{children:[(0,e.jsx)(n.q.Input,{fluid:!0,content:"Obfuscate Name...",onCommit:function(m,c){return x("PRG_obfuscate",{new_name:c})},mb:1}),(0,e.jsx)(n.Ce,{children:(0,e.jsx)(n.Ce.Item,{label:"Payload Status",buttons:(0,e.jsx)(n.q,{content:u?"ARMED":"DISARMED",color:u?"bad":"average",onClick:function(){return x("PRG_arm")}})})}),(0,e.jsx)(n.q,{fluid:!0,bold:!0,content:"ACTIVATE",textAlign:"center",color:"bad",disabled:!u})]})})})}},41216:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosShutoffMonitor:function(){return r}});var e=t(33496),s=t(76512),n=t(72036),r=function(){return(0,e.jsx)(s.g9,{width:627,height:700,children:(0,e.jsx)(s.g9.Content,{children:(0,e.jsx)(n.ShutoffMonitorContent,{})})})}},6156:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosStationAlertConsole:function(){return r}});var e=t(33496),s=t(76512),n=t(19348),r=function(){return(0,e.jsx)(s.g9,{width:315,height:500,children:(0,e.jsx)(s.g9.Content,{scrollable:!0,children:(0,e.jsx)(n.StationAlertConsoleContent,{})})})}},99584:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosSupermatterMonitor:function(){return r}});var e=t(33496),s=t(76512),n=t(53736),r=function(){return(0,e.jsx)(s.g9,{width:600,height:400,children:(0,e.jsx)(s.g9.Content,{scrollable:!0,children:(0,e.jsx)(n.SupermatterMonitorContent,{})})})}},29056:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosUAV:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.current_uav,m=f.signal_strength,c=f.in_use,h=f.paired_uavs;return(0,e.jsx)(r.g9,{width:600,height:500,children:(0,e.jsxs)(r.g9.Content,{children:[(0,e.jsx)(n.iG,{title:"Selected UAV",children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"UAV",children:u&&u.status||"[Not Connected]"}),(0,e.jsx)(n.Ce.Item,{label:"Signal",children:u&&m||"[Not Connected]"}),(0,e.jsx)(n.Ce.Item,{label:"Power",children:u&&(0,e.jsx)(n.q,{icon:"power-off",selected:u.power,onClick:function(){return x("power_uav")},children:u.power?"Online":"Offline"})||"[Not Connected]"}),(0,e.jsx)(n.Ce.Item,{label:"Camera",children:u&&(0,e.jsx)(n.q,{icon:"power-off",selected:c,disabled:!u.power,onClick:function(){return x("view_uav")},children:u.power?"Available":"Unavailable"})||"[Not Connected]"})]})}),(0,e.jsx)(n.iG,{title:"Paired UAVs",children:h.length&&h.map(function(l){return(0,e.jsxs)(n.Cu,{spacing:1,children:[(0,e.jsx)(n.Cu.Item,{grow:1,children:(0,e.jsx)(n.q,{fluid:!0,icon:"quidditch",onClick:function(){return x("switch_uav",{switch_uav:l.uavref})},children:l.name})}),(0,e.jsx)(n.Cu.Item,{children:(0,e.jsx)(n.q,{color:"bad",icon:"times",onClick:function(){return x("del_uav",{del_uav:l.uavref})}})})]},l.uavref)})||(0,e.jsx)(n.kv,{color:"average",children:"No UAVs Paired."})})]})})}},93012:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosWordProcessor:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.PC_device_theme,m=f.error,c=f.browsing,h=f.files,l=f.usbconnected,d=f.usbfiles,p=f.filename,C=f.filedata;return(0,e.jsx)(r.g9,{resizable:!0,theme:u,children:(0,e.jsx)(r.g9.Content,{scrollable:!0,children:m&&(0,e.jsxs)(n.kv,{color:"bad",children:[(0,e.jsx)("h2",{children:"An Error has occured:"}),"Additional Information: ",m,"Please try again. If the problem persists, contact your system administrator for assistance.",(0,e.jsx)(n.q,{icon:"arrow-left",content:"Back to menu",onClick:function(){return x("PRG_backtomenu")}})]})||c&&(0,e.jsx)(n.iG,{title:"File Browser",buttons:(0,e.jsx)(n.q,{icon:"arrow-left",content:"Back to editor",onClick:function(){return x("PRG_closebrowser")}}),children:(0,e.jsx)(n.iG,{title:"Available documents (local)",level:2,children:(0,e.jsxs)(n.oJ,{children:[(0,e.jsxs)(n.oJ.Row,{header:!0,children:[(0,e.jsx)(n.oJ.Cell,{children:"Name"}),(0,e.jsx)(n.oJ.Cell,{children:"Size (GQ)"}),(0,e.jsx)(n.oJ.Cell,{collapsing:!0})]}),h.map(function(y,b){return(0,e.jsxs)(n.oJ.Row,{children:[(0,e.jsx)(n.oJ.Cell,{children:y.name}),(0,e.jsx)(n.oJ.Cell,{children:y.size}),(0,e.jsx)(n.oJ.Cell,{collapsing:!0,children:(0,e.jsx)(n.q,{icon:"file-word",onClick:function(){return x("PRG_openfile",{PRG_openfile:y.name})},children:"Open"})})]},b)})]})})})||(0,e.jsxs)(n.iG,{title:"Document: "+p,children:[(0,e.jsxs)(n.kv,{children:[(0,e.jsx)(n.q,{onClick:function(){return x("PRG_newfile")},children:"New"}),(0,e.jsx)(n.q,{onClick:function(){return x("PRG_loadmenu")},children:"Load"}),(0,e.jsx)(n.q,{onClick:function(){return x("PRG_savefile")},children:"Save"}),(0,e.jsx)(n.q,{onClick:function(){return x("PRG_saveasfile")},children:"Save As"})]}),(0,e.jsxs)(n.kv,{children:[(0,e.jsx)(n.q,{onClick:function(){return x("PRG_editfile")},children:"Edit"}),(0,e.jsx)(n.q,{onClick:function(){return x("PRG_txtrpeview")},children:"Preview"}),(0,e.jsx)(n.q,{onClick:function(){return x("PRG_taghelp")},children:"Formatting Help"}),(0,e.jsx)(n.q,{disabled:!C,onClick:function(){return x("PRG_printfile")},children:"Print"})]}),(0,e.jsx)(n.iG,{mt:1,children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:C}})})]})})})}},63436:function(M,j,t){"use strict";t.r(j),t.d(j,{NumberInputModal:function(){return f}});var e=t(33496),s=t(52239),n=t(69344),r=t(45280),o=t(68644),v=t(76512),g=t(14820),x=t(26896),f=function(m){var c=(0,r.yy)(),h=c.act,l=c.data,d=l.init_value,p=l.large_buttons,C=l.message,y=C===void 0?"":C,b=l.timeout,O=l.title,I=(0,n.useState)(d),_=I[0],A=I[1],P=function(R){R!==_&&A(R)},T=140+(y.length>30?Math.ceil(y.length/3):0)+(y.length&&p?5:0);return(0,e.jsxs)(v.qo,{title:O,width:270,height:T,children:[b&&(0,e.jsx)(x.Loader,{value:b}),(0,e.jsx)(v.qo.Content,{onKeyDown:function(R){R.key===s.i.Enter&&h("submit",{entry:_}),R.key===s.i.Escape&&h("cancel")},children:(0,e.jsx)(o.iG,{fill:!0,children:(0,e.jsxs)(o.fT,{fill:!0,vertical:!0,children:[(0,e.jsx)(o.fT.Item,{grow:!0,children:(0,e.jsx)(o.kv,{color:"label",children:y})}),(0,e.jsx)(o.fT.Item,{children:(0,e.jsx)(u,{input:_,onClick:P,onChange:P})}),(0,e.jsx)(o.fT.Item,{children:(0,e.jsx)(g.InputButtons,{input:_})})]})})})]})},u=function(m){var c=(0,r.yy)(),h=c.act,l=c.data,d=l.min_value,p=l.max_value,C=l.init_value,y=l.round_value,b=m.input,O=m.onClick,I=m.onChange;return(0,e.jsxs)(o.fT,{fill:!0,children:[(0,e.jsx)(o.fT.Item,{children:(0,e.jsx)(o.q,{disabled:b===d,icon:"angle-double-left",onClick:function(){return O(d)},tooltip:d?"Min ("+d+")":"Min"})}),(0,e.jsx)(o.fT.Item,{grow:!0,children:(0,e.jsx)(o.CW,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!y,minValue:d,maxValue:p,onChange:function(_,A){return I(A)},onEnter:function(_,A){return h("submit",{entry:A})},value:b})}),(0,e.jsx)(o.fT.Item,{children:(0,e.jsx)(o.q,{disabled:b===p,icon:"angle-double-right",onClick:function(){return O(p)},tooltip:p?"Max ("+p+")":"Max"})}),(0,e.jsx)(o.fT.Item,{children:(0,e.jsx)(o.q,{disabled:b===C,icon:"redo",onClick:function(){return O(C)},tooltip:C?"Reset ("+C+")":"Reset"})})]})}},24924:function(M,j,t){"use strict";t.r(j),t.d(j,{OmniFilter:function(){return v}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(g){return g.input?"Input":g.output?"Output":g.f_type?g.f_type:"Disabled"},v=function(g){var x=(0,s.yy)(),f=x.act,u=x.data,m=u.power,c=u.config,h=u.ports,l=u.set_flow_rate,d=u.last_flow_rate;return(0,e.jsx)(r.qo,{width:360,height:330,children:(0,e.jsxs)(r.qo.Content,{children:[(0,e.jsx)(n.iG,{title:c?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.q,{icon:"power-off",content:m?"On":"Off",selected:m,disabled:c,onClick:function(){return f("power")}}),(0,e.jsx)(n.q,{icon:"wrench",selected:c,onClick:function(){return f("configure")}})]}),children:(0,e.jsx)(n.Ce,{children:h?h.map(function(p){return(0,e.jsx)(n.Ce.Item,{label:p.dir+" Port",children:c?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.q,{content:"IN",selected:p.input,icon:"compress-arrows-alt",onClick:function(){return f("switch_mode",{mode:"in",dir:p.dir})}}),(0,e.jsx)(n.q,{content:"OUT",selected:p.output,icon:"expand-arrows-alt",onClick:function(){return f("switch_mode",{mode:"out",dir:p.dir})}}),(0,e.jsx)(n.q,{icon:"wrench",disabled:p.input||p.output,content:p.f_type||"None",onClick:function(){return f("switch_filter",{mode:p.f_type,dir:p.dir})}})]}):o(p)},p.dir)}):(0,e.jsx)(n.kv,{color:"bad",children:"No Ports Detected"})})}),(0,e.jsx)(n.iG,{title:"Flow Rate",children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsxs)(n.Ce.Item,{label:"Current Flow Rate",children:[d," L/s"]}),(0,e.jsx)(n.Ce.Item,{label:"Flow Rate Limit",children:c?(0,e.jsx)(n.q,{icon:"wrench",content:l/10+" L/s",onClick:function(){return f("set_flow_rate")}}):l/10+" L/s"})]})})]})})}},48416:function(M,j,t){"use strict";t.r(j),t.d(j,{OmniMixer:function(){return v}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(x){return x.input?"Input":x.output?"Output":x.f_type?x.f_type:"Disabled"},v=function(x){var f=(0,s.yy)(),u=f.act,m=f.data,c=m.power,h=m.config,l=m.ports,d=m.set_flow_rate,p=m.last_flow_rate;return(0,e.jsx)(r.qo,{width:390,height:330,children:(0,e.jsxs)(r.qo.Content,{children:[(0,e.jsx)(n.iG,{title:h?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.q,{icon:"power-off",content:c?"On":"Off",selected:c,disabled:h,onClick:function(){return u("power")}}),(0,e.jsx)(n.q,{icon:"wrench",selected:h,onClick:function(){return u("configure")}})]}),children:(0,e.jsxs)(n.oJ,{children:[(0,e.jsxs)(n.oJ.Row,{header:!0,children:[(0,e.jsx)(n.oJ.Cell,{textAlign:"center",children:"Port"}),h?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.oJ.Cell,{textAlign:"center",children:"Input"}),(0,e.jsx)(n.oJ.Cell,{textAlign:"center",children:"Output"})]}):(0,e.jsx)(n.oJ.Cell,{textAlign:"center",children:"Mode"}),(0,e.jsx)(n.oJ.Cell,{textAlign:"center",children:"Concentration"}),h?(0,e.jsx)(n.oJ.Cell,{textAlign:"center",children:"Lock"}):null]}),l?l.map(function(C){return(0,e.jsx)(g,{port:C,config:h},C.dir)}):(0,e.jsx)(n.kv,{color:"bad",children:"No Ports Detected"})]})}),(0,e.jsx)(n.iG,{title:"Flow Rate",children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsxs)(n.Ce.Item,{label:"Current Flow Rate",children:[p," L/s"]}),(0,e.jsx)(n.Ce.Item,{label:"Flow Rate Limit",children:h?(0,e.jsx)(n.q,{icon:"wrench",content:d/10+" L/s",onClick:function(){return u("set_flow_rate")}}):d/10+" L/s"})]})})]})})},g=function(x){var f=(0,s.yy)().act,u=x.port,m=x.config;return(0,e.jsxs)(n.oJ.Row,{children:[(0,e.jsx)(n.oJ.Cell,{textAlign:"center",children:u.dir+" Port"}),(0,e.jsx)(n.oJ.Cell,{textAlign:"center",children:m?(0,e.jsx)(n.q,{content:"IN",selected:u.input,disabled:u.output,icon:"compress-arrows-alt",onClick:function(){return f("switch_mode",{mode:u.input?"none":"in",dir:u.dir})}}):o(u)}),(0,e.jsx)(n.oJ.Cell,{textAlign:"center",children:m?(0,e.jsx)(n.q,{content:"OUT",selected:u.output,icon:"expand-arrows-alt",onClick:function(){return f("switch_mode",{mode:"out",dir:u.dir})}}):u.concentration*100+"%"}),m?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.oJ.Cell,{textAlign:"center",width:"20%",children:(0,e.jsx)(n.q,{width:"100%",icon:"wrench",disabled:!u.input,content:u.input?u.concentration*100+" %":"-",onClick:function(){return f("switch_con",{dir:u.dir})}})}),(0,e.jsx)(n.oJ.Cell,{textAlign:"center",children:(0,e.jsx)(n.q,{icon:u.con_lock?"lock":"lock-open",disabled:!u.input,selected:u.con_lock,content:u.f_type||"None",onClick:function(){return f("switch_conlock",{dir:u.dir})}})})]}):null]})}},40312:function(M,j,t){"use strict";t.r(j),t.d(j,{OperatingComputer:function(){return u}});var e=t(33496),s=t(10608),n=t(45280),r=t(68644),o=t(76512),v=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],g=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],x={average:[.25,.5],bad:[.5,1/0]},f=["bad","average","average","good","average","average","bad"],u=function(l){var d=(0,n.yy)(),p=d.act,C=d.data,y=C.hasOccupant,b=C.choice,O;return b?O=(0,e.jsx)(h,{}):O=y?(0,e.jsx)(m,{}):(0,e.jsx)(c,{}),(0,e.jsx)(o.qo,{width:650,height:455,children:(0,e.jsxs)(o.qo.Content,{children:[(0,e.jsxs)(r.kZ,{children:[(0,e.jsx)(r.kZ.Tab,{selected:!b,icon:"user",onClick:function(){return p("choiceOff")},children:"Patient"}),(0,e.jsx)(r.kZ.Tab,{selected:!!b,icon:"cog",onClick:function(){return p("choiceOn")},children:"Options"})]}),(0,e.jsx)(r.iG,{flexGrow:"1",children:O})]})})},m=function(l){var d=(0,n.yy)().data,p=d.occupant;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.iG,{title:"Patient",level:"2",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Name",children:p.name}),(0,e.jsx)(r.Ce.Item,{label:"Status",color:v[p.stat][0],children:v[p.stat][1]}),(0,e.jsx)(r.Ce.Item,{label:"Health",children:(0,e.jsx)(r.cH,{min:"0",max:p.maxHealth,value:p.health/p.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),g.map(function(C,y){return(0,e.jsx)(r.Ce.Item,{label:C[0]+" Damage",children:(0,e.jsx)(r.cH,{min:"0",max:"100",value:p[C[1]]/100,ranges:x,children:(0,s.kL)(p[C[1]])},y)},y)}),(0,e.jsx)(r.Ce.Item,{label:"Temperature",children:(0,e.jsxs)(r.cH,{min:"0",max:p.maxTemp,value:p.bodyTemperature/p.maxTemp,color:f[p.temperatureSuitability+3],children:[(0,s.kL)(p.btCelsius),"\xB0C, ",(0,s.kL)(p.btFaren),"\xB0F"]})}),!!p.hasBlood&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ce.Item,{label:"Blood Level",children:(0,e.jsxs)(r.cH,{min:"0",max:p.bloodMax,value:p.bloodLevel/p.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[p.bloodPercent,"%, ",p.bloodLevel,"cl"]})}),(0,e.jsxs)(r.Ce.Item,{label:"Pulse",children:[p.pulse," BPM"]})]})]})}),(0,e.jsx)(r.iG,{title:"Current Procedure",level:"2",children:p.surgery&&p.surgery.length?(0,e.jsx)(r.Ce,{children:p.surgery.map(function(C){return(0,e.jsx)(r.Ce.Item,{label:C.name,children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Current State",children:C.currentStage}),(0,e.jsx)(r.Ce.Item,{label:"Possible Next Steps",children:C.nextSteps.map(function(y){return(0,e.jsx)("div",{children:y},y)})})]})},C.name)})}):(0,e.jsx)(r.kv,{color:"label",children:"No procedure ongoing."})})]})},c=function(){return(0,e.jsx)(r.Cu,{textAlign:"center",height:"100%",children:(0,e.jsxs)(r.Cu.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(r.GW,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No patient detected."]})})},h=function(l){var d=(0,n.yy)(),p=d.act,C=d.data,y=C.verbose,b=C.health,O=C.healthAlarm,I=C.oxy,_=C.oxyAlarm,A=C.crit;return(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Loudspeaker",children:(0,e.jsx)(r.q,{selected:y,icon:y?"toggle-on":"toggle-off",content:y?"On":"Off",onClick:function(){return p(y?"verboseOff":"verboseOn")}})}),(0,e.jsx)(r.Ce.Item,{label:"Health Announcer",children:(0,e.jsx)(r.q,{selected:b,icon:b?"toggle-on":"toggle-off",content:b?"On":"Off",onClick:function(){return p(b?"healthOff":"healthOn")}})}),(0,e.jsx)(r.Ce.Item,{label:"Health Announcer Threshold",children:(0,e.jsx)(r.S6,{bipolar:!0,minValue:"-100",maxValue:"100",value:O,stepPixelSize:"5",ml:"0",format:function(P){return P+"%"},onChange:function(P,T){return p("health_adj",{new:T})}})}),(0,e.jsx)(r.Ce.Item,{label:"Oxygen Alarm",children:(0,e.jsx)(r.q,{selected:I,icon:I?"toggle-on":"toggle-off",content:I?"On":"Off",onClick:function(){return p(I?"oxyOff":"oxyOn")}})}),(0,e.jsx)(r.Ce.Item,{label:"Oxygen Alarm Threshold",children:(0,e.jsx)(r.S6,{bipolar:!0,minValue:"-100",maxValue:"100",value:_,stepPixelSize:"5",ml:"0",onChange:function(P,T){return p("oxy_adj",{new:T})}})}),(0,e.jsx)(r.Ce.Item,{label:"Critical Alert",children:(0,e.jsx)(r.q,{selected:A,icon:A?"toggle-on":"toggle-off",content:A?"On":"Off",onClick:function(){return p(A?"critOff":"critOn")}})})]})}},54848:function(M,j,t){"use strict";t.r(j),t.d(j,{OvermapDisperser:function(){return v}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=t(63024),v=function(x){return(0,e.jsx)(r.qo,{width:400,height:550,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(g,{})})})},g=function(x){var f=(0,s.yy)(),u=f.act,m=f.data,c=m.faillink,h=m.calibration,l=m.overmapdir,d=m.cal_accuracy,p=m.strength,C=m.range,y=m.next_shot,b=m.nopower,O=m.skill,I=m.chargeload;return c?(0,e.jsx)(n.iG,{title:"Error",children:"Machine is incomplete, out of range, or misaligned!"}):(0,e.jsxs)(n.Cu,{wrap:"wrap",spacing:1,children:[(0,e.jsx)(n.Cu.Item,{basis:"22%",children:(0,e.jsx)(n.iG,{title:"Targeting",textAlign:"center",children:(0,e.jsx)(o.OvermapPanControls,{actToDo:"choose",selected:function(_){return _===l}})})}),(0,e.jsx)(n.Cu.Item,{basis:"74%",grow:1,children:(0,e.jsx)(n.iG,{title:"Charge",children:(0,e.jsxs)(n.Ce,{children:[b&&(0,e.jsx)(n.Ce.Item,{label:"Error",children:"At least one part of the machine is unpowered."})||null,(0,e.jsx)(n.Ce.Item,{label:"Charge Load Type",children:I}),(0,e.jsx)(n.Ce.Item,{label:"Cooldown",children:y===0&&(0,e.jsx)(n.kv,{color:"good",children:"Ready"})||y>1&&(0,e.jsxs)(n.kv,{color:"average",children:[(0,e.jsx)(n.Gg,{value:y})," Seconds",(0,e.jsx)(n.kv,{color:"bad",children:"Warning: Do not fire during cooldown."})]})||null})]})})}),(0,e.jsx)(n.Cu.Item,{basis:"50%",mt:1,children:(0,e.jsxs)(n.iG,{title:"Calibration",children:[(0,e.jsx)(n.Gg,{value:d}),"%",(0,e.jsx)(n.q,{ml:1,icon:"exchange-alt",onClick:function(){return u("skill_calibration")},children:"Pre-Calibration"}),(0,e.jsx)(n.kv,{mt:1,children:h.map(function(_,A){return(0,e.jsxs)(n.kv,{children:["Cal #",A,":",(0,e.jsx)(n.q,{ml:1,icon:"random",onClick:function(){return u("calibration",{calibration:A})},children:_.toString()})]},A)})})]})}),(0,e.jsx)(n.Cu.Item,{basis:"45%",grow:1,mt:1,children:(0,e.jsx)(n.iG,{title:"Setup",children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Strength",children:(0,e.jsx)(n.q,{fluid:!0,icon:"fist-raised",onClick:function(){return u("strength")},children:p})}),(0,e.jsx)(n.Ce.Item,{label:"Radius",children:(0,e.jsx)(n.q,{fluid:!0,icon:"expand-arrows-alt",onClick:function(){return u("range")},children:C})})]})})}),(0,e.jsx)(n.Cu.Item,{grow:1,mt:1,children:(0,e.jsx)(n.q,{fluid:!0,color:"red",icon:"bomb",onClick:function(){return u("fire")},children:"Fire ORB"})})]})}},77740:function(M,j,t){"use strict";t.r(j),t.d(j,{OvermapEngines:function(){return o},OvermapEnginesContent:function(){return v}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(g){return(0,e.jsx)(r.qo,{width:390,height:530,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(v,{})})})},v=function(g){var x=(0,s.yy)(),f=x.act,u=x.data,m=u.global_state,c=u.global_limit,h=u.engines_info,l=u.total_thrust;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.iG,{title:"Status",children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Engines",children:(0,e.jsx)(n.q,{icon:"power-off",selected:m,onClick:function(){return f("global_toggle")},children:m?"Shut All Engines Down":"Start All Engines"})}),(0,e.jsxs)(n.Ce.Item,{label:"Volume Limit",children:[(0,e.jsx)(n.q,{onClick:function(){return f("global_limit",{global_limit:-.1})},icon:"minus"}),(0,e.jsxs)(n.q,{onClick:function(){return f("set_global_limit")},children:[c,"%"]}),(0,e.jsx)(n.q,{onClick:function(){return f("global_limit",{global_limit:.1})},icon:"plus"})]}),(0,e.jsx)(n.Ce.Item,{label:"Total Thrust",children:(0,e.jsx)(n.Gg,{value:l})})]})}),(0,e.jsx)(n.iG,{title:"Engines",height:"340px",style:{"overflow-y":"auto"},children:h.map(function(d,p){return(0,e.jsxs)(n.Cu,{spacing:1,mt:p!==0&&-1,children:[(0,e.jsx)(n.Cu.Item,{basis:"80%",children:(0,e.jsx)(n.Uv,{title:(0,e.jsxs)(n.kv,{inline:!0,children:["Engine #",p+1," | Thrust:"," ",(0,e.jsx)(n.Gg,{value:d.eng_thrust})," | Limit:"," ",(0,e.jsx)(n.Gg,{value:d.eng_thrust_limiter,format:function(C){return C+"%"}})]}),children:(0,e.jsx)(n.iG,{width:"127%",children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Type",children:d.eng_type}),(0,e.jsxs)(n.Ce.Item,{label:"Status",children:[(0,e.jsx)(n.kv,{color:d.eng_on?d.eng_on===1?"good":"average":"bad",children:d.eng_on?d.eng_on===1?"Online":"Booting":"Offline"}),d.eng_status.map(function(C,y){return Array.isArray(C)?(0,e.jsx)(n.kv,{color:C[1],children:C[0]},y):(0,e.jsx)(n.kv,{children:C},y)})]}),(0,e.jsx)(n.Ce.Item,{label:"Current Thrust",children:d.eng_thrust}),(0,e.jsxs)(n.Ce.Item,{label:"Volume Limit",children:[(0,e.jsx)(n.q,{onClick:function(){return f("limit",{limit:-.1,engine:d.eng_reference})},icon:"minus"}),(0,e.jsxs)(n.q,{onClick:function(){return f("set_limit",{engine:d.eng_reference})},children:[d.eng_thrust_limiter,"%"]}),(0,e.jsx)(n.q,{onClick:function(){return f("limit",{limit:.1,engine:d.eng_reference})},icon:"plus"})]})]})})})}),(0,e.jsx)(n.Cu.Item,{basis:"20%",children:(0,e.jsx)(n.q,{fluid:!0,iconSpin:d.eng_on===-1,color:d.eng_on===-1?"purple":null,selected:d.eng_on===1,icon:"power-off",onClick:function(){return f("toggle_engine",{engine:d.eng_reference})},children:d.eng_on?d.eng_on===1?"Shutoff":"Booting":"Startup"})})]},p)})})]})}},49324:function(M,j,t){"use strict";t.r(j),t.d(j,{OvermapFull:function(){return x}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=t(77740),v=t(65512),g=t(25816),x=function(f){var u=(0,s.cv)("overmapFullState",0),m=u[0],c=u[1];return(0,e.jsx)(r.qo,{width:800,height:800,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsxs)(n.kZ,{children:[(0,e.jsx)(n.kZ.Tab,{selected:m===0,onClick:function(){return c(0)},children:"Engines"}),(0,e.jsx)(n.kZ.Tab,{selected:m===1,onClick:function(){return c(1)},children:"Helm"}),(0,e.jsx)(n.kZ.Tab,{selected:m===2,onClick:function(){return c(2)},children:"Sensors"})]}),m===0&&(0,e.jsx)(o.OvermapEnginesContent,{}),m===1&&(0,e.jsx)(v.OvermapHelmContent,{}),m===2&&(0,e.jsx)(g.OvermapShipSensorsContent,{})]})})}},65512:function(M,j,t){"use strict";t.r(j),t.d(j,{OvermapFlightDataWrap:function(){return x},OvermapHelm:function(){return v},OvermapHelmContent:function(){return g}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=t(63024),v=function(c){return(0,e.jsx)(r.qo,{width:565,height:545,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(g,{})})})},g=function(c){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.Cu,{children:[(0,e.jsx)(n.Cu.Item,{basis:"40%",height:"180px",children:(0,e.jsx)(x,{})}),(0,e.jsx)(n.Cu.Item,{basis:"25%",height:"180px",children:(0,e.jsx)(f,{})}),(0,e.jsx)(n.Cu.Item,{basis:"35%",height:"180px",children:(0,e.jsx)(u,{})})]}),(0,e.jsx)(m,{})]})},x=function(c){var h=(0,s.yy)(),l=h.act,d=h.data;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)(o.OvermapFlightData,{})]})},f=function(c){var h=(0,s.yy)(),l=h.act,d=h.data,p=d.canburn,C=d.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)(n.Cu,{align:"center",justify:"center",children:(0,e.jsx)(n.Cu.Item,{children:(0,e.jsx)(o.OvermapPanControls,{disabled:!p,actToDo:"move"})})}),(0,e.jsxs)(n.kv,{textAlign:"center",mt:1,children:[(0,e.jsx)(n.kv,{bold:!0,underline:!0,children:"Direct Control"}),(0,e.jsx)(n.q,{selected:C,onClick:function(){return l("manual")},icon:"compass",children:C?"Enabled":"Disabled"})]})]})},u=function(c){var h=(0,s.yy)(),l=h.act,d=h.data,p=d.dest,C=d.d_x,y=d.d_y,b=d.speedlimit,O=d.autopilot,I=d.autopilot_disabled;return I?(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Autopilot"}),(0,e.jsx)(n.kv,{textAlign:"center",color:"bad",fontSize:1.2,children:"AUTOPILOT DISABLED"}),(0,e.jsx)(n.kv,{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)(n.kv,{textAlign:"center",children:(0,e.jsx)(n.q.Confirm,{mt:1,color:"bad",content:"Unlock Autopilot",confirmContent:"ACCEPT RISKS?",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return l("apilot_lock")}})})]}):(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Autopilot"}),(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Target",children:p&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.q,{onClick:function(){return l("setcoord",{setx:!0})},children:C}),(0,e.jsx)(n.q,{onClick:function(){return l("setcoord",{sety:!0})},children:y})]})||(0,e.jsx)(n.q,{icon:"pen",onClick:function(){return l("setcoord",{setx:!0,sety:!0})},children:"None"})}),(0,e.jsx)(n.Ce.Item,{label:"Speed Limit",children:(0,e.jsxs)(n.q,{icon:"tachometer-alt",onClick:function(){return l("speedlimit")},children:[b," Gm/h"]})})]}),(0,e.jsx)(n.q,{mt:1,fluid:!0,selected:O,disabled:!p,icon:"robot",onClick:function(){return l("apilot")},children:O?"Engaged":"Disengaged"}),(0,e.jsx)(n.q,{fluid:!0,color:"good",icon:"exclamation-triangle",onClick:function(){return l("apilot_lock")},children:"Lock Autopilot"})]})},m=function(c){var h=(0,s.yy)(),l=h.act,d=h.data,p=d.sector,C=d.s_x,y=d.s_y,b=d.sector_info,O=d.landed,I=d.locations;return(0,e.jsxs)(n.iG,{title:"Navigation Data",m:.3,mt:1,children:[(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Location",children:p}),(0,e.jsxs)(n.Ce.Item,{label:"Coordinates",children:[C," : ",y]}),(0,e.jsx)(n.Ce.Item,{label:"Scan Data",children:b}),(0,e.jsx)(n.Ce.Item,{label:"Status",children:O})]}),(0,e.jsxs)(n.Cu,{mt:1,align:"center",justify:"center",spacing:1,children:[(0,e.jsx)(n.Cu.Item,{basis:"50%",children:(0,e.jsx)(n.q,{fluid:!0,icon:"save",onClick:function(){return l("add",{add:"current"})},children:"Save Current Position"})}),(0,e.jsx)(n.Cu.Item,{basis:"50%",children:(0,e.jsx)(n.q,{fluid:!0,icon:"sticky-note",onClick:function(){return l("add",{add:"new"})},children:"Add New Entry"})})]}),(0,e.jsx)(n.iG,{mt:1,scrollable:!0,height:"130px",children:(0,e.jsxs)(n.oJ,{children:[(0,e.jsxs)(n.oJ.Row,{header:!0,children:[(0,e.jsx)(n.oJ.Cell,{children:"Name"}),(0,e.jsx)(n.oJ.Cell,{children:"Coordinates"}),(0,e.jsx)(n.oJ.Cell,{children:"Actions"})]}),I.map(function(_){return(0,e.jsxs)(n.oJ.Row,{children:[(0,e.jsx)(n.oJ.Cell,{children:_.name}),(0,e.jsxs)(n.oJ.Cell,{children:[_.x," : ",_.y]}),(0,e.jsxs)(n.oJ.Cell,{collapsing:!0,children:[(0,e.jsx)(n.q,{icon:"rocket",onClick:function(){return l("setds",{x:_.x,y:_.y})},children:"Plot Course"}),(0,e.jsx)(n.q,{icon:"trash",onClick:function(){return l("remove",{remove:_.reference})},children:"Remove"})]})]},_.name)})]})})]})}},11764:function(M,j,t){"use strict";t.r(j),t.d(j,{OvermapNavigation:function(){return v},OvermapNavigationContent:function(){return g}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=t(63024),v=function(){return(0,e.jsx)(r.qo,{width:380,height:530,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(g,{})})})},g=function(x){var f=(0,s.yy)(),u=f.act,m=f.data,c=m.sector,h=m.s_x,l=m.s_y,d=m.sector_info,p=m.viewing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.iG,{title:"Current Location",buttons:(0,e.jsx)(n.q,{icon:"eye",selected:p,onClick:function(){return u("viewing")},children:"Map View"}),children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Current Location",children:c}),(0,e.jsxs)(n.Ce.Item,{label:"Coordinates",children:[h," : ",l]}),(0,e.jsx)(n.Ce.Item,{label:"Additional Information",children:d})]})}),(0,e.jsx)(n.iG,{title:"Flight Data",children:(0,e.jsx)(o.OvermapFlightData,{disableLimiterControls:!0})})]})}},39724:function(M,j,t){"use strict";t.r(j),t.d(j,{OvermapShieldGenerator:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(f){return(0,e.jsx)(r.qo,{width:500,height:760,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:(0,e.jsx)(v,{})})})},v=function(f){var u=(0,s.yy)(),m=u.act,c=u.data,h=c.modes,l=c.offline_for;return l?(0,e.jsxs)(n.iG,{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: ",l," seconds."]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{}),(0,e.jsx)(x,{}),(0,e.jsx)(n.iG,{title:"Field Calibration",children:h.map(function(d){return(0,e.jsxs)(n.iG,{title:d.name,level:2,buttons:(0,e.jsx)(n.q,{icon:"power-off",selected:d.status,onClick:function(){return m("toggle_mode",{toggle_mode:d.flag})},children:d.status?"Enabled":"Disabled"}),children:[(0,e.jsx)(n.kv,{color:"label",children:d.desc}),(0,e.jsxs)(n.kv,{mt:.5,children:["Multiplier: ",d.multiplier]})]},d.name)})})]})},g=function(f){var u=(0,s.yy)(),m=u.act,c=u.data,h=c.running,l=c.overloaded,d=c.mitigation_max,p=c.mitigation_physical,C=c.mitigation_em,y=c.mitigation_heat,b=c.field_integrity,O=c.max_energy,I=c.current_energy,_=c.percentage_energy,A=c.total_segments,P=c.functional_segments,T=c.field_radius,R=c.target_radius,L=c.input_cap_kw,N=c.upkeep_power_usage,U=c.power_usage,V=c.spinup_counter;return(0,e.jsx)(n.iG,{title:"System Status",children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Generator is",children:h===1&&(0,e.jsx)(n.kv,{color:"average",children:"Shutting Down"})||h===2&&(l&&(0,e.jsx)(n.kv,{color:"bad",children:"Overloaded"})||(0,e.jsx)(n.kv,{color:"good",children:"Running"}))||h===3&&(0,e.jsx)(n.kv,{color:"average",children:"Inactive"})||h===4&&(0,e.jsxs)(n.kv,{color:"blue",children:["Spinning Up\xA0",R!==T&&(0,e.jsx)(n.kv,{inline:!0,children:"(Adjusting Radius)"})||(0,e.jsxs)(n.kv,{inline:!0,children:[V*2,"s"]})]})||(0,e.jsx)(n.kv,{color:"bad",children:"Offline"})}),(0,e.jsx)(n.Ce.Item,{label:"Energy Storage",children:(0,e.jsxs)(n.cH,{value:I,maxValue:O,children:[I," / ",O," MJ (",_,"%)"]})}),(0,e.jsxs)(n.Ce.Item,{label:"Shield Integrity",children:[(0,e.jsx)(n.Gg,{value:b}),"%"]}),(0,e.jsxs)(n.Ce.Item,{label:"Mitigation",children:[C,"% EM / ",p,"% PH / ",y,"% HE / ",d,"% MAX"]}),(0,e.jsxs)(n.Ce.Item,{label:"Upkeep Energy Use",children:[(0,e.jsx)(n.Gg,{value:N})," kW"]}),(0,e.jsx)(n.Ce.Item,{label:"Total Energy Use",children:L&&(0,e.jsx)(n.kv,{children:(0,e.jsxs)(n.cH,{value:U,maxValue:L,children:[U," / ",L," kW"]})})||(0,e.jsxs)(n.kv,{children:[(0,e.jsx)(n.Gg,{value:U})," kW (No Limit)"]})}),(0,e.jsxs)(n.Ce.Item,{label:"Field Size",children:[(0,e.jsx)(n.Gg,{value:P}),"\xA0/\xA0",(0,e.jsx)(n.Gg,{value:A})," m\xB2 (radius"," ",(0,e.jsx)(n.Gg,{value:T}),", target"," ",(0,e.jsx)(n.Gg,{value:R}),")"]})]})})},x=function(f){var u=(0,s.yy)(),m=u.act,c=u.data,h=c.running,l=c.hacked,d=c.idle_multiplier,p=c.idle_valid_values;return(0,e.jsxs)(n.iG,{title:"Controls",buttons:(0,e.jsxs)(e.Fragment,{children:[h>=2&&(0,e.jsxs)(n.kv,{children:[(0,e.jsx)(n.q,{icon:"power-off",onClick:function(){return m("begin_shutdown")},selected:!0,children:"Turn off"}),h===3&&(0,e.jsx)(n.q,{icon:"power-off",onClick:function(){return m("toggle_idle",{toggle_idle:0})},children:"Activate"})||(0,e.jsx)(n.q,{icon:"power-off",onClick:function(){return m("toggle_idle",{toggle_idle:1})},selected:!0,children:"Deactivate"})]})||(0,e.jsx)(n.q,{icon:"power-off",onClick:function(){return m("start_generator")},children:"Turn on"}),h&&l&&(0,e.jsx)(n.q,{icon:"exclamation-triangle",onClick:function(){return m("emergency_shutdown")},color:"bad",children:"EMERGENCY SHUTDOWN"})||null]}),children:[(0,e.jsx)(n.q,{icon:"expand-arrows-alt",onClick:function(){return m("set_range")},children:"Set Field Range"}),(0,e.jsx)(n.q,{icon:"bolt",onClick:function(){return m("set_input_cap")},children:"Set Input Cap"}),(0,e.jsx)(n.Ce,{children:(0,e.jsx)(n.Ce.Item,{label:"Set inactive power use intensity",children:p.map(function(C){return(0,e.jsx)(n.q,{selected:C===d,disabled:h===4,onClick:function(){return m("switch_idle",{switch_idle:C})},children:C},C)})})})]})}},25816:function(M,j,t){"use strict";t.r(j),t.d(j,{OvermapShipSensors:function(){return o},OvermapShipSensorsContent:function(){return v}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(g){return(0,e.jsx)(r.qo,{width:375,height:545,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(v,{})})})},v=function(g){var x=(0,s.yy)(),f=x.act,u=x.data,m=u.viewing,c=u.on,h=u.range,l=u.health,d=u.max_health,p=u.heat,C=u.critical_heat,y=u.status,b=u.contacts;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.iG,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.q,{icon:"eye",selected:m,onClick:function(){return f("viewing")},children:"Map View"}),(0,e.jsx)(n.q,{icon:"power-off",selected:c,onClick:function(){return f("toggle_sensor")},children:c?"Sensors Enabled":"Sensors Disabled"})]}),children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Status",children:y}),(0,e.jsx)(n.Ce.Item,{label:"Range",children:(0,e.jsx)(n.q,{icon:"signal",onClick:function(){return f("range")},children:h})}),(0,e.jsx)(n.Ce.Item,{label:"Integrity",children:(0,e.jsxs)(n.cH,{ranges:{good:[d*.75,1/0],average:[d*.25,d*.75],bad:[-1/0,d*.25]},value:l,maxValue:d,children:[l," / ",d]})}),(0,e.jsx)(n.Ce.Item,{label:"Temperature",children:(0,e.jsx)(n.cH,{ranges:{bad:[C*.75,1/0],average:[C*.5,C*.75],good:[-1/0,C*.5]},value:p,maxValue:C,children:p0||!p)&&(0,e.jsx)(r.q,{ml:1,icon:"times",onClick:function(){return u("cancel",{cancel:I+1})},children:"Cancel"})||null]},O)})||(0,e.jsx)(r.yc,{info:!0,children:"Queue Empty"})}),(0,e.jsx)(r.iG,{title:"Recipes",children:b.length&&b.map(function(O){return(0,e.jsx)(r.kv,{children:(0,e.jsx)(r.q,{icon:"wrench",onClick:function(){return u("queue",{queue:O.type})},children:(0,s.Yl)(O.name)})},O.name)})})]})})}},18348:function(M,j,t){"use strict";t.r(j),t.d(j,{PathogenicIsolator:function(){return x}});var e=t(33496),s=t(69344),n=t(45280),r=t(68644),o=t(8020),v=t(76512),g=function(m){var c=(0,n.yy)(),h=c.act,l=c.data,d=l.can_print,p=m.args;return(0,e.jsx)(r.iG,{level:2,m:"-1rem",title:p.name||"Virus",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.q,{disabled:!d,icon:"print",content:"Print",onClick:function(){return h("print",{type:"virus_record",vir:p.record})}}),(0,e.jsx)(r.q,{icon:"times",color:"red",onClick:function(){return h("modal_close")}})]}),children:(0,e.jsx)(r.kv,{mx:"0.5rem",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsxs)(r.Ce.Item,{label:"Spread",children:[p.spread_text," Transmission"]}),(0,e.jsx)(r.Ce.Item,{label:"Possible cure",children:p.antigen}),(0,e.jsx)(r.Ce.Item,{label:"Rate of Progression",children:p.rate}),(0,e.jsxs)(r.Ce.Item,{label:"Antibiotic Resistance",children:[p.resistance,"%"]}),(0,e.jsx)(r.Ce.Item,{label:"Species Affected",children:p.species}),(0,e.jsx)(r.Ce.Item,{label:"Symptoms",children:(0,e.jsx)(r.Ce,{children:p.symptoms.map(function(C){return(0,e.jsxs)(r.Ce.Item,{label:C.stage+". "+C.name,children:[(0,e.jsxs)(r.kv,{inline:!0,children:[(0,e.jsx)(r.kv,{inline:!0,color:"label",children:"Strength:"})," ",C.strength,"\xA0"]}),(0,e.jsxs)(r.kv,{inline:!0,children:[(0,e.jsx)(r.kv,{inline:!0,color:"label",children:"Aggressiveness:"})," ",C.aggressiveness]})]},C.stage)})})})]})})})},x=function(m){var c=(0,n.yy)(),h=c.act,l=c.data,d=l.isolating,p=(0,s.useState)(0),C=p[0],y=p[1],b=null;return C===0?b=(0,e.jsx)(f,{}):C===1&&(b=(0,e.jsx)(u,{})),(0,o.modalRegisterBodyOverride)("virus",g),(0,e.jsxs)(v.qo,{height:500,width:520,children:[(0,e.jsx)(o.ComplexModal,{maxHeight:"100%",maxWidth:"95%"}),(0,e.jsxs)(v.qo.Content,{scrollable:!0,children:[d&&(0,e.jsx)(r.yc,{warning:!0,children:"The Isolator is currently isolating..."})||null,(0,e.jsxs)(r.kZ,{children:[(0,e.jsx)(r.kZ.Tab,{selected:C===0,onClick:function(){return y(0)},children:"Home"}),(0,e.jsx)(r.kZ.Tab,{selected:C===1,onClick:function(){return y(1)},children:"Database"})]}),b]})]})},f=function(m){var c=(0,n.yy)(),h=c.act,l=c.data,d=l.syringe_inserted,p=l.pathogen_pool,C=l.can_print;return(0,e.jsx)(r.iG,{title:"Pathogens",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.q,{icon:"print",content:"Print",disabled:!C,onClick:function(){return h("print",{type:"patient_diagnosis"})}}),(0,e.jsx)(r.q,{icon:"eject",content:"Eject Syringe",disabled:!d,onClick:function(){return h("eject")}})]}),children:p.length&&p.map(function(y){return(0,e.jsxs)(r.iG,{children:[(0,e.jsx)(r.kv,{color:"label",children:(0,e.jsxs)(r.Cu,{align:"center",children:[(0,e.jsxs)(r.Cu.Item,{grow:1,children:[(0,e.jsxs)("u",{children:["Stamm #",y.unique_id]}),y.is_in_database?" (Analyzed)":" (Not Analyzed)"]}),(0,e.jsxs)(r.Cu.Item,{children:[(0,e.jsx)(r.q,{icon:"virus",content:"Isolate",onClick:function(){return h("isolate",{isolate:y.reference})}}),(0,e.jsx)(r.q,{icon:"search",content:"Database",disabled:!y.is_in_database,onClick:function(){return h("view_entry",{vir:y.record})}})]})]})}),(0,e.jsxs)(r.kv,{children:[(0,e.jsx)(r.kv,{color:"average",mb:1,children:y.name}),y.dna]})]},y.unique_id)})||(d?(0,e.jsx)(r.kv,{color:"average",children:"No samples detected."}):(0,e.jsx)(r.kv,{color:"average",children:"No syringe inserted."}))})},u=function(m){var c=(0,n.yy)(),h=c.act,l=c.data,d=l.database,p=l.can_print;return(0,e.jsx)(r.iG,{title:"Database",buttons:(0,e.jsx)(r.q,{icon:"print",content:"Print",disabled:!p,onClick:function(){return h("print",{type:"virus_list"})}}),children:d.length&&d.map(function(C){return(0,e.jsx)(r.q,{fluid:!0,icon:"search",onClick:function(){return h("view_entry",{vir:C.record})},children:C.name},C.name)})||(0,e.jsx)(r.kv,{color:"average",children:"The viral database is empty."})})}},62480:function(M,j,t){"use strict";t.r(j),t.d(j,{Pda:function(){return f}});var e=t(33496),s=t(69344),n=t(45280),r=t(68644),o=t(76512),v=t(59833),g=t(58836),x=function(h){var l;try{l=g("./"+h+".jsx")}catch(p){if(p.code==="MODULE_NOT_FOUND")return(0,v.routingError)("notFound",h);throw p}var d=l[h];return d||(0,v.routingError)("missingExport",h)},f=function(h){var l=(0,n.yy)(),d=l.act,p=l.data,C=p.app,y=p.owner,b=p.useRetro;if(!y)return(0,e.jsx)(o.qo,{children:(0,e.jsx)(o.qo.Content,{children:(0,e.jsx)(r.iG,{stretchContents:!0,children:"Warning: No ID information found! Please swipe ID!"})})});var O=x(C.template),I=(0,s.useState)(!1),_=I[0],A=I[1];return(0,e.jsx)(o.qo,{width:580,height:670,theme:b?"pda-retro":null,children:(0,e.jsxs)(o.qo.Content,{scrollable:!0,children:[(0,e.jsx)(u,{settingsMode:_,setSettingsMode:A}),_&&(0,e.jsx)(m,{})||(0,e.jsx)(r.iG,{title:(0,e.jsxs)(r.kv,{children:[(0,e.jsx)(r.GW,{name:C.icon,mr:1}),C.name]}),p:1,children:(0,e.jsx)(O,{})}),(0,e.jsx)(r.kv,{mb:8}),(0,e.jsx)(c,{setSettingsMode:A})]})})},u=function(h){var l=(0,n.yy)(),d=l.act,p=l.data,C=h.settingsMode,y=h.setSettingsMode,b=p.idInserted,O=p.idLink,I=p.cartridge_name,_=p.stationTime;return(0,e.jsx)(r.kv,{mb:1,children:(0,e.jsxs)(r.Cu,{align:"center",justify:"space-between",children:[!!b&&(0,e.jsx)(r.Cu.Item,{children:(0,e.jsx)(r.q,{icon:"eject",color:"transparent",onClick:function(){return d("Authenticate")},content:O})}),(0,e.jsx)(r.Cu.Item,{grow:1,textAlign:"center",bold:!0,children:_}),(0,e.jsxs)(r.Cu.Item,{children:[(0,e.jsx)(r.q,{selected:C,onClick:function(){return y(!C)},icon:"cog"}),(0,e.jsx)(r.q,{onClick:function(){return d("Retro")},icon:"adjust"})]})]})})},m=function(h){var l=(0,n.yy)(),d=l.act,p=l.data,C=p.idInserted,y=p.idLink,b=p.cartridge_name,O=p.touch_silent;return(0,e.jsx)(r.iG,{title:"Settings",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"R.E.T.R.O Mode",children:(0,e.jsx)(r.q,{icon:"cog",content:"Retro Theme",onClick:function(){return d("Retro")}})}),(0,e.jsx)(r.Ce.Item,{label:"Touch Sounds",children:(0,e.jsx)(r.q,{icon:"cog",selected:!O,content:O?"Disabled":"Enabled",onClick:function(){return d("TouchSounds")}})}),!!b&&(0,e.jsx)(r.Ce.Item,{label:"Cartridge",children:(0,e.jsx)(r.q,{icon:"eject",onClick:function(){return d("Eject")},content:b})}),!!C&&(0,e.jsx)(r.Ce.Item,{label:"ID Card",children:(0,e.jsx)(r.q,{icon:"eject",onClick:function(){return d("Authenticate")},content:y})})]})})},c=function(h){var l=(0,n.yy)(),d=l.act,p=l.data,C=h.setSettingsMode,y=p.app,b=p.useRetro;return(0,e.jsx)(r.kv,{position:"fixed",bottom:"0%",left:"0%",right:"0%",backgroundColor:b?"#6f7961":"#1b1b1b",children:(0,e.jsxs)(r.Cu,{children:[(0,e.jsx)(r.Cu.Item,{basis:"33%",children:(0,e.jsx)(r.q,{fluid:!0,color:"transparent",iconColor:y.has_back?"white":"disabled",textAlign:"center",icon:"undo",mb:0,fontSize:1.7,onClick:function(){return d("Back")}})}),(0,e.jsx)(r.Cu.Item,{basis:"33%",children:(0,e.jsx)(r.q,{fluid:!0,color:"transparent",iconColor:y.is_home?"disabled":"white",textAlign:"center",icon:"home",mb:0,fontSize:1.7,onClick:function(){C(!1),d("Home")}})})]})})}},66276:function(M,j,t){"use strict";t.r(j),t.d(j,{PersonalCrafting:function(){return u}});var e=t(33496),s=t(69344),n=t(45280),r=t(68644),o=t(76512);function v(c,h){(h==null||h>c.length)&&(h=c.length);for(var l=0,d=new Array(h);l=c.length?{done:!0}:{done:!1,value:c[d++]}}}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(c){for(var h,l=(0,n.yy)(),d=l.act,p=l.data,C=p.busy,y=p.display_craftable_only,b=p.display_compact,O=p.crafting_recipes||{},I=[],_=[],A=f(Object.keys(O)),P;!(P=A()).done;){var T=P.value,R=O[T];if("has_subcats"in R){for(var L=f(Object.keys(R)),N;!(N=L()).done;){var U=N.value;if(U!=="has_subcats"){I.push({name:U,category:T,subcategory:U});for(var V=R[U],z=f(V),Q;!(Q=z()).done;){var H=Q.value;_.push(g({},H,{category:U}))}}}continue}I.push({name:T,category:T});for(var q=O[T],Z=f(q),$;!($=Z()).done;){var G=$.value;_.push(g({},G,{category:T}))}}var Y=(0,s.useState)((h=I[0])==null?void 0:h.name),ee=Y[0],ae=Y[1],re=_.filter(function(le){return le.category===ee});return(0,e.jsx)(o.qo,{title:"Crafting Menu",width:700,height:800,children:(0,e.jsxs)(o.qo.Content,{scrollable:!0,children:[!!C&&(0,e.jsxs)(r.Oe,{fontSize:"32px",children:[(0,e.jsx)(r.GW,{name:"cog",spin:1})," Crafting..."]}),(0,e.jsx)(r.iG,{title:"Personal Crafting",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.q.Checkbox,{content:"Compact",checked:b,onClick:function(){return d("toggle_compact")}}),(0,e.jsx)(r.q.Checkbox,{content:"Craftable Only",checked:y,onClick:function(){return d("toggle_recipes")}})]}),children:(0,e.jsxs)(r.Cu,{children:[(0,e.jsx)(r.Cu.Item,{children:(0,e.jsx)(r.kZ,{vertical:!0,children:I.map(function(le){return(0,e.jsx)(r.kZ.Tab,{selected:le.name===ee,onClick:function(){ae(le.name),d("set_category",{category:le.category,subcategory:le.subcategory})},children:le.name},le.name)})})}),(0,e.jsx)(r.Cu.Item,{grow:1,basis:0,children:(0,e.jsx)(m,{craftables:re})})]})})]})})},m=function(c){var h=c.craftables,l=h===void 0?[]:h,d=(0,n.yy)(),p=d.act,C=d.data,y=C.craftability,b=y===void 0?{}:y,O=C.display_compact,I=C.display_craftable_only;return l.map(function(_){return I&&!b[_.ref]?null:O?(0,e.jsx)(r.Ce.Item,{label:_.name,className:"candystripe",buttons:(0,e.jsx)(r.q,{icon:"cog",content:"Craft",disabled:!b[_.ref],tooltip:_.tool_text&&"Tools needed: "+_.tool_text,tooltipPosition:"left",onClick:function(){return p("make",{recipe:_.ref})}}),children:_.req_text},_.name):(0,e.jsx)(r.iG,{title:_.name,level:2,buttons:(0,e.jsx)(r.q,{icon:"cog",content:"Craft",disabled:!b[_.ref],onClick:function(){return p("make",{recipe:_.ref})}}),children:(0,e.jsxs)(r.Ce,{children:[!!_.req_text&&(0,e.jsx)(r.Ce.Item,{label:"Required",children:_.req_text}),!!_.catalyst_text&&(0,e.jsx)(r.Ce.Item,{label:"Catalyst",children:_.catalyst_text}),!!_.tool_text&&(0,e.jsx)(r.Ce.Item,{label:"Tools",children:_.tool_text})]})},_.name)})}},38644:function(M,j,t){"use strict";t.r(j),t.d(j,{Photocopier:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(f){var u=(0,s.yy)().data,m=u.isAI,c=u.has_toner,h=u.has_item;return(0,e.jsx)(r.qo,{title:"Photocopier",width:240,height:m?309:234,children:(0,e.jsxs)(r.qo.Content,{children:[c?(0,e.jsx)(v,{}):(0,e.jsx)(n.iG,{title:"Toner",children:(0,e.jsx)(n.kv,{color:"average",children:"No inserted toner cartridge."})}),h?(0,e.jsx)(g,{}):(0,e.jsx)(n.iG,{title:"Options",children:(0,e.jsx)(n.kv,{color:"average",children:"No inserted item."})}),!!m&&(0,e.jsx)(x,{})]})})},v=function(f){var u=(0,s.yy)(),m=u.act,c=u.data,h=c.max_toner,l=c.current_toner,d=h*.66,p=h*.33;return(0,e.jsx)(n.iG,{title:"Toner",children:(0,e.jsx)(n.cH,{ranges:{good:[d,h],average:[p,d],bad:[0,p]},value:l,minValue:0,maxValue:h})})},g=function(f){var u=(0,s.yy)(),m=u.act,c=u.data,h=c.num_copies,l=c.has_enough_toner;return(0,e.jsxs)(n.iG,{title:"Options",children:[(0,e.jsxs)(n.Cu,{children:[(0,e.jsx)(n.Cu.Item,{mt:.4,width:11,color:"label",children:"Make copies:"}),(0,e.jsx)(n.Cu.Item,{children:(0,e.jsx)(n.Ef,{animate:!0,width:2.6,height:1.65,step:1,stepPixelSize:8,minValue:1,maxValue:10,value:h,onDrag:function(d,p){return m("set_copies",{num_copies:p})}})}),(0,e.jsx)(n.Cu.Item,{children:(0,e.jsx)(n.q,{ml:.2,icon:"copy",textAlign:"center",onClick:function(){return m("make_copy")},children:"Copy"})})]}),(0,e.jsx)(n.q,{mt:.5,textAlign:"center",icon:"reply",fluid:!0,onClick:function(){return m("remove")},children:"Remove item"})]})},x=function(f){var u=(0,s.yy)(),m=u.act,c=u.data,h=c.can_AI_print;return(0,e.jsx)(n.iG,{title:"AI Options",children:(0,e.jsx)(n.kv,{children:(0,e.jsx)(n.q,{fluid:!0,icon:"images",textAlign:"center",disabled:!h,onClick:function(){return m("ai_photo")},children:"Print photo from database"})})})}},36104:function(M,j,t){"use strict";t.r(j),t.d(j,{PipeDispenser:function(){return v}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=t(92936),v=function(g){var x=(0,s.yy)(),f=x.act,u=x.data,m=u.disposals,c=u.p_layer,h=u.pipe_layers,l=u.categories,d=l===void 0?[]:l,p=(0,s.cv)("categoryName"),C=p[0],y=p[1],b=d.find(function(O){return O.cat_name===C})||d[0];return(0,e.jsx)(r.qo,{width:425,height:515,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[!m&&(0,e.jsx)(n.iG,{title:"Layer",children:(0,e.jsx)(n.kv,{children:Object.keys(h).map(function(O){return(0,e.jsx)(n.q.Checkbox,{fluid:!0,checked:h[O]===c,content:O,onClick:function(){return f("p_layer",{p_layer:h[O]})}},O)})})}),(0,e.jsxs)(n.iG,{title:"Pipes",children:[(0,e.jsx)(n.kZ,{children:d.map(function(O,I){return(0,e.jsx)(n.kZ.Tab,{fluid:!0,icon:o.ICON_BY_CATEGORY_NAME[O.cat_name],selected:O.cat_name===b.cat_name,onClick:function(){return y(O.cat_name)},children:O.cat_name},O.cat_name)})}),b==null?void 0:b.recipes.map(function(O){return(0,e.jsx)(n.q,{fluid:!0,ellipsis:!0,content:O.pipe_name,title:O.pipe_name,onClick:function(){return f("dispense_pipe",{ref:O.ref,bent:O.bent,category:b.cat_name})}},O.pipe_name)})]})]})})}},69148:function(M,j,t){"use strict";t.r(j),t.d(j,{PlantAnalyzer:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(g){var x=(0,s.yy)().data,f=250;return x.seed&&(f+=18*x.seed.trait_info.length),x.reagents&&x.reagents.length&&(f+=55,f+=20*x.reagents.length),(0,e.jsx)(r.qo,{width:400,height:f,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:(0,e.jsx)(v,{})})})},v=function(g){var x=(0,s.yy)(),f=x.act,u=x.data,m=u.no_seed,c=u.seed,h=u.reagents;return m?(0,e.jsx)(n.iG,{title:"Analyzer Unused",children:"You should go scan a plant! There is no data currently loaded."}):(0,e.jsxs)(n.iG,{title:"Plant Information",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.q,{icon:"print",onClick:function(){return f("print")},children:"Print Report"}),(0,e.jsx)(n.q,{icon:"window-close",color:"red",onClick:function(){return f("close")}})]}),children:[(0,e.jsxs)(n.Ce,{children:[(0,e.jsxs)(n.Ce.Item,{label:"Plant Name",children:[c.name,"#",c.uid]}),(0,e.jsx)(n.Ce.Item,{label:"Endurance",children:c.endurance}),(0,e.jsx)(n.Ce.Item,{label:"Yield",children:c.yield}),(0,e.jsx)(n.Ce.Item,{label:"Maturation Time",children:c.maturation_time}),(0,e.jsx)(n.Ce.Item,{label:"Production Time",children:c.production_time}),(0,e.jsx)(n.Ce.Item,{label:"Potency",children:c.potency})]}),h.length&&(0,e.jsx)(n.iG,{level:2,title:"Plant Reagents",children:(0,e.jsx)(n.Ce,{children:h.map(function(l){return(0,e.jsxs)(n.Ce.Item,{label:l.name,children:[l.volume," unit(s)."]},l.name)})})})||null,(0,e.jsx)(n.iG,{level:2,title:"Other Data",children:c.trait_info.map(function(l){return(0,e.jsx)(n.kv,{color:"label",mb:.4,children:l},l)})})]})}},65620:function(M,j,t){"use strict";t.r(j),t.d(j,{PlayerNotes:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.device_theme,m=f.filter,c=f.pages,h=f.ckeys,l=function(d){return d()};return(0,e.jsx)(r.qo,{title:"Player Notes",theme:u,width:400,height:500,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:(0,e.jsxs)(n.iG,{title:"Player notes",children:[(0,e.jsx)(n.q,{icon:"filter",onClick:function(){return x("filter_player_notes")},children:"Apply Filter"}),(0,e.jsx)(n.q,{icon:"sidebar",onClick:function(){return x("open_legacy_ui")},children:"Open Legacy UI"}),(0,e.jsx)(n.c1,{}),(0,e.jsx)(n.q.Input,{content:"CKEY to Open",onCommit:function(d,p){return x("show_player_info",{name:p})}}),(0,e.jsx)(n.c1,{vertical:!0}),(0,e.jsx)(n.q,{color:"green",content:m,onClick:function(){return x("clear_player_info_filter")}}),(0,e.jsx)(n.c1,{}),(0,e.jsx)(n.oJ,{children:h.map(function(d){return(0,e.jsx)(n.oJ.Row,{children:(0,e.jsx)(n.oJ.Cell,{children:(0,e.jsx)(n.q,{fluid:!0,color:"transparent",icon:"user",content:d.desc,onClick:function(){return x("show_player_info",{name:d.name})},children:d.name})})},d.name)})}),(0,e.jsx)(n.c1,{}),l(function(){for(var d=function(y){p.push((0,e.jsx)(n.q,{onClick:function(){return x("set_page",{index:y})},children:y},y))},p=[],C=1;C=.5&&"good"||m>.15&&"average"||"bad";return(0,e.jsx)(o.qo,{width:450,height:340,children:(0,e.jsxs)(o.qo.Content,{scrollable:!0,children:[!u.anchored&&(0,e.jsx)(r.yc,{children:"Generator not anchored."}),(0,e.jsx)(r.iG,{title:"Status",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Power switch",children:(0,e.jsx)(r.q,{icon:u.active?"power-off":"times",onClick:function(){return f("toggle_power")},selected:u.active,disabled:!u.ready_to_boot,children:u.active?"On":"Off"})}),(0,e.jsx)(r.Ce.Item,{label:"Fuel Type",buttons:u.fuel_stored>=1&&(0,e.jsx)(r.q,{ml:1,icon:"eject",disabled:u.active,onClick:function(){return f("eject")},children:"Eject"}),children:(0,e.jsxs)(r.kv,{color:c,children:[u.fuel_stored,"cm\xB3 ",u.sheet_name]})}),(0,e.jsx)(r.Ce.Item,{label:"Current fuel level",children:(0,e.jsxs)(r.cH,{value:u.fuel_stored/u.fuel_capacity,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[u.fuel_stored,"cm\xB3 / ",u.fuel_capacity,"cm\xB3"]})}),(0,e.jsxs)(r.Ce.Item,{label:"Fuel Usage",children:[u.fuel_usage," cm\xB3/s"]}),(0,e.jsx)(r.Ce.Item,{label:"Temperature",children:(0,e.jsxs)(r.cH,{value:u.temperature_current,maxValue:u.temperature_max+30,color:u.temperature_overheat?"bad":"good",children:[(0,s.kL)(u.temperature_current),"\xB0C"]})})]})}),(0,e.jsx)(r.iG,{title:"Output",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Current output",color:u.unsafe_output?"bad":null,children:u.power_output}),(0,e.jsxs)(r.Ce.Item,{label:"Adjust output",children:[(0,e.jsx)(r.q,{icon:"minus",onClick:function(){return f("lower_power")},children:u.power_generated}),(0,e.jsx)(r.q,{icon:"plus",onClick:function(){return f("higher_power")},children:u.power_generated})]}),(0,e.jsx)(r.Ce.Item,{label:"Power available",children:(0,e.jsx)(r.kv,{inline:!0,color:!u.connected&&"bad",children:u.connected?u.power_available:"Unconnected"})})]})})]})})}},72724:function(M,j,t){"use strict";t.r(j),t.d(j,{PortablePump:function(){return v}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=t(8532),v=function(g){var x=(0,s.yy)(),f=x.act,u=x.data,m=u.direction,c=u.target_pressure,h=u.default_pressure,l=u.min_pressure,d=u.max_pressure;return(0,e.jsx)(r.qo,{width:330,height:375,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsx)(o.PortableBasicInfo,{}),(0,e.jsx)(n.iG,{title:"Pump",buttons:(0,e.jsx)(n.q,{icon:m?"sign-in-alt":"sign-out-alt",content:m?"In":"Out",selected:m,onClick:function(){return f("direction")}}),children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Output",children:(0,e.jsx)(n.uQ,{mt:"0.4em",animated:!0,minValue:l,maxValue:d,value:c,unit:"kPa",stepPixelSize:.3,onChange:function(p,C){return f("pressure",{pressure:C})}})}),(0,e.jsxs)(n.Ce.Item,{label:"Presets",children:[(0,e.jsx)(n.q,{icon:"minus",disabled:c===l,onClick:function(){return f("pressure",{pressure:"min"})}}),(0,e.jsx)(n.q,{icon:"sync",disabled:c===h,onClick:function(){return f("pressure",{pressure:"reset"})}}),(0,e.jsx)(n.q,{icon:"plus",disabled:c===d,onClick:function(){return f("pressure",{pressure:"max"})}})]})]})})]})})}},82020:function(M,j,t){"use strict";t.r(j),t.d(j,{PortableScrubber:function(){return v}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=t(8532),v=function(g){var x=(0,s.yy)(),f=x.act,u=x.data,m=u.rate,c=u.minrate,h=u.maxrate;return(0,e.jsx)(r.qo,{width:320,height:350,children:(0,e.jsxs)(r.qo.Content,{children:[(0,e.jsx)(o.PortableBasicInfo,{}),(0,e.jsx)(n.iG,{title:"Power Regulator",children:(0,e.jsx)(n.Ce,{children:(0,e.jsx)(n.Ce.Item,{label:"Volume Rate",children:(0,e.jsx)(n.uQ,{mt:"0.4em",animated:!0,minValue:c,maxValue:h,value:m,unit:"L/s",onChange:function(l,d){return f("volume_adj",{vol:d})}})})})})]})})}},260:function(M,j,t){"use strict";t.r(j),t.d(j,{PortableTurret:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.locked,m=f.on,c=f.lethal,h=f.lethal_is_configurable,l=f.targetting_is_configurable,d=f.check_weapons,p=f.neutralize_noaccess,C=f.neutralize_norecord,y=f.neutralize_criminals,b=f.neutralize_all,O=f.neutralize_nonsynth,I=f.neutralize_unidentified,_=f.neutralize_down;return(0,e.jsx)(r.qo,{width:500,height:400,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsxs)(n.yc,{children:["Swipe an ID card to ",u?"unlock":"lock"," this interface."]}),(0,e.jsx)(n.iG,{children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Status",children:(0,e.jsx)(n.q,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,disabled:u,onClick:function(){return x("power")}})}),!!h&&(0,e.jsx)(n.Ce.Item,{label:"Lethals",children:(0,e.jsx)(n.q,{icon:c?"exclamation-triangle":"times",content:c?"On":"Off",color:c?"bad":"",disabled:u,onClick:function(){return x("lethal")}})})]})}),!!l&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.iG,{title:"Humanoid Targets",children:[(0,e.jsx)(n.q.Checkbox,{fluid:!0,checked:y,content:"Wanted Criminals",disabled:u,onClick:function(){return x("autharrest")}}),(0,e.jsx)(n.q.Checkbox,{fluid:!0,checked:C,content:"No Sec Record",disabled:u,onClick:function(){return x("authnorecord")}}),(0,e.jsx)(n.q.Checkbox,{fluid:!0,checked:d,content:"Unauthorized Weapons",disabled:u,onClick:function(){return x("authweapon")}}),(0,e.jsx)(n.q.Checkbox,{fluid:!0,checked:p,content:"Unauthorized Access",disabled:u,onClick:function(){return x("authaccess")}})]}),(0,e.jsxs)(n.iG,{title:"Other Targets",children:[(0,e.jsx)(n.q.Checkbox,{fluid:!0,checked:I,content:"Unidentified Lifesigns (Xenos, Animals, Etc)",disabled:u,onClick:function(){return x("authxeno")}}),(0,e.jsx)(n.q.Checkbox,{fluid:!0,checked:O,content:"All Non-Synthetics",disabled:u,onClick:function(){return x("authsynth")}}),(0,e.jsx)(n.q.Checkbox,{fluid:!0,checked:_,content:"Downed Targets",disabled:u,onClick:function(){return x("authdown")}}),(0,e.jsx)(n.q.Checkbox,{fluid:!0,checked:b,content:"All Entities",disabled:u,onClick:function(){return x("authall")}})]})]})]})})}},56620:function(M,j,t){"use strict";t.r(j),t.d(j,{AreaCharge:function(){return d},PowerMonitor:function(){return c},PowerMonitorContent:function(){return h},PowerMonitorFocus:function(){return l},powerRank:function(){return m}});var e=t(33496),s=t(47392),n=t(18140),r=t(10608),o=t(69344),v=t(45280),g=t(68644),x=t(76512);function f(){return f=Object.assign||function(C){for(var y=1;y50?"battery-half":"battery-quarter")||y===1&&"bolt"||y===2&&"battery-full",color:y===0&&(b>50?"yellow":"red")||y===1&&"yellow"||y===2&&"green"}),(0,e.jsx)(g.kv,{inline:!0,width:"36px",textAlign:"right",children:(0,r.yI)(b)+"%"})]})},p=function(C){var y=C.status,b=!!(y&2),O=!!(y&1),I=(b?"On":"Off")+(" ["+(O?"auto":"manual")+"]");return(0,e.jsx)(g.wP,{color:b?"good":"bad",content:O?void 0:"M",title:I})}},74104:function(M,j,t){"use strict";t.r(j),t.d(j,{PressureRegulator:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.on,m=f.pressure_set,c=f.max_pressure,h=f.input_pressure,l=f.output_pressure,d=f.regulate_mode,p=f.set_flow_rate,C=f.last_flow_rate;return(0,e.jsx)(r.qo,{width:470,height:370,children:(0,e.jsxs)(r.qo.Content,{children:[(0,e.jsx)(n.iG,{title:"Status",children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsxs)(n.Ce.Item,{label:"Input Pressure",children:[(0,e.jsx)(n.Gg,{value:h/100})," kPa"]}),(0,e.jsxs)(n.Ce.Item,{label:"Output Pressure",children:[(0,e.jsx)(n.Gg,{value:l/100})," kPa"]}),(0,e.jsxs)(n.Ce.Item,{label:"Flow Rate",children:[(0,e.jsx)(n.Gg,{value:C/10})," L/s"]})]})}),(0,e.jsx)(n.iG,{title:"Controls",buttons:(0,e.jsx)(n.q,{icon:"power-off",content:u?"Unlocked":"Closed",selected:u,onClick:function(){return x("toggle_valve")}}),children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Pressure Regulation",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.q,{icon:"power-off",content:"Off",selected:d===0,onClick:function(){return x("regulate_mode",{mode:"off"})}}),(0,e.jsx)(n.q,{icon:"compress-arrows-alt",content:"Input",selected:d===1,onClick:function(){return x("regulate_mode",{mode:"input"})}}),(0,e.jsx)(n.q,{icon:"expand-arrows-alt",content:"Output",selected:d===2,onClick:function(){return x("regulate_mode",{mode:"output"})}})]})}),(0,e.jsxs)(n.Ce.Item,{label:"Desired Output Pressure",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.q,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){return x("set_press",{press:"min"})}}),(0,e.jsx)(n.q,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){return x("set_press",{press:"max"})}}),(0,e.jsx)(n.q,{icon:"wrench",content:"SET",onClick:function(){return x("set_press",{press:"set"})}})]}),children:[m/100," kPa"]}),(0,e.jsxs)(n.Ce.Item,{label:"Flow Rate Limit",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.q,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){return x("set_flow_rate",{press:"min"})}}),(0,e.jsx)(n.q,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){return x("set_flow_rate",{press:"max"})}}),(0,e.jsx)(n.q,{icon:"wrench",content:"SET",onClick:function(){return x("set_flow_rate",{press:"set"})}})]}),children:[p/10," L/s"]})]})})]})})}},68896:function(M,j,t){"use strict";t.r(j),t.d(j,{PrisonerManagement:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.locked,m=f.chemImplants,c=f.trackImplants;return(0,e.jsx)(r.qo,{width:500,height:400,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:u&&(0,e.jsxs)(n.iG,{title:"Locked",textAlign:"center",children:["This interface is currently locked.",(0,e.jsx)(n.kv,{children:(0,e.jsx)(n.q,{icon:"unlock",onClick:function(){return x("lock")},children:"Unlock"})})]})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.iG,{title:"Interface Lock",buttons:(0,e.jsx)(n.q,{icon:"lock",onClick:function(){return x("lock")},children:"Lock Interface"})}),(0,e.jsx)(n.iG,{title:"Chemical Implants",children:m.length&&(0,e.jsxs)(n.oJ,{children:[(0,e.jsxs)(n.oJ.Row,{header:!0,children:[(0,e.jsx)(n.oJ.Cell,{textAlign:"center",children:"Host"}),(0,e.jsx)(n.oJ.Cell,{textAlign:"center",children:"Units Remaining"}),(0,e.jsx)(n.oJ.Cell,{textAlign:"center",children:"Inject"})]}),m.map(function(h){return(0,e.jsxs)(n.oJ.Row,{children:[(0,e.jsx)(n.oJ.Cell,{textAlign:"center",children:h.host}),(0,e.jsxs)(n.oJ.Cell,{textAlign:"center",children:[h.units,"u remaining"]}),(0,e.jsxs)(n.oJ.Cell,{textAlign:"center",children:[(0,e.jsx)(n.q,{onClick:function(){return x("inject",{imp:h.ref,val:1})},children:"(1)"}),(0,e.jsx)(n.q,{onClick:function(){return x("inject",{imp:h.ref,val:5})},children:"(5)"}),(0,e.jsx)(n.q,{onClick:function(){return x("inject",{imp:h.ref,val:10})},children:"(10)"})]})]},h.ref)})]})||(0,e.jsx)(n.kv,{color:"average",children:"No chemical implants found."})}),(0,e.jsx)(n.iG,{title:"Tracking Implants",children:c.length&&(0,e.jsxs)(n.oJ,{children:[(0,e.jsxs)(n.oJ.Row,{header:!0,children:[(0,e.jsx)(n.oJ.Cell,{textAlign:"center",children:"Host"}),(0,e.jsx)(n.oJ.Cell,{textAlign:"center",children:"Location"}),(0,e.jsx)(n.oJ.Cell,{textAlign:"center",children:"Message"})]}),c.map(function(h){return(0,e.jsxs)(n.oJ.Row,{children:[(0,e.jsxs)(n.oJ.Cell,{textAlign:"center",children:[h.host," (",h.id,")"]}),(0,e.jsx)(n.oJ.Cell,{textAlign:"center",children:h.loc}),(0,e.jsx)(n.oJ.Cell,{textAlign:"center",children:(0,e.jsx)(n.q,{onClick:function(){return x("warn",{imp:h.ref})},children:"Message"})})]},h.ref)})]})||(0,e.jsx)(n.kv,{color:"average",children:"No chemical implants found."})})]})})})}},47816:function(M,j,t){"use strict";t.r(j),t.d(j,{RCON:function(){return u},RCONContent:function(){return m}});var e=t(33496),s=t(10608),n=t(49900),r=t(69344),o=t(45280),v=t(68644),g=t(96060),x=t(76512),f=1e3,u=function(p){return(0,e.jsx)(x.qo,{width:630,height:540,children:(0,e.jsx)(x.qo.Content,{scrollable:!0,children:(0,e.jsx)(m,{})})})},m=function(p){var C=(0,r.useState)(0),y=C[0],b=C[1],O;return y===0?O=(0,e.jsx)(c,{}):y===1&&(O=(0,e.jsx)(d,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(v.kZ,{children:[(0,e.jsxs)(v.kZ.Tab,{selected:y===0,onClick:function(){return b(0)},children:[(0,e.jsx)(v.GW,{name:"power-off"})," SMESs"]},"SMESs"),(0,e.jsxs)(v.kZ.Tab,{selected:y===1,onClick:function(){return b(1)},children:[(0,e.jsx)(v.GW,{name:"bolt"})," Breakers"]},"Breakers")]}),(0,e.jsx)(v.kv,{m:2,children:O})]})},c=function(p){var C=(0,o.yy)(),y=C.act,b=C.data,O=b.smes_info,I=b.pages,_=b.current_page,A=function(P){return P()};return(0,e.jsxs)(v.iG,{title:"SMESs (Page "+_+")",children:[(0,e.jsx)(v.fT,{vertical:!0,children:O.map(function(P){return(0,e.jsx)(v.fT.Item,{children:(0,e.jsx)(h,{smes:P})},P.RCON_tag)})}),"Page Selection:",(0,e.jsx)("br",{}),A(function(){for(var P=function(L){T.push((0,e.jsx)(v.q,{selected:_===L,onClick:function(){return y("set_smes_page",{index:L})},children:L},L))},T=[],R=1;R=2?(0,e.jsx)(r.kv,{color:"bad",children:"-- MODULE DESTROYED --"}):(0,e.jsxs)(r.Cu,{spacing:1,children:[(0,e.jsxs)(r.Cu.Item,{grow:1,children:[(0,e.jsxs)(r.kv,{color:"average",children:["Engage: ",y.engagecost]}),(0,e.jsxs)(r.kv,{color:"average",children:["Active: ",y.activecost]}),(0,e.jsxs)(r.kv,{color:"average",children:["Passive: ",y.passivecost]})]}),(0,e.jsx)(r.Cu.Item,{grow:1,children:y.desc})]}),y.charges?(0,e.jsx)(r.Cu.Item,{children:(0,e.jsx)(r.iG,{title:"Module Charges",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Selected",children:(0,s.Yj)(y.chargetype)}),y.charges.map(function(O,I){return(0,e.jsx)(r.Ce.Item,{label:(0,s.Yj)(O.caption),children:(0,e.jsx)(r.q,{selected:y.realchargetype===O.index,icon:"arrow-right",onClick:function(){return c("interact_module",{module:y.index,module_mode:"select_charge_type",charge_type:O.index})}})},O.caption)})]})})}):null]},y.name)})]})}},95444:function(M,j,t){"use strict";t.r(j),t.d(j,{Radio:function(){return g}});var e=t(33496),s=t(10608),n=t(45280),r=t(68644),o=t(36824),v=t(76512),g=function(x){var f=(0,n.yy)(),u=f.act,m=f.data,c=m.rawfreq,h=m.minFrequency,l=m.maxFrequency,d=m.listening,p=m.broadcasting,C=m.subspace,y=m.subspaceSwitchable,b=m.chan_list,O=m.loudspeaker,I=m.mic_cut,_=m.spk_cut,A=m.useSyndMode,P=o.Ut.find(function(R){return R.freq===Number(c)}),T=156;return b&&b.length>0?T+=b.length*28+6:T+=24,y&&(T+=38),(0,e.jsx)(v.qo,{width:310,height:T,resizable:!0,theme:A?"syndicate":"",children:(0,e.jsxs)(v.qo.Content,{children:[(0,e.jsx)(r.iG,{children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsxs)(r.Ce.Item,{label:"Frequency",children:[(0,e.jsx)(r.Ef,{animated:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:h/10,maxValue:l/10,value:c/10,format:function(R){return(0,s.yI)(R,1)},onDrag:function(R,L){return u("setFrequency",{freq:(0,s.kL)(L*10)})}}),P&&(0,e.jsxs)(r.kv,{inline:!0,color:P.color,ml:2,children:["[",P.name,"]"]})]}),(0,e.jsxs)(r.Ce.Item,{label:"Audio",children:[(0,e.jsx)(r.q,{textAlign:"center",width:"37px",icon:d?"volume-up":"volume-mute",selected:d,disabled:_,onClick:function(){return u("listen")}}),(0,e.jsx)(r.q,{textAlign:"center",width:"37px",icon:p?"microphone":"microphone-slash",selected:p,disabled:I,onClick:function(){return u("broadcast")}}),!!y&&(0,e.jsx)(r.kv,{children:(0,e.jsx)(r.q,{icon:"bullhorn",selected:C,content:"Subspace Tx "+(C?"ON":"OFF"),onClick:function(){return u("subspace")}})}),!!y&&(0,e.jsx)(r.kv,{children:(0,e.jsx)(r.q,{icon:O?"volume-up":"volume-mute",selected:O,content:"Loudspeaker",onClick:function(){return u("toggleLoudspeaker")}})})]})]})}),(0,e.jsxs)(r.iG,{title:"Channels",children:[(!b||b.length===0)&&(0,e.jsx)(r.kv,{inline:!0,color:"bad",children:"No channels detected."}),(0,e.jsx)(r.Ce,{children:b?b.map(function(R){var L=o.Ut.find(function(U){return U.freq===Number(R.freq)}),N="default";return L&&(N=L.color),(0,e.jsx)(r.Ce.Item,{label:R.display_name,labelColor:N,textAlign:"right",children:R.secure_channel&&C?(0,e.jsx)(r.q,{icon:R.sec_channel_listen?"square-o":"check-square-o",selected:!R.sec_channel_listen,content:R.sec_channel_listen?"Off":"On",onClick:function(){return u("channel",{channel:R.chan})}}):(0,e.jsx)(r.q,{content:"Switch",selected:R.chan===c,onClick:function(){return u("specFreq",{channel:R.chan})}})},R.chan)}):null})]})]})})}},92936:function(M,j,t){"use strict";t.r(j),t.d(j,{ICON_BY_CATEGORY_NAME:function(){return x},RapidPipeDispenser:function(){return h}});var e=t(33496),s=t(28324),n=t(49900),r=t(45280),o=t(68644),v=t(76512),g=["Atmospherics","Disposals"],x={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"},f=[{name:"Dispense",bitmask:1},{name:"Connect",bitmask:2},{name:"Destroy",bitmask:4},{name:"Paint",bitmask:8}],u=function(l){var d=(0,r.yy)(),p=d.act,C=d.data,y=C.category,b=C.selected_color,O=C.mode;return(0,e.jsx)(o.iG,{children:(0,e.jsxs)(o.Ce,{children:[(0,e.jsx)(o.Ce.Item,{label:"Category",children:g.map(function(I,_){return(0,e.jsx)(o.q,{selected:y===_,icon:x[I],color:"transparent",onClick:function(){return p("category",{category:_})},children:I},I)})}),(0,e.jsx)(o.Ce.Item,{label:"Modes",children:(0,e.jsx)(o.fT,{fill:!0,children:f.map(function(I){return(0,e.jsx)(o.fT.Item,{grow:!0,children:(0,e.jsx)(o.q.Checkbox,{checked:O&I.bitmask,fluid:!0,content:I.name,onClick:function(){return p("mode",{mode:I.bitmask})}})},I.bitmask)})})}),(0,e.jsxs)(o.Ce.Item,{label:"Color",children:[(0,e.jsx)(o.kv,{inline:!0,width:"64px",color:C.paint_colors[b],children:(0,n.Yj)(b)}),Object.keys(C.paint_colors).map(function(I){return(0,e.jsx)(o.wP,{ml:1,color:C.paint_colors[I],onClick:function(){return p("color",{paint_color:I})}},I)})]})]})})},m=function(l){var d=(0,r.yy)(),p=d.act,C=d.data,y=C.category,b=C.piping_layer,O=C.pipe_layers,I=C.preview_rows.flatMap(function(_){return _.previews});return(0,e.jsxs)(o.iG,{fill:!0,width:7.5,children:[y===0&&(0,e.jsx)(o.fT,{vertical:!0,mb:1,children:Object.keys(O).map(function(_){return(0,e.jsx)(o.fT.Item,{my:0,children:(0,e.jsx)(o.q.Checkbox,{checked:O[_]===b,content:_,onClick:function(){return p("piping_layer",{piping_layer:O[_]})}})},_)})}),(0,e.jsx)(o.kv,{width:"120px",children:I.map(function(_){return(0,e.jsx)(o.q,{ml:0,title:_.dir_name,selected:_.selected,style:{width:"40px",height:"40px",padding:0},onClick:function(){return p("setdir",{dir:_.dir,flipped:_.flipped})},children:(0,e.jsx)(o.kv,{className:(0,s.iE)(["pipes32x32",_.dir+"-"+_.icon_state]),style:{transform:"scale(1.5) translate(9.5%, 9.5%)"}})},_.dir)})})]})},c=function(l){var d=(0,r.yy)(),p=d.act,C=d.data,y=C.categories,b=y===void 0?[]:y,O=(0,r.cv)("categoryName"),I=O[0],_=O[1],A=b.find(function(P){return P.cat_name===I})||b[0];return(0,e.jsxs)(o.iG,{fill:!0,scrollable:!0,children:[(0,e.jsx)(o.kZ,{children:b.map(function(P,T){return(0,e.jsx)(o.kZ.Tab,{fluid:!0,icon:x[P.cat_name],selected:P.cat_name===A.cat_name,onClick:function(){return _(P.cat_name)},children:P.cat_name},P.cat_name)})}),A==null?void 0:A.recipes.map(function(P){return(0,e.jsx)(o.q.Checkbox,{fluid:!0,ellipsis:!0,checked:P.selected,content:P.pipe_name,title:P.pipe_name,onClick:function(){return p("pipe_type",{pipe_type:P.pipe_index,category:A.cat_name})}},P.pipe_index)})]})},h=function(l){var d=(0,r.yy)(),p=d.act,C=d.data,y=C.category;return(0,e.jsx)(v.qo,{width:550,height:570,children:(0,e.jsx)(v.qo.Content,{children:(0,e.jsxs)(o.fT,{fill:!0,vertical:!0,children:[(0,e.jsx)(o.fT.Item,{children:(0,e.jsx)(u,{})}),(0,e.jsx)(o.fT.Item,{grow:!0,children:(0,e.jsxs)(o.fT,{fill:!0,children:[(0,e.jsx)(o.fT.Item,{children:(0,e.jsx)(o.fT,{vertical:!0,fill:!0,children:(0,e.jsx)(o.fT.Item,{grow:!0,children:(0,e.jsx)(m,{})})})}),(0,e.jsx)(o.fT.Item,{grow:!0,children:(0,e.jsx)(c,{})})]})})]})})})}},26008:function(M,j,t){"use strict";t.r(j),t.d(j,{RequestConsole:function(){return R}});var e=t(33496),s=t(49900),n=t(45280),r=t(68644),o=t(76512),v=0,g=1,x=2,f=3,u=4,m=5,c=6,h=7,l=8,d=function(L){var N=(0,n.yy)(),U=N.act,V=N.data,z=V.silent;return(0,e.jsx)(r.iG,{title:"Settings",children:(0,e.jsxs)(r.q,{selected:!z,icon:z?"volume-mute":"volume-up",onClick:function(){return U("toggleSilent")},children:["Speaker ",z?"OFF":"ON"]})})},p=function(L){var N=(0,n.yy)(),U=N.act,V=N.data,z=V.department,Q=V.supply_dept;return(0,e.jsx)(r.iG,{title:"Supplies",children:(0,e.jsx)(b,{dept_list:Q,department:z})})},C=function(L){var N=(0,n.yy)(),U=N.act,V=N.data,z=V.department,Q=V.assist_dept;return(0,e.jsx)(r.iG,{title:"Request assistance from another department",children:(0,e.jsx)(b,{dept_list:Q,department:z})})},y=function(L){var N=(0,n.yy)(),U=N.act,V=N.data,z=V.department,Q=V.info_dept;return(0,e.jsx)(r.iG,{title:"Report Anonymous Information",children:(0,e.jsx)(b,{dept_list:Q,department:z})})},b=function(L){var N=(0,n.yy)().act,U=L.dept_list,V=L.department;return(0,e.jsx)(r.Ce,{children:U.sort().map(function(z){return z!==V&&(0,e.jsx)(r.Ce.Item,{label:z,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.q,{icon:"envelope-open-text",onClick:function(){return N("write",{write:z,priority:1})},children:"Message"}),(0,e.jsx)(r.q,{icon:"exclamation-triangle",onClick:function(){return N("write",{write:z,priority:2})},children:"High Priority"})]})})||null})})},O=function(L){var N=(0,n.yy)(),U=N.act,V=N.data;return(0,e.jsxs)(r.iG,{children:[(0,e.jsx)(r.kv,{fontSize:2,color:"good",children:"Message Sent Successfully"}),(0,e.jsx)(r.kv,{children:(0,e.jsx)(r.q,{icon:"arrow-right",onClick:function(){return U("setScreen",{setScreen:v})},children:"Continue"})})]})},I=function(L){var N=(0,n.yy)(),U=N.act,V=N.data;return(0,e.jsxs)(r.iG,{children:[(0,e.jsx)(r.kv,{fontSize:1.5,bold:!0,color:"bad",children:"An error occured. Message Not Sent."}),(0,e.jsx)(r.kv,{children:(0,e.jsx)(r.q,{icon:"arrow-right",onClick:function(){return U("setScreen",{setScreen:v})},children:"Continue"})})]})},_=function(L){var N=(0,n.yy)(),U=N.act,V=N.data,z=V.message_log;return(0,e.jsx)(r.iG,{title:"Messages",children:z.length&&z.map(function(Q,H){return(0,e.jsx)(r.Ce.Item,{label:(0,s.Af)(Q[0]),buttons:(0,e.jsx)(r.q,{icon:"print",onClick:function(){return U("print",{print:H+1})},children:"Print"}),children:(0,s.Af)(Q[1])},H)})||(0,e.jsx)(r.kv,{children:"No messages."})})},A=function(L){var N=(0,n.yy)(),U=N.act,V=N.data,z=V.message,Q=V.recipient,H=V.priority,q=V.msgStamped,Z=V.msgVerified;return(0,e.jsxs)(r.iG,{title:"Message Authentication",children:[(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Message for "+Q,children:z}),(0,e.jsx)(r.Ce.Item,{label:"Priority",children:H===2?"High Priority":H===1?"Normal Priority":"Unknown"}),(0,e.jsx)(r.Ce.Item,{label:"Validated By",color:Z?"good":"bad",children:(0,s.Af)(Z)||"No Validation"}),(0,e.jsx)(r.Ce.Item,{label:"Stamped By",color:q?"good":"bad",children:(0,s.Af)(q)||"No Stamp"})]}),(0,e.jsx)(r.q,{mt:1,icon:"share",onClick:function(){return U("department",{department:Q})},children:"Send Message"}),(0,e.jsx)(r.q,{icon:"undo",onClick:function(){return U("setScreen",{setScreen:v})},children:"Back"})]})},P=function(L){var N=(0,n.yy)(),U=N.act,V=N.data,z=V.department,Q=V.screen,H=V.message_log,q=V.newmessagepriority,Z=V.silent,$=V.announcementConsole,G=V.assist_dept,Y=V.supply_dept,ee=V.info_dept,ae=V.message,re=V.recipient,le=V.priority,se=V.msgStamped,fe=V.msgVerified,de=V.announceAuth;return(0,e.jsxs)(r.iG,{title:"Send Station-Wide Announcement",children:[de&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.kv,{bold:!0,color:"good",mb:1,children:"ID Verified. Authentication Accepted."}),(0,e.jsx)(r.iG,{title:"Message",mt:1,maxHeight:"200px",scrollable:!0,buttons:(0,e.jsx)(r.q,{ml:1,icon:"pen",onClick:function(){return U("writeAnnouncement")},children:"Edit"}),children:ae||"No Message"})]})||(0,e.jsx)(r.kv,{bold:!0,color:"bad",mb:1,children:"Swipe your ID card to authenticate yourself."}),(0,e.jsx)(r.q,{disabled:!ae||!de,icon:"share",onClick:function(){return U("sendAnnouncement")},children:"Announce"}),(0,e.jsx)(r.q,{icon:"undo",onClick:function(){return U("setScreen",{setScreen:v})},children:"Back"})]})},T={};T[v]=d,T[g]=C,T[x]=p,T[f]=y,T[u]=O,T[m]=I,T[c]=_,T[h]=A,T[l]=P;var R=function(L){var N=(0,n.yy)(),U=N.act,V=N.data,z=V.screen,Q=V.newmessagepriority,H=V.announcementConsole,q=T[z];return(0,e.jsx)(o.qo,{width:520,height:410,children:(0,e.jsxs)(o.qo.Content,{scrollable:!0,children:[(0,e.jsxs)(r.kZ,{children:[(0,e.jsx)(r.kZ.Tab,{selected:z===c,onClick:function(){return U("setScreen",{setScreen:c})},icon:"envelope-open-text",children:"Messages"}),(0,e.jsx)(r.kZ.Tab,{selected:z===g,onClick:function(){return U("setScreen",{setScreen:g})},icon:"share-square",children:"Assistance"}),(0,e.jsx)(r.kZ.Tab,{selected:z===x,onClick:function(){return U("setScreen",{setScreen:x})},icon:"share-square",children:"Supplies"}),(0,e.jsx)(r.kZ.Tab,{selected:z===f,onClick:function(){return U("setScreen",{setScreen:f})},icon:"share-square-o",children:"Report"}),H&&(0,e.jsx)(r.kZ.Tab,{selected:z===l,onClick:function(){return U("setScreen",{setScreen:l})},icon:"volume-up",children:"Announce"})||null,(0,e.jsx)(r.kZ.Tab,{selected:z===v,onClick:function(){return U("setScreen",{setScreen:v})},icon:"cog"})]}),Q&&(0,e.jsx)(r.iG,{title:Q>1?"NEW PRIORITY MESSAGES":"There are new messages!",color:Q>1?"bad":"average",bold:Q>1})||null,(0,e.jsx)(q,{})]})})}},64032:function(M,j,t){"use strict";t.r(j),t.d(j,{ResearchConsole:function(){return b}});var e=t(33496),s=t(49900),n=t(69344),r=t(45280),o=t(68644),v=t(76512),g=function(O){var I=(0,r.yy)(),_=I.act,A=I.data,P=A.tech;return(0,e.jsx)(o.iG,{title:"Current Research Levels",buttons:(0,e.jsx)(o.q,{icon:"print",onClick:function(){return _("print",{print:1})},children:"Print This Page"}),children:(0,e.jsx)(o.oJ,{children:P.map(function(T){return(0,e.jsxs)(o.oJ.Row,{children:[(0,e.jsxs)(o.oJ.Cell,{children:[(0,e.jsx)(o.kv,{color:"label",children:T.name}),(0,e.jsxs)(o.kv,{children:[" - Level ",T.level]})]}),(0,e.jsx)(o.oJ.Cell,{children:(0,e.jsx)(o.kv,{color:"label",children:T.desc})})]},T.name)})})})},x=function(O){var I=(0,r.yy)().data,_=O.title,A=O.target,P=I[A];return typeof P=="number"?_+" - Page "+(P+1):_},f=function(O){var I=(0,r.yy)().act,_=O.target;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.q,{icon:"undo",onClick:function(){return I(_,{reset:!0})}}),(0,e.jsx)(o.q,{icon:"chevron-left",onClick:function(){return I(_,{reverse:-1})}}),(0,e.jsx)(o.q,{icon:"chevron-right",onClick:function(){return I(_,{reverse:1})}})]})},u=function(O){var I=(0,r.yy)(),_=I.act,A=I.data,P=A.designs;return(0,e.jsxs)(o.iG,{title:(0,e.jsx)(x,{title:"Researched Technologies & Designs",target:"design_page"}),buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.q,{icon:"print",onClick:function(){return _("print",{print:2})},children:"Print This Page"}),(0,e.jsx)(f,{target:"design_page"})||null]}),children:[(0,e.jsx)(o.EF,{fluid:!0,placeholder:"Search for...",value:A.search,onInput:function(T,R){return _("search",{search:R})},mb:1}),P&&P.length&&(0,e.jsx)(o.Ce,{children:P.map(function(T){return(0,e.jsx)(o.Ce.Item,{label:T.name,children:T.desc},T.name)})})||(0,e.jsx)(o.kv,{color:"warning",children:"No designs found."})]})},m=function(O){var I=(0,r.yy)(),_=I.act,A=I.data,P=A.tech,T=O.disk;if(!T||!T.present)return null;var R=(0,r.ao)("saveDialogTech",!1),L=R[0],N=R[1];return L?(0,e.jsx)(o.iG,{title:"Load Technology to Disk",buttons:(0,e.jsx)(o.q,{icon:"arrow-left",content:"Back",onClick:function(){return N(!1)}}),children:(0,e.jsx)(o.Ce,{children:P.map(function(U){return(0,e.jsx)(o.Ce.Item,{label:U.name,children:(0,e.jsx)(o.q,{icon:"save",onClick:function(){N(!1),_("copy_tech",{copy_tech_ID:U.id})},children:"Copy To Disk"})},U.name)})})}):(0,e.jsxs)(o.kv,{children:[(0,e.jsx)(o.Ce,{children:(0,e.jsx)(o.Ce.Item,{label:"Disk Contents",children:"(Technology Data Disk)"})}),T.stored&&(0,e.jsxs)(o.kv,{mt:2,children:[(0,e.jsx)(o.kv,{children:T.name}),(0,e.jsxs)(o.kv,{children:["Level: ",T.level]}),(0,e.jsxs)(o.kv,{children:["Description: ",T.desc]}),(0,e.jsxs)(o.kv,{mt:1,children:[(0,e.jsx)(o.q,{icon:"save",onClick:function(){return _("updt_tech")},children:"Upload to Database"}),(0,e.jsx)(o.q,{icon:"trash",onClick:function(){return _("clear_tech")},children:"Clear Disk"}),(0,e.jsx)(o.q,{icon:"eject",onClick:function(){return _("eject_tech")},children:"Eject Disk"})]})]})||(0,e.jsxs)(o.kv,{children:[(0,e.jsx)(o.kv,{children:"This disk has no data stored on it."}),(0,e.jsx)(o.q,{icon:"save",onClick:function(){return N(!0)},children:"Load Tech To Disk"}),(0,e.jsx)(o.q,{icon:"eject",onClick:function(){return _("eject_tech")},children:"Eject Disk"})]})]})},c=function(O){var I=(0,r.yy)(),_=I.act,A=I.data,P=A.designs,T=O.disk;if(!T||!T.present)return null;var R=(0,r.ao)("saveDialogData",!1),L=R[0],N=R[1];return L?(0,e.jsxs)(o.iG,{title:(0,e.jsx)(x,{title:"Load Design to Disk",target:"design_page"}),buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.q,{icon:"arrow-left",content:"Back",onClick:function(){return N(!1)}}),(0,e.jsx)(f,{target:"design_page"})||null]}),children:[(0,e.jsx)(o.EF,{fluid:!0,placeholder:"Search for...",value:A.search,onInput:function(U,V){return _("search",{search:V})},mb:1}),P&&P.length&&(0,e.jsx)(o.Ce,{children:P.map(function(U){return(0,e.jsx)(o.Ce.Item,{label:U.name,children:(0,e.jsx)(o.q,{icon:"save",onClick:function(){N(!1),_("copy_design",{copy_design_ID:U.id})},children:"Copy To Disk"})},U.name)})})||(0,e.jsx)(o.kv,{color:"warning",children:"No designs found."})]}):(0,e.jsx)(o.kv,{children:T.stored&&(0,e.jsxs)(o.kv,{children:[(0,e.jsxs)(o.Ce,{children:[(0,e.jsx)(o.Ce.Item,{label:"Name",children:T.name}),(0,e.jsx)(o.Ce.Item,{label:"Lathe Type",children:T.build_type}),(0,e.jsx)(o.Ce.Item,{label:"Required Materials",children:Object.keys(T.materials).map(function(U){return(0,e.jsxs)(o.kv,{children:[U," x ",T.materials[U]]},U)})})]}),(0,e.jsxs)(o.kv,{mt:1,children:[(0,e.jsx)(o.q,{icon:"save",onClick:function(){return _("updt_design")},children:"Upload to Database"}),(0,e.jsx)(o.q,{icon:"trash",onClick:function(){return _("clear_design")},children:"Clear Disk"}),(0,e.jsx)(o.q,{icon:"eject",onClick:function(){return _("eject_design")},children:"Eject Disk"})]})]})||(0,e.jsxs)(o.kv,{children:[(0,e.jsx)(o.kv,{mb:.5,children:"This disk has no data stored on it."}),(0,e.jsx)(o.q,{icon:"save",onClick:function(){return N(!0)},children:"Load Design To Disk"}),(0,e.jsx)(o.q,{icon:"eject",onClick:function(){return _("eject_design")},children:"Eject Disk"})]})})},h=function(O){var I=(0,r.yy)(),_=I.act,A=I.data,P=A.info,T=P.d_disk,R=P.t_disk;return!T.present&&!R.present?(0,e.jsx)(o.iG,{title:"Disk Operations",children:"No disk inserted."}):(0,e.jsxs)(o.iG,{title:"Disk Operations",children:[(0,e.jsx)(m,{disk:R}),(0,e.jsx)(c,{disk:T})]})},l=function(O){var I=(0,r.yy)(),_=I.act,A=I.data,P=A.info.linked_destroy;if(!P.present)return(0,e.jsx)(o.iG,{title:"Destructive Analyzer",children:"No destructive analyzer found."});var T=P.loaded_item,R=P.origin_tech;return(0,e.jsx)(o.iG,{title:"Destructive Analyzer",children:T&&(0,e.jsxs)(o.kv,{children:[(0,e.jsxs)(o.Ce,{children:[(0,e.jsx)(o.Ce.Item,{label:"Name",children:T}),(0,e.jsx)(o.Ce.Item,{label:"Origin Tech",children:(0,e.jsx)(o.Ce,{children:R.length&&R.map(function(L){return(0,e.jsxs)(o.Ce.Item,{label:L.name,children:[L.level,"\xA0\xA0",L.current&&"(Current: "+L.current+")"]},L.name)})||(0,e.jsx)(o.Ce.Item,{label:"Error",children:"No origin tech found."})})})]}),(0,e.jsx)(o.q,{mt:1,color:"red",icon:"eraser",onClick:function(){return _("deconstruct")},children:"Deconstruct Item"}),(0,e.jsx)(o.q,{icon:"eject",onClick:function(){return _("eject_item")},children:"Eject Item"})]})||(0,e.jsx)(o.kv,{children:"No Item Loaded. Standing-by..."})})},d=function(O){var I=(0,r.yy)(),_=I.act,A=I.data,P=O.target,T=O.designs,R=O.buildName,L=O.buildFiveName;return P?(0,e.jsxs)(o.iG,{title:(0,e.jsx)(x,{target:"builder_page",title:"Designs"}),buttons:(0,e.jsx)(f,{target:"builder_page"}),children:[(0,e.jsx)(o.EF,{fluid:!0,placeholder:"Search for...",value:A.search,onInput:function(N,U){return _("search",{search:U})},mb:1}),T&&T.length?T.map(function(N){return(0,e.jsxs)(n.Fragment,{children:[(0,e.jsxs)(o.Cu,{width:"100%",justify:"space-between",children:[(0,e.jsx)(o.Cu.Item,{width:"40%",style:{"word-wrap":"break-all"},children:N.name}),(0,e.jsxs)(o.Cu.Item,{width:"15%",textAlign:"center",children:[(0,e.jsx)(o.q,{mb:-1,icon:"wrench",onClick:function(){return _(R,{build:N.id,imprint:N.id})},children:"Build"}),L&&(0,e.jsx)(o.q,{mb:-1,onClick:function(){return _(L,{build:N.id,imprint:N.id})},children:"x5"})]}),(0,e.jsxs)(o.Cu.Item,{width:"45%",style:{"word-wrap":"break-all"},children:[(0,e.jsx)(o.kv,{inline:!0,color:"label",children:N.mat_list.join(" ")}),(0,e.jsx)(o.kv,{inline:!0,color:"average",ml:1,children:N.chem_list.join(" ")})]})]}),(0,e.jsx)(o.c1,{})]},N.id)}):(0,e.jsx)(o.kv,{children:"No items could be found matching the parameters (page or search)."})]}):(0,e.jsx)(o.kv,{color:"bad",children:"Error"})},p=function(O){var I=(0,r.yy)(),_=I.act,A=I.data,P=O.name,T=null,R=null;if(P==="Protolathe"?(T=A.info.linked_lathe,R=A.lathe_designs):(T=A.info.linked_imprinter,R=A.imprinter_designs),!T||!T.present)return(0,e.jsxs)(o.iG,{title:P,children:["No ",P," found."]});var L=T.total_materials,N=T.max_materials,U=T.total_volume,V=T.max_volume,z=T.busy,Q=T.mats,H=T.reagents,q=T.queue,Z=(0,r.ao)("protoTab",0),$=Z[0],G=Z[1],Y="transparent",ee=!1,ae="layer-group";z?(ae="hammer",Y="average",ee=!0):q&&q.length&&(ae="sync",Y="green",ee=!0);var re=P==="Protolathe"?"removeP":"removeI",le=P==="Protolathe"?"lathe_ejectsheet":"imprinter_ejectsheet",se=P==="Protolathe"?"disposeP":"disposeI",fe=P==="Protolathe"?"disposeallP":"disposeallI";return(0,e.jsxs)(o.iG,{title:P,buttons:z&&(0,e.jsx)(o.GW,{name:"sync",spin:!0})||null,children:[(0,e.jsxs)(o.Ce,{children:[(0,e.jsx)(o.Ce.Item,{label:"Materials",children:(0,e.jsxs)(o.cH,{value:L,maxValue:N,children:[L," cm\xB3 / ",N," cm\xB3"]})}),(0,e.jsx)(o.Ce.Item,{label:"Chemicals",children:(0,e.jsxs)(o.cH,{value:U,maxValue:V,children:[U,"u / ",V,"u"]})})]}),(0,e.jsxs)(o.kZ,{mt:1,children:[(0,e.jsx)(o.kZ.Tab,{icon:"wrench",selected:$===0,onClick:function(){return G(0)},children:"Build"}),(0,e.jsx)(o.kZ.Tab,{icon:ae,iconSpin:ee,color:Y,selected:$===1,onClick:function(){return G(1)},children:"Queue"}),(0,e.jsx)(o.kZ.Tab,{icon:"cookie-bite",selected:$===2,onClick:function(){return G(2)},children:"Mat Storage"}),(0,e.jsx)(o.kZ.Tab,{icon:"flask",selected:$===3,onClick:function(){return G(3)},children:"Chem Storage"})]}),$===0&&(0,e.jsx)(d,{target:T,designs:R,buildName:P==="Protolathe"?"build":"imprint",buildFiveName:P==="Protolathe"?"buildfive":null})||$===1&&(0,e.jsx)(o.Ce,{children:q.length&&q.map(function(de,he){return de.index===1?(0,e.jsx)(o.Ce.Item,{label:de.name,labelColor:"bad",children:z?(0,e.jsx)(o.q,{disabled:!0,icon:"trash",children:"Remove"}):(0,e.jsxs)(o.kv,{children:["(Awaiting Materials)",(0,e.jsx)(o.q,{ml:1,icon:"trash",onClick:function(){var me;return _(re,(me={},me[re]=de.index,me))},children:"Remove"})]})},he):(0,e.jsx)(o.Ce.Item,{label:de.name,children:(0,e.jsx)(o.q,{icon:"trash",onClick:function(){var me;return _(re,(me={},me[re]=de.index,me))},children:"Remove"})},de.name)})||(0,e.jsx)(o.kv,{m:1,children:"Queue Empty."})})||$===2&&(0,e.jsx)(o.Ce,{children:Q.map(function(de){var he=(0,r.cv)("ejectAmt"+de.name,0),me=he[0],Ie=he[1];return(0,e.jsxs)(o.Ce.Item,{label:(0,s.Yl)(de.name),buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.Ef,{minValue:0,width:"100px",value:me,maxValue:de.sheets,onDrag:function(Pe,Me){return Ie(Me)}}),(0,e.jsx)(o.q,{icon:"eject",disabled:!de.removable,onClick:function(){Ie(0);var Pe;_(le,(Pe={},Pe[le]=de.name,Pe.amount=me,Pe))},children:"Num"}),(0,e.jsx)(o.q,{icon:"eject",disabled:!de.removable,onClick:function(){var Pe;return _(le,(Pe={},Pe[le]=de.name,Pe.amount=50,Pe))},children:"All"})]}),children:[de.amount," cm\xB3"]},de.name)})})||$===3&&(0,e.jsxs)(o.kv,{children:[(0,e.jsx)(o.Ce,{children:H.length&&H.map(function(de){return(0,e.jsxs)(o.Ce.Item,{label:de.name,children:[de.volume,"u",(0,e.jsx)(o.q,{ml:1,icon:"eject",onClick:function(){return _(se,{dispose:de.id})},children:"Purge"})]},de.name)})||(0,e.jsx)(o.Ce.Item,{label:"Empty",children:"No chems detected"})}),(0,e.jsx)(o.q,{mt:1,icon:"trash",onClick:function(){return _(fe)},children:"Disposal All Chemicals In Storage"})]})||(0,e.jsx)(o.kv,{children:"Error"})]})},C=function(O){var I=(0,r.yy)(),_=I.act,A=I.data,P=A.info,T=P.sync,R=P.linked_destroy,L=P.linked_imprinter,N=P.linked_lathe,U=(0,r.ao)("settingsTab",0),V=U[0],z=U[1];return(0,e.jsxs)(o.iG,{title:"Settings",children:[(0,e.jsxs)(o.kZ,{children:[(0,e.jsx)(o.kZ.Tab,{icon:"cogs",onClick:function(){return z(0)},selected:V===0,children:"General"}),(0,e.jsx)(o.kZ.Tab,{icon:"link",onClick:function(){return z(1)},selected:V===1,children:"Device Linkages"})]}),V===0&&(0,e.jsxs)(o.kv,{children:[T&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.q,{fluid:!0,icon:"sync",onClick:function(){return _("sync")},children:"Sync Database with Network"}),(0,e.jsx)(o.q,{fluid:!0,icon:"unlink",onClick:function(){return _("togglesync")},children:"Disconnect from Research Network"})]})||(0,e.jsx)(o.q,{fluid:!0,icon:"link",onClick:function(){return _("togglesync")},children:"Connect to Research Network"}),(0,e.jsx)(o.q,{fluid:!0,icon:"lock",onClick:function(){return _("lock")},children:"Lock Console"}),(0,e.jsx)(o.q,{fluid:!0,color:"red",icon:"trash",onClick:function(){return _("reset")},children:"Reset R&D Database"})]})||V===1&&(0,e.jsxs)(o.kv,{children:[(0,e.jsx)(o.q,{fluid:!0,icon:"sync",mb:1,onClick:function(){return _("find_device")},children:"Re-sync with Nearby Devices"}),(0,e.jsxs)(o.Ce,{children:[R.present&&(0,e.jsx)(o.Ce.Item,{label:"Destructive Analyzer",children:(0,e.jsx)(o.q,{icon:"unlink",onClick:function(){return _("disconnect",{disconnect:"destroy"})},children:"Disconnect"})})||null,N.present&&(0,e.jsx)(o.Ce.Item,{label:"Protolathe",children:(0,e.jsx)(o.q,{icon:"unlink",onClick:function(){return _("disconnect",{disconnect:"lathe"})},children:"Disconnect"})})||null,L.present&&(0,e.jsx)(o.Ce.Item,{label:"Circuit Imprinter",children:(0,e.jsx)(o.q,{icon:"unlink",onClick:function(){return _("disconnect",{disconnect:"imprinter"})},children:"Disconnect"})})||null]})]})||(0,e.jsx)(o.kv,{children:"Error"})]})},y=[{name:"Protolathe",icon:"wrench",template:(0,e.jsx)(p,{name:"Protolathe"})},{name:"Circuit Imprinter",icon:"digital-tachograph",template:(0,e.jsx)(p,{name:"Circuit Imprinter"})},{name:"Destructive Analyzer",icon:"eraser",template:(0,e.jsx)(l,{})},{name:"Settings",icon:"cog",template:(0,e.jsx)(C,{})},{name:"Research List",icon:"flask",template:(0,e.jsx)(g,{})},{name:"Design List",icon:"file",template:(0,e.jsx)(u,{})},{name:"Disk Operations",icon:"save",template:(0,e.jsx)(h,{})}],b=function(O){var I=(0,r.yy)(),_=I.act,A=I.data,P=A.busy_msg,T=A.locked,R=(0,r.ao)("rdmenu",0),L=R[0],N=R[1],U=!1;return(P||T)&&(U=!0),(0,e.jsx)(v.qo,{width:850,height:630,children:(0,e.jsxs)(v.qo.Content,{scrollable:!0,children:[(0,e.jsx)(o.kZ,{children:y.map(function(V,z){return(0,e.jsx)(o.kZ.Tab,{icon:V.icon,selected:L===z,disabled:U,onClick:function(){return N(z)},children:V.name},z)})}),P&&(0,e.jsx)(o.iG,{title:"Processing...",children:P})||T&&(0,e.jsx)(o.iG,{title:"Console Locked",children:(0,e.jsx)(o.q,{onClick:function(){return _("lock")},icon:"lock-open",children:"Unlock"})})||y[L].template]})})}},71796:function(M,j,t){"use strict";t.r(j),t.d(j,{ResearchServerController:function(){return v}});var e=t(33496),s=t(47392),n=t(45280),r=t(68644),o=t(76512),v=function(c){var h=(0,n.yy)(),l=h.act,d=h.data;return(0,e.jsx)(o.qo,{width:575,height:430,children:(0,e.jsx)(o.qo.Content,{scrollable:!0,children:(0,e.jsx)(g,{})})})},g=function(c){var h=(0,n.yy)(),l=h.act,d=h.data,p=d.badmin,C=d.servers,y=d.consoles,b=(0,n.ao)("selectedServer",null),O=b[0],I=b[1],_=C.find(function(A){return A.id===O});return _?(0,e.jsx)(x,{setSelectedServer:I,server:_}):(0,e.jsx)(r.iG,{title:"Server Selection",children:C.map(function(A){return(0,e.jsx)(r.kv,{children:(0,e.jsx)(r.q,{icon:"eye",onClick:function(){return I(A.id)},children:A.name})},A.name)})})},x=function(c){var h=(0,n.yy)(),l=h.act,d=h.data,p=d.badmin,C=c.server,y=c.setSelectedServer,b=(0,n.ao)("tab",0),O=b[0],I=b[1];return(0,e.jsxs)(r.iG,{title:C.name,buttons:(0,e.jsx)(r.q,{icon:"undo",onClick:function(){return y(null)},children:"Back"}),children:[(0,e.jsxs)(r.kZ,{children:[(0,e.jsx)(r.kZ.Tab,{selected:O===0,onClick:function(){return I(0)},children:"Access Rights"}),(0,e.jsx)(r.kZ.Tab,{selected:O===1,onClick:function(){return I(1)},children:"Data Management"}),p&&(0,e.jsx)(r.kZ.Tab,{selected:O===2,onClick:function(){return I(2)},color:"red",children:"Server-to-Server Transfer"})||null]}),O===0&&(0,e.jsx)(f,{server:C})||null,O===1&&(0,e.jsx)(u,{server:C})||null,O===2&&p&&(0,e.jsx)(m,{server:C})||null]})},f=function(c){var h=(0,n.yy)(),l=h.act,d=h.data,p=c.server,C=d.consoles,y=function(O,I){return O.id_with_upload.indexOf(I.id)!==-1},b=function(O,I){return O.id_with_download.indexOf(I.id)!==-1};return(0,e.jsx)(r.iG,{level:2,title:"Consoles",children:(0,e.jsx)(r.Ce,{children:C.length&&C.map(function(O){return(0,e.jsxs)(r.Ce.Item,{label:O.name+" ("+O.loc+")",children:[(0,e.jsx)(r.q,{icon:y(p,O)?"lock-open":"lock",selected:y(p,O),onClick:function(){return l("toggle_upload",{server:p.ref,console:O.ref})},children:y(p,O)?"Upload On":"Upload Off"}),(0,e.jsx)(r.q,{icon:b(p,O)?"lock-open":"lock",selected:b(p,O),onClick:function(){return l("toggle_download",{server:p.ref,console:O.ref})},children:b(p,O)?"Download On":"Download Off"})]},O.name)})})})},u=function(c){var h=(0,n.yy)(),l=h.act,d=h.data,p=c.server;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.iG,{level:2,title:"Research Levels",children:p.tech.map(function(C){return(0,e.jsx)(r.Ce.Item,{label:C.name,buttons:(0,e.jsx)(r.q.Confirm,{icon:"trash",confirmIcon:"trash",color:"red",content:"Reset",onClick:function(){return l("reset_tech",{server:p.ref,tech:C.id})}})},C.name)})}),(0,e.jsx)(r.iG,{level:2,title:"Designs",children:(0,s.IF)(function(C){return!!C.name})(p.designs).map(function(C){return(0,e.jsx)(r.Ce.Item,{label:C.name,buttons:(0,e.jsx)(r.q.Confirm,{icon:"trash",confirmIcon:"trash",color:"red",content:"Delete",onClick:function(){return l("reset_design",{server:p.ref,design:C.id})}})},C.name)})})]})},m=function(c){var h=(0,n.yy)(),l=h.act,d=h.data,p=c.server,C=d.badmin,y=d.servers;return C?(0,e.jsx)(r.iG,{level:2,title:"Server Data Transfer",children:y.map(function(b){return(0,e.jsx)(r.kv,{children:(0,e.jsx)(r.q.Confirm,{fluid:!0,color:"bad",content:(0,e.jsxs)(r.kv,{children:["Transfer from ",p.name," To ",b.name]}),onClick:function(){return l("transfer_data",{server:p.ref,target:b.ref})}})},b.name)})}):null}},26752:function(M,j,t){"use strict";t.r(j),t.d(j,{ResleevingConsole:function(){return h}});var e=t(33496),s=t(10608),n=t(45280),r=t(68644),o=t(8020),v=t(76512);function g(){return g=Object.assign||function(T){for(var R=1;R=150?"good":"bad",inline:!0,children:[(0,e.jsx)(r.GW,{name:Q.biomass>=150?"circle":"circle-o"}),"\xA0",Q.biomass]}),q]},H)}):null},O=function(T){var R=(0,n.yy)(),L=R.act,N=R.data,U=N.sleevers,V=N.spods,z=N.selected_sleever;return U&&U.length?U.map(function(Q,H){return(0,e.jsxs)(r.kv,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.jsx)("img",{src:"sleeve_"+(Q.occupied?"occupied":"empty")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)(r.kv,{color:Q.occupied?"label":"bad",children:Q.name}),(0,e.jsx)(r.q,{selected:z===Q.sleever,icon:z===Q.sleever&&"check",content:"Select",mt:V&&V.length?"3rem":"1.5rem",onClick:function(){return L("selectsleever",{ref:Q.sleever})}})]},H)}):null},I=function(T){var R=(0,n.yy)(),L=R.act,N=R.data,U=N.spods,V=N.selected_printer;return U&&U.length?U.map(function(z,Q){var H;return z.status==="cloning"?H=(0,e.jsx)(r.cH,{min:"0",max:"100",value:z.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.jsx)(r.kv,{textAlign:"center",children:(0,s.kL)(z.progress,0)+"%"})}):z.status==="mess"?H=(0,e.jsx)(r.kv,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):H=(0,e.jsx)(r.q,{selected:V===z.spod,icon:V===z.spod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return L("selectprinter",{ref:z.spod})}}),(0,e.jsxs)(r.kv,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.jsx)("img",{src:"synthprinter"+(z.busy?"_working":"")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)(r.kv,{color:"label",children:z.name}),(0,e.jsxs)(r.kv,{bold:!0,color:z.steel>=15e3?"good":"bad",inline:!0,children:[(0,e.jsx)(r.GW,{name:z.steel>=15e3?"circle":"circle-o"}),"\xA0",z.steel]}),(0,e.jsxs)(r.kv,{bold:!0,color:z.glass>=15e3?"good":"bad",inline:!0,children:[(0,e.jsx)(r.GW,{name:z.glass>=15e3?"circle":"circle-o"}),"\xA0",z.glass]}),H]},Q)}):null},_=function(T){var R=(0,n.yy)().act,L=T.records,N=T.actToDo;return L.length?(0,e.jsx)(r.kv,{mt:"0.5rem",children:L.map(function(U,V){return(0,e.jsx)(r.q,{icon:"user",mb:"0.5rem",content:U.name,onClick:function(){return R(N,{ref:U.recref})}},V)})}):(0,e.jsx)(r.Cu,{height:"100%",mt:"0.5rem",children:(0,e.jsxs)(r.Cu.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(r.GW,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No records found."]})})},A=function(T){var R=(0,n.yy)(),L=R.act,N=R.data,U=N.temp;if(!(!U||!U.text||U.text.length<=0)){var V,z=(V={},V[U.style]=!0,V);return(0,e.jsxs)(r.yc,g({},z,{children:[(0,e.jsx)(r.kv,{display:"inline-block",verticalAlign:"middle",children:U.text}),(0,e.jsx)(r.q,{icon:"times-circle",float:"right",onClick:function(){return L("cleartemp")}}),(0,e.jsx)(r.kv,{clear:"both"})]}))}},P=function(T){var R=(0,n.yy)(),L=R.act,N=R.data,U=N.pods,V=N.spods,z=N.sleevers,Q=N.autoallowed,H=N.autoprocess,q=N.disk;return(0,e.jsx)(r.iG,{title:"Status",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Pods",children:U&&U.length?(0,e.jsxs)(r.kv,{color:"good",children:[U.length," connected"]}):(0,e.jsx)(r.kv,{color:"bad",children:"None connected!"})}),(0,e.jsx)(r.Ce.Item,{label:"SynthFabs",children:V&&V.length?(0,e.jsxs)(r.kv,{color:"good",children:[V.length," connected"]}):(0,e.jsx)(r.kv,{color:"bad",children:"None connected!"})}),(0,e.jsx)(r.Ce.Item,{label:"Sleevers",children:z&&z.length?(0,e.jsxs)(r.kv,{color:"good",children:[z.length," Connected"]}):(0,e.jsx)(r.kv,{color:"bad",children:"None connected!"})})]})})}},61148:function(M,j,t){"use strict";t.r(j),t.d(j,{ResleevingPod:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)().data,x=g.occupied,f=g.name,u=g.health,m=g.maxHealth,c=g.stat,h=g.mindStatus,l=g.mindName,d=g.resleeveSick,p=g.initialSick;return(0,e.jsx)(r.qo,{width:300,height:350,resizeable:!0,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(n.iG,{title:"Occupant",children:x?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Name",children:f}),(0,e.jsx)(n.Ce.Item,{label:"Health",children:c===2?(0,e.jsx)(n.kv,{color:"bad",children:"DEAD"}):c===1?(0,e.jsx)(n.kv,{color:"average",children:"Unconscious"}):(0,e.jsxs)(n.cH,{ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},value:u/m,children:[u,"%"]})}),(0,e.jsx)(n.Ce.Item,{label:"Mind Status",children:h?"Present":"Missing"}),h?(0,e.jsx)(n.Ce.Item,{label:"Mind Occupying",children:l}):""]}),d?(0,e.jsxs)(n.kv,{color:"average",mt:3,children:["Warning: Resleeving Sickness detected.",p?(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)(n.kv,{bold:!0,m:1,children:"Unoccupied."})})})})}},11512:function(M,j,t){"use strict";t.r(j),t.d(j,{RoboticsControlConsole:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(g){var x=(0,s.yy)(),f=x.act,u=x.data,m=u.can_hack,c=u.safety,h=u.show_detonate_all,l=u.cyborgs,d=l===void 0?[]:l;return(0,e.jsx)(r.qo,{width:500,height:460,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[!!h&&(0,e.jsxs)(n.iG,{title:"Emergency Self Destruct",children:[(0,e.jsx)(n.q,{icon:c?"lock":"unlock",content:c?"Disable Safety":"Enable Safety",selected:c,onClick:function(){return f("arm",{})}}),(0,e.jsx)(n.q,{icon:"bomb",disabled:c,content:"Destroy ALL Cyborgs",color:"bad",onClick:function(){return f("nuke",{})}})]}),(0,e.jsx)(v,{cyborgs:d,can_hack:m})]})})},v=function(g){var x=g.cyborgs,f=g.can_hack,u=(0,s.yy)(),m=u.act,c=u.data;return x.length?x.map(function(h){return(0,e.jsx)(n.iG,{title:h.name,buttons:(0,e.jsxs)(e.Fragment,{children:[!!h.hackable&&!h.emagged&&(0,e.jsx)(n.q,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){return m("hackbot",{ref:h.ref})}}),(0,e.jsx)(n.q.Confirm,{icon:h.locked_down?"unlock":"lock",color:h.locked_down?"good":"default",content:h.locked_down?"Release":"Lockdown",disabled:!c.auth,onClick:function(){return m("stopbot",{ref:h.ref})}}),(0,e.jsx)(n.q.Confirm,{icon:"bomb",content:"Detonate",disabled:!c.auth,color:"bad",onClick:function(){return m("killbot",{ref:h.ref})}})]}),children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Status",children:(0,e.jsx)(n.kv,{color:h.status?"bad":h.locked_down?"average":"good",children:h.status?"Not Responding":h.locked_down?"Locked Down":"Nominal"})}),(0,e.jsx)(n.Ce.Item,{label:"Location",children:(0,e.jsx)(n.kv,{children:h.locstring})}),(0,e.jsx)(n.Ce.Item,{label:"Integrity",children:(0,e.jsx)(n.cH,{color:h.health>50?"good":"bad",value:h.health/100})}),typeof h.charge=="number"&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ce.Item,{label:"Cell Charge",children:(0,e.jsx)(n.cH,{color:h.charge>30?"good":"bad",value:h.charge/100})}),(0,e.jsx)(n.Ce.Item,{label:"Cell Capacity",children:(0,e.jsx)(n.kv,{color:h.cell_capacity<3e4?"average":"good",children:h.cell_capacity})})]})||(0,e.jsx)(n.Ce.Item,{label:"Cell",children:(0,e.jsx)(n.kv,{color:"bad",children:"No Power Cell"})}),!!h.is_hacked&&(0,e.jsx)(n.Ce.Item,{label:"Safeties",children:(0,e.jsx)(n.kv,{color:"bad",children:"DISABLED"})}),(0,e.jsx)(n.Ce.Item,{label:"Module",children:h.module}),(0,e.jsx)(n.Ce.Item,{label:"Master AI",children:(0,e.jsx)(n.kv,{color:h.synchronization?"default":"average",children:h.synchronization||"None"})})]})},h.ref)}):(0,e.jsx)(n.yc,{children:"No cyborg units detected within access parameters."})}},18500:function(M,j,t){"use strict";t.r(j),t.d(j,{RogueZones:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.timeout_percent,m=f.diffstep,c=f.difficulty,h=f.occupied,l=f.scanning,d=f.updated,p=f.debug,C=f.shuttle_location,y=f.shuttle_at_station,b=f.scan_ready,O=f.can_recall_shuttle;return(0,e.jsx)(r.qo,{width:360,height:250,children:(0,e.jsxs)(r.qo.Content,{children:[(0,e.jsx)(n.iG,{title:"Current Area",children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Mineral Content",children:c}),(0,e.jsx)(n.Ce.Item,{label:"Shuttle Location",buttons:O&&(0,e.jsx)(n.q,{color:"bad",icon:"rocket",onClick:function(){return x("recall_shuttle")},children:"Recall Shuttle"})||null,children:C}),h&&(0,e.jsxs)(n.Ce.Item,{color:"bad",labelColor:"bad",label:"Personnel",children:["WARNING: Area occupied by ",h," personnel!"]})||(0,e.jsx)(n.Ce.Item,{label:"Personnel",color:"good",children:"No personnel detected."})]})}),(0,e.jsx)(n.iG,{title:"Scanner",buttons:(0,e.jsx)(n.q,{disabled:!b,fluid:!0,icon:"search",onClick:function(){return x("scan_for_new")},children:"Scan For Asteroids"}),children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Scn Ramestat Core",children:(0,e.jsx)(n.cH,{value:u,maxValue:100,ranges:{good:[100,1/0],average:[75,100],bad:[-1/0,75]}})}),l&&(0,e.jsx)(n.Ce.Item,{label:"Scanning",children:"In progress."})||null,d&&!l&&(0,e.jsx)(n.Ce.Item,{label:"Info",children:"Updated shuttle destination!"})||null,p&&(0,e.jsxs)(n.Ce.Item,{label:"Debug",labelColor:"bad",children:[(0,e.jsxs)(n.kv,{children:["Timeout Percent: ",u]}),(0,e.jsxs)(n.kv,{children:["Diffstep: ",m]}),(0,e.jsxs)(n.kv,{children:["Difficulty: ",c]}),(0,e.jsxs)(n.kv,{children:["Occupied: ",h]}),(0,e.jsxs)(n.kv,{children:["Debug: ",p]}),(0,e.jsxs)(n.kv,{children:["Shuttle Location: ",C]}),(0,e.jsxs)(n.kv,{children:["Shuttle at station: ",y]}),(0,e.jsxs)(n.kv,{children:["Scan Ready: ",b]})]})||null]})})]})})}},38768:function(M,j,t){"use strict";t.r(j),t.d(j,{RustCoreMonitor:function(){return o},RustCoreMonitorContent:function(){return v}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(){return(0,e.jsx)(r.qo,{width:627,height:700,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(v,{})})})},v=function(g){var x=(0,s.yy)(),f=x.act,u=x.data,m=u.cores;return(0,e.jsx)(n.iG,{title:"Cores",buttons:(0,e.jsx)(n.q,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return f("set_tag")}}),children:(0,e.jsxs)(n.oJ,{children:[(0,e.jsxs)(n.oJ.Row,{header:!0,children:[(0,e.jsx)(n.oJ.Cell,{children:"Name"}),(0,e.jsx)(n.oJ.Cell,{children:"Position"}),(0,e.jsx)(n.oJ.Cell,{children:"Field Status"}),(0,e.jsx)(n.oJ.Cell,{children:"Reactant Mode"}),(0,e.jsx)(n.oJ.Cell,{children:"Field Instability"}),(0,e.jsx)(n.oJ.Cell,{children:"Field Temperature"}),(0,e.jsx)(n.oJ.Cell,{children:"Field Strength"}),(0,e.jsx)(n.oJ.Cell,{children:"Plasma Content"})]}),m.map(function(c){return(0,e.jsxs)(n.oJ.Row,{children:[(0,e.jsx)(n.oJ.Cell,{children:c.name}),(0,e.jsxs)(n.oJ.Cell,{children:[c.x,", ",c.y,", ",c.z]}),(0,e.jsx)(n.oJ.Cell,{children:(0,e.jsx)(n.q,{icon:"power-off",content:c.has_field?"Online":"Offline",selected:c.has_field,disabled:!c.core_operational,onClick:function(){return f("toggle_active",{core:c.ref})}})}),(0,e.jsx)(n.oJ.Cell,{children:(0,e.jsx)(n.q,{icon:"power-off",content:c.reactant_dump?"Dump":"Maintain",selected:c.has_field,disabled:!c.core_operational,onClick:function(){return f("toggle_reactantdump",{core:c.ref})}})}),(0,e.jsx)(n.oJ.Cell,{children:c.field_instability}),(0,e.jsx)(n.oJ.Cell,{children:c.field_temperature}),(0,e.jsx)(n.oJ.Cell,{children:(0,e.jsx)(n.S6,{forcedInputWidth:"60px",size:1.25,color:!!c.has_field&&"yellow",value:c.target_field_strength,unit:"(W.m^-3)",minValue:1,maxValue:1e3,stepPixelSize:1,onDrag:function(h,l){return f("set_fieldstr",{core:c.ref,fieldstr:l})}})}),(0,e.jsx)(n.oJ.Cell,{})]},c.name)})]})})}},66676:function(M,j,t){"use strict";t.r(j),t.d(j,{RustFuelContent:function(){return v},RustFuelControl:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(){return(0,e.jsx)(r.qo,{width:627,height:700,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(v,{})})})},v=function(g){var x=(0,s.yy)(),f=x.act,u=x.data,m=u.fuels;return(0,e.jsx)(n.iG,{title:"Fuel Injectors",buttons:(0,e.jsx)(n.q,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return f("set_tag")}}),children:(0,e.jsxs)(n.oJ,{children:[(0,e.jsxs)(n.oJ.Row,{header:!0,children:[(0,e.jsx)(n.oJ.Cell,{children:"Name"}),(0,e.jsx)(n.oJ.Cell,{children:"Position"}),(0,e.jsx)(n.oJ.Cell,{children:"Status"}),(0,e.jsx)(n.oJ.Cell,{children:"Remaining Fuel"}),(0,e.jsx)(n.oJ.Cell,{children:"Fuel Rod Composition"})]}),m.map(function(c){return(0,e.jsxs)(n.oJ.Row,{children:[(0,e.jsx)(n.oJ.Cell,{children:c.name}),(0,e.jsxs)(n.oJ.Cell,{children:[c.x,", ",c.y,", ",c.z]}),(0,e.jsx)(n.oJ.Cell,{children:(0,e.jsx)(n.q,{icon:"power-off",content:c.active?"Online":"Offline",selected:c.active,disabled:!c.deployed,onClick:function(){return f("toggle_active",{fuel:c.ref})}})}),(0,e.jsx)(n.oJ.Cell,{children:c.fuel_amt}),(0,e.jsx)(n.oJ.Cell,{children:c.fuel_type})]},c.name)})]})})}},43136:function(M,j,t){"use strict";t.r(j),t.d(j,{Secbot:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.on,m=f.open,c=f.locked,h=f.idcheck,l=f.check_records,d=f.check_arrest,p=f.arrest_type,C=f.declare_arrests,y=f.bot_patrolling,b=f.patrol;return(0,e.jsx)(r.qo,{width:390,height:320,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsx)(n.iG,{title:"Automatic Security Unit v2.0",buttons:(0,e.jsx)(n.q,{icon:"power-off",selected:u,onClick:function(){return x("power")},children:u?"On":"Off"}),children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Maintenance Panel",color:m?"bad":"good",children:m?"Open":"Closed"}),(0,e.jsx)(n.Ce.Item,{label:"Behavior Controls",color:c?"good":"bad",children:c?"Locked":"Unlocked"})]})}),!c&&(0,e.jsx)(n.iG,{title:"Behavior Controls",children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Check for Weapon Authorization",children:(0,e.jsx)(n.q,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return x("idcheck")},children:h?"Yes":"No"})}),(0,e.jsx)(n.Ce.Item,{label:"Check Security Records",children:(0,e.jsx)(n.q,{icon:l?"toggle-on":"toggle-off",selected:l,onClick:function(){return x("ignorerec")},children:l?"Yes":"No"})}),(0,e.jsx)(n.Ce.Item,{label:"Check Arrest Status",children:(0,e.jsx)(n.q,{icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){return x("ignorearr")},children:d?"Yes":"No"})}),(0,e.jsx)(n.Ce.Item,{label:"Operating Mode",children:(0,e.jsx)(n.q,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return x("switchmode")},children:p?"Detain":"Arrest"})}),(0,e.jsx)(n.Ce.Item,{label:"Report Arrests",children:(0,e.jsx)(n.q,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return x("declarearrests")},children:C?"Yes":"No"})}),!!y&&(0,e.jsx)(n.Ce.Item,{label:"Auto Patrol",children:(0,e.jsx)(n.q,{icon:b?"toggle-on":"toggle-off",selected:b,onClick:function(){return x("patrol")},children:b?"Yes":"No"})})]})})||null]})})}},36984:function(M,j,t){"use strict";t.r(j),t.d(j,{SecureSafe:function(){return v}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(g){var x=(0,s.yy)(),f=x.act,u=x.data,m=[["1","4","7","R"],["2","5","8","0"],["3","6","9","E"]],c=u.locked,h=u.l_setshort,l=u.code,d=u.emagged;return(0,e.jsx)(n.kv,{width:"185px",children:(0,e.jsx)(n.ye,{width:"1px",children:m.map(function(p){return(0,e.jsx)(n.ye.Column,{children:p.map(function(C){return(0,e.jsx)(n.q,{fluid:!0,bold:!0,mb:"6px",content:C,textAlign:"center",fontSize:"40px",height:"50px",lineHeight:1.25,disabled:!!d||!!h&&1||C!=="R"&&!c||l==="ERROR"&&C!=="R"&&1,onClick:function(){return f("type",{digit:C})}},C)})},p[0])})})})},v=function(g){var x=(0,s.yy)(),f=x.act,u=x.data,m=u.code,c=u.l_setshort,h=u.l_set,l=u.emagged,d=u.locked,p=!(h||c);return(0,e.jsx)(r.qo,{width:250,height:380,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsxs)(n.kv,{m:"6px",children:[p&&(0,e.jsx)(n.yc,{textAlign:"center",info:1,children:"ENTER NEW 5-DIGIT PASSCODE."}),!!l&&(0,e.jsx)(n.yc,{textAlign:"center",danger:1,children:"LOCKING SYSTEM ERROR - 1701"}),!!c&&(0,e.jsx)(n.yc,{textAlign:"center",danger:1,children:"ALERT: MEMORY SYSTEM ERROR - 6040 201"}),(0,e.jsx)(n.iG,{height:"60px",children:(0,e.jsx)(n.kv,{textAlign:"center",position:"center",fontSize:"35px",children:m&&m||(0,e.jsx)(n.kv,{textColor:d?"red":"green",children:d?"LOCKED":"UNLOCKED"})})}),(0,e.jsxs)(n.Cu,{ml:"3px",children:[(0,e.jsx)(n.Cu.Item,{children:(0,e.jsx)(o,{})}),(0,e.jsx)(n.Cu.Item,{ml:"6px",width:"129px"})]})]})})})}},68892:function(M,j,t){"use strict";t.r(j),t.d(j,{SecurityRecords:function(){return u}});var e=t(33496),s=t(45280),n=t(68644),r=t(8020),o=t(76512),v=t(74800),g=t(79092),x=t(66632),f=function(C){(0,r.modalOpen)("edit",{field:C.edit,value:C.value})},u=function(C){var y=(0,s.yy)().data,b=y.authenticated,O=y.screen;if(!b)return(0,e.jsx)(o.qo,{width:700,height:680,children:(0,e.jsx)(o.qo.Content,{children:(0,e.jsx)(g.LoginScreen,{})})});var I;return O===2?I=(0,e.jsx)(m,{}):O===3?I=(0,e.jsx)(c,{}):O===4&&(I=(0,e.jsx)(h,{})),(0,e.jsxs)(o.qo,{width:700,height:680,children:[(0,e.jsx)(r.ComplexModal,{maxHeight:"100%",maxWidth:"400px"}),(0,e.jsxs)(o.qo.Content,{scrollable:!0,children:[(0,e.jsx)(v.LoginInfo,{}),(0,e.jsx)(x.TemporaryNotice,{}),(0,e.jsx)(p,{}),(0,e.jsx)(n.iG,{flexGrow:!0,children:I})]})]})},m=function(C){var y=(0,s.yy)(),b=y.act,O=y.data,I=O.records;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.EF,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(_,A){return b("search",{t1:A})}}),(0,e.jsx)(n.kv,{mt:"0.5rem",children:I.map(function(_,A){return(0,e.jsx)(n.q,{icon:"user",mb:"0.5rem",color:_.color,content:_.id+": "+_.name+" (Criminal Status: "+_.criminal+")",onClick:function(){return b("d_rec",{d_rec:_.ref})}},A)})})]})},c=function(C){var y=(0,s.yy)().act;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.q,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,e.jsx)("br",{}),(0,e.jsx)(n.q,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," ",(0,e.jsx)("br",{}),(0,e.jsx)(n.q.Confirm,{icon:"trash",content:"Delete All Security Records",onClick:function(){return y("del_all")}})]})},h=function(C){var y=(0,s.yy)(),b=y.act,O=y.data,I=O.security,_=O.printing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.iG,{title:"General Data",mt:"-6px",children:(0,e.jsx)(l,{})}),(0,e.jsx)(n.iG,{title:"Security Data",children:(0,e.jsx)(d,{})}),(0,e.jsxs)(n.iG,{title:"Actions",children:[(0,e.jsx)(n.q.Confirm,{icon:"trash",disabled:!!I.empty,content:"Delete Security Record",color:"bad",onClick:function(){return b("del_r")}}),(0,e.jsx)(n.q.Confirm,{icon:"trash",disabled:!!I.empty,content:"Delete Record (All)",color:"bad",onClick:function(){return b("del_r_2")}}),(0,e.jsx)(n.q,{icon:_?"spinner":"print",disabled:_,iconSpin:!!_,content:"Print Entry",ml:"0.5rem",onClick:function(){return b("print_p")}}),(0,e.jsx)("br",{}),(0,e.jsx)(n.q,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){return b("screen",{screen:2})}})]})]})},l=function(C){var y=(0,s.yy)(),b=y.act,O=y.data,I=O.general;return!I||!I.fields?(0,e.jsx)(n.kv,{color:"bad",children:"General records lost!"}):(0,e.jsxs)(n.Cu,{children:[(0,e.jsx)(n.Cu.Item,{children:(0,e.jsx)(n.Ce,{children:I.fields.map(function(_,A){return(0,e.jsxs)(n.Ce.Item,{label:_.field,children:[(0,e.jsx)(n.kv,{height:"20px",inline:!0,preserveWhitespace:!0,children:_.value}),!!_.edit&&(0,e.jsx)(n.q,{icon:"pen",ml:"0.5rem",onClick:function(){return f(_)}})]},A)})})}),(0,e.jsxs)(n.Cu.Item,{textAlign:"right",children:[!!I.has_photos&&I.photos.map(function(_,A){return(0,e.jsxs)(n.kv,{display:"inline-block",textAlign:"center",color:"label",children:[(0,e.jsx)("img",{src:_.substr(1,_.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)("br",{}),"Photo #",A+1]},A)}),(0,e.jsxs)(n.kv,{children:[(0,e.jsx)(n.q,{onClick:function(){return b("photo_front")},children:"Update Front Photo"}),(0,e.jsx)(n.q,{onClick:function(){return b("photo_side")},children:"Update Side Photo"})]})]})]})},d=function(C){var y=(0,s.yy)(),b=y.act,O=y.data,I=O.security;return!I||!I.fields?(0,e.jsxs)(n.kv,{color:"bad",children:["Security records lost!",(0,e.jsx)(n.q,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){return b("new")}})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ce,{children:I.fields.map(function(_,A){return(0,e.jsx)(n.Ce.Item,{label:_.field,children:(0,e.jsxs)(n.kv,{preserveWhitespace:!0,children:[_.value,(0,e.jsx)(n.q,{icon:"pen",ml:"0.5rem",mb:_.line_break?"1rem":"initial",onClick:function(){return f(_)}})]})},A)})}),(0,e.jsxs)(n.iG,{title:"Comments/Log",children:[I.comments.length===0?(0,e.jsx)(n.kv,{color:"label",children:"No comments found."}):I.comments.map(function(_,A){return(0,e.jsxs)(n.kv,{children:[(0,e.jsx)(n.kv,{color:"label",inline:!0,children:_.header}),(0,e.jsx)("br",{}),_.text,(0,e.jsx)(n.q,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return b("del_c",{del_c:A+1})}})]},A)}),(0,e.jsx)(n.q,{icon:"comment",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,r.modalOpen)("add_c")}})]})]})},p=function(C){var y=(0,s.yy)(),b=y.act,O=y.data,I=O.screen;return(0,e.jsxs)(n.kZ,{children:[(0,e.jsx)(n.kZ.Tab,{selected:I===2,icon:"list",onClick:function(){return b("screen",{screen:2})},children:"List Records"}),(0,e.jsx)(n.kZ.Tab,{icon:"wrench",selected:I===3,onClick:function(){return b("screen",{screen:3})},children:"Record Maintenance"})]})}},95448:function(M,j,t){"use strict";t.r(j),t.d(j,{SeedStorage:function(){return g}});var e=t(33496),s=t(47392),n=t(49900),r=t(45280),o=t(68644),v=t(76512),g=function(x){var f=(0,r.yy)(),u=f.act,m=f.data,c=m.scanner,h=m.seeds,l=(0,s.cp)(function(d){return d.name.toLowerCase()})(h);return(0,e.jsx)(v.qo,{width:600,height:760,children:(0,e.jsx)(v.qo.Content,{scrollable:!0,children:(0,e.jsx)(o.iG,{title:"Seeds",children:l.map(function(d){return(0,e.jsxs)(o.Cu,{spacing:1,mt:-1,children:[(0,e.jsx)(o.Cu.Item,{basis:"60%",children:(0,e.jsx)(o.Uv,{title:(0,n.Yl)(d.name)+" #"+d.uid,children:(0,e.jsx)(o.iG,{width:"165%",title:"Traits",children:(0,e.jsx)(o.Ce,{children:Object.keys(d.traits).map(function(p){return(0,e.jsx)(o.Ce.Item,{label:(0,n.Yl)(p),children:d.traits[p]},p)})})})})}),(0,e.jsxs)(o.Cu.Item,{mt:.4,children:[d.amount," Remaining"]}),(0,e.jsx)(o.Cu.Item,{grow:1,children:(0,e.jsx)(o.q,{fluid:!0,icon:"download",onClick:function(){return u("vend",{id:d.id})},children:"Vend"})}),(0,e.jsx)(o.Cu.Item,{grow:1,children:(0,e.jsx)(o.q,{fluid:!0,icon:"trash",onClick:function(){return u("purge",{id:d.id})},children:"Purge"})})]},d.name+d.uid)})})})})}},10436:function(M,j,t){"use strict";t.r(j),t.d(j,{ShieldCapacitor:function(){return g}});var e=t(33496),s=t(10608),n=t(45280),r=t(68644),o=t(96060),v=t(76512),g=function(x){var f=(0,n.yy)(),u=f.act,m=f.data,c=m.active,h=m.time_since_fail,l=m.stored_charge,d=m.max_charge,p=m.charge_rate,C=m.max_charge_rate;return(0,e.jsx)(v.qo,{width:500,height:400,children:(0,e.jsx)(v.qo.Content,{children:(0,e.jsx)(r.iG,{title:"Status",buttons:(0,e.jsx)(r.q,{icon:"power-off",selected:c,content:c?"Online":"Offline",onClick:function(){return u("toggle")}}),children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Capacitor Status",children:h>2?(0,e.jsx)(r.kv,{color:"good",children:"OK."}):(0,e.jsx)(r.kv,{color:"bad",children:"Discharging!"})}),(0,e.jsxs)(r.Ce.Item,{label:"Stored Energy",children:[(0,e.jsx)(r.Gg,{value:l,format:function(y){return(0,o._c)(y,0,"J")}})," ","(",(0,e.jsx)(r.Gg,{value:100*(0,s.kL)(l/d,1)}),"%)"]}),(0,e.jsx)(r.Ce.Item,{label:"Charge Rate",children:(0,e.jsx)(r.Ef,{value:p,step:100,stepPixelSize:.2,minValue:1e4,maxValue:C,format:function(y){return(0,o._s)(y)},onDrag:function(y,b){return u("charge_rate",{rate:b})}})})]})})})})}},52208:function(M,j,t){"use strict";t.r(j),t.d(j,{ShieldGenerator:function(){return x}});var e=t(33496),s=t(10608),n=t(45280),r=t(68644),o=t(96060),v=t(76512),g=t(44664),x=function(m){var c=(0,n.yy)(),h=c.act,l=c.data,d=l.locked;return(0,e.jsx)(v.qo,{width:500,height:400,children:(0,e.jsx)(v.qo.Content,{children:d?(0,e.jsx)(f,{}):(0,e.jsx)(u,{})})})},f=function(m){return(0,e.jsxs)(g.FullscreenNotice,{title:"Locked",children:[(0,e.jsx)(r.kv,{fontSize:"1.5rem",bold:!0,children:(0,e.jsx)(r.GW,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,e.jsx)(r.kv,{color:"label",my:"1rem",children:"Swipe your ID to begin."})]})},u=function(m){var c=(0,n.yy)(),h=c.act,l=c.data,d=l.lockedData,p=d.capacitors,C=d.active,y=d.failing,b=d.radius,O=d.max_radius,I=d.z_range,_=d.max_z_range,A=d.average_field_strength,P=d.target_field_strength,T=d.max_field_strength,R=d.shields,L=d.upkeep,N=d.strengthen_rate,U=d.max_strengthen_rate,V=d.gen_power,z=(p||[]).length;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.iG,{title:"Status",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Field Status",children:y?(0,e.jsx)(r.kv,{color:"bad",children:"Unstable"}):(0,e.jsx)(r.kv,{color:"good",children:"Stable"})}),(0,e.jsxs)(r.Ce.Item,{label:"Overall Field Strength",children:[(0,s.kL)(A,2)," Renwick (",P&&(0,s.kL)(100*A/P,1)||"NA","%)"]}),(0,e.jsx)(r.Ce.Item,{label:"Upkeep Power",children:(0,o._s)(L)}),(0,e.jsx)(r.Ce.Item,{label:"Shield Generation Power",children:(0,o._s)(V)}),(0,e.jsxs)(r.Ce.Item,{label:"Currently Shielded",children:[R," m\xB2"]}),(0,e.jsx)(r.Ce.Item,{label:"Capacitors",children:(0,e.jsx)(r.Ce,{children:z?p.map(function(Q,H){return(0,e.jsxs)(r.Ce.Item,{label:"Capacitor #"+H,children:[Q.active?(0,e.jsx)(r.kv,{color:"good",children:"Online"}):(0,e.jsx)(r.kv,{color:"bad",children:"Offline"}),(0,e.jsxs)(r.Ce,{children:[(0,e.jsxs)(r.Ce.Item,{label:"Charge",children:[(0,o._c)(Q.stored_charge,0,"J")," (",100*(0,s.kL)(Q.stored_charge/Q.max_charge,2),"%)"]}),(0,e.jsx)(r.Ce.Item,{label:"Status",children:Q.failing?(0,e.jsx)(r.kv,{color:"bad",children:"Discharging"}):(0,e.jsx)(r.kv,{color:"good",children:"OK."})})]})]},H)}):(0,e.jsx)(r.Ce.Item,{color:"bad",children:"No Capacitors Connected"})})})]})}),(0,e.jsx)(r.iG,{title:"Controls",buttons:(0,e.jsx)(r.q,{icon:"power-off",content:C?"Online":"Offline",selected:C,onClick:function(){return h("toggle")}}),children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Coverage Radius",children:(0,e.jsx)(r.Ef,{fluid:!0,stepPixelSize:6,minValue:0,maxValue:O,value:b,unit:"m",onDrag:function(Q,H){return h("change_radius",{val:H})}})}),(0,e.jsx)(r.Ce.Item,{label:"Vertical Shielding",children:(0,e.jsx)(r.Ef,{fluid:!0,stepPixelSize:12,minValue:0,maxValue:_,value:I,unit:"vertical range",onDrag:function(Q,H){return h("z_range",{val:H})}})}),(0,e.jsx)(r.Ce.Item,{label:"Charge Rate",children:(0,e.jsx)(r.Ef,{fluid:!0,stepPixelSize:12,minValue:0,step:.1,maxValue:U,value:N,format:function(Q){return(0,s.kL)(Q,1)},unit:"Renwick/s",onDrag:function(Q,H){return h("strengthen_rate",{val:H})}})}),(0,e.jsx)(r.Ce.Item,{label:"Maximum Field Strength",children:(0,e.jsx)(r.Ef,{fluid:!0,stepPixelSize:12,minValue:1,maxValue:T,value:P,unit:"Renwick",onDrag:function(Q,H){return h("target_field_strength",{val:H})}})})]})})]})}},72036:function(M,j,t){"use strict";t.r(j),t.d(j,{ShutoffMonitor:function(){return o},ShutoffMonitorContent:function(){return v}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(g){return(0,e.jsx)(r.qo,{width:627,height:700,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(v,{})})})},v=function(g){var x=(0,s.yy)(),f=x.act,u=x.data,m=u.valves;return(0,e.jsx)(n.iG,{title:"Valves",children:(0,e.jsxs)(n.oJ,{children:[(0,e.jsxs)(n.oJ.Row,{header:!0,children:[(0,e.jsx)(n.oJ.Cell,{children:"Name"}),(0,e.jsx)(n.oJ.Cell,{children:"Position"}),(0,e.jsx)(n.oJ.Cell,{children:"Open"}),(0,e.jsx)(n.oJ.Cell,{children:"Mode"}),(0,e.jsx)(n.oJ.Cell,{children:"Actions"})]}),m.map(function(c){return(0,e.jsxs)(n.oJ.Row,{children:[(0,e.jsx)(n.oJ.Cell,{children:c.name}),(0,e.jsxs)(n.oJ.Cell,{children:[c.x,", ",c.y,", ",c.z]}),(0,e.jsx)(n.oJ.Cell,{children:c.open?"Yes":"No"}),(0,e.jsx)(n.oJ.Cell,{children:c.enabled?"Auto":"Manual"}),(0,e.jsxs)(n.oJ.Cell,{children:[(0,e.jsx)(n.q,{icon:"power-off",content:c.open?"Opened":"Closed",selected:c.open,disabled:!c.enabled,onClick:function(){return f("toggle_open",{valve:c.ref})}}),(0,e.jsx)(n.q,{icon:"power-off",content:c.enabled?"Auto":"Manual",selected:c.enabled,onClick:function(){return f("toggle_enable",{valve:c.ref})}})]})]},c.name)})]})})}},98688:function(M,j,t){"use strict";t.r(j),t.d(j,{ShuttleControl:function(){return l}});var e=t(33496),s=t(49900),n=t(45280),r=t(68644),o=t(76512),v=function(d,p){var C="ERROR",y="bad",b=!1;return d==="docked"?(C="DOCKED",y="good"):d==="docking"?(C="DOCKING",y="average",b=!0):d==="undocking"?(C="UNDOCKING",y="average",b=!0):d==="undocked"&&(C="UNDOCKED",y="#676767"),b&&p&&(C=C+"-MANUAL"),(0,e.jsx)(r.kv,{color:y,children:C})},g=function(d){var p=(0,n.yy)(),C=p.act,y=p.data,b=d.engineName,O=b===void 0?"Bluespace Drive":b,I=y.shuttle_status,_=y.shuttle_state,A=y.has_docking,P=y.docking_status,T=y.docking_override,R=y.docking_codes;return(0,e.jsxs)(r.iG,{title:"Shuttle Status",children:[(0,e.jsx)(r.kv,{color:"label",mb:1,children:I}),(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:O,children:_==="idle"&&(0,e.jsx)(r.kv,{color:"#676767",bold:!0,children:"IDLE"})||_==="warmup"&&(0,e.jsx)(r.kv,{color:"#336699",children:"SPINNING UP"})||_==="in_transit"&&(0,e.jsx)(r.kv,{color:"#336699",children:"ENGAGED"})||(0,e.jsx)(r.kv,{color:"bad",children:"ERROR"})}),A&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ce.Item,{label:"Docking Status",children:v(P,T)}),(0,e.jsx)(r.Ce.Item,{label:"Docking Codes",children:(0,e.jsx)(r.q,{icon:"pen",onClick:function(){return C("set_codes")},children:R||"Not Set"})})]})||null]})]})},x=function(d){var p=(0,n.yy)(),C=p.act,y=p.data,b=y.can_launch,O=y.can_cancel,I=y.can_force;return(0,e.jsx)(r.iG,{title:"Controls",children:(0,e.jsxs)(r.Cu,{spacing:1,children:[(0,e.jsx)(r.Cu.Item,{grow:1,children:(0,e.jsx)(r.q,{onClick:function(){return C("move")},disabled:!b,icon:"rocket",fluid:!0,children:"Launch Shuttle"})}),(0,e.jsx)(r.Cu.Item,{grow:1,children:(0,e.jsx)(r.q,{onClick:function(){return C("cancel")},disabled:!O,icon:"ban",fluid:!0,children:"Cancel Launch"})}),(0,e.jsx)(r.Cu.Item,{grow:1,children:(0,e.jsx)(r.q,{onClick:function(){return C("force")},color:"bad",disabled:!I,icon:"exclamation-triangle",fluid:!0,children:"Force Launch"})})]})})},f=function(d){var p=(0,n.yy)(),C=p.act,y=p.data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{}),(0,e.jsx)(x,{})]})},u=function(d){var p=(0,n.yy)(),C=p.act,y=p.data,b=y.can_cloak,O=y.can_pick,I=y.legit,_=y.cloaked,A=y.destination_name;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{}),(0,e.jsx)(r.iG,{title:"Multishuttle Controls",children:(0,e.jsxs)(r.Ce,{children:[b&&(0,e.jsx)(r.Ce.Item,{label:I?"ATC Inhibitor":"Cloaking",children:(0,e.jsx)(r.q,{selected:_,icon:_?"eye":"eye-o",onClick:function(){return C("toggle_cloaked")},children:_?"Enabled":"Disabled"})})||null,(0,e.jsx)(r.Ce.Item,{label:"Current Destination",children:(0,e.jsx)(r.q,{icon:"taxi",disabled:!O,onClick:function(){return C("pick")},children:A})})]})}),(0,e.jsx)(x,{})]})},m=function(d){var p=(0,n.yy)(),C=p.act,y=p.data,b=y.can_pick,O=y.destination_name,I=y.fuel_usage,_=y.fuel_span,A=y.remaining_fuel;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{engineName:"Engines"}),(0,e.jsx)(r.iG,{title:"Jump Controls",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Current Destination",children:(0,e.jsx)(r.q,{icon:"taxi",disabled:!b,onClick:function(){return C("pick")},children:O})}),I&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.Ce.Item,{label:"Est. Delta-V Budget",color:_,children:[A," m/s"]}),(0,e.jsxs)(r.Ce.Item,{label:"Avg. Delta-V Per Maneuver",children:[I," m/s"]})]})||null]})}),(0,e.jsx)(x,{})]})},c=function(d){var p=(0,n.yy)(),C=p.act,y=p.data,b=y.autopilot,O=y.can_rename,I=y.shuttle_state,_=y.is_moving,A=y.skip_docking,P=y.docking_status,T=y.docking_override,R=y.shuttle_location,L=y.can_cloak,N=y.cloaked,U=y.can_autopilot,V=y.routes,z=y.is_in_transit,Q=y.travel_progress,H=y.time_left,q=y.doors,Z=y.sensors;return(0,e.jsxs)(e.Fragment,{children:[b&&(0,e.jsx)(r.iG,{title:"AI PILOT (CLASS D) ACTIVE",children:(0,e.jsx)(r.kv,{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."})})||null,(0,e.jsxs)(r.iG,{title:"Shuttle Status",buttons:O&&(0,e.jsx)(r.q,{icon:"pen",onClick:function(){return C("rename_command")},children:"Rename"})||null,children:[(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Engines",children:I==="idle"&&(0,e.jsx)(r.kv,{color:"#676767",bold:!0,children:"IDLE"})||I==="warmup"&&(0,e.jsx)(r.kv,{color:"#336699",children:"SPINNING UP"})||I==="in_transit"&&(0,e.jsx)(r.kv,{color:"#336699",children:"ENGAGED"})||(0,e.jsx)(r.kv,{color:"bad",children:"ERROR"})}),!_&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ce.Item,{label:"Current Location",children:(0,s.Yl)(R)}),!A&&(0,e.jsx)(r.Ce.Item,{label:"Docking Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.q,{selected:P==="docked",disabled:P!=="undocked"&&P!=="docked",onClick:function(){return C("dock_command")},children:"Dock"}),(0,e.jsx)(r.q,{selected:P==="undocked",disabled:P!=="docked"&&P!=="undocked",onClick:function(){return C("undock_command")},children:"Undock"})]}),children:(0,e.jsx)(r.kv,{bold:!0,inline:!0,children:v(P,T)})})||null,L&&(0,e.jsx)(r.Ce.Item,{label:"Cloaking",children:(0,e.jsx)(r.q,{selected:N,icon:N?"eye":"eye-o",onClick:function(){return C("toggle_cloaked")},children:N?"Enabled":"Disabled"})})||null,U&&(0,e.jsx)(r.Ce.Item,{label:"Autopilot",children:(0,e.jsx)(r.q,{selected:b,icon:b?"eye":"eye-o",onClick:function(){return C("toggle_autopilot")},children:b?"Enabled":"Disabled"})})||null]})||null]}),!_&&(0,e.jsx)(r.iG,{level:2,title:"Available Destinations",children:(0,e.jsx)(r.Ce,{children:V.length&&V.map(function($){return(0,e.jsx)(r.Ce.Item,{label:$.name,children:(0,e.jsx)(r.q,{icon:"rocket",onClick:function(){return C("traverse",{traverse:$.index})},children:$.travel_time})},$.name)})||(0,e.jsx)(r.Ce.Item,{label:"Error",color:"bad",children:"No routes found."})})})||null]}),z&&(0,e.jsx)(r.iG,{title:"Transit ETA",children:(0,e.jsx)(r.Ce,{children:(0,e.jsx)(r.Ce.Item,{label:"Distance from target",children:(0,e.jsxs)(r.cH,{color:"good",minValue:0,maxValue:100,value:Q,children:[H,"s"]})})})})||null,Object.keys(q).length&&(0,e.jsx)(r.iG,{title:"Hatch Status",children:(0,e.jsx)(r.Ce,{children:Object.keys(q).map(function($){var G=q[$];return(0,e.jsxs)(r.Ce.Item,{label:$,children:[G.open&&(0,e.jsx)(r.kv,{inline:!0,color:"bad",children:"Open"})||(0,e.jsx)(r.kv,{inline:!0,color:"good",children:"Closed"}),"\xA0-\xA0",G.bolted&&(0,e.jsx)(r.kv,{inline:!0,color:"good",children:"Bolted"})||(0,e.jsx)(r.kv,{inline:!0,color:"bad",children:"Unbolted"})]},$)})})})||null,Object.keys(Z).length&&(0,e.jsx)(r.iG,{title:"Sensors",children:(0,e.jsx)(r.Ce,{children:Object.keys(Z).map(function($,G){var Y=Z[$];return Y.reading!==-1?(0,e.jsx)(r.Ce.Item,{label:$,color:"bad",children:"Unable to get sensor air reading."},G):(0,e.jsx)(r.Ce.Item,{label:$,children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsxs)(r.Ce.Item,{label:"Pressure",children:[Y.pressure,"kPa"]}),(0,e.jsxs)(r.Ce.Item,{label:"Temperature",children:[Y.temp,"\xB0C"]}),(0,e.jsxs)(r.Ce.Item,{label:"Oxygen",children:[Y.oxygen,"%"]}),(0,e.jsxs)(r.Ce.Item,{label:"Nitrogen",children:[Y.nitrogen,"%"]}),(0,e.jsxs)(r.Ce.Item,{label:"Carbon Dioxide",children:[Y.carbon_dioxide,"%"]}),(0,e.jsxs)(r.Ce.Item,{label:"Phoron",children:[Y.phoron,"%"]}),Y.other&&(0,e.jsxs)(r.Ce.Item,{label:"Other",children:[Y.other,"%"]})||null]})},$)})})})||null]})},h={ShuttleControlConsoleDefault:(0,e.jsx)(f,{}),ShuttleControlConsoleMulti:(0,e.jsx)(u,{}),ShuttleControlConsoleExploration:(0,e.jsx)(m,{}),ShuttleControlConsoleWeb:(0,e.jsx)(c,{})},l=function(d){var p=(0,n.yy)(),C=p.act,y=p.data,b=y.subtemplate;return(0,e.jsx)(o.qo,{width:470,height:b==="ShuttleControlConsoleWeb"?560:370,children:(0,e.jsx)(o.qo.Content,{children:h[b]})})}},78752:function(M,j,t){"use strict";t.r(j),t.d(j,{Signaler:function(){return v},SignalerContent:function(){return g}});var e=t(33496),s=t(10608),n=t(45280),r=t(68644),o=t(76512),v=function(){return(0,e.jsx)(o.qo,{width:280,height:132,children:(0,e.jsx)(o.qo.Content,{children:(0,e.jsx)(g,{})})})},g=function(x){var f=(0,n.yy)(),u=f.act,m=f.data,c=m.code,h=m.frequency,l=m.minFrequency,d=m.maxFrequency;return(0,e.jsxs)(r.iG,{children:[(0,e.jsxs)(r.ye,{children:[(0,e.jsx)(r.ye.Column,{size:1.4,color:"label",children:"Frequency:"}),(0,e.jsx)(r.ye.Column,{children:(0,e.jsx)(r.Ef,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:l/10,maxValue:d/10,value:h/10,format:function(p){return(0,s.yI)(p,1)},width:"80px",onDrag:function(p,C){return u("freq",{freq:C})}})}),(0,e.jsx)(r.ye.Column,{children:(0,e.jsx)(r.q,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){return u("reset",{reset:"freq"})}})})]}),(0,e.jsxs)(r.ye,{mt:.6,children:[(0,e.jsx)(r.ye.Column,{size:1.4,color:"label",children:"Code:"}),(0,e.jsx)(r.ye.Column,{children:(0,e.jsx)(r.Ef,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:c,width:"80px",onDrag:function(p,C){return u("code",{code:C})}})}),(0,e.jsx)(r.ye.Column,{children:(0,e.jsx)(r.q,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){return u("reset",{reset:"code"})}})})]}),(0,e.jsx)(r.ye,{mt:.8,children:(0,e.jsx)(r.ye.Column,{children:(0,e.jsx)(r.q,{mb:-.1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){return u("signal")}})})})]})}},55104:function(M,j,t){"use strict";t.r(j),t.d(j,{Sleeper:function(){return u}});var e=t(33496),s=t(10608),n=t(45280),r=t(68644),o=t(76512),v=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],g=[["Resp","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],x={average:[.25,.5],bad:[.5,1/0]},f=["bad","average","average","good","average","average","bad"],u=function(C){var y=(0,n.yy)(),b=y.act,O=y.data,I=O.hasOccupant,_=I?(0,e.jsx)(m,{}):(0,e.jsx)(p,{});return(0,e.jsx)(o.qo,{width:550,height:760,children:(0,e.jsx)(o.qo.Content,{className:"Layout__content--flexColumn",children:_})})},m=function(C){var y=(0,n.yy)(),b=y.act,O=y.data,I=O.occupant,_=O.dialysis,A=O.stomachpumping;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(c,{}),(0,e.jsx)(h,{}),(0,e.jsx)(l,{title:"Dialysis",active:_,actToDo:"togglefilter"}),(0,e.jsx)(l,{title:"Stomach Pump",active:A,actToDo:"togglepump"}),(0,e.jsx)(d,{})]})},c=function(C){var y=(0,n.yy)(),b=y.act,O=y.data,I=O.occupant,_=O.auto_eject_dead,A=O.stasis;return(0,e.jsx)(r.iG,{title:"Occupant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.kv,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.jsx)(r.q,{icon:_?"toggle-on":"toggle-off",selected:_,content:_?"On":"Off",onClick:function(){return b("auto_eject_dead_"+(_?"off":"on"))}}),(0,e.jsx)(r.q,{icon:"user-slash",content:"Eject",onClick:function(){return b("ejectify")}}),(0,e.jsx)(r.q,{content:A,onClick:function(){return b("changestasis")}})]}),children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Name",children:I.name}),(0,e.jsx)(r.Ce.Item,{label:"Health",children:(0,e.jsx)(r.cH,{min:0,max:I.maxHealth,value:I.health/I.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,s.kL)(I.health,0)})}),(0,e.jsx)(r.Ce.Item,{label:"Status",color:v[I.stat][0],children:v[I.stat][1]}),(0,e.jsx)(r.Ce.Item,{label:"Temperature",children:(0,e.jsxs)(r.cH,{min:"0",max:I.maxTemp,value:I.bodyTemperature/I.maxTemp,color:f[I.temperatureSuitability+3],children:[(0,s.kL)(I.btCelsius,0),"\xB0C,",(0,s.kL)(I.btFaren,0),"\xB0F"]})}),!!I.hasBlood&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ce.Item,{label:"Blood Level",children:(0,e.jsxs)(r.cH,{min:"0",max:I.bloodMax,value:I.bloodLevel/I.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[I.bloodPercent,"%, ",I.bloodLevel,"cl"]})}),(0,e.jsxs)(r.Ce.Item,{label:"Pulse",verticalAlign:"middle",children:[I.pulse," BPM"]})]})]})})},h=function(C){var y=(0,n.yy)().data,b=y.occupant;return(0,e.jsx)(r.iG,{title:"Damage",children:(0,e.jsx)(r.Ce,{children:g.map(function(O,I){return(0,e.jsx)(r.Ce.Item,{label:O[0],children:(0,e.jsx)(r.cH,{min:"0",max:"100",value:b[O[1]]/100,ranges:x,children:(0,s.kL)(b[O[1]],0)},I)},I)})})})},l=function(C){var y=(0,n.yy)(),b=y.act,O=y.data,I=O.isBeakerLoaded,_=O.beakerMaxSpace,A=O.beakerFreeSpace,P=C.active,T=C.actToDo,R=C.title,L=P&&A>0;return(0,e.jsx)(r.iG,{title:R,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.q,{disabled:!I||A<=0,selected:L,icon:L?"toggle-on":"toggle-off",content:L?"Active":"Inactive",onClick:function(){return b(T)}}),(0,e.jsx)(r.q,{disabled:!I,icon:"eject",content:"Eject",onClick:function(){return b("removebeaker")}})]}),children:I?(0,e.jsx)(r.Ce,{children:(0,e.jsx)(r.Ce.Item,{label:"Remaining Space",children:(0,e.jsxs)(r.cH,{min:"0",max:_,value:A/_,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[A,"u"]})})}):(0,e.jsx)(r.kv,{color:"label",children:"No beaker loaded."})})},d=function(C){var y=(0,n.yy)(),b=y.act,O=y.data,I=O.occupant,_=O.chemicals,A=O.maxchem,P=O.amounts;return(0,e.jsx)(r.iG,{title:"Chemicals",flexGrow:"1",children:_.map(function(T,R){var L="",N;return T.overdosing?(L="bad",N=(0,e.jsxs)(r.kv,{color:"bad",children:[(0,e.jsx)(r.GW,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):T.od_warning&&(L="average",N=(0,e.jsxs)(r.kv,{color:"average",children:[(0,e.jsx)(r.GW,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.jsx)(r.kv,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.jsx)(r.iG,{title:T.title,level:"3",mx:"0",lineHeight:"18px",buttons:N,children:(0,e.jsxs)(r.Cu,{align:"flex-start",children:[(0,e.jsxs)(r.cH,{min:"0",max:A,value:T.occ_amount/A,color:L,mr:"0.5rem",children:[T.pretty_amount,"/",A,"u"]}),P.map(function(U,V){return(0,e.jsx)(r.q,{disabled:!T.injectable||T.occ_amount+U>A||I.stat===2,icon:"syringe",content:U,mb:"0",height:"19px",onClick:function(){return b("chemical",{chemid:T.id,amount:U})}},V)})]})})},R)})})},p=function(C){var y=(0,n.yy)(),b=y.act,O=y.data,I=O.isBeakerLoaded;return(0,e.jsx)(r.iG,{textAlign:"center",flexGrow:"1",children:(0,e.jsx)(r.Cu,{height:"100%",children:(0,e.jsxs)(r.Cu.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(r.GW,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No occupant detected.",I&&(0,e.jsx)(r.kv,{children:(0,e.jsx)(r.q,{icon:"eject",content:"Remove Beaker",onClick:function(){return b("removebeaker")}})})||null]})})})}},56444:function(M,j,t){"use strict";t.r(j),t.d(j,{SmartVend:function(){return v}});var e=t(33496),s=t(47392),n=t(45280),r=t(68644),o=t(76512),v=function(g){var x=(0,n.yy)(),f=x.act,u=x.config,m=x.data;return(0,e.jsx)(o.qo,{width:500,height:550,children:(0,e.jsx)(o.qo.Content,{scrollable:!0,children:(0,e.jsxs)(r.iG,{title:"Storage",children:[m.secure&&(0,e.jsx)(r.yc,{danger:m.locked===-1,info:m.locked!==-1,children:m.locked===-1?(0,e.jsx)(r.kv,{children:"Sec.re ACC_** //):securi_nt.diag=>##'or 1=1'%($..."}):(0,e.jsx)(r.kv,{children:"Secure Access: Please have your identification ready."})})||null,m.contents.length===0&&(0,e.jsxs)(r.yc,{children:["Unfortunately, this ",u.title," is empty."]})||(0,e.jsxs)(r.oJ,{children:[(0,e.jsxs)(r.oJ.Row,{header:!0,children:[(0,e.jsx)(r.oJ.Cell,{collapsing:!0,children:"Item"}),(0,e.jsx)(r.oJ.Cell,{collapsing:!0,textAlign:"center",children:"Amount"}),(0,e.jsx)(r.oJ.Cell,{collapsing:!0,textAlign:"center",children:"Dispense"})]}),(0,s.kH)(function(c,h){return(0,e.jsxs)(r.oJ.Row,{children:[(0,e.jsx)(r.oJ.Cell,{collapsing:!0,children:c.name}),(0,e.jsxs)(r.oJ.Cell,{collapsing:!0,textAlign:"center",children:[c.amount," in stock"]}),(0,e.jsxs)(r.oJ.Cell,{collapsing:!0,children:[(0,e.jsx)(r.q,{content:"1",disabled:c.amount<1,onClick:function(){return f("Release",{index:c.index,amount:1})}}),(0,e.jsx)(r.q,{content:"5",disabled:c.amount<5,onClick:function(){return f("Release",{index:c.index,amount:5})}}),(0,e.jsx)(r.q,{content:"25",disabled:c.amount<25,onClick:function(){return f("Release",{index:c.index,amount:25})}}),(0,e.jsx)(r.q,{content:"50",disabled:c.amount<50,onClick:function(){return f("Release",{index:c.index,amount:50})}}),(0,e.jsx)(r.q,{content:"Custom",disabled:c.amount<1,onClick:function(){return f("Release",{index:c.index})}}),(0,e.jsx)(r.q,{content:"All",disabled:c.amount<1,onClick:function(){return f("Release",{index:c.index,amount:c.amount})}})]})]},h)})(m.contents)]})]})})})}},62824:function(M,j,t){"use strict";t.r(j),t.d(j,{Smes:function(){return x}});var e=t(33496),s=t(10608),n=t(45280),r=t(68644),o=t(96060),v=t(76512),g=1e3,x=function(f){var u=(0,n.yy)(),m=u.act,c=u.data,h=c.capacityPercent,l=c.capacity,d=c.charge,p=c.inputAttempt,C=c.inputting,y=c.inputLevel,b=c.inputLevelMax,O=c.inputAvailable,I=c.outputAttempt,_=c.outputting,A=c.outputLevel,P=c.outputLevelMax,T=c.outputUsed,R=h>=100&&"good"||C&&"average"||"bad",L=_&&"good"||d>0&&"average"||"bad";return(0,e.jsx)(v.qo,{width:340,height:350,children:(0,e.jsxs)(v.qo.Content,{children:[(0,e.jsx)(r.iG,{title:"Stored Energy",children:(0,e.jsxs)(r.cH,{value:h*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[(0,s.kL)(d/(1e3*60),1)," kWh /"," ",(0,s.kL)(l/(1e3*60))," kWh (",h,"%)"]})}),(0,e.jsx)(r.iG,{title:"Input",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Charge Mode",buttons:(0,e.jsx)(r.q,{icon:p?"sync-alt":"times",selected:p,onClick:function(){return m("tryinput")},children:p?"On":"Off"}),children:(0,e.jsx)(r.kv,{color:R,children:h>=100&&"Fully Charged"||C&&"Charging"||"Not Charging"})}),(0,e.jsx)(r.Ce.Item,{label:"Target Input",children:(0,e.jsxs)(r.Cu,{inline:!0,width:"100%",children:[(0,e.jsxs)(r.Cu.Item,{children:[(0,e.jsx)(r.q,{icon:"fast-backward",disabled:y===0,onClick:function(){return m("input",{target:"min"})}}),(0,e.jsx)(r.q,{icon:"backward",disabled:y===0,onClick:function(){return m("input",{adjust:-1e4})}})]}),(0,e.jsx)(r.Cu.Item,{grow:1,mx:1,children:(0,e.jsx)(r.uQ,{value:y/g,fillValue:O/g,minValue:0,maxValue:b/g,step:5,stepPixelSize:4,format:function(N){return(0,o._s)(N*g,1)},onDrag:function(N,U){return m("input",{target:U*g})}})}),(0,e.jsxs)(r.Cu.Item,{children:[(0,e.jsx)(r.q,{icon:"forward",disabled:y===b,onClick:function(){return m("input",{adjust:1e4})}}),(0,e.jsx)(r.q,{icon:"fast-forward",disabled:y===b,onClick:function(){return m("input",{target:"max"})}})]})]})}),(0,e.jsx)(r.Ce.Item,{label:"Available",children:(0,o._s)(O)})]})}),(0,e.jsx)(r.iG,{title:"Output",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Output Mode",buttons:(0,e.jsx)(r.q,{icon:I?"power-off":"times",selected:I,onClick:function(){return m("tryoutput")},children:I?"On":"Off"}),children:(0,e.jsx)(r.kv,{color:L,children:_?"Sending":d>0?"Not Sending":"No Charge"})}),(0,e.jsx)(r.Ce.Item,{label:"Target Output",children:(0,e.jsxs)(r.Cu,{inline:!0,width:"100%",children:[(0,e.jsxs)(r.Cu.Item,{children:[(0,e.jsx)(r.q,{icon:"fast-backward",disabled:A===0,onClick:function(){return m("output",{target:"min"})}}),(0,e.jsx)(r.q,{icon:"backward",disabled:A===0,onClick:function(){return m("output",{adjust:-1e4})}})]}),(0,e.jsx)(r.Cu.Item,{grow:1,mx:1,children:(0,e.jsx)(r.uQ,{value:A/g,minValue:0,maxValue:P/g,step:5,stepPixelSize:4,format:function(N){return(0,o._s)(N*g,1)},onDrag:function(N,U){return m("output",{target:U*g})}})}),(0,e.jsxs)(r.Cu.Item,{children:[(0,e.jsx)(r.q,{icon:"forward",disabled:A===P,onClick:function(){return m("output",{adjust:1e4})}}),(0,e.jsx)(r.q,{icon:"fast-forward",disabled:A===P,onClick:function(){return m("output",{target:"max"})}})]})]})}),(0,e.jsx)(r.Ce.Item,{label:"Outputting",children:(0,o._s)(T)})]})})]})})}},17772:function(M,j,t){"use strict";t.r(j),t.d(j,{SolarControl:function(){return v}});var e=t(33496),s=t(10608),n=t(45280),r=t(68644),o=t(76512),v=function(g){var x=(0,n.yy)(),f=x.act,u=x.data,m=u.generated,c=u.generated_ratio,h=u.sun_angle,l=u.array_angle,d=u.rotation_rate,p=u.max_rotation_rate,C=u.tracking_state,y=u.connected_panels,b=u.connected_tracker;return(0,e.jsx)(o.qo,{width:380,height:230,children:(0,e.jsxs)(o.qo.Content,{children:[(0,e.jsx)(r.iG,{title:"Status",buttons:(0,e.jsx)(r.q,{icon:"sync",content:"Scan for new hardware",onClick:function(){return f("refresh")}}),children:(0,e.jsxs)(r.ye,{children:[(0,e.jsx)(r.ye.Column,{children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Solar tracker",color:b?"good":"bad",children:b?"OK":"N/A"}),(0,e.jsx)(r.Ce.Item,{label:"Solar panels",color:y>0?"good":"bad",children:y})]})}),(0,e.jsx)(r.ye.Column,{size:1.5,children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Power output",children:(0,e.jsx)(r.cH,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:c,children:m+" W"})}),(0,e.jsxs)(r.Ce.Item,{label:"Star orientation",children:[h,"\xB0"]})]})})]})}),(0,e.jsx)(r.iG,{title:"Controls",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsxs)(r.Ce.Item,{label:"Tracking",children:[(0,e.jsx)(r.q,{icon:"times",content:"Off",selected:C===0,onClick:function(){return f("tracking",{mode:0})}}),(0,e.jsx)(r.q,{icon:"clock-o",content:"Timed",selected:C===1,onClick:function(){return f("tracking",{mode:1})}}),(0,e.jsx)(r.q,{icon:"sync",content:"Auto",selected:C===2,disabled:!b,onClick:function(){return f("tracking",{mode:2})}})]}),(0,e.jsxs)(r.Ce.Item,{label:"Azimuth",children:[(C===0||C===1)&&(0,e.jsx)(r.Ef,{width:"52px",unit:"\xB0",step:1,stepPixelSize:2,minValue:-360,maxValue:720,value:l,format:function(O){var I=Math.sign(O)>0?" (CW)":" (CCW)";return Math.abs((0,s.kL)(O))+I},onDrag:function(O,I){return f("azimuth",{value:I})}}),C===1&&(0,e.jsx)(r.Ef,{width:"80px",unit:"deg/h",step:1,minValue:-p-.01,maxValue:p+.01,value:d,format:function(O){var I=Math.sign(O)>0?" (CW)":" (CCW)";return Math.abs((0,s.kL)(O))+I},onDrag:function(O,I){return f("azimuth_rate",{value:I})}}),C===2&&(0,e.jsxs)(r.kv,{inline:!0,color:"label",mt:"3px",children:[l+"\xB0"," (auto)"]})]})]})})]})})}},63928:function(M,j,t){"use strict";t.r(j),t.d(j,{SpaceHeater:function(){return v}});var e=t(33496),s=t(45280),n=t(68644),r=t(36824),o=t(76512),v=function(g){var x=(0,s.yy)(),f=x.act,u=x.data,m=u.temp,c=u.minTemp,h=u.maxTemp,l=u.cell,d=u.power;return(0,e.jsx)(o.qo,{width:300,height:250,children:(0,e.jsxs)(o.qo.Content,{children:[(0,e.jsx)(n.iG,{title:"Status",children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsxs)(n.Ce.Item,{label:"Target Temperature",children:[m," K (",m-r.ic,"\xB0 C)"]}),(0,e.jsxs)(n.Ce.Item,{label:"Current Charge",children:[d,"% ",!l&&"(No Cell Inserted)"]})]})}),(0,e.jsx)(n.iG,{title:"Controls",children:(0,e.jsxs)(n.Cw,{children:[(0,e.jsx)(n.Cw.Item,{label:"Thermostat",children:(0,e.jsx)(n.S6,{animated:!0,value:m-r.ic,minValue:c-r.ic,maxValue:h-r.ic,unit:"C",onChange:function(p,C){return f("temp",{newtemp:C+r.ic})}})}),(0,e.jsx)(n.Cw.Item,{label:"Cell",children:l?(0,e.jsx)(n.q,{icon:"eject",content:"Eject Cell",onClick:function(){return f("cellremove")}}):(0,e.jsx)(n.q,{icon:"car-battery",content:"Insert Cell",onClick:function(){return f("cellinstall")}})})]})})]})})}},68040:function(M,j,t){"use strict";t.r(j),t.d(j,{Stack:function(){return x}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512);function o(h,l){(l==null||l>h.length)&&(l=h.length);for(var d=0,p=new Array(l);d=h.length?{done:!0}:{done:!1,value:h[p++]}}}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=function(h){var l=(0,s.yy)(),d=l.act,p=l.data,C=p.amount,y=p.recipes;return(0,e.jsx)(r.qo,{width:400,height:600,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:(0,e.jsx)(n.iG,{title:"Amount: "+C,children:(0,e.jsx)(f,{recipes:y})})})})},f=function(h){var l=(0,s.yy)(),d=l.act,p=l.data,C=h.recipes,y=Object.keys(C).sort();return y.map(function(b,O){var I=C[b];return I.ref===void 0?(0,e.jsx)(n.Uv,{ml:1,mb:-.7,color:"label",title:b,children:(0,e.jsx)(n.kv,{ml:1,children:(0,e.jsx)(f,{recipes:I})})},O):(0,e.jsx)(c,{title:b,recipe:I},O)})},u=function(h,l){return h.req_amount>l?0:Math.floor(l/h.req_amount)},m=function(h){for(var l=function(){var T=P.value;O>=T&&_.push((0,e.jsx)(n.q,{content:T*y.res_amount+"x",onClick:function(){return p("make",{ref:y.ref,multiplier:T})}}))},d=(0,s.yy)(),p=d.act,C=d.data,y=h.recipe,b=h.maxMultiplier,O=Math.min(b,Math.floor(y.max_res_amount/y.res_amount)),I=[5,10,25],_=[],A=g(I),P;!(P=A()).done;)l();return I.indexOf(O)===-1&&_.push((0,e.jsx)(n.q,{content:O*y.res_amount+"x",onClick:function(){return p("make",{ref:y.ref,multiplier:O})}})),_},c=function(h){var l=(0,s.yy)(),d=l.act,p=l.data,C=p.amount,y=h.recipe,b=h.title,O=y.res_amount,I=y.max_res_amount,_=y.req_amount,A=y.ref,P=b;P+=" (",P+=_+" ",P+="sheet"+(_>1?"s":""),P+=")",O>1&&(P=O+"x "+P);var T=u(y,C);return(0,e.jsx)(n.kv,{children:(0,e.jsx)(n.oJ,{children:(0,e.jsxs)(n.oJ.Row,{children:[(0,e.jsx)(n.oJ.Cell,{children:(0,e.jsx)(n.q,{fluid:!0,disabled:!T,icon:"wrench",content:P,onClick:function(){return d("make",{ref:y.ref,multiplier:1})}})}),I>1&&T>1&&(0,e.jsx)(n.oJ.Cell,{collapsing:!0,children:(0,e.jsx)(m,{recipe:y,maxMultiplier:T})})]})})})}},19348:function(M,j,t){"use strict";t.r(j),t.d(j,{StationAlertConsole:function(){return o},StationAlertConsoleContent:function(){return v}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(){return(0,e.jsx)(r.qo,{width:425,height:600,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:(0,e.jsx)(v,{})})})},v=function(g){var x=(0,s.yy)(),f=x.act,u=x.data,m=u.categories,c=m===void 0?[]:m;return c.map(function(h){return(0,e.jsx)(n.iG,{title:h.category,children:(0,e.jsxs)("ul",{children:[h.alarms.length===0&&(0,e.jsx)("li",{className:"color-good",children:"Systems Nominal"}),h.alarms.map(function(l){var d="";return l.has_cameras?d=(0,e.jsx)(n.iG,{children:l.cameras.map(function(p){return(0,e.jsx)(n.q,{disabled:p.deact,content:p.name+(p.deact?" (deactived)":""),icon:"video",onClick:function(){return f("switchTo",{camera:p.camera})}},p.name)})}):l.lost_sources&&(d=(0,e.jsxs)(n.kv,{color:"bad",children:["Lost Alarm Sources: ",l.lost_sources]})),(0,e.jsxs)("li",{children:[l.name,l.origin_lost?(0,e.jsx)(n.kv,{color:"bad",children:"Alarm Origin Lost."}):"",d]},l.name)})]})},h.category)})}},86876:function(M,j,t){"use strict";t.r(j),t.d(j,{StationBlueprints:function(){return o},StationBlueprintsContent:function(){return v}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(g){return(0,e.jsx)(r.qo,{width:870,height:708,children:(0,e.jsx)(v,{})})},v=function(g){var x=(0,s.yy)(),f=x.act,u=x.data,m=x.config,c=u.mapRef,h=u.areas,l=u.turfs;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:"Honk!"})}),(0,e.jsx)("div",{className:"CameraConsole__right",children:(0,e.jsx)(n.cb,{className:"CameraConsole__map",params:{id:c,type:"map"}})})]})}},33388:function(M,j,t){"use strict";t.r(j),t.d(j,{StockExchange:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(c){var h=(0,s.yy)(),l=h.act,d=h.data,p=d.screen,C=d.stationName,y;return p==="stocks"?y=(0,e.jsx)(v,{}):p==="logs"?y=(0,e.jsx)(f,{}):p==="archive"?y=(0,e.jsx)(u,{}):p==="graph"&&(y=(0,e.jsx)(m,{})),(0,e.jsx)(r.qo,{width:600,height:600,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:(0,e.jsx)(n.iG,{title:""+C+" Stock Exchange",children:y})})})},v=function(c){var h=(0,s.yy)(),l=h.act,d=h.data,p=d.balance,C=d.stationName,y=d.viewMode,b=(0,e.jsx)(g,{});return y==="Full"?b=(0,e.jsx)(g,{}):y==="Compressed"&&(b=(0,e.jsx)(x,{})),(0,e.jsxs)(n.kv,{children:[(0,e.jsxs)("span",{children:["Welcome, ",(0,e.jsxs)("b",{children:[C," Cargo Department"]})," |"," "]}),(0,e.jsxs)("span",{children:[(0,e.jsx)("b",{children:"Credits:"})," ",p]}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"View mode: "}),(0,e.jsx)(n.q,{content:y,onClick:function(){return l("stocks_cycle_view")}}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Stock Transaction Log: "}),(0,e.jsx)(n.q,{icon:"list",content:"Check",onClick:function(){return l("stocks_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)(n.iG,{title:"Listed Stocks",children:b})]})},g=function(c){var h=(0,s.yy)(),l=h.act,d=h.data,p=d.stocks,C=p===void 0?[]:p;return(0,e.jsxs)(n.kv,{children:[(0,e.jsx)("b",{children:"Actions:"})," + Buy, - Sell, (A)rchives, (H)istory",(0,e.jsx)(n.c1,{}),(0,e.jsxs)(n.oJ,{children:[(0,e.jsxs)(n.oJ.Row,{children:[(0,e.jsx)(n.oJ.Cell,{bold:!0,children:"\xA0"}),(0,e.jsx)(n.oJ.Cell,{children:"ID"}),(0,e.jsx)(n.oJ.Cell,{children:"Name"}),(0,e.jsx)(n.oJ.Cell,{children:"Value"}),(0,e.jsx)(n.oJ.Cell,{children:"Owned"}),(0,e.jsx)(n.oJ.Cell,{children:"Avail"}),(0,e.jsx)(n.oJ.Cell,{children:"Actions"})]}),(0,e.jsx)(n.c1,{}),C.map(function(y){return(0,e.jsxs)(n.oJ.Row,{children:[(0,e.jsx)(n.oJ.Cell,{bold:!0,children:"\xA0"}),(0,e.jsx)(n.oJ.Cell,{color:"label",children:y.ID}),(0,e.jsx)(n.oJ.Cell,{color:"label",children:y.Name}),(0,e.jsx)(n.oJ.Cell,{color:"label",children:y.Value}),(0,e.jsx)(n.oJ.Cell,{color:"label",children:y.Owned}),(0,e.jsx)(n.oJ.Cell,{color:"label",children:y.Avail}),(0,e.jsxs)(n.oJ.Cell,{color:"label",children:[(0,e.jsx)(n.q,{icon:"plus",disabled:!1,onClick:function(){return l("stocks_buy",{share:y.REF})}}),(0,e.jsx)(n.q,{icon:"minus",disabled:!1,onClick:function(){return l("stocks_sell",{share:y.REF})}}),(0,e.jsx)("br",{}),(0,e.jsx)(n.q,{content:"A",onClick:function(){return l("stocks_archive",{share:y.REF})}}),(0,e.jsx)(n.q,{content:"H",onClick:function(){return l("stocks_history",{share:y.REF})}}),(0,e.jsx)("br",{})]})]},y.ID)})]})]})},x=function(c){var h=(0,s.yy)(),l=h.act,d=h.data,p=d.stocks,C=p===void 0?[]:p;return(0,e.jsx)(n.kv,{children:C.map(function(y){return(0,e.jsxs)(n.kv,{children:[(0,e.jsx)("span",{children:y.name})," ",(0,e.jsx)("span",{children:y.ID}),y.bankrupt===1&&(0,e.jsx)("b",{color:"red",children:"BANKRUPT"}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Unified shares"})," ",y.Unification," ago.",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Current value per share:"})," ",y.Value," |"," ",(0,e.jsx)(n.q,{content:"View history",onClick:function(){return l("stocks_history",{share:y.REF})}}),(0,e.jsx)("br",{}),"You currently own ",(0,e.jsx)("b",{children:y.Owned})," shares in this company.",(0,e.jsx)("br",{}),"There are ",y.Avail," purchasable shares on the market currently.",(0,e.jsx)("br",{}),y.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)(n.q,{content:"Buy shares",onClick:function(){return l("stocks_buy",{share:y.REF})}})," ","|"," ",(0,e.jsx)(n.q,{content:"Sell shares",onClick:function(){return l("stocks_sell",{share:y.REF})}})]}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Prominent products:"}),(0,e.jsx)("br",{}),(0,e.jsx)("i",{children:y.Products}),(0,e.jsx)("br",{}),(0,e.jsx)(n.q,{content:"View news archives",onClick:function(){return l("stocks_archive",{share:y.REF})}})," ",(0,e.jsx)(n.c1,{})]},y.ID)})})},f=function(c){var h=(0,s.yy)(),l=h.act,d=h.data,p=d.logs,C=p===void 0?[]:p;return(0,e.jsxs)(n.kv,{children:[(0,e.jsx)("h2",{children:"Stock Transaction Logs"}),(0,e.jsx)("br",{}),(0,e.jsx)(n.q,{content:"Go back",onClick:function(){return l("stocks_backbutton")}}),(0,e.jsx)(n.c1,{}),(0,e.jsx)("div",{children:C.map(function(y){return(0,e.jsxs)(n.kv,{children:[y.type!=="borrow"?(0,e.jsxs)("div",{children:[y.time," | ",(0,e.jsx)("b",{children:y.user_name})," ",y.type==="transaction_bought"?(0,e.jsx)("span",{children:"bought"}):(0,e.jsx)("span",{children:"sold"})," ",(0,e.jsx)("b",{children:y.stocks})," stocks at ",y.shareprice," a share for"," ",(0,e.jsx)("b",{children:y.money})," total credits"," ",y.type==="transaction_bought"?(0,e.jsx)("span",{children:"in"}):(0,e.jsx)("span",{children:"from"})," ",(0,e.jsx)("b",{children:y.company_name}),".",(0,e.jsx)("br",{})]}):(0,e.jsxs)("div",{children:[y.time," | ",(0,e.jsx)("b",{children:y.user_name})," borrowed ",(0,e.jsx)("b",{children:y.stocks})," ","stocks with a deposit of ",(0,e.jsx)("b",{children:y.money})," credits in"," ",(0,e.jsx)("b",{children:y.company_name}),".",(0,e.jsx)("br",{})]}),(0,e.jsx)(n.c1,{})]},y.time)})})]})},u=function(c){var h=(0,s.yy)(),l=h.act,d=h.data,p=d.name,C=d.events,y=C===void 0?[]:C,b=d.articles,O=b===void 0?[]:b;return(0,e.jsxs)(n.kv,{children:[(0,e.jsxs)("h2",{children:["News feed for ",p]}),(0,e.jsx)(n.q,{content:"Go back",onClick:function(){return l("stocks_backbutton")}}),(0,e.jsx)("h3",{children:"Events"}),(0,e.jsx)(n.c1,{}),(0,e.jsx)("div",{children:y.map(function(I){return(0,e.jsxs)(n.kv,{children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("b",{children:I.current_title}),(0,e.jsx)("br",{}),I.current_desc]}),(0,e.jsx)(n.c1,{})]},I.current_title)})}),(0,e.jsx)("br",{}),(0,e.jsx)("h3",{children:"Articles"}),(0,e.jsx)(n.c1,{}),(0,e.jsx)("div",{children:O.map(function(I){return(0,e.jsxs)(n.kv,{children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("b",{children:I.headline}),(0,e.jsx)("i",{children:I.subtitle}),(0,e.jsx)("br",{}),I.article,(0,e.jsx)("br",{}),"- ",I.author,", ",I.spacetime," (via"," ",(0,e.jsx)("i",{children:I.outlet}),")"]}),(0,e.jsx)(n.c1,{})]},I.headline)})})]})},m=function(c){var h=(0,s.yy)(),l=h.act,d=h.data,p=d.name,C=d.maxValue,y=d.values,b=y===void 0?[]:y;return(0,e.jsxs)(n.kv,{children:[(0,e.jsx)(n.q,{content:"Go back",onClick:function(){return l("stocks_backbutton")}}),(0,e.jsx)(n.c1,{}),(0,e.jsx)(n.iG,{position:"relative",height:"100%",children:(0,e.jsx)(n.kR.Line,{fillPositionedParent:!0,data:b,rangeX:[0,b.length-1],rangeY:[0,C],strokeColor:"rgba(0, 181, 173, 1)",fillColor:"rgba(0, 181, 173, 0.25)"})}),(0,e.jsx)(n.c1,{}),(0,e.jsxs)("p",{children:[p," share value per share"]})]})}},44920:function(M,j,t){"use strict";t.r(j),t.d(j,{SuitCycler:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(u){var m=(0,s.yy)(),c=m.act,h=m.data,l=h.active,d=h.locked,p=h.uv_active,C=(0,e.jsx)(v,{});return p?C=(0,e.jsx)(g,{}):d?C=(0,e.jsx)(x,{}):l&&(C=(0,e.jsx)(f,{})),(0,e.jsx)(r.qo,{width:320,height:400,children:(0,e.jsx)(r.qo.Content,{children:C})})},v=function(u){var m=(0,s.yy)(),c=m.act,h=m.data,l=h.safeties,d=h.occupied,p=h.suit,C=h.helmet,y=h.departments,b=h.species,O=h.uv_level,I=h.max_uv_level,_=h.can_repair,A=h.damage;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.iG,{title:"Storage",buttons:(0,e.jsx)(n.q,{icon:"lock",content:"Lock",onClick:function(){return c("lock")}}),children:[!!(d&&l)&&(0,e.jsxs)(n.yc,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,e.jsx)(n.q,{fluid:!0,icon:"eject",color:"red",content:"Eject Entity",onClick:function(){return c("eject_guy")}})]}),(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Helmet",children:(0,e.jsx)(n.q,{icon:C?"square":"square-o",content:C||"Empty",disabled:!C,onClick:function(){return c("dispense",{item:"helmet"})}})}),(0,e.jsx)(n.Ce.Item,{label:"Suit",children:(0,e.jsx)(n.q,{icon:p?"square":"square-o",content:p||"Empty",disabled:!p,onClick:function(){return c("dispense",{item:"suit"})}})}),_&&A?(0,e.jsxs)(n.Ce.Item,{label:"Suit Damage",children:[A,(0,e.jsx)(n.q,{icon:"wrench",content:"Repair",onClick:function(){return c("repair_suit")}})]}):null]})]}),(0,e.jsxs)(n.iG,{title:"Customization",children:[(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Target Paintjob",children:(0,e.jsx)(n.cS,{noscroll:!0,width:"150px",options:y,selected:y[0],onSelected:function(P){return c("department",{department:P})}})}),(0,e.jsx)(n.Ce.Item,{label:"Target Species",children:(0,e.jsx)(n.cS,{width:"150px",maxHeight:"160px",options:b,selected:b[0],onSelected:function(P){return c("species",{species:P})}})})]}),(0,e.jsx)(n.q,{mt:1,fluid:!0,content:"Customize",onClick:function(){return c("apply_paintjob")}})]}),(0,e.jsx)(n.iG,{title:"UV Decontamination",children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Radiation Level",children:(0,e.jsx)(n.Ef,{width:"50px",value:O,minValue:1,maxValue:I,stepPixelSize:30,onChange:function(P,T){return c("radlevel",{radlevel:T})}})}),(0,e.jsx)(n.Ce.Item,{label:"Decontaminate",children:(0,e.jsx)(n.q,{fluid:!0,icon:"recycle",disabled:d&&l,textAlign:"center",onClick:function(){return c("uv")}})})]})})]})},g=function(u){return(0,e.jsx)(n.yc,{children:"Contents are currently being decontaminated. Please wait."})},x=function(u){var m=(0,s.yy)(),c=m.act,h=m.data,l=h.model_text,d=h.userHasAccess;return(0,e.jsxs)(n.iG,{title:"Locked",textAlign:"center",children:[(0,e.jsxs)(n.kv,{color:"bad",bold:!0,children:["The ",l," suit cycler is currently locked. Please contact your system administrator."]}),(0,e.jsx)(n.kv,{children:(0,e.jsx)(n.q,{icon:"unlock",content:"[Unlock]",disabled:!d,onClick:function(){return c("lock")}})})]})},f=function(u){return(0,e.jsx)(n.yc,{children:"Contents are currently being painted. Please wait."})}},53892:function(M,j,t){"use strict";t.r(j),t.d(j,{SuitStorageUnit:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(u){var m=(0,s.yy)(),c=m.act,h=m.data,l=h.panelopen,d=h.uv_active,p=h.broken,C=(0,e.jsx)(v,{});return l?C=(0,e.jsx)(g,{}):d?C=(0,e.jsx)(x,{}):p&&(C=(0,e.jsx)(f,{})),(0,e.jsx)(r.qo,{width:400,height:365,children:(0,e.jsx)(r.qo.Content,{children:C})})},v=function(u){var m=(0,s.yy)(),c=m.act,h=m.data,l=h.locked,d=h.open,p=h.safeties,C=h.occupied,y=h.suit,b=h.helmet,O=h.mask;return(0,e.jsxs)(n.iG,{title:"Storage",minHeight:"260px",buttons:(0,e.jsxs)(e.Fragment,{children:[!d&&(0,e.jsx)(n.q,{icon:l?"unlock":"lock",content:l?"Unlock":"Lock",onClick:function(){return c("lock")}}),!l&&(0,e.jsx)(n.q,{icon:d?"sign-out-alt":"sign-in-alt",content:d?"Close":"Open",onClick:function(){return c("door")}})]}),children:[!!(C&&p)&&(0,e.jsxs)(n.yc,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,e.jsx)(n.q,{fluid:!0,icon:"eject",color:"red",content:"Eject Entity",onClick:function(){return c("eject_guy")}})]}),l&&(0,e.jsxs)(n.kv,{mt:6,bold:!0,textAlign:"center",fontSize:"40px",children:[(0,e.jsx)(n.kv,{children:"Unit Locked"}),(0,e.jsx)(n.GW,{name:"lock"})]})||d&&(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Helmet",children:(0,e.jsx)(n.q,{icon:b?"square":"square-o",content:b||"Empty",disabled:!b,onClick:function(){return c("dispense",{item:"helmet"})}})}),(0,e.jsx)(n.Ce.Item,{label:"Suit",children:(0,e.jsx)(n.q,{icon:y?"square":"square-o",content:y||"Empty",disabled:!y,onClick:function(){return c("dispense",{item:"suit"})}})}),(0,e.jsx)(n.Ce.Item,{label:"Mask",children:(0,e.jsx)(n.q,{icon:O?"square":"square-o",content:O||"Empty",disabled:!O,onClick:function(){return c("dispense",{item:"mask"})}})})]})||(0,e.jsx)(n.q,{fluid:!0,icon:"recycle",content:"Decontaminate",disabled:C&&p,textAlign:"center",onClick:function(){return c("uv")}})]})},g=function(u){var m=(0,s.yy)(),c=m.act,h=m.data,l=h.safeties,d=h.uv_super;return(0,e.jsxs)(n.iG,{title:"Maintenance Panel",children:[(0,e.jsx)(n.kv,{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)(n.kv,{children:["A small dial with a biohazard symbol next to it. It's pointing towards a gauge that reads ",d?"15nm":"185nm",".",(0,e.jsxs)(n.Cu,{mt:1,align:"center",textAlign:"center",children:[(0,e.jsx)(n.Cu.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(n.S6,{size:2,inline:!0,value:d,minValue:0,maxValue:1,step:1,stepPixelSize:40,color:d?"red":"green",format:function(p){return p?"15nm":"185nm"},onChange:function(p,C){return c("toggleUV")}})}),(0,e.jsx)(n.Cu.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(n.GW,{name:"biohazard",size:3,color:"orange"})})]})]}),(0,e.jsx)("br",{}),(0,e.jsxs)(n.kv,{children:["A thick old-style button, with 2 grimy LED lights next to it. The"," ",l?(0,e.jsx)("font",{color:"green",children:"GREEN"}):(0,e.jsx)("font",{color:"red",children:"RED"})," ","LED is on.",(0,e.jsxs)(n.Cu,{mt:1,align:"center",textAlign:"center",children:[(0,e.jsx)(n.Cu.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(n.q,{fontSize:"2rem",color:"grey",inline:!0,icon:"caret-square-right",style:{border:"4px solid #777","border-style":"outset"},onClick:function(){return c("togglesafeties")}})}),(0,e.jsxs)(n.Cu.Item,{basis:"50%",textAlign:"center",children:[(0,e.jsx)(n.GW,{name:"circle",color:l?"black":"red",mr:2}),(0,e.jsx)(n.GW,{name:"circle",color:l?"green":"black"})]})]})]})]})},x=function(u){return(0,e.jsx)(n.yc,{children:"Contents are currently being decontaminated. Please wait."})},f=function(u){return(0,e.jsx)(n.yc,{danger:!0,children:"Unit chamber is too contaminated to continue usage. Please call for a qualified individual to perform maintenance."})}},53736:function(M,j,t){"use strict";t.r(j),t.d(j,{SupermatterMonitor:function(){return g},SupermatterMonitorContent:function(){return x}});var e=t(33496),s=t(10608),n=t(49900),r=t(45280),o=t(68644),v=t(76512),g=function(m){return(0,e.jsx)(v.qo,{width:600,height:400,children:(0,e.jsx)(v.qo.Content,{scrollable:!0,children:(0,e.jsx)(x,{})})})},x=function(m){var c=(0,r.yy)(),h=c.act,l=c.data,d=l.active;return d?(0,e.jsx)(u,{}):(0,e.jsx)(f,{})},f=function(m){var c=(0,r.yy)(),h=c.act,l=c.data,d=l.supermatters;return(0,e.jsx)(o.iG,{title:"Supermatters Detected",buttons:(0,e.jsx)(o.q,{content:"Refresh",icon:"sync",onClick:function(){return h("refresh")}}),children:(0,e.jsx)(o.Cu,{wrap:"wrap",children:d.map(function(p,C){return(0,e.jsx)(o.Cu.Item,{basis:"49%",grow:C%2,children:(0,e.jsx)(o.iG,{title:p.area_name+" (#"+p.uid+")",children:(0,e.jsxs)(o.Ce,{children:[(0,e.jsxs)(o.Ce.Item,{label:"Integrity",children:[p.integrity," %"]}),(0,e.jsx)(o.Ce.Item,{label:"Options",children:(0,e.jsx)(o.q,{icon:"eye",content:"View Details",onClick:function(){return h("set",{set:p.uid})}})})]})})},C)})})})},u=function(m){var c=(0,r.yy)(),h=c.act,l=c.data,d=l.SM_area,p=l.SM_integrity,C=l.SM_power,y=l.SM_ambienttemp,b=l.SM_ambientpressure,O=l.SM_EPR,I=l.SM_gas_O2,_=l.SM_gas_CO2,A=l.SM_gas_N2,P=l.SM_gas_PH,T=l.SM_gas_N2O;return(0,e.jsx)(o.iG,{title:(0,n.Yl)(d),buttons:(0,e.jsx)(o.q,{icon:"arrow-left",content:"Return to Menu",onClick:function(){return h("clear")}}),children:(0,e.jsxs)(o.Ce,{children:[(0,e.jsx)(o.Ce.Item,{label:"Core Integrity",children:(0,e.jsx)(o.cH,{animated:!0,value:p,minValue:0,maxValue:100,ranges:{good:[100,100],average:[50,100],bad:[-1/0,50]}})}),(0,e.jsx)(o.Ce.Item,{label:"Relative EER",children:(0,e.jsx)(o.kv,{color:C>300&&"bad"||C>150&&"average"||"good",children:(0,e.jsx)(o.Gg,{format:function(R){return(0,s.kL)(R,2)+" MeV/cm\xB3"},value:C})})}),(0,e.jsx)(o.Ce.Item,{label:"Temperature",children:(0,e.jsx)(o.kv,{color:y>5e3&&"bad"||y>4e3&&"average"||"good",children:(0,e.jsx)(o.Gg,{format:function(R){return(0,s.kL)(R,2)+" K"},value:y})})}),(0,e.jsx)(o.Ce.Item,{label:"Pressure",children:(0,e.jsx)(o.kv,{color:b>1e4&&"bad"||b>5e3&&"average"||"good",children:(0,e.jsx)(o.Gg,{format:function(R){return(0,s.kL)(R,2)+" kPa"},value:b})})}),(0,e.jsx)(o.Ce.Item,{label:"Chamber EPR",children:(0,e.jsx)(o.kv,{color:O>4&&"bad"||O>1&&"average"||"good",children:(0,e.jsx)(o.Gg,{format:function(R){return(0,s.kL)(R,2)},value:O})})}),(0,e.jsx)(o.Ce.Item,{label:"Gas Composition",children:(0,e.jsxs)(o.Ce,{children:[(0,e.jsxs)(o.Ce.Item,{label:"O\xB2",children:[(0,e.jsx)(o.Gg,{value:I}),"%"]}),(0,e.jsxs)(o.Ce.Item,{label:"CO\xB2",children:[(0,e.jsx)(o.Gg,{value:_}),"%"]}),(0,e.jsxs)(o.Ce.Item,{label:"N\xB2",children:[(0,e.jsx)(o.Gg,{value:A}),"%"]}),(0,e.jsxs)(o.Ce.Item,{label:"PH",children:[(0,e.jsx)(o.Gg,{value:P}),"%"]}),(0,e.jsxs)(o.Ce.Item,{label:"N\xB2O",children:[(0,e.jsx)(o.Gg,{value:T}),"%"]})]})})]})})}},76848:function(M,j,t){"use strict";t.r(j),t.d(j,{SupplyConsole:function(){return m}});var e=t(33496),s=t(47392),n=t(18140),r=t(69344),o=t(45280),v=t(68644),g=t(96060),x=t(8020),f=t(76512),u=function(C){var y=(0,o.yy)(),b=y.act,O=y.data,I=O.supply_points,_=C.args,A=_.name,P=_.cost,T=_.manifest,R=_.ref,L=_.random;return(0,e.jsx)(v.iG,{width:"400px",level:2,m:"-1rem",pb:"1rem",title:A,buttons:(0,e.jsx)(v.q,{icon:"shopping-cart",content:"Buy - "+P+" points",disabled:P>I,onClick:function(){return b("request_crate",{ref:R})}}),children:(0,e.jsx)(v.iG,{title:"Contains"+(L?" any "+L+" of:":""),scrollable:!0,height:"200px",children:T.map(function(N){return(0,e.jsx)(v.kv,{children:N},N)})})})},m=function(C){var y=(0,o.yy)(),b=y.act,O=y.data;return(0,x.modalRegisterBodyOverride)("view_crate",u),(0,e.jsx)(f.qo,{width:700,height:620,children:(0,e.jsxs)(f.qo.Content,{children:[(0,e.jsx)(x.ComplexModal,{maxWidth:"100%"}),(0,e.jsxs)(v.iG,{title:"Supply Records",children:[(0,e.jsx)(c,{}),(0,e.jsx)(h,{})]})]})})},c=function(C){var y=(0,o.yy)(),b=y.act,O=y.data,I=O.supply_points,_=O.shuttle,A=O.shuttle_auth,P=null,T=!1;return A&&(_.launch===1&&_.mode===0?P=(0,e.jsx)(v.q,{icon:"rocket",content:"Send Away",onClick:function(){return b("send_shuttle",{mode:"send_away"})}}):_.launch===2&&(_.mode===3||_.mode===1)?P=(0,e.jsx)(v.q,{icon:"ban",content:"Cancel Launch",onClick:function(){return b("send_shuttle",{mode:"cancel_shuttle"})}}):_.launch===1&&_.mode===5&&(P=(0,e.jsx)(v.q,{icon:"rocket",content:"Send Shuttle",onClick:function(){return b("send_shuttle",{mode:"send_to_station"})}})),_.force&&(T=!0)),(0,e.jsxs)(v.iG,{children:[(0,e.jsx)(v.Ce,{children:(0,e.jsx)(v.Ce.Item,{label:"Supply Points",children:(0,e.jsx)(v.Gg,{value:I})})}),(0,e.jsx)(v.iG,{level:2,title:"Supply Shuttle",mt:2,children:(0,e.jsxs)(v.Ce,{children:[(0,e.jsx)(v.Ce.Item,{label:"Location",buttons:(0,e.jsxs)(e.Fragment,{children:[P,T?(0,e.jsx)(v.q,{icon:"exclamation-triangle",content:"Force Launch",onClick:function(){return b("send_shuttle",{mode:"force_shuttle"})}}):null]}),children:_.location}),(0,e.jsx)(v.Ce.Item,{label:"Engine",children:_.engine}),_.mode===4?(0,e.jsx)(v.Ce.Item,{label:"ETA",children:_.time>1?(0,g.AB)(_.time):"LATE"}):null]})})]})},h=function(C){var y=(0,o.yy)(),b=y.act,O=y.data,I=O.order_auth,_=(0,r.useState)(0),A=_[0],P=_[1];return(0,e.jsxs)(v.iG,{title:"Menu",children:[(0,e.jsxs)(v.kZ,{children:[(0,e.jsx)(v.kZ.Tab,{icon:"box",selected:A===0,onClick:function(){return P(0)},children:"Request"}),(0,e.jsx)(v.kZ.Tab,{icon:"check-circle-o",selected:A===1,onClick:function(){return P(1)},children:"Accepted"}),(0,e.jsx)(v.kZ.Tab,{icon:"circle-o",selected:A===2,onClick:function(){return P(2)},children:"Requests"}),(0,e.jsx)(v.kZ.Tab,{icon:"book",selected:A===3,onClick:function(){return P(3)},children:"Order history"}),(0,e.jsx)(v.kZ.Tab,{icon:"book",selected:A===4,onClick:function(){return P(4)},children:"Export history"})]}),A===0?(0,e.jsx)(l,{}):null,A===1?(0,e.jsx)(d,{mode:"Approved"}):null,A===2?(0,e.jsx)(d,{mode:"Requested"}):null,A===3?(0,e.jsx)(d,{mode:"All"}):null,A===4?(0,e.jsx)(p,{}):null]})},l=function(C){var y=(0,o.yy)(),b=y.act,O=y.data,I=O.categories,_=O.supply_packs,A=O.contraband,P=O.supply_points,T=(0,r.useState)(null),R=T[0],L=T[1],N=(0,n.k)([(0,s.IF)(function(U){return U.group===R}),(0,s.IF)(function(U){return!U.contraband||A}),(0,s.cp)(function(U){return U.name}),(0,s.cp)(function(U){return U.cost>P})])(_);return(0,e.jsx)(v.iG,{level:2,children:(0,e.jsxs)(v.fT,{children:[(0,e.jsx)(v.fT.Item,{basis:"25%",children:(0,e.jsx)(v.iG,{title:"Categories",scrollable:!0,fill:!0,height:"290px",children:I.map(function(U){return(0,e.jsx)(v.q,{fluid:!0,content:U,selected:U===R,onClick:function(){return L(U)}},U)})})}),(0,e.jsx)(v.fT.Item,{grow:1,ml:2,children:(0,e.jsx)(v.iG,{title:"Contents",scrollable:!0,fill:!0,height:"290px",children:N.map(function(U){return(0,e.jsx)(v.kv,{children:(0,e.jsxs)(v.fT,{align:"center",justify:"flex-start",children:[(0,e.jsx)(v.fT.Item,{basis:"70%",children:(0,e.jsx)(v.q,{fluid:!0,icon:"shopping-cart",ellipsis:!0,content:U.name,color:U.cost>P?"red":null,onClick:function(){return b("request_crate",{ref:U.ref})}})}),(0,e.jsx)(v.fT.Item,{children:(0,e.jsx)(v.q,{content:"#",color:U.cost>P?"red":null,onClick:function(){return b("request_crate_multi",{ref:U.ref})}})}),(0,e.jsx)(v.fT.Item,{children:(0,e.jsx)(v.q,{content:"C",color:U.cost>P?"red":null,onClick:function(){return b("view_crate",{crate:U.ref})}})}),(0,e.jsxs)(v.fT.Item,{grow:1,children:[U.cost," points"]})]})},U.name)})})})]})})},d=function(C){var y=(0,o.yy)(),b=y.act,O=y.data,I=C.mode,_=O.orders,A=O.order_auth,P=O.supply_points,T=_.filter(function(R){return R.status===I||I==="All"});return T.length?(0,e.jsxs)(v.iG,{level:2,children:[I==="Requested"&&A?(0,e.jsx)(v.q,{mt:-1,mb:1,fluid:!0,color:"red",icon:"trash",content:"Clear all requests",onClick:function(){return b("clear_all_requests")}}):null,T.map(function(R,L){return(0,e.jsxs)(v.iG,{title:"Order "+(L+1),buttons:I==="All"&&A?(0,e.jsx)(v.q,{color:"red",icon:"trash",content:"Delete Record",onClick:function(){return b("delete_order",{ref:R.ref})}}):null,children:[(0,e.jsxs)(v.Ce,{children:[R.entries.map(function(N,U){return N.entry?(0,e.jsx)(v.Ce.Item,{label:N.field,buttons:A?(0,e.jsx)(v.q,{icon:"pen",content:"Edit",onClick:function(){b("edit_order_value",{ref:R.ref,edit:N.field,default:N.entry})}}):null,children:N.entry},U):null}),I==="All"?(0,e.jsx)(v.Ce.Item,{label:"Status",children:R.status}):null]}),A&&I==="Requested"?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(v.q,{icon:"check",content:"Approve",disabled:R.cost>P,onClick:function(){return b("approve_order",{ref:R.ref})}}),(0,e.jsx)(v.q,{icon:"times",content:"Deny",onClick:function(){return b("deny_order",{ref:R.ref})}})]}):null]},L)})]}):(0,e.jsx)(v.iG,{level:2,children:"No orders found."})},p=function(C){var y=(0,o.yy)(),b=y.act,O=y.data,I=O.receipts,_=O.order_auth;return I.length?(0,e.jsx)(v.iG,{level:2,children:I.map(function(A,P){return(0,e.jsxs)(v.iG,{children:[(0,e.jsxs)(v.Ce,{children:[A.title.map(function(T){return(0,e.jsx)(v.Ce.Item,{label:T.field,buttons:_?(0,e.jsx)(v.q,{icon:"pen",content:"Edit",onClick:function(){return b("export_edit",{ref:A.ref,edit:T.field,default:T.entry})}}):null,children:T.entry},T.field)}),A.error?(0,e.jsx)(v.Ce.Item,{labelColor:"red",label:"Error",children:A.error}):A.contents.map(function(T,R){return(0,e.jsxs)(v.Ce.Item,{label:T.object,buttons:_?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(v.q,{icon:"pen",content:"Edit",onClick:function(){return b("export_edit_field",{ref:A.ref,index:R+1,edit:"meow",default:T.object})}}),(0,e.jsx)(v.q,{icon:"trash",color:"red",content:"Delete",onClick:function(){return b("export_delete_field",{ref:A.ref,index:R+1})}})]}):null,children:[T.quantity,"x -> ",T.value," points"]},R)})]}),_?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(v.q,{mt:1,icon:"plus",content:"Add Item To Record",onClick:function(){return b("export_add_field",{ref:A.ref})}}),(0,e.jsx)(v.q,{icon:"trash",content:"Delete Record",onClick:function(){return b("export_delete",{ref:A.ref})}})]}):null]},P)})}):(0,e.jsx)(v.iG,{level:2,children:"No receipts found."})}},89400:function(M,j,t){"use strict";t.r(j),t.d(j,{TEGenerator:function(){return g}});var e=t(33496),s=t(10608),n=t(45280),r=t(68644),o=t(96060),v=t(76512),g=function(f){var u=(0,n.yy)().data,m=u.totalOutput,c=u.maxTotalOutput,h=u.thermalOutput,l=u.primary,d=u.secondary;return(0,e.jsx)(v.qo,{width:550,height:310,children:(0,e.jsxs)(v.qo.Content,{children:[(0,e.jsx)(r.iG,{title:"Status",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Total Output",children:(0,e.jsx)(r.cH,{value:m,maxValue:c,children:(0,o._s)(m)})}),(0,e.jsx)(r.Ce.Item,{label:"Thermal Output",children:(0,o._s)(h)})]})}),l&&d?(0,e.jsxs)(r.Cu,{spacing:1,children:[(0,e.jsx)(r.Cu.Item,{shrink:1,grow:1,children:(0,e.jsx)(x,{name:"Primary Circulator",values:l})}),(0,e.jsx)(r.Cu.Item,{shrink:1,grow:1,children:(0,e.jsx)(x,{name:"Secondary Circulator",values:d})})]}):(0,e.jsx)(r.kv,{color:"bad",children:"Warning! Both circulators must be connected in order to operate this machine."})]})})},x=function(f){var u=f.name,m=f.values,c=m.dir,h=m.output,l=m.flowCapacity,d=m.inletPressure,p=m.inletTemperature,C=m.outletPressure,y=m.outletTemperature;return(0,e.jsx)(r.iG,{title:u+" ("+c+")",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Turbine Output",children:(0,o._s)(h)}),(0,e.jsxs)(r.Ce.Item,{label:"Flow Capacity",children:[(0,s.kL)(l,2),"%"]}),(0,e.jsx)(r.Ce.Item,{label:"Inlet Pressure",children:(0,o._c)(d*1e3,0,"Pa")}),(0,e.jsxs)(r.Ce.Item,{label:"Inlet Temperature",children:[(0,s.kL)(p,2)," K"]}),(0,e.jsx)(r.Ce.Item,{label:"Outlet Pressure",children:(0,o._c)(C*1e3,0,"Pa")}),(0,e.jsxs)(r.Ce.Item,{label:"Outlet Temperature",children:[(0,s.kL)(y,2)," K"]})]})})}},2096:function(M,j,t){"use strict";t.r(j),t.d(j,{Tank:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.connected,m=f.showToggle,c=m===void 0?!0:m,h=f.maskConnected,l=f.tankPressure,d=f.releasePressure,p=f.defaultReleasePressure,C=f.minReleasePressure,y=f.maxReleasePressure;return(0,e.jsx)(r.qo,{width:400,height:320,children:(0,e.jsxs)(r.qo.Content,{children:[(0,e.jsx)(n.iG,{title:"Status",buttons:!!c&&(0,e.jsx)(n.q,{icon:u?"air-freshener":"lock-open",selected:u,disabled:!h,content:"Mask Release Valve",onClick:function(){return x("toggle")}}),children:(0,e.jsx)(n.Ce,{children:(0,e.jsx)(n.Ce.Item,{label:"Mask Connected",children:h?"Yes":"No"})})}),(0,e.jsx)(n.iG,{children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Pressure",children:(0,e.jsx)(n.cH,{value:l/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:f.tankPressure+" kPa"})}),(0,e.jsxs)(n.Ce.Item,{label:"Pressure Regulator",children:[(0,e.jsx)(n.q,{icon:"fast-backward",disabled:d===C,onClick:function(){return x("pressure",{pressure:"min"})}}),(0,e.jsx)(n.Ef,{animated:!0,value:parseFloat(d),width:"65px",unit:"kPa",minValue:C,maxValue:y,onChange:function(b,O){return x("pressure",{pressure:O})}}),(0,e.jsx)(n.q,{icon:"fast-forward",disabled:d===y,onClick:function(){return x("pressure",{pressure:"max"})}}),(0,e.jsx)(n.q,{icon:"undo",content:"",disabled:d===p,onClick:function(){return x("pressure",{pressure:"reset"})}})]})]})})]})})}},46308:function(M,j,t){"use strict";t.r(j),t.d(j,{TankDispenser:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.plasma,m=f.oxygen;return(0,e.jsx)(r.qo,{width:275,height:103,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(n.iG,{children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Phoron",buttons:(0,e.jsx)(n.q,{icon:u?"square":"square-o",content:"Dispense",disabled:!u,onClick:function(){return x("plasma")}}),children:u}),(0,e.jsx)(n.Ce.Item,{label:"Oxygen",buttons:(0,e.jsx)(n.q,{icon:m?"square":"square-o",content:"Dispense",disabled:!m,onClick:function(){return x("oxygen")}}),children:m})]})})})})}},86176:function(M,j,t){"use strict";t.r(j),t.d(j,{TelecommsLogBrowser:function(){return v}});var e=t(33496),s=t(10608),n=t(45280),r=t(68644),o=t(76512),v=function(u){var m=(0,n.yy)(),c=m.act,h=m.data,l=h.universal_translate,d=h.network,p=h.temp,C=h.servers,y=h.selectedServer;return(0,e.jsx)(o.qo,{width:575,height:450,children:(0,e.jsxs)(o.qo.Content,{scrollable:!0,children:[p?(0,e.jsxs)(r.yc,{danger:p.color==="bad",warning:p.color!=="bad",children:[(0,e.jsx)(r.kv,{display:"inline-box",verticalAlign:"middle",children:p.text}),(0,e.jsx)(r.q,{icon:"times-circle",float:"right",onClick:function(){return c("cleartemp")}}),(0,e.jsx)(r.kv,{clear:"both"})]}):null,(0,e.jsx)(r.iG,{title:"Network Control",children:(0,e.jsx)(r.Ce,{children:(0,e.jsx)(r.Ce.Item,{label:"Current Network",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.q,{icon:"search",content:"Refresh",onClick:function(){return c("scan")}}),(0,e.jsx)(r.q,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:C.length===0,onClick:function(){return c("release")}})]}),children:(0,e.jsx)(r.q,{content:d,icon:"pen",onClick:function(){return c("network")}})})})}),y?(0,e.jsx)(x,{network:d,server:y,universal_translate:l}):(0,e.jsx)(g,{network:d,servers:C})]})})},g=function(u){var m=(0,n.yy)(),c=m.act,h=m.data,l=u.network,d=u.servers;return!d||!d.length?(0,e.jsxs)(r.iG,{title:"Detected Telecommunications Servers",children:[(0,e.jsx)(r.kv,{color:"bad",children:"No servers detected."}),(0,e.jsx)(r.q,{fluid:!0,content:"Scan",icon:"search",onClick:function(){return c("scan")}})]}):(0,e.jsx)(r.iG,{title:"Detected Telecommunications Servers",children:(0,e.jsx)(r.Ce,{children:d.map(function(p){return(0,e.jsx)(r.Ce.Item,{label:p.name+" ("+p.id+")",children:(0,e.jsx)(r.q,{content:"View",icon:"eye",onClick:function(){return c("view",{id:p.id})}})},p.id)})})})},x=function(u){var m=(0,n.yy)(),c=m.act,h=m.data,l=u.network,d=u.server,p=u.universal_translate;return(0,e.jsxs)(r.iG,{title:"Server ("+d.id+")",buttons:(0,e.jsx)(r.q,{content:"Return",icon:"undo",onClick:function(){return c("mainmenu")}}),children:[(0,e.jsx)(r.Ce,{children:(0,e.jsx)(r.Ce.Item,{label:"Total Recorded Traffic",children:d.totalTraffic>=1024?(0,s.kL)(d.totalTraffic/1024)+" Terrabytes":d.totalTraffic+" Gigabytes"})}),(0,e.jsx)(r.iG,{title:"Stored Logs",mt:"4px",children:(0,e.jsx)(r.Cu,{wrap:"wrap",children:!d.logs||!d.logs.length?"No Logs Detected.":d.logs.map(function(C){return(0,e.jsx)(r.Cu.Item,{m:"2px",basis:"49%",grow:C.id%2,children:(0,e.jsx)(r.iG,{title:p||C.parameters.uspeech||C.parameters.intelligible||C.input_type==="Execution Error"?C.input_type:"Audio File",buttons:(0,e.jsx)(r.q.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return c("delete",{id:C.id})}}),children:C.input_type==="Execution Error"?(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Data type",children:"Error"}),(0,e.jsx)(r.Ce.Item,{label:"Output",children:C.parameters.message}),(0,e.jsx)(r.Ce.Item,{label:"Delete",children:(0,e.jsx)(r.q,{icon:"trash",onClick:function(){return c("delete",{id:C.id})}})})]}):p||C.parameters.uspeech||C.parameters.intelligible?(0,e.jsx)(f,{log:C}):(0,e.jsx)(f,{error:!0})})},C.id)})})})]})},f=function(u){var m=(0,n.yy)(),c=m.act,h=m.data,l=u.log,d=u.error,p=l&&l.parameters||{none:"none"},C=p.timecode,y=p.name,b=p.race,O=p.job,I=p.message;return d?(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Time Recieved",children:C}),(0,e.jsx)(r.Ce.Item,{label:"Source",children:"Unidentifiable"}),(0,e.jsx)(r.Ce.Item,{label:"Class",children:b}),(0,e.jsx)(r.Ce.Item,{label:"Contents",children:"Unintelligible"})]}):(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Time Recieved",children:C}),(0,e.jsxs)(r.Ce.Item,{label:"Source",children:[y," (Job: ",O,")"]}),(0,e.jsx)(r.Ce.Item,{label:"Class",children:b}),(0,e.jsx)(r.Ce.Item,{label:"Contents",className:"LabeledList__breakContents",children:I})]})}},18836:function(M,j,t){"use strict";t.r(j),t.d(j,{TelecommsMachineBrowser:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(g){var x=(0,s.yy)(),f=x.act,u=x.data,m=u.network,c=u.temp,h=u.machinelist,l=u.selectedMachine;return(0,e.jsx)(r.qo,{width:575,height:450,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[c?(0,e.jsxs)(n.yc,{danger:c.color==="bad",warning:c.color!=="bad",children:[(0,e.jsx)(n.kv,{display:"inline-box",verticalAlign:"middle",children:c.text}),(0,e.jsx)(n.q,{icon:"times-circle",float:"right",onClick:function(){return f("cleartemp")}}),(0,e.jsx)(n.kv,{clear:"both"})]}):null,(0,e.jsx)(n.iG,{title:"Network Control",children:(0,e.jsx)(n.Ce,{children:(0,e.jsx)(n.Ce.Item,{label:"Current Network",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.q,{icon:"search",content:"Probe Network",onClick:function(){return f("scan")}}),(0,e.jsx)(n.q,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:h.length===0,onClick:function(){return f("release")}})]}),children:(0,e.jsx)(n.q,{content:m,icon:"pen",onClick:function(){return f("network")}})})})}),h&&h.length?(0,e.jsx)(v,{title:l?l.name+" ("+l.id+")":"Detected Network Entities",list:l?l.links:h,showBack:l}):(0,e.jsx)(n.iG,{title:"No Devices Found",children:(0,e.jsx)(n.q,{icon:"search",content:"Probe Network",onClick:function(){return f("scan")}})})]})})},v=function(g){var x=(0,s.yy)(),f=x.act,u=x.data,m=g.list,c=g.title,h=g.showBack;return(0,e.jsxs)(n.iG,{title:c,buttons:h&&(0,e.jsx)(n.q,{icon:"undo",content:"Back to Main Menu",onClick:function(){return f("mainmenu")}}),children:[(0,e.jsx)(n.kv,{color:"label",children:(0,e.jsx)("u",{children:"Linked entities"})}),(0,e.jsx)(n.Ce,{children:m.length?m.map(function(l){return(0,e.jsx)(n.Ce.Item,{label:l.name+" ("+l.id+")",children:(0,e.jsx)(n.q,{content:"View",icon:"eye",onClick:function(){return f("view",{id:l.id})}})},l.id)}):(0,e.jsx)(n.Ce.Item,{color:"bad",children:"No links detected."})})]})}},11644:function(M,j,t){"use strict";t.r(j),t.d(j,{TelecommsMultitoolMenu:function(){return v}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=t(66632),v=function(f){var u=(0,s.yy)(),m=u.act,c=u.data,h=c.temp,l=c.on,d=c.id,p=c.network,C=c.autolinkers,y=c.shadowlink,b=c.options,O=c.linked,I=c.filter,_=c.multitool,A=c.multitool_buffer;return(0,e.jsx)(r.qo,{width:520,height:540,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsx)(o.TemporaryNotice,{}),(0,e.jsx)(g,{}),(0,e.jsx)(x,{options:b})]})})},g=function(f){var u=(0,s.yy)(),m=u.act,c=u.data,h=c.temp,l=c.on,d=c.id,p=c.network,C=c.autolinkers,y=c.shadowlink,b=c.options,O=c.linked,I=c.filter,_=c.multitool,A=c.multitool_buffer;return(0,e.jsxs)(n.iG,{title:"Status",buttons:(0,e.jsx)(n.q,{icon:"power-off",selected:l,content:l?"On":"Off",onClick:function(){return m("toggle")}}),children:[(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Identification String",children:(0,e.jsx)(n.q,{icon:"pen",content:d,onClick:function(){return m("id")}})}),(0,e.jsx)(n.Ce.Item,{label:"Network",children:(0,e.jsx)(n.q,{icon:"pen",content:p,onClick:function(){return m("network")}})}),(0,e.jsx)(n.Ce.Item,{label:"Prefabrication",children:C?"TRUE":"FALSE"}),y?(0,e.jsx)(n.Ce.Item,{label:"Shadow Link",children:"Active."}):null,_?(0,e.jsxs)(n.Ce.Item,{label:"Multitool Buffer",children:[A?(0,e.jsxs)(e.Fragment,{children:[A.name," (",A.id,")"]}):null,(0,e.jsx)(n.q,{color:A?"green":null,content:A?"Link ("+A.id+")":"Add Machine",icon:A?"link":"plus",onClick:A?function(){return m("link")}:function(){return m("buffer")}}),A?(0,e.jsx)(n.q,{color:"red",content:"Flush",icon:"trash",onClick:function(){return m("flush")}}):null]}):null]}),(0,e.jsx)(n.iG,{title:"Linked network Entities",mt:1,children:(0,e.jsx)(n.Ce,{children:O.map(function(P){return(0,e.jsx)(n.Ce.Item,{label:P.ref+" "+P.name+" ("+P.id+")",buttons:(0,e.jsx)(n.q.Confirm,{color:"red",icon:"trash",onClick:function(){return m("unlink",{unlink:P.index})}})},P.ref)})})}),(0,e.jsxs)(n.iG,{title:"Filtering Frequencies",mt:1,children:[I.map(function(P){return(0,e.jsx)(n.q.Confirm,{content:P.name+" GHz",confirmContent:"Delete?",confirmColor:"red",confirmIcon:"trash",onClick:function(){return m("delete",{delete:P.freq})}},P.index)}),!I||I.length===0?(0,e.jsx)(n.kv,{color:"label",children:"No filters."}):null]})]})},x=function(f){var u=(0,s.yy)(),m=u.act,c=u.data,h=f.options,l=h.use_listening_level,d=h.use_broadcasting,p=h.use_receiving,C=h.listening_level,y=h.broadcasting,b=h.receiving,O=h.use_change_freq,I=h.change_freq,_=h.use_broadcast_range,A=h.use_receive_range,P=h.range,T=h.minRange,R=h.maxRange;return!l&&!d&&!p&&!O&&!_&&!A?(0,e.jsx)(n.iG,{title:"No Options Found"}):(0,e.jsx)(n.iG,{title:"Options",children:(0,e.jsxs)(n.Ce,{children:[l?(0,e.jsx)(n.Ce.Item,{label:"Signal Locked to Station",children:(0,e.jsx)(n.q,{icon:C?"lock-closed":"lock-open",content:C?"Yes":"No",onClick:function(){return m("change_listening")}})}):null,d?(0,e.jsx)(n.Ce.Item,{label:"Broadcasting",children:(0,e.jsx)(n.q,{icon:"power-off",selected:y,content:y?"Yes":"No",onClick:function(){return m("broadcast")}})}):null,p?(0,e.jsx)(n.Ce.Item,{label:"Receving",children:(0,e.jsx)(n.q,{icon:"power-off",selected:b,content:b?"Yes":"No",onClick:function(){return m("receive")}})}):null,O?(0,e.jsx)(n.Ce.Item,{label:"Change Signal Frequency",children:(0,e.jsx)(n.q,{icon:"wave-square",selected:!!I,content:I?"Yes ("+I+")":"No",onClick:function(){return m("change_freq")}})}):null,_||A?(0,e.jsx)(n.Ce.Item,{label:(_?"Broadcast":"Receive")+" Range",children:(0,e.jsx)(n.Ef,{value:P,minValue:T,maxValue:R,unit:"gigameters",stepPixelSize:4,format:function(L){return L+1},onDrag:function(L,N){return m("range",{range:N})}})}):null]})})}},78452:function(M,j,t){"use strict";t.r(j),t.d(j,{Teleporter:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.locked_name,m=f.station_connected,c=f.hub_connected,h=f.calibrated,l=f.teleporter_on;return(0,e.jsx)(r.qo,{width:300,height:200,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(n.iG,{children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Target",children:(0,e.jsx)(n.q,{fluid:!0,icon:"bullseye",onClick:function(){return x("select_target")},content:u})}),(0,e.jsx)(n.Ce.Item,{label:"Calibrated",children:(0,e.jsx)(n.q.Checkbox,{fluid:!0,checked:h,color:h?"good":"bad",onClick:function(){return x("test_fire")},content:h?"Accurate":"Test Fire"})}),(0,e.jsx)(n.Ce.Item,{label:"Teleporter",children:(0,e.jsx)(n.q.Checkbox,{fluid:!0,checked:l,color:l?"good":"bad",onClick:function(){return x("toggle_on")},content:l?"Online":"OFFLINE"})}),(0,e.jsx)(n.Ce.Item,{label:"Station",children:m?"Connected":"Not Connected"}),(0,e.jsx)(n.Ce.Item,{label:"Hub",children:c?"Connected":"Not Connected"})]})})})})}},30288:function(M,j,t){"use strict";t.r(j),t.d(j,{TelesciConsole:function(){return v},TelesciConsoleContent:function(){return x}});var e=t(33496),s=t(47392),n=t(45280),r=t(68644),o=t(76512),v=function(f){var u=(0,n.yy)(),m=u.act,c=u.data,h=c.noTelepad;return(0,e.jsx)(o.qo,{width:400,height:450,children:(0,e.jsx)(o.qo.Content,{scrollable:!0,children:h&&(0,e.jsx)(g,{})||(0,e.jsx)(x,{})})})},g=function(f){return(0,e.jsxs)(r.iG,{title:"Error",color:"bad",children:["No telepad located.",(0,e.jsx)("br",{}),"Please add telepad data."]})},x=function(f){var u=(0,n.yy)(),m=u.act,c=u.data,h=c.insertedGps,l=c.rotation,d=c.currentZ,p=c.cooldown,C=c.crystalCount,y=c.maxCrystals,b=c.maxPossibleDistance,O=c.maxAllowedDistance,I=c.distance,_=c.tempMsg,A=c.sectorOptions,P=c.lastTeleData;return(0,e.jsxs)(r.iG,{title:"Telepad Controls",buttons:(0,e.jsx)(r.q,{icon:"eject",disabled:!h,onClick:function(){return m("ejectGPS")},content:"Eject GPS"}),children:[(0,e.jsx)(r.yc,{info:!0,children:p&&(0,e.jsxs)(r.kv,{children:["Telepad is recharging. Please wait"," ",(0,e.jsx)(r.Gg,{value:p})," seconds."]})||(0,e.jsx)(r.kv,{children:_})}),(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Bearing",children:(0,e.jsx)(r.Ef,{fluid:!0,value:l,format:function(T){return T+"\xB0"},step:1,minValue:-900,maxValue:900,onDrag:function(T,R){return m("setrotation",{val:R})}})}),(0,e.jsx)(r.Ce.Item,{label:"Distance",children:(0,e.jsx)(r.Ef,{fluid:!0,value:I,format:function(T){return T+"/"+O+" m"},minValue:0,maxValue:O,step:1,stepPixelSize:4,onDrag:function(T,R){return m("setdistance",{val:R})}})}),(0,e.jsx)(r.Ce.Item,{label:"Sector",children:(0,s.cp)(function(T){return Number(T)})(A).map(function(T){return(0,e.jsx)(r.q,{icon:"check-circle",content:T,selected:d===T,onClick:function(){return m("setz",{setz:T})}},T)})}),(0,e.jsxs)(r.Ce.Item,{label:"Controls",children:[(0,e.jsx)(r.q,{icon:"share",iconRotation:-90,onClick:function(){return m("send")},content:"Send"}),(0,e.jsx)(r.q,{icon:"share",iconRotation:90,onClick:function(){return m("receive")},content:"Receive"}),(0,e.jsx)(r.q,{icon:"sync",iconRotation:90,onClick:function(){return m("recal")},content:"Recalibrate"})]})]}),P&&(0,e.jsx)(r.iG,{mt:1,children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsxs)(r.Ce.Item,{label:"Telepad Location",children:[P.src_x,", ",P.src_y]}),(0,e.jsxs)(r.Ce.Item,{label:"Distance",children:[P.distance,"m"]}),(0,e.jsxs)(r.Ce.Item,{label:"Transit Time",children:[P.time," secs"]})]})})||(0,e.jsx)(r.iG,{mt:1,children:"No teleport data found."}),(0,e.jsxs)(r.iG,{children:["Crystals: ",C," / ",y]})]})}},47828:function(M,j,t){"use strict";t.r(j),t.d(j,{TextInputModal:function(){return m},removeAllSkiplines:function(){return u},sanitizeMultiline:function(){return f}});var e=t(33496),s=t(52239),n=t(69344),r=t(45280),o=t(68644),v=t(76512),g=t(14820),x=t(26896),f=function(h){return h.replace(/(\n|\r\n){3,}/,"\n\n")},u=function(h){return h.replace(/[\r\n]+/,"")},m=function(h){var l=(0,r.yy)(),d=l.act,p=l.data,C=p.large_buttons,y=p.max_length,b=p.message,O=b===void 0?"":b,I=p.multiline,_=p.placeholder,A=_===void 0?"":_,P=p.timeout,T=p.title,R=(0,n.useState)(A||""),L=R[0],N=R[1],U=function(Q){if(Q!==L){var H=I?f(Q):u(Q);N(H)}},V=I||L.length>=30,z=135+(O.length>30?Math.ceil(O.length/4):0)+(V?75:0)+(O.length&&C?5:0);return(0,e.jsxs)(v.qo,{title:T,width:325,height:z,children:[P&&(0,e.jsx)(x.Loader,{value:P}),(0,e.jsx)(v.qo.Content,{onKeyDown:function(Q){Q.key===s.i.Enter&&(!V||!Q.shiftKey)&&d("submit",{entry:L}),Q.key===s.i.Escape&&d("cancel")},children:(0,e.jsx)(o.iG,{fill:!0,children:(0,e.jsxs)(o.fT,{fill:!0,vertical:!0,children:[(0,e.jsx)(o.fT.Item,{children:(0,e.jsx)(o.kv,{color:"label",children:O})}),(0,e.jsx)(o.fT.Item,{grow:!0,children:(0,e.jsx)(c,{input:L,onType:U})}),(0,e.jsx)(o.fT.Item,{children:(0,e.jsx)(g.InputButtons,{input:L,message:L.length+"/"+y})})]})})})]})},c=function(h){var l=(0,r.yy)(),d=l.act,p=l.data,C=p.max_length,y=p.multiline,b=h.input,O=h.onType,I=y||b.length>=30;return(0,e.jsx)(o.IF,{autoFocus:!0,autoSelect:!0,height:y||b.length>=30?"100%":"1.8rem",maxLength:C,onEscape:function(){return d("cancel")},onEnter:function(_){I&&_.shiftKey||(_.preventDefault(),d("submit",{entry:b}))},onChange:function(_,A){return O(A)},onInput:function(_,A){return O(A)},placeholder:"Type something...",value:b})}},22772:function(M,j,t){"use strict";t.r(j),t.d(j,{TimeClock:function(){return g}});var e=t(33496),s=t(10608),n=t(45280),r=t(68644),o=t(76512),v=t(57353),g=function(x){var f=(0,n.yy)(),u=f.act,m=f.data,c=m.department_hours,h=m.user_name,l=m.card,d=m.assignment,p=m.job_datum,C=m.allow_change_job,y=m.job_choices;return(0,e.jsx)(o.qo,{width:500,height:520,children:(0,e.jsxs)(o.qo.Content,{scrollable:!0,children:[(0,e.jsxs)(r.iG,{title:"OOC",children:[(0,e.jsx)(r.yc,{children:"OOC Note: PTO acquired is account-wide and shared across all characters. Info listed below is not IC information."}),(0,e.jsx)(r.iG,{level:2,title:"Time Off Balance for "+h,children:(0,e.jsx)(r.Ce,{children:Object.keys(c).map(function(b){return(0,e.jsxs)(r.Ce.Item,{label:b,color:c[b]>6?"good":c[b]>1?"average":"bad",children:[(0,s.yI)(c[b],1)," ",c[b]===1?"hour":"hours"]},b)})})})]}),(0,e.jsx)(r.iG,{title:"Employee Info",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Employee ID",children:(0,e.jsx)(r.q,{fluid:!0,icon:"user",onClick:function(){return u("id")},children:l||"Insert ID"})}),!!p&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ce.Item,{label:"Rank",children:(0,e.jsx)(r.kv,{backgroundColor:p.selection_color,p:.8,children:(0,e.jsxs)(r.Cu,{justify:"space-between",align:"center",children:[(0,e.jsx)(r.Cu.Item,{children:(0,e.jsx)(r.kv,{ml:1,children:(0,e.jsx)(v.RankIcon,{color:"white",rank:p.title})})}),(0,e.jsx)(r.Cu.Item,{children:(0,e.jsx)(r.kv,{fontSize:1.5,inline:!0,mr:1,children:p.title})})]})})}),(0,e.jsx)(r.Ce.Item,{label:"Departments",children:p.departments}),(0,e.jsx)(r.Ce.Item,{label:"Pay Scale",children:p.economic_modifier}),(0,e.jsx)(r.Ce.Item,{label:"PTO Elegibility",children:p.timeoff_factor>0&&(0,e.jsxs)(r.kv,{children:["Earns PTO - ",p.pto_department]})||p.timeoff_factor<0&&(0,e.jsxs)(r.kv,{children:["Requires PTO - ",p.pto_department]})||(0,e.jsx)(r.kv,{children:"Neutral"})})]})]})}),!!(C&&p&&p.timeoff_factor!==0&&d!=="Dismissed")&&(0,e.jsx)(r.iG,{title:"Employment Actions",children:p.timeoff_factor>0&&(c[p.pto_department]>0&&(0,e.jsx)(r.q,{fluid:!0,icon:"exclamation-triangle",onClick:function(){return u("switch-to-offduty")},children:"Go Off-Duty"})||(0,e.jsx)(r.kv,{color:"bad",children:"Warning: You do not have enough accrued time off to go off-duty."}))||Object.keys(y).length&&Object.keys(y).map(function(b){var O=y[b];return O.map(function(I){return(0,e.jsx)(r.q,{icon:"suitcase",onClick:function(){return u("switch-to-onduty-rank",{"switch-to-onduty-rank":b,"switch-to-onduty-assignment":I})},children:I},I)})})||(0,e.jsx)(r.kv,{color:"bad",children:"No Open Positions - See Head Of Personnel"})})]})})}},95044:function(M,j,t){"use strict";t.r(j),t.d(j,{TraitDescription:function(){return g},TraitSelection:function(){return v},TraitTutorial:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(x){var f=(0,s.yy)(),u=f.act,m=f.data;return(0,e.jsx)(r.qo,{width:804,height:426,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:(0,e.jsx)(n.iG,{title:"Guide to Custom Traits",children:(0,e.jsx)(v,{})})})})},v=function(x){var f=(0,s.yy)(),u=f.act,m=f.data,c=m.names,h=m.selection;return(0,e.jsxs)(n.fT,{children:[(0,e.jsx)(n.fT.Item,{shrink:!0,children:(0,e.jsx)(n.iG,{title:"Trait Selection",children:(0,e.jsx)(n.kZ,{vertical:!0,children:c.map(function(l){return(0,e.jsx)(n.kZ.Tab,{selected:l===h,onClick:function(){return u("select_trait",{name:l})},children:(0,e.jsx)(n.kv,{inline:!0,children:l})},l)})})})}),(0,e.jsx)(n.fT.Item,{grow:8,children:h&&(0,e.jsx)(n.iG,{title:h,children:(0,e.jsx)(g,{name:h})})})]})},g=function(x){var f=(0,s.yy)(),u=f.act,m=f.data,c=x.name,h=m.descriptions,l=m.categories,d=m.tutorials;return(0,e.jsxs)(n.iG,{children:[(0,e.jsx)("b",{children:"Name:"})," ",c,(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Category:"})," ",l[c],(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Description:"})," ",h[c],(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:d[c]}})]})}},20956:function(M,j,t){"use strict";t.r(j),t.d(j,{TransferValve:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.tank_one,m=f.tank_two,c=f.attached_device,h=f.valve;return(0,e.jsx)(r.qo,{children:(0,e.jsxs)(r.qo.Content,{children:[(0,e.jsx)(n.iG,{children:(0,e.jsx)(n.Ce,{children:(0,e.jsx)(n.Ce.Item,{label:"Valve Status",children:(0,e.jsx)(n.q,{icon:h?"unlock":"lock",content:h?"Open":"Closed",disabled:!u||!m,onClick:function(){return x("toggle")}})})})}),(0,e.jsx)(n.iG,{title:"Assembly",buttons:(0,e.jsx)(n.q,{textAlign:"center",width:"150px",icon:"cog",content:"Configure Assembly",disabled:!c,onClick:function(){return x("device")}}),children:(0,e.jsx)(n.Ce,{children:c?(0,e.jsx)(n.Ce.Item,{label:"Attachment",children:(0,e.jsx)(n.q,{icon:"eject",content:c,disabled:!c,onClick:function(){return x("remove_device")}})}):(0,e.jsx)(n.yc,{textAlign:"center",children:"Attach Assembly"})})}),(0,e.jsx)(n.iG,{title:"Attachment One",children:(0,e.jsx)(n.Ce,{children:u?(0,e.jsx)(n.Ce.Item,{label:"Attachment",children:(0,e.jsx)(n.q,{icon:"eject",content:u,disabled:!u,onClick:function(){return x("tankone")}})}):(0,e.jsx)(n.yc,{textAlign:"center",children:"Attach Tank"})})}),(0,e.jsx)(n.iG,{title:"Attachment Two",children:(0,e.jsx)(n.Ce,{children:m?(0,e.jsx)(n.Ce.Item,{label:"Attachment",children:(0,e.jsx)(n.q,{icon:"eject",content:m,disabled:!m,onClick:function(){return x("tanktwo")}})}):(0,e.jsx)(n.yc,{textAlign:"center",children:"Attach Tank"})})})]})})}},64064:function(M,j,t){"use strict";t.r(j),t.d(j,{TurbineControl:function(){return v}});var e=t(33496),s=t(45280),n=t(68644),r=t(96060),o=t(76512),v=function(g){var x=(0,s.yy)(),f=x.act,u=x.data,m=u.connected,c=u.compressor_broke,h=u.turbine_broke,l=u.broken,d=u.door_status,p=u.online,C=u.power,y=u.rpm,b=u.temp;return(0,e.jsx)(o.qo,{width:520,height:440,children:(0,e.jsxs)(o.qo.Content,{scrollable:!0,children:[(0,e.jsx)(n.iG,{title:"Turbine Controller",children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsx)(n.Ce.Item,{label:"Status",children:l&&(0,e.jsxs)(n.kv,{color:"bad",children:["Setup is broken",(0,e.jsx)(n.q,{icon:"sync",onClick:function(){return f("reconnect")},content:"Reconnect"})]})||(0,e.jsx)(n.kv,{color:p?"good":"bad",children:p&&!c&&!h?"Online":"Offline"})}),(0,e.jsx)(n.Ce.Item,{label:"Compressor",children:c&&(0,e.jsx)(n.kv,{color:"bad",children:"Compressor is inoperable."})||h&&(0,e.jsx)(n.kv,{color:"bad",children:"Turbine is inoperable."})||(0,e.jsx)(n.kv,{children:(0,e.jsx)(n.q.Checkbox,{checked:p,content:"Compressor Power",onClick:function(){return f(p?"power-off":"power-on")}})})}),(0,e.jsx)(n.Ce.Item,{label:"Vent Doors",children:(0,e.jsx)(n.q.Checkbox,{checked:d,onClick:function(){return f("doors")},content:d?"Closed":"Open"})})]})}),(0,e.jsx)(n.iG,{title:"Status",children:(0,e.jsxs)(n.Ce,{children:[(0,e.jsxs)(n.Ce.Item,{label:"Turbine Speed",children:[l?"--":(0,e.jsx)(n.Gg,{value:y})," RPM"]}),(0,e.jsxs)(n.Ce.Item,{label:"Internal Temperature",children:[l?"--":(0,e.jsx)(n.Gg,{value:b})," K"]}),(0,e.jsx)(n.Ce.Item,{label:"Generated Power",children:l?"--":(0,e.jsx)(n.Gg,{format:function(O){return(0,r._s)(O)},value:Number(C)})})]})})]})})}},14696:function(M,j,t){"use strict";t.r(j),t.d(j,{Turbolift:function(){return o}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o=function(v){var g=(0,s.yy)(),x=g.act,f=g.data,u=f.floors,m=f.doors_open,c=f.fire_mode;return(0,e.jsx)(r.qo,{width:480,height:260+c*25,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsxs)(n.iG,{title:"Floor Selection",className:c?"Section--elevator--fire":null,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.q,{icon:m?"door-open":"door-closed",content:m?c?"Close Doors (SAFETY OFF)":"Doors Open":"Doors Closed",selected:m&&!c,color:c?"red":null,onClick:function(){return x("toggle_doors")}}),(0,e.jsx)(n.q,{icon:"exclamation-triangle",color:"bad",content:"Emergency Stop",onClick:function(){return x("emergency_stop")}})]}),children:[!c||(0,e.jsx)(n.iG,{className:"Section--elevator--fire",textAlign:"center",title:"FIREFIGHTER MODE ENGAGED"}),(0,e.jsx)(n.Cu,{wrap:"wrap",children:u.map(function(h){return(0,e.jsx)(n.Cu.Item,{basis:"100%",children:(0,e.jsxs)(n.Cu,{align:"center",justify:"space-around",children:[(0,e.jsx)(n.Cu.Item,{basis:"22%",textAlign:"right",mr:"3px",children:h.label||"Floor #"+h.id}),(0,e.jsx)(n.Cu.Item,{basis:"8%",textAlign:"left",children:(0,e.jsx)(n.q,{icon:"circle",color:h.current?"red":h.target?"green":h.queued?"yellow":null,onClick:function(){return x("move_to_floor",{ref:h.ref})}})}),(0,e.jsx)(n.Cu.Item,{basis:"50%",grow:1,children:h.name})]})},h.id)})})]})})})}},67784:function(M,j,t){"use strict";t.r(j),t.d(j,{GenericUplink:function(){return h},Uplink:function(){return u}});var e=t(33496),s=t(49900),n=t(69344),r=t(45280),o=t(68644),v=t(96060),g=t(76512);function x(){return x=Object.assign||function(d){for(var p=1;p").map(function(I){return(0,e.jsx)(o.kv,{children:I},I)})})]})})||O.map(function(I){return(0,e.jsx)(o.q,{icon:"eye",fluid:!0,content:I.name,onClick:function(){return C("view_exploits",{id:I.id})}},I.id)})})},h=function(d){var p,C,y=d.currencyAmount,b=y===void 0?0:y,O=d.currencySymbol,I=O===void 0?"\u20AE":O,_=(0,r.yy)(),A=_.act,P=_.data,T=P.compactMode,R=P.lockable,L=P.categories,N=L===void 0?[]:L,U=(0,n.useState)(""),V=U[0],z=U[1],Q=(0,n.useState)((p=N[0])==null?void 0:p.name),H=Q[0],q=Q[1],Z=(0,s.od)(V,function(G){return G.name+G.desc}),$=V.length>0&&N.flatMap(function(G){return G.items||[]}).filter(Z).filter(function(G,Y){return Y0?"good":"bad",children:[(0,v.cp)(b)," ",I]}),buttons:(0,e.jsxs)(e.Fragment,{children:["Search",(0,e.jsx)(o.EF,{autoFocus:!0,value:V,onInput:function(G,Y){return z(Y)},mx:1}),(0,e.jsx)(o.q,{icon:T?"list":"info",content:T?"Compact":"Detailed",onClick:function(){return A("compact_toggle")}}),!!R&&(0,e.jsx)(o.q,{icon:"lock",content:"Lock",onClick:function(){return A("lock")}})]}),children:(0,e.jsxs)(o.Cu,{children:[V.length===0&&(0,e.jsx)(o.Cu.Item,{children:(0,e.jsx)(o.kZ,{vertical:!0,children:N.map(function(G){var Y;return(0,e.jsxs)(o.kZ.Tab,{selected:G.name===H,onClick:function(){return q(G.name)},children:[G.name," (",((Y=G.items)==null?void 0:Y.length)||0,")"]},G.name)})})}),(0,e.jsxs)(o.Cu.Item,{grow:1,basis:0,children:[$.length===0&&(0,e.jsx)(o.yc,{children:V.length===0?"No items in this category.":"No results found."}),(0,e.jsx)(l,{compactMode:V.length>0||T,currencyAmount:b,currencySymbol:I,items:$})]})]})})},l=function(d){var p=d.compactMode,C=d.currencyAmount,y=d.currencySymbol,b=(0,r.yy)().act,O=(0,r.cv)("hoveredItem",{}),I=O[0],_=O[1],A=I&&I.cost||0,P=d.items.map(function(T){var R=I&&I.name!==T.name,L=C-A=0)&&(N[V]=R[V]);return N}var f=[null,"average","bad"],u={Hold:null,Digest:"red",Absorb:"purple",Unabsorb:"purple",Drain:"orange",Selective:"orange",Shrink:"teal",Grow:"teal","Size Steal":"teal",Heal:"green","Encase In Egg":"blue"},m={Hold:"being held.",Digest:"being digested.",Absorb:"being absorbed.",Unabsorb:"being unabsorbed.",Drain:"being drained.",Selective:"being processed.",Shrink:"being shrunken.",Grow:"being grown.","Size Steal":"having your size stolen.",Heal:"being healed.","Encase In Egg":"being encased in an egg."},c=function(R){var L=(0,r.yy)(),N=L.act,U=L.data,V=(0,r.cv)("panelTabIndex",0),z=V[0],Q=V[1],H=[];return H[0]=(0,e.jsx)(l,{}),H[1]=(0,e.jsx)(P,{}),(0,e.jsx)(v.qo,{width:890,height:660,theme:"abstract",children:(0,e.jsxs)(v.qo.Content,{scrollable:!0,children:[U.unsaved_changes&&(0,e.jsx)(o.yc,{danger:!0,children:(0,e.jsxs)(o.Cu,{children:[(0,e.jsx)(o.Cu.Item,{basis:"90%",children:"Warning: Unsaved Changes!"}),(0,e.jsx)(o.Cu.Item,{children:(0,e.jsx)(o.q,{content:"Save Prefs",icon:"save",onClick:function(){return N("saveprefs")}})}),(0,e.jsx)(o.Cu.Item,{children:(0,e.jsx)(o.q,{content:"Save Prefs & Export Selected Belly",icon:"download",onClick:function(){N("saveprefs"),N("exportpanel")}})})]})})||null,(0,e.jsx)(h,{}),(0,e.jsxs)(o.kZ,{children:[(0,e.jsxs)(o.kZ.Tab,{selected:z===0,onClick:function(){return Q(0)},children:["Bellies",(0,e.jsx)(o.GW,{name:"list",ml:.5})]}),(0,e.jsxs)(o.kZ.Tab,{selected:z===1,onClick:function(){return Q(1)},children:["Preferences",(0,e.jsx)(o.GW,{name:"user-cog",ml:.5})]})]}),H[z]||"Error"]})})},h=function(R){var L=(0,r.yy)(),N=L.act,U=L.data,V=U.inside,z=V.absorbed,Q=V.belly_name,H=V.belly_mode,q=V.desc,Z=V.pred,$=V.contents,G=V.ref;return Q?(0,e.jsxs)(o.iG,{title:"Inside",children:[(0,e.jsxs)(o.kv,{color:"green",inline:!0,children:["You are currently ",z?"absorbed into":"inside"]}),"\xA0",(0,e.jsxs)(o.kv,{color:"yellow",inline:!0,children:[Z,"'s"]}),"\xA0",(0,e.jsx)(o.kv,{color:"red",inline:!0,children:Q}),"\xA0",(0,e.jsx)(o.kv,{color:"yellow",inline:!0,children:"and you are"}),"\xA0",(0,e.jsx)(o.kv,{color:u[H],inline:!0,children:m[H]}),"\xA0",(0,e.jsx)(o.kv,{color:"label",children:q}),$.length&&(0,e.jsx)(o.Uv,{title:"Belly Contents",children:(0,e.jsx)(A,{contents:$,belly:G})})||"There is nothing else around you."]}):(0,e.jsx)(o.iG,{title:"Inside",children:"You aren't inside anyone."})},l=function(R){var L=(0,r.yy)(),N=L.act,U=L.data,V=U.our_bellies,z=U.selected;return(0,e.jsxs)(o.Cu,{children:[(0,e.jsx)(o.Cu.Item,{shrink:!0,children:(0,e.jsx)(o.iG,{title:"My Bellies",scollable:!0,children:(0,e.jsxs)(o.kZ,{vertical:!0,children:[(0,e.jsxs)(o.kZ.Tab,{onClick:function(){return N("newbelly")},children:["New",(0,e.jsx)(o.GW,{name:"plus",ml:.5})]}),(0,e.jsxs)(o.kZ.Tab,{onClick:function(){return N("exportpanel")},children:["Export",(0,e.jsx)(o.GW,{name:"file-export",ml:.5})]}),(0,e.jsx)(o.c1,{}),V.map(function(Q){return(0,e.jsx)(o.kZ.Tab,{selected:Q.selected,textColor:u[Q.digest_mode],onClick:function(){return N("bellypick",{bellypick:Q.ref})},children:(0,e.jsxs)(o.kv,{inline:!0,textColor:Q.selected&&u[Q.digest_mode]||null,children:[Q.name," (",Q.contents,")"]})},Q.name)})]})})}),(0,e.jsx)(o.Cu.Item,{grow:!0,children:z&&(0,e.jsx)(o.iG,{title:z.belly_name,children:(0,e.jsx)(d,{belly:z})})})]})},d=function(R){var L=(0,r.yy)().act,N=R.belly,U=N.contents,V=(0,r.cv)("bellyTabIndex",0),z=V[0],Q=V[1],H=[];return H[0]=(0,e.jsx)(p,{belly:N}),H[1]=(0,e.jsx)(C,{belly:N}),H[2]=(0,e.jsx)(y,{belly:N}),H[3]=(0,e.jsx)(O,{belly:N}),H[4]=(0,e.jsx)(I,{belly:N}),H[5]=(0,e.jsx)(_,{belly:N}),H[6]=(0,e.jsx)(A,{outside:!0,contents:U}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(o.kZ,{children:[(0,e.jsx)(o.kZ.Tab,{selected:z===0,onClick:function(){return Q(0)},children:"Controls"}),(0,e.jsx)(o.kZ.Tab,{selected:z===1,onClick:function(){return Q(1)},children:"Descriptions"}),(0,e.jsx)(o.kZ.Tab,{selected:z===2,onClick:function(){return Q(2)},children:"Options"}),(0,e.jsx)(o.kZ.Tab,{selected:z===3,onClick:function(){return Q(3)},children:"Sounds"}),(0,e.jsx)(o.kZ.Tab,{selected:z===4,onClick:function(){return Q(4)},children:"Visuals"}),(0,e.jsx)(o.kZ.Tab,{selected:z===5,onClick:function(){return Q(5)},children:"Interactions"}),(0,e.jsxs)(o.kZ.Tab,{selected:z===6,onClick:function(){return Q(6)},children:["Contents (",U.length,")"]})]}),H[z]||"Error"]})},p=function(R){var L=(0,r.yy)().act,N=R.belly,U=N.belly_name,V=N.mode,z=N.item_mode,Q=N.addons;return(0,e.jsxs)(o.Ce,{children:[(0,e.jsx)(o.Ce.Item,{label:"Name",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.q,{icon:"arrow-up",tooltipPosition:"left",tooltip:"Move this belly tab up.",onClick:function(){return L("move_belly",{dir:-1})}}),(0,e.jsx)(o.q,{icon:"arrow-down",tooltipPosition:"left",tooltip:"Move this belly tab down.",onClick:function(){return L("move_belly",{dir:1})}})]}),children:(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_name"})},content:U})}),(0,e.jsx)(o.Ce.Item,{label:"Mode",children:(0,e.jsx)(o.q,{color:u[V],onClick:function(){return L("set_attribute",{attribute:"b_mode"})},content:V})}),(0,e.jsxs)(o.Ce.Item,{label:"Mode Addons",children:[Q.length&&Q.join(", ")||"None",(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_addons"})},ml:1,icon:"plus"})]}),(0,e.jsx)(o.Ce.Item,{label:"Item Mode",children:(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_item_mode"})},content:z})}),(0,e.jsx)(o.Ce.Item,{basis:"100%",mt:1,children:(0,e.jsx)(o.q.Confirm,{fluid:!0,icon:"exclamation-triangle",confirmIcon:"trash",color:"red",content:"Delete Belly",confirmContent:"This is irreversable!",onClick:function(){return L("set_attribute",{attribute:"b_del"})}})})]})},C=function(R){var L=(0,r.yy)().act,N=R.belly,U=N.verb,V=N.release_verb,z=N.desc,Q=N.absorbed_desc;return(0,e.jsxs)(o.Ce,{children:[(0,e.jsx)(o.Ce.Item,{label:"Description",buttons:(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_desc"})},icon:"pen"}),children:z}),(0,e.jsx)(o.Ce.Item,{label:"Description (Absorbed)",buttons:(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_absorbed_desc"})},icon:"pen"}),children:Q}),(0,e.jsx)(o.Ce.Item,{label:"Vore Verb",children:(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_verb"})},content:U})}),(0,e.jsx)(o.Ce.Item,{label:"Release Verb",children:(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_release_verb"})},content:V})}),(0,e.jsxs)(o.Ce.Item,{label:"Examine Messages",children:[(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"em"})},content:"Examine Message (when full)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"ema"})},content:"Examine Message (with absorbed victims)"})]}),(0,e.jsxs)(o.Ce.Item,{label:"Struggle Messages",children:[(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"smo"})},content:"Struggle Message (outside)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"smi"})},content:"Struggle Message (inside)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"asmo"})},content:"Absorbed Struggle Message (outside)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"asmi"})},content:"Absorbed Struggle Message (inside)"})]}),(0,e.jsxs)(o.Ce.Item,{label:"Escape Messages",children:[(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"escap"})},content:"Escape Attempt Message (to prey)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"escao"})},content:"Escape Attempt Message (to you)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"escp"})},content:"Escape Message (to prey)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"esco"})},content:"Escape Message (to you)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"escout"})},content:"Escape Message (outside)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"escip"})},content:"Escape Item Message (to prey)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"escio"})},content:"Escape Item Message (to you)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"esciout"})},content:"Escape Item Message (outside)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"escfp"})},content:"Escape Fail Message (to prey)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"escfo"})},content:"Escape Fail Message (to you)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"aescap"})},content:"Absorbed Escape Attempt Message (to prey)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"aescao"})},content:"Absorbed Escape Attempt Message (to you)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"aescp"})},content:"Absorbed Escape Message (to prey)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"aesco"})},content:"Absorbed Escape Message (to you)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"aescout"})},content:"Absorbed Escape Message (outside)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"aescfp"})},content:"Absorbed Escape Fail Message (to prey)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"aescfo"})},content:"Absorbed Escape Fail Message (to you)"})]}),(0,e.jsxs)(o.Ce.Item,{label:"Transfer Messages",children:[(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"trnspp"})},content:"Primary Transfer Message (to prey)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"trnspo"})},content:"Primary Transfer Message (to you)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"trnssp"})},content:"Secondary Transfer Message (to prey)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"trnsso"})},content:"Secondary Transfer Message (to you)"})]}),(0,e.jsxs)(o.Ce.Item,{label:"Interaction Chance Messages",children:[(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"stmodp"})},content:"Interaction Chance Digest Message (to prey)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"stmodo"})},content:"Interaction Chance Digest Message (to you)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"stmoap"})},content:"Interaction Chance Absorb Message (to prey)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"stmoao"})},content:"Interaction Chance Absorb Message (to you)"})]}),(0,e.jsxs)(o.Ce.Item,{label:"Bellymode Messages",children:[(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"dmp"})},content:"Digest Message (to prey)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"dmo"})},content:"Digest Message (to you)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"amp"})},content:"Absorb Message (to prey)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"amo"})},content:"Absorb Message (to you)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"uamp"})},content:"Unabsorb Message (to prey)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"uamo"})},content:"Unabsorb Message (to you)"})]}),(0,e.jsxs)(o.Ce.Item,{label:"Idle Messages",children:[(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"im_hold"})},content:"Idle Messages (Hold)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"im_holdabsorbed"})},content:"Idle Messages (Hold Absorbed)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"im_digest"})},content:"Idle Messages (Digest)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"im_absorb"})},content:"Idle Messages (Absorb)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"im_unabsorb"})},content:"Idle Messages (Unabsorb)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"im_drain"})},content:"Idle Messages (Drain)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"im_heal"})},content:"Idle Messages (Heal)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"im_steal"})},content:"Idle Messages (Size Steal)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"im_shrink"})},content:"Idle Messages (Shrink)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"im_grow"})},content:"Idle Messages (Grow)"}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"im_egg"})},content:"Idle Messages (Encase In Egg)"})]}),(0,e.jsx)(o.Ce.Item,{label:"Reset Messages",children:(0,e.jsx)(o.q,{color:"red",onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"reset"})},content:"Reset Messages"})})]})},y=function(R){var L=(0,r.yy)(),N=L.act,U=L.data,V=U.host_mobtype,z=V.is_cyborg,Q=V.is_vore_simple_mob,H=R.belly,q=H.can_taste,Z=H.nutrition_percent,$=H.digest_brute,G=H.digest_burn,Y=H.digest_oxy,ee=H.digest_tox,ae=H.digest_clone,re=H.bulge_size,le=H.display_absorbed_examine,se=H.shrink_grow_size,fe=H.emote_time,de=H.emote_active,he=H.contaminates,me=H.contaminate_flavor,Ie=H.contaminate_color,Pe=H.egg_type,Me=H.selective_preference,Be=H.save_digest_mode,He=H.eating_privacy_local,Ke=H.silicon_belly_overlay_preference,vt=H.belly_mob_mult,ct=H.belly_item_mult,Fe=H.belly_overall_mult;return(0,e.jsxs)(o.Cu,{wrap:"wrap",children:[(0,e.jsxs)(o.Cu.Item,{basis:"49%",grow:1,children:[(0,e.jsxs)(o.Ce,{children:[(0,e.jsx)(o.Ce.Item,{label:"Can Taste",children:(0,e.jsx)(o.q,{onClick:function(){return N("set_attribute",{attribute:"b_tastes"})},icon:q?"toggle-on":"toggle-off",selected:q,content:q?"Yes":"No"})}),(0,e.jsx)(o.Ce.Item,{label:"Contaminates",children:(0,e.jsx)(o.q,{onClick:function(){return N("set_attribute",{attribute:"b_contaminate"})},icon:he?"toggle-on":"toggle-off",selected:he,content:he?"Yes":"No"})}),he&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.Ce.Item,{label:"Contamination Flavor",children:(0,e.jsx)(o.q,{onClick:function(){return N("set_attribute",{attribute:"b_contamination_flavor"})},icon:"pen",content:me})}),(0,e.jsx)(o.Ce.Item,{label:"Contamination Color",children:(0,e.jsx)(o.q,{onClick:function(){return N("set_attribute",{attribute:"b_contamination_color"})},icon:"pen",content:(0,n.Yj)(Ie)})})]})||null,(0,e.jsx)(o.Ce.Item,{label:"Nutritional Gain",children:(0,e.jsx)(o.q,{onClick:function(){return N("set_attribute",{attribute:"b_nutritionpercent"})},content:Z+"%"})}),(0,e.jsx)(o.Ce.Item,{label:"Required Examine Size",children:(0,e.jsx)(o.q,{onClick:function(){return N("set_attribute",{attribute:"b_bulge_size"})},content:re*100+"%"})}),(0,e.jsx)(o.Ce.Item,{label:"Display Absorbed Examines",children:(0,e.jsx)(o.q,{onClick:function(){return N("set_attribute",{attribute:"b_display_absorbed_examine"})},icon:le?"toggle-on":"toggle-off",selected:le,content:le?"True":"False"})}),(0,e.jsx)(o.Ce.Item,{label:"Toggle Vore Privacy",children:(0,e.jsx)(o.q,{onClick:function(){return N("set_attribute",{attribute:"b_eating_privacy"})},content:(0,n.Yj)(He)})}),(0,e.jsx)(o.Ce.Item,{label:"Save Digest Mode",children:(0,e.jsx)(o.q,{onClick:function(){return N("set_attribute",{attribute:"b_save_digest_mode"})},icon:Be?"toggle-on":"toggle-off",selected:Be,content:Be?"True":"False"})})]}),(0,e.jsx)(b,{belly:H})]}),(0,e.jsx)(o.Cu.Item,{basis:"49%",grow:1,children:(0,e.jsxs)(o.Ce,{children:[(0,e.jsx)(o.Ce.Item,{label:"Idle Emotes",children:(0,e.jsx)(o.q,{onClick:function(){return N("set_attribute",{attribute:"b_emoteactive"})},icon:de?"toggle-on":"toggle-off",selected:de,content:de?"Active":"Inactive"})}),(0,e.jsx)(o.Ce.Item,{label:"Idle Emote Delay",children:(0,e.jsx)(o.q,{onClick:function(){return N("set_attribute",{attribute:"b_emotetime"})},content:fe+" seconds"})}),(0,e.jsx)(o.Ce.Item,{label:"Digest Brute Damage",children:(0,e.jsx)(o.q,{onClick:function(){return N("set_attribute",{attribute:"b_brute_dmg"})},content:$})}),(0,e.jsx)(o.Ce.Item,{label:"Digest Burn Damage",children:(0,e.jsx)(o.q,{onClick:function(){return N("set_attribute",{attribute:"b_burn_dmg"})},content:G})}),(0,e.jsx)(o.Ce.Item,{label:"Digest Suffocation Damage",children:(0,e.jsx)(o.q,{onClick:function(){return N("set_attribute",{attribute:"b_oxy_dmg"})},content:Y})}),(0,e.jsx)(o.Ce.Item,{label:"Digest Toxins Damage",children:(0,e.jsx)(o.q,{onClick:function(){return N("set_attribute",{attribute:"b_tox_dmg"})},content:ee})}),(0,e.jsx)(o.Ce.Item,{label:"Digest Clone Damage",children:(0,e.jsx)(o.q,{onClick:function(){return N("set_attribute",{attribute:"b_clone_dmg"})},content:ae})}),(0,e.jsx)(o.Ce.Item,{label:"Shrink/Grow Size",children:(0,e.jsx)(o.q,{onClick:function(){return N("set_attribute",{attribute:"b_grow_shrink"})},content:se*100+"%"})}),(0,e.jsx)(o.Ce.Item,{label:"Egg Type",children:(0,e.jsx)(o.q,{onClick:function(){return N("set_attribute",{attribute:"b_egg_type"})},icon:"pen",content:(0,n.Yj)(Pe)})}),(0,e.jsx)(o.Ce.Item,{label:"Selective Mode Preference",children:(0,e.jsx)(o.q,{onClick:function(){return N("set_attribute",{attribute:"b_selective_mode_pref_toggle"})},content:(0,n.Yj)(Me)})})]})})]})},b=function(R){var L=(0,r.yy)(),N=L.act,U=L.data,V=U.host_mobtype,z=V.is_cyborg,Q=V.is_vore_simple_mob,H=R.belly,q=H.silicon_belly_overlay_preference,Z=H.belly_mob_mult,$=H.belly_item_mult,G=H.belly_overall_mult;return z?(0,e.jsx)(o.iG,{title:"Cyborg Controls",width:"80%",children:(0,e.jsxs)(o.Ce,{children:[(0,e.jsx)(o.Ce.Item,{label:"Toggle Belly Overlay Mode",children:(0,e.jsx)(o.q,{onClick:function(){return N("set_attribute",{attribute:"b_silicon_belly"})},content:(0,n.Yj)(q)})}),(0,e.jsx)(o.Ce.Item,{label:"Mob Vorebelly Size Mult",children:(0,e.jsx)(o.q,{onClick:function(){return N("set_attribute",{attribute:"b_belly_mob_mult"})},content:Z})}),(0,e.jsx)(o.Ce.Item,{label:"Item Vorebelly Size Mult",children:(0,e.jsx)(o.q,{onClick:function(){return N("set_attribute",{attribute:"b_belly_item_mult"})},content:$})}),(0,e.jsx)(o.Ce.Item,{label:"Belly Size Multiplier",children:(0,e.jsx)(o.q,{onClick:function(){return N("set_attribute",{attribute:"b_belly_overall_mult"})},content:G})})]})}):Q?(0,e.jsx)(o.Ce,{children:(0,e.jsx)(o.Ce.Item,{})}):(0,e.jsx)(o.Ce,{children:(0,e.jsx)(o.Ce.Item,{})})},O=function(R){var L=(0,r.yy)().act,N=R.belly,U=N.is_wet,V=N.wet_loop,z=N.fancy,Q=N.sound,H=N.release_sound;return(0,e.jsx)(o.Cu,{wrap:"wrap",children:(0,e.jsx)(o.Cu.Item,{basis:"49%",grow:1,children:(0,e.jsxs)(o.Ce,{children:[(0,e.jsx)(o.Ce.Item,{label:"Fleshy Belly",children:(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_wetness"})},icon:U?"toggle-on":"toggle-off",selected:U,content:U?"Yes":"No"})}),(0,e.jsx)(o.Ce.Item,{label:"Internal Loop",children:(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_wetloop"})},icon:V?"toggle-on":"toggle-off",selected:V,content:V?"Yes":"No"})}),(0,e.jsx)(o.Ce.Item,{label:"Use Fancy Sounds",children:(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_fancy_sound"})},icon:z?"toggle-on":"toggle-off",selected:z,content:z?"Yes":"No"})}),(0,e.jsxs)(o.Ce.Item,{label:"Vore Sound",children:[(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_sound"})},content:Q}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_soundtest"})},icon:"volume-up"})]}),(0,e.jsxs)(o.Ce.Item,{label:"Release Sound",children:[(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_release"})},content:H}),(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_releasesoundtest"})},icon:"volume-up"})]})]})})})},I=function(R){var L=(0,r.yy)().act,N=R.belly,U=N.belly_fullscreen,V=N.possible_fullscreens,z=N.disable_hud,Q=N.belly_fullscreen_color,H=N.belly_fullscreen_color_secondary,q=N.belly_fullscreen_color_trinary,Z=N.mapRef,$=N.colorization_enabled;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.iG,{title:"Belly Fullscreens Preview and Coloring",children:(0,e.jsxs)(o.Cu,{direction:"row",children:[(0,e.jsx)(o.kv,{backgroundColor:Q,width:"20px",height:"20px"}),(0,e.jsx)(o.q,{icon:"eye-dropper",onClick:function(){return L("set_attribute",{attribute:"b_fullscreen_color",val:null})},children:"Select Primary Color"}),(0,e.jsx)(o.kv,{backgroundColor:H,width:"20px",height:"20px"}),(0,e.jsx)(o.q,{icon:"eye-dropper",onClick:function(){return L("set_attribute",{attribute:"b_fullscreen_color_secondary",val:null})},children:"Select Secondary Color"}),(0,e.jsx)(o.kv,{backgroundColor:q,width:"20px",height:"20px"}),(0,e.jsx)(o.q,{icon:"eye-dropper",onClick:function(){return L("set_attribute",{attribute:"b_fullscreen_color_trinary",val:null})},children:"Select Trinary Color"}),(0,e.jsx)(o.Ce.Item,{label:"Enable Coloration",children:(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_colorization_enabled"})},icon:$?"toggle-on":"toggle-off",selected:$,content:$?"Yes":"No"})}),(0,e.jsx)(o.Ce.Item,{label:"Preview Belly",children:(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_preview_belly"})},content:"Preview"})}),(0,e.jsx)(o.Ce.Item,{label:"Clear Preview",children:(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_clear_preview"})},content:"Clear"})})]})}),(0,e.jsxs)(o.iG,{children:[(0,e.jsx)(o.iG,{title:"Vore FX",children:(0,e.jsx)(o.Ce,{children:(0,e.jsx)(o.Ce.Item,{label:"Disable Prey HUD",children:(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_disable_hud"})},icon:z?"toggle-on":"toggle-off",selected:z,content:z?"Yes":"No"})})})}),(0,e.jsxs)(o.iG,{title:"Belly Fullscreens Styles",width:"800px",children:["Belly styles:",(0,e.jsx)(o.q,{fluid:!0,selected:U===""||U===null,onClick:function(){return L("set_attribute",{attribute:"b_fullscreen",val:null})},children:"Disabled"}),Object.keys(V).map(function(G,Y){return(0,e.jsx)("span",{style:{width:"256px"},children:(0,e.jsx)(o.q,{width:"256px",height:"256px",selected:G===U,onClick:function(){return L("set_attribute",{attribute:"b_fullscreen",val:G})},children:(0,e.jsx)(o.kv,{className:(0,s.iE)(["vore240x240",G]),style:{transform:"translate(0%, 4%)"}})},G)},Y)})]})]})]})},_=function(R){var L=(0,r.yy)().act,N=R.belly,U=N.escapable,V=N.interacts;return(0,e.jsx)(o.iG,{title:"Belly Interactions",buttons:(0,e.jsx)(o.q,{onClick:function(){return L("set_attribute",{attribute:"b_escapable"})},icon:U?"toggle-on":"toggle-off",selected:U,content:U?"Interactions On":"Interactions Off"}),children:U?(0,e.jsxs)(o.Ce,{children:[(0,e.jsx)(o.Ce.Item,{label:"Escape Chance",children:(0,e.jsx)(o.q,{content:V.escapechance+"%",onClick:function(){return L("set_attribute",{attribute:"b_escapechance"})}})}),(0,e.jsx)(o.Ce.Item,{label:"Absorbed Escape Chance",children:(0,e.jsx)(o.q,{content:V.escapechance_absorbed+"%",onClick:function(){return L("set_attribute",{attribute:"b_escapechance_absorbed"})}})}),(0,e.jsx)(o.Ce.Item,{label:"Escape Time",children:(0,e.jsx)(o.q,{content:V.escapetime/10+"s",onClick:function(){return L("set_attribute",{attribute:"b_escapetime"})}})}),(0,e.jsx)(o.Ce.Divider,{}),(0,e.jsx)(o.Ce.Item,{label:"Transfer Chance",children:(0,e.jsx)(o.q,{content:V.transferchance+"%",onClick:function(){return L("set_attribute",{attribute:"b_transferchance"})}})}),(0,e.jsx)(o.Ce.Item,{label:"Transfer Location",children:(0,e.jsx)(o.q,{content:V.transferlocation?V.transferlocation:"Disabled",onClick:function(){return L("set_attribute",{attribute:"b_transferlocation"})}})}),(0,e.jsx)(o.Ce.Divider,{}),(0,e.jsx)(o.Ce.Item,{label:"Secondary Transfer Chance",children:(0,e.jsx)(o.q,{content:V.transferchance_secondary+"%",onClick:function(){return L("set_attribute",{attribute:"b_transferchance_secondary"})}})}),(0,e.jsx)(o.Ce.Item,{label:"Secondary Transfer Location",children:(0,e.jsx)(o.q,{content:V.transferlocation_secondary?V.transferlocation_secondary:"Disabled",onClick:function(){return L("set_attribute",{attribute:"b_transferlocation_secondary"})}})}),(0,e.jsx)(o.Ce.Divider,{}),(0,e.jsx)(o.Ce.Item,{label:"Absorb Chance",children:(0,e.jsx)(o.q,{content:V.absorbchance+"%",onClick:function(){return L("set_attribute",{attribute:"b_absorbchance"})}})}),(0,e.jsx)(o.Ce.Item,{label:"Digest Chance",children:(0,e.jsx)(o.q,{content:V.digestchance+"%",onClick:function(){return L("set_attribute",{attribute:"b_digestchance"})}})})]}):"These options only display while interactions are turned on."})},A=function(R){var L=(0,r.yy)(),N=L.act,U=L.data,V=U.show_pictures,z=R.contents,Q=R.belly,H=R.outside,q=H===void 0?!1:H;return(0,e.jsxs)(e.Fragment,{children:[q&&(0,e.jsx)(o.q,{textAlign:"center",fluid:!0,mb:1,onClick:function(){return N("pick_from_outside",{pickall:!0})},children:"All"})||null,V&&(0,e.jsx)(o.Cu,{wrap:"wrap",justify:"center",align:"center",children:z.map(function(Z){return(0,e.jsxs)(o.Cu.Item,{basis:"33%",children:[(0,e.jsx)(o.q,{width:"64px",color:Z.absorbed?"purple":f[Z.stat],style:{"vertical-align":"middle","margin-right":"5px","border-radius":"20px"},onClick:function(){return N(Z.outside?"pick_from_outside":"pick_from_inside",{pick:Z.ref,belly:Q})},children:(0,e.jsx)("img",{src:"data:image/jpeg;base64, "+Z.icon,width:"64px",height:"64px",style:{"-ms-interpolation-mode":"nearest-neighbor","margin-left":"-5px"}})}),Z.name]},Z.name)})})||(0,e.jsx)(o.Ce,{children:z.map(function(Z){return(0,e.jsx)(o.Ce.Item,{label:Z.name,children:(0,e.jsx)(o.q,{fluid:!0,mt:-1,mb:-1,color:Z.absorbed?"purple":f[Z.stat],onClick:function(){return N(Z.outside?"pick_from_outside":"pick_from_inside",{pick:Z.ref,belly:Q})},children:"Interact"})},Z.ref)})})]})},P=function(R){var L=(0,r.yy)(),N=L.act,U=L.data,V=U.prefs,z=V.digestable,Q=V.devourable,H=V.resizable,q=V.feeding,Z=V.absorbable,$=V.digest_leave_remains,G=V.allowmobvore,Y=V.permit_healbelly,ee=V.show_vore_fx,ae=V.can_be_drop_prey,re=V.can_be_drop_pred,le=V.allow_inbelly_spawning,se=V.allow_spontaneous_tf,fe=V.step_mechanics_active,de=V.pickup_mechanics_active,he=V.noisy,me=V.drop_vore,Ie=V.stumble_vore,Pe=V.slip_vore,Me=V.throw_vore,Be=V.food_vore,He=V.nutrition_message_visible,Ke=V.weight_message_visible,vt=V.eating_privacy_global,ct=U.show_pictures,Fe={digestion:{action:"toggle_digest",test:z,tooltip:{main:"This button is for those who don't like being digested. It can make you undigestable.",enable:"Click here to allow digestion.",disable:"Click here to prevent digestion."},content:{enabled:"Digestion Allowed",disabled:"No Digestion"}},absorbable:{action:"toggle_absorbable",test:Z,tooltip:{main:"This button allows preds to know whether you prefer or don't prefer to be absorbed.",enable:"Click here to allow being absorbed.",disable:"Click here to disallow being absorbed."},content:{enabled:"Absorption Allowed",disabled:"No Absorption"}},devour:{action:"toggle_devour",test:Q,tooltip:{main:"This button is to toggle your ability to be devoured by others.",enable:"Click here to allow being devoured.",disable:"Click here to prevent being devoured."},content:{enabled:"Devouring Allowed",disabled:"No Devouring"}},mobvore:{action:"toggle_mobvore",test:G,tooltip:{main:"This button is for those who don't like being eaten by mobs.",enable:"Click here to allow being eaten by mobs.",disable:"Click here to prevent being eaten by mobs."},content:{enabled:"Mobs eating you allowed",disabled:"No Mobs eating you"}},feed:{action:"toggle_feed",test:q,tooltip:{main:"This button is to toggle your ability to be fed to or by others vorishly.",enable:"Click here to allow being fed to/by other people.",disable:"Click here to prevent being fed to/by other people."},content:{enabled:"Feeding Allowed",disabled:"No Feeding"}},healbelly:{action:"toggle_healbelly",test:Y,tooltip:{main:"This button is for those who don't like healbelly used on them as a mechanic. It does not affect anything, but is displayed under mechanical prefs for ease of quick checks.",enable:"Click here to allow being heal-bellied.",disable:"Click here to prevent being heal-bellied."},content:{enabled:"Heal-bellies Allowed",disabled:"No Heal-bellies"}},dropnom_prey:{action:"toggle_dropnom_prey",test:ae,tooltip:{main:"This toggle is for spontaneous, environment related vore as prey, including drop-noms, teleporters, etc.",enable:"Click here to allow being spontaneous prey.",disable:"Click here to prevent being spontaneous prey."},content:{enabled:"Spontaneous Prey Enabled",disabled:"Spontaneous Prey Disabled"}},dropnom_pred:{action:"toggle_dropnom_pred",test:re,tooltip:{main:"This toggle is for spontaneous, environment related vore as a predator, including drop-noms, teleporters, etc.",enable:"Click here to allow being spontaneous pred.",disable:"Click here to prevent being spontaneous pred."},content:{enabled:"Spontaneous Pred Enabled",disabled:"Spontaneous Pred Disabled"}},toggle_drop_vore:{action:"toggle_drop_vore",test:me,tooltip:{main:"Allows for dropnom spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for dropnoms.",disable:"Click here to disable dropnoms."},content:{enabled:"Drop Noms Enabled",disabled:"Drop Noms Disabled"}},toggle_slip_vore:{action:"toggle_slip_vore",test:Pe,tooltip:{main:"Allows for slip related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for slip vore.",disable:"Click here to disable slip vore."},content:{enabled:"Slip Vore Enabled",disabled:"Slip Vore Disabled"}},toggle_stumble_vore:{action:"toggle_stumble_vore",test:Ie,tooltip:{main:"Allows for stumble related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for stumble vore.",disable:"Click here to disable stumble vore."},content:{enabled:"Stumble Vore Enabled",disabled:"Stumble Vore Disabled"}},toggle_throw_vore:{action:"toggle_throw_vore",test:Me,tooltip:{main:"Allows for throw related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for throw vore.",disable:"Click here to disable throw vore."},content:{enabled:"Throw Vore Enabled",disabled:"Throw Vore Disabled"}},toggle_food_vore:{action:"toggle_food_vore",test:Be,tooltip:{main:"Allows for food related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for food vore.",disable:"Click here to disable food vore."},content:{enabled:"Food Vore Enabled",disabled:"Food Vore Disabled"}},inbelly_spawning:{action:"toggle_allow_inbelly_spawning",test:le,tooltip:{main:"This toggle is ghosts being able to spawn in one of your bellies. You will have to confirm again when they attempt to.",enable:"Click here to allow prey to spawn in you.",disable:"Click here to prevent prey from spawning in you."},content:{enabled:"Inbelly Spawning Allowed",disabled:"Inbelly Spawning Forbidden"}},noisy:{action:"toggle_noisy",test:he,tooltip:{main:"Toggle audible hunger noises.",enable:"Click here to turn on hunger noises.",disable:"Click here to turn off hunger noises."},content:{enabled:"Hunger Noises Enabled",disabled:"Hunger Noises Disabled"}},resize:{action:"toggle_resize",test:H,tooltip:{main:"This button is to toggle your ability to be resized by others.",enable:"Click here to allow being resized.",disable:"Click here to prevent being resized."},content:{enabled:"Resizing Allowed",disabled:"No Resizing"}},steppref:{action:"toggle_steppref",test:fe,tooltip:{main:"",enable:"You will not participate in step mechanics. Click to enable step mechanics.",disable:"This setting controls whether or not you participate in size-based step mechanics. Includes both stepping on others, as well as getting stepped on. Click to disable step mechanics."},content:{enabled:"Step Mechanics Enabled",disabled:"Step Mechanics Disabled"}},vore_fx:{action:"toggle_fx",test:ee,tooltip:{main:"",enable:"Regardless of Predator Setting, you will not see their FX settings. Click this to enable showing FX.",disable:"This setting controls whether or not a pred is allowed to mess with your HUD and fullscreen overlays. Click to disable all FX."},content:{enabled:"Show Vore FX",disabled:"Do Not Show Vore FX"}},remains:{action:"toggle_leaveremains",test:$,tooltip:{main:"",enable:"Regardless of Predator Setting, you will not leave remains behind. Click this to allow leaving remains.",disable:"Your Predator must have this setting enabled in their belly modes to allow remains to show up, if they do not, they will not leave your remains behind, even with this on. Click to disable remains."},content:{enabled:"Allow Leaving Remains",disabled:"Do Not Allow Leaving Remains"}},pickuppref:{action:"toggle_pickuppref",test:de,tooltip:{main:"",enable:"You will not participate in pick-up mechanics. Click this to allow picking up/being picked up.",disable:"Allows macros to pick you up into their hands, and you to pick up micros. Click to disable pick-up mechanics."},content:{enabled:"Pick-up Mechanics Enabled",disabled:"Pick-up Mechanics Disabled"}},spontaneous_tf:{action:"toggle_allow_spontaneous_tf",test:se,tooltip:{main:"This toggle is for spontaneous or environment related transformation as a victim, such as via chemicals.",enable:"Click here to allow being spontaneously transformed.",disable:"Click here to disable being spontaneously transformed."},content:{enabled:"Spontaneous TF Enabled",disabled:"Spontaneous TF Disabled"}},examine_nutrition:{action:"toggle_nutrition_ex",test:He,tooltip:{main:"",enable:"Click here to enable nutrition messages.",disable:"Click here to disable nutrition messages."},content:{enabled:"Examine Nutrition Messages Active",disabled:"Examine Nutrition Messages Inactive"}},examine_weight:{action:"toggle_weight_ex",test:Ke,tooltip:{main:"",enable:"Click here to enable weight messages.",disable:"Click here to disable weight messages."},content:{enabled:"Examine Weight Messages Active",disabled:"Examine Weight Messages Inactive"}},eating_privacy_global:{action:"toggle_global_privacy",test:vt,tooltip:{main:"Sets default belly behaviour for vorebellies for announcing ingesting or expelling prey Overwritten by belly-specific preferences if set.",enable:" Click here to turn your messages subtle",disable:" Click here to turn your messages loud"},content:{enabled:"Global Vore Privacy: Subtle",disabled:"Global Vore Privacy: Loud"}}};return(0,e.jsxs)(o.iG,{title:"Mechanical Preferences",buttons:(0,e.jsxs)(o.q,{icon:"eye",selected:ct,onClick:function(){return N("show_pictures")},children:["Contents Preference: ",ct?"Show Pictures":"Show List"]}),children:[(0,e.jsxs)(o.Cu,{spacing:1,wrap:"wrap",justify:"center",children:[(0,e.jsx)(o.Cu.Item,{basis:"32%",children:(0,e.jsx)(T,{spec:Fe.digestion})}),(0,e.jsx)(o.Cu.Item,{basis:"32%",grow:1,children:(0,e.jsx)(T,{spec:Fe.absorbable})}),(0,e.jsx)(o.Cu.Item,{basis:"32%",children:(0,e.jsx)(T,{spec:Fe.devour})}),(0,e.jsx)(o.Cu.Item,{basis:"32%",children:(0,e.jsx)(T,{spec:Fe.mobvore})}),(0,e.jsx)(o.Cu.Item,{basis:"32%",grow:1,children:(0,e.jsx)(T,{spec:Fe.feed})}),(0,e.jsx)(o.Cu.Item,{basis:"32%",children:(0,e.jsx)(T,{spec:Fe.healbelly,tooltipPosition:"top"})}),(0,e.jsx)(o.Cu.Item,{basis:"32%",children:(0,e.jsx)(T,{spec:Fe.dropnom_prey})}),(0,e.jsx)(o.Cu.Item,{basis:"32%",grow:1,children:(0,e.jsx)(T,{spec:Fe.dropnom_pred})}),(0,e.jsx)(o.Cu.Item,{basis:"32%",children:(0,e.jsx)(T,{spec:Fe.toggle_drop_vore})}),(0,e.jsx)(o.Cu.Item,{basis:"32%",children:(0,e.jsx)(T,{spec:Fe.toggle_slip_vore})}),(0,e.jsx)(o.Cu.Item,{basis:"32%",grow:1,children:(0,e.jsx)(T,{spec:Fe.toggle_stumble_vore})}),(0,e.jsx)(o.Cu.Item,{basis:"32%",children:(0,e.jsx)(T,{spec:Fe.toggle_throw_vore})}),(0,e.jsx)(o.Cu.Item,{basis:"32%",children:(0,e.jsx)(T,{spec:Fe.toggle_food_vore})}),(0,e.jsx)(o.Cu.Item,{basis:"32%",grow:1,children:(0,e.jsx)(T,{spec:Fe.inbelly_spawning})}),(0,e.jsx)(o.Cu.Item,{basis:"32%",children:(0,e.jsx)(T,{spec:Fe.noisy})}),(0,e.jsx)(o.Cu.Item,{basis:"32%",children:(0,e.jsx)(T,{spec:Fe.resize})}),(0,e.jsx)(o.Cu.Item,{basis:"32%",grow:1,children:(0,e.jsx)(T,{spec:Fe.steppref,tooltipPosition:"top"})}),(0,e.jsx)(o.Cu.Item,{basis:"32%",children:(0,e.jsx)(T,{spec:Fe.vore_fx,tooltipPosition:"top"})}),(0,e.jsx)(o.Cu.Item,{basis:"32%",children:(0,e.jsx)(T,{spec:Fe.remains,tooltipPosition:"top"})}),(0,e.jsx)(o.Cu.Item,{basis:"32%",grow:1,children:(0,e.jsx)(T,{spec:Fe.pickuppref,tooltipPosition:"top"})}),(0,e.jsx)(o.Cu.Item,{basis:"32%",children:(0,e.jsx)(T,{spec:Fe.spontaneous_tf})}),(0,e.jsx)(o.Cu.Item,{basis:"32%",children:(0,e.jsx)(o.q,{fluid:!0,content:"Selective Mode Preference",onClick:function(){return N("switch_selective_mode_pref")}})}),(0,e.jsx)(o.Cu.Item,{basis:"32%",grow:3,children:(0,e.jsx)(T,{spec:Fe.eating_privacy_global})})]}),(0,e.jsx)(o.iG,{title:"Aesthetic Preferences",children:(0,e.jsxs)(o.Cu,{spacing:1,wrap:"wrap",justify:"center",children:[(0,e.jsx)(o.Cu.Item,{basis:"50%",grow:1,children:(0,e.jsx)(o.q,{fluid:!0,content:"Set Taste",icon:"grin-tongue",onClick:function(){return N("setflavor")}})}),(0,e.jsx)(o.Cu.Item,{basis:"50%",children:(0,e.jsx)(o.q,{fluid:!0,content:"Set Smell",icon:"wind",onClick:function(){return N("setsmell")}})}),(0,e.jsx)(o.Cu.Item,{basis:"50%",grow:1,children:(0,e.jsx)(o.q,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"en"})},content:"Set Nutrition Examine Message",icon:"flask",fluid:!0})}),(0,e.jsx)(o.Cu.Item,{basis:"50%",children:(0,e.jsx)(o.q,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"ew"})},content:"Set Weight Examine Message",icon:"weight-hanging",fluid:!0})}),(0,e.jsx)(o.Cu.Item,{basis:"50%",grow:1,children:(0,e.jsx)(T,{spec:Fe.examine_nutrition})}),(0,e.jsx)(o.Cu.Item,{basis:"50%",children:(0,e.jsx)(T,{spec:Fe.examine_weight})})]})}),(0,e.jsx)(o.c1,{}),(0,e.jsx)(o.iG,{children:(0,e.jsxs)(o.Cu,{spacing:1,children:[(0,e.jsx)(o.Cu.Item,{basis:"49%",children:(0,e.jsx)(o.q,{fluid:!0,content:"Save Prefs",icon:"save",onClick:function(){return N("saveprefs")}})}),(0,e.jsx)(o.Cu.Item,{basis:"49%",grow:1,children:(0,e.jsx)(o.q,{fluid:!0,content:"Reload Prefs",icon:"undo",onClick:function(){return N("reloadprefs")}})})]})})]})},T=function(R){var L=(0,r.yy)().act,N=R.spec,U=x(R,["spec"]),V=N.action,z=N.test,Q=N.tooltip,H=N.content;return(0,e.jsx)(o.q,g({onClick:function(){return L(V)},icon:z?"toggle-on":"toggle-off",selected:z,fluid:!0,tooltip:Q.main+" "+(z?Q.disable:Q.enable),content:z?H.enabled:H.disabled},U))}},22668:function(M,j,t){"use strict";t.r(j),t.d(j,{VorePanelExport:function(){return c}});var e=t(33496),s=t(45280),n=t(68644),r=t(76512),o={Hold:'Hold',Digest:'Digest',Absorb:'Absorb',Drain:'Drain',Selective:'Selective',Unabsorb:'Unabsorb',Heal:'Heal',Shrink:'Shrink',Grow:'Grow',"Size Steal":'Size Steal',"Encase In Egg":'Encase In Egg'},v={Hold:'Item: Hold',"Digest (Food Only)":'Item: Digest (Food Only)',Digest:'Item: Digest'},g={Numbing:"",Stripping:"","Leave Remains":"",Muffles:"bi-volume-mute","Affect Worn Items":"","Jams Sensors":"bi-wifi-off","Complete Absorb":""},x=function(l){var d=[];return l==null||l.forEach(function(p){d.push(''+p+"")}),d.length===0&&d.push("No Addons Set"),d},f=function(l,d){var p=l.name,C=l.desc,y=l.absorbed_desc,b=l.vore_verb,O=l.release_verb,I=l.mode,_=l.addons,A=l.item_mode,P=l.digest_brute,T=l.digest_burn,R=l.digest_oxy,L=l.digest_tox,N=l.digest_clone,U=l.can_taste,V=l.contaminates,z=l.contamination_flavor,Q=l.contamination_color,H=l.nutrition_percent,q=l.bulge_size,Z=l.display_absorbed_examine,$=l.save_digest_mode,G=l.emote_active,Y=l.emote_time,ee=l.shrink_grow_size,ae=l.egg_type,re=l.selective_preference,le=l.struggle_messages_outside,se=l.struggle_messages_inside,fe=l.absorbed_struggle_messages_outside,de=l.absorbed_struggle_messages_inside,he=l.escape_attempt_messages_owner,me=l.escape_attempt_messages_prey,Ie=l.escape_messages_owner,Pe=l.escape_messages_prey,Me=l.escape_messages_outside,Be=l.escape_item_messages_owner,He=l.escape_item_messages_prey,Ke=l.escape_item_messages_outside,vt=l.escape_fail_messages_owner,ct=l.escape_fail_messages_prey,Fe=l.escape_attempt_absorbed_messages_owner,Xe=l.escape_attempt_absorbed_messages_prey,we=l.escape_absorbed_messages_owner,Ae=l.escape_absorbed_messages_prey,Se=l.escape_absorbed_messages_outside,Oe=l.escape_fail_absorbed_messages_owner,Je=l.escape_fail_absorbed_messages_prey,Ge=l.primary_transfer_messages_owner,Qe=l.primary_transfer_messages_prey,pt=l.secondary_transfer_messages_owner,wt=l.secondary_transfer_messages_prey,Mt=l.digest_chance_messages_owner,kt=l.digest_chance_messages_prey,mt=l.absorb_chance_messages_owner,Ye=l.absorb_chance_messages_prey,Ve=l.digest_messages_owner,it=l.digest_messages_prey,xt=l.absorb_messages_owner,_t=l.absorb_messages_prey,Wt=l.unabsorb_messages_owner,Qt=l.unabsorb_messages_prey,Kt=l.examine_messages,un=l.examine_messages_absorbed,An=l.emotes_digest,Gn=l.emotes_hold,Vn=l.emotes_holdabsorbed,go=l.emotes_absorb,po=l.emotes_heal,jo=l.emotes_drain,Wr=l.emotes_steal,Kr=l.emotes_egg,Fr=l.emotes_shrink,oa=l.emotes_grow,En=l.emotes_unabsorb,yo=l.is_wet,Er=l.wet_loop,vn=l.fancy_vore,mn=l.vore_sound,Xn=l.release_sound,br=l.disable_hud,Co=l.escapable,ei=l.escapechance,ti=l.escapechance_absorbed,ni=l.escapetime,Tn=l.transferchance,aa=l.transferlocation,ia=l.transferchance_secondary,ri=l.transferlocation_secondary,sa=l.absorbchance,la=l.digestchance,oe="";return oe+='

',oe+='

",oe+='
',oe+='
',oe+="Addons:
"+x(_)+"

",oe+="== Descriptions ==
",oe+="Vore Verb:
"+b+"

",oe+="Release Verb:
"+O+"

",oe+='Description:
"'+C+'"

',oe+='Absorbed Description:
"'+y+'"

',oe+="
",oe+="== Messages ==
",oe+='
',oe+='
",oe+='
',oe+='
',oe+='
',he==null||he.forEach(function(ke){oe+=ke+"
"}),oe+="
",oe+='
',me==null||me.forEach(function(ke){oe+=ke+"
"}),oe+="
",oe+='
',Ie==null||Ie.forEach(function(ke){oe+=ke+"
"}),oe+="
",oe+='
',Pe==null||Pe.forEach(function(ke){oe+=ke+"
"}),oe+="
",oe+='
',Me==null||Me.forEach(function(ke){oe+=ke+"
"}),oe+="
",oe+='
',Be==null||Be.forEach(function(ke){oe+=ke+"
"}),oe+="
",oe+='
',He==null||He.forEach(function(ke){oe+=ke+"
"}),oe+="
",oe+='
',Ke==null||Ke.forEach(function(ke){oe+=ke+"
"}),oe+="
",oe+='
',vt==null||vt.forEach(function(ke){oe+=ke+"
"}),oe+="
",oe+='
',ct==null||ct.forEach(function(ke){oe+=ke+"
"}),oe+="
",oe+='
',Fe==null||Fe.forEach(function(ke){oe+=ke+"
"}),oe+="
",oe+='
',Xe==null||Xe.forEach(function(ke){oe+=ke+"
"}),oe+="
",oe+='
',we==null||we.forEach(function(ke){oe+=ke+"
"}),oe+="
",oe+='
',Ae==null||Ae.forEach(function(ke){oe+=ke+"
"}),oe+="
",oe+='
',Se==null||Se.forEach(function(ke){oe+=ke+"
"}),oe+="
",oe+='
',Oe==null||Oe.forEach(function(ke){oe+=ke+"
"}),oe+="
",oe+='
',Je==null||Je.forEach(function(ke){oe+=ke+"
"}),oe+="
",oe+='
',Ge==null||Ge.forEach(function(ke){oe+=ke+"
"}),oe+="
",oe+='
',Qe==null||Qe.forEach(function(ke){oe+=ke+"
"}),oe+="
",oe+='
',pt==null||pt.forEach(function(ke){oe+=ke+"
"}),oe+="
",oe+='
',wt==null||wt.forEach(function(ke){oe+=ke+"
"}),oe+="
",oe+='
',Mt==null||Mt.forEach(function(ke){oe+=ke+"
"}),oe+="
",oe+='
',kt==null||kt.forEach(function(ke){oe+=ke+"
"}),oe+="
",oe+='
',mt==null||mt.forEach(function(ke){oe+=ke+"
"}),oe+="
",oe+='
',Ye==null||Ye.forEach(function(ke){oe+=ke+"
"}),oe+="
",oe+='
',le==null||le.forEach(function(ke){oe+=ke+"
"}),oe+="
",oe+='
',se==null||se.forEach(function(ke){oe+=ke+"
"}),oe+="
",oe+='
',fe==null||fe.forEach(function(ke){oe+=ke+"
"}),oe+="
",oe+='
',de==null||de.forEach(function(ke){oe+=ke+"
"}),oe+="
",oe+='
',Ve==null||Ve.forEach(function(ke){oe+=ke+"
"}),oe+="
",oe+='
',it==null||it.forEach(function(ke){oe+=ke+"
"}),oe+="
",oe+='
',xt==null||xt.forEach(function(ke){oe+=ke+"
"}),oe+="
",oe+='
',_t==null||_t.forEach(function(ke){oe+=ke+"
"}),oe+="
",oe+='
',Wt==null||Wt.forEach(function(ke){oe+=ke+"
"}),oe+="
",oe+='
',Qt==null||Qt.forEach(function(ke){oe+=ke+"
"}),oe+="
",oe+='
',Kt==null||Kt.forEach(function(ke){oe+=ke+"
"}),oe+="
",oe+='
',un==null||un.forEach(function(ke){oe+=ke+"
"}),oe+="
",oe+="
",oe+="
",oe+="
",oe+="
= Idle Messages =

",oe+="

Idle Messages (Hold):

",Gn==null||Gn.forEach(function(ke){oe+=ke+"
"}),oe+="


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

",Vn==null||Vn.forEach(function(ke){oe+=ke+"
"}),oe+="


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

",An==null||An.forEach(function(ke){oe+=ke+"
"}),oe+="


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

",go==null||go.forEach(function(ke){oe+=ke+"
"}),oe+="


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

",En==null||En.forEach(function(ke){oe+=ke+"
"}),oe+="


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

",jo==null||jo.forEach(function(ke){oe+=ke+"
"}),oe+="


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

",po==null||po.forEach(function(ke){oe+=ke+"
"}),oe+="


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

",Wr==null||Wr.forEach(function(ke){oe+=ke+"
"}),oe+="


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

",Fr==null||Fr.forEach(function(ke){oe+=ke+"
"}),oe+="


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

",oa==null||oa.forEach(function(ke){oe+=ke+"
"}),oe+="


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

",Kr==null||Kr.forEach(function(ke){oe+=ke+"
"}),oe+="


",oe+="


",oe+="
",oe+='
',oe+='
',oe+='

',oe+='

",oe+='
',oe+='
',oe+='
    ',oe+='
  • Can Taste: '+(U?'Yes':'No')+"
  • ",oe+='
  • Contaminates: '+(V?'Yes':'No')+"
  • ",oe+='
  • Contamination Flavor: '+z+"
  • ",oe+='
  • Contamination Color: '+Q+"
  • ",oe+='
  • Nutritional Gain: '+H+"%
  • ",oe+='
  • Required Examine Size: '+q*100+"%
  • ",oe+='
  • Display Absorbed Examines: '+(Z?'True':'False')+"
  • ",oe+='
  • Save Digest Mode: '+($?'True':'False')+"
  • ",oe+='
  • Idle Emotes: '+(G?'Active':'Inactive')+"
  • ",oe+='
  • Idle Emote Delay: '+Y+" seconds
  • ",oe+='
  • Shrink/Grow Size: '+ee*100+"%
  • ",oe+='
  • Egg Type: '+ae+"
  • ",oe+='
  • Selective Mode Preference: '+re+"
  • ",oe+="
",oe+="
",oe+='
',oe+='

',oe+='

",oe+='
',oe+='
',oe+='
    ',oe+='
  • Fleshy Belly: '+(yo?'Yes':'No')+"
  • ",oe+='
  • Internal Loop: '+(Er?'Yes':'No')+"
  • ",oe+='
  • Use Fancy Sounds: '+(vn?'Yes':'No')+"
  • ",oe+='
  • Vore Sound: '+mn+"
  • ",oe+='
  • Release Sound: '+Xn+"
  • ",oe+="
",oe+="
",oe+='
',oe+='

',oe+='

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

',oe+='

",oe+='
',oe+='
',oe+="Belly Interactions ("+(Co?'Enabled':'Disabled')+")",oe+='
    ',oe+='
  • Escape Chance: '+ei+"%
  • ",oe+='
  • Escape Chance: '+ti+"%
  • ",oe+='
  • Escape Time: '+ni/10+"s
  • ",oe+='
  • Transfer Chance: '+Tn+"%
  • ",oe+='
  • Transfer Location: '+aa+"
  • ",oe+='
  • Secondary Transfer Chance: '+ia+"%
  • ",oe+='
  • Secondary Transfer Location: '+ri+"
  • ",oe+='
  • Absorb Chance: '+sa+"%
  • ",oe+='
  • Digest Chance: '+la+"%
  • ",oe+="
",oe+="
",oe+="
",oe},u=function(){var l=new Date,d=String(l.getHours());d.length<2&&(d="0"+d);var p=String(l.getMinutes());p.length<2&&(p="0"+p);var C=String(l.getDate());C.length<2&&(C="0"+C);var y=String(l.getMonth()+1);y.length<2&&(y="0"+y);var b=String(l.getFullYear());return" "+b+"-"+y+"-"+C+" ("+d+" "+p+")"},m=function(l){var d=(0,s.yy)(),p=d.act,C=d.data,y=C.db_version,b=C.db_repo,O=C.mob_name,I=C.bellies,_=u(),A=O+_+l,P;if(l===".html"){var T="";P=new Blob([''+I.length+" Exported Bellies (DB_VER: "+b+"-"+y+')'+T+'

Bellies of '+O+'

Generated on: '+_+'

'],{type:"text/html;charset=utf8"}),I.forEach(function(R,L){P=new Blob([P,f(R,L)],{type:"text/html;charset=utf8"})}),P=new Blob([P,"
",'