diff --git a/code/game/machinery/computer/cloning.dm b/code/game/machinery/computer/cloning.dm index 0d3e96cc6c36..bad24ecf9249 100644 --- a/code/game/machinery/computer/cloning.dm +++ b/code/game/machinery/computer/cloning.dm @@ -20,7 +20,8 @@ var/feedback /// The desired outcome of the cloning process. var/datum/cloning_data/desired_data - + /// Is the scanner currently scanning someone? + var/currently_scanning = FALSE COOLDOWN_DECLARE(scancooldown) /obj/machinery/computer/cloning/Initialize(mapload) @@ -157,6 +158,7 @@ if(scanner) data["has_scanned"] = scanner.has_scanned + data["currently_scanning"] = currently_scanning else data["has_scanned"] = FALSE @@ -231,7 +233,6 @@ switch(text2num(params["tab"])) if(TAB_MAIN) tab = TAB_MAIN - scanner?.update_scan_status() return TRUE if(TAB_DAMAGES_BREAKDOWN) tab = TAB_DAMAGES_BREAKDOWN @@ -256,6 +257,7 @@ if(!scanner.occupant) return FALSE + currently_scanning = TRUE scanner.occupant.notify_ghost_cloning() feedback = list("text" = "Scanning occupant! Please wait...", "color" = "good", "scan_succeeded" = FALSE) COOLDOWN_START(src, scancooldown, 10 SECONDS) @@ -318,6 +320,7 @@ if("eject") if(scanner?.occupant) scanner.remove_mob(scanner.occupant) + currently_scanning = FALSE return TRUE @@ -352,5 +355,6 @@ feedback = list("text" = "Successfully scanned the patient.", "color" = "good", "scan_succeeded" = TRUE) desired_data = generate_healthy_data(scan) + currently_scanning = FALSE #undef TAB_MAIN #undef TAB_DAMAGES_BREAKDOWN diff --git a/tgui/packages/tgui/interfaces/CloningConsole.js b/tgui/packages/tgui/interfaces/CloningConsole.js index a1bd697f9e7e..8fc7cfa97259 100644 --- a/tgui/packages/tgui/interfaces/CloningConsole.js +++ b/tgui/packages/tgui/interfaces/CloningConsole.js @@ -111,8 +111,16 @@ const CloningConsoleMain = (props, context) => { const CloningConsoleDamage = (props, context) => { const { act, data } = useBackend(context); - const { selected_pod_data, has_scanned, scanner_has_patient, feedback, scan_successful, cloning_cost, has_scanner } = - data; + const { + selected_pod_data, + has_scanned, + scanner_has_patient, + feedback, + scan_successful, + cloning_cost, + has_scanner, + currently_scanning, + } = data; return ( {!has_scanner && Notice: No scanner connected.} @@ -123,21 +131,25 @@ const CloningConsoleDamage = (props, context) => { title="Scanner Info" buttons={ - - } > - {!has_scanned && ( + {!has_scanned && !currently_scanning && ( {scanner_has_patient ? 'No scan detected for current patient.' : 'No patient is in the scanner.'} )} - {!!has_scanned && {feedback['text']}} + {(!!has_scanned || !!currently_scanning) && {feedback['text']}}
diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index fd399db5ed12..c39b39f47080 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -1,8 +1,8 @@ -(function(){(function(){var Qt={96376:function(T,r,n){"use strict";r.__esModule=!0,r.createPopper=void 0,r.popperGenerator=m;var e=h(n(74758)),a=h(n(28811)),t=h(n(98309)),o=h(n(44896)),f=h(n(33118)),b=h(n(10579)),y=h(n(56500)),S=h(n(17633));r.detectOverflow=S.default;var k=n(75573);function h(u){return u&&u.__esModule?u:{default:u}}var c={placement:"bottom",modifiers:[],strategy:"absolute"};function i(){for(var u=arguments.length,s=new Array(u),l=0;l0&&(0,a.round)(h.width)/y.offsetWidth||1,i=y.offsetHeight>0&&(0,a.round)(h.height)/y.offsetHeight||1);var m=(0,e.isElement)(y)?(0,t.default)(y):window,d=m.visualViewport,u=!(0,o.default)()&&k,s=(h.left+(u&&d?d.offsetLeft:0))/c,l=(h.top+(u&&d?d.offsetTop:0))/i,v=h.width/c,N=h.height/i;return{width:v,height:N,top:l,right:s+v,bottom:l+N,left:s,x:s,y:l}}},49035:function(T,r,n){"use strict";r.__esModule=!0,r.default=N;var e=n(46206),a=u(n(87991)),t=u(n(79752)),o=u(n(98309)),f=u(n(44896)),b=u(n(40600)),y=u(n(16599)),S=n(75573),k=u(n(37786)),h=u(n(57819)),c=u(n(4206)),i=u(n(12972)),m=u(n(81666)),d=n(63618);function u(C){return C&&C.__esModule?C:{default:C}}function s(C,p){var g=(0,k.default)(C,!1,p==="fixed");return g.top=g.top+C.clientTop,g.left=g.left+C.clientLeft,g.bottom=g.top+C.clientHeight,g.right=g.left+C.clientWidth,g.width=C.clientWidth,g.height=C.clientHeight,g.x=g.left,g.y=g.top,g}function l(C,p,g){return p===e.viewport?(0,m.default)((0,a.default)(C,g)):(0,S.isElement)(p)?s(p,g):(0,m.default)((0,t.default)((0,b.default)(C)))}function v(C){var p=(0,o.default)((0,h.default)(C)),g=["absolute","fixed"].indexOf((0,y.default)(C).position)>=0,V=g&&(0,S.isHTMLElement)(C)?(0,f.default)(C):C;return(0,S.isElement)(V)?p.filter(function(B){return(0,S.isElement)(B)&&(0,c.default)(B,V)&&(0,i.default)(B)!=="body"}):[]}function N(C,p,g,V){var B=p==="clippingParents"?v(C):[].concat(p),I=[].concat(B,[g]),L=I[0],w=I.reduce(function(x,A){var E=l(C,A,V);return x.top=(0,d.max)(E.top,x.top),x.right=(0,d.min)(E.right,x.right),x.bottom=(0,d.min)(E.bottom,x.bottom),x.left=(0,d.max)(E.left,x.left),x},l(C,L,V));return w.width=w.right-w.left,w.height=w.bottom-w.top,w.x=w.left,w.y=w.top,w}},74758:function(T,r,n){"use strict";r.__esModule=!0,r.default=c;var e=k(n(37786)),a=k(n(13390)),t=k(n(12972)),o=n(75573),f=k(n(79697)),b=k(n(40600)),y=k(n(10798)),S=n(63618);function k(i){return i&&i.__esModule?i:{default:i}}function h(i){var m=i.getBoundingClientRect(),d=(0,S.round)(m.width)/i.offsetWidth||1,u=(0,S.round)(m.height)/i.offsetHeight||1;return d!==1||u!==1}function c(i,m,d){d===void 0&&(d=!1);var u=(0,o.isHTMLElement)(m),s=(0,o.isHTMLElement)(m)&&h(m),l=(0,b.default)(m),v=(0,e.default)(i,s,d),N={scrollLeft:0,scrollTop:0},C={x:0,y:0};return(u||!u&&!d)&&(((0,t.default)(m)!=="body"||(0,y.default)(l))&&(N=(0,a.default)(m)),(0,o.isHTMLElement)(m)?(C=(0,e.default)(m,!0),C.x+=m.clientLeft,C.y+=m.clientTop):l&&(C.x=(0,f.default)(l))),{x:v.left+N.scrollLeft-C.x,y:v.top+N.scrollTop-C.y,width:v.width,height:v.height}}},16599:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(95115));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return(0,e.default)(o).getComputedStyle(o)}},40600:function(T,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(75573);function a(t){return(((0,e.isElement)(t)?t.ownerDocument:t.document)||window.document).documentElement}},79752:function(T,r,n){"use strict";r.__esModule=!0,r.default=y;var e=b(n(40600)),a=b(n(16599)),t=b(n(79697)),o=b(n(43750)),f=n(63618);function b(S){return S&&S.__esModule?S:{default:S}}function y(S){var k,h=(0,e.default)(S),c=(0,o.default)(S),i=(k=S.ownerDocument)==null?void 0:k.body,m=(0,f.max)(h.scrollWidth,h.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),d=(0,f.max)(h.scrollHeight,h.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),u=-c.scrollLeft+(0,t.default)(S),s=-c.scrollTop;return(0,a.default)(i||h).direction==="rtl"&&(u+=(0,f.max)(h.clientWidth,i?i.clientWidth:0)-m),{width:m,height:d,x:u,y:s}}},3073:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},28811:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(37786));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),b=o.offsetWidth,y=o.offsetHeight;return Math.abs(f.width-b)<=1&&(b=f.width),Math.abs(f.height-y)<=1&&(y=f.height),{x:o.offsetLeft,y:o.offsetTop,width:b,height:y}}},12972:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e?(e.nodeName||"").toLowerCase():null}},13390:function(T,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(43750)),a=f(n(95115)),t=n(75573),o=f(n(3073));function f(y){return y&&y.__esModule?y:{default:y}}function b(y){return y===(0,a.default)(y)||!(0,t.isHTMLElement)(y)?(0,e.default)(y):(0,o.default)(y)}},44896:function(T,r,n){"use strict";r.__esModule=!0,r.default=c;var e=S(n(95115)),a=S(n(12972)),t=S(n(16599)),o=n(75573),f=S(n(87031)),b=S(n(57819)),y=S(n(35366));function S(i){return i&&i.__esModule?i:{default:i}}function k(i){return!(0,o.isHTMLElement)(i)||(0,t.default)(i).position==="fixed"?null:i.offsetParent}function h(i){var m=/firefox/i.test((0,y.default)()),d=/Trident/i.test((0,y.default)());if(d&&(0,o.isHTMLElement)(i)){var u=(0,t.default)(i);if(u.position==="fixed")return null}var s=(0,b.default)(i);for((0,o.isShadowRoot)(s)&&(s=s.host);(0,o.isHTMLElement)(s)&&["html","body"].indexOf((0,a.default)(s))<0;){var l=(0,t.default)(s);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||m&&l.willChange==="filter"||m&&l.filter&&l.filter!=="none")return s;s=s.parentNode}return null}function c(i){for(var m=(0,e.default)(i),d=k(i);d&&(0,f.default)(d)&&(0,t.default)(d).position==="static";)d=k(d);return d&&((0,a.default)(d)==="html"||(0,a.default)(d)==="body"&&(0,t.default)(d).position==="static")?m:d||h(i)||m}},57819:function(T,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(12972)),a=o(n(40600)),t=n(75573);function o(b){return b&&b.__esModule?b:{default:b}}function f(b){return(0,e.default)(b)==="html"?b:b.assignedSlot||b.parentNode||((0,t.isShadowRoot)(b)?b.host:null)||(0,a.default)(b)}},24426:function(T,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(57819)),a=f(n(10798)),t=f(n(12972)),o=n(75573);function f(y){return y&&y.__esModule?y:{default:y}}function b(y){return["html","body","#document"].indexOf((0,t.default)(y))>=0?y.ownerDocument.body:(0,o.isHTMLElement)(y)&&(0,a.default)(y)?y:b((0,e.default)(y))}},87991:function(T,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(95115)),a=f(n(40600)),t=f(n(79697)),o=f(n(89331));function f(y){return y&&y.__esModule?y:{default:y}}function b(y,S){var k=(0,e.default)(y),h=(0,a.default)(y),c=k.visualViewport,i=h.clientWidth,m=h.clientHeight,d=0,u=0;if(c){i=c.width,m=c.height;var s=(0,o.default)();(s||!s&&S==="fixed")&&(d=c.offsetLeft,u=c.offsetTop)}return{width:i,height:m,x:d+(0,t.default)(y),y:u}}},95115:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var a=e.ownerDocument;return a&&a.defaultView||window}return e}},43750:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(95115));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),b=f.pageXOffset,y=f.pageYOffset;return{scrollLeft:b,scrollTop:y}}},79697:function(T,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(37786)),a=o(n(40600)),t=o(n(43750));function o(b){return b&&b.__esModule?b:{default:b}}function f(b){return(0,e.default)((0,a.default)(b)).left+(0,t.default)(b).scrollLeft}},75573:function(T,r,n){"use strict";r.__esModule=!0,r.isElement=t,r.isHTMLElement=o,r.isShadowRoot=f;var e=a(n(95115));function a(b){return b&&b.__esModule?b:{default:b}}function t(b){var y=(0,e.default)(b).Element;return b instanceof y||b instanceof Element}function o(b){var y=(0,e.default)(b).HTMLElement;return b instanceof y||b instanceof HTMLElement}function f(b){if(typeof ShadowRoot=="undefined")return!1;var y=(0,e.default)(b).ShadowRoot;return b instanceof y||b instanceof ShadowRoot}},89331:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(35366));function a(o){return o&&o.__esModule?o:{default:o}}function t(){return!/^((?!chrome|android).)*safari/i.test((0,e.default)())}},10798:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(16599));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),b=f.overflow,y=f.overflowX,S=f.overflowY;return/auto|scroll|overlay|hidden/.test(b+S+y)}},87031:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(12972));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return["table","td","th"].indexOf((0,e.default)(o))>=0}},98309:function(T,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(24426)),a=f(n(57819)),t=f(n(95115)),o=f(n(10798));function f(y){return y&&y.__esModule?y:{default:y}}function b(y,S){var k;S===void 0&&(S=[]);var h=(0,e.default)(y),c=h===((k=y.ownerDocument)==null?void 0:k.body),i=(0,t.default)(h),m=c?[i].concat(i.visualViewport||[],(0,o.default)(h)?h:[]):h,d=S.concat(m);return c?d:d.concat(b((0,a.default)(m)))}},46206:function(T,r){"use strict";r.__esModule=!0,r.write=r.viewport=r.variationPlacements=r.top=r.start=r.right=r.reference=r.read=r.popper=r.placements=r.modifierPhases=r.main=r.left=r.end=r.clippingParents=r.bottom=r.beforeWrite=r.beforeRead=r.beforeMain=r.basePlacements=r.auto=r.afterWrite=r.afterRead=r.afterMain=void 0;var n=r.top="top",e=r.bottom="bottom",a=r.right="right",t=r.left="left",o=r.auto="auto",f=r.basePlacements=[n,e,a,t],b=r.start="start",y=r.end="end",S=r.clippingParents="clippingParents",k=r.viewport="viewport",h=r.popper="popper",c=r.reference="reference",i=r.variationPlacements=f.reduce(function(B,I){return B.concat([I+"-"+b,I+"-"+y])},[]),m=r.placements=[].concat(f,[o]).reduce(function(B,I){return B.concat([I,I+"-"+b,I+"-"+y])},[]),d=r.beforeRead="beforeRead",u=r.read="read",s=r.afterRead="afterRead",l=r.beforeMain="beforeMain",v=r.main="main",N=r.afterMain="afterMain",C=r.beforeWrite="beforeWrite",p=r.write="write",g=r.afterWrite="afterWrite",V=r.modifierPhases=[d,u,s,l,v,N,C,p,g]},95996:function(T,r,n){"use strict";r.__esModule=!0;var e={popperGenerator:!0,detectOverflow:!0,createPopperBase:!0,createPopper:!0,createPopperLite:!0};r.popperGenerator=r.detectOverflow=r.createPopperLite=r.createPopperBase=r.createPopper=void 0;var a=n(46206);Object.keys(a).forEach(function(y){y==="default"||y==="__esModule"||Object.prototype.hasOwnProperty.call(e,y)||y in r&&r[y]===a[y]||(r[y]=a[y])});var t=n(39805);Object.keys(t).forEach(function(y){y==="default"||y==="__esModule"||Object.prototype.hasOwnProperty.call(e,y)||y in r&&r[y]===t[y]||(r[y]=t[y])});var o=n(96376);r.popperGenerator=o.popperGenerator,r.detectOverflow=o.detectOverflow,r.createPopperBase=o.createPopper;var f=n(83312);r.createPopper=f.createPopper;var b=n(2473);r.createPopperLite=b.createPopper},19975:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=t(n(12972)),a=n(75573);function t(y){return y&&y.__esModule?y:{default:y}}function o(y){var S=y.state;Object.keys(S.elements).forEach(function(k){var h=S.styles[k]||{},c=S.attributes[k]||{},i=S.elements[k];!(0,a.isHTMLElement)(i)||!(0,e.default)(i)||(Object.assign(i.style,h),Object.keys(c).forEach(function(m){var d=c[m];d===!1?i.removeAttribute(m):i.setAttribute(m,d===!0?"":d)}))})}function f(y){var S=y.state,k={popper:{position:S.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(S.elements.popper.style,k.popper),S.styles=k,S.elements.arrow&&Object.assign(S.elements.arrow.style,k.arrow),function(){Object.keys(S.elements).forEach(function(h){var c=S.elements[h],i=S.attributes[h]||{},m=Object.keys(S.styles.hasOwnProperty(h)?S.styles[h]:k[h]),d=m.reduce(function(u,s){return u[s]="",u},{});!(0,a.isHTMLElement)(c)||!(0,e.default)(c)||(Object.assign(c.style,d),Object.keys(i).forEach(function(u){c.removeAttribute(u)}))})}}var b=r.default={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:f,requires:["computeStyles"]}},52744:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=h(n(83104)),a=h(n(28811)),t=h(n(4206)),o=h(n(44896)),f=h(n(41199)),b=n(28595),y=h(n(43286)),S=h(n(81447)),k=n(46206);function h(u){return u&&u.__esModule?u:{default:u}}var c=function(){function u(s,l){return s=typeof s=="function"?s(Object.assign({},l.rects,{placement:l.placement})):s,(0,y.default)(typeof s!="number"?s:(0,S.default)(s,k.basePlacements))}return u}();function i(u){var s,l=u.state,v=u.name,N=u.options,C=l.elements.arrow,p=l.modifiersData.popperOffsets,g=(0,e.default)(l.placement),V=(0,f.default)(g),B=[k.left,k.right].indexOf(g)>=0,I=B?"height":"width";if(!(!C||!p)){var L=c(N.padding,l),w=(0,a.default)(C),x=V==="y"?k.top:k.left,A=V==="y"?k.bottom:k.right,E=l.rects.reference[I]+l.rects.reference[V]-p[V]-l.rects.popper[I],P=p[V]-l.rects.reference[V],j=(0,o.default)(C),M=j?V==="y"?j.clientHeight||0:j.clientWidth||0:0,R=E/2-P/2,D=L[x],W=M-w[I]-L[A],_=M/2-w[I]/2+R,U=(0,b.within)(D,_,W),K=V;l.modifiersData[v]=(s={},s[K]=U,s.centerOffset=U-_,s)}}function m(u){var s=u.state,l=u.options,v=l.element,N=v===void 0?"[data-popper-arrow]":v;N!=null&&(typeof N=="string"&&(N=s.elements.popper.querySelector(N),!N)||(0,t.default)(s.elements.popper,N)&&(s.elements.arrow=N))}var d=r.default={name:"arrow",enabled:!0,phase:"main",fn:i,effect:m,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},59894:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.mapToStyles=i;var e=n(46206),a=k(n(44896)),t=k(n(95115)),o=k(n(40600)),f=k(n(16599)),b=k(n(83104)),y=k(n(45)),S=n(63618);function k(u){return u&&u.__esModule?u:{default:u}}var h={top:"auto",right:"auto",bottom:"auto",left:"auto"};function c(u,s){var l=u.x,v=u.y,N=s.devicePixelRatio||1;return{x:(0,S.round)(l*N)/N||0,y:(0,S.round)(v*N)/N||0}}function i(u){var s,l=u.popper,v=u.popperRect,N=u.placement,C=u.variation,p=u.offsets,g=u.position,V=u.gpuAcceleration,B=u.adaptive,I=u.roundOffsets,L=u.isFixed,w=p.x,x=w===void 0?0:w,A=p.y,E=A===void 0?0:A,P=typeof I=="function"?I({x:x,y:E}):{x:x,y:E};x=P.x,E=P.y;var j=p.hasOwnProperty("x"),M=p.hasOwnProperty("y"),R=e.left,D=e.top,W=window;if(B){var _=(0,a.default)(l),U="clientHeight",K="clientWidth";if(_===(0,t.default)(l)&&(_=(0,o.default)(l),(0,f.default)(_).position!=="static"&&g==="absolute"&&(U="scrollHeight",K="scrollWidth")),_=_,N===e.top||(N===e.left||N===e.right)&&C===e.end){D=e.bottom;var G=L&&_===W&&W.visualViewport?W.visualViewport.height:_[U];E-=G-v.height,E*=V?1:-1}if(N===e.left||(N===e.top||N===e.bottom)&&C===e.end){R=e.right;var $=L&&_===W&&W.visualViewport?W.visualViewport.width:_[K];x-=$-v.width,x*=V?1:-1}}var Q=Object.assign({position:g},B&&h),J=I===!0?c({x:x,y:E},(0,t.default)(l)):{x:x,y:E};if(x=J.x,E=J.y,V){var ie;return Object.assign({},Q,(ie={},ie[D]=M?"0":"",ie[R]=j?"0":"",ie.transform=(W.devicePixelRatio||1)<=1?"translate("+x+"px, "+E+"px)":"translate3d("+x+"px, "+E+"px, 0)",ie))}return Object.assign({},Q,(s={},s[D]=M?E+"px":"",s[R]=j?x+"px":"",s.transform="",s))}function m(u){var s=u.state,l=u.options,v=l.gpuAcceleration,N=v===void 0?!0:v,C=l.adaptive,p=C===void 0?!0:C,g=l.roundOffsets,V=g===void 0?!0:g,B={placement:(0,b.default)(s.placement),variation:(0,y.default)(s.placement),popper:s.elements.popper,popperRect:s.rects.popper,gpuAcceleration:N,isFixed:s.options.strategy==="fixed"};s.modifiersData.popperOffsets!=null&&(s.styles.popper=Object.assign({},s.styles.popper,i(Object.assign({},B,{offsets:s.modifiersData.popperOffsets,position:s.options.strategy,adaptive:p,roundOffsets:V})))),s.modifiersData.arrow!=null&&(s.styles.arrow=Object.assign({},s.styles.arrow,i(Object.assign({},B,{offsets:s.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:V})))),s.attributes.popper=Object.assign({},s.attributes.popper,{"data-popper-placement":s.placement})}var d=r.default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:m,data:{}}},36692:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(95115));function a(b){return b&&b.__esModule?b:{default:b}}var t={passive:!0};function o(b){var y=b.state,S=b.instance,k=b.options,h=k.scroll,c=h===void 0?!0:h,i=k.resize,m=i===void 0?!0:i,d=(0,e.default)(y.elements.popper),u=[].concat(y.scrollParents.reference,y.scrollParents.popper);return c&&u.forEach(function(s){s.addEventListener("scroll",S.update,t)}),m&&d.addEventListener("resize",S.update,t),function(){c&&u.forEach(function(s){s.removeEventListener("scroll",S.update,t)}),m&&d.removeEventListener("resize",S.update,t)}}var f=r.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){function b(){}return b}(),effect:o,data:{}}},23798:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=S(n(71376)),a=S(n(83104)),t=S(n(86459)),o=S(n(17633)),f=S(n(9041)),b=n(46206),y=S(n(45));function S(i){return i&&i.__esModule?i:{default:i}}function k(i){if((0,a.default)(i)===b.auto)return[];var m=(0,e.default)(i);return[(0,t.default)(i),m,(0,t.default)(m)]}function h(i){var m=i.state,d=i.options,u=i.name;if(!m.modifiersData[u]._skip){for(var s=d.mainAxis,l=s===void 0?!0:s,v=d.altAxis,N=v===void 0?!0:v,C=d.fallbackPlacements,p=d.padding,g=d.boundary,V=d.rootBoundary,B=d.altBoundary,I=d.flipVariations,L=I===void 0?!0:I,w=d.allowedAutoPlacements,x=m.options.placement,A=(0,a.default)(x),E=A===x,P=C||(E||!L?[(0,e.default)(x)]:k(x)),j=[x].concat(P).reduce(function(ce,ee){return ce.concat((0,a.default)(ee)===b.auto?(0,f.default)(m,{placement:ee,boundary:g,rootBoundary:V,padding:p,flipVariations:L,allowedAutoPlacements:w}):ee)},[]),M=m.rects.reference,R=m.rects.popper,D=new Map,W=!0,_=j[0],U=0;U=0,J=Q?"width":"height",ie=(0,o.default)(m,{placement:K,boundary:g,rootBoundary:V,altBoundary:B,padding:p}),ne=Q?$?b.right:b.left:$?b.bottom:b.top;M[J]>R[J]&&(ne=(0,e.default)(ne));var se=(0,e.default)(ne),Ce=[];if(l&&Ce.push(ie[G]<=0),N&&Ce.push(ie[ne]<=0,ie[se]<=0),Ce.every(function(ce){return ce})){_=K,W=!1;break}D.set(K,Ce)}if(W)for(var Se=L?3:1,ye=function(){function ce(ee){var fe=j.find(function(me){var te=D.get(me);if(te)return te.slice(0,ee).every(function(be){return be})});if(fe)return _=fe,"break"}return ce}(),he=Se;he>0;he--){var oe=ye(he);if(oe==="break")break}m.placement!==_&&(m.modifiersData[u]._skip=!0,m.placement=_,m.reset=!0)}}var c=r.default={name:"flip",enabled:!0,phase:"main",fn:h,requiresIfExists:["offset"],data:{_skip:!1}}},83761:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(46206),a=t(n(17633));function t(S){return S&&S.__esModule?S:{default:S}}function o(S,k,h){return h===void 0&&(h={x:0,y:0}),{top:S.top-k.height-h.y,right:S.right-k.width+h.x,bottom:S.bottom-k.height+h.y,left:S.left-k.width-h.x}}function f(S){return[e.top,e.right,e.bottom,e.left].some(function(k){return S[k]>=0})}function b(S){var k=S.state,h=S.name,c=k.rects.reference,i=k.rects.popper,m=k.modifiersData.preventOverflow,d=(0,a.default)(k,{elementContext:"reference"}),u=(0,a.default)(k,{altBoundary:!0}),s=o(d,c),l=o(u,i,m),v=f(s),N=f(l);k.modifiersData[h]={referenceClippingOffsets:s,popperEscapeOffsets:l,isReferenceHidden:v,hasPopperEscaped:N},k.attributes.popper=Object.assign({},k.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":N})}var y=r.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:b}},39805:function(T,r,n){"use strict";r.__esModule=!0,r.preventOverflow=r.popperOffsets=r.offset=r.hide=r.flip=r.eventListeners=r.computeStyles=r.arrow=r.applyStyles=void 0;var e=h(n(19975));r.applyStyles=e.default;var a=h(n(52744));r.arrow=a.default;var t=h(n(59894));r.computeStyles=t.default;var o=h(n(36692));r.eventListeners=o.default;var f=h(n(23798));r.flip=f.default;var b=h(n(83761));r.hide=b.default;var y=h(n(61410));r.offset=y.default;var S=h(n(40107));r.popperOffsets=S.default;var k=h(n(75137));r.preventOverflow=k.default;function h(c){return c&&c.__esModule?c:{default:c}}},61410:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.distanceAndSkiddingToXY=o;var e=t(n(83104)),a=n(46206);function t(y){return y&&y.__esModule?y:{default:y}}function o(y,S,k){var h=(0,e.default)(y),c=[a.left,a.top].indexOf(h)>=0?-1:1,i=typeof k=="function"?k(Object.assign({},S,{placement:y})):k,m=i[0],d=i[1];return m=m||0,d=(d||0)*c,[a.left,a.right].indexOf(h)>=0?{x:d,y:m}:{x:m,y:d}}function f(y){var S=y.state,k=y.options,h=y.name,c=k.offset,i=c===void 0?[0,0]:c,m=a.placements.reduce(function(l,v){return l[v]=o(v,S.rects,i),l},{}),d=m[S.placement],u=d.x,s=d.y;S.modifiersData.popperOffsets!=null&&(S.modifiersData.popperOffsets.x+=u,S.modifiersData.popperOffsets.y+=s),S.modifiersData[h]=m}var b=r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:f}},40107:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(89951));function a(f){return f&&f.__esModule?f:{default:f}}function t(f){var b=f.state,y=f.name;b.modifiersData[y]=(0,e.default)({reference:b.rects.reference,element:b.rects.popper,strategy:"absolute",placement:b.placement})}var o=r.default={name:"popperOffsets",enabled:!0,phase:"read",fn:t,data:{}}},75137:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(46206),a=i(n(83104)),t=i(n(41199)),o=i(n(28066)),f=n(28595),b=i(n(28811)),y=i(n(44896)),S=i(n(17633)),k=i(n(45)),h=i(n(34780)),c=n(63618);function i(u){return u&&u.__esModule?u:{default:u}}function m(u){var s=u.state,l=u.options,v=u.name,N=l.mainAxis,C=N===void 0?!0:N,p=l.altAxis,g=p===void 0?!1:p,V=l.boundary,B=l.rootBoundary,I=l.altBoundary,L=l.padding,w=l.tether,x=w===void 0?!0:w,A=l.tetherOffset,E=A===void 0?0:A,P=(0,S.default)(s,{boundary:V,rootBoundary:B,padding:L,altBoundary:I}),j=(0,a.default)(s.placement),M=(0,k.default)(s.placement),R=!M,D=(0,t.default)(j),W=(0,o.default)(D),_=s.modifiersData.popperOffsets,U=s.rects.reference,K=s.rects.popper,G=typeof E=="function"?E(Object.assign({},s.rects,{placement:s.placement})):E,$=typeof G=="number"?{mainAxis:G,altAxis:G}:Object.assign({mainAxis:0,altAxis:0},G),Q=s.modifiersData.offset?s.modifiersData.offset[s.placement]:null,J={x:0,y:0};if(_){if(C){var ie,ne=D==="y"?e.top:e.left,se=D==="y"?e.bottom:e.right,Ce=D==="y"?"height":"width",Se=_[D],ye=Se+P[ne],he=Se-P[se],oe=x?-K[Ce]/2:0,ce=M===e.start?U[Ce]:K[Ce],ee=M===e.start?-K[Ce]:-U[Ce],fe=s.elements.arrow,me=x&&fe?(0,b.default)(fe):{width:0,height:0},te=s.modifiersData["arrow#persistent"]?s.modifiersData["arrow#persistent"].padding:(0,h.default)(),be=te[ne],pe=te[se],ve=(0,f.within)(0,U[Ce],me[Ce]),Be=R?U[Ce]/2-oe-ve-be-$.mainAxis:ce-ve-be-$.mainAxis,ge=R?-U[Ce]/2+oe+ve+pe+$.mainAxis:ee+ve+pe+$.mainAxis,Le=s.elements.arrow&&(0,y.default)(s.elements.arrow),we=Le?D==="y"?Le.clientTop||0:Le.clientLeft||0:0,xe=(ie=Q==null?void 0:Q[D])!=null?ie:0,Re=Se+Be-xe-we,ze=Se+ge-xe,Ve=(0,f.within)(x?(0,c.min)(ye,Re):ye,Se,x?(0,c.max)(he,ze):he);_[D]=Ve,J[D]=Ve-Se}if(g){var re,le=D==="x"?e.top:e.left,Ne=D==="x"?e.bottom:e.right,de=_[W],ke=W==="y"?"height":"width",Me=de+P[le],je=de-P[Ne],Fe=[e.top,e.left].indexOf(j)!==-1,He=(re=Q==null?void 0:Q[W])!=null?re:0,_e=Fe?Me:de-U[ke]-K[ke]-He+$.altAxis,Ue=Fe?de+U[ke]+K[ke]-He-$.altAxis:je,Xe=x&&Fe?(0,f.withinMaxClamp)(_e,de,Ue):(0,f.within)(x?_e:Me,de,x?Ue:je);_[W]=Xe,J[W]=Xe-de}s.modifiersData[v]=J}}var d=r.default={name:"preventOverflow",enabled:!0,phase:"main",fn:m,requiresIfExists:["offset"]}},2473:function(T,r,n){"use strict";r.__esModule=!0,r.defaultModifiers=r.createPopper=void 0;var e=n(96376);r.popperGenerator=e.popperGenerator,r.detectOverflow=e.detectOverflow;var a=b(n(36692)),t=b(n(40107)),o=b(n(59894)),f=b(n(19975));function b(k){return k&&k.__esModule?k:{default:k}}var y=r.defaultModifiers=[a.default,t.default,o.default,f.default],S=r.createPopper=(0,e.popperGenerator)({defaultModifiers:y})},83312:function(T,r,n){"use strict";r.__esModule=!0;var e={createPopper:!0,createPopperLite:!0,defaultModifiers:!0,popperGenerator:!0,detectOverflow:!0};r.defaultModifiers=r.createPopperLite=r.createPopper=void 0;var a=n(96376);r.popperGenerator=a.popperGenerator,r.detectOverflow=a.detectOverflow;var t=d(n(36692)),o=d(n(40107)),f=d(n(59894)),b=d(n(19975)),y=d(n(61410)),S=d(n(23798)),k=d(n(75137)),h=d(n(52744)),c=d(n(83761)),i=n(2473);r.createPopperLite=i.createPopper;var m=n(39805);Object.keys(m).forEach(function(l){l==="default"||l==="__esModule"||Object.prototype.hasOwnProperty.call(e,l)||l in r&&r[l]===m[l]||(r[l]=m[l])});function d(l){return l&&l.__esModule?l:{default:l}}var u=r.defaultModifiers=[t.default,o.default,f.default,b.default,y.default,S.default,k.default,h.default,c.default],s=r.createPopperLite=r.createPopper=(0,a.popperGenerator)({defaultModifiers:u})},9041:function(T,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(45)),a=n(46206),t=f(n(17633)),o=f(n(83104));function f(y){return y&&y.__esModule?y:{default:y}}function b(y,S){S===void 0&&(S={});var k=S,h=k.placement,c=k.boundary,i=k.rootBoundary,m=k.padding,d=k.flipVariations,u=k.allowedAutoPlacements,s=u===void 0?a.placements:u,l=(0,e.default)(h),v=l?d?a.variationPlacements:a.variationPlacements.filter(function(p){return(0,e.default)(p)===l}):a.basePlacements,N=v.filter(function(p){return s.indexOf(p)>=0});N.length===0&&(N=v);var C=N.reduce(function(p,g){return p[g]=(0,t.default)(y,{placement:g,boundary:c,rootBoundary:i,padding:m})[(0,o.default)(g)],p},{});return Object.keys(C).sort(function(p,g){return C[p]-C[g]})}},89951:function(T,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(83104)),a=f(n(45)),t=f(n(41199)),o=n(46206);function f(y){return y&&y.__esModule?y:{default:y}}function b(y){var S=y.reference,k=y.element,h=y.placement,c=h?(0,e.default)(h):null,i=h?(0,a.default)(h):null,m=S.x+S.width/2-k.width/2,d=S.y+S.height/2-k.height/2,u;switch(c){case o.top:u={x:m,y:S.y-k.height};break;case o.bottom:u={x:m,y:S.y+S.height};break;case o.right:u={x:S.x+S.width,y:d};break;case o.left:u={x:S.x-k.width,y:d};break;default:u={x:S.x,y:S.y}}var s=c?(0,t.default)(c):null;if(s!=null){var l=s==="y"?"height":"width";switch(i){case o.start:u[s]=u[s]-(S[l]/2-k[l]/2);break;case o.end:u[s]=u[s]+(S[l]/2-k[l]/2);break;default:}}return u}},10579:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a;return function(){return a||(a=new Promise(function(t){Promise.resolve().then(function(){a=void 0,t(e())})})),a}}},17633:function(T,r,n){"use strict";r.__esModule=!0,r.default=c;var e=h(n(49035)),a=h(n(40600)),t=h(n(37786)),o=h(n(89951)),f=h(n(81666)),b=n(46206),y=n(75573),S=h(n(43286)),k=h(n(81447));function h(i){return i&&i.__esModule?i:{default:i}}function c(i,m){m===void 0&&(m={});var d=m,u=d.placement,s=u===void 0?i.placement:u,l=d.strategy,v=l===void 0?i.strategy:l,N=d.boundary,C=N===void 0?b.clippingParents:N,p=d.rootBoundary,g=p===void 0?b.viewport:p,V=d.elementContext,B=V===void 0?b.popper:V,I=d.altBoundary,L=I===void 0?!1:I,w=d.padding,x=w===void 0?0:w,A=(0,S.default)(typeof x!="number"?x:(0,k.default)(x,b.basePlacements)),E=B===b.popper?b.reference:b.popper,P=i.rects.popper,j=i.elements[L?E:B],M=(0,e.default)((0,y.isElement)(j)?j:j.contextElement||(0,a.default)(i.elements.popper),C,g,v),R=(0,t.default)(i.elements.reference),D=(0,o.default)({reference:R,element:P,strategy:"absolute",placement:s}),W=(0,f.default)(Object.assign({},P,D)),_=B===b.popper?W:R,U={top:M.top-_.top+A.top,bottom:_.bottom-M.bottom+A.bottom,left:M.left-_.left+A.left,right:_.right-M.right+A.right},K=i.modifiersData.offset;if(B===b.popper&&K){var G=K[s];Object.keys(U).forEach(function($){var Q=[b.right,b.bottom].indexOf($)>=0?1:-1,J=[b.top,b.bottom].indexOf($)>=0?"y":"x";U[$]+=G[J]*Q})}return U}},81447:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e,a){return a.reduce(function(t,o){return t[o]=e,t},{})}},28066:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e==="x"?"y":"x"}},83104:function(T,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(46206);function a(t){return t.split("-")[0]}},34780:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(){return{top:0,right:0,bottom:0,left:0}}},41199:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}},71376:function(T,r){"use strict";r.__esModule=!0,r.default=e;var n={left:"right",right:"left",bottom:"top",top:"bottom"};function e(a){return a.replace(/left|right|bottom|top/g,function(t){return n[t]})}},86459:function(T,r){"use strict";r.__esModule=!0,r.default=e;var n={start:"end",end:"start"};function e(a){return a.replace(/start|end/g,function(t){return n[t]})}},45:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e.split("-")[1]}},63618:function(T,r){"use strict";r.__esModule=!0,r.round=r.min=r.max=void 0;var n=r.max=Math.max,e=r.min=Math.min,a=r.round=Math.round},56500:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a=e.reduce(function(t,o){var f=t[o.name];return t[o.name]=f?Object.assign({},f,o,{options:Object.assign({},f.options,o.options),data:Object.assign({},f.data,o.data)}):o,t},{});return Object.keys(a).map(function(t){return a[t]})}},43286:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(34780));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return Object.assign({},(0,e.default)(),o)}},33118:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=n(46206);function a(o){var f=new Map,b=new Set,y=[];o.forEach(function(k){f.set(k.name,k)});function S(k){b.add(k.name);var h=[].concat(k.requires||[],k.requiresIfExists||[]);h.forEach(function(c){if(!b.has(c)){var i=f.get(c);i&&S(i)}}),y.push(k)}return o.forEach(function(k){b.has(k.name)||S(k)}),y}function t(o){var f=a(o);return e.modifierPhases.reduce(function(b,y){return b.concat(f.filter(function(S){return S.phase===y}))},[])}},81666:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}},35366:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(a){return a.brand+"/"+a.version}).join(" "):navigator.userAgent}},28595:function(T,r,n){"use strict";r.__esModule=!0,r.within=a,r.withinMaxClamp=t;var e=n(63618);function a(o,f,b){return(0,e.max)(o,(0,e.min)(f,b))}function t(o,f,b){var y=a(o,f,b);return y>b?b:y}},15875:function(T,r){"use strict";r.__esModule=!0,r.VNodeFlags=r.ChildFlags=void 0;var n;(function(a){a[a.Unknown=0]="Unknown",a[a.HtmlElement=1]="HtmlElement",a[a.ComponentUnknown=2]="ComponentUnknown",a[a.ComponentClass=4]="ComponentClass",a[a.ComponentFunction=8]="ComponentFunction",a[a.Text=16]="Text",a[a.SvgElement=32]="SvgElement",a[a.InputElement=64]="InputElement",a[a.TextareaElement=128]="TextareaElement",a[a.SelectElement=256]="SelectElement",a[a.Portal=1024]="Portal",a[a.ReCreate=2048]="ReCreate",a[a.ContentEditable=4096]="ContentEditable",a[a.Fragment=8192]="Fragment",a[a.InUse=16384]="InUse",a[a.ForwardRef=32768]="ForwardRef",a[a.Normalized=65536]="Normalized",a[a.ForwardRefComponent=32776]="ForwardRefComponent",a[a.FormElement=448]="FormElement",a[a.Element=481]="Element",a[a.Component=14]="Component",a[a.DOMRef=1521]="DOMRef",a[a.InUseOrNormalized=81920]="InUseOrNormalized",a[a.ClearInUse=-16385]="ClearInUse",a[a.ComponentKnown=12]="ComponentKnown"})(n||(r.VNodeFlags=n={}));var e;(function(a){a[a.UnknownChildren=0]="UnknownChildren",a[a.HasInvalidChildren=1]="HasInvalidChildren",a[a.HasVNodeChildren=2]="HasVNodeChildren",a[a.HasNonKeyedChildren=4]="HasNonKeyedChildren",a[a.HasKeyedChildren=8]="HasKeyedChildren",a[a.HasTextChildren=16]="HasTextChildren",a[a.MultipleChildren=12]="MultipleChildren"})(e||(r.ChildFlags=e={}))},89292:function(T,r){"use strict";r.__esModule=!0,r.Fragment=r.EMPTY_OBJ=r.Component=r.AnimationQueues=void 0,r._CI=Ot,r._HI=me,r._M=Ke,r._MCCC=Ft,r._ME=Dt,r._MFCC=Wt,r._MP=Pt,r._MR=at,r._RFC=gt,r.__render=zt,r.createComponentVNode=ie,r.createFragment=se,r.createPortal=oe,r.createRef=nn,r.createRenderer=En,r.createTextVNode=ne,r.createVNode=G,r.directClone=ye,r.findDOMFromVNode=V,r.forwardRef=on,r.getFlagsForElementVnode=ee,r.linkEvent=h,r.normalizeProps=Ce,r.options=void 0,r.render=Ht,r.rerender=$t,r.version=void 0;var n=Array.isArray;function e(O){var F=typeof O;return F==="string"||F==="number"}function a(O){return O==null}function t(O){return O===null||O===!1||O===!0||O===void 0}function o(O){return typeof O=="function"}function f(O){return typeof O=="string"}function b(O){return typeof O=="number"}function y(O){return O===null}function S(O){return O===void 0}function k(O,F){var z={};if(O)for(var H in O)z[H]=O[H];if(F)for(var X in F)z[X]=F[X];return z}function h(O,F){return o(F)?{data:O,event:F}:null}function c(O){return!y(O)&&typeof O=="object"}var i=r.EMPTY_OBJ={},m=r.Fragment="$F",d=r.AnimationQueues=function(){function O(){this.componentDidAppear=[],this.componentWillDisappear=[],this.componentWillMove=[]}return O}();function u(O){return O.substring(2).toLowerCase()}function s(O,F){O.appendChild(F)}function l(O,F,z){y(z)?s(O,F):O.insertBefore(F,z)}function v(O,F){return F?document.createElementNS("http://www.w3.org/2000/svg",O):document.createElement(O)}function N(O,F,z){O.replaceChild(F,z)}function C(O,F){O.removeChild(F)}function p(O){for(var F=0;F0?B(z.componentWillDisappear,w(O,F)):L(O,F,!1)}function A(O,F,z,H,X,Z,q,ae){O.componentWillMove.push({dom:H,fn:function(){function ue(){q&4?z.componentWillMove(F,X,H):q&8&&z.onComponentWillMove(F,X,H,ae)}return ue}(),next:Z,parent:X})}function E(O,F,z,H,X){var Z,q,ae=F.flags;do{var ue=F.flags;if(ue&1521){!a(Z)&&(o(Z.componentWillMove)||o(Z.onComponentWillMove))?A(X,O,Z,F.dom,z,H,ae,q):l(z,F.dom,H);return}var Te=F.children;if(ue&4)Z=F.children,q=F.props,F=Te.$LI;else if(ue&8)Z=F.ref,q=F.props,F=Te;else if(ue&8192)if(F.childFlags===2)F=Te;else{for(var Ie=0,Ee=Te.length;Ie0,Te=y(ae),Ie=f(ae)&&ae[0]===U;ue||Te||Ie?(z=z||F.slice(0,Z),(ue||Ie)&&(q=ye(q)),(Te||Ie)&&(q.key=U+Z),z.push(q)):z&&z.push(q),q.flags|=65536}}z=z||F,z.length===0?H=1:H=8}else z=F,z.flags|=65536,F.flags&81920&&(z=ye(F)),H=2;return O.children=z,O.childFlags=H,O}function me(O){return t(O)||e(O)?ne(O,null):n(O)?se(O,0,null):O.flags&16384?ye(O):O}var te="http://www.w3.org/1999/xlink",be="http://www.w3.org/XML/1998/namespace",pe={"xlink:actuate":te,"xlink:arcrole":te,"xlink:href":te,"xlink:role":te,"xlink:show":te,"xlink:title":te,"xlink:type":te,"xml:base":be,"xml:lang":be,"xml:space":be};function ve(O){return{onClick:O,onDblClick:O,onFocusIn:O,onFocusOut:O,onKeyDown:O,onKeyPress:O,onKeyUp:O,onMouseDown:O,onMouseMove:O,onMouseUp:O,onTouchEnd:O,onTouchMove:O,onTouchStart:O}}var Be=ve(0),ge=ve(null),Le=ve(!0);function we(O,F){var z=F.$EV;return z||(z=F.$EV=ve(null)),z[O]||++Be[O]===1&&(ge[O]=je(O)),z}function xe(O,F){var z=F.$EV;z&&z[O]&&(--Be[O]===0&&(document.removeEventListener(u(O),ge[O]),ge[O]=null),z[O]=null)}function Re(O,F,z,H){if(o(z))we(O,H)[O]=z;else if(c(z)){if(D(F,z))return;we(O,H)[O]=z}else xe(O,H)}function ze(O){return o(O.composedPath)?O.composedPath()[0]:O.target}function Ve(O,F,z,H){var X=ze(O);do{if(F&&X.disabled)return;var Z=X.$EV;if(Z){var q=Z[z];if(q&&(H.dom=X,q.event?q.event(q.data,O):q(O),O.cancelBubble))return}X=X.parentNode}while(!y(X))}function re(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function le(){return this.defaultPrevented}function Ne(){return this.cancelBubble}function de(O){var F={dom:document};return O.isDefaultPrevented=le,O.isPropagationStopped=Ne,O.stopPropagation=re,Object.defineProperty(O,"currentTarget",{configurable:!0,get:function(){function z(){return F.dom}return z}()}),F}function ke(O){return function(F){if(F.button!==0){F.stopPropagation();return}Ve(F,!0,O,de(F))}}function Me(O){return function(F){Ve(F,!1,O,de(F))}}function je(O){var F=O==="onClick"||O==="onDblClick"?ke(O):Me(O);return document.addEventListener(u(O),F),F}function Fe(O,F){var z=document.createElement("i");return z.innerHTML=F,z.innerHTML===O.innerHTML}function He(O,F,z){if(O[F]){var H=O[F];H.event?H.event(H.data,z):H(z)}else{var X=F.toLowerCase();O[X]&&O[X](z)}}function _e(O,F){var z=function(){function H(X){var Z=this.$V;if(Z){var q=Z.props||i,ae=Z.dom;if(f(O))He(q,O,X);else for(var ue=0;ue-1&&F.options[Z]&&(ae=F.options[Z].value),z&&a(ae)&&(ae=O.defaultValue),rt(H,ae)}}var Zt=_e("onInput",Tt),qt=_e("onChange");function en(O,F){Ue(O,"input",Zt),F.onChange&&Ue(O,"change",qt)}function Tt(O,F,z){var H=O.value,X=F.value;if(a(H)){if(z){var Z=O.defaultValue;!a(Z)&&Z!==X&&(F.defaultValue=Z,F.value=Z)}}else X!==H&&(F.defaultValue=H,F.value=H)}function xt(O,F,z,H,X,Z){O&64?ut(H,z):O&256?wt(H,z,X,F):O&128&&Tt(H,z,X),Z&&(z.$V=F)}function tn(O,F,z){O&64?Bt(F,z):O&256?Jt(F):O&128&&en(F,z)}function At(O){return O.type&&Xe(O.type)?!a(O.checked):!a(O.value)}function nn(){return{current:null}}function on(O){var F={render:O};return F}function st(O){O&&!_(O,null)&&O.current&&(O.current=null)}function at(O,F,z){O&&(o(O)||O.current!==void 0)&&z.push(function(){!_(O,F)&&O.current!==void 0&&(O.current=F)})}function Qe(O,F,z){Ze(O,z),x(O,F,z)}function Ze(O,F){var z=O.flags,H=O.children,X;if(z&481){X=O.ref;var Z=O.props;st(X);var q=O.childFlags;if(!y(Z))for(var ae=Object.keys(Z),ue=0,Te=ae.length;ue0?B(z.componentWillDisappear,rn(F,O)):O.textContent=""}function ft(O,F,z,H){ct(z,H),F.flags&8192?x(F,O,H):mt(O,z,H)}function Et(O,F,z,H,X){O.componentWillDisappear.push(function(Z){H&4?F.componentWillDisappear(z,Z):H&8&&F.onComponentWillDisappear(z,X,Z)})}function an(O){var F=O.event;return function(z){F(O.data,z)}}function cn(O,F,z,H){if(c(z)){if(D(F,z))return;z=an(z)}Ue(H,u(O),z)}function ln(O,F,z){if(a(F)){z.removeAttribute("style");return}var H=z.style,X,Z;if(f(F)){H.cssText=F;return}if(!a(O)&&!f(O)){for(X in F)Z=F[X],Z!==O[X]&&H.setProperty(X,Z);for(X in O)a(F[X])&&H.removeProperty(X)}else for(X in F)Z=F[X],H.setProperty(X,Z)}function dn(O,F,z,H,X){var Z=O&&O.__html||"",q=F&&F.__html||"";Z!==q&&!a(q)&&!Fe(H,q)&&(y(z)||(z.childFlags&12?ct(z.children,X):z.childFlags===2&&Ze(z.children,X),z.children=null,z.childFlags=1),H.innerHTML=q)}function vt(O,F,z,H,X,Z,q,ae){switch(O){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":H.autofocus=!!z;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":H[O]=!!z;break;case"defaultChecked":case"value":case"volume":if(Z&&O==="value")break;var ue=a(z)?"":z;H[O]!==ue&&(H[O]=ue);break;case"style":ln(F,z,H);break;case"dangerouslySetInnerHTML":dn(F,z,q,H,ae);break;default:Le[O]?Re(O,F,z,H):O.charCodeAt(0)===111&&O.charCodeAt(1)===110?cn(O,F,z,H):a(z)?H.removeAttribute(O):X&&pe[O]?H.setAttributeNS(pe[O],O,z):H.setAttribute(O,z);break}}function Pt(O,F,z,H,X,Z){var q=!1,ae=(F&448)>0;ae&&(q=At(z),q&&tn(F,H,z));for(var ue in z)vt(ue,null,z[ue],H,X,q,null,Z);ae&&xt(F,O,H,z,!0,q)}function Mt(O,F,z){var H=me(O.render(F,O.state,z)),X=z;return o(O.getChildContext)&&(X=k(z,O.getChildContext())),O.$CX=X,H}function Ot(O,F,z,H,X,Z){var q=new F(z,H),ae=q.$N=!!(F.getDerivedStateFromProps||q.getSnapshotBeforeUpdate);if(q.$SVG=X,q.$L=Z,O.children=q,q.$BS=!1,q.context=H,q.props===i&&(q.props=z),ae)q.state=P(q,z,q.state);else if(o(q.componentWillMount)){q.$BR=!0,q.componentWillMount();var ue=q.$PS;if(!y(ue)){var Te=q.state;if(y(Te))q.state=ue;else for(var Ie in ue)Te[Ie]=ue[Ie];q.$PS=null}q.$BR=!1}return q.$LI=Mt(q,z,H),q}function gt(O,F){var z=O.props||i;return O.flags&32768?O.type.render(z,O.ref,F):O.type(z,F)}function Ke(O,F,z,H,X,Z,q){var ae=O.flags|=16384;ae&481?Dt(O,F,z,H,X,Z,q):ae&4?mn(O,F,z,H,X,Z,q):ae&8?fn(O,F,z,H,X,Z,q):ae&16?Rt(O,F,X):ae&8192?sn(O,z,F,H,X,Z,q):ae&1024&&un(O,z,F,X,Z,q)}function un(O,F,z,H,X,Z){Ke(O.children,O.ref,F,!1,null,X,Z);var q=he();Rt(q,z,H),O.dom=q.dom}function sn(O,F,z,H,X,Z,q){var ae=O.children,ue=O.childFlags;ue&12&&ae.length===0&&(ue=O.childFlags=2,ae=O.children=he()),ue===2?Ke(ae,z,F,H,X,Z,q):ot(ae,z,F,H,X,Z,q)}function Rt(O,F,z){var H=O.dom=document.createTextNode(O.children);y(F)||l(F,H,z)}function Dt(O,F,z,H,X,Z,q){var ae=O.flags,ue=O.props,Te=O.className,Ie=O.childFlags,Ee=O.dom=v(O.type,H=H||(ae&32)>0),Ae=O.children;if(!a(Te)&&Te!==""&&(H?Ee.setAttribute("class",Te):Ee.className=Te),Ie===16)R(Ee,Ae);else if(Ie!==1){var Pe=H&&O.type!=="foreignObject";Ie===2?(Ae.flags&16384&&(O.children=Ae=ye(Ae)),Ke(Ae,Ee,z,Pe,null,Z,q)):(Ie===8||Ie===4)&&ot(Ae,Ee,z,Pe,null,Z,q)}y(F)||l(F,Ee,X),y(ue)||Pt(O,ae,ue,Ee,H,q),at(O.ref,Ee,Z)}function ot(O,F,z,H,X,Z,q){for(var ae=0;aePe)&&(Ee=V(ae[Pe-1],!1).nextSibling)}Nt(Te,Ie,ae,ue,z,H,X,Ee,O,Z,q)}function Vn(O,F,z,H,X){var Z=O.ref,q=F.ref,ae=F.children;if(Nt(O.childFlags,F.childFlags,O.children,ae,Z,z,!1,null,O,H,X),F.dom=O.dom,Z!==q&&!t(ae)){var ue=ae.dom;C(Z,ue),s(q,ue)}}function bn(O,F,z,H,X,Z,q){var ae=F.dom=O.dom,ue=O.props,Te=F.props,Ie=!1,Ee=!1,Ae;if(H=H||(X&32)>0,ue!==Te){var Pe=ue||i;if(Ae=Te||i,Ae!==i){Ie=(X&448)>0,Ie&&(Ee=At(Ae));for(var We in Ae){var Oe=Pe[We],$e=Ae[We];Oe!==$e&&vt(We,Oe,$e,ae,H,Ee,O,q)}}if(Pe!==i)for(var De in Pe)a(Ae[De])&&!a(Pe[De])&&vt(De,Pe[De],null,ae,H,Ee,O,q)}var tt=F.children,Ye=F.className;O.className!==Ye&&(a(Ye)?ae.removeAttribute("class"):H?ae.setAttribute("class",Ye):ae.className=Ye),X&4096?gn(ae,tt):Nt(O.childFlags,F.childFlags,O.children,tt,ae,z,H&&F.type!=="foreignObject",null,O,Z,q),Ie&&xt(X,F,ae,Ae,!1,Ee);var it=F.ref,Je=O.ref;Je!==it&&(st(Je),at(it,ae,Z))}function kn(O,F,z,H,X,Z,q){Ze(O,q),ot(F,z,H,X,V(O,!0),Z,q),x(O,z,q)}function Nt(O,F,z,H,X,Z,q,ae,ue,Te,Ie){switch(O){case 2:switch(F){case 2:qe(z,H,X,Z,q,ae,Te,Ie);break;case 1:Qe(z,X,Ie);break;case 16:Ze(z,Ie),R(X,H);break;default:kn(z,H,X,Z,q,Te,Ie);break}break;case 1:switch(F){case 2:Ke(H,X,Z,q,ae,Te,Ie);break;case 1:break;case 16:R(X,H);break;default:ot(H,X,Z,q,ae,Te,Ie);break}break;case 16:switch(F){case 16:vn(z,H,X);break;case 2:mt(X,z,Ie),Ke(H,X,Z,q,ae,Te,Ie);break;case 1:mt(X,z,Ie);break;default:mt(X,z,Ie),ot(H,X,Z,q,ae,Te,Ie);break}break;default:switch(F){case 16:ct(z,Ie),R(X,H);break;case 2:ft(X,ue,z,Ie),Ke(H,X,Z,q,ae,Te,Ie);break;case 1:ft(X,ue,z,Ie);break;default:var Ee=z.length|0,Ae=H.length|0;Ee===0?Ae>0&&ot(H,X,Z,q,ae,Te,Ie):Ae===0?ft(X,ue,z,Ie):F===8&&O===8?wn(z,H,X,Z,q,Ee,Ae,ae,ue,Te,Ie):Ln(z,H,X,Z,q,Ee,Ae,ae,Te,Ie);break}break}}function yn(O,F,z,H,X){X.push(function(){O.componentDidUpdate(F,z,H)})}function _t(O,F,z,H,X,Z,q,ae,ue,Te){var Ie=O.state,Ee=O.props,Ae=!!O.$N,Pe=o(O.shouldComponentUpdate);if(Ae&&(F=P(O,z,F!==Ie?k(Ie,F):F)),q||!Pe||Pe&&O.shouldComponentUpdate(z,F,X)){!Ae&&o(O.componentWillUpdate)&&O.componentWillUpdate(z,F,X),O.props=z,O.state=F,O.context=X;var We=null,Oe=Mt(O,z,X);Ae&&o(O.getSnapshotBeforeUpdate)&&(We=O.getSnapshotBeforeUpdate(Ee,Ie)),qe(O.$LI,Oe,H,O.$CX,Z,ae,ue,Te),O.$LI=Oe,o(O.componentDidUpdate)&&yn(O,Ee,Ie,We,ue)}else O.props=z,O.state=F,O.context=X}function Sn(O,F,z,H,X,Z,q,ae){var ue=F.children=O.children;if(!y(ue)){ue.$L=q;var Te=F.props||i,Ie=F.ref,Ee=O.ref,Ae=ue.state;if(!ue.$N){if(o(ue.componentWillReceiveProps)){if(ue.$BR=!0,ue.componentWillReceiveProps(Te,H),ue.$UN)return;ue.$BR=!1}y(ue.$PS)||(Ae=k(Ae,ue.$PS),ue.$PS=null)}_t(ue,Ae,Te,z,H,X,!1,Z,q,ae),Ee!==Ie&&(st(Ee),at(Ie,ue,q))}}function Bn(O,F,z,H,X,Z,q,ae){var ue=!0,Te=F.props||i,Ie=F.ref,Ee=O.props,Ae=!a(Ie),Pe=O.children;if(Ae&&o(Ie.onComponentShouldUpdate)&&(ue=Ie.onComponentShouldUpdate(Ee,Te)),ue!==!1){Ae&&o(Ie.onComponentWillUpdate)&&Ie.onComponentWillUpdate(Ee,Te);var We=me(gt(F,H));qe(Pe,We,z,H,X,Z,q,ae),F.children=We,Ae&&o(Ie.onComponentDidUpdate)&&Ie.onComponentDidUpdate(Ee,Te)}else F.children=Pe}function In(O,F){var z=F.children,H=F.dom=O.dom;z!==O.children&&(H.nodeValue=z)}function Ln(O,F,z,H,X,Z,q,ae,ue,Te){for(var Ie=Z>q?q:Z,Ee=0,Ae,Pe;Eeq)for(Ee=Ie;EeEe||Pe>Ae)break e;We=O[Pe],Oe=F[Pe]}for(We=O[Ee],Oe=F[Ae];We.key===Oe.key;){if(Oe.flags&16384&&(F[Ae]=Oe=ye(Oe)),qe(We,Oe,z,H,X,ae,Te,Ie),O[Ee]=Oe,Ee--,Ae--,Pe>Ee||Pe>Ae)break e;We=O[Ee],Oe=F[Ae]}}if(Pe>Ee){if(Pe<=Ae)for($e=Ae+1,De=$eAe)for(;Pe<=Ee;)Qe(O[Pe++],z,Ie);else Tn(O,F,H,Z,q,Ee,Ae,Pe,z,X,ae,ue,Te,Ie)}function Tn(O,F,z,H,X,Z,q,ae,ue,Te,Ie,Ee,Ae,Pe){var We,Oe,$e=0,De=0,tt=ae,Ye=ae,it=Z-ae+1,Je=q-ae+1,lt=new Int32Array(Je+1),nt=it===H,bt=!1,Ge=0,dt=0;if(X<4||(it|Je)<32)for(De=tt;De<=Z;++De)if(We=O[De],dtae?bt=!0:Ge=ae,Oe.flags&16384&&(F[ae]=Oe=ye(Oe)),qe(We,Oe,ue,z,Te,Ie,Ae,Pe),++dt;break}!nt&&ae>q&&Qe(We,ue,Pe)}else nt||Qe(We,ue,Pe);else{var Yt={};for(De=Ye;De<=q;++De)Yt[F[De].key]=De;for(De=tt;De<=Z;++De)if(We=O[De],dttt;)Qe(O[tt++],ue,Pe);lt[ae-Ye]=De+1,Ge>ae?bt=!0:Ge=ae,Oe=F[ae],Oe.flags&16384&&(F[ae]=Oe=ye(Oe)),qe(We,Oe,ue,z,Te,Ie,Ae,Pe),++dt}else nt||Qe(We,ue,Pe);else nt||Qe(We,ue,Pe)}if(nt)ft(ue,Ee,O,Pe),ot(F,ue,z,Te,Ie,Ae,Pe);else if(bt){var Xt=xn(lt);for(ae=Xt.length-1,De=Je-1;De>=0;De--)lt[De]===0?(Ge=De+Ye,Oe=F[Ge],Oe.flags&16384&&(F[Ge]=Oe=ye(Oe)),$e=Ge+1,Ke(Oe,ue,z,Te,$e0&&I(Pe.componentWillMove)}else if(dt!==Je)for(De=Je-1;De>=0;De--)lt[De]===0&&(Ge=De+Ye,Oe=F[Ge],Oe.flags&16384&&(F[Ge]=Oe=ye(Oe)),$e=Ge+1,Ke(Oe,ue,z,Te,$eUt&&(Ut=ue,et=new Int32Array(ue),pt=new Int32Array(ue));z>1,O[et[ae]]0&&(pt[z]=et[Z-1]),et[Z]=z)}Z=X+1;var Te=new Int32Array(Z);for(q=et[Z-1];Z-- >0;)Te[Z]=q,q=pt[q],et[Z]=0;return Te}var An=typeof document!="undefined";An&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);function zt(O,F,z,H){var X=[],Z=new d,q=F.$V;j.v=!0,a(q)?a(O)||(O.flags&16384&&(O=ye(O)),Ke(O,F,H,!1,null,X,Z),F.$V=O,q=O):a(O)?(Qe(q,F,Z),F.$V=null):(O.flags&16384&&(O=ye(O)),qe(q,O,F,H,!1,null,X,Z),q=F.$V=O),p(X),B(Z.componentDidAppear),j.v=!1,o(z)&&z(),o(M.renderComplete)&&M.renderComplete(q,F)}function Ht(O,F,z,H){z===void 0&&(z=null),H===void 0&&(H=i),zt(O,F,z,H)}function En(O){return function(){function F(z,H,X,Z){O||(O=z),Ht(H,O,X,Z)}return F}()}var ht=[],Pn=typeof Promise!="undefined"?Promise.resolve().then.bind(Promise.resolve()):function(O){window.setTimeout(O,0)},Vt=!1;function Kt(O,F,z,H){var X=O.$PS;if(o(F)&&(F=F(X?k(O.state,X):O.state,O.props,O.context)),a(X))O.$PS=F;else for(var Z in F)X[Z]=F[Z];if(O.$BR)o(z)&&O.$L.push(z.bind(O));else{if(!j.v&&ht.length===0){Gt(O,H),o(z)&&z.call(O);return}if(ht.indexOf(O)===-1&&ht.push(O),H&&(O.$F=!0),Vt||(Vt=!0,Pn($t)),o(z)){var q=O.$QU;q||(q=O.$QU=[]),q.push(z)}}}function Mn(O){for(var F=O.$QU,z=0;z=0;--_){var U=this.tryEntries[_],K=U.completion;if(U.tryLoc==="root")return W("end");if(U.tryLoc<=this.prev){var G=a.call(U,"catchLoc"),$=a.call(U,"finallyLoc");if(G&&$){if(this.prev=0;--W){var _=this.tryEntries[W];if(_.tryLoc<=this.prev&&a.call(_,"finallyLoc")&&this.prev<_.finallyLoc){var U=_;break}}U&&(R==="break"||R==="continue")&&U.tryLoc<=D&&D<=U.finallyLoc&&(U=null);var K=U?U.completion:{};return K.type=R,K.arg=D,U?(this.method="next",this.next=U.finallyLoc,s):this.complete(K)}return M}(),complete:function(){function M(R,D){if(R.type==="throw")throw R.arg;return R.type==="break"||R.type==="continue"?this.next=R.arg:R.type==="return"?(this.rval=this.arg=R.arg,this.method="return",this.next="end"):R.type==="normal"&&D&&(this.next=D),s}return M}(),finish:function(){function M(R){for(var D=this.tryEntries.length-1;D>=0;--D){var W=this.tryEntries[D];if(W.finallyLoc===R)return this.complete(W.completion,W.afterLoc),A(W),s}}return M}(),catch:function(){function M(R){for(var D=this.tryEntries.length-1;D>=0;--D){var W=this.tryEntries[D];if(W.tryLoc===R){var _=W.completion;if(_.type==="throw"){var U=_.arg;A(W)}return U}}throw new Error("illegal catch attempt")}return M}(),delegateYield:function(){function M(R,D,W){return this.delegate={iterator:P(R),resultName:D,nextLoc:W},this.method==="next"&&(this.arg=o),s}return M}()},n}(T.exports);try{regeneratorRuntime=r}catch(n){typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},30236:function(){"use strict";self.fetch||(self.fetch=function(T,r){return r=r||{},new Promise(function(n,e){var a=new XMLHttpRequest,t=[],o={},f=function(){function y(){return{ok:(a.status/100|0)==2,statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){function S(){return Promise.resolve(a.responseText)}return S}(),json:function(){function S(){return Promise.resolve(a.responseText).then(JSON.parse)}return S}(),blob:function(){function S(){return Promise.resolve(new Blob([a.response]))}return S}(),clone:y,headers:{keys:function(){function S(){return t}return S}(),entries:function(){function S(){return t.map(function(k){return[k,a.getResponseHeader(k)]})}return S}(),get:function(){function S(k){return a.getResponseHeader(k)}return S}(),has:function(){function S(k){return a.getResponseHeader(k)!=null}return S}()}}}return y}();for(var b in a.open(r.method||"get",T,!0),a.onload=function(){a.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(y,S){o[S]||t.push(o[S]=S)}),n(f())},a.onerror=e,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(b,r.headers[b]);a.send(r.body||null)})})},88510:function(T,r){"use strict";r.__esModule=!0,r.zipWith=r.zip=r.uniqBy=r.uniq=r.toKeyedArray=r.toArray=r.sortBy=r.sort=r.reduce=r.range=r.map=r.filterMap=r.filter=void 0;function n(l,v){var N=typeof Symbol!="undefined"&&l[Symbol.iterator]||l["@@iterator"];if(N)return(N=N.call(l)).next.bind(N);if(Array.isArray(l)||(N=e(l))||v&&l&&typeof l.length=="number"){N&&(l=N);var C=0;return function(){return C>=l.length?{done:!0}:{done:!1,value:l[C++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(l,v){if(l){if(typeof l=="string")return a(l,v);var N={}.toString.call(l).slice(8,-1);return N==="Object"&&l.constructor&&(N=l.constructor.name),N==="Map"||N==="Set"?Array.from(l):N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N)?a(l,v):void 0}}function a(l,v){(v==null||v>l.length)&&(v=l.length);for(var N=0,C=Array(v);N0&&(0,a.round)(h.width)/y.offsetWidth||1,i=y.offsetHeight>0&&(0,a.round)(h.height)/y.offsetHeight||1);var m=(0,e.isElement)(y)?(0,t.default)(y):window,d=m.visualViewport,u=!(0,o.default)()&&k,s=(h.left+(u&&d?d.offsetLeft:0))/c,l=(h.top+(u&&d?d.offsetTop:0))/i,v=h.width/c,N=h.height/i;return{width:v,height:N,top:l,right:s+v,bottom:l+N,left:s,x:s,y:l}}},49035:function(T,r,n){"use strict";r.__esModule=!0,r.default=N;var e=n(46206),a=u(n(87991)),t=u(n(79752)),o=u(n(98309)),f=u(n(44896)),b=u(n(40600)),y=u(n(16599)),S=n(75573),k=u(n(37786)),h=u(n(57819)),c=u(n(4206)),i=u(n(12972)),m=u(n(81666)),d=n(63618);function u(C){return C&&C.__esModule?C:{default:C}}function s(C,p){var g=(0,k.default)(C,!1,p==="fixed");return g.top=g.top+C.clientTop,g.left=g.left+C.clientLeft,g.bottom=g.top+C.clientHeight,g.right=g.left+C.clientWidth,g.width=C.clientWidth,g.height=C.clientHeight,g.x=g.left,g.y=g.top,g}function l(C,p,g){return p===e.viewport?(0,m.default)((0,a.default)(C,g)):(0,S.isElement)(p)?s(p,g):(0,m.default)((0,t.default)((0,b.default)(C)))}function v(C){var p=(0,o.default)((0,h.default)(C)),g=["absolute","fixed"].indexOf((0,y.default)(C).position)>=0,V=g&&(0,S.isHTMLElement)(C)?(0,f.default)(C):C;return(0,S.isElement)(V)?p.filter(function(B){return(0,S.isElement)(B)&&(0,c.default)(B,V)&&(0,i.default)(B)!=="body"}):[]}function N(C,p,g,V){var B=p==="clippingParents"?v(C):[].concat(p),I=[].concat(B,[g]),L=I[0],w=I.reduce(function(A,x){var E=l(C,x,V);return A.top=(0,d.max)(E.top,A.top),A.right=(0,d.min)(E.right,A.right),A.bottom=(0,d.min)(E.bottom,A.bottom),A.left=(0,d.max)(E.left,A.left),A},l(C,L,V));return w.width=w.right-w.left,w.height=w.bottom-w.top,w.x=w.left,w.y=w.top,w}},74758:function(T,r,n){"use strict";r.__esModule=!0,r.default=c;var e=k(n(37786)),a=k(n(13390)),t=k(n(12972)),o=n(75573),f=k(n(79697)),b=k(n(40600)),y=k(n(10798)),S=n(63618);function k(i){return i&&i.__esModule?i:{default:i}}function h(i){var m=i.getBoundingClientRect(),d=(0,S.round)(m.width)/i.offsetWidth||1,u=(0,S.round)(m.height)/i.offsetHeight||1;return d!==1||u!==1}function c(i,m,d){d===void 0&&(d=!1);var u=(0,o.isHTMLElement)(m),s=(0,o.isHTMLElement)(m)&&h(m),l=(0,b.default)(m),v=(0,e.default)(i,s,d),N={scrollLeft:0,scrollTop:0},C={x:0,y:0};return(u||!u&&!d)&&(((0,t.default)(m)!=="body"||(0,y.default)(l))&&(N=(0,a.default)(m)),(0,o.isHTMLElement)(m)?(C=(0,e.default)(m,!0),C.x+=m.clientLeft,C.y+=m.clientTop):l&&(C.x=(0,f.default)(l))),{x:v.left+N.scrollLeft-C.x,y:v.top+N.scrollTop-C.y,width:v.width,height:v.height}}},16599:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(95115));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return(0,e.default)(o).getComputedStyle(o)}},40600:function(T,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(75573);function a(t){return(((0,e.isElement)(t)?t.ownerDocument:t.document)||window.document).documentElement}},79752:function(T,r,n){"use strict";r.__esModule=!0,r.default=y;var e=b(n(40600)),a=b(n(16599)),t=b(n(79697)),o=b(n(43750)),f=n(63618);function b(S){return S&&S.__esModule?S:{default:S}}function y(S){var k,h=(0,e.default)(S),c=(0,o.default)(S),i=(k=S.ownerDocument)==null?void 0:k.body,m=(0,f.max)(h.scrollWidth,h.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),d=(0,f.max)(h.scrollHeight,h.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),u=-c.scrollLeft+(0,t.default)(S),s=-c.scrollTop;return(0,a.default)(i||h).direction==="rtl"&&(u+=(0,f.max)(h.clientWidth,i?i.clientWidth:0)-m),{width:m,height:d,x:u,y:s}}},3073:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},28811:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(37786));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),b=o.offsetWidth,y=o.offsetHeight;return Math.abs(f.width-b)<=1&&(b=f.width),Math.abs(f.height-y)<=1&&(y=f.height),{x:o.offsetLeft,y:o.offsetTop,width:b,height:y}}},12972:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e?(e.nodeName||"").toLowerCase():null}},13390:function(T,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(43750)),a=f(n(95115)),t=n(75573),o=f(n(3073));function f(y){return y&&y.__esModule?y:{default:y}}function b(y){return y===(0,a.default)(y)||!(0,t.isHTMLElement)(y)?(0,e.default)(y):(0,o.default)(y)}},44896:function(T,r,n){"use strict";r.__esModule=!0,r.default=c;var e=S(n(95115)),a=S(n(12972)),t=S(n(16599)),o=n(75573),f=S(n(87031)),b=S(n(57819)),y=S(n(35366));function S(i){return i&&i.__esModule?i:{default:i}}function k(i){return!(0,o.isHTMLElement)(i)||(0,t.default)(i).position==="fixed"?null:i.offsetParent}function h(i){var m=/firefox/i.test((0,y.default)()),d=/Trident/i.test((0,y.default)());if(d&&(0,o.isHTMLElement)(i)){var u=(0,t.default)(i);if(u.position==="fixed")return null}var s=(0,b.default)(i);for((0,o.isShadowRoot)(s)&&(s=s.host);(0,o.isHTMLElement)(s)&&["html","body"].indexOf((0,a.default)(s))<0;){var l=(0,t.default)(s);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||m&&l.willChange==="filter"||m&&l.filter&&l.filter!=="none")return s;s=s.parentNode}return null}function c(i){for(var m=(0,e.default)(i),d=k(i);d&&(0,f.default)(d)&&(0,t.default)(d).position==="static";)d=k(d);return d&&((0,a.default)(d)==="html"||(0,a.default)(d)==="body"&&(0,t.default)(d).position==="static")?m:d||h(i)||m}},57819:function(T,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(12972)),a=o(n(40600)),t=n(75573);function o(b){return b&&b.__esModule?b:{default:b}}function f(b){return(0,e.default)(b)==="html"?b:b.assignedSlot||b.parentNode||((0,t.isShadowRoot)(b)?b.host:null)||(0,a.default)(b)}},24426:function(T,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(57819)),a=f(n(10798)),t=f(n(12972)),o=n(75573);function f(y){return y&&y.__esModule?y:{default:y}}function b(y){return["html","body","#document"].indexOf((0,t.default)(y))>=0?y.ownerDocument.body:(0,o.isHTMLElement)(y)&&(0,a.default)(y)?y:b((0,e.default)(y))}},87991:function(T,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(95115)),a=f(n(40600)),t=f(n(79697)),o=f(n(89331));function f(y){return y&&y.__esModule?y:{default:y}}function b(y,S){var k=(0,e.default)(y),h=(0,a.default)(y),c=k.visualViewport,i=h.clientWidth,m=h.clientHeight,d=0,u=0;if(c){i=c.width,m=c.height;var s=(0,o.default)();(s||!s&&S==="fixed")&&(d=c.offsetLeft,u=c.offsetTop)}return{width:i,height:m,x:d+(0,t.default)(y),y:u}}},95115:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var a=e.ownerDocument;return a&&a.defaultView||window}return e}},43750:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(95115));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),b=f.pageXOffset,y=f.pageYOffset;return{scrollLeft:b,scrollTop:y}}},79697:function(T,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(37786)),a=o(n(40600)),t=o(n(43750));function o(b){return b&&b.__esModule?b:{default:b}}function f(b){return(0,e.default)((0,a.default)(b)).left+(0,t.default)(b).scrollLeft}},75573:function(T,r,n){"use strict";r.__esModule=!0,r.isElement=t,r.isHTMLElement=o,r.isShadowRoot=f;var e=a(n(95115));function a(b){return b&&b.__esModule?b:{default:b}}function t(b){var y=(0,e.default)(b).Element;return b instanceof y||b instanceof Element}function o(b){var y=(0,e.default)(b).HTMLElement;return b instanceof y||b instanceof HTMLElement}function f(b){if(typeof ShadowRoot=="undefined")return!1;var y=(0,e.default)(b).ShadowRoot;return b instanceof y||b instanceof ShadowRoot}},89331:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(35366));function a(o){return o&&o.__esModule?o:{default:o}}function t(){return!/^((?!chrome|android).)*safari/i.test((0,e.default)())}},10798:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(16599));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),b=f.overflow,y=f.overflowX,S=f.overflowY;return/auto|scroll|overlay|hidden/.test(b+S+y)}},87031:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(12972));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return["table","td","th"].indexOf((0,e.default)(o))>=0}},98309:function(T,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(24426)),a=f(n(57819)),t=f(n(95115)),o=f(n(10798));function f(y){return y&&y.__esModule?y:{default:y}}function b(y,S){var k;S===void 0&&(S=[]);var h=(0,e.default)(y),c=h===((k=y.ownerDocument)==null?void 0:k.body),i=(0,t.default)(h),m=c?[i].concat(i.visualViewport||[],(0,o.default)(h)?h:[]):h,d=S.concat(m);return c?d:d.concat(b((0,a.default)(m)))}},46206:function(T,r){"use strict";r.__esModule=!0,r.write=r.viewport=r.variationPlacements=r.top=r.start=r.right=r.reference=r.read=r.popper=r.placements=r.modifierPhases=r.main=r.left=r.end=r.clippingParents=r.bottom=r.beforeWrite=r.beforeRead=r.beforeMain=r.basePlacements=r.auto=r.afterWrite=r.afterRead=r.afterMain=void 0;var n=r.top="top",e=r.bottom="bottom",a=r.right="right",t=r.left="left",o=r.auto="auto",f=r.basePlacements=[n,e,a,t],b=r.start="start",y=r.end="end",S=r.clippingParents="clippingParents",k=r.viewport="viewport",h=r.popper="popper",c=r.reference="reference",i=r.variationPlacements=f.reduce(function(B,I){return B.concat([I+"-"+b,I+"-"+y])},[]),m=r.placements=[].concat(f,[o]).reduce(function(B,I){return B.concat([I,I+"-"+b,I+"-"+y])},[]),d=r.beforeRead="beforeRead",u=r.read="read",s=r.afterRead="afterRead",l=r.beforeMain="beforeMain",v=r.main="main",N=r.afterMain="afterMain",C=r.beforeWrite="beforeWrite",p=r.write="write",g=r.afterWrite="afterWrite",V=r.modifierPhases=[d,u,s,l,v,N,C,p,g]},95996:function(T,r,n){"use strict";r.__esModule=!0;var e={popperGenerator:!0,detectOverflow:!0,createPopperBase:!0,createPopper:!0,createPopperLite:!0};r.popperGenerator=r.detectOverflow=r.createPopperLite=r.createPopperBase=r.createPopper=void 0;var a=n(46206);Object.keys(a).forEach(function(y){y==="default"||y==="__esModule"||Object.prototype.hasOwnProperty.call(e,y)||y in r&&r[y]===a[y]||(r[y]=a[y])});var t=n(39805);Object.keys(t).forEach(function(y){y==="default"||y==="__esModule"||Object.prototype.hasOwnProperty.call(e,y)||y in r&&r[y]===t[y]||(r[y]=t[y])});var o=n(96376);r.popperGenerator=o.popperGenerator,r.detectOverflow=o.detectOverflow,r.createPopperBase=o.createPopper;var f=n(83312);r.createPopper=f.createPopper;var b=n(2473);r.createPopperLite=b.createPopper},19975:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=t(n(12972)),a=n(75573);function t(y){return y&&y.__esModule?y:{default:y}}function o(y){var S=y.state;Object.keys(S.elements).forEach(function(k){var h=S.styles[k]||{},c=S.attributes[k]||{},i=S.elements[k];!(0,a.isHTMLElement)(i)||!(0,e.default)(i)||(Object.assign(i.style,h),Object.keys(c).forEach(function(m){var d=c[m];d===!1?i.removeAttribute(m):i.setAttribute(m,d===!0?"":d)}))})}function f(y){var S=y.state,k={popper:{position:S.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(S.elements.popper.style,k.popper),S.styles=k,S.elements.arrow&&Object.assign(S.elements.arrow.style,k.arrow),function(){Object.keys(S.elements).forEach(function(h){var c=S.elements[h],i=S.attributes[h]||{},m=Object.keys(S.styles.hasOwnProperty(h)?S.styles[h]:k[h]),d=m.reduce(function(u,s){return u[s]="",u},{});!(0,a.isHTMLElement)(c)||!(0,e.default)(c)||(Object.assign(c.style,d),Object.keys(i).forEach(function(u){c.removeAttribute(u)}))})}}var b=r.default={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:f,requires:["computeStyles"]}},52744:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=h(n(83104)),a=h(n(28811)),t=h(n(4206)),o=h(n(44896)),f=h(n(41199)),b=n(28595),y=h(n(43286)),S=h(n(81447)),k=n(46206);function h(u){return u&&u.__esModule?u:{default:u}}var c=function(){function u(s,l){return s=typeof s=="function"?s(Object.assign({},l.rects,{placement:l.placement})):s,(0,y.default)(typeof s!="number"?s:(0,S.default)(s,k.basePlacements))}return u}();function i(u){var s,l=u.state,v=u.name,N=u.options,C=l.elements.arrow,p=l.modifiersData.popperOffsets,g=(0,e.default)(l.placement),V=(0,f.default)(g),B=[k.left,k.right].indexOf(g)>=0,I=B?"height":"width";if(!(!C||!p)){var L=c(N.padding,l),w=(0,a.default)(C),A=V==="y"?k.top:k.left,x=V==="y"?k.bottom:k.right,E=l.rects.reference[I]+l.rects.reference[V]-p[V]-l.rects.popper[I],P=p[V]-l.rects.reference[V],j=(0,o.default)(C),M=j?V==="y"?j.clientHeight||0:j.clientWidth||0:0,R=E/2-P/2,D=L[A],W=M-w[I]-L[x],_=M/2-w[I]/2+R,U=(0,b.within)(D,_,W),K=V;l.modifiersData[v]=(s={},s[K]=U,s.centerOffset=U-_,s)}}function m(u){var s=u.state,l=u.options,v=l.element,N=v===void 0?"[data-popper-arrow]":v;N!=null&&(typeof N=="string"&&(N=s.elements.popper.querySelector(N),!N)||(0,t.default)(s.elements.popper,N)&&(s.elements.arrow=N))}var d=r.default={name:"arrow",enabled:!0,phase:"main",fn:i,effect:m,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},59894:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.mapToStyles=i;var e=n(46206),a=k(n(44896)),t=k(n(95115)),o=k(n(40600)),f=k(n(16599)),b=k(n(83104)),y=k(n(45)),S=n(63618);function k(u){return u&&u.__esModule?u:{default:u}}var h={top:"auto",right:"auto",bottom:"auto",left:"auto"};function c(u,s){var l=u.x,v=u.y,N=s.devicePixelRatio||1;return{x:(0,S.round)(l*N)/N||0,y:(0,S.round)(v*N)/N||0}}function i(u){var s,l=u.popper,v=u.popperRect,N=u.placement,C=u.variation,p=u.offsets,g=u.position,V=u.gpuAcceleration,B=u.adaptive,I=u.roundOffsets,L=u.isFixed,w=p.x,A=w===void 0?0:w,x=p.y,E=x===void 0?0:x,P=typeof I=="function"?I({x:A,y:E}):{x:A,y:E};A=P.x,E=P.y;var j=p.hasOwnProperty("x"),M=p.hasOwnProperty("y"),R=e.left,D=e.top,W=window;if(B){var _=(0,a.default)(l),U="clientHeight",K="clientWidth";if(_===(0,t.default)(l)&&(_=(0,o.default)(l),(0,f.default)(_).position!=="static"&&g==="absolute"&&(U="scrollHeight",K="scrollWidth")),_=_,N===e.top||(N===e.left||N===e.right)&&C===e.end){D=e.bottom;var G=L&&_===W&&W.visualViewport?W.visualViewport.height:_[U];E-=G-v.height,E*=V?1:-1}if(N===e.left||(N===e.top||N===e.bottom)&&C===e.end){R=e.right;var $=L&&_===W&&W.visualViewport?W.visualViewport.width:_[K];A-=$-v.width,A*=V?1:-1}}var Q=Object.assign({position:g},B&&h),J=I===!0?c({x:A,y:E},(0,t.default)(l)):{x:A,y:E};if(A=J.x,E=J.y,V){var ie;return Object.assign({},Q,(ie={},ie[D]=M?"0":"",ie[R]=j?"0":"",ie.transform=(W.devicePixelRatio||1)<=1?"translate("+A+"px, "+E+"px)":"translate3d("+A+"px, "+E+"px, 0)",ie))}return Object.assign({},Q,(s={},s[D]=M?E+"px":"",s[R]=j?A+"px":"",s.transform="",s))}function m(u){var s=u.state,l=u.options,v=l.gpuAcceleration,N=v===void 0?!0:v,C=l.adaptive,p=C===void 0?!0:C,g=l.roundOffsets,V=g===void 0?!0:g,B={placement:(0,b.default)(s.placement),variation:(0,y.default)(s.placement),popper:s.elements.popper,popperRect:s.rects.popper,gpuAcceleration:N,isFixed:s.options.strategy==="fixed"};s.modifiersData.popperOffsets!=null&&(s.styles.popper=Object.assign({},s.styles.popper,i(Object.assign({},B,{offsets:s.modifiersData.popperOffsets,position:s.options.strategy,adaptive:p,roundOffsets:V})))),s.modifiersData.arrow!=null&&(s.styles.arrow=Object.assign({},s.styles.arrow,i(Object.assign({},B,{offsets:s.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:V})))),s.attributes.popper=Object.assign({},s.attributes.popper,{"data-popper-placement":s.placement})}var d=r.default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:m,data:{}}},36692:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(95115));function a(b){return b&&b.__esModule?b:{default:b}}var t={passive:!0};function o(b){var y=b.state,S=b.instance,k=b.options,h=k.scroll,c=h===void 0?!0:h,i=k.resize,m=i===void 0?!0:i,d=(0,e.default)(y.elements.popper),u=[].concat(y.scrollParents.reference,y.scrollParents.popper);return c&&u.forEach(function(s){s.addEventListener("scroll",S.update,t)}),m&&d.addEventListener("resize",S.update,t),function(){c&&u.forEach(function(s){s.removeEventListener("scroll",S.update,t)}),m&&d.removeEventListener("resize",S.update,t)}}var f=r.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){function b(){}return b}(),effect:o,data:{}}},23798:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=S(n(71376)),a=S(n(83104)),t=S(n(86459)),o=S(n(17633)),f=S(n(9041)),b=n(46206),y=S(n(45));function S(i){return i&&i.__esModule?i:{default:i}}function k(i){if((0,a.default)(i)===b.auto)return[];var m=(0,e.default)(i);return[(0,t.default)(i),m,(0,t.default)(m)]}function h(i){var m=i.state,d=i.options,u=i.name;if(!m.modifiersData[u]._skip){for(var s=d.mainAxis,l=s===void 0?!0:s,v=d.altAxis,N=v===void 0?!0:v,C=d.fallbackPlacements,p=d.padding,g=d.boundary,V=d.rootBoundary,B=d.altBoundary,I=d.flipVariations,L=I===void 0?!0:I,w=d.allowedAutoPlacements,A=m.options.placement,x=(0,a.default)(A),E=x===A,P=C||(E||!L?[(0,e.default)(A)]:k(A)),j=[A].concat(P).reduce(function(ce,ee){return ce.concat((0,a.default)(ee)===b.auto?(0,f.default)(m,{placement:ee,boundary:g,rootBoundary:V,padding:p,flipVariations:L,allowedAutoPlacements:w}):ee)},[]),M=m.rects.reference,R=m.rects.popper,D=new Map,W=!0,_=j[0],U=0;U=0,J=Q?"width":"height",ie=(0,o.default)(m,{placement:K,boundary:g,rootBoundary:V,altBoundary:B,padding:p}),ne=Q?$?b.right:b.left:$?b.bottom:b.top;M[J]>R[J]&&(ne=(0,e.default)(ne));var se=(0,e.default)(ne),Ce=[];if(l&&Ce.push(ie[G]<=0),N&&Ce.push(ie[ne]<=0,ie[se]<=0),Ce.every(function(ce){return ce})){_=K,W=!1;break}D.set(K,Ce)}if(W)for(var Se=L?3:1,ye=function(){function ce(ee){var fe=j.find(function(me){var te=D.get(me);if(te)return te.slice(0,ee).every(function(be){return be})});if(fe)return _=fe,"break"}return ce}(),he=Se;he>0;he--){var oe=ye(he);if(oe==="break")break}m.placement!==_&&(m.modifiersData[u]._skip=!0,m.placement=_,m.reset=!0)}}var c=r.default={name:"flip",enabled:!0,phase:"main",fn:h,requiresIfExists:["offset"],data:{_skip:!1}}},83761:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(46206),a=t(n(17633));function t(S){return S&&S.__esModule?S:{default:S}}function o(S,k,h){return h===void 0&&(h={x:0,y:0}),{top:S.top-k.height-h.y,right:S.right-k.width+h.x,bottom:S.bottom-k.height+h.y,left:S.left-k.width-h.x}}function f(S){return[e.top,e.right,e.bottom,e.left].some(function(k){return S[k]>=0})}function b(S){var k=S.state,h=S.name,c=k.rects.reference,i=k.rects.popper,m=k.modifiersData.preventOverflow,d=(0,a.default)(k,{elementContext:"reference"}),u=(0,a.default)(k,{altBoundary:!0}),s=o(d,c),l=o(u,i,m),v=f(s),N=f(l);k.modifiersData[h]={referenceClippingOffsets:s,popperEscapeOffsets:l,isReferenceHidden:v,hasPopperEscaped:N},k.attributes.popper=Object.assign({},k.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":N})}var y=r.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:b}},39805:function(T,r,n){"use strict";r.__esModule=!0,r.preventOverflow=r.popperOffsets=r.offset=r.hide=r.flip=r.eventListeners=r.computeStyles=r.arrow=r.applyStyles=void 0;var e=h(n(19975));r.applyStyles=e.default;var a=h(n(52744));r.arrow=a.default;var t=h(n(59894));r.computeStyles=t.default;var o=h(n(36692));r.eventListeners=o.default;var f=h(n(23798));r.flip=f.default;var b=h(n(83761));r.hide=b.default;var y=h(n(61410));r.offset=y.default;var S=h(n(40107));r.popperOffsets=S.default;var k=h(n(75137));r.preventOverflow=k.default;function h(c){return c&&c.__esModule?c:{default:c}}},61410:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.distanceAndSkiddingToXY=o;var e=t(n(83104)),a=n(46206);function t(y){return y&&y.__esModule?y:{default:y}}function o(y,S,k){var h=(0,e.default)(y),c=[a.left,a.top].indexOf(h)>=0?-1:1,i=typeof k=="function"?k(Object.assign({},S,{placement:y})):k,m=i[0],d=i[1];return m=m||0,d=(d||0)*c,[a.left,a.right].indexOf(h)>=0?{x:d,y:m}:{x:m,y:d}}function f(y){var S=y.state,k=y.options,h=y.name,c=k.offset,i=c===void 0?[0,0]:c,m=a.placements.reduce(function(l,v){return l[v]=o(v,S.rects,i),l},{}),d=m[S.placement],u=d.x,s=d.y;S.modifiersData.popperOffsets!=null&&(S.modifiersData.popperOffsets.x+=u,S.modifiersData.popperOffsets.y+=s),S.modifiersData[h]=m}var b=r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:f}},40107:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(89951));function a(f){return f&&f.__esModule?f:{default:f}}function t(f){var b=f.state,y=f.name;b.modifiersData[y]=(0,e.default)({reference:b.rects.reference,element:b.rects.popper,strategy:"absolute",placement:b.placement})}var o=r.default={name:"popperOffsets",enabled:!0,phase:"read",fn:t,data:{}}},75137:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(46206),a=i(n(83104)),t=i(n(41199)),o=i(n(28066)),f=n(28595),b=i(n(28811)),y=i(n(44896)),S=i(n(17633)),k=i(n(45)),h=i(n(34780)),c=n(63618);function i(u){return u&&u.__esModule?u:{default:u}}function m(u){var s=u.state,l=u.options,v=u.name,N=l.mainAxis,C=N===void 0?!0:N,p=l.altAxis,g=p===void 0?!1:p,V=l.boundary,B=l.rootBoundary,I=l.altBoundary,L=l.padding,w=l.tether,A=w===void 0?!0:w,x=l.tetherOffset,E=x===void 0?0:x,P=(0,S.default)(s,{boundary:V,rootBoundary:B,padding:L,altBoundary:I}),j=(0,a.default)(s.placement),M=(0,k.default)(s.placement),R=!M,D=(0,t.default)(j),W=(0,o.default)(D),_=s.modifiersData.popperOffsets,U=s.rects.reference,K=s.rects.popper,G=typeof E=="function"?E(Object.assign({},s.rects,{placement:s.placement})):E,$=typeof G=="number"?{mainAxis:G,altAxis:G}:Object.assign({mainAxis:0,altAxis:0},G),Q=s.modifiersData.offset?s.modifiersData.offset[s.placement]:null,J={x:0,y:0};if(_){if(C){var ie,ne=D==="y"?e.top:e.left,se=D==="y"?e.bottom:e.right,Ce=D==="y"?"height":"width",Se=_[D],ye=Se+P[ne],he=Se-P[se],oe=A?-K[Ce]/2:0,ce=M===e.start?U[Ce]:K[Ce],ee=M===e.start?-K[Ce]:-U[Ce],fe=s.elements.arrow,me=A&&fe?(0,b.default)(fe):{width:0,height:0},te=s.modifiersData["arrow#persistent"]?s.modifiersData["arrow#persistent"].padding:(0,h.default)(),be=te[ne],pe=te[se],ve=(0,f.within)(0,U[Ce],me[Ce]),Be=R?U[Ce]/2-oe-ve-be-$.mainAxis:ce-ve-be-$.mainAxis,ge=R?-U[Ce]/2+oe+ve+pe+$.mainAxis:ee+ve+pe+$.mainAxis,Le=s.elements.arrow&&(0,y.default)(s.elements.arrow),we=Le?D==="y"?Le.clientTop||0:Le.clientLeft||0:0,xe=(ie=Q==null?void 0:Q[D])!=null?ie:0,Re=Se+Be-xe-we,ze=Se+ge-xe,Ve=(0,f.within)(A?(0,c.min)(ye,Re):ye,Se,A?(0,c.max)(he,ze):he);_[D]=Ve,J[D]=Ve-Se}if(g){var re,le=D==="x"?e.top:e.left,Ne=D==="x"?e.bottom:e.right,de=_[W],ke=W==="y"?"height":"width",Me=de+P[le],je=de-P[Ne],Fe=[e.top,e.left].indexOf(j)!==-1,He=(re=Q==null?void 0:Q[W])!=null?re:0,_e=Fe?Me:de-U[ke]-K[ke]-He+$.altAxis,Ue=Fe?de+U[ke]+K[ke]-He-$.altAxis:je,Xe=A&&Fe?(0,f.withinMaxClamp)(_e,de,Ue):(0,f.within)(A?_e:Me,de,A?Ue:je);_[W]=Xe,J[W]=Xe-de}s.modifiersData[v]=J}}var d=r.default={name:"preventOverflow",enabled:!0,phase:"main",fn:m,requiresIfExists:["offset"]}},2473:function(T,r,n){"use strict";r.__esModule=!0,r.defaultModifiers=r.createPopper=void 0;var e=n(96376);r.popperGenerator=e.popperGenerator,r.detectOverflow=e.detectOverflow;var a=b(n(36692)),t=b(n(40107)),o=b(n(59894)),f=b(n(19975));function b(k){return k&&k.__esModule?k:{default:k}}var y=r.defaultModifiers=[a.default,t.default,o.default,f.default],S=r.createPopper=(0,e.popperGenerator)({defaultModifiers:y})},83312:function(T,r,n){"use strict";r.__esModule=!0;var e={createPopper:!0,createPopperLite:!0,defaultModifiers:!0,popperGenerator:!0,detectOverflow:!0};r.defaultModifiers=r.createPopperLite=r.createPopper=void 0;var a=n(96376);r.popperGenerator=a.popperGenerator,r.detectOverflow=a.detectOverflow;var t=d(n(36692)),o=d(n(40107)),f=d(n(59894)),b=d(n(19975)),y=d(n(61410)),S=d(n(23798)),k=d(n(75137)),h=d(n(52744)),c=d(n(83761)),i=n(2473);r.createPopperLite=i.createPopper;var m=n(39805);Object.keys(m).forEach(function(l){l==="default"||l==="__esModule"||Object.prototype.hasOwnProperty.call(e,l)||l in r&&r[l]===m[l]||(r[l]=m[l])});function d(l){return l&&l.__esModule?l:{default:l}}var u=r.defaultModifiers=[t.default,o.default,f.default,b.default,y.default,S.default,k.default,h.default,c.default],s=r.createPopperLite=r.createPopper=(0,a.popperGenerator)({defaultModifiers:u})},9041:function(T,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(45)),a=n(46206),t=f(n(17633)),o=f(n(83104));function f(y){return y&&y.__esModule?y:{default:y}}function b(y,S){S===void 0&&(S={});var k=S,h=k.placement,c=k.boundary,i=k.rootBoundary,m=k.padding,d=k.flipVariations,u=k.allowedAutoPlacements,s=u===void 0?a.placements:u,l=(0,e.default)(h),v=l?d?a.variationPlacements:a.variationPlacements.filter(function(p){return(0,e.default)(p)===l}):a.basePlacements,N=v.filter(function(p){return s.indexOf(p)>=0});N.length===0&&(N=v);var C=N.reduce(function(p,g){return p[g]=(0,t.default)(y,{placement:g,boundary:c,rootBoundary:i,padding:m})[(0,o.default)(g)],p},{});return Object.keys(C).sort(function(p,g){return C[p]-C[g]})}},89951:function(T,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(83104)),a=f(n(45)),t=f(n(41199)),o=n(46206);function f(y){return y&&y.__esModule?y:{default:y}}function b(y){var S=y.reference,k=y.element,h=y.placement,c=h?(0,e.default)(h):null,i=h?(0,a.default)(h):null,m=S.x+S.width/2-k.width/2,d=S.y+S.height/2-k.height/2,u;switch(c){case o.top:u={x:m,y:S.y-k.height};break;case o.bottom:u={x:m,y:S.y+S.height};break;case o.right:u={x:S.x+S.width,y:d};break;case o.left:u={x:S.x-k.width,y:d};break;default:u={x:S.x,y:S.y}}var s=c?(0,t.default)(c):null;if(s!=null){var l=s==="y"?"height":"width";switch(i){case o.start:u[s]=u[s]-(S[l]/2-k[l]/2);break;case o.end:u[s]=u[s]+(S[l]/2-k[l]/2);break;default:}}return u}},10579:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a;return function(){return a||(a=new Promise(function(t){Promise.resolve().then(function(){a=void 0,t(e())})})),a}}},17633:function(T,r,n){"use strict";r.__esModule=!0,r.default=c;var e=h(n(49035)),a=h(n(40600)),t=h(n(37786)),o=h(n(89951)),f=h(n(81666)),b=n(46206),y=n(75573),S=h(n(43286)),k=h(n(81447));function h(i){return i&&i.__esModule?i:{default:i}}function c(i,m){m===void 0&&(m={});var d=m,u=d.placement,s=u===void 0?i.placement:u,l=d.strategy,v=l===void 0?i.strategy:l,N=d.boundary,C=N===void 0?b.clippingParents:N,p=d.rootBoundary,g=p===void 0?b.viewport:p,V=d.elementContext,B=V===void 0?b.popper:V,I=d.altBoundary,L=I===void 0?!1:I,w=d.padding,A=w===void 0?0:w,x=(0,S.default)(typeof A!="number"?A:(0,k.default)(A,b.basePlacements)),E=B===b.popper?b.reference:b.popper,P=i.rects.popper,j=i.elements[L?E:B],M=(0,e.default)((0,y.isElement)(j)?j:j.contextElement||(0,a.default)(i.elements.popper),C,g,v),R=(0,t.default)(i.elements.reference),D=(0,o.default)({reference:R,element:P,strategy:"absolute",placement:s}),W=(0,f.default)(Object.assign({},P,D)),_=B===b.popper?W:R,U={top:M.top-_.top+x.top,bottom:_.bottom-M.bottom+x.bottom,left:M.left-_.left+x.left,right:_.right-M.right+x.right},K=i.modifiersData.offset;if(B===b.popper&&K){var G=K[s];Object.keys(U).forEach(function($){var Q=[b.right,b.bottom].indexOf($)>=0?1:-1,J=[b.top,b.bottom].indexOf($)>=0?"y":"x";U[$]+=G[J]*Q})}return U}},81447:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e,a){return a.reduce(function(t,o){return t[o]=e,t},{})}},28066:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e==="x"?"y":"x"}},83104:function(T,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(46206);function a(t){return t.split("-")[0]}},34780:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(){return{top:0,right:0,bottom:0,left:0}}},41199:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}},71376:function(T,r){"use strict";r.__esModule=!0,r.default=e;var n={left:"right",right:"left",bottom:"top",top:"bottom"};function e(a){return a.replace(/left|right|bottom|top/g,function(t){return n[t]})}},86459:function(T,r){"use strict";r.__esModule=!0,r.default=e;var n={start:"end",end:"start"};function e(a){return a.replace(/start|end/g,function(t){return n[t]})}},45:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e.split("-")[1]}},63618:function(T,r){"use strict";r.__esModule=!0,r.round=r.min=r.max=void 0;var n=r.max=Math.max,e=r.min=Math.min,a=r.round=Math.round},56500:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a=e.reduce(function(t,o){var f=t[o.name];return t[o.name]=f?Object.assign({},f,o,{options:Object.assign({},f.options,o.options),data:Object.assign({},f.data,o.data)}):o,t},{});return Object.keys(a).map(function(t){return a[t]})}},43286:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(34780));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return Object.assign({},(0,e.default)(),o)}},33118:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=n(46206);function a(o){var f=new Map,b=new Set,y=[];o.forEach(function(k){f.set(k.name,k)});function S(k){b.add(k.name);var h=[].concat(k.requires||[],k.requiresIfExists||[]);h.forEach(function(c){if(!b.has(c)){var i=f.get(c);i&&S(i)}}),y.push(k)}return o.forEach(function(k){b.has(k.name)||S(k)}),y}function t(o){var f=a(o);return e.modifierPhases.reduce(function(b,y){return b.concat(f.filter(function(S){return S.phase===y}))},[])}},81666:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}},35366:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(a){return a.brand+"/"+a.version}).join(" "):navigator.userAgent}},28595:function(T,r,n){"use strict";r.__esModule=!0,r.within=a,r.withinMaxClamp=t;var e=n(63618);function a(o,f,b){return(0,e.max)(o,(0,e.min)(f,b))}function t(o,f,b){var y=a(o,f,b);return y>b?b:y}},15875:function(T,r){"use strict";r.__esModule=!0,r.VNodeFlags=r.ChildFlags=void 0;var n;(function(a){a[a.Unknown=0]="Unknown",a[a.HtmlElement=1]="HtmlElement",a[a.ComponentUnknown=2]="ComponentUnknown",a[a.ComponentClass=4]="ComponentClass",a[a.ComponentFunction=8]="ComponentFunction",a[a.Text=16]="Text",a[a.SvgElement=32]="SvgElement",a[a.InputElement=64]="InputElement",a[a.TextareaElement=128]="TextareaElement",a[a.SelectElement=256]="SelectElement",a[a.Portal=1024]="Portal",a[a.ReCreate=2048]="ReCreate",a[a.ContentEditable=4096]="ContentEditable",a[a.Fragment=8192]="Fragment",a[a.InUse=16384]="InUse",a[a.ForwardRef=32768]="ForwardRef",a[a.Normalized=65536]="Normalized",a[a.ForwardRefComponent=32776]="ForwardRefComponent",a[a.FormElement=448]="FormElement",a[a.Element=481]="Element",a[a.Component=14]="Component",a[a.DOMRef=1521]="DOMRef",a[a.InUseOrNormalized=81920]="InUseOrNormalized",a[a.ClearInUse=-16385]="ClearInUse",a[a.ComponentKnown=12]="ComponentKnown"})(n||(r.VNodeFlags=n={}));var e;(function(a){a[a.UnknownChildren=0]="UnknownChildren",a[a.HasInvalidChildren=1]="HasInvalidChildren",a[a.HasVNodeChildren=2]="HasVNodeChildren",a[a.HasNonKeyedChildren=4]="HasNonKeyedChildren",a[a.HasKeyedChildren=8]="HasKeyedChildren",a[a.HasTextChildren=16]="HasTextChildren",a[a.MultipleChildren=12]="MultipleChildren"})(e||(r.ChildFlags=e={}))},89292:function(T,r){"use strict";r.__esModule=!0,r.Fragment=r.EMPTY_OBJ=r.Component=r.AnimationQueues=void 0,r._CI=Ot,r._HI=me,r._M=Ke,r._MCCC=Ft,r._ME=Dt,r._MFCC=Wt,r._MP=Pt,r._MR=at,r._RFC=gt,r.__render=zt,r.createComponentVNode=ie,r.createFragment=se,r.createPortal=oe,r.createRef=nn,r.createRenderer=En,r.createTextVNode=ne,r.createVNode=G,r.directClone=ye,r.findDOMFromVNode=V,r.forwardRef=on,r.getFlagsForElementVnode=ee,r.linkEvent=h,r.normalizeProps=Ce,r.options=void 0,r.render=Ht,r.rerender=$t,r.version=void 0;var n=Array.isArray;function e(O){var F=typeof O;return F==="string"||F==="number"}function a(O){return O==null}function t(O){return O===null||O===!1||O===!0||O===void 0}function o(O){return typeof O=="function"}function f(O){return typeof O=="string"}function b(O){return typeof O=="number"}function y(O){return O===null}function S(O){return O===void 0}function k(O,F){var z={};if(O)for(var H in O)z[H]=O[H];if(F)for(var X in F)z[X]=F[X];return z}function h(O,F){return o(F)?{data:O,event:F}:null}function c(O){return!y(O)&&typeof O=="object"}var i=r.EMPTY_OBJ={},m=r.Fragment="$F",d=r.AnimationQueues=function(){function O(){this.componentDidAppear=[],this.componentWillDisappear=[],this.componentWillMove=[]}return O}();function u(O){return O.substring(2).toLowerCase()}function s(O,F){O.appendChild(F)}function l(O,F,z){y(z)?s(O,F):O.insertBefore(F,z)}function v(O,F){return F?document.createElementNS("http://www.w3.org/2000/svg",O):document.createElement(O)}function N(O,F,z){O.replaceChild(F,z)}function C(O,F){O.removeChild(F)}function p(O){for(var F=0;F0?B(z.componentWillDisappear,w(O,F)):L(O,F,!1)}function x(O,F,z,H,X,Z,q,ae){O.componentWillMove.push({dom:H,fn:function(){function ue(){q&4?z.componentWillMove(F,X,H):q&8&&z.onComponentWillMove(F,X,H,ae)}return ue}(),next:Z,parent:X})}function E(O,F,z,H,X){var Z,q,ae=F.flags;do{var ue=F.flags;if(ue&1521){!a(Z)&&(o(Z.componentWillMove)||o(Z.onComponentWillMove))?x(X,O,Z,F.dom,z,H,ae,q):l(z,F.dom,H);return}var Te=F.children;if(ue&4)Z=F.children,q=F.props,F=Te.$LI;else if(ue&8)Z=F.ref,q=F.props,F=Te;else if(ue&8192)if(F.childFlags===2)F=Te;else{for(var Ie=0,Ee=Te.length;Ie0,Te=y(ae),Ie=f(ae)&&ae[0]===U;ue||Te||Ie?(z=z||F.slice(0,Z),(ue||Ie)&&(q=ye(q)),(Te||Ie)&&(q.key=U+Z),z.push(q)):z&&z.push(q),q.flags|=65536}}z=z||F,z.length===0?H=1:H=8}else z=F,z.flags|=65536,F.flags&81920&&(z=ye(F)),H=2;return O.children=z,O.childFlags=H,O}function me(O){return t(O)||e(O)?ne(O,null):n(O)?se(O,0,null):O.flags&16384?ye(O):O}var te="http://www.w3.org/1999/xlink",be="http://www.w3.org/XML/1998/namespace",pe={"xlink:actuate":te,"xlink:arcrole":te,"xlink:href":te,"xlink:role":te,"xlink:show":te,"xlink:title":te,"xlink:type":te,"xml:base":be,"xml:lang":be,"xml:space":be};function ve(O){return{onClick:O,onDblClick:O,onFocusIn:O,onFocusOut:O,onKeyDown:O,onKeyPress:O,onKeyUp:O,onMouseDown:O,onMouseMove:O,onMouseUp:O,onTouchEnd:O,onTouchMove:O,onTouchStart:O}}var Be=ve(0),ge=ve(null),Le=ve(!0);function we(O,F){var z=F.$EV;return z||(z=F.$EV=ve(null)),z[O]||++Be[O]===1&&(ge[O]=je(O)),z}function xe(O,F){var z=F.$EV;z&&z[O]&&(--Be[O]===0&&(document.removeEventListener(u(O),ge[O]),ge[O]=null),z[O]=null)}function Re(O,F,z,H){if(o(z))we(O,H)[O]=z;else if(c(z)){if(D(F,z))return;we(O,H)[O]=z}else xe(O,H)}function ze(O){return o(O.composedPath)?O.composedPath()[0]:O.target}function Ve(O,F,z,H){var X=ze(O);do{if(F&&X.disabled)return;var Z=X.$EV;if(Z){var q=Z[z];if(q&&(H.dom=X,q.event?q.event(q.data,O):q(O),O.cancelBubble))return}X=X.parentNode}while(!y(X))}function re(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function le(){return this.defaultPrevented}function Ne(){return this.cancelBubble}function de(O){var F={dom:document};return O.isDefaultPrevented=le,O.isPropagationStopped=Ne,O.stopPropagation=re,Object.defineProperty(O,"currentTarget",{configurable:!0,get:function(){function z(){return F.dom}return z}()}),F}function ke(O){return function(F){if(F.button!==0){F.stopPropagation();return}Ve(F,!0,O,de(F))}}function Me(O){return function(F){Ve(F,!1,O,de(F))}}function je(O){var F=O==="onClick"||O==="onDblClick"?ke(O):Me(O);return document.addEventListener(u(O),F),F}function Fe(O,F){var z=document.createElement("i");return z.innerHTML=F,z.innerHTML===O.innerHTML}function He(O,F,z){if(O[F]){var H=O[F];H.event?H.event(H.data,z):H(z)}else{var X=F.toLowerCase();O[X]&&O[X](z)}}function _e(O,F){var z=function(){function H(X){var Z=this.$V;if(Z){var q=Z.props||i,ae=Z.dom;if(f(O))He(q,O,X);else for(var ue=0;ue-1&&F.options[Z]&&(ae=F.options[Z].value),z&&a(ae)&&(ae=O.defaultValue),rt(H,ae)}}var Zt=_e("onInput",Tt),qt=_e("onChange");function en(O,F){Ue(O,"input",Zt),F.onChange&&Ue(O,"change",qt)}function Tt(O,F,z){var H=O.value,X=F.value;if(a(H)){if(z){var Z=O.defaultValue;!a(Z)&&Z!==X&&(F.defaultValue=Z,F.value=Z)}}else X!==H&&(F.defaultValue=H,F.value=H)}function xt(O,F,z,H,X,Z){O&64?ut(H,z):O&256?wt(H,z,X,F):O&128&&Tt(H,z,X),Z&&(z.$V=F)}function tn(O,F,z){O&64?Bt(F,z):O&256?Jt(F):O&128&&en(F,z)}function At(O){return O.type&&Xe(O.type)?!a(O.checked):!a(O.value)}function nn(){return{current:null}}function on(O){var F={render:O};return F}function st(O){O&&!_(O,null)&&O.current&&(O.current=null)}function at(O,F,z){O&&(o(O)||O.current!==void 0)&&z.push(function(){!_(O,F)&&O.current!==void 0&&(O.current=F)})}function Qe(O,F,z){Ze(O,z),A(O,F,z)}function Ze(O,F){var z=O.flags,H=O.children,X;if(z&481){X=O.ref;var Z=O.props;st(X);var q=O.childFlags;if(!y(Z))for(var ae=Object.keys(Z),ue=0,Te=ae.length;ue0?B(z.componentWillDisappear,rn(F,O)):O.textContent=""}function ft(O,F,z,H){ct(z,H),F.flags&8192?A(F,O,H):mt(O,z,H)}function Et(O,F,z,H,X){O.componentWillDisappear.push(function(Z){H&4?F.componentWillDisappear(z,Z):H&8&&F.onComponentWillDisappear(z,X,Z)})}function an(O){var F=O.event;return function(z){F(O.data,z)}}function cn(O,F,z,H){if(c(z)){if(D(F,z))return;z=an(z)}Ue(H,u(O),z)}function ln(O,F,z){if(a(F)){z.removeAttribute("style");return}var H=z.style,X,Z;if(f(F)){H.cssText=F;return}if(!a(O)&&!f(O)){for(X in F)Z=F[X],Z!==O[X]&&H.setProperty(X,Z);for(X in O)a(F[X])&&H.removeProperty(X)}else for(X in F)Z=F[X],H.setProperty(X,Z)}function dn(O,F,z,H,X){var Z=O&&O.__html||"",q=F&&F.__html||"";Z!==q&&!a(q)&&!Fe(H,q)&&(y(z)||(z.childFlags&12?ct(z.children,X):z.childFlags===2&&Ze(z.children,X),z.children=null,z.childFlags=1),H.innerHTML=q)}function vt(O,F,z,H,X,Z,q,ae){switch(O){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":H.autofocus=!!z;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":H[O]=!!z;break;case"defaultChecked":case"value":case"volume":if(Z&&O==="value")break;var ue=a(z)?"":z;H[O]!==ue&&(H[O]=ue);break;case"style":ln(F,z,H);break;case"dangerouslySetInnerHTML":dn(F,z,q,H,ae);break;default:Le[O]?Re(O,F,z,H):O.charCodeAt(0)===111&&O.charCodeAt(1)===110?cn(O,F,z,H):a(z)?H.removeAttribute(O):X&&pe[O]?H.setAttributeNS(pe[O],O,z):H.setAttribute(O,z);break}}function Pt(O,F,z,H,X,Z){var q=!1,ae=(F&448)>0;ae&&(q=At(z),q&&tn(F,H,z));for(var ue in z)vt(ue,null,z[ue],H,X,q,null,Z);ae&&xt(F,O,H,z,!0,q)}function Mt(O,F,z){var H=me(O.render(F,O.state,z)),X=z;return o(O.getChildContext)&&(X=k(z,O.getChildContext())),O.$CX=X,H}function Ot(O,F,z,H,X,Z){var q=new F(z,H),ae=q.$N=!!(F.getDerivedStateFromProps||q.getSnapshotBeforeUpdate);if(q.$SVG=X,q.$L=Z,O.children=q,q.$BS=!1,q.context=H,q.props===i&&(q.props=z),ae)q.state=P(q,z,q.state);else if(o(q.componentWillMount)){q.$BR=!0,q.componentWillMount();var ue=q.$PS;if(!y(ue)){var Te=q.state;if(y(Te))q.state=ue;else for(var Ie in ue)Te[Ie]=ue[Ie];q.$PS=null}q.$BR=!1}return q.$LI=Mt(q,z,H),q}function gt(O,F){var z=O.props||i;return O.flags&32768?O.type.render(z,O.ref,F):O.type(z,F)}function Ke(O,F,z,H,X,Z,q){var ae=O.flags|=16384;ae&481?Dt(O,F,z,H,X,Z,q):ae&4?mn(O,F,z,H,X,Z,q):ae&8?fn(O,F,z,H,X,Z,q):ae&16?Rt(O,F,X):ae&8192?sn(O,z,F,H,X,Z,q):ae&1024&&un(O,z,F,X,Z,q)}function un(O,F,z,H,X,Z){Ke(O.children,O.ref,F,!1,null,X,Z);var q=he();Rt(q,z,H),O.dom=q.dom}function sn(O,F,z,H,X,Z,q){var ae=O.children,ue=O.childFlags;ue&12&&ae.length===0&&(ue=O.childFlags=2,ae=O.children=he()),ue===2?Ke(ae,z,F,H,X,Z,q):ot(ae,z,F,H,X,Z,q)}function Rt(O,F,z){var H=O.dom=document.createTextNode(O.children);y(F)||l(F,H,z)}function Dt(O,F,z,H,X,Z,q){var ae=O.flags,ue=O.props,Te=O.className,Ie=O.childFlags,Ee=O.dom=v(O.type,H=H||(ae&32)>0),Ae=O.children;if(!a(Te)&&Te!==""&&(H?Ee.setAttribute("class",Te):Ee.className=Te),Ie===16)R(Ee,Ae);else if(Ie!==1){var Pe=H&&O.type!=="foreignObject";Ie===2?(Ae.flags&16384&&(O.children=Ae=ye(Ae)),Ke(Ae,Ee,z,Pe,null,Z,q)):(Ie===8||Ie===4)&&ot(Ae,Ee,z,Pe,null,Z,q)}y(F)||l(F,Ee,X),y(ue)||Pt(O,ae,ue,Ee,H,q),at(O.ref,Ee,Z)}function ot(O,F,z,H,X,Z,q){for(var ae=0;aePe)&&(Ee=V(ae[Pe-1],!1).nextSibling)}Nt(Te,Ie,ae,ue,z,H,X,Ee,O,Z,q)}function Vn(O,F,z,H,X){var Z=O.ref,q=F.ref,ae=F.children;if(Nt(O.childFlags,F.childFlags,O.children,ae,Z,z,!1,null,O,H,X),F.dom=O.dom,Z!==q&&!t(ae)){var ue=ae.dom;C(Z,ue),s(q,ue)}}function bn(O,F,z,H,X,Z,q){var ae=F.dom=O.dom,ue=O.props,Te=F.props,Ie=!1,Ee=!1,Ae;if(H=H||(X&32)>0,ue!==Te){var Pe=ue||i;if(Ae=Te||i,Ae!==i){Ie=(X&448)>0,Ie&&(Ee=At(Ae));for(var We in Ae){var Oe=Pe[We],$e=Ae[We];Oe!==$e&&vt(We,Oe,$e,ae,H,Ee,O,q)}}if(Pe!==i)for(var De in Pe)a(Ae[De])&&!a(Pe[De])&&vt(De,Pe[De],null,ae,H,Ee,O,q)}var tt=F.children,Ye=F.className;O.className!==Ye&&(a(Ye)?ae.removeAttribute("class"):H?ae.setAttribute("class",Ye):ae.className=Ye),X&4096?gn(ae,tt):Nt(O.childFlags,F.childFlags,O.children,tt,ae,z,H&&F.type!=="foreignObject",null,O,Z,q),Ie&&xt(X,F,ae,Ae,!1,Ee);var it=F.ref,Je=O.ref;Je!==it&&(st(Je),at(it,ae,Z))}function kn(O,F,z,H,X,Z,q){Ze(O,q),ot(F,z,H,X,V(O,!0),Z,q),A(O,z,q)}function Nt(O,F,z,H,X,Z,q,ae,ue,Te,Ie){switch(O){case 2:switch(F){case 2:qe(z,H,X,Z,q,ae,Te,Ie);break;case 1:Qe(z,X,Ie);break;case 16:Ze(z,Ie),R(X,H);break;default:kn(z,H,X,Z,q,Te,Ie);break}break;case 1:switch(F){case 2:Ke(H,X,Z,q,ae,Te,Ie);break;case 1:break;case 16:R(X,H);break;default:ot(H,X,Z,q,ae,Te,Ie);break}break;case 16:switch(F){case 16:vn(z,H,X);break;case 2:mt(X,z,Ie),Ke(H,X,Z,q,ae,Te,Ie);break;case 1:mt(X,z,Ie);break;default:mt(X,z,Ie),ot(H,X,Z,q,ae,Te,Ie);break}break;default:switch(F){case 16:ct(z,Ie),R(X,H);break;case 2:ft(X,ue,z,Ie),Ke(H,X,Z,q,ae,Te,Ie);break;case 1:ft(X,ue,z,Ie);break;default:var Ee=z.length|0,Ae=H.length|0;Ee===0?Ae>0&&ot(H,X,Z,q,ae,Te,Ie):Ae===0?ft(X,ue,z,Ie):F===8&&O===8?wn(z,H,X,Z,q,Ee,Ae,ae,ue,Te,Ie):Ln(z,H,X,Z,q,Ee,Ae,ae,Te,Ie);break}break}}function yn(O,F,z,H,X){X.push(function(){O.componentDidUpdate(F,z,H)})}function _t(O,F,z,H,X,Z,q,ae,ue,Te){var Ie=O.state,Ee=O.props,Ae=!!O.$N,Pe=o(O.shouldComponentUpdate);if(Ae&&(F=P(O,z,F!==Ie?k(Ie,F):F)),q||!Pe||Pe&&O.shouldComponentUpdate(z,F,X)){!Ae&&o(O.componentWillUpdate)&&O.componentWillUpdate(z,F,X),O.props=z,O.state=F,O.context=X;var We=null,Oe=Mt(O,z,X);Ae&&o(O.getSnapshotBeforeUpdate)&&(We=O.getSnapshotBeforeUpdate(Ee,Ie)),qe(O.$LI,Oe,H,O.$CX,Z,ae,ue,Te),O.$LI=Oe,o(O.componentDidUpdate)&&yn(O,Ee,Ie,We,ue)}else O.props=z,O.state=F,O.context=X}function Sn(O,F,z,H,X,Z,q,ae){var ue=F.children=O.children;if(!y(ue)){ue.$L=q;var Te=F.props||i,Ie=F.ref,Ee=O.ref,Ae=ue.state;if(!ue.$N){if(o(ue.componentWillReceiveProps)){if(ue.$BR=!0,ue.componentWillReceiveProps(Te,H),ue.$UN)return;ue.$BR=!1}y(ue.$PS)||(Ae=k(Ae,ue.$PS),ue.$PS=null)}_t(ue,Ae,Te,z,H,X,!1,Z,q,ae),Ee!==Ie&&(st(Ee),at(Ie,ue,q))}}function Bn(O,F,z,H,X,Z,q,ae){var ue=!0,Te=F.props||i,Ie=F.ref,Ee=O.props,Ae=!a(Ie),Pe=O.children;if(Ae&&o(Ie.onComponentShouldUpdate)&&(ue=Ie.onComponentShouldUpdate(Ee,Te)),ue!==!1){Ae&&o(Ie.onComponentWillUpdate)&&Ie.onComponentWillUpdate(Ee,Te);var We=me(gt(F,H));qe(Pe,We,z,H,X,Z,q,ae),F.children=We,Ae&&o(Ie.onComponentDidUpdate)&&Ie.onComponentDidUpdate(Ee,Te)}else F.children=Pe}function In(O,F){var z=F.children,H=F.dom=O.dom;z!==O.children&&(H.nodeValue=z)}function Ln(O,F,z,H,X,Z,q,ae,ue,Te){for(var Ie=Z>q?q:Z,Ee=0,Ae,Pe;Eeq)for(Ee=Ie;EeEe||Pe>Ae)break e;We=O[Pe],Oe=F[Pe]}for(We=O[Ee],Oe=F[Ae];We.key===Oe.key;){if(Oe.flags&16384&&(F[Ae]=Oe=ye(Oe)),qe(We,Oe,z,H,X,ae,Te,Ie),O[Ee]=Oe,Ee--,Ae--,Pe>Ee||Pe>Ae)break e;We=O[Ee],Oe=F[Ae]}}if(Pe>Ee){if(Pe<=Ae)for($e=Ae+1,De=$eAe)for(;Pe<=Ee;)Qe(O[Pe++],z,Ie);else Tn(O,F,H,Z,q,Ee,Ae,Pe,z,X,ae,ue,Te,Ie)}function Tn(O,F,z,H,X,Z,q,ae,ue,Te,Ie,Ee,Ae,Pe){var We,Oe,$e=0,De=0,tt=ae,Ye=ae,it=Z-ae+1,Je=q-ae+1,lt=new Int32Array(Je+1),nt=it===H,bt=!1,Ge=0,dt=0;if(X<4||(it|Je)<32)for(De=tt;De<=Z;++De)if(We=O[De],dtae?bt=!0:Ge=ae,Oe.flags&16384&&(F[ae]=Oe=ye(Oe)),qe(We,Oe,ue,z,Te,Ie,Ae,Pe),++dt;break}!nt&&ae>q&&Qe(We,ue,Pe)}else nt||Qe(We,ue,Pe);else{var Yt={};for(De=Ye;De<=q;++De)Yt[F[De].key]=De;for(De=tt;De<=Z;++De)if(We=O[De],dttt;)Qe(O[tt++],ue,Pe);lt[ae-Ye]=De+1,Ge>ae?bt=!0:Ge=ae,Oe=F[ae],Oe.flags&16384&&(F[ae]=Oe=ye(Oe)),qe(We,Oe,ue,z,Te,Ie,Ae,Pe),++dt}else nt||Qe(We,ue,Pe);else nt||Qe(We,ue,Pe)}if(nt)ft(ue,Ee,O,Pe),ot(F,ue,z,Te,Ie,Ae,Pe);else if(bt){var Xt=xn(lt);for(ae=Xt.length-1,De=Je-1;De>=0;De--)lt[De]===0?(Ge=De+Ye,Oe=F[Ge],Oe.flags&16384&&(F[Ge]=Oe=ye(Oe)),$e=Ge+1,Ke(Oe,ue,z,Te,$e0&&I(Pe.componentWillMove)}else if(dt!==Je)for(De=Je-1;De>=0;De--)lt[De]===0&&(Ge=De+Ye,Oe=F[Ge],Oe.flags&16384&&(F[Ge]=Oe=ye(Oe)),$e=Ge+1,Ke(Oe,ue,z,Te,$eUt&&(Ut=ue,et=new Int32Array(ue),pt=new Int32Array(ue));z>1,O[et[ae]]0&&(pt[z]=et[Z-1]),et[Z]=z)}Z=X+1;var Te=new Int32Array(Z);for(q=et[Z-1];Z-- >0;)Te[Z]=q,q=pt[q],et[Z]=0;return Te}var An=typeof document!="undefined";An&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);function zt(O,F,z,H){var X=[],Z=new d,q=F.$V;j.v=!0,a(q)?a(O)||(O.flags&16384&&(O=ye(O)),Ke(O,F,H,!1,null,X,Z),F.$V=O,q=O):a(O)?(Qe(q,F,Z),F.$V=null):(O.flags&16384&&(O=ye(O)),qe(q,O,F,H,!1,null,X,Z),q=F.$V=O),p(X),B(Z.componentDidAppear),j.v=!1,o(z)&&z(),o(M.renderComplete)&&M.renderComplete(q,F)}function Ht(O,F,z,H){z===void 0&&(z=null),H===void 0&&(H=i),zt(O,F,z,H)}function En(O){return function(){function F(z,H,X,Z){O||(O=z),Ht(H,O,X,Z)}return F}()}var ht=[],Pn=typeof Promise!="undefined"?Promise.resolve().then.bind(Promise.resolve()):function(O){window.setTimeout(O,0)},Vt=!1;function Kt(O,F,z,H){var X=O.$PS;if(o(F)&&(F=F(X?k(O.state,X):O.state,O.props,O.context)),a(X))O.$PS=F;else for(var Z in F)X[Z]=F[Z];if(O.$BR)o(z)&&O.$L.push(z.bind(O));else{if(!j.v&&ht.length===0){Gt(O,H),o(z)&&z.call(O);return}if(ht.indexOf(O)===-1&&ht.push(O),H&&(O.$F=!0),Vt||(Vt=!0,Pn($t)),o(z)){var q=O.$QU;q||(q=O.$QU=[]),q.push(z)}}}function Mn(O){for(var F=O.$QU,z=0;z=0;--_){var U=this.tryEntries[_],K=U.completion;if(U.tryLoc==="root")return W("end");if(U.tryLoc<=this.prev){var G=a.call(U,"catchLoc"),$=a.call(U,"finallyLoc");if(G&&$){if(this.prev=0;--W){var _=this.tryEntries[W];if(_.tryLoc<=this.prev&&a.call(_,"finallyLoc")&&this.prev<_.finallyLoc){var U=_;break}}U&&(R==="break"||R==="continue")&&U.tryLoc<=D&&D<=U.finallyLoc&&(U=null);var K=U?U.completion:{};return K.type=R,K.arg=D,U?(this.method="next",this.next=U.finallyLoc,s):this.complete(K)}return M}(),complete:function(){function M(R,D){if(R.type==="throw")throw R.arg;return R.type==="break"||R.type==="continue"?this.next=R.arg:R.type==="return"?(this.rval=this.arg=R.arg,this.method="return",this.next="end"):R.type==="normal"&&D&&(this.next=D),s}return M}(),finish:function(){function M(R){for(var D=this.tryEntries.length-1;D>=0;--D){var W=this.tryEntries[D];if(W.finallyLoc===R)return this.complete(W.completion,W.afterLoc),x(W),s}}return M}(),catch:function(){function M(R){for(var D=this.tryEntries.length-1;D>=0;--D){var W=this.tryEntries[D];if(W.tryLoc===R){var _=W.completion;if(_.type==="throw"){var U=_.arg;x(W)}return U}}throw new Error("illegal catch attempt")}return M}(),delegateYield:function(){function M(R,D,W){return this.delegate={iterator:P(R),resultName:D,nextLoc:W},this.method==="next"&&(this.arg=o),s}return M}()},n}(T.exports);try{regeneratorRuntime=r}catch(n){typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},30236:function(){"use strict";self.fetch||(self.fetch=function(T,r){return r=r||{},new Promise(function(n,e){var a=new XMLHttpRequest,t=[],o={},f=function(){function y(){return{ok:(a.status/100|0)==2,statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){function S(){return Promise.resolve(a.responseText)}return S}(),json:function(){function S(){return Promise.resolve(a.responseText).then(JSON.parse)}return S}(),blob:function(){function S(){return Promise.resolve(new Blob([a.response]))}return S}(),clone:y,headers:{keys:function(){function S(){return t}return S}(),entries:function(){function S(){return t.map(function(k){return[k,a.getResponseHeader(k)]})}return S}(),get:function(){function S(k){return a.getResponseHeader(k)}return S}(),has:function(){function S(k){return a.getResponseHeader(k)!=null}return S}()}}}return y}();for(var b in a.open(r.method||"get",T,!0),a.onload=function(){a.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(y,S){o[S]||t.push(o[S]=S)}),n(f())},a.onerror=e,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(b,r.headers[b]);a.send(r.body||null)})})},88510:function(T,r){"use strict";r.__esModule=!0,r.zipWith=r.zip=r.uniqBy=r.uniq=r.toKeyedArray=r.toArray=r.sortBy=r.sort=r.reduce=r.range=r.map=r.filterMap=r.filter=void 0;function n(l,v){var N=typeof Symbol!="undefined"&&l[Symbol.iterator]||l["@@iterator"];if(N)return(N=N.call(l)).next.bind(N);if(Array.isArray(l)||(N=e(l))||v&&l&&typeof l.length=="number"){N&&(l=N);var C=0;return function(){return C>=l.length?{done:!0}:{done:!1,value:l[C++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(l,v){if(l){if(typeof l=="string")return a(l,v);var N={}.toString.call(l).slice(8,-1);return N==="Object"&&l.constructor&&(N=l.constructor.name),N==="Map"||N==="Set"?Array.from(l):N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N)?a(l,v):void 0}}function a(l,v){(v==null||v>l.length)&&(v=l.length);for(var N=0,C=Array(v);NI)return 1}return 0},k=r.sortBy=function(){function l(){for(var v=arguments.length,N=new Array(v),C=0;CI)return 1}return 0},k=r.sortBy=function(){function l(){for(var v=arguments.length,N=new Array(v),C=0;C1?d-1:0),s=1;s1?V-1:0),I=1;I=0;--me){var te=this.tryEntries[me],be=te.completion;if(te.tryLoc==="root")return fe("end");if(te.tryLoc<=this.prev){var pe=g.call(te,"catchLoc"),ve=g.call(te,"finallyLoc");if(pe&&ve){if(this.prev=0;--fe){var me=this.tryEntries[fe];if(me.tryLoc<=this.prev&&g.call(me,"finallyLoc")&&this.prev=0;--ee){var fe=this.tryEntries[ee];if(fe.finallyLoc===ce)return this.complete(fe.completion,fe.afterLoc),Se(fe),D}}return oe}(),catch:function(){function oe(ce){for(var ee=this.tryEntries.length-1;ee>=0;--ee){var fe=this.tryEntries[ee];if(fe.tryLoc===ce){var me=fe.completion;if(me.type==="throw"){var te=me.arg;Se(fe)}return te}}throw Error("illegal catch attempt")}return oe}(),delegateYield:function(){function oe(ce,ee,fe){return this.delegate={iterator:he(ce),resultName:ee,nextLoc:fe},this.method==="next"&&(this.arg=N),D}return oe}()},C}function e(N,C,p,g,V,B,I){try{var L=N[B](I),w=L.value}catch(x){return void p(x)}L.done?C(w):Promise.resolve(w).then(g,V)}function a(N){return function(){var C=this,p=arguments;return new Promise(function(g,V){var B=N.apply(C,p);function I(w){e(B,g,V,I,L,"next",w)}function L(w){e(B,g,V,I,L,"throw",w)}I(void 0)})}}/** + */var a=r.createStore=function(){function S(k,h){if(h)return h(S)(k);var c,i=[],m=function(){function s(){return c}return s}(),d=function(){function s(l){i.push(l)}return s}(),u=function(){function s(l){c=k(c,l);for(var v=0;v1?d-1:0),s=1;s1?V-1:0),I=1;I=0;--me){var te=this.tryEntries[me],be=te.completion;if(te.tryLoc==="root")return fe("end");if(te.tryLoc<=this.prev){var pe=g.call(te,"catchLoc"),ve=g.call(te,"finallyLoc");if(pe&&ve){if(this.prev=0;--fe){var me=this.tryEntries[fe];if(me.tryLoc<=this.prev&&g.call(me,"finallyLoc")&&this.prev=0;--ee){var fe=this.tryEntries[ee];if(fe.finallyLoc===ce)return this.complete(fe.completion,fe.afterLoc),Se(fe),D}}return oe}(),catch:function(){function oe(ce){for(var ee=this.tryEntries.length-1;ee>=0;--ee){var fe=this.tryEntries[ee];if(fe.tryLoc===ce){var me=fe.completion;if(me.type==="throw"){var te=me.arg;Se(fe)}return te}}throw Error("illegal catch attempt")}return oe}(),delegateYield:function(){function oe(ce,ee,fe){return this.delegate={iterator:he(ce),resultName:ee,nextLoc:fe},this.method==="next"&&(this.arg=N),D}return oe}()},C}function e(N,C,p,g,V,B,I){try{var L=N[B](I),w=L.value}catch(A){return void p(A)}L.done?C(w):Promise.resolve(w).then(g,V)}function a(N){return function(){var C=this,p=arguments;return new Promise(function(g,V){var B=N.apply(C,p);function I(w){e(B,g,V,I,L,"next",w)}function L(w){e(B,g,V,I,L,"throw",w)}I(void 0)})}}/** * Browser-agnostic abstraction of key-value web storage. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.IMPL_MEMORY=0,o=r.IMPL_HUB_STORAGE=1,f=r.IMPL_INDEXED_DB=2,b=1,y="para-tgui",S="storage-v1",k="readonly",h="readwrite",c=function(C){return function(){try{return!!C()}catch(p){return!1}}},i=c(function(){return window.hubStorage&&window.hubStorage.getItem}),m=c(function(){return(window.indexedDB||window.msIndexedDB)&&(window.IDBTransaction||window.msIDBTransaction)}),d=function(){function N(){this.impl=t,this.store={}}var C=N.prototype;return C.get=function(){var p=a(n().mark(function(){function V(B){return n().wrap(function(){function I(L){for(;;)switch(L.prev=L.next){case 0:return L.abrupt("return",this.store[B]);case 1:case"end":return L.stop()}}return I}(),V,this)}return V}()));function g(V){return p.apply(this,arguments)}return g}(),C.set=function(){var p=a(n().mark(function(){function V(B,I){return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:this.store[B]=I;case 1:case"end":return w.stop()}}return L}(),V,this)}return V}()));function g(V,B){return p.apply(this,arguments)}return g}(),C.remove=function(){var p=a(n().mark(function(){function V(B){return n().wrap(function(){function I(L){for(;;)switch(L.prev=L.next){case 0:this.store[B]=void 0;case 1:case"end":return L.stop()}}return I}(),V,this)}return V}()));function g(V){return p.apply(this,arguments)}return g}(),C.clear=function(){var p=a(n().mark(function(){function V(){return n().wrap(function(){function B(I){for(;;)switch(I.prev=I.next){case 0:this.store={};case 1:case"end":return I.stop()}}return B}(),V,this)}return V}()));function g(){return p.apply(this,arguments)}return g}(),N}(),u=function(){function N(){this.impl=o}var C=N.prototype;return C.get=function(){var p=a(n().mark(function(){function V(B){var I;return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,window.hubStorage.getItem("paradise-"+B);case 2:if(I=w.sent,typeof I!="string"){w.next=5;break}return w.abrupt("return",JSON.parse(I));case 5:case"end":return w.stop()}}return L}(),V)}return V}()));function g(V){return p.apply(this,arguments)}return g}(),C.set=function(){function p(g,V){window.hubStorage.setItem("paradise-"+g,JSON.stringify(V))}return p}(),C.remove=function(){function p(g){window.hubStorage.removeItem("paradise-"+g)}return p}(),C.clear=function(){function p(){window.hubStorage.clear()}return p}(),N}(),s=function(){function N(){this.impl=f,this.dbPromise=new Promise(function(p,g){var V=window.indexedDB||window.msIndexedDB,B=V.open(y,b);B.onupgradeneeded=function(){try{B.result.createObjectStore(S)}catch(I){g(new Error("Failed to upgrade IDB: "+B.error))}},B.onsuccess=function(){return p(B.result)},B.onerror=function(){g(new Error("Failed to open IDB: "+B.error))}})}var C=N.prototype;return C.getStore=function(){var p=a(n().mark(function(){function V(B){return n().wrap(function(){function I(L){for(;;)switch(L.prev=L.next){case 0:return L.abrupt("return",this.dbPromise.then(function(w){return w.transaction(S,B).objectStore(S)}));case 1:case"end":return L.stop()}}return I}(),V,this)}return V}()));function g(V){return p.apply(this,arguments)}return g}(),C.get=function(){var p=a(n().mark(function(){function V(B){var I;return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.getStore(k);case 2:return I=w.sent,w.abrupt("return",new Promise(function(x,A){var E=I.get(B);E.onsuccess=function(){return x(E.result)},E.onerror=function(){return A(E.error)}}));case 4:case"end":return w.stop()}}return L}(),V,this)}return V}()));function g(V){return p.apply(this,arguments)}return g}(),C.set=function(){var p=a(n().mark(function(){function V(B,I){var L;return n().wrap(function(){function w(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,this.getStore(h);case 2:L=x.sent,L.put(I,B);case 4:case"end":return x.stop()}}return w}(),V,this)}return V}()));function g(V,B){return p.apply(this,arguments)}return g}(),C.remove=function(){var p=a(n().mark(function(){function V(B){var I;return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.getStore(h);case 2:I=w.sent,I.delete(B);case 4:case"end":return w.stop()}}return L}(),V,this)}return V}()));function g(V){return p.apply(this,arguments)}return g}(),C.clear=function(){var p=a(n().mark(function(){function V(){var B;return n().wrap(function(){function I(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,this.getStore(h);case 2:B=L.sent,B.clear();case 4:case"end":return L.stop()}}return I}(),V,this)}return V}()));function g(){return p.apply(this,arguments)}return g}(),N}(),l=function(){function N(){this.backendPromise=a(n().mark(function(){function p(){var g;return n().wrap(function(){function V(B){for(;;)switch(B.prev=B.next){case 0:if(!(!Byond.TRIDENT&&i())){B.next=2;break}return B.abrupt("return",new u);case 2:if(!m()){B.next=12;break}return B.prev=3,g=new s,B.next=7,g.dbPromise;case 7:return B.abrupt("return",g);case 10:B.prev=10,B.t0=B.catch(3);case 12:return B.abrupt("return",new d);case 13:case"end":return B.stop()}}return V}(),p,null,[[3,10]])}return p}()))()}var C=N.prototype;return C.get=function(){var p=a(n().mark(function(){function V(B){var I;return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.backendPromise;case 2:return I=w.sent,w.abrupt("return",I.get(B));case 4:case"end":return w.stop()}}return L}(),V,this)}return V}()));function g(V){return p.apply(this,arguments)}return g}(),C.set=function(){var p=a(n().mark(function(){function V(B,I){var L;return n().wrap(function(){function w(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,this.backendPromise;case 2:return L=x.sent,x.abrupt("return",L.set(B,I));case 4:case"end":return x.stop()}}return w}(),V,this)}return V}()));function g(V,B){return p.apply(this,arguments)}return g}(),C.remove=function(){var p=a(n().mark(function(){function V(B){var I;return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.backendPromise;case 2:return I=w.sent,w.abrupt("return",I.remove(B));case 4:case"end":return w.stop()}}return L}(),V,this)}return V}()));function g(V){return p.apply(this,arguments)}return g}(),C.clear=function(){var p=a(n().mark(function(){function V(){var B;return n().wrap(function(){function I(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,this.backendPromise;case 2:return B=L.sent,L.abrupt("return",B.clear());case 4:case"end":return L.stop()}}return I}(),V,this)}return V}()));function g(){return p.apply(this,arguments)}return g}(),N}(),v=r.storage=new l},25328:function(T,r){"use strict";r.__esModule=!0,r.toTitleCase=r.multiline=r.decodeHtmlEntities=r.createSearch=r.createGlobPattern=r.capitalize=r.buildQueryString=void 0;function n(h,c){var i=typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(i)return(i=i.call(h)).next.bind(i);if(Array.isArray(h)||(i=e(h))||c&&h&&typeof h.length=="number"){i&&(h=i);var m=0;return function(){return m>=h.length?{done:!0}:{done:!1,value:h[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(h,c){if(h){if(typeof h=="string")return a(h,c);var i={}.toString.call(h).slice(8,-1);return i==="Object"&&h.constructor&&(i=h.constructor.name),i==="Map"||i==="Set"?Array.from(h):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?a(h,c):void 0}}function a(h,c){(c==null||c>h.length)&&(c=h.length);for(var i=0,m=Array(c);i=h.length?{done:!0}:{done:!1,value:h[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(h,c){if(h){if(typeof h=="string")return a(h,c);var i={}.toString.call(h).slice(8,-1);return i==="Object"&&h.constructor&&(i=h.constructor.name),i==="Map"||i==="Set"?Array.from(h):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?a(h,c):void 0}}function a(h,c){(c==null||c>h.length)&&(c=h.length);for(var i=0,m=Array(c);i0&&(g.style=A),g}return C}(),v=r.computeBoxClassName=function(){function C(p){var g=p.textColor||p.color,V=p.backgroundColor;return(0,e.classes)([h(g)&&"color-"+g,h(V)&&"color-bg-"+V])}return C}(),N=r.Box=function(){function C(p){var g=p.as,V=g===void 0?"div":g,B=p.className,I=p.children,L=b(p,f);if(typeof I=="function")return I(l(p));var w=typeof B=="string"?B+" "+v(L):v(L),x=l(L);return(0,a.createVNode)(t.VNodeFlags.HtmlElement,V,w,I,t.ChildFlags.UnknownChildren,x)}return C}();N.defaultHooks=e.pureComponentHooks},96184:function(T,r,n){"use strict";r.__esModule=!0,r.ButtonInput=r.ButtonConfirm=r.ButtonCheckbox=r.Button=void 0;var e=n(89005),a=n(35840),t=n(92986),o=n(9394),f=n(55937),b=n(1331),y=n(62147),S=["className","fluid","translucent","icon","iconRotation","iconSpin","color","textColor","disabled","selected","tooltip","tooltipPosition","ellipsis","compact","circular","content","iconColor","iconRight","iconStyle","children","onclick","onClick","multiLine"],k=["checked"],h=["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"],c=["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","disabled","multiLine"];/** + */function b(C,p){if(C==null)return{};var g={};for(var V in C)if({}.hasOwnProperty.call(C,V)){if(p.includes(V))continue;g[V]=C[V]}return g}var y=r.unit=function(){function C(p){if(typeof p=="string")return p.endsWith("px")?parseFloat(p)/12+"rem":p;if(typeof p=="number")return p+"rem"}return C}(),S=r.halfUnit=function(){function C(p){if(typeof p=="string")return y(p);if(typeof p=="number")return y(p*.5)}return C}(),k=function(p){return!h(p)},h=function(p){if(typeof p=="string")return o.CSS_COLORS.includes(p)},c=function(p){return function(g,V){(typeof V=="number"||typeof V=="string")&&(g[p]=V)}},i=function(p,g){return function(V,B){(typeof B=="number"||typeof B=="string")&&(V[p]=g(B))}},m=function(p,g){return function(V,B){B&&(V[p]=g)}},d=function(p,g,V){return function(B,I){if(typeof I=="number"||typeof I=="string")for(var L=0;L0&&(g.style=x),g}return C}(),v=r.computeBoxClassName=function(){function C(p){var g=p.textColor||p.color,V=p.backgroundColor;return(0,e.classes)([h(g)&&"color-"+g,h(V)&&"color-bg-"+V])}return C}(),N=r.Box=function(){function C(p){var g=p.as,V=g===void 0?"div":g,B=p.className,I=p.children,L=b(p,f);if(typeof I=="function")return I(l(p));var w=typeof B=="string"?B+" "+v(L):v(L),A=l(L);return(0,a.createVNode)(t.VNodeFlags.HtmlElement,V,w,I,t.ChildFlags.UnknownChildren,A)}return C}();N.defaultHooks=e.pureComponentHooks},96184:function(T,r,n){"use strict";r.__esModule=!0,r.ButtonInput=r.ButtonConfirm=r.ButtonCheckbox=r.Button=void 0;var e=n(89005),a=n(35840),t=n(92986),o=n(9394),f=n(55937),b=n(1331),y=n(62147),S=["className","fluid","translucent","icon","iconRotation","iconSpin","color","textColor","disabled","selected","tooltip","tooltipPosition","ellipsis","compact","circular","content","iconColor","iconRight","iconStyle","children","onclick","onClick","multiLine"],k=["checked"],h=["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"],c=["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","disabled","multiLine"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function i(C,p){C.prototype=Object.create(p.prototype),C.prototype.constructor=C,m(C,p)}function m(C,p){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,V){return g.__proto__=V,g},m(C,p)}function d(C,p){if(C==null)return{};var g={};for(var V in C)if({}.hasOwnProperty.call(C,V)){if(p.includes(V))continue;g[V]=C[V]}return g}var u=(0,o.createLogger)("Button"),s=r.Button=function(){function C(p){var g=p.className,V=p.fluid,B=p.translucent,I=p.icon,L=p.iconRotation,w=p.iconSpin,x=p.color,A=p.textColor,E=p.disabled,P=p.selected,j=p.tooltip,M=p.tooltipPosition,R=p.ellipsis,D=p.compact,W=p.circular,_=p.content,U=p.iconColor,K=p.iconRight,G=p.iconStyle,$=p.children,Q=p.onclick,J=p.onClick,ie=p.multiLine,ne=d(p,S),se=!!(_||$);Q&&u.warn("Lowercase 'onclick' is not supported on Button and lowercase prop names are discouraged in general. Please use a camelCase'onClick' instead and read: https://infernojs.org/docs/guides/event-handling"),ne.onClick=function(Se){!E&&J&&J(Se)};var Ce=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",V&&"Button--fluid",E&&"Button--disabled"+(B?"--translucent":""),P&&"Button--selected"+(B?"--translucent":""),se&&"Button--hasContent",R&&"Button--ellipsis",W&&"Button--circular",D&&"Button--compact",K&&"Button--iconRight",ie&&"Button--multiLine",x&&typeof x=="string"?"Button--color--"+x+(B?"--translucent":""):"Button--color--default"+(B?"--translucent":""),g]),tabIndex:!E&&"0",color:A,onKeyDown:function(){function Se(ye){var he=window.event?ye.which:ye.keyCode;if(he===t.KEY_SPACE||he===t.KEY_ENTER){ye.preventDefault(),!E&&J&&J(ye);return}if(he===t.KEY_ESCAPE){ye.preventDefault();return}}return Se}()},ne,{children:[I&&!K&&(0,e.createComponentVNode)(2,b.Icon,{name:I,color:U,rotation:L,spin:w,style:G}),_,$,I&&K&&(0,e.createComponentVNode)(2,b.Icon,{name:I,color:U,rotation:L,spin:w,style:G})]})));return j&&(Ce=(0,e.createComponentVNode)(2,y.Tooltip,{content:j,position:M,children:Ce})),Ce}return C}();s.defaultHooks=a.pureComponentHooks;var l=r.ButtonCheckbox=function(){function C(p){var g=p.checked,V=d(p,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({color:"transparent",icon:g?"check-square-o":"square-o",selected:g},V)))}return C}();s.Checkbox=l;var v=r.ButtonConfirm=function(C){function p(){var V;return V=C.call(this)||this,V.handleClick=function(){V.state.clickedOnce&&V.setClickedOnce(!1)},V.state={clickedOnce:!1},V}i(p,C);var g=p.prototype;return g.setClickedOnce=function(){function V(B){var I=this;this.setState({clickedOnce:B}),B?setTimeout(function(){return window.addEventListener("click",I.handleClick)}):window.removeEventListener("click",this.handleClick)}return V}(),g.render=function(){function V(){var B=this,I=this.props,L=I.confirmContent,w=L===void 0?"Confirm?":L,x=I.confirmColor,A=x===void 0?"bad":x,E=I.confirmIcon,P=I.icon,j=I.color,M=I.content,R=I.onClick,D=d(I,h);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({content:this.state.clickedOnce?w:M,icon:this.state.clickedOnce?E:P,color:this.state.clickedOnce?A:j,onClick:function(){function W(_){return B.state.clickedOnce?R==null?void 0:R(_):B.setClickedOnce(!0)}return W}()},D)))}return V}(),p}(e.Component);s.Confirm=v;var N=r.ButtonInput=function(C){function p(){var V;return V=C.call(this)||this,V.inputRef=void 0,V.inputRef=(0,e.createRef)(),V.state={inInput:!1},V}i(p,C);var g=p.prototype;return g.setInInput=function(){function V(B){var I=this.props.disabled;if(!I&&(this.setState({inInput:B}),this.inputRef)){var L=this.inputRef.current;if(B){L.value=this.props.currentValue||"";try{L.focus(),L.select()}catch(w){}}}}return V}(),g.commitResult=function(){function V(B){if(this.inputRef){var I=this.inputRef.current,L=I.value!=="";if(L){this.props.onCommit(B,I.value);return}else{if(!this.props.defaultValue)return;this.props.onCommit(B,this.props.defaultValue)}}}return V}(),g.render=function(){function V(){var B=this,I=this.props,L=I.fluid,w=I.content,x=I.icon,A=I.iconRotation,E=I.iconSpin,P=I.tooltip,j=I.tooltipPosition,M=I.color,R=M===void 0?"default":M,D=I.disabled,W=I.multiLine,_=d(I,c),U=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",L&&"Button--fluid",D&&"Button--disabled","Button--color--"+R,W+"Button--multiLine"])},_,{onClick:function(){function K(){return B.setInInput(!0)}return K}(),children:[x&&(0,e.createComponentVNode)(2,b.Icon,{name:x,rotation:A,spin:E}),(0,e.createVNode)(1,"div",null,w,0),(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:this.state.inInput?void 0:"none","text-align":"left"},onBlur:function(){function K(G){B.state.inInput&&(B.setInInput(!1),B.commitResult(G))}return K}(),onKeyDown:function(){function K(G){if(G.keyCode===t.KEY_ENTER){B.setInInput(!1),B.commitResult(G);return}G.keyCode===t.KEY_ESCAPE&&B.setInInput(!1)}return K}()},null,this.inputRef)]})));return P&&(U=(0,e.createComponentVNode)(2,y.Tooltip,{content:P,position:j,children:U})),U}return V}(),p}(e.Component);s.Input=N},18982:function(T,r,n){"use strict";r.__esModule=!0,r.ByondUi=void 0;var e=n(89005),a=n(35840),t=n(69214),o=n(9394),f=n(55937),b=["params"],y=["params"],S=["parent","params"];function k(v,N){if(v==null)return{};var C={};for(var p in v)if({}.hasOwnProperty.call(v,p)){if(N.includes(p))continue;C[p]=v[p]}return C}function h(v,N){v.prototype=Object.create(N.prototype),v.prototype.constructor=v,c(v,N)}function c(v,N){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(C,p){return C.__proto__=p,C},c(v,N)}/** + */function i(C,p){C.prototype=Object.create(p.prototype),C.prototype.constructor=C,m(C,p)}function m(C,p){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,V){return g.__proto__=V,g},m(C,p)}function d(C,p){if(C==null)return{};var g={};for(var V in C)if({}.hasOwnProperty.call(C,V)){if(p.includes(V))continue;g[V]=C[V]}return g}var u=(0,o.createLogger)("Button"),s=r.Button=function(){function C(p){var g=p.className,V=p.fluid,B=p.translucent,I=p.icon,L=p.iconRotation,w=p.iconSpin,A=p.color,x=p.textColor,E=p.disabled,P=p.selected,j=p.tooltip,M=p.tooltipPosition,R=p.ellipsis,D=p.compact,W=p.circular,_=p.content,U=p.iconColor,K=p.iconRight,G=p.iconStyle,$=p.children,Q=p.onclick,J=p.onClick,ie=p.multiLine,ne=d(p,S),se=!!(_||$);Q&&u.warn("Lowercase 'onclick' is not supported on Button and lowercase prop names are discouraged in general. Please use a camelCase'onClick' instead and read: https://infernojs.org/docs/guides/event-handling"),ne.onClick=function(Se){!E&&J&&J(Se)};var Ce=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",V&&"Button--fluid",E&&"Button--disabled"+(B?"--translucent":""),P&&"Button--selected"+(B?"--translucent":""),se&&"Button--hasContent",R&&"Button--ellipsis",W&&"Button--circular",D&&"Button--compact",K&&"Button--iconRight",ie&&"Button--multiLine",A&&typeof A=="string"?"Button--color--"+A+(B?"--translucent":""):"Button--color--default"+(B?"--translucent":""),g]),tabIndex:!E&&"0",color:x,onKeyDown:function(){function Se(ye){var he=window.event?ye.which:ye.keyCode;if(he===t.KEY_SPACE||he===t.KEY_ENTER){ye.preventDefault(),!E&&J&&J(ye);return}if(he===t.KEY_ESCAPE){ye.preventDefault();return}}return Se}()},ne,{children:[I&&!K&&(0,e.createComponentVNode)(2,b.Icon,{name:I,color:U,rotation:L,spin:w,style:G}),_,$,I&&K&&(0,e.createComponentVNode)(2,b.Icon,{name:I,color:U,rotation:L,spin:w,style:G})]})));return j&&(Ce=(0,e.createComponentVNode)(2,y.Tooltip,{content:j,position:M,children:Ce})),Ce}return C}();s.defaultHooks=a.pureComponentHooks;var l=r.ButtonCheckbox=function(){function C(p){var g=p.checked,V=d(p,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({color:"transparent",icon:g?"check-square-o":"square-o",selected:g},V)))}return C}();s.Checkbox=l;var v=r.ButtonConfirm=function(C){function p(){var V;return V=C.call(this)||this,V.handleClick=function(){V.state.clickedOnce&&V.setClickedOnce(!1)},V.state={clickedOnce:!1},V}i(p,C);var g=p.prototype;return g.setClickedOnce=function(){function V(B){var I=this;this.setState({clickedOnce:B}),B?setTimeout(function(){return window.addEventListener("click",I.handleClick)}):window.removeEventListener("click",this.handleClick)}return V}(),g.render=function(){function V(){var B=this,I=this.props,L=I.confirmContent,w=L===void 0?"Confirm?":L,A=I.confirmColor,x=A===void 0?"bad":A,E=I.confirmIcon,P=I.icon,j=I.color,M=I.content,R=I.onClick,D=d(I,h);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({content:this.state.clickedOnce?w:M,icon:this.state.clickedOnce?E:P,color:this.state.clickedOnce?x:j,onClick:function(){function W(_){return B.state.clickedOnce?R==null?void 0:R(_):B.setClickedOnce(!0)}return W}()},D)))}return V}(),p}(e.Component);s.Confirm=v;var N=r.ButtonInput=function(C){function p(){var V;return V=C.call(this)||this,V.inputRef=void 0,V.inputRef=(0,e.createRef)(),V.state={inInput:!1},V}i(p,C);var g=p.prototype;return g.setInInput=function(){function V(B){var I=this.props.disabled;if(!I&&(this.setState({inInput:B}),this.inputRef)){var L=this.inputRef.current;if(B){L.value=this.props.currentValue||"";try{L.focus(),L.select()}catch(w){}}}}return V}(),g.commitResult=function(){function V(B){if(this.inputRef){var I=this.inputRef.current,L=I.value!=="";if(L){this.props.onCommit(B,I.value);return}else{if(!this.props.defaultValue)return;this.props.onCommit(B,this.props.defaultValue)}}}return V}(),g.render=function(){function V(){var B=this,I=this.props,L=I.fluid,w=I.content,A=I.icon,x=I.iconRotation,E=I.iconSpin,P=I.tooltip,j=I.tooltipPosition,M=I.color,R=M===void 0?"default":M,D=I.disabled,W=I.multiLine,_=d(I,c),U=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",L&&"Button--fluid",D&&"Button--disabled","Button--color--"+R,W+"Button--multiLine"])},_,{onClick:function(){function K(){return B.setInInput(!0)}return K}(),children:[A&&(0,e.createComponentVNode)(2,b.Icon,{name:A,rotation:x,spin:E}),(0,e.createVNode)(1,"div",null,w,0),(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:this.state.inInput?void 0:"none","text-align":"left"},onBlur:function(){function K(G){B.state.inInput&&(B.setInInput(!1),B.commitResult(G))}return K}(),onKeyDown:function(){function K(G){if(G.keyCode===t.KEY_ENTER){B.setInInput(!1),B.commitResult(G);return}G.keyCode===t.KEY_ESCAPE&&B.setInInput(!1)}return K}()},null,this.inputRef)]})));return P&&(U=(0,e.createComponentVNode)(2,y.Tooltip,{content:P,position:j,children:U})),U}return V}(),p}(e.Component);s.Input=N},18982:function(T,r,n){"use strict";r.__esModule=!0,r.ByondUi=void 0;var e=n(89005),a=n(35840),t=n(69214),o=n(9394),f=n(55937),b=["params"],y=["params"],S=["parent","params"];function k(v,N){if(v==null)return{};var C={};for(var p in v)if({}.hasOwnProperty.call(v,p)){if(N.includes(p))continue;C[p]=v[p]}return C}function h(v,N){v.prototype=Object.create(N.prototype),v.prototype.constructor=v,c(v,N)}function c(v,N){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(C,p){return C.__proto__=p,C},c(v,N)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var i=(0,o.createLogger)("ByondUi"),m=[],d=function(N){var C=m.length;m.push(null);var p=N||"byondui_"+C;return i.log("allocated '"+p+"'"),{render:function(){function g(V){i.log("rendering '"+p+"'"),m[C]=p,Byond.winset(p,V)}return g}(),unmount:function(){function g(){i.log("unmounting '"+p+"'"),m[C]=null,Byond.winset(p,{parent:""})}return g}()}};window.addEventListener("beforeunload",function(){for(var v=0;v0){var M=j[0],R=j[j.length-1];j.push([P[0]+A,R[1]]),j.push([P[0]+A,-A]),j.push([-A,-A]),j.push([-A,M[1]])}var D=h(j);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({position:"relative"},E,{children:function(){function W(_){return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(32,"svg",null,(0,e.createVNode)(32,"polyline",null,null,1,{transform:"scale(1, -1) translate(0, -"+P[1]+")",fill:I,stroke:w,"stroke-width":A,points:D}),2,{viewBox:"0 0 "+P[0]+" "+P[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"}}),2,Object.assign({},_),null,v.ref))}return W}()})))}return l}(),u}(e.Component);c.defaultHooks=t.pureComponentHooks;var i=function(u){return null},m=r.Chart={Line:c}},4796:function(T,r,n){"use strict";r.__esModule=!0,r.Collapsible=void 0;var e=n(89005),a=n(55937),t=n(96184),o=["children","color","title","buttons","contentStyle"];function f(k,h){if(k==null)return{};var c={};for(var i in k)if({}.hasOwnProperty.call(k,i)){if(h.includes(i))continue;c[i]=k[i]}return c}function b(k,h){k.prototype=Object.create(h.prototype),k.prototype.constructor=k,y(k,h)}function y(k,h){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,i){return c.__proto__=i,c},y(k,h)}/** +*/var k=function(u,s,l,v){if(u.length===0)return[];var N=(0,a.zipWith)(Math.min).apply(void 0,u),C=(0,a.zipWith)(Math.max).apply(void 0,u);l!==void 0&&(N[0]=l[0],C[0]=l[1]),v!==void 0&&(N[1]=v[0],C[1]=v[1]);var p=(0,a.map)(function(g){return(0,a.zipWith)(function(V,B,I,L){return(V-B)/(I-B)*L})(g,N,C,s)})(u);return p},h=function(u){for(var s="",l=0;l0){var M=j[0],R=j[j.length-1];j.push([P[0]+x,R[1]]),j.push([P[0]+x,-x]),j.push([-x,-x]),j.push([-x,M[1]])}var D=h(j);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({position:"relative"},E,{children:function(){function W(_){return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(32,"svg",null,(0,e.createVNode)(32,"polyline",null,null,1,{transform:"scale(1, -1) translate(0, -"+P[1]+")",fill:I,stroke:w,"stroke-width":x,points:D}),2,{viewBox:"0 0 "+P[0]+" "+P[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"}}),2,Object.assign({},_),null,v.ref))}return W}()})))}return l}(),u}(e.Component);c.defaultHooks=t.pureComponentHooks;var i=function(u){return null},m=r.Chart={Line:c}},4796:function(T,r,n){"use strict";r.__esModule=!0,r.Collapsible=void 0;var e=n(89005),a=n(55937),t=n(96184),o=["children","color","title","buttons","contentStyle"];function f(k,h){if(k==null)return{};var c={};for(var i in k)if({}.hasOwnProperty.call(k,i)){if(h.includes(i))continue;c[i]=k[i]}return c}function b(k,h){k.prototype=Object.create(h.prototype),k.prototype.constructor=k,y(k,h)}function y(k,h){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,i){return c.__proto__=i,c},y(k,h)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -113,7 +113,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.Divider=function(){function o(f){var b=f.vertical,y=f.hidden;return(0,e.createVNode)(1,"div",(0,a.classes)(["Divider",y&&"Divider--hidden",b?"Divider--vertical":"Divider--horizontal"]))}return o}()},20342:function(T,r,n){"use strict";r.__esModule=!0,r.DraggableControl=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(9474);function f(h,c){h.prototype=Object.create(c.prototype),h.prototype.constructor=h,b(h,c)}function b(h,c){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,m){return i.__proto__=m,i},b(h,c)}var y=400,S=function(c,i){return c.screenX*i[0]+c.screenY*i[1]},k=r.DraggableControl=function(h){function c(m){var d;return d=h.call(this,m)||this,d.inputRef=(0,e.createRef)(),d.state={originalValue:m.value,value:m.value,dragging:!1,editing:!1,origin:null,suppressingFlicker:!1},d.flickerTimer=null,d.suppressFlicker=function(){var u=d.props.suppressFlicker;u>0&&(d.setState({suppressingFlicker:!0}),clearTimeout(d.flickerTimer),d.flickerTimer=setTimeout(function(){return d.setState({suppressingFlicker:!1})},u))},d.handleDragStart=function(u){var s=d.props,l=s.value,v=s.dragMatrix,N=s.disabled,C=d.state.editing;C||N||(document.body.style["pointer-events"]="none",d.ref=u.currentTarget,d.setState({originalValue:l,dragging:!1,value:l,origin:S(u,v)}),d.timer=setTimeout(function(){d.setState({dragging:!0})},250),d.dragInterval=setInterval(function(){var p=d.state,g=p.dragging,V=p.value,B=d.props.onDrag;g&&B&&B(u,V)},d.props.updateRate||y),document.addEventListener("mousemove",d.handleDragMove),document.addEventListener("mouseup",d.handleDragEnd))},d.handleDragMove=function(u){var s,l=d.props,v=l.minValue,N=l.maxValue,C=l.step,p=l.dragMatrix,g=l.disabled;if(!g){var V=d.ref.offsetWidth/((N-v)/C),B=(s=d.props.stepPixelSize)!=null?s:V;typeof B=="function"&&(B=B(V)),d.setState(function(I){var L=Object.assign({},I),w=I.origin,x=S(u,p)-w;if(I.dragging){var A=Math.trunc(x/B);L.value=(0,a.clamp)(Math.floor(L.originalValue/C)*C+A*C,v,N)}else Math.abs(x)>4&&(L.dragging=!0);return L})}},d.handleDragEnd=function(u){var s=d.props,l=s.onChange,v=s.onDrag,N=d.state,C=N.dragging,p=N.value;if(document.body.style["pointer-events"]="auto",clearTimeout(d.timer),clearInterval(d.dragInterval),d.setState({originalValue:null,dragging:!1,editing:!C,origin:null}),document.removeEventListener("mousemove",d.handleDragMove),document.removeEventListener("mouseup",d.handleDragEnd),C)d.suppressFlicker(),l&&l(u,p),v&&v(u,p);else if(d.inputRef){var g=d.inputRef.current;g.value=p;try{g.focus(),g.select()}catch(V){}}},d}f(c,h);var i=c.prototype;return i.render=function(){function m(){var d=this,u=this.state,s=u.dragging,l=u.editing,v=u.value,N=u.suppressingFlicker,C=this.props,p=C.animated,g=C.value,V=C.unit,B=C.minValue,I=C.maxValue,L=C.format,w=C.onChange,x=C.onDrag,A=C.children,E=C.height,P=C.lineHeight,j=C.fontSize,M=C.disabled,R=g;(s||N)&&(R=v);var D=function(){function U(K){return K+(V?" "+V:"")}return U}(),W=p&&!s&&!N&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:R,format:L,children:D})||D(L?L(R):R),_=(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:!l||M?"none":void 0,height:E,"line-height":P,"font-size":j},onBlur:function(){function U(K){if(l){var G=(0,a.clamp)(parseFloat(K.target.value),B,I);if(Number.isNaN(G)){d.setState({editing:!1});return}d.setState({editing:!1,value:G}),d.suppressFlicker(),w&&w(K,G),x&&x(K,G)}}return U}(),onKeyDown:function(){function U(K){if(K.keyCode===13){var G=(0,a.clamp)(parseFloat(K.target.value),B,I);if(Number.isNaN(G)){d.setState({editing:!1});return}d.setState({editing:!1,value:G}),d.suppressFlicker(),w&&w(K,G),x&&x(K,G);return}if(K.keyCode===27){d.setState({editing:!1});return}}return U}(),disabled:M},null,this.inputRef);return A({dragging:s,editing:l,value:g,displayValue:R,displayElement:W,inputElement:_,handleDragStart:this.handleDragStart})}return m}(),c}(e.Component);k.defaultHooks=t.pureComponentHooks,k.defaultProps={minValue:-1/0,maxValue:1/0,step:1,suppressFlicker:50,dragMatrix:[1,0]}},87099:function(T,r,n){"use strict";r.__esModule=!0,r.Dropdown=void 0;var e=n(89005),a=n(95996),t=n(35840),o=n(55937),f=n(1331),b=["icon","iconRotation","iconSpin","clipSelectedText","color","dropdownStyle","over","nochevron","width","onClick","onSelected","selected","disabled","displayText"],y=["className"],S;function k(l,v){if(l==null)return{};var N={};for(var C in l)if({}.hasOwnProperty.call(l,C)){if(v.includes(C))continue;N[C]=l[C]}return N}function h(l,v){l.prototype=Object.create(v.prototype),l.prototype.constructor=l,c(l,v)}function c(l,v){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(N,C){return N.__proto__=C,N},c(l,v)}var i={placement:"left-start",modifiers:[{name:"eventListeners",enabled:!1}]},m={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function l(){return null}return l}()},d="Layout Dropdown__menu",u="Layout Dropdown__menu-scroll",s=r.Dropdown=function(l){function v(C){var p;return p=l.call(this,C)||this,p.menuContents=void 0,p.handleClick=function(){p.state.open&&p.setOpen(!1)},p.state={open:!1,selected:p.props.selected},p.menuContents=null,p}h(v,l);var N=v.prototype;return N.getDOMNode=function(){function C(){return(0,e.findDOMFromVNode)(this.$LI,!0)}return C}(),N.componentDidMount=function(){function C(){var p=this.getDOMNode()}return C}(),N.openMenu=function(){function C(){var p=v.renderedMenu;p===void 0&&(p=document.createElement("div"),p.className=d,document.body.appendChild(p),v.renderedMenu=p);var g=this.getDOMNode();v.currentOpenMenu=g,p.scrollTop=0,p.style.width=this.props.menuWidth||g.offsetWidth+"px",p.style.opacity="1",p.style.pointerEvents="auto",setTimeout(function(){var V;(V=v.renderedMenu)==null||V.focus()},400),this.renderMenuContent()}return C}(),N.closeMenu=function(){function C(){v.currentOpenMenu===this.getDOMNode()&&(v.currentOpenMenu=void 0,v.renderedMenu.style.opacity="0",v.renderedMenu.style.pointerEvents="none")}return C}(),N.componentWillUnmount=function(){function C(){this.closeMenu(),this.setOpen(!1)}return C}(),N.renderMenuContent=function(){function C(){var p=this,g=v.renderedMenu;if(g){g.offsetHeight>200?g.className=u:g.className=d;var V=this.props.options,B=V===void 0?[]:V,I=B.map(function(w){var x,A;return typeof w=="string"?(A=w,x=w):w!==null&&(A=w.displayText,x=w.value),(0,e.createVNode)(1,"div",(0,t.classes)(["Dropdown__menuentry",p.state.selected===x&&"selected"]),A,0,{onClick:function(){function E(){p.setSelected(x)}return E}()},x)}),L=I.length?I:"No Options Found";(0,e.render)((0,e.createVNode)(1,"div",null,L,0),g,function(){var w=v.singletonPopper;w===void 0?(w=(0,a.createPopper)(v.virtualElement,g,Object.assign({},i,{placement:"bottom-start"})),v.singletonPopper=w):(w.setOptions(Object.assign({},i,{placement:"bottom-start"})),w.update())},this.context)}}return C}(),N.setOpen=function(){function C(p){var g=this;this.setState(function(V){return Object.assign({},V,{open:p})}),p?setTimeout(function(){g.openMenu(),window.addEventListener("click",g.handleClick)}):(this.closeMenu(),window.removeEventListener("click",this.handleClick))}return C}(),N.setSelected=function(){function C(p){this.setState(function(g){return Object.assign({},g,{selected:p})}),this.setOpen(!1),this.props.onSelected&&this.props.onSelected(p)}return C}(),N.render=function(){function C(){var p=this,g=this.props,V=g.icon,B=g.iconRotation,I=g.iconSpin,L=g.clipSelectedText,w=L===void 0?!0:L,x=g.color,A=x===void 0?"default":x,E=g.dropdownStyle,P=g.over,j=g.nochevron,M=g.width,R=g.onClick,D=g.onSelected,W=g.selected,_=g.disabled,U=g.displayText,K=k(g,b),G=K.className,$=k(K,y),Q=P?!this.state.open:this.state.open;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({width:M,className:(0,t.classes)(["Dropdown__control","Button","Button--color--"+A,_&&"Button--disabled",G]),onClick:function(){function J(ie){_&&!p.state.open||(p.setOpen(!p.state.open),R&&R(ie))}return J}()},$,{children:[V&&(0,e.createComponentVNode)(2,f.Icon,{name:V,rotation:B,spin:I,mr:1}),(0,e.createVNode)(1,"span","Dropdown__selected-text",U||this.state.selected,0,{style:{overflow:w?"hidden":"visible"}}),j||(0,e.createVNode)(1,"span","Dropdown__arrow-button",(0,e.createComponentVNode)(2,f.Icon,{name:Q?"chevron-up":"chevron-down"}),2)]})))}return C}(),v}(e.Component);S=s,s.renderedMenu=void 0,s.singletonPopper=void 0,s.currentOpenMenu=void 0,s.virtualElement={getBoundingClientRect:function(){function l(){var v,N;return(v=(N=S.currentOpenMenu)==null?void 0:N.getBoundingClientRect())!=null?v:m}return l}()}},39473:function(T,r,n){"use strict";r.__esModule=!0,r.computeFlexProps=r.computeFlexItemProps=r.computeFlexItemClassName=r.computeFlexClassName=r.Flex=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","direction","wrap","align","justify","inline","style"],f=["className"],b=["className","style","grow","order","shrink","basis","align"],y=["className"];/** + */var t=r.Divider=function(){function o(f){var b=f.vertical,y=f.hidden;return(0,e.createVNode)(1,"div",(0,a.classes)(["Divider",y&&"Divider--hidden",b?"Divider--vertical":"Divider--horizontal"]))}return o}()},20342:function(T,r,n){"use strict";r.__esModule=!0,r.DraggableControl=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(9474);function f(h,c){h.prototype=Object.create(c.prototype),h.prototype.constructor=h,b(h,c)}function b(h,c){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,m){return i.__proto__=m,i},b(h,c)}var y=400,S=function(c,i){return c.screenX*i[0]+c.screenY*i[1]},k=r.DraggableControl=function(h){function c(m){var d;return d=h.call(this,m)||this,d.inputRef=(0,e.createRef)(),d.state={originalValue:m.value,value:m.value,dragging:!1,editing:!1,origin:null,suppressingFlicker:!1},d.flickerTimer=null,d.suppressFlicker=function(){var u=d.props.suppressFlicker;u>0&&(d.setState({suppressingFlicker:!0}),clearTimeout(d.flickerTimer),d.flickerTimer=setTimeout(function(){return d.setState({suppressingFlicker:!1})},u))},d.handleDragStart=function(u){var s=d.props,l=s.value,v=s.dragMatrix,N=s.disabled,C=d.state.editing;C||N||(document.body.style["pointer-events"]="none",d.ref=u.currentTarget,d.setState({originalValue:l,dragging:!1,value:l,origin:S(u,v)}),d.timer=setTimeout(function(){d.setState({dragging:!0})},250),d.dragInterval=setInterval(function(){var p=d.state,g=p.dragging,V=p.value,B=d.props.onDrag;g&&B&&B(u,V)},d.props.updateRate||y),document.addEventListener("mousemove",d.handleDragMove),document.addEventListener("mouseup",d.handleDragEnd))},d.handleDragMove=function(u){var s,l=d.props,v=l.minValue,N=l.maxValue,C=l.step,p=l.dragMatrix,g=l.disabled;if(!g){var V=d.ref.offsetWidth/((N-v)/C),B=(s=d.props.stepPixelSize)!=null?s:V;typeof B=="function"&&(B=B(V)),d.setState(function(I){var L=Object.assign({},I),w=I.origin,A=S(u,p)-w;if(I.dragging){var x=Math.trunc(A/B);L.value=(0,a.clamp)(Math.floor(L.originalValue/C)*C+x*C,v,N)}else Math.abs(A)>4&&(L.dragging=!0);return L})}},d.handleDragEnd=function(u){var s=d.props,l=s.onChange,v=s.onDrag,N=d.state,C=N.dragging,p=N.value;if(document.body.style["pointer-events"]="auto",clearTimeout(d.timer),clearInterval(d.dragInterval),d.setState({originalValue:null,dragging:!1,editing:!C,origin:null}),document.removeEventListener("mousemove",d.handleDragMove),document.removeEventListener("mouseup",d.handleDragEnd),C)d.suppressFlicker(),l&&l(u,p),v&&v(u,p);else if(d.inputRef){var g=d.inputRef.current;g.value=p;try{g.focus(),g.select()}catch(V){}}},d}f(c,h);var i=c.prototype;return i.render=function(){function m(){var d=this,u=this.state,s=u.dragging,l=u.editing,v=u.value,N=u.suppressingFlicker,C=this.props,p=C.animated,g=C.value,V=C.unit,B=C.minValue,I=C.maxValue,L=C.format,w=C.onChange,A=C.onDrag,x=C.children,E=C.height,P=C.lineHeight,j=C.fontSize,M=C.disabled,R=g;(s||N)&&(R=v);var D=function(){function U(K){return K+(V?" "+V:"")}return U}(),W=p&&!s&&!N&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:R,format:L,children:D})||D(L?L(R):R),_=(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:!l||M?"none":void 0,height:E,"line-height":P,"font-size":j},onBlur:function(){function U(K){if(l){var G=(0,a.clamp)(parseFloat(K.target.value),B,I);if(Number.isNaN(G)){d.setState({editing:!1});return}d.setState({editing:!1,value:G}),d.suppressFlicker(),w&&w(K,G),A&&A(K,G)}}return U}(),onKeyDown:function(){function U(K){if(K.keyCode===13){var G=(0,a.clamp)(parseFloat(K.target.value),B,I);if(Number.isNaN(G)){d.setState({editing:!1});return}d.setState({editing:!1,value:G}),d.suppressFlicker(),w&&w(K,G),A&&A(K,G);return}if(K.keyCode===27){d.setState({editing:!1});return}}return U}(),disabled:M},null,this.inputRef);return x({dragging:s,editing:l,value:g,displayValue:R,displayElement:W,inputElement:_,handleDragStart:this.handleDragStart})}return m}(),c}(e.Component);k.defaultHooks=t.pureComponentHooks,k.defaultProps={minValue:-1/0,maxValue:1/0,step:1,suppressFlicker:50,dragMatrix:[1,0]}},87099:function(T,r,n){"use strict";r.__esModule=!0,r.Dropdown=void 0;var e=n(89005),a=n(95996),t=n(35840),o=n(55937),f=n(1331),b=["icon","iconRotation","iconSpin","clipSelectedText","color","dropdownStyle","over","nochevron","width","onClick","onSelected","selected","disabled","displayText"],y=["className"],S;function k(l,v){if(l==null)return{};var N={};for(var C in l)if({}.hasOwnProperty.call(l,C)){if(v.includes(C))continue;N[C]=l[C]}return N}function h(l,v){l.prototype=Object.create(v.prototype),l.prototype.constructor=l,c(l,v)}function c(l,v){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(N,C){return N.__proto__=C,N},c(l,v)}var i={placement:"left-start",modifiers:[{name:"eventListeners",enabled:!1}]},m={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function l(){return null}return l}()},d="Layout Dropdown__menu",u="Layout Dropdown__menu-scroll",s=r.Dropdown=function(l){function v(C){var p;return p=l.call(this,C)||this,p.menuContents=void 0,p.handleClick=function(){p.state.open&&p.setOpen(!1)},p.state={open:!1,selected:p.props.selected},p.menuContents=null,p}h(v,l);var N=v.prototype;return N.getDOMNode=function(){function C(){return(0,e.findDOMFromVNode)(this.$LI,!0)}return C}(),N.componentDidMount=function(){function C(){var p=this.getDOMNode()}return C}(),N.openMenu=function(){function C(){var p=v.renderedMenu;p===void 0&&(p=document.createElement("div"),p.className=d,document.body.appendChild(p),v.renderedMenu=p);var g=this.getDOMNode();v.currentOpenMenu=g,p.scrollTop=0,p.style.width=this.props.menuWidth||g.offsetWidth+"px",p.style.opacity="1",p.style.pointerEvents="auto",setTimeout(function(){var V;(V=v.renderedMenu)==null||V.focus()},400),this.renderMenuContent()}return C}(),N.closeMenu=function(){function C(){v.currentOpenMenu===this.getDOMNode()&&(v.currentOpenMenu=void 0,v.renderedMenu.style.opacity="0",v.renderedMenu.style.pointerEvents="none")}return C}(),N.componentWillUnmount=function(){function C(){this.closeMenu(),this.setOpen(!1)}return C}(),N.renderMenuContent=function(){function C(){var p=this,g=v.renderedMenu;if(g){g.offsetHeight>200?g.className=u:g.className=d;var V=this.props.options,B=V===void 0?[]:V,I=B.map(function(w){var A,x;return typeof w=="string"?(x=w,A=w):w!==null&&(x=w.displayText,A=w.value),(0,e.createVNode)(1,"div",(0,t.classes)(["Dropdown__menuentry",p.state.selected===A&&"selected"]),x,0,{onClick:function(){function E(){p.setSelected(A)}return E}()},A)}),L=I.length?I:"No Options Found";(0,e.render)((0,e.createVNode)(1,"div",null,L,0),g,function(){var w=v.singletonPopper;w===void 0?(w=(0,a.createPopper)(v.virtualElement,g,Object.assign({},i,{placement:"bottom-start"})),v.singletonPopper=w):(w.setOptions(Object.assign({},i,{placement:"bottom-start"})),w.update())},this.context)}}return C}(),N.setOpen=function(){function C(p){var g=this;this.setState(function(V){return Object.assign({},V,{open:p})}),p?setTimeout(function(){g.openMenu(),window.addEventListener("click",g.handleClick)}):(this.closeMenu(),window.removeEventListener("click",this.handleClick))}return C}(),N.setSelected=function(){function C(p){this.setState(function(g){return Object.assign({},g,{selected:p})}),this.setOpen(!1),this.props.onSelected&&this.props.onSelected(p)}return C}(),N.render=function(){function C(){var p=this,g=this.props,V=g.icon,B=g.iconRotation,I=g.iconSpin,L=g.clipSelectedText,w=L===void 0?!0:L,A=g.color,x=A===void 0?"default":A,E=g.dropdownStyle,P=g.over,j=g.nochevron,M=g.width,R=g.onClick,D=g.onSelected,W=g.selected,_=g.disabled,U=g.displayText,K=k(g,b),G=K.className,$=k(K,y),Q=P?!this.state.open:this.state.open;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({width:M,className:(0,t.classes)(["Dropdown__control","Button","Button--color--"+x,_&&"Button--disabled",G]),onClick:function(){function J(ie){_&&!p.state.open||(p.setOpen(!p.state.open),R&&R(ie))}return J}()},$,{children:[V&&(0,e.createComponentVNode)(2,f.Icon,{name:V,rotation:B,spin:I,mr:1}),(0,e.createVNode)(1,"span","Dropdown__selected-text",U||this.state.selected,0,{style:{overflow:w?"hidden":"visible"}}),j||(0,e.createVNode)(1,"span","Dropdown__arrow-button",(0,e.createComponentVNode)(2,f.Icon,{name:Q?"chevron-up":"chevron-down"}),2)]})))}return C}(),v}(e.Component);S=s,s.renderedMenu=void 0,s.singletonPopper=void 0,s.currentOpenMenu=void 0,s.virtualElement={getBoundingClientRect:function(){function l(){var v,N;return(v=(N=S.currentOpenMenu)==null?void 0:N.getBoundingClientRect())!=null?v:m}return l}()}},39473:function(T,r,n){"use strict";r.__esModule=!0,r.computeFlexProps=r.computeFlexItemProps=r.computeFlexItemClassName=r.computeFlexClassName=r.Flex=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","direction","wrap","align","justify","inline","style"],f=["className"],b=["className","style","grow","order","shrink","basis","align"],y=["className"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -129,15 +129,15 @@ * @file * @copyright 2024 Aylong (https://github.com/AyIong) * @license MIT - */function S(h,c){if(h==null)return{};var i={};for(var m in h)if({}.hasOwnProperty.call(h,m)){if(c.includes(m))continue;i[m]=h[m]}return i}var k=r.ImageButton=function(){function h(c){var i=c.asset,m=c.base64,d=c.buttons,u=c.buttonsAlt,s=c.children,l=c.className,v=c.color,N=c.disabled,C=c.fluid,p=c.imageSize,g=p===void 0?64:p,V=c.imageSrc,B=c.onClick,I=c.onRightClick,L=c.selected,w=c.title,x=c.tooltip,A=c.tooltipPosition,E=S(c,y),P=function(){function M(R,D){return(0,e.createComponentVNode)(2,f.Stack,{height:g+"px",width:g+"px",children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,textAlign:"center",align:"center",children:(0,e.createComponentVNode)(2,o.Icon,{spin:D,name:R,color:"gray",style:{"font-size":"calc("+g+"px * 0.75)"}})})})}return M}(),j=(0,e.createVNode)(1,"div",(0,a.classes)(["container",d&&"hasButtons",!B&&!I&&"noAction",L&&"selected",N&&"disabled",v&&typeof v=="string"?"color__"+v:"color__default"]),[(0,e.createVNode)(1,"div",(0,a.classes)(["image"]),(m||V)&&!i?(0,e.createVNode)(1,"img",null,null,1,{src:m?"data:image/jpeg;base64,"+m:V,height:g+"px",width:g+"px"}):i?(0,e.createVNode)(1,"div",(0,a.classes)(i)):P("question",!1),0),C?(0,e.createVNode)(1,"div",(0,a.classes)(["info"]),[w&&(0,e.createVNode)(1,"span",(0,a.classes)(["title",s&&"divider"]),w,0),s&&(0,e.createVNode)(1,"span",(0,a.classes)(["contentFluid"]),s,0)],0):s&&(0,e.createVNode)(1,"span",(0,a.classes)(["content",L&&"contentSelected",N&&"contentDisabled",v&&typeof v=="string"?"contentColor__"+v:"contentColor__default"]),s,0)],0,{tabIndex:N?void 0:0,onClick:function(){function M(R){!N&&B&&B(R)}return M}(),onContextMenu:function(){function M(R){R.preventDefault(),!N&&I&&I(R)}return M}(),style:{width:C?"auto":"calc("+g+"px + 0.5em + 2px)"}});return x&&(j=(0,e.createComponentVNode)(2,b.Tooltip,{content:x,position:A,children:j})),(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["ImageButton",C&&"fluid",l]),[j,d&&(0,e.createVNode)(1,"div",(0,a.classes)(["buttonsContainer",u&&"buttonsAltContainer",!s&&"buttonsEmpty",C&&v&&typeof v=="string"?"buttonsContainerColor__"+v:C&&"buttonsContainerColor__default"]),d,0,{style:{width:u?"calc("+g+"px + "+(C?0:.5)+"em)":"auto","max-width":!C&&!u&&"calc("+g+"px + 0.5em)"}})],0,Object.assign({},(0,t.computeBoxProps)(E))))}return h}()},79652:function(T,r,n){"use strict";r.__esModule=!0,r.toInputValue=r.Input=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(92986),f=["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder","autofocus","disabled","multiline","cols","rows"],b=["className","fluid","monospace"];function y(i,m){if(i==null)return{};var d={};for(var u in i)if({}.hasOwnProperty.call(i,u)){if(m.includes(u))continue;d[u]=i[u]}return d}function S(i,m){i.prototype=Object.create(m.prototype),i.prototype.constructor=i,k(i,m)}function k(i,m){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,u){return d.__proto__=u,d},k(i,m)}/** + */function S(h,c){if(h==null)return{};var i={};for(var m in h)if({}.hasOwnProperty.call(h,m)){if(c.includes(m))continue;i[m]=h[m]}return i}var k=r.ImageButton=function(){function h(c){var i=c.asset,m=c.base64,d=c.buttons,u=c.buttonsAlt,s=c.children,l=c.className,v=c.color,N=c.disabled,C=c.fluid,p=c.imageSize,g=p===void 0?64:p,V=c.imageSrc,B=c.onClick,I=c.onRightClick,L=c.selected,w=c.title,A=c.tooltip,x=c.tooltipPosition,E=S(c,y),P=function(){function M(R,D){return(0,e.createComponentVNode)(2,f.Stack,{height:g+"px",width:g+"px",children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,textAlign:"center",align:"center",children:(0,e.createComponentVNode)(2,o.Icon,{spin:D,name:R,color:"gray",style:{"font-size":"calc("+g+"px * 0.75)"}})})})}return M}(),j=(0,e.createVNode)(1,"div",(0,a.classes)(["container",d&&"hasButtons",!B&&!I&&"noAction",L&&"selected",N&&"disabled",v&&typeof v=="string"?"color__"+v:"color__default"]),[(0,e.createVNode)(1,"div",(0,a.classes)(["image"]),(m||V)&&!i?(0,e.createVNode)(1,"img",null,null,1,{src:m?"data:image/jpeg;base64,"+m:V,height:g+"px",width:g+"px"}):i?(0,e.createVNode)(1,"div",(0,a.classes)(i)):P("question",!1),0),C?(0,e.createVNode)(1,"div",(0,a.classes)(["info"]),[w&&(0,e.createVNode)(1,"span",(0,a.classes)(["title",s&&"divider"]),w,0),s&&(0,e.createVNode)(1,"span",(0,a.classes)(["contentFluid"]),s,0)],0):s&&(0,e.createVNode)(1,"span",(0,a.classes)(["content",L&&"contentSelected",N&&"contentDisabled",v&&typeof v=="string"?"contentColor__"+v:"contentColor__default"]),s,0)],0,{tabIndex:N?void 0:0,onClick:function(){function M(R){!N&&B&&B(R)}return M}(),onContextMenu:function(){function M(R){R.preventDefault(),!N&&I&&I(R)}return M}(),style:{width:C?"auto":"calc("+g+"px + 0.5em + 2px)"}});return A&&(j=(0,e.createComponentVNode)(2,b.Tooltip,{content:A,position:x,children:j})),(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["ImageButton",C&&"fluid",l]),[j,d&&(0,e.createVNode)(1,"div",(0,a.classes)(["buttonsContainer",u&&"buttonsAltContainer",!s&&"buttonsEmpty",C&&v&&typeof v=="string"?"buttonsContainerColor__"+v:C&&"buttonsContainerColor__default"]),d,0,{style:{width:u?"calc("+g+"px + "+(C?0:.5)+"em)":"auto","max-width":!C&&!u&&"calc("+g+"px + 0.5em)"}})],0,Object.assign({},(0,t.computeBoxProps)(E))))}return h}()},79652:function(T,r,n){"use strict";r.__esModule=!0,r.toInputValue=r.Input=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(92986),f=["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder","autofocus","disabled","multiline","cols","rows"],b=["className","fluid","monospace"];function y(i,m){if(i==null)return{};var d={};for(var u in i)if({}.hasOwnProperty.call(i,u)){if(m.includes(u))continue;d[u]=i[u]}return d}function S(i,m){i.prototype=Object.create(m.prototype),i.prototype.constructor=i,k(i,m)}function k(i,m){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,u){return d.__proto__=u,d},k(i,m)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var h=r.toInputValue=function(){function i(m){return typeof m!="number"&&typeof m!="string"?"":String(m)}return i}(),c=r.Input=function(i){function m(){var u;return u=i.call(this)||this,u.inputRef=(0,e.createRef)(),u.state={editing:!1},u.handleInput=function(s){var l=u.state.editing,v=u.props.onInput;l||u.setEditing(!0),v&&v(s,s.target.value)},u.handleFocus=function(s){var l=u.state.editing;l||u.setEditing(!0)},u.handleBlur=function(s){var l=u.state.editing,v=u.props.onChange;l&&(u.setEditing(!1),v&&v(s,s.target.value))},u.handleKeyDown=function(s){var l=u.props,v=l.onInput,N=l.onChange,C=l.onEnter;if(s.keyCode===o.KEY_ENTER){u.setEditing(!1),N&&N(s,s.target.value),v&&v(s,s.target.value),C&&C(s,s.target.value),u.props.selfClear?s.target.value="":s.target.blur();return}if(s.keyCode===o.KEY_ESCAPE){u.setEditing(!1),s.target.value=h(u.props.value),s.target.blur();return}},u}S(m,i);var d=m.prototype;return d.componentDidMount=function(){function u(){var s=this,l=this.props.value,v=this.inputRef.current;v&&(v.value=h(l),v.selectionStart=0,v.selectionEnd=v.value.length),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){v.focus(),s.props.autoSelect&&v.select()},1)}return u}(),d.componentDidUpdate=function(){function u(s,l){var v=this.state.editing,N=s.value,C=this.props.value,p=this.inputRef.current;p&&!v&&N!==C&&(p.value=h(C))}return u}(),d.setEditing=function(){function u(s){this.setState({editing:s})}return u}(),d.render=function(){function u(){var s=this.props,l=s.selfClear,v=s.onInput,N=s.onChange,C=s.onEnter,p=s.value,g=s.maxLength,V=s.placeholder,B=s.autofocus,I=s.disabled,L=s.multiline,w=s.cols,x=w===void 0?32:w,A=s.rows,E=A===void 0?4:A,P=y(s,f),j=P.className,M=P.fluid,R=P.monospace,D=y(P,b);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Input",M&&"Input--fluid",R&&"Input--monospace",I&&"Input--disabled",j])},D,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),L?(0,e.createVNode)(128,"textarea","Input__textarea",null,1,{placeholder:V,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:g,cols:x,rows:E,disabled:I},null,this.inputRef):(0,e.createVNode)(64,"input","Input__input",null,1,{placeholder:V,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:g,disabled:I},null,this.inputRef)]})))}return u}(),m}(e.Component)},76334:function(T,r,n){"use strict";r.__esModule=!0,r.Knob=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(55937),f=n(20342),b=n(59263),y=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children","popUpPosition"];/** +*/var h=r.toInputValue=function(){function i(m){return typeof m!="number"&&typeof m!="string"?"":String(m)}return i}(),c=r.Input=function(i){function m(){var u;return u=i.call(this)||this,u.inputRef=(0,e.createRef)(),u.state={editing:!1},u.handleInput=function(s){var l=u.state.editing,v=u.props.onInput;l||u.setEditing(!0),v&&v(s,s.target.value)},u.handleFocus=function(s){var l=u.state.editing;l||u.setEditing(!0)},u.handleBlur=function(s){var l=u.state.editing,v=u.props.onChange;l&&(u.setEditing(!1),v&&v(s,s.target.value))},u.handleKeyDown=function(s){var l=u.props,v=l.onInput,N=l.onChange,C=l.onEnter;if(s.keyCode===o.KEY_ENTER){u.setEditing(!1),N&&N(s,s.target.value),v&&v(s,s.target.value),C&&C(s,s.target.value),u.props.selfClear?s.target.value="":s.target.blur();return}if(s.keyCode===o.KEY_ESCAPE){u.setEditing(!1),s.target.value=h(u.props.value),s.target.blur();return}},u}S(m,i);var d=m.prototype;return d.componentDidMount=function(){function u(){var s=this,l=this.props.value,v=this.inputRef.current;v&&(v.value=h(l),v.selectionStart=0,v.selectionEnd=v.value.length),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){v.focus(),s.props.autoSelect&&v.select()},1)}return u}(),d.componentDidUpdate=function(){function u(s,l){var v=this.state.editing,N=s.value,C=this.props.value,p=this.inputRef.current;p&&!v&&N!==C&&(p.value=h(C))}return u}(),d.setEditing=function(){function u(s){this.setState({editing:s})}return u}(),d.render=function(){function u(){var s=this.props,l=s.selfClear,v=s.onInput,N=s.onChange,C=s.onEnter,p=s.value,g=s.maxLength,V=s.placeholder,B=s.autofocus,I=s.disabled,L=s.multiline,w=s.cols,A=w===void 0?32:w,x=s.rows,E=x===void 0?4:x,P=y(s,f),j=P.className,M=P.fluid,R=P.monospace,D=y(P,b);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Input",M&&"Input--fluid",R&&"Input--monospace",I&&"Input--disabled",j])},D,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),L?(0,e.createVNode)(128,"textarea","Input__textarea",null,1,{placeholder:V,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:g,cols:A,rows:E,disabled:I},null,this.inputRef):(0,e.createVNode)(64,"input","Input__input",null,1,{placeholder:V,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:g,disabled:I},null,this.inputRef)]})))}return u}(),m}(e.Component)},76334:function(T,r,n){"use strict";r.__esModule=!0,r.Knob=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(55937),f=n(20342),b=n(59263),y=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children","popUpPosition"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function S(h,c){if(h==null)return{};var i={};for(var m in h)if({}.hasOwnProperty.call(h,m)){if(c.includes(m))continue;i[m]=h[m]}return i}var k=r.Knob=function(){function h(c){var i=c.animated,m=c.format,d=c.maxValue,u=c.minValue,s=c.onChange,l=c.onDrag,v=c.step,N=c.stepPixelSize,C=c.suppressFlicker,p=c.unit,g=c.value,V=c.className,B=c.style,I=c.fillValue,L=c.color,w=c.ranges,x=w===void 0?{}:w,A=c.size,E=A===void 0?1:A,P=c.bipolar,j=c.children,M=c.popUpPosition,R=S(c,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:i,format:m,maxValue:d,minValue:u,onChange:s,onDrag:l,step:v,stepPixelSize:N,suppressFlicker:C,unit:p,value:g},{children:function(){function D(W){var _=W.dragging,U=W.editing,K=W.value,G=W.displayValue,$=W.displayElement,Q=W.inputElement,J=W.handleDragStart,ie=(0,a.scale)(I!=null?I:G,u,d),ne=(0,a.scale)(G,u,d),se=L||(0,a.keyOfMatchingRange)(I!=null?I:K,x)||"default",Ce=(ne-.5)*270;return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Knob","Knob--color--"+se,P&&"Knob--bipolar",V,(0,o.computeBoxClassName)(R)]),[(0,e.createVNode)(1,"div","Knob__circle",(0,e.createVNode)(1,"div","Knob__cursorBox",(0,e.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+Ce+"deg)"}}),2),_&&(0,e.createVNode)(1,"div",(0,t.classes)(["Knob__popupValue",M&&"Knob__popupValue--"+M]),$,0),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringTrackPivot",(0,e.createVNode)(32,"circle","Knob__ringTrack",null,1,{cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringFillPivot",(0,e.createVNode)(32,"circle","Knob__ringFill",null,1,{style:{"stroke-dashoffset":((P?2.75:2)-ie*1.5)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),Q],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":E+"em"},B)},R)),{onMouseDown:J})))}return D}()})))}return h}()},78621:function(T,r,n){"use strict";r.__esModule=!0,r.LabeledControls=void 0;var e=n(89005),a=n(39473),t=["children"],o=["label","children"];/** + */function S(h,c){if(h==null)return{};var i={};for(var m in h)if({}.hasOwnProperty.call(h,m)){if(c.includes(m))continue;i[m]=h[m]}return i}var k=r.Knob=function(){function h(c){var i=c.animated,m=c.format,d=c.maxValue,u=c.minValue,s=c.onChange,l=c.onDrag,v=c.step,N=c.stepPixelSize,C=c.suppressFlicker,p=c.unit,g=c.value,V=c.className,B=c.style,I=c.fillValue,L=c.color,w=c.ranges,A=w===void 0?{}:w,x=c.size,E=x===void 0?1:x,P=c.bipolar,j=c.children,M=c.popUpPosition,R=S(c,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:i,format:m,maxValue:d,minValue:u,onChange:s,onDrag:l,step:v,stepPixelSize:N,suppressFlicker:C,unit:p,value:g},{children:function(){function D(W){var _=W.dragging,U=W.editing,K=W.value,G=W.displayValue,$=W.displayElement,Q=W.inputElement,J=W.handleDragStart,ie=(0,a.scale)(I!=null?I:G,u,d),ne=(0,a.scale)(G,u,d),se=L||(0,a.keyOfMatchingRange)(I!=null?I:K,A)||"default",Ce=(ne-.5)*270;return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Knob","Knob--color--"+se,P&&"Knob--bipolar",V,(0,o.computeBoxClassName)(R)]),[(0,e.createVNode)(1,"div","Knob__circle",(0,e.createVNode)(1,"div","Knob__cursorBox",(0,e.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+Ce+"deg)"}}),2),_&&(0,e.createVNode)(1,"div",(0,t.classes)(["Knob__popupValue",M&&"Knob__popupValue--"+M]),$,0),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringTrackPivot",(0,e.createVNode)(32,"circle","Knob__ringTrack",null,1,{cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringFillPivot",(0,e.createVNode)(32,"circle","Knob__ringFill",null,1,{style:{"stroke-dashoffset":((P?2.75:2)-ie*1.5)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),Q],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":E+"em"},B)},R)),{onMouseDown:J})))}return D}()})))}return h}()},78621:function(T,r,n){"use strict";r.__esModule=!0,r.LabeledControls=void 0;var e=n(89005),a=n(39473),t=["children"],o=["label","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -149,7 +149,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function b(S,k){if(S==null)return{};var h={};for(var c in S)if({}.hasOwnProperty.call(S,c)){if(k.includes(c))continue;h[c]=S[c]}return h}var y=r.Modal=function(){function S(k){var h=k.className,c=k.children,i=k.onEnter,m=b(k,f),d;return i&&(d=function(){function u(s){s.keyCode===13&&i(s)}return u}()),(0,e.createComponentVNode)(2,o.Dimmer,{onKeyDown:d,children:(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Modal",h,(0,t.computeBoxClassName)(m)]),c,0,Object.assign({},(0,t.computeBoxProps)(m))))})}return S}()},73280:function(T,r,n){"use strict";r.__esModule=!0,r.NanoMap=void 0;var e=n(89005),a=n(36036),t=n(72253),o=n(29319),f=n(79911),b=n(79140),y=["x","y","icon","tooltip","color","children"],S=["icon","color"];function k(N,C){if(N==null)return{};var p={};for(var g in N)if({}.hasOwnProperty.call(N,g)){if(C.includes(g))continue;p[g]=N[g]}return p}function h(N,C){N.prototype=Object.create(C.prototype),N.prototype.constructor=N,c(N,C)}function c(N,C){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,g){return p.__proto__=g,p},c(N,C)}var i=510,m=2,d=function(C){return C.stopPropagation&&C.stopPropagation(),C.preventDefault&&C.preventDefault(),C.cancelBubble=!0,C.returnValue=!1,!1},u=r.NanoMap=function(N){function C(g){var V,B,I,L;L=N.call(this,g)||this;var w=window.innerWidth/2-256,x=window.innerHeight/2-256;return L.state={offsetX:(V=g.offsetX)!=null?V:0,offsetY:(B=g.offsetY)!=null?B:0,dragging:!1,originX:null,originY:null,zoom:(I=g.zoom)!=null?I:1},L.handleDragStart=function(A){L.ref=A.target,L.setState({dragging:!1,originX:A.screenX,originY:A.screenY}),document.addEventListener("mousemove",L.handleDragMove),document.addEventListener("mouseup",L.handleDragEnd),d(A)},L.handleDragMove=function(A){L.setState(function(E){var P=Object.assign({},E),j=A.screenX-P.originX,M=A.screenY-P.originY;return E.dragging?(P.offsetX+=j/P.zoom,P.offsetY+=M/P.zoom,P.originX=A.screenX,P.originY=A.screenY):P.dragging=!0,P}),d(A)},L.handleDragEnd=function(A){L.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",L.handleDragMove),document.removeEventListener("mouseup",L.handleDragEnd),g.onOffsetChange==null||g.onOffsetChange(A,L.state),d(A)},L.handleZoom=function(A,E){L.setState(function(P){var j=Math.min(Math.max(E,1),8);return P.zoom=j,g.onZoom&&g.onZoom(P.zoom),P})},L.handleReset=function(A){L.setState(function(E){E.offsetX=0,E.offsetY=0,E.zoom=1,L.handleZoom(A,1),g.onOffsetChange==null||g.onOffsetChange(A,E)})},L}h(C,N);var p=C.prototype;return p.getChildContext=function(){function g(){return{map:{zoom:this.state.zoom}}}return g}(),p.render=function(){function g(){var V=(0,t.useBackend)(this.context),B=V.config,I=this.state,L=I.dragging,w=I.offsetX,x=I.offsetY,A=I.zoom,E=A===void 0?1:A,P=this.props.children,j=B.map+"_nanomap_z1.png",M=i*E+"px",R={width:M,height:M,"margin-top":x*E+"px","margin-left":w*E+"px",overflow:"hidden",position:"relative",top:"50%",left:"50%",transform:"translate(-50%, -50%)","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:L?"move":"auto"},D={width:"100%",height:"100%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"};return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__container",children:[(0,e.createComponentVNode)(2,a.Box,{style:R,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,b.resolveAsset)(j),style:D}),(0,e.createComponentVNode)(2,a.Box,{children:P})]}),(0,e.createComponentVNode)(2,v,{zoom:E,onZoom:this.handleZoom,onReset:this.handleReset})]})}return g}(),C}(e.Component),s=function(C,p){var g=p.map.zoom,V=C.x,B=C.y,I=C.icon,L=C.tooltip,w=C.color,x=C.children,A=k(C,y),E=m*g,P=(V-1)*E,j=(B-1)*E;return(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,a.Tooltip,{content:L,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:j+"px",left:P+"px",width:E+"px",height:E+"px"},A,{children:x})))}),2)};u.Marker=s;var l=function(C,p){var g=p.map.zoom,V=C.icon,B=C.color,I=k(C,S),L=m*g+4/Math.ceil(g/4);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({},I,{children:(0,e.createComponentVNode)(2,a.Icon,{name:V,color:B,fontSize:L+"px",style:{position:"relative",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})})))};u.MarkerIcon=l;var v=function(C,p){return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__zoomer",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Zoom",labelStyle:{"vertical-align":"middle"},children:(0,e.createComponentVNode)(2,a.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,f.Slider,{minValue:1,maxValue:8,stepPixelSize:10,format:function(){function g(V){return V+"x"}return g}(),value:C.zoom,onDrag:function(){function g(V,B){return C.onZoom(V,B)}return g}()}),(0,e.createComponentVNode)(2,a.Button,{ml:"0.5em",float:"right",icon:"sync",tooltip:"Reset View",onClick:function(){function g(V){return C.onReset==null?void 0:C.onReset(V)}return g}()})]})})})})};u.Zoomer=v},74733:function(T,r,n){"use strict";r.__esModule=!0,r.NoticeBox=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","color","info","warning","success","danger"];/** + */function b(S,k){if(S==null)return{};var h={};for(var c in S)if({}.hasOwnProperty.call(S,c)){if(k.includes(c))continue;h[c]=S[c]}return h}var y=r.Modal=function(){function S(k){var h=k.className,c=k.children,i=k.onEnter,m=b(k,f),d;return i&&(d=function(){function u(s){s.keyCode===13&&i(s)}return u}()),(0,e.createComponentVNode)(2,o.Dimmer,{onKeyDown:d,children:(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Modal",h,(0,t.computeBoxClassName)(m)]),c,0,Object.assign({},(0,t.computeBoxProps)(m))))})}return S}()},73280:function(T,r,n){"use strict";r.__esModule=!0,r.NanoMap=void 0;var e=n(89005),a=n(36036),t=n(72253),o=n(29319),f=n(79911),b=n(79140),y=["x","y","icon","tooltip","color","children"],S=["icon","color"];function k(N,C){if(N==null)return{};var p={};for(var g in N)if({}.hasOwnProperty.call(N,g)){if(C.includes(g))continue;p[g]=N[g]}return p}function h(N,C){N.prototype=Object.create(C.prototype),N.prototype.constructor=N,c(N,C)}function c(N,C){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,g){return p.__proto__=g,p},c(N,C)}var i=510,m=2,d=function(C){return C.stopPropagation&&C.stopPropagation(),C.preventDefault&&C.preventDefault(),C.cancelBubble=!0,C.returnValue=!1,!1},u=r.NanoMap=function(N){function C(g){var V,B,I,L;L=N.call(this,g)||this;var w=window.innerWidth/2-256,A=window.innerHeight/2-256;return L.state={offsetX:(V=g.offsetX)!=null?V:0,offsetY:(B=g.offsetY)!=null?B:0,dragging:!1,originX:null,originY:null,zoom:(I=g.zoom)!=null?I:1},L.handleDragStart=function(x){L.ref=x.target,L.setState({dragging:!1,originX:x.screenX,originY:x.screenY}),document.addEventListener("mousemove",L.handleDragMove),document.addEventListener("mouseup",L.handleDragEnd),d(x)},L.handleDragMove=function(x){L.setState(function(E){var P=Object.assign({},E),j=x.screenX-P.originX,M=x.screenY-P.originY;return E.dragging?(P.offsetX+=j/P.zoom,P.offsetY+=M/P.zoom,P.originX=x.screenX,P.originY=x.screenY):P.dragging=!0,P}),d(x)},L.handleDragEnd=function(x){L.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",L.handleDragMove),document.removeEventListener("mouseup",L.handleDragEnd),g.onOffsetChange==null||g.onOffsetChange(x,L.state),d(x)},L.handleZoom=function(x,E){L.setState(function(P){var j=Math.min(Math.max(E,1),8);return P.zoom=j,g.onZoom&&g.onZoom(P.zoom),P})},L.handleReset=function(x){L.setState(function(E){E.offsetX=0,E.offsetY=0,E.zoom=1,L.handleZoom(x,1),g.onOffsetChange==null||g.onOffsetChange(x,E)})},L}h(C,N);var p=C.prototype;return p.getChildContext=function(){function g(){return{map:{zoom:this.state.zoom}}}return g}(),p.render=function(){function g(){var V=(0,t.useBackend)(this.context),B=V.config,I=this.state,L=I.dragging,w=I.offsetX,A=I.offsetY,x=I.zoom,E=x===void 0?1:x,P=this.props.children,j=B.map+"_nanomap_z1.png",M=i*E+"px",R={width:M,height:M,"margin-top":A*E+"px","margin-left":w*E+"px",overflow:"hidden",position:"relative",top:"50%",left:"50%",transform:"translate(-50%, -50%)","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:L?"move":"auto"},D={width:"100%",height:"100%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"};return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__container",children:[(0,e.createComponentVNode)(2,a.Box,{style:R,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,b.resolveAsset)(j),style:D}),(0,e.createComponentVNode)(2,a.Box,{children:P})]}),(0,e.createComponentVNode)(2,v,{zoom:E,onZoom:this.handleZoom,onReset:this.handleReset})]})}return g}(),C}(e.Component),s=function(C,p){var g=p.map.zoom,V=C.x,B=C.y,I=C.icon,L=C.tooltip,w=C.color,A=C.children,x=k(C,y),E=m*g,P=(V-1)*E,j=(B-1)*E;return(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,a.Tooltip,{content:L,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:j+"px",left:P+"px",width:E+"px",height:E+"px"},x,{children:A})))}),2)};u.Marker=s;var l=function(C,p){var g=p.map.zoom,V=C.icon,B=C.color,I=k(C,S),L=m*g+4/Math.ceil(g/4);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({},I,{children:(0,e.createComponentVNode)(2,a.Icon,{name:V,color:B,fontSize:L+"px",style:{position:"relative",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})})))};u.MarkerIcon=l;var v=function(C,p){return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__zoomer",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Zoom",labelStyle:{"vertical-align":"middle"},children:(0,e.createComponentVNode)(2,a.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,f.Slider,{minValue:1,maxValue:8,stepPixelSize:10,format:function(){function g(V){return V+"x"}return g}(),value:C.zoom,onDrag:function(){function g(V,B){return C.onZoom(V,B)}return g}()}),(0,e.createComponentVNode)(2,a.Button,{ml:"0.5em",float:"right",icon:"sync",tooltip:"Reset View",onClick:function(){function g(V){return C.onReset==null?void 0:C.onReset(V)}return g}()})]})})})})};u.Zoomer=v},74733:function(T,r,n){"use strict";r.__esModule=!0,r.NoticeBox=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","color","info","warning","success","danger"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -157,15 +157,15 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var S=400,k=r.NumberInput=function(h){function c(m){var d;d=h.call(this,m)||this;var u=m.value;return d.inputRef=(0,e.createRef)(),d.state={value:u,dragging:!1,editing:!1,internalValue:null,origin:null,suppressingFlicker:!1},d.flickerTimer=null,d.suppressFlicker=function(){var s=d.props.suppressFlicker;s>0&&(d.setState({suppressingFlicker:!0}),clearTimeout(d.flickerTimer),d.flickerTimer=setTimeout(function(){return d.setState({suppressingFlicker:!1})},s))},d.handleDragStart=function(s){var l=d.props.value,v=d.state.editing;v||(document.body.style["pointer-events"]="none",d.ref=s.target,d.setState({dragging:!1,origin:s.screenY,value:l,internalValue:l}),d.timer=setTimeout(function(){d.setState({dragging:!0})},250),d.dragInterval=setInterval(function(){var N=d.state,C=N.dragging,p=N.value,g=d.props.onDrag;C&&g&&g(s,p)},d.props.updateRate||S),document.addEventListener("mousemove",d.handleDragMove),document.addEventListener("mouseup",d.handleDragEnd))},d.handleDragMove=function(s){var l=d.props,v=l.minValue,N=l.maxValue,C=l.step,p=l.stepPixelSize;d.setState(function(g){var V=Object.assign({},g),B=V.origin-s.screenY;if(g.dragging){var I=Number.isFinite(v)?v%C:0;V.internalValue=(0,a.clamp)(V.internalValue+B*C/p,v-C,N+C),V.value=(0,a.clamp)(V.internalValue-V.internalValue%C+I,v,N),V.origin=s.screenY}else Math.abs(B)>4&&(V.dragging=!0);return V})},d.handleDragEnd=function(s){var l=d.props,v=l.onChange,N=l.onDrag,C=d.state,p=C.dragging,g=C.value,V=C.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(d.timer),clearInterval(d.dragInterval),d.setState({dragging:!1,editing:!p,origin:null}),document.removeEventListener("mousemove",d.handleDragMove),document.removeEventListener("mouseup",d.handleDragEnd),p)d.suppressFlicker(),v&&v(s,g),N&&N(s,g);else if(d.inputRef){var B=d.inputRef.current;B.value=V;try{B.focus(),B.select()}catch(I){}}},d}b(c,h);var i=c.prototype;return i.render=function(){function m(){var d=this,u=this.state,s=u.dragging,l=u.editing,v=u.value,N=u.suppressingFlicker,C=this.props,p=C.className,g=C.fluid,V=C.animated,B=C.value,I=C.unit,L=C.minValue,w=C.maxValue,x=C.height,A=C.width,E=C.lineHeight,P=C.fontSize,j=C.format,M=C.onChange,R=C.onDrag,D=B;(s||N)&&(D=v);var W=(0,e.createVNode)(1,"div","NumberInput__content",[V&&!s&&!N?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:D,format:j}):j?j(D):D,I?" "+I:""],0);return(0,e.createComponentVNode)(2,f.Box,{className:(0,t.classes)(["NumberInput",g&&"NumberInput--fluid",p]),minWidth:A,minHeight:x,lineHeight:E,fontSize:P,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"div","NumberInput__barContainer",(0,e.createVNode)(1,"div","NumberInput__bar",null,1,{style:{height:(0,a.clamp)((D-L)/(w-L)*100,0,100)+"%"}}),2),W,(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:l?void 0:"none",height:x,"line-height":E,"font-size":P},onBlur:function(){function _(U){if(l){var K=(0,a.clamp)(parseFloat(U.target.value),L,w);if(Number.isNaN(K)){d.setState({editing:!1});return}d.setState({editing:!1,value:K}),d.suppressFlicker(),M&&M(U,K),R&&R(U,K)}}return _}(),onKeyDown:function(){function _(U){if(U.keyCode===13){var K=(0,a.clamp)(parseFloat(U.target.value),L,w);if(Number.isNaN(K)){d.setState({editing:!1});return}d.setState({editing:!1,value:K}),d.suppressFlicker(),M&&M(U,K),R&&R(U,K);return}if(U.keyCode===27){d.setState({editing:!1});return}}return _}()},null,this.inputRef)]})}return m}(),c}(e.Component);k.defaultHooks=t.pureComponentHooks,k.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50}},50186:function(T,r,n){"use strict";r.__esModule=!0,r.Popper=void 0;var e=n(95996),a=n(89005);function t(b,y){b.prototype=Object.create(y.prototype),b.prototype.constructor=b,o(b,y)}function o(b,y){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(S,k){return S.__proto__=k,S},o(b,y)}var f=r.Popper=function(b){function y(){var k;return k=b.call(this)||this,k.renderedContent=void 0,k.popperInstance=void 0,y.id+=1,k}t(y,b);var S=y.prototype;return S.componentDidMount=function(){function k(){var h=this,c=this.props,i=c.additionalStyles,m=c.options;if(this.renderedContent=document.createElement("div"),i)for(var d=0,u=Object.entries(i);d0&&(d.setState({suppressingFlicker:!0}),clearTimeout(d.flickerTimer),d.flickerTimer=setTimeout(function(){return d.setState({suppressingFlicker:!1})},s))},d.handleDragStart=function(s){var l=d.props.value,v=d.state.editing;v||(document.body.style["pointer-events"]="none",d.ref=s.target,d.setState({dragging:!1,origin:s.screenY,value:l,internalValue:l}),d.timer=setTimeout(function(){d.setState({dragging:!0})},250),d.dragInterval=setInterval(function(){var N=d.state,C=N.dragging,p=N.value,g=d.props.onDrag;C&&g&&g(s,p)},d.props.updateRate||S),document.addEventListener("mousemove",d.handleDragMove),document.addEventListener("mouseup",d.handleDragEnd))},d.handleDragMove=function(s){var l=d.props,v=l.minValue,N=l.maxValue,C=l.step,p=l.stepPixelSize;d.setState(function(g){var V=Object.assign({},g),B=V.origin-s.screenY;if(g.dragging){var I=Number.isFinite(v)?v%C:0;V.internalValue=(0,a.clamp)(V.internalValue+B*C/p,v-C,N+C),V.value=(0,a.clamp)(V.internalValue-V.internalValue%C+I,v,N),V.origin=s.screenY}else Math.abs(B)>4&&(V.dragging=!0);return V})},d.handleDragEnd=function(s){var l=d.props,v=l.onChange,N=l.onDrag,C=d.state,p=C.dragging,g=C.value,V=C.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(d.timer),clearInterval(d.dragInterval),d.setState({dragging:!1,editing:!p,origin:null}),document.removeEventListener("mousemove",d.handleDragMove),document.removeEventListener("mouseup",d.handleDragEnd),p)d.suppressFlicker(),v&&v(s,g),N&&N(s,g);else if(d.inputRef){var B=d.inputRef.current;B.value=V;try{B.focus(),B.select()}catch(I){}}},d}b(c,h);var i=c.prototype;return i.render=function(){function m(){var d=this,u=this.state,s=u.dragging,l=u.editing,v=u.value,N=u.suppressingFlicker,C=this.props,p=C.className,g=C.fluid,V=C.animated,B=C.value,I=C.unit,L=C.minValue,w=C.maxValue,A=C.height,x=C.width,E=C.lineHeight,P=C.fontSize,j=C.format,M=C.onChange,R=C.onDrag,D=B;(s||N)&&(D=v);var W=(0,e.createVNode)(1,"div","NumberInput__content",[V&&!s&&!N?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:D,format:j}):j?j(D):D,I?" "+I:""],0);return(0,e.createComponentVNode)(2,f.Box,{className:(0,t.classes)(["NumberInput",g&&"NumberInput--fluid",p]),minWidth:x,minHeight:A,lineHeight:E,fontSize:P,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"div","NumberInput__barContainer",(0,e.createVNode)(1,"div","NumberInput__bar",null,1,{style:{height:(0,a.clamp)((D-L)/(w-L)*100,0,100)+"%"}}),2),W,(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:l?void 0:"none",height:A,"line-height":E,"font-size":P},onBlur:function(){function _(U){if(l){var K=(0,a.clamp)(parseFloat(U.target.value),L,w);if(Number.isNaN(K)){d.setState({editing:!1});return}d.setState({editing:!1,value:K}),d.suppressFlicker(),M&&M(U,K),R&&R(U,K)}}return _}(),onKeyDown:function(){function _(U){if(U.keyCode===13){var K=(0,a.clamp)(parseFloat(U.target.value),L,w);if(Number.isNaN(K)){d.setState({editing:!1});return}d.setState({editing:!1,value:K}),d.suppressFlicker(),M&&M(U,K),R&&R(U,K);return}if(U.keyCode===27){d.setState({editing:!1});return}}return _}()},null,this.inputRef)]})}return m}(),c}(e.Component);k.defaultHooks=t.pureComponentHooks,k.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50}},50186:function(T,r,n){"use strict";r.__esModule=!0,r.Popper=void 0;var e=n(95996),a=n(89005);function t(b,y){b.prototype=Object.create(y.prototype),b.prototype.constructor=b,o(b,y)}function o(b,y){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(S,k){return S.__proto__=k,S},o(b,y)}var f=r.Popper=function(b){function y(){var k;return k=b.call(this)||this,k.renderedContent=void 0,k.popperInstance=void 0,y.id+=1,k}t(y,b);var S=y.prototype;return S.componentDidMount=function(){function k(){var h=this,c=this.props,i=c.additionalStyles,m=c.options;if(this.renderedContent=document.createElement("div"),i)for(var d=0,u=Object.entries(i);dm)return"in the future";i=i/10,m=m/10;var d=m-i;if(d>3600){var u=Math.round(d/3600);return u+" hour"+(u===1?"":"s")+" ago"}else if(d>60){var s=Math.round(d/60);return s+" minute"+(s===1?"":"s")+" ago"}else{var l=Math.round(d);return l+" second"+(l===1?"":"s")+" ago"}return"just now"}return c}()},40944:function(T,r,n){"use strict";r.__esModule=!0,r.KitchenSink=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595);/** +*/var c=r.TextArea=function(i){function m(u,s){var l;l=i.call(this,u,s)||this,l.textareaRef=u.innerRef||(0,e.createRef)(),l.fillerRef=(0,e.createRef)(),l.state={editing:!1};var v=u.dontUseTabForIndent,N=v===void 0?!1:v;return l.handleOnInput=function(C){var p=l.state.editing,g=l.props.onInput;p||l.setEditing(!0),g&&g(C,C.target.value)},l.handleOnChange=function(C){var p=l.state.editing,g=l.props.onChange;p&&l.setEditing(!1),g&&g(C,C.target.value)},l.handleKeyPress=function(C){var p=l.state.editing,g=l.props.onKeyPress;p||l.setEditing(!0),g&&g(C,C.target.value)},l.handleKeyDown=function(C){var p=l.state.editing,g=l.props,V=g.onChange,B=g.onInput,I=g.onEnter,L=g.onKeyDown;if(C.keyCode===f.KEY_ENTER){l.setEditing(!1),V&&V(C,C.target.value),B&&B(C,C.target.value),I&&I(C,C.target.value),l.props.selfClear&&(C.target.value="",C.target.blur());return}if(C.keyCode===f.KEY_ESCAPE){l.props.onEscape&&l.props.onEscape(C),l.setEditing(!1),l.props.selfClear?C.target.value="":(C.target.value=(0,o.toInputValue)(l.props.value),C.target.blur());return}if(p||l.setEditing(!0),L&&L(C,C.target.value),!N){var w=C.keyCode||C.which;if(w===f.KEY_TAB){C.preventDefault();var A=C.target,x=A.value,E=A.selectionStart,P=A.selectionEnd;C.target.value=x.substring(0,E)+" "+x.substring(P),C.target.selectionEnd=E+1}}},l.handleFocus=function(C){var p=l.state.editing;p||l.setEditing(!0)},l.handleBlur=function(C){var p=l.state.editing,g=l.props.onChange;p&&(l.setEditing(!1),g&&g(C,C.target.value))},l}k(m,i);var d=m.prototype;return d.componentDidMount=function(){function u(){var s=this,l=this.props.value,v=this.textareaRef.current;v&&(v.value=(0,o.toInputValue)(l)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){v.focus(),s.props.autoSelect&&v.select()},1)}return u}(),d.componentDidUpdate=function(){function u(s,l){var v=s.value,N=this.props.value,C=this.textareaRef.current;C&&typeof N=="string"&&v!==N&&(C.value=(0,o.toInputValue)(N))}return u}(),d.setEditing=function(){function u(s){this.setState({editing:s})}return u}(),d.getValue=function(){function u(){return this.textareaRef.current&&this.textareaRef.current.value}return u}(),d.render=function(){function u(){var s=this.props,l=s.onChange,v=s.onKeyDown,N=s.onKeyPress,C=s.onInput,p=s.onFocus,g=s.onBlur,V=s.onEnter,B=s.value,I=s.maxLength,L=s.placeholder,w=S(s,b),A=w.className,x=w.fluid,E=S(w,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["TextArea",x&&"TextArea--fluid",A])},E,{children:(0,e.createVNode)(128,"textarea","TextArea__textarea",null,1,{placeholder:L,onChange:this.handleOnChange,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onInput:this.handleOnInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:I},null,this.textareaRef)})))}return u}(),m}(e.Component)},5169:function(T,r){"use strict";r.__esModule=!0,r.TimeDisplay=void 0;var n=function(t){(!t||t<0)&&(t=0);var o=Math.floor(t/60).toString(10),f=(Math.floor(t)%60).toString(10);return[o,f].map(function(b){return b.length<2?"0"+b:b}).join(":")},e=r.TimeDisplay=function(){function a(t){var o=t.totalSeconds,f=o===void 0?0:o;return n(f)}return a}()},62147:function(T,r,n){"use strict";r.__esModule=!0,r.Tooltip=void 0;var e=n(89005),a=n(95996),t;function o(k,h){k.prototype=Object.create(h.prototype),k.prototype.constructor=k,f(k,h)}function f(k,h){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,i){return c.__proto__=i,c},f(k,h)}var b={modifiers:[{name:"eventListeners",enabled:!1}]},y={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function k(){return null}return k}()},S=r.Tooltip=function(k){function h(){return k.apply(this,arguments)||this}o(h,k);var c=h.prototype;return c.getDOMNode=function(){function i(){return(0,e.findDOMFromVNode)(this.$LI,!0)}return i}(),c.componentDidMount=function(){function i(){var m=this,d=this.getDOMNode();d&&(d.addEventListener("mouseenter",function(){var u=h.renderedTooltip;u===void 0&&(u=document.createElement("div"),u.className="Tooltip",document.body.appendChild(u),h.renderedTooltip=u),h.currentHoveredElement=d,u.style.opacity="1",m.renderPopperContent()}),d.addEventListener("mouseleave",function(){m.fadeOut()}))}return i}(),c.fadeOut=function(){function i(){h.currentHoveredElement===this.getDOMNode()&&(h.currentHoveredElement=void 0,h.renderedTooltip.style.opacity="0")}return i}(),c.renderPopperContent=function(){function i(){var m=this,d=h.renderedTooltip;d&&(0,e.render)((0,e.createVNode)(1,"span",null,this.props.content,0),d,function(){var u=h.singletonPopper;u===void 0?(u=(0,a.createPopper)(h.virtualElement,d,Object.assign({},b,{placement:m.props.position||"auto"})),h.singletonPopper=u):(u.setOptions(Object.assign({},b,{placement:m.props.position||"auto"})),u.update())},this.context)}return i}(),c.componentDidUpdate=function(){function i(){h.currentHoveredElement===this.getDOMNode()&&this.renderPopperContent()}return i}(),c.componentWillUnmount=function(){function i(){this.fadeOut()}return i}(),c.render=function(){function i(){return this.props.children}return i}(),h}(e.Component);t=S,S.renderedTooltip=void 0,S.singletonPopper=void 0,S.currentHoveredElement=void 0,S.virtualElement={getBoundingClientRect:function(){function k(){var h,c;return(h=(c=t.currentHoveredElement)==null?void 0:c.getBoundingClientRect())!=null?h:y}return k}()}},36036:function(T,r,n){"use strict";r.__esModule=!0,r.Tooltip=r.TimeDisplay=r.TextArea=r.Tabs=r.Table=r.Stack=r.Slider=r.Section=r.RoundGauge=r.RestrictedInput=r.ProgressBar=r.Popper=r.NumberInput=r.NoticeBox=r.NanoMap=r.Modal=r.LabeledList=r.LabeledControls=r.Knob=r.Input=r.ImageButton=r.Icon=r.Grid=r.Flex=r.Dropdown=r.DraggableControl=r.Divider=r.Dimmer=r.Countdown=r.ColorBox=r.Collapsible=r.Chart=r.ByondUi=r.Button=r.Box=r.BlockQuote=r.Blink=r.Autofocus=r.AnimatedNumber=void 0;var e=n(9474);r.AnimatedNumber=e.AnimatedNumber;var a=n(27185);r.Autofocus=a.Autofocus;var t=n(5814);r.Blink=t.Blink;var o=n(61773);r.BlockQuote=o.BlockQuote;var f=n(55937);r.Box=f.Box;var b=n(96184);r.Button=b.Button;var y=n(18982);r.ByondUi=y.ByondUi;var S=n(66820);r.Chart=S.Chart;var k=n(4796);r.Collapsible=k.Collapsible;var h=n(88894);r.ColorBox=h.ColorBox;var c=n(73379);r.Countdown=c.Countdown;var i=n(61940);r.Dimmer=i.Dimmer;var m=n(13605);r.Divider=m.Divider;var d=n(20342);r.DraggableControl=d.DraggableControl;var u=n(87099);r.Dropdown=u.Dropdown;var s=n(39473);r.Flex=s.Flex;var l=n(79646);r.Grid=l.Grid;var v=n(1331);r.Icon=v.Icon;var N=n(79825);r.ImageButton=N.ImageButton;var C=n(79652);r.Input=C.Input;var p=n(76334);r.Knob=p.Knob;var g=n(78621);r.LabeledControls=g.LabeledControls;var V=n(29319);r.LabeledList=V.LabeledList;var B=n(36077);r.Modal=B.Modal;var I=n(73280);r.NanoMap=I.NanoMap;var L=n(74733);r.NoticeBox=L.NoticeBox;var w=n(59263);r.NumberInput=w.NumberInput;var A=n(50186);r.Popper=A.Popper;var x=n(92704);r.ProgressBar=x.ProgressBar;var E=n(9075);r.RestrictedInput=E.RestrictedInput;var P=n(11441);r.RoundGauge=P.RoundGauge;var j=n(97079);r.Section=j.Section;var M=n(79911);r.Slider=M.Slider;var R=n(96690);r.Stack=R.Stack;var D=n(36352);r.Table=D.Table;var W=n(85138);r.Tabs=W.Tabs;var _=n(44868);r.TextArea=_.TextArea;var U=n(5169);r.TimeDisplay=U.TimeDisplay;var K=n(62147);r.Tooltip=K.Tooltip},76910:function(T,r){"use strict";r.__esModule=!0,r.timeAgo=r.getGasLabel=r.getGasColor=r.UI_UPDATE=r.UI_INTERACTIVE=r.UI_DISABLED=r.UI_CLOSE=r.RADIO_CHANNELS=r.CSS_COLORS=r.COLORS=void 0;var n=r.UI_INTERACTIVE=2,e=r.UI_UPDATE=1,a=r.UI_DISABLED=0,t=r.UI_CLOSE=-1,o=r.COLORS={department:{command:"#526aff",security:"#CF0000",medical:"#009190",science:"#993399",engineering:"#A66300",supply:"#9F8545",service:"#80A000",centcom:"#78789B",other:"#C38312"},damageType:{oxy:"#3498db",toxin:"#2ecc71",burn:"#e67e22",brute:"#e74c3c"}},f=r.CSS_COLORS=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"],b=r.RADIO_CHANNELS=[{name:"Syndicate",freq:1213,color:"#a52a2a"},{name:"SyndTeam",freq:1244,color:"#a52a2a"},{name:"Red Team",freq:1215,color:"#ff4444"},{name:"Blue Team",freq:1217,color:"#3434fd"},{name:"Response Team",freq:1345,color:"#2681a5"},{name:"Special Ops",freq:1341,color:"#2681a5"},{name:"Supply",freq:1347,color:"#b88646"},{name:"Service",freq:1349,color:"#6ca729"},{name:"Science",freq:1351,color:"#c68cfa"},{name:"Command",freq:1353,color:"#5177ff"},{name:"Procedure",freq:1339,color:"#F70285"},{name:"Medical",freq:1355,color:"#57b8f0"},{name:"Medical(I)",freq:1485,color:"#57b8f0"},{name:"Engineering",freq:1357,color:"#f37746"},{name:"Security",freq:1359,color:"#dd3535"},{name:"Security(I)",freq:1475,color:"#dd3535"},{name:"AI Private",freq:1343,color:"#d65d95"},{name:"Common",freq:1459,color:"#1ecc43"}],y=[{id:"o2",name:"Oxygen",label:"O\u2082",color:"blue"},{id:"n2",name:"Nitrogen",label:"N\u2082",color:"red"},{id:"co2",name:"Carbon Dioxide",label:"CO\u2082",color:"grey"},{id:"plasma",name:"Plasma",label:"Plasma",color:"pink"},{id:"water_vapor",name:"Water Vapor",label:"H\u2082O",color:"grey"},{id:"nob",name:"Hyper-noblium",label:"Hyper-nob",color:"teal"},{id:"n2o",name:"Nitrous Oxide",label:"N\u2082O",color:"red"},{id:"no2",name:"Nitryl",label:"NO\u2082",color:"brown"},{id:"tritium",name:"Tritium",label:"Tritium",color:"green"},{id:"bz",name:"BZ",label:"BZ",color:"purple"},{id:"stim",name:"Stimulum",label:"Stimulum",color:"purple"},{id:"pluox",name:"Pluoxium",label:"Pluoxium",color:"blue"},{id:"miasma",name:"Miasma",label:"Miasma",color:"olive"},{id:"hydrogen",name:"Hydrogen",label:"H\u2082",color:"white"},{id:"ab",name:"Agent B",label:"Agent B",color:"purple"}],S=r.getGasLabel=function(){function c(i,m){var d=String(i).toLowerCase(),u=y.find(function(s){return s.id===d||s.name.toLowerCase()===d});return u&&u.label||m||i}return c}(),k=r.getGasColor=function(){function c(i){var m=String(i).toLowerCase(),d=y.find(function(u){return u.id===m||u.name.toLowerCase()===m});return d&&d.color}return c}(),h=r.timeAgo=function(){function c(i,m){if(i>m)return"in the future";i=i/10,m=m/10;var d=m-i;if(d>3600){var u=Math.round(d/3600);return u+" hour"+(u===1?"":"s")+" ago"}else if(d>60){var s=Math.round(d/60);return s+" minute"+(s===1?"":"s")+" ago"}else{var l=Math.round(d);return l+" second"+(l===1?"":"s")+" ago"}return"just now"}return c}()},40944:function(T,r,n){"use strict";r.__esModule=!0,r.KitchenSink=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -218,7 +218,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var y=(0,t.createLogger)("drag"),S=Byond.windowId,k=!1,h=!1,c=[0,0],i,m,d,u,s,l=r.setWindowKey=function(){function D(W){S=W}return D}(),v=r.getWindowPosition=function(){function D(){return[window.screenLeft,window.screenTop]}return D}(),N=r.getWindowSize=function(){function D(){return[window.innerWidth,window.innerHeight]}return D}(),C=r.setWindowPosition=function(){function D(W){var _=(0,a.vecAdd)(W,c);return Byond.winset(Byond.windowId,{pos:_[0]+","+_[1]})}return D}(),p=r.setWindowSize=function(){function D(W){return Byond.winset(Byond.windowId,{size:W[0]+"x"+W[1]})}return D}(),g=r.getScreenPosition=function(){function D(){return[0-c[0],0-c[1]]}return D}(),V=r.getScreenSize=function(){function D(){return[window.screen.availWidth,window.screen.availHeight]}return D}(),B=function(W,_,U){U===void 0&&(U=50);for(var K=[_],G,$=0;$ie&&(G[Q]=ie-_[Q],$=!0)}return[$,G]},A=r.dragStartHandler=function(){function D(W){y.log("drag start"),k=!0,m=[window.screenLeft-W.screenX,window.screenTop-W.screenY],document.addEventListener("mousemove",P),document.addEventListener("mouseup",E),P(W)}return D}(),E=function D(W){y.log("drag end"),P(W),document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",D),k=!1,I()},P=function(W){k&&(W.preventDefault(),C((0,a.vecAdd)([W.screenX,W.screenY],m)))},j=r.resizeStartHandler=function(){function D(W,_){return function(U){d=[W,_],y.log("resize start",d),h=!0,m=[window.screenLeft-U.screenX,window.screenTop-U.screenY],u=[window.innerWidth,window.innerHeight],document.addEventListener("mousemove",R),document.addEventListener("mouseup",M),R(U)}}return D}(),M=function D(W){y.log("resize end",s),R(W),document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",D),h=!1,I()},R=function(W){h&&(W.preventDefault(),s=(0,a.vecAdd)(u,(0,a.vecMultiply)(d,(0,a.vecAdd)([W.screenX,W.screenY],(0,a.vecInverse)([window.screenLeft,window.screenTop]),m,[1,1]))),s[0]=Math.max(s[0],150),s[1]=Math.max(s[1],50),p(s))}},24826:function(T,r,n){"use strict";r.__esModule=!0,r.setupGlobalEvents=r.removeScrollableNode=r.globalEvents=r.canStealFocus=r.addScrollableNode=r.KeyEvent=void 0;var e=n(92868),a=n(92986);/** +*/var y=(0,t.createLogger)("drag"),S=Byond.windowId,k=!1,h=!1,c=[0,0],i,m,d,u,s,l=r.setWindowKey=function(){function D(W){S=W}return D}(),v=r.getWindowPosition=function(){function D(){return[window.screenLeft,window.screenTop]}return D}(),N=r.getWindowSize=function(){function D(){return[window.innerWidth,window.innerHeight]}return D}(),C=r.setWindowPosition=function(){function D(W){var _=(0,a.vecAdd)(W,c);return Byond.winset(Byond.windowId,{pos:_[0]+","+_[1]})}return D}(),p=r.setWindowSize=function(){function D(W){return Byond.winset(Byond.windowId,{size:W[0]+"x"+W[1]})}return D}(),g=r.getScreenPosition=function(){function D(){return[0-c[0],0-c[1]]}return D}(),V=r.getScreenSize=function(){function D(){return[window.screen.availWidth,window.screen.availHeight]}return D}(),B=function(W,_,U){U===void 0&&(U=50);for(var K=[_],G,$=0;$ie&&(G[Q]=ie-_[Q],$=!0)}return[$,G]},x=r.dragStartHandler=function(){function D(W){y.log("drag start"),k=!0,m=[window.screenLeft-W.screenX,window.screenTop-W.screenY],document.addEventListener("mousemove",P),document.addEventListener("mouseup",E),P(W)}return D}(),E=function D(W){y.log("drag end"),P(W),document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",D),k=!1,I()},P=function(W){k&&(W.preventDefault(),C((0,a.vecAdd)([W.screenX,W.screenY],m)))},j=r.resizeStartHandler=function(){function D(W,_){return function(U){d=[W,_],y.log("resize start",d),h=!0,m=[window.screenLeft-U.screenX,window.screenTop-U.screenY],u=[window.innerWidth,window.innerHeight],document.addEventListener("mousemove",R),document.addEventListener("mouseup",M),R(U)}}return D}(),M=function D(W){y.log("resize end",s),R(W),document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",D),h=!1,I()},R=function(W){h&&(W.preventDefault(),s=(0,a.vecAdd)(u,(0,a.vecMultiply)(d,(0,a.vecAdd)([W.screenX,W.screenY],(0,a.vecInverse)([window.screenLeft,window.screenTop]),m,[1,1]))),s[0]=Math.max(s[0],150),s[1]=Math.max(s[1],50),p(s))}},24826:function(T,r,n){"use strict";r.__esModule=!0,r.setupGlobalEvents=r.removeScrollableNode=r.globalEvents=r.canStealFocus=r.addScrollableNode=r.KeyEvent=void 0;var e=n(92868),a=n(92986);/** * Normalized browser focus events and BYOND-specific focus helpers. * * @file @@ -238,7 +238,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var b=(0,t.createLogger)("hotkeys"),y={},S=[e.KEY_ESCAPE,e.KEY_ENTER,e.KEY_SPACE,e.KEY_TAB,e.KEY_CTRL,e.KEY_SHIFT,e.KEY_UP,e.KEY_DOWN,e.KEY_LEFT,e.KEY_RIGHT],k={},h=function(l){if(l===16)return"Shift";if(l===17)return"Ctrl";if(l===18)return"Alt";if(l===33)return"Northeast";if(l===34)return"Southeast";if(l===35)return"Southwest";if(l===36)return"Northwest";if(l===37)return"West";if(l===38)return"North";if(l===39)return"East";if(l===40)return"South";if(l===45)return"Insert";if(l===46)return"Delete";if(l>=48&&l<=57||l>=65&&l<=90)return String.fromCharCode(l);if(l>=96&&l<=105)return"Numpad"+(l-96);if(l>=112&&l<=123)return"F"+(l-111);if(l===188)return",";if(l===189)return"-";if(l===190)return"."},c=function(l){var v=String(l);if(v==="Ctrl+F5"||v==="Ctrl+R"){location.reload();return}if(v!=="Ctrl+F"&&!(l.event.defaultPrevented||l.isModifierKey()||S.includes(l.code))){v==="F5"&&(l.event.preventDefault(),l.event.returnValue=!1);var N=h(l.code);if(N){var C=y[N];if(C)return b.debug("macro",C),Byond.command(C);if(l.isDown()&&!k[N]){k[N]=!0;var p='Key_Down "'+N+'"';return b.debug(p),Byond.command(p)}if(l.isUp()&&k[N]){k[N]=!1;var g='Key_Up "'+N+'"';return b.debug(g),Byond.command(g)}}}},i=r.acquireHotKey=function(){function s(l){S.push(l)}return s}(),m=r.releaseHotKey=function(){function s(l){var v=S.indexOf(l);v>=0&&S.splice(v,1)}return s}(),d=r.releaseHeldKeys=function(){function s(){for(var l=0,v=Object.keys(k);l=75?i="green":c.integrity>=25?i="yellow":i="red",(0,e.createComponentVNode)(2,o.Window,{width:600,height:420,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:c.name,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:i,value:c.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,c.flushing===1?"Wipe of AI in progress...":"",0)})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!c.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:c.laws.map(function(m,d){return(0,e.createComponentVNode)(2,t.Box,{children:m},d)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:c.wireless?"check":"times",content:c.wireless?"Enabled":"Disabled",color:c.wireless?"green":"red",onClick:function(){function m(){return h("wireless")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:c.radio?"check":"times",content:c.radio?"Enabled":"Disabled",color:c.radio?"green":"red",onClick:function(){function m(){return h("radio")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wipe",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{width:10,icon:"trash-alt",confirmIcon:"trash-alt",disabled:c.flushing||c.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function m(){return h("wipe")}return m}()})})]})})})]})})})}return b}()},39454:function(T,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AIFixer=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data;if(c.occupant===null)return(0,e.createComponentVNode)(2,o.Window,{width:550,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"robot",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No Artificial Intelligence detected.",16)]})})})})});var i=!0;(c.stat===2||c.stat===null)&&(i=!1);var m=null;c.integrity>=75?m="green":c.integrity>=25?m="yellow":m="red";var d=!0;return c.integrity>=100&&c.stat!==2&&(d=!1),(0,e.createComponentVNode)(2,o.Window,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:c.occupant,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:m,value:c.integrity/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:i?"green":"red",children:i?"Functional":"Non-Functional"})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!c.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:c.laws.map(function(u,s){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:u},s)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.wireless?"times":"check",content:c.wireless?"Disabled":"Enabled",color:c.wireless?"red":"green",onClick:function(){function u(){return h("wireless")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.radio?"times":"check",content:c.radio?"Disabled":"Enabled",color:c.radio?"red":"green",onClick:function(){function u(){return h("radio")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!d||c.active,content:!d||c.active?"Already Repaired":"Repair",onClick:function(){function u(){return h("fix")}return u}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:c.active?"Reconstruction in progress.":""})]})})]})})})}return b}()},88422:function(T,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(195),b=r.APC=function(){function h(c,i){return(0,e.createComponentVNode)(2,o.Window,{width:510,height:435,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,k)})})}return h}(),y={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},S={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},k=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.locked&&!u.siliconUser,l=u.normallyLocked,v=y[u.externalPower]||y[0],N=y[u.chargingStatus]||y[0],C=u.powerChannels||[],p=S[u.malfStatus]||S[0],g=u.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main Breaker",color:v.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u.isOperating?"power-off":"times",content:u.isOperating?"On":"Off",selected:u.isOperating&&!s,color:u.isOperating?"":"bad",disabled:s,onClick:function(){function V(){return d("breaker")}return V}()}),children:["[ ",v.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:g})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",color:N.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u.chargeMode?"sync":"times",content:u.chargeMode?"Auto":"Off",selected:u.chargeMode,disabled:s,onClick:function(){function V(){return d("charge")}return V}()}),children:["[ ",N.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[C.map(function(V){var B=V.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:V.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:V.status>=2?"good":"bad",children:V.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!s&&(V.status===1||V.status===3),disabled:s,onClick:function(){function I(){return d("channel",B.auto)}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!s&&V.status===2,disabled:s,onClick:function(){function I(){return d("channel",B.on)}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!s&&V.status===0,disabled:s,onClick:function(){function I(){return d("channel",B.off)}return I}()})],4),children:[V.powerLoad," W"]},V.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:(0,e.createVNode)(1,"b",null,[u.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!u.siliconUser&&(0,e.createFragment)([!!u.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:p.icon,content:p.content,color:"bad",onClick:function(){function V(){return d(p.action)}return V}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function V(){return d("overload")}return V}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.4,icon:u.coverLocked?"lock":"unlock",content:u.coverLocked?"Engaged":"Disengaged",disabled:s,onClick:function(){function V(){return d("cover")}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:u.emergencyLights?"Enabled":"Disabled",disabled:s,onClick:function(){function V(){return d("emergency_lighting")}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{mt:.4,icon:"lightbulb-o",content:u.nightshiftLights?"Enabled":"Disabled",onClick:function(){function V(){return d("toggle_nightshift")}return V}()})})]})})],4)}},99660:function(T,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ATM=function(){function m(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data,N=v.view_screen,C=v.authenticated_account,p=v.ticks_left_locked_down,g=v.linked_db,V;if(p>0)V=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Maximum number of pin attempts exceeded! Access to this ATM has been temporarily disabled."]});else if(!g)V=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Unable to connect to accounts database, please retry and if the issue persists contact Nanotrasen IT support."]});else if(C)switch(N){case 1:V=(0,e.createComponentVNode)(2,y);break;case 2:V=(0,e.createComponentVNode)(2,S);break;case 3:V=(0,e.createComponentVNode)(2,c);break;default:V=(0,e.createComponentVNode)(2,k)}else V=(0,e.createComponentVNode)(2,h);return(0,e.createComponentVNode)(2,o.Window,{width:550,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,t.Section,{children:V})]})})}return m}(),b=function(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data,N=v.machine_id,C=v.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Nanotrasen Automatic Teller Machine",children:[(0,e.createComponentVNode)(2,t.Box,{children:"For all your monetary needs!"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card",children:(0,e.createComponentVNode)(2,t.Button,{content:C,icon:"eject",onClick:function(){function p(){return l("insert_card")}return p}()})})})]})},y=function(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data,N=v.security_level;return(0,e.createComponentVNode)(2,t.Section,{title:"Select a new security level for this account",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Number",icon:"unlock",selected:N===0,onClick:function(){function C(){return l("change_security_level",{new_security_level:1})}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"Either the account number or card is required to access this account. EFTPOS transactions will require a card."}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Pin",icon:"unlock",selected:N===2,onClick:function(){function C(){return l("change_security_level",{new_security_level:2})}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number and pin must be manually entered to access this account and process transactions."})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,i)]})},S=function(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data,N=(0,a.useLocalState)(u,"targetAccNumber",0),C=N[0],p=N[1],g=(0,a.useLocalState)(u,"fundsAmount",0),V=g[0],B=g[1],I=(0,a.useLocalState)(u,"purpose",0),L=I[0],w=I[1],x=v.money;return(0,e.createComponentVNode)(2,t.Section,{title:"Transfer Fund",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",x]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Account Number",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"7 Digit Number",onInput:function(){function A(E,P){return p(P)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Funds to Transfer",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function A(E,P){return B(P)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transaction Purpose",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,onInput:function(){function A(E,P){return w(P)}return A}()})})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){function A(){return l("transfer",{target_acc_number:C,funds_amount:V,purpose:L})}return A}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,i)]})},k=function(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data,N=(0,a.useLocalState)(u,"fundsAmount",0),C=N[0],p=N[1],g=v.owner_name,V=v.money;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Welcome, "+g,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){function B(){return l("logout")}return B}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",V]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function B(I,L){return p(L)}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){function B(){return l("withdrawal",{funds_amount:C})}return B}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Menu",children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change account security level",icon:"lock",onClick:function(){function B(){return l("view_screen",{view_screen:1})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){function B(){return l("view_screen",{view_screen:2})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View transaction log",icon:"list",onClick:function(){function B(){return l("view_screen",{view_screen:3})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print balance statement",icon:"print",onClick:function(){function B(){return l("balance_statement")}return B}()})})]})],4)},h=function(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data,N=(0,a.useLocalState)(u,"accountID",null),C=N[0],p=N[1],g=(0,a.useLocalState)(u,"accountPin",null),V=g[0],B=g[1],I=v.machine_id,L=v.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Insert card or enter ID and pin to login",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account ID",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function w(x,A){return p(A)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function w(x,A){return B(A)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function w(){return l("attempt_auth",{account_num:C,account_pin:V})}return w}()})})]})})},c=function(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data,N=v.transaction_log;return(0,e.createComponentVNode)(2,t.Section,{title:"Transactions",children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Terminal"})]}),N.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:C.is_deposit?"green":"red",children:["$",C.amount]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.target_name})]},C)})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,i)]})},i=function(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function N(){return l("view_screen",{view_screen:0})}return N}()})}},86423:function(T,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(36352),b=n(98595),y=n(321),S=n(5485),k=r.AccountsUplinkTerminal=function(){function v(N,C){var p=(0,t.useBackend)(C),g=p.act,V=p.data,B=V.loginState,I=V.currentPage,L;if(B.logged_in)I===1?L=(0,e.createComponentVNode)(2,c):I===2?L=(0,e.createComponentVNode)(2,s):I===3&&(L=(0,e.createComponentVNode)(2,l));else return(0,e.createComponentVNode)(2,b.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,S.LoginScreen)})})});return(0,e.createComponentVNode)(2,b.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:L})]})})})}return v}(),h=function(N,C){var p=(0,t.useBackend)(C),g=p.data,V=(0,t.useLocalState)(C,"tabIndex",0),B=V[0],I=V[1],L=g.login_state;return(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,mb:1,children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===0,onClick:function(){function w(){return I(0)}return w}(),children:"User Accounts"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===1,onClick:function(){function w(){return I(1)}return w}(),children:"Department Accounts"})]})})})},c=function(N,C){var p=(0,t.useLocalState)(C,"tabIndex",0),g=p[0];switch(g){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,m);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},i=function(N,C){var p=(0,t.useBackend)(C),g=p.act,V=p.data,B=V.accounts,I=(0,t.useLocalState)(C,"searchText",""),L=I[0],w=I[1],x=(0,t.useLocalState)(C,"sortId","owner_name"),A=x[0],E=x[1],P=(0,t.useLocalState)(C,"sortOrder",!0),j=P[0],M=P[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,d,{id:"owner_name",children:"Account Holder"}),(0,e.createComponentVNode)(2,d,{id:"account_number",children:"Account Number"}),(0,e.createComponentVNode)(2,d,{id:"suspended",children:"Account Status"}),(0,e.createComponentVNode)(2,d,{id:"money",children:"Account Balance"})]}),B.filter((0,a.createSearch)(L,function(R){return R.owner_name+"|"+R.account_number+"|"+R.suspended+"|"+R.money})).sort(function(R,D){var W=j?1:-1;return R[A].localeCompare(D[A])*W}).map(function(R){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+R.suspended,onClick:function(){function D(){return g("view_account_detail",{account_num:R.account_number})}return D}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",R.owner_name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",R.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.money})]},R.account_number)})]})})})]})},m=function(N,C){var p=(0,t.useBackend)(C),g=p.act,V=p.data,B=V.department_accounts;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,f.TableCell,{children:"Department Name"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Number"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Status"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Balance"})]}),B.map(function(I){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+I.suspended,onClick:function(){function L(){return g("view_account_detail",{account_num:I.account_number})}return L}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wallet"})," ",I.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",I.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.money})]},I.account_number)})]})})})})},d=function(N,C){var p=(0,t.useLocalState)(C,"sortId","name"),g=p[0],V=p[1],B=(0,t.useLocalState)(C,"sortOrder",!0),I=B[0],L=B[1],w=N.id,x=N.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:g!==w&&"transparent",width:"100%",onClick:function(){function A(){g===w?L(!I):(V(w),L(!0))}return A}(),children:[x,g===w&&(0,e.createComponentVNode)(2,o.Icon,{name:I?"sort-up":"sort-down",ml:"0.25rem;"})]})})},u=function(N,C){var p=(0,t.useBackend)(C),g=p.act,V=p.data,B=V.is_printing,I=(0,t.useLocalState)(C,"searchText",""),L=I[0],w=I[1];return(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"New Account",icon:"plus",onClick:function(){function x(){return g("create_new_account")}return x}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account holder, number, status",width:"100%",onInput:function(){function x(A,E){return w(E)}return x}()})})]})},s=function(N,C){var p=(0,t.useBackend)(C),g=p.act,V=p.data,B=V.account_number,I=V.owner_name,L=V.money,w=V.suspended,x=V.transactions,A=V.account_pin,E=V.is_department_account;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"#"+B+" / "+I,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function P(){return g("back")}return P}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Number",children:["#",B]}),!!E&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin",children:A}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin Actions",children:(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"user-cog",content:"Set New Pin",disabled:!!E,onClick:function(){function P(){return g("set_account_pin",{account_number:B})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:I}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:L}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Status",color:w?"red":"green",children:[w?"Suspended":"Active",(0,e.createComponentVNode)(2,o.Button,{ml:1,content:w?"Unsuspend":"Suspend",icon:w?"unlock":"lock",onClick:function(){function P(){return g("toggle_suspension")}return P}()})]})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Transactions",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Terminal"})]}),x.map(function(P){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:P.is_deposit?"green":"red",children:["$",P.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.target_name})]},P)})]})})})]})},l=function(N,C){var p=(0,t.useBackend)(C),g=p.act,V=p.data,B=(0,t.useLocalState)(C,"accName",""),I=B[0],L=B[1],w=(0,t.useLocalState)(C,"accDeposit",""),x=w[0],A=w[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Create Account",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function E(){return g("back")}return E}()}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Name Here",onChange:function(){function E(P,j){return L(j)}return E}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"0",onChange:function(){function E(P,j){return A(j)}return E}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){function E(){return g("finalise_create_account",{holder_name:I,starting_funds:x})}return E}()})]})}},56793:function(T,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},b=r.AiAirlock=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=f[i.power.main]||f[0],d=f[i.power.backup]||f[0],u=f[i.shock]||f[0];return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main",color:m.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!i.power.main,content:"Disrupt",onClick:function(){function s(){return c("disrupt-main")}return s}()}),children:[i.power.main?"Online":"Offline"," ",!i.wires.main_power&&"[Wires have been cut!]"||i.power.main_timeleft>0&&"["+i.power.main_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Backup",color:d.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!i.power.backup,content:"Disrupt",onClick:function(){function s(){return c("disrupt-backup")}return s}()}),children:[i.power.backup?"Online":"Offline"," ",!i.wires.backup_power&&"[Wires have been cut!]"||i.power.backup_timeleft>0&&"["+i.power.backup_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Electrify",color:u.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"wrench",disabled:!(i.wires.shock&&i.shock!==2),content:"Restore",onClick:function(){function s(){return c("shock-restore")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"bolt",disabled:!i.wires.shock,content:"Temporary",onClick:function(){function s(){return c("shock-temp")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!i.wires.shock||i.shock===0,content:"Permanent",onClick:function(){function s(){return c("shock-perm")}return s}()})],4),children:[i.shock===2?"Safe":"Electrified"," ",!i.wires.shock&&"[Wires have been cut!]"||i.shock_timeleft>0&&"["+i.shock_timeleft+"s]"||i.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Access and Door Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:i.id_scanner?"power-off":"times",content:i.id_scanner?"Enabled":"Disabled",selected:i.id_scanner,disabled:!i.wires.id_scanner,onClick:function(){function s(){return c("idscan-toggle")}return s}()}),children:!i.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Access",buttons:(0,e.createComponentVNode)(2,t.Button,{width:6.5,icon:i.emergency?"power-off":"times",content:i.emergency?"Enabled":"Disabled",selected:i.emergency,onClick:function(){function s(){return c("emergency-toggle")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:i.locked?"lock":"unlock",content:i.locked?"Lowered":"Raised",selected:i.locked,disabled:!i.wires.bolts,onClick:function(){function s(){return c("bolt-toggle")}return s}()}),children:!i.wires.bolts&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:i.lights?"power-off":"times",content:i.lights?"Enabled":"Disabled",selected:i.lights,disabled:!i.wires.lights,onClick:function(){function s(){return c("light-toggle")}return s}()}),children:!i.wires.lights&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:i.safe?"power-off":"times",content:i.safe?"Enabled":"Disabled",selected:i.safe,disabled:!i.wires.safe,onClick:function(){function s(){return c("safe-toggle")}return s}()}),children:!i.wires.safe&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:i.speed?"power-off":"times",content:i.speed?"Enabled":"Disabled",selected:i.speed,disabled:!i.wires.timing,onClick:function(){function s(){return c("speed-toggle")}return s}()}),children:!i.wires.timing&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:i.opened?"sign-out-alt":"sign-in-alt",content:i.opened?"Open":"Closed",selected:i.opened,disabled:i.locked||i.welded,onClick:function(){function s(){return c("open-close")}return s}()}),children:!!(i.locked||i.welded)&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("[Door is "),i.locked?"bolted":"",i.locked&&i.welded?" and ":"",i.welded?"welded":"",(0,e.createTextVNode)("!]")],0)})]})})]})})}return y}()},72475:function(T,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(195),b=r.AirAlarm=function(){function u(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:p?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,S),!p&&(0,e.createFragment)([(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,h)],4)]})})}return u}(),y=function(s){return s===0?"green":s===1?"orange":"red"},S=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.air,g=C.mode,V=C.atmos_alarm,B=C.locked,I=C.alarmActivated,L=C.rcon,w=C.target_temp,x;return p.danger.overall===0?V===0?x="Optimal":x="Caution: Atmos alert in area":p.danger.overall===1?x="Caution":x="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:p?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:y(p.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.pressure})," kPa",!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:g===3?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:g===3,icon:"exclamation-triangle",onClick:function(){function A(){return N("mode",{mode:g===3?1:3})}return A}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.oxygen/100,fractionDigits:"1",color:y(p.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.nitrogen/100,fractionDigits:"1",color:y(p.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.co2/100,fractionDigits:"1",color:y(p.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.plasma/100,fractionDigits:"1",color:y(p.danger.plasma)})}),p.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.n2o/100,fractionDigits:"1",color:y(p.danger.n2o)})}),p.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.other/100,fractionDigits:"1",color:y(p.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:y(p.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.temperature})," K / ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:w+" C",onClick:function(){function A(){return N("temperature")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{content:p.thermostat_state?"On":"Off",selected:p.thermostat_state,icon:"power-off",onClick:function(){function A(){return N("thermostat_state")}return A}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:y(p.danger.overall),children:[x,!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:I?"Reset Alarm":"Activate Alarm",selected:I,onClick:function(){function A(){return N(I?"atmos_reset":"atmos_alarm")}return A}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Control Settings",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Off",selected:L===1,onClick:function(){function A(){return N("set_rcon",{rcon:1})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:L===2,onClick:function(){function A(){return N("set_rcon",{rcon:2})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:L===3,onClick:function(){function A(){return N("set_rcon",{rcon:3})}return A}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},k=function(s,l){var v=(0,a.useLocalState)(l,"tabIndex",0),N=v[0],C=v[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:N===0,onClick:function(){function p(){return C(0)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:N===1,onClick:function(){function p(){return C(1)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:N===2,onClick:function(){function p(){return C(2)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:N===3,onClick:function(){function p(){return C(3)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},h=function(s,l){var v=(0,a.useLocalState)(l,"tabIndex",0),N=v[0],C=v[1];switch(N){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,i);case 2:return(0,e.createComponentVNode)(2,m);case 3:return(0,e.createComponentVNode)(2,d);default:return"WE SHOULDN'T BE HERE!"}},c=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.vents;return p.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:g.power?"On":"Off",selected:g.power,icon:"power-off",onClick:function(){function V(){return N("command",{cmd:"power",val:!g.power,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:g.direction?"Blowing":"Siphoning",icon:g.direction?"sign-out-alt":"sign-in-alt",onClick:function(){function V(){return N("command",{cmd:"direction",val:!g.direction,id_tag:g.id_tag})}return V}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Checks",children:[(0,e.createComponentVNode)(2,t.Button,{content:"External",selected:g.checks===1,onClick:function(){function V(){return N("command",{cmd:"checks",val:1,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:g.checks===2,onClick:function(){function V(){return N("command",{cmd:"checks",val:2,id_tag:g.id_tag})}return V}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Pressure Target",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:g.external})," kPa\xA0",(0,e.createComponentVNode)(2,t.Button,{content:"Set",icon:"cog",onClick:function(){function V(){return N("command",{cmd:"set_external_pressure",id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function V(){return N("command",{cmd:"set_external_pressure",val:101.325,id_tag:g.id_tag})}return V}()})]})]})},g.name)})},i=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.scrubbers;return p.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:g.power?"On":"Off",selected:g.power,icon:"power-off",onClick:function(){function V(){return N("command",{cmd:"power",val:!g.power,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:g.scrubbing?"Scrubbing":"Siphoning",icon:g.scrubbing?"filter":"sign-in-alt",onClick:function(){function V(){return N("command",{cmd:"scrubbing",val:!g.scrubbing,id_tag:g.id_tag})}return V}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{content:g.widenet?"Extended":"Normal",selected:g.widenet,icon:"expand-arrows-alt",onClick:function(){function V(){return N("command",{cmd:"widenet",val:!g.widenet,id_tag:g.id_tag})}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filtering",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Carbon Dioxide",selected:g.filter_co2,onClick:function(){function V(){return N("command",{cmd:"co2_scrub",val:!g.filter_co2,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:g.filter_toxins,onClick:function(){function V(){return N("command",{cmd:"tox_scrub",val:!g.filter_toxins,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:g.filter_n2o,onClick:function(){function V(){return N("command",{cmd:"n2o_scrub",val:!g.filter_n2o,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:g.filter_o2,onClick:function(){function V(){return N("command",{cmd:"o2_scrub",val:!g.filter_o2,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:g.filter_n2,onClick:function(){function V(){return N("command",{cmd:"n2_scrub",val:!g.filter_n2,id_tag:g.id_tag})}return V}()})]})]})},g.name)})},m=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.modes,g=C.presets,V=C.emagged,B=C.mode,I=C.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:(0,e.createComponentVNode)(2,t.Table,{children:p.map(function(L){return(!L.emagonly||L.emagonly&&!!V)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:L.name,icon:"cog",selected:L.id===B,onClick:function(){function w(){return N("mode",{mode:L.id})}return w}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"System Presets",children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"After making a selection, the system will automatically cycle in order to remove contaminants."}),(0,e.createComponentVNode)(2,t.Table,{mt:1,children:g.map(function(L){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:L.name,icon:"cog",selected:L.id===I,onClick:function(){function w(){return N("preset",{preset:L.id})}return w}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})]})],4)},d=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.thresholds;return(0,e.createComponentVNode)(2,t.Section,{title:"Alarm Thresholds",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),p.map(function(g){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.name}),g.settings.map(function(V){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:V.selected===-1?"Off":V.selected,onClick:function(){function B(){return N("command",{cmd:"set_threshold",env:V.env,var:V.val})}return B}()})},V.val)})]},g.name)})]})})}},12333:function(T,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AirlockAccessController=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.exterior_status,m=c.interior_status,d=c.processing,u,s;return i==="open"?u=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:d,onClick:function(){function l(){return h("force_ext")}return l}()}):u=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:d,onClick:function(){function l(){return h("cycle_ext_door")}return l}()}),m==="open"?s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:d,color:m==="open"?"red":d?"yellow":null,onClick:function(){function l(){return h("force_int")}return l}()}):s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:d,onClick:function(){function l(){return h("cycle_int_door")}return l}()}),(0,e.createComponentVNode)(2,o.Window,{width:330,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Door Status",children:i==="closed"?"Locked":"Open"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Door Status",children:m==="closed"?"Locked":"Open"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.Box,{children:[u,s]})})]})})}return b}()},28736:function(T,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(49148),b=1,y=2,S=4,k=8,h=r.AirlockElectronics=function(){function m(d,u){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:565,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)]})})})}return m}(),c=function(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data,N=v.unrestricted_dir;return(0,e.createComponentVNode)(2,t.Section,{title:"Access Control",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:N&S,onClick:function(){function C(){return l("unrestricted_access",{unres_dir:S})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-up",content:"South",selected:N&y,onClick:function(){function C(){return l("unrestricted_access",{unres_dir:y})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-right",content:"West",selected:N&k,onClick:function(){function C(){return l("unrestricted_access",{unres_dir:k})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-down",content:"North",selected:N&b,onClick:function(){function C(){return l("unrestricted_access",{unres_dir:b})}return C}()})})]})]})})},i=function(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data,N=v.selected_accesses,C=v.one_access,p=v.regions;return(0,e.createComponentVNode)(2,f.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:C,content:"One",onClick:function(){function g(){return l("set_one_access",{access:"one"})}return g}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!C,content:"All",onClick:function(){function g(){return l("set_one_access",{access:"all"})}return g}()})],4),accesses:p,selectedList:N,accessMod:function(){function g(V){return l("set",{access:V})}return g}(),grantAll:function(){function g(){return l("grant_all")}return g}(),denyAll:function(){function g(){return l("clear_all")}return g}(),grantDep:function(){function g(V){return l("grant_region",{region:V})}return g}(),denyDep:function(){function g(V){return l("deny_region",{region:V})}return g}()})}},47365:function(T,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(89005),a=n(51057),t=n(72253),o=n(92986),f=n(36036),b=n(98595),y=-1,S=1,k=r.AlertModal=function(){function i(m,d){var u=(0,t.useBackend)(d),s=u.act,l=u.data,v=l.autofocus,N=l.buttons,C=N===void 0?[]:N,p=l.large_buttons,g=l.message,V=g===void 0?"":g,B=l.timeout,I=l.title,L=(0,t.useLocalState)(d,"selected",0),w=L[0],x=L[1],A=110+(V.length>30?Math.ceil(V.length/4):0)+(V.length&&p?5:0),E=325+(C.length>2?100:0),P=function(){function j(M){w===0&&M===y?x(C.length-1):w===C.length-1&&M===S?x(0):x(w+M)}return j}();return(0,e.createComponentVNode)(2,b.Window,{title:I,height:A,width:E,children:[!!B&&(0,e.createComponentVNode)(2,a.Loader,{value:B}),(0,e.createComponentVNode)(2,b.Window.Content,{onKeyDown:function(){function j(M){var R=window.event?M.which:M.keyCode;R===o.KEY_SPACE||R===o.KEY_ENTER?s("choose",{choice:C[w]}):R===o.KEY_ESCAPE?s("cancel"):R===o.KEY_LEFT?(M.preventDefault(),P(y)):(R===o.KEY_TAB||R===o.KEY_RIGHT)&&(M.preventDefault(),P(S))}return j}(),children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,f.Box,{color:"label",overflow:"hidden",children:V})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:[!!v&&(0,e.createComponentVNode)(2,f.Autofocus),(0,e.createComponentVNode)(2,h,{selected:w})]})]})})})]})}return i}(),h=function(m,d){var u=(0,t.useBackend)(d),s=u.data,l=s.buttons,v=l===void 0?[]:l,N=s.large_buttons,C=s.swapped_buttons,p=m.selected;return(0,e.createComponentVNode)(2,f.Flex,{fill:!0,align:"center",direction:C?"row":"row-reverse",justify:"space-around",wrap:!0,children:v==null?void 0:v.map(function(g,V){return N&&v.length<3?(0,e.createComponentVNode)(2,f.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,c,{button:g,id:V.toString(),selected:p===V})},V):(0,e.createComponentVNode)(2,f.Flex.Item,{grow:N?1:0,children:(0,e.createComponentVNode)(2,c,{button:g,id:V.toString(),selected:p===V})},V)})})},c=function(m,d){var u=(0,t.useBackend)(d),s=u.act,l=u.data,v=l.large_buttons,N=m.button,C=m.selected,p=N.length>7?"100%":7;return(0,e.createComponentVNode)(2,f.Button,{mx:v?1:0,pt:v?.33:0,content:N,fluid:!!v,onClick:function(){function g(){return s("choose",{choice:N})}return g}(),selected:C,textAlign:"center",height:!!v&&2,width:!v&&p})}},71824:function(T,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AppearanceChanger=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.change_race,d=i.species,u=i.specimen,s=i.change_gender,l=i.gender,v=i.change_eye_color,N=i.change_skin_tone,C=i.change_skin_color,p=i.change_runechat_color,g=i.change_head_accessory_color,V=i.change_hair_color,B=i.change_secondary_hair_color,I=i.change_facial_hair_color,L=i.change_secondary_facial_hair_color,w=i.change_head_marking_color,x=i.change_body_marking_color,A=i.change_tail_marking_color,E=i.change_head_accessory,P=i.head_accessory_styles,j=i.head_accessory_style,M=i.change_hair,R=i.hair_styles,D=i.hair_style,W=i.change_hair_gradient,_=i.change_facial_hair,U=i.facial_hair_styles,K=i.facial_hair_style,G=i.change_head_markings,$=i.head_marking_styles,Q=i.head_marking_style,J=i.change_body_markings,ie=i.body_marking_styles,ne=i.body_marking_style,se=i.change_tail_markings,Ce=i.tail_marking_styles,Se=i.tail_marking_style,ye=i.change_body_accessory,he=i.body_accessory_styles,oe=i.body_accessory_style,ce=i.change_alt_head,ee=i.alt_head_styles,fe=i.alt_head_style,me=!1;return(v||N||C||g||p||V||B||I||L||w||x||A)&&(me=!0),(0,e.createComponentVNode)(2,o.Window,{width:800,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:d.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.specimen,selected:te.specimen===u,onClick:function(){function be(){return c("race",{race:te.specimen})}return be}()},te.specimen)})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:l==="male",onClick:function(){function te(){return c("gender",{gender:"male"})}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:l==="female",onClick:function(){function te(){return c("gender",{gender:"female"})}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:l==="plural",onClick:function(){function te(){return c("gender",{gender:"plural"})}return te}()})]}),!!me&&(0,e.createComponentVNode)(2,b),!!E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:P.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.headaccessorystyle,selected:te.headaccessorystyle===j,onClick:function(){function be(){return c("head_accessory",{head_accessory:te.headaccessorystyle})}return be}()},te.headaccessorystyle)})}),!!M&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:R.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.hairstyle,selected:te.hairstyle===D,onClick:function(){function be(){return c("hair",{hair:te.hairstyle})}return be}()},te.hairstyle)})}),!!W&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function te(){return c("hair_gradient")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function te(){return c("hair_gradient_offset")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function te(){return c("hair_gradient_colour")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function te(){return c("hair_gradient_alpha")}return te}()})]}),!!_&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:U.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.facialhairstyle,selected:te.facialhairstyle===K,onClick:function(){function be(){return c("facial_hair",{facial_hair:te.facialhairstyle})}return be}()},te.facialhairstyle)})}),!!G&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:$.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.headmarkingstyle,selected:te.headmarkingstyle===Q,onClick:function(){function be(){return c("head_marking",{head_marking:te.headmarkingstyle})}return be}()},te.headmarkingstyle)})}),!!J&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:ie.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.bodymarkingstyle,selected:te.bodymarkingstyle===ne,onClick:function(){function be(){return c("body_marking",{body_marking:te.bodymarkingstyle})}return be}()},te.bodymarkingstyle)})}),!!se&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:Ce.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.tailmarkingstyle,selected:te.tailmarkingstyle===Se,onClick:function(){function be(){return c("tail_marking",{tail_marking:te.tailmarkingstyle})}return be}()},te.tailmarkingstyle)})}),!!ye&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:he.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.bodyaccessorystyle,selected:te.bodyaccessorystyle===oe,onClick:function(){function be(){return c("body_accessory",{body_accessory:te.bodyaccessorystyle})}return be}()},te.bodyaccessorystyle)})}),!!ce&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:ee.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.altheadstyle,selected:te.altheadstyle===fe,onClick:function(){function be(){return c("alt_head",{alt_head:te.altheadstyle})}return be}()},te.altheadstyle)})})]})})})}return y}(),b=function(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=[{key:"change_eye_color",text:"Change eye color",action:"eye_color"},{key:"change_skin_tone",text:"Change skin tone",action:"skin_tone"},{key:"change_skin_color",text:"Change skin color",action:"skin_color"},{key:"change_runechat_color",text:"Change runechat color",action:"runechat_color"},{key:"change_head_accessory_color",text:"Change head accessory color",action:"head_accessory_color"},{key:"change_hair_color",text:"Change hair color",action:"hair_color"},{key:"change_secondary_hair_color",text:"Change secondary hair color",action:"secondary_hair_color"},{key:"change_facial_hair_color",text:"Change facial hair color",action:"facial_hair_color"},{key:"change_secondary_facial_hair_color",text:"Change secondary facial hair color",action:"secondary_facial_hair_color"},{key:"change_head_marking_color",text:"Change head marking color",action:"head_marking_color"},{key:"change_body_marking_color",text:"Change body marking color",action:"body_marking_color"},{key:"change_tail_marking_color",text:"Change tail marking color",action:"tail_marking_color"}];return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Colors",children:m.map(function(d){return!!i[d.key]&&(0,e.createComponentVNode)(2,t.Button,{content:d.text,onClick:function(){function u(){return c(d.action)}return u}()},d.key)})})}},72285:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AtmosAlertConsole=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.priority||[],m=c.minor||[];return(0,e.createComponentVNode)(2,o.Window,{width:350,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Alarms",children:(0,e.createVNode)(1,"ul",null,[i.length===0&&(0,e.createVNode)(1,"li","color-good","No Priority Alerts",16),i.map(function(d){return(0,e.createVNode)(1,"li","color-bad",d,0,null,d)}),m.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),m.map(function(d){return(0,e.createVNode)(1,"li","color-average",d,0,null,d)})],0)})})})}return b}()},65805:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(36352),f=n(98595),b=function(i){if(i===0)return(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Good"});if(i===1)return(0,e.createComponentVNode)(2,t.Box,{color:"orange",bold:!0,children:"Warning"});if(i===2)return(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"DANGER"})},y=function(i){if(i===0)return"green";if(i===1)return"orange";if(i===2)return"red"},S=r.AtmosControl=function(){function c(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=(0,a.useLocalState)(m,"tabIndex",0),v=l[0],N=l[1],C=function(){function p(g){switch(g){case 0:return(0,e.createComponentVNode)(2,k);case 1:return(0,e.createComponentVNode)(2,h);default:return"WE SHOULDN'T BE HERE!"}}return p}();return(0,e.createComponentVNode)(2,f.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:v===0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===0,onClick:function(){function p(){return N(0)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===1,onClick:function(){function p(){return N(1)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),C(v)]})})})}return c}(),k=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.alarms;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Access"})]}),l.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:v.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:b(v.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function N(){return u("open_alarm",{aref:v.ref})}return N}()})})]},v.name)})]})})},h=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.alarms;return(0,e.createComponentVNode)(2,t.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{children:l.filter(function(v){return v.z===2}).map(function(v){return(0,e.createComponentVNode)(2,t.NanoMap.MarkerIcon,{x:v.x,y:v.y,icon:"circle",tooltip:v.name,color:y(v.danger),onClick:function(){function N(){return u("open_alarm",{aref:v.ref})}return N}()},v.ref)})})})}},87816:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AtmosFilter=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.on,m=c.pressure,d=c.max_pressure,u=c.filter_type,s=c.filter_type_list;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:140,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:i?"On":"Off",color:i?null:"red",selected:i,onClick:function(){function l(){return h("power")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){function l(){return h("min_pressure")}return l}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:d,value:m,onDrag:function(){function l(v,N){return h("custom_pressure",{pressure:N})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===d,width:2.2,onClick:function(){function l(){return h("max_pressure")}return l}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:s.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{selected:l.gas_type===u,content:l.label,onClick:function(){function v(){return h("set_filter",{filter:l.gas_type})}return v}()},l.label)})})]})})})})}return b}()},52977:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AtmosMixer=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.on,d=i.pressure,u=i.max_pressure,s=i.node1_concentration,l=i.node2_concentration;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:165,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:m?"On":"Off",color:m?null:"red",selected:m,onClick:function(){function v(){return c("power")}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:d===0,width:2.2,onClick:function(){function v(){return c("min_pressure")}return v}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:u,value:d,onDrag:function(){function v(N,C){return c("custom_pressure",{pressure:C})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:d===u,width:2.2,onClick:function(){function v(){return c("max_pressure")}return v}()})]}),(0,e.createComponentVNode)(2,b,{node_name:"Node 1",node_ref:s}),(0,e.createComponentVNode)(2,b,{node_name:"Node 2",node_ref:l})]})})})})}return y}(),b=function(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=S.node_name,d=S.node_ref;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:m,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:d===0,onClick:function(){function u(){return c("set_node",{node_name:m,concentration:(d-10)/100})}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:d,onChange:function(){function u(s,l){return c("set_node",{node_name:m,concentration:l/100})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:d===100,onClick:function(){function u(){return c("set_node",{node_name:m,concentration:(d+10)/100})}return u}()})]})}},11748:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AtmosPump=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.on,m=c.rate,d=c.max_rate,u=c.gas_unit,s=c.step;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:110,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:i?"On":"Off",color:i?null:"red",selected:i,onClick:function(){function l(){return h("power")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){function l(){return h("min_rate")}return l}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:u,width:6.1,lineHeight:1.5,step:s,minValue:0,maxValue:d,value:m,onDrag:function(){function l(v,N){return h("custom_rate",{rate:N})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===d,width:2.2,onClick:function(){function l(){return h("max_rate")}return l}()})]})]})})})})}return b}()},69321:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosTankControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(44879),f=n(76910),b=n(98595),y=r.AtmosTankControl=function(){function S(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.sensors||{};return(0,e.createComponentVNode)(2,b.Window,{width:400,height:400,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:[Object.keys(d).map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[Object.keys(d[u]).indexOf("pressure")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:[d[u].pressure," kpa"]}):"",Object.keys(d[u]).indexOf("temperature")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[d[u].temperature," K"]}):"",["o2","n2","plasma","co2","n2o"].map(function(s){return Object.keys(d[u]).indexOf(s)>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,f.getGasLabel)(s),children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:(0,f.getGasColor)(s),value:d[u][s],minValue:0,maxValue:100,children:(0,o.toFixed)(d[u][s],2)+"%"})},(0,f.getGasLabel)(s)):""})]})},u)}),m.inlet&&Object.keys(m.inlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Inlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.inlet.on,"power-off"),content:m.inlet.on?"On":"Off",color:m.inlet.on?null:"red",selected:m.inlet.on,onClick:function(){function u(){return i("toggle_active",{dev:"inlet"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"L/s",width:6.1,lineHeight:1.5,step:1,minValue:0,maxValue:50,value:m.inlet.rate,onDrag:function(){function u(s,l){return i("set_pressure",{dev:"inlet",val:l})}return u}()})})]})}):"",m.outlet&&Object.keys(m.outlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Outlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.outlet.on,"power-off"),content:m.outlet.on?"On":"Off",color:m.outlet.on?null:"red",selected:m.outlet.on,onClick:function(){function u(){return i("toggle_active",{dev:"outlet"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:5066,value:m.outlet.rate,onDrag:function(){function u(s,l){return i("set_pressure",{dev:"outlet",val:l})}return u}()})})]})}):""]})})}return S}()},59179:function(T,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),f=n(36036),b=n(98595),y=n(25328),S=function(c,i,m,d){return c.requirements===null?!0:!(c.requirements.metal*d>i||c.requirements.glass*d>m)},k=r.Autolathe=function(){function h(c,i){var m=(0,o.useBackend)(i),d=m.act,u=m.data,s=u.total_amount,l=u.max_amount,v=u.metal_amount,N=u.glass_amount,C=u.busyname,p=u.busyamt,g=u.showhacked,V=u.buildQueue,B=u.buildQueueLen,I=u.recipes,L=u.categories,w=(0,o.useSharedState)(i,"category",0),x=w[0],A=w[1];x===0&&(x="Tools");var E=v.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),P=N.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),j=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),M=(0,o.useSharedState)(i,"search_text",""),R=M[0],D=M[1],W=(0,y.createSearch)(R,function(G){return G.name}),_="";B>0&&(_=V.map(function(G,$){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"times",color:"transparent",content:V[$][0],onClick:function(){function Q(){return d("remove_from_queue",{remove_from_queue:V.indexOf(G)+1})}return Q}()},G)},$)}));var U=(0,a.flow)([(0,t.filter)(function(G){return(G.category.indexOf(x)>-1||R)&&(u.showhacked||!G.hacked)}),R&&(0,t.filter)(W),(0,t.sortBy)(function(G){return G.name.toLowerCase()})])(I),K="Build";return R?K="Results for: '"+R+"':":x&&(K="Build ("+x+")"),(0,e.createComponentVNode)(2,b.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:K,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"150px",options:L,selected:x,onSelected:function(){function G($){return A($)}return G}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function G($,Q){return D(Q)}return G}(),mb:1}),U.map(function(G){return(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+G.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===G.name&&u.busyamt===1,disabled:!S(G,u.metal_amount,u.glass_amount,1),onClick:function(){function $(){return d("make",{make:G.uid,multiplier:1})}return $}(),children:(0,y.toTitleCase)(G.name)}),G.max_multiplier>=10&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===G.name&&u.busyamt===10,disabled:!S(G,u.metal_amount,u.glass_amount,10),onClick:function(){function $(){return d("make",{make:G.uid,multiplier:10})}return $}(),children:"10x"}),G.max_multiplier>=25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===G.name&&u.busyamt===25,disabled:!S(G,u.metal_amount,u.glass_amount,25),onClick:function(){function $(){return d("make",{make:G.uid,multiplier:25})}return $}(),children:"25x"}),G.max_multiplier>25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===G.name&&u.busyamt===G.max_multiplier,disabled:!S(G,u.metal_amount,u.glass_amount,G.max_multiplier),onClick:function(){function $(){return d("make",{make:G.uid,multiplier:G.max_multiplier})}return $}(),children:[G.max_multiplier,"x"]}),G.requirements&&Object.keys(G.requirements).map(function($){return(0,y.toTitleCase)($)+": "+G.requirements[$]}).join(", ")||(0,e.createComponentVNode)(2,f.Box,{children:"No resources required."})]},G.ref)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:[(0,e.createComponentVNode)(2,f.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Metal",children:E}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Glass",children:P}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Total",children:j}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Storage",children:[u.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,f.Section,{title:"Building",children:(0,e.createComponentVNode)(2,f.Box,{color:C?"green":"",children:C||"Nothing"})}),(0,e.createComponentVNode)(2,f.Section,{title:"Build Queue",height:23.7,children:[_,(0,e.createComponentVNode)(2,f.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!u.buildQueueLen,onClick:function(){function G(){return d("clear_queue")}return G}()})]})]})]})})})}return h}()},5147:function(T,r,n){"use strict";r.__esModule=!0,r.BioChipPad=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.BioChipPad=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.implant,m=c.contains_case,d=c.gps,u=c.tag,s=(0,a.useLocalState)(S,"newTag",u),l=s[0],v=s[1];return(0,e.createComponentVNode)(2,o.Window,{width:410,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Bio-chip Mini-Computer",buttons:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject Case",icon:"eject",disabled:!m,onClick:function(){function N(){return h("eject_case")}return N}()})}),children:i&&m?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{bold:!0,mb:2,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+i.image,ml:0,mr:2,style:{"vertical-align":"middle",width:"32px"}}),i.name]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Life",children:i.life}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Notes",children:i.notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Function",children:i.function}),!!d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,t.Input,{width:"5.5rem",value:u,onEnter:function(){function N(){return h("tag",{newtag:l})}return N}(),onInput:function(){function N(C,p){return v(p)}return N}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:u===l,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function N(){return h("tag",{newtag:l})}return N}(),children:(0,e.createComponentVNode)(2,t.Icon,{name:"pen"})})]})]})],4):m?(0,e.createComponentVNode)(2,t.Box,{children:"This bio-chip case has no implant!"}):(0,e.createComponentVNode)(2,t.Box,{children:"Please insert a bio-chip casing!"})})})})}return b}()},64273:function(T,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(62411),b=r.Biogenerator=function(){function c(i,m){var d=(0,a.useBackend)(m),u=d.data,s=d.config,l=u.container,v=u.processing,N=s.title;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:595,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Operating,{operating:v,name:N}),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,k),l?(0,e.createComponentVNode)(2,h):(0,e.createComponentVNode)(2,y)]})})})}return c}(),y=function(i,m){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The biogenerator is missing a container."]})})})},S=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.biomass,v=s.container,N=s.container_curr_reagents,C=s.container_max_reagents;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"20px",color:"silver",children:"Biomass:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"5px",children:l}),(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"21px",mt:"8px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"10px",color:"silver",children:"Container:"}),v?(0,e.createComponentVNode)(2,t.ProgressBar,{value:N,maxValue:C,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:N+" / "+C+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},k=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.has_plants,v=s.container;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:!l,tooltip:l?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function N(){return u("activate")}return N}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!v,tooltip:v?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function N(){return u("detach_container")}return N}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!l,tooltip:l?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function N(){return u("eject_plants")}return N}()})})]})})},h=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.biomass,v=s.product_list,N=(0,a.useSharedState)(m,"vendAmount",1),C=N[0],p=N[1],g=Object.entries(v).map(function(V,B){var I=Object.entries(V[1]).map(function(L){return L[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:V[0],open:!0,children:I.map(function(L){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",ml:"2px",children:L.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[L.cost*C,(0,e.createComponentVNode)(2,t.Icon,{ml:"5px",name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{content:"Vend",disabled:ls&&"bad"||"good";return(0,e.createComponentVNode)(2,o.Window,{width:650,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Input Management",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Input",children:[(0,e.createComponentVNode)(2,t.Button,{icon:B&&!g?"toggle-on":"toggle-off",content:"Auto shutdown",color:B&&!g?"green":"red",disabled:!!g,tooltip:"Turn auto shutdown on or off",onClick:function(){function x(){return i("auto_shutdown")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:I&&!g?"toggle-on":"toggle-off",content:"Stabilizers",color:I&&!g?"green":"red",disabled:!!g,tooltip:"Turn stabilizers on or off",onClick:function(){function x(){return i("stabilizers")}return x}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Level",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Desired Level",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:u===0||g,tooltip:"Set to 0",onClick:function(){function x(){return i("set",{set_level:0})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:u===0||g,onClick:function(){function x(){return i("set",{set_level:s})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:u===0||g,tooltip:"Decrease one step",onClick:function(){function x(){return i("decrease")}return x}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{disabled:g,value:u,fillValue:s,minValue:0,color:w,maxValue:p,stepPixelSize:20,step:1,onChange:function(){function x(A,E){return i("set",{set_level:E})}return x}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:u===p||g,tooltip:"Increase one step",tooltipPosition:"left",onClick:function(){function x(){return i("increase")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:u===p||g,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){function x(){return i("set",{set_level:p})}return x}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Power Use",children:(0,f.formatPower)(N)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mining Power Use",children:(0,f.formatPower)(N-L)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stabilizer Power Use",children:(0,f.formatPower)(L)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mining Power for next level",children:(0,f.formatPower)(V)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,f.formatPower)(C)})]})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Points",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Points",children:v})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{align:"end",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(x){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:x.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:x.price>=l,onClick:function(){function A(){return i("vend",{target:x.key})}return A}(),content:x.price})},x.key)})})})})]})})]})})})}return S}(),y=r.Alerts=function(){function S(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.product||[],u=m.inputLevel,s=m.emagged,l=m.safeLevels,v=m.autoShutown,N=m.stabilizers,C=m.overhead;return(0,e.createFragment)([!v&&!s&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Auto shutdown disabled"}),s?(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"All safeties disabled"}):u<=l?"":N?u-C>l?(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Stabilizers overwhelmed, Instability likely"}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"High Power, engaging stabilizers"}):(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Stabilizers disabled, Instability likely"})],0)}return S}()},33758:function(T,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(89005),a=n(44879),t=n(25328),o=n(72253),f=n(36036),b=n(98595),y=[["good","Alive"],["average","Critical"],["bad","DEAD"]],S=[["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."]],k=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Cellular","cloneLoss"],["Burn","fireLoss"],["Inebriation","drunkenness"]],h={average:[.25,.5],bad:[.5,1/0]},c=function(B,I){for(var L=[],w=0;w0?B.filter(function(I){return!!I}).reduce(function(I,L){return(0,e.createFragment)([I,(0,e.createComponentVNode)(2,f.Box,{children:L},L)],0)},null):null},m=function(B){if(B>100){if(B<300)return"mild infection";if(B<400)return"mild infection+";if(B<500)return"mild infection++";if(B<700)return"acute infection";if(B<800)return"acute infection+";if(B<900)return"acute infection++";if(B>=900)return"septic"}return""},d=r.BodyScanner=function(){function V(B,I){var L=(0,o.useBackend)(I),w=L.data,x=w.occupied,A=w.occupant,E=A===void 0?{}:A,P=x?(0,e.createComponentVNode)(2,u,{occupant:E}):(0,e.createComponentVNode)(2,g);return(0,e.createComponentVNode)(2,b.Window,{width:700,height:600,title:"Body Scanner",children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:P})})}return V}(),u=function(B){var I=B.occupant;return(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,s,{occupant:I}),(0,e.createComponentVNode)(2,l,{occupant:I}),(0,e.createComponentVNode)(2,v,{occupant:I}),(0,e.createComponentVNode)(2,C,{organs:I.extOrgan}),(0,e.createComponentVNode)(2,p,{organs:I.intOrgan})]})},s=function(B,I){var L=(0,o.useBackend)(I),w=L.act,x=L.data,A=x.occupant;return(0,e.createComponentVNode)(2,f.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Button,{icon:"print",onClick:function(){function E(){return w("print_p")}return E}(),children:"Print Report"}),(0,e.createComponentVNode)(2,f.Button,{icon:"user-slash",onClick:function(){function E(){return w("ejectify")}return E}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:A.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:A.maxHealth,value:A.health/A.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:y[A.stat][0],children:y[A.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:(0,a.round)(A.bodyTempC)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:(0,a.round)(A.bodyTempF)}),"\xB0F"]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Implants",children:A.implant_len?(0,e.createComponentVNode)(2,f.Box,{children:A.implant.map(function(E){return E.name}).join(", ")}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"None"})})]})})},l=function(B){var I=B.occupant;return I.hasBorer||I.blind||I.colourblind||I.nearsighted||I.hasVirus?(0,e.createComponentVNode)(2,f.Section,{title:"Abnormalities",children:S.map(function(L,w){if(I[L[0]])return(0,e.createComponentVNode)(2,f.Box,{color:L[1],bold:L[1]==="bad",children:L[2]},L[2])})}):(0,e.createComponentVNode)(2,f.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No abnormalities found."})})},v=function(B){var I=B.occupant;return(0,e.createComponentVNode)(2,f.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,f.Table,{children:c(k,function(L,w,x){return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:[L[0],":"]}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:!!w&&w[0]+":"})]}),(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:(0,e.createComponentVNode)(2,N,{value:I[L[1]],marginBottom:x100)&&"average"||!!I.status.robotic&&"label",width:"33%",children:(0,t.capitalize)(I.name)}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,f.ProgressBar,{m:-.5,min:"0",max:I.maxHealth,mt:L>0&&"0.5rem",value:I.totalLoss/I.maxHealth,ranges:h,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Tooltip,{content:"Total damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"heartbeat",mr:.5}),(0,a.round)(I.totalLoss)]})}),!!I.bruteLoss&&(0,e.createComponentVNode)(2,f.Tooltip,{content:"Brute damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,f.Icon,{name:"bone",mr:.5}),(0,a.round)(I.bruteLoss)]})}),!!I.fireLoss&&(0,e.createComponentVNode)(2,f.Tooltip,{content:"Burn damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"fire",mr:.5}),(0,a.round)(I.fireLoss)]})})]})})}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,f.Box,{color:"average",inline:!0,children:i([!!I.internalBleeding&&"Internal bleeding",!!I.burnWound&&"Critical tissue burns",!!I.lungRuptured&&"Ruptured lung",!!I.status.broken&&I.status.broken,m(I.germ_level),!!I.open&&"Open incision"])}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:[i([!!I.status.splinted&&(0,e.createComponentVNode)(2,f.Box,{color:"good",children:"Splinted"}),!!I.status.robotic&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Robotic"}),!!I.status.dead&&(0,e.createComponentVNode)(2,f.Box,{color:"bad",bold:!0,children:"DEAD"})]),i(I.shrapnel.map(function(w){return w.known?w.name:"Unknown object"}))]})]})]},L)})]})})},p=function(B){return B.organs.length===0?(0,e.createComponentVNode)(2,f.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,f.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,f.Table,{children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",children:"Injuries"})]}),B.organs.map(function(I,L){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{color:!!I.dead&&"bad"||I.germ_level>100&&"average"||I.robotic>0&&"label",width:"33%",children:(0,t.capitalize)(I.name)}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:I.maxHealth,value:I.damage/I.maxHealth,mt:L>0&&"0.5rem",ranges:h,children:(0,a.round)(I.damage)})}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,f.Box,{color:"average",inline:!0,children:i([m(I.germ_level)])}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:i([I.robotic===1&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Robotic"}),I.robotic===2&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Assisted"}),!!I.dead&&(0,e.createComponentVNode)(2,f.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},L)})]})})},g=function(){return(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},67963:function(T,r,n){"use strict";r.__esModule=!0,r.BookBinder=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=n(39473),y=r.BookBinder=function(){function S(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.selectedbook,u=m.book_categories,s=[];return u.map(function(l){return s[l.description]=l.category_id}),(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Book Binder",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",width:"auto",content:"Print Book",onClick:function(){function l(){return i("print_book")}return l}()}),children:[(0,e.createComponentVNode)(2,t.Box,{ml:10,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:"1rem"}),"Book Binder"]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:d.title,onClick:function(){function l(){return(0,f.modalOpen)(h,"edit_selected_title")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:d.author,onClick:function(){function l(){return(0,f.modalOpen)(h,"edit_selected_author")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"190px",options:u.map(function(l){return l.description}),onSelected:function(){function l(v){return i("toggle_binder_category",{category_id:s[v]})}return l}()})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",content:"Edit Summary",onClick:function(){function l(){return(0,f.modalOpen)(h,"edit_selected_summary")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:d.summary})]}),(0,e.createVNode)(1,"br"),u.filter(function(l){return d.categories.includes(l.category_id)}).map(function(l){return(0,e.createComponentVNode)(2,t.Button,{content:l.description,selected:!0,icon:"unlink",onClick:function(){function v(){return i("toggle_binder_category",{category_id:l.category_id})}return v}()},l.category_id)})]})})]})})})]})}return S}()},61925:function(T,r,n){"use strict";r.__esModule=!0,r.BotCall=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(c){var i=[{modes:[0],label:"Idle",color:"green"},{modes:[1,2,3],label:"Arresting",color:"yellow"},{modes:[4,5],label:"Patrolling",color:"average"},{modes:[9],label:"Moving",color:"average"},{modes:[6,11],label:"Responding",color:"green"},{modes:[12],label:"Delivering Cargo",color:"blue"},{modes:[13],label:"Returning Home",color:"blue"},{modes:[7,8,10,14,15,16,17,18,19],label:"Working",color:"blue"}],m=i.find(function(d){return d.modes.includes(c)});return(0,e.createComponentVNode)(2,t.Box,{color:m.color,children:[" ",m.label," "]})},b=r.BotCall=function(){function h(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=(0,a.useLocalState)(i,"tabIndex",0),l=s[0],v=s[1],N={0:"Security",1:"Medibot",2:"Cleanbot",3:"Floorbot",4:"Mule",5:"Honkbot"},C=function(){function p(g){return N[g]?(0,e.createComponentVNode)(2,y,{model:N[g]}):"This should not happen. Report on Paradise Github"}return p}();return(0,e.createComponentVNode)(2,o.Window,{width:700,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:l===0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,textAlign:"center",children:Array.from({length:6}).map(function(p,g){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:l===g,onClick:function(){function V(){return v(g)}return V}(),children:N[g]},g)})})}),C(l)]})})})}return h}(),y=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.bots;return s[c.model]!==void 0?(0,e.createComponentVNode)(2,k,{model:[c.model]}):(0,e.createComponentVNode)(2,S,{model:[c.model]})},S=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data;return(0,e.createComponentVNode)(2,t.Stack,{justify:"center",align:"center",fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Box,{bold:1,color:"bad",children:["No ",[c.model]," detected"]})})},k=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.bots;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Model"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Location"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Interface"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Call"})]}),s[c.model].map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.model}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.on?f(l.status):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Off"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.location}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Interface",onClick:function(){function v(){return d("interface",{botref:l.UID})}return v}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Call",onClick:function(){function v(){return d("call",{botref:l.UID})}return v}()})})]},l.UID)})]})})})}},20464:function(T,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotClean=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.locked,d=i.noaccess,u=i.maintpanel,s=i.on,l=i.autopatrol,v=i.canhack,N=i.emagged,C=i.remote_disabled,p=i.painame,g=i.cleanblood,V=i.area;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Cleaning Settings",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Clean Blood",disabled:d,onClick:function(){function B(){return c("blood")}return B}()})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc Settings",children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:V?"Reset Area Selection":"Restrict to Current Area",onClick:function(){function B(){return c("area")}return B}()}),V!==null&&(0,e.createComponentVNode)(2,t.LabeledList,{mb:1,children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Locked Area",children:V})})]}),p&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:p,disabled:d,onClick:function(){function B(){return c("ejectpai")}return B}()})})]})})}return y}()},69479:function(T,r,n){"use strict";r.__esModule=!0,r.BotFloor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotFloor=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.noaccess,d=i.painame,u=i.hullplating,s=i.replace,l=i.eat,v=i.make,N=i.fixfloor,C=i.nag_empty,p=i.magnet,g=i.tiles_amount;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:510,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Floor Settings",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"5px",children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tiles Left",children:g})}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Add tiles to new hull plating",tooltip:"Fixing a plating requires the removal of floor tile. This will place it back after repairing. Same goes for hull breaches",disabled:m,onClick:function(){function V(){return c("autotile")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Add floor tiles on exposed hull plating",tooltip:"Example: It will add tiles to maintenance",disabled:m,onClick:function(){function V(){return c("replacetiles")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:N,content:"Repair damaged tiles and platings",disabled:m,onClick:function(){function V(){return c("fixfloors")}return V}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Miscellaneous",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:l,content:"Finds tiles",disabled:m,onClick:function(){function V(){return c("eattiles")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Make pieces of metal into tiles when empty",disabled:m,onClick:function(){function V(){return c("maketiles")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Transmit notice when empty",disabled:m,onClick:function(){function V(){return c("nagonempty")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:p,content:"Traction Magnets",disabled:m,onClick:function(){function V(){return c("anchored")}return V}()})]}),d&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,icon:"eject",content:d,disabled:m,onClick:function(){function V(){return c("ejectpai")}return V}()})})]})})}return y}()},59887:function(T,r,n){"use strict";r.__esModule=!0,r.BotHonk=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotHonk=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:220,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.BotStatus)})})}return y}()},80063:function(T,r,n){"use strict";r.__esModule=!0,r.BotMed=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotMed=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.locked,d=i.noaccess,u=i.maintpanel,s=i.on,l=i.autopatrol,v=i.canhack,N=i.emagged,C=i.remote_disabled,p=i.painame,g=i.shut_up,V=i.declare_crit,B=i.stationary_mode,I=i.heal_threshold,L=i.injection_amount,w=i.use_beaker,x=i.treat_virus,A=i.reagent_glass;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Communication Settings",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Speaker",checked:!g,disabled:d,onClick:function(){function E(){return c("toggle_speaker")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Critical Patient Alerts",checked:V,disabled:d,onClick:function(){function E(){return c("toggle_critical_alerts")}return E}()})]}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Treatment Settings",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Healing Threshold",children:(0,e.createComponentVNode)(2,t.Slider,{value:I.value,minValue:I.min,maxValue:I.max,step:5,disabled:d,onChange:function(){function E(P,j){return c("set_heal_threshold",{target:j})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Injection Level",children:(0,e.createComponentVNode)(2,t.Slider,{value:L.value,minValue:L.min,maxValue:L.max,step:5,format:function(){function E(P){return P+"u"}return E}(),disabled:d,onChange:function(){function E(P,j){return c("set_injection_amount",{target:j})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reagent Source",children:(0,e.createComponentVNode)(2,t.Button,{content:w?"Beaker":"Internal Synthesizer",icon:w?"flask":"cogs",disabled:d,onClick:function(){function E(){return c("toggle_use_beaker")}return E}()})}),A&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:A.amount,minValue:0,maxValue:A.max_amount,children:[A.amount," / ",A.max_amount]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{ml:1,children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",disabled:d,onClick:function(){function E(){return c("eject_reagent_glass")}return E}()})})]})})]}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{mt:1,fluid:!0,content:"Treat Viral Infections",checked:x,disabled:d,onClick:function(){function E(){return c("toggle_treat_viral")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Stationary Mode",checked:B,disabled:d,onClick:function(){function E(){return c("toggle_stationary_mode")}return E}()})]}),p&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:p,disabled:d,onClick:function(){function E(){return c("ejectpai")}return E}()})})]})})})}return y}()},74439:function(T,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotSecurity=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.noaccess,d=i.painame,u=i.check_id,s=i.check_weapons,l=i.check_warrant,v=i.arrest_mode,N=i.arrest_declare;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:445,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Who To Arrest",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Unidentifiable Persons",disabled:m,onClick:function(){function C(){return c("authid")}return C}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Unauthorized Weapons",disabled:m,onClick:function(){function C(){return c("authweapon")}return C}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:l,content:"Wanted Criminals",disabled:m,onClick:function(){function C(){return c("authwarrant")}return C}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Arrest Procedure",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Detain Targets Indefinitely",disabled:m,onClick:function(){function C(){return c("arrtype")}return C}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:N,content:"Announce Arrests On Radio",disabled:m,onClick:function(){function C(){return c("arrdeclare")}return C}()})]}),d&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:d,disabled:m,onClick:function(){function C(){return c("ejectpai")}return C}()})})]})})}return y}()},10833:function(T,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(89005),a=n(98595),t=n(36036),o=n(72253),f=function(k,h){var c=k.cell,i=(0,o.useBackend)(h),m=i.act,d=c.cell_id,u=c.occupant,s=c.crimes,l=c.brigged_by,v=c.time_left_seconds,N=c.time_set_seconds,C=c.ref,p="";v>0&&(p+=" BrigCells__listRow--active");var g=function(){m("release",{ref:C})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:p,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:N})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:v})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:g,children:"Release"})})]})},b=function(k){var h=k.cells;return(0,e.createComponentVNode)(2,t.Table,{className:"BrigCells__list",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Cell"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Occupant"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Crimes"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Brigged By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Brigged For"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Release"})]}),h.map(function(c){return(0,e.createComponentVNode)(2,f,{cell:c},c.ref)})]})},y=r.BrigCells=function(){function S(k,h){var c=(0,o.useBackend)(h),i=c.act,m=c.data,d=m.cells;return(0,e.createComponentVNode)(2,a.Window,{theme:"security",width:800,height:400,children:(0,e.createComponentVNode)(2,a.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,b,{cells:d})})})})})}return S}()},45761:function(T,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.BrigTimer=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data;c.nameText=c.occupant,c.timing&&(c.prisoner_hasrec?c.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:c.occupant}):c.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:c.occupant}));var i="pencil-alt";c.prisoner_name&&(c.prisoner_hasrec||(i="exclamation-triangle"));var m=[],d=0;for(d=0;dm?this.substring(0,m)+"...":this};var k=function(d,u){var s,l;if(!u)return[];var v=d.findIndex(function(N){return N.name===u.name});return[(s=d[v-1])==null?void 0:s.name,(l=d[v+1])==null?void 0:l.name]},h=function(d,u){u===void 0&&(u="");var s=(0,f.createSearch)(u,function(l){return l.name});return(0,t.flow)([(0,a.filter)(function(l){return l==null?void 0:l.name}),u&&(0,a.filter)(s),(0,a.sortBy)(function(l){return l.name})])(d)},c=r.CameraConsole=function(){function m(d,u){var s=(0,b.useBackend)(u),l=s.act,v=s.data,N=s.config,C=v.mapRef,p=v.activeCamera,g=h(v.cameras),V=k(g,p),B=V[0],I=V[1];return(0,e.createComponentVNode)(2,S.Window,{width:870,height:708,children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,i)})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),p&&p.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!B,onClick:function(){function L(){return l("switch_camera",{name:B})}return L}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!I,onClick:function(){function L(){return l("switch_camera",{name:I})}return L}()})],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",params:{id:C,type:"map"}})],4)]})}return m}(),i=r.CameraConsoleContent=function(){function m(d,u){var s=(0,b.useBackend)(u),l=s.act,v=s.data,N=(0,b.useLocalState)(u,"searchText",""),C=N[0],p=N[1],g=v.activeCamera,V=h(v.cameras,C);return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function B(I,L){return p(L)}return B}()})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:V.map(function(B){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent",g&&B.name===g.name&&"Button--selected"]),B.name.trimLongStr(23),0,{title:B.name,onClick:function(){function I(){return l("switch_camera",{name:B.name})}return I}()},B.name)})})})]})}return m}()},52927:function(T,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(49968),b=n(98595),y=r.Canister=function(){function S(k,h){var c=(0,t.useBackend)(h),i=c.act,m=c.data,d=m.portConnected,u=m.tankPressure,s=m.releasePressure,l=m.defaultReleasePressure,v=m.minReleasePressure,N=m.maxReleasePressure,C=m.valveOpen,p=m.name,g=m.canLabel,V=m.colorContainer,B=m.color_index,I=m.hasHoldingTank,L=m.holdingTank,w="";B.prim&&(w=V.prim.options[B.prim].name);var x="";B.sec&&(x=V.sec.options[B.sec].name);var A="";B.ter&&(A=V.ter.options[B.ter].name);var E="";B.quart&&(E=V.quart.options[B.quart].name);var P=[],j=[],M=[],R=[],D=0;for(D=0;Dp.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:p.total_positions-p.current_positions})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"0"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"-",disabled:l.cooldown_time||!p.can_close,onClick:function(){function g(){return s("make_job_unavailable",{job:p.title})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:l.cooldown_time||!p.can_open,onClick:function(){function g(){return s("make_job_available",{job:p.title})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:l.target_dept&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:l.priority_jobs.indexOf(p.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:p.is_priority?"Yes":"No",selected:p.is_priority,disabled:l.cooldown_time||!p.can_prioritize,onClick:function(){function g(){return s("prioritize_job",{job:p.title})}return g}()})})]},p.title)})]})})]}):C=(0,e.createComponentVNode)(2,S);break;case 2:!l.authenticated||!l.scan_name?C=(0,e.createComponentVNode)(2,S):l.modify_name?C=(0,e.createComponentVNode)(2,f.AccessList,{accesses:l.regions,selectedList:l.selectedAccess,accessMod:function(){function p(g){return s("set",{access:g})}return p}(),grantAll:function(){function p(){return s("grant_all")}return p}(),denyAll:function(){function p(){return s("clear_all")}return p}(),grantDep:function(){function p(g){return s("grant_region",{region:g})}return p}(),denyDep:function(){function p(g){return s("deny_region",{region:g})}return p}()}):C=(0,e.createComponentVNode)(2,k);break;case 3:l.authenticated?l.records.length?C=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Records",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete All Records",disabled:!l.authenticated||l.records.length===0||l.target_dept,onClick:function(){function p(){return s("wipe_all_logs")}return p}()}),children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Crewman"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Old Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"New Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Authorized By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Reason"}),!!l.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Deleted By"})]}),l.records.map(function(p){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.reason}),!!l.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.deletedby})]},p.timestamp)})]}),!!l.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!l.authenticated||l.records.length===0,onClick:function(){function p(){return s("wipe_my_logs")}return p}()})})]}):C=(0,e.createComponentVNode)(2,h):C=(0,e.createComponentVNode)(2,S);break;case 4:!l.authenticated||!l.scan_name?C=(0,e.createComponentVNode)(2,S):C=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Your Team",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Sec Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Actions"})]}),l.people_dept.map(function(p){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:p.buttontext,disabled:!p.demotable,onClick:function(){function g(){return s("remote_demote",{remote_demote:p.name})}return g}()})})]},p.title)})]})});break;default:C=(0,e.createComponentVNode)(2,t.Section,{title:"Warning",color:"red",children:"ERROR: Unknown Mode."})}return(0,e.createComponentVNode)(2,o.Window,{width:800,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:N}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:v}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:C})]})})})}return i}()},64083:function(T,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),f=n(36036),b=n(98595),y=n(25328),S=r.CargoConsole=function(){function u(s,l){return(0,e.createComponentVNode)(2,b.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,d)]})})})}return u}(),k=function(s,l){var v=(0,o.useLocalState)(l,"contentsModal",null),N=v[0],C=v[1],p=(0,o.useLocalState)(l,"contentsModalTitle",null),g=p[0],V=p[1];if(N!==null&&g!==null)return(0,e.createComponentVNode)(2,f.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,f.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[g,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,f.Box,{children:N.map(function(B){return(0,e.createComponentVNode)(2,f.Box,{children:["- ",B]},B)})}),(0,e.createComponentVNode)(2,f.Box,{m:2,children:(0,e.createComponentVNode)(2,f.Button,{content:"Close",onClick:function(){function B(){C(null),V(null)}return B}()})})]})},h=function(s,l){var v=(0,o.useBackend)(l),N=v.act,C=v.data,p=C.is_public,g=C.timeleft,V=C.moving,B=C.at_station,I,L;return!V&&!B?(I="Docked off-station",L="Call Shuttle"):!V&&B?(I="Docked at the station",L="Return Shuttle"):V&&(L="In Transit...",g!==1?I="Shuttle is en route (ETA: "+g+" minutes)":I="Shuttle is en route (ETA: "+g+" minute)"),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Status",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Shuttle Status",children:I}),p===0&&(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,f.Button,{content:L,disabled:V,onClick:function(){function w(){return N("moveShuttle")}return w}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Central Command Messages",onClick:function(){function w(){return N("showMessages")}return w}()})]})]})})})},c=function(s,l){var v,N=(0,o.useBackend)(l),C=N.act,p=N.data,g=p.accounts,V=(0,o.useLocalState)(l,"selectedAccount"),B=V[0],I=V[1],L=[];return g.map(function(w){return L[w.name]=w.account_UID}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Payment",children:[(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:g.map(function(w){return w.name}),selected:(v=g.filter(function(w){return w.account_UID===B})[0])==null?void 0:v.name,onSelected:function(){function w(x){return I(L[x])}return w}()}),g.filter(function(w){return w.account_UID===B}).map(function(w){return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Account Name",children:(0,e.createComponentVNode)(2,f.Stack.Item,{mt:1,children:w.name})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Balance",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:w.balance})})]},w.account_UID)})]})})},i=function(s,l){var v=(0,o.useBackend)(l),N=v.act,C=v.data,p=C.requests,g=C.categories,V=C.supply_packs,B=(0,o.useSharedState)(l,"category","Emergency"),I=B[0],L=B[1],w=(0,o.useSharedState)(l,"search_text",""),x=w[0],A=w[1],E=(0,o.useLocalState)(l,"contentsModal",null),P=E[0],j=E[1],M=(0,o.useLocalState)(l,"contentsModalTitle",null),R=M[0],D=M[1],W=(0,y.createSearch)(x,function(Q){return Q.name}),_=(0,o.useLocalState)(l,"selectedAccount"),U=_[0],K=_[1],G=(0,a.flow)([(0,t.filter)(function(Q){return Q.cat===g.filter(function(J){return J.name===I})[0].category||x}),x&&(0,t.filter)(W),(0,t.sortBy)(function(Q){return Q.name.toLowerCase()})])(V),$="Crate Catalogue";return x?$="Results for '"+x+"':":I&&($="Browsing "+I),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:$,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:g.map(function(Q){return Q.name}),selected:I,onSelected:function(){function Q(J){return L(J)}return Q}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function Q(J,ie){return A(ie)}return Q}(),mb:1}),(0,e.createComponentVNode)(2,f.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:G.map(function(Q){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{bold:!0,children:[Q.name," (",Q.cost," Credits)"]}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,f.Button,{content:"Order 1",icon:"shopping-cart",disabled:!U,onClick:function(){function J(){return N("order",{crate:Q.ref,multiple:!1,account:U})}return J}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Order Multiple",icon:"cart-plus",disabled:!U||Q.singleton,onClick:function(){function J(){return N("order",{crate:Q.ref,multiple:!0,account:U})}return J}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Contents",icon:"search",onClick:function(){function J(){j(Q.contents),D(Q.name)}return J}()})]})]},Q.name)})})})]})})},m=function(s,l){var v=s.request,N,C;switch(v.department){case"Engineering":C="CE",N="orange";break;case"Medical":C="CMO",N="teal";break;case"Science":C="RD",N="purple";break;case"Supply":C="CT",N="brown";break;case"Service":C="HOP",N="olive";break;case"Security":C="HOS",N="red";break;case"Command":C="CAP",N="blue";break;case"Assistant":C="Any Head",N="grey";break}return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{mt:.5,children:"Approval Required:"}),!!v.req_cargo_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"brown",content:"QM",icon:"user-tie",tooltip:"This Order requires approval from the QM still"})}),!!v.req_head_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:N,content:C,disabled:v.req_cargo_approval,icon:"user-tie",tooltip:v.req_cargo_approval?"This Order first requires approval from the QM before the "+C+" can approve it":"This Order requires approval from the "+C+" still"})})]})},d=function(s,l){var v=(0,o.useBackend)(l),N=v.act,C=v.data,p=C.requests,g=C.orders,V=C.shipments;return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Orders",children:[(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,f.Table,{children:p.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{className:"Cargo_RequestList",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{mb:1,children:[(0,e.createComponentVNode)(2,f.Box,{children:["Order #",B.ordernum,": ",B.supply_type," (",B.cost," credits) for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)," with"," ",B.department?"The "+B.department+" Department":"Their Personal"," Account"]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]}),(0,e.createComponentVNode)(2,m,{request:B})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,f.Button,{content:"Approve",color:"green",disabled:!B.can_approve,onClick:function(){function I(){return N("approve",{ordernum:B.ordernum})}return I}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Deny",color:"red",disabled:!B.can_deny,onClick:function(){function I(){return N("deny",{ordernum:B.ordernum})}return I}()})]})]},B.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Orders Awaiting Delivery"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:g.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Order in Transit"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:V.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})})]})}},87331:function(T,r,n){"use strict";r.__esModule=!0,r.ChangelogView=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ChangelogView=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=(0,a.useLocalState)(S,"onlyRecent",0),m=i[0],d=i[1],u=c.cl_data,s=c.last_cl,l={FIX:(0,e.createComponentVNode)(2,t.Icon,{name:"tools",title:"Fix"}),WIP:(0,e.createComponentVNode)(2,t.Icon,{name:"hard-hat",title:"WIP",color:"orange"}),TWEAK:(0,e.createComponentVNode)(2,t.Icon,{name:"sliders-h",title:"Tweak"}),SOUNDADD:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",title:"Sound Added",color:"green"}),SOUNDDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-mute",title:"Sound Removed",color:"red"}),CODEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",title:"Code Addition",color:"green"}),CODEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"minus",title:"Code Removal",color:"red"}),IMAGEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-plus",title:"Sprite Addition",color:"green"}),IMAGEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-minus",title:"Sprite Removal",color:"red"}),SPELLCHECK:(0,e.createComponentVNode)(2,t.Icon,{name:"font",title:"Spelling/Grammar Fix"}),EXPERIMENT:(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle",title:"Experimental",color:"orange"})},v=function(){function N(C){return C in l?l[C]:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",color:"green"})}return N}();return(0,e.createComponentVNode)(2,o.Window,{width:750,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"ParadiseSS13 Changelog",mt:2,buttons:(0,e.createComponentVNode)(2,t.Button,{content:m?"Showing all changes":"Showing changes since last connection",onClick:function(){function N(){return d(!m)}return N}()}),children:u.map(function(N){return!m&&N.merge_ts<=s||(0,e.createComponentVNode)(2,t.Section,{mb:2,title:N.author+" - Merged on "+N.merge_date,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"#"+N.num,onClick:function(){function C(){return h("open_pr",{pr_number:N.num})}return C}()}),children:N.entries.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:[v(C.etype)," ",C.etext]},C)})},N)})})})})}return b}()},36108:function(T,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(85870),f=n(98595),b=[1,5,10,20,30,50],y=[1,5,10],S=r.ChemDispenser=function(){function i(m,d){var u=(0,a.useBackend)(d),s=u.act,l=u.data,v=l.chemicals;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:400+v.length*8,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,c)]})})})}return i}(),k=function(m,d){var u=(0,a.useBackend)(d),s=u.act,l=u.data,v=l.amount,N=l.energy,C=l.maxEnergy;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:N,minValue:0,maxValue:C,ranges:{good:[C*.5,1/0],average:[C*.25,C*.5],bad:[-1/0,C*.25]},children:[N," / ",C," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:b.map(function(p,g){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:v===p,content:p,onClick:function(){function V(){return s("amount",{amount:p})}return V}()})},g)})})})]})})})},h=function(m,d){for(var u=(0,a.useBackend)(d),s=u.act,l=u.data,v=l.chemicals,N=v===void 0?[]:v,C=[],p=0;p<(N.length+1)%3;p++)C.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:l.glass?"Drink Dispenser":"Chemical Dispenser",children:[N.map(function(g,V){return(0,e.createComponentVNode)(2,t.Button,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",content:g.title,style:{"margin-left":"2px"},onClick:function(){function B(){return s("dispense",{reagent:g.id})}return B}()},V)}),C.map(function(g,V){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},V)})]})})},c=function(m,d){var u=(0,a.useBackend)(d),s=u.act,l=u.data,v=l.isBeakerLoaded,N=l.beakerCurrentVolume,C=l.beakerMaxVolume,p=l.beakerContents,g=p===void 0?[]:p;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:l.glass?"Glass":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!v&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[N," / ",C," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!v,onClick:function(){function V(){return s("ejectBeaker")}return V}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:v,beakerContents:g,buttons:function(){function V(B){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function I(){return s("remove",{reagent:B.id,amount:-1})}return I}()}),y.map(function(I,L){return(0,e.createComponentVNode)(2,t.Button,{content:I,onClick:function(){function w(){return s("remove",{reagent:B.id,amount:I})}return w}()},L)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function I(){return s("remove",{reagent:B.id,amount:B.volume})}return I}()})],0)}return V}()})})})}},13146:function(T,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(85870),b=n(98595),y=r.ChemHeater=function(){function h(c,i){return(0,e.createComponentVNode)(2,b.Window,{width:350,height:275,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,k)]})})})}return h}(),S=function(c,i){var m=(0,t.useBackend)(i),d=m.act,u=m.data,s=u.targetTemp,l=u.targetTempReached,v=u.autoEject,N=u.isActive,C=u.currentTemp,p=u.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Settings",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Auto-eject",icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){function g(){return d("toggle_autoeject")}return g}()}),(0,e.createComponentVNode)(2,o.Button,{content:N?"On":"Off",icon:"power-off",selected:N,disabled:!p,onClick:function(){function g(){return d("toggle_on")}return g}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"65px",unit:"K",step:10,stepPixelSize:3,value:(0,a.round)(s,0),minValue:0,maxValue:1e3,onDrag:function(){function g(V,B){return d("adjust_temperature",{target:B})}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reading",color:l?"good":"average",children:p&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:C,format:function(){function g(V){return(0,a.toFixed)(V)+" K"}return g}()})||"\u2014"})]})})})},k=function(c,i){var m=(0,t.useBackend)(i),d=m.act,u=m.data,s=u.isBeakerLoaded,l=u.beakerCurrentVolume,v=u.beakerMaxVolume,N=u.beakerContents;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:!!s&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[l," / ",v," units"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function C(){return d("eject_beaker")}return C}()})]}),children:(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:s,beakerContents:N})})})}},56541:function(T,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(85870),b=n(3939),y=n(35840),S=["icon"];function k(I,L){if(I==null)return{};var w={};for(var x in I)if({}.hasOwnProperty.call(I,x)){if(L.includes(x))continue;w[x]=I[x]}return w}function h(I,L){I.prototype=Object.create(L.prototype),I.prototype.constructor=I,c(I,L)}function c(I,L){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,x){return w.__proto__=x,w},c(I,L)}var i=[1,5,10],m=function(L,w){var x=(0,a.useBackend)(w),A=x.act,E=x.data,P=L.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:E.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.createComponentVNode)(2,t.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:P.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(P.desc||"").length>0?P.desc:"N/A"}),P.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:P.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:P.blood_dna})],4),!E.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:E.printing?"spinner":"print",disabled:E.printing,iconSpin:!!E.printing,ml:"0.5rem",content:"Print",onClick:function(){function j(){return A("print",{idx:P.idx,beaker:L.args.beaker})}return j}()})]})})})})},d=function(I){return I[I.ToDisposals=0]="ToDisposals",I[I.ToBeaker=1]="ToBeaker",I}(d||{}),u=r.ChemMaster=function(){function I(L,w){return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,b.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,B)]})})]})}return I}(),s=function(L,w){var x=(0,a.useBackend)(w),A=x.act,E=x.data,P=E.beaker,j=E.beaker_reagents,M=E.buffer_reagents,R=M.length>0;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:R?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!P,content:"Eject and Clear Buffer",onClick:function(){function D(){return A("eject")}return D}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!P,content:"Eject and Clear Buffer",onClick:function(){function D(){return A("eject")}return D}()}),children:P?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:j,buttons:function(){function D(W,_){return(0,e.createComponentVNode)(2,t.Box,{mb:_0?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:j,buttons:function(){function M(R,D){return(0,e.createComponentVNode)(2,t.Box,{mb:D0&&(R=M.map(function(D){var W=D.id,_=D.sprite;return(0,e.createComponentVNode)(2,g,{icon:_,translucent:!0,onClick:function(){function U(){return A("set_sprite_style",{production_mode:P,style:W})}return U}(),selected:j===W},W)})),(0,e.createComponentVNode)(2,p,{productionData:L.productionData,children:R&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:R})})},B=function(L,w){var x=(0,a.useBackend)(w),A=x.act,E=x.data,P=E.loaded_pill_bottle_style,j=E.containerstyles,M=E.loaded_pill_bottle,R={width:"20px",height:"20px"},D=j.map(function(W){var _=W.color,U=W.name,K=P===_;return(0,e.createComponentVNode)(2,t.Button,{style:{position:"relative",width:R.width,height:R.height},onClick:function(){function G(){return A("set_container_style",{style:_})}return G}(),icon:K&&"check",iconStyle:{position:"relative","z-index":1},tooltip:U,tooltipPosition:"top",children:[!K&&(0,e.createVNode)(1,"div",null,null,1,{style:{display:"inline-block"}}),(0,e.createVNode)(1,"span","Button",null,1,{style:{display:"inline-block",position:"absolute",top:0,left:0,margin:0,padding:0,width:R.width,height:R.height,"background-color":_,opacity:.6,filter:"alpha(opacity=60)"}})]},_)});return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Container Customization",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!M,content:"Eject Container",onClick:function(){function W(){return A("ejectp")}return W}()}),children:M?(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:[(0,e.createComponentVNode)(2,t.Button,{style:{width:R.width,height:R.height},icon:"tint-slash",onClick:function(){function W(){return A("clear_container_style")}return W}(),selected:!P,tooltip:"Default",tooltipPosition:"top"}),D]})}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No pill bottle or patch pack loaded."})})})};(0,b.modalRegisterBodyOverride)("analyze",m)},37173:function(T,r,n){"use strict";r.__esModule=!0,r.CloningConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(79140),b=1,y=32,S=128,k=r.CloningConsole=function(){function u(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.tab,g=C.has_scanner,V=C.pod_amount;return(0,e.createComponentVNode)(2,o.Window,{width:640,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cloning Console",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connected scanner",children:g?"Online":"Missing"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connected pods",children:V})]})}),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:p===1,icon:"home",onClick:function(){function B(){return N("menu",{tab:1})}return B}(),children:"Main Menu"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:p===2,icon:"user",onClick:function(){function B(){return N("menu",{tab:2})}return B}(),children:"Damage Configuration"})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,h)})]})})}return u}(),h=function(s,l){var v=(0,a.useBackend)(l),N=v.data,C=N.tab,p;return C===1?p=(0,e.createComponentVNode)(2,c):C===2&&(p=(0,e.createComponentVNode)(2,i)),p},c=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.pods,g=C.pod_amount,V=C.selected_pod_UID;return(0,e.createComponentVNode)(2,t.Box,{children:[!g&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No pods connected."}),!!g&&p.map(function(B,I){return(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Pod "+(I+1),children:(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"96px",shrink:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,f.resolveAsset)("pod_"+(B.cloning?"cloning":"idle")+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Button,{selected:V===B.uid,onClick:function(){function L(){return N("select_pod",{uid:B.uid})}return L}(),children:"Select"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Progress",children:[!B.cloning&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Pod is inactive."}),!!B.cloning&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:B.clone_progress,maxValue:100,color:"good"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:B.biomass,ranges:{good:[2*B.biomass_storage_capacity/3,B.biomass_storage_capacity],average:[B.biomass_storage_capacity/3,2*B.biomass_storage_capacity/3],bad:[0,B.biomass_storage_capacity/3]},minValue:0,maxValue:B.biomass_storage_capacity,children:[B.biomass,"/",B.biomass_storage_capacity+" ("+100*B.biomass/B.biomass_storage_capacity+"%)"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sanguine Reagent",children:B.sanguine_reagent}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Osseous Reagent",children:B.osseous_reagent})]})})]})},B)})]})},i=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.selected_pod_data,g=C.has_scanned,V=C.scanner_has_patient,B=C.feedback,I=C.scan_successful,L=C.cloning_cost,w=C.has_scanner;return(0,e.createComponentVNode)(2,t.Box,{children:[!w&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No scanner connected."}),!!w&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Scanner Info",buttons:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hourglass-half",onClick:function(){function x(){return N("scan")}return x}(),children:"Scan"}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function x(){return N("eject")}return x}(),children:"Eject Patient"})]}),children:[!g&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:V?"No scan detected for current patient.":"No patient is in the scanner."}),!!g&&(0,e.createComponentVNode)(2,t.Box,{color:B.color,children:B.text})]}),(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Damages Breakdown",children:(0,e.createComponentVNode)(2,t.Box,{children:[(!I||!g)&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No valid scan detected."}),!!I&&!!g&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function x(){return N("fix_all")}return x}(),children:"Repair All Damages"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function x(){return N("fix_none")}return x}(),children:"Repair No Damages"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function x(){return N("clone")}return x}(),children:"Clone"})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L[0],maxValue:p.biomass_storage_capacity,ranges:{bad:[2*p.biomass_storage_capacity/3,p.biomass_storage_capacity],average:[p.biomass_storage_capacity/3,2*p.biomass_storage_capacity/3],good:[0,p.biomass_storage_capacity/3]},color:L[0]>p.biomass?"bad":null,children:["Biomass: ",L[0],"/",p.biomass,"/",p.biomass_storage_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L[1],maxValue:p.max_reagent_capacity,ranges:{bad:[2*p.max_reagent_capacity/3,p.max_reagent_capacity],average:[p.max_reagent_capacity/3,2*p.max_reagent_capacity/3],good:[0,p.max_reagent_capacity/3]},color:L[1]>p.sanguine_reagent?"bad":"good",children:["Sanguine: ",L[1],"/",p.sanguine_reagent,"/",p.max_reagent_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L[2],maxValue:p.max_reagent_capacity,ranges:{bad:[2*p.max_reagent_capacity/3,p.max_reagent_capacity],average:[p.max_reagent_capacity/3,2*p.max_reagent_capacity/3],good:[0,p.max_reagent_capacity/3]},color:L[2]>p.osseous_reagent?"bad":"good",children:["Osseous: ",L[2],"/",p.osseous_reagent,"/",p.max_reagent_capacity]})})]}),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,d)]})]})})]})]})},m=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.patient_limb_data,g=C.limb_list,V=C.desired_limb_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Limbs",children:g.map(function(B,I){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"15%",height:"20px",children:[p[B][4],":"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),p[B][3]===0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:V[B][0]+V[B][1],maxValue:p[B][5],ranges:{good:[0,p[B][5]/3],average:[p[B][5]/3,2*p[B][5]/3],bad:[2*p[B][5]/3,p[B][5]]},children:["Post-Cloning Damage: ",(0,e.createComponentVNode)(2,t.Icon,{name:"bone"})," "+V[B][0]+" / ",(0,e.createComponentVNode)(2,t.Icon,{name:"fire"})," "+V[B][1]]})}),p[B][3]!==0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",p[B][4]," is missing!"]})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[!!p[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!V[B][3],onClick:function(){function L(){return N("toggle_limb_repair",{limb:B,type:"replace"})}return L}(),children:"Replace Limb"})}),!p[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[B][0]||p[B][1]),checked:!(V[B][0]||V[B][1]),onClick:function(){function L(){return N("toggle_limb_repair",{limb:B,type:"damage"})}return L}(),children:"Repair Damages"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[B][2]&b),checked:!(V[B][2]&b),onClick:function(){function L(){return N("toggle_limb_repair",{limb:B,type:"bone"})}return L}(),children:"Mend Bone"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[B][2]&y),checked:!(V[B][2]&y),onClick:function(){function L(){return N("toggle_limb_repair",{limb:B,type:"ib"})}return L}(),children:"Mend IB"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[B][2]&S),checked:!(V[B][2]&S),onClick:function(){function L(){return N("toggle_limb_repair",{limb:B,type:"critburn"})}return L}(),children:"Mend Critical Burn"})]})]})]},B)})})},d=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.patient_organ_data,g=C.organ_list,V=C.desired_organ_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Organs",children:g.map(function(B,I){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"20%",height:"20px",children:[p[B][3],":"," "]}),p[B][5]!=="heart"&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!!p[B][2]&&(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!V[B][2]&&!V[B][1],onClick:function(){function L(){return N("toggle_organ_repair",{organ:B,type:"replace"})}return L}(),children:"Replace Organ"}),!p[B][2]&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!p[B][0],checked:!V[B][0],onClick:function(){function L(){return N("toggle_organ_repair",{organ:B,type:"damage"})}return L}(),children:"Repair Damages"})})]})}),p[B][5]==="heart"&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Heart replacement is required for cloning."}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[!!p[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",p[B][3]," is missing!"]}),!p[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:V[B][0],maxValue:p[B][4],ranges:{good:[0,p[B][4]/3],average:[p[B][4]/3,2*p[B][4]/3],bad:[2*p[B][4]/3,p[B][4]]},children:"Post-Cloning Damage: "+V[B][0]})]})]})},B)})})}},98723:function(T,r,n){"use strict";r.__esModule=!0,r.CloningPod=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.CloningPod=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.biomass,m=c.biomass_storage_capacity,d=c.sanguine_reagent,u=c.osseous_reagent,s=c.organs,l=c.currently_cloning;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Liquid Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Biomass:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i,ranges:{good:[2*m/3,m],average:[m/3,2*m/3],bad:[0,m/3]},minValue:0,maxValue:m})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Sanguine Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:d+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:d,step:1,unit:"units",onChange:function(){function v(N,C){return h("remove_reagent",{reagent:"sanguine_reagent",amount:C})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function v(){return h("purge_reagent",{reagent:"sanguine_reagent"})}return v}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Osseous Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:u+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:u,step:1,unit:"units",onChange:function(){function v(N,C){return h("remove_reagent",{reagent:"osseous_reagent",amount:C})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function v(){return h("purge_reagent",{reagent:"osseous_reagent"})}return v}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Organ Storage",children:[!l&&(0,e.createComponentVNode)(2,t.Box,{children:[!s&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No organs loaded."}),!!s&&s.map(function(v){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:v.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",onClick:function(){function N(){return h("eject_organ",{organ_ref:v.ref})}return N}()})})]},v)})]}),!!l&&(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Unable to access organ storage while cloning."]})})]})]})})}return b}()},18259:function(T,r,n){"use strict";r.__esModule=!0,r.CoinMint=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(98595),b=r.CoinMint=function(){function y(S,k){var h=(0,t.useBackend)(k),c=h.act,i=h.data,m=i.materials,d=i.moneyBag,u=i.moneyBagContent,s=i.moneyBagMaxContent,l=(d?210:138)+Math.ceil(m.length/4)*64;return(0,e.createComponentVNode)(2,f.Window,{width:210,height:l,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.NoticeBox,{m:0,info:!0,children:["Total coins produced: ",i.totalCoins]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Coin Type",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",color:i.active&&"bad",tooltip:!d&&"Need a money bag",disabled:!d,onClick:function(){function v(){return c("activate")}return v}()}),children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue:i.maxMaterials,value:i.totalMaterials})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",tooltip:"Eject selected material",onClick:function(){function v(){return c("ejectMat")}return v}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:m.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{bold:!0,inline:!0,translucent:!0,m:.2,textAlign:"center",selected:v.id===i.chosenMaterial,tooltip:v.name,content:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",v.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:v.amount})]}),onClick:function(){function N(){return c("selectMaterial",{material:v.id})}return N}()},v.id)})})]})})}),!!d&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Money Bag",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",disabled:i.active,onClick:function(){function v(){return c("ejectBag")}return v}()}),children:(0,e.createComponentVNode)(2,o.ProgressBar,{width:"100%",minValue:0,maxValue:s,value:u,children:[u," / ",s]})})})]})})})}return y}()},8444:function(T,r,n){"use strict";r.__esModule=!0,r.ColourMatrixTester=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ColourMatrixTester=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.colour_data,m=[[{name:"RR",idx:0},{name:"RG",idx:1},{name:"RB",idx:2},{name:"RA",idx:3}],[{name:"GR",idx:4},{name:"GG",idx:5},{name:"GB",idx:6},{name:"GA",idx:7}],[{name:"BR",idx:8},{name:"BG",idx:9},{name:"BB",idx:10},{name:"BA",idx:11}],[{name:"AR",idx:12},{name:"AG",idx:13},{name:"AB",idx:14},{name:"AA",idx:15}]];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:190,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Matrix",children:m.map(function(d){return(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",textColor:"label",children:d.map(function(u){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:1,children:[u.name,":\xA0",(0,e.createComponentVNode)(2,t.NumberInput,{width:4,value:i[u.idx],step:.05,minValue:-5,maxValue:5,stepPixelSize:5,onChange:function(){function s(l,v){return h("setvalue",{idx:u.idx+1,value:v})}return s}()})]},u.name)})},d)})})})})})}return b}()},63818:function(T,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(s){switch(s){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,c);case 3:return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,i)})});case 4:return(0,e.createComponentVNode)(2,d);default:return"ERROR. Unknown menu_state. Please contact NT Technical Support."}},b=r.CommunicationsComputer=function(){function u(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.menu_state;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),f(p)]})})})}return u}(),y=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.authenticated,g=C.noauthbutton,V=C.esc_section,B=C.esc_callable,I=C.esc_recallable,L=C.esc_status,w=C.authhead,x=C.is_ai,A=C.lastCallLoc,E=!1,P;return p?p===1?P="Command":p===2?P="Captain":p===3?P="CentComm Officer":p===4?(P="CentComm Secure Connection",E=!0):P="ERROR: Report This Bug!":P="Not Logged In",(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authentication",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access",children:P})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:p?"sign-out-alt":"id-card",selected:p,disabled:g,content:p?"Log Out ("+P+")":"Log In",onClick:function(){function j(){return N("auth")}return j}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!V&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Escape Shuttle",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!L&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:L}),!!B&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"Call Shuttle",disabled:!w,onClick:function(){function j(){return N("callshuttle")}return j}()})}),!!I&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Recall Shuttle",disabled:!w||x,onClick:function(){function j(){return N("cancelshuttle")}return j}()})}),!!A&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Last Call/Recall From",children:A})]})})})],4)},S=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.is_admin;return p?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,h)},k=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.is_admin,g=C.gamma_armory_location,V=C.admin_levels,B=C.authenticated,I=C.ert_allowed;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"CentComm Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:V,required_access:p,use_confirm:1})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:"Make Central Announcement",disabled:!p,onClick:function(){function L(){return N("send_to_cc_announcement_page")}return L}()}),B===4&&(0,e.createComponentVNode)(2,t.Button,{icon:"plus",content:"Make Other Announcement",disabled:!p,onClick:function(){function L(){return N("make_other_announcement")}return L}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Response Team",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"Dispatch ERT",disabled:!p,onClick:function(){function L(){return N("dispatch_ert")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:I,content:I?"ERT calling enabled":"ERT calling disabled",tooltip:I?"Command can request an ERT":"ERTs cannot be requested",disabled:!p,onClick:function(){function L(){return N("toggle_ert_allowed")}return L}(),selected:null})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Get Authentication Codes",disabled:!p,onClick:function(){function L(){return N("send_nuke_codes")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gamma Armory",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"biohazard",content:g?"Send Gamma Armory":"Recall Gamma Armory",disabled:!p,onClick:function(){function L(){return N("move_gamma_armory")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"coins",content:"View Economy",disabled:!p,onClick:function(){function L(){return N("view_econ")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fax",content:"Fax Manager",disabled:!p,onClick:function(){function L(){return N("view_fax")}return L}()})]})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"View Command accessible controls",children:(0,e.createComponentVNode)(2,h)})]})},h=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.msg_cooldown,g=C.emagged,V=C.cc_cooldown,B=C.security_level_color,I=C.str_security_level,L=C.levels,w=C.authcapt,x=C.authhead,A=C.messages,E="Make Priority Announcement";p>0&&(E+=" ("+p+"s)");var P=g?"Message [UNKNOWN]":"Message CentComm",j="Request Authentication Codes";return V>0&&(P+=" ("+V+"s)",j+=" ("+V+"s)"),(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Captain-Only Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Alert",color:B,children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:L,required_access:w})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:E,disabled:!w||p>0,onClick:function(){function M(){return N("announce")}return M}()})}),!!g&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:P,disabled:!w||V>0,onClick:function(){function M(){return N("MessageSyndicate")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!w,onClick:function(){function M(){return N("RestoreBackup")}return M}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:P,disabled:!w||V>0,onClick:function(){function M(){return N("MessageCentcomm")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:j,disabled:!w||V>0,onClick:function(){function M(){return N("nukerequest")}return M}()})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Command Staff Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Displays",children:(0,e.createComponentVNode)(2,t.Button,{icon:"tv",content:"Change Status Displays",disabled:!x,onClick:function(){function M(){return N("status")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Messages",children:(0,e.createComponentVNode)(2,t.Button,{icon:"folder-open",content:"View ("+A.length+")",disabled:!x,onClick:function(){function M(){return N("messagelist")}return M}()})})]})})})],4)},c=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.stat_display,g=C.authhead,V=C.current_message_title,B=p.presets.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{content:L.label,selected:L.name===p.type,disabled:!g,onClick:function(){function w(){return N("setstat",{statdisp:L.name})}return w}()},L.name)}),I=p.alerts.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{content:L.label,selected:L.alert===p.icon,disabled:!g,onClick:function(){function w(){return N("setstat",{statdisp:3,alert:L.alert})}return w}()},L.alert)});return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Status Screens",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function L(){return N("main")}return L}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alerts",children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:p.line_1,disabled:!g,onClick:function(){function L(){return N("setmsg1")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:p.line_2,disabled:!g,onClick:function(){function L(){return N("setmsg2")}return L}()})})]})})})},i=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.authhead,g=C.current_message_title,V=C.current_message,B=C.messages,I=C.security_level,L;if(g)L=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:g,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Return To Message List",disabled:!p,onClick:function(){function x(){return N("messagelist")}return x}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:V})})});else{var w=B.map(function(x){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:x.title,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"View",disabled:!p||g===x.title,onClick:function(){function A(){return N("messagelist",{msgid:x.id})}return A}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"times",content:"Delete",disabled:!p,onClick:function(){function A(){return N("delmessage",{msgid:x.id})}return A}()})]},x.id)});L=(0,e.createComponentVNode)(2,t.Section,{title:"Messages Received",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function x(){return N("main")}return x}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:w})})}return(0,e.createComponentVNode)(2,t.Box,{children:L})},m=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=s.levels,g=s.required_access,V=s.use_confirm,B=C.security_level;return V?p.map(function(I){return(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:I.icon,content:I.name,disabled:!g||I.id===B,tooltip:I.tooltip,onClick:function(){function L(){return N("newalertlevel",{level:I.id})}return L}()},I.name)}):p.map(function(I){return(0,e.createComponentVNode)(2,t.Button,{icon:I.icon,content:I.name,disabled:!g||I.id===B,tooltip:I.tooltip,onClick:function(){function L(){return N("newalertlevel",{level:I.id})}return L}()},I.name)})},d=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.is_admin,g=C.possible_cc_sounds;if(!p)return N("main");var V=(0,a.useLocalState)(l,"subtitle",""),B=V[0],I=V[1],L=(0,a.useLocalState)(l,"text",""),w=L[0],x=L[1],A=(0,a.useLocalState)(l,"classified",0),E=A[0],P=A[1],j=(0,a.useLocalState)(l,"beepsound","Beep"),M=j[0],R=j[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Central Command Report",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function D(){return N("main")}return D}()}),children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Subtitle here.",fluid:!0,value:B,onChange:function(){function D(W,_){return I(_)}return D}(),mb:"5px"}),(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Announcement here,\nMultiline input is accepted.",rows:10,fluid:!0,multiline:1,value:w,onChange:function(){function D(W,_){return x(_)}return D}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Send Announcement",fluid:!0,icon:"paper-plane",center:!0,mt:"5px",textAlign:"center",onClick:function(){function D(){return N("make_cc_announcement",{subtitle:B,text:w,classified:E,beepsound:M})}return D}()}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"260px",height:"20px",options:g,selected:M,onSelected:function(){function D(W){return R(W)}return D}(),disabled:E})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"volume-up",mx:"5px",disabled:E,tooltip:"Test sound",onClick:function(){function D(){return N("test_sound",{sound:M})}return D}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:E,content:"Classified",fluid:!0,tooltip:E?"Sent to station communications consoles":"Publically announced",onClick:function(){function D(){return P(!E)}return D}()})})]})]})})}},20562:function(T,r,n){"use strict";r.__esModule=!0,r.CompostBin=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.CompostBin=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.biomass,m=c.compost,d=c.biomass_capacity,u=c.compost_capacity,s=c.potassium,l=c.potassium_capacity,v=c.potash,N=c.potash_capacity,C=(0,a.useSharedState)(S,"vendAmount",1),p=C[0],g=C[1];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:250,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{label:"Resources",children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:i,minValue:0,maxValue:d,ranges:{good:[d*.5,1/0],average:[d*.25,d*.5],bad:[-1/0,d*.25]},children:[i," / ",d," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compost",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:m,minValue:0,maxValue:u,ranges:{good:[u*.5,1/0],average:[u*.25,u*.5],bad:[-1/0,u*.25]},children:[m," / ",u," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Potassium",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:s,minValue:0,maxValue:l,ranges:{good:[l*.5,1/0],average:[l*.25,l*.5],bad:[-1/0,l*.25]},children:[s," / ",l," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Potash",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:v,minValue:0,maxValue:N,ranges:{good:[N*.5,1/0],average:[N*.25,N*.5],bad:[-1/0,N*.25]},children:[v," / ",N," Units"]})})]})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mr:"5px",color:"silver",children:"Soil clumps to make:"}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:p,width:"32px",minValue:1,maxValue:10,stepPixelSize:7,onChange:function(){function V(B,I){return g(I)}return V}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,align:"center",content:"Make Soil",disabled:m<25*p,icon:"arrow-circle-down",onClick:function(){function V(){return h("create",{amount:p})}return V}()})})})]})})})}return b}()},21813:function(T,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(73379),b=n(98595);function y(N,C){N.prototype=Object.create(C.prototype),N.prototype.constructor=N,S(N,C)}function S(N,C){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,g){return p.__proto__=g,p},S(N,C)}var k={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},h=["Recording biometric data...","Analyzing embedded syndicate info...","STATUS CONFIRMED","Contacting Syndicate database...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Response received, ack 4851234...","CONFIRM ACC "+Math.round(Math.random()*2e4),"Setting up private accounts...","CONTRACTOR ACCOUNT CREATED","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","CONTRACTS FOUND","WELCOME, AGENT"],c=r.Contractor=function(){function N(C,p){var g=(0,t.useBackend)(p),V=g.act,B=g.data,I;B.unauthorized?I=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,l,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){function A(){}return A}()})}):B.load_animation_completed?I=(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:(0,e.createComponentVNode)(2,i)}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"hidden",children:B.page===1?(0,e.createComponentVNode)(2,d,{height:"100%"}):(0,e.createComponentVNode)(2,s,{height:"100%"})})],4):I=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,l,{height:"100%",allMessages:h,finishedTimeout:3e3,onFinished:function(){function A(){return V("complete_load_animation")}return A}()})});var L=(0,t.useLocalState)(p,"viewingPhoto",""),w=L[0],x=L[1];return(0,e.createComponentVNode)(2,b.Window,{theme:"syndicate",width:500,height:600,children:[w&&(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,b.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:I})})]})}return N}(),i=function(C,p){var g=(0,t.useBackend)(p),V=g.act,B=g.data,I=B.tc_available,L=B.tc_paid_out,w=B.completed_contracts,x=B.rep;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Summary",buttons:(0,e.createComponentVNode)(2,o.Box,{verticalAlign:"middle",mt:"0.25rem",children:[x," Rep"]})},C,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Available",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",children:[I," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:I<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function A(){return V("claim")}return A}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Earned",children:[L," TC"]})]})}),(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Box,{height:"20px",lineHeight:"20px",inline:!0,children:w})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},m=function(C,p){var g=(0,t.useBackend)(p),V=g.act,B=g.data,I=B.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},C,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===1,onClick:function(){function L(){return V("page",{page:1})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===2,onClick:function(){function L(){return V("page",{page:2})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},d=function(C,p){var g=(0,t.useBackend)(p),V=g.act,B=g.data,I=B.contracts,L=B.contract_active,w=B.can_extract,x=!!L&&I.filter(function(M){return M.status===1})[0],A=x&&x.time_left>0,E=(0,t.useLocalState)(p,"viewingPhoto",""),P=E[0],j=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Contracts",overflow:"auto",buttons:(0,e.createComponentVNode)(2,o.Button,{disabled:!w||A,icon:"parachute-box",content:["Call Extraction",A&&(0,e.createComponentVNode)(2,f.Countdown,{timeLeft:x.time_left,format:function(){function M(R,D){return" ("+D.substr(3)+")"}return M}()})],onClick:function(){function M(){return V("extract")}return M}()})},C,{children:I.slice().sort(function(M,R){return M.status===1?-1:R.status===1?1:M.status-R.status}).map(function(M){var R;return(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",color:M.status===1&&"good",children:M.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:M.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function D(){return j("target_photo_"+M.uid+".png")}return D}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!k[M.status]&&(0,e.createComponentVNode)(2,o.Box,{color:k[M.status][1],inline:!0,mt:M.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:k[M.status][0]}),M.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function D(){return V("abort")}return D}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[M.fluff_message,!!M.completed_time&&(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"check",mr:"0.5rem"}),"Contract completed at ",M.completed_time]}),!!M.dead_extraction&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",mt:"0.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"Telecrystals reward reduced drastically as the target was dead during extraction."]}),!!M.fail_reason&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"times",mr:"0.5rem"}),"Contract failed: ",M.fail_reason]})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{flexBasis:"100%",children:[(0,e.createComponentVNode)(2,o.Flex,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xA0",u(M)]}),(R=M.difficulties)==null?void 0:R.map(function(D,W){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!L,content:D.name+" ("+D.reward+" TC)",onClick:function(){function _(){return V("activate",{uid:M.uid,difficulty:W+1})}return _}()},W)}),!!M.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[M.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(M.objective.rewards.tc||0)+" TC",",\xA0",(M.objective.rewards.credits||0)+" Credits",")"]})]})]})},M.uid)})})))},u=function(C){if(!(!C.objective||C.status>1)){var p=C.objective.locs.user_area_id,g=C.objective.locs.user_coords,V=C.objective.locs.target_area_id,B=C.objective.locs.target_coords,I=p===V;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:I?"dot-circle-o":"arrow-alt-circle-right-o",color:I?"green":"yellow",rotation:I?null:-(0,a.rad2deg)(Math.atan2(B[1]-g[1],B[0]-g[0])),lineHeight:I?null:"0.85",size:"1.5"})})}},s=function(C,p){var g=(0,t.useBackend)(p),V=g.act,B=g.data,I=B.rep,L=B.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},C,{children:L.map(function(w){return(0,e.createComponentVNode)(2,o.Section,{title:w.name,children:[w.description,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:I-1&&(0,e.createComponentVNode)(2,o.Box,{as:"span",color:w.stock===0?"bad":"good",ml:"0.5rem",children:[w.stock," in stock"]})]},w.uid)})})))},l=function(N){function C(g){var V;return V=N.call(this,g)||this,V.timer=null,V.state={currentIndex:0,currentDisplay:[]},V}y(C,N);var p=C.prototype;return p.tick=function(){function g(){var V=this.props,B=this.state;if(B.currentIndex<=V.allMessages.length){this.setState(function(L){return{currentIndex:L.currentIndex+1}});var I=B.currentDisplay;I.push(V.allMessages[B.currentIndex])}else clearTimeout(this.timer),setTimeout(V.onFinished,V.finishedTimeout)}return g}(),p.componentDidMount=function(){function g(){var V=this,B=this.props.linesPerSecond,I=B===void 0?2.5:B;this.timer=setInterval(function(){return V.tick()},1e3/I)}return g}(),p.componentWillUnmount=function(){function g(){clearTimeout(this.timer)}return g}(),p.render=function(){function g(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(V){return(0,e.createFragment)([V,(0,e.createVNode)(1,"br")],0,V)})})}return g}(),C}(e.Component),v=function(C,p){var g=(0,t.useLocalState)(p,"viewingPhoto",""),V=g[0],B=g[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:V}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function I(){return B("")}return I}()})]})}},54151:function(T,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ConveyorSwitch=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.slowFactor,m=c.oneWay,d=c.position;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lever position",children:d>0?"forward":d<0?"reverse":"neutral"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Allow reverse",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!m,onClick:function(){function u(){return h("toggleOneWay")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slowdown factor",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",onClick:function(){function u(){return h("slowFactor",{value:i-5})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function u(){return h("slowFactor",{value:i-1})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{width:"100px",mx:"1px",value:i,fillValue:i,minValue:1,maxValue:50,step:1,format:function(){function u(s){return s+"x"}return u}(),onChange:function(){function u(s,l){return h("slowFactor",{value:l})}return u}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function u(){return h("slowFactor",{value:i+1})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function u(){return h("slowFactor",{value:i+5})}return u}()})," "]})]})})]})})})})}return b}()},73169:function(T,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(89005),a=n(88510),t=n(25328),o=n(72253),f=n(36036),b=n(36352),y=n(76910),S=n(98595),k=n(96184),h=["color"];function c(v,N){if(v==null)return{};var C={};for(var p in v)if({}.hasOwnProperty.call(v,p)){if(N.includes(p))continue;C[p]=v[p]}return C}var i=function(N,C){return N.dead?"Deceased":parseInt(N.health,10)<=C?"Critical":parseInt(N.stat,10)===1?"Unconscious":"Living"},m=function(N,C){return N.dead?"red":parseInt(N.health,10)<=C?"orange":parseInt(N.stat,10)===1?"blue":"green"},d=r.CrewMonitor=function(){function v(N,C){var p=(0,o.useBackend)(C),g=p.act,V=p.data,B=(0,o.useLocalState)(C,"tabIndex",V.tabIndex),I=B[0],L=B[1],w=function(){function A(E){L(E),g("set_tab_index",{tab_index:E})}return A}(),x=function(){function A(E){switch(E){case 0:return(0,e.createComponentVNode)(2,u);case 1:return(0,e.createComponentVNode)(2,l);default:return"WE SHOULDN'T BE HERE!"}}return A}();return(0,e.createComponentVNode)(2,S.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"table",selected:I===0,onClick:function(){function A(){return w(0)}return A}(),children:"Data View"},"DataView"),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"map-marked-alt",selected:I===1,onClick:function(){function A(){return w(1)}return A}(),children:"Map View"},"MapView")]})}),x(I)]})})})}return v}(),u=function(N,C){var p=(0,o.useBackend)(C),g=p.act,V=p.data,B=(0,a.sortBy)(function(M){return M.name})(V.crewmembers||[]),I=V.possible_levels,L=V.viewing_current_z_level,w=V.is_advanced,x=V.highlightedNames,A=(0,o.useLocalState)(C,"search",""),E=A[0],P=A[1],j=(0,t.createSearch)(E,function(M){return M.name+"|"+M.assignment+"|"+M.area});return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,backgroundColor:"transparent",children:[(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name, assignment or location..",width:"100%",onInput:function(){function M(R,D){return P(D)}return M}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:w?(0,e.createComponentVNode)(2,f.Dropdown,{mr:"5px",width:"50px",options:I,selected:L,onSelected:function(){function M(R){return g("switch_level",{new_level:R})}return M}()}):null})]}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:(0,e.createComponentVNode)(2,f.Button,{tooltip:"Clear highlights",icon:"square-xmark",onClick:function(){function M(){return g("clear_highlighted_names")}return M}()})}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Location"})]}),B.filter(j).map(function(M){var R=x.includes(M.name);return(0,e.createComponentVNode)(2,f.Table.Row,{bold:!!M.is_command,children:[(0,e.createComponentVNode)(2,b.TableCell,{children:(0,e.createComponentVNode)(2,k.ButtonCheckbox,{checked:R,tooltip:"Mark on map",onClick:function(){function D(){return g(R?"remove_highlighted_name":"add_highlighted_name",{name:M.name})}return D}()})}),(0,e.createComponentVNode)(2,b.TableCell,{children:[M.name," (",M.assignment,")"]}),(0,e.createComponentVNode)(2,b.TableCell,{children:[(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:m(M,V.critThreshold),children:i(M,V.critThreshold)}),M.sensor_type>=2||V.ignoreSensors?(0,e.createComponentVNode)(2,f.Box,{inline:!0,ml:1,children:["(",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:y.COLORS.damageType.oxy,children:M.oxy}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:y.COLORS.damageType.toxin,children:M.tox}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:y.COLORS.damageType.burn,children:M.fire}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:y.COLORS.damageType.brute,children:M.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,b.TableCell,{children:M.sensor_type===3||V.ignoreSensors?V.isAI||V.isObserver?(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"location-arrow",content:M.area+" ("+M.x+", "+M.y+")",onClick:function(){function D(){return g("track",{track:M.ref})}return D}()}):M.area+" ("+M.x+", "+M.y+")":(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:"grey",children:"Not Available"})})]},M.name)})]})]})},s=function(N,C){var p=N.color,g=c(N,h);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.NanoMap.Marker,Object.assign({},g,{children:(0,e.createVNode)(1,"span","highlighted-marker color-border-"+p)})))},l=function(N,C){var p=(0,o.useBackend)(C),g=p.act,V=p.data,B=V.highlightedNames;return(0,e.createComponentVNode)(2,f.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,f.NanoMap,{zoom:V.zoom,offsetX:V.offsetX,offsetY:V.offsetY,onZoom:function(){function I(L){return g("set_zoom",{zoom:L})}return I}(),onOffsetChange:function(){function I(L,w){return g("set_offset",{offset_x:w.offsetX,offset_y:w.offsetY})}return I}(),children:V.crewmembers.filter(function(I){return I.sensor_type===3||V.ignoreSensors}).map(function(I){var L=m(I,V.critThreshold),w=B.includes(I.name),x=function(){return V.isObserver?g("track",{track:I.ref}):null},A=function(){return g(w?"remove_highlighted_name":"add_highlighted_name",{name:I.name})},E=I.name+" ("+I.assignment+")";return w?(0,e.createComponentVNode)(2,s,{x:I.x,y:I.y,tooltip:E,color:L,onClick:x,onDblClick:A},I.ref):(0,e.createComponentVNode)(2,f.NanoMap.MarkerIcon,{x:I.x,y:I.y,icon:"circle",tooltip:E,color:L,onClick:x,onDblClick:A},I.ref)})})})}},63987:function(T,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],b=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],y=r.Cryo=function(){function h(c,i){return(0,e.createComponentVNode)(2,o.Window,{width:520,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,S)})})})}return h}(),S=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.isOperating,l=u.hasOccupant,v=u.occupant,N=v===void 0?[]:v,C=u.cellTemperature,p=u.cellTemperatureStatus,g=u.isBeakerLoaded,V=u.cooldownProgress,B=u.auto_eject_healthy,I=u.auto_eject_dead;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",onClick:function(){function L(){return d("ejectOccupant")}return L}(),disabled:!l,children:"Eject"}),children:l?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:N.name||"Unknown"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:N.health,max:N.maxHealth,value:N.health/N.maxHealth,color:N.health>0?"good":"average",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(N.health)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:b[N.stat][0],children:b[N.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(N.bodyTemperature)})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),f.map(function(L){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:L.label,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:N[L.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(N[L.type])})})},L.id)})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Cell",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function L(){return d("ejectBeaker")}return L}(),disabled:!g,children:"Eject Beaker"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function L(){return d(s?"switchOff":"switchOn")}return L}(),selected:s,children:s?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",color:p,children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:C})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dosage interval",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{average:[-1/0,99],good:[99,1/0]},color:!g&&"average",value:V,minValue:0,maxValue:100})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject healthy occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:B?"toggle-on":"toggle-off",selected:B,onClick:function(){function L(){return d(B?"auto_eject_healthy_off":"auto_eject_healthy_on")}return L}(),children:B?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject dead occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:I?"toggle-on":"toggle-off",selected:I,onClick:function(){function L(){return d(I?"auto_eject_dead_off":"auto_eject_dead_on")}return L}(),children:I?"On":"Off"})})]})})})],4)},k=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.isBeakerLoaded,l=u.beakerLabel,v=u.beakerVolume;return s?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!l&&"average",children:[l||"No label",":"]}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!v&&"bad",ml:1,children:v?(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:v,format:function(){function N(C){return Math.round(C)+" units remaining"}return N}()}):"Beaker is empty"})],4):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"bad",children:"No beaker loaded"})}},86099:function(T,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(25328),b=r.CryopodConsole=function(){function k(h,c){var i=(0,a.useBackend)(c),m=i.data,d=m.account_name,u=m.allow_items;return(0,e.createComponentVNode)(2,o.Window,{title:"Cryopod Console",width:400,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Hello, "+(d||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.createComponentVNode)(2,y),!!u&&(0,e.createComponentVNode)(2,S)]})})}return k}(),y=function(h,c){var i=(0,a.useBackend)(c),m=i.data,d=m.frozen_crew;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Crew",children:d.length?(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(u,s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,children:u.rank},s)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},S=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.frozen_items,s=function(v){var N=v.toString();return N.startsWith("the ")&&(N=N.slice(4,N.length)),(0,f.toTitleCase)(N)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:u.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s(l.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function v(){return m("one_item",{item:l.uid})}return v}()})},l)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function l(){return m("all_items")}return l}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},12692:function(T,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=[["good","Alive"],["average","Critical"],["bad","DEAD"]],y=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],S=[5,10,20,30,50],k=r.DNAModifier=function(){function p(g,V){var B=(0,a.useBackend)(V),I=B.act,L=B.data,w=L.irradiating,x=L.dnaBlockSize,A=L.occupant;V.dnaBlockSize=x,V.isDNAInvalid=!A.isViableSubject||!A.uniqueIdentity||!A.structuralEnzymes;var E;return w&&(E=(0,e.createComponentVNode)(2,N,{duration:w})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:775,children:[(0,e.createComponentVNode)(2,f.ComplexModal),E,(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,h)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,c)})]})})]})}return p}(),h=function(g,V){var B=(0,a.useBackend)(V),I=B.act,L=B.data,w=L.locked,x=L.hasOccupant,A=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x,selected:w,icon:w?"toggle-on":"toggle-off",content:w?"Engaged":"Disengaged",onClick:function(){function E(){return I("toggleLock")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x||w,icon:"user-slash",content:"Eject",onClick:function(){function E(){return I("ejectOccupant")}return E}()})],4),children:x?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:A.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:A.minHealth,max:A.maxHealth,value:A.health/A.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:b[A.stat][0],children:b[A.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),V.isDNAInvalid?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radiation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:"0",max:"100",value:A.radiationLevel/100,color:"average"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:L.occupant.uniqueEnzymes?L.occupant.uniqueEnzymes:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})],0):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Cell unoccupied."})})},c=function(g,V){var B=(0,a.useBackend)(V),I=B.act,L=B.data,w=L.selectedMenuKey,x=L.hasOccupant,A=L.occupant;if(x){if(V.isDNAInvalid)return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No operation possible on this subject."]})})})}else return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant in DNA modifier."]})})});var E;return w==="ui"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,d)],4):w==="se"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,d)],4):w==="buffer"?E=(0,e.createComponentVNode)(2,u):w==="rejuvenators"&&(E=(0,e.createComponentVNode)(2,v)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:y.map(function(P,j){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:P[2],selected:w===P[0],onClick:function(){function M(){return I("selectMenuKey",{key:P[0]})}return M}(),children:P[1]},j)})}),E]})},i=function(g,V){var B=(0,a.useBackend)(V),I=B.act,L=B.data,w=L.selectedUIBlock,x=L.selectedUISubBlock,A=L.selectedUITarget,E=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",children:[(0,e.createComponentVNode)(2,C,{dnaString:E.uniqueIdentity,selectedBlock:w,selectedSubblock:x,blockSize:V.dnaBlockSize,action:"selectUIBlock"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:15,stepPixelSize:"20",value:A,format:function(){function P(j){return j.toString(16).toUpperCase()}return P}(),ml:"0",onChange:function(){function P(j,M){return I("changeUITarget",{value:M})}return P}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function P(){return I("pulseUIRadiation")}return P}()})]})},m=function(g,V){var B=(0,a.useBackend)(V),I=B.act,L=B.data,w=L.selectedSEBlock,x=L.selectedSESubBlock,A=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",children:[(0,e.createComponentVNode)(2,C,{dnaString:A.structuralEnzymes,selectedBlock:w,selectedSubblock:x,blockSize:V.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function E(){return I("pulseSERadiation")}return E}()})]})},d=function(g,V){var B=(0,a.useBackend)(V),I=B.act,L=B.data,w=L.radiationIntensity,x=L.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Emitter",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Intensity",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:10,stepPixelSize:20,value:w,popUpPosition:"right",ml:"0",onChange:function(){function A(E,P){return I("radiationIntensity",{value:P})}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:20,stepPixelSize:10,unit:"s",value:x,popUpPosition:"right",ml:"0",onChange:function(){function A(E,P){return I("radiationDuration",{value:P})}return A}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top-start",mt:"0.5rem",onClick:function(){function A(){return I("pulseRadiation")}return A}()})]})},u=function(g,V){var B=(0,a.useBackend)(V),I=B.act,L=B.data,w=L.buffers,x=w.map(function(A,E){return(0,e.createComponentVNode)(2,s,{id:E+1,name:"Buffer "+(E+1),buffer:A},E)});return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{height:"75%",mt:1,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Buffers",children:x})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,l)})]})},s=function(g,V){var B=(0,a.useBackend)(V),I=B.act,L=B.data,w=g.id,x=g.name,A=g.buffer,E=L.isInjectorReady,P=x+(A.data?" - "+A.label:"");return(0,e.createComponentVNode)(2,t.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,t.Section,{title:P,mx:"0",lineHeight:"18px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!A.data,icon:"trash",content:"Clear",onClick:function(){function j(){return I("bufferOption",{option:"clear",id:w})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A.data,icon:"pen",content:"Rename",onClick:function(){function j(){return I("bufferOption",{option:"changeLabel",id:w})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A.data||!L.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-start",onClick:function(){function j(){return I("bufferOption",{option:"saveDisk",id:w})}return j}()})],4),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Write",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"saveUI",id:w})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"saveUIAndUE",id:w})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"saveSE",id:w})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!L.hasDisk||!L.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"loadDisk",id:w})}return j}()})]}),!!A.data&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:A.owner||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[A.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!A.ue&&" and Unique Enzymes"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer to",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Injector",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"createInjector",id:w})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Block Injector",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"createInjector",id:w,block:1})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"transfer",id:w})}return j}()})]})],4)]}),!A.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},l=function(g,V){var B=(0,a.useBackend)(V),I=B.act,L=B.data,w=L.hasDisk,x=L.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!w||!x.data,icon:"trash",content:"Wipe",onClick:function(){function A(){return I("wipeDisk")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:"eject",content:"Eject",onClick:function(){function A(){return I("ejectDisk")}return A}()})],4),children:w?x.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Label",children:x.label?x.label:"No label"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:x.owner?x.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[x.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!x.ue&&" and Unique Enzymes"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Disk is blank."}):(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"save-o",size:"4"}),(0,e.createVNode)(1,"br"),"No disk inserted."]})})},v=function(g,V){var B=(0,a.useBackend)(V),I=B.act,L=B.data,w=L.isBeakerLoaded,x=L.beakerVolume,A=L.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Rejuvenators and Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:"eject",content:"Eject",onClick:function(){function E(){return I("ejectBeaker")}return E}()}),children:w?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[S.map(function(E,P){return(0,e.createComponentVNode)(2,t.Button,{disabled:E>x,icon:"syringe",content:E,onClick:function(){function j(){return I("injectRejuvenators",{amount:E})}return j}()},P)}),(0,e.createComponentVNode)(2,t.Button,{disabled:x<=0,icon:"syringe",content:"All",onClick:function(){function E(){return I("injectRejuvenators",{amount:x})}return E}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:A||"No label"}),x?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:[x," unit",x===1?"":"s"," remaining"]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Empty"})]})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No beaker loaded.",16)]})})})},N=function(g,V){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:(0,e.createVNode)(1,"h1",null,[(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"}),(0,e.createTextVNode)("\xA0Irradiating occupant\xA0"),(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"})],4)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,[(0,e.createTextVNode)("For "),g.duration,(0,e.createTextVNode)(" second"),g.duration===1?"":"s"],0)})]})},C=function(g,V){for(var B=(0,a.useBackend)(V),I=B.act,L=B.data,w=g.dnaString,x=g.selectedBlock,A=g.selectedSubblock,E=g.blockSize,P=g.action,j=w.split(""),M=0,R=[],D=function(){for(var U=W/E+1,K=[],G=function(){var J=$+1;K.push((0,e.createComponentVNode)(2,t.Button,{selected:x===U&&A===J,content:j[W+$],mb:"0",onClick:function(){function ie(){return I(P,{block:U,subblock:J})}return ie}()}))},$=0;$l.spawnpoints?"red":"green",children:[l.total," total, versus ",l.spawnpoints," spawnpoints"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispatch",children:(0,e.createComponentVNode)(2,t.Button,{width:10.5,textAlign:"center",icon:"ambulance",content:"Send ERT",onClick:function(){function g(){return s("dispatch_ert",{silent:C})}return g}()})})]})})})},h=function(m,d){var u=(0,a.useBackend)(d),s=u.act,l=u.data,v=l.ert_request_messages;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:v&&v.length?v.map(function(N){return(0,e.createComponentVNode)(2,t.Section,{title:N.time,buttons:(0,e.createComponentVNode)(2,t.Button,{content:N.sender_real_name,onClick:function(){function C(){return s("view_player_panel",{uid:N.sender_uid})}return C}(),tooltip:"View player panel"}),children:N.message},(0,f.decodeHtmlEntities)(N.time))}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"broadcast-tower",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No ERT requests."]})})})})},c=function(m,d){var u=(0,a.useBackend)(d),s=u.act,l=u.data,v=(0,a.useLocalState)(d,"text",""),N=v[0],C=v[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter ERT denial reason here,\nMultiline input is accepted.",rows:19,fluid:!0,multiline:1,value:N,onChange:function(){function p(g,V){return C(V)}return p}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Deny ERT",fluid:!0,icon:"times",center:!0,mt:2,textAlign:"center",onClick:function(){function p(){return s("deny_ert",{reason:N})}return p}()})]})})}},90217:function(T,r,n){"use strict";r.__esModule=!0,r.EconomyManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=r.EconomyManager=function(){function S(k,h){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:325,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,y)})]})}return S}(),y=function(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.next_payroll_time;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"coins",verticalAlign:"middle",size:3,mr:"1rem"}),"Economy Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.LabeledList,{label:"Pay Bonuses and Deductions",children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Global",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Global Payroll Modification",onClick:function(){function u(){return i("payroll_modification",{mod_type:"global"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Account Payroll Modification",onClick:function(){function u(){return i("payroll_modification",{mod_type:"department"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Members",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Members Payroll Modification",onClick:function(){function u(){return i("payroll_modification",{mod_type:"department_members"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Single Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Crew Member Payroll Modification",onClick:function(){function u(){return i("payroll_modification",{mod_type:"crew_member"})}return u}()})})]}),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Box,{mb:.5,children:["Next Payroll in: ",d," Minutes"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",width:"auto",color:"bad",content:"Delay Payroll",onClick:function(){function u(){return i("delay_payroll")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{width:"auto",content:"Set Payroll Time",onClick:function(){function u(){return i("set_payroll")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",width:"auto",color:"good",content:"Accelerate Payroll",onClick:function(){function u(){return i("accelerate_payroll")}return u}()})]}),(0,e.createComponentVNode)(2,t.NoticeBox,{children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," You take full responsibility for unbalancing the economy with these buttons!"]})],4)}},82565:function(T,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.Electropack=function(){function y(S,k){var h=(0,t.useBackend)(k),c=h.act,i=h.data,m=i.power,d=i.code,u=i.frequency,s=i.minFrequency,l=i.maxFrequency;return(0,e.createComponentVNode)(2,f.Window,{width:360,height:135,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,o.Button,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,onClick:function(){function v(){return c("power")}return v}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function v(){return c("reset",{reset:"freq"})}return v}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:s/10,maxValue:l/10,value:u/10,format:function(){function v(N){return(0,a.toFixed)(N,1)}return v}(),width:"80px",onChange:function(){function v(N,C){return c("freq",{freq:C})}return v}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function v(){return c("reset",{reset:"code"})}return v}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:d,width:"80px",onChange:function(){function v(N,C){return c("code",{code:C})}return v}()})})]})})})})}return y}()},11243:function(T,r,n){"use strict";r.__esModule=!0,r.Emojipedia=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(98595),b=r.Emojipedia=function(){function S(k,h){var c=(0,t.useBackend)(h),i=c.data,m=i.emoji_list,d=(0,t.useLocalState)(h,"searchText",""),u=d[0],s=d[1],l=m.filter(function(v){return v.name.toLowerCase().includes(u.toLowerCase())});return(0,e.createComponentVNode)(2,f.Window,{width:325,height:400,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Emojipedia v1.0.1",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by name",value:u,onInput:function(){function v(N,C){return s(C)}return v}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Click on an emoji to copy its tag!",tooltipPosition:"bottom",icon:"circle-question"})],4),children:l.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{m:1,color:"transparent",className:(0,a.classes)(["emoji16x16","emoji-"+v.name]),style:{transform:"scale(1.5)"},tooltip:v.name,onClick:function(){function N(){y(v.name)}return N}()},v.name)})})})})}return S}(),y=function(k){var h=document.createElement("input"),c=":"+k+":";h.value=c,document.body.appendChild(h),h.select(),document.execCommand("copy"),document.body.removeChild(h)}},36730:function(T,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=n(64795),y=n(88510),S=r.EvolutionMenu=function(){function c(i,m){return(0,e.createComponentVNode)(2,f.Window,{width:480,height:580,theme:"changeling",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,h)]})})})}return c}(),k=function(i,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,l=s.evo_points,v=s.can_respec;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Evolution Points",height:5.5,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:l}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{ml:2.5,disabled:!v,content:"Readapt",icon:"sync",onClick:function(){function N(){return u("readapt")}return N}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})})},h=function(i,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,l=s.evo_points,v=s.ability_tabs,N=s.purchased_abilities,C=s.view_mode,p=(0,t.useLocalState)(m,"selectedTab",v[0]),g=p[0],V=p[1],B=(0,t.useLocalState)(m,"searchText",""),I=B[0],L=B[1],w=(0,t.useLocalState)(m,"ability_tabs",v[0].abilities),x=w[0],A=w[1],E=function(R,D){if(D===void 0&&(D=""),!R||R.length===0)return[];var W=(0,a.createSearch)(D,function(_){return _.name+"|"+_.description});return(0,b.flow)([(0,y.filter)(function(_){return _==null?void 0:_.name}),(0,y.filter)(W),(0,y.sortBy)(function(_){return _==null?void 0:_.name})])(R)},P=function(R){if(L(R),R==="")return A(g.abilities);A(E(v.map(function(D){return D.abilities}).flat(),R))},j=function(R){V(R),A(R.abilities),L("")};return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Abilities",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{width:"200px",placeholder:"Search Abilities",onInput:function(){function M(R,D){P(D)}return M}(),value:I}),(0,e.createComponentVNode)(2,o.Button,{icon:C?"square-o":"check-square-o",selected:!C,content:"Compact",onClick:function(){function M(){return u("set_view_mode",{mode:0})}return M}()}),(0,e.createComponentVNode)(2,o.Button,{icon:C?"check-square-o":"square-o",selected:C,content:"Expanded",onClick:function(){function M(){return u("set_view_mode",{mode:1})}return M}()})],4),children:[(0,e.createComponentVNode)(2,o.Tabs,{children:v.map(function(M){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===""&&g===M,onClick:function(){function R(){j(M)}return R}(),children:M.category},M)})}),x.map(function(M,R){return(0,e.createComponentVNode)(2,o.Box,{p:.5,mx:-1,className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{ml:.5,color:"#dedede",children:M.name}),N.includes(M.power_path)&&(0,e.createComponentVNode)(2,o.Stack.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mr:3,textAlign:"right",grow:1,children:[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:["Cost:"," "]}),(0,e.createComponentVNode)(2,o.Box,{as:"span",bold:!0,color:"#1b945c",children:M.cost})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,o.Button,{mr:.5,disabled:M.cost>l||N.includes(M.power_path),content:"Evolve",onClick:function(){function D(){return u("purchase",{power_path:M.power_path})}return D}()})})]}),!!C&&(0,e.createComponentVNode)(2,o.Stack,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:M.description+" "+M.helptext})]},R)})]})})}},17370:function(T,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(89005),a=n(35840),t=n(25328),o=n(72253),f=n(36036),b=n(73379),y=n(98595),S=["id","amount","lineDisplay","onClick"];function k(p,g){if(p==null)return{};var V={};for(var B in p)if({}.hasOwnProperty.call(p,B)){if(g.includes(B))continue;V[B]=p[B]}return V}var h=2e3,c={bananium:"clown",tranquillite:"mime"},i=r.ExosuitFabricator=function(){function p(g,V){var B=(0,o.useBackend)(V),I=B.act,L=B.data,w=L.building,x=L.linked;return x?(0,e.createComponentVNode)(2,y.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,y.Window.Content,{className:"Exofab",children:[(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,d)}),w&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,u)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s)})]})})]})]})}):(0,e.createComponentVNode)(2,N)}return p}(),m=function(g,V){var B=(0,o.useBackend)(V),I=B.act,L=B.data,w=L.materials,x=L.capacity,A=Object.values(w).reduce(function(E,P){return E+P},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,f.Box,{color:"label",mt:"0.25rem",children:[(A/x*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(E){return(0,e.createComponentVNode)(2,l,{mt:-2,id:E,bold:E==="metal"||E==="glass",onClick:function(){function P(){return I("withdraw",{id:E})}return P}()},E)})})},d=function(g,V){var B=(0,o.useBackend)(V),I=B.act,L=B.data,w=L.curCategory,x=L.categories,A=L.designs,E=L.syncing,P=(0,o.useLocalState)(V,"searchText",""),j=P[0],M=P[1],R=(0,t.createSearch)(j,function(K){return K.name}),D=A.filter(R),W=(0,o.useLocalState)(V,"levelsModal",!1),_=W[0],U=W[1];return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,f.Dropdown,{className:"Exofab__dropdown",selected:w,options:x,onSelected:function(){function K(G){return I("category",{cat:G})}return K}()}),buttons:(0,e.createComponentVNode)(2,f.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,f.Button,{icon:"plus",content:"Queue all",onClick:function(){function K(){return I("queueall")}return K}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"info",content:"Show current tech levels",onClick:function(){function K(){return U(!0)}return K}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"unlink",color:"red",tooltip:"Disconnect from R&D network",onClick:function(){function K(){return I("unlink")}return K}()})]}),children:[(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function K(G,$){return M($)}return K}()}),D.map(function(K){return(0,e.createComponentVNode)(2,v,{design:K},K.id)}),D.length===0&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No designs found."})]})},u=function(g,V){var B=(0,o.useBackend)(V),I=B.act,L=B.data,w=L.building,x=L.buildStart,A=L.buildEnd,E=L.worldTime;return(0,e.createComponentVNode)(2,f.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,f.ProgressBar.Countdown,{start:x,current:E,end:A,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:["Building ",w,"\xA0(",(0,e.createComponentVNode)(2,b.Countdown,{current:E,timeLeft:A-E,format:function(){function P(j,M){return M.substr(3)}return P}()}),")"]})]})})})},s=function(g,V){var B=(0,o.useBackend)(V),I=B.act,L=B.data,w=L.queue,x=L.processingQueue,A=Object.entries(L.queueDeficit).filter(function(P){return P[1]<0}),E=w.reduce(function(P,j){return P+j.time},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Button,{selected:x,icon:x?"toggle-on":"toggle-off",content:"Process",onClick:function(){function P(){return I("process")}return P}()}),(0,e.createComponentVNode)(2,f.Button,{disabled:w.length===0,icon:"eraser",content:"Clear",onClick:function(){function P(){return I("unqueueall")}return P}()})]}),children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:w.length===0?(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:w.map(function(P,j){return(0,e.createComponentVNode)(2,f.Box,{color:P.notEnough&&"bad",children:[j+1,". ",P.name,j>0&&(0,e.createComponentVNode)(2,f.Button,{icon:"arrow-up",onClick:function(){function M(){return I("queueswap",{from:j+1,to:j})}return M}()}),j0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,f.Divider),"Processing time:",(0,e.createComponentVNode)(2,f.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,bold:!0,children:new Date(E/10*1e3).toISOString().substr(14,5)})]}),Object.keys(A).length>0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,f.Divider),"Lacking materials to complete:",A.map(function(P){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,l,{id:P[0],amount:-P[1],lineDisplay:!0})},P[0])})]})],0)})})},l=function(g,V){var B=(0,o.useBackend)(V),I=B.act,L=B.data,w=g.id,x=g.amount,A=g.lineDisplay,E=g.onClick,P=k(g,S),j=L.materials[w]||0,M=x||j;if(!(M<=0&&!(w==="metal"||w==="glass"))){var R=x&&x>j;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",A&&"Exofab__material--line"])},P,{children:A?(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:(0,a.classes)(["materials32x32",w])}),(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__material--amount",color:R&&"bad",ml:0,mr:1,children:M.toLocaleString("en-US")})],4):(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{basis:"content",children:(0,e.createComponentVNode)(2,f.Button,{width:"85%",color:"transparent",onClick:E,children:(0,e.createComponentVNode)(2,f.Box,{mt:1,className:(0,a.classes)(["materials32x32",w])})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--name",children:w}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--amount",children:[M.toLocaleString("en-US")," cm\xB3 (",Math.round(M/h*10)/10," ","sheets)"]})]})],4)})))}},v=function(g,V){var B=(0,o.useBackend)(V),I=B.act,L=B.data,w=g.design;return(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,f.Button,{disabled:w.notEnough||L.building,icon:"cog",content:w.name,onClick:function(){function x(){return I("build",{id:w.id})}return x}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"plus-circle",onClick:function(){function x(){return I("queue",{id:w.id})}return x}()}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design--cost",children:Object.entries(w.cost).map(function(x){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,l,{id:x[0],amount:x[1],lineDisplay:!0})},x[0])})}),(0,e.createComponentVNode)(2,f.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"clock"}),w.time>0?(0,e.createFragment)([w.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})},N=function(g,V){var B=(0,o.useBackend)(V),I=B.act,L=B.data,w=L.controllers;return(0,e.createComponentVNode)(2,y.Window,{children:(0,e.createComponentVNode)(2,y.Window.Content,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Setup Linkage",children:(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Link"})]}),w.map(function(x){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:x.addr}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:x.net_id}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:(0,e.createComponentVNode)(2,f.Button,{content:"Link",icon:"link",onClick:function(){function A(){return I("linktonetworkcontroller",{target_controller:x.addr})}return A}()})})]},x.addr)})]})})})})},C=function(g,V){var B=(0,o.useBackend)(V),I=B.act,L=B.data,w=L.tech_levels,x=(0,o.useLocalState)(V,"levelsModal",!1),A=x[0],E=x[1];return A?(0,e.createComponentVNode)(2,f.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:(0,e.createComponentVNode)(2,f.Section,{title:"Current tech levels",buttons:(0,e.createComponentVNode)(2,f.Button,{content:"Close",onClick:function(){function P(){E(!1)}return P}()}),children:(0,e.createComponentVNode)(2,f.LabeledList,{children:w.map(function(P){var j=P.name,M=P.level;return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:j,children:M},j)})})})}):null}},59128:function(T,r,n){"use strict";r.__esModule=!0,r.ExperimentConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=new Map([[0,{text:"Conscious",color:"good"}],[1,{text:"Unconscious",color:"average"}],[2,{text:"Deceased",color:"bad"}]]),b=new Map([[0,{label:"Probe",icon:"thermometer"}],[1,{label:"Dissect",icon:"brain"}],[2,{label:"Analyze",icon:"search"}]]),y=r.ExperimentConsole=function(){function S(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.open,u=m.feedback,s=m.occupant,l=m.occupant_name,v=m.occupant_status,N=function(){function p(){if(!s)return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No specimen detected."});var g=function(){function B(){return f.get(v)}return B}(),V=g();return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:V.color,children:V.text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Experiments",children:[0,1,2].map(function(B){return(0,e.createComponentVNode)(2,t.Button,{icon:b.get(B).icon,content:b.get(B).label,onClick:function(){function I(){return i("experiment",{experiment_type:B})}return I}()},B)})})]})}return p}(),C=N();return(0,e.createComponentVNode)(2,o.Window,{theme:"abductor",width:350,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:u})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Scanner",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!d,onClick:function(){function p(){return i("door")}return p}()}),children:C})]})})}return S}()},97086:function(T,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=0,b=1013,y=function(h){var c="good",i=80,m=95,d=110,u=120;return hd?c="average":h>u&&(c="bad"),c},S=r.ExternalAirlockController=function(){function k(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.chamber_pressure,s=d.exterior_status,l=d.interior_status,v=d.processing;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:205,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chamber Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:y(u),value:u,minValue:f,maxValue:b,children:[u," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!v,onClick:function(){function N(){return m("abort")}return N}()}),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:v,onClick:function(){function N(){return m("cycle_ext")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:v,onClick:function(){function N(){return m("cycle_int")}return N}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Force Exterior Door",icon:"exclamation-triangle",color:l==="open"?"red":v?"yellow":null,onClick:function(){function N(){return m("force_ext")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Force Interior Door",icon:"exclamation-triangle",color:l==="open"?"red":v?"yellow":null,onClick:function(){function N(){return m("force_int")}return N}()})]})]})]})})}return k}()},96142:function(T,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.FaxMachine=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:295,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.scan_name?"eject":"id-card",selected:c.scan_name,content:c.scan_name?c.scan_name:"-----",tooltip:c.scan_name?"Eject ID":"Insert ID",onClick:function(){function i(){return h("scan")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.authenticated?"sign-out-alt":"id-card",selected:c.authenticated,disabled:c.nologin,content:c.realauth?"Log Out":"Log In",onClick:function(){function i(){return h("auth")}return i}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fax Menu",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:c.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:c.paper?"eject":"paperclip",disabled:!c.authenticated&&!c.paper,content:c.paper?c.paper:"-----",onClick:function(){function i(){return h("paper")}return i}()}),!!c.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function i(){return h("rename")}return i}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:c.destination?c.destination:"-----",disabled:!c.authenticated,onClick:function(){function i(){return h("dept")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:c.sendError?c.sendError:"Send",disabled:!c.paper||!c.destination||!c.authenticated||c.sendError,onClick:function(){function i(){return h("send")}return i}()})})]})})]})})}return b}()},74123:function(T,r,n){"use strict";r.__esModule=!0,r.FilingCabinet=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.FilingCabinet=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=k.config,m=c.contents,d=i.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Contents",children:[!m&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"folder-open",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"The ",d," is empty."]})}),!!m&&m.slice().map(function(u){return(0,e.createComponentVNode)(2,t.Stack,{mt:.5,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"80%",children:u.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Retrieve",onClick:function(){function s(){return h("retrieve",{index:u.index})}return s}()})})]},u)})]})})})})}return b}()},83767:function(T,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=S.image,d=S.isSelected,u=S.onSelect;return(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+m,style:{"border-style":d&&"solid"||"none","border-width":"2px","border-color":"orange",padding:d&&"2px"||"4px"},onClick:u})},b=r.FloorPainter=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.availableStyles,d=i.selectedStyle,u=i.selectedDir,s=i.directionsPreview,l=i.allStylesPreview;return(0,e.createComponentVNode)(2,o.Window,{width:405,height:475,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Decal setup",children:[(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",onClick:function(){function v(){return c("cycle_style",{offset:-1})}return v}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:m,selected:d,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:!0,onSelected:function(){function v(N){return c("select_style",{style:N})}return v}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function v(){return c("cycle_style",{offset:1})}return v}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"220px",wrap:"wrap",children:m.map(function(v){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,f,{image:l[v],isSelected:d===v,onSelect:function(){function N(){return c("select_style",{style:v})}return N}()})},"{style}")})})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Direction",children:(0,e.createComponentVNode)(2,t.Table,{style:{display:"inline"},children:["north","","south"].map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[v+"west",v,v+"east"].map(function(N){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:N===""?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,f,{image:s[N],isSelected:N===u,onSelect:function(){function C(){return c("select_direction",{direction:N})}return C}()})},N)})},v)})})})})]})})})}return y}()},53424:function(T,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=function(d){return d?"("+d.join(", ")+")":"ERROR"},y=function(d,u){if(!(!d||!u)){if(d[2]!==u[2])return null;var s=Math.atan2(u[1]-d[1],u[0]-d[0]),l=Math.sqrt(Math.pow(u[1]-d[1],2)+Math.pow(u[0]-d[0],2));return{angle:(0,a.rad2deg)(s),distance:l}}},S=r.GPS=function(){function m(d,u){var s=(0,t.useBackend)(u),l=s.data,v=l.emped,N=l.active,C=l.area,p=l.position,g=l.saved;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:v?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,k,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h)}),N?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,c,{area:C,position:p})}),g&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,c,{title:"Saved Position",position:g})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,i,{height:"100%"})})],0):(0,e.createComponentVNode)(2,k)],0)})})})}return m}(),k=function(d,u){var s=d.emp;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Box,{width:"100%",height:"100%",color:"label",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:s?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),s?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},h=function(d,u){var s=(0,t.useBackend)(u),l=s.act,v=s.data,N=v.active,C=v.tag,p=v.same_z,g=(0,t.useLocalState)(u,"newTag",C),V=g[0],B=g[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",buttons:(0,e.createComponentVNode)(2,o.Button,{selected:N,icon:N?"toggle-on":"toggle-off",content:N?"On":"Off",onClick:function(){function I(){return l("toggle")}return I}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,o.Input,{width:"5rem",value:C,onEnter:function(){function I(){return l("tag",{newtag:V})}return I}(),onInput:function(){function I(L,w){return B(w)}return I}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:C===V,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function I(){return l("tag",{newtag:V})}return I}(),children:(0,e.createComponentVNode)(2,o.Icon,{name:"pen"})})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,o.Button,{selected:!p,icon:p?"compress":"expand",content:p?"Local Sector":"Global",onClick:function(){function I(){return l("same_z")}return I}()})})]})})},c=function(d,u){var s=d.title,l=d.area,v=d.position;return(0,e.createComponentVNode)(2,o.Section,{title:s||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[l&&(0,e.createFragment)([l,(0,e.createVNode)(1,"br")],0),b(v)]})})},i=function(d,u){var s=(0,t.useBackend)(u),l=s.data,v=l.position,N=l.signals;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,title:"Signals"},d,{children:(0,e.createComponentVNode)(2,o.Table,{children:N.map(function(C){return Object.assign({},C,y(v,C.position))}).map(function(C,p){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:p%2===0&&"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children:C.tag}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",color:"grey",children:C.area}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:C.distance!==void 0&&(0,e.createComponentVNode)(2,o.Box,{opacity:Math.max(1-Math.min(C.distance,100)/100,.5),children:[(0,e.createComponentVNode)(2,o.Icon,{name:C.distance>0?"arrow-right":"circle",rotation:-C.angle}),"\xA0",Math.floor(C.distance)+"m"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:b(C.position)})]},p)})})})))}},89124:function(T,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(3939),f=n(98595),b=r.GeneModder=function(){function u(s,l){var v=(0,a.useBackend)(l),N=v.data,C=N.has_seed;return(0,e.createComponentVNode)(2,f.Window,{width:950,height:650,children:[(0,e.createVNode)(1,"div","GeneModder__left",(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,d,{scrollable:!0})}),2),(0,e.createVNode)(1,"div","GeneModder__right",(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,o.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),C===0?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,y)]})}),2)]})}return u}(),y=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Genes",fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)]})},S=function(s,l){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,height:"85%",children:(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"green",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The plant DNA manipulator is missing a seed."]})})})},k=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.has_seed,g=C.seed,V=C.has_disk,B=C.disk,I,L;return p?I=(0,e.createComponentVNode)(2,t.Stack.Item,{mb:"-6px",mt:"-4px",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+g.image,style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,t.Button,{content:g.name,onClick:function(){function w(){return N("eject_seed")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function w(){return N("variant_name")}return w}()})]}):I=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:"None",onClick:function(){function w(){return N("eject_seed")}return w}()})}),V?L=B.name:L="None",(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plant Sample",children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Disk",children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:L,tooltip:"Select Empty Disk",onClick:function(){function w(){return N("select_empty_disk")}return w}()})})})]})})},h=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.disk,g=C.core_genes;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core Genes",open:!0,children:[g.map(function(V){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:V.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(p!=null&&p.can_extract),icon:"save",onClick:function(){function B(){return N("extract",{id:V.id})}return B}()})})]},V)})," ",(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract All",disabled:!(p!=null&&p.can_extract),icon:"save",onClick:function(){function V(){return N("bulk_extract_core")}return V}()})})})]},"Core Genes")},c=function(s,l){var v=(0,a.useBackend)(l),N=v.data,C=N.reagent_genes,p=N.has_reagent;return(0,e.createComponentVNode)(2,m,{title:"Reagent Genes",gene_set:C,do_we_show:p})},i=function(s,l){var v=(0,a.useBackend)(l),N=v.data,C=N.trait_genes,p=N.has_trait;return(0,e.createComponentVNode)(2,m,{title:"Trait Genes",gene_set:C,do_we_show:p})},m=function(s,l){var v=s.title,N=s.gene_set,C=s.do_we_show,p=(0,a.useBackend)(l),g=p.act,V=p.data,B=V.disk;return(0,e.createComponentVNode)(2,t.Collapsible,{title:v,open:!0,children:C?N.map(function(I){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:I.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(B!=null&&B.can_extract),icon:"save",onClick:function(){function L(){return g("extract",{id:I.id})}return L}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"times",onClick:function(){function L(){return g("remove",{id:I.id})}return L}()})})]},I)}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"No Genes Detected"})},v)},d=function(s,l){var v=s.title,N=s.gene_set,C=s.do_we_show,p=(0,a.useBackend)(l),g=p.act,V=p.data,B=V.has_seed,I=V.empty_disks,L=V.stat_disks,w=V.trait_disks,x=V.reagent_disks;return(0,e.createComponentVNode)(2,t.Section,{title:"Disks",children:[(0,e.createVNode)(1,"br"),"Empty Disks: ",I,(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{width:12,icon:"arrow-down",tooltip:"Eject an Empty disk",content:"Eject Empty Disk",onClick:function(){function A(){return g("eject_empty_disk")}return A}()}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stats",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[L.slice().sort(function(A,E){return A.display_name.localeCompare(E.display_name)}).map(function(A){return(0,e.createComponentVNode)(2,t.Stack,{mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"49%",children:A.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:25,children:[A.stat==="All"?(0,e.createComponentVNode)(2,t.Button,{content:"Replace All",tooltip:"Write disk stats to seed",disabled:!(A!=null&&A.ready)||!B,icon:"arrow-circle-down",onClick:function(){function E(){return g("bulk_replace_core",{index:A.index})}return E}()}):(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-circle-down",tooltip:"Write disk stat to seed",disabled:!A||!B,content:"Replace",onClick:function(){function E(){return g("replace",{index:A.index,stat:A.stat})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){function E(){return g("select",{index:A.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){function E(){return g("eject_disk",{index:A.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:2,icon:A.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){function E(){return g("set_read_only",{index:A.index,read_only:A.read_only})}return E}()})]})]},A)}),(0,e.createComponentVNode)(2,t.Button)]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Traits",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[w.slice().sort(function(A,E){return A.display_name.localeCompare(E.display_name)}).map(function(A){return(0,e.createComponentVNode)(2,t.Stack,{mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"49%",children:A.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:25,children:[(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-circle-down",disabled:!A||!A.can_insert,tooltip:"Add disk trait to seed",content:"Insert",onClick:function(){function E(){return g("insert",{index:A.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){function E(){return g("select",{index:A.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){function E(){return g("eject_disk",{index:A.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:2,icon:A.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){function E(){return g("set_read_only",{index:A.index,read_only:A.read_only})}return E}()})]})]},A)}),(0,e.createComponentVNode)(2,t.Button)]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Reagents",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[x.slice().sort(function(A,E){return A.display_name.localeCompare(E.display_name)}).map(function(A){return(0,e.createComponentVNode)(2,t.Stack,{mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"49%",children:A.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:25,children:[(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-circle-down",disabled:!A||!A.can_insert,tooltip:"Add disk reagent to seed",content:"Insert",onClick:function(){function E(){return g("insert",{index:A.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){function E(){return g("select",{index:A.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){function E(){return g("eject_disk",{index:A.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:2,icon:A.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){function E(){return g("set_read_only",{index:A.index,read_only:A.read_only})}return E}()})]})]},A)}),(0,e.createComponentVNode)(2,t.Button)]})})]})]})}},73053:function(T,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(89005),a=n(36036),t=n(98595),o=n(41874),f=r.GenericCrewManifest=function(){function b(y,S){return(0,e.createComponentVNode)(2,t.Window,{theme:"nologo",width:588,height:510,children:(0,e.createComponentVNode)(2,t.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:(0,e.createComponentVNode)(2,o.CrewManifest)})})})}return b}()},42914:function(T,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.GhostHudPanel=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.data,i=c.security,m=c.medical,d=c.diagnostic,u=c.radioactivity,s=c.ahud;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:207,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,b,{label:"Medical",type:"medical",is_active:m}),(0,e.createComponentVNode)(2,b,{label:"Security",type:"security",is_active:i}),(0,e.createComponentVNode)(2,b,{label:"Diagnostic",type:"diagnostic",is_active:d}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,b,{label:"Radioactivity",type:"radioactivity",is_active:u,act_on:"rads_on",act_off:"rads_off"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,b,{label:"Antag HUD",is_active:s,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return y}(),b=function(S,k){var h=(0,a.useBackend)(k),c=h.act,i=S.label,m=S.type,d=m===void 0?null:m,u=S.is_active,s=S.act_on,l=s===void 0?"hud_on":s,v=S.act_off,N=v===void 0?"hud_off":v;return(0,e.createComponentVNode)(2,t.Flex,{pt:.3,color:"label",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{pl:.5,align:"center",width:"80%",children:i}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:.6,content:u?"On":"Off",icon:u?"toggle-on":"toggle-off",selected:u,onClick:function(){function C(){return c(u?N:l,{hud_type:d})}return C}()})})]})}},25825:function(T,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.GlandDispenser=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.glands,m=i===void 0?[]:i;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:338,theme:"abductor",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(d){return(0,e.createComponentVNode)(2,t.Button,{width:"60px",height:"60px",m:.75,textAlign:"center",fontSize:"17px",lineHeight:"55px",icon:"eject",backgroundColor:d.color,content:d.amount||"0",disabled:!d.amount,onClick:function(){function u(){return h("dispense",{gland_id:d.id})}return u}()},d.id)})})})})}return b}()},10270:function(T,r,n){"use strict";r.__esModule=!0,r.GravityGen=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.GravityGen=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.charging_state,m=c.charge_count,d=c.breaker,u=c.ext_power,s=function(){function v(N){return N>0?(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"average",children:["[ ",N===1?"Charging":"Discharging"," ]"]}):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:u?"good":"bad",children:["[ ",u?"Powered":"Unpowered"," ]"]})}return v}(),l=function(){function v(N){if(N>0)return(0,e.createComponentVNode)(2,t.NoticeBox,{danger:!0,p:1.5,children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," Radiation Detected!"]})}return v}();return(0,e.createComponentVNode)(2,o.Window,{width:350,height:170,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[l(i),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Generator Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"Online":"Offline",color:d?"green":"red",px:1.5,onClick:function(){function v(){return h("breaker")}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Status",color:u?"good":"bad",children:s(i)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gravity Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:m/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})})]})})]})})})}return b}()},48657:function(T,r,n){"use strict";r.__esModule=!0,r.GuestPass=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(49148),b=r.GuestPass=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:690,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"id-card",selected:!i.showlogs,onClick:function(){function m(){return c("mode",{mode:0})}return m}(),children:"Issue Pass"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"scroll",selected:i.showlogs,onClick:function(){function m(){return c("mode",{mode:1})}return m}(),children:["Records (",i.issue_log.length,")"]})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.scan_name?"eject":"id-card",selected:i.scan_name,content:i.scan_name?i.scan_name:"-----",tooltip:i.scan_name?"Eject ID":"Insert ID",onClick:function(){function m(){return c("scan")}return m}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!i.showlogs&&(0,e.createComponentVNode)(2,t.Section,{title:"Issue Guest Pass",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Issue To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:i.giv_name?i.giv_name:"-----",disabled:!i.scan_name,onClick:function(){function m(){return c("giv_name")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reason",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:i.reason?i.reason:"-----",disabled:!i.scan_name,onClick:function(){function m(){return c("reason")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:i.duration?i.duration:"-----",disabled:!i.scan_name,onClick:function(){function m(){return c("duration")}return m}()})})]})})}),!i.showlogs&&(i.scan_name?(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:i.printmsg,disabled:!i.canprint,onClick:function(){function m(){return c("issue")}return m}()}),grantableList:i.grantableList,accesses:i.regions,selectedList:i.selectedAccess,accessMod:function(){function m(d){return c("access",{access:d})}return m}(),grantAll:function(){function m(){return c("grant_all")}return m}(),denyAll:function(){function m(){return c("clear_all")}return m}(),grantDep:function(){function m(d){return c("grant_region",{region:d})}return m}(),denyDep:function(){function m(d){return c("deny_region",{region:d})}return m}()})}):(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card",size:5,color:"gray",mb:5}),(0,e.createVNode)(1,"br"),"Please, insert ID Card"]})})})})),!!i.showlogs&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Issuance Log",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:!i.scan_name,onClick:function(){function m(){return c("print")}return m}()}),children:!!i.issue_log.length&&(0,e.createComponentVNode)(2,t.LabeledList,{children:i.issue_log.map(function(m,d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:m},d)})})||(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No logs"]})})})})]})})})}return y}()},67834:function(T,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=[1,5,10,20,30,50],b=null,y=r.HandheldChemDispenser=function(){function h(c,i){return(0,e.createComponentVNode)(2,o.Window,{width:390,height:430,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,k)]})})})}return h}(),S=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.amount,l=u.energy,v=u.maxEnergy,N=u.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l,minValue:0,maxValue:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[l," / ",v," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:f.map(function(C,p){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:s===C,content:C,onClick:function(){function g(){return d("amount",{amount:C})}return g}()})},p)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:N==="dispense",content:"Dispense",m:"0",width:"32%",onClick:function(){function C(){return d("mode",{mode:"dispense"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:N==="remove",content:"Remove",m:"0",width:"32%",onClick:function(){function C(){return d("mode",{mode:"remove"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:N==="isolate",content:"Isolate",m:"0",width:"32%",onClick:function(){function C(){return d("mode",{mode:"isolate"})}return C}()})]})})]})})})},k=function(c,i){for(var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.chemicals,l=s===void 0?[]:s,v=u.current_reagent,N=[],C=0;C<(l.length+1)%3;C++)N.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,height:"18%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:u.glass?"Drink Selector":"Chemical Selector",children:[l.map(function(p,g){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:v===p.id,content:p.title,style:{"margin-left":"2px"},onClick:function(){function V(){return d("dispense",{reagent:p.id})}return V}()},g)}),N.map(function(p,g){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},g)})]})})}},46098:function(T,r,n){"use strict";r.__esModule=!0,r.HealthSensor=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.HealthSensor=function(){function S(k,h){var c=(0,t.useBackend)(h),i=c.act,m=c.data,d=m.on,u=m.user_health,s=m.minHealth,l=m.maxHealth,v=m.alarm_health;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:125,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanning",children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:d?"On":"Off",color:d?null:"red",selected:d,onClick:function(){function N(){return i("scan_toggle")}return N}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health activation",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:2,stepPixelSize:6,minValue:s,maxValue:l,value:v,format:function(){function N(C){return(0,a.toFixed)(C,1)}return N}(),width:"80px",onDrag:function(){function N(C,p){return i("alarm_health",{alarm_health:p})}return N}()})}),u!==null&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"User health",children:(0,e.createComponentVNode)(2,o.Box,{color:y(u),bold:u>=100,children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:u})})})]})})})})}return S}(),y=function(k){return k>50?"green":k>0?"orange":"red"}},36771:function(T,r,n){"use strict";r.__esModule=!0,r.Holodeck=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Holodeck=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=(0,a.useLocalState)(k,"currentDeck",""),d=m[0],u=m[1],s=(0,a.useLocalState)(k,"showReload",!1),l=s[0],v=s[1],N=i.decks,C=i.ai_override,p=i.emagged,g=function(){function V(B){c("select_deck",{deck:B}),u(B),v(!0),setTimeout(function(){v(!1)},3e3)}return V}();return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:[l&&(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Holodeck Control System",children:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"b",null,"Currently Loaded Program:",16)," ",d]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Available Programs",children:[N.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{width:15.5,color:"transparent",content:V,selected:V===d,onClick:function(){function B(){return g(V)}return B}()},V)}),(0,e.createVNode)(1,"hr",null,null,1,{color:"gray"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!C&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Override Protocols",children:(0,e.createComponentVNode)(2,t.Button,{content:p?"Turn On":"Turn Off",color:p?"good":"bad",onClick:function(){function V(){return c("ai_override")}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety Protocols",children:(0,e.createComponentVNode)(2,t.Box,{color:p?"bad":"good",children:[p?"Off":"On",!!p&&(0,e.createComponentVNode)(2,t.Button,{ml:9.5,width:15.5,color:"red",content:"Wildlife Simulation",onClick:function(){function V(){return c("wildlifecarp")}return V}()})]})})]})]})})]})})]})}return y}(),b=function(S,k){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"white",children:(0,e.createVNode)(1,"h1",null,"\xA0Recalibrating projection apparatus.\xA0",16)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,"Please, wait for 3 seconds.",16)})]})}},25471:function(T,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.Instrument=function(){function c(i,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,h)]})})]})}return c}(),y=function(i,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,l=s.help;if(l)return(0,e.createComponentVNode)(2,o.Modal,{maxWidth:"75%",height:window.innerHeight*.75+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{height:"100%",title:"Help",level:"2",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{px:"0.5rem",mt:"-0.5rem",children:[(0,e.createVNode)(1,"h1",null,"Making a Song",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen: "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen: "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"h1",null,"Instrument Advanced Settings",16),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Type:"}),(0,e.createTextVNode)("\xA0Whether the instrument is legacy or synthesized."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Legacy instruments have a collection of sounds that are selectively used depending on the note to play."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Synthesized instruments use a base sound and change its pitch to match the note to play.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Current:"}),(0,e.createTextVNode)("\xA0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),(0,e.createTextVNode)("\xA0The pitch to apply to all notes of the song.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain Mode:"}),(0,e.createTextVNode)("\xA0How a played note fades out."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Linear sustain means a note will fade out at a constant rate."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Exponential sustain means a note will fade out at an exponential rate, sounding smoother.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),(0,e.createTextVNode)("\xA0The volume threshold at which a note is fully stopped.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),(0,e.createTextVNode)("\xA0Whether the last note should be sustained indefinitely.")],4)],4),(0,e.createComponentVNode)(2,o.Button,{color:"grey",content:"Close",onClick:function(){function v(){return u("help")}return v}()})]})})})},S=function(i,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,l=s.lines,v=s.playing,N=s.repeat,C=s.maxRepeats,p=s.tempo,g=s.minTempo,V=s.maxTempo,B=s.tickLag,I=s.volume,L=s.minVolume,w=s.maxVolume,x=s.ready;return(0,e.createComponentVNode)(2,o.Section,{title:"Instrument",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"info",content:"Help",onClick:function(){function A(){return u("help")}return A}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function A(){return u("newsong")}return A}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function A(){return u("import")}return A}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Playback",children:[(0,e.createComponentVNode)(2,o.Button,{selected:v,disabled:l.length===0||N<0,icon:"play",content:"Play",onClick:function(){function A(){return u("play")}return A}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!v,icon:"stop",content:"Stop",onClick:function(){function A(){return u("stop")}return A}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:C,value:N,stepPixelSize:59,onChange:function(){function A(E,P){return u("repeat",{new:P})}return A}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tempo",children:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:p>=V,content:"-",as:"span",mr:"0.5rem",onClick:function(){function A(){return u("tempo",{new:p+B})}return A}()}),(0,a.round)(600/p)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:p<=g,content:"+",as:"span",ml:"0.5rem",onClick:function(){function A(){return u("tempo",{new:p-B})}return A}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:L,maxValue:w,value:I,stepPixelSize:6,onDrag:function(){function A(E,P){return u("setvolume",{new:P})}return A}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:x?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Ready"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,e.createComponentVNode)(2,k)]})},k=function(i,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,l=s.allowedInstrumentNames,v=s.instrumentLoaded,N=s.instrument,C=s.canNoteShift,p=s.noteShift,g=s.noteShiftMin,V=s.noteShiftMax,B=s.sustainMode,I=s.sustainLinearDuration,L=s.sustainExponentialDropoff,w=s.legacy,x=s.sustainDropoffVolume,A=s.sustainHeldNote,E,P;return B===1?(E="Linear",P=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:I,step:.5,stepPixelSize:85,format:function(){function j(M){return(0,a.round)(M*100)/100+" seconds"}return j}(),onChange:function(){function j(M,R){return u("setlinearfalloff",{new:R/10})}return j}()})):B===2&&(E="Exponential",P=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:L,step:.01,format:function(){function j(M){return(0,a.round)(M*1e3)/1e3+"% per decisecond"}return j}(),onChange:function(){function j(M,R){return u("setexpfalloff",{new:R})}return j}()})),l.sort(),(0,e.createComponentVNode)(2,o.Box,{my:-1,children:(0,e.createComponentVNode)(2,o.Collapsible,{mt:"1rem",mb:"0",title:"Advanced",children:(0,e.createComponentVNode)(2,o.Section,{mt:-1,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:w?"Legacy":"Synthesized"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current",children:v?(0,e.createComponentVNode)(2,o.Dropdown,{options:l,selected:N,width:"50%",onSelected:function(){function j(M){return u("switchinstrument",{name:M})}return j}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!w&&C)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:g,maxValue:V,value:p,stepPixelSize:2,format:function(){function j(M){return M+" keys / "+(0,a.round)(M/12*100)/100+" octaves"}return j}(),onChange:function(){function j(M,R){return u("setnoteshift",{new:R})}return j}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:E,onSelected:function(){function j(M){return u("setsustainmode",{new:M})}return j}()}),P]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume Dropoff Threshold",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:.01,maxValue:100,value:x,stepPixelSize:6,onChange:function(){function j(M,R){return u("setdropoffvolume",{new:R})}return j}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,e.createComponentVNode)(2,o.Button,{selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Yes":"No",onClick:function(){function j(){return u("togglesustainhold")}return j}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function j(){return u("reset")}return j}()})]})})})},h=function(i,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,l=s.playing,v=s.lines,N=s.editing;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Editor",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!N||l,icon:"plus",content:"Add Line",onClick:function(){function C(){return u("newline",{line:v.length+1})}return C}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!N,icon:N?"chevron-up":"chevron-down",onClick:function(){function C(){return u("edit")}return C}()})],4),children:!!N&&(v.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:v.map(function(C,p){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:p+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:l,icon:"pen",onClick:function(){function g(){return u("modifyline",{line:p+1})}return g}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:l,icon:"trash",onClick:function(){function g(){return u("deleteline",{line:p+1})}return g}()})],4),children:C},p)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},13618:function(T,r,n){"use strict";r.__esModule=!0,r.KeyComboModal=void 0;var e=n(89005),a=n(70611),t=n(72253),o=n(36036),f=n(98595),b=n(19203),y=n(51057),S=function(d){return d.key!==a.KEY.Alt&&d.key!==a.KEY.Control&&d.key!==a.KEY.Shift&&d.key!==a.KEY.Escape},k={DEL:"Delete",DOWN:"South",END:"Southwest",HOME:"Northwest",INSERT:"Insert",LEFT:"West",PAGEDOWN:"Southeast",PAGEUP:"Northeast",RIGHT:"East",SPACEBAR:"Space",UP:"North"},h=3,c=function(d){var u="";if(d.altKey&&(u+="Alt"),d.ctrlKey&&(u+="Ctrl"),d.shiftKey&&!(d.keyCode>=48&&d.keyCode<=57)&&(u+="Shift"),d.location===h&&(u+="Numpad"),S(d))if(d.shiftKey&&d.keyCode>=48&&d.keyCode<=57){var s=d.keyCode-48;u+="Shift"+s}else{var l=d.key.toUpperCase();u+=k[l]||l}return u},i=r.KeyComboModal=function(){function m(d,u){var s=(0,t.useBackend)(u),l=s.act,v=s.data,N=v.init_value,C=v.large_buttons,p=v.message,g=p===void 0?"":p,V=v.title,B=v.timeout,I=(0,t.useLocalState)(u,"input",N),L=I[0],w=I[1],x=(0,t.useLocalState)(u,"binding",!0),A=x[0],E=x[1],P=function(){function R(D){if(!A){D.key===a.KEY.Enter&&l("submit",{entry:L}),(0,a.isEscape)(D.key)&&l("cancel");return}if(D.preventDefault(),S(D)){j(c(D)),E(!1);return}else if(D.key===a.KEY.Escape){j(N),E(!1);return}}return R}(),j=function(){function R(D){D!==L&&w(D)}return R}(),M=130+(g.length>30?Math.ceil(g.length/3):0)+(g.length&&C?5:0);return(0,e.createComponentVNode)(2,f.Window,{title:V,width:240,height:M,children:[B&&(0,e.createComponentVNode)(2,y.Loader,{value:B}),(0,e.createComponentVNode)(2,f.Window.Content,{onKeyDown:function(){function R(D){P(D)}return R}(),children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Autofocus),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:g})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:A,content:A&&A!==null?"Awaiting input...":""+L,width:"100%",textAlign:"center",onClick:function(){function R(){j(N),E(!0)}return R}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,b.InputButtons,{input:L})})]})]})})]})}return m}()},35655:function(T,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.KeycardAuth=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=(0,e.createComponentVNode)(2,t.Section,{title:"Keycard Authentication Device",children:(0,e.createComponentVNode)(2,t.Box,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(!c.swiping&&!c.busy)return(0,e.createComponentVNode)(2,o.Window,{width:540,height:280,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[i,(0,e.createComponentVNode)(2,t.Section,{title:"Choose Action",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Red Alert",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:!c.redAvailable,onClick:function(){function d(){return h("triggerevent",{triggerevent:"Red Alert"})}return d}(),content:"Red Alert"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ERT",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",onClick:function(){function d(){return h("triggerevent",{triggerevent:"Emergency Response Team"})}return d}(),content:"Call ERT"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Maint Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function d(){return h("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return d}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function d(){return h("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})}return d}(),content:"Revoke"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Station-Wide Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function d(){return h("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})}return d}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function d(){return h("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})}return d}(),content:"Revoke"})]})]})})]})});var m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!c.hasSwiped&&!c.ertreason&&c.event==="Emergency Response Team"?m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):c.hasConfirm?m=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):c.isRemote?m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):c.hasSwiped&&(m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Waiting for second person to confirm..."})),(0,e.createComponentVNode)(2,o.Window,{width:540,height:265,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[i,c.event==="Emergency Response Team"&&(0,e.createComponentVNode)(2,t.Section,{title:"Reason for ERT Call",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{color:c.ertreason?"":"red",icon:c.ertreason?"check":"pencil-alt",content:c.ertreason?c.ertreason:"-----",disabled:c.busy,onClick:function(){function d(){return h("ert")}return d}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:c.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:c.busy||c.hasConfirm,onClick:function(){function d(){return h("reset")}return d}()}),children:m})]})})}return b}()},62955:function(T,r,n){"use strict";r.__esModule=!0,r.KitchenMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(62411),b=r.KitchenMachine=function(){function S(k,h){var c=(0,a.useBackend)(h),i=c.data,m=c.config,d=i.ingredients,u=i.operating,s=m.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Operating,{operating:u,name:s}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,y)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Ingredients",children:(0,e.createComponentVNode)(2,t.Table,{className:"Ingredient__Table",children:d.map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{tr:5,children:[(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:l.name}),2),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:[l.amount," ",l.units]}),2)]},l.name)})})})})]})})})}return S}(),y=function(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.inactive,u=m.tooltip;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:d,tooltip:d?u:"",tooltipPosition:"bottom",content:"Activate",onClick:function(){function s(){return i("cook")}return s}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:d,tooltip:d?u:"",tooltipPosition:"bottom",content:"Eject Contents",onClick:function(){function s(){return i("eject")}return s}()})})]})})}},9525:function(T,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.LawManager=function(){function k(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.isAdmin,s=d.isSlaved,l=d.isMalf,v=d.isAIMalf,N=d.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:l?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(u&&s)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",s,"."]}),!!(l||v)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:N===0,onClick:function(){function C(){return m("set_view",{set_view:0})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:N===1,onClick:function(){function C(){return m("set_view",{set_view:1})}return C}()})]}),N===0&&(0,e.createComponentVNode)(2,b),N===1&&(0,e.createComponentVNode)(2,y)]})})}return k}(),b=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.has_zeroth_laws,s=d.zeroth_laws,l=d.has_ion_laws,v=d.ion_laws,N=d.ion_law_nr,C=d.has_inherent_laws,p=d.inherent_laws,g=d.has_supplied_laws,V=d.supplied_laws,B=d.channels,I=d.channel,L=d.isMalf,w=d.isAdmin,x=d.zeroth_law,A=d.ion_law,E=d.inherent_law,P=d.supplied_law,j=d.supplied_law_position;return(0,e.createFragment)([!!u&&(0,e.createComponentVNode)(2,S,{title:"ERR_NULL_VALUE",laws:s,ctx:c}),!!l&&(0,e.createComponentVNode)(2,S,{title:N,laws:v,ctx:c}),!!C&&(0,e.createComponentVNode)(2,S,{title:"Inherent",laws:p,ctx:c}),!!g&&(0,e.createComponentVNode)(2,S,{title:"Supplied",laws:V,ctx:c}),(0,e.createComponentVNode)(2,t.Section,{title:"Statement Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Statement Channel",children:B.map(function(M){return(0,e.createComponentVNode)(2,t.Button,{content:M.channel,selected:M.channel===I,onClick:function(){function R(){return m("law_channel",{law_channel:M.channel})}return R}()},M.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function M(){return m("state_laws")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function M(){return m("notify_laws")}return M}()})})]})}),!!L&&(0,e.createComponentVNode)(2,t.Section,{title:"Add Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"60%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Actions"})]}),!!(w&&!u)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Zero"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:x}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_zeroth_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_zeroth_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ion"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:A}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_ion_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_ion_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Inherent"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:E}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_inherent_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_inherent_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Supplied"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:P}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:j,onClick:function(){function M(){return m("change_supplied_law_position")}return M}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_supplied_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_supplied_law")}return M}()})]})]})]})})],0)},y=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:u.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name+" - "+s.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function l(){return m("transfer_laws",{transfer_laws:s.ref})}return l}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.laws.has_ion_laws>0&&s.laws.ion_laws.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.index,children:l.law},l.index)}),s.laws.has_zeroth_laws>0&&s.laws.zeroth_laws.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.index,children:l.law},l.index)}),s.laws.has_inherent_laws>0&&s.laws.inherent_laws.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.index,children:l.law},l.index)}),s.laws.has_supplied_laws>0&&s.laws.inherent_laws.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.index,children:l.law},l.index)})]})},s.name)})})},S=function(h,c){var i=(0,a.useBackend)(h.ctx),m=i.act,d=i.data,u=d.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:h.title+" Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"69%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"21%",children:"State?"})]}),h.laws.map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.index}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.law}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:s.state?"Yes":"No",selected:s.state,onClick:function(){function l(){return m("state_law",{ref:s.ref,state_law:s.state?0:1})}return l}()}),!!u&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function l(){return m("edit_law",{edit_law:s.ref})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function l(){return m("delete_law",{delete_law:s.ref})}return l}()})],4)]})]},s.law)})]})})}},85066:function(T,r,n){"use strict";r.__esModule=!0,r.LibraryComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=r.LibraryComputer=function(){function N(C,p){return(0,e.createComponentVNode)(2,o.Window,{width:1050,height:600,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)]})})]})}return N}(),y=function(C,p){var g=(0,a.useBackend)(p),V=g.act,B=g.data,I=C.args,L=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:I.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:I.summary}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[I.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",verticalAlign:"top"})]}),!I.isProgrammatic&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Categories",children:I.categories.join(", ")})]}),(0,e.createVNode)(1,"br"),L===I.ckey&&(0,e.createComponentVNode)(2,t.Button,{content:"Delete Book",icon:"trash",color:"red",disabled:I.isProgrammatic,onClick:function(){function w(){return V("delete_book",{bookid:I.id,user_ckey:L})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Report Book",icon:"flag",color:"red",disabled:I.isProgrammatic,onClick:function(){function w(){return(0,f.modalOpen)(p,"report_book",{bookid:I.id})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rate Book",icon:"star",color:"caution",disabled:I.isProgrammatic,onClick:function(){function w(){return(0,f.modalOpen)(p,"rate_info",{bookid:I.id})}return w}()})]})},S=function(C,p){var g=(0,a.useBackend)(p),V=g.act,B=g.data,I=C.args,L=B.selected_report,w=B.report_categories,x=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",title:"Report this book for Rule Violations",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reasons",children:(0,e.createComponentVNode)(2,t.Box,{children:w.map(function(A,E){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:A.description,selected:A.category_id===L,onClick:function(){function P(){return V("set_report",{report_type:A.category_id})}return P}()}),(0,e.createVNode)(1,"br")],4,E)})})})]}),(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,icon:"paper-plane",content:"Submit Report",onClick:function(){function A(){return V("submit_report",{bookid:I.id,user_ckey:x})}return A}()})]})},k=function(C,p){var g=(0,a.useBackend)(p),V=g.act,B=g.data,I=B.selected_rating,L=Array(10).fill().map(function(w,x){return 1+x});return(0,e.createComponentVNode)(2,t.Stack,{children:[L.map(function(w,x){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{bold:!0,icon:"star",color:I>=w?"caution":"default",onClick:function(){function A(){return V("set_rating",{rating_value:w})}return A}()})},x)}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,ml:2,fontSize:"150%",children:[I+"/10",(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"top"})]})]})},h=function(C,p){var g=(0,a.useBackend)(p),V=g.act,B=g.data,I=C.args,L=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:I.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[I.current_rating?I.current_rating:0,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Ratings",children:I.total_ratings?I.total_ratings:0})]}),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,t.Button.Confirm,{mt:2,content:"Submit",icon:"paper-plane",onClick:function(){function w(){return V("rate_book",{bookid:I.id,user_ckey:L})}return w}()})]})},c=function(C,p){var g=(0,a.useBackend)(p),V=g.data,B=(0,a.useLocalState)(p,"tabIndex",0),I=B[0],L=B[1],w=V.login_state;return(0,e.createComponentVNode)(2,t.Stack.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===0,onClick:function(){function x(){return L(0)}return x}(),children:"Book Archives"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===1,onClick:function(){function x(){return L(1)}return x}(),children:"Corporate Literature"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===2,onClick:function(){function x(){return L(2)}return x}(),children:"Upload Book"}),w===1&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===3,onClick:function(){function x(){return L(3)}return x}(),children:"Patron Manager"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===4,onClick:function(){function x(){return L(4)}return x}(),children:"Inventory"})]})})},i=function(C,p){var g=(0,a.useLocalState)(p,"tabIndex",0),V=g[0];switch(V){case 0:return(0,e.createComponentVNode)(2,d);case 1:return(0,e.createComponentVNode)(2,u);case 2:return(0,e.createComponentVNode)(2,s);case 3:return(0,e.createComponentVNode)(2,l);case 4:return(0,e.createComponentVNode)(2,v);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},m=function(C,p){var g=(0,a.useBackend)(p),V=g.act,B=g.data,I=B.searchcontent,L=B.book_categories,w=B.user_ckey,x=[];return L.map(function(A){return x[A.description]=A.category_id}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"edit",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Inputs"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:I.title||"Input Title",onClick:function(){function A(){return(0,f.modalOpen)(p,"edit_search_title")}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:I.author||"Input Author",onClick:function(){function A(){return(0,f.modalOpen)(p,"edit_search_author")}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Ratings",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:1,width:"min-content",content:I.ratingmin,onClick:function(){function A(){return(0,f.modalOpen)(p,"edit_search_ratingmin")}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:"To"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:1,width:"min-content",content:I.ratingmax,onClick:function(){function A(){return(0,f.modalOpen)(p,"edit_search_ratingmax")}return A}()})})]})})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"clipboard-list",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Book Categories"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Dropdown,{mt:.6,width:"190px",options:L.map(function(A){return A.description}),onSelected:function(){function A(E){return V("toggle_search_category",{category_id:x[E]})}return A}()})})})}),(0,e.createVNode)(1,"br"),L.filter(function(A){return I.categories.includes(A.category_id)}).map(function(A){return(0,e.createComponentVNode)(2,t.Button,{content:A.description,selected:!0,icon:"unlink",onClick:function(){function E(){return V("toggle_search_category",{category_id:A.category_id})}return E}()},A.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Actions"]}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Search",icon:"eraser",onClick:function(){function A(){return V("clear_search")}return A}()}),I.ckey?(0,e.createComponentVNode)(2,t.Button,{mb:.5,content:"Stop Showing My Books",color:"bad",icon:"search",onClick:function(){function A(){return V("clear_ckey_search")}return A}()}):(0,e.createComponentVNode)(2,t.Button,{content:"Find My Books",icon:"search",onClick:function(){function A(){return V("find_users_books",{user_ckey:w})}return A}()})]})]})},d=function(C,p){var g=(0,a.useBackend)(p),V=g.act,B=g.data,I=B.external_booklist,L=B.archive_pagenumber,w=B.num_pages,x=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Access",buttons:(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",disabled:L===1,onClick:function(){function A(){return V("deincrementpagemax")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",disabled:L===1,onClick:function(){function A(){return V("deincrementpage")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{bold:!0,content:L,onClick:function(){function A(){return(0,f.modalOpen)(p,"setpagenumber")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",disabled:L===w,onClick:function(){function A(){return V("incrementpage")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",disabled:L===w,onClick:function(){function A(){return V("incrementpagemax")}return A}()})],4),children:[(0,e.createComponentVNode)(2,m),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ratings"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Category"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),I.map(function(A){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:A.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:.5}),A.title.length>45?A.title.substr(0,45)+"...":A.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:A.author.length>30?A.author.substr(0,30)+"...":A.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[A.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",ml:.5,color:"yellow",verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:A.categories.join(", ").substr(0,45)}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[x===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function E(){return V("order_external_book",{bookid:A.id})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function E(){return(0,f.modalOpen)(p,"expand_info",{bookid:A.id})}return E}()})]})]},A.id)})]})]})},u=function(C,p){var g=(0,a.useBackend)(p),V=g.act,B=g.data,I=B.programmatic_booklist,L=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Corporate Book Catalog",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),I.map(function(w,x){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:2}),w.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[L===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function A(){return V("order_programmatic_book",{bookid:w.id})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function A(){return(0,f.modalOpen)(p,"expand_info",{bookid:w.id})}return A}()})]})]},x)})]})})},s=function(C,p){var g=(0,a.useBackend)(p),V=g.act,B=g.data,I=B.selectedbook,L=B.book_categories,w=B.user_ckey,x=[];return L.map(function(A){return x[A.description]=A.category_id}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Upload",buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,width:9.5,icon:"upload",disabled:I.copyright,content:"Upload Book",onClick:function(){function A(){return V("uploadbook",{user_ckey:w})}return A}()}),children:[I.copyright?(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"WARNING: You cannot upload or modify the attributes of a copyrighted book"}):(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{ml:15,mb:3,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:2}),"Book Uploader"]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:I.copyright,content:I.title,onClick:function(){function A(){return(0,f.modalOpen)(p,"edit_selected_title")}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:I.copyright,content:I.author,onClick:function(){function A(){return(0,f.modalOpen)(p,"edit_selected_author")}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"240px",options:L.map(function(A){return A.description}),onSelected:function(){function A(E){return V("toggle_upload_category",{category_id:x[E]})}return A}()})})})]}),(0,e.createVNode)(1,"br"),L.filter(function(A){return I.categories.includes(A.category_id)}).map(function(A){return(0,e.createComponentVNode)(2,t.Button,{content:A.description,disabled:I.copyright,selected:!0,icon:"unlink",onClick:function(){function E(){return V("toggle_upload_category",{category_id:A.category_id})}return E}()},A.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:75,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",disabled:I.copyright,content:"Edit Summary",onClick:function(){function A(){return(0,f.modalOpen)(p,"edit_selected_summary")}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:I.summary})]})})]})]})},l=function(C,p){var g=(0,a.useBackend)(p),V=g.act,B=g.data,I=B.checkout_data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Checked Out Books",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Patron"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),I.map(function(L,w){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-tag"}),L.patron_name]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:L.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.timeleft>=0?L.timeleft:"LATE"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:(0,e.createComponentVNode)(2,t.Button,{content:"Mark Lost",icon:"flag",color:"bad",disabled:L.timeleft>=0,onClick:function(){function x(){return V("reportlost",{libraryid:L.libraryid})}return x}()})})]},w)})]})})},v=function(C,p){var g=(0,a.useBackend)(p),V=g.act,B=g.data,I=B.inventory_list;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Library Inventory",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"LIB ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"})]}),I.map(function(L,w){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.libraryid}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"})," ",L.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:L.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:L.checked_out?"Checked Out":"Available"})]},w)})]})})};(0,f.modalRegisterBodyOverride)("expand_info",y),(0,f.modalRegisterBodyOverride)("report_book",S),(0,f.modalRegisterBodyOverride)("rate_info",h)},9516:function(T,r,n){"use strict";r.__esModule=!0,r.LibraryManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=r.LibraryManager=function(){function c(i,m){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:600,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,y)})]})}return c}(),y=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.pagestate;switch(l){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,h);case 3:return(0,e.createComponentVNode)(2,k);default:return"WE SHOULDN'T BE HERE!"}},S=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-shield",verticalAlign:"middle",size:3,mr:"1rem"}),"Library Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",width:"auto",color:"danger",content:"Delete Book by SSID",onClick:function(){function l(){return(0,f.modalOpen)(m,"specify_ssid_delete")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",width:"auto",color:"danger",content:"Delete All Books By CKEY",onClick:function(){function l(){return(0,f.modalOpen)(m,"specify_ckey_delete")}return l}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Books By CKEY",onClick:function(){function l(){return(0,f.modalOpen)(m,"specify_ckey_search")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Reported Books",onClick:function(){function l(){return u("view_reported_books")}return l}()})]})},k=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.reports;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-secret",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"All Reported Books",(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function v(){return u("return")}return v}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Uploader CKEY"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Report Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reporter Ckey"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),l.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:v.uploader_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),v.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:v.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:v.report_description}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:v.reporter_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",onClick:function(){function N(){return u("delete_book",{bookid:v.id})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Unflag",icon:"flag",color:"caution",onClick:function(){function N(){return u("unflag_book",{bookid:v.id})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function N(){return u("view_book",{bookid:v.id})}return N}()})]})]},v.id)})]})})},h=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.ckey,v=s.booklist;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"Books uploaded by ",l,(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function N(){return u("return")}return N}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),v.map(function(N){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:N.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),N.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:N.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",color:"bad",onClick:function(){function C(){return u("delete_book",{bookid:N.id})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function C(){return u("view_book",{bookid:N.id})}return C}()})]})]},N.id)})]})})}},90447:function(T,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(36036),f=n(72253),b=n(92986),y=n(98595),S=r.ListInputModal=function(){function c(i,m){var d=(0,f.useBackend)(m),u=d.act,s=d.data,l=s.items,v=l===void 0?[]:l,N=s.message,C=N===void 0?"":N,p=s.init_value,g=s.timeout,V=s.title,B=(0,f.useLocalState)(m,"selected",v.indexOf(p)),I=B[0],L=B[1],w=(0,f.useLocalState)(m,"searchBarVisible",v.length>10),x=w[0],A=w[1],E=(0,f.useLocalState)(m,"searchQuery",""),P=E[0],j=E[1],M=function(){function $(Q){var J=K.length-1;if(Q===b.KEY_DOWN)if(I===null||I===J){var ie;L(0),(ie=document.getElementById("0"))==null||ie.scrollIntoView()}else{var ne;L(I+1),(ne=document.getElementById((I+1).toString()))==null||ne.scrollIntoView()}else if(Q===b.KEY_UP)if(I===null||I===0){var se;L(J),(se=document.getElementById(J.toString()))==null||se.scrollIntoView()}else{var Ce;L(I-1),(Ce=document.getElementById((I-1).toString()))==null||Ce.scrollIntoView()}}return $}(),R=function(){function $(Q){Q!==I&&L(Q)}return $}(),D=function(){function $(){A(!1),A(!0)}return $}(),W=function(){function $(Q){var J=String.fromCharCode(Q),ie=v.find(function(Ce){return Ce==null?void 0:Ce.toLowerCase().startsWith(J==null?void 0:J.toLowerCase())});if(ie){var ne,se=v.indexOf(ie);L(se),(ne=document.getElementById(se.toString()))==null||ne.scrollIntoView()}}return $}(),_=function(){function $(Q){var J;Q!==P&&(j(Q),L(0),(J=document.getElementById("0"))==null||J.scrollIntoView())}return $}(),U=function(){function $(){A(!x),j("")}return $}(),K=v.filter(function($){return $==null?void 0:$.toLowerCase().includes(P.toLowerCase())}),G=330+Math.ceil(C.length/3);return x||setTimeout(function(){var $;return($=document.getElementById(I.toString()))==null?void 0:$.focus()},1),(0,e.createComponentVNode)(2,y.Window,{title:V,width:325,height:G,children:[g&&(0,e.createComponentVNode)(2,a.Loader,{value:g}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function $(Q){var J=window.event?Q.which:Q.keyCode;(J===b.KEY_DOWN||J===b.KEY_UP)&&(Q.preventDefault(),M(J)),J===b.KEY_ENTER&&(Q.preventDefault(),u("submit",{entry:K[I]})),!x&&J>=b.KEY_A&&J<=b.KEY_Z&&(Q.preventDefault(),W(J)),J===b.KEY_ESCAPE&&(Q.preventDefault(),u("cancel"))}return $}(),children:(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{compact:!0,icon:x?"search":"font",selected:!0,tooltip:x?"Search Mode. Type to search or use arrow keys to select manually.":"Hotkey Mode. Type a letter to jump to the first match. Enter to select.",tooltipPosition:"left",onClick:function(){function $(){return U()}return $}()}),className:"ListInput__Section",fill:!0,title:C,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,k,{filteredItems:K,onClick:R,onFocusSearch:D,searchBarVisible:x,selected:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:x&&(0,e.createComponentVNode)(2,h,{filteredItems:K,onSearch:_,searchQuery:P,selected:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:K[I]})})]})})})]})}return c}(),k=function(i,m){var d=(0,f.useBackend)(m),u=d.act,s=i.filteredItems,l=i.onClick,v=i.onFocusSearch,N=i.searchBarVisible,C=i.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:s.map(function(p,g){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:g,onClick:function(){function V(){return l(g)}return V}(),onDblClick:function(){function V(B){B.preventDefault(),u("submit",{entry:s[C]})}return V}(),onKeyDown:function(){function V(B){var I=window.event?B.which:B.keyCode;N&&I>=b.KEY_A&&I<=b.KEY_Z&&(B.preventDefault(),v())}return V}(),selected:g===C,style:{animation:"none",transition:"none"},children:p.replace(/^\w/,function(V){return V.toUpperCase()})},g)})})},h=function(i,m){var d=(0,f.useBackend)(m),u=d.act,s=i.filteredItems,l=i.onSearch,v=i.searchQuery,N=i.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function C(p){p.preventDefault(),u("submit",{entry:s[N]})}return C}(),onInput:function(){function C(p,g){return l(g)}return C}(),placeholder:"Search...",value:v})}},77613:function(T,r,n){"use strict";r.__esModule=!0,r.MODsuitContent=r.MODsuit=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(I,L){var w=I.name,x=I.value,A=I.module_ref,E=(0,a.useBackend)(L),P=E.act;return(0,e.createComponentVNode)(2,t.NumberInput,{value:x,minValue:-50,maxValue:50,stepPixelSize:5,width:"39px",onChange:function(){function j(M,R){return P("configure",{key:w,value:R,ref:A})}return j}()})},b=function(I,L){var w=I.name,x=I.value,A=I.module_ref,E=(0,a.useBackend)(L),P=E.act;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:x,onClick:function(){function j(){return P("configure",{key:w,value:!x,ref:A})}return j}()})},y=function(I,L){var w=I.name,x=I.value,A=I.module_ref,E=(0,a.useBackend)(L),P=E.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"paint-brush",onClick:function(){function j(){return P("configure",{key:w,ref:A})}return j}()}),(0,e.createComponentVNode)(2,t.ColorBox,{color:x,mr:.5})],4)},S=function(I,L){var w=I.name,x=I.value,A=I.values,E=I.module_ref,P=(0,a.useBackend)(L),j=P.act;return(0,e.createComponentVNode)(2,t.Dropdown,{displayText:x,options:A,onSelected:function(){function M(R){return j("configure",{key:w,value:R,ref:E})}return M}()})},k=function(I,L){var w=I.name,x=I.display_name,A=I.type,E=I.value,P=I.values,j=I.module_ref,M={number:(0,e.normalizeProps)((0,e.createComponentVNode)(2,f,Object.assign({},I))),bool:(0,e.normalizeProps)((0,e.createComponentVNode)(2,b,Object.assign({},I))),color:(0,e.normalizeProps)((0,e.createComponentVNode)(2,y,Object.assign({},I))),list:(0,e.normalizeProps)((0,e.createComponentVNode)(2,S,Object.assign({},I)))};return(0,e.createComponentVNode)(2,t.Box,{children:[x,": ",M[A]]})},h=function(I,L){var w=I.active,x=I.userradiated,A=I.usertoxins,E=I.usermaxtoxins,P=I.threatlevel;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Level",color:w&&x?"bad":"good",children:w&&x?"IRRADIATED!":"RADIATION-FREE"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxins Level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?A/E:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:A})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Hazard Level",color:w&&P?"bad":"good",bold:!0,children:w&&P?P:0})})]})},c=function(I,L){var w=I.active,x=I.userhealth,A=I.usermaxhealth,E=I.userbrute,P=I.userburn,j=I.usertoxin,M=I.useroxy;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?x/A:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?x:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?E/A:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?E:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?P/A:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?P:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?j/A:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?j:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?M/A:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?M:0})})})})]})],4)},i=function(I,L){var w=I.active,x=I.statustime,A=I.statusid,E=I.statushealth,P=I.statusmaxhealth,j=I.statusbrute,M=I.statusburn,R=I.statustoxin,D=I.statusoxy,W=I.statustemp,_=I.statusnutrition,U=I.statusfingerprints,K=I.statusdna,G=I.statusviruses;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Time",children:w?x:"00:00:00"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Number",children:w?A||"0":"???"})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?E/P:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?E:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?j/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?j:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?M/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?M:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?R/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:R})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?D/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:D})})})})]}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Body Temperature",children:w?W:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Nutrition Status",children:w?_:0})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"DNA",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fingerprints",children:w?U:"???"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:w?K:"???"})]})}),!!w&&!!G&&(0,e.createComponentVNode)(2,t.Section,{title:"Diseases",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"signature",tooltip:"Name",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"wind",tooltip:"Type",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Stage",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"flask",tooltip:"Cure",tooltipPosition:"top"})})]}),G.map(function($){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:$.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:$.type}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[$.stage,"/",$.maxstage]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:$.cure})]},$.name)})]})})],0)},m={rad_counter:h,health_analyzer:c,status_readout:i},d=function(){return(0,e.createComponentVNode)(2,t.Section,{align:"center",fill:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{color:"red",name:"exclamation-triangle",size:15}),(0,e.createComponentVNode)(2,t.Box,{fontSize:"30px",color:"red",children:"ERROR: INTERFACE UNRESPONSIVE"})]})},u=function(I,L){var w=(0,a.useBackend)(L),x=w.act,A=w.data;return(0,e.createComponentVNode)(2,t.Dimmer,{children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"16px",color:"blue",children:"SUIT UNPOWERED"})})})},s=function(I,L){var w=I.configuration_data,x=I.module_ref,A=Object.keys(w);return(0,e.createComponentVNode)(2,t.Dimmer,{backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[A.map(function(E){var P=w[E];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,k,{name:E,display_name:P.display_name,type:P.type,value:P.value,values:P.values,module_ref:x})},P.key)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:I.onExit,icon:"times",textAlign:"center",children:"Exit"})})})]})})},l=function(I){switch(I){case 1:return"Use";case 2:return"Toggle";case 3:return"Select"}},v=function(I,L){var w=(0,a.useBackend)(L),x=w.act,A=w.data,E=A.active,P=A.malfunctioning,j=A.locked,M=A.open,R=A.selected_module,D=A.complexity,W=A.complexity_max,_=A.wearer_name,U=A.wearer_job,K=P?"Malfunctioning":E?"Active":"Inactive";return(0,e.createComponentVNode)(2,t.Section,{title:"Parameters",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:E?"Deactivate":"Activate",onClick:function(){function G(){return x("activate")}return G}()}),children:K}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:j?"lock-open":"lock",content:j?"Unlock":"Lock",onClick:function(){function G(){return x("lock")}return G}()}),children:j?"Locked":"Unlocked"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover",children:M?"Open":"Closed"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Module",children:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Complexity",children:[D," (",W,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:[_,", ",U]})]})})},N=function(I,L){var w=(0,a.useBackend)(L),x=w.act,A=w.data,E=A.active,P=A.control,j=A.helmet,M=A.chestplate,R=A.gauntlets,D=A.boots,W=A.core,_=A.charge;return(0,e.createComponentVNode)(2,t.Section,{title:"Hardware",children:[(0,e.createComponentVNode)(2,t.Collapsible,{title:"Parts",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Control Unit",children:P}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Helmet",children:j||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chestplate",children:M||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gauntlets",children:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Boots",children:D||"None"})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core",children:W&&(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Type",children:W}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:_/100,content:_+"%",ranges:{good:[.6,1/0],average:[.3,.6],bad:[-1/0,.3]}})})]})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",textAlign:"center",children:"No Core Detected"})})]})},C=function(I,L){var w=(0,a.useBackend)(L),x=w.act,A=w.data,E=A.active,P=A.modules,j=P.filter(function(M){return!!M.id});return(0,e.createComponentVNode)(2,t.Section,{title:"Info",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:j.length!==0&&j.map(function(M){var R=m[M.id];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!E&&(0,e.createComponentVNode)(2,u),(0,e.normalizeProps)((0,e.createComponentVNode)(2,R,Object.assign({},M,{active:E})))]},M.ref)})||(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Info Modules Detected"})})})},p=function(I,L){var w=(0,a.useBackend)(L),x=w.act,A=w.data,E=A.complexity_max,P=A.modules,j=(0,a.useLocalState)(L,"module_configuration",null),M=j[0],R=j[1];return(0,e.createComponentVNode)(2,t.Section,{title:"Modules",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:P.length!==0&&P.map(function(D){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Collapsible,{title:D.module_name,children:(0,e.createComponentVNode)(2,t.Section,{children:[M===D.ref&&(0,e.createComponentVNode)(2,s,{configuration_data:D.configuration_data,module_ref:D.ref,onExit:function(){function W(){return R(null)}return W}()}),(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"save",tooltip:"Complexity",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"plug",tooltip:"Idle Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lightbulb",tooltip:"Active Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Use Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"hourglass-half",tooltip:"Cooldown",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"tasks",tooltip:"Actions",tooltipPosition:"top"})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[D.module_complexity,"/",E]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:D.idle_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:D.active_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:D.use_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[D.cooldown>0&&D.cooldown/10||"0","/",D.cooldown_time/10,"s"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function W(){return x("select",{ref:D.ref})}return W}(),icon:"bullseye",selected:D.module_active,tooltip:l(D.module_type),tooltipPosition:"left",disabled:!D.module_type}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function W(){return R(D.ref)}return W}(),icon:"cog",selected:M===D.ref,tooltip:"Configure",tooltipPosition:"left",disabled:D.configuration_data.length===0}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function W(){return x("pin",{ref:D.ref})}return W}(),icon:"thumbtack",selected:D.pinned,tooltip:"Pin",tooltipPosition:"left",disabled:!D.module_type})]})]})]}),(0,e.createComponentVNode)(2,t.Box,{children:D.description})]})})},D.ref)})||(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Modules Detected"})})})})},g=r.MODsuitContent=function(){function B(I,L){var w=(0,a.useBackend)(L),x=w.act,A=w.data,E=A.ui_theme,P=A.interface_break;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!P,children:!!P&&(0,e.createComponentVNode)(2,d)||(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,v)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,N)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,C)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p)})]})})}return B}(),V=r.MODsuit=function(){function B(I,L){var w=(0,a.useBackend)(L),x=w.act,A=w.data,E=A.ui_theme,P=A.interface_break;return(0,e.createComponentVNode)(2,o.Window,{theme:E,width:400,height:620,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,g)})})})}return B}()},78624:function(T,r,n){"use strict";r.__esModule=!0,r.MagnetController=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=n(3939),y=new Map([["n",{icon:"arrow-up",tooltip:"Move North"}],["e",{icon:"arrow-right",tooltip:"Move East"}],["s",{icon:"arrow-down",tooltip:"Move South"}],["w",{icon:"arrow-left",tooltip:"Move West"}],["c",{icon:"crosshairs",tooltip:"Move to Magnet"}],["r",{icon:"dice",tooltip:"Move Randomly"}]]),S=r.MagnetController=function(){function k(h,c){var i=(0,t.useBackend)(c),m=i.act,d=i.data,u=d.autolink,s=d.code,l=d.frequency,v=d.linkedMagnets,N=d.magnetConfiguration,C=d.path,p=d.pathPosition,g=d.probing,V=d.powerState,B=d.speed;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:[(0,e.createComponentVNode)(2,b.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[!u&&(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Probe",icon:g?"spinner":"sync",iconSpin:!!g,disabled:g,onClick:function(){function I(){return m("probe_magnets")}return I}()}),title:"Magnet Linking",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,a.toFixed)(l/10,1)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:s})]})}),(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{icon:V?"power-off":"times",content:V?"On":"Off",selected:V,onClick:function(){function I(){return m("toggle_power")}return I}()}),title:"Controller Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:B.value,minValue:B.min,maxValue:B.max,onChange:function(){function I(L,w){return m("set_speed",{speed:w})}return I}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Path",children:[Array.from(y.entries()).map(function(I){var L=I[0],w=I[1],x=w.icon,A=w.tooltip;return(0,e.createComponentVNode)(2,o.Button,{icon:x,tooltip:A,onClick:function(){function E(){return m("path_add",{code:L})}return E}()},L)}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",confirmIcon:"trash",confirmContent:"",float:"right",tooltip:"Reset Path",tooltipPosition:"left",onClick:function(){function I(){return m("path_clear")}return I}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file-import",float:"right",tooltip:"Manually input path",tooltipPosition:"left",onClick:function(){function I(){return(0,b.modalOpen)(c,"path_custom_input")}return I}()}),(0,e.createComponentVNode)(2,o.BlockQuote,{children:C.map(function(I,L){var w=y.get(I)||{icon:"question"},x=w.icon,A=w.tooltip;return(0,e.createComponentVNode)(2,o.Button.Confirm,{selected:L+2===p,icon:x,confirmIcon:x,confirmContent:"",tooltip:A,onClick:function(){function E(){return m("path_remove",{index:L+1,code:I})}return E}()},L)})})]})]})}),v.map(function(I,L){var w=I.uid,x=I.powerState,A=I.electricityLevel,E=I.magneticField;return(0,e.createComponentVNode)(2,o.Section,{title:"Magnet #"+(L+1)+" Configuration",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:x?"power-off":"times",content:x?"On":"Off",selected:x,onClick:function(){function P(){return m("toggle_magnet_power",{id:w})}return P}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Move Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:A,minValue:N.electricityLevel.min,maxValue:N.electricityLevel.max,onChange:function(){function P(j,M){return m("set_electricity_level",{id:w,electricityLevel:M})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Field Size",children:(0,e.createComponentVNode)(2,o.Slider,{value:E,minValue:N.magneticField.min,maxValue:N.magneticField.max,onChange:function(){function P(j,M){return m("set_magnetic_field",{id:w,magneticField:M})}return P}()})})]})},w)})]})]})}return k}()},72106:function(T,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.MechBayConsole=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.recharge_port,m=i&&i.mech,d=m&&m.cell,u=m&&m.name;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:155,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:u?"Mech status: "+u:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function s(){return h("reconnect")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:!i&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:m.health/m.maxhealth,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:!i&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||!d&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cell is installed."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:d.charge/d.maxcharge,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]},children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:d.charge})," / "+d.maxcharge]})})]})})})})}return b}()},7466:function(T,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=n(25328),y=r.MechaControlConsole=function(){function S(k,h){var c=(0,t.useBackend)(h),i=c.act,m=c.data,d=m.beacons,u=m.stored_data;return u.length?(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"window-close",onClick:function(){function s(){return i("clear_log")}return s}()}),children:u.map(function(s){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",s.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,b.decodeHtmlEntities)(s.message)})]},s.time)})})})}):(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:d.length&&d.map(function(s){return(0,e.createComponentVNode)(2,o.Section,{title:s.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function l(){return i("send_message",{mt:s.uid})}return l}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function l(){return i("get_log",{mt:s.uid})}return l}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"Sabotage",icon:"bomb",onClick:function(){function l(){return i("shock",{mt:s.uid})}return l}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[s.maxHealth*.75,1/0],average:[s.maxHealth*.5,s.maxHealth*.75],bad:[-1/0,s.maxHealth*.5]},value:s.health,maxValue:s.maxHealth})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:s.cell&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[s.cellMaxCharge*.75,1/0],average:[s.cellMaxCharge*.5,s.cellMaxCharge*.75],bad:[-1/0,s.cellMaxCharge*.5]},value:s.cellCharge,maxValue:s.cellMaxCharge})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Air Tank",children:[s.airtank,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pilot",children:s.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:(0,b.toTitleCase)(s.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:s.active||"None"}),s.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[s.cargoMax*.75,1/0],average:[s.cargoMax*.5,s.cargoMax*.75],good:[-1/0,s.cargoMax*.5]},value:s.cargoUsed,maxValue:s.cargoMax})})||null]})},s.name)})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No mecha beacons found."})})})}return S}()},79625:function(T,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(3939),b=n(98595),y=n(321),S=n(5485),k=n(22091),h={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},c={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},i=function(x,A){(0,f.modalOpen)(x,"edit",{field:A.edit,value:A.value})},m=function(x,A){var E=x.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:E.name||"Virus",children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Number of stages",children:E.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[E.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:E.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:E.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Severity",color:h[E.severity],children:E.severity})]})})})},d=r.MedicalRecords=function(){function w(x,A){var E=(0,t.useBackend)(A),P=E.data,j=P.loginState,M=P.screen;if(!j.logged_in)return(0,e.createComponentVNode)(2,b.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});var R;return M===2?R=(0,e.createComponentVNode)(2,u):M===3?R=(0,e.createComponentVNode)(2,s):M===4?R=(0,e.createComponentVNode)(2,l):M===5?R=(0,e.createComponentVNode)(2,p):M===6?R=(0,e.createComponentVNode)(2,g):M===7&&(R=(0,e.createComponentVNode)(2,V)),(0,e.createComponentVNode)(2,b.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,k.TemporaryNotice),(0,e.createComponentVNode)(2,L),R]})})]})}return w}(),u=function(x,A){var E=(0,t.useBackend)(A),P=E.act,j=E.data,M=j.records,R=(0,t.useLocalState)(A,"searchText",""),D=R[0],W=R[1],_=(0,t.useLocalState)(A,"sortId","name"),U=_[0],K=_[1],G=(0,t.useLocalState)(A,"sortOrder",!0),$=G[0],Q=G[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Manage Records",icon:"wrench",ml:"0.25rem",onClick:function(){function J(){return P("screen",{screen:3})}return J}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search by Name, ID, Physical Status, or Mental Status",onInput:function(){function J(ie,ne){return W(ne)}return J}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,B,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,B,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,B,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,B,{id:"p_stat",children:"Patient Status"}),(0,e.createComponentVNode)(2,B,{id:"m_stat",children:"Mental Status"})]}),M.filter((0,a.createSearch)(D,function(J){return J.name+"|"+J.id+"|"+J.rank+"|"+J.p_stat+"|"+J.m_stat})).sort(function(J,ie){var ne=$?1:-1;return J[U].localeCompare(ie[U])*ne}).map(function(J){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+c[J.p_stat],onClick:function(){function ie(){return P("view_record",{view_record:J.ref})}return ie}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",J.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.m_stat})]},J.id)})]})})})],4)},s=function(x,A){var E=(0,t.useBackend)(A),P=E.act;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,translucent:!0,lineHeight:3,icon:"download",content:"Backup to Disk",disabled:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,translucent:!0,lineHeight:3,icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," "]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,translucent:!0,lineHeight:3,icon:"trash",content:"Delete All Medical Records",onClick:function(){function j(){return P("del_all_med_records")}return j}()})})]})})},l=function(x,A){var E=(0,t.useBackend)(A),P=E.act,j=E.data,M=j.medical,R=j.printing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{height:"235px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:R?"spinner":"print",disabled:R,iconSpin:!!R,content:"Print Record",ml:"0.5rem",onClick:function(){function D(){return P("print_record")}return D}()}),children:(0,e.createComponentVNode)(2,v)})}),!M||!M.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function D(){return P("new_med_record")}return D}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Medical records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:!!M.empty,content:"Delete Medical Record",onClick:function(){function D(){return P("del_med_record")}return D}()}),children:(0,e.createComponentVNode)(2,N)})}),(0,e.createComponentVNode)(2,C)],4)],0)},v=function(x,A){var E=(0,t.useBackend)(A),P=E.data,j=P.general;return!j||!j.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:j.fields.map(function(M,R){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:M.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:M.value}),!!M.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function D(){return i(A,M)}return D}()})]},R)})})}),!!j.has_photos&&j.photos.map(function(M,R){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:M,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",R+1]},R)})]})},N=function(x,A){var E=(0,t.useBackend)(A),P=E.act,j=E.data,M=j.medical;return!M||!M.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"Medical records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:M.fields.map(function(R,D){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:R.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(R.value),!!R.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:R.line_break?"1rem":"initial",onClick:function(){function W(){return i(A,R)}return W}()})]},D)})})})})},C=function(x,A){var E=(0,t.useBackend)(A),P=E.act,j=E.data,M=j.medical;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function R(){return(0,f.modalOpen)(A,"add_comment")}return R}()}),children:M.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):M.comments.map(function(R,D){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:R.header}),(0,e.createVNode)(1,"br"),R.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function W(){return P("del_comment",{del_comment:D+1})}return W}()})]},D)})})})},p=function(x,A){var E=(0,t.useBackend)(A),P=E.act,j=E.data,M=j.virus,R=(0,t.useLocalState)(A,"searchText",""),D=R[0],W=R[1],_=(0,t.useLocalState)(A,"sortId2","name"),U=_[0],K=_[1],G=(0,t.useLocalState)(A,"sortOrder2",!0),$=G[0],Q=G[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{ml:"0.25rem",fluid:!0,placeholder:"Search by Name, Max Stages, or Severity",onInput:function(){function J(ie,ne){return W(ne)}return J}()})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,I,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,I,{id:"max_stages",children:"Max Stages"}),(0,e.createComponentVNode)(2,I,{id:"severity",children:"Severity"})]}),M.filter((0,a.createSearch)(D,function(J){return J.name+"|"+J.max_stages+"|"+J.severity})).sort(function(J,ie){var ne=$?1:-1;return J[U].localeCompare(ie[U])*ne}).map(function(J){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+J.severity,onClick:function(){function ie(){return P("vir",{vir:J.D})}return ie}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",J.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:h[J.severity],children:J.severity})]},J.id)})]})})})})],4)},g=function(x,A){var E=(0,t.useBackend)(A),P=E.act,j=E.data,M=j.goals;return(0,e.createComponentVNode)(2,o.Section,{title:"Virology Goals",fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:M.length!==0&&M.map(function(R){return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:R.name,children:[(0,e.createComponentVNode)(2,o.Table,{children:(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:R.delivered,minValue:0,maxValue:R.deliverygoal,ranges:{good:[R.deliverygoal*.5,1/0],average:[R.deliverygoal*.25,R.deliverygoal*.5],bad:[-1/0,R.deliverygoal*.25]},children:[R.delivered," / ",R.deliverygoal," Units"]})})})}),(0,e.createComponentVNode)(2,o.Box,{children:R.report})]})},R.id)})||(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:"No Goals Detected"})})})})},V=function(x,A){var E=(0,t.useBackend)(A),P=E.act,j=E.data,M=j.medbots;return M.length===0?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"robot",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"There are no Medibots."]})})})}):(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Area"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Chemicals"})]}),M.map(function(R){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+R.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",R.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[R.area||"Unknown"," (",R.x,", ",R.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.on?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Online"}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"Offline"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.use_beaker?"Reservoir: "+R.total_volume+"/"+R.maximum_volume:"Using internal synthesizer"})]},R.id)})]})})})},B=function(x,A){var E=(0,t.useLocalState)(A,"sortId","name"),P=E[0],j=E[1],M=(0,t.useLocalState)(A,"sortOrder",!0),R=M[0],D=M[1],W=x.id,_=x.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:P!==W&&"transparent",onClick:function(){function U(){P===W?D(!R):(j(W),D(!0))}return U}(),children:[_,P===W&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},I=function(x,A){var E=(0,t.useLocalState)(A,"sortId2","name"),P=E[0],j=E[1],M=(0,t.useLocalState)(A,"sortOrder2",!0),R=M[0],D=M[1],W=x.id,_=x.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:P!==W&&"transparent",onClick:function(){function U(){P===W?D(!R):(j(W),D(!0))}return U}(),children:[_,P===W&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},L=function(x,A){var E=(0,t.useBackend)(A),P=E.act,j=E.data,M=j.screen,R=j.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:M===2,onClick:function(){function D(){P("screen",{screen:2})}return D}(),children:"List Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:M===5,onClick:function(){function D(){P("screen",{screen:5})}return D}(),children:"Virus Database"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"vial",selected:M===6,onClick:function(){function D(){P("screen",{screen:6})}return D}(),children:"Virology Goals"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:M===7,onClick:function(){function D(){return P("screen",{screen:7})}return D}(),children:"Medibot Tracking"}),M===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:M===3,children:"Record Maintenance"}),M===4&&R&&!R.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:M===4,children:["Record: ",R.fields[0].value]})]})})};(0,f.modalRegisterBodyOverride)("virus",m)},54989:function(T,r,n){"use strict";r.__esModule=!0,r.MerchVendor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=h.product,s=h.productImage,l=h.productCategory,v=d.user_money;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+s,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:u.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{disabled:u.price>v,icon:"shopping-cart",content:u.price,textAlign:"left",onClick:function(){function N(){return m("purchase",{name:u.name,category:l})}return N}()})})]})},b=function(h,c){var i=(0,a.useBackend)(c),m=i.data,d=(0,a.useLocalState)(c,"tabIndex",1),u=d[0],s=m.products,l=m.imagelist,v=["apparel","toy","decoration"];return(0,e.createComponentVNode)(2,t.Table,{children:s[v[u]].map(function(N){return(0,e.createComponentVNode)(2,f,{product:N,productImage:l[N.path],productCategory:v[u]},N.name)})})},y=r.MerchVendor=function(){function k(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.user_cash,s=d.inserted_cash;return(0,e.createComponentVNode)(2,o.Window,{title:"Merch Computer",width:450,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"light-grey",inline:!0,mr:"0.5rem",children:["There is ",(0,e.createVNode)(1,"b",null,s,0)," credits inserted."]}),(0,e.createComponentVNode)(2,t.Button,{disabled:!s,icon:"money-bill-wave-alt",content:"Dispense Change",textAlign:"left",onClick:function(){function l(){return m("change")}return l}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Doing your job and not getting any recognition at work? Well, welcome to the merch shop! Here, you can buy cool things in exchange for money you earn when you have completed your Job Objectives.",u!==null&&(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:["Your balance is ",(0,e.createVNode)(1,"b",null,[u||0,(0,e.createTextVNode)(" credits")],0),"."]})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,b)]})})]})})})}return k}(),S=function(h,c){var i=(0,a.useBackend)(c),m=i.data,d=(0,a.useLocalState)(c,"tabIndex",1),u=d[0],s=d[1],l=m.login_state;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"dice",selected:u===1,onClick:function(){function v(){return s(1)}return v}(),children:"Toys"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"flag",selected:u===2,onClick:function(){function v(){return s(2)}return v}(),children:"Decorations"})]})}},87684:function(T,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=["title","items"];function y(d,u){if(d==null)return{};var s={};for(var l in d)if({}.hasOwnProperty.call(d,l)){if(u.includes(l))continue;s[l]=d[l]}return s}var S={Alphabetical:function(){function d(u,s){return u-s}return d}(),Availability:function(){function d(u,s){return-(u.affordable-s.affordable)}return d}(),Price:function(){function d(u,s){return u.price-s.price}return d}()},k=r.MiningVendor=function(){function d(u,s){return(0,e.createComponentVNode)(2,f.Window,{width:400,height:455,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})})}return d}(),h=function(u,s){var l=(0,t.useBackend)(s),v=l.act,N=l.data,C=N.has_id,p=N.id;return(0,e.createComponentVNode)(2,o.NoticeBox,{success:C,children:C?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",p.name,".",(0,e.createVNode)(1,"br"),"You have ",p.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function g(){return v("logoff")}return g}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},c=function(u,s){var l=(0,t.useBackend)(s),v=l.act,N=l.data,C=N.has_id,p=N.id,g=N.items,V=(0,t.useLocalState)(s,"search",""),B=V[0],I=V[1],L=(0,t.useLocalState)(s,"sort","Alphabetical"),w=L[0],x=L[1],A=(0,t.useLocalState)(s,"descending",!1),E=A[0],P=A[1],j=(0,a.createSearch)(B,function(D){return D[0]}),M=!1,R=Object.entries(g).map(function(D,W){var _=Object.entries(D[1]).filter(j).map(function(U){return U[1].affordable=C&&p.points>=U[1].price,U[1]}).sort(S[w]);if(_.length!==0)return E&&(_=_.reverse()),M=!0,(0,e.createComponentVNode)(2,m,{title:D[0],items:_},D[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:M?R:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},i=function(u,s){var l=(0,t.useLocalState)(s,"search",""),v=l[0],N=l[1],C=(0,t.useLocalState)(s,"sort",""),p=C[0],g=C[1],V=(0,t.useLocalState)(s,"descending",!1),B=V[0],I=V[1];return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{mt:.2,placeholder:"Search by item name..",width:"100%",onInput:function(){function L(w,x){return N(x)}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(S),width:"100%",onSelected:function(){function L(w){return g(w)}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:B?"arrow-down":"arrow-up",height:"21px",tooltip:B?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){function L(){return I(!B)}return L}()})})]})})},m=function(u,s){var l=(0,t.useBackend)(s),v=l.act,N=l.data,C=u.title,p=u.items,g=y(u,b);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:C},g,{children:p.map(function(V){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:V.name}),(0,e.createComponentVNode)(2,o.Button,{disabled:!N.has_id||N.id.points0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:ye>=10?"9+":ye})}),(0,e.createComponentVNode)(2,s,{icon:"briefcase",title:"Job Openings",selected:D===1,onClick:function(){function he(){return A("jobs")}return he}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:W.map(function(he){return(0,e.createComponentVNode)(2,s,{icon:he.icon,title:he.name,selected:D===2&&W[U-1]===he,onClick:function(){function oe(){return A("channel",{uid:he.uid})}return oe}(),children:he.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:he.unread>=10?"9+":he.unread})},he)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!P||!!j)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,s,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function he(){return(0,y.modalOpen)(w,"wanted_notice")}return he}()}),(0,e.createComponentVNode)(2,s,{security:!0,icon:se?"minus-square":"minus-square-o",title:"Censor Mode: "+(se?"On":"Off"),mb:"0.5rem",onClick:function(){function he(){return Ce(!se)}return he}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,s,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function he(){return(0,y.modalOpen)(w,"create_story")}return he}()}),(0,e.createComponentVNode)(2,s,{icon:"plus-circle",title:"New Channel",onClick:function(){function he(){return(0,y.modalOpen)(w,"create_channel")}return he}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,s,{icon:R?"spinner":"print",iconSpin:R,title:R?"Printing...":"Print Newspaper",onClick:function(){function he(){return A("print_newspaper")}return he}()}),(0,e.createComponentVNode)(2,s,{icon:M?"volume-mute":"volume-up",title:"Mute: "+(M?"On":"Off"),onClick:function(){function he(){return A("toggle_mute")}return he}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,S.TemporaryNotice),Se]})]})})]})}return I}(),s=function(L,w){var x=(0,t.useBackend)(w),A=x.act,E=L.icon,P=E===void 0?"":E,j=L.iconSpin,M=L.selected,R=M===void 0?!1:M,D=L.security,W=D===void 0?!1:D,_=L.onClick,U=L.title,K=L.children,G=c(L,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",R&&"Newscaster__menuButton--selected",W&&"Newscaster__menuButton--security"]),onClick:_},G,{children:[R&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:P,spin:j,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:U}),K]})))},l=function(L,w){var x=(0,t.useBackend)(w),A=x.act,E=x.data,P=E.screen,j=E.is_admin,M=E.channel_idx,R=E.channel_can_manage,D=E.channels,W=E.stories,_=E.wanted,U=(0,t.useLocalState)(w,"fullStories",[]),K=U[0],G=U[1],$=(0,t.useLocalState)(w,"censorMode",!1),Q=$[0],J=$[1],ie=P===2&&M>-1?D[M-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!_&&(0,e.createComponentVNode)(2,N,{story:_,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:ie?ie.icon:"newspaper",mr:"0.5rem"}),ie?ie.name:"Headlines"],0),children:W.length>0?W.slice().reverse().map(function(ne){return!K.includes(ne.uid)&&ne.body.length+3>i?Object.assign({},ne,{body_short:ne.body.substr(0,i-4)+"..."}):ne}).map(function(ne,se){return(0,e.createComponentVNode)(2,N,{story:ne},se)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no stories at this time."]})}),!!ie&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,height:"40%",title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"info-circle",mr:"0.5rem"}),(0,e.createTextVNode)("About")],4),buttons:(0,e.createFragment)([Q&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!ie.admin&&!j,selected:ie.censored,icon:ie.censored?"comment-slash":"comment",content:ie.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function ne(){return A("censor_channel",{uid:ie.uid})}return ne}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!R,icon:"cog",content:"Manage",onClick:function(){function ne(){return(0,y.modalOpen)(w,"manage_channel",{uid:ie.uid})}return ne}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:ie.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:ie.author||"N/A"}),!!j&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Ckey",children:ie.author_ckey}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:ie.public?"Yes":"No"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Views",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"eye",mr:"0.5rem"}),W.reduce(function(ne,se){return ne+se.view_count},0).toLocaleString()]})]})})]})},v=function(L,w){var x=(0,t.useBackend)(w),A=x.act,E=x.data,P=E.jobs,j=E.wanted,M=Object.entries(P).reduce(function(R,D){var W=D[0],_=D[1];return R+_.length},0);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!j&&(0,e.createComponentVNode)(2,N,{story:j,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"briefcase",mr:"0.5rem"}),(0,e.createTextVNode)("Job Openings")],4),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:"Work for a better future at Nanotrasen"}),children:M>0?m.map(function(R){return Object.assign({},d[R],{id:R,jobs:P[R]})}).filter(function(R){return!!R&&R.jobs.length>0}).map(function(R){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+R.id]),title:R.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:R.fluff_text}),children:R.jobs.map(function(D){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!D.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",D.title]},D.title)})},R.id)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no openings at this time."]})}),(0,e.createComponentVNode)(2,o.Section,{height:"17%",children:["Interested in serving Nanotrasen?",(0,e.createVNode)(1,"br"),"Sign up for any of the above position now at the ",(0,e.createVNode)(1,"b",null,"Head of Personnel's Office!",16),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{as:"small",color:"label",children:"By signing up for a job at Nanotrasen, you agree to transfer your soul to the loyalty department of the omnipresent and helpful watcher of humanity."})]})]})},N=function(L,w){var x=(0,t.useBackend)(w),A=x.act,E=x.data,P=L.story,j=L.wanted,M=j===void 0?!1:j,R=E.is_admin,D=(0,t.useLocalState)(w,"fullStories",[]),W=D[0],_=D[1],U=(0,t.useLocalState)(w,"censorMode",!1),K=U[0],G=U[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",M&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([M&&(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle",mr:"0.5rem"}),P.censor_flags&2&&"[REDACTED]"||P.title||"News from "+P.author],0),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:[!M&&K&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.Button,{enabled:P.censor_flags&2,icon:P.censor_flags&2?"comment-slash":"comment",content:P.censor_flags&2?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){function $(){return A("censor_story",{uid:P.uid})}return $}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",P.author," |\xA0",!!R&&(0,e.createFragment)([(0,e.createTextVNode)("ckey: "),P.author_ckey,(0,e.createTextVNode)(" |\xA0")],0),!M&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),(0,e.createTextVNode)(" "),P.view_count.toLocaleString(),(0,e.createTextVNode)(" |\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,f.timeAgo)(P.publish_time,E.world_time)]})]})}),children:(0,e.createComponentVNode)(2,o.Box,{children:P.censor_flags&2?"[REDACTED]":(0,e.createFragment)([!!P.has_photo&&(0,e.createComponentVNode)(2,C,{name:"story_photo_"+P.uid+".png",float:"right",ml:"0.5rem"}),(P.body_short||P.body).split("\n").map(function($,Q){return(0,e.createComponentVNode)(2,o.Box,{children:$||(0,e.createVNode)(1,"br")},Q)}),P.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function $(){return _([].concat(W,[P.uid]))}return $}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},C=function(L,w){var x=L.name,A=c(L,h),E=(0,t.useLocalState)(w,"viewingPhoto",""),P=E[0],j=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"img",className:"Newscaster__photo",src:x,onClick:function(){function M(){return j(x)}return M}()},A)))},p=function(L,w){var x=(0,t.useLocalState)(w,"viewingPhoto",""),A=x[0],E=x[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Newscaster__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:A}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function P(){return E("")}return P}()})]})},g=function(L,w){var x=(0,t.useBackend)(w),A=x.act,E=x.data,P=!!L.args.uid&&E.channels.filter(function(ee){return ee.uid===L.args.uid}).pop();if(L.id==="manage_channel"&&!P){(0,y.modalClose)(w);return}var j=L.id==="manage_channel",M=!!L.args.is_admin,R=L.args.scanned_user,D=(0,t.useLocalState)(w,"author",(P==null?void 0:P.author)||R||"Unknown"),W=D[0],_=D[1],U=(0,t.useLocalState)(w,"name",(P==null?void 0:P.name)||""),K=U[0],G=U[1],$=(0,t.useLocalState)(w,"description",(P==null?void 0:P.description)||""),Q=$[0],J=$[1],ie=(0,t.useLocalState)(w,"icon",(P==null?void 0:P.icon)||"newspaper"),ne=ie[0],se=ie[1],Ce=(0,t.useLocalState)(w,"isPublic",j?!!(P!=null&&P.public):!1),Se=Ce[0],ye=Ce[1],he=(0,t.useLocalState)(w,"adminLocked",(P==null?void 0:P.admin)===1||!1),oe=he[0],ce=he[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:j?"Manage "+P.name:"Create New Channel",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!M,width:"100%",value:W,onInput:function(){function ee(fe,me){return _(me)}return ee}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"50 characters max.",maxLength:"50",value:K,onInput:function(){function ee(fe,me){return G(me)}return ee}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",placeholder:"128 characters max.",maxLength:"128",value:Q,onInput:function(){function ee(fe,me){return J(me)}return ee}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!M,value:ne,width:"35%",mr:"0.5rem",onInput:function(){function ee(fe,me){return se(me)}return ee}()}),(0,e.createComponentVNode)(2,o.Icon,{name:ne,size:"2",verticalAlign:"middle",mr:"0.5rem"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Accept Public Stories?",children:(0,e.createComponentVNode)(2,o.Button,{selected:Se,icon:Se?"toggle-on":"toggle-off",content:Se?"Yes":"No",onClick:function(){function ee(){return ye(!Se)}return ee}()})}),M&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:oe,icon:oe?"lock":"lock-open",content:oe?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function ee(){return ce(!oe)}return ee}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:W.trim().length===0||K.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function ee(){(0,y.modalAnswer)(w,L.id,"",{author:W,name:K.substr(0,49),description:Q.substr(0,128),icon:ne,public:Se?1:0,admin_locked:oe?1:0})}return ee}()})]})},V=function(L,w){var x=(0,t.useBackend)(w),A=x.act,E=x.data,P=E.photo,j=E.channels,M=E.channel_idx,R=M===void 0?-1:M,D=!!L.args.is_admin,W=L.args.scanned_user,_=j.slice().sort(function(ee,fe){if(R<0)return 0;var me=j[R-1];if(me.uid===ee.uid)return-1;if(me.uid===fe.uid)return 1}).filter(function(ee){return D||!ee.frozen&&(ee.author===W||!!ee.public)}),U=(0,t.useLocalState)(w,"author",W||"Unknown"),K=U[0],G=U[1],$=(0,t.useLocalState)(w,"channel",_.length>0?_[0].name:""),Q=$[0],J=$[1],ie=(0,t.useLocalState)(w,"title",""),ne=ie[0],se=ie[1],Ce=(0,t.useLocalState)(w,"body",""),Se=Ce[0],ye=Ce[1],he=(0,t.useLocalState)(w,"adminLocked",!1),oe=he[0],ce=he[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Create New Story",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!D,width:"100%",value:K,onInput:function(){function ee(fe,me){return G(me)}return ee}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:Q,options:_.map(function(ee){return ee.name}),mb:"0",width:"100%",onSelected:function(){function ee(fe){return J(fe)}return ee}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"128 characters max.",maxLength:"128",value:ne,onInput:function(){function ee(fe,me){return se(me)}return ee}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Story Text",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,multiline:!0,placeholder:"1024 characters max.",maxLength:"1024",rows:"8",width:"100%",value:Se,onInput:function(){function ee(fe,me){return ye(me)}return ee}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:P,content:P?"Eject: "+P.name:"Insert Photo",tooltip:!P&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){function ee(){return A(P?"eject_photo":"attach_photo")}return ee}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:ne,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!P&&(0,e.createComponentVNode)(2,C,{name:"inserted_photo_"+P.uid+".png",float:"right"}),Se.split("\n").map(function(ee,fe){return(0,e.createComponentVNode)(2,o.Box,{children:ee||(0,e.createVNode)(1,"br")},fe)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),D&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:oe,icon:oe?"lock":"lock-open",content:oe?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function ee(){return ce(!oe)}return ee}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:K.trim().length===0||Q.trim().length===0||ne.trim().length===0||Se.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function ee(){(0,y.modalAnswer)(w,"create_story","",{author:K,channel:Q,title:ne.substr(0,127),body:Se.substr(0,1023),admin_locked:oe?1:0})}return ee}()})]})},B=function(L,w){var x=(0,t.useBackend)(w),A=x.act,E=x.data,P=E.photo,j=E.wanted,M=!!L.args.is_admin,R=L.args.scanned_user,D=(0,t.useLocalState)(w,"author",(j==null?void 0:j.author)||R||"Unknown"),W=D[0],_=D[1],U=(0,t.useLocalState)(w,"name",(j==null?void 0:j.title.substr(8))||""),K=U[0],G=U[1],$=(0,t.useLocalState)(w,"description",(j==null?void 0:j.body)||""),Q=$[0],J=$[1],ie=(0,t.useLocalState)(w,"adminLocked",(j==null?void 0:j.admin_locked)===1||!1),ne=ie[0],se=ie[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Manage Wanted Notice",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Authority",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!M,width:"100%",value:W,onInput:function(){function Ce(Se,ye){return _(ye)}return Ce}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:K,maxLength:"128",onInput:function(){function Ce(Se,ye){return G(ye)}return Ce}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:Q,maxLength:"512",rows:"4",onInput:function(){function Ce(Se,ye){return J(ye)}return Ce}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:P,content:P?"Eject: "+P.name:"Insert Photo",tooltip:!P&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){function Ce(){return A(P?"eject_photo":"attach_photo")}return Ce}()}),!!P&&(0,e.createComponentVNode)(2,C,{name:"inserted_photo_"+P.uid+".png",float:"right"})]}),M&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ne,icon:ne?"lock":"lock-open",content:ne?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function Ce(){return se(!ne)}return Ce}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!j,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){function Ce(){A("clear_wanted_notice"),(0,y.modalClose)(w)}return Ce}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:W.trim().length===0||K.trim().length===0||Q.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function Ce(){(0,y.modalAnswer)(w,L.id,"",{author:W,name:K.substr(0,127),description:Q.substr(0,511),admin_locked:ne?1:0})}return Ce}()})]})};(0,y.modalRegisterBodyOverride)("create_channel",g),(0,y.modalRegisterBodyOverride)("manage_channel",g),(0,y.modalRegisterBodyOverride)("create_story",V),(0,y.modalRegisterBodyOverride)("wanted_notice",B)},48286:function(T,r,n){"use strict";r.__esModule=!0,r.Noticeboard=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=r.Noticeboard=function(){function y(S,k){var h=(0,t.useBackend)(k),c=h.act,i=h.data,m=i.papers;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:300,theme:"noticeboard",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:m.map(function(d){return(0,e.createComponentVNode)(2,o.Stack.Item,{align:"center",width:"22.45%",height:"85%",onClick:function(){function u(){return c("interact",{paper:d.ref})}return u}(),onContextMenu:function(){function u(s){s.preventDefault(),c("showFull",{paper:d.ref})}return u}(),children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,fontSize:.75,title:d.name,children:(0,a.decodeHtmlEntities)(d.contents)})},d.ref)})})})})}return y}()},41166:function(T,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.NuclearBomb=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data;return c.extended?(0,e.createComponentVNode)(2,o.Window,{width:350,height:290,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Disk",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.authdisk?"eject":"id-card",selected:c.authdisk,content:c.diskname?c.diskname:"-----",tooltip:c.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function i(){return h("auth")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!c.authdisk,selected:c.authcode,content:c.codemsg,onClick:function(){function i(){return h("code")}return i}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Arming & Disarming",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bolted to floor",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.anchored?"check":"times",selected:c.anchored,disabled:!c.authdisk,content:c.anchored?"YES":"NO",onClick:function(){function i(){return h("toggle_anchor")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:c.time,disabled:!c.authfull,tooltip:"Set Timer",onClick:function(){function i(){return h("set_time")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.safety?"check":"times",selected:c.safety,disabled:!c.authfull,content:c.safety?"ON":"OFF",tooltip:c.safety?"Disable Safety":"Enable Safety",onClick:function(){function i(){return h("toggle_safety")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(c.timer,"bomb"),disabled:c.safety||!c.authfull,color:"red",content:c.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function i(){return h("toggle_armed")}return i}()})})]})})]})}):(0,e.createComponentVNode)(2,o.Window,{width:350,height:115,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Deployment",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"exclamation-triangle",content:"Deploy Nuclear Device (will bolt device to floor)",onClick:function(){function i(){return h("deploy")}return i}()})})})})}return b}()},52416:function(T,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(92986),f=n(72253),b=n(36036),y=n(98595),S=r.NumberInputModal=function(){function h(c,i){var m=(0,f.useBackend)(i),d=m.act,u=m.data,s=u.init_value,l=u.large_buttons,v=u.message,N=v===void 0?"":v,C=u.timeout,p=u.title,g=(0,f.useLocalState)(i,"input",s),V=g[0],B=g[1],I=function(){function x(A){A!==V&&B(A)}return x}(),L=function(){function x(A){A!==V&&B(A)}return x}(),w=140+Math.max(Math.ceil(N.length/3),N.length>0&&l?5:0);return(0,e.createComponentVNode)(2,y.Window,{title:p,width:270,height:w,children:[C&&(0,e.createComponentVNode)(2,a.Loader,{value:C}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function x(A){var E=window.event?A.which:A.keyCode;E===o.KEY_ENTER&&d("submit",{entry:V}),E===o.KEY_ESCAPE&&d("cancel")}return x}(),children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Box,{color:"label",children:N})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,k,{input:V,onClick:L,onChange:I})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:V})})]})})})]})}return h}(),k=function(c,i){var m=(0,f.useBackend)(i),d=m.act,u=m.data,s=u.min_value,l=u.max_value,v=u.init_value,N=u.round_value,C=c.input,p=c.onClick,g=c.onChange,V=Math.round(C!==s?Math.max(C/2,s):l/2),B=C===s&&s>0||C===1;return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:C===s,icon:"angle-double-left",onClick:function(){function I(){return p(s)}return I}(),tooltip:C===s?"Min":"Min ("+s+")"})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!N,minValue:s,maxValue:l,onChange:function(){function I(L,w){return g(w)}return I}(),onEnter:function(){function I(L,w){return d("submit",{entry:w})}return I}(),value:C})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:C===l,icon:"angle-double-right",onClick:function(){function I(){return p(l)}return I}(),tooltip:C===l?"Max":"Max ("+l+")"})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:B,icon:"divide",onClick:function(){function I(){return p(V)}return I}(),tooltip:B?"Split":"Split ("+V+")"})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:C===v,icon:"redo",onClick:function(){function I(){return p(v)}return I}(),tooltip:v?"Reset ("+v+")":"Reset"})})]})}},1218:function(T,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(98595),f=n(36036),b=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],y=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},k=["bad","average","average","good","average","average","bad"],h=r.OperatingComputer=function(){function d(u,s){var l=(0,t.useBackend)(s),v=l.act,N=l.data,C=N.hasOccupant,p=N.choice,g;return p?g=(0,e.createComponentVNode)(2,m):g=C?(0,e.createComponentVNode)(2,c):(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!p,icon:"user",onClick:function(){function V(){return v("choiceOff")}return V}(),children:"Patient"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!!p,icon:"cog",onClick:function(){function V(){return v("choiceOn")}return V}(),children:"Options"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,children:g})})]})})})}return d}(),c=function(u,s){var l=(0,t.useBackend)(s),v=l.data,N=v.occupant;return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,title:"Patient",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:N.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:b[N.stat][0],children:b[N.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:N.maxHealth,value:N.health/N.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),y.map(function(C,p){return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:C[0]+" Damage",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:"100",value:N[C[1]]/100,ranges:S,children:(0,a.round)(N[C[1]])},p)},p)}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:N.maxTemp,value:N.bodyTemperature/N.maxTemp,color:k[N.temperatureSuitability+3],children:[(0,a.round)(N.btCelsius),"\xB0C, ",(0,a.round)(N.btFaren),"\xB0F"]})}),!!N.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:N.bloodMax,value:N.bloodLevel/N.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[N.bloodPercent,"%, ",N.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Pulse",children:[N.pulse," BPM"]})],4)]})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Current Procedure",level:"2",children:N.inSurgery?(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Procedure",children:N.surgeryName}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Next Step",children:N.stepName})]}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No procedure ongoing."})})})]})},i=function(){return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},m=function(u,s){var l=(0,t.useBackend)(s),v=l.act,N=l.data,C=N.verbose,p=N.health,g=N.healthAlarm,V=N.oxy,B=N.oxyAlarm,I=N.crit;return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,f.Button,{selected:C,icon:C?"toggle-on":"toggle-off",content:C?"On":"Off",onClick:function(){function L(){return v(C?"verboseOff":"verboseOn")}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,f.Button,{selected:p,icon:p?"toggle-on":"toggle-off",content:p?"On":"Off",onClick:function(){function L(){return v(p?"healthOff":"healthOn")}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:g,stepPixelSize:5,ml:"0",onChange:function(){function L(w,x){return v("health_adj",{new:x})}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,f.Button,{selected:V,icon:V?"toggle-on":"toggle-off",content:V?"On":"Off",onClick:function(){function L(){return v(V?"oxyOff":"oxyOn")}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:B,stepPixelSize:5,ml:"0",onChange:function(){function L(w,x){return v("oxy_adj",{new:x})}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,f.Button,{selected:I,icon:I?"toggle-on":"toggle-off",content:I?"On":"Off",onClick:function(){function L(){return v(I?"critOff":"critOn")}return L}()})})]})}},46892:function(T,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=n(35840);function y(l,v){var N=typeof Symbol!="undefined"&&l[Symbol.iterator]||l["@@iterator"];if(N)return(N=N.call(l)).next.bind(N);if(Array.isArray(l)||(N=S(l))||v&&l&&typeof l.length=="number"){N&&(l=N);var C=0;return function(){return C>=l.length?{done:!0}:{done:!1,value:l[C++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(l,v){if(l){if(typeof l=="string")return k(l,v);var N={}.toString.call(l).slice(8,-1);return N==="Object"&&l.constructor&&(N=l.constructor.name),N==="Map"||N==="Set"?Array.from(l):N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N)?k(l,v):void 0}}function k(l,v){(v==null||v>l.length)&&(v=l.length);for(var N=0,C=Array(v);NN},m=function(v,N){var C=v.name,p=N.name;if(!C||!p)return 0;var g=C.match(h),V=p.match(h);if(g&&V&&C.replace(h,"")===p.replace(h,"")){var B=parseInt(g[1],10),I=parseInt(V[1],10);return B-I}return i(C,p)},d=function(v,N){var C=v.searchText,p=v.source,g=v.title,V=v.color,B=v.sorted,I=p.filter(c(C));return B&&I.sort(m),p.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:g+" - ("+p.length+")",children:I.map(function(L){return(0,e.createComponentVNode)(2,u,{thing:L,color:V},L.name)})})},u=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=v.color,V=v.thing;return(0,e.createComponentVNode)(2,o.Button,{color:g,tooltip:V.assigned_role?(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",mr:"0.5em",className:(0,b.classes)(["orbit_job16x16",V.assigned_role_sprite])})," ",V.assigned_role]}):"",tooltipPosition:"bottom",onClick:function(){function B(){return p("orbit",{ref:V.ref})}return B}(),children:[V.name,V.orbiters&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,children:["(",V.orbiters," ",(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),")"]})]})},s=r.Orbit=function(){function l(v,N){for(var C=(0,t.useBackend)(N),p=C.act,g=C.data,V=g.alive,B=g.antagonists,I=g.highlights,L=g.response_teams,w=g.tourist,x=g.auto_observe,A=g.dead,E=g.ssd,P=g.ghosts,j=g.misc,M=g.npcs,R=(0,t.useLocalState)(N,"searchText",""),D=R[0],W=R[1],_={},U=y(B),K;!(K=U()).done;){var G=K.value;_[G.antag]===void 0&&(_[G.antag]=[]),_[G.antag].push(G)}var $=Object.entries(_);$.sort(function(J,ie){return i(J[0],ie[0])});var Q=function(){function J(ie){for(var ne=0,se=[$.map(function(ye){var he=ye[0],oe=ye[1];return oe}),w,I,V,P,E,A,M,j];ne0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:$.map(function(J){var ie=J[0],ne=J[1];return(0,e.createComponentVNode)(2,o.Section,{title:ie+" - ("+ne.length+")",level:2,children:ne.filter(c(D)).sort(m).map(function(se){return(0,e.createComponentVNode)(2,u,{color:"bad",thing:se},se.name)})},ie)})}),I.length>0&&(0,e.createComponentVNode)(2,d,{title:"Highlights",source:I,searchText:D,color:"teal"}),(0,e.createComponentVNode)(2,d,{title:"Response Teams",source:L,searchText:D,color:"purple"}),(0,e.createComponentVNode)(2,d,{title:"Tourists",source:w,searchText:D,color:"violet"}),(0,e.createComponentVNode)(2,d,{title:"Alive",source:V,searchText:D,color:"good"}),(0,e.createComponentVNode)(2,d,{title:"Ghosts",source:P,searchText:D,color:"grey"}),(0,e.createComponentVNode)(2,d,{title:"SSD",source:E,searchText:D,color:"grey"}),(0,e.createComponentVNode)(2,d,{title:"Dead",source:A,searchText:D,sorted:!1}),(0,e.createComponentVNode)(2,d,{title:"NPCs",source:M,searchText:D,sorted:!1}),(0,e.createComponentVNode)(2,d,{title:"Misc",source:j,searchText:D,sorted:!1})]})})}return l}()},15421:function(T,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(98595),b=n(9394);function y(l){if(l==null)throw new TypeError("Cannot destructure "+l)}var S=(0,b.createLogger)("OreRedemption"),k=function(v){return v.toLocaleString("en-US")+" pts"},h=r.OreRedemption=function(){function l(v,N){return(0,e.createComponentVNode)(2,f.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,c,{height:"100%"})}),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,m)]})})})}return l}(),c=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=C.data,V=g.id,B=g.points,I=g.disk,L=Object.assign({},(y(v),v));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},L,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed Points",color:B>0?"good":"grey",bold:B>0&&"good",children:k(B)})}),(0,e.createComponentVNode)(2,o.Divider),I?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Design disk",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,icon:"eject",content:I.name,tooltip:"Ejects the design disk.",onClick:function(){function w(){return p("eject_disk")}return w}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!I.design||!I.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function w(){return p("download")}return w}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:I.design&&(I.compatible?"good":"bad"),children:I.design||"N/A"})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},i=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=C.data,V=g.sheets,B=Object.assign({},(y(v),v));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"20%",children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,d,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),V.map(function(I){return(0,e.createComponentVNode)(2,u,{ore:I},I.id)})]})))})},m=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=C.data,V=g.alloys,B=Object.assign({},(y(v),v));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,d,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),V.map(function(I){return(0,e.createComponentVNode)(2,s,{ore:I},I.id)})]})))})},d=function(v,N){var C;return(0,e.createComponentVNode)(2,o.Box,{className:"OreHeader",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:v.title}),(C=v.columns)==null?void 0:C.map(function(p){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:p[1],textAlign:"center",color:"label",bold:!0,children:p[0]},p)})]})})},u=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=v.ore;if(!(g.value&&g.amount<=0&&!(["metal","glass"].indexOf(g.id)>-1)))return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"45%",align:"middle",children:(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",g.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:g.name})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",color:g.amount>=1?"good":"gray",bold:g.amount>=1,align:"center",children:g.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",children:g.value}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(g.amount,50),stepPixelSize:6,onChange:function(){function V(B,I){return p(g.value?"sheet":"alloy",{id:g.id,amount:I})}return V}()})})]})})},s=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=v.ore;return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"7%",align:"middle",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["alloys32x32",g.id])})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",textAlign:"middle",align:"center",children:g.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"35%",textAlign:"middle",color:g.amount>=1?"good":"gray",align:"center",children:g.description}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"10%",textAlign:"center",color:g.amount>=1?"good":"gray",bold:g.amount>=1,align:"center",children:g.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(g.amount,50),stepPixelSize:6,onChange:function(){function V(B,I){return p(g.value?"sheet":"alloy",{id:g.id,amount:I})}return V}()})})]})})}},52754:function(T,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(71253),b=n(70752),y=function(h){var c;try{c=b("./"+h+".js")}catch(m){if(m.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",h);throw m}var i=c[h];return i||(0,f.routingError)("missingExport",h)},S=r.PAI=function(){function k(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.app_template,s=d.app_icon,l=d.app_title,v=y(u);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{p:1,fill:!0,scrollable:!0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:s,mr:1}),l,u!=="pai_main_menu"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{ml:2,mb:0,content:"Back",icon:"arrow-left",onClick:function(){function N(){return m("Back")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Home",icon:"arrow-up",onClick:function(){function N(){return m("MASTER_back")}return N}()})],4)]}),children:(0,e.createComponentVNode)(2,v)})})})})})}return k}()},85175:function(T,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(71253),b=n(59395),y=function(i){var m;try{m=b("./"+i+".js")}catch(u){if(u.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",i);throw u}var d=m[i];return d||(0,f.routingError)("missingExport",i)},S=r.PDA=function(){function c(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.app,v=s.owner;if(!v)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var N=y(l.template);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,p:1,pb:0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:l.icon,mr:1}),l.name]}),children:(0,e.createComponentVNode)(2,N)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,h)})]})})})}return c}(),k=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.idInserted,v=s.idLink,N=s.stationTime,C=s.cartridge_name;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{ml:.5,children:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",color:"transparent",onClick:function(){function p(){return u("Authenticate")}return p}(),content:l?v:"No ID Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function p(){return u("Eject")}return p}(),content:C?["Eject "+C]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:N})]})},h=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.app;return(0,e.createComponentVNode)(2,t.Box,{height:"45px",className:"PDA__footer",backgroundColor:"#1b1b1b",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[!!l.has_back&&(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"33%",mr:-.5,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:l.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function v(){return u("Back")}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:l.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:l.is_home?"disabled":"white",icon:"home",onClick:function(){function v(){u("Home")}return v}()})})]})})}},68654:function(T,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(49968),b=r.Pacman=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.active,d=i.anchored,u=i.broken,s=i.emagged,l=i.fuel_type,v=i.fuel_usage,N=i.fuel_stored,C=i.fuel_cap,p=i.is_ai,g=i.tmp_current,V=i.tmp_max,B=i.tmp_overheat,I=i.output_max,L=i.power_gen,w=i.output_set,x=i.has_fuel,A=N/C,E=g/V,P=w*L,j=Math.round(N/v),M=Math.round(j/60),R=j>120?M+" minutes":j+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:225,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(u||!d)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!u&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!u&&!d&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!u&&!!d&&(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:m?"power-off":"times",content:m?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!x,selected:m,onClick:function(){function D(){return c("toggle_power")}return D}()}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",className:"ml-1",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power setting",children:[(0,e.createComponentVNode)(2,t.NumberInput,{value:w,minValue:1,maxValue:I*(s?2.5:1),step:1,className:"mt-1",onDrag:function(){function D(W,_){return c("change_power",{change_power:_})}return D}()}),"(",(0,f.formatPower)(P),")"]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:E,ranges:{green:[-1/0,.33],orange:[.33,.66],red:[.66,1/0]},children:[g," \u2103"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[B>50&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),B>20&&B<=50&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"WARNING: Overheating!"}),B>1&&B<=20&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Temperature High"}),B===0&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Optimal"})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fuel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject Fuel",tooltip:"Ejects fuel. Generator needs to be offline.",tooltipPosition:"left",disabled:m||p||!x,onClick:function(){function D(){return c("eject_fuel")}return D}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Type",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:A,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(N/1e3)," dm\xB3"]})})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel usage",children:[v/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!x&&(v?R:"N/A"),!x&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return y}()},1701:function(T,r,n){"use strict";r.__esModule=!0,r.PanDEMIC=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.PanDEMIC=function(){function d(u,s){var l=(0,a.useBackend)(s),v=l.data,N=v.beakerLoaded,C=v.beakerContainsBlood,p=v.beakerContainsVirus,g=v.resistances,V=g===void 0?[]:g,B;return N?C?C&&!p&&(B=(0,e.createFragment)([(0,e.createTextVNode)("No disease detected in provided blood sample.")],4)):B=(0,e.createFragment)([(0,e.createTextVNode)("No blood sample found in the loaded container.")],4):B=(0,e.createFragment)([(0,e.createTextVNode)("No container loaded.")],4),(0,e.createComponentVNode)(2,o.Window,{width:575,height:510,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[B&&!p?(0,e.createComponentVNode)(2,t.Section,{title:"Container Information",buttons:(0,e.createComponentVNode)(2,b,{fill:!0,vertical:!0}),children:(0,e.createComponentVNode)(2,t.NoticeBox,{children:B})}):(0,e.createComponentVNode)(2,k),(V==null?void 0:V.length)>0&&(0,e.createComponentVNode)(2,m,{align:"bottom"})]})})})}return d}(),b=function(u,s){var l=(0,a.useBackend)(s),v=l.act,N=l.data,C=N.beakerLoaded;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!C,onClick:function(){function p(){return v("eject_beaker")}return p}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",confirmIcon:"eraser",content:"Destroy",confirmContent:"Destroy",disabled:!C,onClick:function(){function p(){return v("destroy_eject_beaker")}return p}()})],4)},y=function(u,s){var l=(0,a.useBackend)(s),v=l.act,N=l.data,C=N.beakerContainsVirus,p=u.strain,g=p.commonName,V=p.description,B=p.diseaseAgent,I=p.bloodDNA,L=p.bloodType,w=p.possibleTreatments,x=p.transmissionRoute,A=p.isAdvanced,E=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",children:I?(0,e.createVNode)(1,"span",null,I,0,{style:{"font-family":"'Courier New', monospace"}}):"Undetectable"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood Type",children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:L!=null?L:"Undetectable"}})})],4);if(!C)return(0,e.createComponentVNode)(2,t.LabeledList,{children:E});var P;return A&&(g!=null&&g!=="Unknown"?P=(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print Release Forms",onClick:function(){function j(){return v("print_release_forms",{strain_index:u.strainIndex})}return j}(),style:{"margin-left":"auto"}}):P=(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Name Disease",onClick:function(){function j(){return v("name_strain",{strain_index:u.strainIndex})}return j}(),style:{"margin-left":"auto"}})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Common Name",className:"common-name-label",children:(0,e.createComponentVNode)(2,t.Stack,{horizontal:!0,align:"center",children:[g!=null?g:"Unknown",P]})}),V&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:V}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Disease Agent",children:B}),E,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Spread Vector",children:x!=null?x:"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Possible Cures",children:w!=null?w:"None"})]})},S=function(u,s){var l,v=(0,a.useBackend)(s),N=v.act,C=v.data,p=!!C.synthesisCooldown,g=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:p?"spinner":"clone",iconSpin:p,content:"Clone",disabled:p,onClick:function(){function V(){return N("clone_strain",{strain_index:u.strainIndex})}return V}()}),u.sectionButtons],0);return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:(l=u.sectionTitle)!=null?l:"Strain Information",buttons:g,children:(0,e.createComponentVNode)(2,y,{strain:u.strain,strainIndex:u.strainIndex})})})},k=function(u,s){var l,v=(0,a.useBackend)(s),N=v.act,C=v.data,p=C.selectedStrainIndex,g=C.strains,V=g[p-1];if(g.length===0)return(0,e.createComponentVNode)(2,t.Section,{title:"Container Information",buttons:(0,e.createComponentVNode)(2,b),children:(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No disease detected in provided blood sample."})});if(g.length===1){var B;return(0,e.createFragment)([(0,e.createComponentVNode)(2,S,{strain:g[0],strainIndex:1,sectionButtons:(0,e.createComponentVNode)(2,b)}),((B=g[0].symptoms)==null?void 0:B.length)>0&&(0,e.createComponentVNode)(2,c,{strain:g[0]})],0)}var I=(0,e.createComponentVNode)(2,b);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Culture Information",fill:!0,buttons:I,children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",style:{height:"100%"},children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:g.map(function(L,w){var x;return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"virus",selected:p-1===w,onClick:function(){function A(){return N("switch_strain",{strain_index:w+1})}return A}(),children:(x=L.commonName)!=null?x:"Unknown"},w)})})}),(0,e.createComponentVNode)(2,S,{strain:V,strainIndex:p}),((l=V.symptoms)==null?void 0:l.length)>0&&(0,e.createComponentVNode)(2,c,{className:"remove-section-bottom-padding",strain:V})]})})})},h=function(u){return u.reduce(function(s,l){return s+l},0)},c=function(u){var s=u.strain.symptoms;return(0,e.createComponentVNode)(2,t.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Infection Symptoms",fill:!0,className:u.className,children:(0,e.createComponentVNode)(2,t.Table,{className:"symptoms-table",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stealth"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Resistance"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stage Speed"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Transmissibility"})]}),s.map(function(l,v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.stealth}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.resistance}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.stageSpeed}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.transmissibility})]},v)}),(0,e.createComponentVNode)(2,t.Table.Row,{className:"table-spacer"}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"font-weight":"bold"},children:"Total"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h(s.map(function(l){return l.stealth}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h(s.map(function(l){return l.resistance}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h(s.map(function(l){return l.stageSpeed}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h(s.map(function(l){return l.transmissibility}))})]})]})})})},i=["flask","vial","eye-dropper"],m=function(u,s){var l=(0,a.useBackend)(s),v=l.act,N=l.data,C=N.synthesisCooldown,p=N.beakerContainsVirus,g=N.resistances;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Antibodies",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{horizontal:!0,wrap:!0,children:g.map(function(V,B){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:i[B%i.length],disabled:!!C,onClick:function(){function I(){return v("clone_vaccine",{resistance_index:B+1})}return I}(),mr:"0.5em"}),V]},B)})})})})}},67921:function(T,r,n){"use strict";r.__esModule=!0,r.ParticleAccelerator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ParticleAccelerator=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.assembled,m=c.power,d=c.strength,u=c.max_strength;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:160,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Control Panel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Connect",onClick:function(){function s(){return h("scan")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",mb:"5px",children:(0,e.createComponentVNode)(2,t.Box,{color:i?"good":"bad",children:i?"Operational":"Error: Verify Configuration"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,disabled:!i,onClick:function(){function s(){return h("power")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Strength",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:!i||d===0,onClick:function(){function s(){return h("remove_strength")}return s}(),mr:"4px"}),d,(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:!i||d===u,onClick:function(){function s(){return h("add_strength")}return s}(),ml:"4px"})]})]})})})})}return b}()},71432:function(T,r,n){"use strict";r.__esModule=!0,r.PdaPainter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.PdaPainter=function(){function k(h,c){var i=(0,a.useBackend)(c),m=i.data,d=m.has_pda;return(0,e.createComponentVNode)(2,o.Window,{width:510,height:505,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:d?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,b)})})}return k}(),b=function(h,c){var i=(0,a.useBackend)(c),m=i.act;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"download",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{width:"160px",textAlign:"center",content:"Insert PDA",onClick:function(){function d(){return m("insert_pda")}return d}()})]})})})},y=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.pda_colors;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,S)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Table,{className:"PdaPainter__list",children:Object.keys(u).map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{onClick:function(){function l(){return m("choose_pda",{selectedPda:s})}return l}(),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+u[s][0],style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s})]},s)})})})})]})},S=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.current_appearance,s=d.preview_appearance;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Current PDA",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+u,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",content:"Eject",color:"green",onClick:function(){function l(){return m("eject_pda")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"paint-roller",content:"Paint PDA",onClick:function(){function l(){return m("paint_pda")}return l}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Preview",children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+s,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})})]})}},33388:function(T,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.PersonalCrafting=function(){function S(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.busy,u=m.category,s=m.display_craftable_only,l=m.display_compact,v=m.prev_cat,N=m.next_cat,C=m.subcategory,p=m.prev_subcat,g=m.next_subcat;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!d&&(0,e.createComponentVNode)(2,t.Dimmer,{fontSize:"32px",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog",spin:1})," Crafting..."]}),(0,e.createComponentVNode)(2,t.Section,{title:u,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:s?"check-square-o":"square-o",selected:s,onClick:function(){function V(){return i("toggle_recipes")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:l?"check-square-o":"square-o",selected:l,onClick:function(){function V(){return i("toggle_compact")}return V}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:v,icon:"arrow-left",onClick:function(){function V(){return i("backwardCat")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:N,icon:"arrow-right",onClick:function(){function V(){return i("forwardCat")}return V}()})]}),C&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:p,icon:"arrow-left",onClick:function(){function V(){return i("backwardSubCat")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:g,icon:"arrow-right",onClick:function(){function V(){return i("forwardSubCat")}return V}()})]}),l?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,y)]})]})})}return S}(),b=function(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.display_craftable_only,u=m.can_craft,s=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function v(){return i("make",{make:l.ref})}return v}()}),l.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:l.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:l.req_text,content:"Requirements",color:"transparent"}),l.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:l.tool_text,content:"Tools",color:"transparent"})]},l.name)}),!d&&s.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),l.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:l.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:l.req_text,content:"Requirements",color:"transparent"}),l.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:l.tool_text,content:"Tools",color:"transparent"})]},l.name)})]})})},y=function(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.display_craftable_only,u=m.can_craft,s=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[u.map(function(l){return(0,e.createComponentVNode)(2,t.Section,{title:l.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function v(){return i("make",{make:l.ref})}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[l.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:l.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:l.req_text}),l.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:l.tool_text})]})},l.name)}),!d&&s.map(function(l){return(0,e.createComponentVNode)(2,t.Section,{title:l.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[l.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:l.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:l.req_text}),l.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:l.tool_text})]})},l.name)})]})}},56150:function(T,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Photocopier=function(){function S(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:440,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Photocopier",color:"silver",children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Copies:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"2em",bold:!0,children:m.copynumber}),(0,e.createComponentVNode)(2,t.Stack.Item,{float:"right",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"minus",textAlign:"center",content:"",onClick:function(){function d(){return i("minus")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus",textAlign:"center",content:"",onClick:function(){function d(){return i("add")}return d}()})]})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Toner:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,children:m.toner})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Document:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!m.copyitem&&!m.mob,content:m.copyitem?m.copyitem:m.mob?m.mob+"'s ass!":"document",onClick:function(){function d(){return i("removedocument")}return d}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Folder:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!m.folder,content:m.folder?m.folder:"folder",onClick:function(){function d(){return i("removefolder")}return d}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,b)}),(0,e.createComponentVNode)(2,y)]})})})}return S}(),b=function(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.issilicon;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"copy",float:"center",textAlign:"center",content:"Copy",onClick:function(){function u(){return i("copy")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file-import",float:"center",textAlign:"center",content:"Scan",onClick:function(){function u(){return i("scandocument")}return u}()}),!!d&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file",color:"green",float:"center",textAlign:"center",content:"Print Text",onClick:function(){function u(){return i("ai_text")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"image",color:"green",float:"center",textAlign:"center",content:"Print Image",onClick:function(){function u(){return i("ai_pic")}return u}()})],4)],0)},y=function(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Scanned Files",children:m.files.map(function(d){return(0,e.createComponentVNode)(2,t.Section,{title:d.name,buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:m.toner<=0,onClick:function(){function u(){return i("filecopy",{uid:d.uid})}return u}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",content:"Delete",color:"bad",onClick:function(){function u(){return i("deletefile",{uid:d.uid})}return u}()})]})},d.name)})})}},84676:function(T,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=["tempKey"];function b(h,c){if(h==null)return{};var i={};for(var m in h)if({}.hasOwnProperty.call(h,m)){if(c.includes(m))continue;i[m]=h[m]}return i}var y={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up"},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right"},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down"},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},S=function(c,i){var m=c.tempKey,d=b(c,f),u=y[m];if(!u)return null;var s=(0,a.useBackend)(i),l=s.data,v=s.act,N=l.currentTemp,C=u.label,p=u.icon,g=m===N,V=function(){v("setTemp",{temp:m})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({color:"transparent",selected:g,onClick:V},d,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:p}),C]})))},k=r.PoolController=function(){function h(c,i){for(var m=(0,a.useBackend)(i),d=m.data,u=d.emagged,s=d.currentTemp,l=y[s]||y.normal,v=l.label,N=l.color,C=[],p=0,g=Object.entries(y);p50?"battery-half":"battery-quarter")||N==="C"&&"bolt"||N==="F"&&"battery-full"||N==="M"&&"slash",color:N==="N"&&(C>50?"yellow":"red")||N==="C"&&"yellow"||N==="F"&&"green"||N==="M"&&"orange"}),(0,e.createComponentVNode)(2,S.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(C)+"%"})],4)};u.defaultHooks=f.pureComponentHooks;var s=function(v){var N,C,p=v.status;switch(p){case"AOn":N=!0,C=!0;break;case"AOff":N=!0,C=!1;break;case"On":N=!1,C=!0;break;case"Off":N=!1,C=!1;break}var g=(C?"On":"Off")+(" ["+(N?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,S.ColorBox,{color:C?"good":"bad",content:N?void 0:"M",title:g})};s.defaultHooks=f.pureComponentHooks},50992:function(T,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(29319),f=n(3939),b=n(321),y=n(5485),S=n(98595),k=r.PrisonerImplantManager=function(){function h(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.loginState,l=u.prisonerInfo,v=u.chemicalInfo,N=u.trackingInfo,C;if(!s.logged_in)return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,y.LoginScreen)})});var p=[1,5,10];return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.LoginInfo),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Prisoner Points Manager System",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.name?"eject":"id-card",selected:l.name,content:l.name?l.name:"-----",tooltip:l.name?"Eject ID":"Insert ID",onClick:function(){function g(){return d("id_card")}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Points",children:[l.points!==null?l.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:l.points===null,content:"Reset",onClick:function(){function g(){return d("reset_points")}return g}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Point Goal",children:[l.goal!==null?l.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:l.goal===null,content:"Edit",onClick:function(){function g(){return(0,f.modalOpen)(i,"set_points")}return g}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createVNode)(1,"box",null,[(0,e.createTextVNode)("1 minute of prison time should roughly equate to 150 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Sentences should not exceed 5000 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Permanent prisoners should not be given a point goal."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Prisoners who meet their point goal will be able to automatically access their locker and return to the station using the shuttle.")],4,{hidden:l.goal===null})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Tracking Implants",children:N.map(function(g){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",g.subject]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:g.location}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:g.health}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Warn",tooltip:"Broadcast a message to this poor sod",onClick:function(){function V(){return(0,f.modalOpen)(i,"warn",{uid:g.uid})}return V}()})})]})]},g.subject)]}),(0,e.createVNode)(1,"br")],4)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Chemical Implants",children:v.map(function(g){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",g.name]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Reagents",children:g.volume})}),p.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:g.volumei;return(0,e.createComponentVNode)(2,t.ImageButton,{fluid:!0,asset:["prize_counter64x64",g.imageID],title:g.name,buttonsAlt:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{bold:!0,translucent:!0,fontSize:1.5,tooltip:V&&"Not enough tickets",disabled:V,onClick:function(){function B(){return h("purchase",{purchase:g.itemID})}return B}(),children:[g.cost,(0,e.createComponentVNode)(2,t.Icon,{m:0,mt:.25,name:"ticket",color:V?"bad":"good",size:1.6})]}),children:g.desc},g.name)})})})})})})}return b}()},94813:function(T,r,n){"use strict";r.__esModule=!0,r.RCD=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=n(49148),y=r.RCD=function(){function d(u,s){return(0,e.createComponentVNode)(2,o.Window,{width:480,height:670,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)]})})]})}return d}(),S=function(u,s){var l=(0,a.useBackend)(s),v=l.data,N=v.matter,C=v.max_matter,p=C*.7,g=C*.25;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Matter Storage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[p,1/0],average:[g,p],bad:[-1/0,g]},value:N,maxValue:C,children:(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:N+" / "+C+" units"})})})})},k=function(){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Construction Type",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,h,{mode_type:"Floors and Walls"}),(0,e.createComponentVNode)(2,h,{mode_type:"Airlocks"}),(0,e.createComponentVNode)(2,h,{mode_type:"Windows"}),(0,e.createComponentVNode)(2,h,{mode_type:"Deconstruction"})]})})})},h=function(u,s){var l=(0,a.useBackend)(s),v=l.act,N=l.data,C=u.mode_type,p=N.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",content:C,selected:p===C?1:0,onClick:function(){function g(){return v("mode",{mode:C})}return g}()})})},c=function(u,s){var l=(0,a.useBackend)(s),v=l.act,N=l.data,C=N.door_name,p=N.electrochromic,g=N.airlock_glass;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Airlock Settings",children:(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",icon:"pen-alt",content:(0,e.createFragment)([(0,e.createTextVNode)("Rename: "),(0,e.createVNode)(1,"b",null,C,0)],0),onClick:function(){function V(){return(0,f.modalOpen)(s,"renameAirlock")}return V}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:g===1&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:p?"toggle-on":"toggle-off",content:"Electrochromic",selected:p,onClick:function(){function V(){return v("electrochromic")}return V}()})})]})})})},i=function(u,s){var l=(0,a.useBackend)(s),v=l.act,N=l.data,C=N.tab,p=N.locked,g=N.one_access,V=N.selected_accesses,B=N.regions;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"cog",selected:C===1,onClick:function(){function I(){return v("set_tab",{tab:1})}return I}(),children:"Airlock Types"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===2,icon:"list",onClick:function(){function I(){return v("set_tab",{tab:2})}return I}(),children:"Airlock Access"})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:C===1?(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Types",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m,{check_number:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m,{check_number:1})})]})}):C===2&&p?(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Access",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock-open",content:"Unlock",onClick:function(){function I(){return v("set_lock",{new_lock:"unlock"})}return I}()}),children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Airlock access selection is currently locked."]})})}):(0,e.createComponentVNode)(2,b.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock",content:"Lock",onClick:function(){function I(){return v("set_lock",{new_lock:"lock"})}return I}()}),usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:g,content:"One",onClick:function(){function I(){return v("set_one_access",{access:"one"})}return I}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!g,width:4,content:"All",onClick:function(){function I(){return v("set_one_access",{access:"all"})}return I}()})],4),accesses:B,selectedList:V,accessMod:function(){function I(L){return v("set",{access:L})}return I}(),grantAll:function(){function I(){return v("grant_all")}return I}(),denyAll:function(){function I(){return v("clear_all")}return I}(),grantDep:function(){function I(L){return v("grant_region",{region:L})}return I}(),denyDep:function(){function I(L){return v("deny_region",{region:L})}return I}()})})],4)},m=function(u,s){for(var l=(0,a.useBackend)(s),v=l.act,N=l.data,C=N.door_types_ui_list,p=N.door_type,g=u.check_number,V=[],B=0;Bf?w=(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,mb:1,children:"There are new messages"}):w=(0,e.createComponentVNode)(2,t.Box,{color:"label",mb:1,children:"There are no new messages"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Main Menu",buttons:(0,e.createComponentVNode)(2,t.Button,{width:9,content:L?"Speaker Off":"Speaker On",selected:!L,icon:L?"volume-mute":"volume-up",onClick:function(){function x(){return g("toggleSilent")}return x}()}),children:[w,(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"View Messages",icon:B>f?"envelope-open-text":"envelope",onClick:function(){function x(){return g("setScreen",{setScreen:6})}return x}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Request Assistance",icon:"hand-paper",onClick:function(){function x(){return g("setScreen",{setScreen:1})}return x}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Request Supplies",icon:"box",onClick:function(){function x(){return g("setScreen",{setScreen:2})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Request Secondary Goal",icon:"clipboard-list",onClick:function(){function x(){return g("setScreen",{setScreen:11})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Relay Anonymous Information",icon:"comment",onClick:function(){function x(){return g("setScreen",{setScreen:3})}return x}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Print Shipping Label",icon:"tag",onClick:function(){function x(){return g("setScreen",{setScreen:9})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function x(){return g("setScreen",{setScreen:10})}return x}()})]})}),!!I&&(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){function x(){return g("setScreen",{setScreen:8})}return x}()})})]})})},c=function(N,C){var p=(0,a.useBackend)(C),g=p.act,V=p.data,B=V.department,I=[],L;switch(N.purpose){case"ASSISTANCE":I=V.assist_dept,L="Request assistance from another department";break;case"SUPPLIES":I=V.supply_dept,L="Request supplies from another department";break;case"INFO":I=V.info_dept,L="Relay information to another department";break}return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:L,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function w(){return g("setScreen",{setScreen:0})}return w}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:I.filter(function(w){return w!==B}).map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w,textAlign:"right",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function x(){return g("writeInput",{write:w,priority:y})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function x(){return g("writeInput",{write:w,priority:S})}return x}()})]},w)})})})})},i=function(N,C){var p=(0,a.useBackend)(C),g=p.act,V=p.data,B;switch(N.type){case"SUCCESS":B="Message sent successfully";break;case"FAIL":B="Unable to contact messaging server";break}return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:B,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function I(){return g("setScreen",{setScreen:0})}return I}()})})},m=function(N,C){var p=(0,a.useBackend)(C),g=p.act,V=p.data,B,I;switch(N.type){case"MESSAGES":B=V.message_log,I="Message Log";break;case"SHIPPING":B=V.shipping_log,I="Shipping label print log";break}return B.reverse(),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:I,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function L(){return g("setScreen",{setScreen:0})}return L}()}),children:B.map(function(L){return(0,e.createComponentVNode)(2,t.Box,{textAlign:"left",children:[L.map(function(w,x){return(0,e.createVNode)(1,"div",null,w,0,null,x)}),(0,e.createVNode)(1,"hr")]},L)})})})},d=function(N,C){var p=(0,a.useBackend)(C),g=p.act,V=p.data,B=V.recipient,I=V.message,L=V.msgVerified,w=V.msgStamped;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Message Authentication",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function x(){return g("setScreen",{setScreen:0})}return x}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:L}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:w})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){function x(){return g("department",{department:B})}return x}()})})})],4)},u=function(N,C){var p=(0,a.useBackend)(C),g=p.act,V=p.data,B=V.message,I=V.announceAuth;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Station-Wide Announcement",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function L(){return g("setScreen",{setScreen:0})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Edit Message",icon:"edit",onClick:function(){function L(){return g("writeAnnouncement")}return L}()})],4),children:B})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[I?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Send Announcement",icon:"bullhorn",disabled:!(I&&B),onClick:function(){function L(){return g("sendAnnouncement")}return L}()})]})})],4)},s=function(N,C){var p=(0,a.useBackend)(C),g=p.act,V=p.data,B=V.shipDest,I=V.msgVerified,L=V.ship_dept;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"Print Shipping Label",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function w(){return g("setScreen",{setScreen:0})}return w}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:I})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(B&&I),onClick:function(){function w(){return g("printLabel")}return w}()})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Destinations",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:L.map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w,textAlign:"right",className:"candystripe",children:(0,e.createComponentVNode)(2,t.Button,{content:B===w?"Selected":"Select",selected:B===w,onClick:function(){function x(){return g("shipSelect",{shipSelect:w})}return x}()})},w)})})})})],4)},l=function(N,C){var p=(0,a.useBackend)(C),g=p.act,V=p.data,B=V.secondaryGoalAuth,I=V.secondaryGoalEnabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Request Secondary Goal",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function L(){return g("setScreen",{setScreen:0})}return L}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[I?B?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Complete your current goal first!"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Request Secondary Goal",icon:"clipboard-list",disabled:!(B&&I),onClick:function(){function L(){return g("requestSecondaryGoal")}return L}()})]})})],4)}},9861:function(T,r,n){"use strict";r.__esModule=!0,r.RndBackupConsole=r.LinkMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.RndBackupConsole=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.network_name,d=i.has_disk,u=i.disk_name,s=i.linked,l=i.techs,v=i.last_timestamp;return(0,e.createComponentVNode)(2,o.Window,{width:900,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Device Info",children:[(0,e.createComponentVNode)(2,t.Box,{mb:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Network",children:s?(0,e.createComponentVNode)(2,t.Button,{content:m,icon:"unlink",selected:1,onClick:function(){function N(){return c("unlink")}return N}()}):"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Loaded Disk",children:d?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:u+" (Last backup: "+v+")",icon:"save",selected:1,onClick:function(){function N(){return c("eject_disk")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Save all",onClick:function(){function N(){return c("saveall2disk")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Load all",onClick:function(){function N(){return c("saveall2network")}return N}()})],4):"None"})]})}),!!s||(0,e.createComponentVNode)(2,b)]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Section,{title:"Tech Info",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Tech Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Level"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Disk Level"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),Object.keys(l).map(function(N){return!(l[N].network_level>0||l[N].disk_level>0)||(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l[N].name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l[N].network_level||"None"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l[N].disk_level||"None"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Load to network",disabled:!d||!s,onClick:function(){function C(){return c("savetech2network",{tech:N})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Load to disk",disabled:!d||!s,onClick:function(){function C(){return c("savetech2disk",{tech:N})}return C}()})]})]},N)})]})})})]})})}return y}(),b=r.LinkMenu=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.controllers;return(0,e.createComponentVNode)(2,t.Section,{title:"Setup Linkage",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),m.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function u(){return c("linktonetworkcontroller",{target_controller:d.addr})}return u}()})})]},d.addr)})]})})}return y}()},37556:function(T,r,n){"use strict";r.__esModule=!0,r.DataDiskMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o="design",f="tech",b=function(i,m){var d=(0,a.useBackend)(m),u=d.data,s=d.act,l=u.disk_data;return l?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:l.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:l.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:l.desc})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function v(){return s("updt_tech")}return v}()})})]}):null},y=function(i,m){var d=(0,a.useBackend)(m),u=d.data,s=d.act,l=u.disk_data;if(!l)return null;var v=l.name,N=l.lathe_types,C=l.materials,p=N.join(", ");return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:v}),p?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lathe Types",children:p}):null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Required Materials"})]}),C.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:["- ",(0,e.createVNode)(1,"span",null,g.name,0,{style:{"text-transform":"capitalize"}})," x ",g.amount]},g.name)}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function g(){return s("updt_design")}return g}()})})]})},S=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.disk_data;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Section,Object.assign({buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Erase",icon:"eraser",disabled:!l,onClick:function(){function v(){return u("erase_disk")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",icon:"eject",onClick:function(){function v(){u("eject_disk")}return v}()})],4)},i)))},k=function(i,m){var d=(0,a.useBackend)(m),u=d.data,s=d.act,l=u.disk_type,v=u.to_copy,N=i.title;return(0,e.createComponentVNode)(2,S,{title:N,children:(0,e.createComponentVNode)(2,t.Box,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:v.sort(function(C,p){return C.name.localeCompare(p.name)}).map(function(C){var p=C.name,g=C.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:p,children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){function V(){l===f?s("copy_tech",{id:g}):s("copy_design",{id:g})}return V}()})},g)})})})})},h=r.DataDiskMenu=function(){function c(i,m){var d=(0,a.useBackend)(m),u=d.data,s=u.disk_type,l=u.disk_data;if(!s)return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",children:"No disk loaded."});switch(s){case o:return l?(0,e.createComponentVNode)(2,S,{title:"Design Disk",children:(0,e.createComponentVNode)(2,y)}):(0,e.createComponentVNode)(2,k,{title:"Design Disk"});case f:return l?(0,e.createComponentVNode)(2,S,{title:"Technology Disk",children:(0,e.createComponentVNode)(2,b)}):(0,e.createComponentVNode)(2,k,{title:"Technology Disk"});default:return(0,e.createFragment)([(0,e.createTextVNode)("UNRECOGNIZED DISK TYPE")],4)}}return c}()},58147:function(T,r,n){"use strict";r.__esModule=!0,r.DeconstructionMenu=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=r.DeconstructionMenu=function(){function y(S,k){var h=(0,t.useBackend)(k),c=h.data,i=h.act,m=c.tech_levels,d=c.loaded_item,u=c.linked_destroy;return u?d?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Object Analysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Deconstruct",icon:"microscope",onClick:function(){function s(){i("deconstruct")}return s}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Eject",icon:"eject",onClick:function(){function s(){i("eject_item")}return s}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:d.name})})}),(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{id:"research-levels",children:[(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Research Field"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Current Level"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Object Level"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"New Level"})]}),m.map(function(s){return(0,e.createComponentVNode)(2,b,{techLevel:s},s.id)})]})})],4):(0,e.createComponentVNode)(2,o.Section,{title:"Deconstruction Menu",children:"No item loaded. Standing by..."}):(0,e.createComponentVNode)(2,o.Section,{title:"Deconstruction Menu",children:"NO DESTRUCTIVE ANALYZER LINKED TO CONSOLE"})}return y}(),b=function(S,k){var h=S.techLevel,c=h.name,i=h.desc,m=h.level,d=h.object_level,u=h.ui_icon,s=d!=null,l=s&&d>=m?Math.max(d,m+1):m;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"circle-info",tooltip:i})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:u})," ",c]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:m}),s?(0,e.createComponentVNode)(2,o.Table.Cell,{children:d}):(0,e.createComponentVNode)(2,o.Table.Cell,{className:"research-level-no-effect",children:"-"}),(0,e.createComponentVNode)(2,o.Table.Cell,{className:(0,a.classes)([l!==m&&"upgraded-level"]),children:l})]})}},16830:function(T,r,n){"use strict";r.__esModule=!0,r.LatheCategory=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(52662),f=r.LatheCategory=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.data,c=k.act,i=h.category,m=h.matching_designs,d=h.menu,u=d===4,s=u?"build":"imprint";return(0,e.createComponentVNode)(2,t.Section,{title:i,children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,t.Table,{className:"RndConsole__LatheCategory__MatchingDesigns",children:m.map(function(l){var v=l.id,N=l.name,C=l.can_build,p=l.materials;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:N,disabled:C<1,onClick:function(){function g(){return c(s,{id:v,amount:1})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function g(){return c(s,{id:v,amount:5})}return g}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function g(){return c(s,{id:v,amount:10})}return g}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.map(function(g){return(0,e.createFragment)([" | ",(0,e.createVNode)(1,"span",g.is_red?"color-red":null,[g.amount,(0,e.createTextVNode)(" "),g.name],0)],0)})})]},v)})})]})}return b}()},70497:function(T,r,n){"use strict";r.__esModule=!0,r.LatheChemicalStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheChemicalStorage=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.data,h=S.act,c=k.loaded_chemicals,i=k.menu===4;return(0,e.createComponentVNode)(2,t.Section,{title:"Chemical Storage",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Purge All",icon:"trash",onClick:function(){function m(){var d=i?"disposeallP":"disposeallI";h(d)}return m}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:c.map(function(m){var d=m.volume,u=m.name,s=m.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+d+" of "+u,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function l(){var v=i?"disposeP":"disposeI";h(v,{id:s})}return l}()})},s)})})]})}return f}()},70864:function(T,r,n){"use strict";r.__esModule=!0,r.LatheMainMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(52662),f=n(68198),b=r.LatheMainMenu=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.data,i=h.act,m=c.menu,d=c.categories,u=m===4?"Protolathe":"Circuit Imprinter";return(0,e.createComponentVNode)(2,t.Section,{title:u+" Menu",children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,f.LatheSearch),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:d.map(function(s){return(0,e.createComponentVNode)(2,t.Flex,{style:{"flex-basis":"50%","margin-bottom":"6px"},children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",content:s,onClick:function(){function l(){i("setCategory",{category:s})}return l}()})},s)})})]})}return y}()},42878:function(T,r,n){"use strict";r.__esModule=!0,r.LatheMaterialStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheMaterialStorage=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.data,h=S.act,c=k.loaded_materials;return(0,e.createComponentVNode)(2,t.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,e.createComponentVNode)(2,t.Table,{children:c.map(function(i){var m=i.id,d=i.amount,u=i.name,s=function(){function C(p){var g=k.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";h(g,{id:m,amount:p})}return C}(),l=Math.floor(d/2e3),v=d<1,N=l===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:v?"color-grey":"color-yellow",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"210px",children:["* ",d," of ",u]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",l," sheet",N,")"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d>=2e3?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"1x",icon:"eject",onClick:function(){function C(){return s(1)}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"C",icon:"eject",onClick:function(){function C(){return s("custom")}return C}()}),d>=2e3*5?(0,e.createComponentVNode)(2,t.Button,{content:"5x",icon:"eject",onClick:function(){function C(){return s(5)}return C}()}):null,(0,e.createComponentVNode)(2,t.Button,{content:"All",icon:"eject",onClick:function(){function C(){return s(50)}return C}()})],0):null})]},m)})})})}return f}()},52662:function(T,r,n){"use strict";r.__esModule=!0,r.LatheMaterials=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheMaterials=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.data,h=k.total_materials,c=k.max_materials,i=k.max_chemicals,m=k.total_chemicals;return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,e.createComponentVNode)(2,t.Table,{width:"auto",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Material Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h}),c?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+c}):null]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Chemical Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:m}),i?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+i}):null]})]})})}return f}()},9681:function(T,r,n){"use strict";r.__esModule=!0,r.LatheMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(12644),f=n(70864),b=n(16830),y=n(42878),S=n(70497),k=["menu"];function h(u,s){if(u==null)return{};var l={};for(var v in u)if({}.hasOwnProperty.call(u,v)){if(s.includes(v))continue;l[v]=u[v]}return l}var c=t.Tabs.Tab,i=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.menu===o.MENU.LATHE?["nav_protolathe",C.submenu_protolathe]:["nav_imprinter",C.submenu_imprinter],g=p[0],V=p[1],B=s.menu,I=h(s,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,c,Object.assign({selected:V===B,onClick:function(){function L(){return N(g,{menu:B})}return L}()},I)))},m=function(s){switch(s){case o.PRINTER_MENU.MAIN:return(0,e.createComponentVNode)(2,f.LatheMainMenu);case o.PRINTER_MENU.SEARCH:return(0,e.createComponentVNode)(2,b.LatheCategory);case o.PRINTER_MENU.MATERIALS:return(0,e.createComponentVNode)(2,y.LatheMaterialStorage);case o.PRINTER_MENU.CHEMICALS:return(0,e.createComponentVNode)(2,S.LatheChemicalStorage)}},d=r.LatheMenu=function(){function u(s,l){var v=(0,a.useBackend)(l),N=v.data,C=N.menu,p=N.linked_lathe,g=N.linked_imprinter;return C===o.MENU.LATHE&&!p?(0,e.createComponentVNode)(2,t.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):C===o.MENU.IMPRINTER&&!g?(0,e.createComponentVNode)(2,t.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,i,{menu:o.PRINTER_MENU.MAIN,icon:"bars",children:"Main Menu"}),(0,e.createComponentVNode)(2,i,{menu:o.PRINTER_MENU.MATERIALS,icon:"layer-group",children:"Materials"}),(0,e.createComponentVNode)(2,i,{menu:o.PRINTER_MENU.CHEMICALS,icon:"flask-vial",children:"Chemicals"})]}),m(N.menu===o.MENU.LATHE?N.submenu_protolathe:N.submenu_imprinter)]})}return u}()},68198:function(T,r,n){"use strict";r.__esModule=!0,r.LatheSearch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheSearch=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function h(c,i){return k("search",{to_search:i})}return h}()})})}return f}()},81421:function(T,r,n){"use strict";r.__esModule=!0,r.LinkMenu=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),f=r.LinkMenu=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.controllers;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Setup Linkage",children:(0,e.createComponentVNode)(2,o.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Link"})]}),i.map(function(m){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:m.addr}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:m.net_id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Link",icon:"link",onClick:function(){function d(){return h("linktonetworkcontroller",{target_controller:m.addr})}return d}()})})]},m.addr)})]})})})})}return b}()},6256:function(T,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.SettingsMenu=function(){function y(S,k){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,b)]})}return y}(),f=function(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.sync,d=i.admin;return(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",align:"flex-start",children:(0,e.createComponentVNode)(2,t.Button,{color:"red",icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function u(){c("unlink")}return u}()})})})},b=function(S,k){var h=(0,a.useBackend)(k),c=h.data,i=h.act,m=c.linked_destroy,d=c.linked_lathe,u=c.linked_imprinter;return(0,e.createComponentVNode)(2,t.Section,{title:"Linked Devices",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){function s(){return i("find_device")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destructive Analyzer",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",disabled:!m,content:m?"Unlink":"Undetected",onClick:function(){function s(){return i("disconnect",{item:"destroy"})}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Protolathe",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",disabled:!d,content:d?"Unlink":"Undetected",onClick:function(){function s(){i("disconnect",{item:"lathe"})}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Circuit Imprinter",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",disabled:!u,content:u?"Unlink":"Undetected",onClick:function(){function s(){return i("disconnect",{item:"imprinter"})}return s}()})})]})})}},12644:function(T,r,n){"use strict";r.__esModule=!0,r.RndConsole=r.PRINTER_MENU=r.MENU=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),f=n(35840),b=n(37556),y=n(9681),S=n(81421),k=n(6256),h=n(58147),c=["menu"];function i(p,g){if(p==null)return{};var V={};for(var B in p)if({}.hasOwnProperty.call(p,B)){if(g.includes(B))continue;V[B]=p[B]}return V}var m=o.Tabs.Tab,d=r.MENU={MAIN:0,DISK:2,DESTROY:3,LATHE:4,IMPRINTER:5,SETTINGS:6},u=r.PRINTER_MENU={MAIN:0,SEARCH:1,MATERIALS:2,CHEMICALS:3},s=function(g){switch(g){case d.MAIN:return(0,e.createComponentVNode)(2,C);case d.DISK:return(0,e.createComponentVNode)(2,b.DataDiskMenu);case d.DESTROY:return(0,e.createComponentVNode)(2,h.DeconstructionMenu);case d.LATHE:case d.IMPRINTER:return(0,e.createComponentVNode)(2,y.LatheMenu);case d.SETTINGS:return(0,e.createComponentVNode)(2,k.SettingsMenu);default:return"UNKNOWN MENU"}},l=function(g,V){var B=(0,a.useBackend)(V),I=B.act,L=B.data,w=L.menu,x=g.menu,A=i(g,c);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,m,Object.assign({selected:w===x,onClick:function(){function E(){return I("nav",{menu:x})}return E}()},A)))},v=r.RndConsole=function(){function p(g,V){var B=(0,a.useBackend)(V),I=B.act,L=B.data;if(!L.linked)return(0,e.createComponentVNode)(2,S.LinkMenu);var w=L.menu,x=L.linked_destroy,A=L.linked_lathe,E=L.linked_imprinter,P=L.wait_message;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole",children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,l,{icon:"flask",menu:d.MAIN,children:"Research"}),!!x&&(0,e.createComponentVNode)(2,l,{icon:"microscope",menu:d.DESTROY,children:"Analyze"}),!!A&&(0,e.createComponentVNode)(2,l,{icon:"print",menu:d.LATHE,children:"Protolathe"}),!!E&&(0,e.createComponentVNode)(2,l,{icon:"memory",menu:d.IMPRINTER,children:"Imprinter"}),(0,e.createComponentVNode)(2,l,{icon:"floppy-disk",menu:d.DISK,children:"Disk"}),(0,e.createComponentVNode)(2,l,{icon:"cog",menu:d.SETTINGS,children:"Settings"})]}),s(w),(0,e.createComponentVNode)(2,N)]})})})}return p}(),N=function(g,V){var B=(0,a.useBackend)(V),I=B.data,L=I.wait_message;return L?(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay",children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay__Wrapper",children:(0,e.createComponentVNode)(2,o.NoticeBox,{color:"black",children:L})})}):null},C=function(g,V){var B=(0,a.useBackend)(V),I=B.data,L=I.tech_levels;return(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{id:"research-levels",children:[(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Research Field"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Level"})]}),L.map(function(w){var x=w.id,A=w.name,E=w.desc,P=w.level,j=w.ui_icon;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"circle-info",tooltip:E})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:j})," ",A]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P})]},x)})]})})}},29205:function(T,r,n){"use strict";r.__esModule=!0,r.RndNetController=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=r.RndNetController=function(){function k(h,c){var i=(0,t.useBackend)(c),m=i.act,d=i.data,u=d.ion,s=(0,t.useLocalState)(c,"mainTabIndex",0),l=s[0],v=s[1],N=function(){function C(p){switch(p){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,S);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return C}();return(0,e.createComponentVNode)(2,f.Window,{width:900,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:l===0,onClick:function(){function C(){return v(0)}return C}(),children:"Network Management"},"ConfigPage"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"floppy-disk",selected:l===1,onClick:function(){function C(){return v(1)}return C}(),children:"Design Management"},"DesignPage")]}),N(l)]})})}return k}(),y=function(h,c){var i=(0,t.useBackend)(c),m=i.act,d=i.data,u=(0,t.useLocalState)(c,"filterType","ALL"),s=u[0],l=u[1],v=d.network_password,N=d.network_name,C=d.devices,p=[];p.push(s),s==="MSC"&&(p.push("BCK"),p.push("PGN"));var g=s==="ALL"?C:C.filter(function(V){return p.indexOf(V.dclass)>-1});return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Network Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Network Name",children:(0,e.createComponentVNode)(2,o.Button,{content:N||"Unset",selected:N,icon:"edit",onClick:function(){function V(){return m("network_name")}return V}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Network Password",children:(0,e.createComponentVNode)(2,o.Button,{content:v||"Unset",selected:v,icon:"lock",onClick:function(){function V(){return m("network_password")}return V}()})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Connected Devices",children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="ALL",onClick:function(){function V(){return l("ALL")}return V}(),icon:"network-wired",children:"All Devices"},"AllDevices"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="SRV",onClick:function(){function V(){return l("SRV")}return V}(),icon:"server",children:"R&D Servers"},"RNDServers"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="RDC",onClick:function(){function V(){return l("RDC")}return V}(),icon:"desktop",children:"R&D Consoles"},"RDConsoles"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="MFB",onClick:function(){function V(){return l("MFB")}return V}(),icon:"industry",children:"Exosuit Fabricators"},"Mechfabs"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="MSC",onClick:function(){function V(){return l("MSC")}return V}(),icon:"microchip",children:"Miscellaneous Devices"},"Misc")]}),(0,e.createComponentVNode)(2,o.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Device Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Device ID"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Unlink"})]}),g.map(function(V){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:V.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:V.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function B(){return m("unlink_device",{dclass:V.dclass,uid:V.id})}return B}()})})]},V.id)})]})]})],4)},S=function(h,c){var i=(0,t.useBackend)(c),m=i.act,d=i.data,u=d.designs,s=(0,t.useLocalState)(c,"searchText",""),l=s[0],v=s[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Design Management",children:[(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search for designs",mb:2,onInput:function(){function N(C,p){return v(p)}return N}()}),u.filter((0,a.createSearch)(l,function(N){return N.name})).map(function(N){return(0,e.createComponentVNode)(2,o.Button.Checkbox,{fluid:!0,content:N.name,checked:!N.blacklisted,onClick:function(){function C(){return m(N.blacklisted?"unblacklist_design":"blacklist_design",{d_uid:N.uid})}return C}()},N.name)})]})}},63315:function(T,r,n){"use strict";r.__esModule=!0,r.RndServer=void 0;var e=n(89005),a=n(72253),t=n(44879),o=n(36036),f=n(98595),b=r.RndServer=function(){function k(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.active,s=d.network_name;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"Server Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Machine power",children:(0,e.createComponentVNode)(2,o.Button,{content:u?"On":"Off",selected:u,icon:"power-off",onClick:function(){function l(){return m("toggle_active")}return l}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Link status",children:s===null?(0,e.createComponentVNode)(2,o.Box,{color:"red",children:"Unlinked"}):(0,e.createComponentVNode)(2,o.Box,{color:"green",children:"Linked"})})]})}),s===null?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,y)]})})}return k}(),y=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.network_name;return(0,e.createComponentVNode)(2,o.Section,{title:"Network Info",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Connected network ID",children:u}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unlink",children:(0,e.createComponentVNode)(2,o.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function s(){return m("unlink")}return s}()})})]})})},S=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.controllers;return(0,e.createComponentVNode)(2,o.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,o.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Link"})]}),u.map(function(s){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:s.netname}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Link",icon:"link",onClick:function(){function l(){return m("link",{addr:s.addr})}return l}()})})]},s.addr)})]})})}},26109:function(T,r,n){"use strict";r.__esModule=!0,r.RobotSelfDiagnosis=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(25328),b=function(k,h){var c=k/h;return c<=.2?"good":c<=.5?"average":"bad"},y=r.RobotSelfDiagnosis=function(){function S(k,h){var c=(0,a.useBackend)(h),i=c.data,m=i.component_data;return(0,e.createComponentVNode)(2,o.Window,{width:280,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:m.map(function(d,u){return(0,e.createComponentVNode)(2,t.Section,{title:(0,f.capitalize)(d.name),children:d.installed<=0?(0,e.createComponentVNode)(2,t.NoticeBox,{m:-.5,height:3.5,color:"red",style:{"font-style":"normal"},children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,textAlign:"center",align:"center",color:"#e8e8e8",children:d.installed===-1?"Destroyed":"Missing"})})}):(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"72%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",color:b(d.brute_damage,d.max_damage),children:d.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:b(d.electronic_damage,d.max_damage),children:d.electronic_damage})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Powered",color:d.powered?"good":"bad",children:d.powered?"Yes":"No"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Enabled",color:d.status?"good":"bad",children:d.status?"Yes":"No"})]})})]})},u)})})})}return S}()},97997:function(T,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.RoboticsControlConsole=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.can_hack,d=i.safety,u=i.show_lock_all,s=i.cyborgs,l=s===void 0?[]:s;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!u&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Lock Down",children:[(0,e.createComponentVNode)(2,t.Button,{icon:d?"lock":"unlock",content:d?"Disable Safety":"Enable Safety",selected:d,onClick:function(){function v(){return c("arm",{})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lock",disabled:d,content:"Lock ALL Cyborgs",color:"bad",onClick:function(){function v(){return c("masslock",{})}return v}()})]}),(0,e.createComponentVNode)(2,b,{cyborgs:l,can_hack:m})]})})}return y}(),b=function(S,k){var h=S.cyborgs,c=S.can_hack,i=(0,a.useBackend)(k),m=i.act,d=i.data,u="Detonate";return d.detonate_cooldown>0&&(u+=" ("+d.detonate_cooldown+"s)"),h.length?h.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,buttons:(0,e.createFragment)([!!s.hackable&&!s.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function l(){return m("hackbot",{uid:s.uid})}return l}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:s.locked_down?"unlock":"lock",color:s.locked_down?"good":"default",content:s.locked_down?"Release":"Lockdown",disabled:!d.auth,onClick:function(){function l(){return m("stopbot",{uid:s.uid})}return l}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:u,disabled:!d.auth||d.detonate_cooldown>0,color:"bad",onClick:function(){function l(){return m("killbot",{uid:s.uid})}return l}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Box,{color:s.status?"bad":s.locked_down?"average":"good",children:s.status?"Not Responding":s.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:s.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s.health>50?"good":"bad",value:s.health/100})}),typeof s.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s.charge>30?"good":"bad",value:s.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:s.cell_capacity<3e4?"average":"good",children:s.cell_capacity})})],4)||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Power Cell"})}),!!s.is_hacked&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safeties",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"DISABLED"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Module",children:s.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:s.synchronization?"default":"average",children:s.synchronization||"None"})})]})},s.uid)}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cyborg units detected within access parameters."})}},54431:function(T,r,n){"use strict";r.__esModule=!0,r.Safe=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Safe=function(){function k(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.dial,s=d.open,l=d.locked,v=d.contents;return(0,e.createComponentVNode)(2,o.Window,{theme:"safe",width:600,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving",children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"25%"}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,e.createComponentVNode)(2,t.Icon,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:"3"}),(0,e.createVNode)(1,"br"),s?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,t.Box,{as:"img",className:"Safe--dial",src:"safe_dial.png",style:{transform:"rotate(-"+3.6*u+"deg)","z-index":0}})]}),!s&&(0,e.createComponentVNode)(2,S)]})})}return k}(),b=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.dial,s=d.open,l=d.locked,v=function(C,p){return(0,e.createComponentVNode)(2,t.Button,{disabled:s||p&&!l,icon:"arrow-"+(p?"right":"left"),content:(p?"Right":"Left")+" "+C,iconRight:p,onClick:function(){function g(){return m(p?"turnleft":"turnright",{num:C})}return g}(),style:{"z-index":10}})};return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:l,icon:s?"lock":"lock-open",content:s?"Close":"Open",mb:"0.5rem",onClick:function(){function N(){return m("open")}return N}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{position:"absolute",children:[v(50),v(10),v(1)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[v(1,!0),v(10,!0),v(50,!0)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--number",children:u})]})},y=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.contents;return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--contents",overflow:"auto",children:u.map(function(s,l){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mb:"0.5rem",onClick:function(){function v(){return m("retrieve",{index:l+1})}return v}(),children:[(0,e.createComponentVNode)(2,t.Box,{as:"img",src:s.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),s.name]}),(0,e.createVNode)(1,"br")],4,s)})})},S=function(h,c){return(0,e.createComponentVNode)(2,t.Section,{className:"Safe--help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,e.createComponentVNode)(2,t.Box,{children:["1. Turn the dial left to the first number.",(0,e.createVNode)(1,"br"),"2. Turn the dial right to the second number.",(0,e.createVNode)(1,"br"),"3. Continue repeating this process for each number, switching between left and right each time.",(0,e.createVNode)(1,"br"),"4. Open the safe."]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},29740:function(T,r,n){"use strict";r.__esModule=!0,r.SatelliteControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SatelliteControl=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.satellites,m=c.notice,d=c.meteor_shield,u=c.meteor_shield_coverage,s=c.meteor_shield_coverage_max,l=c.meteor_shield_coverage_percentage;return(0,e.createComponentVNode)(2,o.Window,{width:475,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[d&&(0,e.createComponentVNode)(2,t.Section,{title:"Station Shield Coverage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:l>=100?"good":"average",value:u,maxValue:s,children:[l," %"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Satellite Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alert",color:"red",children:c.notice}),i.map(function(v){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+v.id,children:[v.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:v.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function N(){return h("toggle",{id:v.id})}return N}()})]},v.id)})]})})]})})}return b}()},44162:function(T,r,n){"use strict";r.__esModule=!0,r.SecureStorage=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(98595),b=n(36352),y=n(92986),S=r.SecureStorage=function(){function i(m,d){return(0,e.createComponentVNode)(2,f.Window,{theme:"securestorage",height:500,width:280,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,h)})})})})}return i}(),k=function(m,d){var u=(0,t.useBackend)(d),s=u.act,l=window.event?m.which:m.keyCode;if(l===y.KEY_ENTER){m.preventDefault(),s("keypad",{digit:"E"});return}if(l===y.KEY_ESCAPE){m.preventDefault(),s("keypad",{digit:"C"});return}if(l===y.KEY_BACKSPACE){m.preventDefault(),s("backspace");return}if(l>=y.KEY_0&&l<=y.KEY_9){m.preventDefault(),s("keypad",{digit:l-y.KEY_0});return}if(l>=y.KEY_NUMPAD_0&&l<=y.KEY_NUMPAD_9){m.preventDefault(),s("keypad",{digit:l-y.KEY_NUMPAD_0});return}},h=function(m,d){var u=(0,t.useBackend)(d),s=u.act,l=u.data,v=l.locked,N=l.no_passcode,C=l.emagged,p=l.user_entered_code,g=[["1","2","3"],["4","5","6"],["7","8","9"],["C","0","E"]],V=N?"":v?"bad":"good";return(0,e.createComponentVNode)(2,o.Section,{fill:!0,onKeyDown:function(){function B(I){return k(I,d)}return B}(),children:[(0,e.createComponentVNode)(2,o.Stack.Item,{height:7.3,children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["SecureStorage__displayBox","SecureStorage__displayBox--"+V]),height:"100%",children:C?"ERROR":p})}),(0,e.createComponentVNode)(2,o.Table,{children:g.map(function(B){return(0,e.createComponentVNode)(2,b.TableRow,{children:B.map(function(I){return(0,e.createComponentVNode)(2,b.TableCell,{children:(0,e.createComponentVNode)(2,c,{number:I})},I)})},B[0])})})]})},c=function(m,d){var u=(0,t.useBackend)(d),s=u.act,l=u.data,v=m.number;return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,bold:!0,mb:"6px",content:v,textAlign:"center",fontSize:"60px",lineHeight:1.25,width:"80px",className:(0,a.classes)(["SecureStorage__Button","SecureStorage__Button--keypad","SecureStorage__Button--"+v]),onClick:function(){function N(){return s("keypad",{digit:v})}return N}()})}},6272:function(T,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=n(3939),y=n(321),S=n(5485),k=n(22091),h={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},c=function(p,g){(0,b.modalOpen)(p,"edit",{field:g.edit,value:g.value})},i=r.SecurityRecords=function(){function C(p,g){var V=(0,t.useBackend)(g),B=V.act,I=V.data,L=I.loginState,w=I.currentPage,x;if(L.logged_in)w===1?x=(0,e.createComponentVNode)(2,d):w===2&&(x=(0,e.createComponentVNode)(2,l));else return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,b.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,k.TemporaryNotice),(0,e.createComponentVNode)(2,m),x]})})]})}return C}(),m=function(p,g){var V=(0,t.useBackend)(g),B=V.act,I=V.data,L=I.currentPage,w=I.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:L===1,onClick:function(){function x(){return B("page",{page:1})}return x}(),children:"List Records"}),L===2&&w&&!w.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:L===2,children:["Record: ",w.fields[0].value]})]})})},d=function(p,g){var V=(0,t.useBackend)(g),B=V.act,I=V.data,L=I.records,w=(0,t.useLocalState)(g,"searchText",""),x=w[0],A=w[1],E=(0,t.useLocalState)(g,"sortId","name"),P=E[0],j=E[1],M=(0,t.useLocalState)(g,"sortOrder",!0),R=M[0],D=M[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,s)}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"SecurityRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,u,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,u,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,u,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,u,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,u,{id:"status",children:"Criminal Status"})]}),L.filter((0,a.createSearch)(x,function(W){return W.name+"|"+W.id+"|"+W.rank+"|"+W.fingerprint+"|"+W.status})).sort(function(W,_){var U=R?1:-1;return W[P].localeCompare(_[P])*U}).map(function(W){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+h[W.status],onClick:function(){function _(){return B("view",{uid_gen:W.uid_gen,uid_sec:W.uid_sec})}return _}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",W.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:W.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:W.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:W.fingerprint}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:W.status})]},W.id)})]})})})],4)},u=function(p,g){var V=(0,t.useLocalState)(g,"sortId","name"),B=V[0],I=V[1],L=(0,t.useLocalState)(g,"sortOrder",!0),w=L[0],x=L[1],A=p.id,E=p.children;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:B!==A&&"transparent",fluid:!0,onClick:function(){function P(){B===A?x(!w):(I(A),x(!0))}return P}(),children:[E,B===A&&(0,e.createComponentVNode)(2,o.Icon,{name:w?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},s=function(p,g){var V=(0,t.useBackend)(g),B=V.act,I=V.data,L=I.isPrinting,w=(0,t.useLocalState)(g,"searchText",""),x=w[0],A=w[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:"0.25rem",content:"New Record",icon:"plus",onClick:function(){function E(){return B("new_general")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:L,icon:L?"spinner":"print",iconSpin:!!L,content:"Print Cell Log",onClick:function(){function E(){return(0,b.modalOpen)(g,"print_cell_log")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by Name, ID, Assignment, Fingerprint, Status",fluid:!0,onInput:function(){function E(P,j){return A(j)}return E}()})})]})},l=function(p,g){var V=(0,t.useBackend)(g),B=V.act,I=V.data,L=I.isPrinting,w=I.general,x=I.security;return!w||!w.fields?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"General records lost!"}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:L,icon:L?"spinner":"print",iconSpin:!!L,content:"Print Record",onClick:function(){function A(){return B("print_record")}return A}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"WARNING: This will also delete the Security and Medical records associated with this crew member!",tooltipPosition:"bottom-start",content:"Delete Record",onClick:function(){function A(){return B("delete_general")}return A}()})],4),children:(0,e.createComponentVNode)(2,v)})}),!x||!x.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function A(){return B("new_security")}return A}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Security records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:x.empty,content:"Delete Record",onClick:function(){function A(){return B("delete_security")}return A}()}),children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:x.fields.map(function(A,E){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:A.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(A.value),!!A.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:A.line_break?"1rem":"initial",onClick:function(){function P(){return c(g,A)}return P}()})]},E)})})})})}),(0,e.createComponentVNode)(2,N)],4)],0)},v=function(p,g){var V=(0,t.useBackend)(g),B=V.data,I=B.general;return!I||!I.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:I.fields.map(function(L,w){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:L.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(""+L.value),!!L.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:L.line_break?"1rem":"initial",onClick:function(){function x(){return c(g,L)}return x}()})]},w)})})}),!!I.has_photos&&I.photos.map(function(L,w){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:L,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",w+1]},w)})]})},N=function(p,g){var V=(0,t.useBackend)(g),B=V.act,I=V.data,L=I.security;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function w(){return(0,b.modalOpen)(g,"comment_add")}return w}()}),children:L.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):L.comments.map(function(w,x){return(0,e.createComponentVNode)(2,o.Box,{preserveWhitespace:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:w.header||"Auto-generated"}),(0,e.createVNode)(1,"br"),w.text||w,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function A(){return B("comment_delete",{id:x+1})}return A}()})]},x)})})})}},5099:function(T,r,n){"use strict";r.__esModule=!0,r.SeedExtractor=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=n(3939);function y(u,s){var l=typeof Symbol!="undefined"&&u[Symbol.iterator]||u["@@iterator"];if(l)return(l=l.call(u)).next.bind(l);if(Array.isArray(u)||(l=S(u))||s&&u&&typeof u.length=="number"){l&&(u=l);var v=0;return function(){return v>=u.length?{done:!0}:{done:!1,value:u[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(u,s){if(u){if(typeof u=="string")return k(u,s);var l={}.toString.call(u).slice(8,-1);return l==="Object"&&u.constructor&&(l=u.constructor.name),l==="Map"||l==="Set"?Array.from(u):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?k(u,s):void 0}}function k(u,s){(s==null||s>u.length)&&(s=u.length);for(var l=0,v=Array(s);l=x},N=function(w,x){return w<=x},C=s.split(" "),p=[],g=function(){var w=I.value,x=w.split(":");if(x.length===0)return 0;if(x.length===1)return p.push(function(P){return(P.name+" ("+P.variant+")").toLocaleLowerCase().includes(x[0].toLocaleLowerCase())}),0;if(x.length>2)return{v:function(){function P(j){return!1}return P}()};var A,E=l;if(x[1][x[1].length-1]==="-"?(E=N,A=Number(x[1].substring(0,x[1].length-1))):x[1][x[1].length-1]==="+"?(E=v,A=Number(x[1].substring(0,x[1].length-1))):A=Number(x[1]),isNaN(A))return{v:function(){function P(j){return!1}return P}()};switch(x[0].toLocaleLowerCase()){case"l":case"life":case"lifespan":p.push(function(P){return E(P.lifespan,A)});break;case"e":case"end":case"endurance":p.push(function(P){return E(P.endurance,A)});break;case"m":case"mat":case"maturation":p.push(function(P){return E(P.maturation,A)});break;case"pr":case"prod":case"production":p.push(function(P){return E(P.production,A)});break;case"y":case"yield":p.push(function(P){return E(P.yield,A)});break;case"po":case"pot":case"potency":p.push(function(P){return E(P.potency,A)});break;case"s":case"stock":case"c":case"count":case"a":case"amount":p.push(function(P){return E(P.amount,A)});break;default:return{v:function(){function P(j){return!1}return P}()}}},V,B=y(C),I;!(I=B()).done;)if(V=g(),V!==0&&V)return V.v;return function(L){for(var w=0,x=p;w=1?Number(E):1)}return x}()})]})]})}},2916:function(T,r,n){"use strict";r.__esModule=!0,r.ShuttleConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ShuttleConsole=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:c.status?c.status:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Missing"})}),!!c.shuttle&&(!!c.docking_ports_len&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Send to ",children:c.docking_ports.map(function(i){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:i.name,onClick:function(){function m(){return h("move",{move:i.id})}return m}()},i.name)})})||(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:"red",children:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Locked"})}),!!c.admin_controlled&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorization",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-circle",content:"Request Authorization",disabled:!c.status,onClick:function(){function i(){return h("request")}return i}()})})],0))]})})})})}return b}()},39401:function(T,r,n){"use strict";r.__esModule=!0,r.ShuttleManipulator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ShuttleManipulator=function(){function k(h,c){var i=(0,a.useLocalState)(c,"tabIndex",0),m=i[0],d=i[1],u=function(){function s(l){switch(l){case 0:return(0,e.createComponentVNode)(2,b);case 1:return(0,e.createComponentVNode)(2,y);case 2:return(0,e.createComponentVNode)(2,S);default:return"WE SHOULDN'T BE HERE!"}}return s}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===0,onClick:function(){function s(){return d(0)}return s}(),icon:"info-circle",children:"Status"},"Status"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===1,onClick:function(){function s(){return d(1)}return s}(),icon:"file-import",children:"Templates"},"Templates"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===2,onClick:function(){function s(){return d(2)}return s}(),icon:"tools",children:"Modification"},"Modification")]}),u(m)]})})})}return k}(),b=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:u.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:s.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Timer",children:s.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Mode",children:s.mode}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:s.status}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function l(){return m("jump_to",{type:"mobile",id:s.id})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function l(){return m("fast_travel",{id:s.id})}return l}()})]})]})},s.name)})})},y=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.templates_tabs,s=d.existing_shuttle,l=d.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:u.map(function(v){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===s.id,icon:"file",onClick:function(){function N(){return m("select_template_category",{cat:v})}return N}(),children:v},v)})}),!!s&&l[s.id].templates.map(function(v){return(0,e.createComponentVNode)(2,t.Section,{title:v.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[v.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:v.description}),v.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:v.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Load Template",icon:"download",onClick:function(){function N(){return m("select_template",{shuttle_id:v.shuttle_id})}return N}()})})]})},v.name)})]})},S=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.existing_shuttle,s=d.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[u?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+u.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:u.status}),u.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:u.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function l(){return m("jump_to",{type:"mobile",id:u.id})}return l}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: None"}),s?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: "+s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:s.description}),s.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:s.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Preview",icon:"eye",onClick:function(){function l(){return m("preview",{shuttle_id:s.shuttle_id})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function l(){return m("load",{shuttle_id:s.shuttle_id})}return l}()})]})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: None"})]})}},88284:function(T,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=[["good","Alive"],["average","Critical"],["bad","DEAD"]],y=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},k=["bad","average","average","good","average","average","bad"],h=r.Sleeper=function(){function l(v,N){var C=(0,t.useBackend)(N),p=C.act,g=C.data,V=g.hasOccupant,B=V?(0,e.createComponentVNode)(2,c):(0,e.createComponentVNode)(2,s);return(0,e.createComponentVNode)(2,f.Window,{width:550,height:760,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:B}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,d)})]})})})}return l}(),c=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=C.data,V=g.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,u)],4)},i=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=C.data,V=g.occupant,B=g.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{icon:B?"toggle-on":"toggle-off",selected:B,content:B?"On":"Off",onClick:function(){function I(){return p("auto_eject_dead_"+(B?"off":"on"))}return I}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function I(){return p("ejectify")}return I}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:V.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:V.maxHealth,value:V.health/V.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(V.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:b[V.stat][0],children:b[V.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:V.maxTemp,value:V.bodyTemperature/V.maxTemp,color:k[V.temperatureSuitability+3],children:[(0,a.round)(V.btCelsius,0),"\xB0C,",(0,a.round)(V.btFaren,0),"\xB0F"]})}),!!V.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:V.bloodMax,value:V.bloodLevel/V.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[V.bloodPercent,"%, ",V.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[V.pulse," BPM"]})],4)]})})},m=function(v,N){var C=(0,t.useBackend)(N),p=C.data,g=p.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:y.map(function(V,B){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:V[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:g[V[1]]/100,ranges:S,children:(0,a.round)(g[V[1]],0)},B)},B)})})})},d=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=C.data,V=g.hasOccupant,B=g.isBeakerLoaded,I=g.beakerMaxSpace,L=g.beakerFreeSpace,w=g.dialysis,x=w&&L>0;return(0,e.createComponentVNode)(2,o.Section,{title:"Dialysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!B||L<=0||!V,selected:x,icon:x?"toggle-on":"toggle-off",content:x?"Active":"Inactive",onClick:function(){function A(){return p("togglefilter")}return A}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,icon:"eject",content:"Eject",onClick:function(){function A(){return p("removebeaker")}return A}()})],4),children:B?(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:I,value:L/I,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[L,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})})},u=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=C.data,V=g.occupant,B=g.chemicals,I=g.maxchem,L=g.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Chemicals",children:B.map(function(w,x){var A="",E;return w.overdosing?(A="bad",E=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):w.od_warning&&(A="average",E=(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.createComponentVNode)(2,o.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{title:w.title,level:"3",mx:"0",lineHeight:"18px",buttons:E,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:I,value:w.occ_amount/I,color:A,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[w.pretty_amount,"/",I,"u"]}),L.map(function(P,j){return(0,e.createComponentVNode)(2,o.Button,{disabled:!w.injectable||w.occ_amount+P>I||V.stat===2,icon:"syringe",content:"Inject "+P+"u",title:"Inject "+P+"u of "+w.title+" into the occupant",mb:"0",height:"19px",onClick:function(){function M(){return p("chemical",{chemid:w.id,amount:P})}return M}()},j)})]})})},x)})})},s=function(v,N){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},21597:function(T,r,n){"use strict";r.__esModule=!0,r.SlotMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SlotMachine=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data;if(c.money===null)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:90,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"Could not scan your card or could not find account!"}),(0,e.createComponentVNode)(2,t.Box,{children:"Please wear or hold your ID and try again."})]})})});var i;return c.plays===1?i=c.plays+" player has tried their luck today!":i=c.plays+" players have tried their luck today!",(0,e.createComponentVNode)(2,o.Window,{width:300,height:151,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{lineHeight:2,children:i}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Credits Remaining",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:c.money})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"10 credits to spin",children:(0,e.createComponentVNode)(2,t.Button,{icon:"coins",disabled:c.working,content:c.working?"Spinning...":"Spin",onClick:function(){function m(){return h("spin")}return m}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:c.resultlvl,children:c.result})]})})})}return b}()},46348:function(T,r,n){"use strict";r.__esModule=!0,r.Smartfridge=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Smartfridge=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.secure,m=c.can_dry,d=c.drying,u=c.contents;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!i&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Secure Access: Please have your identification ready."}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:m?"Drying rack":"Contents",buttons:!!m&&(0,e.createComponentVNode)(2,t.Button,{width:4,icon:d?"power-off":"times",content:d?"On":"Off",selected:d,onClick:function(){function s(){return h("drying")}return s}()}),children:[!u&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cookie-bite",size:5,color:"brown"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No products loaded."]})}),!!u&&u.slice().sort(function(s,l){return s.display_name.localeCompare(l.display_name)}).map(function(s){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"55%",children:s.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",children:["(",s.quantity," in stock)"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:13,children:[(0,e.createComponentVNode)(2,t.Button,{width:3,icon:"arrow-down",tooltip:"Dispense one.",content:"1",onClick:function(){function l(){return h("vend",{index:s.vend,amount:1})}return l}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:s.quantity,step:1,stepPixelSize:3,onChange:function(){function l(v,N){return h("vend",{index:s.vend,amount:N})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"All",tooltip:"Dispense all.",tooltipPosition:"bottom-start",onClick:function(){function l(){return h("vend",{index:s.vend,amount:s.quantity})}return l}()})]})]},s)})]})]})})})}return b}()},86162:function(T,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(49968),f=n(98595),b=1e3,y=r.Smes=function(){function S(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.capacityPercent,u=m.capacity,s=m.charge,l=m.inputAttempt,v=m.inputting,N=m.inputLevel,C=m.inputLevelMax,p=m.inputAvailable,g=m.outputPowernet,V=m.outputAttempt,B=m.outputting,I=m.outputLevel,L=m.outputLevelMax,w=m.outputUsed,x=d>=100&&"good"||v&&"average"||"bad",A=B&&"good"||s>0&&"average"||"bad";return(0,e.createComponentVNode)(2,f.Window,{width:340,height:345,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:d*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:l?"sync-alt":"times",selected:l,onClick:function(){function E(){return i("tryinput")}return E}(),children:l?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:x,children:d>=100&&"Fully Charged"||v&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:N===0,onClick:function(){function E(){return i("input",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:N===0,onClick:function(){function E(){return i("input",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:N/b,fillValue:p/b,minValue:0,maxValue:C/b,step:5,stepPixelSize:4,format:function(){function E(P){return(0,o.formatPower)(P*b,1)}return E}(),onChange:function(){function E(P,j){return i("input",{target:j*b})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:N===C,onClick:function(){function E(){return i("input",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:N===C,onClick:function(){function E(){return i("input",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(p)})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:V?"power-off":"times",selected:V,onClick:function(){function E(){return i("tryoutput")}return E}(),children:V?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:A,children:g?B?"Sending":s>0?"Not Sending":"No Charge":"Not Connected"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Output",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:I===0,onClick:function(){function E(){return i("output",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:I===0,onClick:function(){function E(){return i("output",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:I/b,minValue:0,maxValue:L/b,step:5,stepPixelSize:4,format:function(){function E(P){return(0,o.formatPower)(P*b,1)}return E}(),onChange:function(){function E(P,j){return i("output",{target:j*b})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:I===L,onClick:function(){function E(){return i("output",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:I===L,onClick:function(){function E(){return i("output",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(w)})]})})]})})})}return S}()},63584:function(T,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SolarControl=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=0,m=1,d=2,u=c.generated,s=c.generated_ratio,l=c.tracking_state,v=c.tracking_rate,N=c.connected_panels,C=c.connected_tracker,p=c.cdir,g=c.direction,V=c.rotating_direction;return(0,e.createComponentVNode)(2,o.Window,{width:490,height:277,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){function B(){return h("refresh")}return B}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar tracker",color:C?"good":"bad",children:C?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color:N>0?"good":"bad",children:N})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power output",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:s,children:u+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[p,"\xB0 (",g,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[l===d&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),l===m&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",v,"\xB0/h (",V,")"," "]}),l===i&&(0,e.createComponentVNode)(2,t.Box,{children:" Tracker offline "})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[l!==d&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:p,onDrag:function(){function B(I,L){return h("cdir",{cdir:L})}return B}()}),l===d&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker status",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:l===i,onClick:function(){function B(){return h("track",{track:i})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:l===m,onClick:function(){function B(){return h("track",{track:m})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:l===d,disabled:!C,onClick:function(){function B(){return h("track",{track:d})}return B}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[l===m&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:v,format:function(){function B(I){var L=Math.sign(I)>0?"+":"-";return L+Math.abs(I)}return B}(),onDrag:function(){function B(I,L){return h("tdir",{tdir:L})}return B}()}),l===i&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),l===d&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return b}()},38096:function(T,r,n){"use strict";r.__esModule=!0,r.SpawnersMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SpawnersMenu=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.spawners||[];return(0,e.createComponentVNode)(2,o.Window,{width:700,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:i.map(function(m){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:m.name+" ("+m.amount_left+" left)",level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function d(){return h("jump",{ID:m.uids})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function d(){return h("spawn",{ID:m.uids})}return d}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:m.desc}),!!m.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:m.fluff}),!!m.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:m.important_info})]},m.name)})})})})}return b}()},30586:function(T,r,n){"use strict";r.__esModule=!0,r.SpecMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SpecMenu=function(){function h(c,i){return(0,e.createComponentVNode)(2,o.Window,{width:1100,height:600,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,k)]})})})}return h}(),b=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Hemomancer",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function l(){return d("hemomancer")}return l}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on blood magic and the manipulation of blood around you.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Vampiric claws",16),(0,e.createTextVNode)(": Unlocked at 150 blood, allows you to summon a robust pair of claws that attack rapidly, drain a targets blood, and heal you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood Barrier",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to select two turfs and create a wall between them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood tendrils",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to slow everyone in a targeted 3x3 area after a short delay.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Sanguine pool",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to travel at high speeds for a short duration. Doing this leaves behind blood splatters. You can move through anything but walls and space when doing this.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Predator senses",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to sniff out anyone within the same sector as you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood eruption",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to manipulate all nearby blood splatters, in 4 tiles around you, into spikes that impale anyone stood ontop of them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"The blood bringers rite",16),(0,e.createTextVNode)(": When toggled you will rapidly drain the blood of everyone who is nearby and use it to heal yourself slightly and remove any incapacitating effects rapidly.")],4)]})})},y=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Umbrae",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function l(){return d("umbrae")}return l}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on darkness, stealth ambushing and mobility.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Cloak of darkness",16),(0,e.createTextVNode)(": Unlocked at 150 blood, when toggled, allows you to become nearly invisible and move rapidly when in dark regions. While active, burn damage is more effective against you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow anchor",16),(0,e.createTextVNode)(": Unlocked at 250 blood, casting it will create an anchor at the cast location after a short delay. If you then cast the ability again, you are teleported back to the anchor. If you do not cast again within 2 minutes, you will do a fake recall, causing a clone to appear at the anchor and making yourself invisible. It will not teleport you between Z levels.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow snare",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to summon a trap that when crossed blinds and ensnares the victim. This trap is hard to see, but withers in the light.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Dark passage",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to target a turf on screen, you will then teleport to that turf.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Extinguish",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to snuff out nearby electronic light sources and glowshrooms.")],4),(0,e.createVNode)(1,"b",null,"Shadow boxing",16),": Unlocked at 800 blood, sends out shadow clones towards a target, damaging them while you remain in range.",(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Eternal darkness",16),(0,e.createTextVNode)(": When toggled, you consume yourself in unholy darkness, only the strongest of lights will be able to see through it. Inside the radius, nearby creatures will freeze and energy projectiles will deal less damage.")],4),(0,e.createVNode)(1,"p",null,"In addition, you also gain permanent X-ray vision.",16)]})})},S=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Gargantua",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function l(){return d("gargantua")}return l}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on tenacity and melee damage.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rejuvenate",16),(0,e.createTextVNode)(": Will heal you at an increased rate based on how much damage you have taken.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell",16),(0,e.createTextVNode)(": Unlocked at 150 blood, increases your resistance to physical damage, stuns and stamina for 30 seconds. While it is active you cannot fire guns.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Seismic stomp",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to stomp the ground to send out a shockwave, knocking people back.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood rush",16),(0,e.createTextVNode)(": Unlocked at 250 blood, gives you a short speed boost when cast.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell II",16),(0,e.createTextVNode)(": Unlocked at 400 blood, increases all melee damage by 10.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Overwhelming force",16),(0,e.createTextVNode)(": Unlocked at 600 blood, when toggled, if you bump into a door that you do not have access to, it will force it open. In addition, you cannot be pushed or pulled while it is active.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Demonic grasp",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to send out a demonic hand to snare someone. If you are on disarm/grab intent you will push/pull the target, respectively.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Charge",16),(0,e.createTextVNode)(": Unlocked at 800 blood, you gain the ability to charge at a target. Destroying and knocking back pretty much anything you collide with.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Desecrated Duel",16),(0,e.createTextVNode)(": Leap towards a visible enemy, creating an arena upon landing, infusing you with increased regeneration, and granting you resistance to internal damages.")],4)]})})},k=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Dantalion",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function l(){return d("dantalion")}return l}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on thralling and illusions.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Enthrall",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Thralls your target to your will, requires you to stand still. Does not work on mindshielded or already enthralled/mindslaved people.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall cap",16),(0,e.createTextVNode)(": You can only thrall a max of 1 person at a time. This can be increased at 400 blood, 600 blood and at full power to a max of 4 thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall commune",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Allows you to talk to your thralls, your thralls can talk back in the same way.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Subspace swap",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to swap positions with a target.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Pacify",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to pacify a target, preventing them from causing harm for 40 seconds.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Decoy",16),(0,e.createTextVNode)(": Unlocked at 400 blood, briefly turn invisible and send out an illusion to fool everyone nearby.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rally thralls",16),(0,e.createTextVNode)(": Unlocked at 600 blood, removes all incapacitating effects from nearby thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood bond",16),(0,e.createTextVNode)(": Unlocked at 800 blood, when cast, all nearby thralls become linked to you. If anyone in the network takes damage, it is shared equally between everyone in the network. If a thrall goes out of range, they will be removed from the network.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Mass Hysteria",16),(0,e.createTextVNode)(": Casts a powerful illusion that blinds and then makes everyone nearby perceive others as random animals.")],4)]})})}},95152:function(T,r,n){"use strict";r.__esModule=!0,r.StackCraft=void 0;var e=n(89005),a=n(72253),t=n(88510),o=n(64795),f=n(25328),b=n(98595),y=n(36036),S=r.StackCraft=function(){function s(){return(0,e.createComponentVNode)(2,b.Window,{width:350,height:500,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,k)})})}return s}(),k=function(l,v){var N=(0,a.useBackend)(v),C=N.data,p=C.amount,g=C.recipes,V=(0,a.useLocalState)(v,"searchText",""),B=V[0],I=V[1],L=h(g,(0,f.createSearch)(B)),w=(0,a.useLocalState)(v,"",!1),x=w[0],A=w[1];return(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,title:"Amount: "+p,buttons:(0,e.createFragment)([x&&(0,e.createComponentVNode)(2,y.Input,{width:12.5,value:B,placeholder:"Find recipe",onInput:function(){function E(P,j){return I(j)}return E}()}),(0,e.createComponentVNode)(2,y.Button,{ml:.5,tooltip:"Search",tooltipPosition:"bottom-end",icon:"magnifying-glass",selected:x,onClick:function(){function E(){return A(!x)}return E}()})],0),children:L?(0,e.createComponentVNode)(2,d,{recipes:L}):(0,e.createComponentVNode)(2,y.NoticeBox,{children:"No recipes found!"})})},h=function s(l,v){var N=(0,o.flow)([(0,t.map)(function(C){var p=C[0],g=C[1];return c(g)?v(p)?C:[p,s(g,v)]:v(p)?C:[p,void 0]}),(0,t.filter)(function(C){var p=C[0],g=C[1];return g!==void 0}),(0,t.sortBy)(function(C){var p=C[0],g=C[1];return p}),(0,t.sortBy)(function(C){var p=C[0],g=C[1];return!c(g)}),(0,t.reduce)(function(C,p){var g=p[0],V=p[1];return C[g]=V,C},{})])(Object.entries(l));return Object.keys(N).length?N:void 0},c=function(l){return l.uid===void 0},i=function(l,v){return l.required_amount>v?0:Math.floor(v/l.required_amount)},m=function(l,v){for(var N=(0,a.useBackend)(v),C=N.act,p=l.recipe,g=l.max_possible_multiplier,V=Math.min(g,Math.floor(p.max_result_amount/p.result_amount)),B=[5,10,25],I=[],L=function(){var E=x[w];V>=E&&I.push((0,e.createComponentVNode)(2,y.Button,{bold:!0,translucent:!0,fontSize:.85,width:"32px",content:E*p.result_amount+"x",onClick:function(){function P(){return C("make",{recipe_uid:p.uid,multiplier:E})}return P}()}))},w=0,x=B;w1?I+"x ":"",P=L>1?"s":"",j=""+E+V,M=L+" sheet"+P,R=i(B,g);return(0,e.createComponentVNode)(2,y.ImageButton,{fluid:!0,base64:A,imageSize:32,disabled:!R,tooltip:M,buttons:w>1&&R>1&&(0,e.createComponentVNode)(2,m,{recipe:B,max_possible_multiplier:R}),onClick:function(){function D(){return C("make",{recipe_uid:x,multiplier:1})}return D}(),children:j})}},38307:function(T,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.StationAlertConsole=function(){function y(){return(0,e.createComponentVNode)(2,o.Window,{width:325,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,b)})})}return y}(),b=r.StationAlertConsoleContent=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.data,i=c.alarms||[],m=i.Fire||[],d=i.Atmosphere||[],u=i.Power||[];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Fire Alarms",children:(0,e.createVNode)(1,"ul",null,[m.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),m.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Atmospherics Alarms",children:(0,e.createVNode)(1,"ul",null,[d.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),d.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Alarms",children:(0,e.createVNode)(1,"ul",null,[u.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),u.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)})],4)}return y}()},96091:function(T,r,n){"use strict";r.__esModule=!0,r.StationTraitsPanel=void 0;var e=n(89005),a=n(88510),t=n(42127),o=n(72253),f=n(36036),b=n(98595),y=function(c){return c[c.SetupFutureStationTraits=0]="SetupFutureStationTraits",c[c.ViewStationTraits=1]="ViewStationTraits",c}(y||{}),S=function(i,m){var d=(0,o.useBackend)(m),u=d.act,s=d.data,l=s.future_station_traits,v=(0,o.useLocalState)(m,"selectedFutureTrait",null),N=v[0],C=v[1],p=Object.fromEntries(s.valid_station_traits.map(function(V){return[V.name,V.path]})),g=Object.keys(p);return g.sort(),(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Dropdown,{displayText:!N&&"Select trait to add...",onSelected:C,options:g,selected:N,width:"100%"})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"green",icon:"plus",onClick:function(){function V(){if(N){var B=p[N],I=[B];if(l){var L,w=l.map(function(x){return x.path});if(w.indexOf(B)!==-1)return;I=(L=I).concat.apply(L,w)}u("setup_future_traits",{station_traits:I})}}return V}(),children:"Add"})})]}),(0,e.createComponentVNode)(2,f.Divider),Array.isArray(l)?l.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:l.map(function(V){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:V.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"red",icon:"times",onClick:function(){function B(){u("setup_future_traits",{station_traits:(0,a.filterMap)(l,function(I){if(I.path!==V.path)return I.path})})}return B}(),children:"Delete"})})]})},V.path)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No station traits will run next round."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"good",icon:"times",tooltip:"The next round will roll station traits randomly, just like normal",onClick:function(){function V(){return u("clear_future_traits")}return V}(),children:"Run Station Traits Normally"})]}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No future station traits are planned."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"red",icon:"times",onClick:function(){function V(){return u("setup_future_traits",{station_traits:[]})}return V}(),children:"Prevent station traits from running next round"})]})]})},k=function(i,m){var d=(0,o.useBackend)(m),u=d.act,s=d.data;return s.current_traits.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:s.current_traits.map(function(l){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:l.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button.Confirm,{content:"Revert",color:"red",disabled:s.too_late_to_revert||!l.can_revert,tooltip:!l.can_revert&&"This trait is not revertable."||s.too_late_to_revert&&"It's too late to revert station traits, the round has already started.",icon:"times",onClick:function(){function v(){return u("revert",{ref:l.ref})}return v}()})})]})},l.ref)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:"There are no active station traits."})},h=r.StationTraitsPanel=function(){function c(i,m){var d=(0,o.useLocalState)(m,"station_traits_tab",y.ViewStationTraits),u=d[0],s=d[1],l;switch(u){case y.SetupFutureStationTraits:l=(0,e.createComponentVNode)(2,S);break;case y.ViewStationTraits:l=(0,e.createComponentVNode)(2,k);break;default:(0,t.exhaustiveCheck)(u)}return(0,e.createComponentVNode)(2,b.Window,{title:"Modify Station Traits",height:350,width:350,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"eye",selected:u===y.ViewStationTraits,onClick:function(){function v(){return s(y.ViewStationTraits)}return v}(),children:"View"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"edit",selected:u===y.SetupFutureStationTraits,onClick:function(){function v(){return s(y.SetupFutureStationTraits)}return v}(),children:"Edit"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{m:0,children:[(0,e.createComponentVNode)(2,f.Divider),l]})]})})})}return c}()},39409:function(T,r,n){"use strict";r.__esModule=!0,r.StripMenu=void 0;var e=n(89005),a=n(88510),t=n(79140),o=n(72253),f=n(36036),b=n(98595),y=5,S=9,k=function(N){return N===0?5:9},h="64px",c=function(N){return N[0]+"/"+N[1]},i=function(N){var C=N.align,p=N.children;return(0,e.createComponentVNode)(2,f.Box,{style:{position:"absolute",left:C==="left"?"6px":"48px","text-align":C,"text-shadow":"2px 2px 2px #000",top:"2px"},children:p})},m={enable_internals:{icon:"lungs",text:"Enable internals"},disable_internals:{icon:"lungs",text:"Disable internals"},enable_lock:{icon:"lock",text:"Enable lock"},disable_lock:{icon:"unlock",text:"Disable lock"},suit_sensors:{icon:"tshirt",text:"Adjust suit sensors"},remove_accessory:{icon:"medal",text:"Remove accessory"},dislodge_headpocket:{icon:"head-side-virus",text:"Dislodge headpocket"}},d={eyes:{displayName:"eyewear",gridSpot:c([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:c([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:c([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:c([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:c([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:c([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:c([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:c([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:c([1,4])},jumpsuit:{displayName:"uniform",gridSpot:c([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:c([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:c([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:c([2,3]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,i,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:c([2,4]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,i,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:c([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:c([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:c([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:c([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:c([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:c([3,4]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:c([3,3]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:c([4,4]),image:"inventory-pda.png"}},u={eyes:{displayName:"eyewear",gridSpot:c([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:c([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:c([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:c([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:c([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:c([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:c([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:c([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:c([1,4])},jumpsuit:{displayName:"uniform",gridSpot:c([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:c([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:c([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:c([4,4]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,i,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:c([4,5]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,i,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:c([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:c([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:c([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:c([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:c([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:c([4,7]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:c([4,6]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:c([4,8]),image:"inventory-pda.png"}},s=function(v){return v[v.Completely=1]="Completely",v[v.Hidden=2]="Hidden",v}(s||{}),l=r.StripMenu=function(){function v(N,C){var p=(0,o.useBackend)(C),g=p.act,V=p.data,B=new Map;if(V.show_mode===0)for(var I=0,L=Object.keys(V.items);I=.01})},(0,a.sortBy)(function(w){return-w.amount})])(N.gases||[]),L=Math.max.apply(Math,[1].concat(I.map(function(w){return w.amount})));return(0,e.createComponentVNode)(2,S.Window,{width:550,height:185,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"270px",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Metrics",children:(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:p/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:g,minValue:0,maxValue:5e3,ranges:{good:[-1/0,5e3],average:[5e3,7e3],bad:[7e3,1/0]},children:(0,o.toFixed)(g)+" MeV/cm3"})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:c(V),minValue:0,maxValue:c(1e4),ranges:{teal:[-1/0,c(80)],good:[c(80),c(373)],average:[c(373),c(1e3)],bad:[c(1e3),1/0]},children:(0,o.toFixed)(V)+" K"})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:c(B),minValue:0,maxValue:c(5e4),ranges:{good:[c(1),c(300)],average:[-1/0,c(1e3)],bad:[c(1e3),1/0]},children:(0,o.toFixed)(B)+" kPa"})})]})})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Gases",buttons:(0,e.createComponentVNode)(2,b.Button,{icon:"arrow-left",content:"Back",onClick:function(){function w(){return v("back")}return w}()}),children:(0,e.createComponentVNode)(2,b.LabeledList,{children:I.map(function(w){return(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:(0,y.getGasLabel)(w.name),children:(0,e.createComponentVNode)(2,b.ProgressBar,{color:(0,y.getGasColor)(w.name),value:w.amount,minValue:0,maxValue:L,children:(0,o.toFixed)(w.amount,2)+"%"})},w.name)})})})})]})})})}},46029:function(T,r,n){"use strict";r.__esModule=!0,r.SyndicateComputerSimple=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SyndicateComputerSimple=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data;return(0,e.createComponentVNode)(2,o.Window,{theme:"syndicate",width:400,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:c.rows.map(function(i){return(0,e.createComponentVNode)(2,t.Section,{title:i.title,buttons:(0,e.createComponentVNode)(2,t.Button,{content:i.buttontitle,disabled:i.buttondisabled,tooltip:i.buttontooltip,tooltipPosition:"left",onClick:function(){function m(){return h(i.buttonact)}return m}()}),children:[i.status,!!i.bullets&&(0,e.createComponentVNode)(2,t.Box,{children:i.bullets.map(function(m){return(0,e.createComponentVNode)(2,t.Box,{children:m},m)})})]},i.title)})})})}return b}()},36372:function(T,r,n){"use strict";r.__esModule=!0,r.TEG=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(S){return S.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},b=r.TEG=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data;return i.error?(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:[i.error,(0,e.createComponentVNode)(2,t.Button,{icon:"circle",content:"Recheck",onClick:function(){function m(){return c("check")}return m}()})]})})}):(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cold Loop ("+i.cold_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Inlet",children:[f(i.cold_inlet_temp)," K, ",f(i.cold_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Outlet",children:[f(i.cold_outlet_temp)," K, ",f(i.cold_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Hot Loop ("+i.hot_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Inlet",children:[f(i.hot_inlet_temp)," K, ",f(i.hot_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Outlet",children:[f(i.hot_outlet_temp)," K, ",f(i.hot_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Output",children:[f(i.output_power)," W",!!i.warning_switched&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold inlet temperature exceeds hot inlet temperature."}),!!i.warning_cold_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold circulator inlet pressure is under 1,000 kPa."}),!!i.warning_hot_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Hot circulator inlet pressure is under 1,000 kPa."})]})]})})}return y}()},56441:function(T,r,n){"use strict";r.__esModule=!0,r.TachyonArrayContent=r.TachyonArray=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TachyonArray=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.records,d=m===void 0?[]:m,u=i.explosion_target,s=i.toxins_tech,l=i.printing;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shift's Target",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Toxins Level",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Administration",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print All Logs",disabled:!d.length||l,align:"center",onClick:function(){function v(){return c("print_logs")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!d.length,color:"bad",align:"center",onClick:function(){function v(){return c("delete_logs")}return v}()})]})]})}),d.length?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return y}(),b=r.TachyonArrayContent=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.records,d=m===void 0?[]:m;return(0,e.createComponentVNode)(2,t.Section,{title:"Logged Explosions",children:(0,e.createComponentVNode)(2,t.Flex,{children:(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Epicenter"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actual Size"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Theoretical Size"})]}),d.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.theoretical_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){function s(){return c("delete_record",{index:u.index})}return s}()})})]},u.index)})]})})})})}return y}()},1754:function(T,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Tank=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i;return c.has_mask?i=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,width:"76%",icon:c.connected?"check":"times",content:c.connected?"Internals On":"Internals Off",selected:c.connected,onClick:function(){function m(){return h("internals")}return m}()})}):i=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",color:"red",children:"No Mask Equipped"}),(0,e.createComponentVNode)(2,o.Window,{width:325,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tank Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:c.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Release Pressure",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:c.ReleasePressure===c.minReleasePressure,tooltip:"Min",onClick:function(){function m(){return h("pressure",{pressure:"min"})}return m}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(c.releasePressure),width:"65px",unit:"kPa",minValue:c.minReleasePressure,maxValue:c.maxReleasePressure,onChange:function(){function m(d,u){return h("pressure",{pressure:u})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:c.ReleasePressure===c.maxReleasePressure,tooltip:"Max",onClick:function(){function m(){return h("pressure",{pressure:"max"})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:c.ReleasePressure===c.defaultReleasePressure,tooltip:"Reset",onClick:function(){function m(){return h("pressure",{pressure:"reset"})}return m}()})]}),i]})})})})}return b}()},7579:function(T,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TankDispenser=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.o_tanks,m=c.p_tanks;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Dispense Oxygen Tank ("+i+")",disabled:i===0,icon:"arrow-circle-down",onClick:function(){function d(){return h("oxygen")}return d}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mt:1,fluid:!0,content:"Dispense Plasma Tank ("+m+")",disabled:m===0,icon:"arrow-circle-down",onClick:function(){function d(){return h("plasma")}return d}()})})]})})})}return b}()},16136:function(T,r,n){"use strict";r.__esModule=!0,r.TcommsCore=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TcommsCore=function(){function h(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.ion,l=(0,a.useLocalState)(i,"tabIndex",0),v=l[0],N=l[1],C=function(){function p(g){switch(g){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,k);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return p}();return(0,e.createComponentVNode)(2,o.Window,{width:900,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[s===1&&(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"wrench",selected:v===0,onClick:function(){function p(){return N(0)}return p}(),children:"Configuration"},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"link",selected:v===1,onClick:function(){function p(){return N(1)}return p}(),children:"Device Linkage"},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"user-times",selected:v===2,onClick:function(){function p(){return N(2)}return p}(),children:"User Filtering"},"FilterPage")]}),C(v)]})})}return h}(),b=function(){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},y=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.active,l=u.sectors_available,v=u.nttc_toggle_jobs,N=u.nttc_toggle_job_color,C=u.nttc_toggle_name_color,p=u.nttc_toggle_command_bold,g=u.nttc_job_indicator_type,V=u.nttc_setting_language,B=u.network_id;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"On":"Off",selected:s,icon:"power-off",onClick:function(){function I(){return d("toggle_active")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sector Coverage",children:l})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Radio Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcements",children:(0,e.createComponentVNode)(2,t.Button,{content:v?"On":"Off",selected:v,icon:"user-tag",onClick:function(){function I(){return d("nttc_toggle_jobs")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:N?"On":"Off",selected:N,icon:"clipboard-list",onClick:function(){function I(){return d("nttc_toggle_job_color")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:C?"On":"Off",selected:C,icon:"user-tag",onClick:function(){function I(){return d("nttc_toggle_name_color")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:p?"On":"Off",selected:p,icon:"volume-up",onClick:function(){function I(){return d("nttc_toggle_command_bold")}return I}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Advanced",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcement Format",children:(0,e.createComponentVNode)(2,t.Button,{content:g||"Unset",selected:g,icon:"pencil-alt",onClick:function(){function I(){return d("nttc_job_indicator_type")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Language Conversion",children:(0,e.createComponentVNode)(2,t.Button,{content:V||"Unset",selected:V,icon:"globe",onClick:function(){function I(){return d("nttc_setting_language")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:B||"Unset",selected:B,icon:"server",onClick:function(){function I(){return d("network_id")}return I}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){function I(){return d("import")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function I(){return d("export")}return I}()})]})],4)},S=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.link_password,l=u.relay_entries;return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linkage Password",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"Unset",selected:s,icon:"lock",onClick:function(){function v(){return d("change_password")}return v}()})})}),(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Unlink"})]}),l.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.status===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Online"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Offline"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",onClick:function(){function N(){return d("unlink",{addr:v.addr})}return N}()})})]},v.addr)})]})]})},k=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.filtered_users;return(0,e.createComponentVNode)(2,t.Section,{title:"User Filtering",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Add User",icon:"user-plus",onClick:function(){function l(){return d("add_filter")}return l}()}),children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"90%"},children:"User"}),(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"10%"},children:"Actions"})]}),s.map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"user-times",onClick:function(){function v(){return d("remove_filter",{user:l})}return v}()})})]},l)})]})})}},88046:function(T,r,n){"use strict";r.__esModule=!0,r.TcommsRelay=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TcommsRelay=function(){function S(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.linked,u=m.active,s=m.network_id;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:292,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Relay Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:u?"On":"Off",selected:u,icon:"power-off",onClick:function(){function l(){return i("toggle_active")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"Unset",selected:s,icon:"server",onClick:function(){function l(){return i("network_id")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Link Status",children:d===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Linked"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Unlinked"})})]})}),d===1?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,y)]})})}return S}(),b=function(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.linked_core_id,u=m.linked_core_addr,s=m.hidden_link;return(0,e.createComponentVNode)(2,t.Section,{title:"Link Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core ID",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core Address",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hidden Link",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"Yes":"No",icon:s?"eye-slash":"eye",selected:s,onClick:function(){function l(){return i("toggle_hidden_link")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unlink",children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function l(){return i("unlink")}return l}()})})]})})},y=function(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.cores;return(0,e.createComponentVNode)(2,t.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),d.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function s(){return i("link",{addr:u.addr})}return s}()})})]},u.addr)})]})})}},20802:function(T,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Teleporter=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.targetsTeleport?c.targetsTeleport:{},m=0,d=1,u=2,s=c.calibrated,l=c.calibrating,v=c.powerstation,N=c.regime,C=c.teleporterhub,p=c.target,g=c.locked,V=c.adv_beacon_allowed,B=c.advanced_beacon_locking;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:270,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:[(!v||!C)&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Error",children:[C,!v&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),v&&!C&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),v&&C&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Status",buttons:(0,e.createFragment)(!!V&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",children:"Advanced Beacon Locking:\xA0"}),(0,e.createComponentVNode)(2,t.Button,{selected:B,icon:B?"toggle-on":"toggle-off",content:B?"Enabled":"Disabled",onClick:function(){function I(){return h("advanced_beacon_locking",{on:B?0:1})}return I}()})],4),0),children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Teleport target:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[N===m&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:p,disabled:l,options:Object.keys(i),color:p!=="None"?"default":"bad",onSelected:function(){function I(L){return h("settarget",{x:i[L].x,y:i[L].y,z:i[L].z,tptarget:i[L].pretarget})}return I}()}),N===d&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:p,disabled:l,options:Object.keys(i),color:p!=="None"?"default":"bad",onSelected:function(){function I(L){return h("settarget",{x:i[L].x,y:i[L].y,z:i[L].z,tptarget:i[L].pretarget})}return I}()}),N===u&&(0,e.createComponentVNode)(2,t.Box,{children:p})]})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Regime:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Gate",tooltip:"Teleport to another teleport hub.",tooltipPosition:"top",color:N===d?"good":null,onClick:function(){function I(){return h("setregime",{regime:d})}return I}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Teleporter",tooltip:"One-way teleport.",tooltipPosition:"top",color:N===m?"good":null,onClick:function(){function I(){return h("setregime",{regime:m})}return I}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"GPS",tooltip:"Teleport to a location stored in a GPS device.",tooltipPosition:"top-end",color:N===u?"good":null,disabled:!g,onClick:function(){function I(){return h("setregime",{regime:u})}return I}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{label:"Calibration",mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Calibration:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[p!=="None"&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:15.8,textAlign:"center",mt:.5,children:l&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"In Progress"})||s&&(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Optimal"})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Sub-Optimal"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",tooltip:"Calibrates the hub. Accidents may occur when the calibration is not optimal.",tooltipPosition:"bottom-end",disabled:!!(s||l),onClick:function(){function I(){return h("calibrate")}return I}()})})]}),p==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})]}),!!(g&&v&&C&&N===u)&&(0,e.createComponentVNode)(2,t.Section,{title:"GPS",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload GPS data",tooltip:"Loads the GPS data from the device.",icon:"upload",onClick:function(){function I(){return h("load")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function I(){return h("eject")}return I}()})]})})]})})})})}return b}()},48517:function(T,r,n){"use strict";r.__esModule=!0,r.TelescienceConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TelescienceConsole=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.last_msg,m=c.linked_pad,d=c.held_gps,u=c.lastdata,s=c.power_levels,l=c.current_max_power,v=c.current_power,N=c.current_bearing,C=c.current_elevation,p=c.current_sector,g=c.working,V=c.max_z,B=(0,a.useLocalState)(S,"dummyrot",N),I=B[0],L=B[1];return(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createFragment)([i,!(u.length>0)||(0,e.createVNode)(1,"ul",null,u.map(function(w){return(0,e.createVNode)(1,"li",null,w,0,null,w)}),0)],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Telepad Status",children:m===1?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Bearing",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:[(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",width:6.1,lineHeight:1.5,step:.1,minValue:0,maxValue:360,disabled:g,value:N,onDrag:function(){function w(x,A){return L(A)}return w}(),onChange:function(){function w(x,A){return h("setbear",{bear:A})}return w}()}),(0,e.createComponentVNode)(2,t.Icon,{ml:1,size:1,name:"arrow-up",rotation:I})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Elevation",children:(0,e.createComponentVNode)(2,t.NumberInput,{width:6.1,lineHeight:1.5,step:.1,minValue:0,maxValue:100,disabled:g,value:C,onChange:function(){function w(x,A){return h("setelev",{elev:A})}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Level",children:s.map(function(w,x){return(0,e.createComponentVNode)(2,t.Button,{content:w,selected:v===w,disabled:x>=l-1||g,onClick:function(){function A(){return h("setpwr",{pwr:x+1})}return A}()},w)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Sector",children:(0,e.createComponentVNode)(2,t.NumberInput,{width:6.1,lineHeight:1.5,step:1,minValue:2,maxValue:V,value:p,disabled:g,onChange:function(){function w(x,A){return h("setz",{newz:A})}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Telepad Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Send",disabled:g,onClick:function(){function w(){return h("pad_send")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Receive",disabled:g,onClick:function(){function w(){return h("pad_receive")}return w}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Crystal Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Recalibrate Crystals",disabled:g,onClick:function(){function w(){return h("recal_crystals")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Crystals",disabled:g,onClick:function(){function w(){return h("eject_crystals")}return w}()})]})]}):(0,e.createFragment)([(0,e.createTextVNode)("No pad linked to console. Please use a multitool to link a pad.")],4)}),(0,e.createComponentVNode)(2,t.Section,{title:"GPS Actions",children:d===1?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{disabled:d===0||g,content:"Eject GPS",onClick:function(){function w(){return h("eject_gps")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:d===0||g,content:"Store Coordinates",onClick:function(){function w(){return h("store_to_gps")}return w}()})],4):(0,e.createFragment)([(0,e.createTextVNode)("Please insert a GPS to store coordinates to it.")],4)})]})})}return b}()},21800:function(T,r,n){"use strict";r.__esModule=!0,r.TempGun=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.TempGun=function(){function h(c,i){var m=(0,t.useBackend)(i),d=m.act,u=m.data,s=u.target_temperature,l=u.temperature,v=u.max_temp,N=u.min_temp;return(0,e.createComponentVNode)(2,f.Window,{width:250,height:121,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:10,stepPixelSize:6,minValue:N,maxValue:v,value:s,format:function(){function C(p){return(0,a.toFixed)(p,2)}return C}(),width:"50px",onDrag:function(){function C(p,g){return d("target_temperature",{target_temperature:g})}return C}()}),"\xB0C"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Temperature",children:(0,e.createComponentVNode)(2,o.Box,{color:y(l),bold:l>500-273.15,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(l,2)}),"\xB0C"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power Cost",children:(0,e.createComponentVNode)(2,o.Box,{color:k(l),children:S(l)})})]})})})})}return h}(),y=function(c){return c<=-100?"blue":c<=0?"teal":c<=100?"green":c<=200?"orange":"red"},S=function(c){return c<=100-273.15?"High":c<=250-273.15?"Medium":c<=300-273.15?"Low":c<=400-273.15?"Medium":"High"},k=function(c){return c<=100-273.15?"red":c<=250-273.15?"orange":c<=300-273.15?"green":c<=400-273.15?"orange":"red"}},24410:function(T,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(72253),f=n(92986),b=n(36036),y=n(98595),S=r.sanitizeMultiline=function(){function i(m){return m.replace(/(\n|\r\n){3,}/,"\n\n")}return i}(),k=r.removeAllSkiplines=function(){function i(m){return m.replace(/[\r\n]+/,"")}return i}(),h=r.TextInputModal=function(){function i(m,d){var u=(0,o.useBackend)(d),s=u.act,l=u.data,v=l.max_length,N=l.message,C=N===void 0?"":N,p=l.multiline,g=l.placeholder,V=l.timeout,B=l.title,I=(0,o.useLocalState)(d,"input",g||""),L=I[0],w=I[1],x=function(){function P(j){if(j!==L){var M=p?S(j):k(j);w(M)}}return P}(),A=p||L.length>=40,E=130+(C.length>40?Math.ceil(C.length/4):0)+(A?80:0);return(0,e.createComponentVNode)(2,y.Window,{title:B,width:325,height:E,children:[V&&(0,e.createComponentVNode)(2,a.Loader,{value:V}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function P(j){var M=window.event?j.which:j.keyCode;M===f.KEY_ENTER&&(!A||!j.shiftKey)&&s("submit",{entry:L}),M===f.KEY_ESCAPE&&s("cancel")}return P}(),children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Box,{color:"label",children:C})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,c,{input:L,onType:x})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:L,message:L.length+"/"+v})})]})})})]})}return i}(),c=function(m,d){var u=(0,o.useBackend)(d),s=u.act,l=u.data,v=l.max_length,N=l.multiline,C=m.input,p=m.onType,g=N||C.length>=40;return(0,e.createComponentVNode)(2,b.TextArea,{autoFocus:!0,autoSelect:!0,height:N||C.length>=40?"100%":"1.8rem",maxLength:v,onEscape:function(){function V(){return s("cancel")}return V}(),onEnter:function(){function V(B){g&&B.shiftKey||(B.preventDefault(),s("submit",{entry:C}))}return V}(),onInput:function(){function V(B,I){return p(I)}return V}(),placeholder:"Type something...",value:C})}},25036:function(T,r,n){"use strict";r.__esModule=!0,r.ThermoMachine=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.ThermoMachine=function(){function y(S,k){var h=(0,t.useBackend)(k),c=h.act,i=h.data;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:225,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:i.temperature,format:function(){function m(d){return(0,a.toFixed)(d,2)}return m}()})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:i.pressure,format:function(){function m(d){return(0,a.toFixed)(d,2)}return m}()})," kPa"]})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:i.on?"power-off":"times",content:i.on?"On":"Off",selected:i.on,onClick:function(){function m(){return c("power")}return m}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Setting",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:i.cooling?"temperature-low":"temperature-high",content:i.cooling?"Cooling":"Heating",selected:i.cooling,onClick:function(){function m(){return c("cooling")}return m}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"fast-backward",disabled:i.target===i.min,title:"Minimum temperature",onClick:function(){function m(){return c("target",{target:i.min})}return m}()}),(0,e.createComponentVNode)(2,o.NumberInput,{animated:!0,value:Math.round(i.target),unit:"K",width:5.4,lineHeight:1.4,minValue:Math.round(i.min),maxValue:Math.round(i.max),step:5,stepPixelSize:3,onDrag:function(){function m(d,u){return c("target",{target:u})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"fast-forward",disabled:i.target===i.max,title:"Maximum Temperature",onClick:function(){function m(){return c("target",{target:i.max})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"sync",disabled:i.target===i.initial,title:"Room Temperature",onClick:function(){function m(){return c("target",{target:i.initial})}return m}()})]})]})})]})})}return y}()},20035:function(T,r,n){"use strict";r.__esModule=!0,r.TransferValve=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TransferValve=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.tank_one,m=c.tank_two,d=c.attached_device,u=c.valve;return(0,e.createComponentVNode)(2,o.Window,{width:460,height:285,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Valve Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:u?"unlock":"lock",content:u?"Open":"Closed",disabled:!i||!m,onClick:function(){function s(){return h("toggle")}return s}()})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Assembly",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Configure Assembly",disabled:!d,onClick:function(){function s(){return h("device")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:d?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:d,disabled:!d,onClick:function(){function s(){return h("remove_device")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Assembly"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment One",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:i?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:i,disabled:!i,onClick:function(){function s(){return h("tankone")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment Two",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:m?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:m,disabled:!m,onClick:function(){function s(){return h("tanktwo")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})})]})})}return b}()},78166:function(T,r,n){"use strict";r.__esModule=!0,r.TurbineComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(44879),b=r.TurbineComputer=function(){function k(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.compressor,s=d.compressor_broken,l=d.turbine,v=d.turbine_broken,N=d.online,C=!!(u&&!s&&l&&!v);return(0,e.createComponentVNode)(2,o.Window,{width:400,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:N?"power-off":"times",content:N?"Online":"Offline",selected:N,disabled:!C,onClick:function(){function p(){return m("toggle_power")}return p}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Disconnect",onClick:function(){function p(){return m("disconnect")}return p}()})],4),children:C?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,y)})})})}return k}(),y=function(h,c){var i=(0,a.useBackend)(c),m=i.data,d=m.compressor,u=m.compressor_broken,s=m.turbine,l=m.turbine_broken,v=m.online;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compressor Status",color:!d||u?"bad":"good",children:u?d?"Offline":"Missing":"Online"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Status",color:!s||l?"bad":"good",children:l?s?"Offline":"Missing":"Online"})]})},S=function(h,c){var i=(0,a.useBackend)(c),m=i.data,d=m.rpm,u=m.temperature,s=m.power,l=m.bearing_heat;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Speed",children:[d," RPM"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Temp",children:[u," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Generated Power",children:[s," W"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bearing Heat",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l,minValue:0,maxValue:100,ranges:{good:[-1/0,60],average:[60,90],bad:[90,1/0]},children:(0,f.toFixed)(l)+"%"})})]})}},52847:function(T,r,n){"use strict";r.__esModule=!0,r.Uplink=void 0;var e=n(89005),a=n(88510),t=n(64795),o=n(25328),f=n(72253),b=n(36036),y=n(98595),S=n(3939),k=function(N){switch(N){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,i);case 2:return(0,e.createComponentVNode)(2,l);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}},h=r.Uplink=function(){function v(N,C){var p=(0,f.useBackend)(C),g=p.act,V=p.data,B=V.cart,I=(0,f.useLocalState)(C,"tabIndex",0),L=I[0],w=I[1],x=(0,f.useLocalState)(C,"searchText",""),A=x[0],E=x[1];return(0,e.createComponentVNode)(2,y.Window,{width:900,height:600,theme:"syndicate",children:[(0,e.createComponentVNode)(2,S.ComplexModal),(0,e.createComponentVNode)(2,y.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Tabs,{children:[(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:L===0,onClick:function(){function P(){w(0),E("")}return P}(),icon:"store",children:"View Market"},"PurchasePage"),(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:L===1,onClick:function(){function P(){w(1),E("")}return P}(),icon:"shopping-cart",children:["View Shopping Cart ",B&&B.length?"("+B.length+")":""]},"Cart"),(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:L===2,onClick:function(){function P(){w(2),E("")}return P}(),icon:"user",children:"Exploitable Information"},"ExploitableInfo"),(0,e.createComponentVNode)(2,b.Tabs.Tab,{onClick:function(){function P(){return g("lock")}return P}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:k(L)})]})})]})}return v}(),c=function(N,C){var p=(0,f.useBackend)(C),g=p.act,V=p.data,B=V.crystals,I=V.cats,L=(0,f.useLocalState)(C,"uplinkItems",I[0].items),w=L[0],x=L[1],A=(0,f.useLocalState)(C,"searchText",""),E=A[0],P=A[1],j=function(U,K){K===void 0&&(K="");var G=(0,o.createSearch)(K,function($){var Q=$.hijack_only===1?"|hijack":"";return $.name+"|"+$.desc+"|"+$.cost+"tc"+Q});return(0,t.flow)([(0,a.filter)(function($){return $==null?void 0:$.name}),K&&(0,a.filter)(G),(0,a.sortBy)(function($){return $==null?void 0:$.name})])(U)},M=function(U){if(P(U),U==="")return x(I[0].items);x(j(I.map(function(K){return K.items}).flat(),U))},R=(0,f.useLocalState)(C,"showDesc",1),D=R[0],W=R[1];return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Section,{title:"Current Balance: "+B+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,b.Button.Checkbox,{content:"Show Descriptions",checked:D,onClick:function(){function _(){return W(!D)}return _}()}),(0,e.createComponentVNode)(2,b.Button,{content:"Random Item",icon:"question",onClick:function(){function _(){return g("buyRandom")}return _}()}),(0,e.createComponentVNode)(2,b.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function _(){return g("refund")}return _}()})],4),children:(0,e.createComponentVNode)(2,b.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function _(U,K){M(K)}return _}(),value:E})})})}),(0,e.createComponentVNode)(2,b.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,b.Tabs,{vertical:!0,children:I.map(function(_){return(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:E!==""?!1:_.items===w,onClick:function(){function U(){x(_.items),P("")}return U}(),children:_.cat},_)})})})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:w.map(function(_){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,d,{i:_,showDecription:D},(0,o.decodeHtmlEntities)(_.name))},(0,o.decodeHtmlEntities)(_.name))})})})})]})]})},i=function(N,C){var p=(0,f.useBackend)(C),g=p.act,V=p.data,B=V.cart,I=V.crystals,L=V.cart_price,w=(0,f.useLocalState)(C,"showDesc",0),x=w[0],A=w[1];return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+I+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,b.Button.Checkbox,{content:"Show Descriptions",checked:x,onClick:function(){function E(){return A(!x)}return E}()}),(0,e.createComponentVNode)(2,b.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function E(){return g("empty_cart")}return E}(),disabled:!B}),(0,e.createComponentVNode)(2,b.Button,{content:"Purchase Cart ("+L+"TC)",icon:"shopping-cart",onClick:function(){function E(){return g("purchase_cart")}return E}(),disabled:!B||L>I})],4),children:(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:B?B.map(function(E){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,d,{i:E,showDecription:x,buttons:(0,e.createComponentVNode)(2,s,{i:E})})},(0,o.decodeHtmlEntities)(E.name))}):(0,e.createComponentVNode)(2,b.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,m)]})},m=function(N,C){var p=(0,f.useBackend)(C),g=p.act,V=p.data,B=V.cats,I=V.lucky_numbers;return(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,b.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function L(){return g("shuffle_lucky_numbers")}return L}()}),children:(0,e.createComponentVNode)(2,b.Stack,{wrap:!0,children:I.map(function(L){return B[L.cat].items[L.item]}).filter(function(L){return L!=null}).map(function(L,w){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,mb:1,ml:1,width:34,backgroundColor:"rgba(255, 0, 0, 0.15)",children:(0,e.createComponentVNode)(2,d,{grow:!0,i:L})},w)})})})})},d=function(N,C){var p=N.i,g=N.showDecription,V=g===void 0?1:g,B=N.buttons,I=B===void 0?(0,e.createComponentVNode)(2,u,{i:p}):B;return(0,e.createComponentVNode)(2,b.Section,{title:(0,o.decodeHtmlEntities)(p.name),showBottom:V,buttons:I,children:V?(0,e.createComponentVNode)(2,b.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(p.desc)}):null})},u=function(N,C){var p=(0,f.useBackend)(C),g=p.act,V=p.data,B=N.i,I=V.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,b.Button,{icon:"shopping-cart",color:B.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function L(){return g("add_to_cart",{item:B.obj_path})}return L}(),disabled:B.cost>I}),(0,e.createComponentVNode)(2,b.Button,{content:"Buy ("+B.cost+"TC)"+(B.refundable?" [Refundable]":""),color:B.hijack_only===1&&"red",tooltip:B.hijack_only===1&&"Hijack Agents Only!",tooltipPosition:"left",onClick:function(){function L(){return g("buyItem",{item:B.obj_path})}return L}(),disabled:B.cost>I})],4)},s=function(N,C){var p=(0,f.useBackend)(C),g=p.act,V=p.data,B=N.i,I=V.exploitable;return(0,e.createComponentVNode)(2,b.Stack,{children:[(0,e.createComponentVNode)(2,b.Button,{icon:"times",content:"("+B.cost*B.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function L(){return g("remove_from_cart",{item:B.obj_path})}return L}()}),(0,e.createComponentVNode)(2,b.Button,{icon:"minus",tooltip:B.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function L(){return g("set_cart_item_quantity",{item:B.obj_path,quantity:--B.amount})}return L}(),disabled:B.amount<=0}),(0,e.createComponentVNode)(2,b.Button.Input,{content:B.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:B.limit===0&&"Discount already redeemed!",onCommit:function(){function L(w,x){return g("set_cart_item_quantity",{item:B.obj_path,quantity:x})}return L}(),disabled:B.limit!==-1&&B.amount>=B.limit&&B.amount<=0}),(0,e.createComponentVNode)(2,b.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:B.limit===0&&"Discount already redeemed!",onClick:function(){function L(){return g("set_cart_item_quantity",{item:B.obj_path,quantity:++B.amount})}return L}(),disabled:B.limit!==-1&&B.amount>=B.limit})]})},l=function(N,C){var p=(0,f.useBackend)(C),g=p.act,V=p.data,B=V.exploitable,I=(0,f.useLocalState)(C,"selectedRecord",B[0]),L=I[0],w=I[1],x=(0,f.useLocalState)(C,"searchText",""),A=x[0],E=x[1],P=function(R,D){D===void 0&&(D="");var W=(0,o.createSearch)(D,function(_){return _.name});return(0,t.flow)([(0,a.filter)(function(_){return _==null?void 0:_.name}),D&&(0,a.filter)(W),(0,a.sortBy)(function(_){return _.name})])(R)},j=P(B,A);return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Exploitable Records",children:[(0,e.createComponentVNode)(2,b.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function M(R,D){return E(D)}return M}()}),(0,e.createComponentVNode)(2,b.Tabs,{vertical:!0,children:j.map(function(M){return(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:M===L,onClick:function(){function R(){return w(M)}return R}(),children:M.name},M)})})]})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:L.name,children:(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Age",children:L.age}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Fingerprint",children:L.fingerprint}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Rank",children:L.rank}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Sex",children:L.sex}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Species",children:L.species})]})})})]})}},12261:function(T,r,n){"use strict";r.__esModule=!0,r.Vending=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=S.product,d=S.productStock,u=S.productImage,s=i.chargesMoney,l=i.user,v=i.usermoney,N=i.inserted_cash,C=i.vend_ready,p=i.inserted_item_name,g=!s||m.price===0,V="ERROR!",B="";g?(V="FREE",B="arrow-circle-down"):(V=m.price,B="shopping-cart");var I=!C||d===0||!g&&m.price>v&&m.price>N;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+u,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:m.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Box,{color:d<=0&&"bad"||d<=m.max_amount/2&&"average"||"good",children:[d," in stock"]})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,disabled:I,icon:B,content:V,textAlign:"left",onClick:function(){function L(){return c("vend",{inum:m.inum})}return L}()})})]})},b=r.Vending=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.user,d=i.usermoney,u=i.inserted_cash,s=i.chargesMoney,l=i.product_records,v=l===void 0?[]:l,N=i.hidden_records,C=N===void 0?[]:N,p=i.stock,g=i.vend_ready,V=i.inserted_item_name,B=i.panel_open,I=i.speaker,L=i.imagelist,w;return w=[].concat(v),i.extended_inventory&&(w=[].concat(w,C)),w=w.filter(function(x){return!!x}),(0,e.createComponentVNode)(2,o.Window,{title:"Vending Machine",width:450,height:Math.min((s?171:89)+w.length*32,585),children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!s&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!V&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:(0,e.createVNode)(1,"span",null,V,0,{style:{"text-transform":"capitalize"}}),onClick:function(){function x(){return c("eject_item",{})}return x}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!u,icon:"money-bill-wave-alt",content:u?(0,e.createFragment)([(0,e.createVNode)(1,"b",null,u,0),(0,e.createTextVNode)(" credits")],0):"Dispense Change",tooltip:u?"Dispense Change":null,textAlign:"left",onClick:function(){function x(){return c("change")}return x}()})})]}),children:m&&(0,e.createComponentVNode)(2,t.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,m.name,0),", ",(0,e.createVNode)(1,"b",null,m.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[d,(0,e.createTextVNode)(" credits")],0),".",(0,e.createVNode)(1,"br")]})})}),!!B&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,t.Button,{icon:I?"check":"volume-mute",selected:I,content:"Speaker",textAlign:"left",onClick:function(){function x(){return c("toggle_voice",{})}return x}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:(0,e.createComponentVNode)(2,t.Table,{children:w.map(function(x){return(0,e.createComponentVNode)(2,f,{product:x,productStock:p[x.name],productImage:L[x.path]},x.name)})})})})]})})})}return y}()},68971:function(T,r,n){"use strict";r.__esModule=!0,r.VolumeMixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.VolumeMixer=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.channels;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:Math.min(95+i.length*50,565),children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:i.map(function(m,d){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.25rem",color:"label",mt:d>0&&"0.5rem",children:m.name}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:.5,children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-off",size:"1.5",mt:"0.1rem",onClick:function(){function u(){return h("volume",{channel:m.num,volume:0})}return u}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.Slider,{minValue:0,maxValue:100,stepPixelSize:3.13,value:m.volume,onChange:function(){function u(s,l){return h("volume",{channel:m.num,volume:l})}return u}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",size:"1.5",mt:"0.1rem",onClick:function(){function u(){return h("volume",{channel:m.num,volume:100})}return u}()})})})]})})],4,m.num)})})})})}return b}()},2510:function(T,r,n){"use strict";r.__esModule=!0,r.VotePanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.VotePanel=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.remaining,m=c.question,d=c.choices,u=c.user_vote,s=c.counts,l=c.show_counts;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:360,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:m,children:[(0,e.createComponentVNode)(2,t.Box,{mb:1.5,ml:.5,children:["Time remaining: ",Math.round(i/10),"s"]}),d.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mb:1,fluid:!0,translucent:!0,lineHeight:3,multiLine:v,content:v+(l?" ("+(s[v]||0)+")":""),onClick:function(){function N(){return h("vote",{target:v})}return N}(),selected:v===u})},v)})]})})})}return b}()},30138:function(T,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Wires=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.wires||[],m=c.status||[],d=56+i.length*23+(status?0:15+m.length*17);return(0,e.createComponentVNode)(2,o.Window,{width:350,height:d,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:i.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:u.color_name,labelColor:u.seen_color,color:u.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:u.cut?"Mend":"Cut",onClick:function(){function s(){return h("cut",{wire:u.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function s(){return h("pulse",{wire:u.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:u.attached?"Detach":"Attach",onClick:function(){function s(){return h("attach",{wire:u.color})}return s}()})],4),children:!!u.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),u.wire,(0,e.createTextVNode)(")")],0)},u.seen_color)})})})}),!!m.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:u},u)})})})]})})})}return b}()},21400:function(T,r,n){"use strict";r.__esModule=!0,r.WizardApprenticeContract=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.WizardApprenticeContract=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.used;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:555,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Contract of Apprenticeship",children:["Using this contract, you may summon an apprentice to aid you on your mission.",(0,e.createVNode)(1,"p",null,"If you are unable to establish contact with your apprentice, you can feed the contract back to the spellbook to refund your points.",16),i?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"You've already summoned an apprentice or you are in process of summoning one."}):""]}),(0,e.createComponentVNode)(2,t.Section,{title:"Which school of magic is your apprentice studying?",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fire",children:["Your apprentice is skilled in bending fire. ",(0,e.createVNode)(1,"br"),"They know Fireball, Sacred Flame, and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:i,onClick:function(){function m(){return h("fire")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Translocation",children:["Your apprentice is able to defy physics, learning how to move through bluespace. ",(0,e.createVNode)(1,"br"),"They know Teleport, Blink and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:i,onClick:function(){function m(){return h("translocation")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Restoration",children:["Your apprentice is dedicated to supporting your magical prowess.",(0,e.createVNode)(1,"br"),"They come equipped with a Staff of Healing, have the unique ability to teleport back to you, and know Charge and Knock.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:i,onClick:function(){function m(){return h("restoration")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stealth",children:["Your apprentice is learning the art of infiltrating mundane facilities. ",(0,e.createVNode)(1,"br"),"They know Mindswap, Knock, Homing Toolbox, and Disguise Self, all of which can be cast without robes. They also join you in a Maintenance Dweller disguise, complete with Gloves of Shock Immunity and a Belt of Tools.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:i,onClick:function(){function m(){return h("stealth")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Honk",children:["Your apprentice is here to spread the Honkmother's blessings.",(0,e.createVNode)(1,"br"),"They know Banana Touch, Instant Summons, Ethereal Jaunt, and come equipped with a Staff of Slipping."," ",(0,e.createVNode)(1,"br"),"While under your tutelage, they have been 'blessed' with clown shoes that are impossible to remove.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:i,onClick:function(){function m(){return h("honk")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})})]})})}return b}()},49148:function(T,r,n){"use strict";r.__esModule=!0,r.AccessList=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036);function f(h,c){var i=typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(i)return(i=i.call(h)).next.bind(i);if(Array.isArray(h)||(i=b(h))||c&&h&&typeof h.length=="number"){i&&(h=i);var m=0;return function(){return m>=h.length?{done:!0}:{done:!1,value:h[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(h,c){if(h){if(typeof h=="string")return y(h,c);var i={}.toString.call(h).slice(8,-1);return i==="Object"&&h.constructor&&(i=h.constructor.name),i==="Map"||i==="Set"?Array.from(h):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?y(h,c):void 0}}function y(h,c){(c==null||c>h.length)&&(c=h.length);for(var i=0,m=Array(c);i0&&!V.includes(D.ref)&&!p.includes(D.ref),checked:p.includes(D.ref),onClick:function(){function W(){return B(D.ref)}return W}()},D.desc)})]})]})})}return h}()},26991:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosScan=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),f=function(S,k,h,c,i){return Sc?"average":S>i?"bad":"good"},b=r.AtmosScan=function(){function y(S,k){var h=S.data.aircontents;return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,a.filter)(function(c){return c.val!=="0"||c.entry==="Pressure"||c.entry==="Temperature"})(h).map(function(c){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:c.entry,color:f(c.val,c.bad_low,c.poor_low,c.poor_high,c.bad_high),children:[c.val,c.units]},c.entry)})})})}return y}()},85870:function(T,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(89005),a=n(36036),t=n(15964),o=function(y){return y+" unit"+(y===1?"":"s")},f=r.BeakerContents=function(){function b(y){var S=y.beakerLoaded,k=y.beakerContents,h=k===void 0?[]:k,c=y.buttons;return(0,e.createComponentVNode)(2,a.Stack,{vertical:!0,children:[!S&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"No beaker loaded."})||h.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"Beaker is empty."}),h.map(function(i,m){return(0,e.createComponentVNode)(2,a.Stack,{children:[(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",grow:!0,children:[o(i.volume)," of ",i.name]},i.name),!!c&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:c(i,m)})]},i.name)})]})}return b}();f.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},92963:function(T,r,n){"use strict";r.__esModule=!0,r.BotStatus=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.BotStatus=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,c=h.locked,i=h.noaccess,m=h.maintpanel,d=h.on,u=h.autopatrol,s=h.canhack,l=h.emagged,v=h.remote_disabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe an ID card to ",c?"unlock":"lock"," this interface."]}),(0,e.createComponentVNode)(2,t.Section,{title:"General Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"On":"Off",selected:d,disabled:i,onClick:function(){function N(){return k("power")}return N}()})}),u!==null&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patrol",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Auto Patrol",disabled:i,onClick:function(){function N(){return k("autopatrol")}return N}()})}),!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Panel Open!"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety System",children:(0,e.createComponentVNode)(2,t.Box,{color:l?"bad":"good",children:l?"DISABLED!":"Enabled"})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hacking",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:l?"Restore Safties":"Hack",disabled:i,color:"bad",onClick:function(){function N(){return k("hack")}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Access",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!v,content:"AI Remote Control",disabled:i,onClick:function(){function N(){return k("disableremote")}return N}()})})]})})],4)}return f}()},3939:function(T,r,n){"use strict";r.__esModule=!0,r.modalRegisterBodyOverride=r.modalOpen=r.modalClose=r.modalAnswer=r.ComplexModal=void 0;var e=n(89005),a=n(72253),t=n(36036),o={},f=r.modalOpen=function(){function h(c,i,m){var d=(0,a.useBackend)(c),u=d.act,s=d.data,l=Object.assign(s.modal?s.modal.args:{},m||{});u("modal_open",{id:i,arguments:JSON.stringify(l)})}return h}(),b=r.modalRegisterBodyOverride=function(){function h(c,i){o[c]=i}return h}(),y=r.modalAnswer=function(){function h(c,i,m,d){var u=(0,a.useBackend)(c),s=u.act,l=u.data;if(l.modal){var v=Object.assign(l.modal.args||{},d||{});s("modal_answer",{id:i,answer:m,arguments:JSON.stringify(v)})}}return h}(),S=r.modalClose=function(){function h(c,i){var m=(0,a.useBackend)(c),d=m.act;d("modal_close",{id:i})}return h}(),k=r.ComplexModal=function(){function h(c,i){var m=(0,a.useBackend)(i),d=m.data;if(d.modal){var u=d.modal,s=u.id,l=u.text,v=u.type,N,C=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"Cancel",onClick:function(){function L(){return S(i)}return L}()}),p,g,V="auto";if(o[s])p=o[s](d.modal,i);else if(v==="input"){var B=d.modal.value;N=function(){function L(w){return y(i,s,B)}return L}(),p=(0,e.createComponentVNode)(2,t.Input,{value:d.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(){function L(w,x){B=x}return L}()}),g=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){function L(){return S(i)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){function L(){return y(i,s,B)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(v==="choice"){var I=typeof d.modal.choices=="object"?Object.values(d.modal.choices):d.modal.choices;p=(0,e.createComponentVNode)(2,t.Dropdown,{options:I,selected:d.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function L(w){return y(i,s,w)}return L}()}),V="initial"}else v==="bento"?p=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:d.modal.choices.map(function(L,w){return(0,e.createComponentVNode)(2,t.Stack.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:w+1===parseInt(d.modal.value,10),onClick:function(){function x(){return y(i,s,w+1)}return x}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:L})})},w)})}):v==="boolean"&&(g=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:d.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){function L(){return y(i,s,0)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:d.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function L(){return y(i,s,1)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:c.maxWidth||window.innerWidth/2+"px",maxHeight:c.maxHeight||window.innerHeight/2+"px",onEnter:N,mx:"auto",overflowY:V,"padding-bottom":"5px",children:[l&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:l}),o[s]&&C,p,g]})}}return h}()},41874:function(T,r,n){"use strict";r.__esModule=!0,r.CrewManifest=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(25328),f=n(76910),b=f.COLORS.department,y=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],S=function(m){return y.indexOf(m)!==-1?"green":"orange"},k=function(m){if(y.indexOf(m)!==-1)return!0},h=function(m){return m.length>0&&(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,color:"white",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"50%",children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"35%",children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"15%",children:"Active"})]}),m.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{color:S(d.rank),bold:k(d.rank),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(d.name)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(d.rank)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.active})]},d.name+d.rank)})]})},c=r.CrewManifest=function(){function i(m,d){var u=(0,a.useBackend)(d),s=u.act,l;if(m.data)l=m.data;else{var v=(0,a.useBackend)(d),N=v.data;l=N}var C=l,p=C.manifest,g=p.heads,V=p.sec,B=p.eng,I=p.med,L=p.sci,w=p.ser,x=p.sup,A=p.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.command,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Command"})}),level:2,children:h(g)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.security,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Security"})}),level:2,children:h(V)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.engineering,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Engineering"})}),level:2,children:h(B)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.medical,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Medical"})}),level:2,children:h(I)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.science,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Science"})}),level:2,children:h(L)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.service,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Service"})}),level:2,children:h(w)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.supply,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Supply"})}),level:2,children:h(x)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Misc"})}),level:2,children:h(A)})]})}return i}()},19203:function(T,r,n){"use strict";r.__esModule=!0,r.InputButtons=void 0;var e=n(89005),a=n(36036),t=n(72253),o=r.InputButtons=function(){function f(b,y){var S=(0,t.useBackend)(y),k=S.act,h=S.data,c=h.large_buttons,i=h.swapped_buttons,m=b.input,d=b.message,u=b.disabled,s=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"Submit",bold:!!c,fluid:!!c,onClick:function(){function v(){return k("submit",{entry:m})}return v}(),textAlign:"center",tooltip:c&&d,disabled:u,width:!c&&6}),l=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"Cancel",bold:!!c,fluid:!!c,onClick:function(){function v(){return k("cancel")}return v}(),textAlign:"center",width:!c&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:i?"row-reverse":"row",justify:"space-around",children:[c?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:i?.5:0,mr:i?0:.5,children:l}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:l}),!c&&d&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:d})}),c?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,mr:i?.5:0,ml:i?0:.5,children:s}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:s})]})}return f}()},195:function(T,r,n){"use strict";r.__esModule=!0,r.InterfaceLockNoticeBox=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.InterfaceLockNoticeBox=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,c=b.siliconUser,i=c===void 0?h.siliconUser:c,m=b.locked,d=m===void 0?h.locked:m,u=b.normallyLocked,s=u===void 0?h.normallyLocked:u,l=b.onLockStatusChange,v=l===void 0?function(){return k("lock")}:l,N=b.accessText,C=N===void 0?"an ID card":N;return i?(0,e.createComponentVNode)(2,t.NoticeBox,{color:i&&"grey",children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:"Interface lock status:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1"}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{m:"0",color:s?"red":"green",icon:s?"lock":"unlock",content:s?"Locked":"Unlocked",onClick:function(){function p(){v&&v(!d)}return p}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",C," to ",d?"unlock":"lock"," this interface."]})}return f}()},51057:function(T,r,n){"use strict";r.__esModule=!0,r.Loader=void 0;var e=n(89005),a=n(44879),t=n(36036),o=r.Loader=function(){function f(b){var y=b.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(y)*100+"%"}}),2)}return f}()},321:function(T,r,n){"use strict";r.__esModule=!0,r.LoginInfo=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LoginInfo=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,c=h.loginState;if(h)return(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:["Logged in as: ",c.name," (",c.rank,")"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!c.id,content:"Eject ID",color:"good",onClick:function(){function i(){return k("login_eject")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Logout",color:"good",onClick:function(){function i(){return k("login_logout")}return i}()})]})]})})}return f}()},5485:function(T,r,n){"use strict";r.__esModule=!0,r.LoginScreen=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LoginScreen=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,c=h.loginState,i=h.isAI,m=h.isRobot,d=h.isAdmin;return(0,e.createComponentVNode)(2,t.Section,{title:"Welcome",fill:!0,stretchContents:!0,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",align:"center",justify:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"center",mt:"-2rem",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,e.createComponentVNode)(2,t.Box,{color:"label",my:"1rem",children:["ID:",(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:c.id?c.id:"----------",ml:"0.5rem",onClick:function(){function u(){return k("login_insert")}return u}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!c.id,content:"Login",onClick:function(){function u(){return k("login_login",{login_type:1})}return u}()}),!!i&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){function u(){return k("login_login",{login_type:2})}return u}()}),!!m&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){function u(){return k("login_login",{login_type:3})}return u}()}),!!d&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){function u(){return k("login_login",{login_type:4})}return u}()})]})})})}return f}()},62411:function(T,r,n){"use strict";r.__esModule=!0,r.Operating=void 0;var e=n(89005),a=n(36036),t=n(15964),o=r.Operating=function(){function f(b){var y=b.operating,S=b.name;if(y)return(0,e.createComponentVNode)(2,a.Dimmer,{children:(0,e.createComponentVNode)(2,a.Flex,{mb:"30px",children:(0,e.createComponentVNode)(2,a.Flex.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,e.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,e.createVNode)(1,"br"),"The ",S," is processing..."]})})})}return f}();o.propTypes={operating:t.bool,name:t.string}},13545:function(T,r,n){"use strict";r.__esModule=!0,r.Signaler=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=r.Signaler=function(){function b(y,S){var k=(0,t.useBackend)(S),h=k.act,c=y.data,i=c.code,m=c.frequency,d=c.minFrequency,u=c.maxFrequency;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:d/10,maxValue:u/10,value:m/10,format:function(){function s(l){return(0,a.toFixed)(l,1)}return s}(),width:"80px",onDrag:function(){function s(l,v){return h("freq",{freq:v})}return s}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:i,width:"80px",onDrag:function(){function s(l,v){return h("code",{code:v})}return s}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function s(){return h("signal")}return s}()})]})}return b}()},41984:function(T,r,n){"use strict";r.__esModule=!0,r.SimpleRecords=void 0;var e=n(89005),a=n(72253),t=n(25328),o=n(64795),f=n(88510),b=n(36036),y=r.SimpleRecords=function(){function h(c,i){var m=c.data.records;return(0,e.createComponentVNode)(2,b.Box,{children:m?(0,e.createComponentVNode)(2,k,{data:c.data,recordType:c.recordType}):(0,e.createComponentVNode)(2,S,{data:c.data})})}return h}(),S=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=c.data.recordsList,s=(0,a.useLocalState)(i,"searchText",""),l=s[0],v=s[1],N=function(g,V){V===void 0&&(V="");var B=(0,t.createSearch)(V,function(I){return I.Name});return(0,o.flow)([(0,f.filter)(function(I){return I==null?void 0:I.Name}),V&&(0,f.filter)(B),(0,f.sortBy)(function(I){return I.Name})])(u)},C=N(u,l);return(0,e.createComponentVNode)(2,b.Box,{children:[(0,e.createComponentVNode)(2,b.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function p(g,V){return v(V)}return p}()}),C.map(function(p){return(0,e.createComponentVNode)(2,b.Box,{children:(0,e.createComponentVNode)(2,b.Button,{mb:.5,content:p.Name,icon:"user",onClick:function(){function g(){return d("Records",{target:p.uid})}return g}()})},p)})]})},k=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=c.data.records,s=u.general,l=u.medical,v=u.security,N;switch(c.recordType){case"MED":N=(0,e.createComponentVNode)(2,b.Section,{level:2,title:"Medical Data",children:l?(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Blood Type",children:l.blood_type}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Minor Disabilities",children:l.mi_dis}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:l.mi_dis_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Major Disabilities",children:l.ma_dis}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:l.ma_dis_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Allergies",children:l.alg}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:l.alg_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Current Diseases",children:l.cdi}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:l.cdi_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:l.notes})]}):(0,e.createComponentVNode)(2,b.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":N=(0,e.createComponentVNode)(2,b.Section,{level:2,title:"Security Data",children:v?(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Criminal Status",children:v.criminal}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Minor Crimes",children:v.mi_crim}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:v.mi_crim_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Major Crimes",children:v.ma_crim}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:v.ma_crim_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:v.notes})]}):(0,e.createComponentVNode)(2,b.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,b.Box,{children:[(0,e.createComponentVNode)(2,b.Section,{title:"General Data",children:s?(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Name",children:s.name}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Sex",children:s.sex}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Species",children:s.species}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Age",children:s.age}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Rank",children:s.rank}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Mental Status",children:s.m_stat})]}):(0,e.createComponentVNode)(2,b.Box,{color:"red",bold:!0,children:"General record lost!"})}),N]})}},22091:function(T,r,n){"use strict";r.__esModule=!0,r.TemporaryNotice=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.TemporaryNotice=function(){function f(b,y){var S,k=(0,a.useBackend)(y),h=k.act,c=k.data,i=c.temp;if(i){var m=(S={},S[i.style]=!0,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.NoticeBox,Object.assign({},m,{children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:i.text}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"times-circle",onClick:function(){function d(){return h("cleartemp")}return d}()})})]})})))}}return f}()},80818:function(T,r,n){"use strict";r.__esModule=!0,r.pai_atmosphere=void 0;var e=n(89005),a=n(72253),t=n(26991),o=r.pai_atmosphere=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:h.app_data})}return f}()},23903:function(T,r,n){"use strict";r.__esModule=!0,r.pai_bioscan=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_bioscan=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,c=h.app_data,i=c.holder,m=c.dead,d=c.health,u=c.brute,s=c.oxy,l=c.tox,v=c.burn,N=c.temp;return i?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:m?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"Dead"}):(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"green",children:"Alive"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:0,max:1,value:d/100,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"blue",children:s})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxin Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"green",children:l})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:v})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:u})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return f}()},64988:function(T,r,n){"use strict";r.__esModule=!0,r.pai_directives=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_directives=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,c=h.app_data,i=c.master,m=c.dna,d=c.prime,u=c.supplemental;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master",children:i?i+" ("+m+")":"None"}),i&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Request DNA",children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Carrier DNA Sample",icon:"dna",onClick:function(){function s(){return k("getdna")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prime Directive",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Supplemental Directives",children:u||"None"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})}return f}()},13813:function(T,r,n){"use strict";r.__esModule=!0,r.pai_doorjack=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_doorjack=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,c=h.app_data,i=c.cable,m=c.machine,d=c.inprogress,u=c.progress,s=c.aborted,l;m?l=(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Connected"}):l=(0,e.createComponentVNode)(2,t.Button,{content:i?"Extended":"Retracted",color:i?"orange":null,onClick:function(){function N(){return k("cable")}return N}()});var v;return m&&(v=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hack",children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[67,1/0],average:[33,67],bad:[-1/0,33]},value:u,maxValue:100}),d?(0,e.createComponentVNode)(2,t.Button,{mt:1,color:"red",content:"Abort",onClick:function(){function N(){return k("cancel")}return N}()}):(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Start",onClick:function(){function N(){return k("jack")}return N}()})]})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cable",children:l}),v]})}return f}()},66025:function(T,r,n){"use strict";r.__esModule=!0,r.pai_main_menu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_main_menu=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,c=h.app_data,i=c.available_software,m=c.installed_software,d=c.installed_toggles,u=c.available_ram,s=c.emotions,l=c.current_emotion,v=c.speech_verbs,N=c.current_speech_verb,C=c.available_chassises,p=c.current_chassis,g=[];return m.map(function(V){return g[V.key]=V.name}),d.map(function(V){return g[V.key]=V.name}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available RAM",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Software",children:[i.filter(function(V){return!g[V.key]}).map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name+" ("+V.cost+")",icon:V.icon,disabled:V.cost>u,onClick:function(){function B(){return k("purchaseSoftware",{key:V.key})}return B}()},V.key)}),i.filter(function(V){return!g[V.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[m.filter(function(V){return V.key!=="mainmenu"}).map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,icon:V.icon,onClick:function(){function B(){return k("startSoftware",{software_key:V.key})}return B}()},V.key)}),m.length===0&&"No software installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Toggles",children:[d.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,icon:V.icon,selected:V.active,onClick:function(){function B(){return k("setToggle",{toggle_key:V.key})}return B}()},V.key)}),d.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:s.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,selected:V.id===l,onClick:function(){function B(){return k("setEmotion",{emotion:V.id})}return B}()},V.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Speaking State",children:v.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,selected:V.name===N,onClick:function(){function B(){return k("setSpeechStyle",{speech_state:V.name})}return B}()},V.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Chassis Type",children:C.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,selected:V.icon===p,onClick:function(){function B(){return k("setChassis",{chassis_to_change:V.icon})}return B}()},V.id)})})]})})}return f}()},2983:function(T,r,n){"use strict";r.__esModule=!0,r.pai_manifest=void 0;var e=n(89005),a=n(72253),t=n(41874),o=r.pai_manifest=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:h.app_data})}return f}()},40758:function(T,r,n){"use strict";r.__esModule=!0,r.pai_medrecords=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pai_medrecords=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k.app_data,recordType:"MED"})}return f}()},98599:function(T,r,n){"use strict";r.__esModule=!0,r.pai_messenger=void 0;var e=n(89005),a=n(72253),t=n(77595),o=r.pai_messenger=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,c=h.app_data.active_convo;return c?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:h.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:h.app_data})}return f}()},50775:function(T,r,n){"use strict";r.__esModule=!0,r.pai_radio=void 0;var e=n(89005),a=n(72253),t=n(44879),o=n(36036),f=r.pai_radio=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.app_data,m=i.minFrequency,d=i.maxFrequency,u=i.frequency,s=i.broadcasting;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:m/10,maxValue:d/10,value:u/10,format:function(){function l(v){return(0,t.toFixed)(v,1)}return l}(),onChange:function(){function l(v,N){return h("freq",{freq:N})}return l}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function l(){return h("freq",{freq:"145.9"})}return l}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function l(){return h("toggleBroadcast")}return l}(),selected:s,content:s?"Enabled":"Disabled"})})]})}return b}()},48623:function(T,r,n){"use strict";r.__esModule=!0,r.pai_secrecords=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pai_secrecords=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k.app_data,recordType:"SEC"})}return f}()},47297:function(T,r,n){"use strict";r.__esModule=!0,r.pai_signaler=void 0;var e=n(89005),a=n(72253),t=n(13545),o=r.pai_signaler=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:h.app_data})}return f}()},78532:function(T,r,n){"use strict";r.__esModule=!0,r.pda_atmos_scan=void 0;var e=n(89005),a=n(72253),t=n(26991),o=r.pda_atmos_scan=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:k})}return f}()},40253:function(T,r,n){"use strict";r.__esModule=!0,r.pda_janitor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_janitor=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,c=h.janitor,i=c.user_loc,m=c.mops,d=c.buckets,u=c.cleanbots,s=c.carts,l=c.janicarts;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Location",children:[i.x,",",i.y]}),m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Locations",children:m.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - ",v.status]},v)})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:d.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - [",v.volume,"/",v.max_volume,"]"]},v)})}),u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:u.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - ",v.status]},v)})}),s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:s.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - [",v.volume,"/",v.max_volume,"]"]},v)})}),l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janicart Locations",children:l.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.direction_from_user,")"]},v)})})]})}return f}()},58293:function(T,r,n){"use strict";r.__esModule=!0,r.pda_main_menu=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=r.pda_main_menu=function(){function b(y,S){var k=(0,t.useBackend)(S),h=k.act,c=k.data,i=c.owner,m=c.ownjob,d=c.idInserted,u=c.categories,s=c.pai,l=c.notifying;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",color:"average",children:[i,", ",m]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID",children:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Update PDA Info",disabled:!d,onClick:function(){function v(){return h("UpdateInfo")}return v}()})})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Functions",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:u.map(function(v){var N=c.apps[v];return!N||!N.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:v,children:N.map(function(C){return(0,e.createComponentVNode)(2,o.Button,{icon:C.uid in l?C.notify_icon:C.icon,iconSpin:C.uid in l,color:C.uid in l?"red":"transparent",content:C.name,onClick:function(){function p(){return h("StartProgram",{program:C.uid})}return p}()},C.uid)})},v)})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!s&&(0,e.createComponentVNode)(2,o.Section,{title:"pAI",children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){function v(){return h("pai",{option:1})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function v(){return h("pai",{option:2})}return v}()})]})})]})}return b}()},58059:function(T,r,n){"use strict";r.__esModule=!0,r.pda_manifest=void 0;var e=n(89005),a=n(72253),t=n(41874),o=r.pda_manifest=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return f}()},18147:function(T,r,n){"use strict";r.__esModule=!0,r.pda_medical=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pda_medical=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k,recordType:"MED"})}return f}()},77595:function(T,r,n){"use strict";r.__esModule=!0,r.pda_messenger=r.MessengerList=r.ActiveConversation=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),f=r.pda_messenger=function(){function k(h,c){var i=(0,t.useBackend)(c),m=i.act,d=i.data,u=d.active_convo;return u?(0,e.createComponentVNode)(2,b,{data:d}):(0,e.createComponentVNode)(2,y,{data:d})}return k}(),b=r.ActiveConversation=function(){function k(h,c){var i=(0,t.useBackend)(c),m=i.act,d=h.data,u=d.convo_name,s=d.convo_job,l=d.messages,v=d.active_convo,N=(0,t.useLocalState)(c,"clipboardMode",!1),C=N[0],p=N[1],g=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+u+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:C,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function V(){return p(!C)}return V}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function V(){return m("Message",{target:v})}return V}(),content:"Reply"})],4),children:(0,a.filter)(function(V){return V.target===v})(l).map(function(V,B){return(0,e.createComponentVNode)(2,o.Box,{textAlign:V.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:V.sent?"#4d9121":"#cd7a0d",position:"absolute",left:V.sent?null:"0px",right:V.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:V.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:V.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:V.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[V.sent?"You:":"Them:"," ",V.message]})]},B)})});return C&&(g=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+u+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:C,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function V(){return p(!C)}return V}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function V(){return m("Message",{target:v})}return V}(),content:"Reply"})],4),children:(0,a.filter)(function(V){return V.target===v})(l).map(function(V,B){return(0,e.createComponentVNode)(2,o.Box,{color:V.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[V.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:V.message})]},B)})})),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:.5,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Delete Conversations",confirmContent:"Are you sure?",icon:"trash",confirmIcon:"trash",onClick:function(){function V(){return m("Clear",{option:"Convo"})}return V}()})})})}),g]})}return k}(),y=r.MessengerList=function(){function k(h,c){var i=(0,t.useBackend)(c),m=i.act,d=h.data,u=d.convopdas,s=d.pdas,l=d.charges,v=d.silent,N=d.toff,C=d.ringtone_list,p=d.ringtone,g=(0,t.useLocalState)(c,"searchTerm",""),V=g[0],B=g[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:5,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!v,icon:v?"volume-mute":"volume-up",onClick:function(){function I(){return m("Toggle Ringer")}return I}(),children:["Ringer: ",v?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:N?"bad":"green",icon:"power-off",onClick:function(){function I(){return m("Toggle Messenger")}return I}(),children:["Messenger: ",N?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function I(){return m("Clear",{option:"All"})}return I}(),children:"Delete All Conversations"}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function I(){return m("Ringtone")}return I}(),children:"Set Custom Ringtone"}),(0,e.createComponentVNode)(2,o.Button,{children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:p,width:"100px",options:Object.keys(C),onSelected:function(){function I(L){return m("Available_Ringtones",{selected_ringtone:L})}return I}()})})]})}),!N&&(0,e.createComponentVNode)(2,o.Box,{children:[!!l&&(0,e.createComponentVNode)(2,o.Box,{mt:.5,mb:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cartridge Special Function",children:[l," charges left."]})})}),!u.length&&!s.length&&(0,e.createComponentVNode)(2,o.Box,{children:"No current conversations"})||(0,e.createComponentVNode)(2,o.Box,{children:["Search:"," ",(0,e.createComponentVNode)(2,o.Input,{mt:.5,value:V,onInput:function(){function I(L,w){B(w)}return I}()})]})]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Messenger Offline."})]}),(0,e.createComponentVNode)(2,S,{title:"Current Conversations",data:d,pdas:u,msgAct:"Select Conversation",searchTerm:V}),(0,e.createComponentVNode)(2,S,{title:"Other PDAs",pdas:s,msgAct:"Message",data:d,searchTerm:V})]})}return k}(),S=function(h,c){var i=(0,t.useBackend)(c),m=i.act,d=h.data,u=h.pdas,s=h.title,l=h.msgAct,v=h.searchTerm,N=d.charges,C=d.plugins;return!u||!u.length?(0,e.createComponentVNode)(2,o.Section,{title:s,children:"No PDAs found."}):(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:s,children:u.filter(function(p){return p.Name.toLowerCase().includes(v.toLowerCase())}).map(function(p){return(0,e.createComponentVNode)(2,o.Stack,{m:.5,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"arrow-circle-down",content:p.Name,onClick:function(){function g(){return m(l,{target:p.uid})}return g}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!N&&C.map(function(g){return(0,e.createComponentVNode)(2,o.Button,{icon:g.icon,content:g.name,onClick:function(){function V(){return m("Messenger Plugin",{plugin:g.uid,target:p.uid})}return V}()},g.uid)})})]},p.uid)})})}},24635:function(T,r,n){"use strict";r.__esModule=!0,r.pda_mule=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_mule=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.mulebot,d=m.active;return(0,e.createComponentVNode)(2,t.Box,{children:d?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,f)})}return y}(),f=function(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.mulebot,d=m.bots;return d.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:u.Name,icon:"cog",onClick:function(){function s(){return c("control",{bot:u.uid})}return s}()})},u.Name)})},b=function(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.mulebot,d=m.botstatus,u=m.active,s=d.mode,l=d.loca,v=d.load,N=d.powr,C=d.dest,p=d.home,g=d.retn,V=d.pick,B;switch(s){case 0:B="Ready";break;case 1:B="Loading/Unloading";break;case 2:case 12:B="Navigating to delivery location";break;case 3:B="Navigating to Home";break;case 4:B="Waiting for clear path";break;case 5:case 6:B="Calculating navigation path";break;case 7:B="Unable to locate destination";break;default:B=s;break}return(0,e.createComponentVNode)(2,t.Section,{title:u,children:[s===-1&&(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[N,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Home",children:p}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:(0,e.createComponentVNode)(2,t.Button,{content:C?C+" (Set)":"None (Set)",onClick:function(){function I(){return c("target")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:v?v+" (Unload)":"None",disabled:!v,onClick:function(){function I(){return c("unload")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Pickup",children:(0,e.createComponentVNode)(2,t.Button,{content:V?"Yes":"No",selected:V,onClick:function(){function I(){return c("set_pickup_type",{autopick:V?0:1})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Return",children:(0,e.createComponentVNode)(2,t.Button,{content:g?"Yes":"No",selected:g,onClick:function(){function I(){return c("set_auto_return",{autoret:g?0:1})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function I(){return c("stop")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function I(){return c("start")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function I(){return c("home")}return I}()})]})]})]})}},23734:function(T,r,n){"use strict";r.__esModule=!0,r.pda_nanobank=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=r.pda_nanobank=function(){function d(u,s){var l=(0,t.useBackend)(s),v=l.act,N=l.data,C=N.logged_in,p=N.owner_name,g=N.money;return C?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Name",children:p}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:["$",g]})]})}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,y)]})],4):(0,e.createComponentVNode)(2,c)}return d}(),b=function(u,s){var l=(0,t.useBackend)(s),v=l.data,N=v.is_premium,C=(0,t.useLocalState)(s,"tabIndex",1),p=C[0],g=C[1];return(0,e.createComponentVNode)(2,o.Tabs,{mt:2,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:p===1,onClick:function(){function V(){return g(1)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transfers"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:p===2,onClick:function(){function V(){return g(2)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Account Actions"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:p===3,onClick:function(){function V(){return g(3)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transaction History"]}),!!N&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:p===4,onClick:function(){function V(){return g(4)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Supply Orders"]})]})},y=function(u,s){var l=(0,t.useLocalState)(s,"tabIndex",1),v=l[0],N=(0,t.useBackend)(s),C=N.data,p=C.db_status;if(!p)return(0,e.createComponentVNode)(2,o.Box,{children:"Account Database Connection Severed"});switch(v){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,k);case 3:return(0,e.createComponentVNode)(2,h);case 4:return(0,e.createComponentVNode)(2,m);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},S=function(u,s){var l,v=(0,t.useBackend)(s),N=v.act,C=v.data,p=C.requests,g=C.available_accounts,V=C.money,B=(0,t.useLocalState)(s,"selectedAccount"),I=B[0],L=B[1],w=(0,t.useLocalState)(s,"transferAmount"),x=w[0],A=w[1],E=(0,t.useLocalState)(s,"searchText",""),P=E[0],j=E[1],M=[];return g.map(function(R){return M[R.name]=R.UID}),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account",children:[(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account name",onInput:function(){function R(D,W){return j(W)}return R}()}),(0,e.createComponentVNode)(2,o.Dropdown,{mt:.6,width:"190px",options:g.filter((0,a.createSearch)(P,function(R){return R.name})).map(function(R){return R.name}),selected:(l=g.filter(function(R){return R.UID===I})[0])==null?void 0:l.name,onSelected:function(){function R(D){return L(M[D])}return R}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Amount",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Up to 5000",onInput:function(){function R(D,W){return A(W)}return R}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{bold:!0,icon:"paper-plane",width:"auto",disabled:V0&&l.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{children:["#",N.Number,' - "',N.Name,'" for "',N.OrderedBy,'"']},N)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Approved Orders",children:s>0&&u.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{children:["#",N.Number,' - "',N.Name,'" for "',N.ApprovedBy,'"']},N)})})]})}return f}()},17617:function(T,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(24826),f=["className","theme","children"],b=["className","scrollable","children"];/** + */var b=(0,t.createLogger)("hotkeys"),y={},S=[e.KEY_ESCAPE,e.KEY_ENTER,e.KEY_SPACE,e.KEY_TAB,e.KEY_CTRL,e.KEY_SHIFT,e.KEY_UP,e.KEY_DOWN,e.KEY_LEFT,e.KEY_RIGHT],k={},h=function(l){if(l===16)return"Shift";if(l===17)return"Ctrl";if(l===18)return"Alt";if(l===33)return"Northeast";if(l===34)return"Southeast";if(l===35)return"Southwest";if(l===36)return"Northwest";if(l===37)return"West";if(l===38)return"North";if(l===39)return"East";if(l===40)return"South";if(l===45)return"Insert";if(l===46)return"Delete";if(l>=48&&l<=57||l>=65&&l<=90)return String.fromCharCode(l);if(l>=96&&l<=105)return"Numpad"+(l-96);if(l>=112&&l<=123)return"F"+(l-111);if(l===188)return",";if(l===189)return"-";if(l===190)return"."},c=function(l){var v=String(l);if(v==="Ctrl+F5"||v==="Ctrl+R"){location.reload();return}if(v!=="Ctrl+F"&&!(l.event.defaultPrevented||l.isModifierKey()||S.includes(l.code))){v==="F5"&&(l.event.preventDefault(),l.event.returnValue=!1);var N=h(l.code);if(N){var C=y[N];if(C)return b.debug("macro",C),Byond.command(C);if(l.isDown()&&!k[N]){k[N]=!0;var p='Key_Down "'+N+'"';return b.debug(p),Byond.command(p)}if(l.isUp()&&k[N]){k[N]=!1;var g='Key_Up "'+N+'"';return b.debug(g),Byond.command(g)}}}},i=r.acquireHotKey=function(){function s(l){S.push(l)}return s}(),m=r.releaseHotKey=function(){function s(l){var v=S.indexOf(l);v>=0&&S.splice(v,1)}return s}(),d=r.releaseHeldKeys=function(){function s(){for(var l=0,v=Object.keys(k);l=75?i="green":c.integrity>=25?i="yellow":i="red",(0,e.createComponentVNode)(2,o.Window,{width:600,height:420,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:c.name,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:i,value:c.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,c.flushing===1?"Wipe of AI in progress...":"",0)})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!c.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:c.laws.map(function(m,d){return(0,e.createComponentVNode)(2,t.Box,{children:m},d)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:c.wireless?"check":"times",content:c.wireless?"Enabled":"Disabled",color:c.wireless?"green":"red",onClick:function(){function m(){return h("wireless")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:c.radio?"check":"times",content:c.radio?"Enabled":"Disabled",color:c.radio?"green":"red",onClick:function(){function m(){return h("radio")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wipe",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{width:10,icon:"trash-alt",confirmIcon:"trash-alt",disabled:c.flushing||c.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function m(){return h("wipe")}return m}()})})]})})})]})})})}return b}()},39454:function(T,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AIFixer=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data;if(c.occupant===null)return(0,e.createComponentVNode)(2,o.Window,{width:550,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"robot",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No Artificial Intelligence detected.",16)]})})})})});var i=!0;(c.stat===2||c.stat===null)&&(i=!1);var m=null;c.integrity>=75?m="green":c.integrity>=25?m="yellow":m="red";var d=!0;return c.integrity>=100&&c.stat!==2&&(d=!1),(0,e.createComponentVNode)(2,o.Window,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:c.occupant,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:m,value:c.integrity/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:i?"green":"red",children:i?"Functional":"Non-Functional"})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!c.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:c.laws.map(function(u,s){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:u},s)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.wireless?"times":"check",content:c.wireless?"Disabled":"Enabled",color:c.wireless?"red":"green",onClick:function(){function u(){return h("wireless")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.radio?"times":"check",content:c.radio?"Disabled":"Enabled",color:c.radio?"red":"green",onClick:function(){function u(){return h("radio")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!d||c.active,content:!d||c.active?"Already Repaired":"Repair",onClick:function(){function u(){return h("fix")}return u}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:c.active?"Reconstruction in progress.":""})]})})]})})})}return b}()},88422:function(T,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(195),b=r.APC=function(){function h(c,i){return(0,e.createComponentVNode)(2,o.Window,{width:510,height:435,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,k)})})}return h}(),y={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},S={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},k=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.locked&&!u.siliconUser,l=u.normallyLocked,v=y[u.externalPower]||y[0],N=y[u.chargingStatus]||y[0],C=u.powerChannels||[],p=S[u.malfStatus]||S[0],g=u.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main Breaker",color:v.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u.isOperating?"power-off":"times",content:u.isOperating?"On":"Off",selected:u.isOperating&&!s,color:u.isOperating?"":"bad",disabled:s,onClick:function(){function V(){return d("breaker")}return V}()}),children:["[ ",v.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:g})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",color:N.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u.chargeMode?"sync":"times",content:u.chargeMode?"Auto":"Off",selected:u.chargeMode,disabled:s,onClick:function(){function V(){return d("charge")}return V}()}),children:["[ ",N.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[C.map(function(V){var B=V.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:V.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:V.status>=2?"good":"bad",children:V.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!s&&(V.status===1||V.status===3),disabled:s,onClick:function(){function I(){return d("channel",B.auto)}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!s&&V.status===2,disabled:s,onClick:function(){function I(){return d("channel",B.on)}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!s&&V.status===0,disabled:s,onClick:function(){function I(){return d("channel",B.off)}return I}()})],4),children:[V.powerLoad," W"]},V.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:(0,e.createVNode)(1,"b",null,[u.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!u.siliconUser&&(0,e.createFragment)([!!u.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:p.icon,content:p.content,color:"bad",onClick:function(){function V(){return d(p.action)}return V}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function V(){return d("overload")}return V}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.4,icon:u.coverLocked?"lock":"unlock",content:u.coverLocked?"Engaged":"Disengaged",disabled:s,onClick:function(){function V(){return d("cover")}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:u.emergencyLights?"Enabled":"Disabled",disabled:s,onClick:function(){function V(){return d("emergency_lighting")}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{mt:.4,icon:"lightbulb-o",content:u.nightshiftLights?"Enabled":"Disabled",onClick:function(){function V(){return d("toggle_nightshift")}return V}()})})]})})],4)}},99660:function(T,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ATM=function(){function m(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data,N=v.view_screen,C=v.authenticated_account,p=v.ticks_left_locked_down,g=v.linked_db,V;if(p>0)V=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Maximum number of pin attempts exceeded! Access to this ATM has been temporarily disabled."]});else if(!g)V=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Unable to connect to accounts database, please retry and if the issue persists contact Nanotrasen IT support."]});else if(C)switch(N){case 1:V=(0,e.createComponentVNode)(2,y);break;case 2:V=(0,e.createComponentVNode)(2,S);break;case 3:V=(0,e.createComponentVNode)(2,c);break;default:V=(0,e.createComponentVNode)(2,k)}else V=(0,e.createComponentVNode)(2,h);return(0,e.createComponentVNode)(2,o.Window,{width:550,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,t.Section,{children:V})]})})}return m}(),b=function(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data,N=v.machine_id,C=v.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Nanotrasen Automatic Teller Machine",children:[(0,e.createComponentVNode)(2,t.Box,{children:"For all your monetary needs!"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card",children:(0,e.createComponentVNode)(2,t.Button,{content:C,icon:"eject",onClick:function(){function p(){return l("insert_card")}return p}()})})})]})},y=function(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data,N=v.security_level;return(0,e.createComponentVNode)(2,t.Section,{title:"Select a new security level for this account",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Number",icon:"unlock",selected:N===0,onClick:function(){function C(){return l("change_security_level",{new_security_level:1})}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"Either the account number or card is required to access this account. EFTPOS transactions will require a card."}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Pin",icon:"unlock",selected:N===2,onClick:function(){function C(){return l("change_security_level",{new_security_level:2})}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number and pin must be manually entered to access this account and process transactions."})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,i)]})},S=function(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data,N=(0,a.useLocalState)(u,"targetAccNumber",0),C=N[0],p=N[1],g=(0,a.useLocalState)(u,"fundsAmount",0),V=g[0],B=g[1],I=(0,a.useLocalState)(u,"purpose",0),L=I[0],w=I[1],A=v.money;return(0,e.createComponentVNode)(2,t.Section,{title:"Transfer Fund",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",A]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Account Number",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"7 Digit Number",onInput:function(){function x(E,P){return p(P)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Funds to Transfer",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function x(E,P){return B(P)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transaction Purpose",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,onInput:function(){function x(E,P){return w(P)}return x}()})})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){function x(){return l("transfer",{target_acc_number:C,funds_amount:V,purpose:L})}return x}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,i)]})},k=function(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data,N=(0,a.useLocalState)(u,"fundsAmount",0),C=N[0],p=N[1],g=v.owner_name,V=v.money;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Welcome, "+g,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){function B(){return l("logout")}return B}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",V]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function B(I,L){return p(L)}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){function B(){return l("withdrawal",{funds_amount:C})}return B}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Menu",children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change account security level",icon:"lock",onClick:function(){function B(){return l("view_screen",{view_screen:1})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){function B(){return l("view_screen",{view_screen:2})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View transaction log",icon:"list",onClick:function(){function B(){return l("view_screen",{view_screen:3})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print balance statement",icon:"print",onClick:function(){function B(){return l("balance_statement")}return B}()})})]})],4)},h=function(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data,N=(0,a.useLocalState)(u,"accountID",null),C=N[0],p=N[1],g=(0,a.useLocalState)(u,"accountPin",null),V=g[0],B=g[1],I=v.machine_id,L=v.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Insert card or enter ID and pin to login",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account ID",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function w(A,x){return p(x)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function w(A,x){return B(x)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function w(){return l("attempt_auth",{account_num:C,account_pin:V})}return w}()})})]})})},c=function(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data,N=v.transaction_log;return(0,e.createComponentVNode)(2,t.Section,{title:"Transactions",children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Terminal"})]}),N.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:C.is_deposit?"green":"red",children:["$",C.amount]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.target_name})]},C)})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,i)]})},i=function(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function N(){return l("view_screen",{view_screen:0})}return N}()})}},86423:function(T,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(36352),b=n(98595),y=n(321),S=n(5485),k=r.AccountsUplinkTerminal=function(){function v(N,C){var p=(0,t.useBackend)(C),g=p.act,V=p.data,B=V.loginState,I=V.currentPage,L;if(B.logged_in)I===1?L=(0,e.createComponentVNode)(2,c):I===2?L=(0,e.createComponentVNode)(2,s):I===3&&(L=(0,e.createComponentVNode)(2,l));else return(0,e.createComponentVNode)(2,b.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,S.LoginScreen)})})});return(0,e.createComponentVNode)(2,b.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:L})]})})})}return v}(),h=function(N,C){var p=(0,t.useBackend)(C),g=p.data,V=(0,t.useLocalState)(C,"tabIndex",0),B=V[0],I=V[1],L=g.login_state;return(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,mb:1,children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===0,onClick:function(){function w(){return I(0)}return w}(),children:"User Accounts"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===1,onClick:function(){function w(){return I(1)}return w}(),children:"Department Accounts"})]})})})},c=function(N,C){var p=(0,t.useLocalState)(C,"tabIndex",0),g=p[0];switch(g){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,m);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},i=function(N,C){var p=(0,t.useBackend)(C),g=p.act,V=p.data,B=V.accounts,I=(0,t.useLocalState)(C,"searchText",""),L=I[0],w=I[1],A=(0,t.useLocalState)(C,"sortId","owner_name"),x=A[0],E=A[1],P=(0,t.useLocalState)(C,"sortOrder",!0),j=P[0],M=P[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,d,{id:"owner_name",children:"Account Holder"}),(0,e.createComponentVNode)(2,d,{id:"account_number",children:"Account Number"}),(0,e.createComponentVNode)(2,d,{id:"suspended",children:"Account Status"}),(0,e.createComponentVNode)(2,d,{id:"money",children:"Account Balance"})]}),B.filter((0,a.createSearch)(L,function(R){return R.owner_name+"|"+R.account_number+"|"+R.suspended+"|"+R.money})).sort(function(R,D){var W=j?1:-1;return R[x].localeCompare(D[x])*W}).map(function(R){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+R.suspended,onClick:function(){function D(){return g("view_account_detail",{account_num:R.account_number})}return D}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",R.owner_name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",R.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.money})]},R.account_number)})]})})})]})},m=function(N,C){var p=(0,t.useBackend)(C),g=p.act,V=p.data,B=V.department_accounts;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,f.TableCell,{children:"Department Name"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Number"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Status"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Balance"})]}),B.map(function(I){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+I.suspended,onClick:function(){function L(){return g("view_account_detail",{account_num:I.account_number})}return L}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wallet"})," ",I.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",I.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.money})]},I.account_number)})]})})})})},d=function(N,C){var p=(0,t.useLocalState)(C,"sortId","name"),g=p[0],V=p[1],B=(0,t.useLocalState)(C,"sortOrder",!0),I=B[0],L=B[1],w=N.id,A=N.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:g!==w&&"transparent",width:"100%",onClick:function(){function x(){g===w?L(!I):(V(w),L(!0))}return x}(),children:[A,g===w&&(0,e.createComponentVNode)(2,o.Icon,{name:I?"sort-up":"sort-down",ml:"0.25rem;"})]})})},u=function(N,C){var p=(0,t.useBackend)(C),g=p.act,V=p.data,B=V.is_printing,I=(0,t.useLocalState)(C,"searchText",""),L=I[0],w=I[1];return(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"New Account",icon:"plus",onClick:function(){function A(){return g("create_new_account")}return A}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account holder, number, status",width:"100%",onInput:function(){function A(x,E){return w(E)}return A}()})})]})},s=function(N,C){var p=(0,t.useBackend)(C),g=p.act,V=p.data,B=V.account_number,I=V.owner_name,L=V.money,w=V.suspended,A=V.transactions,x=V.account_pin,E=V.is_department_account;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"#"+B+" / "+I,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function P(){return g("back")}return P}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Number",children:["#",B]}),!!E&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin",children:x}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin Actions",children:(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"user-cog",content:"Set New Pin",disabled:!!E,onClick:function(){function P(){return g("set_account_pin",{account_number:B})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:I}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:L}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Status",color:w?"red":"green",children:[w?"Suspended":"Active",(0,e.createComponentVNode)(2,o.Button,{ml:1,content:w?"Unsuspend":"Suspend",icon:w?"unlock":"lock",onClick:function(){function P(){return g("toggle_suspension")}return P}()})]})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Transactions",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Terminal"})]}),A.map(function(P){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:P.is_deposit?"green":"red",children:["$",P.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.target_name})]},P)})]})})})]})},l=function(N,C){var p=(0,t.useBackend)(C),g=p.act,V=p.data,B=(0,t.useLocalState)(C,"accName",""),I=B[0],L=B[1],w=(0,t.useLocalState)(C,"accDeposit",""),A=w[0],x=w[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Create Account",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function E(){return g("back")}return E}()}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Name Here",onChange:function(){function E(P,j){return L(j)}return E}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"0",onChange:function(){function E(P,j){return x(j)}return E}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){function E(){return g("finalise_create_account",{holder_name:I,starting_funds:A})}return E}()})]})}},56793:function(T,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},b=r.AiAirlock=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=f[i.power.main]||f[0],d=f[i.power.backup]||f[0],u=f[i.shock]||f[0];return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main",color:m.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!i.power.main,content:"Disrupt",onClick:function(){function s(){return c("disrupt-main")}return s}()}),children:[i.power.main?"Online":"Offline"," ",!i.wires.main_power&&"[Wires have been cut!]"||i.power.main_timeleft>0&&"["+i.power.main_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Backup",color:d.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!i.power.backup,content:"Disrupt",onClick:function(){function s(){return c("disrupt-backup")}return s}()}),children:[i.power.backup?"Online":"Offline"," ",!i.wires.backup_power&&"[Wires have been cut!]"||i.power.backup_timeleft>0&&"["+i.power.backup_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Electrify",color:u.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"wrench",disabled:!(i.wires.shock&&i.shock!==2),content:"Restore",onClick:function(){function s(){return c("shock-restore")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"bolt",disabled:!i.wires.shock,content:"Temporary",onClick:function(){function s(){return c("shock-temp")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!i.wires.shock||i.shock===0,content:"Permanent",onClick:function(){function s(){return c("shock-perm")}return s}()})],4),children:[i.shock===2?"Safe":"Electrified"," ",!i.wires.shock&&"[Wires have been cut!]"||i.shock_timeleft>0&&"["+i.shock_timeleft+"s]"||i.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Access and Door Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:i.id_scanner?"power-off":"times",content:i.id_scanner?"Enabled":"Disabled",selected:i.id_scanner,disabled:!i.wires.id_scanner,onClick:function(){function s(){return c("idscan-toggle")}return s}()}),children:!i.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Access",buttons:(0,e.createComponentVNode)(2,t.Button,{width:6.5,icon:i.emergency?"power-off":"times",content:i.emergency?"Enabled":"Disabled",selected:i.emergency,onClick:function(){function s(){return c("emergency-toggle")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:i.locked?"lock":"unlock",content:i.locked?"Lowered":"Raised",selected:i.locked,disabled:!i.wires.bolts,onClick:function(){function s(){return c("bolt-toggle")}return s}()}),children:!i.wires.bolts&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:i.lights?"power-off":"times",content:i.lights?"Enabled":"Disabled",selected:i.lights,disabled:!i.wires.lights,onClick:function(){function s(){return c("light-toggle")}return s}()}),children:!i.wires.lights&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:i.safe?"power-off":"times",content:i.safe?"Enabled":"Disabled",selected:i.safe,disabled:!i.wires.safe,onClick:function(){function s(){return c("safe-toggle")}return s}()}),children:!i.wires.safe&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:i.speed?"power-off":"times",content:i.speed?"Enabled":"Disabled",selected:i.speed,disabled:!i.wires.timing,onClick:function(){function s(){return c("speed-toggle")}return s}()}),children:!i.wires.timing&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:i.opened?"sign-out-alt":"sign-in-alt",content:i.opened?"Open":"Closed",selected:i.opened,disabled:i.locked||i.welded,onClick:function(){function s(){return c("open-close")}return s}()}),children:!!(i.locked||i.welded)&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("[Door is "),i.locked?"bolted":"",i.locked&&i.welded?" and ":"",i.welded?"welded":"",(0,e.createTextVNode)("!]")],0)})]})})]})})}return y}()},72475:function(T,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(195),b=r.AirAlarm=function(){function u(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:p?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,S),!p&&(0,e.createFragment)([(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,h)],4)]})})}return u}(),y=function(s){return s===0?"green":s===1?"orange":"red"},S=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.air,g=C.mode,V=C.atmos_alarm,B=C.locked,I=C.alarmActivated,L=C.rcon,w=C.target_temp,A;return p.danger.overall===0?V===0?A="Optimal":A="Caution: Atmos alert in area":p.danger.overall===1?A="Caution":A="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:p?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:y(p.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.pressure})," kPa",!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:g===3?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:g===3,icon:"exclamation-triangle",onClick:function(){function x(){return N("mode",{mode:g===3?1:3})}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.oxygen/100,fractionDigits:"1",color:y(p.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.nitrogen/100,fractionDigits:"1",color:y(p.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.co2/100,fractionDigits:"1",color:y(p.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.plasma/100,fractionDigits:"1",color:y(p.danger.plasma)})}),p.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.n2o/100,fractionDigits:"1",color:y(p.danger.n2o)})}),p.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.other/100,fractionDigits:"1",color:y(p.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:y(p.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.temperature})," K / ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:w+" C",onClick:function(){function x(){return N("temperature")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:p.thermostat_state?"On":"Off",selected:p.thermostat_state,icon:"power-off",onClick:function(){function x(){return N("thermostat_state")}return x}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:y(p.danger.overall),children:[A,!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:I?"Reset Alarm":"Activate Alarm",selected:I,onClick:function(){function x(){return N(I?"atmos_reset":"atmos_alarm")}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Control Settings",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Off",selected:L===1,onClick:function(){function x(){return N("set_rcon",{rcon:1})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:L===2,onClick:function(){function x(){return N("set_rcon",{rcon:2})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:L===3,onClick:function(){function x(){return N("set_rcon",{rcon:3})}return x}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},k=function(s,l){var v=(0,a.useLocalState)(l,"tabIndex",0),N=v[0],C=v[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:N===0,onClick:function(){function p(){return C(0)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:N===1,onClick:function(){function p(){return C(1)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:N===2,onClick:function(){function p(){return C(2)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:N===3,onClick:function(){function p(){return C(3)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},h=function(s,l){var v=(0,a.useLocalState)(l,"tabIndex",0),N=v[0],C=v[1];switch(N){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,i);case 2:return(0,e.createComponentVNode)(2,m);case 3:return(0,e.createComponentVNode)(2,d);default:return"WE SHOULDN'T BE HERE!"}},c=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.vents;return p.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:g.power?"On":"Off",selected:g.power,icon:"power-off",onClick:function(){function V(){return N("command",{cmd:"power",val:!g.power,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:g.direction?"Blowing":"Siphoning",icon:g.direction?"sign-out-alt":"sign-in-alt",onClick:function(){function V(){return N("command",{cmd:"direction",val:!g.direction,id_tag:g.id_tag})}return V}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Checks",children:[(0,e.createComponentVNode)(2,t.Button,{content:"External",selected:g.checks===1,onClick:function(){function V(){return N("command",{cmd:"checks",val:1,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:g.checks===2,onClick:function(){function V(){return N("command",{cmd:"checks",val:2,id_tag:g.id_tag})}return V}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Pressure Target",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:g.external})," kPa\xA0",(0,e.createComponentVNode)(2,t.Button,{content:"Set",icon:"cog",onClick:function(){function V(){return N("command",{cmd:"set_external_pressure",id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function V(){return N("command",{cmd:"set_external_pressure",val:101.325,id_tag:g.id_tag})}return V}()})]})]})},g.name)})},i=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.scrubbers;return p.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:g.power?"On":"Off",selected:g.power,icon:"power-off",onClick:function(){function V(){return N("command",{cmd:"power",val:!g.power,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:g.scrubbing?"Scrubbing":"Siphoning",icon:g.scrubbing?"filter":"sign-in-alt",onClick:function(){function V(){return N("command",{cmd:"scrubbing",val:!g.scrubbing,id_tag:g.id_tag})}return V}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{content:g.widenet?"Extended":"Normal",selected:g.widenet,icon:"expand-arrows-alt",onClick:function(){function V(){return N("command",{cmd:"widenet",val:!g.widenet,id_tag:g.id_tag})}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filtering",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Carbon Dioxide",selected:g.filter_co2,onClick:function(){function V(){return N("command",{cmd:"co2_scrub",val:!g.filter_co2,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:g.filter_toxins,onClick:function(){function V(){return N("command",{cmd:"tox_scrub",val:!g.filter_toxins,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:g.filter_n2o,onClick:function(){function V(){return N("command",{cmd:"n2o_scrub",val:!g.filter_n2o,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:g.filter_o2,onClick:function(){function V(){return N("command",{cmd:"o2_scrub",val:!g.filter_o2,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:g.filter_n2,onClick:function(){function V(){return N("command",{cmd:"n2_scrub",val:!g.filter_n2,id_tag:g.id_tag})}return V}()})]})]})},g.name)})},m=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.modes,g=C.presets,V=C.emagged,B=C.mode,I=C.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:(0,e.createComponentVNode)(2,t.Table,{children:p.map(function(L){return(!L.emagonly||L.emagonly&&!!V)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:L.name,icon:"cog",selected:L.id===B,onClick:function(){function w(){return N("mode",{mode:L.id})}return w}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"System Presets",children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"After making a selection, the system will automatically cycle in order to remove contaminants."}),(0,e.createComponentVNode)(2,t.Table,{mt:1,children:g.map(function(L){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:L.name,icon:"cog",selected:L.id===I,onClick:function(){function w(){return N("preset",{preset:L.id})}return w}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})]})],4)},d=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.thresholds;return(0,e.createComponentVNode)(2,t.Section,{title:"Alarm Thresholds",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),p.map(function(g){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.name}),g.settings.map(function(V){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:V.selected===-1?"Off":V.selected,onClick:function(){function B(){return N("command",{cmd:"set_threshold",env:V.env,var:V.val})}return B}()})},V.val)})]},g.name)})]})})}},12333:function(T,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AirlockAccessController=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.exterior_status,m=c.interior_status,d=c.processing,u,s;return i==="open"?u=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:d,onClick:function(){function l(){return h("force_ext")}return l}()}):u=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:d,onClick:function(){function l(){return h("cycle_ext_door")}return l}()}),m==="open"?s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:d,color:m==="open"?"red":d?"yellow":null,onClick:function(){function l(){return h("force_int")}return l}()}):s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:d,onClick:function(){function l(){return h("cycle_int_door")}return l}()}),(0,e.createComponentVNode)(2,o.Window,{width:330,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Door Status",children:i==="closed"?"Locked":"Open"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Door Status",children:m==="closed"?"Locked":"Open"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.Box,{children:[u,s]})})]})})}return b}()},28736:function(T,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(49148),b=1,y=2,S=4,k=8,h=r.AirlockElectronics=function(){function m(d,u){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:565,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)]})})})}return m}(),c=function(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data,N=v.unrestricted_dir;return(0,e.createComponentVNode)(2,t.Section,{title:"Access Control",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:N&S,onClick:function(){function C(){return l("unrestricted_access",{unres_dir:S})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-up",content:"South",selected:N&y,onClick:function(){function C(){return l("unrestricted_access",{unres_dir:y})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-right",content:"West",selected:N&k,onClick:function(){function C(){return l("unrestricted_access",{unres_dir:k})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-down",content:"North",selected:N&b,onClick:function(){function C(){return l("unrestricted_access",{unres_dir:b})}return C}()})})]})]})})},i=function(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data,N=v.selected_accesses,C=v.one_access,p=v.regions;return(0,e.createComponentVNode)(2,f.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:C,content:"One",onClick:function(){function g(){return l("set_one_access",{access:"one"})}return g}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!C,content:"All",onClick:function(){function g(){return l("set_one_access",{access:"all"})}return g}()})],4),accesses:p,selectedList:N,accessMod:function(){function g(V){return l("set",{access:V})}return g}(),grantAll:function(){function g(){return l("grant_all")}return g}(),denyAll:function(){function g(){return l("clear_all")}return g}(),grantDep:function(){function g(V){return l("grant_region",{region:V})}return g}(),denyDep:function(){function g(V){return l("deny_region",{region:V})}return g}()})}},47365:function(T,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(89005),a=n(51057),t=n(72253),o=n(92986),f=n(36036),b=n(98595),y=-1,S=1,k=r.AlertModal=function(){function i(m,d){var u=(0,t.useBackend)(d),s=u.act,l=u.data,v=l.autofocus,N=l.buttons,C=N===void 0?[]:N,p=l.large_buttons,g=l.message,V=g===void 0?"":g,B=l.timeout,I=l.title,L=(0,t.useLocalState)(d,"selected",0),w=L[0],A=L[1],x=110+(V.length>30?Math.ceil(V.length/4):0)+(V.length&&p?5:0),E=325+(C.length>2?100:0),P=function(){function j(M){w===0&&M===y?A(C.length-1):w===C.length-1&&M===S?A(0):A(w+M)}return j}();return(0,e.createComponentVNode)(2,b.Window,{title:I,height:x,width:E,children:[!!B&&(0,e.createComponentVNode)(2,a.Loader,{value:B}),(0,e.createComponentVNode)(2,b.Window.Content,{onKeyDown:function(){function j(M){var R=window.event?M.which:M.keyCode;R===o.KEY_SPACE||R===o.KEY_ENTER?s("choose",{choice:C[w]}):R===o.KEY_ESCAPE?s("cancel"):R===o.KEY_LEFT?(M.preventDefault(),P(y)):(R===o.KEY_TAB||R===o.KEY_RIGHT)&&(M.preventDefault(),P(S))}return j}(),children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,f.Box,{color:"label",overflow:"hidden",children:V})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:[!!v&&(0,e.createComponentVNode)(2,f.Autofocus),(0,e.createComponentVNode)(2,h,{selected:w})]})]})})})]})}return i}(),h=function(m,d){var u=(0,t.useBackend)(d),s=u.data,l=s.buttons,v=l===void 0?[]:l,N=s.large_buttons,C=s.swapped_buttons,p=m.selected;return(0,e.createComponentVNode)(2,f.Flex,{fill:!0,align:"center",direction:C?"row":"row-reverse",justify:"space-around",wrap:!0,children:v==null?void 0:v.map(function(g,V){return N&&v.length<3?(0,e.createComponentVNode)(2,f.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,c,{button:g,id:V.toString(),selected:p===V})},V):(0,e.createComponentVNode)(2,f.Flex.Item,{grow:N?1:0,children:(0,e.createComponentVNode)(2,c,{button:g,id:V.toString(),selected:p===V})},V)})})},c=function(m,d){var u=(0,t.useBackend)(d),s=u.act,l=u.data,v=l.large_buttons,N=m.button,C=m.selected,p=N.length>7?"100%":7;return(0,e.createComponentVNode)(2,f.Button,{mx:v?1:0,pt:v?.33:0,content:N,fluid:!!v,onClick:function(){function g(){return s("choose",{choice:N})}return g}(),selected:C,textAlign:"center",height:!!v&&2,width:!v&&p})}},71824:function(T,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AppearanceChanger=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.change_race,d=i.species,u=i.specimen,s=i.change_gender,l=i.gender,v=i.change_eye_color,N=i.change_skin_tone,C=i.change_skin_color,p=i.change_runechat_color,g=i.change_head_accessory_color,V=i.change_hair_color,B=i.change_secondary_hair_color,I=i.change_facial_hair_color,L=i.change_secondary_facial_hair_color,w=i.change_head_marking_color,A=i.change_body_marking_color,x=i.change_tail_marking_color,E=i.change_head_accessory,P=i.head_accessory_styles,j=i.head_accessory_style,M=i.change_hair,R=i.hair_styles,D=i.hair_style,W=i.change_hair_gradient,_=i.change_facial_hair,U=i.facial_hair_styles,K=i.facial_hair_style,G=i.change_head_markings,$=i.head_marking_styles,Q=i.head_marking_style,J=i.change_body_markings,ie=i.body_marking_styles,ne=i.body_marking_style,se=i.change_tail_markings,Ce=i.tail_marking_styles,Se=i.tail_marking_style,ye=i.change_body_accessory,he=i.body_accessory_styles,oe=i.body_accessory_style,ce=i.change_alt_head,ee=i.alt_head_styles,fe=i.alt_head_style,me=!1;return(v||N||C||g||p||V||B||I||L||w||A||x)&&(me=!0),(0,e.createComponentVNode)(2,o.Window,{width:800,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:d.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.specimen,selected:te.specimen===u,onClick:function(){function be(){return c("race",{race:te.specimen})}return be}()},te.specimen)})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:l==="male",onClick:function(){function te(){return c("gender",{gender:"male"})}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:l==="female",onClick:function(){function te(){return c("gender",{gender:"female"})}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:l==="plural",onClick:function(){function te(){return c("gender",{gender:"plural"})}return te}()})]}),!!me&&(0,e.createComponentVNode)(2,b),!!E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:P.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.headaccessorystyle,selected:te.headaccessorystyle===j,onClick:function(){function be(){return c("head_accessory",{head_accessory:te.headaccessorystyle})}return be}()},te.headaccessorystyle)})}),!!M&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:R.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.hairstyle,selected:te.hairstyle===D,onClick:function(){function be(){return c("hair",{hair:te.hairstyle})}return be}()},te.hairstyle)})}),!!W&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function te(){return c("hair_gradient")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function te(){return c("hair_gradient_offset")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function te(){return c("hair_gradient_colour")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function te(){return c("hair_gradient_alpha")}return te}()})]}),!!_&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:U.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.facialhairstyle,selected:te.facialhairstyle===K,onClick:function(){function be(){return c("facial_hair",{facial_hair:te.facialhairstyle})}return be}()},te.facialhairstyle)})}),!!G&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:$.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.headmarkingstyle,selected:te.headmarkingstyle===Q,onClick:function(){function be(){return c("head_marking",{head_marking:te.headmarkingstyle})}return be}()},te.headmarkingstyle)})}),!!J&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:ie.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.bodymarkingstyle,selected:te.bodymarkingstyle===ne,onClick:function(){function be(){return c("body_marking",{body_marking:te.bodymarkingstyle})}return be}()},te.bodymarkingstyle)})}),!!se&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:Ce.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.tailmarkingstyle,selected:te.tailmarkingstyle===Se,onClick:function(){function be(){return c("tail_marking",{tail_marking:te.tailmarkingstyle})}return be}()},te.tailmarkingstyle)})}),!!ye&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:he.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.bodyaccessorystyle,selected:te.bodyaccessorystyle===oe,onClick:function(){function be(){return c("body_accessory",{body_accessory:te.bodyaccessorystyle})}return be}()},te.bodyaccessorystyle)})}),!!ce&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:ee.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.altheadstyle,selected:te.altheadstyle===fe,onClick:function(){function be(){return c("alt_head",{alt_head:te.altheadstyle})}return be}()},te.altheadstyle)})})]})})})}return y}(),b=function(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=[{key:"change_eye_color",text:"Change eye color",action:"eye_color"},{key:"change_skin_tone",text:"Change skin tone",action:"skin_tone"},{key:"change_skin_color",text:"Change skin color",action:"skin_color"},{key:"change_runechat_color",text:"Change runechat color",action:"runechat_color"},{key:"change_head_accessory_color",text:"Change head accessory color",action:"head_accessory_color"},{key:"change_hair_color",text:"Change hair color",action:"hair_color"},{key:"change_secondary_hair_color",text:"Change secondary hair color",action:"secondary_hair_color"},{key:"change_facial_hair_color",text:"Change facial hair color",action:"facial_hair_color"},{key:"change_secondary_facial_hair_color",text:"Change secondary facial hair color",action:"secondary_facial_hair_color"},{key:"change_head_marking_color",text:"Change head marking color",action:"head_marking_color"},{key:"change_body_marking_color",text:"Change body marking color",action:"body_marking_color"},{key:"change_tail_marking_color",text:"Change tail marking color",action:"tail_marking_color"}];return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Colors",children:m.map(function(d){return!!i[d.key]&&(0,e.createComponentVNode)(2,t.Button,{content:d.text,onClick:function(){function u(){return c(d.action)}return u}()},d.key)})})}},72285:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AtmosAlertConsole=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.priority||[],m=c.minor||[];return(0,e.createComponentVNode)(2,o.Window,{width:350,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Alarms",children:(0,e.createVNode)(1,"ul",null,[i.length===0&&(0,e.createVNode)(1,"li","color-good","No Priority Alerts",16),i.map(function(d){return(0,e.createVNode)(1,"li","color-bad",d,0,null,d)}),m.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),m.map(function(d){return(0,e.createVNode)(1,"li","color-average",d,0,null,d)})],0)})})})}return b}()},65805:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(36352),f=n(98595),b=function(i){if(i===0)return(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Good"});if(i===1)return(0,e.createComponentVNode)(2,t.Box,{color:"orange",bold:!0,children:"Warning"});if(i===2)return(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"DANGER"})},y=function(i){if(i===0)return"green";if(i===1)return"orange";if(i===2)return"red"},S=r.AtmosControl=function(){function c(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=(0,a.useLocalState)(m,"tabIndex",0),v=l[0],N=l[1],C=function(){function p(g){switch(g){case 0:return(0,e.createComponentVNode)(2,k);case 1:return(0,e.createComponentVNode)(2,h);default:return"WE SHOULDN'T BE HERE!"}}return p}();return(0,e.createComponentVNode)(2,f.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:v===0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===0,onClick:function(){function p(){return N(0)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===1,onClick:function(){function p(){return N(1)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),C(v)]})})})}return c}(),k=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.alarms;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Access"})]}),l.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:v.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:b(v.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function N(){return u("open_alarm",{aref:v.ref})}return N}()})})]},v.name)})]})})},h=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.alarms;return(0,e.createComponentVNode)(2,t.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{children:l.filter(function(v){return v.z===2}).map(function(v){return(0,e.createComponentVNode)(2,t.NanoMap.MarkerIcon,{x:v.x,y:v.y,icon:"circle",tooltip:v.name,color:y(v.danger),onClick:function(){function N(){return u("open_alarm",{aref:v.ref})}return N}()},v.ref)})})})}},87816:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AtmosFilter=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.on,m=c.pressure,d=c.max_pressure,u=c.filter_type,s=c.filter_type_list;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:140,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:i?"On":"Off",color:i?null:"red",selected:i,onClick:function(){function l(){return h("power")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){function l(){return h("min_pressure")}return l}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:d,value:m,onDrag:function(){function l(v,N){return h("custom_pressure",{pressure:N})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===d,width:2.2,onClick:function(){function l(){return h("max_pressure")}return l}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:s.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{selected:l.gas_type===u,content:l.label,onClick:function(){function v(){return h("set_filter",{filter:l.gas_type})}return v}()},l.label)})})]})})})})}return b}()},52977:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AtmosMixer=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.on,d=i.pressure,u=i.max_pressure,s=i.node1_concentration,l=i.node2_concentration;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:165,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:m?"On":"Off",color:m?null:"red",selected:m,onClick:function(){function v(){return c("power")}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:d===0,width:2.2,onClick:function(){function v(){return c("min_pressure")}return v}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:u,value:d,onDrag:function(){function v(N,C){return c("custom_pressure",{pressure:C})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:d===u,width:2.2,onClick:function(){function v(){return c("max_pressure")}return v}()})]}),(0,e.createComponentVNode)(2,b,{node_name:"Node 1",node_ref:s}),(0,e.createComponentVNode)(2,b,{node_name:"Node 2",node_ref:l})]})})})})}return y}(),b=function(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=S.node_name,d=S.node_ref;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:m,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:d===0,onClick:function(){function u(){return c("set_node",{node_name:m,concentration:(d-10)/100})}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:d,onChange:function(){function u(s,l){return c("set_node",{node_name:m,concentration:l/100})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:d===100,onClick:function(){function u(){return c("set_node",{node_name:m,concentration:(d+10)/100})}return u}()})]})}},11748:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AtmosPump=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.on,m=c.rate,d=c.max_rate,u=c.gas_unit,s=c.step;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:110,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:i?"On":"Off",color:i?null:"red",selected:i,onClick:function(){function l(){return h("power")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){function l(){return h("min_rate")}return l}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:u,width:6.1,lineHeight:1.5,step:s,minValue:0,maxValue:d,value:m,onDrag:function(){function l(v,N){return h("custom_rate",{rate:N})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===d,width:2.2,onClick:function(){function l(){return h("max_rate")}return l}()})]})]})})})})}return b}()},69321:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosTankControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(44879),f=n(76910),b=n(98595),y=r.AtmosTankControl=function(){function S(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.sensors||{};return(0,e.createComponentVNode)(2,b.Window,{width:400,height:400,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:[Object.keys(d).map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[Object.keys(d[u]).indexOf("pressure")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:[d[u].pressure," kpa"]}):"",Object.keys(d[u]).indexOf("temperature")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[d[u].temperature," K"]}):"",["o2","n2","plasma","co2","n2o"].map(function(s){return Object.keys(d[u]).indexOf(s)>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,f.getGasLabel)(s),children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:(0,f.getGasColor)(s),value:d[u][s],minValue:0,maxValue:100,children:(0,o.toFixed)(d[u][s],2)+"%"})},(0,f.getGasLabel)(s)):""})]})},u)}),m.inlet&&Object.keys(m.inlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Inlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.inlet.on,"power-off"),content:m.inlet.on?"On":"Off",color:m.inlet.on?null:"red",selected:m.inlet.on,onClick:function(){function u(){return i("toggle_active",{dev:"inlet"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"L/s",width:6.1,lineHeight:1.5,step:1,minValue:0,maxValue:50,value:m.inlet.rate,onDrag:function(){function u(s,l){return i("set_pressure",{dev:"inlet",val:l})}return u}()})})]})}):"",m.outlet&&Object.keys(m.outlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Outlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.outlet.on,"power-off"),content:m.outlet.on?"On":"Off",color:m.outlet.on?null:"red",selected:m.outlet.on,onClick:function(){function u(){return i("toggle_active",{dev:"outlet"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:5066,value:m.outlet.rate,onDrag:function(){function u(s,l){return i("set_pressure",{dev:"outlet",val:l})}return u}()})})]})}):""]})})}return S}()},59179:function(T,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),f=n(36036),b=n(98595),y=n(25328),S=function(c,i,m,d){return c.requirements===null?!0:!(c.requirements.metal*d>i||c.requirements.glass*d>m)},k=r.Autolathe=function(){function h(c,i){var m=(0,o.useBackend)(i),d=m.act,u=m.data,s=u.total_amount,l=u.max_amount,v=u.metal_amount,N=u.glass_amount,C=u.busyname,p=u.busyamt,g=u.showhacked,V=u.buildQueue,B=u.buildQueueLen,I=u.recipes,L=u.categories,w=(0,o.useSharedState)(i,"category",0),A=w[0],x=w[1];A===0&&(A="Tools");var E=v.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),P=N.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),j=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),M=(0,o.useSharedState)(i,"search_text",""),R=M[0],D=M[1],W=(0,y.createSearch)(R,function(G){return G.name}),_="";B>0&&(_=V.map(function(G,$){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"times",color:"transparent",content:V[$][0],onClick:function(){function Q(){return d("remove_from_queue",{remove_from_queue:V.indexOf(G)+1})}return Q}()},G)},$)}));var U=(0,a.flow)([(0,t.filter)(function(G){return(G.category.indexOf(A)>-1||R)&&(u.showhacked||!G.hacked)}),R&&(0,t.filter)(W),(0,t.sortBy)(function(G){return G.name.toLowerCase()})])(I),K="Build";return R?K="Results for: '"+R+"':":A&&(K="Build ("+A+")"),(0,e.createComponentVNode)(2,b.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:K,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"150px",options:L,selected:A,onSelected:function(){function G($){return x($)}return G}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function G($,Q){return D(Q)}return G}(),mb:1}),U.map(function(G){return(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+G.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===G.name&&u.busyamt===1,disabled:!S(G,u.metal_amount,u.glass_amount,1),onClick:function(){function $(){return d("make",{make:G.uid,multiplier:1})}return $}(),children:(0,y.toTitleCase)(G.name)}),G.max_multiplier>=10&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===G.name&&u.busyamt===10,disabled:!S(G,u.metal_amount,u.glass_amount,10),onClick:function(){function $(){return d("make",{make:G.uid,multiplier:10})}return $}(),children:"10x"}),G.max_multiplier>=25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===G.name&&u.busyamt===25,disabled:!S(G,u.metal_amount,u.glass_amount,25),onClick:function(){function $(){return d("make",{make:G.uid,multiplier:25})}return $}(),children:"25x"}),G.max_multiplier>25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===G.name&&u.busyamt===G.max_multiplier,disabled:!S(G,u.metal_amount,u.glass_amount,G.max_multiplier),onClick:function(){function $(){return d("make",{make:G.uid,multiplier:G.max_multiplier})}return $}(),children:[G.max_multiplier,"x"]}),G.requirements&&Object.keys(G.requirements).map(function($){return(0,y.toTitleCase)($)+": "+G.requirements[$]}).join(", ")||(0,e.createComponentVNode)(2,f.Box,{children:"No resources required."})]},G.ref)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:[(0,e.createComponentVNode)(2,f.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Metal",children:E}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Glass",children:P}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Total",children:j}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Storage",children:[u.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,f.Section,{title:"Building",children:(0,e.createComponentVNode)(2,f.Box,{color:C?"green":"",children:C||"Nothing"})}),(0,e.createComponentVNode)(2,f.Section,{title:"Build Queue",height:23.7,children:[_,(0,e.createComponentVNode)(2,f.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!u.buildQueueLen,onClick:function(){function G(){return d("clear_queue")}return G}()})]})]})]})})})}return h}()},5147:function(T,r,n){"use strict";r.__esModule=!0,r.BioChipPad=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.BioChipPad=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.implant,m=c.contains_case,d=c.gps,u=c.tag,s=(0,a.useLocalState)(S,"newTag",u),l=s[0],v=s[1];return(0,e.createComponentVNode)(2,o.Window,{width:410,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Bio-chip Mini-Computer",buttons:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject Case",icon:"eject",disabled:!m,onClick:function(){function N(){return h("eject_case")}return N}()})}),children:i&&m?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{bold:!0,mb:2,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+i.image,ml:0,mr:2,style:{"vertical-align":"middle",width:"32px"}}),i.name]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Life",children:i.life}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Notes",children:i.notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Function",children:i.function}),!!d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,t.Input,{width:"5.5rem",value:u,onEnter:function(){function N(){return h("tag",{newtag:l})}return N}(),onInput:function(){function N(C,p){return v(p)}return N}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:u===l,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function N(){return h("tag",{newtag:l})}return N}(),children:(0,e.createComponentVNode)(2,t.Icon,{name:"pen"})})]})]})],4):m?(0,e.createComponentVNode)(2,t.Box,{children:"This bio-chip case has no implant!"}):(0,e.createComponentVNode)(2,t.Box,{children:"Please insert a bio-chip casing!"})})})})}return b}()},64273:function(T,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(62411),b=r.Biogenerator=function(){function c(i,m){var d=(0,a.useBackend)(m),u=d.data,s=d.config,l=u.container,v=u.processing,N=s.title;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:595,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Operating,{operating:v,name:N}),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,k),l?(0,e.createComponentVNode)(2,h):(0,e.createComponentVNode)(2,y)]})})})}return c}(),y=function(i,m){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The biogenerator is missing a container."]})})})},S=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.biomass,v=s.container,N=s.container_curr_reagents,C=s.container_max_reagents;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"20px",color:"silver",children:"Biomass:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"5px",children:l}),(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"21px",mt:"8px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"10px",color:"silver",children:"Container:"}),v?(0,e.createComponentVNode)(2,t.ProgressBar,{value:N,maxValue:C,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:N+" / "+C+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},k=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.has_plants,v=s.container;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:!l,tooltip:l?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function N(){return u("activate")}return N}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!v,tooltip:v?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function N(){return u("detach_container")}return N}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!l,tooltip:l?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function N(){return u("eject_plants")}return N}()})})]})})},h=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.biomass,v=s.product_list,N=(0,a.useSharedState)(m,"vendAmount",1),C=N[0],p=N[1],g=Object.entries(v).map(function(V,B){var I=Object.entries(V[1]).map(function(L){return L[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:V[0],open:!0,children:I.map(function(L){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",ml:"2px",children:L.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[L.cost*C,(0,e.createComponentVNode)(2,t.Icon,{ml:"5px",name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{content:"Vend",disabled:ls&&"bad"||"good";return(0,e.createComponentVNode)(2,o.Window,{width:650,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Input Management",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Input",children:[(0,e.createComponentVNode)(2,t.Button,{icon:B&&!g?"toggle-on":"toggle-off",content:"Auto shutdown",color:B&&!g?"green":"red",disabled:!!g,tooltip:"Turn auto shutdown on or off",onClick:function(){function A(){return i("auto_shutdown")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:I&&!g?"toggle-on":"toggle-off",content:"Stabilizers",color:I&&!g?"green":"red",disabled:!!g,tooltip:"Turn stabilizers on or off",onClick:function(){function A(){return i("stabilizers")}return A}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Level",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Desired Level",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:u===0||g,tooltip:"Set to 0",onClick:function(){function A(){return i("set",{set_level:0})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:u===0||g,onClick:function(){function A(){return i("set",{set_level:s})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:u===0||g,tooltip:"Decrease one step",onClick:function(){function A(){return i("decrease")}return A}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{disabled:g,value:u,fillValue:s,minValue:0,color:w,maxValue:p,stepPixelSize:20,step:1,onChange:function(){function A(x,E){return i("set",{set_level:E})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:u===p||g,tooltip:"Increase one step",tooltipPosition:"left",onClick:function(){function A(){return i("increase")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:u===p||g,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){function A(){return i("set",{set_level:p})}return A}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Power Use",children:(0,f.formatPower)(N)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mining Power Use",children:(0,f.formatPower)(N-L)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stabilizer Power Use",children:(0,f.formatPower)(L)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mining Power for next level",children:(0,f.formatPower)(V)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,f.formatPower)(C)})]})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Points",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Points",children:v})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{align:"end",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(A){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:A.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:A.price>=l,onClick:function(){function x(){return i("vend",{target:A.key})}return x}(),content:A.price})},A.key)})})})})]})})]})})})}return S}(),y=r.Alerts=function(){function S(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.product||[],u=m.inputLevel,s=m.emagged,l=m.safeLevels,v=m.autoShutown,N=m.stabilizers,C=m.overhead;return(0,e.createFragment)([!v&&!s&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Auto shutdown disabled"}),s?(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"All safeties disabled"}):u<=l?"":N?u-C>l?(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Stabilizers overwhelmed, Instability likely"}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"High Power, engaging stabilizers"}):(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Stabilizers disabled, Instability likely"})],0)}return S}()},33758:function(T,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(89005),a=n(44879),t=n(25328),o=n(72253),f=n(36036),b=n(98595),y=[["good","Alive"],["average","Critical"],["bad","DEAD"]],S=[["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."]],k=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Cellular","cloneLoss"],["Burn","fireLoss"],["Inebriation","drunkenness"]],h={average:[.25,.5],bad:[.5,1/0]},c=function(B,I){for(var L=[],w=0;w0?B.filter(function(I){return!!I}).reduce(function(I,L){return(0,e.createFragment)([I,(0,e.createComponentVNode)(2,f.Box,{children:L},L)],0)},null):null},m=function(B){if(B>100){if(B<300)return"mild infection";if(B<400)return"mild infection+";if(B<500)return"mild infection++";if(B<700)return"acute infection";if(B<800)return"acute infection+";if(B<900)return"acute infection++";if(B>=900)return"septic"}return""},d=r.BodyScanner=function(){function V(B,I){var L=(0,o.useBackend)(I),w=L.data,A=w.occupied,x=w.occupant,E=x===void 0?{}:x,P=A?(0,e.createComponentVNode)(2,u,{occupant:E}):(0,e.createComponentVNode)(2,g);return(0,e.createComponentVNode)(2,b.Window,{width:700,height:600,title:"Body Scanner",children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:P})})}return V}(),u=function(B){var I=B.occupant;return(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,s,{occupant:I}),(0,e.createComponentVNode)(2,l,{occupant:I}),(0,e.createComponentVNode)(2,v,{occupant:I}),(0,e.createComponentVNode)(2,C,{organs:I.extOrgan}),(0,e.createComponentVNode)(2,p,{organs:I.intOrgan})]})},s=function(B,I){var L=(0,o.useBackend)(I),w=L.act,A=L.data,x=A.occupant;return(0,e.createComponentVNode)(2,f.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Button,{icon:"print",onClick:function(){function E(){return w("print_p")}return E}(),children:"Print Report"}),(0,e.createComponentVNode)(2,f.Button,{icon:"user-slash",onClick:function(){function E(){return w("ejectify")}return E}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:y[x.stat][0],children:y[x.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:(0,a.round)(x.bodyTempC)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:(0,a.round)(x.bodyTempF)}),"\xB0F"]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Implants",children:x.implant_len?(0,e.createComponentVNode)(2,f.Box,{children:x.implant.map(function(E){return E.name}).join(", ")}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"None"})})]})})},l=function(B){var I=B.occupant;return I.hasBorer||I.blind||I.colourblind||I.nearsighted||I.hasVirus?(0,e.createComponentVNode)(2,f.Section,{title:"Abnormalities",children:S.map(function(L,w){if(I[L[0]])return(0,e.createComponentVNode)(2,f.Box,{color:L[1],bold:L[1]==="bad",children:L[2]},L[2])})}):(0,e.createComponentVNode)(2,f.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No abnormalities found."})})},v=function(B){var I=B.occupant;return(0,e.createComponentVNode)(2,f.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,f.Table,{children:c(k,function(L,w,A){return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:[L[0],":"]}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:!!w&&w[0]+":"})]}),(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:(0,e.createComponentVNode)(2,N,{value:I[L[1]],marginBottom:A100)&&"average"||!!I.status.robotic&&"label",width:"33%",children:(0,t.capitalize)(I.name)}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,f.ProgressBar,{m:-.5,min:"0",max:I.maxHealth,mt:L>0&&"0.5rem",value:I.totalLoss/I.maxHealth,ranges:h,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Tooltip,{content:"Total damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"heartbeat",mr:.5}),(0,a.round)(I.totalLoss)]})}),!!I.bruteLoss&&(0,e.createComponentVNode)(2,f.Tooltip,{content:"Brute damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,f.Icon,{name:"bone",mr:.5}),(0,a.round)(I.bruteLoss)]})}),!!I.fireLoss&&(0,e.createComponentVNode)(2,f.Tooltip,{content:"Burn damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"fire",mr:.5}),(0,a.round)(I.fireLoss)]})})]})})}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,f.Box,{color:"average",inline:!0,children:i([!!I.internalBleeding&&"Internal bleeding",!!I.burnWound&&"Critical tissue burns",!!I.lungRuptured&&"Ruptured lung",!!I.status.broken&&I.status.broken,m(I.germ_level),!!I.open&&"Open incision"])}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:[i([!!I.status.splinted&&(0,e.createComponentVNode)(2,f.Box,{color:"good",children:"Splinted"}),!!I.status.robotic&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Robotic"}),!!I.status.dead&&(0,e.createComponentVNode)(2,f.Box,{color:"bad",bold:!0,children:"DEAD"})]),i(I.shrapnel.map(function(w){return w.known?w.name:"Unknown object"}))]})]})]},L)})]})})},p=function(B){return B.organs.length===0?(0,e.createComponentVNode)(2,f.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,f.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,f.Table,{children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",children:"Injuries"})]}),B.organs.map(function(I,L){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{color:!!I.dead&&"bad"||I.germ_level>100&&"average"||I.robotic>0&&"label",width:"33%",children:(0,t.capitalize)(I.name)}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:I.maxHealth,value:I.damage/I.maxHealth,mt:L>0&&"0.5rem",ranges:h,children:(0,a.round)(I.damage)})}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,f.Box,{color:"average",inline:!0,children:i([m(I.germ_level)])}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:i([I.robotic===1&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Robotic"}),I.robotic===2&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Assisted"}),!!I.dead&&(0,e.createComponentVNode)(2,f.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},L)})]})})},g=function(){return(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},67963:function(T,r,n){"use strict";r.__esModule=!0,r.BookBinder=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=n(39473),y=r.BookBinder=function(){function S(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.selectedbook,u=m.book_categories,s=[];return u.map(function(l){return s[l.description]=l.category_id}),(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Book Binder",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",width:"auto",content:"Print Book",onClick:function(){function l(){return i("print_book")}return l}()}),children:[(0,e.createComponentVNode)(2,t.Box,{ml:10,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:"1rem"}),"Book Binder"]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:d.title,onClick:function(){function l(){return(0,f.modalOpen)(h,"edit_selected_title")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:d.author,onClick:function(){function l(){return(0,f.modalOpen)(h,"edit_selected_author")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"190px",options:u.map(function(l){return l.description}),onSelected:function(){function l(v){return i("toggle_binder_category",{category_id:s[v]})}return l}()})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",content:"Edit Summary",onClick:function(){function l(){return(0,f.modalOpen)(h,"edit_selected_summary")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:d.summary})]}),(0,e.createVNode)(1,"br"),u.filter(function(l){return d.categories.includes(l.category_id)}).map(function(l){return(0,e.createComponentVNode)(2,t.Button,{content:l.description,selected:!0,icon:"unlink",onClick:function(){function v(){return i("toggle_binder_category",{category_id:l.category_id})}return v}()},l.category_id)})]})})]})})})]})}return S}()},61925:function(T,r,n){"use strict";r.__esModule=!0,r.BotCall=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(c){var i=[{modes:[0],label:"Idle",color:"green"},{modes:[1,2,3],label:"Arresting",color:"yellow"},{modes:[4,5],label:"Patrolling",color:"average"},{modes:[9],label:"Moving",color:"average"},{modes:[6,11],label:"Responding",color:"green"},{modes:[12],label:"Delivering Cargo",color:"blue"},{modes:[13],label:"Returning Home",color:"blue"},{modes:[7,8,10,14,15,16,17,18,19],label:"Working",color:"blue"}],m=i.find(function(d){return d.modes.includes(c)});return(0,e.createComponentVNode)(2,t.Box,{color:m.color,children:[" ",m.label," "]})},b=r.BotCall=function(){function h(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=(0,a.useLocalState)(i,"tabIndex",0),l=s[0],v=s[1],N={0:"Security",1:"Medibot",2:"Cleanbot",3:"Floorbot",4:"Mule",5:"Honkbot"},C=function(){function p(g){return N[g]?(0,e.createComponentVNode)(2,y,{model:N[g]}):"This should not happen. Report on Paradise Github"}return p}();return(0,e.createComponentVNode)(2,o.Window,{width:700,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:l===0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,textAlign:"center",children:Array.from({length:6}).map(function(p,g){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:l===g,onClick:function(){function V(){return v(g)}return V}(),children:N[g]},g)})})}),C(l)]})})})}return h}(),y=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.bots;return s[c.model]!==void 0?(0,e.createComponentVNode)(2,k,{model:[c.model]}):(0,e.createComponentVNode)(2,S,{model:[c.model]})},S=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data;return(0,e.createComponentVNode)(2,t.Stack,{justify:"center",align:"center",fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Box,{bold:1,color:"bad",children:["No ",[c.model]," detected"]})})},k=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.bots;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Model"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Location"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Interface"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Call"})]}),s[c.model].map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.model}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.on?f(l.status):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Off"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.location}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Interface",onClick:function(){function v(){return d("interface",{botref:l.UID})}return v}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Call",onClick:function(){function v(){return d("call",{botref:l.UID})}return v}()})})]},l.UID)})]})})})}},20464:function(T,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotClean=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.locked,d=i.noaccess,u=i.maintpanel,s=i.on,l=i.autopatrol,v=i.canhack,N=i.emagged,C=i.remote_disabled,p=i.painame,g=i.cleanblood,V=i.area;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Cleaning Settings",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Clean Blood",disabled:d,onClick:function(){function B(){return c("blood")}return B}()})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc Settings",children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:V?"Reset Area Selection":"Restrict to Current Area",onClick:function(){function B(){return c("area")}return B}()}),V!==null&&(0,e.createComponentVNode)(2,t.LabeledList,{mb:1,children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Locked Area",children:V})})]}),p&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:p,disabled:d,onClick:function(){function B(){return c("ejectpai")}return B}()})})]})})}return y}()},69479:function(T,r,n){"use strict";r.__esModule=!0,r.BotFloor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotFloor=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.noaccess,d=i.painame,u=i.hullplating,s=i.replace,l=i.eat,v=i.make,N=i.fixfloor,C=i.nag_empty,p=i.magnet,g=i.tiles_amount;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:510,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Floor Settings",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"5px",children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tiles Left",children:g})}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Add tiles to new hull plating",tooltip:"Fixing a plating requires the removal of floor tile. This will place it back after repairing. Same goes for hull breaches",disabled:m,onClick:function(){function V(){return c("autotile")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Add floor tiles on exposed hull plating",tooltip:"Example: It will add tiles to maintenance",disabled:m,onClick:function(){function V(){return c("replacetiles")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:N,content:"Repair damaged tiles and platings",disabled:m,onClick:function(){function V(){return c("fixfloors")}return V}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Miscellaneous",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:l,content:"Finds tiles",disabled:m,onClick:function(){function V(){return c("eattiles")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Make pieces of metal into tiles when empty",disabled:m,onClick:function(){function V(){return c("maketiles")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Transmit notice when empty",disabled:m,onClick:function(){function V(){return c("nagonempty")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:p,content:"Traction Magnets",disabled:m,onClick:function(){function V(){return c("anchored")}return V}()})]}),d&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,icon:"eject",content:d,disabled:m,onClick:function(){function V(){return c("ejectpai")}return V}()})})]})})}return y}()},59887:function(T,r,n){"use strict";r.__esModule=!0,r.BotHonk=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotHonk=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:220,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.BotStatus)})})}return y}()},80063:function(T,r,n){"use strict";r.__esModule=!0,r.BotMed=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotMed=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.locked,d=i.noaccess,u=i.maintpanel,s=i.on,l=i.autopatrol,v=i.canhack,N=i.emagged,C=i.remote_disabled,p=i.painame,g=i.shut_up,V=i.declare_crit,B=i.stationary_mode,I=i.heal_threshold,L=i.injection_amount,w=i.use_beaker,A=i.treat_virus,x=i.reagent_glass;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Communication Settings",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Speaker",checked:!g,disabled:d,onClick:function(){function E(){return c("toggle_speaker")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Critical Patient Alerts",checked:V,disabled:d,onClick:function(){function E(){return c("toggle_critical_alerts")}return E}()})]}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Treatment Settings",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Healing Threshold",children:(0,e.createComponentVNode)(2,t.Slider,{value:I.value,minValue:I.min,maxValue:I.max,step:5,disabled:d,onChange:function(){function E(P,j){return c("set_heal_threshold",{target:j})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Injection Level",children:(0,e.createComponentVNode)(2,t.Slider,{value:L.value,minValue:L.min,maxValue:L.max,step:5,format:function(){function E(P){return P+"u"}return E}(),disabled:d,onChange:function(){function E(P,j){return c("set_injection_amount",{target:j})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reagent Source",children:(0,e.createComponentVNode)(2,t.Button,{content:w?"Beaker":"Internal Synthesizer",icon:w?"flask":"cogs",disabled:d,onClick:function(){function E(){return c("toggle_use_beaker")}return E}()})}),x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:x.amount,minValue:0,maxValue:x.max_amount,children:[x.amount," / ",x.max_amount]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{ml:1,children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",disabled:d,onClick:function(){function E(){return c("eject_reagent_glass")}return E}()})})]})})]}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{mt:1,fluid:!0,content:"Treat Viral Infections",checked:A,disabled:d,onClick:function(){function E(){return c("toggle_treat_viral")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Stationary Mode",checked:B,disabled:d,onClick:function(){function E(){return c("toggle_stationary_mode")}return E}()})]}),p&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:p,disabled:d,onClick:function(){function E(){return c("ejectpai")}return E}()})})]})})})}return y}()},74439:function(T,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotSecurity=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.noaccess,d=i.painame,u=i.check_id,s=i.check_weapons,l=i.check_warrant,v=i.arrest_mode,N=i.arrest_declare;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:445,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Who To Arrest",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Unidentifiable Persons",disabled:m,onClick:function(){function C(){return c("authid")}return C}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Unauthorized Weapons",disabled:m,onClick:function(){function C(){return c("authweapon")}return C}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:l,content:"Wanted Criminals",disabled:m,onClick:function(){function C(){return c("authwarrant")}return C}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Arrest Procedure",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Detain Targets Indefinitely",disabled:m,onClick:function(){function C(){return c("arrtype")}return C}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:N,content:"Announce Arrests On Radio",disabled:m,onClick:function(){function C(){return c("arrdeclare")}return C}()})]}),d&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:d,disabled:m,onClick:function(){function C(){return c("ejectpai")}return C}()})})]})})}return y}()},10833:function(T,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(89005),a=n(98595),t=n(36036),o=n(72253),f=function(k,h){var c=k.cell,i=(0,o.useBackend)(h),m=i.act,d=c.cell_id,u=c.occupant,s=c.crimes,l=c.brigged_by,v=c.time_left_seconds,N=c.time_set_seconds,C=c.ref,p="";v>0&&(p+=" BrigCells__listRow--active");var g=function(){m("release",{ref:C})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:p,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:N})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:v})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:g,children:"Release"})})]})},b=function(k){var h=k.cells;return(0,e.createComponentVNode)(2,t.Table,{className:"BrigCells__list",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Cell"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Occupant"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Crimes"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Brigged By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Brigged For"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Release"})]}),h.map(function(c){return(0,e.createComponentVNode)(2,f,{cell:c},c.ref)})]})},y=r.BrigCells=function(){function S(k,h){var c=(0,o.useBackend)(h),i=c.act,m=c.data,d=m.cells;return(0,e.createComponentVNode)(2,a.Window,{theme:"security",width:800,height:400,children:(0,e.createComponentVNode)(2,a.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,b,{cells:d})})})})})}return S}()},45761:function(T,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.BrigTimer=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data;c.nameText=c.occupant,c.timing&&(c.prisoner_hasrec?c.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:c.occupant}):c.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:c.occupant}));var i="pencil-alt";c.prisoner_name&&(c.prisoner_hasrec||(i="exclamation-triangle"));var m=[],d=0;for(d=0;dm?this.substring(0,m)+"...":this};var k=function(d,u){var s,l;if(!u)return[];var v=d.findIndex(function(N){return N.name===u.name});return[(s=d[v-1])==null?void 0:s.name,(l=d[v+1])==null?void 0:l.name]},h=function(d,u){u===void 0&&(u="");var s=(0,f.createSearch)(u,function(l){return l.name});return(0,t.flow)([(0,a.filter)(function(l){return l==null?void 0:l.name}),u&&(0,a.filter)(s),(0,a.sortBy)(function(l){return l.name})])(d)},c=r.CameraConsole=function(){function m(d,u){var s=(0,b.useBackend)(u),l=s.act,v=s.data,N=s.config,C=v.mapRef,p=v.activeCamera,g=h(v.cameras),V=k(g,p),B=V[0],I=V[1];return(0,e.createComponentVNode)(2,S.Window,{width:870,height:708,children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,i)})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),p&&p.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!B,onClick:function(){function L(){return l("switch_camera",{name:B})}return L}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!I,onClick:function(){function L(){return l("switch_camera",{name:I})}return L}()})],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",params:{id:C,type:"map"}})],4)]})}return m}(),i=r.CameraConsoleContent=function(){function m(d,u){var s=(0,b.useBackend)(u),l=s.act,v=s.data,N=(0,b.useLocalState)(u,"searchText",""),C=N[0],p=N[1],g=v.activeCamera,V=h(v.cameras,C);return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function B(I,L){return p(L)}return B}()})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:V.map(function(B){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent",g&&B.name===g.name&&"Button--selected"]),B.name.trimLongStr(23),0,{title:B.name,onClick:function(){function I(){return l("switch_camera",{name:B.name})}return I}()},B.name)})})})]})}return m}()},52927:function(T,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(49968),b=n(98595),y=r.Canister=function(){function S(k,h){var c=(0,t.useBackend)(h),i=c.act,m=c.data,d=m.portConnected,u=m.tankPressure,s=m.releasePressure,l=m.defaultReleasePressure,v=m.minReleasePressure,N=m.maxReleasePressure,C=m.valveOpen,p=m.name,g=m.canLabel,V=m.colorContainer,B=m.color_index,I=m.hasHoldingTank,L=m.holdingTank,w="";B.prim&&(w=V.prim.options[B.prim].name);var A="";B.sec&&(A=V.sec.options[B.sec].name);var x="";B.ter&&(x=V.ter.options[B.ter].name);var E="";B.quart&&(E=V.quart.options[B.quart].name);var P=[],j=[],M=[],R=[],D=0;for(D=0;Dp.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:p.total_positions-p.current_positions})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"0"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"-",disabled:l.cooldown_time||!p.can_close,onClick:function(){function g(){return s("make_job_unavailable",{job:p.title})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:l.cooldown_time||!p.can_open,onClick:function(){function g(){return s("make_job_available",{job:p.title})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:l.target_dept&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:l.priority_jobs.indexOf(p.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:p.is_priority?"Yes":"No",selected:p.is_priority,disabled:l.cooldown_time||!p.can_prioritize,onClick:function(){function g(){return s("prioritize_job",{job:p.title})}return g}()})})]},p.title)})]})})]}):C=(0,e.createComponentVNode)(2,S);break;case 2:!l.authenticated||!l.scan_name?C=(0,e.createComponentVNode)(2,S):l.modify_name?C=(0,e.createComponentVNode)(2,f.AccessList,{accesses:l.regions,selectedList:l.selectedAccess,accessMod:function(){function p(g){return s("set",{access:g})}return p}(),grantAll:function(){function p(){return s("grant_all")}return p}(),denyAll:function(){function p(){return s("clear_all")}return p}(),grantDep:function(){function p(g){return s("grant_region",{region:g})}return p}(),denyDep:function(){function p(g){return s("deny_region",{region:g})}return p}()}):C=(0,e.createComponentVNode)(2,k);break;case 3:l.authenticated?l.records.length?C=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Records",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete All Records",disabled:!l.authenticated||l.records.length===0||l.target_dept,onClick:function(){function p(){return s("wipe_all_logs")}return p}()}),children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Crewman"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Old Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"New Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Authorized By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Reason"}),!!l.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Deleted By"})]}),l.records.map(function(p){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.reason}),!!l.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.deletedby})]},p.timestamp)})]}),!!l.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!l.authenticated||l.records.length===0,onClick:function(){function p(){return s("wipe_my_logs")}return p}()})})]}):C=(0,e.createComponentVNode)(2,h):C=(0,e.createComponentVNode)(2,S);break;case 4:!l.authenticated||!l.scan_name?C=(0,e.createComponentVNode)(2,S):C=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Your Team",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Sec Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Actions"})]}),l.people_dept.map(function(p){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:p.buttontext,disabled:!p.demotable,onClick:function(){function g(){return s("remote_demote",{remote_demote:p.name})}return g}()})})]},p.title)})]})});break;default:C=(0,e.createComponentVNode)(2,t.Section,{title:"Warning",color:"red",children:"ERROR: Unknown Mode."})}return(0,e.createComponentVNode)(2,o.Window,{width:800,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:N}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:v}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:C})]})})})}return i}()},64083:function(T,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),f=n(36036),b=n(98595),y=n(25328),S=r.CargoConsole=function(){function u(s,l){return(0,e.createComponentVNode)(2,b.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,d)]})})})}return u}(),k=function(s,l){var v=(0,o.useLocalState)(l,"contentsModal",null),N=v[0],C=v[1],p=(0,o.useLocalState)(l,"contentsModalTitle",null),g=p[0],V=p[1];if(N!==null&&g!==null)return(0,e.createComponentVNode)(2,f.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,f.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[g,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,f.Box,{children:N.map(function(B){return(0,e.createComponentVNode)(2,f.Box,{children:["- ",B]},B)})}),(0,e.createComponentVNode)(2,f.Box,{m:2,children:(0,e.createComponentVNode)(2,f.Button,{content:"Close",onClick:function(){function B(){C(null),V(null)}return B}()})})]})},h=function(s,l){var v=(0,o.useBackend)(l),N=v.act,C=v.data,p=C.is_public,g=C.timeleft,V=C.moving,B=C.at_station,I,L;return!V&&!B?(I="Docked off-station",L="Call Shuttle"):!V&&B?(I="Docked at the station",L="Return Shuttle"):V&&(L="In Transit...",g!==1?I="Shuttle is en route (ETA: "+g+" minutes)":I="Shuttle is en route (ETA: "+g+" minute)"),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Status",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Shuttle Status",children:I}),p===0&&(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,f.Button,{content:L,disabled:V,onClick:function(){function w(){return N("moveShuttle")}return w}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Central Command Messages",onClick:function(){function w(){return N("showMessages")}return w}()})]})]})})})},c=function(s,l){var v,N=(0,o.useBackend)(l),C=N.act,p=N.data,g=p.accounts,V=(0,o.useLocalState)(l,"selectedAccount"),B=V[0],I=V[1],L=[];return g.map(function(w){return L[w.name]=w.account_UID}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Payment",children:[(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:g.map(function(w){return w.name}),selected:(v=g.filter(function(w){return w.account_UID===B})[0])==null?void 0:v.name,onSelected:function(){function w(A){return I(L[A])}return w}()}),g.filter(function(w){return w.account_UID===B}).map(function(w){return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Account Name",children:(0,e.createComponentVNode)(2,f.Stack.Item,{mt:1,children:w.name})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Balance",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:w.balance})})]},w.account_UID)})]})})},i=function(s,l){var v=(0,o.useBackend)(l),N=v.act,C=v.data,p=C.requests,g=C.categories,V=C.supply_packs,B=(0,o.useSharedState)(l,"category","Emergency"),I=B[0],L=B[1],w=(0,o.useSharedState)(l,"search_text",""),A=w[0],x=w[1],E=(0,o.useLocalState)(l,"contentsModal",null),P=E[0],j=E[1],M=(0,o.useLocalState)(l,"contentsModalTitle",null),R=M[0],D=M[1],W=(0,y.createSearch)(A,function(Q){return Q.name}),_=(0,o.useLocalState)(l,"selectedAccount"),U=_[0],K=_[1],G=(0,a.flow)([(0,t.filter)(function(Q){return Q.cat===g.filter(function(J){return J.name===I})[0].category||A}),A&&(0,t.filter)(W),(0,t.sortBy)(function(Q){return Q.name.toLowerCase()})])(V),$="Crate Catalogue";return A?$="Results for '"+A+"':":I&&($="Browsing "+I),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:$,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:g.map(function(Q){return Q.name}),selected:I,onSelected:function(){function Q(J){return L(J)}return Q}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function Q(J,ie){return x(ie)}return Q}(),mb:1}),(0,e.createComponentVNode)(2,f.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:G.map(function(Q){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{bold:!0,children:[Q.name," (",Q.cost," Credits)"]}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,f.Button,{content:"Order 1",icon:"shopping-cart",disabled:!U,onClick:function(){function J(){return N("order",{crate:Q.ref,multiple:!1,account:U})}return J}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Order Multiple",icon:"cart-plus",disabled:!U||Q.singleton,onClick:function(){function J(){return N("order",{crate:Q.ref,multiple:!0,account:U})}return J}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Contents",icon:"search",onClick:function(){function J(){j(Q.contents),D(Q.name)}return J}()})]})]},Q.name)})})})]})})},m=function(s,l){var v=s.request,N,C;switch(v.department){case"Engineering":C="CE",N="orange";break;case"Medical":C="CMO",N="teal";break;case"Science":C="RD",N="purple";break;case"Supply":C="CT",N="brown";break;case"Service":C="HOP",N="olive";break;case"Security":C="HOS",N="red";break;case"Command":C="CAP",N="blue";break;case"Assistant":C="Any Head",N="grey";break}return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{mt:.5,children:"Approval Required:"}),!!v.req_cargo_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"brown",content:"QM",icon:"user-tie",tooltip:"This Order requires approval from the QM still"})}),!!v.req_head_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:N,content:C,disabled:v.req_cargo_approval,icon:"user-tie",tooltip:v.req_cargo_approval?"This Order first requires approval from the QM before the "+C+" can approve it":"This Order requires approval from the "+C+" still"})})]})},d=function(s,l){var v=(0,o.useBackend)(l),N=v.act,C=v.data,p=C.requests,g=C.orders,V=C.shipments;return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Orders",children:[(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,f.Table,{children:p.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{className:"Cargo_RequestList",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{mb:1,children:[(0,e.createComponentVNode)(2,f.Box,{children:["Order #",B.ordernum,": ",B.supply_type," (",B.cost," credits) for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)," with"," ",B.department?"The "+B.department+" Department":"Their Personal"," Account"]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]}),(0,e.createComponentVNode)(2,m,{request:B})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,f.Button,{content:"Approve",color:"green",disabled:!B.can_approve,onClick:function(){function I(){return N("approve",{ordernum:B.ordernum})}return I}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Deny",color:"red",disabled:!B.can_deny,onClick:function(){function I(){return N("deny",{ordernum:B.ordernum})}return I}()})]})]},B.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Orders Awaiting Delivery"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:g.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Order in Transit"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:V.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})})]})}},87331:function(T,r,n){"use strict";r.__esModule=!0,r.ChangelogView=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ChangelogView=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=(0,a.useLocalState)(S,"onlyRecent",0),m=i[0],d=i[1],u=c.cl_data,s=c.last_cl,l={FIX:(0,e.createComponentVNode)(2,t.Icon,{name:"tools",title:"Fix"}),WIP:(0,e.createComponentVNode)(2,t.Icon,{name:"hard-hat",title:"WIP",color:"orange"}),TWEAK:(0,e.createComponentVNode)(2,t.Icon,{name:"sliders-h",title:"Tweak"}),SOUNDADD:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",title:"Sound Added",color:"green"}),SOUNDDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-mute",title:"Sound Removed",color:"red"}),CODEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",title:"Code Addition",color:"green"}),CODEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"minus",title:"Code Removal",color:"red"}),IMAGEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-plus",title:"Sprite Addition",color:"green"}),IMAGEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-minus",title:"Sprite Removal",color:"red"}),SPELLCHECK:(0,e.createComponentVNode)(2,t.Icon,{name:"font",title:"Spelling/Grammar Fix"}),EXPERIMENT:(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle",title:"Experimental",color:"orange"})},v=function(){function N(C){return C in l?l[C]:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",color:"green"})}return N}();return(0,e.createComponentVNode)(2,o.Window,{width:750,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"ParadiseSS13 Changelog",mt:2,buttons:(0,e.createComponentVNode)(2,t.Button,{content:m?"Showing all changes":"Showing changes since last connection",onClick:function(){function N(){return d(!m)}return N}()}),children:u.map(function(N){return!m&&N.merge_ts<=s||(0,e.createComponentVNode)(2,t.Section,{mb:2,title:N.author+" - Merged on "+N.merge_date,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"#"+N.num,onClick:function(){function C(){return h("open_pr",{pr_number:N.num})}return C}()}),children:N.entries.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:[v(C.etype)," ",C.etext]},C)})},N)})})})})}return b}()},36108:function(T,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(85870),f=n(98595),b=[1,5,10,20,30,50],y=[1,5,10],S=r.ChemDispenser=function(){function i(m,d){var u=(0,a.useBackend)(d),s=u.act,l=u.data,v=l.chemicals;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:400+v.length*8,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,c)]})})})}return i}(),k=function(m,d){var u=(0,a.useBackend)(d),s=u.act,l=u.data,v=l.amount,N=l.energy,C=l.maxEnergy;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:N,minValue:0,maxValue:C,ranges:{good:[C*.5,1/0],average:[C*.25,C*.5],bad:[-1/0,C*.25]},children:[N," / ",C," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:b.map(function(p,g){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:v===p,content:p,onClick:function(){function V(){return s("amount",{amount:p})}return V}()})},g)})})})]})})})},h=function(m,d){for(var u=(0,a.useBackend)(d),s=u.act,l=u.data,v=l.chemicals,N=v===void 0?[]:v,C=[],p=0;p<(N.length+1)%3;p++)C.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:l.glass?"Drink Dispenser":"Chemical Dispenser",children:[N.map(function(g,V){return(0,e.createComponentVNode)(2,t.Button,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",content:g.title,style:{"margin-left":"2px"},onClick:function(){function B(){return s("dispense",{reagent:g.id})}return B}()},V)}),C.map(function(g,V){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},V)})]})})},c=function(m,d){var u=(0,a.useBackend)(d),s=u.act,l=u.data,v=l.isBeakerLoaded,N=l.beakerCurrentVolume,C=l.beakerMaxVolume,p=l.beakerContents,g=p===void 0?[]:p;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:l.glass?"Glass":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!v&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[N," / ",C," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!v,onClick:function(){function V(){return s("ejectBeaker")}return V}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:v,beakerContents:g,buttons:function(){function V(B){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function I(){return s("remove",{reagent:B.id,amount:-1})}return I}()}),y.map(function(I,L){return(0,e.createComponentVNode)(2,t.Button,{content:I,onClick:function(){function w(){return s("remove",{reagent:B.id,amount:I})}return w}()},L)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function I(){return s("remove",{reagent:B.id,amount:B.volume})}return I}()})],0)}return V}()})})})}},13146:function(T,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(85870),b=n(98595),y=r.ChemHeater=function(){function h(c,i){return(0,e.createComponentVNode)(2,b.Window,{width:350,height:275,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,k)]})})})}return h}(),S=function(c,i){var m=(0,t.useBackend)(i),d=m.act,u=m.data,s=u.targetTemp,l=u.targetTempReached,v=u.autoEject,N=u.isActive,C=u.currentTemp,p=u.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Settings",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Auto-eject",icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){function g(){return d("toggle_autoeject")}return g}()}),(0,e.createComponentVNode)(2,o.Button,{content:N?"On":"Off",icon:"power-off",selected:N,disabled:!p,onClick:function(){function g(){return d("toggle_on")}return g}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"65px",unit:"K",step:10,stepPixelSize:3,value:(0,a.round)(s,0),minValue:0,maxValue:1e3,onDrag:function(){function g(V,B){return d("adjust_temperature",{target:B})}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reading",color:l?"good":"average",children:p&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:C,format:function(){function g(V){return(0,a.toFixed)(V)+" K"}return g}()})||"\u2014"})]})})})},k=function(c,i){var m=(0,t.useBackend)(i),d=m.act,u=m.data,s=u.isBeakerLoaded,l=u.beakerCurrentVolume,v=u.beakerMaxVolume,N=u.beakerContents;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:!!s&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[l," / ",v," units"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function C(){return d("eject_beaker")}return C}()})]}),children:(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:s,beakerContents:N})})})}},56541:function(T,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(85870),b=n(3939),y=n(35840),S=["icon"];function k(I,L){if(I==null)return{};var w={};for(var A in I)if({}.hasOwnProperty.call(I,A)){if(L.includes(A))continue;w[A]=I[A]}return w}function h(I,L){I.prototype=Object.create(L.prototype),I.prototype.constructor=I,c(I,L)}function c(I,L){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,A){return w.__proto__=A,w},c(I,L)}var i=[1,5,10],m=function(L,w){var A=(0,a.useBackend)(w),x=A.act,E=A.data,P=L.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:E.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.createComponentVNode)(2,t.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:P.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(P.desc||"").length>0?P.desc:"N/A"}),P.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:P.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:P.blood_dna})],4),!E.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:E.printing?"spinner":"print",disabled:E.printing,iconSpin:!!E.printing,ml:"0.5rem",content:"Print",onClick:function(){function j(){return x("print",{idx:P.idx,beaker:L.args.beaker})}return j}()})]})})})})},d=function(I){return I[I.ToDisposals=0]="ToDisposals",I[I.ToBeaker=1]="ToBeaker",I}(d||{}),u=r.ChemMaster=function(){function I(L,w){return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,b.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,B)]})})]})}return I}(),s=function(L,w){var A=(0,a.useBackend)(w),x=A.act,E=A.data,P=E.beaker,j=E.beaker_reagents,M=E.buffer_reagents,R=M.length>0;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:R?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!P,content:"Eject and Clear Buffer",onClick:function(){function D(){return x("eject")}return D}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!P,content:"Eject and Clear Buffer",onClick:function(){function D(){return x("eject")}return D}()}),children:P?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:j,buttons:function(){function D(W,_){return(0,e.createComponentVNode)(2,t.Box,{mb:_0?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:j,buttons:function(){function M(R,D){return(0,e.createComponentVNode)(2,t.Box,{mb:D0&&(R=M.map(function(D){var W=D.id,_=D.sprite;return(0,e.createComponentVNode)(2,g,{icon:_,translucent:!0,onClick:function(){function U(){return x("set_sprite_style",{production_mode:P,style:W})}return U}(),selected:j===W},W)})),(0,e.createComponentVNode)(2,p,{productionData:L.productionData,children:R&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:R})})},B=function(L,w){var A=(0,a.useBackend)(w),x=A.act,E=A.data,P=E.loaded_pill_bottle_style,j=E.containerstyles,M=E.loaded_pill_bottle,R={width:"20px",height:"20px"},D=j.map(function(W){var _=W.color,U=W.name,K=P===_;return(0,e.createComponentVNode)(2,t.Button,{style:{position:"relative",width:R.width,height:R.height},onClick:function(){function G(){return x("set_container_style",{style:_})}return G}(),icon:K&&"check",iconStyle:{position:"relative","z-index":1},tooltip:U,tooltipPosition:"top",children:[!K&&(0,e.createVNode)(1,"div",null,null,1,{style:{display:"inline-block"}}),(0,e.createVNode)(1,"span","Button",null,1,{style:{display:"inline-block",position:"absolute",top:0,left:0,margin:0,padding:0,width:R.width,height:R.height,"background-color":_,opacity:.6,filter:"alpha(opacity=60)"}})]},_)});return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Container Customization",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!M,content:"Eject Container",onClick:function(){function W(){return x("ejectp")}return W}()}),children:M?(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:[(0,e.createComponentVNode)(2,t.Button,{style:{width:R.width,height:R.height},icon:"tint-slash",onClick:function(){function W(){return x("clear_container_style")}return W}(),selected:!P,tooltip:"Default",tooltipPosition:"top"}),D]})}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No pill bottle or patch pack loaded."})})})};(0,b.modalRegisterBodyOverride)("analyze",m)},37173:function(T,r,n){"use strict";r.__esModule=!0,r.CloningConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(79140),b=1,y=32,S=128,k=r.CloningConsole=function(){function u(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.tab,g=C.has_scanner,V=C.pod_amount;return(0,e.createComponentVNode)(2,o.Window,{width:640,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cloning Console",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connected scanner",children:g?"Online":"Missing"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connected pods",children:V})]})}),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:p===1,icon:"home",onClick:function(){function B(){return N("menu",{tab:1})}return B}(),children:"Main Menu"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:p===2,icon:"user",onClick:function(){function B(){return N("menu",{tab:2})}return B}(),children:"Damage Configuration"})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,h)})]})})}return u}(),h=function(s,l){var v=(0,a.useBackend)(l),N=v.data,C=N.tab,p;return C===1?p=(0,e.createComponentVNode)(2,c):C===2&&(p=(0,e.createComponentVNode)(2,i)),p},c=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.pods,g=C.pod_amount,V=C.selected_pod_UID;return(0,e.createComponentVNode)(2,t.Box,{children:[!g&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No pods connected."}),!!g&&p.map(function(B,I){return(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Pod "+(I+1),children:(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"96px",shrink:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,f.resolveAsset)("pod_"+(B.cloning?"cloning":"idle")+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Button,{selected:V===B.uid,onClick:function(){function L(){return N("select_pod",{uid:B.uid})}return L}(),children:"Select"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Progress",children:[!B.cloning&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Pod is inactive."}),!!B.cloning&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:B.clone_progress,maxValue:100,color:"good"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:B.biomass,ranges:{good:[2*B.biomass_storage_capacity/3,B.biomass_storage_capacity],average:[B.biomass_storage_capacity/3,2*B.biomass_storage_capacity/3],bad:[0,B.biomass_storage_capacity/3]},minValue:0,maxValue:B.biomass_storage_capacity,children:[B.biomass,"/",B.biomass_storage_capacity+" ("+100*B.biomass/B.biomass_storage_capacity+"%)"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sanguine Reagent",children:B.sanguine_reagent}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Osseous Reagent",children:B.osseous_reagent})]})})]})},B)})]})},i=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.selected_pod_data,g=C.has_scanned,V=C.scanner_has_patient,B=C.feedback,I=C.scan_successful,L=C.cloning_cost,w=C.has_scanner,A=C.currently_scanning;return(0,e.createComponentVNode)(2,t.Box,{children:[!w&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No scanner connected."}),!!w&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Scanner Info",buttons:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hourglass-half",onClick:function(){function x(){return N("scan")}return x}(),disabled:!V||A,children:"Scan"}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function x(){return N("eject")}return x}(),disabled:!V||A,children:"Eject Patient"})]}),children:[!g&&!A&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:V?"No scan detected for current patient.":"No patient is in the scanner."}),(!!g||!!A)&&(0,e.createComponentVNode)(2,t.Box,{color:B.color,children:B.text})]}),(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Damages Breakdown",children:(0,e.createComponentVNode)(2,t.Box,{children:[(!I||!g)&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No valid scan detected."}),!!I&&!!g&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function x(){return N("fix_all")}return x}(),children:"Repair All Damages"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function x(){return N("fix_none")}return x}(),children:"Repair No Damages"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function x(){return N("clone")}return x}(),children:"Clone"})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L[0],maxValue:p.biomass_storage_capacity,ranges:{bad:[2*p.biomass_storage_capacity/3,p.biomass_storage_capacity],average:[p.biomass_storage_capacity/3,2*p.biomass_storage_capacity/3],good:[0,p.biomass_storage_capacity/3]},color:L[0]>p.biomass?"bad":null,children:["Biomass: ",L[0],"/",p.biomass,"/",p.biomass_storage_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L[1],maxValue:p.max_reagent_capacity,ranges:{bad:[2*p.max_reagent_capacity/3,p.max_reagent_capacity],average:[p.max_reagent_capacity/3,2*p.max_reagent_capacity/3],good:[0,p.max_reagent_capacity/3]},color:L[1]>p.sanguine_reagent?"bad":"good",children:["Sanguine: ",L[1],"/",p.sanguine_reagent,"/",p.max_reagent_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L[2],maxValue:p.max_reagent_capacity,ranges:{bad:[2*p.max_reagent_capacity/3,p.max_reagent_capacity],average:[p.max_reagent_capacity/3,2*p.max_reagent_capacity/3],good:[0,p.max_reagent_capacity/3]},color:L[2]>p.osseous_reagent?"bad":"good",children:["Osseous: ",L[2],"/",p.osseous_reagent,"/",p.max_reagent_capacity]})})]}),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,d)]})]})})]})]})},m=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.patient_limb_data,g=C.limb_list,V=C.desired_limb_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Limbs",children:g.map(function(B,I){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"15%",height:"20px",children:[p[B][4],":"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),p[B][3]===0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:V[B][0]+V[B][1],maxValue:p[B][5],ranges:{good:[0,p[B][5]/3],average:[p[B][5]/3,2*p[B][5]/3],bad:[2*p[B][5]/3,p[B][5]]},children:["Post-Cloning Damage: ",(0,e.createComponentVNode)(2,t.Icon,{name:"bone"})," "+V[B][0]+" / ",(0,e.createComponentVNode)(2,t.Icon,{name:"fire"})," "+V[B][1]]})}),p[B][3]!==0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",p[B][4]," is missing!"]})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[!!p[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!V[B][3],onClick:function(){function L(){return N("toggle_limb_repair",{limb:B,type:"replace"})}return L}(),children:"Replace Limb"})}),!p[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[B][0]||p[B][1]),checked:!(V[B][0]||V[B][1]),onClick:function(){function L(){return N("toggle_limb_repair",{limb:B,type:"damage"})}return L}(),children:"Repair Damages"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[B][2]&b),checked:!(V[B][2]&b),onClick:function(){function L(){return N("toggle_limb_repair",{limb:B,type:"bone"})}return L}(),children:"Mend Bone"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[B][2]&y),checked:!(V[B][2]&y),onClick:function(){function L(){return N("toggle_limb_repair",{limb:B,type:"ib"})}return L}(),children:"Mend IB"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[B][2]&S),checked:!(V[B][2]&S),onClick:function(){function L(){return N("toggle_limb_repair",{limb:B,type:"critburn"})}return L}(),children:"Mend Critical Burn"})]})]})]},B)})})},d=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.patient_organ_data,g=C.organ_list,V=C.desired_organ_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Organs",children:g.map(function(B,I){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"20%",height:"20px",children:[p[B][3],":"," "]}),p[B][5]!=="heart"&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!!p[B][2]&&(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!V[B][2]&&!V[B][1],onClick:function(){function L(){return N("toggle_organ_repair",{organ:B,type:"replace"})}return L}(),children:"Replace Organ"}),!p[B][2]&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!p[B][0],checked:!V[B][0],onClick:function(){function L(){return N("toggle_organ_repair",{organ:B,type:"damage"})}return L}(),children:"Repair Damages"})})]})}),p[B][5]==="heart"&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Heart replacement is required for cloning."}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[!!p[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",p[B][3]," is missing!"]}),!p[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:V[B][0],maxValue:p[B][4],ranges:{good:[0,p[B][4]/3],average:[p[B][4]/3,2*p[B][4]/3],bad:[2*p[B][4]/3,p[B][4]]},children:"Post-Cloning Damage: "+V[B][0]})]})]})},B)})})}},98723:function(T,r,n){"use strict";r.__esModule=!0,r.CloningPod=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.CloningPod=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.biomass,m=c.biomass_storage_capacity,d=c.sanguine_reagent,u=c.osseous_reagent,s=c.organs,l=c.currently_cloning;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Liquid Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Biomass:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i,ranges:{good:[2*m/3,m],average:[m/3,2*m/3],bad:[0,m/3]},minValue:0,maxValue:m})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Sanguine Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:d+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:d,step:1,unit:"units",onChange:function(){function v(N,C){return h("remove_reagent",{reagent:"sanguine_reagent",amount:C})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function v(){return h("purge_reagent",{reagent:"sanguine_reagent"})}return v}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Osseous Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:u+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:u,step:1,unit:"units",onChange:function(){function v(N,C){return h("remove_reagent",{reagent:"osseous_reagent",amount:C})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function v(){return h("purge_reagent",{reagent:"osseous_reagent"})}return v}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Organ Storage",children:[!l&&(0,e.createComponentVNode)(2,t.Box,{children:[!s&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No organs loaded."}),!!s&&s.map(function(v){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:v.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",onClick:function(){function N(){return h("eject_organ",{organ_ref:v.ref})}return N}()})})]},v)})]}),!!l&&(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Unable to access organ storage while cloning."]})})]})]})})}return b}()},18259:function(T,r,n){"use strict";r.__esModule=!0,r.CoinMint=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(98595),b=r.CoinMint=function(){function y(S,k){var h=(0,t.useBackend)(k),c=h.act,i=h.data,m=i.materials,d=i.moneyBag,u=i.moneyBagContent,s=i.moneyBagMaxContent,l=(d?210:138)+Math.ceil(m.length/4)*64;return(0,e.createComponentVNode)(2,f.Window,{width:210,height:l,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.NoticeBox,{m:0,info:!0,children:["Total coins produced: ",i.totalCoins]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Coin Type",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",color:i.active&&"bad",tooltip:!d&&"Need a money bag",disabled:!d,onClick:function(){function v(){return c("activate")}return v}()}),children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue:i.maxMaterials,value:i.totalMaterials})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",tooltip:"Eject selected material",onClick:function(){function v(){return c("ejectMat")}return v}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:m.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{bold:!0,inline:!0,translucent:!0,m:.2,textAlign:"center",selected:v.id===i.chosenMaterial,tooltip:v.name,content:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",v.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:v.amount})]}),onClick:function(){function N(){return c("selectMaterial",{material:v.id})}return N}()},v.id)})})]})})}),!!d&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Money Bag",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",disabled:i.active,onClick:function(){function v(){return c("ejectBag")}return v}()}),children:(0,e.createComponentVNode)(2,o.ProgressBar,{width:"100%",minValue:0,maxValue:s,value:u,children:[u," / ",s]})})})]})})})}return y}()},8444:function(T,r,n){"use strict";r.__esModule=!0,r.ColourMatrixTester=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ColourMatrixTester=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.colour_data,m=[[{name:"RR",idx:0},{name:"RG",idx:1},{name:"RB",idx:2},{name:"RA",idx:3}],[{name:"GR",idx:4},{name:"GG",idx:5},{name:"GB",idx:6},{name:"GA",idx:7}],[{name:"BR",idx:8},{name:"BG",idx:9},{name:"BB",idx:10},{name:"BA",idx:11}],[{name:"AR",idx:12},{name:"AG",idx:13},{name:"AB",idx:14},{name:"AA",idx:15}]];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:190,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Matrix",children:m.map(function(d){return(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",textColor:"label",children:d.map(function(u){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:1,children:[u.name,":\xA0",(0,e.createComponentVNode)(2,t.NumberInput,{width:4,value:i[u.idx],step:.05,minValue:-5,maxValue:5,stepPixelSize:5,onChange:function(){function s(l,v){return h("setvalue",{idx:u.idx+1,value:v})}return s}()})]},u.name)})},d)})})})})})}return b}()},63818:function(T,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(s){switch(s){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,c);case 3:return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,i)})});case 4:return(0,e.createComponentVNode)(2,d);default:return"ERROR. Unknown menu_state. Please contact NT Technical Support."}},b=r.CommunicationsComputer=function(){function u(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.menu_state;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),f(p)]})})})}return u}(),y=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.authenticated,g=C.noauthbutton,V=C.esc_section,B=C.esc_callable,I=C.esc_recallable,L=C.esc_status,w=C.authhead,A=C.is_ai,x=C.lastCallLoc,E=!1,P;return p?p===1?P="Command":p===2?P="Captain":p===3?P="CentComm Officer":p===4?(P="CentComm Secure Connection",E=!0):P="ERROR: Report This Bug!":P="Not Logged In",(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authentication",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access",children:P})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:p?"sign-out-alt":"id-card",selected:p,disabled:g,content:p?"Log Out ("+P+")":"Log In",onClick:function(){function j(){return N("auth")}return j}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!V&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Escape Shuttle",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!L&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:L}),!!B&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"Call Shuttle",disabled:!w,onClick:function(){function j(){return N("callshuttle")}return j}()})}),!!I&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Recall Shuttle",disabled:!w||A,onClick:function(){function j(){return N("cancelshuttle")}return j}()})}),!!x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Last Call/Recall From",children:x})]})})})],4)},S=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.is_admin;return p?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,h)},k=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.is_admin,g=C.gamma_armory_location,V=C.admin_levels,B=C.authenticated,I=C.ert_allowed;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"CentComm Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:V,required_access:p,use_confirm:1})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:"Make Central Announcement",disabled:!p,onClick:function(){function L(){return N("send_to_cc_announcement_page")}return L}()}),B===4&&(0,e.createComponentVNode)(2,t.Button,{icon:"plus",content:"Make Other Announcement",disabled:!p,onClick:function(){function L(){return N("make_other_announcement")}return L}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Response Team",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"Dispatch ERT",disabled:!p,onClick:function(){function L(){return N("dispatch_ert")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:I,content:I?"ERT calling enabled":"ERT calling disabled",tooltip:I?"Command can request an ERT":"ERTs cannot be requested",disabled:!p,onClick:function(){function L(){return N("toggle_ert_allowed")}return L}(),selected:null})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Get Authentication Codes",disabled:!p,onClick:function(){function L(){return N("send_nuke_codes")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gamma Armory",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"biohazard",content:g?"Send Gamma Armory":"Recall Gamma Armory",disabled:!p,onClick:function(){function L(){return N("move_gamma_armory")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"coins",content:"View Economy",disabled:!p,onClick:function(){function L(){return N("view_econ")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fax",content:"Fax Manager",disabled:!p,onClick:function(){function L(){return N("view_fax")}return L}()})]})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"View Command accessible controls",children:(0,e.createComponentVNode)(2,h)})]})},h=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.msg_cooldown,g=C.emagged,V=C.cc_cooldown,B=C.security_level_color,I=C.str_security_level,L=C.levels,w=C.authcapt,A=C.authhead,x=C.messages,E="Make Priority Announcement";p>0&&(E+=" ("+p+"s)");var P=g?"Message [UNKNOWN]":"Message CentComm",j="Request Authentication Codes";return V>0&&(P+=" ("+V+"s)",j+=" ("+V+"s)"),(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Captain-Only Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Alert",color:B,children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:L,required_access:w})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:E,disabled:!w||p>0,onClick:function(){function M(){return N("announce")}return M}()})}),!!g&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:P,disabled:!w||V>0,onClick:function(){function M(){return N("MessageSyndicate")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!w,onClick:function(){function M(){return N("RestoreBackup")}return M}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:P,disabled:!w||V>0,onClick:function(){function M(){return N("MessageCentcomm")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:j,disabled:!w||V>0,onClick:function(){function M(){return N("nukerequest")}return M}()})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Command Staff Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Displays",children:(0,e.createComponentVNode)(2,t.Button,{icon:"tv",content:"Change Status Displays",disabled:!A,onClick:function(){function M(){return N("status")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Messages",children:(0,e.createComponentVNode)(2,t.Button,{icon:"folder-open",content:"View ("+x.length+")",disabled:!A,onClick:function(){function M(){return N("messagelist")}return M}()})})]})})})],4)},c=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.stat_display,g=C.authhead,V=C.current_message_title,B=p.presets.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{content:L.label,selected:L.name===p.type,disabled:!g,onClick:function(){function w(){return N("setstat",{statdisp:L.name})}return w}()},L.name)}),I=p.alerts.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{content:L.label,selected:L.alert===p.icon,disabled:!g,onClick:function(){function w(){return N("setstat",{statdisp:3,alert:L.alert})}return w}()},L.alert)});return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Status Screens",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function L(){return N("main")}return L}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alerts",children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:p.line_1,disabled:!g,onClick:function(){function L(){return N("setmsg1")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:p.line_2,disabled:!g,onClick:function(){function L(){return N("setmsg2")}return L}()})})]})})})},i=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.authhead,g=C.current_message_title,V=C.current_message,B=C.messages,I=C.security_level,L;if(g)L=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:g,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Return To Message List",disabled:!p,onClick:function(){function A(){return N("messagelist")}return A}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:V})})});else{var w=B.map(function(A){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:A.title,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"View",disabled:!p||g===A.title,onClick:function(){function x(){return N("messagelist",{msgid:A.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"times",content:"Delete",disabled:!p,onClick:function(){function x(){return N("delmessage",{msgid:A.id})}return x}()})]},A.id)});L=(0,e.createComponentVNode)(2,t.Section,{title:"Messages Received",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function A(){return N("main")}return A}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:w})})}return(0,e.createComponentVNode)(2,t.Box,{children:L})},m=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=s.levels,g=s.required_access,V=s.use_confirm,B=C.security_level;return V?p.map(function(I){return(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:I.icon,content:I.name,disabled:!g||I.id===B,tooltip:I.tooltip,onClick:function(){function L(){return N("newalertlevel",{level:I.id})}return L}()},I.name)}):p.map(function(I){return(0,e.createComponentVNode)(2,t.Button,{icon:I.icon,content:I.name,disabled:!g||I.id===B,tooltip:I.tooltip,onClick:function(){function L(){return N("newalertlevel",{level:I.id})}return L}()},I.name)})},d=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.is_admin,g=C.possible_cc_sounds;if(!p)return N("main");var V=(0,a.useLocalState)(l,"subtitle",""),B=V[0],I=V[1],L=(0,a.useLocalState)(l,"text",""),w=L[0],A=L[1],x=(0,a.useLocalState)(l,"classified",0),E=x[0],P=x[1],j=(0,a.useLocalState)(l,"beepsound","Beep"),M=j[0],R=j[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Central Command Report",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function D(){return N("main")}return D}()}),children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Subtitle here.",fluid:!0,value:B,onChange:function(){function D(W,_){return I(_)}return D}(),mb:"5px"}),(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Announcement here,\nMultiline input is accepted.",rows:10,fluid:!0,multiline:1,value:w,onChange:function(){function D(W,_){return A(_)}return D}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Send Announcement",fluid:!0,icon:"paper-plane",center:!0,mt:"5px",textAlign:"center",onClick:function(){function D(){return N("make_cc_announcement",{subtitle:B,text:w,classified:E,beepsound:M})}return D}()}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"260px",height:"20px",options:g,selected:M,onSelected:function(){function D(W){return R(W)}return D}(),disabled:E})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"volume-up",mx:"5px",disabled:E,tooltip:"Test sound",onClick:function(){function D(){return N("test_sound",{sound:M})}return D}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:E,content:"Classified",fluid:!0,tooltip:E?"Sent to station communications consoles":"Publically announced",onClick:function(){function D(){return P(!E)}return D}()})})]})]})})}},20562:function(T,r,n){"use strict";r.__esModule=!0,r.CompostBin=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.CompostBin=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.biomass,m=c.compost,d=c.biomass_capacity,u=c.compost_capacity,s=c.potassium,l=c.potassium_capacity,v=c.potash,N=c.potash_capacity,C=(0,a.useSharedState)(S,"vendAmount",1),p=C[0],g=C[1];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:250,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{label:"Resources",children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:i,minValue:0,maxValue:d,ranges:{good:[d*.5,1/0],average:[d*.25,d*.5],bad:[-1/0,d*.25]},children:[i," / ",d," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compost",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:m,minValue:0,maxValue:u,ranges:{good:[u*.5,1/0],average:[u*.25,u*.5],bad:[-1/0,u*.25]},children:[m," / ",u," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Potassium",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:s,minValue:0,maxValue:l,ranges:{good:[l*.5,1/0],average:[l*.25,l*.5],bad:[-1/0,l*.25]},children:[s," / ",l," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Potash",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:v,minValue:0,maxValue:N,ranges:{good:[N*.5,1/0],average:[N*.25,N*.5],bad:[-1/0,N*.25]},children:[v," / ",N," Units"]})})]})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mr:"5px",color:"silver",children:"Soil clumps to make:"}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:p,width:"32px",minValue:1,maxValue:10,stepPixelSize:7,onChange:function(){function V(B,I){return g(I)}return V}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,align:"center",content:"Make Soil",disabled:m<25*p,icon:"arrow-circle-down",onClick:function(){function V(){return h("create",{amount:p})}return V}()})})})]})})})}return b}()},21813:function(T,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(73379),b=n(98595);function y(N,C){N.prototype=Object.create(C.prototype),N.prototype.constructor=N,S(N,C)}function S(N,C){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,g){return p.__proto__=g,p},S(N,C)}var k={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},h=["Recording biometric data...","Analyzing embedded syndicate info...","STATUS CONFIRMED","Contacting Syndicate database...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Response received, ack 4851234...","CONFIRM ACC "+Math.round(Math.random()*2e4),"Setting up private accounts...","CONTRACTOR ACCOUNT CREATED","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","CONTRACTS FOUND","WELCOME, AGENT"],c=r.Contractor=function(){function N(C,p){var g=(0,t.useBackend)(p),V=g.act,B=g.data,I;B.unauthorized?I=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,l,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){function x(){}return x}()})}):B.load_animation_completed?I=(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:(0,e.createComponentVNode)(2,i)}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"hidden",children:B.page===1?(0,e.createComponentVNode)(2,d,{height:"100%"}):(0,e.createComponentVNode)(2,s,{height:"100%"})})],4):I=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,l,{height:"100%",allMessages:h,finishedTimeout:3e3,onFinished:function(){function x(){return V("complete_load_animation")}return x}()})});var L=(0,t.useLocalState)(p,"viewingPhoto",""),w=L[0],A=L[1];return(0,e.createComponentVNode)(2,b.Window,{theme:"syndicate",width:500,height:600,children:[w&&(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,b.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:I})})]})}return N}(),i=function(C,p){var g=(0,t.useBackend)(p),V=g.act,B=g.data,I=B.tc_available,L=B.tc_paid_out,w=B.completed_contracts,A=B.rep;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Summary",buttons:(0,e.createComponentVNode)(2,o.Box,{verticalAlign:"middle",mt:"0.25rem",children:[A," Rep"]})},C,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Available",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",children:[I," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:I<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function x(){return V("claim")}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Earned",children:[L," TC"]})]})}),(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Box,{height:"20px",lineHeight:"20px",inline:!0,children:w})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},m=function(C,p){var g=(0,t.useBackend)(p),V=g.act,B=g.data,I=B.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},C,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===1,onClick:function(){function L(){return V("page",{page:1})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===2,onClick:function(){function L(){return V("page",{page:2})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},d=function(C,p){var g=(0,t.useBackend)(p),V=g.act,B=g.data,I=B.contracts,L=B.contract_active,w=B.can_extract,A=!!L&&I.filter(function(M){return M.status===1})[0],x=A&&A.time_left>0,E=(0,t.useLocalState)(p,"viewingPhoto",""),P=E[0],j=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Contracts",overflow:"auto",buttons:(0,e.createComponentVNode)(2,o.Button,{disabled:!w||x,icon:"parachute-box",content:["Call Extraction",x&&(0,e.createComponentVNode)(2,f.Countdown,{timeLeft:A.time_left,format:function(){function M(R,D){return" ("+D.substr(3)+")"}return M}()})],onClick:function(){function M(){return V("extract")}return M}()})},C,{children:I.slice().sort(function(M,R){return M.status===1?-1:R.status===1?1:M.status-R.status}).map(function(M){var R;return(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",color:M.status===1&&"good",children:M.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:M.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function D(){return j("target_photo_"+M.uid+".png")}return D}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!k[M.status]&&(0,e.createComponentVNode)(2,o.Box,{color:k[M.status][1],inline:!0,mt:M.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:k[M.status][0]}),M.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function D(){return V("abort")}return D}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[M.fluff_message,!!M.completed_time&&(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"check",mr:"0.5rem"}),"Contract completed at ",M.completed_time]}),!!M.dead_extraction&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",mt:"0.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"Telecrystals reward reduced drastically as the target was dead during extraction."]}),!!M.fail_reason&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"times",mr:"0.5rem"}),"Contract failed: ",M.fail_reason]})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{flexBasis:"100%",children:[(0,e.createComponentVNode)(2,o.Flex,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xA0",u(M)]}),(R=M.difficulties)==null?void 0:R.map(function(D,W){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!L,content:D.name+" ("+D.reward+" TC)",onClick:function(){function _(){return V("activate",{uid:M.uid,difficulty:W+1})}return _}()},W)}),!!M.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[M.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(M.objective.rewards.tc||0)+" TC",",\xA0",(M.objective.rewards.credits||0)+" Credits",")"]})]})]})},M.uid)})})))},u=function(C){if(!(!C.objective||C.status>1)){var p=C.objective.locs.user_area_id,g=C.objective.locs.user_coords,V=C.objective.locs.target_area_id,B=C.objective.locs.target_coords,I=p===V;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:I?"dot-circle-o":"arrow-alt-circle-right-o",color:I?"green":"yellow",rotation:I?null:-(0,a.rad2deg)(Math.atan2(B[1]-g[1],B[0]-g[0])),lineHeight:I?null:"0.85",size:"1.5"})})}},s=function(C,p){var g=(0,t.useBackend)(p),V=g.act,B=g.data,I=B.rep,L=B.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},C,{children:L.map(function(w){return(0,e.createComponentVNode)(2,o.Section,{title:w.name,children:[w.description,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:I-1&&(0,e.createComponentVNode)(2,o.Box,{as:"span",color:w.stock===0?"bad":"good",ml:"0.5rem",children:[w.stock," in stock"]})]},w.uid)})})))},l=function(N){function C(g){var V;return V=N.call(this,g)||this,V.timer=null,V.state={currentIndex:0,currentDisplay:[]},V}y(C,N);var p=C.prototype;return p.tick=function(){function g(){var V=this.props,B=this.state;if(B.currentIndex<=V.allMessages.length){this.setState(function(L){return{currentIndex:L.currentIndex+1}});var I=B.currentDisplay;I.push(V.allMessages[B.currentIndex])}else clearTimeout(this.timer),setTimeout(V.onFinished,V.finishedTimeout)}return g}(),p.componentDidMount=function(){function g(){var V=this,B=this.props.linesPerSecond,I=B===void 0?2.5:B;this.timer=setInterval(function(){return V.tick()},1e3/I)}return g}(),p.componentWillUnmount=function(){function g(){clearTimeout(this.timer)}return g}(),p.render=function(){function g(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(V){return(0,e.createFragment)([V,(0,e.createVNode)(1,"br")],0,V)})})}return g}(),C}(e.Component),v=function(C,p){var g=(0,t.useLocalState)(p,"viewingPhoto",""),V=g[0],B=g[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:V}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function I(){return B("")}return I}()})]})}},54151:function(T,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ConveyorSwitch=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.slowFactor,m=c.oneWay,d=c.position;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lever position",children:d>0?"forward":d<0?"reverse":"neutral"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Allow reverse",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!m,onClick:function(){function u(){return h("toggleOneWay")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slowdown factor",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",onClick:function(){function u(){return h("slowFactor",{value:i-5})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function u(){return h("slowFactor",{value:i-1})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{width:"100px",mx:"1px",value:i,fillValue:i,minValue:1,maxValue:50,step:1,format:function(){function u(s){return s+"x"}return u}(),onChange:function(){function u(s,l){return h("slowFactor",{value:l})}return u}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function u(){return h("slowFactor",{value:i+1})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function u(){return h("slowFactor",{value:i+5})}return u}()})," "]})]})})]})})})})}return b}()},73169:function(T,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(89005),a=n(88510),t=n(25328),o=n(72253),f=n(36036),b=n(36352),y=n(76910),S=n(98595),k=n(96184),h=["color"];function c(v,N){if(v==null)return{};var C={};for(var p in v)if({}.hasOwnProperty.call(v,p)){if(N.includes(p))continue;C[p]=v[p]}return C}var i=function(N,C){return N.dead?"Deceased":parseInt(N.health,10)<=C?"Critical":parseInt(N.stat,10)===1?"Unconscious":"Living"},m=function(N,C){return N.dead?"red":parseInt(N.health,10)<=C?"orange":parseInt(N.stat,10)===1?"blue":"green"},d=r.CrewMonitor=function(){function v(N,C){var p=(0,o.useBackend)(C),g=p.act,V=p.data,B=(0,o.useLocalState)(C,"tabIndex",V.tabIndex),I=B[0],L=B[1],w=function(){function x(E){L(E),g("set_tab_index",{tab_index:E})}return x}(),A=function(){function x(E){switch(E){case 0:return(0,e.createComponentVNode)(2,u);case 1:return(0,e.createComponentVNode)(2,l);default:return"WE SHOULDN'T BE HERE!"}}return x}();return(0,e.createComponentVNode)(2,S.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"table",selected:I===0,onClick:function(){function x(){return w(0)}return x}(),children:"Data View"},"DataView"),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"map-marked-alt",selected:I===1,onClick:function(){function x(){return w(1)}return x}(),children:"Map View"},"MapView")]})}),A(I)]})})})}return v}(),u=function(N,C){var p=(0,o.useBackend)(C),g=p.act,V=p.data,B=(0,a.sortBy)(function(M){return M.name})(V.crewmembers||[]),I=V.possible_levels,L=V.viewing_current_z_level,w=V.is_advanced,A=V.highlightedNames,x=(0,o.useLocalState)(C,"search",""),E=x[0],P=x[1],j=(0,t.createSearch)(E,function(M){return M.name+"|"+M.assignment+"|"+M.area});return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,backgroundColor:"transparent",children:[(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name, assignment or location..",width:"100%",onInput:function(){function M(R,D){return P(D)}return M}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:w?(0,e.createComponentVNode)(2,f.Dropdown,{mr:"5px",width:"50px",options:I,selected:L,onSelected:function(){function M(R){return g("switch_level",{new_level:R})}return M}()}):null})]}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:(0,e.createComponentVNode)(2,f.Button,{tooltip:"Clear highlights",icon:"square-xmark",onClick:function(){function M(){return g("clear_highlighted_names")}return M}()})}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Location"})]}),B.filter(j).map(function(M){var R=A.includes(M.name);return(0,e.createComponentVNode)(2,f.Table.Row,{bold:!!M.is_command,children:[(0,e.createComponentVNode)(2,b.TableCell,{children:(0,e.createComponentVNode)(2,k.ButtonCheckbox,{checked:R,tooltip:"Mark on map",onClick:function(){function D(){return g(R?"remove_highlighted_name":"add_highlighted_name",{name:M.name})}return D}()})}),(0,e.createComponentVNode)(2,b.TableCell,{children:[M.name," (",M.assignment,")"]}),(0,e.createComponentVNode)(2,b.TableCell,{children:[(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:m(M,V.critThreshold),children:i(M,V.critThreshold)}),M.sensor_type>=2||V.ignoreSensors?(0,e.createComponentVNode)(2,f.Box,{inline:!0,ml:1,children:["(",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:y.COLORS.damageType.oxy,children:M.oxy}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:y.COLORS.damageType.toxin,children:M.tox}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:y.COLORS.damageType.burn,children:M.fire}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:y.COLORS.damageType.brute,children:M.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,b.TableCell,{children:M.sensor_type===3||V.ignoreSensors?V.isAI||V.isObserver?(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"location-arrow",content:M.area+" ("+M.x+", "+M.y+")",onClick:function(){function D(){return g("track",{track:M.ref})}return D}()}):M.area+" ("+M.x+", "+M.y+")":(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:"grey",children:"Not Available"})})]},M.name)})]})]})},s=function(N,C){var p=N.color,g=c(N,h);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.NanoMap.Marker,Object.assign({},g,{children:(0,e.createVNode)(1,"span","highlighted-marker color-border-"+p)})))},l=function(N,C){var p=(0,o.useBackend)(C),g=p.act,V=p.data,B=V.highlightedNames;return(0,e.createComponentVNode)(2,f.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,f.NanoMap,{zoom:V.zoom,offsetX:V.offsetX,offsetY:V.offsetY,onZoom:function(){function I(L){return g("set_zoom",{zoom:L})}return I}(),onOffsetChange:function(){function I(L,w){return g("set_offset",{offset_x:w.offsetX,offset_y:w.offsetY})}return I}(),children:V.crewmembers.filter(function(I){return I.sensor_type===3||V.ignoreSensors}).map(function(I){var L=m(I,V.critThreshold),w=B.includes(I.name),A=function(){return V.isObserver?g("track",{track:I.ref}):null},x=function(){return g(w?"remove_highlighted_name":"add_highlighted_name",{name:I.name})},E=I.name+" ("+I.assignment+")";return w?(0,e.createComponentVNode)(2,s,{x:I.x,y:I.y,tooltip:E,color:L,onClick:A,onDblClick:x},I.ref):(0,e.createComponentVNode)(2,f.NanoMap.MarkerIcon,{x:I.x,y:I.y,icon:"circle",tooltip:E,color:L,onClick:A,onDblClick:x},I.ref)})})})}},63987:function(T,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],b=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],y=r.Cryo=function(){function h(c,i){return(0,e.createComponentVNode)(2,o.Window,{width:520,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,S)})})})}return h}(),S=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.isOperating,l=u.hasOccupant,v=u.occupant,N=v===void 0?[]:v,C=u.cellTemperature,p=u.cellTemperatureStatus,g=u.isBeakerLoaded,V=u.cooldownProgress,B=u.auto_eject_healthy,I=u.auto_eject_dead;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",onClick:function(){function L(){return d("ejectOccupant")}return L}(),disabled:!l,children:"Eject"}),children:l?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:N.name||"Unknown"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:N.health,max:N.maxHealth,value:N.health/N.maxHealth,color:N.health>0?"good":"average",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(N.health)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:b[N.stat][0],children:b[N.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(N.bodyTemperature)})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),f.map(function(L){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:L.label,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:N[L.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(N[L.type])})})},L.id)})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Cell",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function L(){return d("ejectBeaker")}return L}(),disabled:!g,children:"Eject Beaker"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function L(){return d(s?"switchOff":"switchOn")}return L}(),selected:s,children:s?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",color:p,children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:C})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dosage interval",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{average:[-1/0,99],good:[99,1/0]},color:!g&&"average",value:V,minValue:0,maxValue:100})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject healthy occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:B?"toggle-on":"toggle-off",selected:B,onClick:function(){function L(){return d(B?"auto_eject_healthy_off":"auto_eject_healthy_on")}return L}(),children:B?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject dead occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:I?"toggle-on":"toggle-off",selected:I,onClick:function(){function L(){return d(I?"auto_eject_dead_off":"auto_eject_dead_on")}return L}(),children:I?"On":"Off"})})]})})})],4)},k=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.isBeakerLoaded,l=u.beakerLabel,v=u.beakerVolume;return s?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!l&&"average",children:[l||"No label",":"]}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!v&&"bad",ml:1,children:v?(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:v,format:function(){function N(C){return Math.round(C)+" units remaining"}return N}()}):"Beaker is empty"})],4):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"bad",children:"No beaker loaded"})}},86099:function(T,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(25328),b=r.CryopodConsole=function(){function k(h,c){var i=(0,a.useBackend)(c),m=i.data,d=m.account_name,u=m.allow_items;return(0,e.createComponentVNode)(2,o.Window,{title:"Cryopod Console",width:400,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Hello, "+(d||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.createComponentVNode)(2,y),!!u&&(0,e.createComponentVNode)(2,S)]})})}return k}(),y=function(h,c){var i=(0,a.useBackend)(c),m=i.data,d=m.frozen_crew;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Crew",children:d.length?(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(u,s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,children:u.rank},s)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},S=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.frozen_items,s=function(v){var N=v.toString();return N.startsWith("the ")&&(N=N.slice(4,N.length)),(0,f.toTitleCase)(N)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:u.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s(l.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function v(){return m("one_item",{item:l.uid})}return v}()})},l)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function l(){return m("all_items")}return l}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},12692:function(T,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=[["good","Alive"],["average","Critical"],["bad","DEAD"]],y=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],S=[5,10,20,30,50],k=r.DNAModifier=function(){function p(g,V){var B=(0,a.useBackend)(V),I=B.act,L=B.data,w=L.irradiating,A=L.dnaBlockSize,x=L.occupant;V.dnaBlockSize=A,V.isDNAInvalid=!x.isViableSubject||!x.uniqueIdentity||!x.structuralEnzymes;var E;return w&&(E=(0,e.createComponentVNode)(2,N,{duration:w})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:775,children:[(0,e.createComponentVNode)(2,f.ComplexModal),E,(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,h)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,c)})]})})]})}return p}(),h=function(g,V){var B=(0,a.useBackend)(V),I=B.act,L=B.data,w=L.locked,A=L.hasOccupant,x=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A,selected:w,icon:w?"toggle-on":"toggle-off",content:w?"Engaged":"Disengaged",onClick:function(){function E(){return I("toggleLock")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A||w,icon:"user-slash",content:"Eject",onClick:function(){function E(){return I("ejectOccupant")}return E}()})],4),children:A?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:x.minHealth,max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:b[x.stat][0],children:b[x.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),V.isDNAInvalid?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radiation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:"0",max:"100",value:x.radiationLevel/100,color:"average"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:L.occupant.uniqueEnzymes?L.occupant.uniqueEnzymes:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})],0):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Cell unoccupied."})})},c=function(g,V){var B=(0,a.useBackend)(V),I=B.act,L=B.data,w=L.selectedMenuKey,A=L.hasOccupant,x=L.occupant;if(A){if(V.isDNAInvalid)return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No operation possible on this subject."]})})})}else return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant in DNA modifier."]})})});var E;return w==="ui"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,d)],4):w==="se"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,d)],4):w==="buffer"?E=(0,e.createComponentVNode)(2,u):w==="rejuvenators"&&(E=(0,e.createComponentVNode)(2,v)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:y.map(function(P,j){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:P[2],selected:w===P[0],onClick:function(){function M(){return I("selectMenuKey",{key:P[0]})}return M}(),children:P[1]},j)})}),E]})},i=function(g,V){var B=(0,a.useBackend)(V),I=B.act,L=B.data,w=L.selectedUIBlock,A=L.selectedUISubBlock,x=L.selectedUITarget,E=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",children:[(0,e.createComponentVNode)(2,C,{dnaString:E.uniqueIdentity,selectedBlock:w,selectedSubblock:A,blockSize:V.dnaBlockSize,action:"selectUIBlock"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:15,stepPixelSize:"20",value:x,format:function(){function P(j){return j.toString(16).toUpperCase()}return P}(),ml:"0",onChange:function(){function P(j,M){return I("changeUITarget",{value:M})}return P}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function P(){return I("pulseUIRadiation")}return P}()})]})},m=function(g,V){var B=(0,a.useBackend)(V),I=B.act,L=B.data,w=L.selectedSEBlock,A=L.selectedSESubBlock,x=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",children:[(0,e.createComponentVNode)(2,C,{dnaString:x.structuralEnzymes,selectedBlock:w,selectedSubblock:A,blockSize:V.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function E(){return I("pulseSERadiation")}return E}()})]})},d=function(g,V){var B=(0,a.useBackend)(V),I=B.act,L=B.data,w=L.radiationIntensity,A=L.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Emitter",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Intensity",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:10,stepPixelSize:20,value:w,popUpPosition:"right",ml:"0",onChange:function(){function x(E,P){return I("radiationIntensity",{value:P})}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:20,stepPixelSize:10,unit:"s",value:A,popUpPosition:"right",ml:"0",onChange:function(){function x(E,P){return I("radiationDuration",{value:P})}return x}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top-start",mt:"0.5rem",onClick:function(){function x(){return I("pulseRadiation")}return x}()})]})},u=function(g,V){var B=(0,a.useBackend)(V),I=B.act,L=B.data,w=L.buffers,A=w.map(function(x,E){return(0,e.createComponentVNode)(2,s,{id:E+1,name:"Buffer "+(E+1),buffer:x},E)});return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{height:"75%",mt:1,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Buffers",children:A})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,l)})]})},s=function(g,V){var B=(0,a.useBackend)(V),I=B.act,L=B.data,w=g.id,A=g.name,x=g.buffer,E=L.isInjectorReady,P=A+(x.data?" - "+x.label:"");return(0,e.createComponentVNode)(2,t.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,t.Section,{title:P,mx:"0",lineHeight:"18px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!x.data,icon:"trash",content:"Clear",onClick:function(){function j(){return I("bufferOption",{option:"clear",id:w})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data,icon:"pen",content:"Rename",onClick:function(){function j(){return I("bufferOption",{option:"changeLabel",id:w})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data||!L.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-start",onClick:function(){function j(){return I("bufferOption",{option:"saveDisk",id:w})}return j}()})],4),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Write",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"saveUI",id:w})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"saveUIAndUE",id:w})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"saveSE",id:w})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!L.hasDisk||!L.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"loadDisk",id:w})}return j}()})]}),!!x.data&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:x.owner||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[x.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!x.ue&&" and Unique Enzymes"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer to",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Injector",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"createInjector",id:w})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Block Injector",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"createInjector",id:w,block:1})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"transfer",id:w})}return j}()})]})],4)]}),!x.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},l=function(g,V){var B=(0,a.useBackend)(V),I=B.act,L=B.data,w=L.hasDisk,A=L.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!w||!A.data,icon:"trash",content:"Wipe",onClick:function(){function x(){return I("wipeDisk")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:"eject",content:"Eject",onClick:function(){function x(){return I("ejectDisk")}return x}()})],4),children:w?A.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Label",children:A.label?A.label:"No label"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:A.owner?A.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[A.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!A.ue&&" and Unique Enzymes"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Disk is blank."}):(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"save-o",size:"4"}),(0,e.createVNode)(1,"br"),"No disk inserted."]})})},v=function(g,V){var B=(0,a.useBackend)(V),I=B.act,L=B.data,w=L.isBeakerLoaded,A=L.beakerVolume,x=L.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Rejuvenators and Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:"eject",content:"Eject",onClick:function(){function E(){return I("ejectBeaker")}return E}()}),children:w?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[S.map(function(E,P){return(0,e.createComponentVNode)(2,t.Button,{disabled:E>A,icon:"syringe",content:E,onClick:function(){function j(){return I("injectRejuvenators",{amount:E})}return j}()},P)}),(0,e.createComponentVNode)(2,t.Button,{disabled:A<=0,icon:"syringe",content:"All",onClick:function(){function E(){return I("injectRejuvenators",{amount:A})}return E}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:x||"No label"}),A?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:[A," unit",A===1?"":"s"," remaining"]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Empty"})]})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No beaker loaded.",16)]})})})},N=function(g,V){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:(0,e.createVNode)(1,"h1",null,[(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"}),(0,e.createTextVNode)("\xA0Irradiating occupant\xA0"),(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"})],4)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,[(0,e.createTextVNode)("For "),g.duration,(0,e.createTextVNode)(" second"),g.duration===1?"":"s"],0)})]})},C=function(g,V){for(var B=(0,a.useBackend)(V),I=B.act,L=B.data,w=g.dnaString,A=g.selectedBlock,x=g.selectedSubblock,E=g.blockSize,P=g.action,j=w.split(""),M=0,R=[],D=function(){for(var U=W/E+1,K=[],G=function(){var J=$+1;K.push((0,e.createComponentVNode)(2,t.Button,{selected:A===U&&x===J,content:j[W+$],mb:"0",onClick:function(){function ie(){return I(P,{block:U,subblock:J})}return ie}()}))},$=0;$l.spawnpoints?"red":"green",children:[l.total," total, versus ",l.spawnpoints," spawnpoints"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispatch",children:(0,e.createComponentVNode)(2,t.Button,{width:10.5,textAlign:"center",icon:"ambulance",content:"Send ERT",onClick:function(){function g(){return s("dispatch_ert",{silent:C})}return g}()})})]})})})},h=function(m,d){var u=(0,a.useBackend)(d),s=u.act,l=u.data,v=l.ert_request_messages;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:v&&v.length?v.map(function(N){return(0,e.createComponentVNode)(2,t.Section,{title:N.time,buttons:(0,e.createComponentVNode)(2,t.Button,{content:N.sender_real_name,onClick:function(){function C(){return s("view_player_panel",{uid:N.sender_uid})}return C}(),tooltip:"View player panel"}),children:N.message},(0,f.decodeHtmlEntities)(N.time))}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"broadcast-tower",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No ERT requests."]})})})})},c=function(m,d){var u=(0,a.useBackend)(d),s=u.act,l=u.data,v=(0,a.useLocalState)(d,"text",""),N=v[0],C=v[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter ERT denial reason here,\nMultiline input is accepted.",rows:19,fluid:!0,multiline:1,value:N,onChange:function(){function p(g,V){return C(V)}return p}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Deny ERT",fluid:!0,icon:"times",center:!0,mt:2,textAlign:"center",onClick:function(){function p(){return s("deny_ert",{reason:N})}return p}()})]})})}},90217:function(T,r,n){"use strict";r.__esModule=!0,r.EconomyManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=r.EconomyManager=function(){function S(k,h){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:325,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,y)})]})}return S}(),y=function(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.next_payroll_time;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"coins",verticalAlign:"middle",size:3,mr:"1rem"}),"Economy Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.LabeledList,{label:"Pay Bonuses and Deductions",children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Global",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Global Payroll Modification",onClick:function(){function u(){return i("payroll_modification",{mod_type:"global"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Account Payroll Modification",onClick:function(){function u(){return i("payroll_modification",{mod_type:"department"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Members",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Members Payroll Modification",onClick:function(){function u(){return i("payroll_modification",{mod_type:"department_members"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Single Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Crew Member Payroll Modification",onClick:function(){function u(){return i("payroll_modification",{mod_type:"crew_member"})}return u}()})})]}),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Box,{mb:.5,children:["Next Payroll in: ",d," Minutes"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",width:"auto",color:"bad",content:"Delay Payroll",onClick:function(){function u(){return i("delay_payroll")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{width:"auto",content:"Set Payroll Time",onClick:function(){function u(){return i("set_payroll")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",width:"auto",color:"good",content:"Accelerate Payroll",onClick:function(){function u(){return i("accelerate_payroll")}return u}()})]}),(0,e.createComponentVNode)(2,t.NoticeBox,{children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," You take full responsibility for unbalancing the economy with these buttons!"]})],4)}},82565:function(T,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.Electropack=function(){function y(S,k){var h=(0,t.useBackend)(k),c=h.act,i=h.data,m=i.power,d=i.code,u=i.frequency,s=i.minFrequency,l=i.maxFrequency;return(0,e.createComponentVNode)(2,f.Window,{width:360,height:135,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,o.Button,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,onClick:function(){function v(){return c("power")}return v}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function v(){return c("reset",{reset:"freq"})}return v}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:s/10,maxValue:l/10,value:u/10,format:function(){function v(N){return(0,a.toFixed)(N,1)}return v}(),width:"80px",onChange:function(){function v(N,C){return c("freq",{freq:C})}return v}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function v(){return c("reset",{reset:"code"})}return v}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:d,width:"80px",onChange:function(){function v(N,C){return c("code",{code:C})}return v}()})})]})})})})}return y}()},11243:function(T,r,n){"use strict";r.__esModule=!0,r.Emojipedia=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(98595),b=r.Emojipedia=function(){function S(k,h){var c=(0,t.useBackend)(h),i=c.data,m=i.emoji_list,d=(0,t.useLocalState)(h,"searchText",""),u=d[0],s=d[1],l=m.filter(function(v){return v.name.toLowerCase().includes(u.toLowerCase())});return(0,e.createComponentVNode)(2,f.Window,{width:325,height:400,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Emojipedia v1.0.1",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by name",value:u,onInput:function(){function v(N,C){return s(C)}return v}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Click on an emoji to copy its tag!",tooltipPosition:"bottom",icon:"circle-question"})],4),children:l.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{m:1,color:"transparent",className:(0,a.classes)(["emoji16x16","emoji-"+v.name]),style:{transform:"scale(1.5)"},tooltip:v.name,onClick:function(){function N(){y(v.name)}return N}()},v.name)})})})})}return S}(),y=function(k){var h=document.createElement("input"),c=":"+k+":";h.value=c,document.body.appendChild(h),h.select(),document.execCommand("copy"),document.body.removeChild(h)}},36730:function(T,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=n(64795),y=n(88510),S=r.EvolutionMenu=function(){function c(i,m){return(0,e.createComponentVNode)(2,f.Window,{width:480,height:580,theme:"changeling",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,h)]})})})}return c}(),k=function(i,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,l=s.evo_points,v=s.can_respec;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Evolution Points",height:5.5,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:l}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{ml:2.5,disabled:!v,content:"Readapt",icon:"sync",onClick:function(){function N(){return u("readapt")}return N}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})})},h=function(i,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,l=s.evo_points,v=s.ability_tabs,N=s.purchased_abilities,C=s.view_mode,p=(0,t.useLocalState)(m,"selectedTab",v[0]),g=p[0],V=p[1],B=(0,t.useLocalState)(m,"searchText",""),I=B[0],L=B[1],w=(0,t.useLocalState)(m,"ability_tabs",v[0].abilities),A=w[0],x=w[1],E=function(R,D){if(D===void 0&&(D=""),!R||R.length===0)return[];var W=(0,a.createSearch)(D,function(_){return _.name+"|"+_.description});return(0,b.flow)([(0,y.filter)(function(_){return _==null?void 0:_.name}),(0,y.filter)(W),(0,y.sortBy)(function(_){return _==null?void 0:_.name})])(R)},P=function(R){if(L(R),R==="")return x(g.abilities);x(E(v.map(function(D){return D.abilities}).flat(),R))},j=function(R){V(R),x(R.abilities),L("")};return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Abilities",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{width:"200px",placeholder:"Search Abilities",onInput:function(){function M(R,D){P(D)}return M}(),value:I}),(0,e.createComponentVNode)(2,o.Button,{icon:C?"square-o":"check-square-o",selected:!C,content:"Compact",onClick:function(){function M(){return u("set_view_mode",{mode:0})}return M}()}),(0,e.createComponentVNode)(2,o.Button,{icon:C?"check-square-o":"square-o",selected:C,content:"Expanded",onClick:function(){function M(){return u("set_view_mode",{mode:1})}return M}()})],4),children:[(0,e.createComponentVNode)(2,o.Tabs,{children:v.map(function(M){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===""&&g===M,onClick:function(){function R(){j(M)}return R}(),children:M.category},M)})}),A.map(function(M,R){return(0,e.createComponentVNode)(2,o.Box,{p:.5,mx:-1,className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{ml:.5,color:"#dedede",children:M.name}),N.includes(M.power_path)&&(0,e.createComponentVNode)(2,o.Stack.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mr:3,textAlign:"right",grow:1,children:[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:["Cost:"," "]}),(0,e.createComponentVNode)(2,o.Box,{as:"span",bold:!0,color:"#1b945c",children:M.cost})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,o.Button,{mr:.5,disabled:M.cost>l||N.includes(M.power_path),content:"Evolve",onClick:function(){function D(){return u("purchase",{power_path:M.power_path})}return D}()})})]}),!!C&&(0,e.createComponentVNode)(2,o.Stack,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:M.description+" "+M.helptext})]},R)})]})})}},17370:function(T,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(89005),a=n(35840),t=n(25328),o=n(72253),f=n(36036),b=n(73379),y=n(98595),S=["id","amount","lineDisplay","onClick"];function k(p,g){if(p==null)return{};var V={};for(var B in p)if({}.hasOwnProperty.call(p,B)){if(g.includes(B))continue;V[B]=p[B]}return V}var h=2e3,c={bananium:"clown",tranquillite:"mime"},i=r.ExosuitFabricator=function(){function p(g,V){var B=(0,o.useBackend)(V),I=B.act,L=B.data,w=L.building,A=L.linked;return A?(0,e.createComponentVNode)(2,y.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,y.Window.Content,{className:"Exofab",children:[(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,d)}),w&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,u)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s)})]})})]})]})}):(0,e.createComponentVNode)(2,N)}return p}(),m=function(g,V){var B=(0,o.useBackend)(V),I=B.act,L=B.data,w=L.materials,A=L.capacity,x=Object.values(w).reduce(function(E,P){return E+P},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,f.Box,{color:"label",mt:"0.25rem",children:[(x/A*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(E){return(0,e.createComponentVNode)(2,l,{mt:-2,id:E,bold:E==="metal"||E==="glass",onClick:function(){function P(){return I("withdraw",{id:E})}return P}()},E)})})},d=function(g,V){var B=(0,o.useBackend)(V),I=B.act,L=B.data,w=L.curCategory,A=L.categories,x=L.designs,E=L.syncing,P=(0,o.useLocalState)(V,"searchText",""),j=P[0],M=P[1],R=(0,t.createSearch)(j,function(K){return K.name}),D=x.filter(R),W=(0,o.useLocalState)(V,"levelsModal",!1),_=W[0],U=W[1];return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,f.Dropdown,{className:"Exofab__dropdown",selected:w,options:A,onSelected:function(){function K(G){return I("category",{cat:G})}return K}()}),buttons:(0,e.createComponentVNode)(2,f.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,f.Button,{icon:"plus",content:"Queue all",onClick:function(){function K(){return I("queueall")}return K}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"info",content:"Show current tech levels",onClick:function(){function K(){return U(!0)}return K}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"unlink",color:"red",tooltip:"Disconnect from R&D network",onClick:function(){function K(){return I("unlink")}return K}()})]}),children:[(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function K(G,$){return M($)}return K}()}),D.map(function(K){return(0,e.createComponentVNode)(2,v,{design:K},K.id)}),D.length===0&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No designs found."})]})},u=function(g,V){var B=(0,o.useBackend)(V),I=B.act,L=B.data,w=L.building,A=L.buildStart,x=L.buildEnd,E=L.worldTime;return(0,e.createComponentVNode)(2,f.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,f.ProgressBar.Countdown,{start:A,current:E,end:x,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:["Building ",w,"\xA0(",(0,e.createComponentVNode)(2,b.Countdown,{current:E,timeLeft:x-E,format:function(){function P(j,M){return M.substr(3)}return P}()}),")"]})]})})})},s=function(g,V){var B=(0,o.useBackend)(V),I=B.act,L=B.data,w=L.queue,A=L.processingQueue,x=Object.entries(L.queueDeficit).filter(function(P){return P[1]<0}),E=w.reduce(function(P,j){return P+j.time},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Button,{selected:A,icon:A?"toggle-on":"toggle-off",content:"Process",onClick:function(){function P(){return I("process")}return P}()}),(0,e.createComponentVNode)(2,f.Button,{disabled:w.length===0,icon:"eraser",content:"Clear",onClick:function(){function P(){return I("unqueueall")}return P}()})]}),children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:w.length===0?(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:w.map(function(P,j){return(0,e.createComponentVNode)(2,f.Box,{color:P.notEnough&&"bad",children:[j+1,". ",P.name,j>0&&(0,e.createComponentVNode)(2,f.Button,{icon:"arrow-up",onClick:function(){function M(){return I("queueswap",{from:j+1,to:j})}return M}()}),j0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,f.Divider),"Processing time:",(0,e.createComponentVNode)(2,f.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,bold:!0,children:new Date(E/10*1e3).toISOString().substr(14,5)})]}),Object.keys(x).length>0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,f.Divider),"Lacking materials to complete:",x.map(function(P){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,l,{id:P[0],amount:-P[1],lineDisplay:!0})},P[0])})]})],0)})})},l=function(g,V){var B=(0,o.useBackend)(V),I=B.act,L=B.data,w=g.id,A=g.amount,x=g.lineDisplay,E=g.onClick,P=k(g,S),j=L.materials[w]||0,M=A||j;if(!(M<=0&&!(w==="metal"||w==="glass"))){var R=A&&A>j;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",x&&"Exofab__material--line"])},P,{children:x?(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:(0,a.classes)(["materials32x32",w])}),(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__material--amount",color:R&&"bad",ml:0,mr:1,children:M.toLocaleString("en-US")})],4):(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{basis:"content",children:(0,e.createComponentVNode)(2,f.Button,{width:"85%",color:"transparent",onClick:E,children:(0,e.createComponentVNode)(2,f.Box,{mt:1,className:(0,a.classes)(["materials32x32",w])})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--name",children:w}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--amount",children:[M.toLocaleString("en-US")," cm\xB3 (",Math.round(M/h*10)/10," ","sheets)"]})]})],4)})))}},v=function(g,V){var B=(0,o.useBackend)(V),I=B.act,L=B.data,w=g.design;return(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,f.Button,{disabled:w.notEnough||L.building,icon:"cog",content:w.name,onClick:function(){function A(){return I("build",{id:w.id})}return A}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"plus-circle",onClick:function(){function A(){return I("queue",{id:w.id})}return A}()}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design--cost",children:Object.entries(w.cost).map(function(A){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,l,{id:A[0],amount:A[1],lineDisplay:!0})},A[0])})}),(0,e.createComponentVNode)(2,f.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"clock"}),w.time>0?(0,e.createFragment)([w.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})},N=function(g,V){var B=(0,o.useBackend)(V),I=B.act,L=B.data,w=L.controllers;return(0,e.createComponentVNode)(2,y.Window,{children:(0,e.createComponentVNode)(2,y.Window.Content,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Setup Linkage",children:(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Link"})]}),w.map(function(A){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:A.addr}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:A.net_id}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:(0,e.createComponentVNode)(2,f.Button,{content:"Link",icon:"link",onClick:function(){function x(){return I("linktonetworkcontroller",{target_controller:A.addr})}return x}()})})]},A.addr)})]})})})})},C=function(g,V){var B=(0,o.useBackend)(V),I=B.act,L=B.data,w=L.tech_levels,A=(0,o.useLocalState)(V,"levelsModal",!1),x=A[0],E=A[1];return x?(0,e.createComponentVNode)(2,f.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:(0,e.createComponentVNode)(2,f.Section,{title:"Current tech levels",buttons:(0,e.createComponentVNode)(2,f.Button,{content:"Close",onClick:function(){function P(){E(!1)}return P}()}),children:(0,e.createComponentVNode)(2,f.LabeledList,{children:w.map(function(P){var j=P.name,M=P.level;return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:j,children:M},j)})})})}):null}},59128:function(T,r,n){"use strict";r.__esModule=!0,r.ExperimentConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=new Map([[0,{text:"Conscious",color:"good"}],[1,{text:"Unconscious",color:"average"}],[2,{text:"Deceased",color:"bad"}]]),b=new Map([[0,{label:"Probe",icon:"thermometer"}],[1,{label:"Dissect",icon:"brain"}],[2,{label:"Analyze",icon:"search"}]]),y=r.ExperimentConsole=function(){function S(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.open,u=m.feedback,s=m.occupant,l=m.occupant_name,v=m.occupant_status,N=function(){function p(){if(!s)return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No specimen detected."});var g=function(){function B(){return f.get(v)}return B}(),V=g();return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:V.color,children:V.text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Experiments",children:[0,1,2].map(function(B){return(0,e.createComponentVNode)(2,t.Button,{icon:b.get(B).icon,content:b.get(B).label,onClick:function(){function I(){return i("experiment",{experiment_type:B})}return I}()},B)})})]})}return p}(),C=N();return(0,e.createComponentVNode)(2,o.Window,{theme:"abductor",width:350,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:u})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Scanner",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!d,onClick:function(){function p(){return i("door")}return p}()}),children:C})]})})}return S}()},97086:function(T,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=0,b=1013,y=function(h){var c="good",i=80,m=95,d=110,u=120;return hd?c="average":h>u&&(c="bad"),c},S=r.ExternalAirlockController=function(){function k(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.chamber_pressure,s=d.exterior_status,l=d.interior_status,v=d.processing;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:205,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chamber Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:y(u),value:u,minValue:f,maxValue:b,children:[u," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!v,onClick:function(){function N(){return m("abort")}return N}()}),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:v,onClick:function(){function N(){return m("cycle_ext")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:v,onClick:function(){function N(){return m("cycle_int")}return N}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Force Exterior Door",icon:"exclamation-triangle",color:l==="open"?"red":v?"yellow":null,onClick:function(){function N(){return m("force_ext")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Force Interior Door",icon:"exclamation-triangle",color:l==="open"?"red":v?"yellow":null,onClick:function(){function N(){return m("force_int")}return N}()})]})]})]})})}return k}()},96142:function(T,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.FaxMachine=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:295,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.scan_name?"eject":"id-card",selected:c.scan_name,content:c.scan_name?c.scan_name:"-----",tooltip:c.scan_name?"Eject ID":"Insert ID",onClick:function(){function i(){return h("scan")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.authenticated?"sign-out-alt":"id-card",selected:c.authenticated,disabled:c.nologin,content:c.realauth?"Log Out":"Log In",onClick:function(){function i(){return h("auth")}return i}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fax Menu",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:c.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:c.paper?"eject":"paperclip",disabled:!c.authenticated&&!c.paper,content:c.paper?c.paper:"-----",onClick:function(){function i(){return h("paper")}return i}()}),!!c.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function i(){return h("rename")}return i}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:c.destination?c.destination:"-----",disabled:!c.authenticated,onClick:function(){function i(){return h("dept")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:c.sendError?c.sendError:"Send",disabled:!c.paper||!c.destination||!c.authenticated||c.sendError,onClick:function(){function i(){return h("send")}return i}()})})]})})]})})}return b}()},74123:function(T,r,n){"use strict";r.__esModule=!0,r.FilingCabinet=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.FilingCabinet=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=k.config,m=c.contents,d=i.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Contents",children:[!m&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"folder-open",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"The ",d," is empty."]})}),!!m&&m.slice().map(function(u){return(0,e.createComponentVNode)(2,t.Stack,{mt:.5,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"80%",children:u.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Retrieve",onClick:function(){function s(){return h("retrieve",{index:u.index})}return s}()})})]},u)})]})})})})}return b}()},83767:function(T,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=S.image,d=S.isSelected,u=S.onSelect;return(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+m,style:{"border-style":d&&"solid"||"none","border-width":"2px","border-color":"orange",padding:d&&"2px"||"4px"},onClick:u})},b=r.FloorPainter=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.availableStyles,d=i.selectedStyle,u=i.selectedDir,s=i.directionsPreview,l=i.allStylesPreview;return(0,e.createComponentVNode)(2,o.Window,{width:405,height:475,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Decal setup",children:[(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",onClick:function(){function v(){return c("cycle_style",{offset:-1})}return v}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:m,selected:d,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:!0,onSelected:function(){function v(N){return c("select_style",{style:N})}return v}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function v(){return c("cycle_style",{offset:1})}return v}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"220px",wrap:"wrap",children:m.map(function(v){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,f,{image:l[v],isSelected:d===v,onSelect:function(){function N(){return c("select_style",{style:v})}return N}()})},"{style}")})})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Direction",children:(0,e.createComponentVNode)(2,t.Table,{style:{display:"inline"},children:["north","","south"].map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[v+"west",v,v+"east"].map(function(N){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:N===""?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,f,{image:s[N],isSelected:N===u,onSelect:function(){function C(){return c("select_direction",{direction:N})}return C}()})},N)})},v)})})})})]})})})}return y}()},53424:function(T,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=function(d){return d?"("+d.join(", ")+")":"ERROR"},y=function(d,u){if(!(!d||!u)){if(d[2]!==u[2])return null;var s=Math.atan2(u[1]-d[1],u[0]-d[0]),l=Math.sqrt(Math.pow(u[1]-d[1],2)+Math.pow(u[0]-d[0],2));return{angle:(0,a.rad2deg)(s),distance:l}}},S=r.GPS=function(){function m(d,u){var s=(0,t.useBackend)(u),l=s.data,v=l.emped,N=l.active,C=l.area,p=l.position,g=l.saved;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:v?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,k,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h)}),N?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,c,{area:C,position:p})}),g&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,c,{title:"Saved Position",position:g})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,i,{height:"100%"})})],0):(0,e.createComponentVNode)(2,k)],0)})})})}return m}(),k=function(d,u){var s=d.emp;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Box,{width:"100%",height:"100%",color:"label",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:s?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),s?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},h=function(d,u){var s=(0,t.useBackend)(u),l=s.act,v=s.data,N=v.active,C=v.tag,p=v.same_z,g=(0,t.useLocalState)(u,"newTag",C),V=g[0],B=g[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",buttons:(0,e.createComponentVNode)(2,o.Button,{selected:N,icon:N?"toggle-on":"toggle-off",content:N?"On":"Off",onClick:function(){function I(){return l("toggle")}return I}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,o.Input,{width:"5rem",value:C,onEnter:function(){function I(){return l("tag",{newtag:V})}return I}(),onInput:function(){function I(L,w){return B(w)}return I}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:C===V,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function I(){return l("tag",{newtag:V})}return I}(),children:(0,e.createComponentVNode)(2,o.Icon,{name:"pen"})})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,o.Button,{selected:!p,icon:p?"compress":"expand",content:p?"Local Sector":"Global",onClick:function(){function I(){return l("same_z")}return I}()})})]})})},c=function(d,u){var s=d.title,l=d.area,v=d.position;return(0,e.createComponentVNode)(2,o.Section,{title:s||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[l&&(0,e.createFragment)([l,(0,e.createVNode)(1,"br")],0),b(v)]})})},i=function(d,u){var s=(0,t.useBackend)(u),l=s.data,v=l.position,N=l.signals;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,title:"Signals"},d,{children:(0,e.createComponentVNode)(2,o.Table,{children:N.map(function(C){return Object.assign({},C,y(v,C.position))}).map(function(C,p){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:p%2===0&&"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children:C.tag}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",color:"grey",children:C.area}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:C.distance!==void 0&&(0,e.createComponentVNode)(2,o.Box,{opacity:Math.max(1-Math.min(C.distance,100)/100,.5),children:[(0,e.createComponentVNode)(2,o.Icon,{name:C.distance>0?"arrow-right":"circle",rotation:-C.angle}),"\xA0",Math.floor(C.distance)+"m"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:b(C.position)})]},p)})})})))}},89124:function(T,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(3939),f=n(98595),b=r.GeneModder=function(){function u(s,l){var v=(0,a.useBackend)(l),N=v.data,C=N.has_seed;return(0,e.createComponentVNode)(2,f.Window,{width:950,height:650,children:[(0,e.createVNode)(1,"div","GeneModder__left",(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,d,{scrollable:!0})}),2),(0,e.createVNode)(1,"div","GeneModder__right",(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,o.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),C===0?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,y)]})}),2)]})}return u}(),y=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Genes",fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)]})},S=function(s,l){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,height:"85%",children:(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"green",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The plant DNA manipulator is missing a seed."]})})})},k=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.has_seed,g=C.seed,V=C.has_disk,B=C.disk,I,L;return p?I=(0,e.createComponentVNode)(2,t.Stack.Item,{mb:"-6px",mt:"-4px",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+g.image,style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,t.Button,{content:g.name,onClick:function(){function w(){return N("eject_seed")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function w(){return N("variant_name")}return w}()})]}):I=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:"None",onClick:function(){function w(){return N("eject_seed")}return w}()})}),V?L=B.name:L="None",(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plant Sample",children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Disk",children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:L,tooltip:"Select Empty Disk",onClick:function(){function w(){return N("select_empty_disk")}return w}()})})})]})})},h=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.disk,g=C.core_genes;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core Genes",open:!0,children:[g.map(function(V){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:V.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(p!=null&&p.can_extract),icon:"save",onClick:function(){function B(){return N("extract",{id:V.id})}return B}()})})]},V)})," ",(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract All",disabled:!(p!=null&&p.can_extract),icon:"save",onClick:function(){function V(){return N("bulk_extract_core")}return V}()})})})]},"Core Genes")},c=function(s,l){var v=(0,a.useBackend)(l),N=v.data,C=N.reagent_genes,p=N.has_reagent;return(0,e.createComponentVNode)(2,m,{title:"Reagent Genes",gene_set:C,do_we_show:p})},i=function(s,l){var v=(0,a.useBackend)(l),N=v.data,C=N.trait_genes,p=N.has_trait;return(0,e.createComponentVNode)(2,m,{title:"Trait Genes",gene_set:C,do_we_show:p})},m=function(s,l){var v=s.title,N=s.gene_set,C=s.do_we_show,p=(0,a.useBackend)(l),g=p.act,V=p.data,B=V.disk;return(0,e.createComponentVNode)(2,t.Collapsible,{title:v,open:!0,children:C?N.map(function(I){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:I.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(B!=null&&B.can_extract),icon:"save",onClick:function(){function L(){return g("extract",{id:I.id})}return L}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"times",onClick:function(){function L(){return g("remove",{id:I.id})}return L}()})})]},I)}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"No Genes Detected"})},v)},d=function(s,l){var v=s.title,N=s.gene_set,C=s.do_we_show,p=(0,a.useBackend)(l),g=p.act,V=p.data,B=V.has_seed,I=V.empty_disks,L=V.stat_disks,w=V.trait_disks,A=V.reagent_disks;return(0,e.createComponentVNode)(2,t.Section,{title:"Disks",children:[(0,e.createVNode)(1,"br"),"Empty Disks: ",I,(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{width:12,icon:"arrow-down",tooltip:"Eject an Empty disk",content:"Eject Empty Disk",onClick:function(){function x(){return g("eject_empty_disk")}return x}()}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stats",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[L.slice().sort(function(x,E){return x.display_name.localeCompare(E.display_name)}).map(function(x){return(0,e.createComponentVNode)(2,t.Stack,{mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"49%",children:x.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:25,children:[x.stat==="All"?(0,e.createComponentVNode)(2,t.Button,{content:"Replace All",tooltip:"Write disk stats to seed",disabled:!(x!=null&&x.ready)||!B,icon:"arrow-circle-down",onClick:function(){function E(){return g("bulk_replace_core",{index:x.index})}return E}()}):(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-circle-down",tooltip:"Write disk stat to seed",disabled:!x||!B,content:"Replace",onClick:function(){function E(){return g("replace",{index:x.index,stat:x.stat})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){function E(){return g("select",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){function E(){return g("eject_disk",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:2,icon:x.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){function E(){return g("set_read_only",{index:x.index,read_only:x.read_only})}return E}()})]})]},x)}),(0,e.createComponentVNode)(2,t.Button)]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Traits",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[w.slice().sort(function(x,E){return x.display_name.localeCompare(E.display_name)}).map(function(x){return(0,e.createComponentVNode)(2,t.Stack,{mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"49%",children:x.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:25,children:[(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-circle-down",disabled:!x||!x.can_insert,tooltip:"Add disk trait to seed",content:"Insert",onClick:function(){function E(){return g("insert",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){function E(){return g("select",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){function E(){return g("eject_disk",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:2,icon:x.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){function E(){return g("set_read_only",{index:x.index,read_only:x.read_only})}return E}()})]})]},x)}),(0,e.createComponentVNode)(2,t.Button)]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Reagents",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[A.slice().sort(function(x,E){return x.display_name.localeCompare(E.display_name)}).map(function(x){return(0,e.createComponentVNode)(2,t.Stack,{mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"49%",children:x.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:25,children:[(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-circle-down",disabled:!x||!x.can_insert,tooltip:"Add disk reagent to seed",content:"Insert",onClick:function(){function E(){return g("insert",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){function E(){return g("select",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){function E(){return g("eject_disk",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:2,icon:x.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){function E(){return g("set_read_only",{index:x.index,read_only:x.read_only})}return E}()})]})]},x)}),(0,e.createComponentVNode)(2,t.Button)]})})]})]})}},73053:function(T,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(89005),a=n(36036),t=n(98595),o=n(41874),f=r.GenericCrewManifest=function(){function b(y,S){return(0,e.createComponentVNode)(2,t.Window,{theme:"nologo",width:588,height:510,children:(0,e.createComponentVNode)(2,t.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:(0,e.createComponentVNode)(2,o.CrewManifest)})})})}return b}()},42914:function(T,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.GhostHudPanel=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.data,i=c.security,m=c.medical,d=c.diagnostic,u=c.radioactivity,s=c.ahud;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:207,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,b,{label:"Medical",type:"medical",is_active:m}),(0,e.createComponentVNode)(2,b,{label:"Security",type:"security",is_active:i}),(0,e.createComponentVNode)(2,b,{label:"Diagnostic",type:"diagnostic",is_active:d}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,b,{label:"Radioactivity",type:"radioactivity",is_active:u,act_on:"rads_on",act_off:"rads_off"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,b,{label:"Antag HUD",is_active:s,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return y}(),b=function(S,k){var h=(0,a.useBackend)(k),c=h.act,i=S.label,m=S.type,d=m===void 0?null:m,u=S.is_active,s=S.act_on,l=s===void 0?"hud_on":s,v=S.act_off,N=v===void 0?"hud_off":v;return(0,e.createComponentVNode)(2,t.Flex,{pt:.3,color:"label",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{pl:.5,align:"center",width:"80%",children:i}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:.6,content:u?"On":"Off",icon:u?"toggle-on":"toggle-off",selected:u,onClick:function(){function C(){return c(u?N:l,{hud_type:d})}return C}()})})]})}},25825:function(T,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.GlandDispenser=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.glands,m=i===void 0?[]:i;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:338,theme:"abductor",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(d){return(0,e.createComponentVNode)(2,t.Button,{width:"60px",height:"60px",m:.75,textAlign:"center",fontSize:"17px",lineHeight:"55px",icon:"eject",backgroundColor:d.color,content:d.amount||"0",disabled:!d.amount,onClick:function(){function u(){return h("dispense",{gland_id:d.id})}return u}()},d.id)})})})})}return b}()},10270:function(T,r,n){"use strict";r.__esModule=!0,r.GravityGen=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.GravityGen=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.charging_state,m=c.charge_count,d=c.breaker,u=c.ext_power,s=function(){function v(N){return N>0?(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"average",children:["[ ",N===1?"Charging":"Discharging"," ]"]}):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:u?"good":"bad",children:["[ ",u?"Powered":"Unpowered"," ]"]})}return v}(),l=function(){function v(N){if(N>0)return(0,e.createComponentVNode)(2,t.NoticeBox,{danger:!0,p:1.5,children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," Radiation Detected!"]})}return v}();return(0,e.createComponentVNode)(2,o.Window,{width:350,height:170,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[l(i),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Generator Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"Online":"Offline",color:d?"green":"red",px:1.5,onClick:function(){function v(){return h("breaker")}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Status",color:u?"good":"bad",children:s(i)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gravity Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:m/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})})]})})]})})})}return b}()},48657:function(T,r,n){"use strict";r.__esModule=!0,r.GuestPass=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(49148),b=r.GuestPass=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:690,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"id-card",selected:!i.showlogs,onClick:function(){function m(){return c("mode",{mode:0})}return m}(),children:"Issue Pass"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"scroll",selected:i.showlogs,onClick:function(){function m(){return c("mode",{mode:1})}return m}(),children:["Records (",i.issue_log.length,")"]})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.scan_name?"eject":"id-card",selected:i.scan_name,content:i.scan_name?i.scan_name:"-----",tooltip:i.scan_name?"Eject ID":"Insert ID",onClick:function(){function m(){return c("scan")}return m}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!i.showlogs&&(0,e.createComponentVNode)(2,t.Section,{title:"Issue Guest Pass",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Issue To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:i.giv_name?i.giv_name:"-----",disabled:!i.scan_name,onClick:function(){function m(){return c("giv_name")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reason",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:i.reason?i.reason:"-----",disabled:!i.scan_name,onClick:function(){function m(){return c("reason")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:i.duration?i.duration:"-----",disabled:!i.scan_name,onClick:function(){function m(){return c("duration")}return m}()})})]})})}),!i.showlogs&&(i.scan_name?(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:i.printmsg,disabled:!i.canprint,onClick:function(){function m(){return c("issue")}return m}()}),grantableList:i.grantableList,accesses:i.regions,selectedList:i.selectedAccess,accessMod:function(){function m(d){return c("access",{access:d})}return m}(),grantAll:function(){function m(){return c("grant_all")}return m}(),denyAll:function(){function m(){return c("clear_all")}return m}(),grantDep:function(){function m(d){return c("grant_region",{region:d})}return m}(),denyDep:function(){function m(d){return c("deny_region",{region:d})}return m}()})}):(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card",size:5,color:"gray",mb:5}),(0,e.createVNode)(1,"br"),"Please, insert ID Card"]})})})})),!!i.showlogs&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Issuance Log",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:!i.scan_name,onClick:function(){function m(){return c("print")}return m}()}),children:!!i.issue_log.length&&(0,e.createComponentVNode)(2,t.LabeledList,{children:i.issue_log.map(function(m,d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:m},d)})})||(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No logs"]})})})})]})})})}return y}()},67834:function(T,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=[1,5,10,20,30,50],b=null,y=r.HandheldChemDispenser=function(){function h(c,i){return(0,e.createComponentVNode)(2,o.Window,{width:390,height:430,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,k)]})})})}return h}(),S=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.amount,l=u.energy,v=u.maxEnergy,N=u.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l,minValue:0,maxValue:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[l," / ",v," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:f.map(function(C,p){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:s===C,content:C,onClick:function(){function g(){return d("amount",{amount:C})}return g}()})},p)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:N==="dispense",content:"Dispense",m:"0",width:"32%",onClick:function(){function C(){return d("mode",{mode:"dispense"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:N==="remove",content:"Remove",m:"0",width:"32%",onClick:function(){function C(){return d("mode",{mode:"remove"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:N==="isolate",content:"Isolate",m:"0",width:"32%",onClick:function(){function C(){return d("mode",{mode:"isolate"})}return C}()})]})})]})})})},k=function(c,i){for(var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.chemicals,l=s===void 0?[]:s,v=u.current_reagent,N=[],C=0;C<(l.length+1)%3;C++)N.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,height:"18%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:u.glass?"Drink Selector":"Chemical Selector",children:[l.map(function(p,g){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:v===p.id,content:p.title,style:{"margin-left":"2px"},onClick:function(){function V(){return d("dispense",{reagent:p.id})}return V}()},g)}),N.map(function(p,g){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},g)})]})})}},46098:function(T,r,n){"use strict";r.__esModule=!0,r.HealthSensor=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.HealthSensor=function(){function S(k,h){var c=(0,t.useBackend)(h),i=c.act,m=c.data,d=m.on,u=m.user_health,s=m.minHealth,l=m.maxHealth,v=m.alarm_health;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:125,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanning",children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:d?"On":"Off",color:d?null:"red",selected:d,onClick:function(){function N(){return i("scan_toggle")}return N}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health activation",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:2,stepPixelSize:6,minValue:s,maxValue:l,value:v,format:function(){function N(C){return(0,a.toFixed)(C,1)}return N}(),width:"80px",onDrag:function(){function N(C,p){return i("alarm_health",{alarm_health:p})}return N}()})}),u!==null&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"User health",children:(0,e.createComponentVNode)(2,o.Box,{color:y(u),bold:u>=100,children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:u})})})]})})})})}return S}(),y=function(k){return k>50?"green":k>0?"orange":"red"}},36771:function(T,r,n){"use strict";r.__esModule=!0,r.Holodeck=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Holodeck=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=(0,a.useLocalState)(k,"currentDeck",""),d=m[0],u=m[1],s=(0,a.useLocalState)(k,"showReload",!1),l=s[0],v=s[1],N=i.decks,C=i.ai_override,p=i.emagged,g=function(){function V(B){c("select_deck",{deck:B}),u(B),v(!0),setTimeout(function(){v(!1)},3e3)}return V}();return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:[l&&(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Holodeck Control System",children:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"b",null,"Currently Loaded Program:",16)," ",d]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Available Programs",children:[N.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{width:15.5,color:"transparent",content:V,selected:V===d,onClick:function(){function B(){return g(V)}return B}()},V)}),(0,e.createVNode)(1,"hr",null,null,1,{color:"gray"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!C&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Override Protocols",children:(0,e.createComponentVNode)(2,t.Button,{content:p?"Turn On":"Turn Off",color:p?"good":"bad",onClick:function(){function V(){return c("ai_override")}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety Protocols",children:(0,e.createComponentVNode)(2,t.Box,{color:p?"bad":"good",children:[p?"Off":"On",!!p&&(0,e.createComponentVNode)(2,t.Button,{ml:9.5,width:15.5,color:"red",content:"Wildlife Simulation",onClick:function(){function V(){return c("wildlifecarp")}return V}()})]})})]})]})})]})})]})}return y}(),b=function(S,k){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"white",children:(0,e.createVNode)(1,"h1",null,"\xA0Recalibrating projection apparatus.\xA0",16)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,"Please, wait for 3 seconds.",16)})]})}},25471:function(T,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.Instrument=function(){function c(i,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,h)]})})]})}return c}(),y=function(i,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,l=s.help;if(l)return(0,e.createComponentVNode)(2,o.Modal,{maxWidth:"75%",height:window.innerHeight*.75+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{height:"100%",title:"Help",level:"2",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{px:"0.5rem",mt:"-0.5rem",children:[(0,e.createVNode)(1,"h1",null,"Making a Song",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen: "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen: "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"h1",null,"Instrument Advanced Settings",16),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Type:"}),(0,e.createTextVNode)("\xA0Whether the instrument is legacy or synthesized."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Legacy instruments have a collection of sounds that are selectively used depending on the note to play."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Synthesized instruments use a base sound and change its pitch to match the note to play.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Current:"}),(0,e.createTextVNode)("\xA0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),(0,e.createTextVNode)("\xA0The pitch to apply to all notes of the song.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain Mode:"}),(0,e.createTextVNode)("\xA0How a played note fades out."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Linear sustain means a note will fade out at a constant rate."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Exponential sustain means a note will fade out at an exponential rate, sounding smoother.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),(0,e.createTextVNode)("\xA0The volume threshold at which a note is fully stopped.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),(0,e.createTextVNode)("\xA0Whether the last note should be sustained indefinitely.")],4)],4),(0,e.createComponentVNode)(2,o.Button,{color:"grey",content:"Close",onClick:function(){function v(){return u("help")}return v}()})]})})})},S=function(i,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,l=s.lines,v=s.playing,N=s.repeat,C=s.maxRepeats,p=s.tempo,g=s.minTempo,V=s.maxTempo,B=s.tickLag,I=s.volume,L=s.minVolume,w=s.maxVolume,A=s.ready;return(0,e.createComponentVNode)(2,o.Section,{title:"Instrument",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"info",content:"Help",onClick:function(){function x(){return u("help")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function x(){return u("newsong")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function x(){return u("import")}return x}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Playback",children:[(0,e.createComponentVNode)(2,o.Button,{selected:v,disabled:l.length===0||N<0,icon:"play",content:"Play",onClick:function(){function x(){return u("play")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!v,icon:"stop",content:"Stop",onClick:function(){function x(){return u("stop")}return x}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:C,value:N,stepPixelSize:59,onChange:function(){function x(E,P){return u("repeat",{new:P})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tempo",children:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:p>=V,content:"-",as:"span",mr:"0.5rem",onClick:function(){function x(){return u("tempo",{new:p+B})}return x}()}),(0,a.round)(600/p)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:p<=g,content:"+",as:"span",ml:"0.5rem",onClick:function(){function x(){return u("tempo",{new:p-B})}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:L,maxValue:w,value:I,stepPixelSize:6,onDrag:function(){function x(E,P){return u("setvolume",{new:P})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:A?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Ready"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,e.createComponentVNode)(2,k)]})},k=function(i,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,l=s.allowedInstrumentNames,v=s.instrumentLoaded,N=s.instrument,C=s.canNoteShift,p=s.noteShift,g=s.noteShiftMin,V=s.noteShiftMax,B=s.sustainMode,I=s.sustainLinearDuration,L=s.sustainExponentialDropoff,w=s.legacy,A=s.sustainDropoffVolume,x=s.sustainHeldNote,E,P;return B===1?(E="Linear",P=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:I,step:.5,stepPixelSize:85,format:function(){function j(M){return(0,a.round)(M*100)/100+" seconds"}return j}(),onChange:function(){function j(M,R){return u("setlinearfalloff",{new:R/10})}return j}()})):B===2&&(E="Exponential",P=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:L,step:.01,format:function(){function j(M){return(0,a.round)(M*1e3)/1e3+"% per decisecond"}return j}(),onChange:function(){function j(M,R){return u("setexpfalloff",{new:R})}return j}()})),l.sort(),(0,e.createComponentVNode)(2,o.Box,{my:-1,children:(0,e.createComponentVNode)(2,o.Collapsible,{mt:"1rem",mb:"0",title:"Advanced",children:(0,e.createComponentVNode)(2,o.Section,{mt:-1,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:w?"Legacy":"Synthesized"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current",children:v?(0,e.createComponentVNode)(2,o.Dropdown,{options:l,selected:N,width:"50%",onSelected:function(){function j(M){return u("switchinstrument",{name:M})}return j}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!w&&C)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:g,maxValue:V,value:p,stepPixelSize:2,format:function(){function j(M){return M+" keys / "+(0,a.round)(M/12*100)/100+" octaves"}return j}(),onChange:function(){function j(M,R){return u("setnoteshift",{new:R})}return j}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:E,onSelected:function(){function j(M){return u("setsustainmode",{new:M})}return j}()}),P]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume Dropoff Threshold",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:.01,maxValue:100,value:A,stepPixelSize:6,onChange:function(){function j(M,R){return u("setdropoffvolume",{new:R})}return j}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,e.createComponentVNode)(2,o.Button,{selected:x,icon:x?"toggle-on":"toggle-off",content:x?"Yes":"No",onClick:function(){function j(){return u("togglesustainhold")}return j}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function j(){return u("reset")}return j}()})]})})})},h=function(i,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,l=s.playing,v=s.lines,N=s.editing;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Editor",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!N||l,icon:"plus",content:"Add Line",onClick:function(){function C(){return u("newline",{line:v.length+1})}return C}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!N,icon:N?"chevron-up":"chevron-down",onClick:function(){function C(){return u("edit")}return C}()})],4),children:!!N&&(v.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:v.map(function(C,p){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:p+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:l,icon:"pen",onClick:function(){function g(){return u("modifyline",{line:p+1})}return g}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:l,icon:"trash",onClick:function(){function g(){return u("deleteline",{line:p+1})}return g}()})],4),children:C},p)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},13618:function(T,r,n){"use strict";r.__esModule=!0,r.KeyComboModal=void 0;var e=n(89005),a=n(70611),t=n(72253),o=n(36036),f=n(98595),b=n(19203),y=n(51057),S=function(d){return d.key!==a.KEY.Alt&&d.key!==a.KEY.Control&&d.key!==a.KEY.Shift&&d.key!==a.KEY.Escape},k={DEL:"Delete",DOWN:"South",END:"Southwest",HOME:"Northwest",INSERT:"Insert",LEFT:"West",PAGEDOWN:"Southeast",PAGEUP:"Northeast",RIGHT:"East",SPACEBAR:"Space",UP:"North"},h=3,c=function(d){var u="";if(d.altKey&&(u+="Alt"),d.ctrlKey&&(u+="Ctrl"),d.shiftKey&&!(d.keyCode>=48&&d.keyCode<=57)&&(u+="Shift"),d.location===h&&(u+="Numpad"),S(d))if(d.shiftKey&&d.keyCode>=48&&d.keyCode<=57){var s=d.keyCode-48;u+="Shift"+s}else{var l=d.key.toUpperCase();u+=k[l]||l}return u},i=r.KeyComboModal=function(){function m(d,u){var s=(0,t.useBackend)(u),l=s.act,v=s.data,N=v.init_value,C=v.large_buttons,p=v.message,g=p===void 0?"":p,V=v.title,B=v.timeout,I=(0,t.useLocalState)(u,"input",N),L=I[0],w=I[1],A=(0,t.useLocalState)(u,"binding",!0),x=A[0],E=A[1],P=function(){function R(D){if(!x){D.key===a.KEY.Enter&&l("submit",{entry:L}),(0,a.isEscape)(D.key)&&l("cancel");return}if(D.preventDefault(),S(D)){j(c(D)),E(!1);return}else if(D.key===a.KEY.Escape){j(N),E(!1);return}}return R}(),j=function(){function R(D){D!==L&&w(D)}return R}(),M=130+(g.length>30?Math.ceil(g.length/3):0)+(g.length&&C?5:0);return(0,e.createComponentVNode)(2,f.Window,{title:V,width:240,height:M,children:[B&&(0,e.createComponentVNode)(2,y.Loader,{value:B}),(0,e.createComponentVNode)(2,f.Window.Content,{onKeyDown:function(){function R(D){P(D)}return R}(),children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Autofocus),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:g})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:x,content:x&&x!==null?"Awaiting input...":""+L,width:"100%",textAlign:"center",onClick:function(){function R(){j(N),E(!0)}return R}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,b.InputButtons,{input:L})})]})]})})]})}return m}()},35655:function(T,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.KeycardAuth=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=(0,e.createComponentVNode)(2,t.Section,{title:"Keycard Authentication Device",children:(0,e.createComponentVNode)(2,t.Box,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(!c.swiping&&!c.busy)return(0,e.createComponentVNode)(2,o.Window,{width:540,height:280,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[i,(0,e.createComponentVNode)(2,t.Section,{title:"Choose Action",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Red Alert",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:!c.redAvailable,onClick:function(){function d(){return h("triggerevent",{triggerevent:"Red Alert"})}return d}(),content:"Red Alert"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ERT",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",onClick:function(){function d(){return h("triggerevent",{triggerevent:"Emergency Response Team"})}return d}(),content:"Call ERT"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Maint Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function d(){return h("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return d}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function d(){return h("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})}return d}(),content:"Revoke"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Station-Wide Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function d(){return h("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})}return d}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function d(){return h("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})}return d}(),content:"Revoke"})]})]})})]})});var m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!c.hasSwiped&&!c.ertreason&&c.event==="Emergency Response Team"?m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):c.hasConfirm?m=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):c.isRemote?m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):c.hasSwiped&&(m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Waiting for second person to confirm..."})),(0,e.createComponentVNode)(2,o.Window,{width:540,height:265,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[i,c.event==="Emergency Response Team"&&(0,e.createComponentVNode)(2,t.Section,{title:"Reason for ERT Call",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{color:c.ertreason?"":"red",icon:c.ertreason?"check":"pencil-alt",content:c.ertreason?c.ertreason:"-----",disabled:c.busy,onClick:function(){function d(){return h("ert")}return d}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:c.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:c.busy||c.hasConfirm,onClick:function(){function d(){return h("reset")}return d}()}),children:m})]})})}return b}()},62955:function(T,r,n){"use strict";r.__esModule=!0,r.KitchenMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(62411),b=r.KitchenMachine=function(){function S(k,h){var c=(0,a.useBackend)(h),i=c.data,m=c.config,d=i.ingredients,u=i.operating,s=m.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Operating,{operating:u,name:s}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,y)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Ingredients",children:(0,e.createComponentVNode)(2,t.Table,{className:"Ingredient__Table",children:d.map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{tr:5,children:[(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:l.name}),2),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:[l.amount," ",l.units]}),2)]},l.name)})})})})]})})})}return S}(),y=function(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.inactive,u=m.tooltip;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:d,tooltip:d?u:"",tooltipPosition:"bottom",content:"Activate",onClick:function(){function s(){return i("cook")}return s}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:d,tooltip:d?u:"",tooltipPosition:"bottom",content:"Eject Contents",onClick:function(){function s(){return i("eject")}return s}()})})]})})}},9525:function(T,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.LawManager=function(){function k(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.isAdmin,s=d.isSlaved,l=d.isMalf,v=d.isAIMalf,N=d.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:l?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(u&&s)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",s,"."]}),!!(l||v)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:N===0,onClick:function(){function C(){return m("set_view",{set_view:0})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:N===1,onClick:function(){function C(){return m("set_view",{set_view:1})}return C}()})]}),N===0&&(0,e.createComponentVNode)(2,b),N===1&&(0,e.createComponentVNode)(2,y)]})})}return k}(),b=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.has_zeroth_laws,s=d.zeroth_laws,l=d.has_ion_laws,v=d.ion_laws,N=d.ion_law_nr,C=d.has_inherent_laws,p=d.inherent_laws,g=d.has_supplied_laws,V=d.supplied_laws,B=d.channels,I=d.channel,L=d.isMalf,w=d.isAdmin,A=d.zeroth_law,x=d.ion_law,E=d.inherent_law,P=d.supplied_law,j=d.supplied_law_position;return(0,e.createFragment)([!!u&&(0,e.createComponentVNode)(2,S,{title:"ERR_NULL_VALUE",laws:s,ctx:c}),!!l&&(0,e.createComponentVNode)(2,S,{title:N,laws:v,ctx:c}),!!C&&(0,e.createComponentVNode)(2,S,{title:"Inherent",laws:p,ctx:c}),!!g&&(0,e.createComponentVNode)(2,S,{title:"Supplied",laws:V,ctx:c}),(0,e.createComponentVNode)(2,t.Section,{title:"Statement Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Statement Channel",children:B.map(function(M){return(0,e.createComponentVNode)(2,t.Button,{content:M.channel,selected:M.channel===I,onClick:function(){function R(){return m("law_channel",{law_channel:M.channel})}return R}()},M.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function M(){return m("state_laws")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function M(){return m("notify_laws")}return M}()})})]})}),!!L&&(0,e.createComponentVNode)(2,t.Section,{title:"Add Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"60%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Actions"})]}),!!(w&&!u)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Zero"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:A}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_zeroth_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_zeroth_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ion"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:x}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_ion_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_ion_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Inherent"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:E}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_inherent_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_inherent_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Supplied"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:P}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:j,onClick:function(){function M(){return m("change_supplied_law_position")}return M}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_supplied_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_supplied_law")}return M}()})]})]})]})})],0)},y=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:u.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name+" - "+s.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function l(){return m("transfer_laws",{transfer_laws:s.ref})}return l}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.laws.has_ion_laws>0&&s.laws.ion_laws.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.index,children:l.law},l.index)}),s.laws.has_zeroth_laws>0&&s.laws.zeroth_laws.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.index,children:l.law},l.index)}),s.laws.has_inherent_laws>0&&s.laws.inherent_laws.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.index,children:l.law},l.index)}),s.laws.has_supplied_laws>0&&s.laws.inherent_laws.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.index,children:l.law},l.index)})]})},s.name)})})},S=function(h,c){var i=(0,a.useBackend)(h.ctx),m=i.act,d=i.data,u=d.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:h.title+" Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"69%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"21%",children:"State?"})]}),h.laws.map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.index}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.law}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:s.state?"Yes":"No",selected:s.state,onClick:function(){function l(){return m("state_law",{ref:s.ref,state_law:s.state?0:1})}return l}()}),!!u&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function l(){return m("edit_law",{edit_law:s.ref})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function l(){return m("delete_law",{delete_law:s.ref})}return l}()})],4)]})]},s.law)})]})})}},85066:function(T,r,n){"use strict";r.__esModule=!0,r.LibraryComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=r.LibraryComputer=function(){function N(C,p){return(0,e.createComponentVNode)(2,o.Window,{width:1050,height:600,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)]})})]})}return N}(),y=function(C,p){var g=(0,a.useBackend)(p),V=g.act,B=g.data,I=C.args,L=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:I.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:I.summary}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[I.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",verticalAlign:"top"})]}),!I.isProgrammatic&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Categories",children:I.categories.join(", ")})]}),(0,e.createVNode)(1,"br"),L===I.ckey&&(0,e.createComponentVNode)(2,t.Button,{content:"Delete Book",icon:"trash",color:"red",disabled:I.isProgrammatic,onClick:function(){function w(){return V("delete_book",{bookid:I.id,user_ckey:L})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Report Book",icon:"flag",color:"red",disabled:I.isProgrammatic,onClick:function(){function w(){return(0,f.modalOpen)(p,"report_book",{bookid:I.id})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rate Book",icon:"star",color:"caution",disabled:I.isProgrammatic,onClick:function(){function w(){return(0,f.modalOpen)(p,"rate_info",{bookid:I.id})}return w}()})]})},S=function(C,p){var g=(0,a.useBackend)(p),V=g.act,B=g.data,I=C.args,L=B.selected_report,w=B.report_categories,A=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",title:"Report this book for Rule Violations",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reasons",children:(0,e.createComponentVNode)(2,t.Box,{children:w.map(function(x,E){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:x.category_id===L,onClick:function(){function P(){return V("set_report",{report_type:x.category_id})}return P}()}),(0,e.createVNode)(1,"br")],4,E)})})})]}),(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,icon:"paper-plane",content:"Submit Report",onClick:function(){function x(){return V("submit_report",{bookid:I.id,user_ckey:A})}return x}()})]})},k=function(C,p){var g=(0,a.useBackend)(p),V=g.act,B=g.data,I=B.selected_rating,L=Array(10).fill().map(function(w,A){return 1+A});return(0,e.createComponentVNode)(2,t.Stack,{children:[L.map(function(w,A){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{bold:!0,icon:"star",color:I>=w?"caution":"default",onClick:function(){function x(){return V("set_rating",{rating_value:w})}return x}()})},A)}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,ml:2,fontSize:"150%",children:[I+"/10",(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"top"})]})]})},h=function(C,p){var g=(0,a.useBackend)(p),V=g.act,B=g.data,I=C.args,L=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:I.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[I.current_rating?I.current_rating:0,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Ratings",children:I.total_ratings?I.total_ratings:0})]}),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,t.Button.Confirm,{mt:2,content:"Submit",icon:"paper-plane",onClick:function(){function w(){return V("rate_book",{bookid:I.id,user_ckey:L})}return w}()})]})},c=function(C,p){var g=(0,a.useBackend)(p),V=g.data,B=(0,a.useLocalState)(p,"tabIndex",0),I=B[0],L=B[1],w=V.login_state;return(0,e.createComponentVNode)(2,t.Stack.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===0,onClick:function(){function A(){return L(0)}return A}(),children:"Book Archives"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===1,onClick:function(){function A(){return L(1)}return A}(),children:"Corporate Literature"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===2,onClick:function(){function A(){return L(2)}return A}(),children:"Upload Book"}),w===1&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===3,onClick:function(){function A(){return L(3)}return A}(),children:"Patron Manager"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===4,onClick:function(){function A(){return L(4)}return A}(),children:"Inventory"})]})})},i=function(C,p){var g=(0,a.useLocalState)(p,"tabIndex",0),V=g[0];switch(V){case 0:return(0,e.createComponentVNode)(2,d);case 1:return(0,e.createComponentVNode)(2,u);case 2:return(0,e.createComponentVNode)(2,s);case 3:return(0,e.createComponentVNode)(2,l);case 4:return(0,e.createComponentVNode)(2,v);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},m=function(C,p){var g=(0,a.useBackend)(p),V=g.act,B=g.data,I=B.searchcontent,L=B.book_categories,w=B.user_ckey,A=[];return L.map(function(x){return A[x.description]=x.category_id}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"edit",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Inputs"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:I.title||"Input Title",onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_search_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:I.author||"Input Author",onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_search_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Ratings",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:1,width:"min-content",content:I.ratingmin,onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_search_ratingmin")}return x}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:"To"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:1,width:"min-content",content:I.ratingmax,onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_search_ratingmax")}return x}()})})]})})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"clipboard-list",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Book Categories"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Dropdown,{mt:.6,width:"190px",options:L.map(function(x){return x.description}),onSelected:function(){function x(E){return V("toggle_search_category",{category_id:A[E]})}return x}()})})})}),(0,e.createVNode)(1,"br"),L.filter(function(x){return I.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:!0,icon:"unlink",onClick:function(){function E(){return V("toggle_search_category",{category_id:x.category_id})}return E}()},x.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Actions"]}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Search",icon:"eraser",onClick:function(){function x(){return V("clear_search")}return x}()}),I.ckey?(0,e.createComponentVNode)(2,t.Button,{mb:.5,content:"Stop Showing My Books",color:"bad",icon:"search",onClick:function(){function x(){return V("clear_ckey_search")}return x}()}):(0,e.createComponentVNode)(2,t.Button,{content:"Find My Books",icon:"search",onClick:function(){function x(){return V("find_users_books",{user_ckey:w})}return x}()})]})]})},d=function(C,p){var g=(0,a.useBackend)(p),V=g.act,B=g.data,I=B.external_booklist,L=B.archive_pagenumber,w=B.num_pages,A=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Access",buttons:(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",disabled:L===1,onClick:function(){function x(){return V("deincrementpagemax")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",disabled:L===1,onClick:function(){function x(){return V("deincrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{bold:!0,content:L,onClick:function(){function x(){return(0,f.modalOpen)(p,"setpagenumber")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",disabled:L===w,onClick:function(){function x(){return V("incrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",disabled:L===w,onClick:function(){function x(){return V("incrementpagemax")}return x}()})],4),children:[(0,e.createComponentVNode)(2,m),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ratings"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Category"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),I.map(function(x){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:x.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:.5}),x.title.length>45?x.title.substr(0,45)+"...":x.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:x.author.length>30?x.author.substr(0,30)+"...":x.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[x.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",ml:.5,color:"yellow",verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:x.categories.join(", ").substr(0,45)}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[A===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function E(){return V("order_external_book",{bookid:x.id})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function E(){return(0,f.modalOpen)(p,"expand_info",{bookid:x.id})}return E}()})]})]},x.id)})]})]})},u=function(C,p){var g=(0,a.useBackend)(p),V=g.act,B=g.data,I=B.programmatic_booklist,L=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Corporate Book Catalog",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),I.map(function(w,A){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:2}),w.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[L===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function x(){return V("order_programmatic_book",{bookid:w.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function x(){return(0,f.modalOpen)(p,"expand_info",{bookid:w.id})}return x}()})]})]},A)})]})})},s=function(C,p){var g=(0,a.useBackend)(p),V=g.act,B=g.data,I=B.selectedbook,L=B.book_categories,w=B.user_ckey,A=[];return L.map(function(x){return A[x.description]=x.category_id}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Upload",buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,width:9.5,icon:"upload",disabled:I.copyright,content:"Upload Book",onClick:function(){function x(){return V("uploadbook",{user_ckey:w})}return x}()}),children:[I.copyright?(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"WARNING: You cannot upload or modify the attributes of a copyrighted book"}):(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{ml:15,mb:3,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:2}),"Book Uploader"]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:I.copyright,content:I.title,onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_selected_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:I.copyright,content:I.author,onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_selected_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"240px",options:L.map(function(x){return x.description}),onSelected:function(){function x(E){return V("toggle_upload_category",{category_id:A[E]})}return x}()})})})]}),(0,e.createVNode)(1,"br"),L.filter(function(x){return I.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,disabled:I.copyright,selected:!0,icon:"unlink",onClick:function(){function E(){return V("toggle_upload_category",{category_id:x.category_id})}return E}()},x.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:75,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",disabled:I.copyright,content:"Edit Summary",onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_selected_summary")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:I.summary})]})})]})]})},l=function(C,p){var g=(0,a.useBackend)(p),V=g.act,B=g.data,I=B.checkout_data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Checked Out Books",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Patron"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),I.map(function(L,w){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-tag"}),L.patron_name]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:L.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.timeleft>=0?L.timeleft:"LATE"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:(0,e.createComponentVNode)(2,t.Button,{content:"Mark Lost",icon:"flag",color:"bad",disabled:L.timeleft>=0,onClick:function(){function A(){return V("reportlost",{libraryid:L.libraryid})}return A}()})})]},w)})]})})},v=function(C,p){var g=(0,a.useBackend)(p),V=g.act,B=g.data,I=B.inventory_list;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Library Inventory",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"LIB ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"})]}),I.map(function(L,w){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.libraryid}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"})," ",L.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:L.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:L.checked_out?"Checked Out":"Available"})]},w)})]})})};(0,f.modalRegisterBodyOverride)("expand_info",y),(0,f.modalRegisterBodyOverride)("report_book",S),(0,f.modalRegisterBodyOverride)("rate_info",h)},9516:function(T,r,n){"use strict";r.__esModule=!0,r.LibraryManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=r.LibraryManager=function(){function c(i,m){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:600,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,y)})]})}return c}(),y=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.pagestate;switch(l){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,h);case 3:return(0,e.createComponentVNode)(2,k);default:return"WE SHOULDN'T BE HERE!"}},S=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-shield",verticalAlign:"middle",size:3,mr:"1rem"}),"Library Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",width:"auto",color:"danger",content:"Delete Book by SSID",onClick:function(){function l(){return(0,f.modalOpen)(m,"specify_ssid_delete")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",width:"auto",color:"danger",content:"Delete All Books By CKEY",onClick:function(){function l(){return(0,f.modalOpen)(m,"specify_ckey_delete")}return l}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Books By CKEY",onClick:function(){function l(){return(0,f.modalOpen)(m,"specify_ckey_search")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Reported Books",onClick:function(){function l(){return u("view_reported_books")}return l}()})]})},k=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.reports;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-secret",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"All Reported Books",(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function v(){return u("return")}return v}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Uploader CKEY"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Report Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reporter Ckey"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),l.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:v.uploader_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),v.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:v.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:v.report_description}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:v.reporter_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",onClick:function(){function N(){return u("delete_book",{bookid:v.id})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Unflag",icon:"flag",color:"caution",onClick:function(){function N(){return u("unflag_book",{bookid:v.id})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function N(){return u("view_book",{bookid:v.id})}return N}()})]})]},v.id)})]})})},h=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.ckey,v=s.booklist;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"Books uploaded by ",l,(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function N(){return u("return")}return N}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),v.map(function(N){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:N.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),N.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:N.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",color:"bad",onClick:function(){function C(){return u("delete_book",{bookid:N.id})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function C(){return u("view_book",{bookid:N.id})}return C}()})]})]},N.id)})]})})}},90447:function(T,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(36036),f=n(72253),b=n(92986),y=n(98595),S=r.ListInputModal=function(){function c(i,m){var d=(0,f.useBackend)(m),u=d.act,s=d.data,l=s.items,v=l===void 0?[]:l,N=s.message,C=N===void 0?"":N,p=s.init_value,g=s.timeout,V=s.title,B=(0,f.useLocalState)(m,"selected",v.indexOf(p)),I=B[0],L=B[1],w=(0,f.useLocalState)(m,"searchBarVisible",v.length>10),A=w[0],x=w[1],E=(0,f.useLocalState)(m,"searchQuery",""),P=E[0],j=E[1],M=function(){function $(Q){var J=K.length-1;if(Q===b.KEY_DOWN)if(I===null||I===J){var ie;L(0),(ie=document.getElementById("0"))==null||ie.scrollIntoView()}else{var ne;L(I+1),(ne=document.getElementById((I+1).toString()))==null||ne.scrollIntoView()}else if(Q===b.KEY_UP)if(I===null||I===0){var se;L(J),(se=document.getElementById(J.toString()))==null||se.scrollIntoView()}else{var Ce;L(I-1),(Ce=document.getElementById((I-1).toString()))==null||Ce.scrollIntoView()}}return $}(),R=function(){function $(Q){Q!==I&&L(Q)}return $}(),D=function(){function $(){x(!1),x(!0)}return $}(),W=function(){function $(Q){var J=String.fromCharCode(Q),ie=v.find(function(Ce){return Ce==null?void 0:Ce.toLowerCase().startsWith(J==null?void 0:J.toLowerCase())});if(ie){var ne,se=v.indexOf(ie);L(se),(ne=document.getElementById(se.toString()))==null||ne.scrollIntoView()}}return $}(),_=function(){function $(Q){var J;Q!==P&&(j(Q),L(0),(J=document.getElementById("0"))==null||J.scrollIntoView())}return $}(),U=function(){function $(){x(!A),j("")}return $}(),K=v.filter(function($){return $==null?void 0:$.toLowerCase().includes(P.toLowerCase())}),G=330+Math.ceil(C.length/3);return A||setTimeout(function(){var $;return($=document.getElementById(I.toString()))==null?void 0:$.focus()},1),(0,e.createComponentVNode)(2,y.Window,{title:V,width:325,height:G,children:[g&&(0,e.createComponentVNode)(2,a.Loader,{value:g}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function $(Q){var J=window.event?Q.which:Q.keyCode;(J===b.KEY_DOWN||J===b.KEY_UP)&&(Q.preventDefault(),M(J)),J===b.KEY_ENTER&&(Q.preventDefault(),u("submit",{entry:K[I]})),!A&&J>=b.KEY_A&&J<=b.KEY_Z&&(Q.preventDefault(),W(J)),J===b.KEY_ESCAPE&&(Q.preventDefault(),u("cancel"))}return $}(),children:(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{compact:!0,icon:A?"search":"font",selected:!0,tooltip:A?"Search Mode. Type to search or use arrow keys to select manually.":"Hotkey Mode. Type a letter to jump to the first match. Enter to select.",tooltipPosition:"left",onClick:function(){function $(){return U()}return $}()}),className:"ListInput__Section",fill:!0,title:C,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,k,{filteredItems:K,onClick:R,onFocusSearch:D,searchBarVisible:A,selected:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:A&&(0,e.createComponentVNode)(2,h,{filteredItems:K,onSearch:_,searchQuery:P,selected:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:K[I]})})]})})})]})}return c}(),k=function(i,m){var d=(0,f.useBackend)(m),u=d.act,s=i.filteredItems,l=i.onClick,v=i.onFocusSearch,N=i.searchBarVisible,C=i.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:s.map(function(p,g){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:g,onClick:function(){function V(){return l(g)}return V}(),onDblClick:function(){function V(B){B.preventDefault(),u("submit",{entry:s[C]})}return V}(),onKeyDown:function(){function V(B){var I=window.event?B.which:B.keyCode;N&&I>=b.KEY_A&&I<=b.KEY_Z&&(B.preventDefault(),v())}return V}(),selected:g===C,style:{animation:"none",transition:"none"},children:p.replace(/^\w/,function(V){return V.toUpperCase()})},g)})})},h=function(i,m){var d=(0,f.useBackend)(m),u=d.act,s=i.filteredItems,l=i.onSearch,v=i.searchQuery,N=i.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function C(p){p.preventDefault(),u("submit",{entry:s[N]})}return C}(),onInput:function(){function C(p,g){return l(g)}return C}(),placeholder:"Search...",value:v})}},77613:function(T,r,n){"use strict";r.__esModule=!0,r.MODsuitContent=r.MODsuit=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(I,L){var w=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(L),P=E.act;return(0,e.createComponentVNode)(2,t.NumberInput,{value:A,minValue:-50,maxValue:50,stepPixelSize:5,width:"39px",onChange:function(){function j(M,R){return P("configure",{key:w,value:R,ref:x})}return j}()})},b=function(I,L){var w=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(L),P=E.act;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:A,onClick:function(){function j(){return P("configure",{key:w,value:!A,ref:x})}return j}()})},y=function(I,L){var w=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(L),P=E.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"paint-brush",onClick:function(){function j(){return P("configure",{key:w,ref:x})}return j}()}),(0,e.createComponentVNode)(2,t.ColorBox,{color:A,mr:.5})],4)},S=function(I,L){var w=I.name,A=I.value,x=I.values,E=I.module_ref,P=(0,a.useBackend)(L),j=P.act;return(0,e.createComponentVNode)(2,t.Dropdown,{displayText:A,options:x,onSelected:function(){function M(R){return j("configure",{key:w,value:R,ref:E})}return M}()})},k=function(I,L){var w=I.name,A=I.display_name,x=I.type,E=I.value,P=I.values,j=I.module_ref,M={number:(0,e.normalizeProps)((0,e.createComponentVNode)(2,f,Object.assign({},I))),bool:(0,e.normalizeProps)((0,e.createComponentVNode)(2,b,Object.assign({},I))),color:(0,e.normalizeProps)((0,e.createComponentVNode)(2,y,Object.assign({},I))),list:(0,e.normalizeProps)((0,e.createComponentVNode)(2,S,Object.assign({},I)))};return(0,e.createComponentVNode)(2,t.Box,{children:[A,": ",M[x]]})},h=function(I,L){var w=I.active,A=I.userradiated,x=I.usertoxins,E=I.usermaxtoxins,P=I.threatlevel;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Level",color:w&&A?"bad":"good",children:w&&A?"IRRADIATED!":"RADIATION-FREE"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxins Level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?x/E:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:x})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Hazard Level",color:w&&P?"bad":"good",bold:!0,children:w&&P?P:0})})]})},c=function(I,L){var w=I.active,A=I.userhealth,x=I.usermaxhealth,E=I.userbrute,P=I.userburn,j=I.usertoxin,M=I.useroxy;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?A/x:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?A:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?E/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?E:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?P/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?P:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?j/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?j:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?M/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?M:0})})})})]})],4)},i=function(I,L){var w=I.active,A=I.statustime,x=I.statusid,E=I.statushealth,P=I.statusmaxhealth,j=I.statusbrute,M=I.statusburn,R=I.statustoxin,D=I.statusoxy,W=I.statustemp,_=I.statusnutrition,U=I.statusfingerprints,K=I.statusdna,G=I.statusviruses;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Time",children:w?A:"00:00:00"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Number",children:w?x||"0":"???"})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?E/P:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?E:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?j/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?j:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?M/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?M:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?R/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:R})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?D/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:D})})})})]}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Body Temperature",children:w?W:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Nutrition Status",children:w?_:0})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"DNA",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fingerprints",children:w?U:"???"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:w?K:"???"})]})}),!!w&&!!G&&(0,e.createComponentVNode)(2,t.Section,{title:"Diseases",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"signature",tooltip:"Name",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"wind",tooltip:"Type",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Stage",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"flask",tooltip:"Cure",tooltipPosition:"top"})})]}),G.map(function($){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:$.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:$.type}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[$.stage,"/",$.maxstage]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:$.cure})]},$.name)})]})})],0)},m={rad_counter:h,health_analyzer:c,status_readout:i},d=function(){return(0,e.createComponentVNode)(2,t.Section,{align:"center",fill:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{color:"red",name:"exclamation-triangle",size:15}),(0,e.createComponentVNode)(2,t.Box,{fontSize:"30px",color:"red",children:"ERROR: INTERFACE UNRESPONSIVE"})]})},u=function(I,L){var w=(0,a.useBackend)(L),A=w.act,x=w.data;return(0,e.createComponentVNode)(2,t.Dimmer,{children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"16px",color:"blue",children:"SUIT UNPOWERED"})})})},s=function(I,L){var w=I.configuration_data,A=I.module_ref,x=Object.keys(w);return(0,e.createComponentVNode)(2,t.Dimmer,{backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[x.map(function(E){var P=w[E];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,k,{name:E,display_name:P.display_name,type:P.type,value:P.value,values:P.values,module_ref:A})},P.key)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:I.onExit,icon:"times",textAlign:"center",children:"Exit"})})})]})})},l=function(I){switch(I){case 1:return"Use";case 2:return"Toggle";case 3:return"Select"}},v=function(I,L){var w=(0,a.useBackend)(L),A=w.act,x=w.data,E=x.active,P=x.malfunctioning,j=x.locked,M=x.open,R=x.selected_module,D=x.complexity,W=x.complexity_max,_=x.wearer_name,U=x.wearer_job,K=P?"Malfunctioning":E?"Active":"Inactive";return(0,e.createComponentVNode)(2,t.Section,{title:"Parameters",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:E?"Deactivate":"Activate",onClick:function(){function G(){return A("activate")}return G}()}),children:K}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:j?"lock-open":"lock",content:j?"Unlock":"Lock",onClick:function(){function G(){return A("lock")}return G}()}),children:j?"Locked":"Unlocked"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover",children:M?"Open":"Closed"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Module",children:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Complexity",children:[D," (",W,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:[_,", ",U]})]})})},N=function(I,L){var w=(0,a.useBackend)(L),A=w.act,x=w.data,E=x.active,P=x.control,j=x.helmet,M=x.chestplate,R=x.gauntlets,D=x.boots,W=x.core,_=x.charge;return(0,e.createComponentVNode)(2,t.Section,{title:"Hardware",children:[(0,e.createComponentVNode)(2,t.Collapsible,{title:"Parts",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Control Unit",children:P}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Helmet",children:j||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chestplate",children:M||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gauntlets",children:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Boots",children:D||"None"})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core",children:W&&(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Type",children:W}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:_/100,content:_+"%",ranges:{good:[.6,1/0],average:[.3,.6],bad:[-1/0,.3]}})})]})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",textAlign:"center",children:"No Core Detected"})})]})},C=function(I,L){var w=(0,a.useBackend)(L),A=w.act,x=w.data,E=x.active,P=x.modules,j=P.filter(function(M){return!!M.id});return(0,e.createComponentVNode)(2,t.Section,{title:"Info",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:j.length!==0&&j.map(function(M){var R=m[M.id];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!E&&(0,e.createComponentVNode)(2,u),(0,e.normalizeProps)((0,e.createComponentVNode)(2,R,Object.assign({},M,{active:E})))]},M.ref)})||(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Info Modules Detected"})})})},p=function(I,L){var w=(0,a.useBackend)(L),A=w.act,x=w.data,E=x.complexity_max,P=x.modules,j=(0,a.useLocalState)(L,"module_configuration",null),M=j[0],R=j[1];return(0,e.createComponentVNode)(2,t.Section,{title:"Modules",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:P.length!==0&&P.map(function(D){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Collapsible,{title:D.module_name,children:(0,e.createComponentVNode)(2,t.Section,{children:[M===D.ref&&(0,e.createComponentVNode)(2,s,{configuration_data:D.configuration_data,module_ref:D.ref,onExit:function(){function W(){return R(null)}return W}()}),(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"save",tooltip:"Complexity",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"plug",tooltip:"Idle Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lightbulb",tooltip:"Active Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Use Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"hourglass-half",tooltip:"Cooldown",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"tasks",tooltip:"Actions",tooltipPosition:"top"})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[D.module_complexity,"/",E]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:D.idle_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:D.active_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:D.use_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[D.cooldown>0&&D.cooldown/10||"0","/",D.cooldown_time/10,"s"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function W(){return A("select",{ref:D.ref})}return W}(),icon:"bullseye",selected:D.module_active,tooltip:l(D.module_type),tooltipPosition:"left",disabled:!D.module_type}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function W(){return R(D.ref)}return W}(),icon:"cog",selected:M===D.ref,tooltip:"Configure",tooltipPosition:"left",disabled:D.configuration_data.length===0}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function W(){return A("pin",{ref:D.ref})}return W}(),icon:"thumbtack",selected:D.pinned,tooltip:"Pin",tooltipPosition:"left",disabled:!D.module_type})]})]})]}),(0,e.createComponentVNode)(2,t.Box,{children:D.description})]})})},D.ref)})||(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Modules Detected"})})})})},g=r.MODsuitContent=function(){function B(I,L){var w=(0,a.useBackend)(L),A=w.act,x=w.data,E=x.ui_theme,P=x.interface_break;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!P,children:!!P&&(0,e.createComponentVNode)(2,d)||(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,v)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,N)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,C)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p)})]})})}return B}(),V=r.MODsuit=function(){function B(I,L){var w=(0,a.useBackend)(L),A=w.act,x=w.data,E=x.ui_theme,P=x.interface_break;return(0,e.createComponentVNode)(2,o.Window,{theme:E,width:400,height:620,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,g)})})})}return B}()},78624:function(T,r,n){"use strict";r.__esModule=!0,r.MagnetController=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=n(3939),y=new Map([["n",{icon:"arrow-up",tooltip:"Move North"}],["e",{icon:"arrow-right",tooltip:"Move East"}],["s",{icon:"arrow-down",tooltip:"Move South"}],["w",{icon:"arrow-left",tooltip:"Move West"}],["c",{icon:"crosshairs",tooltip:"Move to Magnet"}],["r",{icon:"dice",tooltip:"Move Randomly"}]]),S=r.MagnetController=function(){function k(h,c){var i=(0,t.useBackend)(c),m=i.act,d=i.data,u=d.autolink,s=d.code,l=d.frequency,v=d.linkedMagnets,N=d.magnetConfiguration,C=d.path,p=d.pathPosition,g=d.probing,V=d.powerState,B=d.speed;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:[(0,e.createComponentVNode)(2,b.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[!u&&(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Probe",icon:g?"spinner":"sync",iconSpin:!!g,disabled:g,onClick:function(){function I(){return m("probe_magnets")}return I}()}),title:"Magnet Linking",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,a.toFixed)(l/10,1)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:s})]})}),(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{icon:V?"power-off":"times",content:V?"On":"Off",selected:V,onClick:function(){function I(){return m("toggle_power")}return I}()}),title:"Controller Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:B.value,minValue:B.min,maxValue:B.max,onChange:function(){function I(L,w){return m("set_speed",{speed:w})}return I}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Path",children:[Array.from(y.entries()).map(function(I){var L=I[0],w=I[1],A=w.icon,x=w.tooltip;return(0,e.createComponentVNode)(2,o.Button,{icon:A,tooltip:x,onClick:function(){function E(){return m("path_add",{code:L})}return E}()},L)}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",confirmIcon:"trash",confirmContent:"",float:"right",tooltip:"Reset Path",tooltipPosition:"left",onClick:function(){function I(){return m("path_clear")}return I}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file-import",float:"right",tooltip:"Manually input path",tooltipPosition:"left",onClick:function(){function I(){return(0,b.modalOpen)(c,"path_custom_input")}return I}()}),(0,e.createComponentVNode)(2,o.BlockQuote,{children:C.map(function(I,L){var w=y.get(I)||{icon:"question"},A=w.icon,x=w.tooltip;return(0,e.createComponentVNode)(2,o.Button.Confirm,{selected:L+2===p,icon:A,confirmIcon:A,confirmContent:"",tooltip:x,onClick:function(){function E(){return m("path_remove",{index:L+1,code:I})}return E}()},L)})})]})]})}),v.map(function(I,L){var w=I.uid,A=I.powerState,x=I.electricityLevel,E=I.magneticField;return(0,e.createComponentVNode)(2,o.Section,{title:"Magnet #"+(L+1)+" Configuration",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:A?"power-off":"times",content:A?"On":"Off",selected:A,onClick:function(){function P(){return m("toggle_magnet_power",{id:w})}return P}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Move Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:x,minValue:N.electricityLevel.min,maxValue:N.electricityLevel.max,onChange:function(){function P(j,M){return m("set_electricity_level",{id:w,electricityLevel:M})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Field Size",children:(0,e.createComponentVNode)(2,o.Slider,{value:E,minValue:N.magneticField.min,maxValue:N.magneticField.max,onChange:function(){function P(j,M){return m("set_magnetic_field",{id:w,magneticField:M})}return P}()})})]})},w)})]})]})}return k}()},72106:function(T,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.MechBayConsole=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.recharge_port,m=i&&i.mech,d=m&&m.cell,u=m&&m.name;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:155,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:u?"Mech status: "+u:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function s(){return h("reconnect")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:!i&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:m.health/m.maxhealth,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:!i&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||!d&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cell is installed."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:d.charge/d.maxcharge,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]},children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:d.charge})," / "+d.maxcharge]})})]})})})})}return b}()},7466:function(T,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=n(25328),y=r.MechaControlConsole=function(){function S(k,h){var c=(0,t.useBackend)(h),i=c.act,m=c.data,d=m.beacons,u=m.stored_data;return u.length?(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"window-close",onClick:function(){function s(){return i("clear_log")}return s}()}),children:u.map(function(s){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",s.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,b.decodeHtmlEntities)(s.message)})]},s.time)})})})}):(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:d.length&&d.map(function(s){return(0,e.createComponentVNode)(2,o.Section,{title:s.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function l(){return i("send_message",{mt:s.uid})}return l}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function l(){return i("get_log",{mt:s.uid})}return l}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"Sabotage",icon:"bomb",onClick:function(){function l(){return i("shock",{mt:s.uid})}return l}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[s.maxHealth*.75,1/0],average:[s.maxHealth*.5,s.maxHealth*.75],bad:[-1/0,s.maxHealth*.5]},value:s.health,maxValue:s.maxHealth})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:s.cell&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[s.cellMaxCharge*.75,1/0],average:[s.cellMaxCharge*.5,s.cellMaxCharge*.75],bad:[-1/0,s.cellMaxCharge*.5]},value:s.cellCharge,maxValue:s.cellMaxCharge})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Air Tank",children:[s.airtank,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pilot",children:s.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:(0,b.toTitleCase)(s.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:s.active||"None"}),s.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[s.cargoMax*.75,1/0],average:[s.cargoMax*.5,s.cargoMax*.75],good:[-1/0,s.cargoMax*.5]},value:s.cargoUsed,maxValue:s.cargoMax})})||null]})},s.name)})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No mecha beacons found."})})})}return S}()},79625:function(T,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(3939),b=n(98595),y=n(321),S=n(5485),k=n(22091),h={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},c={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},i=function(A,x){(0,f.modalOpen)(A,"edit",{field:x.edit,value:x.value})},m=function(A,x){var E=A.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:E.name||"Virus",children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Number of stages",children:E.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[E.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:E.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:E.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Severity",color:h[E.severity],children:E.severity})]})})})},d=r.MedicalRecords=function(){function w(A,x){var E=(0,t.useBackend)(x),P=E.data,j=P.loginState,M=P.screen;if(!j.logged_in)return(0,e.createComponentVNode)(2,b.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});var R;return M===2?R=(0,e.createComponentVNode)(2,u):M===3?R=(0,e.createComponentVNode)(2,s):M===4?R=(0,e.createComponentVNode)(2,l):M===5?R=(0,e.createComponentVNode)(2,p):M===6?R=(0,e.createComponentVNode)(2,g):M===7&&(R=(0,e.createComponentVNode)(2,V)),(0,e.createComponentVNode)(2,b.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,k.TemporaryNotice),(0,e.createComponentVNode)(2,L),R]})})]})}return w}(),u=function(A,x){var E=(0,t.useBackend)(x),P=E.act,j=E.data,M=j.records,R=(0,t.useLocalState)(x,"searchText",""),D=R[0],W=R[1],_=(0,t.useLocalState)(x,"sortId","name"),U=_[0],K=_[1],G=(0,t.useLocalState)(x,"sortOrder",!0),$=G[0],Q=G[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Manage Records",icon:"wrench",ml:"0.25rem",onClick:function(){function J(){return P("screen",{screen:3})}return J}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search by Name, ID, Physical Status, or Mental Status",onInput:function(){function J(ie,ne){return W(ne)}return J}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,B,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,B,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,B,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,B,{id:"p_stat",children:"Patient Status"}),(0,e.createComponentVNode)(2,B,{id:"m_stat",children:"Mental Status"})]}),M.filter((0,a.createSearch)(D,function(J){return J.name+"|"+J.id+"|"+J.rank+"|"+J.p_stat+"|"+J.m_stat})).sort(function(J,ie){var ne=$?1:-1;return J[U].localeCompare(ie[U])*ne}).map(function(J){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+c[J.p_stat],onClick:function(){function ie(){return P("view_record",{view_record:J.ref})}return ie}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",J.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.m_stat})]},J.id)})]})})})],4)},s=function(A,x){var E=(0,t.useBackend)(x),P=E.act;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,translucent:!0,lineHeight:3,icon:"download",content:"Backup to Disk",disabled:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,translucent:!0,lineHeight:3,icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," "]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,translucent:!0,lineHeight:3,icon:"trash",content:"Delete All Medical Records",onClick:function(){function j(){return P("del_all_med_records")}return j}()})})]})})},l=function(A,x){var E=(0,t.useBackend)(x),P=E.act,j=E.data,M=j.medical,R=j.printing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{height:"235px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:R?"spinner":"print",disabled:R,iconSpin:!!R,content:"Print Record",ml:"0.5rem",onClick:function(){function D(){return P("print_record")}return D}()}),children:(0,e.createComponentVNode)(2,v)})}),!M||!M.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function D(){return P("new_med_record")}return D}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Medical records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:!!M.empty,content:"Delete Medical Record",onClick:function(){function D(){return P("del_med_record")}return D}()}),children:(0,e.createComponentVNode)(2,N)})}),(0,e.createComponentVNode)(2,C)],4)],0)},v=function(A,x){var E=(0,t.useBackend)(x),P=E.data,j=P.general;return!j||!j.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:j.fields.map(function(M,R){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:M.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:M.value}),!!M.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function D(){return i(x,M)}return D}()})]},R)})})}),!!j.has_photos&&j.photos.map(function(M,R){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:M,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",R+1]},R)})]})},N=function(A,x){var E=(0,t.useBackend)(x),P=E.act,j=E.data,M=j.medical;return!M||!M.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"Medical records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:M.fields.map(function(R,D){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:R.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(R.value),!!R.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:R.line_break?"1rem":"initial",onClick:function(){function W(){return i(x,R)}return W}()})]},D)})})})})},C=function(A,x){var E=(0,t.useBackend)(x),P=E.act,j=E.data,M=j.medical;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function R(){return(0,f.modalOpen)(x,"add_comment")}return R}()}),children:M.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):M.comments.map(function(R,D){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:R.header}),(0,e.createVNode)(1,"br"),R.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function W(){return P("del_comment",{del_comment:D+1})}return W}()})]},D)})})})},p=function(A,x){var E=(0,t.useBackend)(x),P=E.act,j=E.data,M=j.virus,R=(0,t.useLocalState)(x,"searchText",""),D=R[0],W=R[1],_=(0,t.useLocalState)(x,"sortId2","name"),U=_[0],K=_[1],G=(0,t.useLocalState)(x,"sortOrder2",!0),$=G[0],Q=G[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{ml:"0.25rem",fluid:!0,placeholder:"Search by Name, Max Stages, or Severity",onInput:function(){function J(ie,ne){return W(ne)}return J}()})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,I,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,I,{id:"max_stages",children:"Max Stages"}),(0,e.createComponentVNode)(2,I,{id:"severity",children:"Severity"})]}),M.filter((0,a.createSearch)(D,function(J){return J.name+"|"+J.max_stages+"|"+J.severity})).sort(function(J,ie){var ne=$?1:-1;return J[U].localeCompare(ie[U])*ne}).map(function(J){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+J.severity,onClick:function(){function ie(){return P("vir",{vir:J.D})}return ie}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",J.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:h[J.severity],children:J.severity})]},J.id)})]})})})})],4)},g=function(A,x){var E=(0,t.useBackend)(x),P=E.act,j=E.data,M=j.goals;return(0,e.createComponentVNode)(2,o.Section,{title:"Virology Goals",fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:M.length!==0&&M.map(function(R){return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:R.name,children:[(0,e.createComponentVNode)(2,o.Table,{children:(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:R.delivered,minValue:0,maxValue:R.deliverygoal,ranges:{good:[R.deliverygoal*.5,1/0],average:[R.deliverygoal*.25,R.deliverygoal*.5],bad:[-1/0,R.deliverygoal*.25]},children:[R.delivered," / ",R.deliverygoal," Units"]})})})}),(0,e.createComponentVNode)(2,o.Box,{children:R.report})]})},R.id)})||(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:"No Goals Detected"})})})})},V=function(A,x){var E=(0,t.useBackend)(x),P=E.act,j=E.data,M=j.medbots;return M.length===0?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"robot",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"There are no Medibots."]})})})}):(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Area"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Chemicals"})]}),M.map(function(R){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+R.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",R.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[R.area||"Unknown"," (",R.x,", ",R.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.on?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Online"}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"Offline"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.use_beaker?"Reservoir: "+R.total_volume+"/"+R.maximum_volume:"Using internal synthesizer"})]},R.id)})]})})})},B=function(A,x){var E=(0,t.useLocalState)(x,"sortId","name"),P=E[0],j=E[1],M=(0,t.useLocalState)(x,"sortOrder",!0),R=M[0],D=M[1],W=A.id,_=A.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:P!==W&&"transparent",onClick:function(){function U(){P===W?D(!R):(j(W),D(!0))}return U}(),children:[_,P===W&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},I=function(A,x){var E=(0,t.useLocalState)(x,"sortId2","name"),P=E[0],j=E[1],M=(0,t.useLocalState)(x,"sortOrder2",!0),R=M[0],D=M[1],W=A.id,_=A.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:P!==W&&"transparent",onClick:function(){function U(){P===W?D(!R):(j(W),D(!0))}return U}(),children:[_,P===W&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},L=function(A,x){var E=(0,t.useBackend)(x),P=E.act,j=E.data,M=j.screen,R=j.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:M===2,onClick:function(){function D(){P("screen",{screen:2})}return D}(),children:"List Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:M===5,onClick:function(){function D(){P("screen",{screen:5})}return D}(),children:"Virus Database"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"vial",selected:M===6,onClick:function(){function D(){P("screen",{screen:6})}return D}(),children:"Virology Goals"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:M===7,onClick:function(){function D(){return P("screen",{screen:7})}return D}(),children:"Medibot Tracking"}),M===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:M===3,children:"Record Maintenance"}),M===4&&R&&!R.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:M===4,children:["Record: ",R.fields[0].value]})]})})};(0,f.modalRegisterBodyOverride)("virus",m)},54989:function(T,r,n){"use strict";r.__esModule=!0,r.MerchVendor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=h.product,s=h.productImage,l=h.productCategory,v=d.user_money;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+s,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:u.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{disabled:u.price>v,icon:"shopping-cart",content:u.price,textAlign:"left",onClick:function(){function N(){return m("purchase",{name:u.name,category:l})}return N}()})})]})},b=function(h,c){var i=(0,a.useBackend)(c),m=i.data,d=(0,a.useLocalState)(c,"tabIndex",1),u=d[0],s=m.products,l=m.imagelist,v=["apparel","toy","decoration"];return(0,e.createComponentVNode)(2,t.Table,{children:s[v[u]].map(function(N){return(0,e.createComponentVNode)(2,f,{product:N,productImage:l[N.path],productCategory:v[u]},N.name)})})},y=r.MerchVendor=function(){function k(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.user_cash,s=d.inserted_cash;return(0,e.createComponentVNode)(2,o.Window,{title:"Merch Computer",width:450,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"light-grey",inline:!0,mr:"0.5rem",children:["There is ",(0,e.createVNode)(1,"b",null,s,0)," credits inserted."]}),(0,e.createComponentVNode)(2,t.Button,{disabled:!s,icon:"money-bill-wave-alt",content:"Dispense Change",textAlign:"left",onClick:function(){function l(){return m("change")}return l}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Doing your job and not getting any recognition at work? Well, welcome to the merch shop! Here, you can buy cool things in exchange for money you earn when you have completed your Job Objectives.",u!==null&&(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:["Your balance is ",(0,e.createVNode)(1,"b",null,[u||0,(0,e.createTextVNode)(" credits")],0),"."]})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,b)]})})]})})})}return k}(),S=function(h,c){var i=(0,a.useBackend)(c),m=i.data,d=(0,a.useLocalState)(c,"tabIndex",1),u=d[0],s=d[1],l=m.login_state;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"dice",selected:u===1,onClick:function(){function v(){return s(1)}return v}(),children:"Toys"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"flag",selected:u===2,onClick:function(){function v(){return s(2)}return v}(),children:"Decorations"})]})}},87684:function(T,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=["title","items"];function y(d,u){if(d==null)return{};var s={};for(var l in d)if({}.hasOwnProperty.call(d,l)){if(u.includes(l))continue;s[l]=d[l]}return s}var S={Alphabetical:function(){function d(u,s){return u-s}return d}(),Availability:function(){function d(u,s){return-(u.affordable-s.affordable)}return d}(),Price:function(){function d(u,s){return u.price-s.price}return d}()},k=r.MiningVendor=function(){function d(u,s){return(0,e.createComponentVNode)(2,f.Window,{width:400,height:455,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})})}return d}(),h=function(u,s){var l=(0,t.useBackend)(s),v=l.act,N=l.data,C=N.has_id,p=N.id;return(0,e.createComponentVNode)(2,o.NoticeBox,{success:C,children:C?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",p.name,".",(0,e.createVNode)(1,"br"),"You have ",p.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function g(){return v("logoff")}return g}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},c=function(u,s){var l=(0,t.useBackend)(s),v=l.act,N=l.data,C=N.has_id,p=N.id,g=N.items,V=(0,t.useLocalState)(s,"search",""),B=V[0],I=V[1],L=(0,t.useLocalState)(s,"sort","Alphabetical"),w=L[0],A=L[1],x=(0,t.useLocalState)(s,"descending",!1),E=x[0],P=x[1],j=(0,a.createSearch)(B,function(D){return D[0]}),M=!1,R=Object.entries(g).map(function(D,W){var _=Object.entries(D[1]).filter(j).map(function(U){return U[1].affordable=C&&p.points>=U[1].price,U[1]}).sort(S[w]);if(_.length!==0)return E&&(_=_.reverse()),M=!0,(0,e.createComponentVNode)(2,m,{title:D[0],items:_},D[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:M?R:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},i=function(u,s){var l=(0,t.useLocalState)(s,"search",""),v=l[0],N=l[1],C=(0,t.useLocalState)(s,"sort",""),p=C[0],g=C[1],V=(0,t.useLocalState)(s,"descending",!1),B=V[0],I=V[1];return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{mt:.2,placeholder:"Search by item name..",width:"100%",onInput:function(){function L(w,A){return N(A)}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(S),width:"100%",onSelected:function(){function L(w){return g(w)}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:B?"arrow-down":"arrow-up",height:"21px",tooltip:B?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){function L(){return I(!B)}return L}()})})]})})},m=function(u,s){var l=(0,t.useBackend)(s),v=l.act,N=l.data,C=u.title,p=u.items,g=y(u,b);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:C},g,{children:p.map(function(V){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:V.name}),(0,e.createComponentVNode)(2,o.Button,{disabled:!N.has_id||N.id.points0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:ye>=10?"9+":ye})}),(0,e.createComponentVNode)(2,s,{icon:"briefcase",title:"Job Openings",selected:D===1,onClick:function(){function he(){return x("jobs")}return he}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:W.map(function(he){return(0,e.createComponentVNode)(2,s,{icon:he.icon,title:he.name,selected:D===2&&W[U-1]===he,onClick:function(){function oe(){return x("channel",{uid:he.uid})}return oe}(),children:he.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:he.unread>=10?"9+":he.unread})},he)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!P||!!j)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,s,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function he(){return(0,y.modalOpen)(w,"wanted_notice")}return he}()}),(0,e.createComponentVNode)(2,s,{security:!0,icon:se?"minus-square":"minus-square-o",title:"Censor Mode: "+(se?"On":"Off"),mb:"0.5rem",onClick:function(){function he(){return Ce(!se)}return he}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,s,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function he(){return(0,y.modalOpen)(w,"create_story")}return he}()}),(0,e.createComponentVNode)(2,s,{icon:"plus-circle",title:"New Channel",onClick:function(){function he(){return(0,y.modalOpen)(w,"create_channel")}return he}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,s,{icon:R?"spinner":"print",iconSpin:R,title:R?"Printing...":"Print Newspaper",onClick:function(){function he(){return x("print_newspaper")}return he}()}),(0,e.createComponentVNode)(2,s,{icon:M?"volume-mute":"volume-up",title:"Mute: "+(M?"On":"Off"),onClick:function(){function he(){return x("toggle_mute")}return he}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,S.TemporaryNotice),Se]})]})})]})}return I}(),s=function(L,w){var A=(0,t.useBackend)(w),x=A.act,E=L.icon,P=E===void 0?"":E,j=L.iconSpin,M=L.selected,R=M===void 0?!1:M,D=L.security,W=D===void 0?!1:D,_=L.onClick,U=L.title,K=L.children,G=c(L,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",R&&"Newscaster__menuButton--selected",W&&"Newscaster__menuButton--security"]),onClick:_},G,{children:[R&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:P,spin:j,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:U}),K]})))},l=function(L,w){var A=(0,t.useBackend)(w),x=A.act,E=A.data,P=E.screen,j=E.is_admin,M=E.channel_idx,R=E.channel_can_manage,D=E.channels,W=E.stories,_=E.wanted,U=(0,t.useLocalState)(w,"fullStories",[]),K=U[0],G=U[1],$=(0,t.useLocalState)(w,"censorMode",!1),Q=$[0],J=$[1],ie=P===2&&M>-1?D[M-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!_&&(0,e.createComponentVNode)(2,N,{story:_,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:ie?ie.icon:"newspaper",mr:"0.5rem"}),ie?ie.name:"Headlines"],0),children:W.length>0?W.slice().reverse().map(function(ne){return!K.includes(ne.uid)&&ne.body.length+3>i?Object.assign({},ne,{body_short:ne.body.substr(0,i-4)+"..."}):ne}).map(function(ne,se){return(0,e.createComponentVNode)(2,N,{story:ne},se)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no stories at this time."]})}),!!ie&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,height:"40%",title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"info-circle",mr:"0.5rem"}),(0,e.createTextVNode)("About")],4),buttons:(0,e.createFragment)([Q&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!ie.admin&&!j,selected:ie.censored,icon:ie.censored?"comment-slash":"comment",content:ie.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function ne(){return x("censor_channel",{uid:ie.uid})}return ne}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!R,icon:"cog",content:"Manage",onClick:function(){function ne(){return(0,y.modalOpen)(w,"manage_channel",{uid:ie.uid})}return ne}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:ie.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:ie.author||"N/A"}),!!j&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Ckey",children:ie.author_ckey}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:ie.public?"Yes":"No"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Views",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"eye",mr:"0.5rem"}),W.reduce(function(ne,se){return ne+se.view_count},0).toLocaleString()]})]})})]})},v=function(L,w){var A=(0,t.useBackend)(w),x=A.act,E=A.data,P=E.jobs,j=E.wanted,M=Object.entries(P).reduce(function(R,D){var W=D[0],_=D[1];return R+_.length},0);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!j&&(0,e.createComponentVNode)(2,N,{story:j,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"briefcase",mr:"0.5rem"}),(0,e.createTextVNode)("Job Openings")],4),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:"Work for a better future at Nanotrasen"}),children:M>0?m.map(function(R){return Object.assign({},d[R],{id:R,jobs:P[R]})}).filter(function(R){return!!R&&R.jobs.length>0}).map(function(R){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+R.id]),title:R.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:R.fluff_text}),children:R.jobs.map(function(D){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!D.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",D.title]},D.title)})},R.id)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no openings at this time."]})}),(0,e.createComponentVNode)(2,o.Section,{height:"17%",children:["Interested in serving Nanotrasen?",(0,e.createVNode)(1,"br"),"Sign up for any of the above position now at the ",(0,e.createVNode)(1,"b",null,"Head of Personnel's Office!",16),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{as:"small",color:"label",children:"By signing up for a job at Nanotrasen, you agree to transfer your soul to the loyalty department of the omnipresent and helpful watcher of humanity."})]})]})},N=function(L,w){var A=(0,t.useBackend)(w),x=A.act,E=A.data,P=L.story,j=L.wanted,M=j===void 0?!1:j,R=E.is_admin,D=(0,t.useLocalState)(w,"fullStories",[]),W=D[0],_=D[1],U=(0,t.useLocalState)(w,"censorMode",!1),K=U[0],G=U[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",M&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([M&&(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle",mr:"0.5rem"}),P.censor_flags&2&&"[REDACTED]"||P.title||"News from "+P.author],0),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:[!M&&K&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.Button,{enabled:P.censor_flags&2,icon:P.censor_flags&2?"comment-slash":"comment",content:P.censor_flags&2?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){function $(){return x("censor_story",{uid:P.uid})}return $}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",P.author," |\xA0",!!R&&(0,e.createFragment)([(0,e.createTextVNode)("ckey: "),P.author_ckey,(0,e.createTextVNode)(" |\xA0")],0),!M&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),(0,e.createTextVNode)(" "),P.view_count.toLocaleString(),(0,e.createTextVNode)(" |\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,f.timeAgo)(P.publish_time,E.world_time)]})]})}),children:(0,e.createComponentVNode)(2,o.Box,{children:P.censor_flags&2?"[REDACTED]":(0,e.createFragment)([!!P.has_photo&&(0,e.createComponentVNode)(2,C,{name:"story_photo_"+P.uid+".png",float:"right",ml:"0.5rem"}),(P.body_short||P.body).split("\n").map(function($,Q){return(0,e.createComponentVNode)(2,o.Box,{children:$||(0,e.createVNode)(1,"br")},Q)}),P.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function $(){return _([].concat(W,[P.uid]))}return $}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},C=function(L,w){var A=L.name,x=c(L,h),E=(0,t.useLocalState)(w,"viewingPhoto",""),P=E[0],j=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"img",className:"Newscaster__photo",src:A,onClick:function(){function M(){return j(A)}return M}()},x)))},p=function(L,w){var A=(0,t.useLocalState)(w,"viewingPhoto",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Newscaster__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:x}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function P(){return E("")}return P}()})]})},g=function(L,w){var A=(0,t.useBackend)(w),x=A.act,E=A.data,P=!!L.args.uid&&E.channels.filter(function(ee){return ee.uid===L.args.uid}).pop();if(L.id==="manage_channel"&&!P){(0,y.modalClose)(w);return}var j=L.id==="manage_channel",M=!!L.args.is_admin,R=L.args.scanned_user,D=(0,t.useLocalState)(w,"author",(P==null?void 0:P.author)||R||"Unknown"),W=D[0],_=D[1],U=(0,t.useLocalState)(w,"name",(P==null?void 0:P.name)||""),K=U[0],G=U[1],$=(0,t.useLocalState)(w,"description",(P==null?void 0:P.description)||""),Q=$[0],J=$[1],ie=(0,t.useLocalState)(w,"icon",(P==null?void 0:P.icon)||"newspaper"),ne=ie[0],se=ie[1],Ce=(0,t.useLocalState)(w,"isPublic",j?!!(P!=null&&P.public):!1),Se=Ce[0],ye=Ce[1],he=(0,t.useLocalState)(w,"adminLocked",(P==null?void 0:P.admin)===1||!1),oe=he[0],ce=he[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:j?"Manage "+P.name:"Create New Channel",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!M,width:"100%",value:W,onInput:function(){function ee(fe,me){return _(me)}return ee}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"50 characters max.",maxLength:"50",value:K,onInput:function(){function ee(fe,me){return G(me)}return ee}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",placeholder:"128 characters max.",maxLength:"128",value:Q,onInput:function(){function ee(fe,me){return J(me)}return ee}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!M,value:ne,width:"35%",mr:"0.5rem",onInput:function(){function ee(fe,me){return se(me)}return ee}()}),(0,e.createComponentVNode)(2,o.Icon,{name:ne,size:"2",verticalAlign:"middle",mr:"0.5rem"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Accept Public Stories?",children:(0,e.createComponentVNode)(2,o.Button,{selected:Se,icon:Se?"toggle-on":"toggle-off",content:Se?"Yes":"No",onClick:function(){function ee(){return ye(!Se)}return ee}()})}),M&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:oe,icon:oe?"lock":"lock-open",content:oe?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function ee(){return ce(!oe)}return ee}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:W.trim().length===0||K.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function ee(){(0,y.modalAnswer)(w,L.id,"",{author:W,name:K.substr(0,49),description:Q.substr(0,128),icon:ne,public:Se?1:0,admin_locked:oe?1:0})}return ee}()})]})},V=function(L,w){var A=(0,t.useBackend)(w),x=A.act,E=A.data,P=E.photo,j=E.channels,M=E.channel_idx,R=M===void 0?-1:M,D=!!L.args.is_admin,W=L.args.scanned_user,_=j.slice().sort(function(ee,fe){if(R<0)return 0;var me=j[R-1];if(me.uid===ee.uid)return-1;if(me.uid===fe.uid)return 1}).filter(function(ee){return D||!ee.frozen&&(ee.author===W||!!ee.public)}),U=(0,t.useLocalState)(w,"author",W||"Unknown"),K=U[0],G=U[1],$=(0,t.useLocalState)(w,"channel",_.length>0?_[0].name:""),Q=$[0],J=$[1],ie=(0,t.useLocalState)(w,"title",""),ne=ie[0],se=ie[1],Ce=(0,t.useLocalState)(w,"body",""),Se=Ce[0],ye=Ce[1],he=(0,t.useLocalState)(w,"adminLocked",!1),oe=he[0],ce=he[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Create New Story",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!D,width:"100%",value:K,onInput:function(){function ee(fe,me){return G(me)}return ee}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:Q,options:_.map(function(ee){return ee.name}),mb:"0",width:"100%",onSelected:function(){function ee(fe){return J(fe)}return ee}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"128 characters max.",maxLength:"128",value:ne,onInput:function(){function ee(fe,me){return se(me)}return ee}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Story Text",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,multiline:!0,placeholder:"1024 characters max.",maxLength:"1024",rows:"8",width:"100%",value:Se,onInput:function(){function ee(fe,me){return ye(me)}return ee}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:P,content:P?"Eject: "+P.name:"Insert Photo",tooltip:!P&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){function ee(){return x(P?"eject_photo":"attach_photo")}return ee}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:ne,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!P&&(0,e.createComponentVNode)(2,C,{name:"inserted_photo_"+P.uid+".png",float:"right"}),Se.split("\n").map(function(ee,fe){return(0,e.createComponentVNode)(2,o.Box,{children:ee||(0,e.createVNode)(1,"br")},fe)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),D&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:oe,icon:oe?"lock":"lock-open",content:oe?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function ee(){return ce(!oe)}return ee}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:K.trim().length===0||Q.trim().length===0||ne.trim().length===0||Se.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function ee(){(0,y.modalAnswer)(w,"create_story","",{author:K,channel:Q,title:ne.substr(0,127),body:Se.substr(0,1023),admin_locked:oe?1:0})}return ee}()})]})},B=function(L,w){var A=(0,t.useBackend)(w),x=A.act,E=A.data,P=E.photo,j=E.wanted,M=!!L.args.is_admin,R=L.args.scanned_user,D=(0,t.useLocalState)(w,"author",(j==null?void 0:j.author)||R||"Unknown"),W=D[0],_=D[1],U=(0,t.useLocalState)(w,"name",(j==null?void 0:j.title.substr(8))||""),K=U[0],G=U[1],$=(0,t.useLocalState)(w,"description",(j==null?void 0:j.body)||""),Q=$[0],J=$[1],ie=(0,t.useLocalState)(w,"adminLocked",(j==null?void 0:j.admin_locked)===1||!1),ne=ie[0],se=ie[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Manage Wanted Notice",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Authority",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!M,width:"100%",value:W,onInput:function(){function Ce(Se,ye){return _(ye)}return Ce}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:K,maxLength:"128",onInput:function(){function Ce(Se,ye){return G(ye)}return Ce}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:Q,maxLength:"512",rows:"4",onInput:function(){function Ce(Se,ye){return J(ye)}return Ce}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:P,content:P?"Eject: "+P.name:"Insert Photo",tooltip:!P&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){function Ce(){return x(P?"eject_photo":"attach_photo")}return Ce}()}),!!P&&(0,e.createComponentVNode)(2,C,{name:"inserted_photo_"+P.uid+".png",float:"right"})]}),M&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ne,icon:ne?"lock":"lock-open",content:ne?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function Ce(){return se(!ne)}return Ce}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!j,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){function Ce(){x("clear_wanted_notice"),(0,y.modalClose)(w)}return Ce}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:W.trim().length===0||K.trim().length===0||Q.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function Ce(){(0,y.modalAnswer)(w,L.id,"",{author:W,name:K.substr(0,127),description:Q.substr(0,511),admin_locked:ne?1:0})}return Ce}()})]})};(0,y.modalRegisterBodyOverride)("create_channel",g),(0,y.modalRegisterBodyOverride)("manage_channel",g),(0,y.modalRegisterBodyOverride)("create_story",V),(0,y.modalRegisterBodyOverride)("wanted_notice",B)},48286:function(T,r,n){"use strict";r.__esModule=!0,r.Noticeboard=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=r.Noticeboard=function(){function y(S,k){var h=(0,t.useBackend)(k),c=h.act,i=h.data,m=i.papers;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:300,theme:"noticeboard",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:m.map(function(d){return(0,e.createComponentVNode)(2,o.Stack.Item,{align:"center",width:"22.45%",height:"85%",onClick:function(){function u(){return c("interact",{paper:d.ref})}return u}(),onContextMenu:function(){function u(s){s.preventDefault(),c("showFull",{paper:d.ref})}return u}(),children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,fontSize:.75,title:d.name,children:(0,a.decodeHtmlEntities)(d.contents)})},d.ref)})})})})}return y}()},41166:function(T,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.NuclearBomb=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data;return c.extended?(0,e.createComponentVNode)(2,o.Window,{width:350,height:290,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Disk",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.authdisk?"eject":"id-card",selected:c.authdisk,content:c.diskname?c.diskname:"-----",tooltip:c.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function i(){return h("auth")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!c.authdisk,selected:c.authcode,content:c.codemsg,onClick:function(){function i(){return h("code")}return i}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Arming & Disarming",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bolted to floor",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.anchored?"check":"times",selected:c.anchored,disabled:!c.authdisk,content:c.anchored?"YES":"NO",onClick:function(){function i(){return h("toggle_anchor")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:c.time,disabled:!c.authfull,tooltip:"Set Timer",onClick:function(){function i(){return h("set_time")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.safety?"check":"times",selected:c.safety,disabled:!c.authfull,content:c.safety?"ON":"OFF",tooltip:c.safety?"Disable Safety":"Enable Safety",onClick:function(){function i(){return h("toggle_safety")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(c.timer,"bomb"),disabled:c.safety||!c.authfull,color:"red",content:c.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function i(){return h("toggle_armed")}return i}()})})]})})]})}):(0,e.createComponentVNode)(2,o.Window,{width:350,height:115,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Deployment",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"exclamation-triangle",content:"Deploy Nuclear Device (will bolt device to floor)",onClick:function(){function i(){return h("deploy")}return i}()})})})})}return b}()},52416:function(T,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(92986),f=n(72253),b=n(36036),y=n(98595),S=r.NumberInputModal=function(){function h(c,i){var m=(0,f.useBackend)(i),d=m.act,u=m.data,s=u.init_value,l=u.large_buttons,v=u.message,N=v===void 0?"":v,C=u.timeout,p=u.title,g=(0,f.useLocalState)(i,"input",s),V=g[0],B=g[1],I=function(){function A(x){x!==V&&B(x)}return A}(),L=function(){function A(x){x!==V&&B(x)}return A}(),w=140+Math.max(Math.ceil(N.length/3),N.length>0&&l?5:0);return(0,e.createComponentVNode)(2,y.Window,{title:p,width:270,height:w,children:[C&&(0,e.createComponentVNode)(2,a.Loader,{value:C}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function A(x){var E=window.event?x.which:x.keyCode;E===o.KEY_ENTER&&d("submit",{entry:V}),E===o.KEY_ESCAPE&&d("cancel")}return A}(),children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Box,{color:"label",children:N})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,k,{input:V,onClick:L,onChange:I})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:V})})]})})})]})}return h}(),k=function(c,i){var m=(0,f.useBackend)(i),d=m.act,u=m.data,s=u.min_value,l=u.max_value,v=u.init_value,N=u.round_value,C=c.input,p=c.onClick,g=c.onChange,V=Math.round(C!==s?Math.max(C/2,s):l/2),B=C===s&&s>0||C===1;return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:C===s,icon:"angle-double-left",onClick:function(){function I(){return p(s)}return I}(),tooltip:C===s?"Min":"Min ("+s+")"})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!N,minValue:s,maxValue:l,onChange:function(){function I(L,w){return g(w)}return I}(),onEnter:function(){function I(L,w){return d("submit",{entry:w})}return I}(),value:C})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:C===l,icon:"angle-double-right",onClick:function(){function I(){return p(l)}return I}(),tooltip:C===l?"Max":"Max ("+l+")"})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:B,icon:"divide",onClick:function(){function I(){return p(V)}return I}(),tooltip:B?"Split":"Split ("+V+")"})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:C===v,icon:"redo",onClick:function(){function I(){return p(v)}return I}(),tooltip:v?"Reset ("+v+")":"Reset"})})]})}},1218:function(T,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(98595),f=n(36036),b=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],y=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},k=["bad","average","average","good","average","average","bad"],h=r.OperatingComputer=function(){function d(u,s){var l=(0,t.useBackend)(s),v=l.act,N=l.data,C=N.hasOccupant,p=N.choice,g;return p?g=(0,e.createComponentVNode)(2,m):g=C?(0,e.createComponentVNode)(2,c):(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!p,icon:"user",onClick:function(){function V(){return v("choiceOff")}return V}(),children:"Patient"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!!p,icon:"cog",onClick:function(){function V(){return v("choiceOn")}return V}(),children:"Options"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,children:g})})]})})})}return d}(),c=function(u,s){var l=(0,t.useBackend)(s),v=l.data,N=v.occupant;return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,title:"Patient",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:N.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:b[N.stat][0],children:b[N.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:N.maxHealth,value:N.health/N.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),y.map(function(C,p){return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:C[0]+" Damage",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:"100",value:N[C[1]]/100,ranges:S,children:(0,a.round)(N[C[1]])},p)},p)}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:N.maxTemp,value:N.bodyTemperature/N.maxTemp,color:k[N.temperatureSuitability+3],children:[(0,a.round)(N.btCelsius),"\xB0C, ",(0,a.round)(N.btFaren),"\xB0F"]})}),!!N.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:N.bloodMax,value:N.bloodLevel/N.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[N.bloodPercent,"%, ",N.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Pulse",children:[N.pulse," BPM"]})],4)]})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Current Procedure",level:"2",children:N.inSurgery?(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Procedure",children:N.surgeryName}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Next Step",children:N.stepName})]}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No procedure ongoing."})})})]})},i=function(){return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},m=function(u,s){var l=(0,t.useBackend)(s),v=l.act,N=l.data,C=N.verbose,p=N.health,g=N.healthAlarm,V=N.oxy,B=N.oxyAlarm,I=N.crit;return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,f.Button,{selected:C,icon:C?"toggle-on":"toggle-off",content:C?"On":"Off",onClick:function(){function L(){return v(C?"verboseOff":"verboseOn")}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,f.Button,{selected:p,icon:p?"toggle-on":"toggle-off",content:p?"On":"Off",onClick:function(){function L(){return v(p?"healthOff":"healthOn")}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:g,stepPixelSize:5,ml:"0",onChange:function(){function L(w,A){return v("health_adj",{new:A})}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,f.Button,{selected:V,icon:V?"toggle-on":"toggle-off",content:V?"On":"Off",onClick:function(){function L(){return v(V?"oxyOff":"oxyOn")}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:B,stepPixelSize:5,ml:"0",onChange:function(){function L(w,A){return v("oxy_adj",{new:A})}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,f.Button,{selected:I,icon:I?"toggle-on":"toggle-off",content:I?"On":"Off",onClick:function(){function L(){return v(I?"critOff":"critOn")}return L}()})})]})}},46892:function(T,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=n(35840);function y(l,v){var N=typeof Symbol!="undefined"&&l[Symbol.iterator]||l["@@iterator"];if(N)return(N=N.call(l)).next.bind(N);if(Array.isArray(l)||(N=S(l))||v&&l&&typeof l.length=="number"){N&&(l=N);var C=0;return function(){return C>=l.length?{done:!0}:{done:!1,value:l[C++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(l,v){if(l){if(typeof l=="string")return k(l,v);var N={}.toString.call(l).slice(8,-1);return N==="Object"&&l.constructor&&(N=l.constructor.name),N==="Map"||N==="Set"?Array.from(l):N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N)?k(l,v):void 0}}function k(l,v){(v==null||v>l.length)&&(v=l.length);for(var N=0,C=Array(v);NN},m=function(v,N){var C=v.name,p=N.name;if(!C||!p)return 0;var g=C.match(h),V=p.match(h);if(g&&V&&C.replace(h,"")===p.replace(h,"")){var B=parseInt(g[1],10),I=parseInt(V[1],10);return B-I}return i(C,p)},d=function(v,N){var C=v.searchText,p=v.source,g=v.title,V=v.color,B=v.sorted,I=p.filter(c(C));return B&&I.sort(m),p.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:g+" - ("+p.length+")",children:I.map(function(L){return(0,e.createComponentVNode)(2,u,{thing:L,color:V},L.name)})})},u=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=v.color,V=v.thing;return(0,e.createComponentVNode)(2,o.Button,{color:g,tooltip:V.assigned_role?(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",mr:"0.5em",className:(0,b.classes)(["orbit_job16x16",V.assigned_role_sprite])})," ",V.assigned_role]}):"",tooltipPosition:"bottom",onClick:function(){function B(){return p("orbit",{ref:V.ref})}return B}(),children:[V.name,V.orbiters&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,children:["(",V.orbiters," ",(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),")"]})]})},s=r.Orbit=function(){function l(v,N){for(var C=(0,t.useBackend)(N),p=C.act,g=C.data,V=g.alive,B=g.antagonists,I=g.highlights,L=g.response_teams,w=g.tourist,A=g.auto_observe,x=g.dead,E=g.ssd,P=g.ghosts,j=g.misc,M=g.npcs,R=(0,t.useLocalState)(N,"searchText",""),D=R[0],W=R[1],_={},U=y(B),K;!(K=U()).done;){var G=K.value;_[G.antag]===void 0&&(_[G.antag]=[]),_[G.antag].push(G)}var $=Object.entries(_);$.sort(function(J,ie){return i(J[0],ie[0])});var Q=function(){function J(ie){for(var ne=0,se=[$.map(function(ye){var he=ye[0],oe=ye[1];return oe}),w,I,V,P,E,x,M,j];ne0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:$.map(function(J){var ie=J[0],ne=J[1];return(0,e.createComponentVNode)(2,o.Section,{title:ie+" - ("+ne.length+")",level:2,children:ne.filter(c(D)).sort(m).map(function(se){return(0,e.createComponentVNode)(2,u,{color:"bad",thing:se},se.name)})},ie)})}),I.length>0&&(0,e.createComponentVNode)(2,d,{title:"Highlights",source:I,searchText:D,color:"teal"}),(0,e.createComponentVNode)(2,d,{title:"Response Teams",source:L,searchText:D,color:"purple"}),(0,e.createComponentVNode)(2,d,{title:"Tourists",source:w,searchText:D,color:"violet"}),(0,e.createComponentVNode)(2,d,{title:"Alive",source:V,searchText:D,color:"good"}),(0,e.createComponentVNode)(2,d,{title:"Ghosts",source:P,searchText:D,color:"grey"}),(0,e.createComponentVNode)(2,d,{title:"SSD",source:E,searchText:D,color:"grey"}),(0,e.createComponentVNode)(2,d,{title:"Dead",source:x,searchText:D,sorted:!1}),(0,e.createComponentVNode)(2,d,{title:"NPCs",source:M,searchText:D,sorted:!1}),(0,e.createComponentVNode)(2,d,{title:"Misc",source:j,searchText:D,sorted:!1})]})})}return l}()},15421:function(T,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(98595),b=n(9394);function y(l){if(l==null)throw new TypeError("Cannot destructure "+l)}var S=(0,b.createLogger)("OreRedemption"),k=function(v){return v.toLocaleString("en-US")+" pts"},h=r.OreRedemption=function(){function l(v,N){return(0,e.createComponentVNode)(2,f.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,c,{height:"100%"})}),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,m)]})})})}return l}(),c=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=C.data,V=g.id,B=g.points,I=g.disk,L=Object.assign({},(y(v),v));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},L,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed Points",color:B>0?"good":"grey",bold:B>0&&"good",children:k(B)})}),(0,e.createComponentVNode)(2,o.Divider),I?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Design disk",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,icon:"eject",content:I.name,tooltip:"Ejects the design disk.",onClick:function(){function w(){return p("eject_disk")}return w}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!I.design||!I.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function w(){return p("download")}return w}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:I.design&&(I.compatible?"good":"bad"),children:I.design||"N/A"})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},i=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=C.data,V=g.sheets,B=Object.assign({},(y(v),v));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"20%",children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,d,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),V.map(function(I){return(0,e.createComponentVNode)(2,u,{ore:I},I.id)})]})))})},m=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=C.data,V=g.alloys,B=Object.assign({},(y(v),v));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,d,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),V.map(function(I){return(0,e.createComponentVNode)(2,s,{ore:I},I.id)})]})))})},d=function(v,N){var C;return(0,e.createComponentVNode)(2,o.Box,{className:"OreHeader",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:v.title}),(C=v.columns)==null?void 0:C.map(function(p){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:p[1],textAlign:"center",color:"label",bold:!0,children:p[0]},p)})]})})},u=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=v.ore;if(!(g.value&&g.amount<=0&&!(["metal","glass"].indexOf(g.id)>-1)))return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"45%",align:"middle",children:(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",g.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:g.name})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",color:g.amount>=1?"good":"gray",bold:g.amount>=1,align:"center",children:g.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",children:g.value}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(g.amount,50),stepPixelSize:6,onChange:function(){function V(B,I){return p(g.value?"sheet":"alloy",{id:g.id,amount:I})}return V}()})})]})})},s=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=v.ore;return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"7%",align:"middle",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["alloys32x32",g.id])})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",textAlign:"middle",align:"center",children:g.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"35%",textAlign:"middle",color:g.amount>=1?"good":"gray",align:"center",children:g.description}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"10%",textAlign:"center",color:g.amount>=1?"good":"gray",bold:g.amount>=1,align:"center",children:g.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(g.amount,50),stepPixelSize:6,onChange:function(){function V(B,I){return p(g.value?"sheet":"alloy",{id:g.id,amount:I})}return V}()})})]})})}},52754:function(T,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(71253),b=n(70752),y=function(h){var c;try{c=b("./"+h+".js")}catch(m){if(m.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",h);throw m}var i=c[h];return i||(0,f.routingError)("missingExport",h)},S=r.PAI=function(){function k(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.app_template,s=d.app_icon,l=d.app_title,v=y(u);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{p:1,fill:!0,scrollable:!0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:s,mr:1}),l,u!=="pai_main_menu"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{ml:2,mb:0,content:"Back",icon:"arrow-left",onClick:function(){function N(){return m("Back")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Home",icon:"arrow-up",onClick:function(){function N(){return m("MASTER_back")}return N}()})],4)]}),children:(0,e.createComponentVNode)(2,v)})})})})})}return k}()},85175:function(T,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(71253),b=n(59395),y=function(i){var m;try{m=b("./"+i+".js")}catch(u){if(u.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",i);throw u}var d=m[i];return d||(0,f.routingError)("missingExport",i)},S=r.PDA=function(){function c(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.app,v=s.owner;if(!v)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var N=y(l.template);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,p:1,pb:0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:l.icon,mr:1}),l.name]}),children:(0,e.createComponentVNode)(2,N)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,h)})]})})})}return c}(),k=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.idInserted,v=s.idLink,N=s.stationTime,C=s.cartridge_name;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{ml:.5,children:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",color:"transparent",onClick:function(){function p(){return u("Authenticate")}return p}(),content:l?v:"No ID Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function p(){return u("Eject")}return p}(),content:C?["Eject "+C]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:N})]})},h=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.app;return(0,e.createComponentVNode)(2,t.Box,{height:"45px",className:"PDA__footer",backgroundColor:"#1b1b1b",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[!!l.has_back&&(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"33%",mr:-.5,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:l.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function v(){return u("Back")}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:l.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:l.is_home?"disabled":"white",icon:"home",onClick:function(){function v(){u("Home")}return v}()})})]})})}},68654:function(T,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(49968),b=r.Pacman=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.active,d=i.anchored,u=i.broken,s=i.emagged,l=i.fuel_type,v=i.fuel_usage,N=i.fuel_stored,C=i.fuel_cap,p=i.is_ai,g=i.tmp_current,V=i.tmp_max,B=i.tmp_overheat,I=i.output_max,L=i.power_gen,w=i.output_set,A=i.has_fuel,x=N/C,E=g/V,P=w*L,j=Math.round(N/v),M=Math.round(j/60),R=j>120?M+" minutes":j+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:225,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(u||!d)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!u&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!u&&!d&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!u&&!!d&&(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:m?"power-off":"times",content:m?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!A,selected:m,onClick:function(){function D(){return c("toggle_power")}return D}()}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",className:"ml-1",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power setting",children:[(0,e.createComponentVNode)(2,t.NumberInput,{value:w,minValue:1,maxValue:I*(s?2.5:1),step:1,className:"mt-1",onDrag:function(){function D(W,_){return c("change_power",{change_power:_})}return D}()}),"(",(0,f.formatPower)(P),")"]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:E,ranges:{green:[-1/0,.33],orange:[.33,.66],red:[.66,1/0]},children:[g," \u2103"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[B>50&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),B>20&&B<=50&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"WARNING: Overheating!"}),B>1&&B<=20&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Temperature High"}),B===0&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Optimal"})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fuel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject Fuel",tooltip:"Ejects fuel. Generator needs to be offline.",tooltipPosition:"left",disabled:m||p||!A,onClick:function(){function D(){return c("eject_fuel")}return D}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Type",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:x,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(N/1e3)," dm\xB3"]})})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel usage",children:[v/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!A&&(v?R:"N/A"),!A&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return y}()},1701:function(T,r,n){"use strict";r.__esModule=!0,r.PanDEMIC=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.PanDEMIC=function(){function d(u,s){var l=(0,a.useBackend)(s),v=l.data,N=v.beakerLoaded,C=v.beakerContainsBlood,p=v.beakerContainsVirus,g=v.resistances,V=g===void 0?[]:g,B;return N?C?C&&!p&&(B=(0,e.createFragment)([(0,e.createTextVNode)("No disease detected in provided blood sample.")],4)):B=(0,e.createFragment)([(0,e.createTextVNode)("No blood sample found in the loaded container.")],4):B=(0,e.createFragment)([(0,e.createTextVNode)("No container loaded.")],4),(0,e.createComponentVNode)(2,o.Window,{width:575,height:510,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[B&&!p?(0,e.createComponentVNode)(2,t.Section,{title:"Container Information",buttons:(0,e.createComponentVNode)(2,b,{fill:!0,vertical:!0}),children:(0,e.createComponentVNode)(2,t.NoticeBox,{children:B})}):(0,e.createComponentVNode)(2,k),(V==null?void 0:V.length)>0&&(0,e.createComponentVNode)(2,m,{align:"bottom"})]})})})}return d}(),b=function(u,s){var l=(0,a.useBackend)(s),v=l.act,N=l.data,C=N.beakerLoaded;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!C,onClick:function(){function p(){return v("eject_beaker")}return p}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",confirmIcon:"eraser",content:"Destroy",confirmContent:"Destroy",disabled:!C,onClick:function(){function p(){return v("destroy_eject_beaker")}return p}()})],4)},y=function(u,s){var l=(0,a.useBackend)(s),v=l.act,N=l.data,C=N.beakerContainsVirus,p=u.strain,g=p.commonName,V=p.description,B=p.diseaseAgent,I=p.bloodDNA,L=p.bloodType,w=p.possibleTreatments,A=p.transmissionRoute,x=p.isAdvanced,E=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",children:I?(0,e.createVNode)(1,"span",null,I,0,{style:{"font-family":"'Courier New', monospace"}}):"Undetectable"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood Type",children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:L!=null?L:"Undetectable"}})})],4);if(!C)return(0,e.createComponentVNode)(2,t.LabeledList,{children:E});var P;return x&&(g!=null&&g!=="Unknown"?P=(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print Release Forms",onClick:function(){function j(){return v("print_release_forms",{strain_index:u.strainIndex})}return j}(),style:{"margin-left":"auto"}}):P=(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Name Disease",onClick:function(){function j(){return v("name_strain",{strain_index:u.strainIndex})}return j}(),style:{"margin-left":"auto"}})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Common Name",className:"common-name-label",children:(0,e.createComponentVNode)(2,t.Stack,{horizontal:!0,align:"center",children:[g!=null?g:"Unknown",P]})}),V&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:V}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Disease Agent",children:B}),E,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Spread Vector",children:A!=null?A:"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Possible Cures",children:w!=null?w:"None"})]})},S=function(u,s){var l,v=(0,a.useBackend)(s),N=v.act,C=v.data,p=!!C.synthesisCooldown,g=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:p?"spinner":"clone",iconSpin:p,content:"Clone",disabled:p,onClick:function(){function V(){return N("clone_strain",{strain_index:u.strainIndex})}return V}()}),u.sectionButtons],0);return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:(l=u.sectionTitle)!=null?l:"Strain Information",buttons:g,children:(0,e.createComponentVNode)(2,y,{strain:u.strain,strainIndex:u.strainIndex})})})},k=function(u,s){var l,v=(0,a.useBackend)(s),N=v.act,C=v.data,p=C.selectedStrainIndex,g=C.strains,V=g[p-1];if(g.length===0)return(0,e.createComponentVNode)(2,t.Section,{title:"Container Information",buttons:(0,e.createComponentVNode)(2,b),children:(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No disease detected in provided blood sample."})});if(g.length===1){var B;return(0,e.createFragment)([(0,e.createComponentVNode)(2,S,{strain:g[0],strainIndex:1,sectionButtons:(0,e.createComponentVNode)(2,b)}),((B=g[0].symptoms)==null?void 0:B.length)>0&&(0,e.createComponentVNode)(2,c,{strain:g[0]})],0)}var I=(0,e.createComponentVNode)(2,b);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Culture Information",fill:!0,buttons:I,children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",style:{height:"100%"},children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:g.map(function(L,w){var A;return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"virus",selected:p-1===w,onClick:function(){function x(){return N("switch_strain",{strain_index:w+1})}return x}(),children:(A=L.commonName)!=null?A:"Unknown"},w)})})}),(0,e.createComponentVNode)(2,S,{strain:V,strainIndex:p}),((l=V.symptoms)==null?void 0:l.length)>0&&(0,e.createComponentVNode)(2,c,{className:"remove-section-bottom-padding",strain:V})]})})})},h=function(u){return u.reduce(function(s,l){return s+l},0)},c=function(u){var s=u.strain.symptoms;return(0,e.createComponentVNode)(2,t.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Infection Symptoms",fill:!0,className:u.className,children:(0,e.createComponentVNode)(2,t.Table,{className:"symptoms-table",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stealth"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Resistance"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stage Speed"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Transmissibility"})]}),s.map(function(l,v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.stealth}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.resistance}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.stageSpeed}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.transmissibility})]},v)}),(0,e.createComponentVNode)(2,t.Table.Row,{className:"table-spacer"}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"font-weight":"bold"},children:"Total"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h(s.map(function(l){return l.stealth}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h(s.map(function(l){return l.resistance}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h(s.map(function(l){return l.stageSpeed}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h(s.map(function(l){return l.transmissibility}))})]})]})})})},i=["flask","vial","eye-dropper"],m=function(u,s){var l=(0,a.useBackend)(s),v=l.act,N=l.data,C=N.synthesisCooldown,p=N.beakerContainsVirus,g=N.resistances;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Antibodies",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{horizontal:!0,wrap:!0,children:g.map(function(V,B){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:i[B%i.length],disabled:!!C,onClick:function(){function I(){return v("clone_vaccine",{resistance_index:B+1})}return I}(),mr:"0.5em"}),V]},B)})})})})}},67921:function(T,r,n){"use strict";r.__esModule=!0,r.ParticleAccelerator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ParticleAccelerator=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.assembled,m=c.power,d=c.strength,u=c.max_strength;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:160,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Control Panel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Connect",onClick:function(){function s(){return h("scan")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",mb:"5px",children:(0,e.createComponentVNode)(2,t.Box,{color:i?"good":"bad",children:i?"Operational":"Error: Verify Configuration"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,disabled:!i,onClick:function(){function s(){return h("power")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Strength",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:!i||d===0,onClick:function(){function s(){return h("remove_strength")}return s}(),mr:"4px"}),d,(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:!i||d===u,onClick:function(){function s(){return h("add_strength")}return s}(),ml:"4px"})]})]})})})})}return b}()},71432:function(T,r,n){"use strict";r.__esModule=!0,r.PdaPainter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.PdaPainter=function(){function k(h,c){var i=(0,a.useBackend)(c),m=i.data,d=m.has_pda;return(0,e.createComponentVNode)(2,o.Window,{width:510,height:505,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:d?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,b)})})}return k}(),b=function(h,c){var i=(0,a.useBackend)(c),m=i.act;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"download",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{width:"160px",textAlign:"center",content:"Insert PDA",onClick:function(){function d(){return m("insert_pda")}return d}()})]})})})},y=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.pda_colors;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,S)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Table,{className:"PdaPainter__list",children:Object.keys(u).map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{onClick:function(){function l(){return m("choose_pda",{selectedPda:s})}return l}(),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+u[s][0],style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s})]},s)})})})})]})},S=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.current_appearance,s=d.preview_appearance;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Current PDA",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+u,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",content:"Eject",color:"green",onClick:function(){function l(){return m("eject_pda")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"paint-roller",content:"Paint PDA",onClick:function(){function l(){return m("paint_pda")}return l}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Preview",children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+s,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})})]})}},33388:function(T,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.PersonalCrafting=function(){function S(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.busy,u=m.category,s=m.display_craftable_only,l=m.display_compact,v=m.prev_cat,N=m.next_cat,C=m.subcategory,p=m.prev_subcat,g=m.next_subcat;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!d&&(0,e.createComponentVNode)(2,t.Dimmer,{fontSize:"32px",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog",spin:1})," Crafting..."]}),(0,e.createComponentVNode)(2,t.Section,{title:u,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:s?"check-square-o":"square-o",selected:s,onClick:function(){function V(){return i("toggle_recipes")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:l?"check-square-o":"square-o",selected:l,onClick:function(){function V(){return i("toggle_compact")}return V}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:v,icon:"arrow-left",onClick:function(){function V(){return i("backwardCat")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:N,icon:"arrow-right",onClick:function(){function V(){return i("forwardCat")}return V}()})]}),C&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:p,icon:"arrow-left",onClick:function(){function V(){return i("backwardSubCat")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:g,icon:"arrow-right",onClick:function(){function V(){return i("forwardSubCat")}return V}()})]}),l?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,y)]})]})})}return S}(),b=function(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.display_craftable_only,u=m.can_craft,s=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function v(){return i("make",{make:l.ref})}return v}()}),l.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:l.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:l.req_text,content:"Requirements",color:"transparent"}),l.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:l.tool_text,content:"Tools",color:"transparent"})]},l.name)}),!d&&s.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),l.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:l.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:l.req_text,content:"Requirements",color:"transparent"}),l.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:l.tool_text,content:"Tools",color:"transparent"})]},l.name)})]})})},y=function(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.display_craftable_only,u=m.can_craft,s=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[u.map(function(l){return(0,e.createComponentVNode)(2,t.Section,{title:l.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function v(){return i("make",{make:l.ref})}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[l.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:l.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:l.req_text}),l.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:l.tool_text})]})},l.name)}),!d&&s.map(function(l){return(0,e.createComponentVNode)(2,t.Section,{title:l.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[l.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:l.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:l.req_text}),l.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:l.tool_text})]})},l.name)})]})}},56150:function(T,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Photocopier=function(){function S(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:440,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Photocopier",color:"silver",children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Copies:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"2em",bold:!0,children:m.copynumber}),(0,e.createComponentVNode)(2,t.Stack.Item,{float:"right",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"minus",textAlign:"center",content:"",onClick:function(){function d(){return i("minus")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus",textAlign:"center",content:"",onClick:function(){function d(){return i("add")}return d}()})]})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Toner:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,children:m.toner})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Document:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!m.copyitem&&!m.mob,content:m.copyitem?m.copyitem:m.mob?m.mob+"'s ass!":"document",onClick:function(){function d(){return i("removedocument")}return d}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Folder:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!m.folder,content:m.folder?m.folder:"folder",onClick:function(){function d(){return i("removefolder")}return d}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,b)}),(0,e.createComponentVNode)(2,y)]})})})}return S}(),b=function(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.issilicon;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"copy",float:"center",textAlign:"center",content:"Copy",onClick:function(){function u(){return i("copy")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file-import",float:"center",textAlign:"center",content:"Scan",onClick:function(){function u(){return i("scandocument")}return u}()}),!!d&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file",color:"green",float:"center",textAlign:"center",content:"Print Text",onClick:function(){function u(){return i("ai_text")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"image",color:"green",float:"center",textAlign:"center",content:"Print Image",onClick:function(){function u(){return i("ai_pic")}return u}()})],4)],0)},y=function(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Scanned Files",children:m.files.map(function(d){return(0,e.createComponentVNode)(2,t.Section,{title:d.name,buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:m.toner<=0,onClick:function(){function u(){return i("filecopy",{uid:d.uid})}return u}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",content:"Delete",color:"bad",onClick:function(){function u(){return i("deletefile",{uid:d.uid})}return u}()})]})},d.name)})})}},84676:function(T,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=["tempKey"];function b(h,c){if(h==null)return{};var i={};for(var m in h)if({}.hasOwnProperty.call(h,m)){if(c.includes(m))continue;i[m]=h[m]}return i}var y={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up"},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right"},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down"},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},S=function(c,i){var m=c.tempKey,d=b(c,f),u=y[m];if(!u)return null;var s=(0,a.useBackend)(i),l=s.data,v=s.act,N=l.currentTemp,C=u.label,p=u.icon,g=m===N,V=function(){v("setTemp",{temp:m})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({color:"transparent",selected:g,onClick:V},d,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:p}),C]})))},k=r.PoolController=function(){function h(c,i){for(var m=(0,a.useBackend)(i),d=m.data,u=d.emagged,s=d.currentTemp,l=y[s]||y.normal,v=l.label,N=l.color,C=[],p=0,g=Object.entries(y);p50?"battery-half":"battery-quarter")||N==="C"&&"bolt"||N==="F"&&"battery-full"||N==="M"&&"slash",color:N==="N"&&(C>50?"yellow":"red")||N==="C"&&"yellow"||N==="F"&&"green"||N==="M"&&"orange"}),(0,e.createComponentVNode)(2,S.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(C)+"%"})],4)};u.defaultHooks=f.pureComponentHooks;var s=function(v){var N,C,p=v.status;switch(p){case"AOn":N=!0,C=!0;break;case"AOff":N=!0,C=!1;break;case"On":N=!1,C=!0;break;case"Off":N=!1,C=!1;break}var g=(C?"On":"Off")+(" ["+(N?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,S.ColorBox,{color:C?"good":"bad",content:N?void 0:"M",title:g})};s.defaultHooks=f.pureComponentHooks},50992:function(T,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(29319),f=n(3939),b=n(321),y=n(5485),S=n(98595),k=r.PrisonerImplantManager=function(){function h(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.loginState,l=u.prisonerInfo,v=u.chemicalInfo,N=u.trackingInfo,C;if(!s.logged_in)return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,y.LoginScreen)})});var p=[1,5,10];return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.LoginInfo),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Prisoner Points Manager System",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.name?"eject":"id-card",selected:l.name,content:l.name?l.name:"-----",tooltip:l.name?"Eject ID":"Insert ID",onClick:function(){function g(){return d("id_card")}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Points",children:[l.points!==null?l.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:l.points===null,content:"Reset",onClick:function(){function g(){return d("reset_points")}return g}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Point Goal",children:[l.goal!==null?l.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:l.goal===null,content:"Edit",onClick:function(){function g(){return(0,f.modalOpen)(i,"set_points")}return g}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createVNode)(1,"box",null,[(0,e.createTextVNode)("1 minute of prison time should roughly equate to 150 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Sentences should not exceed 5000 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Permanent prisoners should not be given a point goal."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Prisoners who meet their point goal will be able to automatically access their locker and return to the station using the shuttle.")],4,{hidden:l.goal===null})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Tracking Implants",children:N.map(function(g){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",g.subject]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:g.location}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:g.health}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Warn",tooltip:"Broadcast a message to this poor sod",onClick:function(){function V(){return(0,f.modalOpen)(i,"warn",{uid:g.uid})}return V}()})})]})]},g.subject)]}),(0,e.createVNode)(1,"br")],4)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Chemical Implants",children:v.map(function(g){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",g.name]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Reagents",children:g.volume})}),p.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:g.volumei;return(0,e.createComponentVNode)(2,t.ImageButton,{fluid:!0,asset:["prize_counter64x64",g.imageID],title:g.name,buttonsAlt:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{bold:!0,translucent:!0,fontSize:1.5,tooltip:V&&"Not enough tickets",disabled:V,onClick:function(){function B(){return h("purchase",{purchase:g.itemID})}return B}(),children:[g.cost,(0,e.createComponentVNode)(2,t.Icon,{m:0,mt:.25,name:"ticket",color:V?"bad":"good",size:1.6})]}),children:g.desc},g.name)})})})})})})}return b}()},94813:function(T,r,n){"use strict";r.__esModule=!0,r.RCD=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=n(49148),y=r.RCD=function(){function d(u,s){return(0,e.createComponentVNode)(2,o.Window,{width:480,height:670,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)]})})]})}return d}(),S=function(u,s){var l=(0,a.useBackend)(s),v=l.data,N=v.matter,C=v.max_matter,p=C*.7,g=C*.25;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Matter Storage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[p,1/0],average:[g,p],bad:[-1/0,g]},value:N,maxValue:C,children:(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:N+" / "+C+" units"})})})})},k=function(){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Construction Type",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,h,{mode_type:"Floors and Walls"}),(0,e.createComponentVNode)(2,h,{mode_type:"Airlocks"}),(0,e.createComponentVNode)(2,h,{mode_type:"Windows"}),(0,e.createComponentVNode)(2,h,{mode_type:"Deconstruction"})]})})})},h=function(u,s){var l=(0,a.useBackend)(s),v=l.act,N=l.data,C=u.mode_type,p=N.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",content:C,selected:p===C?1:0,onClick:function(){function g(){return v("mode",{mode:C})}return g}()})})},c=function(u,s){var l=(0,a.useBackend)(s),v=l.act,N=l.data,C=N.door_name,p=N.electrochromic,g=N.airlock_glass;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Airlock Settings",children:(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",icon:"pen-alt",content:(0,e.createFragment)([(0,e.createTextVNode)("Rename: "),(0,e.createVNode)(1,"b",null,C,0)],0),onClick:function(){function V(){return(0,f.modalOpen)(s,"renameAirlock")}return V}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:g===1&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:p?"toggle-on":"toggle-off",content:"Electrochromic",selected:p,onClick:function(){function V(){return v("electrochromic")}return V}()})})]})})})},i=function(u,s){var l=(0,a.useBackend)(s),v=l.act,N=l.data,C=N.tab,p=N.locked,g=N.one_access,V=N.selected_accesses,B=N.regions;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"cog",selected:C===1,onClick:function(){function I(){return v("set_tab",{tab:1})}return I}(),children:"Airlock Types"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===2,icon:"list",onClick:function(){function I(){return v("set_tab",{tab:2})}return I}(),children:"Airlock Access"})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:C===1?(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Types",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m,{check_number:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m,{check_number:1})})]})}):C===2&&p?(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Access",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock-open",content:"Unlock",onClick:function(){function I(){return v("set_lock",{new_lock:"unlock"})}return I}()}),children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Airlock access selection is currently locked."]})})}):(0,e.createComponentVNode)(2,b.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock",content:"Lock",onClick:function(){function I(){return v("set_lock",{new_lock:"lock"})}return I}()}),usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:g,content:"One",onClick:function(){function I(){return v("set_one_access",{access:"one"})}return I}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!g,width:4,content:"All",onClick:function(){function I(){return v("set_one_access",{access:"all"})}return I}()})],4),accesses:B,selectedList:V,accessMod:function(){function I(L){return v("set",{access:L})}return I}(),grantAll:function(){function I(){return v("grant_all")}return I}(),denyAll:function(){function I(){return v("clear_all")}return I}(),grantDep:function(){function I(L){return v("grant_region",{region:L})}return I}(),denyDep:function(){function I(L){return v("deny_region",{region:L})}return I}()})})],4)},m=function(u,s){for(var l=(0,a.useBackend)(s),v=l.act,N=l.data,C=N.door_types_ui_list,p=N.door_type,g=u.check_number,V=[],B=0;Bf?w=(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,mb:1,children:"There are new messages"}):w=(0,e.createComponentVNode)(2,t.Box,{color:"label",mb:1,children:"There are no new messages"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Main Menu",buttons:(0,e.createComponentVNode)(2,t.Button,{width:9,content:L?"Speaker Off":"Speaker On",selected:!L,icon:L?"volume-mute":"volume-up",onClick:function(){function A(){return g("toggleSilent")}return A}()}),children:[w,(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"View Messages",icon:B>f?"envelope-open-text":"envelope",onClick:function(){function A(){return g("setScreen",{setScreen:6})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Request Assistance",icon:"hand-paper",onClick:function(){function A(){return g("setScreen",{setScreen:1})}return A}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Request Supplies",icon:"box",onClick:function(){function A(){return g("setScreen",{setScreen:2})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Request Secondary Goal",icon:"clipboard-list",onClick:function(){function A(){return g("setScreen",{setScreen:11})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Relay Anonymous Information",icon:"comment",onClick:function(){function A(){return g("setScreen",{setScreen:3})}return A}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Print Shipping Label",icon:"tag",onClick:function(){function A(){return g("setScreen",{setScreen:9})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function A(){return g("setScreen",{setScreen:10})}return A}()})]})}),!!I&&(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){function A(){return g("setScreen",{setScreen:8})}return A}()})})]})})},c=function(N,C){var p=(0,a.useBackend)(C),g=p.act,V=p.data,B=V.department,I=[],L;switch(N.purpose){case"ASSISTANCE":I=V.assist_dept,L="Request assistance from another department";break;case"SUPPLIES":I=V.supply_dept,L="Request supplies from another department";break;case"INFO":I=V.info_dept,L="Relay information to another department";break}return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:L,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function w(){return g("setScreen",{setScreen:0})}return w}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:I.filter(function(w){return w!==B}).map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w,textAlign:"right",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function A(){return g("writeInput",{write:w,priority:y})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function A(){return g("writeInput",{write:w,priority:S})}return A}()})]},w)})})})})},i=function(N,C){var p=(0,a.useBackend)(C),g=p.act,V=p.data,B;switch(N.type){case"SUCCESS":B="Message sent successfully";break;case"FAIL":B="Unable to contact messaging server";break}return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:B,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function I(){return g("setScreen",{setScreen:0})}return I}()})})},m=function(N,C){var p=(0,a.useBackend)(C),g=p.act,V=p.data,B,I;switch(N.type){case"MESSAGES":B=V.message_log,I="Message Log";break;case"SHIPPING":B=V.shipping_log,I="Shipping label print log";break}return B.reverse(),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:I,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function L(){return g("setScreen",{setScreen:0})}return L}()}),children:B.map(function(L){return(0,e.createComponentVNode)(2,t.Box,{textAlign:"left",children:[L.map(function(w,A){return(0,e.createVNode)(1,"div",null,w,0,null,A)}),(0,e.createVNode)(1,"hr")]},L)})})})},d=function(N,C){var p=(0,a.useBackend)(C),g=p.act,V=p.data,B=V.recipient,I=V.message,L=V.msgVerified,w=V.msgStamped;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Message Authentication",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function A(){return g("setScreen",{setScreen:0})}return A}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:L}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:w})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){function A(){return g("department",{department:B})}return A}()})})})],4)},u=function(N,C){var p=(0,a.useBackend)(C),g=p.act,V=p.data,B=V.message,I=V.announceAuth;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Station-Wide Announcement",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function L(){return g("setScreen",{setScreen:0})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Edit Message",icon:"edit",onClick:function(){function L(){return g("writeAnnouncement")}return L}()})],4),children:B})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[I?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Send Announcement",icon:"bullhorn",disabled:!(I&&B),onClick:function(){function L(){return g("sendAnnouncement")}return L}()})]})})],4)},s=function(N,C){var p=(0,a.useBackend)(C),g=p.act,V=p.data,B=V.shipDest,I=V.msgVerified,L=V.ship_dept;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"Print Shipping Label",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function w(){return g("setScreen",{setScreen:0})}return w}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:I})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(B&&I),onClick:function(){function w(){return g("printLabel")}return w}()})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Destinations",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:L.map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w,textAlign:"right",className:"candystripe",children:(0,e.createComponentVNode)(2,t.Button,{content:B===w?"Selected":"Select",selected:B===w,onClick:function(){function A(){return g("shipSelect",{shipSelect:w})}return A}()})},w)})})})})],4)},l=function(N,C){var p=(0,a.useBackend)(C),g=p.act,V=p.data,B=V.secondaryGoalAuth,I=V.secondaryGoalEnabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Request Secondary Goal",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function L(){return g("setScreen",{setScreen:0})}return L}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[I?B?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Complete your current goal first!"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Request Secondary Goal",icon:"clipboard-list",disabled:!(B&&I),onClick:function(){function L(){return g("requestSecondaryGoal")}return L}()})]})})],4)}},9861:function(T,r,n){"use strict";r.__esModule=!0,r.RndBackupConsole=r.LinkMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.RndBackupConsole=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.network_name,d=i.has_disk,u=i.disk_name,s=i.linked,l=i.techs,v=i.last_timestamp;return(0,e.createComponentVNode)(2,o.Window,{width:900,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Device Info",children:[(0,e.createComponentVNode)(2,t.Box,{mb:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Network",children:s?(0,e.createComponentVNode)(2,t.Button,{content:m,icon:"unlink",selected:1,onClick:function(){function N(){return c("unlink")}return N}()}):"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Loaded Disk",children:d?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:u+" (Last backup: "+v+")",icon:"save",selected:1,onClick:function(){function N(){return c("eject_disk")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Save all",onClick:function(){function N(){return c("saveall2disk")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Load all",onClick:function(){function N(){return c("saveall2network")}return N}()})],4):"None"})]})}),!!s||(0,e.createComponentVNode)(2,b)]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Section,{title:"Tech Info",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Tech Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Level"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Disk Level"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),Object.keys(l).map(function(N){return!(l[N].network_level>0||l[N].disk_level>0)||(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l[N].name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l[N].network_level||"None"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l[N].disk_level||"None"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Load to network",disabled:!d||!s,onClick:function(){function C(){return c("savetech2network",{tech:N})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Load to disk",disabled:!d||!s,onClick:function(){function C(){return c("savetech2disk",{tech:N})}return C}()})]})]},N)})]})})})]})})}return y}(),b=r.LinkMenu=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.controllers;return(0,e.createComponentVNode)(2,t.Section,{title:"Setup Linkage",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),m.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function u(){return c("linktonetworkcontroller",{target_controller:d.addr})}return u}()})})]},d.addr)})]})})}return y}()},37556:function(T,r,n){"use strict";r.__esModule=!0,r.DataDiskMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o="design",f="tech",b=function(i,m){var d=(0,a.useBackend)(m),u=d.data,s=d.act,l=u.disk_data;return l?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:l.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:l.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:l.desc})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function v(){return s("updt_tech")}return v}()})})]}):null},y=function(i,m){var d=(0,a.useBackend)(m),u=d.data,s=d.act,l=u.disk_data;if(!l)return null;var v=l.name,N=l.lathe_types,C=l.materials,p=N.join(", ");return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:v}),p?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lathe Types",children:p}):null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Required Materials"})]}),C.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:["- ",(0,e.createVNode)(1,"span",null,g.name,0,{style:{"text-transform":"capitalize"}})," x ",g.amount]},g.name)}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function g(){return s("updt_design")}return g}()})})]})},S=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.disk_data;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Section,Object.assign({buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Erase",icon:"eraser",disabled:!l,onClick:function(){function v(){return u("erase_disk")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",icon:"eject",onClick:function(){function v(){u("eject_disk")}return v}()})],4)},i)))},k=function(i,m){var d=(0,a.useBackend)(m),u=d.data,s=d.act,l=u.disk_type,v=u.to_copy,N=i.title;return(0,e.createComponentVNode)(2,S,{title:N,children:(0,e.createComponentVNode)(2,t.Box,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:v.sort(function(C,p){return C.name.localeCompare(p.name)}).map(function(C){var p=C.name,g=C.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:p,children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){function V(){l===f?s("copy_tech",{id:g}):s("copy_design",{id:g})}return V}()})},g)})})})})},h=r.DataDiskMenu=function(){function c(i,m){var d=(0,a.useBackend)(m),u=d.data,s=u.disk_type,l=u.disk_data;if(!s)return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",children:"No disk loaded."});switch(s){case o:return l?(0,e.createComponentVNode)(2,S,{title:"Design Disk",children:(0,e.createComponentVNode)(2,y)}):(0,e.createComponentVNode)(2,k,{title:"Design Disk"});case f:return l?(0,e.createComponentVNode)(2,S,{title:"Technology Disk",children:(0,e.createComponentVNode)(2,b)}):(0,e.createComponentVNode)(2,k,{title:"Technology Disk"});default:return(0,e.createFragment)([(0,e.createTextVNode)("UNRECOGNIZED DISK TYPE")],4)}}return c}()},58147:function(T,r,n){"use strict";r.__esModule=!0,r.DeconstructionMenu=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=r.DeconstructionMenu=function(){function y(S,k){var h=(0,t.useBackend)(k),c=h.data,i=h.act,m=c.tech_levels,d=c.loaded_item,u=c.linked_destroy;return u?d?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Object Analysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Deconstruct",icon:"microscope",onClick:function(){function s(){i("deconstruct")}return s}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Eject",icon:"eject",onClick:function(){function s(){i("eject_item")}return s}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:d.name})})}),(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{id:"research-levels",children:[(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Research Field"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Current Level"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Object Level"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"New Level"})]}),m.map(function(s){return(0,e.createComponentVNode)(2,b,{techLevel:s},s.id)})]})})],4):(0,e.createComponentVNode)(2,o.Section,{title:"Deconstruction Menu",children:"No item loaded. Standing by..."}):(0,e.createComponentVNode)(2,o.Section,{title:"Deconstruction Menu",children:"NO DESTRUCTIVE ANALYZER LINKED TO CONSOLE"})}return y}(),b=function(S,k){var h=S.techLevel,c=h.name,i=h.desc,m=h.level,d=h.object_level,u=h.ui_icon,s=d!=null,l=s&&d>=m?Math.max(d,m+1):m;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"circle-info",tooltip:i})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:u})," ",c]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:m}),s?(0,e.createComponentVNode)(2,o.Table.Cell,{children:d}):(0,e.createComponentVNode)(2,o.Table.Cell,{className:"research-level-no-effect",children:"-"}),(0,e.createComponentVNode)(2,o.Table.Cell,{className:(0,a.classes)([l!==m&&"upgraded-level"]),children:l})]})}},16830:function(T,r,n){"use strict";r.__esModule=!0,r.LatheCategory=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(52662),f=r.LatheCategory=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.data,c=k.act,i=h.category,m=h.matching_designs,d=h.menu,u=d===4,s=u?"build":"imprint";return(0,e.createComponentVNode)(2,t.Section,{title:i,children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,t.Table,{className:"RndConsole__LatheCategory__MatchingDesigns",children:m.map(function(l){var v=l.id,N=l.name,C=l.can_build,p=l.materials;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:N,disabled:C<1,onClick:function(){function g(){return c(s,{id:v,amount:1})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function g(){return c(s,{id:v,amount:5})}return g}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function g(){return c(s,{id:v,amount:10})}return g}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.map(function(g){return(0,e.createFragment)([" | ",(0,e.createVNode)(1,"span",g.is_red?"color-red":null,[g.amount,(0,e.createTextVNode)(" "),g.name],0)],0)})})]},v)})})]})}return b}()},70497:function(T,r,n){"use strict";r.__esModule=!0,r.LatheChemicalStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheChemicalStorage=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.data,h=S.act,c=k.loaded_chemicals,i=k.menu===4;return(0,e.createComponentVNode)(2,t.Section,{title:"Chemical Storage",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Purge All",icon:"trash",onClick:function(){function m(){var d=i?"disposeallP":"disposeallI";h(d)}return m}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:c.map(function(m){var d=m.volume,u=m.name,s=m.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+d+" of "+u,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function l(){var v=i?"disposeP":"disposeI";h(v,{id:s})}return l}()})},s)})})]})}return f}()},70864:function(T,r,n){"use strict";r.__esModule=!0,r.LatheMainMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(52662),f=n(68198),b=r.LatheMainMenu=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.data,i=h.act,m=c.menu,d=c.categories,u=m===4?"Protolathe":"Circuit Imprinter";return(0,e.createComponentVNode)(2,t.Section,{title:u+" Menu",children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,f.LatheSearch),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:d.map(function(s){return(0,e.createComponentVNode)(2,t.Flex,{style:{"flex-basis":"50%","margin-bottom":"6px"},children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",content:s,onClick:function(){function l(){i("setCategory",{category:s})}return l}()})},s)})})]})}return y}()},42878:function(T,r,n){"use strict";r.__esModule=!0,r.LatheMaterialStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheMaterialStorage=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.data,h=S.act,c=k.loaded_materials;return(0,e.createComponentVNode)(2,t.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,e.createComponentVNode)(2,t.Table,{children:c.map(function(i){var m=i.id,d=i.amount,u=i.name,s=function(){function C(p){var g=k.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";h(g,{id:m,amount:p})}return C}(),l=Math.floor(d/2e3),v=d<1,N=l===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:v?"color-grey":"color-yellow",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"210px",children:["* ",d," of ",u]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",l," sheet",N,")"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d>=2e3?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"1x",icon:"eject",onClick:function(){function C(){return s(1)}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"C",icon:"eject",onClick:function(){function C(){return s("custom")}return C}()}),d>=2e3*5?(0,e.createComponentVNode)(2,t.Button,{content:"5x",icon:"eject",onClick:function(){function C(){return s(5)}return C}()}):null,(0,e.createComponentVNode)(2,t.Button,{content:"All",icon:"eject",onClick:function(){function C(){return s(50)}return C}()})],0):null})]},m)})})})}return f}()},52662:function(T,r,n){"use strict";r.__esModule=!0,r.LatheMaterials=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheMaterials=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.data,h=k.total_materials,c=k.max_materials,i=k.max_chemicals,m=k.total_chemicals;return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,e.createComponentVNode)(2,t.Table,{width:"auto",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Material Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h}),c?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+c}):null]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Chemical Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:m}),i?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+i}):null]})]})})}return f}()},9681:function(T,r,n){"use strict";r.__esModule=!0,r.LatheMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(12644),f=n(70864),b=n(16830),y=n(42878),S=n(70497),k=["menu"];function h(u,s){if(u==null)return{};var l={};for(var v in u)if({}.hasOwnProperty.call(u,v)){if(s.includes(v))continue;l[v]=u[v]}return l}var c=t.Tabs.Tab,i=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.menu===o.MENU.LATHE?["nav_protolathe",C.submenu_protolathe]:["nav_imprinter",C.submenu_imprinter],g=p[0],V=p[1],B=s.menu,I=h(s,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,c,Object.assign({selected:V===B,onClick:function(){function L(){return N(g,{menu:B})}return L}()},I)))},m=function(s){switch(s){case o.PRINTER_MENU.MAIN:return(0,e.createComponentVNode)(2,f.LatheMainMenu);case o.PRINTER_MENU.SEARCH:return(0,e.createComponentVNode)(2,b.LatheCategory);case o.PRINTER_MENU.MATERIALS:return(0,e.createComponentVNode)(2,y.LatheMaterialStorage);case o.PRINTER_MENU.CHEMICALS:return(0,e.createComponentVNode)(2,S.LatheChemicalStorage)}},d=r.LatheMenu=function(){function u(s,l){var v=(0,a.useBackend)(l),N=v.data,C=N.menu,p=N.linked_lathe,g=N.linked_imprinter;return C===o.MENU.LATHE&&!p?(0,e.createComponentVNode)(2,t.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):C===o.MENU.IMPRINTER&&!g?(0,e.createComponentVNode)(2,t.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,i,{menu:o.PRINTER_MENU.MAIN,icon:"bars",children:"Main Menu"}),(0,e.createComponentVNode)(2,i,{menu:o.PRINTER_MENU.MATERIALS,icon:"layer-group",children:"Materials"}),(0,e.createComponentVNode)(2,i,{menu:o.PRINTER_MENU.CHEMICALS,icon:"flask-vial",children:"Chemicals"})]}),m(N.menu===o.MENU.LATHE?N.submenu_protolathe:N.submenu_imprinter)]})}return u}()},68198:function(T,r,n){"use strict";r.__esModule=!0,r.LatheSearch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheSearch=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function h(c,i){return k("search",{to_search:i})}return h}()})})}return f}()},81421:function(T,r,n){"use strict";r.__esModule=!0,r.LinkMenu=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),f=r.LinkMenu=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.controllers;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Setup Linkage",children:(0,e.createComponentVNode)(2,o.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Link"})]}),i.map(function(m){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:m.addr}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:m.net_id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Link",icon:"link",onClick:function(){function d(){return h("linktonetworkcontroller",{target_controller:m.addr})}return d}()})})]},m.addr)})]})})})})}return b}()},6256:function(T,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.SettingsMenu=function(){function y(S,k){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,b)]})}return y}(),f=function(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.sync,d=i.admin;return(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",align:"flex-start",children:(0,e.createComponentVNode)(2,t.Button,{color:"red",icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function u(){c("unlink")}return u}()})})})},b=function(S,k){var h=(0,a.useBackend)(k),c=h.data,i=h.act,m=c.linked_destroy,d=c.linked_lathe,u=c.linked_imprinter;return(0,e.createComponentVNode)(2,t.Section,{title:"Linked Devices",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){function s(){return i("find_device")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destructive Analyzer",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",disabled:!m,content:m?"Unlink":"Undetected",onClick:function(){function s(){return i("disconnect",{item:"destroy"})}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Protolathe",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",disabled:!d,content:d?"Unlink":"Undetected",onClick:function(){function s(){i("disconnect",{item:"lathe"})}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Circuit Imprinter",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",disabled:!u,content:u?"Unlink":"Undetected",onClick:function(){function s(){return i("disconnect",{item:"imprinter"})}return s}()})})]})})}},12644:function(T,r,n){"use strict";r.__esModule=!0,r.RndConsole=r.PRINTER_MENU=r.MENU=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),f=n(35840),b=n(37556),y=n(9681),S=n(81421),k=n(6256),h=n(58147),c=["menu"];function i(p,g){if(p==null)return{};var V={};for(var B in p)if({}.hasOwnProperty.call(p,B)){if(g.includes(B))continue;V[B]=p[B]}return V}var m=o.Tabs.Tab,d=r.MENU={MAIN:0,DISK:2,DESTROY:3,LATHE:4,IMPRINTER:5,SETTINGS:6},u=r.PRINTER_MENU={MAIN:0,SEARCH:1,MATERIALS:2,CHEMICALS:3},s=function(g){switch(g){case d.MAIN:return(0,e.createComponentVNode)(2,C);case d.DISK:return(0,e.createComponentVNode)(2,b.DataDiskMenu);case d.DESTROY:return(0,e.createComponentVNode)(2,h.DeconstructionMenu);case d.LATHE:case d.IMPRINTER:return(0,e.createComponentVNode)(2,y.LatheMenu);case d.SETTINGS:return(0,e.createComponentVNode)(2,k.SettingsMenu);default:return"UNKNOWN MENU"}},l=function(g,V){var B=(0,a.useBackend)(V),I=B.act,L=B.data,w=L.menu,A=g.menu,x=i(g,c);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,m,Object.assign({selected:w===A,onClick:function(){function E(){return I("nav",{menu:A})}return E}()},x)))},v=r.RndConsole=function(){function p(g,V){var B=(0,a.useBackend)(V),I=B.act,L=B.data;if(!L.linked)return(0,e.createComponentVNode)(2,S.LinkMenu);var w=L.menu,A=L.linked_destroy,x=L.linked_lathe,E=L.linked_imprinter,P=L.wait_message;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole",children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,l,{icon:"flask",menu:d.MAIN,children:"Research"}),!!A&&(0,e.createComponentVNode)(2,l,{icon:"microscope",menu:d.DESTROY,children:"Analyze"}),!!x&&(0,e.createComponentVNode)(2,l,{icon:"print",menu:d.LATHE,children:"Protolathe"}),!!E&&(0,e.createComponentVNode)(2,l,{icon:"memory",menu:d.IMPRINTER,children:"Imprinter"}),(0,e.createComponentVNode)(2,l,{icon:"floppy-disk",menu:d.DISK,children:"Disk"}),(0,e.createComponentVNode)(2,l,{icon:"cog",menu:d.SETTINGS,children:"Settings"})]}),s(w),(0,e.createComponentVNode)(2,N)]})})})}return p}(),N=function(g,V){var B=(0,a.useBackend)(V),I=B.data,L=I.wait_message;return L?(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay",children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay__Wrapper",children:(0,e.createComponentVNode)(2,o.NoticeBox,{color:"black",children:L})})}):null},C=function(g,V){var B=(0,a.useBackend)(V),I=B.data,L=I.tech_levels;return(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{id:"research-levels",children:[(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Research Field"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Level"})]}),L.map(function(w){var A=w.id,x=w.name,E=w.desc,P=w.level,j=w.ui_icon;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"circle-info",tooltip:E})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:j})," ",x]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P})]},A)})]})})}},29205:function(T,r,n){"use strict";r.__esModule=!0,r.RndNetController=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=r.RndNetController=function(){function k(h,c){var i=(0,t.useBackend)(c),m=i.act,d=i.data,u=d.ion,s=(0,t.useLocalState)(c,"mainTabIndex",0),l=s[0],v=s[1],N=function(){function C(p){switch(p){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,S);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return C}();return(0,e.createComponentVNode)(2,f.Window,{width:900,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:l===0,onClick:function(){function C(){return v(0)}return C}(),children:"Network Management"},"ConfigPage"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"floppy-disk",selected:l===1,onClick:function(){function C(){return v(1)}return C}(),children:"Design Management"},"DesignPage")]}),N(l)]})})}return k}(),y=function(h,c){var i=(0,t.useBackend)(c),m=i.act,d=i.data,u=(0,t.useLocalState)(c,"filterType","ALL"),s=u[0],l=u[1],v=d.network_password,N=d.network_name,C=d.devices,p=[];p.push(s),s==="MSC"&&(p.push("BCK"),p.push("PGN"));var g=s==="ALL"?C:C.filter(function(V){return p.indexOf(V.dclass)>-1});return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Network Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Network Name",children:(0,e.createComponentVNode)(2,o.Button,{content:N||"Unset",selected:N,icon:"edit",onClick:function(){function V(){return m("network_name")}return V}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Network Password",children:(0,e.createComponentVNode)(2,o.Button,{content:v||"Unset",selected:v,icon:"lock",onClick:function(){function V(){return m("network_password")}return V}()})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Connected Devices",children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="ALL",onClick:function(){function V(){return l("ALL")}return V}(),icon:"network-wired",children:"All Devices"},"AllDevices"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="SRV",onClick:function(){function V(){return l("SRV")}return V}(),icon:"server",children:"R&D Servers"},"RNDServers"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="RDC",onClick:function(){function V(){return l("RDC")}return V}(),icon:"desktop",children:"R&D Consoles"},"RDConsoles"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="MFB",onClick:function(){function V(){return l("MFB")}return V}(),icon:"industry",children:"Exosuit Fabricators"},"Mechfabs"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="MSC",onClick:function(){function V(){return l("MSC")}return V}(),icon:"microchip",children:"Miscellaneous Devices"},"Misc")]}),(0,e.createComponentVNode)(2,o.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Device Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Device ID"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Unlink"})]}),g.map(function(V){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:V.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:V.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function B(){return m("unlink_device",{dclass:V.dclass,uid:V.id})}return B}()})})]},V.id)})]})]})],4)},S=function(h,c){var i=(0,t.useBackend)(c),m=i.act,d=i.data,u=d.designs,s=(0,t.useLocalState)(c,"searchText",""),l=s[0],v=s[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Design Management",children:[(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search for designs",mb:2,onInput:function(){function N(C,p){return v(p)}return N}()}),u.filter((0,a.createSearch)(l,function(N){return N.name})).map(function(N){return(0,e.createComponentVNode)(2,o.Button.Checkbox,{fluid:!0,content:N.name,checked:!N.blacklisted,onClick:function(){function C(){return m(N.blacklisted?"unblacklist_design":"blacklist_design",{d_uid:N.uid})}return C}()},N.name)})]})}},63315:function(T,r,n){"use strict";r.__esModule=!0,r.RndServer=void 0;var e=n(89005),a=n(72253),t=n(44879),o=n(36036),f=n(98595),b=r.RndServer=function(){function k(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.active,s=d.network_name;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"Server Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Machine power",children:(0,e.createComponentVNode)(2,o.Button,{content:u?"On":"Off",selected:u,icon:"power-off",onClick:function(){function l(){return m("toggle_active")}return l}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Link status",children:s===null?(0,e.createComponentVNode)(2,o.Box,{color:"red",children:"Unlinked"}):(0,e.createComponentVNode)(2,o.Box,{color:"green",children:"Linked"})})]})}),s===null?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,y)]})})}return k}(),y=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.network_name;return(0,e.createComponentVNode)(2,o.Section,{title:"Network Info",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Connected network ID",children:u}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unlink",children:(0,e.createComponentVNode)(2,o.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function s(){return m("unlink")}return s}()})})]})})},S=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.controllers;return(0,e.createComponentVNode)(2,o.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,o.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Link"})]}),u.map(function(s){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:s.netname}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Link",icon:"link",onClick:function(){function l(){return m("link",{addr:s.addr})}return l}()})})]},s.addr)})]})})}},26109:function(T,r,n){"use strict";r.__esModule=!0,r.RobotSelfDiagnosis=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(25328),b=function(k,h){var c=k/h;return c<=.2?"good":c<=.5?"average":"bad"},y=r.RobotSelfDiagnosis=function(){function S(k,h){var c=(0,a.useBackend)(h),i=c.data,m=i.component_data;return(0,e.createComponentVNode)(2,o.Window,{width:280,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:m.map(function(d,u){return(0,e.createComponentVNode)(2,t.Section,{title:(0,f.capitalize)(d.name),children:d.installed<=0?(0,e.createComponentVNode)(2,t.NoticeBox,{m:-.5,height:3.5,color:"red",style:{"font-style":"normal"},children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,textAlign:"center",align:"center",color:"#e8e8e8",children:d.installed===-1?"Destroyed":"Missing"})})}):(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"72%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",color:b(d.brute_damage,d.max_damage),children:d.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:b(d.electronic_damage,d.max_damage),children:d.electronic_damage})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Powered",color:d.powered?"good":"bad",children:d.powered?"Yes":"No"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Enabled",color:d.status?"good":"bad",children:d.status?"Yes":"No"})]})})]})},u)})})})}return S}()},97997:function(T,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.RoboticsControlConsole=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.can_hack,d=i.safety,u=i.show_lock_all,s=i.cyborgs,l=s===void 0?[]:s;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!u&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Lock Down",children:[(0,e.createComponentVNode)(2,t.Button,{icon:d?"lock":"unlock",content:d?"Disable Safety":"Enable Safety",selected:d,onClick:function(){function v(){return c("arm",{})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lock",disabled:d,content:"Lock ALL Cyborgs",color:"bad",onClick:function(){function v(){return c("masslock",{})}return v}()})]}),(0,e.createComponentVNode)(2,b,{cyborgs:l,can_hack:m})]})})}return y}(),b=function(S,k){var h=S.cyborgs,c=S.can_hack,i=(0,a.useBackend)(k),m=i.act,d=i.data,u="Detonate";return d.detonate_cooldown>0&&(u+=" ("+d.detonate_cooldown+"s)"),h.length?h.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,buttons:(0,e.createFragment)([!!s.hackable&&!s.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function l(){return m("hackbot",{uid:s.uid})}return l}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:s.locked_down?"unlock":"lock",color:s.locked_down?"good":"default",content:s.locked_down?"Release":"Lockdown",disabled:!d.auth,onClick:function(){function l(){return m("stopbot",{uid:s.uid})}return l}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:u,disabled:!d.auth||d.detonate_cooldown>0,color:"bad",onClick:function(){function l(){return m("killbot",{uid:s.uid})}return l}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Box,{color:s.status?"bad":s.locked_down?"average":"good",children:s.status?"Not Responding":s.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:s.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s.health>50?"good":"bad",value:s.health/100})}),typeof s.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s.charge>30?"good":"bad",value:s.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:s.cell_capacity<3e4?"average":"good",children:s.cell_capacity})})],4)||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Power Cell"})}),!!s.is_hacked&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safeties",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"DISABLED"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Module",children:s.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:s.synchronization?"default":"average",children:s.synchronization||"None"})})]})},s.uid)}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cyborg units detected within access parameters."})}},54431:function(T,r,n){"use strict";r.__esModule=!0,r.Safe=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Safe=function(){function k(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.dial,s=d.open,l=d.locked,v=d.contents;return(0,e.createComponentVNode)(2,o.Window,{theme:"safe",width:600,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving",children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"25%"}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,e.createComponentVNode)(2,t.Icon,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:"3"}),(0,e.createVNode)(1,"br"),s?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,t.Box,{as:"img",className:"Safe--dial",src:"safe_dial.png",style:{transform:"rotate(-"+3.6*u+"deg)","z-index":0}})]}),!s&&(0,e.createComponentVNode)(2,S)]})})}return k}(),b=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.dial,s=d.open,l=d.locked,v=function(C,p){return(0,e.createComponentVNode)(2,t.Button,{disabled:s||p&&!l,icon:"arrow-"+(p?"right":"left"),content:(p?"Right":"Left")+" "+C,iconRight:p,onClick:function(){function g(){return m(p?"turnleft":"turnright",{num:C})}return g}(),style:{"z-index":10}})};return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:l,icon:s?"lock":"lock-open",content:s?"Close":"Open",mb:"0.5rem",onClick:function(){function N(){return m("open")}return N}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{position:"absolute",children:[v(50),v(10),v(1)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[v(1,!0),v(10,!0),v(50,!0)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--number",children:u})]})},y=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.contents;return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--contents",overflow:"auto",children:u.map(function(s,l){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mb:"0.5rem",onClick:function(){function v(){return m("retrieve",{index:l+1})}return v}(),children:[(0,e.createComponentVNode)(2,t.Box,{as:"img",src:s.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),s.name]}),(0,e.createVNode)(1,"br")],4,s)})})},S=function(h,c){return(0,e.createComponentVNode)(2,t.Section,{className:"Safe--help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,e.createComponentVNode)(2,t.Box,{children:["1. Turn the dial left to the first number.",(0,e.createVNode)(1,"br"),"2. Turn the dial right to the second number.",(0,e.createVNode)(1,"br"),"3. Continue repeating this process for each number, switching between left and right each time.",(0,e.createVNode)(1,"br"),"4. Open the safe."]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},29740:function(T,r,n){"use strict";r.__esModule=!0,r.SatelliteControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SatelliteControl=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.satellites,m=c.notice,d=c.meteor_shield,u=c.meteor_shield_coverage,s=c.meteor_shield_coverage_max,l=c.meteor_shield_coverage_percentage;return(0,e.createComponentVNode)(2,o.Window,{width:475,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[d&&(0,e.createComponentVNode)(2,t.Section,{title:"Station Shield Coverage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:l>=100?"good":"average",value:u,maxValue:s,children:[l," %"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Satellite Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alert",color:"red",children:c.notice}),i.map(function(v){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+v.id,children:[v.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:v.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function N(){return h("toggle",{id:v.id})}return N}()})]},v.id)})]})})]})})}return b}()},44162:function(T,r,n){"use strict";r.__esModule=!0,r.SecureStorage=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(98595),b=n(36352),y=n(92986),S=r.SecureStorage=function(){function i(m,d){return(0,e.createComponentVNode)(2,f.Window,{theme:"securestorage",height:500,width:280,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,h)})})})})}return i}(),k=function(m,d){var u=(0,t.useBackend)(d),s=u.act,l=window.event?m.which:m.keyCode;if(l===y.KEY_ENTER){m.preventDefault(),s("keypad",{digit:"E"});return}if(l===y.KEY_ESCAPE){m.preventDefault(),s("keypad",{digit:"C"});return}if(l===y.KEY_BACKSPACE){m.preventDefault(),s("backspace");return}if(l>=y.KEY_0&&l<=y.KEY_9){m.preventDefault(),s("keypad",{digit:l-y.KEY_0});return}if(l>=y.KEY_NUMPAD_0&&l<=y.KEY_NUMPAD_9){m.preventDefault(),s("keypad",{digit:l-y.KEY_NUMPAD_0});return}},h=function(m,d){var u=(0,t.useBackend)(d),s=u.act,l=u.data,v=l.locked,N=l.no_passcode,C=l.emagged,p=l.user_entered_code,g=[["1","2","3"],["4","5","6"],["7","8","9"],["C","0","E"]],V=N?"":v?"bad":"good";return(0,e.createComponentVNode)(2,o.Section,{fill:!0,onKeyDown:function(){function B(I){return k(I,d)}return B}(),children:[(0,e.createComponentVNode)(2,o.Stack.Item,{height:7.3,children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["SecureStorage__displayBox","SecureStorage__displayBox--"+V]),height:"100%",children:C?"ERROR":p})}),(0,e.createComponentVNode)(2,o.Table,{children:g.map(function(B){return(0,e.createComponentVNode)(2,b.TableRow,{children:B.map(function(I){return(0,e.createComponentVNode)(2,b.TableCell,{children:(0,e.createComponentVNode)(2,c,{number:I})},I)})},B[0])})})]})},c=function(m,d){var u=(0,t.useBackend)(d),s=u.act,l=u.data,v=m.number;return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,bold:!0,mb:"6px",content:v,textAlign:"center",fontSize:"60px",lineHeight:1.25,width:"80px",className:(0,a.classes)(["SecureStorage__Button","SecureStorage__Button--keypad","SecureStorage__Button--"+v]),onClick:function(){function N(){return s("keypad",{digit:v})}return N}()})}},6272:function(T,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=n(3939),y=n(321),S=n(5485),k=n(22091),h={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},c=function(p,g){(0,b.modalOpen)(p,"edit",{field:g.edit,value:g.value})},i=r.SecurityRecords=function(){function C(p,g){var V=(0,t.useBackend)(g),B=V.act,I=V.data,L=I.loginState,w=I.currentPage,A;if(L.logged_in)w===1?A=(0,e.createComponentVNode)(2,d):w===2&&(A=(0,e.createComponentVNode)(2,l));else return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,b.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,k.TemporaryNotice),(0,e.createComponentVNode)(2,m),A]})})]})}return C}(),m=function(p,g){var V=(0,t.useBackend)(g),B=V.act,I=V.data,L=I.currentPage,w=I.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:L===1,onClick:function(){function A(){return B("page",{page:1})}return A}(),children:"List Records"}),L===2&&w&&!w.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:L===2,children:["Record: ",w.fields[0].value]})]})})},d=function(p,g){var V=(0,t.useBackend)(g),B=V.act,I=V.data,L=I.records,w=(0,t.useLocalState)(g,"searchText",""),A=w[0],x=w[1],E=(0,t.useLocalState)(g,"sortId","name"),P=E[0],j=E[1],M=(0,t.useLocalState)(g,"sortOrder",!0),R=M[0],D=M[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,s)}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"SecurityRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,u,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,u,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,u,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,u,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,u,{id:"status",children:"Criminal Status"})]}),L.filter((0,a.createSearch)(A,function(W){return W.name+"|"+W.id+"|"+W.rank+"|"+W.fingerprint+"|"+W.status})).sort(function(W,_){var U=R?1:-1;return W[P].localeCompare(_[P])*U}).map(function(W){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+h[W.status],onClick:function(){function _(){return B("view",{uid_gen:W.uid_gen,uid_sec:W.uid_sec})}return _}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",W.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:W.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:W.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:W.fingerprint}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:W.status})]},W.id)})]})})})],4)},u=function(p,g){var V=(0,t.useLocalState)(g,"sortId","name"),B=V[0],I=V[1],L=(0,t.useLocalState)(g,"sortOrder",!0),w=L[0],A=L[1],x=p.id,E=p.children;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:B!==x&&"transparent",fluid:!0,onClick:function(){function P(){B===x?A(!w):(I(x),A(!0))}return P}(),children:[E,B===x&&(0,e.createComponentVNode)(2,o.Icon,{name:w?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},s=function(p,g){var V=(0,t.useBackend)(g),B=V.act,I=V.data,L=I.isPrinting,w=(0,t.useLocalState)(g,"searchText",""),A=w[0],x=w[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:"0.25rem",content:"New Record",icon:"plus",onClick:function(){function E(){return B("new_general")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:L,icon:L?"spinner":"print",iconSpin:!!L,content:"Print Cell Log",onClick:function(){function E(){return(0,b.modalOpen)(g,"print_cell_log")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by Name, ID, Assignment, Fingerprint, Status",fluid:!0,onInput:function(){function E(P,j){return x(j)}return E}()})})]})},l=function(p,g){var V=(0,t.useBackend)(g),B=V.act,I=V.data,L=I.isPrinting,w=I.general,A=I.security;return!w||!w.fields?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"General records lost!"}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:L,icon:L?"spinner":"print",iconSpin:!!L,content:"Print Record",onClick:function(){function x(){return B("print_record")}return x}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"WARNING: This will also delete the Security and Medical records associated with this crew member!",tooltipPosition:"bottom-start",content:"Delete Record",onClick:function(){function x(){return B("delete_general")}return x}()})],4),children:(0,e.createComponentVNode)(2,v)})}),!A||!A.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function x(){return B("new_security")}return x}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Security records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:A.empty,content:"Delete Record",onClick:function(){function x(){return B("delete_security")}return x}()}),children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:A.fields.map(function(x,E){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:x.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(x.value),!!x.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:x.line_break?"1rem":"initial",onClick:function(){function P(){return c(g,x)}return P}()})]},E)})})})})}),(0,e.createComponentVNode)(2,N)],4)],0)},v=function(p,g){var V=(0,t.useBackend)(g),B=V.data,I=B.general;return!I||!I.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:I.fields.map(function(L,w){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:L.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(""+L.value),!!L.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:L.line_break?"1rem":"initial",onClick:function(){function A(){return c(g,L)}return A}()})]},w)})})}),!!I.has_photos&&I.photos.map(function(L,w){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:L,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",w+1]},w)})]})},N=function(p,g){var V=(0,t.useBackend)(g),B=V.act,I=V.data,L=I.security;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function w(){return(0,b.modalOpen)(g,"comment_add")}return w}()}),children:L.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):L.comments.map(function(w,A){return(0,e.createComponentVNode)(2,o.Box,{preserveWhitespace:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:w.header||"Auto-generated"}),(0,e.createVNode)(1,"br"),w.text||w,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function x(){return B("comment_delete",{id:A+1})}return x}()})]},A)})})})}},5099:function(T,r,n){"use strict";r.__esModule=!0,r.SeedExtractor=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=n(3939);function y(u,s){var l=typeof Symbol!="undefined"&&u[Symbol.iterator]||u["@@iterator"];if(l)return(l=l.call(u)).next.bind(l);if(Array.isArray(u)||(l=S(u))||s&&u&&typeof u.length=="number"){l&&(u=l);var v=0;return function(){return v>=u.length?{done:!0}:{done:!1,value:u[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(u,s){if(u){if(typeof u=="string")return k(u,s);var l={}.toString.call(u).slice(8,-1);return l==="Object"&&u.constructor&&(l=u.constructor.name),l==="Map"||l==="Set"?Array.from(u):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?k(u,s):void 0}}function k(u,s){(s==null||s>u.length)&&(s=u.length);for(var l=0,v=Array(s);l=A},N=function(w,A){return w<=A},C=s.split(" "),p=[],g=function(){var w=I.value,A=w.split(":");if(A.length===0)return 0;if(A.length===1)return p.push(function(P){return(P.name+" ("+P.variant+")").toLocaleLowerCase().includes(A[0].toLocaleLowerCase())}),0;if(A.length>2)return{v:function(){function P(j){return!1}return P}()};var x,E=l;if(A[1][A[1].length-1]==="-"?(E=N,x=Number(A[1].substring(0,A[1].length-1))):A[1][A[1].length-1]==="+"?(E=v,x=Number(A[1].substring(0,A[1].length-1))):x=Number(A[1]),isNaN(x))return{v:function(){function P(j){return!1}return P}()};switch(A[0].toLocaleLowerCase()){case"l":case"life":case"lifespan":p.push(function(P){return E(P.lifespan,x)});break;case"e":case"end":case"endurance":p.push(function(P){return E(P.endurance,x)});break;case"m":case"mat":case"maturation":p.push(function(P){return E(P.maturation,x)});break;case"pr":case"prod":case"production":p.push(function(P){return E(P.production,x)});break;case"y":case"yield":p.push(function(P){return E(P.yield,x)});break;case"po":case"pot":case"potency":p.push(function(P){return E(P.potency,x)});break;case"s":case"stock":case"c":case"count":case"a":case"amount":p.push(function(P){return E(P.amount,x)});break;default:return{v:function(){function P(j){return!1}return P}()}}},V,B=y(C),I;!(I=B()).done;)if(V=g(),V!==0&&V)return V.v;return function(L){for(var w=0,A=p;w=1?Number(E):1)}return A}()})]})]})}},2916:function(T,r,n){"use strict";r.__esModule=!0,r.ShuttleConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ShuttleConsole=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:c.status?c.status:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Missing"})}),!!c.shuttle&&(!!c.docking_ports_len&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Send to ",children:c.docking_ports.map(function(i){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:i.name,onClick:function(){function m(){return h("move",{move:i.id})}return m}()},i.name)})})||(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:"red",children:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Locked"})}),!!c.admin_controlled&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorization",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-circle",content:"Request Authorization",disabled:!c.status,onClick:function(){function i(){return h("request")}return i}()})})],0))]})})})})}return b}()},39401:function(T,r,n){"use strict";r.__esModule=!0,r.ShuttleManipulator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ShuttleManipulator=function(){function k(h,c){var i=(0,a.useLocalState)(c,"tabIndex",0),m=i[0],d=i[1],u=function(){function s(l){switch(l){case 0:return(0,e.createComponentVNode)(2,b);case 1:return(0,e.createComponentVNode)(2,y);case 2:return(0,e.createComponentVNode)(2,S);default:return"WE SHOULDN'T BE HERE!"}}return s}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===0,onClick:function(){function s(){return d(0)}return s}(),icon:"info-circle",children:"Status"},"Status"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===1,onClick:function(){function s(){return d(1)}return s}(),icon:"file-import",children:"Templates"},"Templates"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===2,onClick:function(){function s(){return d(2)}return s}(),icon:"tools",children:"Modification"},"Modification")]}),u(m)]})})})}return k}(),b=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:u.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:s.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Timer",children:s.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Mode",children:s.mode}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:s.status}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function l(){return m("jump_to",{type:"mobile",id:s.id})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function l(){return m("fast_travel",{id:s.id})}return l}()})]})]})},s.name)})})},y=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.templates_tabs,s=d.existing_shuttle,l=d.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:u.map(function(v){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===s.id,icon:"file",onClick:function(){function N(){return m("select_template_category",{cat:v})}return N}(),children:v},v)})}),!!s&&l[s.id].templates.map(function(v){return(0,e.createComponentVNode)(2,t.Section,{title:v.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[v.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:v.description}),v.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:v.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Load Template",icon:"download",onClick:function(){function N(){return m("select_template",{shuttle_id:v.shuttle_id})}return N}()})})]})},v.name)})]})},S=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.existing_shuttle,s=d.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[u?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+u.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:u.status}),u.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:u.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function l(){return m("jump_to",{type:"mobile",id:u.id})}return l}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: None"}),s?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: "+s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:s.description}),s.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:s.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Preview",icon:"eye",onClick:function(){function l(){return m("preview",{shuttle_id:s.shuttle_id})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function l(){return m("load",{shuttle_id:s.shuttle_id})}return l}()})]})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: None"})]})}},88284:function(T,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=[["good","Alive"],["average","Critical"],["bad","DEAD"]],y=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},k=["bad","average","average","good","average","average","bad"],h=r.Sleeper=function(){function l(v,N){var C=(0,t.useBackend)(N),p=C.act,g=C.data,V=g.hasOccupant,B=V?(0,e.createComponentVNode)(2,c):(0,e.createComponentVNode)(2,s);return(0,e.createComponentVNode)(2,f.Window,{width:550,height:760,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:B}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,d)})]})})})}return l}(),c=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=C.data,V=g.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,u)],4)},i=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=C.data,V=g.occupant,B=g.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{icon:B?"toggle-on":"toggle-off",selected:B,content:B?"On":"Off",onClick:function(){function I(){return p("auto_eject_dead_"+(B?"off":"on"))}return I}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function I(){return p("ejectify")}return I}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:V.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:V.maxHealth,value:V.health/V.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(V.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:b[V.stat][0],children:b[V.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:V.maxTemp,value:V.bodyTemperature/V.maxTemp,color:k[V.temperatureSuitability+3],children:[(0,a.round)(V.btCelsius,0),"\xB0C,",(0,a.round)(V.btFaren,0),"\xB0F"]})}),!!V.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:V.bloodMax,value:V.bloodLevel/V.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[V.bloodPercent,"%, ",V.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[V.pulse," BPM"]})],4)]})})},m=function(v,N){var C=(0,t.useBackend)(N),p=C.data,g=p.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:y.map(function(V,B){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:V[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:g[V[1]]/100,ranges:S,children:(0,a.round)(g[V[1]],0)},B)},B)})})})},d=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=C.data,V=g.hasOccupant,B=g.isBeakerLoaded,I=g.beakerMaxSpace,L=g.beakerFreeSpace,w=g.dialysis,A=w&&L>0;return(0,e.createComponentVNode)(2,o.Section,{title:"Dialysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!B||L<=0||!V,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Active":"Inactive",onClick:function(){function x(){return p("togglefilter")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,icon:"eject",content:"Eject",onClick:function(){function x(){return p("removebeaker")}return x}()})],4),children:B?(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:I,value:L/I,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[L,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})})},u=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=C.data,V=g.occupant,B=g.chemicals,I=g.maxchem,L=g.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Chemicals",children:B.map(function(w,A){var x="",E;return w.overdosing?(x="bad",E=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):w.od_warning&&(x="average",E=(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.createComponentVNode)(2,o.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{title:w.title,level:"3",mx:"0",lineHeight:"18px",buttons:E,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:I,value:w.occ_amount/I,color:x,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[w.pretty_amount,"/",I,"u"]}),L.map(function(P,j){return(0,e.createComponentVNode)(2,o.Button,{disabled:!w.injectable||w.occ_amount+P>I||V.stat===2,icon:"syringe",content:"Inject "+P+"u",title:"Inject "+P+"u of "+w.title+" into the occupant",mb:"0",height:"19px",onClick:function(){function M(){return p("chemical",{chemid:w.id,amount:P})}return M}()},j)})]})})},A)})})},s=function(v,N){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},21597:function(T,r,n){"use strict";r.__esModule=!0,r.SlotMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SlotMachine=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data;if(c.money===null)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:90,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"Could not scan your card or could not find account!"}),(0,e.createComponentVNode)(2,t.Box,{children:"Please wear or hold your ID and try again."})]})})});var i;return c.plays===1?i=c.plays+" player has tried their luck today!":i=c.plays+" players have tried their luck today!",(0,e.createComponentVNode)(2,o.Window,{width:300,height:151,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{lineHeight:2,children:i}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Credits Remaining",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:c.money})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"10 credits to spin",children:(0,e.createComponentVNode)(2,t.Button,{icon:"coins",disabled:c.working,content:c.working?"Spinning...":"Spin",onClick:function(){function m(){return h("spin")}return m}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:c.resultlvl,children:c.result})]})})})}return b}()},46348:function(T,r,n){"use strict";r.__esModule=!0,r.Smartfridge=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Smartfridge=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.secure,m=c.can_dry,d=c.drying,u=c.contents;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!i&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Secure Access: Please have your identification ready."}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:m?"Drying rack":"Contents",buttons:!!m&&(0,e.createComponentVNode)(2,t.Button,{width:4,icon:d?"power-off":"times",content:d?"On":"Off",selected:d,onClick:function(){function s(){return h("drying")}return s}()}),children:[!u&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cookie-bite",size:5,color:"brown"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No products loaded."]})}),!!u&&u.slice().sort(function(s,l){return s.display_name.localeCompare(l.display_name)}).map(function(s){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"55%",children:s.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",children:["(",s.quantity," in stock)"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:13,children:[(0,e.createComponentVNode)(2,t.Button,{width:3,icon:"arrow-down",tooltip:"Dispense one.",content:"1",onClick:function(){function l(){return h("vend",{index:s.vend,amount:1})}return l}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:s.quantity,step:1,stepPixelSize:3,onChange:function(){function l(v,N){return h("vend",{index:s.vend,amount:N})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"All",tooltip:"Dispense all.",tooltipPosition:"bottom-start",onClick:function(){function l(){return h("vend",{index:s.vend,amount:s.quantity})}return l}()})]})]},s)})]})]})})})}return b}()},86162:function(T,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(49968),f=n(98595),b=1e3,y=r.Smes=function(){function S(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.capacityPercent,u=m.capacity,s=m.charge,l=m.inputAttempt,v=m.inputting,N=m.inputLevel,C=m.inputLevelMax,p=m.inputAvailable,g=m.outputPowernet,V=m.outputAttempt,B=m.outputting,I=m.outputLevel,L=m.outputLevelMax,w=m.outputUsed,A=d>=100&&"good"||v&&"average"||"bad",x=B&&"good"||s>0&&"average"||"bad";return(0,e.createComponentVNode)(2,f.Window,{width:340,height:345,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:d*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:l?"sync-alt":"times",selected:l,onClick:function(){function E(){return i("tryinput")}return E}(),children:l?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:A,children:d>=100&&"Fully Charged"||v&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:N===0,onClick:function(){function E(){return i("input",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:N===0,onClick:function(){function E(){return i("input",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:N/b,fillValue:p/b,minValue:0,maxValue:C/b,step:5,stepPixelSize:4,format:function(){function E(P){return(0,o.formatPower)(P*b,1)}return E}(),onChange:function(){function E(P,j){return i("input",{target:j*b})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:N===C,onClick:function(){function E(){return i("input",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:N===C,onClick:function(){function E(){return i("input",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(p)})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:V?"power-off":"times",selected:V,onClick:function(){function E(){return i("tryoutput")}return E}(),children:V?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:x,children:g?B?"Sending":s>0?"Not Sending":"No Charge":"Not Connected"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Output",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:I===0,onClick:function(){function E(){return i("output",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:I===0,onClick:function(){function E(){return i("output",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:I/b,minValue:0,maxValue:L/b,step:5,stepPixelSize:4,format:function(){function E(P){return(0,o.formatPower)(P*b,1)}return E}(),onChange:function(){function E(P,j){return i("output",{target:j*b})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:I===L,onClick:function(){function E(){return i("output",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:I===L,onClick:function(){function E(){return i("output",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(w)})]})})]})})})}return S}()},63584:function(T,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SolarControl=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=0,m=1,d=2,u=c.generated,s=c.generated_ratio,l=c.tracking_state,v=c.tracking_rate,N=c.connected_panels,C=c.connected_tracker,p=c.cdir,g=c.direction,V=c.rotating_direction;return(0,e.createComponentVNode)(2,o.Window,{width:490,height:277,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){function B(){return h("refresh")}return B}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar tracker",color:C?"good":"bad",children:C?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color:N>0?"good":"bad",children:N})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power output",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:s,children:u+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[p,"\xB0 (",g,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[l===d&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),l===m&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",v,"\xB0/h (",V,")"," "]}),l===i&&(0,e.createComponentVNode)(2,t.Box,{children:" Tracker offline "})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[l!==d&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:p,onDrag:function(){function B(I,L){return h("cdir",{cdir:L})}return B}()}),l===d&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker status",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:l===i,onClick:function(){function B(){return h("track",{track:i})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:l===m,onClick:function(){function B(){return h("track",{track:m})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:l===d,disabled:!C,onClick:function(){function B(){return h("track",{track:d})}return B}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[l===m&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:v,format:function(){function B(I){var L=Math.sign(I)>0?"+":"-";return L+Math.abs(I)}return B}(),onDrag:function(){function B(I,L){return h("tdir",{tdir:L})}return B}()}),l===i&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),l===d&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return b}()},38096:function(T,r,n){"use strict";r.__esModule=!0,r.SpawnersMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SpawnersMenu=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.spawners||[];return(0,e.createComponentVNode)(2,o.Window,{width:700,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:i.map(function(m){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:m.name+" ("+m.amount_left+" left)",level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function d(){return h("jump",{ID:m.uids})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function d(){return h("spawn",{ID:m.uids})}return d}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:m.desc}),!!m.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:m.fluff}),!!m.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:m.important_info})]},m.name)})})})})}return b}()},30586:function(T,r,n){"use strict";r.__esModule=!0,r.SpecMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SpecMenu=function(){function h(c,i){return(0,e.createComponentVNode)(2,o.Window,{width:1100,height:600,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,k)]})})})}return h}(),b=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Hemomancer",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function l(){return d("hemomancer")}return l}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on blood magic and the manipulation of blood around you.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Vampiric claws",16),(0,e.createTextVNode)(": Unlocked at 150 blood, allows you to summon a robust pair of claws that attack rapidly, drain a targets blood, and heal you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood Barrier",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to select two turfs and create a wall between them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood tendrils",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to slow everyone in a targeted 3x3 area after a short delay.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Sanguine pool",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to travel at high speeds for a short duration. Doing this leaves behind blood splatters. You can move through anything but walls and space when doing this.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Predator senses",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to sniff out anyone within the same sector as you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood eruption",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to manipulate all nearby blood splatters, in 4 tiles around you, into spikes that impale anyone stood ontop of them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"The blood bringers rite",16),(0,e.createTextVNode)(": When toggled you will rapidly drain the blood of everyone who is nearby and use it to heal yourself slightly and remove any incapacitating effects rapidly.")],4)]})})},y=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Umbrae",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function l(){return d("umbrae")}return l}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on darkness, stealth ambushing and mobility.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Cloak of darkness",16),(0,e.createTextVNode)(": Unlocked at 150 blood, when toggled, allows you to become nearly invisible and move rapidly when in dark regions. While active, burn damage is more effective against you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow anchor",16),(0,e.createTextVNode)(": Unlocked at 250 blood, casting it will create an anchor at the cast location after a short delay. If you then cast the ability again, you are teleported back to the anchor. If you do not cast again within 2 minutes, you will do a fake recall, causing a clone to appear at the anchor and making yourself invisible. It will not teleport you between Z levels.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow snare",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to summon a trap that when crossed blinds and ensnares the victim. This trap is hard to see, but withers in the light.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Dark passage",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to target a turf on screen, you will then teleport to that turf.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Extinguish",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to snuff out nearby electronic light sources and glowshrooms.")],4),(0,e.createVNode)(1,"b",null,"Shadow boxing",16),": Unlocked at 800 blood, sends out shadow clones towards a target, damaging them while you remain in range.",(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Eternal darkness",16),(0,e.createTextVNode)(": When toggled, you consume yourself in unholy darkness, only the strongest of lights will be able to see through it. Inside the radius, nearby creatures will freeze and energy projectiles will deal less damage.")],4),(0,e.createVNode)(1,"p",null,"In addition, you also gain permanent X-ray vision.",16)]})})},S=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Gargantua",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function l(){return d("gargantua")}return l}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on tenacity and melee damage.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rejuvenate",16),(0,e.createTextVNode)(": Will heal you at an increased rate based on how much damage you have taken.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell",16),(0,e.createTextVNode)(": Unlocked at 150 blood, increases your resistance to physical damage, stuns and stamina for 30 seconds. While it is active you cannot fire guns.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Seismic stomp",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to stomp the ground to send out a shockwave, knocking people back.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood rush",16),(0,e.createTextVNode)(": Unlocked at 250 blood, gives you a short speed boost when cast.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell II",16),(0,e.createTextVNode)(": Unlocked at 400 blood, increases all melee damage by 10.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Overwhelming force",16),(0,e.createTextVNode)(": Unlocked at 600 blood, when toggled, if you bump into a door that you do not have access to, it will force it open. In addition, you cannot be pushed or pulled while it is active.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Demonic grasp",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to send out a demonic hand to snare someone. If you are on disarm/grab intent you will push/pull the target, respectively.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Charge",16),(0,e.createTextVNode)(": Unlocked at 800 blood, you gain the ability to charge at a target. Destroying and knocking back pretty much anything you collide with.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Desecrated Duel",16),(0,e.createTextVNode)(": Leap towards a visible enemy, creating an arena upon landing, infusing you with increased regeneration, and granting you resistance to internal damages.")],4)]})})},k=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Dantalion",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function l(){return d("dantalion")}return l}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on thralling and illusions.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Enthrall",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Thralls your target to your will, requires you to stand still. Does not work on mindshielded or already enthralled/mindslaved people.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall cap",16),(0,e.createTextVNode)(": You can only thrall a max of 1 person at a time. This can be increased at 400 blood, 600 blood and at full power to a max of 4 thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall commune",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Allows you to talk to your thralls, your thralls can talk back in the same way.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Subspace swap",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to swap positions with a target.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Pacify",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to pacify a target, preventing them from causing harm for 40 seconds.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Decoy",16),(0,e.createTextVNode)(": Unlocked at 400 blood, briefly turn invisible and send out an illusion to fool everyone nearby.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rally thralls",16),(0,e.createTextVNode)(": Unlocked at 600 blood, removes all incapacitating effects from nearby thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood bond",16),(0,e.createTextVNode)(": Unlocked at 800 blood, when cast, all nearby thralls become linked to you. If anyone in the network takes damage, it is shared equally between everyone in the network. If a thrall goes out of range, they will be removed from the network.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Mass Hysteria",16),(0,e.createTextVNode)(": Casts a powerful illusion that blinds and then makes everyone nearby perceive others as random animals.")],4)]})})}},95152:function(T,r,n){"use strict";r.__esModule=!0,r.StackCraft=void 0;var e=n(89005),a=n(72253),t=n(88510),o=n(64795),f=n(25328),b=n(98595),y=n(36036),S=r.StackCraft=function(){function s(){return(0,e.createComponentVNode)(2,b.Window,{width:350,height:500,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,k)})})}return s}(),k=function(l,v){var N=(0,a.useBackend)(v),C=N.data,p=C.amount,g=C.recipes,V=(0,a.useLocalState)(v,"searchText",""),B=V[0],I=V[1],L=h(g,(0,f.createSearch)(B)),w=(0,a.useLocalState)(v,"",!1),A=w[0],x=w[1];return(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,title:"Amount: "+p,buttons:(0,e.createFragment)([A&&(0,e.createComponentVNode)(2,y.Input,{width:12.5,value:B,placeholder:"Find recipe",onInput:function(){function E(P,j){return I(j)}return E}()}),(0,e.createComponentVNode)(2,y.Button,{ml:.5,tooltip:"Search",tooltipPosition:"bottom-end",icon:"magnifying-glass",selected:A,onClick:function(){function E(){return x(!A)}return E}()})],0),children:L?(0,e.createComponentVNode)(2,d,{recipes:L}):(0,e.createComponentVNode)(2,y.NoticeBox,{children:"No recipes found!"})})},h=function s(l,v){var N=(0,o.flow)([(0,t.map)(function(C){var p=C[0],g=C[1];return c(g)?v(p)?C:[p,s(g,v)]:v(p)?C:[p,void 0]}),(0,t.filter)(function(C){var p=C[0],g=C[1];return g!==void 0}),(0,t.sortBy)(function(C){var p=C[0],g=C[1];return p}),(0,t.sortBy)(function(C){var p=C[0],g=C[1];return!c(g)}),(0,t.reduce)(function(C,p){var g=p[0],V=p[1];return C[g]=V,C},{})])(Object.entries(l));return Object.keys(N).length?N:void 0},c=function(l){return l.uid===void 0},i=function(l,v){return l.required_amount>v?0:Math.floor(v/l.required_amount)},m=function(l,v){for(var N=(0,a.useBackend)(v),C=N.act,p=l.recipe,g=l.max_possible_multiplier,V=Math.min(g,Math.floor(p.max_result_amount/p.result_amount)),B=[5,10,25],I=[],L=function(){var E=A[w];V>=E&&I.push((0,e.createComponentVNode)(2,y.Button,{bold:!0,translucent:!0,fontSize:.85,width:"32px",content:E*p.result_amount+"x",onClick:function(){function P(){return C("make",{recipe_uid:p.uid,multiplier:E})}return P}()}))},w=0,A=B;w1?I+"x ":"",P=L>1?"s":"",j=""+E+V,M=L+" sheet"+P,R=i(B,g);return(0,e.createComponentVNode)(2,y.ImageButton,{fluid:!0,base64:x,imageSize:32,disabled:!R,tooltip:M,buttons:w>1&&R>1&&(0,e.createComponentVNode)(2,m,{recipe:B,max_possible_multiplier:R}),onClick:function(){function D(){return C("make",{recipe_uid:A,multiplier:1})}return D}(),children:j})}},38307:function(T,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.StationAlertConsole=function(){function y(){return(0,e.createComponentVNode)(2,o.Window,{width:325,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,b)})})}return y}(),b=r.StationAlertConsoleContent=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.data,i=c.alarms||[],m=i.Fire||[],d=i.Atmosphere||[],u=i.Power||[];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Fire Alarms",children:(0,e.createVNode)(1,"ul",null,[m.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),m.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Atmospherics Alarms",children:(0,e.createVNode)(1,"ul",null,[d.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),d.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Alarms",children:(0,e.createVNode)(1,"ul",null,[u.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),u.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)})],4)}return y}()},96091:function(T,r,n){"use strict";r.__esModule=!0,r.StationTraitsPanel=void 0;var e=n(89005),a=n(88510),t=n(42127),o=n(72253),f=n(36036),b=n(98595),y=function(c){return c[c.SetupFutureStationTraits=0]="SetupFutureStationTraits",c[c.ViewStationTraits=1]="ViewStationTraits",c}(y||{}),S=function(i,m){var d=(0,o.useBackend)(m),u=d.act,s=d.data,l=s.future_station_traits,v=(0,o.useLocalState)(m,"selectedFutureTrait",null),N=v[0],C=v[1],p=Object.fromEntries(s.valid_station_traits.map(function(V){return[V.name,V.path]})),g=Object.keys(p);return g.sort(),(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Dropdown,{displayText:!N&&"Select trait to add...",onSelected:C,options:g,selected:N,width:"100%"})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"green",icon:"plus",onClick:function(){function V(){if(N){var B=p[N],I=[B];if(l){var L,w=l.map(function(A){return A.path});if(w.indexOf(B)!==-1)return;I=(L=I).concat.apply(L,w)}u("setup_future_traits",{station_traits:I})}}return V}(),children:"Add"})})]}),(0,e.createComponentVNode)(2,f.Divider),Array.isArray(l)?l.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:l.map(function(V){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:V.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"red",icon:"times",onClick:function(){function B(){u("setup_future_traits",{station_traits:(0,a.filterMap)(l,function(I){if(I.path!==V.path)return I.path})})}return B}(),children:"Delete"})})]})},V.path)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No station traits will run next round."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"good",icon:"times",tooltip:"The next round will roll station traits randomly, just like normal",onClick:function(){function V(){return u("clear_future_traits")}return V}(),children:"Run Station Traits Normally"})]}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No future station traits are planned."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"red",icon:"times",onClick:function(){function V(){return u("setup_future_traits",{station_traits:[]})}return V}(),children:"Prevent station traits from running next round"})]})]})},k=function(i,m){var d=(0,o.useBackend)(m),u=d.act,s=d.data;return s.current_traits.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:s.current_traits.map(function(l){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:l.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button.Confirm,{content:"Revert",color:"red",disabled:s.too_late_to_revert||!l.can_revert,tooltip:!l.can_revert&&"This trait is not revertable."||s.too_late_to_revert&&"It's too late to revert station traits, the round has already started.",icon:"times",onClick:function(){function v(){return u("revert",{ref:l.ref})}return v}()})})]})},l.ref)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:"There are no active station traits."})},h=r.StationTraitsPanel=function(){function c(i,m){var d=(0,o.useLocalState)(m,"station_traits_tab",y.ViewStationTraits),u=d[0],s=d[1],l;switch(u){case y.SetupFutureStationTraits:l=(0,e.createComponentVNode)(2,S);break;case y.ViewStationTraits:l=(0,e.createComponentVNode)(2,k);break;default:(0,t.exhaustiveCheck)(u)}return(0,e.createComponentVNode)(2,b.Window,{title:"Modify Station Traits",height:350,width:350,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"eye",selected:u===y.ViewStationTraits,onClick:function(){function v(){return s(y.ViewStationTraits)}return v}(),children:"View"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"edit",selected:u===y.SetupFutureStationTraits,onClick:function(){function v(){return s(y.SetupFutureStationTraits)}return v}(),children:"Edit"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{m:0,children:[(0,e.createComponentVNode)(2,f.Divider),l]})]})})})}return c}()},39409:function(T,r,n){"use strict";r.__esModule=!0,r.StripMenu=void 0;var e=n(89005),a=n(88510),t=n(79140),o=n(72253),f=n(36036),b=n(98595),y=5,S=9,k=function(N){return N===0?5:9},h="64px",c=function(N){return N[0]+"/"+N[1]},i=function(N){var C=N.align,p=N.children;return(0,e.createComponentVNode)(2,f.Box,{style:{position:"absolute",left:C==="left"?"6px":"48px","text-align":C,"text-shadow":"2px 2px 2px #000",top:"2px"},children:p})},m={enable_internals:{icon:"lungs",text:"Enable internals"},disable_internals:{icon:"lungs",text:"Disable internals"},enable_lock:{icon:"lock",text:"Enable lock"},disable_lock:{icon:"unlock",text:"Disable lock"},suit_sensors:{icon:"tshirt",text:"Adjust suit sensors"},remove_accessory:{icon:"medal",text:"Remove accessory"},dislodge_headpocket:{icon:"head-side-virus",text:"Dislodge headpocket"}},d={eyes:{displayName:"eyewear",gridSpot:c([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:c([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:c([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:c([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:c([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:c([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:c([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:c([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:c([1,4])},jumpsuit:{displayName:"uniform",gridSpot:c([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:c([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:c([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:c([2,3]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,i,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:c([2,4]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,i,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:c([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:c([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:c([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:c([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:c([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:c([3,4]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:c([3,3]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:c([4,4]),image:"inventory-pda.png"}},u={eyes:{displayName:"eyewear",gridSpot:c([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:c([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:c([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:c([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:c([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:c([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:c([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:c([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:c([1,4])},jumpsuit:{displayName:"uniform",gridSpot:c([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:c([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:c([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:c([4,4]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,i,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:c([4,5]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,i,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:c([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:c([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:c([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:c([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:c([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:c([4,7]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:c([4,6]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:c([4,8]),image:"inventory-pda.png"}},s=function(v){return v[v.Completely=1]="Completely",v[v.Hidden=2]="Hidden",v}(s||{}),l=r.StripMenu=function(){function v(N,C){var p=(0,o.useBackend)(C),g=p.act,V=p.data,B=new Map;if(V.show_mode===0)for(var I=0,L=Object.keys(V.items);I=.01})},(0,a.sortBy)(function(w){return-w.amount})])(N.gases||[]),L=Math.max.apply(Math,[1].concat(I.map(function(w){return w.amount})));return(0,e.createComponentVNode)(2,S.Window,{width:550,height:185,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"270px",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Metrics",children:(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:p/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:g,minValue:0,maxValue:5e3,ranges:{good:[-1/0,5e3],average:[5e3,7e3],bad:[7e3,1/0]},children:(0,o.toFixed)(g)+" MeV/cm3"})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:c(V),minValue:0,maxValue:c(1e4),ranges:{teal:[-1/0,c(80)],good:[c(80),c(373)],average:[c(373),c(1e3)],bad:[c(1e3),1/0]},children:(0,o.toFixed)(V)+" K"})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:c(B),minValue:0,maxValue:c(5e4),ranges:{good:[c(1),c(300)],average:[-1/0,c(1e3)],bad:[c(1e3),1/0]},children:(0,o.toFixed)(B)+" kPa"})})]})})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Gases",buttons:(0,e.createComponentVNode)(2,b.Button,{icon:"arrow-left",content:"Back",onClick:function(){function w(){return v("back")}return w}()}),children:(0,e.createComponentVNode)(2,b.LabeledList,{children:I.map(function(w){return(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:(0,y.getGasLabel)(w.name),children:(0,e.createComponentVNode)(2,b.ProgressBar,{color:(0,y.getGasColor)(w.name),value:w.amount,minValue:0,maxValue:L,children:(0,o.toFixed)(w.amount,2)+"%"})},w.name)})})})})]})})})}},46029:function(T,r,n){"use strict";r.__esModule=!0,r.SyndicateComputerSimple=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SyndicateComputerSimple=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data;return(0,e.createComponentVNode)(2,o.Window,{theme:"syndicate",width:400,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:c.rows.map(function(i){return(0,e.createComponentVNode)(2,t.Section,{title:i.title,buttons:(0,e.createComponentVNode)(2,t.Button,{content:i.buttontitle,disabled:i.buttondisabled,tooltip:i.buttontooltip,tooltipPosition:"left",onClick:function(){function m(){return h(i.buttonact)}return m}()}),children:[i.status,!!i.bullets&&(0,e.createComponentVNode)(2,t.Box,{children:i.bullets.map(function(m){return(0,e.createComponentVNode)(2,t.Box,{children:m},m)})})]},i.title)})})})}return b}()},36372:function(T,r,n){"use strict";r.__esModule=!0,r.TEG=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(S){return S.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},b=r.TEG=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data;return i.error?(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:[i.error,(0,e.createComponentVNode)(2,t.Button,{icon:"circle",content:"Recheck",onClick:function(){function m(){return c("check")}return m}()})]})})}):(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cold Loop ("+i.cold_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Inlet",children:[f(i.cold_inlet_temp)," K, ",f(i.cold_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Outlet",children:[f(i.cold_outlet_temp)," K, ",f(i.cold_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Hot Loop ("+i.hot_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Inlet",children:[f(i.hot_inlet_temp)," K, ",f(i.hot_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Outlet",children:[f(i.hot_outlet_temp)," K, ",f(i.hot_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Output",children:[f(i.output_power)," W",!!i.warning_switched&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold inlet temperature exceeds hot inlet temperature."}),!!i.warning_cold_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold circulator inlet pressure is under 1,000 kPa."}),!!i.warning_hot_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Hot circulator inlet pressure is under 1,000 kPa."})]})]})})}return y}()},56441:function(T,r,n){"use strict";r.__esModule=!0,r.TachyonArrayContent=r.TachyonArray=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TachyonArray=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.records,d=m===void 0?[]:m,u=i.explosion_target,s=i.toxins_tech,l=i.printing;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shift's Target",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Toxins Level",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Administration",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print All Logs",disabled:!d.length||l,align:"center",onClick:function(){function v(){return c("print_logs")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!d.length,color:"bad",align:"center",onClick:function(){function v(){return c("delete_logs")}return v}()})]})]})}),d.length?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return y}(),b=r.TachyonArrayContent=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.records,d=m===void 0?[]:m;return(0,e.createComponentVNode)(2,t.Section,{title:"Logged Explosions",children:(0,e.createComponentVNode)(2,t.Flex,{children:(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Epicenter"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actual Size"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Theoretical Size"})]}),d.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.theoretical_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){function s(){return c("delete_record",{index:u.index})}return s}()})})]},u.index)})]})})})})}return y}()},1754:function(T,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Tank=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i;return c.has_mask?i=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,width:"76%",icon:c.connected?"check":"times",content:c.connected?"Internals On":"Internals Off",selected:c.connected,onClick:function(){function m(){return h("internals")}return m}()})}):i=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",color:"red",children:"No Mask Equipped"}),(0,e.createComponentVNode)(2,o.Window,{width:325,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tank Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:c.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Release Pressure",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:c.ReleasePressure===c.minReleasePressure,tooltip:"Min",onClick:function(){function m(){return h("pressure",{pressure:"min"})}return m}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(c.releasePressure),width:"65px",unit:"kPa",minValue:c.minReleasePressure,maxValue:c.maxReleasePressure,onChange:function(){function m(d,u){return h("pressure",{pressure:u})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:c.ReleasePressure===c.maxReleasePressure,tooltip:"Max",onClick:function(){function m(){return h("pressure",{pressure:"max"})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:c.ReleasePressure===c.defaultReleasePressure,tooltip:"Reset",onClick:function(){function m(){return h("pressure",{pressure:"reset"})}return m}()})]}),i]})})})})}return b}()},7579:function(T,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TankDispenser=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.o_tanks,m=c.p_tanks;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Dispense Oxygen Tank ("+i+")",disabled:i===0,icon:"arrow-circle-down",onClick:function(){function d(){return h("oxygen")}return d}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mt:1,fluid:!0,content:"Dispense Plasma Tank ("+m+")",disabled:m===0,icon:"arrow-circle-down",onClick:function(){function d(){return h("plasma")}return d}()})})]})})})}return b}()},16136:function(T,r,n){"use strict";r.__esModule=!0,r.TcommsCore=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TcommsCore=function(){function h(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.ion,l=(0,a.useLocalState)(i,"tabIndex",0),v=l[0],N=l[1],C=function(){function p(g){switch(g){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,k);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return p}();return(0,e.createComponentVNode)(2,o.Window,{width:900,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[s===1&&(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"wrench",selected:v===0,onClick:function(){function p(){return N(0)}return p}(),children:"Configuration"},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"link",selected:v===1,onClick:function(){function p(){return N(1)}return p}(),children:"Device Linkage"},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"user-times",selected:v===2,onClick:function(){function p(){return N(2)}return p}(),children:"User Filtering"},"FilterPage")]}),C(v)]})})}return h}(),b=function(){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},y=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.active,l=u.sectors_available,v=u.nttc_toggle_jobs,N=u.nttc_toggle_job_color,C=u.nttc_toggle_name_color,p=u.nttc_toggle_command_bold,g=u.nttc_job_indicator_type,V=u.nttc_setting_language,B=u.network_id;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"On":"Off",selected:s,icon:"power-off",onClick:function(){function I(){return d("toggle_active")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sector Coverage",children:l})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Radio Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcements",children:(0,e.createComponentVNode)(2,t.Button,{content:v?"On":"Off",selected:v,icon:"user-tag",onClick:function(){function I(){return d("nttc_toggle_jobs")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:N?"On":"Off",selected:N,icon:"clipboard-list",onClick:function(){function I(){return d("nttc_toggle_job_color")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:C?"On":"Off",selected:C,icon:"user-tag",onClick:function(){function I(){return d("nttc_toggle_name_color")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:p?"On":"Off",selected:p,icon:"volume-up",onClick:function(){function I(){return d("nttc_toggle_command_bold")}return I}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Advanced",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcement Format",children:(0,e.createComponentVNode)(2,t.Button,{content:g||"Unset",selected:g,icon:"pencil-alt",onClick:function(){function I(){return d("nttc_job_indicator_type")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Language Conversion",children:(0,e.createComponentVNode)(2,t.Button,{content:V||"Unset",selected:V,icon:"globe",onClick:function(){function I(){return d("nttc_setting_language")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:B||"Unset",selected:B,icon:"server",onClick:function(){function I(){return d("network_id")}return I}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){function I(){return d("import")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function I(){return d("export")}return I}()})]})],4)},S=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.link_password,l=u.relay_entries;return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linkage Password",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"Unset",selected:s,icon:"lock",onClick:function(){function v(){return d("change_password")}return v}()})})}),(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Unlink"})]}),l.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.status===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Online"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Offline"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",onClick:function(){function N(){return d("unlink",{addr:v.addr})}return N}()})})]},v.addr)})]})]})},k=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.filtered_users;return(0,e.createComponentVNode)(2,t.Section,{title:"User Filtering",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Add User",icon:"user-plus",onClick:function(){function l(){return d("add_filter")}return l}()}),children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"90%"},children:"User"}),(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"10%"},children:"Actions"})]}),s.map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"user-times",onClick:function(){function v(){return d("remove_filter",{user:l})}return v}()})})]},l)})]})})}},88046:function(T,r,n){"use strict";r.__esModule=!0,r.TcommsRelay=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TcommsRelay=function(){function S(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.linked,u=m.active,s=m.network_id;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:292,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Relay Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:u?"On":"Off",selected:u,icon:"power-off",onClick:function(){function l(){return i("toggle_active")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"Unset",selected:s,icon:"server",onClick:function(){function l(){return i("network_id")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Link Status",children:d===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Linked"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Unlinked"})})]})}),d===1?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,y)]})})}return S}(),b=function(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.linked_core_id,u=m.linked_core_addr,s=m.hidden_link;return(0,e.createComponentVNode)(2,t.Section,{title:"Link Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core ID",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core Address",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hidden Link",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"Yes":"No",icon:s?"eye-slash":"eye",selected:s,onClick:function(){function l(){return i("toggle_hidden_link")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unlink",children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function l(){return i("unlink")}return l}()})})]})})},y=function(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.cores;return(0,e.createComponentVNode)(2,t.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),d.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function s(){return i("link",{addr:u.addr})}return s}()})})]},u.addr)})]})})}},20802:function(T,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Teleporter=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.targetsTeleport?c.targetsTeleport:{},m=0,d=1,u=2,s=c.calibrated,l=c.calibrating,v=c.powerstation,N=c.regime,C=c.teleporterhub,p=c.target,g=c.locked,V=c.adv_beacon_allowed,B=c.advanced_beacon_locking;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:270,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:[(!v||!C)&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Error",children:[C,!v&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),v&&!C&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),v&&C&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Status",buttons:(0,e.createFragment)(!!V&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",children:"Advanced Beacon Locking:\xA0"}),(0,e.createComponentVNode)(2,t.Button,{selected:B,icon:B?"toggle-on":"toggle-off",content:B?"Enabled":"Disabled",onClick:function(){function I(){return h("advanced_beacon_locking",{on:B?0:1})}return I}()})],4),0),children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Teleport target:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[N===m&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:p,disabled:l,options:Object.keys(i),color:p!=="None"?"default":"bad",onSelected:function(){function I(L){return h("settarget",{x:i[L].x,y:i[L].y,z:i[L].z,tptarget:i[L].pretarget})}return I}()}),N===d&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:p,disabled:l,options:Object.keys(i),color:p!=="None"?"default":"bad",onSelected:function(){function I(L){return h("settarget",{x:i[L].x,y:i[L].y,z:i[L].z,tptarget:i[L].pretarget})}return I}()}),N===u&&(0,e.createComponentVNode)(2,t.Box,{children:p})]})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Regime:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Gate",tooltip:"Teleport to another teleport hub.",tooltipPosition:"top",color:N===d?"good":null,onClick:function(){function I(){return h("setregime",{regime:d})}return I}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Teleporter",tooltip:"One-way teleport.",tooltipPosition:"top",color:N===m?"good":null,onClick:function(){function I(){return h("setregime",{regime:m})}return I}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"GPS",tooltip:"Teleport to a location stored in a GPS device.",tooltipPosition:"top-end",color:N===u?"good":null,disabled:!g,onClick:function(){function I(){return h("setregime",{regime:u})}return I}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{label:"Calibration",mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Calibration:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[p!=="None"&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:15.8,textAlign:"center",mt:.5,children:l&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"In Progress"})||s&&(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Optimal"})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Sub-Optimal"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",tooltip:"Calibrates the hub. Accidents may occur when the calibration is not optimal.",tooltipPosition:"bottom-end",disabled:!!(s||l),onClick:function(){function I(){return h("calibrate")}return I}()})})]}),p==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})]}),!!(g&&v&&C&&N===u)&&(0,e.createComponentVNode)(2,t.Section,{title:"GPS",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload GPS data",tooltip:"Loads the GPS data from the device.",icon:"upload",onClick:function(){function I(){return h("load")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function I(){return h("eject")}return I}()})]})})]})})})})}return b}()},48517:function(T,r,n){"use strict";r.__esModule=!0,r.TelescienceConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TelescienceConsole=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.last_msg,m=c.linked_pad,d=c.held_gps,u=c.lastdata,s=c.power_levels,l=c.current_max_power,v=c.current_power,N=c.current_bearing,C=c.current_elevation,p=c.current_sector,g=c.working,V=c.max_z,B=(0,a.useLocalState)(S,"dummyrot",N),I=B[0],L=B[1];return(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createFragment)([i,!(u.length>0)||(0,e.createVNode)(1,"ul",null,u.map(function(w){return(0,e.createVNode)(1,"li",null,w,0,null,w)}),0)],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Telepad Status",children:m===1?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Bearing",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:[(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",width:6.1,lineHeight:1.5,step:.1,minValue:0,maxValue:360,disabled:g,value:N,onDrag:function(){function w(A,x){return L(x)}return w}(),onChange:function(){function w(A,x){return h("setbear",{bear:x})}return w}()}),(0,e.createComponentVNode)(2,t.Icon,{ml:1,size:1,name:"arrow-up",rotation:I})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Elevation",children:(0,e.createComponentVNode)(2,t.NumberInput,{width:6.1,lineHeight:1.5,step:.1,minValue:0,maxValue:100,disabled:g,value:C,onChange:function(){function w(A,x){return h("setelev",{elev:x})}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Level",children:s.map(function(w,A){return(0,e.createComponentVNode)(2,t.Button,{content:w,selected:v===w,disabled:A>=l-1||g,onClick:function(){function x(){return h("setpwr",{pwr:A+1})}return x}()},w)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Sector",children:(0,e.createComponentVNode)(2,t.NumberInput,{width:6.1,lineHeight:1.5,step:1,minValue:2,maxValue:V,value:p,disabled:g,onChange:function(){function w(A,x){return h("setz",{newz:x})}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Telepad Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Send",disabled:g,onClick:function(){function w(){return h("pad_send")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Receive",disabled:g,onClick:function(){function w(){return h("pad_receive")}return w}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Crystal Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Recalibrate Crystals",disabled:g,onClick:function(){function w(){return h("recal_crystals")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Crystals",disabled:g,onClick:function(){function w(){return h("eject_crystals")}return w}()})]})]}):(0,e.createFragment)([(0,e.createTextVNode)("No pad linked to console. Please use a multitool to link a pad.")],4)}),(0,e.createComponentVNode)(2,t.Section,{title:"GPS Actions",children:d===1?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{disabled:d===0||g,content:"Eject GPS",onClick:function(){function w(){return h("eject_gps")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:d===0||g,content:"Store Coordinates",onClick:function(){function w(){return h("store_to_gps")}return w}()})],4):(0,e.createFragment)([(0,e.createTextVNode)("Please insert a GPS to store coordinates to it.")],4)})]})})}return b}()},21800:function(T,r,n){"use strict";r.__esModule=!0,r.TempGun=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.TempGun=function(){function h(c,i){var m=(0,t.useBackend)(i),d=m.act,u=m.data,s=u.target_temperature,l=u.temperature,v=u.max_temp,N=u.min_temp;return(0,e.createComponentVNode)(2,f.Window,{width:250,height:121,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:10,stepPixelSize:6,minValue:N,maxValue:v,value:s,format:function(){function C(p){return(0,a.toFixed)(p,2)}return C}(),width:"50px",onDrag:function(){function C(p,g){return d("target_temperature",{target_temperature:g})}return C}()}),"\xB0C"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Temperature",children:(0,e.createComponentVNode)(2,o.Box,{color:y(l),bold:l>500-273.15,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(l,2)}),"\xB0C"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power Cost",children:(0,e.createComponentVNode)(2,o.Box,{color:k(l),children:S(l)})})]})})})})}return h}(),y=function(c){return c<=-100?"blue":c<=0?"teal":c<=100?"green":c<=200?"orange":"red"},S=function(c){return c<=100-273.15?"High":c<=250-273.15?"Medium":c<=300-273.15?"Low":c<=400-273.15?"Medium":"High"},k=function(c){return c<=100-273.15?"red":c<=250-273.15?"orange":c<=300-273.15?"green":c<=400-273.15?"orange":"red"}},24410:function(T,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(72253),f=n(92986),b=n(36036),y=n(98595),S=r.sanitizeMultiline=function(){function i(m){return m.replace(/(\n|\r\n){3,}/,"\n\n")}return i}(),k=r.removeAllSkiplines=function(){function i(m){return m.replace(/[\r\n]+/,"")}return i}(),h=r.TextInputModal=function(){function i(m,d){var u=(0,o.useBackend)(d),s=u.act,l=u.data,v=l.max_length,N=l.message,C=N===void 0?"":N,p=l.multiline,g=l.placeholder,V=l.timeout,B=l.title,I=(0,o.useLocalState)(d,"input",g||""),L=I[0],w=I[1],A=function(){function P(j){if(j!==L){var M=p?S(j):k(j);w(M)}}return P}(),x=p||L.length>=40,E=130+(C.length>40?Math.ceil(C.length/4):0)+(x?80:0);return(0,e.createComponentVNode)(2,y.Window,{title:B,width:325,height:E,children:[V&&(0,e.createComponentVNode)(2,a.Loader,{value:V}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function P(j){var M=window.event?j.which:j.keyCode;M===f.KEY_ENTER&&(!x||!j.shiftKey)&&s("submit",{entry:L}),M===f.KEY_ESCAPE&&s("cancel")}return P}(),children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Box,{color:"label",children:C})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,c,{input:L,onType:A})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:L,message:L.length+"/"+v})})]})})})]})}return i}(),c=function(m,d){var u=(0,o.useBackend)(d),s=u.act,l=u.data,v=l.max_length,N=l.multiline,C=m.input,p=m.onType,g=N||C.length>=40;return(0,e.createComponentVNode)(2,b.TextArea,{autoFocus:!0,autoSelect:!0,height:N||C.length>=40?"100%":"1.8rem",maxLength:v,onEscape:function(){function V(){return s("cancel")}return V}(),onEnter:function(){function V(B){g&&B.shiftKey||(B.preventDefault(),s("submit",{entry:C}))}return V}(),onInput:function(){function V(B,I){return p(I)}return V}(),placeholder:"Type something...",value:C})}},25036:function(T,r,n){"use strict";r.__esModule=!0,r.ThermoMachine=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.ThermoMachine=function(){function y(S,k){var h=(0,t.useBackend)(k),c=h.act,i=h.data;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:225,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:i.temperature,format:function(){function m(d){return(0,a.toFixed)(d,2)}return m}()})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:i.pressure,format:function(){function m(d){return(0,a.toFixed)(d,2)}return m}()})," kPa"]})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:i.on?"power-off":"times",content:i.on?"On":"Off",selected:i.on,onClick:function(){function m(){return c("power")}return m}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Setting",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:i.cooling?"temperature-low":"temperature-high",content:i.cooling?"Cooling":"Heating",selected:i.cooling,onClick:function(){function m(){return c("cooling")}return m}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"fast-backward",disabled:i.target===i.min,title:"Minimum temperature",onClick:function(){function m(){return c("target",{target:i.min})}return m}()}),(0,e.createComponentVNode)(2,o.NumberInput,{animated:!0,value:Math.round(i.target),unit:"K",width:5.4,lineHeight:1.4,minValue:Math.round(i.min),maxValue:Math.round(i.max),step:5,stepPixelSize:3,onDrag:function(){function m(d,u){return c("target",{target:u})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"fast-forward",disabled:i.target===i.max,title:"Maximum Temperature",onClick:function(){function m(){return c("target",{target:i.max})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"sync",disabled:i.target===i.initial,title:"Room Temperature",onClick:function(){function m(){return c("target",{target:i.initial})}return m}()})]})]})})]})})}return y}()},20035:function(T,r,n){"use strict";r.__esModule=!0,r.TransferValve=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TransferValve=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.tank_one,m=c.tank_two,d=c.attached_device,u=c.valve;return(0,e.createComponentVNode)(2,o.Window,{width:460,height:285,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Valve Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:u?"unlock":"lock",content:u?"Open":"Closed",disabled:!i||!m,onClick:function(){function s(){return h("toggle")}return s}()})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Assembly",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Configure Assembly",disabled:!d,onClick:function(){function s(){return h("device")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:d?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:d,disabled:!d,onClick:function(){function s(){return h("remove_device")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Assembly"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment One",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:i?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:i,disabled:!i,onClick:function(){function s(){return h("tankone")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment Two",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:m?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:m,disabled:!m,onClick:function(){function s(){return h("tanktwo")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})})]})})}return b}()},78166:function(T,r,n){"use strict";r.__esModule=!0,r.TurbineComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(44879),b=r.TurbineComputer=function(){function k(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.compressor,s=d.compressor_broken,l=d.turbine,v=d.turbine_broken,N=d.online,C=!!(u&&!s&&l&&!v);return(0,e.createComponentVNode)(2,o.Window,{width:400,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:N?"power-off":"times",content:N?"Online":"Offline",selected:N,disabled:!C,onClick:function(){function p(){return m("toggle_power")}return p}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Disconnect",onClick:function(){function p(){return m("disconnect")}return p}()})],4),children:C?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,y)})})})}return k}(),y=function(h,c){var i=(0,a.useBackend)(c),m=i.data,d=m.compressor,u=m.compressor_broken,s=m.turbine,l=m.turbine_broken,v=m.online;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compressor Status",color:!d||u?"bad":"good",children:u?d?"Offline":"Missing":"Online"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Status",color:!s||l?"bad":"good",children:l?s?"Offline":"Missing":"Online"})]})},S=function(h,c){var i=(0,a.useBackend)(c),m=i.data,d=m.rpm,u=m.temperature,s=m.power,l=m.bearing_heat;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Speed",children:[d," RPM"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Temp",children:[u," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Generated Power",children:[s," W"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bearing Heat",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l,minValue:0,maxValue:100,ranges:{good:[-1/0,60],average:[60,90],bad:[90,1/0]},children:(0,f.toFixed)(l)+"%"})})]})}},52847:function(T,r,n){"use strict";r.__esModule=!0,r.Uplink=void 0;var e=n(89005),a=n(88510),t=n(64795),o=n(25328),f=n(72253),b=n(36036),y=n(98595),S=n(3939),k=function(N){switch(N){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,i);case 2:return(0,e.createComponentVNode)(2,l);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}},h=r.Uplink=function(){function v(N,C){var p=(0,f.useBackend)(C),g=p.act,V=p.data,B=V.cart,I=(0,f.useLocalState)(C,"tabIndex",0),L=I[0],w=I[1],A=(0,f.useLocalState)(C,"searchText",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,y.Window,{width:900,height:600,theme:"syndicate",children:[(0,e.createComponentVNode)(2,S.ComplexModal),(0,e.createComponentVNode)(2,y.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Tabs,{children:[(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:L===0,onClick:function(){function P(){w(0),E("")}return P}(),icon:"store",children:"View Market"},"PurchasePage"),(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:L===1,onClick:function(){function P(){w(1),E("")}return P}(),icon:"shopping-cart",children:["View Shopping Cart ",B&&B.length?"("+B.length+")":""]},"Cart"),(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:L===2,onClick:function(){function P(){w(2),E("")}return P}(),icon:"user",children:"Exploitable Information"},"ExploitableInfo"),(0,e.createComponentVNode)(2,b.Tabs.Tab,{onClick:function(){function P(){return g("lock")}return P}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:k(L)})]})})]})}return v}(),c=function(N,C){var p=(0,f.useBackend)(C),g=p.act,V=p.data,B=V.crystals,I=V.cats,L=(0,f.useLocalState)(C,"uplinkItems",I[0].items),w=L[0],A=L[1],x=(0,f.useLocalState)(C,"searchText",""),E=x[0],P=x[1],j=function(U,K){K===void 0&&(K="");var G=(0,o.createSearch)(K,function($){var Q=$.hijack_only===1?"|hijack":"";return $.name+"|"+$.desc+"|"+$.cost+"tc"+Q});return(0,t.flow)([(0,a.filter)(function($){return $==null?void 0:$.name}),K&&(0,a.filter)(G),(0,a.sortBy)(function($){return $==null?void 0:$.name})])(U)},M=function(U){if(P(U),U==="")return A(I[0].items);A(j(I.map(function(K){return K.items}).flat(),U))},R=(0,f.useLocalState)(C,"showDesc",1),D=R[0],W=R[1];return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Section,{title:"Current Balance: "+B+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,b.Button.Checkbox,{content:"Show Descriptions",checked:D,onClick:function(){function _(){return W(!D)}return _}()}),(0,e.createComponentVNode)(2,b.Button,{content:"Random Item",icon:"question",onClick:function(){function _(){return g("buyRandom")}return _}()}),(0,e.createComponentVNode)(2,b.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function _(){return g("refund")}return _}()})],4),children:(0,e.createComponentVNode)(2,b.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function _(U,K){M(K)}return _}(),value:E})})})}),(0,e.createComponentVNode)(2,b.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,b.Tabs,{vertical:!0,children:I.map(function(_){return(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:E!==""?!1:_.items===w,onClick:function(){function U(){A(_.items),P("")}return U}(),children:_.cat},_)})})})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:w.map(function(_){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,d,{i:_,showDecription:D},(0,o.decodeHtmlEntities)(_.name))},(0,o.decodeHtmlEntities)(_.name))})})})})]})]})},i=function(N,C){var p=(0,f.useBackend)(C),g=p.act,V=p.data,B=V.cart,I=V.crystals,L=V.cart_price,w=(0,f.useLocalState)(C,"showDesc",0),A=w[0],x=w[1];return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+I+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,b.Button.Checkbox,{content:"Show Descriptions",checked:A,onClick:function(){function E(){return x(!A)}return E}()}),(0,e.createComponentVNode)(2,b.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function E(){return g("empty_cart")}return E}(),disabled:!B}),(0,e.createComponentVNode)(2,b.Button,{content:"Purchase Cart ("+L+"TC)",icon:"shopping-cart",onClick:function(){function E(){return g("purchase_cart")}return E}(),disabled:!B||L>I})],4),children:(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:B?B.map(function(E){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,d,{i:E,showDecription:A,buttons:(0,e.createComponentVNode)(2,s,{i:E})})},(0,o.decodeHtmlEntities)(E.name))}):(0,e.createComponentVNode)(2,b.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,m)]})},m=function(N,C){var p=(0,f.useBackend)(C),g=p.act,V=p.data,B=V.cats,I=V.lucky_numbers;return(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,b.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function L(){return g("shuffle_lucky_numbers")}return L}()}),children:(0,e.createComponentVNode)(2,b.Stack,{wrap:!0,children:I.map(function(L){return B[L.cat].items[L.item]}).filter(function(L){return L!=null}).map(function(L,w){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,mb:1,ml:1,width:34,backgroundColor:"rgba(255, 0, 0, 0.15)",children:(0,e.createComponentVNode)(2,d,{grow:!0,i:L})},w)})})})})},d=function(N,C){var p=N.i,g=N.showDecription,V=g===void 0?1:g,B=N.buttons,I=B===void 0?(0,e.createComponentVNode)(2,u,{i:p}):B;return(0,e.createComponentVNode)(2,b.Section,{title:(0,o.decodeHtmlEntities)(p.name),showBottom:V,buttons:I,children:V?(0,e.createComponentVNode)(2,b.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(p.desc)}):null})},u=function(N,C){var p=(0,f.useBackend)(C),g=p.act,V=p.data,B=N.i,I=V.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,b.Button,{icon:"shopping-cart",color:B.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function L(){return g("add_to_cart",{item:B.obj_path})}return L}(),disabled:B.cost>I}),(0,e.createComponentVNode)(2,b.Button,{content:"Buy ("+B.cost+"TC)"+(B.refundable?" [Refundable]":""),color:B.hijack_only===1&&"red",tooltip:B.hijack_only===1&&"Hijack Agents Only!",tooltipPosition:"left",onClick:function(){function L(){return g("buyItem",{item:B.obj_path})}return L}(),disabled:B.cost>I})],4)},s=function(N,C){var p=(0,f.useBackend)(C),g=p.act,V=p.data,B=N.i,I=V.exploitable;return(0,e.createComponentVNode)(2,b.Stack,{children:[(0,e.createComponentVNode)(2,b.Button,{icon:"times",content:"("+B.cost*B.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function L(){return g("remove_from_cart",{item:B.obj_path})}return L}()}),(0,e.createComponentVNode)(2,b.Button,{icon:"minus",tooltip:B.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function L(){return g("set_cart_item_quantity",{item:B.obj_path,quantity:--B.amount})}return L}(),disabled:B.amount<=0}),(0,e.createComponentVNode)(2,b.Button.Input,{content:B.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:B.limit===0&&"Discount already redeemed!",onCommit:function(){function L(w,A){return g("set_cart_item_quantity",{item:B.obj_path,quantity:A})}return L}(),disabled:B.limit!==-1&&B.amount>=B.limit&&B.amount<=0}),(0,e.createComponentVNode)(2,b.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:B.limit===0&&"Discount already redeemed!",onClick:function(){function L(){return g("set_cart_item_quantity",{item:B.obj_path,quantity:++B.amount})}return L}(),disabled:B.limit!==-1&&B.amount>=B.limit})]})},l=function(N,C){var p=(0,f.useBackend)(C),g=p.act,V=p.data,B=V.exploitable,I=(0,f.useLocalState)(C,"selectedRecord",B[0]),L=I[0],w=I[1],A=(0,f.useLocalState)(C,"searchText",""),x=A[0],E=A[1],P=function(R,D){D===void 0&&(D="");var W=(0,o.createSearch)(D,function(_){return _.name});return(0,t.flow)([(0,a.filter)(function(_){return _==null?void 0:_.name}),D&&(0,a.filter)(W),(0,a.sortBy)(function(_){return _.name})])(R)},j=P(B,x);return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Exploitable Records",children:[(0,e.createComponentVNode)(2,b.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function M(R,D){return E(D)}return M}()}),(0,e.createComponentVNode)(2,b.Tabs,{vertical:!0,children:j.map(function(M){return(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:M===L,onClick:function(){function R(){return w(M)}return R}(),children:M.name},M)})})]})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:L.name,children:(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Age",children:L.age}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Fingerprint",children:L.fingerprint}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Rank",children:L.rank}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Sex",children:L.sex}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Species",children:L.species})]})})})]})}},12261:function(T,r,n){"use strict";r.__esModule=!0,r.Vending=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=S.product,d=S.productStock,u=S.productImage,s=i.chargesMoney,l=i.user,v=i.usermoney,N=i.inserted_cash,C=i.vend_ready,p=i.inserted_item_name,g=!s||m.price===0,V="ERROR!",B="";g?(V="FREE",B="arrow-circle-down"):(V=m.price,B="shopping-cart");var I=!C||d===0||!g&&m.price>v&&m.price>N;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+u,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:m.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Box,{color:d<=0&&"bad"||d<=m.max_amount/2&&"average"||"good",children:[d," in stock"]})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,disabled:I,icon:B,content:V,textAlign:"left",onClick:function(){function L(){return c("vend",{inum:m.inum})}return L}()})})]})},b=r.Vending=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.user,d=i.usermoney,u=i.inserted_cash,s=i.chargesMoney,l=i.product_records,v=l===void 0?[]:l,N=i.hidden_records,C=N===void 0?[]:N,p=i.stock,g=i.vend_ready,V=i.inserted_item_name,B=i.panel_open,I=i.speaker,L=i.imagelist,w;return w=[].concat(v),i.extended_inventory&&(w=[].concat(w,C)),w=w.filter(function(A){return!!A}),(0,e.createComponentVNode)(2,o.Window,{title:"Vending Machine",width:450,height:Math.min((s?171:89)+w.length*32,585),children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!s&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!V&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:(0,e.createVNode)(1,"span",null,V,0,{style:{"text-transform":"capitalize"}}),onClick:function(){function A(){return c("eject_item",{})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!u,icon:"money-bill-wave-alt",content:u?(0,e.createFragment)([(0,e.createVNode)(1,"b",null,u,0),(0,e.createTextVNode)(" credits")],0):"Dispense Change",tooltip:u?"Dispense Change":null,textAlign:"left",onClick:function(){function A(){return c("change")}return A}()})})]}),children:m&&(0,e.createComponentVNode)(2,t.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,m.name,0),", ",(0,e.createVNode)(1,"b",null,m.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[d,(0,e.createTextVNode)(" credits")],0),".",(0,e.createVNode)(1,"br")]})})}),!!B&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,t.Button,{icon:I?"check":"volume-mute",selected:I,content:"Speaker",textAlign:"left",onClick:function(){function A(){return c("toggle_voice",{})}return A}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:(0,e.createComponentVNode)(2,t.Table,{children:w.map(function(A){return(0,e.createComponentVNode)(2,f,{product:A,productStock:p[A.name],productImage:L[A.path]},A.name)})})})})]})})})}return y}()},68971:function(T,r,n){"use strict";r.__esModule=!0,r.VolumeMixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.VolumeMixer=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.channels;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:Math.min(95+i.length*50,565),children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:i.map(function(m,d){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.25rem",color:"label",mt:d>0&&"0.5rem",children:m.name}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:.5,children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-off",size:"1.5",mt:"0.1rem",onClick:function(){function u(){return h("volume",{channel:m.num,volume:0})}return u}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.Slider,{minValue:0,maxValue:100,stepPixelSize:3.13,value:m.volume,onChange:function(){function u(s,l){return h("volume",{channel:m.num,volume:l})}return u}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",size:"1.5",mt:"0.1rem",onClick:function(){function u(){return h("volume",{channel:m.num,volume:100})}return u}()})})})]})})],4,m.num)})})})})}return b}()},2510:function(T,r,n){"use strict";r.__esModule=!0,r.VotePanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.VotePanel=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.remaining,m=c.question,d=c.choices,u=c.user_vote,s=c.counts,l=c.show_counts;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:360,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:m,children:[(0,e.createComponentVNode)(2,t.Box,{mb:1.5,ml:.5,children:["Time remaining: ",Math.round(i/10),"s"]}),d.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mb:1,fluid:!0,translucent:!0,lineHeight:3,multiLine:v,content:v+(l?" ("+(s[v]||0)+")":""),onClick:function(){function N(){return h("vote",{target:v})}return N}(),selected:v===u})},v)})]})})})}return b}()},30138:function(T,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Wires=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.wires||[],m=c.status||[],d=56+i.length*23+(status?0:15+m.length*17);return(0,e.createComponentVNode)(2,o.Window,{width:350,height:d,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:i.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:u.color_name,labelColor:u.seen_color,color:u.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:u.cut?"Mend":"Cut",onClick:function(){function s(){return h("cut",{wire:u.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function s(){return h("pulse",{wire:u.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:u.attached?"Detach":"Attach",onClick:function(){function s(){return h("attach",{wire:u.color})}return s}()})],4),children:!!u.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),u.wire,(0,e.createTextVNode)(")")],0)},u.seen_color)})})})}),!!m.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:u},u)})})})]})})})}return b}()},21400:function(T,r,n){"use strict";r.__esModule=!0,r.WizardApprenticeContract=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.WizardApprenticeContract=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.used;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:555,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Contract of Apprenticeship",children:["Using this contract, you may summon an apprentice to aid you on your mission.",(0,e.createVNode)(1,"p",null,"If you are unable to establish contact with your apprentice, you can feed the contract back to the spellbook to refund your points.",16),i?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"You've already summoned an apprentice or you are in process of summoning one."}):""]}),(0,e.createComponentVNode)(2,t.Section,{title:"Which school of magic is your apprentice studying?",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fire",children:["Your apprentice is skilled in bending fire. ",(0,e.createVNode)(1,"br"),"They know Fireball, Sacred Flame, and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:i,onClick:function(){function m(){return h("fire")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Translocation",children:["Your apprentice is able to defy physics, learning how to move through bluespace. ",(0,e.createVNode)(1,"br"),"They know Teleport, Blink and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:i,onClick:function(){function m(){return h("translocation")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Restoration",children:["Your apprentice is dedicated to supporting your magical prowess.",(0,e.createVNode)(1,"br"),"They come equipped with a Staff of Healing, have the unique ability to teleport back to you, and know Charge and Knock.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:i,onClick:function(){function m(){return h("restoration")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stealth",children:["Your apprentice is learning the art of infiltrating mundane facilities. ",(0,e.createVNode)(1,"br"),"They know Mindswap, Knock, Homing Toolbox, and Disguise Self, all of which can be cast without robes. They also join you in a Maintenance Dweller disguise, complete with Gloves of Shock Immunity and a Belt of Tools.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:i,onClick:function(){function m(){return h("stealth")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Honk",children:["Your apprentice is here to spread the Honkmother's blessings.",(0,e.createVNode)(1,"br"),"They know Banana Touch, Instant Summons, Ethereal Jaunt, and come equipped with a Staff of Slipping."," ",(0,e.createVNode)(1,"br"),"While under your tutelage, they have been 'blessed' with clown shoes that are impossible to remove.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:i,onClick:function(){function m(){return h("honk")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})})]})})}return b}()},49148:function(T,r,n){"use strict";r.__esModule=!0,r.AccessList=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036);function f(h,c){var i=typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(i)return(i=i.call(h)).next.bind(i);if(Array.isArray(h)||(i=b(h))||c&&h&&typeof h.length=="number"){i&&(h=i);var m=0;return function(){return m>=h.length?{done:!0}:{done:!1,value:h[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(h,c){if(h){if(typeof h=="string")return y(h,c);var i={}.toString.call(h).slice(8,-1);return i==="Object"&&h.constructor&&(i=h.constructor.name),i==="Map"||i==="Set"?Array.from(h):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?y(h,c):void 0}}function y(h,c){(c==null||c>h.length)&&(c=h.length);for(var i=0,m=Array(c);i0&&!V.includes(D.ref)&&!p.includes(D.ref),checked:p.includes(D.ref),onClick:function(){function W(){return B(D.ref)}return W}()},D.desc)})]})]})})}return h}()},26991:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosScan=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),f=function(S,k,h,c,i){return Sc?"average":S>i?"bad":"good"},b=r.AtmosScan=function(){function y(S,k){var h=S.data.aircontents;return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,a.filter)(function(c){return c.val!=="0"||c.entry==="Pressure"||c.entry==="Temperature"})(h).map(function(c){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:c.entry,color:f(c.val,c.bad_low,c.poor_low,c.poor_high,c.bad_high),children:[c.val,c.units]},c.entry)})})})}return y}()},85870:function(T,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(89005),a=n(36036),t=n(15964),o=function(y){return y+" unit"+(y===1?"":"s")},f=r.BeakerContents=function(){function b(y){var S=y.beakerLoaded,k=y.beakerContents,h=k===void 0?[]:k,c=y.buttons;return(0,e.createComponentVNode)(2,a.Stack,{vertical:!0,children:[!S&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"No beaker loaded."})||h.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"Beaker is empty."}),h.map(function(i,m){return(0,e.createComponentVNode)(2,a.Stack,{children:[(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",grow:!0,children:[o(i.volume)," of ",i.name]},i.name),!!c&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:c(i,m)})]},i.name)})]})}return b}();f.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},92963:function(T,r,n){"use strict";r.__esModule=!0,r.BotStatus=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.BotStatus=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,c=h.locked,i=h.noaccess,m=h.maintpanel,d=h.on,u=h.autopatrol,s=h.canhack,l=h.emagged,v=h.remote_disabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe an ID card to ",c?"unlock":"lock"," this interface."]}),(0,e.createComponentVNode)(2,t.Section,{title:"General Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"On":"Off",selected:d,disabled:i,onClick:function(){function N(){return k("power")}return N}()})}),u!==null&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patrol",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Auto Patrol",disabled:i,onClick:function(){function N(){return k("autopatrol")}return N}()})}),!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Panel Open!"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety System",children:(0,e.createComponentVNode)(2,t.Box,{color:l?"bad":"good",children:l?"DISABLED!":"Enabled"})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hacking",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:l?"Restore Safties":"Hack",disabled:i,color:"bad",onClick:function(){function N(){return k("hack")}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Access",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!v,content:"AI Remote Control",disabled:i,onClick:function(){function N(){return k("disableremote")}return N}()})})]})})],4)}return f}()},3939:function(T,r,n){"use strict";r.__esModule=!0,r.modalRegisterBodyOverride=r.modalOpen=r.modalClose=r.modalAnswer=r.ComplexModal=void 0;var e=n(89005),a=n(72253),t=n(36036),o={},f=r.modalOpen=function(){function h(c,i,m){var d=(0,a.useBackend)(c),u=d.act,s=d.data,l=Object.assign(s.modal?s.modal.args:{},m||{});u("modal_open",{id:i,arguments:JSON.stringify(l)})}return h}(),b=r.modalRegisterBodyOverride=function(){function h(c,i){o[c]=i}return h}(),y=r.modalAnswer=function(){function h(c,i,m,d){var u=(0,a.useBackend)(c),s=u.act,l=u.data;if(l.modal){var v=Object.assign(l.modal.args||{},d||{});s("modal_answer",{id:i,answer:m,arguments:JSON.stringify(v)})}}return h}(),S=r.modalClose=function(){function h(c,i){var m=(0,a.useBackend)(c),d=m.act;d("modal_close",{id:i})}return h}(),k=r.ComplexModal=function(){function h(c,i){var m=(0,a.useBackend)(i),d=m.data;if(d.modal){var u=d.modal,s=u.id,l=u.text,v=u.type,N,C=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"Cancel",onClick:function(){function L(){return S(i)}return L}()}),p,g,V="auto";if(o[s])p=o[s](d.modal,i);else if(v==="input"){var B=d.modal.value;N=function(){function L(w){return y(i,s,B)}return L}(),p=(0,e.createComponentVNode)(2,t.Input,{value:d.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(){function L(w,A){B=A}return L}()}),g=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){function L(){return S(i)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){function L(){return y(i,s,B)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(v==="choice"){var I=typeof d.modal.choices=="object"?Object.values(d.modal.choices):d.modal.choices;p=(0,e.createComponentVNode)(2,t.Dropdown,{options:I,selected:d.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function L(w){return y(i,s,w)}return L}()}),V="initial"}else v==="bento"?p=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:d.modal.choices.map(function(L,w){return(0,e.createComponentVNode)(2,t.Stack.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:w+1===parseInt(d.modal.value,10),onClick:function(){function A(){return y(i,s,w+1)}return A}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:L})})},w)})}):v==="boolean"&&(g=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:d.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){function L(){return y(i,s,0)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:d.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function L(){return y(i,s,1)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:c.maxWidth||window.innerWidth/2+"px",maxHeight:c.maxHeight||window.innerHeight/2+"px",onEnter:N,mx:"auto",overflowY:V,"padding-bottom":"5px",children:[l&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:l}),o[s]&&C,p,g]})}}return h}()},41874:function(T,r,n){"use strict";r.__esModule=!0,r.CrewManifest=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(25328),f=n(76910),b=f.COLORS.department,y=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],S=function(m){return y.indexOf(m)!==-1?"green":"orange"},k=function(m){if(y.indexOf(m)!==-1)return!0},h=function(m){return m.length>0&&(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,color:"white",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"50%",children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"35%",children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"15%",children:"Active"})]}),m.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{color:S(d.rank),bold:k(d.rank),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(d.name)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(d.rank)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.active})]},d.name+d.rank)})]})},c=r.CrewManifest=function(){function i(m,d){var u=(0,a.useBackend)(d),s=u.act,l;if(m.data)l=m.data;else{var v=(0,a.useBackend)(d),N=v.data;l=N}var C=l,p=C.manifest,g=p.heads,V=p.sec,B=p.eng,I=p.med,L=p.sci,w=p.ser,A=p.sup,x=p.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.command,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Command"})}),level:2,children:h(g)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.security,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Security"})}),level:2,children:h(V)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.engineering,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Engineering"})}),level:2,children:h(B)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.medical,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Medical"})}),level:2,children:h(I)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.science,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Science"})}),level:2,children:h(L)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.service,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Service"})}),level:2,children:h(w)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.supply,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Supply"})}),level:2,children:h(A)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Misc"})}),level:2,children:h(x)})]})}return i}()},19203:function(T,r,n){"use strict";r.__esModule=!0,r.InputButtons=void 0;var e=n(89005),a=n(36036),t=n(72253),o=r.InputButtons=function(){function f(b,y){var S=(0,t.useBackend)(y),k=S.act,h=S.data,c=h.large_buttons,i=h.swapped_buttons,m=b.input,d=b.message,u=b.disabled,s=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"Submit",bold:!!c,fluid:!!c,onClick:function(){function v(){return k("submit",{entry:m})}return v}(),textAlign:"center",tooltip:c&&d,disabled:u,width:!c&&6}),l=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"Cancel",bold:!!c,fluid:!!c,onClick:function(){function v(){return k("cancel")}return v}(),textAlign:"center",width:!c&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:i?"row-reverse":"row",justify:"space-around",children:[c?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:i?.5:0,mr:i?0:.5,children:l}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:l}),!c&&d&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:d})}),c?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,mr:i?.5:0,ml:i?0:.5,children:s}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:s})]})}return f}()},195:function(T,r,n){"use strict";r.__esModule=!0,r.InterfaceLockNoticeBox=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.InterfaceLockNoticeBox=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,c=b.siliconUser,i=c===void 0?h.siliconUser:c,m=b.locked,d=m===void 0?h.locked:m,u=b.normallyLocked,s=u===void 0?h.normallyLocked:u,l=b.onLockStatusChange,v=l===void 0?function(){return k("lock")}:l,N=b.accessText,C=N===void 0?"an ID card":N;return i?(0,e.createComponentVNode)(2,t.NoticeBox,{color:i&&"grey",children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:"Interface lock status:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1"}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{m:"0",color:s?"red":"green",icon:s?"lock":"unlock",content:s?"Locked":"Unlocked",onClick:function(){function p(){v&&v(!d)}return p}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",C," to ",d?"unlock":"lock"," this interface."]})}return f}()},51057:function(T,r,n){"use strict";r.__esModule=!0,r.Loader=void 0;var e=n(89005),a=n(44879),t=n(36036),o=r.Loader=function(){function f(b){var y=b.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(y)*100+"%"}}),2)}return f}()},321:function(T,r,n){"use strict";r.__esModule=!0,r.LoginInfo=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LoginInfo=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,c=h.loginState;if(h)return(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:["Logged in as: ",c.name," (",c.rank,")"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!c.id,content:"Eject ID",color:"good",onClick:function(){function i(){return k("login_eject")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Logout",color:"good",onClick:function(){function i(){return k("login_logout")}return i}()})]})]})})}return f}()},5485:function(T,r,n){"use strict";r.__esModule=!0,r.LoginScreen=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LoginScreen=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,c=h.loginState,i=h.isAI,m=h.isRobot,d=h.isAdmin;return(0,e.createComponentVNode)(2,t.Section,{title:"Welcome",fill:!0,stretchContents:!0,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",align:"center",justify:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"center",mt:"-2rem",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,e.createComponentVNode)(2,t.Box,{color:"label",my:"1rem",children:["ID:",(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:c.id?c.id:"----------",ml:"0.5rem",onClick:function(){function u(){return k("login_insert")}return u}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!c.id,content:"Login",onClick:function(){function u(){return k("login_login",{login_type:1})}return u}()}),!!i&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){function u(){return k("login_login",{login_type:2})}return u}()}),!!m&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){function u(){return k("login_login",{login_type:3})}return u}()}),!!d&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){function u(){return k("login_login",{login_type:4})}return u}()})]})})})}return f}()},62411:function(T,r,n){"use strict";r.__esModule=!0,r.Operating=void 0;var e=n(89005),a=n(36036),t=n(15964),o=r.Operating=function(){function f(b){var y=b.operating,S=b.name;if(y)return(0,e.createComponentVNode)(2,a.Dimmer,{children:(0,e.createComponentVNode)(2,a.Flex,{mb:"30px",children:(0,e.createComponentVNode)(2,a.Flex.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,e.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,e.createVNode)(1,"br"),"The ",S," is processing..."]})})})}return f}();o.propTypes={operating:t.bool,name:t.string}},13545:function(T,r,n){"use strict";r.__esModule=!0,r.Signaler=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=r.Signaler=function(){function b(y,S){var k=(0,t.useBackend)(S),h=k.act,c=y.data,i=c.code,m=c.frequency,d=c.minFrequency,u=c.maxFrequency;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:d/10,maxValue:u/10,value:m/10,format:function(){function s(l){return(0,a.toFixed)(l,1)}return s}(),width:"80px",onDrag:function(){function s(l,v){return h("freq",{freq:v})}return s}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:i,width:"80px",onDrag:function(){function s(l,v){return h("code",{code:v})}return s}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function s(){return h("signal")}return s}()})]})}return b}()},41984:function(T,r,n){"use strict";r.__esModule=!0,r.SimpleRecords=void 0;var e=n(89005),a=n(72253),t=n(25328),o=n(64795),f=n(88510),b=n(36036),y=r.SimpleRecords=function(){function h(c,i){var m=c.data.records;return(0,e.createComponentVNode)(2,b.Box,{children:m?(0,e.createComponentVNode)(2,k,{data:c.data,recordType:c.recordType}):(0,e.createComponentVNode)(2,S,{data:c.data})})}return h}(),S=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=c.data.recordsList,s=(0,a.useLocalState)(i,"searchText",""),l=s[0],v=s[1],N=function(g,V){V===void 0&&(V="");var B=(0,t.createSearch)(V,function(I){return I.Name});return(0,o.flow)([(0,f.filter)(function(I){return I==null?void 0:I.Name}),V&&(0,f.filter)(B),(0,f.sortBy)(function(I){return I.Name})])(u)},C=N(u,l);return(0,e.createComponentVNode)(2,b.Box,{children:[(0,e.createComponentVNode)(2,b.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function p(g,V){return v(V)}return p}()}),C.map(function(p){return(0,e.createComponentVNode)(2,b.Box,{children:(0,e.createComponentVNode)(2,b.Button,{mb:.5,content:p.Name,icon:"user",onClick:function(){function g(){return d("Records",{target:p.uid})}return g}()})},p)})]})},k=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=c.data.records,s=u.general,l=u.medical,v=u.security,N;switch(c.recordType){case"MED":N=(0,e.createComponentVNode)(2,b.Section,{level:2,title:"Medical Data",children:l?(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Blood Type",children:l.blood_type}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Minor Disabilities",children:l.mi_dis}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:l.mi_dis_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Major Disabilities",children:l.ma_dis}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:l.ma_dis_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Allergies",children:l.alg}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:l.alg_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Current Diseases",children:l.cdi}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:l.cdi_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:l.notes})]}):(0,e.createComponentVNode)(2,b.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":N=(0,e.createComponentVNode)(2,b.Section,{level:2,title:"Security Data",children:v?(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Criminal Status",children:v.criminal}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Minor Crimes",children:v.mi_crim}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:v.mi_crim_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Major Crimes",children:v.ma_crim}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:v.ma_crim_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:v.notes})]}):(0,e.createComponentVNode)(2,b.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,b.Box,{children:[(0,e.createComponentVNode)(2,b.Section,{title:"General Data",children:s?(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Name",children:s.name}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Sex",children:s.sex}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Species",children:s.species}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Age",children:s.age}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Rank",children:s.rank}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Mental Status",children:s.m_stat})]}):(0,e.createComponentVNode)(2,b.Box,{color:"red",bold:!0,children:"General record lost!"})}),N]})}},22091:function(T,r,n){"use strict";r.__esModule=!0,r.TemporaryNotice=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.TemporaryNotice=function(){function f(b,y){var S,k=(0,a.useBackend)(y),h=k.act,c=k.data,i=c.temp;if(i){var m=(S={},S[i.style]=!0,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.NoticeBox,Object.assign({},m,{children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:i.text}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"times-circle",onClick:function(){function d(){return h("cleartemp")}return d}()})})]})})))}}return f}()},80818:function(T,r,n){"use strict";r.__esModule=!0,r.pai_atmosphere=void 0;var e=n(89005),a=n(72253),t=n(26991),o=r.pai_atmosphere=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:h.app_data})}return f}()},23903:function(T,r,n){"use strict";r.__esModule=!0,r.pai_bioscan=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_bioscan=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,c=h.app_data,i=c.holder,m=c.dead,d=c.health,u=c.brute,s=c.oxy,l=c.tox,v=c.burn,N=c.temp;return i?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:m?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"Dead"}):(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"green",children:"Alive"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:0,max:1,value:d/100,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"blue",children:s})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxin Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"green",children:l})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:v})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:u})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return f}()},64988:function(T,r,n){"use strict";r.__esModule=!0,r.pai_directives=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_directives=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,c=h.app_data,i=c.master,m=c.dna,d=c.prime,u=c.supplemental;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master",children:i?i+" ("+m+")":"None"}),i&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Request DNA",children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Carrier DNA Sample",icon:"dna",onClick:function(){function s(){return k("getdna")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prime Directive",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Supplemental Directives",children:u||"None"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})}return f}()},13813:function(T,r,n){"use strict";r.__esModule=!0,r.pai_doorjack=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_doorjack=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,c=h.app_data,i=c.cable,m=c.machine,d=c.inprogress,u=c.progress,s=c.aborted,l;m?l=(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Connected"}):l=(0,e.createComponentVNode)(2,t.Button,{content:i?"Extended":"Retracted",color:i?"orange":null,onClick:function(){function N(){return k("cable")}return N}()});var v;return m&&(v=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hack",children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[67,1/0],average:[33,67],bad:[-1/0,33]},value:u,maxValue:100}),d?(0,e.createComponentVNode)(2,t.Button,{mt:1,color:"red",content:"Abort",onClick:function(){function N(){return k("cancel")}return N}()}):(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Start",onClick:function(){function N(){return k("jack")}return N}()})]})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cable",children:l}),v]})}return f}()},66025:function(T,r,n){"use strict";r.__esModule=!0,r.pai_main_menu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_main_menu=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,c=h.app_data,i=c.available_software,m=c.installed_software,d=c.installed_toggles,u=c.available_ram,s=c.emotions,l=c.current_emotion,v=c.speech_verbs,N=c.current_speech_verb,C=c.available_chassises,p=c.current_chassis,g=[];return m.map(function(V){return g[V.key]=V.name}),d.map(function(V){return g[V.key]=V.name}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available RAM",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Software",children:[i.filter(function(V){return!g[V.key]}).map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name+" ("+V.cost+")",icon:V.icon,disabled:V.cost>u,onClick:function(){function B(){return k("purchaseSoftware",{key:V.key})}return B}()},V.key)}),i.filter(function(V){return!g[V.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[m.filter(function(V){return V.key!=="mainmenu"}).map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,icon:V.icon,onClick:function(){function B(){return k("startSoftware",{software_key:V.key})}return B}()},V.key)}),m.length===0&&"No software installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Toggles",children:[d.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,icon:V.icon,selected:V.active,onClick:function(){function B(){return k("setToggle",{toggle_key:V.key})}return B}()},V.key)}),d.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:s.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,selected:V.id===l,onClick:function(){function B(){return k("setEmotion",{emotion:V.id})}return B}()},V.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Speaking State",children:v.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,selected:V.name===N,onClick:function(){function B(){return k("setSpeechStyle",{speech_state:V.name})}return B}()},V.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Chassis Type",children:C.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,selected:V.icon===p,onClick:function(){function B(){return k("setChassis",{chassis_to_change:V.icon})}return B}()},V.id)})})]})})}return f}()},2983:function(T,r,n){"use strict";r.__esModule=!0,r.pai_manifest=void 0;var e=n(89005),a=n(72253),t=n(41874),o=r.pai_manifest=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:h.app_data})}return f}()},40758:function(T,r,n){"use strict";r.__esModule=!0,r.pai_medrecords=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pai_medrecords=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k.app_data,recordType:"MED"})}return f}()},98599:function(T,r,n){"use strict";r.__esModule=!0,r.pai_messenger=void 0;var e=n(89005),a=n(72253),t=n(77595),o=r.pai_messenger=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,c=h.app_data.active_convo;return c?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:h.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:h.app_data})}return f}()},50775:function(T,r,n){"use strict";r.__esModule=!0,r.pai_radio=void 0;var e=n(89005),a=n(72253),t=n(44879),o=n(36036),f=r.pai_radio=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.app_data,m=i.minFrequency,d=i.maxFrequency,u=i.frequency,s=i.broadcasting;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:m/10,maxValue:d/10,value:u/10,format:function(){function l(v){return(0,t.toFixed)(v,1)}return l}(),onChange:function(){function l(v,N){return h("freq",{freq:N})}return l}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function l(){return h("freq",{freq:"145.9"})}return l}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function l(){return h("toggleBroadcast")}return l}(),selected:s,content:s?"Enabled":"Disabled"})})]})}return b}()},48623:function(T,r,n){"use strict";r.__esModule=!0,r.pai_secrecords=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pai_secrecords=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k.app_data,recordType:"SEC"})}return f}()},47297:function(T,r,n){"use strict";r.__esModule=!0,r.pai_signaler=void 0;var e=n(89005),a=n(72253),t=n(13545),o=r.pai_signaler=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:h.app_data})}return f}()},78532:function(T,r,n){"use strict";r.__esModule=!0,r.pda_atmos_scan=void 0;var e=n(89005),a=n(72253),t=n(26991),o=r.pda_atmos_scan=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:k})}return f}()},40253:function(T,r,n){"use strict";r.__esModule=!0,r.pda_janitor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_janitor=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,c=h.janitor,i=c.user_loc,m=c.mops,d=c.buckets,u=c.cleanbots,s=c.carts,l=c.janicarts;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Location",children:[i.x,",",i.y]}),m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Locations",children:m.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - ",v.status]},v)})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:d.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - [",v.volume,"/",v.max_volume,"]"]},v)})}),u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:u.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - ",v.status]},v)})}),s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:s.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - [",v.volume,"/",v.max_volume,"]"]},v)})}),l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janicart Locations",children:l.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.direction_from_user,")"]},v)})})]})}return f}()},58293:function(T,r,n){"use strict";r.__esModule=!0,r.pda_main_menu=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=r.pda_main_menu=function(){function b(y,S){var k=(0,t.useBackend)(S),h=k.act,c=k.data,i=c.owner,m=c.ownjob,d=c.idInserted,u=c.categories,s=c.pai,l=c.notifying;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",color:"average",children:[i,", ",m]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID",children:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Update PDA Info",disabled:!d,onClick:function(){function v(){return h("UpdateInfo")}return v}()})})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Functions",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:u.map(function(v){var N=c.apps[v];return!N||!N.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:v,children:N.map(function(C){return(0,e.createComponentVNode)(2,o.Button,{icon:C.uid in l?C.notify_icon:C.icon,iconSpin:C.uid in l,color:C.uid in l?"red":"transparent",content:C.name,onClick:function(){function p(){return h("StartProgram",{program:C.uid})}return p}()},C.uid)})},v)})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!s&&(0,e.createComponentVNode)(2,o.Section,{title:"pAI",children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){function v(){return h("pai",{option:1})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function v(){return h("pai",{option:2})}return v}()})]})})]})}return b}()},58059:function(T,r,n){"use strict";r.__esModule=!0,r.pda_manifest=void 0;var e=n(89005),a=n(72253),t=n(41874),o=r.pda_manifest=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return f}()},18147:function(T,r,n){"use strict";r.__esModule=!0,r.pda_medical=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pda_medical=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k,recordType:"MED"})}return f}()},77595:function(T,r,n){"use strict";r.__esModule=!0,r.pda_messenger=r.MessengerList=r.ActiveConversation=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),f=r.pda_messenger=function(){function k(h,c){var i=(0,t.useBackend)(c),m=i.act,d=i.data,u=d.active_convo;return u?(0,e.createComponentVNode)(2,b,{data:d}):(0,e.createComponentVNode)(2,y,{data:d})}return k}(),b=r.ActiveConversation=function(){function k(h,c){var i=(0,t.useBackend)(c),m=i.act,d=h.data,u=d.convo_name,s=d.convo_job,l=d.messages,v=d.active_convo,N=(0,t.useLocalState)(c,"clipboardMode",!1),C=N[0],p=N[1],g=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+u+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:C,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function V(){return p(!C)}return V}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function V(){return m("Message",{target:v})}return V}(),content:"Reply"})],4),children:(0,a.filter)(function(V){return V.target===v})(l).map(function(V,B){return(0,e.createComponentVNode)(2,o.Box,{textAlign:V.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:V.sent?"#4d9121":"#cd7a0d",position:"absolute",left:V.sent?null:"0px",right:V.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:V.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:V.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:V.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[V.sent?"You:":"Them:"," ",V.message]})]},B)})});return C&&(g=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+u+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:C,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function V(){return p(!C)}return V}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function V(){return m("Message",{target:v})}return V}(),content:"Reply"})],4),children:(0,a.filter)(function(V){return V.target===v})(l).map(function(V,B){return(0,e.createComponentVNode)(2,o.Box,{color:V.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[V.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:V.message})]},B)})})),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:.5,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Delete Conversations",confirmContent:"Are you sure?",icon:"trash",confirmIcon:"trash",onClick:function(){function V(){return m("Clear",{option:"Convo"})}return V}()})})})}),g]})}return k}(),y=r.MessengerList=function(){function k(h,c){var i=(0,t.useBackend)(c),m=i.act,d=h.data,u=d.convopdas,s=d.pdas,l=d.charges,v=d.silent,N=d.toff,C=d.ringtone_list,p=d.ringtone,g=(0,t.useLocalState)(c,"searchTerm",""),V=g[0],B=g[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:5,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!v,icon:v?"volume-mute":"volume-up",onClick:function(){function I(){return m("Toggle Ringer")}return I}(),children:["Ringer: ",v?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:N?"bad":"green",icon:"power-off",onClick:function(){function I(){return m("Toggle Messenger")}return I}(),children:["Messenger: ",N?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function I(){return m("Clear",{option:"All"})}return I}(),children:"Delete All Conversations"}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function I(){return m("Ringtone")}return I}(),children:"Set Custom Ringtone"}),(0,e.createComponentVNode)(2,o.Button,{children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:p,width:"100px",options:Object.keys(C),onSelected:function(){function I(L){return m("Available_Ringtones",{selected_ringtone:L})}return I}()})})]})}),!N&&(0,e.createComponentVNode)(2,o.Box,{children:[!!l&&(0,e.createComponentVNode)(2,o.Box,{mt:.5,mb:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cartridge Special Function",children:[l," charges left."]})})}),!u.length&&!s.length&&(0,e.createComponentVNode)(2,o.Box,{children:"No current conversations"})||(0,e.createComponentVNode)(2,o.Box,{children:["Search:"," ",(0,e.createComponentVNode)(2,o.Input,{mt:.5,value:V,onInput:function(){function I(L,w){B(w)}return I}()})]})]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Messenger Offline."})]}),(0,e.createComponentVNode)(2,S,{title:"Current Conversations",data:d,pdas:u,msgAct:"Select Conversation",searchTerm:V}),(0,e.createComponentVNode)(2,S,{title:"Other PDAs",pdas:s,msgAct:"Message",data:d,searchTerm:V})]})}return k}(),S=function(h,c){var i=(0,t.useBackend)(c),m=i.act,d=h.data,u=h.pdas,s=h.title,l=h.msgAct,v=h.searchTerm,N=d.charges,C=d.plugins;return!u||!u.length?(0,e.createComponentVNode)(2,o.Section,{title:s,children:"No PDAs found."}):(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:s,children:u.filter(function(p){return p.Name.toLowerCase().includes(v.toLowerCase())}).map(function(p){return(0,e.createComponentVNode)(2,o.Stack,{m:.5,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"arrow-circle-down",content:p.Name,onClick:function(){function g(){return m(l,{target:p.uid})}return g}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!N&&C.map(function(g){return(0,e.createComponentVNode)(2,o.Button,{icon:g.icon,content:g.name,onClick:function(){function V(){return m("Messenger Plugin",{plugin:g.uid,target:p.uid})}return V}()},g.uid)})})]},p.uid)})})}},24635:function(T,r,n){"use strict";r.__esModule=!0,r.pda_mule=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_mule=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.mulebot,d=m.active;return(0,e.createComponentVNode)(2,t.Box,{children:d?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,f)})}return y}(),f=function(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.mulebot,d=m.bots;return d.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:u.Name,icon:"cog",onClick:function(){function s(){return c("control",{bot:u.uid})}return s}()})},u.Name)})},b=function(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.mulebot,d=m.botstatus,u=m.active,s=d.mode,l=d.loca,v=d.load,N=d.powr,C=d.dest,p=d.home,g=d.retn,V=d.pick,B;switch(s){case 0:B="Ready";break;case 1:B="Loading/Unloading";break;case 2:case 12:B="Navigating to delivery location";break;case 3:B="Navigating to Home";break;case 4:B="Waiting for clear path";break;case 5:case 6:B="Calculating navigation path";break;case 7:B="Unable to locate destination";break;default:B=s;break}return(0,e.createComponentVNode)(2,t.Section,{title:u,children:[s===-1&&(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[N,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Home",children:p}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:(0,e.createComponentVNode)(2,t.Button,{content:C?C+" (Set)":"None (Set)",onClick:function(){function I(){return c("target")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:v?v+" (Unload)":"None",disabled:!v,onClick:function(){function I(){return c("unload")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Pickup",children:(0,e.createComponentVNode)(2,t.Button,{content:V?"Yes":"No",selected:V,onClick:function(){function I(){return c("set_pickup_type",{autopick:V?0:1})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Return",children:(0,e.createComponentVNode)(2,t.Button,{content:g?"Yes":"No",selected:g,onClick:function(){function I(){return c("set_auto_return",{autoret:g?0:1})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function I(){return c("stop")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function I(){return c("start")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function I(){return c("home")}return I}()})]})]})]})}},23734:function(T,r,n){"use strict";r.__esModule=!0,r.pda_nanobank=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=r.pda_nanobank=function(){function d(u,s){var l=(0,t.useBackend)(s),v=l.act,N=l.data,C=N.logged_in,p=N.owner_name,g=N.money;return C?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Name",children:p}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:["$",g]})]})}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,y)]})],4):(0,e.createComponentVNode)(2,c)}return d}(),b=function(u,s){var l=(0,t.useBackend)(s),v=l.data,N=v.is_premium,C=(0,t.useLocalState)(s,"tabIndex",1),p=C[0],g=C[1];return(0,e.createComponentVNode)(2,o.Tabs,{mt:2,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:p===1,onClick:function(){function V(){return g(1)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transfers"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:p===2,onClick:function(){function V(){return g(2)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Account Actions"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:p===3,onClick:function(){function V(){return g(3)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transaction History"]}),!!N&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:p===4,onClick:function(){function V(){return g(4)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Supply Orders"]})]})},y=function(u,s){var l=(0,t.useLocalState)(s,"tabIndex",1),v=l[0],N=(0,t.useBackend)(s),C=N.data,p=C.db_status;if(!p)return(0,e.createComponentVNode)(2,o.Box,{children:"Account Database Connection Severed"});switch(v){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,k);case 3:return(0,e.createComponentVNode)(2,h);case 4:return(0,e.createComponentVNode)(2,m);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},S=function(u,s){var l,v=(0,t.useBackend)(s),N=v.act,C=v.data,p=C.requests,g=C.available_accounts,V=C.money,B=(0,t.useLocalState)(s,"selectedAccount"),I=B[0],L=B[1],w=(0,t.useLocalState)(s,"transferAmount"),A=w[0],x=w[1],E=(0,t.useLocalState)(s,"searchText",""),P=E[0],j=E[1],M=[];return g.map(function(R){return M[R.name]=R.UID}),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account",children:[(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account name",onInput:function(){function R(D,W){return j(W)}return R}()}),(0,e.createComponentVNode)(2,o.Dropdown,{mt:.6,width:"190px",options:g.filter((0,a.createSearch)(P,function(R){return R.name})).map(function(R){return R.name}),selected:(l=g.filter(function(R){return R.UID===I})[0])==null?void 0:l.name,onSelected:function(){function R(D){return L(M[D])}return R}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Amount",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Up to 5000",onInput:function(){function R(D,W){return x(W)}return R}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{bold:!0,icon:"paper-plane",width:"auto",disabled:V0&&l.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{children:["#",N.Number,' - "',N.Name,'" for "',N.OrderedBy,'"']},N)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Approved Orders",children:s>0&&u.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{children:["#",N.Number,' - "',N.Name,'" for "',N.ApprovedBy,'"']},N)})})]})}return f}()},17617:function(T,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(24826),f=["className","theme","children"],b=["className","scrollable","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -250,7 +250,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var l=(0,c.createLogger)("Window"),v=[400,600],N=r.Window=function(V){function B(){return V.apply(this,arguments)||this}u(B,V);var I=B.prototype;return I.componentDidMount=function(){function L(){var w=(0,f.useBackend)(this.context),x=w.suspended;x||(l.log("mounting"),this.updateGeometry())}return L}(),I.componentDidUpdate=function(){function L(w){var x=this.props.width!==w.width||this.props.height!==w.height;x&&this.updateGeometry()}return L}(),I.updateGeometry=function(){function L(){var w,x=(0,f.useBackend)(this.context),A=x.config,E=Object.assign({size:v},A.window);this.props.width&&this.props.height&&(E.size=[this.props.width,this.props.height]),(w=A.window)!=null&&w.key&&(0,h.setWindowKey)(A.window.key),(0,h.recallWindowGeometry)(E)}return L}(),I.render=function(){function L(){var w,x=this.props,A=x.theme,E=x.title,P=x.children,j=(0,f.useBackend)(this.context),M=j.config,R=j.suspended,D=(0,S.useDebug)(this.context),W=D.debugLayout,_=(0,t.useDispatch)(this.context),U=(w=M.window)==null?void 0:w.fancy,K=M.user&&(M.user.observer?M.status>8&255]},Se=function(ve){return[ve&255,ve>>8&255,ve>>16&255,ve>>24&255]},ye=function(ve){return ve[3]<<24|ve[2]<<16|ve[1]<<8|ve[0]},he=function(ve){return ie(d(ve),23,4)},oe=function(ve){return ie(ve,52,8)},ce=function(ve,Be,ge){y(ve[x],Be,{configurable:!0,get:function(){function Le(){return ge(this)[Be]}return Le}()})},ee=function(ve,Be,ge,Le){var we=j(ve),xe=m(ge),Re=!!Le;if(xe+Be>we.byteLength)throw new $(E);var ze=we.bytes,Ve=xe+we.byteOffset,re=N(ze,Ve,Ve+Be);return Re?re:J(re)},fe=function(ve,Be,ge,Le,we,xe){var Re=j(ve),ze=m(ge),Ve=Le(+we),re=!!xe;if(ze+Be>Re.byteLength)throw new $(E);for(var le=Re.bytes,Ne=ze+Re.byteOffset,de=0;dewe)throw new $("Wrong offset");if(ge=ge===void 0?we-xe:i(ge),xe+ge>we)throw new $(A);M(this,{type:w,buffer:ve,byteLength:ge,byteOffset:xe,bytes:Le.bytes}),t||(this.buffer=ve,this.byteLength=ge,this.byteOffset=xe)}return pe}(),U=_[x],t&&(ce(D,"byteLength",P),ce(_,"buffer",j),ce(_,"byteLength",j),ce(_,"byteOffset",j)),S(U,{getInt8:function(){function pe(ve){return ee(this,1,ve)[0]<<24>>24}return pe}(),getUint8:function(){function pe(ve){return ee(this,1,ve)[0]}return pe}(),getInt16:function(){function pe(ve){var Be=ee(this,2,ve,arguments.length>1?arguments[1]:!1);return(Be[1]<<8|Be[0])<<16>>16}return pe}(),getUint16:function(){function pe(ve){var Be=ee(this,2,ve,arguments.length>1?arguments[1]:!1);return Be[1]<<8|Be[0]}return pe}(),getInt32:function(){function pe(ve){return ye(ee(this,4,ve,arguments.length>1?arguments[1]:!1))}return pe}(),getUint32:function(){function pe(ve){return ye(ee(this,4,ve,arguments.length>1?arguments[1]:!1))>>>0}return pe}(),getFloat32:function(){function pe(ve){return ne(ee(this,4,ve,arguments.length>1?arguments[1]:!1),23)}return pe}(),getFloat64:function(){function pe(ve){return ne(ee(this,8,ve,arguments.length>1?arguments[1]:!1),52)}return pe}(),setInt8:function(){function pe(ve,Be){fe(this,1,ve,se,Be)}return pe}(),setUint8:function(){function pe(ve,Be){fe(this,1,ve,se,Be)}return pe}(),setInt16:function(){function pe(ve,Be){fe(this,2,ve,Ce,Be,arguments.length>2?arguments[2]:!1)}return pe}(),setUint16:function(){function pe(ve,Be){fe(this,2,ve,Ce,Be,arguments.length>2?arguments[2]:!1)}return pe}(),setInt32:function(){function pe(ve,Be){fe(this,4,ve,Se,Be,arguments.length>2?arguments[2]:!1)}return pe}(),setUint32:function(){function pe(ve,Be){fe(this,4,ve,Se,Be,arguments.length>2?arguments[2]:!1)}return pe}(),setFloat32:function(){function pe(ve,Be){fe(this,4,ve,he,Be,arguments.length>2?arguments[2]:!1)}return pe}(),setFloat64:function(){function pe(ve,Be){fe(this,8,ve,oe,Be,arguments.length>2?arguments[2]:!1)}return pe}()});else{var me=B&&R.name!==L;!k(function(){R(1)})||!k(function(){new R(-1)})||k(function(){return new R,new R(1.5),new R(NaN),R.length!==1||me&&!I})?(D=function(){function pe(ve){return h(this,W),C(new R(m(ve)),this,D)}return pe}(),D[x]=W,W.constructor=D,p(D,R)):me&&I&&b(R,"name",L),l&&s(U)!==K&&l(U,K);var te=new _(new D(2)),be=a(U.setInt8);te.setInt8(0,2147483648),te.setInt8(1,2147483649),(te.getInt8(0)||!te.getInt8(1))&&S(U,{setInt8:function(){function pe(ve,Be){be(this,ve,Be<<24>>24)}return pe}(),setUint8:function(){function pe(ve,Be){be(this,ve,Be<<24>>24)}return pe}()},{unsafe:!0})}g(D,L),g(_,w),T.exports={ArrayBuffer:D,DataView:_}},71447:function(T,r,n){"use strict";var e=n(46771),a=n(13912),t=n(24760),o=n(95108),f=Math.min;T.exports=[].copyWithin||function(){function b(y,S){var k=e(this),h=t(k),c=a(y,h),i=a(S,h),m=arguments.length>2?arguments[2]:void 0,d=f((m===void 0?h:a(m,h))-i,h-c),u=1;for(i0;)i in k?k[c]=k[i]:o(k,c),c+=u,i+=u;return k}return b}()},88471:function(T,r,n){"use strict";var e=n(46771),a=n(13912),t=n(24760);T.exports=function(){function o(f){for(var b=e(this),y=t(b),S=arguments.length,k=a(S>1?arguments[1]:void 0,y),h=S>2?arguments[2]:void 0,c=h===void 0?y:a(h,y);c>k;)b[k++]=f;return b}return o}()},35601:function(T,r,n){"use strict";var e=n(22603).forEach,a=n(55528),t=a("forEach");T.exports=t?[].forEach:function(){function o(f){return e(this,f,arguments.length>1?arguments[1]:void 0)}return o}()},78008:function(T,r,n){"use strict";var e=n(24760);T.exports=function(a,t,o){for(var f=0,b=arguments.length>2?o:e(t),y=new a(b);b>f;)y[f]=t[f++];return y}},73174:function(T,r,n){"use strict";var e=n(75754),a=n(91495),t=n(46771),o=n(40125),f=n(76571),b=n(1031),y=n(24760),S=n(60102),k=n(77455),h=n(59201),c=Array;T.exports=function(){function i(m){var d=t(m),u=b(this),s=arguments.length,l=s>1?arguments[1]:void 0,v=l!==void 0;v&&(l=e(l,s>2?arguments[2]:void 0));var N=h(d),C=0,p,g,V,B,I,L;if(N&&!(this===c&&f(N)))for(g=u?new this:[],B=k(d,N),I=B.next;!(V=a(I,B)).done;C++)L=v?o(B,l,[V.value,C],!0):V.value,S(g,C,L);else for(p=y(d),g=u?new this(p):c(p);p>C;C++)L=v?l(d[C],C):d[C],S(g,C,L);return g.length=C,g}return i}()},14211:function(T,r,n){"use strict";var e=n(57591),a=n(13912),t=n(24760),o=function(b){return function(y,S,k){var h=e(y),c=t(h);if(c===0)return!b&&-1;var i=a(k,c),m;if(b&&S!==S){for(;c>i;)if(m=h[i++],m!==m)return!0}else for(;c>i;i++)if((b||i in h)&&h[i]===S)return b||i||0;return!b&&-1}};T.exports={includes:o(!0),indexOf:o(!1)}},22603:function(T,r,n){"use strict";var e=n(75754),a=n(67250),t=n(37457),o=n(46771),f=n(24760),b=n(57823),y=a([].push),S=function(h){var c=h===1,i=h===2,m=h===3,d=h===4,u=h===6,s=h===7,l=h===5||u;return function(v,N,C,p){for(var g=o(v),V=t(g),B=f(V),I=e(N,C),L=0,w=p||b,x=c?w(v,B):i||s?w(v,0):void 0,A,E;B>L;L++)if((l||L in V)&&(A=V[L],E=I(A,L,g),h))if(c)x[L]=E;else if(E)switch(h){case 3:return!0;case 5:return A;case 6:return L;case 2:y(x,A)}else switch(h){case 4:return!1;case 7:y(x,A)}return u?-1:m||d?d:x}};T.exports={forEach:S(0),map:S(1),filter:S(2),some:S(3),every:S(4),find:S(5),findIndex:S(6),filterReject:S(7)}},1325:function(T,r,n){"use strict";var e=n(61267),a=n(57591),t=n(61365),o=n(24760),f=n(55528),b=Math.min,y=[].lastIndexOf,S=!!y&&1/[1].lastIndexOf(1,-0)<0,k=f("lastIndexOf"),h=S||!k;T.exports=h?function(){function c(i){if(S)return e(y,this,arguments)||0;var m=a(this),d=o(m);if(d===0)return-1;var u=d-1;for(arguments.length>1&&(u=b(u,t(arguments[1]))),u<0&&(u=d+u);u>=0;u--)if(u in m&&m[u]===i)return u||0;return-1}return c}():y},44091:function(T,r,n){"use strict";var e=n(40033),a=n(24697),t=n(5026),o=a("species");T.exports=function(f){return t>=51||!e(function(){var b=[],y=b.constructor={};return y[o]=function(){return{foo:1}},b[f](Boolean).foo!==1})}},55528:function(T,r,n){"use strict";var e=n(40033);T.exports=function(a,t){var o=[][a];return!!o&&e(function(){o.call(null,t||function(){return 1},1)})}},56844:function(T,r,n){"use strict";var e=n(10320),a=n(46771),t=n(37457),o=n(24760),f=TypeError,b="Reduce of empty array with no initial value",y=function(k){return function(h,c,i,m){var d=a(h),u=t(d),s=o(d);if(e(c),s===0&&i<2)throw new f(b);var l=k?s-1:0,v=k?-1:1;if(i<2)for(;;){if(l in u){m=u[l],l+=v;break}if(l+=v,k?l<0:s<=l)throw new f(b)}for(;k?l>=0:s>l;l+=v)l in u&&(m=c(m,u[l],l,d));return m}};T.exports={left:y(!1),right:y(!0)}},13345:function(T,r,n){"use strict";var e=n(58310),a=n(37386),t=TypeError,o=Object.getOwnPropertyDescriptor,f=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(b){return b instanceof TypeError}}();T.exports=f?function(b,y){if(a(b)&&!o(b,"length").writable)throw new t("Cannot set read only .length");return b.length=y}:function(b,y){return b.length=y}},54602:function(T,r,n){"use strict";var e=n(67250);T.exports=e([].slice)},90274:function(T,r,n){"use strict";var e=n(54602),a=Math.floor,t=function o(f,b){var y=f.length;if(y<8)for(var S=1,k,h;S0;)f[h]=f[--h];h!==S++&&(f[h]=k)}else for(var c=a(y/2),i=o(e(f,0,c),b),m=o(e(f,c),b),d=i.length,u=m.length,s=0,l=0;s1?arguments[1]:void 0),E;E=E?E.next:x.first;)for(A(E.value,E.key,this);E&&E.removed;)E=E.previous}return L}(),has:function(){function L(w){return!!I(this,w)}return L}()}),t(g,N?{get:function(){function L(w){var x=I(this,w);return x&&x.value}return L}(),set:function(){function L(w,x){return B(this,w===0?0:w,x)}return L}()}:{add:function(){function L(w){return B(this,w=w===0?0:w,w)}return L}()}),c&&a(g,"size",{configurable:!0,get:function(){function L(){return V(this).size}return L}()}),p}return s}(),setStrong:function(){function s(l,v,N){var C=v+" Iterator",p=u(v),g=u(C);S(l,v,function(V,B){d(this,{type:C,target:V,state:p(V),kind:B,last:void 0})},function(){for(var V=g(this),B=V.kind,I=V.last;I&&I.removed;)I=I.previous;return!V.target||!(V.last=I=I?I.next:V.state.first)?(V.target=void 0,k(void 0,!0)):k(B==="keys"?I.key:B==="values"?I.value:[I.key,I.value],!1)},N?"entries":"values",!N,!0),h(v)}return s}()}},39895:function(T,r,n){"use strict";var e=n(67250),a=n(30145),t=n(81969).getWeakData,o=n(60077),f=n(30365),b=n(42871),y=n(77568),S=n(49450),k=n(22603),h=n(45299),c=n(5419),i=c.set,m=c.getterFor,d=k.find,u=k.findIndex,s=e([].splice),l=0,v=function(g){return g.frozen||(g.frozen=new N)},N=function(){this.entries=[]},C=function(g,V){return d(g.entries,function(B){return B[0]===V})};N.prototype={get:function(){function p(g){var V=C(this,g);if(V)return V[1]}return p}(),has:function(){function p(g){return!!C(this,g)}return p}(),set:function(){function p(g,V){var B=C(this,g);B?B[1]=V:this.entries.push([g,V])}return p}(),delete:function(){function p(g){var V=u(this.entries,function(B){return B[0]===g});return~V&&s(this.entries,V,1),!!~V}return p}()},T.exports={getConstructor:function(){function p(g,V,B,I){var L=g(function(E,P){o(E,w),i(E,{type:V,id:l++,frozen:void 0}),b(P)||S(P,E[I],{that:E,AS_ENTRIES:B})}),w=L.prototype,x=m(V),A=function(){function E(P,j,M){var R=x(P),D=t(f(j),!0);return D===!0?v(R).set(j,M):D[R.id]=M,P}return E}();return a(w,{delete:function(){function E(P){var j=x(this);if(!y(P))return!1;var M=t(P);return M===!0?v(j).delete(P):M&&h(M,j.id)&&delete M[j.id]}return E}(),has:function(){function E(P){var j=x(this);if(!y(P))return!1;var M=t(P);return M===!0?v(j).has(P):M&&h(M,j.id)}return E}()}),a(w,B?{get:function(){function E(P){var j=x(this);if(y(P)){var M=t(P);return M===!0?v(j).get(P):M?M[j.id]:void 0}}return E}(),set:function(){function E(P,j){return A(this,P,j)}return E}()}:{add:function(){function E(P){return A(this,P,!0)}return E}()}),L}return p}()}},45150:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(67250),o=n(41314),f=n(55938),b=n(81969),y=n(49450),S=n(60077),k=n(55747),h=n(42871),c=n(77568),i=n(40033),m=n(92490),d=n(84925),u=n(5781);T.exports=function(s,l,v){var N=s.indexOf("Map")!==-1,C=s.indexOf("Weak")!==-1,p=N?"set":"add",g=a[s],V=g&&g.prototype,B=g,I={},L=function(R){var D=t(V[R]);f(V,R,R==="add"?function(){function W(_){return D(this,_===0?0:_),this}return W}():R==="delete"?function(W){return C&&!c(W)?!1:D(this,W===0?0:W)}:R==="get"?function(){function W(_){return C&&!c(_)?void 0:D(this,_===0?0:_)}return W}():R==="has"?function(){function W(_){return C&&!c(_)?!1:D(this,_===0?0:_)}return W}():function(){function W(_,U){return D(this,_===0?0:_,U),this}return W}())},w=o(s,!k(g)||!(C||V.forEach&&!i(function(){new g().entries().next()})));if(w)B=v.getConstructor(l,s,N,p),b.enable();else if(o(s,!0)){var x=new B,A=x[p](C?{}:-0,1)!==x,E=i(function(){x.has(1)}),P=m(function(M){new g(M)}),j=!C&&i(function(){for(var M=new g,R=5;R--;)M[p](R,R);return!M.has(-0)});P||(B=l(function(M,R){S(M,V);var D=u(new g,M,B);return h(R)||y(R,D[p],{that:D,AS_ENTRIES:N}),D}),B.prototype=V,V.constructor=B),(E||j)&&(L("delete"),L("has"),N&&L("get")),(j||A)&&L(p),C&&V.clear&&delete V.clear}return I[s]=B,e({global:!0,constructor:!0,forced:B!==g},I),d(B,s),C||v.setStrong(B,s,N),B}},5774:function(T,r,n){"use strict";var e=n(45299),a=n(97921),t=n(27193),o=n(74595);T.exports=function(f,b,y){for(var S=a(b),k=o.f,h=t.f,c=0;c"+h+""}},5959:function(T){"use strict";T.exports=function(r,n){return{value:r,done:n}}},37909:function(T,r,n){"use strict";var e=n(58310),a=n(74595),t=n(87458);T.exports=e?function(o,f,b){return a.f(o,f,t(1,b))}:function(o,f,b){return o[f]=b,o}},87458:function(T){"use strict";T.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},60102:function(T,r,n){"use strict";var e=n(58310),a=n(74595),t=n(87458);T.exports=function(o,f,b){e?a.f(o,f,t(0,b)):o[f]=b}},67206:function(T,r,n){"use strict";var e=n(67250),a=n(40033),t=n(24051).start,o=RangeError,f=isFinite,b=Math.abs,y=Date.prototype,S=y.toISOString,k=e(y.getTime),h=e(y.getUTCDate),c=e(y.getUTCFullYear),i=e(y.getUTCHours),m=e(y.getUTCMilliseconds),d=e(y.getUTCMinutes),u=e(y.getUTCMonth),s=e(y.getUTCSeconds);T.exports=a(function(){return S.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!a(function(){S.call(new Date(NaN))})?function(){function l(){if(!f(k(this)))throw new o("Invalid time value");var v=this,N=c(v),C=m(v),p=N<0?"-":N>9999?"+":"";return p+t(b(N),p?6:4,0)+"-"+t(u(v)+1,2,0)+"-"+t(h(v),2,0)+"T"+t(i(v),2,0)+":"+t(d(v),2,0)+":"+t(s(v),2,0)+"."+t(C,3,0)+"Z"}return l}():S},10886:function(T,r,n){"use strict";var e=n(30365),a=n(13396),t=TypeError;T.exports=function(o){if(e(this),o==="string"||o==="default")o="string";else if(o!=="number")throw new t("Incorrect hint");return a(this,o)}},73936:function(T,r,n){"use strict";var e=n(20001),a=n(74595);T.exports=function(t,o,f){return f.get&&e(f.get,o,{getter:!0}),f.set&&e(f.set,o,{setter:!0}),a.f(t,o,f)}},55938:function(T,r,n){"use strict";var e=n(55747),a=n(74595),t=n(20001),o=n(18231);T.exports=function(f,b,y,S){S||(S={});var k=S.enumerable,h=S.name!==void 0?S.name:b;if(e(y)&&t(y,h,S),S.global)k?f[b]=y:o(b,y);else{try{S.unsafe?f[b]&&(k=!0):delete f[b]}catch(c){}k?f[b]=y:a.f(f,b,{value:y,enumerable:!1,configurable:!S.nonConfigurable,writable:!S.nonWritable})}return f}},30145:function(T,r,n){"use strict";var e=n(55938);T.exports=function(a,t,o){for(var f in t)e(a,f,t[f],o);return a}},18231:function(T,r,n){"use strict";var e=n(74685),a=Object.defineProperty;T.exports=function(t,o){try{a(e,t,{value:o,configurable:!0,writable:!0})}catch(f){e[t]=o}return o}},95108:function(T,r,n){"use strict";var e=n(89393),a=TypeError;T.exports=function(t,o){if(!delete t[o])throw new a("Cannot delete property "+e(o)+" of "+e(t))}},58310:function(T,r,n){"use strict";var e=n(40033);T.exports=!e(function(){return Object.defineProperty({},1,{get:function(){function a(){return 7}return a}()})[1]!==7})},12689:function(T,r,n){"use strict";var e=n(74685),a=n(77568),t=e.document,o=a(t)&&a(t.createElement);T.exports=function(f){return o?t.createElement(f):{}}},21291:function(T){"use strict";var r=TypeError,n=9007199254740991;T.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}},652:function(T,r,n){"use strict";var e=n(63318),a=e.match(/firefox\/(\d+)/i);T.exports=!!a&&+a[1]},8180:function(T,r,n){"use strict";var e=n(73730),a=n(81702);T.exports=!e&&!a&&typeof window=="object"&&typeof document=="object"},49197:function(T){"use strict";T.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},73730:function(T){"use strict";T.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},19228:function(T,r,n){"use strict";var e=n(63318);T.exports=/MSIE|Trident/.test(e)},51802:function(T,r,n){"use strict";var e=n(63318);T.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},83433:function(T,r,n){"use strict";var e=n(63318);T.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},81702:function(T,r,n){"use strict";var e=n(74685),a=n(7462);T.exports=a(e.process)==="process"},63383:function(T,r,n){"use strict";var e=n(63318);T.exports=/web0s(?!.*chrome)/i.test(e)},63318:function(T){"use strict";T.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},5026:function(T,r,n){"use strict";var e=n(74685),a=n(63318),t=e.process,o=e.Deno,f=t&&t.versions||o&&o.version,b=f&&f.v8,y,S;b&&(y=b.split("."),S=y[0]>0&&y[0]<4?1:+(y[0]+y[1])),!S&&a&&(y=a.match(/Edge\/(\d+)/),(!y||y[1]>=74)&&(y=a.match(/Chrome\/(\d+)/),y&&(S=+y[1]))),T.exports=S},9342:function(T,r,n){"use strict";var e=n(63318),a=e.match(/AppleWebKit\/(\d+)\./);T.exports=!!a&&+a[1]},89453:function(T){"use strict";T.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},63964:function(T,r,n){"use strict";var e=n(74685),a=n(27193).f,t=n(37909),o=n(55938),f=n(18231),b=n(5774),y=n(41314);T.exports=function(S,k){var h=S.target,c=S.global,i=S.stat,m,d,u,s,l,v;if(c?d=e:i?d=e[h]||f(h,{}):d=e[h]&&e[h].prototype,d)for(u in k){if(l=k[u],S.dontCallGetSet?(v=a(d,u),s=v&&v.value):s=d[u],m=y(c?u:h+(i?".":"#")+u,S.forced),!m&&s!==void 0){if(typeof l==typeof s)continue;b(l,s)}(S.sham||s&&s.sham)&&t(l,"sham",!0),o(d,u,l,S)}}},40033:function(T){"use strict";T.exports=function(r){try{return!!r()}catch(n){return!0}}},79942:function(T,r,n){"use strict";n(79669);var e=n(91495),a=n(55938),t=n(14489),o=n(40033),f=n(24697),b=n(37909),y=f("species"),S=RegExp.prototype;T.exports=function(k,h,c,i){var m=f(k),d=!o(function(){var v={};return v[m]=function(){return 7},""[k](v)!==7}),u=d&&!o(function(){var v=!1,N=/a/;return k==="split"&&(N={},N.constructor={},N.constructor[y]=function(){return N},N.flags="",N[m]=/./[m]),N.exec=function(){return v=!0,null},N[m](""),!v});if(!d||!u||c){var s=/./[m],l=h(m,""[k],function(v,N,C,p,g){var V=N.exec;return V===t||V===S.exec?d&&!g?{done:!0,value:e(s,N,C,p)}:{done:!0,value:e(v,C,N,p)}:{done:!1}});a(String.prototype,k,l[0]),a(S,m,l[1])}i&&b(S[m],"sham",!0)}},65561:function(T,r,n){"use strict";var e=n(37386),a=n(24760),t=n(21291),o=n(75754),f=function b(y,S,k,h,c,i,m,d){for(var u=c,s=0,l=m?o(m,d):!1,v,N;s0&&e(v)?(N=a(v),u=b(y,S,v,N,u,i-1)-1):(t(u+1),y[u]=v),u++),s++;return u};T.exports=f},50730:function(T,r,n){"use strict";var e=n(40033);T.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},61267:function(T,r,n){"use strict";var e=n(55050),a=Function.prototype,t=a.apply,o=a.call;T.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(t):function(){return o.apply(t,arguments)})},75754:function(T,r,n){"use strict";var e=n(71138),a=n(10320),t=n(55050),o=e(e.bind);T.exports=function(f,b){return a(f),b===void 0?f:t?o(f,b):function(){return f.apply(b,arguments)}}},55050:function(T,r,n){"use strict";var e=n(40033);T.exports=!e(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},66284:function(T,r,n){"use strict";var e=n(67250),a=n(10320),t=n(77568),o=n(45299),f=n(54602),b=n(55050),y=Function,S=e([].concat),k=e([].join),h={},c=function(m,d,u){if(!o(h,d)){for(var s=[],l=0;l]*>)/g,S=/\$([$&'`]|\d{1,2})/g;T.exports=function(k,h,c,i,m,d){var u=c+k.length,s=i.length,l=S;return m!==void 0&&(m=a(m),l=y),f(d,l,function(v,N){var C;switch(o(N,0)){case"$":return"$";case"&":return k;case"`":return b(h,0,c);case"'":return b(h,u);case"<":C=m[b(N,1,-1)];break;default:var p=+N;if(p===0)return v;if(p>s){var g=t(p/10);return g===0?v:g<=s?i[g-1]===void 0?o(N,1):i[g-1]+o(N,1):v}C=i[p-1]}return C===void 0?"":C})}},74685:function(T,r,n){"use strict";var e=function(t){return t&&t.Math===Math&&t};T.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof n.g=="object"&&n.g)||e(!1)||function(){return this}()||Function("return this")()},45299:function(T,r,n){"use strict";var e=n(67250),a=n(46771),t=e({}.hasOwnProperty);T.exports=Object.hasOwn||function(){function o(f,b){return t(a(f),b)}return o}()},79195:function(T){"use strict";T.exports={}},72259:function(T){"use strict";T.exports=function(r,n){try{arguments.length}catch(e){}}},5315:function(T,r,n){"use strict";var e=n(4009);T.exports=e("document","documentElement")},36223:function(T,r,n){"use strict";var e=n(58310),a=n(40033),t=n(12689);T.exports=!e&&!a(function(){return Object.defineProperty(t("div"),"a",{get:function(){function o(){return 7}return o}()}).a!==7})},91784:function(T){"use strict";var r=Array,n=Math.abs,e=Math.pow,a=Math.floor,t=Math.log,o=Math.LN2,f=function(S,k,h){var c=r(h),i=h*8-k-1,m=(1<>1,u=k===23?e(2,-24)-e(2,-77):0,s=S<0||S===0&&1/S<0?1:0,l=0,v,N,C;for(S=n(S),S!==S||S===1/0?(N=S!==S?1:0,v=m):(v=a(t(S)/o),C=e(2,-v),S*C<1&&(v--,C*=2),v+d>=1?S+=u/C:S+=u*e(2,1-d),S*C>=2&&(v++,C/=2),v+d>=m?(N=0,v=m):v+d>=1?(N=(S*C-1)*e(2,k),v+=d):(N=S*e(2,d-1)*e(2,k),v=0));k>=8;)c[l++]=N&255,N/=256,k-=8;for(v=v<0;)c[l++]=v&255,v/=256,i-=8;return c[--l]|=s*128,c},b=function(S,k){var h=S.length,c=h*8-k-1,i=(1<>1,d=c-7,u=h-1,s=S[u--],l=s&127,v;for(s>>=7;d>0;)l=l*256+S[u--],d-=8;for(v=l&(1<<-d)-1,l>>=-d,d+=k;d>0;)v=v*256+S[u--],d-=8;if(l===0)l=1-m;else{if(l===i)return v?NaN:s?-1/0:1/0;v+=e(2,k),l-=m}return(s?-1:1)*v*e(2,l-k)};T.exports={pack:f,unpack:b}},37457:function(T,r,n){"use strict";var e=n(67250),a=n(40033),t=n(7462),o=Object,f=e("".split);T.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(b){return t(b)==="String"?f(b,""):o(b)}:o},5781:function(T,r,n){"use strict";var e=n(55747),a=n(77568),t=n(76649);T.exports=function(o,f,b){var y,S;return t&&e(y=f.constructor)&&y!==b&&a(S=y.prototype)&&S!==b.prototype&&t(o,S),o}},40492:function(T,r,n){"use strict";var e=n(67250),a=n(55747),t=n(40095),o=e(Function.toString);a(t.inspectSource)||(t.inspectSource=function(f){return o(f)}),T.exports=t.inspectSource},81969:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(79195),o=n(77568),f=n(45299),b=n(74595).f,y=n(37310),S=n(81644),k=n(81834),h=n(16738),c=n(50730),i=!1,m=h("meta"),d=0,u=function(g){b(g,m,{value:{objectID:"O"+d++,weakData:{}}})},s=function(g,V){if(!o(g))return typeof g=="symbol"?g:(typeof g=="string"?"S":"P")+g;if(!f(g,m)){if(!k(g))return"F";if(!V)return"E";u(g)}return g[m].objectID},l=function(g,V){if(!f(g,m)){if(!k(g))return!0;if(!V)return!1;u(g)}return g[m].weakData},v=function(g){return c&&i&&k(g)&&!f(g,m)&&u(g),g},N=function(){C.enable=function(){},i=!0;var g=y.f,V=a([].splice),B={};B[m]=1,g(B).length&&(y.f=function(I){for(var L=g(I),w=0,x=L.length;wI;I++)if(w=P(d[I]),w&&y(m,w))return w;return new i(!1)}V=S(d,B)}for(x=N?d.next:V.next;!(A=a(x,V)).done;){try{w=P(A.value)}catch(j){h(V,"throw",j)}if(typeof w=="object"&&w&&y(m,w))return w}return new i(!1)}},28649:function(T,r,n){"use strict";var e=n(91495),a=n(30365),t=n(78060);T.exports=function(o,f,b){var y,S;a(o);try{if(y=t(o,"return"),!y){if(f==="throw")throw b;return b}y=e(y,o)}catch(k){S=!0,y=k}if(f==="throw")throw b;if(S)throw y;return a(y),b}},5656:function(T,r,n){"use strict";var e=n(67635).IteratorPrototype,a=n(80674),t=n(87458),o=n(84925),f=n(83967),b=function(){return this};T.exports=function(y,S,k,h){var c=S+" Iterator";return y.prototype=a(e,{next:t(+!h,k)}),o(y,c,!1,!0),f[c]=b,y}},65574:function(T,r,n){"use strict";var e=n(63964),a=n(91495),t=n(4493),o=n(70520),f=n(55747),b=n(5656),y=n(36917),S=n(76649),k=n(84925),h=n(37909),c=n(55938),i=n(24697),m=n(83967),d=n(67635),u=o.PROPER,s=o.CONFIGURABLE,l=d.IteratorPrototype,v=d.BUGGY_SAFARI_ITERATORS,N=i("iterator"),C="keys",p="values",g="entries",V=function(){return this};T.exports=function(B,I,L,w,x,A,E){b(L,I,w);var P=function(Q){if(Q===x&&W)return W;if(!v&&Q&&Q in R)return R[Q];switch(Q){case C:return function(){function J(){return new L(this,Q)}return J}();case p:return function(){function J(){return new L(this,Q)}return J}();case g:return function(){function J(){return new L(this,Q)}return J}()}return function(){return new L(this)}},j=I+" Iterator",M=!1,R=B.prototype,D=R[N]||R["@@iterator"]||x&&R[x],W=!v&&D||P(x),_=I==="Array"&&R.entries||D,U,K,G;if(_&&(U=y(_.call(new B)),U!==Object.prototype&&U.next&&(!t&&y(U)!==l&&(S?S(U,l):f(U[N])||c(U,N,V)),k(U,j,!0,!0),t&&(m[j]=V))),u&&x===p&&D&&D.name!==p&&(!t&&s?h(R,"name",p):(M=!0,W=function(){function $(){return a(D,this)}return $}())),x)if(K={values:P(p),keys:A?W:P(C),entries:P(g)},E)for(G in K)(v||M||!(G in R))&&c(R,G,K[G]);else e({target:I,proto:!0,forced:v||M},K);return(!t||E)&&R[N]!==W&&c(R,N,W,{name:x}),m[I]=W,K}},67635:function(T,r,n){"use strict";var e=n(40033),a=n(55747),t=n(77568),o=n(80674),f=n(36917),b=n(55938),y=n(24697),S=n(4493),k=y("iterator"),h=!1,c,i,m;[].keys&&(m=[].keys(),"next"in m?(i=f(f(m)),i!==Object.prototype&&(c=i)):h=!0);var d=!t(c)||e(function(){var u={};return c[k].call(u)!==u});d?c={}:S&&(c=o(c)),a(c[k])||b(c,k,function(){return this}),T.exports={IteratorPrototype:c,BUGGY_SAFARI_ITERATORS:h}},83967:function(T){"use strict";T.exports={}},24760:function(T,r,n){"use strict";var e=n(10188);T.exports=function(a){return e(a.length)}},20001:function(T,r,n){"use strict";var e=n(67250),a=n(40033),t=n(55747),o=n(45299),f=n(58310),b=n(70520).CONFIGURABLE,y=n(40492),S=n(5419),k=S.enforce,h=S.get,c=String,i=Object.defineProperty,m=e("".slice),d=e("".replace),u=e([].join),s=f&&!a(function(){return i(function(){},"length",{value:8}).length!==8}),l=String(String).split("String"),v=T.exports=function(N,C,p){m(c(C),0,7)==="Symbol("&&(C="["+d(c(C),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),p&&p.getter&&(C="get "+C),p&&p.setter&&(C="set "+C),(!o(N,"name")||b&&N.name!==C)&&(f?i(N,"name",{value:C,configurable:!0}):N.name=C),s&&p&&o(p,"arity")&&N.length!==p.arity&&i(N,"length",{value:p.arity});try{p&&o(p,"constructor")&&p.constructor?f&&i(N,"prototype",{writable:!1}):N.prototype&&(N.prototype=void 0)}catch(V){}var g=k(N);return o(g,"source")||(g.source=u(l,typeof C=="string"?C:"")),N};Function.prototype.toString=v(function(){function N(){return t(this)&&h(this).source||y(this)}return N}(),"toString")},82040:function(T){"use strict";var r=Math.expm1,n=Math.exp;T.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||r(-2e-17)!==-2e-17?function(){function e(a){var t=+a;return t===0?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}return e}():r},14950:function(T,r,n){"use strict";var e=n(22172),a=Math.abs,t=2220446049250313e-31,o=1/t,f=function(y){return y+o-o};T.exports=function(b,y,S,k){var h=+b,c=a(h),i=e(h);if(cS||d!==d?i*(1/0):i*d}},95867:function(T,r,n){"use strict";var e=n(14950),a=11920928955078125e-23,t=34028234663852886e22,o=11754943508222875e-54;T.exports=Math.fround||function(){function f(b){return e(b,a,t,o)}return f}()},75002:function(T){"use strict";var r=Math.log,n=Math.LOG10E;T.exports=Math.log10||function(){function e(a){return r(a)*n}return e}()},90874:function(T){"use strict";var r=Math.log;T.exports=Math.log1p||function(){function n(e){var a=+e;return a>-1e-8&&a<1e-8?a-a*a/2:r(1+a)}return n}()},22172:function(T){"use strict";T.exports=Math.sign||function(){function r(n){var e=+n;return e===0||e!==e?e:e<0?-1:1}return r}()},21119:function(T){"use strict";var r=Math.ceil,n=Math.floor;T.exports=Math.trunc||function(){function e(a){var t=+a;return(t>0?n:r)(t)}return e}()},37713:function(T,r,n){"use strict";var e=n(74685),a=n(44915),t=n(75754),o=n(60375).set,f=n(9547),b=n(83433),y=n(51802),S=n(63383),k=n(81702),h=e.MutationObserver||e.WebKitMutationObserver,c=e.document,i=e.process,m=e.Promise,d=a("queueMicrotask"),u,s,l,v,N;if(!d){var C=new f,p=function(){var V,B;for(k&&(V=i.domain)&&V.exit();B=C.get();)try{B()}catch(I){throw C.head&&u(),I}V&&V.enter()};!b&&!k&&!S&&h&&c?(s=!0,l=c.createTextNode(""),new h(p).observe(l,{characterData:!0}),u=function(){l.data=s=!s}):!y&&m&&m.resolve?(v=m.resolve(void 0),v.constructor=m,N=t(v.then,v),u=function(){N(p)}):k?u=function(){i.nextTick(p)}:(o=t(o,e),u=function(){o(p)}),d=function(V){C.head||u(),C.add(V)}}T.exports=d},81837:function(T,r,n){"use strict";var e=n(10320),a=TypeError,t=function(f){var b,y;this.promise=new f(function(S,k){if(b!==void 0||y!==void 0)throw new a("Bad Promise constructor");b=S,y=k}),this.resolve=e(b),this.reject=e(y)};T.exports.f=function(o){return new t(o)}},86213:function(T,r,n){"use strict";var e=n(72586),a=TypeError;T.exports=function(t){if(e(t))throw new a("The method doesn't accept regular expressions");return t}},3294:function(T,r,n){"use strict";var e=n(74685),a=e.isFinite;T.exports=Number.isFinite||function(){function t(o){return typeof o=="number"&&a(o)}return t}()},28506:function(T,r,n){"use strict";var e=n(74685),a=n(40033),t=n(67250),o=n(12605),f=n(92648).trim,b=n(4198),y=t("".charAt),S=e.parseFloat,k=e.Symbol,h=k&&k.iterator,c=1/S(b+"-0")!==-1/0||h&&!a(function(){S(Object(h))});T.exports=c?function(){function i(m){var d=f(o(m)),u=S(d);return u===0&&y(d,0)==="-"?-0:u}return i}():S},13693:function(T,r,n){"use strict";var e=n(74685),a=n(40033),t=n(67250),o=n(12605),f=n(92648).trim,b=n(4198),y=e.parseInt,S=e.Symbol,k=S&&S.iterator,h=/^[+-]?0x/i,c=t(h.exec),i=y(b+"08")!==8||y(b+"0x16")!==22||k&&!a(function(){y(Object(k))});T.exports=i?function(){function m(d,u){var s=f(o(d));return y(s,u>>>0||(c(h,s)?16:10))}return m}():y},41143:function(T,r,n){"use strict";var e=n(58310),a=n(67250),t=n(91495),o=n(40033),f=n(18450),b=n(89235),y=n(12867),S=n(46771),k=n(37457),h=Object.assign,c=Object.defineProperty,i=a([].concat);T.exports=!h||o(function(){if(e&&h({b:1},h(c({},"a",{enumerable:!0,get:function(){function l(){c(this,"b",{value:3,enumerable:!1})}return l}()}),{b:2})).b!==1)return!0;var m={},d={},u=Symbol("assign detection"),s="abcdefghijklmnopqrst";return m[u]=7,s.split("").forEach(function(l){d[l]=l}),h({},m)[u]!==7||f(h({},d)).join("")!==s})?function(){function m(d,u){for(var s=S(d),l=arguments.length,v=1,N=b.f,C=y.f;l>v;)for(var p=k(arguments[v++]),g=N?i(f(p),N(p)):f(p),V=g.length,B=0,I;V>B;)I=g[B++],(!e||t(C,p,I))&&(s[I]=p[I]);return s}return m}():h},80674:function(T,r,n){"use strict";var e=n(30365),a=n(24239),t=n(89453),o=n(79195),f=n(5315),b=n(12689),y=n(19417),S=">",k="<",h="prototype",c="script",i=y("IE_PROTO"),m=function(){},d=function(C){return k+c+S+C+k+"/"+c+S},u=function(C){C.write(d("")),C.close();var p=C.parentWindow.Object;return C=null,p},s=function(){var C=b("iframe"),p="java"+c+":",g;return C.style.display="none",f.appendChild(C),C.src=String(p),g=C.contentWindow.document,g.open(),g.write(d("document.F=Object")),g.close(),g.F},l,v=function(){try{l=new ActiveXObject("htmlfile")}catch(p){}v=typeof document!="undefined"?document.domain&&l?u(l):s():u(l);for(var C=t.length;C--;)delete v[h][t[C]];return v()};o[i]=!0,T.exports=Object.create||function(){function N(C,p){var g;return C!==null?(m[h]=e(C),g=new m,m[h]=null,g[i]=C):g=v(),p===void 0?g:a.f(g,p)}return N}()},24239:function(T,r,n){"use strict";var e=n(58310),a=n(80944),t=n(74595),o=n(30365),f=n(57591),b=n(18450);r.f=e&&!a?Object.defineProperties:function(){function y(S,k){o(S);for(var h=f(k),c=b(k),i=c.length,m=0,d;i>m;)t.f(S,d=c[m++],h[d]);return S}return y}()},74595:function(T,r,n){"use strict";var e=n(58310),a=n(36223),t=n(80944),o=n(30365),f=n(767),b=TypeError,y=Object.defineProperty,S=Object.getOwnPropertyDescriptor,k="enumerable",h="configurable",c="writable";r.f=e?t?function(){function i(m,d,u){if(o(m),d=f(d),o(u),typeof m=="function"&&d==="prototype"&&"value"in u&&c in u&&!u[c]){var s=S(m,d);s&&s[c]&&(m[d]=u.value,u={configurable:h in u?u[h]:s[h],enumerable:k in u?u[k]:s[k],writable:!1})}return y(m,d,u)}return i}():y:function(){function i(m,d,u){if(o(m),d=f(d),o(u),a)try{return y(m,d,u)}catch(s){}if("get"in u||"set"in u)throw new b("Accessors not supported");return"value"in u&&(m[d]=u.value),m}return i}()},27193:function(T,r,n){"use strict";var e=n(58310),a=n(91495),t=n(12867),o=n(87458),f=n(57591),b=n(767),y=n(45299),S=n(36223),k=Object.getOwnPropertyDescriptor;r.f=e?k:function(){function h(c,i){if(c=f(c),i=b(i),S)try{return k(c,i)}catch(m){}if(y(c,i))return o(!a(t.f,c,i),c[i])}return h}()},81644:function(T,r,n){"use strict";var e=n(7462),a=n(57591),t=n(37310).f,o=n(54602),f=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],b=function(S){try{return t(S)}catch(k){return o(f)}};T.exports.f=function(){function y(S){return f&&e(S)==="Window"?b(S):t(a(S))}return y}()},37310:function(T,r,n){"use strict";var e=n(53726),a=n(89453),t=a.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(){function o(f){return e(f,t)}return o}()},89235:function(T,r){"use strict";r.f=Object.getOwnPropertySymbols},36917:function(T,r,n){"use strict";var e=n(45299),a=n(55747),t=n(46771),o=n(19417),f=n(9225),b=o("IE_PROTO"),y=Object,S=y.prototype;T.exports=f?y.getPrototypeOf:function(k){var h=t(k);if(e(h,b))return h[b];var c=h.constructor;return a(c)&&h instanceof c?c.prototype:h instanceof y?S:null}},81834:function(T,r,n){"use strict";var e=n(40033),a=n(77568),t=n(7462),o=n(3782),f=Object.isExtensible,b=e(function(){f(1)});T.exports=b||o?function(){function y(S){return!a(S)||o&&t(S)==="ArrayBuffer"?!1:f?f(S):!0}return y}():f},21287:function(T,r,n){"use strict";var e=n(67250);T.exports=e({}.isPrototypeOf)},53726:function(T,r,n){"use strict";var e=n(67250),a=n(45299),t=n(57591),o=n(14211).indexOf,f=n(79195),b=e([].push);T.exports=function(y,S){var k=t(y),h=0,c=[],i;for(i in k)!a(f,i)&&a(k,i)&&b(c,i);for(;S.length>h;)a(k,i=S[h++])&&(~o(c,i)||b(c,i));return c}},18450:function(T,r,n){"use strict";var e=n(53726),a=n(89453);T.exports=Object.keys||function(){function t(o){return e(o,a)}return t}()},12867:function(T,r){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,a=e&&!n.call({1:2},1);r.f=a?function(){function t(o){var f=e(this,o);return!!f&&f.enumerable}return t}():n},57377:function(T,r,n){"use strict";var e=n(4493),a=n(74685),t=n(40033),o=n(9342);T.exports=e||!t(function(){if(!(o&&o<535)){var f=Math.random();__defineSetter__.call(null,f,function(){}),delete a[f]}})},76649:function(T,r,n){"use strict";var e=n(38656),a=n(77568),t=n(16952),o=n(35908);T.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var f=!1,b={},y;try{y=e(Object.prototype,"__proto__","set"),y(b,[]),f=b instanceof Array}catch(S){}return function(){function S(k,h){return t(k),o(h),a(k)&&(f?y(k,h):k.__proto__=h),k}return S}()}():void 0)},70915:function(T,r,n){"use strict";var e=n(58310),a=n(40033),t=n(67250),o=n(36917),f=n(18450),b=n(57591),y=n(12867).f,S=t(y),k=t([].push),h=e&&a(function(){var i=Object.create(null);return i[2]=2,!S(i,2)}),c=function(m){return function(d){for(var u=b(d),s=f(u),l=h&&o(u)===null,v=s.length,N=0,C=[],p;v>N;)p=s[N++],(!e||(l?p in u:S(u,p)))&&k(C,m?[p,u[p]]:u[p]);return C}};T.exports={entries:c(!0),values:c(!1)}},2509:function(T,r,n){"use strict";var e=n(2650),a=n(2281);T.exports=e?{}.toString:function(){function t(){return"[object "+a(this)+"]"}return t}()},13396:function(T,r,n){"use strict";var e=n(91495),a=n(55747),t=n(77568),o=TypeError;T.exports=function(f,b){var y,S;if(b==="string"&&a(y=f.toString)&&!t(S=e(y,f))||a(y=f.valueOf)&&!t(S=e(y,f))||b!=="string"&&a(y=f.toString)&&!t(S=e(y,f)))return S;throw new o("Can't convert object to primitive value")}},97921:function(T,r,n){"use strict";var e=n(4009),a=n(67250),t=n(37310),o=n(89235),f=n(30365),b=a([].concat);T.exports=e("Reflect","ownKeys")||function(){function y(S){var k=t.f(f(S)),h=o.f;return h?b(k,h(S)):k}return y}()},61765:function(T,r,n){"use strict";var e=n(74685);T.exports=e},10729:function(T){"use strict";T.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}},74854:function(T,r,n){"use strict";var e=n(74685),a=n(67512),t=n(55747),o=n(41314),f=n(40492),b=n(24697),y=n(8180),S=n(73730),k=n(4493),h=n(5026),c=a&&a.prototype,i=b("species"),m=!1,d=t(e.PromiseRejectionEvent),u=o("Promise",function(){var s=f(a),l=s!==String(a);if(!l&&h===66||k&&!(c.catch&&c.finally))return!0;if(!h||h<51||!/native code/.test(s)){var v=new a(function(p){p(1)}),N=function(g){g(function(){},function(){})},C=v.constructor={};if(C[i]=N,m=v.then(function(){})instanceof N,!m)return!0}return!l&&(y||S)&&!d});T.exports={CONSTRUCTOR:u,REJECTION_EVENT:d,SUBCLASSING:m}},67512:function(T,r,n){"use strict";var e=n(74685);T.exports=e.Promise},66628:function(T,r,n){"use strict";var e=n(30365),a=n(77568),t=n(81837);T.exports=function(o,f){if(e(o),a(f)&&f.constructor===o)return f;var b=t.f(o),y=b.resolve;return y(f),b.promise}},48199:function(T,r,n){"use strict";var e=n(67512),a=n(92490),t=n(74854).CONSTRUCTOR;T.exports=t||!a(function(o){e.all(o).then(void 0,function(){})})},34550:function(T,r,n){"use strict";var e=n(74595).f;T.exports=function(a,t,o){o in a||e(a,o,{configurable:!0,get:function(){function f(){return t[o]}return f}(),set:function(){function f(b){t[o]=b}return f}()})}},9547:function(T){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(){function n(e){var a={item:e,next:null},t=this.tail;t?t.next=a:this.head=a,this.tail=a}return n}(),get:function(){function n(){var e=this.head;if(e){var a=this.head=e.next;return a===null&&(this.tail=null),e.item}}return n}()},T.exports=r},28340:function(T,r,n){"use strict";var e=n(91495),a=n(30365),t=n(55747),o=n(7462),f=n(14489),b=TypeError;T.exports=function(y,S){var k=y.exec;if(t(k)){var h=e(k,y,S);return h!==null&&a(h),h}if(o(y)==="RegExp")return e(f,y,S);throw new b("RegExp#exec called on incompatible receiver")}},14489:function(T,r,n){"use strict";var e=n(91495),a=n(67250),t=n(12605),o=n(70901),f=n(62115),b=n(16639),y=n(80674),S=n(5419).get,k=n(39173),h=n(35688),c=b("native-string-replace",String.prototype.replace),i=RegExp.prototype.exec,m=i,d=a("".charAt),u=a("".indexOf),s=a("".replace),l=a("".slice),v=function(){var g=/a/,V=/b*/g;return e(i,g,"a"),e(i,V,"a"),g.lastIndex!==0||V.lastIndex!==0}(),N=f.BROKEN_CARET,C=/()??/.exec("")[1]!==void 0,p=v||C||N||k||h;p&&(m=function(){function g(V){var B=this,I=S(B),L=t(V),w=I.raw,x,A,E,P,j,M,R;if(w)return w.lastIndex=B.lastIndex,x=e(m,w,L),B.lastIndex=w.lastIndex,x;var D=I.groups,W=N&&B.sticky,_=e(o,B),U=B.source,K=0,G=L;if(W&&(_=s(_,"y",""),u(_,"g")===-1&&(_+="g"),G=l(L,B.lastIndex),B.lastIndex>0&&(!B.multiline||B.multiline&&d(L,B.lastIndex-1)!=="\n")&&(U="(?: "+U+")",G=" "+G,K++),A=new RegExp("^(?:"+U+")",_)),C&&(A=new RegExp("^"+U+"$(?!\\s)",_)),v&&(E=B.lastIndex),P=e(i,W?A:B,G),W?P?(P.input=l(P.input,K),P[0]=l(P[0],K),P.index=B.lastIndex,B.lastIndex+=P[0].length):B.lastIndex=0:v&&P&&(B.lastIndex=B.global?P.index+P[0].length:E),C&&P&&P.length>1&&e(c,P[0],A,function(){for(j=1;jb)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$c")!=="bc"})},16952:function(T,r,n){"use strict";var e=n(42871),a=TypeError;T.exports=function(t){if(e(t))throw new a("Can't call method on "+t);return t}},44915:function(T,r,n){"use strict";var e=n(74685),a=n(58310),t=Object.getOwnPropertyDescriptor;T.exports=function(o){if(!a)return e[o];var f=t(e,o);return f&&f.value}},5700:function(T){"use strict";T.exports=Object.is||function(){function r(n,e){return n===e?n!==0||1/n===1/e:n!==n&&e!==e}return r}()},78362:function(T,r,n){"use strict";var e=n(74685),a=n(61267),t=n(55747),o=n(49197),f=n(63318),b=n(54602),y=n(24986),S=e.Function,k=/MSIE .\./.test(f)||o&&function(){var h=e.Bun.version.split(".");return h.length<3||h[0]==="0"&&(h[1]<3||h[1]==="3"&&h[2]==="0")}();T.exports=function(h,c){var i=c?2:1;return k?function(m,d){var u=y(arguments.length,1)>i,s=t(m)?m:S(m),l=u?b(arguments,i):[],v=u?function(){a(s,this,l)}:s;return c?h(v,d):h(v)}:h}},58491:function(T,r,n){"use strict";var e=n(4009),a=n(73936),t=n(24697),o=n(58310),f=t("species");T.exports=function(b){var y=e(b);o&&y&&!y[f]&&a(y,f,{configurable:!0,get:function(){function S(){return this}return S}()})}},84925:function(T,r,n){"use strict";var e=n(74595).f,a=n(45299),t=n(24697),o=t("toStringTag");T.exports=function(f,b,y){f&&!y&&(f=f.prototype),f&&!a(f,o)&&e(f,o,{configurable:!0,value:b})}},19417:function(T,r,n){"use strict";var e=n(16639),a=n(16738),t=e("keys");T.exports=function(o){return t[o]||(t[o]=a(o))}},40095:function(T,r,n){"use strict";var e=n(4493),a=n(74685),t=n(18231),o="__core-js_shared__",f=T.exports=a[o]||t(o,{});(f.versions||(f.versions=[])).push({version:"3.37.1",mode:e?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},16639:function(T,r,n){"use strict";var e=n(40095);T.exports=function(a,t){return e[a]||(e[a]=t||{})}},28987:function(T,r,n){"use strict";var e=n(30365),a=n(32606),t=n(42871),o=n(24697),f=o("species");T.exports=function(b,y){var S=e(b).constructor,k;return S===void 0||t(k=e(S)[f])?y:a(k)}},88539:function(T,r,n){"use strict";var e=n(40033);T.exports=function(a){return e(function(){var t=""[a]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},50233:function(T,r,n){"use strict";var e=n(67250),a=n(61365),t=n(12605),o=n(16952),f=e("".charAt),b=e("".charCodeAt),y=e("".slice),S=function(h){return function(c,i){var m=t(o(c)),d=a(i),u=m.length,s,l;return d<0||d>=u?h?"":void 0:(s=b(m,d),s<55296||s>56319||d+1===u||(l=b(m,d+1))<56320||l>57343?h?f(m,d):s:h?y(m,d,d+2):(s-55296<<10)+(l-56320)+65536)}};T.exports={codeAt:S(!1),charAt:S(!0)}},34125:function(T,r,n){"use strict";var e=n(63318);T.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},24051:function(T,r,n){"use strict";var e=n(67250),a=n(10188),t=n(12605),o=n(62443),f=n(16952),b=e(o),y=e("".slice),S=Math.ceil,k=function(c){return function(i,m,d){var u=t(f(i)),s=a(m),l=u.length,v=d===void 0?" ":t(d),N,C;return s<=l||v===""?u:(N=s-l,C=b(v,S(N/v.length)),C.length>N&&(C=y(C,0,N)),c?u+C:C+u)}};T.exports={start:k(!1),end:k(!0)}},62443:function(T,r,n){"use strict";var e=n(61365),a=n(12605),t=n(16952),o=RangeError;T.exports=function(){function f(b){var y=a(t(this)),S="",k=e(b);if(k<0||k===1/0)throw new o("Wrong number of repetitions");for(;k>0;(k>>>=1)&&(y+=y))k&1&&(S+=y);return S}return f}()},43476:function(T,r,n){"use strict";var e=n(92648).end,a=n(90012);T.exports=a("trimEnd")?function(){function t(){return e(this)}return t}():"".trimEnd},90012:function(T,r,n){"use strict";var e=n(70520).PROPER,a=n(40033),t=n(4198),o="\u200B\x85\u180E";T.exports=function(f){return a(function(){return!!t[f]()||o[f]()!==o||e&&t[f].name!==f})}},43885:function(T,r,n){"use strict";var e=n(92648).start,a=n(90012);T.exports=a("trimStart")?function(){function t(){return e(this)}return t}():"".trimStart},92648:function(T,r,n){"use strict";var e=n(67250),a=n(16952),t=n(12605),o=n(4198),f=e("".replace),b=RegExp("^["+o+"]+"),y=RegExp("(^|[^"+o+"])["+o+"]+$"),S=function(h){return function(c){var i=t(a(c));return h&1&&(i=f(i,b,"")),h&2&&(i=f(i,y,"$1")),i}};T.exports={start:S(1),end:S(2),trim:S(3)}},52357:function(T,r,n){"use strict";var e=n(5026),a=n(40033),t=n(74685),o=t.String;T.exports=!!Object.getOwnPropertySymbols&&!a(function(){var f=Symbol("symbol detection");return!o(f)||!(Object(f)instanceof Symbol)||!Symbol.sham&&e&&e<41})},52360:function(T,r,n){"use strict";var e=n(91495),a=n(4009),t=n(24697),o=n(55938);T.exports=function(){var f=a("Symbol"),b=f&&f.prototype,y=b&&b.valueOf,S=t("toPrimitive");b&&!b[S]&&o(b,S,function(k){return e(y,this)},{arity:1})}},66570:function(T,r,n){"use strict";var e=n(52357);T.exports=e&&!!Symbol.for&&!!Symbol.keyFor},60375:function(T,r,n){"use strict";var e=n(74685),a=n(61267),t=n(75754),o=n(55747),f=n(45299),b=n(40033),y=n(5315),S=n(54602),k=n(12689),h=n(24986),c=n(83433),i=n(81702),m=e.setImmediate,d=e.clearImmediate,u=e.process,s=e.Dispatch,l=e.Function,v=e.MessageChannel,N=e.String,C=0,p={},g="onreadystatechange",V,B,I,L;b(function(){V=e.location});var w=function(j){if(f(p,j)){var M=p[j];delete p[j],M()}},x=function(j){return function(){w(j)}},A=function(j){w(j.data)},E=function(j){e.postMessage(N(j),V.protocol+"//"+V.host)};(!m||!d)&&(m=function(){function P(j){h(arguments.length,1);var M=o(j)?j:l(j),R=S(arguments,1);return p[++C]=function(){a(M,void 0,R)},B(C),C}return P}(),d=function(){function P(j){delete p[j]}return P}(),i?B=function(j){u.nextTick(x(j))}:s&&s.now?B=function(j){s.now(x(j))}:v&&!c?(I=new v,L=I.port2,I.port1.onmessage=A,B=t(L.postMessage,L)):e.addEventListener&&o(e.postMessage)&&!e.importScripts&&V&&V.protocol!=="file:"&&!b(E)?(B=E,e.addEventListener("message",A,!1)):g in k("script")?B=function(j){y.appendChild(k("script"))[g]=function(){y.removeChild(this),w(j)}}:B=function(j){setTimeout(x(j),0)}),T.exports={set:m,clear:d}},46438:function(T,r,n){"use strict";var e=n(67250);T.exports=e(1 .valueOf)},13912:function(T,r,n){"use strict";var e=n(61365),a=Math.max,t=Math.min;T.exports=function(o,f){var b=e(o);return b<0?a(b+f,0):t(b,f)}},61484:function(T,r,n){"use strict";var e=n(24843),a=TypeError;T.exports=function(t){var o=e(t,"number");if(typeof o=="number")throw new a("Can't convert number to bigint");return BigInt(o)}},43806:function(T,r,n){"use strict";var e=n(61365),a=n(10188),t=RangeError;T.exports=function(o){if(o===void 0)return 0;var f=e(o),b=a(f);if(f!==b)throw new t("Wrong length or index");return b}},57591:function(T,r,n){"use strict";var e=n(37457),a=n(16952);T.exports=function(t){return e(a(t))}},61365:function(T,r,n){"use strict";var e=n(21119);T.exports=function(a){var t=+a;return t!==t||t===0?0:e(t)}},10188:function(T,r,n){"use strict";var e=n(61365),a=Math.min;T.exports=function(t){var o=e(t);return o>0?a(o,9007199254740991):0}},46771:function(T,r,n){"use strict";var e=n(16952),a=Object;T.exports=function(t){return a(e(t))}},56043:function(T,r,n){"use strict";var e=n(16140),a=RangeError;T.exports=function(t,o){var f=e(t);if(f%o)throw new a("Wrong offset");return f}},16140:function(T,r,n){"use strict";var e=n(61365),a=RangeError;T.exports=function(t){var o=e(t);if(o<0)throw new a("The argument can't be less than 0");return o}},24843:function(T,r,n){"use strict";var e=n(91495),a=n(77568),t=n(71399),o=n(78060),f=n(13396),b=n(24697),y=TypeError,S=b("toPrimitive");T.exports=function(k,h){if(!a(k)||t(k))return k;var c=o(k,S),i;if(c){if(h===void 0&&(h="default"),i=e(c,k,h),!a(i)||t(i))return i;throw new y("Can't convert object to primitive value")}return h===void 0&&(h="number"),f(k,h)}},767:function(T,r,n){"use strict";var e=n(24843),a=n(71399);T.exports=function(t){var o=e(t,"string");return a(o)?o:o+""}},2650:function(T,r,n){"use strict";var e=n(24697),a=e("toStringTag"),t={};t[a]="z",T.exports=String(t)==="[object z]"},12605:function(T,r,n){"use strict";var e=n(2281),a=String;T.exports=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(t)}},15409:function(T){"use strict";var r=Math.round;T.exports=function(n){var e=r(n);return e<0?0:e>255?255:e&255}},89393:function(T){"use strict";var r=String;T.exports=function(n){try{return r(n)}catch(e){return"Object"}}},80185:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(91495),o=n(58310),f=n(86563),b=n(4246),y=n(37336),S=n(60077),k=n(87458),h=n(37909),c=n(5841),i=n(10188),m=n(43806),d=n(56043),u=n(15409),s=n(767),l=n(45299),v=n(2281),N=n(77568),C=n(71399),p=n(80674),g=n(21287),V=n(76649),B=n(37310).f,I=n(3805),L=n(22603).forEach,w=n(58491),x=n(73936),A=n(74595),E=n(27193),P=n(78008),j=n(5419),M=n(5781),R=j.get,D=j.set,W=j.enforce,_=A.f,U=E.f,K=a.RangeError,G=y.ArrayBuffer,$=G.prototype,Q=y.DataView,J=b.NATIVE_ARRAY_BUFFER_VIEWS,ie=b.TYPED_ARRAY_TAG,ne=b.TypedArray,se=b.TypedArrayPrototype,Ce=b.isTypedArray,Se="BYTES_PER_ELEMENT",ye="Wrong length",he=function(te,be){x(te,be,{configurable:!0,get:function(){function pe(){return R(this)[be]}return pe}()})},oe=function(te){var be;return g($,te)||(be=v(te))==="ArrayBuffer"||be==="SharedArrayBuffer"},ce=function(te,be){return Ce(te)&&!C(be)&&be in te&&c(+be)&&be>=0},ee=function(){function me(te,be){return be=s(be),ce(te,be)?k(2,te[be]):U(te,be)}return me}(),fe=function(){function me(te,be,pe){return be=s(be),ce(te,be)&&N(pe)&&l(pe,"value")&&!l(pe,"get")&&!l(pe,"set")&&!pe.configurable&&(!l(pe,"writable")||pe.writable)&&(!l(pe,"enumerable")||pe.enumerable)?(te[be]=pe.value,te):_(te,be,pe)}return me}();o?(J||(E.f=ee,A.f=fe,he(se,"buffer"),he(se,"byteOffset"),he(se,"byteLength"),he(se,"length")),e({target:"Object",stat:!0,forced:!J},{getOwnPropertyDescriptor:ee,defineProperty:fe}),T.exports=function(me,te,be){var pe=me.match(/\d+/)[0]/8,ve=me+(be?"Clamped":"")+"Array",Be="get"+me,ge="set"+me,Le=a[ve],we=Le,xe=we&&we.prototype,Re={},ze=function(de,ke){var Me=R(de);return Me.view[Be](ke*pe+Me.byteOffset,!0)},Ve=function(de,ke,Me){var je=R(de);je.view[ge](ke*pe+je.byteOffset,be?u(Me):Me,!0)},re=function(de,ke){_(de,ke,{get:function(){function Me(){return ze(this,ke)}return Me}(),set:function(){function Me(je){return Ve(this,ke,je)}return Me}(),enumerable:!0})};J?f&&(we=te(function(Ne,de,ke,Me){return S(Ne,xe),M(function(){return N(de)?oe(de)?Me!==void 0?new Le(de,d(ke,pe),Me):ke!==void 0?new Le(de,d(ke,pe)):new Le(de):Ce(de)?P(we,de):t(I,we,de):new Le(m(de))}(),Ne,we)}),V&&V(we,ne),L(B(Le),function(Ne){Ne in we||h(we,Ne,Le[Ne])}),we.prototype=xe):(we=te(function(Ne,de,ke,Me){S(Ne,xe);var je=0,Fe=0,He,_e,Ue;if(!N(de))Ue=m(de),_e=Ue*pe,He=new G(_e);else if(oe(de)){He=de,Fe=d(ke,pe);var Xe=de.byteLength;if(Me===void 0){if(Xe%pe)throw new K(ye);if(_e=Xe-Fe,_e<0)throw new K(ye)}else if(_e=i(Me)*pe,_e+Fe>Xe)throw new K(ye);Ue=_e/pe}else return Ce(de)?P(we,de):t(I,we,de);for(D(Ne,{buffer:He,byteOffset:Fe,byteLength:_e,length:Ue,view:new Q(He)});je1?arguments[1]:void 0,v=l!==void 0,N=y(u),C,p,g,V,B,I,L,w;if(N&&!S(N))for(L=b(u,N),w=L.next,u=[];!(I=a(w,L)).done;)u.push(I.value);for(v&&s>2&&(l=e(l,arguments[2])),p=f(u),g=new(h(d))(p),V=k(g),C=0;p>C;C++)B=v?l(u[C],C):u[C],g[C]=V?c(B):+B;return g}return i}()},31082:function(T,r,n){"use strict";var e=n(4246),a=n(28987),t=e.aTypedArrayConstructor,o=e.getTypedArrayConstructor;T.exports=function(f){return t(a(f,o(f)))}},16738:function(T,r,n){"use strict";var e=n(67250),a=0,t=Math.random(),o=e(1 .toString);T.exports=function(f){return"Symbol("+(f===void 0?"":f)+")_"+o(++a+t,36)}},1062:function(T,r,n){"use strict";var e=n(52357);T.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},80944:function(T,r,n){"use strict";var e=n(58310),a=n(40033);T.exports=e&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},24986:function(T){"use strict";var r=TypeError;T.exports=function(n,e){if(n=51||!a(function(){var l=[];return l[m]=!1,l.concat()[0]!==l}),u=function(v){if(!o(v))return!1;var N=v[m];return N!==void 0?!!N:t(v)},s=!d||!h("concat");e({target:"Array",proto:!0,arity:1,forced:s},{concat:function(){function l(v){var N=f(this),C=k(N,0),p=0,g,V,B,I,L;for(g=-1,B=arguments.length;g1?arguments[1]:void 0)}return f}()})},68933:function(T,r,n){"use strict";var e=n(63964),a=n(88471),t=n(80575);e({target:"Array",proto:!0},{fill:a}),t("fill")},47830:function(T,r,n){"use strict";var e=n(63964),a=n(22603).filter,t=n(44091),o=t("filter");e({target:"Array",proto:!0,forced:!o},{filter:function(){function f(b){return a(this,b,arguments.length>1?arguments[1]:void 0)}return f}()})},64094:function(T,r,n){"use strict";var e=n(63964),a=n(22603).findIndex,t=n(80575),o="findIndex",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{findIndex:function(){function b(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return b}()}),t(o)},13455:function(T,r,n){"use strict";var e=n(63964),a=n(22603).find,t=n(80575),o="find",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{find:function(){function b(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return b}()}),t(o)},32384:function(T,r,n){"use strict";var e=n(63964),a=n(65561),t=n(10320),o=n(46771),f=n(24760),b=n(57823);e({target:"Array",proto:!0},{flatMap:function(){function y(S){var k=o(this),h=f(k),c;return t(S),c=b(k,0),c.length=a(c,k,k,h,0,1,S,arguments.length>1?arguments[1]:void 0),c}return y}()})},61915:function(T,r,n){"use strict";var e=n(63964),a=n(65561),t=n(46771),o=n(24760),f=n(61365),b=n(57823);e({target:"Array",proto:!0},{flat:function(){function y(){var S=arguments.length?arguments[0]:void 0,k=t(this),h=o(k),c=b(k,0);return c.length=a(c,k,k,h,0,S===void 0?1:f(S)),c}return y}()})},25579:function(T,r,n){"use strict";var e=n(63964),a=n(35601);e({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},63532:function(T,r,n){"use strict";var e=n(63964),a=n(73174),t=n(92490),o=!t(function(f){Array.from(f)});e({target:"Array",stat:!0,forced:o},{from:a})},33425:function(T,r,n){"use strict";var e=n(63964),a=n(14211).includes,t=n(40033),o=n(80575),f=t(function(){return!Array(1).includes()});e({target:"Array",proto:!0,forced:f},{includes:function(){function b(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return b}()}),o("includes")},43894:function(T,r,n){"use strict";var e=n(63964),a=n(71138),t=n(14211).indexOf,o=n(55528),f=a([].indexOf),b=!!f&&1/f([1],1,-0)<0,y=b||!o("indexOf");e({target:"Array",proto:!0,forced:y},{indexOf:function(){function S(k){var h=arguments.length>1?arguments[1]:void 0;return b?f(this,k,h)||0:t(this,k,h)}return S}()})},99636:function(T,r,n){"use strict";var e=n(63964),a=n(37386);e({target:"Array",stat:!0},{isArray:a})},34570:function(T,r,n){"use strict";var e=n(57591),a=n(80575),t=n(83967),o=n(5419),f=n(74595).f,b=n(65574),y=n(5959),S=n(4493),k=n(58310),h="Array Iterator",c=o.set,i=o.getterFor(h);T.exports=b(Array,"Array",function(d,u){c(this,{type:h,target:e(d),index:0,kind:u})},function(){var d=i(this),u=d.target,s=d.index++;if(!u||s>=u.length)return d.target=void 0,y(void 0,!0);switch(d.kind){case"keys":return y(s,!1);case"values":return y(u[s],!1)}return y([s,u[s]],!1)},"values");var m=t.Arguments=t.Array;if(a("keys"),a("values"),a("entries"),!S&&k&&m.name!=="values")try{f(m,"name",{value:"values"})}catch(d){}},94432:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(37457),o=n(57591),f=n(55528),b=a([].join),y=t!==Object,S=y||!f("join",",");e({target:"Array",proto:!0,forced:S},{join:function(){function k(h){return b(o(this),h===void 0?",":h)}return k}()})},24683:function(T,r,n){"use strict";var e=n(63964),a=n(1325);e({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},69984:function(T,r,n){"use strict";var e=n(63964),a=n(22603).map,t=n(44091),o=t("map");e({target:"Array",proto:!0,forced:!o},{map:function(){function f(b){return a(this,b,arguments.length>1?arguments[1]:void 0)}return f}()})},32089:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(1031),o=n(60102),f=Array,b=a(function(){function y(){}return!(f.of.call(y)instanceof y)});e({target:"Array",stat:!0,forced:b},{of:function(){function y(){for(var S=0,k=arguments.length,h=new(t(this)?this:f)(k);k>S;)o(h,S,arguments[S++]);return h.length=k,h}return y}()})},29645:function(T,r,n){"use strict";var e=n(63964),a=n(56844).right,t=n(55528),o=n(5026),f=n(81702),b=!f&&o>79&&o<83,y=b||!t("reduceRight");e({target:"Array",proto:!0,forced:y},{reduceRight:function(){function S(k){return a(this,k,arguments.length,arguments.length>1?arguments[1]:void 0)}return S}()})},60206:function(T,r,n){"use strict";var e=n(63964),a=n(56844).left,t=n(55528),o=n(5026),f=n(81702),b=!f&&o>79&&o<83,y=b||!t("reduce");e({target:"Array",proto:!0,forced:y},{reduce:function(){function S(k){var h=arguments.length;return a(this,k,h,h>1?arguments[1]:void 0)}return S}()})},4788:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(37386),o=a([].reverse),f=[1,2];e({target:"Array",proto:!0,forced:String(f)===String(f.reverse())},{reverse:function(){function b(){return t(this)&&(this.length=this.length),o(this)}return b}()})},58672:function(T,r,n){"use strict";var e=n(63964),a=n(37386),t=n(1031),o=n(77568),f=n(13912),b=n(24760),y=n(57591),S=n(60102),k=n(24697),h=n(44091),c=n(54602),i=h("slice"),m=k("species"),d=Array,u=Math.max;e({target:"Array",proto:!0,forced:!i},{slice:function(){function s(l,v){var N=y(this),C=b(N),p=f(l,C),g=f(v===void 0?C:v,C),V,B,I;if(a(N)&&(V=N.constructor,t(V)&&(V===d||a(V.prototype))?V=void 0:o(V)&&(V=V[m],V===null&&(V=void 0)),V===d||V===void 0))return c(N,p,g);for(B=new(V===void 0?d:V)(u(g-p,0)),I=0;p1?arguments[1]:void 0)}return f}()})},48968:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(10320),o=n(46771),f=n(24760),b=n(95108),y=n(12605),S=n(40033),k=n(90274),h=n(55528),c=n(652),i=n(19228),m=n(5026),d=n(9342),u=[],s=a(u.sort),l=a(u.push),v=S(function(){u.sort(void 0)}),N=S(function(){u.sort(null)}),C=h("sort"),p=!S(function(){if(m)return m<70;if(!(c&&c>3)){if(i)return!0;if(d)return d<603;var B="",I,L,w,x;for(I=65;I<76;I++){switch(L=String.fromCharCode(I),I){case 66:case 69:case 70:case 72:w=3;break;case 68:case 71:w=4;break;default:w=2}for(x=0;x<47;x++)u.push({k:L+x,v:w})}for(u.sort(function(A,E){return E.v-A.v}),x=0;xy(w)?1:-1}};e({target:"Array",proto:!0,forced:g},{sort:function(){function B(I){I!==void 0&&t(I);var L=o(this);if(p)return I===void 0?s(L):s(L,I);var w=[],x=f(L),A,E;for(E=0;EN-V+g;I--)h(v,I-1)}else if(g>V)for(I=N-V;I>C;I--)L=I+V-1,w=I+g-1,L in v?v[w]=v[L]:h(v,w);for(I=0;I9490626562425156e-8?o(h)+b:a(h-1+f(h-1)*f(h+1))}return S}()})},59660:function(T,r,n){"use strict";var e=n(63964),a=Math.asinh,t=Math.log,o=Math.sqrt;function f(y){var S=+y;return!isFinite(S)||S===0?S:S<0?-f(-S):t(S+o(S*S+1))}var b=!(a&&1/a(0)>0);e({target:"Math",stat:!0,forced:b},{asinh:f})},15383:function(T,r,n){"use strict";var e=n(63964),a=Math.atanh,t=Math.log,o=!(a&&1/a(-0)<0);e({target:"Math",stat:!0,forced:o},{atanh:function(){function f(b){var y=+b;return y===0?y:t((1+y)/(1-y))/2}return f}()})},92866:function(T,r,n){"use strict";var e=n(63964),a=n(22172),t=Math.abs,o=Math.pow;e({target:"Math",stat:!0},{cbrt:function(){function f(b){var y=+b;return a(y)*o(t(y),.3333333333333333)}return f}()})},86107:function(T,r,n){"use strict";var e=n(63964),a=Math.floor,t=Math.log,o=Math.LOG2E;e({target:"Math",stat:!0},{clz32:function(){function f(b){var y=b>>>0;return y?31-a(t(y+.5)*o):32}return f}()})},29248:function(T,r,n){"use strict";var e=n(63964),a=n(82040),t=Math.cosh,o=Math.abs,f=Math.E,b=!t||t(710)===1/0;e({target:"Math",stat:!0,forced:b},{cosh:function(){function y(S){var k=a(o(S)-1)+1;return(k+1/(k*f*f))*(f/2)}return y}()})},52540:function(T,r,n){"use strict";var e=n(63964),a=n(82040);e({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},79007:function(T,r,n){"use strict";var e=n(63964),a=n(95867);e({target:"Math",stat:!0},{fround:a})},77199:function(T,r,n){"use strict";var e=n(63964),a=Math.hypot,t=Math.abs,o=Math.sqrt,f=!!a&&a(1/0,NaN)!==1/0;e({target:"Math",stat:!0,arity:2,forced:f},{hypot:function(){function b(y,S){for(var k=0,h=0,c=arguments.length,i=0,m,d;h0?(d=m/i,k+=d*d):k+=m;return i===1/0?1/0:i*o(k)}return b}()})},6522:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=Math.imul,o=a(function(){return t(4294967295,5)!==-5||t.length!==2});e({target:"Math",stat:!0,forced:o},{imul:function(){function f(b,y){var S=65535,k=+b,h=+y,c=S&k,i=S&h;return 0|c*i+((S&k>>>16)*i+c*(S&h>>>16)<<16>>>0)}return f}()})},95542:function(T,r,n){"use strict";var e=n(63964),a=n(75002);e({target:"Math",stat:!0},{log10:a})},2966:function(T,r,n){"use strict";var e=n(63964),a=n(90874);e({target:"Math",stat:!0},{log1p:a})},20997:function(T,r,n){"use strict";var e=n(63964),a=Math.log,t=Math.LN2;e({target:"Math",stat:!0},{log2:function(){function o(f){return a(f)/t}return o}()})},57400:function(T,r,n){"use strict";var e=n(63964),a=n(22172);e({target:"Math",stat:!0},{sign:a})},45571:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(82040),o=Math.abs,f=Math.exp,b=Math.E,y=a(function(){return Math.sinh(-2e-17)!==-2e-17});e({target:"Math",stat:!0,forced:y},{sinh:function(){function S(k){var h=+k;return o(h)<1?(t(h)-t(-h))/2:(f(h-1)-f(-h-1))*(b/2)}return S}()})},54800:function(T,r,n){"use strict";var e=n(63964),a=n(82040),t=Math.exp;e({target:"Math",stat:!0},{tanh:function(){function o(f){var b=+f,y=a(b),S=a(-b);return y===1/0?1:S===1/0?-1:(y-S)/(t(b)+t(-b))}return o}()})},15709:function(T,r,n){"use strict";var e=n(84925);e(Math,"Math",!0)},76059:function(T,r,n){"use strict";var e=n(63964),a=n(21119);e({target:"Math",stat:!0},{trunc:a})},96614:function(T,r,n){"use strict";var e=n(63964),a=n(4493),t=n(58310),o=n(74685),f=n(61765),b=n(67250),y=n(41314),S=n(45299),k=n(5781),h=n(21287),c=n(71399),i=n(24843),m=n(40033),d=n(37310).f,u=n(27193).f,s=n(74595).f,l=n(46438),v=n(92648).trim,N="Number",C=o[N],p=f[N],g=C.prototype,V=o.TypeError,B=b("".slice),I=b("".charCodeAt),L=function(M){var R=i(M,"number");return typeof R=="bigint"?R:w(R)},w=function(M){var R=i(M,"number"),D,W,_,U,K,G,$,Q;if(c(R))throw new V("Cannot convert a Symbol value to a number");if(typeof R=="string"&&R.length>2){if(R=v(R),D=I(R,0),D===43||D===45){if(W=I(R,2),W===88||W===120)return NaN}else if(D===48){switch(I(R,1)){case 66:case 98:_=2,U=49;break;case 79:case 111:_=8,U=55;break;default:return+R}for(K=B(R,2),G=K.length,$=0;$U)return NaN;return parseInt(K,_)}}return+R},x=y(N,!C(" 0o1")||!C("0b1")||C("+0x1")),A=function(M){return h(g,M)&&m(function(){l(M)})},E=function(){function j(M){var R=arguments.length<1?0:C(L(M));return A(this)?k(Object(R),this,E):R}return j}();E.prototype=g,x&&!a&&(g.constructor=E),e({global:!0,constructor:!0,wrap:!0,forced:x},{Number:E});var P=function(M,R){for(var D=t?d(R):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),W=0,_;D.length>W;W++)S(R,_=D[W])&&!S(M,_)&&s(M,_,u(R,_))};a&&p&&P(f[N],p),(x||a)&&P(f[N],C)},324:function(T,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},90426:function(T,r,n){"use strict";var e=n(63964),a=n(3294);e({target:"Number",stat:!0},{isFinite:a})},95443:function(T,r,n){"use strict";var e=n(63964),a=n(5841);e({target:"Number",stat:!0},{isInteger:a})},87968:function(T,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0},{isNaN:function(){function a(t){return t!==t}return a}()})},55007:function(T,r,n){"use strict";var e=n(63964),a=n(5841),t=Math.abs;e({target:"Number",stat:!0},{isSafeInteger:function(){function o(f){return a(f)&&t(f)<=9007199254740991}return o}()})},55323:function(T,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},13521:function(T,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},5006:function(T,r,n){"use strict";var e=n(63964),a=n(28506);e({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},99009:function(T,r,n){"use strict";var e=n(63964),a=n(13693);e({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},85770:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(61365),o=n(46438),f=n(62443),b=n(40033),y=RangeError,S=String,k=Math.floor,h=a(f),c=a("".slice),i=a(1 .toFixed),m=function N(C,p,g){return p===0?g:p%2===1?N(C,p-1,g*C):N(C*C,p/2,g)},d=function(C){for(var p=0,g=C;g>=4096;)p+=12,g/=4096;for(;g>=2;)p+=1,g/=2;return p},u=function(C,p,g){for(var V=-1,B=g;++V<6;)B+=p*C[V],C[V]=B%1e7,B=k(B/1e7)},s=function(C,p){for(var g=6,V=0;--g>=0;)V+=C[g],C[g]=k(V/p),V=V%p*1e7},l=function(C){for(var p=6,g="";--p>=0;)if(g!==""||p===0||C[p]!==0){var V=S(C[p]);g=g===""?V:g+h("0",7-V.length)+V}return g},v=b(function(){return i(8e-5,3)!=="0.000"||i(.9,0)!=="1"||i(1.255,2)!=="1.25"||i(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!b(function(){i({})});e({target:"Number",proto:!0,forced:v},{toFixed:function(){function N(C){var p=o(this),g=t(C),V=[0,0,0,0,0,0],B="",I="0",L,w,x,A;if(g<0||g>20)throw new y("Incorrect fraction digits");if(p!==p)return"NaN";if(p<=-1e21||p>=1e21)return S(p);if(p<0&&(B="-",p=-p),p>1e-21)if(L=d(p*m(2,69,1))-69,w=L<0?p*m(2,-L,1):p/m(2,L,1),w*=4503599627370496,L=52-L,L>0){for(u(V,0,w),x=g;x>=7;)u(V,1e7,0),x-=7;for(u(V,m(10,x,1),0),x=L-1;x>=23;)s(V,8388608),x-=23;s(V,1<0?(A=I.length,I=B+(A<=g?"0."+h("0",g-A)+I:c(I,0,A-g)+"."+c(I,A-g))):I=B+I,I}return N}()})},23532:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(40033),o=n(46438),f=a(1 .toPrecision),b=t(function(){return f(1,void 0)!=="1"})||!t(function(){f({})});e({target:"Number",proto:!0,forced:b},{toPrecision:function(){function y(S){return S===void 0?f(o(this)):f(o(this),S)}return y}()})},87119:function(T,r,n){"use strict";var e=n(63964),a=n(41143);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},78618:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(80674);e({target:"Object",stat:!0,sham:!a},{create:t})},27129:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(10320),f=n(46771),b=n(74595);a&&e({target:"Object",proto:!0,forced:t},{__defineGetter__:function(){function y(S,k){b.f(f(this),S,{get:o(k),enumerable:!0,configurable:!0})}return y}()})},31943:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(24239).f;e({target:"Object",stat:!0,forced:Object.defineProperties!==t,sham:!a},{defineProperties:t})},3579:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(74595).f;e({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!a},{defineProperty:t})},97397:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(10320),f=n(46771),b=n(74595);a&&e({target:"Object",proto:!0,forced:t},{__defineSetter__:function(){function y(S,k){b.f(f(this),S,{set:o(k),enumerable:!0,configurable:!0})}return y}()})},85028:function(T,r,n){"use strict";var e=n(63964),a=n(70915).entries;e({target:"Object",stat:!0},{entries:function(){function t(o){return a(o)}return t}()})},8225:function(T,r,n){"use strict";var e=n(63964),a=n(50730),t=n(40033),o=n(77568),f=n(81969).onFreeze,b=Object.freeze,y=t(function(){b(1)});e({target:"Object",stat:!0,forced:y,sham:!a},{freeze:function(){function S(k){return b&&o(k)?b(f(k)):k}return S}()})},43331:function(T,r,n){"use strict";var e=n(63964),a=n(49450),t=n(60102);e({target:"Object",stat:!0},{fromEntries:function(){function o(f){var b={};return a(f,function(y,S){t(b,y,S)},{AS_ENTRIES:!0}),b}return o}()})},62289:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(57591),o=n(27193).f,f=n(58310),b=!f||a(function(){o(1)});e({target:"Object",stat:!0,forced:b,sham:!f},{getOwnPropertyDescriptor:function(){function y(S,k){return o(t(S),k)}return y}()})},56196:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(97921),o=n(57591),f=n(27193),b=n(60102);e({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(){function y(S){for(var k=o(S),h=f.f,c=t(k),i={},m=0,d,u;c.length>m;)u=h(k,d=c[m++]),u!==void 0&&b(i,d,u);return i}return y}()})},2950:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(81644).f,o=a(function(){return!Object.getOwnPropertyNames(1)});e({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:t})},28603:function(T,r,n){"use strict";var e=n(63964),a=n(52357),t=n(40033),o=n(89235),f=n(46771),b=!a||t(function(){o.f(1)});e({target:"Object",stat:!0,forced:b},{getOwnPropertySymbols:function(){function y(S){var k=o.f;return k?k(f(S)):[]}return y}()})},44205:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(46771),o=n(36917),f=n(9225),b=a(function(){o(1)});e({target:"Object",stat:!0,forced:b,sham:!f},{getPrototypeOf:function(){function y(S){return o(t(S))}return y}()})},83186:function(T,r,n){"use strict";var e=n(63964),a=n(81834);e({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},76065:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(77568),o=n(7462),f=n(3782),b=Object.isFrozen,y=f||a(function(){b(1)});e({target:"Object",stat:!0,forced:y},{isFrozen:function(){function S(k){return!t(k)||f&&o(k)==="ArrayBuffer"?!0:b?b(k):!1}return S}()})},13411:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(77568),o=n(7462),f=n(3782),b=Object.isSealed,y=f||a(function(){b(1)});e({target:"Object",stat:!0,forced:y},{isSealed:function(){function S(k){return!t(k)||f&&o(k)==="ArrayBuffer"?!0:b?b(k):!1}return S}()})},76882:function(T,r,n){"use strict";var e=n(63964),a=n(5700);e({target:"Object",stat:!0},{is:a})},26634:function(T,r,n){"use strict";var e=n(63964),a=n(46771),t=n(18450),o=n(40033),f=o(function(){t(1)});e({target:"Object",stat:!0,forced:f},{keys:function(){function b(y){return t(a(y))}return b}()})},53118:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(46771),f=n(767),b=n(36917),y=n(27193).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(){function S(k){var h=o(this),c=f(k),i;do if(i=y(h,c))return i.get;while(h=b(h))}return S}()})},42514:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(46771),f=n(767),b=n(36917),y=n(27193).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(){function S(k){var h=o(this),c=f(k),i;do if(i=y(h,c))return i.set;while(h=b(h))}return S}()})},84353:function(T,r,n){"use strict";var e=n(63964),a=n(77568),t=n(81969).onFreeze,o=n(50730),f=n(40033),b=Object.preventExtensions,y=f(function(){b(1)});e({target:"Object",stat:!0,forced:y,sham:!o},{preventExtensions:function(){function S(k){return b&&a(k)?b(t(k)):k}return S}()})},62987:function(T,r,n){"use strict";var e=n(63964),a=n(77568),t=n(81969).onFreeze,o=n(50730),f=n(40033),b=Object.seal,y=f(function(){b(1)});e({target:"Object",stat:!0,forced:y,sham:!o},{seal:function(){function S(k){return b&&a(k)?b(t(k)):k}return S}()})},48993:function(T,r,n){"use strict";var e=n(63964),a=n(76649);e({target:"Object",stat:!0},{setPrototypeOf:a})},52917:function(T,r,n){"use strict";var e=n(2650),a=n(55938),t=n(2509);e||a(Object.prototype,"toString",t,{unsafe:!0})},4972:function(T,r,n){"use strict";var e=n(63964),a=n(70915).values;e({target:"Object",stat:!0},{values:function(){function t(o){return a(o)}return t}()})},28913:function(T,r,n){"use strict";var e=n(63964),a=n(28506);e({global:!0,forced:parseFloat!==a},{parseFloat:a})},36382:function(T,r,n){"use strict";var e=n(63964),a=n(13693);e({global:!0,forced:parseInt!==a},{parseInt:a})},48865:function(T,r,n){"use strict";var e=n(63964),a=n(91495),t=n(10320),o=n(81837),f=n(10729),b=n(49450),y=n(48199);e({target:"Promise",stat:!0,forced:y},{all:function(){function S(k){var h=this,c=o.f(h),i=c.resolve,m=c.reject,d=f(function(){var u=t(h.resolve),s=[],l=0,v=1;b(k,function(N){var C=l++,p=!1;v++,a(u,h,N).then(function(g){p||(p=!0,s[C]=g,--v||i(s))},m)}),--v||i(s)});return d.error&&m(d.value),c.promise}return S}()})},70641:function(T,r,n){"use strict";var e=n(63964),a=n(4493),t=n(74854).CONSTRUCTOR,o=n(67512),f=n(4009),b=n(55747),y=n(55938),S=o&&o.prototype;if(e({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(){function h(c){return this.then(void 0,c)}return h}()}),!a&&b(o)){var k=f("Promise").prototype.catch;S.catch!==k&&y(S,"catch",k,{unsafe:!0})}},75946:function(T,r,n){"use strict";var e=n(63964),a=n(4493),t=n(81702),o=n(74685),f=n(91495),b=n(55938),y=n(76649),S=n(84925),k=n(58491),h=n(10320),c=n(55747),i=n(77568),m=n(60077),d=n(28987),u=n(60375).set,s=n(37713),l=n(72259),v=n(10729),N=n(9547),C=n(5419),p=n(67512),g=n(74854),V=n(81837),B="Promise",I=g.CONSTRUCTOR,L=g.REJECTION_EVENT,w=g.SUBCLASSING,x=C.getterFor(B),A=C.set,E=p&&p.prototype,P=p,j=E,M=o.TypeError,R=o.document,D=o.process,W=V.f,_=W,U=!!(R&&R.createEvent&&o.dispatchEvent),K="unhandledrejection",G="rejectionhandled",$=0,Q=1,J=2,ie=1,ne=2,se,Ce,Se,ye,he=function(ge){var Le;return i(ge)&&c(Le=ge.then)?Le:!1},oe=function(ge,Le){var we=Le.value,xe=Le.state===Q,Re=xe?ge.ok:ge.fail,ze=ge.resolve,Ve=ge.reject,re=ge.domain,le,Ne,de;try{Re?(xe||(Le.rejection===ne&&te(Le),Le.rejection=ie),Re===!0?le=we:(re&&re.enter(),le=Re(we),re&&(re.exit(),de=!0)),le===ge.promise?Ve(new M("Promise-chain cycle")):(Ne=he(le))?f(Ne,le,ze,Ve):ze(le)):Ve(we)}catch(ke){re&&!de&&re.exit(),Ve(ke)}},ce=function(ge,Le){ge.notified||(ge.notified=!0,s(function(){for(var we=ge.reactions,xe;xe=we.get();)oe(xe,ge);ge.notified=!1,Le&&!ge.rejection&&fe(ge)}))},ee=function(ge,Le,we){var xe,Re;U?(xe=R.createEvent("Event"),xe.promise=Le,xe.reason=we,xe.initEvent(ge,!1,!0),o.dispatchEvent(xe)):xe={promise:Le,reason:we},!L&&(Re=o["on"+ge])?Re(xe):ge===K&&l("Unhandled promise rejection",we)},fe=function(ge){f(u,o,function(){var Le=ge.facade,we=ge.value,xe=me(ge),Re;if(xe&&(Re=v(function(){t?D.emit("unhandledRejection",we,Le):ee(K,Le,we)}),ge.rejection=t||me(ge)?ne:ie,Re.error))throw Re.value})},me=function(ge){return ge.rejection!==ie&&!ge.parent},te=function(ge){f(u,o,function(){var Le=ge.facade;t?D.emit("rejectionHandled",Le):ee(G,Le,ge.value)})},be=function(ge,Le,we){return function(xe){ge(Le,xe,we)}},pe=function(ge,Le,we){ge.done||(ge.done=!0,we&&(ge=we),ge.value=Le,ge.state=J,ce(ge,!0))},ve=function Be(ge,Le,we){if(!ge.done){ge.done=!0,we&&(ge=we);try{if(ge.facade===Le)throw new M("Promise can't be resolved itself");var xe=he(Le);xe?s(function(){var Re={done:!1};try{f(xe,Le,be(Be,Re,ge),be(pe,Re,ge))}catch(ze){pe(Re,ze,ge)}}):(ge.value=Le,ge.state=Q,ce(ge,!1))}catch(Re){pe({done:!1},Re,ge)}}};if(I&&(P=function(){function Be(ge){m(this,j),h(ge),f(se,this);var Le=x(this);try{ge(be(ve,Le),be(pe,Le))}catch(we){pe(Le,we)}}return Be}(),j=P.prototype,se=function(){function Be(ge){A(this,{type:B,done:!1,notified:!1,parent:!1,reactions:new N,rejection:!1,state:$,value:void 0})}return Be}(),se.prototype=b(j,"then",function(){function Be(ge,Le){var we=x(this),xe=W(d(this,P));return we.parent=!0,xe.ok=c(ge)?ge:!0,xe.fail=c(Le)&&Le,xe.domain=t?D.domain:void 0,we.state===$?we.reactions.add(xe):s(function(){oe(xe,we)}),xe.promise}return Be}()),Ce=function(){var ge=new se,Le=x(ge);this.promise=ge,this.resolve=be(ve,Le),this.reject=be(pe,Le)},V.f=W=function(ge){return ge===P||ge===Se?new Ce(ge):_(ge)},!a&&c(p)&&E!==Object.prototype)){ye=E.then,w||b(E,"then",function(){function Be(ge,Le){var we=this;return new P(function(xe,Re){f(ye,we,xe,Re)}).then(ge,Le)}return Be}(),{unsafe:!0});try{delete E.constructor}catch(Be){}y&&y(E,j)}e({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:P}),S(P,B,!1,!0),k(B)},69861:function(T,r,n){"use strict";var e=n(63964),a=n(4493),t=n(67512),o=n(40033),f=n(4009),b=n(55747),y=n(28987),S=n(66628),k=n(55938),h=t&&t.prototype,c=!!t&&o(function(){h.finally.call({then:function(){function m(){}return m}()},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:c},{finally:function(){function m(d){var u=y(this,f("Promise")),s=b(d);return this.then(s?function(l){return S(u,d()).then(function(){return l})}:d,s?function(l){return S(u,d()).then(function(){throw l})}:d)}return m}()}),!a&&b(t)){var i=f("Promise").prototype.finally;h.finally!==i&&k(h,"finally",i,{unsafe:!0})}},53092:function(T,r,n){"use strict";n(75946),n(48865),n(70641),n(16937),n(41719),n(59321)},16937:function(T,r,n){"use strict";var e=n(63964),a=n(91495),t=n(10320),o=n(81837),f=n(10729),b=n(49450),y=n(48199);e({target:"Promise",stat:!0,forced:y},{race:function(){function S(k){var h=this,c=o.f(h),i=c.reject,m=f(function(){var d=t(h.resolve);b(k,function(u){a(d,h,u).then(c.resolve,i)})});return m.error&&i(m.value),c.promise}return S}()})},41719:function(T,r,n){"use strict";var e=n(63964),a=n(81837),t=n(74854).CONSTRUCTOR;e({target:"Promise",stat:!0,forced:t},{reject:function(){function o(f){var b=a.f(this),y=b.reject;return y(f),b.promise}return o}()})},59321:function(T,r,n){"use strict";var e=n(63964),a=n(4009),t=n(4493),o=n(67512),f=n(74854).CONSTRUCTOR,b=n(66628),y=a("Promise"),S=t&&!f;e({target:"Promise",stat:!0,forced:t||f},{resolve:function(){function k(h){return b(S&&this===y?o:this,h)}return k}()})},29674:function(T,r,n){"use strict";var e=n(63964),a=n(61267),t=n(10320),o=n(30365),f=n(40033),b=!f(function(){Reflect.apply(function(){})});e({target:"Reflect",stat:!0,forced:b},{apply:function(){function y(S,k,h){return a(t(S),k,o(h))}return y}()})},81543:function(T,r,n){"use strict";var e=n(63964),a=n(4009),t=n(61267),o=n(66284),f=n(32606),b=n(30365),y=n(77568),S=n(80674),k=n(40033),h=a("Reflect","construct"),c=Object.prototype,i=[].push,m=k(function(){function s(){}return!(h(function(){},[],s)instanceof s)}),d=!k(function(){h(function(){})}),u=m||d;e({target:"Reflect",stat:!0,forced:u,sham:u},{construct:function(){function s(l,v){f(l),b(v);var N=arguments.length<3?l:f(arguments[2]);if(d&&!m)return h(l,v,N);if(l===N){switch(v.length){case 0:return new l;case 1:return new l(v[0]);case 2:return new l(v[0],v[1]);case 3:return new l(v[0],v[1],v[2]);case 4:return new l(v[0],v[1],v[2],v[3])}var C=[null];return t(i,C,v),new(t(o,l,C))}var p=N.prototype,g=S(y(p)?p:c),V=t(l,g,v);return y(V)?V:g}return s}()})},9373:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(30365),o=n(767),f=n(74595),b=n(40033),y=b(function(){Reflect.defineProperty(f.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:y,sham:!a},{defineProperty:function(){function S(k,h,c){t(k);var i=o(h);t(c);try{return f.f(k,i,c),!0}catch(m){return!1}}return S}()})},45093:function(T,r,n){"use strict";var e=n(63964),a=n(30365),t=n(27193).f;e({target:"Reflect",stat:!0},{deleteProperty:function(){function o(f,b){var y=t(a(f),b);return y&&!y.configurable?!1:delete f[b]}return o}()})},5815:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(30365),o=n(27193);e({target:"Reflect",stat:!0,sham:!a},{getOwnPropertyDescriptor:function(){function f(b,y){return o.f(t(b),y)}return f}()})},88527:function(T,r,n){"use strict";var e=n(63964),a=n(30365),t=n(36917),o=n(9225);e({target:"Reflect",stat:!0,sham:!o},{getPrototypeOf:function(){function f(b){return t(a(b))}return f}()})},63074:function(T,r,n){"use strict";var e=n(63964),a=n(91495),t=n(77568),o=n(30365),f=n(98373),b=n(27193),y=n(36917);function S(k,h){var c=arguments.length<3?k:arguments[2],i,m;if(o(k)===c)return k[h];if(i=b.f(k,h),i)return f(i)?i.value:i.get===void 0?void 0:a(i.get,c);if(t(m=y(k)))return S(m,h,c)}e({target:"Reflect",stat:!0},{get:S})},66390:function(T,r,n){"use strict";var e=n(63964);e({target:"Reflect",stat:!0},{has:function(){function a(t,o){return o in t}return a}()})},7784:function(T,r,n){"use strict";var e=n(63964),a=n(30365),t=n(81834);e({target:"Reflect",stat:!0},{isExtensible:function(){function o(f){return a(f),t(f)}return o}()})},50551:function(T,r,n){"use strict";var e=n(63964),a=n(97921);e({target:"Reflect",stat:!0},{ownKeys:a})},76483:function(T,r,n){"use strict";var e=n(63964),a=n(4009),t=n(30365),o=n(50730);e({target:"Reflect",stat:!0,sham:!o},{preventExtensions:function(){function f(b){t(b);try{var y=a("Object","preventExtensions");return y&&y(b),!0}catch(S){return!1}}return f}()})},63915:function(T,r,n){"use strict";var e=n(63964),a=n(30365),t=n(35908),o=n(76649);o&&e({target:"Reflect",stat:!0},{setPrototypeOf:function(){function f(b,y){a(b),t(y);try{return o(b,y),!0}catch(S){return!1}}return f}()})},92046:function(T,r,n){"use strict";var e=n(63964),a=n(91495),t=n(30365),o=n(77568),f=n(98373),b=n(40033),y=n(74595),S=n(27193),k=n(36917),h=n(87458);function c(m,d,u){var s=arguments.length<4?m:arguments[3],l=S.f(t(m),d),v,N,C;if(!l){if(o(N=k(m)))return c(N,d,u,s);l=h(0)}if(f(l)){if(l.writable===!1||!o(s))return!1;if(v=S.f(s,d)){if(v.get||v.set||v.writable===!1)return!1;v.value=u,y.f(s,d,v)}else y.f(s,d,h(0,u))}else{if(C=l.set,C===void 0)return!1;a(C,s,u)}return!0}var i=b(function(){var m=function(){},d=y.f(new m,"a",{configurable:!0});return Reflect.set(m.prototype,"a",1,d)!==!1});e({target:"Reflect",stat:!0,forced:i},{set:c})},51454:function(T,r,n){"use strict";var e=n(58310),a=n(74685),t=n(67250),o=n(41314),f=n(5781),b=n(37909),y=n(80674),S=n(37310).f,k=n(21287),h=n(72586),c=n(12605),i=n(73392),m=n(62115),d=n(34550),u=n(55938),s=n(40033),l=n(45299),v=n(5419).enforce,N=n(58491),C=n(24697),p=n(39173),g=n(35688),V=C("match"),B=a.RegExp,I=B.prototype,L=a.SyntaxError,w=t(I.exec),x=t("".charAt),A=t("".replace),E=t("".indexOf),P=t("".slice),j=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,M=/a/g,R=/a/g,D=new B(M)!==M,W=m.MISSED_STICKY,_=m.UNSUPPORTED_Y,U=e&&(!D||W||p||g||s(function(){return R[V]=!1,B(M)!==M||B(R)===R||String(B(M,"i"))!=="/a/i"})),K=function(ne){for(var se=ne.length,Ce=0,Se="",ye=!1,he;Ce<=se;Ce++){if(he=x(ne,Ce),he==="\\"){Se+=he+x(ne,++Ce);continue}!ye&&he==="."?Se+="[\\s\\S]":(he==="["?ye=!0:he==="]"&&(ye=!1),Se+=he)}return Se},G=function(ne){for(var se=ne.length,Ce=0,Se="",ye=[],he=y(null),oe=!1,ce=!1,ee=0,fe="",me;Ce<=se;Ce++){if(me=x(ne,Ce),me==="\\")me+=x(ne,++Ce);else if(me==="]")oe=!1;else if(!oe)switch(!0){case me==="[":oe=!0;break;case me==="(":w(j,P(ne,Ce+1))&&(Ce+=2,ce=!0),Se+=me,ee++;continue;case(me===">"&&ce):if(fe===""||l(he,fe))throw new L("Invalid capture group name");he[fe]=!0,ye[ye.length]=[fe,ee],ce=!1,fe="";continue}ce?fe+=me:Se+=me}return[Se,ye]};if(o("RegExp",U)){for(var $=function(){function ie(ne,se){var Ce=k(I,this),Se=h(ne),ye=se===void 0,he=[],oe=ne,ce,ee,fe,me,te,be;if(!Ce&&Se&&ye&&ne.constructor===$)return ne;if((Se||k(I,ne))&&(ne=ne.source,ye&&(se=i(oe))),ne=ne===void 0?"":c(ne),se=se===void 0?"":c(se),oe=ne,p&&"dotAll"in M&&(ee=!!se&&E(se,"s")>-1,ee&&(se=A(se,/s/g,""))),ce=se,W&&"sticky"in M&&(fe=!!se&&E(se,"y")>-1,fe&&_&&(se=A(se,/y/g,""))),g&&(me=G(ne),ne=me[0],he=me[1]),te=f(B(ne,se),Ce?this:I,$),(ee||fe||he.length)&&(be=v(te),ee&&(be.dotAll=!0,be.raw=$(K(ne),ce)),fe&&(be.sticky=!0),he.length&&(be.groups=he)),ne!==oe)try{b(te,"source",oe===""?"(?:)":oe)}catch(pe){}return te}return ie}(),Q=S(B),J=0;Q.length>J;)d($,B,Q[J++]);I.constructor=$,$.prototype=I,u(a,"RegExp",$,{constructor:!0})}N("RegExp")},79669:function(T,r,n){"use strict";var e=n(63964),a=n(14489);e({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},23057:function(T,r,n){"use strict";var e=n(74685),a=n(58310),t=n(73936),o=n(70901),f=n(40033),b=e.RegExp,y=b.prototype,S=a&&f(function(){var k=!0;try{b(".","d")}catch(l){k=!1}var h={},c="",i=k?"dgimsy":"gimsy",m=function(v,N){Object.defineProperty(h,v,{get:function(){function C(){return c+=N,!0}return C}()})},d={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};k&&(d.hasIndices="d");for(var u in d)m(u,d[u]);var s=Object.getOwnPropertyDescriptor(y,"flags").get.call(h);return s!==i||c!==i});S&&t(y,"flags",{configurable:!0,get:o})},57983:function(T,r,n){"use strict";var e=n(70520).PROPER,a=n(55938),t=n(30365),o=n(12605),f=n(40033),b=n(73392),y="toString",S=RegExp.prototype,k=S[y],h=f(function(){return k.call({source:"a",flags:"b"})!=="/a/b"}),c=e&&k.name!==y;(h||c)&&a(S,y,function(){function i(){var m=t(this),d=o(m.source),u=o(b(m));return"/"+d+"/"+u}return i}(),{unsafe:!0})},1963:function(T,r,n){"use strict";var e=n(45150),a=n(41028);e("Set",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},17953:function(T,r,n){"use strict";n(1963)},95309:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("anchor")},{anchor:function(){function o(f){return a(this,"a","name",f)}return o}()})},82256:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("big")},{big:function(){function o(){return a(this,"big","","")}return o}()})},49484:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("blink")},{blink:function(){function o(){return a(this,"blink","","")}return o}()})},38931:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("bold")},{bold:function(){function o(){return a(this,"b","","")}return o}()})},30442:function(T,r,n){"use strict";var e=n(63964),a=n(50233).codeAt;e({target:"String",proto:!0},{codePointAt:function(){function t(o){return a(this,o)}return t}()})},6403:function(T,r,n){"use strict";var e=n(63964),a=n(71138),t=n(27193).f,o=n(10188),f=n(12605),b=n(86213),y=n(16952),S=n(45490),k=n(4493),h=a("".slice),c=Math.min,i=S("endsWith"),m=!k&&!i&&!!function(){var d=t(String.prototype,"endsWith");return d&&!d.writable}();e({target:"String",proto:!0,forced:!m&&!i},{endsWith:function(){function d(u){var s=f(y(this));b(u);var l=arguments.length>1?arguments[1]:void 0,v=s.length,N=l===void 0?v:c(o(l),v),C=f(u);return h(s,N-C.length,N)===C}return d}()})},39308:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fixed")},{fixed:function(){function o(){return a(this,"tt","","")}return o}()})},91550:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fontcolor")},{fontcolor:function(){function o(f){return a(this,"font","color",f)}return o}()})},75008:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fontsize")},{fontsize:function(){function o(f){return a(this,"font","size",f)}return o}()})},9867:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(13912),o=RangeError,f=String.fromCharCode,b=String.fromCodePoint,y=a([].join),S=!!b&&b.length!==1;e({target:"String",stat:!0,arity:1,forced:S},{fromCodePoint:function(){function k(h){for(var c=[],i=arguments.length,m=0,d;i>m;){if(d=+arguments[m++],t(d,1114111)!==d)throw new o(d+" is not a valid code point");c[m]=d<65536?f(d):f(((d-=65536)>>10)+55296,d%1024+56320)}return y(c,"")}return k}()})},43673:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(86213),o=n(16952),f=n(12605),b=n(45490),y=a("".indexOf);e({target:"String",proto:!0,forced:!b("includes")},{includes:function(){function S(k){return!!~y(f(o(this)),f(t(k)),arguments.length>1?arguments[1]:void 0)}return S}()})},56027:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("italics")},{italics:function(){function o(){return a(this,"i","","")}return o}()})},12354:function(T,r,n){"use strict";var e=n(50233).charAt,a=n(12605),t=n(5419),o=n(65574),f=n(5959),b="String Iterator",y=t.set,S=t.getterFor(b);o(String,"String",function(k){y(this,{type:b,string:a(k),index:0})},function(){function k(){var h=S(this),c=h.string,i=h.index,m;return i>=c.length?f(void 0,!0):(m=e(c,i),h.index+=m.length,f(m,!1))}return k}())},50340:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("link")},{link:function(){function o(f){return a(this,"a","href",f)}return o}()})},22515:function(T,r,n){"use strict";var e=n(91495),a=n(79942),t=n(30365),o=n(42871),f=n(10188),b=n(12605),y=n(16952),S=n(78060),k=n(35483),h=n(28340);a("match",function(c,i,m){return[function(){function d(u){var s=y(this),l=o(u)?void 0:S(u,c);return l?e(l,u,s):new RegExp(u)[c](b(s))}return d}(),function(d){var u=t(this),s=b(d),l=m(i,u,s);if(l.done)return l.value;if(!u.global)return h(u,s);var v=u.unicode;u.lastIndex=0;for(var N=[],C=0,p;(p=h(u,s))!==null;){var g=b(p[0]);N[C]=g,g===""&&(u.lastIndex=k(s,f(u.lastIndex),v)),C++}return C===0?null:N}]})},5143:function(T,r,n){"use strict";var e=n(63964),a=n(24051).end,t=n(34125);e({target:"String",proto:!0,forced:t},{padEnd:function(){function o(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}return o}()})},93514:function(T,r,n){"use strict";var e=n(63964),a=n(24051).start,t=n(34125);e({target:"String",proto:!0,forced:t},{padStart:function(){function o(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}return o}()})},5416:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(57591),o=n(46771),f=n(12605),b=n(24760),y=a([].push),S=a([].join);e({target:"String",stat:!0},{raw:function(){function k(h){var c=t(o(h).raw),i=b(c);if(!i)return"";for(var m=arguments.length,d=[],u=0;;){if(y(d,f(c[u++])),u===i)return S(d,"");u")!=="7"});o("replace",function(A,E,P){var j=w?"$":"$0";return[function(){function M(R,D){var W=i(this),_=S(R)?void 0:d(R,v);return _?a(_,R,W,D):a(E,c(W),R,D)}return M}(),function(M,R){var D=b(this),W=c(M);if(typeof R=="string"&&V(R,j)===-1&&V(R,"$<")===-1){var _=P(E,D,W,R);if(_.done)return _.value}var U=y(R);U||(R=c(R));var K=D.global,G;K&&(G=D.unicode,D.lastIndex=0);for(var $=[],Q;Q=s(D,W),!(Q===null||(g($,Q),!K));){var J=c(Q[0]);J===""&&(D.lastIndex=m(W,h(D.lastIndex),G))}for(var ie="",ne=0,se=0;se<$.length;se++){Q=$[se];for(var Ce=c(Q[0]),Se=N(C(k(Q.index),W.length),0),ye=[],he,oe=1;oe=ne&&(ie+=B(W,ne,Se)+he,ne=Se+Ce.length)}return ie+B(W,ne)}]},!x||!L||w)},63272:function(T,r,n){"use strict";var e=n(91495),a=n(79942),t=n(30365),o=n(42871),f=n(16952),b=n(5700),y=n(12605),S=n(78060),k=n(28340);a("search",function(h,c,i){return[function(){function m(d){var u=f(this),s=o(d)?void 0:S(d,h);return s?e(s,d,u):new RegExp(d)[h](y(u))}return m}(),function(m){var d=t(this),u=y(m),s=i(c,d,u);if(s.done)return s.value;var l=d.lastIndex;b(l,0)||(d.lastIndex=0);var v=k(d,u);return b(d.lastIndex,l)||(d.lastIndex=l),v===null?-1:v.index}]})},34325:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("small")},{small:function(){function o(){return a(this,"small","","")}return o}()})},39930:function(T,r,n){"use strict";var e=n(91495),a=n(67250),t=n(79942),o=n(30365),f=n(42871),b=n(16952),y=n(28987),S=n(35483),k=n(10188),h=n(12605),c=n(78060),i=n(28340),m=n(62115),d=n(40033),u=m.UNSUPPORTED_Y,s=4294967295,l=Math.min,v=a([].push),N=a("".slice),C=!d(function(){var g=/(?:)/,V=g.exec;g.exec=function(){return V.apply(this,arguments)};var B="ab".split(g);return B.length!==2||B[0]!=="a"||B[1]!=="b"}),p="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;t("split",function(g,V,B){var I="0".split(void 0,0).length?function(L,w){return L===void 0&&w===0?[]:e(V,this,L,w)}:V;return[function(){function L(w,x){var A=b(this),E=f(w)?void 0:c(w,g);return E?e(E,w,A,x):e(I,h(A),w,x)}return L}(),function(L,w){var x=o(this),A=h(L);if(!p){var E=B(I,x,A,w,I!==V);if(E.done)return E.value}var P=y(x,RegExp),j=x.unicode,M=(x.ignoreCase?"i":"")+(x.multiline?"m":"")+(x.unicode?"u":"")+(u?"g":"y"),R=new P(u?"^(?:"+x.source+")":x,M),D=w===void 0?s:w>>>0;if(D===0)return[];if(A.length===0)return i(R,A)===null?[A]:[];for(var W=0,_=0,U=[];_1?arguments[1]:void 0,s.length)),v=f(u);return h(s,l,l+v.length)===v}return d}()})},74498:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("strike")},{strike:function(){function o(){return a(this,"strike","","")}return o}()})},15812:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("sub")},{sub:function(){function o(){return a(this,"sub","","")}return o}()})},57726:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("sup")},{sup:function(){function o(){return a(this,"sup","","")}return o}()})},70604:function(T,r,n){"use strict";n(99159);var e=n(63964),a=n(43476);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==a},{trimEnd:a})},85404:function(T,r,n){"use strict";var e=n(63964),a=n(43885);e({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==a},{trimLeft:a})},99159:function(T,r,n){"use strict";var e=n(63964),a=n(43476);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==a},{trimRight:a})},34965:function(T,r,n){"use strict";n(85404);var e=n(63964),a=n(43885);e({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==a},{trimStart:a})},8448:function(T,r,n){"use strict";var e=n(63964),a=n(92648).trim,t=n(90012);e({target:"String",proto:!0,forced:t("trim")},{trim:function(){function o(){return a(this)}return o}()})},79250:function(T,r,n){"use strict";var e=n(85889);e("asyncIterator")},49899:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(91495),o=n(67250),f=n(4493),b=n(58310),y=n(52357),S=n(40033),k=n(45299),h=n(21287),c=n(30365),i=n(57591),m=n(767),d=n(12605),u=n(87458),s=n(80674),l=n(18450),v=n(37310),N=n(81644),C=n(89235),p=n(27193),g=n(74595),V=n(24239),B=n(12867),I=n(55938),L=n(73936),w=n(16639),x=n(19417),A=n(79195),E=n(16738),P=n(24697),j=n(55557),M=n(85889),R=n(52360),D=n(84925),W=n(5419),_=n(22603).forEach,U=x("hidden"),K="Symbol",G="prototype",$=W.set,Q=W.getterFor(K),J=Object[G],ie=a.Symbol,ne=ie&&ie[G],se=a.RangeError,Ce=a.TypeError,Se=a.QObject,ye=p.f,he=g.f,oe=N.f,ce=B.f,ee=o([].push),fe=w("symbols"),me=w("op-symbols"),te=w("wks"),be=!Se||!Se[G]||!Se[G].findChild,pe=function(le,Ne,de){var ke=ye(J,Ne);ke&&delete J[Ne],he(le,Ne,de),ke&&le!==J&&he(J,Ne,ke)},ve=b&&S(function(){return s(he({},"a",{get:function(){function re(){return he(this,"a",{value:7}).a}return re}()})).a!==7})?pe:he,Be=function(le,Ne){var de=fe[le]=s(ne);return $(de,{type:K,tag:le,description:Ne}),b||(de.description=Ne),de},ge=function(){function re(le,Ne,de){le===J&&ge(me,Ne,de),c(le);var ke=m(Ne);return c(de),k(fe,ke)?(de.enumerable?(k(le,U)&&le[U][ke]&&(le[U][ke]=!1),de=s(de,{enumerable:u(0,!1)})):(k(le,U)||he(le,U,u(1,s(null))),le[U][ke]=!0),ve(le,ke,de)):he(le,ke,de)}return re}(),Le=function(){function re(le,Ne){c(le);var de=i(Ne),ke=l(de).concat(Ve(de));return _(ke,function(Me){(!b||t(xe,de,Me))&&ge(le,Me,de[Me])}),le}return re}(),we=function(){function re(le,Ne){return Ne===void 0?s(le):Le(s(le),Ne)}return re}(),xe=function(){function re(le){var Ne=m(le),de=t(ce,this,Ne);return this===J&&k(fe,Ne)&&!k(me,Ne)?!1:de||!k(this,Ne)||!k(fe,Ne)||k(this,U)&&this[U][Ne]?de:!0}return re}(),Re=function(){function re(le,Ne){var de=i(le),ke=m(Ne);if(!(de===J&&k(fe,ke)&&!k(me,ke))){var Me=ye(de,ke);return Me&&k(fe,ke)&&!(k(de,U)&&de[U][ke])&&(Me.enumerable=!0),Me}}return re}(),ze=function(){function re(le){var Ne=oe(i(le)),de=[];return _(Ne,function(ke){!k(fe,ke)&&!k(A,ke)&&ee(de,ke)}),de}return re}(),Ve=function(le){var Ne=le===J,de=oe(Ne?me:i(le)),ke=[];return _(de,function(Me){k(fe,Me)&&(!Ne||k(J,Me))&&ee(ke,fe[Me])}),ke};y||(ie=function(){function re(){if(h(ne,this))throw new Ce("Symbol is not a constructor");var le=!arguments.length||arguments[0]===void 0?void 0:d(arguments[0]),Ne=E(le),de=function(){function ke(Me){var je=this===void 0?a:this;je===J&&t(ke,me,Me),k(je,U)&&k(je[U],Ne)&&(je[U][Ne]=!1);var Fe=u(1,Me);try{ve(je,Ne,Fe)}catch(He){if(!(He instanceof se))throw He;pe(je,Ne,Fe)}}return ke}();return b&&be&&ve(J,Ne,{configurable:!0,set:de}),Be(Ne,le)}return re}(),ne=ie[G],I(ne,"toString",function(){function re(){return Q(this).tag}return re}()),I(ie,"withoutSetter",function(re){return Be(E(re),re)}),B.f=xe,g.f=ge,V.f=Le,p.f=Re,v.f=N.f=ze,C.f=Ve,j.f=function(re){return Be(P(re),re)},b&&(L(ne,"description",{configurable:!0,get:function(){function re(){return Q(this).description}return re}()}),f||I(J,"propertyIsEnumerable",xe,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!y,sham:!y},{Symbol:ie}),_(l(te),function(re){M(re)}),e({target:K,stat:!0,forced:!y},{useSetter:function(){function re(){be=!0}return re}(),useSimple:function(){function re(){be=!1}return re}()}),e({target:"Object",stat:!0,forced:!y,sham:!b},{create:we,defineProperty:ge,defineProperties:Le,getOwnPropertyDescriptor:Re}),e({target:"Object",stat:!0,forced:!y},{getOwnPropertyNames:ze}),R(),D(ie,K),A[U]=!0},10933:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(74685),o=n(67250),f=n(45299),b=n(55747),y=n(21287),S=n(12605),k=n(73936),h=n(5774),c=t.Symbol,i=c&&c.prototype;if(a&&b(c)&&(!("description"in i)||c().description!==void 0)){var m={},d=function(){function p(){var g=arguments.length<1||arguments[0]===void 0?void 0:S(arguments[0]),V=y(i,this)?new c(g):g===void 0?c():c(g);return g===""&&(m[V]=!0),V}return p}();h(d,c),d.prototype=i,i.constructor=d;var u=String(c("description detection"))==="Symbol(description detection)",s=o(i.valueOf),l=o(i.toString),v=/^Symbol\((.*)\)[^)]+$/,N=o("".replace),C=o("".slice);k(i,"description",{configurable:!0,get:function(){function p(){var g=s(this);if(f(m,g))return"";var V=l(g),B=u?C(V,7,-1):N(V,v,"$1");return B===""?void 0:B}return p}()}),e({global:!0,constructor:!0,forced:!0},{Symbol:d})}},30828:function(T,r,n){"use strict";var e=n(63964),a=n(4009),t=n(45299),o=n(12605),f=n(16639),b=n(66570),y=f("string-to-symbol-registry"),S=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!b},{for:function(){function k(h){var c=o(h);if(t(y,c))return y[c];var i=a("Symbol")(c);return y[c]=i,S[i]=c,i}return k}()})},53795:function(T,r,n){"use strict";var e=n(85889);e("hasInstance")},87806:function(T,r,n){"use strict";var e=n(85889);e("isConcatSpreadable")},64677:function(T,r,n){"use strict";var e=n(85889);e("iterator")},33313:function(T,r,n){"use strict";n(49899),n(30828),n(6862),n(53008),n(28603)},6862:function(T,r,n){"use strict";var e=n(63964),a=n(45299),t=n(71399),o=n(89393),f=n(16639),b=n(66570),y=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!b},{keyFor:function(){function S(k){if(!t(k))throw new TypeError(o(k)+" is not a symbol");if(a(y,k))return y[k]}return S}()})},48058:function(T,r,n){"use strict";var e=n(85889);e("match")},51583:function(T,r,n){"use strict";var e=n(85889);e("replace")},82403:function(T,r,n){"use strict";var e=n(85889);e("search")},34265:function(T,r,n){"use strict";var e=n(85889);e("species")},3295:function(T,r,n){"use strict";var e=n(85889);e("split")},1078:function(T,r,n){"use strict";var e=n(85889),a=n(52360);e("toPrimitive"),a()},63207:function(T,r,n){"use strict";var e=n(4009),a=n(85889),t=n(84925);a("toStringTag"),t(e("Symbol"),"Symbol")},80520:function(T,r,n){"use strict";var e=n(85889);e("unscopables")},99872:function(T,r,n){"use strict";var e=n(67250),a=n(4246),t=n(71447),o=e(t),f=a.aTypedArray,b=a.exportTypedArrayMethod;b("copyWithin",function(){function y(S,k){return o(f(this),S,k,arguments.length>2?arguments[2]:void 0)}return y}())},73364:function(T,r,n){"use strict";var e=n(4246),a=n(22603).every,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("every",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},58166:function(T,r,n){"use strict";var e=n(4246),a=n(88471),t=n(61484),o=n(2281),f=n(91495),b=n(67250),y=n(40033),S=e.aTypedArray,k=e.exportTypedArrayMethod,h=b("".slice),c=y(function(){var i=0;return new Int8Array(2).fill({valueOf:function(){function m(){return i++}return m}()}),i!==1});k("fill",function(){function i(m){var d=arguments.length;S(this);var u=h(o(this),0,3)==="Big"?t(m):+m;return f(a,this,u,d>1?arguments[1]:void 0,d>2?arguments[2]:void 0)}return i}(),c)},23793:function(T,r,n){"use strict";var e=n(4246),a=n(22603).filter,t=n(45399),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("filter",function(){function b(y){var S=a(o(this),y,arguments.length>1?arguments[1]:void 0);return t(this,S)}return b}())},13917:function(T,r,n){"use strict";var e=n(4246),a=n(22603).findIndex,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("findIndex",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},43820:function(T,r,n){"use strict";var e=n(4246),a=n(22603).find,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("find",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},80756:function(T,r,n){"use strict";var e=n(80185);e("Float32",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},70567:function(T,r,n){"use strict";var e=n(80185);e("Float64",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},19852:function(T,r,n){"use strict";var e=n(4246),a=n(22603).forEach,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("forEach",function(){function f(b){a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},40379:function(T,r,n){"use strict";var e=n(86563),a=n(4246).exportTypedArrayStaticMethod,t=n(3805);a("from",t,e)},92770:function(T,r,n){"use strict";var e=n(4246),a=n(14211).includes,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("includes",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},81069:function(T,r,n){"use strict";var e=n(4246),a=n(14211).indexOf,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("indexOf",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},60037:function(T,r,n){"use strict";var e=n(80185);e("Int16",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},44195:function(T,r,n){"use strict";var e=n(80185);e("Int32",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},66756:function(T,r,n){"use strict";var e=n(80185);e("Int8",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},63689:function(T,r,n){"use strict";var e=n(74685),a=n(40033),t=n(67250),o=n(4246),f=n(34570),b=n(24697),y=b("iterator"),S=e.Uint8Array,k=t(f.values),h=t(f.keys),c=t(f.entries),i=o.aTypedArray,m=o.exportTypedArrayMethod,d=S&&S.prototype,u=!a(function(){d[y].call([1])}),s=!!d&&d.values&&d[y]===d.values&&d.values.name==="values",l=function(){function v(){return k(i(this))}return v}();m("entries",function(){function v(){return c(i(this))}return v}(),u),m("keys",function(){function v(){return h(i(this))}return v}(),u),m("values",l,u||!s,{name:"values"}),m(y,l,u||!s,{name:"values"})},5659:function(T,r,n){"use strict";var e=n(4246),a=n(67250),t=e.aTypedArray,o=e.exportTypedArrayMethod,f=a([].join);o("join",function(){function b(y){return f(t(this),y)}return b}())},25014:function(T,r,n){"use strict";var e=n(4246),a=n(61267),t=n(1325),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("lastIndexOf",function(){function b(y){var S=arguments.length;return a(t,o(this),S>1?[y,arguments[1]]:[y])}return b}())},32189:function(T,r,n){"use strict";var e=n(4246),a=n(22603).map,t=n(31082),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("map",function(){function b(y){return a(o(this),y,arguments.length>1?arguments[1]:void 0,function(S,k){return new(t(S))(k)})}return b}())},23030:function(T,r,n){"use strict";var e=n(4246),a=n(86563),t=e.aTypedArrayConstructor,o=e.exportTypedArrayStaticMethod;o("of",function(){function f(){for(var b=0,y=arguments.length,S=new(t(this))(y);y>b;)S[b]=arguments[b++];return S}return f}(),a)},49110:function(T,r,n){"use strict";var e=n(4246),a=n(56844).right,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduceRight",function(){function f(b){var y=arguments.length;return a(t(this),b,y,y>1?arguments[1]:void 0)}return f}())},24309:function(T,r,n){"use strict";var e=n(4246),a=n(56844).left,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduce",function(){function f(b){var y=arguments.length;return a(t(this),b,y,y>1?arguments[1]:void 0)}return f}())},56445:function(T,r,n){"use strict";var e=n(4246),a=e.aTypedArray,t=e.exportTypedArrayMethod,o=Math.floor;t("reverse",function(){function f(){for(var b=this,y=a(b).length,S=o(y/2),k=0,h;k1?arguments[1]:void 0,1),N=b(l);if(d)return a(c,this,N,v);var C=this.length,p=o(N),g=0;if(p+v>C)throw new S("Wrong length");for(;gm;)u[m]=c[m++];return u}return S}(),y)},88739:function(T,r,n){"use strict";var e=n(4246),a=n(22603).some,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("some",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},60415:function(T,r,n){"use strict";var e=n(74685),a=n(71138),t=n(40033),o=n(10320),f=n(90274),b=n(4246),y=n(652),S=n(19228),k=n(5026),h=n(9342),c=b.aTypedArray,i=b.exportTypedArrayMethod,m=e.Uint16Array,d=m&&a(m.prototype.sort),u=!!d&&!(t(function(){d(new m(2),null)})&&t(function(){d(new m(2),{})})),s=!!d&&!t(function(){if(k)return k<74;if(y)return y<67;if(S)return!0;if(h)return h<602;var v=new m(516),N=Array(516),C,p;for(C=0;C<516;C++)p=C%4,v[C]=515-C,N[C]=C-2*p+3;for(d(v,function(g,V){return(g/4|0)-(V/4|0)}),C=0;C<516;C++)if(v[C]!==N[C])return!0}),l=function(N){return function(C,p){return N!==void 0?+N(C,p)||0:p!==p?-1:C!==C?1:C===0&&p===0?1/C>0&&1/p<0?1:-1:C>p}};i("sort",function(){function v(N){return N!==void 0&&o(N),s?d(this,N):f(c(this),l(N))}return v}(),!s||u)},72532:function(T,r,n){"use strict";var e=n(4246),a=n(10188),t=n(13912),o=n(31082),f=e.aTypedArray,b=e.exportTypedArrayMethod;b("subarray",function(){function y(S,k){var h=f(this),c=h.length,i=t(S,c),m=o(h);return new m(h.buffer,h.byteOffset+i*h.BYTES_PER_ELEMENT,a((k===void 0?c:t(k,c))-i))}return y}())},62207:function(T,r,n){"use strict";var e=n(74685),a=n(61267),t=n(4246),o=n(40033),f=n(54602),b=e.Int8Array,y=t.aTypedArray,S=t.exportTypedArrayMethod,k=[].toLocaleString,h=!!b&&o(function(){k.call(new b(1))}),c=o(function(){return[1,2].toLocaleString()!==new b([1,2]).toLocaleString()})||!o(function(){b.prototype.toLocaleString.call([1,2])});S("toLocaleString",function(){function i(){return a(k,h?f(y(this)):y(this),f(arguments))}return i}(),c)},906:function(T,r,n){"use strict";var e=n(4246).exportTypedArrayMethod,a=n(40033),t=n(74685),o=n(67250),f=t.Uint8Array,b=f&&f.prototype||{},y=[].toString,S=o([].join);a(function(){y.call({})})&&(y=function(){function h(){return S(this)}return h}());var k=b.toString!==y;e("toString",y,k)},78824:function(T,r,n){"use strict";var e=n(80185);e("Uint16",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},72846:function(T,r,n){"use strict";var e=n(80185);e("Uint32",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},24575:function(T,r,n){"use strict";var e=n(80185);e("Uint8",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},71968:function(T,r,n){"use strict";var e=n(80185);e("Uint8",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()},!0)},80040:function(T,r,n){"use strict";var e=n(50730),a=n(74685),t=n(67250),o=n(30145),f=n(81969),b=n(45150),y=n(39895),S=n(77568),k=n(5419).enforce,h=n(40033),c=n(21820),i=Object,m=Array.isArray,d=i.isExtensible,u=i.isFrozen,s=i.isSealed,l=i.freeze,v=i.seal,N=!a.ActiveXObject&&"ActiveXObject"in a,C,p=function(E){return function(){function P(){return E(this,arguments.length?arguments[0]:void 0)}return P}()},g=b("WeakMap",p,y),V=g.prototype,B=t(V.set),I=function(){return e&&h(function(){var E=l([]);return B(new g,E,1),!u(E)})};if(c)if(N){C=y.getConstructor(p,"WeakMap",!0),f.enable();var L=t(V.delete),w=t(V.has),x=t(V.get);o(V,{delete:function(){function A(E){if(S(E)&&!d(E)){var P=k(this);return P.frozen||(P.frozen=new C),L(this,E)||P.frozen.delete(E)}return L(this,E)}return A}(),has:function(){function A(E){if(S(E)&&!d(E)){var P=k(this);return P.frozen||(P.frozen=new C),w(this,E)||P.frozen.has(E)}return w(this,E)}return A}(),get:function(){function A(E){if(S(E)&&!d(E)){var P=k(this);return P.frozen||(P.frozen=new C),w(this,E)?x(this,E):P.frozen.get(E)}return x(this,E)}return A}(),set:function(){function A(E,P){if(S(E)&&!d(E)){var j=k(this);j.frozen||(j.frozen=new C),w(this,E)?B(this,E,P):j.frozen.set(E,P)}else B(this,E,P);return this}return A}()})}else I()&&o(V,{set:function(){function A(E,P){var j;return m(E)&&(u(E)?j=l:s(E)&&(j=v)),B(this,E,P),j&&j(E),this}return A}()})},90846:function(T,r,n){"use strict";n(80040)},67042:function(T,r,n){"use strict";var e=n(45150),a=n(39895);e("WeakSet",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},40348:function(T,r,n){"use strict";n(67042)},5606:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(60375).clear;e({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==t},{clearImmediate:t})},83006:function(T,r,n){"use strict";n(5606),n(27807)},25764:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(37713),o=n(10320),f=n(24986),b=n(40033),y=n(58310),S=b(function(){return y&&Object.getOwnPropertyDescriptor(a,"queueMicrotask").value.length!==1});e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:S},{queueMicrotask:function(){function k(h){f(arguments.length,1),t(o(h))}return k}()})},27807:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(60375).set,o=n(78362),f=a.setImmediate?o(t,!1):t;e({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==f},{setImmediate:f})},45569:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(78362),o=t(a.setInterval,!0);e({global:!0,bind:!0,forced:a.setInterval!==o},{setInterval:o})},5213:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(78362),o=t(a.setTimeout,!0);e({global:!0,bind:!0,forced:a.setTimeout!==o},{setTimeout:o})},69401:function(T,r,n){"use strict";n(45569),n(5213)},7435:function(T){"use strict";/** + */var t=r.BoxWithSampleText=function(){function o(f){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({},f,{children:[(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"Jackdaws love my big sphinx of quartz."}),(0,e.createComponentVNode)(2,a.Box,{mt:1,bold:!0,children:"The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture."})]})))}return o}()},67160:function(){},23542:function(){},30386:function(){},98996:function(){},50578:function(){},4444:function(){},77870:function(){},23632:function(){},56492:function(){},39108:function(){},11714:function(){},73492:function(){},49641:function(){},17570:function(){},61858:function(){},32882:function(){},70752:function(T,r,n){var e={"./pai_atmosphere.js":80818,"./pai_bioscan.js":23903,"./pai_directives.js":64988,"./pai_doorjack.js":13813,"./pai_main_menu.js":66025,"./pai_manifest.js":2983,"./pai_medrecords.js":40758,"./pai_messenger.js":98599,"./pai_radio.js":50775,"./pai_secrecords.js":48623,"./pai_signaler.js":47297};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,T.exports=a,a.id=70752},59395:function(T,r,n){var e={"./pda_atmos_scan.js":78532,"./pda_janitor.js":40253,"./pda_main_menu.js":58293,"./pda_manifest.js":58059,"./pda_medical.js":18147,"./pda_messenger.js":77595,"./pda_mule.js":24635,"./pda_nanobank.js":23734,"./pda_notes.js":97085,"./pda_power.js":57513,"./pda_secbot.js":99808,"./pda_security.js":77168,"./pda_signaler.js":21773,"./pda_status_display.js":81857,"./pda_supplyrecords.js":70287};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,T.exports=a,a.id=59395},32054:function(T,r,n){var e={"./AICard":1090,"./AICard.js":1090,"./AIFixer":39454,"./AIFixer.js":39454,"./APC":88422,"./APC.js":88422,"./ATM":99660,"./ATM.js":99660,"./AccountsUplinkTerminal":86423,"./AccountsUplinkTerminal.js":86423,"./AiAirlock":56793,"./AiAirlock.js":56793,"./AirAlarm":72475,"./AirAlarm.js":72475,"./AirlockAccessController":12333,"./AirlockAccessController.js":12333,"./AirlockElectronics":28736,"./AirlockElectronics.js":28736,"./AlertModal":47365,"./AlertModal.tsx":47365,"./AppearanceChanger":71824,"./AppearanceChanger.js":71824,"./AtmosAlertConsole":72285,"./AtmosAlertConsole.js":72285,"./AtmosControl":65805,"./AtmosControl.js":65805,"./AtmosFilter":87816,"./AtmosFilter.js":87816,"./AtmosMixer":52977,"./AtmosMixer.js":52977,"./AtmosPump":11748,"./AtmosPump.js":11748,"./AtmosTankControl":69321,"./AtmosTankControl.js":69321,"./Autolathe":59179,"./Autolathe.js":59179,"./BioChipPad":5147,"./BioChipPad.js":5147,"./Biogenerator":64273,"./Biogenerator.js":64273,"./BloomEdit":47823,"./BloomEdit.js":47823,"./BlueSpaceArtilleryControl":18621,"./BlueSpaceArtilleryControl.js":18621,"./BluespaceTap":27629,"./BluespaceTap.js":27629,"./BodyScanner":33758,"./BodyScanner.js":33758,"./BookBinder":67963,"./BookBinder.js":67963,"./BotCall":61925,"./BotCall.js":61925,"./BotClean":20464,"./BotClean.js":20464,"./BotFloor":69479,"./BotFloor.js":69479,"./BotHonk":59887,"./BotHonk.js":59887,"./BotMed":80063,"./BotMed.js":80063,"./BotSecurity":74439,"./BotSecurity.js":74439,"./BrigCells":10833,"./BrigCells.js":10833,"./BrigTimer":45761,"./BrigTimer.js":45761,"./CameraConsole":26300,"./CameraConsole.js":26300,"./Canister":52927,"./Canister.js":52927,"./CardComputer":51793,"./CardComputer.js":51793,"./CargoConsole":64083,"./CargoConsole.js":64083,"./ChangelogView":87331,"./ChangelogView.js":87331,"./ChemDispenser":36108,"./ChemDispenser.js":36108,"./ChemHeater":13146,"./ChemHeater.js":13146,"./ChemMaster":56541,"./ChemMaster.tsx":56541,"./CloningConsole":37173,"./CloningConsole.js":37173,"./CloningPod":98723,"./CloningPod.js":98723,"./CoinMint":18259,"./CoinMint.tsx":18259,"./ColourMatrixTester":8444,"./ColourMatrixTester.js":8444,"./CommunicationsComputer":63818,"./CommunicationsComputer.js":63818,"./CompostBin":20562,"./CompostBin.js":20562,"./Contractor":21813,"./Contractor.js":21813,"./ConveyorSwitch":54151,"./ConveyorSwitch.js":54151,"./CrewMonitor":73169,"./CrewMonitor.js":73169,"./Cryo":63987,"./Cryo.js":63987,"./CryopodConsole":86099,"./CryopodConsole.js":86099,"./DNAModifier":12692,"./DNAModifier.js":12692,"./DestinationTagger":41074,"./DestinationTagger.js":41074,"./DisposalBin":46500,"./DisposalBin.js":46500,"./DnaVault":33233,"./DnaVault.js":33233,"./DroneConsole":33681,"./DroneConsole.js":33681,"./EFTPOS":17263,"./EFTPOS.js":17263,"./ERTManager":76382,"./ERTManager.js":76382,"./EconomyManager":90217,"./EconomyManager.js":90217,"./Electropack":82565,"./Electropack.js":82565,"./Emojipedia":11243,"./Emojipedia.tsx":11243,"./EvolutionMenu":36730,"./EvolutionMenu.js":36730,"./ExosuitFabricator":17370,"./ExosuitFabricator.js":17370,"./ExperimentConsole":59128,"./ExperimentConsole.js":59128,"./ExternalAirlockController":97086,"./ExternalAirlockController.js":97086,"./FaxMachine":96142,"./FaxMachine.js":96142,"./FilingCabinet":74123,"./FilingCabinet.js":74123,"./FloorPainter":83767,"./FloorPainter.js":83767,"./GPS":53424,"./GPS.js":53424,"./GeneModder":89124,"./GeneModder.js":89124,"./GenericCrewManifest":73053,"./GenericCrewManifest.js":73053,"./GhostHudPanel":42914,"./GhostHudPanel.js":42914,"./GlandDispenser":25825,"./GlandDispenser.js":25825,"./GravityGen":10270,"./GravityGen.js":10270,"./GuestPass":48657,"./GuestPass.js":48657,"./HandheldChemDispenser":67834,"./HandheldChemDispenser.js":67834,"./HealthSensor":46098,"./HealthSensor.js":46098,"./Holodeck":36771,"./Holodeck.js":36771,"./Instrument":25471,"./Instrument.js":25471,"./KeyComboModal":13618,"./KeyComboModal.tsx":13618,"./KeycardAuth":35655,"./KeycardAuth.js":35655,"./KitchenMachine":62955,"./KitchenMachine.js":62955,"./LawManager":9525,"./LawManager.js":9525,"./LibraryComputer":85066,"./LibraryComputer.js":85066,"./LibraryManager":9516,"./LibraryManager.js":9516,"./ListInputModal":90447,"./ListInputModal.tsx":90447,"./MODsuit":77613,"./MODsuit.js":77613,"./MagnetController":78624,"./MagnetController.js":78624,"./MechBayConsole":72106,"./MechBayConsole.js":72106,"./MechaControlConsole":7466,"./MechaControlConsole.js":7466,"./MedicalRecords":79625,"./MedicalRecords.js":79625,"./MerchVendor":54989,"./MerchVendor.js":54989,"./MiningVendor":87684,"./MiningVendor.js":87684,"./NTRecruiter":59783,"./NTRecruiter.js":59783,"./Newscaster":64713,"./Newscaster.js":64713,"./Noticeboard":48286,"./Noticeboard.tsx":48286,"./NuclearBomb":41166,"./NuclearBomb.js":41166,"./NumberInputModal":52416,"./NumberInputModal.tsx":52416,"./OperatingComputer":1218,"./OperatingComputer.js":1218,"./Orbit":46892,"./Orbit.js":46892,"./OreRedemption":15421,"./OreRedemption.js":15421,"./PAI":52754,"./PAI.js":52754,"./PDA":85175,"./PDA.js":85175,"./Pacman":68654,"./Pacman.js":68654,"./PanDEMIC":1701,"./PanDEMIC.tsx":1701,"./ParticleAccelerator":67921,"./ParticleAccelerator.js":67921,"./PdaPainter":71432,"./PdaPainter.js":71432,"./PersonalCrafting":33388,"./PersonalCrafting.js":33388,"./Photocopier":56150,"./Photocopier.js":56150,"./PoolController":84676,"./PoolController.js":84676,"./PortablePump":57003,"./PortablePump.js":57003,"./PortableScrubber":70069,"./PortableScrubber.js":70069,"./PortableTurret":59955,"./PortableTurret.js":59955,"./PowerMonitor":61631,"./PowerMonitor.js":61631,"./PrisonerImplantManager":50992,"./PrisonerImplantManager.js":50992,"./PrisonerShuttleConsole":53952,"./PrisonerShuttleConsole.js":53952,"./PrizeCounter":97852,"./PrizeCounter.tsx":97852,"./RCD":94813,"./RCD.js":94813,"./RPD":18738,"./RPD.js":18738,"./Radio":80299,"./Radio.js":80299,"./ReagentGrinder":48125,"./ReagentGrinder.js":48125,"./ReagentsEditor":58262,"./ReagentsEditor.tsx":58262,"./RemoteSignaler":30207,"./RemoteSignaler.js":30207,"./RequestConsole":25472,"./RequestConsole.js":25472,"./RndBackupConsole":9861,"./RndBackupConsole.js":9861,"./RndConsole":12644,"./RndConsole/":12644,"./RndConsole/DataDiskMenu":37556,"./RndConsole/DataDiskMenu.js":37556,"./RndConsole/DeconstructionMenu":58147,"./RndConsole/DeconstructionMenu.js":58147,"./RndConsole/LatheCategory":16830,"./RndConsole/LatheCategory.js":16830,"./RndConsole/LatheChemicalStorage":70497,"./RndConsole/LatheChemicalStorage.js":70497,"./RndConsole/LatheMainMenu":70864,"./RndConsole/LatheMainMenu.js":70864,"./RndConsole/LatheMaterialStorage":42878,"./RndConsole/LatheMaterialStorage.js":42878,"./RndConsole/LatheMaterials":52662,"./RndConsole/LatheMaterials.js":52662,"./RndConsole/LatheMenu":9681,"./RndConsole/LatheMenu.js":9681,"./RndConsole/LatheSearch":68198,"./RndConsole/LatheSearch.js":68198,"./RndConsole/LinkMenu":81421,"./RndConsole/LinkMenu.js":81421,"./RndConsole/SettingsMenu":6256,"./RndConsole/SettingsMenu.js":6256,"./RndConsole/index":12644,"./RndConsole/index.js":12644,"./RndNetController":29205,"./RndNetController.js":29205,"./RndServer":63315,"./RndServer.js":63315,"./RobotSelfDiagnosis":26109,"./RobotSelfDiagnosis.js":26109,"./RoboticsControlConsole":97997,"./RoboticsControlConsole.js":97997,"./Safe":54431,"./Safe.js":54431,"./SatelliteControl":29740,"./SatelliteControl.js":29740,"./SecureStorage":44162,"./SecureStorage.js":44162,"./SecurityRecords":6272,"./SecurityRecords.js":6272,"./SeedExtractor":5099,"./SeedExtractor.js":5099,"./ShuttleConsole":2916,"./ShuttleConsole.js":2916,"./ShuttleManipulator":39401,"./ShuttleManipulator.js":39401,"./Sleeper":88284,"./Sleeper.js":88284,"./SlotMachine":21597,"./SlotMachine.js":21597,"./Smartfridge":46348,"./Smartfridge.js":46348,"./Smes":86162,"./Smes.js":86162,"./SolarControl":63584,"./SolarControl.js":63584,"./SpawnersMenu":38096,"./SpawnersMenu.js":38096,"./SpecMenu":30586,"./SpecMenu.js":30586,"./StackCraft":95152,"./StackCraft.js":95152,"./StationAlertConsole":38307,"./StationAlertConsole.js":38307,"./StationTraitsPanel":96091,"./StationTraitsPanel.tsx":96091,"./StripMenu":39409,"./StripMenu.tsx":39409,"./SuitStorage":69514,"./SuitStorage.js":69514,"./SupermatterMonitor":15022,"./SupermatterMonitor.js":15022,"./SyndicateComputerSimple":46029,"./SyndicateComputerSimple.js":46029,"./TEG":36372,"./TEG.js":36372,"./TachyonArray":56441,"./TachyonArray.js":56441,"./Tank":1754,"./Tank.js":1754,"./TankDispenser":7579,"./TankDispenser.js":7579,"./TcommsCore":16136,"./TcommsCore.js":16136,"./TcommsRelay":88046,"./TcommsRelay.js":88046,"./Teleporter":20802,"./Teleporter.js":20802,"./TelescienceConsole":48517,"./TelescienceConsole.js":48517,"./TempGun":21800,"./TempGun.js":21800,"./TextInputModal":24410,"./TextInputModal.tsx":24410,"./ThermoMachine":25036,"./ThermoMachine.js":25036,"./TransferValve":20035,"./TransferValve.js":20035,"./TurbineComputer":78166,"./TurbineComputer.js":78166,"./Uplink":52847,"./Uplink.js":52847,"./Vending":12261,"./Vending.js":12261,"./VolumeMixer":68971,"./VolumeMixer.js":68971,"./VotePanel":2510,"./VotePanel.js":2510,"./Wires":30138,"./Wires.js":30138,"./WizardApprenticeContract":21400,"./WizardApprenticeContract.js":21400,"./common/AccessList":49148,"./common/AccessList.js":49148,"./common/AtmosScan":26991,"./common/AtmosScan.js":26991,"./common/BeakerContents":85870,"./common/BeakerContents.js":85870,"./common/BotStatus":92963,"./common/BotStatus.js":92963,"./common/ComplexModal":3939,"./common/ComplexModal.js":3939,"./common/CrewManifest":41874,"./common/CrewManifest.js":41874,"./common/InputButtons":19203,"./common/InputButtons.tsx":19203,"./common/InterfaceLockNoticeBox":195,"./common/InterfaceLockNoticeBox.js":195,"./common/Loader":51057,"./common/Loader.tsx":51057,"./common/LoginInfo":321,"./common/LoginInfo.js":321,"./common/LoginScreen":5485,"./common/LoginScreen.js":5485,"./common/Operating":62411,"./common/Operating.js":62411,"./common/Signaler":13545,"./common/Signaler.js":13545,"./common/SimpleRecords":41984,"./common/SimpleRecords.js":41984,"./common/TemporaryNotice":22091,"./common/TemporaryNotice.js":22091,"./pai/pai_atmosphere":80818,"./pai/pai_atmosphere.js":80818,"./pai/pai_bioscan":23903,"./pai/pai_bioscan.js":23903,"./pai/pai_directives":64988,"./pai/pai_directives.js":64988,"./pai/pai_doorjack":13813,"./pai/pai_doorjack.js":13813,"./pai/pai_main_menu":66025,"./pai/pai_main_menu.js":66025,"./pai/pai_manifest":2983,"./pai/pai_manifest.js":2983,"./pai/pai_medrecords":40758,"./pai/pai_medrecords.js":40758,"./pai/pai_messenger":98599,"./pai/pai_messenger.js":98599,"./pai/pai_radio":50775,"./pai/pai_radio.js":50775,"./pai/pai_secrecords":48623,"./pai/pai_secrecords.js":48623,"./pai/pai_signaler":47297,"./pai/pai_signaler.js":47297,"./pda/pda_atmos_scan":78532,"./pda/pda_atmos_scan.js":78532,"./pda/pda_janitor":40253,"./pda/pda_janitor.js":40253,"./pda/pda_main_menu":58293,"./pda/pda_main_menu.js":58293,"./pda/pda_manifest":58059,"./pda/pda_manifest.js":58059,"./pda/pda_medical":18147,"./pda/pda_medical.js":18147,"./pda/pda_messenger":77595,"./pda/pda_messenger.js":77595,"./pda/pda_mule":24635,"./pda/pda_mule.js":24635,"./pda/pda_nanobank":23734,"./pda/pda_nanobank.js":23734,"./pda/pda_notes":97085,"./pda/pda_notes.js":97085,"./pda/pda_power":57513,"./pda/pda_power.js":57513,"./pda/pda_secbot":99808,"./pda/pda_secbot.js":99808,"./pda/pda_security":77168,"./pda/pda_security.js":77168,"./pda/pda_signaler":21773,"./pda/pda_signaler.js":21773,"./pda/pda_status_display":81857,"./pda/pda_status_display.js":81857,"./pda/pda_supplyrecords":70287,"./pda/pda_supplyrecords.js":70287};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,T.exports=a,a.id=32054},4085:function(T,r,n){var e={"./Blink.stories.js":51364,"./BlockQuote.stories.js":32453,"./Box.stories.js":83531,"./Button.stories.js":74198,"./ByondUi.stories.js":51956,"./Collapsible.stories.js":17466,"./Flex.stories.js":89241,"./ImageButton.stories.js":48779,"./Input.stories.js":21394,"./Popper.stories.js":43932,"./ProgressBar.stories.js":33270,"./Stack.stories.js":77766,"./Storage.stories.js":30187,"./Tabs.stories.js":46554,"./Themes.stories.js":53276,"./Tooltip.stories.js":28717};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,T.exports=a,a.id=4085},10320:function(T,r,n){"use strict";var e=n(55747),a=n(89393),t=TypeError;T.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a function")}},32606:function(T,r,n){"use strict";var e=n(1031),a=n(89393),t=TypeError;T.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a constructor")}},35908:function(T,r,n){"use strict";var e=n(45015),a=String,t=TypeError;T.exports=function(o){if(e(o))return o;throw new t("Can't set "+a(o)+" as a prototype")}},80575:function(T,r,n){"use strict";var e=n(24697),a=n(80674),t=n(74595).f,o=e("unscopables"),f=Array.prototype;f[o]===void 0&&t(f,o,{configurable:!0,value:a(null)}),T.exports=function(b){f[o][b]=!0}},35483:function(T,r,n){"use strict";var e=n(50233).charAt;T.exports=function(a,t,o){return t+(o?e(a,t).length:1)}},60077:function(T,r,n){"use strict";var e=n(21287),a=TypeError;T.exports=function(t,o){if(e(o,t))return t;throw new a("Incorrect invocation")}},30365:function(T,r,n){"use strict";var e=n(77568),a=String,t=TypeError;T.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not an object")}},70377:function(T){"use strict";T.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},3782:function(T,r,n){"use strict";var e=n(40033);T.exports=e(function(){if(typeof ArrayBuffer=="function"){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},4246:function(T,r,n){"use strict";var e=n(70377),a=n(58310),t=n(74685),o=n(55747),f=n(77568),b=n(45299),y=n(2281),S=n(89393),k=n(37909),h=n(55938),c=n(73936),i=n(21287),m=n(36917),d=n(76649),u=n(24697),s=n(16738),l=n(5419),v=l.enforce,N=l.get,C=t.Int8Array,p=C&&C.prototype,g=t.Uint8ClampedArray,V=g&&g.prototype,B=C&&m(C),I=p&&m(p),L=Object.prototype,w=t.TypeError,A=u("toStringTag"),x=s("TYPED_ARRAY_TAG"),E="TypedArrayConstructor",P=e&&!!d&&y(t.opera)!=="Opera",j=!1,M,R,D,W={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},_={BigInt64Array:8,BigUint64Array:8},U=function(){function ne(se){if(!f(se))return!1;var Ce=y(se);return Ce==="DataView"||b(W,Ce)||b(_,Ce)}return ne}(),K=function ne(se){var Ce=m(se);if(f(Ce)){var Se=N(Ce);return Se&&b(Se,E)?Se[E]:ne(Ce)}},G=function(se){if(!f(se))return!1;var Ce=y(se);return b(W,Ce)||b(_,Ce)},$=function(se){if(G(se))return se;throw new w("Target is not a typed array")},Q=function(se){if(o(se)&&(!d||i(B,se)))return se;throw new w(S(se)+" is not a typed array constructor")},J=function(se,Ce,Se,ye){if(a){if(Se)for(var he in W){var oe=t[he];if(oe&&b(oe.prototype,se))try{delete oe.prototype[se]}catch(ce){try{oe.prototype[se]=Ce}catch(ee){}}}(!I[se]||Se)&&h(I,se,Se?Ce:P&&p[se]||Ce,ye)}},ie=function(se,Ce,Se){var ye,he;if(a){if(d){if(Se){for(ye in W)if(he=t[ye],he&&b(he,se))try{delete he[se]}catch(oe){}}if(!B[se]||Se)try{return h(B,se,Se?Ce:P&&B[se]||Ce)}catch(oe){}else return}for(ye in W)he=t[ye],he&&(!he[se]||Se)&&h(he,se,Ce)}};for(M in W)R=t[M],D=R&&R.prototype,D?v(D)[E]=R:P=!1;for(M in _)R=t[M],D=R&&R.prototype,D&&(v(D)[E]=R);if((!P||!o(B)||B===Function.prototype)&&(B=function(){function ne(){throw new w("Incorrect invocation")}return ne}(),P))for(M in W)t[M]&&d(t[M],B);if((!P||!I||I===L)&&(I=B.prototype,P))for(M in W)t[M]&&d(t[M].prototype,I);if(P&&m(V)!==I&&d(V,I),a&&!b(I,A)){j=!0,c(I,A,{configurable:!0,get:function(){function ne(){return f(this)?this[x]:void 0}return ne}()});for(M in W)t[M]&&k(t[M],x,M)}T.exports={NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_TAG:j&&x,aTypedArray:$,aTypedArrayConstructor:Q,exportTypedArrayMethod:J,exportTypedArrayStaticMethod:ie,getTypedArrayConstructor:K,isView:U,isTypedArray:G,TypedArray:B,TypedArrayPrototype:I}},37336:function(T,r,n){"use strict";var e=n(74685),a=n(67250),t=n(58310),o=n(70377),f=n(70520),b=n(37909),y=n(73936),S=n(30145),k=n(40033),h=n(60077),c=n(61365),i=n(10188),m=n(43806),d=n(95867),u=n(91784),s=n(36917),l=n(76649),v=n(88471),N=n(54602),C=n(5781),p=n(5774),g=n(84925),V=n(5419),B=f.PROPER,I=f.CONFIGURABLE,L="ArrayBuffer",w="DataView",A="prototype",x="Wrong length",E="Wrong index",P=V.getterFor(L),j=V.getterFor(w),M=V.set,R=e[L],D=R,W=D&&D[A],_=e[w],U=_&&_[A],K=Object.prototype,G=e.Array,$=e.RangeError,Q=a(v),J=a([].reverse),ie=u.pack,ne=u.unpack,se=function(ve){return[ve&255]},Ce=function(ve){return[ve&255,ve>>8&255]},Se=function(ve){return[ve&255,ve>>8&255,ve>>16&255,ve>>24&255]},ye=function(ve){return ve[3]<<24|ve[2]<<16|ve[1]<<8|ve[0]},he=function(ve){return ie(d(ve),23,4)},oe=function(ve){return ie(ve,52,8)},ce=function(ve,Be,ge){y(ve[A],Be,{configurable:!0,get:function(){function Le(){return ge(this)[Be]}return Le}()})},ee=function(ve,Be,ge,Le){var we=j(ve),xe=m(ge),Re=!!Le;if(xe+Be>we.byteLength)throw new $(E);var ze=we.bytes,Ve=xe+we.byteOffset,re=N(ze,Ve,Ve+Be);return Re?re:J(re)},fe=function(ve,Be,ge,Le,we,xe){var Re=j(ve),ze=m(ge),Ve=Le(+we),re=!!xe;if(ze+Be>Re.byteLength)throw new $(E);for(var le=Re.bytes,Ne=ze+Re.byteOffset,de=0;dewe)throw new $("Wrong offset");if(ge=ge===void 0?we-xe:i(ge),xe+ge>we)throw new $(x);M(this,{type:w,buffer:ve,byteLength:ge,byteOffset:xe,bytes:Le.bytes}),t||(this.buffer=ve,this.byteLength=ge,this.byteOffset=xe)}return pe}(),U=_[A],t&&(ce(D,"byteLength",P),ce(_,"buffer",j),ce(_,"byteLength",j),ce(_,"byteOffset",j)),S(U,{getInt8:function(){function pe(ve){return ee(this,1,ve)[0]<<24>>24}return pe}(),getUint8:function(){function pe(ve){return ee(this,1,ve)[0]}return pe}(),getInt16:function(){function pe(ve){var Be=ee(this,2,ve,arguments.length>1?arguments[1]:!1);return(Be[1]<<8|Be[0])<<16>>16}return pe}(),getUint16:function(){function pe(ve){var Be=ee(this,2,ve,arguments.length>1?arguments[1]:!1);return Be[1]<<8|Be[0]}return pe}(),getInt32:function(){function pe(ve){return ye(ee(this,4,ve,arguments.length>1?arguments[1]:!1))}return pe}(),getUint32:function(){function pe(ve){return ye(ee(this,4,ve,arguments.length>1?arguments[1]:!1))>>>0}return pe}(),getFloat32:function(){function pe(ve){return ne(ee(this,4,ve,arguments.length>1?arguments[1]:!1),23)}return pe}(),getFloat64:function(){function pe(ve){return ne(ee(this,8,ve,arguments.length>1?arguments[1]:!1),52)}return pe}(),setInt8:function(){function pe(ve,Be){fe(this,1,ve,se,Be)}return pe}(),setUint8:function(){function pe(ve,Be){fe(this,1,ve,se,Be)}return pe}(),setInt16:function(){function pe(ve,Be){fe(this,2,ve,Ce,Be,arguments.length>2?arguments[2]:!1)}return pe}(),setUint16:function(){function pe(ve,Be){fe(this,2,ve,Ce,Be,arguments.length>2?arguments[2]:!1)}return pe}(),setInt32:function(){function pe(ve,Be){fe(this,4,ve,Se,Be,arguments.length>2?arguments[2]:!1)}return pe}(),setUint32:function(){function pe(ve,Be){fe(this,4,ve,Se,Be,arguments.length>2?arguments[2]:!1)}return pe}(),setFloat32:function(){function pe(ve,Be){fe(this,4,ve,he,Be,arguments.length>2?arguments[2]:!1)}return pe}(),setFloat64:function(){function pe(ve,Be){fe(this,8,ve,oe,Be,arguments.length>2?arguments[2]:!1)}return pe}()});else{var me=B&&R.name!==L;!k(function(){R(1)})||!k(function(){new R(-1)})||k(function(){return new R,new R(1.5),new R(NaN),R.length!==1||me&&!I})?(D=function(){function pe(ve){return h(this,W),C(new R(m(ve)),this,D)}return pe}(),D[A]=W,W.constructor=D,p(D,R)):me&&I&&b(R,"name",L),l&&s(U)!==K&&l(U,K);var te=new _(new D(2)),be=a(U.setInt8);te.setInt8(0,2147483648),te.setInt8(1,2147483649),(te.getInt8(0)||!te.getInt8(1))&&S(U,{setInt8:function(){function pe(ve,Be){be(this,ve,Be<<24>>24)}return pe}(),setUint8:function(){function pe(ve,Be){be(this,ve,Be<<24>>24)}return pe}()},{unsafe:!0})}g(D,L),g(_,w),T.exports={ArrayBuffer:D,DataView:_}},71447:function(T,r,n){"use strict";var e=n(46771),a=n(13912),t=n(24760),o=n(95108),f=Math.min;T.exports=[].copyWithin||function(){function b(y,S){var k=e(this),h=t(k),c=a(y,h),i=a(S,h),m=arguments.length>2?arguments[2]:void 0,d=f((m===void 0?h:a(m,h))-i,h-c),u=1;for(i0;)i in k?k[c]=k[i]:o(k,c),c+=u,i+=u;return k}return b}()},88471:function(T,r,n){"use strict";var e=n(46771),a=n(13912),t=n(24760);T.exports=function(){function o(f){for(var b=e(this),y=t(b),S=arguments.length,k=a(S>1?arguments[1]:void 0,y),h=S>2?arguments[2]:void 0,c=h===void 0?y:a(h,y);c>k;)b[k++]=f;return b}return o}()},35601:function(T,r,n){"use strict";var e=n(22603).forEach,a=n(55528),t=a("forEach");T.exports=t?[].forEach:function(){function o(f){return e(this,f,arguments.length>1?arguments[1]:void 0)}return o}()},78008:function(T,r,n){"use strict";var e=n(24760);T.exports=function(a,t,o){for(var f=0,b=arguments.length>2?o:e(t),y=new a(b);b>f;)y[f]=t[f++];return y}},73174:function(T,r,n){"use strict";var e=n(75754),a=n(91495),t=n(46771),o=n(40125),f=n(76571),b=n(1031),y=n(24760),S=n(60102),k=n(77455),h=n(59201),c=Array;T.exports=function(){function i(m){var d=t(m),u=b(this),s=arguments.length,l=s>1?arguments[1]:void 0,v=l!==void 0;v&&(l=e(l,s>2?arguments[2]:void 0));var N=h(d),C=0,p,g,V,B,I,L;if(N&&!(this===c&&f(N)))for(g=u?new this:[],B=k(d,N),I=B.next;!(V=a(I,B)).done;C++)L=v?o(B,l,[V.value,C],!0):V.value,S(g,C,L);else for(p=y(d),g=u?new this(p):c(p);p>C;C++)L=v?l(d[C],C):d[C],S(g,C,L);return g.length=C,g}return i}()},14211:function(T,r,n){"use strict";var e=n(57591),a=n(13912),t=n(24760),o=function(b){return function(y,S,k){var h=e(y),c=t(h);if(c===0)return!b&&-1;var i=a(k,c),m;if(b&&S!==S){for(;c>i;)if(m=h[i++],m!==m)return!0}else for(;c>i;i++)if((b||i in h)&&h[i]===S)return b||i||0;return!b&&-1}};T.exports={includes:o(!0),indexOf:o(!1)}},22603:function(T,r,n){"use strict";var e=n(75754),a=n(67250),t=n(37457),o=n(46771),f=n(24760),b=n(57823),y=a([].push),S=function(h){var c=h===1,i=h===2,m=h===3,d=h===4,u=h===6,s=h===7,l=h===5||u;return function(v,N,C,p){for(var g=o(v),V=t(g),B=f(V),I=e(N,C),L=0,w=p||b,A=c?w(v,B):i||s?w(v,0):void 0,x,E;B>L;L++)if((l||L in V)&&(x=V[L],E=I(x,L,g),h))if(c)A[L]=E;else if(E)switch(h){case 3:return!0;case 5:return x;case 6:return L;case 2:y(A,x)}else switch(h){case 4:return!1;case 7:y(A,x)}return u?-1:m||d?d:A}};T.exports={forEach:S(0),map:S(1),filter:S(2),some:S(3),every:S(4),find:S(5),findIndex:S(6),filterReject:S(7)}},1325:function(T,r,n){"use strict";var e=n(61267),a=n(57591),t=n(61365),o=n(24760),f=n(55528),b=Math.min,y=[].lastIndexOf,S=!!y&&1/[1].lastIndexOf(1,-0)<0,k=f("lastIndexOf"),h=S||!k;T.exports=h?function(){function c(i){if(S)return e(y,this,arguments)||0;var m=a(this),d=o(m);if(d===0)return-1;var u=d-1;for(arguments.length>1&&(u=b(u,t(arguments[1]))),u<0&&(u=d+u);u>=0;u--)if(u in m&&m[u]===i)return u||0;return-1}return c}():y},44091:function(T,r,n){"use strict";var e=n(40033),a=n(24697),t=n(5026),o=a("species");T.exports=function(f){return t>=51||!e(function(){var b=[],y=b.constructor={};return y[o]=function(){return{foo:1}},b[f](Boolean).foo!==1})}},55528:function(T,r,n){"use strict";var e=n(40033);T.exports=function(a,t){var o=[][a];return!!o&&e(function(){o.call(null,t||function(){return 1},1)})}},56844:function(T,r,n){"use strict";var e=n(10320),a=n(46771),t=n(37457),o=n(24760),f=TypeError,b="Reduce of empty array with no initial value",y=function(k){return function(h,c,i,m){var d=a(h),u=t(d),s=o(d);if(e(c),s===0&&i<2)throw new f(b);var l=k?s-1:0,v=k?-1:1;if(i<2)for(;;){if(l in u){m=u[l],l+=v;break}if(l+=v,k?l<0:s<=l)throw new f(b)}for(;k?l>=0:s>l;l+=v)l in u&&(m=c(m,u[l],l,d));return m}};T.exports={left:y(!1),right:y(!0)}},13345:function(T,r,n){"use strict";var e=n(58310),a=n(37386),t=TypeError,o=Object.getOwnPropertyDescriptor,f=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(b){return b instanceof TypeError}}();T.exports=f?function(b,y){if(a(b)&&!o(b,"length").writable)throw new t("Cannot set read only .length");return b.length=y}:function(b,y){return b.length=y}},54602:function(T,r,n){"use strict";var e=n(67250);T.exports=e([].slice)},90274:function(T,r,n){"use strict";var e=n(54602),a=Math.floor,t=function o(f,b){var y=f.length;if(y<8)for(var S=1,k,h;S0;)f[h]=f[--h];h!==S++&&(f[h]=k)}else for(var c=a(y/2),i=o(e(f,0,c),b),m=o(e(f,c),b),d=i.length,u=m.length,s=0,l=0;s1?arguments[1]:void 0),E;E=E?E.next:A.first;)for(x(E.value,E.key,this);E&&E.removed;)E=E.previous}return L}(),has:function(){function L(w){return!!I(this,w)}return L}()}),t(g,N?{get:function(){function L(w){var A=I(this,w);return A&&A.value}return L}(),set:function(){function L(w,A){return B(this,w===0?0:w,A)}return L}()}:{add:function(){function L(w){return B(this,w=w===0?0:w,w)}return L}()}),c&&a(g,"size",{configurable:!0,get:function(){function L(){return V(this).size}return L}()}),p}return s}(),setStrong:function(){function s(l,v,N){var C=v+" Iterator",p=u(v),g=u(C);S(l,v,function(V,B){d(this,{type:C,target:V,state:p(V),kind:B,last:void 0})},function(){for(var V=g(this),B=V.kind,I=V.last;I&&I.removed;)I=I.previous;return!V.target||!(V.last=I=I?I.next:V.state.first)?(V.target=void 0,k(void 0,!0)):k(B==="keys"?I.key:B==="values"?I.value:[I.key,I.value],!1)},N?"entries":"values",!N,!0),h(v)}return s}()}},39895:function(T,r,n){"use strict";var e=n(67250),a=n(30145),t=n(81969).getWeakData,o=n(60077),f=n(30365),b=n(42871),y=n(77568),S=n(49450),k=n(22603),h=n(45299),c=n(5419),i=c.set,m=c.getterFor,d=k.find,u=k.findIndex,s=e([].splice),l=0,v=function(g){return g.frozen||(g.frozen=new N)},N=function(){this.entries=[]},C=function(g,V){return d(g.entries,function(B){return B[0]===V})};N.prototype={get:function(){function p(g){var V=C(this,g);if(V)return V[1]}return p}(),has:function(){function p(g){return!!C(this,g)}return p}(),set:function(){function p(g,V){var B=C(this,g);B?B[1]=V:this.entries.push([g,V])}return p}(),delete:function(){function p(g){var V=u(this.entries,function(B){return B[0]===g});return~V&&s(this.entries,V,1),!!~V}return p}()},T.exports={getConstructor:function(){function p(g,V,B,I){var L=g(function(E,P){o(E,w),i(E,{type:V,id:l++,frozen:void 0}),b(P)||S(P,E[I],{that:E,AS_ENTRIES:B})}),w=L.prototype,A=m(V),x=function(){function E(P,j,M){var R=A(P),D=t(f(j),!0);return D===!0?v(R).set(j,M):D[R.id]=M,P}return E}();return a(w,{delete:function(){function E(P){var j=A(this);if(!y(P))return!1;var M=t(P);return M===!0?v(j).delete(P):M&&h(M,j.id)&&delete M[j.id]}return E}(),has:function(){function E(P){var j=A(this);if(!y(P))return!1;var M=t(P);return M===!0?v(j).has(P):M&&h(M,j.id)}return E}()}),a(w,B?{get:function(){function E(P){var j=A(this);if(y(P)){var M=t(P);return M===!0?v(j).get(P):M?M[j.id]:void 0}}return E}(),set:function(){function E(P,j){return x(this,P,j)}return E}()}:{add:function(){function E(P){return x(this,P,!0)}return E}()}),L}return p}()}},45150:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(67250),o=n(41314),f=n(55938),b=n(81969),y=n(49450),S=n(60077),k=n(55747),h=n(42871),c=n(77568),i=n(40033),m=n(92490),d=n(84925),u=n(5781);T.exports=function(s,l,v){var N=s.indexOf("Map")!==-1,C=s.indexOf("Weak")!==-1,p=N?"set":"add",g=a[s],V=g&&g.prototype,B=g,I={},L=function(R){var D=t(V[R]);f(V,R,R==="add"?function(){function W(_){return D(this,_===0?0:_),this}return W}():R==="delete"?function(W){return C&&!c(W)?!1:D(this,W===0?0:W)}:R==="get"?function(){function W(_){return C&&!c(_)?void 0:D(this,_===0?0:_)}return W}():R==="has"?function(){function W(_){return C&&!c(_)?!1:D(this,_===0?0:_)}return W}():function(){function W(_,U){return D(this,_===0?0:_,U),this}return W}())},w=o(s,!k(g)||!(C||V.forEach&&!i(function(){new g().entries().next()})));if(w)B=v.getConstructor(l,s,N,p),b.enable();else if(o(s,!0)){var A=new B,x=A[p](C?{}:-0,1)!==A,E=i(function(){A.has(1)}),P=m(function(M){new g(M)}),j=!C&&i(function(){for(var M=new g,R=5;R--;)M[p](R,R);return!M.has(-0)});P||(B=l(function(M,R){S(M,V);var D=u(new g,M,B);return h(R)||y(R,D[p],{that:D,AS_ENTRIES:N}),D}),B.prototype=V,V.constructor=B),(E||j)&&(L("delete"),L("has"),N&&L("get")),(j||x)&&L(p),C&&V.clear&&delete V.clear}return I[s]=B,e({global:!0,constructor:!0,forced:B!==g},I),d(B,s),C||v.setStrong(B,s,N),B}},5774:function(T,r,n){"use strict";var e=n(45299),a=n(97921),t=n(27193),o=n(74595);T.exports=function(f,b,y){for(var S=a(b),k=o.f,h=t.f,c=0;c"+h+""}},5959:function(T){"use strict";T.exports=function(r,n){return{value:r,done:n}}},37909:function(T,r,n){"use strict";var e=n(58310),a=n(74595),t=n(87458);T.exports=e?function(o,f,b){return a.f(o,f,t(1,b))}:function(o,f,b){return o[f]=b,o}},87458:function(T){"use strict";T.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},60102:function(T,r,n){"use strict";var e=n(58310),a=n(74595),t=n(87458);T.exports=function(o,f,b){e?a.f(o,f,t(0,b)):o[f]=b}},67206:function(T,r,n){"use strict";var e=n(67250),a=n(40033),t=n(24051).start,o=RangeError,f=isFinite,b=Math.abs,y=Date.prototype,S=y.toISOString,k=e(y.getTime),h=e(y.getUTCDate),c=e(y.getUTCFullYear),i=e(y.getUTCHours),m=e(y.getUTCMilliseconds),d=e(y.getUTCMinutes),u=e(y.getUTCMonth),s=e(y.getUTCSeconds);T.exports=a(function(){return S.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!a(function(){S.call(new Date(NaN))})?function(){function l(){if(!f(k(this)))throw new o("Invalid time value");var v=this,N=c(v),C=m(v),p=N<0?"-":N>9999?"+":"";return p+t(b(N),p?6:4,0)+"-"+t(u(v)+1,2,0)+"-"+t(h(v),2,0)+"T"+t(i(v),2,0)+":"+t(d(v),2,0)+":"+t(s(v),2,0)+"."+t(C,3,0)+"Z"}return l}():S},10886:function(T,r,n){"use strict";var e=n(30365),a=n(13396),t=TypeError;T.exports=function(o){if(e(this),o==="string"||o==="default")o="string";else if(o!=="number")throw new t("Incorrect hint");return a(this,o)}},73936:function(T,r,n){"use strict";var e=n(20001),a=n(74595);T.exports=function(t,o,f){return f.get&&e(f.get,o,{getter:!0}),f.set&&e(f.set,o,{setter:!0}),a.f(t,o,f)}},55938:function(T,r,n){"use strict";var e=n(55747),a=n(74595),t=n(20001),o=n(18231);T.exports=function(f,b,y,S){S||(S={});var k=S.enumerable,h=S.name!==void 0?S.name:b;if(e(y)&&t(y,h,S),S.global)k?f[b]=y:o(b,y);else{try{S.unsafe?f[b]&&(k=!0):delete f[b]}catch(c){}k?f[b]=y:a.f(f,b,{value:y,enumerable:!1,configurable:!S.nonConfigurable,writable:!S.nonWritable})}return f}},30145:function(T,r,n){"use strict";var e=n(55938);T.exports=function(a,t,o){for(var f in t)e(a,f,t[f],o);return a}},18231:function(T,r,n){"use strict";var e=n(74685),a=Object.defineProperty;T.exports=function(t,o){try{a(e,t,{value:o,configurable:!0,writable:!0})}catch(f){e[t]=o}return o}},95108:function(T,r,n){"use strict";var e=n(89393),a=TypeError;T.exports=function(t,o){if(!delete t[o])throw new a("Cannot delete property "+e(o)+" of "+e(t))}},58310:function(T,r,n){"use strict";var e=n(40033);T.exports=!e(function(){return Object.defineProperty({},1,{get:function(){function a(){return 7}return a}()})[1]!==7})},12689:function(T,r,n){"use strict";var e=n(74685),a=n(77568),t=e.document,o=a(t)&&a(t.createElement);T.exports=function(f){return o?t.createElement(f):{}}},21291:function(T){"use strict";var r=TypeError,n=9007199254740991;T.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}},652:function(T,r,n){"use strict";var e=n(63318),a=e.match(/firefox\/(\d+)/i);T.exports=!!a&&+a[1]},8180:function(T,r,n){"use strict";var e=n(73730),a=n(81702);T.exports=!e&&!a&&typeof window=="object"&&typeof document=="object"},49197:function(T){"use strict";T.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},73730:function(T){"use strict";T.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},19228:function(T,r,n){"use strict";var e=n(63318);T.exports=/MSIE|Trident/.test(e)},51802:function(T,r,n){"use strict";var e=n(63318);T.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},83433:function(T,r,n){"use strict";var e=n(63318);T.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},81702:function(T,r,n){"use strict";var e=n(74685),a=n(7462);T.exports=a(e.process)==="process"},63383:function(T,r,n){"use strict";var e=n(63318);T.exports=/web0s(?!.*chrome)/i.test(e)},63318:function(T){"use strict";T.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},5026:function(T,r,n){"use strict";var e=n(74685),a=n(63318),t=e.process,o=e.Deno,f=t&&t.versions||o&&o.version,b=f&&f.v8,y,S;b&&(y=b.split("."),S=y[0]>0&&y[0]<4?1:+(y[0]+y[1])),!S&&a&&(y=a.match(/Edge\/(\d+)/),(!y||y[1]>=74)&&(y=a.match(/Chrome\/(\d+)/),y&&(S=+y[1]))),T.exports=S},9342:function(T,r,n){"use strict";var e=n(63318),a=e.match(/AppleWebKit\/(\d+)\./);T.exports=!!a&&+a[1]},89453:function(T){"use strict";T.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},63964:function(T,r,n){"use strict";var e=n(74685),a=n(27193).f,t=n(37909),o=n(55938),f=n(18231),b=n(5774),y=n(41314);T.exports=function(S,k){var h=S.target,c=S.global,i=S.stat,m,d,u,s,l,v;if(c?d=e:i?d=e[h]||f(h,{}):d=e[h]&&e[h].prototype,d)for(u in k){if(l=k[u],S.dontCallGetSet?(v=a(d,u),s=v&&v.value):s=d[u],m=y(c?u:h+(i?".":"#")+u,S.forced),!m&&s!==void 0){if(typeof l==typeof s)continue;b(l,s)}(S.sham||s&&s.sham)&&t(l,"sham",!0),o(d,u,l,S)}}},40033:function(T){"use strict";T.exports=function(r){try{return!!r()}catch(n){return!0}}},79942:function(T,r,n){"use strict";n(79669);var e=n(91495),a=n(55938),t=n(14489),o=n(40033),f=n(24697),b=n(37909),y=f("species"),S=RegExp.prototype;T.exports=function(k,h,c,i){var m=f(k),d=!o(function(){var v={};return v[m]=function(){return 7},""[k](v)!==7}),u=d&&!o(function(){var v=!1,N=/a/;return k==="split"&&(N={},N.constructor={},N.constructor[y]=function(){return N},N.flags="",N[m]=/./[m]),N.exec=function(){return v=!0,null},N[m](""),!v});if(!d||!u||c){var s=/./[m],l=h(m,""[k],function(v,N,C,p,g){var V=N.exec;return V===t||V===S.exec?d&&!g?{done:!0,value:e(s,N,C,p)}:{done:!0,value:e(v,C,N,p)}:{done:!1}});a(String.prototype,k,l[0]),a(S,m,l[1])}i&&b(S[m],"sham",!0)}},65561:function(T,r,n){"use strict";var e=n(37386),a=n(24760),t=n(21291),o=n(75754),f=function b(y,S,k,h,c,i,m,d){for(var u=c,s=0,l=m?o(m,d):!1,v,N;s0&&e(v)?(N=a(v),u=b(y,S,v,N,u,i-1)-1):(t(u+1),y[u]=v),u++),s++;return u};T.exports=f},50730:function(T,r,n){"use strict";var e=n(40033);T.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},61267:function(T,r,n){"use strict";var e=n(55050),a=Function.prototype,t=a.apply,o=a.call;T.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(t):function(){return o.apply(t,arguments)})},75754:function(T,r,n){"use strict";var e=n(71138),a=n(10320),t=n(55050),o=e(e.bind);T.exports=function(f,b){return a(f),b===void 0?f:t?o(f,b):function(){return f.apply(b,arguments)}}},55050:function(T,r,n){"use strict";var e=n(40033);T.exports=!e(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},66284:function(T,r,n){"use strict";var e=n(67250),a=n(10320),t=n(77568),o=n(45299),f=n(54602),b=n(55050),y=Function,S=e([].concat),k=e([].join),h={},c=function(m,d,u){if(!o(h,d)){for(var s=[],l=0;l]*>)/g,S=/\$([$&'`]|\d{1,2})/g;T.exports=function(k,h,c,i,m,d){var u=c+k.length,s=i.length,l=S;return m!==void 0&&(m=a(m),l=y),f(d,l,function(v,N){var C;switch(o(N,0)){case"$":return"$";case"&":return k;case"`":return b(h,0,c);case"'":return b(h,u);case"<":C=m[b(N,1,-1)];break;default:var p=+N;if(p===0)return v;if(p>s){var g=t(p/10);return g===0?v:g<=s?i[g-1]===void 0?o(N,1):i[g-1]+o(N,1):v}C=i[p-1]}return C===void 0?"":C})}},74685:function(T,r,n){"use strict";var e=function(t){return t&&t.Math===Math&&t};T.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof n.g=="object"&&n.g)||e(!1)||function(){return this}()||Function("return this")()},45299:function(T,r,n){"use strict";var e=n(67250),a=n(46771),t=e({}.hasOwnProperty);T.exports=Object.hasOwn||function(){function o(f,b){return t(a(f),b)}return o}()},79195:function(T){"use strict";T.exports={}},72259:function(T){"use strict";T.exports=function(r,n){try{arguments.length}catch(e){}}},5315:function(T,r,n){"use strict";var e=n(4009);T.exports=e("document","documentElement")},36223:function(T,r,n){"use strict";var e=n(58310),a=n(40033),t=n(12689);T.exports=!e&&!a(function(){return Object.defineProperty(t("div"),"a",{get:function(){function o(){return 7}return o}()}).a!==7})},91784:function(T){"use strict";var r=Array,n=Math.abs,e=Math.pow,a=Math.floor,t=Math.log,o=Math.LN2,f=function(S,k,h){var c=r(h),i=h*8-k-1,m=(1<>1,u=k===23?e(2,-24)-e(2,-77):0,s=S<0||S===0&&1/S<0?1:0,l=0,v,N,C;for(S=n(S),S!==S||S===1/0?(N=S!==S?1:0,v=m):(v=a(t(S)/o),C=e(2,-v),S*C<1&&(v--,C*=2),v+d>=1?S+=u/C:S+=u*e(2,1-d),S*C>=2&&(v++,C/=2),v+d>=m?(N=0,v=m):v+d>=1?(N=(S*C-1)*e(2,k),v+=d):(N=S*e(2,d-1)*e(2,k),v=0));k>=8;)c[l++]=N&255,N/=256,k-=8;for(v=v<0;)c[l++]=v&255,v/=256,i-=8;return c[--l]|=s*128,c},b=function(S,k){var h=S.length,c=h*8-k-1,i=(1<>1,d=c-7,u=h-1,s=S[u--],l=s&127,v;for(s>>=7;d>0;)l=l*256+S[u--],d-=8;for(v=l&(1<<-d)-1,l>>=-d,d+=k;d>0;)v=v*256+S[u--],d-=8;if(l===0)l=1-m;else{if(l===i)return v?NaN:s?-1/0:1/0;v+=e(2,k),l-=m}return(s?-1:1)*v*e(2,l-k)};T.exports={pack:f,unpack:b}},37457:function(T,r,n){"use strict";var e=n(67250),a=n(40033),t=n(7462),o=Object,f=e("".split);T.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(b){return t(b)==="String"?f(b,""):o(b)}:o},5781:function(T,r,n){"use strict";var e=n(55747),a=n(77568),t=n(76649);T.exports=function(o,f,b){var y,S;return t&&e(y=f.constructor)&&y!==b&&a(S=y.prototype)&&S!==b.prototype&&t(o,S),o}},40492:function(T,r,n){"use strict";var e=n(67250),a=n(55747),t=n(40095),o=e(Function.toString);a(t.inspectSource)||(t.inspectSource=function(f){return o(f)}),T.exports=t.inspectSource},81969:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(79195),o=n(77568),f=n(45299),b=n(74595).f,y=n(37310),S=n(81644),k=n(81834),h=n(16738),c=n(50730),i=!1,m=h("meta"),d=0,u=function(g){b(g,m,{value:{objectID:"O"+d++,weakData:{}}})},s=function(g,V){if(!o(g))return typeof g=="symbol"?g:(typeof g=="string"?"S":"P")+g;if(!f(g,m)){if(!k(g))return"F";if(!V)return"E";u(g)}return g[m].objectID},l=function(g,V){if(!f(g,m)){if(!k(g))return!0;if(!V)return!1;u(g)}return g[m].weakData},v=function(g){return c&&i&&k(g)&&!f(g,m)&&u(g),g},N=function(){C.enable=function(){},i=!0;var g=y.f,V=a([].splice),B={};B[m]=1,g(B).length&&(y.f=function(I){for(var L=g(I),w=0,A=L.length;wI;I++)if(w=P(d[I]),w&&y(m,w))return w;return new i(!1)}V=S(d,B)}for(A=N?d.next:V.next;!(x=a(A,V)).done;){try{w=P(x.value)}catch(j){h(V,"throw",j)}if(typeof w=="object"&&w&&y(m,w))return w}return new i(!1)}},28649:function(T,r,n){"use strict";var e=n(91495),a=n(30365),t=n(78060);T.exports=function(o,f,b){var y,S;a(o);try{if(y=t(o,"return"),!y){if(f==="throw")throw b;return b}y=e(y,o)}catch(k){S=!0,y=k}if(f==="throw")throw b;if(S)throw y;return a(y),b}},5656:function(T,r,n){"use strict";var e=n(67635).IteratorPrototype,a=n(80674),t=n(87458),o=n(84925),f=n(83967),b=function(){return this};T.exports=function(y,S,k,h){var c=S+" Iterator";return y.prototype=a(e,{next:t(+!h,k)}),o(y,c,!1,!0),f[c]=b,y}},65574:function(T,r,n){"use strict";var e=n(63964),a=n(91495),t=n(4493),o=n(70520),f=n(55747),b=n(5656),y=n(36917),S=n(76649),k=n(84925),h=n(37909),c=n(55938),i=n(24697),m=n(83967),d=n(67635),u=o.PROPER,s=o.CONFIGURABLE,l=d.IteratorPrototype,v=d.BUGGY_SAFARI_ITERATORS,N=i("iterator"),C="keys",p="values",g="entries",V=function(){return this};T.exports=function(B,I,L,w,A,x,E){b(L,I,w);var P=function(Q){if(Q===A&&W)return W;if(!v&&Q&&Q in R)return R[Q];switch(Q){case C:return function(){function J(){return new L(this,Q)}return J}();case p:return function(){function J(){return new L(this,Q)}return J}();case g:return function(){function J(){return new L(this,Q)}return J}()}return function(){return new L(this)}},j=I+" Iterator",M=!1,R=B.prototype,D=R[N]||R["@@iterator"]||A&&R[A],W=!v&&D||P(A),_=I==="Array"&&R.entries||D,U,K,G;if(_&&(U=y(_.call(new B)),U!==Object.prototype&&U.next&&(!t&&y(U)!==l&&(S?S(U,l):f(U[N])||c(U,N,V)),k(U,j,!0,!0),t&&(m[j]=V))),u&&A===p&&D&&D.name!==p&&(!t&&s?h(R,"name",p):(M=!0,W=function(){function $(){return a(D,this)}return $}())),A)if(K={values:P(p),keys:x?W:P(C),entries:P(g)},E)for(G in K)(v||M||!(G in R))&&c(R,G,K[G]);else e({target:I,proto:!0,forced:v||M},K);return(!t||E)&&R[N]!==W&&c(R,N,W,{name:A}),m[I]=W,K}},67635:function(T,r,n){"use strict";var e=n(40033),a=n(55747),t=n(77568),o=n(80674),f=n(36917),b=n(55938),y=n(24697),S=n(4493),k=y("iterator"),h=!1,c,i,m;[].keys&&(m=[].keys(),"next"in m?(i=f(f(m)),i!==Object.prototype&&(c=i)):h=!0);var d=!t(c)||e(function(){var u={};return c[k].call(u)!==u});d?c={}:S&&(c=o(c)),a(c[k])||b(c,k,function(){return this}),T.exports={IteratorPrototype:c,BUGGY_SAFARI_ITERATORS:h}},83967:function(T){"use strict";T.exports={}},24760:function(T,r,n){"use strict";var e=n(10188);T.exports=function(a){return e(a.length)}},20001:function(T,r,n){"use strict";var e=n(67250),a=n(40033),t=n(55747),o=n(45299),f=n(58310),b=n(70520).CONFIGURABLE,y=n(40492),S=n(5419),k=S.enforce,h=S.get,c=String,i=Object.defineProperty,m=e("".slice),d=e("".replace),u=e([].join),s=f&&!a(function(){return i(function(){},"length",{value:8}).length!==8}),l=String(String).split("String"),v=T.exports=function(N,C,p){m(c(C),0,7)==="Symbol("&&(C="["+d(c(C),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),p&&p.getter&&(C="get "+C),p&&p.setter&&(C="set "+C),(!o(N,"name")||b&&N.name!==C)&&(f?i(N,"name",{value:C,configurable:!0}):N.name=C),s&&p&&o(p,"arity")&&N.length!==p.arity&&i(N,"length",{value:p.arity});try{p&&o(p,"constructor")&&p.constructor?f&&i(N,"prototype",{writable:!1}):N.prototype&&(N.prototype=void 0)}catch(V){}var g=k(N);return o(g,"source")||(g.source=u(l,typeof C=="string"?C:"")),N};Function.prototype.toString=v(function(){function N(){return t(this)&&h(this).source||y(this)}return N}(),"toString")},82040:function(T){"use strict";var r=Math.expm1,n=Math.exp;T.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||r(-2e-17)!==-2e-17?function(){function e(a){var t=+a;return t===0?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}return e}():r},14950:function(T,r,n){"use strict";var e=n(22172),a=Math.abs,t=2220446049250313e-31,o=1/t,f=function(y){return y+o-o};T.exports=function(b,y,S,k){var h=+b,c=a(h),i=e(h);if(cS||d!==d?i*(1/0):i*d}},95867:function(T,r,n){"use strict";var e=n(14950),a=11920928955078125e-23,t=34028234663852886e22,o=11754943508222875e-54;T.exports=Math.fround||function(){function f(b){return e(b,a,t,o)}return f}()},75002:function(T){"use strict";var r=Math.log,n=Math.LOG10E;T.exports=Math.log10||function(){function e(a){return r(a)*n}return e}()},90874:function(T){"use strict";var r=Math.log;T.exports=Math.log1p||function(){function n(e){var a=+e;return a>-1e-8&&a<1e-8?a-a*a/2:r(1+a)}return n}()},22172:function(T){"use strict";T.exports=Math.sign||function(){function r(n){var e=+n;return e===0||e!==e?e:e<0?-1:1}return r}()},21119:function(T){"use strict";var r=Math.ceil,n=Math.floor;T.exports=Math.trunc||function(){function e(a){var t=+a;return(t>0?n:r)(t)}return e}()},37713:function(T,r,n){"use strict";var e=n(74685),a=n(44915),t=n(75754),o=n(60375).set,f=n(9547),b=n(83433),y=n(51802),S=n(63383),k=n(81702),h=e.MutationObserver||e.WebKitMutationObserver,c=e.document,i=e.process,m=e.Promise,d=a("queueMicrotask"),u,s,l,v,N;if(!d){var C=new f,p=function(){var V,B;for(k&&(V=i.domain)&&V.exit();B=C.get();)try{B()}catch(I){throw C.head&&u(),I}V&&V.enter()};!b&&!k&&!S&&h&&c?(s=!0,l=c.createTextNode(""),new h(p).observe(l,{characterData:!0}),u=function(){l.data=s=!s}):!y&&m&&m.resolve?(v=m.resolve(void 0),v.constructor=m,N=t(v.then,v),u=function(){N(p)}):k?u=function(){i.nextTick(p)}:(o=t(o,e),u=function(){o(p)}),d=function(V){C.head||u(),C.add(V)}}T.exports=d},81837:function(T,r,n){"use strict";var e=n(10320),a=TypeError,t=function(f){var b,y;this.promise=new f(function(S,k){if(b!==void 0||y!==void 0)throw new a("Bad Promise constructor");b=S,y=k}),this.resolve=e(b),this.reject=e(y)};T.exports.f=function(o){return new t(o)}},86213:function(T,r,n){"use strict";var e=n(72586),a=TypeError;T.exports=function(t){if(e(t))throw new a("The method doesn't accept regular expressions");return t}},3294:function(T,r,n){"use strict";var e=n(74685),a=e.isFinite;T.exports=Number.isFinite||function(){function t(o){return typeof o=="number"&&a(o)}return t}()},28506:function(T,r,n){"use strict";var e=n(74685),a=n(40033),t=n(67250),o=n(12605),f=n(92648).trim,b=n(4198),y=t("".charAt),S=e.parseFloat,k=e.Symbol,h=k&&k.iterator,c=1/S(b+"-0")!==-1/0||h&&!a(function(){S(Object(h))});T.exports=c?function(){function i(m){var d=f(o(m)),u=S(d);return u===0&&y(d,0)==="-"?-0:u}return i}():S},13693:function(T,r,n){"use strict";var e=n(74685),a=n(40033),t=n(67250),o=n(12605),f=n(92648).trim,b=n(4198),y=e.parseInt,S=e.Symbol,k=S&&S.iterator,h=/^[+-]?0x/i,c=t(h.exec),i=y(b+"08")!==8||y(b+"0x16")!==22||k&&!a(function(){y(Object(k))});T.exports=i?function(){function m(d,u){var s=f(o(d));return y(s,u>>>0||(c(h,s)?16:10))}return m}():y},41143:function(T,r,n){"use strict";var e=n(58310),a=n(67250),t=n(91495),o=n(40033),f=n(18450),b=n(89235),y=n(12867),S=n(46771),k=n(37457),h=Object.assign,c=Object.defineProperty,i=a([].concat);T.exports=!h||o(function(){if(e&&h({b:1},h(c({},"a",{enumerable:!0,get:function(){function l(){c(this,"b",{value:3,enumerable:!1})}return l}()}),{b:2})).b!==1)return!0;var m={},d={},u=Symbol("assign detection"),s="abcdefghijklmnopqrst";return m[u]=7,s.split("").forEach(function(l){d[l]=l}),h({},m)[u]!==7||f(h({},d)).join("")!==s})?function(){function m(d,u){for(var s=S(d),l=arguments.length,v=1,N=b.f,C=y.f;l>v;)for(var p=k(arguments[v++]),g=N?i(f(p),N(p)):f(p),V=g.length,B=0,I;V>B;)I=g[B++],(!e||t(C,p,I))&&(s[I]=p[I]);return s}return m}():h},80674:function(T,r,n){"use strict";var e=n(30365),a=n(24239),t=n(89453),o=n(79195),f=n(5315),b=n(12689),y=n(19417),S=">",k="<",h="prototype",c="script",i=y("IE_PROTO"),m=function(){},d=function(C){return k+c+S+C+k+"/"+c+S},u=function(C){C.write(d("")),C.close();var p=C.parentWindow.Object;return C=null,p},s=function(){var C=b("iframe"),p="java"+c+":",g;return C.style.display="none",f.appendChild(C),C.src=String(p),g=C.contentWindow.document,g.open(),g.write(d("document.F=Object")),g.close(),g.F},l,v=function(){try{l=new ActiveXObject("htmlfile")}catch(p){}v=typeof document!="undefined"?document.domain&&l?u(l):s():u(l);for(var C=t.length;C--;)delete v[h][t[C]];return v()};o[i]=!0,T.exports=Object.create||function(){function N(C,p){var g;return C!==null?(m[h]=e(C),g=new m,m[h]=null,g[i]=C):g=v(),p===void 0?g:a.f(g,p)}return N}()},24239:function(T,r,n){"use strict";var e=n(58310),a=n(80944),t=n(74595),o=n(30365),f=n(57591),b=n(18450);r.f=e&&!a?Object.defineProperties:function(){function y(S,k){o(S);for(var h=f(k),c=b(k),i=c.length,m=0,d;i>m;)t.f(S,d=c[m++],h[d]);return S}return y}()},74595:function(T,r,n){"use strict";var e=n(58310),a=n(36223),t=n(80944),o=n(30365),f=n(767),b=TypeError,y=Object.defineProperty,S=Object.getOwnPropertyDescriptor,k="enumerable",h="configurable",c="writable";r.f=e?t?function(){function i(m,d,u){if(o(m),d=f(d),o(u),typeof m=="function"&&d==="prototype"&&"value"in u&&c in u&&!u[c]){var s=S(m,d);s&&s[c]&&(m[d]=u.value,u={configurable:h in u?u[h]:s[h],enumerable:k in u?u[k]:s[k],writable:!1})}return y(m,d,u)}return i}():y:function(){function i(m,d,u){if(o(m),d=f(d),o(u),a)try{return y(m,d,u)}catch(s){}if("get"in u||"set"in u)throw new b("Accessors not supported");return"value"in u&&(m[d]=u.value),m}return i}()},27193:function(T,r,n){"use strict";var e=n(58310),a=n(91495),t=n(12867),o=n(87458),f=n(57591),b=n(767),y=n(45299),S=n(36223),k=Object.getOwnPropertyDescriptor;r.f=e?k:function(){function h(c,i){if(c=f(c),i=b(i),S)try{return k(c,i)}catch(m){}if(y(c,i))return o(!a(t.f,c,i),c[i])}return h}()},81644:function(T,r,n){"use strict";var e=n(7462),a=n(57591),t=n(37310).f,o=n(54602),f=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],b=function(S){try{return t(S)}catch(k){return o(f)}};T.exports.f=function(){function y(S){return f&&e(S)==="Window"?b(S):t(a(S))}return y}()},37310:function(T,r,n){"use strict";var e=n(53726),a=n(89453),t=a.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(){function o(f){return e(f,t)}return o}()},89235:function(T,r){"use strict";r.f=Object.getOwnPropertySymbols},36917:function(T,r,n){"use strict";var e=n(45299),a=n(55747),t=n(46771),o=n(19417),f=n(9225),b=o("IE_PROTO"),y=Object,S=y.prototype;T.exports=f?y.getPrototypeOf:function(k){var h=t(k);if(e(h,b))return h[b];var c=h.constructor;return a(c)&&h instanceof c?c.prototype:h instanceof y?S:null}},81834:function(T,r,n){"use strict";var e=n(40033),a=n(77568),t=n(7462),o=n(3782),f=Object.isExtensible,b=e(function(){f(1)});T.exports=b||o?function(){function y(S){return!a(S)||o&&t(S)==="ArrayBuffer"?!1:f?f(S):!0}return y}():f},21287:function(T,r,n){"use strict";var e=n(67250);T.exports=e({}.isPrototypeOf)},53726:function(T,r,n){"use strict";var e=n(67250),a=n(45299),t=n(57591),o=n(14211).indexOf,f=n(79195),b=e([].push);T.exports=function(y,S){var k=t(y),h=0,c=[],i;for(i in k)!a(f,i)&&a(k,i)&&b(c,i);for(;S.length>h;)a(k,i=S[h++])&&(~o(c,i)||b(c,i));return c}},18450:function(T,r,n){"use strict";var e=n(53726),a=n(89453);T.exports=Object.keys||function(){function t(o){return e(o,a)}return t}()},12867:function(T,r){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,a=e&&!n.call({1:2},1);r.f=a?function(){function t(o){var f=e(this,o);return!!f&&f.enumerable}return t}():n},57377:function(T,r,n){"use strict";var e=n(4493),a=n(74685),t=n(40033),o=n(9342);T.exports=e||!t(function(){if(!(o&&o<535)){var f=Math.random();__defineSetter__.call(null,f,function(){}),delete a[f]}})},76649:function(T,r,n){"use strict";var e=n(38656),a=n(77568),t=n(16952),o=n(35908);T.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var f=!1,b={},y;try{y=e(Object.prototype,"__proto__","set"),y(b,[]),f=b instanceof Array}catch(S){}return function(){function S(k,h){return t(k),o(h),a(k)&&(f?y(k,h):k.__proto__=h),k}return S}()}():void 0)},70915:function(T,r,n){"use strict";var e=n(58310),a=n(40033),t=n(67250),o=n(36917),f=n(18450),b=n(57591),y=n(12867).f,S=t(y),k=t([].push),h=e&&a(function(){var i=Object.create(null);return i[2]=2,!S(i,2)}),c=function(m){return function(d){for(var u=b(d),s=f(u),l=h&&o(u)===null,v=s.length,N=0,C=[],p;v>N;)p=s[N++],(!e||(l?p in u:S(u,p)))&&k(C,m?[p,u[p]]:u[p]);return C}};T.exports={entries:c(!0),values:c(!1)}},2509:function(T,r,n){"use strict";var e=n(2650),a=n(2281);T.exports=e?{}.toString:function(){function t(){return"[object "+a(this)+"]"}return t}()},13396:function(T,r,n){"use strict";var e=n(91495),a=n(55747),t=n(77568),o=TypeError;T.exports=function(f,b){var y,S;if(b==="string"&&a(y=f.toString)&&!t(S=e(y,f))||a(y=f.valueOf)&&!t(S=e(y,f))||b!=="string"&&a(y=f.toString)&&!t(S=e(y,f)))return S;throw new o("Can't convert object to primitive value")}},97921:function(T,r,n){"use strict";var e=n(4009),a=n(67250),t=n(37310),o=n(89235),f=n(30365),b=a([].concat);T.exports=e("Reflect","ownKeys")||function(){function y(S){var k=t.f(f(S)),h=o.f;return h?b(k,h(S)):k}return y}()},61765:function(T,r,n){"use strict";var e=n(74685);T.exports=e},10729:function(T){"use strict";T.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}},74854:function(T,r,n){"use strict";var e=n(74685),a=n(67512),t=n(55747),o=n(41314),f=n(40492),b=n(24697),y=n(8180),S=n(73730),k=n(4493),h=n(5026),c=a&&a.prototype,i=b("species"),m=!1,d=t(e.PromiseRejectionEvent),u=o("Promise",function(){var s=f(a),l=s!==String(a);if(!l&&h===66||k&&!(c.catch&&c.finally))return!0;if(!h||h<51||!/native code/.test(s)){var v=new a(function(p){p(1)}),N=function(g){g(function(){},function(){})},C=v.constructor={};if(C[i]=N,m=v.then(function(){})instanceof N,!m)return!0}return!l&&(y||S)&&!d});T.exports={CONSTRUCTOR:u,REJECTION_EVENT:d,SUBCLASSING:m}},67512:function(T,r,n){"use strict";var e=n(74685);T.exports=e.Promise},66628:function(T,r,n){"use strict";var e=n(30365),a=n(77568),t=n(81837);T.exports=function(o,f){if(e(o),a(f)&&f.constructor===o)return f;var b=t.f(o),y=b.resolve;return y(f),b.promise}},48199:function(T,r,n){"use strict";var e=n(67512),a=n(92490),t=n(74854).CONSTRUCTOR;T.exports=t||!a(function(o){e.all(o).then(void 0,function(){})})},34550:function(T,r,n){"use strict";var e=n(74595).f;T.exports=function(a,t,o){o in a||e(a,o,{configurable:!0,get:function(){function f(){return t[o]}return f}(),set:function(){function f(b){t[o]=b}return f}()})}},9547:function(T){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(){function n(e){var a={item:e,next:null},t=this.tail;t?t.next=a:this.head=a,this.tail=a}return n}(),get:function(){function n(){var e=this.head;if(e){var a=this.head=e.next;return a===null&&(this.tail=null),e.item}}return n}()},T.exports=r},28340:function(T,r,n){"use strict";var e=n(91495),a=n(30365),t=n(55747),o=n(7462),f=n(14489),b=TypeError;T.exports=function(y,S){var k=y.exec;if(t(k)){var h=e(k,y,S);return h!==null&&a(h),h}if(o(y)==="RegExp")return e(f,y,S);throw new b("RegExp#exec called on incompatible receiver")}},14489:function(T,r,n){"use strict";var e=n(91495),a=n(67250),t=n(12605),o=n(70901),f=n(62115),b=n(16639),y=n(80674),S=n(5419).get,k=n(39173),h=n(35688),c=b("native-string-replace",String.prototype.replace),i=RegExp.prototype.exec,m=i,d=a("".charAt),u=a("".indexOf),s=a("".replace),l=a("".slice),v=function(){var g=/a/,V=/b*/g;return e(i,g,"a"),e(i,V,"a"),g.lastIndex!==0||V.lastIndex!==0}(),N=f.BROKEN_CARET,C=/()??/.exec("")[1]!==void 0,p=v||C||N||k||h;p&&(m=function(){function g(V){var B=this,I=S(B),L=t(V),w=I.raw,A,x,E,P,j,M,R;if(w)return w.lastIndex=B.lastIndex,A=e(m,w,L),B.lastIndex=w.lastIndex,A;var D=I.groups,W=N&&B.sticky,_=e(o,B),U=B.source,K=0,G=L;if(W&&(_=s(_,"y",""),u(_,"g")===-1&&(_+="g"),G=l(L,B.lastIndex),B.lastIndex>0&&(!B.multiline||B.multiline&&d(L,B.lastIndex-1)!=="\n")&&(U="(?: "+U+")",G=" "+G,K++),x=new RegExp("^(?:"+U+")",_)),C&&(x=new RegExp("^"+U+"$(?!\\s)",_)),v&&(E=B.lastIndex),P=e(i,W?x:B,G),W?P?(P.input=l(P.input,K),P[0]=l(P[0],K),P.index=B.lastIndex,B.lastIndex+=P[0].length):B.lastIndex=0:v&&P&&(B.lastIndex=B.global?P.index+P[0].length:E),C&&P&&P.length>1&&e(c,P[0],x,function(){for(j=1;jb)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$c")!=="bc"})},16952:function(T,r,n){"use strict";var e=n(42871),a=TypeError;T.exports=function(t){if(e(t))throw new a("Can't call method on "+t);return t}},44915:function(T,r,n){"use strict";var e=n(74685),a=n(58310),t=Object.getOwnPropertyDescriptor;T.exports=function(o){if(!a)return e[o];var f=t(e,o);return f&&f.value}},5700:function(T){"use strict";T.exports=Object.is||function(){function r(n,e){return n===e?n!==0||1/n===1/e:n!==n&&e!==e}return r}()},78362:function(T,r,n){"use strict";var e=n(74685),a=n(61267),t=n(55747),o=n(49197),f=n(63318),b=n(54602),y=n(24986),S=e.Function,k=/MSIE .\./.test(f)||o&&function(){var h=e.Bun.version.split(".");return h.length<3||h[0]==="0"&&(h[1]<3||h[1]==="3"&&h[2]==="0")}();T.exports=function(h,c){var i=c?2:1;return k?function(m,d){var u=y(arguments.length,1)>i,s=t(m)?m:S(m),l=u?b(arguments,i):[],v=u?function(){a(s,this,l)}:s;return c?h(v,d):h(v)}:h}},58491:function(T,r,n){"use strict";var e=n(4009),a=n(73936),t=n(24697),o=n(58310),f=t("species");T.exports=function(b){var y=e(b);o&&y&&!y[f]&&a(y,f,{configurable:!0,get:function(){function S(){return this}return S}()})}},84925:function(T,r,n){"use strict";var e=n(74595).f,a=n(45299),t=n(24697),o=t("toStringTag");T.exports=function(f,b,y){f&&!y&&(f=f.prototype),f&&!a(f,o)&&e(f,o,{configurable:!0,value:b})}},19417:function(T,r,n){"use strict";var e=n(16639),a=n(16738),t=e("keys");T.exports=function(o){return t[o]||(t[o]=a(o))}},40095:function(T,r,n){"use strict";var e=n(4493),a=n(74685),t=n(18231),o="__core-js_shared__",f=T.exports=a[o]||t(o,{});(f.versions||(f.versions=[])).push({version:"3.37.1",mode:e?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},16639:function(T,r,n){"use strict";var e=n(40095);T.exports=function(a,t){return e[a]||(e[a]=t||{})}},28987:function(T,r,n){"use strict";var e=n(30365),a=n(32606),t=n(42871),o=n(24697),f=o("species");T.exports=function(b,y){var S=e(b).constructor,k;return S===void 0||t(k=e(S)[f])?y:a(k)}},88539:function(T,r,n){"use strict";var e=n(40033);T.exports=function(a){return e(function(){var t=""[a]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},50233:function(T,r,n){"use strict";var e=n(67250),a=n(61365),t=n(12605),o=n(16952),f=e("".charAt),b=e("".charCodeAt),y=e("".slice),S=function(h){return function(c,i){var m=t(o(c)),d=a(i),u=m.length,s,l;return d<0||d>=u?h?"":void 0:(s=b(m,d),s<55296||s>56319||d+1===u||(l=b(m,d+1))<56320||l>57343?h?f(m,d):s:h?y(m,d,d+2):(s-55296<<10)+(l-56320)+65536)}};T.exports={codeAt:S(!1),charAt:S(!0)}},34125:function(T,r,n){"use strict";var e=n(63318);T.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},24051:function(T,r,n){"use strict";var e=n(67250),a=n(10188),t=n(12605),o=n(62443),f=n(16952),b=e(o),y=e("".slice),S=Math.ceil,k=function(c){return function(i,m,d){var u=t(f(i)),s=a(m),l=u.length,v=d===void 0?" ":t(d),N,C;return s<=l||v===""?u:(N=s-l,C=b(v,S(N/v.length)),C.length>N&&(C=y(C,0,N)),c?u+C:C+u)}};T.exports={start:k(!1),end:k(!0)}},62443:function(T,r,n){"use strict";var e=n(61365),a=n(12605),t=n(16952),o=RangeError;T.exports=function(){function f(b){var y=a(t(this)),S="",k=e(b);if(k<0||k===1/0)throw new o("Wrong number of repetitions");for(;k>0;(k>>>=1)&&(y+=y))k&1&&(S+=y);return S}return f}()},43476:function(T,r,n){"use strict";var e=n(92648).end,a=n(90012);T.exports=a("trimEnd")?function(){function t(){return e(this)}return t}():"".trimEnd},90012:function(T,r,n){"use strict";var e=n(70520).PROPER,a=n(40033),t=n(4198),o="\u200B\x85\u180E";T.exports=function(f){return a(function(){return!!t[f]()||o[f]()!==o||e&&t[f].name!==f})}},43885:function(T,r,n){"use strict";var e=n(92648).start,a=n(90012);T.exports=a("trimStart")?function(){function t(){return e(this)}return t}():"".trimStart},92648:function(T,r,n){"use strict";var e=n(67250),a=n(16952),t=n(12605),o=n(4198),f=e("".replace),b=RegExp("^["+o+"]+"),y=RegExp("(^|[^"+o+"])["+o+"]+$"),S=function(h){return function(c){var i=t(a(c));return h&1&&(i=f(i,b,"")),h&2&&(i=f(i,y,"$1")),i}};T.exports={start:S(1),end:S(2),trim:S(3)}},52357:function(T,r,n){"use strict";var e=n(5026),a=n(40033),t=n(74685),o=t.String;T.exports=!!Object.getOwnPropertySymbols&&!a(function(){var f=Symbol("symbol detection");return!o(f)||!(Object(f)instanceof Symbol)||!Symbol.sham&&e&&e<41})},52360:function(T,r,n){"use strict";var e=n(91495),a=n(4009),t=n(24697),o=n(55938);T.exports=function(){var f=a("Symbol"),b=f&&f.prototype,y=b&&b.valueOf,S=t("toPrimitive");b&&!b[S]&&o(b,S,function(k){return e(y,this)},{arity:1})}},66570:function(T,r,n){"use strict";var e=n(52357);T.exports=e&&!!Symbol.for&&!!Symbol.keyFor},60375:function(T,r,n){"use strict";var e=n(74685),a=n(61267),t=n(75754),o=n(55747),f=n(45299),b=n(40033),y=n(5315),S=n(54602),k=n(12689),h=n(24986),c=n(83433),i=n(81702),m=e.setImmediate,d=e.clearImmediate,u=e.process,s=e.Dispatch,l=e.Function,v=e.MessageChannel,N=e.String,C=0,p={},g="onreadystatechange",V,B,I,L;b(function(){V=e.location});var w=function(j){if(f(p,j)){var M=p[j];delete p[j],M()}},A=function(j){return function(){w(j)}},x=function(j){w(j.data)},E=function(j){e.postMessage(N(j),V.protocol+"//"+V.host)};(!m||!d)&&(m=function(){function P(j){h(arguments.length,1);var M=o(j)?j:l(j),R=S(arguments,1);return p[++C]=function(){a(M,void 0,R)},B(C),C}return P}(),d=function(){function P(j){delete p[j]}return P}(),i?B=function(j){u.nextTick(A(j))}:s&&s.now?B=function(j){s.now(A(j))}:v&&!c?(I=new v,L=I.port2,I.port1.onmessage=x,B=t(L.postMessage,L)):e.addEventListener&&o(e.postMessage)&&!e.importScripts&&V&&V.protocol!=="file:"&&!b(E)?(B=E,e.addEventListener("message",x,!1)):g in k("script")?B=function(j){y.appendChild(k("script"))[g]=function(){y.removeChild(this),w(j)}}:B=function(j){setTimeout(A(j),0)}),T.exports={set:m,clear:d}},46438:function(T,r,n){"use strict";var e=n(67250);T.exports=e(1 .valueOf)},13912:function(T,r,n){"use strict";var e=n(61365),a=Math.max,t=Math.min;T.exports=function(o,f){var b=e(o);return b<0?a(b+f,0):t(b,f)}},61484:function(T,r,n){"use strict";var e=n(24843),a=TypeError;T.exports=function(t){var o=e(t,"number");if(typeof o=="number")throw new a("Can't convert number to bigint");return BigInt(o)}},43806:function(T,r,n){"use strict";var e=n(61365),a=n(10188),t=RangeError;T.exports=function(o){if(o===void 0)return 0;var f=e(o),b=a(f);if(f!==b)throw new t("Wrong length or index");return b}},57591:function(T,r,n){"use strict";var e=n(37457),a=n(16952);T.exports=function(t){return e(a(t))}},61365:function(T,r,n){"use strict";var e=n(21119);T.exports=function(a){var t=+a;return t!==t||t===0?0:e(t)}},10188:function(T,r,n){"use strict";var e=n(61365),a=Math.min;T.exports=function(t){var o=e(t);return o>0?a(o,9007199254740991):0}},46771:function(T,r,n){"use strict";var e=n(16952),a=Object;T.exports=function(t){return a(e(t))}},56043:function(T,r,n){"use strict";var e=n(16140),a=RangeError;T.exports=function(t,o){var f=e(t);if(f%o)throw new a("Wrong offset");return f}},16140:function(T,r,n){"use strict";var e=n(61365),a=RangeError;T.exports=function(t){var o=e(t);if(o<0)throw new a("The argument can't be less than 0");return o}},24843:function(T,r,n){"use strict";var e=n(91495),a=n(77568),t=n(71399),o=n(78060),f=n(13396),b=n(24697),y=TypeError,S=b("toPrimitive");T.exports=function(k,h){if(!a(k)||t(k))return k;var c=o(k,S),i;if(c){if(h===void 0&&(h="default"),i=e(c,k,h),!a(i)||t(i))return i;throw new y("Can't convert object to primitive value")}return h===void 0&&(h="number"),f(k,h)}},767:function(T,r,n){"use strict";var e=n(24843),a=n(71399);T.exports=function(t){var o=e(t,"string");return a(o)?o:o+""}},2650:function(T,r,n){"use strict";var e=n(24697),a=e("toStringTag"),t={};t[a]="z",T.exports=String(t)==="[object z]"},12605:function(T,r,n){"use strict";var e=n(2281),a=String;T.exports=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(t)}},15409:function(T){"use strict";var r=Math.round;T.exports=function(n){var e=r(n);return e<0?0:e>255?255:e&255}},89393:function(T){"use strict";var r=String;T.exports=function(n){try{return r(n)}catch(e){return"Object"}}},80185:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(91495),o=n(58310),f=n(86563),b=n(4246),y=n(37336),S=n(60077),k=n(87458),h=n(37909),c=n(5841),i=n(10188),m=n(43806),d=n(56043),u=n(15409),s=n(767),l=n(45299),v=n(2281),N=n(77568),C=n(71399),p=n(80674),g=n(21287),V=n(76649),B=n(37310).f,I=n(3805),L=n(22603).forEach,w=n(58491),A=n(73936),x=n(74595),E=n(27193),P=n(78008),j=n(5419),M=n(5781),R=j.get,D=j.set,W=j.enforce,_=x.f,U=E.f,K=a.RangeError,G=y.ArrayBuffer,$=G.prototype,Q=y.DataView,J=b.NATIVE_ARRAY_BUFFER_VIEWS,ie=b.TYPED_ARRAY_TAG,ne=b.TypedArray,se=b.TypedArrayPrototype,Ce=b.isTypedArray,Se="BYTES_PER_ELEMENT",ye="Wrong length",he=function(te,be){A(te,be,{configurable:!0,get:function(){function pe(){return R(this)[be]}return pe}()})},oe=function(te){var be;return g($,te)||(be=v(te))==="ArrayBuffer"||be==="SharedArrayBuffer"},ce=function(te,be){return Ce(te)&&!C(be)&&be in te&&c(+be)&&be>=0},ee=function(){function me(te,be){return be=s(be),ce(te,be)?k(2,te[be]):U(te,be)}return me}(),fe=function(){function me(te,be,pe){return be=s(be),ce(te,be)&&N(pe)&&l(pe,"value")&&!l(pe,"get")&&!l(pe,"set")&&!pe.configurable&&(!l(pe,"writable")||pe.writable)&&(!l(pe,"enumerable")||pe.enumerable)?(te[be]=pe.value,te):_(te,be,pe)}return me}();o?(J||(E.f=ee,x.f=fe,he(se,"buffer"),he(se,"byteOffset"),he(se,"byteLength"),he(se,"length")),e({target:"Object",stat:!0,forced:!J},{getOwnPropertyDescriptor:ee,defineProperty:fe}),T.exports=function(me,te,be){var pe=me.match(/\d+/)[0]/8,ve=me+(be?"Clamped":"")+"Array",Be="get"+me,ge="set"+me,Le=a[ve],we=Le,xe=we&&we.prototype,Re={},ze=function(de,ke){var Me=R(de);return Me.view[Be](ke*pe+Me.byteOffset,!0)},Ve=function(de,ke,Me){var je=R(de);je.view[ge](ke*pe+je.byteOffset,be?u(Me):Me,!0)},re=function(de,ke){_(de,ke,{get:function(){function Me(){return ze(this,ke)}return Me}(),set:function(){function Me(je){return Ve(this,ke,je)}return Me}(),enumerable:!0})};J?f&&(we=te(function(Ne,de,ke,Me){return S(Ne,xe),M(function(){return N(de)?oe(de)?Me!==void 0?new Le(de,d(ke,pe),Me):ke!==void 0?new Le(de,d(ke,pe)):new Le(de):Ce(de)?P(we,de):t(I,we,de):new Le(m(de))}(),Ne,we)}),V&&V(we,ne),L(B(Le),function(Ne){Ne in we||h(we,Ne,Le[Ne])}),we.prototype=xe):(we=te(function(Ne,de,ke,Me){S(Ne,xe);var je=0,Fe=0,He,_e,Ue;if(!N(de))Ue=m(de),_e=Ue*pe,He=new G(_e);else if(oe(de)){He=de,Fe=d(ke,pe);var Xe=de.byteLength;if(Me===void 0){if(Xe%pe)throw new K(ye);if(_e=Xe-Fe,_e<0)throw new K(ye)}else if(_e=i(Me)*pe,_e+Fe>Xe)throw new K(ye);Ue=_e/pe}else return Ce(de)?P(we,de):t(I,we,de);for(D(Ne,{buffer:He,byteOffset:Fe,byteLength:_e,length:Ue,view:new Q(He)});je1?arguments[1]:void 0,v=l!==void 0,N=y(u),C,p,g,V,B,I,L,w;if(N&&!S(N))for(L=b(u,N),w=L.next,u=[];!(I=a(w,L)).done;)u.push(I.value);for(v&&s>2&&(l=e(l,arguments[2])),p=f(u),g=new(h(d))(p),V=k(g),C=0;p>C;C++)B=v?l(u[C],C):u[C],g[C]=V?c(B):+B;return g}return i}()},31082:function(T,r,n){"use strict";var e=n(4246),a=n(28987),t=e.aTypedArrayConstructor,o=e.getTypedArrayConstructor;T.exports=function(f){return t(a(f,o(f)))}},16738:function(T,r,n){"use strict";var e=n(67250),a=0,t=Math.random(),o=e(1 .toString);T.exports=function(f){return"Symbol("+(f===void 0?"":f)+")_"+o(++a+t,36)}},1062:function(T,r,n){"use strict";var e=n(52357);T.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},80944:function(T,r,n){"use strict";var e=n(58310),a=n(40033);T.exports=e&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},24986:function(T){"use strict";var r=TypeError;T.exports=function(n,e){if(n=51||!a(function(){var l=[];return l[m]=!1,l.concat()[0]!==l}),u=function(v){if(!o(v))return!1;var N=v[m];return N!==void 0?!!N:t(v)},s=!d||!h("concat");e({target:"Array",proto:!0,arity:1,forced:s},{concat:function(){function l(v){var N=f(this),C=k(N,0),p=0,g,V,B,I,L;for(g=-1,B=arguments.length;g1?arguments[1]:void 0)}return f}()})},68933:function(T,r,n){"use strict";var e=n(63964),a=n(88471),t=n(80575);e({target:"Array",proto:!0},{fill:a}),t("fill")},47830:function(T,r,n){"use strict";var e=n(63964),a=n(22603).filter,t=n(44091),o=t("filter");e({target:"Array",proto:!0,forced:!o},{filter:function(){function f(b){return a(this,b,arguments.length>1?arguments[1]:void 0)}return f}()})},64094:function(T,r,n){"use strict";var e=n(63964),a=n(22603).findIndex,t=n(80575),o="findIndex",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{findIndex:function(){function b(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return b}()}),t(o)},13455:function(T,r,n){"use strict";var e=n(63964),a=n(22603).find,t=n(80575),o="find",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{find:function(){function b(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return b}()}),t(o)},32384:function(T,r,n){"use strict";var e=n(63964),a=n(65561),t=n(10320),o=n(46771),f=n(24760),b=n(57823);e({target:"Array",proto:!0},{flatMap:function(){function y(S){var k=o(this),h=f(k),c;return t(S),c=b(k,0),c.length=a(c,k,k,h,0,1,S,arguments.length>1?arguments[1]:void 0),c}return y}()})},61915:function(T,r,n){"use strict";var e=n(63964),a=n(65561),t=n(46771),o=n(24760),f=n(61365),b=n(57823);e({target:"Array",proto:!0},{flat:function(){function y(){var S=arguments.length?arguments[0]:void 0,k=t(this),h=o(k),c=b(k,0);return c.length=a(c,k,k,h,0,S===void 0?1:f(S)),c}return y}()})},25579:function(T,r,n){"use strict";var e=n(63964),a=n(35601);e({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},63532:function(T,r,n){"use strict";var e=n(63964),a=n(73174),t=n(92490),o=!t(function(f){Array.from(f)});e({target:"Array",stat:!0,forced:o},{from:a})},33425:function(T,r,n){"use strict";var e=n(63964),a=n(14211).includes,t=n(40033),o=n(80575),f=t(function(){return!Array(1).includes()});e({target:"Array",proto:!0,forced:f},{includes:function(){function b(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return b}()}),o("includes")},43894:function(T,r,n){"use strict";var e=n(63964),a=n(71138),t=n(14211).indexOf,o=n(55528),f=a([].indexOf),b=!!f&&1/f([1],1,-0)<0,y=b||!o("indexOf");e({target:"Array",proto:!0,forced:y},{indexOf:function(){function S(k){var h=arguments.length>1?arguments[1]:void 0;return b?f(this,k,h)||0:t(this,k,h)}return S}()})},99636:function(T,r,n){"use strict";var e=n(63964),a=n(37386);e({target:"Array",stat:!0},{isArray:a})},34570:function(T,r,n){"use strict";var e=n(57591),a=n(80575),t=n(83967),o=n(5419),f=n(74595).f,b=n(65574),y=n(5959),S=n(4493),k=n(58310),h="Array Iterator",c=o.set,i=o.getterFor(h);T.exports=b(Array,"Array",function(d,u){c(this,{type:h,target:e(d),index:0,kind:u})},function(){var d=i(this),u=d.target,s=d.index++;if(!u||s>=u.length)return d.target=void 0,y(void 0,!0);switch(d.kind){case"keys":return y(s,!1);case"values":return y(u[s],!1)}return y([s,u[s]],!1)},"values");var m=t.Arguments=t.Array;if(a("keys"),a("values"),a("entries"),!S&&k&&m.name!=="values")try{f(m,"name",{value:"values"})}catch(d){}},94432:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(37457),o=n(57591),f=n(55528),b=a([].join),y=t!==Object,S=y||!f("join",",");e({target:"Array",proto:!0,forced:S},{join:function(){function k(h){return b(o(this),h===void 0?",":h)}return k}()})},24683:function(T,r,n){"use strict";var e=n(63964),a=n(1325);e({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},69984:function(T,r,n){"use strict";var e=n(63964),a=n(22603).map,t=n(44091),o=t("map");e({target:"Array",proto:!0,forced:!o},{map:function(){function f(b){return a(this,b,arguments.length>1?arguments[1]:void 0)}return f}()})},32089:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(1031),o=n(60102),f=Array,b=a(function(){function y(){}return!(f.of.call(y)instanceof y)});e({target:"Array",stat:!0,forced:b},{of:function(){function y(){for(var S=0,k=arguments.length,h=new(t(this)?this:f)(k);k>S;)o(h,S,arguments[S++]);return h.length=k,h}return y}()})},29645:function(T,r,n){"use strict";var e=n(63964),a=n(56844).right,t=n(55528),o=n(5026),f=n(81702),b=!f&&o>79&&o<83,y=b||!t("reduceRight");e({target:"Array",proto:!0,forced:y},{reduceRight:function(){function S(k){return a(this,k,arguments.length,arguments.length>1?arguments[1]:void 0)}return S}()})},60206:function(T,r,n){"use strict";var e=n(63964),a=n(56844).left,t=n(55528),o=n(5026),f=n(81702),b=!f&&o>79&&o<83,y=b||!t("reduce");e({target:"Array",proto:!0,forced:y},{reduce:function(){function S(k){var h=arguments.length;return a(this,k,h,h>1?arguments[1]:void 0)}return S}()})},4788:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(37386),o=a([].reverse),f=[1,2];e({target:"Array",proto:!0,forced:String(f)===String(f.reverse())},{reverse:function(){function b(){return t(this)&&(this.length=this.length),o(this)}return b}()})},58672:function(T,r,n){"use strict";var e=n(63964),a=n(37386),t=n(1031),o=n(77568),f=n(13912),b=n(24760),y=n(57591),S=n(60102),k=n(24697),h=n(44091),c=n(54602),i=h("slice"),m=k("species"),d=Array,u=Math.max;e({target:"Array",proto:!0,forced:!i},{slice:function(){function s(l,v){var N=y(this),C=b(N),p=f(l,C),g=f(v===void 0?C:v,C),V,B,I;if(a(N)&&(V=N.constructor,t(V)&&(V===d||a(V.prototype))?V=void 0:o(V)&&(V=V[m],V===null&&(V=void 0)),V===d||V===void 0))return c(N,p,g);for(B=new(V===void 0?d:V)(u(g-p,0)),I=0;p1?arguments[1]:void 0)}return f}()})},48968:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(10320),o=n(46771),f=n(24760),b=n(95108),y=n(12605),S=n(40033),k=n(90274),h=n(55528),c=n(652),i=n(19228),m=n(5026),d=n(9342),u=[],s=a(u.sort),l=a(u.push),v=S(function(){u.sort(void 0)}),N=S(function(){u.sort(null)}),C=h("sort"),p=!S(function(){if(m)return m<70;if(!(c&&c>3)){if(i)return!0;if(d)return d<603;var B="",I,L,w,A;for(I=65;I<76;I++){switch(L=String.fromCharCode(I),I){case 66:case 69:case 70:case 72:w=3;break;case 68:case 71:w=4;break;default:w=2}for(A=0;A<47;A++)u.push({k:L+A,v:w})}for(u.sort(function(x,E){return E.v-x.v}),A=0;Ay(w)?1:-1}};e({target:"Array",proto:!0,forced:g},{sort:function(){function B(I){I!==void 0&&t(I);var L=o(this);if(p)return I===void 0?s(L):s(L,I);var w=[],A=f(L),x,E;for(E=0;EN-V+g;I--)h(v,I-1)}else if(g>V)for(I=N-V;I>C;I--)L=I+V-1,w=I+g-1,L in v?v[w]=v[L]:h(v,w);for(I=0;I9490626562425156e-8?o(h)+b:a(h-1+f(h-1)*f(h+1))}return S}()})},59660:function(T,r,n){"use strict";var e=n(63964),a=Math.asinh,t=Math.log,o=Math.sqrt;function f(y){var S=+y;return!isFinite(S)||S===0?S:S<0?-f(-S):t(S+o(S*S+1))}var b=!(a&&1/a(0)>0);e({target:"Math",stat:!0,forced:b},{asinh:f})},15383:function(T,r,n){"use strict";var e=n(63964),a=Math.atanh,t=Math.log,o=!(a&&1/a(-0)<0);e({target:"Math",stat:!0,forced:o},{atanh:function(){function f(b){var y=+b;return y===0?y:t((1+y)/(1-y))/2}return f}()})},92866:function(T,r,n){"use strict";var e=n(63964),a=n(22172),t=Math.abs,o=Math.pow;e({target:"Math",stat:!0},{cbrt:function(){function f(b){var y=+b;return a(y)*o(t(y),.3333333333333333)}return f}()})},86107:function(T,r,n){"use strict";var e=n(63964),a=Math.floor,t=Math.log,o=Math.LOG2E;e({target:"Math",stat:!0},{clz32:function(){function f(b){var y=b>>>0;return y?31-a(t(y+.5)*o):32}return f}()})},29248:function(T,r,n){"use strict";var e=n(63964),a=n(82040),t=Math.cosh,o=Math.abs,f=Math.E,b=!t||t(710)===1/0;e({target:"Math",stat:!0,forced:b},{cosh:function(){function y(S){var k=a(o(S)-1)+1;return(k+1/(k*f*f))*(f/2)}return y}()})},52540:function(T,r,n){"use strict";var e=n(63964),a=n(82040);e({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},79007:function(T,r,n){"use strict";var e=n(63964),a=n(95867);e({target:"Math",stat:!0},{fround:a})},77199:function(T,r,n){"use strict";var e=n(63964),a=Math.hypot,t=Math.abs,o=Math.sqrt,f=!!a&&a(1/0,NaN)!==1/0;e({target:"Math",stat:!0,arity:2,forced:f},{hypot:function(){function b(y,S){for(var k=0,h=0,c=arguments.length,i=0,m,d;h0?(d=m/i,k+=d*d):k+=m;return i===1/0?1/0:i*o(k)}return b}()})},6522:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=Math.imul,o=a(function(){return t(4294967295,5)!==-5||t.length!==2});e({target:"Math",stat:!0,forced:o},{imul:function(){function f(b,y){var S=65535,k=+b,h=+y,c=S&k,i=S&h;return 0|c*i+((S&k>>>16)*i+c*(S&h>>>16)<<16>>>0)}return f}()})},95542:function(T,r,n){"use strict";var e=n(63964),a=n(75002);e({target:"Math",stat:!0},{log10:a})},2966:function(T,r,n){"use strict";var e=n(63964),a=n(90874);e({target:"Math",stat:!0},{log1p:a})},20997:function(T,r,n){"use strict";var e=n(63964),a=Math.log,t=Math.LN2;e({target:"Math",stat:!0},{log2:function(){function o(f){return a(f)/t}return o}()})},57400:function(T,r,n){"use strict";var e=n(63964),a=n(22172);e({target:"Math",stat:!0},{sign:a})},45571:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(82040),o=Math.abs,f=Math.exp,b=Math.E,y=a(function(){return Math.sinh(-2e-17)!==-2e-17});e({target:"Math",stat:!0,forced:y},{sinh:function(){function S(k){var h=+k;return o(h)<1?(t(h)-t(-h))/2:(f(h-1)-f(-h-1))*(b/2)}return S}()})},54800:function(T,r,n){"use strict";var e=n(63964),a=n(82040),t=Math.exp;e({target:"Math",stat:!0},{tanh:function(){function o(f){var b=+f,y=a(b),S=a(-b);return y===1/0?1:S===1/0?-1:(y-S)/(t(b)+t(-b))}return o}()})},15709:function(T,r,n){"use strict";var e=n(84925);e(Math,"Math",!0)},76059:function(T,r,n){"use strict";var e=n(63964),a=n(21119);e({target:"Math",stat:!0},{trunc:a})},96614:function(T,r,n){"use strict";var e=n(63964),a=n(4493),t=n(58310),o=n(74685),f=n(61765),b=n(67250),y=n(41314),S=n(45299),k=n(5781),h=n(21287),c=n(71399),i=n(24843),m=n(40033),d=n(37310).f,u=n(27193).f,s=n(74595).f,l=n(46438),v=n(92648).trim,N="Number",C=o[N],p=f[N],g=C.prototype,V=o.TypeError,B=b("".slice),I=b("".charCodeAt),L=function(M){var R=i(M,"number");return typeof R=="bigint"?R:w(R)},w=function(M){var R=i(M,"number"),D,W,_,U,K,G,$,Q;if(c(R))throw new V("Cannot convert a Symbol value to a number");if(typeof R=="string"&&R.length>2){if(R=v(R),D=I(R,0),D===43||D===45){if(W=I(R,2),W===88||W===120)return NaN}else if(D===48){switch(I(R,1)){case 66:case 98:_=2,U=49;break;case 79:case 111:_=8,U=55;break;default:return+R}for(K=B(R,2),G=K.length,$=0;$U)return NaN;return parseInt(K,_)}}return+R},A=y(N,!C(" 0o1")||!C("0b1")||C("+0x1")),x=function(M){return h(g,M)&&m(function(){l(M)})},E=function(){function j(M){var R=arguments.length<1?0:C(L(M));return x(this)?k(Object(R),this,E):R}return j}();E.prototype=g,A&&!a&&(g.constructor=E),e({global:!0,constructor:!0,wrap:!0,forced:A},{Number:E});var P=function(M,R){for(var D=t?d(R):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),W=0,_;D.length>W;W++)S(R,_=D[W])&&!S(M,_)&&s(M,_,u(R,_))};a&&p&&P(f[N],p),(A||a)&&P(f[N],C)},324:function(T,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},90426:function(T,r,n){"use strict";var e=n(63964),a=n(3294);e({target:"Number",stat:!0},{isFinite:a})},95443:function(T,r,n){"use strict";var e=n(63964),a=n(5841);e({target:"Number",stat:!0},{isInteger:a})},87968:function(T,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0},{isNaN:function(){function a(t){return t!==t}return a}()})},55007:function(T,r,n){"use strict";var e=n(63964),a=n(5841),t=Math.abs;e({target:"Number",stat:!0},{isSafeInteger:function(){function o(f){return a(f)&&t(f)<=9007199254740991}return o}()})},55323:function(T,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},13521:function(T,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},5006:function(T,r,n){"use strict";var e=n(63964),a=n(28506);e({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},99009:function(T,r,n){"use strict";var e=n(63964),a=n(13693);e({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},85770:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(61365),o=n(46438),f=n(62443),b=n(40033),y=RangeError,S=String,k=Math.floor,h=a(f),c=a("".slice),i=a(1 .toFixed),m=function N(C,p,g){return p===0?g:p%2===1?N(C,p-1,g*C):N(C*C,p/2,g)},d=function(C){for(var p=0,g=C;g>=4096;)p+=12,g/=4096;for(;g>=2;)p+=1,g/=2;return p},u=function(C,p,g){for(var V=-1,B=g;++V<6;)B+=p*C[V],C[V]=B%1e7,B=k(B/1e7)},s=function(C,p){for(var g=6,V=0;--g>=0;)V+=C[g],C[g]=k(V/p),V=V%p*1e7},l=function(C){for(var p=6,g="";--p>=0;)if(g!==""||p===0||C[p]!==0){var V=S(C[p]);g=g===""?V:g+h("0",7-V.length)+V}return g},v=b(function(){return i(8e-5,3)!=="0.000"||i(.9,0)!=="1"||i(1.255,2)!=="1.25"||i(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!b(function(){i({})});e({target:"Number",proto:!0,forced:v},{toFixed:function(){function N(C){var p=o(this),g=t(C),V=[0,0,0,0,0,0],B="",I="0",L,w,A,x;if(g<0||g>20)throw new y("Incorrect fraction digits");if(p!==p)return"NaN";if(p<=-1e21||p>=1e21)return S(p);if(p<0&&(B="-",p=-p),p>1e-21)if(L=d(p*m(2,69,1))-69,w=L<0?p*m(2,-L,1):p/m(2,L,1),w*=4503599627370496,L=52-L,L>0){for(u(V,0,w),A=g;A>=7;)u(V,1e7,0),A-=7;for(u(V,m(10,A,1),0),A=L-1;A>=23;)s(V,8388608),A-=23;s(V,1<0?(x=I.length,I=B+(x<=g?"0."+h("0",g-x)+I:c(I,0,x-g)+"."+c(I,x-g))):I=B+I,I}return N}()})},23532:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(40033),o=n(46438),f=a(1 .toPrecision),b=t(function(){return f(1,void 0)!=="1"})||!t(function(){f({})});e({target:"Number",proto:!0,forced:b},{toPrecision:function(){function y(S){return S===void 0?f(o(this)):f(o(this),S)}return y}()})},87119:function(T,r,n){"use strict";var e=n(63964),a=n(41143);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},78618:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(80674);e({target:"Object",stat:!0,sham:!a},{create:t})},27129:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(10320),f=n(46771),b=n(74595);a&&e({target:"Object",proto:!0,forced:t},{__defineGetter__:function(){function y(S,k){b.f(f(this),S,{get:o(k),enumerable:!0,configurable:!0})}return y}()})},31943:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(24239).f;e({target:"Object",stat:!0,forced:Object.defineProperties!==t,sham:!a},{defineProperties:t})},3579:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(74595).f;e({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!a},{defineProperty:t})},97397:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(10320),f=n(46771),b=n(74595);a&&e({target:"Object",proto:!0,forced:t},{__defineSetter__:function(){function y(S,k){b.f(f(this),S,{set:o(k),enumerable:!0,configurable:!0})}return y}()})},85028:function(T,r,n){"use strict";var e=n(63964),a=n(70915).entries;e({target:"Object",stat:!0},{entries:function(){function t(o){return a(o)}return t}()})},8225:function(T,r,n){"use strict";var e=n(63964),a=n(50730),t=n(40033),o=n(77568),f=n(81969).onFreeze,b=Object.freeze,y=t(function(){b(1)});e({target:"Object",stat:!0,forced:y,sham:!a},{freeze:function(){function S(k){return b&&o(k)?b(f(k)):k}return S}()})},43331:function(T,r,n){"use strict";var e=n(63964),a=n(49450),t=n(60102);e({target:"Object",stat:!0},{fromEntries:function(){function o(f){var b={};return a(f,function(y,S){t(b,y,S)},{AS_ENTRIES:!0}),b}return o}()})},62289:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(57591),o=n(27193).f,f=n(58310),b=!f||a(function(){o(1)});e({target:"Object",stat:!0,forced:b,sham:!f},{getOwnPropertyDescriptor:function(){function y(S,k){return o(t(S),k)}return y}()})},56196:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(97921),o=n(57591),f=n(27193),b=n(60102);e({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(){function y(S){for(var k=o(S),h=f.f,c=t(k),i={},m=0,d,u;c.length>m;)u=h(k,d=c[m++]),u!==void 0&&b(i,d,u);return i}return y}()})},2950:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(81644).f,o=a(function(){return!Object.getOwnPropertyNames(1)});e({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:t})},28603:function(T,r,n){"use strict";var e=n(63964),a=n(52357),t=n(40033),o=n(89235),f=n(46771),b=!a||t(function(){o.f(1)});e({target:"Object",stat:!0,forced:b},{getOwnPropertySymbols:function(){function y(S){var k=o.f;return k?k(f(S)):[]}return y}()})},44205:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(46771),o=n(36917),f=n(9225),b=a(function(){o(1)});e({target:"Object",stat:!0,forced:b,sham:!f},{getPrototypeOf:function(){function y(S){return o(t(S))}return y}()})},83186:function(T,r,n){"use strict";var e=n(63964),a=n(81834);e({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},76065:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(77568),o=n(7462),f=n(3782),b=Object.isFrozen,y=f||a(function(){b(1)});e({target:"Object",stat:!0,forced:y},{isFrozen:function(){function S(k){return!t(k)||f&&o(k)==="ArrayBuffer"?!0:b?b(k):!1}return S}()})},13411:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(77568),o=n(7462),f=n(3782),b=Object.isSealed,y=f||a(function(){b(1)});e({target:"Object",stat:!0,forced:y},{isSealed:function(){function S(k){return!t(k)||f&&o(k)==="ArrayBuffer"?!0:b?b(k):!1}return S}()})},76882:function(T,r,n){"use strict";var e=n(63964),a=n(5700);e({target:"Object",stat:!0},{is:a})},26634:function(T,r,n){"use strict";var e=n(63964),a=n(46771),t=n(18450),o=n(40033),f=o(function(){t(1)});e({target:"Object",stat:!0,forced:f},{keys:function(){function b(y){return t(a(y))}return b}()})},53118:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(46771),f=n(767),b=n(36917),y=n(27193).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(){function S(k){var h=o(this),c=f(k),i;do if(i=y(h,c))return i.get;while(h=b(h))}return S}()})},42514:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(46771),f=n(767),b=n(36917),y=n(27193).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(){function S(k){var h=o(this),c=f(k),i;do if(i=y(h,c))return i.set;while(h=b(h))}return S}()})},84353:function(T,r,n){"use strict";var e=n(63964),a=n(77568),t=n(81969).onFreeze,o=n(50730),f=n(40033),b=Object.preventExtensions,y=f(function(){b(1)});e({target:"Object",stat:!0,forced:y,sham:!o},{preventExtensions:function(){function S(k){return b&&a(k)?b(t(k)):k}return S}()})},62987:function(T,r,n){"use strict";var e=n(63964),a=n(77568),t=n(81969).onFreeze,o=n(50730),f=n(40033),b=Object.seal,y=f(function(){b(1)});e({target:"Object",stat:!0,forced:y,sham:!o},{seal:function(){function S(k){return b&&a(k)?b(t(k)):k}return S}()})},48993:function(T,r,n){"use strict";var e=n(63964),a=n(76649);e({target:"Object",stat:!0},{setPrototypeOf:a})},52917:function(T,r,n){"use strict";var e=n(2650),a=n(55938),t=n(2509);e||a(Object.prototype,"toString",t,{unsafe:!0})},4972:function(T,r,n){"use strict";var e=n(63964),a=n(70915).values;e({target:"Object",stat:!0},{values:function(){function t(o){return a(o)}return t}()})},28913:function(T,r,n){"use strict";var e=n(63964),a=n(28506);e({global:!0,forced:parseFloat!==a},{parseFloat:a})},36382:function(T,r,n){"use strict";var e=n(63964),a=n(13693);e({global:!0,forced:parseInt!==a},{parseInt:a})},48865:function(T,r,n){"use strict";var e=n(63964),a=n(91495),t=n(10320),o=n(81837),f=n(10729),b=n(49450),y=n(48199);e({target:"Promise",stat:!0,forced:y},{all:function(){function S(k){var h=this,c=o.f(h),i=c.resolve,m=c.reject,d=f(function(){var u=t(h.resolve),s=[],l=0,v=1;b(k,function(N){var C=l++,p=!1;v++,a(u,h,N).then(function(g){p||(p=!0,s[C]=g,--v||i(s))},m)}),--v||i(s)});return d.error&&m(d.value),c.promise}return S}()})},70641:function(T,r,n){"use strict";var e=n(63964),a=n(4493),t=n(74854).CONSTRUCTOR,o=n(67512),f=n(4009),b=n(55747),y=n(55938),S=o&&o.prototype;if(e({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(){function h(c){return this.then(void 0,c)}return h}()}),!a&&b(o)){var k=f("Promise").prototype.catch;S.catch!==k&&y(S,"catch",k,{unsafe:!0})}},75946:function(T,r,n){"use strict";var e=n(63964),a=n(4493),t=n(81702),o=n(74685),f=n(91495),b=n(55938),y=n(76649),S=n(84925),k=n(58491),h=n(10320),c=n(55747),i=n(77568),m=n(60077),d=n(28987),u=n(60375).set,s=n(37713),l=n(72259),v=n(10729),N=n(9547),C=n(5419),p=n(67512),g=n(74854),V=n(81837),B="Promise",I=g.CONSTRUCTOR,L=g.REJECTION_EVENT,w=g.SUBCLASSING,A=C.getterFor(B),x=C.set,E=p&&p.prototype,P=p,j=E,M=o.TypeError,R=o.document,D=o.process,W=V.f,_=W,U=!!(R&&R.createEvent&&o.dispatchEvent),K="unhandledrejection",G="rejectionhandled",$=0,Q=1,J=2,ie=1,ne=2,se,Ce,Se,ye,he=function(ge){var Le;return i(ge)&&c(Le=ge.then)?Le:!1},oe=function(ge,Le){var we=Le.value,xe=Le.state===Q,Re=xe?ge.ok:ge.fail,ze=ge.resolve,Ve=ge.reject,re=ge.domain,le,Ne,de;try{Re?(xe||(Le.rejection===ne&&te(Le),Le.rejection=ie),Re===!0?le=we:(re&&re.enter(),le=Re(we),re&&(re.exit(),de=!0)),le===ge.promise?Ve(new M("Promise-chain cycle")):(Ne=he(le))?f(Ne,le,ze,Ve):ze(le)):Ve(we)}catch(ke){re&&!de&&re.exit(),Ve(ke)}},ce=function(ge,Le){ge.notified||(ge.notified=!0,s(function(){for(var we=ge.reactions,xe;xe=we.get();)oe(xe,ge);ge.notified=!1,Le&&!ge.rejection&&fe(ge)}))},ee=function(ge,Le,we){var xe,Re;U?(xe=R.createEvent("Event"),xe.promise=Le,xe.reason=we,xe.initEvent(ge,!1,!0),o.dispatchEvent(xe)):xe={promise:Le,reason:we},!L&&(Re=o["on"+ge])?Re(xe):ge===K&&l("Unhandled promise rejection",we)},fe=function(ge){f(u,o,function(){var Le=ge.facade,we=ge.value,xe=me(ge),Re;if(xe&&(Re=v(function(){t?D.emit("unhandledRejection",we,Le):ee(K,Le,we)}),ge.rejection=t||me(ge)?ne:ie,Re.error))throw Re.value})},me=function(ge){return ge.rejection!==ie&&!ge.parent},te=function(ge){f(u,o,function(){var Le=ge.facade;t?D.emit("rejectionHandled",Le):ee(G,Le,ge.value)})},be=function(ge,Le,we){return function(xe){ge(Le,xe,we)}},pe=function(ge,Le,we){ge.done||(ge.done=!0,we&&(ge=we),ge.value=Le,ge.state=J,ce(ge,!0))},ve=function Be(ge,Le,we){if(!ge.done){ge.done=!0,we&&(ge=we);try{if(ge.facade===Le)throw new M("Promise can't be resolved itself");var xe=he(Le);xe?s(function(){var Re={done:!1};try{f(xe,Le,be(Be,Re,ge),be(pe,Re,ge))}catch(ze){pe(Re,ze,ge)}}):(ge.value=Le,ge.state=Q,ce(ge,!1))}catch(Re){pe({done:!1},Re,ge)}}};if(I&&(P=function(){function Be(ge){m(this,j),h(ge),f(se,this);var Le=A(this);try{ge(be(ve,Le),be(pe,Le))}catch(we){pe(Le,we)}}return Be}(),j=P.prototype,se=function(){function Be(ge){x(this,{type:B,done:!1,notified:!1,parent:!1,reactions:new N,rejection:!1,state:$,value:void 0})}return Be}(),se.prototype=b(j,"then",function(){function Be(ge,Le){var we=A(this),xe=W(d(this,P));return we.parent=!0,xe.ok=c(ge)?ge:!0,xe.fail=c(Le)&&Le,xe.domain=t?D.domain:void 0,we.state===$?we.reactions.add(xe):s(function(){oe(xe,we)}),xe.promise}return Be}()),Ce=function(){var ge=new se,Le=A(ge);this.promise=ge,this.resolve=be(ve,Le),this.reject=be(pe,Le)},V.f=W=function(ge){return ge===P||ge===Se?new Ce(ge):_(ge)},!a&&c(p)&&E!==Object.prototype)){ye=E.then,w||b(E,"then",function(){function Be(ge,Le){var we=this;return new P(function(xe,Re){f(ye,we,xe,Re)}).then(ge,Le)}return Be}(),{unsafe:!0});try{delete E.constructor}catch(Be){}y&&y(E,j)}e({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:P}),S(P,B,!1,!0),k(B)},69861:function(T,r,n){"use strict";var e=n(63964),a=n(4493),t=n(67512),o=n(40033),f=n(4009),b=n(55747),y=n(28987),S=n(66628),k=n(55938),h=t&&t.prototype,c=!!t&&o(function(){h.finally.call({then:function(){function m(){}return m}()},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:c},{finally:function(){function m(d){var u=y(this,f("Promise")),s=b(d);return this.then(s?function(l){return S(u,d()).then(function(){return l})}:d,s?function(l){return S(u,d()).then(function(){throw l})}:d)}return m}()}),!a&&b(t)){var i=f("Promise").prototype.finally;h.finally!==i&&k(h,"finally",i,{unsafe:!0})}},53092:function(T,r,n){"use strict";n(75946),n(48865),n(70641),n(16937),n(41719),n(59321)},16937:function(T,r,n){"use strict";var e=n(63964),a=n(91495),t=n(10320),o=n(81837),f=n(10729),b=n(49450),y=n(48199);e({target:"Promise",stat:!0,forced:y},{race:function(){function S(k){var h=this,c=o.f(h),i=c.reject,m=f(function(){var d=t(h.resolve);b(k,function(u){a(d,h,u).then(c.resolve,i)})});return m.error&&i(m.value),c.promise}return S}()})},41719:function(T,r,n){"use strict";var e=n(63964),a=n(81837),t=n(74854).CONSTRUCTOR;e({target:"Promise",stat:!0,forced:t},{reject:function(){function o(f){var b=a.f(this),y=b.reject;return y(f),b.promise}return o}()})},59321:function(T,r,n){"use strict";var e=n(63964),a=n(4009),t=n(4493),o=n(67512),f=n(74854).CONSTRUCTOR,b=n(66628),y=a("Promise"),S=t&&!f;e({target:"Promise",stat:!0,forced:t||f},{resolve:function(){function k(h){return b(S&&this===y?o:this,h)}return k}()})},29674:function(T,r,n){"use strict";var e=n(63964),a=n(61267),t=n(10320),o=n(30365),f=n(40033),b=!f(function(){Reflect.apply(function(){})});e({target:"Reflect",stat:!0,forced:b},{apply:function(){function y(S,k,h){return a(t(S),k,o(h))}return y}()})},81543:function(T,r,n){"use strict";var e=n(63964),a=n(4009),t=n(61267),o=n(66284),f=n(32606),b=n(30365),y=n(77568),S=n(80674),k=n(40033),h=a("Reflect","construct"),c=Object.prototype,i=[].push,m=k(function(){function s(){}return!(h(function(){},[],s)instanceof s)}),d=!k(function(){h(function(){})}),u=m||d;e({target:"Reflect",stat:!0,forced:u,sham:u},{construct:function(){function s(l,v){f(l),b(v);var N=arguments.length<3?l:f(arguments[2]);if(d&&!m)return h(l,v,N);if(l===N){switch(v.length){case 0:return new l;case 1:return new l(v[0]);case 2:return new l(v[0],v[1]);case 3:return new l(v[0],v[1],v[2]);case 4:return new l(v[0],v[1],v[2],v[3])}var C=[null];return t(i,C,v),new(t(o,l,C))}var p=N.prototype,g=S(y(p)?p:c),V=t(l,g,v);return y(V)?V:g}return s}()})},9373:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(30365),o=n(767),f=n(74595),b=n(40033),y=b(function(){Reflect.defineProperty(f.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:y,sham:!a},{defineProperty:function(){function S(k,h,c){t(k);var i=o(h);t(c);try{return f.f(k,i,c),!0}catch(m){return!1}}return S}()})},45093:function(T,r,n){"use strict";var e=n(63964),a=n(30365),t=n(27193).f;e({target:"Reflect",stat:!0},{deleteProperty:function(){function o(f,b){var y=t(a(f),b);return y&&!y.configurable?!1:delete f[b]}return o}()})},5815:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(30365),o=n(27193);e({target:"Reflect",stat:!0,sham:!a},{getOwnPropertyDescriptor:function(){function f(b,y){return o.f(t(b),y)}return f}()})},88527:function(T,r,n){"use strict";var e=n(63964),a=n(30365),t=n(36917),o=n(9225);e({target:"Reflect",stat:!0,sham:!o},{getPrototypeOf:function(){function f(b){return t(a(b))}return f}()})},63074:function(T,r,n){"use strict";var e=n(63964),a=n(91495),t=n(77568),o=n(30365),f=n(98373),b=n(27193),y=n(36917);function S(k,h){var c=arguments.length<3?k:arguments[2],i,m;if(o(k)===c)return k[h];if(i=b.f(k,h),i)return f(i)?i.value:i.get===void 0?void 0:a(i.get,c);if(t(m=y(k)))return S(m,h,c)}e({target:"Reflect",stat:!0},{get:S})},66390:function(T,r,n){"use strict";var e=n(63964);e({target:"Reflect",stat:!0},{has:function(){function a(t,o){return o in t}return a}()})},7784:function(T,r,n){"use strict";var e=n(63964),a=n(30365),t=n(81834);e({target:"Reflect",stat:!0},{isExtensible:function(){function o(f){return a(f),t(f)}return o}()})},50551:function(T,r,n){"use strict";var e=n(63964),a=n(97921);e({target:"Reflect",stat:!0},{ownKeys:a})},76483:function(T,r,n){"use strict";var e=n(63964),a=n(4009),t=n(30365),o=n(50730);e({target:"Reflect",stat:!0,sham:!o},{preventExtensions:function(){function f(b){t(b);try{var y=a("Object","preventExtensions");return y&&y(b),!0}catch(S){return!1}}return f}()})},63915:function(T,r,n){"use strict";var e=n(63964),a=n(30365),t=n(35908),o=n(76649);o&&e({target:"Reflect",stat:!0},{setPrototypeOf:function(){function f(b,y){a(b),t(y);try{return o(b,y),!0}catch(S){return!1}}return f}()})},92046:function(T,r,n){"use strict";var e=n(63964),a=n(91495),t=n(30365),o=n(77568),f=n(98373),b=n(40033),y=n(74595),S=n(27193),k=n(36917),h=n(87458);function c(m,d,u){var s=arguments.length<4?m:arguments[3],l=S.f(t(m),d),v,N,C;if(!l){if(o(N=k(m)))return c(N,d,u,s);l=h(0)}if(f(l)){if(l.writable===!1||!o(s))return!1;if(v=S.f(s,d)){if(v.get||v.set||v.writable===!1)return!1;v.value=u,y.f(s,d,v)}else y.f(s,d,h(0,u))}else{if(C=l.set,C===void 0)return!1;a(C,s,u)}return!0}var i=b(function(){var m=function(){},d=y.f(new m,"a",{configurable:!0});return Reflect.set(m.prototype,"a",1,d)!==!1});e({target:"Reflect",stat:!0,forced:i},{set:c})},51454:function(T,r,n){"use strict";var e=n(58310),a=n(74685),t=n(67250),o=n(41314),f=n(5781),b=n(37909),y=n(80674),S=n(37310).f,k=n(21287),h=n(72586),c=n(12605),i=n(73392),m=n(62115),d=n(34550),u=n(55938),s=n(40033),l=n(45299),v=n(5419).enforce,N=n(58491),C=n(24697),p=n(39173),g=n(35688),V=C("match"),B=a.RegExp,I=B.prototype,L=a.SyntaxError,w=t(I.exec),A=t("".charAt),x=t("".replace),E=t("".indexOf),P=t("".slice),j=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,M=/a/g,R=/a/g,D=new B(M)!==M,W=m.MISSED_STICKY,_=m.UNSUPPORTED_Y,U=e&&(!D||W||p||g||s(function(){return R[V]=!1,B(M)!==M||B(R)===R||String(B(M,"i"))!=="/a/i"})),K=function(ne){for(var se=ne.length,Ce=0,Se="",ye=!1,he;Ce<=se;Ce++){if(he=A(ne,Ce),he==="\\"){Se+=he+A(ne,++Ce);continue}!ye&&he==="."?Se+="[\\s\\S]":(he==="["?ye=!0:he==="]"&&(ye=!1),Se+=he)}return Se},G=function(ne){for(var se=ne.length,Ce=0,Se="",ye=[],he=y(null),oe=!1,ce=!1,ee=0,fe="",me;Ce<=se;Ce++){if(me=A(ne,Ce),me==="\\")me+=A(ne,++Ce);else if(me==="]")oe=!1;else if(!oe)switch(!0){case me==="[":oe=!0;break;case me==="(":w(j,P(ne,Ce+1))&&(Ce+=2,ce=!0),Se+=me,ee++;continue;case(me===">"&&ce):if(fe===""||l(he,fe))throw new L("Invalid capture group name");he[fe]=!0,ye[ye.length]=[fe,ee],ce=!1,fe="";continue}ce?fe+=me:Se+=me}return[Se,ye]};if(o("RegExp",U)){for(var $=function(){function ie(ne,se){var Ce=k(I,this),Se=h(ne),ye=se===void 0,he=[],oe=ne,ce,ee,fe,me,te,be;if(!Ce&&Se&&ye&&ne.constructor===$)return ne;if((Se||k(I,ne))&&(ne=ne.source,ye&&(se=i(oe))),ne=ne===void 0?"":c(ne),se=se===void 0?"":c(se),oe=ne,p&&"dotAll"in M&&(ee=!!se&&E(se,"s")>-1,ee&&(se=x(se,/s/g,""))),ce=se,W&&"sticky"in M&&(fe=!!se&&E(se,"y")>-1,fe&&_&&(se=x(se,/y/g,""))),g&&(me=G(ne),ne=me[0],he=me[1]),te=f(B(ne,se),Ce?this:I,$),(ee||fe||he.length)&&(be=v(te),ee&&(be.dotAll=!0,be.raw=$(K(ne),ce)),fe&&(be.sticky=!0),he.length&&(be.groups=he)),ne!==oe)try{b(te,"source",oe===""?"(?:)":oe)}catch(pe){}return te}return ie}(),Q=S(B),J=0;Q.length>J;)d($,B,Q[J++]);I.constructor=$,$.prototype=I,u(a,"RegExp",$,{constructor:!0})}N("RegExp")},79669:function(T,r,n){"use strict";var e=n(63964),a=n(14489);e({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},23057:function(T,r,n){"use strict";var e=n(74685),a=n(58310),t=n(73936),o=n(70901),f=n(40033),b=e.RegExp,y=b.prototype,S=a&&f(function(){var k=!0;try{b(".","d")}catch(l){k=!1}var h={},c="",i=k?"dgimsy":"gimsy",m=function(v,N){Object.defineProperty(h,v,{get:function(){function C(){return c+=N,!0}return C}()})},d={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};k&&(d.hasIndices="d");for(var u in d)m(u,d[u]);var s=Object.getOwnPropertyDescriptor(y,"flags").get.call(h);return s!==i||c!==i});S&&t(y,"flags",{configurable:!0,get:o})},57983:function(T,r,n){"use strict";var e=n(70520).PROPER,a=n(55938),t=n(30365),o=n(12605),f=n(40033),b=n(73392),y="toString",S=RegExp.prototype,k=S[y],h=f(function(){return k.call({source:"a",flags:"b"})!=="/a/b"}),c=e&&k.name!==y;(h||c)&&a(S,y,function(){function i(){var m=t(this),d=o(m.source),u=o(b(m));return"/"+d+"/"+u}return i}(),{unsafe:!0})},1963:function(T,r,n){"use strict";var e=n(45150),a=n(41028);e("Set",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},17953:function(T,r,n){"use strict";n(1963)},95309:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("anchor")},{anchor:function(){function o(f){return a(this,"a","name",f)}return o}()})},82256:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("big")},{big:function(){function o(){return a(this,"big","","")}return o}()})},49484:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("blink")},{blink:function(){function o(){return a(this,"blink","","")}return o}()})},38931:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("bold")},{bold:function(){function o(){return a(this,"b","","")}return o}()})},30442:function(T,r,n){"use strict";var e=n(63964),a=n(50233).codeAt;e({target:"String",proto:!0},{codePointAt:function(){function t(o){return a(this,o)}return t}()})},6403:function(T,r,n){"use strict";var e=n(63964),a=n(71138),t=n(27193).f,o=n(10188),f=n(12605),b=n(86213),y=n(16952),S=n(45490),k=n(4493),h=a("".slice),c=Math.min,i=S("endsWith"),m=!k&&!i&&!!function(){var d=t(String.prototype,"endsWith");return d&&!d.writable}();e({target:"String",proto:!0,forced:!m&&!i},{endsWith:function(){function d(u){var s=f(y(this));b(u);var l=arguments.length>1?arguments[1]:void 0,v=s.length,N=l===void 0?v:c(o(l),v),C=f(u);return h(s,N-C.length,N)===C}return d}()})},39308:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fixed")},{fixed:function(){function o(){return a(this,"tt","","")}return o}()})},91550:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fontcolor")},{fontcolor:function(){function o(f){return a(this,"font","color",f)}return o}()})},75008:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fontsize")},{fontsize:function(){function o(f){return a(this,"font","size",f)}return o}()})},9867:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(13912),o=RangeError,f=String.fromCharCode,b=String.fromCodePoint,y=a([].join),S=!!b&&b.length!==1;e({target:"String",stat:!0,arity:1,forced:S},{fromCodePoint:function(){function k(h){for(var c=[],i=arguments.length,m=0,d;i>m;){if(d=+arguments[m++],t(d,1114111)!==d)throw new o(d+" is not a valid code point");c[m]=d<65536?f(d):f(((d-=65536)>>10)+55296,d%1024+56320)}return y(c,"")}return k}()})},43673:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(86213),o=n(16952),f=n(12605),b=n(45490),y=a("".indexOf);e({target:"String",proto:!0,forced:!b("includes")},{includes:function(){function S(k){return!!~y(f(o(this)),f(t(k)),arguments.length>1?arguments[1]:void 0)}return S}()})},56027:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("italics")},{italics:function(){function o(){return a(this,"i","","")}return o}()})},12354:function(T,r,n){"use strict";var e=n(50233).charAt,a=n(12605),t=n(5419),o=n(65574),f=n(5959),b="String Iterator",y=t.set,S=t.getterFor(b);o(String,"String",function(k){y(this,{type:b,string:a(k),index:0})},function(){function k(){var h=S(this),c=h.string,i=h.index,m;return i>=c.length?f(void 0,!0):(m=e(c,i),h.index+=m.length,f(m,!1))}return k}())},50340:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("link")},{link:function(){function o(f){return a(this,"a","href",f)}return o}()})},22515:function(T,r,n){"use strict";var e=n(91495),a=n(79942),t=n(30365),o=n(42871),f=n(10188),b=n(12605),y=n(16952),S=n(78060),k=n(35483),h=n(28340);a("match",function(c,i,m){return[function(){function d(u){var s=y(this),l=o(u)?void 0:S(u,c);return l?e(l,u,s):new RegExp(u)[c](b(s))}return d}(),function(d){var u=t(this),s=b(d),l=m(i,u,s);if(l.done)return l.value;if(!u.global)return h(u,s);var v=u.unicode;u.lastIndex=0;for(var N=[],C=0,p;(p=h(u,s))!==null;){var g=b(p[0]);N[C]=g,g===""&&(u.lastIndex=k(s,f(u.lastIndex),v)),C++}return C===0?null:N}]})},5143:function(T,r,n){"use strict";var e=n(63964),a=n(24051).end,t=n(34125);e({target:"String",proto:!0,forced:t},{padEnd:function(){function o(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}return o}()})},93514:function(T,r,n){"use strict";var e=n(63964),a=n(24051).start,t=n(34125);e({target:"String",proto:!0,forced:t},{padStart:function(){function o(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}return o}()})},5416:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(57591),o=n(46771),f=n(12605),b=n(24760),y=a([].push),S=a([].join);e({target:"String",stat:!0},{raw:function(){function k(h){var c=t(o(h).raw),i=b(c);if(!i)return"";for(var m=arguments.length,d=[],u=0;;){if(y(d,f(c[u++])),u===i)return S(d,"");u")!=="7"});o("replace",function(x,E,P){var j=w?"$":"$0";return[function(){function M(R,D){var W=i(this),_=S(R)?void 0:d(R,v);return _?a(_,R,W,D):a(E,c(W),R,D)}return M}(),function(M,R){var D=b(this),W=c(M);if(typeof R=="string"&&V(R,j)===-1&&V(R,"$<")===-1){var _=P(E,D,W,R);if(_.done)return _.value}var U=y(R);U||(R=c(R));var K=D.global,G;K&&(G=D.unicode,D.lastIndex=0);for(var $=[],Q;Q=s(D,W),!(Q===null||(g($,Q),!K));){var J=c(Q[0]);J===""&&(D.lastIndex=m(W,h(D.lastIndex),G))}for(var ie="",ne=0,se=0;se<$.length;se++){Q=$[se];for(var Ce=c(Q[0]),Se=N(C(k(Q.index),W.length),0),ye=[],he,oe=1;oe=ne&&(ie+=B(W,ne,Se)+he,ne=Se+Ce.length)}return ie+B(W,ne)}]},!A||!L||w)},63272:function(T,r,n){"use strict";var e=n(91495),a=n(79942),t=n(30365),o=n(42871),f=n(16952),b=n(5700),y=n(12605),S=n(78060),k=n(28340);a("search",function(h,c,i){return[function(){function m(d){var u=f(this),s=o(d)?void 0:S(d,h);return s?e(s,d,u):new RegExp(d)[h](y(u))}return m}(),function(m){var d=t(this),u=y(m),s=i(c,d,u);if(s.done)return s.value;var l=d.lastIndex;b(l,0)||(d.lastIndex=0);var v=k(d,u);return b(d.lastIndex,l)||(d.lastIndex=l),v===null?-1:v.index}]})},34325:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("small")},{small:function(){function o(){return a(this,"small","","")}return o}()})},39930:function(T,r,n){"use strict";var e=n(91495),a=n(67250),t=n(79942),o=n(30365),f=n(42871),b=n(16952),y=n(28987),S=n(35483),k=n(10188),h=n(12605),c=n(78060),i=n(28340),m=n(62115),d=n(40033),u=m.UNSUPPORTED_Y,s=4294967295,l=Math.min,v=a([].push),N=a("".slice),C=!d(function(){var g=/(?:)/,V=g.exec;g.exec=function(){return V.apply(this,arguments)};var B="ab".split(g);return B.length!==2||B[0]!=="a"||B[1]!=="b"}),p="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;t("split",function(g,V,B){var I="0".split(void 0,0).length?function(L,w){return L===void 0&&w===0?[]:e(V,this,L,w)}:V;return[function(){function L(w,A){var x=b(this),E=f(w)?void 0:c(w,g);return E?e(E,w,x,A):e(I,h(x),w,A)}return L}(),function(L,w){var A=o(this),x=h(L);if(!p){var E=B(I,A,x,w,I!==V);if(E.done)return E.value}var P=y(A,RegExp),j=A.unicode,M=(A.ignoreCase?"i":"")+(A.multiline?"m":"")+(A.unicode?"u":"")+(u?"g":"y"),R=new P(u?"^(?:"+A.source+")":A,M),D=w===void 0?s:w>>>0;if(D===0)return[];if(x.length===0)return i(R,x)===null?[x]:[];for(var W=0,_=0,U=[];_1?arguments[1]:void 0,s.length)),v=f(u);return h(s,l,l+v.length)===v}return d}()})},74498:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("strike")},{strike:function(){function o(){return a(this,"strike","","")}return o}()})},15812:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("sub")},{sub:function(){function o(){return a(this,"sub","","")}return o}()})},57726:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("sup")},{sup:function(){function o(){return a(this,"sup","","")}return o}()})},70604:function(T,r,n){"use strict";n(99159);var e=n(63964),a=n(43476);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==a},{trimEnd:a})},85404:function(T,r,n){"use strict";var e=n(63964),a=n(43885);e({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==a},{trimLeft:a})},99159:function(T,r,n){"use strict";var e=n(63964),a=n(43476);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==a},{trimRight:a})},34965:function(T,r,n){"use strict";n(85404);var e=n(63964),a=n(43885);e({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==a},{trimStart:a})},8448:function(T,r,n){"use strict";var e=n(63964),a=n(92648).trim,t=n(90012);e({target:"String",proto:!0,forced:t("trim")},{trim:function(){function o(){return a(this)}return o}()})},79250:function(T,r,n){"use strict";var e=n(85889);e("asyncIterator")},49899:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(91495),o=n(67250),f=n(4493),b=n(58310),y=n(52357),S=n(40033),k=n(45299),h=n(21287),c=n(30365),i=n(57591),m=n(767),d=n(12605),u=n(87458),s=n(80674),l=n(18450),v=n(37310),N=n(81644),C=n(89235),p=n(27193),g=n(74595),V=n(24239),B=n(12867),I=n(55938),L=n(73936),w=n(16639),A=n(19417),x=n(79195),E=n(16738),P=n(24697),j=n(55557),M=n(85889),R=n(52360),D=n(84925),W=n(5419),_=n(22603).forEach,U=A("hidden"),K="Symbol",G="prototype",$=W.set,Q=W.getterFor(K),J=Object[G],ie=a.Symbol,ne=ie&&ie[G],se=a.RangeError,Ce=a.TypeError,Se=a.QObject,ye=p.f,he=g.f,oe=N.f,ce=B.f,ee=o([].push),fe=w("symbols"),me=w("op-symbols"),te=w("wks"),be=!Se||!Se[G]||!Se[G].findChild,pe=function(le,Ne,de){var ke=ye(J,Ne);ke&&delete J[Ne],he(le,Ne,de),ke&&le!==J&&he(J,Ne,ke)},ve=b&&S(function(){return s(he({},"a",{get:function(){function re(){return he(this,"a",{value:7}).a}return re}()})).a!==7})?pe:he,Be=function(le,Ne){var de=fe[le]=s(ne);return $(de,{type:K,tag:le,description:Ne}),b||(de.description=Ne),de},ge=function(){function re(le,Ne,de){le===J&&ge(me,Ne,de),c(le);var ke=m(Ne);return c(de),k(fe,ke)?(de.enumerable?(k(le,U)&&le[U][ke]&&(le[U][ke]=!1),de=s(de,{enumerable:u(0,!1)})):(k(le,U)||he(le,U,u(1,s(null))),le[U][ke]=!0),ve(le,ke,de)):he(le,ke,de)}return re}(),Le=function(){function re(le,Ne){c(le);var de=i(Ne),ke=l(de).concat(Ve(de));return _(ke,function(Me){(!b||t(xe,de,Me))&&ge(le,Me,de[Me])}),le}return re}(),we=function(){function re(le,Ne){return Ne===void 0?s(le):Le(s(le),Ne)}return re}(),xe=function(){function re(le){var Ne=m(le),de=t(ce,this,Ne);return this===J&&k(fe,Ne)&&!k(me,Ne)?!1:de||!k(this,Ne)||!k(fe,Ne)||k(this,U)&&this[U][Ne]?de:!0}return re}(),Re=function(){function re(le,Ne){var de=i(le),ke=m(Ne);if(!(de===J&&k(fe,ke)&&!k(me,ke))){var Me=ye(de,ke);return Me&&k(fe,ke)&&!(k(de,U)&&de[U][ke])&&(Me.enumerable=!0),Me}}return re}(),ze=function(){function re(le){var Ne=oe(i(le)),de=[];return _(Ne,function(ke){!k(fe,ke)&&!k(x,ke)&&ee(de,ke)}),de}return re}(),Ve=function(le){var Ne=le===J,de=oe(Ne?me:i(le)),ke=[];return _(de,function(Me){k(fe,Me)&&(!Ne||k(J,Me))&&ee(ke,fe[Me])}),ke};y||(ie=function(){function re(){if(h(ne,this))throw new Ce("Symbol is not a constructor");var le=!arguments.length||arguments[0]===void 0?void 0:d(arguments[0]),Ne=E(le),de=function(){function ke(Me){var je=this===void 0?a:this;je===J&&t(ke,me,Me),k(je,U)&&k(je[U],Ne)&&(je[U][Ne]=!1);var Fe=u(1,Me);try{ve(je,Ne,Fe)}catch(He){if(!(He instanceof se))throw He;pe(je,Ne,Fe)}}return ke}();return b&&be&&ve(J,Ne,{configurable:!0,set:de}),Be(Ne,le)}return re}(),ne=ie[G],I(ne,"toString",function(){function re(){return Q(this).tag}return re}()),I(ie,"withoutSetter",function(re){return Be(E(re),re)}),B.f=xe,g.f=ge,V.f=Le,p.f=Re,v.f=N.f=ze,C.f=Ve,j.f=function(re){return Be(P(re),re)},b&&(L(ne,"description",{configurable:!0,get:function(){function re(){return Q(this).description}return re}()}),f||I(J,"propertyIsEnumerable",xe,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!y,sham:!y},{Symbol:ie}),_(l(te),function(re){M(re)}),e({target:K,stat:!0,forced:!y},{useSetter:function(){function re(){be=!0}return re}(),useSimple:function(){function re(){be=!1}return re}()}),e({target:"Object",stat:!0,forced:!y,sham:!b},{create:we,defineProperty:ge,defineProperties:Le,getOwnPropertyDescriptor:Re}),e({target:"Object",stat:!0,forced:!y},{getOwnPropertyNames:ze}),R(),D(ie,K),x[U]=!0},10933:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(74685),o=n(67250),f=n(45299),b=n(55747),y=n(21287),S=n(12605),k=n(73936),h=n(5774),c=t.Symbol,i=c&&c.prototype;if(a&&b(c)&&(!("description"in i)||c().description!==void 0)){var m={},d=function(){function p(){var g=arguments.length<1||arguments[0]===void 0?void 0:S(arguments[0]),V=y(i,this)?new c(g):g===void 0?c():c(g);return g===""&&(m[V]=!0),V}return p}();h(d,c),d.prototype=i,i.constructor=d;var u=String(c("description detection"))==="Symbol(description detection)",s=o(i.valueOf),l=o(i.toString),v=/^Symbol\((.*)\)[^)]+$/,N=o("".replace),C=o("".slice);k(i,"description",{configurable:!0,get:function(){function p(){var g=s(this);if(f(m,g))return"";var V=l(g),B=u?C(V,7,-1):N(V,v,"$1");return B===""?void 0:B}return p}()}),e({global:!0,constructor:!0,forced:!0},{Symbol:d})}},30828:function(T,r,n){"use strict";var e=n(63964),a=n(4009),t=n(45299),o=n(12605),f=n(16639),b=n(66570),y=f("string-to-symbol-registry"),S=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!b},{for:function(){function k(h){var c=o(h);if(t(y,c))return y[c];var i=a("Symbol")(c);return y[c]=i,S[i]=c,i}return k}()})},53795:function(T,r,n){"use strict";var e=n(85889);e("hasInstance")},87806:function(T,r,n){"use strict";var e=n(85889);e("isConcatSpreadable")},64677:function(T,r,n){"use strict";var e=n(85889);e("iterator")},33313:function(T,r,n){"use strict";n(49899),n(30828),n(6862),n(53008),n(28603)},6862:function(T,r,n){"use strict";var e=n(63964),a=n(45299),t=n(71399),o=n(89393),f=n(16639),b=n(66570),y=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!b},{keyFor:function(){function S(k){if(!t(k))throw new TypeError(o(k)+" is not a symbol");if(a(y,k))return y[k]}return S}()})},48058:function(T,r,n){"use strict";var e=n(85889);e("match")},51583:function(T,r,n){"use strict";var e=n(85889);e("replace")},82403:function(T,r,n){"use strict";var e=n(85889);e("search")},34265:function(T,r,n){"use strict";var e=n(85889);e("species")},3295:function(T,r,n){"use strict";var e=n(85889);e("split")},1078:function(T,r,n){"use strict";var e=n(85889),a=n(52360);e("toPrimitive"),a()},63207:function(T,r,n){"use strict";var e=n(4009),a=n(85889),t=n(84925);a("toStringTag"),t(e("Symbol"),"Symbol")},80520:function(T,r,n){"use strict";var e=n(85889);e("unscopables")},99872:function(T,r,n){"use strict";var e=n(67250),a=n(4246),t=n(71447),o=e(t),f=a.aTypedArray,b=a.exportTypedArrayMethod;b("copyWithin",function(){function y(S,k){return o(f(this),S,k,arguments.length>2?arguments[2]:void 0)}return y}())},73364:function(T,r,n){"use strict";var e=n(4246),a=n(22603).every,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("every",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},58166:function(T,r,n){"use strict";var e=n(4246),a=n(88471),t=n(61484),o=n(2281),f=n(91495),b=n(67250),y=n(40033),S=e.aTypedArray,k=e.exportTypedArrayMethod,h=b("".slice),c=y(function(){var i=0;return new Int8Array(2).fill({valueOf:function(){function m(){return i++}return m}()}),i!==1});k("fill",function(){function i(m){var d=arguments.length;S(this);var u=h(o(this),0,3)==="Big"?t(m):+m;return f(a,this,u,d>1?arguments[1]:void 0,d>2?arguments[2]:void 0)}return i}(),c)},23793:function(T,r,n){"use strict";var e=n(4246),a=n(22603).filter,t=n(45399),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("filter",function(){function b(y){var S=a(o(this),y,arguments.length>1?arguments[1]:void 0);return t(this,S)}return b}())},13917:function(T,r,n){"use strict";var e=n(4246),a=n(22603).findIndex,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("findIndex",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},43820:function(T,r,n){"use strict";var e=n(4246),a=n(22603).find,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("find",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},80756:function(T,r,n){"use strict";var e=n(80185);e("Float32",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},70567:function(T,r,n){"use strict";var e=n(80185);e("Float64",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},19852:function(T,r,n){"use strict";var e=n(4246),a=n(22603).forEach,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("forEach",function(){function f(b){a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},40379:function(T,r,n){"use strict";var e=n(86563),a=n(4246).exportTypedArrayStaticMethod,t=n(3805);a("from",t,e)},92770:function(T,r,n){"use strict";var e=n(4246),a=n(14211).includes,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("includes",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},81069:function(T,r,n){"use strict";var e=n(4246),a=n(14211).indexOf,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("indexOf",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},60037:function(T,r,n){"use strict";var e=n(80185);e("Int16",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},44195:function(T,r,n){"use strict";var e=n(80185);e("Int32",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},66756:function(T,r,n){"use strict";var e=n(80185);e("Int8",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},63689:function(T,r,n){"use strict";var e=n(74685),a=n(40033),t=n(67250),o=n(4246),f=n(34570),b=n(24697),y=b("iterator"),S=e.Uint8Array,k=t(f.values),h=t(f.keys),c=t(f.entries),i=o.aTypedArray,m=o.exportTypedArrayMethod,d=S&&S.prototype,u=!a(function(){d[y].call([1])}),s=!!d&&d.values&&d[y]===d.values&&d.values.name==="values",l=function(){function v(){return k(i(this))}return v}();m("entries",function(){function v(){return c(i(this))}return v}(),u),m("keys",function(){function v(){return h(i(this))}return v}(),u),m("values",l,u||!s,{name:"values"}),m(y,l,u||!s,{name:"values"})},5659:function(T,r,n){"use strict";var e=n(4246),a=n(67250),t=e.aTypedArray,o=e.exportTypedArrayMethod,f=a([].join);o("join",function(){function b(y){return f(t(this),y)}return b}())},25014:function(T,r,n){"use strict";var e=n(4246),a=n(61267),t=n(1325),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("lastIndexOf",function(){function b(y){var S=arguments.length;return a(t,o(this),S>1?[y,arguments[1]]:[y])}return b}())},32189:function(T,r,n){"use strict";var e=n(4246),a=n(22603).map,t=n(31082),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("map",function(){function b(y){return a(o(this),y,arguments.length>1?arguments[1]:void 0,function(S,k){return new(t(S))(k)})}return b}())},23030:function(T,r,n){"use strict";var e=n(4246),a=n(86563),t=e.aTypedArrayConstructor,o=e.exportTypedArrayStaticMethod;o("of",function(){function f(){for(var b=0,y=arguments.length,S=new(t(this))(y);y>b;)S[b]=arguments[b++];return S}return f}(),a)},49110:function(T,r,n){"use strict";var e=n(4246),a=n(56844).right,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduceRight",function(){function f(b){var y=arguments.length;return a(t(this),b,y,y>1?arguments[1]:void 0)}return f}())},24309:function(T,r,n){"use strict";var e=n(4246),a=n(56844).left,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduce",function(){function f(b){var y=arguments.length;return a(t(this),b,y,y>1?arguments[1]:void 0)}return f}())},56445:function(T,r,n){"use strict";var e=n(4246),a=e.aTypedArray,t=e.exportTypedArrayMethod,o=Math.floor;t("reverse",function(){function f(){for(var b=this,y=a(b).length,S=o(y/2),k=0,h;k1?arguments[1]:void 0,1),N=b(l);if(d)return a(c,this,N,v);var C=this.length,p=o(N),g=0;if(p+v>C)throw new S("Wrong length");for(;gm;)u[m]=c[m++];return u}return S}(),y)},88739:function(T,r,n){"use strict";var e=n(4246),a=n(22603).some,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("some",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},60415:function(T,r,n){"use strict";var e=n(74685),a=n(71138),t=n(40033),o=n(10320),f=n(90274),b=n(4246),y=n(652),S=n(19228),k=n(5026),h=n(9342),c=b.aTypedArray,i=b.exportTypedArrayMethod,m=e.Uint16Array,d=m&&a(m.prototype.sort),u=!!d&&!(t(function(){d(new m(2),null)})&&t(function(){d(new m(2),{})})),s=!!d&&!t(function(){if(k)return k<74;if(y)return y<67;if(S)return!0;if(h)return h<602;var v=new m(516),N=Array(516),C,p;for(C=0;C<516;C++)p=C%4,v[C]=515-C,N[C]=C-2*p+3;for(d(v,function(g,V){return(g/4|0)-(V/4|0)}),C=0;C<516;C++)if(v[C]!==N[C])return!0}),l=function(N){return function(C,p){return N!==void 0?+N(C,p)||0:p!==p?-1:C!==C?1:C===0&&p===0?1/C>0&&1/p<0?1:-1:C>p}};i("sort",function(){function v(N){return N!==void 0&&o(N),s?d(this,N):f(c(this),l(N))}return v}(),!s||u)},72532:function(T,r,n){"use strict";var e=n(4246),a=n(10188),t=n(13912),o=n(31082),f=e.aTypedArray,b=e.exportTypedArrayMethod;b("subarray",function(){function y(S,k){var h=f(this),c=h.length,i=t(S,c),m=o(h);return new m(h.buffer,h.byteOffset+i*h.BYTES_PER_ELEMENT,a((k===void 0?c:t(k,c))-i))}return y}())},62207:function(T,r,n){"use strict";var e=n(74685),a=n(61267),t=n(4246),o=n(40033),f=n(54602),b=e.Int8Array,y=t.aTypedArray,S=t.exportTypedArrayMethod,k=[].toLocaleString,h=!!b&&o(function(){k.call(new b(1))}),c=o(function(){return[1,2].toLocaleString()!==new b([1,2]).toLocaleString()})||!o(function(){b.prototype.toLocaleString.call([1,2])});S("toLocaleString",function(){function i(){return a(k,h?f(y(this)):y(this),f(arguments))}return i}(),c)},906:function(T,r,n){"use strict";var e=n(4246).exportTypedArrayMethod,a=n(40033),t=n(74685),o=n(67250),f=t.Uint8Array,b=f&&f.prototype||{},y=[].toString,S=o([].join);a(function(){y.call({})})&&(y=function(){function h(){return S(this)}return h}());var k=b.toString!==y;e("toString",y,k)},78824:function(T,r,n){"use strict";var e=n(80185);e("Uint16",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},72846:function(T,r,n){"use strict";var e=n(80185);e("Uint32",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},24575:function(T,r,n){"use strict";var e=n(80185);e("Uint8",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},71968:function(T,r,n){"use strict";var e=n(80185);e("Uint8",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()},!0)},80040:function(T,r,n){"use strict";var e=n(50730),a=n(74685),t=n(67250),o=n(30145),f=n(81969),b=n(45150),y=n(39895),S=n(77568),k=n(5419).enforce,h=n(40033),c=n(21820),i=Object,m=Array.isArray,d=i.isExtensible,u=i.isFrozen,s=i.isSealed,l=i.freeze,v=i.seal,N=!a.ActiveXObject&&"ActiveXObject"in a,C,p=function(E){return function(){function P(){return E(this,arguments.length?arguments[0]:void 0)}return P}()},g=b("WeakMap",p,y),V=g.prototype,B=t(V.set),I=function(){return e&&h(function(){var E=l([]);return B(new g,E,1),!u(E)})};if(c)if(N){C=y.getConstructor(p,"WeakMap",!0),f.enable();var L=t(V.delete),w=t(V.has),A=t(V.get);o(V,{delete:function(){function x(E){if(S(E)&&!d(E)){var P=k(this);return P.frozen||(P.frozen=new C),L(this,E)||P.frozen.delete(E)}return L(this,E)}return x}(),has:function(){function x(E){if(S(E)&&!d(E)){var P=k(this);return P.frozen||(P.frozen=new C),w(this,E)||P.frozen.has(E)}return w(this,E)}return x}(),get:function(){function x(E){if(S(E)&&!d(E)){var P=k(this);return P.frozen||(P.frozen=new C),w(this,E)?A(this,E):P.frozen.get(E)}return A(this,E)}return x}(),set:function(){function x(E,P){if(S(E)&&!d(E)){var j=k(this);j.frozen||(j.frozen=new C),w(this,E)?B(this,E,P):j.frozen.set(E,P)}else B(this,E,P);return this}return x}()})}else I()&&o(V,{set:function(){function x(E,P){var j;return m(E)&&(u(E)?j=l:s(E)&&(j=v)),B(this,E,P),j&&j(E),this}return x}()})},90846:function(T,r,n){"use strict";n(80040)},67042:function(T,r,n){"use strict";var e=n(45150),a=n(39895);e("WeakSet",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},40348:function(T,r,n){"use strict";n(67042)},5606:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(60375).clear;e({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==t},{clearImmediate:t})},83006:function(T,r,n){"use strict";n(5606),n(27807)},25764:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(37713),o=n(10320),f=n(24986),b=n(40033),y=n(58310),S=b(function(){return y&&Object.getOwnPropertyDescriptor(a,"queueMicrotask").value.length!==1});e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:S},{queueMicrotask:function(){function k(h){f(arguments.length,1),t(o(h))}return k}()})},27807:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(60375).set,o=n(78362),f=a.setImmediate?o(t,!1):t;e({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==f},{setImmediate:f})},45569:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(78362),o=t(a.setInterval,!0);e({global:!0,bind:!0,forced:a.setInterval!==o},{setInterval:o})},5213:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(78362),o=t(a.setTimeout,!0);e({global:!0,bind:!0,forced:a.setTimeout!==o},{setTimeout:o})},69401:function(T,r,n){"use strict";n(45569),n(5213)},7435:function(T){"use strict";/** * @file * @copyright 2020 Aleksej Komarov * @license MIT