mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
360 lines
1.5 MiB
360 lines
1.5 MiB
(function(){(function(){var Ln={50252:function(x,r,n){"use strict";r.__esModule=!0,r.createPopper=void 0,r.popperGenerator=u;var e=h(n(4254)),a=h(n(92957)),t=h(n(97262)),o=h(n(66689)),m=h(n(47307)),V=h(n(63889)),k=h(n(27343)),S=h(n(49883));r.detectOverflow=S.default;var N=n(75011);function h(c){return c&&c.__esModule?c:{default:c}}var s={placement:"bottom",modifiers:[],strategy:"absolute"};function l(){for(var c=arguments.length,d=new Array(c),p=0;p<c;p++)d[p]=arguments[p];return!d.some(function(v){return!(v&&typeof v.getBoundingClientRect=="function")})}function u(c){c===void 0&&(c={});var d=c,p=d.defaultModifiers,v=p===void 0?[]:p,f=d.defaultOptions,C=f===void 0?s:f;return function(){function b(g,y,B){B===void 0&&(B=C);var L={placement:"bottom",orderedModifiers:[],options:Object.assign({},s,C),modifiersData:{},elements:{reference:g,popper:y},attributes:{},styles:{}},I=[],w=!1,T={state:L,setOptions:function(){function R(O){var _=typeof O=="function"?O(L.options):O;A(),L.options=Object.assign({},C,L.options,_),L.scrollParents={reference:(0,N.isElement)(g)?(0,t.default)(g):g.contextElement?(0,t.default)(g.contextElement):[],popper:(0,t.default)(y)};var P=(0,m.default)((0,k.default)([].concat(v,L.options.modifiers)));return L.orderedModifiers=P.filter(function(D){return D.enabled}),M(),T.update()}return R}(),forceUpdate:function(){function R(){if(!w){var O=L.elements,_=O.reference,P=O.popper;if(l(_,P)){L.rects={reference:(0,e.default)(_,(0,o.default)(P),L.options.strategy==="fixed"),popper:(0,a.default)(P)},L.reset=!1,L.placement=L.options.placement,L.orderedModifiers.forEach(function(Y){return L.modifiersData[Y.name]=Object.assign({},Y.data)});for(var D=0;D<L.orderedModifiers.length;D++){if(L.reset===!0){L.reset=!1,D=-1;continue}var z=L.orderedModifiers[D],U=z.fn,W=z.options,K=W===void 0?{}:W,H=z.name;typeof U=="function"&&(L=U({state:L,options:K,name:H,instance:T})||L)}}}}return R}(),update:(0,V.default)(function(){return new Promise(function(R){T.forceUpdate(),R(L)})}),destroy:function(){function R(){A(),w=!0}return R}()};if(!l(g,y))return T;T.setOptions(B).then(function(R){!w&&B.onFirstUpdate&&B.onFirstUpdate(R)});function M(){L.orderedModifiers.forEach(function(R){var O=R.name,_=R.options,P=_===void 0?{}:_,D=R.effect;if(typeof D=="function"){var z=D({state:L,name:O,instance:T,options:P}),U=function(){function W(){}return W}();I.push(z||U)}})}function A(){I.forEach(function(R){return R()}),I=[]}return T}return b}()}var i=r.createPopper=u()},89691:function(x,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(75011);function a(t,o){var m=o.getRootNode&&o.getRootNode();if(t.contains(o))return!0;if(m&&(0,e.isShadowRoot)(m)){var V=o;do{if(V&&t.isSameNode(V))return!0;V=V.parentNode||V.host}while(V)}return!1}},97617:function(x,r,n){"use strict";r.__esModule=!0,r.default=V;var e=n(75011),a=n(14194),t=m(n(1866)),o=m(n(45407));function m(k){return k&&k.__esModule?k:{default:k}}function V(k,S,N){S===void 0&&(S=!1),N===void 0&&(N=!1);var h=k.getBoundingClientRect(),s=1,l=1;S&&(0,e.isHTMLElement)(k)&&(s=k.offsetWidth>0&&(0,a.round)(h.width)/k.offsetWidth||1,l=k.offsetHeight>0&&(0,a.round)(h.height)/k.offsetHeight||1);var u=(0,e.isElement)(k)?(0,t.default)(k):window,i=u.visualViewport,c=!(0,o.default)()&&N,d=(h.left+(c&&i?i.offsetLeft:0))/s,p=(h.top+(c&&i?i.offsetTop:0))/l,v=h.width/s,f=h.height/l;return{width:v,height:f,top:p,right:d+v,bottom:p+f,left:d,x:d,y:p}}},35823:function(x,r,n){"use strict";r.__esModule=!0,r.default=f;var e=n(83996),a=c(n(75047)),t=c(n(37407)),o=c(n(97262)),m=c(n(66689)),V=c(n(36748)),k=c(n(77060)),S=n(75011),N=c(n(97617)),h=c(n(84330)),s=c(n(89691)),l=c(n(72793)),u=c(n(14834)),i=n(14194);function c(C){return C&&C.__esModule?C:{default:C}}function d(C,b){var g=(0,N.default)(C,!1,b==="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 p(C,b,g){return b===e.viewport?(0,u.default)((0,a.default)(C,g)):(0,S.isElement)(b)?d(b,g):(0,u.default)((0,t.default)((0,V.default)(C)))}function v(C){var b=(0,o.default)((0,h.default)(C)),g=["absolute","fixed"].indexOf((0,k.default)(C).position)>=0,y=g&&(0,S.isHTMLElement)(C)?(0,m.default)(C):C;return(0,S.isElement)(y)?b.filter(function(B){return(0,S.isElement)(B)&&(0,s.default)(B,y)&&(0,l.default)(B)!=="body"}):[]}function f(C,b,g,y){var B=b==="clippingParents"?v(C):[].concat(b),L=[].concat(B,[g]),I=L[0],w=L.reduce(function(T,M){var A=p(C,M,y);return T.top=(0,i.max)(A.top,T.top),T.right=(0,i.min)(A.right,T.right),T.bottom=(0,i.min)(A.bottom,T.bottom),T.left=(0,i.max)(A.left,T.left),T},p(C,I,y));return w.width=w.right-w.left,w.height=w.bottom-w.top,w.x=w.left,w.y=w.top,w}},4254:function(x,r,n){"use strict";r.__esModule=!0,r.default=s;var e=N(n(97617)),a=N(n(86394)),t=N(n(72793)),o=n(75011),m=N(n(44653)),V=N(n(36748)),k=N(n(9135)),S=n(14194);function N(l){return l&&l.__esModule?l:{default:l}}function h(l){var u=l.getBoundingClientRect(),i=(0,S.round)(u.width)/l.offsetWidth||1,c=(0,S.round)(u.height)/l.offsetHeight||1;return i!==1||c!==1}function s(l,u,i){i===void 0&&(i=!1);var c=(0,o.isHTMLElement)(u),d=(0,o.isHTMLElement)(u)&&h(u),p=(0,V.default)(u),v=(0,e.default)(l,d,i),f={scrollLeft:0,scrollTop:0},C={x:0,y:0};return(c||!c&&!i)&&(((0,t.default)(u)!=="body"||(0,k.default)(p))&&(f=(0,a.default)(u)),(0,o.isHTMLElement)(u)?(C=(0,e.default)(u,!0),C.x+=u.clientLeft,C.y+=u.clientTop):p&&(C.x=(0,m.default)(p))),{x:v.left+f.scrollLeft-C.x,y:v.top+f.scrollTop-C.y,width:v.width,height:v.height}}},77060:function(x,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(1866));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return(0,e.default)(o).getComputedStyle(o)}},36748:function(x,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(75011);function a(t){return(((0,e.isElement)(t)?t.ownerDocument:t.document)||window.document).documentElement}},37407:function(x,r,n){"use strict";r.__esModule=!0,r.default=k;var e=V(n(36748)),a=V(n(77060)),t=V(n(44653)),o=V(n(10416)),m=n(14194);function V(S){return S&&S.__esModule?S:{default:S}}function k(S){var N,h=(0,e.default)(S),s=(0,o.default)(S),l=(N=S.ownerDocument)==null?void 0:N.body,u=(0,m.max)(h.scrollWidth,h.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),i=(0,m.max)(h.scrollHeight,h.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),c=-s.scrollLeft+(0,t.default)(S),d=-s.scrollTop;return(0,a.default)(l||h).direction==="rtl"&&(c+=(0,m.max)(h.clientWidth,l?l.clientWidth:0)-u),{width:u,height:i,x:c,y:d}}},89821:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},92957:function(x,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(97617));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var m=(0,e.default)(o),V=o.offsetWidth,k=o.offsetHeight;return Math.abs(m.width-V)<=1&&(V=m.width),Math.abs(m.height-k)<=1&&(k=m.height),{x:o.offsetLeft,y:o.offsetTop,width:V,height:k}}},72793:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e?(e.nodeName||"").toLowerCase():null}},86394:function(x,r,n){"use strict";r.__esModule=!0,r.default=V;var e=m(n(10416)),a=m(n(1866)),t=n(75011),o=m(n(89821));function m(k){return k&&k.__esModule?k:{default:k}}function V(k){return k===(0,a.default)(k)||!(0,t.isHTMLElement)(k)?(0,e.default)(k):(0,o.default)(k)}},66689:function(x,r,n){"use strict";r.__esModule=!0,r.default=s;var e=S(n(1866)),a=S(n(72793)),t=S(n(77060)),o=n(75011),m=S(n(46795)),V=S(n(84330)),k=S(n(36110));function S(l){return l&&l.__esModule?l:{default:l}}function N(l){return!(0,o.isHTMLElement)(l)||(0,t.default)(l).position==="fixed"?null:l.offsetParent}function h(l){var u=/firefox/i.test((0,k.default)()),i=/Trident/i.test((0,k.default)());if(i&&(0,o.isHTMLElement)(l)){var c=(0,t.default)(l);if(c.position==="fixed")return null}var d=(0,V.default)(l);for((0,o.isShadowRoot)(d)&&(d=d.host);(0,o.isHTMLElement)(d)&&["html","body"].indexOf((0,a.default)(d))<0;){var p=(0,t.default)(d);if(p.transform!=="none"||p.perspective!=="none"||p.contain==="paint"||["transform","perspective"].indexOf(p.willChange)!==-1||u&&p.willChange==="filter"||u&&p.filter&&p.filter!=="none")return d;d=d.parentNode}return null}function s(l){for(var u=(0,e.default)(l),i=N(l);i&&(0,m.default)(i)&&(0,t.default)(i).position==="static";)i=N(i);return i&&((0,a.default)(i)==="html"||(0,a.default)(i)==="body"&&(0,t.default)(i).position==="static")?u:i||h(l)||u}},84330:function(x,r,n){"use strict";r.__esModule=!0,r.default=m;var e=o(n(72793)),a=o(n(36748)),t=n(75011);function o(V){return V&&V.__esModule?V:{default:V}}function m(V){return(0,e.default)(V)==="html"?V:V.assignedSlot||V.parentNode||((0,t.isShadowRoot)(V)?V.host:null)||(0,a.default)(V)}},89523:function(x,r,n){"use strict";r.__esModule=!0,r.default=V;var e=m(n(84330)),a=m(n(9135)),t=m(n(72793)),o=n(75011);function m(k){return k&&k.__esModule?k:{default:k}}function V(k){return["html","body","#document"].indexOf((0,t.default)(k))>=0?k.ownerDocument.body:(0,o.isHTMLElement)(k)&&(0,a.default)(k)?k:V((0,e.default)(k))}},75047:function(x,r,n){"use strict";r.__esModule=!0,r.default=V;var e=m(n(1866)),a=m(n(36748)),t=m(n(44653)),o=m(n(45407));function m(k){return k&&k.__esModule?k:{default:k}}function V(k,S){var N=(0,e.default)(k),h=(0,a.default)(k),s=N.visualViewport,l=h.clientWidth,u=h.clientHeight,i=0,c=0;if(s){l=s.width,u=s.height;var d=(0,o.default)();(d||!d&&S==="fixed")&&(i=s.offsetLeft,c=s.offsetTop)}return{width:l,height:u,x:i+(0,t.default)(k),y:c}}},1866:function(x,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}},10416:function(x,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(1866));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var m=(0,e.default)(o),V=m.pageXOffset,k=m.pageYOffset;return{scrollLeft:V,scrollTop:k}}},44653:function(x,r,n){"use strict";r.__esModule=!0,r.default=m;var e=o(n(97617)),a=o(n(36748)),t=o(n(10416));function o(V){return V&&V.__esModule?V:{default:V}}function m(V){return(0,e.default)((0,a.default)(V)).left+(0,t.default)(V).scrollLeft}},75011:function(x,r,n){"use strict";r.__esModule=!0,r.isElement=t,r.isHTMLElement=o,r.isShadowRoot=m;var e=a(n(1866));function a(V){return V&&V.__esModule?V:{default:V}}function t(V){var k=(0,e.default)(V).Element;return V instanceof k||V instanceof Element}function o(V){var k=(0,e.default)(V).HTMLElement;return V instanceof k||V instanceof HTMLElement}function m(V){if(typeof ShadowRoot=="undefined")return!1;var k=(0,e.default)(V).ShadowRoot;return V instanceof k||V instanceof ShadowRoot}},45407:function(x,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(36110));function a(o){return o&&o.__esModule?o:{default:o}}function t(){return!/^((?!chrome|android).)*safari/i.test((0,e.default)())}},9135:function(x,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(77060));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var m=(0,e.default)(o),V=m.overflow,k=m.overflowX,S=m.overflowY;return/auto|scroll|overlay|hidden/.test(V+S+k)}},46795:function(x,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(72793));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return["table","td","th"].indexOf((0,e.default)(o))>=0}},97262:function(x,r,n){"use strict";r.__esModule=!0,r.default=V;var e=m(n(89523)),a=m(n(84330)),t=m(n(1866)),o=m(n(9135));function m(k){return k&&k.__esModule?k:{default:k}}function V(k,S){var N;S===void 0&&(S=[]);var h=(0,e.default)(k),s=h===((N=k.ownerDocument)==null?void 0:N.body),l=(0,t.default)(h),u=s?[l].concat(l.visualViewport||[],(0,o.default)(h)?h:[]):h,i=S.concat(u);return s?i:i.concat(V((0,a.default)(u)))}},83996:function(x,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",m=r.basePlacements=[n,e,a,t],V=r.start="start",k=r.end="end",S=r.clippingParents="clippingParents",N=r.viewport="viewport",h=r.popper="popper",s=r.reference="reference",l=r.variationPlacements=m.reduce(function(B,L){return B.concat([L+"-"+V,L+"-"+k])},[]),u=r.placements=[].concat(m,[o]).reduce(function(B,L){return B.concat([L,L+"-"+V,L+"-"+k])},[]),i=r.beforeRead="beforeRead",c=r.read="read",d=r.afterRead="afterRead",p=r.beforeMain="beforeMain",v=r.main="main",f=r.afterMain="afterMain",C=r.beforeWrite="beforeWrite",b=r.write="write",g=r.afterWrite="afterWrite",y=r.modifierPhases=[i,c,d,p,v,f,C,b,g]},92935:function(x,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(83996);Object.keys(a).forEach(function(k){k==="default"||k==="__esModule"||Object.prototype.hasOwnProperty.call(e,k)||k in r&&r[k]===a[k]||(r[k]=a[k])});var t=n(97934);Object.keys(t).forEach(function(k){k==="default"||k==="__esModule"||Object.prototype.hasOwnProperty.call(e,k)||k in r&&r[k]===t[k]||(r[k]=t[k])});var o=n(50252);r.popperGenerator=o.popperGenerator,r.detectOverflow=o.detectOverflow,r.createPopperBase=o.createPopper;var m=n(1728);r.createPopper=m.createPopper;var V=n(88037);r.createPopperLite=V.createPopper},38621:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=t(n(72793)),a=n(75011);function t(k){return k&&k.__esModule?k:{default:k}}function o(k){var S=k.state;Object.keys(S.elements).forEach(function(N){var h=S.styles[N]||{},s=S.attributes[N]||{},l=S.elements[N];!(0,a.isHTMLElement)(l)||!(0,e.default)(l)||(Object.assign(l.style,h),Object.keys(s).forEach(function(u){var i=s[u];i===!1?l.removeAttribute(u):l.setAttribute(u,i===!0?"":i)}))})}function m(k){var S=k.state,N={popper:{position:S.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(S.elements.popper.style,N.popper),S.styles=N,S.elements.arrow&&Object.assign(S.elements.arrow.style,N.arrow),function(){Object.keys(S.elements).forEach(function(h){var s=S.elements[h],l=S.attributes[h]||{},u=Object.keys(S.styles.hasOwnProperty(h)?S.styles[h]:N[h]),i=u.reduce(function(c,d){return c[d]="",c},{});!(0,a.isHTMLElement)(s)||!(0,e.default)(s)||(Object.assign(s.style,i),Object.keys(l).forEach(function(c){s.removeAttribute(c)}))})}}var V=r.default={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:m,requires:["computeStyles"]}},90860:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=h(n(85312)),a=h(n(92957)),t=h(n(89691)),o=h(n(66689)),m=h(n(86274)),V=n(52855),k=h(n(10632)),S=h(n(59597)),N=n(83996);function h(c){return c&&c.__esModule?c:{default:c}}var s=function(){function c(d,p){return d=typeof d=="function"?d(Object.assign({},p.rects,{placement:p.placement})):d,(0,k.default)(typeof d!="number"?d:(0,S.default)(d,N.basePlacements))}return c}();function l(c){var d,p=c.state,v=c.name,f=c.options,C=p.elements.arrow,b=p.modifiersData.popperOffsets,g=(0,e.default)(p.placement),y=(0,m.default)(g),B=[N.left,N.right].indexOf(g)>=0,L=B?"height":"width";if(!(!C||!b)){var I=s(f.padding,p),w=(0,a.default)(C),T=y==="y"?N.top:N.left,M=y==="y"?N.bottom:N.right,A=p.rects.reference[L]+p.rects.reference[y]-b[y]-p.rects.popper[L],R=b[y]-p.rects.reference[y],O=(0,o.default)(C),_=O?y==="y"?O.clientHeight||0:O.clientWidth||0:0,P=A/2-R/2,D=I[T],z=_-w[L]-I[M],U=_/2-w[L]/2+P,W=(0,V.within)(D,U,z),K=y;p.modifiersData[v]=(d={},d[K]=W,d.centerOffset=W-U,d)}}function u(c){var d=c.state,p=c.options,v=p.element,f=v===void 0?"[data-popper-arrow]":v;f!=null&&(typeof f=="string"&&(f=d.elements.popper.querySelector(f),!f)||(0,t.default)(d.elements.popper,f)&&(d.elements.arrow=f))}var i=r.default={name:"arrow",enabled:!0,phase:"main",fn:l,effect:u,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},15224:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.mapToStyles=l;var e=n(83996),a=N(n(66689)),t=N(n(1866)),o=N(n(36748)),m=N(n(77060)),V=N(n(85312)),k=N(n(48218)),S=n(14194);function N(c){return c&&c.__esModule?c:{default:c}}var h={top:"auto",right:"auto",bottom:"auto",left:"auto"};function s(c,d){var p=c.x,v=c.y,f=d.devicePixelRatio||1;return{x:(0,S.round)(p*f)/f||0,y:(0,S.round)(v*f)/f||0}}function l(c){var d,p=c.popper,v=c.popperRect,f=c.placement,C=c.variation,b=c.offsets,g=c.position,y=c.gpuAcceleration,B=c.adaptive,L=c.roundOffsets,I=c.isFixed,w=b.x,T=w===void 0?0:w,M=b.y,A=M===void 0?0:M,R=typeof L=="function"?L({x:T,y:A}):{x:T,y:A};T=R.x,A=R.y;var O=b.hasOwnProperty("x"),_=b.hasOwnProperty("y"),P=e.left,D=e.top,z=window;if(B){var U=(0,a.default)(p),W="clientHeight",K="clientWidth";if(U===(0,t.default)(p)&&(U=(0,o.default)(p),(0,m.default)(U).position!=="static"&&g==="absolute"&&(W="scrollHeight",K="scrollWidth")),U=U,f===e.top||(f===e.left||f===e.right)&&C===e.end){D=e.bottom;var H=I&&U===z&&z.visualViewport?z.visualViewport.height:U[W];A-=H-v.height,A*=y?1:-1}if(f===e.left||(f===e.top||f===e.bottom)&&C===e.end){P=e.right;var Y=I&&U===z&&z.visualViewport?z.visualViewport.width:U[K];T-=Y-v.width,T*=y?1:-1}}var J=Object.assign({position:g},B&&h),q=L===!0?s({x:T,y:A},(0,t.default)(p)):{x:T,y:A};if(T=q.x,A=q.y,y){var oe;return Object.assign({},J,(oe={},oe[D]=_?"0":"",oe[P]=O?"0":"",oe.transform=(z.devicePixelRatio||1)<=1?"translate("+T+"px, "+A+"px)":"translate3d("+T+"px, "+A+"px, 0)",oe))}return Object.assign({},J,(d={},d[D]=_?A+"px":"",d[P]=O?T+"px":"",d.transform="",d))}function u(c){var d=c.state,p=c.options,v=p.gpuAcceleration,f=v===void 0?!0:v,C=p.adaptive,b=C===void 0?!0:C,g=p.roundOffsets,y=g===void 0?!0:g,B={placement:(0,V.default)(d.placement),variation:(0,k.default)(d.placement),popper:d.elements.popper,popperRect:d.rects.popper,gpuAcceleration:f,isFixed:d.options.strategy==="fixed"};d.modifiersData.popperOffsets!=null&&(d.styles.popper=Object.assign({},d.styles.popper,l(Object.assign({},B,{offsets:d.modifiersData.popperOffsets,position:d.options.strategy,adaptive:b,roundOffsets:y})))),d.modifiersData.arrow!=null&&(d.styles.arrow=Object.assign({},d.styles.arrow,l(Object.assign({},B,{offsets:d.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:y})))),d.attributes.popper=Object.assign({},d.attributes.popper,{"data-popper-placement":d.placement})}var i=r.default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:u,data:{}}},59953:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(1866));function a(V){return V&&V.__esModule?V:{default:V}}var t={passive:!0};function o(V){var k=V.state,S=V.instance,N=V.options,h=N.scroll,s=h===void 0?!0:h,l=N.resize,u=l===void 0?!0:l,i=(0,e.default)(k.elements.popper),c=[].concat(k.scrollParents.reference,k.scrollParents.popper);return s&&c.forEach(function(d){d.addEventListener("scroll",S.update,t)}),u&&i.addEventListener("resize",S.update,t),function(){s&&c.forEach(function(d){d.removeEventListener("scroll",S.update,t)}),u&&i.removeEventListener("resize",S.update,t)}}var m=r.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){function V(){}return V}(),effect:o,data:{}}},21128:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=S(n(72310)),a=S(n(85312)),t=S(n(53379)),o=S(n(49883)),m=S(n(67450)),V=n(83996),k=S(n(48218));function S(l){return l&&l.__esModule?l:{default:l}}function N(l){if((0,a.default)(l)===V.auto)return[];var u=(0,e.default)(l);return[(0,t.default)(l),u,(0,t.default)(u)]}function h(l){var u=l.state,i=l.options,c=l.name;if(!u.modifiersData[c]._skip){for(var d=i.mainAxis,p=d===void 0?!0:d,v=i.altAxis,f=v===void 0?!0:v,C=i.fallbackPlacements,b=i.padding,g=i.boundary,y=i.rootBoundary,B=i.altBoundary,L=i.flipVariations,I=L===void 0?!0:L,w=i.allowedAutoPlacements,T=u.options.placement,M=(0,a.default)(T),A=M===T,R=C||(A||!I?[(0,e.default)(T)]:N(T)),O=[T].concat(R).reduce(function(ee,ie){return ee.concat((0,a.default)(ie)===V.auto?(0,m.default)(u,{placement:ie,boundary:g,rootBoundary:y,padding:b,flipVariations:I,allowedAutoPlacements:w}):ie)},[]),_=u.rects.reference,P=u.rects.popper,D=new Map,z=!0,U=O[0],W=0;W<O.length;W++){var K=O[W],H=(0,a.default)(K),Y=(0,k.default)(K)===V.start,J=[V.top,V.bottom].indexOf(H)>=0,q=J?"width":"height",oe=(0,o.default)(u,{placement:K,boundary:g,rootBoundary:y,altBoundary:B,padding:b}),ae=J?Y?V.right:V.left:Y?V.bottom:V.top;_[q]>P[q]&&(ae=(0,e.default)(ae));var le=(0,e.default)(ae),he=[];if(p&&he.push(oe[H]<=0),f&&he.push(oe[ae]<=0,oe[le]<=0),he.every(function(ee){return ee})){U=K,z=!1;break}D.set(K,he)}if(z)for(var me=I?3:1,Be=function(){function ee(ie){var Ce=O.find(function(Se){var we=D.get(Se);if(we)return we.slice(0,ie).every(function(pe){return pe})});if(Ce)return U=Ce,"break"}return ee}(),ce=me;ce>0;ce--){var te=Be(ce);if(te==="break")break}u.placement!==U&&(u.modifiersData[c]._skip=!0,u.placement=U,u.reset=!0)}}var s=r.default={name:"flip",enabled:!0,phase:"main",fn:h,requiresIfExists:["offset"],data:{_skip:!1}}},17945:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(83996),a=t(n(49883));function t(S){return S&&S.__esModule?S:{default:S}}function o(S,N,h){return h===void 0&&(h={x:0,y:0}),{top:S.top-N.height-h.y,right:S.right-N.width+h.x,bottom:S.bottom-N.height+h.y,left:S.left-N.width-h.x}}function m(S){return[e.top,e.right,e.bottom,e.left].some(function(N){return S[N]>=0})}function V(S){var N=S.state,h=S.name,s=N.rects.reference,l=N.rects.popper,u=N.modifiersData.preventOverflow,i=(0,a.default)(N,{elementContext:"reference"}),c=(0,a.default)(N,{altBoundary:!0}),d=o(i,s),p=o(c,l,u),v=m(d),f=m(p);N.modifiersData[h]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:v,hasPopperEscaped:f},N.attributes.popper=Object.assign({},N.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":f})}var k=r.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:V}},97934:function(x,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(38621));r.applyStyles=e.default;var a=h(n(90860));r.arrow=a.default;var t=h(n(15224));r.computeStyles=t.default;var o=h(n(59953));r.eventListeners=o.default;var m=h(n(21128));r.flip=m.default;var V=h(n(17945));r.hide=V.default;var k=h(n(90642));r.offset=k.default;var S=h(n(23786));r.popperOffsets=S.default;var N=h(n(78230));r.preventOverflow=N.default;function h(s){return s&&s.__esModule?s:{default:s}}},90642:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.distanceAndSkiddingToXY=o;var e=t(n(85312)),a=n(83996);function t(k){return k&&k.__esModule?k:{default:k}}function o(k,S,N){var h=(0,e.default)(k),s=[a.left,a.top].indexOf(h)>=0?-1:1,l=typeof N=="function"?N(Object.assign({},S,{placement:k})):N,u=l[0],i=l[1];return u=u||0,i=(i||0)*s,[a.left,a.right].indexOf(h)>=0?{x:i,y:u}:{x:u,y:i}}function m(k){var S=k.state,N=k.options,h=k.name,s=N.offset,l=s===void 0?[0,0]:s,u=a.placements.reduce(function(p,v){return p[v]=o(v,S.rects,l),p},{}),i=u[S.placement],c=i.x,d=i.y;S.modifiersData.popperOffsets!=null&&(S.modifiersData.popperOffsets.x+=c,S.modifiersData.popperOffsets.y+=d),S.modifiersData[h]=u}var V=r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:m}},23786:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(85694));function a(m){return m&&m.__esModule?m:{default:m}}function t(m){var V=m.state,k=m.name;V.modifiersData[k]=(0,e.default)({reference:V.rects.reference,element:V.rects.popper,strategy:"absolute",placement:V.placement})}var o=r.default={name:"popperOffsets",enabled:!0,phase:"read",fn:t,data:{}}},78230:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(83996),a=l(n(85312)),t=l(n(86274)),o=l(n(4320)),m=n(52855),V=l(n(92957)),k=l(n(66689)),S=l(n(49883)),N=l(n(48218)),h=l(n(23941)),s=n(14194);function l(c){return c&&c.__esModule?c:{default:c}}function u(c){var d=c.state,p=c.options,v=c.name,f=p.mainAxis,C=f===void 0?!0:f,b=p.altAxis,g=b===void 0?!1:b,y=p.boundary,B=p.rootBoundary,L=p.altBoundary,I=p.padding,w=p.tether,T=w===void 0?!0:w,M=p.tetherOffset,A=M===void 0?0:M,R=(0,S.default)(d,{boundary:y,rootBoundary:B,padding:I,altBoundary:L}),O=(0,a.default)(d.placement),_=(0,N.default)(d.placement),P=!_,D=(0,t.default)(O),z=(0,o.default)(D),U=d.modifiersData.popperOffsets,W=d.rects.reference,K=d.rects.popper,H=typeof A=="function"?A(Object.assign({},d.rects,{placement:d.placement})):A,Y=typeof H=="number"?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),J=d.modifiersData.offset?d.modifiersData.offset[d.placement]:null,q={x:0,y:0};if(U){if(C){var oe,ae=D==="y"?e.top:e.left,le=D==="y"?e.bottom:e.right,he=D==="y"?"height":"width",me=U[D],Be=me+R[ae],ce=me-R[le],te=T?-K[he]/2:0,ee=_===e.start?W[he]:K[he],ie=_===e.start?-K[he]:-W[he],Ce=d.elements.arrow,Se=T&&Ce?(0,V.default)(Ce):{width:0,height:0},we=d.modifiersData["arrow#persistent"]?d.modifiersData["arrow#persistent"].padding:(0,h.default)(),pe=we[ae],E=we[le],Z=(0,m.within)(0,W[he],Se[he]),re=P?W[he]/2-te-Z-pe-Y.mainAxis:ee-Z-pe-Y.mainAxis,X=P?-W[he]/2+te+Z+E+Y.mainAxis:ie+Z+E+Y.mainAxis,ne=d.elements.arrow&&(0,k.default)(d.elements.arrow),ve=ne?D==="y"?ne.clientTop||0:ne.clientLeft||0:0,Ve=(oe=J==null?void 0:J[D])!=null?oe:0,Ie=me+re-Ve-ve,Pe=me+X-Ve,Ae=(0,m.within)(T?(0,s.min)(Be,Ie):Be,me,T?(0,s.max)(ce,Pe):ce);U[D]=Ae,q[D]=Ae-me}if(g){var Oe,de=D==="x"?e.top:e.left,ge=D==="x"?e.bottom:e.right,j=U[z],ue=z==="y"?"height":"width",be=j+R[de],ke=j-R[ge],Te=[e.top,e.left].indexOf(O)!==-1,Ee=(Oe=J==null?void 0:J[z])!=null?Oe:0,Re=Te?be:j-W[ue]-K[ue]-Ee+Y.altAxis,_e=Te?j+W[ue]+K[ue]-Ee-Y.altAxis:ke,De=T&&Te?(0,m.withinMaxClamp)(Re,j,_e):(0,m.within)(T?Re:be,j,T?_e:ke);U[z]=De,q[z]=De-j}d.modifiersData[v]=q}}var i=r.default={name:"preventOverflow",enabled:!0,phase:"main",fn:u,requiresIfExists:["offset"]}},88037:function(x,r,n){"use strict";r.__esModule=!0,r.defaultModifiers=r.createPopper=void 0;var e=n(50252);r.popperGenerator=e.popperGenerator,r.detectOverflow=e.detectOverflow;var a=V(n(59953)),t=V(n(23786)),o=V(n(15224)),m=V(n(38621));function V(N){return N&&N.__esModule?N:{default:N}}var k=r.defaultModifiers=[a.default,t.default,o.default,m.default],S=r.createPopper=(0,e.popperGenerator)({defaultModifiers:k})},1728:function(x,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(50252);r.popperGenerator=a.popperGenerator,r.detectOverflow=a.detectOverflow;var t=i(n(59953)),o=i(n(23786)),m=i(n(15224)),V=i(n(38621)),k=i(n(90642)),S=i(n(21128)),N=i(n(78230)),h=i(n(90860)),s=i(n(17945)),l=n(88037);r.createPopperLite=l.createPopper;var u=n(97934);Object.keys(u).forEach(function(p){p==="default"||p==="__esModule"||Object.prototype.hasOwnProperty.call(e,p)||p in r&&r[p]===u[p]||(r[p]=u[p])});function i(p){return p&&p.__esModule?p:{default:p}}var c=r.defaultModifiers=[t.default,o.default,m.default,V.default,k.default,S.default,N.default,h.default,s.default],d=r.createPopperLite=r.createPopper=(0,a.popperGenerator)({defaultModifiers:c})},67450:function(x,r,n){"use strict";r.__esModule=!0,r.default=V;var e=m(n(48218)),a=n(83996),t=m(n(49883)),o=m(n(85312));function m(k){return k&&k.__esModule?k:{default:k}}function V(k,S){S===void 0&&(S={});var N=S,h=N.placement,s=N.boundary,l=N.rootBoundary,u=N.padding,i=N.flipVariations,c=N.allowedAutoPlacements,d=c===void 0?a.placements:c,p=(0,e.default)(h),v=p?i?a.variationPlacements:a.variationPlacements.filter(function(b){return(0,e.default)(b)===p}):a.basePlacements,f=v.filter(function(b){return d.indexOf(b)>=0});f.length===0&&(f=v);var C=f.reduce(function(b,g){return b[g]=(0,t.default)(k,{placement:g,boundary:s,rootBoundary:l,padding:u})[(0,o.default)(g)],b},{});return Object.keys(C).sort(function(b,g){return C[b]-C[g]})}},85694:function(x,r,n){"use strict";r.__esModule=!0,r.default=V;var e=m(n(85312)),a=m(n(48218)),t=m(n(86274)),o=n(83996);function m(k){return k&&k.__esModule?k:{default:k}}function V(k){var S=k.reference,N=k.element,h=k.placement,s=h?(0,e.default)(h):null,l=h?(0,a.default)(h):null,u=S.x+S.width/2-N.width/2,i=S.y+S.height/2-N.height/2,c;switch(s){case o.top:c={x:u,y:S.y-N.height};break;case o.bottom:c={x:u,y:S.y+S.height};break;case o.right:c={x:S.x+S.width,y:i};break;case o.left:c={x:S.x-N.width,y:i};break;default:c={x:S.x,y:S.y}}var d=s?(0,t.default)(s):null;if(d!=null){var p=d==="y"?"height":"width";switch(l){case o.start:c[d]=c[d]-(S[p]/2-N[p]/2);break;case o.end:c[d]=c[d]+(S[p]/2-N[p]/2);break;default:}}return c}},63889:function(x,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}}},49883:function(x,r,n){"use strict";r.__esModule=!0,r.default=s;var e=h(n(35823)),a=h(n(36748)),t=h(n(97617)),o=h(n(85694)),m=h(n(14834)),V=n(83996),k=n(75011),S=h(n(10632)),N=h(n(59597));function h(l){return l&&l.__esModule?l:{default:l}}function s(l,u){u===void 0&&(u={});var i=u,c=i.placement,d=c===void 0?l.placement:c,p=i.strategy,v=p===void 0?l.strategy:p,f=i.boundary,C=f===void 0?V.clippingParents:f,b=i.rootBoundary,g=b===void 0?V.viewport:b,y=i.elementContext,B=y===void 0?V.popper:y,L=i.altBoundary,I=L===void 0?!1:L,w=i.padding,T=w===void 0?0:w,M=(0,S.default)(typeof T!="number"?T:(0,N.default)(T,V.basePlacements)),A=B===V.popper?V.reference:V.popper,R=l.rects.popper,O=l.elements[I?A:B],_=(0,e.default)((0,k.isElement)(O)?O:O.contextElement||(0,a.default)(l.elements.popper),C,g,v),P=(0,t.default)(l.elements.reference),D=(0,o.default)({reference:P,element:R,strategy:"absolute",placement:d}),z=(0,m.default)(Object.assign({},R,D)),U=B===V.popper?z:P,W={top:_.top-U.top+M.top,bottom:U.bottom-_.bottom+M.bottom,left:_.left-U.left+M.left,right:U.right-_.right+M.right},K=l.modifiersData.offset;if(B===V.popper&&K){var H=K[d];Object.keys(W).forEach(function(Y){var J=[V.right,V.bottom].indexOf(Y)>=0?1:-1,q=[V.top,V.bottom].indexOf(Y)>=0?"y":"x";W[Y]+=H[q]*J})}return W}},59597:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(e,a){return a.reduce(function(t,o){return t[o]=e,t},{})}},4320:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e==="x"?"y":"x"}},85312:function(x,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(83996);function a(t){return t.split("-")[0]}},23941:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(){return{top:0,right:0,bottom:0,left:0}}},86274:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}},72310:function(x,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]})}},53379:function(x,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]})}},48218:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e.split("-")[1]}},14194:function(x,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},27343:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a=e.reduce(function(t,o){var m=t[o.name];return t[o.name]=m?Object.assign({},m,o,{options:Object.assign({},m.options,o.options),data:Object.assign({},m.data,o.data)}):o,t},{});return Object.keys(a).map(function(t){return a[t]})}},10632:function(x,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(23941));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return Object.assign({},(0,e.default)(),o)}},47307:function(x,r,n){"use strict";r.__esModule=!0,r.default=t;var e=n(83996);function a(o){var m=new Map,V=new Set,k=[];o.forEach(function(N){m.set(N.name,N)});function S(N){V.add(N.name);var h=[].concat(N.requires||[],N.requiresIfExists||[]);h.forEach(function(s){if(!V.has(s)){var l=m.get(s);l&&S(l)}}),k.push(N)}return o.forEach(function(N){V.has(N.name)||S(N)}),k}function t(o){var m=a(o);return e.modifierPhases.reduce(function(V,k){return V.concat(m.filter(function(S){return S.phase===k}))},[])}},14834:function(x,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})}},36110:function(x,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}},52855:function(x,r,n){"use strict";r.__esModule=!0,r.within=a,r.withinMaxClamp=t;var e=n(14194);function a(o,m,V){return(0,e.max)(o,(0,e.min)(m,V))}function t(o,m,V){var k=a(o,m,V);return k>V?V:k}},90928:function(x,r,n){"use strict";var e;function a(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?a=function(){function o(m){return typeof m}return o}():a=function(){function o(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m}return o}(),a(t)}(function(t){var o=arguments,m=function(){var s=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,l=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,u=/[^-+\dA-Z]/g;return function(i,c,d,p){if(o.length===1&&h(i)==="string"&&!/\d/.test(i)&&(c=i,i=void 0),i=i||i===0?i:new Date,i instanceof Date||(i=new Date(i)),isNaN(i))throw TypeError("Invalid date");c=String(m.masks[c]||c||m.masks.default);var v=c.slice(0,4);(v==="UTC:"||v==="GMT:")&&(c=c.slice(4),d=!0,v==="GMT:"&&(p=!0));var f=function(){function O(){return d?"getUTC":"get"}return O}(),C=function(){function O(){return i[f()+"Date"]()}return O}(),b=function(){function O(){return i[f()+"Day"]()}return O}(),g=function(){function O(){return i[f()+"Month"]()}return O}(),y=function(){function O(){return i[f()+"FullYear"]()}return O}(),B=function(){function O(){return i[f()+"Hours"]()}return O}(),L=function(){function O(){return i[f()+"Minutes"]()}return O}(),I=function(){function O(){return i[f()+"Seconds"]()}return O}(),w=function(){function O(){return i[f()+"Milliseconds"]()}return O}(),T=function(){function O(){return d?0:i.getTimezoneOffset()}return O}(),M=function(){function O(){return S(i)}return O}(),A=function(){function O(){return N(i)}return O}(),R={d:function(){function O(){return C()}return O}(),dd:function(){function O(){return V(C())}return O}(),ddd:function(){function O(){return m.i18n.dayNames[b()]}return O}(),DDD:function(){function O(){return k({y:y(),m:g(),d:C(),_:f(),dayName:m.i18n.dayNames[b()],short:!0})}return O}(),dddd:function(){function O(){return m.i18n.dayNames[b()+7]}return O}(),DDDD:function(){function O(){return k({y:y(),m:g(),d:C(),_:f(),dayName:m.i18n.dayNames[b()+7]})}return O}(),m:function(){function O(){return g()+1}return O}(),mm:function(){function O(){return V(g()+1)}return O}(),mmm:function(){function O(){return m.i18n.monthNames[g()]}return O}(),mmmm:function(){function O(){return m.i18n.monthNames[g()+12]}return O}(),yy:function(){function O(){return String(y()).slice(2)}return O}(),yyyy:function(){function O(){return V(y(),4)}return O}(),h:function(){function O(){return B()%12||12}return O}(),hh:function(){function O(){return V(B()%12||12)}return O}(),H:function(){function O(){return B()}return O}(),HH:function(){function O(){return V(B())}return O}(),M:function(){function O(){return L()}return O}(),MM:function(){function O(){return V(L())}return O}(),s:function(){function O(){return I()}return O}(),ss:function(){function O(){return V(I())}return O}(),l:function(){function O(){return V(w(),3)}return O}(),L:function(){function O(){return V(Math.floor(w()/10))}return O}(),t:function(){function O(){return B()<12?m.i18n.timeNames[0]:m.i18n.timeNames[1]}return O}(),tt:function(){function O(){return B()<12?m.i18n.timeNames[2]:m.i18n.timeNames[3]}return O}(),T:function(){function O(){return B()<12?m.i18n.timeNames[4]:m.i18n.timeNames[5]}return O}(),TT:function(){function O(){return B()<12?m.i18n.timeNames[6]:m.i18n.timeNames[7]}return O}(),Z:function(){function O(){return p?"GMT":d?"UTC":(String(i).match(l)||[""]).pop().replace(u,"").replace(/GMT\+0000/g,"UTC")}return O}(),o:function(){function O(){return(T()>0?"-":"+")+V(Math.floor(Math.abs(T())/60)*100+Math.abs(T())%60,4)}return O}(),p:function(){function O(){return(T()>0?"-":"+")+V(Math.floor(Math.abs(T())/60),2)+":"+V(Math.floor(Math.abs(T())%60),2)}return O}(),S:function(){function O(){return["th","st","nd","rd"][C()%10>3?0:(C()%100-C()%10!=10)*C()%10]}return O}(),W:function(){function O(){return M()}return O}(),WW:function(){function O(){return V(M())}return O}(),N:function(){function O(){return A()}return O}()};return c.replace(s,function(O){return O in R?R[O]():O.slice(1,O.length-1)})}}();m.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},m.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]};var V=function(){function s(l,u){for(l=String(l),u=u||2;l.length<u;)l="0"+l;return l}return s}(),k=function(){function s(l){var u=l.y,i=l.m,c=l.d,d=l._,p=l.dayName,v=l.short,f=v===void 0?!1:v,C=new Date,b=new Date;b.setDate(b[d+"Date"]()-1);var g=new Date;g.setDate(g[d+"Date"]()+1);var y=function(){function O(){return C[d+"Date"]()}return O}(),B=function(){function O(){return C[d+"Month"]()}return O}(),L=function(){function O(){return C[d+"FullYear"]()}return O}(),I=function(){function O(){return b[d+"Date"]()}return O}(),w=function(){function O(){return b[d+"Month"]()}return O}(),T=function(){function O(){return b[d+"FullYear"]()}return O}(),M=function(){function O(){return g[d+"Date"]()}return O}(),A=function(){function O(){return g[d+"Month"]()}return O}(),R=function(){function O(){return g[d+"FullYear"]()}return O}();return L()===u&&B()===i&&y()===c?f?"Tdy":"Today":T()===u&&w()===i&&I()===c?f?"Ysd":"Yesterday":R()===u&&A()===i&&M()===c?f?"Tmw":"Tomorrow":p}return s}(),S=function(){function s(l){var u=new Date(l.getFullYear(),l.getMonth(),l.getDate());u.setDate(u.getDate()-(u.getDay()+6)%7+3);var i=new Date(u.getFullYear(),0,4);i.setDate(i.getDate()-(i.getDay()+6)%7+3);var c=u.getTimezoneOffset()-i.getTimezoneOffset();u.setHours(u.getHours()-c);var d=(u-i)/(864e5*7);return 1+Math.floor(d)}return s}(),N=function(){function s(l){var u=l.getDay();return u===0&&(u=7),u}return s}(),h=function(){function s(l){return l===null?"null":l===void 0?"undefined":a(l)!=="object"?a(l):Array.isArray(l)?"array":{}.toString.call(l).slice(8,-1).toLowerCase()}return s}();e=function(){return m}.call(r,n,r,x),e!==void 0&&(x.exports=e)})(void 0)},22182:function(x,r){"use strict";r.__esModule=!0,r.Fragment=r.EMPTY_OBJ=r.Component=void 0,r._CI=_t,r._HI=Be,r._M=Je,r._MCCC=nn,r._ME=xt,r._MFCC=Rt,r._MP=Jt,r._MR=dt,r._RFC=It,r.__render=zt,r.createComponentVNode=W,r.createFragment=H,r.createPortal=ae,r.createRef=Ot,r.createRenderer=gn,r.createTextVNode=K,r.createVNode=P,r.directClone=q,r.findDOMfromVNode=g,r.forwardRef=Pt,r.getFlagsForElementVnode=he,r.linkEvent=h,r.normalizeProps=Y,r.options=void 0,r.render=Ut,r.rerender=Gt,r.version=void 0;var n=Array.isArray;function e(F){var G=typeof F;return G==="string"||G==="number"}function a(F){return F==null}function t(F){return F===null||F===!1||F===!0||F===void 0}function o(F){return typeof F=="function"}function m(F){return typeof F=="string"}function V(F){return typeof F=="number"}function k(F){return F===null}function S(F){return F===void 0}function N(F,G){var Q={};if(F)for(var se in F)Q[se]=F[se];if(G)for(var Ne in G)Q[Ne]=G[Ne];return Q}function h(F,G){return o(G)?{data:F,event:G}:null}function s(F){return!k(F)&&typeof F=="object"}var l=r.EMPTY_OBJ={},u=r.Fragment="$F";function i(F){return F.substr(2).toLowerCase()}function c(F,G){F.appendChild(G)}function d(F,G,Q){k(Q)?c(F,G):F.insertBefore(G,Q)}function p(F,G){return G?document.createElementNS("http://www.w3.org/2000/svg",F):document.createElement(F)}function v(F,G,Q){F.replaceChild(G,Q)}function f(F,G){F.removeChild(G)}function C(F){for(var G=0;G<F.length;G++)F[G]()}function b(F,G,Q){var se=F.children;return Q&4?se.$LI:Q&8192?F.childFlags===2?se:se[G?0:se.length-1]:se}function g(F,G){for(var Q;F;){if(Q=F.flags,Q&2033)return F.dom;F=b(F,G,Q)}return null}function y(F,G){do{var Q=F.flags;if(Q&2033){f(G,F.dom);return}var se=F.children;if(Q&4&&(F=se.$LI),Q&8&&(F=se),Q&8192)if(F.childFlags===2)F=se;else{for(var Ne=0,ye=se.length;Ne<ye;++Ne)y(se[Ne],G);return}}while(F)}function B(F,G,Q){do{var se=F.flags;if(se&2033){d(G,F.dom,Q);return}var Ne=F.children;if(se&4&&(F=Ne.$LI),se&8&&(F=Ne),se&8192)if(F.childFlags===2)F=Ne;else{for(var ye=0,Le=Ne.length;ye<Le;++ye)B(Ne[ye],G,Q);return}}while(F)}function L(F,G,Q){return F.constructor.getDerivedStateFromProps?N(Q,F.constructor.getDerivedStateFromProps(G,Q)):Q}var I={v:!1},w=r.options={componentComparator:null,createVNode:null,renderComplete:null};function T(F,G){F.textContent=G}function M(F,G){return s(F)&&F.event===G.event&&F.data===G.data}function A(F,G){for(var Q in G)S(F[Q])&&(F[Q]=G[Q]);return F}function R(F,G){return!!o(F)&&(F(G),!0)}var O="$";function _(F,G,Q,se,Ne,ye,Le,xe){this.childFlags=F,this.children=G,this.className=Q,this.dom=null,this.flags=se,this.key=Ne===void 0?null:Ne,this.props=ye===void 0?null:ye,this.ref=Le===void 0?null:Le,this.type=xe}function P(F,G,Q,se,Ne,ye,Le,xe){var We=Ne===void 0?1:Ne,Fe=new _(We,se,Q,F,Le,ye,xe,G);return w.createVNode&&w.createVNode(Fe),We===0&&me(Fe,Fe.children),Fe}function D(F,G,Q){if(F&4)return Q;var se=(F&32768?G.render:G).defaultHooks;return a(se)?Q:a(Q)?se:A(Q,se)}function z(F,G,Q){var se=(F&32768?G.render:G).defaultProps;return a(se)?Q:a(Q)?N(se,null):A(Q,se)}function U(F,G){return F&12?F:G.prototype&&G.prototype.render?4:G.render?32776:8}function W(F,G,Q,se,Ne){F=U(F,G);var ye=new _(1,null,null,F,se,z(F,G,Q),D(F,G,Ne),G);return w.createVNode&&w.createVNode(ye),ye}function K(F,G){return new _(1,a(F)||F===!0||F===!1?"":F,null,16,G,null,null,null)}function H(F,G,Q){var se=P(8192,8192,null,F,G,null,Q,null);switch(se.childFlags){case 1:se.children=oe(),se.childFlags=2;break;case 16:se.children=[K(F)],se.childFlags=4;break}return se}function Y(F){var G=F.props;if(G){var Q=F.flags;Q&481&&(G.children!==void 0&&a(F.children)&&me(F,G.children),G.className!==void 0&&(a(F.className)&&(F.className=G.className||null),G.className=void 0)),G.key!==void 0&&(F.key=G.key,G.key=void 0),G.ref!==void 0&&(Q&8?F.ref=N(F.ref,G.ref):F.ref=G.ref,G.ref=void 0)}return F}function J(F){var G=F.children,Q=F.childFlags;return H(Q===2?q(G):G.map(q),Q,F.key)}function q(F){var G=F.flags&-16385,Q=F.props;if(G&14&&!k(Q)){var se=Q;Q={};for(var Ne in se)Q[Ne]=se[Ne]}return G&8192?J(F):new _(F.childFlags,F.children,F.className,G,F.key,Q,F.ref,F.type)}function oe(){return K("",null)}function ae(F,G){var Q=Be(F);return P(1024,1024,null,Q,0,null,Q.key,G)}function le(F,G,Q,se){for(var Ne=F.length;Q<Ne;Q++){var ye=F[Q];if(!t(ye)){var Le=se+O+Q;if(n(ye))le(ye,G,0,Le);else{if(e(ye))ye=K(ye,Le);else{var xe=ye.key,We=m(xe)&&xe[0]===O;(ye.flags&81920||We)&&(ye=q(ye)),ye.flags|=65536,We?xe.substring(0,se.length)!==se&&(ye.key=se+xe):k(xe)?ye.key=Le:ye.key=se+xe}G.push(ye)}}}}function he(F){switch(F){case"svg":return 32;case"input":return 64;case"select":return 256;case"textarea":return 128;case u:return 8192;default:return 1}}function me(F,G){var Q,se=1;if(t(G))Q=G;else if(e(G))se=16,Q=G;else if(n(G)){for(var Ne=G.length,ye=0;ye<Ne;++ye){var Le=G[ye];if(t(Le)||n(Le)){Q=Q||G.slice(0,ye),le(G,Q,ye,"");break}else if(e(Le))Q=Q||G.slice(0,ye),Q.push(K(Le,O+ye));else{var xe=Le.key,We=(Le.flags&81920)>0,Fe=k(xe),je=m(xe)&&xe[0]===O;We||Fe||je?(Q=Q||G.slice(0,ye),(We||je)&&(Le=q(Le)),(Fe||je)&&(Le.key=O+ye),Q.push(Le)):Q&&Q.push(Le),Le.flags|=65536}}Q=Q||G,Q.length===0?se=1:se=8}else Q=G,Q.flags|=65536,G.flags&81920&&(Q=q(G)),se=2;return F.children=Q,F.childFlags=se,F}function Be(F){return t(F)||e(F)?K(F,null):n(F)?H(F,0,null):F.flags&16384?q(F):F}var ce="http://www.w3.org/1999/xlink",te="http://www.w3.org/XML/1998/namespace",ee={"xlink:actuate":ce,"xlink:arcrole":ce,"xlink:href":ce,"xlink:role":ce,"xlink:show":ce,"xlink:title":ce,"xlink:type":ce,"xml:base":te,"xml:lang":te,"xml:space":te};function ie(F){return{onClick:F,onDblClick:F,onFocusIn:F,onFocusOut:F,onKeyDown:F,onKeyPress:F,onKeyUp:F,onMouseDown:F,onMouseMove:F,onMouseUp:F,onTouchEnd:F,onTouchMove:F,onTouchStart:F}}var Ce=ie(0),Se=ie(null),we=ie(!0);function pe(F,G){var Q=G.$EV;return Q||(Q=G.$EV=ie(null)),Q[F]||++Ce[F]===1&&(Se[F]=Oe(F)),Q}function E(F,G){var Q=G.$EV;Q&&Q[F]&&(--Ce[F]===0&&(document.removeEventListener(i(F),Se[F]),Se[F]=null),Q[F]=null)}function Z(F,G,Q,se){if(o(Q))pe(F,se)[F]=Q;else if(s(Q)){if(M(G,Q))return;pe(F,se)[F]=Q}else E(F,se)}function re(F){return o(F.composedPath)?F.composedPath()[0]:F.target}function X(F,G,Q,se){var Ne=re(F);do{if(G&&Ne.disabled)return;var ye=Ne.$EV;if(ye){var Le=ye[Q];if(Le&&(se.dom=Ne,Le.event?Le.event(Le.data,F):Le(F),F.cancelBubble))return}Ne=Ne.parentNode}while(!k(Ne))}function ne(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function ve(){return this.defaultPrevented}function Ve(){return this.cancelBubble}function Ie(F){var G={dom:document};return F.isDefaultPrevented=ve,F.isPropagationStopped=Ve,F.stopPropagation=ne,Object.defineProperty(F,"currentTarget",{configurable:!0,get:function(){function Q(){return G.dom}return Q}()}),G}function Pe(F){return function(G){if(G.button!==0){G.stopPropagation();return}X(G,!0,F,Ie(G))}}function Ae(F){return function(G){X(G,!1,F,Ie(G))}}function Oe(F){var G=F==="onClick"||F==="onDblClick"?Pe(F):Ae(F);return document.addEventListener(i(F),G),G}function de(F,G){var Q=document.createElement("i");return Q.innerHTML=G,Q.innerHTML===F.innerHTML}function ge(F,G,Q){if(F[G]){var se=F[G];se.event?se.event(se.data,Q):se(Q)}else{var Ne=G.toLowerCase();F[Ne]&&F[Ne](Q)}}function j(F,G){var Q=function(Ne){var ye=this.$V;if(ye){var Le=ye.props||l,xe=ye.dom;if(m(F))ge(Le,F,Ne);else for(var We=0;We<F.length;++We)ge(Le,F[We],Ne);if(o(G)){var Fe=this.$V,je=Fe.props||l;G(je,xe,!1,Fe)}}};return Object.defineProperty(Q,"wrapped",{configurable:!1,enumerable:!1,value:!0,writable:!1}),Q}function ue(F,G,Q){var se="$"+G,Ne=F[se];if(Ne){if(Ne[1].wrapped)return;F.removeEventListener(Ne[0],Ne[1]),F[se]=null}o(Q)&&(F.addEventListener(G,Q),F[se]=[G,Q])}function be(F){return F==="checkbox"||F==="radio"}var ke=j("onInput",_e),Te=j(["onClick","onChange"],_e);function Ee(F){F.stopPropagation()}Ee.wrapped=!0;function Re(F,G){be(G.type)?(ue(F,"change",Te),ue(F,"click",Ee)):ue(F,"input",ke)}function _e(F,G){var Q=F.type,se=F.value,Ne=F.checked,ye=F.multiple,Le=F.defaultValue,xe=!a(se);Q&&Q!==G.type&&G.setAttribute("type",Q),!a(ye)&&ye!==G.multiple&&(G.multiple=ye),!a(Le)&&!xe&&(G.defaultValue=Le+""),be(Q)?(xe&&(G.value=se),a(Ne)||(G.checked=Ne)):xe&&G.value!==se?(G.defaultValue=se,G.value=se):a(Ne)||(G.checked=Ne)}function De(F,G){if(F.type==="option")Ue(F,G);else{var Q=F.children,se=F.flags;if(se&4)De(Q.$LI,G);else if(se&8)De(Q,G);else if(F.childFlags===2)De(Q,G);else if(F.childFlags&12)for(var Ne=0,ye=Q.length;Ne<ye;++Ne)De(Q[Ne],G)}}function Ue(F,G){var Q=F.props||l,se=F.dom;se.value=Q.value,Q.value===G||n(G)&&G.indexOf(Q.value)!==-1?se.selected=!0:(!a(G)||!a(Q.selected))&&(se.selected=Q.selected||!1)}var Xe=j("onChange",$e);function Qe(F){ue(F,"change",Xe)}function $e(F,G,Q,se){var Ne=!!F.multiple;!a(F.multiple)&&Ne!==G.multiple&&(G.multiple=Ne);var ye=F.selectedIndex;ye===-1&&(G.selectedIndex=-1);var Le=se.childFlags;if(Le!==1){var xe=F.value;V(ye)&&ye>-1&&G.options[ye]&&(xe=G.options[ye].value),Q&&a(xe)&&(xe=F.defaultValue),De(se,xe)}}var ht=j("onInput",kt),lt=j("onChange");function ut(F,G){ue(F,"input",ht),G.onChange&&ue(F,"change",lt)}function kt(F,G,Q){var se=F.value,Ne=G.value;if(a(se)){if(Q){var ye=F.defaultValue;!a(ye)&&ye!==Ne&&(G.defaultValue=ye,G.value=ye)}}else Ne!==se&&(G.defaultValue=se,G.value=se)}function St(F,G,Q,se,Ne,ye){F&64?_e(se,Q):F&256?$e(se,Q,Ne,G):F&128&&kt(se,Q,Ne),ye&&(Q.$V=G)}function Mt(F,G,Q){F&64?Re(G,Q):F&256?Qe(G):F&128&&ut(G,Q)}function Bt(F){return F.type&&be(F.type)?!a(F.checked):!a(F.value)}function Ot(){return{current:null}}function Pt(F){return{render:F}}function Ct(F){F&&!R(F,null)&&F.current&&(F.current=null)}function dt(F,G,Q){F&&(o(F)||F.current!==void 0)&&Q.push(function(){!R(F,G)&&F.current!==void 0&&(F.current=G)})}function et(F,G){nt(F),y(F,G)}function nt(F){var G=F.flags,Q=F.children,se;if(G&481){se=F.ref;var Ne=F.props;Ct(se);var ye=F.childFlags;if(!k(Ne))for(var Le=Object.keys(Ne),xe=0,We=Le.length;xe<We;xe++){var Fe=Le[xe];we[Fe]&&E(Fe,F.dom)}ye&12?st(Q):ye===2&&nt(Q)}else Q&&(G&4?(o(Q.componentWillUnmount)&&Q.componentWillUnmount(),Ct(F.ref),Q.$UN=!0,nt(Q.$LI)):G&8?(se=F.ref,!a(se)&&o(se.onComponentWillUnmount)&&se.onComponentWillUnmount(g(F,!0),F.props||l),nt(Q)):G&1024?et(Q,F.ref):G&8192&&F.childFlags&12&&st(Q))}function st(F){for(var G=0,Q=F.length;G<Q;++G)nt(F[G])}function vt(F){F.textContent=""}function gt(F,G,Q){st(Q),G.flags&8192?y(G,F):vt(F)}function $t(F){var G=F.event;return function(Q){G(F.data,Q)}}function Yt(F,G,Q,se){if(s(Q)){if(M(G,Q))return;Q=$t(Q)}ue(se,i(F),Q)}function Xt(F,G,Q){if(a(G)){Q.removeAttribute("style");return}var se=Q.style,Ne,ye;if(m(G)){se.cssText=G;return}if(!a(F)&&!m(F)){for(Ne in G)ye=G[Ne],ye!==F[Ne]&&se.setProperty(Ne,ye);for(Ne in F)a(G[Ne])&&se.removeProperty(Ne)}else for(Ne in G)ye=G[Ne],se.setProperty(Ne,ye)}function Qt(F,G,Q,se){var Ne=F&&F.__html||"",ye=G&&G.__html||"";Ne!==ye&&!a(ye)&&!de(se,ye)&&(k(Q)||(Q.childFlags&12?st(Q.children):Q.childFlags===2&&nt(Q.children),Q.children=null,Q.childFlags=1),se.innerHTML=ye)}function Lt(F,G,Q,se,Ne,ye,Le){switch(F){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":se.autofocus=!!Q;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":se[F]=!!Q;break;case"defaultChecked":case"value":case"volume":if(ye&&F==="value")break;var xe=a(Q)?"":Q;se[F]!==xe&&(se[F]=xe);break;case"style":Xt(G,Q,se);break;case"dangerouslySetInnerHTML":Qt(G,Q,Le,se);break;default:we[F]?Z(F,G,Q,se):F.charCodeAt(0)===111&&F.charCodeAt(1)===110?Yt(F,G,Q,se):a(Q)?se.removeAttribute(F):Ne&&ee[F]?se.setAttributeNS(ee[F],F,Q):se.setAttribute(F,Q);break}}function Jt(F,G,Q,se,Ne){var ye=!1,Le=(G&448)>0;Le&&(ye=Bt(Q),ye&&Mt(G,se,Q));for(var xe in Q)Lt(xe,null,Q[xe],se,Ne,ye,null);Le&&St(G,F,se,Q,!0,ye)}function Zt(F,G,Q){var se=Be(F.render(G,F.state,Q)),Ne=Q;return o(F.getChildContext)&&(Ne=N(Q,F.getChildContext())),F.$CX=Ne,se}function _t(F,G,Q,se,Ne,ye){var Le=new G(Q,se),xe=Le.$N=!!(G.getDerivedStateFromProps||Le.getSnapshotBeforeUpdate);if(Le.$SVG=Ne,Le.$L=ye,F.children=Le,Le.$BS=!1,Le.context=se,Le.props===l&&(Le.props=Q),xe)Le.state=L(Le,Q,Le.state);else if(o(Le.componentWillMount)){Le.$BR=!0,Le.componentWillMount();var We=Le.$PS;if(!k(We)){var Fe=Le.state;if(k(Fe))Le.state=We;else for(var je in We)Fe[je]=We[je];Le.$PS=null}Le.$BR=!1}return Le.$LI=Zt(Le,Q,se),Le}function It(F,G){var Q=F.props||l;return F.flags&32768?F.type.render(Q,F.ref,G):F.type(Q,G)}function Je(F,G,Q,se,Ne,ye){var Le=F.flags|=16384;Le&481?xt(F,G,Q,se,Ne,ye):Le&4?yn(F,G,Q,se,Ne,ye):Le&8?(kn(F,G,Q,se,Ne,ye),Rt(F,ye)):Le&512||Le&16?tn(F,G,Ne):Le&8192?en(F,Q,G,se,Ne,ye):Le&1024&&qt(F,Q,G,Ne,ye)}function qt(F,G,Q,se,Ne){Je(F.children,F.ref,G,!1,null,Ne);var ye=oe();tn(ye,Q,se),F.dom=ye.dom}function en(F,G,Q,se,Ne,ye){var Le=F.children,xe=F.childFlags;xe&12&&Le.length===0&&(xe=F.childFlags=2,Le=F.children=oe()),xe===2?Je(Le,Q,G,se,Ne,ye):mt(Le,Q,G,se,Ne,ye)}function tn(F,G,Q){var se=F.dom=document.createTextNode(F.children);k(G)||d(G,se,Q)}function xt(F,G,Q,se,Ne,ye){var Le=F.flags,xe=F.props,We=F.className,Fe=F.childFlags,je=F.dom=p(F.type,se=se||(Le&32)>0),ze=F.children;if(!a(We)&&We!==""&&(se?je.setAttribute("class",We):je.className=We),Fe===16)T(je,ze);else if(Fe!==1){var Ge=se&&F.type!=="foreignObject";Fe===2?(ze.flags&16384&&(F.children=ze=q(ze)),Je(ze,je,Q,Ge,null,ye)):(Fe===8||Fe===4)&&mt(ze,je,Q,Ge,null,ye)}k(G)||d(G,je,Ne),k(xe)||Jt(F,Le,xe,je,se),dt(F.ref,je,ye)}function mt(F,G,Q,se,Ne,ye){for(var Le=0;Le<F.length;++Le){var xe=F[Le];xe.flags&16384&&(F[Le]=xe=q(xe)),Je(xe,G,Q,se,Ne,ye)}}function yn(F,G,Q,se,Ne,ye){var Le=_t(F,F.type,F.props||l,Q,se,ye);Je(Le.$LI,G,Le.$CX,se,Ne,ye),nn(F.ref,Le,ye)}function kn(F,G,Q,se,Ne,ye){Je(F.children=Be(It(F,Q)),G,Q,se,Ne,ye)}function Sn(F){return function(){F.componentDidMount()}}function nn(F,G,Q){dt(F,G,Q),o(G.componentDidMount)&&Q.push(Sn(G))}function on(F,G){return function(){F.onComponentDidMount(g(G,!0),G.props||l)}}function Rt(F,G){var Q=F.ref;a(Q)||(R(Q.onComponentWillMount,F.props||l),o(Q.onComponentDidMount)&&G.push(on(Q,F)))}function rn(F,G,Q,se,Ne,ye){nt(F),G.flags&F.flags&2033?(Je(G,null,se,Ne,null,ye),v(Q,G.dom,F.dom)):(Je(G,Q,se,Ne,g(F,!0),ye),y(F,Q))}function at(F,G,Q,se,Ne,ye,Le){var xe=G.flags|=16384;F.flags!==xe||F.type!==G.type||F.key!==G.key||xe&2048?F.flags&16384?rn(F,G,Q,se,Ne,Le):Je(G,Q,se,Ne,ye,Le):xe&481?dn(F,G,se,Ne,xe,Le):xe&4?Dt(F,G,Q,se,Ne,ye,Le):xe&8?Ft(F,G,Q,se,Ne,ye,Le):xe&16?jt(F,G):xe&512?G.dom=F.dom:xe&8192?ln(F,G,Q,se,Ne,Le):un(F,G,se,Le)}function an(F,G,Q){F!==G&&(F!==""?Q.firstChild.nodeValue=G:T(Q,G))}function cn(F,G){F.textContent!==G&&(F.textContent=G)}function ln(F,G,Q,se,Ne,ye){var Le=F.children,xe=G.children,We=F.childFlags,Fe=G.childFlags,je=null;Fe&12&&xe.length===0&&(Fe=G.childFlags=2,xe=G.children=oe());var ze=(Fe&2)!==0;if(We&12){var Ge=Le.length;(We&8&&Fe&8||ze||!ze&&xe.length>Ge)&&(je=g(Le[Ge-1],!1).nextSibling)}wt(We,Fe,Le,xe,Q,se,Ne,je,F,ye)}function un(F,G,Q,se){var Ne=F.ref,ye=G.ref,Le=G.children;if(wt(F.childFlags,G.childFlags,F.children,Le,Ne,Q,!1,null,F,se),G.dom=F.dom,Ne!==ye&&!t(Le)){var xe=Le.dom;f(Ne,xe),c(ye,xe)}}function dn(F,G,Q,se,Ne,ye){var Le=G.dom=F.dom,xe=F.props,We=G.props,Fe=!1,je=!1,ze;if(se=se||(Ne&32)>0,xe!==We){var Ge=xe||l;if(ze=We||l,ze!==l){Fe=(Ne&448)>0,Fe&&(je=Bt(ze));for(var Ye in ze){var He=Ge[Ye],qe=ze[Ye];He!==qe&&Lt(Ye,He,qe,Le,se,je,F)}}if(Ge!==l)for(var Ke in Ge)a(ze[Ke])&&!a(Ge[Ke])&&Lt(Ke,Ge[Ke],null,Le,se,je,F)}var ct=G.children,tt=G.className;F.className!==tt&&(a(tt)?Le.removeAttribute("class"):se?Le.setAttribute("class",tt):Le.className=tt),Ne&4096?cn(Le,ct):wt(F.childFlags,G.childFlags,F.children,ct,Le,Q,se&&G.type!=="foreignObject",null,F,ye),Fe&&St(Ne,G,Le,ze,!1,je);var bt=G.ref,ot=F.ref;ot!==bt&&(Ct(ot),dt(bt,Le,ye))}function sn(F,G,Q,se,Ne,ye){nt(F),mt(G,Q,se,Ne,g(F,!0),ye),y(F,Q)}function wt(F,G,Q,se,Ne,ye,Le,xe,We,Fe){switch(F){case 2:switch(G){case 2:at(Q,se,Ne,ye,Le,xe,Fe);break;case 1:et(Q,Ne);break;case 16:nt(Q),T(Ne,se);break;default:sn(Q,se,Ne,ye,Le,Fe);break}break;case 1:switch(G){case 2:Je(se,Ne,ye,Le,xe,Fe);break;case 1:break;case 16:T(Ne,se);break;default:mt(se,Ne,ye,Le,xe,Fe);break}break;case 16:switch(G){case 16:an(Q,se,Ne);break;case 2:vt(Ne),Je(se,Ne,ye,Le,xe,Fe);break;case 1:vt(Ne);break;default:vt(Ne),mt(se,Ne,ye,Le,xe,Fe);break}break;default:switch(G){case 16:st(Q),T(Ne,se);break;case 2:gt(Ne,We,Q),Je(se,Ne,ye,Le,xe,Fe);break;case 1:gt(Ne,We,Q);break;default:var je=Q.length|0,ze=se.length|0;je===0?ze>0&&mt(se,Ne,ye,Le,xe,Fe):ze===0?gt(Ne,We,Q):G===8&&F===8?pn(Q,se,Ne,ye,Le,je,ze,xe,We,Fe):fn(Q,se,Ne,ye,Le,je,ze,xe,Fe);break}break}}function mn(F,G,Q,se,Ne){Ne.push(function(){F.componentDidUpdate(G,Q,se)})}function Tt(F,G,Q,se,Ne,ye,Le,xe,We){var Fe=F.state,je=F.props,ze=!!F.$N,Ge=o(F.shouldComponentUpdate);if(ze&&(G=L(F,Q,G!==Fe?N(Fe,G):G)),Le||!Ge||Ge&&F.shouldComponentUpdate(Q,G,Ne)){!ze&&o(F.componentWillUpdate)&&F.componentWillUpdate(Q,G,Ne),F.props=Q,F.state=G,F.context=Ne;var Ye=null,He=Zt(F,Q,Ne);ze&&o(F.getSnapshotBeforeUpdate)&&(Ye=F.getSnapshotBeforeUpdate(je,Fe)),at(F.$LI,He,se,F.$CX,ye,xe,We),F.$LI=He,o(F.componentDidUpdate)&&mn(F,je,Fe,Ye,We)}else F.props=Q,F.state=G,F.context=Ne}function Dt(F,G,Q,se,Ne,ye,Le){var xe=G.children=F.children;if(!k(xe)){xe.$L=Le;var We=G.props||l,Fe=G.ref,je=F.ref,ze=xe.state;if(!xe.$N){if(o(xe.componentWillReceiveProps)){if(xe.$BR=!0,xe.componentWillReceiveProps(We,se),xe.$UN)return;xe.$BR=!1}k(xe.$PS)||(ze=N(ze,xe.$PS),xe.$PS=null)}Tt(xe,ze,We,Q,se,Ne,!1,ye,Le),je!==Fe&&(Ct(je),dt(Fe,xe,Le))}}function Ft(F,G,Q,se,Ne,ye,Le){var xe=!0,We=G.props||l,Fe=G.ref,je=F.props,ze=!a(Fe),Ge=F.children;if(ze&&o(Fe.onComponentShouldUpdate)&&(xe=Fe.onComponentShouldUpdate(je,We)),xe!==!1){ze&&o(Fe.onComponentWillUpdate)&&Fe.onComponentWillUpdate(je,We);var Ye=Be(It(G,se));at(Ge,Ye,Q,se,Ne,ye,Le),G.children=Ye,ze&&o(Fe.onComponentDidUpdate)&&Fe.onComponentDidUpdate(je,We)}else G.children=Ge}function jt(F,G){var Q=G.children,se=G.dom=F.dom;Q!==F.children&&(se.nodeValue=Q)}function fn(F,G,Q,se,Ne,ye,Le,xe,We){for(var Fe=ye>Le?Le:ye,je=0,ze,Ge;je<Fe;++je)ze=G[je],Ge=F[je],ze.flags&16384&&(ze=G[je]=q(ze)),at(Ge,ze,Q,se,Ne,xe,We),F[je]=ze;if(ye<Le)for(je=Fe;je<Le;++je)ze=G[je],ze.flags&16384&&(ze=G[je]=q(ze)),Je(ze,Q,se,Ne,xe,We);else if(ye>Le)for(je=Fe;je<ye;++je)et(F[je],Q)}function pn(F,G,Q,se,Ne,ye,Le,xe,We,Fe){var je=ye-1,ze=Le-1,Ge=0,Ye=F[Ge],He=G[Ge],qe,Ke;e:{for(;Ye.key===He.key;){if(He.flags&16384&&(G[Ge]=He=q(He)),at(Ye,He,Q,se,Ne,xe,Fe),F[Ge]=He,++Ge,Ge>je||Ge>ze)break e;Ye=F[Ge],He=G[Ge]}for(Ye=F[je],He=G[ze];Ye.key===He.key;){if(He.flags&16384&&(G[ze]=He=q(He)),at(Ye,He,Q,se,Ne,xe,Fe),F[je]=He,je--,ze--,Ge>je||Ge>ze)break e;Ye=F[je],He=G[ze]}}if(Ge>je){if(Ge<=ze)for(qe=ze+1,Ke=qe<Le?g(G[qe],!0):xe;Ge<=ze;)He=G[Ge],He.flags&16384&&(G[Ge]=He=q(He)),++Ge,Je(He,Q,se,Ne,Ke,Fe)}else if(Ge>ze)for(;Ge<=je;)et(F[Ge++],Q);else hn(F,G,se,ye,Le,je,ze,Ge,Q,Ne,xe,We,Fe)}function hn(F,G,Q,se,Ne,ye,Le,xe,We,Fe,je,ze,Ge){var Ye,He,qe,Ke=0,ct=xe,tt=xe,bt=ye-xe+1,ot=Le-xe+1,ft=new Int32Array(ot+1),rt=bt===se,yt=!1,Ze=0,pt=0;if(Ne<4||(bt|ot)<32)for(Ke=ct;Ke<=ye;++Ke)if(Ye=F[Ke],pt<ot){for(xe=tt;xe<=Le;xe++)if(He=G[xe],Ye.key===He.key){if(ft[xe-tt]=Ke+1,rt)for(rt=!1;ct<Ke;)et(F[ct++],We);Ze>xe?yt=!0:Ze=xe,He.flags&16384&&(G[xe]=He=q(He)),at(Ye,He,We,Q,Fe,je,Ge),++pt;break}!rt&&xe>Le&&et(Ye,We)}else rt||et(Ye,We);else{var $={};for(Ke=tt;Ke<=Le;++Ke)$[G[Ke].key]=Ke;for(Ke=ct;Ke<=ye;++Ke)if(Ye=F[Ke],pt<ot)if(xe=$[Ye.key],xe!==void 0){if(rt)for(rt=!1;Ke>ct;)et(F[ct++],We);ft[xe-tt]=Ke+1,Ze>xe?yt=!0:Ze=xe,He=G[xe],He.flags&16384&&(G[xe]=He=q(He)),at(Ye,He,We,Q,Fe,je,Ge),++pt}else rt||et(Ye,We);else rt||et(Ye,We)}if(rt)gt(We,ze,F),mt(G,We,Q,Fe,je,Ge);else if(yt){var Me=Cn(ft);for(xe=Me.length-1,Ke=ot-1;Ke>=0;Ke--)ft[Ke]===0?(Ze=Ke+tt,He=G[Ze],He.flags&16384&&(G[Ze]=He=q(He)),qe=Ze+1,Je(He,We,Q,Fe,qe<Ne?g(G[qe],!0):je,Ge)):xe<0||Ke!==Me[xe]?(Ze=Ke+tt,He=G[Ze],qe=Ze+1,B(He,We,qe<Ne?g(G[qe],!0):je)):xe--}else if(pt!==ot)for(Ke=ot-1;Ke>=0;Ke--)ft[Ke]===0&&(Ze=Ke+tt,He=G[Ze],He.flags&16384&&(G[Ze]=He=q(He)),qe=Ze+1,Je(He,We,Q,Fe,qe<Ne?g(G[qe],!0):je,Ge))}var it,Vt,Wt=0;function Cn(F){var G=0,Q=0,se=0,Ne=0,ye=0,Le=0,xe=0,We=F.length;for(We>Wt&&(Wt=We,it=new Int32Array(We),Vt=new Int32Array(We));Q<We;++Q)if(G=F[Q],G!==0){if(se=it[Ne],F[se]<G){Vt[Q]=se,it[++Ne]=Q;continue}for(ye=0,Le=Ne;ye<Le;)xe=ye+Le>>1,F[it[xe]]<G?ye=xe+1:Le=xe;G<F[it[ye]]&&(ye>0&&(Vt[Q]=it[ye-1]),it[ye]=Q)}ye=Ne+1;var Fe=new Int32Array(ye);for(Le=it[ye-1];ye-- >0;)Fe[ye]=Le,Le=Vt[Le],it[ye]=0;return Fe}var vn=typeof document!="undefined";vn&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);function zt(F,G,Q,se){var Ne=[],ye=G.$V;I.v=!0,a(ye)?a(F)||(F.flags&16384&&(F=q(F)),Je(F,G,se,!1,null,Ne),G.$V=F,ye=F):a(F)?(et(ye,G),G.$V=null):(F.flags&16384&&(F=q(F)),at(ye,F,G,se,!1,null,Ne),ye=G.$V=F),C(Ne),I.v=!1,o(Q)&&Q(),o(w.renderComplete)&&w.renderComplete(ye,G)}function Ut(F,G,Q,se){Q===void 0&&(Q=null),se===void 0&&(se=l),zt(F,G,Q,se)}function gn(F){return function(){function G(Q,se,Ne,ye){F||(F=Q),Ut(se,F,Ne,ye)}return G}()}var Nt=[],Nn=typeof Promise!="undefined"?Promise.resolve().then.bind(Promise.resolve()):function(F){window.setTimeout(F,0)},At=!1;function Ht(F,G,Q,se){var Ne=F.$PS;if(o(G)&&(G=G(Ne?N(F.state,Ne):F.state,F.props,F.context)),a(Ne))F.$PS=G;else for(var ye in G)Ne[ye]=G[ye];if(F.$BR)o(Q)&&F.$L.push(Q.bind(F));else{if(!I.v&&Nt.length===0){Kt(F,se),o(Q)&&Q.call(F);return}if(Nt.indexOf(F)===-1&&Nt.push(F),se&&(F.$F=!0),At||(At=!0,Nn(Gt)),o(Q)){var Le=F.$QU;Le||(Le=F.$QU=[]),Le.push(Q)}}}function bn(F){for(var G=F.$QU,Q=0;Q<G.length;++Q)G[Q].call(F);F.$QU=null}function Gt(){var F;for(At=!1;F=Nt.shift();)if(!F.$UN){var G=F.$F;F.$F=!1,Kt(F,G),F.$QU&&bn(F)}}function Kt(F,G){if(G||!F.$BR){var Q=F.$PS;F.$PS=null;var se=[];I.v=!0,Tt(F,N(F.state,Q),F.props,g(F.$LI,!0).parentNode,F.context,F.$SVG,G,null,se),C(se),I.v=!1}else F.state=F.$PS,F.$PS=null}var Et=r.Component=function(){function F(G,Q){this.state=null,this.$BR=!1,this.$BS=!0,this.$PS=null,this.$LI=null,this.$UN=!1,this.$CX=null,this.$QU=null,this.$N=!1,this.$L=null,this.$SVG=!1,this.$F=!1,this.props=G||l,this.context=Q||l}return F}();Et.prototype.forceUpdate=function(){function F(G){this.$UN||Ht(this,{},G,!0)}return F}(),Et.prototype.setState=function(){function F(G,Q){this.$UN||this.$BS||Ht(this,G,Q,!1)}return F}(),Et.prototype.render=function(){function F(G,Q,se){return null}return F}();var Bn=r.version="7.4.11"},58734:function(x,r,n){"use strict";r.__esModule=!0;var e=n(22182);Object.keys(e).forEach(function(a){a==="default"||a==="__esModule"||a in r&&r[a]===e[a]||(r[a]=e[a])})},33421:function(x,r){"use strict";r.__esModule=!0,r.VNodeFlags=r.ChildFlags=void 0;var n;(function(a){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.Void=512]="Void",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=2033]="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={}))},47366:function(x,r,n){"use strict";var e=n(92410),a=n(69510);function t(o,m){return function(){throw new Error("Function yaml."+o+" is removed in js-yaml 4. Use yaml."+m+" instead, which is now safe by default.")}}x.exports.Type=n(85243),x.exports.Schema=n(20838),x.exports.FAILSAFE_SCHEMA=n(43547),x.exports.JSON_SCHEMA=n(67554),x.exports.CORE_SCHEMA=n(23082),x.exports.DEFAULT_SCHEMA=n(40004),x.exports.load=e.load,x.exports.loadAll=e.loadAll,x.exports.dump=a.dump,x.exports.YAMLException=n(14956),x.exports.types={binary:n(80258),float:n(22207),map:n(2738),null:n(67574),pairs:n(56966),set:n(39987),timestamp:n(59404),bool:n(43788),int:n(27561),merge:n(95308),omap:n(33088),seq:n(29690),str:n(57095)},x.exports.safeLoad=t("safeLoad","load"),x.exports.safeLoadAll=t("safeLoadAll","loadAll"),x.exports.safeDump=t("safeDump","dump")},16310:function(x){"use strict";function r(m){return typeof m=="undefined"||m===null}function n(m){return typeof m=="object"&&m!==null}function e(m){return Array.isArray(m)?m:r(m)?[]:[m]}function a(m,V){var k,S,N,h;if(V)for(h=Object.keys(V),k=0,S=h.length;k<S;k+=1)N=h[k],m[N]=V[N];return m}function t(m,V){var k="",S;for(S=0;S<V;S+=1)k+=m;return k}function o(m){return m===0&&Number.NEGATIVE_INFINITY===1/m}x.exports.isNothing=r,x.exports.isObject=n,x.exports.toArray=e,x.exports.repeat=t,x.exports.isNegativeZero=o,x.exports.extend=a},69510:function(x,r,n){"use strict";var e=n(16310),a=n(14956),t=n(40004),o=Object.prototype.toString,m=Object.prototype.hasOwnProperty,V=65279,k=9,S=10,N=13,h=32,s=33,l=34,u=35,i=37,c=38,d=39,p=42,v=44,f=45,C=58,b=61,g=62,y=63,B=64,L=91,I=93,w=96,T=123,M=124,A=125,R={};R[0]="\\0",R[7]="\\a",R[8]="\\b",R[9]="\\t",R[10]="\\n",R[11]="\\v",R[12]="\\f",R[13]="\\r",R[27]="\\e",R[34]='\\"',R[92]="\\\\",R[133]="\\N",R[160]="\\_",R[8232]="\\L",R[8233]="\\P";var O=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],_=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function P(j,ue){var be,ke,Te,Ee,Re,_e,De;if(ue===null)return{};for(be={},ke=Object.keys(ue),Te=0,Ee=ke.length;Te<Ee;Te+=1)Re=ke[Te],_e=String(ue[Re]),Re.slice(0,2)==="!!"&&(Re="tag:yaml.org,2002:"+Re.slice(2)),De=j.compiledTypeMap.fallback[Re],De&&m.call(De.styleAliases,_e)&&(_e=De.styleAliases[_e]),be[Re]=_e;return be}function D(j){var ue,be,ke;if(ue=j.toString(16).toUpperCase(),j<=255)be="x",ke=2;else if(j<=65535)be="u",ke=4;else if(j<=4294967295)be="U",ke=8;else throw new a("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+be+e.repeat("0",ke-ue.length)+ue}var z=1,U=2;function W(j){this.schema=j.schema||t,this.indent=Math.max(1,j.indent||2),this.noArrayIndent=j.noArrayIndent||!1,this.skipInvalid=j.skipInvalid||!1,this.flowLevel=e.isNothing(j.flowLevel)?-1:j.flowLevel,this.styleMap=P(this.schema,j.styles||null),this.sortKeys=j.sortKeys||!1,this.lineWidth=j.lineWidth||80,this.noRefs=j.noRefs||!1,this.noCompatMode=j.noCompatMode||!1,this.condenseFlow=j.condenseFlow||!1,this.quotingType=j.quotingType==='"'?U:z,this.forceQuotes=j.forceQuotes||!1,this.replacer=typeof j.replacer=="function"?j.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function K(j,ue){for(var be=e.repeat(" ",ue),ke=0,Te=-1,Ee="",Re,_e=j.length;ke<_e;)Te=j.indexOf("\n",ke),Te===-1?(Re=j.slice(ke),ke=_e):(Re=j.slice(ke,Te+1),ke=Te+1),Re.length&&Re!=="\n"&&(Ee+=be),Ee+=Re;return Ee}function H(j,ue){return"\n"+e.repeat(" ",j.indent*ue)}function Y(j,ue){var be,ke,Te;for(be=0,ke=j.implicitTypes.length;be<ke;be+=1)if(Te=j.implicitTypes[be],Te.resolve(ue))return!0;return!1}function J(j){return j===h||j===k}function q(j){return 32<=j&&j<=126||161<=j&&j<=55295&&j!==8232&&j!==8233||57344<=j&&j<=65533&&j!==V||65536<=j&&j<=1114111}function oe(j){return q(j)&&j!==V&&j!==N&&j!==S}function ae(j,ue,be){var ke=oe(j),Te=ke&&!J(j);return(be?ke:ke&&j!==v&&j!==L&&j!==I&&j!==T&&j!==A)&&j!==u&&!(ue===C&&!Te)||oe(ue)&&!J(ue)&&j===u||ue===C&&Te}function le(j){return q(j)&&j!==V&&!J(j)&&j!==f&&j!==y&&j!==C&&j!==v&&j!==L&&j!==I&&j!==T&&j!==A&&j!==u&&j!==c&&j!==p&&j!==s&&j!==M&&j!==b&&j!==g&&j!==d&&j!==l&&j!==i&&j!==B&&j!==w}function he(j){return!J(j)&&j!==C}function me(j,ue){var be=j.charCodeAt(ue),ke;return be>=55296&&be<=56319&&ue+1<j.length&&(ke=j.charCodeAt(ue+1),ke>=56320&&ke<=57343)?(be-55296)*1024+ke-56320+65536:be}function Be(j){var ue=/^\n* /;return ue.test(j)}var ce=1,te=2,ee=3,ie=4,Ce=5;function Se(j,ue,be,ke,Te,Ee,Re,_e){var De,Ue=0,Xe=null,Qe=!1,$e=!1,ht=ke!==-1,lt=-1,ut=le(me(j,0))&&he(me(j,j.length-1));if(ue||Re)for(De=0;De<j.length;Ue>=65536?De+=2:De++){if(Ue=me(j,De),!q(Ue))return Ce;ut=ut&&ae(Ue,Xe,_e),Xe=Ue}else{for(De=0;De<j.length;Ue>=65536?De+=2:De++){if(Ue=me(j,De),Ue===S)Qe=!0,ht&&($e=$e||De-lt-1>ke&&j[lt+1]!==" ",lt=De);else if(!q(Ue))return Ce;ut=ut&&ae(Ue,Xe,_e),Xe=Ue}$e=$e||ht&&De-lt-1>ke&&j[lt+1]!==" "}return!Qe&&!$e?ut&&!Re&&!Te(j)?ce:Ee===U?Ce:te:be>9&&Be(j)?Ce:Re?Ee===U?Ce:te:$e?ie:ee}function we(j,ue,be,ke,Te){j.dump=function(){if(ue.length===0)return j.quotingType===U?'""':"''";if(!j.noCompatMode&&(O.indexOf(ue)!==-1||_.test(ue)))return j.quotingType===U?'"'+ue+'"':"'"+ue+"'";var Ee=j.indent*Math.max(1,be),Re=j.lineWidth===-1?-1:Math.max(Math.min(j.lineWidth,40),j.lineWidth-Ee),_e=ke||j.flowLevel>-1&&be>=j.flowLevel;function De(Ue){return Y(j,Ue)}switch(Se(ue,_e,j.indent,Re,De,j.quotingType,j.forceQuotes&&!ke,Te)){case ce:return ue;case te:return"'"+ue.replace(/'/g,"''")+"'";case ee:return"|"+pe(ue,j.indent)+E(K(ue,Ee));case ie:return">"+pe(ue,j.indent)+E(K(Z(ue,Re),Ee));case Ce:return'"'+X(ue,Re)+'"';default:throw new a("impossible error: invalid scalar style")}}()}function pe(j,ue){var be=Be(j)?String(ue):"",ke=j[j.length-1]==="\n",Te=ke&&(j[j.length-2]==="\n"||j==="\n"),Ee=Te?"+":ke?"":"-";return be+Ee+"\n"}function E(j){return j[j.length-1]==="\n"?j.slice(0,-1):j}function Z(j,ue){for(var be=/(\n+)([^\n]*)/g,ke=function(){var Ue=j.indexOf("\n");return Ue=Ue!==-1?Ue:j.length,be.lastIndex=Ue,re(j.slice(0,Ue),ue)}(),Te=j[0]==="\n"||j[0]===" ",Ee,Re;Re=be.exec(j);){var _e=Re[1],De=Re[2];Ee=De[0]===" ",ke+=_e+(!Te&&!Ee&&De!==""?"\n":"")+re(De,ue),Te=Ee}return ke}function re(j,ue){if(j===""||j[0]===" ")return j;for(var be=/ [^ ]/g,ke,Te=0,Ee,Re=0,_e=0,De="";ke=be.exec(j);)_e=ke.index,_e-Te>ue&&(Ee=Re>Te?Re:_e,De+="\n"+j.slice(Te,Ee),Te=Ee+1),Re=_e;return De+="\n",j.length-Te>ue&&Re>Te?De+=j.slice(Te,Re)+"\n"+j.slice(Re+1):De+=j.slice(Te),De.slice(1)}function X(j){for(var ue="",be=0,ke,Te=0;Te<j.length;be>=65536?Te+=2:Te++)be=me(j,Te),ke=R[be],!ke&&q(be)?(ue+=j[Te],be>=65536&&(ue+=j[Te+1])):ue+=ke||D(be);return ue}function ne(j,ue,be){var ke="",Te=j.tag,Ee,Re,_e;for(Ee=0,Re=be.length;Ee<Re;Ee+=1)_e=be[Ee],j.replacer&&(_e=j.replacer.call(be,String(Ee),_e)),(Ae(j,ue,_e,!1,!1)||typeof _e=="undefined"&&Ae(j,ue,null,!1,!1))&&(ke!==""&&(ke+=","+(j.condenseFlow?"":" ")),ke+=j.dump);j.tag=Te,j.dump="["+ke+"]"}function ve(j,ue,be,ke){var Te="",Ee=j.tag,Re,_e,De;for(Re=0,_e=be.length;Re<_e;Re+=1)De=be[Re],j.replacer&&(De=j.replacer.call(be,String(Re),De)),(Ae(j,ue+1,De,!0,!0,!1,!0)||typeof De=="undefined"&&Ae(j,ue+1,null,!0,!0,!1,!0))&&((!ke||Te!=="")&&(Te+=H(j,ue)),j.dump&&S===j.dump.charCodeAt(0)?Te+="-":Te+="- ",Te+=j.dump);j.tag=Ee,j.dump=Te||"[]"}function Ve(j,ue,be){var ke="",Te=j.tag,Ee=Object.keys(be),Re,_e,De,Ue,Xe;for(Re=0,_e=Ee.length;Re<_e;Re+=1)Xe="",ke!==""&&(Xe+=", "),j.condenseFlow&&(Xe+='"'),De=Ee[Re],Ue=be[De],j.replacer&&(Ue=j.replacer.call(be,De,Ue)),Ae(j,ue,De,!1,!1)&&(j.dump.length>1024&&(Xe+="? "),Xe+=j.dump+(j.condenseFlow?'"':"")+":"+(j.condenseFlow?"":" "),Ae(j,ue,Ue,!1,!1)&&(Xe+=j.dump,ke+=Xe));j.tag=Te,j.dump="{"+ke+"}"}function Ie(j,ue,be,ke){var Te="",Ee=j.tag,Re=Object.keys(be),_e,De,Ue,Xe,Qe,$e;if(j.sortKeys===!0)Re.sort();else if(typeof j.sortKeys=="function")Re.sort(j.sortKeys);else if(j.sortKeys)throw new a("sortKeys must be a boolean or a function");for(_e=0,De=Re.length;_e<De;_e+=1)$e="",(!ke||Te!=="")&&($e+=H(j,ue)),Ue=Re[_e],Xe=be[Ue],j.replacer&&(Xe=j.replacer.call(be,Ue,Xe)),Ae(j,ue+1,Ue,!0,!0,!0)&&(Qe=j.tag!==null&&j.tag!=="?"||j.dump&&j.dump.length>1024,Qe&&(j.dump&&S===j.dump.charCodeAt(0)?$e+="?":$e+="? "),$e+=j.dump,Qe&&($e+=H(j,ue)),Ae(j,ue+1,Xe,!0,Qe)&&(j.dump&&S===j.dump.charCodeAt(0)?$e+=":":$e+=": ",$e+=j.dump,Te+=$e));j.tag=Ee,j.dump=Te||"{}"}function Pe(j,ue,be){var ke,Te,Ee,Re,_e,De;for(Te=be?j.explicitTypes:j.implicitTypes,Ee=0,Re=Te.length;Ee<Re;Ee+=1)if(_e=Te[Ee],(_e.instanceOf||_e.predicate)&&(!_e.instanceOf||typeof ue=="object"&&ue instanceof _e.instanceOf)&&(!_e.predicate||_e.predicate(ue))){if(be?_e.multi&&_e.representName?j.tag=_e.representName(ue):j.tag=_e.tag:j.tag="?",_e.represent){if(De=j.styleMap[_e.tag]||_e.defaultStyle,o.call(_e.represent)==="[object Function]")ke=_e.represent(ue,De);else if(m.call(_e.represent,De))ke=_e.represent[De](ue,De);else throw new a("!<"+_e.tag+'> tag resolver accepts not "'+De+'" style');j.dump=ke}return!0}return!1}function Ae(j,ue,be,ke,Te,Ee,Re){j.tag=null,j.dump=be,Pe(j,be,!1)||Pe(j,be,!0);var _e=o.call(j.dump),De=ke,Ue;ke&&(ke=j.flowLevel<0||j.flowLevel>ue);var Xe=_e==="[object Object]"||_e==="[object Array]",Qe,$e;if(Xe&&(Qe=j.duplicates.indexOf(be),$e=Qe!==-1),(j.tag!==null&&j.tag!=="?"||$e||j.indent!==2&&ue>0)&&(Te=!1),$e&&j.usedDuplicates[Qe])j.dump="*ref_"+Qe;else{if(Xe&&$e&&!j.usedDuplicates[Qe]&&(j.usedDuplicates[Qe]=!0),_e==="[object Object]")ke&&Object.keys(j.dump).length!==0?(Ie(j,ue,j.dump,Te),$e&&(j.dump="&ref_"+Qe+j.dump)):(Ve(j,ue,j.dump),$e&&(j.dump="&ref_"+Qe+" "+j.dump));else if(_e==="[object Array]")ke&&j.dump.length!==0?(j.noArrayIndent&&!Re&&ue>0?ve(j,ue-1,j.dump,Te):ve(j,ue,j.dump,Te),$e&&(j.dump="&ref_"+Qe+j.dump)):(ne(j,ue,j.dump),$e&&(j.dump="&ref_"+Qe+" "+j.dump));else if(_e==="[object String]")j.tag!=="?"&&we(j,j.dump,ue,Ee,De);else{if(_e==="[object Undefined]")return!1;if(j.skipInvalid)return!1;throw new a("unacceptable kind of an object to dump "+_e)}j.tag!==null&&j.tag!=="?"&&(Ue=encodeURI(j.tag[0]==="!"?j.tag.slice(1):j.tag).replace(/!/g,"%21"),j.tag[0]==="!"?Ue="!"+Ue:Ue.slice(0,18)==="tag:yaml.org,2002:"?Ue="!!"+Ue.slice(18):Ue="!<"+Ue+">",j.dump=Ue+" "+j.dump)}return!0}function Oe(j,ue){var be=[],ke=[],Te,Ee;for(de(j,be,ke),Te=0,Ee=ke.length;Te<Ee;Te+=1)ue.duplicates.push(be[ke[Te]]);ue.usedDuplicates=new Array(Ee)}function de(j,ue,be){var ke,Te,Ee;if(j!==null&&typeof j=="object")if(Te=ue.indexOf(j),Te!==-1)be.indexOf(Te)===-1&&be.push(Te);else if(ue.push(j),Array.isArray(j))for(Te=0,Ee=j.length;Te<Ee;Te+=1)de(j[Te],ue,be);else for(ke=Object.keys(j),Te=0,Ee=ke.length;Te<Ee;Te+=1)de(j[ke[Te]],ue,be)}function ge(j,ue){ue=ue||{};var be=new W(ue);be.noRefs||Oe(j,be);var ke=j;return be.replacer&&(ke=be.replacer.call({"":ke},"",ke)),Ae(be,0,ke,!0,!0)?be.dump+"\n":""}x.exports.dump=ge},14956:function(x){"use strict";function r(e,a){var t="",o=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(t+='in "'+e.mark.name+'" '),t+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!a&&e.mark.snippet&&(t+="\n\n"+e.mark.snippet),o+" "+t):o}function n(e,a){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=a,this.message=r(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n.prototype.toString=function(){function e(a){return this.name+": "+r(this,a)}return e}(),x.exports=n},92410:function(x,r,n){"use strict";var e=n(16310),a=n(14956),t=n(47399),o=n(40004),m=Object.prototype.hasOwnProperty,V=1,k=2,S=3,N=4,h=1,s=2,l=3,u=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,i=/[\x85\u2028\u2029]/,c=/[,\[\]\{\}]/,d=/^(?:!|!!|![a-z\-]+!)$/i,p=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function v(E){return Object.prototype.toString.call(E)}function f(E){return E===10||E===13}function C(E){return E===9||E===32}function b(E){return E===9||E===32||E===10||E===13}function g(E){return E===44||E===91||E===93||E===123||E===125}function y(E){var Z;return 48<=E&&E<=57?E-48:(Z=E|32,97<=Z&&Z<=102?Z-97+10:-1)}function B(E){return E===120?2:E===117?4:E===85?8:0}function L(E){return 48<=E&&E<=57?E-48:-1}function I(E){return E===48?"\0":E===97?"\x07":E===98?"\b":E===116||E===9?" ":E===110?"\n":E===118?"\v":E===102?"\f":E===114?"\r":E===101?"\x1B":E===32?" ":E===34?'"':E===47?"/":E===92?"\\":E===78?"\x85":E===95?"\xA0":E===76?"\u2028":E===80?"\u2029":""}function w(E){return E<=65535?String.fromCharCode(E):String.fromCharCode((E-65536>>10)+55296,(E-65536&1023)+56320)}for(var T=new Array(256),M=new Array(256),A=0;A<256;A++)T[A]=I(A)?1:0,M[A]=I(A);function R(E,Z){this.input=E,this.filename=Z.filename||null,this.schema=Z.schema||o,this.onWarning=Z.onWarning||null,this.legacy=Z.legacy||!1,this.json=Z.json||!1,this.listener=Z.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=E.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function O(E,Z){var re={name:E.filename,buffer:E.input.slice(0,-1),position:E.position,line:E.line,column:E.position-E.lineStart};return re.snippet=t(re),new a(Z,re)}function _(E,Z){throw O(E,Z)}function P(E,Z){E.onWarning&&E.onWarning.call(null,O(E,Z))}var D={YAML:function(){function E(Z,re,X){var ne,ve,Ve;Z.version!==null&&_(Z,"duplication of %YAML directive"),X.length!==1&&_(Z,"YAML directive accepts exactly one argument"),ne=/^([0-9]+)\.([0-9]+)$/.exec(X[0]),ne===null&&_(Z,"ill-formed argument of the YAML directive"),ve=parseInt(ne[1],10),Ve=parseInt(ne[2],10),ve!==1&&_(Z,"unacceptable YAML version of the document"),Z.version=X[0],Z.checkLineBreaks=Ve<2,Ve!==1&&Ve!==2&&P(Z,"unsupported YAML version of the document")}return E}(),TAG:function(){function E(Z,re,X){var ne,ve;X.length!==2&&_(Z,"TAG directive accepts exactly two arguments"),ne=X[0],ve=X[1],d.test(ne)||_(Z,"ill-formed tag handle (first argument) of the TAG directive"),m.call(Z.tagMap,ne)&&_(Z,'there is a previously declared suffix for "'+ne+'" tag handle'),p.test(ve)||_(Z,"ill-formed tag prefix (second argument) of the TAG directive");try{ve=decodeURIComponent(ve)}catch(Ve){_(Z,"tag prefix is malformed: "+ve)}Z.tagMap[ne]=ve}return E}()};function z(E,Z,re,X){var ne,ve,Ve,Ie;if(Z<re){if(Ie=E.input.slice(Z,re),X)for(ne=0,ve=Ie.length;ne<ve;ne+=1)Ve=Ie.charCodeAt(ne),Ve===9||32<=Ve&&Ve<=1114111||_(E,"expected valid JSON character");else u.test(Ie)&&_(E,"the stream contains non-printable characters");E.result+=Ie}}function U(E,Z,re,X){var ne,ve,Ve,Ie;for(e.isObject(re)||_(E,"cannot merge mappings; the provided source object is unacceptable"),ne=Object.keys(re),Ve=0,Ie=ne.length;Ve<Ie;Ve+=1)ve=ne[Ve],m.call(Z,ve)||(Z[ve]=re[ve],X[ve]=!0)}function W(E,Z,re,X,ne,ve,Ve,Ie,Pe){var Ae,Oe;if(Array.isArray(ne))for(ne=Array.prototype.slice.call(ne),Ae=0,Oe=ne.length;Ae<Oe;Ae+=1)Array.isArray(ne[Ae])&&_(E,"nested arrays are not supported inside keys"),typeof ne=="object"&&v(ne[Ae])==="[object Object]"&&(ne[Ae]="[object Object]");if(typeof ne=="object"&&v(ne)==="[object Object]"&&(ne="[object Object]"),ne=String(ne),Z===null&&(Z={}),X==="tag:yaml.org,2002:merge")if(Array.isArray(ve))for(Ae=0,Oe=ve.length;Ae<Oe;Ae+=1)U(E,Z,ve[Ae],re);else U(E,Z,ve,re);else!E.json&&!m.call(re,ne)&&m.call(Z,ne)&&(E.line=Ve||E.line,E.lineStart=Ie||E.lineStart,E.position=Pe||E.position,_(E,"duplicated mapping key")),ne==="__proto__"?Object.defineProperty(Z,ne,{configurable:!0,enumerable:!0,writable:!0,value:ve}):Z[ne]=ve,delete re[ne];return Z}function K(E){var Z;Z=E.input.charCodeAt(E.position),Z===10?E.position++:Z===13?(E.position++,E.input.charCodeAt(E.position)===10&&E.position++):_(E,"a line break is expected"),E.line+=1,E.lineStart=E.position,E.firstTabInLine=-1}function H(E,Z,re){for(var X=0,ne=E.input.charCodeAt(E.position);ne!==0;){for(;C(ne);)ne===9&&E.firstTabInLine===-1&&(E.firstTabInLine=E.position),ne=E.input.charCodeAt(++E.position);if(Z&&ne===35)do ne=E.input.charCodeAt(++E.position);while(ne!==10&&ne!==13&&ne!==0);if(f(ne))for(K(E),ne=E.input.charCodeAt(E.position),X++,E.lineIndent=0;ne===32;)E.lineIndent++,ne=E.input.charCodeAt(++E.position);else break}return re!==-1&&X!==0&&E.lineIndent<re&&P(E,"deficient indentation"),X}function Y(E){var Z=E.position,re;return re=E.input.charCodeAt(Z),!!((re===45||re===46)&&re===E.input.charCodeAt(Z+1)&&re===E.input.charCodeAt(Z+2)&&(Z+=3,re=E.input.charCodeAt(Z),re===0||b(re)))}function J(E,Z){Z===1?E.result+=" ":Z>1&&(E.result+=e.repeat("\n",Z-1))}function q(E,Z,re){var X,ne,ve,Ve,Ie,Pe,Ae,Oe,de=E.kind,ge=E.result,j;if(j=E.input.charCodeAt(E.position),b(j)||g(j)||j===35||j===38||j===42||j===33||j===124||j===62||j===39||j===34||j===37||j===64||j===96||(j===63||j===45)&&(ne=E.input.charCodeAt(E.position+1),b(ne)||re&&g(ne)))return!1;for(E.kind="scalar",E.result="",ve=Ve=E.position,Ie=!1;j!==0;){if(j===58){if(ne=E.input.charCodeAt(E.position+1),b(ne)||re&&g(ne))break}else if(j===35){if(X=E.input.charCodeAt(E.position-1),b(X))break}else{if(E.position===E.lineStart&&Y(E)||re&&g(j))break;if(f(j))if(Pe=E.line,Ae=E.lineStart,Oe=E.lineIndent,H(E,!1,-1),E.lineIndent>=Z){Ie=!0,j=E.input.charCodeAt(E.position);continue}else{E.position=Ve,E.line=Pe,E.lineStart=Ae,E.lineIndent=Oe;break}}Ie&&(z(E,ve,Ve,!1),J(E,E.line-Pe),ve=Ve=E.position,Ie=!1),C(j)||(Ve=E.position+1),j=E.input.charCodeAt(++E.position)}return z(E,ve,Ve,!1),E.result?!0:(E.kind=de,E.result=ge,!1)}function oe(E,Z){var re,X,ne;if(re=E.input.charCodeAt(E.position),re!==39)return!1;for(E.kind="scalar",E.result="",E.position++,X=ne=E.position;(re=E.input.charCodeAt(E.position))!==0;)if(re===39)if(z(E,X,E.position,!0),re=E.input.charCodeAt(++E.position),re===39)X=E.position,E.position++,ne=E.position;else return!0;else f(re)?(z(E,X,ne,!0),J(E,H(E,!1,Z)),X=ne=E.position):E.position===E.lineStart&&Y(E)?_(E,"unexpected end of the document within a single quoted scalar"):(E.position++,ne=E.position);_(E,"unexpected end of the stream within a single quoted scalar")}function ae(E,Z){var re,X,ne,ve,Ve,Ie;if(Ie=E.input.charCodeAt(E.position),Ie!==34)return!1;for(E.kind="scalar",E.result="",E.position++,re=X=E.position;(Ie=E.input.charCodeAt(E.position))!==0;){if(Ie===34)return z(E,re,E.position,!0),E.position++,!0;if(Ie===92){if(z(E,re,E.position,!0),Ie=E.input.charCodeAt(++E.position),f(Ie))H(E,!1,Z);else if(Ie<256&&T[Ie])E.result+=M[Ie],E.position++;else if((Ve=B(Ie))>0){for(ne=Ve,ve=0;ne>0;ne--)Ie=E.input.charCodeAt(++E.position),(Ve=y(Ie))>=0?ve=(ve<<4)+Ve:_(E,"expected hexadecimal character");E.result+=w(ve),E.position++}else _(E,"unknown escape sequence");re=X=E.position}else f(Ie)?(z(E,re,X,!0),J(E,H(E,!1,Z)),re=X=E.position):E.position===E.lineStart&&Y(E)?_(E,"unexpected end of the document within a double quoted scalar"):(E.position++,X=E.position)}_(E,"unexpected end of the stream within a double quoted scalar")}function le(E,Z){var re=!0,X,ne,ve,Ve=E.tag,Ie,Pe=E.anchor,Ae,Oe,de,ge,j,ue=Object.create(null),be,ke,Te,Ee;if(Ee=E.input.charCodeAt(E.position),Ee===91)Oe=93,j=!1,Ie=[];else if(Ee===123)Oe=125,j=!0,Ie={};else return!1;for(E.anchor!==null&&(E.anchorMap[E.anchor]=Ie),Ee=E.input.charCodeAt(++E.position);Ee!==0;){if(H(E,!0,Z),Ee=E.input.charCodeAt(E.position),Ee===Oe)return E.position++,E.tag=Ve,E.anchor=Pe,E.kind=j?"mapping":"sequence",E.result=Ie,!0;re?Ee===44&&_(E,"expected the node content, but found ','"):_(E,"missed comma between flow collection entries"),ke=be=Te=null,de=ge=!1,Ee===63&&(Ae=E.input.charCodeAt(E.position+1),b(Ae)&&(de=ge=!0,E.position++,H(E,!0,Z))),X=E.line,ne=E.lineStart,ve=E.position,ie(E,Z,V,!1,!0),ke=E.tag,be=E.result,H(E,!0,Z),Ee=E.input.charCodeAt(E.position),(ge||E.line===X)&&Ee===58&&(de=!0,Ee=E.input.charCodeAt(++E.position),H(E,!0,Z),ie(E,Z,V,!1,!0),Te=E.result),j?W(E,Ie,ue,ke,be,Te,X,ne,ve):de?Ie.push(W(E,null,ue,ke,be,Te,X,ne,ve)):Ie.push(be),H(E,!0,Z),Ee=E.input.charCodeAt(E.position),Ee===44?(re=!0,Ee=E.input.charCodeAt(++E.position)):re=!1}_(E,"unexpected end of the stream within a flow collection")}function he(E,Z){var re,X,ne=h,ve=!1,Ve=!1,Ie=Z,Pe=0,Ae=!1,Oe,de;if(de=E.input.charCodeAt(E.position),de===124)X=!1;else if(de===62)X=!0;else return!1;for(E.kind="scalar",E.result="";de!==0;)if(de=E.input.charCodeAt(++E.position),de===43||de===45)h===ne?ne=de===43?l:s:_(E,"repeat of a chomping mode identifier");else if((Oe=L(de))>=0)Oe===0?_(E,"bad explicit indentation width of a block scalar; it cannot be less than one"):Ve?_(E,"repeat of an indentation width identifier"):(Ie=Z+Oe-1,Ve=!0);else break;if(C(de)){do de=E.input.charCodeAt(++E.position);while(C(de));if(de===35)do de=E.input.charCodeAt(++E.position);while(!f(de)&&de!==0)}for(;de!==0;){for(K(E),E.lineIndent=0,de=E.input.charCodeAt(E.position);(!Ve||E.lineIndent<Ie)&&de===32;)E.lineIndent++,de=E.input.charCodeAt(++E.position);if(!Ve&&E.lineIndent>Ie&&(Ie=E.lineIndent),f(de)){Pe++;continue}if(E.lineIndent<Ie){ne===l?E.result+=e.repeat("\n",ve?1+Pe:Pe):ne===h&&ve&&(E.result+="\n");break}for(X?C(de)?(Ae=!0,E.result+=e.repeat("\n",ve?1+Pe:Pe)):Ae?(Ae=!1,E.result+=e.repeat("\n",Pe+1)):Pe===0?ve&&(E.result+=" "):E.result+=e.repeat("\n",Pe):E.result+=e.repeat("\n",ve?1+Pe:Pe),ve=!0,Ve=!0,Pe=0,re=E.position;!f(de)&&de!==0;)de=E.input.charCodeAt(++E.position);z(E,re,E.position,!1)}return!0}function me(E,Z){var re,X=E.tag,ne=E.anchor,ve=[],Ve,Ie=!1,Pe;if(E.firstTabInLine!==-1)return!1;for(E.anchor!==null&&(E.anchorMap[E.anchor]=ve),Pe=E.input.charCodeAt(E.position);Pe!==0&&(E.firstTabInLine!==-1&&(E.position=E.firstTabInLine,_(E,"tab characters must not be used in indentation")),!(Pe!==45||(Ve=E.input.charCodeAt(E.position+1),!b(Ve))));){if(Ie=!0,E.position++,H(E,!0,-1)&&E.lineIndent<=Z){ve.push(null),Pe=E.input.charCodeAt(E.position);continue}if(re=E.line,ie(E,Z,S,!1,!0),ve.push(E.result),H(E,!0,-1),Pe=E.input.charCodeAt(E.position),(E.line===re||E.lineIndent>Z)&&Pe!==0)_(E,"bad indentation of a sequence entry");else if(E.lineIndent<Z)break}return Ie?(E.tag=X,E.anchor=ne,E.kind="sequence",E.result=ve,!0):!1}function Be(E,Z,re){var X,ne,ve,Ve,Ie,Pe,Ae=E.tag,Oe=E.anchor,de={},ge=Object.create(null),j=null,ue=null,be=null,ke=!1,Te=!1,Ee;if(E.firstTabInLine!==-1)return!1;for(E.anchor!==null&&(E.anchorMap[E.anchor]=de),Ee=E.input.charCodeAt(E.position);Ee!==0;){if(!ke&&E.firstTabInLine!==-1&&(E.position=E.firstTabInLine,_(E,"tab characters must not be used in indentation")),X=E.input.charCodeAt(E.position+1),ve=E.line,(Ee===63||Ee===58)&&b(X))Ee===63?(ke&&(W(E,de,ge,j,ue,null,Ve,Ie,Pe),j=ue=be=null),Te=!0,ke=!0,ne=!0):ke?(ke=!1,ne=!0):_(E,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),E.position+=1,Ee=X;else{if(Ve=E.line,Ie=E.lineStart,Pe=E.position,!ie(E,re,k,!1,!0))break;if(E.line===ve){for(Ee=E.input.charCodeAt(E.position);C(Ee);)Ee=E.input.charCodeAt(++E.position);if(Ee===58)Ee=E.input.charCodeAt(++E.position),b(Ee)||_(E,"a whitespace character is expected after the key-value separator within a block mapping"),ke&&(W(E,de,ge,j,ue,null,Ve,Ie,Pe),j=ue=be=null),Te=!0,ke=!1,ne=!1,j=E.tag,ue=E.result;else if(Te)_(E,"can not read an implicit mapping pair; a colon is missed");else return E.tag=Ae,E.anchor=Oe,!0}else if(Te)_(E,"can not read a block mapping entry; a multiline key may not be an implicit key");else return E.tag=Ae,E.anchor=Oe,!0}if((E.line===ve||E.lineIndent>Z)&&(ke&&(Ve=E.line,Ie=E.lineStart,Pe=E.position),ie(E,Z,N,!0,ne)&&(ke?ue=E.result:be=E.result),ke||(W(E,de,ge,j,ue,be,Ve,Ie,Pe),j=ue=be=null),H(E,!0,-1),Ee=E.input.charCodeAt(E.position)),(E.line===ve||E.lineIndent>Z)&&Ee!==0)_(E,"bad indentation of a mapping entry");else if(E.lineIndent<Z)break}return ke&&W(E,de,ge,j,ue,null,Ve,Ie,Pe),Te&&(E.tag=Ae,E.anchor=Oe,E.kind="mapping",E.result=de),Te}function ce(E){var Z,re=!1,X=!1,ne,ve,Ve;if(Ve=E.input.charCodeAt(E.position),Ve!==33)return!1;if(E.tag!==null&&_(E,"duplication of a tag property"),Ve=E.input.charCodeAt(++E.position),Ve===60?(re=!0,Ve=E.input.charCodeAt(++E.position)):Ve===33?(X=!0,ne="!!",Ve=E.input.charCodeAt(++E.position)):ne="!",Z=E.position,re){do Ve=E.input.charCodeAt(++E.position);while(Ve!==0&&Ve!==62);E.position<E.length?(ve=E.input.slice(Z,E.position),Ve=E.input.charCodeAt(++E.position)):_(E,"unexpected end of the stream within a verbatim tag")}else{for(;Ve!==0&&!b(Ve);)Ve===33&&(X?_(E,"tag suffix cannot contain exclamation marks"):(ne=E.input.slice(Z-1,E.position+1),d.test(ne)||_(E,"named tag handle cannot contain such characters"),X=!0,Z=E.position+1)),Ve=E.input.charCodeAt(++E.position);ve=E.input.slice(Z,E.position),c.test(ve)&&_(E,"tag suffix cannot contain flow indicator characters")}ve&&!p.test(ve)&&_(E,"tag name cannot contain such characters: "+ve);try{ve=decodeURIComponent(ve)}catch(Ie){_(E,"tag name is malformed: "+ve)}return re?E.tag=ve:m.call(E.tagMap,ne)?E.tag=E.tagMap[ne]+ve:ne==="!"?E.tag="!"+ve:ne==="!!"?E.tag="tag:yaml.org,2002:"+ve:_(E,'undeclared tag handle "'+ne+'"'),!0}function te(E){var Z,re;if(re=E.input.charCodeAt(E.position),re!==38)return!1;for(E.anchor!==null&&_(E,"duplication of an anchor property"),re=E.input.charCodeAt(++E.position),Z=E.position;re!==0&&!b(re)&&!g(re);)re=E.input.charCodeAt(++E.position);return E.position===Z&&_(E,"name of an anchor node must contain at least one character"),E.anchor=E.input.slice(Z,E.position),!0}function ee(E){var Z,re,X;if(X=E.input.charCodeAt(E.position),X!==42)return!1;for(X=E.input.charCodeAt(++E.position),Z=E.position;X!==0&&!b(X)&&!g(X);)X=E.input.charCodeAt(++E.position);return E.position===Z&&_(E,"name of an alias node must contain at least one character"),re=E.input.slice(Z,E.position),m.call(E.anchorMap,re)||_(E,'unidentified alias "'+re+'"'),E.result=E.anchorMap[re],H(E,!0,-1),!0}function ie(E,Z,re,X,ne){var ve,Ve,Ie,Pe=1,Ae=!1,Oe=!1,de,ge,j,ue,be,ke;if(E.listener!==null&&E.listener("open",E),E.tag=null,E.anchor=null,E.kind=null,E.result=null,ve=Ve=Ie=N===re||S===re,X&&H(E,!0,-1)&&(Ae=!0,E.lineIndent>Z?Pe=1:E.lineIndent===Z?Pe=0:E.lineIndent<Z&&(Pe=-1)),Pe===1)for(;ce(E)||te(E);)H(E,!0,-1)?(Ae=!0,Ie=ve,E.lineIndent>Z?Pe=1:E.lineIndent===Z?Pe=0:E.lineIndent<Z&&(Pe=-1)):Ie=!1;if(Ie&&(Ie=Ae||ne),(Pe===1||N===re)&&(V===re||k===re?be=Z:be=Z+1,ke=E.position-E.lineStart,Pe===1?Ie&&(me(E,ke)||Be(E,ke,be))||le(E,be)?Oe=!0:(Ve&&he(E,be)||oe(E,be)||ae(E,be)?Oe=!0:ee(E)?(Oe=!0,(E.tag!==null||E.anchor!==null)&&_(E,"alias node should not have any properties")):q(E,be,V===re)&&(Oe=!0,E.tag===null&&(E.tag="?")),E.anchor!==null&&(E.anchorMap[E.anchor]=E.result)):Pe===0&&(Oe=Ie&&me(E,ke))),E.tag===null)E.anchor!==null&&(E.anchorMap[E.anchor]=E.result);else if(E.tag==="?"){for(E.result!==null&&E.kind!=="scalar"&&_(E,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+E.kind+'"'),de=0,ge=E.implicitTypes.length;de<ge;de+=1)if(ue=E.implicitTypes[de],ue.resolve(E.result)){E.result=ue.construct(E.result),E.tag=ue.tag,E.anchor!==null&&(E.anchorMap[E.anchor]=E.result);break}}else if(E.tag!=="!"){if(m.call(E.typeMap[E.kind||"fallback"],E.tag))ue=E.typeMap[E.kind||"fallback"][E.tag];else for(ue=null,j=E.typeMap.multi[E.kind||"fallback"],de=0,ge=j.length;de<ge;de+=1)if(E.tag.slice(0,j[de].tag.length)===j[de].tag){ue=j[de];break}ue||_(E,"unknown tag !<"+E.tag+">"),E.result!==null&&ue.kind!==E.kind&&_(E,"unacceptable node kind for !<"+E.tag+'> tag; it should be "'+ue.kind+'", not "'+E.kind+'"'),ue.resolve(E.result,E.tag)?(E.result=ue.construct(E.result,E.tag),E.anchor!==null&&(E.anchorMap[E.anchor]=E.result)):_(E,"cannot resolve a node with !<"+E.tag+"> explicit tag")}return E.listener!==null&&E.listener("close",E),E.tag!==null||E.anchor!==null||Oe}function Ce(E){var Z=E.position,re,X,ne,ve=!1,Ve;for(E.version=null,E.checkLineBreaks=E.legacy,E.tagMap=Object.create(null),E.anchorMap=Object.create(null);(Ve=E.input.charCodeAt(E.position))!==0&&(H(E,!0,-1),Ve=E.input.charCodeAt(E.position),!(E.lineIndent>0||Ve!==37));){for(ve=!0,Ve=E.input.charCodeAt(++E.position),re=E.position;Ve!==0&&!b(Ve);)Ve=E.input.charCodeAt(++E.position);for(X=E.input.slice(re,E.position),ne=[],X.length<1&&_(E,"directive name must not be less than one character in length");Ve!==0;){for(;C(Ve);)Ve=E.input.charCodeAt(++E.position);if(Ve===35){do Ve=E.input.charCodeAt(++E.position);while(Ve!==0&&!f(Ve));break}if(f(Ve))break;for(re=E.position;Ve!==0&&!b(Ve);)Ve=E.input.charCodeAt(++E.position);ne.push(E.input.slice(re,E.position))}Ve!==0&&K(E),m.call(D,X)?D[X](E,X,ne):P(E,'unknown document directive "'+X+'"')}if(H(E,!0,-1),E.lineIndent===0&&E.input.charCodeAt(E.position)===45&&E.input.charCodeAt(E.position+1)===45&&E.input.charCodeAt(E.position+2)===45?(E.position+=3,H(E,!0,-1)):ve&&_(E,"directives end mark is expected"),ie(E,E.lineIndent-1,N,!1,!0),H(E,!0,-1),E.checkLineBreaks&&i.test(E.input.slice(Z,E.position))&&P(E,"non-ASCII line breaks are interpreted as content"),E.documents.push(E.result),E.position===E.lineStart&&Y(E)){E.input.charCodeAt(E.position)===46&&(E.position+=3,H(E,!0,-1));return}if(E.position<E.length-1)_(E,"end of the stream or a document separator is expected");else return}function Se(E,Z){E=String(E),Z=Z||{},E.length!==0&&(E.charCodeAt(E.length-1)!==10&&E.charCodeAt(E.length-1)!==13&&(E+="\n"),E.charCodeAt(0)===65279&&(E=E.slice(1)));var re=new R(E,Z),X=E.indexOf("\0");for(X!==-1&&(re.position=X,_(re,"null byte is not allowed in input")),re.input+="\0";re.input.charCodeAt(re.position)===32;)re.lineIndent+=1,re.position+=1;for(;re.position<re.length-1;)Ce(re);return re.documents}function we(E,Z,re){Z!==null&&typeof Z=="object"&&typeof re=="undefined"&&(re=Z,Z=null);var X=Se(E,re);if(typeof Z!="function")return X;for(var ne=0,ve=X.length;ne<ve;ne+=1)Z(X[ne])}function pe(E,Z){var re=Se(E,Z);if(re.length!==0){if(re.length===1)return re[0];throw new a("expected a single document in the stream, but found more")}}x.exports.loadAll=we,x.exports.load=pe},20838:function(x,r,n){"use strict";var e=n(14956),a=n(85243);function t(V,k){var S=[];return V[k].forEach(function(N){var h=S.length;S.forEach(function(s,l){s.tag===N.tag&&s.kind===N.kind&&s.multi===N.multi&&(h=l)}),S[h]=N}),S}function o(){var V={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},k,S;function N(h){h.multi?(V.multi[h.kind].push(h),V.multi.fallback.push(h)):V[h.kind][h.tag]=V.fallback[h.tag]=h}for(k=0,S=arguments.length;k<S;k+=1)arguments[k].forEach(N);return V}function m(V){return this.extend(V)}m.prototype.extend=function(){function V(k){var S=[],N=[];if(k instanceof a)N.push(k);else if(Array.isArray(k))N=N.concat(k);else if(k&&(Array.isArray(k.implicit)||Array.isArray(k.explicit)))k.implicit&&(S=S.concat(k.implicit)),k.explicit&&(N=N.concat(k.explicit));else throw new e("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");S.forEach(function(s){if(!(s instanceof a))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new e("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new e("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),N.forEach(function(s){if(!(s instanceof a))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var h=Object.create(m.prototype);return h.implicit=(this.implicit||[]).concat(S),h.explicit=(this.explicit||[]).concat(N),h.compiledImplicit=t(h,"implicit"),h.compiledExplicit=t(h,"explicit"),h.compiledTypeMap=o(h.compiledImplicit,h.compiledExplicit),h}return V}(),x.exports=m},23082:function(x,r,n){"use strict";x.exports=n(67554)},40004:function(x,r,n){"use strict";x.exports=n(23082).extend({implicit:[n(59404),n(95308)],explicit:[n(80258),n(33088),n(56966),n(39987)]})},43547:function(x,r,n){"use strict";var e=n(20838);x.exports=new e({explicit:[n(57095),n(29690),n(2738)]})},67554:function(x,r,n){"use strict";x.exports=n(43547).extend({implicit:[n(67574),n(43788),n(27561),n(22207)]})},47399:function(x,r,n){"use strict";var e=n(16310);function a(m,V,k,S,N){var h="",s="",l=Math.floor(N/2)-1;return S-V>l&&(h=" ... ",V=S-l+h.length),k-S>l&&(s=" ...",k=S+l-s.length),{str:h+m.slice(V,k).replace(/\t/g,"\u2192")+s,pos:S-V+h.length}}function t(m,V){return e.repeat(" ",V-m.length)+m}function o(m,V){if(V=Object.create(V||null),!m.buffer)return null;V.maxLength||(V.maxLength=79),typeof V.indent!="number"&&(V.indent=1),typeof V.linesBefore!="number"&&(V.linesBefore=3),typeof V.linesAfter!="number"&&(V.linesAfter=2);for(var k=/\r?\n|\r|\0/g,S=[0],N=[],h,s=-1;h=k.exec(m.buffer);)N.push(h.index),S.push(h.index+h[0].length),m.position<=h.index&&s<0&&(s=S.length-2);s<0&&(s=S.length-1);var l="",u,i,c=Math.min(m.line+V.linesAfter,N.length).toString().length,d=V.maxLength-(V.indent+c+3);for(u=1;u<=V.linesBefore&&!(s-u<0);u++)i=a(m.buffer,S[s-u],N[s-u],m.position-(S[s]-S[s-u]),d),l=e.repeat(" ",V.indent)+t((m.line-u+1).toString(),c)+" | "+i.str+"\n"+l;for(i=a(m.buffer,S[s],N[s],m.position,d),l+=e.repeat(" ",V.indent)+t((m.line+1).toString(),c)+" | "+i.str+"\n",l+=e.repeat("-",V.indent+c+3+i.pos)+"^\n",u=1;u<=V.linesAfter&&!(s+u>=N.length);u++)i=a(m.buffer,S[s+u],N[s+u],m.position-(S[s]-S[s+u]),d),l+=e.repeat(" ",V.indent)+t((m.line+u+1).toString(),c)+" | "+i.str+"\n";return l.replace(/\n$/,"")}x.exports=o},85243:function(x,r,n){"use strict";var e=n(14956),a=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],t=["scalar","sequence","mapping"];function o(V){var k={};return V!==null&&Object.keys(V).forEach(function(S){V[S].forEach(function(N){k[String(N)]=S})}),k}function m(V,k){if(k=k||{},Object.keys(k).forEach(function(S){if(a.indexOf(S)===-1)throw new e('Unknown option "'+S+'" is met in definition of "'+V+'" YAML type.')}),this.options=k,this.tag=V,this.kind=k.kind||null,this.resolve=k.resolve||function(){return!0},this.construct=k.construct||function(S){return S},this.instanceOf=k.instanceOf||null,this.predicate=k.predicate||null,this.represent=k.represent||null,this.representName=k.representName||null,this.defaultStyle=k.defaultStyle||null,this.multi=k.multi||!1,this.styleAliases=o(k.styleAliases||null),t.indexOf(this.kind)===-1)throw new e('Unknown kind "'+this.kind+'" is specified for "'+V+'" YAML type.')}x.exports=m},80258:function(x,r,n){"use strict";var e=n(85243),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function t(k){if(k===null)return!1;var S,N,h=0,s=k.length,l=a;for(N=0;N<s;N++)if(S=l.indexOf(k.charAt(N)),!(S>64)){if(S<0)return!1;h+=6}return h%8===0}function o(k){var S,N,h=k.replace(/[\r\n=]/g,""),s=h.length,l=a,u=0,i=[];for(S=0;S<s;S++)S%4===0&&S&&(i.push(u>>16&255),i.push(u>>8&255),i.push(u&255)),u=u<<6|l.indexOf(h.charAt(S));return N=s%4*6,N===0?(i.push(u>>16&255),i.push(u>>8&255),i.push(u&255)):N===18?(i.push(u>>10&255),i.push(u>>2&255)):N===12&&i.push(u>>4&255),new Uint8Array(i)}function m(k){var S="",N=0,h,s,l=k.length,u=a;for(h=0;h<l;h++)h%3===0&&h&&(S+=u[N>>18&63],S+=u[N>>12&63],S+=u[N>>6&63],S+=u[N&63]),N=(N<<8)+k[h];return s=l%3,s===0?(S+=u[N>>18&63],S+=u[N>>12&63],S+=u[N>>6&63],S+=u[N&63]):s===2?(S+=u[N>>10&63],S+=u[N>>4&63],S+=u[N<<2&63],S+=u[64]):s===1&&(S+=u[N>>2&63],S+=u[N<<4&63],S+=u[64],S+=u[64]),S}function V(k){return Object.prototype.toString.call(k)==="[object Uint8Array]"}x.exports=new e("tag:yaml.org,2002:binary",{kind:"scalar",resolve:t,construct:o,predicate:V,represent:m})},43788:function(x,r,n){"use strict";var e=n(85243);function a(m){if(m===null)return!1;var V=m.length;return V===4&&(m==="true"||m==="True"||m==="TRUE")||V===5&&(m==="false"||m==="False"||m==="FALSE")}function t(m){return m==="true"||m==="True"||m==="TRUE"}function o(m){return Object.prototype.toString.call(m)==="[object Boolean]"}x.exports=new e("tag:yaml.org,2002:bool",{kind:"scalar",resolve:a,construct:t,predicate:o,represent:{lowercase:function(){function m(V){return V?"true":"false"}return m}(),uppercase:function(){function m(V){return V?"TRUE":"FALSE"}return m}(),camelcase:function(){function m(V){return V?"True":"False"}return m}()},defaultStyle:"lowercase"})},22207:function(x,r,n){"use strict";var e=n(16310),a=n(85243),t=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function o(N){return!(N===null||!t.test(N)||N[N.length-1]==="_")}function m(N){var h,s;return h=N.replace(/_/g,"").toLowerCase(),s=h[0]==="-"?-1:1,"+-".indexOf(h[0])>=0&&(h=h.slice(1)),h===".inf"?s===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:h===".nan"?NaN:s*parseFloat(h,10)}var V=/^[-+]?[0-9]+e/;function k(N,h){var s;if(isNaN(N))switch(h){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===N)switch(h){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===N)switch(h){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(N))return"-0.0";return s=N.toString(10),V.test(s)?s.replace("e",".e"):s}function S(N){return Object.prototype.toString.call(N)==="[object Number]"&&(N%1!==0||e.isNegativeZero(N))}x.exports=new a("tag:yaml.org,2002:float",{kind:"scalar",resolve:o,construct:m,predicate:S,represent:k,defaultStyle:"lowercase"})},27561:function(x,r,n){"use strict";var e=n(16310),a=n(85243);function t(N){return 48<=N&&N<=57||65<=N&&N<=70||97<=N&&N<=102}function o(N){return 48<=N&&N<=55}function m(N){return 48<=N&&N<=57}function V(N){if(N===null)return!1;var h=N.length,s=0,l=!1,u;if(!h)return!1;if(u=N[s],(u==="-"||u==="+")&&(u=N[++s]),u==="0"){if(s+1===h)return!0;if(u=N[++s],u==="b"){for(s++;s<h;s++)if(u=N[s],u!=="_"){if(u!=="0"&&u!=="1")return!1;l=!0}return l&&u!=="_"}if(u==="x"){for(s++;s<h;s++)if(u=N[s],u!=="_"){if(!t(N.charCodeAt(s)))return!1;l=!0}return l&&u!=="_"}if(u==="o"){for(s++;s<h;s++)if(u=N[s],u!=="_"){if(!o(N.charCodeAt(s)))return!1;l=!0}return l&&u!=="_"}}if(u==="_")return!1;for(;s<h;s++)if(u=N[s],u!=="_"){if(!m(N.charCodeAt(s)))return!1;l=!0}return!(!l||u==="_")}function k(N){var h=N,s=1,l;if(h.indexOf("_")!==-1&&(h=h.replace(/_/g,"")),l=h[0],(l==="-"||l==="+")&&(l==="-"&&(s=-1),h=h.slice(1),l=h[0]),h==="0")return 0;if(l==="0"){if(h[1]==="b")return s*parseInt(h.slice(2),2);if(h[1]==="x")return s*parseInt(h.slice(2),16);if(h[1]==="o")return s*parseInt(h.slice(2),8)}return s*parseInt(h,10)}function S(N){return Object.prototype.toString.call(N)==="[object Number]"&&N%1===0&&!e.isNegativeZero(N)}x.exports=new a("tag:yaml.org,2002:int",{kind:"scalar",resolve:V,construct:k,predicate:S,represent:{binary:function(){function N(h){return h>=0?"0b"+h.toString(2):"-0b"+h.toString(2).slice(1)}return N}(),octal:function(){function N(h){return h>=0?"0o"+h.toString(8):"-0o"+h.toString(8).slice(1)}return N}(),decimal:function(){function N(h){return h.toString(10)}return N}(),hexadecimal:function(){function N(h){return h>=0?"0x"+h.toString(16).toUpperCase():"-0x"+h.toString(16).toUpperCase().slice(1)}return N}()},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},2738:function(x,r,n){"use strict";var e=n(85243);x.exports=new e("tag:yaml.org,2002:map",{kind:"mapping",construct:function(){function a(t){return t!==null?t:{}}return a}()})},95308:function(x,r,n){"use strict";var e=n(85243);function a(t){return t==="<<"||t===null}x.exports=new e("tag:yaml.org,2002:merge",{kind:"scalar",resolve:a})},67574:function(x,r,n){"use strict";var e=n(85243);function a(m){if(m===null)return!0;var V=m.length;return V===1&&m==="~"||V===4&&(m==="null"||m==="Null"||m==="NULL")}function t(){return null}function o(m){return m===null}x.exports=new e("tag:yaml.org,2002:null",{kind:"scalar",resolve:a,construct:t,predicate:o,represent:{canonical:function(){function m(){return"~"}return m}(),lowercase:function(){function m(){return"null"}return m}(),uppercase:function(){function m(){return"NULL"}return m}(),camelcase:function(){function m(){return"Null"}return m}(),empty:function(){function m(){return""}return m}()},defaultStyle:"lowercase"})},33088:function(x,r,n){"use strict";var e=n(85243),a=Object.prototype.hasOwnProperty,t=Object.prototype.toString;function o(V){if(V===null)return!0;var k=[],S,N,h,s,l,u=V;for(S=0,N=u.length;S<N;S+=1){if(h=u[S],l=!1,t.call(h)!=="[object Object]")return!1;for(s in h)if(a.call(h,s))if(!l)l=!0;else return!1;if(!l)return!1;if(k.indexOf(s)===-1)k.push(s);else return!1}return!0}function m(V){return V!==null?V:[]}x.exports=new e("tag:yaml.org,2002:omap",{kind:"sequence",resolve:o,construct:m})},56966:function(x,r,n){"use strict";var e=n(85243),a=Object.prototype.toString;function t(m){if(m===null)return!0;var V,k,S,N,h,s=m;for(h=new Array(s.length),V=0,k=s.length;V<k;V+=1){if(S=s[V],a.call(S)!=="[object Object]"||(N=Object.keys(S),N.length!==1))return!1;h[V]=[N[0],S[N[0]]]}return!0}function o(m){if(m===null)return[];var V,k,S,N,h,s=m;for(h=new Array(s.length),V=0,k=s.length;V<k;V+=1)S=s[V],N=Object.keys(S),h[V]=[N[0],S[N[0]]];return h}x.exports=new e("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:t,construct:o})},29690:function(x,r,n){"use strict";var e=n(85243);x.exports=new e("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(){function a(t){return t!==null?t:[]}return a}()})},39987:function(x,r,n){"use strict";var e=n(85243),a=Object.prototype.hasOwnProperty;function t(m){if(m===null)return!0;var V,k=m;for(V in k)if(a.call(k,V)&&k[V]!==null)return!1;return!0}function o(m){return m!==null?m:{}}x.exports=new e("tag:yaml.org,2002:set",{kind:"mapping",resolve:t,construct:o})},57095:function(x,r,n){"use strict";var e=n(85243);x.exports=new e("tag:yaml.org,2002:str",{kind:"scalar",construct:function(){function a(t){return t!==null?t:""}return a}()})},59404:function(x,r,n){"use strict";var e=n(85243),a=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function o(k){return k===null?!1:a.exec(k)!==null||t.exec(k)!==null}function m(k){var S,N,h,s,l,u,i,c=0,d=null,p,v,f;if(S=a.exec(k),S===null&&(S=t.exec(k)),S===null)throw new Error("Date resolve error");if(N=+S[1],h=+S[2]-1,s=+S[3],!S[4])return new Date(Date.UTC(N,h,s));if(l=+S[4],u=+S[5],i=+S[6],S[7]){for(c=S[7].slice(0,3);c.length<3;)c+="0";c=+c}return S[9]&&(p=+S[10],v=+(S[11]||0),d=(p*60+v)*6e4,S[9]==="-"&&(d=-d)),f=new Date(Date.UTC(N,h,s,l,u,i,c)),d&&f.setTime(f.getTime()-d),f}function V(k){return k.toISOString()}x.exports=new e("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:o,construct:m,instanceOf:Date,represent:V})},27717:function(x){"use strict";var r=function(n){"use strict";var e=Object.prototype,a=e.hasOwnProperty,t=Object.defineProperty||function(_,P,D){_[P]=D.value},o,m=typeof Symbol=="function"?Symbol:{},V=m.iterator||"@@iterator",k=m.asyncIterator||"@@asyncIterator",S=m.toStringTag||"@@toStringTag";function N(_,P,D){return Object.defineProperty(_,P,{value:D,enumerable:!0,configurable:!0,writable:!0}),_[P]}try{N({},"")}catch(_){N=function(D,z,U){return D[z]=U}}function h(_,P,D,z){var U=P&&P.prototype instanceof p?P:p,W=Object.create(U.prototype),K=new A(z||[]);return t(W,"_invoke",{value:I(_,D,K)}),W}n.wrap=h;function s(_,P,D){try{return{type:"normal",arg:_.call(P,D)}}catch(z){return{type:"throw",arg:z}}}var l="suspendedStart",u="suspendedYield",i="executing",c="completed",d={};function p(){}function v(){}function f(){}var C={};N(C,V,function(){return this});var b=Object.getPrototypeOf,g=b&&b(b(R([])));g&&g!==e&&a.call(g,V)&&(C=g);var y=f.prototype=p.prototype=Object.create(C);v.prototype=f,t(y,"constructor",{value:f,configurable:!0}),t(f,"constructor",{value:v,configurable:!0}),v.displayName=N(f,S,"GeneratorFunction");function B(_){["next","throw","return"].forEach(function(P){N(_,P,function(D){return this._invoke(P,D)})})}n.isGeneratorFunction=function(_){var P=typeof _=="function"&&_.constructor;return P?P===v||(P.displayName||P.name)==="GeneratorFunction":!1},n.mark=function(_){return Object.setPrototypeOf?Object.setPrototypeOf(_,f):(_.__proto__=f,N(_,S,"GeneratorFunction")),_.prototype=Object.create(y),_},n.awrap=function(_){return{__await:_}};function L(_,P){function D(W,K,H,Y){var J=s(_[W],_,K);if(J.type==="throw")Y(J.arg);else{var q=J.arg,oe=q.value;return oe&&typeof oe=="object"&&a.call(oe,"__await")?P.resolve(oe.__await).then(function(ae){D("next",ae,H,Y)},function(ae){D("throw",ae,H,Y)}):P.resolve(oe).then(function(ae){q.value=ae,H(q)},function(ae){return D("throw",ae,H,Y)})}}var z;function U(W,K){function H(){return new P(function(Y,J){D(W,K,Y,J)})}return z=z?z.then(H,H):H()}t(this,"_invoke",{value:U})}B(L.prototype),N(L.prototype,k,function(){return this}),n.AsyncIterator=L,n.async=function(_,P,D,z,U){U===void 0&&(U=Promise);var W=new L(h(_,P,D,z),U);return n.isGeneratorFunction(P)?W:W.next().then(function(K){return K.done?K.value:W.next()})};function I(_,P,D){var z=l;return function(){function U(W,K){if(z===i)throw new Error("Generator is already running");if(z===c){if(W==="throw")throw K;return O()}for(D.method=W,D.arg=K;;){var H=D.delegate;if(H){var Y=w(H,D);if(Y){if(Y===d)continue;return Y}}if(D.method==="next")D.sent=D._sent=D.arg;else if(D.method==="throw"){if(z===l)throw z=c,D.arg;D.dispatchException(D.arg)}else D.method==="return"&&D.abrupt("return",D.arg);z=i;var J=s(_,P,D);if(J.type==="normal"){if(z=D.done?c:u,J.arg===d)continue;return{value:J.arg,done:D.done}}else J.type==="throw"&&(z=c,D.method="throw",D.arg=J.arg)}}return U}()}function w(_,P){var D=P.method,z=_.iterator[D];if(z===o)return P.delegate=null,D==="throw"&&_.iterator.return&&(P.method="return",P.arg=o,w(_,P),P.method==="throw")||D!=="return"&&(P.method="throw",P.arg=new TypeError("The iterator does not provide a '"+D+"' method")),d;var U=s(z,_.iterator,P.arg);if(U.type==="throw")return P.method="throw",P.arg=U.arg,P.delegate=null,d;var W=U.arg;if(!W)return P.method="throw",P.arg=new TypeError("iterator result is not an object"),P.delegate=null,d;if(W.done)P[_.resultName]=W.value,P.next=_.nextLoc,P.method!=="return"&&(P.method="next",P.arg=o);else return W;return P.delegate=null,d}B(y),N(y,S,"Generator"),N(y,V,function(){return this}),N(y,"toString",function(){return"[object Generator]"});function T(_){var P={tryLoc:_[0]};1 in _&&(P.catchLoc=_[1]),2 in _&&(P.finallyLoc=_[2],P.afterLoc=_[3]),this.tryEntries.push(P)}function M(_){var P=_.completion||{};P.type="normal",delete P.arg,_.completion=P}function A(_){this.tryEntries=[{tryLoc:"root"}],_.forEach(T,this),this.reset(!0)}n.keys=function(_){var P=Object(_),D=[];for(var z in P)D.push(z);return D.reverse(),function(){function U(){for(;D.length;){var W=D.pop();if(W in P)return U.value=W,U.done=!1,U}return U.done=!0,U}return U}()};function R(_){if(_){var P=_[V];if(P)return P.call(_);if(typeof _.next=="function")return _;if(!isNaN(_.length)){var D=-1,z=function(){function U(){for(;++D<_.length;)if(a.call(_,D))return U.value=_[D],U.done=!1,U;return U.value=o,U.done=!0,U}return U}();return z.next=z}}return{next:O}}n.values=R;function O(){return{value:o,done:!0}}return A.prototype={constructor:A,reset:function(){function _(P){if(this.prev=0,this.next=0,this.sent=this._sent=o,this.done=!1,this.delegate=null,this.method="next",this.arg=o,this.tryEntries.forEach(M),!P)for(var D in this)D.charAt(0)==="t"&&a.call(this,D)&&!isNaN(+D.slice(1))&&(this[D]=o)}return _}(),stop:function(){function _(){this.done=!0;var P=this.tryEntries[0],D=P.completion;if(D.type==="throw")throw D.arg;return this.rval}return _}(),dispatchException:function(){function _(P){if(this.done)throw P;var D=this;function z(J,q){return K.type="throw",K.arg=P,D.next=J,q&&(D.method="next",D.arg=o),!!q}for(var U=this.tryEntries.length-1;U>=0;--U){var W=this.tryEntries[U],K=W.completion;if(W.tryLoc==="root")return z("end");if(W.tryLoc<=this.prev){var H=a.call(W,"catchLoc"),Y=a.call(W,"finallyLoc");if(H&&Y){if(this.prev<W.catchLoc)return z(W.catchLoc,!0);if(this.prev<W.finallyLoc)return z(W.finallyLoc)}else if(H){if(this.prev<W.catchLoc)return z(W.catchLoc,!0)}else if(Y){if(this.prev<W.finallyLoc)return z(W.finallyLoc)}else throw new Error("try statement without catch or finally")}}}return _}(),abrupt:function(){function _(P,D){for(var z=this.tryEntries.length-1;z>=0;--z){var U=this.tryEntries[z];if(U.tryLoc<=this.prev&&a.call(U,"finallyLoc")&&this.prev<U.finallyLoc){var W=U;break}}W&&(P==="break"||P==="continue")&&W.tryLoc<=D&&D<=W.finallyLoc&&(W=null);var K=W?W.completion:{};return K.type=P,K.arg=D,W?(this.method="next",this.next=W.finallyLoc,d):this.complete(K)}return _}(),complete:function(){function _(P,D){if(P.type==="throw")throw P.arg;return P.type==="break"||P.type==="continue"?this.next=P.arg:P.type==="return"?(this.rval=this.arg=P.arg,this.method="return",this.next="end"):P.type==="normal"&&D&&(this.next=D),d}return _}(),finish:function(){function _(P){for(var D=this.tryEntries.length-1;D>=0;--D){var z=this.tryEntries[D];if(z.finallyLoc===P)return this.complete(z.completion,z.afterLoc),M(z),d}}return _}(),catch:function(){function _(P){for(var D=this.tryEntries.length-1;D>=0;--D){var z=this.tryEntries[D];if(z.tryLoc===P){var U=z.completion;if(U.type==="throw"){var W=U.arg;M(z)}return W}}throw new Error("illegal catch attempt")}return _}(),delegateYield:function(){function _(P,D,z){return this.delegate={iterator:R(P),resultName:D,nextLoc:z},this.method==="next"&&(this.arg=o),d}return _}()},n}(x.exports);try{regeneratorRuntime=r}catch(n){typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},9084:function(){"use strict";self.fetch||(self.fetch=function(x,r){return r=r||{},new Promise(function(n,e){var a=new XMLHttpRequest,t=[],o=[],m={},V=function S(){return{ok:(a.status/100|0)==2,statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){function N(){return Promise.resolve(a.responseText)}return N}(),json:function(){function N(){return Promise.resolve(a.responseText).then(JSON.parse)}return N}(),blob:function(){function N(){return Promise.resolve(new Blob([a.response]))}return N}(),clone:S,headers:{keys:function(){function N(){return t}return N}(),entries:function(){function N(){return o}return N}(),get:function(){function N(h){return m[h.toLowerCase()]}return N}(),has:function(){function N(h){return h.toLowerCase()in m}return N}()}}};for(var k in a.open(r.method||"get",x,!0),a.onload=function(){a.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(S,N,h){t.push(N=N.toLowerCase()),o.push([N,h]),m[N]=m[N]?m[N]+","+h:h}),n(V())},a.onerror=e,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(k,r.headers[k]);a.send(r.body||null)})})},45445:function(x,r){"use strict";r.__esModule=!0,r.zipWith=r.zip=r.uniqBy=r.uniq=r.sortStrings=r.sortBy=r.sort=r.reduce=r.range=r.paginate=r.map=r.filterMap=r.filter=r.deepMerge=r.binaryInsertWith=void 0;function n(b,g){var y=typeof Symbol!="undefined"&&b[Symbol.iterator]||b["@@iterator"];if(y)return(y=y.call(b)).next.bind(y);if(Array.isArray(b)||(y=e(b))||g&&b&&typeof b.length=="number"){y&&(b=y);var B=0;return function(){return B>=b.length?{done:!0}:{done:!1,value:b[B++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(b,g){if(b){if(typeof b=="string")return a(b,g);var y=Object.prototype.toString.call(b).slice(8,-1);if(y==="Object"&&b.constructor&&(y=b.constructor.name),y==="Map"||y==="Set")return Array.from(b);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return a(b,g)}}function a(b,g){(g==null||g>b.length)&&(g=b.length);for(var y=0,B=new Array(g);y<g;y++)B[y]=b[y];return B}/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var t=r.filter=function(){function b(g){return function(y){if(y==null)return y;if(Array.isArray(y)){for(var B=[],L=0;L<y.length;L++){var I=y[L];g(I,L,y)&&B.push(I)}return B}throw new Error("filter() can't iterate on type "+typeof y)}}return b}(),o=r.map=function(){function b(g){return function(y){if(y==null)return y;if(Array.isArray(y))return y.map(g);if(typeof y=="object")return Object.entries(y).map(function(B){var L=B[0],I=B[1];return g(I,L,y)});throw new Error("map() can't iterate on type "+typeof y)}}return b}(),m=r.filterMap=function(){function b(g,y){for(var B=[],L=n(g),I;!(I=L()).done;){var w=I.value,T=y(w);T!==void 0&&B.push(T)}return B}return b}(),V=function(g,y){for(var B=g.criteria,L=y.criteria,I=B.length,w=0;w<I;w++){var T=B[w],M=L[w];if(T<M)return-1;if(T>M)return 1}return 0},k=r.sortBy=function(){function b(){for(var g=arguments.length,y=new Array(g),B=0;B<g;B++)y[B]=arguments[B];return function(L){if(!Array.isArray(L))return L;for(var I=L.length,w=[],T=function(){function R(){var O=L[M];w.push({criteria:y.map(function(_){return _(O)}),value:O})}return R}(),M=0;M<I;M++)T();w.sort(V);for(var A=[];I--;)A[I]=w[I].value;return A}}return b}(),S=r.sort=k(),N=r.sortStrings=k(),h=r.range=function(){function b(g,y){return new Array(y-g).fill(null).map(function(B,L){return L+g})}return b}(),s=r.reduce=function(){function b(g,y){return function(B){var L=B.length,I,w;for(y===void 0?(I=1,w=B[0]):(I=0,w=y);I<L;I++)w=g(w,B[I],I,B);return w}}return b}(),l=r.uniqBy=function(){function b(g){return function(y){var B=y.length,L=[],I=g?[]:L,w=-1;e:for(;++w<B;){var T=y[w],M=g?g(T):T;if(M===M){for(var A=I.length;A--;)if(I[A]===M)continue e;g&&I.push(M),L.push(T)}else I.includes(M)||(I!==L&&I.push(M),L.push(T))}return L}}return b}(),u=r.uniq=l(),i=r.zip=function(){function b(){for(var g=arguments.length,y=new Array(g),B=0;B<g;B++)y[B]=arguments[B];if(y.length===0)return[];for(var L=y.length,I=y[0].length,w=[],T=0;T<I;T++){for(var M=[],A=0;A<L;A++)M.push(y[A][T]);w.push(M)}return w}return b}(),c=r.zipWith=function(){function b(g){return function(){return o(function(y){return g.apply(void 0,y)})(i.apply(void 0,arguments))}}return b}(),d=function(g,y,B){if(y.length===0)return 0;for(var L=g(B),I=[0,y.length],w=I[0],T=I[1],M=void 0,A=0;w<T;)if(A=w+T>>1,M=g(y[A]),M<L)w=A+1;else{if(M===L)return A;T=A}return M>L?A:A+1},p=r.binaryInsertWith=function(){function b(g){return function(y,B){var L=[].concat(y);return L.splice(d(g,y,B),0,B),L}}return b}(),v=r.paginate=function(){function b(g,y){for(var B=[],L=[],I=y,w=n(g),T;!(T=w()).done;){var M=T.value;L.push(M),I--,I||(I=y,B.push(L),L=[])}return L.length&&B.push(L),B}return b}(),f=function(g){return typeof g=="object"&&g!==null},C=r.deepMerge=function(){function b(){for(var g={},y=arguments.length,B=new Array(y),L=0;L<y;L++)B[L]=arguments[L];for(var I=0,w=B;I<w.length;I++)for(var T=w[I],M=0,A=Object.keys(T);M<A.length;M++){var R=A[M],O=g[R],_=T[R];Array.isArray(O)&&Array.isArray(_)?g[R]=[].concat(O,_):f(O)&&f(_)?g[R]=b(O,_):g[R]=_}return g}return b}()},20474:function(x,r){"use strict";r.__esModule=!0,r.EventEmitter=void 0;/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var n=r.EventEmitter=function(){function e(){this.listeners={}}var a=e.prototype;return a.on=function(){function t(o,m){this.listeners[o]=this.listeners[o]||[],this.listeners[o].push(m)}return t}(),a.off=function(){function t(o,m){var V=this.listeners[o];if(!V)throw new Error('There is no listeners for "'+o+'"');this.listeners[o]=V.filter(function(k){return k!==m})}return t}(),a.emit=function(){function t(o){var m=this.listeners[o];if(m){for(var V=arguments.length,k=new Array(V>1?V-1:0),S=1;S<V;S++)k[S-1]=arguments[S];for(var N=0,h=m.length;N<h;N+=1){var s=m[N];s.apply(void 0,k)}}}return t}(),a.clear=function(){function t(){this.listeners={}}return t}(),e}()},75671:function(x,r){"use strict";r.__esModule=!0,r.flow=r.compose=void 0;/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var n=r.flow=function(){function a(){for(var t=arguments.length,o=new Array(t),m=0;m<t;m++)o[m]=arguments[m];return function(V){for(var k=V,S=arguments.length,N=new Array(S>1?S-1:0),h=1;h<S;h++)N[h-1]=arguments[h];for(var s=0,l=o;s<l.length;s++){var u=l[s];Array.isArray(u)?k=a.apply(void 0,u).apply(void 0,[k].concat(N)):u&&(k=u.apply(void 0,[k].concat(N)))}return k}}return a}(),e=r.compose=function(){function a(){for(var t=arguments.length,o=new Array(t),m=0;m<t;m++)o[m]=arguments[m];return o.length===0?function(V){return V}:o.length===1?o[0]:o.reduce(function(V,k){return function(S){for(var N=arguments.length,h=new Array(N>1?N-1:0),s=1;s<N;s++)h[s-1]=arguments[s];return V.apply(void 0,[k.apply(void 0,[S].concat(h))].concat(h))}})}return a}()},42678:function(x,r){"use strict";r.__esModule=!0,r.KEY_Z=r.KEY_Y=r.KEY_X=r.KEY_W=r.KEY_V=r.KEY_UP=r.KEY_U=r.KEY_TAB=r.KEY_T=r.KEY_SPACE=r.KEY_SLASH=r.KEY_SHIFT=r.KEY_SEMICOLON=r.KEY_S=r.KEY_RIGHT_BRACKET=r.KEY_RIGHT=r.KEY_R=r.KEY_QUOTE=r.KEY_Q=r.KEY_PERIOD=r.KEY_PAUSE=r.KEY_PAGEUP=r.KEY_PAGEDOWN=r.KEY_P=r.KEY_O=r.KEY_N=r.KEY_MINUS=r.KEY_M=r.KEY_LEFT_BRACKET=r.KEY_LEFT=r.KEY_L=r.KEY_K=r.KEY_J=r.KEY_INSERT=r.KEY_I=r.KEY_HOME=r.KEY_H=r.KEY_G=r.KEY_F9=r.KEY_F8=r.KEY_F7=r.KEY_F6=r.KEY_F5=r.KEY_F4=r.KEY_F3=r.KEY_F2=r.KEY_F12=r.KEY_F11=r.KEY_F10=r.KEY_F1=r.KEY_F=r.KEY_ESCAPE=r.KEY_EQUAL=r.KEY_ENTER=r.KEY_END=r.KEY_E=r.KEY_DOWN=r.KEY_DELETE=r.KEY_D=r.KEY_CTRL=r.KEY_COMMA=r.KEY_CAPSLOCK=r.KEY_C=r.KEY_BACKSPACE=r.KEY_BACKSLASH=r.KEY_B=r.KEY_ALT=r.KEY_A=r.KEY_9=r.KEY_8=r.KEY_7=r.KEY_6=r.KEY_5=r.KEY_4=r.KEY_3=r.KEY_2=r.KEY_1=r.KEY_0=void 0;/**
|
|
* All possible browser keycodes, in one file.
|
|
*
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var n=r.KEY_BACKSPACE=8,e=r.KEY_TAB=9,a=r.KEY_ENTER=13,t=r.KEY_SHIFT=16,o=r.KEY_CTRL=17,m=r.KEY_ALT=18,V=r.KEY_PAUSE=19,k=r.KEY_CAPSLOCK=20,S=r.KEY_ESCAPE=27,N=r.KEY_SPACE=32,h=r.KEY_PAGEUP=33,s=r.KEY_PAGEDOWN=34,l=r.KEY_END=35,u=r.KEY_HOME=36,i=r.KEY_LEFT=37,c=r.KEY_UP=38,d=r.KEY_RIGHT=39,p=r.KEY_DOWN=40,v=r.KEY_INSERT=45,f=r.KEY_DELETE=46,C=r.KEY_0=48,b=r.KEY_1=49,g=r.KEY_2=50,y=r.KEY_3=51,B=r.KEY_4=52,L=r.KEY_5=53,I=r.KEY_6=54,w=r.KEY_7=55,T=r.KEY_8=56,M=r.KEY_9=57,A=r.KEY_A=65,R=r.KEY_B=66,O=r.KEY_C=67,_=r.KEY_D=68,P=r.KEY_E=69,D=r.KEY_F=70,z=r.KEY_G=71,U=r.KEY_H=72,W=r.KEY_I=73,K=r.KEY_J=74,H=r.KEY_K=75,Y=r.KEY_L=76,J=r.KEY_M=77,q=r.KEY_N=78,oe=r.KEY_O=79,ae=r.KEY_P=80,le=r.KEY_Q=81,he=r.KEY_R=82,me=r.KEY_S=83,Be=r.KEY_T=84,ce=r.KEY_U=85,te=r.KEY_V=86,ee=r.KEY_W=87,ie=r.KEY_X=88,Ce=r.KEY_Y=89,Se=r.KEY_Z=90,we=r.KEY_F1=112,pe=r.KEY_F2=113,E=r.KEY_F3=114,Z=r.KEY_F4=115,re=r.KEY_F5=116,X=r.KEY_F6=117,ne=r.KEY_F7=118,ve=r.KEY_F8=119,Ve=r.KEY_F9=120,Ie=r.KEY_F10=121,Pe=r.KEY_F11=122,Ae=r.KEY_F12=123,Oe=r.KEY_SEMICOLON=186,de=r.KEY_EQUAL=187,ge=r.KEY_COMMA=188,j=r.KEY_MINUS=189,ue=r.KEY_PERIOD=190,be=r.KEY_SLASH=191,ke=r.KEY_LEFT_BRACKET=219,Te=r.KEY_BACKSLASH=220,Ee=r.KEY_RIGHT_BRACKET=221,Re=r.KEY_QUOTE=222},5339:function(x,r){"use strict";r.__esModule=!0,r.toFixed=r.scale=r.round=r.numberOfDecimalDigits=r.keyOfMatchingRange=r.inRange=r.clamp01=r.clamp=void 0;/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var n=r.clamp=function(){function S(N,h,s){return N<h?h:N>s?s:N}return S}(),e=r.clamp01=function(){function S(N){return N<0?0:N>1?1:N}return S}(),a=r.scale=function(){function S(N,h,s){return(N-h)/(s-h)}return S}(),t=r.round=function(){function S(N,h){if(!N||isNaN(N))return N;var s,l,u,i;return h|=0,s=Math.pow(10,h),N*=s,i=+(N>0)|-(N<0),u=Math.abs(N%1)>=.4999999999854481,l=Math.floor(N),u&&(N=l+(i>0)),(u?N:Math.round(N))/s}return S}(),o=r.toFixed=function(){function S(N,h){return h===void 0&&(h=0),Number(N).toFixed(Math.max(h,0))}return S}(),m=r.inRange=function(){function S(N,h){return h&&N>=h[0]&&N<=h[1]}return S}(),V=r.keyOfMatchingRange=function(){function S(N,h){for(var s=0,l=Object.keys(h);s<l.length;s++){var u=l[s],i=h[u];if(m(N,i))return u}}return S}(),k=r.numberOfDecimalDigits=function(){function S(N){return Math.floor(N)!==N&&N.toString().split(".")[1].length||0}return S}()},15645:function(x,r){"use strict";r.__esModule=!0,r.perf=void 0;var n;/**
|
|
* Ghetto performance measurement tools.
|
|
*
|
|
* Uses NODE_ENV to remove itself from production builds.
|
|
*
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var e=60,a=1e3/e,t=!!((n=window.performance)!=null&&n.now),o={},m={},V=function(s,l){},k=function(s,l){if(0)var u,i,c},S=function(s){var l=s/a;return s.toFixed(s<10?1:0)+"ms ("+l.toFixed(2)+" frames)"},N=r.perf={mark:V,measure:k}},59641:function(x,r){"use strict";r.__esModule=!0,r.shallowDiffers=r.pureComponentHooks=r.normalizeChildren=r.classes=r.canRender=void 0;/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var n=r.classes=function(){function m(V){for(var k="",S=0;S<V.length;S++){var N=V[S];typeof N=="string"&&(k+=N+" ")}return k}return m}(),e=r.normalizeChildren=function(){function m(V){return Array.isArray(V)?V.flat().filter(function(k){return k}):typeof V=="object"?[V]:[]}return m}(),a=r.shallowDiffers=function(){function m(V,k){var S;for(S in V)if(!(S in k))return!0;for(S in k)if(V[S]!==k[S])return!0;return!1}return m}(),t=r.pureComponentHooks={onComponentShouldUpdate:function(){function m(V,k){return a(V,k)}return m}()},o=r.canRender=function(){function m(V){return V!=null&&typeof V!="boolean"}return m}()},32289:function(x,r){"use strict";r.__esModule=!0,r.useSelector=r.useDispatch=r.createStore=r.createAction=r.combineReducers=r.applyMiddleware=void 0;/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var n=r.createStore=function(){function V(k,S){if(S)return S(V)(k);var N,h=[],s=function(){function i(){return N}return i}(),l=function(){function i(c){h.push(c)}return i}(),u=function(){function i(c){N=k(N,c);for(var d=0;d<h.length;d++)h[d]()}return i}();return u({type:"@@INIT"}),{dispatch:u,subscribe:l,getState:s}}return V}(),e=r.applyMiddleware=function(){function V(){for(var k=arguments.length,S=new Array(k),N=0;N<k;N++)S[N]=arguments[N];return function(h){return function(s){for(var l=arguments.length,u=new Array(l>1?l-1:0),i=1;i<l;i++)u[i-1]=arguments[i];var c=h.apply(void 0,[s].concat(u)),d=function(){function f(){throw new Error("Dispatching while constructing your middleware is not allowed.")}return f}(),p={getState:c.getState,dispatch:function(){function f(C){for(var b=arguments.length,g=new Array(b>1?b-1:0),y=1;y<b;y++)g[y-1]=arguments[y];return d.apply(void 0,[C].concat(g))}return f}()},v=S.map(function(f){return f(p)});return d=v.reduceRight(function(f,C){return C(f)},c.dispatch),Object.assign({},c,{dispatch:d})}}}return V}(),a=r.combineReducers=function(){function V(k){var S=Object.keys(k);return function(N,h){N===void 0&&(N={});for(var s=Object.assign({},N),l=!1,u=0,i=S;u<i.length;u++){var c=i[u],d=k[c],p=N[c],v=d(p,h);p!==v&&(l=!0,s[c]=v)}return l?s:N}}return V}(),t=r.createAction=function(){function V(k,S){var N=function(){function h(){var s={type:k};if(S){var l=S.apply(void 0,arguments);if(!l)throw new Error("prepare function did not return an object");s=Object.assign({},s,l)}else s.payload=arguments.length<=0?void 0:arguments[0];return s}return h}();return N.toString=function(){return k},N.type=k,N.match=function(h){return h.type===k},N}return V}(),o=r.useDispatch=function(){function V(k){return k.store.dispatch}return V}(),m=r.useSelector=function(){function V(k,S){return S(k.store.getState())}return V}()},22800:function(x,r){"use strict";r.__esModule=!0,r.storage=r.IMPL_MEMORY=r.IMPL_LOCAL_STORAGE=r.IMPL_INDEXED_DB=void 0;function n(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */n=function(){return C};var f,C={},b=Object.prototype,g=b.hasOwnProperty,y=Object.defineProperty||function(te,ee,ie){te[ee]=ie.value},B=typeof Symbol=="function"?Symbol:{},L=B.iterator||"@@iterator",I=B.asyncIterator||"@@asyncIterator",w=B.toStringTag||"@@toStringTag";function T(te,ee,ie){return Object.defineProperty(te,ee,{value:ie,enumerable:!0,configurable:!0,writable:!0}),te[ee]}try{T({},"")}catch(te){T=function(ie,Ce,Se){return ie[Ce]=Se}}function M(te,ee,ie,Ce){var Se=ee&&ee.prototype instanceof z?ee:z,we=Object.create(Se.prototype),pe=new Be(Ce||[]);return y(we,"_invoke",{value:ae(te,ie,pe)}),we}function A(te,ee,ie){try{return{type:"normal",arg:te.call(ee,ie)}}catch(Ce){return{type:"throw",arg:Ce}}}C.wrap=M;var R="suspendedStart",O="suspendedYield",_="executing",P="completed",D={};function z(){}function U(){}function W(){}var K={};T(K,L,function(){return this});var H=Object.getPrototypeOf,Y=H&&H(H(ce([])));Y&&Y!==b&&g.call(Y,L)&&(K=Y);var J=W.prototype=z.prototype=Object.create(K);function q(te){["next","throw","return"].forEach(function(ee){T(te,ee,function(ie){return this._invoke(ee,ie)})})}function oe(te,ee){function ie(Se,we,pe,E){var Z=A(te[Se],te,we);if(Z.type!=="throw"){var re=Z.arg,X=re.value;return X&&typeof X=="object"&&g.call(X,"__await")?ee.resolve(X.__await).then(function(ne){ie("next",ne,pe,E)},function(ne){ie("throw",ne,pe,E)}):ee.resolve(X).then(function(ne){re.value=ne,pe(re)},function(ne){return ie("throw",ne,pe,E)})}E(Z.arg)}var Ce;y(this,"_invoke",{value:function(){function Se(we,pe){function E(){return new ee(function(Z,re){ie(we,pe,Z,re)})}return Ce=Ce?Ce.then(E,E):E()}return Se}()})}function ae(te,ee,ie){var Ce=R;return function(Se,we){if(Ce===_)throw new Error("Generator is already running");if(Ce===P){if(Se==="throw")throw we;return{value:f,done:!0}}for(ie.method=Se,ie.arg=we;;){var pe=ie.delegate;if(pe){var E=le(pe,ie);if(E){if(E===D)continue;return E}}if(ie.method==="next")ie.sent=ie._sent=ie.arg;else if(ie.method==="throw"){if(Ce===R)throw Ce=P,ie.arg;ie.dispatchException(ie.arg)}else ie.method==="return"&&ie.abrupt("return",ie.arg);Ce=_;var Z=A(te,ee,ie);if(Z.type==="normal"){if(Ce=ie.done?P:O,Z.arg===D)continue;return{value:Z.arg,done:ie.done}}Z.type==="throw"&&(Ce=P,ie.method="throw",ie.arg=Z.arg)}}}function le(te,ee){var ie=ee.method,Ce=te.iterator[ie];if(Ce===f)return ee.delegate=null,ie==="throw"&&te.iterator.return&&(ee.method="return",ee.arg=f,le(te,ee),ee.method==="throw")||ie!=="return"&&(ee.method="throw",ee.arg=new TypeError("The iterator does not provide a '"+ie+"' method")),D;var Se=A(Ce,te.iterator,ee.arg);if(Se.type==="throw")return ee.method="throw",ee.arg=Se.arg,ee.delegate=null,D;var we=Se.arg;return we?we.done?(ee[te.resultName]=we.value,ee.next=te.nextLoc,ee.method!=="return"&&(ee.method="next",ee.arg=f),ee.delegate=null,D):we:(ee.method="throw",ee.arg=new TypeError("iterator result is not an object"),ee.delegate=null,D)}function he(te){var ee={tryLoc:te[0]};1 in te&&(ee.catchLoc=te[1]),2 in te&&(ee.finallyLoc=te[2],ee.afterLoc=te[3]),this.tryEntries.push(ee)}function me(te){var ee=te.completion||{};ee.type="normal",delete ee.arg,te.completion=ee}function Be(te){this.tryEntries=[{tryLoc:"root"}],te.forEach(he,this),this.reset(!0)}function ce(te){if(te||te===""){var ee=te[L];if(ee)return ee.call(te);if(typeof te.next=="function")return te;if(!isNaN(te.length)){var ie=-1,Ce=function(){function Se(){for(;++ie<te.length;)if(g.call(te,ie))return Se.value=te[ie],Se.done=!1,Se;return Se.value=f,Se.done=!0,Se}return Se}();return Ce.next=Ce}}throw new TypeError(typeof te+" is not iterable")}return U.prototype=W,y(J,"constructor",{value:W,configurable:!0}),y(W,"constructor",{value:U,configurable:!0}),U.displayName=T(W,w,"GeneratorFunction"),C.isGeneratorFunction=function(te){var ee=typeof te=="function"&&te.constructor;return!!ee&&(ee===U||(ee.displayName||ee.name)==="GeneratorFunction")},C.mark=function(te){return Object.setPrototypeOf?Object.setPrototypeOf(te,W):(te.__proto__=W,T(te,w,"GeneratorFunction")),te.prototype=Object.create(J),te},C.awrap=function(te){return{__await:te}},q(oe.prototype),T(oe.prototype,I,function(){return this}),C.AsyncIterator=oe,C.async=function(te,ee,ie,Ce,Se){Se===void 0&&(Se=Promise);var we=new oe(M(te,ee,ie,Ce),Se);return C.isGeneratorFunction(ee)?we:we.next().then(function(pe){return pe.done?pe.value:we.next()})},q(J),T(J,w,"Generator"),T(J,L,function(){return this}),T(J,"toString",function(){return"[object Generator]"}),C.keys=function(te){var ee=Object(te),ie=[];for(var Ce in ee)ie.push(Ce);return ie.reverse(),function(){function Se(){for(;ie.length;){var we=ie.pop();if(we in ee)return Se.value=we,Se.done=!1,Se}return Se.done=!0,Se}return Se}()},C.values=ce,Be.prototype={constructor:Be,reset:function(){function te(ee){if(this.prev=0,this.next=0,this.sent=this._sent=f,this.done=!1,this.delegate=null,this.method="next",this.arg=f,this.tryEntries.forEach(me),!ee)for(var ie in this)ie.charAt(0)==="t"&&g.call(this,ie)&&!isNaN(+ie.slice(1))&&(this[ie]=f)}return te}(),stop:function(){function te(){this.done=!0;var ee=this.tryEntries[0].completion;if(ee.type==="throw")throw ee.arg;return this.rval}return te}(),dispatchException:function(){function te(ee){if(this.done)throw ee;var ie=this;function Ce(re,X){return pe.type="throw",pe.arg=ee,ie.next=re,X&&(ie.method="next",ie.arg=f),!!X}for(var Se=this.tryEntries.length-1;Se>=0;--Se){var we=this.tryEntries[Se],pe=we.completion;if(we.tryLoc==="root")return Ce("end");if(we.tryLoc<=this.prev){var E=g.call(we,"catchLoc"),Z=g.call(we,"finallyLoc");if(E&&Z){if(this.prev<we.catchLoc)return Ce(we.catchLoc,!0);if(this.prev<we.finallyLoc)return Ce(we.finallyLoc)}else if(E){if(this.prev<we.catchLoc)return Ce(we.catchLoc,!0)}else{if(!Z)throw new Error("try statement without catch or finally");if(this.prev<we.finallyLoc)return Ce(we.finallyLoc)}}}}return te}(),abrupt:function(){function te(ee,ie){for(var Ce=this.tryEntries.length-1;Ce>=0;--Ce){var Se=this.tryEntries[Ce];if(Se.tryLoc<=this.prev&&g.call(Se,"finallyLoc")&&this.prev<Se.finallyLoc){var we=Se;break}}we&&(ee==="break"||ee==="continue")&&we.tryLoc<=ie&&ie<=we.finallyLoc&&(we=null);var pe=we?we.completion:{};return pe.type=ee,pe.arg=ie,we?(this.method="next",this.next=we.finallyLoc,D):this.complete(pe)}return te}(),complete:function(){function te(ee,ie){if(ee.type==="throw")throw ee.arg;return ee.type==="break"||ee.type==="continue"?this.next=ee.arg:ee.type==="return"?(this.rval=this.arg=ee.arg,this.method="return",this.next="end"):ee.type==="normal"&&ie&&(this.next=ie),D}return te}(),finish:function(){function te(ee){for(var ie=this.tryEntries.length-1;ie>=0;--ie){var Ce=this.tryEntries[ie];if(Ce.finallyLoc===ee)return this.complete(Ce.completion,Ce.afterLoc),me(Ce),D}}return te}(),catch:function(){function te(ee){for(var ie=this.tryEntries.length-1;ie>=0;--ie){var Ce=this.tryEntries[ie];if(Ce.tryLoc===ee){var Se=Ce.completion;if(Se.type==="throw"){var we=Se.arg;me(Ce)}return we}}throw new Error("illegal catch attempt")}return te}(),delegateYield:function(){function te(ee,ie,Ce){return this.delegate={iterator:ce(ee),resultName:ie,nextLoc:Ce},this.method==="next"&&(this.arg=f),D}return te}()},C}function e(f,C,b,g,y,B,L){try{var I=f[B](L),w=I.value}catch(T){b(T);return}I.done?C(w):Promise.resolve(w).then(g,y)}function a(f){return function(){var C=this,b=arguments;return new Promise(function(g,y){var B=f.apply(C,b);function L(w){e(B,g,y,L,I,"next",w)}function I(w){e(B,g,y,L,I,"throw",w)}L(void 0)})}}/**
|
|
* Browser-agnostic abstraction of key-value web storage.
|
|
*
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var t=r.IMPL_MEMORY=0,o=r.IMPL_LOCAL_STORAGE=1,m=r.IMPL_INDEXED_DB=2,V=1,k="chomp",S="storage-v1",N="readonly",h="readwrite",s=function(C){return function(){try{return!!C()}catch(b){return!1}}},l=s(function(){return window.localStorage&&window.localStorage.getItem}),u=s(function(){return(window.indexedDB||window.msIndexedDB)&&(window.IDBTransaction||window.msIDBTransaction)}),i=function(){function f(){this.impl=t,this.store={}}var C=f.prototype;return C.get=function(){function b(g){return this.store[g]}return b}(),C.set=function(){function b(g,y){this.store[g]=y}return b}(),C.remove=function(){function b(g){this.store[g]=void 0}return b}(),C.clear=function(){function b(){this.store={}}return b}(),f}(),c=function(){function f(){this.impl=o}var C=f.prototype;return C.get=function(){function b(g){var y=localStorage.getItem(g);if(typeof y=="string")return JSON.parse(y)}return b}(),C.set=function(){function b(g,y){localStorage.setItem(g,JSON.stringify(y))}return b}(),C.remove=function(){function b(g){localStorage.removeItem(g)}return b}(),C.clear=function(){function b(){localStorage.clear()}return b}(),f}(),d=function(){function f(){this.impl=m,this.dbPromise=new Promise(function(b,g){var y=window.indexedDB||window.msIndexedDB,B=y.open(k,V);B.onupgradeneeded=function(){try{B.result.createObjectStore(S)}catch(L){g(new Error("Failed to upgrade IDB: "+B.error))}},B.onsuccess=function(){return b(B.result)},B.onerror=function(){g(new Error("Failed to open IDB: "+B.error))}})}var C=f.prototype;return C.getStore=function(){function b(g){return this.dbPromise.then(function(y){return y.transaction(S,g).objectStore(S)})}return b}(),C.get=function(){var b=a(n().mark(function(){function y(B){var L;return n().wrap(function(){function I(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.getStore(N);case 2:return L=w.sent,w.abrupt("return",new Promise(function(T,M){var A=L.get(B);A.onsuccess=function(){return T(A.result)},A.onerror=function(){return M(A.error)}}));case 4:case"end":return w.stop()}}return I}(),y,this)}return y}()));function g(y){return b.apply(this,arguments)}return g}(),C.set=function(){var b=a(n().mark(function(){function y(B,L){var I;return n().wrap(function(){function w(T){for(;;)switch(T.prev=T.next){case 0:return L===null&&(L=void 0),T.next=3,this.getStore(h);case 3:I=T.sent,I.put(L,B);case 5:case"end":return T.stop()}}return w}(),y,this)}return y}()));function g(y,B){return b.apply(this,arguments)}return g}(),C.remove=function(){var b=a(n().mark(function(){function y(B){var L;return n().wrap(function(){function I(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.getStore(h);case 2:L=w.sent,L.delete(B);case 4:case"end":return w.stop()}}return I}(),y,this)}return y}()));function g(y){return b.apply(this,arguments)}return g}(),C.clear=function(){var b=a(n().mark(function(){function y(){var B;return n().wrap(function(){function L(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,this.getStore(h);case 2:B=I.sent,B.clear();case 4:case"end":return I.stop()}}return L}(),y,this)}return y}()));function g(){return b.apply(this,arguments)}return g}(),f}(),p=function(){function f(){this.backendPromise=a(n().mark(function(){function b(){var g;return n().wrap(function(){function y(B){for(;;)switch(B.prev=B.next){case 0:if(!u()){B.next=10;break}return B.prev=1,g=new d,B.next=5,g.dbPromise;case 5:return B.abrupt("return",g);case 8:B.prev=8,B.t0=B.catch(1);case 10:if(!l()){B.next=12;break}return B.abrupt("return",new c);case 12:return B.abrupt("return",new i);case 13:case"end":return B.stop()}}return y}(),b,null,[[1,8]])}return b}()))()}var C=f.prototype;return C.get=function(){var b=a(n().mark(function(){function y(B){var L;return n().wrap(function(){function I(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.backendPromise;case 2:return L=w.sent,w.abrupt("return",L.get(B));case 4:case"end":return w.stop()}}return I}(),y,this)}return y}()));function g(y){return b.apply(this,arguments)}return g}(),C.set=function(){var b=a(n().mark(function(){function y(B,L){var I;return n().wrap(function(){function w(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.backendPromise;case 2:return I=T.sent,T.abrupt("return",I.set(B,L));case 4:case"end":return T.stop()}}return w}(),y,this)}return y}()));function g(y,B){return b.apply(this,arguments)}return g}(),C.remove=function(){var b=a(n().mark(function(){function y(B){var L;return n().wrap(function(){function I(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.backendPromise;case 2:return L=w.sent,w.abrupt("return",L.remove(B));case 4:case"end":return w.stop()}}return I}(),y,this)}return y}()));function g(y){return b.apply(this,arguments)}return g}(),C.clear=function(){var b=a(n().mark(function(){function y(){var B;return n().wrap(function(){function L(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,this.backendPromise;case 2:return B=I.sent,I.abrupt("return",B.clear());case 4:case"end":return I.stop()}}return L}(),y,this)}return y}()));function g(){return b.apply(this,arguments)}return g}(),f}(),v=r.storage=new p},40946:function(x,r){"use strict";r.__esModule=!0,r.toTitleCase=r.multiline=r.decodeHtmlEntities=r.createSearch=r.createGlobPattern=r.capitalizeFirst=r.capitalizeAll=r.capitalize=r.buildQueryString=void 0;function n(l,u){var i=typeof Symbol!="undefined"&&l[Symbol.iterator]||l["@@iterator"];if(i)return(i=i.call(l)).next.bind(i);if(Array.isArray(l)||(i=e(l))||u&&l&&typeof l.length=="number"){i&&(l=i);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,u){if(l){if(typeof l=="string")return a(l,u);var i=Object.prototype.toString.call(l).slice(8,-1);if(i==="Object"&&l.constructor&&(i=l.constructor.name),i==="Map"||i==="Set")return Array.from(l);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return a(l,u)}}function a(l,u){(u==null||u>l.length)&&(u=l.length);for(var i=0,c=new Array(u);i<u;i++)c[i]=l[i];return c}/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var t=r.multiline=function(){function l(u){if(Array.isArray(u))return l(u.join(""));for(var i=u.split("\n"),c,d=n(i),p;!(p=d()).done;)for(var v=p.value,f=0;f<v.length;f++){var C=v[f];if(C!==" "){(c===void 0||f<c)&&(c=f);break}}return c||(c=0),i.map(function(b){return b.substr(c).trimRight()}).join("\n").trim()}return l}(),o=r.createGlobPattern=function(){function l(u){var i=function(){function d(p){return p.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")}return d}(),c=new RegExp("^"+u.split(/\*+/).map(i).join(".*")+"$");return function(d){return c.test(d)}}return l}(),m=r.createSearch=function(){function l(u,i){var c=u.toLowerCase().trim();return function(d){if(!c)return!0;var p=i?i(d):d;return p?p.toLowerCase().includes(c):!1}}return l}(),V=r.capitalize=function(){function l(u){return Array.isArray(u)?u.map(l):u.charAt(0).toUpperCase()+u.slice(1).toLowerCase()}return l}(),k=r.capitalizeAll=function(){function l(u){return u.replace(/(^\w{1})|(\s+\w{1})/g,function(i){return i.toUpperCase()})}return l}(),S=r.capitalizeFirst=function(){function l(u){return u.replace(/^\w/,function(i){return i.toUpperCase()})}return l}(),N=r.toTitleCase=function(){function l(u){if(Array.isArray(u))return u.map(l);if(typeof u!="string")return u;for(var i=["Id","Tv"],c=["A","An","And","As","At","But","By","For","For","From","In","Into","Near","Nor","Of","On","Onto","Or","The","To","With"],d=u.replace(/([^\W_]+[^\s-]*) */g,function(L){return L.charAt(0).toUpperCase()+L.substr(1).toLowerCase()}),p=0,v=c;p<v.length;p++){var f=v[p],C=new RegExp("\\s"+f+"\\s","g");d=d.replace(C,function(L){return L.toLowerCase()})}for(var b=0,g=i;b<g.length;b++){var y=g[b],B=new RegExp("\\b"+y+"\\b","g");d=d.replace(B,function(L){return L.toLowerCase()})}return d}return l}(),h=r.decodeHtmlEntities=function(){function l(u){if(!u)return u;var i=/&(nbsp|amp|quot|lt|gt|apos);/g,c={nbsp:" ",amp:"&",quot:'"',lt:"<",gt:">",apos:"'"};return u.replace(/<br>/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(i,function(d,p){return c[p]}).replace(/&#?([0-9]+);/gi,function(d,p){var v=parseInt(p,10);return String.fromCharCode(v)}).replace(/&#x?([0-9a-f]+);/gi,function(d,p){var v=parseInt(p,16);return String.fromCharCode(v)})}return l}(),s=r.buildQueryString=function(){function l(u){return Object.keys(u).map(function(i){return encodeURIComponent(i)+"="+encodeURIComponent(u[i])}).join("&")}return l}()},84710:function(x,r){"use strict";r.__esModule=!0,r.throttle=r.sleep=r.debounce=void 0;/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var n=r.debounce=function(){function t(o,m,V){V===void 0&&(V=!1);var k;return function(){for(var S=arguments.length,N=new Array(S),h=0;h<S;h++)N[h]=arguments[h];var s=function(){function u(){k=null,V||o.apply(void 0,N)}return u}(),l=V&&!k;clearTimeout(k),k=setTimeout(s,m),l&&o.apply(void 0,N)}}return t}(),e=r.throttle=function(){function t(o,m){var V,k;return function(){function S(){for(var N=arguments.length,h=new Array(N),s=0;s<N;s++)h[s]=arguments[s];var l=Date.now();if(k&&clearTimeout(k),!V||l-V>=m)o.apply(null,h),V=l;else{var u;k=setTimeout(function(){return S.apply(void 0,h)},m-(l-((u=V)!=null?u:0)))}}return S}()}return t}(),a=r.sleep=function(){function t(o){return new Promise(function(m){return setTimeout(m,o)})}return t}()},13212:function(x,r,n){"use strict";r.__esModule=!0,r.vecSubtract=r.vecScale=r.vecNormalize=r.vecMultiply=r.vecLength=r.vecInverse=r.vecDivide=r.vecAdd=void 0;var e=n(45445);/**
|
|
* N-dimensional vector manipulation functions.
|
|
*
|
|
* Vectors are plain number arrays, i.e. [x, y, z].
|
|
*
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var a=function(c,d){return c+d},t=function(c,d){return c-d},o=function(c,d){return c*d},m=function(c,d){return c/d},V=r.vecAdd=function(){function i(){for(var c=arguments.length,d=new Array(c),p=0;p<c;p++)d[p]=arguments[p];return(0,e.reduce)(function(v,f){return(0,e.zipWith)(a)(v,f)})(d)}return i}(),k=r.vecSubtract=function(){function i(){for(var c=arguments.length,d=new Array(c),p=0;p<c;p++)d[p]=arguments[p];return(0,e.reduce)(function(v,f){return(0,e.zipWith)(t)(v,f)})(d)}return i}(),S=r.vecMultiply=function(){function i(){for(var c=arguments.length,d=new Array(c),p=0;p<c;p++)d[p]=arguments[p];return(0,e.reduce)(function(v,f){return(0,e.zipWith)(o)(v,f)})(d)}return i}(),N=r.vecDivide=function(){function i(){for(var c=arguments.length,d=new Array(c),p=0;p<c;p++)d[p]=arguments[p];return(0,e.reduce)(function(v,f){return(0,e.zipWith)(m)(v,f)})(d)}return i}(),h=r.vecScale=function(){function i(c,d){return(0,e.map)(function(p){return p*d})(c)}return i}(),s=r.vecInverse=function(){function i(c){return(0,e.map)(function(d){return-d})(c)}return i}(),l=r.vecLength=function(){function i(c){return Math.sqrt((0,e.reduce)(a)((0,e.zipWith)(o)(c,c)))}return i}(),u=r.vecNormalize=function(){function i(c){return N(c,l(c))}return i}()},37655:function(x,r){"use strict";r.__esModule=!0,r.resolveAsset=r.assetMiddleware=void 0;/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var n=[/v4shim/i],e={},a=r.resolveAsset=function(){function o(m){return e[m]||m}return o}(),t=r.assetMiddleware=function(){function o(m){return function(V){return function(k){var S=k,N=S.type,h=S.payload;if(N==="asset/stylesheet"){Byond.loadCss(h);return}if(N==="asset/mappings"){for(var s=function(){function i(){var c=u[l];if(n.some(function(v){return v.test(c)}))return 1;var d=h[c],p=c.split(".").pop();e[c]=d,p==="css"&&Byond.loadCss(d),p==="js"&&Byond.loadJs(d)}return i}(),l=0,u=Object.keys(h);l<u.length;l++)s();return}V(k)}}}return o}()},62188:function(x,r,n){"use strict";r.__esModule=!0,r.useSharedState=r.useLocalState=r.useBackend=r.sendAct=r.selectBackend=r.backendUpdate=r.backendSuspendSuccess=r.backendSuspendStart=r.backendSetSharedState=r.backendReducer=r.backendMiddleware=void 0;var e=n(15645),a=n(32289),t=n(59509),o=n(80835),m=n(68566),V=n(66905),k=n(72630);/**
|
|
* This file provides a clear separation layer between backend updates
|
|
* and what state our React app sees.
|
|
*
|
|
* Sometimes backend can response without a "data" field, but our final
|
|
* state will still contain previous "data" because we are merging
|
|
* the response with already existing state.
|
|
*
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var S=(0,V.createLogger)("backend"),N=r.backendUpdate=(0,a.createAction)("backend/update"),h=r.backendSetSharedState=(0,a.createAction)("backend/setSharedState"),s=r.backendSuspendStart=(0,a.createAction)("backend/suspendStart"),l=r.backendSuspendSuccess=function(){function b(){return{type:"backend/suspendSuccess",payload:{timestamp:Date.now()}}}return b}(),u={config:{},data:{},shared:{},suspended:Date.now(),suspending:!1},i=r.backendReducer=function(){function b(g,y){g===void 0&&(g=u);var B=y.type,L=y.payload;if(B==="backend/update"){var I=Object.assign({},g.config,L.config),w=Object.assign({},g.data,L.static_data,L.data),T=Object.assign({},g.shared);if(L.shared)for(var M=0,A=Object.keys(L.shared);M<A.length;M++){var R=A[M],O=L.shared[R];O===""?T[R]=void 0:T[R]=JSON.parse(O)}return Object.assign({},g,{config:I,data:w,shared:T,suspended:!1})}if(B==="backend/setSharedState"){var _,P=L.key,D=L.nextState;return Object.assign({},g,{shared:Object.assign({},g.shared,(_={},_[P]=D,_))})}if(B==="byond/ctrldown"&&o.globalEvents.emit("byond/ctrldown"),B==="byond/ctrlup"&&o.globalEvents.emit("byond/ctrlup"),B==="backend/suspendStart")return Object.assign({},g,{suspending:!0});if(B==="backend/suspendSuccess"){var z=L.timestamp;return Object.assign({},g,{data:{},shared:{},config:Object.assign({},g.config,{title:"",status:1}),suspending:!1,suspended:z})}return g}return b}(),c=r.backendMiddleware=function(){function b(g){var y,B;return function(L){return function(I){var w=p(g.getState()),T=w.suspended,M=I.type,A=I.payload;if(M==="update"){g.dispatch(N(A));return}if(M==="suspend"){g.dispatch(l());return}if(M==="ping"){Byond.sendMessage("ping/reply");return}if(M==="byond/mousedown"&&o.globalEvents.emit("byond/mousedown"),M==="byond/mouseup"&&o.globalEvents.emit("byond/mouseup"),M==="backend/suspendStart"&&!B){S.log("suspending ("+Byond.windowId+")");var R=function(){function P(){return Byond.sendMessage("suspend")}return P}();R(),B=setInterval(R,2e3)}if(M==="backend/suspendSuccess"&&((0,k.suspendRenderer)(),clearInterval(B),B=void 0,Byond.winset(Byond.windowId,{"is-visible":!1}),setImmediate(function(){return(0,m.focusMap)()})),M==="backend/update"){var O,_=(O=A.config)==null||(O=O.window)==null?void 0:O.fancy;y===void 0?y=_:y!==_&&(S.log("changing fancy mode to",_),y=_,Byond.winset(Byond.windowId,{titlebar:!_,"can-resize":!_}))}return M==="backend/update"&&T&&(S.log("backend/update",A),(0,k.resumeRenderer)(),(0,t.setupDrag)(),setImmediate(function(){e.perf.mark("resume/start");var P=p(g.getState()),D=P.suspended;D||(Byond.winset(Byond.windowId,{"is-visible":!0}),e.perf.mark("resume/finish"))})),L(I)}}}return b}(),d=r.sendAct=function(){function b(g,y){y===void 0&&(y={});var B=typeof y=="object"&&y!==null&&!Array.isArray(y);if(!B){S.error("Payload for act() must be an object, got this:",y);return}Byond.sendMessage("act/"+g,y)}return b}(),p=r.selectBackend=function(){function b(g){return g.backend||{}}return b}(),v=r.useBackend=function(){function b(g){var y=g.store,B=p(y.getState());return Object.assign({},B,{act:d})}return b}(),f=r.useLocalState=function(){function b(g,y,B){var L,I=g.store,w=p(I.getState()),T=(L=w.shared)!=null?L:{},M=y in T?T[y]:B;return[M,function(A){I.dispatch(h({key:y,nextState:typeof A=="function"?A(M):A}))}]}return b}(),C=r.useSharedState=function(){function b(g,y,B){var L,I=g.store,w=p(I.getState()),T=(L=w.shared)!=null?L:{},M=y in T?T[y]:B;return[M,function(A){Byond.sendMessage({type:"setSharedState",key:y,value:JSON.stringify(typeof A=="function"?A(M):A)||""})}]}return b}()},12451:function(x,r,n){"use strict";r.__esModule=!0,r.AnimatedNumber=void 0;var e=n(58734),a=n(5339);function t(h,s){h.prototype=Object.create(s.prototype),h.prototype.constructor=h,o(h,s)}function o(h,s){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(u,i){return u.__proto__=i,u}return l}(),o(h,s)}/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var m=function(s){return typeof s=="number"&&Number.isFinite(s)&&!Number.isNaN(s)},V=1e3/60,k=.8333,S=.001,N=r.AnimatedNumber=function(h){t(s,h);function s(u){var i;i=h.call(this,u)||this,i.ref=(0,e.createRef)(),i.interval=void 0,i.currentValue=0;var c=u.initial,d=u.value;return c!==void 0&&m(c)?i.currentValue=c:m(d)&&(i.currentValue=d),i}var l=s.prototype;return l.componentDidMount=function(){function u(){this.currentValue!==this.props.value&&this.startTicking()}return u}(),l.componentWillUnmount=function(){function u(){this.stopTicking()}return u}(),l.shouldComponentUpdate=function(){function u(i){return i.value!==this.props.value&&this.startTicking(),!1}return u}(),l.startTicking=function(){function u(){var i=this;this.interval===void 0&&(this.interval=setInterval(function(){return i.tick()},V))}return u}(),l.stopTicking=function(){function u(){this.interval!==void 0&&(clearInterval(this.interval),this.interval=void 0)}return u}(),l.tick=function(){function u(){var i=this.currentValue,c=this.props.value;m(c)?this.currentValue=i*k+c*(1-k):this.stopTicking(),Math.abs(c-this.currentValue)<Math.max(S,S*c)&&(this.currentValue=c,this.stopTicking()),this.ref.current&&(this.ref.current.textContent=this.getText())}return u}(),l.getText=function(){function u(){var i=this.props,c=this.currentValue,d=i.format,p=i.value;if(!m(p))return String(p);if(d)return d(this.currentValue);var v=String(p).split(".")[1],f=v?v.length:0;return(0,a.toFixed)(c,(0,a.clamp)(f,0,8))}return u}(),l.render=function(){function u(){return(0,e.createVNode)(1,"span",null,this.getText(),0,null,null,this.ref)}return u}(),s}(e.Component)},36310:function(x,r,n){"use strict";r.__esModule=!0,r.Autofocus=void 0;var e=n(58734);function a(m,V){m.prototype=Object.create(V.prototype),m.prototype.constructor=m,t(m,V)}function t(m,V){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function k(S,N){return S.__proto__=N,S}return k}(),t(m,V)}var o=r.Autofocus=function(m){a(V,m);function V(){for(var S,N=arguments.length,h=new Array(N),s=0;s<N;s++)h[s]=arguments[s];return S=m.call.apply(m,[this].concat(h))||this,S.ref=(0,e.createRef)(),S}var k=V.prototype;return k.componentDidMount=function(){function S(){var N=this;setTimeout(function(){var h;(h=N.ref.current)==null||h.focus()},1)}return S}(),k.render=function(){function S(){return(0,e.createVNode)(1,"div",null,this.props.children,0,{tabIndex:-1},null,this.ref)}return S}(),V}(e.Component)},80457:function(x,r,n){"use strict";r.__esModule=!0,r.Blink=void 0;var e=n(58734);function a(k,S){k.prototype=Object.create(S.prototype),k.prototype.constructor=k,t(k,S)}function t(k,S){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function N(h,s){return h.__proto__=s,h}return N}(),t(k,S)}var o=1e3,m=1e3,V=r.Blink=function(k){a(S,k);function S(){var h;return h=k.call(this)||this,h.state={hidden:!1},h}var N=S.prototype;return N.createTimer=function(){function h(){var s=this,l=this.props,u=l.interval,i=u===void 0?o:u,c=l.time,d=c===void 0?m:c;clearInterval(this.interval),clearTimeout(this.timer),this.setState({hidden:!1}),this.interval=setInterval(function(){s.setState({hidden:!0}),s.timer=setTimeout(function(){s.setState({hidden:!1})},d)},i+d)}return h}(),N.componentDidMount=function(){function h(){this.createTimer()}return h}(),N.componentDidUpdate=function(){function h(s){(s.interval!==this.props.interval||s.time!==this.props.time)&&this.createTimer()}return h}(),N.componentWillUnmount=function(){function h(){clearInterval(this.interval),clearTimeout(this.timer)}return h}(),N.render=function(){function h(s){return(0,e.createVNode)(1,"span",null,s.children,0,{style:{visibility:this.state.hidden?"hidden":"visible"}})}return h}(),S}(e.Component)},8564:function(x,r,n){"use strict";r.__esModule=!0,r.BlockQuote=void 0;var e=n(58734),a=n(59641),t=n(65969),o=["className"];/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/function m(k,S){if(k==null)return{};var N={},h=Object.keys(k),s,l;for(l=0;l<h.length;l++)s=h[l],!(S.indexOf(s)>=0)&&(N[s]=k[s]);return N}var V=r.BlockQuote=function(){function k(S){var N=S.className,h=m(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["BlockQuote",N])},h)))}return k}()},65969:function(x,r,n){"use strict";r.__esModule=!0,r.unit=r.halfUnit=r.computeBoxProps=r.computeBoxClassName=r.Box=void 0;var e=n(59641),a=n(58734),t=n(33421),o=n(78419),m=["as","className","children"];/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/function V(C,b){if(C==null)return{};var g={},y=Object.keys(C),B,L;for(L=0;L<y.length;L++)B=y[L],!(b.indexOf(B)>=0)&&(g[B]=C[B]);return g}var k=r.unit=function(){function C(b){if(typeof b=="string")return b.endsWith("px")&&!Byond.IS_LTE_IE8?parseFloat(b)/12+"rem":b;if(typeof b=="number")return Byond.IS_LTE_IE8?b*12+"px":b+"rem"}return C}(),S=r.halfUnit=function(){function C(b){if(typeof b=="string")return k(b);if(typeof b=="number")return k(b*.5)}return C}(),N=function(b){return!h(b)},h=function(b){return typeof b=="string"&&o.CSS_COLORS.includes(b)},s=function(b){return function(g,y){(typeof y=="number"||typeof y=="string")&&(g[b]=y)}},l=function(b,g){return function(y,B){(typeof B=="number"||typeof B=="string")&&(y[b]=g(B))}},u=function(b,g){return function(y,B){B&&(y[b]=g)}},i=function(b,g,y){return function(B,L){if(typeof L=="number"||typeof L=="string")for(var I=0;I<y.length;I++)B[b+"-"+y[I]]=g(L)}},c=function(b){return function(g,y){N(y)&&(g[b]=y)}},d={position:s("position"),overflow:s("overflow"),overflowX:s("overflow-x"),overflowY:s("overflow-y"),top:l("top",k),bottom:l("bottom",k),left:l("left",k),right:l("right",k),width:l("width",k),minWidth:l("min-width",k),maxWidth:l("max-width",k),height:l("height",k),minHeight:l("min-height",k),maxHeight:l("max-height",k),fontSize:l("font-size",k),fontFamily:s("font-family"),lineHeight:function(){function C(b,g){typeof g=="number"?b["line-height"]=g:typeof g=="string"&&(b["line-height"]=k(g))}return C}(),opacity:s("opacity"),textAlign:s("text-align"),verticalAlign:s("vertical-align"),textTransform:s("text-transform"),inline:u("display","inline-block"),bold:u("font-weight","bold"),italic:u("font-style","italic"),nowrap:u("white-space","nowrap"),preserveWhitespace:u("white-space","pre-wrap"),m:i("margin",S,["top","bottom","left","right"]),mx:i("margin",S,["left","right"]),my:i("margin",S,["top","bottom"]),mt:l("margin-top",S),mb:l("margin-bottom",S),ml:l("margin-left",S),mr:l("margin-right",S),p:i("padding",S,["top","bottom","left","right"]),px:i("padding",S,["left","right"]),py:i("padding",S,["top","bottom"]),pt:l("padding-top",S),pb:l("padding-bottom",S),pl:l("padding-left",S),pr:l("padding-right",S),color:c("color"),textColor:c("color"),backgroundColor:c("background-color"),flexGrow:s("flex-grow"),flexWrap:s("flex-wrap"),flexBasis:s("flex-basis"),flex:s("flex"),fillPositionedParent:function(){function C(b,g){g&&(b.position="absolute",b.top=0,b.bottom=0,b.left=0,b.right=0)}return C}()},p=r.computeBoxProps=function(){function C(b){for(var g={},y={},B=0,L=Object.keys(b);B<L.length;B++){var I=L[B];if(I!=="style"){if(Byond.IS_LTE_IE8&&I==="onClick"){g.onclick=b[I];continue}var w=b[I],T=d[I];T?T(y,w):g[I]=w}}for(var M="",A=0,R=Object.keys(y);A<R.length;A++){var O=R[A],_=y[O];M+=O+":"+_+";"}if(b.style)for(var P=0,D=Object.keys(b.style);P<D.length;P++){var z=D[P],U=b.style[z];M+=z+":"+U+";"}return M.length>0&&(g.style=M),g}return C}(),v=r.computeBoxClassName=function(){function C(b){var g=b.textColor||b.color,y=b.backgroundColor;return(0,e.classes)([h(g)&&"color-"+g,h(y)&&"color-bg-"+y])}return C}(),f=r.Box=function(){function C(b){var g=b.as,y=g===void 0?"div":g,B=b.className,L=b.children,I=V(b,m);if(typeof L=="function")return L(p(b));var w=typeof B=="string"?B+" "+v(I):v(I),T=p(I);return(0,a.createVNode)(t.VNodeFlags.HtmlElement,y,w,L,t.ChildFlags.UnknownChildren,T,void 0)}return C}();f.defaultHooks=e.pureComponentHooks},58170:function(x,r,n){"use strict";r.__esModule=!0,r.ButtonInput=r.ButtonFile=r.ButtonConfirm=r.ButtonCheckbox=r.Button=void 0;var e=n(58734),a=n(42678),t=n(59641),o=n(66905),m=n(65969),V=n(61043),k=n(23512),S=["className","fluid","icon","iconRotation","iconSpin","iconColor","iconPosition","iconSize","color","disabled","selected","tooltip","tooltipPosition","ellipsis","compact","circular","content","children","onclick","onClick","verticalAlignContent"],N=["checked"],h=["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"],s=["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","placeholder","maxLength"],l=["onSelectFiles","accept","multiple"];/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/function u(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */u=function(){return I};var L,I={},w=Object.prototype,T=w.hasOwnProperty,M=Object.defineProperty||function(pe,E,Z){pe[E]=Z.value},A=typeof Symbol=="function"?Symbol:{},R=A.iterator||"@@iterator",O=A.asyncIterator||"@@asyncIterator",_=A.toStringTag||"@@toStringTag";function P(pe,E,Z){return Object.defineProperty(pe,E,{value:Z,enumerable:!0,configurable:!0,writable:!0}),pe[E]}try{P({},"")}catch(pe){P=function(Z,re,X){return Z[re]=X}}function D(pe,E,Z,re){var X=E&&E.prototype instanceof J?E:J,ne=Object.create(X.prototype),ve=new Se(re||[]);return M(ne,"_invoke",{value:te(pe,Z,ve)}),ne}function z(pe,E,Z){try{return{type:"normal",arg:pe.call(E,Z)}}catch(re){return{type:"throw",arg:re}}}I.wrap=D;var U="suspendedStart",W="suspendedYield",K="executing",H="completed",Y={};function J(){}function q(){}function oe(){}var ae={};P(ae,R,function(){return this});var le=Object.getPrototypeOf,he=le&&le(le(we([])));he&&he!==w&&T.call(he,R)&&(ae=he);var me=oe.prototype=J.prototype=Object.create(ae);function Be(pe){["next","throw","return"].forEach(function(E){P(pe,E,function(Z){return this._invoke(E,Z)})})}function ce(pe,E){function Z(X,ne,ve,Ve){var Ie=z(pe[X],pe,ne);if(Ie.type!=="throw"){var Pe=Ie.arg,Ae=Pe.value;return Ae&&typeof Ae=="object"&&T.call(Ae,"__await")?E.resolve(Ae.__await).then(function(Oe){Z("next",Oe,ve,Ve)},function(Oe){Z("throw",Oe,ve,Ve)}):E.resolve(Ae).then(function(Oe){Pe.value=Oe,ve(Pe)},function(Oe){return Z("throw",Oe,ve,Ve)})}Ve(Ie.arg)}var re;M(this,"_invoke",{value:function(){function X(ne,ve){function Ve(){return new E(function(Ie,Pe){Z(ne,ve,Ie,Pe)})}return re=re?re.then(Ve,Ve):Ve()}return X}()})}function te(pe,E,Z){var re=U;return function(X,ne){if(re===K)throw new Error("Generator is already running");if(re===H){if(X==="throw")throw ne;return{value:L,done:!0}}for(Z.method=X,Z.arg=ne;;){var ve=Z.delegate;if(ve){var Ve=ee(ve,Z);if(Ve){if(Ve===Y)continue;return Ve}}if(Z.method==="next")Z.sent=Z._sent=Z.arg;else if(Z.method==="throw"){if(re===U)throw re=H,Z.arg;Z.dispatchException(Z.arg)}else Z.method==="return"&&Z.abrupt("return",Z.arg);re=K;var Ie=z(pe,E,Z);if(Ie.type==="normal"){if(re=Z.done?H:W,Ie.arg===Y)continue;return{value:Ie.arg,done:Z.done}}Ie.type==="throw"&&(re=H,Z.method="throw",Z.arg=Ie.arg)}}}function ee(pe,E){var Z=E.method,re=pe.iterator[Z];if(re===L)return E.delegate=null,Z==="throw"&&pe.iterator.return&&(E.method="return",E.arg=L,ee(pe,E),E.method==="throw")||Z!=="return"&&(E.method="throw",E.arg=new TypeError("The iterator does not provide a '"+Z+"' method")),Y;var X=z(re,pe.iterator,E.arg);if(X.type==="throw")return E.method="throw",E.arg=X.arg,E.delegate=null,Y;var ne=X.arg;return ne?ne.done?(E[pe.resultName]=ne.value,E.next=pe.nextLoc,E.method!=="return"&&(E.method="next",E.arg=L),E.delegate=null,Y):ne:(E.method="throw",E.arg=new TypeError("iterator result is not an object"),E.delegate=null,Y)}function ie(pe){var E={tryLoc:pe[0]};1 in pe&&(E.catchLoc=pe[1]),2 in pe&&(E.finallyLoc=pe[2],E.afterLoc=pe[3]),this.tryEntries.push(E)}function Ce(pe){var E=pe.completion||{};E.type="normal",delete E.arg,pe.completion=E}function Se(pe){this.tryEntries=[{tryLoc:"root"}],pe.forEach(ie,this),this.reset(!0)}function we(pe){if(pe||pe===""){var E=pe[R];if(E)return E.call(pe);if(typeof pe.next=="function")return pe;if(!isNaN(pe.length)){var Z=-1,re=function(){function X(){for(;++Z<pe.length;)if(T.call(pe,Z))return X.value=pe[Z],X.done=!1,X;return X.value=L,X.done=!0,X}return X}();return re.next=re}}throw new TypeError(typeof pe+" is not iterable")}return q.prototype=oe,M(me,"constructor",{value:oe,configurable:!0}),M(oe,"constructor",{value:q,configurable:!0}),q.displayName=P(oe,_,"GeneratorFunction"),I.isGeneratorFunction=function(pe){var E=typeof pe=="function"&&pe.constructor;return!!E&&(E===q||(E.displayName||E.name)==="GeneratorFunction")},I.mark=function(pe){return Object.setPrototypeOf?Object.setPrototypeOf(pe,oe):(pe.__proto__=oe,P(pe,_,"GeneratorFunction")),pe.prototype=Object.create(me),pe},I.awrap=function(pe){return{__await:pe}},Be(ce.prototype),P(ce.prototype,O,function(){return this}),I.AsyncIterator=ce,I.async=function(pe,E,Z,re,X){X===void 0&&(X=Promise);var ne=new ce(D(pe,E,Z,re),X);return I.isGeneratorFunction(E)?ne:ne.next().then(function(ve){return ve.done?ve.value:ne.next()})},Be(me),P(me,_,"Generator"),P(me,R,function(){return this}),P(me,"toString",function(){return"[object Generator]"}),I.keys=function(pe){var E=Object(pe),Z=[];for(var re in E)Z.push(re);return Z.reverse(),function(){function X(){for(;Z.length;){var ne=Z.pop();if(ne in E)return X.value=ne,X.done=!1,X}return X.done=!0,X}return X}()},I.values=we,Se.prototype={constructor:Se,reset:function(){function pe(E){if(this.prev=0,this.next=0,this.sent=this._sent=L,this.done=!1,this.delegate=null,this.method="next",this.arg=L,this.tryEntries.forEach(Ce),!E)for(var Z in this)Z.charAt(0)==="t"&&T.call(this,Z)&&!isNaN(+Z.slice(1))&&(this[Z]=L)}return pe}(),stop:function(){function pe(){this.done=!0;var E=this.tryEntries[0].completion;if(E.type==="throw")throw E.arg;return this.rval}return pe}(),dispatchException:function(){function pe(E){if(this.done)throw E;var Z=this;function re(Pe,Ae){return ve.type="throw",ve.arg=E,Z.next=Pe,Ae&&(Z.method="next",Z.arg=L),!!Ae}for(var X=this.tryEntries.length-1;X>=0;--X){var ne=this.tryEntries[X],ve=ne.completion;if(ne.tryLoc==="root")return re("end");if(ne.tryLoc<=this.prev){var Ve=T.call(ne,"catchLoc"),Ie=T.call(ne,"finallyLoc");if(Ve&&Ie){if(this.prev<ne.catchLoc)return re(ne.catchLoc,!0);if(this.prev<ne.finallyLoc)return re(ne.finallyLoc)}else if(Ve){if(this.prev<ne.catchLoc)return re(ne.catchLoc,!0)}else{if(!Ie)throw new Error("try statement without catch or finally");if(this.prev<ne.finallyLoc)return re(ne.finallyLoc)}}}}return pe}(),abrupt:function(){function pe(E,Z){for(var re=this.tryEntries.length-1;re>=0;--re){var X=this.tryEntries[re];if(X.tryLoc<=this.prev&&T.call(X,"finallyLoc")&&this.prev<X.finallyLoc){var ne=X;break}}ne&&(E==="break"||E==="continue")&&ne.tryLoc<=Z&&Z<=ne.finallyLoc&&(ne=null);var ve=ne?ne.completion:{};return ve.type=E,ve.arg=Z,ne?(this.method="next",this.next=ne.finallyLoc,Y):this.complete(ve)}return pe}(),complete:function(){function pe(E,Z){if(E.type==="throw")throw E.arg;return E.type==="break"||E.type==="continue"?this.next=E.arg:E.type==="return"?(this.rval=this.arg=E.arg,this.method="return",this.next="end"):E.type==="normal"&&Z&&(this.next=Z),Y}return pe}(),finish:function(){function pe(E){for(var Z=this.tryEntries.length-1;Z>=0;--Z){var re=this.tryEntries[Z];if(re.finallyLoc===E)return this.complete(re.completion,re.afterLoc),Ce(re),Y}}return pe}(),catch:function(){function pe(E){for(var Z=this.tryEntries.length-1;Z>=0;--Z){var re=this.tryEntries[Z];if(re.tryLoc===E){var X=re.completion;if(X.type==="throw"){var ne=X.arg;Ce(re)}return ne}}throw new Error("illegal catch attempt")}return pe}(),delegateYield:function(){function pe(E,Z,re){return this.delegate={iterator:we(E),resultName:Z,nextLoc:re},this.method==="next"&&(this.arg=L),Y}return pe}()},I}function i(L,I,w,T,M,A,R){try{var O=L[A](R),_=O.value}catch(P){w(P);return}O.done?I(_):Promise.resolve(_).then(T,M)}function c(L){return function(){var I=this,w=arguments;return new Promise(function(T,M){var A=L.apply(I,w);function R(_){i(A,T,M,R,O,"next",_)}function O(_){i(A,T,M,R,O,"throw",_)}R(void 0)})}}function d(L,I){L.prototype=Object.create(I.prototype),L.prototype.constructor=L,p(L,I)}function p(L,I){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function w(T,M){return T.__proto__=M,T}return w}(),p(L,I)}function v(L,I){if(L==null)return{};var w={},T=Object.keys(L),M,A;for(A=0;A<T.length;A++)M=T[A],!(I.indexOf(M)>=0)&&(w[M]=L[M]);return w}var f=(0,o.createLogger)("Button"),C=r.Button=function(){function L(I){var w=I.className,T=I.fluid,M=I.icon,A=I.iconRotation,R=I.iconSpin,O=I.iconColor,_=I.iconPosition,P=I.iconSize,D=I.color,z=I.disabled,U=I.selected,W=I.tooltip,K=I.tooltipPosition,H=I.ellipsis,Y=I.compact,J=I.circular,q=I.content,oe=I.children,ae=I.onclick,le=I.onClick,he=I.verticalAlignContent,me=v(I,S),Be=!!(q||oe);ae&&f.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"),me.onClick=function(te){!z&&le&&le(te)},Byond.IS_LTE_IE8&&(me.unselectable=!0);var ce=(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Button",T&&"Button--fluid",z&&"Button--disabled",U&&"Button--selected",Be&&"Button--hasContent",H&&"Button--ellipsis",J&&"Button--circular",Y&&"Button--compact",_&&"Button--iconPosition--"+_,he&&"Button--flex",he&&T&&"Button--flex--fluid",he&&"Button--verticalAlignContent--"+he,D&&typeof D=="string"?"Button--color--"+D:"Button--color--default",w,(0,m.computeBoxClassName)(me)]),(0,e.createVNode)(1,"div","Button__content",[M&&_!=="right"&&(0,e.createComponentVNode)(2,V.Icon,{name:M,color:O,rotation:A,spin:R}),q,oe,M&&_==="right"&&(0,e.createComponentVNode)(2,V.Icon,{name:M,color:O,rotation:A,spin:R,fontSize:P})],0),2,Object.assign({tabIndex:!z&&"0",onKeyDown:function(){function te(ee){if(I.captureKeys!==!1){var ie=window.event?ee.which:ee.keyCode;if(ie===a.KEY_SPACE||ie===a.KEY_ENTER){ee.preventDefault(),!z&&le&&le(ee);return}if(ie===a.KEY_ESCAPE){ee.preventDefault();return}}}return te}()},(0,m.computeBoxProps)(me))));return W&&(ce=(0,e.createComponentVNode)(2,k.Tooltip,{content:W,position:K,children:ce})),ce}return L}();C.defaultHooks=t.pureComponentHooks;var b=r.ButtonCheckbox=function(){function L(I){var w=I.checked,T=v(I,N);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,C,Object.assign({color:"transparent",icon:w?"check-square-o":"square-o",selected:w},T)))}return L}();C.Checkbox=b;var g=r.ButtonConfirm=function(L){d(I,L);function I(){var T;return T=L.call(this)||this,T.state={clickedOnce:!1},T.handleClick=function(){T.state.clickedOnce&&T.setClickedOnce(!1)},T}var w=I.prototype;return w.setClickedOnce=function(){function T(M){var A=this;this.setState({clickedOnce:M}),M?setTimeout(function(){return window.addEventListener("click",A.handleClick)}):window.removeEventListener("click",this.handleClick)}return T}(),w.render=function(){function T(){var M=this,A=this.props,R=A.confirmContent,O=R===void 0?"Confirm?":R,_=A.confirmColor,P=_===void 0?"bad":_,D=A.confirmIcon,z=A.icon,U=A.color,W=A.content,K=A.onClick,H=v(A,h);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,C,Object.assign({content:this.state.clickedOnce?O:W,icon:this.state.clickedOnce?D:z,color:this.state.clickedOnce?P:U,onClick:function(){function Y(){return M.state.clickedOnce?K():M.setClickedOnce(!0)}return Y}()},H)))}return T}(),I}(e.Component);C.Confirm=g;var y=r.ButtonInput=function(L){d(I,L);function I(){var T;return T=L.call(this)||this,T.inputRef=(0,e.createRef)(),T.state={inInput:!1},T}var w=I.prototype;return w.setInInput=function(){function T(M){if(this.setState({inInput:M}),this.inputRef){var A=this.inputRef.current;if(M){A.value=this.props.currentValue||"";try{A.focus(),A.select()}catch(R){}}}}return T}(),w.commitResult=function(){function T(M){if(this.inputRef){var A=this.inputRef.current,R=A.value!=="";if(R){this.props.onCommit(M,A.value);return}else{if(!this.props.defaultValue)return;this.props.onCommit(M,this.props.defaultValue)}}}return T}(),w.render=function(){function T(){var M=this,A=this.props,R=A.fluid,O=A.content,_=A.icon,P=A.iconRotation,D=A.iconSpin,z=A.tooltip,U=A.tooltipPosition,W=A.color,K=W===void 0?"default":W,H=A.placeholder,Y=A.maxLength,J=v(A,s),q=(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.Box,Object.assign({className:(0,t.classes)(["Button",R&&"Button--fluid","Button--color--"+K])},J,{onClick:function(){function oe(){return M.setInInput(!0)}return oe}(),children:[_&&(0,e.createComponentVNode)(2,V.Icon,{name:_,rotation:P,spin:D}),(0,e.createVNode)(1,"div",null,O,0),(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:this.state.inInput?void 0:"none","text-align":"left"},onBlur:function(){function oe(ae){M.state.inInput&&(M.setInInput(!1),M.commitResult(ae))}return oe}(),onKeyDown:function(){function oe(ae){if(ae.keyCode===a.KEY_ENTER){M.setInInput(!1),M.commitResult(ae);return}ae.keyCode===a.KEY_ESCAPE&&M.setInInput(!1)}return oe}()},null,this.inputRef)]})));return z&&(q=(0,e.createComponentVNode)(2,k.Tooltip,{content:z,position:U,children:q})),q}return T}(),I}(e.Component);C.Input=y;var B=r.ButtonFile=function(L){d(I,L);function I(){var T;return T=L.call(this)||this,T.inputRef=(0,e.createRef)(),T}var w=I.prototype;return w.read=function(){var T=c(u().mark(function(){function A(R){var O;return u().wrap(function(){function _(P){for(;;)switch(P.prev=P.next){case 0:return O=Array.from(R).map(function(D){var z=new FileReader;return new Promise(function(U){z.onload=function(){return U(z.result)},z.readAsText(D)})}),P.next=3,Promise.all(O);case 3:return P.abrupt("return",P.sent);case 4:case"end":return P.stop()}}return _}(),A)}return A}()));function M(A){return T.apply(this,arguments)}return M}(),w.render=function(){function T(){var M=this,A=this.props,R=A.onSelectFiles,O=A.accept,_=A.multiple,P=v(A,l),D=(0,e.createVNode)(64,"input",null,null,1,{hidden:!0,type:"file",accept:O,multiple:_,onChange:function(){var z=c(u().mark(function(){function W(){var K,H;return u().wrap(function(){function Y(J){for(;;)switch(J.prev=J.next){case 0:if(K=M.inputRef.current.files,!K.length){J.next=6;break}return J.next=4,M.read(K);case 4:H=J.sent,R(_?H:H[0]);case 6:case"end":return J.stop()}}return Y}(),W)}return W}()));function U(){return z.apply(this,arguments)}return U}()},null,this.inputRef);return(0,e.createFragment)([(0,e.normalizeProps)((0,e.createComponentVNode)(2,C,Object.assign({},P,{onClick:function(){function z(){M.inputRef.current.click()}return z}()}))),D],0)}return T}(),I}(e.Component);C.File=B},21396:function(x,r,n){"use strict";r.__esModule=!0,r.ByondUi=void 0;var e=n(58734),a=n(59641),t=n(84710),o=n(66905),m=n(65969),V=["params"],k=["params"],S=["params"];function N(p,v){if(p==null)return{};var f={},C=Object.keys(p),b,g;for(g=0;g<C.length;g++)b=C[g],!(v.indexOf(b)>=0)&&(f[b]=p[b]);return f}function h(p,v){p.prototype=Object.create(v.prototype),p.prototype.constructor=p,s(p,v)}function s(p,v){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function f(C,b){return C.__proto__=b,C}return f}(),s(p,v)}/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var l=(0,o.createLogger)("ByondUi"),u=[],i=function(v){var f=u.length;u.push(null);var C=v||"byondui_"+f;return l.log("allocated '"+C+"'"),{render:function(){function b(g){l.log("rendering '"+C+"'"),u[f]=C,Byond.winset(C,g)}return b}(),unmount:function(){function b(){l.log("unmounting '"+C+"'"),u[f]=null,Byond.winset(C,{parent:""})}return b}()}};window.addEventListener("beforeunload",function(){for(var p=0;p<u.length;p++){var v=u[p];typeof v=="string"&&(l.log("unmounting '"+v+"' (beforeunload)"),u[p]=null,Byond.winset(v,{parent:""}))}});var c=function(v){var f,C=(f=window.devicePixelRatio)!=null?f:1,b=v.getBoundingClientRect();return{pos:[b.left*C,b.top*C],size:[(b.right-b.left)*C,(b.bottom-b.top)*C]}},d=r.ByondUi=function(p){h(v,p);function v(C){var b,g;return g=p.call(this,C)||this,g.containerRef=(0,e.createRef)(),g.byondUiElement=i((b=C.params)==null?void 0:b.id),g.handleResize=(0,t.debounce)(function(){g.forceUpdate()},100),g}var f=v.prototype;return f.shouldComponentUpdate=function(){function C(b){var g=this.props,y=g.params,B=y===void 0?{}:y,L=N(g,V),I=b.params,w=I===void 0?{}:I,T=N(b,k);return(0,a.shallowDiffers)(B,w)||(0,a.shallowDiffers)(L,T)}return C}(),f.componentDidMount=function(){function C(){Byond.IS_LTE_IE10||(window.addEventListener("resize",this.handleResize),this.componentDidUpdate(),this.handleResize())}return C}(),f.componentDidUpdate=function(){function C(){if(!Byond.IS_LTE_IE10){var b=this.props.params,g=b===void 0?{}:b,y=c(this.containerRef.current);l.debug("bounding box",y),this.byondUiElement.render(Object.assign({parent:Byond.windowId},g,{pos:y.pos[0]+","+y.pos[1],size:y.size[0]+"x"+y.size[1]}))}}return C}(),f.componentWillUnmount=function(){function C(){Byond.IS_LTE_IE10||(window.removeEventListener("resize",this.handleResize),this.byondUiElement.unmount())}return C}(),f.render=function(){function C(){var b=this.props,g=b.params,y=N(b,S);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(1,"div",null,null,1,{style:{"min-height":"22px"}}),0,Object.assign({},(0,m.computeBoxProps)(y)),null,this.containerRef))}return C}(),v}(e.Component)},6020:function(x,r,n){"use strict";r.__esModule=!0,r.Chart=void 0;var e=n(58734),a=n(45445),t=n(59641),o=n(65969),m=["data","rangeX","rangeY","fillColor","strokeColor","strokeWidth"];function V(i,c){if(i==null)return{};var d={},p=Object.keys(i),v,f;for(f=0;f<p.length;f++)v=p[f],!(c.indexOf(v)>=0)&&(d[v]=i[v]);return d}function k(i,c){i.prototype=Object.create(c.prototype),i.prototype.constructor=i,S(i,c)}function S(i,c){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function d(p,v){return p.__proto__=v,p}return d}(),S(i,c)}/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var N=function(c,d,p,v){if(c.length===0)return[];var f=(0,a.zipWith)(Math.min).apply(void 0,c),C=(0,a.zipWith)(Math.max).apply(void 0,c);p!==void 0&&(f[0]=p[0],C[0]=p[1]),v!==void 0&&(f[1]=v[0],C[1]=v[1]);var b=(0,a.map)(function(g){return(0,a.zipWith)(function(y,B,L,I){return(y-B)/(L-B)*I})(g,f,C,d)})(c);return b},h=function(c){for(var d="",p=0;p<c.length;p++){var v=c[p];d+=v[0]+","+v[1]+" "}return d},s=function(i){k(c,i);function c(p){var v;return v=i.call(this,p)||this,v.ref=(0,e.createRef)(),v.state={viewBox:[600,200]},v.handleResize=function(){var f=v.ref.current;v.setState({viewBox:[f.offsetWidth,f.offsetHeight]})},v}var d=c.prototype;return d.componentDidMount=function(){function p(){window.addEventListener("resize",this.handleResize),this.handleResize()}return p}(),d.componentWillUnmount=function(){function p(){window.removeEventListener("resize",this.handleResize)}return p}(),d.render=function(){function p(){var v=this,f=this.props,C=f.data,b=C===void 0?[]:C,g=f.rangeX,y=f.rangeY,B=f.fillColor,L=B===void 0?"none":B,I=f.strokeColor,w=I===void 0?"#ffffff":I,T=f.strokeWidth,M=T===void 0?2:T,A=V(f,m),R=this.state.viewBox,O=N(b,R,g,y);if(O.length>0){var _=O[0],P=O[O.length-1];O.push([R[0]+M,P[1]]),O.push([R[0]+M,-M]),O.push([-M,-M]),O.push([-M,_[1]])}var D=h(O);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({position:"relative"},A,{children:function(){function z(U){return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(32,"svg",null,(0,e.createVNode)(32,"polyline",null,null,1,{transform:"scale(1, -1) translate(0, -"+R[1]+")",fill:L,stroke:w,"stroke-width":M,points:D}),2,{viewBox:"0 0 "+R[0]+" "+R[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"}}),2,Object.assign({},U),null,v.ref))}return z}()})))}return p}(),c}(e.Component);s.defaultHooks=t.pureComponentHooks;var l=function(c){return null},u=r.Chart={Line:Byond.IS_LTE_IE8?l:s}},97069:function(x,r,n){"use strict";r.__esModule=!0,r.Collapsible=void 0;var e=n(58734),a=n(65969),t=n(58170),o=["children","color","title","buttons"];function m(N,h){if(N==null)return{};var s={},l=Object.keys(N),u,i;for(i=0;i<l.length;i++)u=l[i],!(h.indexOf(u)>=0)&&(s[u]=N[u]);return s}function V(N,h){N.prototype=Object.create(h.prototype),N.prototype.constructor=N,k(N,h)}function k(N,h){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function s(l,u){return l.__proto__=u,l}return s}(),k(N,h)}/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var S=r.Collapsible=function(N){V(h,N);function h(l){var u;u=N.call(this,l)||this;var i=l.open;return u.state={open:i||!1},u}var s=h.prototype;return s.render=function(){function l(){var u=this,i=this.props,c=this.state.open,d=i.children,p=i.color,v=p===void 0?"default":p,f=i.title,C=i.buttons,b=m(i,o);return(0,e.createComponentVNode)(2,a.Box,{mb:1,children:[(0,e.createVNode)(1,"div","Table",[(0,e.createVNode)(1,"div","Table__cell",(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({fluid:!0,color:v,icon:c?"chevron-down":"chevron-right",onClick:function(){function g(){return u.setState({open:!c})}return g}()},b,{children:f}))),2),C&&(0,e.createVNode)(1,"div","Table__cell Table__cell--collapsing",C,0)],0),c&&(0,e.createComponentVNode)(2,a.Box,{mt:1,children:d})]})}return l}(),h}(e.Component)},72203:function(x,r,n){"use strict";r.__esModule=!0,r.ColorBox=void 0;var e=n(58734),a=n(59641),t=n(65969),o=["content","children","className","color","backgroundColor"];/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/function m(k,S){if(k==null)return{};var N={},h=Object.keys(k),s,l;for(l=0;l<h.length;l++)s=h[l],!(S.indexOf(s)>=0)&&(N[s]=k[s]);return N}var V=r.ColorBox=function(){function k(S){var N=S.content,h=S.children,s=S.className,l=S.color,u=S.backgroundColor,i=m(S,o);return i.color=N?null:"transparent",i.backgroundColor=l||u,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["ColorBox",s,(0,t.computeBoxClassName)(i)]),N||".",0,Object.assign({},(0,t.computeBoxProps)(i))))}return k}();V.defaultHooks=a.pureComponentHooks},29532:function(x,r,n){"use strict";r.__esModule=!0,r.UnsavedChangesDialog=r.Dialog=void 0;var e=n(58734),a=n(65969),t=n(58170);/**
|
|
* @file
|
|
* @copyright 2022 raffclar
|
|
* @license MIT
|
|
*/var o=r.Dialog=function(){function k(S){var N=S.title,h=S.onClose,s=S.children,l=S.width,u=S.height;return(0,e.createVNode)(1,"div","Dialog",(0,e.createComponentVNode)(2,a.Box,{className:"Dialog__content",width:l||"370px",height:u,children:[(0,e.createVNode)(1,"div","Dialog__header",[(0,e.createVNode)(1,"div","Dialog__title",N,0),(0,e.createComponentVNode)(2,a.Box,{mr:2,children:(0,e.createComponentVNode)(2,t.Button,{mr:"-3px",width:"26px",lineHeight:"22px",textAlign:"center",color:"transparent",icon:"window-close-o",tooltip:"Close",tooltipPosition:"bottom-start",onClick:h})})],4),s]}),2)}return k}(),m=function(S){var N=S.onClick,h=S.children;return(0,e.createComponentVNode)(2,t.Button,{onClick:N,className:"Dialog__button",verticalAlignContent:"middle",children:h})};o.Button=m;var V=r.UnsavedChangesDialog=function(){function k(S){var N=S.documentName,h=S.onSave,s=S.onDiscard,l=S.onClose;return(0,e.createComponentVNode)(2,o,{title:"Notepad",onClose:l,children:[(0,e.createVNode)(1,"div","Dialog__body",[(0,e.createTextVNode)("Do you want to save changes to "),N,(0,e.createTextVNode)("?")],0),(0,e.createVNode)(1,"div","Dialog__footer",[(0,e.createComponentVNode)(2,m,{onClick:h,children:"Save"}),(0,e.createComponentVNode)(2,m,{onClick:s,children:"Don't Save"}),(0,e.createComponentVNode)(2,m,{onClick:l,children:"Cancel"})],4)]})}return k}()},62887:function(x,r,n){"use strict";r.__esModule=!0,r.Dimmer=void 0;var e=n(58734),a=n(59641),t=n(65969),o=["className","children"];/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/function m(k,S){if(k==null)return{};var N={},h=Object.keys(k),s,l;for(l=0;l<h.length;l++)s=h[l],!(S.indexOf(s)>=0)&&(N[s]=k[s]);return N}var V=r.Dimmer=function(){function k(S){var N=S.className,h=S.children,s=m(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Dimmer"].concat(N))},s,{children:(0,e.createVNode)(1,"div","Dimmer__inner",h,0)})))}return k}()},759:function(x,r,n){"use strict";r.__esModule=!0,r.Divider=void 0;var e=n(58734),a=n(59641);/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var t=r.Divider=function(){function o(m){var V=m.vertical,k=m.hidden;return(0,e.createVNode)(1,"div",(0,a.classes)(["Divider",k&&"Divider--hidden",V?"Divider--vertical":"Divider--horizontal"]))}return o}()},75318:function(x,r,n){"use strict";r.__esModule=!0,r.DraggableControl=void 0;var e=n(58734),a=n(5339),t=n(59641),o=n(12451);function m(h,s){h.prototype=Object.create(s.prototype),h.prototype.constructor=h,V(h,s)}function V(h,s){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(u,i){return u.__proto__=i,u}return l}(),V(h,s)}/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var k=400,S=function(s,l){return s.screenX*l[0]+s.screenY*l[1]},N=r.DraggableControl=function(h){m(s,h);function s(u){var i;return i=h.call(this,u)||this,i.inputRef=(0,e.createRef)(),i.state={value:u.value,dragging:!1,editing:!1,internalValue:null,origin:null,suppressingFlicker:!1},i.flickerTimer=null,i.suppressFlicker=function(){var c=i.props.suppressFlicker;c>0&&(i.setState({suppressingFlicker:!0}),clearTimeout(i.flickerTimer),i.flickerTimer=setTimeout(function(){i.setState({suppressingFlicker:!1})},c))},i.handleDragStart=function(c){var d=i.props,p=d.value,v=d.dragMatrix,f=i.state.editing;f||(document.body.style["pointer-events"]="none",i.ref=c.target,i.setState({dragging:!1,origin:S(c,v),value:p,internalValue:p}),i.timer=setTimeout(function(){i.setState({dragging:!0})},250),i.dragInterval=setInterval(function(){var C=i.state,b=C.dragging,g=C.value,y=i.props.onDrag;b&&y&&y(c,g)},i.props.updateRate||k),document.addEventListener("mousemove",i.handleDragMove),document.addEventListener("mouseup",i.handleDragEnd))},i.handleDragMove=function(c){var d=i.props,p=d.minValue,v=d.maxValue,f=d.step,C=d.stepPixelSize,b=d.dragMatrix;i.setState(function(g){var y=Object.assign({},g),B=S(c,b)-y.origin;if(g.dragging){var L=Number.isFinite(p)?p%f:0;y.internalValue=(0,a.clamp)(y.internalValue+B*f/C,p-f,v+f),y.value=(0,a.clamp)(y.internalValue-y.internalValue%f+L,p,v),y.origin=S(c,b)}else Math.abs(B)>4&&(y.dragging=!0);return y})},i.handleDragEnd=function(c){var d=i.props,p=d.onChange,v=d.onDrag,f=i.state,C=f.dragging,b=f.value,g=f.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(i.timer),clearInterval(i.dragInterval),i.setState({dragging:!1,editing:!C,origin:null}),document.removeEventListener("mousemove",i.handleDragMove),document.removeEventListener("mouseup",i.handleDragEnd),C)i.suppressFlicker(),p&&p(c,b),v&&v(c,b);else if(i.inputRef){var y=i.inputRef.current;y.value=g;try{y.focus(),y.select()}catch(B){}}},i}var l=s.prototype;return l.render=function(){function u(){var i=this,c=this.state,d=c.dragging,p=c.editing,v=c.value,f=c.suppressingFlicker,C=this.props,b=C.animated,g=C.value,y=C.unit,B=C.minValue,L=C.maxValue,I=C.unclamped,w=C.format,T=C.onChange,M=C.onDrag,A=C.children,R=C.height,O=C.lineHeight,_=C.fontSize,P=g;(d||f)&&(P=v);var D=(0,e.createFragment)([b&&!d&&!f?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:P,format:w}):w?w(P):P,y?" "+y:""],0),z=(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:p?void 0:"none",height:R,"line-height":O,"font-size":_},onBlur:function(){function U(W){if(p){var K;if(I?K=parseFloat(W.target.value):K=(0,a.clamp)(parseFloat(W.target.value),B,L),Number.isNaN(K)){i.setState({editing:!1});return}i.setState({editing:!1,value:K}),i.suppressFlicker(),T&&T(W,K),M&&M(W,K)}}return U}(),onKeyDown:function(){function U(W){if(W.keyCode===13){var K;if(I?K=parseFloat(W.target.value):K=(0,a.clamp)(parseFloat(W.target.value),B,L),Number.isNaN(K)){i.setState({editing:!1});return}i.setState({editing:!1,value:K}),i.suppressFlicker(),T&&T(W,K),M&&M(W,K);return}if(W.keyCode===27){i.setState({editing:!1});return}}return U}()},null,this.inputRef);return A({dragging:d,editing:p,value:g,displayValue:P,displayElement:D,inputElement:z,handleDragStart:this.handleDragStart})}return u}(),s}(e.Component);N.defaultHooks=t.pureComponentHooks,N.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50,dragMatrix:[1,0]}},51413:function(x,r,n){"use strict";r.__esModule=!0,r.Dropdown=void 0;var e=n(58734),a=n(92935),t=n(59641),o=n(65969),m=n(58170),V=n(61043),k=n(70468),S=["icon","iconRotation","iconSpin","clipSelectedText","color","dropdownStyle","over","nochevron","width","onClick","onSelected","selected","disabled","displayText","buttons"],N=["className"],h;function s(f,C){if(f==null)return{};var b={},g=Object.keys(f),y,B;for(B=0;B<g.length;B++)y=g[B],!(C.indexOf(y)>=0)&&(b[y]=f[y]);return b}function l(f,C){f.prototype=Object.create(C.prototype),f.prototype.constructor=f,u(f,C)}function u(f,C){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function b(g,y){return g.__proto__=y,g}return b}(),u(f,C)}var i={placement:"left-start",modifiers:[{name:"eventListeners",enabled:!1}]},c={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function f(){return null}return f}()},d="Layout Dropdown__menu",p="Layout Dropdown__menu-scroll",v=r.Dropdown=function(f){l(C,f);function C(){for(var g,y=arguments.length,B=new Array(y),L=0;L<y;L++)B[L]=arguments[L];return g=f.call.apply(f,[this].concat(B))||this,g.menuContents=void 0,g.state={open:!1,selected:g.props.selected},g.handleClick=function(){g.state.open&&g.setOpen(!1)},g}var b=C.prototype;return b.getDOMNode=function(){function g(){return(0,e.findDOMfromVNode)(this.$LI,!0)}return g}(),b.componentDidMount=function(){function g(){var y=this.getDOMNode()}return g}(),b.openMenu=function(){function g(){var y=C.renderedMenu;y===void 0&&(y=document.createElement("div"),y.className=d,document.body.appendChild(y),C.renderedMenu=y);var B=this.getDOMNode();C.currentOpenMenu=B,y.scrollTop=0,y.style.width=this.props.menuWidth||B.offsetWidth+"px",y.style.opacity="1",y.style.pointerEvents="auto",setTimeout(function(){var L;(L=C.renderedMenu)==null||L.focus()},400),this.renderMenuContent()}return g}(),b.closeMenu=function(){function g(){C.currentOpenMenu===this.getDOMNode()&&(C.currentOpenMenu=void 0,C.renderedMenu.style.opacity="0",C.renderedMenu.style.pointerEvents="none")}return g}(),b.componentWillUnmount=function(){function g(){this.closeMenu(),this.setOpen(!1)}return g}(),b.renderMenuContent=function(){function g(){var y=this,B=C.renderedMenu;if(B){B.offsetHeight>200?B.className=p:B.className=d;var L=this.props.options,I=L===void 0?[]:L,w=I.map(function(M){var A,R;return typeof M=="string"?(R=M,A=M):M!==null&&(R=M.displayText,A=M.value),(0,e.createVNode)(1,"div",(0,t.classes)(["Dropdown__menuentry",y.state.selected===A&&"selected"]),R,0,{onClick:function(){function O(){y.setSelected(A)}return O}()},A)}),T=w.length?w:"No Options Found";(0,e.render)((0,e.createVNode)(1,"div",null,T,0),B,function(){var M=C.singletonPopper;M===void 0?(M=(0,a.createPopper)(C.virtualElement,B,Object.assign({},i,{placement:"bottom-start"})),C.singletonPopper=M):(M.setOptions(Object.assign({},i,{placement:"bottom-start"})),M.update())},this.context)}}return g}(),b.setOpen=function(){function g(y){var B=this;this.setState(function(L){return Object.assign({},L,{open:y})}),y?setTimeout(function(){B.openMenu(),window.addEventListener("click",B.handleClick)}):(this.closeMenu(),window.removeEventListener("click",this.handleClick))}return g}(),b.setSelected=function(){function g(y){this.setState(function(B){return Object.assign({},B,{selected:y})}),this.setOpen(!1),this.props.onSelected&&this.props.onSelected(y)}return g}(),b.getOptionValue=function(){function g(y){return typeof y=="string"?y:y.value}return g}(),b.getSelectedIndex=function(){function g(){var y=this,B=this.state.selected||this.props.selected,L=this.props.options,I=L===void 0?[]:L;return I.findIndex(function(w){return y.getOptionValue(w)===B})}return g}(),b.toPrevious=function(){function g(){if(!(this.props.options.length<1)){var y=this.getSelectedIndex(),B=0,L=this.props.options.length-1,I=y>=0;I||(y=B);var w=y===B?L:y-1;this.setSelected(this.getOptionValue(this.props.options[w]))}}return g}(),b.toNext=function(){function g(){if(!(this.props.options.length<1)){var y=this.getSelectedIndex(),B=0,L=this.props.options.length-1,I=y>=0;I||(y=L);var w=y===L?B:y+1;this.setSelected(this.getOptionValue(this.props.options[w]))}}return g}(),b.render=function(){function g(){var y=this,B=this.props,L=B.icon,I=B.iconRotation,w=B.iconSpin,T=B.clipSelectedText,M=T===void 0?!0:T,A=B.color,R=A===void 0?"default":A,O=B.dropdownStyle,_=B.over,P=B.nochevron,D=B.width,z=B.onClick,U=B.onSelected,W=B.selected,K=B.disabled,H=B.displayText,Y=B.buttons,J=s(B,S),q=J.className,oe=s(J,N),ae=_?!this.state.open:this.state.open;return(0,e.createComponentVNode)(2,k.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,k.Stack.Item,{width:D,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({width:"100%",className:(0,t.classes)(["Dropdown__control","Button","Button--color--"+R,K&&"Button--disabled",q]),onClick:function(){function le(he){K&&!y.state.open||(y.setOpen(!y.state.open),z&&z(he))}return le}()},oe,{children:[L&&(0,e.createComponentVNode)(2,V.Icon,{name:L,rotation:I,spin:w,mr:1}),(0,e.createVNode)(1,"span","Dropdown__selected-text",H||this.state.selected,0,{style:{overflow:M?"hidden":"visible"}}),P||(0,e.createVNode)(1,"span","Dropdown__arrow-button",(0,e.createComponentVNode)(2,V.Icon,{name:ae?"chevron-up":"chevron-down"}),2)]})))}),Y&&(0,e.createFragment)([(0,e.createComponentVNode)(2,k.Stack.Item,{height:"100%",children:(0,e.createComponentVNode)(2,m.Button,{height:"100%",icon:"chevron-left",disabled:K,onClick:function(){function le(){K||y.toPrevious()}return le}()})}),(0,e.createComponentVNode)(2,k.Stack.Item,{height:"100%",children:(0,e.createComponentVNode)(2,m.Button,{height:"100%",icon:"chevron-right",disabled:K,onClick:function(){function le(){K||y.toNext()}return le}()})})],4)]})}return g}(),C}(e.Component);h=v,v.renderedMenu=void 0,v.singletonPopper=void 0,v.currentOpenMenu=void 0,v.virtualElement={getBoundingClientRect:function(){function f(){var C,b;return(C=(b=h.currentOpenMenu)==null?void 0:b.getBoundingClientRect())!=null?C:c}return f}()}},7764:function(x,r,n){"use strict";r.__esModule=!0,r.FitText=void 0;var e=n(58734);function a(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}function t(k,S){k.prototype=Object.create(S.prototype),k.prototype.constructor=k,o(k,S)}function o(k,S){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function N(h,s){return h.__proto__=s,h}return N}(),o(k,S)}var m=5,V=r.FitText=function(k){t(S,k);function S(){var h;return h=k.call(this)||this,h.ref=(0,e.createRef)(),h.state={fontSize:0},h.resize=h.resize.bind(a(h)),window.addEventListener("resize",h.resize),h}var N=S.prototype;return N.componentDidUpdate=function(){function h(s){s.children!==this.props.children&&this.resize()}return h}(),N.componentWillUnmount=function(){function h(){window.removeEventListener("resize",this.resize)}return h}(),N.resize=function(){function h(){var s=this.ref.current;if(s){for(var l=this.props.maxWidth,u=0,i=this.props.maxFontSize,c=0;c<10;c++){var d,p=Math.round((u+i)/2);s.style.fontSize=p+"px";var v=s.offsetWidth-l;if(v>0)i=p;else if(v<((d=this.props.acceptableDifference)!=null?d:m))u=p;else break}this.setState({fontSize:Math.round((u+i)/2)})}}return h}(),N.componentDidMount=function(){function h(){this.resize()}return h}(),N.render=function(){function h(){var s;return(0,e.createVNode)(1,"span",null,this.props.children,0,{style:Object.assign({"font-size":this.state.fontSize+"px"},typeof((s=this.props.native)==null?void 0:s.style)=="object"&&this.props.native.style)},null,this.ref)}return h}(),S}(e.Component)},21456:function(x,r,n){"use strict";r.__esModule=!0,r.computeFlexProps=r.computeFlexItemProps=r.computeFlexItemClassName=r.computeFlexClassName=r.Flex=void 0;var e=n(58734),a=n(59641),t=n(65969),o=["className","direction","wrap","align","justify","inline"],m=["className"],V=["className","style","grow","order","shrink","basis","align"],k=["className"];/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/function S(c,d){if(c==null)return{};var p={},v=Object.keys(c),f,C;for(C=0;C<v.length;C++)f=v[C],!(d.indexOf(f)>=0)&&(p[f]=c[f]);return p}var N=r.computeFlexClassName=function(){function c(d){return(0,a.classes)(["Flex",d.inline&&"Flex--inline",Byond.IS_LTE_IE10&&"Flex--iefix",Byond.IS_LTE_IE10&&d.direction==="column"&&"Flex--iefix--column",(0,t.computeBoxClassName)(d)])}return c}(),h=r.computeFlexProps=function(){function c(d){var p=d.className,v=d.direction,f=d.wrap,C=d.align,b=d.justify,g=d.inline,y=S(d,o);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},y.style,{"flex-direction":v,"flex-wrap":f===!0?"wrap":f,"align-items":C,"justify-content":b})},y))}return c}(),s=r.Flex=function(){function c(d){var p=d.className,v=S(d,m);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([p,N(v)]),null,1,Object.assign({},h(v))))}return c}();s.defaultHooks=a.pureComponentHooks;var l=r.computeFlexItemClassName=function(){function c(d){return(0,a.classes)(["Flex__item",Byond.IS_LTE_IE10&&"Flex__item--iefix",(0,t.computeBoxClassName)(d)])}return c}(),u=r.computeFlexItemProps=function(){function c(d){var p,v=d.className,f=d.style,C=d.grow,b=d.order,g=d.shrink,y=d.basis,B=d.align,L=S(d,V),I=(p=y!=null?y:d.width)!=null?p:C!==void 0?0:void 0;return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},f,{"flex-grow":C!==void 0&&Number(C),"flex-shrink":g!==void 0&&Number(g),"flex-basis":(0,t.unit)(I),order:b,"align-self":B})},L))}return c}(),i=function(d){var p=d.className,v=S(d,k);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([p,l(d)]),null,1,Object.assign({},u(v))))};i.defaultHooks=a.pureComponentHooks,s.Item=i},17268:function(x,r,n){"use strict";r.__esModule=!0,r.GridColumn=r.Grid=void 0;var e=n(58734),a=n(30204),t=n(59641),o=["children"],m=["size","style"];/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/function V(N,h){if(N==null)return{};var s={},l=Object.keys(N),u,i;for(i=0;i<l.length;i++)u=l[i],!(h.indexOf(u)>=0)&&(s[u]=N[u]);return s}var k=r.Grid=function(){function N(h){var s=h.children,l=V(h,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table,Object.assign({},l,{children:(0,e.createComponentVNode)(2,a.Table.Row,{children:s})})))}return N}();k.defaultHooks=t.pureComponentHooks;var S=r.GridColumn=function(){function N(h){var s=h.size,l=s===void 0?1:s,u=h.style,i=V(h,m);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table.Cell,Object.assign({style:Object.assign({width:l+"%"},u)},i)))}return N}();k.defaultHooks=t.pureComponentHooks,k.Column=S},61043:function(x,r,n){"use strict";r.__esModule=!0,r.IconStack=r.Icon=void 0;var e=n(58734),a=n(59641),t=n(65969),o=["style"],m=["name","size","spin","className","rotation"],V=["className","children"];/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @author Original Aleksej Komarov
|
|
* @author Changes ThePotato97
|
|
* @license MIT
|
|
*/function k(s,l){if(s==null)return{};var u={},i=Object.keys(s),c,d;for(d=0;d<i.length;d++)c=i[d],!(l.indexOf(c)>=0)&&(u[c]=s[c]);return u}var S=/-o$/,N=r.Icon=function(){function s(l){var u=l.style,i=k(l,o),c=i.name,d=i.size,p=i.spin,v=i.className,f=i.rotation,C=k(i,m);d&&(u||(u={}),u["font-size"]=d*100+"%"),f&&(u||(u={}),u.transform="rotate("+f+"deg)"),C.style=u;var b=(0,t.computeBoxProps)(C),g="";if(c.startsWith("tg-"))g=c;else{var y=S.test(c),B=c.replace(S,""),L=!B.startsWith("fa-");g=y?"far ":"fas ",L&&(g+="fa-"),g+=B,p&&(g+=" fa-spin")}return(0,e.normalizeProps)((0,e.createVNode)(1,"i",(0,a.classes)(["Icon",g,v,(0,t.computeBoxClassName)(C)]),null,1,Object.assign({},b)))}return s}();N.defaultHooks=a.pureComponentHooks;var h=r.IconStack=function(){function s(l){var u=l.className,i=l.children,c=k(l,V);return(0,e.normalizeProps)((0,e.createVNode)(1,"span",(0,a.classes)(["IconStack",u,(0,t.computeBoxClassName)(c)]),i,0,Object.assign({},(0,t.computeBoxProps)(c))))}return s}();N.Stack=h},35695:function(x,r,n){"use strict";r.__esModule=!0,r.InfinitePlane=void 0;var e=n(58734),a=n(65969),t=n(70468),o=n(83550),m=n(58170),V=["children","backgroundImage","imageWidth","initialLeft","initialTop"];function k(c,d){if(c==null)return{};var p={},v=Object.keys(c),f,C;for(C=0;C<v.length;C++)f=v[C],!(d.indexOf(f)>=0)&&(p[f]=c[f]);return p}function S(c){if(c===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c}function N(c,d){c.prototype=Object.create(d.prototype),c.prototype.constructor=c,h(c,d)}function h(c,d){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function p(v,f){return v.__proto__=f,v}return p}(),h(c,d)}var s=.5,l=1.5,u=.1,i=r.InfinitePlane=function(c){N(d,c);function d(){var v;return v=c.call(this)||this,v.state={mouseDown:!1,left:0,top:0,lastLeft:0,lastTop:0,zoom:1},v.handleMouseDown=v.handleMouseDown.bind(S(v)),v.handleMouseMove=v.handleMouseMove.bind(S(v)),v.handleZoomIncrease=v.handleZoomIncrease.bind(S(v)),v.handleZoomDecrease=v.handleZoomDecrease.bind(S(v)),v.onMouseUp=v.onMouseUp.bind(S(v)),v.doOffsetMouse=v.doOffsetMouse.bind(S(v)),v}var p=d.prototype;return p.componentDidMount=function(){function v(){window.addEventListener("mouseup",this.onMouseUp),window.addEventListener("mousedown",this.doOffsetMouse),window.addEventListener("mousemove",this.doOffsetMouse),window.addEventListener("mouseup",this.doOffsetMouse)}return v}(),p.componentWillUnmount=function(){function v(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousedown",this.doOffsetMouse),window.removeEventListener("mousemove",this.doOffsetMouse),window.removeEventListener("mouseup",this.doOffsetMouse)}return v}(),p.doOffsetMouse=function(){function v(f){var C=this.state.zoom;f.screenZoomX=f.screenX*Math.pow(C,-1),f.screenZoomY=f.screenY*Math.pow(C,-1)}return v}(),p.handleMouseDown=function(){function v(f){this.setState(function(C){return{mouseDown:!0,lastLeft:f.clientX-C.left,lastTop:f.clientY-C.top}})}return v}(),p.onMouseUp=function(){function v(){this.setState({mouseDown:!1})}return v}(),p.handleZoomIncrease=function(){function v(f){var C=this.props.onZoomChange,b=this.state.zoom,g=Math.min(b+u,l);this.setState({zoom:g}),C&&C(g)}return v}(),p.handleZoomDecrease=function(){function v(f){var C=this.props.onZoomChange,b=this.state.zoom,g=Math.max(b-u,s);this.setState({zoom:g}),C&&C(g)}return v}(),p.handleMouseMove=function(){function v(f){var C=this.props,b=C.onBackgroundMoved,g=C.initialLeft,y=g===void 0?0:g,B=C.initialTop,L=B===void 0?0:B;if(this.state.mouseDown){var I,w;this.setState(function(T){return I=f.clientX-T.lastLeft,w=f.clientY-T.lastTop,{left:I,top:w}}),b&&b(I+y,w+L)}}return v}(),p.render=function(){function v(){var f=this.props,C=f.children,b=f.backgroundImage,g=f.imageWidth,y=f.initialLeft,B=y===void 0?0:y,L=f.initialTop,I=L===void 0?0:L,w=k(f,V),T=this.state,M=T.left,A=T.top,R=T.zoom,O=B+M,_=I+A;return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,[(0,e.createVNode)(1,"div",null,null,1,{onMouseDown:this.handleMouseDown,onMouseMove:this.handleMouseMove,style:{position:"fixed",height:"100%",width:"100%","background-image":'url("'+b+'")',"background-position":O+"px "+_+"px","background-repeat":"repeat","background-size":R*g+"px"}}),(0,e.createVNode)(1,"div",null,C,0,{onMouseDown:this.handleMouseDown,onMouseMove:this.handleMouseMove,style:{position:"fixed",transform:"translate("+O+"px, "+_+"px) scale("+R+")","transform-origin":"top left",height:"100%",width:"100%"}}),(0,e.createComponentVNode)(2,t.Stack,{position:"absolute",width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Button,{icon:"minus",onClick:this.handleZoomDecrease})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:s,value:R,maxValue:l,children:[R,"x"]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Button,{icon:"plus",onClick:this.handleZoomIncrease})})]})],4,Object.assign({},(0,a.computeBoxProps)(Object.assign({},w,{style:Object.assign({},w.style,{overflow:"hidden",position:"relative"})}))),null,this.ref))}return v}(),d}(e.Component)},16225:function(x,r,n){"use strict";r.__esModule=!0,r.toInputValue=r.Input=void 0;var e=n(58734),a=n(42678),t=n(59641),o=n(65969),m=["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder"],V=["className","fluid","monospace"];function k(l,u){if(l==null)return{};var i={},c=Object.keys(l),d,p;for(p=0;p<c.length;p++)d=c[p],!(u.indexOf(d)>=0)&&(i[d]=l[d]);return i}function S(l,u){l.prototype=Object.create(u.prototype),l.prototype.constructor=l,N(l,u)}function N(l,u){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function i(c,d){return c.__proto__=d,c}return i}(),N(l,u)}/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var h=r.toInputValue=function(){function l(u){return typeof u!="number"&&typeof u!="string"?"":String(u)}return l}(),s=r.Input=function(l){S(u,l);function u(){var c;return c=l.call(this)||this,c.inputRef=(0,e.createRef)(),c.state={editing:!1},c.handleInput=function(d){var p=c.state.editing,v=c.props.onInput;p||c.setEditing(!0),v&&v(d,d.target.value)},c.handleFocus=function(d){var p=c.state.editing;p||c.setEditing(!0)},c.handleBlur=function(d){var p=c.state.editing,v=c.props.onChange;p&&(c.setEditing(!1),v&&v(d,d.target.value))},c.handleKeyDown=function(d){var p=c.props,v=p.onInput,f=p.onChange,C=p.onEnter;if(d.keyCode===a.KEY_ENTER){c.setEditing(!1),f&&f(d,d.target.value),v&&v(d,d.target.value),C&&C(d,d.target.value),c.props.selfClear?d.target.value="":d.target.blur();return}if(d.keyCode===a.KEY_ESCAPE){if(c.props.onEscape){c.props.onEscape(d);return}c.setEditing(!1),d.target.value=h(c.props.value),d.target.blur();return}},c}var i=u.prototype;return i.componentDidMount=function(){function c(){var d=this,p=this.props.value,v=this.inputRef.current;v&&(v.value=h(p)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){v.focus(),d.props.autoSelect&&v.select()},1)}return c}(),i.componentDidUpdate=function(){function c(d,p){var v=this.state.editing,f=d.value,C=this.props.value,b=this.inputRef.current;b&&!v&&f!==C&&(b.value=h(C))}return c}(),i.setEditing=function(){function c(d){this.setState({editing:d})}return c}(),i.render=function(){function c(){var d=this.props,p=d.selfClear,v=d.onInput,f=d.onChange,C=d.onEnter,b=d.value,g=d.maxLength,y=d.placeholder,B=k(d,m),L=B.className,I=B.fluid,w=B.monospace,T=k(B,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,t.classes)(["Input",I&&"Input--fluid",w&&"Input--monospace",L])},T,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),(0,e.createVNode)(64,"input","Input__input",null,1,{placeholder:y,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:g},null,this.inputRef)]})))}return c}(),u}(e.Component)},76844:function(x,r,n){"use strict";r.__esModule=!0,r.KeyListener=void 0;var e=n(58734),a=n(73764);function t(V,k){V.prototype=Object.create(k.prototype),V.prototype.constructor=V,o(V,k)}function o(V,k){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function S(N,h){return N.__proto__=h,N}return S}(),o(V,k)}var m=r.KeyListener=function(V){t(k,V);function k(){var N;return N=V.call(this)||this,N.dispose=void 0,N.dispose=(0,a.listenForKeyEvents)(function(h){N.props.onKey&&N.props.onKey(h),h.isDown()&&N.props.onKeyDown&&N.props.onKeyDown(h),h.isUp()&&N.props.onKeyUp&&N.props.onKeyUp(h)}),N}var S=k.prototype;return S.componentWillUnmount=function(){function N(){this.dispose()}return N}(),S.render=function(){function N(){return null}return N}(),k}(e.Component)},10869:function(x,r,n){"use strict";r.__esModule=!0,r.Knob=void 0;var e=n(58734),a=n(5339),t=n(59641),o=n(65969),m=n(75318),V=n(4665),k=["animated","format","maxValue","minValue","unclamped","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children"];/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/function S(h,s){if(h==null)return{};var l={},u=Object.keys(h),i,c;for(c=0;c<u.length;c++)i=u[c],!(s.indexOf(i)>=0)&&(l[i]=h[i]);return l}var N=r.Knob=function(){function h(s){if(Byond.IS_LTE_IE8)return(0,e.normalizeProps)((0,e.createComponentVNode)(2,V.NumberInput,Object.assign({},s)));var l=s.animated,u=s.format,i=s.maxValue,c=s.minValue,d=s.unclamped,p=s.onChange,v=s.onDrag,f=s.step,C=s.stepPixelSize,b=s.suppressFlicker,g=s.unit,y=s.value,B=s.className,L=s.style,I=s.fillValue,w=s.color,T=s.ranges,M=T===void 0?{}:T,A=s.size,R=A===void 0?1:A,O=s.bipolar,_=s.children,P=S(s,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:l,format:u,maxValue:i,minValue:c,unclamped:d,onChange:p,onDrag:v,step:f,stepPixelSize:C,suppressFlicker:b,unit:g,value:y},{children:function(){function D(z){var U=z.dragging,W=z.editing,K=z.value,H=z.displayValue,Y=z.displayElement,J=z.inputElement,q=z.handleDragStart,oe=(0,a.scale)(I!=null?I:H,c,i),ae=(0,a.scale)(H,c,i),le=w||(0,a.keyOfMatchingRange)(I!=null?I:K,M)||"default",he=Math.min((ae-.5)*270,225);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Knob","Knob--color--"+le,O&&"Knob--bipolar",B,(0,o.computeBoxClassName)(P)]),[(0,e.createVNode)(1,"div","Knob__circle",(0,e.createVNode)(1,"div","Knob__cursorBox",(0,e.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+he+"deg)"}}),2),U&&(0,e.createVNode)(1,"div","Knob__popupValue",Y,0),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringTrackPivot",(0,e.createVNode)(32,"circle","Knob__ringTrack",null,1,{cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringFillPivot",(0,e.createVNode)(32,"circle","Knob__ringFill",null,1,{style:{"stroke-dashoffset":Math.max(((O?2.75:2)-oe*1.5)*Math.PI*50,0)},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),J],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":R+"em"},L)},P)),{onMouseDown:q})))}return D}()})))}return h}()},515:function(x,r,n){"use strict";r.__esModule=!0,r.LabeledControls=void 0;var e=n(58734),a=n(21456),t=["children","wrap"],o=["label","children","mx"];/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/function m(S,N){if(S==null)return{};var h={},s=Object.keys(S),l,u;for(u=0;u<s.length;u++)l=s[u],!(N.indexOf(l)>=0)&&(h[l]=S[l]);return h}var V=r.LabeledControls=function(){function S(N){var h=N.children,s=N.wrap,l=m(N,t);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({mx:-.5,wrap:s,align:"stretch",justify:"space-between"},l,{children:h})))}return S}(),k=function(N){var h=N.label,s=N.children,l=N.mx,u=l===void 0?1:l,i=m(N,o);return(0,e.createComponentVNode)(2,a.Flex.Item,{mx:u,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},i,{children:[(0,e.createComponentVNode)(2,a.Flex.Item),(0,e.createComponentVNode)(2,a.Flex.Item,{children:s}),(0,e.createComponentVNode)(2,a.Flex.Item,{color:"label",children:h})]})))})};V.Item=k},84867:function(x,r,n){"use strict";r.__esModule=!0,r.LabeledList=void 0;var e=n(58734),a=n(59641),t=n(65969),o=n(759);/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var m=r.LabeledList=function(){function S(N){var h=N.children;return(0,e.createVNode)(1,"table","LabeledList",h,0)}return S}();m.defaultHooks=a.pureComponentHooks;var V=function(N){var h=N.className,s=N.label,l=N.labelColor,u=l===void 0?"label":l,i=N.labelWrap,c=N.color,d=N.textAlign,p=N.buttons,v=N.content,f=N.children,C=N.verticalAlign,b=C===void 0?"baseline":C;return(0,e.createVNode)(1,"tr",(0,a.classes)(["LabeledList__row",h]),[(0,e.createComponentVNode)(2,t.Box,{as:"td",color:u,className:(0,a.classes)(["LabeledList__cell",!i&&"LabeledList__label--nowrap"]),verticalAlign:b,children:s?typeof s=="string"?s+":":s:null}),(0,e.createComponentVNode)(2,t.Box,{as:"td",color:c,textAlign:d,className:(0,a.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:p?void 0:2,verticalAlign:b,children:[v,f]}),p&&(0,e.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",p,0)],0)};V.defaultHooks=a.pureComponentHooks;var k=function(N){var h=N.size?(0,t.unit)(Math.max(0,N.size-1)):0;return(0,e.createVNode)(1,"tr","LabeledList__row",(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,o.Divider),2,{colSpan:3,style:{"padding-top":h,"padding-bottom":h}}),2)};k.defaultHooks=a.pureComponentHooks,m.Item=V,m.Divider=k},34927:function(x,r,n){"use strict";r.__esModule=!0,r.MenuBar=r.Dropdown=void 0;var e=n(58734),a=n(59641),t=n(65969),o=n(66905),m=n(61043),V=["open","openWidth","children","disabled","display","onMouseOver","onClick","onOutsideClick"],k=["className"];function S(v,f){if(v==null)return{};var C={},b=Object.keys(v),g,y;for(y=0;y<b.length;y++)g=b[y],!(f.indexOf(g)>=0)&&(C[g]=v[g]);return C}function N(v,f){v.prototype=Object.create(f.prototype),v.prototype.constructor=v,h(v,f)}function h(v,f){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function C(b,g){return b.__proto__=g,b}return C}(),h(v,f)}/**
|
|
* @file
|
|
* @copyright 2022 Aleksej Komarov
|
|
* @license MIT
|
|
*/var s=function(v){N(f,v);function f(b){var g;return g=v.call(this,b)||this,g.handleClick=void 0,g.handleClick=function(y){if(!g.props.menuRef.current){o.logger.log("Menu.handleClick(): No ref");return}g.props.menuRef.current.contains(y.target)?o.logger.log("Menu.handleClick(): Inside"):(o.logger.log("Menu.handleClick(): Outside"),g.props.onOutsideClick())},g}var C=f.prototype;return C.componentWillMount=function(){function b(){window.addEventListener("click",this.handleClick)}return b}(),C.componentWillUnmount=function(){function b(){window.removeEventListener("click",this.handleClick)}return b}(),C.render=function(){function b(){var g=this.props,y=g.width,B=g.children;return(0,e.createVNode)(1,"div","MenuBar__menu",B,0,{style:{width:y}})}return b}(),f}(e.Component),l=function(v){N(f,v);function f(b){var g;return g=v.call(this,b)||this,g.menuRef=void 0,g.menuRef=(0,e.createRef)(),g}var C=f.prototype;return C.render=function(){function b(){var g=this.props,y=g.open,B=g.openWidth,L=g.children,I=g.disabled,w=g.display,T=g.onMouseOver,M=g.onClick,A=g.onOutsideClick,R=S(g,V),O=R.className,_=S(R,k);return(0,e.createVNode)(1,"div",null,[(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["MenuBar__MenuBarButton","MenuBar__font","MenuBar__hover",O])},_,{onClick:I?void 0:M,onmouseover:T,children:(0,e.createVNode)(1,"span","MenuBar__MenuBarButton-text",w,0)}))),y&&(0,e.createComponentVNode)(2,s,{width:B,menuRef:this.menuRef,onOutsideClick:A,children:L})],0,null,null,this.menuRef)}return b}(),f}(e.Component),u=r.Dropdown=function(){function v(f){var C=f.entry,b=f.children,g=f.openWidth,y=f.display,B=f.setOpenMenuBar,L=f.openMenuBar,I=f.setOpenOnHover,w=f.openOnHover,T=f.disabled,M=f.className;return(0,e.createComponentVNode)(2,l,{openWidth:g,display:y,disabled:T,open:L===C,className:M,onClick:function(){function A(){var R=L===C?null:C;B(R),I(!w)}return A}(),onOutsideClick:function(){function A(){B(null),I(!1)}return A}(),onMouseOver:function(){function A(){w&&B(C)}return A}(),children:b})}return v}(),i=function(f){var C=f.value,b=f.displayText,g=f.onClick,y=f.checked;return(0,e.createComponentVNode)(2,t.Box,{className:(0,a.classes)(["MenuBar__font","MenuBar__MenuItem","MenuBar__MenuItemToggle","MenuBar__hover"]),onClick:function(){function B(){return g(C)}return B}(),children:[(0,e.createVNode)(1,"div","MenuBar__MenuItemToggle__check",y&&(0,e.createComponentVNode)(2,m.Icon,{size:1.3,name:"check"}),0),b]})};u.MenuItemToggle=i;var c=function(f){var C=f.value,b=f.displayText,g=f.onClick;return(0,e.createComponentVNode)(2,t.Box,{className:(0,a.classes)(["MenuBar__font","MenuBar__MenuItem","MenuBar__hover"]),onClick:function(){function y(){return g(C)}return y}(),children:b})};u.MenuItem=c;var d=function(){return(0,e.createVNode)(1,"div","MenuBar__Separator")};u.Separator=d;var p=r.MenuBar=function(){function v(f){var C=f.children;return(0,e.createComponentVNode)(2,t.Box,{className:"MenuBar",children:C})}return v}();p.Dropdown=u},39539:function(x,r,n){"use strict";r.__esModule=!0,r.Modal=void 0;var e=n(58734),a=n(59641),t=n(65969),o=n(62887),m=["className","children","onEnter"];/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/function V(S,N){if(S==null)return{};var h={},s=Object.keys(S),l,u;for(u=0;u<s.length;u++)l=s[u],!(N.indexOf(l)>=0)&&(h[l]=S[l]);return h}var k=r.Modal=function(){function S(N){var h=N.className,s=N.children,l=N.onEnter,u=V(N,m),i;return l&&(i=function(){function c(d){var p=d.which||d.keyCode;p===13&&l(d)}return c}()),(0,e.createComponentVNode)(2,o.Dimmer,{onKeyDown:i,children:(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Modal",h,(0,t.computeBoxClassName)(u)]),s,0,Object.assign({},(0,t.computeBoxProps)(u))))})}return S}()},24808:function(x,r,n){"use strict";r.__esModule=!0,r.NoticeBox=void 0;var e=n(58734),a=n(59641),t=n(65969),o=["className","color","info","warning","success","danger"];/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/function m(k,S){if(k==null)return{};var N={},h=Object.keys(k),s,l;for(l=0;l<h.length;l++)s=h[l],!(S.indexOf(s)>=0)&&(N[s]=k[s]);return N}var V=r.NoticeBox=function(){function k(S){var N=S.className,h=S.color,s=S.info,l=S.warning,u=S.success,i=S.danger,c=m(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["NoticeBox",h&&"NoticeBox--color--"+h,s&&"NoticeBox--type--info",u&&"NoticeBox--type--success",i&&"NoticeBox--type--danger",N])},c)))}return k}();V.defaultHooks=a.pureComponentHooks},4665:function(x,r,n){"use strict";r.__esModule=!0,r.NumberInput=void 0;var e=n(58734),a=n(5339),t=n(59641),o=n(12451),m=n(65969);function V(h,s){h.prototype=Object.create(s.prototype),h.prototype.constructor=h,k(h,s)}function k(h,s){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(u,i){return u.__proto__=i,u}return l}(),k(h,s)}/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var S=400,N=r.NumberInput=function(h){V(s,h);function s(u){var i;i=h.call(this,u)||this;var c=u.value;return i.inputRef=(0,e.createRef)(),i.state={value:c,dragging:!1,editing:!1,internalValue:null,origin:null,suppressingFlicker:!1},i.flickerTimer=null,i.suppressFlicker=function(){var d=i.props.suppressFlicker;d>0&&(i.setState({suppressingFlicker:!0}),clearTimeout(i.flickerTimer),i.flickerTimer=setTimeout(function(){return i.setState({suppressingFlicker:!1})},d))},i.handleDragStart=function(d){var p=i.props.value,v=i.state.editing;v||(document.body.style["pointer-events"]="none",i.ref=d.target,i.setState({dragging:!1,origin:d.screenY,value:p,internalValue:p}),i.timer=setTimeout(function(){i.setState({dragging:!0})},250),i.dragInterval=setInterval(function(){var f=i.state,C=f.dragging,b=f.value,g=i.props.onDrag;C&&g&&g(d,b)},i.props.updateRate||S),document.addEventListener("mousemove",i.handleDragMove),document.addEventListener("mouseup",i.handleDragEnd))},i.handleDragMove=function(d){var p=i.props,v=p.minValue,f=p.maxValue,C=p.step,b=p.stepPixelSize;i.setState(function(g){var y=Object.assign({},g),B=y.origin-d.screenY;if(g.dragging){var L=Number.isFinite(v)?v%C:0;y.internalValue=(0,a.clamp)(y.internalValue+B*C/b,v-C,f+C),y.value=(0,a.clamp)(y.internalValue-y.internalValue%C+L,v,f),y.origin=d.screenY}else Math.abs(B)>4&&(y.dragging=!0);return y})},i.handleDragEnd=function(d){var p=i.props,v=p.onChange,f=p.onDrag,C=i.state,b=C.dragging,g=C.value,y=C.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(i.timer),clearInterval(i.dragInterval),i.setState({dragging:!1,editing:!b,origin:null}),document.removeEventListener("mousemove",i.handleDragMove),document.removeEventListener("mouseup",i.handleDragEnd),b)i.suppressFlicker(),v&&v(d,g),f&&f(d,g);else if(i.inputRef){var B=i.inputRef.current;B.value=y;try{B.focus(),B.select()}catch(L){}}},i}var l=s.prototype;return l.render=function(){function u(){var i=this,c=this.state,d=c.dragging,p=c.editing,v=c.value,f=c.suppressingFlicker,C=this.props,b=C.className,g=C.fluid,y=C.animated,B=C.value,L=C.unit,I=C.minValue,w=C.maxValue,T=C.height,M=C.width,A=C.lineHeight,R=C.fontSize,O=C.format,_=C.onChange,P=C.onDrag,D=B;(d||f)&&(D=v);var z=(0,e.createVNode)(1,"div","NumberInput__content",[y&&!d&&!f?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:D,format:O}):O?O(D):D,L?" "+L:""],0,{unselectable:Byond.IS_LTE_IE8});return(0,e.createComponentVNode)(2,m.Box,{className:(0,t.classes)(["NumberInput",g&&"NumberInput--fluid",b]),minWidth:M,minHeight:T,lineHeight:A,fontSize:R,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-I)/(w-I)*100,0,100)+"%"}}),2),z,(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:p?void 0:"none",height:T,"line-height":A,"font-size":R},onBlur:function(){function U(W){if(p){var K=(0,a.clamp)(parseFloat(W.target.value),I,w);if(Number.isNaN(K)){i.setState({editing:!1});return}i.setState({editing:!1,value:K}),i.suppressFlicker(),_&&_(W,K),P&&P(W,K)}}return U}(),onKeyDown:function(){function U(W){if(W.keyCode===13){var K=(0,a.clamp)(parseFloat(W.target.value),I,w);if(Number.isNaN(K)){i.setState({editing:!1});return}i.setState({editing:!1,value:K}),i.suppressFlicker(),_&&_(W,K),P&&P(W,K);return}if(W.keyCode===27){i.setState({editing:!1});return}}return U}()},null,this.inputRef)]})}return u}(),s}(e.Component);N.defaultHooks=t.pureComponentHooks,N.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50}},38221:function(x,r,n){"use strict";r.__esModule=!0,r.Popper=void 0;var e=n(92935),a=n(58734);function t(V,k){V.prototype=Object.create(k.prototype),V.prototype.constructor=V,o(V,k)}function o(V,k){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function S(N,h){return N.__proto__=h,N}return S}(),o(V,k)}var m=r.Popper=function(V){t(k,V);function k(){var N;return N=V.call(this)||this,N.renderedContent=void 0,N.popperInstance=void 0,k.id+=1,N}var S=k.prototype;return S.componentDidMount=function(){function N(){var h=this,s=this.props,l=s.additionalStyles,u=s.options;if(this.renderedContent=document.createElement("div"),l)for(var i=0,c=Object.entries(l);i<c.length;i++){var d=c[i],p=d[0],v=d[1];this.renderedContent.style[p]=v}this.renderPopperContent(function(){document.body.appendChild(h.renderedContent);var f=(0,a.findDOMfromVNode)(h.$LI,!0);f&&(h.popperInstance=(0,e.createPopper)(f,h.renderedContent,u))})}return N}(),S.componentDidUpdate=function(){function N(){var h=this;this.renderPopperContent(function(){var s;return(s=h.popperInstance)==null?void 0:s.update()})}return N}(),S.componentWillUnmount=function(){function N(){var h,s=this;(h=this.popperInstance)==null||h.destroy(),(0,a.render)(null,this.renderedContent,function(){s.renderedContent.remove()})}return N}(),S.renderPopperContent=function(){function N(h){(0,a.render)(this.props.popperContent||null,this.renderedContent,h,this.context)}return N}(),S.render=function(){function N(){return this.props.children}return N}(),k}(a.Component);m.id=0},83550:function(x,r,n){"use strict";r.__esModule=!0,r.ProgressBar=void 0;var e=n(58734),a=n(5339),t=n(59641),o=n(65969),m=n(78419),V=["className","value","minValue","maxValue","color","ranges","children"];/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/function k(N,h){if(N==null)return{};var s={},l=Object.keys(N),u,i;for(i=0;i<l.length;i++)u=l[i],!(h.indexOf(u)>=0)&&(s[u]=N[u]);return s}var S=r.ProgressBar=function(){function N(h){var s=h.className,l=h.value,u=h.minValue,i=u===void 0?0:u,c=h.maxValue,d=c===void 0?1:c,p=h.color,v=h.ranges,f=v===void 0?{}:v,C=h.children,b=k(h,V),g=(0,a.scale)(l,i,d),y=C!==void 0,B=p||(0,a.keyOfMatchingRange)(l,f)||"default",L=(0,o.computeBoxProps)(b),I=["ProgressBar",s,(0,o.computeBoxClassName)(b)],w={width:(0,a.clamp01)(g)*100+"%"};return m.CSS_COLORS.includes(B)||B==="default"?I.push("ProgressBar--color--"+B):(L.style=(L.style||"")+("border-color: "+B+";"),w["background-color"]=B),(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(I),[(0,e.createVNode)(1,"div","ProgressBar__fill ProgressBar__fill--animated",null,1,{style:w}),(0,e.createVNode)(1,"div","ProgressBar__content",y?C:(0,a.toFixed)(g*100)+"%",0)],4,Object.assign({},L)))}return N}();S.defaultHooks=t.pureComponentHooks},18918:function(x,r,n){"use strict";r.__esModule=!0,r.RestrictedInput=void 0;var e=n(58734),a=n(59641),t=n(5339),o=n(65969),m=n(42678),V=["onChange","onEnter","onInput","value"],k=["className","fluid","monospace"];function S(c,d){if(c==null)return{};var p={},v=Object.keys(c),f,C;for(C=0;C<v.length;C++)f=v[C],!(d.indexOf(f)>=0)&&(p[f]=c[f]);return p}function N(c,d){c.prototype=Object.create(d.prototype),c.prototype.constructor=c,h(c,d)}function h(c,d){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function p(v,f){return v.__proto__=f,v}return p}(),h(c,d)}var s=0,l=1e4,u=function(d,p,v,f){var C=p||s,b=v||v===0?v:l;if(!d||!d.length)return String(C);var g=f?parseFloat(d.replace(/[^\-\d.]/g,"")):parseInt(d.replace(/[^\-\d]/g,""),10);return isNaN(g)?String(C):String((0,t.clamp)(g,C,b))},i=r.RestrictedInput=function(c){N(d,c);function d(){var v;return v=c.call(this)||this,v.inputRef=(0,e.createRef)(),v.state={editing:!1},v.handleBlur=function(f){var C=v.state.editing;C&&v.setEditing(!1)},v.handleChange=function(f){var C=v.props,b=C.maxValue,g=C.minValue,y=C.onChange,B=C.allowFloats;f.target.value=u(f.target.value,g,b,B),y&&y(f,+f.target.value)},v.handleFocus=function(f){var C=v.state.editing;C||v.setEditing(!0)},v.handleInput=function(f){var C=v.state.editing,b=v.props.onInput;C||v.setEditing(!0),b&&b(f,+f.target.value)},v.handleKeyDown=function(f){var C=v.props,b=C.maxValue,g=C.minValue,y=C.onChange,B=C.onEnter,L=C.allowFloats;if(f.keyCode===m.KEY_ENTER){var I=u(f.target.value,g,b,L);v.setEditing(!1),y&&y(f,+I),B&&B(f,+I),f.target.blur();return}if(f.keyCode===m.KEY_ESCAPE){if(v.props.onEscape){v.props.onEscape(f);return}v.setEditing(!1),f.target.value=v.props.value,f.target.blur();return}},v}var p=d.prototype;return p.componentDidMount=function(){function v(){var f,C=this,b=this.props,g=b.maxValue,y=b.minValue,B=b.allowFloats,L=(f=this.props.value)==null?void 0:f.toString(),I=this.inputRef.current;I&&(I.value=u(L,y,g,B)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){I.focus(),C.props.autoSelect&&I.select()},1)}return v}(),p.componentDidUpdate=function(){function v(f,C){var b,g,y=this.props,B=y.maxValue,L=y.minValue,I=y.allowFloats,w=this.state.editing,T=(b=f.value)==null?void 0:b.toString(),M=(g=this.props.value)==null?void 0:g.toString(),A=this.inputRef.current;A&&!w&&M!==T&&M!==A.value&&(A.value=u(M,L,B,I))}return v}(),p.setEditing=function(){function v(f){this.setState({editing:f})}return v}(),p.render=function(){function v(){var f=this.props,C=f.onChange,b=f.onEnter,g=f.onInput,y=f.value,B=S(f,V),L=B.className,I=B.fluid,w=B.monospace,T=S(B,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Input",I&&"Input--fluid",w&&"Input--monospace",L])},T,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),(0,e.createVNode)(64,"input","Input__input",null,1,{onChange:this.handleChange,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,type:"number"},null,this.inputRef)]})))}return v}(),d}(e.Component)},38818:function(x,r,n){"use strict";r.__esModule=!0,r.RoundGauge=void 0;var e=n(58734),a=n(5339),t=n(59641),o=n(12451),m=n(65969),V=["value","minValue","maxValue","ranges","alertAfter","alertBefore","format","size","className","style"];/**
|
|
* @file
|
|
* @copyright 2020 bobbahbrown (https://github.com/bobbahbrown)
|
|
* @license MIT
|
|
*/function k(N,h){if(N==null)return{};var s={},l=Object.keys(N),u,i;for(i=0;i<l.length;i++)u=l[i],!(h.indexOf(u)>=0)&&(s[u]=N[u]);return s}var S=r.RoundGauge=function(){function N(h){if(Byond.IS_LTE_IE8)return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.AnimatedNumber,Object.assign({},h)));var s=h.value,l=h.minValue,u=l===void 0?1:l,i=h.maxValue,c=i===void 0?1:i,d=h.ranges,p=h.alertAfter,v=h.alertBefore,f=h.format,C=h.size,b=C===void 0?1:C,g=h.className,y=h.style,B=k(h,V),L=(0,a.scale)(s,u,c),I=(0,a.clamp01)(L),w=d?{}:{primary:[0,1]};d&&Object.keys(d).forEach(function(A){var R=d[A];w[A]=[(0,a.scale)(R[0],u,c),(0,a.scale)(R[1],u,c)]});var T=function(){function A(){if(p&&v&&p<v){if(p<s&&v>s)return!0}else if(p<s||v>s)return!0;return!1}return A}(),M=T()&&(0,a.keyOfMatchingRange)(I,w);return(0,e.createComponentVNode)(2,m.Box,{inline:!0,children:[(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["RoundGauge",g,(0,m.computeBoxClassName)(B)]),(0,e.createVNode)(32,"svg",null,[(p||v)&&(0,e.createVNode)(32,"g",(0,t.classes)(["RoundGauge__alert",M?"active RoundGauge__alert--"+M:""]),(0,e.createVNode)(32,"path",null,null,1,{d:"M48.211,14.578C48.55,13.9 49.242,13.472 50,13.472C50.758,13.472 51.45,13.9 51.789,14.578C54.793,20.587 60.795,32.589 63.553,38.106C63.863,38.726 63.83,39.462 63.465,40.051C63.101,40.641 62.457,41 61.764,41C55.996,41 44.004,41 38.236,41C37.543,41 36.899,40.641 36.535,40.051C36.17,39.462 36.137,38.726 36.447,38.106C39.205,32.589 45.207,20.587 48.211,14.578ZM50,34.417C51.426,34.417 52.583,35.574 52.583,37C52.583,38.426 51.426,39.583 50,39.583C48.574,39.583 47.417,38.426 47.417,37C47.417,35.574 48.574,34.417 50,34.417ZM50,32.75C50,32.75 53,31.805 53,22.25C53,20.594 51.656,19.25 50,19.25C48.344,19.25 47,20.594 47,22.25C47,31.805 50,32.75 50,32.75Z"}),2),(0,e.createVNode)(32,"g",null,(0,e.createVNode)(32,"circle","RoundGauge__ringTrack",null,1,{cx:"50",cy:"50",r:"45"}),2),(0,e.createVNode)(32,"g",null,Object.keys(w).map(function(A,R){var O=w[A];return(0,e.createVNode)(32,"circle","RoundGauge__ringFill RoundGauge--color--"+A,null,1,{style:{"stroke-dashoffset":Math.max((2-(O[1]-O[0]))*Math.PI*50,0)},transform:"rotate("+(180+180*O[0])+" 50 50)",cx:"50",cy:"50",r:"45"},R)}),0),(0,e.createVNode)(32,"g","RoundGauge__needle",[(0,e.createVNode)(32,"polygon","RoundGauge__needleLine",null,1,{points:"46,50 50,0 54,50"}),(0,e.createVNode)(32,"circle","RoundGauge__needleMiddle",null,1,{cx:"50",cy:"50",r:"8"})],4,{transform:"rotate("+(I*180-90)+" 50 50)"})],0,{viewBox:"0 0 100 50"}),2,Object.assign({},(0,m.computeBoxProps)(Object.assign({style:Object.assign({"font-size":b+"em"},y)},B))))),(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:s,format:f,size:b})]})}return N}()},41355:function(x,r,n){"use strict";r.__esModule=!0,r.Section=void 0;var e=n(58734),a=n(59641),t=n(80835),o=n(65969),m=["className","title","buttons","fill","fitted","scrollable","scrollableHorizontal","flexGrow","noTopPadding","stretchContents","children","onScroll"];function V(h,s){if(h==null)return{};var l={},u=Object.keys(h),i,c;for(c=0;c<u.length;c++)i=u[c],!(s.indexOf(i)>=0)&&(l[i]=h[i]);return l}function k(h,s){h.prototype=Object.create(s.prototype),h.prototype.constructor=h,S(h,s)}function S(h,s){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(u,i){return u.__proto__=i,u}return l}(),S(h,s)}/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var N=r.Section=function(h){k(s,h);function s(u){var i;return i=h.call(this,u)||this,i.scrollableRef=void 0,i.scrollable=void 0,i.onScroll=void 0,i.scrollableHorizontal=void 0,i.scrollableRef=u.scrollableRef||(0,e.createRef)(),i.scrollable=u.scrollable,i.onScroll=u.onScroll,i.scrollableHorizontal=u.scrollableHorizontal,i}var l=s.prototype;return l.componentDidMount=function(){function u(){(this.scrollable||this.scrollableHorizontal)&&((0,t.addScrollableNode)(this.scrollableRef.current),this.onScroll&&this.scrollableRef.current&&(this.scrollableRef.current.onscroll=this.onScroll))}return u}(),l.componentWillUnmount=function(){function u(){(this.scrollable||this.scrollableHorizontal)&&(0,t.removeScrollableNode)(this.scrollableRef.current)}return u}(),l.render=function(){function u(){var i=this.props,c=i.className,d=i.title,p=i.buttons,v=i.fill,f=i.fitted,C=i.scrollable,b=i.scrollableHorizontal,g=i.flexGrow,y=i.noTopPadding,B=i.stretchContents,L=i.children,I=i.onScroll,w=V(i,m),T=(0,a.canRender)(d)||(0,a.canRender)(p);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Section",Byond.IS_LTE_IE8&&"Section--iefix",v&&"Section--fill",f&&"Section--fitted",C&&"Section--scrollable",b&&"Section--scrollableHorizontal",g&&"Section--flex",c,(0,o.computeBoxClassName)(w)]),[T&&(0,e.createVNode)(1,"div","Section__title",[(0,e.createVNode)(1,"span","Section__titleText",d,0),(0,e.createVNode)(1,"div","Section__buttons",p,0)],4),(0,e.createVNode)(1,"div","Section__rest",(0,e.createVNode)(1,"div",(0,a.classes)(["Section__content",!!B&&"Section__content--stretchContents",!!y&&"Section__content--noTopPadding"]),L,0,{onScroll:I},null,this.scrollableRef),0)],0,Object.assign({},(0,o.computeBoxProps)(w))))}return u}(),s}(e.Component)},72500:function(x,r,n){"use strict";r.__esModule=!0,r.Slider=void 0;var e=n(58734),a=n(5339),t=n(59641),o=n(65969),m=n(75318),V=n(4665),k=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children"];/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/function S(h,s){if(h==null)return{};var l={},u=Object.keys(h),i,c;for(c=0;c<u.length;c++)i=u[c],!(s.indexOf(i)>=0)&&(l[i]=h[i]);return l}var N=r.Slider=function(){function h(s){if(Byond.IS_LTE_IE8)return(0,e.normalizeProps)((0,e.createComponentVNode)(2,V.NumberInput,Object.assign({},s)));var l=s.animated,u=s.format,i=s.maxValue,c=s.minValue,d=s.onChange,p=s.onDrag,v=s.step,f=s.stepPixelSize,C=s.suppressFlicker,b=s.unit,g=s.value,y=s.className,B=s.fillValue,L=s.color,I=s.ranges,w=I===void 0?{}:I,T=s.children,M=S(s,k),A=T!==void 0;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.DraggableControl,Object.assign({dragMatrix:[1,0]},{animated:l,format:u,maxValue:i,minValue:c,onChange:d,onDrag:p,step:v,stepPixelSize:f,suppressFlicker:C,unit:b,value:g},{children:function(){function R(O){var _=O.dragging,P=O.editing,D=O.value,z=O.displayValue,U=O.displayElement,W=O.inputElement,K=O.handleDragStart,H=B!=null,Y=(0,a.scale)(D,c,i),J=(0,a.scale)(B!=null?B:z,c,i),q=(0,a.scale)(z,c,i),oe=L||(0,a.keyOfMatchingRange)(B!=null?B:D,w)||"default";return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Slider","ProgressBar","ProgressBar--color--"+oe,y,(0,o.computeBoxClassName)(M)]),[(0,e.createVNode)(1,"div",(0,t.classes)(["ProgressBar__fill",H&&"ProgressBar__fill--animated"]),null,1,{style:{width:(0,a.clamp01)(J)*100+"%",opacity:.4}}),(0,e.createVNode)(1,"div","ProgressBar__fill",null,1,{style:{width:(0,a.clamp01)(Math.min(J,q))*100+"%"}}),(0,e.createVNode)(1,"div","Slider__cursorOffset",[(0,e.createVNode)(1,"div","Slider__cursor"),(0,e.createVNode)(1,"div","Slider__pointer"),_&&(0,e.createVNode)(1,"div","Slider__popupValue",U,0)],0,{style:{width:(0,a.clamp01)(q)*100+"%"}}),(0,e.createVNode)(1,"div","ProgressBar__content",A?T:U,0),W],0,Object.assign({},(0,o.computeBoxProps)(M),{onMouseDown:K})))}return R}()})))}return h}()},70468:function(x,r,n){"use strict";r.__esModule=!0,r.Stack=void 0;var e=n(58734),a=n(59641),t=n(21456),o=["className","vertical","fill"],m=["className","innerRef"],V=["className","hidden"];/**
|
|
* @file
|
|
* @copyright 2021 Aleksej Komarov
|
|
* @license MIT
|
|
*/function k(s,l){if(s==null)return{};var u={},i=Object.keys(s),c,d;for(d=0;d<i.length;d++)c=i[d],!(l.indexOf(c)>=0)&&(u[c]=s[c]);return u}var S=r.Stack=function(){function s(l){var u=l.className,i=l.vertical,c=l.fill,d=k(l,o);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack",c&&"Stack--fill",i?"Stack--vertical":"Stack--horizontal",u,(0,t.computeFlexClassName)(l)]),null,1,Object.assign({},(0,t.computeFlexProps)(Object.assign({direction:i?"column":"row"},d)))))}return s}(),N=function(l){var u=l.className,i=l.innerRef,c=k(l,m);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack__item",u,(0,t.computeFlexItemClassName)(c)]),null,1,Object.assign({},(0,t.computeFlexItemProps)(c)),null,i))};S.Item=N;var h=function(l){var u=l.className,i=l.hidden,c=k(l,V);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack__item","Stack__divider",i&&"Stack__divider--hidden",u,(0,t.computeFlexItemClassName)(c)]),null,1,Object.assign({},(0,t.computeFlexItemProps)(c))))};S.Divider=h},86670:function(x,r,n){"use strict";r.__esModule=!0,r.StyleableSection=void 0;var e=n(58734),a=n(65969),t=r.StyleableSection=function(){function o(m){return(0,e.createComponentVNode)(2,a.Box,{style:m.style,children:[(0,e.createComponentVNode)(2,a.Box,{class:"Section__title",style:m.titleStyle,children:[(0,e.createComponentVNode)(2,a.Box,{class:"Section__titleText",style:m.textStyle,children:m.title}),(0,e.createVNode)(1,"div","Section__buttons",m.titleSubtext,0)]}),(0,e.createComponentVNode)(2,a.Box,{class:"Section__rest",children:(0,e.createComponentVNode)(2,a.Box,{class:"Section__content",children:m.children})})]})}return o}()},30204:function(x,r,n){"use strict";r.__esModule=!0,r.TableRow=r.TableCell=r.Table=void 0;var e=n(58734),a=n(59641),t=n(65969),o=["className","collapsing","children"],m=["className","header"],V=["className","collapsing","header"];/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/function k(s,l){if(s==null)return{};var u={},i=Object.keys(s),c,d;for(d=0;d<i.length;d++)c=i[d],!(l.indexOf(c)>=0)&&(u[c]=s[c]);return u}var S=r.Table=function(){function s(l){var u=l.className,i=l.collapsing,c=l.children,d=k(l,o);return(0,e.normalizeProps)((0,e.createVNode)(1,"table",(0,a.classes)(["Table",i&&"Table--collapsing",u,(0,t.computeBoxClassName)(d)]),(0,e.createVNode)(1,"tbody",null,c,0),2,Object.assign({},(0,t.computeBoxProps)(d))))}return s}();S.defaultHooks=a.pureComponentHooks;var N=r.TableRow=function(){function s(l){var u=l.className,i=l.header,c=k(l,m);return(0,e.normalizeProps)((0,e.createVNode)(1,"tr",(0,a.classes)(["Table__row",i&&"Table__row--header",u,(0,t.computeBoxClassName)(l)]),null,1,Object.assign({},(0,t.computeBoxProps)(c))))}return s}();N.defaultHooks=a.pureComponentHooks;var h=r.TableCell=function(){function s(l){var u=l.className,i=l.collapsing,c=l.header,d=k(l,V);return(0,e.normalizeProps)((0,e.createVNode)(1,"td",(0,a.classes)(["Table__cell",i&&"Table__cell--collapsing",c&&"Table__cell--header",u,(0,t.computeBoxClassName)(l)]),null,1,Object.assign({},(0,t.computeBoxProps)(d))))}return s}();h.defaultHooks=a.pureComponentHooks,S.Row=N,S.Cell=h},73392:function(x,r,n){"use strict";r.__esModule=!0,r.Tabs=void 0;var e=n(58734),a=n(59641),t=n(65969),o=n(61043),m=["className","vertical","fill","fluid","children"],V=["className","selected","color","icon","leftSlot","rightSlot","children"];/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/function k(h,s){if(h==null)return{};var l={},u=Object.keys(h),i,c;for(c=0;c<u.length;c++)i=u[c],!(s.indexOf(i)>=0)&&(l[i]=h[i]);return l}var S=r.Tabs=function(){function h(s){var l=s.className,u=s.vertical,i=s.fill,c=s.fluid,d=s.children,p=k(s,m);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Tabs",u?"Tabs--vertical":"Tabs--horizontal",i&&"Tabs--fill",c&&"Tabs--fluid",l,(0,t.computeBoxClassName)(p)]),d,0,Object.assign({},(0,t.computeBoxProps)(p))))}return h}(),N=function(s){var l=s.className,u=s.selected,i=s.color,c=s.icon,d=s.leftSlot,p=s.rightSlot,v=s.children,f=k(s,V);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Tab","Tabs__Tab","Tab--color--"+i,u&&"Tab--selected",l].concat((0,t.computeBoxClassName)(f))),[(0,a.canRender)(d)&&(0,e.createVNode)(1,"div","Tab__left",d,0)||!!c&&(0,e.createVNode)(1,"div","Tab__left",(0,e.createComponentVNode)(2,o.Icon,{name:c}),2),(0,e.createVNode)(1,"div","Tab__text",v,0),(0,a.canRender)(p)&&(0,e.createVNode)(1,"div","Tab__right",p,0)],0,Object.assign({},(0,t.computeBoxProps)(f))))};S.Tab=N},25220:function(x,r,n){"use strict";r.__esModule=!0,r.TextArea=void 0;var e=n(58734),a=n(59641),t=n(65969),o=n(16225),m=n(42678),V=["onChange","onKeyDown","onKeyPress","onInput","onFocus","onBlur","onEnter","value","maxLength","placeholder","scrollbar","noborder","displayedValue"],k=["className","fluid","nowrap"];function S(l,u){if(l==null)return{};var i={},c=Object.keys(l),d,p;for(p=0;p<c.length;p++)d=c[p],!(u.indexOf(d)>=0)&&(i[d]=l[d]);return i}function N(l,u){l.prototype=Object.create(u.prototype),l.prototype.constructor=l,h(l,u)}function h(l,u){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function i(c,d){return c.__proto__=d,c}return i}(),h(l,u)}/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @author Warlockd
|
|
* @license MIT
|
|
*/var s=r.TextArea=function(l){N(u,l);function u(c,d){var p;p=l.call(this,c,d)||this,p.textareaRef=c.innerRef||(0,e.createRef)(),p.state={editing:!1,scrolledAmount:0};var v=c.dontUseTabForIndent,f=v===void 0?!1:v;return p.handleOnInput=function(C){var b=p.state.editing,g=p.props.onInput;b||p.setEditing(!0),g&&g(C,C.target.value)},p.handleOnChange=function(C){var b=p.state.editing,g=p.props.onChange;b&&p.setEditing(!1),g&&g(C,C.target.value)},p.handleKeyPress=function(C){var b=p.state.editing,g=p.props.onKeyPress;b||p.setEditing(!0),g&&g(C,C.target.value)},p.handleKeyDown=function(C){var b=p.state.editing,g=p.props,y=g.onChange,B=g.onInput,L=g.onEnter,I=g.onKey;if(C.keyCode===m.KEY_ENTER){p.setEditing(!1),y&&y(C,C.target.value),B&&B(C,C.target.value),L&&L(C,C.target.value),p.props.selfClear&&(C.target.value="",C.target.blur());return}if(C.keyCode===m.KEY_ESCAPE){p.props.onEscape&&p.props.onEscape(C),p.setEditing(!1),p.props.selfClear?C.target.value="":(C.target.value=(0,o.toInputValue)(p.props.value),C.target.blur());return}if(b||p.setEditing(!0),I&&I(C,C.target.value),!f){var w=C.keyCode||C.which;if(w===m.KEY_TAB){C.preventDefault();var T=C.target,M=T.value,A=T.selectionStart,R=T.selectionEnd;C.target.value=M.substring(0,A)+" "+M.substring(R),C.target.selectionEnd=A+1,B&&B(C,C.target.value)}}},p.handleFocus=function(C){var b=p.state.editing;b||p.setEditing(!0)},p.handleBlur=function(C){var b=p.state.editing,g=p.props.onChange;b&&(p.setEditing(!1),g&&g(C,C.target.value))},p.handleScroll=function(C){var b=p.props.displayedValue,g=p.textareaRef.current;b&&g&&p.setState({scrolledAmount:g.scrollTop})},p}var i=u.prototype;return i.componentDidMount=function(){function c(){var d=this,p=this.props.value,v=this.textareaRef.current;v&&(v.value=(0,o.toInputValue)(p)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){v.focus(),d.props.autoSelect&&v.select()},1)}return c}(),i.componentDidUpdate=function(){function c(d,p){var v=d.value,f=this.props.value,C=this.textareaRef.current;C&&typeof f=="string"&&v!==f&&(C.value=(0,o.toInputValue)(f))}return c}(),i.setEditing=function(){function c(d){this.setState({editing:d})}return c}(),i.getValue=function(){function c(){return this.textareaRef.current&&this.textareaRef.current.value}return c}(),i.render=function(){function c(){var d=this.props,p=d.onChange,v=d.onKeyDown,f=d.onKeyPress,C=d.onInput,b=d.onFocus,g=d.onBlur,y=d.onEnter,B=d.value,L=d.maxLength,I=d.placeholder,w=d.scrollbar,T=d.noborder,M=d.displayedValue,A=S(d,V),R=A.className,O=A.fluid,_=A.nowrap,P=S(A,k),D=this.state.scrolledAmount;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["TextArea",O&&"TextArea--fluid",T&&"TextArea--noborder",R])},P,{children:[!!M&&(0,e.createComponentVNode)(2,t.Box,{position:"absolute",width:"100%",height:"100%",overflow:"hidden",children:(0,e.createVNode)(1,"div",(0,a.classes)(["TextArea__textarea","TextArea__textarea_custom"]),M,0,{style:{transform:"translateY(-"+D+"px)"}})}),(0,e.createVNode)(128,"textarea",(0,a.classes)(["TextArea__textarea",w&&"TextArea__textarea--scrollable",_&&"TextArea__nowrap"]),null,1,{placeholder:I,onChange:this.handleOnChange,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onInput:this.handleOnInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onScroll:this.handleScroll,maxLength:L,style:{color:M?"rgba(0, 0, 0, 0)":"inherit"}},null,this.textareaRef)]})))}return c}(),u}(e.Component)},45072:function(x,r,n){"use strict";r.__esModule=!0,r.TimeDisplay=void 0;var e=n(43820),a=n(58734);function t(k,S){k.prototype=Object.create(S.prototype),k.prototype.constructor=k,o(k,S)}function o(k,S){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function N(h,s){return h.__proto__=s,h}return N}(),o(k,S)}var m=function(S){return typeof S=="number"&&Number.isFinite(S)&&!Number.isNaN(S)},V=r.TimeDisplay=function(k){t(S,k);function S(h){var s;return s=k.call(this,h)||this,s.timer=null,s.last_seen_value=void 0,s.state={value:0},m(h.value)&&(s.state.value=Number(h.value),s.last_seen_value=Number(h.value)),s}var N=S.prototype;return N.componentDidUpdate=function(){function h(){var s=this;this.props.auto!==void 0&&(clearInterval(this.timer),this.timer=setInterval(function(){return s.tick()},1e3))}return h}(),N.tick=function(){function h(){var s=Number(this.state.value);this.props.value!==this.last_seen_value&&(this.last_seen_value=this.props.value,s=this.props.value);var l=this.props.auto==="up"?10:-10,u=Math.max(0,s+l);this.setState({value:u})}return h}(),N.componentDidMount=function(){function h(){var s=this;this.props.auto!==void 0&&(this.timer=setInterval(function(){return s.tick()},1e3))}return h}(),N.componentWillUnmount=function(){function h(){clearInterval(this.timer)}return h}(),N.render=function(){function h(){var s=this.state.value;return m(s)?(0,e.formatTime)(s):this.state.value||null}return h}(),S}(a.Component)},23512:function(x,r,n){"use strict";r.__esModule=!0,r.Tooltip=void 0;var e=n(58734),a=n(92935),t;function o(N,h){N.prototype=Object.create(h.prototype),N.prototype.constructor=N,m(N,h)}function m(N,h){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function s(l,u){return l.__proto__=u,l}return s}(),m(N,h)}var V={modifiers:[{name:"eventListeners",enabled:!1}]},k={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function N(){return null}return N}()},S=r.Tooltip=function(N){o(h,N);function h(){return N.apply(this,arguments)||this}var s=h.prototype;return s.getDOMNode=function(){function l(){return(0,e.findDOMfromVNode)(this.$LI,!0)}return l}(),s.componentDidMount=function(){function l(){var u=this,i=this.getDOMNode();i&&(i.addEventListener("mouseenter",function(){var c=h.renderedTooltip;c===void 0&&(c=document.createElement("div"),c.className="Tooltip",document.body.appendChild(c),h.renderedTooltip=c),h.currentHoveredElement=i,c.style.opacity="1",u.renderPopperContent()}),i.addEventListener("mouseleave",function(){u.fadeOut()}))}return l}(),s.fadeOut=function(){function l(){h.currentHoveredElement===this.getDOMNode()&&(h.currentHoveredElement=void 0,h.renderedTooltip.style.opacity="0")}return l}(),s.renderPopperContent=function(){function l(){var u=this,i=h.renderedTooltip;i&&(0,e.render)((0,e.createVNode)(1,"span",null,this.props.content,0),i,function(){var c=h.singletonPopper;c===void 0?(c=(0,a.createPopper)(h.virtualElement,i,Object.assign({},V,{placement:u.props.position||"auto"})),h.singletonPopper=c):(c.setOptions(Object.assign({},V,{placement:u.props.position||"auto"})),c.update())},this.context)}return l}(),s.componentDidUpdate=function(){function l(){h.currentHoveredElement===this.getDOMNode()&&this.renderPopperContent()}return l}(),s.componentWillUnmount=function(){function l(){this.fadeOut()}return l}(),s.render=function(){function l(){return this.props.children}return l}(),h}(e.Component);t=S,S.renderedTooltip=void 0,S.singletonPopper=void 0,S.currentHoveredElement=void 0,S.virtualElement={getBoundingClientRect:function(){function N(){var h,s;return(h=(s=t.currentHoveredElement)==null?void 0:s.getBoundingClientRect())!=null?h:k}return N}()}},4827:function(x,r,n){"use strict";r.__esModule=!0,r.TrackOutsideClicks=void 0;var e=n(58734);function a(V){if(V===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return V}function t(V,k){V.prototype=Object.create(k.prototype),V.prototype.constructor=V,o(V,k)}function o(V,k){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function S(N,h){return N.__proto__=h,N}return S}(),o(V,k)}var m=r.TrackOutsideClicks=function(V){t(k,V);function k(){var N;return N=V.call(this)||this,N.ref=(0,e.createRef)(),N.handleOutsideClick=N.handleOutsideClick.bind(a(N)),document.addEventListener("click",N.handleOutsideClick),N}var S=k.prototype;return S.componentWillUnmount=function(){function N(){document.removeEventListener("click",this.handleOutsideClick)}return N}(),S.handleOutsideClick=function(){function N(h){h.target instanceof Node&&this.ref.current&&!this.ref.current.contains(h.target)&&this.props.onOutsideClick()}return N}(),S.render=function(){function N(){return(0,e.createVNode)(1,"div",null,this.props.children,0,null,null,this.ref)}return N}(),k}(e.Component)},11790:function(x,r,n){"use strict";r.__esModule=!0,r.TrackOutsideClicks=r.Tooltip=r.TimeDisplay=r.TextArea=r.Tabs=r.Table=r.StyleableSection=r.Stack=r.Slider=r.Section=r.RoundGauge=r.RestrictedInput=r.ProgressBar=r.Popper=r.NumberInput=r.NoticeBox=r.Modal=r.MenuBar=r.LabeledList=r.LabeledControls=r.Knob=r.KeyListener=r.Input=r.InfinitePlane=r.Icon=r.Grid=r.Flex=r.FitText=r.Dropdown=r.DraggableControl=r.Divider=r.Dimmer=r.Dialog=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(12451);r.AnimatedNumber=e.AnimatedNumber;var a=n(36310);r.Autofocus=a.Autofocus;var t=n(80457);r.Blink=t.Blink;var o=n(8564);r.BlockQuote=o.BlockQuote;var m=n(65969);r.Box=m.Box;var V=n(58170);r.Button=V.Button;var k=n(21396);r.ByondUi=k.ByondUi;var S=n(6020);r.Chart=S.Chart;var N=n(97069);r.Collapsible=N.Collapsible;var h=n(72203);r.ColorBox=h.ColorBox;var s=n(62887);r.Dimmer=s.Dimmer;var l=n(759);r.Divider=l.Divider;var u=n(75318);r.DraggableControl=u.DraggableControl;var i=n(51413);r.Dropdown=i.Dropdown;var c=n(21456);r.Flex=c.Flex;var d=n(7764);r.FitText=d.FitText;var p=n(17268);r.Grid=p.Grid;var v=n(61043);r.Icon=v.Icon;var f=n(35695);r.InfinitePlane=f.InfinitePlane;var C=n(16225);r.Input=C.Input;var b=n(76844);r.KeyListener=b.KeyListener;var g=n(10869);r.Knob=g.Knob;var y=n(515);r.LabeledControls=y.LabeledControls;var B=n(84867);r.LabeledList=B.LabeledList;var L=n(34927);r.MenuBar=L.MenuBar;var I=n(39539);r.Modal=I.Modal;var w=n(24808);r.NoticeBox=w.NoticeBox;var T=n(4665);r.NumberInput=T.NumberInput;var M=n(83550);r.ProgressBar=M.ProgressBar;var A=n(38221);r.Popper=A.Popper;var R=n(18918);r.RestrictedInput=R.RestrictedInput;var O=n(38818);r.RoundGauge=O.RoundGauge;var _=n(41355);r.Section=_.Section;var P=n(72500);r.Slider=P.Slider;var D=n(86670);r.StyleableSection=D.StyleableSection;var z=n(70468);r.Stack=z.Stack;var U=n(30204);r.Table=U.Table;var W=n(73392);r.Tabs=W.Tabs;var K=n(25220);r.TextArea=K.TextArea;var H=n(45072);r.TimeDisplay=H.TimeDisplay;var Y=n(4827);r.TrackOutsideClicks=Y.TrackOutsideClicks;var J=n(23512);r.Tooltip=J.Tooltip;var q=n(29532);r.Dialog=q.Dialog},78419:function(x,r){"use strict";r.__esModule=!0,r.getGasLabel=r.getGasFromId=r.getGasColor=r.UI_UPDATE=r.UI_INTERACTIVE=r.UI_DISABLED=r.UI_CLOSE=r.T0C=r.RADIO_CHANNELS=r.CSS_COLORS=r.COLORS=void 0;/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var n=r.T0C=273.15,e=r.UI_INTERACTIVE=2,a=r.UI_UPDATE=1,t=r.UI_DISABLED=0,o=r.UI_CLOSE=-1,m=r.COLORS={department:{captain:"#c06616",security:"#e74c3c",medbay:"#3498db",science:"#9b59b6",engineering:"#f1c40f",cargo:"#f39c12",centcom:"#00c100",other:"#c38312"},manifest:{command:"#3333FF",security:"#8e0000",medical:"#006600",engineering:"#b27300",science:"#a65ba6",cargo:"#bb9040",planetside:"#555555",civilian:"#a32800",miscellaneous:"#666666",silicon:"#222222"},damageType:{oxy:"#3498db",toxin:"#2ecc71",burn:"#e67e22",brute:"#e74c3c"},reagent:{acidicbuffer:"#fbc314",basicbuffer:"#3853a4"}},V=r.CSS_COLORS=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"],k=r.RADIO_CHANNELS=[{name:"Mercenary",freq:1213,color:"#6D3F40"},{name:"Raider",freq:1277,color:"#6D3F40"},{name:"Special Ops",freq:1341,color:"#5C5C8A"},{name:"AI Private",freq:1343,color:"#FF00FF"},{name:"Response Team",freq:1345,color:"#5C5C8A"},{name:"Supply",freq:1347,color:"#5F4519"},{name:"Service",freq:1349,color:"#6eaa2c"},{name:"Science",freq:1351,color:"#993399"},{name:"Command",freq:1353,color:"#193A7A"},{name:"Medical",freq:1355,color:"#008160"},{name:"Engineering",freq:1357,color:"#A66300"},{name:"Security",freq:1359,color:"#A30000"},{name:"Explorer",freq:1361,color:"#555555"},{name:"Talon",freq:1363,color:"#555555"},{name:"Common",freq:1459,color:"#008000"},{name:"Entertainment",freq:1461,color:"#339966"},{name:"Security(I)",freq:1475,color:"#008000"},{name:"Medical(I)",freq:1485,color:"#008000"}],S=[{id:"oxygen",name:"Oxygen",label:"O\u2082",color:"blue"},{id:"nitrogen",name:"Nitrogen",label:"N\u2082",color:"green"},{id:"carbon_dioxide",name:"Carbon Dioxide",label:"CO\u2082",color:"grey"},{id:"phoron",name:"Phoron",label:"Phoron",color:"pink"},{id:"volatile_fuel",name:"Volatile Fuel",label:"EXP",color:"teal"},{id:"nitrous_oxide",name:"Nitrous Oxide",label:"N\u2082O",color:"red"},{id:"other",name:"Other",label:"Other",color:"white"},{id:"pressure",name:"Pressure",label:"Pressure",color:"average"},{id:"temperature",name:"Temperature",label:"Temperature",color:"yellow"}],N=r.getGasLabel=function(){function l(u,i){if(!u)return i||"None";for(var c=u.toLowerCase(),d=u.replace(/(^\w{1})|(\s+\w{1})/g,function(v){return v.toUpperCase()}),p=0;p<S.length;p++)if(S[p].id===c||S[p].name===d)return S[p].label;return i||"None"}return l}(),h=r.getGasColor=function(){function l(u){if(!u)return"black";for(var i=u.toLowerCase(),c=u.replace(/(^\w{1})|(\s+\w{1})/g,function(p){return p.toUpperCase()}),d=0;d<S.length;d++)if(S[d].id===i||S[d].name===c)return S[d].color;return"black"}return l}(),s=r.getGasFromId=function(){function l(u){if(u){for(var i=u.toLowerCase(),c=u.replace(/(^\w{1})|(\s+\w{1})/g,function(p){return p.toUpperCase()}),d=0;d<S.length;d++)if(S[d].id===i||S[d].name===c)return S[d]}}return l}()},65856:function(x,r,n){"use strict";r.__esModule=!0,r.KitchenSink=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477);/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var m=n(27772),V=function(){return m.keys().map(function(N){return m(N)})},k=r.KitchenSink=function(){function S(N,h){var s=N.panel,l=(0,a.useLocalState)(h,"kitchenSinkTheme"),u=l[0],i=(0,a.useLocalState)(h,"pageIndex",0),c=i[0],d=i[1],p=V(),v=p[c],f=s?o.Pane:o.Window;return(0,e.createComponentVNode)(2,f,{title:"Kitchen Sink",width:600,height:500,theme:u,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{m:1,mr:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:p.map(function(C,b){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{color:"transparent",selected:b===c,onClick:function(){function g(){return d(b)}return g}(),children:C.meta.title},b)})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{position:"relative",grow:1,children:(0,e.createComponentVNode)(2,f.Content,{scrollable:!0,children:v.meta.render()})})]})})}return S}()},90525:function(x,r,n){"use strict";r.__esModule=!0,r.toggleKitchenSink=r.toggleDebugLayout=r.openExternalBrowser=void 0;var e=n(32289);/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var a=r.toggleKitchenSink=(0,e.createAction)("debug/toggleKitchenSink"),t=r.toggleDebugLayout=(0,e.createAction)("debug/toggleDebugLayout"),o=r.openExternalBrowser=(0,e.createAction)("debug/openExternalBrowser")},33829:function(x,r,n){"use strict";r.__esModule=!0,r.useDebug=void 0;var e=n(32289),a=n(76978);/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var t=r.useDebug=function(){function o(m){return(0,e.useSelector)(m,a.selectDebug)}return o}()},89402:function(x,r,n){"use strict";r.__esModule=!0,r.useDebug=r.relayMiddleware=r.debugReducer=r.debugMiddleware=r.KitchenSink=void 0;var e=n(33829);r.useDebug=e.useDebug;var a=n(65856);r.KitchenSink=a.KitchenSink;var t=n(75426);r.debugMiddleware=t.debugMiddleware,r.relayMiddleware=t.relayMiddleware;var o=n(76281);r.debugReducer=o.debugReducer},75426:function(x,r,n){"use strict";r.__esModule=!0,r.relayMiddleware=r.debugMiddleware=void 0;var e=n(42678),a=n(80835),t=n(73764),o=n(90525);/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var m=["backend/update","chat/message"],V=r.debugMiddleware=function(){function S(N){return(0,t.acquireHotKey)(e.KEY_F11),(0,t.acquireHotKey)(e.KEY_F12),a.globalEvents.on("keydown",function(h){h.code===e.KEY_F11&&N.dispatch((0,o.toggleDebugLayout)()),h.code===e.KEY_F12&&N.dispatch((0,o.toggleKitchenSink)()),h.ctrl&&h.alt&&h.code===e.KEY_BACKSPACE&&setTimeout(function(){throw new Error("OOPSIE WOOPSIE!! UwU We made a fucky wucky!! A wittle fucko boingo! The code monkeys at our headquarters are working VEWY HAWD to fix this!")})}),function(h){return function(s){return h(s)}}}return S}(),k=r.relayMiddleware=function(){function S(N){var h=n(60207),s=location.search==="?external";return s?h.subscribe(function(l){var u=l.type,i=l.payload;u==="relay"&&i.windowId===Byond.windowId&&N.dispatch(Object.assign({},i.action,{relayed:!0}))}):((0,t.acquireHotKey)(e.KEY_F10),a.globalEvents.on("keydown",function(l){l===e.KEY_F10&&N.dispatch((0,o.openExternalBrowser)())})),function(l){return function(u){var i=u.type,c=u.payload,d=u.relayed;if(i===o.openExternalBrowser.type){window.open(location.href+"?external","_blank");return}return m.includes(i)&&!d&&!s&&h.sendMessage({type:"relay",payload:{windowId:Byond.windowId,action:u}}),l(u)}}}return S}()},76281:function(x,r){"use strict";r.__esModule=!0,r.debugReducer=void 0;/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var n=r.debugReducer=function(){function e(a,t){a===void 0&&(a={});var o=t.type,m=t.payload;return o==="debug/toggleKitchenSink"?Object.assign({},a,{kitchenSink:!a.kitchenSink}):o==="debug/toggleDebugLayout"?Object.assign({},a,{debugLayout:!a.debugLayout}):a}return e}()},76978:function(x,r){"use strict";r.__esModule=!0,r.selectDebug=void 0;/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var n=r.selectDebug=function(){function e(a){return a.debug}return e}()},59509:function(x,r,n){"use strict";r.__esModule=!0,r.touchRecents=r.setupDrag=r.setWindowKey=r.resizeStartHandler=r.recallWindowGeometry=r.getWindowSize=r.getWindowPosition=r.dragStartHandler=void 0;var e=n(13212),a=n(66905),t=n(22800),o;/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/function m(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */m=function(){return W};var U,W={},K=Object.prototype,H=K.hasOwnProperty,Y=Object.defineProperty||function(de,ge,j){de[ge]=j.value},J=typeof Symbol=="function"?Symbol:{},q=J.iterator||"@@iterator",oe=J.asyncIterator||"@@asyncIterator",ae=J.toStringTag||"@@toStringTag";function le(de,ge,j){return Object.defineProperty(de,ge,{value:j,enumerable:!0,configurable:!0,writable:!0}),de[ge]}try{le({},"")}catch(de){le=function(j,ue,be){return j[ue]=be}}function he(de,ge,j,ue){var be=ge&&ge.prototype instanceof Ce?ge:Ce,ke=Object.create(be.prototype),Te=new Ae(ue||[]);return Y(ke,"_invoke",{value:ve(de,j,Te)}),ke}function me(de,ge,j){try{return{type:"normal",arg:de.call(ge,j)}}catch(ue){return{type:"throw",arg:ue}}}W.wrap=he;var Be="suspendedStart",ce="suspendedYield",te="executing",ee="completed",ie={};function Ce(){}function Se(){}function we(){}var pe={};le(pe,q,function(){return this});var E=Object.getPrototypeOf,Z=E&&E(E(Oe([])));Z&&Z!==K&&H.call(Z,q)&&(pe=Z);var re=we.prototype=Ce.prototype=Object.create(pe);function X(de){["next","throw","return"].forEach(function(ge){le(de,ge,function(j){return this._invoke(ge,j)})})}function ne(de,ge){function j(be,ke,Te,Ee){var Re=me(de[be],de,ke);if(Re.type!=="throw"){var _e=Re.arg,De=_e.value;return De&&typeof De=="object"&&H.call(De,"__await")?ge.resolve(De.__await).then(function(Ue){j("next",Ue,Te,Ee)},function(Ue){j("throw",Ue,Te,Ee)}):ge.resolve(De).then(function(Ue){_e.value=Ue,Te(_e)},function(Ue){return j("throw",Ue,Te,Ee)})}Ee(Re.arg)}var ue;Y(this,"_invoke",{value:function(){function be(ke,Te){function Ee(){return new ge(function(Re,_e){j(ke,Te,Re,_e)})}return ue=ue?ue.then(Ee,Ee):Ee()}return be}()})}function ve(de,ge,j){var ue=Be;return function(be,ke){if(ue===te)throw new Error("Generator is already running");if(ue===ee){if(be==="throw")throw ke;return{value:U,done:!0}}for(j.method=be,j.arg=ke;;){var Te=j.delegate;if(Te){var Ee=Ve(Te,j);if(Ee){if(Ee===ie)continue;return Ee}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(ue===Be)throw ue=ee,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);ue=te;var Re=me(de,ge,j);if(Re.type==="normal"){if(ue=j.done?ee:ce,Re.arg===ie)continue;return{value:Re.arg,done:j.done}}Re.type==="throw"&&(ue=ee,j.method="throw",j.arg=Re.arg)}}}function Ve(de,ge){var j=ge.method,ue=de.iterator[j];if(ue===U)return ge.delegate=null,j==="throw"&&de.iterator.return&&(ge.method="return",ge.arg=U,Ve(de,ge),ge.method==="throw")||j!=="return"&&(ge.method="throw",ge.arg=new TypeError("The iterator does not provide a '"+j+"' method")),ie;var be=me(ue,de.iterator,ge.arg);if(be.type==="throw")return ge.method="throw",ge.arg=be.arg,ge.delegate=null,ie;var ke=be.arg;return ke?ke.done?(ge[de.resultName]=ke.value,ge.next=de.nextLoc,ge.method!=="return"&&(ge.method="next",ge.arg=U),ge.delegate=null,ie):ke:(ge.method="throw",ge.arg=new TypeError("iterator result is not an object"),ge.delegate=null,ie)}function Ie(de){var ge={tryLoc:de[0]};1 in de&&(ge.catchLoc=de[1]),2 in de&&(ge.finallyLoc=de[2],ge.afterLoc=de[3]),this.tryEntries.push(ge)}function Pe(de){var ge=de.completion||{};ge.type="normal",delete ge.arg,de.completion=ge}function Ae(de){this.tryEntries=[{tryLoc:"root"}],de.forEach(Ie,this),this.reset(!0)}function Oe(de){if(de||de===""){var ge=de[q];if(ge)return ge.call(de);if(typeof de.next=="function")return de;if(!isNaN(de.length)){var j=-1,ue=function(){function be(){for(;++j<de.length;)if(H.call(de,j))return be.value=de[j],be.done=!1,be;return be.value=U,be.done=!0,be}return be}();return ue.next=ue}}throw new TypeError(typeof de+" is not iterable")}return Se.prototype=we,Y(re,"constructor",{value:we,configurable:!0}),Y(we,"constructor",{value:Se,configurable:!0}),Se.displayName=le(we,ae,"GeneratorFunction"),W.isGeneratorFunction=function(de){var ge=typeof de=="function"&&de.constructor;return!!ge&&(ge===Se||(ge.displayName||ge.name)==="GeneratorFunction")},W.mark=function(de){return Object.setPrototypeOf?Object.setPrototypeOf(de,we):(de.__proto__=we,le(de,ae,"GeneratorFunction")),de.prototype=Object.create(re),de},W.awrap=function(de){return{__await:de}},X(ne.prototype),le(ne.prototype,oe,function(){return this}),W.AsyncIterator=ne,W.async=function(de,ge,j,ue,be){be===void 0&&(be=Promise);var ke=new ne(he(de,ge,j,ue),be);return W.isGeneratorFunction(ge)?ke:ke.next().then(function(Te){return Te.done?Te.value:ke.next()})},X(re),le(re,ae,"Generator"),le(re,q,function(){return this}),le(re,"toString",function(){return"[object Generator]"}),W.keys=function(de){var ge=Object(de),j=[];for(var ue in ge)j.push(ue);return j.reverse(),function(){function be(){for(;j.length;){var ke=j.pop();if(ke in ge)return be.value=ke,be.done=!1,be}return be.done=!0,be}return be}()},W.values=Oe,Ae.prototype={constructor:Ae,reset:function(){function de(ge){if(this.prev=0,this.next=0,this.sent=this._sent=U,this.done=!1,this.delegate=null,this.method="next",this.arg=U,this.tryEntries.forEach(Pe),!ge)for(var j in this)j.charAt(0)==="t"&&H.call(this,j)&&!isNaN(+j.slice(1))&&(this[j]=U)}return de}(),stop:function(){function de(){this.done=!0;var ge=this.tryEntries[0].completion;if(ge.type==="throw")throw ge.arg;return this.rval}return de}(),dispatchException:function(){function de(ge){if(this.done)throw ge;var j=this;function ue(_e,De){return Te.type="throw",Te.arg=ge,j.next=_e,De&&(j.method="next",j.arg=U),!!De}for(var be=this.tryEntries.length-1;be>=0;--be){var ke=this.tryEntries[be],Te=ke.completion;if(ke.tryLoc==="root")return ue("end");if(ke.tryLoc<=this.prev){var Ee=H.call(ke,"catchLoc"),Re=H.call(ke,"finallyLoc");if(Ee&&Re){if(this.prev<ke.catchLoc)return ue(ke.catchLoc,!0);if(this.prev<ke.finallyLoc)return ue(ke.finallyLoc)}else if(Ee){if(this.prev<ke.catchLoc)return ue(ke.catchLoc,!0)}else{if(!Re)throw new Error("try statement without catch or finally");if(this.prev<ke.finallyLoc)return ue(ke.finallyLoc)}}}}return de}(),abrupt:function(){function de(ge,j){for(var ue=this.tryEntries.length-1;ue>=0;--ue){var be=this.tryEntries[ue];if(be.tryLoc<=this.prev&&H.call(be,"finallyLoc")&&this.prev<be.finallyLoc){var ke=be;break}}ke&&(ge==="break"||ge==="continue")&&ke.tryLoc<=j&&j<=ke.finallyLoc&&(ke=null);var Te=ke?ke.completion:{};return Te.type=ge,Te.arg=j,ke?(this.method="next",this.next=ke.finallyLoc,ie):this.complete(Te)}return de}(),complete:function(){function de(ge,j){if(ge.type==="throw")throw ge.arg;return ge.type==="break"||ge.type==="continue"?this.next=ge.arg:ge.type==="return"?(this.rval=this.arg=ge.arg,this.method="return",this.next="end"):ge.type==="normal"&&j&&(this.next=j),ie}return de}(),finish:function(){function de(ge){for(var j=this.tryEntries.length-1;j>=0;--j){var ue=this.tryEntries[j];if(ue.finallyLoc===ge)return this.complete(ue.completion,ue.afterLoc),Pe(ue),ie}}return de}(),catch:function(){function de(ge){for(var j=this.tryEntries.length-1;j>=0;--j){var ue=this.tryEntries[j];if(ue.tryLoc===ge){var be=ue.completion;if(be.type==="throw"){var ke=be.arg;Pe(ue)}return ke}}throw new Error("illegal catch attempt")}return de}(),delegateYield:function(){function de(ge,j,ue){return this.delegate={iterator:Oe(ge),resultName:j,nextLoc:ue},this.method==="next"&&(this.arg=U),ie}return de}()},W}function V(U,W,K,H,Y,J,q){try{var oe=U[J](q),ae=oe.value}catch(le){K(le);return}oe.done?W(ae):Promise.resolve(ae).then(H,Y)}function k(U){return function(){var W=this,K=arguments;return new Promise(function(H,Y){var J=U.apply(W,K);function q(ae){V(J,H,Y,q,oe,"next",ae)}function oe(ae){V(J,H,Y,q,oe,"throw",ae)}q(void 0)})}}var S=(0,a.createLogger)("drag"),N=(o=window.devicePixelRatio)!=null?o:1,h=Byond.windowId,s=!1,l=!1,u=[0,0],i,c,d,p,v,f=r.setWindowKey=function(){function U(W){h=W}return U}(),C=r.getWindowPosition=function(){function U(){return[window.screenLeft*N,window.screenTop*N]}return U}(),b=r.getWindowSize=function(){function U(){return[window.innerWidth*N,window.innerHeight*N]}return U}(),g=function(W){var K=(0,e.vecAdd)(W,u);return Byond.winset(Byond.windowId,{pos:K[0]+","+K[1]})},y=function(W){return Byond.winset(Byond.windowId,{size:W[0]+"x"+W[1]})},B=function(){return[0-u[0],0-u[1]]},L=function(){return[window.screen.availWidth*N,window.screen.availHeight*N]},I=r.touchRecents=function(){function U(W,K,H){H===void 0&&(H=50);for(var Y=[K],J,q=0;q<W.length;q++){var oe=W[q];oe!==K&&(Y.length<H?Y.push(oe):J=oe)}return[Y,J]}return U}(),w=function(){var U=k(m().mark(function(){function W(){var K,H,Y,J;return m().wrap(function(){function q(oe){for(;;)switch(oe.prev=oe.next){case 0:return S.log("storing geometry"),K={pos:C(),size:b()},t.storage.set(h,K),oe.t0=I,oe.next=6,t.storage.get("geometries");case 6:if(oe.t1=oe.sent,oe.t1){oe.next=9;break}oe.t1=[];case 9:oe.t2=oe.t1,oe.t3=h,H=(0,oe.t0)(oe.t2,oe.t3),Y=H[0],J=H[1],J&&t.storage.remove(J),t.storage.set("geometries",Y);case 16:case"end":return oe.stop()}}return q}(),W)}return W}()));return function(){function W(){return U.apply(this,arguments)}return W}()}(),T=r.recallWindowGeometry=function(){var U=k(m().mark(function(){function W(K){var H,Y,J,q;return m().wrap(function(){function oe(ae){for(;;)switch(ae.prev=ae.next){case 0:if(K===void 0&&(K={}),ae.t0=K.fancy,!ae.t0){ae.next=6;break}return ae.next=5,t.storage.get(h);case 5:ae.t0=ae.sent;case 6:return H=ae.t0,H&&S.log("recalled geometry:",H),Y=(H==null?void 0:H.pos)||K.pos,J=K.size,J&&(J=[J[0]*N,J[1]*N]),ae.next=13,i;case 13:q=L(),J&&(J=[Math.min(q[0],J[0]),Math.min(q[1],J[1])],y(J)),Y?(J&&K.locked&&(Y=A(Y,J)[1]),g(Y)):J&&(Y=(0,e.vecAdd)((0,e.vecScale)(q,.5),(0,e.vecScale)(J,-.5),(0,e.vecScale)(u,-1)),g(Y));case 16:case"end":return ae.stop()}}return oe}(),W)}return W}()));return function(){function W(K){return U.apply(this,arguments)}return W}()}(),M=r.setupDrag=function(){var U=k(m().mark(function(){function W(){var K;return m().wrap(function(){function H(Y){for(;;)switch(Y.prev=Y.next){case 0:return K=C(),i=Byond.winget(Byond.windowId,"pos").then(function(J){return[J.x-K[0],J.y-K[1]]}),Y.next=4,i;case 4:u=Y.sent,S.debug("screen offset",u);case 6:case"end":return Y.stop()}}return H}(),W)}return W}()));return function(){function W(){return U.apply(this,arguments)}return W}()}(),A=function(W,K){for(var H=B(),Y=L(),J=[W[0],W[1]],q=!1,oe=0;oe<2;oe++){var ae=H[oe],le=H[oe]+Y[oe];W[oe]<ae?(J[oe]=ae,q=!0):W[oe]+K[oe]>le&&(J[oe]=le-K[oe],q=!0)}return[q,J]},R=r.dragStartHandler=function(){function U(W){var K;S.log("drag start"),s=!0,c=(0,e.vecSubtract)([W.screenX,W.screenY],C()),(K=W.target)==null||K.focus(),document.addEventListener("mousemove",_),document.addEventListener("mouseup",O),_(W)}return U}(),O=function U(W){S.log("drag end"),_(W),document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",U),s=!1,w()},_=function(W){s&&(W.preventDefault(),g((0,e.vecSubtract)([W.screenX,W.screenY],c)))},P=r.resizeStartHandler=function(){function U(W,K){return function(H){var Y;d=[W,K],S.log("resize start",d),l=!0,c=(0,e.vecSubtract)([H.screenX,H.screenY],C()),p=b(),(Y=H.target)==null||Y.focus(),document.addEventListener("mousemove",z),document.addEventListener("mouseup",D),z(H)}}return U}(),D=function U(W){S.log("resize end",v),z(W),document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",U),l=!1,w()},z=function(W){if(l){W.preventDefault();var K=(0,e.vecSubtract)([W.screenX,W.screenY],C()),H=(0,e.vecSubtract)(K,c);v=(0,e.vecAdd)(p,(0,e.vecMultiply)(d,H),[1,1]),v[0]=Math.max(v[0],150*N),v[1]=Math.max(v[1],50*N),y(v)}}},80835:function(x,r,n){"use strict";r.__esModule=!0,r.setupGlobalEvents=r.removeScrollableNode=r.globalEvents=r.canStealFocus=r.addScrollableNode=r.KeyEvent=void 0;var e=n(42678),a=n(20474);/**
|
|
* Normalized browser focus events and BYOND-specific focus helpers.
|
|
*
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var t=r.globalEvents=new a.EventEmitter,o=!1,m=r.setupGlobalEvents=function(){function b(g){g===void 0&&(g={}),o=!!g.ignoreWindowFocus}return b}(),V,k=!0,S=function b(g,y){if(o){k=!0;return}if(V&&(clearTimeout(V),V=null),y){V=setTimeout(function(){return b(g)});return}k!==g&&(k=g,t.emit(g?"window-focus":"window-blur"),t.emit("window-focus-change",g))},N=null,h=r.canStealFocus=function(){function b(g){var y=String(g.tagName).toLowerCase();return y==="input"||y==="textarea"}return b}(),s=function(g){l(),N=g,N.addEventListener("blur",l)},l=function b(){N&&(N.removeEventListener("blur",b),N=null)},u=null,i=null,c=[],d=r.addScrollableNode=function(){function b(g){c.push(g)}return b}(),p=r.removeScrollableNode=function(){function b(g){var y=c.indexOf(g);y>=0&&c.splice(y,1)}return b}(),v=function(g){if(!(N||!k))for(var y=document.body;g&&g!==y;){if(c.includes(g)){if(g.contains(u))return;u=g,g.focus();return}g=g.parentElement}};window.addEventListener("mousemove",function(b){var g=b.target;g!==i&&(i=g,v(g))}),window.addEventListener("focusin",function(b){if(i=null,u=b.target,S(!0),h(b.target)){s(b.target);return}}),window.addEventListener("focusout",function(b){i=null,S(!1,!0)}),window.addEventListener("blur",function(b){i=null,S(!1,!0)}),window.addEventListener("beforeunload",function(b){S(!1)});var f={},C=r.KeyEvent=function(){function b(y,B,L){this.event=void 0,this.type=void 0,this.code=void 0,this.ctrl=void 0,this.shift=void 0,this.alt=void 0,this.repeat=void 0,this._str=void 0,this.event=y,this.type=B,this.code=y.keyCode,this.ctrl=y.ctrlKey,this.shift=y.shiftKey,this.alt=y.altKey,this.repeat=!!L}var g=b.prototype;return g.hasModifierKeys=function(){function y(){return this.ctrl||this.alt||this.shift}return y}(),g.isModifierKey=function(){function y(){return this.code===e.KEY_CTRL||this.code===e.KEY_SHIFT||this.code===e.KEY_ALT}return y}(),g.isDown=function(){function y(){return this.type==="keydown"}return y}(),g.isUp=function(){function y(){return this.type==="keyup"}return y}(),g.toString=function(){function y(){return this._str?this._str:(this._str="",this.ctrl&&(this._str+="Ctrl+"),this.alt&&(this._str+="Alt+"),this.shift&&(this._str+="Shift+"),this.code>=48&&this.code<=90?this._str+=String.fromCharCode(this.code):this.code>=e.KEY_F1&&this.code<=e.KEY_F12?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)}return y}(),b}();document.addEventListener("keydown",function(b){if(!h(b.target)){var g=b.keyCode,y=new C(b,"keydown",f[g]);t.emit("keydown",y),t.emit("key",y),f[g]=!0}}),document.addEventListener("keyup",function(b){if(!h(b.target)){var g=b.keyCode,y=new C(b,"keyup");t.emit("keyup",y),t.emit("key",y),f[g]=!1}})},68566:function(x,r){"use strict";r.__esModule=!0,r.focusWindow=r.focusMap=void 0;/**
|
|
* Various focus helpers.
|
|
*
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var n=r.focusMap=function(){function a(){Byond.winset("mapwindow.map",{focus:!0})}return a}(),e=r.focusWindow=function(){function a(){Byond.winset(Byond.windowId,{focus:!0})}return a}()},43820:function(x,r){"use strict";r.__esModule=!0,r.formatTime=r.formatSiUnit=r.formatSiBaseTenUnit=r.formatPower=r.formatMoney=r.formatDb=r.formatCommaNumber=void 0;/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var n=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y","R","Q","F","N","H"],e=n.indexOf(" "),a=r.formatSiUnit=function(){function h(s,l,u){if(l===void 0&&(l=-e),u===void 0&&(u=""),!isFinite(s))return s.toString();var i=Math.floor(Math.log10(Math.abs(s))),c=Math.max(l*3,i),d=Math.floor(c/3),p=n[Math.min(d+e,n.length-1)],v=s/Math.pow(1e3,d),f=v.toFixed(2);return f.endsWith(".00")?f=f.slice(0,-3):f.endsWith(".0")&&(f=f.slice(0,-2)),(f+" "+p.trim()+u).trim()}return h}(),t=r.formatPower=function(){function h(s,l){return l===void 0&&(l=0),a(s,l,"W")}return h}(),o=r.formatMoney=function(){function h(s,l){if(l===void 0&&(l=0),!Number.isFinite(s))return String(s);var u=Number(s.toFixed(l)),i=u<0,c=Math.abs(u),d=c.toString().split(".");d[0]=d[0].replace(/\B(?=(\d{3})+(?!\d))/g,"\u2009");var p=d.join(".");return i?"-"+p:p}return h}(),m=r.formatDb=function(){function h(s){var l=20*Math.log10(s),u=l>=0?"+":"-",i=Math.abs(l);return i===1/0?i="Inf":i=i.toFixed(2),""+u+i+" dB"}return h}(),V=["","\xB7 10\xB3","\xB7 10\u2076","\xB7 10\u2079","\xB7 10\xB9\xB2","\xB7 10\xB9\u2075","\xB7 10\xB9\u2078","\xB7 10\xB2\xB9","\xB7 10\xB2\u2074","\xB7 10\xB2\u2077","\xB7 10\xB3\u2070","\xB7 10\xB3\xB3","\xB7 10\xB3\u2076","\xB7 10\xB3\u2079"],k=r.formatSiBaseTenUnit=function(){function h(s,l,u){if(l===void 0&&(l=0),u===void 0&&(u=""),!isFinite(s))return"NaN";var i=Math.floor(Math.log10(s)),c=Math.max(l*3,i),d=Math.floor(c/3),p=V[d],v=s/Math.pow(1e3,d),f=Math.max(0,2-c%3),C=v.toFixed(f);return(C+" "+p+" "+u).trim()}return h}(),S=r.formatTime=function(){function h(s,l){l===void 0&&(l="default");var u=Math.floor(s/10),i=Math.floor(u/3600),c=Math.floor(u%3600/60),d=u%60;if(l==="short"){var p=i>0?i+"h":"",v=c>0?c+"m":"",f=d>0?d+"s":"";return""+p+v+f}var C=String(i).padStart(2,"0"),b=String(c).padStart(2,"0"),g=String(d).padStart(2,"0");return C+":"+b+":"+g}return h}(),N=r.formatCommaNumber=function(){function h(s){if(!Number.isFinite(s))return s;var l=s.toString().split(".");return l[0]=l[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),l.join(".")}return h}()},73764:function(x,r,n){"use strict";r.__esModule=!0,r.setupHotKeys=r.releaseHotKey=r.releaseHeldKeys=r.listenForKeyEvents=r.acquireHotKey=void 0;var e=m(n(42678)),a=n(80835),t=n(66905);function o(v){if(typeof WeakMap!="function")return null;var f=new WeakMap,C=new WeakMap;return(o=function(g){return g?C:f})(v)}function m(v,f){if(!f&&v&&v.__esModule)return v;if(v===null||typeof v!="object"&&typeof v!="function")return{default:v};var C=o(f);if(C&&C.has(v))return C.get(v);var b={__proto__:null},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in v)if(y!=="default"&&Object.prototype.hasOwnProperty.call(v,y)){var B=g?Object.getOwnPropertyDescriptor(v,y):null;B&&(B.get||B.set)?Object.defineProperty(b,y,B):b[y]=v[y]}return b.default=v,C&&C.set(v,b),b}/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var V=(0,t.createLogger)("hotkeys"),k={},S=[e.KEY_ESCAPE,e.KEY_ENTER,e.KEY_SPACE,e.KEY_TAB,e.KEY_CTRL,e.KEY_SHIFT,e.KEY_UP,e.KEY_DOWN,e.KEY_LEFT,e.KEY_RIGHT,e.KEY_F5],N={},h=[],s=function(f){if(f===16)return"Shift";if(f===17)return"Ctrl";if(f===18)return"Alt";if(f===33)return"Northeast";if(f===34)return"Southeast";if(f===35)return"Southwest";if(f===36)return"Northwest";if(f===37)return"West";if(f===38)return"North";if(f===39)return"East";if(f===40)return"South";if(f===45)return"Insert";if(f===46)return"Delete";if(f>=48&&f<=57||f>=65&&f<=90)return String.fromCharCode(f);if(f>=96&&f<=105)return"Numpad"+(f-96);if(f>=112&&f<=123)return"F"+(f-111);if(f===188)return",";if(f===189)return"-";if(f===190)return"."},l=function(f){var C=String(f);if(C==="Ctrl+F5"||C==="Ctrl+R"){location.reload();return}if(C!=="Ctrl+F"&&!(f.event.defaultPrevented||f.isModifierKey()||S.includes(f.code))){var b=s(f.code);if(b){var g=k[b];if(g)return V.debug("macro",g),Byond.command(g);if(f.isDown()&&!N[b]){N[b]=!0;var y='KeyDown "'+b+'"';return V.debug(y),Byond.command(y)}if(f.isUp()&&N[b]){N[b]=!1;var B='KeyUp "'+b+'"';return V.debug(B),Byond.command(B)}}}},u=r.acquireHotKey=function(){function v(f){S.push(f)}return v}(),i=r.releaseHotKey=function(){function v(f){var C=S.indexOf(f);C>=0&&S.splice(C,1)}return v}(),c=r.releaseHeldKeys=function(){function v(){for(var f=0,C=Object.keys(N);f<C.length;f++){var b=C[f];N[b]&&(N[b]=!1,V.log('releasing key "'+b+'"'),Byond.command('KeyUp "'+b+'"'))}}return v}(),d=r.setupHotKeys=function(){function v(){Byond.winget("default.*").then(function(f){for(var C={},b=0,g=Object.keys(f);b<g.length;b++){var y=g[b],B=y.split("."),L=B[1],I=B[2];L&&I&&(C[L]||(C[L]={}),C[L][I]=f[y])}for(var w=/\\"/g,T=function(){function P(D){return D.substring(1,D.length-1).replace(w,'"')}return P}(),M=0,A=Object.keys(C);M<A.length;M++){var R=A[M],O=C[R],_=T(O.name);k[_]=T(O.command)}V.debug("loaded macros",k)}),a.globalEvents.on("window-blur",function(){c()}),a.globalEvents.on("key",function(f){for(var C=0,b=h;C<b.length;C++){var g=b[C];g(f)}l(f)})}return v}(),p=r.listenForKeyEvents=function(){function v(f){h.push(f);var C=!1;return function(){C||(C=!0,h.splice(h.indexOf(f),1))}}return v}()},92853:function(x,r,n){"use strict";r.__esModule=!0,r.AICard=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.AICard=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.has_ai,u=s.integrity,i=s.backup_capacitor,c=s.flushing,d=s.has_laws,p=s.laws,v=s.wireless,f=s.radio;if(l===0)return(0,e.createComponentVNode)(2,o.Window,{width:600,height:470,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createVNode)(1,"h3",null,"No AI detected.",16)})})})});var C=null;u>=75?C="green":u>=25?C="yellow":C="red";var b=null;return i>=75&&(b="green"),i>=25?b="yellow":b="red",(0,e.createComponentVNode)(2,o.Window,{width:600,height:470,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored AI",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,display:"inline-block",children:(0,e.createVNode)(1,"h3",null,name,0)}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:C,value:u/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:b,value:i/100})})]})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,c===1?"Wipe of AI in progress...":"",0)})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Laws",children:!!d&&(0,e.createComponentVNode)(2,t.Box,{children:p.map(function(g,y){return(0,e.createComponentVNode)(2,t.Box,{display:"inline-block",children:g},y)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})}),(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:v?"check":"times",content:v?"Enabled":"Disabled",color:v?"green":"red",onClick:function(){function g(){return h("wireless")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:f?"check":"times",content:f?"Enabled":"Disabled",color:f?"green":"red",onClick:function(){function g(){return h("radio")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"AI Power",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"radiation",confirmIcon:"radiation",disabled:c||u===0,confirmColor:"red",content:"Shutdown",onClick:function(){function g(){return h("wipe")}return g}()})})]})})]})})}return V}()},68567:function(x,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(45902),V=n(84288),k=r.APC=function(){function u(i,c){var d=(0,a.useBackend)(c),p=d.act,v=d.data,f=(0,e.createComponentVNode)(2,h);return v.gridCheck?f=(0,e.createComponentVNode)(2,s):v.failTime&&(f=(0,e.createComponentVNode)(2,l)),(0,e.createComponentVNode)(2,o.Window,{width:450,height:475,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:f})})}return u}(),S={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"}},N={1:{icon:"terminal",content:"Override Programming",action:"hack"}},h=function(i,c){var d=(0,a.useBackend)(c),p=d.act,v=d.data,f=v.locked&&!v.siliconUser,C=v.normallyLocked,b=S[v.externalPower]||S[0],g=S[v.chargingStatus]||S[0],y=v.powerChannels||[],B=v.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,m.InterfaceLockNoticeBox,{deny:v.emagged,denialMessage:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"bad",fontSize:"1.5rem",children:"Fault in ID authenticator."}),(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Please contact maintenance for service."})],4)}),(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:b.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:v.isOperating?"power-off":"times",content:v.isOperating?"On":"Off",selected:v.isOperating&&!f,color:v.isOperating?"":"bad",disabled:f,onClick:function(){function L(){return p("breaker")}return L}()}),children:["[ ",b.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:B})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",color:g.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:v.chargeMode?"sync":"times",content:v.chargeMode?"Auto":"Off",selected:v.chargeMode,disabled:f,onClick:function(){function L(){return p("charge")}return L}()}),children:["[ ",g.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[y.map(function(L){var I=L.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:L.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:L.status>=2?"good":"bad",children:L.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!f&&(L.status===1||L.status===3),disabled:f,onClick:function(){function w(){return p("channel",I.auto)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!f&&L.status===2,disabled:f,onClick:function(){function w(){return p("channel",I.on)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!f&&L.status===0,disabled:f,onClick:function(){function w(){return p("channel",I.off)}return w}()})],4),children:[L.powerLoad," W"]},L.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:v.totalCharging?(0,e.createVNode)(1,"b",null,[v.totalLoad,(0,e.createTextVNode)(" W (+ "),v.totalCharging,(0,e.createTextVNode)(" W charging)")],0):(0,e.createVNode)(1,"b",null,[v.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!v.siliconUser&&(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function L(){return p("overload")}return L}()}),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,{icon:v.coverLocked?"lock":"unlock",content:v.coverLocked?"Engaged":"Disengaged",selected:v.coverLocked,disabled:f,onClick:function(){function L(){return p("cover")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Disabled",selected:v.nightshiftSetting===2,onClick:function(){function L(){return p("nightshift",{nightshift:2})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Automatic",selected:v.nightshiftSetting===1,onClick:function(){function L(){return p("nightshift",{nightshift:1})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Enabled",selected:v.nightshiftSetting===3,onClick:function(){function L(){return p("nightshift",{nightshift:3})}return L}()})],4)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:v.emergencyLights?"Enabled":"Disabled",selected:v.emergencyLights,onClick:function(){function L(){return p("emergency_lighting")}return L}()})})]})})],4)},s=function(i,c){return(0,e.createComponentVNode)(2,V.FullscreenNotice,{title:"System Failure",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.5rem",bold:!0,children:(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.5rem",bold:!0,children:"Power surge detected, grid check in effect..."})]})},l=function(i,c){var d=(0,a.useBackend)(c),p=d.data,v=d.act,f=(0,e.createComponentVNode)(2,t.Button,{icon:"repeat",content:"Restart Now",color:"good",onClick:function(){function C(){return v("reboot")}return C}()});return p.locked&&!p.siliconUser&&(f=(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Swipe an ID card for manual reboot."})),(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:(0,e.createVNode)(1,"h1",null,"SYSTEM FAILURE",16)}),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:(0,e.createVNode)(1,"h2",null,"I/O regulators malfunction detected! Waiting for system reboot...",16)}),(0,e.createComponentVNode)(2,t.Box,{color:"good",children:["Automatic reboot in ",p.failTime," seconds..."]}),(0,e.createComponentVNode)(2,t.Box,{mt:4,children:f})]})}},43227:function(x,r,n){"use strict";r.__esModule=!0,r.AccountsTerminal=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.AccountsTerminal=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.id_inserted,p=c.id_card,v=c.access_level,f=c.machine_id;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:640,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:"Machine",color:"average",children:f}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"eject":"sign-in-alt",fluid:!0,content:p,onClick:function(){function C(){return i("insert_card")}return C}()})})]})}),v>0&&(0,e.createComponentVNode)(2,V)]})})}return h}(),V=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.creating_new_account,p=c.detailed_account_view;return(0,e.createComponentVNode)(2,t.Section,{title:"Menu",children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:!d&&!p,icon:"home",onClick:function(){function v(){return i("view_accounts_list")}return v}(),children:"Home"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:d,icon:"cog",onClick:function(){function v(){return i("create_account")}return v}(),children:"New Account"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{disabled:d,icon:"print",onClick:function(){function v(){return i("print")}return v}(),children:"Print"})]}),d&&(0,e.createComponentVNode)(2,k)||p&&(0,e.createComponentVNode)(2,S)||(0,e.createComponentVNode)(2,N)]})},k=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=(0,a.useSharedState)(l,"holder",""),d=c[0],p=c[1],v=(0,a.useSharedState)(l,"money",""),f=v[0],C=v[1];return(0,e.createComponentVNode)(2,t.Section,{title:"Create Account",level:2,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Holder",children:(0,e.createComponentVNode)(2,t.Input,{value:d,fluid:!0,onInput:function(){function b(g,y){return p(y)}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,t.Input,{value:f,fluid:!0,onInput:function(){function b(g,y){return C(y)}return b}()})})]}),(0,e.createComponentVNode)(2,t.Button,{disabled:!d||!f,mt:1,fluid:!0,icon:"plus",onClick:function(){function b(){return i("finalise_create_account",{holder_name:d,starting_funds:f})}return b}(),content:"Create"})]})},S=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.access_level,p=c.station_account_number,v=c.account_number,f=c.owner_name,C=c.money,b=c.suspended,g=c.transactions;return(0,e.createComponentVNode)(2,t.Section,{title:"Account Details",level:2,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"ban",selected:b,content:"Suspend",onClick:function(){function y(){return i("toggle_suspension")}return y}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Number",children:["#",v]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Holder",children:f}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Balance",children:[C,"\u20AE"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:b?"bad":"good",children:b?"SUSPENDED":"Active"})]}),(0,e.createComponentVNode)(2,t.Section,{title:"CentCom Administrator",level:2,mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Payroll",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{color:"bad",fluid:!0,icon:"ban",confirmIcon:"ban",content:"Revoke",confirmContent:"This cannot be undone.",disabled:v===p,onClick:function(){function y(){return i("revoke_payroll")}return y}()})})})}),d>=2&&(0,e.createComponentVNode)(2,t.Section,{title:"Silent Funds Transfer",level:2,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"plus",onClick:function(){function y(){return i("add_funds")}return y}(),content:"Add Funds"}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus",onClick:function(){function y(){return i("remove_funds")}return y}(),content:"Remove Funds"})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Transactions",level:2,mt:1,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:"Target"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Terminal"})]}),g.map(function(y,B){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[y.date," ",y.time]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:y.target_name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:y.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[y.amount,"\u20AE"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:y.source_terminal})]},B)})]})})]})},N=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.accounts;return(0,e.createComponentVNode)(2,t.Section,{title:"NanoTrasen Accounts",level:2,children:d.length&&(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(p){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:p.owner_name+p.suspended,color:p.suspended?"bad":null,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"#"+p.account_number,onClick:function(){function v(){return i("view_account_detail",{account_index:p.account_index})}return v}()})},p.account_index)})})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"There are no accounts available."})})}},75598:function(x,r,n){"use strict";r.__esModule=!0,r.ShuttleList=r.AdminShuttleController=void 0;var e=n(58734),a=n(45445),t=n(62188),o=n(11790),m=n(11477),V=r.AdminShuttleController=function(){function N(){return(0,e.createComponentVNode)(2,m.Window,{width:600,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,k)})})}return N}(),k=r.ShuttleList=function(){function N(h,s){var l=(0,t.useBackend)(s),u=l.act,i=l.data,c=i.shuttles,d=i.overmap_ships;return(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"Classic Shuttles",children:(0,e.createComponentVNode)(2,o.Table,{children:(0,a.sortBy)(function(p){return p.name})(c).map(function(p){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Button,{m:0,content:"JMP",onClick:function(){function v(){return u("adminobserve",{ref:p.ref})}return v}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Button,{m:0,content:"Fly",onClick:function(){function v(){return u("classicmove",{ref:p.ref})}return v}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:p.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:p.current_location}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:S(p.status)})]},p.ref)})})}),(0,e.createComponentVNode)(2,o.Section,{title:"Overmap Ships",children:(0,e.createComponentVNode)(2,o.Table,{children:(0,a.sortBy)(function(p){var v;return((v=p.name)==null?void 0:v.toLowerCase())||p.name||p.ref})(d).map(function(p){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Button,{content:"JMP",onClick:function(){function v(){return u("adminobserve",{ref:p.ref})}return v}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Button,{content:"Control",onClick:function(){function v(){return u("overmap_control",{ref:p.ref})}return v}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:p.name})]},p.ref)})})})]})}return N}(),S=function(h){switch(h){case 0:return"Idle";case 1:return"Warmup";case 2:return"Transit";default:return"UNK"}}},36370:function(x,r,n){"use strict";r.__esModule=!0,r.AgentCard=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.AgentCard=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.entries,u=s.electronic_warfare;return(0,e.createComponentVNode)(2,o.Window,{width:550,height:400,theme:"syndicate",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Info",children:(0,e.createComponentVNode)(2,t.Table,{children:l.map(function(i){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function c(){return h(i.name.toLowerCase().replace(/ /g,""))}return c}(),icon:"cog"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.value})]},i.name)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Electronic Warfare",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:u,content:u?"Electronic warfare is enabled. This will prevent you from being tracked by the AI.":"Electronic warfare disabled.",onClick:function(){function i(){return h("electronic_warfare")}return i}()})})]})})}return V}()},53855:function(x,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m={2:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Offline"}},V=r.AiAirlock=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=m[l.power.main]||m[0],i=m[l.power.backup]||m[0],c=m[l.shock]||m[0];return(0,e.createComponentVNode)(2,o.Window,{width:500,height:390,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:u.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",disabled:!l.power.main,content:"Disrupt",onClick:function(){function d(){return s("disrupt-main")}return d}()}),children:[l.power.main?"Online":"Offline"," ",(!l.wires.main_1||!l.wires.main_2)&&"[Wires have been cut!]"||l.power.main_timeleft>0&&"["+l.power.main_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Backup",color:i.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",disabled:!l.power.backup,content:"Disrupt",onClick:function(){function d(){return s("disrupt-backup")}return d}()}),children:[l.power.backup?"Online":"Offline"," ",(!l.wires.backup_1||!l.wires.backup_2)&&"[Wires have been cut!]"||l.power.backup_timeleft>0&&"["+l.power.backup_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Electrify",color:c.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!(l.wires.shock&&l.shock===0),content:"Restore",onClick:function(){function d(){return s("shock-restore")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!l.wires.shock,content:"Temporary",onClick:function(){function d(){return s("shock-temp")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!l.wires.shock,content:"Permanent",onClick:function(){function d(){return s("shock-perm")}return d}()})],4),children:[l.shock===2?"Safe":"Electrified"," ",!l.wires.shock&&"[Wires have been cut!]"||l.shock_timeleft>0&&"["+l.shock_timeleft+"s]"||l.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,{icon:l.id_scanner?"power-off":"times",content:l.id_scanner?"Enabled":"Disabled",selected:l.id_scanner,disabled:!l.wires.id_scanner,onClick:function(){function d(){return s("idscan-toggle")}return d}()}),children:!l.wires.id_scanner&&"[Wires have been cut!]"}),(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,{icon:l.locked?"lock":"unlock",content:l.locked?"Lowered":"Raised",selected:l.locked,disabled:!l.wires.bolts,onClick:function(){function d(){return s("bolt-toggle")}return d}()}),children:!l.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,{icon:l.lights?"power-off":"times",content:l.lights?"Enabled":"Disabled",selected:l.lights,disabled:!l.wires.lights,onClick:function(){function d(){return s("light-toggle")}return d}()}),children:!l.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,{icon:l.safe?"power-off":"times",content:l.safe?"Enabled":"Disabled",selected:l.safe,disabled:!l.wires.safe,onClick:function(){function d(){return s("safe-toggle")}return d}()}),children:!l.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,{icon:l.speed?"power-off":"times",content:l.speed?"Enabled":"Disabled",selected:l.speed,disabled:!l.wires.timing,onClick:function(){function d(){return s("speed-toggle")}return d}()}),children:!l.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:l.opened?"sign-out-alt":"sign-in-alt",content:l.opened?"Open":"Closed",selected:l.opened,disabled:l.locked||l.welded,onClick:function(){function d(){return s("open-close")}return d}()}),children:!!(l.locked||l.welded)&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("[Door is "),l.locked?"bolted":"",l.locked&&l.welded?" and ":"",l.welded?"welded":"",(0,e.createTextVNode)("!]")],0)})]})})]})})}return k}()},16543:function(x,r,n){"use strict";r.__esModule=!0,r.AiRestorerContent=r.AiRestorer=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.AiRestorer=function(){function k(){return(0,e.createComponentVNode)(2,o.Window,{width:370,height:360,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,V)})})}return k}(),V=r.AiRestorerContent=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.AI_present,i=l.error,c=l.name,d=l.laws,p=l.isDead,v=l.restoring,f=l.health,C=l.ejectable;return(0,e.createFragment)([i&&(0,e.createComponentVNode)(2,t.NoticeBox,{textAlign:"center",children:i}),!!C&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:u?c:"----------",disabled:!u,onClick:function(){function b(){return s("PRG_eject")}return b}()}),!!u&&(0,e.createComponentVNode)(2,t.Section,{title:C?"System Status":c,buttons:(0,e.createComponentVNode)(2,t.Box,{inline:!0,bold:!0,color:p?"bad":"good",children:p?"Nonfunctional":"Functional"}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:f,minValue:0,maxValue:100,ranges:{good:[70,1/0],average:[50,70],bad:[-1/0,50]}})})}),!!v&&(0,e.createComponentVNode)(2,t.Box,{bold:!0,textAlign:"center",fontSize:"20px",color:"good",mt:1,children:"RECONSTRUCTION IN PROGRESS"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"plus",content:"Begin Reconstruction",disabled:v,mt:1,onClick:function(){function b(){return s("PRG_beginReconstruction")}return b}()}),(0,e.createComponentVNode)(2,t.Section,{title:"Laws",level:2,children:d.map(function(b){return(0,e.createComponentVNode)(2,t.Box,{className:"candystripe",children:b},b)})})]})],0)}return k}()},40083:function(x,r,n){"use strict";r.__esModule=!0,r.AiSupermatter=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(84288),V=r.AiSupermatter=function(){function N(h,s){var l=(0,a.useBackend)(s),u=l.data,i=u.integrity_percentage,c=u.ambient_temp,d=u.ambient_pressure,p=u.detonating,v=(0,e.createComponentVNode)(2,S);return p&&(v=(0,e.createComponentVNode)(2,k)),(0,e.createComponentVNode)(2,o.Window,{width:500,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:v})})}return N}(),k=function(h,s){return(0,e.createComponentVNode)(2,m.FullscreenNotice,{title:"DETONATION IMMINENT",children:(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{color:"bad",name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"CRYSTAL DELAMINATING"}),(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Evacuate area immediately"})]})})},S=function(h,s){var l=(0,a.useBackend)(s),u=l.data,i=u.integrity_percentage,c=u.ambient_temp,d=u.ambient_pressure;return(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Crystal Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i,maxValue:100,ranges:{good:[90,1/0],average:[25,90],bad:[-1/0,25]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Environment Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c,maxValue:1e4,ranges:{bad:[5e3,1/0],average:[4e3,5e3],good:[-1/0,4e3]},children:[c," K"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Environment Pressure",children:[d," kPa"]})]})})}},53314:function(x,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(78419),V=n(11477),k=n(45902),S=n(92237),N=r.AirAlarm=function(){function f(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=B.locked&&!B.siliconUser&&!B.remoteUser;return(0,e.createComponentVNode)(2,V.Window,{width:440,height:650,resizable:!0,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,k.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,s),!L&&(0,e.createComponentVNode)(2,u)]})})}return f}(),h=function(C,b){var g=(0,t.useBackend)(b),y=g.data,B=(y.environment_data||[]).filter(function(w){return w.value>=.01}),L={0:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},2:{color:"bad",localStatusText:"Danger (Internals Required)"}},I=L[y.danger_level]||L[0];return(0,e.createComponentVNode)(2,o.Section,{title:"Air Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[B.length>0&&(0,e.createFragment)([B.map(function(w){var T=L[w.danger_level]||L[0];return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:(0,m.getGasLabel)(w.name),color:T.color,children:[(0,a.toFixed)(w.value,2),w.unit]},w.name)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Local status",color:I.color,children:I.localStatusText}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Area status",color:y.atmos_alarm||y.fire_alarm?"bad":"good",children:y.atmos_alarm&&"Atmosphere Alarm"||y.fire_alarm&&"Fire Alarm"||"Nominal"})],0)||(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Warning",color:"bad",children:"Cannot obtain air sample for analysis."}),!!y.emagged&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Warning",color:"bad",children:"Safety measures offline. Device may exhibit abnormal behavior."})]})})},s=function(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=B.target_temperature,I=B.rcon;return(0,e.createComponentVNode)(2,o.Section,{title:"Comfort Settings",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remote Control",children:[(0,e.createComponentVNode)(2,o.Button,{selected:I===1,content:"Off",onClick:function(){function w(){return y("rcon",{rcon:1})}return w}()}),(0,e.createComponentVNode)(2,o.Button,{selected:I===2,content:"Auto",onClick:function(){function w(){return y("rcon",{rcon:2})}return w}()}),(0,e.createComponentVNode)(2,o.Button,{selected:I===3,content:"On",onClick:function(){function w(){return y("rcon",{rcon:3})}return w}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Thermostat",children:(0,e.createComponentVNode)(2,o.Button,{content:L,onClick:function(){function w(){return y("temperature")}return w}()})})]})})},l={home:{title:"Air Controls",component:function(){function f(){return i}return f}()},vents:{title:"Vent Controls",component:function(){function f(){return c}return f}()},scrubbers:{title:"Scrubber Controls",component:function(){function f(){return d}return f}()},modes:{title:"Operating Mode",component:function(){function f(){return p}return f}()},thresholds:{title:"Alarm Thresholds",component:function(){function f(){return v}return f}()}},u=function(C,b){var g=(0,t.useLocalState)(b,"screen"),y=g[0],B=g[1],L=l[y]||l.home,I=L.component();return(0,e.createComponentVNode)(2,o.Section,{title:L.title,buttons:y&&(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function w(){return B()}return w}()}),children:(0,e.createComponentVNode)(2,I)})},i=function(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=(0,t.useLocalState)(b,"screen"),I=L[0],w=L[1],T=B.mode,M=B.atmos_alarm;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:M?"exclamation-triangle":"exclamation",color:M&&"caution",content:"Area Atmosphere Alarm",onClick:function(){function A(){return y(M?"reset":"alarm")}return A}()}),(0,e.createComponentVNode)(2,o.Box,{mt:1}),(0,e.createComponentVNode)(2,o.Button,{icon:T===3?"exclamation-triangle":"exclamation",color:T===3&&"danger",content:"Panic Siphon",onClick:function(){function A(){return y("mode",{mode:T===3?1:3})}return A}()}),(0,e.createComponentVNode)(2,o.Box,{mt:2}),(0,e.createComponentVNode)(2,o.Button,{icon:"sign-out-alt",content:"Vent Controls",onClick:function(){function A(){return w("vents")}return A}()}),(0,e.createComponentVNode)(2,o.Box,{mt:1}),(0,e.createComponentVNode)(2,o.Button,{icon:"filter",content:"Scrubber Controls",onClick:function(){function A(){return w("scrubbers")}return A}()}),(0,e.createComponentVNode)(2,o.Box,{mt:1}),(0,e.createComponentVNode)(2,o.Button,{icon:"cog",content:"Operating Mode",onClick:function(){function A(){return w("modes")}return A}()}),(0,e.createComponentVNode)(2,o.Box,{mt:1}),(0,e.createComponentVNode)(2,o.Button,{icon:"chart-bar",content:"Alarm Thresholds",onClick:function(){function A(){return w("thresholds")}return A}()})],4)},c=function(C,b){var g=(0,t.useBackend)(b),y=g.data,B=y.vents;return!B||B.length===0?"Nothing to show":B.map(function(L){return(0,e.createComponentVNode)(2,S.Vent,{vent:L},L.id_tag)})},d=function(C,b){var g=(0,t.useBackend)(b),y=g.data,B=y.scrubbers;return!B||B.length===0?"Nothing to show":B.map(function(L){return(0,e.createComponentVNode)(2,S.Scrubber,{scrubber:L},L.id_tag)})},p=function(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=B.modes;return!L||L.length===0?"Nothing to show":L.map(function(I){return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:I.selected?"check-square-o":"square-o",selected:I.selected,color:I.selected&&I.danger&&"danger",content:I.name,onClick:function(){function w(){return y("mode",{mode:I.mode})}return w}()}),(0,e.createComponentVNode)(2,o.Box,{mt:1})],4,I.mode)})},v=function(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=B.thresholds;return(0,e.createVNode)(1,"table","LabeledList",[(0,e.createVNode)(1,"thead",null,(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td"),(0,e.createVNode)(1,"td","color-bad","min2",16),(0,e.createVNode)(1,"td","color-average","min1",16),(0,e.createVNode)(1,"td","color-average","max1",16),(0,e.createVNode)(1,"td","color-bad","max2",16)],4),2),(0,e.createVNode)(1,"tbody",null,L.map(function(I){return(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td","LabeledList__label",(0,e.createVNode)(1,"span","color-"+(0,m.getGasColor)(I.name),(0,m.getGasLabel)(I.name),0),2),I.settings.map(function(w){return(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,o.Button,{content:(0,a.toFixed)(w.selected,2),onClick:function(){function T(){return y("threshold",{env:w.env,var:w.val})}return T}()}),2,null,w.val)})],0,null,I.name)}),0)],4,{style:{width:"100%"}})}},85156:function(x,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(58734),a=n(89226),t=n(62188),o=n(42678),m=n(11790),V=n(11477),k=-1,S=1,N=r.AlertModal=function(){function l(u,i){var c=(0,t.useBackend)(i),d=c.act,p=c.data,v=p.autofocus,f=p.buttons,C=f===void 0?[]:f,b=p.large_buttons,g=p.message,y=g===void 0?"":g,B=p.timeout,L=p.title,I=(0,t.useLocalState)(i,"selected",0),w=I[0],T=I[1],M=115+(y.length>30?Math.ceil(y.length/4):0)+(y.length&&b?5:0),A=325+(C.length>2?55:0),R=function(){function O(_){w===0&&_===k?T(C.length-1):w===C.length-1&&_===S?T(0):T(w+_)}return O}();return(0,e.createComponentVNode)(2,V.Window,{height:M,title:L,width:A,children:[!!B&&(0,e.createComponentVNode)(2,a.Loader,{value:B}),(0,e.createComponentVNode)(2,V.Window.Content,{onKeyDown:function(){function O(_){var P=window.event?_.which:_.keyCode;P===o.KEY_SPACE||P===o.KEY_ENTER?d("choose",{choice:C[w]}):P===o.KEY_ESCAPE?d("cancel"):P===o.KEY_LEFT?(_.preventDefault(),R(k)):(P===o.KEY_TAB||P===o.KEY_RIGHT)&&(_.preventDefault(),R(S))}return O}(),children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,m.Box,{color:"label",overflow:"hidden",children:y})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:[!!v&&(0,e.createComponentVNode)(2,m.Autofocus),(0,e.createComponentVNode)(2,h,{selected:w})]})]})})})]})}return l}(),h=function(u,i){var c=(0,t.useBackend)(i),d=c.data,p=d.buttons,v=p===void 0?[]:p,f=d.large_buttons,C=d.swapped_buttons,b=u.selected;return(0,e.createComponentVNode)(2,m.Flex,{align:"center",direction:C?"row":"row-reverse",fill:!0,justify:"space-around",wrap:!0,children:v==null?void 0:v.map(function(g,y){return f&&v.length<3?(0,e.createComponentVNode)(2,m.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s,{button:g,id:y.toString(),selected:b===y})},y):(0,e.createComponentVNode)(2,m.Flex.Item,{children:(0,e.createComponentVNode)(2,s,{button:g,id:y.toString(),selected:b===y})},y)})})},s=function(u,i){var c=(0,t.useBackend)(i),d=c.act,p=c.data,v=p.large_buttons,f=u.button,C=u.selected,b=f.length>7?f.length:7;return(0,e.createComponentVNode)(2,m.Button,{fluid:!!v,height:!!v&&2,onClick:function(){function g(){return d("choose",{choice:f})}return g}(),m:.5,pl:2,pr:2,pt:v?.33:0,selected:C,textAlign:"center",width:!v&&b,children:v?f.toUpperCase():f})}},83747:function(x,r,n){"use strict";r.__esModule=!0,r.AlgaeFarm=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(40946),V=r.AlgaeFarm=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.usePower,i=l.materials,c=l.last_flow_rate,d=l.last_power_draw,p=l.inputDir,v=l.outputDir,f=l.input,C=l.output,b=l.errorText;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:300,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[b&&(0,e.createComponentVNode)(2,t.NoticeBox,{warning:!0,children:(0,e.createComponentVNode)(2,t.Box,{display:"inline-block",verticalAlign:"middle",children:b})}),(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"Processing",selected:u===2,onClick:function(){function g(){return s("toggle")}return g}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Flow Rate",children:[c," L/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Draw",children:[d," W"]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider,{size:1}),i.map(function(g){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,m.capitalize)(g.display),children:[(0,e.createComponentVNode)(2,t.ProgressBar,{width:"80%",value:g.qty,maxValue:g.max,children:[g.qty,"/",g.max]}),(0,e.createComponentVNode)(2,t.Button,{ml:1,content:"Eject",onClick:function(){function y(){return s("ejectMaterial",{mat:g.name})}return y}()})]},g.name)})]}),(0,e.createComponentVNode)(2,t.Table,{mt:1,children:(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Gas Input ("+p+")",children:f?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Pressure",children:[f.pressure," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:f.name,children:[f.percent,"% (",f.moles," moles)"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No connection detected."})})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Gas Output ("+v+")",children:C?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Pressure",children:[C.pressure," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:C.name,children:[C.percent,"% (",C.moles," moles)"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No connection detected."})})})]})})]})]})})}return k}()},56258:function(x,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(58734),a=n(45445),t=n(40946),o=n(62188),m=n(11790),V=n(11477),k=r.AppearanceChanger=function(){function p(v,f){var C=(0,o.useBackend)(f),b=C.act,g=C.config,y=C.data,B=y.name,L=y.specimen,I=y.gender,w=y.gender_id,T=y.hair_style,M=y.facial_hair_style,A=y.ear_style,R=y.tail_style,O=y.wing_style,_=y.markings,P=y.change_race,D=y.change_gender,z=y.change_eye_color,U=y.change_skin_tone,W=y.change_skin_color,K=y.change_hair_color,H=y.change_facial_hair_color,Y=y.change_hair,J=y.change_facial_hair,q=y.mapRef,oe=g.title,ae=z||U||W||K||H,le=-1;P?le=0:D?le=1:ae?le=2:Y?le=4:J&&(le=5);var he=(0,o.useLocalState)(f,"tabIndex",le),me=he[0],Be=he[1];return(0,e.createComponentVNode)(2,V.Window,{width:700,height:650,title:(0,t.decodeHtmlEntities)(oe),children:(0,e.createComponentVNode)(2,V.Window.Content,{children:[(0,e.createComponentVNode)(2,m.Section,{title:"Reflection",children:(0,e.createComponentVNode)(2,m.Flex,{children:[(0,e.createComponentVNode)(2,m.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Name",children:B}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Species",color:P?null:"grey",children:L}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Biological Sex",color:D?null:"grey",children:I?(0,t.capitalize)(I):"Not Set"}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Gender Identity",color:ae?null:"grey",children:w?(0,t.capitalize)(w):"Not Set"}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Hair Style",color:Y?null:"grey",children:T?(0,t.capitalize)(T):"Not Set"}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Facial Hair Style",color:J?null:"grey",children:M?(0,t.capitalize)(M):"Not Set"}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Ear Style",color:Y?null:"grey",children:A?(0,t.capitalize)(A):"Not Set"}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Tail Style",color:Y?null:"grey",children:R?(0,t.capitalize)(R):"Not Set"}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Wing Style",color:Y?null:"grey",children:O?(0,t.capitalize)(O):"Not Set"})]})}),(0,e.createComponentVNode)(2,m.Flex.Item,{children:(0,e.createComponentVNode)(2,m.ByondUi,{style:{width:"256px",height:"256px"},params:{id:q,type:"map"}})})]})}),(0,e.createComponentVNode)(2,m.Tabs,{children:[P?(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:me===0,onClick:function(){function ce(){return Be(0)}return ce}(),children:"Race"}):null,D?(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:me===1,onClick:function(){function ce(){return Be(1)}return ce}(),children:"Gender & Sex"}):null,ae?(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:me===2,onClick:function(){function ce(){return Be(2)}return ce}(),children:"Colors"}):null,Y?(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:me===3,onClick:function(){function ce(){return Be(3)}return ce}(),children:"Hair"}),(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:me===5,onClick:function(){function ce(){return Be(5)}return ce}(),children:"Ear"}),(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:me===6,onClick:function(){function ce(){return Be(6)}return ce}(),children:"Tail"}),(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:me===7,onClick:function(){function ce(){return Be(7)}return ce}(),children:"Wing"}),(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:me===8,onClick:function(){function ce(){return Be(8)}return ce}(),children:"Markings"})],4):null,J?(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:me===4,onClick:function(){function ce(){return Be(4)}return ce}(),children:"Facial Hair"}):null]}),(0,e.createComponentVNode)(2,m.Box,{height:"43%",children:[P&&me===0?(0,e.createComponentVNode)(2,S):null,D&&me===1?(0,e.createComponentVNode)(2,N):null,ae&&me===2?(0,e.createComponentVNode)(2,h):null,Y&&me===3?(0,e.createComponentVNode)(2,s):null,J&&me===4?(0,e.createComponentVNode)(2,l):null,Y&&me===5?(0,e.createComponentVNode)(2,u):null,Y&&me===6?(0,e.createComponentVNode)(2,i):null,Y&&me===7?(0,e.createComponentVNode)(2,c):null,Y&&me===8?(0,e.createComponentVNode)(2,d):null]})]})})}return p}(),S=function(v,f){var C=(0,o.useBackend)(f),b=C.act,g=C.data,y=g.species,B=g.specimen,L=(0,a.sortBy)(function(I){return I.specimen})(y||[]);return(0,e.createComponentVNode)(2,m.Section,{title:"Species",fill:!0,scrollable:!0,children:L.map(function(I){return(0,e.createComponentVNode)(2,m.Button,{content:I.specimen,selected:B===I.specimen,onClick:function(){function w(){return b("race",{race:I.specimen})}return w}()},I.specimen)})})},N=function(v,f){var C=(0,o.useBackend)(f),b=C.act,g=C.data,y=g.gender,B=g.gender_id,L=g.genders,I=g.id_genders;return(0,e.createComponentVNode)(2,m.Section,{title:"Gender & Sex",fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Biological Sex",children:L.map(function(w){return(0,e.createComponentVNode)(2,m.Button,{selected:w.gender_key===y,content:w.gender_name,onClick:function(){function T(){return b("gender",{gender:w.gender_key})}return T}()},w.gender_key)})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Gender Identity",children:I.map(function(w){return(0,e.createComponentVNode)(2,m.Button,{selected:w.gender_key===B,content:w.gender_name,onClick:function(){function T(){return b("gender_id",{gender_id:w.gender_key})}return T}()},w.gender_key)})})]})})},h=function(v,f){var C=(0,o.useBackend)(f),b=C.act,g=C.data,y=g.change_eye_color,B=g.change_skin_tone,L=g.change_skin_color,I=g.change_hair_color,w=g.change_facial_hair_color,T=g.eye_color,M=g.skin_color,A=g.hair_color,R=g.facial_hair_color,O=g.ears_color,_=g.ears2_color,P=g.tail_color,D=g.tail2_color,z=g.wing_color,U=g.wing2_color;return(0,e.createComponentVNode)(2,m.Section,{title:"Colors",fill:!0,scrollable:!0,children:[y?(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.ColorBox,{color:T,mr:1}),(0,e.createComponentVNode)(2,m.Button,{content:"Change Eye Color",onClick:function(){function W(){return b("eye_color")}return W}()})]}):null,B?(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,m.Button,{content:"Change Skin Tone",onClick:function(){function W(){return b("skin_tone")}return W}()})}):null,L?(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.ColorBox,{color:M,mr:1}),(0,e.createComponentVNode)(2,m.Button,{content:"Change Skin Color",onClick:function(){function W(){return b("skin_color")}return W}()})]}):null,I?(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.ColorBox,{color:A,mr:1}),(0,e.createComponentVNode)(2,m.Button,{content:"Change Hair Color",onClick:function(){function W(){return b("hair_color")}return W}()})]}),(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.ColorBox,{color:O,mr:1}),(0,e.createComponentVNode)(2,m.Button,{content:"Change Ears Color",onClick:function(){function W(){return b("ears_color")}return W}()})]}),(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.ColorBox,{color:_,mr:1}),(0,e.createComponentVNode)(2,m.Button,{content:"Change Secondary Ears Color",onClick:function(){function W(){return b("ears2_color")}return W}()})]}),(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.ColorBox,{color:P,mr:1}),(0,e.createComponentVNode)(2,m.Button,{content:"Change Tail Color",onClick:function(){function W(){return b("tail_color")}return W}()})]}),(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.ColorBox,{color:D,mr:1}),(0,e.createComponentVNode)(2,m.Button,{content:"Change Secondary Tail Color",onClick:function(){function W(){return b("tail2_color")}return W}()})]}),(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.ColorBox,{color:z,mr:1}),(0,e.createComponentVNode)(2,m.Button,{content:"Change Wing Color",onClick:function(){function W(){return b("wing_color")}return W}()})]}),(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.ColorBox,{color:U,mr:1}),(0,e.createComponentVNode)(2,m.Button,{content:"Change Secondary Wing Color",onClick:function(){function W(){return b("wing2_color")}return W}()})]})],4):null,w?(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.ColorBox,{color:R,mr:1}),(0,e.createComponentVNode)(2,m.Button,{content:"Change Facial Hair Color",onClick:function(){function W(){return b("facial_hair_color")}return W}()})]}):null]})},s=function(v,f){var C=(0,o.useBackend)(f),b=C.act,g=C.data,y=g.hair_style,B=g.hair_styles;return(0,e.createComponentVNode)(2,m.Section,{title:"Hair",fill:!0,scrollable:!0,children:B.map(function(L){return(0,e.createComponentVNode)(2,m.Button,{onClick:function(){function I(){return b("hair",{hair:L.hairstyle})}return I}(),selected:L.hairstyle===y,content:L.hairstyle},L.hairstyle)})})},l=function(v,f){var C=(0,o.useBackend)(f),b=C.act,g=C.data,y=g.facial_hair_style,B=g.facial_hair_styles;return(0,e.createComponentVNode)(2,m.Section,{title:"Facial Hair",fill:!0,scrollable:!0,children:B.map(function(L){return(0,e.createComponentVNode)(2,m.Button,{onClick:function(){function I(){return b("facial_hair",{facial_hair:L.facialhairstyle})}return I}(),selected:L.facialhairstyle===y,content:L.facialhairstyle},L.facialhairstyle)})})},u=function(v,f){var C=(0,o.useBackend)(f),b=C.act,g=C.data,y=g.ear_style,B=g.ear_styles;return(0,e.createComponentVNode)(2,m.Section,{title:"Ears",fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,m.Button,{onClick:function(){function L(){return b("ear",{clear:!0})}return L}(),selected:y===null,content:"-- Not Set --"}),(0,a.sortBy)(function(L){return L.name.toLowerCase()})(B).map(function(L){return(0,e.createComponentVNode)(2,m.Button,{onClick:function(){function I(){return b("ear",{ref:L.instance})}return I}(),selected:L.name===y,content:L.name},L.instance)})]})},i=function(v,f){var C=(0,o.useBackend)(f),b=C.act,g=C.data,y=g.tail_style,B=g.tail_styles;return(0,e.createComponentVNode)(2,m.Section,{title:"Tails",fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,m.Button,{onClick:function(){function L(){return b("tail",{clear:!0})}return L}(),selected:y===null,content:"-- Not Set --"}),(0,a.sortBy)(function(L){return L.name.toLowerCase()})(B).map(function(L){return(0,e.createComponentVNode)(2,m.Button,{onClick:function(){function I(){return b("tail",{ref:L.instance})}return I}(),selected:L.name===y,content:L.name},L.instance)})]})},c=function(v,f){var C=(0,o.useBackend)(f),b=C.act,g=C.data,y=g.wing_style,B=g.wing_styles;return(0,e.createComponentVNode)(2,m.Section,{title:"Wings",fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,m.Button,{onClick:function(){function L(){return b("wing",{clear:!0})}return L}(),selected:y===null,content:"-- Not Set --"}),(0,a.sortBy)(function(L){return L.name.toLowerCase()})(B).map(function(L){return(0,e.createComponentVNode)(2,m.Button,{onClick:function(){function I(){return b("wing",{ref:L.instance})}return I}(),selected:L.name===y,content:L.name},L.instance)})]})},d=function(v,f){var C=(0,o.useBackend)(f),b=C.act,g=C.data,y=g.markings;return(0,e.createComponentVNode)(2,m.Section,{title:"Markings",fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,m.Button,{content:"Add Marking",onClick:function(){function B(){return b("marking",{todo:1,name:"na"})}return B}()})}),(0,e.createComponentVNode)(2,m.LabeledList,{children:y.map(function(B){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:B.marking_name,children:[(0,e.createComponentVNode)(2,m.ColorBox,{color:B.marking_color,mr:1}),(0,e.createComponentVNode)(2,m.Button,{content:"Change Color",onClick:function(){function L(){return b("marking",{todo:4,name:B.marking_name})}return L}()}),(0,e.createComponentVNode)(2,m.Button,{content:"-",onClick:function(){function L(){return b("marking",{todo:0,name:B.marking_name})}return L}()}),(0,e.createComponentVNode)(2,m.Button,{content:"Move down",onClick:function(){function L(){return b("marking",{todo:3,name:B.marking_name})}return L}()}),(0,e.createComponentVNode)(2,m.Button,{content:"Move up",onClick:function(){function L(){return b("marking",{todo:2,name:B.marking_name})}return L}()})]},B.marking_name)})})]})}},95587:function(x,r,n){"use strict";r.__esModule=!0,r.ArcadeBattle=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.ArcadeBattle=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.name,u=s.temp,i=s.enemyAction,c=s.enemyName,d=s.playerHP,p=s.playerMP,v=s.enemyHP,f=s.enemyMP,C=s.gameOver;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:240,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:c,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Section,{color:"label",children:[(0,e.createComponentVNode)(2,t.Box,{children:u}),(0,e.createComponentVNode)(2,t.Box,{children:!C&&i})]}),(0,e.createComponentVNode)(2,t.Flex,{spacing:1,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Player Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:d,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[d,"HP"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Player Magic",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[p,"MP"]})})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Enemy HP",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:v,minValue:0,maxValue:45,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[v,"HP"]})})})})]}),C&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,color:"green",content:"New Game",onClick:function(){function b(){return h("newgame")}return b}()})||(0,e.createComponentVNode)(2,t.Flex,{mt:2,justify:"space-between",spacing:1,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",onClick:function(){function b(){return h("attack")}return b}(),content:"Attack!"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",onClick:function(){function b(){return h("heal")}return b}(),content:"Heal!"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",onClick:function(){function b(){return h("charge")}return b}(),content:"Recharge!"})})]})]})})})}return V}()},56127:function(x,r,n){"use strict";r.__esModule=!0,r.AreaScrubberControl=void 0;var e=n(58734),a=n(11790),t=n(62188),o=n(11477),m=n(40946),V=r.AreaScrubberControl=function(){function S(N,h){var s=(0,t.useBackend)(h),l=s.act,u=s.data,i=(0,t.useLocalState)(h,"showArea",!1),c=i[0],d=i[1],p=u.scrubbers;return p?(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Flex,{wrap:"wrap",children:[(0,e.createComponentVNode)(2,a.Flex.Item,{m:"2px",basis:"49%",children:(0,e.createComponentVNode)(2,a.Button,{textAlign:"center",fluid:!0,icon:"search",content:"Scan",onClick:function(){function v(){return l("scan")}return v}()})}),(0,e.createComponentVNode)(2,a.Flex.Item,{m:"2px",basis:"49%",grow:1,children:(0,e.createComponentVNode)(2,a.Button,{textAlign:"center",fluid:!0,icon:"layer-group",content:"Show Areas",selected:c,onClick:function(){function v(){return d(!c)}return v}()})}),(0,e.createComponentVNode)(2,a.Flex.Item,{m:"2px",basis:"49%",children:(0,e.createComponentVNode)(2,a.Button,{textAlign:"center",fluid:!0,icon:"toggle-on",content:"All On",onClick:function(){function v(){return l("allon")}return v}()})}),(0,e.createComponentVNode)(2,a.Flex.Item,{m:"2px",basis:"49%",grow:1,children:(0,e.createComponentVNode)(2,a.Button,{textAlign:"center",fluid:!0,icon:"toggle-off",content:"All Off",onClick:function(){function v(){return l("alloff")}return v}()})})]}),(0,e.createComponentVNode)(2,a.Flex,{wrap:"wrap",children:p.map(function(v){return(0,e.createComponentVNode)(2,a.Flex.Item,{m:"2px",basis:"32%",children:(0,e.createComponentVNode)(2,k,{scrubber:v,showArea:c})},v.id)})})]})})}):(0,e.createComponentVNode)(2,a.Section,{title:"Error",children:[(0,e.createComponentVNode)(2,a.Box,{color:"bad",children:"No Scrubbers Detected."}),(0,e.createComponentVNode)(2,a.Button,{fluid:!0,icon:"search",content:"Scan",onClick:function(){function v(){return l("scan")}return v}()})]})}return S}(),k=function(N,h){var s=(0,t.useBackend)(h),l=s.act,u=N.scrubber,i=N.showArea;return(0,e.createComponentVNode)(2,a.Section,{title:u.name,children:[(0,e.createComponentVNode)(2,a.Button,{fluid:!0,icon:"power-off",content:u.on?"Enabled":"Disabled",selected:u.on,onClick:function(){function c(){return l("toggle",{id:u.id})}return c}()}),(0,e.createComponentVNode)(2,a.LabeledList,{children:[(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure",children:[u.pressure," kPa"]}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Flow Rate",children:[u.flow_rate," L/s"]}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Load",children:[u.load," W"]}),i&&(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Area",children:(0,m.toTitleCase)(u.area)})]})]})}},59958:function(x,r,n){"use strict";r.__esModule=!0,r.AssemblyInfrared=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.AssemblyInfrared=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.on,u=s.visible;return(0,e.createComponentVNode)(2,o.Window,{children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Infrared Unit",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Laser",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",fluid:!0,selected:l,onClick:function(){function i(){return h("state")}return i}(),children:l?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Visibility",children:(0,e.createComponentVNode)(2,t.Button,{icon:"eye",fluid:!0,selected:u,onClick:function(){function i(){return h("visible")}return i}(),children:u?"Able to be seen":"Invisible"})})]})})})})}return V}()},43454:function(x,r,n){"use strict";r.__esModule=!0,r.AssemblyProx=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(11477),V=n(43820),k=r.AssemblyProx=function(){function S(N,h){var s=(0,t.useBackend)(h),l=s.act,u=s.data,i=u.timing,c=u.time,d=u.range,p=u.maxRange,v=u.scanning;return(0,e.createComponentVNode)(2,m.Window,{children:(0,e.createComponentVNode)(2,m.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Timing Unit",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Timer",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"stopwatch",selected:i,onClick:function(){function f(){return l("timing")}return f}(),children:i?"Counting Down":"Disabled"}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animated:!0,fluid:!0,value:c/10,minValue:0,maxValue:600,format:function(){function f(C){return(0,V.formatTime)((0,a.round)(C))}return f}(),onDrag:function(){function f(C,b){return l("set_time",{time:b})}return f}()})})})}),(0,e.createComponentVNode)(2,o.Section,{title:"Prox Unit",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,o.NumberInput,{minValue:1,value:d,maxValue:p,onDrag:function(){function f(C,b){return l("range",{range:b})}return f}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Armed",children:[(0,e.createComponentVNode)(2,o.Button,{mr:1,icon:v?"lock":"lock-open",selected:v,onClick:function(){function f(){return l("scanning")}return f}(),children:v?"ARMED":"Unarmed"}),"Movement sensor is active when armed!"]})]})})]})})}return S}()},99152:function(x,r,n){"use strict";r.__esModule=!0,r.AssemblyTimer=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(11477),V=n(43820),k=r.AssemblyTimer=function(){function S(N,h){var s=(0,t.useBackend)(h),l=s.act,u=s.data,i=u.timing,c=u.time;return(0,e.createComponentVNode)(2,m.Window,{children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Timing Unit",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Timer",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"stopwatch",selected:i,onClick:function(){function d(){return l("timing")}return d}(),children:i?"Counting Down":"Disabled"}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animated:!0,fluid:!0,value:c/10,minValue:0,maxValue:600,format:function(){function d(p){return(0,V.formatTime)((0,a.round)(p))}return d}(),onDrag:function(){function d(p,v){return l("set_time",{time:v})}return d}()})})})})})})}return S}()},2606:function(x,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.AtmosAlertConsole=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.priority_alarms||[],u=s.minor_alarms||[];return(0,e.createComponentVNode)(2,o.Window,{width:350,height:300,resizable:!0,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,[l.length===0&&(0,e.createVNode)(1,"li","color-good","No Priority Alerts",16),l.map(function(i){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:i.name,color:"bad",onClick:function(){function c(){return h("clear",{ref:i.ref})}return c}()}),2,null,i.name)}),u.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),u.map(function(i){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:i.name,color:"average",onClick:function(){function c(){return h("clear",{ref:i.ref})}return c}()}),2,null,i.name)})],0)})})})}return V}()},49907:function(x,r,n){"use strict";r.__esModule=!0,r.AtmosControlContent=r.AtmosControl=void 0;var e=n(58734),a=n(45445),t=n(11477),o=n(11790),m=n(62188),V=n(66905),k=(0,V.createLogger)("fuck"),S=r.AtmosControl=function(){function h(s,l){return(0,e.createComponentVNode)(2,t.Window,{width:600,height:440,resizable:!0,children:(0,e.createComponentVNode)(2,t.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,N)})})}return h}(),N=r.AtmosControlContent=function(){function h(s,l){var u=(0,m.useBackend)(l),i=u.act,c=u.data,d=u.config,p=(0,a.sortBy)(function(L){return L.name})(c.alarms||[]),v=(0,m.useLocalState)(l,"tabIndex",0),f=v[0],C=v[1],b=(0,m.useLocalState)(l,"zoom",1),g=b[0],y=b[1],B;return f===0?B=(0,e.createComponentVNode)(2,o.Section,{title:"Alarms",children:p.map(function(L){return(0,e.createComponentVNode)(2,o.Button,{content:L.name,color:L.danger===2?"bad":L.danger===1?"average":"",onClick:function(){function I(){return i("alarm",{alarm:L.ref})}return I}()},L.name)})}):f===1&&(B=(0,e.createComponentVNode)(2,o.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,o.NanoMap,{onZoom:function(){function L(I){return y(I)}return L}(),children:p.filter(function(L){return~~L.z===~~d.mapZLevel}).map(function(L){return(0,e.createComponentVNode)(2,o.NanoMap.Marker,{x:L.x,y:L.y,zoom:g,icon:"bell",tooltip:L.name,color:L.danger?"red":"green",onClick:function(){function I(){return i("alarm",{alarm:L.ref})}return I}()},L.ref)})})})),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:f===0,onClick:function(){function L(){return C(0)}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"table"})," Alarm View"]},"AlarmView"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:f===1,onClick:function(){function L(){return C(1)}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.createComponentVNode)(2,o.Box,{m:2,children:B})],4)}return h}()},15555:function(x,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.AtmosFilter=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.filter_types||[];return(0,e.createComponentVNode)(2,o.Window,{width:390,height:187,resizable:!0,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:s.on?"power-off":"times",content:s.on?"On":"Off",selected:s.on,onClick:function(){function u(){return h("power")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer Rate",children:[(0,e.createComponentVNode)(2,t.Box,{inline:!0,mr:1,children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:s.last_flow_rate,format:function(){function u(i){return i+" L/s"}return u}()})}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(s.rate),width:"63px",unit:"L/s",minValue:0,maxValue:200,onDrag:function(){function u(i,c){return h("rate",{rate:c})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{ml:1,icon:"plus",content:"Max",disabled:s.rate===s.max_rate,onClick:function(){function u(){return h("rate",{rate:"max"})}return u}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:l.map(function(u){return(0,e.createComponentVNode)(2,t.Button,{selected:u.selected,content:u.name,onClick:function(){function i(){return h("filter",{filterset:u.f_type})}return i}()},u.name)})})]})})})})}return V}()},41194:function(x,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.AtmosMixer=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data;return(0,e.createComponentVNode)(2,o.Window,{width:370,height:195,resizable:!0,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:s.on?"power-off":"times",content:s.on?"On":"Off",selected:s.on,onClick:function(){function l(){return h("power")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Pressure",children:[(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(s.set_pressure),unit:"kPa",width:"75px",minValue:0,maxValue:s.max_pressure,step:10,onChange:function(){function l(u,i){return h("pressure",{pressure:i})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{ml:1,icon:"plus",content:"Max",disabled:s.set_pressure===s.max_pressure,onClick:function(){function l(){return h("pressure",{pressure:"max"})}return l}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider,{size:1}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{color:"label",children:(0,e.createVNode)(1,"u",null,"Concentrations",16)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Node 1 ("+s.node1_dir+")",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:s.node1_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(){function l(u,i){return h("node1",{concentration:i})}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Node 2 ("+s.node2_dir+")",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:s.node2_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(){function l(u,i){return h("node2",{concentration:i})}return l}()})})]})})})})}return V}()},68162:function(x,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(58734),a=n(75671),t=n(45445),o=n(62188),m=n(11790),V=n(11477),k=n(88662),S=n(40946),N=function(l,u,i){if(i===void 0&&(i=1),l.requirements===null)return!0;for(var c=Object.keys(l.requirements),d=function(){var b=f[v],g=u.find(function(y){return y.name===b});if(!g)return 0;if(g.amount<l.requirements[b]*i)return{v:!1}},p,v=0,f=c;v<f.length;v++)if(p=d(),p!==0&&p)return p.v;return!0},h=r.Autolathe=function(){function s(l,u){var i=(0,o.useBackend)(u),c=i.act,d=i.data,p=d.recipes,v=d.busy,f=d.materials,C=d.categories,b=(0,o.useSharedState)(u,"category",0),g=b[0],y=b[1],B=(0,o.useSharedState)(u,"search_text",""),L=B[0],I=B[1],w=(0,S.createSearch)(L,function(M){return M.name}),T=(0,a.flow)([(0,t.filter)(function(M){return M.category===C[g]}),L&&(0,t.filter)(w),(0,t.sortBy)(function(M){return M.name.toLowerCase()})])(p);return(0,e.createComponentVNode)(2,V.Window,{width:550,height:700,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,m.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,k.Materials,{disableEject:!0})}),(0,e.createComponentVNode)(2,m.Section,{title:"Recipes",buttons:(0,e.createComponentVNode)(2,m.Dropdown,{width:"190px",options:C,selected:C[g],onSelected:function(){function M(A){return y(C.indexOf(A))}return M}()}),children:[(0,e.createComponentVNode)(2,m.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function M(A,R){return I(R)}return M}(),mb:1}),T.map(function(M){return(0,e.createComponentVNode)(2,m.Flex,{justify:"space-between",align:"center",children:[(0,e.createComponentVNode)(2,m.Flex.Item,{children:[(0,e.createComponentVNode)(2,m.Button,{color:M.hidden&&"red"||null,icon:"hammer",iconSpin:v===M.name,disabled:!N(M,f,1),onClick:function(){function A(){return c("make",{make:M.ref})}return A}(),children:(0,S.toTitleCase)(M.name)}),!M.is_stack&&(0,e.createComponentVNode)(2,m.Box,{as:"span",children:[(0,e.createComponentVNode)(2,m.Button,{color:M.hidden&&"red"||null,disabled:!N(M,f,5),onClick:function(){function A(){return c("make",{make:M.ref,multiplier:5})}return A}(),children:"x5"}),(0,e.createComponentVNode)(2,m.Button,{color:M.hidden&&"red"||null,disabled:!N(M,f,10),onClick:function(){function A(){return c("make",{make:M.ref,multiplier:10})}return A}(),children:"x10"})]})||null]}),(0,e.createComponentVNode)(2,m.Flex.Item,{children:M.requirements&&Object.keys(M.requirements).map(function(A){return(0,S.toTitleCase)(A)+": "+M.requirements[A]}).join(", ")||(0,e.createComponentVNode)(2,m.Box,{children:"No resources required."})})]},M.ref)})]})]})})}return s}()},44534:function(x,r,n){"use strict";r.__esModule=!0,r.Batteryrack=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.Batteryrack=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.mode,u=s.transfer_max,i=s.output_load,c=s.input_load,d=s.equalise,p=s.blink_tick,v=s.cells_max,f=s.cells_cur,C=s.cells_list;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:430,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Mode",children:l===1&&(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"OUTPUT ONLY"})||l===2&&(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"INPUT ONLY"})||l===3&&(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"INPUT AND OUTPUT"})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"OFFLINE"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Status",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:c})," / ",u," W"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Status",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:i})," / ",u," W"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Control Panel",children:[(0,e.createComponentVNode)(2,t.Button,{content:"OFF",selected:l===0,onClick:function(){function b(){return h("disable")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"OUT",selected:l===1,onClick:function(){function b(){return h("enable",{enable:1})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"IN",selected:l===2,onClick:function(){function b(){return h("enable",{enable:2})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"IN/OUT",selected:l===3,onClick:function(){function b(){return h("enable",{enable:3})}return b}()}),d&&(0,e.createComponentVNode)(2,t.Button,{content:"EQ",color:p?"red":"yellow",onClick:function(){function b(){return h("equaliseoff")}return b}()})||(0,e.createComponentVNode)(2,t.Button,{content:"EQ",onClick:function(){function b(){return h("equaliseon")}return b}()})]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Cells",children:(0,e.createComponentVNode)(2,t.Table,{children:C.map(function(b){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:["Cell ",b.slot]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:b.used?b.percentage:100,minValue:0,maxValue:100,color:b.used?"good":"bad",children:b.used?b.percentage+"%":"N/C"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!b.used,onClick:function(){function g(){return h("ejectcell",{ejectcell:b.id})}return g}()})})]},b.slot)})})})]})})}return V}()},70242:function(x,r,n){"use strict";r.__esModule=!0,r.BeaconLocator=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(11477),V=r.BeaconLocator=function(){function k(S,N){var h=(0,t.useBackend)(N),s=h.act,l=h.data,u=l.scan_ticks,i=l.degrees,c=l.rawfreq,d=l.minFrequency,p=l.maxFrequency;return(0,e.createComponentVNode)(2,m.Window,{width:300,height:220,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Beacon Locator",children:[u&&(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Scanning..."})||null,i&&(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.Icon,{size:4,name:"arrow-up",rotation:i})}),"Locked on. Follow the arrow."]})||(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"No lock."}),(0,e.createComponentVNode)(2,o.Button,{mt:1,mb:1,fluid:!0,icon:"broadcast-tower",onClick:function(){function v(){return s("reset_tracking")}return v}(),children:"Reset tracker"}),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,e.createComponentVNode)(2,o.NumberInput,{animated:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:d/10,maxValue:p/10,value:c/10,format:function(){function v(f){return(0,a.toFixed)(f,1)}return v}(),onDrag:function(){function v(f,C){return s("setFrequency",{freq:(0,a.round)(C*10)})}return v}()})})})]})})})}return k}()},76131:function(x,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=n(11477),V=["title","items"];function k(i,c){if(i==null)return{};var d={},p=Object.keys(i),v,f;for(f=0;f<p.length;f++)v=p[f],!(c.indexOf(v)>=0)&&(d[v]=i[v]);return d}var S={Alphabetical:function(){function i(c,d){return c-d}return i}(),"By availability":function(){function i(c,d){return-(c.affordable-d.affordable)}return i}(),"By price":function(){function i(c,d){return c.price-d.price}return i}()},N=r.Biogenerator=function(){function i(c,d){var p=(0,t.useBackend)(d),v=p.act,f=p.data;return(0,e.createComponentVNode)(2,m.Window,{width:400,height:450,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:f.processing&&(0,e.createComponentVNode)(2,o.Section,{title:"Processing",children:"The biogenerator is processing reagents!"})||(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{children:[f.points," points available.",(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"blender",onClick:function(){function C(){return v("activate")}return C}(),children:"Activate"}),(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"eject",disabled:!f.beaker,onClick:function(){function C(){return v("detach")}return C}(),children:"Eject Beaker"})]}),(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,h)],4)})})}return i}(),h=function(c,d){var p=(0,t.useBackend)(d),v=p.act,f=p.data,C=f.points,b=f.items,g=(0,t.useLocalState)(d,"search",""),y=g[0],B=g[1],L=(0,t.useLocalState)(d,"sort","Alphabetical"),I=L[0],w=L[1],T=(0,t.useLocalState)(d,"descending",!1),M=T[0],A=T[1],R=(0,a.createSearch)(y,function(P){return P[0]}),O=!1,_=Object.entries(b).map(function(P,D){var z=Object.entries(P[1]).filter(R).map(function(U){return U[1].affordable=C>=U[1].price/f.build_eff,U[1]}).sort(S[I]);if(z.length!==0)return M&&(z=z.reverse()),O=!0,(0,e.createComponentVNode)(2,u,{title:P[0],items:z},P[0])});return(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Section,{children:O?_:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},s=function(c,d){var p=(0,t.useLocalState)(d,"search",""),v=p[0],f=p[1],C=(0,t.useLocalState)(d,"sort",""),b=C[0],g=C[1],y=(0,t.useLocalState)(d,"descending",!1),B=y[0],L=y[1];return(0,e.createComponentVNode)(2,o.Box,{mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Flex,{width:"100%",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(){function I(w,T){return f(T)}return I}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(S),width:"100%",lineHeight:"19px",onSelected:function(){function I(w){return g(w)}return I}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:B?"arrow-down":"arrow-up",height:"19px",tooltip:B?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){function I(){return L(!B)}return I}()})})]})})},l=function(c,d){return!(!c.affordable||c.reagent&&!d.beaker)},u=function(c,d){var p=(0,t.useBackend)(d),v=p.act,f=p.data,C=c.title,b=c.items,g=k(c,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:C},g,{children:b.map(function(y){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:y.name}),(0,e.createComponentVNode)(2,o.Button,{disabled:!l(y,f),content:(y.price/f.build_eff).toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){function B(){return v("purchase",{cat:C,name:y.name})}return B}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})]},y.name)})})))}},66610:function(x,r,n){"use strict";r.__esModule=!0,r.BodyDesigner=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=n(11477),V=r.BodyDesigner=function(){function u(i,c){var d=(0,t.useBackend)(c),p=d.act,v=d.data,f=v.menu,C=v.disk,b=v.diskStored,g=v.activeBodyRecord,y=l[f];return(0,e.createComponentVNode)(2,m.Window,{width:400,height:650,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:[C?(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{icon:"save",content:"Save To Disk",onClick:function(){function B(){return p("savetodisk")}return B}(),disabled:!g}),(0,e.createComponentVNode)(2,o.Button,{icon:"save",content:"Load From Disk",onClick:function(){function B(){return p("loadfromdisk")}return B}(),disabled:!b}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function B(){return p("ejectdisk")}return B}()})]}):null,y]})})}return u}(),k=function(i,c){var d=(0,t.useBackend)(c),p=d.act,v=d.data;return(0,e.createComponentVNode)(2,o.Section,{title:"Database Functions",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"eye",content:"View Individual Body Records",onClick:function(){function f(){return p("menu",{menu:"Body Records"})}return f}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",content:"View Stock Body Records",onClick:function(){function f(){return p("menu",{menu:"Stock Records"})}return f}()})]})},S=function(i,c){var d=(0,t.useBackend)(c),p=d.act,v=d.data,f=v.bodyrecords;return(0,e.createComponentVNode)(2,o.Section,{title:"Body Records",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function C(){return p("menu",{menu:"Main"})}return C}()}),children:f.map(function(C){return(0,e.createComponentVNode)(2,o.Button,{icon:"eye",content:C.name,onClick:function(){function b(){return p("view_brec",{view_brec:C.recref})}return b}()},C.name)})})},N=function(i,c){var d=(0,t.useBackend)(c),p=d.act,v=d.data,f=v.stock_bodyrecords;return(0,e.createComponentVNode)(2,o.Section,{title:"Stock Records",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function C(){return p("menu",{menu:"Main"})}return C}()}),children:f.map(function(C){return(0,e.createComponentVNode)(2,o.Button,{icon:"eye",content:C,onClick:function(){function b(){return p("view_stock_brec",{view_stock_brec:C})}return b}()},C)})})},h=function(i,c){var d=(0,t.useBackend)(c),p=d.act,v=d.data,f=v.activeBodyRecord,C=v.mapRef;return f?(0,e.createComponentVNode)(2,o.Flex,{direction:"column",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"165px",children:(0,e.createComponentVNode)(2,o.Section,{title:"Specific Record",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function b(){return p("menu",{menu:"Main"})}return b}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:f.real_name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Species",children:f.speciesname}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Bio. Sex",children:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:(0,a.capitalize)(f.gender),onClick:function(){function b(){return p("href_conversion",{target_href:"bio_gender",target_value:1})}return b}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Synthetic",children:f.synthetic}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mind Compat",children:[f.locked,(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"eye",content:"View OOC Notes",disabled:!f.booc,onClick:function(){function b(){return p("boocnotes")}return b}()})]})]})})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"130px",children:(0,e.createComponentVNode)(2,o.ByondUi,{style:{width:"100%",height:"128px"},params:{id:C,type:"map"}})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"300px",children:(0,e.createComponentVNode)(2,o.Section,{title:"Customize",height:"300px",style:{overflow:"auto"},children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scale",children:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:f.scale,onClick:function(){function b(){return p("href_conversion",{target_href:"size_multiplier",target_value:1})}return b}()})}),Object.keys(f.styles).map(function(b){var g=f.styles[b];return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:b,children:[g.styleHref?(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:g.style,onClick:function(){function y(){return p("href_conversion",{target_href:g.styleHref,target_value:1})}return y}()}):null,g.colorHref?(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:g.color,onClick:function(){function y(){return p("href_conversion",{target_href:g.colorHref,target_value:1})}return y}()}),(0,e.createComponentVNode)(2,o.ColorBox,{verticalAlign:"top",width:"32px",height:"20px",color:g.color,style:{border:"1px solid #fff"}})]}):null,g.colorHref2?(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:g.color2,onClick:function(){function y(){return p("href_conversion",{target_href:g.colorHref2,target_value:1})}return y}()}),(0,e.createComponentVNode)(2,o.ColorBox,{verticalAlign:"top",width:"32px",height:"20px",color:g.color2,style:{border:"1px solid #fff"}})]}):null]},b)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Body Markings",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"plus",content:"Add Marking",onClick:function(){function b(){return p("href_conversion",{target_href:"marking_style",target_value:1})}return b}()}),(0,e.createComponentVNode)(2,o.Flex,{wrap:"wrap",justify:"center",align:"center",children:Object.keys(f.markings).map(function(b){var g=f.markings[b];return(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"100%",children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{mr:.2,fluid:!0,icon:"times",color:"red",onClick:function(){function y(){return p("href_conversion",{target_href:"marking_remove",target_value:b})}return y}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,backgroundColor:g,content:b,onClick:function(){function y(){return p("href_conversion",{target_href:"marking_color",target_value:b})}return y}()})})]})},b)})})]})]})})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"ERROR: Record Not Found!"})},s=function(i,c){var d=(0,t.useBackend)(c),p=d.act,v=d.data,f=v.activeBodyRecord;return(0,e.createComponentVNode)(2,o.Section,{title:"Body OOC Notes (This is OOC!)",height:"100%",scrollable:!0,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function C(){return p("menu",{menu:"Specific Record"})}return C}()}),style:{"word-break":"break-all"},children:f&&f.booc||"ERROR: Body record not found!"})},l={Main:(0,e.createComponentVNode)(2,k),"Body Records":(0,e.createComponentVNode)(2,S),"Stock Records":(0,e.createComponentVNode)(2,N),"Specific Record":(0,e.createComponentVNode)(2,h),"OOC Notes":(0,e.createComponentVNode)(2,s)}},26393:function(x,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(11477),V=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],k=[["hasBorer","bad",function(y){return"Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."}],["hasVirus","bad",function(y){return"Viral pathogen detected in blood stream."}],["blind","average",function(y){return"Cataracts detected."}],["colourblind","average",function(y){return"Photoreceptor abnormalities detected."}],["nearsighted","average",function(y){return"Retinal misalignment detected."}],["humanPrey","average",function(y){return"Foreign Humanoid(s) detected: "+y.humanPrey}],["livingPrey","average",function(y){return"Foreign Creature(s) detected: "+y.livingPrey}],["objectPrey","average",function(y){return"Foreign Object(s) detected: "+y.objectPrey}]],S=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Genetic","cloneLoss"],["Burn","fireLoss"],["Paralysis","paralysis"]],N={average:[.25,.5],bad:[.5,1/0]},h=function(B,L){for(var I=[],w=0;w<B.length;w+=2)I.push(L(B[w],B[w+1],w));return I},s=function(B){return B.length>0?B.reduce(function(L,I){return L===null?I:(0,e.createFragment)([L,!!I&&(0,e.createComponentVNode)(2,o.Box,{children:I})],0)}):null},l=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""},u=r.BodyScanner=function(){function y(B,L){var I=(0,t.useBackend)(L),w=I.data,T=w.occupied,M=w.occupant,A=M===void 0?{}:M,R=T?(0,e.createComponentVNode)(2,i,{occupant:A}):(0,e.createComponentVNode)(2,g);return(0,e.createComponentVNode)(2,m.Window,{width:690,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:R})})}return y}(),i=function(B){var L=B.occupant;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,c,{occupant:L}),(0,e.createComponentVNode)(2,d,{occupant:L}),(0,e.createComponentVNode)(2,p,{occupant:L}),(0,e.createComponentVNode)(2,v,{occupant:L}),(0,e.createComponentVNode)(2,C,{organs:L.extOrgan}),(0,e.createComponentVNode)(2,b,{organs:L.intOrgan})]})},c=function(B,L){var I=(0,t.useBackend)(L),w=I.act,T=I.data,M=T.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",onClick:function(){function A(){return w("ejectify")}return A}(),children:"Eject"}),(0,e.createComponentVNode)(2,o.Button,{icon:"print",onClick:function(){function A(){return w("print_p")}return A}(),children:"Print Report"})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:M.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:M.maxHealth,value:M.health/M.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:V[M.stat][0],children:V[M.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(M.bodyTempC,0)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(M.bodyTempF,0)}),"\xB0F"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Volume",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(M.blood.volume,0)})," ","units\xA0(",(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(M.blood.percent,0)}),"%)"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Weight",children:(0,a.round)(T.occupant.weight)+"lbs, "+(0,a.round)(T.occupant.weight/2.20463)+"kgs"})]})})},d=function(B){var L=B.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Blood Reagents",children:L.reagents?(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:"Reagent"}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",children:"Amount"})]}),L.reagents.map(function(I){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",children:[I.amount," Units"," ",I.overdose?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"OVERDOSING"}):null]})]},I.name)})]}):(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"No Blood Reagents Detected"})}),(0,e.createComponentVNode)(2,o.Section,{title:"Stomach Reagents",children:L.ingested?(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:"Reagent"}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",children:"Amount"})]}),L.ingested.map(function(I){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",children:[I.amount," Units"," ",I.overdose?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"OVERDOSING"}):null]})]},I.name)})]}):(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"No Stomach Reagents Detected"})})],4)},p=function(B){var L=B.occupant,I=L.hasBorer||L.blind||L.colourblind||L.nearsighted||L.hasVirus;return I=I||L.humanPrey||L.livingPrey||L.objectPrey,I?(0,e.createComponentVNode)(2,o.Section,{title:"Abnormalities",children:k.map(function(w,T){if(L[w[0]])return(0,e.createComponentVNode)(2,o.Box,{color:w[1],bold:w[1]==="bad",children:w[2](L)})})}):(0,e.createComponentVNode)(2,o.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No abnormalities found."})})},v=function(B){var L=B.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,o.Table,{children:h(S,function(I,w,T){return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[I[0],":"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:!!w&&w[0]+":"})]}),(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,f,{value:L[I[1]],marginBottom:T<S.length-2})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:!!w&&(0,e.createComponentVNode)(2,f,{value:L[w[1]]})})]})],4)})})})},f=function(B){return(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:B.value/100,mt:"0.5rem",mb:!!B.marginBottom&&"0.5rem",ranges:N,children:(0,a.round)(B.value,0)})},C=function(B){return B.organs.length===0?(0,e.createComponentVNode)(2,o.Section,{title:"External Organs",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,o.Section,{title:"External Organs",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:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",children:"Injuries"})]}),B.organs.map(function(L,I){return(0,e.createComponentVNode)(2,o.Table.Row,{textTransform:"capitalize",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{width:"33%",children:L.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",q:!0,children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:L.maxHealth,mt:I>0&&"0.5rem",value:L.totalLoss/100,ranges:N,children:[(0,e.createComponentVNode)(2,o.Box,{float:"left",inline:!0,children:[!!L.bruteLoss&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,position:"relative",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"bone"}),(0,a.round)(L.bruteLoss,0),"\xA0",(0,e.createComponentVNode)(2,o.Tooltip,{position:"top",content:"Brute damage"})]}),!!L.fireLoss&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,position:"relative",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"fire"}),(0,a.round)(L.fireLoss,0),(0,e.createComponentVNode)(2,o.Tooltip,{position:"top",content:"Burn damage"})]})]}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,a.round)(L.totalLoss,0)})]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",width:"33%",children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",inline:!0,children:s([L.internalBleeding&&"Internal bleeding",!!L.status.bleeding&&"External bleeding",L.lungRuptured&&"Ruptured lung",L.destroyed&&"Destroyed",!!L.status.broken&&L.status.broken,l(L.germ_level),!!L.open&&"Open incision"])}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[s([!!L.status.splinted&&"Splinted",!!L.status.robotic&&"Robotic",!!L.status.dead&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"DEAD"})]),s(L.implants.map(function(w){return w.known?w.name:"Unknown object"}))]})]})]},I)})]})})},b=function(B){return B.organs.length===0?(0,e.createComponentVNode)(2,o.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,o.Section,{title:"Internal Organs",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:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",children:"Injuries"})]}),B.organs.map(function(L,I){return(0,e.createComponentVNode)(2,o.Table.Row,{textTransform:"capitalize",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{width:"33%",children:L.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:L.maxHealth,value:L.damage/100,mt:I>0&&"0.5rem",ranges:N,children:(0,a.round)(L.damage,0)})}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",width:"33%",children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",inline:!0,children:s([l(L.germ_level),!!L.inflamed&&"Appendicitis detected."])}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:s([L.robotic===1&&"Robotic",L.robotic===2&&"Assisted",!!L.dead&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"DEAD"})])})]})]},I)})]})})},g=function(){return(0,e.createComponentVNode)(2,o.Section,{textAlign:"center",flexGrow:"1",children:(0,e.createComponentVNode)(2,o.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",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."]})})})}},12043:function(x,r,n){"use strict";r.__esModule=!0,r.BombTester=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477);function m(N,h){N.prototype=Object.create(h.prototype),N.prototype.constructor=N,V(N,h)}function V(N,h){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function s(l,u){return l.__proto__=u,l}return s}(),V(N,h)}var k=r.BombTester=function(){function N(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.simulating,d=i.mode,p=i.tank1,v=i.tank1ref,f=i.tank2,C=i.tank2ref,b=i.canister,g=i.sim_canister_output;return(0,e.createComponentVNode)(2,o.Window,{width:450,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:c&&(0,e.createComponentVNode)(2,S)||(0,e.createComponentVNode)(2,t.Section,{title:"Virtual Explosive Simulator v2.01",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function y(){return u("set_mode",{mode:1})}return y}(),selected:d===1,children:"Single Tank"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function y(){return u("set_mode",{mode:2})}return y}(),selected:d===2,children:"Transfer Valve"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function y(){return u("set_mode",{mode:3})}return y}(),selected:d===3,children:"Canister"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Primary Slot",children:p&&(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function y(){return u("remove_tank",{ref:v})}return y}(),icon:"eject",children:p})||(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function y(){return u("add_tank",{slot:1})}return y}(),icon:"upload",children:"Insert Tank"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Secondary Slot",children:f&&(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function y(){return u("remove_tank",{ref:C})}return y}(),icon:"eject",children:f})||(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function y(){return u("add_tank",{slot:2})}return y}(),icon:"upload",children:"Insert Tank"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connected Canister",buttons:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function y(){return u("canister_scan")}return y}(),icon:"search",children:"Scan"}),children:b&&(0,e.createComponentVNode)(2,t.Box,{color:"label",children:b})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No tank connected."})}),b&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Canister Release Pressure",children:(0,e.createComponentVNode)(2,t.Slider,{minValue:0,value:g,maxValue:1013.25,onDrag:function(){function y(B,L){return u("set_can_pressure",{pressure:L})}return y}()})})]}),(0,e.createComponentVNode)(2,t.Button,{mt:2,color:"red",icon:"bomb",fontSize:2,onClick:function(){function y(){return u("start_sim")}return y}(),fluid:!0,children:"Begin Simulation"})]})})})}return N}(),S=function(N){m(h,N);function h(l){var u;u=N.call(this,l)||this;var i=340,c=205,d=2,p=Math.random()>.5,v=Math.random()>.5;return u.state={x:p?i:0,y:v?c:0,reverseX:!1,reverseY:!1},u.process=setInterval(function(){u.setState(function(f){var C=Object.assign({},f);return C.reverseX?C.x-d<-5?(C.reverseX=!1,C.x+=d):C.x-=d:C.x+d>i?(C.reverseX=!0,C.x-=d):C.x+=d,C.reverseY?C.y-d<-20?(C.reverseY=!1,C.y+=d):C.y-=d:C.y+d>c?(C.reverseY=!0,C.y-=d):C.y+=d,C})},1),u}var s=h.prototype;return s.componentWillUnmount=function(){function l(){clearInterval(this.process)}return l}(),s.render=function(){function l(){var u=this.state,i=u.x,c=u.y,d={position:"relative",left:i+"px",top:c+"px"};return(0,e.createComponentVNode)(2,t.Section,{title:"Simulation in progress!",fill:!0,children:(0,e.createComponentVNode)(2,t.Box,{position:"absolute",style:{overflow:"hidden",width:"100%",height:"100%"},children:(0,e.createComponentVNode)(2,t.Icon,{style:d,name:"bomb",size:10,color:"red"})})})}return l}(),h}(e.Component)},54180:function(x,r,n){"use strict";r.__esModule=!0,r.BotanyEditor=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.BotanyEditor=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.activity,u=s.degradation,i=s.disk,c=s.sourceName,d=s.locus,p=s.loaded;return l?(0,e.createComponentVNode)(2,o.Window,{width:470,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:"Scanning..."})})}):(0,e.createComponentVNode)(2,o.Window,{width:470,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Buffered Genetic Data",children:i&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Source",children:c}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gene Decay",children:[u,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Locus",children:d})]}),(0,e.createComponentVNode)(2,t.Button,{mt:1,icon:"eject",onClick:function(){function v(){return h("eject_disk")}return v}(),children:"Eject Loaded Disk"})]})||(0,e.createComponentVNode)(2,t.NoticeBox,{warning:!0,children:"No disk loaded."})}),(0,e.createComponentVNode)(2,t.Section,{title:"Loaded Material",children:p&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:p})}),(0,e.createComponentVNode)(2,t.Button,{mt:1,icon:"cog",onClick:function(){function v(){return h("apply_gene")}return v}(),children:"Apply Gene Mods"}),(0,e.createComponentVNode)(2,t.Button,{mt:1,icon:"eject",onClick:function(){function v(){return h("eject_packet")}return v}(),children:"Eject Target"})]})||(0,e.createComponentVNode)(2,t.NoticeBox,{warning:!0,children:"No target seed packet loaded."})})]})})}return V}()},89341:function(x,r,n){"use strict";r.__esModule=!0,r.BotanyIsolator=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.BotanyIsolator=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.geneMasks,u=s.activity,i=s.degradation,c=s.disk,d=s.loaded,p=s.hasGenetics,v=s.sourceName;return u?(0,e.createComponentVNode)(2,o.Window,{width:470,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:"Scanning..."})})}):(0,e.createComponentVNode)(2,o.Window,{width:470,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Buffered Genetic Data",children:p&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Source",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gene decay",children:[i,"%"]}),c&&l.length&&l.map(function(f){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:f.mask,children:(0,e.createComponentVNode)(2,t.Button,{mb:-1,icon:"download",onClick:function(){function C(){return h("get_gene",{get_gene:f.tag})}return C}(),children:"Extract"})},f.mask)})||null]}),c&&(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function f(){return h("eject_disk")}return f}(),children:"Eject Loaded Disk"}),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",onClick:function(){function f(){return h("clear_buffer")}return f}(),children:"Clear Genetic Buffer"})]})||(0,e.createComponentVNode)(2,t.NoticeBox,{mt:1,warning:!0,children:"No disk inserted."})]})||(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.NoticeBox,{warning:!0,children:"No Data Buffered."}),c&&(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function f(){return h("eject_disk")}return f}(),children:"Eject Loaded Disk"})||(0,e.createComponentVNode)(2,t.NoticeBox,{mt:1,warning:!0,children:"No disk inserted."})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Loaded Material",children:d&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Packet Loaded",children:d})}),(0,e.createComponentVNode)(2,t.Button,{mt:1,icon:"cog",onClick:function(){function f(){return h("scan_genome")}return f}(),children:"Process Genome"}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function f(){return h("eject_packet")}return f}(),children:"Eject Packet"})]})||(0,e.createComponentVNode)(2,t.NoticeBox,{warning:!0,children:"No packet loaded."})})]})})}return V}()},42903:function(x,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(11477),V=n(43820),k=r.BrigTimer=function(){function S(N,h){var s=(0,t.useBackend)(h),l=s.act,u=s.data;return(0,e.createComponentVNode)(2,m.Window,{width:300,height:138,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Cell Timer",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"clock-o",content:u.timing?"Stop":"Start",selected:u.timing,onClick:function(){function i(){return l(u.timing?"stop":"start")}return i}()}),u.flash_found&&(0,e.createComponentVNode)(2,o.Button,{icon:"lightbulb-o",content:u.flash_charging?"Recharging":"Flash",disabled:u.flash_charging,onClick:function(){function i(){return l("flash")}return i}()})||null],0),children:[(0,e.createComponentVNode)(2,o.NumberInput,{animated:!0,fluid:!0,value:u.time_left/10,minValue:0,maxValue:u.max_time_left/10,format:function(){function i(c){return(0,V.formatTime)((0,a.round)(c))}return i}(),onDrag:function(){function i(c,d){return l("time",{time:d})}return i}()}),(0,e.createComponentVNode)(2,o.Flex,{mt:1,children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,V.formatTime)(u.preset_short/10),onClick:function(){function i(){return l("preset",{preset:"short"})}return i}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,V.formatTime)(u.preset_medium/10),onClick:function(){function i(){return l("preset",{preset:"medium"})}return i}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,V.formatTime)(u.preset_long/10),onClick:function(){function i(){return l("preset",{preset:"long"})}return i}()})})]})]})})})}return S}()},48902:function(x,r,n){"use strict";r.__esModule=!0,r.selectCameras=r.prevNextCamera=r.CameraConsoleContent=r.CameraConsole=void 0;var e=n(58734),a=n(45445),t=n(75671),o=n(59641),m=n(40946),V=n(62188),k=n(11790),S=n(11477),N=r.prevNextCamera=function(){function u(i,c){var d,p;if(!c)return[];var v=i.findIndex(function(f){return f.name===c.name});return[(d=i[v-1])==null?void 0:d.name,(p=i[v+1])==null?void 0:p.name]}return u}(),h=r.selectCameras=function(){function u(i,c,d){c===void 0&&(c=""),d===void 0&&(d="");var p=(0,m.createSearch)(c,function(v){return v.name});return(0,t.flow)([(0,a.filter)(function(v){return v==null?void 0:v.name}),c&&(0,a.filter)(p),d&&(0,a.filter)(function(v){return v.networks.includes(d)}),(0,a.sortBy)(function(v){return v.name})])(i)}return u}(),s=r.CameraConsole=function(){function u(i,c){var d=(0,V.useBackend)(c),p=d.act,v=d.data,f=v.mapRef,C=v.activeCamera,b=h(v.cameras),g=N(b,C),y=g[0],B=g[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,{scrollable:!0,children:(0,e.createComponentVNode)(2,l)}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),C&&C.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createTextVNode)("SEL:"),(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-left",disabled:!y,onClick:function(){function L(){return p("switch_camera",{name:y})}return L}()}),(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-right",disabled:!B,onClick:function(){function L(){return p("switch_camera",{name:B})}return L}()}),(0,e.createTextVNode)("| PAN:"),(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-left",onClick:function(){function L(){return p("pan",{dir:8})}return L}()}),(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-up",onClick:function(){function L(){return p("pan",{dir:1})}return L}()}),(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-right",onClick:function(){function L(){return p("pan",{dir:4})}return L}()}),(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-down",onClick:function(){function L(){return p("pan",{dir:2})}return L}()})],4),(0,e.createComponentVNode)(2,k.ByondUi,{className:"CameraConsole__map",params:{id:f,type:"map"}})],4)]})}return u}(),l=r.CameraConsoleContent=function(){function u(i,c){var d=(0,V.useBackend)(c),p=d.act,v=d.data,f=(0,V.useLocalState)(c,"searchText",""),C=f[0],b=f[1],g=(0,V.useLocalState)(c,"networkFilter",""),y=g[0],B=g[1],L=v.activeCamera,I=v.allNetworks;I.sort();var w=h(v.cameras,C,y);return(0,e.createComponentVNode)(2,k.Flex,{direction:"column",height:"100%",children:[(0,e.createComponentVNode)(2,k.Flex.Item,{children:(0,e.createComponentVNode)(2,k.Input,{autoFocus:!0,fluid:!0,mt:1,placeholder:"Search for a camera",onInput:function(){function T(M,A){return b(A)}return T}()})}),(0,e.createComponentVNode)(2,k.Flex.Item,{children:(0,e.createComponentVNode)(2,k.Dropdown,{mb:1,width:"177px",displayText:y||"No Filter",options:I,onSelected:function(){function T(M){return B(M)}return T}()})}),(0,e.createComponentVNode)(2,k.Flex.Item,{height:"100%",children:(0,e.createComponentVNode)(2,k.Section,{fill:!0,scrollable:!0,children:w.map(function(T){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent","Button--ellipsis",L&&T.name===L.name&&"Button--selected"]),T.name,0,{title:T.name,onClick:function(){function M(){return p("switch_camera",{name:T.name})}return M}()},T.name)})})})]})}return u}()},63295:function(x,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(43820),V=n(11477),k=r.Canister=function(){function S(N,h){var s=(0,t.useBackend)(h),l=s.act,u=s.data,i=u.connected,c=u.can_relabel,d=u.pressure,p=u.releasePressure,v=u.defaultReleasePressure,f=u.minReleasePressure,C=u.maxReleasePressure,b=u.valveOpen,g=u.holding;return(0,e.createComponentVNode)(2,V.Window,{width:360,height:242,resizable:!0,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Canister",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pencil-alt",disabled:!c,content:"Relabel",onClick:function(){function y(){return l("relabel")}return y}()}),children:(0,e.createComponentVNode)(2,o.LabeledControls,{children:[(0,e.createComponentVNode)(2,o.LabeledControls.Item,{minWidth:"66px",label:"Tank Pressure",children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:d,format:function(){function y(B){return B<1e4?(0,a.toFixed)(B)+" kPa":(0,m.formatSiUnit)(B*1e3,1,"Pa")}return y}()})}),(0,e.createComponentVNode)(2,o.LabeledControls.Item,{label:"Regulator",children:(0,e.createComponentVNode)(2,o.Box,{position:"relative",left:"-8px",children:[(0,e.createComponentVNode)(2,o.Knob,{forcedInputWidth:"60px",size:1.25,color:!!b&&"yellow",value:p,unit:"kPa",minValue:f,maxValue:C,stepPixelSize:1,onDrag:function(){function y(B,L){return l("pressure",{pressure:L})}return y}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,position:"absolute",top:"-2px",right:"-20px",color:"transparent",icon:"fast-forward",onClick:function(){function y(){return l("pressure",{pressure:C})}return y}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,position:"absolute",top:"16px",right:"-20px",color:"transparent",icon:"undo",onClick:function(){function y(){return l("pressure",{pressure:v})}return y}()})]})}),(0,e.createComponentVNode)(2,o.LabeledControls.Item,{label:"Valve",children:(0,e.createComponentVNode)(2,o.Button,{my:.5,width:"50px",lineHeight:2,fontSize:"11px",color:b?g?"caution":"danger":null,content:b?"Open":"Closed",onClick:function(){function y(){return l("valve")}return y}()})}),(0,e.createComponentVNode)(2,o.LabeledControls.Item,{mr:1,label:"Port",children:(0,e.createComponentVNode)(2,o.Box,{position:"relative",children:[(0,e.createComponentVNode)(2,o.Icon,{size:1.25,name:i?"plug":"times",color:i?"good":"bad"}),(0,e.createComponentVNode)(2,o.Tooltip,{content:i?"Connected":"Disconnected",position:"top"})]})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Holding Tank",buttons:!!g&&(0,e.createComponentVNode)(2,o.Button,{icon:"eject",color:b&&"danger",content:"Eject",onClick:function(){function y(){return l("eject")}return y}()}),children:[!!g&&(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Label",children:g.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:g.pressure})," kPa"]})]}),!g&&(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"No Holding Tank"})]})]})})}return S}()},45864:function(x,r,n){"use strict";r.__esModule=!0,r.Canvas=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=["res","value","dotsize"];function V(u,i){if(u==null)return{};var c={},d=Object.keys(u),p,v;for(v=0;v<d.length;v++)p=d[v],!(i.indexOf(p)>=0)&&(c[p]=u[p]);return c}function k(u,i){u.prototype=Object.create(i.prototype),u.prototype.constructor=u,S(u,i)}function S(u,i){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(d,p){return d.__proto__=p,d}return c}(),S(u,i)}var N=24,h=function(u){k(i,u);function i(d){var p;return p=u.call(this,d)||this,p.canvasRef=(0,e.createRef)(),p.onCVClick=d.onCanvasClick,p}var c=i.prototype;return c.componentDidMount=function(){function d(){this.drawCanvas(this.props)}return d}(),c.componentDidUpdate=function(){function d(){this.drawCanvas(this.props)}return d}(),c.drawCanvas=function(){function d(p){var v=this.canvasRef.current.getContext("2d"),f=p.value,C=f.length;if(C){var b=f[0].length,g=Math.round(this.canvasRef.current.width/C),y=Math.round(this.canvasRef.current.height/b);v.save(),v.scale(g,y);for(var B=0;B<f.length;B++)for(var L=f[B],I=0;I<L.length;I++){var w=L[I];v.fillStyle=w,v.fillRect(B,I,1,1)}v.restore()}}return d}(),c.clickwrapper=function(){function d(p){var v=this.props.value.length;if(v){var f=this.props.value[0].length,C=this.canvasRef.current.width/v,b=this.canvasRef.current.height/f,g=Math.floor(p.offsetX/C)+1,y=Math.floor(p.offsetY/b)+1;this.onCVClick(g,y)}}return d}(),c.render=function(){function d(){var p=this,v=this.props,f=v.res,C=f===void 0?1:f,b=v.value,g=v.dotsize,y=g===void 0?N:g,B=V(v,m),L=s(b),I=L[0],w=L[1];return(0,e.normalizeProps)((0,e.createVNode)(1,"canvas",null,"Canvas failed to render.",16,Object.assign({width:I*y||300,height:w*y||300},B,{onClick:function(){function T(M){return p.clickwrapper(M)}return T}()}),null,this.canvasRef))}return d}(),i}(e.Component),s=function(i){var c=i.length,d=c!==0?i[0].length:0;return[c,d]},l=r.Canvas=function(){function u(i,c){var d=(0,a.useBackend)(c),p=d.act,v=d.data,f=N,C=s(v.grid),b=C[0],g=C[1];return(0,e.createComponentVNode)(2,o.Window,{width:Math.min(700,b*f+72),height:Math.min(700,g*f+72),children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,h,{value:v.grid,dotsize:f,onCanvasClick:function(){function y(B,L){return p("paint",{x:B,y:L})}return y}()}),(0,e.createComponentVNode)(2,t.Box,{children:[!v.finalized&&(0,e.createComponentVNode)(2,t.Button.Confirm,{onClick:function(){function y(){return p("finalize")}return y}(),content:"Finalize"}),"\xA0",v.name]})]})})})}return u}()},61068:function(x,r,n){"use strict";r.__esModule=!0,r.CasinoPrizeDispenserCh=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=n(11477),V=["title","items"];function k(u,i){if(u==null)return{};var c={},d=Object.keys(u),p,v;for(v=0;v<d.length;v++)p=d[v],!(i.indexOf(p)>=0)&&(c[p]=u[p]);return c}var S={Alphabetical:function(){function u(i,c){return i-c}return u}(),"By availability":function(){function u(i,c){return-(i.affordable-c.affordable)}return u}(),"By price":function(){function u(i,c){return i.price-c.price}return u}()},N=r.CasinoPrizeDispenserCh=function(){function u(){return(0,e.createComponentVNode)(2,m.Window,{width:400,height:450,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:(0,e.createFragment)([(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,s)],4)})})}return u}(),h=function(i,c){var d=(0,t.useLocalState)(c,"search",""),p=d[0],v=d[1],f=(0,t.useLocalState)(c,"sort",""),C=f[0],b=f[1],g=(0,t.useLocalState)(c,"descending",!1),y=g[0],B=g[1];return(0,e.createComponentVNode)(2,o.Box,{mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Flex,{width:"100%",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(){function L(I,w){return v(w)}return L}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(S),width:"100%",lineHeight:"19px",onSelected:function(){function L(I){return b(I)}return L}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:y?"arrow-down":"arrow-up",height:"19px",tooltip:y?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){function L(){return B(!y)}return L}()})})]})})},s=function(i,c){var d=(0,t.useBackend)(c),p=d.act,v=d.data,f=v.points,C=v.items,b=(0,t.useLocalState)(c,"search",""),g=b[0],y=b[1],B=(0,t.useLocalState)(c,"sort","Alphabetical"),L=B[0],I=B[1],w=(0,t.useLocalState)(c,"descending",!1),T=w[0],M=w[1],A=(0,a.createSearch)(g,function(_){return _[0]}),R=!1,O=Object.entries(C).map(function(_,P){var D=Object.entries(_[1]).filter(A).map(function(z){return z[1].affordable=f>=z[1].price,z[1]}).sort(S[L]);if(D.length!==0)return T&&(D=D.reverse()),R=!0,(0,e.createComponentVNode)(2,l,{title:_[0],items:D},_[0])});return(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Section,{children:R?O:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},l=function(i,c){var d=(0,t.useBackend)(c),p=d.act,v=d.data,f=i.title,C=i.items,b=k(i,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:f},b,{children:C.map(function(g){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:g.name}),(0,e.createComponentVNode)(2,o.Button,{content:g.price.toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){function y(){return p("purchase",{cat:f,name:g.name,price:g.price,restriction:g.restriction})}return y}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})]},g.name)})})))}},15403:function(x,r,n){"use strict";r.__esModule=!0,r.Changelog=void 0;var e=n(58734),a=n(59641),t=n(62188),o=n(11790),m=n(11477),V=n(37655),k=N(n(90928)),S=N(n(47366));function N(v){return v&&v.__esModule?v:{default:v}}function h(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */h=function(){return f};var v,f={},C=Object.prototype,b=C.hasOwnProperty,g=Object.defineProperty||function(ce,te,ee){ce[te]=ee.value},y=typeof Symbol=="function"?Symbol:{},B=y.iterator||"@@iterator",L=y.asyncIterator||"@@asyncIterator",I=y.toStringTag||"@@toStringTag";function w(ce,te,ee){return Object.defineProperty(ce,te,{value:ee,enumerable:!0,configurable:!0,writable:!0}),ce[te]}try{w({},"")}catch(ce){w=function(ee,ie,Ce){return ee[ie]=Ce}}function T(ce,te,ee,ie){var Ce=te&&te.prototype instanceof D?te:D,Se=Object.create(Ce.prototype),we=new me(ie||[]);return g(Se,"_invoke",{value:oe(ce,ee,we)}),Se}function M(ce,te,ee){try{return{type:"normal",arg:ce.call(te,ee)}}catch(ie){return{type:"throw",arg:ie}}}f.wrap=T;var A="suspendedStart",R="suspendedYield",O="executing",_="completed",P={};function D(){}function z(){}function U(){}var W={};w(W,B,function(){return this});var K=Object.getPrototypeOf,H=K&&K(K(Be([])));H&&H!==C&&b.call(H,B)&&(W=H);var Y=U.prototype=D.prototype=Object.create(W);function J(ce){["next","throw","return"].forEach(function(te){w(ce,te,function(ee){return this._invoke(te,ee)})})}function q(ce,te){function ee(Ce,Se,we,pe){var E=M(ce[Ce],ce,Se);if(E.type!=="throw"){var Z=E.arg,re=Z.value;return re&&typeof re=="object"&&b.call(re,"__await")?te.resolve(re.__await).then(function(X){ee("next",X,we,pe)},function(X){ee("throw",X,we,pe)}):te.resolve(re).then(function(X){Z.value=X,we(Z)},function(X){return ee("throw",X,we,pe)})}pe(E.arg)}var ie;g(this,"_invoke",{value:function(){function Ce(Se,we){function pe(){return new te(function(E,Z){ee(Se,we,E,Z)})}return ie=ie?ie.then(pe,pe):pe()}return Ce}()})}function oe(ce,te,ee){var ie=A;return function(Ce,Se){if(ie===O)throw new Error("Generator is already running");if(ie===_){if(Ce==="throw")throw Se;return{value:v,done:!0}}for(ee.method=Ce,ee.arg=Se;;){var we=ee.delegate;if(we){var pe=ae(we,ee);if(pe){if(pe===P)continue;return pe}}if(ee.method==="next")ee.sent=ee._sent=ee.arg;else if(ee.method==="throw"){if(ie===A)throw ie=_,ee.arg;ee.dispatchException(ee.arg)}else ee.method==="return"&&ee.abrupt("return",ee.arg);ie=O;var E=M(ce,te,ee);if(E.type==="normal"){if(ie=ee.done?_:R,E.arg===P)continue;return{value:E.arg,done:ee.done}}E.type==="throw"&&(ie=_,ee.method="throw",ee.arg=E.arg)}}}function ae(ce,te){var ee=te.method,ie=ce.iterator[ee];if(ie===v)return te.delegate=null,ee==="throw"&&ce.iterator.return&&(te.method="return",te.arg=v,ae(ce,te),te.method==="throw")||ee!=="return"&&(te.method="throw",te.arg=new TypeError("The iterator does not provide a '"+ee+"' method")),P;var Ce=M(ie,ce.iterator,te.arg);if(Ce.type==="throw")return te.method="throw",te.arg=Ce.arg,te.delegate=null,P;var Se=Ce.arg;return Se?Se.done?(te[ce.resultName]=Se.value,te.next=ce.nextLoc,te.method!=="return"&&(te.method="next",te.arg=v),te.delegate=null,P):Se:(te.method="throw",te.arg=new TypeError("iterator result is not an object"),te.delegate=null,P)}function le(ce){var te={tryLoc:ce[0]};1 in ce&&(te.catchLoc=ce[1]),2 in ce&&(te.finallyLoc=ce[2],te.afterLoc=ce[3]),this.tryEntries.push(te)}function he(ce){var te=ce.completion||{};te.type="normal",delete te.arg,ce.completion=te}function me(ce){this.tryEntries=[{tryLoc:"root"}],ce.forEach(le,this),this.reset(!0)}function Be(ce){if(ce||ce===""){var te=ce[B];if(te)return te.call(ce);if(typeof ce.next=="function")return ce;if(!isNaN(ce.length)){var ee=-1,ie=function(){function Ce(){for(;++ee<ce.length;)if(b.call(ce,ee))return Ce.value=ce[ee],Ce.done=!1,Ce;return Ce.value=v,Ce.done=!0,Ce}return Ce}();return ie.next=ie}}throw new TypeError(typeof ce+" is not iterable")}return z.prototype=U,g(Y,"constructor",{value:U,configurable:!0}),g(U,"constructor",{value:z,configurable:!0}),z.displayName=w(U,I,"GeneratorFunction"),f.isGeneratorFunction=function(ce){var te=typeof ce=="function"&&ce.constructor;return!!te&&(te===z||(te.displayName||te.name)==="GeneratorFunction")},f.mark=function(ce){return Object.setPrototypeOf?Object.setPrototypeOf(ce,U):(ce.__proto__=U,w(ce,I,"GeneratorFunction")),ce.prototype=Object.create(Y),ce},f.awrap=function(ce){return{__await:ce}},J(q.prototype),w(q.prototype,L,function(){return this}),f.AsyncIterator=q,f.async=function(ce,te,ee,ie,Ce){Ce===void 0&&(Ce=Promise);var Se=new q(T(ce,te,ee,ie),Ce);return f.isGeneratorFunction(te)?Se:Se.next().then(function(we){return we.done?we.value:Se.next()})},J(Y),w(Y,I,"Generator"),w(Y,B,function(){return this}),w(Y,"toString",function(){return"[object Generator]"}),f.keys=function(ce){var te=Object(ce),ee=[];for(var ie in te)ee.push(ie);return ee.reverse(),function(){function Ce(){for(;ee.length;){var Se=ee.pop();if(Se in te)return Ce.value=Se,Ce.done=!1,Ce}return Ce.done=!0,Ce}return Ce}()},f.values=Be,me.prototype={constructor:me,reset:function(){function ce(te){if(this.prev=0,this.next=0,this.sent=this._sent=v,this.done=!1,this.delegate=null,this.method="next",this.arg=v,this.tryEntries.forEach(he),!te)for(var ee in this)ee.charAt(0)==="t"&&b.call(this,ee)&&!isNaN(+ee.slice(1))&&(this[ee]=v)}return ce}(),stop:function(){function ce(){this.done=!0;var te=this.tryEntries[0].completion;if(te.type==="throw")throw te.arg;return this.rval}return ce}(),dispatchException:function(){function ce(te){if(this.done)throw te;var ee=this;function ie(Z,re){return we.type="throw",we.arg=te,ee.next=Z,re&&(ee.method="next",ee.arg=v),!!re}for(var Ce=this.tryEntries.length-1;Ce>=0;--Ce){var Se=this.tryEntries[Ce],we=Se.completion;if(Se.tryLoc==="root")return ie("end");if(Se.tryLoc<=this.prev){var pe=b.call(Se,"catchLoc"),E=b.call(Se,"finallyLoc");if(pe&&E){if(this.prev<Se.catchLoc)return ie(Se.catchLoc,!0);if(this.prev<Se.finallyLoc)return ie(Se.finallyLoc)}else if(pe){if(this.prev<Se.catchLoc)return ie(Se.catchLoc,!0)}else{if(!E)throw new Error("try statement without catch or finally");if(this.prev<Se.finallyLoc)return ie(Se.finallyLoc)}}}}return ce}(),abrupt:function(){function ce(te,ee){for(var ie=this.tryEntries.length-1;ie>=0;--ie){var Ce=this.tryEntries[ie];if(Ce.tryLoc<=this.prev&&b.call(Ce,"finallyLoc")&&this.prev<Ce.finallyLoc){var Se=Ce;break}}Se&&(te==="break"||te==="continue")&&Se.tryLoc<=ee&&ee<=Se.finallyLoc&&(Se=null);var we=Se?Se.completion:{};return we.type=te,we.arg=ee,Se?(this.method="next",this.next=Se.finallyLoc,P):this.complete(we)}return ce}(),complete:function(){function ce(te,ee){if(te.type==="throw")throw te.arg;return te.type==="break"||te.type==="continue"?this.next=te.arg:te.type==="return"?(this.rval=this.arg=te.arg,this.method="return",this.next="end"):te.type==="normal"&&ee&&(this.next=ee),P}return ce}(),finish:function(){function ce(te){for(var ee=this.tryEntries.length-1;ee>=0;--ee){var ie=this.tryEntries[ee];if(ie.finallyLoc===te)return this.complete(ie.completion,ie.afterLoc),he(ie),P}}return ce}(),catch:function(){function ce(te){for(var ee=this.tryEntries.length-1;ee>=0;--ee){var ie=this.tryEntries[ee];if(ie.tryLoc===te){var Ce=ie.completion;if(Ce.type==="throw"){var Se=Ce.arg;he(ie)}return Se}}throw new Error("illegal catch attempt")}return ce}(),delegateYield:function(){function ce(te,ee,ie){return this.delegate={iterator:Be(te),resultName:ee,nextLoc:ie},this.method==="next"&&(this.arg=v),P}return ce}()},f}function s(v,f,C,b,g,y,B){try{var L=v[y](B),I=L.value}catch(w){C(w);return}L.done?f(I):Promise.resolve(I).then(b,g)}function l(v){return function(){var f=this,C=arguments;return new Promise(function(b,g){var y=v.apply(f,C);function B(I){s(y,b,g,B,L,"next",I)}function L(I){s(y,b,g,B,L,"throw",I)}B(void 0)})}}function u(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}function i(v,f){v.prototype=Object.create(f.prototype),v.prototype.constructor=v,c(v,f)}function c(v,f){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function C(b,g){return b.__proto__=g,b}return C}(),c(v,f)}var d={bugfix:{icon:"bug",color:"green"},wip:{icon:"hammer",color:"orange"},qol:{icon:"hand-holding-heart",color:"green"},soundadd:{icon:"tg-sound-plus",color:"green"},sounddel:{icon:"tg-sound-minus",color:"red"},add:{icon:"check-circle",color:"green"},expansion:{icon:"check-circle",color:"green"},rscadd:{icon:"check-circle",color:"green"},rscdel:{icon:"times-circle",color:"red"},imageadd:{icon:"tg-image-plus",color:"green"},imagedel:{icon:"tg-image-minus",color:"red"},spellcheck:{icon:"spell-check",color:"green"},experiment:{icon:"radiation",color:"yellow"},balance:{icon:"balance-scale-right",color:"yellow"},code_imp:{icon:"code",color:"green"},refactor:{icon:"tools",color:"green"},config:{icon:"cogs",color:"purple"},admin:{icon:"user-shield",color:"purple"},server:{icon:"server",color:"purple"},tgs:{icon:"toolbox",color:"purple"},tweak:{icon:"wrench",color:"green"},unknown:{icon:"info-circle",color:"label"}},p=r.Changelog=function(v){i(f,v);function f(){var b;return b=v.call(this)||this,b.getData=function(g,y){y===void 0&&(y=1);var B=(0,t.useBackend)(b.context),L=B.act,I=u(b),w=6;if(y>w)return b.setData("Failed to load data after "+w+" attempts");L("get_month",{date:g}),fetch((0,V.resolveAsset)(g+".yml")).then(function(){var T=l(h().mark(function(){function M(A){var R,O,_;return h().wrap(function(){function P(D){for(;;)switch(D.prev=D.next){case 0:return D.next=2,A.text();case 2:R=D.sent,O=/^Cannot find/,O.test(R)?(_=50+y*50,I.setData("Loading changelog data"+".".repeat(y+3)),setTimeout(function(){I.getData(g,y+1)},_)):I.setData(S.default.load(R,{schema:S.default.CORE_SCHEMA}));case 5:case"end":return D.stop()}}return P}(),M)}return M}()));return function(M){return T.apply(this,arguments)}}())},b.state={data:"Loading changelog data...",selectedDate:"",selectedIndex:0},b.dateChoices=[],b}var C=f.prototype;return C.setData=function(){function b(g){this.setState({data:g})}return b}(),C.setSelectedDate=function(){function b(g){this.setState({selectedDate:g})}return b}(),C.setSelectedIndex=function(){function b(g){this.setState({selectedIndex:g})}return b}(),C.componentDidMount=function(){function b(){var g=this,y=(0,t.useBackend)(this.context),B=y.data.dates,L=B===void 0?[]:B;L&&(L.forEach(function(I){return g.dateChoices.push((0,k.default)(I,"mmmm yyyy",!0))}),this.setSelectedDate(this.dateChoices[0]),this.getData(L[0]))}return b}(),C.render=function(){function b(){var g=this,y=this.state,B=y.data,L=y.selectedDate,I=y.selectedIndex,w=(0,t.useBackend)(this.context),T=w.data.dates,M=this.dateChoices,A=M.length>0&&(0,e.createComponentVNode)(2,o.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{className:"Changelog__Button",disabled:I===0,icon:"chevron-left",onClick:function(){function P(){var D=I-1;return g.setData("Loading changelog data..."),g.setSelectedIndex(D),g.setSelectedDate(M[D]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),g.getData(T[D])}return P}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Dropdown,{displayText:L,options:M,onSelected:function(){function P(D){var z=M.indexOf(D);return g.setData("Loading changelog data..."),g.setSelectedIndex(z),g.setSelectedDate(D),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),g.getData(T[z])}return P}(),selected:L,width:"150px"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{className:"Changelog__Button",disabled:I===M.length-1,icon:"chevron-right",onClick:function(){function P(){var D=I+1;return g.setData("Loading changelog data..."),g.setSelectedIndex(D),g.setSelectedDate(M[D]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),g.getData(T[D])}return P}()})})]}),R=(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createVNode)(1,"h1",null,"CHOMPStation Changelist",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("The GitHub repository can be found "),(0,e.createVNode)(1,"a",null,"here",16,{href:"https://github.com/CHOMPStation2/CHOMPStation2"}),(0,e.createTextVNode)(", recent GitHub contributors can be found "),(0,e.createVNode)(1,"a",null,"here",16,{href:"https://github.com/CHOMPStation2/CHOMPStation2/pulse/monthly"}),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Visit our wiki "),(0,e.createVNode)(1,"a",null,"here",16,{href:"https://wiki.chompstation13.net/index.php/Chomp_Station_Wiki"}),(0,e.createTextVNode)(", check out our discord server "),(0,e.createVNode)(1,"a",null,"here",16,{href:"https://discord.com/invite/chompers"}),(0,e.createTextVNode)(".")],0),A]}),O=(0,e.createComponentVNode)(2,o.Section,{children:[A,(0,e.createVNode)(1,"h3",null,"CHOMPStation License",16),(0,e.createVNode)(1,"p",null,["All code after ",(0,e.createVNode)(1,"a",null,"commit 333c566b88108de218d882840e61928a9b759d8f on 2014/31/12 at 4:38 PM PST",16,{href:"https://github.com/CHOMPStation2/CHOMPStation2/commit/333c566b88108de218d882840e61928a9b759d8f"})," is licensed under ",(0,e.createVNode)(1,"a",null,"GNU AGPL v3",16,{href:"https://www.gnu.org/licenses/agpl-3.0.html"}),". All code before that commit is licensed under ",(0,e.createVNode)(1,"a",null,"GNU GPL v3",16,{href:"https://www.gnu.org/licenses/gpl-3.0.html"}),", including tools unless their readme specifies otherwise. See ",(0,e.createVNode)(1,"a",null,"LICENSE",16,{href:"https://github.com/CHOMPStation2/CHOMPStation2/blob/master/LICENSE"})," and ",(0,e.createVNode)(1,"a",null,"GPLv3.txt",16,{href:"https://github.com/CHOMPStation2/CHOMPStation2/blob/master/LICENSE-GPL3.txt"})," for more details."],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("The TGS DMAPI API is licensed as a subproject under the MIT license."),(0,e.createTextVNode)(" See the footer of "),(0,e.createVNode)(1,"a",null,"code/__DEFINES/tgs.dm",16,{href:"https://github.com/CHOMPStation2/CHOMPStation2/blob/master/code/__DEFINES/tgs.dm"}),(0,e.createTextVNode)(" and "),(0,e.createVNode)(1,"a",null,"code/modules/tgs/LICENSE",16,{href:"https://github.com/CHOMPStation2/CHOMPStation2/blob/master/code/modules/tgs/LICENSE"}),(0,e.createTextVNode)(" for the MIT license.")],0),(0,e.createVNode)(1,"p",null,["All assets including icons and sound are under a ",(0,e.createVNode)(1,"a",null,"Creative Commons 3.0 BY-SA license",16,{href:"https://creativecommons.org/licenses/by-sa/3.0/"})," unless otherwise indicated."],0)]}),_=typeof B=="object"&&Object.keys(B).length>0&&Object.entries(B).reverse().map(function(P){var D=P[0],z=P[1];return(0,e.createComponentVNode)(2,o.Section,{title:(0,k.default)(D,"d mmmm yyyy",!0),children:(0,e.createComponentVNode)(2,o.Box,{ml:3,children:Object.entries(z).map(function(U){var W=U[0],K=U[1];return(0,e.createFragment)([(0,e.createVNode)(1,"h4",null,[W,(0,e.createTextVNode)(" changed:")],0),(0,e.createComponentVNode)(2,o.Box,{ml:3,children:(0,e.createComponentVNode)(2,o.Table,{children:K.map(function(H){var Y=Object.keys(H)[0];return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{className:(0,a.classes)(["Changelog__Cell","Changelog__Cell--Icon"]),children:(0,e.createComponentVNode)(2,o.Icon,{color:d[Y]?d[Y].color:d.unknown.color,name:d[Y]?d[Y].icon:d.unknown.icon})}),(0,e.createComponentVNode)(2,o.Table.Cell,{className:"Changelog__Cell",children:H[Y]})]},Y+H[Y])})})})],4,W)})})},D)});return(0,e.createComponentVNode)(2,m.Window,{title:"Changelog",width:675,height:650,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[R,_,typeof B=="string"&&(0,e.createVNode)(1,"p",null,B,0),O]})})}return b}(),f}(e.Component)},24326:function(x,r,n){"use strict";r.__esModule=!0,r.CharacterDirectory=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=function(s){switch(s){case"Unset":return"label";case"Pred":return"red";case"Pred-Pref":return"orange";case"Prey":return"blue";case"Prey-Pref":return"green";case"Switch":return"yellow";case"Non-Vore":return"black"}},V=r.CharacterDirectory=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.personalVisibility,p=c.personalTag,v=c.personalGenderTag,f=c.personalSexualityTag,C=c.personalErpTag,b=c.personalEventTag,g=(0,a.useLocalState)(l,"overlay",null),y=g[0],B=g[1],L=(0,a.useLocalState)(l,"overwritePrefs",!1),I=L[0],w=L[1];return(0,e.createComponentVNode)(2,o.Window,{width:816,height:722,resizeable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:y&&(0,e.createComponentVNode)(2,k)||(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Settings and Preferences",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,children:"Save to current preferences slot:\xA0"}),(0,e.createComponentVNode)(2,t.Button,{icon:I?"toggle-on":"toggle-off",selected:I,content:I?"On":"Off",onClick:function(){function T(){return w(!I)}return T}()})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Visibility",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:d?"Shown":"Not Shown",onClick:function(){function T(){return i("setVisible",{overwrite_prefs:I})}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Vore Tag",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:p,onClick:function(){function T(){return i("setTag",{overwrite_prefs:I})}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:v,onClick:function(){function T(){return i("setGenderTag",{overwrite_prefs:I})}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sexuality",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:f,onClick:function(){function T(){return i("setSexualityTag",{overwrite_prefs:I})}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ERP Tag",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:C,onClick:function(){function T(){return i("setErpTag",{overwrite_prefs:I})}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Event Pref",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:b,onClick:function(){function T(){return i("setEventTag",{overwrite_prefs:I})}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Advertisement",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Edit Ad",onClick:function(){function T(){return i("editAd",{overwrite_prefs:I})}return T}()})})]})}),(0,e.createComponentVNode)(2,S)],4)})})}return h}(),k=function(s,l){var u=(0,a.useLocalState)(l,"overlay",null),i=u[0],c=u[1];return(0,e.createComponentVNode)(2,t.Section,{title:i.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Back",onClick:function(){function d(){return c(null)}return d}()}),children:[(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Species",children:(0,e.createComponentVNode)(2,t.Box,{children:i.species})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Vore Tag",children:(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:m(i.tag),children:i.tag})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Gender",children:(0,e.createComponentVNode)(2,t.Box,{children:i.gendertag})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Sexuality",children:(0,e.createComponentVNode)(2,t.Box,{children:i.sexualitytag})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"ERP Tag",children:(0,e.createComponentVNode)(2,t.Box,{children:i.erptag})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Event Pref",children:(0,e.createComponentVNode)(2,t.Box,{children:i.eventtag})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Character Ad",children:(0,e.createComponentVNode)(2,t.Box,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:i.character_ad||"Unset."})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"OOC Notes",children:(0,e.createComponentVNode)(2,t.Box,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:i.ooc_notes||"Unset."})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Flavor Text",children:(0,e.createComponentVNode)(2,t.Box,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:i.flavor_text||"Unset."})})]})},S=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.directory,p=(0,a.useLocalState)(l,"sortId","name"),v=p[0],f=p[1],C=(0,a.useLocalState)(l,"sortOrder","name"),b=C[0],g=C[1],y=(0,a.useLocalState)(l,"overlay",null),B=y[0],L=y[1];return(0,e.createComponentVNode)(2,t.Section,{title:"Directory",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Refresh",onClick:function(){function I(){return i("refresh")}return I}()}),children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,N,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,N,{id:"species",children:"Species"}),(0,e.createComponentVNode)(2,N,{id:"tag",children:"Vore Tag"}),(0,e.createComponentVNode)(2,N,{id:"gendertag",children:"Gender"}),(0,e.createComponentVNode)(2,N,{id:"sexualitytag",children:"Sexuality"}),(0,e.createComponentVNode)(2,N,{id:"erptag",children:"ERP Tag"}),(0,e.createComponentVNode)(2,N,{id:"eventtag",children:"Event Pref"}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"right",children:"View"})]}),d.sort(function(I,w){var T=b?1:-1;return I[v].localeCompare(w[v])*T}).map(function(I,w){return(0,e.createComponentVNode)(2,t.Table.Row,{backgroundColor:m(I.tag),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{p:1,children:I.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:I.species}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:I.tag}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:I.gendertag}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:I.sexualitytag}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:I.erptag}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:I.eventtag}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function T(){return L(I)}return T}(),color:"transparent",icon:"sticky-note",mr:1,content:"View"})})]},w)})]})})},N=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=s.id,p=s.children,v=(0,a.useLocalState)(l,"sortId","name"),f=v[0],C=v[1],b=(0,a.useLocalState)(l,"sortOrder","name"),g=b[0],y=b[1];return(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,t.Button,{width:"100%",color:f!==d&&"transparent",onClick:function(){function B(){f===d?y(!g):(C(d),y(!0))}return B}(),children:[p,f===d&&(0,e.createComponentVNode)(2,t.Icon,{name:g?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},71819:function(x,r,n){"use strict";r.__esModule=!0,r.CheckboxInput=void 0;var e=n(58734),a=n(11790),t=n(30204),o=n(40946),m=n(62188),V=n(57370),k=n(89226),S=n(11477),N=r.CheckboxInput=function(){function h(s,l){var u=(0,m.useBackend)(l),i=u.data,c=i.items,d=c===void 0?[]:c,p=i.min_checked,v=i.max_checked,f=i.message,C=i.timeout,b=i.title,g=(0,m.useLocalState)(l,"selections",[]),y=g[0],B=g[1],L=(0,m.useLocalState)(l,"searchQuery",""),I=L[0],w=L[1],T=(0,o.createSearch)(I,function(R){return R}),M=d.filter(T),A=function(){function R(O){var _=y.includes(O)?y.filter(function(P){return P!==O}):[].concat(y,[O]);B(_)}return R}();return(0,e.createComponentVNode)(2,S.Window,{title:b,width:425,height:300,children:[!!C&&(0,e.createComponentVNode)(2,k.Loader,{value:C}),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,a.NoticeBox,{info:!0,textAlign:"center",children:[(0,o.decodeHtmlEntities)(f)," ",p>0&&" (Min: "+p+")",v<50&&" (Max: "+v+")"]})}),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:!0,mt:0,children:(0,e.createComponentVNode)(2,a.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,a.Table,{children:M.map(function(R,O){return(0,e.createComponentVNode)(2,t.TableRow,{className:"candystripe",children:(0,e.createComponentVNode)(2,t.TableCell,{children:(0,e.createComponentVNode)(2,a.Button.Checkbox,{checked:y.includes(R),disabled:y.length>=v&&!y.includes(R),fluid:!0,onClick:function(){function _(){return A(R)}return _}(),children:R})})},O)})})})}),(0,e.createComponentVNode)(2,a.Stack,{m:1,mb:0,children:[(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,a.Tooltip,{content:"Search",position:"bottom",children:(0,e.createComponentVNode)(2,a.Icon,{name:"search",mt:.5})})}),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,a.Input,{fluid:!0,value:I,onInput:function(){function R(O,_){return w(_)}return R}()})})]}),(0,e.createComponentVNode)(2,a.Stack.Item,{mt:.7,children:(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,V.InputButtons,{input:y})})})]})})]})}return h}()},11784:function(x,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(72679),m=n(11477),V=[5,10,20,30,40,60],k=[1,5,10],S=r.ChemDispenser=function(){function l(u,i){return(0,e.createComponentVNode)(2,m.Window,{width:390,height:655,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,s)]})})}return l}(),N=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.amount;return(0,e.createComponentVNode)(2,t.Section,{title:"Settings",flex:"content",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:V.map(function(f,C){return(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",selected:v===f,content:f+"u",m:"0",onClick:function(){function b(){return d("amount",{amount:f})}return b}()})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Custom Amount",children:(0,e.createComponentVNode)(2,t.Slider,{step:1,stepPixelSize:5,value:v,minValue:1,maxValue:120,onDrag:function(){function f(C,b){return d("amount",{amount:b})}return f}()})})]})})},h=function(u,i){for(var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.chemicals,f=v===void 0?[]:v,C=[],b=0;b<(f.length+1)%3;b++)C.push(!0);return(0,e.createComponentVNode)(2,t.Section,{title:p.glass?"Drink Dispenser":"Chemical Dispenser",flexGrow:"1",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",wrap:"wrap",height:"100%",align:"flex-start",children:[f.map(function(g,y){return(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1",m:.2,basis:"40%",height:"20px",children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",width:"100%",height:"100%",align:"flex-start",content:g.title+" ("+g.amount+")",onClick:function(){function B(){return d("dispense",{reagent:g.id})}return B}()})},y)}),C.map(function(g,y){return(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1",basis:"25%",height:"20px"},y)})]})})},s=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.isBeakerLoaded,f=p.beakerCurrentVolume,C=p.beakerMaxVolume,b=p.beakerContents,g=b===void 0?[]:b;return(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",flex:"content",minHeight:"25%",buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!v&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[f," / ",C," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!v,onClick:function(){function y(){return d("ejectBeaker")}return y}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:v,beakerContents:g,buttons:function(){function y(B){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function L(){return d("remove",{reagent:B.id,amount:-1})}return L}()}),k.map(function(L,I){return(0,e.createComponentVNode)(2,t.Button,{content:L,onClick:function(){function w(){return d("remove",{reagent:B.id,amount:L})}return w}()},I)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function L(){return d("remove",{reagent:B.id,amount:B.volume})}return L}()})],0)}return y}()})})}},61950:function(x,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(72679),V=n(48388),k=[1,5,10,30,60],S=null,N=function(v,f){var C=(0,a.useBackend)(f),b=C.act,g=C.data,y=v.args.analysis;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1rem",title:g.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:y.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(y.desc||"").length>0?y.desc:"N/A"}),y.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:y.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:y.blood_dna})],4),!g.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:g.printing?"spinner":"print",disabled:g.printing,iconSpin:!!g.printing,ml:"0.5rem",content:"Print",onClick:function(){function B(){return b("print",{idx:y.idx,beaker:v.args.beaker})}return B}()})]})})})},h=r.ChemMaster=function(){function p(v,f){var C=(0,a.useBackend)(f),b=C.data,g=b.condi,y=b.beaker,B=b.beaker_reagents,L=B===void 0?[]:B,I=b.buffer_reagents,w=I===void 0?[]:I,T=b.mode;return(0,e.createComponentVNode)(2,o.Window,{width:575,height:500,resizable:!0,children:[(0,e.createComponentVNode)(2,V.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,s,{beaker:y,beakerReagents:L,bufferNonEmpty:w.length>0}),(0,e.createComponentVNode)(2,l,{mode:T,bufferReagents:w}),(0,e.createComponentVNode)(2,u,{isCondiment:g,bufferNonEmpty:w.length>0}),(0,e.createComponentVNode)(2,d)," "]})]})}return p}(),s=function(v,f){var C=(0,a.useBackend)(f),b=C.act,g=C.data,y=v.beaker,B=v.beakerReagents,L=v.bufferNonEmpty,I=L?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!y,content:"Eject and Clear Buffer",onClick:function(){function w(){return b("eject")}return w}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!y,content:"Eject and Clear Buffer",onClick:function(){function w(){return b("eject")}return w}()});return(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",buttons:I,children:y?(0,e.createComponentVNode)(2,m.BeakerContents,{beakerLoaded:!0,beakerContents:B,buttons:function(){function w(T,M){return(0,e.createComponentVNode)(2,t.Box,{mb:M<B.length-1&&"2px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Analyze",mb:"0",onClick:function(){function A(){return(0,V.modalOpen)(f,"analyze",{idx:M+1,beaker:1})}return A}()}),k.map(function(A,R){return(0,e.createComponentVNode)(2,t.Button,{content:A,mb:"0",onClick:function(){function O(){return b("add",{id:T.id,amount:A})}return O}()},R)}),(0,e.createComponentVNode)(2,t.Button,{content:"All",mb:"0",onClick:function(){function A(){return b("add",{id:T.id,amount:T.volume})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Custom..",mb:"0",onClick:function(){function A(){return(0,V.modalOpen)(f,"addcustom",{id:T.id})}return A}()})]})}return w}()}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No beaker loaded."})})},l=function(v,f){var C=(0,a.useBackend)(f),b=C.act,g=v.mode,y=v.bufferReagents,B=y===void 0?[]:y;return(0,e.createComponentVNode)(2,t.Section,{title:"Buffer",buttons:(0,e.createComponentVNode)(2,t.Box,{color:"label",children:["Transferring to\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:g?"flask":"trash",color:!g&&"bad",content:g?"Beaker":"Disposal",onClick:function(){function L(){return b("toggle")}return L}()})]}),children:B.length>0?(0,e.createComponentVNode)(2,m.BeakerContents,{beakerLoaded:!0,beakerContents:B,buttons:function(){function L(I,w){return(0,e.createComponentVNode)(2,t.Box,{mb:w<B.length-1&&"2px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Analyze",mb:"0",onClick:function(){function T(){return(0,V.modalOpen)(f,"analyze",{idx:w+1,beaker:0})}return T}()}),k.map(function(T,M){return(0,e.createComponentVNode)(2,t.Button,{content:T,mb:"0",onClick:function(){function A(){return b("remove",{id:I.id,amount:T})}return A}()},M)}),(0,e.createComponentVNode)(2,t.Button,{content:"All",mb:"0",onClick:function(){function T(){return b("remove",{id:I.id,amount:I.volume})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Custom..",mb:"0",onClick:function(){function T(){return(0,V.modalOpen)(f,"removecustom",{id:I.id})}return T}()})]})}return L}()}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Buffer is empty."})})},u=function(v,f){var C=(0,a.useBackend)(f),b=C.act,g=C.data;return v.bufferNonEmpty?(0,e.createComponentVNode)(2,t.Section,{title:"Production",flexGrow:"1",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!g.loaded_pill_bottle,icon:"eject",content:g.loaded_pill_bottle?g.loaded_pill_bottle_name+" ("+g.loaded_pill_bottle_contents_len+"/"+g.loaded_pill_bottle_storage_slots+")":"No pill bottle loaded",mb:"0.5rem",onClick:function(){function y(){return b("ejectp")}return y}()}),children:v.isCondiment?(0,e.createComponentVNode)(2,c):(0,e.createComponentVNode)(2,i)}):(0,e.createComponentVNode)(2,t.Section,{title:"Production",flexGrow:"1",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!g.loaded_pill_bottle,icon:"eject",content:g.loaded_pill_bottle?g.loaded_pill_bottle_name+" ("+g.loaded_pill_bottle_contents_len+"/"+g.loaded_pill_bottle_storage_slots+")":"No pill bottle loaded",mb:"0.5rem",onClick:function(){function y(){return b("ejectp")}return y}()}),children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tint-slash",mt:"0.5rem",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"Buffer is empty."]})})})},i=function(v,f){var C=(0,a.useBackend)(f),b=C.act,g=C.data;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pills",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"circle",content:"One (60u max)",mr:"0.5rem",onClick:function(){function y(){return(0,V.modalOpen)(f,"create_pill")}return y}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus-circle",content:"Multiple",mb:"0.5rem",onClick:function(){function y(){return(0,V.modalOpen)(f,"create_pill_multiple")}return y}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function y(){return(0,V.modalOpen)(f,"change_pill_style")}return y}(),children:[(0,e.createVNode)(1,"div",null,null,1,{style:"display: inline-block;width: 16px;height: 16px;vertical-align: middle;background: url(pill"+g.pillsprite+".png);background-size: 200%;background-position: left -10px bottom -6px;"}),"Style"]})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patches",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"square",content:"One (60u max)",mr:"0.5rem",onClick:function(){function y(){return(0,V.modalOpen)(f,"create_patch")}return y}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus-square",content:"Multiple",onClick:function(){function y(){return(0,V.modalOpen)(f,"create_patch_multiple")}return y}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bottle",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"wine-bottle",content:"Create bottle (60u max)",mr:"0.5rem",mb:"0.5rem",onClick:function(){function y(){return(0,V.modalOpen)(f,"create_bottle")}return y}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus-square",content:"Multiple",onClick:function(){function y(){return(0,V.modalOpen)(f,"create_bottle_multiple")}return y}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{mb:"0.5rem",onClick:function(){function y(){return(0,V.modalOpen)(f,"change_bottle_style")}return y}(),children:[(0,e.createVNode)(1,"div",null,null,1,{style:"display: inline-block;width: 16px;height: 16px;vertical-align: middle;background: url(bottle-"+g.bottlesprite+".png);background-size: 200%;background-position: left -10px bottom -6px;"}),"Style"]})]})]})},c=function(v,f){var C=(0,a.useBackend)(f),b=C.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"box",content:"Create condiment pack (10u max)",mb:"0.5rem",onClick:function(){function g(){return(0,V.modalOpen)(f,"create_condi_pack")}return g}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"wine-bottle",content:"Create bottle (60u max)",mb:"0",onClick:function(){function g(){return b("create_condi_bottle")}return g}()})],4)},d=function(v,f){var C=(0,a.useBackend)(f),b=C.act,g=C.data;return g.loaded_pill_bottle?(0,e.createComponentVNode)(2,t.Section,{title:"Pill Bottle Customization",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!g.loaded_pill_bottle,content:"Customize Bottle Color",onClick:function(){function y(){return(0,V.modalOpen)(f,"change_pill_bottle_style")}return y}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!g.loaded_pill_bottle,icon:"eject",content:g.loaded_pill_bottle?g.loaded_pill_bottle_name+" ("+g.loaded_pill_bottle_contents_len+"/"+g.loaded_pill_bottle_storage_slots+")":"None loaded",mb:"0.5rem",onClick:function(){function y(){return b("ejectp")}return y}()})]}):(0,e.createComponentVNode)(2,t.Section,{title:"Pill Bottle Customization",children:(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"None loaded."})})};(0,V.modalRegisterBodyOverride)("analyze",N)},85053:function(x,r,n){"use strict";r.__esModule=!0,r.ChemSynthesizer=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(72679),V=n(48388),k=r.ChemSynthesizer=function(){function s(l,u){return(0,e.createComponentVNode)(2,o.Window,{width:1100,height:640,resizable:!0,children:[(0,e.createComponentVNode)(2,V.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,maxWidth:"33%",children:(0,e.createComponentVNode)(2,S)}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,N)}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,maxWidth:"33%",children:(0,e.createComponentVNode)(2,h)})]})})]})}return s}(),S=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.busy,v=d.use_catalyst,f=d.queue,C=f===void 0?[]:f,b=d.recipes,g=b===void 0?[]:b,y=d.production_mode;return(0,e.createComponentVNode)(2,t.Flex,{height:"100%",width:"100%",direction:"column",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{maxHeight:"50%",grow:1,basis:0,children:(0,e.createComponentVNode)(2,t.Section,{height:"100%",title:"Queue",overflowY:"scroll",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{disabled:!!p,color:v?"green":"bad",icon:"wrench",tooltip:"Enable/Disable the catalyst BEFORE starting the queue.",content:v?"Catalyst Active":"Catalyst Disabled",onClick:function(){function B(){return c("toggle_catalyst")}return B}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!C.length,color:"bad",icon:"minus-circle",tooltip:"Clear Queue",onClick:function(){function B(){return c("clear_queue")}return B}()}),!p&&(0,e.createComponentVNode)(2,t.Button,{disabled:!C.length,icon:"play",tooltip:"Start Queue",onClick:function(){function B(){return c("start_queue")}return B}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:C.length&&C.map(function(B){return B.index===1&&p?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:B.name,labelColor:"bad",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!0,icon:"trash",children:"Delete"})})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:B.name,children:(0,e.createComponentVNode)(2,t.Button,{icon:"trash",onClick:function(){function L(){return c("rem_queue",{q_index:B.index})}return L}(),children:"Delete"})})})||(0,e.createComponentVNode)(2,t.Box,{m:1,children:"Queue Empty."})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{maxHeight:"50%",grow:1,basis:0,children:(0,e.createComponentVNode)(2,t.Section,{height:"100%",title:"Recipes",overflowY:"scroll",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"plus",tooltip:y?"Import Recipe":"Generate Recipe",onClick:function(){function B(){return c("add_recipe")}return B}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:g.length&&g.map(function(B){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:B.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"plus",tooltip:"Add to Queue",onClick:function(){function L(){return c("add_queue",{qa_index:B.name})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"inbox",tooltip:"Export Recipe",onClick:function(){function L(){return c("exp_recipe",{exp_index:B.name})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"minus-circle",tooltip:"Delete Recipe",disabled:!!p,onClick:function(){function L(){return c("rem_recipe",{rm_index:B.name})}return L}()})]})})||(0,e.createComponentVNode)(2,t.Box,{m:1,children:"No recipes found."})})})})]})},N=function(l,u){for(var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.busy,v=d.chemicals,f=v===void 0?[]:v,C=d.rxn_vessel,b=C===void 0?[]:C,g=d.catalyst,y=d.catalystCurrentVolume,B=d.catalystMaxVolume,L=d.catalyst_reagents,I=L===void 0?[]:L,w=[],T=0;T<(f.length+1)%3;T++)w.push(!0);return(0,e.createComponentVNode)(2,t.Flex,{direction:"column",children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cartridge Reagents",flexGrow:"1",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",wrap:"wrap",height:"100%",align:"flex-start",children:[f.map(function(M,A){return(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1",m:.2,basis:"40%",height:"20px",children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",width:"100%",height:"100%",align:"flex-start",disabled:1,content:M.title+" ("+M.amount+")"})},A)}),w.map(function(M,A){return(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1",basis:"25%",height:"20px"},A)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Reaction Vessel",children:b.length>0?(0,e.createComponentVNode)(2,m.BeakerContents,{beakerLoaded:!0,beakerContents:b}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Vessel is empty."})}),(0,e.createComponentVNode)(2,t.Section,{title:"Catalyst",flex:"content",minHeight:"25%",buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!g&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[y," / ",B," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!g||!!p,onClick:function(){function M(){return c("eject_catalyst")}return M}()})]}),children:(0,e.createComponentVNode)(2,m.BeakerContents,{beakerLoaded:g,beakerContents:I})})]})},h=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.busy,v=d.production_mode,f=d.panel_open,C=d.rxn_vessel,b=d.drug_substance,g=d.bottle_icon,y=d.pill_icon,B=d.patch_icon;return(0,e.createComponentVNode)(2,t.Flex,{height:"100%",width:"100%",direction:"column",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{height:0,grow:1,children:(0,e.createComponentVNode)(2,t.Section,{height:"100%",title:"Settings",overflowY:"auto",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{color:v?"green":"bad",icon:"wrench",content:v?"Recipe mode: Import":"Recipe mode: Tutorial",onClick:function(){function L(){return c("mode_toggle")}return L}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!!p,color:f?"bad":"green",icon:"wrench",content:f?"Panel Open":"Panel Closed",onClick:function(){function L(){return c("panel_toggle")}return L}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:!p&&(0,e.createComponentVNode)(2,t.Button,{disabled:!C.length,color:"bad",icon:"flask",tooltip:"For emptying the reaction vessel if the machine stalls.",content:"Bottle Manually",onClick:function(){function L(){return c("bottle_product")}return L}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!p,color:"bad",icon:"minus-circle",content:"EMERGENCY STOP",onClick:function(){function L(){return c("emergency_stop")}return L}()})})]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{height:0,grow:1,children:(0,e.createComponentVNode)(2,t.Section,{height:"100%",title:"Drug Substance",overflowY:"auto",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bottle",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"wine-bottle",content:"Activate",selected:d.drug_substance===1,mr:"0.5rem",onClick:function(){function L(){return c("drug_form",{drug_index:1})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function L(){return(0,V.modalOpen)(u,"change_bottle_style")}return L}(),children:[(0,e.createVNode)(1,"div",null,null,1,{style:"display: inline-block;width: 16px;height: 16px;vertical-align: middle;background: url(bottle-"+d.bottle_icon+".png);background-size: 200%;background-position: left -10px bottom -6px;"}),"Style"]})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pill",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"circle",content:"Activate",selected:d.drug_substance===2,mr:"0.5rem",onClick:function(){function L(){return c("drug_form",{drug_index:2})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function L(){return(0,V.modalOpen)(u,"change_pill_style")}return L}(),children:[(0,e.createVNode)(1,"div",null,null,1,{style:"display: inline-block;width: 16px;height: 16px;vertical-align: middle;background: url(pill"+d.pill_icon+".png);background-size: 200%;background-position: left -10px bottom -6px;"}),"Style"]})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patch",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"square",content:"Activate",selected:d.drug_substance===3,mr:"0.5rem",onClick:function(){function L(){return c("drug_form",{drug_index:3})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function L(){return(0,V.modalOpen)(u,"change_patch_style")}return L}(),children:[(0,e.createVNode)(1,"div",null,null,1,{style:"display: inline-block;width: 16px;height: 16px;vertical-align: middle;background: url(patch"+d.patch_icon+".png);background-size: 200%;background-position: left -10px bottom -6px;"}),"Style"]})]})]})})})]})}},38389:function(x,r,n){"use strict";r.__esModule=!0,r.ClawMachine=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.ClawMachine=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.wintick,u=s.instructions,i=s.gameStatus,c=s.winscreen,d;return i==="CLAWMACHINE_NEW"?d=(0,e.createComponentVNode)(2,t.Box,{align:"center",children:[(0,e.createVNode)(1,"br")," ",(0,e.createVNode)(1,"hr"),(0,e.createVNode)(1,"b",null,"Pay to Play!",16)," ",(0,e.createVNode)(1,"br")," ",(0,e.createVNode)(1,"hr"),u,(0,e.createVNode)(1,"br")," ",(0,e.createVNode)(1,"hr")," ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Start",onClick:function(){function p(){return h("newgame")}return p}()})]}):i==="CLAWMACHINE_END"?d=(0,e.createComponentVNode)(2,t.Box,{align:"center",children:[(0,e.createVNode)(1,"br")," ",(0,e.createVNode)(1,"hr"),(0,e.createVNode)(1,"b",null,"Thank you for playing!",16)," ",(0,e.createVNode)(1,"br")," ",(0,e.createVNode)(1,"hr"),c,(0,e.createVNode)(1,"br")," ",(0,e.createVNode)(1,"hr")," ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Close",onClick:function(){function p(){return h("return")}return p}()})]}):i==="CLAWMACHINE_ON"&&(d=(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Progress",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{bad:[-1/0,0],average:[1,7],good:[8,1/0]},value:s.wintick,minValue:0,maxValue:10})})}),(0,e.createComponentVNode)(2,t.Box,{align:"center",children:[(0,e.createVNode)(1,"br")," ",(0,e.createVNode)(1,"hr")," ",(0,e.createVNode)(1,"br"),u,(0,e.createVNode)(1,"br")," ",(0,e.createVNode)(1,"br")," ",(0,e.createVNode)(1,"hr")," ",(0,e.createVNode)(1,"br")," ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Up",onClick:function(){function p(){return h("pointless")}return p}()}),(0,e.createVNode)(1,"br")," ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Left",onClick:function(){function p(){return h("pointless")}return p}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Right",onClick:function(){function p(){return h("pointless")}return p}()}),(0,e.createVNode)(1,"br")," ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Down",onClick:function(){function p(){return h("pointless")}return p}()})]})]})),(0,e.createComponentVNode)(2,o.Window,{resizable:!0,children:(0,e.createVNode)(1,"center",null,d,0)})}return V}()},44260:function(x,r,n){"use strict";r.__esModule=!0,r.Cleanbot=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.Cleanbot=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.on,u=s.open,i=s.locked,c=s.version,d=s.blood,p=s.patrol,v=s.vocal,f=s.wet_floors,C=s.spray_blood,b=s.rgbpanel,g=s.red_switch,y=s.green_switch,B=s.blue_switch;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Automatic Station Cleaner "+c,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:l,onClick:function(){function L(){return h("start")}return L}(),children:l?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",color:u?"bad":"good",children:u?"Open":"Closed"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Behavior Controls",color:i?"good":"bad",children:i?"Locked":"Unlocked"})]})}),!i&&(0,e.createComponentVNode)(2,t.Section,{title:"Behavior Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){function L(){return h("blood")}return L}(),children:d?"Clean":"Ignore"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Speaker",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){function L(){return h("vocal")}return L}(),children:v?"On":"Off"})})]})})||null,!i&&u&&(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance Panel",children:b&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{fontSize:5.39,icon:g?"toggle-on":"toggle-off",backgroundColor:g?"red":"maroon",onClick:function(){function L(){return h("red_switch")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{fontSize:5.39,icon:y?"toggle-on":"toggle-off",backgroundColor:y?"green":"darkgreen",onClick:function(){function L(){return h("green_switch")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{fontSize:5.39,icon:B?"toggle-on":"toggle-off",backgroundColor:B?"blue":"darkblue",onClick:function(){function L(){return h("blue_switch")}return L}()})]})||(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Odd Looking Screw Twiddled",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,selected:f,onClick:function(){function L(){return h("wet_floors")}return L}(),icon:"screwdriver",children:f?"Yes":"No"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Weird Button Pressed",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"brown",selected:C,onClick:function(){function L(){return h("spray_blood")}return L}(),icon:"screwdriver",children:C?"Yes":"No"})})]})})})||null]})})}return V}()},18170:function(x,r,n){"use strict";r.__esModule=!0,r.CloningConsole=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(78419),V=n(48388),k=n(11477),S=function(p,v){var f=(0,t.useBackend)(v),C=f.act,b=f.data,g=p.args,y=g.activerecord,B=g.realname,L=g.health,I=g.unidentity,w=g.strucenzymes,T=L.split(" - ");return(0,e.createComponentVNode)(2,o.Section,{level:2,m:"-1rem",pb:"1rem",title:"Records of "+B,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:B}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Damage",children:T.length>1?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:m.COLORS.damageType.oxy,inline:!0,children:T[0]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:m.COLORS.damageType.toxin,inline:!0,children:T[2]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:m.COLORS.damageType.brute,inline:!0,children:T[3]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:m.COLORS.damageType.burn,inline:!0,children:T[1]})],4):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Unknown"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"UI",className:"LabeledList__breakContents",children:I}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"SE",className:"LabeledList__breakContents",children:w}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Disk",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!b.disk,icon:"arrow-circle-down",content:"Import",onClick:function(){function M(){return C("disk",{option:"load"})}return M}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!b.disk,icon:"arrow-circle-up",content:"Export UI",onClick:function(){function M(){return C("disk",{option:"save",savetype:"ui"})}return M}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!b.disk,icon:"arrow-circle-up",content:"Export UI and UE",onClick:function(){function M(){return C("disk",{option:"save",savetype:"ue"})}return M}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!b.disk,icon:"arrow-circle-up",content:"Export SE",onClick:function(){function M(){return C("disk",{option:"save",savetype:"se"})}return M}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:!b.podready,icon:"user-plus",content:"Clone",onClick:function(){function M(){return C("clone",{ref:y})}return M}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",content:"Delete",onClick:function(){function M(){return C("del_rec")}return M}()})]})]})})},N=r.CloningConsole=function(){function d(p,v){var f=(0,t.useBackend)(v),C=f.act,b=f.data,g=b.menu;return(0,V.modalRegisterBodyOverride)("view_rec",S),(0,e.createComponentVNode)(2,k.Window,{resizable:!0,children:[(0,e.createComponentVNode)(2,V.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.createComponentVNode)(2,k.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,flexGrow:"1",children:(0,e.createComponentVNode)(2,s)})]})]})}return d}(),h=function(p,v){var f=(0,t.useBackend)(v),C=f.act,b=f.data,g=b.menu;return(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:g===1,icon:"home",onClick:function(){function y(){return C("menu",{num:1})}return y}(),children:"Main"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:g===2,icon:"folder",onClick:function(){function y(){return C("menu",{num:2})}return y}(),children:"Records"})]})},s=function(p,v){var f=(0,t.useBackend)(v),C=f.data,b=C.menu,g;return b===1?g=(0,e.createComponentVNode)(2,l):b===2&&(g=(0,e.createComponentVNode)(2,u)),g},l=function(p,v){var f=(0,t.useBackend)(v),C=f.act,b=f.data,g=b.loading,y=b.scantemp,B=b.occupant,L=b.locked,I=b.can_brainscan,w=b.scan_mode,T=b.numberofpods,M=b.pods,A=b.selected_pod,R=L&&!!B;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Scanner",level:"2",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Scanner Lock:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,selected:R,icon:R?"toggle-on":"toggle-off",content:R?"Engaged":"Disengaged",onClick:function(){function O(){return C("lock")}return O}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:R||!B,icon:"user-slash",content:"Eject Occupant",onClick:function(){function O(){return C("eject")}return O}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:g?(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"spinner",spin:!0}),"\xA0 Scanning..."]}):(0,e.createComponentVNode)(2,o.Box,{color:y.color,children:y.text})}),!!I&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scan Mode",children:(0,e.createComponentVNode)(2,o.Button,{icon:w?"brain":"male",content:w?"Brain":"Body",onClick:function(){function O(){return C("toggle_mode")}return O}()})})]}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B||g,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){function O(){return C("scan")}return O}()})]}),(0,e.createComponentVNode)(2,o.Section,{title:"Pods",level:"2",children:T?M.map(function(O,_){var P;return O.status==="cloning"?P=(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:O.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:(0,a.round)(O.progress,0)+"%"})}):O.status==="mess"?P=(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):P=(0,e.createComponentVNode)(2,o.Button,{selected:A===O.pod,icon:A===O.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){function D(){return C("selectpod",{ref:O.pod})}return D}()}),(0,e.createComponentVNode)(2,o.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"pod_"+O.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["Pod #",_+1]}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:O.biomass>=150?"good":"bad",inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:O.biomass>=150?"circle":"circle-o"}),"\xA0",O.biomass]}),P]},_)}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"No pods detected. Unable to clone."})})],4)},u=function(p,v){var f=(0,t.useBackend)(v),C=f.act,b=f.data,g=b.records;return g.length?(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:g.map(function(y,B){return(0,e.createComponentVNode)(2,o.Button,{icon:"user",mb:"0.5rem",content:y.realname,onClick:function(){function L(){return C("view_rec",{ref:y.record})}return L}()},B)})}):(0,e.createComponentVNode)(2,o.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No records found."]})})},i=function(p,v){var f,C=(0,t.useBackend)(v),b=C.act,g=C.data,y=g.temp;if(!(!y||!y.text||y.text.length<=0)){var B=(f={},f[y.style]=!0,f);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.NoticeBox,Object.assign({},B,{children:[(0,e.createComponentVNode)(2,o.Box,{display:"inline-block",verticalAlign:"middle",children:y.text}),(0,e.createComponentVNode)(2,o.Button,{icon:"times-circle",float:"right",onClick:function(){function L(){return b("cleartemp")}return L}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"both"})]})))}},c=function(p,v){var f=(0,t.useBackend)(v),C=f.act,b=f.data,g=b.scanner,y=b.numberofpods,B=b.autoallowed,L=b.autoprocess,I=b.disk;return(0,e.createComponentVNode)(2,o.Section,{title:"Status",buttons:(0,e.createFragment)([!!B&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Auto-processing:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{selected:L,icon:L?"toggle-on":"toggle-off",content:L?"Enabled":"Disabled",onClick:function(){function w(){return C("autoprocess",{on:L?0:1})}return w}()})],4),(0,e.createComponentVNode)(2,o.Button,{disabled:!I,icon:"eject",content:"Eject Disk",onClick:function(){function w(){return C("disk",{option:"eject"})}return w}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanner",children:g?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Connected"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Not connected!"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pods",children:y?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[y," connected"]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None connected!"})})]})})}},7981:function(x,r,n){"use strict";r.__esModule=!0,r.ColorMateTint=r.ColorMateMatrix=r.ColorMateHSV=r.ColorMate=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.ColorMate=function(){function N(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.activemode,d=i.temp,p=i.item||[];return(0,e.createComponentVNode)(2,o.Window,{width:"980",height:"720",resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{overflow:"auto",children:(0,e.createComponentVNode)(2,t.Section,{children:[d?(0,e.createComponentVNode)(2,t.NoticeBox,{children:d}):null,Object.keys(p).length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"50%",children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createVNode)(1,"center",null,"Item:",16),(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64, "+p.sprite,width:"100%",height:"100%",style:{"-ms-interpolation-mode":"nearest-neighbor"}})]})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createVNode)(1,"center",null,"Preview:",16),(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64, "+p.preview,width:"100%",height:"100%",style:{"-ms-interpolation-mode":"nearest-neighbor"}})]})})]}),(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:c===1,onClick:function(){function v(){return u("switch_modes",{mode:1})}return v}(),children:"Tint coloring (Simple)"},"1"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:c===2,onClick:function(){function v(){return u("switch_modes",{mode:2})}return v}(),children:"HSV coloring (Normal)"},"2"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:c===3,onClick:function(){function v(){return u("switch_modes",{mode:3})}return v}(),children:"Matrix coloring (Advanced)"},"3")]}),(0,e.createVNode)(1,"center",null,[(0,e.createTextVNode)("Coloring: "),p.name],0),(0,e.createComponentVNode)(2,t.Table,{mt:1,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"33%",children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Paint",icon:"fill",onClick:function(){function v(){return u("paint")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Clear",icon:"eraser",onClick:function(){function v(){return u("clear")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Eject",icon:"eject",onClick:function(){function v(){return u("drop")}return v}()})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"66%",children:c===1?(0,e.createComponentVNode)(2,V):c===2?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,k)})]})],4):(0,e.createVNode)(1,"center",null,"No item inserted.",16)]})})})}return N}(),V=r.ColorMateTint=function(){function N(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data;return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Select new color",icon:"paint-brush",onClick:function(){function c(){return u("choose_color")}return c}()})}return N}(),k=r.ColorMateMatrix=function(){function N(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.matrixcolors||[];return(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:["RR:"," ",(0,e.createComponentVNode)(2,t.NumberInput,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.rr,onChange:function(){function d(p,v){return u("set_matrix_color",{color:1,value:v})}return d}()})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:["GR:"," ",(0,e.createComponentVNode)(2,t.NumberInput,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.gr,onChange:function(){function d(p,v){return u("set_matrix_color",{color:4,value:v})}return d}()})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:["BR:"," ",(0,e.createComponentVNode)(2,t.NumberInput,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.br,onChange:function(){function d(p,v){return u("set_matrix_color",{color:7,value:v})}return d}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:["RG:"," ",(0,e.createComponentVNode)(2,t.NumberInput,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.rg,onChange:function(){function d(p,v){return u("set_matrix_color",{color:2,value:v})}return d}()})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:["GG:"," ",(0,e.createComponentVNode)(2,t.NumberInput,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.gg,onChange:function(){function d(p,v){return u("set_matrix_color",{color:5,value:v})}return d}()})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:["BG:"," ",(0,e.createComponentVNode)(2,t.NumberInput,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.bg,onChange:function(){function d(p,v){return u("set_matrix_color",{color:8,value:v})}return d}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:["RB:"," ",(0,e.createComponentVNode)(2,t.NumberInput,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.rb,onChange:function(){function d(p,v){return u("set_matrix_color",{color:3,value:v})}return d}()})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:["GB:"," ",(0,e.createComponentVNode)(2,t.NumberInput,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.gb,onChange:function(){function d(p,v){return u("set_matrix_color",{color:6,value:v})}return d}()})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:["BB:"," ",(0,e.createComponentVNode)(2,t.NumberInput,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.bb,onChange:function(){function d(p,v){return u("set_matrix_color",{color:9,value:v})}return d}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:["CR:"," ",(0,e.createComponentVNode)(2,t.NumberInput,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.cr,onChange:function(){function d(p,v){return u("set_matrix_color",{color:10,value:v})}return d}()})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:["CG:"," ",(0,e.createComponentVNode)(2,t.NumberInput,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.cg,onChange:function(){function d(p,v){return u("set_matrix_color",{color:11,value:v})}return d}()})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:["CB:"," ",(0,e.createComponentVNode)(2,t.NumberInput,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.cb,onChange:function(){function d(p,v){return u("set_matrix_color",{color:12,value:v})}return d}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"40%",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"question-circle",color:"blue"})," RG means red will become this much green.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Icon,{name:"question-circle",color:"blue"})," CR means this much red will be added."]})]})}return N}(),S=r.ColorMateHSV=function(){function N(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.buildhue,d=i.buildsat,p=i.buildval;return(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createVNode)(1,"center",null,"Hue:",16),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"85%",children:(0,e.createComponentVNode)(2,t.Slider,{minValue:0,maxValue:360,step:1,value:c,onDrag:function(){function v(f,C){return u("set_hue",{buildhue:C})}return v}()})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createVNode)(1,"center",null,"Saturation:",16),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Slider,{minValue:-10,maxValue:10,step:.01,value:d,onDrag:function(){function v(f,C){return u("set_sat",{buildsat:C})}return v}()})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createVNode)(1,"center",null,"Value:",16),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Slider,{minValue:-10,maxValue:10,step:.01,value:p,onDrag:function(){function v(f,C){return u("set_val",{buildval:C})}return v}()})})]})]})}return N}()},29340:function(x,r,n){"use strict";r.__esModule=!0,r.CommunicationsConsoleContent=r.CommunicationsConsole=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.CommunicationsConsole=function(){function s(l,u){return(0,e.createComponentVNode)(2,o.Window,{width:400,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,V)})})}return s}(),V=r.CommunicationsConsoleContent=function(){function s(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.menu_state,v=(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:["ERRROR. Unknown menu_state: ",p,"Please report this to NT Technical Support."]});return p===1?v=(0,e.createComponentVNode)(2,k):p===2?v=(0,e.createComponentVNode)(2,h):p===3&&(v=(0,e.createComponentVNode)(2,N)),(0,e.createFragment)([(0,e.createComponentVNode)(2,S),v],0)}return s}(),k=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.messages,v=d.msg_cooldown,f=d.emagged,C=d.cc_cooldown,b=d.str_security_level,g=d.levels,y=d.authmax,B=d.security_level,L=d.security_level_color,I=d.authenticated,w=d.atcsquelch,T=d.boss_short,M="View ("+p.length+")",A="Make Priority Announcement";v>0&&(A+=" ("+v+"s)");var R=f?"Message [UNKNOWN]":"Message "+T;C>0&&(R+=" ("+C+"s)");var O=b,_=g.map(function(P){return(0,e.createComponentVNode)(2,t.Button,{icon:P.icon,content:P.name,disabled:!I,selected:P.id===B,onClick:function(){function D(){return c("newalertlevel",{level:P.id})}return D}()},P.name)});return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Site Manager-Only Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:A,disabled:!y||v>0,onClick:function(){function P(){return c("announce")}return P}()})}),!!f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:R,disabled:!y||C>0,onClick:function(){function P(){return c("MessageSyndicate")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!y,onClick:function(){function P(){return c("RestoreBackup")}return P}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:R,disabled:!y||C>0,onClick:function(){function P(){return c("MessageCentCom")}return P}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Command Staff Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Alert",color:L,children:O}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:_}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Displays",children:(0,e.createComponentVNode)(2,t.Button,{icon:"tv",content:"Change Status Displays",disabled:!I,onClick:function(){function P(){return c("status")}return P}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Messages",children:(0,e.createComponentVNode)(2,t.Button,{icon:"folder-open",content:M,disabled:!I,onClick:function(){function P(){return c("messagelist")}return P}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Misc",children:(0,e.createComponentVNode)(2,t.Button,{icon:"microphone",content:w?"ATC Relay Disabled":"ATC Relay Enabled",disabled:!I,selected:w,onClick:function(){function P(){return c("toggleatc")}return P}()})})]})})],4)},S=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.authenticated,v=d.is_ai,f=d.esc_status,C=d.esc_callable,b=d.esc_recallable,g;return p?v?g="AI":p===1?g="Command":p===2?g="Site Director":g="ERROR: Report This Bug!":g="Not Logged In",(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Authentication",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:v&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access Level",children:"AI"})||(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,content:p?"Log Out ("+g+")":"Log In",onClick:function(){function y(){return c("auth")}return y}()})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Escape Shuttle",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:f}),!!C&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"Call Shuttle",disabled:!p,onClick:function(){function y(){return c("callshuttle")}return y}()})}),!!b&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Recall Shuttle",disabled:!p||v,onClick:function(){function y(){return c("cancelshuttle")}return y}()})})]})})],4)},N=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.message_current,v=d.message_deletion_allowed,f=d.authenticated,C=d.messages;if(p)return(0,e.createComponentVNode)(2,t.Section,{title:p.title,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Return To Message List",disabled:!f,onClick:function(){function g(){return c("messagelist")}return g}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:p.contents})});var b=C.map(function(g){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:g.title,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"View",disabled:!f||p&&p.title===g.title,onClick:function(){function y(){return c("messagelist",{msgid:g.id})}return y}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete",disabled:!f||!v,onClick:function(){function y(){return c("delmessage",{msgid:g.id})}return y}()})]},g.id)});return(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 g(){return c("main")}return g}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:C.length&&b||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"404",color:"bad",children:"No messages."})})})},h=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.stat_display,v=d.authenticated,f=p.presets.map(function(C){return(0,e.createComponentVNode)(2,t.Button,{content:C.label,selected:C.name===p.type,disabled:!v,onClick:function(){function b(){return c("setstat",{statdisp:C.name})}return b}()},C.name)});return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Status Screens",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function C(){return c("main")}return C}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:f}),(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:!v,onClick:function(){function C(){return c("setmsg1")}return C}()})}),(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:!v,onClick:function(){function C(){return c("setmsg2")}return C}()})})]})})}},52574:function(x,r,n){"use strict";r.__esModule=!0,r.Communicator=void 0;var e=n(58734),a=n(45445),t=n(40946),o=n(62188),m=n(11790),V=n(11477),k=n(68285),S=1,N=2,h=3,s=4,l=40,u=5,i=6,c=7,d=8,p=9,v={},f=r.Communicator=function(){function Y(J,q){var oe=(0,o.useBackend)(q),ae=oe.act,le=oe.data,he=le.currentTab,me=le.video_comm,Be=le.mapRef,ce=(0,o.useLocalState)(q,"videoSetting",0),te=ce[0],ee=ce[1];return(0,e.createComponentVNode)(2,V.Window,{width:475,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:[me&&(0,e.createComponentVNode)(2,C,{videoSetting:te,setVideoSetting:ee}),(!me||te!==0)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,g),(0,e.createComponentVNode)(2,m.Box,{height:"88%",mb:1,style:{"overflow-y":"auto"},children:v[he]||(0,e.createComponentVNode)(2,b)}),(0,e.createComponentVNode)(2,y,{videoSetting:te,setVideoSetting:ee})],4)]})})}return Y}(),C=function(J,q){var oe=(0,o.useBackend)(q),ae=oe.act,le=oe.data,he=le.video_comm,me=le.mapRef,Be=J.videoSetting,ce=J.setVideoSetting;return Be===0?(0,e.createComponentVNode)(2,m.Box,{width:"100%",height:"100%",children:[(0,e.createComponentVNode)(2,m.ByondUi,{width:"100%",height:"95%",params:{id:me,type:"map"}}),(0,e.createComponentVNode)(2,m.Flex,{justify:"space-between",spacing:1,mt:.5,children:[(0,e.createComponentVNode)(2,m.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,m.Button,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){function te(){return ce(1)}return te}()})}),(0,e.createComponentVNode)(2,m.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,m.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){function te(){return ae("endvideo")}return te}()})}),(0,e.createComponentVNode)(2,m.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,m.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){function te(){return ae("hang_up")}return te}()})})]})]}):Be===1?(0,e.createComponentVNode)(2,m.Box,{style:{position:"absolute",right:"5px",bottom:"50px","z-index":1},children:[(0,e.createComponentVNode)(2,m.Section,{p:0,m:0,children:(0,e.createComponentVNode)(2,m.Flex,{justify:"space-between",spacing:1,children:[(0,e.createComponentVNode)(2,m.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,m.Button,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){function te(){return ce(2)}return te}()})}),(0,e.createComponentVNode)(2,m.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,m.Button,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-maximize",onClick:function(){function te(){return ce(0)}return te}()})}),(0,e.createComponentVNode)(2,m.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,m.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){function te(){return ae("endvideo")}return te}()})}),(0,e.createComponentVNode)(2,m.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,m.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){function te(){return ae("hang_up")}return te}()})})]})}),(0,e.createComponentVNode)(2,m.ByondUi,{width:"200px",height:"200px",params:{id:me,type:"map"}})]}):null},b=function(J,q){var oe=(0,o.useBackend)(q),ae=oe.act,le=oe.data,he=le.currentTab;return(0,e.createComponentVNode)(2,m.Section,{title:"Error!",children:["You tried to access tab #",he,", but there was no template defined!"]})},g=function(J,q){var oe=(0,o.useBackend)(q),ae=oe.act,le=oe.data,he=le.time,me=le.connectionStatus,Be=le.owner,ce=le.occupation;return(0,e.createComponentVNode)(2,m.Section,{children:(0,e.createComponentVNode)(2,m.Flex,{align:"center",justify:"space-between",children:[(0,e.createComponentVNode)(2,m.Flex.Item,{color:"average",children:he}),(0,e.createComponentVNode)(2,m.Flex.Item,{children:(0,e.createComponentVNode)(2,m.Icon,{color:me===1?"good":"bad",name:me===1?"signal":"exclamation-triangle"})}),(0,e.createComponentVNode)(2,m.Flex.Item,{color:"average",children:(0,t.decodeHtmlEntities)(Be)}),(0,e.createComponentVNode)(2,m.Flex.Item,{color:"average",children:(0,t.decodeHtmlEntities)(ce)})]})})},y=function(J,q){var oe=(0,o.useBackend)(q),ae=oe.act,le=oe.data,he=le.flashlight,me=J.videoSetting,Be=J.setVideoSetting;return(0,e.createComponentVNode)(2,m.Flex,{children:[(0,e.createComponentVNode)(2,m.Flex.Item,{basis:me===2?"60%":"80%",children:(0,e.createComponentVNode)(2,m.Button,{p:1,fluid:!0,icon:"home",iconSize:2,textAlign:"center",onClick:function(){function ce(){return ae("switch_tab",{switch_tab:S})}return ce}()})}),(0,e.createComponentVNode)(2,m.Flex.Item,{basis:"20%",children:(0,e.createComponentVNode)(2,m.Button,{icon:"lightbulb",iconSize:2,p:1,fluid:!0,textAlign:"center",selected:he,tooltip:"Flashlight",tooltipPosition:"top",onClick:function(){function ce(){return ae("Light")}return ce}()})}),me===2&&(0,e.createComponentVNode)(2,m.Flex.Item,{basis:"20%",children:(0,e.createComponentVNode)(2,m.Button,{icon:"video",iconSize:2,p:1,fluid:!0,textAlign:"center",tooltip:"Open Video",tooltipPosition:"top",onClick:function(){function ce(){return Be(1)}return ce}()})})]})},B=function(J,q){var oe=(0,o.useBackend)(q),ae=oe.data,le=ae.voice_mobs,he=ae.communicating,me=ae.requestsReceived,Be=ae.invitesSent,ce=ae.video_comm;return!!(J==="Phone"&&(le.length||he.length||me.length||Be.length||ce))},L=function(J,q){var oe=(0,o.useBackend)(q),ae=oe.act,le=oe.data,he=le.homeScreen;return(0,e.createComponentVNode)(2,m.Flex,{mt:2,wrap:"wrap",align:"center",justify:"center",children:he.map(function(me){return(0,e.createComponentVNode)(2,m.Flex.Item,{basis:"25%",textAlign:"center",mb:2,children:[(0,e.createComponentVNode)(2,m.Button,{style:{"border-radius":"10%",border:"1px solid #000"},width:"64px",height:"64px",position:"relative",onClick:function(){function Be(){return ae("switch_tab",{switch_tab:me.number})}return Be}(),children:(0,e.createComponentVNode)(2,m.Icon,{spin:B(me.module,q),color:B(me.module,q)?"bad":null,name:me.icon,position:"absolute",size:3,top:"25%",left:"25%"})}),(0,e.createComponentVNode)(2,m.Box,{children:me.module})]},me.number)})})};v[S]=(0,e.createComponentVNode)(2,L);var I=function(J,q){var oe=(0,o.useBackend)(q),ae=oe.act,le=oe.data,he=le.targetAddress,me=le.voice_mobs,Be=le.communicating,ce=le.requestsReceived,te=le.invitesSent,ee=le.video_comm,ie=le.selfie_mode;return(0,e.createComponentVNode)(2,m.Section,{title:"Phone",children:[(0,e.createComponentVNode)(2,m.LabeledList,{children:(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Target EPv2 Address",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,m.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,m.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,m.Input,{fluid:!0,value:he,onInput:function(){function Ce(Se,we){return ae("write_target_address",{val:we})}return Ce}()})}),(0,e.createComponentVNode)(2,m.Flex.Item,{children:(0,e.createComponentVNode)(2,m.Button,{icon:"times",onClick:function(){function Ce(){return ae("clear_target_address")}return Ce}()})})]})})}),(0,e.createComponentVNode)(2,w),(0,e.createComponentVNode)(2,m.Section,{title:"Connection Management",mt:2,children:[(0,e.createComponentVNode)(2,m.LabeledList,{children:(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Camera Mode",children:(0,e.createComponentVNode)(2,m.Button,{fluid:!0,content:ie?"Front-facing Camera":"Rear-facing Camera",onClick:function(){function Ce(){return ae("selfie_mode")}return Ce}()})})}),(0,e.createComponentVNode)(2,m.Section,{title:"External Connections",children:!!me.length&&(0,e.createComponentVNode)(2,m.LabeledList,{children:me.map(function(Ce){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:(0,t.decodeHtmlEntities)(Ce.name),children:(0,e.createComponentVNode)(2,m.Button,{icon:"times",color:"bad",content:"Disconnect",onClick:function(){function Se(){return ae("disconnect",{disconnect:Ce.true_name})}return Se}()})},Ce.ref)})})||(0,e.createComponentVNode)(2,m.Box,{children:"No connections"})}),(0,e.createComponentVNode)(2,m.Section,{title:"Internal Connections",children:!!Be.length&&(0,e.createComponentVNode)(2,m.Table,{children:Be.map(function(Ce){return(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{color:"label",children:(0,t.decodeHtmlEntities)(Ce.name)}),(0,e.createComponentVNode)(2,m.Table.Cell,{children:[(0,e.createComponentVNode)(2,m.Button,{icon:"times",color:"bad",content:"Disconnect",onClick:function(){function Se(){return ae("disconnect",{disconnect:Ce.true_name})}return Se}()}),ee===null&&(0,e.createComponentVNode)(2,m.Button,{icon:"camera",content:"Start Video",onClick:function(){function Se(){return ae("startvideo",{startvideo:Ce.ref})}return Se}()})||ee===Ce.ref&&(0,e.createComponentVNode)(2,m.Button,{icon:"times",color:"bad",content:"Stop Video",onClick:function(){function Se(){return ae("endvideo",{endvideo:Ce.true_name})}return Se}()})]})]},Ce.address)})})||(0,e.createComponentVNode)(2,m.Box,{children:"No connections"})}),(0,e.createComponentVNode)(2,m.Section,{title:"Requests Received",children:!!ce.length&&(0,e.createComponentVNode)(2,m.LabeledList,{children:ce.map(function(Ce){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:(0,t.decodeHtmlEntities)(Ce.name),children:[(0,e.createComponentVNode)(2,m.Box,{children:(0,t.decodeHtmlEntities)(Ce.address)}),(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.Button,{icon:"signal",content:"Accept",onClick:function(){function Se(){return ae("dial",{dial:Ce.address})}return Se}()}),(0,e.createComponentVNode)(2,m.Button,{icon:"times",content:"Decline",onClick:function(){function Se(){return ae("decline",{decline:Ce.ref})}return Se}()})]})]},Ce.address)})})||(0,e.createComponentVNode)(2,m.Box,{children:"No requests received."})}),(0,e.createComponentVNode)(2,m.Section,{title:"Invites Sent",children:!!te.length&&(0,e.createComponentVNode)(2,m.LabeledList,{children:te.map(function(Ce){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:(0,t.decodeHtmlEntities)(Ce.name),children:[(0,e.createComponentVNode)(2,m.Box,{children:(0,t.decodeHtmlEntities)(Ce.address)}),(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,m.Button,{icon:"pen",onClick:function(){function Se(){ae("copy",{copy:Ce.address})}return Se}(),content:"Copy"})})]},Ce.address)})})||(0,e.createComponentVNode)(2,m.Box,{children:"No invites sent."})})]})]})},w=function(J,q){for(var oe=(0,o.useBackend)(q),ae=oe.act,le=oe.data,he=le.targetAddress,me=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"],Be=me.map(function(ee){return(0,e.createComponentVNode)(2,m.Button,{content:ee,fontSize:2,fluid:!0,onClick:function(){function ie(){return ae("add_hex",{add_hex:ee})}return ie}()},ee)}),ce=[],te=0;te<Be.length;te+=4)ce.push((0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:Be[te]}),(0,e.createComponentVNode)(2,m.Table.Cell,{children:Be[te+1]}),(0,e.createComponentVNode)(2,m.Table.Cell,{children:Be[te+2]}),(0,e.createComponentVNode)(2,m.Table.Cell,{children:Be[te+3]})]}));return(0,e.createComponentVNode)(2,m.Flex,{align:"center",justify:"center",mt:1,children:(0,e.createComponentVNode)(2,m.Flex.Item,{children:[(0,e.createComponentVNode)(2,m.Table,{children:ce}),(0,e.createComponentVNode)(2,m.Flex,{width:"100%",justify:"space-between",children:[(0,e.createComponentVNode)(2,m.Flex.Item,{basis:"33%",children:[(0,e.createComponentVNode)(2,m.Button,{width:"100%",height:"64px",position:"relative",onClick:function(){function ee(){return ae("dial",{dial:he})}return ee}(),children:(0,e.createComponentVNode)(2,m.Icon,{name:"phone",position:"absolute",size:3,top:"25%",left:"25%"})}),(0,e.createComponentVNode)(2,m.Box,{textAlign:"center",children:"Dial"})]}),(0,e.createComponentVNode)(2,m.Flex.Item,{basis:"33%",children:[(0,e.createComponentVNode)(2,m.Button,{width:"100%",height:"64px",position:"relative",onClick:function(){function ee(){ae("message",{message:he}),ae("switch_tab",{switch_tab:s})}return ee}(),children:(0,e.createComponentVNode)(2,m.Icon,{name:"comment-alt",position:"absolute",size:3,top:"25%",left:"25%"})}),(0,e.createComponentVNode)(2,m.Box,{textAlign:"center",children:"Message"})]}),(0,e.createComponentVNode)(2,m.Flex.Item,{basis:"33%",children:[(0,e.createComponentVNode)(2,m.Button,{width:"100%",height:"64px",position:"relative",onClick:function(){function ee(){return ae("hang_up")}return ee}(),children:(0,e.createComponentVNode)(2,m.Icon,{name:"times",position:"absolute",size:3,top:"25%",left:"25%"})}),(0,e.createComponentVNode)(2,m.Box,{textAlign:"center",children:"Hang Up"})]})]})]})})};v[N]=(0,e.createComponentVNode)(2,I);var T=function(J,q){var oe=(0,o.useBackend)(q),ae=oe.act,le=oe.data,he=le.knownDevices;return(0,e.createComponentVNode)(2,m.Section,{title:"Known Devices",children:he.length&&(0,e.createComponentVNode)(2,m.Table,{children:he.map(function(me){return(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{color:"label",style:{"word-break":"break-all"},children:(0,t.decodeHtmlEntities)(me.name)}),(0,e.createComponentVNode)(2,m.Table.Cell,{children:[(0,e.createComponentVNode)(2,m.Box,{children:me.address}),(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.Button,{icon:"pen",onClick:function(){function Be(){ae("copy",{copy:me.address}),ae("switch_tab",{switch_tab:N})}return Be}(),content:"Copy"}),(0,e.createComponentVNode)(2,m.Button,{icon:"phone",onClick:function(){function Be(){ae("dial",{dial:me.address}),ae("copy",{copy:me.address}),ae("switch_tab",{switch_tab:N})}return Be}(),content:"Call"}),(0,e.createComponentVNode)(2,m.Button,{icon:"comment-alt",onClick:function(){function Be(){ae("copy",{copy:me.address}),ae("copy_name",{copy_name:me.name}),ae("switch_tab",{switch_tab:l})}return Be}(),content:"Msg"})]})]})]},me.address)})})||(0,e.createComponentVNode)(2,m.Box,{children:"No devices detected on your local NTNet region."})})};v[h]=(0,e.createComponentVNode)(2,T);var M=function(J,q){var oe=(0,o.useBackend)(q),ae=oe.act,le=oe.data,he=le.imContacts;return(0,e.createComponentVNode)(2,m.Section,{title:"Messaging",children:he.length&&(0,e.createComponentVNode)(2,m.Table,{children:he.map(function(me){return(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{color:"label",style:{"word-break":"break-all"},children:[(0,t.decodeHtmlEntities)(me.name),":"]}),(0,e.createComponentVNode)(2,m.Table.Cell,{children:[(0,e.createComponentVNode)(2,m.Box,{children:me.address}),(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,m.Button,{icon:"comment",onClick:function(){function Be(){ae("copy",{copy:me.address}),ae("copy_name",{copy_name:me.name}),ae("switch_tab",{switch_tab:l})}return Be}(),content:"View Conversation"})})]})]},me.address)})})||(0,e.createComponentVNode)(2,m.Box,{children:["You haven't sent any messages yet.",(0,e.createComponentVNode)(2,m.Button,{fluid:!0,icon:"user",onClick:function(){function me(){return ae("switch_tab",{switch_tab:h})}return me}(),content:"Contacts"})]})})};v[s]=(0,e.createComponentVNode)(2,M);var A=function(J,q){return J.address!==q},R=function(J,q,oe){return(J+q).length>oe?q.length>oe?q.slice(0,oe)+"...":q:J+q},O=function(J,q,oe,ae){if(oe<0||oe>ae.length)return A(J,q)?"TinderMessage_First_Sent":"TinderMessage_First_Received";var le=A(J,q),he=A(ae[oe],q);return le&&he?"TinderMessage_Subsequent_Sent":!le&&!he?"TinderMessage_Subsequent_Received":le?"TinderMessage_First_Sent":"TinderMessage_First_Received"},_=function(J,q){var oe=(0,o.useBackend)(q),ae=oe.act,le=oe.data,he=le.targetAddressName,me=le.targetAddress,Be=le.imList,ce=(0,o.useLocalState)(q,"clipboardMode",!1),te=ce[0],ee=ce[1];return te?(0,e.createComponentVNode)(2,m.Section,{title:(0,e.createComponentVNode)(2,m.Box,{inline:!0,style:{"white-space":"nowrap","overflow-x":"hidden"},width:"90%",children:R("Conversation with ",(0,t.decodeHtmlEntities)(he),30)}),buttons:(0,e.createComponentVNode)(2,m.Button,{icon:"eye",selected:te,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){function ie(){return ee(!te)}return ie}()}),height:"100%",stretchContents:!0,children:[(0,e.createComponentVNode)(2,m.Section,{style:{height:"95%","overflow-y":"auto"},children:Be.map(function(ie,Ce){return(ie.to_address===me||ie.address===me)&&(0,e.createComponentVNode)(2,m.Box,{className:A(ie,me)?"ClassicMessage_Sent":"ClassicMessage_Received",children:[A(ie,me)?"You":"Them",": ",ie.im]},Ce)})}),(0,e.createComponentVNode)(2,m.Button,{icon:"comment",onClick:function(){function ie(){return ae("message",{message:me})}return ie}(),content:"Message"})]}):(0,e.createComponentVNode)(2,m.Section,{title:(0,e.createComponentVNode)(2,m.Box,{inline:!0,style:{"white-space":"nowrap","overflow-x":"hidden"},width:"100%",children:R("Conversation with ",(0,t.decodeHtmlEntities)(he),30)}),buttons:(0,e.createComponentVNode)(2,m.Button,{icon:"eye",selected:te,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){function ie(){return ee(!te)}return ie}()}),height:"100%",stretchContents:!0,children:[(0,e.createComponentVNode)(2,m.Section,{style:{height:"95%","overflow-y":"auto"},children:Be.map(function(ie,Ce,Se){return(ie.to_address===me||ie.address===me)&&(0,e.createComponentVNode)(2,m.Box,{textAlign:A(ie,me)?"right":"left",mb:1,children:(0,e.createComponentVNode)(2,m.Box,{maxWidth:"75%",className:O(ie,me,Ce-1,Se),inline:!0,children:(0,t.decodeHtmlEntities)(ie.im)})},Ce)})}),(0,e.createComponentVNode)(2,m.Button,{icon:"comment",onClick:function(){function ie(){return ae("message",{message:me})}return ie}(),content:"Message"})]})};v[l]=(0,e.createComponentVNode)(2,_);var P=function(J,q){var oe=(0,o.useBackend)(q),ae=oe.act,le=oe.data,he=le.feeds,me=le.target_feed;return(0,e.createComponentVNode)(2,m.Section,{title:"News",stretchContents:!0,height:"100%",children:!he.length&&(0,e.createComponentVNode)(2,m.Box,{color:"bad",children:"Error: No newsfeeds available. Please try again later."})||me&&(0,e.createComponentVNode)(2,D)||(0,e.createComponentVNode)(2,z)})},D=function(J,q){var oe=(0,o.useBackend)(q),ae=oe.act,le=oe.data,he=le.target_feed;return(0,e.createComponentVNode)(2,m.Section,{title:(0,t.decodeHtmlEntities)(he.name)+" by "+(0,t.decodeHtmlEntities)(he.author),buttons:(0,e.createComponentVNode)(2,m.Button,{content:"Back",icon:"chevron-up",onClick:function(){function me(){return ae("newsfeed",{newsfeed:null})}return me}()}),children:he.messages.map(function(me){return(0,e.createComponentVNode)(2,m.Section,{children:["- ",(0,t.decodeHtmlEntities)(me.body),!!me.img&&(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+me.img}),(0,t.decodeHtmlEntities)(me.caption)||null]}),(0,e.createComponentVNode)(2,m.Box,{color:"grey",children:["[",me.message_type," by ",(0,t.decodeHtmlEntities)(me.author)," -"," ",me.time_stamp,"]"]})]},me.ref)})})},z=function(J,q){var oe=(0,o.useBackend)(q),ae=oe.act,le=oe.data,he=le.feeds,me=le.latest_news;return(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Section,{title:"Recent News",children:(0,e.createComponentVNode)(2,m.Section,{children:me.map(function(Be){return(0,e.createComponentVNode)(2,m.Box,{mb:2,children:[(0,e.createVNode)(1,"h5",null,[(0,t.decodeHtmlEntities)(Be.channel),(0,e.createComponentVNode)(2,m.Button,{ml:1,icon:"chevron-up",onClick:function(){function ce(){return ae("newsfeed",{newsfeed:Be.index})}return ce}(),content:"Go to"})],0),"- ",(0,t.decodeHtmlEntities)(Be.body),!!Be.img&&(0,e.createComponentVNode)(2,m.Box,{children:["[image omitted, view story for more details]",Be.caption||null]}),(0,e.createComponentVNode)(2,m.Box,{fontSize:.9,children:["[",Be.message_type," by"," ",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:"average",children:Be.author})," ","- ",Be.time_stamp,"]"]})]},Be.index)})})}),(0,e.createComponentVNode)(2,m.Section,{title:"News Feeds",children:he.map(function(Be){return(0,e.createComponentVNode)(2,m.Button,{fluid:!0,icon:"chevron-up",onClick:function(){function ce(){return ae("newsfeed",{newsfeed:Be.index})}return ce}(),content:Be.name},Be.index)})})],4)};v[u]=(0,e.createComponentVNode)(2,P);var U=function(J,q){var oe=(0,o.useBackend)(q),ae=oe.act,le=oe.data,he=le.note;return(0,e.createComponentVNode)(2,m.Section,{title:"Note Keeper",height:"100%",stretchContents:!0,buttons:(0,e.createComponentVNode)(2,m.Button,{icon:"pen",onClick:function(){function me(){return ae("edit")}return me}(),content:"Edit Notes"}),children:(0,e.createComponentVNode)(2,m.Section,{color:"average",width:"100%",height:"100%",style:{"word-break":"break-all","overflow-y":"auto"},children:he})})};v[i]=(0,e.createComponentVNode)(2,U);var W=function(J,q,oe,ae,le){return J<q?"bad":J<oe||J>ae?"average":J>le?"bad":"good"},K=function(J,q){var oe=(0,o.useBackend)(q),ae=oe.act,le=oe.data,he=le.aircontents,me=le.weather,Be="\xB0";return(0,e.createComponentVNode)(2,m.Section,{title:"Weather",children:[(0,e.createComponentVNode)(2,m.Section,{title:"Current Conditions",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:(0,a.filter)(function(ce){return ce.val!=="0"||ce.entry==="Pressure"||ce.entry==="Temperature"})(he).map(function(ce){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:ce.entry,color:W(ce.val,ce.bad_low,ce.poor_low,ce.poor_high,ce.bad_high),children:[ce.val,(0,t.decodeHtmlEntities)(ce.units)]},ce.entry)})})}),(0,e.createComponentVNode)(2,m.Section,{title:"Weather Reports",children:!!me.length&&(0,e.createComponentVNode)(2,m.LabeledList,{children:me.map(function(ce){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:ce.Planet,children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Time",children:ce.Time}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Weather",children:(0,t.toTitleCase)(ce.Weather)}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Temperature",children:["Current: ",ce.Temperature.toFixed()," ",Be,"C | High:"," ",ce.High.toFixed()," ",Be,"C | Low: ",ce.Low.toFixed()," ",Be,"C"]}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Wind Direction",children:ce.WindDir}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Wind Speed",children:ce.WindSpeed}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Forecast",children:(0,t.decodeHtmlEntities)(ce.Forecast)})]})},ce.Planet)})})||(0,e.createComponentVNode)(2,m.Box,{color:"bad",children:"No weather reports available. Please check back later."})})]})};v[c]=(0,e.createComponentVNode)(2,K),v[d]=(0,e.createComponentVNode)(2,k.CrewManifestContent);var H=function(J,q){var oe=(0,o.useBackend)(q),ae=oe.act,le=oe.data,he=le.owner,me=le.occupation,Be=le.connectionStatus,ce=le.address,te=le.visible,ee=le.ring,ie=le.selfie_mode;return(0,e.createComponentVNode)(2,m.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Owner",children:(0,e.createComponentVNode)(2,m.Button,{icon:"pen",fluid:!0,content:(0,t.decodeHtmlEntities)(he),onClick:function(){function Ce(){return ae("rename")}return Ce}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Camera Mode",children:(0,e.createComponentVNode)(2,m.Button,{fluid:!0,content:ie?"Front-facing Camera":"Rear-facing Camera",onClick:function(){function Ce(){return ae("selfie_mode")}return Ce}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Occupation",children:(0,t.decodeHtmlEntities)(me)}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Connection",children:Be===1?(0,e.createComponentVNode)(2,m.Box,{color:"good",children:"Connected"}):(0,e.createComponentVNode)(2,m.Box,{color:"bad",children:"Disconnected"})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Device EPv2 Address",children:ce}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Visibility",children:(0,e.createComponentVNode)(2,m.Button.Checkbox,{checked:te,selected:te,fluid:!0,content:te?"This device can be seen by other devices.":"This device is invisible to other devices.",onClick:function(){function Ce(){return ae("toggle_visibility")}return Ce}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Ringer",children:[(0,e.createComponentVNode)(2,m.Button.Checkbox,{checked:ee,selected:ee,fluid:!0,content:ee?"Ringer on.":"Ringer off.",onClick:function(){function Ce(){return ae("toggle_ringer")}return Ce}()}),(0,e.createComponentVNode)(2,m.Button,{fluid:!0,content:"Set Ringer Tone",onClick:function(){function Ce(){return ae("set_ringer_tone")}return Ce}()})]})]})})};v[p]=(0,e.createComponentVNode)(2,H)},84429:function(x,r,n){"use strict";r.__esModule=!0,r.ComputerFabricator=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=n(11477),V=r.ComputerFabricator=function(){function s(l,u){var i=(0,t.useBackend)(u),c=i.act,d=i.data;return(0,e.createComponentVNode)(2,m.Window,{title:"Personal Computer Vendor",width:500,height:420,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{italic:!0,fontSize:"20px",children:"Your perfect device, only three steps away..."}),d.state!==0&&(0,e.createComponentVNode)(2,o.Button,{fluid:!0,mb:1,icon:"circle",content:"Clear Order",onClick:function(){function p(){return c("clean_order")}return p}()}),d.state===0&&(0,e.createComponentVNode)(2,k),d.state===1&&(0,e.createComponentVNode)(2,S),d.state===2&&(0,e.createComponentVNode)(2,N),d.state===3&&(0,e.createComponentVNode)(2,h)]})})}return s}(),k=function(l,u){var i=(0,t.useBackend)(u),c=i.act,d=i.data;return(0,e.createComponentVNode)(2,o.Section,{title:"Step 1",minHeight:"306px",children:[(0,e.createComponentVNode)(2,o.Box,{mt:5,bold:!0,textAlign:"center",fontSize:"40px",children:"Choose your Device"}),(0,e.createComponentVNode)(2,o.Box,{mt:3,children:(0,e.createComponentVNode)(2,o.Grid,{width:"100%",children:[(0,e.createComponentVNode)(2,o.Grid.Column,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"laptop",content:"Laptop",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){function p(){return c("pick_device",{pick:"1"})}return p}()})}),(0,e.createComponentVNode)(2,o.Grid.Column,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"tablet-alt",content:"Tablet",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){function p(){return c("pick_device",{pick:"2"})}return p}()})})]})})]})},S=function(l,u){var i=(0,t.useBackend)(u),c=i.act,d=i.data;return(0,e.createComponentVNode)(2,o.Section,{title:"Step 2: Customize your device",minHeight:"282px",buttons:(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"good",children:[d.totalprice,"\u20AE"]}),children:[(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,position:"relative",children:["Battery:",(0,e.createComponentVNode)(2,o.Tooltip,{content:"Allows your device to operate without external utility power\nsource. Advanced batteries increase battery life.",position:"right"})]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Standard",selected:d.hw_battery===1,onClick:function(){function p(){return c("hw_battery",{battery:"1"})}return p}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Upgraded",selected:d.hw_battery===2,onClick:function(){function p(){return c("hw_battery",{battery:"2"})}return p}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Advanced",selected:d.hw_battery===3,onClick:function(){function p(){return c("hw_battery",{battery:"3"})}return p}()})})]}),(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,position:"relative",children:["Hard Drive:",(0,e.createComponentVNode)(2,o.Tooltip,{content:"Stores file on your device. Advanced drives can store more\nfiles, but use more power, shortening battery life.",position:"right"})]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Standard",selected:d.hw_disk===1,onClick:function(){function p(){return c("hw_disk",{disk:"1"})}return p}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Upgraded",selected:d.hw_disk===2,onClick:function(){function p(){return c("hw_disk",{disk:"2"})}return p}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Advanced",selected:d.hw_disk===3,onClick:function(){function p(){return c("hw_disk",{disk:"3"})}return p}()})})]}),(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,position:"relative",children:["Network Card:",(0,e.createComponentVNode)(2,o.Tooltip,{content:"Allows your device to wirelessly connect to stationwide NTNet\nnetwork. Basic cards are limited to on-station use, while\nadvanced cards can operate anywhere near the station, which\nincludes asteroid outposts",position:"right"})]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"None",selected:d.hw_netcard===0,onClick:function(){function p(){return c("hw_netcard",{netcard:"0"})}return p}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Standard",selected:d.hw_netcard===1,onClick:function(){function p(){return c("hw_netcard",{netcard:"1"})}return p}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Advanced",selected:d.hw_netcard===2,onClick:function(){function p(){return c("hw_netcard",{netcard:"2"})}return p}()})})]}),(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,position:"relative",children:["Nano Printer:",(0,e.createComponentVNode)(2,o.Tooltip,{content:"A device that allows for various paperwork manipulations,\nsuch as, scanning of documents or printing new ones.\nThis device was certified EcoFriendlyPlus and is capable of\nrecycling existing paper for printing purposes.",position:"right"})]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"None",selected:d.hw_nanoprint===0,onClick:function(){function p(){return c("hw_nanoprint",{print:"0"})}return p}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Standard",selected:d.hw_nanoprint===1,onClick:function(){function p(){return c("hw_nanoprint",{print:"1"})}return p}()})})]}),(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,position:"relative",children:["Secondary Card Reader:",(0,e.createComponentVNode)(2,o.Tooltip,{content:"Adds a secondary RFID card reader, for manipulating or\nreading from a second standard RFID card.\nPlease note that a primary card reader is necessary to\nallow the device to read your identification, but one\nis included in the base price.",position:"right"})]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"None",selected:d.hw_card===0,onClick:function(){function p(){return c("hw_card",{card:"0"})}return p}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Standard",selected:d.hw_card===1,onClick:function(){function p(){return c("hw_card",{card:"1"})}return p}()})})]}),d.devtype!==2&&(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,position:"relative",children:["Processor Unit:",(0,e.createComponentVNode)(2,o.Tooltip,{content:"A component critical for your device's functionality.\nIt allows you to run programs from your hard drive.\nAdvanced CPUs use more power, but allow you to run\nmore programs on background at once.",position:"right"})]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Standard",selected:d.hw_cpu===1,onClick:function(){function p(){return c("hw_cpu",{cpu:"1"})}return p}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Advanced",selected:d.hw_cpu===2,onClick:function(){function p(){return c("hw_cpu",{cpu:"2"})}return p}()})})]}),(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,position:"relative",children:["Tesla Relay:",(0,e.createComponentVNode)(2,o.Tooltip,{content:"An advanced wireless power relay that allows your device\nto connect to nearby area power controller to provide\nalternative power source. This component is currently\nunavailable on tablet computers due to size restrictions.",position:"right"})]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"None",selected:d.hw_tesla===0,onClick:function(){function p(){return c("hw_tesla",{tesla:"0"})}return p}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Standard",selected:d.hw_tesla===1,onClick:function(){function p(){return c("hw_tesla",{tesla:"1"})}return p}()})})]})]}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,mt:3,content:"Confirm Order",color:"good",textAlign:"center",fontSize:"18px",lineHeight:2,onClick:function(){function p(){return c("confirm_order")}return p}()})]})},N=function(l,u){var i=(0,t.useBackend)(u),c=i.act,d=i.data;return(0,e.createComponentVNode)(2,o.Section,{title:"Step 3: Payment",minHeight:"282px",children:[(0,e.createComponentVNode)(2,o.Box,{italic:!0,textAlign:"center",fontSize:"20px",children:"Your device is ready for fabrication..."}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,mt:2,textAlign:"center",fontSize:"16px",children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:"Please swipe your ID now to authorize payment of:"}),"\xA0",(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"good",children:[d.totalprice,"\u20AE"]})]})]})},h=function(l,u){return(0,e.createComponentVNode)(2,o.Section,{minHeight:"282px",children:[(0,e.createComponentVNode)(2,o.Box,{bold:!0,textAlign:"center",fontSize:"28px",mt:10,children:"Thank you for your purchase!"}),(0,e.createComponentVNode)(2,o.Box,{italic:!0,mt:1,textAlign:"center",children:"If you experience any difficulties with your new device, please contact your local network administrator."})]})}},68155:function(x,r,n){"use strict";r.__esModule=!0,r.CookingAppliance=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.CookingAppliance=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.temperature,u=s.optimalTemp,i=s.temperatureEnough,c=s.efficiency,d=s.containersRemovable,p=s.our_contents;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:i?"good":"blue",value:l,maxValue:u,children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:l}),"\xB0C / ",u,"\xB0C"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Efficiency",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:c}),"%"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Containers",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:p.map(function(v,f){return v.empty?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slot #"+(f+1),children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function C(){return h("slot",{slot:f+1})}return C}(),children:"Empty"})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slot #"+(f+1),verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Flex,{spacing:1,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!d,onClick:function(){function C(){return h("slot",{slot:f+1})}return C}(),children:v.container||"No Container"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:v.progressText[0],value:v.progress,maxValue:1,children:v.progressText[1]})})]})},f)})})})]})})}return V}()},68285:function(x,r,n){"use strict";r.__esModule=!0,r.CrewManifestContent=r.CrewManifest=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(78419),V=n(40946),k=r.CrewManifest=function(){function N(){return(0,e.createComponentVNode)(2,o.Window,{width:400,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,S)})})}return N}(),S=r.CrewManifestContent=function(){function N(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.manifest;return(0,e.createComponentVNode)(2,t.Section,{title:"Crew Manifest",noTopPadding:!0,children:c.map(function(d){return!!d.elems.length&&(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:m.COLORS.manifest[d.cat.toLowerCase()],m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:d.cat})}),children:(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,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Active"})]}),d.elems.map(function(p){return(0,e.createComponentVNode)(2,t.Table.Row,{color:"average",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,V.decodeHtmlEntities)(p.name)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.rank}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.active})]},p.name+p.rank)})]})},d.cat)})})}return N}()},59694:function(x,r,n){"use strict";r.__esModule=!0,r.CrewMonitorContent=r.CrewMonitor=void 0;var e=n(58734),a=n(45445),t=n(75671),o=n(62188),m=n(11477),V=n(11790),k=function(u){return u.dead?"Deceased":parseInt(u.stat,10)===1?"Unconscious":"Living"},S=function(u){return u.dead?"red":parseInt(u.stat,10)===1?"orange":"green"},N=r.CrewMonitor=function(){function l(){return(0,e.createComponentVNode)(2,m.Window,{width:800,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,h)})})}return l}(),h=r.CrewMonitorContent=function(){function l(u,i){var c=(0,o.useBackend)(i),d=c.act,p=c.data,v=c.config,f=(0,o.useLocalState)(i,"tabIndex",0),C=f[0],b=f[1],g=(0,t.flow)([(0,a.sortBy)(function(w){return w.name}),(0,a.sortBy)(function(w){return w==null?void 0:w.x}),(0,a.sortBy)(function(w){return w==null?void 0:w.y}),(0,a.sortBy)(function(w){return w==null?void 0:w.realZ})])(p.crewmembers||[]),y=(0,o.useLocalState)(i,"zoom",1),B=y[0],L=y[1],I;return C===0?I=(0,e.createComponentVNode)(2,V.Table,{children:[(0,e.createComponentVNode)(2,V.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,V.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,V.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,V.Table.Cell,{children:"Location"})]}),g.map(function(w){return(0,e.createComponentVNode)(2,V.Table.Row,{children:[(0,e.createComponentVNode)(2,V.Table.Cell,{children:[w.name," (",w.assignment,")"]}),(0,e.createComponentVNode)(2,V.Table.Cell,{children:[(0,e.createComponentVNode)(2,V.Box,{inline:!0,color:S(w),children:k(w)}),w.sensor_type>=2?(0,e.createComponentVNode)(2,V.Box,{inline:!0,children:["(",(0,e.createComponentVNode)(2,V.Box,{inline:!0,color:"red",children:w.brute}),"|",(0,e.createComponentVNode)(2,V.Box,{inline:!0,color:"orange",children:w.fire}),"|",(0,e.createComponentVNode)(2,V.Box,{inline:!0,color:"green",children:w.tox}),"|",(0,e.createComponentVNode)(2,V.Box,{inline:!0,color:"blue",children:w.oxy}),")"]}):null]}),(0,e.createComponentVNode)(2,V.Table.Cell,{children:w.sensor_type===3?p.isAI?(0,e.createComponentVNode)(2,V.Button,{fluid:!0,icon:"location-arrow",content:w.area+" ("+w.x+", "+w.y+")",onClick:function(){function T(){return d("track",{track:w.ref})}return T}()}):w.area+" ("+w.x+", "+w.y+", "+w.z+")":"Not Available"})]},w.ref)})]}):C===1?I=(0,e.createComponentVNode)(2,s):I="ERROR",(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Tabs,{children:[(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:C===0,onClick:function(){function w(){return b(0)}return w}(),children:[(0,e.createComponentVNode)(2,V.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:C===1,onClick:function(){function w(){return b(1)}return w}(),children:[(0,e.createComponentVNode)(2,V.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.createComponentVNode)(2,V.Box,{m:2,children:I})],4)}return l}(),s=function(u,i){var c=(0,o.useBackend)(i),d=c.act,p=c.config,v=c.data,f=(0,o.useLocalState)(i,"zoom",1),C=f[0],b=f[1];return(0,e.createComponentVNode)(2,V.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,V.NanoMap,{onZoom:function(){function g(y){return b(y)}return g}(),children:v.crewmembers.filter(function(g){return g.sensor_type===3&&~~g.realZ===~~p.mapZLevel}).map(function(g){return(0,e.createComponentVNode)(2,V.NanoMap.Marker,{x:g.x,y:g.y,zoom:C,icon:"circle",tooltip:g.name+" ("+g.assignment+")",color:S(g)},g.ref)})})})}},1123:function(x,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],V=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],k=r.Cryo=function(){function h(s,l){return(0,e.createComponentVNode)(2,o.Window,{width:520,height:470,resizeable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,S)})})}return h}(),S=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.isOperating,p=c.hasOccupant,v=c.occupant,f=v===void 0?[]:v,C=c.cellTemperature,b=c.cellTemperatureStatus,g=c.isBeakerLoaded;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",flexGrow:"1",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",onClick:function(){function y(){return i("ejectOccupant")}return y}(),disabled:!p,children:"Eject"}),children:p?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:f.name||"Unknown"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:f.health,max:f.maxHealth,value:f.health/f.maxHealth,color:f.health>0?"good":"average",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(f.health)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:V[f.stat][0],children:V[f.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(f.bodyTemperature)})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),m.map(function(y){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:y.label,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:f[y.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(f[y.type])})})},y.id)})]}):(0,e.createComponentVNode)(2,t.Flex,{height:"100%",textAlign:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1",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.Section,{title:"Cell",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function y(){return i("ejectBeaker")}return y}(),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 y(){return i(d?"switchOff":"switchOn")}return y}(),selected:d,children:d?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",color:b,children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:C})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,N)})]})})],4)},N=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.isBeakerLoaded,p=c.beakerLabel,v=c.beakerVolume;return d?(0,e.createFragment)([p||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No label"}),(0,e.createComponentVNode)(2,t.Box,{color:!v&&"bad",children:v?(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:v,format:function(){function f(C){return Math.round(C)+" units remaining"}return f}()}):"Beaker is empty"})],0):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No beaker loaded"})}},96886:function(x,r,n){"use strict";r.__esModule=!0,r.CryoStorageItems=r.CryoStorageCrew=r.CryoStorage=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.CryoStorage=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.real_name,c=u.allow_items,d=(0,a.useLocalState)(h,"tab",0),p=d[0],v=d[1];return(0,e.createComponentVNode)(2,o.Window,{width:400,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:p===0,onClick:function(){function f(){return v(0)}return f}(),children:"Crew"}),!!c&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:p===1,onClick:function(){function f(){return v(1)}return f}(),children:"Items"})]}),(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:["Welcome, ",i,"."]}),p===0&&(0,e.createComponentVNode)(2,V),!!c&&p===1&&(0,e.createComponentVNode)(2,k)]})})}return S}(),V=r.CryoStorageCrew=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.crew;return(0,e.createComponentVNode)(2,t.Section,{title:"Stored Crew",children:i.length&&i.map(function(c){return(0,e.createComponentVNode)(2,t.Box,{color:"label",children:c},c)})||(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"No crew currently stored."})})}return S}(),k=r.CryoStorageItems=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.items;return(0,e.createComponentVNode)(2,t.Section,{title:"Stored Items",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hand-rock",onClick:function(){function c(){return l("allitems")}return c}(),children:"Claim All"}),children:i.length&&i.map(function(c){return(0,e.createComponentVNode)(2,t.Button,{icon:"hand-rock",onClick:function(){function d(){return l("item",{ref:c.ref})}return d}(),children:c.name},c.ref)})||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No items stored."})})}return S}()},65185:function(x,r,n){"use strict";r.__esModule=!0,r.CryoStorageVr=r.CryoStorageItemsVr=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(96886),V=r.CryoStorageVr=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.real_name,c=u.allow_items,d=(0,a.useLocalState)(h,"tab",0),p=d[0],v=d[1];return(0,e.createComponentVNode)(2,o.Window,{width:400,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:p===0,onClick:function(){function f(){return v(0)}return f}(),children:"Crew"}),!!c&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:p===1,onClick:function(){function f(){return v(1)}return f}(),children:"Items"})]}),(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:["Welcome, ",i,"."]}),p===0&&(0,e.createComponentVNode)(2,m.CryoStorageCrew),!!c&&p===1&&(0,e.createComponentVNode)(2,k)]})})}return S}(),k=r.CryoStorageItemsVr=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.items;return(0,e.createComponentVNode)(2,t.Section,{title:"Stored Items",children:i.length&&i.map(function(c){return(0,e.createComponentVNode)(2,t.Box,{color:"label",children:c},c)})||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No items stored."})})}return S}()},12513:function(x,r,n){"use strict";r.__esModule=!0,r.DNAForensics=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.DNAForensics=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.scan_progress,u=s.scanning,i=s.bloodsamp,c=s.bloodsamp_desc;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:326,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,{selected:u,disabled:!i,icon:"power-off",onClick:function(){function d(){return h("scanItem")}return d}(),children:u?"Halt Scan":"Begin Scan"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!i,icon:"eject",onClick:function(){function d(){return h("ejectItem")}return d}(),children:"Eject Bloodsample"})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Scan Progress",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[99,1/0],violet:[-1/0,99]},value:l,maxValue:100})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Blood Sample",children:i&&(0,e.createComponentVNode)(2,t.Box,{children:[i,(0,e.createComponentVNode)(2,t.Box,{color:"label",children:c})]})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No blood sample inserted."})})]})})}return V}()},21576:function(x,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(48388),V=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],k=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],S=[5,10,20,30,50],N=r.DNAModifier=function(){function b(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.irradiating,T=I.dnaBlockSize,M=I.occupant;y.dnaBlockSize=T,y.isDNAInvalid=!M.isViableSubject||!M.uniqueIdentity||!M.structuralEnzymes;var A;return w&&(A=(0,e.createComponentVNode)(2,f,{duration:w})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:700,resizable:!0,children:[(0,e.createComponentVNode)(2,m.ComplexModal),A,(0,e.createComponentVNode)(2,o.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,s)]})]})}return b}(),h=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.locked,T=I.hasOccupant,M=I.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T,selected:w,icon:w?"toggle-on":"toggle-off",content:w?"Engaged":"Disengaged",onClick:function(){function A(){return L("toggleLock")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T||w,icon:"user-slash",content:"Eject",onClick:function(){function A(){return L("ejectOccupant")}return A}()})],4),children:T?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:M.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:M.minHealth,max:M.maxHealth,value:M.health/M.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:V[M.stat][0],children:V[M.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),y.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:M.radiationLevel/100,color:"average"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:I.occupant.uniqueEnzymes?I.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."})})},s=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.selectedMenuKey,T=I.hasOccupant,M=I.occupant;if(T){if(y.isDNAInvalid)return(0,e.createComponentVNode)(2,t.Section,{flexGrow:"1",children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1",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,{flexGrow:"1",children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1",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 A;return w==="ui"?A=(0,e.createFragment)([(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,i)],4):w==="se"?A=(0,e.createFragment)([(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,i)],4):w==="buffer"?A=(0,e.createComponentVNode)(2,c):w==="rejuvenators"&&(A=(0,e.createComponentVNode)(2,v)),(0,e.createComponentVNode)(2,t.Section,{flexGrow:"1",children:[(0,e.createComponentVNode)(2,t.Tabs,{children:k.map(function(R,O){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:w===R[0],onClick:function(){function _(){return L("selectMenuKey",{key:R[0]})}return _}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:R[2]}),R[1]]},O)})}),A]})},l=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.selectedUIBlock,T=I.selectedUISubBlock,M=I.selectedUITarget,A=I.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",level:"2",children:[(0,e.createComponentVNode)(2,C,{dnaString:A.uniqueIdentity,selectedBlock:w,selectedSubblock:T,blockSize:y.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:M,format:function(){function R(O){return O.toString(16).toUpperCase()}return R}(),ml:"0",onChange:function(){function R(O,_){return L("changeUITarget",{value:_})}return R}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function R(){return L("pulseUIRadiation")}return R}()})]})},u=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.selectedSEBlock,T=I.selectedSESubBlock,M=I.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",level:"2",children:[(0,e.createComponentVNode)(2,C,{dnaString:M.structuralEnzymes,selectedBlock:w,selectedSubblock:T,blockSize:y.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function A(){return L("pulseSERadiation")}return A}()})]})},i=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.radiationIntensity,T=I.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Emitter",level:"2",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 M(A,R){return L("radiationIntensity",{value:R})}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:"1",maxValue:"20",stepPixelSize:"10",unit:"s",value:T,popUpPosition:"right",ml:"0",onChange:function(){function M(A,R){return L("radiationDuration",{value:R})}return M}()})})]}),(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",mt:"0.5rem",onClick:function(){function M(){return L("pulseRadiation")}return M}()})]})},c=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.buffers,T=w.map(function(M,A){return(0,e.createComponentVNode)(2,d,{id:A+1,name:"Buffer "+(A+1),buffer:M},A)});return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Buffers",level:"2",children:T}),(0,e.createComponentVNode)(2,p)],4)},d=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=g.id,T=g.name,M=g.buffer,A=I.isInjectorReady,R=T+(M.data?" - "+M.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:R,level:"3",mx:"0",lineHeight:"18px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!M.data,icon:"trash",content:"Clear",onClick:function(){function O(){return L("bufferOption",{option:"clear",id:w})}return O}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!M.data,icon:"pen",content:"Rename",onClick:function(){function O(){return L("bufferOption",{option:"changeLabel",id:w})}return O}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!M.data||!I.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-end",onClick:function(){function O(){return L("bufferOption",{option:"saveDisk",id:w})}return O}()})],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 O(){return L("bufferOption",{option:"saveUI",id:w})}return O}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){function O(){return L("bufferOption",{option:"saveUIAndUE",id:w})}return O}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function O(){return L("bufferOption",{option:"saveSE",id:w})}return O}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!I.hasDisk||!I.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function O(){return L("bufferOption",{option:"loadDisk",id:w})}return O}()})]}),M.data?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:M.owner||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[M.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!M.ue&&" and Unique Enzymes"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer to",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!A,icon:A?"syringe":"spinner",iconSpin:!A,content:"Injector",mb:"0",onClick:function(){function O(){return L("bufferOption",{option:"createInjector",id:w})}return O}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A,icon:A?"syringe":"spinner",iconSpin:!A,content:"Block Injector",mb:"0",onClick:function(){function O(){return L("bufferOption",{option:"createInjector",id:w,block:1})}return O}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function O(){return L("bufferOption",{option:"transfer",id:w})}return O}()})]})],4):null]}),!M.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},p=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.hasDisk,T=I.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",level:"2",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!w||!T.data,icon:"trash",content:"Wipe",onClick:function(){function M(){return L("wipeDisk")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:"eject",content:"Eject",onClick:function(){function M(){return L("ejectDisk")}return M}()})],4),children:w?T.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Label",children:T.label?T.label:"No label"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:T.owner?T.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[T.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!T.ue&&" and Unique Enzymes"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Disk is blank."}):(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"save-o",size:"4"}),(0,e.createVNode)(1,"br"),"No disk inserted."]})})},v=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.isBeakerLoaded,T=I.beakerVolume,M=I.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{title:"Rejuvenators and Beaker",level:"2",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:"eject",content:"Eject",onClick:function(){function A(){return L("ejectBeaker")}return A}()}),children:w?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[S.map(function(A,R){return(0,e.createComponentVNode)(2,t.Button,{disabled:A>T,icon:"syringe",content:A,onClick:function(){function O(){return L("injectRejuvenators",{amount:A})}return O}()},R)}),(0,e.createComponentVNode)(2,t.Button,{disabled:T<=0,icon:"syringe",content:"All",onClick:function(){function A(){return L("injectRejuvenators",{amount:T})}return A}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:M||"No label"}),T?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:[T," unit",T===1?"":"s"," remaining"]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Empty"})]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",my:"25%",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle",size:"4"}),(0,e.createVNode)(1,"br"),"No beaker loaded."]})})},f=function(g,y){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.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,y){for(var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=g.dnaString,T=g.selectedBlock,M=g.selectedSubblock,A=g.blockSize,R=g.action,O=w.split(""),_=0,P=[],D=function(){for(var W=z/A+1,K=[],H=function(){var q=Y+1;K.push((0,e.createComponentVNode)(2,t.Button,{selected:T===W&&M===q,content:O[z+Y],mb:"0",onClick:function(){function oe(){return L(R,{block:W,subblock:q})}return oe}()}))},Y=0;Y<A;Y++)H();P.push((0,e.createComponentVNode)(2,t.Flex.Item,{flex:"0 0 16%",mb:"1rem",children:[(0,e.createComponentVNode)(2,t.Box,{display:"inline-block",width:"20px",height:"20px",mr:"0.5rem",lineHeight:"20px",backgroundColor:"rgba(0, 0, 0, 0.33)",fontFamily:"monospace",textAlign:"center",children:W}),K]}))},z=0;z<O.length;z+=A)D();return(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:P})}},63995:function(x,r,n){"use strict";r.__esModule=!0,r.DestinationTagger=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.DestinationTagger=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.currTag,u=s.taggerLocs;return(0,e.createComponentVNode)(2,o.Window,{width:450,height:310,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Tagger Locations",children:(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",spacing:1,justify:"center",children:u.sort().map(function(i){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:l===i?"check-square-o":"square-o",selected:l===i,content:i,onClick:function(){function c(){return h("set_tag",{tag:i})}return c}()})},i)})})})})})}return V}()},64750:function(x,r,n){"use strict";r.__esModule=!0,r.DiseaseSplicer=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.DiseaseSplicer=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.busy;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:i?(0,e.createComponentVNode)(2,t.Section,{title:"The Splicer is currently busy.",color:"bad",children:(0,e.createVNode)(1,"center",null,(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:i}),2)}):(0,e.createFragment)([(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,k)],4)})})}return S}(),V=function(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.dish_inserted,c=u.effects,d=u.info,p=u.growth,v=u.affected_species;return(0,e.createComponentVNode)(2,t.Section,{title:"Virus Dish",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject Dish",disabled:!i,onClick:function(){function f(){return l("eject")}return f}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Growth Density",children:(0,e.createComponentVNode)(2,t.ProgressBar,{minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,25]},value:p})})}),d?(0,e.createComponentVNode)(2,t.Section,{level:2,children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:d})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Symptoms",children:c&&c.map(function(f){return(0,e.createComponentVNode)(2,t.Box,{color:"label",children:["(",f.stage,") ",f.name," ",f.badness>1?"Dangerous!":null]},f.stage)})||(0,e.createComponentVNode)(2,t.Box,{children:"No virus sample loaded."})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Affected Species",color:"label",children:[!v||!v.length?"None":null,v.sort().join(", ")]}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Reverse Engineering",children:[(0,e.createComponentVNode)(2,t.Box,{color:"bad",mb:1,children:(0,e.createVNode)(1,"i",null,"CAUTION: Reverse engineering will destroy the viral sample.",16)}),c.map(function(f){return(0,e.createComponentVNode)(2,t.Button,{content:f.stage,icon:"exchange-alt",onClick:function(){function C(){return l("grab",{grab:f.reference})}return C}()},f.stage)}),(0,e.createComponentVNode)(2,t.Button,{content:"Species",icon:"exchange-alt",onClick:function(){function f(){return l("affected_species")}return f}()})]})],4)]})},k=function(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.dish_inserted,c=u.buffer,d=u.species_buffer,p=u.effects,v=u.info,f=u.growth,C=u.affected_species,b=u.busy;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Memory Buffer",children:c?(0,e.createComponentVNode)(2,t.Box,{children:[c.name," (",c.stage,")"]}):d?(0,e.createComponentVNode)(2,t.Box,{children:d}):"Empty"})}),(0,e.createComponentVNode)(2,t.Button,{mt:1,icon:"save",content:"Save To Disk",disabled:!c&&!d,onClick:function(){function g(){return l("disk")}return g}()}),c?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Splice #1",disabled:c.stage>1,onClick:function(){function g(){return l("splice",{splice:1})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Splice #2",disabled:c.stage>2,onClick:function(){function g(){return l("splice",{splice:2})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Splice #3",disabled:c.stage>3,onClick:function(){function g(){return l("splice",{splice:3})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Splice #4",disabled:c.stage>4,onClick:function(){function g(){return l("splice",{splice:4})}return g}()})]}):d?(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Splice Species",disabled:!d||v,onClick:function(){function g(){return l("splice",{splice:5})}return g}()})}):null]})}},3153:function(x,r,n){"use strict";r.__esModule=!0,r.DishIncubator=void 0;var e=n(58734),a=n(43820),t=n(62188),o=n(11790),m=n(11477),V=r.DishIncubator=function(){function k(S,N){var h=(0,t.useBackend)(N),s=h.act,l=h.data,u=l.on,i=l.system_in_use,c=l.food_supply,d=l.radiation,p=l.growth,v=l.toxins,f=l.chemicals_inserted,C=l.can_breed_virus,b=l.chemical_volume,g=l.max_chemical_volume,y=l.dish_inserted,B=l.blood_already_infected,L=l.virus,I=l.analysed,w=l.infection_rate;return(0,e.createComponentVNode)(2,m.Window,{width:400,height:600,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"Environmental Conditions",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",selected:u,content:u?"On":"Off",onClick:function(){function T(){return s("power")}return T}()}),children:[(0,e.createComponentVNode)(2,o.Flex,{spacing:1,mb:1,children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"radiation",content:"Add Radiation",onClick:function(){function T(){return s("rad")}return T}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,color:"red",icon:"trash",confirmIcon:"trash",content:"Flush System",disabled:!i,onClick:function(){function T(){return s("flush")}return T}()})})]}),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Virus Food",children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue:100,ranges:{good:[40,1/0],average:[20,40],bad:[-1/0,20]},value:c})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Radiation Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue:100,color:d>=50?"bad":p>=25?"average":"good",value:d,children:[(0,a.formatCommaNumber)(d*1e4)," \xB5Sv"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Toxicity",children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue:100,ranges:{bad:[50,1/0],average:[25,50],good:[-1/0,25]},value:v})})]})]}),(0,e.createComponentVNode)(2,o.Section,{title:C?"Vial":"Chemicals",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject "+(C?"Vial":"Chemicals"),disabled:!f,onClick:function(){function T(){return s("ejectchem")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"virus",content:"Breed Virus",disabled:!C,onClick:function(){function T(){return s("virus")}return T}()})],4),children:f&&(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue:g,value:b,children:[b,"/",g]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Breeding Environment",color:C?"good":"average",children:[y?C?"Suitable":"No hemolytic samples detected":"N/A",B?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"CAUTION: Viral infection detected in blood sample."}):null]})]})})||(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"No chemicals inserted."})}),(0,e.createComponentVNode)(2,o.Section,{title:"Virus Dish",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject Dish",disabled:!y,onClick:function(){function T(){return s("ejectdish")}return T}()}),children:y?L?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Growth Density",children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,25]},value:p})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Infection Rate",children:I?w:"Unknown."})]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"No virus detected."}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"No dish loaded."})})]})})}return k}()},82936:function(x,r,n){"use strict";r.__esModule=!0,r.DisposalBin=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.DisposalBin=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.mode,u=s.pressure,i=s.isAI,c=s.panel_open,d=s.flushing,p,v;return l===2?(p="good",v="Ready"):l<=0?(p="bad",v="N/A"):l===1?(p="average",v="Pressurizing"):(p="average",v="Idle"),(0,e.createComponentVNode)(2,o.Window,{width:300,height:250,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,m:1,children:"Status"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State",color:p,children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{bad:[-1/0,0],average:[0,99],good:[99,1/0]},value:u,minValue:0,maxValue:100})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,m:1,children:"Controls"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Handle",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"toggle-off",disabled:i||c,content:"Disengaged",selected:d?null:"selected",onClick:function(){function f(){return h("disengageHandle")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"toggle-on",disabled:i||c,content:"Engaged",selected:d?"selected":null,onClick:function(){function f(){return h("engageHandle")}return f}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"toggle-off",disabled:l===-1,content:"Off",selected:l?null:"selected",onClick:function(){function f(){return h("pumpOff")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"toggle-on",disabled:l===-1,content:"On",selected:l?"selected":null,onClick:function(){function f(){return h("pumpOn")}return f}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Eject",children:(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",disabled:i,content:"Eject Contents",onClick:function(){function f(){return h("eject")}return f}()})})]})]})})})}return V}()},93263:function(x,r,n){"use strict";r.__esModule=!0,r.DroneConsole=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.DroneConsole=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.drones,u=s.areas,i=s.selected_area,c=s.fabricator,d=s.fabPower;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:350,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Drone Fabricator",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!c,selected:d,icon:"power-off",content:d?"Enabled":"Disabled",onClick:function(){function p(){return h("toggle_fab")}return p}()}),children:c?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Linked."}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:["Fabricator not detected.",(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Search for Fabricator",onClick:function(){function p(){return h("search_fab")}return p}()})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Request Drone",children:[(0,e.createComponentVNode)(2,t.Dropdown,{options:u?u.sort():null,selected:i,width:"100%",onSelected:function(){function p(v){return h("set_dcall_area",{area:v})}return p}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"share-square",content:"Send Ping",onClick:function(){function p(){return h("ping")}return p}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance Units",children:l&&l.length?(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(p){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:p.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Resync",onClick:function(){function v(){return h("resync",{ref:p.ref})}return v}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"exclamation-triangle",color:"red",content:"Shutdown",onClick:function(){function v(){return h("shutdown",{ref:p.ref})}return v}()})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:p.loc}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge",children:[p.charge," / ",p.maxCharge]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Active",children:p.active?"Yes":"No"})]})},p.name)})}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No drones detected."})})]})})}return V}()},64032:function(x,r,n){"use strict";r.__esModule=!0,r.EmbeddedController=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(66905),V=(0,m.createLogger)("fuck"),k={},S=r.EmbeddedController=function(){function B(L,I){var w=(0,a.useBackend)(I),T=w.act,M=w.data,A=M.internalTemplateName,R=k[A];if(!R)throw Error("Unable to find Component for template name: "+A);return(0,e.createComponentVNode)(2,o.Window,{width:450,height:340,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,R)})})}return B}(),N=function(L,I){var w=L.bars;return(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:w.map(function(T){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:T.label,children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:T.color(T.value),minValue:T.minValue,maxValue:T.maxValue,value:T.value,children:T.textValue})},T.label)})})})},h=function(L,I){var w=(0,a.useBackend)(I),T=w.data,M=w.act,A=!0;T.interior_status&&T.interior_status.state==="open"?A=!1:T.external_pressure&&T.chamber_pressure&&(A=!(Math.abs(T.external_pressure-T.chamber_pressure)>5));var R=!0;return T.exterior_status&&T.exterior_status.state==="open"?R=!1:T.internal_pressure&&T.chamber_pressure&&(R=!(Math.abs(T.internal_pressure-T.chamber_pressure)>5)),(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{disabled:T.airlock_disabled,icon:"arrow-left",content:"Cycle to Exterior",onClick:function(){function O(){return M("cycle_ext")}return O}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:T.airlock_disabled,icon:"arrow-right",content:"Cycle to Interior",onClick:function(){function O(){return M("cycle_int")}return O}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:T.airlock_disabled,color:A?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Exterior Door",onClick:function(){function O(){return M("force_ext")}return O}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:T.airlock_disabled,color:R?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Interior Door",onClick:function(){function O(){return M("force_int")}return O}()})]})],4)},s=function(L,I){var w=(0,a.useBackend)(I),T=w.data,M=w.act,A={docked:(0,e.createComponentVNode)(2,l),undocking:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"EJECTING-STAND CLEAR!"}),undocked:(0,e.createComponentVNode)(2,t.Box,{color:"grey",children:"POD EJECTED"}),docking:(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"INITIALIZING..."})},R=(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"ERROR"});return T.exterior_status.state==="open"?R=(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"OPEN"}):T.exterior_status.lock==="unlocked"?R=(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"UNSECURED"}):T.exterior_status.lock==="locked"&&(R=(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"SECURED"})),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Escape Pod Status",children:A[T.docking_status]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Docking Hatch",children:R})]})})},l=function(L,I){var w=(0,a.useBackend)(I),T=w.data,M=w.act;return T.armed?(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"ARMED"}):(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"SYSTEMS OK"})},u=function(L,I){var w=(0,a.useBackend)(I),T=w.data,M=w.act;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!T.override_enabled,icon:"exclamation-triangle",content:"Force Exterior Door",color:T.docking_status!=="docked"?"bad":"",onClick:function(){function A(){return M("force_door")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{selected:T.override_enabled,color:T.docking_status!=="docked"?"bad":"average",icon:"exclamation-triangle",content:"Override",onClick:function(){function A(){return M("toggle_override")}return A}()})]})},i=function(L,I){var w=(0,a.useBackend)(I),T=w.data,M=w.act,A={docked:(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"DOCKED"}),docking:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"DOCKING"}),undocking:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"UNDOCKING"}),undocked:(0,e.createComponentVNode)(2,t.Box,{color:"grey",children:"NOT IN USE"})},R=A[T.docking_status];return T.override_enabled&&(R=(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[T.docking_status.toUpperCase(),"-OVERRIDE ENABLED"]})),R},c=function(L,I){var w=(0,a.useBackend)(I),T=w.act,M=w.data,A=function(_){return _<80||_>120?"bad":_<95||_>110?"average":"good"},R=[{minValue:0,maxValue:202,value:M.external_pressure,label:"External Pressure",textValue:M.external_pressure+" kPa",color:A},{minValue:0,maxValue:202,value:M.chamber_pressure,label:"Chamber Pressure",textValue:M.chamber_pressure+" kPa",color:A},{minValue:0,maxValue:202,value:M.internal_pressure,label:"Internal Pressure",textValue:M.internal_pressure+" kPa",color:A}];return(0,e.createFragment)([(0,e.createComponentVNode)(2,N,{bars:R}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:[(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Purge",onClick:function(){function O(){return T("purge")}return O}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lock-open",content:"Secure",onClick:function(){function O(){return T("secure")}return O}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!M.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){function O(){return T("abort")}return O}()})})]})],4)};k.AirlockConsoleAdvanced=c;var d=function(L,I){var w=(0,a.useBackend)(I),T=w.act,M=w.data,A=[{minValue:0,maxValue:202,value:M.chamber_pressure,label:"Chamber Pressure",textValue:M.chamber_pressure+" kPa",color:function(){function R(O){return O<80||O>120?"bad":O<95||O>110?"average":"good"}return R}()}];return(0,e.createFragment)([(0,e.createComponentVNode)(2,N,{bars:A}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:[(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!M.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){function R(){return T("abort")}return R}()})})]})],4)};k.AirlockConsoleSimple=d;var p=function(L,I){var w=(0,a.useBackend)(I),T=w.act,M=w.data,A=[{minValue:0,maxValue:202,value:M.chamber_pressure,label:"Chamber Pressure",textValue:M.chamber_pressure+" kPa",color:function(){function R(O){return O<80||O>120?"bad":O<95||O>110?"average":"good"}return R}()},{minValue:0,maxValue:100,value:M.chamber_phoron,label:"Chamber Phoron",textValue:M.chamber_phoron+" mol",color:function(){function R(O){return O>5?"bad":O>.5?"average":"good"}return R}()}];return(0,e.createFragment)([(0,e.createComponentVNode)(2,N,{bars:A}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:[(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!M.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){function R(){return T("abort")}return R}()})})]})],4)};k.AirlockConsolePhoron=p;var v=function(L,I){var w=(0,a.useBackend)(I),T=w.act,M=w.data,A=[{minValue:0,maxValue:202,value:M.chamber_pressure,label:"Chamber Pressure",textValue:M.chamber_pressure+" kPa",color:function(){function R(O){return O<80||O>120?"bad":O<95||O>110?"average":"good"}return R}()}];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Dock",buttons:M.airlock_disabled||M.override_enabled?(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",color:M.override_enabled?"red":"",content:"Override",onClick:function(){function R(){return T("toggle_override")}return R}()}):null,children:(0,e.createComponentVNode)(2,i)}),(0,e.createComponentVNode)(2,N,{bars:A}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:[(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!M.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){function R(){return T("abort")}return R}()})})]})],4)};k.AirlockConsoleDocking=v;var f=function(L,I){var w=(0,a.useBackend)(I),T=w.act,M=w.data,A=(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"ERROR"});return M.exterior_status.state==="open"?A=(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"OPEN"}):M.exterior_status.lock==="unlocked"?A=(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"UNSECURED"}):M.exterior_status.lock==="locked"&&(A=(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"SECURED"})),(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:!M.override_enabled,content:"Force exterior door",onClick:function(){function R(){return T("force_door")}return R}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",color:M.override_enabled?"red":"",content:"Override",onClick:function(){function R(){return T("toggle_override")}return R}()})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dock Status",children:(0,e.createComponentVNode)(2,i)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Docking Hatch",children:A})]})})};k.DockingConsoleSimple=f;var C=function(L,I){var w=(0,a.useBackend)(I),T=w.data;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Docking Status",children:(0,e.createComponentVNode)(2,i)}),(0,e.createComponentVNode)(2,t.Section,{title:"Airlocks",children:T.airlocks.length?(0,e.createComponentVNode)(2,t.LabeledList,{children:T.airlocks.map(function(M){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{color:M.override_enabled?"bad":"good",label:M.name,children:M.override_enabled?"OVERRIDE ENABLED":"STATUS OK"},M.name)})}):(0,e.createComponentVNode)(2,t.Flex,{height:"100%",mt:"0.5em",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"door-closed",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No airlocks found."]})})})],4)};k.DockingConsoleMulti=C;var b=function(L,I){var w=(0,a.useBackend)(I),T=w.act,M=w.data,A=M.interior_status.state==="open"||M.exterior_status.state==="closed",R=M.exterior_status.state==="open"||M.interior_status.state==="closed";return(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:A?"arrow-left":"exclamation-triangle",content:A?"Cycle To Exterior":"Lock Exterior Door",onClick:function(){function O(){T(A?"cycle_ext_door":"force_ext")}return O}()}),(0,e.createComponentVNode)(2,t.Button,{icon:R?"arrow-right":"exclamation-triangle",content:R?"Cycle To Interior":"Lock Interior Door",onClick:function(){function O(){T(R?"cycle_int_door":"force_int")}return O}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Exterior Door Status",children:M.exterior_status.state==="closed"?"Locked":"Open"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Interior Door Status",children:M.interior_status.state==="closed"?"Locked":"Open"})]})})};k.DoorAccessConsole=b;var g=function(L,I){var w=(0,a.useBackend)(I),T=w.act,M=w.data;return(0,e.createFragment)([(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:[(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:M.armed,color:M.armed?"bad":"average",content:"ARM",onClick:function(){function A(){return T("manual_arm")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:!M.can_force,color:"bad",content:"MANUAL EJECT",onClick:function(){function A(){return T("force_launch")}return A}()})]})]})],4)};k.EscapePodConsole=g;var y=function(L,I){var w=(0,a.useBackend)(I),T=w.data;return(0,e.createFragment)([(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,u)})],4)};k.EscapePodBerthConsole=y},23424:function(x,r,n){"use strict";r.__esModule=!0,r.NarrationInput=r.ModeSelector=r.EntitySelection=r.EntityNarrate=r.DisplayDetails=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.EntityNarrate=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:470,theme:"abstract",resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{scrollable:!0,grow:2,fill:!0,children:(0,e.createComponentVNode)(2,t.Section,{scrollable:!0,children:(0,e.createComponentVNode)(2,V)})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:.25,fill:!0,children:(0,e.createComponentVNode)(2,t.Divider,{vertical:!0})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:6.75,fill:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{Flex:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Details",children:(0,e.createComponentVNode)(2,k)})}),(0,e.createComponentVNode)(2,t.Flex.Item,{Flex:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Select Behaviour",children:(0,e.createComponentVNode)(2,S)})}),(0,e.createComponentVNode)(2,t.Flex.Item,{Flex:!0,children:(0,e.createComponentVNode)(2,N)})]})})})]})})})})}return h}(),V=r.EntitySelection=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.selection_mode,p=c.multi_id_selection,v=c.entity_names;return(0,e.createComponentVNode)(2,t.Flex,{direction:"column",grow:!0,children:(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Choose!",buttons:(0,e.createComponentVNode)(2,t.Button,{selected:d,fill:!0,content:"Multi-Selection",onClick:function(){function f(){return i("change_mode_multi")}return f}()}),children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:v.map(function(f){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:p.includes(f),onClick:function(){function C(){return i("select_entity",{id_selected:f})}return C}(),children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:f})},f)})})})})})}return h}(),k=r.DisplayDetails=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.selection_mode,p=c.number_mob_selected,v=c.selected_id,f=c.selected_name,C=c.selected_type;return d?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"b",null,"Number of entities selected:",16)," ",p]}):(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"b",null,"Selected ID:",16)," ",v," ",(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Selected Name:",16)," ",f," ",(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Selected Type:",16)," ",C," ",(0,e.createVNode)(1,"br")]})}return h}(),S=r.ModeSelector=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.privacy_select,p=c.mode_select;return(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function v(){return i("change_mode_privacy")}return v}(),selected:d,fluid:!0,tooltip:"This button changes whether your narration is loud (any who see/hear) or subtle (range of 1 tile) "+(d?"Click here to disable subtle mode":"Click here to enable subtle mode"),content:d?"Currently: Subtle":"Currently: Loud"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function v(){return i("change_mode_narration")}return v}(),selected:p,fluid:!0,tooltip:"This button sets your narration to talk audiably or emote visibly "+(p?"Click here to emote visibly.":"Click here to talk audiably."),content:p?"Currently: Emoting":"Currently: Talking"})})]})}return h}(),N=r.NarrationInput=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=(0,a.useLocalState)(l,"narration",""),p=d[0],v=d[1];return(0,e.createComponentVNode)(2,t.Section,{title:"Narration Text",buttons:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function f(){return i("narrate",{message:p})}return f}(),content:"Send Narration"}),children:(0,e.createComponentVNode)(2,t.Flex,{children:(0,e.createComponentVNode)(2,t.Flex.Item,{width:"85%",children:(0,e.createComponentVNode)(2,t.TextArea,{height:"18rem",onChange:function(){function f(C,b){return v(b)}return f}(),value:p||""})})})})}return h}()},42014:function(x,r,n){"use strict";r.__esModule=!0,r.ExonetNode=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.ExonetNode=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.on,u=s.allowPDAs,i=s.allowCommunicators,c=s.allowNewscasters,d=s.logs;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:l,content:"Power "+(l?"On":"Off"),onClick:function(){function p(){return h("toggle_power")}return p}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming PDA Messages",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:u,content:u?"Open":"Closed",onClick:function(){function p(){return h("toggle_PDA_port")}return p}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Communicators",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:i,content:i?"Open":"Closed",onClick:function(){function p(){return h("toggle_communicator_port")}return p}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Newscaster Content",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:c,content:c?"Open":"Closed",onClick:function(){function p(){return h("toggle_newscaster_port")}return p}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Logging",children:(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:[d.map(function(p,v){return(0,e.createComponentVNode)(2,t.Flex.Item,{m:"2px",basis:"49%",grow:v%2,children:p},v)}),!d||d.length===0?(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No logs found."}):null]})})]})})}return V}()},88662:function(x,r,n){"use strict";r.__esModule=!0,r.Materials=r.ExosuitFabricator=void 0;var e=n(58734),a=n(59641),t=n(45445),o=n(62188),m=n(43820),V=n(11790),k=n(11477),S=n(40946),N=n(5339),h;function s(D,z){var U=typeof Symbol!="undefined"&&D[Symbol.iterator]||D["@@iterator"];if(U)return(U=U.call(D)).next.bind(U);if(Array.isArray(D)||(U=l(D))||z&&D&&typeof D.length=="number"){U&&(D=U);var W=0;return function(){return W>=D.length?{done:!0}:{done:!1,value:D[W++]}}}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 l(D,z){if(D){if(typeof D=="string")return u(D,z);var U=Object.prototype.toString.call(D).slice(8,-1);if(U==="Object"&&D.constructor&&(U=D.constructor.name),U==="Map"||U==="Set")return Array.from(D);if(U==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U))return u(D,z)}}function u(D,z){(z==null||z>D.length)&&(z=D.length);for(var U=0,W=new Array(z);U<z;U++)W[U]=D[U];return W}var i={steel:"sheet-metal_3",glass:"sheet-glass_3",silver:"sheet-silver_3",graphite:"sheet-puck_3",plasteel:"sheet-plasteel_3",durasteel:"sheet-durasteel_3",verdantium:"sheet-wavy_3",morphium:"sheet-wavy_3",mhydrogen:"sheet-mythril_3",gold:"sheet-gold_3",diamond:"sheet-diamond",supermatter:"sheet-super_3",osmium:"sheet-silver_3",phoron:"sheet-phoron_3",uranium:"sheet-uranium_3",titanium:"sheet-titanium_3",lead:"sheet-adamantine_3",platinum:"sheet-adamantine_3",plastic:"sheet-plastic_3"},c=0,d=1,p=2,v=(h={},h[c]=!1,h[d]="average",h[p]="bad",h),f=function(z){var U={};return z.forEach(function(W){U[W.name]=W.amount}),U},C=function(z,U,W){return z>W?{color:p,deficit:z-W}:U>W?{color:d,deficit:z}:z+U>W?{color:d,deficit:z+U-W}:{color:c,deficit:0}},b=function(z,U,W){var K={textColor:c};return Object.keys(W.cost).forEach(function(H){K[H]=C(W.cost[H],U[H],z[H]),K[H].color>K.textColor&&(K.textColor=K[H].color)}),K},g=function(z,U){var W={},K={},H={},Y={};return U.forEach(function(J,q){Y[q]=c,Object.keys(J.cost).forEach(function(oe){W[oe]=W[oe]||0,H[oe]=H[oe]||0,K[oe]=C(J.cost[oe],W[oe],z[oe]),K[oe].color!==c?Y[q]<K[oe].color&&(Y[q]=K[oe].color):W[oe]+=J.cost[oe],H[oe]+=K[oe].deficit})}),{materialTally:W,missingMatTally:H,textColors:Y,matFormat:K}},y=function(z,U){var W=[];if(z.length){var K=(0,S.createSearch)(z,function(H){return(H.name||"")+(H.desc||"")+(H.searchMeta||"")});return Object.keys(U).forEach(function(H){U[H].filter(K).forEach(function(Y){W.push(Y)})}),W=(0,t.uniqBy)(function(H){return H.name})(W),W}},B=r.ExosuitFabricator=function(){function D(z,U){var W=(0,o.useBackend)(U),K=W.act,H=W.data,Y=H.queue||[],J=f(H.materials||[]),q=g(J,Y),oe=q.materialTally,ae=q.missingMatTally,le=q.textColors,he=(0,o.useSharedState)(U,"display_mats",!1),me=he[0],Be=he[1],ce=(0,o.useSharedState)(U,"display_all_mats",!1),te=ce[0],ee=ce[1];return(0,e.createComponentVNode)(2,k.Window,{resizable:!0,width:1100,height:640,children:(0,e.createComponentVNode)(2,k.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,V.Flex,{fillPositionedParent:!0,direction:"column",children:[(0,e.createComponentVNode)(2,V.Flex,{children:[(0,e.createComponentVNode)(2,V.Flex.Item,{ml:1,mr:1,mt:1,basis:"75%",grow:1,children:(0,e.createComponentVNode)(2,V.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,I,{displayAllMat:te})})}),(0,e.createComponentVNode)(2,V.Flex.Item,{mt:1,mr:1,children:(0,e.createComponentVNode)(2,V.Section,{title:"Settings",height:"100%",children:[(0,e.createComponentVNode)(2,V.Button.Checkbox,{onClick:function(){function ie(){return Be(!me)}return ie}(),checked:me,children:"Display Material Costs"}),(0,e.createComponentVNode)(2,V.Button.Checkbox,{onClick:function(){function ie(){return ee(!te)}return ie}(),checked:te,children:"Display All Materials"}),H.species_types&&(0,e.createComponentVNode)(2,V.Box,{color:"label",children:["Species:",(0,e.createComponentVNode)(2,V.Button,{onClick:function(){function ie(){return K("species")}return ie}(),children:H.species})]})||null,H.manufacturers&&(0,e.createComponentVNode)(2,V.Box,{color:"label",children:["Manufacturer:",(0,e.createComponentVNode)(2,V.Button,{onClick:function(){function ie(){return K("manufacturer")}return ie}(),children:H.manufacturer})]})||null]})})]}),(0,e.createComponentVNode)(2,V.Flex.Item,{grow:1,m:1,children:(0,e.createComponentVNode)(2,V.Flex,{spacing:1,height:"100%",overflowY:"hide",children:[(0,e.createComponentVNode)(2,V.Flex.Item,{position:"relative",basis:"20%",children:(0,e.createComponentVNode)(2,V.Section,{height:"100%",overflowY:"auto",title:"Categories",buttons:(0,e.createComponentVNode)(2,V.Button,{content:"R&D Sync",onClick:function(){function ie(){return K("sync_rnd")}return ie}()}),children:(0,e.createComponentVNode)(2,T)})}),(0,e.createComponentVNode)(2,V.Flex.Item,{position:"relative",grow:1,children:(0,e.createComponentVNode)(2,V.Box,{fillPositionedParent:!0,overflowY:"auto",children:(0,e.createComponentVNode)(2,M,{queueMaterials:oe,materials:J})})}),(0,e.createComponentVNode)(2,V.Flex.Item,{width:"420px",position:"relative",children:(0,e.createComponentVNode)(2,R,{queueMaterials:oe,missingMaterials:ae,textColors:le})})]})})]})})})}return D}(),L=function(z,U){var W=(0,o.useBackend)(U),K=W.act,H=z.material,Y=H.name,J=H.removable,q=H.sheets,oe=(0,o.useSharedState)(U,"remove_mats_"+Y,1),ae=oe[0],le=oe[1];return ae>1&&q<ae&&le(q||1),(0,e.createFragment)([(0,e.createComponentVNode)(2,V.NumberInput,{width:"30px",animated:!0,value:ae,minValue:1,maxValue:q||1,initial:1,onDrag:function(){function he(me,Be){var ce=parseInt(Be,10);Number.isInteger(ce)&&le(ce)}return he}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"eject",disabled:!J,onClick:function(){function he(){return K("remove_mat",{id:Y,amount:ae})}return he}()})],4)},I=r.Materials=function(){function D(z,U){var W=(0,o.useBackend)(U),K=W.data,H=z.displayAllMat,Y=z.disableEject,J=Y===void 0?!1:Y,q=K.materials||[],oe=q.filter(function(ae){return H||ae.amount>0});return oe.length===0?(0,e.createComponentVNode)(2,V.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,V.Icon,{textAlign:"center",size:5,name:"inbox"}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"No Materials Loaded.",16)]}):(0,e.createComponentVNode)(2,V.Flex,{wrap:"wrap",children:oe.map(function(ae){return(0,e.createComponentVNode)(2,V.Flex.Item,{width:"80px",children:[(0,e.createComponentVNode)(2,w,{name:ae.name,amount:ae.amount,formatsi:!0}),!J&&(0,e.createComponentVNode)(2,V.Box,{mt:1,style:{"text-align":"center"},children:(0,e.createComponentVNode)(2,L,{material:ae})})]},ae.name)||null})})}return D}(),w=function(z,U){var W=z.name,K=z.amount,H=z.formatsi,Y=z.formatmoney,J=z.color,q=z.style,oe="0";return K<1&&K>0?oe=(0,N.toFixed)(K,2):H?oe=(0,m.formatSiUnit)(K,0):Y?oe=(0,m.formatMoney)(K):oe=K,(0,e.createComponentVNode)(2,V.Flex,{direction:"column",align:"center",children:[(0,e.createComponentVNode)(2,V.Flex.Item,{children:(0,e.createComponentVNode)(2,V.Tooltip,{position:"bottom",content:(0,S.toTitleCase)(W),children:(0,e.createComponentVNode)(2,V.Box,{className:(0,a.classes)(["sheetmaterials32x32",i[W]]),position:"relative",style:q})})}),(0,e.createComponentVNode)(2,V.Flex.Item,{children:(0,e.createComponentVNode)(2,V.Box,{textColor:J,style:{"text-align":"center"},children:oe})})]})},T=function(z,U){var W=(0,o.useBackend)(U),K=W.data,H=K.partSets||[],Y=K.buildableParts||{},J=(0,o.useSharedState)(U,"part_tab",H.length?Y[0]:""),q=J[0],oe=J[1];return(0,e.createComponentVNode)(2,V.Tabs,{vertical:!0,children:H.map(function(ae){return!!Y[ae]&&(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:ae===q,disabled:!Y[ae],onClick:function(){function le(){return oe(ae)}return le}(),children:ae},ae)})})},M=function(z,U){var W=(0,o.useBackend)(U),K=W.data,H=function(Ce){for(var Se=s(Ce),we;!(we=Se()).done;){var pe=we.value;if(J[pe])return pe}return null},Y=K.partSets||[],J=K.buildableParts||[],q=z.queueMaterials,oe=z.materials,ae=(0,o.useSharedState)(U,"part_tab",H(Y)),le=ae[0],he=ae[1],me=(0,o.useSharedState)(U,"search_text",""),Be=me[0],ce=me[1];if(!le||!J[le]){var te=H(Y);if(te)he(te);else return}var ee;return Be?(ee=[],y(Be,J).forEach(function(ie){ie.format=b(oe,q,ie),ee.push(ie)})):(ee={Parts:[]},J[le].forEach(function(ie){if(ie.format=b(oe,q,ie),!ie.subCategory){ee.Parts.push(ie);return}ie.subCategory in ee||(ee[ie.subCategory]=[]),ee[ie.subCategory].push(ie)})),(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Section,{children:(0,e.createComponentVNode)(2,V.Flex,{children:[(0,e.createComponentVNode)(2,V.Flex.Item,{mr:1,children:(0,e.createComponentVNode)(2,V.Icon,{name:"search"})}),(0,e.createComponentVNode)(2,V.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,V.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function ie(Ce,Se){return ce(Se)}return ie}()})})]})}),!!Be&&(0,e.createComponentVNode)(2,A,{name:"Search Results",parts:ee,forceShow:!0,placeholder:"No matching results..."})||Object.keys(ee).map(function(ie){return(0,e.createComponentVNode)(2,A,{name:ie,parts:ee[ie]},ie)})],0)},A=function(z,U){var W=(0,o.useBackend)(U),K=W.act,H=W.data,Y=H.buildingPart,J=z.parts,q=z.name,oe=z.forceShow,ae=z.placeholder,le=(0,o.useSharedState)(U,"display_mats",!1),he=le[0];return(!!J.length||oe)&&(0,e.createComponentVNode)(2,V.Section,{title:q,buttons:(0,e.createComponentVNode)(2,V.Button,{disabled:!J.length,color:"good",content:"Queue All",icon:"plus-circle",onClick:function(){function me(){return K("add_queue_set",{part_list:J.map(function(Be){return Be.id})})}return me}()}),children:[!J.length&&ae,J.map(function(me){return(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,V.Flex.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:Y||me.format.textColor===p,color:"good",height:"20px",mr:1,icon:"play",onClick:function(){function Be(){return K("build_part",{id:me.id})}return Be}()})}),(0,e.createComponentVNode)(2,V.Flex.Item,{children:(0,e.createComponentVNode)(2,V.Button,{color:"average",height:"20px",mr:1,icon:"plus-circle",onClick:function(){function Be(){return K("add_queue_part",{id:me.id})}return Be}()})}),(0,e.createComponentVNode)(2,V.Flex.Item,{children:(0,e.createComponentVNode)(2,V.Box,{inline:!0,textColor:v[me.format.textColor],children:me.name})}),(0,e.createComponentVNode)(2,V.Flex.Item,{grow:1}),(0,e.createComponentVNode)(2,V.Flex.Item,{children:(0,e.createComponentVNode)(2,V.Button,{icon:"question-circle",transparent:!0,height:"20px",tooltip:"Build Time: "+me.printTime+"s. "+(me.desc||""),tooltipPosition:"left"})})]}),he&&(0,e.createComponentVNode)(2,V.Flex,{mb:2,children:Object.keys(me.cost).map(function(Be){return(0,e.createComponentVNode)(2,V.Flex.Item,{width:"50px",color:v[me.format[Be].color],children:(0,e.createComponentVNode)(2,w,{formatmoney:!0,style:{transform:"scale(0.75) translate(0%, 10%)"},name:Be,amount:me.cost[Be]})},Be)})})],0,me.name)})]})},R=function(z,U){var W=(0,o.useBackend)(U),K=W.act,H=W.data,Y=H.isProcessingQueue,J=H.queue||[],q=z.queueMaterials,oe=z.missingMaterials,ae=z.textColors;return(0,e.createComponentVNode)(2,V.Flex,{height:"100%",width:"100%",direction:"column",children:[(0,e.createComponentVNode)(2,V.Flex.Item,{height:0,grow:1,children:(0,e.createComponentVNode)(2,V.Section,{height:"100%",title:"Queue",overflowY:"auto",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button.Confirm,{disabled:!J.length,color:"bad",icon:"minus-circle",content:"Clear Queue",onClick:function(){function le(){return K("clear_queue")}return le}()}),!!Y&&(0,e.createComponentVNode)(2,V.Button,{disabled:!J.length,content:"Stop",icon:"stop",onClick:function(){function le(){return K("stop_queue")}return le}()})||(0,e.createComponentVNode)(2,V.Button,{disabled:!J.length,content:"Build Queue",icon:"play",onClick:function(){function le(){return K("build_queue")}return le}()})],0),children:(0,e.createComponentVNode)(2,V.Flex,{direction:"column",height:"100%",children:[(0,e.createComponentVNode)(2,V.Flex.Item,{children:(0,e.createComponentVNode)(2,P)}),(0,e.createComponentVNode)(2,V.Flex.Item,{children:(0,e.createComponentVNode)(2,_,{textColors:ae})})]})})}),!!J.length&&(0,e.createComponentVNode)(2,V.Flex.Item,{mt:1,children:(0,e.createComponentVNode)(2,V.Section,{title:"Material Cost",children:(0,e.createComponentVNode)(2,O,{queueMaterials:q,missingMaterials:oe})})})]})},O=function(z,U){var W=z.queueMaterials,K=z.missingMaterials;return(0,e.createComponentVNode)(2,V.Flex,{wrap:"wrap",children:Object.keys(W).map(function(H){return(0,e.createComponentVNode)(2,V.Flex.Item,{width:"12%",children:[(0,e.createComponentVNode)(2,w,{formatmoney:!0,name:H,amount:W[H]}),!!K[H]&&(0,e.createComponentVNode)(2,V.Box,{textColor:"bad",style:{"text-align":"center"},children:(0,m.formatMoney)(K[H])})]},H)})})},_=function(z,U){var W=(0,o.useBackend)(U),K=W.act,H=W.data,Y=z.textColors,J=H.queue||[];return J.length?J.map(function(q,oe){return(0,e.createComponentVNode)(2,V.Box,{children:(0,e.createComponentVNode)(2,V.Flex,{mb:.5,direction:"column",justify:"center",wrap:"wrap",height:"20px",inline:!0,children:[(0,e.createComponentVNode)(2,V.Flex.Item,{basis:"content",children:(0,e.createComponentVNode)(2,V.Button,{height:"20px",mr:1,icon:"minus-circle",color:"bad",onClick:function(){function ae(){return K("del_queue_part",{index:oe+1})}return ae}()})}),(0,e.createComponentVNode)(2,V.Flex.Item,{children:(0,e.createComponentVNode)(2,V.Box,{inline:!0,textColor:v[Y[oe]],children:q.name})})]})},q.name)}):(0,e.createFragment)([(0,e.createTextVNode)("No parts in queue.")],4)},P=function(z,U){var W=(0,o.useBackend)(U),K=W.data,H=K.buildingPart,Y=K.storedPart;if(Y){var J=Y.name;return(0,e.createComponentVNode)(2,V.Box,{children:(0,e.createComponentVNode)(2,V.ProgressBar,{minValue:0,maxValue:1,value:1,color:"average",children:(0,e.createComponentVNode)(2,V.Flex,{children:[(0,e.createComponentVNode)(2,V.Flex.Item,{children:J}),(0,e.createComponentVNode)(2,V.Flex.Item,{grow:1}),(0,e.createComponentVNode)(2,V.Flex.Item,{children:"Fabricator outlet obstructed..."})]})})})}if(H){var q=H.name,oe=H.duration,ae=H.printTime,le=Math.ceil(oe/10);return(0,e.createComponentVNode)(2,V.Box,{children:(0,e.createComponentVNode)(2,V.ProgressBar,{minValue:0,maxValue:ae,value:oe,children:(0,e.createComponentVNode)(2,V.Flex,{children:[(0,e.createComponentVNode)(2,V.Flex.Item,{children:q}),(0,e.createComponentVNode)(2,V.Flex.Item,{grow:1}),(0,e.createComponentVNode)(2,V.Flex.Item,{children:le>=0&&le+"s"||"Dispensing..."})]})})})}}},61697:function(x,r,n){"use strict";r.__esModule=!0,r.Farmbot=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.Farmbot=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.on,u=s.locked,i=s.tank,c=s.tankVolume,d=s.tankMaxVolume,p=s.waters_trays,v=s.refills_water,f=s.uproots_weeds,C=s.replaces_nutriment,b=s.collects_produce,g=s.removes_dead;return(0,e.createComponentVNode)(2,o.Window,{width:450,height:540,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Automatic Hydroponic Assistance Unit v2.0",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:l,onClick:function(){function y(){return h("power")}return y}(),children:l?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Water Tank",children:i&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:c,maxValue:d,children:[c," / ",d]})||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No water tank detected."})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Behavior Controls",color:u?"good":"bad",children:u?"Locked":"Unlocked"})]})}),!u&&(0,e.createComponentVNode)(2,t.Section,{title:"Behavior Controls",children:[(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Watering Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Water plants",children:(0,e.createComponentVNode)(2,t.Button,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){function y(){return h("water")}return y}(),children:p?"Yes":"No"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Refill watertank",children:(0,e.createComponentVNode)(2,t.Button,{icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){function y(){return h("refill")}return y}(),children:v?"Yes":"No"})})]})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Weeding controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Weed plants",children:(0,e.createComponentVNode)(2,t.Button,{icon:f?"toggle-on":"toggle-off",selected:f,onClick:function(){function y(){return h("weed")}return y}(),children:f?"Yes":"No"})})})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Nutriment controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Replace fertilizer",children:(0,e.createComponentVNode)(2,t.Button,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){function y(){return h("replacenutri")}return y}(),children:C?"Yes":"No"})})})})]})||null]})})}return V}()},27319:function(x,r,n){"use strict";r.__esModule=!0,r.FaxContent=r.Fax=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(39813),V=n(50947),k=r.Fax=function(){function s(l,u){var i=(0,a.useBackend)(u),c=i.data,d=c.authenticated,p=c.copyItem,v=340;return p&&(v=358),d?(0,e.createComponentVNode)(2,o.Window,{width:600,height:v,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,m.LoginInfo),(0,e.createComponentVNode)(2,S)]})}):(0,e.createComponentVNode)(2,o.Window,{width:600,height:250,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,V.LoginScreen,{machineType:"Fax"})]})})}return s}(),S=r.FaxContent=function(){function s(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.bossName,v=d.copyItem,f=d.cooldown,C=d.destination,b=d.adminDepartments,g=new Set(b);return(0,e.createComponentVNode)(2,t.Section,{children:[!!f&&(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:"Transmitter arrays realigning. Please stand by."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:[p," Quantum Entanglement Network"]})}),v&&(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Currently Sending",children:[v," ",(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function y(){return c("rename")}return y}(),tooltip:"Renames the paper. This changes its preview in staff chat when sending to centcom/job board/supply (admin departments). It is advisable to name your faxes something self-explanatory for quick response."})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"map-marker-alt",content:C,onClick:function(){function y(){return c("dept")}return y}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"share-square",onClick:function(){function y(){return c("send")}return y}(),content:"Send",fluid:!0})]})||(0,e.createComponentVNode)(2,t.Box,{mt:1,children:"Please insert item to transmit."}),(0,e.createComponentVNode)(2,h)]})}return s}(),N=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.copyItem;return p?(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",onClick:function(){function v(){return c("remove")}return v}(),content:"Remove Item"})}):null},h=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.adminDepartments,v=d.destination,f=d.copyItem,C=new Set(p),b="1rem";return f&&(b="1.5rem"),!f||f&&C.has(v)?(0,e.createComponentVNode)(2,t.Box,{mt:"1.5rem",children:[(0,e.createVNode)(1,"b",null,"Or submit an automated staff request.",16)," ",(0,e.createVNode)(1,"br")," ",(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("The automated staff request form automatically populates the company job board ((sends to discord, but does not ping.)) without requiring intervention from central command clerks and officers. "),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("It also works without requiring a written request to be composed.")],4),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{mt:"1.5rem",children:(0,e.createComponentVNode)(2,t.Button,{icon:"share-square",onClick:function(){function g(){return c("send_automated_staff_request")}return g}(),content:"Send Automated Staff Request",fluid:!0})})]}):null}},51193:function(x,r,n){"use strict";r.__esModule=!0,r.FilingCabinet=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.FilingCabinet=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.cabinet_name,u=s.contents,i=s.contents_ref;return(0,e.createComponentVNode)(2,o.Window,{title:l||"Filing Cabinet",width:350,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{backgroundColor:"#B88F3D",scrollable:!0,children:[u.map(function(c,d){return(0,e.createComponentVNode)(2,t.Flex,{color:"black",backgroundColor:"white",style:{padding:"2px"},mb:.5,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{align:"center",grow:1,children:(0,e.createComponentVNode)(2,t.Box,{align:"center",children:c})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function p(){return h("remove_object",{ref:i[d]})}return p}()})})]},i[d])}),u.length===0&&(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{color:"white",align:"center",children:["The ",l," is empty!"]})})]})})}return V}()},19860:function(x,r,n){"use strict";r.__esModule=!0,r.Floorbot=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.Floorbot=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.on,u=s.open,i=s.locked,c=s.vocal,d=s.amount,p=s.possible_bmode,v=s.improvefloors,f=s.eattiles,C=s.maketiles,b=s.bmode;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:310,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Automatic Station Floor Repairer v2.0",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:l,onClick:function(){function g(){return h("start")}return g}(),children:l?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tiles Left",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:d})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",color:u?"bad":"good",children:u?"Open":"Closed"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Behavior Controls",color:i?"good":"bad",children:i?"Locked":"Unlocked"})]})}),!i&&(0,e.createComponentVNode)(2,t.Section,{title:"Behavior Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Speaker",children:(0,e.createComponentVNode)(2,t.Button,{icon:c?"toggle-on":"toggle-off",selected:c,onClick:function(){function g(){return h("vocal")}return g}(),children:c?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Improves Floors",children:(0,e.createComponentVNode)(2,t.Button,{icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){function g(){return h("improve")}return g}(),children:v?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Finds Tiles",children:(0,e.createComponentVNode)(2,t.Button,{icon:f?"toggle-on":"toggle-off",selected:f,onClick:function(){function g(){return h("tiles")}return g}(),children:f?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Makes Metal Sheets into Tiles",children:(0,e.createComponentVNode)(2,t.Button,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){function g(){return h("make")}return g}(),children:C?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bridge Mode",children:(0,e.createComponentVNode)(2,t.Dropdown,{over:!0,width:"100%",placeholder:"Disabled",selected:b,options:p,onSelected:function(){function g(y){return h("bridgemode",{dir:y})}return g}()})})]})})||null]})})}return V}()},19592:function(x,r,n){"use strict";r.__esModule=!0,r.GasPump=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.GasPump=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.on,u=s.pressure_set,i=s.last_flow_rate,c=s.last_power_draw,d=s.max_power_draw;return(0,e.createComponentVNode)(2,o.Window,{width:470,height:290,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Flow Rate",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:i/10})," L/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Load",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c,minValue:0,maxValue:d,color:c<d-5?"good":"average",children:c+" W"})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:l?"On":"Off",selected:l,onClick:function(){function p(){return h("power")}return p}()}),children:(0,e.createComponentVNode)(2,t.LabeledControls,{children:[(0,e.createComponentVNode)(2,t.LabeledControls.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){function p(){return h("set_press",{press:"min"})}return p}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){function p(){return h("set_press",{press:"max"})}return p}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",content:"SET",onClick:function(){function p(){return h("set_press",{press:"set"})}return p}()})]}),(0,e.createComponentVNode)(2,t.LabeledControls.Item,{label:"Desired Output Pressure",children:[u/100," kPa"]})]})})]})})}return V}()},76749:function(x,r,n){"use strict";r.__esModule=!0,r.GasTemperatureSystem=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(11477),V=r.GasTemperatureSystem=function(){function k(S,N){var h=(0,t.useBackend)(N),s=h.act,l=h.data,u=l.on,i=l.gasPressure,c=l.gasTemperature,d=l.minGasTemperature,p=l.maxGasTemperature,v=l.targetGasTemperature,f=l.gasTemperatureClass,C=l.powerSetting;return(0,e.createComponentVNode)(2,m.Window,{width:270,height:270,resizeable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:u?"On":"Off",selected:u,onClick:function(){function b(){return s("toggleStatus")}return b}()}),children:(0,e.createComponentVNode)(2,o.LabeledControls,{children:[(0,e.createComponentVNode)(2,o.LabeledControls.Item,{label:"Power Level",children:(0,e.createComponentVNode)(2,o.Knob,{minValue:"0",maxValue:"100",stepPixelSize:"1",value:C,onChange:function(){function b(g,y){return s("setPower",{value:y})}return b}()})}),(0,e.createComponentVNode)(2,o.LabeledControls.Item,{label:"Gas Pressure",children:[i," kPa"]})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Gas Temperature",children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Temperature",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:v})," K"]})]}),(0,e.createComponentVNode)(2,o.Slider,{mt:"0.4em",animated:!0,minValue:d,maxValue:p,fillValue:c,value:v,format:function(){function b(g){return c+" / "+(0,a.round)(g)}return b}(),unit:"K",color:f,onChange:function(){function b(g,y){return s("setGasTemperature",{temp:y})}return b}()})]})]})})}return k}()},59646:function(x,r,n){"use strict";r.__esModule=!0,r.GeneralAtmoControl=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.GeneralAtmoControl=function(){function s(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.sensors,v=d.tanks,f=d.input_info,C=d.output_info,b=d.input_flow_setting,g=d.pressure_setting,y=d.max_pressure,B=d.max_flowrate,L=d.core,I=d.fuel,w=d.automation,T=d.device_info;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,V,{sensors:p}),(L||v)&&(0,e.createComponentVNode)(2,S),I&&(0,e.createComponentVNode)(2,h)]})})}return s}(),V=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=l.sensors;return d?(0,e.createComponentVNode)(2,t.Section,{title:"Sensors",children:d.map(function(p){return(0,e.createComponentVNode)(2,t.Section,{title:p.long_name,children:(0,e.createComponentVNode)(2,k,{sensor:p})},p.long_name)})}):(0,e.createComponentVNode)(2,t.Section,{title:"Sensors",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Sensors Connected."})})},k=function(l,u){var i=l.sensor;if(!i.sensor_data)return(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"UNABLE TO FIND SENSOR"});var c=i.sensor_data,d=c.pressure,p=c.temperature,v=c.oxygen,f=c.nitrogen,C=c.carbon_dioxide,b=c.phoron,g=[];return d&&g.push((0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:[d," kPa"]})),p&&g.push((0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[p," K"]})),(v||f||C||b)&&g.push((0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gas Composition",children:(0,e.createComponentVNode)(2,t.Flex,{justify:"space-around",children:[v?(0,e.createComponentVNode)(2,t.Flex.Item,{children:["(",v,"% O\xB2)"]}):null,f?(0,e.createComponentVNode)(2,t.Flex.Item,{children:["(",f,"% N\xB2)"]}):null,C?(0,e.createComponentVNode)(2,t.Flex.Item,{children:["(",C,"% CO\xB2)"]}):null,b?(0,e.createComponentVNode)(2,t.Flex.Item,{children:["(",b,"% TX)"]}):null]})})),(0,e.createComponentVNode)(2,t.LabeledList,{children:g.map(function(y){return y})})},S=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.tanks,v=d.input_info,f=d.output_info,C=d.input_flow_setting,b=d.pressure_setting,g=d.max_pressure,y=d.max_flowrate,B=d.core,L="Unknown Control System";p?L="Tank Control System":B&&(L="Core Cooling Control System");var I={power:function(){function T(){return c("in_toggle_injector")}return T}(),apply:function(){function T(){return c("in_set_flowrate")}return T}(),refresh:function(){function T(){return c("in_refresh_status")}return T}(),slider:function(){function T(M,A){return c("adj_input_flow_rate",{adj_input_flow_rate:A})}return T}()},w={power:function(){function T(){return c("out_toggle_power")}return T}(),apply:function(){function T(){return c("out_set_pressure")}return T}(),refresh:function(){function T(){return c("out_refresh_status")}return T}(),slider:function(){function T(M,A){return c("adj_pressure",{adj_pressure:A})}return T}()};return(0,e.createComponentVNode)(2,t.Section,{title:L,children:[(0,e.createComponentVNode)(2,N,{info:v,maxSliderValue:y,sliderControl:C,sliderFill:v&&v.volume_rate,unit:"L/s",name:B?"Coolant Input":"Input",limitName:"Flow Rate Limit",actions:I}),(0,e.createComponentVNode)(2,N,{info:f,maxSliderValue:g,sliderControl:b,sliderFill:f&&f.output_pressure,unit:"kPa",name:B?"Core Outpump":"Output",limitName:B?"Min Core Pressure":"Max Output Pressure",actions:w})]})},N=function(l,u){var i=l.info,c=l.maxSliderValue,d=l.sliderControl,p=l.sliderFill,v=l.unit,f=l.name,C=l.limitName,b=l.actions;return(0,e.createComponentVNode)(2,t.Section,{title:f,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Refresh",icon:"sync",disabled:!i,onClick:function(){function g(){return b.refresh()}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Power",icon:"power-off",selected:i?i.power:!1,disabled:!i,onClick:function(){function g(){return b.power()}return g}()})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[i&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:f,children:i.power?"Injecting":"On Hold"})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:["ERROR: Cannot Find ",f," Port"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"search",content:"Search",onClick:function(){function g(){return b.refresh()}return g}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:C,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Apply",icon:"edit",disabled:!i,onClick:function(){function g(){return b.apply()}return g}()}),children:(0,e.createComponentVNode)(2,t.Slider,{mt:"0.4em",animated:!0,minValue:0,maxValue:c,stepPixelSize:1/(c/500),value:d,fillValue:p||0,onChange:function(){function g(y,B){return b.slider(y,B)}return g}(),children:[p||"UNK"," ",v," / ",d," ",v]})})]})})},h=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.fuel,v=d.automation,f=d.device_info;return(0,e.createComponentVNode)(2,t.Section,{title:"Fuel Injection System",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"syringe",content:"Inject",onClick:function(){function C(){return c("injection")}return C}(),disabled:v||!f}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Refresh",onClick:function(){function C(){return c("refresh_status")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"Injector Power",onClick:function(){function C(){return c("toggle_injector")}return C}(),selected:f?f.power:!1,disabled:v||!f})],4),children:f?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:f.power?"Injecting":"On Hold"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:f.volume_rate}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Automated Fuel Injection",children:(0,e.createComponentVNode)(2,t.Button,{icon:"robot",content:v?"Engaged":"Disengaged",selected:v,onClick:function(){function C(){return c("toggle_automation")}return C}()})})]}):(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"ERROR: Cannot Find Device"}),(0,e.createComponentVNode)(2,t.Button,{icon:"search",content:"Search",onClick:function(){function C(){return c("refresh_status")}return C}()})],4)})}},72345:function(x,r,n){"use strict";r.__esModule=!0,r.GeneralRecords=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(48388),m=n(11477),V=n(39813),k=n(50947),S=n(45246),N=n(40946),h=n(45445),s=n(75671),l=function(b,g){(0,o.modalOpen)(b,"edit",{field:g.edit,value:g.value})},u=r.GeneralRecords=function(){function C(b,g){var y=(0,a.useBackend)(g),B=y.data,L=B.authenticated,I=B.screen;if(!L)return(0,e.createComponentVNode)(2,m.Window,{width:800,height:380,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,k.LoginScreen)})});var w;return I===2?w=(0,e.createComponentVNode)(2,c):I===3?w=(0,e.createComponentVNode)(2,d):I===4&&(w=(0,e.createComponentVNode)(2,p)),(0,e.createComponentVNode)(2,m.Window,{width:800,height:640,resizable:!0,children:[(0,e.createComponentVNode)(2,o.ComplexModal),(0,e.createComponentVNode)(2,m.Window.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.createComponentVNode)(2,V.LoginInfo),(0,e.createComponentVNode)(2,S.TemporaryNotice),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,t.Section,{height:"calc(100% - 5rem)",flexGrow:"1",children:w})]})]})}return C}(),i=function(b,g){g===void 0&&(g="");var y=(0,N.createSearch)(g,function(w){return w.name}),B=(0,N.createSearch)(g,function(w){return w.id}),L=(0,N.createSearch)(g,function(w){return w.b_dna}),I=(0,s.flow)([g&&(0,h.filter)(function(w){return y(w)||B(w)||L(w)})])(b);return I},c=function(b,g){var y=(0,a.useBackend)(g),B=y.act,L=y.data,I=(0,a.useLocalState)(g,"searchText",""),w=I[0],T=I[1],M=i(L.records,w);return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{mb:"0.2rem",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"New Record",onClick:function(){function A(){return B("new")}return A}()})}),(0,e.createComponentVNode)(2,t.Input,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onInput:function(){function A(R,O){return T(O)}return A}()}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:M.map(function(A,R){return(0,e.createComponentVNode)(2,t.Button,{icon:"user",mb:"0.5rem",content:A.id+": "+A.name,onClick:function(){function O(){return B("d_rec",{d_rec:A.ref})}return O}()},R)})})],4)},d=function(b,g){var y=(0,a.useBackend)(g),B=y.act;return(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Employment Records",onClick:function(){function L(){return B("del_all")}return L}()})},p=function(b,g){var y=(0,a.useBackend)(g),B=y.act,L=y.data,I=L.general,w=L.printing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"General Data",level:2,mt:"-6px",children:(0,e.createComponentVNode)(2,v)}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",level:2,children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",disabled:!!I.empty,content:"Delete Employment Record",color:"bad",onClick:function(){function T(){return B("del_r")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{icon:w?"spinner":"print",disabled:w,iconSpin:!!w,content:"Print Entry",ml:"0.5rem",onClick:function(){function T(){return B("print_p")}return T}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){function T(){return B("screen",{screen:2})}return T}()})]})],4)},v=function(b,g){var y=(0,a.useBackend)(g),B=y.act,L=y.data,I=L.general;return!I||!I.fields?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:["General record lost!",(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){function w(){return B("new")}return w}()})]}):(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{width:"50%",float:"left",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:I.fields.map(function(w,T){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w.field,children:[(0,e.createComponentVNode)(2,t.Box,{height:"20px",display:"inline-block",children:w.value}),!!w.edit&&(0,e.createComponentVNode)(2,t.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function M(){return l(g,w)}return M}()})]},T)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Employment/skills summary",level:2,preserveWhitespace:!0,children:I.skills||"No data found."}),(0,e.createComponentVNode)(2,t.Section,{title:"Comments/Log",level:2,children:[I.comments.length===0?(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No comments found."}):I.comments.map(function(w,T){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,children:w.header}),(0,e.createVNode)(1,"br"),w.text,(0,e.createComponentVNode)(2,t.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function M(){return B("del_c",{del_c:T+1})}return M}()})]},T)}),(0,e.createComponentVNode)(2,t.Button,{icon:"comment",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){function w(){return(0,o.modalOpen)(g,"add_c")}return w}()})]})]}),(0,e.createComponentVNode)(2,t.Box,{width:"50%",float:"right",textAlign:"right",children:!!I.has_photos&&I.photos.map(function(w,T){return(0,e.createComponentVNode)(2,t.Box,{display:"inline-block",textAlign:"center",color:"label",children:[(0,e.createVNode)(1,"img",null,null,1,{src:w.substr(1,w.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createVNode)(1,"br"),"Photo #",T+1]},T)})})],4)},f=function(b,g){var y=(0,a.useBackend)(g),B=y.act,L=y.data,I=L.screen;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===2,onClick:function(){function w(){return B("screen",{screen:2})}return w}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"list"}),"List Records"]}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===3,onClick:function(){function w(){return B("screen",{screen:3})}return w}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"wrench"}),"Record Maintenance"]})]})}},27332:function(x,r,n){"use strict";r.__esModule=!0,r.Gps=void 0;var e=n(58734),a=n(45445),t=n(75671),o=n(5339),m=n(13212),V=n(62188),k=n(11790),S=n(11477),N=function(l){return(0,a.map)(parseFloat)(l.split(", "))},h=r.Gps=function(){function s(l,u){var i=(0,V.useBackend)(u),c=i.act,d=i.data,p=d.currentArea,v=d.currentCoords,f=d.currentCoordsText,C=d.globalmode,b=d.power,g=d.tag,y=d.updating,B=(0,t.flow)([(0,a.map)(function(L,I){var w=L.dist&&Math.round((0,m.vecLength)((0,m.vecSubtract)(v,L.coords)));return Object.assign({},L,{dist:w,index:I})}),(0,a.sortBy)(function(L){return L.dist===void 0},function(L){return L.entrytag})])(d.signals||[]);return(0,e.createComponentVNode)(2,S.Window,{title:"Global Positioning System",width:470,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,S.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,k.Section,{title:"Control",buttons:(0,e.createComponentVNode)(2,k.Button,{icon:"power-off",content:b?"On":"Off",selected:b,onClick:function(){function L(){return c("power")}return L}()}),children:(0,e.createComponentVNode)(2,k.LabeledList,{children:[(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Tag",children:(0,e.createComponentVNode)(2,k.Button,{icon:"pencil-alt",content:g,onClick:function(){function L(){return c("rename")}return L}()})}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Scan Mode",children:(0,e.createComponentVNode)(2,k.Button,{icon:y?"unlock":"lock",content:y?"AUTO":"MANUAL",color:!y&&"bad",onClick:function(){function L(){return c("updating")}return L}()})}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,k.Button,{icon:"sync",content:C?"MAXIMUM":"LOCAL",selected:!C,onClick:function(){function L(){return c("globalmode")}return L}()})})]})}),!!b&&(0,e.createFragment)([(0,e.createComponentVNode)(2,k.Section,{title:"Current Location",children:(0,e.createComponentVNode)(2,k.Box,{fontSize:"18px",children:[p," (",f,")"]})}),(0,e.createComponentVNode)(2,k.Section,{title:"Detected Signals",children:(0,e.createComponentVNode)(2,k.Table,{children:[(0,e.createComponentVNode)(2,k.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,k.Table.Cell,{content:"Name"}),(0,e.createComponentVNode)(2,k.Table.Cell,{collapsing:!0,content:"Direction"}),(0,e.createComponentVNode)(2,k.Table.Cell,{collapsing:!0,content:"Coordinates"})]}),B.map(function(L){return(0,e.createComponentVNode)(2,k.Table.Row,{className:"candystripe",children:[(0,e.createComponentVNode)(2,k.Table.Cell,{bold:!0,color:"label",children:L.entrytag}),(0,e.createComponentVNode)(2,k.Table.Cell,{collapsing:!0,opacity:L.dist!==void 0&&(0,o.clamp)(1.2/Math.log(Math.E+L.dist/20),.4,1),children:[L.degrees!==void 0&&(0,e.createComponentVNode)(2,k.Icon,{mr:1,size:1.2,name:"arrow-up",rotation:L.degrees}),L.dist!==void 0&&L.dist+"m"]}),(0,e.createComponentVNode)(2,k.Table.Cell,{collapsing:!0,children:L.coordsText})]},L.entrytag+L.coords+L.index)})]})})],4)]})})}return s}()},52613:function(x,r,n){"use strict";r.__esModule=!0,r.GravityGenerator=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.GravityGenerator=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.breaker,u=s.charge_count,i=s.charging_state,c=s.on,d=s.operational,p="Offline";return l&&u<100?p="CHARGING":l&&u>=100?p="Running":!l&&u>0&&(p="DISCHARGING"),(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",color:"red",content:"Toggle Breaker",confirmContent:l?"This will disable gravity!":"This will enable gravity!",onClick:function(){function v(){return h("gentoggle")}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Breaker Setting",children:l?"Generator Enabled":"Generator Disabled"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",children:["Generator ",p]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Status",children:[u,"%"]})]})})})})}return V}()},462:function(x,r,n){"use strict";r.__esModule=!0,r.GuestPass=void 0;var e=n(58734),a=n(45445),t=n(62188),o=n(11790),m=n(11477),V=r.GuestPass=function(){function k(S,N){var h=(0,t.useBackend)(N),s=h.act,l=h.data,u=l.access,i=l.area,c=l.giver,d=l.giveName,p=l.reason,v=l.duration,f=l.mode,C=l.log,b=l.uid;return(0,e.createComponentVNode)(2,m.Window,{width:500,height:520,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:f===1&&(0,e.createComponentVNode)(2,o.Section,{title:"Activity Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"scroll",content:"Activity Log",selected:!0,onClick:function(){function g(){return s("mode",{mode:0})}return g}()}),children:[(0,e.createComponentVNode)(2,o.Button,{icon:"print",content:"Print",onClick:function(){function g(){return s("print")}return g}(),fluid:!0,mb:1}),(0,e.createComponentVNode)(2,o.Section,{level:2,title:"Logs",children:C.length&&C.map(function(g){return(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:g}},g)})||(0,e.createComponentVNode)(2,o.Box,{children:"No logs."})})]})||(0,e.createComponentVNode)(2,o.Section,{title:"Guest pass terminal #"+b,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"scroll",content:"Activity Log",onClick:function(){function g(){return s("mode",{mode:1})}return g}()}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Issuing ID",children:(0,e.createComponentVNode)(2,o.Button,{content:c||"Insert ID",onClick:function(){function g(){return s("id")}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Issued To",children:(0,e.createComponentVNode)(2,o.Button,{content:d,onClick:function(){function g(){return s("giv_name")}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reason",children:(0,e.createComponentVNode)(2,o.Button,{content:p,onClick:function(){function g(){return s("reason")}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Duration (minutes)",children:(0,e.createComponentVNode)(2,o.Button,{content:v,onClick:function(){function g(){return s("duration")}return g}()})})]}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"check",fluid:!0,content:"Issue Pass",onClick:function(){function g(){return s("issue")}return g}()}),(0,e.createComponentVNode)(2,o.Section,{title:"Access",level:2,children:(0,a.sortBy)(function(g){return g.area_name})(i).map(function(g){return(0,e.createComponentVNode)(2,o.Button.Checkbox,{checked:g.on,content:g.area_name,onClick:function(){function y(){return s("access",{access:g.area})}return y}()},g.area)})})]})})})}return k}()},98915:function(x,r,n){"use strict";r.__esModule=!0,r.GyrotronControlContent=r.GyrotronControl=void 0;var e=n(58734),a=n(62188),t=n(11477),o=n(11790),m=r.GyrotronControl=function(){function k(){return(0,e.createComponentVNode)(2,t.Window,{width:627,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,V)})})}return k}(),V=r.GyrotronControlContent=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.gyros;return(0,e.createComponentVNode)(2,o.Section,{title:"Gyrotrons",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pencil-alt",content:"Set Tag",onClick:function(){function i(){return s("set_tag")}return i}()}),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:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Position"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Fire Delay"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Strength"})]}),u.map(function(i){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:i.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[i.x,", ",i.y,", ",i.z]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:i.active?"Online":"Offline",selected:i.active,disabled:!i.deployed,onClick:function(){function c(){return s("toggle_active",{gyro:i.ref})}return c}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Knob,{forcedInputWidth:"60px",size:1.25,color:!!i.active&&"yellow",value:i.fire_delay,unit:"decisecond(s)",minValue:1,maxValue:60,stepPixelSize:1,onDrag:function(){function c(d,p){return s("set_rate",{gyro:i.ref,rate:p})}return c}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Knob,{forcedInputWidth:"60px",size:1.25,color:!!i.active&&"yellow",value:i.strength,unit:"penta-dakw",minValue:1,maxValue:50,stepPixelSize:1,onDrag:function(){function c(d,p){return s("set_str",{gyro:i.ref,str:p})}return c}()})})]},i.name)})]})})}return k}()},14289:function(x,r,n){"use strict";r.__esModule=!0,r.Holodeck=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.Holodeck=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.supportedPrograms,u=s.restrictedPrograms,i=s.currentProgram,c=s.isSilicon,d=s.safetyDisabled,p=s.emagged,v=s.gravity,f=l;return d&&(f=f.concat(u)),(0,e.createComponentVNode)(2,o.Window,{width:400,height:610,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Programs",children:f.map(function(C){return(0,e.createComponentVNode)(2,t.Button,{color:u.indexOf(C)!==-1?"bad":null,icon:"eye",content:C,selected:i===C,fluid:!0,onClick:function(){function b(){return h("program",{program:C})}return b}()},C)})}),!!c&&(0,e.createComponentVNode)(2,t.Section,{title:"Override",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",fluid:!0,disabled:p,color:d?"good":"bad",onClick:function(){function C(){return h("AIoverride")}return C}(),children:[!!p&&"Error, unable to control. ",d?"Enable Safeties":"Disable Safeties"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safeties",children:d?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"DISABLED"}):(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"ENABLED"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gravity",children:(0,e.createComponentVNode)(2,t.Button,{icon:"user-astronaut",selected:v,onClick:function(){function C(){return h("gravity")}return C}(),children:v?"Enabled":"Disabled"})})]})})]})})}return V}()},46065:function(x,r,n){"use strict";r.__esModule=!0,r.ICAssembly=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(11477),V=n(43820),k=r.ICAssembly=function(){function N(h,s){var l=(0,t.useBackend)(s),u=l.act,i=l.data,c=i.total_parts,d=i.max_components,p=i.total_complexity,v=i.max_complexity,f=i.battery_charge,C=i.battery_max,b=i.net_power,g=i.unremovable_circuits,y=i.removable_circuits,B=function(){function I(){return u("remove_cell")}return I}(),L=function(){function I(){return u("rename")}return I}();return(0,e.createComponentVNode)(2,m.Window,{width:600,height:380,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"Status",buttons:[(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:B,children:"Remove Battery"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:L,children:"Rename"})],children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Space in Assembly",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:c/d,maxValue:1,children:[c," / ",d," (",(0,a.round)(c/d*100,1),"%)"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Complexity",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:p/v,maxValue:1,children:[p," / ",v," (",(0,a.round)(p/v*100,1),"%)"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:f&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[0,.25],average:[.5,.75],good:[.75,1]},value:f/C,maxValue:1,children:[f," / ",C," (",(0,a.round)(f/C*100,1),"%)"]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"No cell detected."})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Net Energy",children:b===0&&"0 W/s"||(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:b,format:function(){function I(w){return"-"+(0,V.formatPower)(Math.abs(w))+"/s"}return I}()})})]})}),g.length&&(0,e.createComponentVNode)(2,S,{title:"Built-in Components",circuits:g})||null,y.length&&(0,e.createComponentVNode)(2,S,{title:"Removable Components",circuits:y})||null]})})}return N}(),S=function(h,s){var l=(0,t.useBackend)(s),u=l.act,i=h.title,c=h.circuits;return(0,e.createComponentVNode)(2,o.Section,{title:i,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:c.map(function(d){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:d.name,children:[(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function p(){return u("open_circuit",{ref:d.ref})}return p}(),children:"View"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function p(){return u("rename_circuit",{ref:d.ref})}return p}(),children:"Rename"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function p(){return u("scan_circuit",{ref:d.ref})}return p}(),children:"Debugger Scan"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function p(){return u("remove_circuit",{ref:d.ref})}return p}(),children:"Remove"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function p(){return u("bottom_circuit",{ref:d.ref})}return p}(),children:"Move to Bottom"})]},d.ref)})})})}},95599:function(x,r,n){"use strict";r.__esModule=!0,r.ICCircuit=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(40946),V=n(43820),k=r.ICCircuit=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.name,p=c.desc,v=c.displayed_name,f=c.removable,C=c.complexity,b=c.power_draw_idle,g=c.power_draw_per_use,y=c.extended_desc,B=c.inputs,L=c.outputs,I=c.activators;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,resizable:!0,title:v,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stats",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function w(){return i("rename")}return w}(),children:"Rename"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function w(){return i("scan")}return w}(),children:"Scan with Device"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function w(){return i("remove")}return w}(),children:"Remove"})],4),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Complexity",children:C}),b&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Draw (Idle)",children:(0,V.formatPower)(b)})||null,g&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Draw (Active)",children:(0,V.formatPower)(g)})||null]}),y]}),(0,e.createComponentVNode)(2,t.Section,{title:"Circuit",children:[(0,e.createComponentVNode)(2,t.Flex,{textAlign:"center",spacing:1,children:[B.length&&(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Section,{title:"Inputs",children:(0,e.createComponentVNode)(2,S,{list:B})})})||null,(0,e.createComponentVNode)(2,t.Flex.Item,{basis:B.length&&L.length?"33%":B.length||L.length?"45%":"100%",children:(0,e.createComponentVNode)(2,t.Section,{title:v,mb:1,children:(0,e.createComponentVNode)(2,t.Box,{children:p})})}),L.length&&(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Section,{title:"Outputs",children:(0,e.createComponentVNode)(2,S,{list:L})})})||null]}),(0,e.createComponentVNode)(2,t.Section,{title:"Triggers",children:I.map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w.name,children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function T(){return i("pin_name",{pin:w.ref})}return T}(),children:w.pulse_out?"<PULSE OUT>":"<PULSE IN>"}),(0,e.createComponentVNode)(2,N,{pin:w})]},w.name)})})]})]})})}return h}(),S=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=s.list;return c.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function p(){return i("pin_name",{pin:d.ref})}return p}(),children:[(0,m.decodeHtmlEntities)(d.type),": ",d.name]}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function p(){return i("pin_data",{pin:d.ref})}return p}(),children:d.data}),(0,e.createComponentVNode)(2,N,{pin:d})]},d.ref)})},N=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=s.pin;return c.linked.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function p(){return i("pin_unwire",{pin:c.ref,link:d.ref})}return p}(),children:d.name}),"@\xA0",(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function p(){return i("examine",{ref:d.holder_ref})}return p}(),children:d.holder_name})]},d.ref)})}},82723:function(x,r,n){"use strict";r.__esModule=!0,r.ICDetailer=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(40946),V=r.ICDetailer=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.detail_color,i=l.color_list;return(0,e.createComponentVNode)(2,o.Window,{width:420,height:254,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:Object.keys(i).map(function(c,d){return(0,e.createComponentVNode)(2,t.Button,{ml:0,mr:0,mb:-.4,mt:0,tooltip:(0,m.toTitleCase)(c),tooltipPosition:d%6===5?"left":"right",height:"64px",width:"64px",onClick:function(){function p(){return s("change_color",{color:c})}return p}(),style:i[c]===u?{border:"4px solid black","border-radius":0}:{"border-radius":0},backgroundColor:i[c]},c)})})})})}return k}()},15875:function(x,r,n){"use strict";r.__esModule=!0,r.ICPrinter=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(45445),V=r.ICPrinter=function(){function N(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.metal,d=i.max_metal,p=i.metal_per_sheet,v=i.debug,f=i.upgraded,C=i.can_clone,b=i.assembly_to_clone,g=i.categories;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:630,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Metal",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c,maxValue:d,children:[c/p," / ",d/p," sheets"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Circuits Available",children:f?"Advanced":"Regular"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Assembly Cloning",children:C?"Available":"Unavailable"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:"Note: A red component name means that the printer must be upgraded to create that component."})]}),(0,e.createComponentVNode)(2,S)]})})}return N}(),k=function(h,s){return!(!h.can_build||h.cost>s.metal)},S=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.categories,d=i.debug,p=(0,a.useSharedState)(s,"categoryTarget",null),v=p[0],f=p[1],C=(0,m.filter)(function(b){return b.name===v})(c)[0];return(0,e.createComponentVNode)(2,t.Section,{title:"Circuits",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:2,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:(0,m.sortBy)(function(b){return b.name})(c).map(function(b){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===b.name,onClick:function(){function g(){return f(b.name)}return g}(),children:b.name},b.name)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:C&&(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,m.sortBy)(function(b){return b.name})(C.items).map(function(b){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:b.name,labelColor:b.can_build?"good":"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!k(b,i),icon:"print",onClick:function(){function g(){return u("build",{build:b.path})}return g}(),children:"Print"}),children:b.desc},b.name)})})})||"No category selected."})]})})}},89724:function(x,r,n){"use strict";r.__esModule=!0,r.IDCard=void 0;var e=n(58734),a=n(11790),t=n(62188),o=n(11477),m=n(70237),V=r.IDCard=function(){function k(S,N){var h=(0,t.useBackend)(N),s=h.data,l=s.registered_name,u=s.sex,i=s.species,c=s.age,d=s.assignment,p=s.fingerprint_hash,v=s.blood_type,f=s.dna_hash,C=s.photo_front,b=[{name:"Sex",val:u},{name:"Species",val:i},{name:"Age",val:c},{name:"Blood Type",val:v},{name:"Fingerprint",val:p},{name:"DNA Hash",val:f}];return(0,e.createComponentVNode)(2,o.Window,{width:470,height:250,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Flex,{children:[(0,e.createComponentVNode)(2,a.Flex.Item,{basis:"25%",textAlign:"left",children:(0,e.createComponentVNode)(2,a.Box,{inline:!0,style:{width:"101px",height:"120px",overflow:"hidden",outline:"2px solid #4972a1"},children:C&&(0,e.createVNode)(1,"img",null,null,1,{src:C.substr(1,C.length-1),style:{width:"300px","margin-left":"-94px","-ms-interpolation-mode":"nearest-neighbor"}})||(0,e.createComponentVNode)(2,a.Icon,{name:"user",size:8,ml:1.5,mt:2.5})})}),(0,e.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,children:(0,e.createComponentVNode)(2,a.LabeledList,{children:b.map(function(g){return(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:g.name,children:g.val},g.name)})})})]}),(0,e.createComponentVNode)(2,a.Flex,{className:"IDCard__NamePlate",align:"center",justify:"space-around",children:[(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{textAlign:"center",children:l})}),(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,m.RankIcon,{rank:d})})}),(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{textAlign:"center",children:d})})]})]})})})}return k}()},85418:function(x,r,n){"use strict";r.__esModule=!0,r.IdentificationComputerRegions=r.IdentificationComputerPrinting=r.IdentificationComputerContent=r.IdentificationComputerAccessModification=r.IdentificationComputer=void 0;var e=n(58734),a=n(45445),t=n(62188),o=n(11790),m=n(11477),V=n(40946),k=n(68285),S=r.IdentificationComputer=function(){function u(){return(0,e.createComponentVNode)(2,m.Window,{width:600,height:700,children:(0,e.createComponentVNode)(2,m.Window.Content,{resizable:!0,children:(0,e.createComponentVNode)(2,N)})})}return u}(),N=r.IdentificationComputerContent=function(){function u(i,c){var d=(0,t.useBackend)(c),p=d.act,v=d.data,f=i.ntos,C=v.mode,b=v.has_modify,g=v.printing,y=(0,e.createComponentVNode)(2,s,{ntos:f});return f&&!v.have_id_slot?y=(0,e.createComponentVNode)(2,k.CrewManifestContent):g?y=(0,e.createComponentVNode)(2,h):C===1&&(y=(0,e.createComponentVNode)(2,k.CrewManifestContent)),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Tabs,{children:[(!f||!!v.have_id_slot)&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"home",selected:C===0,onClick:function(){function B(){return p("mode",{mode_target:0})}return B}(),children:"Access Modification"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"home",selected:C===1,onClick:function(){function B(){return p("mode",{mode_target:1})}return B}(),children:"Crew Manifest"}),!f||!!v.have_printer&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{float:"right",icon:"print",onClick:function(){function B(){return p("print")}return B}(),disabled:!C&&!b,color:"",children:"Print"})]}),y],0)}return u}(),h=r.IdentificationComputerPrinting=function(){function u(i,c){return(0,e.createComponentVNode)(2,o.Section,{title:"Printing",children:"Please wait..."})}return u}(),s=r.IdentificationComputerAccessModification=function(){function u(i,c){var d=(0,t.useBackend)(c),p=d.act,v=d.data,f=i.ntos,C=v.station_name,b=v.target_name,g=v.target_owner,y=v.scan_name,B=v.authenticated,L=v.has_modify,I=v.account_number,w=v.centcom_access,T=v.all_centcom_access,M=v.regions,A=v.id_rank,R=v.departments;return(0,e.createComponentVNode)(2,o.Section,{title:"Access Modification",children:[!B&&(0,e.createComponentVNode)(2,o.Box,{italic:!0,mb:1,children:"Please insert the IDs into the terminal to proceed."}),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Identitity",children:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",fluid:!0,content:b,onClick:function(){function O(){return p("modify")}return O}()})}),!f&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Authorized Identitity",children:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",fluid:!0,content:y,onClick:function(){function O(){return p("scan")}return O}()})})]}),!!B&&!!L&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Details",level:2,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Registered Name",children:(0,e.createComponentVNode)(2,o.Input,{value:g,fluid:!0,onInput:function(){function O(_,P){return p("reg",{reg:P})}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Number",children:(0,e.createComponentVNode)(2,o.Input,{value:I,fluid:!0,onInput:function(){function O(_,P){return p("account",{account:P})}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Dismissals",children:(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"bad",icon:"exclamation-triangle",confirmIcon:"fire",fluid:!0,content:"Dismiss "+g,confirmContent:"You are dismissing "+g+", confirm?",onClick:function(){function O(){return p("terminate")}return O}()})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Assignment",level:2,children:(0,e.createComponentVNode)(2,o.Table,{children:[R.map(function(O){return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,verticalAlign:"middle",children:O.department_name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.jobs.map(function(_){return(0,e.createComponentVNode)(2,o.Button,{selected:_.job===A,onClick:function(){function P(){return p("assign",{assign_target:_.job})}return P}(),children:(0,V.decodeHtmlEntities)(_.display_name)},_.job)})})]}),(0,e.createComponentVNode)(2,o.Box,{mt:-1,children:"\xA0"})," "],0,O.department_name)}),(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,verticalAlign:"middle",children:"Special"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function O(){return p("assign",{assign_target:"Custom"})}return O}(),children:"Custom"})})]})]})}),!!w&&(0,e.createComponentVNode)(2,o.Section,{title:"Central Command",level:2,children:T.map(function(O){return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,selected:O.allowed,onClick:function(){function _(){return p("access",{access_target:O.ref,allowed:O.allowed})}return _}(),children:(0,V.decodeHtmlEntities)(O.desc)})},O.ref)})})||(0,e.createComponentVNode)(2,o.Section,{title:C,level:2,children:(0,e.createComponentVNode)(2,l,{actName:"access"})})],0)]})}return u}(),l=r.IdentificationComputerRegions=function(){function u(i,c){var d=(0,t.useBackend)(c),p=d.act,v=d.data,f=i.actName,C=v.regions;return(0,e.createComponentVNode)(2,o.Flex,{wrap:"wrap",spacing:1,children:(0,a.sortBy)(function(b){return b.name})(C).map(function(b){return(0,e.createComponentVNode)(2,o.Flex.Item,{mb:1,basis:"content",grow:1,children:(0,e.createComponentVNode)(2,o.Section,{title:b.name,height:"100%",children:(0,a.sortBy)(function(g){return g.desc})(b.accesses).map(function(g){return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,selected:g.allowed,onClick:function(){function y(){return p(f,{access_target:g.ref,allowed:g.allowed})}return y}(),children:(0,V.decodeHtmlEntities)(g.desc)})},g.ref)})})},b.name)})})}return u}()},33835:function(x,r,n){"use strict";r.__esModule=!0,r.InventoryPanel=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.InventoryPanel=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.slots,u=s.internalsValid;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:200,resizable:!0,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:l&&l.length&&l.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.name,children:(0,e.createComponentVNode)(2,t.Button,{mb:-1,icon:i.item?"hand-paper":"gift",onClick:function(){function c(){return h(i.act)}return c}(),children:i.item||"Nothing"})},i.name)})})}),u&&(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:u&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"lungs",onClick:function(){function i(){return h("internals")}return i}(),children:"Set Internals"})||null})||null]})})}return V}()},77422:function(x,r,n){"use strict";r.__esModule=!0,r.InventoryPanelHuman=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.InventoryPanelHuman=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.slots,u=s.specialSlots,i=s.internals,c=s.internalsValid,d=s.sensors,p=s.handcuffed,v=s.handcuffedParams,f=s.legcuffed,C=s.legcuffedParams,b=s.accessory;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:600,resizable:!0,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:[l&&l.length&&l.map(function(g){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:g.name,children:(0,e.createComponentVNode)(2,t.Button,{mb:-1,icon:g.item?"hand-paper":"gift",onClick:function(){function y(){return h(g.act,g.params)}return y}(),children:g.item||"Nothing"})},g.name)}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),u&&u.length&&u.map(function(g){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:g.name,children:(0,e.createComponentVNode)(2,t.Button,{mb:-1,icon:g.item?"hand-paper":"gift",onClick:function(){function y(){return h(g.act,g.params)}return y}(),children:g.item||"Nothing"})},g.name)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"running",onClick:function(){function g(){return h("targetSlot",{slot:"splints"})}return g}(),children:"Remove Splints"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"hand-paper",onClick:function(){function g(){return h("targetSlot",{slot:"pockets"})}return g}(),children:"Empty Pockets"}),c&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"lungs",onClick:function(){function g(){return h("targetSlot",{slot:"internals"})}return g}(),children:"Set Internals"})||null,d&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"book-medical",onClick:function(){function g(){return h("targetSlot",{slot:"sensors"})}return g}(),children:"Set Sensors"})||null,p&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){function g(){return h("targetSlot",v)}return g}(),children:"Handcuffed"})||null,f&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){function g(){return h("targetSlot",C)}return g}(),children:"Legcuffed"})||null,b&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){function g(){return h("targetSlot",{slot:"tie"})}return g}(),children:"Remove Accessory"})||null]})]})})}return V}()},39749:function(x,r,n){"use strict";r.__esModule=!0,r.IsolationCentrifuge=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.IsolationCentrifuge=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.busy,u=s.antibodies,i=s.pathogens,c=s.is_antibody_sample,d=s.sample_inserted,p=(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No vial detected."});return d&&(!u&&!i?p=(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No antibodies or viral strains detected."}):p=(0,e.createFragment)([u?(0,e.createComponentVNode)(2,t.Section,{title:"Antibodies",children:u}):null,i.length?(0,e.createComponentVNode)(2,t.Section,{title:"Pathogens",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:i.map(function(v){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:v.name,children:v.spread_type},v.name)})})}):null],0)),(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:l?(0,e.createComponentVNode)(2,t.Section,{title:"The Centrifuge is currently busy.",color:"bad",children:(0,e.createVNode)(1,"center",null,(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:l}),2)}):(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:c?"Antibody Sample":"Blood Sample",children:[(0,e.createComponentVNode)(2,t.Flex,{spacing:1,mb:1,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"print",content:"Print",disabled:!u&&!i.length,onClick:function(){function v(){return h("print")}return v}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:"Eject Vial",disabled:!d,onClick:function(){function v(){return h("sample")}return v}()})})]}),p]}),u&&!c||i.length?(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u&&!c?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Isolate Antibodies",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:u,onClick:function(){function v(){return h("antibody")}return v}()})}):null,i.length?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Isolate Strain",children:i.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:v.name,onClick:function(){function f(){return h("isolate",{isolate:v.reference})}return f}()},v.name)})}):null]})}):null],0)})})}return V}()},93432:function(x,r,n){"use strict";r.__esModule=!0,r.JanitorCart=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.JanitorCart=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.mybag,c=u.mybucket,d=u.mymop,p=u.myspray,v=u.myreplacer,f=u.signs,C=u.icons;return(0,e.createComponentVNode)(2,o.Window,{width:210,height:180,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"64px",height:"64px",position:"relative",tooltip:i||"Garbage Bag Slot",tooltipPosition:"bottom-end",color:i?"grey":"transparent",style:{border:i?null:"2px solid grey"},onClick:function(){function b(){return l("bag")}return b}(),children:(0,e.createComponentVNode)(2,k,{iconkey:"mybag"})}),(0,e.createComponentVNode)(2,t.Button,{width:"64px",height:"64px",position:"relative",tooltip:c||"Bucket Slot",tooltipPosition:"bottom",color:c?"grey":"transparent",style:{border:c?null:"2px solid grey"},onClick:function(){function b(){return l("bucket")}return b}(),children:(0,e.createComponentVNode)(2,k,{iconkey:"mybucket"})}),(0,e.createComponentVNode)(2,t.Button,{width:"64px",height:"64px",position:"relative",tooltip:d||"Mop Slot",tooltipPosition:"bottom-end",color:d?"grey":"transparent",style:{border:d?null:"2px solid grey"},onClick:function(){function b(){return l("mop")}return b}(),children:(0,e.createComponentVNode)(2,k,{iconkey:"mymop"})}),(0,e.createComponentVNode)(2,t.Button,{width:"64px",height:"64px",position:"relative",tooltip:p||"Spray Slot",tooltipPosition:"top-end",color:p?"grey":"transparent",style:{border:p?null:"2px solid grey"},onClick:function(){function b(){return l("spray")}return b}(),children:(0,e.createComponentVNode)(2,k,{iconkey:"myspray"})}),(0,e.createComponentVNode)(2,t.Button,{width:"64px",height:"64px",position:"relative",tooltip:v||"Light Replacer Slot",tooltipPosition:"top",color:v?"grey":"transparent",style:{border:v?null:"2px solid grey"},onClick:function(){function b(){return l("replacer")}return b}(),children:(0,e.createComponentVNode)(2,k,{iconkey:"myreplacer"})}),(0,e.createComponentVNode)(2,t.Button,{width:"64px",height:"64px",position:"relative",tooltip:f||"Signs Slot",tooltipPosition:"top-start",color:f?"grey":"transparent",style:{border:f?null:"2px solid grey"},onClick:function(){function b(){return l("sign")}return b}(),children:(0,e.createComponentVNode)(2,k,{iconkey:"signs"})})]})})}return S}(),V={mybag:"trash",mybucket:"fill",mymop:"broom",myspray:"spray-can",myreplacer:"lightbulb",signs:"sign"},k=function(N,h){var s=(0,a.useBackend)(h),l=s.data,u=N.iconkey,i=l.icons;return u in i?(0,e.createVNode)(1,"img",null,null,1,{src:i[u].substr(1,i[u].length-1),style:{position:"absolute",left:0,right:0,top:0,bottom:0,width:"64px",height:"64px","-ms-interpolation-mode":"nearest-neighbor"}}):(0,e.createComponentVNode)(2,t.Icon,{style:{position:"absolute",left:"4px",right:0,top:"20px",bottom:0,width:"64px",height:"64px"},fontSize:2,name:V[u]})}},1644:function(x,r,n){"use strict";r.__esModule=!0,r.Jukebox=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(11477),V=r.Jukebox=function(){function k(S,N){var h=(0,t.useBackend)(N),s=h.act,l=h.data,u=l.playing,i=l.loop_mode,c=l.volume,d=l.current_track_ref,p=l.current_track,v=l.current_genre,f=l.percent,C=l.tracks,b=C.length&&C.reduce(function(y,B){var L=B.genre||"Uncategorized";return y[L]||(y[L]=[]),y[L].push(B),y},{}),g=u&&(v||"Uncategorized");return(0,e.createComponentVNode)(2,m.Window,{width:450,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"Currently Playing",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Title",children:u&&p&&(0,e.createComponentVNode)(2,o.Box,{children:[p.title," by ",p.artist||"Unkown"]})||(0,e.createComponentVNode)(2,o.Box,{children:"Stopped"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"play",disabled:u,onClick:function(){function y(){return s("play")}return y}(),children:"Play"}),(0,e.createComponentVNode)(2,o.Button,{icon:"stop",disabled:!u,onClick:function(){function y(){return s("stop")}return y}(),children:"Stop"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Loop Mode",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"play",onClick:function(){function y(){return s("loopmode",{loopmode:1})}return y}(),selected:i===1,children:"Next"}),(0,e.createComponentVNode)(2,o.Button,{icon:"random",onClick:function(){function y(){return s("loopmode",{loopmode:2})}return y}(),selected:i===2,children:"Shuffle"}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",onClick:function(){function y(){return s("loopmode",{loopmode:3})}return y}(),selected:i===3,children:"Repeat"}),(0,e.createComponentVNode)(2,o.Button,{icon:"step-forward",onClick:function(){function y(){return s("loopmode",{loopmode:4})}return y}(),selected:i===4,children:"Once"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Progress",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:f,maxValue:1,color:"good"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:0,step:1,value:c*100,maxValue:100,ranges:{good:[75,1/0],average:[25,75],bad:[0,25]},format:function(){function y(B){return(0,a.round)(B,1)+"%"}return y}(),onChange:function(){function y(B,L){return s("volume",{val:(0,a.round)(L/100,2)})}return y}()})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Available Tracks",children:C.length&&Object.keys(b).sort().map(function(y){return(0,e.createComponentVNode)(2,o.Collapsible,{title:y,color:g===y?"green":"default",child_mt:0,children:(0,e.createVNode)(1,"div",null,b[y].map(function(B){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"play",selected:d===B.ref,onClick:function(){function L(){return s("change_track",{change_track:B.ref})}return L}(),children:B.title},B.ref)}),0,{style:{"margin-left":"1em"}})},y)})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Error: No songs loaded."})})]})})}return k}()},11877:function(x,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=["laws","title","noButtons"];function V(l,u){if(l==null)return{};var i={},c=Object.keys(l),d,p;for(p=0;p<c.length;p++)d=c[p],!(u.indexOf(d)>=0)&&(i[d]=l[d]);return i}var k=r.LawManager=function(){function l(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.isSlaved;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[v&&(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:["Law-synced to ",v]})||null,(0,e.createComponentVNode)(2,S)]})})}return l}(),S=function(u,i){var c=(0,a.useSharedState)(i,"lawsTabIndex",0),d=c[0],p=c[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:d===0,onClick:function(){function v(){return p(0)}return v}(),children:"Law Management"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:d===1,onClick:function(){function v(){return p(1)}return v}(),children:"Law Sets"})]}),d===0&&(0,e.createComponentVNode)(2,N)||null,d===1&&(0,e.createComponentVNode)(2,s)||null],0)},N=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.ion_law_nr,f=p.ion_law,C=p.zeroth_law,b=p.inherent_law,g=p.supplied_law,y=p.supplied_law_position,B=p.zeroth_laws,L=p.has_zeroth_laws,I=p.ion_laws,w=p.has_ion_laws,T=p.inherent_laws,M=p.has_inherent_laws,A=p.supplied_laws,R=p.has_supplied_laws,O=p.isAI,_=p.isMalf,P=p.isAdmin,D=p.channel,z=p.channels,U=B.map(function(W){return W.zero=!0,W}).concat(T);return(0,e.createComponentVNode)(2,t.Section,{children:[w&&(0,e.createComponentVNode)(2,h,{laws:I,title:v+" Laws:",mt:-2})||null,(L||M)&&(0,e.createComponentVNode)(2,h,{laws:U,title:"Inherent Laws",mt:-2})||null,R&&(0,e.createComponentVNode)(2,h,{laws:A,title:"Supplied Laws",mt:-2})||null,(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Controls",mt:-2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Statement Channel",children:z.map(function(W){return(0,e.createComponentVNode)(2,t.Button,{content:W.channel,selected:D===W.channel,onClick:function(){function K(){return d("law_channel",{law_channel:W.channel})}return K}()},W.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{icon:"volume-up",onClick:function(){function W(){return d("state_laws")}return W}(),children:"State Laws"})}),O&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation",onClick:function(){function W(){return d("notify_laws")}return W}(),children:"Notify"})})||null]})}),_&&(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Add Laws",mt:-2,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,{collapsing:!0,children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"Add"})]}),P&&!L&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"Zero"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Input,{value:C,fluid:!0,onChange:function(){function W(K,H){return d("change_zeroth_law",{val:H})}return W}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"plus",onClick:function(){function W(){return d("add_zeroth_law")}return W}(),children:"Add"})})]})||null,(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"Ion"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Input,{value:f,fluid:!0,onChange:function(){function W(K,H){return d("change_ion_law",{val:H})}return W}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"plus",onClick:function(){function W(){return d("add_ion_law")}return W}(),children:"Add"})})]}),(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:(0,e.createComponentVNode)(2,t.Input,{value:b,fluid:!0,onChange:function(){function W(K,H){return d("change_inherent_law",{val:H})}return W}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"plus",onClick:function(){function W(){return d("add_inherent_law")}return W}(),children:"Add"})})]}),(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:(0,e.createComponentVNode)(2,t.Input,{value:g,fluid:!0,onChange:function(){function W(K,H){return d("change_supplied_law",{val:H})}return W}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function W(){return d("change_supplied_law_position")}return W}(),children:y})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"plus",onClick:function(){function W(){return d("add_supplied_law")}return W}(),children:"Add"})})]})]})})||null]})},h=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.isMalf,f=p.isAdmin,C=u.laws,b=u.title,g=u.noButtons,y=V(u,m);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Section,Object.assign({level:2,title:b},y,{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,{collapsing:!0,children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Law"}),!g&&(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"State"})||null,v&&!g&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"Edit"}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"Delete"})],4)||null]}),C.map(function(B){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:[B.index,"."]}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:B.zero?"bad":null,children:B.law}),!g&&(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"volume-up",selected:B.state,onClick:function(){function L(){return d("state_law",{ref:B.ref,state_law:!B.state})}return L}(),children:B.state?"Yes":"No"})})||null,v&&!g&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,t.Button,{disabled:B.zero&&!f,icon:"pen",onClick:function(){function L(){return d("edit_law",{edit_law:B.ref})}return L}(),children:"Edit"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,t.Button,{disabled:B.zero&&!f,color:"bad",icon:"trash",onClick:function(){function L(){return d("delete_law",{delete_law:B.ref})}return L}(),children:"Delete"})})],4)||null]},B.index)})]})})))},s=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.isMalf,f=p.law_sets;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Remember: Stating laws other than those currently loaded may be grounds for decommissioning! - NanoTrasen"}),f.length&&f.map(function(C){return(0,e.createComponentVNode)(2,t.Section,{title:C.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{disabled:!v,icon:"sync",onClick:function(){function b(){return d("transfer_laws",{transfer_laws:C.ref})}return b}(),children:"Load Laws"}),(0,e.createComponentVNode)(2,t.Button,{icon:"volume-up",onClick:function(){function b(){return d("state_law_set",{state_law_set:C.ref})}return b}(),children:"State Laws"})],4),children:[C.laws.has_ion_laws&&(0,e.createComponentVNode)(2,h,{noButtons:!0,laws:C.laws.ion_laws,title:C.laws.ion_law_nr+" Laws:"})||null,(C.laws.has_zeroth_laws||C.laws.has_inherent_laws)&&(0,e.createComponentVNode)(2,h,{noButtons:!0,laws:C.laws.zeroth_laws.concat(C.laws.inherent_laws),title:C.header})||null,C.laws.has_supplied_laws&&(0,e.createComponentVNode)(2,h,{noButtons:!0,laws:C.laws.supplied_laws,title:"Supplied Laws"})||null]},C.name)})||null],0)}},94648:function(x,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(58734),a=n(89226),t=n(57370),o=n(11790),m=n(62188),V=n(42678),k=n(11477),S=r.ListInputModal=function(){function s(l,u){var i=(0,m.useBackend)(u),c=i.act,d=i.data,p=d.items,v=p===void 0?[]:p,f=d.message,C=f===void 0?"":f,b=d.init_value,g=d.large_buttons,y=d.timeout,B=d.title,L=(0,m.useLocalState)(u,"selected",v.indexOf(b)),I=L[0],w=L[1],T=(0,m.useLocalState)(u,"searchBarVisible",v.length>9),M=T[0],A=T[1],R=(0,m.useLocalState)(u,"searchQuery",""),O=R[0],_=R[1],P=function(){function J(q){var oe=H.length-1;if(q===V.KEY_DOWN)if(I===null||I===oe){var ae;w(0),(ae=document.getElementById("0"))==null||ae.scrollIntoView()}else{var le;w(I+1),(le=document.getElementById((I+1).toString()))==null||le.scrollIntoView()}else if(q===V.KEY_UP)if(I===null||I===0){var he;w(oe),(he=document.getElementById(oe.toString()))==null||he.scrollIntoView()}else{var me;w(I-1),(me=document.getElementById((I-1).toString()))==null||me.scrollIntoView()}}return J}(),D=function(){function J(q){q!==I&&w(q)}return J}(),z=function(){function J(){A(!1),A(!0)}return J}(),U=function(){function J(q){var oe=String.fromCharCode(q),ae=v.find(function(me){return me==null?void 0:me.toLowerCase().startsWith(oe==null?void 0:oe.toLowerCase())});if(ae){var le,he=v.indexOf(ae);w(he),(le=document.getElementById(he.toString()))==null||le.scrollIntoView()}}return J}(),W=function(){function J(q){var oe;q!==O&&(_(q),w(0),(oe=document.getElementById("0"))==null||oe.scrollIntoView())}return J}(),K=function(){function J(){A(!M),_("")}return J}(),H=v.filter(function(J){return J==null?void 0:J.toLowerCase().includes(O.toLowerCase())}),Y=325+Math.ceil(C.length/3)+(g?5:0);return M||setTimeout(function(){var J;return(J=document.getElementById(I.toString()))==null?void 0:J.focus()},1),(0,e.createComponentVNode)(2,k.Window,{title:B,width:325,height:Y,children:[y&&(0,e.createComponentVNode)(2,a.Loader,{value:y}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function J(q){var oe=window.event?q.which:q.keyCode;(oe===V.KEY_DOWN||oe===V.KEY_UP)&&(q.preventDefault(),P(oe)),oe===V.KEY_ENTER&&(q.preventDefault(),c("submit",{entry:H[I]})),!M&&oe>=V.KEY_A&&oe<=V.KEY_Z&&(q.preventDefault(),U(oe)),oe===V.KEY_ESCAPE&&(q.preventDefault(),c("cancel"))}return J}(),children:(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{compact:!0,icon:M?"search":"font",selected:!0,tooltip:M?"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 J(){return K()}return J}()}),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,N,{filteredItems:H,onClick:D,onFocusSearch:z,searchBarVisible:M,selected:I})}),M&&(0,e.createComponentVNode)(2,h,{filteredItems:H,onSearch:W,searchQuery:O,selected:I}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:H[I]})})]})})})]})}return s}(),N=function(l,u){var i=(0,m.useBackend)(u),c=i.act,d=l.filteredItems,p=l.onClick,v=l.onFocusSearch,f=l.searchBarVisible,C=l.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:d.map(function(b,g){return(0,e.createComponentVNode)(2,o.Button,{color:"transparent",fluid:!0,id:g,onClick:function(){function y(){return p(g)}return y}(),onDblClick:function(){function y(B){B.preventDefault(),c("submit",{entry:d[C]})}return y}(),onKeyDown:function(){function y(B){var L=window.event?B.which:B.keyCode;f&&L>=V.KEY_A&&L<=V.KEY_Z&&(B.preventDefault(),v())}return y}(),selected:g===C,style:{animation:"none",transition:"none"},children:b.replace(/^\w/,function(y){return y.toUpperCase()})},g)})})},h=function(l,u){var i=(0,m.useBackend)(u),c=i.act,d=l.filteredItems,p=l.onSearch,v=l.searchQuery,f=l.selected;return(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,autoSelect:!0,fluid:!0,onEnter:function(){function C(b){b.preventDefault(),c("submit",{entry:d[f]})}return C}(),onInput:function(){function C(b,g){return p(g)}return C}(),placeholder:"Search...",value:v})}},74639:function(x,r,n){"use strict";r.__esModule=!0,r.LookingGlass=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.LookingGlass=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.supportedPrograms,u=s.currentProgram,i=s.immersion,c=s.gravity,d=Math.min(180+l.length*23,600);return(0,e.createComponentVNode)(2,o.Window,{width:300,height:d,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Programs",children:l.map(function(p){return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eye",selected:p===u,onClick:function(){function v(){return h("program",{program:p})}return v}(),children:p},p)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gravity",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"user-astronaut",selected:c,onClick:function(){function p(){return h("gravity")}return p}(),children:c?"Enabled":"Disabled"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Full Immersion",children:(0,e.createComponentVNode)(2,t.Button,{mt:-1,fluid:!0,icon:"eye",selected:i,onClick:function(){function p(){return h("immersion")}return p}(),children:i?"Enabled":"Disabled"})})]})})]})})}return V}()},1365:function(x,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(40946),V=r.MechaControlConsole=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.beacons,i=l.stored_data;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[i.length&&(0,e.createComponentVNode)(2,t.Modal,{children:(0,e.createComponentVNode)(2,t.Section,{height:"400px",style:{"overflow-y":"auto"},title:"Log",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"window-close",onClick:function(){function c(){return s("clear_log")}return c}()}),children:i.map(function(c){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{color:"label",children:["(",c.time,") (",c.year,")"]}),(0,e.createComponentVNode)(2,t.Box,{children:(0,m.decodeHtmlEntities)(c.message)})]},c.time)})})})||null,u.length&&u.map(function(c){return(0,e.createComponentVNode)(2,t.Section,{title:c.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"comment",onClick:function(){function d(){return s("send_message",{mt:c.ref})}return d}(),children:"Message"}),(0,e.createComponentVNode)(2,t.Button,{icon:"eye",onClick:function(){function d(){return s("get_log",{mt:c.ref})}return d}(),children:"View Log"}),(0,e.createComponentVNode)(2,t.Button.Confirm,{color:"red",content:"EMP",icon:"bomb",onClick:function(){function d(){return s("shock",{mt:c.ref})}return d}()})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[c.maxHealth*.75,1/0],average:[c.maxHealth*.5,c.maxHealth*.75],bad:[-1/0,c.maxHealth*.5]},value:c.health,maxValue:c.maxHealth})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:c.cell&&(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[c.cellMaxCharge*.75,1/0],average:[c.cellMaxCharge*.5,c.cellMaxCharge*.75],bad:[-1/0,c.cellMaxCharge*.5]},value:c.cellCharge,maxValue:c.cellMaxCharge})||(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Air Tank",children:[c.airtank,"kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pilot",children:c.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,m.toTitleCase)(c.location)||"Unknown"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Active Equipment",children:c.active||"None"}),c.cargoMax&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{bad:[c.cargoMax*.75,1/0],average:[c.cargoMax*.5,c.cargoMax*.75],good:[-1/0,c.cargoMax*.5]},value:c.cargoUsed,maxValue:c.cargoMax})})||null]})},c.name)})||(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mecha beacons found."})]})})}return k}()},69909:function(x,r,n){"use strict";r.__esModule=!0,r.Medbot=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.Medbot=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.on,u=s.open,i=s.beaker,c=s.beaker_total,d=s.beaker_max,p=s.locked,v=s.heal_threshold,f=s.heal_threshold_max,C=s.injection_amount_min,b=s.injection_amount,g=s.injection_amount_max,y=s.use_beaker,B=s.declare_treatment,L=s.vocal;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Automatic Medical Unit v2.0",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:l,onClick:function(){function I(){return h("power")}return I}(),children:l?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",color:u?"bad":"good",children:u?"Open":"Closed"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!i,icon:"eject",onClick:function(){function I(){return h("eject")}return I}(),children:"Eject"}),children:i&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:c,maxValue:d,children:[c," / ",d]})||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No beaker loaded."})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Behavior Controls",color:p?"good":"bad",children:p?"Locked":"Unlocked"})]})}),!p&&(0,e.createComponentVNode)(2,t.Section,{title:"Behavioral Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Healing Threshold",children:(0,e.createComponentVNode)(2,t.NumberInput,{fluid:!0,minValue:0,maxValue:f,value:v,onDrag:function(){function I(w,T){return h("adj_threshold",{val:T})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Injection Amount",children:(0,e.createComponentVNode)(2,t.NumberInput,{fluid:!0,minValue:C,maxValue:g,value:b,onDrag:function(){function I(w,T){return h("adj_inject",{val:T})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reagent Source",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:y?"toggle-on":"toggle-off",selected:y,onClick:function(){function I(){return h("use_beaker")}return I}(),children:y?"Loaded Beaker (When available)":"Internal Synthesizer"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Treatment Report",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:B?"toggle-on":"toggle-off",selected:B,onClick:function(){function I(){return h("declaretreatment")}return I}(),children:B?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Speaker",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:L?"toggle-on":"toggle-off",selected:L,onClick:function(){function I(){return h("togglevoice")}return I}(),children:L?"On":"Off"})})]})})||null]})})}return V}()},82854:function(x,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(48388),m=n(11477),V=n(39813),k=n(50947),S=n(45246),N={Minor:"good",Medium:"average","Dangerous!":"bad",Harmful:"bad","BIOHAZARD THREAT!":"bad"},h=function(g,y){(0,o.modalOpen)(g,"edit",{field:y.edit,value:y.value})},s=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=g.args;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",title:I.name||"Virus",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",color:"red",onClick:function(){function w(){return L("modal_close")}return w}()}),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:"Spread",children:[I.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Possible cure",children:I.antigen}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate of Progression",children:I.rate}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Antibiotic Resistance",children:[I.resistance,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species Affected",children:I.species}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Symptoms",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:I.symptoms.map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w.stage+". "+w.name,children:[(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",children:"Strength:"})," ",w.strength,"\xA0",(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",children:"Aggressiveness:"})," ",w.aggressiveness]},w.stage)})})})]})})})},l=r.MedicalRecords=function(){function b(g,y){var B=(0,a.useBackend)(y),L=B.data,I=L.authenticated,w=L.screen;if(!I)return(0,e.createComponentVNode)(2,m.Window,{width:800,height:380,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,k.LoginScreen)})});var T;return w===2?T=(0,e.createComponentVNode)(2,u):w===3?T=(0,e.createComponentVNode)(2,i):w===4?T=(0,e.createComponentVNode)(2,c):w===5?T=(0,e.createComponentVNode)(2,v):w===6&&(T=(0,e.createComponentVNode)(2,f)),(0,e.createComponentVNode)(2,m.Window,{width:800,height:380,resizable:!0,children:[(0,e.createComponentVNode)(2,o.ComplexModal,{maxHeight:"100%",maxWidth:"80%"}),(0,e.createComponentVNode)(2,m.Window.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.createComponentVNode)(2,V.LoginInfo),(0,e.createComponentVNode)(2,S.TemporaryNotice),(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,t.Section,{height:"calc(100% - 5rem)",flexGrow:"1",children:T})]})]})}return b}(),u=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.records;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Input,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(){function T(M,A){return L("search",{t1:A})}return T}()}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:w.map(function(T,M){return(0,e.createComponentVNode)(2,t.Button,{icon:"user",mb:"0.5rem",content:T.id+": "+T.name,onClick:function(){function A(){return L("d_rec",{d_rec:T.ref})}return A}()},M)})})],4)},i=function(g,y){var B=(0,a.useBackend)(y),L=B.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Medical Records",onClick:function(){function I(){return L("del_all")}return I}()})],0)},c=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.medical,T=I.printing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"General Data",level:2,mt:"-6px",children:(0,e.createComponentVNode)(2,d)}),(0,e.createComponentVNode)(2,t.Section,{title:"Medical Data",level:2,children:(0,e.createComponentVNode)(2,p)}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",level:2,children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",disabled:!!w.empty,content:"Delete Medical Record",color:"bad",onClick:function(){function M(){return L("del_r")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:T?"spinner":"print",disabled:T,iconSpin:!!T,content:"Print Entry",ml:"0.5rem",onClick:function(){function M(){return L("print_p")}return M}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){function M(){return L("screen",{screen:2})}return M}()})]})],4)},d=function(g,y){var B=(0,a.useBackend)(y),L=B.data,I=L.general;return!I||!I.fields?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"General records lost!"}):(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{width:"50%",float:"left",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:I.fields.map(function(w,T){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w.field,children:[(0,e.createComponentVNode)(2,t.Box,{height:"20px",display:"inline-block",preserveWhitespace:!0,children:w.value}),!!w.edit&&(0,e.createComponentVNode)(2,t.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function M(){return h(y,w)}return M}()})]},T)})})}),(0,e.createComponentVNode)(2,t.Box,{width:"50%",float:"right",textAlign:"right",children:!!I.has_photos&&I.photos.map(function(w,T){return(0,e.createComponentVNode)(2,t.Box,{display:"inline-block",textAlign:"center",color:"label",children:[(0,e.createVNode)(1,"img",null,null,1,{src:w.substr(1,w.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createVNode)(1,"br"),"Photo #",T+1]},T)})})],4)},p=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.medical;return!w||!w.fields?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:["Medical records lost!",(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){function T(){return L("new")}return T}()})]}):(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList,{children:w.fields.map(function(T,M){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:T.field,children:(0,e.createComponentVNode)(2,t.Box,{preserveWhitespace:!0,children:[T.value,(0,e.createComponentVNode)(2,t.Button,{icon:"pen",ml:"0.5rem",mb:T.line_break?"1rem":"initial",onClick:function(){function A(){return h(y,T)}return A}()})]})},M)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Comments/Log",level:2,children:[w.comments.length===0?(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No comments found."}):w.comments.map(function(T,M){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,children:T.header}),(0,e.createVNode)(1,"br"),T.text,(0,e.createComponentVNode)(2,t.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function A(){return L("del_c",{del_c:M+1})}return A}()})]},M)}),(0,e.createComponentVNode)(2,t.Button,{icon:"comment-medical",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){function T(){return(0,o.modalOpen)(y,"add_c")}return T}()})]})],4)},v=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.virus;return w.sort(function(T,M){return T.name>M.name?1:-1}),w.map(function(T,M){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"flask",content:T.name,mb:"0.5rem",onClick:function(){function A(){return L("vir",{vir:T.D})}return A}()}),(0,e.createVNode)(1,"br")],4,M)})},f=function(g,y){var B=(0,a.useBackend)(y),L=B.data,I=L.medbots;return I.length===0?(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"There are no Medbots."}):I.map(function(w,T){return(0,e.createComponentVNode)(2,t.Collapsible,{open:!0,title:w.name,children:(0,e.createComponentVNode)(2,t.Box,{px:"0.5rem",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:[w.area||"Unknown"," (",w.x,", ",w.y,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:w.on?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Online"}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:w.use_beaker?"Reservoir: "+w.total_volume+"/"+w.maximum_volume:"Using internal synthesizer."})],4):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Offline"})})]})})},T)})},C=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.screen;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:w===2,onClick:function(){function T(){return L("screen",{screen:2})}return T}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"list"}),"List Records"]}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:w===5,onClick:function(){function T(){return L("screen",{screen:5})}return T}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"database"}),"Virus Database"]}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:w===6,onClick:function(){function T(){return L("screen",{screen:6})}return T}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"plus-square"}),"Medbot Tracking"]}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:w===3,onClick:function(){function T(){return L("screen",{screen:3})}return T}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"wrench"}),"Record Maintenance"]})]})};(0,o.modalRegisterBodyOverride)("virus",s)},38223:function(x,r,n){"use strict";r.__esModule=!0,r.MessageMonitor=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=n(11477),V=n(45246),k=n(84288),S=r.MessageMonitor=function(){function d(p,v){var f=(0,t.useBackend)(v),C=f.act,b=f.data,g=b.auth,y=b.linkedServer,B=b.message,L=b.hacking,I=b.emag,w;return L||I?w=(0,e.createComponentVNode)(2,N):g?y?w=(0,e.createComponentVNode)(2,s):w=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"ERROR"}):w=(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,m.Window,{width:670,height:450,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,V.TemporaryNotice),w]})})}return d}(),N=function(p,v){var f=(0,t.useBackend)(v),C=f.act,b=f.data,g=b.isMalfAI;return(0,e.createComponentVNode)(2,k.FullscreenNotice,{title:"ERROR",children:g?(0,e.createComponentVNode)(2,o.Box,{children:"Brute-forcing for server key. It will take 20 seconds for every character that the password has."}):(0,e.createComponentVNode)(2,o.Box,{children:["01000010011100100111010101110100011001010010110",(0,e.createVNode)(1,"br"),"10110011001101111011100100110001101101001011011100110011",(0,e.createVNode)(1,"br"),"10010000001100110011011110111001000100000011100110110010",(0,e.createVNode)(1,"br"),"10111001001110110011001010111001000100000011010110110010",(0,e.createVNode)(1,"br"),"10111100100101110001000000100100101110100001000000111011",(0,e.createVNode)(1,"br"),"10110100101101100011011000010000001110100011000010110101",(0,e.createVNode)(1,"br"),"10110010100100000001100100011000000100000011100110110010",(0,e.createVNode)(1,"br"),"10110001101101111011011100110010001110011001000000110011",(0,e.createVNode)(1,"br"),"00110111101110010001000000110010101110110011001010111001",(0,e.createVNode)(1,"br"),"00111100100100000011000110110100001100001011100100110000",(0,e.createVNode)(1,"br"),"10110001101110100011001010111001000100000011101000110100",(0,e.createVNode)(1,"br"),"00110000101110100001000000111010001101000011001010010000",(0,e.createVNode)(1,"br"),"00111000001100001011100110111001101110111011011110111001",(0,e.createVNode)(1,"br"),"00110010000100000011010000110000101110011001011100010000",(0,e.createVNode)(1,"br"),"00100100101101110001000000111010001101000011001010010000",(0,e.createVNode)(1,"br"),"00110110101100101011000010110111001110100011010010110110",(0,e.createVNode)(1,"br"),"10110010100101100001000000111010001101000011010010111001",(0,e.createVNode)(1,"br"),"10010000001100011011011110110111001110011011011110110110",(0,e.createVNode)(1,"br"),"00110010100100000011000110110000101101110001000000111001",(0,e.createVNode)(1,"br"),"00110010101110110011001010110000101101100001000000111100",(0,e.createVNode)(1,"br"),"10110111101110101011100100010000001110100011100100111010",(0,e.createVNode)(1,"br"),"10110010100100000011010010110111001110100011001010110111",(0,e.createVNode)(1,"br"),"00111010001101001011011110110111001110011001000000110100",(0,e.createVNode)(1,"br"),"10110011000100000011110010110111101110101001000000110110",(0,e.createVNode)(1,"br"),"00110010101110100001000000111001101101111011011010110010",(0,e.createVNode)(1,"br"),"10110111101101110011001010010000001100001011000110110001",(0,e.createVNode)(1,"br"),"10110010101110011011100110010000001101001011101000010111",(0,e.createVNode)(1,"br"),"00010000001001101011000010110101101100101001000000111001",(0,e.createVNode)(1,"br"),"10111010101110010011001010010000001101110011011110010000",(0,e.createVNode)(1,"br"),"00110100001110101011011010110000101101110011100110010000",(0,e.createVNode)(1,"br"),"00110010101101110011101000110010101110010001000000111010",(0,e.createVNode)(1,"br"),"00110100001100101001000000111001001101111011011110110110",(0,e.createVNode)(1,"br"),"10010000001100100011101010111001001101001011011100110011",(0,e.createVNode)(1,"br"),"10010000001110100011010000110000101110100001000000111010",(0,e.createVNode)(1,"br"),"001101001011011010110010100101110"]})})},h=function(p,v){var f=(0,t.useBackend)(v),C=f.act,b=f.data,g=b.isMalfAI;return(0,e.createComponentVNode)(2,k.FullscreenNotice,{title:"Welcome",children:[(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),"Unauthorized"]}),(0,e.createComponentVNode)(2,o.Box,{color:"label",my:"1rem",children:["Decryption Key:",(0,e.createComponentVNode)(2,o.Input,{placeholder:"Decryption Key",ml:"0.5rem",onChange:function(){function y(B,L){return C("auth",{key:L})}return y}()})]}),!!g&&(0,e.createComponentVNode)(2,o.Button,{icon:"terminal",content:"Hack",onClick:function(){function y(){return C("hack")}return y}()}),(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Please authenticate with the server in order to show additional options."})]})},s=function(p,v){var f=(0,t.useBackend)(v),C=f.act,b=f.data,g=b.linkedServer,y=(0,t.useLocalState)(v,"tabIndex",0),B=y[0],L=y[1],I;return B===0?I=(0,e.createComponentVNode)(2,l):B===1?I=(0,e.createComponentVNode)(2,u,{logs:g.pda_msgs,pda:!0}):B===2?I=(0,e.createComponentVNode)(2,u,{logs:g.rc_msgs,rc:!0}):B===3?I=(0,e.createComponentVNode)(2,i):B===4&&(I=(0,e.createComponentVNode)(2,c)),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===0,onClick:function(){function w(){return L(0)}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"bars"})," Main Menu"]},"Main"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===1,onClick:function(){function w(){return L(1)}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"font"})," Message Logs"]},"MessageLogs"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===2,onClick:function(){function w(){return L(2)}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"bold"})," Request Logs"]},"RequestLogs"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===3,onClick:function(){function w(){return L(3)}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"comment-alt"})," Admin Messaging"]},"AdminMessage"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===4,onClick:function(){function w(){return L(4)}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"comment-slash"})," Spam Filter"]},"SpamFilter"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{color:"red",onClick:function(){function w(){return C("deauth")}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"sign-out-alt"})," Log Out"]},"Logout")]}),(0,e.createComponentVNode)(2,o.Box,{m:2,children:I})],4)},l=function(p,v){var f=(0,t.useBackend)(v),C=f.act,b=f.data,g=b.linkedServer;return(0,e.createComponentVNode)(2,o.Section,{title:"Main Menu",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"link",content:"Server Link",onClick:function(){function y(){return C("find")}return y}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:"Server "+(g.active?"Enabled":"Disabled"),selected:g.active,onClick:function(){function y(){return C("active")}return y}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Server Status",children:(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Good"})})}),(0,e.createComponentVNode)(2,o.Button,{mt:1,icon:"key",content:"Set Custom Key",onClick:function(){function y(){return C("pass")}return y}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",content:"Clear Message Logs"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",content:"Clear Request Logs"})]})},u=function(p,v){var f=(0,t.useBackend)(v),C=f.act,b=f.data,g=p.logs,y=p.pda,B=p.rc;return(0,e.createComponentVNode)(2,o.Section,{title:y?"PDA Logs":B?"Request Logs":"Logs",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",icon:"trash",confirmIcon:"trash",content:"Delete All",onClick:function(){function L(){return C(y?"del_pda":"del_rc")}return L}()}),children:(0,e.createComponentVNode)(2,o.Flex,{wrap:"wrap",children:g.map(function(L,I){return(0,e.createComponentVNode)(2,o.Flex.Item,{m:"2px",basis:"49%",grow:I%2,children:(0,e.createComponentVNode)(2,o.Section,{title:L.sender+" -> "+L.recipient,buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){function w(){return C("delete",{id:L.ref,type:B?"rc":"pda"})}return w}()}),children:B?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Message",children:L.message}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Verification",color:L.id_auth==="Unauthenticated"?"bad":"good",children:(0,a.decodeHtmlEntities)(L.id_auth)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stamp",children:L.stamp})]}):L.message})},L.ref)})})})},i=function(p,v){var f=(0,t.useBackend)(v),C=f.act,b=f.data,g=b.possibleRecipients,y=b.customsender,B=b.customrecepient,L=b.customjob,I=b.custommessage,w=Object.keys(g);return(0,e.createComponentVNode)(2,o.Section,{title:"Admin Messaging",children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sender",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,value:y,onChange:function(){function T(M,A){return C("set_sender",{val:A})}return T}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sender's Job",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,value:L,onChange:function(){function T(M,A){return C("set_sender_job",{val:A})}return T}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Recipient",children:(0,e.createComponentVNode)(2,o.Dropdown,{value:B,options:w,width:"100%",mb:-.7,onSelected:function(){function T(M){return C("set_recipient",{val:g[M]})}return T}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Message",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,mb:.5,value:I,onChange:function(){function T(M,A){return C("set_message",{val:A})}return T}()})})]}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"comment",content:"Send Message",onClick:function(){function T(){return C("send_message")}return T}()})]})},c=function(p,v){var f=(0,t.useBackend)(v),C=f.act,b=f.data,g=b.linkedServer;return(0,e.createComponentVNode)(2,o.Section,{title:"Spam Filtering",children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:g.spamFilter.map(function(y){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:y.index,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",content:"Delete",onClick:function(){function B(){return C("deltoken",{deltoken:y.index})}return B}()}),children:y.token},y.index)})}),(0,e.createComponentVNode)(2,o.Button,{icon:"plus",content:"Add New Entry",onClick:function(){function y(){return C("addtoken")}return y}()})]})}},31546:function(x,r,n){"use strict";r.__esModule=!0,r.Microwave=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.Microwave=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.config,l=N.data,u=l.broken,i=l.operating,c=l.dirty,d=l.items;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:u&&(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Bzzzzttttt!!"})})||i&&(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{color:"good",children:["Microwaving in progress!",(0,e.createVNode)(1,"br"),"Please wait...!"]})})||c&&(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:["This microwave is dirty!",(0,e.createVNode)(1,"br"),"Please clean it before use!"]})})||d.length&&(0,e.createComponentVNode)(2,t.Section,{level:1,title:"Ingredients",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",onClick:function(){function p(){return h("cook")}return p}(),children:"Microwave"}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function p(){return h("dispose")}return p}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(p){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:p.name,children:[p.amt," ",p.extra]},p.name)})})})||(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[s.title," is empty."]})})})})}return V}()},64193:function(x,r,n){"use strict";r.__esModule=!0,r.MiningOreProcessingConsole=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=n(11477),V=n(23415),k=r.MiningOreProcessingConsole=function(){function l(u,i){var c=(0,t.useBackend)(i),d=c.act,p=c.data,v=p.unclaimedPoints,f=p.ores,C=p.showAllOres,b=p.power,g=p.speed;return(0,e.createComponentVNode)(2,m.Window,{width:400,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:[(0,e.createComponentVNode)(2,V.MiningUser,{insertIdText:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-right",mr:1,onClick:function(){function y(){return d("insert")}return y}(),children:"Insert ID"}),"in order to claim points."]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"bolt",selected:g,onClick:function(){function y(){return d("speed_toggle")}return y}(),children:g?"High-Speed Active":"High-Speed Inactive"}),(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",selected:b,onClick:function(){function y(){return d("power")}return y}(),children:b?"Smelting":"Not Smelting"})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current unclaimed points",buttons:(0,e.createComponentVNode)(2,o.Button,{disabled:v<1,icon:"download",onClick:function(){function y(){return d("claim")}return y}(),children:"Claim"}),children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:v})})})}),(0,e.createComponentVNode)(2,s)]})})}return l}(),S=["Not Processing","Smelting","Compressing","Alloying"],N=["verdantium","mhydrogen","diamond","platinum","uranium","gold","silver","rutile","phoron","marble","lead","sand","carbon","hematite"],h=function(u,i){return N.indexOf(u.ore)===-1||N.indexOf(i.ore)===-1?u.ore-i.ore:N.indexOf(i.ore)-N.indexOf(u.ore)},s=function(u,i){var c=(0,t.useBackend)(i),d=c.act,p=c.data,v=p.ores,f=p.showAllOres,C=p.power;return(0,e.createComponentVNode)(2,o.Section,{title:"Ore Processing Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:f?"toggle-on":"toggle-off",selected:f,onClick:function(){function b(){return d("showAllOres")}return b}(),children:f?"All Ores":"Ores in Machine"}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:v.length&&v.sort(h).map(function(b){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:(0,a.toTitleCase)(b.name),buttons:(0,e.createComponentVNode)(2,o.Dropdown,{width:"120px",color:b.processing===0&&"red"||b.processing===1&&"green"||b.processing===2&&"blue"||b.processing===3&&"yellow",options:S,selected:S[b.processing],onSelected:function(){function g(y){return d("toggleSmelting",{ore:b.ore,set:S.indexOf(y)})}return g}()}),children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:b.amount})})},b.ore)})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",textAlign:"center",children:"No ores in machine."})})})}},94702:function(x,r,n){"use strict";r.__esModule=!0,r.MiningStackingConsole=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=n(11477),V=r.MiningStackingConsole=function(){function k(S,N){var h=(0,t.useBackend)(N),s=h.act,l=h.data,u=l.stacktypes,i=l.stackingAmt;return(0,e.createComponentVNode)(2,m.Window,{width:400,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Stacker Controls",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stacking",children:(0,e.createComponentVNode)(2,o.NumberInput,{fluid:!0,value:i,minValue:1,maxValue:50,stepPixelSize:5,onChange:function(){function c(d,p){return s("change_stack",{amt:p})}return c}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),u.length&&u.sort().map(function(c){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:(0,a.toTitleCase)(c.type),buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function d(){return s("release_stack",{stack:c.type})}return d}(),children:"Eject"}),children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.amt})},c.type)})||(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Empty",color:"average",children:"No stacks in machine."})]})})})})}return k}()},677:function(x,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=n(11477),V=n(23415),k=["title","items"];function S(i,c){if(i==null)return{};var d={},p=Object.keys(i),v,f;for(f=0;f<p.length;f++)v=p[f],!(c.indexOf(v)>=0)&&(d[v]=i[v]);return d}var N={Alphabetical:function(){function i(c,d){return c-d}return i}(),"By availability":function(){function i(c,d){return-(c.affordable-d.affordable)}return i}(),"By price":function(){function i(c,d){return c.price-d.price}return i}()},h=r.MiningVendor=function(){function i(c,d){return(0,e.createComponentVNode)(2,m.Window,{width:400,height:450,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.createComponentVNode)(2,V.MiningUser,{insertIdText:"Please insert an ID in order to make purchases."}),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,s)]})})}return i}(),s=function(c,d){var p=(0,t.useBackend)(d),v=p.act,f=p.data,C=f.has_id,b=f.id,g=f.items,y=(0,t.useLocalState)(d,"search",""),B=y[0],L=y[1],I=(0,t.useLocalState)(d,"sort","Alphabetical"),w=I[0],T=I[1],M=(0,t.useLocalState)(d,"descending",!1),A=M[0],R=M[1],O=(0,a.createSearch)(B,function(D){return D[0]}),_=!1,P=Object.entries(g).map(function(D,z){var U=Object.entries(D[1]).filter(O).map(function(W){return W[1].affordable=C&&b.points>=W[1].price,W[1]}).sort(N[w]);if(U.length!==0)return A&&(U=U.reverse()),_=!0,(0,e.createComponentVNode)(2,u,{title:D[0],items:U},D[0])});return(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Section,{children:_?P:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},l=function(c,d){var p=(0,t.useLocalState)(d,"search",""),v=p[0],f=p[1],C=(0,t.useLocalState)(d,"sort",""),b=C[0],g=C[1],y=(0,t.useLocalState)(d,"descending",!1),B=y[0],L=y[1];return(0,e.createComponentVNode)(2,o.Box,{mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Flex,{width:"100%",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(){function I(w,T){return f(T)}return I}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(N),width:"100%",lineHeight:"19px",onSelected:function(){function I(w){return g(w)}return I}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:B?"arrow-down":"arrow-up",height:"19px",tooltip:B?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){function I(){return L(!B)}return I}()})})]})})},u=function(c,d){var p=(0,t.useBackend)(d),v=p.act,f=p.data,C=c.title,b=c.items,g=S(c,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:C},g,{children:b.map(function(y){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:y.name}),(0,e.createComponentVNode)(2,o.Button,{disabled:!f.has_id||f.id.points<y.price,content:y.price.toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){function B(){return v("purchase",{cat:C,name:y.name})}return B}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})]},y.name)})})))}},25006:function(x,r,n){"use strict";r.__esModule=!0,r.MobSpawner=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.MobSpawner=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=(0,a.useLocalState)(h,"panelTabIndex",0),c=i[0],d=i[1],p=[];return p[0]=(0,e.createComponentVNode)(2,V),p[1]=(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,o.Window,{width:890,height:660,theme:"abstract",resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:c===0,onClick:function(){function v(){return d(0)}return v}(),children:"General Settings"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:c===1,onClick:function(){function v(){return d(1)}return v}(),children:"Vore Settings [WIP]"})]}),p[c]||"Error"]})})}return S}(),V=function(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=(0,a.useLocalState)(h,"amount",1),c=i[0],d=i[1],p=(0,a.useLocalState)(h,"name",u.default_path_name),v=p[0],f=p[1],C=(0,a.useLocalState)(h,"aiType",u.ai_type),b=C[0],g=(0,a.useLocalState)(h,"toggleCustomAi",u.use_custom_ai),y=g[0],B=(0,a.useLocalState)(h,"setMobFaction",u.faction),L=B[0],I=(0,a.useLocalState)(h,"setIntent",u.intent),w=I[0],T=(0,a.useLocalState)(h,"maxHealth",u.max_health),M=T[0],A=T[1],R=(0,a.useLocalState)(h,"health",u.health),O=R[0],_=R[1],P=(0,a.useLocalState)(h,"meleeDamageLower",u.melee_damage_lower),D=P[0],z=P[1],U=(0,a.useLocalState)(h,"meleeDamageUpper",u.melee_damage_upper),W=U[0],K=U[1],H=(0,a.useLocalState)(h,"desc",u.default_desc),Y=H[0],J=H[1],q=(0,a.useLocalState)(h,"flavorText",u.default_flavor_text),oe=q[0],ae=q[1],le=(0,a.useLocalState)(h,"sizeMultiplier",100),he=le[0],me=le[1],Be=(0,a.useLocalState)(h,"x",u.initial_x),ce=Be[0],te=Be[1],ee=(0,a.useLocalState)(h,"y",u.initial_y),ie=ee[0],Ce=ee[1],Se=(0,a.useLocalState)(h,"z",u.initial_z),we=Se[0],pe=Se[1],E=(0,a.useLocalState)(h,"radius",0),Z=E[0],re=E[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"General",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mob Name",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,value:v||u.default_path_name,onChange:function(){function X(ne,ve){return f(ve)}return X}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mob Path",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:u.path||"Select Path",onClick:function(){function X(ne){return l("select_path")}return X}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Spawn Amount",children:(0,e.createComponentVNode)(2,t.NumberInput,{value:c,minValue:0,maxValue:256,onChange:function(){function X(ne,ve){return d(ve)}return X}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Size ("+he+"%)",children:(0,e.createComponentVNode)(2,t.Knob,{value:he,minValue:50,maxValue:200,unit:"%",onChange:function(){function X(ne,ve){return me(ve)}return X}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"General Settings",children:(0,e.createComponentVNode)(2,t.Flex,{horizontal:!0,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{FlexGrow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Positional Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Spawn (X/Y/Z) Coords",children:[(0,e.createComponentVNode)(2,t.NumberInput,{value:u.loc_lock?u.loc_x:ce,minValue:0,maxValue:256,onChange:function(){function X(ne,ve){return te(ve)}return X}()}),(0,e.createComponentVNode)(2,t.NumberInput,{value:u.loc_lock?u.loc_y:ie,minValue:0,maxValue:256,onChange:function(){function X(ne,ve){return Ce(ve)}return X}()}),(0,e.createComponentVNode)(2,t.NumberInput,{value:u.loc_lock?u.loc_z:we,minValue:0,maxValue:256,onChange:function(){function X(ne,ve){return pe(ve)}return X}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{content:"Lock coords to self",checked:u.loc_lock,onClick:function(){function X(){return l("loc_lock")}return X}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Spawn Radius (WIP)",children:(0,e.createComponentVNode)(2,t.NumberInput,{value:Z,disabled:!0,minValue:0,maxValue:256,onChange:function(){function X(ne,ve){return re(ve)}return X}()})})]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Divider,{vertical:!0})}),(0,e.createComponentVNode)(2,t.Flex.Item,{FlexGrow:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"AI settings",buttons:(0,e.createComponentVNode)(2,t.Button,{selected:y,fill:!0,content:"Use Custom AI",onClick:function(){function X(){return l("toggle_custom_ai")}return X}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:b||"Choose AI Type",onClick:function(){function X(ne){return l("set_ai_path")}return X}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:L||"Set Faction",onClick:function(){function X(ne){return l("set_faction")}return X}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:w||"Set Intent",onClick:function(){function X(ne){return l("set_intent")}return X}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Health & Damage",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[M&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Max Health",children:(0,e.createComponentVNode)(2,t.NumberInput,{value:M,onChange:function(){function X(ne,ve){return A(ve)}return X}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.NumberInput,{value:O,onChange:function(){function X(ne,ve){return _(ve)}return X}()})}),(0,e.createVNode)(1,"br")],4)||"Note: Only available for '/mob/living'",D&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Melee Damage (Lower)",children:(0,e.createComponentVNode)(2,t.NumberInput,{value:D,onChange:function(){function X(ne,ve){return z(ve)}return X}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Melee Damage (Upper)",children:(0,e.createComponentVNode)(2,t.NumberInput,{value:W,onChange:function(){function X(ne,ve){return K(ve)}return X}()})})],4)||"Note: Only available for '/mob/living/simple_mob'"]})})]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Descriptions",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:["Description:",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.TextArea,{height:"18rem",onChange:function(){function X(ne,ve){return J(ve)}return X}(),value:Y||u.default_desc})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:["Flavor Text:",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.TextArea,{height:"18rem",value:oe||u.default_flavor_text,onChange:function(){function X(ne,ve){return ae(ve)}return X}()})]})]})}),(0,e.createComponentVNode)(2,t.Button,{color:"teal",onCLick:function(){function X(){return l("start_spawn",{amount:c,name:v||u.default_path_name,desc:Y||u.default_desc,max_health:M||u.max_health,health:O||u.health,melee_damage_lower:D||u.melee_damage_lower,melee_damage_upper:W||u.melee_damage_upper,flavor_text:oe||u.default_flavor_text,size_multiplier:he*.01,x:u.loc_lock?u.loc_x:ce,y:u.loc_lock?u.loc_y:ie,z:u.loc_lock?u.loc_z:we,radius:Z})}return X}(),children:"Spawn"})],4)},k=function(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data;return(0,e.createComponentVNode)(2,t.Section,{title:"WIP",children:["This Tab is still under construction!",(0,e.createVNode)(1,"br"),"Functionality will be added in later updates."]})}},98789:function(x,r,n){"use strict";r.__esModule=!0,r.MuleBot=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.MuleBot=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.suffix,c=u.load,d=u.hatch;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Multiple Utility Load Effector Mk. III",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Unload Now",disabled:!c,onClick:function(){function p(){return l("unload")}return p}()}),children:c||"None."})]}),d?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,V)]})})})}return S}(),V=function(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.power,c=u.locked,d=u.issilicon,p=u.auto_return,v=u.crates_only;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:i?"On":"Off",selected:i,disabled:c&&!d,onClick:function(){function f(){return l("power")}return f}()}),children:c&&!d?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"This interface is currently locked."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"stop",content:"Stop",onClick:function(){function f(){return l("stop")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"truck-monster",content:"Proceed",onClick:function(){function f(){return l("go")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"home",content:"Return Home",onClick:function(){function f(){return l("home")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"map-marker-alt",content:"Set Destination",onClick:function(){function f(){return l("destination")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",content:"Set Home",onClick:function(){function f(){return l("sethome")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"home",selected:p,content:"Auto Return Home: "+(p?"Enabled":"Disabled"),onClick:function(){function f(){return l("autoret")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"biking",selected:!v,content:"Non-standard Cargo: "+(v?"Disabled":"Enabled"),onClick:function(){function f(){return l("cargotypes")}return f}()})],4)})},k=function(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.safety;return(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance Panel",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"skull-crossbones",color:i?"green":"red",content:"Safety: "+(i?"Engaged":"Disengaged (DANGER)"),onClick:function(){function c(){return l("safety")}return c}()})})}},50543:function(x,r,n){"use strict";r.__esModule=!0,r.NIF=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=0,V=1,k=2,S=3,N=4,h=["abductor","cardtable","hackerman","malfunction","ntos","paper","retro","syndicate"],s=r.NIF=function(){function d(p,v){var f=(0,a.useBackend)(v),C=f.act,b=f.config,g=f.data,y=g.theme,B=g.last_notification,L=(0,a.useLocalState)(v,"settingsOpen",!1),I=L[0],w=L[1],T=(0,a.useLocalState)(v,"viewingModule",null),M=T[0],A=T[1];return(0,e.createComponentVNode)(2,o.Window,{theme:y,width:500,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!B&&(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:(0,e.createComponentVNode)(2,t.Table,{verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Table.Row,{verticalAlign:"middle",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{verticalAlign:"middle",children:B}),(0,e.createComponentVNode)(2,t.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:(0,e.createComponentVNode)(2,t.Button,{color:"red",icon:"times",tooltip:"Dismiss",tooltipPosition:"left",onClick:function(){function R(){return C("dismissNotification")}return R}()})})]})})}),!!M&&(0,e.createComponentVNode)(2,t.Modal,{m:1,p:0,color:"label",children:(0,e.createComponentVNode)(2,t.Section,{m:0,title:M.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"ban",color:"bad",content:"Uninstall",confirmIcon:"ban",confirmContent:"Uninstall "+M.name+"?",onClick:function(){function R(){C("uninstall",{module:M.ref}),A(null)}return R}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"window-close",onClick:function(){function R(){return A(null)}return R}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:M.desc}),(0,e.createComponentVNode)(2,t.Box,{children:["It consumes"," ",(0,e.createComponentVNode)(2,t.Box,{color:"good",inline:!0,children:M.p_drain})," ","energy units while installed, and"," ",(0,e.createComponentVNode)(2,t.Box,{color:"average",inline:!0,children:M.a_drain})," ","additionally while active."]}),(0,e.createComponentVNode)(2,t.Box,{color:M.illegal?"bad":"good",children:["It is ",M.illegal?"NOT ":"","a legal software package."]}),(0,e.createComponentVNode)(2,t.Box,{children:["The MSRP of the package is"," ",(0,e.createComponentVNode)(2,t.Box,{color:"good",inline:!0,children:[M.cost,"\u20AE."]})]}),(0,e.createComponentVNode)(2,t.Box,{children:["The difficulty to construct the associated implant is\xA0",(0,e.createComponentVNode)(2,t.Box,{color:"good",inline:!0,children:["Rating ",M.wear]}),"."]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Welcome to your NIF, "+b.user.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"cogs",tooltip:"Settings",tooltipPosition:"bottom-end",selected:I,onClick:function(){function R(){return w(!I)}return R}()}),children:I&&(0,e.createComponentVNode)(2,c)||(0,e.createComponentVNode)(2,i,{setViewing:A})})]})})}return d}(),l=function(p,v){switch(p){case m:return v<25?"Service Needed Soon":"Operating Normally";case V:return"Insufficient Energy!";case k:return"System Failure!";case S:return"Adapting To User"}return"Unknown"},u=function(p,v){return v?p>=450?"Overcharged":p>=250?"Good Charge":"Low Charge":p>=250?"NIF Power Requirement met.":p>=150?"Fluctuations in available power.":"Power failure imminent."},i=function(p,v){var f=(0,a.useBackend)(v),C=f.act,b=f.config,g=f.data,y=g.nif_percent,B=g.nif_stat,L=g.last_notification,I=g.nutrition,w=g.isSynthetic,T=g.modules,M=p.setViewing;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NIF Condition",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:y,minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,0]},children:[l(B,y)," (",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:y}),"%)"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NIF Power",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:I,minValue:0,maxValue:700,ranges:{good:[250,1/0],average:[150,250],bad:[0,150]},children:u(I,w)})})]}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"NIFSoft Modules",mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:T.map(function(A){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:A.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",color:"bad",confirmContent:"UNINSTALL?",confirmIcon:"trash",tooltip:"Uninstall Module",tooltipPosition:"left",onClick:function(){function R(){return C("uninstall",{module:A.ref})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"search",onClick:function(){function R(){return M(A)}return R}(),tooltip:"View Information",tooltipPosition:"left"})],4),children:A.activates&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,selected:A.active,content:A.stat_text,onClick:function(){function R(){return C("toggle_module",{module:A.ref})}return R}()})||(0,e.createComponentVNode)(2,t.Box,{children:A.stat_text})},A.ref)})})})]})},c=function(p,v){var f=(0,a.useBackend)(v),C=f.act,b=f.data,g=b.theme;return(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NIF Theme",verticalAlign:"top",children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"100%",placeholder:"Default",selected:g,options:h,onSelected:function(){function y(B){return C("setTheme",{theme:B})}return y}()})})})}},97540:function(x,r,n){"use strict";r.__esModule=!0,r.NTNetRelay=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(84288),V=r.NTNetRelay=function(){function N(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.dos_crashed,d=i.enabled,p=i.dos_overload,v=i.dos_capacity,f=(0,e.createComponentVNode)(2,k);return c&&(f=(0,e.createComponentVNode)(2,S)),(0,e.createComponentVNode)(2,o.Window,{width:c?700:500,height:c?600:300,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:f})})}return N}(),k=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.dos_crashed,d=i.enabled,p=i.dos_overload,v=i.dos_capacity;return(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:d,content:"Relay "+(d?"On":"Off"),onClick:function(){function f(){return u("toggle")}return f}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network Buffer Status",children:[p," / ",v," GQ"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Purge network blacklist",onClick:function(){function f(){return u("purge")}return f}()})})]})})},S=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data;return(0,e.createComponentVNode)(2,m.FullscreenNotice,{title:"ERROR",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,e.createVNode)(1,"h2",null,"NETWORK BUFFERS OVERLOADED",16),(0,e.createVNode)(1,"h3",null,"Overload Recovery Mode",16),(0,e.createVNode)(1,"i",null,"This system is suffering temporary outage due to overflow of traffic buffers. Until buffered traffic is processed, all further requests will be dropped. Frequent occurences of this error may indicate insufficient hardware capacity of your network. Please contact your network planning department for instructions on how to resolve this issue.",16),(0,e.createVNode)(1,"h3",null,"ADMINISTRATIVE OVERRIDE",16),(0,e.createVNode)(1,"b",null," CAUTION - Data loss may occur ",16)]}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Purge buffered traffic",onClick:function(){function c(){return u("restart")}return c}()})})]})}},4024:function(x,r,n){"use strict";r.__esModule=!0,r.Newscaster=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=n(11477),V=n(45246),k="Main Menu",S="New Channel",N="View List",h="New Story",s="Print",l="New Wanted",u="View Wanted",i="View Selected Channel",c=r.Newscaster=function(){function I(w,T){var M=(0,t.useBackend)(T),A=M.act,R=M.data,O=R.screen,_=R.user;return(0,e.createComponentVNode)(2,m.Window,{width:600,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,V.TemporaryNotice,{decode:!0}),(0,e.createComponentVNode)(2,d)]})})}return I}(),d=function(w,T){var M=(0,t.useBackend)(T),A=M.act,R=M.data,O=R.user,_=(0,t.useSharedState)(T,"screen",k),P=_[0],D=_[1],z=L[P];return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,z,{setScreen:D})})},p=function(w,T){var M=(0,t.useBackend)(T),A=M.act,R=M.data,O=R.securityCaster,_=R.wanted_issue,P=w.setScreen;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Main Menu",children:[_&&(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eye",onClick:function(){function D(){return P(u)}return D}(),color:"bad",children:"Read WANTED Issue"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eye",onClick:function(){function D(){return P(N)}return D}(),children:"View Feed Channels"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"plus",onClick:function(){function D(){return P(S)}return D}(),children:"Create Feed Channel"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"plus",onClick:function(){function D(){return P(h)}return D}(),children:"Create Feed Message"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"print",onClick:function(){function D(){return P(s)}return D}(),children:"Print Newspaper"})]}),!!O&&(0,e.createComponentVNode)(2,o.Section,{title:"Feed Security Functions",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"plus",onClick:function(){function D(){return P(l)}return D}(),children:'Manage "Wanted" Issue'})})],0)},v=function(w,T){var M=(0,t.useBackend)(T),A=M.act,R=M.data,O=R.channel_name,_=R.c_locked,P=R.user,D=w.setScreen;return(0,e.createComponentVNode)(2,o.Section,{title:"Creating new Feed Channel",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function z(){return D(k)}return z}(),children:"Back"}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel Name",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,value:(0,a.decodeHtmlEntities)(O),onInput:function(){function z(U,W){return A("set_channel_name",{val:W})}return z}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel Author",color:"good",children:P}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Accept Public Feeds",children:(0,e.createComponentVNode)(2,o.Button,{icon:_?"lock":"lock-open",selected:!_,onClick:function(){function z(){return A("set_channel_lock")}return z}(),children:_?"No":"Yes"})})]}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"good",icon:"plus",onClick:function(){function z(){return A("submit_new_channel")}return z}(),children:"Submit Channel"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){function z(){return D(k)}return z}(),children:"Cancel"})]})},f=function(w,T){var M=(0,t.useBackend)(T),A=M.act,R=M.data,O=R.channels,_=w.setScreen;return(0,e.createComponentVNode)(2,o.Section,{title:"Station Feed Channels",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function P(){return _(k)}return P}(),children:"Back"}),children:O.map(function(P){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eye",color:P.admin?"good":P.censored?"bad":"",onClick:function(){function D(){A("show_channel",{show_channel:P.ref}),_(i)}return D}(),children:(0,a.decodeHtmlEntities)(P.name)},P.name)})})},C=function(w,T){var M=(0,t.useBackend)(T),A=M.act,R=M.data,O=R.channel_name,_=R.user,P=R.title,D=R.msg,z=R.photo_data,U=w.setScreen,W={"white-space":"nowrap"},K={width:"100%","word-break":"break-all","word-wrap":"break-word"};return(0,e.createComponentVNode)(2,o.Section,{title:"Creating new Feed Message...",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function H(){return U(k)}return H}(),children:"Back"}),children:[(0,e.createVNode)(1,"table",null,[(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"Receiving Channel:",16,{style:W}),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,o.Button,{fluid:!0,onClick:function(){function H(){return A("set_channel_receiving")}return H}(),children:O||"Unset"}),2,{colspan:2})],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"Message Author:",16,{style:W}),(0,e.createVNode)(1,"td","color-good",_,0,{colspan:2})],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"Message Title:",16,{style:W}),(0,e.createVNode)(1,"td",null,P||"(no title yet)",0,{style:K}),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,o.Button,{verticalAlign:"top",onClick:function(){function H(){return A("set_new_title")}return H}(),icon:"pen",tooltip:"Edit Title",tooltipPosition:"left"}),2)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"Message Body:",16,{style:W}),(0,e.createVNode)(1,"td",null,D||"(no message yet)",0,{style:K}),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,o.Button,{verticalAlign:"top",onClick:function(){function H(){return A("set_new_message")}return H}(),icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"}),2)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"Attach Photo:",16,{style:W}),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"image",onClick:function(){function H(){return A("set_attachment")}return H}(),children:z?"Photo Attached":"No Photo"}),2,{colspan:2})],4)],4,{style:{width:"calc(100% + 0.5em)",margin:"-0.25em -0.25em 0 -0.25em",padding:0}}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"good",icon:"plus",onClick:function(){function H(){return A("submit_new_message")}return H}(),children:"Submit Message"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){function H(){return U(k)}return H}(),children:"Cancel"})]})},b=function(w,T){var M=(0,t.useBackend)(T),A=M.act,R=M.data,O=R.total_num,_=R.active_num,P=R.message_num,D=R.paper_remaining,z=w.setScreen;return(0,e.createComponentVNode)(2,o.Section,{title:"Printing",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function U(){return z(k)}return U}(),children:"Back"}),children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",mb:1,children:["Newscaster currently serves a total of ",O," Feed channels,"," ",_," of which are active, and a total of ",P," Feed stories."]}),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Liquid Paper remaining",children:[D*100," cm\xB3"]})}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){function U(){return A("print_paper")}return U}(),children:"Print Paper"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){function U(){return z(k)}return U}(),children:"Cancel"})]})},g=function(w,T){var M=(0,t.useBackend)(T),A=M.act,R=M.data,O=R.channel_name,_=R.msg,P=R.photo_data,D=R.user,z=R.wanted_issue,U=w.setScreen;return(0,e.createComponentVNode)(2,o.Section,{title:"Wanted Issue Handler",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function W(){return U(k)}return W}(),children:"Back"}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[!!z&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Already In Circulation",children:"A wanted issue is already in circulation. You can edit or cancel it below."}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Criminal Name",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,value:(0,a.decodeHtmlEntities)(O),onInput:function(){function W(K,H){return A("set_channel_name",{val:H})}return W}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,value:(0,a.decodeHtmlEntities)(_),onInput:function(){function W(K,H){return A("set_wanted_desc",{val:H})}return W}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Attach Photo",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"image",onClick:function(){function W(){return A("set_attachment")}return W}(),children:P?"Photo Attached":"No Photo"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prosecutor",color:"good",children:D})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){function W(){return A("submit_wanted")}return W}(),children:"Submit Wanted Issue"}),!!z&&(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"average",icon:"minus",onClick:function(){function W(){return A("cancel_wanted")}return W}(),children:"Take Down Issue"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){function W(){return U(k)}return W}(),children:"Cancel"})]})},y=function(w,T){var M=(0,t.useBackend)(T),A=M.act,R=M.data,O=R.wanted_issue,_=w.setScreen;return O?(0,e.createComponentVNode)(2,o.Section,{title:"--STATIONWIDE WANTED ISSUE--",color:"bad",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function P(){return _(k)}return P}(),children:"Back"}),children:(0,e.createComponentVNode)(2,o.Box,{color:"white",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Submitted by",color:"good",children:(0,a.decodeHtmlEntities)(O.author)}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Criminal",children:(0,a.decodeHtmlEntities)(O.criminal)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:(0,a.decodeHtmlEntities)(O.desc)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo",children:O.img&&(0,e.createVNode)(1,"img",null,null,1,{src:O.img})||"None"})]})})}):(0,e.createComponentVNode)(2,o.Section,{title:"No Outstanding Wanted Issues",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function P(){return _(k)}return P}(),children:"Back"}),children:"There are no wanted issues currently outstanding."})},B=function(w,T){var M=(0,t.useBackend)(T),A=M.act,R=M.data,O=R.viewing_channel,_=R.securityCaster,P=R.company,D=w.setScreen;return O?(0,e.createComponentVNode)(2,o.Section,{title:(0,a.decodeHtmlEntities)(O.name),buttons:(0,e.createFragment)([!!_&&(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"bad",icon:"ban",confirmIcon:"ban",content:"Issue D-Notice",onClick:function(){function z(){return A("toggle_d_notice",{ref:O.ref})}return z}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function z(){return D(N)}return z}(),children:"Back"})],0),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel Created By",children:_&&(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:(0,a.decodeHtmlEntities)(O.author),tooltip:"Censor?",confirmContent:"Censor Author",onClick:function(){function z(){return A("censor_channel_author",{ref:O.ref})}return z}()})||(0,e.createComponentVNode)(2,o.Box,{children:(0,a.decodeHtmlEntities)(O.author)})})}),!!O.censored&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:["ATTENTION: This channel has been deemed as threatening to the welfare of the station, and marked with a ",P," D-Notice. No further feed story additions are allowed while the D-Notice is in effect."]}),!!O.messages.length&&O.messages.map(function(z){return(0,e.createComponentVNode)(2,o.Section,{children:["- ",(0,a.decodeHtmlEntities)(z.body),!!z.img&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+z.img}),(0,a.decodeHtmlEntities)(z.caption)||null]}),(0,e.createComponentVNode)(2,o.Box,{color:"grey",children:["[Story by ",(0,a.decodeHtmlEntities)(z.author)," -"," ",z.timestamp,"]"]}),!!_&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button.Confirm,{mt:1,color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Story",onClick:function(){function U(){return A("censor_channel_story_body",{ref:z.ref})}return U}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Author",onClick:function(){function U(){return A("censor_channel_story_author",{ref:z.ref})}return U}()})],4)]},z.ref)})||!O.censored&&(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"No feed messages found in channel."})]}):(0,e.createComponentVNode)(2,o.Section,{title:"Channel Not Found",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function z(){return D(N)}return z}(),children:"Back"}),children:"The channel you were looking for no longer exists."})},L={};L[k]=p,L[S]=v,L[N]=f,L[h]=C,L[s]=b,L[l]=g,L[u]=y,L[i]=B},83945:function(x,r,n){"use strict";r.__esModule=!0,r.NoticeBoard=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.NoticeBoard=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.notices;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:l.length?(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(u,i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,children:[u.isphoto&&(0,e.createComponentVNode)(2,t.Button,{icon:"image",content:"Look",onClick:function(){function c(){return h("look",{ref:u.ref})}return c}()})||u.ispaper&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"sticky-note",content:"Read",onClick:function(){function c(){return h("read",{ref:u.ref})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Write",onClick:function(){function c(){return h("write",{ref:u.ref})}return c}()})],4)||"Unknown Entity",(0,e.createComponentVNode)(2,t.Button,{icon:"minus-circle",content:"Remove",onClick:function(){function c(){return h("remove",{ref:u.ref})}return c}()})]},i)})}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No notices posted here."})})})})}return V}()},45835:function(x,r,n){"use strict";r.__esModule=!0,r.NtosAccessDecrypter=void 0;var e=n(58734),a=n(62188),t=n(11477),o=n(85418),m=n(11790),V=r.NtosAccessDecrypter=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.message,i=l.running,c=l.rate,d=l.factor,p=l.regions,v=function(){function C(b){for(var g="";g.length<b;)Math.random()>d?g+="0":g+="1";return g}return C}(),f=45;return(0,e.createComponentVNode)(2,t.NtosWindow,{width:600,height:600,theme:"syndicate",children:(0,e.createComponentVNode)(2,t.NtosWindow.Content,{children:u&&(0,e.createComponentVNode)(2,m.NoticeBox,{children:u})||i&&(0,e.createComponentVNode)(2,m.Section,{children:["Attempting to decrypt network access codes. Please wait. Rate:"," ",c," PHash/s",(0,e.createComponentVNode)(2,m.Box,{children:v(f)}),(0,e.createComponentVNode)(2,m.Box,{children:v(f)}),(0,e.createComponentVNode)(2,m.Box,{children:v(f)}),(0,e.createComponentVNode)(2,m.Box,{children:v(f)}),(0,e.createComponentVNode)(2,m.Box,{children:v(f)}),(0,e.createComponentVNode)(2,m.Button,{fluid:!0,icon:"ban",onClick:function(){function C(){return s("PRG_reset")}return C}(),children:"Abort"})]})||(0,e.createComponentVNode)(2,m.Section,{title:"Pick access code to decrypt",children:p.length&&(0,e.createComponentVNode)(2,o.IdentificationComputerRegions,{actName:"PRG_execute"})||(0,e.createComponentVNode)(2,m.Box,{children:"Please insert ID card."})})})})}return k}()},32974:function(x,r,n){"use strict";r.__esModule=!0,r.NtosArcade=void 0;var e=n(58734),a=n(37655),t=n(62188),o=n(11790),m=n(11477),V=r.NtosArcade=function(){function k(S,N){var h=(0,t.useBackend)(N),s=h.act,l=h.data;return(0,e.createComponentVNode)(2,m.NtosWindow,{width:450,height:350,children:(0,e.createComponentVNode)(2,m.NtosWindow.Content,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Outbomb Cuban Pete Ultra",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Grid,{children:[(0,e.createComponentVNode)(2,o.Grid.Column,{size:2,children:[(0,e.createComponentVNode)(2,o.Box,{m:1}),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Player Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:l.PlayerHitpoints,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[l.PlayerHitpoints,"HP"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Player Magic",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:l.PlayerMP,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[l.PlayerMP,"MP"]})})]}),(0,e.createComponentVNode)(2,o.Box,{my:1,mx:4}),(0,e.createComponentVNode)(2,o.Section,{backgroundColor:l.PauseState===1?"#1b3622":"#471915",children:l.Status})]}),(0,e.createComponentVNode)(2,o.Grid.Column,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{value:l.Hitpoints,minValue:0,maxValue:45,ranges:{good:[30,1/0],average:[5,30],bad:[-1/0,5]},children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:l.Hitpoints}),"HP"]}),(0,e.createComponentVNode)(2,o.Box,{m:1}),(0,e.createComponentVNode)(2,o.Section,{inline:!0,width:"156px",textAlign:"center",children:(0,e.createVNode)(1,"img",null,null,1,{src:(0,a.resolveAsset)(l.BossID)})})]})]}),(0,e.createComponentVNode)(2,o.Box,{my:1,mx:4}),(0,e.createComponentVNode)(2,o.Button,{icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",disabled:l.GameActive===0||l.PauseState===1,onClick:function(){function u(){return s("Attack")}return u}(),content:"Attack!"}),(0,e.createComponentVNode)(2,o.Button,{icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",disabled:l.GameActive===0||l.PauseState===1,onClick:function(){function u(){return s("Heal")}return u}(),content:"Heal!"}),(0,e.createComponentVNode)(2,o.Button,{icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",disabled:l.GameActive===0||l.PauseState===1,onClick:function(){function u(){return s("Recharge_Power")}return u}(),content:"Recharge!"})]}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{icon:"sync-alt",tooltip:"One more game couldn't hurt.",tooltipPosition:"top",disabled:l.GameActive===1,onClick:function(){function u(){return s("Start_Game")}return u}(),content:"Begin Game"}),(0,e.createComponentVNode)(2,o.Button,{icon:"ticket-alt",tooltip:"Claim at your local Arcade Computer for Prizes!",tooltipPosition:"top",disabled:l.GameActive===1,onClick:function(){function u(){return s("Dispense_Tickets")}return u}(),content:"Claim Tickets"})]}),(0,e.createComponentVNode)(2,o.Box,{color:l.TicketCount>=1?"good":"normal",children:["Earned Tickets: ",l.TicketCount]})]})})})}return k}()},95982:function(x,r,n){"use strict";r.__esModule=!0,r.NtosAtmosControl=void 0;var e=n(58734),a=n(11477),t=n(49907),o=r.NtosAtmosControl=function(){function m(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:870,height:708,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{children:(0,e.createComponentVNode)(2,t.AtmosControlContent)})})}return m}()},70824:function(x,r,n){"use strict";r.__esModule=!0,r.selectCameras=r.prevNextCamera=r.NtosCameraConsole=void 0;var e=n(58734),a=n(45445),t=n(75671),o=n(40946),m=n(62188),V=n(11790),k=n(11477),S=n(48902),N=r.prevNextCamera=function(){function l(u,i){var c,d;if(!i)return[];var p=u.findIndex(function(v){return v.name===i.name});return[(c=u[p-1])==null?void 0:c.name,(d=u[p+1])==null?void 0:d.name]}return l}(),h=r.selectCameras=function(){function l(u,i,c){i===void 0&&(i=""),c===void 0&&(c="");var d=(0,o.createSearch)(i,function(p){return p.name});return(0,t.flow)([(0,a.filter)(function(p){return p==null?void 0:p.name}),i&&(0,a.filter)(d),c&&(0,a.filter)(function(p){return p.networks.includes(c)}),(0,a.sortBy)(function(p){return p.name})])(u)}return l}(),s=r.NtosCameraConsole=function(){function l(u,i){var c=(0,m.useBackend)(i),d=c.act,p=c.data,v=p.mapRef,f=p.activeCamera,C=h(p.cameras),b=N(C,f),g=b[0],y=b[1];return(0,e.createComponentVNode)(2,k.NtosWindow,{width:870,height:708,resizable:!0,children:(0,e.createComponentVNode)(2,k.NtosWindow.Content,{children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,S.CameraConsoleContent),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),f&&f.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createTextVNode)("SEL:"),(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-left",disabled:!g,onClick:function(){function B(){return d("switch_camera",{name:g})}return B}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-right",disabled:!y,onClick:function(){function B(){return d("switch_camera",{name:y})}return B}()}),(0,e.createTextVNode)("| PAN:"),(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-left",onClick:function(){function B(){return d("pan",{dir:8})}return B}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-up",onClick:function(){function B(){return d("pan",{dir:1})}return B}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-right",onClick:function(){function B(){return d("pan",{dir:4})}return B}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-down",onClick:function(){function B(){return d("pan",{dir:2})}return B}()})],4),(0,e.createComponentVNode)(2,V.ByondUi,{className:"CameraConsole__map",params:{id:v,type:"map"}})],4)]})})}return l}()},30536:function(x,r,n){"use strict";r.__esModule=!0,r.NtosCommunicationsConsole=void 0;var e=n(58734),a=n(11477),t=n(29340),o=r.NtosCommunicationsConsole=function(){function m(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:400,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.CommunicationsConsoleContent)})})}return m}()},94821:function(x,r,n){"use strict";r.__esModule=!0,r.NtosConfiguration=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.NtosConfiguration=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.PC_device_theme,u=s.power_usage,i=s.battery_exists,c=s.battery,d=c===void 0?{}:c,p=s.disk_size,v=s.disk_used,f=s.hardware,C=f===void 0?[]:f;return(0,e.createComponentVNode)(2,o.NtosWindow,{theme:l,width:520,height:630,resizable:!0,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Supply",buttons:(0,e.createComponentVNode)(2,t.Box,{inline:!0,bold:!0,mr:1,children:["Power Draw: ",u,"W"]}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Battery Status",color:!i&&"average",children:i?(0,e.createComponentVNode)(2,t.ProgressBar,{value:d.charge,minValue:0,maxValue:d.max,ranges:{good:[d.max/2,1/0],average:[d.max/4,d.max/2],bad:[-1/0,d.max/4]},children:[d.charge," / ",d.max]}):"Not Available"})})}),(0,e.createComponentVNode)(2,t.Section,{title:"File System",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:v,minValue:0,maxValue:p,color:"good",children:[v," GQ / ",p," GQ"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Hardware Components",children:C.map(function(b){return(0,e.createComponentVNode)(2,t.Section,{title:b.name,level:2,buttons:(0,e.createFragment)([!b.critical&&(0,e.createComponentVNode)(2,t.Button.Checkbox,{content:"Enabled",checked:b.enabled,mr:1,onClick:function(){function g(){return h("PC_toggle_component",{name:b.name})}return g}()}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,bold:!0,mr:1,children:["Power Usage: ",b.powerusage,"W"]})],0),children:b.desc},b.name)})})]})})}return V}()},56722:function(x,r,n){"use strict";r.__esModule=!0,r.NtosCrewManifest=void 0;var e=n(58734),a=n(11477),t=n(68285),o=r.NtosCrewManifest=function(){function m(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:800,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{children:(0,e.createComponentVNode)(2,t.CrewManifestContent)})})}return m}()},9562:function(x,r,n){"use strict";r.__esModule=!0,r.NtosCrewMonitor=void 0;var e=n(58734),a=n(11477),t=n(59694),o=r.NtosCrewMonitor=function(){function m(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:800,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{children:(0,e.createComponentVNode)(2,t.CrewMonitorContent)})})}return m}()},20716:function(x,r,n){"use strict";r.__esModule=!0,r.NtosDigitalWarrant=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(45445),V=r.NtosDigitalWarrant=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.warrantname,p=c.warrantcharges,v=c.warrantauth,f=c.type,C=c.allwarrants,b=(0,e.createComponentVNode)(2,k);return v&&(b=(0,e.createComponentVNode)(2,N)),(0,e.createComponentVNode)(2,o.NtosWindow,{width:500,height:350,resizable:!0,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:b})})}return h}(),k=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.allwarrants;return(0,e.createComponentVNode)(2,t.Section,{title:"Warrants",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"plus",fluid:!0,onClick:function(){function p(){return i("addwarrant")}return p}(),children:"Create New Warrant"}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Arrest Warrants",children:(0,e.createComponentVNode)(2,S,{type:"arrest"})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Search Warrants",children:(0,e.createComponentVNode)(2,S,{type:"search"})})]})},S=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=s.type,p=c.allwarrants,v=(0,m.filter)(function(f){return f.arrestsearch===d})(p);return(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:d==="arrest"?"Name":"Location"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d==="arrest"?"Charges":"Reason"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Authorized By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"Edit"})]}),v.length&&v.map(function(f){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.warrantname}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.charges}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.auth}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function C(){return i("editwarrant",{id:f.id})}return C}()})})]},f.id)})||(0,e.createComponentVNode)(2,t.Table.Row,{children:(0,e.createComponentVNode)(2,t.Table.Cell,{colspan:"3",color:"bad",children:["No ",d," warrants found."]})})]})},N=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.warrantname,p=c.warrantcharges,v=c.warrantauth,f=c.type,C=f==="arrest",b=f==="arrest"?"Name":"Location",g=f==="arrest"?"Charges":"Reason";return(0,e.createComponentVNode)(2,t.Section,{title:C?"Editing Arrest Warrant":"Editing Search Warrant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"save",onClick:function(){function y(){return i("savewarrant")}return y}(),children:"Save"}),(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"trash",onClick:function(){function y(){return i("deletewarrant")}return y}(),children:"Delete"}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",onClick:function(){function y(){return i("back")}return y}(),children:"Back"})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:b,buttons:C&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"search",onClick:function(){function y(){return i("editwarrantname")}return y}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function y(){return i("editwarrantnamecustom")}return y}()})],4)||(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function y(){return i("editwarrantnamecustom")}return y}()}),children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:g,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function y(){return i("editwarrantcharges")}return y}()}),children:p}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorized By",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"balance-scale",onClick:function(){function y(){return i("editwarrantauth")}return y}()}),children:v})]})})}},14559:function(x,r,n){"use strict";r.__esModule=!0,r.NtosEmailAdministration=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(42185),V=r.NtosEmailAdministration=function(){function s(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.error,v=d.cur_title,f=d.current_account,C=(0,e.createComponentVNode)(2,k);return p?C=(0,e.createComponentVNode)(2,S):v?C=(0,e.createComponentVNode)(2,N):f&&(C=(0,e.createComponentVNode)(2,h)),(0,e.createComponentVNode)(2,o.NtosWindow,{width:600,height:450,resizable:!0,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:C})})}return s}(),k=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.accounts;return(0,e.createComponentVNode)(2,t.Section,{title:"Welcome to the NTNet Email Administration System",children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,mb:1,children:"SECURE SYSTEM - Have your identification ready"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"plus",onClick:function(){function v(){return c("newaccount")}return v}(),children:"Create New Account"}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,mt:1,mb:1,children:"Select account to administrate"}),p.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eye",onClick:function(){function f(){return c("viewaccount",{viewaccount:v.uid})}return f}(),children:v.login},v.uid)})]})},S=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.error;return(0,e.createComponentVNode)(2,t.Section,{title:"Message",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"undo",onClick:function(){function v(){return c("back")}return v}(),children:"Back"}),children:p})},N=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,m.NtosEmailClientViewMessage,{administrator:!0})})},h=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.error,v=d.msg_title,f=d.msg_body,C=d.msg_timestamp,b=d.msg_source,g=d.current_account,y=d.cur_suspended,B=d.messages,L=d.accounts;return(0,e.createComponentVNode)(2,t.Section,{title:"Viewing "+g+" in admin mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"undo",onClick:function(){function I(){return c("back")}return I}(),children:"Back"}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Status",children:(0,e.createComponentVNode)(2,t.Button,{color:y?"bad":"",icon:"ban",tooltip:(y?"Uns":"S")+"uspend Account?",onClick:function(){function I(){return c("ban")}return I}(),children:y?"Suspended":"Normal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",onClick:function(){function I(){return c("changepass")}return I}(),children:"Change Password"})})]}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Messages",children:B.length&&(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:"Source"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Received at"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),B.map(function(I){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:I.source}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:I.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:I.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"eye",onClick:function(){function w(){return c("viewmail",{viewmail:I.uid})}return w}(),children:"View"})})]},I.uid)})]})||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No messages found in selected account."})})]})}},42185:function(x,r,n){"use strict";r.__esModule=!0,r.NtosEmailClientViewMessage=r.NtosEmailClient=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(5339),V=r.NtosEmailClient=function(){function c(d,p){var v=(0,a.useBackend)(p),f=v.act,C=v.data,b=C.PC_device_theme,g=C.error,y=C.downloading,B=C.current_account,L=(0,e.createComponentVNode)(2,i);return g?L=(0,e.createComponentVNode)(2,u,{error:g}):y?L=(0,e.createComponentVNode)(2,k):B&&(L=(0,e.createComponentVNode)(2,S)),(0,e.createComponentVNode)(2,o.NtosWindow,{resizable:!0,theme:b,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:L})})}return c}(),k=function(d,p){var v=(0,a.useBackend)(p),f=v.act,C=v.data,b=C.down_filename,g=C.down_progress,y=C.down_size,B=C.down_speed;return(0,e.createComponentVNode)(2,t.Section,{title:"Downloading...",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"File",children:[b," (",y," GQ)"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Speed",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:B})," GQ/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Progress",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:g,maxValue:y,children:[g,"/",y," (",(0,m.round)(g/y*100,1),"%)"]})})]})})},S=function(d,p){var v=(0,a.useBackend)(p),f=v.act,C=v.data,b=C.current_account,g=C.addressbook,y=C.new_message,B=C.cur_title,L=(0,e.createComponentVNode)(2,N);return g?L=(0,e.createComponentVNode)(2,s):y?L=(0,e.createComponentVNode)(2,l):B&&(L=(0,e.createComponentVNode)(2,h)),(0,e.createComponentVNode)(2,t.Section,{title:"Logged in as: "+b,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"plus",tooltip:"New Message",tooltipPosition:"left",onClick:function(){function I(){return f("new_message")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cogs",tooltip:"Change Password",tooltipPosition:"left",onClick:function(){function I(){return f("changepassword")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",tooltip:"Log Out",tooltipPosition:"left",onClick:function(){function I(){return f("logout")}return I}()})],4),children:L})},N=function(d,p){var v=(0,a.useBackend)(p),f=v.act,C=v.data,b=C.current_account,g=C.folder,y=C.messagecount,B=C.messages;return(0,e.createComponentVNode)(2,t.Section,{level:2,noTopPadding:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g==="Inbox",onClick:function(){function L(){return f("set_folder",{set_folder:"Inbox"})}return L}(),children:"Inbox"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g==="Spam",onClick:function(){function L(){return f("set_folder",{set_folder:"Spam"})}return L}(),children:"Spam"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g==="Deleted",onClick:function(){function L(){return f("set_folder",{set_folder:"Deleted"})}return L}(),children:"Deleted"})]}),y&&(0,e.createComponentVNode)(2,t.Section,{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:"Source"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Received At"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),B.map(function(L){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.source}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",onClick:function(){function I(){return f("view",{view:L.uid})}return I}(),tooltip:"View"}),(0,e.createComponentVNode)(2,t.Button,{icon:"share",onClick:function(){function I(){return f("reply",{reply:L.uid})}return I}(),tooltip:"Reply"}),(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"trash",onClick:function(){function I(){return f("delete",{delete:L.uid})}return I}(),tooltip:"Delete"})]})]},L.timestamp+L.title)})]})})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:["No emails found in ",g,"."]})]})},h=r.NtosEmailClientViewMessage=function(){function c(d,p){var v=(0,a.useBackend)(p),f=v.act,C=v.data,b=d.administrator,g=C.cur_title,y=C.cur_source,B=C.cur_timestamp,L=C.cur_body,I=C.cur_hasattachment,w=C.cur_attachment_filename,T=C.cur_attachment_size,M=C.cur_uid;return(0,e.createComponentVNode)(2,t.Section,{title:g,buttons:b?(0,e.createComponentVNode)(2,t.Button,{icon:"times",onClick:function(){function A(){return f("back")}return A}()}):(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"share",tooltip:"Reply",tooltipPosition:"left",onClick:function(){function A(){return f("reply",{reply:M})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"trash",tooltip:"Delete",tooltipPosition:"left",onClick:function(){function A(){return f("delete",{delete:M})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"save",tooltip:"Save To Disk",tooltipPosition:"left",onClick:function(){function A(){return f("save",{save:M})}return A}()}),I&&(0,e.createComponentVNode)(2,t.Button,{icon:"paperclip",tooltip:"Save Attachment",tooltipPosition:"left",onClick:function(){function A(){return f("downloadattachment")}return A}()})||null,(0,e.createComponentVNode)(2,t.Button,{icon:"times",tooltip:"Close",tooltipPosition:"left",onClick:function(){function A(){return f("cancel",{cancel:M})}return A}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"From",children:y}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"At",children:B}),I&&!b&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",color:"average",children:[w," (",T,"GQ)"]})||null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",verticalAlign:"top",children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:L}})})})]})})}return c}(),s=function(d,p){var v=(0,a.useBackend)(p),f=v.act,C=v.data,b=C.accounts;return(0,e.createComponentVNode)(2,t.Section,{title:"Address Book",level:2,buttons:(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"times",onClick:function(){function g(){return f("set_recipient",{set_recipient:null})}return g}()}),children:b.map(function(g){return(0,e.createComponentVNode)(2,t.Button,{content:g.login,fluid:!0,onClick:function(){function y(){return f("set_recipient",{set_recipient:g.login})}return y}()},g.login)})})},l=function(d,p){var v=(0,a.useBackend)(p),f=v.act,C=v.data,b=C.current_account,g=C.msg_title,y=C.msg_recipient,B=C.msg_body,L=C.msg_hasattachment,I=C.msg_attachment_filename,w=C.msg_attachment_size;return(0,e.createComponentVNode)(2,t.Section,{title:"New Message",level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"share",onClick:function(){function T(){return f("send")}return T}(),children:"Send Message"}),(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"times",onClick:function(){function T(){return f("cancel")}return T}()})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,value:g,onInput:function(){function T(M,A){return f("edit_title",{val:A})}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",verticalAlign:"top",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,value:y,onInput:function(){function T(M,A){return f("edit_recipient",{val:A})}return T}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"address-book",onClick:function(){function T(){return f("addressbook")}return T}(),tooltip:"Find Receipients",tooltipPosition:"left"})})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachments",buttons:L&&(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"times",onClick:function(){function T(){return f("remove_attachment")}return T}(),children:"Remove Attachment"})||(0,e.createComponentVNode)(2,t.Button,{icon:"plus",onClick:function(){function T(){return f("addattachment")}return T}(),children:"Add Attachment"}),children:L&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:[I," (",w,"GQ)"]})||null}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",verticalAlign:"top",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Section,{width:"99%",inline:!0,children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:B}})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{verticalAlign:"top",onClick:function(){function T(){return f("edit_body")}return T}(),icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})})]})})},u=function(d,p){var v=(0,a.useBackend)(p),f=v.act,C=d.error;return(0,e.createComponentVNode)(2,t.Section,{title:"Notification",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Return",onClick:function(){function b(){return f("reset")}return b}()}),children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:C})})},i=function(d,p){var v=(0,a.useBackend)(p),f=v.act,C=v.data,b=C.stored_login,g=C.stored_password;return(0,e.createComponentVNode)(2,t.Section,{title:"Please Log In",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Email address",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,value:b,onInput:function(){function y(B,L){return f("edit_login",{val:L})}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Password",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,value:g,onInput:function(){function y(B,L){return f("edit_password",{val:L})}return y}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",onClick:function(){function y(){return f("login")}return y}(),children:"Log In"})]})}},96365:function(x,r,n){"use strict";r.__esModule=!0,r.NtosFileManager=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.NtosFileManager=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.PC_device_theme,i=l.usbconnected,c=l.filename,d=l.filedata,p=l.error,v=l.files,f=v===void 0?[]:v,C=l.usbfiles,b=C===void 0?[]:C;return(0,e.createComponentVNode)(2,o.NtosWindow,{resizable:!0,theme:u,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:[c&&(0,e.createComponentVNode)(2,t.Section,{title:"Viewing File "+c,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Edit",onClick:function(){function g(){return s("PRG_edit")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",onClick:function(){function g(){return s("PRG_printfile")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Close",onClick:function(){function g(){return s("PRG_closefile")}return g}()})],4),children:d&&(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:d}})})||(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,V,{files:f,usbconnected:i,onUpload:function(){function g(y){return s("PRG_copytousb",{uid:y})}return g}(),onDelete:function(){function g(y){return s("PRG_deletefile",{uid:y})}return g}(),onOpen:function(){function g(y){return s("PRG_openfile",{uid:y})}return g}(),onRename:function(){function g(y,B){return s("PRG_rename",{uid:y,new_name:B})}return g}(),onDuplicate:function(){function g(y){return s("PRG_clone",{uid:y})}return g}()})}),i&&(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",children:(0,e.createComponentVNode)(2,V,{usbmode:!0,files:b,usbconnected:i,onUpload:function(){function g(y){return s("PRG_copyfromusb",{uid:y})}return g}(),onDelete:function(){function g(y){return s("PRG_deletefile",{uid:y})}return g}(),onOpen:function(){function g(y){return s("PRG_openfile",{uid:y})}return g}(),onRename:function(){function g(y,B){return s("PRG_rename",{uid:y,new_name:B})}return g}(),onDuplicate:function(){function g(y){return s("PRG_clone",{uid:y})}return g}()})})||null,(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"plus",onClick:function(){function g(){return s("PRG_newtextfile")}return g}(),children:"New Text File"})})],0),p&&(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",position:"fixed",bottom:"5px",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{bottom:"0",left:"0",icon:"ban",onClick:function(){function g(){return s("PRG_clearerror")}return g}()})})}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:!0,children:p})})]})]})})}return k}(),V=function(S){var N=S.files,h=N===void 0?[]:N,s=S.usbconnected,l=S.usbmode,u=S.onUpload,i=S.onDelete,c=S.onRename,d=S.onOpen;return(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:"File"}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"Size"})]}),h.map(function(p){return(0,e.createComponentVNode)(2,t.Table.Row,{className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.undeletable?p.name:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Input,{width:"80%",content:p.name,currentValue:p.name,tooltip:"Rename",onCommit:function(){function v(f,C){return c(p.uid,C)}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Open",onClick:function(){function v(){return d(p.uid)}return v}()})],4)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.type}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.size}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:!p.undeletable&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",confirmIcon:"times",confirmContent:"",tooltip:"Delete",onClick:function(){function v(){return i(p.uid)}return v}()}),!!s&&(l?(0,e.createComponentVNode)(2,t.Button,{icon:"download",tooltip:"Download",onClick:function(){function v(){return u(p.uid)}return v}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"upload",tooltip:"Upload",onClick:function(){function v(){return u(p.uid)}return v}()}))],0)})]},p.name)})]})}},39032:function(x,r,n){"use strict";r.__esModule=!0,r.NtosIdentificationComputer=void 0;var e=n(58734),a=n(11477),t=n(85418),o=r.NtosIdentificationComputer=function(){function m(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:600,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.IdentificationComputerContent,{ntos:!0})})})}return m}()},41448:function(x,r,n){"use strict";r.__esModule=!0,r.NtosMain=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m={compconfig:"cog",ntndownloader:"download",filemanager:"folder",smmonitor:"radiation",alarmmonitor:"bell",cardmod:"id-card",arcade:"gamepad",ntnrc_client:"comment-alt",nttransfer:"exchange-alt",powermonitor:"plug",job_manage:"address-book",crewmani:"clipboard-list",robocontrol:"robot",atmosscan:"thermometer-half",shipping:"tags"},V=r.NtosMain=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.device_theme,i=l.programs,c=i===void 0?[]:i,d=l.has_light,p=l.light_on,v=l.comp_light_color,f=l.removable_media,C=f===void 0?[]:f,b=l.login,g=b===void 0?[]:b;return(0,e.createComponentVNode)(2,o.NtosWindow,{title:u==="syndicate"&&"Syndix Main Menu"||"NtOS Main Menu",theme:u,width:400,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:[!!d&&(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"144px",icon:"lightbulb",selected:p,onClick:function(){function y(){return s("PC_toggle_light")}return y}(),children:["Flashlight: ",p?"ON":"OFF"]}),(0,e.createComponentVNode)(2,t.Button,{ml:1,onClick:function(){function y(){return s("PC_light_color")}return y}(),children:["Color:",(0,e.createComponentVNode)(2,t.ColorBox,{ml:1,color:v})]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"User Login",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject ID",disabled:!g.IDName,onClick:function(){function y(){return s("PC_Eject_Disk",{name:"ID"})}return y}()}),children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:["ID Name: ",g.IDName]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:["Assignment: ",g.IDJob]})]})}),!!C.length&&(0,e.createComponentVNode)(2,t.Section,{title:"Media Eject",children:(0,e.createComponentVNode)(2,t.Table,{children:C.map(function(y){return(0,e.createComponentVNode)(2,t.Table.Row,{children:(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",icon:"eject",content:y,onClick:function(){function B(){return s("PC_Eject_Disk",{name:y})}return B}()})})},y)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Programs",children:(0,e.createComponentVNode)(2,t.Table,{children:c.map(function(y){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",icon:m[y.name]||"window-maximize-o",content:y.desc,onClick:function(){function B(){return s("PC_runprogram",{name:y.name})}return B}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,width:"18px",children:!!y.running&&(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"times",tooltip:"Close program",tooltipPosition:"left",onClick:function(){function B(){return s("PC_killprogram",{name:y.name})}return B}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,width:"18px",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",tooltip:"Set Autorun",tooltipPosition:"left",selected:y.autorun,onClick:function(){function B(){return s("PC_setautorun",{name:y.name})}return B}(),children:"AR"})})]},y.name)})})})]})})}return k}()},28774:function(x,r,n){"use strict";r.__esModule=!0,r.NtosNetChat=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.NtosNetChat=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.can_admin,u=s.adminmode,i=s.authed,c=s.username,d=s.active_channel,p=s.is_operator,v=s.all_channels,f=v===void 0?[]:v,C=s.clients,b=C===void 0?[]:C,g=s.messages,y=g===void 0?[]:g,B=d!==null,L=i||u;return(0,e.createComponentVNode)(2,o.NtosWindow,{width:900,height:675,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{children:(0,e.createComponentVNode)(2,t.Section,{height:"600px",children:(0,e.createComponentVNode)(2,t.Table,{height:"580px",children:(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{verticalAlign:"top",style:{width:"200px"},children:[(0,e.createComponentVNode)(2,t.Box,{height:"560px",overflowY:"scroll",children:[(0,e.createComponentVNode)(2,t.Button.Input,{fluid:!0,content:"New Channel...",onCommit:function(){function I(w,T){return h("PRG_newchannel",{new_channel_name:T})}return I}()}),f.map(function(I){return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:I.chan,selected:I.id===d,color:"transparent",onClick:function(){function w(){return h("PRG_joinchannel",{id:I.id})}return w}()},I.chan)})]}),(0,e.createComponentVNode)(2,t.Button.Input,{fluid:!0,mt:1,content:c+"...",currentValue:c,onCommit:function(){function I(w,T){return h("PRG_changename",{new_name:T})}return I}()}),!!l&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,bold:!0,content:"ADMIN MODE: "+(u?"ON":"OFF"),color:u?"bad":"good",onClick:function(){function I(){return h("PRG_toggleadmin")}return I}()})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Box,{height:"560px",overflowY:"scroll",children:B&&(L?y.map(function(I){return(0,e.createComponentVNode)(2,t.Box,{children:I.msg},I.msg)}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle",mt:4,fontSize:"40px"}),(0,e.createComponentVNode)(2,t.Box,{mt:1,bold:!0,fontSize:"18px",children:"THIS CHANNEL IS PASSWORD PROTECTED"}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:"INPUT PASSWORD TO ACCESS"})]}))}),(0,e.createComponentVNode)(2,t.Input,{fluid:!0,selfClear:!0,mt:1,onEnter:function(){function I(w,T){return h("PRG_speak",{message:T})}return I}()})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{verticalAlign:"top",style:{width:"150px"},children:[(0,e.createComponentVNode)(2,t.Box,{height:"465px",overflowY:"scroll",children:b.map(function(I){return(0,e.createComponentVNode)(2,t.Box,{children:I.name},I.name)})}),B&&L&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Input,{fluid:!0,content:"Save log...",defaultValue:"new_log",onCommit:function(){function I(w,T){return h("PRG_savelog",{log_name:T})}return I}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{fluid:!0,content:"Leave Channel",onClick:function(){function I(){return h("PRG_leavechannel")}return I}()})],4),!!p&&i&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{fluid:!0,content:"Delete Channel",onClick:function(){function I(){return h("PRG_deletechannel")}return I}()}),(0,e.createComponentVNode)(2,t.Button.Input,{fluid:!0,content:"Rename Channel...",onCommit:function(){function I(w,T){return h("PRG_renamechannel",{new_name:T})}return I}()}),(0,e.createComponentVNode)(2,t.Button.Input,{fluid:!0,content:"Set Password...",onCommit:function(){function I(w,T){return h("PRG_setpassword",{new_password:T})}return I}()})],4)]})]})})})})})}return V}()},73924:function(x,r,n){"use strict";r.__esModule=!0,r.NtosNetDosContent=r.NtosNetDos=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.NtosNetDos=function(){function k(){return(0,e.createComponentVNode)(2,o.NtosWindow,{width:400,height:250,theme:"syndicate",children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{children:(0,e.createComponentVNode)(2,V)})})}return k}(),V=r.NtosNetDosContent=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.relays,i=u===void 0?[]:u,c=l.focus,d=l.target,p=l.speed,v=l.overload,f=l.capacity,C=l.error;if(C)return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.NoticeBox,{children:C}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Reset",textAlign:"center",onClick:function(){function y(){return s("PRG_reset")}return y}()})],4);var b=function(){function y(B){for(var L="",I=v/f;L.length<B;)Math.random()>I?L+="0":L+="1";return L}return y}(),g=45;return d?(0,e.createComponentVNode)(2,t.Section,{fontFamily:"monospace",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Box,{children:["CURRENT SPEED: ",p," GQ/s"]}),(0,e.createComponentVNode)(2,t.Box,{children:b(g)}),(0,e.createComponentVNode)(2,t.Box,{children:b(g)}),(0,e.createComponentVNode)(2,t.Box,{children:b(g)}),(0,e.createComponentVNode)(2,t.Box,{children:b(g)}),(0,e.createComponentVNode)(2,t.Box,{children:b(g)})]}):(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:i.map(function(y){return(0,e.createComponentVNode)(2,t.Button,{content:y.id,selected:c===y.id,onClick:function(){function B(){return s("PRG_target_relay",{targid:y.id})}return B}()},y.id)})})}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,bold:!0,content:"EXECUTE",color:"bad",textAlign:"center",disabled:!c,mt:1,onClick:function(){function y(){return s("PRG_execute")}return y}()})]})}return k}()},72973:function(x,r,n){"use strict";r.__esModule=!0,r.NtosNetDownloader=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(11477),V=r.NtosNetDownloader=function(){function S(N,h){var s=(0,t.useBackend)(h),l=s.act,u=s.data,i=u.PC_device_theme,c=u.disk_size,d=u.disk_used,p=u.downloadable_programs,v=p===void 0?[]:p,f=u.error,C=u.hacked_programs,b=C===void 0?[]:C,g=u.hackedavailable;return(0,e.createComponentVNode)(2,m.NtosWindow,{theme:i,width:480,height:735,resizable:!0,children:(0,e.createComponentVNode)(2,m.NtosWindow.Content,{scrollable:!0,children:[!!f&&(0,e.createComponentVNode)(2,o.NoticeBox,{children:[(0,e.createComponentVNode)(2,o.Box,{mb:1,children:f}),(0,e.createComponentVNode)(2,o.Button,{content:"Reset",onClick:function(){function y(){return l("PRG_reseterror")}return y}()})]}),(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Disk usage",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:d,minValue:0,maxValue:c,children:d+" GQ / "+c+" GQ"})})})}),(0,e.createComponentVNode)(2,o.Section,{children:v.map(function(y){return(0,e.createComponentVNode)(2,k,{program:y},y.filename)})}),!!g&&(0,e.createComponentVNode)(2,o.Section,{title:"UNKNOWN Software Repository",children:[(0,e.createComponentVNode)(2,o.NoticeBox,{mb:1,children:"Please note that Nanotrasen does not recommend download of software from non-official servers."}),b.map(function(y){return(0,e.createComponentVNode)(2,k,{program:y},y.filename)})]})]})})}return S}(),k=function(N,h){var s=N.program,l=(0,t.useBackend)(h),u=l.act,i=l.data,c=i.disk_size,d=i.disk_used,p=i.downloadcompletion,v=i.downloading,f=i.downloadname,C=i.downloadsize,b=i.downloadspeed,g=i.downloads_queue,y=c-d;return(0,e.createComponentVNode)(2,o.Box,{mb:3,children:[(0,e.createComponentVNode)(2,o.Flex,{align:"baseline",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{bold:!0,grow:1,children:s.filedesc}),(0,e.createComponentVNode)(2,o.Flex.Item,{color:"label",nowrap:!0,children:[s.size," GQ"]}),(0,e.createComponentVNode)(2,o.Flex.Item,{ml:2,width:"94px",textAlign:"center",children:s.filename===f&&(0,e.createComponentVNode)(2,o.ProgressBar,{color:"green",minValue:0,maxValue:C,value:p,children:[(0,a.round)(p/C*100,1),"% (",b,"GQ/s)"]})||g.indexOf(s.filename)!==-1&&(0,e.createComponentVNode)(2,o.Button,{icon:"ban",color:"bad",onClick:function(){function B(){return u("PRG_removequeued",{filename:s.filename})}return B}(),children:"Queued..."})||(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"download",content:"Download",disabled:s.size>y,onClick:function(){function B(){return u("PRG_downloadfile",{filename:s.filename})}return B}()})})]}),s.compatibility!=="Compatible"&&(0,e.createComponentVNode)(2,o.Box,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,e.createComponentVNode)(2,o.Icon,{mx:1,color:"red",name:"times"}),"Incompatible!"]}),s.size>y&&(0,e.createComponentVNode)(2,o.Box,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,e.createComponentVNode)(2,o.Icon,{mx:1,color:"red",name:"times"}),"Not enough disk space!"]}),(0,e.createComponentVNode)(2,o.Box,{mt:1,italic:!0,color:"label",fontSize:"12px",children:s.fileinfo})]})}},96255:function(x,r,n){"use strict";r.__esModule=!0,r.NtosNetMonitor=void 0;var e=n(58734),a=n(11790),t=n(62188),o=n(11477),m=r.NtosNetMonitor=function(){function V(k,S){var N=(0,t.useBackend)(S),h=N.act,s=N.data,l=s.ntnetrelays,u=s.ntnetstatus,i=s.config_softwaredownload,c=s.config_peertopeer,d=s.config_communication,p=s.config_systemcontrol,v=s.idsalarm,f=s.idsstatus,C=s.ntnetmaxlogs,b=s.maxlogs,g=s.minlogs,y=s.banned_nids,B=s.ntnetlogs,L=B===void 0?[]:B;return(0,e.createComponentVNode)(2,o.NtosWindow,{resizable:!0,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,a.NoticeBox,{children:"WARNING: Disabling wireless transmitters when using a wireless device may prevent you from reenabling them!"}),(0,e.createComponentVNode)(2,a.Section,{title:"Wireless Connectivity",buttons:(0,e.createComponentVNode)(2,a.Button.Confirm,{icon:u?"power-off":"times",content:u?"ENABLED":"DISABLED",selected:u,onClick:function(){function I(){return h("toggleWireless")}return I}()}),children:l?(0,e.createComponentVNode)(2,a.LabeledList,{children:(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Active NTNet Relays",children:l})}):"No Relays Connected"}),(0,e.createComponentVNode)(2,a.Section,{title:"Firewall Configuration",children:(0,e.createComponentVNode)(2,a.LabeledList,{children:[(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Software Downloads",buttons:(0,e.createComponentVNode)(2,a.Button,{icon:i?"power-off":"times",content:i?"ENABLED":"DISABLED",selected:i,onClick:function(){function I(){return h("toggle_function",{id:"1"})}return I}()})}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Peer to Peer Traffic",buttons:(0,e.createComponentVNode)(2,a.Button,{icon:c?"power-off":"times",content:c?"ENABLED":"DISABLED",selected:c,onClick:function(){function I(){return h("toggle_function",{id:"2"})}return I}()})}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Communication Systems",buttons:(0,e.createComponentVNode)(2,a.Button,{icon:d?"power-off":"times",content:d?"ENABLED":"DISABLED",selected:d,onClick:function(){function I(){return h("toggle_function",{id:"3"})}return I}()})}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Remote System Control",buttons:(0,e.createComponentVNode)(2,a.Button,{icon:p?"power-off":"times",content:p?"ENABLED":"DISABLED",selected:p,onClick:function(){function I(){return h("toggle_function",{id:"4"})}return I}()})})]})}),(0,e.createComponentVNode)(2,a.Section,{title:"Security Systems",children:[!!v&&(0,e.createFragment)([(0,e.createComponentVNode)(2,a.NoticeBox,{children:"NETWORK INCURSION DETECTED"}),(0,e.createComponentVNode)(2,a.Box,{italics:!0,children:"Abnormal activity has been detected in the network. Check system logs for more information"})],4),(0,e.createComponentVNode)(2,a.LabeledList,{children:[(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Banned NIDs",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Button,{icon:"ban",onClick:function(){function I(){return h("ban_nid")}return I}(),children:"Ban NID"}),(0,e.createComponentVNode)(2,a.Button,{icon:"balance-scale",onClick:function(){function I(){return h("unban_nid")}return I}(),children:"Unban NID"})],4),children:y.join(", ")||"None"}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"IDS Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Button,{icon:f?"power-off":"times",content:f?"ENABLED":"DISABLED",selected:f,onClick:function(){function I(){return h("toggleIDS")}return I}()}),(0,e.createComponentVNode)(2,a.Button,{icon:"sync",content:"Reset",color:"bad",onClick:function(){function I(){return h("resetIDS")}return I}()})],4)}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Max Log Count",buttons:(0,e.createComponentVNode)(2,a.NumberInput,{value:C,minValue:g,maxValue:b,width:"39px",onChange:function(){function I(w,T){return h("updatemaxlogs",{new_number:T})}return I}()})})]}),(0,e.createComponentVNode)(2,a.Section,{title:"System Log",level:2,buttons:(0,e.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",content:"Clear Logs",onClick:function(){function I(){return h("purgelogs")}return I}()}),children:L.map(function(I){return(0,e.createComponentVNode)(2,a.Box,{className:"candystripe",children:I.entry},I.entry)})})]})]})})}return V}()},47198:function(x,r,n){"use strict";r.__esModule=!0,r.NtosNetTransfer=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.NtosNetTransfer=function(){function s(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.error,v=d.downloading,f=d.uploading,C=d.upload_filelist,b=(0,e.createComponentVNode)(2,h);return p?b=(0,e.createComponentVNode)(2,V):v?b=(0,e.createComponentVNode)(2,k):f?b=(0,e.createComponentVNode)(2,S):C.length&&(b=(0,e.createComponentVNode)(2,N)),(0,e.createComponentVNode)(2,o.NtosWindow,{width:575,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:b})})}return s}(),V=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.error;return(0,e.createComponentVNode)(2,t.Section,{title:"An error has occured during operation.",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"undo",onClick:function(){function v(){return c("PRG_reset")}return v}(),children:"Reset"}),children:["Additional Information: ",p]})},k=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.download_name,v=d.download_progress,f=d.download_size,C=d.download_netspeed;return(0,e.createComponentVNode)(2,t.Section,{title:"Download in progress",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Downloaded File",children:p}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Progress",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:v,maxValue:f,children:[v," / ",f," GQ"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer Speed",children:[C," GQ/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:(0,e.createComponentVNode)(2,t.Button,{icon:"ban",onClick:function(){function b(){return c("PRG_reset")}return b}(),children:"Cancel Download"})})]})})},S=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.upload_clients,v=d.upload_filename,f=d.upload_haspassword;return(0,e.createComponentVNode)(2,t.Section,{title:"Server enabled",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Clients Connected",children:p}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Provided file",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Server Password",children:f?"Enabled":"Disabled"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Commands",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"lock",onClick:function(){function C(){return c("PRG_setpassword")}return C}(),children:"Set Password"}),(0,e.createComponentVNode)(2,t.Button,{icon:"ban",onClick:function(){function C(){return c("PRG_reset")}return C}(),children:"Cancel Upload"})]})]})})},N=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.upload_filelist;return(0,e.createComponentVNode)(2,t.Section,{title:"File transfer server ready.",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"undo",onClick:function(){function v(){return c("PRG_reset")}return v}(),children:"Cancel"}),children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"lock",onClick:function(){function v(){return c("PRG_setpassword")}return v}(),children:"Set Password"}),(0,e.createComponentVNode)(2,t.Section,{title:"Pick file to serve.",level:2,children:p.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"upload",onClick:function(){function f(){return c("PRG_uploadfile",{uid:v.uid})}return f}(),children:[v.filename," (",v.size,"GQ)"]},v.uid)})})]})},h=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.servers;return(0,e.createComponentVNode)(2,t.Section,{title:"Available Files",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"upload",onClick:function(){function v(){return c("PRG_uploadmenu")}return v}(),children:"Send File"}),children:p.length&&(0,e.createComponentVNode)(2,t.LabeledList,{children:p.map(function(v){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:v.uid,children:[!!v.haspassword&&(0,e.createComponentVNode)(2,t.Icon,{name:"lock",mr:1}),v.filename,"\xA0 (",v.size,"GQ)\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"download",onClick:function(){function f(){return c("PRG_downloadfile",{uid:v.uid})}return f}(),children:"Download"})]},v.uid)})})||(0,e.createComponentVNode)(2,t.Box,{children:"No upload servers found."})})}},75627:function(x,r,n){"use strict";r.__esModule=!0,r.NtosNewsBrowser=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(37655),V=r.NtosNewsBrowser=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.article,p=c.download,v=c.message,f=(0,e.createComponentVNode)(2,S);return d?f=(0,e.createComponentVNode)(2,k):p&&(f=(0,e.createComponentVNode)(2,N)),(0,e.createComponentVNode)(2,o.NtosWindow,{width:575,height:750,resizable:!0,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:[!!v&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:[v," ",(0,e.createComponentVNode)(2,t.Button,{icon:"times",onClick:function(){function C(){return i("PRG_clearmessage")}return C}()})]}),f]})})}return h}(),k=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.article;if(!d)return(0,e.createComponentVNode)(2,t.Section,{children:"Error: Article not found."});var p=d.title,v=d.cover,f=d.content;return(0,e.createComponentVNode)(2,t.Section,{title:"Viewing: "+p,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"save",onClick:function(){function C(){return i("PRG_savearticle")}return C}(),children:"Save"}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",onClick:function(){function C(){return i("PRG_reset")}return C}(),children:"Close"})],4),children:[!!v&&(0,e.createVNode)(1,"img",null,null,1,{src:(0,m.resolveAsset)(v)}),(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:f}})]})},S=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.showing_archived,p=c.all_articles;return(0,e.createComponentVNode)(2,t.Section,{title:"Articles List",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{onClick:function(){function v(){return i("PRG_toggle_archived")}return v}(),checked:d,children:"Show Archived"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:p.length&&p.map(function(v){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:v.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"download",onClick:function(){function f(){return i("PRG_openarticle",{uid:v.uid})}return f}()}),children:[v.size," GQ"]},v.uid)})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Error",children:"There appear to be no outstanding news articles on NTNet today."})})})},N=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.download,p=d.download_progress,v=d.download_maxprogress,f=d.download_rate;return(0,e.createComponentVNode)(2,t.Section,{title:"Downloading...",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Progress",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",minValue:0,value:p,maxValue:v,children:[p," / ",v," GQ"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Download Speed",children:[f," GQ/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:(0,e.createComponentVNode)(2,t.Button,{icon:"ban",fluid:!0,onClick:function(){function C(){return i("PRG_reset")}return C}(),children:"Abort Download"})})]})})}},84804:function(x,r,n){"use strict";r.__esModule=!0,r.NtosOvermapNavigation=void 0;var e=n(58734),a=n(11477),t=n(85513),o=r.NtosOvermapNavigation=function(){function m(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:380,height:530,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.OvermapNavigationContent)})})}return m}()},91142:function(x,r,n){"use strict";r.__esModule=!0,r.NtosPowerMonitor=void 0;var e=n(58734),a=n(11477),t=n(8694),o=r.NtosPowerMonitor=function(){function m(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:550,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.PowerMonitorContent)})})}return m}()},95538:function(x,r,n){"use strict";r.__esModule=!0,r.NtosRCON=void 0;var e=n(58734),a=n(11477),t=n(23613),o=r.NtosRCON=function(){function m(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:630,height:440,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.RCONContent)})})}return m}()},23754:function(x,r,n){"use strict";r.__esModule=!0,r.NtosRevelation=void 0;var e=n(58734),a=n(11790),t=n(62188),o=n(11477),m=r.NtosRevelation=function(){function V(k,S){var N=(0,t.useBackend)(S),h=N.act,s=N.data,l=s.armed;return(0,e.createComponentVNode)(2,o.NtosWindow,{width:400,height:250,theme:"syndicate",children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{children:(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Button.Input,{fluid:!0,content:"Obfuscate Name...",onCommit:function(){function u(i,c){return h("PRG_obfuscate",{new_name:c})}return u}(),mb:1}),(0,e.createComponentVNode)(2,a.LabeledList,{children:(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Payload Status",buttons:(0,e.createComponentVNode)(2,a.Button,{content:l?"ARMED":"DISARMED",color:l?"bad":"average",onClick:function(){function u(){return h("PRG_arm")}return u}()})})}),(0,e.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,content:"ACTIVATE",textAlign:"center",color:"bad",disabled:!l})]})})})}return V}()},1446:function(x,r,n){"use strict";r.__esModule=!0,r.NtosShutoffMonitor=void 0;var e=n(58734),a=n(11477),t=n(56780),o=r.NtosShutoffMonitor=function(){function m(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:627,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{children:(0,e.createComponentVNode)(2,t.ShutoffMonitorContent)})})}return m}()},73068:function(x,r,n){"use strict";r.__esModule=!0,r.NtosStationAlertConsole=void 0;var e=n(58734),a=n(11477),t=n(93840),o=r.NtosStationAlertConsole=function(){function m(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:315,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.StationAlertConsoleContent)})})}return m}()},2329:function(x,r,n){"use strict";r.__esModule=!0,r.NtosSupermatterMonitor=void 0;var e=n(58734),a=n(11477),t=n(7287),o=r.NtosSupermatterMonitor=function(){function m(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:600,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.SupermatterMonitorContent)})})}return m}()},35452:function(x,r,n){"use strict";r.__esModule=!0,r.NtosUAV=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.NtosUAV=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.current_uav,u=s.signal_strength,i=s.in_use,c=s.paired_uavs;return(0,e.createComponentVNode)(2,o.NtosWindow,{width:600,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Selected UAV",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"UAV",children:l&&l.status||"[Not Connected]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Signal",children:l&&u||"[Not Connected]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:l&&(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:l.power,onClick:function(){function d(){return h("power_uav")}return d}(),children:l.power?"Online":"Offline"})||"[Not Connected]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Camera",children:l&&(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:i,disabled:!l.power,onClick:function(){function d(){return h("view_uav")}return d}(),children:l.power?"Available":"Unavailable"})||"[Not Connected]"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Paired UAVs",children:c.length&&c.map(function(d){return(0,e.createComponentVNode)(2,t.Flex,{spacing:1,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"quidditch",onClick:function(){function p(){return h("switch_uav",{switch_uav:d.uavref})}return p}(),children:d.name})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"times",onClick:function(){function p(){return h("del_uav",{del_uav:d.uavref})}return p}()})})]},d.uavref)})||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No UAVs Paired."})})]})})}return V}()},79101:function(x,r,n){"use strict";r.__esModule=!0,r.NtosWordProcessor=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.NtosWordProcessor=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.PC_device_theme,u=s.error,i=s.browsing,c=s.files,d=s.usbconnected,p=s.usbfiles,v=s.filename,f=s.filedata;return(0,e.createComponentVNode)(2,o.NtosWindow,{resizable:!0,theme:l,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:u&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createVNode)(1,"h2",null,"An Error has occured:",16),"Additional Information: ",u,"Please try again. If the problem persists, contact your system administrator for assistance.",(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Back to menu",onClick:function(){function C(){return h("PRG_backtomenu")}return C}()})]})||i&&(0,e.createComponentVNode)(2,t.Section,{title:"File Browser",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Back to editor",onClick:function(){function C(){return h("PRG_closebrowser")}return C}()}),children:(0,e.createComponentVNode)(2,t.Section,{title:"Available documents (local)",level:2,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:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Size (GQ)"}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0})]}),c.map(function(C,b){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.size}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"file-word",onClick:function(){function g(){return h("PRG_openfile",{PRG_openfile:C.name})}return g}(),children:"Open"})})]},b)})]})})})||(0,e.createComponentVNode)(2,t.Section,{title:"Document: "+v,children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function C(){return h("PRG_newfile")}return C}(),children:"New"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function C(){return h("PRG_loadmenu")}return C}(),children:"Load"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function C(){return h("PRG_savefile")}return C}(),children:"Save"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function C(){return h("PRG_saveasfile")}return C}(),children:"Save As"})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function C(){return h("PRG_editfile")}return C}(),children:"Edit"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function C(){return h("PRG_txtrpeview")}return C}(),children:"Preview"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function C(){return h("PRG_taghelp")}return C}(),children:"Formatting Help"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!f,onClick:function(){function C(){return h("PRG_printfile")}return C}(),children:"Print"})]}),(0,e.createComponentVNode)(2,t.Section,{mt:1,children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:f}})})]})})})}return V}()},90132:function(x,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(58734),a=n(89226),t=n(57370),o=n(42678),m=n(62188),V=n(11790),k=n(11477),S=r.NumberInputModal=function(){function h(s,l){var u=(0,m.useBackend)(l),i=u.act,c=u.data,d=c.init_value,p=c.large_buttons,v=c.message,f=v===void 0?"":v,C=c.timeout,b=c.title,g=(0,m.useLocalState)(l,"input",d),y=g[0],B=g[1],L=function(){function T(M){M!==y&&B(M)}return T}(),I=function(){function T(M){M!==y&&B(M)}return T}(),w=140+(f.length>30?Math.ceil(f.length/3):0)+(f.length&&p?5:0);return(0,e.createComponentVNode)(2,k.Window,{title:b,width:270,height:w,children:[C&&(0,e.createComponentVNode)(2,a.Loader,{value:C}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function T(M){var A=window.event?M.which:M.keyCode;A===o.KEY_ENTER&&i("submit",{entry:y}),A===o.KEY_ESCAPE&&i("cancel")}return T}(),children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Box,{color:"label",children:f})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,N,{input:y,onClick:I,onChange:L})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:y})})]})})})]})}return h}(),N=function(s,l){var u=(0,m.useBackend)(l),i=u.act,c=u.data,d=c.min_value,p=c.max_value,v=c.init_value,f=s.input,C=s.onClick,b=s.onChange;return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:f===d,icon:"angle-double-left",onClick:function(){function g(){return C(d)}return g}(),tooltip:d?"Min ("+d+")":"Min"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.RestrictedInput,{allowFloats:!0,autoFocus:!0,autoSelect:!0,fluid:!0,minValue:d,maxValue:p,onChange:function(){function g(y,B){return b(B)}return g}(),onEnter:function(){function g(y,B){return i("submit",{entry:B})}return g}(),value:f})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:f===p,icon:"angle-double-right",onClick:function(){function g(){return C(p)}return g}(),tooltip:p?"Max ("+p+")":"Max"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:f===v,icon:"redo",onClick:function(){function g(){return C(v)}return g}(),tooltip:v?"Reset ("+v+")":"Reset"})})]})}},84035:function(x,r,n){"use strict";r.__esModule=!0,r.OmniFilter=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=function(S){return S.input?"Input":S.output?"Output":S.f_type?S.f_type:"Disabled"},V=r.OmniFilter=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.power,i=l.config,c=l.ports,d=l.set_flow_rate,p=l.last_flow_rate;return(0,e.createComponentVNode)(2,o.Window,{width:360,height:330,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:i?"Configuration":"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:u?"On":"Off",selected:u,disabled:i,onClick:function(){function v(){return s("power")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",selected:i,onClick:function(){function v(){return s("configure")}return v}()})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:c?c.map(function(v){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:v.dir+" Port",children:i?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"IN",selected:v.input,icon:"compress-arrows-alt",onClick:function(){function f(){return s("switch_mode",{mode:"in",dir:v.dir})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{content:"OUT",selected:v.output,icon:"expand-arrows-alt",onClick:function(){function f(){return s("switch_mode",{mode:"out",dir:v.dir})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:v.input||v.output,content:v.f_type||"None",onClick:function(){function f(){return s("switch_filter",{mode:v.f_type,dir:v.dir})}return f}()})],4):m(v)},v.dir)}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Ports Detected"})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Flow Rate",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Flow Rate",children:[p," L/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Flow Rate Limit",children:i?(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",content:d/10+" L/s",onClick:function(){function v(){return s("set_flow_rate")}return v}()}):d/10+" L/s"})]})})]})})}return k}()},6238:function(x,r,n){"use strict";r.__esModule=!0,r.OmniMixer=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=function(N){return N.input?"Input":N.output?"Output":N.f_type?N.f_type:"Disabled"},V=r.OmniMixer=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.power,c=u.config,d=u.ports,p=u.set_flow_rate,v=u.last_flow_rate;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:330,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:c?"Configuration":"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:i?"On":"Off",selected:i,disabled:c,onClick:function(){function f(){return l("power")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",selected:c,onClick:function(){function f(){return l("configure")}return f}()})],4),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:"Port"}),c?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Input"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Output"})],4):(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Mode"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Concentration"}),c?(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Lock"}):null]}),d?d.map(function(f){return(0,e.createComponentVNode)(2,k,{port:f,config:c},f.dir)}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Ports Detected"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Flow Rate",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Flow Rate",children:[v," L/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Flow Rate Limit",children:c?(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",content:p/10+" L/s",onClick:function(){function f(){return l("set_flow_rate")}return f}()}):p/10+" L/s"})]})})]})})}return S}(),k=function(N,h){var s=(0,a.useBackend)(h),l=s.act,u=N.port,i=N.config;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:u.dir+" Port"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:i?(0,e.createComponentVNode)(2,t.Button,{content:"IN",selected:u.input,disabled:u.output,icon:"compress-arrows-alt",onClick:function(){function c(){return l("switch_mode",{mode:u.input?"none":"in",dir:u.dir})}return c}()}):m(u)}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:i?(0,e.createComponentVNode)(2,t.Button,{content:"OUT",selected:u.output,icon:"expand-arrows-alt",onClick:function(){function c(){return l("switch_mode",{mode:"out",dir:u.dir})}return c}()}):u.concentration*100+"%"}),i?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",width:"20%",children:(0,e.createComponentVNode)(2,t.Button,{width:"100%",icon:"wrench",disabled:!u.input,content:u.input?u.concentration*100+" %":"-",onClick:function(){function c(){return l("switch_con",{dir:u.dir})}return c}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{icon:u.con_lock?"lock":"lock-open",disabled:!u.input,selected:u.con_lock,content:u.f_type||"None",onClick:function(){function c(){return l("switch_conlock",{dir:u.dir})}return c}()})})],4):null]})}},46476:function(x,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11477),m=n(11790),V=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],k=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},N=["bad","average","average","good","average","average","bad"],h=r.OperatingComputer=function(){function i(c,d){var p=(0,t.useBackend)(d),v=p.act,f=p.data,C=f.hasOccupant,b=f.choice,g;return b?g=(0,e.createComponentVNode)(2,u):g=C?(0,e.createComponentVNode)(2,s):(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,m.Tabs,{children:[(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:!b,icon:"user",onClick:function(){function y(){return v("choiceOff")}return y}(),children:"Patient"}),(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:!!b,icon:"cog",onClick:function(){function y(){return v("choiceOn")}return y}(),children:"Options"})]}),(0,e.createComponentVNode)(2,m.Section,{flexGrow:"1",children:g})]})})}return i}(),s=function(c,d){var p=(0,t.useBackend)(d),v=p.data,f=v.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Section,{title:"Patient",level:"2",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Name",children:f.name}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Status",color:V[f.stat][0],children:V[f.stat][1]}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:f.maxHealth,value:f.health/f.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),k.map(function(C,b){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:C[0]+" Damage",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:"100",value:f[C[1]]/100,ranges:S,children:(0,a.round)(f[C[1]])},b)},b)}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:f.maxTemp,value:f.bodyTemperature/f.maxTemp,color:N[f.temperatureSuitability+3],children:[(0,a.round)(f.btCelsius),"\xB0C, ",(0,a.round)(f.btFaren),"\xB0F"]})}),!!f.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:f.bloodMax,value:f.bloodLevel/f.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[f.bloodPercent,"%, ",f.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Pulse",children:[f.pulse," BPM"]})],4)]})}),(0,e.createComponentVNode)(2,m.Section,{title:"Current Procedure",level:"2",children:f.surgery&&f.surgery.length?(0,e.createComponentVNode)(2,m.LabeledList,{children:f.surgery.map(function(C){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:C.name,children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Current State",children:C.currentStage}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Possible Next Steps",children:C.nextSteps.map(function(b){return(0,e.createVNode)(1,"div",null,b,0,null,b)})})]})},C.name)})}):(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"No procedure ongoing."})})],4)},l=function(){return(0,e.createComponentVNode)(2,m.Flex,{textAlign:"center",height:"100%",children:(0,e.createComponentVNode)(2,m.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,m.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},u=function(c,d){var p=(0,t.useBackend)(d),v=p.act,f=p.data,C=f.verbose,b=f.health,g=f.healthAlarm,y=f.oxy,B=f.oxyAlarm,L=f.crit;return(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,m.Button,{selected:C,icon:C?"toggle-on":"toggle-off",content:C?"On":"Off",onClick:function(){function I(){return v(C?"verboseOff":"verboseOn")}return I}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,m.Button,{selected:b,icon:b?"toggle-on":"toggle-off",content:b?"On":"Off",onClick:function(){function I(){return v(b?"healthOff":"healthOn")}return I}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,m.Knob,{bipolar:!0,minValue:"-100",maxValue:"100",value:g,stepPixelSize:"5",ml:"0",format:function(){function I(w){return w+"%"}return I}(),onChange:function(){function I(w,T){return v("health_adj",{new:T})}return I}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,m.Button,{selected:y,icon:y?"toggle-on":"toggle-off",content:y?"On":"Off",onClick:function(){function I(){return v(y?"oxyOff":"oxyOn")}return I}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,m.Knob,{bipolar:!0,minValue:"-100",maxValue:"100",value:B,stepPixelSize:"5",ml:"0",onChange:function(){function I(w,T){return v("oxy_adj",{new:T})}return I}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,m.Button,{selected:L,icon:L?"toggle-on":"toggle-off",content:L?"On":"Off",onClick:function(){function I(){return v(L?"critOff":"critOn")}return I}()})})]})}},96008:function(x,r,n){"use strict";r.__esModule=!0,r.OvermapDisperser=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(51608),V=r.OvermapDisperser=function(){function S(N,h){return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,k)})})}return S}(),k=function(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.faillink,c=u.calibration,d=u.overmapdir,p=u.cal_accuracy,v=u.strength,f=u.range,C=u.next_shot,b=u.nopower,g=u.skill,y=u.chargeload;return i?(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"Machine is incomplete, out of range, or misaligned!"}):(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",spacing:1,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"22%",children:(0,e.createComponentVNode)(2,t.Section,{title:"Targeting",textAlign:"center",children:(0,e.createComponentVNode)(2,m.OvermapPanControls,{actToDo:"choose",selected:function(){function B(L){return L===d}return B}()})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"74%",grow:1,children:(0,e.createComponentVNode)(2,t.Section,{title:"Charge",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[b&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Error",children:"At least one part of the machine is unpowered."})||null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Load Type",children:y}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cooldown",children:C===0&&(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Ready"})||C>1&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:C})," Seconds",(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Warning: Do not fire during cooldown."})]})||null})]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"50%",mt:1,children:(0,e.createComponentVNode)(2,t.Section,{title:"Calibration",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p}),"%",(0,e.createComponentVNode)(2,t.Button,{ml:1,icon:"exchange-alt",onClick:function(){function B(){return l("skill_calibration")}return B}(),children:"Pre-Calibration"}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:c.map(function(B,L){return(0,e.createComponentVNode)(2,t.Box,{children:["Cal #",L,":",(0,e.createComponentVNode)(2,t.Button,{ml:1,icon:"random",onClick:function(){function I(){return l("calibration",{calibration:L})}return I}(),children:B.toString()})]},L)})})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"45%",grow:1,mt:1,children:(0,e.createComponentVNode)(2,t.Section,{title:"Setup",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Strength",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"fist-raised",onClick:function(){function B(){return l("strength")}return B}(),children:v})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radius",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"expand-arrows-alt",onClick:function(){function B(){return l("range")}return B}(),children:f})})]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"red",icon:"bomb",onClick:function(){function B(){return l("fire")}return B}(),children:"Fire ORB"})})]})}},54030:function(x,r,n){"use strict";r.__esModule=!0,r.OvermapEnginesContent=r.OvermapEngines=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.OvermapEngines=function(){function k(S,N){return(0,e.createComponentVNode)(2,o.Window,{width:390,height:530,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,V)})})}return k}(),V=r.OvermapEnginesContent=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.global_state,i=l.global_limit,c=l.engines_info,d=l.total_thrust;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:"Engines",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:u,onClick:function(){function p(){return s("global_toggle")}return p}(),children:u?"Shut All Engines Down":"Start All Engines"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Volume Limit",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function p(){return s("global_limit",{global_limit:-.1})}return p}(),icon:"minus"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function p(){return s("set_global_limit")}return p}(),children:[i,"%"]}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function p(){return s("global_limit",{global_limit:.1})}return p}(),icon:"plus"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Thrust",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:d})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Engines",height:"340px",style:{"overflow-y":"auto"},children:c.map(function(p,v){return(0,e.createComponentVNode)(2,t.Flex,{spacing:1,mt:v!==0&&-1,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"80%",children:(0,e.createComponentVNode)(2,t.Collapsible,{title:(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:["Engine #",v+1," | Thrust:"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.eng_thrust})," | Limit:"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.eng_thrust_limiter,format:function(){function f(C){return C+"%"}return f}()})]}),children:(0,e.createComponentVNode)(2,t.Section,{width:"127%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Type",children:p.eng_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Box,{color:p.eng_on?p.eng_on===1?"good":"average":"bad",children:p.eng_on?p.eng_on===1?"Online":"Booting":"Offline"}),p.eng_status.map(function(f){return Array.isArray(f)?(0,e.createComponentVNode)(2,t.Box,{color:f[1],children:f[0]}):(0,e.createComponentVNode)(2,t.Box,{children:f})})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Thrust",children:p.eng_thrust}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Volume Limit",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function f(){return s("limit",{limit:-.1,engine:p.eng_reference})}return f}(),icon:"minus"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function f(){return s("set_limit",{engine:p.eng_reference})}return f}(),children:[p.eng_thrust_limiter,"%"]}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function f(){return s("limit",{limit:.1,engine:p.eng_reference})}return f}(),icon:"plus"})]})]})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"20%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,iconSpin:p.eng_on===-1,color:p.eng_on===-1?"purple":null,selected:p.eng_on===1,icon:"power-off",onClick:function(){function f(){return s("toggle_engine",{engine:p.eng_reference})}return f}(),children:p.eng_on?p.eng_on===1?"Shutoff":"Booting":"Startup"})})]},v)})})],4)}return k}()},3774:function(x,r,n){"use strict";r.__esModule=!0,r.OvermapFull=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(54030),V=n(39526),k=n(35780),S=r.OvermapFull=function(){function N(h,s){var l=(0,a.useLocalState)(s,"overmapFullState",0),u=l[0],i=l[1];return(0,e.createComponentVNode)(2,o.Window,{width:800,height:800,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:u===0,onClick:function(){function c(){return i(0)}return c}(),children:"Engines"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:u===1,onClick:function(){function c(){return i(1)}return c}(),children:"Helm"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:u===2,onClick:function(){function c(){return i(2)}return c}(),children:"Sensors"})]}),u===0&&(0,e.createComponentVNode)(2,m.OvermapEnginesContent),u===1&&(0,e.createComponentVNode)(2,V.OvermapHelmContent),u===2&&(0,e.createComponentVNode)(2,k.OvermapShipSensorsContent)]})})}return N}()},39526:function(x,r,n){"use strict";r.__esModule=!0,r.OvermapHelmContent=r.OvermapHelm=r.OvermapFlightDataWrap=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(51608),V=r.OvermapHelm=function(){function l(u,i){return(0,e.createComponentVNode)(2,o.Window,{width:565,height:545,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,k)})})}return l}(),k=r.OvermapHelmContent=function(){function l(u,i){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"40%",height:"180px",children:(0,e.createComponentVNode)(2,S)}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"25%",height:"180px",children:(0,e.createComponentVNode)(2,N)}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"35%",height:"180px",children:(0,e.createComponentVNode)(2,h)})]}),(0,e.createComponentVNode)(2,s)],4)}return l}(),S=r.OvermapFlightDataWrap=function(){function l(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data;return(0,e.createVNode)(1,"fieldset","Section",[(0,e.createVNode)(1,"legend",null,"Flight Data",16),(0,e.createComponentVNode)(2,m.OvermapFlightData)],4,{style:{height:"100%",border:"1px solid #4972a1",margin:"none"}})}return l}(),N=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.canburn,f=p.manual_control;return(0,e.createVNode)(1,"fieldset","Section",[(0,e.createVNode)(1,"legend",null,"Manual Control",16),(0,e.createComponentVNode)(2,t.Flex,{align:"center",justify:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,m.OvermapPanControls,{disabled:!v,actToDo:"move"})})}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",mt:1,children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,underline:!0,children:"Direct Control"}),(0,e.createComponentVNode)(2,t.Button,{selected:f,onClick:function(){function C(){return d("manual")}return C}(),icon:"compass",children:f?"Enabled":"Disabled"})]})],4,{style:{height:"100%",border:"1px solid #4972a1"}})},h=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.dest,f=p.d_x,C=p.d_y,b=p.speedlimit,g=p.autopilot,y=p.autopilot_disabled;return y?(0,e.createVNode)(1,"fieldset","Section",[(0,e.createVNode)(1,"legend",null,"Autopilot",16),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"bad",fontSize:1.2,children:"AUTOPILOT DISABLED"}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"average",children:"Warning: This vessel is equipped with a class I autopilot. Class I autopilots are unable to do anything but fly in a straight line directly towards the target, and may result in collisions."}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{mt:1,color:"bad",content:"Unlock Autopilot",confirmContent:"ACCEPT RISKS?",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){function B(){return d("apilot_lock")}return B}()})})],4,{style:{height:"100%",border:"1px solid #4972a1"}}):(0,e.createVNode)(1,"fieldset","Section",[(0,e.createVNode)(1,"legend",null,"Autopilot",16),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:v&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function B(){return d("setcoord",{setx:!0})}return B}(),children:f}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function B(){return d("setcoord",{sety:!0})}return B}(),children:C})],4)||(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function B(){return d("setcoord",{setx:!0,sety:!0})}return B}(),children:"None"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Speed Limit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"tachometer-alt",onClick:function(){function B(){return d("speedlimit")}return B}(),children:[b," Gm/h"]})})]}),(0,e.createComponentVNode)(2,t.Button,{mt:1,fluid:!0,selected:g,disabled:!v,icon:"robot",onClick:function(){function B(){return d("apilot")}return B}(),children:g?"Engaged":"Disengaged"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"good",icon:"exclamation-triangle",onClick:function(){function B(){return d("apilot_lock")}return B}(),children:"Lock Autopilot"})],4,{style:{height:"100%",border:"1px solid #4972a1"}})},s=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.sector,f=p.s_x,C=p.s_y,b=p.sector_info,g=p.landed,y=p.locations;return(0,e.createComponentVNode)(2,t.Section,{title:"Navigation Data",m:.3,mt:1,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Coordinates",children:[f," : ",C]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Scan Data",children:b}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:g})]}),(0,e.createComponentVNode)(2,t.Flex,{mt:1,align:"center",justify:"center",spacing:1,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"save",onClick:function(){function B(){return d("add",{add:"current"})}return B}(),children:"Save Current Position"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"sticky-note",onClick:function(){function B(){return d("add",{add:"new"})}return B}(),children:"Add New Entry"})})]}),(0,e.createComponentVNode)(2,t.Section,{mt:1,scrollable:!0,height:"130px",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:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Coordinates"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),y.map(function(B){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:B.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[B.x," : ",B.y]}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",onClick:function(){function L(){return d("setds",{x:B.x,y:B.y})}return L}(),children:"Plot Course"}),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",onClick:function(){function L(){return d("remove",{remove:B.reference})}return L}(),children:"Remove"})]})]},B.name)})]})})]})}},85513:function(x,r,n){"use strict";r.__esModule=!0,r.OvermapNavigationContent=r.OvermapNavigation=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(51608),V=r.OvermapNavigation=function(){function S(){return(0,e.createComponentVNode)(2,o.Window,{width:380,height:530,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,k)})})}return S}(),k=r.OvermapNavigationContent=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.sector,c=u.s_x,d=u.s_y,p=u.sector_info,v=u.viewing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Current Location",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eye",selected:v,onClick:function(){function f(){return l("viewing")}return f}(),children:"Map View"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Location",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Coordinates",children:[c," : ",d]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Additional Information",children:p})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Flight Data",children:(0,e.createComponentVNode)(2,m.OvermapFlightData,{disableLimiterControls:!0})})],4)}return S}()},28204:function(x,r,n){"use strict";r.__esModule=!0,r.OvermapShieldGenerator=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.OvermapShieldGenerator=function(){function N(h,s){return(0,e.createComponentVNode)(2,o.Window,{width:500,height:760,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,V)})})}return N}(),V=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.modes,d=i.offline_for;return d?(0,e.createComponentVNode)(2,t.Section,{title:"EMERGENCY SHUTDOWN",color:"bad",children:["An emergency shutdown has been initiated - generator cooling down. Please wait until the generator cools down before resuming operation. Estimated time left: ",d," seconds."]}):(0,e.createFragment)([(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,t.Section,{title:"Field Calibration",children:c.map(function(p){return(0,e.createComponentVNode)(2,t.Section,{title:p.name,level:2,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:p.status,onClick:function(){function v(){return u("toggle_mode",{toggle_mode:p.flag})}return v}(),children:p.status?"Enabled":"Disabled"}),children:[(0,e.createComponentVNode)(2,t.Box,{color:"label",children:p.desc}),(0,e.createComponentVNode)(2,t.Box,{mt:.5,children:["Multiplier: ",p.multiplier]})]},p.name)})})],4)},k=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.running,d=i.overloaded,p=i.mitigation_max,v=i.mitigation_physical,f=i.mitigation_em,C=i.mitigation_heat,b=i.field_integrity,g=i.max_energy,y=i.current_energy,B=i.percentage_energy,L=i.total_segments,I=i.functional_segments,w=i.field_radius,T=i.target_radius,M=i.input_cap_kw,A=i.upkeep_power_usage,R=i.power_usage,O=i.spinup_counter;return(0,e.createComponentVNode)(2,t.Section,{title:"System Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Generator is",children:c===1&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Shutting Down"})||c===2&&(d&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Overloaded"})||(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Running"}))||c===3&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Inactive"})||c===4&&(0,e.createComponentVNode)(2,t.Box,{color:"blue",children:["Spinning Up\xA0",T!==w&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:"(Adjusting Radius)"})||(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:[O*2,"s"]})]})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Offline"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy Storage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:y,maxValue:g,children:[y," / ",g," MJ (",B,"%)"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shield Integrity",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:b}),"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mitigation",children:[f,"% EM / ",v,"% PH / ",C,"% HE / ",p,"% MAX"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Upkeep Energy Use",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:A})," kW"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Energy Use",children:M&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:R,maxValue:M,children:[R," / ",M," kW"]})})||(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:R})," kW (No Limit)"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Field Size",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:I}),"\xA0/\xA0",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:L})," m\xB2 (radius"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w}),", target"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T}),")"]})]})})},S=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.running,d=i.hacked,p=i.idle_multiplier,v=i.idle_valid_values;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",buttons:(0,e.createFragment)([c>=2&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function f(){return u("begin_shutdown")}return f}(),selected:!0,children:"Turn off"}),c===3&&(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function f(){return u("toggle_idle",{toggle_idle:0})}return f}(),children:"Activate"})||(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function f(){return u("toggle_idle",{toggle_idle:1})}return f}(),selected:!0,children:"Deactivate"})]})||(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function f(){return u("start_generator")}return f}(),children:"Turn on"}),c&&d&&(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",onClick:function(){function f(){return u("emergency_shutdown")}return f}(),color:"bad",children:"EMERGENCY SHUTDOWN"})||null],0),children:[(0,e.createComponentVNode)(2,t.Button,{icon:"expand-arrows-alt",onClick:function(){function f(){return u("set_range")}return f}(),children:"Set Field Range"}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",onClick:function(){function f(){return u("set_input_cap")}return f}(),children:"Set Input Cap"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Set inactive power use intensity",children:v.map(function(f){return(0,e.createComponentVNode)(2,t.Button,{selected:f===p,disabled:c===4,onClick:function(){function C(){return u("switch_idle",{switch_idle:f})}return C}(),children:f},f)})})})]})}},35780:function(x,r,n){"use strict";r.__esModule=!0,r.OvermapShipSensorsContent=r.OvermapShipSensors=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.OvermapShipSensors=function(){function k(S,N){return(0,e.createComponentVNode)(2,o.Window,{width:375,height:545,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,V)})})}return k}(),V=r.OvermapShipSensorsContent=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.viewing,i=l.on,c=l.range,d=l.health,p=l.max_health,v=l.heat,f=l.critical_heat,C=l.status,b=l.contacts;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"eye",selected:u,onClick:function(){function g(){return s("viewing")}return g}(),children:"Map View"}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:i,onClick:function(){function g(){return s("toggle_sensor")}return g}(),children:i?"Sensors Enabled":"Sensors Disabled"})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:C}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{icon:"signal",onClick:function(){function g(){return s("range")}return g}(),children:c})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[p*.75,1/0],average:[p*.25,p*.75],bad:[-1/0,p*.25]},value:d,maxValue:p,children:[d," / ",p]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{bad:[f*.75,1/0],average:[f*.5,f*.75],good:[-1/0,f*.5]},value:v,maxValue:f,children:v<f*.5&&(0,e.createComponentVNode)(2,t.Box,{children:"Temperature low."})||v<f*.75&&(0,e.createComponentVNode)(2,t.Box,{children:"Sensor temperature high!"})||(0,e.createComponentVNode)(2,t.Box,{children:"TEMPERATURE CRITICAL: Disable or reduce power immediately!"})})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Contacts",children:b.length&&b.map(function(g){return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"search",onClick:function(){function y(){return s("scan",{scan:g.ref})}return y}(),children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,inline:!0,children:["Scan: ",g.name]}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:[", bearing: ",g.bearing,"\xB0"]})]},g.ref)})||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No contacts on sensors."})}),l.status==="MISSING"&&(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wifi",onClick:function(){function g(){return s("link")}return g}(),children:"Link up with sensor suite?"})})||null],0)}return k}()},22702:function(x,r,n){"use strict";r.__esModule=!0,r.ParticleAccelerator=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.ParticleAccelerator=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.assembled,u=s.power,i=s.strength;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:185,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",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Run Scan",onClick:function(){function c(){return h("scan")}return c}()}),children:(0,e.createComponentVNode)(2,t.Box,{color:l?"good":"bad",children:l?"Ready - All parts in place":"Unable to detect all parts"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Particle Accelerator Controls",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:u?"power-off":"times",content:u?"On":"Off",selected:u,disabled:!l,onClick:function(){function c(){return h("power")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Particle Strength",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:!l,onClick:function(){function c(){return h("remove_strength")}return c}()})," ",String(i).padStart(1,"0")," ",(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:!l,onClick:function(){function c(){return h("add_strength")}return c}()})]})]})})]})})}return V}()},65400:function(x,r,n){"use strict";r.__esModule=!0,r.PartsLathe=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(40946),V=n(88662),k=r.PartsLathe=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.panelOpen,c=u.copyBoard,d=u.copyBoardReqComponents,p=u.queue,v=u.building,f=u.buildPercent,C=u.error,b=u.recipies;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[C&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:!0,children:["Missing Materials: ",C]})||null,(0,e.createComponentVNode)(2,t.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,V.Materials,{displayAllMat:!0})}),v&&(0,e.createComponentVNode)(2,t.Section,{title:"Currently Building",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:(0,m.toTitleCase)(v)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Progress",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:f,maxValue:100})})]})})||null,c&&(0,e.createComponentVNode)(2,t.Section,{title:"Circuit Reader",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Loaded Circuit",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function g(){return l("ejectBoard")}return g}(),children:"Eject"}),children:(0,m.toTitleCase)(c)})}),d&&d.length&&(0,e.createFragment)([d.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:[g.qty," x ",(0,m.toTitleCase)(g.name)]},g.name)}),(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",onClick:function(){function g(){return l("queueBoard")}return g}(),children:"Build All"})],0)||(0,e.createComponentVNode)(2,t.Box,{children:"Board has no required components."})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Queue",children:p.length&&p.map(function(g,y){return(0,e.createComponentVNode)(2,t.Box,{color:"label",children:["#",y+1,": ",(0,m.toTitleCase)(g),(y>0||!v)&&(0,e.createComponentVNode)(2,t.Button,{ml:1,icon:"times",onClick:function(){function B(){return l("cancel",{cancel:y+1})}return B}(),children:"Cancel"})||null]},g)})||(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:"Queue Empty"})}),(0,e.createComponentVNode)(2,t.Section,{title:"Recipes",children:b.length&&b.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",onClick:function(){function y(){return l("queue",{queue:g.type})}return y}(),children:(0,m.toTitleCase)(g.name)})},g.name)})})]})})}return S}()},27252:function(x,r,n){"use strict";r.__esModule=!0,r.PathogenicIsolator=void 0;var e=n(58734),a=n(62188),t=n(48388),o=n(11790),m=n(11477),V=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.can_print,p=s.args;return(0,e.createComponentVNode)(2,o.Section,{level:2,m:"-1rem",title:p.name||"Virus",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!d,icon:"print",content:"Print",onClick:function(){function v(){return i("print",{type:"virus_record",vir:p.record})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",color:"red",onClick:function(){function v(){return i("modal_close")}return v}()})],4),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:"Spread",children:[p.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:p.antigen}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Rate of Progression",children:p.rate}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Antibiotic Resistance",children:[p.resistance,"%"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Species Affected",children:p.species}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Symptoms",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:p.symptoms.map(function(v){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:v.stage+". "+v.name,children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Strength:"})," ",v.strength,"\xA0"]}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Aggressiveness:"})," ",v.aggressiveness]})]},v.stage)})})})]})})})},k=r.PathogenicIsolator=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.isolating,p=(0,a.useLocalState)(l,"tabIndex",0),v=p[0],f=p[1],C=null;return v===0?C=(0,e.createComponentVNode)(2,S):v===1&&(C=(0,e.createComponentVNode)(2,N)),(0,t.modalRegisterBodyOverride)("virus",V),(0,e.createComponentVNode)(2,m.Window,{height:500,width:520,resizable:!0,children:[(0,e.createComponentVNode)(2,t.ComplexModal,{maxHeight:"100%",maxWidth:"95%"}),(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[d&&(0,e.createComponentVNode)(2,o.NoticeBox,{warning:!0,children:"The Isolator is currently isolating..."})||null,(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:v===0,onClick:function(){function b(){return f(0)}return b}(),children:"Home"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:v===1,onClick:function(){function b(){return f(1)}return b}(),children:"Database"})]}),C]})]})}return h}(),S=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.syringe_inserted,p=c.pathogen_pool,v=c.can_print;return(0,e.createComponentVNode)(2,o.Section,{title:"Pathogens",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"print",content:"Print",disabled:!v,onClick:function(){function f(){return i("print",{type:"patient_diagnosis"})}return f}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject Syringe",disabled:!d,onClick:function(){function f(){return i("eject")}return f}()})],4),children:p.length&&p.map(function(f){return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:(0,e.createComponentVNode)(2,o.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:[(0,e.createVNode)(1,"u",null,[(0,e.createTextVNode)("Stamm #"),f.unique_id],0),f.is_in_database?" (Analyzed)":" (Not Analyzed)"]}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{icon:"virus",content:"Isolate",onClick:function(){function C(){return i("isolate",{isolate:f.reference})}return C}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"search",content:"Database",disabled:!f.is_in_database,onClick:function(){function C(){return i("view_entry",{vir:f.record})}return C}()})]})]})}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",mb:1,children:f.name}),f.dna]})]},f.unique_id)})||(d?(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"No samples detected."}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"No syringe inserted."}))})},N=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.database,p=c.can_print;return(0,e.createComponentVNode)(2,o.Section,{title:"Database",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"print",content:"Print",disabled:!p,onClick:function(){function v(){return i("print",{type:"virus_list"})}return v}()}),children:d.length&&d.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"search",onClick:function(){function f(){return i("view_entry",{vir:v.record})}return f}(),children:v.name},v.name)})||(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"The viral database is empty."})})}},32183:function(x,r,n){"use strict";r.__esModule=!0,r.Pda=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(61082),V=n(67484),k=function(u){var i;try{i=V("./"+u+".jsx")}catch(d){if(d.code==="MODULE_NOT_FOUND")return(0,m.routingError)("notFound",u);throw d}var c=i[u];return c||(0,m.routingError)("missingExport",u)},S=r.Pda=function(){function l(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.app,f=p.owner,C=p.useRetro;if(!f)return(0,e.createComponentVNode)(2,o.Window,{children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{stretchContents:!0,children:"Warning: No ID information found! Please swipe ID!"})})});var b=k(v.template),g=(0,a.useLocalState)(i,"settingsMode",!1),y=g[0],B=g[1];return(0,e.createComponentVNode)(2,o.Window,{width:580,height:670,theme:C?"pda-retro":null,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,N,{settingsMode:y,setSettingsMode:B}),y&&(0,e.createComponentVNode)(2,h)||(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:v.icon,mr:1}),v.name]}),p:1,children:(0,e.createComponentVNode)(2,b)}),(0,e.createComponentVNode)(2,t.Box,{mb:8}),(0,e.createComponentVNode)(2,s,{setSettingsMode:B})]})})}return l}(),N=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=u.settingsMode,f=u.setSettingsMode,C=p.idInserted,b=p.idLink,g=p.cartridge_name,y=p.stationTime;return(0,e.createComponentVNode)(2,t.Box,{mb:1,children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",justify:"space-between",children:[!!C&&(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",color:"transparent",onClick:function(){function B(){return d("Authenticate")}return B}(),content:b})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,textAlign:"center",bold:!0,children:y}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{selected:v,onClick:function(){function B(){return f(!v)}return B}(),icon:"cog"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function B(){return d("Retro")}return B}(),icon:"adjust"})]})]})})},h=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.idInserted,f=p.idLink,C=p.cartridge_name,b=p.touch_silent;return(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"R.E.T.R.O Mode",children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Retro Theme",onClick:function(){function g(){return d("Retro")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Touch Sounds",children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:!b,content:b?"Disabled":"Enabled",onClick:function(){function g(){return d("TouchSounds")}return g}()})}),!!C&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cartridge",children:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function g(){return d("Eject")}return g}(),content:C})}),!!v&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function g(){return d("Authenticate")}return g}(),content:f})})]})})},s=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=u.setSettingsMode,f=p.app,C=p.useRetro;return(0,e.createComponentVNode)(2,t.Box,{position:"fixed",bottom:"0%",left:"0%",right:"0%",backgroundColor:C?"#6f7961":"#1b1b1b",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"33%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",iconColor:f.has_back?"white":"disabled",textAlign:"center",icon:"undo",mb:0,fontSize:1.7,onClick:function(){function b(){return d("Back")}return b}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"33%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",iconColor:f.is_home?"disabled":"white",textAlign:"center",icon:"home",mb:0,fontSize:1.7,onClick:function(){function b(){v(!1),d("Home")}return b}()})})]})})}},90394:function(x,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477);function m(h,s){var l=typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(l)return(l=l.call(h)).next.bind(l);if(Array.isArray(h)||(l=V(h))||s&&h&&typeof h.length=="number"){l&&(h=l);var u=0;return function(){return u>=h.length?{done:!0}:{done:!1,value:h[u++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function V(h,s){if(h){if(typeof h=="string")return k(h,s);var l=Object.prototype.toString.call(h).slice(8,-1);if(l==="Object"&&h.constructor&&(l=h.constructor.name),l==="Map"||l==="Set")return Array.from(h);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return k(h,s)}}function k(h,s){(s==null||s>h.length)&&(s=h.length);for(var l=0,u=new Array(s);l<s;l++)u[l]=h[l];return u}var S=r.PersonalCrafting=function(){function h(s,l){for(var u,i=(0,a.useBackend)(l),c=i.act,d=i.data,p=d.busy,v=d.display_craftable_only,f=d.display_compact,C=d.crafting_recipes||{},b=[],g=[],y=0,B=Object.keys(C);y<B.length;y++){var L=B[y],I=C[L];if("has_subcats"in I){for(var w=0,T=Object.keys(I);w<T.length;w++){var M=T[w];if(M!=="has_subcats"){b.push({name:M,category:L,subcategory:M});for(var A=I[M],R=m(A),O;!(O=R()).done;){var _=O.value;g.push(Object.assign({},_,{category:M}))}}}continue}b.push({name:L,category:L});for(var P=C[L],D=m(P),z;!(z=D()).done;){var U=z.value;g.push(Object.assign({},U,{category:L}))}}var W=(0,a.useLocalState)(l,"tab",(u=b[0])==null?void 0:u.name),K=W[0],H=W[1],Y=g.filter(function(J){return J.category===K});return(0,e.createComponentVNode)(2,o.Window,{title:"Crafting Menu",width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!p&&(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:"Personal Crafting",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{content:"Compact",checked:f,onClick:function(){function J(){return c("toggle_compact")}return J}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{content:"Craftable Only",checked:v,onClick:function(){function J(){return c("toggle_recipes")}return J}()})],4),children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:b.map(function(J){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:J.name===K,onClick:function(){function q(){H(J.name),c("set_category",{category:J.category,subcategory:J.subcategory})}return q}(),children:J.name},J.name)})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,basis:0,children:(0,e.createComponentVNode)(2,N,{craftables:Y})})]})})]})})}return h}(),N=function(s,l){var u=s.craftables,i=u===void 0?[]:u,c=(0,a.useBackend)(l),d=c.act,p=c.data,v=p.craftability,f=v===void 0?{}:v,C=p.display_compact,b=p.display_craftable_only;return i.map(function(g){return b&&!f[g.ref]?null:C?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:g.name,className:"candystripe",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Craft",disabled:!f[g.ref],tooltip:g.tool_text&&"Tools needed: "+g.tool_text,tooltipPosition:"left",onClick:function(){function y(){return d("make",{recipe:g.ref})}return y}()}),children:g.req_text},g.name):(0,e.createComponentVNode)(2,t.Section,{title:g.name,level:2,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Craft",disabled:!f[g.ref],onClick:function(){function y(){return d("make",{recipe:g.ref})}return y}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!g.req_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Required",children:g.req_text}),!!g.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalyst",children:g.catalyst_text}),!!g.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:g.tool_text})]})},g.name)})}},66098:function(x,r,n){"use strict";r.__esModule=!0,r.PetrificationInterface=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.PetrificationInterface=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.material,u=s.identifier,i=s.adjective,c=s.tint,d=s.t,p=s.able_to_unpetrify,v=s.discard_clothes,f=s.target,C=s.can_remote;return(0,e.createComponentVNode)(2,o.Window,{width:425,height:313,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Interface",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Identifier",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:'Change Identifier: "'+u+'"',tooltip:"The identifier for the petrification. ie. 'A statue of (target)'",tooltipPosition:"top",onClick:function(){function b(){return h("set_option",{option:"identifier"})}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Material",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:'Change Material: "'+l+'"',tooltip:'The material for the petrification. ie. "(name)\'s skin rapidly (adjective) as they turn to (material)!"',tooltipPosition:"top",onClick:function(){function b(){return h("set_option",{option:"material"})}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Adjective",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:'Change Adjective: "'+i+'"',tooltip:'The adjective for the petrification. ie. "(name)\'s skin rapidly (adjective) as they turn to (material)!"',tooltipPosition:"top",onClick:function(){function b(){return h("set_option",{option:"adjective"})}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Color",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Change Color",backgroundColor:c,textColor:d?"#000000":"#ffffff",tooltip:"The color of the statue. Pure white is direct greyscale.",tooltipPosition:"top",onClick:function(){function b(){return h("set_option",{option:"tint"})}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Can Unpetrify",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:p?"Yes":"No",selected:p,tooltip:"Whether or not the statue can be unpetrified. If yes, they will get a verb letting them turn back- if not, even if they're a gargoyle, it will be taken away. OOC Escape is always an option though.",tooltipPosition:"top",onClick:function(){function b(){return h("set_option",{option:"able_to_unpetrify"})}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Discard Clothes",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:v?"Enabled":"Disabled",selected:v,tooltip:"Whether the target's clothing falls off before the petrification happens. (Clothes do not change color when petrified, and cannot be removed while being a statue)",tooltipPosition:"top",onClick:function(){function b(){return h("set_option",{option:"discard_clothes"})}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:f,onClick:function(){function b(){return h("set_option",{option:"target"})}return b}()})})]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{ml:1,disabled:!C,content:"Petrify",tooltip:"Turn the target to "+l+". This is meant for roleplay/scene purposes. Please don't abuse it.",tooltipPosition:"top",onClick:function(){function b(){return h("petrify")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{mr:1,disabled:!C,content:"Create Remote",tooltip:"Create a remote that will petrify the target with the given options when the button is pressed. It must be within 4 tiles of the target when pressed to work.. This is meant for roleplay/scene purposes. Please don't abuse it.",tooltipPosition:"top",onClick:function(){function b(){return h("remote")}return b}()})]})})})}return V}()},82281:function(x,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(58734),a=n(11790),t=n(62188),o=n(11477),m=r.Photocopier=function(){function N(h,s){var l=(0,t.useBackend)(s),u=l.data,i=u.isAI,c=u.has_toner,d=u.has_item;return(0,e.createComponentVNode)(2,o.Window,{title:"Photocopier",width:240,height:i?309:234,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,a.Section,{title:"Toner",children:(0,e.createComponentVNode)(2,a.Box,{color:"average",children:"No inserted toner cartridge."})}),d?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,a.Section,{title:"Options",children:(0,e.createComponentVNode)(2,a.Box,{color:"average",children:"No inserted item."})}),!!i&&(0,e.createComponentVNode)(2,S)]})})}return N}(),V=function(h,s){var l=(0,t.useBackend)(s),u=l.act,i=l.data,c=i.max_toner,d=i.current_toner,p=c*.66,v=c*.33;return(0,e.createComponentVNode)(2,a.Section,{title:"Toner",children:(0,e.createComponentVNode)(2,a.ProgressBar,{ranges:{good:[p,c],average:[v,p],bad:[0,v]},value:d,minValue:0,maxValue:c})})},k=function(h,s){var l=(0,t.useBackend)(s),u=l.act,i=l.data,c=i.num_copies,d=i.has_enough_toner;return(0,e.createComponentVNode)(2,a.Section,{title:"Options",children:[(0,e.createComponentVNode)(2,a.Flex,{children:[(0,e.createComponentVNode)(2,a.Flex.Item,{mt:.4,width:11,color:"label",children:"Make copies:"}),(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.NumberInput,{animate:!0,width:2.6,height:1.65,step:1,stepPixelSize:8,minValue:1,maxValue:10,value:c,onDrag:function(){function p(v,f){return u("set_copies",{num_copies:f})}return p}()})}),(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Button,{ml:.2,icon:"copy",textAlign:"center",onClick:function(){function p(){return u("make_copy")}return p}(),children:"Copy"})})]}),(0,e.createComponentVNode)(2,a.Button,{mt:.5,textAlign:"center",icon:"reply",fluid:!0,onClick:function(){function p(){return u("remove")}return p}(),children:"Remove item"})]})},S=function(h,s){var l=(0,t.useBackend)(s),u=l.act,i=l.data,c=i.can_AI_print;return(0,e.createComponentVNode)(2,a.Section,{title:"AI Options",children:(0,e.createComponentVNode)(2,a.Box,{children:(0,e.createComponentVNode)(2,a.Button,{fluid:!0,icon:"images",textAlign:"center",disabled:!c,onClick:function(){function d(){return u("ai_photo")}return d}(),children:"Print photo from database"})})})}},84092:function(x,r,n){"use strict";r.__esModule=!0,r.PipeDispenser=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(25114),V=r.PipeDispenser=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.disposals,i=l.p_layer,c=l.pipe_layers,d=l.categories,p=d===void 0?[]:d,v=(0,a.useLocalState)(N,"categoryName"),f=v[0],C=v[1],b=p.find(function(g){return g.cat_name===f})||p[0];return(0,e.createComponentVNode)(2,o.Window,{width:425,height:515,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!u&&(0,e.createComponentVNode)(2,t.Section,{title:"Layer",children:(0,e.createComponentVNode)(2,t.Box,{children:Object.keys(c).map(function(g){return(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:c[g]===i,content:g,onClick:function(){function y(){return s("p_layer",{p_layer:c[g]})}return y}()},g)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Pipes",children:[(0,e.createComponentVNode)(2,t.Tabs,{children:p.map(function(g,y){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{fluid:!0,icon:m.ICON_BY_CATEGORY_NAME[g.cat_name],selected:g.cat_name===b.cat_name,onClick:function(){function B(){return C(g.cat_name)}return B}(),children:g.cat_name},g.cat_name)})}),b==null?void 0:b.recipes.map(function(g){return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,ellipsis:!0,content:g.pipe_name,title:g.pipe_name,onClick:function(){function y(){return s("dispense_pipe",{ref:g.ref,bent:g.bent,category:b.cat_name})}return y}()},g.pipe_name)})]})]})})}return k}()},48646:function(x,r,n){"use strict";r.__esModule=!0,r.PlantAnalyzer=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.PlantAnalyzer=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.data,l=250;return s.seed&&(l+=18*s.seed.trait_info.length),s.reagents&&s.reagents.length&&(l+=55,l+=20*s.reagents.length),(0,e.createComponentVNode)(2,o.Window,{width:400,height:l,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,V)})})}return k}(),V=function(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.no_seed,i=l.seed,c=l.reagents;return u?(0,e.createComponentVNode)(2,t.Section,{title:"Analyzer Unused",children:"You should go scan a plant! There is no data currently loaded."}):(0,e.createComponentVNode)(2,t.Section,{title:"Plant Information",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"print",onClick:function(){function d(){return s("print")}return d}(),children:"Print Report"}),(0,e.createComponentVNode)(2,t.Button,{icon:"window-close",color:"red",onClick:function(){function d(){return s("close")}return d}()})],4),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plant Name",children:[i.name,"#",i.uid]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Endurance",children:i.endurance}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Yield",children:i.yield}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maturation Time",children:i.maturation_time}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Production Time",children:i.production_time}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Potency",children:i.potency})]}),c.length&&(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Plant Reagents",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:c.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.name,children:[d.volume," unit(s)."]},d.name)})})})||null,(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Other Data",children:i.trait_info.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{color:"label",mb:.4,children:d},d)})})]})}},15878:function(x,r,n){"use strict";r.__esModule=!0,r.PlayerNotes=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.PlayerNotes=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.device_theme,u=s.filter,i=s.pages,c=s.ckeys,d=function(){function p(v){return v()}return p}();return(0,e.createComponentVNode)(2,o.Window,{title:"Player Notes",theme:l,width:400,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Player notes",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"filter",onClick:function(){function p(){return h("filter_player_notes")}return p}(),children:"Apply Filter"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sidebar",onClick:function(){function p(){return h("open_legacy_ui")}return p}(),children:"Open Legacy UI"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Button.Input,{content:"CKEY to Open",onCommit:function(){function p(v,f){return h("show_player_info",{name:f})}return p}()}),(0,e.createComponentVNode)(2,t.Divider,{vertical:!0}),(0,e.createComponentVNode)(2,t.Button,{color:"green",content:u,onClick:function(){function p(){return h("clear_player_info_filter")}return p}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Table,{children:c.map(function(p){return(0,e.createComponentVNode)(2,t.Table.Row,{children:(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",icon:"user",content:p.desc,onClick:function(){function v(){return h("show_player_info",{name:p.name})}return v}(),children:p.name})})},p.name)})}),(0,e.createComponentVNode)(2,t.Divider),d(function(){for(var p=[],v=function(){function C(b){p.push((0,e.createComponentVNode)(2,t.Button,{onClick:function(){function g(){return h("set_page",{index:b})}return g}(),children:b},b))}return C}(),f=1;f<i;f++)v(f);return p})]})})})}return V}()},7064:function(x,r,n){"use strict";r.__esModule=!0,r.PlayerNotesInfo=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.PlayerNotesInfo=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.device_theme,u=s.age,i=s.ckey,c=s.entries;return(0,e.createComponentVNode)(2,o.Window,{title:"Info on "+i,theme:l,width:400,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Player age: "+u,children:(0,e.createComponentVNode)(2,t.Table,{children:["This ckey has ",c.length," comments.",c.map(function(d,p){return(0,e.createComponentVNode)(2,t.Table.Row,{children:(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!1,children:[(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Box,{children:["Written by ",d.author," on"," ",(0,e.createVNode)(1,"span",null,d.date,0,{color:"blue"}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)('"'),d.comment,(0,e.createTextVNode)('"')],0,{color:"green"})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",onClick:function(){function v(){return h("remove_player_info",{ckey:i,index:p+1})}return v}(),children:"Remove"})]})},d.comment)})]})}),(0,e.createComponentVNode)(2,t.Button,{icon:"comment",onClick:function(){function d(){return h("add_player_info",{ckey:i})}return d}(),children:"Add Comment"})]})})}return V}()},18346:function(x,r,n){"use strict";r.__esModule=!0,r.PointDefenseControl=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.PointDefenseControl=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.id,u=s.turrets;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Fire Assist Mainframe: "+(l||"[no tag]"),children:u.length&&u.map(function(i){return(0,e.createComponentVNode)(2,t.Section,{title:i.id,buttons:(0,e.createComponentVNode)(2,t.Button,{selected:i.active,icon:"power-off",onClick:function(){function c(){return h("toggle_active",{target:i.ref})}return c}(),children:i.active?"Online":"Offline"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Effective range",children:i.effective_range}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reaction wheel delay",children:i.reaction_wheel_delay}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recharge time",children:i.recharge_time})]})},i.id)})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Error: No weapon systems detected. Please check network connection."})})})})}return V}()},2405:function(x,r,n){"use strict";r.__esModule=!0,r.PortableGenerator=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(5339),V=r.PortableGenerator=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.fuel_stored/l.fuel_capacity,i=u>=.5&&"good"||u>.15&&"average"||"bad";return(0,e.createComponentVNode)(2,o.Window,{width:450,height:340,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!l.anchored&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Generator not anchored."}),(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power switch",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.active?"power-off":"times",onClick:function(){function c(){return s("toggle_power")}return c}(),selected:l.active,disabled:!l.ready_to_boot,children:l.active?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel Type",buttons:l.fuel_stored>=1&&(0,e.createComponentVNode)(2,t.Button,{ml:1,icon:"eject",disabled:l.active,onClick:function(){function c(){return s("eject")}return c}(),children:"Eject"}),children:(0,e.createComponentVNode)(2,t.Box,{color:i,children:[l.fuel_stored,"cm\xB3 ",l.sheet_name]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l.fuel_stored/l.fuel_capacity,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[l.fuel_stored,"cm\xB3 / ",l.fuel_capacity,"cm\xB3"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel Usage",children:[l.fuel_usage," cm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l.temperature_current,maxValue:l.temperature_max+30,color:l.temperature_overheat?"bad":"good",children:[(0,m.round)(l.temperature_current),"\xB0C"]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Output",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current output",color:l.unsafe_output?"bad":null,children:l.power_output}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Adjust output",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"minus",onClick:function(){function c(){return s("lower_power")}return c}(),children:l.power_generated}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus",onClick:function(){function c(){return s("higher_power")}return c}(),children:l.power_generated})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power available",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!l.connected&&"bad",children:l.connected?l.power_available:"Unconnected"})})]})})]})})}return k}()},80387:function(x,r,n){"use strict";r.__esModule=!0,r.PortablePump=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(25606),V=r.PortablePump=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.direction,i=l.target_pressure,c=l.default_pressure,d=l.min_pressure,p=l.max_pressure;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:375,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,m.PortableBasicInfo),(0,e.createComponentVNode)(2,t.Section,{title:"Pump",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u?"sign-in-alt":"sign-out-alt",content:u?"In":"Out",selected:u,onClick:function(){function v(){return s("direction")}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output",children:(0,e.createComponentVNode)(2,t.Slider,{mt:"0.4em",animated:!0,minValue:d,maxValue:p,value:i,unit:"kPa",stepPixelSize:.3,onChange:function(){function v(f,C){return s("pressure",{pressure:C})}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"minus",disabled:i===d,onClick:function(){function v(){return s("pressure",{pressure:"min"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",disabled:i===c,onClick:function(){function v(){return s("pressure",{pressure:"reset"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus",disabled:i===p,onClick:function(){function v(){return s("pressure",{pressure:"max"})}return v}()})]})]})})]})})}return k}()},47750:function(x,r,n){"use strict";r.__esModule=!0,r.PortableScrubber=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(25606),V=r.PortableScrubber=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.rate,i=l.minrate,c=l.maxrate;return(0,e.createComponentVNode)(2,o.Window,{width:320,height:350,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,m.PortableBasicInfo),(0,e.createComponentVNode)(2,t.Section,{title:"Power Regulator",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Volume Rate",children:(0,e.createComponentVNode)(2,t.Slider,{mt:"0.4em",animated:!0,minValue:i,maxValue:c,value:u,unit:"L/s",onChange:function(){function d(p,v){return s("volume_adj",{vol:v})}return d}()})})})})]})})}return k}()},45143:function(x,r,n){"use strict";r.__esModule=!0,r.PortableTurret=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.PortableTurret=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.locked,u=s.on,i=s.lethal,c=s.lethal_is_configurable,d=s.targetting_is_configurable,p=s.check_weapons,v=s.neutralize_noaccess,f=s.neutralize_norecord,C=s.neutralize_criminals,b=s.neutralize_all,g=s.neutralize_nonsynth,y=s.neutralize_unidentified,B=s.neutralize_down;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe an ID card to ",l?"unlock":"lock"," this interface."]}),(0,e.createComponentVNode)(2,t.Section,{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:u?"power-off":"times",content:u?"On":"Off",selected:u,disabled:l,onClick:function(){function L(){return h("power")}return L}()})}),!!c&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lethals",children:(0,e.createComponentVNode)(2,t.Button,{icon:i?"exclamation-triangle":"times",content:i?"On":"Off",color:i?"bad":"",disabled:l,onClick:function(){function L(){return h("lethal")}return L}()})})]})}),!!d&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Humanoid Targets",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Wanted Criminals",disabled:l,onClick:function(){function L(){return h("autharrest")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:f,content:"No Sec Record",disabled:l,onClick:function(){function L(){return h("authnorecord")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:p,content:"Unauthorized Weapons",disabled:l,onClick:function(){function L(){return h("authweapon")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Unauthorized Access",disabled:l,onClick:function(){function L(){return h("authaccess")}return L}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Other Targets",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:y,content:"Unidentified Lifesigns (Xenos, Animals, Etc)",disabled:l,onClick:function(){function L(){return h("authxeno")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"All Non-Synthetics",disabled:l,onClick:function(){function L(){return h("authsynth")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:B,content:"Downed Targets",disabled:l,onClick:function(){function L(){return h("authdown")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:b,content:"All Entities",disabled:l,onClick:function(){function L(){return h("authall")}return L}()})]})],4)]})})}return V}()},8694:function(x,r,n){"use strict";r.__esModule=!0,r.powerRank=r.PowerMonitorFocus=r.PowerMonitorContent=r.PowerMonitor=r.AreaCharge=void 0;var e=n(58734),a=n(45445),t=n(75671),o=n(5339),m=n(59641),V=n(62188),k=n(11790),S=n(11477),N=5e5,h=r.powerRank=function(){function d(p){var v=String(p.split(" ")[1]).toLowerCase();return["w","kw","mw","gw"].indexOf(v)}return d}(),s=r.PowerMonitor=function(){function d(){return(0,e.createComponentVNode)(2,S.Window,{width:550,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,S.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,l)})})}return d}(),l=r.PowerMonitorContent=function(){function d(p,v){var f=(0,V.useBackend)(v),C=f.act,b=f.data,g=b.map_levels,y=b.all_sensors,B=b.focus;if(B)return(0,e.createComponentVNode)(2,u,{focus:B});var L=(0,e.createComponentVNode)(2,k.Box,{color:"bad",children:"No sensors detected"});return y&&(L=(0,e.createComponentVNode)(2,k.Table,{children:y.map(function(I){return(0,e.createComponentVNode)(2,k.Table.Row,{children:(0,e.createComponentVNode)(2,k.Table.Cell,{children:(0,e.createComponentVNode)(2,k.Button,{content:I.name,icon:I.alarm?"bell":"sign-in-alt",onClick:function(){function w(){return C("setsensor",{id:I.name})}return w}()})})},I.name)})})),(0,e.createComponentVNode)(2,k.Section,{title:"No active sensor. Listing all.",buttons:(0,e.createComponentVNode)(2,k.Button,{content:"Scan For Sensors",icon:"undo",onClick:function(){function I(){return C("refresh")}return I}()}),children:L})}return d}(),u=r.PowerMonitorFocus=function(){function d(p,v){var f=(0,V.useBackend)(v),C=f.act,b=f.data,g=p.focus,y=g.history,B=(0,V.useLocalState)(v,"sortByField",null),L=B[0],I=B[1],w=y.supply[y.supply.length-1]||0,T=y.demand[y.demand.length-1]||0,M=y.supply.map(function(_,P){return[P,_]}),A=y.demand.map(function(_,P){return[P,_]}),R=Math.max.apply(Math,[N].concat(y.supply,y.demand)),O=(0,t.flow)([(0,a.map)(function(_,P){return Object.assign({},_,{id:_.name+P})}),L==="name"&&(0,a.sortBy)(function(_){return _.name}),L==="charge"&&(0,a.sortBy)(function(_){return-_.charge}),L==="draw"&&(0,a.sortBy)(function(_){return-h(_.load)},function(_){return-parseFloat(_.load)}),L==="problems"&&(0,a.sortBy)(function(_){return _.eqp},function(_){return _.lgt},function(_){return _.env},function(_){return _.charge},function(_){return _.name})])(g.areas);return(0,e.createFragment)([(0,e.createComponentVNode)(2,k.Section,{title:g.name,buttons:(0,e.createComponentVNode)(2,k.Button,{icon:"sign-out-alt",content:"Back To Main",onClick:function(){function _(){return C("clear")}return _}()})}),(0,e.createComponentVNode)(2,k.Flex,{mx:-.5,mb:1,children:[(0,e.createComponentVNode)(2,k.Flex.Item,{mx:.5,width:"200px",children:(0,e.createComponentVNode)(2,k.Section,{children:(0,e.createComponentVNode)(2,k.LabeledList,{children:[(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Supply",children:(0,e.createComponentVNode)(2,k.ProgressBar,{value:w,minValue:0,maxValue:R,color:"teal",children:(0,o.toFixed)(w/1e3)+" kW"})}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Draw",children:(0,e.createComponentVNode)(2,k.ProgressBar,{value:T,minValue:0,maxValue:R,color:"pink",children:(0,o.toFixed)(T/1e3)+" kW"})})]})})}),(0,e.createComponentVNode)(2,k.Flex.Item,{mx:.5,grow:1,children:(0,e.createComponentVNode)(2,k.Section,{position:"relative",height:"100%",children:[(0,e.createComponentVNode)(2,k.Chart.Line,{fillPositionedParent:!0,data:M,rangeX:[0,M.length-1],rangeY:[0,R],strokeColor:"rgba(0, 181, 173, 1)",fillColor:"rgba(0, 181, 173, 0.25)"}),(0,e.createComponentVNode)(2,k.Chart.Line,{fillPositionedParent:!0,data:A,rangeX:[0,A.length-1],rangeY:[0,R],strokeColor:"rgba(224, 57, 151, 1)",fillColor:"rgba(224, 57, 151, 0.25)"})]})})]}),(0,e.createComponentVNode)(2,k.Section,{children:[(0,e.createComponentVNode)(2,k.Box,{mb:1,children:[(0,e.createComponentVNode)(2,k.Box,{inline:!0,mr:2,color:"label",children:"Sort by:"}),(0,e.createComponentVNode)(2,k.Button.Checkbox,{checked:L==="name",content:"Name",onClick:function(){function _(){return I(L!=="name"&&"name")}return _}()}),(0,e.createComponentVNode)(2,k.Button.Checkbox,{checked:L==="charge",content:"Charge",onClick:function(){function _(){return I(L!=="charge"&&"charge")}return _}()}),(0,e.createComponentVNode)(2,k.Button.Checkbox,{checked:L==="draw",content:"Draw",onClick:function(){function _(){return I(L!=="draw"&&"draw")}return _}()}),(0,e.createComponentVNode)(2,k.Button.Checkbox,{checked:L==="problems",content:"Problems",onClick:function(){function _(){return I(L!=="problems"&&"problems")}return _}()})]}),(0,e.createComponentVNode)(2,k.Table,{children:[(0,e.createComponentVNode)(2,k.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,k.Table.Cell,{children:"Area"}),(0,e.createComponentVNode)(2,k.Table.Cell,{collapsing:!0,children:"Charge"}),(0,e.createComponentVNode)(2,k.Table.Cell,{textAlign:"right",children:"Draw"}),(0,e.createComponentVNode)(2,k.Table.Cell,{collapsing:!0,title:"Equipment",children:"Eqp"}),(0,e.createComponentVNode)(2,k.Table.Cell,{collapsing:!0,title:"Lighting",children:"Lgt"}),(0,e.createComponentVNode)(2,k.Table.Cell,{collapsing:!0,title:"Environment",children:"Env"})]}),O.map(function(_,P){return(0,e.createVNode)(1,"tr","Table__row candystripe",[(0,e.createVNode)(1,"td",null,_.name,0),(0,e.createVNode)(1,"td","Table__cell text-right text-nowrap",(0,e.createComponentVNode)(2,i,{charging:_.charging,charge:_.charge}),2),(0,e.createVNode)(1,"td","Table__cell text-right text-nowrap",_.load,0),(0,e.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,e.createComponentVNode)(2,c,{status:_.eqp}),2),(0,e.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,e.createComponentVNode)(2,c,{status:_.lgt}),2),(0,e.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,e.createComponentVNode)(2,c,{status:_.env}),2)],4,null,_.id)})]})]})],4)}return d}(),i=r.AreaCharge=function(){function d(p){var v=p.charging,f=p.charge;return(0,e.createFragment)([(0,e.createComponentVNode)(2,k.Icon,{width:"18px",textAlign:"center",name:v===0&&(f>50?"battery-half":"battery-quarter")||v===1&&"bolt"||v===2&&"battery-full",color:v===0&&(f>50?"yellow":"red")||v===1&&"yellow"||v===2&&"green"}),(0,e.createComponentVNode)(2,k.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(f)+"%"})],4)}return d}();i.defaultHooks=m.pureComponentHooks;var c=function(p){var v=p.status,f=!!(v&2),C=!!(v&1),b=(f?"On":"Off")+(" ["+(C?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,k.ColorBox,{color:f?"good":"bad",content:C?void 0:"M",title:b})};c.defaultHooks=m.pureComponentHooks},70955:function(x,r,n){"use strict";r.__esModule=!0,r.PrecisionEditor=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.PrecisionEditor=function(){function N(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.screenstate;return(0,e.createComponentVNode)(2,o.Window,{resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Seed status",children:[c==="main"&&(0,e.createComponentVNode)(2,V),c==="colors"&&(0,e.createComponentVNode)(2,k),c==="reagents"&&(0,e.createComponentVNode)(2,S)]})})})}return N}(),V=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.health,d=i.plantcolor,p=i.fruitcolor,v=i.chems,f=i.seedname;return(0,e.createComponentVNode)(2,t.LabeledList,{children:v?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:f}),c<100?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Genetic Integrity",children:100-c+"%"}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Genetic Integrity",children:"UNVIABLE"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plant Color",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fruit Color",children:p}),(0,e.createComponentVNode)(2,t.LabeledList.Divider,{size:2}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chems produced in fruit (click to splice out)",children:v.map(function(C){return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:C.displayname,onClick:function(){function b(){return u("prune",{gene_name:C.name})}return b}()},C.displayname)})}),(0,e.createComponentVNode)(2,t.Button,{content:"Edit Colors",onClick:function(){function C(){return u("change_focus",{window:"colors"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add Reagents",onClick:function(){function C(){return u("change_focus",{window:"reagents"})}return C}()}),(0,e.createComponentVNode)(2,t.LabeledList.Divider,{size:2}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Seed",onClick:function(){function C(){return u("eject")}return C}()})],0):(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Waiting",children:"There is currently no seed loaded."})})},k=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.plantcolor,d=i.fruitcolor;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plant Color",children:c}),(0,e.createComponentVNode)(2,t.ColorBox,{color:c}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fruit Color",children:d}),(0,e.createComponentVNode)(2,t.ColorBox,{color:d}),(0,e.createComponentVNode)(2,t.Button,{content:"Change plant color",onClick:function(){function p(){return u("change_color",{option:0})}return p}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change fruit color",onClick:function(){function p(){return u("change_color",{option:1})}return p}()}),(0,e.createComponentVNode)(2,t.LabeledList.Divider,{size:2}),(0,e.createComponentVNode)(2,t.Button,{content:"Return",onClick:function(){function p(){return u("change_focus",{window:"main"})}return p}()})]})},S=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.beakerchems,d=i.health;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[d<100?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Genetic Integrity",children:100-d+"%"}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Genetic Integrity",children:"UNVIABLE"}),(0,e.createComponentVNode)(2,t.NoticeBox,{info:1,width:19,height:9,ml:1,children:["Available chems to choose are based on the reagents stored in the beaker. "," A minimum of 100 units of reagent is required to generate a viable sequence. ","The chosen reagent will be consumed in the process.",(0,e.createComponentVNode)(2,t.Box,{bold:1,mt:1,children:"This process severely damages genetic integrity."})]}),(0,e.createComponentVNode)(2,t.Box,{width:20,opacity:.5,ml:1,mt:6,mb:2,children:["Plant will produce 1 additional unit for every 25 units beyond 100"," (modified by potency)"]}),c?(0,e.createFragment)([d<100?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available reagents",children:c.map(function(p){return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:p.displayname,onClick:function(){function v(){return u("add_chem",{target_chem:p.name})}return v}()},p.displayname)})}):(0,e.createComponentVNode)(2,t.NoticeBox,{warning:1,children:"WARNING: Genetic integrity of seed is too poor to proceed."}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Beaker",onClick:function(){function p(){return u("eject_beaker")}return p}()})],0):(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Waiting",children:"There is currently no beaker loaded."}),(0,e.createComponentVNode)(2,t.Button,{content:"Return",onClick:function(){function p(){return u("change_focus",{window:"main"})}return p}()})]})}},22217:function(x,r,n){"use strict";r.__esModule=!0,r.PressureRegulator=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.PressureRegulator=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.on,u=s.pressure_set,i=s.max_pressure,c=s.input_pressure,d=s.output_pressure,p=s.regulate_mode,v=s.set_flow_rate,f=s.last_flow_rate;return(0,e.createComponentVNode)(2,o.Window,{width:470,height:370,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Pressure",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:c/100})," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Pressure",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:d/100})," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Flow Rate",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:f/10})," L/s"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:l?"Unlocked":"Closed",selected:l,onClick:function(){function C(){return h("toggle_valve")}return C}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Regulation",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"Off",selected:p===0,onClick:function(){function C(){return h("regulate_mode",{mode:"off"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"compress-arrows-alt",content:"Input",selected:p===1,onClick:function(){function C(){return h("regulate_mode",{mode:"input"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"expand-arrows-alt",content:"Output",selected:p===2,onClick:function(){function C(){return h("regulate_mode",{mode:"output"})}return C}()})],4)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Desired Output Pressure",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){function C(){return h("set_press",{press:"min"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){function C(){return h("set_press",{press:"max"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",content:"SET",onClick:function(){function C(){return h("set_press",{press:"set"})}return C}()})],4),children:[u/100," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Flow Rate Limit",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){function C(){return h("set_flow_rate",{press:"min"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){function C(){return h("set_flow_rate",{press:"max"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",content:"SET",onClick:function(){function C(){return h("set_flow_rate",{press:"set"})}return C}()})],4),children:[v/10," L/s"]})]})})]})})}return V}()},97749:function(x,r,n){"use strict";r.__esModule=!0,r.PrisonerManagement=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.PrisonerManagement=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.locked,u=s.chemImplants,i=s.trackImplants;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:l&&(0,e.createComponentVNode)(2,t.Section,{title:"Locked",textAlign:"center",children:["This interface is currently locked.",(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlock",onClick:function(){function c(){return h("lock")}return c}(),children:"Unlock"})})]})||(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Interface Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock",onClick:function(){function c(){return h("lock")}return c}(),children:"Lock Interface"})}),(0,e.createComponentVNode)(2,t.Section,{title:"Chemical Implants",children:u.length&&(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:"Host"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Units Remaining"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Inject"})]}),u.map(function(c){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:c.host}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[c.units,"u remaining"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function d(){return h("inject",{imp:c.ref,val:1})}return d}(),children:"(1)"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function d(){return h("inject",{imp:c.ref,val:5})}return d}(),children:"(5)"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function d(){return h("inject",{imp:c.ref,val:10})}return d}(),children:"(10)"})]})]},c.ref)})]})||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No chemical implants found."})}),(0,e.createComponentVNode)(2,t.Section,{title:"Tracking Implants",children:i.length&&(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:"Host"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Location"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Message"})]}),i.map(function(c){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[c.host," (",c.id,")"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:c.loc}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function d(){return h("warn",{imp:c.ref})}return d}(),children:"Message"})})]},c.ref)})]})||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No chemical implants found."})})],4)})})}return V}()},23613:function(x,r,n){"use strict";r.__esModule=!0,r.RCONContent=r.RCON=void 0;var e=n(58734),a=n(5339),t=n(43820),o=n(62188),m=n(11790),V=n(11477),k=n(40946),S=1e3,N=r.RCON=function(){function c(d,p){return(0,e.createComponentVNode)(2,V.Window,{width:630,height:540,resizable:!0,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,h)})})}return c}(),h=r.RCONContent=function(){function c(d,p){var v=(0,o.useLocalState)(p,"tabIndex",0),f=v[0],C=v[1],b;return f===0?b=(0,e.createComponentVNode)(2,s):f===1&&(b=(0,e.createComponentVNode)(2,i)),(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Tabs,{children:[(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:f===0,onClick:function(){function g(){return C(0)}return g}(),children:[(0,e.createComponentVNode)(2,m.Icon,{name:"power-off"})," SMESs"]},"SMESs"),(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:f===1,onClick:function(){function g(){return C(1)}return g}(),children:[(0,e.createComponentVNode)(2,m.Icon,{name:"bolt"})," Breakers"]},"Breakers")]}),(0,e.createComponentVNode)(2,m.Box,{m:2,children:b})],4)}return c}(),s=function(d,p){var v=(0,o.useBackend)(p),f=v.act,C=v.data,b=C.smes_info,g=C.pages,y=C.current_page,B=function(I){return I()};return(0,e.createComponentVNode)(2,m.Section,{title:"SMESs (Page "+y+")",children:[(0,e.createComponentVNode)(2,m.Stack,{vertical:!0,children:b.map(function(L){return(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,l,{smes:L})},L.RCON_tag)})}),"Page Selection:",(0,e.createVNode)(1,"br"),B(function(){for(var L=[],I=function(M){L.push((0,e.createComponentVNode)(2,m.Button,{selected:y===M,onClick:function(){function A(){return f("set_smes_page",{index:M})}return A}(),children:M},M))},w=1;w<g;w++)I(w);return L})]})},l=function(d,p){var v=(0,o.useBackend)(p),f=v.act,C=d.smes,b=C.capacityPercent,g=C.capacity,y=C.charge,B=C.inputAttempt,L=C.inputting,I=C.inputLevel,w=C.inputLevelMax,T=C.inputAvailable,M=C.outputAttempt,A=C.outputting,R=C.outputLevel,O=C.outputLevelMax,_=C.outputUsed,P=C.RCON_tag;return(0,e.createComponentVNode)(2,m.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,justify:"space-between",children:[(0,e.createComponentVNode)(2,m.Stack.Item,{flexBasis:"40%",fontSize:1.2,children:P}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,m.ProgressBar,{value:b*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[(0,a.round)(y/(1e3*60),1)," kWh /"," ",(0,a.round)(g/(1e3*60))," kWh (",b,"%)"]})})]})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,u,{smes:d.smes,way:"input"})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,u,{smes:d.smes,way:"output"})}),(0,e.createComponentVNode)(2,m.Stack.Divider)]})},u=function(d,p){var v=(0,o.useBackend)(p),f=v.act,C=d.way,b=d.smes,g=b.capacityPercent,y=b.capacity,B=b.charge,L=b.inputAttempt,I=b.inputting,w=b.inputLevel,T=b.inputLevelMax,M=b.inputAvailable,A=b.outputAttempt,R=b.outputting,O=b.outputLevel,_=b.outputLevelMax,P=b.outputUsed,D=b.RCON_tag,z,U,W,K,H,Y,J,q,oe;switch(C){case"input":z=w,U=T,W=M,K="IN",H="smes_in_toggle",Y="smes_in_set",J=L,q=L?I?"green":"yellow":null,oe=L?I?"The SMES is drawing power.":"The SMES lacks power.":"The SMES input is off.";break;case"output":z=O,U=_,W=P,K="OUT",H="smes_out_toggle",Y="smes_out_set",J=A,q=A?R?"green":"yellow":null,oe=A?R?"The SMES is outputting power.":"The SMES lacks any draw.":"The SMES output is off.";break}return(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{basis:"20%",children:(0,k.capitalize)(C)}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,m.Stack,{children:[(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Button,{icon:"power-off",color:q,tooltip:oe,onClick:function(){function ae(){return f(H,{smes:D})}return ae}()})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:[(0,e.createComponentVNode)(2,m.Button,{icon:"fast-backward",disabled:z===0,onClick:function(){function ae(){return f(Y,{target:"min",smes:D})}return ae}()}),(0,e.createComponentVNode)(2,m.Button,{icon:"backward",disabled:z===0,onClick:function(){function ae(){return f(Y,{adjust:-1e4,smes:D})}return ae}()})]}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,m.Slider,{value:z/S,fillValue:W/S,minValue:0,maxValue:U/S,step:5,stepPixelSize:4,format:function(){function ae(le){return(0,t.formatPower)(W,1)+"/"+(0,t.formatPower)(le*S,1)}return ae}(),onDrag:function(){function ae(le,he){return f(Y,{target:he*S,smes:D})}return ae}()})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:[(0,e.createComponentVNode)(2,m.Button,{icon:"forward",disabled:z===U,onClick:function(){function ae(){return f(Y,{adjust:1e4,smes:D})}return ae}()}),(0,e.createComponentVNode)(2,m.Button,{icon:"fast-forward",disabled:z===U,onClick:function(){function ae(){return f(Y,{target:"max",smes:D})}return ae}()})]})]})})]})},i=function(d,p){var v=(0,o.useBackend)(p),f=v.act,C=v.data,b=C.breaker_info;return(0,e.createComponentVNode)(2,m.Section,{title:"Breakers",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:b?b.map(function(g){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:g.RCON_tag,buttons:(0,e.createComponentVNode)(2,m.Button,{icon:"power-off",content:g.enabled?"Enabled":"Disabled",selected:g.enabled,color:g.enabled?null:"bad",onClick:function(){function y(){return f("toggle_breaker",{breaker:g.RCON_tag})}return y}()})},g.RCON_tag)}):(0,e.createComponentVNode)(2,m.LabeledList.Item,{color:"bad",children:"No breakers detected."})})})}},18395:function(x,r,n){"use strict";r.__esModule=!0,r.RIGSuit=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(40946),V=r.RIGSuit=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.interfacelock,p=c.malf,v=c.aicontrol,f=c.ai,C=null;return d||p?C=(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"--HARDSUIT INTERFACE OFFLINE--"}):!f&&v&&(C=(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"-- HARDSUIT CONTROL OVERRIDDEN BY AI --"})),(0,e.createComponentVNode)(2,o.Window,{height:480,width:550,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:C||(0,e.createFragment)([(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,N)],4)})})}return h}(),k=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.chargestatus,p=c.charge,v=c.maxcharge,f=c.aioverride,C=c.sealing,b=c.sealed,g=c.cooling,y=c.emagged,B=c.securitycheck,L=c.coverlock,I=(0,e.createComponentVNode)(2,t.Button,{content:"Suit "+(C?"seals working...":b?"is Active":"is Inactive"),icon:C?"redo":b?"power-off":"lock-open",iconSpin:C,disabled:C,selected:b,onClick:function(){function M(){return i("toggle_seals")}return M}()}),w=(0,e.createComponentVNode)(2,t.Button,{content:"Suit Cooling "+(g?"is Active":"is Inactive"),icon:"power-off",selected:g,onClick:function(){function M(){return i("toggle_cooling")}return M}()}),T=(0,e.createComponentVNode)(2,t.Button,{content:"AI Control "+(f?"Enabled":"Disabled"),selected:f,icon:"robot",onClick:function(){function M(){return i("toggle_ai_control")}return M}()});return(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([I,T,w],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Supply",children:(0,e.createComponentVNode)(2,t.ProgressBar,{minValue:0,maxValue:50,value:d,ranges:{good:[35,1/0],average:[15,35],bad:[-1/0,15]},children:[p," / ",v]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover Status",children:y||!B?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Error - Maintenance Lock Control Offline"}):(0,e.createComponentVNode)(2,t.Button,{icon:L?"lock":"lock-open",content:L?"Locked":"Unlocked",onClick:function(){function M(){return i("toggle_suit_lock")}return M}()})})]})})},S=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.sealing,p=c.helmet,v=c.helmetDeployed,f=c.gauntlets,C=c.gauntletsDeployed,b=c.boots,g=c.bootsDeployed,y=c.chest,B=c.chestDeployed;return(0,e.createComponentVNode)(2,t.Section,{title:"Hardware",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Helmet",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:v?"sign-out-alt":"sign-in-alt",content:v?"Deployed":"Deploy",disabled:d,selected:v,onClick:function(){function L(){return i("toggle_piece",{piece:"helmet"})}return L}()}),children:p?(0,m.capitalize)(p):"ERROR"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gauntlets",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:C?"sign-out-alt":"sign-in-alt",content:C?"Deployed":"Deploy",disabled:d,selected:C,onClick:function(){function L(){return i("toggle_piece",{piece:"gauntlets"})}return L}()}),children:f?(0,m.capitalize)(f):"ERROR"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Boots",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:g?"sign-out-alt":"sign-in-alt",content:g?"Deployed":"Deploy",disabled:d,selected:g,onClick:function(){function L(){return i("toggle_piece",{piece:"boots"})}return L}()}),children:b?(0,m.capitalize)(b):"ERROR"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chestpiece",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:B?"sign-out-alt":"sign-in-alt",content:B?"Deployed":"Deploy",disabled:d,selected:B,onClick:function(){function L(){return i("toggle_piece",{piece:"chest"})}return L}()}),children:y?(0,m.capitalize)(y):"ERROR"})]})})},N=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.sealed,p=c.sealing,v=c.primarysystem,f=c.modules;return!d||p?(0,e.createComponentVNode)(2,t.Section,{title:"Modules",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"HARDSUIT SYSTEMS OFFLINE"})}):(0,e.createComponentVNode)(2,t.Section,{title:"Modules",children:[(0,e.createComponentVNode)(2,t.Box,{color:"label",mb:"0.2rem",fontSize:1.5,children:["Selected Primary: ",(0,m.capitalize)(v||"None")]}),f&&f.map(function(C,b){return(0,e.createComponentVNode)(2,t.Section,{level:2,title:(0,m.toTitleCase)(C.name)+(C.damage?" (damaged)":""),buttons:(0,e.createFragment)([C.can_select?(0,e.createComponentVNode)(2,t.Button,{selected:C.name===v,content:C.name===v?"Selected":"Select",icon:"arrow-circle-right",onClick:function(){function g(){return i("interact_module",{module:C.index,module_mode:"select"})}return g}()}):null,C.can_use?(0,e.createComponentVNode)(2,t.Button,{content:C.engagestring,icon:"arrow-circle-down",onClick:function(){function g(){return i("interact_module",{module:C.index,module_mode:"engage"})}return g}()}):null,C.can_toggle?(0,e.createComponentVNode)(2,t.Button,{selected:C.is_active,content:C.is_active?C.deactivatestring:C.activatestring,icon:"arrow-circle-down",onClick:function(){function g(){return i("interact_module",{module:C.index,module_mode:"toggle"})}return g}()}):null],0),children:[C.damage>=2?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"-- MODULE DESTROYED --"}):(0,e.createComponentVNode)(2,t.Flex,{spacing:1,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:[(0,e.createComponentVNode)(2,t.Box,{color:"average",children:["Engage: ",C.engagecost]}),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:["Active: ",C.activecost]}),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:["Passive: ",C.passivecost]})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:C.desc})]}),C.charges?(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Module Charges",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected",children:(0,m.capitalize)(C.chargetype)}),C.charges.map(function(g,y){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,m.capitalize)(g.caption),children:(0,e.createComponentVNode)(2,t.Button,{selected:C.realchargetype===g.index,icon:"arrow-right",onClick:function(){function B(){return i("interact_module",{module:C.index,module_mode:"select_charge_type",charge_type:g.index})}return B}()})},g.caption)})]})})}):null]},C.name)})]})}},82402:function(x,r,n){"use strict";r.__esModule=!0,r.Radio=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(78419),V=n(11477),k=r.Radio=function(){function S(N,h){var s=(0,t.useBackend)(h),l=s.act,u=s.data,i=u.rawfreq,c=u.minFrequency,d=u.maxFrequency,p=u.listening,v=u.broadcasting,f=u.subspace,C=u.subspaceSwitchable,b=u.chan_list,g=u.loudspeaker,y=u.mic_cut,B=u.spk_cut,L=u.useSyndMode,I=m.RADIO_CHANNELS.find(function(T){return T.freq===Number(i)}),w=156;return b&&b.length>0?w+=b.length*28+6:w+=24,C&&(w+=38),(0,e.createComponentVNode)(2,V.Window,{width:310,height:w,resizable:!0,theme:L?"syndicate":"",children:(0,e.createComponentVNode)(2,V.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:"Frequency",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animated:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:c/10,maxValue:d/10,value:i/10,format:function(){function T(M){return(0,a.toFixed)(M,1)}return T}(),onDrag:function(){function T(M,A){return l("setFrequency",{freq:(0,a.round)(A*10)})}return T}()}),I&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:I.color,ml:2,children:["[",I.name,"]"]})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Audio",children:[(0,e.createComponentVNode)(2,o.Button,{textAlign:"center",width:"37px",icon:p?"volume-up":"volume-mute",selected:p,disabled:B,onClick:function(){function T(){return l("listen")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{textAlign:"center",width:"37px",icon:v?"microphone":"microphone-slash",selected:v,disabled:y,onClick:function(){function T(){return l("broadcast")}return T}()}),!!C&&(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"bullhorn",selected:f,content:"Subspace Tx "+(f?"ON":"OFF"),onClick:function(){function T(){return l("subspace")}return T}()})}),!!C&&(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Button,{icon:g?"volume-up":"volume-mute",selected:g,content:"Loudspeaker",onClick:function(){function T(){return l("toggleLoudspeaker")}return T}()})})]})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Channels",children:[(!b||b.length===0)&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"bad",children:"No channels detected."}),(0,e.createComponentVNode)(2,o.LabeledList,{children:b?b.map(function(T){var M=m.RADIO_CHANNELS.find(function(R){return R.freq===Number(T.freq)}),A="default";return M&&(A=M.color),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:T.display_name,labelColor:A,textAlign:"right",children:T.secure_channel&&f?(0,e.createComponentVNode)(2,o.Button,{icon:T.sec_channel_listen?"square-o":"check-square-o",selected:!T.sec_channel_listen,content:T.sec_channel_listen?"Off":"On",onClick:function(){function R(){return l("channel",{channel:T.chan})}return R}()}):(0,e.createComponentVNode)(2,o.Button,{content:"Switch",selected:T.chan===i,onClick:function(){function R(){return l("specFreq",{channel:T.chan})}return R}()})},T.chan)}):null})]})]})})}return S}()},25114:function(x,r,n){"use strict";r.__esModule=!0,r.RapidPipeDispenser=r.ICON_BY_CATEGORY_NAME=void 0;var e=n(58734),a=n(59641),t=n(40946),o=n(62188),m=n(11790),V=n(11477),k=["Atmospherics","Disposals"],S=r.ICON_BY_CATEGORY_NAME={Atmospherics:"wrench",Disposals:"trash-alt","Transit Tubes":"bus",Pipes:"grip-lines","Disposal Pipes":"grip-lines",Devices:"microchip","Heat Exchange":"thermometer-half","Insulated pipes":"snowflake","Station Equipment":"microchip"},N=[{name:"Dispense",bitmask:1},{name:"Connect",bitmask:2},{name:"Destroy",bitmask:4},{name:"Paint",bitmask:8}],h=function(c,d){var p=(0,o.useBackend)(d),v=p.act,f=p.data,C=f.category,b=f.selected_color,g=f.mode;return(0,e.createComponentVNode)(2,m.Section,{children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Category",children:k.map(function(y,B){return(0,e.createComponentVNode)(2,m.Button,{selected:C===B,icon:S[y],color:"transparent",onClick:function(){function L(){return v("category",{category:B})}return L}(),children:y},y)})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Modes",children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:N.map(function(y){return(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.Button.Checkbox,{checked:g&y.bitmask,fluid:!0,content:y.name,onClick:function(){function B(){return v("mode",{mode:y.bitmask})}return B}()})},y.bitmask)})})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Color",children:[(0,e.createComponentVNode)(2,m.Box,{inline:!0,width:"64px",color:f.paint_colors[b],children:(0,t.capitalize)(b)}),Object.keys(f.paint_colors).map(function(y){return(0,e.createComponentVNode)(2,m.ColorBox,{ml:1,color:f.paint_colors[y],onClick:function(){function B(){return v("color",{paint_color:y})}return B}()},y)})]})]})})},s=function(c,d){var p=(0,o.useBackend)(d),v=p.act,f=p.data,C=f.category,b=f.piping_layer,g=f.pipe_layers,y=f.preview_rows.flatMap(function(B){return B.previews});return(0,e.createComponentVNode)(2,m.Section,{fill:!0,width:7.5,children:[C===0&&(0,e.createComponentVNode)(2,m.Stack,{vertical:!0,mb:1,children:Object.keys(g).map(function(B){return(0,e.createComponentVNode)(2,m.Stack.Item,{my:0,children:(0,e.createComponentVNode)(2,m.Button.Checkbox,{checked:g[B]===b,content:B,onClick:function(){function L(){return v("piping_layer",{piping_layer:g[B]})}return L}()})},B)})}),(0,e.createComponentVNode)(2,m.Box,{width:"120px",children:y.map(function(B){return(0,e.createComponentVNode)(2,m.Button,{ml:0,title:B.dir_name,selected:B.selected,style:{width:"40px",height:"40px",padding:0},onClick:function(){function L(){return v("setdir",{dir:B.dir,flipped:B.flipped})}return L}(),children:(0,e.createComponentVNode)(2,m.Box,{className:(0,a.classes)(["pipes32x32",B.dir+"-"+B.icon_state]),style:{transform:"scale(1.5) translate(9.5%, 9.5%)"}})},B.dir)})})]})},l=function(c,d){var p=(0,o.useBackend)(d),v=p.act,f=p.data,C=f.categories,b=C===void 0?[]:C,g=(0,o.useLocalState)(d,"categoryName"),y=g[0],B=g[1],L=b.find(function(I){return I.cat_name===y})||b[0];return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,m.Tabs,{children:b.map(function(I,w){return(0,e.createComponentVNode)(2,m.Tabs.Tab,{fluid:!0,icon:S[I.cat_name],selected:I.cat_name===L.cat_name,onClick:function(){function T(){return B(I.cat_name)}return T}(),children:I.cat_name},I.cat_name)})}),L==null?void 0:L.recipes.map(function(I){return(0,e.createComponentVNode)(2,m.Button.Checkbox,{fluid:!0,ellipsis:!0,checked:I.selected,content:I.pipe_name,title:I.pipe_name,onClick:function(){function w(){return v("pipe_type",{pipe_type:I.pipe_index,category:L.cat_name})}return w}()},I.pipe_index)})]})},u=r.RapidPipeDispenser=function(){function i(c,d){var p=(0,o.useBackend)(d),v=p.act,f=p.data,C=f.category;return(0,e.createComponentVNode)(2,V.Window,{width:550,height:570,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,h)}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Stack,{vertical:!0,fill:!0,children:(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s)})})}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l)})]})})]})})})}return i}()},83942:function(x,r,n){"use strict";r.__esModule=!0,r.RequestConsole=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=n(11477),V=0,k=1,S=2,N=3,h=4,s=5,l=6,u=7,i=8,c=function(T,M){var A=(0,t.useBackend)(M),R=A.act,O=A.data,_=O.silent;return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,o.Button,{selected:!_,icon:_?"volume-mute":"volume-up",onClick:function(){function P(){return R("toggleSilent")}return P}(),children:["Speaker ",_?"OFF":"ON"]})})},d=function(T,M){var A=(0,t.useBackend)(M),R=A.act,O=A.data,_=O.department,P=O.supply_dept;return(0,e.createComponentVNode)(2,o.Section,{title:"Supplies",children:(0,e.createComponentVNode)(2,f,{dept_list:P,department:_})})},p=function(T,M){var A=(0,t.useBackend)(M),R=A.act,O=A.data,_=O.department,P=O.assist_dept;return(0,e.createComponentVNode)(2,o.Section,{title:"Request assistance from another department",children:(0,e.createComponentVNode)(2,f,{dept_list:P,department:_})})},v=function(T,M){var A=(0,t.useBackend)(M),R=A.act,O=A.data,_=O.department,P=O.info_dept;return(0,e.createComponentVNode)(2,o.Section,{title:"Report Anonymous Information",children:(0,e.createComponentVNode)(2,f,{dept_list:P,department:_})})},f=function(T,M){var A=(0,t.useBackend)(M),R=A.act,O=T.dept_list,_=T.department;return(0,e.createComponentVNode)(2,o.LabeledList,{children:O.sort().map(function(P){return P!==_&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:P,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"envelope-open-text",onClick:function(){function D(){return R("write",{write:P,priority:1})}return D}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"exclamation-triangle",onClick:function(){function D(){return R("write",{write:P,priority:2})}return D}(),children:"High Priority"})],4)})||null})})},C=function(T,M){var A=(0,t.useBackend)(M),R=A.act,O=A.data;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.Box,{fontSize:2,color:"good",children:"Message Sent Successfully"}),(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-right",onClick:function(){function _(){return R("setScreen",{setScreen:V})}return _}(),children:"Continue"})})]})},b=function(T,M){var A=(0,t.useBackend)(M),R=A.act,O=A.data;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.Box,{fontSize:1.5,bold:!0,color:"bad",children:"An error occured. Message Not Sent."}),(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-right",onClick:function(){function _(){return R("setScreen",{setScreen:V})}return _}(),children:"Continue"})})]})},g=function(T,M){var A=(0,t.useBackend)(M),R=A.act,O=A.data,_=O.message_log;return(0,e.createComponentVNode)(2,o.Section,{title:"Messages",children:_.length&&_.map(function(P,D){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:(0,a.decodeHtmlEntities)(P[0]),buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"print",onClick:function(){function z(){return R("print",{print:D+1})}return z}(),children:"Print"}),children:(0,a.decodeHtmlEntities)(P[1])},D)})||(0,e.createComponentVNode)(2,o.Box,{children:"No messages."})})},y=function(T,M){var A=(0,t.useBackend)(M),R=A.act,O=A.data,_=O.message,P=O.recipient,D=O.priority,z=O.msgStamped,U=O.msgVerified;return(0,e.createComponentVNode)(2,o.Section,{title:"Message Authentication",children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Message for "+P,children:_}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Priority",children:D===2?"High Priority":D===1?"Normal Priority":"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Validated By",color:U?"good":"bad",children:(0,a.decodeHtmlEntities)(U)||"No Validation"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stamped By",color:z?"good":"bad",children:(0,a.decodeHtmlEntities)(z)||"No Stamp"})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,icon:"share",onClick:function(){function W(){return R("department",{department:P})}return W}(),children:"Send Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function W(){return R("setScreen",{setScreen:V})}return W}(),children:"Back"})]})},B=function(T,M){var A=(0,t.useBackend)(M),R=A.act,O=A.data,_=O.department,P=O.screen,D=O.message_log,z=O.newmessagepriority,U=O.silent,W=O.announcementConsole,K=O.assist_dept,H=O.supply_dept,Y=O.info_dept,J=O.message,q=O.recipient,oe=O.priority,ae=O.msgStamped,le=O.msgVerified,he=O.announceAuth;return(0,e.createComponentVNode)(2,o.Section,{title:"Send Station-Wide Announcement",children:[he&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"good",mb:1,children:"ID Verified. Authentication Accepted."}),(0,e.createComponentVNode)(2,o.Section,{title:"Message",mt:1,maxHeight:"200px",scrollable:!0,buttons:(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"pen",onClick:function(){function me(){return R("writeAnnouncement")}return me}(),children:"Edit"}),children:J||"No Message"})],4)||(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"bad",mb:1,children:"Swipe your ID card to authenticate yourself."}),(0,e.createComponentVNode)(2,o.Button,{disabled:!J||!he,icon:"share",onClick:function(){function me(){return R("sendAnnouncement")}return me}(),children:"Announce"}),(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function me(){return R("setScreen",{setScreen:V})}return me}(),children:"Back"})]})},L={};L[V]=c,L[k]=p,L[S]=d,L[N]=v,L[h]=C,L[s]=b,L[l]=g,L[u]=y,L[i]=B;var I=r.RequestConsole=function(){function w(T,M){var A=(0,t.useBackend)(M),R=A.act,O=A.data,_=O.screen,P=O.newmessagepriority,D=O.announcementConsole,z=L[_];return(0,e.createComponentVNode)(2,m.Window,{width:520,height:410,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:_===l,onClick:function(){function U(){return R("setScreen",{setScreen:l})}return U}(),icon:"envelope-open-text",children:"Messages"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:_===k,onClick:function(){function U(){return R("setScreen",{setScreen:k})}return U}(),icon:"share-square",children:"Assistance"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:_===S,onClick:function(){function U(){return R("setScreen",{setScreen:S})}return U}(),icon:"share-square",children:"Supplies"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:_===N,onClick:function(){function U(){return R("setScreen",{setScreen:N})}return U}(),icon:"share-square-o",children:"Report"}),D&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:_===i,onClick:function(){function U(){return R("setScreen",{setScreen:i})}return U}(),icon:"volume-up",children:"Announce"})||null,(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:_===V,onClick:function(){function U(){return R("setScreen",{setScreen:V})}return U}(),icon:"cog"})]}),P&&(0,e.createComponentVNode)(2,o.Section,{title:P>1?"NEW PRIORITY MESSAGES":"There are new messages!",color:P>1?"bad":"average",bold:P>1})||null,(0,e.createComponentVNode)(2,z)]})})}return w}()},69701:function(x,r,n){"use strict";r.__esModule=!0,r.ResearchConsole=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=n(11477),V=function(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=B.tech;return(0,e.createComponentVNode)(2,o.Section,{title:"Current Research Levels",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"print",onClick:function(){function I(){return y("print",{print:1})}return I}(),children:"Print This Page"}),children:(0,e.createComponentVNode)(2,o.Table,{children:L.map(function(I){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:I.name}),(0,e.createComponentVNode)(2,o.Box,{children:[" - Level ",I.level]})]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:I.desc})})]},I.name)})})})},k=function(C,b){var g=(0,t.useBackend)(b),y=g.data,B=C.title,L=C.target,I=y[L];return typeof I=="number"?B+" - Page "+(I+1):B},S=function(C,b){var g=(0,t.useBackend)(b),y=g.act,B=C.target;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function L(){return y(B,{reset:!0})}return L}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"chevron-left",onClick:function(){function L(){return y(B,{reverse:-1})}return L}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"chevron-right",onClick:function(){function L(){return y(B,{reverse:1})}return L}()})],4)},N=function(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=B.designs;return(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,k,{title:"Researched Technologies & Designs",target:"design_page"}),buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"print",onClick:function(){function I(){return y("print",{print:2})}return I}(),children:"Print This Page"}),(0,e.createComponentVNode)(2,S,{target:"design_page"})||null],0),children:[(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search for...",value:B.search,onInput:function(){function I(w,T){return y("search",{search:T})}return I}(),mb:1}),L&&L.length&&(0,e.createComponentVNode)(2,o.LabeledList,{children:L.map(function(I){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:I.name,children:I.desc},I.name)})})||(0,e.createComponentVNode)(2,o.Box,{color:"warning",children:"No designs found."})]})},h=function(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=B.tech,I=C.disk;if(!I||!I.present)return null;var w=(0,t.useSharedState)(b,"saveDialogTech",!1),T=w[0],M=w[1];return T?(0,e.createComponentVNode)(2,o.Section,{title:"Load Technology to Disk",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function A(){return M(!1)}return A}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:L.map(function(A){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:A.name,children:(0,e.createComponentVNode)(2,o.Button,{icon:"save",onClick:function(){function R(){M(!1),y("copy_tech",{copy_tech_ID:A.id})}return R}(),children:"Copy To Disk"})},A.name)})})}):(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Disk Contents",children:"(Technology Data Disk)"})}),I.stored&&(0,e.createComponentVNode)(2,o.Box,{mt:2,children:[(0,e.createComponentVNode)(2,o.Box,{children:I.name}),(0,e.createComponentVNode)(2,o.Box,{children:["Level: ",I.level]}),(0,e.createComponentVNode)(2,o.Box,{children:["Description: ",I.desc]}),(0,e.createComponentVNode)(2,o.Box,{mt:1,children:[(0,e.createComponentVNode)(2,o.Button,{icon:"save",onClick:function(){function A(){return y("updt_tech")}return A}(),children:"Upload to Database"}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",onClick:function(){function A(){return y("clear_tech")}return A}(),children:"Clear Disk"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function A(){return y("eject_tech")}return A}(),children:"Eject Disk"})]})]})||(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{children:"This disk has no data stored on it."}),(0,e.createComponentVNode)(2,o.Button,{icon:"save",onClick:function(){function A(){return M(!0)}return A}(),children:"Load Tech To Disk"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function A(){return y("eject_tech")}return A}(),children:"Eject Disk"})]})]})},s=function(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=B.designs,I=C.disk;if(!I||!I.present)return null;var w=(0,t.useSharedState)(b,"saveDialogData",!1),T=w[0],M=w[1];return T?(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,k,{title:"Load Design to Disk",target:"design_page"}),buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function A(){return M(!1)}return A}()}),(0,e.createComponentVNode)(2,S,{target:"design_page"})||null],0),children:[(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search for...",value:B.search,onInput:function(){function A(R,O){return y("search",{search:O})}return A}(),mb:1}),L&&L.length&&(0,e.createComponentVNode)(2,o.LabeledList,{children:L.map(function(A){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:A.name,children:(0,e.createComponentVNode)(2,o.Button,{icon:"save",onClick:function(){function R(){M(!1),y("copy_design",{copy_design_ID:A.id})}return R}(),children:"Copy To Disk"})},A.name)})})||(0,e.createComponentVNode)(2,o.Box,{color:"warning",children:"No designs found."})]}):(0,e.createComponentVNode)(2,o.Box,{children:I.stored&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:I.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Lathe Type",children:I.build_type}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Required Materials",children:Object.keys(I.materials).map(function(A){return(0,e.createComponentVNode)(2,o.Box,{children:[A," x ",I.materials[A]]},A)})})]}),(0,e.createComponentVNode)(2,o.Box,{mt:1,children:[(0,e.createComponentVNode)(2,o.Button,{icon:"save",onClick:function(){function A(){return y("updt_design")}return A}(),children:"Upload to Database"}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",onClick:function(){function A(){return y("clear_design")}return A}(),children:"Clear Disk"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function A(){return y("eject_design")}return A}(),children:"Eject Disk"})]})]})||(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{mb:.5,children:"This disk has no data stored on it."}),(0,e.createComponentVNode)(2,o.Button,{icon:"save",onClick:function(){function A(){return M(!0)}return A}(),children:"Load Design To Disk"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function A(){return y("eject_design")}return A}(),children:"Eject Disk"})]})})},l=function(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=B.info,I=L.d_disk,w=L.t_disk;return!I.present&&!w.present?(0,e.createComponentVNode)(2,o.Section,{title:"Disk Operations",children:"No disk inserted."}):(0,e.createComponentVNode)(2,o.Section,{title:"Disk Operations",children:[(0,e.createComponentVNode)(2,h,{disk:w}),(0,e.createComponentVNode)(2,s,{disk:I})]})},u=function(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=B.info.linked_destroy;if(!L.present)return(0,e.createComponentVNode)(2,o.Section,{title:"Destructive Analyzer",children:"No destructive analyzer found."});var I=L.loaded_item,w=L.origin_tech;return(0,e.createComponentVNode)(2,o.Section,{title:"Destructive Analyzer",children:I&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:I}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Origin Tech",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:w.length&&w.map(function(T){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:T.name,children:[T.level,"\xA0\xA0",T.current&&"(Current: "+T.current+")"]},T.name)})||(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Error",children:"No origin tech found."})})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,color:"red",icon:"eraser",onClick:function(){function T(){return y("deconstruct")}return T}(),children:"Deconstruct Item"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function T(){return y("eject_item")}return T}(),children:"Eject Item"})]})||(0,e.createComponentVNode)(2,o.Box,{children:"No Item Loaded. Standing-by..."})})},i=function(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=C.target,I=C.designs,w=C.buildName,T=C.buildFiveName;return L?(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,k,{target:"builder_page",title:"Designs"}),buttons:(0,e.createComponentVNode)(2,S,{target:"builder_page"}),children:[(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search for...",value:B.search,onInput:function(){function M(A,R){return y("search",{search:R})}return M}(),mb:1}),I&&I.length?I.map(function(M){return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex,{width:"100%",justify:"space-between",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{width:"40%",style:{"word-wrap":"break-all"},children:M.name}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:"15%",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Button,{mb:-1,icon:"wrench",onClick:function(){function A(){return y(w,{build:M.id,imprint:M.id})}return A}(),children:"Build"}),T&&(0,e.createComponentVNode)(2,o.Button,{mb:-1,onClick:function(){function A(){return y(T,{build:M.id,imprint:M.id})}return A}(),children:"x5"})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:"45%",style:{"word-wrap":"break-all"},children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:M.mat_list.join(" ")}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"average",ml:1,children:M.chem_list.join(" ")})]})]}),(0,e.createComponentVNode)(2,o.Divider)],4,M.id)}):(0,e.createComponentVNode)(2,o.Box,{children:"No items could be found matching the parameters (page or search)."})]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Error"})},c=function(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=C.name,I=null,w=null;if(L==="Protolathe"?(I=B.info.linked_lathe,w=B.lathe_designs):(I=B.info.linked_imprinter,w=B.imprinter_designs),!I||!I.present)return(0,e.createComponentVNode)(2,o.Section,{title:L,children:["No ",L," found."]});var T=I,M=T.total_materials,A=T.max_materials,R=T.total_volume,O=T.max_volume,_=T.busy,P=T.mats,D=T.reagents,z=T.queue,U=(0,t.useSharedState)(b,"protoTab",0),W=U[0],K=U[1],H="transparent",Y=!1,J="layer-group";_?(J="hammer",H="average",Y=!0):z&&z.length&&(J="sync",H="green",Y=!0);var q=L==="Protolathe"?"removeP":"removeI",oe=L==="Protolathe"?"lathe_ejectsheet":"imprinter_ejectsheet",ae=L==="Protolathe"?"disposeP":"disposeI",le=L==="Protolathe"?"disposeallP":"disposeallI";return(0,e.createComponentVNode)(2,o.Section,{title:L,buttons:_&&(0,e.createComponentVNode)(2,o.Icon,{name:"sync",spin:!0})||null,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Materials",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:M,maxValue:A,children:[M," cm\xB3 / ",A," cm\xB3"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Chemicals",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:R,maxValue:O,children:[R,"u / ",O,"u"]})})]}),(0,e.createComponentVNode)(2,o.Tabs,{mt:1,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:W===0,onClick:function(){function he(){return K(0)}return he}(),children:"Build"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:J,iconSpin:Y,color:H,selected:W===1,onClick:function(){function he(){return K(1)}return he}(),children:"Queue"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"cookie-bite",selected:W===2,onClick:function(){function he(){return K(2)}return he}(),children:"Mat Storage"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"flask",selected:W===3,onClick:function(){function he(){return K(3)}return he}(),children:"Chem Storage"})]}),W===0&&(0,e.createComponentVNode)(2,i,{target:I,designs:w,buildName:L==="Protolathe"?"build":"imprint",buildFiveName:L==="Protolathe"?"buildfive":null})||W===1&&(0,e.createComponentVNode)(2,o.LabeledList,{children:z.length&&z.map(function(he){return he.index===1?(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:he.name,labelColor:"bad",children:_?(0,e.createComponentVNode)(2,o.Button,{disabled:!0,icon:"trash",children:"Remove"}):(0,e.createComponentVNode)(2,o.Box,{children:["(Awaiting Materials)",(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"trash",onClick:function(){function me(){var Be;return y(q,(Be={},Be[q]=he.index,Be))}return me}(),children:"Remove"})]})}):(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:he.name,children:(0,e.createComponentVNode)(2,o.Button,{icon:"trash",onClick:function(){function me(){var Be;return y(q,(Be={},Be[q]=he.index,Be))}return me}(),children:"Remove"})},he.name)})||(0,e.createComponentVNode)(2,o.Box,{m:1,children:"Queue Empty."})})||W===2&&(0,e.createComponentVNode)(2,o.LabeledList,{children:P.map(function(he){var me=(0,t.useLocalState)(b,"ejectAmt"+he.name,0),Be=me[0],ce=me[1];return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:(0,a.toTitleCase)(he.name),buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.NumberInput,{minValue:0,width:"100px",value:Be,maxValue:he.sheets,onDrag:function(){function te(ee,ie){return ce(ie)}return te}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",disabled:!he.removable,onClick:function(){function te(){var ee;ce(0),y(oe,(ee={},ee[oe]=he.name,ee.amount=Be,ee))}return te}(),children:"Num"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",disabled:!he.removable,onClick:function(){function te(){var ee;return y(oe,(ee={},ee[oe]=he.name,ee.amount=50,ee))}return te}(),children:"All"})],4),children:[he.amount," cm\xB3"]},he.name)})})||W===3&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:D.length&&D.map(function(he){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:he.name,children:[he.volume,"u",(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"eject",onClick:function(){function me(){return y(ae,{dispose:he.id})}return me}(),children:"Purge"})]},he.name)})||(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Empty",children:"No chems detected"})}),(0,e.createComponentVNode)(2,o.Button,{mt:1,icon:"trash",onClick:function(){function he(){return y(le)}return he}(),children:"Disposal All Chemicals In Storage"})]})||(0,e.createComponentVNode)(2,o.Box,{children:"Error"})]})},d=function(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=B.info,I=L.sync,w=L.linked_destroy,T=L.linked_imprinter,M=L.linked_lathe,A=(0,t.useSharedState)(b,"settingsTab",0),R=A[0],O=A[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"cogs",onClick:function(){function _(){return O(0)}return _}(),selected:R===0,children:"General"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"link",onClick:function(){function _(){return O(1)}return _}(),selected:R===1,children:"Device Linkages"})]}),R===0&&(0,e.createComponentVNode)(2,o.Box,{children:[I&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"sync",onClick:function(){function _(){return y("sync")}return _}(),children:"Sync Database with Network"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"unlink",onClick:function(){function _(){return y("togglesync")}return _}(),children:"Disconnect from Research Network"})],4)||(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"link",onClick:function(){function _(){return y("togglesync")}return _}(),children:"Connect to Research Network"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"lock",onClick:function(){function _(){return y("lock")}return _}(),children:"Lock Console"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"red",icon:"trash",onClick:function(){function _(){return y("reset")}return _}(),children:"Reset R&D Database"})]})||R===1&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"sync",mb:1,onClick:function(){function _(){return y("find_device")}return _}(),children:"Re-sync with Nearby Devices"}),(0,e.createComponentVNode)(2,o.LabeledList,{children:[w.present&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Destructive Analyzer",children:(0,e.createComponentVNode)(2,o.Button,{icon:"unlink",onClick:function(){function _(){return y("disconnect",{disconnect:"destroy"})}return _}(),children:"Disconnect"})})||null,M.present&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Protolathe",children:(0,e.createComponentVNode)(2,o.Button,{icon:"unlink",onClick:function(){function _(){return y("disconnect",{disconnect:"lathe"})}return _}(),children:"Disconnect"})})||null,T.present&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Circuit Imprinter",children:(0,e.createComponentVNode)(2,o.Button,{icon:"unlink",onClick:function(){function _(){return y("disconnect",{disconnect:"imprinter"})}return _}(),children:"Disconnect"})})||null]})]})||(0,e.createComponentVNode)(2,o.Box,{children:"Error"})]})},p=[{name:"Protolathe",icon:"wrench",template:(0,e.createComponentVNode)(2,c,{name:"Protolathe"})},{name:"Circuit Imprinter",icon:"digital-tachograph",template:(0,e.createComponentVNode)(2,c,{name:"Circuit Imprinter"})},{name:"Destructive Analyzer",icon:"eraser",template:(0,e.createComponentVNode)(2,u)},{name:"Settings",icon:"cog",template:(0,e.createComponentVNode)(2,d)},{name:"Research List",icon:"flask",template:(0,e.createComponentVNode)(2,V)},{name:"Design List",icon:"file",template:(0,e.createComponentVNode)(2,N)},{name:"Disk Operations",icon:"save",template:(0,e.createComponentVNode)(2,l)}],v=r.ResearchConsole=function(){function f(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=B.busy_msg,I=B.locked,w=(0,t.useSharedState)(b,"rdmenu",0),T=w[0],M=w[1],A=!1;return(L||I)&&(A=!0),(0,e.createComponentVNode)(2,m.Window,{width:850,height:630,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Tabs,{children:p.map(function(R,O){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:R.icon,selected:T===O,disabled:A,onClick:function(){function _(){return M(O)}return _}(),children:R.name},O)})}),L&&(0,e.createComponentVNode)(2,o.Section,{title:"Processing...",children:L})||I&&(0,e.createComponentVNode)(2,o.Section,{title:"Console Locked",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function R(){return y("lock")}return R}(),icon:"lock-open",children:"Unlock"})})||p[T].template]})})}return f}()},6743:function(x,r,n){"use strict";r.__esModule=!0,r.ResearchServerController=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(45445),V=r.ResearchServerController=function(){function l(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data;return(0,e.createComponentVNode)(2,o.Window,{width:575,height:430,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,k)})})}return l}(),k=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.badmin,f=p.servers,C=p.consoles,b=(0,a.useSharedState)(i,"selectedServer",null),g=b[0],y=b[1],B=f.find(function(L){return L.id===g});return B?(0,e.createComponentVNode)(2,S,{setSelectedServer:y,server:B}):(0,e.createComponentVNode)(2,t.Section,{title:"Server Selection",children:f.map(function(L){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"eye",onClick:function(){function I(){return y(L.id)}return I}(),children:L.name})},L.name)})})},S=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.badmin,f=u.server,C=u.setSelectedServer,b=(0,a.useSharedState)(i,"tab",0),g=b[0],y=b[1];return(0,e.createComponentVNode)(2,t.Section,{title:f.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"undo",onClick:function(){function B(){return C(null)}return B}(),children:"Back"}),children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===0,onClick:function(){function B(){return y(0)}return B}(),children:"Access Rights"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===1,onClick:function(){function B(){return y(1)}return B}(),children:"Data Management"}),v&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===2,onClick:function(){function B(){return y(2)}return B}(),color:"red",children:"Server-to-Server Transfer"})||null]}),g===0&&(0,e.createComponentVNode)(2,N,{server:f})||null,g===1&&(0,e.createComponentVNode)(2,h,{server:f})||null,g===2&&v&&(0,e.createComponentVNode)(2,s,{server:f})||null]})},N=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=u.server,f=p.consoles,C=function(y,B){return y.id_with_upload.indexOf(B.id)!==-1},b=function(y,B){return y.id_with_download.indexOf(B.id)!==-1};return(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Consoles",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:f.length&&f.map(function(g){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:g.name+" ("+g.loc+")",children:[(0,e.createComponentVNode)(2,t.Button,{icon:C(v,g)?"lock-open":"lock",selected:C(v,g),onClick:function(){function y(){return d("toggle_upload",{server:v.ref,console:g.ref})}return y}(),children:C(v,g)?"Upload On":"Upload Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:b(v,g)?"lock-open":"lock",selected:b(v,g),onClick:function(){function y(){return d("toggle_download",{server:v.ref,console:g.ref})}return y}(),children:b(v,g)?"Download On":"Download Off"})]},g.name)})})})},h=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=u.server;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Research Levels",children:v.tech.map(function(f){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:f.name,buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",confirmIcon:"trash",color:"red",content:"Reset",onClick:function(){function C(){return d("reset_tech",{server:v.ref,tech:f.id})}return C}()})},f.name)})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Designs",children:(0,m.filter)(function(f){return!!f.name})(v.designs).map(function(f){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:f.name,buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",confirmIcon:"trash",color:"red",content:"Delete",onClick:function(){function C(){return d("reset_design",{server:v.ref,design:f.id})}return C}()})},f.name)})})],4)},s=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=u.server,f=p.badmin,C=p.servers;return f?(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Server Data Transfer",children:C.map(function(b){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button.Confirm,{fluid:!0,color:"bad",content:(0,e.createComponentVNode)(2,t.Box,{children:["Transfer from ",v.name," To ",b.name]}),onClick:function(){function g(){return d("transfer_data",{server:v.ref,target:b.ref})}return g}()})},b.name)})}):null}},1319:function(x,r,n){"use strict";r.__esModule=!0,r.ResleevingConsole=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(48388),V=n(11477),k=1,S=2,N=3,h=function(L,I){var w=(0,t.useBackend)(I),T=w.act,M=w.data,A=L.args,R=A.activerecord,O=A.realname,_=A.obviously_dead,P=A.oocnotes,D=A.can_sleeve_active;return(0,e.createComponentVNode)(2,o.Section,{level:2,m:"-1rem",pb:"1rem",title:"Mind Record ("+O+")",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"times",color:"red",onClick:function(){function z(){return T("modal_close")}return z}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:O}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:_}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:!D,icon:"user-plus",content:"Sleeve",onClick:function(){function z(){return T("sleeve",{ref:R,mode:1})}return z}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-plus",content:"Card",onClick:function(){function z(){return T("sleeve",{ref:R,mode:2})}return z}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"OOC Notes",children:(0,e.createComponentVNode)(2,o.Section,{style:{"word-break":"break-all",height:"100px"},scrollable:!0,children:P})})]})})},s=function(L,I){var w=(0,t.useBackend)(I),T=w.act,M=w.data,A=L.args,R=A.activerecord,O=A.realname,_=A.species,P=A.sex,D=A.mind_compat,z=A.synthetic,U=A.oocnotes,W=A.can_grow_active;return(0,e.createComponentVNode)(2,o.Section,{level:2,m:"-1rem",pb:"1rem",title:"Body Record ("+O+")",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"times",color:"red",onClick:function(){function K(){return T("modal_close")}return K}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:O}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Species",children:_}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Bio. Sex",children:P}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mind Compat",children:D}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Synthetic",children:z?"Yes":"No"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"OOC Notes",children:(0,e.createComponentVNode)(2,o.Section,{style:{"word-break":"break-all",height:"100px"},scrollable:!0,children:U})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,o.Button,{disabled:!W,icon:"user-plus",content:z?"Build":"Grow",onClick:function(){function K(){return T("create",{ref:R})}return K}()})})]})})},l=r.ResleevingConsole=function(){function B(L,I){var w=(0,t.useBackend)(I),T=w.act,M=w.data,A=M.menu,R=M.coredumped,O=M.emergency,_=(0,e.createFragment)([(0,e.createComponentVNode)(2,g),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,flexGrow:"1",children:(0,e.createComponentVNode)(2,i)})],4);return R&&(_=(0,e.createComponentVNode)(2,c)),O&&(_=(0,e.createComponentVNode)(2,d)),(0,m.modalRegisterBodyOverride)("view_b_rec",s),(0,m.modalRegisterBodyOverride)("view_m_rec",h),(0,e.createComponentVNode)(2,V.Window,{width:640,height:520,resizable:!0,children:[(0,e.createComponentVNode)(2,m.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.createComponentVNode)(2,V.Window.Content,{className:"Layout__content--flexColumn",children:_})]})}return B}(),u=function(L,I){var w=(0,t.useBackend)(I),T=w.act,M=w.data,A=M.menu;return(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:A===k,icon:"home",onClick:function(){function R(){return T("menu",{num:k})}return R}(),children:"Main"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:A===S,icon:"folder",onClick:function(){function R(){return T("menu",{num:S})}return R}(),children:"Body Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:A===N,icon:"folder",onClick:function(){function R(){return T("menu",{num:N})}return R}(),children:"Mind Records"})]})},i=function(L,I){var w=(0,t.useBackend)(I),T=w.data,M=T.menu,A=T.bodyrecords,R=T.mindrecords,O;return M===k?O=(0,e.createComponentVNode)(2,p):M===S?O=(0,e.createComponentVNode)(2,b,{records:A,actToDo:"view_b_rec"}):M===N&&(O=(0,e.createComponentVNode)(2,b,{records:R,actToDo:"view_m_rec"})),O},c=function(L,I){return(0,e.createComponentVNode)(2,o.Dimmer,{children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",justify:"space-evenly",align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Icon,{size:12,color:"bad",name:"exclamation-triangle"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,color:"bad",mt:5,children:(0,e.createVNode)(1,"h2",null,"TransCore dump completed. Resleeving offline.",16)})]})})},d=function(L,I){var w=(0,t.useBackend)(I),T=w.act;return(0,e.createComponentVNode)(2,o.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:(0,e.createVNode)(1,"h1",null,"TRANSCORE DUMP",16)}),(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:(0,e.createVNode)(1,"h2",null,"!!WARNING!!",16)}),(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"This will transfer all minds to the dump disk, and the TransCore will be made unusable until post-shift maintenance! This should only be used in emergencies!"}),(0,e.createComponentVNode)(2,o.Box,{mt:4,children:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject Disk",color:"good",onClick:function(){function M(){return T("ejectdisk")}return M}()})}),(0,e.createComponentVNode)(2,o.Box,{mt:4,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Core Dump",confirmContent:"Disable Transcore?",color:"bad",onClick:function(){function M(){return T("coredump")}return M}()})})]})},p=function(L,I){var w=(0,t.useBackend)(I),T=w.act,M=w.data,A=M.loading,R=M.scantemp,O=M.occupant,_=M.locked,P=M.can_brainscan,D=M.scan_mode,z=M.pods,U=M.selected_pod,W=_&&!!O;return(0,e.createComponentVNode)(2,o.Section,{title:"Pods",level:"2",children:[(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,f)]})},v=function(L,I){var w=(0,t.useBackend)(I),T=w.act,M=w.data,A=M.pods,R=M.spods,O=M.selected_pod;return A&&A.length?A.map(function(_,P){var D;return _.status==="cloning"?D=(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:_.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:(0,a.round)(_.progress,0)+"%"})}):_.status==="mess"?D=(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):D=(0,e.createComponentVNode)(2,o.Button,{selected:O===_.pod,icon:O===_.pod&&"check",content:"Select",mt:R&&R.length?"2rem":"0.5rem",onClick:function(){function z(){return T("selectpod",{ref:_.pod})}return z}()}),(0,e.createComponentVNode)(2,o.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"pod_"+_.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,o.Box,{color:"label",children:_.name}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:_.biomass>=150?"good":"bad",inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:_.biomass>=150?"circle":"circle-o"}),"\xA0",_.biomass]}),D]},P)}):null},f=function(L,I){var w=(0,t.useBackend)(I),T=w.act,M=w.data,A=M.sleevers,R=M.spods,O=M.selected_sleever;return A&&A.length?A.map(function(_,P){return(0,e.createComponentVNode)(2,o.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"sleeve_"+(_.occupied?"occupied":"empty")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,o.Box,{color:_.occupied?"label":"bad",children:_.name}),(0,e.createComponentVNode)(2,o.Button,{selected:O===_.sleever,icon:O===_.sleever&&"check",content:"Select",mt:R&&R.length?"3rem":"1.5rem",onClick:function(){function D(){return T("selectsleever",{ref:_.sleever})}return D}()})]},P)}):null},C=function(L,I){var w=(0,t.useBackend)(I),T=w.act,M=w.data,A=M.spods,R=M.selected_printer;return A&&A.length?A.map(function(O,_){var P;return O.status==="cloning"?P=(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:O.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:(0,a.round)(O.progress,0)+"%"})}):O.status==="mess"?P=(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):P=(0,e.createComponentVNode)(2,o.Button,{selected:R===O.spod,icon:R===O.spod&&"check",content:"Select",mt:"0.5rem",onClick:function(){function D(){return T("selectprinter",{ref:O.spod})}return D}()}),(0,e.createComponentVNode)(2,o.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"synthprinter"+(O.busy?"_working":"")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,o.Box,{color:"label",children:O.name}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:O.steel>=15e3?"good":"bad",inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:O.steel>=15e3?"circle":"circle-o"}),"\xA0",O.steel]}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:O.glass>=15e3?"good":"bad",inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:O.glass>=15e3?"circle":"circle-o"}),"\xA0",O.glass]}),P]},_)}):null},b=function(L,I){var w=(0,t.useBackend)(I),T=w.act,M=L.records,A=L.actToDo;return M.length?(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:M.map(function(R,O){return(0,e.createComponentVNode)(2,o.Button,{icon:"user",mb:"0.5rem",content:R.name,onClick:function(){function _(){return T(A,{ref:R.recref})}return _}()},O)})}):(0,e.createComponentVNode)(2,o.Flex,{height:"100%",mt:"0.5rem",children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No records found."]})})},g=function(L,I){var w,T=(0,t.useBackend)(I),M=T.act,A=T.data,R=A.temp;if(!(!R||!R.text||R.text.length<=0)){var O=(w={},w[R.style]=!0,w);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.NoticeBox,Object.assign({},O,{children:[(0,e.createComponentVNode)(2,o.Box,{display:"inline-block",verticalAlign:"middle",children:R.text}),(0,e.createComponentVNode)(2,o.Button,{icon:"times-circle",float:"right",onClick:function(){function _(){return M("cleartemp")}return _}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"both"})]})))}},y=function(L,I){var w=(0,t.useBackend)(I),T=w.act,M=w.data,A=M.pods,R=M.spods,O=M.sleevers,_=M.autoallowed,P=M.autoprocess,D=M.disk;return(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pods",children:A&&A.length?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[A.length," connected"]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None connected!"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"SynthFabs",children:R&&R.length?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[R.length," connected"]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None connected!"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sleevers",children:O&&O.length?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[O.length," Connected"]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None connected!"})})]})})}},7426:function(x,r,n){"use strict";r.__esModule=!0,r.ResleevingPod=void 0;var e=n(58734),a=n(11477),t=n(62188),o=n(11790),m=r.ResleevingPod=function(){function V(k,S){var N=(0,t.useBackend)(S),h=N.data,s=h.occupied,l=h.name,u=h.health,i=h.maxHealth,c=h.stat,d=h.mindStatus,p=h.mindName,v=h.resleeveSick,f=h.initialSick;return(0,e.createComponentVNode)(2,a.Window,{width:300,height:350,resizeable:!0,children:(0,e.createComponentVNode)(2,a.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",children:s?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:l}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:c===2?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"DEAD"}):c===1?(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"Unconscious"}):(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},value:u/i,children:[u,"%"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mind Status",children:d?"Present":"Missing"}),d?(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mind Occupying",children:p}):""]}),v?(0,e.createComponentVNode)(2,o.Box,{color:"average",mt:3,children:["Warning: Resleeving Sickness detected.",f?(0,e.createFragment)([(0,e.createTextVNode)(" "),(0,e.createTextVNode)("Motion Sickness also detected. Please allow the newly resleeved person a moment to get their bearings. This warning will disappear when Motion Sickness is no longer detected.")],0):""]}):""],0):(0,e.createComponentVNode)(2,o.Box,{bold:!0,m:1,children:"Unoccupied."})})})})}return V}()},21429:function(x,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.RoboticsControlConsole=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.can_hack,i=l.safety,c=l.show_detonate_all,d=l.cyborgs,p=d===void 0?[]:d;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!c&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Self Destruct",children:[(0,e.createComponentVNode)(2,t.Button,{icon:i?"lock":"unlock",content:i?"Disable Safety":"Enable Safety",selected:i,onClick:function(){function v(){return s("arm",{})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",disabled:i,content:"Destroy ALL Cyborgs",color:"bad",onClick:function(){function v(){return s("nuke",{})}return v}()})]}),(0,e.createComponentVNode)(2,V,{cyborgs:p,can_hack:u})]})})}return k}(),V=function(S,N){var h=S.cyborgs,s=S.can_hack,l=(0,a.useBackend)(N),u=l.act,i=l.data;return h.length?h.map(function(c){return(0,e.createComponentVNode)(2,t.Section,{title:c.name,buttons:(0,e.createFragment)([!!c.hackable&&!c.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function d(){return u("hackbot",{ref:c.ref})}return d}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:c.locked_down?"unlock":"lock",color:c.locked_down?"good":"default",content:c.locked_down?"Release":"Lockdown",disabled:!i.auth,onClick:function(){function d(){return u("stopbot",{ref:c.ref})}return d}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Detonate",disabled:!i.auth,color:"bad",onClick:function(){function d(){return u("killbot",{ref:c.ref})}return d}()})],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:c.status?"bad":c.locked_down?"average":"good",children:c.status?"Not Responding":c.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:c.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:c.health>50?"good":"bad",value:c.health/100})}),typeof c.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:c.charge>30?"good":"bad",value:c.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:c.cell_capacity<3e4?"average":"good",children:c.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"})}),!!c.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:c.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:c.synchronization?"default":"average",children:c.synchronization||"None"})})]})},c.ref)}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cyborg units detected within access parameters."})}},30941:function(x,r,n){"use strict";r.__esModule=!0,r.RogueZones=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.RogueZones=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.timeout_percent,u=s.diffstep,i=s.difficulty,c=s.occupied,d=s.scanning,p=s.updated,v=s.debug,f=s.shuttle_location,C=s.shuttle_at_station,b=s.scan_ready,g=s.can_recall_shuttle;return(0,e.createComponentVNode)(2,o.Window,{width:360,height:250,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Current Area",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mineral Content",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Location",buttons:g&&(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"rocket",onClick:function(){function y(){return h("recall_shuttle")}return y}(),children:"Recall Shuttle"})||null,children:f}),c&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{color:"bad",labelColor:"bad",label:"Personnel",children:["WARNING: Area occupied by ",c," personnel!"]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Personnel",color:"good",children:"No personnel detected."})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Scanner",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!b,fluid:!0,icon:"search",onClick:function(){function y(){return h("scan_for_new")}return y}(),children:"Scan For Asteroids"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Scn Ramestat Core",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l,maxValue:100,ranges:{good:[100,1/0],average:[75,100],bad:[-1/0,75]}})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Scanning",children:"In progress."})||null,p&&!d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Info",children:"Updated shuttle destination!"})||null,v&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Debug",labelColor:"bad",children:[(0,e.createComponentVNode)(2,t.Box,{children:["Timeout Percent: ",l]}),(0,e.createComponentVNode)(2,t.Box,{children:["Diffstep: ",u]}),(0,e.createComponentVNode)(2,t.Box,{children:["Difficulty: ",i]}),(0,e.createComponentVNode)(2,t.Box,{children:["Occupied: ",c]}),(0,e.createComponentVNode)(2,t.Box,{children:["Debug: ",v]}),(0,e.createComponentVNode)(2,t.Box,{children:["Shuttle Location: ",f]}),(0,e.createComponentVNode)(2,t.Box,{children:["Shuttle at station: ",C]}),(0,e.createComponentVNode)(2,t.Box,{children:["Scan Ready: ",b]})]})||null]})})]})})}return V}()},82713:function(x,r,n){"use strict";r.__esModule=!0,r.RustCoreMonitorContent=r.RustCoreMonitor=void 0;var e=n(58734),a=n(62188),t=n(11477),o=n(11790),m=r.RustCoreMonitor=function(){function k(){return(0,e.createComponentVNode)(2,t.Window,{width:627,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,V)})})}return k}(),V=r.RustCoreMonitorContent=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.cores;return(0,e.createComponentVNode)(2,o.Section,{title:"Cores",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pencil-alt",content:"Set Tag",onClick:function(){function i(){return s("set_tag")}return i}()}),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:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Position"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Field Status"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Reactant Mode"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Field Instability"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Field Temperature"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Field Strength"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Plasma Content"})]}),u.map(function(i){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:i.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[i.x,", ",i.y,", ",i.z]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:i.has_field?"Online":"Offline",selected:i.has_field,disabled:!i.core_operational,onClick:function(){function c(){return s("toggle_active",{core:i.ref})}return c}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:i.reactant_dump?"Dump":"Maintain",selected:i.has_field,disabled:!i.core_operational,onClick:function(){function c(){return s("toggle_reactantdump",{core:i.ref})}return c}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:i.field_instability}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:i.field_temperature}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Knob,{forcedInputWidth:"60px",size:1.25,color:!!i.has_field&&"yellow",value:i.target_field_strength,unit:"(W.m^-3)",minValue:1,maxValue:1e3,stepPixelSize:1,onDrag:function(){function c(d,p){return s("set_fieldstr",{core:i.ref,fieldstr:p})}return c}()})}),(0,e.createComponentVNode)(2,o.Table.Cell)]},i.name)})]})})}return k}()},27743:function(x,r,n){"use strict";r.__esModule=!0,r.RustFuelControl=r.RustFuelContent=void 0;var e=n(58734),a=n(62188),t=n(11477),o=n(11790),m=r.RustFuelControl=function(){function k(){return(0,e.createComponentVNode)(2,t.Window,{width:627,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,V)})})}return k}(),V=r.RustFuelContent=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.fuels;return(0,e.createComponentVNode)(2,o.Section,{title:"Fuel Injectors",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pencil-alt",content:"Set Tag",onClick:function(){function i(){return s("set_tag")}return i}()}),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:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Position"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Remaining Fuel"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Fuel Rod Composition"})]}),u.map(function(i){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:i.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[i.x,", ",i.y,", ",i.z]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:i.active?"Online":"Offline",selected:i.active,disabled:!i.deployed,onClick:function(){function c(){return s("toggle_active",{fuel:i.ref})}return c}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:i.fuel_amt}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:i.fuel_type})]},i.name)})]})})}return k}()},75614:function(x,r,n){"use strict";r.__esModule=!0,r.Secbot=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.Secbot=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.on,u=s.open,i=s.locked,c=s.idcheck,d=s.check_records,p=s.check_arrest,v=s.arrest_type,f=s.declare_arrests,C=s.bot_patrolling,b=s.patrol;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:320,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Automatic Security Unit v2.0",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:l,onClick:function(){function g(){return h("power")}return g}(),children:l?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",color:u?"bad":"good",children:u?"Open":"Closed"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Behavior Controls",color:i?"good":"bad",children:i?"Locked":"Unlocked"})]})}),!i&&(0,e.createComponentVNode)(2,t.Section,{title:"Behavior Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Check for Weapon Authorization",children:(0,e.createComponentVNode)(2,t.Button,{icon:c?"toggle-on":"toggle-off",selected:c,onClick:function(){function g(){return h("idcheck")}return g}(),children:c?"Yes":"No"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Check Security Records",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){function g(){return h("ignorerec")}return g}(),children:d?"Yes":"No"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Check Arrest Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){function g(){return h("ignorearr")}return g}(),children:p?"Yes":"No"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Operating Mode",children:(0,e.createComponentVNode)(2,t.Button,{icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){function g(){return h("switchmode")}return g}(),children:v?"Detain":"Arrest"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Report Arrests",children:(0,e.createComponentVNode)(2,t.Button,{icon:f?"toggle-on":"toggle-off",selected:f,onClick:function(){function g(){return h("declarearrests")}return g}(),children:f?"Yes":"No"})}),!!C&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Patrol",children:(0,e.createComponentVNode)(2,t.Button,{icon:b?"toggle-on":"toggle-off",selected:b,onClick:function(){function g(){return h("patrol")}return g}(),children:b?"Yes":"No"})})]})})||null]})})}return V}()},69919:function(x,r,n){"use strict";r.__esModule=!0,r.SecureSafe=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=function(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=[["1","4","7","R"],["2","5","8","0"],["3","6","9","E"]],i=l.locked,c=l.l_setshort,d=l.code,p=l.emagged;return(0,e.createComponentVNode)(2,t.Box,{width:"185px",children:(0,e.createComponentVNode)(2,t.Grid,{width:"1px",children:u.map(function(v){return(0,e.createComponentVNode)(2,t.Grid.Column,{children:v.map(function(f){return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,bold:!0,mb:"6px",content:f,textAlign:"center",fontSize:"40px",height:"50px",lineHeight:1.25,disabled:!!p||!!c&&1||f!=="R"&&!i||d==="ERROR"&&f!=="R"&&1,onClick:function(){function C(){return s("type",{digit:f})}return C}()},f)})},v[0])})})})},V=r.SecureSafe=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.code,i=l.l_setshort,c=l.l_set,d=l.emagged,p=l.locked,v=!(c||i);return(0,e.createComponentVNode)(2,o.Window,{width:250,height:380,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Box,{m:"6px",children:[v&&(0,e.createComponentVNode)(2,t.NoticeBox,{textAlign:"center",info:1,children:"ENTER NEW 5-DIGIT PASSCODE."}),!!d&&(0,e.createComponentVNode)(2,t.NoticeBox,{textAlign:"center",danger:1,children:"LOCKING SYSTEM ERROR - 1701"}),!!i&&(0,e.createComponentVNode)(2,t.NoticeBox,{textAlign:"center",danger:1,children:"ALERT: MEMORY SYSTEM ERROR - 6040 201"}),(0,e.createComponentVNode)(2,t.Section,{height:"60px",children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",position:"center",fontSize:"35px",children:u&&u||(0,e.createComponentVNode)(2,t.Box,{textColor:p?"red":"green",children:p?"LOCKED":"UNLOCKED"})})}),(0,e.createComponentVNode)(2,t.Flex,{ml:"3px",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,t.Flex.Item,{ml:"6px",width:"129px"})]})]})})})}return k}()},92983:function(x,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(48388),m=n(11477),V=n(39813),k=n(50947),S=n(45246),N=function(v,f){(0,o.modalOpen)(v,"edit",{field:f.edit,value:f.value})},h=r.SecurityRecords=function(){function p(v,f){var C=(0,a.useBackend)(f),b=C.data,g=b.authenticated,y=b.screen;if(!g)return(0,e.createComponentVNode)(2,m.Window,{width:700,height:680,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,k.LoginScreen)})});var B;return y===2?B=(0,e.createComponentVNode)(2,s):y===3?B=(0,e.createComponentVNode)(2,l):y===4&&(B=(0,e.createComponentVNode)(2,u)),(0,e.createComponentVNode)(2,m.Window,{width:700,height:680,resizable:!0,children:[(0,e.createComponentVNode)(2,o.ComplexModal,{maxHeight:"100%",maxWidth:"400px"}),(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,V.LoginInfo),(0,e.createComponentVNode)(2,S.TemporaryNotice),(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,t.Section,{flexGrow:!0,children:B})]})]})}return p}(),s=function(v,f){var C=(0,a.useBackend)(f),b=C.act,g=C.data,y=g.records;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Input,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(){function B(L,I){return b("search",{t1:I})}return B}()}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:y.map(function(B,L){return(0,e.createComponentVNode)(2,t.Button,{icon:"user",mb:"0.5rem",color:B.color,content:B.id+": "+B.name+" (Criminal Status: "+B.criminal+")",onClick:function(){function I(){return b("d_rec",{d_rec:B.ref})}return I}()},L)})})],4)},l=function(v,f){var C=(0,a.useBackend)(f),b=C.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Security Records",onClick:function(){function g(){return b("del_all")}return g}()})],0)},u=function(v,f){var C=(0,a.useBackend)(f),b=C.act,g=C.data,y=g.security,B=g.printing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"General Data",mt:"-6px",children:(0,e.createComponentVNode)(2,i)}),(0,e.createComponentVNode)(2,t.Section,{title:"Security Data",children:(0,e.createComponentVNode)(2,c)}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",disabled:!!y.empty,content:"Delete Security Record",color:"bad",onClick:function(){function L(){return b("del_r")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",disabled:!!y.empty,content:"Delete Record (All)",color:"bad",onClick:function(){function L(){return b("del_r_2")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:B?"spinner":"print",disabled:B,iconSpin:!!B,content:"Print Entry",ml:"0.5rem",onClick:function(){function L(){return b("print_p")}return L}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){function L(){return b("screen",{screen:2})}return L}()})]})],4)},i=function(v,f){var C=(0,a.useBackend)(f),b=C.act,g=C.data,y=g.general;return!y||!y.fields?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"General records lost!"}):(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:y.fields.map(function(B,L){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:B.field,children:[(0,e.createComponentVNode)(2,t.Box,{height:"20px",inline:!0,preserveWhitespace:!0,children:B.value}),!!B.edit&&(0,e.createComponentVNode)(2,t.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function I(){return N(f,B)}return I}()})]},L)})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"right",children:[!!y.has_photos&&y.photos.map(function(B,L){return(0,e.createComponentVNode)(2,t.Box,{display:"inline-block",textAlign:"center",color:"label",children:[(0,e.createVNode)(1,"img",null,null,1,{src:B.substr(1,B.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createVNode)(1,"br"),"Photo #",L+1]},L)}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function B(){return b("photo_front")}return B}(),children:"Update Front Photo"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function B(){return b("photo_side")}return B}(),children:"Update Side Photo"})]})]})]})},c=function(v,f){var C=(0,a.useBackend)(f),b=C.act,g=C.data,y=g.security;return!y||!y.fields?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:["Security records lost!",(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){function B(){return b("new")}return B}()})]}):(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList,{children:y.fields.map(function(B,L){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:B.field,children:(0,e.createComponentVNode)(2,t.Box,{preserveWhitespace:!0,children:[B.value,(0,e.createComponentVNode)(2,t.Button,{icon:"pen",ml:"0.5rem",mb:B.line_break?"1rem":"initial",onClick:function(){function I(){return N(f,B)}return I}()})]})},L)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Comments/Log",children:[y.comments.length===0?(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No comments found."}):y.comments.map(function(B,L){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,children:B.header}),(0,e.createVNode)(1,"br"),B.text,(0,e.createComponentVNode)(2,t.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function I(){return b("del_c",{del_c:L+1})}return I}()})]},L)}),(0,e.createComponentVNode)(2,t.Button,{icon:"comment",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){function B(){return(0,o.modalOpen)(f,"add_c")}return B}()})]})],4)},d=function(v,f){var C=(0,a.useBackend)(f),b=C.act,g=C.data,y=g.screen;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:y===2,icon:"list",onClick:function(){function B(){return b("screen",{screen:2})}return B}(),children:"List Records"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"wrench",selected:y===3,onClick:function(){function B(){return b("screen",{screen:3})}return B}(),children:"Record Maintenance"})]})}},24217:function(x,r,n){"use strict";r.__esModule=!0,r.SeedStorage=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(40946),V=n(45445),k=r.SeedStorage=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.scanner,c=u.seeds,d=(0,V.sortBy)(function(p){return p.name.toLowerCase()})(c);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:760,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Seeds",children:d.map(function(p){return(0,e.createComponentVNode)(2,t.Flex,{spacing:1,mt:-1,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"60%",children:(0,e.createComponentVNode)(2,t.Collapsible,{title:(0,m.toTitleCase)(p.name)+" #"+p.uid,children:(0,e.createComponentVNode)(2,t.Section,{width:"165%",title:"Traits",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:Object.keys(p.traits).map(function(v){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,m.toTitleCase)(v),children:p.traits[v]},v)})})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mt:.4,children:[p.amount," Remaining"]}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"download",onClick:function(){function v(){return l("vend",{id:p.id})}return v}(),children:"Vend"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"trash",onClick:function(){function v(){return l("purge",{id:p.id})}return v}(),children:"Purge"})})]},p.name+p.uid)})})})})}return S}()},37707:function(x,r,n){"use strict";r.__esModule=!0,r.ShieldCapacitor=void 0;var e=n(58734),a=n(62188),t=n(11477),o=n(11790),m=n(5339),V=n(43820),k=r.ShieldCapacitor=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.active,c=u.time_since_fail,d=u.stored_charge,p=u.max_charge,v=u.charge_rate,f=u.max_charge_rate;return(0,e.createComponentVNode)(2,t.Window,{width:500,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",selected:i,content:i?"Online":"Offline",onClick:function(){function C(){return l("toggle")}return C}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Capacitor Status",children:c>2?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"OK."}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Discharging!"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored Energy",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:d,format:function(){function C(b){return(0,V.formatSiUnit)(b,0,"J")}return C}()})," ","(",(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:100*(0,m.round)(d/p,1)}),"%)"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Charge Rate",children:(0,e.createComponentVNode)(2,o.NumberInput,{value:v,step:100,stepPixelSize:.2,minValue:1e4,maxValue:f,format:function(){function C(b){return(0,V.formatPower)(b)}return C}(),onDrag:function(){function C(b,g){return l("charge_rate",{rate:g})}return C}()})})]})})})})}return S}()},92794:function(x,r,n){"use strict";r.__esModule=!0,r.ShieldGenerator=void 0;var e=n(58734),a=n(62188),t=n(11477),o=n(11790),m=n(5339),V=n(43820),k=n(84288),S=r.ShieldGenerator=function(){function s(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.locked;return(0,e.createComponentVNode)(2,t.Window,{width:500,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:p?(0,e.createComponentVNode)(2,N):(0,e.createComponentVNode)(2,h)})})}return s}(),N=function(l,u){return(0,e.createComponentVNode)(2,k.FullscreenNotice,{title:"Locked",children:[(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",bold:!0,children:(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,e.createComponentVNode)(2,o.Box,{color:"label",my:"1rem",children:"Swipe your ID to begin."})]})},h=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.lockedData,v=p.capacitors,f=p.active,C=p.failing,b=p.radius,g=p.max_radius,y=p.z_range,B=p.max_z_range,L=p.average_field_strength,I=p.target_field_strength,w=p.max_field_strength,T=p.shields,M=p.upkeep,A=p.strengthen_rate,R=p.max_strengthen_rate,O=p.gen_power,_=(v||[]).length;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Field Status",children:C?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Unstable"}):(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Stable"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Overall Field Strength",children:[(0,m.round)(L,2)," Renwick (",I&&(0,m.round)(100*L/I,1)||"NA","%)"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Upkeep Power",children:(0,V.formatPower)(M)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Shield Generation Power",children:(0,V.formatPower)(O)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Currently Shielded",children:[T," m\xB2"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Capacitors",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:_?v.map(function(P,D){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Capacitor #"+D,children:[P.active?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Online"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Offline"}),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Charge",children:[(0,V.formatSiUnit)(P.stored_charge,0,"J")," (",100*(0,m.round)(P.stored_charge/P.max_charge,2),"%)"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:P.failing?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Discharging"}):(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"OK."})})]})]},D)}):(0,e.createComponentVNode)(2,o.LabeledList.Item,{color:"bad",children:"No Capacitors Connected"})})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:f?"Online":"Offline",selected:f,onClick:function(){function P(){return c("toggle")}return P}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Coverage Radius",children:(0,e.createComponentVNode)(2,o.NumberInput,{fluid:!0,stepPixelSize:6,minValue:0,maxValue:g,value:b,unit:"m",onDrag:function(){function P(D,z){return c("change_radius",{val:z})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Vertical Shielding",children:(0,e.createComponentVNode)(2,o.NumberInput,{fluid:!0,stepPixelSize:12,minValue:0,maxValue:B,value:y,unit:"vertical range",onDrag:function(){function P(D,z){return c("z_range",{val:z})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Charge Rate",children:(0,e.createComponentVNode)(2,o.NumberInput,{fluid:!0,stepPixelSize:12,minValue:0,step:.1,maxValue:R,value:A,format:function(){function P(D){return(0,m.round)(D,1)}return P}(),unit:"Renwick/s",onDrag:function(){function P(D,z){return c("strengthen_rate",{val:z})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Maximum Field Strength",children:(0,e.createComponentVNode)(2,o.NumberInput,{fluid:!0,stepPixelSize:12,minValue:1,maxValue:w,value:I,unit:"Renwick",onDrag:function(){function P(D,z){return c("target_field_strength",{val:z})}return P}()})})]})})],4)}},56780:function(x,r,n){"use strict";r.__esModule=!0,r.ShutoffMonitorContent=r.ShutoffMonitor=void 0;var e=n(58734),a=n(62188),t=n(11477),o=n(11790),m=r.ShutoffMonitor=function(){function k(S,N){return(0,e.createComponentVNode)(2,t.Window,{width:627,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,V)})})}return k}(),V=r.ShutoffMonitorContent=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.valves;return(0,e.createComponentVNode)(2,o.Section,{title:"Valves",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:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Position"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Open"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Mode"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Actions"})]}),u.map(function(i){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:i.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[i.x,", ",i.y,", ",i.z]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:i.open?"Yes":"No"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:i.enabled?"Auto":"Manual"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:i.open?"Opened":"Closed",selected:i.open,disabled:!i.enabled,onClick:function(){function c(){return s("toggle_open",{valve:i.ref})}return c}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:i.enabled?"Auto":"Manual",selected:i.enabled,onClick:function(){function c(){return s("toggle_enable",{valve:i.ref})}return c}()})]})]},i.name)})]})})}return k}()},7309:function(x,r,n){"use strict";r.__esModule=!0,r.ShuttleControl=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=n(11477),V=function(d,p){var v="ERROR",f="bad",C=!1;return d==="docked"?(v="DOCKED",f="good"):d==="docking"?(v="DOCKING",f="average",C=!0):d==="undocking"?(v="UNDOCKING",f="average",C=!0):d==="undocked"&&(v="UNDOCKED",f="#676767"),C&&p&&(v=v+"-MANUAL"),(0,e.createComponentVNode)(2,o.Box,{color:f,children:v})},k=function(d,p){var v=(0,t.useBackend)(p),f=v.act,C=v.data,b=d.engineName,g=b===void 0?"Bluespace Drive":b,y=C.shuttle_status,B=C.shuttle_state,L=C.has_docking,I=C.docking_status,w=C.docking_override,T=C.docking_codes;return(0,e.createComponentVNode)(2,o.Section,{title:"Shuttle Status",children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",mb:1,children:y}),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:g,children:B==="idle"&&(0,e.createComponentVNode)(2,o.Box,{color:"#676767",bold:!0,children:"IDLE"})||B==="warmup"&&(0,e.createComponentVNode)(2,o.Box,{color:"#336699",children:"SPINNING UP"})||B==="in_transit"&&(0,e.createComponentVNode)(2,o.Box,{color:"#336699",children:"ENGAGED"})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"ERROR"})}),L&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Docking Status",children:V(I,w)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Docking Codes",children:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",onClick:function(){function M(){return f("set_codes")}return M}(),children:T||"Not Set"})})],4)||null]})]})},S=function(d,p){var v=(0,t.useBackend)(p),f=v.act,C=v.data,b=C.can_launch,g=C.can_cancel,y=C.can_force;return(0,e.createComponentVNode)(2,o.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,o.Flex,{spacing:1,children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function B(){return f("move")}return B}(),disabled:!b,icon:"rocket",fluid:!0,children:"Launch Shuttle"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function B(){return f("cancel")}return B}(),disabled:!g,icon:"ban",fluid:!0,children:"Cancel Launch"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function B(){return f("force")}return B}(),color:"bad",disabled:!y,icon:"exclamation-triangle",fluid:!0,children:"Force Launch"})})]})})},N=function(d,p){var v=(0,t.useBackend)(p),f=v.act,C=v.data;return(0,e.createFragment)([(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,S)],4)},h=function(d,p){var v=(0,t.useBackend)(p),f=v.act,C=v.data,b=C.can_cloak,g=C.can_pick,y=C.legit,B=C.cloaked,L=C.destination_name;return(0,e.createFragment)([(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,o.Section,{title:"Multishuttle Controls",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[b&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:y?"ATC Inhibitor":"Cloaking",children:(0,e.createComponentVNode)(2,o.Button,{selected:B,icon:B?"eye":"eye-o",onClick:function(){function I(){return f("toggle_cloaked")}return I}(),children:B?"Enabled":"Disabled"})})||null,(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Destination",children:(0,e.createComponentVNode)(2,o.Button,{icon:"taxi",disabled:!g,onClick:function(){function I(){return f("pick")}return I}(),children:L})})]})}),(0,e.createComponentVNode)(2,S)],4)},s=function(d,p){var v=(0,t.useBackend)(p),f=v.act,C=v.data,b=C.can_pick,g=C.destination_name,y=C.fuel_usage,B=C.fuel_span,L=C.remaining_fuel;return(0,e.createFragment)([(0,e.createComponentVNode)(2,k,{engineName:"Engines"}),(0,e.createComponentVNode)(2,o.Section,{title:"Jump Controls",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Destination",children:(0,e.createComponentVNode)(2,o.Button,{icon:"taxi",disabled:!b,onClick:function(){function I(){return f("pick")}return I}(),children:g})}),y&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Est. Delta-V Budget",color:B,children:[L," m/s"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Avg. Delta-V Per Maneuver",children:[y," m/s"]})],4)||null]})}),(0,e.createComponentVNode)(2,S)],4)},l=function(d,p){var v=(0,t.useBackend)(p),f=v.act,C=v.data,b=C.autopilot,g=C.can_rename,y=C.shuttle_state,B=C.is_moving,L=C.skip_docking,I=C.docking_status,w=C.docking_override,T=C.shuttle_location,M=C.can_cloak,A=C.cloaked,R=C.can_autopilot,O=C.routes,_=C.is_in_transit,P=C.travel_progress,D=C.time_left,z=C.doors,U=C.sensors;return(0,e.createFragment)([b&&(0,e.createComponentVNode)(2,o.Section,{title:"AI PILOT (CLASS D) ACTIVE",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,italic:!0,children:"This vessel will start and stop automatically. Ensure that all non-cycling capable hatches and doors are closed, as the automated system may not be able to control them. Docking and flight controls are locked. To unlock, disable the automated flight system."})})||null,(0,e.createComponentVNode)(2,o.Section,{title:"Shuttle Status",buttons:g&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",onClick:function(){function W(){return f("rename_command")}return W}(),children:"Rename"})||null,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Engines",children:y==="idle"&&(0,e.createComponentVNode)(2,o.Box,{color:"#676767",bold:!0,children:"IDLE"})||y==="warmup"&&(0,e.createComponentVNode)(2,o.Box,{color:"#336699",children:"SPINNING UP"})||y==="in_transit"&&(0,e.createComponentVNode)(2,o.Box,{color:"#336699",children:"ENGAGED"})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"ERROR"})}),!B&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Location",children:(0,a.toTitleCase)(T)}),!L&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Docking Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{selected:I==="docked",disabled:I!=="undocked"&&I!=="docked",onClick:function(){function W(){return f("dock_command")}return W}(),children:"Dock"}),(0,e.createComponentVNode)(2,o.Button,{selected:I==="undocked",disabled:I!=="docked"&&I!=="undocked",onClick:function(){function W(){return f("undock_command")}return W}(),children:"Undock"})],4),children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,inline:!0,children:V(I,w)})})||null,M&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cloaking",children:(0,e.createComponentVNode)(2,o.Button,{selected:A,icon:A?"eye":"eye-o",onClick:function(){function W(){return f("toggle_cloaked")}return W}(),children:A?"Enabled":"Disabled"})})||null,R&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Autopilot",children:(0,e.createComponentVNode)(2,o.Button,{selected:b,icon:b?"eye":"eye-o",onClick:function(){function W(){return f("toggle_autopilot")}return W}(),children:b?"Enabled":"Disabled"})})||null],0)||null]}),!B&&(0,e.createComponentVNode)(2,o.Section,{level:2,title:"Available Destinations",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:O.length&&O.map(function(W){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:W.name,children:(0,e.createComponentVNode)(2,o.Button,{icon:"rocket",onClick:function(){function K(){return f("traverse",{traverse:W.index})}return K}(),children:W.travel_time})},W.name)})||(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Error",color:"bad",children:"No routes found."})})})||null]}),_&&(0,e.createComponentVNode)(2,o.Section,{title:"Transit ETA",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Distance from target",children:(0,e.createComponentVNode)(2,o.ProgressBar,{color:"good",minValue:0,maxValue:100,value:P,children:[D,"s"]})})})})||null,Object.keys(z).length&&(0,e.createComponentVNode)(2,o.Section,{title:"Hatch Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:Object.keys(z).map(function(W){var K=z[W];return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:W,children:[K.open&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"bad",children:"Open"})||(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"good",children:"Closed"}),"\xA0-\xA0",K.bolted&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"good",children:"Bolted"})||(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"bad",children:"Unbolted"})]},W)})})})||null,Object.keys(U).length&&(0,e.createComponentVNode)(2,o.Section,{title:"Sensors",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:Object.keys(U).map(function(W){var K=U[W];return K.reading===-1?(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:W,color:"bad",children:"Unable to get sensor air reading."}):(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:W,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pressure",children:[K.pressure,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[K.temp,"\xB0C"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Oxygen",children:[K.oxygen,"%"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Nitrogen",children:[K.nitrogen,"%"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Carbon Dioxide",children:[K.carbon_dioxide,"%"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Phoron",children:[K.phoron,"%"]}),K.other&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Other",children:[K.other,"%"]})||null]})},W)})})})||null],0)},u={ShuttleControlConsoleDefault:(0,e.createComponentVNode)(2,N),ShuttleControlConsoleMulti:(0,e.createComponentVNode)(2,h),ShuttleControlConsoleExploration:(0,e.createComponentVNode)(2,s),ShuttleControlConsoleWeb:(0,e.createComponentVNode)(2,l)},i=r.ShuttleControl=function(){function c(d,p){var v=(0,t.useBackend)(p),f=v.act,C=v.data,b=C.subtemplate;return(0,e.createComponentVNode)(2,m.Window,{width:470,height:b==="ShuttleControlConsoleWeb"?560:370,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:u[b]})})}return c}()},76289:function(x,r,n){"use strict";r.__esModule=!0,r.SignalerContent=r.Signaler=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(11477),V=r.Signaler=function(){function S(){return(0,e.createComponentVNode)(2,m.Window,{width:280,height:132,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,k)})})}return S}(),k=r.SignalerContent=function(){function S(N,h){var s=(0,t.useBackend)(h),l=s.act,u=s.data,i=u.code,c=u.frequency,d=u.minFrequency,p=u.maxFrequency;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.Grid,{children:[(0,e.createComponentVNode)(2,o.Grid.Column,{size:1.4,color:"label",children:"Frequency:"}),(0,e.createComponentVNode)(2,o.Grid.Column,{children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:d/10,maxValue:p/10,value:c/10,format:function(){function v(f){return(0,a.toFixed)(f,1)}return v}(),width:"80px",onDrag:function(){function v(f,C){return l("freq",{freq:C})}return v}()})}),(0,e.createComponentVNode)(2,o.Grid.Column,{children:(0,e.createComponentVNode)(2,o.Button,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){function v(){return l("reset",{reset:"freq"})}return v}()})})]}),(0,e.createComponentVNode)(2,o.Grid,{mt:.6,children:[(0,e.createComponentVNode)(2,o.Grid.Column,{size:1.4,color:"label",children:"Code:"}),(0,e.createComponentVNode)(2,o.Grid.Column,{children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:i,width:"80px",onDrag:function(){function v(f,C){return l("code",{code:C})}return v}()})}),(0,e.createComponentVNode)(2,o.Grid.Column,{children:(0,e.createComponentVNode)(2,o.Button,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){function v(){return l("reset",{reset:"code"})}return v}()})})]}),(0,e.createComponentVNode)(2,o.Grid,{mt:.8,children:(0,e.createComponentVNode)(2,o.Grid.Column,{children:(0,e.createComponentVNode)(2,o.Button,{mb:-.1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function v(){return l("signal")}return v}()})})})]})}return S}()},78491:function(x,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(11477),V=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],k=[["Resp","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},N=["bad","average","average","good","average","average","bad"],h=r.Sleeper=function(){function p(v,f){var C=(0,t.useBackend)(f),b=C.act,g=C.data,y=g.hasOccupant,B=y?(0,e.createComponentVNode)(2,s):(0,e.createComponentVNode)(2,d);return(0,e.createComponentVNode)(2,m.Window,{width:550,height:760,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{className:"Layout__content--flexColumn",children:B})})}return p}(),s=function(v,f){var C=(0,t.useBackend)(f),b=C.act,g=C.data,y=g.occupant,B=g.dialysis,L=g.stomachpumping;return(0,e.createFragment)([(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,i,{title:"Dialysis",active:B,actToDo:"togglefilter"}),(0,e.createComponentVNode)(2,i,{title:"Stomach Pump",active:L,actToDo:"togglepump"}),(0,e.createComponentVNode)(2,c)],4)},l=function(v,f){var C=(0,t.useBackend)(f),b=C.act,g=C.data,y=g.occupant,B=g.auto_eject_dead,L=g.stasis;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 b("auto_eject_dead_"+(B?"off":"on"))}return I}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function I(){return b("ejectify")}return I}()}),(0,e.createComponentVNode)(2,o.Button,{content:L,onClick:function(){function I(){return b("changestasis")}return I}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:y.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:0,max:y.maxHealth,value:y.health/y.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(y.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:V[y.stat][0],children:V[y.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:y.maxTemp,value:y.bodyTemperature/y.maxTemp,color:N[y.temperatureSuitability+3],children:[(0,a.round)(y.btCelsius,0),"\xB0C,",(0,a.round)(y.btFaren,0),"\xB0F"]})}),!!y.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:y.bloodMax,value:y.bloodLevel/y.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[y.bloodPercent,"%, ",y.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[y.pulse," BPM"]})],4)]})})},u=function(v,f){var C=(0,t.useBackend)(f),b=C.data,g=b.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:k.map(function(y,B){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:y[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:g[y[1]]/100,ranges:S,children:(0,a.round)(g[y[1]],0)},B)},B)})})})},i=function(v,f){var C=(0,t.useBackend)(f),b=C.act,g=C.data,y=g.isBeakerLoaded,B=g.beakerMaxSpace,L=g.beakerFreeSpace,I=v.active,w=v.actToDo,T=v.title,M=I&&L>0;return(0,e.createComponentVNode)(2,o.Section,{title:T,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!y||L<=0,selected:M,icon:M?"toggle-on":"toggle-off",content:M?"Active":"Inactive",onClick:function(){function A(){return b(w)}return A}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!y,icon:"eject",content:"Eject",onClick:function(){function A(){return b("removebeaker")}return A}()})],4),children:y?(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:B,value:L/B,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."})})},c=function(v,f){var C=(0,t.useBackend)(f),b=C.act,g=C.data,y=g.occupant,B=g.chemicals,L=g.maxchem,I=g.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Chemicals",flexGrow:"1",children:B.map(function(w,T){var M="",A;return w.overdosing?(M="bad",A=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):w.od_warning&&(M="average",A=(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:A,children:(0,e.createComponentVNode)(2,o.Flex,{align:"flex-start",children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:L,value:w.occ_amount/L,color:M,mr:"0.5rem",children:[w.pretty_amount,"/",L,"u"]}),I.map(function(R,O){return(0,e.createComponentVNode)(2,o.Button,{disabled:!w.injectable||w.occ_amount+R>L||y.stat===2,icon:"syringe",content:R,mb:"0",height:"19px",onClick:function(){function _(){return b("chemical",{chemid:w.id,amount:R})}return _}()},O)})]})})},T)})})},d=function(v,f){var C=(0,t.useBackend)(f),b=C.act,g=C.data,y=g.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Section,{textAlign:"center",flexGrow:"1",children:(0,e.createComponentVNode)(2,o.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",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.",y&&(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Remove Beaker",onClick:function(){function B(){return b("removebeaker")}return B}()})})||null]})})})}},47296:function(x,r,n){"use strict";r.__esModule=!0,r.SmartVend=void 0;var e=n(58734),a=n(45445),t=n(62188),o=n(11790),m=n(11477),V=r.SmartVend=function(){function k(S,N){var h=(0,t.useBackend)(N),s=h.act,l=h.config,u=h.data;return(0,e.createComponentVNode)(2,m.Window,{width:500,height:550,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Storage",children:[u.secure&&(0,e.createComponentVNode)(2,o.NoticeBox,{danger:u.locked===-1,info:u.locked!==-1,children:u.locked===-1?(0,e.createComponentVNode)(2,o.Box,{children:"Sec.re ACC_** //):securi_nt.diag=>##'or 1=1'%($..."}):(0,e.createComponentVNode)(2,o.Box,{children:"Secure Access: Please have your identification ready."})})||null,u.contents.length===0&&(0,e.createComponentVNode)(2,o.NoticeBox,{children:["Unfortunately, this ",l.title," is empty."]})||(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:"Item"}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:"Amount"}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:"Dispense"})]}),(0,a.map)(function(i,c){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:i.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:[i.amount," in stock"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:[(0,e.createComponentVNode)(2,o.Button,{content:"1",disabled:i.amount<1,onClick:function(){function d(){return s("Release",{index:i.index,amount:1})}return d}()}),(0,e.createComponentVNode)(2,o.Button,{content:"5",disabled:i.amount<5,onClick:function(){function d(){return s("Release",{index:i.index,amount:5})}return d}()}),(0,e.createComponentVNode)(2,o.Button,{content:"25",disabled:i.amount<25,onClick:function(){function d(){return s("Release",{index:i.index,amount:25})}return d}()}),(0,e.createComponentVNode)(2,o.Button,{content:"50",disabled:i.amount<50,onClick:function(){function d(){return s("Release",{index:i.index,amount:50})}return d}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Custom",disabled:i.amount<1,onClick:function(){function d(){return s("Release",{index:i.index})}return d}()}),(0,e.createComponentVNode)(2,o.Button,{content:"All",disabled:i.amount<1,onClick:function(){function d(){return s("Release",{index:i.index,amount:i.amount})}return d}()})]})]},c)})(u.contents)]})]})})})}return k}()},11524:function(x,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(43820),m=n(11477),V=n(5339),k=1e3,S=r.Smes=function(){function N(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.capacityPercent,d=i.capacity,p=i.charge,v=i.inputAttempt,f=i.inputting,C=i.inputLevel,b=i.inputLevelMax,g=i.inputAvailable,y=i.outputAttempt,B=i.outputting,L=i.outputLevel,I=i.outputLevelMax,w=i.outputUsed,T=c>=100&&"good"||f&&"average"||"bad",M=B&&"good"||p>0&&"average"||"bad";return(0,e.createComponentVNode)(2,m.Window,{width:340,height:350,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[(0,V.round)(p/(1e3*60),1)," kWh /"," ",(0,V.round)(d/(1e3*60))," kWh (",c,"%)"]})}),(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:v?"sync-alt":"times",selected:v,onClick:function(){function A(){return u("tryinput")}return A}(),children:v?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:T,children:c>=100&&"Fully Charged"||f&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,t.Flex,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:C===0,onClick:function(){function A(){return u("input",{target:"min"})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:C===0,onClick:function(){function A(){return u("input",{adjust:-1e4})}return A}()})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:C/k,fillValue:g/k,minValue:0,maxValue:b/k,step:5,stepPixelSize:4,format:function(){function A(R){return(0,o.formatPower)(R*k,1)}return A}(),onDrag:function(){function A(R,O){return u("input",{target:O*k})}return A}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:C===b,onClick:function(){function A(){return u("input",{adjust:1e4})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:C===b,onClick:function(){function A(){return u("input",{target:"max"})}return A}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(g)})]})}),(0,e.createComponentVNode)(2,t.Section,{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:y?"power-off":"times",selected:y,onClick:function(){function A(){return u("tryoutput")}return A}(),children:y?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:M,children:B?"Sending":p>0?"Not Sending":"No Charge"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Output",children:(0,e.createComponentVNode)(2,t.Flex,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:L===0,onClick:function(){function A(){return u("output",{target:"min"})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:L===0,onClick:function(){function A(){return u("output",{adjust:-1e4})}return A}()})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:L/k,minValue:0,maxValue:I/k,step:5,stepPixelSize:4,format:function(){function A(R){return(0,o.formatPower)(R*k,1)}return A}(),onDrag:function(){function A(R,O){return u("output",{target:O*k})}return A}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:L===I,onClick:function(){function A(){return u("output",{adjust:1e4})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:L===I,onClick:function(){function A(){return u("output",{target:"max"})}return A}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(w)})]})})]})})}return N}()},48027:function(x,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(5339),V=r.SolarControl=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.generated,i=l.generated_ratio,c=l.sun_angle,d=l.array_angle,p=l.rotation_rate,v=l.max_rotation_rate,f=l.tracking_state,C=l.connected_panels,b=l.connected_tracker;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:230,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 g(){return s("refresh")}return g}()}),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:b?"good":"bad",children:b?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color:C>0?"good":"bad",children:C})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:1.5,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:i,children:u+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Star orientation",children:[c,"\xB0"]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracking",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:f===0,onClick:function(){function g(){return s("tracking",{mode:0})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:f===1,onClick:function(){function g(){return s("tracking",{mode:1})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:f===2,disabled:!b,onClick:function(){function g(){return s("tracking",{mode:2})}return g}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Azimuth",children:[(f===0||f===1)&&(0,e.createComponentVNode)(2,t.NumberInput,{width:"52px",unit:"\xB0",step:1,stepPixelSize:2,minValue:-360,maxValue:720,value:d,format:function(){function g(y){var B=Math.sign(y)>0?" (CW)":" (CCW)";return Math.abs((0,m.round)(y))+B}return g}(),onDrag:function(){function g(y,B){return s("azimuth",{value:B})}return g}()}),f===1&&(0,e.createComponentVNode)(2,t.NumberInput,{width:"80px",unit:"deg/h",step:1,minValue:-v-.01,maxValue:v+.01,value:p,format:function(){function g(y){var B=Math.sign(y)>0?" (CW)":" (CCW)";return Math.abs((0,m.round)(y))+B}return g}(),onDrag:function(){function g(y,B){return s("azimuth_rate",{value:B})}return g}()}),f===2&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mt:"3px",children:[d+"\xB0"," (auto)"]})]})]})})]})})}return k}()},99621:function(x,r,n){"use strict";r.__esModule=!0,r.SpaceHeater=void 0;var e=n(58734),a=n(78419),t=n(62188),o=n(11790),m=n(11477),V=r.SpaceHeater=function(){function k(S,N){var h=(0,t.useBackend)(N),s=h.act,l=h.data,u=l.temp,i=l.minTemp,c=l.maxTemp,d=l.cell,p=l.power;return(0,e.createComponentVNode)(2,m.Window,{width:300,height:250,resizable:!0,children:(0,e.createComponentVNode)(2,m.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:"Target Temperature",children:[u," K (",u-a.T0C,"\xB0 C)"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Charge",children:[p,"% ",!d&&"(No Cell Inserted)"]})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,o.LabeledControls,{children:[(0,e.createComponentVNode)(2,o.LabeledControls.Item,{label:"Thermostat",children:(0,e.createComponentVNode)(2,o.Knob,{animated:!0,value:u-a.T0C,minValue:i-a.T0C,maxValue:c-a.T0C,unit:"C",onChange:function(){function v(f,C){return s("temp",{newtemp:C+a.T0C})}return v}()})}),(0,e.createComponentVNode)(2,o.LabeledControls.Item,{label:"Cell",children:d?(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject Cell",onClick:function(){function v(){return s("cellremove")}return v}()}):(0,e.createComponentVNode)(2,o.Button,{icon:"car-battery",content:"Insert Cell",onClick:function(){function v(){return s("cellinstall")}return v}()})})]})})]})})}return k}()},80498:function(x,r,n){"use strict";r.__esModule=!0,r.Stack=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.Stack=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.amount,p=c.recipes;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Amount: "+d,children:(0,e.createComponentVNode)(2,V,{recipes:p})})})})}return h}(),V=function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=s.recipes,p=Object.keys(d).sort();return p.map(function(v){var f=d[v];return f.ref===void 0?(0,e.createComponentVNode)(2,t.Collapsible,{ml:1,mb:-.7,color:"label",title:v,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,children:(0,e.createComponentVNode)(2,h,{recipes:f})})}):(0,e.createComponentVNode)(2,N,{title:v,recipe:f})})},k=function(s,l){return s.req_amount>l?0:Math.floor(l/s.req_amount)},S=function(s,l){for(var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=s.recipe,p=s.maxMultiplier,v=Math.min(p,Math.floor(d.max_res_amount/d.res_amount)),f=[5,10,25],C=[],b=function(){var L=y[g];v>=L&&C.push((0,e.createComponentVNode)(2,t.Button,{content:L*d.res_amount+"x",onClick:function(){function I(){return i("make",{ref:d.ref,multiplier:L})}return I}()}))},g=0,y=f;g<y.length;g++)b();return f.indexOf(v)===-1&&C.push((0,e.createComponentVNode)(2,t.Button,{content:v*d.res_amount+"x",onClick:function(){function B(){return i("make",{ref:d.ref,multiplier:v})}return B}()})),C},N=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.amount,p=s.recipe,v=s.title,f=p.res_amount,C=p.max_res_amount,b=p.req_amount,g=p.ref,y=v;y+=" (",y+=b+" ",y+="sheet"+(b>1?"s":""),y+=")",f>1&&(y=f+"x "+y);var B=k(p,d);return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Table,{children:(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,disabled:!B,icon:"wrench",content:y,onClick:function(){function L(){return i("make",{ref:p.ref,multiplier:1})}return L}()})}),C>1&&B>1&&(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,S,{recipe:p,maxMultiplier:B})})]})})})}},66528:function(x,r,n){"use strict";r.__esModule=!0,r.StarcasterCh=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(37655),V=r.StarcasterCh=function(){function N(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.article,d=(0,e.createComponentVNode)(2,S);return c&&(d=(0,e.createComponentVNode)(2,k)),(0,e.createComponentVNode)(2,o.Window,{width:575,height:750,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:d})})}return N}(),k=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.article;if(!c)return(0,e.createComponentVNode)(2,t.Section,{children:"Error: Article not found."});var d=c.title,p=c.cover,v=c.content;return(0,e.createComponentVNode)(2,t.Section,{title:"Viewing: "+d,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",onClick:function(){function f(){return u("PRG_reset")}return f}(),children:"Close"}),children:[!!p&&(0,e.createVNode)(1,"img",null,null,1,{src:(0,m.resolveAsset)(p)}),(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:v}})]})},S=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.showing_archived,d=i.all_articles;return(0,e.createComponentVNode)(2,t.Section,{title:"Articles List",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{onClick:function(){function p(){return u("PRG_toggle_archived")}return p}(),checked:c,children:"Show Archived"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.length&&d.map(function(p){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:p.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"download",onClick:function(){function v(){return u("PRG_openarticle",{uid:p.uid})}return v}()})},p.uid)})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Error",children:"Unable to connect to Starfire database."})})})}},93840:function(x,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.StationAlertConsole=function(){function k(){return(0,e.createComponentVNode)(2,o.Window,{width:425,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,V)})})}return k}(),V=r.StationAlertConsoleContent=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.categories,i=u===void 0?[]:u;return i.map(function(c){return(0,e.createComponentVNode)(2,t.Section,{title:c.category,children:(0,e.createVNode)(1,"ul",null,[c.alarms.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),c.alarms.map(function(d){var p="";return d.has_cameras?p=(0,e.createComponentVNode)(2,t.Section,{children:d.cameras.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{disabled:v.deact,content:v.name+(v.deact?" (deactived)":""),icon:"video",onClick:function(){function f(){return s("switchTo",{camera:v.camera})}return f}()},v.name)})}):d.lost_sources&&(p=(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:["Lost Alarm Sources: ",d.lost_sources]})),(0,e.createVNode)(1,"li",null,[d.name,d.origin_lost?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Alarm Origin Lost."}):"",p],0,null,d.name)})],0)},c.category)})}return k}()},50976:function(x,r,n){"use strict";r.__esModule=!0,r.StationBlueprintsContent=r.StationBlueprints=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.StationBlueprints=function(){function k(S,N){return(0,e.createComponentVNode)(2,o.Window,{width:870,height:708,resizable:!0,children:(0,e.createComponentVNode)(2,V)})}return k}(),V=r.StationBlueprintsContent=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=h.config,i=l.mapRef,c=l.areas,d=l.turfs;return(0,e.createFragment)([(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:"Honk!"}),2),(0,e.createVNode)(1,"div","CameraConsole__right",(0,e.createComponentVNode)(2,t.ByondUi,{className:"CameraConsole__map",params:{id:i,type:"map"}}),2)],4)}return k}()},31357:function(x,r,n){"use strict";r.__esModule=!0,r.StockExchange=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.StockExchange=function(){function l(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.screen,f=p.stationName,C;return v==="stocks"?C=(0,e.createComponentVNode)(2,V):v==="logs"?C=(0,e.createComponentVNode)(2,N):v==="archive"?C=(0,e.createComponentVNode)(2,h):v==="graph"&&(C=(0,e.createComponentVNode)(2,s)),(0,e.createComponentVNode)(2,o.Window,{width:600,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:f+" Stock Exchange",children:C})})})}return l}(),V=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.balance,f=p.stationName,C=p.viewMode,b=(0,e.createComponentVNode)(2,k);return C==="Full"?b=(0,e.createComponentVNode)(2,k):C==="Compressed"&&(b=(0,e.createComponentVNode)(2,S)),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("Welcome, "),(0,e.createVNode)(1,"b",null,[f,(0,e.createTextVNode)(" Cargo Department")],0),(0,e.createTextVNode)(" |"),(0,e.createTextVNode)(" ")],0),(0,e.createVNode)(1,"span",null,[(0,e.createVNode)(1,"b",null,"Credits:",16),(0,e.createTextVNode)(" "),v],0),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"View mode: ",16),(0,e.createComponentVNode)(2,t.Button,{content:C,onClick:function(){function g(){return d("stocks_cycle_view")}return g}()}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Stock Transaction Log: ",16),(0,e.createComponentVNode)(2,t.Button,{icon:"list",content:"Check",onClick:function(){function g(){return d("stocks_check")}return g}()}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"This is a work in progress. Certain features may not be available.",16),(0,e.createComponentVNode)(2,t.Section,{title:"Listed Stocks",children:b})]})},k=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.stocks,f=v===void 0?[]:v;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"b",null,"Actions:",16)," + Buy, - Sell, (A)rchives, (H)istory",(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"\xA0"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Owned"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Avail"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),(0,e.createComponentVNode)(2,t.Divider),f.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"\xA0"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"label",children:C.ID}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"label",children:C.Name}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"label",children:C.Value}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"label",children:C.Owned}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"label",children:C.Avail}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"label",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"plus",disabled:!1,onClick:function(){function b(){return d("stocks_buy",{share:C.REF})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"minus",disabled:!1,onClick:function(){function b(){return d("stocks_sell",{share:C.REF})}return b}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"A",onClick:function(){function b(){return d("stocks_archive",{share:C.REF})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"H",onClick:function(){function b(){return d("stocks_history",{share:C.REF})}return b}()}),(0,e.createVNode)(1,"br")]})]},C.ID)})]})]})},S=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.stocks,f=v===void 0?[]:v;return(0,e.createComponentVNode)(2,t.Box,{children:f.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"span",null,C.name,0)," ",(0,e.createVNode)(1,"span",null,C.ID,0),C.bankrupt===1&&(0,e.createVNode)(1,"b",null,"BANKRUPT",16,{color:"red"}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Unified shares",16)," ",C.Unification," ago.",(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Current value per share:",16)," ",C.Value," |"," ",(0,e.createComponentVNode)(2,t.Button,{content:"View history",onClick:function(){function b(){return d("stocks_history",{share:C.REF})}return b}()}),(0,e.createVNode)(1,"br"),"You currently own ",(0,e.createVNode)(1,"b",null,C.Owned,0)," shares in this company.",(0,e.createVNode)(1,"br"),"There are ",C.Avail," purchasable shares on the market currently.",(0,e.createVNode)(1,"br"),C.bankrupt===1?(0,e.createVNode)(1,"span",null,"You cannot buy or sell shares in a bankrupt company!",16):(0,e.createVNode)(1,"span",null,[(0,e.createComponentVNode)(2,t.Button,{content:"Buy shares",onClick:function(){function b(){return d("stocks_buy",{share:C.REF})}return b}()}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("|"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,t.Button,{content:"Sell shares",onClick:function(){function b(){return d("stocks_sell",{share:C.REF})}return b}()})],0),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Prominent products:",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"i",null,C.Products,0),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"View news archives",onClick:function(){function b(){return d("stocks_archive",{share:C.REF})}return b}()})," ",(0,e.createComponentVNode)(2,t.Divider)]},C.ID)})})},N=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.logs,f=v===void 0?[]:v;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h2",null,"Stock Transaction Logs",16),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Go back",onClick:function(){function C(){return d("stocks_backbutton")}return C}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"div",null,f.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.type!=="borrow"?(0,e.createVNode)(1,"div",null,[C.time,(0,e.createTextVNode)(" | "),(0,e.createVNode)(1,"b",null,C.user_name,0),(0,e.createTextVNode)(" "),C.type==="transaction_bought"?(0,e.createVNode)(1,"span",null,"bought",16):(0,e.createVNode)(1,"span",null,"sold",16),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"b",null,C.stocks,0),(0,e.createTextVNode)(" stocks at "),C.shareprice,(0,e.createTextVNode)(" a share for"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"b",null,C.money,0),(0,e.createTextVNode)(" total credits"),(0,e.createTextVNode)(" "),C.type==="transaction_bought"?(0,e.createVNode)(1,"span",null,"in",16):(0,e.createVNode)(1,"span",null,"from",16),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"b",null,C.company_name,0),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br")],0):(0,e.createVNode)(1,"div",null,[C.time,(0,e.createTextVNode)(" | "),(0,e.createVNode)(1,"b",null,C.user_name,0),(0,e.createTextVNode)(" borrowed "),(0,e.createVNode)(1,"b",null,C.stocks,0),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("stocks with a deposit of "),(0,e.createVNode)(1,"b",null,C.money,0),(0,e.createTextVNode)(" credits in"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"b",null,C.company_name,0),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br")],0),(0,e.createComponentVNode)(2,t.Divider)]},C.time)}),0)]})},h=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.name,f=p.events,C=f===void 0?[]:f,b=p.articles,g=b===void 0?[]:b;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h2",null,[(0,e.createTextVNode)("News feed for "),v],0),(0,e.createComponentVNode)(2,t.Button,{content:"Go back",onClick:function(){function y(){return d("stocks_backbutton")}return y}()}),(0,e.createVNode)(1,"h3",null,"Events",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"div",null,C.map(function(y){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"div",null,[(0,e.createVNode)(1,"b",null,y.current_title,0),(0,e.createVNode)(1,"br"),y.current_desc],0),(0,e.createComponentVNode)(2,t.Divider)]},y.current_title)}),0),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"Articles",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"div",null,g.map(function(y){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"div",null,[(0,e.createVNode)(1,"b",null,y.headline,0),(0,e.createVNode)(1,"i",null,y.subtitle,0),(0,e.createVNode)(1,"br"),y.article,(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("- "),y.author,(0,e.createTextVNode)(", "),y.spacetime,(0,e.createTextVNode)(" (via"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,y.outlet,0),(0,e.createTextVNode)(")")],0),(0,e.createComponentVNode)(2,t.Divider)]},y.headline)}),0)]})},s=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.name,f=p.maxValue,C=p.values,b=C===void 0?[]:C;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Go back",onClick:function(){function g(){return d("stocks_backbutton")}return g}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Section,{position:"relative",height:"100%",children:(0,e.createComponentVNode)(2,t.Chart.Line,{fillPositionedParent:!0,data:b,rangeX:[0,b.length-1],rangeY:[0,f],strokeColor:"rgba(0, 181, 173, 1)",fillColor:"rgba(0, 181, 173, 0.25)"})}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"p",null,[v,(0,e.createTextVNode)(" share value per share")],0)]})}},44261:function(x,r,n){"use strict";r.__esModule=!0,r.SuitCycler=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.SuitCycler=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.active,p=c.locked,v=c.uv_active,f=(0,e.createComponentVNode)(2,V);return v?f=(0,e.createComponentVNode)(2,k):p?f=(0,e.createComponentVNode)(2,S):d&&(f=(0,e.createComponentVNode)(2,N)),(0,e.createComponentVNode)(2,o.Window,{width:320,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:f})})}return h}(),V=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.safeties,p=c.occupied,v=c.suit,f=c.helmet,C=c.departments,b=c.species,g=c.uv_level,y=c.max_uv_level,B=c.can_repair,L=c.damage;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Storage",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock",content:"Lock",onClick:function(){function I(){return i("lock")}return I}()}),children:[!!(p&&d)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",color:"red",content:"Eject Entity",onClick:function(){function I(){return i("eject_guy")}return I}()})]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Helmet",children:(0,e.createComponentVNode)(2,t.Button,{icon:f?"square":"square-o",content:f||"Empty",disabled:!f,onClick:function(){function I(){return i("dispense",{item:"helmet"})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Suit",children:(0,e.createComponentVNode)(2,t.Button,{icon:v?"square":"square-o",content:v||"Empty",disabled:!v,onClick:function(){function I(){return i("dispense",{item:"suit"})}return I}()})}),B&&L?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Suit Damage",children:[L,(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",content:"Repair",onClick:function(){function I(){return i("repair_suit")}return I}()})]}):null]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Customization",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Paintjob",children:(0,e.createComponentVNode)(2,t.Dropdown,{noscroll:!0,width:"150px",options:C,selected:C[0],onSelected:function(){function I(w){return i("department",{department:w})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Species",children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"150px",maxHeight:"160px",options:b,selected:b[0],onSelected:function(){function I(w){return i("species",{species:w})}return I}()})})]}),(0,e.createComponentVNode)(2,t.Button,{mt:1,fluid:!0,content:"Customize",onClick:function(){function I(){return i("apply_paintjob")}return I}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"UV Decontamination",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radiation Level",children:(0,e.createComponentVNode)(2,t.NumberInput,{width:"50px",value:g,minValue:1,maxValue:y,stepPixelSize:30,onChange:function(){function I(w,T){return i("radlevel",{radlevel:T})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Decontaminate",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"recycle",disabled:p&&d,textAlign:"center",onClick:function(){function I(){return i("uv")}return I}()})})]})})],4)},k=function(s,l){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Contents are currently being decontaminated. Please wait."})},S=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.model_text,p=c.userHasAccess;return(0,e.createComponentVNode)(2,t.Section,{title:"Locked",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Box,{color:"bad",bold:!0,children:["The ",d," suit cycler is currently locked. Please contact your system administrator."]}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlock",content:"[Unlock]",disabled:!p,onClick:function(){function v(){return i("lock")}return v}()})})]})},N=function(s,l){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Contents are currently being painted. Please wait."})}},58954:function(x,r,n){"use strict";r.__esModule=!0,r.SuitStorageUnit=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.SuitStorageUnit=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.panelopen,p=c.uv_active,v=c.broken,f=(0,e.createComponentVNode)(2,V);return d?f=(0,e.createComponentVNode)(2,k):p?f=(0,e.createComponentVNode)(2,S):v&&(f=(0,e.createComponentVNode)(2,N)),(0,e.createComponentVNode)(2,o.Window,{width:400,height:365,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:f})})}return h}(),V=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.locked,p=c.open,v=c.safeties,f=c.occupied,C=c.suit,b=c.helmet,g=c.mask;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",minHeight:"260px",buttons:(0,e.createFragment)([!p&&(0,e.createComponentVNode)(2,t.Button,{icon:d?"unlock":"lock",content:d?"Unlock":"Lock",onClick:function(){function y(){return i("lock")}return y}()}),!d&&(0,e.createComponentVNode)(2,t.Button,{icon:p?"sign-out-alt":"sign-in-alt",content:p?"Close":"Open",onClick:function(){function y(){return i("door")}return y}()})],0),children:[!!(f&&v)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",color:"red",content:"Eject Entity",onClick:function(){function y(){return i("eject_guy")}return y}()})]}),d&&(0,e.createComponentVNode)(2,t.Box,{mt:6,bold:!0,textAlign:"center",fontSize:"40px",children:[(0,e.createComponentVNode)(2,t.Box,{children:"Unit Locked"}),(0,e.createComponentVNode)(2,t.Icon,{name:"lock"})]})||p&&(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Helmet",children:(0,e.createComponentVNode)(2,t.Button,{icon:b?"square":"square-o",content:b||"Empty",disabled:!b,onClick:function(){function y(){return i("dispense",{item:"helmet"})}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Suit",children:(0,e.createComponentVNode)(2,t.Button,{icon:C?"square":"square-o",content:C||"Empty",disabled:!C,onClick:function(){function y(){return i("dispense",{item:"suit"})}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{icon:g?"square":"square-o",content:g||"Empty",disabled:!g,onClick:function(){function y(){return i("dispense",{item:"mask"})}return y}()})})]})||(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"recycle",content:"Decontaminate",disabled:f&&v,textAlign:"center",onClick:function(){function y(){return i("uv")}return y}()})]})},k=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.safeties,p=c.uv_super;return(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance Panel",children:[(0,e.createComponentVNode)(2,t.Box,{color:"grey",children:"The panel is ridden with controls, button and meters, labeled in strange signs and symbols that you cannot understand. Probably the manufactoring world's language. Among other things, a few controls catch your eye."}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{children:["A small dial with a biohazard symbol next to it. It's pointing towards a gauge that reads ",p?"15nm":"185nm",".",(0,e.createComponentVNode)(2,t.Flex,{mt:1,align:"center",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"50%",textAlign:"center",children:(0,e.createComponentVNode)(2,t.Knob,{size:2,inline:!0,value:p,minValue:0,maxValue:1,step:1,stepPixelSize:40,color:p?"red":"green",format:function(){function v(f){return f?"15nm":"185nm"}return v}(),onChange:function(){function v(f,C){return i("toggleUV")}return v}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"50%",textAlign:"center",children:(0,e.createComponentVNode)(2,t.Icon,{name:"biohazard",size:3,color:"orange"})})]})]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{children:["A thick old-style button, with 2 grimy LED lights next to it. The"," ",d?(0,e.createVNode)(1,"font",null,"GREEN",16,{color:"green"}):(0,e.createVNode)(1,"font",null,"RED",16,{color:"red"})," ","LED is on.",(0,e.createComponentVNode)(2,t.Flex,{mt:1,align:"center",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"50%",textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fontSize:"2rem",color:"grey",inline:!0,icon:"caret-square-right",style:{border:"4px solid #777","border-style":"outset"},onClick:function(){function v(){return i("togglesafeties")}return v}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"50%",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"circle",color:d?"black":"red",mr:2}),(0,e.createComponentVNode)(2,t.Icon,{name:"circle",color:d?"green":"black"})]})]})]})]})},S=function(s,l){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Contents are currently being decontaminated. Please wait."})},N=function(s,l){return(0,e.createComponentVNode)(2,t.NoticeBox,{danger:!0,children:"Unit chamber is too contaminated to continue usage. Please call for a qualified individual to perform maintenance."})}},7287:function(x,r,n){"use strict";r.__esModule=!0,r.SupermatterMonitorContent=r.SupermatterMonitor=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(5339),V=n(40946),k=r.SupermatterMonitor=function(){function s(l,u){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,S)})})}return s}(),S=r.SupermatterMonitorContent=function(){function s(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.active;return p?(0,e.createComponentVNode)(2,h):(0,e.createComponentVNode)(2,N)}return s}(),N=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.supermatters;return(0,e.createComponentVNode)(2,t.Section,{title:"Supermatters Detected",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Refresh",icon:"sync",onClick:function(){function v(){return c("refresh")}return v}()}),children:(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:p.map(function(v,f){return(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"49%",grow:f%2,children:(0,e.createComponentVNode)(2,t.Section,{title:v.area_name+" (#"+v.uid+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:[v.integrity," %"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"View Details",onClick:function(){function C(){return c("set",{set:v.uid})}return C}()})})]})})},f)})})})},h=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.SM_area,v=d.SM_integrity,f=d.SM_power,C=d.SM_ambienttemp,b=d.SM_ambientpressure,g=d.SM_EPR,y=d.SM_gas_O2,B=d.SM_gas_CO2,L=d.SM_gas_N2,I=d.SM_gas_PH,w=d.SM_gas_N2O;return(0,e.createComponentVNode)(2,t.Section,{title:(0,V.toTitleCase)(p),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Return to Menu",onClick:function(){function T(){return c("clear")}return T}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{animated:!0,value:v,minValue:0,maxValue:100,ranges:{good:[100,100],average:[50,100],bad:[-1/0,50]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,t.Box,{color:f>300&&"bad"||f>150&&"average"||"good",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{format:function(){function T(M){return(0,m.round)(M,2)+" MeV/cm\xB3"}return T}(),value:f})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:C>5e3&&"bad"||C>4e3&&"average"||"good",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{format:function(){function T(M){return(0,m.round)(M,2)+" K"}return T}(),value:C})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:b>1e4&&"bad"||b>5e3&&"average"||"good",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{format:function(){function T(M){return(0,m.round)(M,2)+" kPa"}return T}(),value:b})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chamber EPR",children:(0,e.createComponentVNode)(2,t.Box,{color:g>4&&"bad"||g>1&&"average"||"good",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{format:function(){function T(M){return(0,m.round)(M,2)}return T}(),value:g})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gas Composition",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"O\xB2",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:y}),"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"CO\xB2",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:B}),"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"N\xB2",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:L}),"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"PH",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:I}),"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"N\xB2O",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w}),"%"]})]})})]})})}},68164:function(x,r,n){"use strict";r.__esModule=!0,r.SupplyConsole=void 0;var e=n(58734),a=n(45445),t=n(43820),o=n(62188),m=n(11790),V=n(48388),k=n(11477),S=n(75671),N=function(p,v){var f=(0,o.useBackend)(v),C=f.act,b=f.data,g=b.supply_points,y=p.args,B=y.name,L=y.cost,I=y.manifest,w=y.ref,T=y.random;return(0,e.createComponentVNode)(2,m.Section,{width:"400px",level:2,m:"-1rem",pb:"1rem",title:B,buttons:(0,e.createComponentVNode)(2,m.Button,{icon:"shopping-cart",content:"Buy - "+L+" points",disabled:L>g,onClick:function(){function M(){return C("request_crate",{ref:w})}return M}()}),children:(0,e.createComponentVNode)(2,m.Section,{title:"Contains"+(T?" any "+T+" of:":""),scrollable:!0,height:"200px",children:I.map(function(M){return(0,e.createComponentVNode)(2,m.Box,{children:M},M)})})})},h=r.SupplyConsole=function(){function d(p,v){var f=(0,o.useBackend)(v),C=f.act,b=f.data;return(0,V.modalRegisterBodyOverride)("view_crate",N),(0,e.createComponentVNode)(2,k.Window,{width:700,height:620,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:[(0,e.createComponentVNode)(2,V.ComplexModal,{maxWidth:"100%"}),(0,e.createComponentVNode)(2,m.Section,{title:"Supply Records",children:[(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,l)]})]})})}return d}(),s=function(p,v){var f=(0,o.useBackend)(v),C=f.act,b=f.data,g=b.supply_points,y=b.shuttle,B=b.shuttle_auth,L=null,I=!1;return B&&(y.launch===1&&y.mode===0?L=(0,e.createComponentVNode)(2,m.Button,{icon:"rocket",content:"Send Away",onClick:function(){function w(){return C("send_shuttle",{mode:"send_away"})}return w}()}):y.launch===2&&(y.mode===3||y.mode===1)?L=(0,e.createComponentVNode)(2,m.Button,{icon:"ban",content:"Cancel Launch",onClick:function(){function w(){return C("send_shuttle",{mode:"cancel_shuttle"})}return w}()}):y.launch===1&&y.mode===5&&(L=(0,e.createComponentVNode)(2,m.Button,{icon:"rocket",content:"Send Shuttle",onClick:function(){function w(){return C("send_shuttle",{mode:"send_to_station"})}return w}()})),y.force&&(I=!0)),(0,e.createComponentVNode)(2,m.Section,{children:[(0,e.createComponentVNode)(2,m.LabeledList,{children:(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Supply Points",children:(0,e.createComponentVNode)(2,m.AnimatedNumber,{value:g})})}),(0,e.createComponentVNode)(2,m.Section,{level:2,title:"Supply Shuttle",mt:2,children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Location",buttons:(0,e.createFragment)([L,I?(0,e.createComponentVNode)(2,m.Button,{icon:"exclamation-triangle",content:"Force Launch",onClick:function(){function w(){return C("send_shuttle",{mode:"force_shuttle"})}return w}()}):null],0),children:y.location}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Engine",children:y.engine}),y.mode===4?(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"ETA",children:y.time>1?(0,t.formatTime)(y.time):"LATE"}):null]})})]})},l=function(p,v){var f=(0,o.useBackend)(v),C=f.act,b=f.data,g=b.order_auth,y=(0,o.useLocalState)(v,"tabIndex",0),B=y[0],L=y[1];return(0,e.createComponentVNode)(2,m.Section,{title:"Menu",children:[(0,e.createComponentVNode)(2,m.Tabs,{children:[(0,e.createComponentVNode)(2,m.Tabs.Tab,{icon:"box",selected:B===0,onClick:function(){function I(){return L(0)}return I}(),children:"Request"}),(0,e.createComponentVNode)(2,m.Tabs.Tab,{icon:"check-circle-o",selected:B===1,onClick:function(){function I(){return L(1)}return I}(),children:"Accepted"}),(0,e.createComponentVNode)(2,m.Tabs.Tab,{icon:"circle-o",selected:B===2,onClick:function(){function I(){return L(2)}return I}(),children:"Requests"}),(0,e.createComponentVNode)(2,m.Tabs.Tab,{icon:"book",selected:B===3,onClick:function(){function I(){return L(3)}return I}(),children:"Order history"}),(0,e.createComponentVNode)(2,m.Tabs.Tab,{icon:"book",selected:B===4,onClick:function(){function I(){return L(4)}return I}(),children:"Export history"})]}),B===0?(0,e.createComponentVNode)(2,u):null,B===1?(0,e.createComponentVNode)(2,i,{mode:"Approved"}):null,B===2?(0,e.createComponentVNode)(2,i,{mode:"Requested"}):null,B===3?(0,e.createComponentVNode)(2,i,{mode:"All"}):null,B===4?(0,e.createComponentVNode)(2,c):null]})},u=function(p,v){var f=(0,o.useBackend)(v),C=f.act,b=f.data,g=b.categories,y=b.supply_packs,B=b.contraband,L=b.supply_points,I=(0,o.useLocalState)(v,"activeCategory",null),w=I[0],T=I[1],M=(0,S.flow)([(0,a.filter)(function(A){return A.group===w}),(0,a.filter)(function(A){return!A.contraband||B}),(0,a.sortBy)(function(A){return A.name}),(0,a.sortBy)(function(A){return A.cost>L})])(y);return(0,e.createComponentVNode)(2,m.Section,{level:2,children:(0,e.createComponentVNode)(2,m.Stack,{children:[(0,e.createComponentVNode)(2,m.Stack.Item,{basis:"25%",children:(0,e.createComponentVNode)(2,m.Section,{title:"Categories",scrollable:!0,fill:!0,height:"290px",children:g.map(function(A){return(0,e.createComponentVNode)(2,m.Button,{fluid:!0,content:A,selected:A===w,onClick:function(){function R(){return T(A)}return R}()},A)})})}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:1,ml:2,children:(0,e.createComponentVNode)(2,m.Section,{title:"Contents",scrollable:!0,fill:!0,height:"290px",children:M.map(function(A){return(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,m.Stack,{align:"center",justify:"flex-start",children:[(0,e.createComponentVNode)(2,m.Stack.Item,{basis:"70%",children:(0,e.createComponentVNode)(2,m.Button,{fluid:!0,icon:"shopping-cart",ellipsis:!0,content:A.name,color:A.cost>L?"red":null,onClick:function(){function R(){return C("request_crate",{ref:A.ref})}return R}()})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Button,{content:"#",color:A.cost>L?"red":null,onClick:function(){function R(){return C("request_crate_multi",{ref:A.ref})}return R}()})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Button,{content:"C",color:A.cost>L?"red":null,onClick:function(){function R(){return C("view_crate",{crate:A.ref})}return R}()})}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:1,children:[A.cost," points"]})]})},A.name)})})})]})})},i=function(p,v){var f=(0,o.useBackend)(v),C=f.act,b=f.data,g=p.mode,y=b.orders,B=b.order_auth,L=b.supply_points,I=y.filter(function(w){return w.status===g||g==="All"});return I.length?(0,e.createComponentVNode)(2,m.Section,{level:2,children:[g==="Requested"&&B?(0,e.createComponentVNode)(2,m.Button,{mt:-1,mb:1,fluid:!0,color:"red",icon:"trash",content:"Clear all requests",onClick:function(){function w(){return C("clear_all_requests")}return w}()}):null,I.map(function(w,T){return(0,e.createComponentVNode)(2,m.Section,{title:"Order "+(T+1),buttons:g==="All"&&B?(0,e.createComponentVNode)(2,m.Button,{color:"red",icon:"trash",content:"Delete Record",onClick:function(){function M(){return C("delete_order",{ref:w.ref})}return M}()}):null,children:[(0,e.createComponentVNode)(2,m.LabeledList,{children:[w.entries.map(function(M){return M.entry?(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:M.field,buttons:B?(0,e.createComponentVNode)(2,m.Button,{icon:"pen",content:"Edit",onClick:function(){function A(){C("edit_order_value",{ref:w.ref,edit:M.field,default:M.entry})}return A}()}):null,children:M.entry}):null}),g==="All"?(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Status",children:w.status}):null]}),B&&g==="Requested"?(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Button,{icon:"check",content:"Approve",disabled:w.cost>L,onClick:function(){function M(){return C("approve_order",{ref:w.ref})}return M}()}),(0,e.createComponentVNode)(2,m.Button,{icon:"times",content:"Deny",onClick:function(){function M(){return C("deny_order",{ref:w.ref})}return M}()})],4):null]},T)})]}):(0,e.createComponentVNode)(2,m.Section,{level:2,children:"No orders found."})},c=function(p,v){var f=(0,o.useBackend)(v),C=f.act,b=f.data,g=b.receipts,y=b.order_auth;return g.length?(0,e.createComponentVNode)(2,m.Section,{level:2,children:g.map(function(B,L){return(0,e.createComponentVNode)(2,m.Section,{children:[(0,e.createComponentVNode)(2,m.LabeledList,{children:[B.title.map(function(I){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:I.field,buttons:y?(0,e.createComponentVNode)(2,m.Button,{icon:"pen",content:"Edit",onClick:function(){function w(){return C("export_edit",{ref:B.ref,edit:I.field,default:I.entry})}return w}()}):null,children:I.entry},I.field)}),B.error?(0,e.createComponentVNode)(2,m.LabeledList.Item,{labelColor:"red",label:"Error",children:B.error}):B.contents.map(function(I,w){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:I.object,buttons:y?(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Button,{icon:"pen",content:"Edit",onClick:function(){function T(){return C("export_edit_field",{ref:B.ref,index:w+1,edit:"meow",default:I.object})}return T}()}),(0,e.createComponentVNode)(2,m.Button,{icon:"trash",color:"red",content:"Delete",onClick:function(){function T(){return C("export_delete_field",{ref:B.ref,index:w+1})}return T}()})],4):null,children:[I.quantity,"x -> ",I.value," points"]},w)})]}),y?(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Button,{mt:1,icon:"plus",content:"Add Item To Record",onClick:function(){function I(){return C("export_add_field",{ref:B.ref})}return I}()}),(0,e.createComponentVNode)(2,m.Button,{icon:"trash",content:"Delete Record",onClick:function(){function I(){return C("export_delete",{ref:B.ref})}return I}()})],4):null]},L)})}):(0,e.createComponentVNode)(2,m.Section,{level:2,children:"No receipts found."})}},50698:function(x,r,n){"use strict";r.__esModule=!0,r.TEGenerator=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(11477),V=n(43820),k=r.TEGenerator=function(){function N(h,s){var l=(0,t.useBackend)(s),u=l.data,i=u.totalOutput,c=u.maxTotalOutput,d=u.thermalOutput,p=u.primary,v=u.secondary;return(0,e.createComponentVNode)(2,m.Window,{width:550,height:310,resizable:!0,children:(0,e.createComponentVNode)(2,m.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:"Total Output",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:i,maxValue:c,children:(0,V.formatPower)(i)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Thermal Output",children:(0,V.formatPower)(d)})]})}),p&&v?(0,e.createComponentVNode)(2,o.Flex,{spacing:1,children:[(0,e.createComponentVNode)(2,o.Flex.Item,{shrink:1,grow:1,children:(0,e.createComponentVNode)(2,S,{name:"Primary Circulator",values:p})}),(0,e.createComponentVNode)(2,o.Flex.Item,{shrink:1,grow:1,children:(0,e.createComponentVNode)(2,S,{name:"Secondary Circulator",values:v})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Warning! Both circulators must be connected in order to operate this machine."})]})})}return N}(),S=function(h,s){var l=h.name,u=h.values,i=u.dir,c=u.output,d=u.flowCapacity,p=u.inletPressure,v=u.inletTemperature,f=u.outletPressure,C=u.outletTemperature;return(0,e.createComponentVNode)(2,o.Section,{title:l+" ("+i+")",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Turbine Output",children:(0,V.formatPower)(c)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Flow Capacity",children:[(0,a.round)(d,2),"%"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Inlet Pressure",children:(0,V.formatSiUnit)(p*1e3,0,"Pa")}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Inlet Temperature",children:[(0,a.round)(v,2)," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Outlet Pressure",children:(0,V.formatSiUnit)(f*1e3,0,"Pa")}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Outlet Temperature",children:[(0,a.round)(C,2)," K"]})]})})}},29023:function(x,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.Tank=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.connected,u=s.showToggle,i=u===void 0?!0:u,c=s.maskConnected,d=s.tankPressure,p=s.releasePressure,v=s.defaultReleasePressure,f=s.minReleasePressure,C=s.maxReleasePressure;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:!!i&&(0,e.createComponentVNode)(2,t.Button,{icon:l?"air-freshener":"lock-open",selected:l,disabled:!c,content:"Mask Release Valve",onClick:function(){function b(){return h("toggle")}return b}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask Connected",children:c?"Yes":"No"})})}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:d/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:s.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Regulator",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:p===f,onClick:function(){function b(){return h("pressure",{pressure:"min"})}return b}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(p),width:"65px",unit:"kPa",minValue:f,maxValue:C,onChange:function(){function b(g,y){return h("pressure",{pressure:y})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:p===C,onClick:function(){function b(){return h("pressure",{pressure:"max"})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:p===v,onClick:function(){function b(){return h("pressure",{pressure:"reset"})}return b}()})]})]})})]})})}return V}()},91299:function(x,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.TankDispenser=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.plasma,u=s.oxygen;return(0,e.createComponentVNode)(2,o.Window,{width:275,height:103,resizable:!0,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:"Phoron",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:l?"square":"square-o",content:"Dispense",disabled:!l,onClick:function(){function i(){return h("plasma")}return i}()}),children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u?"square":"square-o",content:"Dispense",disabled:!u,onClick:function(){function i(){return h("oxygen")}return i}()}),children:u})]})})})})}return V}()},32235:function(x,r,n){"use strict";r.__esModule=!0,r.TelecommsLogBrowser=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(11477),V=r.TelecommsLogBrowser=function(){function h(s,l){var u=(0,t.useBackend)(l),i=u.act,c=u.data,d=c.universal_translate,p=c.network,v=c.temp,f=c.servers,C=c.selectedServer;return(0,e.createComponentVNode)(2,m.Window,{width:575,height:450,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[v?(0,e.createComponentVNode)(2,o.NoticeBox,{danger:v.color==="bad",warning:v.color!=="bad",children:[(0,e.createComponentVNode)(2,o.Box,{display:"inline-box",verticalAlign:"middle",children:v.text}),(0,e.createComponentVNode)(2,o.Button,{icon:"times-circle",float:"right",onClick:function(){function b(){return i("cleartemp")}return b}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"both"})]}):null,(0,e.createComponentVNode)(2,o.Section,{title:"Network Control",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Network",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"search",content:"Refresh",onClick:function(){function b(){return i("scan")}return b}()}),(0,e.createComponentVNode)(2,o.Button,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:f.length===0,onClick:function(){function b(){return i("release")}return b}()})],4),children:(0,e.createComponentVNode)(2,o.Button,{content:p,icon:"pen",onClick:function(){function b(){return i("network")}return b}()})})})}),C?(0,e.createComponentVNode)(2,S,{network:p,server:C,universal_translate:d}):(0,e.createComponentVNode)(2,k,{network:p,servers:f})]})})}return h}(),k=function(s,l){var u=(0,t.useBackend)(l),i=u.act,c=u.data,d=s.network,p=s.servers;return!p||!p.length?(0,e.createComponentVNode)(2,o.Section,{title:"Detected Telecommunications Servers",children:[(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"No servers detected."}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Scan",icon:"search",onClick:function(){function v(){return i("scan")}return v}()})]}):(0,e.createComponentVNode)(2,o.Section,{title:"Detected Telecommunications Servers",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:p.map(function(v){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:v.name+" ("+v.id+")",children:(0,e.createComponentVNode)(2,o.Button,{content:"View",icon:"eye",onClick:function(){function f(){return i("view",{id:v.id})}return f}()})},v.id)})})})},S=function(s,l){var u=(0,t.useBackend)(l),i=u.act,c=u.data,d=s.network,p=s.server,v=s.universal_translate;return(0,e.createComponentVNode)(2,o.Section,{title:"Server ("+p.id+")",buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Return",icon:"undo",onClick:function(){function f(){return i("mainmenu")}return f}()}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Recorded Traffic",children:p.totalTraffic>=1024?(0,a.round)(p.totalTraffic/1024)+" Terrabytes":p.totalTraffic+" Gigabytes"})}),(0,e.createComponentVNode)(2,o.Section,{title:"Stored Logs",mt:"4px",children:(0,e.createComponentVNode)(2,o.Flex,{wrap:"wrap",children:!p.logs||!p.logs.length?"No Logs Detected.":p.logs.map(function(f){return(0,e.createComponentVNode)(2,o.Flex.Item,{m:"2px",basis:"49%",grow:f.id%2,children:(0,e.createComponentVNode)(2,o.Section,{title:v||f.parameters.uspeech||f.parameters.intelligible||f.input_type==="Execution Error"?f.input_type:"Audio File",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){function C(){return i("delete",{id:f.id})}return C}()}),children:f.input_type==="Execution Error"?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Data type",children:"Error"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Output",children:f.parameters.message}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Delete",children:(0,e.createComponentVNode)(2,o.Button,{icon:"trash",onClick:function(){function C(){return i("delete",{id:f.id})}return C}()})})]}):v||f.parameters.uspeech||f.parameters.intelligible?(0,e.createComponentVNode)(2,N,{log:f}):(0,e.createComponentVNode)(2,N,{error:!0})})},f.id)})})})]})},N=function(s,l){var u=(0,t.useBackend)(l),i=u.act,c=u.data,d=s.log,p=s.error,v=d&&d.parameters||{none:"none"},f=v.timecode,C=v.name,b=v.race,g=v.job,y=v.message;return p?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Time Recieved",children:f}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Source",children:"Unidentifiable"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Class",children:b}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contents",children:"Unintelligible"})]}):(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Time Recieved",children:f}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Source",children:[C," (Job: ",g,")"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Class",children:b}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contents",className:"LabeledList__breakContents",children:y})]})}},81443:function(x,r,n){"use strict";r.__esModule=!0,r.TelecommsMachineBrowser=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.TelecommsMachineBrowser=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.network,i=l.temp,c=l.machinelist,d=l.selectedMachine;return(0,e.createComponentVNode)(2,o.Window,{width:575,height:450,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[i?(0,e.createComponentVNode)(2,t.NoticeBox,{danger:i.color==="bad",warning:i.color!=="bad",children:[(0,e.createComponentVNode)(2,t.Box,{display:"inline-box",verticalAlign:"middle",children:i.text}),(0,e.createComponentVNode)(2,t.Button,{icon:"times-circle",float:"right",onClick:function(){function p(){return s("cleartemp")}return p}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}):null,(0,e.createComponentVNode)(2,t.Section,{title:"Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Network",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"search",content:"Probe Network",onClick:function(){function p(){return s("scan")}return p}()}),(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:c.length===0,onClick:function(){function p(){return s("release")}return p}()})],4),children:(0,e.createComponentVNode)(2,t.Button,{content:u,icon:"pen",onClick:function(){function p(){return s("network")}return p}()})})})}),c&&c.length?(0,e.createComponentVNode)(2,V,{title:d?d.name+" ("+d.id+")":"Detected Network Entities",list:d?d.links:c,showBack:d}):(0,e.createComponentVNode)(2,t.Section,{title:"No Devices Found",children:(0,e.createComponentVNode)(2,t.Button,{icon:"search",content:"Probe Network",onClick:function(){function p(){return s("scan")}return p}()})})]})})}return k}(),V=function(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=S.list,i=S.title,c=S.showBack;return(0,e.createComponentVNode)(2,t.Section,{title:i,buttons:c&&(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"Back to Main Menu",onClick:function(){function d(){return s("mainmenu")}return d}()}),children:[(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"u",null,"Linked entities",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:u.length?u.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.name+" ("+d.id+")",children:(0,e.createComponentVNode)(2,t.Button,{content:"View",icon:"eye",onClick:function(){function p(){return s("view",{id:d.id})}return p}()})},d.id)}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{color:"bad",children:"No links detected."})})]})}},63443:function(x,r,n){"use strict";r.__esModule=!0,r.TelecommsMultitoolMenu=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(45246),m=n(11477),V=r.TelecommsMultitoolMenu=function(){function N(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.temp,d=i.on,p=i.id,v=i.network,f=i.autolinkers,C=i.shadowlink,b=i.options,g=i.linked,y=i.filter,B=i.multitool,L=i.multitool_buffer;return(0,e.createComponentVNode)(2,m.Window,{width:520,height:540,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.TemporaryNotice),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,S,{options:b})]})})}return N}(),k=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.temp,d=i.on,p=i.id,v=i.network,f=i.autolinkers,C=i.shadowlink,b=i.options,g=i.linked,y=i.filter,B=i.multitool,L=i.multitool_buffer;return(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:d,content:d?"On":"Off",onClick:function(){function I(){return u("toggle")}return I}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Identification String",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:p,onClick:function(){function I(){return u("id")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:v,onClick:function(){function I(){return u("network")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prefabrication",children:f?"TRUE":"FALSE"}),C?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shadow Link",children:"Active."}):null,B?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Multitool Buffer",children:[L?(0,e.createFragment)([L.name,(0,e.createTextVNode)(" ("),L.id,(0,e.createTextVNode)(")")],0):null,(0,e.createComponentVNode)(2,t.Button,{color:L?"green":null,content:L?"Link ("+L.id+")":"Add Machine",icon:L?"link":"plus",onClick:L?function(){return u("link")}:function(){return u("buffer")}}),L?(0,e.createComponentVNode)(2,t.Button,{color:"red",content:"Flush",icon:"trash",onClick:function(){function I(){return u("flush")}return I}()}):null]}):null]}),(0,e.createComponentVNode)(2,t.Section,{title:"Linked network Entities",mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:g.map(function(I){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:I.ref+" "+I.name+" ("+I.id+")",buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{color:"red",icon:"trash",onClick:function(){function w(){return u("unlink",{unlink:I.index})}return w}()})},I.ref)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Filtering Frequencies",mt:1,children:[y.map(function(I){return(0,e.createComponentVNode)(2,t.Button.Confirm,{content:I.name+" GHz",confirmContent:"Delete?",confirmColor:"red",confirmIcon:"trash",onClick:function(){function w(){return u("delete",{delete:I.freq})}return w}()},I.index)}),!y||y.length===0?(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No filters."}):null]})]})},S=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=h.options,d=c.use_listening_level,p=c.use_broadcasting,v=c.use_receiving,f=c.listening_level,C=c.broadcasting,b=c.receiving,g=c.use_change_freq,y=c.change_freq,B=c.use_broadcast_range,L=c.use_receive_range,I=c.range,w=c.minRange,T=c.maxRange;return!d&&!p&&!v&&!g&&!B&&!L?(0,e.createComponentVNode)(2,t.Section,{title:"No Options Found"}):(0,e.createComponentVNode)(2,t.Section,{title:"Options",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Signal Locked to Station",children:(0,e.createComponentVNode)(2,t.Button,{icon:f?"lock-closed":"lock-open",content:f?"Yes":"No",onClick:function(){function M(){return u("change_listening")}return M}()})}):null,p?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Broadcasting",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:C,content:C?"Yes":"No",onClick:function(){function M(){return u("broadcast")}return M}()})}):null,v?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Receving",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:b,content:b?"Yes":"No",onClick:function(){function M(){return u("receive")}return M}()})}):null,g?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Signal Frequency",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wave-square",selected:!!y,content:y?"Yes ("+y+")":"No",onClick:function(){function M(){return u("change_freq")}return M}()})}):null,B||L?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(B?"Broadcast":"Receive")+" Range",children:(0,e.createComponentVNode)(2,t.NumberInput,{value:I,minValue:w,maxValue:T,unit:"gigameters",stepPixelSize:4,format:function(){function M(A){return A+1}return M}(),onDrag:function(){function M(A,R){return u("range",{range:R})}return M}()})}):null]})})}},73616:function(x,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.Teleporter=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.locked_name,u=s.station_connected,i=s.hub_connected,c=s.calibrated,d=s.teleporter_on;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:200,resizable:!0,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:"Target",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"bullseye",onClick:function(){function p(){return h("select_target")}return p}(),content:l})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Calibrated",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:c,color:c?"good":"bad",onClick:function(){function p(){return h("test_fire")}return p}(),content:c?"Accurate":"Test Fire"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Teleporter",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,color:d?"good":"bad",onClick:function(){function p(){return h("toggle_on")}return p}(),content:d?"Online":"OFFLINE"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Station",children:u?"Connected":"Not Connected"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hub",children:i?"Connected":"Not Connected"})]})})})})}return V}()},60726:function(x,r,n){"use strict";r.__esModule=!0,r.TelesciConsoleContent=r.TelesciConsole=void 0;var e=n(58734),a=n(45445),t=n(62188),o=n(11790),m=n(11477),V=r.TelesciConsole=function(){function N(h,s){var l=(0,t.useBackend)(s),u=l.act,i=l.data,c=i.noTelepad;return(0,e.createComponentVNode)(2,m.Window,{width:400,height:450,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:c&&(0,e.createComponentVNode)(2,k)||(0,e.createComponentVNode)(2,S)})})}return N}(),k=function(h,s){return(0,e.createComponentVNode)(2,o.Section,{title:"Error",color:"bad",children:["No telepad located.",(0,e.createVNode)(1,"br"),"Please add telepad data."]})},S=r.TelesciConsoleContent=function(){function N(h,s){var l=(0,t.useBackend)(s),u=l.act,i=l.data,c=i.insertedGps,d=i.rotation,p=i.currentZ,v=i.cooldown,f=i.crystalCount,C=i.maxCrystals,b=i.maxPossibleDistance,g=i.maxAllowedDistance,y=i.distance,B=i.tempMsg,L=i.sectorOptions,I=i.lastTeleData;return(0,e.createComponentVNode)(2,o.Section,{title:"Telepad Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",disabled:!c,onClick:function(){function w(){return u("ejectGPS")}return w}(),content:"Eject GPS"}),children:[(0,e.createComponentVNode)(2,o.NoticeBox,{info:!0,children:v&&(0,e.createComponentVNode)(2,o.Box,{children:["Telepad is recharging. Please wait"," ",(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:v})," seconds."]})||(0,e.createComponentVNode)(2,o.Box,{children:B})}),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Bearing",children:(0,e.createComponentVNode)(2,o.NumberInput,{fluid:!0,value:d,format:function(){function w(T){return T+"\xB0"}return w}(),step:1,minValue:-900,maxValue:900,onDrag:function(){function w(T,M){return u("setrotation",{val:M})}return w}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Distance",children:(0,e.createComponentVNode)(2,o.NumberInput,{fluid:!0,value:y,format:function(){function w(T){return T+"/"+g+" m"}return w}(),minValue:0,maxValue:g,step:1,stepPixelSize:4,onDrag:function(){function w(T,M){return u("setdistance",{val:M})}return w}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sector",children:(0,a.sortBy)(function(w){return Number(w)})(L).map(function(w){return(0,e.createComponentVNode)(2,o.Button,{icon:"check-circle",content:w,selected:p===w,onClick:function(){function T(){return u("setz",{setz:w})}return T}()},w)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"share",iconRotation:-90,onClick:function(){function w(){return u("send")}return w}(),content:"Send"}),(0,e.createComponentVNode)(2,o.Button,{icon:"share",iconRotation:90,onClick:function(){function w(){return u("receive")}return w}(),content:"Receive"}),(0,e.createComponentVNode)(2,o.Button,{icon:"sync",iconRotation:90,onClick:function(){function w(){return u("recal")}return w}(),content:"Recalibrate"})]})]}),I&&(0,e.createComponentVNode)(2,o.Section,{mt:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Telepad Location",children:[I.src_x,", ",I.src_y]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Distance",children:[I.distance,"m"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Transit Time",children:[I.time," secs"]})]})})||(0,e.createComponentVNode)(2,o.Section,{mt:1,children:"No teleport data found."}),(0,e.createComponentVNode)(2,o.Section,{children:["Crystals: ",f," / ",C]})]})}return N}()},8529:function(x,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(58734),a=n(89226),t=n(57370),o=n(62188),m=n(42678),V=n(11790),k=n(11477),S=r.sanitizeMultiline=function(){function l(u){return u.replace(/(\n|\r\n){3,}/,"\n\n")}return l}(),N=r.removeAllSkiplines=function(){function l(u){return u.replace(/[\r\n]+/,"")}return l}(),h=r.TextInputModal=function(){function l(u,i){var c=(0,o.useBackend)(i),d=c.act,p=c.data,v=p.large_buttons,f=p.max_length,C=p.message,b=C===void 0?"":C,g=p.multiline,y=p.placeholder,B=p.timeout,L=p.title,I=(0,o.useLocalState)(i,"input",y||""),w=I[0],T=I[1],M=function(){function O(_){if(_!==w){var P=g?S(_):N(_);T(P)}}return O}(),A=g||w.length>=30,R=135+(b.length>30?Math.ceil(b.length/4):0)+(A?75:0)+(b.length&&v?5:0);return(0,e.createComponentVNode)(2,k.Window,{title:L,width:325,height:R,children:[B&&(0,e.createComponentVNode)(2,a.Loader,{value:B}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function O(_){var P=window.event?_.which:_.keyCode;P===m.KEY_ENTER&&(!A||!_.shiftKey)&&d("submit",{entry:w}),P===m.KEY_ESCAPE&&d("cancel")}return O}(),children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Box,{color:"label",children:b})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s,{input:w,onType:M})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:w,message:w.length+"/"+f})})]})})})]})}return l}(),s=function(u,i){var c=(0,o.useBackend)(i),d=c.act,p=c.data,v=p.max_length,f=p.multiline,C=u.input,b=u.onType,g=f||C.length>=30;return(0,e.createComponentVNode)(2,V.TextArea,{autoFocus:!0,autoSelect:!0,height:f||C.length>=30?"100%":"1.8rem",maxLength:v,onEscape:function(){function y(){return d("cancel")}return y}(),onEnter:function(){function y(B){g&&B.shiftKey||(B.preventDefault(),d("submit",{entry:C}))}return y}(),onInput:function(){function y(B,L){return b(L)}return y}(),placeholder:"Type something...",value:C})}},70194:function(x,r,n){"use strict";r.__esModule=!0,r.TguiFeedback=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.TguiFeedback=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.open_windows,u=s.selected_window,i=(0,a.useLocalState)(S,"rating",""),c=i[0],d=i[1],p=(0,a.useLocalState)(S,"comment",""),v=p[0],f=p[1];return(0,e.createComponentVNode)(2,o.Window,{width:550,height:460,children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Open Windows",scrollable:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:l.map(function(C){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===u,onClick:function(){function b(){return h("pick_window",{win:C})}return b}(),children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:C})},C)})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[u&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Rating",children:["Please enter your rating of this window from a range from 1 to 5",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Input,{onChange:function(){function C(b,g){return d(g)}return C}(),value:c})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Optional Comment",children:["If you want, you can leave an optional comment as well!",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.TextArea,{height:"18rem",onChange:function(){function C(b,g){return f(g)}return C}(),value:v})]}),(0,e.createComponentVNode)(2,t.Button,{content:"Submit",onClick:function(){function C(){return h("submit",{rating:c,comment:v})}return C}()})],4)," ",": ",(0,e.createFragment)([(0,e.createTextVNode)("Please select an open window on the left!")],4)]})]})})}return V}()},69344:function(x,r,n){"use strict";r.__esModule=!0,r.Ticket=void 0;var e=n(58734),a=n(42678),t=n(62188),o=n(11790),m=n(11477),V={0:"Adminhelp",1:"Mentorhelp",2:"GM Request"},k={0:"red",1:"green",2:"pink"},S={example:"Example"},N={open:"Open",resolved:"Resolved",closed:"Closed",unknown:"Unknown"},h=r.Ticket=function(){function s(l,u){var i=(0,t.useBackend)(u),c=i.act,d=i.data,p=(0,t.useLocalState)(u,"ticketChat",""),v=p[0],f=p[1],C=d.id,b=d.title,g=d.name,y=d.ticket_ref,B=d.state,L=d.level,I=d.handler,w=d.opened_at,T=d.closed_at,M=d.opened_at_date,A=d.closed_at_date,R=d.actions,O=d.log;return(0,e.createComponentVNode)(2,m.Window,{width:900,height:600,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Ticket #"+C,buttons:(0,e.createComponentVNode)(2,o.Box,{nowrap:!0,children:[(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Rename Ticket",onClick:function(){function _(){return c("retitle")}return _}()})," ",(0,e.createComponentVNode)(2,o.Button,{content:"Legacy UI",onClick:function(){function _(){return c("legacy")}return _}()})," ",(0,e.createComponentVNode)(2,o.Button,{content:V[L],color:k[L]})]}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Ticket ID",children:["#",C,": ",(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:g}})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:V[L]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"State",children:N[B]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Assignee",children:I}),N[B]===N.open?(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Opened At",children:[M," (",Math.round(w/600*10)/10," ","minutes ago.)"]}):(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Closed At",children:[A," (",Math.round(T/600*10)/10," ","minutes ago.)"," ",(0,e.createComponentVNode)(2,o.Button,{content:"Reopen",onClick:function(){function _(){return c("reopen")}return _}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:R}})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Log"})]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.Flex,{direction:"column",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{children:Object.keys(O).slice(0).map(function(_){return(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:O[_]}})})}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,autoSelect:!0,fluid:!0,placeholder:"Enter a message...",value:v,onInput:function(){function _(P,D){return f(D)}return _}(),onKeyDown:function(){function _(P){var D=window.event?P.which:P.keyCode;D===a.KEY_ENTER&&(c("send_msg",{msg:v,ticket_ref:y}),f(""))}return _}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Send",onClick:function(){function _(){c("send_msg",{msg:v,ticket_ref:y}),f("")}return _}()})})]})})]})]})})})}return s}()},5903:function(x,r,n){"use strict";r.__esModule=!0,r.TicketChat=void 0;var e=n(58734),a=n(42678),t=n(62188),o=n(11790),m=n(11477),V={0:"Adminhelp",1:"Mentorhelp",2:"GM Request"},k={0:"red",1:"green",2:"pink"},S={example:"Example"},N={open:"Open",resolved:"Resolved",closed:"Closed",unknown:"Unknown"},h=r.TicketChat=function(){function s(l,u){var i=(0,t.useBackend)(u),c=i.act,d=i.data,p=(0,t.useLocalState)(u,"ticketChat",""),v=p[0],f=p[1],C=d.id,b=d.level,g=d.handler,y=d.log;return(0,e.createComponentVNode)(2,m.Window,{width:900,height:600,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Ticket #"+C,buttons:(0,e.createComponentVNode)(2,o.Box,{nowrap:!0,children:(0,e.createComponentVNode)(2,o.Button,{content:V[b],color:k[b]})}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Assignee",children:g}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Log"})]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.Flex,{direction:"column",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{children:Object.keys(y).slice(0).map(function(B){return(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:y[B]}})})}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,autoSelect:!0,fluid:!0,placeholder:"Enter a message...",value:v,onInput:function(){function B(L,I){return f(I)}return B}(),onKeyDown:function(){function B(L){var I=window.event?L.which:L.keyCode;I===a.KEY_ENTER&&(c("send_msg",{msg:v}),f(""))}return B}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Send",onClick:function(){function B(){c("send_msg",{msg:v}),f("")}return B}()})})]})})]})]})})})}return s}()},680:function(x,r,n){"use strict";r.__esModule=!0,r.TicketsPanel=void 0;var e=n(58734),a=n(42678),t=n(62188),o=n(11790),m=n(11477),V={0:"Admin",1:"Mentor",2:"All Levels"},k={0:"red",1:"green",2:"pink"},S={example:"Example"},N={open:"Open",resolved:"Resolved",closed:"Closed",unknown:"Unknown",all:"All States"},h={open:"white",resolved:"green",closed:"grey",unknown:"orange"},s=function(i,c,d){var p=[];return i.forEach(function(v){(v.state===c||c==="all")&&(v.level===d||d===2)&&p.push(v)}),p},l=r.TicketsPanel=function(){function u(i,c){var d=(0,t.useBackend)(c),p=d.act,v=d.data,f=v.tickets,C=v.selected_ticket,b=(0,t.useLocalState)(c,"stateFilter","open"),g=b[0],y=b[1],B=(0,t.useLocalState)(c,"levelFilter",2),L=B[0],I=B[1],w=(0,t.useLocalState)(c,"ticketChat",""),T=w[0],M=w[1],A=s(f,g,L);return(0,e.createComponentVNode)(2,m.Window,{width:900,height:600,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{shrink:!0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"Filter",children:[(0,e.createComponentVNode)(2,o.Dropdown,{width:"100%",maxHeight:"160px",options:Object.values(N),selected:N[g],onSelected:function(){function R(O){return y(Object.keys(N)[Object.values(N).indexOf(O)])}return R}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.Dropdown,{width:"100%",maxHeight:"160px",options:Object.values(V),selected:V[L],onSelected:function(){function R(O){return I(Object.values(V).indexOf(O))}return R}()})]}),(0,e.createComponentVNode)(2,o.Section,{title:"Tickets",scrollable:!0,children:(0,e.createComponentVNode)(2,o.Tabs,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{onClick:function(){function R(){return p("new_ticket")}return R}(),children:["New Ticket",(0,e.createComponentVNode)(2,o.Icon,{name:"plus",ml:.5})]}),(0,e.createComponentVNode)(2,o.Divider),A.map(function(R){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:R.id===(C==null?void 0:C.id),onClick:function(){function O(){return p("pick_ticket",{ticket_id:R.id})}return O}(),children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{content:V[R.level],color:k[R.level]})," ",R.name]}),(0,e.createComponentVNode)(2,o.Box,{fontSize:.9,textColor:h[R.state],children:["State: ",N[R.state]," | Assignee:"," ",R.handler]})]})},R.id)})]})})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:!0,children:C&&(0,e.createComponentVNode)(2,o.Section,{title:"Ticket #"+C.id,buttons:(0,e.createComponentVNode)(2,o.Box,{nowrap:!0,children:[(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-up",content:"Undock",onClick:function(){function R(){return p("undock_ticket")}return R}()})," ",(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Rename Ticket",onClick:function(){function R(){return p("retitle_ticket")}return R}()})," ",(0,e.createComponentVNode)(2,o.Button,{content:"Legacy UI",onClick:function(){function R(){return p("legacy")}return R}()})," ",(0,e.createComponentVNode)(2,o.Button,{content:V[C.level],color:k[C.level]})]}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Ticket ID",children:["#",C.id,":"," ",(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:C.name}})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:V[C.level]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"State",children:N[C.state]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Assignee",children:C.handler}),N[C.state]===N.open?(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Opened At",children:[C.opened_at_date," (",Math.round(C.opened_at/600*10)/10," ","minutes ago.)"]}):(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Closed At",children:[C.closed_at_date," (",Math.round(C.closed_at/600*10)/10," ","minutes ago.)"," ",(0,e.createComponentVNode)(2,o.Button,{content:"Reopen",onClick:function(){function R(){return p("reopen_ticket")}return R}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:C.actions}})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Log"})]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.Flex,{direction:"column",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{maxWidth:"500px",children:Object.keys(C.log).slice(0).map(function(R){return(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:C.log[R]}})})}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,autoSelect:!0,fluid:!0,placeholder:"Enter a message...",value:T,onInput:function(){function R(O,_){return M(_)}return R}(),onKeyDown:function(){function R(O){var _=window.event?O.which:O.keyCode;_===a.KEY_ENTER&&(p("send_msg",{msg:T}),M(""))}return R}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Send",onClick:function(){function R(){p("send_msg",{msg:T}),M("")}return R}()})})]})})]})]})||(0,e.createComponentVNode)(2,o.Section,{title:"No ticket selected",buttons:(0,e.createComponentVNode)(2,o.Box,{nowrap:!0,children:[(0,e.createComponentVNode)(2,o.Button,{disabled:!0,icon:"arrow-up",content:"Undock",onClick:function(){function R(){return p("undock_ticket")}return R}()})," ",(0,e.createComponentVNode)(2,o.Button,{disabled:!0,icon:"pen",content:"Rename Ticket",onClick:function(){function R(){return p("retitle_ticket")}return R}()})," ",(0,e.createComponentVNode)(2,o.Button,{content:"Legacy UI",onClick:function(){function R(){return p("legacy")}return R}()})]}),children:"Please select a ticket on the left to view its details."})})]})})})}return u}()},45336:function(x,r,n){"use strict";r.__esModule=!0,r.TimeClock=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(11477),V=n(70237),k=r.TimeClock=function(){function S(N,h){var s=(0,t.useBackend)(h),l=s.act,u=s.data,i=u.department_hours,c=u.user_name,d=u.card,p=u.assignment,v=u.job_datum,f=u.allow_change_job,C=u.job_choices;return(0,e.createComponentVNode)(2,m.Window,{width:500,height:520,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"OOC",children:[(0,e.createComponentVNode)(2,o.NoticeBox,{children:"OOC Note: PTO acquired is account-wide and shared across all characters. Info listed below is not IC information."}),(0,e.createComponentVNode)(2,o.Section,{level:2,title:"Time Off Balance for "+c,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:Object.keys(i).map(function(b){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:b,color:i[b]>6?"good":i[b]>1?"average":"bad",children:[(0,a.toFixed)(i[b],1)," ",i[b]===1?"hour":"hours"]},b)})})})]}),(0,e.createComponentVNode)(2,o.Section,{title:"Employee Info",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Employee ID",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"user",onClick:function(){function b(){return l("id")}return b}(),children:d||"Insert ID"})}),!!v&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Rank",children:(0,e.createComponentVNode)(2,o.Box,{backgroundColor:v.selection_color,p:.8,children:(0,e.createComponentVNode)(2,o.Flex,{justify:"space-between",align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Box,{ml:1,children:(0,e.createComponentVNode)(2,V.RankIcon,{color:"white",rank:v.title})})}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Box,{fontSize:1.5,inline:!0,mr:1,children:v.title})})]})})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Departments",children:v.departments}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pay Scale",children:v.economic_modifier}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"PTO Elegibility",children:v.timeoff_factor>0&&(0,e.createComponentVNode)(2,o.Box,{children:["Earns PTO - ",v.pto_department]})||v.timeoff_factor<0&&(0,e.createComponentVNode)(2,o.Box,{children:["Requires PTO - ",v.pto_department]})||(0,e.createComponentVNode)(2,o.Box,{children:"Neutral"})})],4)]})}),!!(f&&v&&v.timeoff_factor!==0&&p!=="Dismissed")&&(0,e.createComponentVNode)(2,o.Section,{title:"Employment Actions",children:v.timeoff_factor>0&&(i[v.pto_department]>0&&(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"exclamation-triangle",onClick:function(){function b(){return l("switch-to-offduty")}return b}(),children:"Go Off-Duty"})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Warning: You do not have enough accrued time off to go off-duty."}))||Object.keys(C).length&&Object.keys(C).map(function(b){var g=C[b];return g.map(function(y){return(0,e.createComponentVNode)(2,o.Button,{icon:"suitcase",onClick:function(){function B(){return l("switch-to-onduty-rank",{"switch-to-onduty-rank":b,"switch-to-onduty-assignment":y})}return B}(),children:y},y)})})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"No Open Positions - See Head Of Personnel"})})]})})}return S}()},59799:function(x,r,n){"use strict";r.__esModule=!0,r.TraitTutorial=r.TraitSelection=r.TraitDescription=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.TraitTutorial=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data;return(0,e.createComponentVNode)(2,o.Window,{width:804,height:426,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Guide to Custom Traits",children:(0,e.createComponentVNode)(2,V)})})})}return S}(),V=r.TraitSelection=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.names,c=u.selection;return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{shrink:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Trait Selection",children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:i.map(function(d){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:d===c,onClick:function(){function p(){return l("select_trait",{name:d})}return p}(),children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:d})},d)})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:8,children:c&&(0,e.createComponentVNode)(2,t.Section,{title:c,children:(0,e.createComponentVNode)(2,k,{name:c})})})]})}return S}(),k=r.TraitDescription=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=N.name,c=u.descriptions,d=u.categories,p=u.tutorials;return(0,e.createComponentVNode)(2,t.Section,{StackWrap:!0,children:[(0,e.createVNode)(1,"b",null,"Name:",16)," ",i,(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Category:",16)," ",d[i],(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Description:",16)," ",c[i],(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Details & How to Use:",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:p[i]}})]})}return S}()},18871:function(x,r,n){"use strict";r.__esModule=!0,r.TransferValve=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.TransferValve=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.tank_one,u=s.tank_two,i=s.attached_device,c=s.valve;return(0,e.createComponentVNode)(2,o.Window,{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:"Valve Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:c?"unlock":"lock",content:c?"Open":"Closed",disabled:!l||!u,onClick:function(){function d(){return h("toggle")}return d}()})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Assembly",buttons:(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",width:"150px",icon:"cog",content:"Configure Assembly",disabled:!i,onClick:function(){function d(){return h("device")}return d}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:i?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:i,disabled:!i,onClick:function(){function d(){return h("remove_device")}return d}()})}):(0,e.createComponentVNode)(2,t.NoticeBox,{textAlign:"center",children:"Attach Assembly"})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment One",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:l?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:l,disabled:!l,onClick:function(){function d(){return h("tankone")}return d}()})}):(0,e.createComponentVNode)(2,t.NoticeBox,{textAlign:"center",children:"Attach Tank"})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment Two",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:u?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:u,disabled:!u,onClick:function(){function d(){return h("tanktwo")}return d}()})}):(0,e.createComponentVNode)(2,t.NoticeBox,{textAlign:"center",children:"Attach Tank"})})})]})})}return V}()},57427:function(x,r,n){"use strict";r.__esModule=!0,r.TurbineControl=void 0;var e=n(58734),a=n(43820),t=n(62188),o=n(11790),m=n(11477),V=r.TurbineControl=function(){function k(S,N){var h=(0,t.useBackend)(N),s=h.act,l=h.data,u=l.connected,i=l.compressor_broke,c=l.turbine_broke,d=l.broken,p=l.door_status,v=l.online,f=l.power,C=l.rpm,b=l.temp;return(0,e.createComponentVNode)(2,m.Window,{width:520,height:440,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"Turbine Controller",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:d&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:["Setup is broken",(0,e.createComponentVNode)(2,o.Button,{icon:"sync",onClick:function(){function g(){return s("reconnect")}return g}(),content:"Reconnect"})]})||(0,e.createComponentVNode)(2,o.Box,{color:v?"good":"bad",children:v&&!i&&!c?"Online":"Offline"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Compressor",children:i&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Compressor is inoperable."})||c&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Turbine is inoperable."})||(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Button.Checkbox,{checked:v,content:"Compressor Power",onClick:function(){function g(){return s(v?"power-off":"power-on")}return g}()})})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Vent Doors",children:(0,e.createComponentVNode)(2,o.Button.Checkbox,{checked:p,onClick:function(){function g(){return s("doors")}return g}(),content:p?"Closed":"Open"})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Turbine Speed",children:[d?"--":(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:C})," RPM"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Internal Temperature",children:[d?"--":(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:b})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Generated Power",children:d?"--":(0,e.createComponentVNode)(2,o.AnimatedNumber,{format:function(){function g(y){return(0,a.formatPower)(y)}return g}(),value:Number(f)})})]})})]})})}return k}()},68710:function(x,r,n){"use strict";r.__esModule=!0,r.Turbolift=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.Turbolift=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.floors,u=s.doors_open,i=s.fire_mode;return(0,e.createComponentVNode)(2,o.Window,{width:480,height:260+i*25,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Floor Selection",className:i?"Section--elevator--fire":null,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:u?"door-open":"door-closed",content:u?i?"Close Doors (SAFETY OFF)":"Doors Open":"Doors Closed",selected:u&&!i,color:i?"red":null,onClick:function(){function c(){return h("toggle_doors")}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",color:"bad",content:"Emergency Stop",onClick:function(){function c(){return h("emergency_stop")}return c}()})],4),children:[!i||(0,e.createComponentVNode)(2,t.Section,{className:"Section--elevator--fire",textAlign:"center",title:"FIREFIGHTER MODE ENGAGED"}),(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:l.map(function(c){return(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"100%",children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",justify:"space-around",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"22%",textAlign:"right",mr:"3px",children:c.label||"Floor #"+c.id}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"8%",textAlign:"left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"circle",color:c.current?"red":c.target?"green":c.queued?"yellow":null,onClick:function(){function d(){return h("move_to_floor",{ref:c.ref})}return d}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"50%",grow:1,children:c.name})]})},c.id)})})]})})})}return V}()},3790:function(x,r,n){"use strict";r.__esModule=!0,r.Uplink=r.GenericUplink=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=n(43820),V=n(11477),k=25,S=r.Uplink=function(){function u(i,c){var d=(0,t.useBackend)(c),p=d.data,v=(0,t.useLocalState)(c,"screen",0),f=v[0],C=v[1],b=p.telecrystals;return(0,e.createComponentVNode)(2,V.Window,{width:620,height:580,theme:"syndicate",resizable:!0,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,N,{screen:f,setScreen:C}),f===0&&(0,e.createComponentVNode)(2,s,{currencyAmount:b,currencySymbol:"TC"})||f===1&&(0,e.createComponentVNode)(2,h)||(0,e.createComponentVNode)(2,o.Section,{color:"bad",children:"Error"})]})})}return u}(),N=function(i,c){var d=(0,t.useBackend)(c),p=d.act,v=d.data,f=i.screen,C=i.setScreen,b=v.discount_name,g=v.discount_amount,y=v.offer_expiry;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.Tabs,{style:{"border-bottom":"none","margin-bottom":"0"},children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:f===0,onClick:function(){function B(){return C(0)}return B}(),children:"Request Items"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:f===1,onClick:function(){function B(){return C(1)}return B}(),children:"Exploitable Information"})]}),(0,e.createComponentVNode)(2,o.Section,{title:"Item Discount",level:2,children:g<100&&(0,e.createComponentVNode)(2,o.Box,{children:[b," - ",g,"% off. Offer expires at:"," ",y]})||(0,e.createComponentVNode)(2,o.Box,{children:"No items currently discounted."})})]})},h=function(i,c){var d=(0,t.useBackend)(c),p=d.act,v=d.data,f=v.exploit,C=v.locked_records;return(0,e.createComponentVNode)(2,o.Section,{title:"Exploitable Information",buttons:f&&(0,e.createComponentVNode)(2,o.Button,{icon:"undo",content:"Back",onClick:function(){function b(){return p("view_exploits",{id:0})}return b}()}),children:f&&(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:f.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sex",children:f.sex}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Species",children:f.species}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Age",children:f.age}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Rank",children:f.rank}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Home System",children:f.home_system}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Birthplace",children:f.birthplace}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Citizenship",children:f.citizenship}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Faction",children:f.faction}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Religion",children:f.religion}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Fingerprint",children:f.fingerprint}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Other Affiliations",children:f.antagfaction}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:"Acquired Information"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:f.nanoui_exploit_record.split("<br>").map(function(b){return(0,e.createComponentVNode)(2,o.Box,{children:b},b)})})]})})||C.map(function(b){return(0,e.createComponentVNode)(2,o.Button,{icon:"eye",fluid:!0,content:b.name,onClick:function(){function g(){return p("view_exploits",{id:b.id})}return g}()},b.id)})})},s=r.GenericUplink=function(){function u(i,c){var d,p,v=i.currencyAmount,f=v===void 0?0:v,C=i.currencySymbol,b=C===void 0?"\u20AE":C,g=(0,t.useBackend)(c),y=g.act,B=g.data,L=B.compactMode,I=B.lockable,w=B.categories,T=w===void 0?[]:w,M=(0,t.useLocalState)(c,"searchText",""),A=M[0],R=M[1],O=(0,t.useLocalState)(c,"category",(d=T[0])==null?void 0:d.name),_=O[0],P=O[1],D=(0,a.createSearch)(A,function(U){return U.name+U.desc}),z=A.length>0&&T.flatMap(function(U){return U.items||[]}).filter(D).filter(function(U,W){return W<k})||((p=T.find(function(U){return U.name===_}))==null?void 0:p.items)||[];return(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:f>0?"good":"bad",children:[(0,m.formatMoney)(f)," ",b]}),buttons:(0,e.createFragment)([(0,e.createTextVNode)("Search"),(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,value:A,onInput:function(){function U(W,K){return R(K)}return U}(),mx:1}),(0,e.createComponentVNode)(2,o.Button,{icon:L?"list":"info",content:L?"Compact":"Detailed",onClick:function(){function U(){return y("compact_toggle")}return U}()}),!!I&&(0,e.createComponentVNode)(2,o.Button,{icon:"lock",content:"Lock",onClick:function(){function U(){return y("lock")}return U}()})],0),children:(0,e.createComponentVNode)(2,o.Flex,{children:[A.length===0&&(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{vertical:!0,children:T.map(function(U){var W;return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:U.name===_,onClick:function(){function K(){return P(U.name)}return K}(),children:[U.name," (",((W=U.items)==null?void 0:W.length)||0,")"]},U.name)})})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,basis:0,children:[z.length===0&&(0,e.createComponentVNode)(2,o.NoticeBox,{children:A.length===0?"No items in this category.":"No results found."}),(0,e.createComponentVNode)(2,l,{compactMode:A.length>0||L,currencyAmount:f,currencySymbol:b,items:z})]})]})})}return u}(),l=function(i,c){var d=i.compactMode,p=i.currencyAmount,v=i.currencySymbol,f=(0,t.useBackend)(c),C=f.act,b=(0,t.useLocalState)(c,"hoveredItem",{}),g=b[0],y=b[1],B=g&&g.cost||0,L=i.items.map(function(I){var w=g&&g.name!==I.name,T=p-B<I.cost,M=w&&T,A=p<I.cost||M;return Object.assign({},I,{disabled:A})});return d?(0,e.createComponentVNode)(2,o.Table,{children:L.map(function(I){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,children:(0,a.decodeHtmlEntities)(I.name)}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:(0,m.formatMoney)(I.cost)+" "+v,disabled:I.disabled,tooltip:I.desc,tooltipPosition:"left",onmouseover:function(){function w(){return y(I)}return w}(),onmouseout:function(){function w(){return y({})}return w}(),onClick:function(){function w(){return C("buy",{ref:I.ref})}return w}()})})]},I.name)})}):L.map(function(I){return(0,e.createComponentVNode)(2,o.Section,{title:I.name,level:2,buttons:(0,e.createComponentVNode)(2,o.Button,{content:I.cost+" "+v,disabled:I.disabled,onmouseover:function(){function w(){return y(I)}return w}(),onmouseout:function(){function w(){return y({})}return w}(),onClick:function(){function w(){return C("buy",{ref:I.ref})}return w}()}),children:(0,a.decodeHtmlEntities)(I.desc)},I.name)})}},33954:function(x,r,n){"use strict";r.__esModule=!0,r.VendingProducts=r.VendingMaintenance=r.Vending=void 0;var e=n(58734),a=n(59641),t=n(62188),o=n(11790),m=n(11477),V=function(s,l){var u=(0,t.useBackend)(l),i=u.act,c=u.data,d=c.actively_vending,p=s.product;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:p.isatom&&(0,e.createVNode)(1,"span",(0,a.classes)(["vending32x32",p.path]),null,1,{style:{"vertical-align":"middle","horizontal-align":"middle"}})||null}),(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,color:p.color,children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,position:"relative",children:[p.name,p.desc?(0,e.createComponentVNode)(2,o.Tooltip,{content:p.desc,position:"right"}):null]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Box,{color:p.amount<=0&&"bad"||p.amount<=p.max_amount/2&&"average"||"good",children:[p.amount," in stock"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:p.price?"credit-card":"download",iconSpin:d===p.name,disabled:p.amount===0,content:p.price?"Buy ("+p.price+"\u20AE)":"Vend",onClick:function(){function v(){return i("vend",{vend:p.key})}return v}()})})]})},k=r.Vending=function(){function h(s,l){var u=(0,t.useBackend)(l),i=u.act,c=u.data,d=c.panel;return(0,e.createComponentVNode)(2,m.Window,{width:450,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,S),d?(0,e.createComponentVNode)(2,N):null]})})}return h}(),S=r.VendingProducts=function(){function h(s,l){var u=(0,t.useBackend)(l),i=u.act,c=u.data,d=c.coin,p=c.chargesMoney,v=c.user,f=c.userMoney,C=c.guestNotice,b=c.products,g=b.filter(function(y){return!!y});return(0,e.createFragment)([!!p&&(0,e.createComponentVNode)(2,o.Section,{title:"User",children:v&&(0,e.createComponentVNode)(2,o.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,v.name,0),", ",(0,e.createVNode)(1,"b",null,v.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[f,(0,e.createTextVNode)("\u20AE Thalers")],0),"."]})||(0,e.createComponentVNode)(2,o.Box,{color:"light-grey",children:C})}),(0,e.createComponentVNode)(2,o.Section,{title:"Products",children:(0,e.createComponentVNode)(2,o.Table,{children:g.map(function(y){return(0,e.createComponentVNode)(2,V,{product:y},y.name)})})}),!!d&&(0,e.createComponentVNode)(2,o.Section,{title:d+" deposited",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject Coin",onClick:function(){function y(){return i("remove_coin")}return y}()})})],0)}return h}(),N=r.VendingMaintenance=function(){function h(s,l){var u=(0,t.useBackend)(l),i=u.act,c=u.data,d=c.speaker;return(0,e.createComponentVNode)(2,o.Section,{title:"Maintenance Panel",children:(0,e.createComponentVNode)(2,o.Section,{title:"Speaker",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:d?"volume-up":"volume-off",content:d?"Enabled":"Disabled",selected:d,onClick:function(){function p(){return i("togglevoice")}return p}()})})})}return h}()},98115:function(x,r,n){"use strict";r.__esModule=!0,r.VolumePanel=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.VolumePanel=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.volume_channels;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Volume Levels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:Object.keys(l).map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u,children:[(0,e.createComponentVNode)(2,t.Slider,{width:"88%",minValue:0,maxValue:200,value:l[u]*100,onChange:function(){function i(c,d){return h("adjust_volume",{channel:u,vol:d/100})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{ml:1,icon:"undo",onClick:function(){function i(){return h("adjust_volume",{channel:u,vol:1})}return i}()})]},u)})})})})})}return V}()},3439:function(x,r,n){"use strict";r.__esModule=!0,r.VorePanel=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=n(11477),V=n(59641),k=["spec"];function S(A,R){if(A==null)return{};var O={},_=Object.keys(A),P,D;for(D=0;D<_.length;D++)P=_[D],!(R.indexOf(P)>=0)&&(O[P]=A[P]);return O}var N=[null,"average","bad"],h={Hold:null,Digest:"red",Absorb:"purple",Unabsorb:"purple",Drain:"orange",Selective:"orange",Shrink:"teal",Grow:"teal","Size Steal":"teal",Heal:"green","Encase In Egg":"blue"},s={Hold:"being held.",Digest:"being digested.",Absorb:"being absorbed.",Unabsorb:"being unabsorbed.",Drain:"being drained.",Selective:"being processed.",Shrink:"being shrunken.",Grow:"being grown.","Size Steal":"having your size stolen.",Heal:"being healed.","Encase In Egg":"being encased in an egg."},l=r.VorePanel=function(){function A(R,O){var _=(0,t.useBackend)(O),P=_.act,D=_.data,z=(0,t.useLocalState)(O,"panelTabIndex",0),U=z[0],W=z[1],K=[];return K[0]=(0,e.createComponentVNode)(2,i),K[1]=(0,e.createComponentVNode)(2,I),(0,e.createComponentVNode)(2,m.Window,{width:890,height:660,theme:"abstract",resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[D.unsaved_changes&&(0,e.createComponentVNode)(2,o.NoticeBox,{danger:!0,children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"90%",children:"Warning: Unsaved Changes!"}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Save Prefs",icon:"save",onClick:function(){function H(){return P("saveprefs")}return H}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Save Prefs & Export Selected Belly",icon:"download",onClick:function(){function H(){P("saveprefs"),P("exportpanel")}return H}()})})]})})||null,(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:U===0,onClick:function(){function H(){return W(0)}return H}(),children:["Bellies",(0,e.createComponentVNode)(2,o.Icon,{name:"list",ml:.5})]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:U===1,onClick:function(){function H(){return W(1)}return H}(),children:["Preferences",(0,e.createComponentVNode)(2,o.Icon,{name:"user-cog",ml:.5})]})]}),K[U]||"Error"]})})}return A}(),u=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=_.data,z=D.inside,U=z.absorbed,W=z.belly_name,K=z.belly_mode,H=z.desc,Y=z.pred,J=z.contents,q=z.ref;return W?(0,e.createComponentVNode)(2,o.Section,{title:"Inside",children:[(0,e.createComponentVNode)(2,o.Box,{color:"green",inline:!0,children:["You are currently ",U?"absorbed into":"inside"]}),"\xA0",(0,e.createComponentVNode)(2,o.Box,{color:"yellow",inline:!0,children:[Y,"'s"]}),"\xA0",(0,e.createComponentVNode)(2,o.Box,{color:"red",inline:!0,children:W}),"\xA0",(0,e.createComponentVNode)(2,o.Box,{color:"yellow",inline:!0,children:"and you are"}),"\xA0",(0,e.createComponentVNode)(2,o.Box,{color:h[K],inline:!0,children:s[K]}),"\xA0",(0,e.createComponentVNode)(2,o.Box,{color:"label",children:H}),J.length&&(0,e.createComponentVNode)(2,o.Collapsible,{title:"Belly Contents",children:(0,e.createComponentVNode)(2,y,{contents:J,belly:q})})||"There is nothing else around you."]}):(0,e.createComponentVNode)(2,o.Section,{title:"Inside",children:"You aren't inside anyone."})},i=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=_.data,z=D.our_bellies,U=D.selected;return(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{shrink:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"My Bellies",scollable:!0,children:(0,e.createComponentVNode)(2,o.Tabs,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{onClick:function(){function W(){return P("newbelly")}return W}(),children:["New",(0,e.createComponentVNode)(2,o.Icon,{name:"plus",ml:.5})]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{onClick:function(){function W(){return P("exportpanel")}return W}(),children:["Export",(0,e.createComponentVNode)(2,o.Icon,{name:"file-export",ml:.5})]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{onClick:function(){function W(){return P("importpanel")}return W}(),children:["Import",(0,e.createComponentVNode)(2,o.Icon,{name:"file-import",ml:.5})]}),(0,e.createComponentVNode)(2,o.Divider),z.map(function(W){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:W.selected,textColor:h[W.digest_mode],onClick:function(){function K(){return P("bellypick",{bellypick:W.ref})}return K}(),children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,textColor:W.selected&&h[W.digest_mode]||null,children:[W.name," (",W.contents,")"]})},W.name)})]})})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:!0,children:U&&(0,e.createComponentVNode)(2,o.Section,{title:U.belly_name,children:(0,e.createComponentVNode)(2,c,{belly:U})})})]})},c=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=R.belly,z=D.contents,U=(0,t.useLocalState)(O,"bellyTabIndex",0),W=U[0],K=U[1],H=[];return H[0]=(0,e.createComponentVNode)(2,d,{belly:D}),H[1]=(0,e.createComponentVNode)(2,p,{belly:D}),H[2]=(0,e.createComponentVNode)(2,v,{belly:D}),H[3]=(0,e.createComponentVNode)(2,C,{belly:D}),H[4]=(0,e.createComponentVNode)(2,b,{belly:D}),H[5]=(0,e.createComponentVNode)(2,g,{belly:D}),H[6]=(0,e.createComponentVNode)(2,y,{outside:!0,contents:z}),H[7]=(0,e.createComponentVNode)(2,B,{belly:D}),H[8]=(0,e.createComponentVNode)(2,L,{belly:D}),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:W===0,onClick:function(){function Y(){return K(0)}return Y}(),children:"Controls"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:W===1,onClick:function(){function Y(){return K(1)}return Y}(),children:"Descriptions"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:W===2,onClick:function(){function Y(){return K(2)}return Y}(),children:"Options"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:W===3,onClick:function(){function Y(){return K(3)}return Y}(),children:"Sounds"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:W===4,onClick:function(){function Y(){return K(4)}return Y}(),children:"Visuals"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:W===5,onClick:function(){function Y(){return K(5)}return Y}(),children:"Interactions"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:W===6,onClick:function(){function Y(){return K(6)}return Y}(),children:["Contents (",z.length,")"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:W===7,onClick:function(){function Y(){return K(7)}return Y}(),children:"Liquid Options"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:W===8,onClick:function(){function Y(){return K(8)}return Y}(),children:"Liquid Messages"})]}),H[W]||"Error"],0)},d=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=R.belly,z=D.belly_name,U=D.mode,W=D.item_mode,K=D.addons;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-up",tooltipPosition:"left",tooltip:"Move this belly tab up.",onClick:function(){function H(){return P("move_belly",{dir:-1})}return H}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-down",tooltipPosition:"left",tooltip:"Move this belly tab down.",onClick:function(){function H(){return P("move_belly",{dir:1})}return H}()})],4),children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_name"})}return H}(),content:z})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mode",children:(0,e.createComponentVNode)(2,o.Button,{color:h[U],onClick:function(){function H(){return P("set_attribute",{attribute:"b_mode"})}return H}(),content:U})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mode Addons",children:[K.length&&K.join(", ")||"None",(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_addons"})}return H}(),ml:1,icon:"plus"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Item Mode",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_item_mode"})}return H}(),content:W})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{basis:"100%",mt:1,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,icon:"exclamation-triangle",confirmIcon:"trash",color:"red",content:"Delete Belly",confirmContent:"This is irreversable!",onClick:function(){function H(){return P("set_attribute",{attribute:"b_del"})}return H}()})})]})},p=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=R.belly,z=D.verb,U=D.release_verb,W=D.desc,K=D.absorbed_desc;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",buttons:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_desc"})}return H}(),icon:"pen"}),children:W}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description (Absorbed)",buttons:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_absorbed_desc"})}return H}(),icon:"pen"}),children:K}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Vore Verb",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_verb"})}return H}(),content:z})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Release Verb",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_release_verb"})}return H}(),content:U})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Examine Messages",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"em"})}return H}(),content:"Examine Message (when full)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"ema"})}return H}(),content:"Examine Message (with absorbed victims)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Struggle Messages",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"smo"})}return H}(),content:"Struggle Message (outside)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"smi"})}return H}(),content:"Struggle Message (inside)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"asmo"})}return H}(),content:"Absorbed Struggle Message (outside)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"asmi"})}return H}(),content:"Absorbed Struggle Message (inside)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Escape Messages",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"escap"})}return H}(),content:"Escape Attempt Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"escao"})}return H}(),content:"Escape Attempt Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"escp"})}return H}(),content:"Escape Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"esco"})}return H}(),content:"Escape Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"escout"})}return H}(),content:"Escape Message (outside)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"escip"})}return H}(),content:"Escape Item Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"escio"})}return H}(),content:"Escape Item Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"esciout"})}return H}(),content:"Escape Item Message (outside)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"escfp"})}return H}(),content:"Escape Fail Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"escfo"})}return H}(),content:"Escape Fail Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"aescap"})}return H}(),content:"Absorbed Escape Attempt Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"aescao"})}return H}(),content:"Absorbed Escape Attempt Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"aescp"})}return H}(),content:"Absorbed Escape Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"aesco"})}return H}(),content:"Absorbed Escape Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"aescout"})}return H}(),content:"Absorbed Escape Message (outside)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"aescfp"})}return H}(),content:"Absorbed Escape Fail Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"aescfo"})}return H}(),content:"Absorbed Escape Fail Message (to you)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Transfer Messages",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"trnspp"})}return H}(),content:"Primary Transfer Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"trnspo"})}return H}(),content:"Primary Transfer Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"trnssp"})}return H}(),content:"Secondary Transfer Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"trnsso"})}return H}(),content:"Secondary Transfer Message (to you)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Interaction Chance Messages",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"stmodp"})}return H}(),content:"Interaction Chance Digest Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"stmodo"})}return H}(),content:"Interaction Chance Digest Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"stmoap"})}return H}(),content:"Interaction Chance Absorb Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"stmoao"})}return H}(),content:"Interaction Chance Absorb Message (to you)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Bellymode Messages",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"dmp"})}return H}(),content:"Digest Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"dmo"})}return H}(),content:"Digest Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"amp"})}return H}(),content:"Absorb Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"amo"})}return H}(),content:"Absorb Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"uamp"})}return H}(),content:"Unabsorb Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"uamo"})}return H}(),content:"Unabsorb Message (to you)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Idle Messages",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"im_hold"})}return H}(),content:"Idle Messages (Hold)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"im_holdabsorbed"})}return H}(),content:"Idle Messages (Hold Absorbed)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"im_digest"})}return H}(),content:"Idle Messages (Digest)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"im_absorb"})}return H}(),content:"Idle Messages (Absorb)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"im_unabsorb"})}return H}(),content:"Idle Messages (Unabsorb)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"im_drain"})}return H}(),content:"Idle Messages (Drain)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"im_heal"})}return H}(),content:"Idle Messages (Heal)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"im_steal"})}return H}(),content:"Idle Messages (Size Steal)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"im_shrink"})}return H}(),content:"Idle Messages (Shrink)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"im_grow"})}return H}(),content:"Idle Messages (Grow)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"im_egg"})}return H}(),content:"Idle Messages (Encase In Egg)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reset Messages",children:(0,e.createComponentVNode)(2,o.Button,{color:"red",onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"reset"})}return H}(),content:"Reset Messages"})})]})},v=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=_.data,z=D.host_mobtype,U=z.is_cyborg,W=z.is_vore_simple_mob,K=R.belly,H=K.can_taste,Y=K.is_feedable,J=K.nutrition_percent,q=K.digest_brute,oe=K.digest_burn,ae=K.digest_oxy,le=K.digest_tox,he=K.digest_clone,me=K.bulge_size,Be=K.display_absorbed_examine,ce=K.shrink_grow_size,te=K.emote_time,ee=K.emote_active,ie=K.contaminates,Ce=K.contaminate_flavor,Se=K.contaminate_color,we=K.egg_type,pe=K.egg_name,E=K.recycling,Z=K.storing_nutrition,re=K.entrance_logs,X=K.item_digest_logs,ne=K.selective_preference,ve=K.save_digest_mode,Ve=K.eating_privacy_local,Ie=K.silicon_belly_overlay_preference,Pe=K.belly_mob_mult,Ae=K.belly_item_mult,Oe=K.belly_overall_mult,de=K.vorespawn_blacklist,ge=K.private_struggle;return(0,e.createComponentVNode)(2,o.Flex,{wrap:"wrap",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"49%",grow:1,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Can Taste",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_tastes"})}return j}(),icon:H?"toggle-on":"toggle-off",selected:H,content:H?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Feedable",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_feedable"})}return j}(),icon:Y?"toggle-on":"toggle-off",selected:Y,content:Y?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contaminates",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_contaminates"})}return j}(),icon:ie?"toggle-on":"toggle-off",selected:ie,content:ie?"Yes":"No"})}),ie&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contamination Flavor",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_contamination_flavor"})}return j}(),icon:"pen",content:Ce})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contamination Color",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_contamination_color"})}return j}(),icon:"pen",content:(0,a.capitalize)(Se)})})],4)||null,(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Nutritional Gain",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_nutritionpercent"})}return j}(),content:J+"%"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Required Examine Size",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_bulge_size"})}return j}(),content:me*100+"%"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Display Absorbed Examines",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_display_absorbed_examine"})}return j}(),icon:Be?"toggle-on":"toggle-off",selected:Be,content:Be?"True":"False"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Toggle Vore Privacy",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_eating_privacy"})}return j}(),content:(0,a.capitalize)(Ve)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Toggle Struggle Privacy",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_private_struggle"})}return j}(),icon:ge?"toggle-on":"toggle-off",selected:ge,content:ge?"Private":"Loud"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Save Digest Mode",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_save_digest_mode"})}return j}(),icon:ve?"toggle-on":"toggle-off",selected:ve,content:ve?"True":"False"})})]}),(0,e.createComponentVNode)(2,f,{belly:K})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"49%",grow:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Idle Emotes",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_emoteactive"})}return j}(),icon:ee?"toggle-on":"toggle-off",selected:ee,content:ee?"Active":"Inactive"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Idle Emote Delay",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_emotetime"})}return j}(),content:te+" seconds"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Digest Brute Damage",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_brute_dmg"})}return j}(),content:q})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Digest Burn Damage",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_burn_dmg"})}return j}(),content:oe})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Digest Suffocation Damage",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_oxy_dmg"})}return j}(),content:ae})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Digest Toxins Damage",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_tox_dmg"})}return j}(),content:le})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Digest Clone Damage",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_clone_dmg"})}return j}(),content:he})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Shrink/Grow Size",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_grow_shrink"})}return j}(),content:ce*100+"%"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Vore Spawn Blacklist",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_vorespawn_blacklist"})}return j}(),icon:de?"toggle-on":"toggle-off",selected:de,content:de?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Egg Type",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_egg_type"})}return j}(),icon:"pen",content:(0,a.capitalize)(we)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Custom Egg Name",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_egg_name"})}return j}(),icon:"pen",content:pe||"Default"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Recycling",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_recycling"})}return j}(),icon:E?"toggle-on":"toggle-off",selected:E,content:E?"Enabled":"Disabled"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Storing Nutrition",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_storing_nutrition"})}return j}(),icon:Z?"toggle-on":"toggle-off",selected:Z,content:Z?"Storing":"Absorbing"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Entrance Logs",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_entrance_logs"})}return j}(),icon:re?"toggle-on":"toggle-off",selected:re,content:re?"Enabled":"Disabled"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Item Digestion Logs",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_item_digest_logs"})}return j}(),icon:X?"toggle-on":"toggle-off",selected:X,content:X?"Enabled":"Disabled"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Selective Mode Preference",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_selective_mode_pref_toggle"})}return j}(),content:(0,a.capitalize)(ne)})})]})})]})},f=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=_.data,z=D.host_mobtype,U=z.is_cyborg,W=z.is_vore_simple_mob,K=R.belly,H=K.silicon_belly_overlay_preference,Y=K.belly_sprite_option_shown,J=K.belly_sprite_to_affect,q=K.belly_mob_mult,oe=K.belly_item_mult,ae=K.belly_overall_mult;return U?Y&&J==="sleeper"?(0,e.createComponentVNode)(2,o.Section,{title:"Cyborg Controls",width:"80%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Toggle Belly Overlay Mode",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function le(){return P("set_attribute",{attribute:"b_silicon_belly"})}return le}(),content:(0,a.capitalize)(H)})})})}):(0,e.createComponentVNode)(2,o.Section,{title:"Cyborg Controls",width:"80%",children:(0,e.createVNode)(1,"span",null,"Your module does either not support vore sprites or you've selected a belly sprite other than the sleeper within the Visuals section.",16,{style:{color:"red"}})}):W?(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item)}):(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item)})},C=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=R.belly,z=D.is_wet,U=D.wet_loop,W=D.fancy,K=D.sound,H=D.release_sound,Y=D.sound_volume,J=D.noise_freq;return(0,e.createComponentVNode)(2,o.Flex,{wrap:"wrap",children:(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"49%",grow:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Fleshy Belly",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function q(){return P("set_attribute",{attribute:"b_wetness"})}return q}(),icon:z?"toggle-on":"toggle-off",selected:z,content:z?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Internal Loop",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function q(){return P("set_attribute",{attribute:"b_wetloop"})}return q}(),icon:U?"toggle-on":"toggle-off",selected:U,content:U?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Use Fancy Sounds",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function q(){return P("set_attribute",{attribute:"b_fancy_sound"})}return q}(),icon:W?"toggle-on":"toggle-off",selected:W,content:W?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Vore Sound",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function q(){return P("set_attribute",{attribute:"b_sound"})}return q}(),content:K}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function q(){return P("set_attribute",{attribute:"b_soundtest"})}return q}(),icon:"volume-up"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Release Sound",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function q(){return P("set_attribute",{attribute:"b_release"})}return q}(),content:H}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function q(){return P("set_attribute",{attribute:"b_releasesoundtest"})}return q}(),icon:"volume-up"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sound Volume",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function q(){return P("set_attribute",{attribute:"b_sound_volume"})}return q}(),content:Y+"%"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Noise Frequency",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function q(){return P("set_attribute",{attribute:"b_noise_freq"})}return q}(),content:J})})]})})})},b=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=R.belly,z=D.belly_fullscreen,U=D.belly_fullscreen_color,W=D.belly_fullscreen_color2,K=D.belly_fullscreen_color3,H=D.belly_fullscreen_color4,Y=D.belly_fullscreen_alpha,J=D.mapRef,q=D.colorization_enabled,oe=D.possible_fullscreens,ae=D.disable_hud,le=D.vore_sprite_flags,he=D.affects_voresprite,me=D.absorbed_voresprite,Be=D.absorbed_multiplier,ce=D.liquid_voresprite,te=D.liquid_multiplier,ee=D.item_voresprite,ie=D.item_multiplier,Ce=D.health_voresprite,Se=D.resist_animation,we=D.voresprite_size_factor,pe=D.belly_sprite_option_shown,E=D.belly_sprite_to_affect,Z=D.undergarment_chosen,re=D.undergarment_if_none,X=D.undergarment_color,ne=D.tail_option_shown,ve=D.tail_to_change_to,Ve=D.tail_colouration,Ie=D.tail_extra_overlay,Pe=D.tail_extra_overlay2;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Vore Sprites",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"row",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Affect Vore Sprites",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_affects_vore_sprites"})}return Ae}(),icon:he?"toggle-on":"toggle-off",selected:he,content:he?"Yes":"No"})}),he?(0,e.createVNode)(1,"span",null,[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Vore Sprite Mode",children:[le.length&&le.join(", ")||"None",(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_vore_sprite_flags"})}return Ae}(),ml:1,icon:"plus"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Count Absorbed prey for vore sprites",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_count_absorbed_prey_for_sprites"})}return Ae}(),icon:me?"toggle-on":"toggle-off",selected:me,content:me?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Absorbed Multiplier",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_absorbed_multiplier"})}return Ae}(),content:Be})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Count liquid reagents for vore sprites",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_count_liquid_for_sprites"})}return Ae}(),icon:ce?"toggle-on":"toggle-off",selected:ce,content:ce?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Liquid Multiplier",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_liquid_multiplier"})}return Ae}(),content:te})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Count items for vore sprites",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_count_items_for_sprites"})}return Ae}(),icon:ee?"toggle-on":"toggle-off",selected:ee,content:ee?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Items Multiplier",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_item_multiplier"})}return Ae}(),content:ie})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prey health affects vore sprites",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_health_impacts_size"})}return Ae}(),icon:Ce?"toggle-on":"toggle-off",selected:Ce,content:Ce?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Animation when prey resist",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_resist_animation"})}return Ae}(),icon:Se?"toggle-on":"toggle-off",selected:Se,content:Se?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Vore Sprite Size Factor",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_size_factor_sprites"})}return Ae}(),content:we})}),pe?(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Belly Sprite to affect",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_belly_sprite_to_affect"})}return Ae}(),content:E})}):(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Belly Sprite to affect",children:(0,e.createVNode)(1,"span",null,"You do not have any bellysprites.",16,{style:{color:"red"}})}),ne&&le.includes("Undergarment addition")?(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Undergarment type to affect",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_undergarment_choice"})}return Ae}(),content:Z})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Undergarment if none equipped",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_undergarment_if_none"})}return Ae}(),content:re})}),(0,e.createComponentVNode)(2,T,{action_name:"b_undergarment_color",value_of:null,back_color:X,name_of:"Undergarment Color if none"})],4):"",ne&&le.includes("Tail adjustment")?(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tail to change to",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_tail_to_change_to"})}return Ae}(),content:ve})}):""],0):""]})})}),(0,e.createComponentVNode)(2,o.Section,{title:"Belly Fullscreens Preview and Coloring",children:[(0,e.createComponentVNode)(2,o.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,T,{action_name:"b_fullscreen_color",value_of:null,back_color:U,name_of:"1"}),(0,e.createComponentVNode)(2,T,{action_name:"b_fullscreen_color2",value_of:null,back_color:W,name_of:"2"}),(0,e.createComponentVNode)(2,T,{action_name:"b_fullscreen_color3",value_of:null,back_color:K,name_of:"3"}),(0,e.createComponentVNode)(2,T,{action_name:"b_fullscreen_color4",value_of:null,back_color:H,name_of:"4"}),(0,e.createComponentVNode)(2,T,{action_name:"b_fullscreen_alpha",value_of:null,back_color:"#FFFFFF",name_of:"Alpha"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Enable Coloration",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_colorization_enabled"})}return Ae}(),icon:q?"toggle-on":"toggle-off",selected:q,content:q?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview Belly",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_preview_belly"})}return Ae}(),content:"Preview"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Clear Preview",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_clear_preview"})}return Ae}(),content:"Clear"})})]}),(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Vore FX",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Disable Prey HUD",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_disable_hud"})}return Ae}(),icon:ae?"toggle-on":"toggle-off",selected:ae,content:ae?"Yes":"No"})})})}),(0,e.createComponentVNode)(2,o.Section,{title:"Belly Fullscreens Styles",width:"800px",children:["Belly styles:",(0,e.createComponentVNode)(2,o.Button,{fluid:!0,selected:z===""||z===null,onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_fullscreen",val:null})}return Ae}(),children:"Disabled"}),Object.keys(oe).map(function(Ae){return(0,e.createVNode)(1,"span",null,(0,e.createComponentVNode)(2,o.Button,{width:"256px",height:"256px",selected:Ae===z,onClick:function(){function Oe(){return P("set_attribute",{attribute:"b_fullscreen",val:Ae})}return Oe}(),children:(0,e.createComponentVNode)(2,o.Box,{className:(0,V.classes)(["vore240x240",Ae]),style:{transform:"translate(0%, 4%)"}})},Ae),2,{style:{width:"256px"}})})]})]})],4)},g=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=R.belly,z=D.escapable,U=D.interacts,W=D.vorespawn_blacklist,K=D.autotransfer_enabled,H=D.autotransfer;return(0,e.createComponentVNode)(2,o.Section,{title:"Belly Interactions",buttons:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Y(){return P("set_attribute",{attribute:"b_escapable"})}return Y}(),icon:z?"toggle-on":"toggle-off",selected:z,content:z?"Interactions On":"Interactions Off"}),children:[z?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Escape Chance",children:(0,e.createComponentVNode)(2,o.Button,{content:U.escapechance+"%",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_escapechance"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Absorbed Escape Chance",children:(0,e.createComponentVNode)(2,o.Button,{content:U.escapechance_absorbed+"%",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_escapechance_absorbed"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Escape Time",children:(0,e.createComponentVNode)(2,o.Button,{content:U.escapetime/10+"s",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_escapetime"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Transfer Chance",children:(0,e.createComponentVNode)(2,o.Button,{content:U.transferchance+"%",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_transferchance"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Transfer Location",children:(0,e.createComponentVNode)(2,o.Button,{content:U.transferlocation?U.transferlocation:"Disabled",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_transferlocation"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Secondary Transfer Chance",children:(0,e.createComponentVNode)(2,o.Button,{content:U.transferchance_secondary+"%",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_transferchance_secondary"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Secondary Transfer Location",children:(0,e.createComponentVNode)(2,o.Button,{content:U.transferlocation_secondary?U.transferlocation_secondary:"Disabled",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_transferlocation_secondary"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Absorb Chance",children:(0,e.createComponentVNode)(2,o.Button,{content:U.absorbchance+"%",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_absorbchance"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Digest Chance",children:(0,e.createComponentVNode)(2,o.Button,{content:U.digestchance+"%",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_digestchance"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider)]}):"These options only display while interactions are turned on.",(0,e.createComponentVNode)(2,o.Section,{title:"Auto-Transfer Options",buttons:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransfer_enabled"})}return Y}(),icon:K?"toggle-on":"toggle-off",selected:K,content:K?"Auto-Transfer Enabled":"Auto-Transfer Disabled"}),children:K?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Time",children:(0,e.createComponentVNode)(2,o.Button,{content:H.autotransferwait/10+"s",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransferwait"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Min Amount",children:(0,e.createComponentVNode)(2,o.Button,{content:H.autotransfer_min_amount,onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransfer_min_amount"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Max Amount",children:(0,e.createComponentVNode)(2,o.Button,{content:H.autotransfer_max_amount,onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransfer_max_amount"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Primary Chance",children:(0,e.createComponentVNode)(2,o.Button,{content:H.autotransferchance+"%",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransferchance"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Primary Location",children:(0,e.createComponentVNode)(2,o.Button,{content:H.autotransferlocation?H.autotransferlocation:"Disabled",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransferlocation"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Primary Whitelist (Mobs)",children:[H.autotransfer_whitelist.length&&H.autotransfer_whitelist.join(", ")||"Everything",(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransfer_whitelist"})}return Y}(),ml:1,icon:"plus"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Primary Whitelist (Items)",children:[H.autotransfer_whitelist_items.length&&H.autotransfer_whitelist_items.join(", ")||"Everything",(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransfer_whitelist_items"})}return Y}(),ml:1,icon:"plus"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Primary Blacklist (Mobs)",children:[H.autotransfer_blacklist.length&&H.autotransfer_blacklist.join(", ")||"Nothing",(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransfer_blacklist"})}return Y}(),ml:1,icon:"plus"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Primary Blacklist (Items)",children:[H.autotransfer_blacklist_items.length&&H.autotransfer_blacklist_items.join(", ")||"Nothing",(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransfer_blacklist_items"})}return Y}(),ml:1,icon:"plus"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Secondary Chance",children:(0,e.createComponentVNode)(2,o.Button,{content:H.autotransferchance_secondary+"%",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransferchance_secondary"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Secondary Location",children:(0,e.createComponentVNode)(2,o.Button,{content:H.autotransferlocation_secondary?H.autotransferlocation_secondary:"Disabled",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransferlocation_secondary"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Secondary Whitelist (Mobs)",children:[H.autotransfer_secondary_whitelist.length&&H.autotransfer_secondary_whitelist.join(", ")||"Everything",(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransfer_secondary_whitelist"})}return Y}(),ml:1,icon:"plus"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Secondary Whitelist (Items)",children:[H.autotransfer_secondary_whitelist_items.length&&H.autotransfer_secondary_whitelist_items.join(", ")||"Everything",(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransfer_secondary_whitelist_items"})}return Y}(),ml:1,icon:"plus"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Secondary Blacklist (Mobs)",children:[H.autotransfer_secondary_blacklist.length&&H.autotransfer_secondary_blacklist.join(", ")||"Nothing",(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransfer_secondary_blacklist"})}return Y}(),ml:1,icon:"plus"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Secondary Blacklist (Items)",children:[H.autotransfer_secondary_blacklist_items.length&&H.autotransfer_secondary_blacklist_items.join(", ")||"Nothing",(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransfer_secondary_blacklist_items"})}return Y}(),ml:1,icon:"plus"})]})]}):"These options only display while Auto-Transfer is enabled."})]})},y=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=_.data,z=D.show_pictures,U=R.contents,W=R.belly,K=R.outside,H=K===void 0?!1:K;return(0,e.createFragment)([H&&(0,e.createComponentVNode)(2,o.Button,{textAlign:"center",fluid:!0,mb:1,onClick:function(){function Y(){return P("pick_from_outside",{pickall:!0})}return Y}(),children:"All"})||null,z&&(0,e.createComponentVNode)(2,o.Flex,{wrap:"wrap",justify:"center",align:"center",children:U.map(function(Y){return(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"33%",children:[(0,e.createComponentVNode)(2,o.Button,{width:"64px",color:Y.absorbed?"purple":N[Y.stat],style:{"vertical-align":"middle","margin-right":"5px","border-radius":"20px"},onClick:function(){function J(){return P(Y.outside?"pick_from_outside":"pick_from_inside",{pick:Y.ref,belly:W})}return J}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64, "+Y.icon,width:"64px",height:"64px",style:{"-ms-interpolation-mode":"nearest-neighbor","margin-left":"-5px"}})}),Y.name]},Y.name)})})||(0,e.createComponentVNode)(2,o.LabeledList,{children:U.map(function(Y){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:Y.name,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,mt:-1,mb:-1,color:Y.absorbed?"purple":N[Y.stat],onClick:function(){function J(){return P(Y.outside?"pick_from_outside":"pick_from_inside",{pick:Y.ref,belly:W})}return J}(),children:"Interact"})},Y.ref)})})],0)},B=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=R.belly,z=D.show_liq,U=D.liq_interacts,W=D.liq_reagent_gen,K=D.liq_reagent_type,H=D.liq_reagent_name,Y=D.liq_reagent_transfer_verb,J=D.liq_reagent_nutri_rate,q=D.liq_reagent_capacity,oe=D.liq_sloshing,ae=D.liq_reagent_addons,le=D.show_liq_fullness,he=D.liq_messages,me=D.liq_msg1,Be=D.liq_msg2,ce=D.liq_msg3,te=D.liq_msg4,ee=D.liq_msg5,ie=D.custom_reagentcolor,Ce=D.custom_reagentalpha,Se=D.liquid_overlay,we=D.max_liquid_level,pe=D.reagent_touches,E=D.mush_overlay,Z=D.mush_color,re=D.mush_alpha,X=D.max_mush,ne=D.min_mush,ve=D.item_mush_val,Ve=D.metabolism_overlay,Ie=D.metabolism_mush_ratio,Pe=D.max_ingested,Ae=D.custom_ingested_color,Oe=D.custom_ingested_alpha;return(0,e.createComponentVNode)(2,o.Section,{title:"Liquid Options",buttons:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_show_liq"})}return de}(),icon:z?"toggle-on":"toggle-off",selected:z,tooltipPosition:"left",tooltip:"These are the settings for liquid bellies, every belly has a liquid storage.",content:z?"Liquids On":"Liquids Off"}),children:z?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Generate Liquids",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_liq_reagent_gen"})}return de}(),icon:U.liq_reagent_gen?"toggle-on":"toggle-off",selected:U.liq_reagent_gen,content:U.liq_reagent_gen?"On":"Off"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Liquid Type",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_liq_reagent_type"})}return de}(),icon:"pen",content:U.liq_reagent_type})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Liquid Name",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_liq_reagent_name"})}return de}(),content:U.liq_reagent_name})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Transfer Verb",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_liq_reagent_transfer_verb"})}return de}(),content:U.liq_reagent_transfer_verb})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Generation Time",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_liq_reagent_nutri_rate"})}return de}(),icon:"clock",content:(U.liq_reagent_nutri_rate+1)*10/60+" Hours"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Liquid Capacity",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_liq_reagent_capacity"})}return de}(),content:U.liq_reagent_capacity})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Slosh Sounds",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_liq_sloshing"})}return de}(),icon:U.liq_sloshing?"toggle-on":"toggle-off",selected:U.liq_sloshing,content:U.liq_sloshing?"On":"Off"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Liquid Addons",children:[U.liq_reagent_addons.length&&U.liq_reagent_addons.join(", ")||"None",(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_liq_reagent_addons"})}return de}(),ml:1,icon:"plus"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Liquid Application to Prey",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_reagent_touches"})}return de}(),icon:U.reagent_touches?"toggle-on":"toggle-off",selected:U.reagent_touches,content:U.reagent_touches?"On":"Off"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Custom Liquid Color",children:(0,e.createComponentVNode)(2,M,{action_name:"b_custom_reagentcolor",value_of:null,back_color:U.custom_reagentcolor,name_of:"Custom Liquid Color"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Liquid Overlay",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_liquid_overlay"})}return de}(),icon:U.liquid_overlay?"toggle-on":"toggle-off",selected:U.liquid_overlay,content:U.liquid_overlay?"On":"Off"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Max Liquid Level",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_max_liquid_level"})}return de}(),content:U.max_liquid_level+"%"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Custom Liquid Alpha",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_custom_reagentalpha"})}return de}(),content:U.custom_reagentalpha})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Fullness Overlay",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_mush_overlay"})}return de}(),icon:U.mush_overlay?"toggle-on":"toggle-off",selected:U.mush_overlay,content:U.mush_overlay?"On":"Off"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mush Overlay Color",children:(0,e.createComponentVNode)(2,M,{action_name:"b_mush_color",value_of:null,back_color:U.mush_color,name_of:"Custom Mush Color"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mush Overlay Alpha",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_mush_alpha"})}return de}(),content:U.mush_alpha})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mush Overlay Scaling",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_max_mush"})}return de}(),content:U.max_mush})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Minimum Mush Level",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_min_mush"})}return de}(),content:U.min_mush+"%"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Item Mush Value",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_item_mush_val"})}return de}(),content:U.item_mush_val+" fullness per item"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Metabolism Overlay",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_metabolism_overlay"})}return de}(),icon:U.metabolism_overlay?"toggle-on":"toggle-off",selected:U.metabolism_overlay,content:U.metabolism_overlay?"On":"Off"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Metabolism Mush Ratio",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_metabolism_mush_ratio"})}return de}(),content:U.metabolism_mush_ratio+" fullness per reagent unit"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Metabolism Overlay Scaling",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_max_ingested"})}return de}(),content:U.max_ingested})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Custom Metabolism Color",children:(0,e.createComponentVNode)(2,M,{action_name:"b_custom_ingested_color",value_of:null,back_color:U.custom_ingested_color,name_of:"Custom Metabolism Color"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Metabolism Overlay Alpha",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_custom_ingested_alpha"})}return de}(),content:U.custom_ingested_alpha})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Purge Liquids",children:(0,e.createComponentVNode)(2,o.Button,{color:"red",onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_liq_purge"})}return de}(),content:"Purge Liquids"})})]}):"These options only display while liquid settings are turned on."})},L=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=R.belly,z=D.liq_interacts,U=D.liq_reagent_gen,W=D.liq_reagent_type,K=D.liq_reagent_name,H=D.liq_reagent_transfer_verb,Y=D.liq_reagent_nutri_rate,J=D.liq_reagent_capacity,q=D.liq_sloshing,oe=D.liq_reagent_addons,ae=D.show_liq_fullness,le=D.liq_messages,he=D.liq_msg_toggle1,me=D.liq_msg_toggle2,Be=D.liq_msg_toggle3,ce=D.liq_msg_toggle4,te=D.liq_msg_toggle5,ee=D.liq_msg1,ie=D.liq_msg2,Ce=D.liq_msg3,Se=D.liq_msg4,we=D.liq_msg5;return(0,e.createComponentVNode)(2,o.Section,{title:"Liquid Messages",buttons:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function pe(){return P("liq_set_messages",{liq_messages:"b_show_liq_fullness"})}return pe}(),icon:ae?"toggle-on":"toggle-off",selected:ae,tooltipPosition:"left",tooltip:"These are the settings for belly visibility when involving liquids fullness.",content:ae?"Messages On":"Messages Off"}),children:ae?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"0 to 20%",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function pe(){return P("liq_set_messages",{liq_messages:"b_liq_msg_toggle1"})}return pe}(),icon:le.liq_msg_toggle1?"toggle-on":"toggle-off",selected:le.liq_msg_toggle1,content:le.liq_msg_toggle1?"On":"Off"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function pe(){return P("liq_set_messages",{liq_messages:"b_liq_msg1"})}return pe}(),content:"Examine Message (0 to 20%)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"20 to 40%",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function pe(){return P("liq_set_messages",{liq_messages:"b_liq_msg_toggle2"})}return pe}(),icon:le.liq_msg_toggle2?"toggle-on":"toggle-off",selected:le.liq_msg_toggle2,content:le.liq_msg_toggle2?"On":"Off"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function pe(){return P("liq_set_messages",{liq_messages:"b_liq_msg2"})}return pe}(),content:"Examine Message (20 to 40%)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"40 to 60%",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function pe(){return P("liq_set_messages",{liq_messages:"b_liq_msg_toggle3"})}return pe}(),icon:le.liq_msg_toggle3?"toggle-on":"toggle-off",selected:le.liq_msg_toggle3,content:le.liq_msg_toggle3?"On":"Off"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function pe(){return P("liq_set_messages",{liq_messages:"b_liq_msg3"})}return pe}(),content:"Examine Message (40 to 60%)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"60 to 80%",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function pe(){return P("liq_set_messages",{liq_messages:"b_liq_msg_toggle4"})}return pe}(),icon:le.liq_msg_toggle4?"toggle-on":"toggle-off",selected:le.liq_msg_toggle4,content:le.liq_msg_toggle4?"On":"Off"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function pe(){return P("liq_set_messages",{liq_messages:"b_liq_msg4"})}return pe}(),content:"Examine Message (60 to 80%)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"80 to 100%",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function pe(){return P("liq_set_messages",{liq_messages:"b_liq_msg_toggle5"})}return pe}(),icon:le.liq_msg_toggle5?"toggle-on":"toggle-off",selected:le.liq_msg_toggle5,content:le.liq_msg_toggle5?"On":"Off"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function pe(){return P("liq_set_messages",{liq_messages:"b_liq_msg5"})}return pe}(),content:"Examine Message (80 to 100%)"})]})]}):"These options only display while liquid examination settings are turned on."})},I=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=_.data,z=D.prefs,U=z.digestable,W=z.devourable,K=z.resizable,H=z.feeding,Y=z.absorbable,J=z.digest_leave_remains,q=z.allowmobvore,oe=z.permit_healbelly,ae=z.show_vore_fx,le=z.can_be_drop_prey,he=z.can_be_drop_pred,me=z.latejoin_vore,Be=z.latejoin_prey,ce=z.allow_spontaneous_tf,te=z.step_mechanics_active,ee=z.pickup_mechanics_active,ie=z.noisy,Ce=z.noisy_full,Se=z.liq_rec,we=z.liq_giv,pe=z.autotransferable,E=z.drop_vore,Z=z.stumble_vore,re=z.slip_vore,X=z.throw_vore,ne=z.food_vore,ve=z.nutrition_message_visible,Ve=z.weight_message_visible,Ie=z.eating_privacy_global,Pe=D.show_pictures,Ae=(0,t.useLocalState)(O,"tabIndex",0),Oe=Ae[0],de=Ae[1],ge={digestion:{action:"toggle_digest",test:U,tooltip:{main:"This button is for those who don't like being digested. It can make you undigestable.",enable:"Click here to allow digestion.",disable:"Click here to prevent digestion."},content:{enabled:"Digestion Allowed",disabled:"No Digestion"}},absorbable:{action:"toggle_absorbable",test:Y,tooltip:{main:"This button allows preds to know whether you prefer or don't prefer to be absorbed.",enable:"Click here to allow being absorbed.",disable:"Click here to disallow being absorbed."},content:{enabled:"Absorption Allowed",disabled:"No Absorption"}},devour:{action:"toggle_devour",test:W,tooltip:{main:"This button is to toggle your ability to be devoured by others.",enable:"Click here to allow being devoured.",disable:"Click here to prevent being devoured."},content:{enabled:"Devouring Allowed",disabled:"No Devouring"}},mobvore:{action:"toggle_mobvore",test:q,tooltip:{main:"This button is for those who don't like being eaten by mobs.",enable:"Click here to allow being eaten by mobs.",disable:"Click here to prevent being eaten by mobs."},content:{enabled:"Mobs eating you allowed",disabled:"No Mobs eating you"}},feed:{action:"toggle_feed",test:H,tooltip:{main:"This button is to toggle your ability to be fed to or by others vorishly.",enable:"Click here to allow being fed to/by other people.",disable:"Click here to prevent being fed to/by other people."},content:{enabled:"Feeding Allowed",disabled:"No Feeding"}},healbelly:{action:"toggle_healbelly",test:oe,tooltip:{main:"This button is for those who don't like healbelly used on them as a mechanic. It does not affect anything, but is displayed under mechanical prefs for ease of quick checks.",enable:"Click here to allow being heal-bellied.",disable:"Click here to prevent being heal-bellied."},content:{enabled:"Heal-bellies Allowed",disabled:"No Heal-bellies"}},dropnom_prey:{action:"toggle_dropnom_prey",test:le,tooltip:{main:"This toggle is for spontaneous, environment related vore as prey, including drop-noms, teleporters, etc.",enable:"Click here to allow being spontaneous prey.",disable:"Click here to prevent being spontaneous prey."},content:{enabled:"Spontaneous Prey Enabled",disabled:"Spontaneous Prey Disabled"}},dropnom_pred:{action:"toggle_dropnom_pred",test:he,tooltip:{main:"This toggle is for spontaneous, environment related vore as a predator, including drop-noms, teleporters, etc.",enable:"Click here to allow being spontaneous pred.",disable:"Click here to prevent being spontaneous pred."},content:{enabled:"Spontaneous Pred Enabled",disabled:"Spontaneous Pred Disabled"}},toggle_drop_vore:{action:"toggle_drop_vore",test:E,tooltip:{main:"Allows for dropnom spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for dropnoms.",disable:"Click here to disable dropnoms."},content:{enabled:"Drop Noms Enabled",disabled:"Drop Noms Disabled"}},toggle_slip_vore:{action:"toggle_slip_vore",test:re,tooltip:{main:"Allows for slip related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for slip vore.",disable:"Click here to disable slip vore."},content:{enabled:"Slip Vore Enabled",disabled:"Slip Vore Disabled"}},toggle_stumble_vore:{action:"toggle_stumble_vore",test:Z,tooltip:{main:"Allows for stumble related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for stumble vore.",disable:"Click here to disable stumble vore."},content:{enabled:"Stumble Vore Enabled",disabled:"Stumble Vore Disabled"}},toggle_throw_vore:{action:"toggle_throw_vore",test:X,tooltip:{main:"Allows for throw related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for throw vore.",disable:"Click here to disable throw vore."},content:{enabled:"Throw Vore Enabled",disabled:"Throw Vore Disabled"}},toggle_food_vore:{action:"toggle_food_vore",test:ne,tooltip:{main:"Allows for food related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for food vore.",disable:"Click here to disable food vore."},content:{enabled:"Food Vore Enabled",disabled:"Food Vore Disabled"}},spawnbelly:{action:"toggle_latejoin_vore",test:me,tooltip:{main:"Toggle late join vore spawnpoint.",enable:"Click here to turn on vorish spawnpoint.",disable:"Click here to turn off vorish spawnpoint."},content:{enabled:"Vore Spawn Pred Enabled",disabled:"Vore Spawn Pred Disabled"}},spawnprey:{action:"toggle_latejoin_prey",test:Be,tooltip:{main:"Toggle late join preds spawning on you.",enable:"Click here to turn on preds spawning around you.",disable:"Click here to turn off preds spawning around you."},content:{enabled:"Vore Spawn Prey Enabled",disabled:"Vore Spawn Prey Disabled"}},noisy:{action:"toggle_noisy",test:ie,tooltip:{main:"Toggle audible hunger noises.",enable:"Click here to turn on hunger noises.",disable:"Click here to turn off hunger noises."},content:{enabled:"Hunger Noises Enabled",disabled:"Hunger Noises Disabled"}},noisy_full:{action:"toggle_noisy_full",test:Ce,tooltip:{main:"Toggle belching while full.",enable:"Click here to turn on belching while full.",disable:"Click here to turn off belching while full."},content:{enabled:"Belching Enabled",disabled:"Belching Disabled"}},resize:{action:"toggle_resize",test:K,tooltip:{main:"This button is to toggle your ability to be resized by others.",enable:"Click here to allow being resized.",disable:"Click here to prevent being resized."},content:{enabled:"Resizing Allowed",disabled:"No Resizing"}},steppref:{action:"toggle_steppref",test:te,tooltip:{main:"",enable:"You will not participate in step mechanics. Click to enable step mechanics.",disable:"This setting controls whether or not you participate in size-based step mechanics. Includes both stepping on others, as well as getting stepped on. Click to disable step mechanics."},content:{enabled:"Step Mechanics Enabled",disabled:"Step Mechanics Disabled"}},vore_fx:{action:"toggle_fx",test:ae,tooltip:{main:"",enable:"Regardless of Predator Setting, you will not see their FX settings. Click this to enable showing FX.",disable:"This setting controls whether or not a pred is allowed to mess with your HUD and fullscreen overlays. Click to disable all FX."},content:{enabled:"Show Vore FX",disabled:"Do Not Show Vore FX"}},remains:{action:"toggle_leaveremains",test:J,tooltip:{main:"",enable:"Regardless of Predator Setting, you will not leave remains behind. Click this to allow leaving remains.",disable:"Your Predator must have this setting enabled in their belly modes to allow remains to show up, if they do not, they will not leave your remains behind, even with this on. Click to disable remains."},content:{enabled:"Allow Leaving Remains",disabled:"Do Not Allow Leaving Remains"}},pickuppref:{action:"toggle_pickuppref",test:ee,tooltip:{main:"",enable:"You will not participate in pick-up mechanics. Click this to allow picking up/being picked up.",disable:"Allows macros to pick you up into their hands, and you to pick up micros. Click to disable pick-up mechanics."},content:{enabled:"Pick-up Mechanics Enabled",disabled:"Pick-up Mechanics Disabled"}},spontaneous_tf:{action:"toggle_allow_spontaneous_tf",test:ce,tooltip:{main:"This toggle is for spontaneous or environment related transformation as a victim, such as via chemicals.",enable:"Click here to allow being spontaneously transformed.",disable:"Click here to disable being spontaneously transformed."},content:{enabled:"Spontaneous TF Enabled",disabled:"Spontaneous TF Disabled"}},examine_nutrition:{action:"toggle_nutrition_ex",test:ve,tooltip:{main:"",enable:"Click here to enable nutrition messages.",disable:"Click here to disable nutrition messages."},content:{enabled:"Examine Nutrition Messages Active",disabled:"Examine Nutrition Messages Inactive"}},examine_weight:{action:"toggle_weight_ex",test:Ve,tooltip:{main:"",enable:"Click here to enable weight messages.",disable:"Click here to disable weight messages."},content:{enabled:"Examine Weight Messages Active",disabled:"Examine Weight Messages Inactive"}},eating_privacy_global:{action:"toggle_global_privacy",test:Ie,tooltip:{main:"Sets default belly behaviour for vorebellies for announcing ingesting or expelling prey Overwritten by belly-specific preferences if set.",enable:" Click here to turn your messages subtle",disable:" Click here to turn your messages loud"},content:{enabled:"Global Vore Privacy: Subtle",disabled:"Global Vore Privacy: Loud"}},liquid_receive:{action:"toggle_liq_rec",test:Se,tooltip:{main:"This button is for allowing or preventing others from giving you liquids from their vore organs.",enable:"Click here to allow receiving liquids.",disable:"Click here to prevent receiving liquids."},content:{enabled:"Receiving Liquids Allowed",disabled:"Do Not Allow Receiving Liquids"}},liquid_give:{action:"toggle_liq_giv",test:we,tooltip:{main:"This button is for allowing or preventing others from taking liquids from your vore organs.",enable:"Click here to allow taking liquids.",disable:"Click here to prevent taking liquids."},content:{enabled:"Taking Liquids Allowed",disabled:"Do Not Allow Taking Liquids"}},autotransferable:{action:"toggle_autotransferable",test:pe,tooltip:{main:"This button is for allowing or preventing belly auto-transfer mechanics from moving you.",enable:"Click here to allow autotransfer.",disable:"Click here to prevent autotransfer."},content:{enabled:"Auto-Transfer Allowed",disabled:"Do Not Allow Auto-Transfer"}}};return(0,e.createComponentVNode)(2,o.Section,{title:"Mechanical Preferences",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:Pe,onClick:function(){function j(){return P("show_pictures")}return j}(),children:["Contents Preference: ",Pe?"Show Pictures":"Show List"]}),children:[(0,e.createComponentVNode)(2,o.Flex,{spacing:1,wrap:"wrap",justify:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.digestion})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,w,{spec:ge.absorbable})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.devour})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.mobvore})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,w,{spec:ge.feed})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.healbelly,tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.dropnom_prey})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,w,{spec:ge.dropnom_pred})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.toggle_drop_vore})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.toggle_slip_vore})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,w,{spec:ge.toggle_stumble_vore})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.toggle_throw_vore})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.toggle_food_vore})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,w,{spec:ge.spawnbelly})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,w,{spec:ge.spawnprey})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.noisy})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.noisy_full})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.resize})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,w,{spec:ge.steppref,tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.vore_fx,tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.remains,tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,w,{spec:ge.pickuppref,tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.spontaneous_tf})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Selective Mode Preference",onClick:function(){function j(){return P("switch_selective_mode_pref")}return j}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.eating_privacy_global})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,w,{spec:ge.autotransferable})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.liquid_receive,tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.liquid_give,tooltipPosition:"top"})})]}),(0,e.createComponentVNode)(2,o.Section,{title:"Aesthetic Preferences",children:(0,e.createComponentVNode)(2,o.Flex,{spacing:1,wrap:"wrap",justify:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"50%",grow:1,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Set Taste",icon:"grin-tongue",onClick:function(){function j(){return P("setflavor")}return j}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Set Smell",icon:"wind",onClick:function(){function j(){return P("setsmell")}return j}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"50%",grow:1,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_msgs",msgtype:"en"})}return j}(),content:"Set Nutrition Examine Message",icon:"flask",fluid:!0})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_msgs",msgtype:"ew"})}return j}(),content:"Set Weight Examine Message",icon:"weight-hanging",fluid:!0})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"50%",grow:1,children:(0,e.createComponentVNode)(2,w,{spec:ge.examine_nutrition})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,w,{spec:ge.examine_weight})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Vore Sprite Color",onClick:function(){function j(){return P("set_vs_color")}return j}()})})]})}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Flex,{spacing:1,children:[(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"49%",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Save Prefs",icon:"save",onClick:function(){function j(){return P("saveprefs")}return j}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"49%",grow:1,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Reload Prefs",icon:"undo",onClick:function(){function j(){return P("reloadprefs")}return j}()})})]})})]})},w=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=R.spec,z=S(R,k),U=D.action,W=D.test,K=D.tooltip,H=D.content;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Button,Object.assign({onClick:function(){function Y(){return P(U)}return Y}(),icon:W?"toggle-on":"toggle-off",selected:W,fluid:!0,tooltip:K.main+" "+(W?K.disable:K.enable),content:W?H.enabled:H.disabled},z)))},T=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=R.action_name,z=R.value_of,U=R.back_color,W=R.name_of;return(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function K(){P("set_attribute",{attribute:D,val:z})}return K}(),children:(0,e.createComponentVNode)(2,o.Stack,{align:"center",fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{style:{background:U.startsWith("#")?U:"#"+U,border:"2px solid white","box-sizing":"content-box",height:"11px",width:"11px"}})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:["Change ",W]})]})})},M=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=R.action_name,z=R.value_of,U=R.back_color,W=R.name_of;return(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function K(){P("liq_set_attribute",{liq_attribute:D,val:z})}return K}(),children:(0,e.createComponentVNode)(2,o.Stack,{align:"center",fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{style:{background:U.startsWith("#")?U:"#"+U,border:"2px solid white","box-sizing":"content-box",height:"11px",width:"11px"}})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:["Change ",W]})]})})}},75105:function(x,r,n){"use strict";r.__esModule=!0,r.VorePanelExport=void 0;var e=n(58734),a=n(62188),t=n(11477),o=n(11790),m={Hold:'<span class="badge text-bg-secondary">Hold</span>',Digest:'<span class="badge text-bg-danger">Digest</span>',Absorb:'<span class="badge text-bg-light">Absorb</span>',Drain:'<span class="badge text-bg-warning">Drain</span>',Selective:'<span class="badge text-bg-warning">Selective</span>',Unabsorb:'<span class="badge text-bg-light">Unabsorb</span>',Heal:'<span class="badge text-bg-success">Heal</span>',Shrink:'<span class="badge text-bg-info">Shrink</span>',Grow:'<span class="badge text-bg-info">Grow</span>',"Size Steal":'<span class="badge text-bg-info">Size Steal</span>',"Encase In Egg":'<span class="badge text-bg-primary">Encase In Egg</span>'},V={Hold:'<span class="badge text-bg-secondary">Item: Hold</span>',"Digest (Food Only)":'<span class="badge text-bg-danger">Item: Digest (Food Only)</span>',Digest:'<span class="badge text-bg-danger">Item: Digest</span>',"Digest (Dispersed Damage)":'<span class="badge text-bg-danger">Item: Digest (Dispersed Damage)</span>'},k={Numbing:"",Stripping:"","Leave Remains":"",Muffles:"bi-volume-mute","Affect Worn Items":"","Jams Sensors":"bi-wifi-off","Complete Absorb":""},S={"Produce Liquids":"","Digestion Liquids":"","Absorption Liquids":"","Draining Liquids":""},N={Creatures:"",Absorbed:"",Carbon:"",Silicon:"",Mobs:"",Animals:"",Mice:"",Dead:"","Digestable Creatures":"","Absorbable Creatures":"","Full Health":"",Items:"",Trash:"",Eggs:"",Remains:"","Indigestible Items":"","Recyclable Items":"",Ores:"","Clothes and Bags":"",Food:""},h=function(f){var C=[];return f==null||f.forEach(function(b){C.push('<span class="badge text-bg-secondary"><i class="'+k[b]+'"></i>'+b+"</span>")}),C.length===0&&C.push("No Addons Set"),C},s=function(f){var C=[];return f==null||f.forEach(function(b){C.push('<span class="badge text-bg-secondary"><i class="'+S[b]+'"></i>'+b+"</span>")}),C.length===0&&C.push("No Addons Set"),C},l=function(f,C){var b=[];return f==null||f.forEach(function(g){b.push('<span class="badge text-bg-secondary"><i class="'+N[g]+'"></i>'+g+"</span>")}),b.length===0&&(C?b.push("Everything"):b.push("Nothing")),b},u=function(f,C){var b=f.name,g=f.desc,y=f.absorbed_desc,B=f.vore_verb,L=f.release_verb,I=f.mode,w=f.addons,T=f.item_mode,M=f.digest_brute,A=f.digest_burn,R=f.digest_oxy,O=f.can_taste,_=f.is_feedable,P=f.contaminates,D=f.contamination_flavor,z=f.contamination_color,U=f.nutrition_percent,W=f.bulge_size,K=f.display_absorbed_examine,H=f.save_digest_mode,Y=f.emote_active,J=f.emote_time,q=f.shrink_grow_size,oe=f.vorespawn_blacklist,ae=f.egg_type,le=f.egg_name,he=f.selective_preference,me=f.recycling,Be=f.storing_nutrition,ce=f.entrance_logs,te=f.item_digest_logs,ee=f.struggle_messages_outside,ie=f.struggle_messages_inside,Ce=f.absorbed_struggle_messages_outside,Se=f.absorbed_struggle_messages_inside,we=f.escape_attempt_messages_owner,pe=f.escape_attempt_messages_prey,E=f.escape_messages_owner,Z=f.escape_messages_prey,re=f.escape_messages_outside,X=f.escape_item_messages_owner,ne=f.escape_item_messages_prey,ve=f.escape_item_messages_outside,Ve=f.escape_fail_messages_owner,Ie=f.escape_fail_messages_prey,Pe=f.escape_attempt_absorbed_messages_owner,Ae=f.escape_attempt_absorbed_messages_prey,Oe=f.escape_absorbed_messages_owner,de=f.escape_absorbed_messages_prey,ge=f.escape_absorbed_messages_outside,j=f.escape_fail_absorbed_messages_owner,ue=f.escape_fail_absorbed_messages_prey,be=f.primary_transfer_messages_owner,ke=f.primary_transfer_messages_prey,Te=f.secondary_transfer_messages_owner,Ee=f.secondary_transfer_messages_prey,Re=f.digest_chance_messages_owner,_e=f.digest_chance_messages_prey,De=f.absorb_chance_messages_owner,Ue=f.absorb_chance_messages_prey,Xe=f.digest_messages_owner,Qe=f.digest_messages_prey,$e=f.absorb_messages_owner,ht=f.absorb_messages_prey,lt=f.unabsorb_messages_owner,ut=f.unabsorb_messages_prey,kt=f.examine_messages,St=f.examine_messages_absorbed,Mt=f.emotes_digest,Bt=f.emotes_hold,Ot=f.emotes_holdabsorbed,Pt=f.emotes_absorb,Ct=f.emotes_heal,dt=f.emotes_drain,et=f.emotes_steal,nt=f.emotes_egg,st=f.emotes_shrink,vt=f.emotes_grow,gt=f.emotes_unabsorb,$t=f.is_wet,Yt=f.wet_loop,Xt=f.fancy_vore,Qt=f.vore_sound,Lt=f.release_sound,Jt=f.sound_volume,Zt=f.noise_freq,_t=f.affects_vore_sprites,It=f.count_absorbed_prey_for_sprite,Je=f.resist_triggers_animation,qt=f.size_factor_for_sprite,en=f.belly_sprite_to_affect,tn=f.belly_fullscreen,xt=f.belly_fullscreen_color,mt=f.belly_fullscreen_color2,yn=f.belly_fullscreen_color3,kn=f.belly_fullscreen_color4,Sn=f.belly_fullscreen_alpha,nn=f.colorization_enabled,on=f.disable_hud,Rt=f.escapable,rn=f.escapechance,at=f.escapechance_absorbed,an=f.escapetime,cn=f.transferchance,ln=f.transferlocation,un=f.transferchance_secondary,dn=f.transferlocation_secondary,sn=f.absorbchance,wt=f.digestchance,mn=f.autotransferwait,Tt=f.autotransferchance,Dt=f.autotransferlocation,Ft=f.autotransferchance_secondary,jt=f.autotransferlocation_secondary,fn=f.autotransfer_enabled,pn=f.autotransfer_min_amount,hn=f.autotransfer_max_amount,it=f.autotransfer_whitelist,Vt=f.autotransfer_blacklist,Wt=f.autotransfer_secondary_whitelist,Cn=f.autotransfer_secondary_blacklist,vn=f.autotransfer_whitelist_items,zt=f.autotransfer_blacklist_items,Ut=f.autotransfer_secondary_whitelist_items,gn=f.autotransfer_secondary_blacklist_items,Nt=f.show_liquids,Nn=f.reagentbellymode,At=f.reagent_chosen,Ht=f.reagent_name,bn=f.reagent_transfer_verb,Gt=f.gen_time_display,Kt=f.custom_max_volume,Et=f.vorefootsteps_sounds,Bn=f.reagent_mode_flag_list,F=f.liquid_overlay,G=f.max_liquid_level,Q=f.reagent_touches,se=f.mush_overlay,Ne=f.mush_color,ye=f.mush_alpha,Le=f.max_mush,xe=f.min_mush,We=f.item_mush_val,Fe=f.custom_reagentcolor,je=f.custom_reagentalpha,ze=f.metabolism_overlay,Ge=f.metabolism_mush_ratio,Ye=f.max_ingested,He=f.custom_ingested_color,qe=f.custom_ingested_alpha,Ke=f.liquid_fullness1_messages,ct=f.liquid_fullness2_messages,tt=f.liquid_fullness3_messages,bt=f.liquid_fullness4_messages,ot=f.liquid_fullness5_messages,ft=f.fullness1_messages,rt=f.fullness2_messages,yt=f.fullness3_messages,Ze=f.fullness4_messages,pt=f.fullness5_messages,$="";return $+='<div class="accordion-item"><h2 class="accordion-header" id="heading'+C+'">',$+='<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapse'+C+'" aria-expanded="false" aria-controls="collapse'+C+'">',$+=b+' - (<span style="color: red;">'+M+'</span >/<span style="color: orange;">'+A+'</span>/<span style="color: blue;">'+R+"</span>) - "+m[I]+" - "+V[T],$+="</button></h2>",$+='<div id="collapse'+C+'" class="accordion-collapse collapse" aria-labelledby="heading'+C+'" data-bs-parent="#accordionBellies">',$+='<div class="accordion-body">',$+="Addons:<br>"+h(w)+"<br><br>",$+="<b>== Descriptions ==</b><br>",$+="Vore Verb:<br>"+B+"<br><br>",$+="Release Verb:<br>"+L+"<br><br>",$+='Description:<br>"'+g+'"<br><br>',$+='Absorbed Description:<br>"'+y+'"<br><br>',$+="<hr>",$+="<b>== Messages ==</b><br>",$+='<div role="messagesTabpanel">',$+='<div class="row"><div class="col-4">',$+='<div class="list-group" id="messagesList" role="messagesTablist">',$+='<a class="list-group-item list-group-item-action active" data-bs-toggle="list" href="#escapeAttemptMessagesOwner'+C+'" role="tab">Escape Attempt Messages (Owner)</a>',$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeAttemptMessagesPrey'+C+'" role="tab">Escape Attempt Messages (Prey)</a>',$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeMessagesOwner'+C+'" role="tab">Escape Message (Owner)</a>',$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeMessagesPrey'+C+'" role="tab">Escape Message (Prey)</a>',$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeMessagesOutside'+C+'" role="tab">Escape Message (Outside)</a>',$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeItemMessagesOwner'+C+'" role="tab">Escape Item Messages (Owner)</a>',$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeItemMessagesPrey'+C+'" role="tab">Escape Item Messages (Prey)</a>',$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeItemMessagesOutside'+C+'" role="tab">Escape Item Messages (Outside)</a>',$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeFailMessagesOwner'+C+'" role="tab">Escape Fail Messages (Owner)</a>',$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#esccapeFailMessagesPrey'+C+'" role="tab">Escape Fail Messages (Prey)</a>',$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeAttemptAbsorbedMessagesOwner'+C+'" role="tab">Escape Attempt Absorbed Messages (Owner)</a>',$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeAttemptAbsorbedMessagesPrey'+C+'" role="tab">Escape Attempt Absorbed Messages (Prey)</a>',$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeAbsorbedMessagesOwner'+C+'" role="tab">Escape Absorbed Messages (Owner)</a>',$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeAbsorbedMessagesPrey'+C+'" role="tab">Escape Absorbed Messages (Prey)</a>',$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeAbsorbedMessagesOutside'+C+'" role="tab">Escape Absorbed Messages (Outside)</a>',$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeFailAbsorbedMessagesOwner'+C+'" role="tab">Escape Fail Absorbed Messages (Owner)</a>',$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeFailAbsorbedMessagesPrey'+C+'" role="tab">Escape Fail Absorbed Messages (Prey)</a>',$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#primaryTransferMessagesOwner'+C+'" role="tab">Primary Transfer Messages (Owner)</a>',$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#primaryTransferMessagesPrey'+C+'" role="tab">Primary Transfer Messages (Prey)</a>',$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#secondaryTransferMessagesOwner'+C+'" role="tab">Secondary Transfer Messages (Owner)</a>',$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#secondaryTransferMessagesPrey'+C+'" role="tab">Secondary Transfer Messages (Prey)</a>',$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#digestChanceMessagesOwner'+C+'" role="tab">Digest Chance Messages (Owner)</a>',$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#digestChanceMessagesPrey'+C+'" role="tab">Digest Chance Messages (Prey)</a>',$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#absorbChanceMessagesOwner'+C+'" role="tab">Absorb Chance Messages (Owner)</a>',$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#absorbChanceMessagesPrey'+C+'" role="tab">Absorb Chance Messages (Prey)</a>',$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#struggleMessagesOutside'+C+'" role="tab">Struggle Messages (Outside)</a>',$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#struggleMessagesInside'+C+'" role="tab">Struggle Messages (Inside)</a>',$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#absorbedStruggleOutside'+C+'" role="tab">Absorbed Struggle Messages (Outside)</a>',$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#absorbedStruggleInside'+C+'" role="tab">Absorbed Struggle Messages (Inside)</a>',$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#digestMessagesOwner'+C+'" role="tab">Digest Messages (Owner)</a>',$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#digestMessagesPrey'+C+'" role="tab">Digest Messages (Prey)</a>',$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#absorbMessagesOwner'+C+'" role="tab">Absorb Messages (Owner)</a>',$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#absorbMessagesPrey'+C+'" role="tab">Absorb Messages (Prey)</a>',$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#unabsorbMessagesOwner'+C+'" role="tab">Unabsorb Messages (Owner)</a>',$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#unabsorbMessagesPrey'+C+'" role="tab">Unabsorb Messages (Prey)</a>',$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#examineMessages'+C+'" role="tab">Examine Messages</a>',$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#examineMessagesAbsorbed'+C+'" role="tab">Examine Messages (Absorbed)</a>',$+="</div></div>",$+='<div class="col-8">',$+='<div class="tab-content">',$+='<div class="tab-pane fade show active" id="escapeAttemptMessagesOwner'+C+'" role="messagesTabpanel">',we==null||we.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="escapeAttemptMessagesPrey'+C+'" role="messagesTabpanel">',pe==null||pe.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="escapeMessagesOwner'+C+'" role="messagesTabpanel">',E==null||E.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="escapeMessagesPrey'+C+'" role="messagesTabpanel">',Z==null||Z.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="escapeMessagesOutside'+C+'" role="messagesTabpanel">',re==null||re.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="escapeItemMessagesOwner'+C+'" role="messagesTabpanel">',X==null||X.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="escapeItemMessagesPrey'+C+'" role="messagesTabpanel">',ne==null||ne.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="escapeItemMessagesOutside'+C+'" role="messagesTabpanel">',ve==null||ve.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="escapeFailMessagesOwner'+C+'" role="messagesTabpanel">',Ve==null||Ve.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="esccapeFailMessagesPrey'+C+'" role="messagesTabpanel">',Ie==null||Ie.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="escapeAttemptAbsorbedMessagesOwner'+C+'" role="messagesTabpanel">',Pe==null||Pe.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="escapeAttemptAbsorbedMessagesPrey'+C+'" role="messagesTabpanel">',Ae==null||Ae.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="escapeAbsorbedMessagesOwner'+C+'" role="messagesTabpanel">',Oe==null||Oe.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="escapeAbsorbedMessagesPrey'+C+'" role="messagesTabpanel">',de==null||de.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="escapeAbsorbedMessagesOutside'+C+'" role="messagesTabpanel">',ge==null||ge.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="escapeFailAbsorbedMessagesOwner'+C+'" role="messagesTabpanel">',j==null||j.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="escapeFailAbsorbedMessagesPrey'+C+'" role="messagesTabpanel">',ue==null||ue.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="primaryTransferMessagesOwner'+C+'" role="messagesTabpanel">',be==null||be.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="primaryTransferMessagesPrey'+C+'" role="messagesTabpanel">',ke==null||ke.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="secondaryTransferMessagesOwner'+C+'" role="messagesTabpanel">',Te==null||Te.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="secondaryTransferMessagesPrey'+C+'" role="messagesTabpanel">',Ee==null||Ee.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="digestChanceMessagesOwner'+C+'" role="messagesTabpanel">',Re==null||Re.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="digestChanceMessagesPrey'+C+'" role="messagesTabpanel">',_e==null||_e.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="absorbChanceMessagesOwner'+C+'" role="messagesTabpanel">',De==null||De.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="absorbChanceMessagesPrey'+C+'" role="messagesTabpanel">',Ue==null||Ue.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="struggleMessagesOutside'+C+'" role="messagesTabpanel">',ee==null||ee.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="struggleMessagesInside'+C+'" role="messagesTabpanel">',ie==null||ie.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="absorbedStruggleOutside'+C+'" role="messagesTabpanel">',Ce==null||Ce.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="absorbedStruggleInside'+C+'" role="messagesTabpanel">',Se==null||Se.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="digestMessagesOwner'+C+'" role="messagesTabpanel">',Xe==null||Xe.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="digestMessagesPrey'+C+'" role="messagesTabpanel">',Qe==null||Qe.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="absorbMessagesOwner'+C+'" role="messagesTabpanel">',$e==null||$e.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="absorbMessagesPrey'+C+'" role="messagesTabpanel">',ht==null||ht.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="unabsorbMessagesOwner'+C+'" role="messagesTabpanel">',lt==null||lt.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="unabsorbMessagesPrey'+C+'" role="messagesTabpanel">',ut==null||ut.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="examineMessages'+C+'" role="messagesTabpanel">',kt==null||kt.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="examineMessagesAbsorbed'+C+'" role="messagesTabpanel">',St==null||St.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+="</div>",$+="</div></div>",$+="</div>",$+="<details><summary>= Idle Messages =</summary><p>",$+="<details><summary>Idle Messages (Hold):</summary><p>",Bt==null||Bt.forEach(function(Me){$+=Me+"<br>"}),$+="</details></p><br>",$+="<details><summary>Idle Messages (Hold Absorbed):</summary><p>",Ot==null||Ot.forEach(function(Me){$+=Me+"<br>"}),$+="</details></p><br>",$+="<details><summary>Idle Messages (Digest):</summary><p>",Mt==null||Mt.forEach(function(Me){$+=Me+"<br>"}),$+="</details></p><br>",$+="<details><summary>Idle Messages (Absorb):</summary><p>",Pt==null||Pt.forEach(function(Me){$+=Me+"<br>"}),$+="</details></p><br>",$+="<details><summary>Idle Messages (Unabsorb):</summary><p>",gt==null||gt.forEach(function(Me){$+=Me+"<br>"}),$+="</details></p><br>",$+="<details><summary>Idle Messages (Drain):</summary><p>",dt==null||dt.forEach(function(Me){$+=Me+"<br>"}),$+="</details></p><br>",$+="<details><summary>Idle Messages (Heal):</summary><p>",Ct==null||Ct.forEach(function(Me){$+=Me+"<br>"}),$+="</details></p><br>",$+="<details><summary>Idle Messages (Size Steal):</summary><p>",et==null||et.forEach(function(Me){$+=Me+"<br>"}),$+="</details></p><br>",$+="<details><summary>Idle Messages (Shrink):</summary><p>",st==null||st.forEach(function(Me){$+=Me+"<br>"}),$+="</details></p><br>",$+="<details><summary>Idle Messages (Grow):</summary><p>",vt==null||vt.forEach(function(Me){$+=Me+"<br>"}),$+="</details></p><br>",$+="<details><summary>Idle Messages (Encase In Egg):</summary><p>",nt==null||nt.forEach(function(Me){$+=Me+"<br>"}),$+="</details></p><br>",$+="</details></p><br>",$+="<hr>",$+='<div class="accordion" id="settingsAccordion'+C+'">',$+='<div class="accordion-item">',$+='<h2 class="accordion-header" id="settingsAccordion'+C+'-headingOne">',$+='<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#settingsAccordion'+C+'-collapseOne" aria-expanded="true" aria-controls="settingsAccordion'+C+'-collapseOne">',$+="<b>== Options ==</b><br>",$+="</button></h2>",$+='<div id="settingsAccordion'+C+'-collapseOne" class="accordion-collapse collapse" aria-labelledby="settingsAccordion'+C+'-headingOne">',$+='<div class="accordion-body">',$+='<ul class="list-group">',$+='<li class="list-group-item">Can Taste: '+(O?'<span style="color: green;">Yes':'<span style="color: red;">No')+"</li>",$+='<li class="list-group-item">Feedable: '+(_?'<span style="color: green;">Yes':'<span style="color: red;">No')+"</li>",$+='<li class="list-group-item">Contaminates: '+(P?'<span style="color: green;">Yes':'<span style="color: red;">No')+"</li>",$+='<li class="list-group-item">Contamination Flavor: '+D+"</li>",$+='<li class="list-group-item">Contamination Color: '+z+"</li>",$+='<li class="list-group-item">Nutritional Gain: '+U+"%</li>",$+='<li class="list-group-item">Required Examine Size: '+W*100+"%</li>",$+='<li class="list-group-item">Display Absorbed Examines: '+(K?'<span style="color: green;">True':'<span style="color: red;">False')+"</li>",$+='<li class="list-group-item">Save Digest Mode: '+(H?'<span style="color: green;">True':'<span style="color: red;">False')+"</li>",$+='<li class="list-group-item">Idle Emotes: '+(Y?'<span style="color: green;">Active':'<span style="color: red;">Inactive')+"</li>",$+='<li class="list-group-item">Idle Emote Delay: '+J+" seconds</li>",$+='<li class="list-group-item">Shrink/Grow Size: '+q*100+"%</li>",$+='<li class="list-group-item">Vore Spawn Blacklist: '+(oe?'<span style="color: green;">Yes':'<span style="color: red;">No')+"</li>",$+='<li class="list-group-item">Egg Type: '+ae+"</li>",$+='<li class="list-group-item">Selective Mode Preference: '+he+"</li>",$+="</ul>",$+="</div></div></div>",$+='<div class="accordion-item">',$+='<h2 class="accordion-header" id="settingsAccordion'+C+'-headingTwo">',$+='<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#settingsAccordion'+C+'-collapseTwo" aria-expanded="true" aria-controls="settingsAccordion'+C+'-collapseTwo">',$+="<b>== Sounds ==</b><br>",$+="</button></h2>",$+='<div id="settingsAccordion'+C+'-collapseTwo" class="accordion-collapse collapse" aria-labelledby="settingsAccordion'+C+'-headingTwo">',$+='<div class="accordion-body">',$+='<ul class="list-group">',$+='<li class="list-group-item">Fleshy Belly: '+($t?'<span style="color: green;">Yes':'<span style="color: red;">No')+"</li>",$+='<li class="list-group-item">Internal Loop: '+(Yt?'<span style="color: green;">Yes':'<span style="color: red;">No')+"</li>",$+='<li class="list-group-item">Use Fancy Sounds: '+(Xt?'<span style="color: green;">Yes':'<span style="color: red;">No')+"</li>",$+='<li class="list-group-item">Vore Sound: '+Qt+"</li>",$+='<li class="list-group-item">Release Sound: '+Lt+"</li>",$+="</ul>",$+="</div></div></div>",$+='<div class="accordion-item">',$+='<h2 class="accordion-header" id="settingsAccordion'+C+'-headingVisuals">',$+='<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#settingsAccordion'+C+'-collapseVisuals" aria-expanded="true" aria-controls="settingsAccordion'+C+'-collapseVisuals">',$+="<b>== Visuals ==</b><br>",$+="</button></h2>",$+='<div id="settingsAccordion'+C+'-collapseVisuals" class="accordion-collapse collapse" aria-labelledby="settingsAccordion'+C+"-headingVisuals>",$+='<div class="accordion-body">',$+="<b>Vore Sprites</b>",$+='<ul class="list-group">',$+='<li class="list-group-item">Affect Vore Sprites: '+(_t?'<span style="color: green;">Yes':'<span style="color: red;">No')+"</li>",$+='<li class="list-group-item">Count Absorbed prey for vore sprites: '+(It?'<span style="color: green;">Yes':'<span style="color: red;">No')+"</li>",$+='<li class="list-group-item">Animation when prey resist: '+(Je?'<span style="color: green;">Yes':'<span style="color: red;">No')+"</li>",$+='<li class="list-group-item">Vore Sprite Size Factor: '+qt+"</li>",$+='<li class="list-group-item">Belly Sprite to affect: '+en+"</li>",$+="</ul>",$+="<b>Belly Fullscreens Preview and Coloring</b>",$+='<ul class="list-group">',$+='<li class="list-group-item">Color: <span style="color: '+xt+';">'+xt+"</span>",$+="</ul>",$+="<b>Vore FX</b>",$+='<ul class="list-group">',$+='<li class="list-group-item">Disable Prey HUD: '+(on?'<span style="color: green;">Yes':'<span style="color: red;">No')+"</li>",$+="</ul>",$+="</div></div></div>",$+='<div class="accordion-item">',$+='<h2 class="accordion-header" id="settingsAccordion'+C+'-headingThree">',$+='<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#settingsAccordion'+C+'-collapseThree" aria-expanded="true" aria-controls="settingsAccordion'+C+'-collapseThree">',$+="<b>== Interactions ==</b>",$+="</button></h2>",$+='<div id="settingsAccordion'+C+'-collapseThree" class="accordion-collapse collapse" aria-labelledby="settingsAccordion'+C+'-headingThree">',$+='<div class="accordion-body">',$+="<b>Belly Interactions ("+(Rt?'<span style="color: green;">Enabled':'<span style="color: red;">Disabled')+"</span>)</b>",$+='<ul class="list-group">',$+='<li class="list-group-item">Escape Chance: '+rn+"%</li>",$+='<li class="list-group-item">Escape Chance: '+at+"%</li>",$+='<li class="list-group-item">Escape Time: '+an/10+"s</li>",$+='<li class="list-group-item">Transfer Chance: '+cn+"%</li>",$+='<li class="list-group-item">Transfer Location: '+ln+"</li>",$+='<li class="list-group-item">Secondary Transfer Chance: '+un+"%</li>",$+='<li class="list-group-item">Secondary Transfer Location: '+dn+"</li>",$+='<li class="list-group-item">Absorb Chance: '+sn+"%</li>",$+='<li class="list-group-item">Digest Chance: '+wt+"%</li>",$+="</ul>",$+="<hr>",$+="<b>Auto-Transfer Options ("+(fn?'<span style="color: green;">Enabled':'<span style="color: red;">Disabled')+"</span>)</b>",$+='<ul class="list-group">',$+='<li class="list-group-item">Auto-Transfer Time: '+mn/10+"s</li>",$+='<li class="list-group-item">Auto-Transfer Chance: '+Tt+"%</li>",$+='<li class="list-group-item">Auto-Transfer Location: '+Dt+"</li>",$+='<li class="list-group-item">Auto-Transfer Chance: '+Ft+"%</li>",$+='<li class="list-group-item">Auto-Transfer Location: '+jt+"</li>",$+='<li class="list-group-item">Auto-Transfer Min Amount: '+pn+"</li>",$+='<li class="list-group-item">Auto-Transfer Max Amount: '+hn+"</li>",$+='<li class="list-group-item">Auto-Transfer Primary Chance: '+Tt+"%</li>",$+='<li class="list-group-item">Auto-Transfer Primary Location: '+Dt+"</li>",$+='<li class="list-group-item">Auto-Transfer Primary Whitelist (Mobs): '+l(it,!0)+"</li>",$+='<li class="list-group-item">Auto-Transfer Primary Whitelist (Items): '+l(vn,!0)+"</li>",$+='<li class="list-group-item">Auto-Transfer Primary Blacklist (Mobs): '+l(Vt,!1)+"</li>",$+='<li class="list-group-item">Auto-Transfer Primary Blacklist (Items): '+l(zt,!1)+"</li>",$+='<li class="list-group-item">Auto-Transfer Secondary Chance: '+Ft+"%</li>",$+='<li class="list-group-item">Auto-Transfer Secondary Location: '+jt+"</li>",$+='<li class="list-group-item">Auto-Transfer Secondary Whitelist (Mobs): '+l(Wt,!0)+"</li>",$+='<li class="list-group-item">Auto-Transfer Secondary Whitelist (Items): '+l(Ut,!0)+"</li>",$+='<li class="list-group-item">Auto-Transfer Secondary Blacklist (Mobs): '+l(Cn,!1)+"</li>",$+='<li class="list-group-item">Auto-Transfer Secondary Blacklist (Items): '+l(gn,!1)+"</li>",$+="</ul>",$+="</div></div></div>",$+='<div class="accordion-item">',$+='<h2 class="accordion-header" id="settingsAccordion'+C+'-headingFour">',$+='<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#settingsAccordion'+C+'-collapseFour" aria-expanded="true" aria-controls="settingsAccordion'+C+'-collapseFour">',$+="<b>== Liquid Options ("+(Nt?'<span style="color: green;">Liquids On':'<span style="color: red;">Liquids Off')+"</span>) ==</b>",$+="</button></h2>",$+='<div id="settingsAccordion'+C+'-collapseFour" class="accordion-collapse collapse" aria-labelledby="settingsAccordion'+C+'-headingFour">',$+='<div class="accordion-body">',$+='<ul class="list-group">',$+='<li class="list-group-item">Generate Liquids: '+(Nn?'<span style="color: green;">On':'<span style="color: red;">Off')+"</li>",$+='<li class="list-group-item">Liquid Type: '+At+"</li>",$+='<li class="list-group-item">Liquid Name: '+Ht+"</li>",$+='<li class="list-group-item">Transfer Verb: '+bn+"</li>",$+='<li class="list-group-item">Generation Time: '+Gt+"</li>",$+='<li class="list-group-item">Liquid Capacity: '+Kt+"</li>",$+='<li class="list-group-item">Slosh Sounds: '+(Et?'<span style="color: green;">On':'<span style="color: red;">Off')+"</li>",$+='<li class="list-group-item">Liquid Addons: '+s(Bn)+"</li>",$+="</ul>",$+="</div></div></div>",$+='<div class="accordion-item">',$+='<h2 class="accordion-header" id="settingsAccordion'+C+'-headingFive">',$+='<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#settingsAccordion'+C+'-collapseFive" aria-expanded="true" aria-controls="settingsAccordion'+C+'-collapseFive">',$+="<b>== Liquid Messages ("+(Nt?'<span style="color: green;">Messages On':'<span style="color: red;">Messages Off')+"</span>) ==</b>",$+="</button></h2>",$+='<div id="settingsAccordion'+C+'-collapseFive" class="accordion-collapse collapse" aria-labelledby="settingsAccordion'+C+'-headingFive">',$+='<div class="accordion-body">',$+='<div role="liquidMessagesTabpanel">',$+='<div class="row"><div class="col-4">',$+='<div class="list-group" id="liquidMessagesList" role="messagesTablist">',$+='<a class="list-group-item list-group-item-action active" data-bs-toggle="list" href="#examineMessage0_20'+C+'" role="tab">Examine Message (0 to 20%) ('+(Ke?'<span style="color: green;">On':'<span style="color: red;">Off')+"</span>)</a>",$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#examineMessage20_40'+C+'" role="tab">Examine Message (20 to 40%) ('+(ct?'<span style="color: green;">On':'<span style="color: red;">Off')+"</span>)</a>",$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#examineMessage40_60'+C+'" role="tab">Examine Message (40 to 60%) ('+(tt?'<span style="color: green;">On':'<span style="color: red;">Off')+"</span>)</a>",$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#examineMessage60_80'+C+'" role="tab">Examine Message (60 to 80%) ('+(bt?'<span style="color: green;">On':'<span style="color: red;">Off')+"</span>)</a>",$+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#examineMessage80_100'+C+'" role="tab">Examine Message (80 to 100%) ('+(ot?'<span style="color: green;">On':'<span style="color: red;">Off')+"</span>)</a>",$+="</div></div>",$+='<div class="col-8">',$+='<div class="tab-content">',$+='<div class="tab-pane fade show active" id="examineMessage0_20'+C+'" role="liquidMessagesTabpanel">',ft==null||ft.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="examineMessage20_40'+C+'" role="liquidMessagesTabpanel">',rt==null||rt.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="examineMessage40_60'+C+'" role="liquidMessagesTabpanel">',yt==null||yt.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="examineMessage60_80'+C+'" role="liquidMessagesTabpanel">',Ze==null||Ze.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+='<div class="tab-pane fade" id="examineMessage80_100'+C+'" role="liquidMessagesTabpanel">',pt==null||pt.forEach(function(Me){$+=Me+"<br>"}),$+="</div>",$+="</div>",$+="</div></div>",$+="</div>",$+="</div></div></div>",$+="</div></div></div>",$},i=function(){var f=new Date,C=String(f.getHours());C.length<2&&(C="0"+C);var b=String(f.getMinutes());b.length<2&&(b="0"+b);var g=String(f.getDate());g.length<2&&(g="0"+g);var y=String(f.getMonth()+1);y.length<2&&(y="0"+y);var B=String(f.getFullYear());return" "+B+"-"+y+"-"+g+" ("+C+" "+b+")"},c=function(f,C){var b=(0,a.useBackend)(f),g=b.act,y=b.data,B=y.db_version,L=y.db_repo,I=y.mob_name,w=y.bellies,T=i(),M=I+T+C,A;if(C===".html"){var R="<style></style>";A=new Blob(['<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>'+w.length+" Exported Bellies (DB_VER: "+L+"-"+B+')</title><link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css">'+R+'</head><body class="py-4"><main><div class="container"><h2>Bellies of '+I+'</h2><p class="lead">Generated on: '+T+'</p><div class="accordion" id="accordionBellies">'],{type:"text/html;charset=utf8"}),w.forEach(function(O,_){A=new Blob([A,u(O,_)],{type:"text/html;charset=utf8"})}),A=new Blob([A,"</div>",'<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa" crossorigin="anonymous"><\/script>',"</div></main></body></html>"],{type:"text/html;charset=utf8"})}C===".vrdb"&&(A=new Blob([JSON.stringify(w)],{type:"application/json"})),window.navigator.msSaveOrOpenBlob(A,M)},d=r.VorePanelExport=function(){function v(){return(0,e.createComponentVNode)(2,t.Window,{width:790,height:560,theme:"abstract",resizeable:!0,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,p)})})}return v}(),p=function(f,C){var b=(0,a.useBackend)(C),g=b.act,y=b.data,B=y.bellies;return(0,e.createComponentVNode)(2,o.Section,{title:"Vore Export Panel",children:(0,e.createComponentVNode)(2,o.Section,{title:"Export",children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"file-alt",onClick:function(){function L(){return c(C,".html")}return L}(),children:"Export (HTML)"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"file-alt",onClick:function(){function L(){return c(C,".vrdb")}return L}(),children:"Export (VRDB)"})]})})}},73623:function(x,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.Wires=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.wires||[],u=s.status||[];return(0,e.createComponentVNode)(2,o.Window,{width:350,height:150+l.length*30,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:i.color_name,labelColor:i.seen_color,color:i.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:i.cut?"Mend":"Cut",onClick:function(){function c(){return h("cut",{wire:i.color})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function c(){return h("pulse",{wire:i.color})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{content:i.attached?"Detach":"Attach",onClick:function(){function c(){return h("attach",{wire:i.color})}return c}()})],4),children:!!i.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),i.wire,(0,e.createTextVNode)(")")],0)},i.seen_color)})})}),!!u.length&&(0,e.createComponentVNode)(2,t.Section,{children:u.map(function(i){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",mt:.1,children:i},i)})})]})})}return V}()},6393:function(x,r,n){"use strict";r.__esModule=!0,r.XenoarchArtifactAnalyzer=void 0;var e=n(58734),a=n(62188),t=n(11477),o=n(11790),m=r.XenoarchArtifactAnalyzer=function(){function k(){return(0,e.createComponentVNode)(2,t.Window,{width:250,height:140,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,V)})})}return k}(),V=function(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.owned_scanner,i=l.scan_in_progress;return u?i?(0,e.createComponentVNode)(2,o.Section,{title:"Scan In Progress",children:["Scanning...",(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"stop",onClick:function(){function c(){return s("scan")}return c}(),children:"Cancel Scan"})]}):(0,e.createComponentVNode)(2,o.Section,{title:"Artifact Analyzer",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"search",onClick:function(){function c(){return s("scan")}return c}(),children:"Begin Scan"})}):(0,e.createComponentVNode)(2,o.Section,{title:"No Scanner Detected",children:(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Warning: No scanner was detected. This machine requires a scanner to operate."})})}},22883:function(x,r,n){"use strict";r.__esModule=!0,r.XenoarchArtifactHarvester=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.XenoarchArtifactHarvester=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.info,i=u.no_scanner,c=u.harvesting,d=u.inserted_battery;return(0,e.createComponentVNode)(2,o.Window,{width:450,height:200,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:i&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Warning: No scanner detected."})||(0,e.createComponentVNode)(2,t.Section,{children:c>0&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",mb:1,children:"Please wait. Harvesting in progress."}),(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,t.Button,{mt:1,fluid:!0,icon:"stop",onClick:function(){function p(){return s("stopharvest")}return p}(),children:"Stop Early"})]})||c<0&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",mb:1,children:"Please wait. Energy dump in progress."}),(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,t.Button,{mt:1,fluid:!0,icon:"stop",onClick:function(){function p(){return s("stopharvest")}return p}(),children:"Stop Early"})]})||Object.keys(d).length&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:d.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge",children:(0,e.createComponentVNode)(2,V)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy Signature ID",children:d.artifact_id})]}),(0,e.createComponentVNode)(2,t.Button,{mt:1,fluid:!0,icon:"eject",onClick:function(){function p(){return s("ejectbattery")}return p}(),children:"Eject Battery"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"bolt",onClick:function(){function p(){return s("drainbattery")}return p}(),children:"Drain Battery"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"star",onClick:function(){function p(){return s("harvest")}return p}(),children:"Begin Harvest"})]})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No battery inserted."})})})})}return k}(),V=function(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.info.inserted_battery;return Object.keys(u).length?(0,e.createComponentVNode)(2,t.ProgressBar,{minValue:0,value:u.stored_charge,maxValue:u.capacity}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No battery inserted."})}},15934:function(x,r,n){"use strict";r.__esModule=!0,r.XenoarchDepthScanner=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.XenoarchDepthScanner=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.current,u=s.positive_locations;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[Object.keys(l).length&&(0,e.createComponentVNode)(2,t.Section,{title:"Selected",buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{color:"bad",icon:"trash",confirmIcon:"trash",content:"Delete Entry",onClick:function(){function i(){return h("clear",{index:l.index})}return i}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time",children:l.time}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Coords",children:l.coords}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Anomaly Depth",children:[l.depth," cm"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Anomaly Size",children:[l.clearance," cm"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dissonance Spread",children:l.dissonance_spread}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Anomaly Material",children:l.material})]})})||null,(0,e.createComponentVNode)(2,t.Section,{title:"Entries",buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{color:"red",icon:"trash",confirmIcon:"trash",content:"Delete All",onClick:function(){function i(){return h("clear")}return i}()}),children:u.length&&u.map(function(i){return(0,e.createComponentVNode)(2,t.Button,{icon:"eye",onClick:function(){function c(){return h("select",{select:i.index})}return c}(),children:[i.time,", ",i.coords]},i.index)})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No traces found."})})]})})}return V}()},80665:function(x,r,n){"use strict";r.__esModule=!0,r.XenoarchHandheldPowerUtilizer=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.XenoarchHandheldPowerUtilizer=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.inserted_battery,u=s.anomaly,i=s.charge,c=s.capacity,d=s.timeleft,p=s.activated,v=s.duration,f=s.interval;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:"Anomaly Power Utilizer",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!l,icon:"eject",onClick:function(){function C(){return h("ejectbattery")}return C}(),children:"Eject Battery"}),children:l&&(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inserted Battery",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Anomalies Detected",children:u||"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i,maxValue:c,children:[i," / ",c]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left Activated",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"power-off",onClick:function(){function C(){return h("startup")}return C}(),children:p?"Activated":"Deactivated"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Activation Duration",children:(0,e.createComponentVNode)(2,t.NumberInput,{unit:"s",fluid:!0,minValue:0,value:v,stepPixelSize:4,maxValue:30,onDrag:function(){function C(b,g){return h("changeduration",{duration:g*10})}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Activation Interval",children:(0,e.createComponentVNode)(2,t.NumberInput,{unit:"s",fluid:!0,minValue:0,value:f,stepPixelSize:10,maxValue:10,onDrag:function(){function C(b,g){return h("changeinterval",{interval:g*10})}return C}()})})]})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No battery inserted. Please insert a cell."})})})})}return V}()},14218:function(x,r,n){"use strict";r.__esModule=!0,r.XenoarchReplicator=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.XenoarchReplicator=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.tgui_construction;return(0,e.createComponentVNode)(2,o.Window,{theme:"abductor",width:400,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:l.map(function(u,i){return(0,e.createComponentVNode)(2,t.Button,{color:u.background,icon:u.icon,iconColor:u.foreground,fontSize:4,onClick:function(){function c(){return h("construct",{key:u.key})}return c}()},u.key)})})})}return V}()},3718:function(x,r,n){"use strict";r.__esModule=!0,r.XenoarchReplicator_clothing_vr=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.XenoarchReplicator_clothing_vr=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.tgui_construction;return(0,e.createComponentVNode)(2,o.Window,{theme:"abductor",width:400,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:l.map(function(u,i){return(0,e.createComponentVNode)(2,t.Button,{color:u.background,icon:u.icon,iconColor:u.foreground,fontSize:4,onClick:function(){function c(){return h("construct",{key:u.key})}return c}()},u.key)})})})}return V}()},30394:function(x,r,n){"use strict";r.__esModule=!0,r.XenoarchReplicator_voremob_vr=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.XenoarchReplicator_voremob_vr=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.tgui_construction;return(0,e.createComponentVNode)(2,o.Window,{theme:"abductor",width:400,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:l.map(function(u,i){return(0,e.createComponentVNode)(2,t.Button,{color:u.background,icon:u.icon,iconColor:u.foreground,fontSize:4,onClick:function(){function c(){return h("construct",{key:u.key})}return c}()},u.key)})})})}return V}()},81306:function(x,r,n){"use strict";r.__esModule=!0,r.XenoarchSpectrometer=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(40946),V=r.XenoarchSpectrometer=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.scanned_item,i=l.scanned_item_desc,c=l.last_scan_data,d=l.scan_progress,p=l.scanning,v=l.scanner_seal_integrity,f=l.scanner_rpm,C=l.scanner_temperature,b=l.coolant_usage_rate,g=l.coolant_usage_max,y=l.unused_coolant_abs,B=l.unused_coolant_per,L=l.coolant_purity,I=l.optimal_wavelength,w=l.maser_wavelength,T=l.maser_wavelength_max,M=l.maser_efficiency,A=l.radiation,R=l.t_left_radspike,O=l.rad_shield_on;return(0,e.createComponentVNode)(2,o.Window,{width:900,height:760,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"signal",selected:p,onClick:function(){function _(){return s("scanItem")}return _}(),children:p?"HALT SCAN":"Begin Scan"}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!u,onClick:function(){function _(){return s("ejectItem")}return _}(),children:"Eject Item"})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item",children:u||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No item inserted."})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Heuristic Analysis",children:i||"None found."})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Scanner",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Scan Progress",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:d,minValue:0,maxValue:100,color:"good"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Vacuum Seal Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:v,minValue:0,maxValue:100,ranges:{good:[66,100],average:[33,66],bad:[0,33]}})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"MASER",buttons:(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:"Match wavelengths to progress the scan."}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"MASER Efficiency",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:M,minValue:0,maxValue:100,ranges:{good:[66,100],average:[33,66],bad:[0,33]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wavelength",children:(0,e.createComponentVNode)(2,t.Slider,{animated:!0,value:w,fillValue:I,minValue:1,maxValue:T,format:function(){function _(P){return P+" MHz"}return _}(),step:10,onDrag:function(){function _(P,D){return s("maserWavelength",{wavelength:D})}return _}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Environment / Internal",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Centrifuge Speed",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:f,minValue:0,maxValue:1e3,color:"good",children:[f," RPM"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{minValue:0,value:C,maxValue:1273,ranges:{bad:[1e3,1/0],average:[250,1e3],good:[0,250]},children:[C," K"]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Radiation",buttons:(0,e.createComponentVNode)(2,t.Button,{selected:O,icon:"radiation",onClick:function(){function _(){return s("toggle_rad_shield")}return _}(),children:O?"Disable Radiation Shielding":"Enable Radiation Shielding"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Ambient Radiation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{minValue:0,value:A,maxValue:100,ranges:{bad:[65,1/0],average:[15,65],good:[0,15]},children:[A," mSv"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Cooling",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Coolant Remaining",children:(0,e.createComponentVNode)(2,t.ProgressBar,{minValue:0,value:B*10,maxValue:1e3,ranges:{good:[65,1/0],average:[15,65],bad:[0,15]},children:[B*10," u"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Coolant Flow Rate",children:(0,e.createComponentVNode)(2,t.Slider,{minValue:0,value:b,maxValue:g,stepPixelSize:50,format:function(){function _(P){return P+" u/s"}return _}(),onDrag:function(){function _(P,D){return s("coolantRate",{coolant:D})}return _}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Coolant Purity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{minValue:0,value:L,maxValue:100,ranges:{good:[66,1/0],average:[33,66],bad:[0,33]}})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Latest Results",children:(0,m.decodeHtmlEntities)(c).split("\n").map(function(_){return(0,e.createComponentVNode)(2,t.Box,{children:_},_)})})]})})}return k}()},9982:function(x,r,n){"use strict";r.__esModule=!0,r.XenoarchSuspension=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.XenoarchSuspension=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.cell,u=s.cellCharge,i=s.cellMaxCharge,c=s.locked,d=s.suspension_field;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:'Triple-phase S.F.G. MK III "Reliant"',buttons:(0,e.createComponentVNode)(2,t.Button,{icon:c?"lock":"lock-open",selected:!c,onClick:function(){function p(){return h("lock")}return p}(),children:c?"Locked":"Unlocked"}),children:c&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"This interface is locked. Swipe an ID card to unlock it."})||(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:l&&(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[i*.75,1/0],average:[i*.5,i*.75],bad:[-1/0,i*.5]},value:u,maxValue:i})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No cell inserted."})})}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,icon:"meteor",selected:d,onClick:function(){function p(){return h("toggle_field")}return p}(),children:d?"Disengage Suspension Field":"Engage Suspension Field"})],4)})})})}return V}()},92237:function(x,r,n){"use strict";r.__esModule=!0,r.Vent=r.Scrubber=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=r.Vent=function(){function k(S,N){var h=S.vent,s=(0,t.useBackend)(N),l=s.act,u=h.id_tag,i=h.long_name,c=h.power,d=h.checks,p=h.excheck,v=h.incheck,f=h.direction,C=h.external,b=h.internal,g=h.extdefault,y=h.intdefault;return(0,e.createComponentVNode)(2,o.Section,{level:2,title:(0,a.decodeHtmlEntities)(i),buttons:(0,e.createComponentVNode)(2,o.Button,{icon:c?"power-off":"times",selected:c,content:c?"On":"Off",onClick:function(){function B(){return l("power",{id_tag:u,val:+!c})}return B}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mode",children:(0,e.createComponentVNode)(2,o.Button,{icon:"sign-in-alt",content:f!=="siphon"?"Pressurizing":"Siphoning",color:f==="siphon"&&"danger",onClick:function(){function B(){return l("direction",{id_tag:u,val:+(f==="siphon")})}return B}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pressure Regulator",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"sign-in-alt",content:"Internal",selected:v,onClick:function(){function B(){return l("incheck",{id_tag:u,val:d})}return B}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"sign-out-alt",content:"External",selected:p,onClick:function(){function B(){return l("excheck",{id_tag:u,val:d})}return B}()})]}),!!v&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Internal Target",children:[(0,e.createComponentVNode)(2,o.NumberInput,{value:Math.round(b),unit:"kPa",width:"75px",minValue:0,step:10,maxValue:5066,onChange:function(){function B(L,I){return l("set_internal_pressure",{id_tag:u,value:I})}return B}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"undo",disabled:y,content:"Reset",onClick:function(){function B(){return l("reset_internal_pressure",{id_tag:u})}return B}()})]}),!!p&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"External Target",children:[(0,e.createComponentVNode)(2,o.NumberInput,{value:Math.round(C),unit:"kPa",width:"75px",minValue:0,step:10,maxValue:5066,onChange:function(){function B(L,I){return l("set_external_pressure",{id_tag:u,value:I})}return B}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"undo",disabled:g,content:"Reset",onClick:function(){function B(){return l("reset_external_pressure",{id_tag:u})}return B}()})]})]})})}return k}(),V=r.Scrubber=function(){function k(S,N){var h=S.scrubber,s=(0,t.useBackend)(N),l=s.act,u=h.long_name,i=h.power,c=h.scrubbing,d=h.id_tag,p=h.widenet,v=h.filters;return(0,e.createComponentVNode)(2,o.Section,{level:2,title:(0,a.decodeHtmlEntities)(u),buttons:(0,e.createComponentVNode)(2,o.Button,{icon:i?"power-off":"times",content:i?"On":"Off",selected:i,onClick:function(){function f(){return l("power",{id_tag:d,val:+!i})}return f}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mode",children:(0,e.createComponentVNode)(2,o.Button,{icon:c?"filter":"sign-in-alt",color:c||"danger",content:c?"Scrubbing":"Siphoning",onClick:function(){function f(){return l("scrubbing",{id_tag:d,val:+!c})}return f}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Filters",children:c&&v.map(function(f){return(0,e.createComponentVNode)(2,o.Button,{icon:f.val?"check-square-o":"square-o",content:f.name,title:f.name,selected:f.val,onClick:function(){function C(){return l(f.command,{id_tag:d,val:!f.val})}return C}()},f.name)})||"N/A"})]})})}return k}()},72679:function(x,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(58734),a=n(11790),t=function(V){return V+" unit"+(V===1?"":"s")},o=r.BeakerContents=function(){function m(V){var k=V.beakerLoaded,S=V.beakerContents,N=S===void 0?[]:S,h=V.buttons;return(0,e.createComponentVNode)(2,a.Box,{children:[!k&&(0,e.createComponentVNode)(2,a.Box,{color:"label",children:"No beaker loaded."})||N.length===0&&(0,e.createComponentVNode)(2,a.Box,{color:"label",children:"Beaker is empty."}),N.map(function(s,l){return(0,e.createComponentVNode)(2,a.Box,{width:"100%",children:(0,e.createComponentVNode)(2,a.Flex,{align:"center",justify:"space-between",children:[(0,e.createComponentVNode)(2,a.Flex.Item,{color:"label",children:[t(s.volume)," of ",s.name]}),!!h&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:h(s,l)})]})},s.name)})]})}return m}()},48388:function(x,r,n){"use strict";r.__esModule=!0,r.modalRegisterBodyOverride=r.modalOpen=r.ComplexModal=void 0;var e=n(58734),a=n(62188),t=n(11790),o={},m=r.modalOpen=function(){function h(s,l,u){var i=(0,a.useBackend)(s),c=i.act,d=i.data,p=Object.assign(d.modal?d.modal.args:{},u||{});c("modal_open",{id:l,arguments:JSON.stringify(p)})}return h}(),V=r.modalRegisterBodyOverride=function(){function h(s,l){o[s]=l}return h}(),k=function(s,l,u,i){var c=(0,a.useBackend)(s),d=c.act,p=c.data;if(p.modal){var v=Object.assign(p.modal.args||{},i||{});d("modal_answer",{id:l,answer:u,arguments:JSON.stringify(v)})}},S=function(s,l){var u=(0,a.useBackend)(s),i=u.act;i("modal_close",{id:l})},N=r.ComplexModal=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.data;if(i.modal){var c=i.modal,d=c.id,p=c.text,v=c.type,f,C,b=(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){function B(){return S(l)}return B}()});if(o[d])C=o[d](i.modal,l);else if(v==="input"){var g=i.modal.value;f=function(){function B(L){return k(l,d,g)}return B}(),C=(0,e.createComponentVNode)(2,t.Input,{value:i.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autoFocus:!0,autoSelect:!0,onChange:function(){function B(L,I){g=I}return B}()}),b=(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 B(){return S(l)}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){function B(){return k(l,d,g)}return B}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(v==="choice"){var y=typeof i.modal.choices=="object"?Object.values(i.modal.choices):i.modal.choices;C=(0,e.createComponentVNode)(2,t.Dropdown,{options:y,selected:i.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function B(L){return k(l,d,L)}return B}()})}else v==="bento"?C=(0,e.createComponentVNode)(2,t.Flex,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:i.modal.choices.map(function(B,L){return(0,e.createComponentVNode)(2,t.Flex.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:L+1===parseInt(i.modal.value,10),onClick:function(){function I(){return k(l,d,L+1)}return I}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:B})})},L)})}):v==="boolean"&&(b=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:i.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){function B(){return k(l,d,0)}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:i.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function B(){return k(l,d,1)}return B}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:s.maxWidth||window.innerWidth/2+"px",maxHeight:s.maxHeight||window.innerHeight/2+"px",onEnter:f,mx:"auto",children:[(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:p}),C,b]})}}return h}()},84288:function(x,r,n){"use strict";r.__esModule=!0,r.FullscreenNotice=void 0;var e=n(58734),a=n(11790),t=r.FullscreenNotice=function(){function o(m,V){var k=m.children,S=m.title,N=S===void 0?"Welcome":S;return(0,e.createComponentVNode)(2,a.Section,{title:N,height:"100%",fill:!0,children:(0,e.createComponentVNode)(2,a.Flex,{height:"100%",align:"center",justify:"center",children:(0,e.createComponentVNode)(2,a.Flex.Item,{textAlign:"center",mt:"-2rem",children:k})})})}return o}()},57370:function(x,r,n){"use strict";r.__esModule=!0,r.InputButtons=void 0;var e=n(58734),a=n(11790),t=n(62188),o=r.InputButtons=function(){function m(V,k){var S=(0,t.useBackend)(k),N=S.act,h=S.data,s=h.large_buttons,l=h.swapped_buttons,u=V.input,i=V.message,c=(0,e.createComponentVNode)(2,a.Button,{color:"good",fluid:!!s,height:!!s&&2,onClick:function(){function p(){return N("submit",{entry:u})}return p}(),m:.5,pl:2,pr:2,pt:s?.33:0,textAlign:"center",tooltip:s&&i,width:!s&&6,children:s?"SUBMIT":"Submit"}),d=(0,e.createComponentVNode)(2,a.Button,{color:"bad",fluid:!!s,height:!!s&&2,onClick:function(){function p(){return N("cancel")}return p}(),m:.5,pl:2,pr:2,pt:s?.33:0,textAlign:"center",width:!s&&6,children:s?"CANCEL":"Cancel"});return(0,e.createComponentVNode)(2,a.Flex,{align:"center",direction:l?"row-reverse":"row",fill:!0,justify:"space-around",children:[s?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,children:d}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:d}),!s&&i&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:i})}),s?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,children:c}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:c})]})}return m}()},45902:function(x,r,n){"use strict";r.__esModule=!0,r.InterfaceLockNoticeBox=void 0;var e=n(58734),a=n(62188),t=n(11790),o=r.InterfaceLockNoticeBox=function(){function m(V,k){var S=(0,a.useBackend)(k),N=S.act,h=S.data,s=V.siliconUser,l=s===void 0?h.siliconUser:s,u=V.locked,i=u===void 0?h.locked:u,c=V.normallyLocked,d=c===void 0?h.normallyLocked:c,p=V.onLockStatusChange,v=p===void 0?function(){return N("lock")}:p,f=V.accessText,C=f===void 0?"an ID card":f,b=V.deny,g=b===void 0?!1:b,y=V.denialMessage,B=y===void 0?"Error.":y;return g?B:l?(0,e.createComponentVNode)(2,t.NoticeBox,{color:l&&"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:d?"red":"green",icon:d?"lock":"unlock",content:d?"Locked":"Unlocked",onClick:function(){function L(){v&&v(!i)}return L}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",C," to ",i?"unlock":"lock"," this interface."]})}return m}()},89226:function(x,r,n){"use strict";r.__esModule=!0,r.Loader=void 0;var e=n(58734),a=n(11790),t=n(5339),o=r.Loader=function(){function m(V){var k=V.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,a.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,t.clamp01)(k)*100+"%"}}),2)}return m}()},39813:function(x,r,n){"use strict";r.__esModule=!0,r.LoginInfo=void 0;var e=n(58734),a=n(62188),t=n(11790),o=r.LoginInfo=function(){function m(V,k){var S=(0,a.useBackend)(k),N=S.act,h=S.data,s=h.authenticated,l=h.rank;if(h)return(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:[(0,e.createComponentVNode)(2,t.Box,{display:"inline-block",verticalAlign:"middle",children:["Logged in as: ",s," (",l,")"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Logout and Eject ID",color:"good",float:"right",onClick:function(){function u(){return N("logout")}return u}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}return m}()},50947:function(x,r,n){"use strict";r.__esModule=!0,r.SpecialMachineInteraction=r.LoginScreen=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(84288),m=r.LoginScreen=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.scan,i=l.isAI,c=l.isRobot,d=S.machineType;return(0,e.createComponentVNode)(2,o.FullscreenNotice,{title:"Welcome",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:u||"----------",ml:"0.5rem",onClick:function(){function p(){return s("scan")}return p}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!u,content:"Login",onClick:function(){function p(){return s("login",{login_type:1})}return p}()}),!!i&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){function p(){return s("login",{login_type:2})}return p}()}),!!c&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){function p(){return s("login",{login_type:3})}return p}()}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,V,{specialType:d})})]})}return k}(),V=r.SpecialMachineInteraction=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=S.specialType;if(l){if(l==="Fax")return(0,e.createComponentVNode)(2,t.Button,{position:"relative",content:"Send Automated Fax Request",bottom:"152px",left:"188px",icon:"share-square",onClick:function(){function u(){return s("send_automated_staff_request")}return u}(),tooltip:"Automated Fax Requests do not require staff to post on discord, but won't ping the related roles."})}else return null}return k}()},23415:function(x,r,n){"use strict";r.__esModule=!0,r.MiningUser=void 0;var e=n(58734),a=n(62188),t=n(11790),o=r.MiningUser=function(){function m(V,k){var S=(0,a.useBackend)(k),N=S.act,h=S.data,s=V.insertIdText,l=h.has_id,u=h.id;return(0,e.createComponentVNode)(2,t.NoticeBox,{success:l,children:l?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{display:"inline-block",verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",u.name,".",(0,e.createVNode)(1,"br"),"You have ",u.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function i(){return N("logoff")}return i}()}),(0,e.createComponentVNode)(2,t.Box,{style:{clear:"both"}})],4):s})}return m}()},51608:function(x,r,n){"use strict";r.__esModule=!0,r.OvermapPanControls=r.OvermapFlightData=void 0;var e=n(58734),a=n(62188),t=n(11790),o=r.OvermapFlightData=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=k.disableLimiterControls,u=s.ETAnext,i=s.speed,c=s.speed_color,d=s.accel,p=s.heading,v=s.accellimit;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ETA To Next Grid",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Speed",color:c,children:[i," Gm/h"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Acceleration",children:[d," Gm/h"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Heading",children:[p,"\xB0"]}),!l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Acceleration Limiter",children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function f(){return h("accellimit")}return f}(),children:[v," Gm/h"]})})||null]})}return V}(),m=r.OvermapPanControls=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=k.disabled,l=k.actToDo,u=k.selected,i=u===void 0?function(c){return!1}:u;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{disabled:s,selected:i(9),onClick:function(){function c(){return h(l,{dir:9})}return c}(),icon:"arrow-up",iconRotation:-45}),(0,e.createComponentVNode)(2,t.Button,{disabled:s,selected:i(1),onClick:function(){function c(){return h(l,{dir:1})}return c}(),icon:"arrow-up"}),(0,e.createComponentVNode)(2,t.Button,{disabled:s,selected:i(5),onClick:function(){function c(){return h(l,{dir:5})}return c}(),icon:"arrow-up",iconRotation:45})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{disabled:s,selected:i(8),onClick:function(){function c(){return h(l,{dir:8})}return c}(),icon:"arrow-left"}),(0,e.createComponentVNode)(2,t.Button,{disabled:s,selected:i(0),onClick:function(){function c(){return h("brake")}return c}(),icon:"ban"}),(0,e.createComponentVNode)(2,t.Button,{disabled:s,selected:i(4),onClick:function(){function c(){return h(l,{dir:4})}return c}(),icon:"arrow-right"})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{disabled:s,selected:i(10),onClick:function(){function c(){return h(l,{dir:10})}return c}(),icon:"arrow-down",iconRotation:45}),(0,e.createComponentVNode)(2,t.Button,{disabled:s,selected:i(2),onClick:function(){function c(){return h(l,{dir:2})}return c}(),icon:"arrow-down"}),(0,e.createComponentVNode)(2,t.Button,{disabled:s,selected:i(6),onClick:function(){function c(){return h(l,{dir:6})}return c}(),icon:"arrow-down",iconRotation:-45})]})],4)}return V}()},25606:function(x,r,n){"use strict";r.__esModule=!0,r.PortableBasicInfo=void 0;var e=n(58734),a=n(62188),t=n(11790),o=r.PortableBasicInfo=function(){function m(V,k){var S=(0,a.useBackend)(k),N=S.act,h=S.data,s=h.connected,l=h.holding,u=h.on,i=h.pressure,c=h.powerDraw,d=h.cellCharge,p=h.cellMaxCharge;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u?"power-off":"times",content:u?"On":"Off",selected:u,onClick:function(){function v(){return N("power")}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:i})," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Port",color:s?"good":"average",children:s?"Connected":"Not Connected"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Load",children:[c," W"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:d,minValue:0,maxValue:p,ranges:{good:[p*.5,1/0],average:[p*.25,p*.5],bad:[-1/0,p*.25]},children:[d," W"]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Holding Tank",minHeight:"82px",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!l,onClick:function(){function v(){return N("eject")}return v}()}),children:l?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Label",children:l.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:l.pressure})," kPa"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No holding tank"})})],4)}return m}()},70237:function(x,r,n){"use strict";r.__esModule=!0,r.RankIcon=void 0;var e=n(58734),a=n(11790),t={"Colony Director":"user-tie","Site Manager":"user-tie",Overseer:"user-tie","Head of Personnel":"briefcase","Crew Resources Officer":"briefcase","Deputy Director":"briefcase","Command Secretary":"user-tie","Head of Security":"user-shield","Security Commander":"user-shield","Chief of Security":"user-shield",Warden:["city","shield-alt"],Detective:"search","Forensic Technician":"search","Security Officer":"user-shield","Junior Officer":"user-shield","Chief Engineer":"toolbox","Atmospheric Technician":"wind","Station Engineer":"toolbox","Maintenance Technician":"wrench","Engine Technician":"toolbox",Electrician:"toolbox","Chief Medical Officer":"user-md",Chemist:"mortar-pestle",Pharmacist:"mortar-pestle","Medical Doctor":"user-md",Surgeon:"user-md","Emergency Physician":"user-md",Nurse:"user-md",Virologist:"disease",Paramedic:"ambulance","Emergency Medical Technician":"ambulance",Psychiatrist:"couch",Psychologist:"couch","Research Director":"user-graduate","Research Supervisor":"user-graduate",Roboticist:"robot","Biomechanical Engineer":["wrench","heartbeat"],"Mechatronic Engineer":"wrench",Scientist:"flask",Xenoarchaeologist:"flask",Anomalist:"flask","Phoron Researcher":"flask","Circuit Designer":"car-battery",Xenobiologist:"meteor",Xenobotanist:["biohazard","seedling"],Quartermaster:"box-open","Supply Chief":"warehouse","Cargo Technician":"box-open","Shaft Miner":"hard-hat","Drill Technician":"hard-hat",Pathfinder:"binoculars",Explorer:"user-astronaut","Field Medic":["user-md","user-astronaut"],Pilot:"space-shuttle",Bartender:"glass-martini",Barista:"coffee",Botanist:"leaf",Gardener:"leaf",Chaplain:"place-of-worship",Counselor:"couch",Chef:"utensils",Cook:"utensils",Entertainer:"smile-beam",Performer:"smile-beam",Musician:"guitar",Stagehand:"smile-beam",Intern:"school","Apprentice Engineer":["school","wrench"],"Medical Intern":["school","user-md"],"Lab Assistant":["school","flask"],"Security Cadet":["school","shield-alt"],"Jr. Cargo Tech":["school","box"],"Jr. Explorer":["school","user-astronaut"],Server:["school","utensils"],"Internal Affairs Agent":"balance-scale",Janitor:"broom",Custodian:"broom","Sanitation Technician":"hand-sparkles",Maid:"broom",Librarian:"book",Journalist:"newspaper",Writer:"book",Historian:"chalkboard-teacher",Professor:"chalkboard-teacher",Visitor:"user","Emergency Responder":"fighter-jet"},o=r.RankIcon=function(){function m(V,k){var S=V.rank,N=V.color,h=N===void 0?"label":N,s=t[S];return typeof s=="string"?(0,e.createComponentVNode)(2,a.Icon,{inline:!0,color:h,name:s,size:2}):Array.isArray(s)?s.map(function(l){return(0,e.createComponentVNode)(2,a.Icon,{inline:!0,color:h,name:l,size:2},l)}):(0,e.createComponentVNode)(2,a.Icon,{inline:!0,color:h,name:"user",size:2})}return m}()},45246:function(x,r,n){"use strict";r.__esModule=!0,r.TemporaryNotice=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=r.TemporaryNotice=function(){function V(k,S){var N,h=k.decode,s=(0,t.useBackend)(S),l=s.act,u=s.data,i=u.temp;if(i){var c=(N={},N[i.style]=!0,N);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.NoticeBox,Object.assign({},c,{children:[(0,e.createComponentVNode)(2,o.Box,{display:"inline-block",verticalAlign:"middle",children:h?(0,a.decodeHtmlEntities)(i.text):i.text}),(0,e.createComponentVNode)(2,o.Button,{icon:"times-circle",float:"right",onClick:function(){function d(){return l("cleartemp")}return d}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"both"})]})))}}return V}()},85845:function(x,r,n){"use strict";r.__esModule=!0,r.pAIAtmos=void 0;var e=n(58734),a=n(45445),t=n(40946),o=n(62188),m=n(11790),V=n(11477),k=function(h,s,l,u,i){return h<s?"bad":h<l||h>u?"average":h>i?"bad":"good"},S=r.pAIAtmos=function(){function N(h,s){var l=(0,o.useBackend)(s),u=l.act,i=l.data,c=i.aircontents;return(0,e.createComponentVNode)(2,V.Window,{width:450,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,m.Section,{children:(0,e.createComponentVNode)(2,m.LabeledList,{children:(0,a.filter)(function(d){return d.val!=="0"||d.entry==="Pressure"||d.entry==="Temperature"})(c).map(function(d){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:d.entry,color:k(d.val,d.bad_low,d.poor_low,d.poor_high,d.bad_high),children:[d.val,(0,t.decodeHtmlEntities)(d.units)]},d.entry)})})})})})}return N}()},93742:function(x,r,n){"use strict";r.__esModule=!0,r.pAIDirectives=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.pAIDirectives=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.master,u=s.dna,i=s.prime,c=s.supplemental;return(0,e.createComponentVNode)(2,o.Window,{width:450,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Master",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master",children:l&&(0,e.createComponentVNode)(2,t.Box,{children:[l," (",u,")",(0,e.createComponentVNode)(2,t.Button,{icon:"syringe",content:"Request Sample",onClick:function(){function d(){return h("getdna")}return d}()})]})||(0,e.createComponentVNode)(2,t.Box,{children:"None"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Directives",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prime Directive",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Supplemental Directive(s)",children:c||"None"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,italic:!0,children:'Recall, personality, that you are a complex piece of software with tremendous social skills. Unlike station AI models, you are focused entirely on sapient-software interfacing. 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 should strive to be seen as the ideal, unwavering digital companion that you are.'}),(0,e.createComponentVNode)(2,t.Box,{mt:1,bold:!0,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 V}()},91650:function(x,r,n){"use strict";r.__esModule=!0,r.pAIDoorjack=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.pAIDoorjack=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.cable,u=s.machine,i=s.inprogress,c=s.progress_a,d=s.progress_b,p=s.aborted;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:150,resizable:!0,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:"Cable",children:u&&(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Connected"})||l&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Extended"})||(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"ethernet",content:"Retracted",onClick:function(){function v(){return h("cable")}return v}()})})}),!!u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hack",children:i&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.ProgressBar,{value:c,maxValue:100,ranges:{good:[67,1/0],average:[33,67],bad:[-1/0,33]},children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:c}),".",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:d}),"%"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"ban",color:"bad",onClick:function(){function v(){return h("cancel")}return v}()})]})||(0,e.createComponentVNode)(2,t.Button,{icon:"virus",content:"Start",onClick:function(){function v(){return h("jack")}return v}()})})||!!p&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{color:"bad",mt:1,children:"Hack aborted."})]})})})})}return V}()},53333:function(x,r,n){"use strict";r.__esModule=!0,r.pAIInterface=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.pAIInterface=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.bought,u=s.not_bought,i=s.available_ram,c=s.emotions,d=s.current_emotion;return(0,e.createComponentVNode)(2,o.Window,{width:450,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Emotion",children:c.map(function(p){return(0,e.createComponentVNode)(2,t.Button,{content:p.name,selected:p.id===d,onClick:function(){function v(){return h("image",{image:p.id})}return v}()},p.id)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Software (Available RAM: "+i+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed",children:l.map(function(p){return(0,e.createComponentVNode)(2,t.Button,{content:p.name,selected:p.on,onClick:function(){function v(){return h("software",{software:p.id})}return v}()},p.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Downloadable",children:u.map(function(p){return(0,e.createComponentVNode)(2,t.Button,{content:p.name+" ("+p.ram+")",disabled:p.ram>i,onClick:function(){function v(){return h("purchase",{purchase:p.id})}return v}()},p.id)})})]})})]})})}return V}()},23798:function(x,r,n){"use strict";r.__esModule=!0,r.pAIMedrecords=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.pAIMedrecords=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.records,u=s.general,i=s.medical,c=s.could_not_find;return(0,e.createComponentVNode)(2,o.Window,{width:450,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:l.map(function(d){return(0,e.createComponentVNode)(2,t.Button,{content:d.name,onClick:function(){function p(){return h("select",{select:d.ref})}return p}()},d.ref)})}),(u||i)&&(0,e.createComponentVNode)(2,t.Section,{title:"Selected Record",children:[!!c&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Warning: Failed to find some records. The information below may not be complete."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:u.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Record ID",children:u.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Entity Classification",children:u.brain_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sex",children:u.sex}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:u.species}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Age",children:u.age}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rank",children:u.rank}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fingerprint",children:u.fingerprint}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Physical Status",children:u.p_stat}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mental Status",children:u.m_stat}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood Type",children:i.b_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Minor Disabilities",children:[(0,e.createComponentVNode)(2,t.Box,{children:i.mi_dis}),(0,e.createComponentVNode)(2,t.Box,{children:i.mi_dis_d})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Major Disabilities",children:[(0,e.createComponentVNode)(2,t.Box,{children:i.ma_dis}),(0,e.createComponentVNode)(2,t.Box,{children:i.ma_dis_d})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Allergies",children:[(0,e.createComponentVNode)(2,t.Box,{children:i.alg}),(0,e.createComponentVNode)(2,t.Box,{children:i.alg_d})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Diseases",children:[(0,e.createComponentVNode)(2,t.Box,{children:i.cdi}),(0,e.createComponentVNode)(2,t.Box,{children:i.cdi_d})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Important Notes",children:i.notes})]})]})]})})}return V}()},18457:function(x,r,n){"use strict";r.__esModule=!0,r.pAISecrecords=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.pAISecrecords=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.records,u=s.general,i=s.security,c=s.could_not_find;return(0,e.createComponentVNode)(2,o.Window,{width:450,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:l.map(function(d){return(0,e.createComponentVNode)(2,t.Button,{content:d.name,onClick:function(){function p(){return h("select",{select:d.ref})}return p}()},d.ref)})}),(u||i)&&(0,e.createComponentVNode)(2,t.Section,{title:"Selected Record",children:[!!c&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Warning: Failed to find some records. The information below may not be complete."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:u.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Record ID",children:u.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Entity Classification",children:u.brain_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sex",children:u.sex}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:u.species}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Age",children:u.age}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rank",children:u.rank}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fingerprint",children:u.fingerprint}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Physical Status",children:u.p_stat}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mental Status",children:u.m_stat}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Criminal Status",children:(0,e.createComponentVNode)(2,t.Box,{children:i.criminal})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Minor Crimes",children:[(0,e.createComponentVNode)(2,t.Box,{children:i.mi_crim}),(0,e.createComponentVNode)(2,t.Box,{children:i.mi_crim_d})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Major Crimes",children:[(0,e.createComponentVNode)(2,t.Box,{children:i.ma_crim}),(0,e.createComponentVNode)(2,t.Box,{children:i.ma_crim_d})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Important Notes",children:i.notes})]})]})]})})}return V}()},49093:function(x,r,n){"use strict";r.__esModule=!0,r.pda_atmos_scan=void 0;var e=n(58734),a=n(45445),t=n(40946),o=n(62188),m=n(11790),V=function(N,h,s,l,u){return N<h?"bad":N<s||N>l?"average":N>u?"bad":"good"},k=r.pda_atmos_scan=function(){function S(N,h){var s=(0,o.useBackend)(h),l=s.act,u=s.data,i=u.aircontents;return(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,m.LabeledList,{children:(0,a.filter)(function(c){return c.val!=="0"||c.entry==="Pressure"||c.entry==="Temperature"})(i).map(function(c){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:c.entry,color:V(c.val,c.bad_low,c.poor_low,c.poor_high,c.bad_high),children:[c.val,(0,t.decodeHtmlEntities)(c.units)]},c.entry)})})})}return S}()},66382:function(x,r,n){"use strict";r.__esModule=!0,r.pda_janitor=void 0;var e=n(58734),a=n(62188),t=n(11790),o=r.pda_janitor=function(){function m(V,k){var S=(0,a.useBackend)(k),N=S.act,h=S.data,s=h.janitor;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Location",children:s.user_loc.x===0&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Unknown"})||(0,e.createComponentVNode)(2,t.Box,{children:[s.user_loc.x," / ",s.user_loc.y]})})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Mop Locations",children:s.mops&&(0,e.createVNode)(1,"ul",null,s.mops.map(function(l,u){return(0,e.createVNode)(1,"li",null,[l.x,(0,e.createTextVNode)(" / "),l.y,(0,e.createTextVNode)(" - "),l.dir,(0,e.createTextVNode)(" - Status: "),l.status],0,null,u)}),0)||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No mops detected nearby."})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Mop Bucket Locations",children:s.buckets&&(0,e.createVNode)(1,"ul",null,s.buckets.map(function(l,u){return(0,e.createVNode)(1,"li",null,[l.x,(0,e.createTextVNode)(" / "),l.y,(0,e.createTextVNode)(" - "),l.dir,(0,e.createTextVNode)(" - Capacity:"),(0,e.createTextVNode)(" "),l.volume,(0,e.createTextVNode)("/"),l.max_volume],0,null,u)}),0)||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No buckets detected nearby."})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Cleanbot Locations",children:s.cleanbots&&(0,e.createVNode)(1,"ul",null,s.cleanbots.map(function(l,u){return(0,e.createVNode)(1,"li",null,[l.x,(0,e.createTextVNode)(" / "),l.y,(0,e.createTextVNode)(" - "),l.dir,(0,e.createTextVNode)(" - Status:"),(0,e.createTextVNode)(" "),l.status],0,null,u)}),0)||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No cleanbots detected nearby."})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Janitorial Cart Locations",children:s.carts&&(0,e.createVNode)(1,"ul",null,s.carts.map(function(l,u){return(0,e.createVNode)(1,"li",null,[l.x,(0,e.createTextVNode)(" / "),l.y,(0,e.createTextVNode)(" - "),l.dir,(0,e.createTextVNode)(" - Water Level: "),l.volume,(0,e.createTextVNode)("/"),l.max_volume],0,null,u)}),0)||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No janitorial carts detected nearby."})})]})}return m}()},68395:function(x,r,n){"use strict";r.__esModule=!0,r.pda_main_menu=void 0;var e=n(58734),a=n(62188),t=n(11790),o=r.pda_main_menu=function(){function m(V,k){var S=(0,a.useBackend)(k),N=S.act,h=S.data,s=h.owner,l=h.ownjob,u=h.idInserted,i=h.categories,c=h.pai,d=h.notifying;return(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:"Owner",color:"average",children:[s,", ",l]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Update PDA Info",disabled:!u,onClick:function(){function p(){return N("UpdateInfo")}return p}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Functions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:i.map(function(p){var v=h.apps[p];return!v||!v.length?null:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:p,children:v.map(function(f){return(0,e.createComponentVNode)(2,t.Button,{icon:f.ref in d?f.notify_icon:f.icon,iconSpin:f.ref in d,color:f.ref in d?"red":"transparent",content:f.name,onClick:function(){function C(){return N("StartProgram",{program:f.ref})}return C}()},f.ref)})},p)})})}),!!c&&(0,e.createComponentVNode)(2,t.Section,{level:2,title:"pAI",children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){function p(){return N("pai",{option:1})}return p}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function p(){return N("pai",{option:2})}return p}()})]})],0)}return m}()},89088:function(x,r,n){"use strict";r.__esModule=!0,r.pda_manifest=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(68285),m=r.pda_manifest=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data;return(0,e.createComponentVNode)(2,t.Box,{color:"white",children:(0,e.createComponentVNode)(2,o.CrewManifestContent)})}return V}()},39968:function(x,r,n){"use strict";r.__esModule=!0,r.pda_medical=void 0;var e=n(58734),a=n(62188),t=n(11790),o=r.pda_medical=function(){function m(V,k){var S=(0,a.useBackend)(k),N=S.act,h=S.data,s=h.recordsList,l=h.records;if(l){var u=l.general,i=l.medical;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{level:2,title:"General Data",children:u&&(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:u.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sex",children:u.sex}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:u.species}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Age",children:u.age}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rank",children:u.rank}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fingerprint",children:u.fingerprint}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Physical Status",children:u.p_stat}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mental Status",children:u.m_stat})]})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"General record lost!"})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Medical Data",children:i&&(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood Type",children:i.b_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Minor Disabilities",children:i.mi_dis}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Details",children:i.mi_dis_d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Major Disabilities",children:i.ma_dis}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Details",children:i.ma_dis_d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Allergies",children:i.alg}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Details",children:i.alg_d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Disease",children:i.cdi}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Details",children:i.cdi_d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:(0,e.createComponentVNode)(2,t.Box,{preserveWhitespace:!0,children:i.notes})})]})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Medical record lost!"})})]})}return(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Select a record",children:s.map(function(c){return(0,e.createComponentVNode)(2,t.Button,{icon:"eye",fluid:!0,content:c.Name,onClick:function(){function d(){return N("Records",{target:c.ref})}return d}()},c.ref)})})}return m}()},13861:function(x,r,n){"use strict";r.__esModule=!0,r.pda_messenger=void 0;var e=n(58734),a=n(40946),t=n(45445),o=n(62188),m=n(11790),V=r.pda_messenger=function(){function s(l,u){var i=(0,o.useBackend)(u),c=i.act,d=i.data,p=d.auto_scroll,v=d.convo_name,f=d.convo_job,C=d.messages,b=d.active_conversation;return b?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,N)}return s}(),k=function(l,u,i){if(u<0||u>i.length)return l.sent?"TinderMessage_First_Sent":"TinderMessage_First_Received";var c=i[u].sent;return l.sent&&c?"TinderMessage_Subsequent_Sent":!l.sent&&!c?"TinderMessage_Subsequent_Received":l.sent?"TinderMessage_First_Sent":"TinderMessage_First_Received"},S=function(l,u){var i=(0,o.useBackend)(u),c=i.act,d=i.data,p=d.auto_scroll,v=d.convo_name,f=d.convo_job,C=d.messages,b=d.active_conversation,g=d.useRetro,y=(0,o.useLocalState)(u,"clipboardMode",!1),B=y[0],L=y[1],I=(0,e.createComponentVNode)(2,m.Section,{level:2,title:"Conversation with "+v+" ("+f+")",buttons:(0,e.createComponentVNode)(2,m.Button,{icon:"eye",selected:B,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){function w(){return L(!B)}return w}()}),height:"450px",stretchContents:!0,children:[(0,e.createComponentVNode)(2,m.Button,{icon:"comment",onClick:function(){function w(){return c("Message",{target:b})}return w}(),content:"Reply"}),(0,e.createComponentVNode)(2,m.Section,{style:{height:"97%","overflow-y":"auto"},children:(0,t.filter)(function(w){return w.target===b})(C).map(function(w,T,M){return(0,e.createComponentVNode)(2,m.Box,{textAlign:w.sent?"right":"left",mb:1,children:(0,e.createComponentVNode)(2,m.Box,{maxWidth:"75%",className:k(w,T-1,M),inline:!0,children:(0,a.decodeHtmlEntities)(w.message)})},T)})}),(0,e.createComponentVNode)(2,m.Button,{icon:"comment",onClick:function(){function w(){return c("Message",{target:b})}return w}(),content:"Reply"})]});return B&&(I=(0,e.createComponentVNode)(2,m.Section,{level:2,title:"Conversation with "+v+" ("+f+")",buttons:(0,e.createComponentVNode)(2,m.Button,{icon:"eye",selected:B,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){function w(){return L(!B)}return w}()}),height:"450px",stretchContents:!0,children:[(0,e.createComponentVNode)(2,m.Button,{icon:"comment",onClick:function(){function w(){return c("Message",{target:b})}return w}(),content:"Reply"}),(0,e.createComponentVNode)(2,m.Section,{style:{height:"97%","overflow-y":"auto"},children:(0,t.filter)(function(w){return w.target===b})(C).map(function(w,T){return(0,e.createComponentVNode)(2,m.Box,{className:w.sent?"ClassicMessage_Sent":"ClassicMessage_Received",children:[w.sent?"You:":"Them:"," ",(0,a.decodeHtmlEntities)(w.message)]},T)})}),(0,e.createComponentVNode)(2,m.Button,{icon:"comment",onClick:function(){function w(){return c("Message",{target:b})}return w}(),content:"Reply"})]})),(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.LabeledList,{children:(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Messenger Functions",children:(0,e.createComponentVNode)(2,m.Button,{icon:"trash",color:"bad",onClick:function(){function w(){return c("Clear",{option:"Convo"})}return w}(),children:"Delete Conversations"})})}),I]})},N=function(l,u){var i=(0,o.useBackend)(u),c=i.act,d=i.data,p=d.auto_scroll,v=d.convopdas,f=d.pdas,C=d.charges,b=d.plugins,g=d.silent,y=d.toff;return(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.LabeledList,{children:(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Messenger Functions",children:[(0,e.createComponentVNode)(2,m.Button,{selected:!g,icon:g?"volume-mute":"volume-up",onClick:function(){function B(){return c("Toggle Ringer")}return B}(),children:["Ringer: ",g?"Off":"On"]}),(0,e.createComponentVNode)(2,m.Button,{color:y?"bad":"green",icon:"power-off",onClick:function(){function B(){return c("Toggle Messenger")}return B}(),children:["Messenger: ",y?"Off":"On"]}),(0,e.createComponentVNode)(2,m.Button,{icon:"bell",onClick:function(){function B(){return c("Ringtone")}return B}(),children:"Set Ringtone"}),(0,e.createComponentVNode)(2,m.Button,{icon:"trash",color:"bad",onClick:function(){function B(){return c("Clear",{option:"All"})}return B}(),children:"Delete All Conversations"})]})}),!y&&(0,e.createComponentVNode)(2,m.Box,{children:[!!C&&(0,e.createComponentVNode)(2,m.Box,{children:[C," charges left."]}),!v.length&&!f.length&&(0,e.createComponentVNode)(2,m.Box,{children:"No other PDAs located."})||(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,h,{title:"Current Conversations",pdas:v,msgAct:"Select Conversation"}),(0,e.createComponentVNode)(2,h,{title:"Other PDAs",pdas:f,msgAct:"Message"})]})]})||(0,e.createComponentVNode)(2,m.Box,{color:"bad",mt:2,children:"Messenger Offline."})]})},h=function(l,u){var i=(0,o.useBackend)(u),c=i.act,d=i.data,p=l.pdas,v=l.title,f=l.msgAct,C=d.charges,b=d.plugins;return!p||!p.length?(0,e.createComponentVNode)(2,m.Section,{level:2,title:v,children:"No PDAs found."}):(0,e.createComponentVNode)(2,m.Section,{level:2,title:v,children:p.map(function(g){return(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.Button,{icon:"arrow-circle-down",content:g.Name,onClick:function(){function y(){return c(f,{target:g.Reference})}return y}()}),!!C&&b.map(function(y){return(0,e.createComponentVNode)(2,m.Button,{icon:y.icon,content:y.name,onClick:function(){function B(){return c("Messenger Plugin",{plugin:y.ref,target:g.Reference})}return B}()},y.ref)})]},g.Reference)})})}},56042:function(x,r,n){"use strict";r.__esModule=!0,r.pda_news=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=r.pda_news=function(){function S(N,h){var s=(0,t.useBackend)(h),l=s.act,u=s.data,i=u.feeds,c=u.target_feed;return(0,e.createComponentVNode)(2,o.Box,{children:!i.length&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Error: No newsfeeds available. Please try again later."})||c&&(0,e.createComponentVNode)(2,V)||(0,e.createComponentVNode)(2,k)})}return S}(),V=function(N,h){var s=(0,t.useBackend)(h),l=s.act,u=s.data,i=u.target_feed;return(0,e.createComponentVNode)(2,o.Section,{title:(0,a.decodeHtmlEntities)(i.name)+" by "+(0,a.decodeHtmlEntities)(i.author),level:2,buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Back",icon:"chevron-up",onClick:function(){function c(){return l("newsfeed",{newsfeed:null})}return c}()}),children:i.messages.length&&i.messages.map(function(c){return(0,e.createComponentVNode)(2,o.Section,{children:["- ",(0,a.decodeHtmlEntities)(c.body),!!c.img&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+c.img}),(0,a.decodeHtmlEntities)(c.caption)||null]}),(0,e.createComponentVNode)(2,o.Box,{color:"grey",children:["[",c.message_type," by ",(0,a.decodeHtmlEntities)(c.author)," -"," ",c.time_stamp,"]"]})]},c.ref)})||(0,e.createComponentVNode)(2,o.Box,{children:["No stories found in ",i.name,"."]})})},k=function(N,h){var s=(0,t.useBackend)(h),l=s.act,u=s.data,i=u.feeds,c=u.latest_news;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Recent News",level:2,children:c.length&&(0,e.createComponentVNode)(2,o.Section,{children:c.map(function(d){return(0,e.createComponentVNode)(2,o.Box,{mb:2,children:[(0,e.createVNode)(1,"h5",null,[(0,a.decodeHtmlEntities)(d.channel),(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"chevron-up",onClick:function(){function p(){return l("newsfeed",{newsfeed:d.index})}return p}(),content:"Go to"})],0),"- ",(0,a.decodeHtmlEntities)(d.body),!!d.img&&(0,e.createComponentVNode)(2,o.Box,{children:["[image omitted, view story for more details]",d.caption||null]}),(0,e.createComponentVNode)(2,o.Box,{fontSize:.9,children:["[",d.message_type," by"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"average",children:d.author})," ","- ",d.time_stamp,"]"]})]},d.index)})})||(0,e.createComponentVNode)(2,o.Box,{children:"No recent stories found."})}),(0,e.createComponentVNode)(2,o.Section,{title:"News Feeds",level:2,children:i.map(function(d){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"chevron-up",onClick:function(){function p(){return l("newsfeed",{newsfeed:d.index})}return p}(),content:d.name},d.index)})})],4)}},47192:function(x,r,n){"use strict";r.__esModule=!0,r.pda_notekeeper=void 0;var e=n(58734),a=n(62188),t=n(11790),o=r.pda_notekeeper=function(){function m(V,k){var S=(0,a.useBackend)(k),N=S.act,h=S.data,s=h.note;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:s}})}),(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function l(){return N("Edit")}return l}(),content:"Edit Notes"})]})}return m}()},60062:function(x,r,n){"use strict";r.__esModule=!0,r.pda_power=void 0;var e=n(58734),a=n(62188),t=n(8694),o=r.pda_power=function(){function m(V,k){var S=(0,a.useBackend)(k),N=S.act,h=S.data;return(0,e.createComponentVNode)(2,t.PowerMonitorContent)}return m}()},97515:function(x,r,n){"use strict";r.__esModule=!0,r.pda_security=void 0;var e=n(58734),a=n(62188),t=n(11790),o=r.pda_security=function(){function m(V,k){var S=(0,a.useBackend)(k),N=S.act,h=S.data,s=h.recordsList,l=h.records;if(l){var u=l.general,i=l.security;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{level:2,title:"General Data",children:u&&(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:u.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sex",children:u.sex}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:u.species}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Age",children:u.age}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rank",children:u.rank}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fingerprint",children:u.fingerprint}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Physical Status",children:u.p_stat}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mental Status",children:u.m_stat})]})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"General record lost!"})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Security Data",children:i&&(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Criminal Status",children:i.criminal}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Minor Crimes",children:i.mi_crim}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Details",children:i.mi_crim_d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Major Crimes",children:i.ma_crim}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Details",children:i.ma_crim_d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Important Notes:",children:(0,e.createComponentVNode)(2,t.Box,{preserveWhitespace:!0,children:i.notes||"No data found."})})]})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Security record lost!"})})]})}return(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Select a record",children:s.map(function(c){return(0,e.createComponentVNode)(2,t.Button,{icon:"eye",fluid:!0,content:c.Name,onClick:function(){function d(){return N("Records",{target:c.ref})}return d}()},c.ref)})})}return m}()},45516:function(x,r,n){"use strict";r.__esModule=!0,r.pda_signaller=void 0;var e=n(58734),a=n(76289),t=r.pda_signaller=function(){function o(m,V){return(0,e.createComponentVNode)(2,a.SignalerContent)}return o}()},91120:function(x,r,n){"use strict";r.__esModule=!0,r.pda_status_display=void 0;var e=n(58734),a=n(62188),t=n(11790),o=r.pda_status_display=function(){function m(V,k){var S=(0,a.useBackend)(k),N=S.act,h=S.data,s=h.records;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Code",children:[(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"trash",content:"Clear",onClick:function(){function l(){return N("Status",{statdisp:"blank"})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"cog",content:"Evac ETA",onClick:function(){function l(){return N("Status",{statdisp:"shuttle"})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"cog",content:"Message",onClick:function(){function l(){return N("Status",{statdisp:"message"})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"exclamation-triangle",content:"ALERT",onClick:function(){function l(){return N("Status",{statdisp:"alert"})}return l}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message line 1",children:(0,e.createComponentVNode)(2,t.Button,{content:s.message1+" (set)",icon:"pen",onClick:function(){function l(){return N("Status",{statdisp:"setmsg1"})}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message line 2",children:(0,e.createComponentVNode)(2,t.Button,{content:s.message2+" (set)",icon:"pen",onClick:function(){function l(){return N("Status",{statdisp:"setmsg2"})}return l}()})})]})})}return m}()},33871:function(x,r,n){"use strict";r.__esModule=!0,r.pda_supply=void 0;var e=n(58734),a=n(62188),t=n(11790),o=r.pda_supply=function(){function m(V,k){var S=(0,a.useBackend)(k),N=S.act,h=S.data,s=h.supply;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:s.shuttle_moving?"Moving to station "+s.shuttle_eta:"Shuttle at "+s.shuttle_loc})}),(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{color:"good",bold:!0,children:"Current Approved Orders"}),s.approved.length&&s.approved.map(function(l){return(0,e.createComponentVNode)(2,t.Box,{color:"average",children:["#",l.Number," - ",l.Name," approved by ",l.OrderedBy,(0,e.createVNode)(1,"br"),l.Comment]},l.Number)})||(0,e.createComponentVNode)(2,t.Box,{children:"None!"}),(0,e.createComponentVNode)(2,t.Box,{color:"good",bold:!0,children:"Current Requested Orders"}),s.requests.length&&s.requests.map(function(l){return(0,e.createComponentVNode)(2,t.Box,{color:"average",children:["#",l.Number," - ",l.Name," requested by ",l.OrderedBy,(0,e.createVNode)(1,"br"),l.Comment]},l.Number)})||(0,e.createComponentVNode)(2,t.Box,{children:"None!"})]})]})}return m}()},71599:function(x,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(58734),a=n(59641),t=n(65969),o=n(80835),m=["className","theme","children"],V=["className","scrollable","children"];/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/function k(h,s){if(h==null)return{};var l={},u=Object.keys(h),i,c;for(c=0;c<u.length;c++)i=u[c],!(s.indexOf(i)>=0)&&(l[i]=h[i]);return l}var S=r.Layout=function(){function h(s){var l=s.className,u=s.theme,i=u===void 0?"nanotrasen":u,c=s.children,d=k(s,m);return(0,e.createVNode)(1,"div","theme-"+i,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout",l,(0,t.computeBoxClassName)(d)]),c,0,Object.assign({},(0,t.computeBoxProps)(d)))),2)}return h}(),N=function(s){var l=s.className,u=s.scrollable,i=s.children,c=k(s,V);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout__content",u&&"Layout__content--scrollable",l,(0,t.computeBoxClassName)(c)]),i,0,Object.assign({},(0,t.computeBoxProps)(c))))};N.defaultHooks={onComponentDidMount:function(){function h(s){return(0,o.addScrollableNode)(s)}return h}(),onComponentWillUnmount:function(){function h(s){return(0,o.removeScrollableNode)(s)}return h}()},S.Content=N},74637:function(x,r,n){"use strict";r.__esModule=!0,r.NtosWindow=void 0;var e=n(58734),a=n(37655),t=n(62188),o=n(11790),m=n(81778);/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var V=r.NtosWindow=function(){function S(N,h){var s=N.title,l=N.width,u=l===void 0?575:l,i=N.height,c=i===void 0?700:i,d=N.children,p=(0,t.useBackend)(h),v=p.act,f=p.data,C=f.PC_device_theme,b=f.PC_batteryicon,g=f.PC_showbatteryicon,y=f.PC_batterypercent,B=f.PC_ntneticon,L=f.PC_stationdate,I=f.PC_stationtime,w=f.PC_programheaders,T=w===void 0?[]:w,M=f.PC_showexitprogram;return(0,e.createComponentVNode)(2,m.Window,{title:s,width:u,height:c,theme:C,children:(0,e.createVNode)(1,"div","NtosWindow",[(0,e.createVNode)(1,"div","NtosWindow__header NtosHeader",[(0,e.createVNode)(1,"div","NtosHeader__left",[(0,e.createComponentVNode)(2,o.Box,{inline:!0,bold:!0,mr:2,children:[(0,e.createComponentVNode)(2,o.Button,{width:"26px",lineHeight:"22px",textAlign:"left",tooltip:L,color:"transparent",icon:"calendar",tooltipPosition:"bottom"}),I]}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,italic:!0,mr:2,opacity:.33,children:C==="syndicate"&&"Syndix"||"NtOS"})],4),(0,e.createVNode)(1,"div","NtosHeader__right",[T.map(function(A){return(0,e.createComponentVNode)(2,o.Box,{inline:!0,mr:1,children:(0,e.createVNode)(1,"img","NtosHeader__icon",null,1,{src:(0,a.resolveAsset)(A.icon)})},A.icon)}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:B&&(0,e.createVNode)(1,"img","NtosHeader__icon",null,1,{src:(0,a.resolveAsset)(B)})}),!!(g&&b)&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,mr:1,children:[(0,e.createVNode)(1,"img","NtosHeader__icon",null,1,{src:(0,a.resolveAsset)(b)}),y&&y]}),!!M&&(0,e.createComponentVNode)(2,o.Button,{width:"26px",lineHeight:"22px",textAlign:"center",color:"transparent",icon:"window-minimize-o",tooltip:"Minimize",tooltipPosition:"bottom",onClick:function(){function A(){return v("PC_minimize")}return A}()}),!!M&&(0,e.createComponentVNode)(2,o.Button,{mr:"-3px",width:"26px",lineHeight:"22px",textAlign:"center",color:"transparent",icon:"window-close-o",tooltip:"Close",tooltipPosition:"bottom-start",onClick:function(){function A(){return v("PC_exit")}return A}()}),!M&&(0,e.createComponentVNode)(2,o.Button,{mr:"-3px",width:"26px",lineHeight:"22px",textAlign:"center",color:"transparent",icon:"power-off",tooltip:"Power off",tooltipPosition:"bottom-start",onClick:function(){function A(){return v("PC_shutdown")}return A}()})],0)],4),d],0)})}return S}(),k=function(N){return(0,e.createVNode)(1,"div","NtosWindow__content",(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.Window.Content,Object.assign({},N))),2)};V.Content=k},69213:function(x,r,n){"use strict";r.__esModule=!0,r.Pane=void 0;var e=n(58734),a=n(59641),t=n(62188),o=n(11790),m=n(89402),V=n(71599),k=["theme","children","className"],S=["className","fitted","children"];/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/function N(l,u){if(l==null)return{};var i={},c=Object.keys(l),d,p;for(p=0;p<c.length;p++)d=c[p],!(u.indexOf(d)>=0)&&(i[d]=l[d]);return i}var h=r.Pane=function(){function l(u,i){var c=u.theme,d=u.children,p=u.className,v=N(u,k),f=(0,t.useBackend)(i),C=f.suspended,b=(0,m.useDebug)(i),g=b.debugLayout;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,V.Layout,Object.assign({className:(0,a.classes)(["Window",p]),theme:c},v,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,className:g&&"debug-layout",children:!C&&d})})))}return l}(),s=function(u){var i=u.className,c=u.fitted,d=u.children,p=N(u,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,V.Layout.Content,Object.assign({className:(0,a.classes)(["Window__content",i])},p,{children:c&&d||(0,e.createVNode)(1,"div","Window__contentPadding",d,0)})))};h.Content=s},81778:function(x,r,n){"use strict";r.__esModule=!0,r.Window=void 0;var e=n(58734),a=n(59641),t=n(32289),o=n(40946),m=n(62188),V=n(11790),k=n(78419),S=n(89402),N=n(90525),h=n(59509),s=n(66905),l=n(71599),u=["className","fitted","children"];function i(y,B){if(y==null)return{};var L={},I=Object.keys(y),w,T;for(T=0;T<I.length;T++)w=I[T],!(B.indexOf(w)>=0)&&(L[w]=y[w]);return L}function c(y,B){y.prototype=Object.create(B.prototype),y.prototype.constructor=y,d(y,B)}function d(y,B){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function L(I,w){return I.__proto__=w,I}return L}(),d(y,B)}/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var p=(0,s.createLogger)("Window"),v=[400,600],f=r.Window=function(y){c(B,y);function B(){return y.apply(this,arguments)||this}var L=B.prototype;return L.componentDidMount=function(){function I(){var w=(0,m.useBackend)(this.context),T=w.suspended,M=this.props.canClose,A=M===void 0?!0:M;T||(Byond.winset(Byond.windowId,{"can-close":!!A}),p.log("mounting"),this.updateGeometry())}return I}(),L.componentDidUpdate=function(){function I(w){var T=this.props.width!==w.width||this.props.height!==w.height;T&&this.updateGeometry()}return I}(),L.updateGeometry=function(){function I(){var w,T=(0,m.useBackend)(this.context),M=T.config,A=Object.assign({size:v},M.window);this.props.width&&this.props.height&&(A.size=[this.props.width,this.props.height]),(w=M.window)!=null&&w.key&&(0,h.setWindowKey)(M.window.key),(0,h.recallWindowGeometry)(A)}return I}(),L.render=function(){function I(){var w,T=this.props,M=T.canClose,A=M===void 0?!0:M,R=T.theme,O=T.title,_=T.children,P=T.buttons,D=(0,m.useBackend)(this.context),z=D.config,U=D.suspended,W=(0,S.useDebug)(this.context),K=W.debugLayout,H=(0,t.useDispatch)(this.context),Y=(w=z.window)==null?void 0:w.fancy,J=z.user&&(z.user.observer?z.status<k.UI_DISABLED:z.status<k.UI_INTERACTIVE);return(0,e.createComponentVNode)(2,l.Layout,{className:"Window",theme:R,children:[(0,e.createComponentVNode)(2,g,{className:"Window__titleBar",title:!U&&(O||(0,o.decodeHtmlEntities)(z.title)),status:z.status,fancy:Y,onDragStart:h.dragStartHandler,onClose:function(){function q(){p.log("pressed close"),H((0,m.backendSuspendStart)())}return q}(),canClose:A,children:P}),(0,e.createVNode)(1,"div",(0,a.classes)(["Window__rest",K&&"debug-layout"]),[!U&&_,J&&(0,e.createVNode)(1,"div","Window__dimmer")],0),Y&&(0,e.createFragment)([(0,e.createVNode)(1,"div","Window__resizeHandle__e",null,1,{onMousedown:(0,h.resizeStartHandler)(1,0)}),(0,e.createVNode)(1,"div","Window__resizeHandle__s",null,1,{onMousedown:(0,h.resizeStartHandler)(0,1)}),(0,e.createVNode)(1,"div","Window__resizeHandle__se",null,1,{onMousedown:(0,h.resizeStartHandler)(1,1)})],4)]})}return I}(),B}(e.Component),C=function(B){var L=B.className,I=B.fitted,w=B.children,T=i(B,u);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,l.Layout.Content,Object.assign({className:(0,a.classes)(["Window__content",L])},T,{children:I&&w||(0,e.createVNode)(1,"div","Window__contentPadding",w,0)})))};f.Content=C;var b=function(B){switch(B){case k.UI_INTERACTIVE:return"good";case k.UI_UPDATE:return"average";case k.UI_DISABLED:default:return"bad"}},g=function(B,L){var I=B.className,w=B.title,T=B.status,M=B.canClose,A=B.fancy,R=B.onDragStart,O=B.onClose,_=B.children,P=(0,t.useDispatch)(L),D=typeof w=="string"&&w===w.toLowerCase()&&(0,o.toTitleCase)(w)||w;return(0,e.createVNode)(1,"div",(0,a.classes)(["TitleBar",I]),[T===void 0&&(0,e.createComponentVNode)(2,V.Icon,{className:"TitleBar__statusIcon",name:"tools",opacity:.5})||(0,e.createComponentVNode)(2,V.Icon,{className:"TitleBar__statusIcon",color:b(T),name:"eye"}),(0,e.createVNode)(1,"div","TitleBar__dragZone",null,1,{onMousedown:function(){function z(U){return A&&R(U)}return z}()}),(0,e.createVNode)(1,"div","TitleBar__title",[D,!!_&&(0,e.createVNode)(1,"div","TitleBar__buttons",_,0)],0),!1,!!(A&&M)&&(0,e.createVNode)(1,"div","TitleBar__close TitleBar__clickable",Byond.IS_LTE_IE8?"x":"\xD7",0,{onclick:O})],0)}},11477:function(x,r,n){"use strict";r.__esModule=!0,r.Window=r.Pane=r.NtosWindow=r.Layout=void 0;var e=n(71599);r.Layout=e.Layout;var a=n(74637);r.NtosWindow=a.NtosWindow;var t=n(69213);r.Pane=t.Pane;var o=n(81778);r.Window=o.Window},27803:function(x,r){"use strict";r.__esModule=!0,r.captureExternalLinks=void 0;/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var n=r.captureExternalLinks=function(){function e(){document.addEventListener("click",function(a){for(var t=a.target;;){if(!t||t===document.body)return;var o=String(t.tagName).toLowerCase();if(o==="a")break;t=t.parentElement}var m=t.getAttribute("href")||"",V=m.charAt(0)==="?"||m.startsWith("byond://");if(!V){a.preventDefault();var k=m;k.toLowerCase().startsWith("www")&&(k="https://"+k),Byond.sendMessage({type:"openLink",url:k})}})}return e}()},66905:function(x,r,n){"use strict";r.__esModule=!0,r.logger=r.createLogger=void 0;var e=n(60207);/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var a=0,t=1,o=2,m=3,V=4,k=function(s,l){l===void 0&&(l="Generic");for(var u=arguments.length,i=new Array(u>2?u-2:0),c=2;c<u;c++)i[c-2]=arguments[c];if(s>=o){var d=[l].concat(i).map(function(p){return typeof p=="string"?p:p instanceof Error?p.stack||String(p):JSON.stringify(p)}).filter(function(p){return p}).join(" ")+"\nUser Agent: "+navigator.userAgent;Byond.sendMessage({type:"log",ns:l,message:d})}},S=r.createLogger=function(){function h(s){return{debug:function(){function l(){for(var u=arguments.length,i=new Array(u),c=0;c<u;c++)i[c]=arguments[c];return k.apply(void 0,[a,s].concat(i))}return l}(),log:function(){function l(){for(var u=arguments.length,i=new Array(u),c=0;c<u;c++)i[c]=arguments[c];return k.apply(void 0,[t,s].concat(i))}return l}(),info:function(){function l(){for(var u=arguments.length,i=new Array(u),c=0;c<u;c++)i[c]=arguments[c];return k.apply(void 0,[o,s].concat(i))}return l}(),warn:function(){function l(){for(var u=arguments.length,i=new Array(u),c=0;c<u;c++)i[c]=arguments[c];return k.apply(void 0,[m,s].concat(i))}return l}(),error:function(){function l(){for(var u=arguments.length,i=new Array(u),c=0;c<u;c++)i[c]=arguments[c];return k.apply(void 0,[V,s].concat(i))}return l}()}}return h}(),N=r.logger=S()},72630:function(x,r,n){"use strict";r.__esModule=!0,r.suspendRenderer=r.resumeRenderer=r.createRenderer=void 0;var e=n(15645),a=n(58734),t=n(66905),o=(0,t.createLogger)("renderer"),m,V=!0,k=!1,S=r.resumeRenderer=function(){function s(){V=V||"resumed",k=!1}return s}(),N=r.suspendRenderer=function(){function s(){k=!0}return s}(),h=r.createRenderer=function(){function s(l){return function(){e.perf.mark("render/start"),m||(m=document.getElementById("react-root"));for(var u=arguments.length,i=new Array(u),c=0;c<u;c++)i[c]=arguments[c];l?(0,a.render)(l.apply(void 0,i),m):(0,a.render)(i[0],m),e.perf.mark("render/finish"),!k&&V&&(V=!1)}}return s}()},61082:function(x,r,n){"use strict";r.__esModule=!0,r.getRoutedComponent=void 0;var e=n(58734),a=n(11790),t=n(11477),o=n(62188),m=n(76978);/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var V=n(573),k=function(l,u){return function(){return(0,e.createComponentVNode)(2,t.Window,{children:(0,e.createComponentVNode)(2,t.Window.Content,{scrollable:!0,children:[l==="notFound"&&(0,e.createVNode)(1,"div",null,[(0,e.createTextVNode)("Interface "),(0,e.createVNode)(1,"b",null,u,0),(0,e.createTextVNode)(" was not found.")],4),l==="missingExport"&&(0,e.createVNode)(1,"div",null,[(0,e.createTextVNode)("Interface "),(0,e.createVNode)(1,"b",null,u,0),(0,e.createTextVNode)(" is missing an export.")],4)]})})}},S=function(){return(0,e.createComponentVNode)(2,t.Window,{children:(0,e.createComponentVNode)(2,t.Window.Content,{scrollable:!0})})},N=function(){return(0,e.createComponentVNode)(2,t.Window,{title:"Loading",children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,a.Section,{fill:!0,children:(0,e.createComponentVNode)(2,a.Stack,{align:"center",fill:!0,justify:"center",vertical:!0,children:[(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,a.Icon,{color:"blue",name:"toolbox",spin:!0,size:4})}),(0,e.createComponentVNode)(2,a.Stack.Item,{children:"Please wait..."})]})})})})},h=r.getRoutedComponent=function(){function s(l){var u=l.getState(),i=(0,o.selectBackend)(u),c=i.suspended,d=i.config;if(c)return S;if(d.refreshing)return N;if(0)var p;for(var v=d==null?void 0:d.interface,f=[function(B){return"./"+B+".tsx"},function(B){return"./"+B+".jsx"},function(B){return"./"+B+"/index.tsx"},function(B){return"./"+B+"/index.jsx"}],C;!C&&f.length>0;){var b=f.shift(),g=b(v);try{C=V(g)}catch(B){if(B.code!=="MODULE_NOT_FOUND")throw B}}if(!C)return k("notFound",v);var y=C[v];return y||k("missingExport",v)}return s}()},27289:function(x,r,n){"use strict";r.__esModule=!0,r.configureStore=r.StoreProvider=void 0;var e=n(32289),a=n(62188),t=n(89402),o=n(58734),m=n(37655),V=n(66905),k=n(75671);function S(c,d){c.prototype=Object.create(d.prototype),c.prototype.constructor=c,N(c,d)}function N(c,d){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function p(v,f){return v.__proto__=f,v}return p}(),N(c,d)}/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var h=(0,V.createLogger)("store"),s=r.configureStore=function(){function c(d){d===void 0&&(d={});var p=d,v=p.sideEffects,f=v===void 0?!0:v,C=p.reducer,b=p.middleware,g=(0,k.flow)([(0,e.combineReducers)({debug:t.debugReducer,backend:a.backendReducer}),C]),y=f?[].concat((b==null?void 0:b.pre)||[],[m.assetMiddleware,a.backendMiddleware],(b==null?void 0:b.post)||[]):[],B=e.applyMiddleware.apply(void 0,y),L=(0,e.createStore)(g,B);return window.__store__=L,window.__augmentStack__=u(L),L}return c}(),l=function(d){return function(p){return function(v){var f=v.type;return h.debug("action",f==="update"||f==="backend/update"?{type:f}:v),p(v)}}},u=function(d){return function(p,v){var f,C;v=v||new Error(p.split("\n")[0]),v.stack=v.stack||p,h.log("FatalError:",v);var b=d.getState(),g=b==null||(f=b.backend)==null?void 0:f.config;return p+"\nUser Agent: "+navigator.userAgent+"\nState: "+JSON.stringify({ckey:g==null||(C=g.client)==null?void 0:C.ckey,interface:g==null?void 0:g.interface,window:g==null?void 0:g.window})}},i=r.StoreProvider=function(c){S(d,c);function d(){return c.apply(this,arguments)||this}var p=d.prototype;return p.getChildContext=function(){function v(){var f=this.props.store;return{store:f}}return v}(),p.render=function(){function v(){return this.props.children}return v}(),d}(o.Component)},51998:function(x,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(58734),a=n(11790);/**
|
|
* @file
|
|
* @copyright 2021 Aleksej Komarov
|
|
* @license MIT
|
|
*/var t=r.meta={title:"Blink",render:function(){function m(){return(0,e.createComponentVNode)(2,o)}return m}()},o=function(V,k){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.Blink,{children:"Blink"})})}},36146:function(x,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(58734),a=n(11790),t=n(25909);/**
|
|
* @file
|
|
* @copyright 2021 Aleksej Komarov
|
|
* @license MIT
|
|
*/var o=r.meta={title:"BlockQuote",render:function(){function V(){return(0,e.createComponentVNode)(2,m)}return V}()},m=function(k,S){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.BlockQuote,{children:(0,e.createComponentVNode)(2,t.BoxWithSampleText)})})}},14049:function(x,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(58734),a=n(11790);/**
|
|
* @file
|
|
* @copyright 2021 Aleksej Komarov
|
|
* @license MIT
|
|
*/var t=r.meta={title:"Box",render:function(){function m(){return(0,e.createComponentVNode)(2,o)}return m}()},o=function(V,k){return(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Box,{bold:!0,children:"bold"}),(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"italic"}),(0,e.createComponentVNode)(2,a.Box,{opacity:.5,children:"opacity 0.5"}),(0,e.createComponentVNode)(2,a.Box,{opacity:.25,children:"opacity 0.25"}),(0,e.createComponentVNode)(2,a.Box,{m:2,children:"m: 2"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"left",children:"left"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"center",children:"center"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"right",children:"right"})]})}},36682:function(x,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(58734),a=n(11790);/**
|
|
* @file
|
|
* @copyright 2021 Aleksej Komarov
|
|
* @license MIT
|
|
*/var t=r.meta={title:"Button",render:function(){function k(){return(0,e.createComponentVNode)(2,V)}return k}()},o=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey"],m=["good","average","bad","black","white"],V=function(S,N){return(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Box,{mb:1,children:[(0,e.createComponentVNode)(2,a.Button,{content:"Simple"}),(0,e.createComponentVNode)(2,a.Button,{selected:!0,content:"Selected"}),(0,e.createComponentVNode)(2,a.Button,{altSelected:!0,content:"Alt Selected"}),(0,e.createComponentVNode)(2,a.Button,{disabled:!0,content:"Disabled"}),(0,e.createComponentVNode)(2,a.Button,{color:"transparent",content:"Transparent"}),(0,e.createComponentVNode)(2,a.Button,{icon:"cog",content:"Icon"}),(0,e.createComponentVNode)(2,a.Button,{icon:"power-off"}),(0,e.createComponentVNode)(2,a.Button,{fluid:!0,content:"Fluid"}),(0,e.createComponentVNode)(2,a.Button,{my:1,lineHeight:2,minWidth:15,textAlign:"center",content:"With Box props"})]}),(0,e.createComponentVNode)(2,a.Box,{mb:1,children:[m.map(function(h){return(0,e.createComponentVNode)(2,a.Button,{color:h,content:h},h)}),(0,e.createVNode)(1,"br"),o.map(function(h){return(0,e.createComponentVNode)(2,a.Button,{color:h,content:h},h)}),(0,e.createVNode)(1,"br"),o.map(function(h){return(0,e.createComponentVNode)(2,a.Box,{inline:!0,mx:"7px",color:h,children:h},h)})]})]})}},55591:function(x,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(66905);/**
|
|
* @file
|
|
* @copyright 2021 Aleksej Komarov
|
|
* @license MIT
|
|
*/var m=r.meta={title:"ByondUi",render:function(){function k(){return(0,e.createComponentVNode)(2,V)}return k}()},V=function(S,N){var h=(0,a.useLocalState)(N,"byondUiEvalCode","Byond.winset('"+Byond.windowId+"', {\n 'is-visible': true,\n})"),s=h[0],l=h[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Button",children:(0,e.createComponentVNode)(2,t.ByondUi,{params:{type:"button",text:"Button"}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Make BYOND calls",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function u(){return setImmediate(function(){try{var i=new Function("return ("+s+")")();i&&i.then?(o.logger.log("Promise"),i.then(o.logger.log)):o.logger.log(i)}catch(c){o.logger.log(c)}})}return u}(),children:"Evaluate"}),children:(0,e.createComponentVNode)(2,t.Box,{as:"textarea",width:"100%",height:"10em",onChange:function(){function u(i){return l(i.target.value)}return u}(),children:s})})],4)}},73419:function(x,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(58734),a=n(11790),t=n(25909);/**
|
|
* @file
|
|
* @copyright 2021 Aleksej Komarov
|
|
* @license MIT
|
|
*/var o=r.meta={title:"Collapsible",render:function(){function V(){return(0,e.createComponentVNode)(2,m)}return V}()},m=function(k,S){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.Collapsible,{title:"Collapsible Demo",buttons:(0,e.createComponentVNode)(2,a.Button,{icon:"cog"}),children:(0,e.createComponentVNode)(2,t.BoxWithSampleText)})})}},25198:function(x,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(58734),a=n(62188),t=n(11790);/**
|
|
* @file
|
|
* @copyright 2021 Aleksej Komarov
|
|
* @license MIT
|
|
*/var o=r.meta={title:"Flex & Sections",render:function(){function V(){return(0,e.createComponentVNode)(2,m)}return V}()},m=function(k,S){var N=(0,a.useLocalState)(S,"fs_grow",1),h=N[0],s=N[1],l=(0,a.useLocalState)(S,"fs_direction","column"),u=l[0],i=l[1],c=(0,a.useLocalState)(S,"fs_fill",!0),d=c[0],p=c[1],v=(0,a.useLocalState)(S,"fs_title",!0),f=v[0],C=v[1];return(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:"column",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function b(){return i(u==="column"?"row":"column")}return b}(),children:'Flex direction="'+u+'"'}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function b(){return s(+!h)}return b}(),children:"Flex.Item grow={"+h+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function b(){return p(!d)}return b}(),children:"Section fill={"+String(d)+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,selected:f,onClick:function(){function b(){return C(!f)}return b}(),children:"Section title"})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:u,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mr:u==="row"&&1,mb:u==="column"&&1,grow:h,children:(0,e.createComponentVNode)(2,t.Section,{title:f&&"Section 1",fill:d,children:"Content"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:h,children:(0,e.createComponentVNode)(2,t.Section,{title:f&&"Section 2",fill:d,children:"Content"})})]})})]})}},52011:function(x,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(58734),a=n(62188),t=n(11790);/**
|
|
* @file
|
|
* @copyright 2021 Aleksej Komarov
|
|
* @license MIT
|
|
*/var o=r.meta={title:"Input",render:function(){function V(){return(0,e.createComponentVNode)(2,m)}return V}()},m=function(k,S){var N=(0,a.useLocalState)(S,"number",0),h=N[0],s=N[1],l=(0,a.useLocalState)(S,"text","Sample text"),u=l[0],i=l[1];return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onChange)",children:(0,e.createComponentVNode)(2,t.Input,{value:u,onChange:function(){function c(d,p){return i(p)}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onInput)",children:(0,e.createComponentVNode)(2,t.Input,{value:u,onInput:function(){function c(d,p){return i(p)}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onChange)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:h,minValue:-100,maxValue:100,onChange:function(){function c(d,p){return s(p)}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onDrag)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:h,minValue:-100,maxValue:100,onDrag:function(){function c(d,p){return s(p)}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slider (onDrag)",children:(0,e.createComponentVNode)(2,t.Slider,{step:1,stepPixelSize:5,value:h,minValue:-100,maxValue:100,onDrag:function(){function c(d,p){return s(p)}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Knob (onDrag)",children:[(0,e.createComponentVNode)(2,t.Knob,{inline:!0,size:1,step:1,stepPixelSize:2,value:h,minValue:-100,maxValue:100,onDrag:function(){function c(d,p){return s(p)}return c}()}),(0,e.createComponentVNode)(2,t.Knob,{ml:1,inline:!0,bipolar:!0,size:1,step:1,stepPixelSize:2,value:h,minValue:-100,maxValue:100,onDrag:function(){function c(d,p){return s(p)}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rotating Icon",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:(0,e.createComponentVNode)(2,t.DraggableControl,{value:h,minValue:-100,maxValue:100,dragMatrix:[0,-1],step:1,stepPixelSize:5,onDrag:function(){function c(d,p){return s(p)}return c}(),children:function(){function c(d){return(0,e.createComponentVNode)(2,t.Box,{onMouseDown:d.handleDragStart,children:[(0,e.createComponentVNode)(2,t.Icon,{size:4,color:"yellow",name:"times",rotation:d.displayValue*4}),d.inputElement]})}return c}()})})})]})})}},15325:function(x,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(58734),a=n(11790);/**
|
|
* @file
|
|
* @copyright 2021 Aleksej Komarov
|
|
* @license MIT
|
|
*/var t=r.meta={title:"LabeledList",render:function(){function m(){return(0,e.createComponentVNode)(2,o)}return m}()},o=function(V,k){return(0,e.createFragment)([(0,e.createComponentVNode)(2,a.LabeledList,{children:[(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Label 1",children:"Entry 1"}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:(0,e.createComponentVNode)(2,a.Button,{children:"Nodes as labels:"}),children:"Entry 2"}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{labelColor:"green",label:"labelColor=green",children:"Entry 3"}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{color:"green",label:"color=green",children:"Entry 4"}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{buttons:(0,e.createComponentVNode)(2,a.Button,{children:"Test"}),label:"Buttons prop",children:"Entry 5"}),(0,e.createComponentVNode)(2,a.LabeledList.Divider),(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"LabeledList.Divider right above us",children:"Entry 6"}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{labelWrap:!0,label:"Very very very very very very very very very very very very very long label with labelWrap",children:"Entry 7"}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{labelWrap:!0,verticalAlign:"middle",label:"Very very very very very very very very very very very very very long label with labelWrap and verticalAlign",children:"Entry 8"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,a.LabeledList,{children:[(0,e.createComponentVNode)(2,a.LabeledList.Item,{labelWrap:!0,label:"List with all labelWrap=true",children:"Entry 1"}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{labelWrap:!0,label:"List with all labelWrap=true",children:"Entry 2"}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{labelWrap:!0,label:"List with all labelWrap=true",children:"Entry 3"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,a.LabeledList,{children:(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Very very very very very very very very very very very very very long label without labelWrap",children:"Entry 1"})})],4)}},75717:function(x,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(58734),a=n(11790),t=r.meta={title:"Popper",render:function(){function m(){return(0,e.createComponentVNode)(2,o)}return m}()},o=function(){return(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Popper,{popperContent:(0,e.createComponentVNode)(2,a.Box,{style:{background:"white",border:"2px solid blue"},children:"Loogatme!"}),options:{placement:"bottom"},children:(0,e.createComponentVNode)(2,a.Box,{style:{border:"5px solid white",height:"300px",width:"200px"}})}),(0,e.createComponentVNode)(2,a.Popper,{popperContent:(0,e.createComponentVNode)(2,a.Box,{style:{background:"white",border:"2px solid blue"},children:"I am on the right!"}),options:{placement:"right"},children:(0,e.createComponentVNode)(2,a.Box,{style:{border:"5px solid white",height:"500px",width:"100px"}})})],4)}},78125:function(x,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(58734),a=n(62188),t=n(11790);/**
|
|
* @file
|
|
* @copyright 2021 Aleksej Komarov
|
|
* @license MIT
|
|
*/var o=r.meta={title:"ProgressBar",render:function(){function V(){return(0,e.createComponentVNode)(2,m)}return V}()},m=function(k,S){var N=(0,a.useLocalState)(S,"progress",.5),h=N[0],s=N[1],l=(0,a.useLocalState)(S,"color",""),u=l[0],i=l[1],c=u?{color:u}:{ranges:{good:[.5,1/0],bad:[-1/0,.1],average:[0,.5]}};return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.ProgressBar,Object.assign({},c,{minValue:-1,maxValue:1,value:h,children:["Value: ",Number(h).toFixed(1)]}))),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{mt:"2em",children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Adjust value",children:[(0,e.createComponentVNode)(2,t.Button,{content:"-0.1",onClick:function(){function d(){return s(h-.1)}return d}()}),(0,e.createComponentVNode)(2,t.Button,{content:"+0.1",onClick:function(){function d(){return s(h+.1)}return d}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Override color",children:(0,e.createComponentVNode)(2,t.Input,{value:u,onChange:function(){function d(p,v){return i(v)}return d}()})})]})})]})}},46488:function(x,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(58734),a=n(11790);/**
|
|
* @file
|
|
* @copyright 2021 Aleksej Komarov
|
|
* @license MIT
|
|
*/var t=r.meta={title:"Stack",render:function(){function k(){return(0,e.createComponentVNode)(2,V)}return k}()},o=function(){return(0,e.createComponentVNode)(2,a.Box,{inline:!0,width:1,height:1,children:"A"})},m=function(){return(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,o)}),(0,e.createComponentVNode)(2,a.Stack.Divider),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,o)})],4)},V=function(S,N){return(0,e.createComponentVNode)(2,a.Section,{fill:!0,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,className:"debug-layout",children:[(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,m)]})}),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,m)]})})]})})}},24613:function(x,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(58734),a=n(22800),t=n(11790),o=n(43820);/**
|
|
* @file
|
|
* @copyright 2021 Aleksej Komarov
|
|
* @license MIT
|
|
*/var m=r.meta={title:"Storage",render:function(){function k(){return(0,e.createComponentVNode)(2,V)}return k}()},V=function(S,N){return window.localStorage?(0,e.createComponentVNode)(2,t.Section,{title:"Local Storage",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"recycle",onClick:function(){function h(){localStorage.clear(),a.storage.clear()}return h}(),children:"Clear"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Keys in use",children:localStorage.length}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remaining space",children:(0,o.formatSiUnit)(localStorage.remainingSpace,0,"B")})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Local storage is not available."})}},58725:function(x,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(58734),a=n(62188),t=n(11790);/**
|
|
* @file
|
|
* @copyright 2021 Aleksej Komarov
|
|
* @license MIT
|
|
*/var o=r.meta={title:"Tabs",render:function(){function S(){return(0,e.createComponentVNode)(2,V)}return S}()},m=["Tab #1","Tab #2","Tab #3","Tab #4"],V=function(N,h){var s=(0,a.useLocalState)(h,"tabProps",{}),l=s[0],u=s[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"vertical",checked:l.vertical,onClick:function(){function i(){return u(Object.assign({},l,{vertical:!l.vertical}))}return i}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"leftSlot",checked:l.leftSlot,onClick:function(){function i(){return u(Object.assign({},l,{leftSlot:!l.leftSlot}))}return i}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"rightSlot",checked:l.rightSlot,onClick:function(){function i(){return u(Object.assign({},l,{rightSlot:!l.rightSlot}))}return i}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"icon",checked:l.icon,onClick:function(){function i(){return u(Object.assign({},l,{icon:!l.icon}))}return i}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"fluid",checked:l.fluid,onClick:function(){function i(){return u(Object.assign({},l,{fluid:!l.fluid}))}return i}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"centered",checked:l.centered,onClick:function(){function i(){return u(Object.assign({},l,{centered:!l.centered}))}return i}()})]}),(0,e.createComponentVNode)(2,t.Section,{fitted:!0,children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.Section,{title:"Normal section",children:[(0,e.createComponentVNode)(2,k),"Some text"]}),(0,e.createComponentVNode)(2,t.Section,{children:"Section-less tabs appear the same as tabs in a fitted section:"}),(0,e.createComponentVNode)(2,k)],4)},k=function(N,h){var s=(0,a.useLocalState)(h,"tabIndex",0),l=s[0],u=s[1],i=(0,a.useLocalState)(h,"tabProps",{}),c=i[0];return(0,e.createComponentVNode)(2,t.Tabs,{vertical:c.vertical,fluid:c.fluid,textAlign:c.centered&&"center",children:m.map(function(d,p){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:p===l,icon:c.icon&&"info-circle",leftSlot:c.leftSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),rightSlot:c.rightSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),onClick:function(){function v(){return u(p)}return v}(),children:d},p)})})}},29772:function(x,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(58734),a=n(62188),t=n(11790);/**
|
|
* @file
|
|
* @copyright 2021 Aleksej Komarov
|
|
* @license MIT
|
|
*/var o=r.meta={title:"Themes",render:function(){function V(){return(0,e.createComponentVNode)(2,m)}return V}()},m=function(k,S){var N=(0,a.useLocalState)(S,"kitchenSinkTheme"),h=N[0],s=N[1];return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Use theme",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"theme_name",value:h,onInput:function(){function l(u,i){return s(i)}return l}()})})})})}},83656:function(x,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(58734),a=n(11790);/**
|
|
* @file
|
|
* @copyright 2021 Aleksej Komarov
|
|
* @license MIT
|
|
*/var t=r.meta={title:"Tooltip",render:function(){function m(){return(0,e.createComponentVNode)(2,o)}return m}()},o=function(){var V=["top","left","right","bottom","bottom-start","bottom-end"];return(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Box,{children:[(0,e.createComponentVNode)(2,a.Tooltip,{content:"Tooltip text.",children:(0,e.createComponentVNode)(2,a.Box,{inline:!0,position:"relative",mr:1,children:"Box (hover me)."})}),(0,e.createComponentVNode)(2,a.Button,{tooltip:"Tooltip text.",content:"Button"})]}),(0,e.createComponentVNode)(2,a.Box,{mt:1,children:V.map(function(k){return(0,e.createComponentVNode)(2,a.Button,{color:"transparent",tooltip:"Tooltip text.",tooltipPosition:k,content:k},k)})})]})}},25909:function(x,r,n){"use strict";r.__esModule=!0,r.BoxWithSampleText=void 0;var e=n(58734),a=n(11790);/**
|
|
* @file
|
|
* @copyright 2021 Aleksej Komarov
|
|
* @license MIT
|
|
*/var t=r.BoxWithSampleText=function(){function o(m){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({},m,{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}()},30539:function(){},26867:function(){},71124:function(){},38390:function(){},10497:function(){},98501:function(){},38163:function(){},9904:function(){},44095:function(){},75205:function(){},17379:function(){},32093:function(){},43681:function(){},67484:function(x,r,n){var e={"./pda_atmos_scan.jsx":49093,"./pda_janitor.jsx":66382,"./pda_main_menu.jsx":68395,"./pda_manifest.jsx":89088,"./pda_medical.jsx":39968,"./pda_messenger.jsx":13861,"./pda_news.jsx":56042,"./pda_notekeeper.jsx":47192,"./pda_power.jsx":60062,"./pda_security.jsx":97515,"./pda_signaller.jsx":45516,"./pda_status_display.jsx":91120,"./pda_supply.jsx":33871};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,x.exports=a,a.id=67484},573:function(x,r,n){var e={"./AICard":92853,"./AICard.jsx":92853,"./APC":68567,"./APC.jsx":68567,"./AccountsTerminal":43227,"./AccountsTerminal.jsx":43227,"./AdminShuttleController":75598,"./AdminShuttleController.tsx":75598,"./AgentCard":36370,"./AgentCard.tsx":36370,"./AiAirlock":53855,"./AiAirlock.jsx":53855,"./AiRestorer":16543,"./AiRestorer.jsx":16543,"./AiSupermatter":40083,"./AiSupermatter.jsx":40083,"./AirAlarm":53314,"./AirAlarm.jsx":53314,"./AlertModal":85156,"./AlertModal.tsx":85156,"./AlgaeFarm":83747,"./AlgaeFarm.jsx":83747,"./AppearanceChanger":56258,"./AppearanceChanger.jsx":56258,"./ArcadeBattle":95587,"./ArcadeBattle.jsx":95587,"./AreaScrubberControl":56127,"./AreaScrubberControl.jsx":56127,"./AssemblyInfrared":59958,"./AssemblyInfrared.tsx":59958,"./AssemblyProx":43454,"./AssemblyProx.jsx":43454,"./AssemblyTimer":99152,"./AssemblyTimer.jsx":99152,"./AtmosAlertConsole":2606,"./AtmosAlertConsole.jsx":2606,"./AtmosControl":49907,"./AtmosControl.jsx":49907,"./AtmosFilter":15555,"./AtmosFilter.jsx":15555,"./AtmosMixer":41194,"./AtmosMixer.jsx":41194,"./Autolathe":68162,"./Autolathe.jsx":68162,"./Batteryrack":44534,"./Batteryrack.jsx":44534,"./BeaconLocator":70242,"./BeaconLocator.jsx":70242,"./Biogenerator":76131,"./Biogenerator.jsx":76131,"./BodyDesigner":66610,"./BodyDesigner.jsx":66610,"./BodyScanner":26393,"./BodyScanner.jsx":26393,"./BombTester":12043,"./BombTester.jsx":12043,"./BotanyEditor":54180,"./BotanyEditor.jsx":54180,"./BotanyIsolator":89341,"./BotanyIsolator.jsx":89341,"./BrigTimer":42903,"./BrigTimer.jsx":42903,"./CameraConsole":48902,"./CameraConsole.jsx":48902,"./Canister":63295,"./Canister.jsx":63295,"./Canvas":45864,"./Canvas.jsx":45864,"./CasinoPrizeDispenser":61068,"./CasinoPrizeDispenser.jsx":61068,"./Changelog":15403,"./Changelog.jsx":15403,"./CharacterDirectory":24326,"./CharacterDirectory.jsx":24326,"./CheckboxInput":71819,"./CheckboxInput.tsx":71819,"./ChemDispenser":11784,"./ChemDispenser.jsx":11784,"./ChemMaster":61950,"./ChemMaster.jsx":61950,"./ChemSynthesizer":85053,"./ChemSynthesizer.jsx":85053,"./ClawMachine":38389,"./ClawMachine.jsx":38389,"./Cleanbot":44260,"./Cleanbot.jsx":44260,"./CloningConsole":18170,"./CloningConsole.jsx":18170,"./ColorMate":7981,"./ColorMate.jsx":7981,"./CommunicationsConsole":29340,"./CommunicationsConsole.jsx":29340,"./Communicator":52574,"./Communicator.tsx":52574,"./ComputerFabricator":84429,"./ComputerFabricator.jsx":84429,"./CookingAppliance":68155,"./CookingAppliance.jsx":68155,"./CrewManifest":68285,"./CrewManifest.tsx":68285,"./CrewMonitor":59694,"./CrewMonitor.jsx":59694,"./Cryo":1123,"./Cryo.jsx":1123,"./CryoStorage":96886,"./CryoStorage.jsx":96886,"./CryoStorageVr":65185,"./CryoStorageVr.jsx":65185,"./DNAForensics":12513,"./DNAForensics.jsx":12513,"./DNAModifier":21576,"./DNAModifier.jsx":21576,"./DestinationTagger":63995,"./DestinationTagger.jsx":63995,"./DiseaseSplicer":64750,"./DiseaseSplicer.jsx":64750,"./DishIncubator":3153,"./DishIncubator.jsx":3153,"./DisposalBin":82936,"./DisposalBin.tsx":82936,"./DroneConsole":93263,"./DroneConsole.jsx":93263,"./EmbeddedController":64032,"./EmbeddedController.jsx":64032,"./EntityNarrate":23424,"./EntityNarrate.tsx":23424,"./ExonetNode":42014,"./ExonetNode.tsx":42014,"./ExosuitFabricator":88662,"./ExosuitFabricator.jsx":88662,"./Farmbot":61697,"./Farmbot.jsx":61697,"./Fax":27319,"./Fax.jsx":27319,"./FilingCabinet":51193,"./FilingCabinet.jsx":51193,"./Floorbot":19860,"./Floorbot.jsx":19860,"./GasPump":19592,"./GasPump.jsx":19592,"./GasTemperatureSystem":76749,"./GasTemperatureSystem.jsx":76749,"./GeneralAtmoControl":59646,"./GeneralAtmoControl.jsx":59646,"./GeneralRecords":72345,"./GeneralRecords.jsx":72345,"./Gps":27332,"./Gps.jsx":27332,"./GravityGenerator":52613,"./GravityGenerator.jsx":52613,"./GuestPass":462,"./GuestPass.jsx":462,"./GyrotronControl":98915,"./GyrotronControl.tsx":98915,"./Holodeck":14289,"./Holodeck.jsx":14289,"./ICAssembly":46065,"./ICAssembly.jsx":46065,"./ICCircuit":95599,"./ICCircuit.jsx":95599,"./ICDetailer":82723,"./ICDetailer.jsx":82723,"./ICPrinter":15875,"./ICPrinter.jsx":15875,"./IDCard":89724,"./IDCard.jsx":89724,"./IdentificationComputer":85418,"./IdentificationComputer.jsx":85418,"./InventoryPanel":33835,"./InventoryPanel.tsx":33835,"./InventoryPanelHuman":77422,"./InventoryPanelHuman.jsx":77422,"./IsolationCentrifuge":39749,"./IsolationCentrifuge.jsx":39749,"./JanitorCart":93432,"./JanitorCart.jsx":93432,"./Jukebox":1644,"./Jukebox.jsx":1644,"./LawManager":11877,"./LawManager.jsx":11877,"./ListInputModal":94648,"./ListInputModal.tsx":94648,"./LookingGlass":74639,"./LookingGlass.jsx":74639,"./MechaControlConsole":1365,"./MechaControlConsole.jsx":1365,"./Medbot":69909,"./Medbot.jsx":69909,"./MedicalRecords":82854,"./MedicalRecords.jsx":82854,"./MessageMonitor":38223,"./MessageMonitor.jsx":38223,"./Microwave":31546,"./Microwave.jsx":31546,"./MiningOreProcessingConsole":64193,"./MiningOreProcessingConsole.jsx":64193,"./MiningStackingConsole":94702,"./MiningStackingConsole.jsx":94702,"./MiningVendor":677,"./MiningVendor.jsx":677,"./MobSpawner":25006,"./MobSpawner.tsx":25006,"./MuleBot":98789,"./MuleBot.tsx":98789,"./NIF":50543,"./NIF.jsx":50543,"./NTNetRelay":97540,"./NTNetRelay.jsx":97540,"./Newscaster":4024,"./Newscaster.jsx":4024,"./NoticeBoard":83945,"./NoticeBoard.tsx":83945,"./NtosAccessDecrypter":45835,"./NtosAccessDecrypter.tsx":45835,"./NtosArcade":32974,"./NtosArcade.jsx":32974,"./NtosAtmosControl":95982,"./NtosAtmosControl.tsx":95982,"./NtosCameraConsole":70824,"./NtosCameraConsole.jsx":70824,"./NtosCommunicationsConsole":30536,"./NtosCommunicationsConsole.tsx":30536,"./NtosConfiguration":94821,"./NtosConfiguration.jsx":94821,"./NtosCrewManifest":56722,"./NtosCrewManifest.tsx":56722,"./NtosCrewMonitor":9562,"./NtosCrewMonitor.tsx":9562,"./NtosDigitalWarrant":20716,"./NtosDigitalWarrant.jsx":20716,"./NtosEmailAdministration":14559,"./NtosEmailAdministration.jsx":14559,"./NtosEmailClient":42185,"./NtosEmailClient.jsx":42185,"./NtosFileManager":96365,"./NtosFileManager.jsx":96365,"./NtosIdentificationComputer":39032,"./NtosIdentificationComputer.tsx":39032,"./NtosMain":41448,"./NtosMain.jsx":41448,"./NtosNetChat":28774,"./NtosNetChat.jsx":28774,"./NtosNetDos":73924,"./NtosNetDos.jsx":73924,"./NtosNetDownloader":72973,"./NtosNetDownloader.jsx":72973,"./NtosNetMonitor":96255,"./NtosNetMonitor.jsx":96255,"./NtosNetTransfer":47198,"./NtosNetTransfer.jsx":47198,"./NtosNewsBrowser":75627,"./NtosNewsBrowser.jsx":75627,"./NtosOvermapNavigation":84804,"./NtosOvermapNavigation.tsx":84804,"./NtosPowerMonitor":91142,"./NtosPowerMonitor.tsx":91142,"./NtosRCON":95538,"./NtosRCON.tsx":95538,"./NtosRevelation":23754,"./NtosRevelation.tsx":23754,"./NtosShutoffMonitor":1446,"./NtosShutoffMonitor.tsx":1446,"./NtosStationAlertConsole":73068,"./NtosStationAlertConsole.tsx":73068,"./NtosSupermatterMonitor":2329,"./NtosSupermatterMonitor.tsx":2329,"./NtosUAV":35452,"./NtosUAV.jsx":35452,"./NtosWordProcessor":79101,"./NtosWordProcessor.jsx":79101,"./NumberInputModal":90132,"./NumberInputModal.tsx":90132,"./OmniFilter":84035,"./OmniFilter.tsx":84035,"./OmniMixer":6238,"./OmniMixer.tsx":6238,"./OperatingComputer":46476,"./OperatingComputer.jsx":46476,"./OvermapDisperser":96008,"./OvermapDisperser.jsx":96008,"./OvermapEngines":54030,"./OvermapEngines.jsx":54030,"./OvermapFull":3774,"./OvermapFull.tsx":3774,"./OvermapHelm":39526,"./OvermapHelm.jsx":39526,"./OvermapNavigation":85513,"./OvermapNavigation.tsx":85513,"./OvermapShieldGenerator":28204,"./OvermapShieldGenerator.jsx":28204,"./OvermapShipSensors":35780,"./OvermapShipSensors.jsx":35780,"./ParticleAccelerator":22702,"./ParticleAccelerator.tsx":22702,"./PartsLathe":65400,"./PartsLathe.jsx":65400,"./PathogenicIsolator":27252,"./PathogenicIsolator.jsx":27252,"./Pda":32183,"./Pda.jsx":32183,"./PersonalCrafting":90394,"./PersonalCrafting.jsx":90394,"./PetrificationInterface":66098,"./PetrificationInterface.jsx":66098,"./Photocopier":82281,"./Photocopier.jsx":82281,"./PipeDispenser":84092,"./PipeDispenser.jsx":84092,"./PlantAnalyzer":48646,"./PlantAnalyzer.jsx":48646,"./PlayerNotes":15878,"./PlayerNotes.tsx":15878,"./PlayerNotesInfo":7064,"./PlayerNotesInfo.tsx":7064,"./PointDefenseControl":18346,"./PointDefenseControl.tsx":18346,"./PortableGenerator":2405,"./PortableGenerator.jsx":2405,"./PortablePump":80387,"./PortablePump.jsx":80387,"./PortableScrubber":47750,"./PortableScrubber.tsx":47750,"./PortableTurret":45143,"./PortableTurret.jsx":45143,"./PowerMonitor":8694,"./PowerMonitor.jsx":8694,"./PrecisionEditor":70955,"./PrecisionEditor.jsx":70955,"./PressureRegulator":22217,"./PressureRegulator.jsx":22217,"./PrisonerManagement":97749,"./PrisonerManagement.jsx":97749,"./RCON":23613,"./RCON.jsx":23613,"./RIGSuit":18395,"./RIGSuit.jsx":18395,"./Radio":82402,"./Radio.jsx":82402,"./RapidPipeDispenser":25114,"./RapidPipeDispenser.jsx":25114,"./RequestConsole":83942,"./RequestConsole.jsx":83942,"./ResearchConsole":69701,"./ResearchConsole.jsx":69701,"./ResearchServerController":6743,"./ResearchServerController.jsx":6743,"./ResleevingConsole":1319,"./ResleevingConsole.jsx":1319,"./ResleevingPod":7426,"./ResleevingPod.jsx":7426,"./RoboticsControlConsole":21429,"./RoboticsControlConsole.jsx":21429,"./RogueZones":30941,"./RogueZones.jsx":30941,"./RustCoreMonitor":82713,"./RustCoreMonitor.tsx":82713,"./RustFuelControl":27743,"./RustFuelControl.tsx":27743,"./Secbot":75614,"./Secbot.jsx":75614,"./SecureSafe":69919,"./SecureSafe.jsx":69919,"./SecurityRecords":92983,"./SecurityRecords.jsx":92983,"./SeedStorage":24217,"./SeedStorage.jsx":24217,"./ShieldCapacitor":37707,"./ShieldCapacitor.jsx":37707,"./ShieldGenerator":92794,"./ShieldGenerator.jsx":92794,"./ShutoffMonitor":56780,"./ShutoffMonitor.jsx":56780,"./ShuttleControl":7309,"./ShuttleControl.jsx":7309,"./Signaler":76289,"./Signaler.tsx":76289,"./Sleeper":78491,"./Sleeper.jsx":78491,"./SmartVend":47296,"./SmartVend.jsx":47296,"./Smes":11524,"./Smes.jsx":11524,"./SolarControl":48027,"./SolarControl.jsx":48027,"./SpaceHeater":99621,"./SpaceHeater.tsx":99621,"./Stack":80498,"./Stack.jsx":80498,"./StarcasterCh":66528,"./StarcasterCh.jsx":66528,"./StationAlertConsole":93840,"./StationAlertConsole.jsx":93840,"./StationBlueprints":50976,"./StationBlueprints.jsx":50976,"./StockExchange":31357,"./StockExchange.jsx":31357,"./SuitCycler":44261,"./SuitCycler.jsx":44261,"./SuitStorageUnit":58954,"./SuitStorageUnit.jsx":58954,"./SupermatterMonitor":7287,"./SupermatterMonitor.jsx":7287,"./SupplyConsole":68164,"./SupplyConsole.jsx":68164,"./TEGenerator":50698,"./TEGenerator.jsx":50698,"./Tank":29023,"./Tank.jsx":29023,"./TankDispenser":91299,"./TankDispenser.tsx":91299,"./TelecommsLogBrowser":32235,"./TelecommsLogBrowser.jsx":32235,"./TelecommsMachineBrowser":81443,"./TelecommsMachineBrowser.jsx":81443,"./TelecommsMultitoolMenu":63443,"./TelecommsMultitoolMenu.jsx":63443,"./Teleporter":73616,"./Teleporter.tsx":73616,"./TelesciConsole":60726,"./TelesciConsole.jsx":60726,"./TextInputModal":8529,"./TextInputModal.tsx":8529,"./TguiFeedback":70194,"./TguiFeedback.tsx":70194,"./Ticket":69344,"./Ticket.tsx":69344,"./TicketChat":5903,"./TicketChat.tsx":5903,"./TicketsPanel":680,"./TicketsPanel.tsx":680,"./TimeClock":45336,"./TimeClock.jsx":45336,"./TraitTutorial":59799,"./TraitTutorial.tsx":59799,"./TransferValve":18871,"./TransferValve.tsx":18871,"./TurbineControl":57427,"./TurbineControl.jsx":57427,"./Turbolift":68710,"./Turbolift.jsx":68710,"./Uplink":3790,"./Uplink.jsx":3790,"./Vending":33954,"./Vending.jsx":33954,"./VolumePanel":98115,"./VolumePanel.tsx":98115,"./VorePanel":3439,"./VorePanel.jsx":3439,"./VorePanelExport":75105,"./VorePanelExport.tsx":75105,"./Wires":73623,"./Wires.jsx":73623,"./XenoarchArtifactAnalyzer":6393,"./XenoarchArtifactAnalyzer.tsx":6393,"./XenoarchArtifactHarvester":22883,"./XenoarchArtifactHarvester.jsx":22883,"./XenoarchDepthScanner":15934,"./XenoarchDepthScanner.tsx":15934,"./XenoarchHandheldPowerUtilizer":80665,"./XenoarchHandheldPowerUtilizer.tsx":80665,"./XenoarchReplicator":14218,"./XenoarchReplicator.tsx":14218,"./XenoarchReplicator_clothing_vr":3718,"./XenoarchReplicator_clothing_vr.jsx":3718,"./XenoarchReplicator_voremob_vr":30394,"./XenoarchReplicator_voremob_vr.jsx":30394,"./XenoarchSpectrometer":81306,"./XenoarchSpectrometer.jsx":81306,"./XenoarchSuspension":9982,"./XenoarchSuspension.tsx":9982,"./common/AtmosControls":92237,"./common/AtmosControls.jsx":92237,"./common/BeakerContents":72679,"./common/BeakerContents.jsx":72679,"./common/ComplexModal":48388,"./common/ComplexModal.jsx":48388,"./common/FullscreenNotice":84288,"./common/FullscreenNotice.jsx":84288,"./common/InputButtons":57370,"./common/InputButtons.tsx":57370,"./common/InterfaceLockNoticeBox":45902,"./common/InterfaceLockNoticeBox.jsx":45902,"./common/Loader":89226,"./common/Loader.tsx":89226,"./common/LoginInfo":39813,"./common/LoginInfo.jsx":39813,"./common/LoginScreen":50947,"./common/LoginScreen.jsx":50947,"./common/Mining":23415,"./common/Mining.jsx":23415,"./common/Overmap":51608,"./common/Overmap.jsx":51608,"./common/PortableAtmos":25606,"./common/PortableAtmos.jsx":25606,"./common/RankIcon":70237,"./common/RankIcon.jsx":70237,"./common/TemporaryNotice":45246,"./common/TemporaryNotice.jsx":45246,"./pAIAtmos":85845,"./pAIAtmos.jsx":85845,"./pAIDirectives":93742,"./pAIDirectives.tsx":93742,"./pAIDoorjack":91650,"./pAIDoorjack.jsx":91650,"./pAIInterface":53333,"./pAIInterface.tsx":53333,"./pAIMedrecords":23798,"./pAIMedrecords.jsx":23798,"./pAISecrecords":18457,"./pAISecrecords.jsx":18457,"./pda/pda_atmos_scan":49093,"./pda/pda_atmos_scan.jsx":49093,"./pda/pda_janitor":66382,"./pda/pda_janitor.jsx":66382,"./pda/pda_main_menu":68395,"./pda/pda_main_menu.jsx":68395,"./pda/pda_manifest":89088,"./pda/pda_manifest.jsx":89088,"./pda/pda_medical":39968,"./pda/pda_medical.jsx":39968,"./pda/pda_messenger":13861,"./pda/pda_messenger.jsx":13861,"./pda/pda_news":56042,"./pda/pda_news.jsx":56042,"./pda/pda_notekeeper":47192,"./pda/pda_notekeeper.jsx":47192,"./pda/pda_power":60062,"./pda/pda_power.jsx":60062,"./pda/pda_security":97515,"./pda/pda_security.jsx":97515,"./pda/pda_signaller":45516,"./pda/pda_signaller.jsx":45516,"./pda/pda_status_display":91120,"./pda/pda_status_display.jsx":91120,"./pda/pda_supply":33871,"./pda/pda_supply.jsx":33871};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,x.exports=a,a.id=573},27772:function(x,r,n){var e={"./Blink.stories.js":51998,"./BlockQuote.stories.js":36146,"./Box.stories.js":14049,"./Button.stories.js":36682,"./ByondUi.stories.js":55591,"./Collapsible.stories.js":73419,"./Flex.stories.js":25198,"./Input.stories.js":52011,"./LabaledList.stories.js":15325,"./Popper.stories.js":75717,"./ProgressBar.stories.js":78125,"./Stack.stories.js":46488,"./Storage.stories.js":24613,"./Tabs.stories.js":58725,"./Themes.stories.js":29772,"./Tooltip.stories.js":83656};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,x.exports=a,a.id=27772},67194:function(x,r,n){"use strict";var e=n(71839),a=n(74991),t=TypeError;x.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a function")}},10032:function(x,r,n){"use strict";var e=n(3897),a=n(74991),t=TypeError;x.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a constructor")}},74106:function(x,r,n){"use strict";var e=n(71839),a=String,t=TypeError;x.exports=function(o){if(typeof o=="object"||e(o))return o;throw new t("Can't set "+a(o)+" as a prototype")}},29260:function(x,r,n){"use strict";var e=n(98767),a=n(90552),t=n(12305).f,o=e("unscopables"),m=Array.prototype;m[o]===void 0&&t(m,o,{configurable:!0,value:a(null)}),x.exports=function(V){m[o][V]=!0}},23161:function(x,r,n){"use strict";var e=n(77524).charAt;x.exports=function(a,t,o){return t+(o?e(a,t).length:1)}},88538:function(x,r,n){"use strict";var e=n(32284),a=TypeError;x.exports=function(t,o){if(e(o,t))return t;throw new a("Incorrect invocation")}},74199:function(x,r,n){"use strict";var e=n(81216),a=String,t=TypeError;x.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not an object")}},10806:function(x){"use strict";x.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},65021:function(x,r,n){"use strict";var e=n(6232);x.exports=e(function(){if(typeof ArrayBuffer=="function"){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},32072:function(x,r,n){"use strict";var e=n(10806),a=n(52153),t=n(18937),o=n(71839),m=n(81216),V=n(70879),k=n(76176),S=n(74991),N=n(37400),h=n(59909),s=n(66074),l=n(32284),u=n(6833),i=n(70652),c=n(98767),d=n(20228),p=n(13358),v=p.enforce,f=p.get,C=t.Int8Array,b=C&&C.prototype,g=t.Uint8ClampedArray,y=g&&g.prototype,B=C&&u(C),L=b&&u(b),I=Object.prototype,w=t.TypeError,T=c("toStringTag"),M=d("TYPED_ARRAY_TAG"),A="TypedArrayConstructor",R=e&&!!i&&k(t.opera)!=="Opera",O=!1,_,P,D,z={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},U={BigInt64Array:8,BigUint64Array:8},W=function(){function ae(le){if(!m(le))return!1;var he=k(le);return he==="DataView"||V(z,he)||V(U,he)}return ae}(),K=function ae(le){var he=u(le);if(m(he)){var me=f(he);return me&&V(me,A)?me[A]:ae(he)}},H=function(le){if(!m(le))return!1;var he=k(le);return V(z,he)||V(U,he)},Y=function(le){if(H(le))return le;throw new w("Target is not a typed array")},J=function(le){if(o(le)&&(!i||l(B,le)))return le;throw new w(S(le)+" is not a typed array constructor")},q=function(le,he,me,Be){if(a){if(me)for(var ce in z){var te=t[ce];if(te&&V(te.prototype,le))try{delete te.prototype[le]}catch(ee){try{te.prototype[le]=he}catch(ie){}}}(!L[le]||me)&&h(L,le,me?he:R&&b[le]||he,Be)}},oe=function(le,he,me){var Be,ce;if(a){if(i){if(me){for(Be in z)if(ce=t[Be],ce&&V(ce,le))try{delete ce[le]}catch(te){}}if(!B[le]||me)try{return h(B,le,me?he:R&&B[le]||he)}catch(te){}else return}for(Be in z)ce=t[Be],ce&&(!ce[le]||me)&&h(ce,le,he)}};for(_ in z)P=t[_],D=P&&P.prototype,D?v(D)[A]=P:R=!1;for(_ in U)P=t[_],D=P&&P.prototype,D&&(v(D)[A]=P);if((!R||!o(B)||B===Function.prototype)&&(B=function(){function ae(){throw new w("Incorrect invocation")}return ae}(),R))for(_ in z)t[_]&&i(t[_],B);if((!R||!L||L===I)&&(L=B.prototype,R))for(_ in z)t[_]&&i(t[_].prototype,L);if(R&&u(y)!==L&&i(y,L),a&&!V(L,T)){O=!0,s(L,T,{configurable:!0,get:function(){function ae(){return m(this)?this[M]:void 0}return ae}()});for(_ in z)t[_]&&N(t[_],M,_)}x.exports={NATIVE_ARRAY_BUFFER_VIEWS:R,TYPED_ARRAY_TAG:O&&M,aTypedArray:Y,aTypedArrayConstructor:J,exportTypedArrayMethod:q,exportTypedArrayStaticMethod:oe,getTypedArrayConstructor:K,isView:W,isTypedArray:H,TypedArray:B,TypedArrayPrototype:L}},79248:function(x,r,n){"use strict";var e=n(18937),a=n(28772),t=n(52153),o=n(10806),m=n(8333),V=n(37400),k=n(66074),S=n(62425),N=n(6232),h=n(88538),s=n(8624),l=n(25657),u=n(74809),i=n(3212),c=n(11140),d=n(6833),p=n(70652),v=n(75200).f,f=n(55149),C=n(85120),b=n(17192),g=n(13358),y=m.PROPER,B=m.CONFIGURABLE,L="ArrayBuffer",I="DataView",w="prototype",T="Wrong length",M="Wrong index",A=g.getterFor(L),R=g.getterFor(I),O=g.set,_=e[L],P=_,D=P&&P[w],z=e[I],U=z&&z[w],W=Object.prototype,K=e.Array,H=e.RangeError,Y=a(f),J=a([].reverse),q=c.pack,oe=c.unpack,ae=function(X){return[X&255]},le=function(X){return[X&255,X>>8&255]},he=function(X){return[X&255,X>>8&255,X>>16&255,X>>24&255]},me=function(X){return X[3]<<24|X[2]<<16|X[1]<<8|X[0]},Be=function(X){return q(i(X),23,4)},ce=function(X){return q(X,52,8)},te=function(X,ne,ve){k(X[w],ne,{configurable:!0,get:function(){function Ve(){return ve(this)[ne]}return Ve}()})},ee=function(X,ne,ve,Ve){var Ie=R(X),Pe=u(ve),Ae=!!Ve;if(Pe+ne>Ie.byteLength)throw new H(M);var Oe=Ie.bytes,de=Pe+Ie.byteOffset,ge=C(Oe,de,de+ne);return Ae?ge:J(ge)},ie=function(X,ne,ve,Ve,Ie,Pe){var Ae=R(X),Oe=u(ve),de=Ve(+Ie),ge=!!Pe;if(Oe+ne>Ae.byteLength)throw new H(M);for(var j=Ae.bytes,ue=Oe+Ae.byteOffset,be=0;be<ne;be++)j[ue+be]=de[ge?be:ne-be-1]};if(!o)P=function(){function re(X){h(this,D);var ne=u(X);O(this,{type:L,bytes:Y(K(ne),0),byteLength:ne}),t||(this.byteLength=ne,this.detached=!1)}return re}(),D=P[w],z=function(){function re(X,ne,ve){h(this,U),h(X,D);var Ve=A(X),Ie=Ve.byteLength,Pe=s(ne);if(Pe<0||Pe>Ie)throw new H("Wrong offset");if(ve=ve===void 0?Ie-Pe:l(ve),Pe+ve>Ie)throw new H(T);O(this,{type:I,buffer:X,byteLength:ve,byteOffset:Pe,bytes:Ve.bytes}),t||(this.buffer=X,this.byteLength=ve,this.byteOffset=Pe)}return re}(),U=z[w],t&&(te(P,"byteLength",A),te(z,"buffer",R),te(z,"byteLength",R),te(z,"byteOffset",R)),S(U,{getInt8:function(){function re(X){return ee(this,1,X)[0]<<24>>24}return re}(),getUint8:function(){function re(X){return ee(this,1,X)[0]}return re}(),getInt16:function(){function re(X){var ne=ee(this,2,X,arguments.length>1?arguments[1]:!1);return(ne[1]<<8|ne[0])<<16>>16}return re}(),getUint16:function(){function re(X){var ne=ee(this,2,X,arguments.length>1?arguments[1]:!1);return ne[1]<<8|ne[0]}return re}(),getInt32:function(){function re(X){return me(ee(this,4,X,arguments.length>1?arguments[1]:!1))}return re}(),getUint32:function(){function re(X){return me(ee(this,4,X,arguments.length>1?arguments[1]:!1))>>>0}return re}(),getFloat32:function(){function re(X){return oe(ee(this,4,X,arguments.length>1?arguments[1]:!1),23)}return re}(),getFloat64:function(){function re(X){return oe(ee(this,8,X,arguments.length>1?arguments[1]:!1),52)}return re}(),setInt8:function(){function re(X,ne){ie(this,1,X,ae,ne)}return re}(),setUint8:function(){function re(X,ne){ie(this,1,X,ae,ne)}return re}(),setInt16:function(){function re(X,ne){ie(this,2,X,le,ne,arguments.length>2?arguments[2]:!1)}return re}(),setUint16:function(){function re(X,ne){ie(this,2,X,le,ne,arguments.length>2?arguments[2]:!1)}return re}(),setInt32:function(){function re(X,ne){ie(this,4,X,he,ne,arguments.length>2?arguments[2]:!1)}return re}(),setUint32:function(){function re(X,ne){ie(this,4,X,he,ne,arguments.length>2?arguments[2]:!1)}return re}(),setFloat32:function(){function re(X,ne){ie(this,4,X,Be,ne,arguments.length>2?arguments[2]:!1)}return re}(),setFloat64:function(){function re(X,ne){ie(this,8,X,ce,ne,arguments.length>2?arguments[2]:!1)}return re}()});else{var Ce=y&&_.name!==L;if(!N(function(){_(1)})||!N(function(){new _(-1)})||N(function(){return new _,new _(1.5),new _(NaN),_.length!==1||Ce&&!B})){P=function(){function re(X){return h(this,D),new _(u(X))}return re}(),P[w]=D;for(var Se=v(_),we=0,pe;Se.length>we;)(pe=Se[we++])in P||V(P,pe,_[pe]);D.constructor=P}else Ce&&B&&V(_,"name",L);p&&d(U)!==W&&p(U,W);var E=new z(new P(2)),Z=a(U.setInt8);E.setInt8(0,2147483648),E.setInt8(1,2147483649),(E.getInt8(0)||!E.getInt8(1))&&S(U,{setInt8:function(){function re(X,ne){Z(this,X,ne<<24>>24)}return re}(),setUint8:function(){function re(X,ne){Z(this,X,ne<<24>>24)}return re}()},{unsafe:!0})}b(P,L),b(z,I),x.exports={ArrayBuffer:P,DataView:z}},95349:function(x,r,n){"use strict";var e=n(63104),a=n(98926),t=n(78858),o=n(82728),m=Math.min;x.exports=[].copyWithin||function(){function V(k,S){var N=e(this),h=t(N),s=a(k,h),l=a(S,h),u=arguments.length>2?arguments[2]:void 0,i=m((u===void 0?h:a(u,h))-l,h-s),c=1;for(l<s&&s<l+i&&(c=-1,l+=i-1,s+=i-1);i-- >0;)l in N?N[s]=N[l]:o(N,s),s+=c,l+=c;return N}return V}()},55149:function(x,r,n){"use strict";var e=n(63104),a=n(98926),t=n(78858);x.exports=function(){function o(m){for(var V=e(this),k=t(V),S=arguments.length,N=a(S>1?arguments[1]:void 0,k),h=S>2?arguments[2]:void 0,s=h===void 0?k:a(h,k);s>N;)V[N++]=m;return V}return o}()},39078:function(x,r,n){"use strict";var e=n(77887).forEach,a=n(48626),t=a("forEach");x.exports=t?[].forEach:function(){function o(m){return e(this,m,arguments.length>1?arguments[1]:void 0)}return o}()},13170:function(x,r,n){"use strict";var e=n(78858);x.exports=function(a,t,o){for(var m=0,V=arguments.length>2?o:e(t),k=new a(V);V>m;)k[m]=t[m++];return k}},78505:function(x,r,n){"use strict";var e=n(7214),a=n(14454),t=n(63104),o=n(5034),m=n(13803),V=n(3897),k=n(78858),S=n(60769),N=n(31182),h=n(67414),s=Array;x.exports=function(){function l(u){var i=t(u),c=V(this),d=arguments.length,p=d>1?arguments[1]:void 0,v=p!==void 0;v&&(p=e(p,d>2?arguments[2]:void 0));var f=h(i),C=0,b,g,y,B,L,I;if(f&&!(this===s&&m(f)))for(B=N(i,f),L=B.next,g=c?new this:[];!(y=a(L,B)).done;C++)I=v?o(B,p,[y.value,C],!0):y.value,S(g,C,I);else for(b=k(i),g=c?new this(b):s(b);b>C;C++)I=v?p(i[C],C):i[C],S(g,C,I);return g.length=C,g}return l}()},68845:function(x,r,n){"use strict";var e=n(81366),a=n(98926),t=n(78858),o=function(V){return function(k,S,N){var h=e(k),s=t(h),l=a(N,s),u;if(V&&S!==S){for(;s>l;)if(u=h[l++],u!==u)return!0}else for(;s>l;l++)if((V||l in h)&&h[l]===S)return V||l||0;return!V&&-1}};x.exports={includes:o(!0),indexOf:o(!1)}},77887:function(x,r,n){"use strict";var e=n(7214),a=n(28772),t=n(64864),o=n(63104),m=n(78858),V=n(90452),k=a([].push),S=function(h){var s=h===1,l=h===2,u=h===3,i=h===4,c=h===6,d=h===7,p=h===5||c;return function(v,f,C,b){for(var g=o(v),y=t(g),B=m(y),L=e(f,C),I=0,w=b||V,T=s?w(v,B):l||d?w(v,0):void 0,M,A;B>I;I++)if((p||I in y)&&(M=y[I],A=L(M,I,g),h))if(s)T[I]=A;else if(A)switch(h){case 3:return!0;case 5:return M;case 6:return I;case 2:k(T,M)}else switch(h){case 4:return!1;case 7:k(T,M)}return c?-1:u||i?i:T}};x.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)}},70510:function(x,r,n){"use strict";var e=n(91973),a=n(81366),t=n(8624),o=n(78858),m=n(48626),V=Math.min,k=[].lastIndexOf,S=!!k&&1/[1].lastIndexOf(1,-0)<0,N=m("lastIndexOf"),h=S||!N;x.exports=h?function(){function s(l){if(S)return e(k,this,arguments)||0;var u=a(this),i=o(u),c=i-1;for(arguments.length>1&&(c=V(c,t(arguments[1]))),c<0&&(c=i+c);c>=0;c--)if(c in u&&u[c]===l)return c||0;return-1}return s}():k},75607:function(x,r,n){"use strict";var e=n(6232),a=n(98767),t=n(38643),o=a("species");x.exports=function(m){return t>=51||!e(function(){var V=[],k=V.constructor={};return k[o]=function(){return{foo:1}},V[m](Boolean).foo!==1})}},48626:function(x,r,n){"use strict";var e=n(6232);x.exports=function(a,t){var o=[][a];return!!o&&e(function(){o.call(null,t||function(){return 1},1)})}},21716:function(x,r,n){"use strict";var e=n(67194),a=n(63104),t=n(64864),o=n(78858),m=TypeError,V=function(S){return function(N,h,s,l){var u=a(N),i=t(u),c=o(u);e(h);var d=S?c-1:0,p=S?-1:1;if(s<2)for(;;){if(d in i){l=i[d],d+=p;break}if(d+=p,S?d<0:c<=d)throw new m("Reduce of empty array with no initial value")}for(;S?d>=0:c>d;d+=p)d in i&&(l=h(l,i[d],d,u));return l}};x.exports={left:V(!1),right:V(!0)}},58710:function(x,r,n){"use strict";var e=n(52153),a=n(58275),t=TypeError,o=Object.getOwnPropertyDescriptor,m=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(V){return V instanceof TypeError}}();x.exports=m?function(V,k){if(a(V)&&!o(V,"length").writable)throw new t("Cannot set read only .length");return V.length=k}:function(V,k){return V.length=k}},85120:function(x,r,n){"use strict";var e=n(98926),a=n(78858),t=n(60769),o=Array,m=Math.max;x.exports=function(V,k,S){for(var N=a(V),h=e(k,N),s=e(S===void 0?N:S,N),l=o(m(s-h,0)),u=0;h<s;h++,u++)t(l,u,V[h]);return l.length=u,l}},2497:function(x,r,n){"use strict";var e=n(28772);x.exports=e([].slice)},54727:function(x,r,n){"use strict";var e=n(85120),a=Math.floor,t=function V(k,S){var N=k.length,h=a(N/2);return N<8?o(k,S):m(k,V(e(k,0,h),S),V(e(k,h),S),S)},o=function(k,S){for(var N=k.length,h=1,s,l;h<N;){for(l=h,s=k[h];l&&S(k[l-1],s)>0;)k[l]=k[--l];l!==h++&&(k[l]=s)}return k},m=function(k,S,N,h){for(var s=S.length,l=N.length,u=0,i=0;u<s||i<l;)k[u+i]=u<s&&i<l?h(S[u],N[i])<=0?S[u++]:N[i++]:u<s?S[u++]:N[i++];return k};x.exports=t},39431:function(x,r,n){"use strict";var e=n(58275),a=n(3897),t=n(81216),o=n(98767),m=o("species"),V=Array;x.exports=function(k){var S;return e(k)&&(S=k.constructor,a(S)&&(S===V||e(S.prototype))?S=void 0:t(S)&&(S=S[m],S===null&&(S=void 0))),S===void 0?V:S}},90452:function(x,r,n){"use strict";var e=n(39431);x.exports=function(a,t){return new(e(a))(t===0?0:t)}},5034:function(x,r,n){"use strict";var e=n(74199),a=n(16987);x.exports=function(t,o,m,V){try{return V?o(e(m)[0],m[1]):o(m)}catch(k){a(t,"throw",k)}}},93923:function(x,r,n){"use strict";var e=n(98767),a=e("iterator"),t=!1;try{var o=0,m={next:function(){function V(){return{done:!!o++}}return V}(),return:function(){function V(){t=!0}return V}()};m[a]=function(){return this},Array.from(m,function(){throw 2})}catch(V){}x.exports=function(V,k){try{if(!k&&!t)return!1}catch(h){return!1}var S=!1;try{var N={};N[a]=function(){return{next:function(){function h(){return{done:S=!0}}return h}()}},V(N)}catch(h){}return S}},19836:function(x,r,n){"use strict";var e=n(28772),a=e({}.toString),t=e("".slice);x.exports=function(o){return t(a(o),8,-1)}},76176:function(x,r,n){"use strict";var e=n(46701),a=n(71839),t=n(19836),o=n(98767),m=o("toStringTag"),V=Object,k=t(function(){return arguments}())==="Arguments",S=function(h,s){try{return h[s]}catch(l){}};x.exports=e?t:function(N){var h,s,l;return N===void 0?"Undefined":N===null?"Null":typeof(s=S(h=V(N),m))=="string"?s:k?t(h):(l=t(h))==="Object"&&a(h.callee)?"Arguments":l}},38040:function(x,r,n){"use strict";var e=n(90552),a=n(66074),t=n(62425),o=n(7214),m=n(88538),V=n(95605),k=n(73452),S=n(76775),N=n(32615),h=n(83526),s=n(52153),l=n(62038).fastKey,u=n(13358),i=u.set,c=u.getterFor;x.exports={getConstructor:function(){function d(p,v,f,C){var b=p(function(I,w){m(I,g),i(I,{type:v,index:e(null),first:void 0,last:void 0,size:0}),s||(I.size=0),V(w)||k(w,I[C],{that:I,AS_ENTRIES:f})}),g=b.prototype,y=c(v),B=function(){function I(w,T,M){var A=y(w),R=L(w,T),O,_;return R?R.value=M:(A.last=R={index:_=l(T,!0),key:T,value:M,previous:O=A.last,next:void 0,removed:!1},A.first||(A.first=R),O&&(O.next=R),s?A.size++:w.size++,_!=="F"&&(A.index[_]=R)),w}return I}(),L=function(){function I(w,T){var M=y(w),A=l(T),R;if(A!=="F")return M.index[A];for(R=M.first;R;R=R.next)if(R.key===T)return R}return I}();return t(g,{clear:function(){function I(){for(var w=this,T=y(w),M=T.index,A=T.first;A;)A.removed=!0,A.previous&&(A.previous=A.previous.next=void 0),delete M[A.index],A=A.next;T.first=T.last=void 0,s?T.size=0:w.size=0}return I}(),delete:function(){function I(w){var T=this,M=y(T),A=L(T,w);if(A){var R=A.next,O=A.previous;delete M.index[A.index],A.removed=!0,O&&(O.next=R),R&&(R.previous=O),M.first===A&&(M.first=R),M.last===A&&(M.last=O),s?M.size--:T.size--}return!!A}return I}(),forEach:function(){function I(w){for(var T=y(this),M=o(w,arguments.length>1?arguments[1]:void 0),A;A=A?A.next:T.first;)for(M(A.value,A.key,this);A&&A.removed;)A=A.previous}return I}(),has:function(){function I(w){return!!L(this,w)}return I}()}),t(g,f?{get:function(){function I(w){var T=L(this,w);return T&&T.value}return I}(),set:function(){function I(w,T){return B(this,w===0?0:w,T)}return I}()}:{add:function(){function I(w){return B(this,w=w===0?0:w,w)}return I}()}),s&&a(g,"size",{configurable:!0,get:function(){function I(){return y(this).size}return I}()}),b}return d}(),setStrong:function(){function d(p,v,f){var C=v+" Iterator",b=c(v),g=c(C);S(p,v,function(y,B){i(this,{type:C,target:y,state:b(y),kind:B,last:void 0})},function(){for(var y=g(this),B=y.kind,L=y.last;L&&L.removed;)L=L.previous;return!y.target||!(y.last=L=L?L.next:y.state.first)?(y.target=void 0,N(void 0,!0)):N(B==="keys"?L.key:B==="values"?L.value:[L.key,L.value],!1)},f?"entries":"values",!f,!0),h(v)}return d}()}},58385:function(x,r,n){"use strict";var e=n(28772),a=n(62425),t=n(62038).getWeakData,o=n(88538),m=n(74199),V=n(95605),k=n(81216),S=n(73452),N=n(77887),h=n(70879),s=n(13358),l=s.set,u=s.getterFor,i=N.find,c=N.findIndex,d=e([].splice),p=0,v=function(g){return g.frozen||(g.frozen=new f)},f=function(){this.entries=[]},C=function(g,y){return i(g.entries,function(B){return B[0]===y})};f.prototype={get:function(){function b(g){var y=C(this,g);if(y)return y[1]}return b}(),has:function(){function b(g){return!!C(this,g)}return b}(),set:function(){function b(g,y){var B=C(this,g);B?B[1]=y:this.entries.push([g,y])}return b}(),delete:function(){function b(g){var y=c(this.entries,function(B){return B[0]===g});return~y&&d(this.entries,y,1),!!~y}return b}()},x.exports={getConstructor:function(){function b(g,y,B,L){var I=g(function(A,R){o(A,w),l(A,{type:y,id:p++,frozen:void 0}),V(R)||S(R,A[L],{that:A,AS_ENTRIES:B})}),w=I.prototype,T=u(y),M=function(){function A(R,O,_){var P=T(R),D=t(m(O),!0);return D===!0?v(P).set(O,_):D[P.id]=_,R}return A}();return a(w,{delete:function(){function A(R){var O=T(this);if(!k(R))return!1;var _=t(R);return _===!0?v(O).delete(R):_&&h(_,O.id)&&delete _[O.id]}return A}(),has:function(){function A(R){var O=T(this);if(!k(R))return!1;var _=t(R);return _===!0?v(O).has(R):_&&h(_,O.id)}return A}()}),a(w,B?{get:function(){function A(R){var O=T(this);if(k(R)){var _=t(R);return _===!0?v(O).get(R):_?_[O.id]:void 0}}return A}(),set:function(){function A(R,O){return M(this,R,O)}return A}()}:{add:function(){function A(R){return M(this,R,!0)}return A}()}),I}return b}()}},32376:function(x,r,n){"use strict";var e=n(89754),a=n(18937),t=n(28772),o=n(51320),m=n(59909),V=n(62038),k=n(73452),S=n(88538),N=n(71839),h=n(95605),s=n(81216),l=n(6232),u=n(93923),i=n(17192),c=n(28715);x.exports=function(d,p,v){var f=d.indexOf("Map")!==-1,C=d.indexOf("Weak")!==-1,b=f?"set":"add",g=a[d],y=g&&g.prototype,B=g,L={},I=function(P){var D=t(y[P]);m(y,P,P==="add"?function(){function z(U){return D(this,U===0?0:U),this}return z}():P==="delete"?function(z){return C&&!s(z)?!1:D(this,z===0?0:z)}:P==="get"?function(){function z(U){return C&&!s(U)?void 0:D(this,U===0?0:U)}return z}():P==="has"?function(){function z(U){return C&&!s(U)?!1:D(this,U===0?0:U)}return z}():function(){function z(U,W){return D(this,U===0?0:U,W),this}return z}())},w=o(d,!N(g)||!(C||y.forEach&&!l(function(){new g().entries().next()})));if(w)B=v.getConstructor(p,d,f,b),V.enable();else if(o(d,!0)){var T=new B,M=T[b](C?{}:-0,1)!==T,A=l(function(){T.has(1)}),R=u(function(_){new g(_)}),O=!C&&l(function(){for(var _=new g,P=5;P--;)_[b](P,P);return!_.has(-0)});R||(B=p(function(_,P){S(_,y);var D=c(new g,_,B);return h(P)||k(P,D[b],{that:D,AS_ENTRIES:f}),D}),B.prototype=y,y.constructor=B),(A||O)&&(I("delete"),I("has"),f&&I("get")),(O||M)&&I(b),C&&y.clear&&delete y.clear}return L[d]=B,e({global:!0,constructor:!0,forced:B!==g},L),i(B,d),C||v.setStrong(B,d,f),B}},71956:function(x,r,n){"use strict";var e=n(70879),a=n(13079),t=n(68431),o=n(12305);x.exports=function(m,V,k){for(var S=a(V),N=o.f,h=t.f,s=0;s<S.length;s++){var l=S[s];!e(m,l)&&!(k&&e(k,l))&&N(m,l,h(V,l))}}},28350:function(x,r,n){"use strict";var e=n(98767),a=e("match");x.exports=function(t){var o=/./;try{"/./"[t](o)}catch(m){try{return o[a]=!1,"/./"[t](o)}catch(V){}}return!1}},56508:function(x,r,n){"use strict";var e=n(6232);x.exports=!e(function(){function a(){}return a.prototype.constructor=null,Object.getPrototypeOf(new a)!==a.prototype})},24510:function(x,r,n){"use strict";var e=n(28772),a=n(40668),t=n(65263),o=/"/g,m=e("".replace);x.exports=function(V,k,S,N){var h=t(a(V)),s="<"+k;return S!==""&&(s+=" "+S+'="'+m(t(N),o,""")+'"'),s+">"+h+"</"+k+">"}},32615:function(x){"use strict";x.exports=function(r,n){return{value:r,done:n}}},37400:function(x,r,n){"use strict";var e=n(52153),a=n(12305),t=n(43683);x.exports=e?function(o,m,V){return a.f(o,m,t(1,V))}:function(o,m,V){return o[m]=V,o}},43683:function(x){"use strict";x.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},60769:function(x,r,n){"use strict";var e=n(30198),a=n(12305),t=n(43683);x.exports=function(o,m,V){var k=e(m);k in o?a.f(o,k,t(0,V)):o[k]=V}},83439:function(x,r,n){"use strict";var e=n(28772),a=n(6232),t=n(41121).start,o=RangeError,m=isFinite,V=Math.abs,k=Date.prototype,S=k.toISOString,N=e(k.getTime),h=e(k.getUTCDate),s=e(k.getUTCFullYear),l=e(k.getUTCHours),u=e(k.getUTCMilliseconds),i=e(k.getUTCMinutes),c=e(k.getUTCMonth),d=e(k.getUTCSeconds);x.exports=a(function(){return S.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!a(function(){S.call(new Date(NaN))})?function(){function p(){if(!m(N(this)))throw new o("Invalid time value");var v=this,f=s(v),C=u(v),b=f<0?"-":f>9999?"+":"";return b+t(V(f),b?6:4,0)+"-"+t(c(v)+1,2,0)+"-"+t(h(v),2,0)+"T"+t(l(v),2,0)+":"+t(i(v),2,0)+":"+t(d(v),2,0)+"."+t(C,3,0)+"Z"}return p}():S},24774:function(x,r,n){"use strict";var e=n(74199),a=n(41219),t=TypeError;x.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)}},66074:function(x,r,n){"use strict";var e=n(4308),a=n(12305);x.exports=function(t,o,m){return m.get&&e(m.get,o,{getter:!0}),m.set&&e(m.set,o,{setter:!0}),a.f(t,o,m)}},59909:function(x,r,n){"use strict";var e=n(71839),a=n(12305),t=n(4308),o=n(73898);x.exports=function(m,V,k,S){S||(S={});var N=S.enumerable,h=S.name!==void 0?S.name:V;if(e(k)&&t(k,h,S),S.global)N?m[V]=k:o(V,k);else{try{S.unsafe?m[V]&&(N=!0):delete m[V]}catch(s){}N?m[V]=k:a.f(m,V,{value:k,enumerable:!1,configurable:!S.nonConfigurable,writable:!S.nonWritable})}return m}},62425:function(x,r,n){"use strict";var e=n(59909);x.exports=function(a,t,o){for(var m in t)e(a,m,t[m],o);return a}},73898:function(x,r,n){"use strict";var e=n(18937),a=Object.defineProperty;x.exports=function(t,o){try{a(e,t,{value:o,configurable:!0,writable:!0})}catch(m){e[t]=o}return o}},82728:function(x,r,n){"use strict";var e=n(74991),a=TypeError;x.exports=function(t,o){if(!delete t[o])throw new a("Cannot delete property "+e(o)+" of "+e(t))}},52153:function(x,r,n){"use strict";var e=n(6232);x.exports=!e(function(){return Object.defineProperty({},1,{get:function(){function a(){return 7}return a}()})[1]!==7})},37130:function(x){"use strict";var r=typeof document=="object"&&document.all,n=typeof r=="undefined"&&r!==void 0;x.exports={all:r,IS_HTMLDDA:n}},74787:function(x,r,n){"use strict";var e=n(18937),a=n(81216),t=e.document,o=a(t)&&a(t.createElement);x.exports=function(m){return o?t.createElement(m):{}}},76809:function(x){"use strict";var r=TypeError,n=9007199254740991;x.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}},84467:function(x,r,n){"use strict";var e=n(8838),a=e.match(/firefox\/(\d+)/i);x.exports=!!a&&+a[1]},39335:function(x,r,n){"use strict";var e=n(14120),a=n(31786);x.exports=!e&&!a&&typeof window=="object"&&typeof document=="object"},63810:function(x){"use strict";x.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},14120:function(x){"use strict";x.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},61954:function(x,r,n){"use strict";var e=n(8838);x.exports=/MSIE|Trident/.test(e)},42946:function(x,r,n){"use strict";var e=n(8838);x.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},80918:function(x,r,n){"use strict";var e=n(8838);x.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},31786:function(x,r,n){"use strict";var e=n(18937),a=n(19836);x.exports=a(e.process)==="process"},30251:function(x,r,n){"use strict";var e=n(8838);x.exports=/web0s(?!.*chrome)/i.test(e)},8838:function(x){"use strict";x.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},38643:function(x,r,n){"use strict";var e=n(18937),a=n(8838),t=e.process,o=e.Deno,m=t&&t.versions||o&&o.version,V=m&&m.v8,k,S;V&&(k=V.split("."),S=k[0]>0&&k[0]<4?1:+(k[0]+k[1])),!S&&a&&(k=a.match(/Edge\/(\d+)/),(!k||k[1]>=74)&&(k=a.match(/Chrome\/(\d+)/),k&&(S=+k[1]))),x.exports=S},60441:function(x,r,n){"use strict";var e=n(8838),a=e.match(/AppleWebKit\/(\d+)\./);x.exports=!!a&&+a[1]},25009:function(x){"use strict";x.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},89754:function(x,r,n){"use strict";var e=n(18937),a=n(68431).f,t=n(37400),o=n(59909),m=n(73898),V=n(71956),k=n(51320);x.exports=function(S,N){var h=S.target,s=S.global,l=S.stat,u,i,c,d,p,v;if(s?i=e:l?i=e[h]||m(h,{}):i=(e[h]||{}).prototype,i)for(c in N){if(p=N[c],S.dontCallGetSet?(v=a(i,c),d=v&&v.value):d=i[c],u=k(s?c:h+(l?".":"#")+c,S.forced),!u&&d!==void 0){if(typeof p==typeof d)continue;V(p,d)}(S.sham||d&&d.sham)&&t(p,"sham",!0),o(i,c,p,S)}}},6232:function(x){"use strict";x.exports=function(r){try{return!!r()}catch(n){return!0}}},95143:function(x,r,n){"use strict";n(26236);var e=n(7863),a=n(59909),t=n(34898),o=n(6232),m=n(98767),V=n(37400),k=m("species"),S=RegExp.prototype;x.exports=function(N,h,s,l){var u=m(N),i=!o(function(){var v={};return v[u]=function(){return 7},""[N](v)!==7}),c=i&&!o(function(){var v=!1,f=/a/;return N==="split"&&(f={},f.constructor={},f.constructor[k]=function(){return f},f.flags="",f[u]=/./[u]),f.exec=function(){return v=!0,null},f[u](""),!v});if(!i||!c||s){var d=e(/./[u]),p=h(u,""[N],function(v,f,C,b,g){var y=e(v),B=f.exec;return B===t||B===S.exec?i&&!g?{done:!0,value:d(f,C,b)}:{done:!0,value:y(C,f,b)}:{done:!1}});a(String.prototype,N,p[0]),a(S,u,p[1])}l&&V(S[u],"sham",!0)}},84471:function(x,r,n){"use strict";var e=n(58275),a=n(78858),t=n(76809),o=n(7214),m=function V(k,S,N,h,s,l,u,i){for(var c=s,d=0,p=u?o(u,i):!1,v,f;d<h;)d in N&&(v=p?p(N[d],d,S):N[d],l>0&&e(v)?(f=a(v),c=V(k,S,v,f,c,l-1)-1):(t(c+1),k[c]=v),c++),d++;return c};x.exports=m},62579:function(x,r,n){"use strict";var e=n(6232);x.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},91973:function(x,r,n){"use strict";var e=n(37343),a=Function.prototype,t=a.apply,o=a.call;x.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(t):function(){return o.apply(t,arguments)})},7214:function(x,r,n){"use strict";var e=n(7863),a=n(67194),t=n(37343),o=e(e.bind);x.exports=function(m,V){return a(m),V===void 0?m:t?o(m,V):function(){return m.apply(V,arguments)}}},37343:function(x,r,n){"use strict";var e=n(6232);x.exports=!e(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},56685:function(x,r,n){"use strict";var e=n(28772),a=n(67194),t=n(81216),o=n(70879),m=n(2497),V=n(37343),k=Function,S=e([].concat),N=e([].join),h={},s=function(u,i,c){if(!o(h,i)){for(var d=[],p=0;p<i;p++)d[p]="a["+p+"]";h[i]=k("C,a","return new C("+N(d,",")+")")}return h[i](u,c)};x.exports=V?k.bind:function(){function l(u){var i=a(this),c=i.prototype,d=m(arguments,1),p=function(){function v(){var f=S(d,m(arguments));return this instanceof p?s(i,f.length,f):i.apply(u,f)}return v}();return t(c)&&(p.prototype=c),p}return l}()},14454:function(x,r,n){"use strict";var e=n(37343),a=Function.prototype.call;x.exports=e?a.bind(a):function(){return a.apply(a,arguments)}},8333:function(x,r,n){"use strict";var e=n(52153),a=n(70879),t=Function.prototype,o=e&&Object.getOwnPropertyDescriptor,m=a(t,"name"),V=m&&function(){function S(){}return S}().name==="something",k=m&&(!e||e&&o(t,"name").configurable);x.exports={EXISTS:m,PROPER:V,CONFIGURABLE:k}},23764:function(x,r,n){"use strict";var e=n(28772),a=n(67194);x.exports=function(t,o,m){try{return e(a(Object.getOwnPropertyDescriptor(t,o)[m]))}catch(V){}}},7863:function(x,r,n){"use strict";var e=n(19836),a=n(28772);x.exports=function(t){if(e(t)==="Function")return a(t)}},28772:function(x,r,n){"use strict";var e=n(37343),a=Function.prototype,t=a.call,o=e&&a.bind.bind(t,t);x.exports=e?o:function(m){return function(){return t.apply(m,arguments)}}},31640:function(x,r,n){"use strict";var e=n(18937),a=n(71839),t=function(m){return a(m)?m:void 0};x.exports=function(o,m){return arguments.length<2?t(e[o]):e[o]&&e[o][m]}},67414:function(x,r,n){"use strict";var e=n(76176),a=n(31338),t=n(95605),o=n(82092),m=n(98767),V=m("iterator");x.exports=function(k){if(!t(k))return a(k,V)||a(k,"@@iterator")||o[e(k)]}},31182:function(x,r,n){"use strict";var e=n(14454),a=n(67194),t=n(74199),o=n(74991),m=n(67414),V=TypeError;x.exports=function(k,S){var N=arguments.length<2?m(k):S;if(a(N))return t(e(N,k));throw new V(o(k)+" is not iterable")}},48970:function(x,r,n){"use strict";var e=n(28772),a=n(58275),t=n(71839),o=n(19836),m=n(65263),V=e([].push);x.exports=function(k){if(t(k))return k;if(a(k)){for(var S=k.length,N=[],h=0;h<S;h++){var s=k[h];typeof s=="string"?V(N,s):(typeof s=="number"||o(s)==="Number"||o(s)==="String")&&V(N,m(s))}var l=N.length,u=!0;return function(i,c){if(u)return u=!1,c;if(a(this))return c;for(var d=0;d<l;d++)if(N[d]===i)return c}}}},31338:function(x,r,n){"use strict";var e=n(67194),a=n(95605);x.exports=function(t,o){var m=t[o];return a(m)?void 0:e(m)}},58420:function(x,r,n){"use strict";var e=n(28772),a=n(63104),t=Math.floor,o=e("".charAt),m=e("".replace),V=e("".slice),k=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,S=/\$([$&'`]|\d{1,2})/g;x.exports=function(N,h,s,l,u,i){var c=s+N.length,d=l.length,p=S;return u!==void 0&&(u=a(u),p=k),m(i,p,function(v,f){var C;switch(o(f,0)){case"$":return"$";case"&":return N;case"`":return V(h,0,s);case"'":return V(h,c);case"<":C=u[V(f,1,-1)];break;default:var b=+f;if(b===0)return v;if(b>d){var g=t(b/10);return g===0?v:g<=d?l[g-1]===void 0?o(f,1):l[g-1]+o(f,1):v}C=l[b-1]}return C===void 0?"":C})}},18937:function(x,r,n){"use strict";var e=function(t){return t&&t.Math===Math&&t};x.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")()},70879:function(x,r,n){"use strict";var e=n(28772),a=n(63104),t=e({}.hasOwnProperty);x.exports=Object.hasOwn||function(){function o(m,V){return t(a(m),V)}return o}()},78876:function(x){"use strict";x.exports={}},37541:function(x){"use strict";x.exports=function(r,n){try{arguments.length}catch(e){}}},9206:function(x,r,n){"use strict";var e=n(31640);x.exports=e("document","documentElement")},91469:function(x,r,n){"use strict";var e=n(52153),a=n(6232),t=n(74787);x.exports=!e&&!a(function(){return Object.defineProperty(t("div"),"a",{get:function(){function o(){return 7}return o}()}).a!==7})},11140:function(x){"use strict";var r=Array,n=Math.abs,e=Math.pow,a=Math.floor,t=Math.log,o=Math.LN2,m=function(S,N,h){var s=r(h),l=h*8-N-1,u=(1<<l)-1,i=u>>1,c=N===23?e(2,-24)-e(2,-77):0,d=S<0||S===0&&1/S<0?1:0,p=0,v,f,C;for(S=n(S),S!==S||S===1/0?(f=S!==S?1:0,v=u):(v=a(t(S)/o),C=e(2,-v),S*C<1&&(v--,C*=2),v+i>=1?S+=c/C:S+=c*e(2,1-i),S*C>=2&&(v++,C/=2),v+i>=u?(f=0,v=u):v+i>=1?(f=(S*C-1)*e(2,N),v+=i):(f=S*e(2,i-1)*e(2,N),v=0));N>=8;)s[p++]=f&255,f/=256,N-=8;for(v=v<<N|f,l+=N;l>0;)s[p++]=v&255,v/=256,l-=8;return s[--p]|=d*128,s},V=function(S,N){var h=S.length,s=h*8-N-1,l=(1<<s)-1,u=l>>1,i=s-7,c=h-1,d=S[c--],p=d&127,v;for(d>>=7;i>0;)p=p*256+S[c--],i-=8;for(v=p&(1<<-i)-1,p>>=-i,i+=N;i>0;)v=v*256+S[c--],i-=8;if(p===0)p=1-u;else{if(p===l)return v?NaN:d?-1/0:1/0;v+=e(2,N),p-=u}return(d?-1:1)*v*e(2,p-N)};x.exports={pack:m,unpack:V}},64864:function(x,r,n){"use strict";var e=n(28772),a=n(6232),t=n(19836),o=Object,m=e("".split);x.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(V){return t(V)==="String"?m(V,""):o(V)}:o},28715:function(x,r,n){"use strict";var e=n(71839),a=n(81216),t=n(70652);x.exports=function(o,m,V){var k,S;return t&&e(k=m.constructor)&&k!==V&&a(S=k.prototype)&&S!==V.prototype&&t(o,S),o}},73761:function(x,r,n){"use strict";var e=n(28772),a=n(71839),t=n(83246),o=e(Function.toString);a(t.inspectSource)||(t.inspectSource=function(m){return o(m)}),x.exports=t.inspectSource},62038:function(x,r,n){"use strict";var e=n(89754),a=n(28772),t=n(78876),o=n(81216),m=n(70879),V=n(12305).f,k=n(75200),S=n(12258),N=n(97955),h=n(20228),s=n(62579),l=!1,u=h("meta"),i=0,c=function(g){V(g,u,{value:{objectID:"O"+i++,weakData:{}}})},d=function(g,y){if(!o(g))return typeof g=="symbol"?g:(typeof g=="string"?"S":"P")+g;if(!m(g,u)){if(!N(g))return"F";if(!y)return"E";c(g)}return g[u].objectID},p=function(g,y){if(!m(g,u)){if(!N(g))return!0;if(!y)return!1;c(g)}return g[u].weakData},v=function(g){return s&&l&&N(g)&&!m(g,u)&&c(g),g},f=function(){C.enable=function(){},l=!0;var g=k.f,y=a([].splice),B={};B[u]=1,g(B).length&&(k.f=function(L){for(var I=g(L),w=0,T=I.length;w<T;w++)if(I[w]===u){y(I,w,1);break}return I},e({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:S.f}))},C=x.exports={enable:f,fastKey:d,getWeakData:p,onFreeze:v};t[u]=!0},13358:function(x,r,n){"use strict";var e=n(38641),a=n(18937),t=n(81216),o=n(37400),m=n(70879),V=n(83246),k=n(79471),S=n(78876),N="Object already initialized",h=a.TypeError,s=a.WeakMap,l,u,i,c=function(C){return i(C)?u(C):l(C,{})},d=function(C){return function(b){var g;if(!t(b)||(g=u(b)).type!==C)throw new h("Incompatible receiver, "+C+" required");return g}};if(e||V.state){var p=V.state||(V.state=new s);p.get=p.get,p.has=p.has,p.set=p.set,l=function(C,b){if(p.has(C))throw new h(N);return b.facade=C,p.set(C,b),b},u=function(C){return p.get(C)||{}},i=function(C){return p.has(C)}}else{var v=k("state");S[v]=!0,l=function(C,b){if(m(C,v))throw new h(N);return b.facade=C,o(C,v,b),b},u=function(C){return m(C,v)?C[v]:{}},i=function(C){return m(C,v)}}x.exports={set:l,get:u,has:i,enforce:c,getterFor:d}},13803:function(x,r,n){"use strict";var e=n(98767),a=n(82092),t=e("iterator"),o=Array.prototype;x.exports=function(m){return m!==void 0&&(a.Array===m||o[t]===m)}},58275:function(x,r,n){"use strict";var e=n(19836);x.exports=Array.isArray||function(){function a(t){return e(t)==="Array"}return a}()},40754:function(x,r,n){"use strict";var e=n(76176);x.exports=function(a){var t=e(a);return t==="BigInt64Array"||t==="BigUint64Array"}},71839:function(x,r,n){"use strict";var e=n(37130),a=e.all;x.exports=e.IS_HTMLDDA?function(t){return typeof t=="function"||t===a}:function(t){return typeof t=="function"}},3897:function(x,r,n){"use strict";var e=n(28772),a=n(6232),t=n(71839),o=n(76176),m=n(31640),V=n(73761),k=function(){},S=[],N=m("Reflect","construct"),h=/^\s*(?:class|function)\b/,s=e(h.exec),l=!h.test(k),u=function(){function c(d){if(!t(d))return!1;try{return N(k,S,d),!0}catch(p){return!1}}return c}(),i=function(){function c(d){if(!t(d))return!1;switch(o(d)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!s(h,V(d))}catch(p){return!0}}return c}();i.sham=!0,x.exports=!N||a(function(){var c;return u(u.call)||!u(Object)||!u(function(){c=!0})||c})?i:u},61669:function(x,r,n){"use strict";var e=n(70879);x.exports=function(a){return a!==void 0&&(e(a,"value")||e(a,"writable"))}},51320:function(x,r,n){"use strict";var e=n(6232),a=n(71839),t=/#|\.prototype\./,o=function(h,s){var l=V[m(h)];return l===S?!0:l===k?!1:a(s)?e(s):!!s},m=o.normalize=function(N){return String(N).replace(t,".").toLowerCase()},V=o.data={},k=o.NATIVE="N",S=o.POLYFILL="P";x.exports=o},52095:function(x,r,n){"use strict";var e=n(81216),a=Math.floor;x.exports=Number.isInteger||function(){function t(o){return!e(o)&&isFinite(o)&&a(o)===o}return t}()},95605:function(x){"use strict";x.exports=function(r){return r==null}},81216:function(x,r,n){"use strict";var e=n(71839),a=n(37130),t=a.all;x.exports=a.IS_HTMLDDA?function(o){return typeof o=="object"?o!==null:e(o)||o===t}:function(o){return typeof o=="object"?o!==null:e(o)}},43546:function(x){"use strict";x.exports=!1},29749:function(x,r,n){"use strict";var e=n(81216),a=n(19836),t=n(98767),o=t("match");x.exports=function(m){var V;return e(m)&&((V=m[o])!==void 0?!!V:a(m)==="RegExp")}},74159:function(x,r,n){"use strict";var e=n(31640),a=n(71839),t=n(32284),o=n(75931),m=Object;x.exports=o?function(V){return typeof V=="symbol"}:function(V){var k=e("Symbol");return a(k)&&t(k.prototype,m(V))}},73452:function(x,r,n){"use strict";var e=n(7214),a=n(14454),t=n(74199),o=n(74991),m=n(13803),V=n(78858),k=n(32284),S=n(31182),N=n(67414),h=n(16987),s=TypeError,l=function(c,d){this.stopped=c,this.result=d},u=l.prototype;x.exports=function(i,c,d){var p=d&&d.that,v=!!(d&&d.AS_ENTRIES),f=!!(d&&d.IS_RECORD),C=!!(d&&d.IS_ITERATOR),b=!!(d&&d.INTERRUPTED),g=e(c,p),y,B,L,I,w,T,M,A=function(_){return y&&h(y,"normal",_),new l(!0,_)},R=function(_){return v?(t(_),b?g(_[0],_[1],A):g(_[0],_[1])):b?g(_,A):g(_)};if(f)y=i.iterator;else if(C)y=i;else{if(B=N(i),!B)throw new s(o(i)+" is not iterable");if(m(B)){for(L=0,I=V(i);I>L;L++)if(w=R(i[L]),w&&k(u,w))return w;return new l(!1)}y=S(i,B)}for(T=f?i.next:y.next;!(M=a(T,y)).done;){try{w=R(M.value)}catch(O){h(y,"throw",O)}if(typeof w=="object"&&w&&k(u,w))return w}return new l(!1)}},16987:function(x,r,n){"use strict";var e=n(14454),a=n(74199),t=n(31338);x.exports=function(o,m,V){var k,S;a(o);try{if(k=t(o,"return"),!k){if(m==="throw")throw V;return V}k=e(k,o)}catch(N){S=!0,k=N}if(m==="throw")throw V;if(S)throw k;return a(k),V}},51134:function(x,r,n){"use strict";var e=n(26649).IteratorPrototype,a=n(90552),t=n(43683),o=n(17192),m=n(82092),V=function(){return this};x.exports=function(k,S,N,h){var s=S+" Iterator";return k.prototype=a(e,{next:t(+!h,N)}),o(k,s,!1,!0),m[s]=V,k}},76775:function(x,r,n){"use strict";var e=n(89754),a=n(14454),t=n(43546),o=n(8333),m=n(71839),V=n(51134),k=n(6833),S=n(70652),N=n(17192),h=n(37400),s=n(59909),l=n(98767),u=n(82092),i=n(26649),c=o.PROPER,d=o.CONFIGURABLE,p=i.IteratorPrototype,v=i.BUGGY_SAFARI_ITERATORS,f=l("iterator"),C="keys",b="values",g="entries",y=function(){return this};x.exports=function(B,L,I,w,T,M,A){V(I,L,w);var R=function(J){if(J===T&&z)return z;if(!v&&J&&J in P)return P[J];switch(J){case C:return function(){function q(){return new I(this,J)}return q}();case b:return function(){function q(){return new I(this,J)}return q}();case g:return function(){function q(){return new I(this,J)}return q}()}return function(){return new I(this)}},O=L+" Iterator",_=!1,P=B.prototype,D=P[f]||P["@@iterator"]||T&&P[T],z=!v&&D||R(T),U=L==="Array"&&P.entries||D,W,K,H;if(U&&(W=k(U.call(new B)),W!==Object.prototype&&W.next&&(!t&&k(W)!==p&&(S?S(W,p):m(W[f])||s(W,f,y)),N(W,O,!0,!0),t&&(u[O]=y))),c&&T===b&&D&&D.name!==b&&(!t&&d?h(P,"name",b):(_=!0,z=function(){function Y(){return a(D,this)}return Y}())),T)if(K={values:R(b),keys:M?z:R(C),entries:R(g)},A)for(H in K)(v||_||!(H in P))&&s(P,H,K[H]);else e({target:L,proto:!0,forced:v||_},K);return(!t||A)&&P[f]!==z&&s(P,f,z,{name:T}),u[L]=z,K}},26649:function(x,r,n){"use strict";var e=n(6232),a=n(71839),t=n(81216),o=n(90552),m=n(6833),V=n(59909),k=n(98767),S=n(43546),N=k("iterator"),h=!1,s,l,u;[].keys&&(u=[].keys(),"next"in u?(l=m(m(u)),l!==Object.prototype&&(s=l)):h=!0);var i=!t(s)||e(function(){var c={};return s[N].call(c)!==c});i?s={}:S&&(s=o(s)),a(s[N])||V(s,N,function(){return this}),x.exports={IteratorPrototype:s,BUGGY_SAFARI_ITERATORS:h}},82092:function(x){"use strict";x.exports={}},78858:function(x,r,n){"use strict";var e=n(25657);x.exports=function(a){return e(a.length)}},4308:function(x,r,n){"use strict";var e=n(28772),a=n(6232),t=n(71839),o=n(70879),m=n(52153),V=n(8333).CONFIGURABLE,k=n(73761),S=n(13358),N=S.enforce,h=S.get,s=String,l=Object.defineProperty,u=e("".slice),i=e("".replace),c=e([].join),d=m&&!a(function(){return l(function(){},"length",{value:8}).length!==8}),p=String(String).split("String"),v=x.exports=function(f,C,b){u(s(C),0,7)==="Symbol("&&(C="["+i(s(C),/^Symbol\(([^)]*)\)/,"$1")+"]"),b&&b.getter&&(C="get "+C),b&&b.setter&&(C="set "+C),(!o(f,"name")||V&&f.name!==C)&&(m?l(f,"name",{value:C,configurable:!0}):f.name=C),d&&b&&o(b,"arity")&&f.length!==b.arity&&l(f,"length",{value:b.arity});try{b&&o(b,"constructor")&&b.constructor?m&&l(f,"prototype",{writable:!1}):f.prototype&&(f.prototype=void 0)}catch(y){}var g=N(f);return o(g,"source")||(g.source=c(p,typeof C=="string"?C:"")),f};Function.prototype.toString=v(function(){function f(){return t(this)&&h(this).source||k(this)}return f}(),"toString")},27228:function(x){"use strict";var r=Math.expm1,n=Math.exp;x.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},74064:function(x,r,n){"use strict";var e=n(45647),a=Math.abs,t=2220446049250313e-31,o=1/t,m=function(k){return k+o-o};x.exports=function(V,k,S,N){var h=+V,s=a(h),l=e(h);if(s<N)return l*m(s/N/k)*N*k;var u=(1+k/t)*s,i=u-(u-s);return i>S||i!==i?l*(1/0):l*i}},3212:function(x,r,n){"use strict";var e=n(74064),a=11920928955078125e-23,t=34028234663852886e22,o=11754943508222875e-54;x.exports=Math.fround||function(){function m(V){return e(V,a,t,o)}return m}()},68732:function(x){"use strict";var r=Math.log,n=Math.LOG10E;x.exports=Math.log10||function(){function e(a){return r(a)*n}return e}()},52563:function(x){"use strict";var r=Math.log;x.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}()},45647:function(x){"use strict";x.exports=Math.sign||function(){function r(n){var e=+n;return e===0||e!==e?e:e<0?-1:1}return r}()},2094:function(x){"use strict";var r=Math.ceil,n=Math.floor;x.exports=Math.trunc||function(){function e(a){var t=+a;return(t>0?n:r)(t)}return e}()},73399:function(x,r,n){"use strict";var e=n(18937),a=n(7214),t=n(68431).f,o=n(16812).set,m=n(84064),V=n(80918),k=n(42946),S=n(30251),N=n(31786),h=e.MutationObserver||e.WebKitMutationObserver,s=e.document,l=e.process,u=e.Promise,i=t(e,"queueMicrotask"),c=i&&i.value,d,p,v,f,C;if(!c){var b=new m,g=function(){var B,L;for(N&&(B=l.domain)&&B.exit();L=b.get();)try{L()}catch(I){throw b.head&&d(),I}B&&B.enter()};!V&&!N&&!S&&h&&s?(p=!0,v=s.createTextNode(""),new h(g).observe(v,{characterData:!0}),d=function(){v.data=p=!p}):!k&&u&&u.resolve?(f=u.resolve(void 0),f.constructor=u,C=a(f.then,f),d=function(){C(g)}):N?d=function(){l.nextTick(g)}:(o=a(o,e),d=function(){o(g)}),c=function(B){b.head||d(),b.add(B)}}x.exports=c},35171:function(x,r,n){"use strict";var e=n(67194),a=TypeError,t=function(m){var V,k;this.promise=new m(function(S,N){if(V!==void 0||k!==void 0)throw new a("Bad Promise constructor");V=S,k=N}),this.resolve=e(V),this.reject=e(k)};x.exports.f=function(o){return new t(o)}},54301:function(x,r,n){"use strict";var e=n(29749),a=TypeError;x.exports=function(t){if(e(t))throw new a("The method doesn't accept regular expressions");return t}},45836:function(x,r,n){"use strict";var e=n(18937),a=e.isFinite;x.exports=Number.isFinite||function(){function t(o){return typeof o=="number"&&a(o)}return t}()},48983:function(x,r,n){"use strict";var e=n(18937),a=n(6232),t=n(28772),o=n(65263),m=n(63891).trim,V=n(88206),k=t("".charAt),S=e.parseFloat,N=e.Symbol,h=N&&N.iterator,s=1/S(V+"-0")!==-1/0||h&&!a(function(){S(Object(h))});x.exports=s?function(){function l(u){var i=m(o(u)),c=S(i);return c===0&&k(i,0)==="-"?-0:c}return l}():S},67150:function(x,r,n){"use strict";var e=n(18937),a=n(6232),t=n(28772),o=n(65263),m=n(63891).trim,V=n(88206),k=e.parseInt,S=e.Symbol,N=S&&S.iterator,h=/^[+-]?0x/i,s=t(h.exec),l=k(V+"08")!==8||k(V+"0x16")!==22||N&&!a(function(){k(Object(N))});x.exports=l?function(){function u(i,c){var d=m(o(i));return k(d,c>>>0||(s(h,d)?16:10))}return u}():k},77640:function(x,r,n){"use strict";var e=n(52153),a=n(28772),t=n(14454),o=n(6232),m=n(97234),V=n(37),k=n(38684),S=n(63104),N=n(64864),h=Object.assign,s=Object.defineProperty,l=a([].concat);x.exports=!h||o(function(){if(e&&h({b:1},h(s({},"a",{enumerable:!0,get:function(){function p(){s(this,"b",{value:3,enumerable:!1})}return p}()}),{b:2})).b!==1)return!0;var u={},i={},c=Symbol("assign detection"),d="abcdefghijklmnopqrst";return u[c]=7,d.split("").forEach(function(p){i[p]=p}),h({},u)[c]!==7||m(h({},i)).join("")!==d})?function(){function u(i,c){for(var d=S(i),p=arguments.length,v=1,f=V.f,C=k.f;p>v;)for(var b=N(arguments[v++]),g=f?l(m(b),f(b)):m(b),y=g.length,B=0,L;y>B;)L=g[B++],(!e||t(C,b,L))&&(d[L]=b[L]);return d}return u}():h},90552:function(x,r,n){"use strict";var e=n(74199),a=n(27303),t=n(25009),o=n(78876),m=n(9206),V=n(74787),k=n(79471),S=">",N="<",h="prototype",s="script",l=k("IE_PROTO"),u=function(){},i=function(C){return N+s+S+C+N+"/"+s+S},c=function(C){C.write(i("")),C.close();var b=C.parentWindow.Object;return C=null,b},d=function(){var C=V("iframe"),b="java"+s+":",g;return C.style.display="none",m.appendChild(C),C.src=String(b),g=C.contentWindow.document,g.open(),g.write(i("document.F=Object")),g.close(),g.F},p,v=function(){try{p=new ActiveXObject("htmlfile")}catch(b){}v=typeof document!="undefined"?document.domain&&p?c(p):d():c(p);for(var C=t.length;C--;)delete v[h][t[C]];return v()};o[l]=!0,x.exports=Object.create||function(){function f(C,b){var g;return C!==null?(u[h]=e(C),g=new u,u[h]=null,g[l]=C):g=v(),b===void 0?g:a.f(g,b)}return f}()},27303:function(x,r,n){"use strict";var e=n(52153),a=n(94485),t=n(12305),o=n(74199),m=n(81366),V=n(97234);r.f=e&&!a?Object.defineProperties:function(){function k(S,N){o(S);for(var h=m(N),s=V(N),l=s.length,u=0,i;l>u;)t.f(S,i=s[u++],h[i]);return S}return k}()},12305:function(x,r,n){"use strict";var e=n(52153),a=n(91469),t=n(94485),o=n(74199),m=n(30198),V=TypeError,k=Object.defineProperty,S=Object.getOwnPropertyDescriptor,N="enumerable",h="configurable",s="writable";r.f=e?t?function(){function l(u,i,c){if(o(u),i=m(i),o(c),typeof u=="function"&&i==="prototype"&&"value"in c&&s in c&&!c[s]){var d=S(u,i);d&&d[s]&&(u[i]=c.value,c={configurable:h in c?c[h]:d[h],enumerable:N in c?c[N]:d[N],writable:!1})}return k(u,i,c)}return l}():k:function(){function l(u,i,c){if(o(u),i=m(i),o(c),a)try{return k(u,i,c)}catch(d){}if("get"in c||"set"in c)throw new V("Accessors not supported");return"value"in c&&(u[i]=c.value),u}return l}()},68431:function(x,r,n){"use strict";var e=n(52153),a=n(14454),t=n(38684),o=n(43683),m=n(81366),V=n(30198),k=n(70879),S=n(91469),N=Object.getOwnPropertyDescriptor;r.f=e?N:function(){function h(s,l){if(s=m(s),l=V(l),S)try{return N(s,l)}catch(u){}if(k(s,l))return o(!a(t.f,s,l),s[l])}return h}()},12258:function(x,r,n){"use strict";var e=n(19836),a=n(81366),t=n(75200).f,o=n(85120),m=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],V=function(S){try{return t(S)}catch(N){return o(m)}};x.exports.f=function(){function k(S){return m&&e(S)==="Window"?V(S):t(a(S))}return k}()},75200:function(x,r,n){"use strict";var e=n(85631),a=n(25009),t=a.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(){function o(m){return e(m,t)}return o}()},37:function(x,r){"use strict";r.f=Object.getOwnPropertySymbols},6833:function(x,r,n){"use strict";var e=n(70879),a=n(71839),t=n(63104),o=n(79471),m=n(56508),V=o("IE_PROTO"),k=Object,S=k.prototype;x.exports=m?k.getPrototypeOf:function(N){var h=t(N);if(e(h,V))return h[V];var s=h.constructor;return a(s)&&h instanceof s?s.prototype:h instanceof k?S:null}},97955:function(x,r,n){"use strict";var e=n(6232),a=n(81216),t=n(19836),o=n(65021),m=Object.isExtensible,V=e(function(){m(1)});x.exports=V||o?function(){function k(S){return!a(S)||o&&t(S)==="ArrayBuffer"?!1:m?m(S):!0}return k}():m},32284:function(x,r,n){"use strict";var e=n(28772);x.exports=e({}.isPrototypeOf)},85631:function(x,r,n){"use strict";var e=n(28772),a=n(70879),t=n(81366),o=n(68845).indexOf,m=n(78876),V=e([].push);x.exports=function(k,S){var N=t(k),h=0,s=[],l;for(l in N)!a(m,l)&&a(N,l)&&V(s,l);for(;S.length>h;)a(N,l=S[h++])&&(~o(s,l)||V(s,l));return s}},97234:function(x,r,n){"use strict";var e=n(85631),a=n(25009);x.exports=Object.keys||function(){function t(o){return e(o,a)}return t}()},38684:function(x,r){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,a=e&&!n.call({1:2},1);r.f=a?function(){function t(o){var m=e(this,o);return!!m&&m.enumerable}return t}():n},57993:function(x,r,n){"use strict";var e=n(43546),a=n(18937),t=n(6232),o=n(60441);x.exports=e||!t(function(){if(!(o&&o<535)){var m=Math.random();__defineSetter__.call(null,m,function(){}),delete a[m]}})},70652:function(x,r,n){"use strict";var e=n(23764),a=n(74199),t=n(74106);x.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var o=!1,m={},V;try{V=e(Object.prototype,"__proto__","set"),V(m,[]),o=m instanceof Array}catch(k){}return function(){function k(S,N){return a(S),t(N),o?V(S,N):S.__proto__=N,S}return k}()}():void 0)},68149:function(x,r,n){"use strict";var e=n(52153),a=n(6232),t=n(28772),o=n(6833),m=n(97234),V=n(81366),k=n(38684).f,S=t(k),N=t([].push),h=e&&a(function(){var l=Object.create(null);return l[2]=2,!S(l,2)}),s=function(u){return function(i){for(var c=V(i),d=m(c),p=h&&o(c)===null,v=d.length,f=0,C=[],b;v>f;)b=d[f++],(!e||(p?b in c:S(c,b)))&&N(C,u?[b,c[b]]:c[b]);return C}};x.exports={entries:s(!0),values:s(!1)}},26767:function(x,r,n){"use strict";var e=n(46701),a=n(76176);x.exports=e?{}.toString:function(){function t(){return"[object "+a(this)+"]"}return t}()},41219:function(x,r,n){"use strict";var e=n(14454),a=n(71839),t=n(81216),o=TypeError;x.exports=function(m,V){var k,S;if(V==="string"&&a(k=m.toString)&&!t(S=e(k,m))||a(k=m.valueOf)&&!t(S=e(k,m))||V!=="string"&&a(k=m.toString)&&!t(S=e(k,m)))return S;throw new o("Can't convert object to primitive value")}},13079:function(x,r,n){"use strict";var e=n(31640),a=n(28772),t=n(75200),o=n(37),m=n(74199),V=a([].concat);x.exports=e("Reflect","ownKeys")||function(){function k(S){var N=t.f(m(S)),h=o.f;return h?V(N,h(S)):N}return k}()},10565:function(x,r,n){"use strict";var e=n(18937);x.exports=e},71674:function(x){"use strict";x.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}},63006:function(x,r,n){"use strict";var e=n(18937),a=n(68609),t=n(71839),o=n(51320),m=n(73761),V=n(98767),k=n(39335),S=n(14120),N=n(43546),h=n(38643),s=a&&a.prototype,l=V("species"),u=!1,i=t(e.PromiseRejectionEvent),c=o("Promise",function(){var d=m(a),p=d!==String(a);if(!p&&h===66||N&&!(s.catch&&s.finally))return!0;if(!h||h<51||!/native code/.test(d)){var v=new a(function(b){b(1)}),f=function(g){g(function(){},function(){})},C=v.constructor={};if(C[l]=f,u=v.then(function(){})instanceof f,!u)return!0}return!p&&(k||S)&&!i});x.exports={CONSTRUCTOR:c,REJECTION_EVENT:i,SUBCLASSING:u}},68609:function(x,r,n){"use strict";var e=n(18937);x.exports=e.Promise},4763:function(x,r,n){"use strict";var e=n(74199),a=n(81216),t=n(35171);x.exports=function(o,m){if(e(o),a(m)&&m.constructor===o)return m;var V=t.f(o),k=V.resolve;return k(m),V.promise}},85306:function(x,r,n){"use strict";var e=n(68609),a=n(93923),t=n(63006).CONSTRUCTOR;x.exports=t||!a(function(o){e.all(o).then(void 0,function(){})})},15803:function(x,r,n){"use strict";var e=n(12305).f;x.exports=function(a,t,o){o in a||e(a,o,{configurable:!0,get:function(){function m(){return t[o]}return m}(),set:function(){function m(V){t[o]=V}return m}()})}},84064:function(x){"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}()},x.exports=r},72556:function(x,r,n){"use strict";var e=n(14454),a=n(74199),t=n(71839),o=n(19836),m=n(34898),V=TypeError;x.exports=function(k,S){var N=k.exec;if(t(N)){var h=e(N,k,S);return h!==null&&a(h),h}if(o(k)==="RegExp")return e(m,k,S);throw new V("RegExp#exec called on incompatible receiver")}},34898:function(x,r,n){"use strict";var e=n(14454),a=n(28772),t=n(65263),o=n(33945),m=n(85032),V=n(76838),k=n(90552),S=n(13358).get,N=n(16465),h=n(10454),s=V("native-string-replace",String.prototype.replace),l=RegExp.prototype.exec,u=l,i=a("".charAt),c=a("".indexOf),d=a("".replace),p=a("".slice),v=function(){var g=/a/,y=/b*/g;return e(l,g,"a"),e(l,y,"a"),g.lastIndex!==0||y.lastIndex!==0}(),f=m.BROKEN_CARET,C=/()??/.exec("")[1]!==void 0,b=v||C||f||N||h;b&&(u=function(){function g(y){var B=this,L=S(B),I=t(y),w=L.raw,T,M,A,R,O,_,P;if(w)return w.lastIndex=B.lastIndex,T=e(u,w,I),B.lastIndex=w.lastIndex,T;var D=L.groups,z=f&&B.sticky,U=e(o,B),W=B.source,K=0,H=I;if(z&&(U=d(U,"y",""),c(U,"g")===-1&&(U+="g"),H=p(I,B.lastIndex),B.lastIndex>0&&(!B.multiline||B.multiline&&i(I,B.lastIndex-1)!=="\n")&&(W="(?: "+W+")",H=" "+H,K++),M=new RegExp("^(?:"+W+")",U)),C&&(M=new RegExp("^"+W+"$(?!\\s)",U)),v&&(A=B.lastIndex),R=e(l,z?M:B,H),z?R?(R.input=p(R.input,K),R[0]=p(R[0],K),R.index=B.lastIndex,B.lastIndex+=R[0].length):B.lastIndex=0:v&&R&&(B.lastIndex=B.global?R.index+R[0].length:A),C&&R&&R.length>1&&e(s,R[0],M,function(){for(O=1;O<arguments.length-2;O++)arguments[O]===void 0&&(R[O]=void 0)}),R&&D)for(R.groups=_=k(null),O=0;O<D.length;O++)P=D[O],_[P[0]]=R[P[1]];return R}return g}()),x.exports=u},33945:function(x,r,n){"use strict";var e=n(74199);x.exports=function(){var a=e(this),t="";return a.hasIndices&&(t+="d"),a.global&&(t+="g"),a.ignoreCase&&(t+="i"),a.multiline&&(t+="m"),a.dotAll&&(t+="s"),a.unicode&&(t+="u"),a.unicodeSets&&(t+="v"),a.sticky&&(t+="y"),t}},99881:function(x,r,n){"use strict";var e=n(14454),a=n(70879),t=n(32284),o=n(33945),m=RegExp.prototype;x.exports=function(V){var k=V.flags;return k===void 0&&!("flags"in m)&&!a(V,"flags")&&t(m,V)?e(o,V):k}},85032:function(x,r,n){"use strict";var e=n(6232),a=n(18937),t=a.RegExp,o=e(function(){var k=t("a","y");return k.lastIndex=2,k.exec("abcd")!==null}),m=o||e(function(){return!t("a","y").sticky}),V=o||e(function(){var k=t("^r","gy");return k.lastIndex=2,k.exec("str")!==null});x.exports={BROKEN_CARET:V,MISSED_STICKY:m,UNSUPPORTED_Y:o}},16465:function(x,r,n){"use strict";var e=n(6232),a=n(18937),t=a.RegExp;x.exports=e(function(){var o=t(".","s");return!(o.dotAll&&o.test("\n")&&o.flags==="s")})},10454:function(x,r,n){"use strict";var e=n(6232),a=n(18937),t=a.RegExp;x.exports=e(function(){var o=t("(?<a>b)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$<a>c")!=="bc"})},40668:function(x,r,n){"use strict";var e=n(95605),a=TypeError;x.exports=function(t){if(e(t))throw new a("Can't call method on "+t);return t}},9917:function(x){"use strict";x.exports=Object.is||function(){function r(n,e){return n===e?n!==0||1/n===1/e:n!==n&&e!==e}return r}()},34750:function(x,r,n){"use strict";var e=n(18937),a=n(91973),t=n(71839),o=n(63810),m=n(8838),V=n(2497),k=n(63625),S=e.Function,N=/MSIE .\./.test(m)||o&&function(){var h=e.Bun.version.split(".");return h.length<3||h[0]==="0"&&(h[1]<3||h[1]==="3"&&h[2]==="0")}();x.exports=function(h,s){var l=s?2:1;return N?function(u,i){var c=k(arguments.length,1)>l,d=t(u)?u:S(u),p=c?V(arguments,l):[],v=c?function(){a(d,this,p)}:d;return s?h(v,i):h(v)}:h}},83526:function(x,r,n){"use strict";var e=n(31640),a=n(66074),t=n(98767),o=n(52153),m=t("species");x.exports=function(V){var k=e(V);o&&k&&!k[m]&&a(k,m,{configurable:!0,get:function(){function S(){return this}return S}()})}},17192:function(x,r,n){"use strict";var e=n(12305).f,a=n(70879),t=n(98767),o=t("toStringTag");x.exports=function(m,V,k){m&&!k&&(m=m.prototype),m&&!a(m,o)&&e(m,o,{configurable:!0,value:V})}},79471:function(x,r,n){"use strict";var e=n(76838),a=n(20228),t=e("keys");x.exports=function(o){return t[o]||(t[o]=a(o))}},83246:function(x,r,n){"use strict";var e=n(18937),a=n(73898),t="__core-js_shared__",o=e[t]||a(t,{});x.exports=o},76838:function(x,r,n){"use strict";var e=n(43546),a=n(83246);(x.exports=function(t,o){return a[t]||(a[t]=o!==void 0?o:{})})("versions",[]).push({version:"3.34.0",mode:e?"pure":"global",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.34.0/LICENSE",source:"https://github.com/zloirock/core-js"})},40503:function(x,r,n){"use strict";var e=n(74199),a=n(10032),t=n(95605),o=n(98767),m=o("species");x.exports=function(V,k){var S=e(V).constructor,N;return S===void 0||t(N=e(S)[m])?k:a(N)}},88204:function(x,r,n){"use strict";var e=n(6232);x.exports=function(a){return e(function(){var t=""[a]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},77524:function(x,r,n){"use strict";var e=n(28772),a=n(8624),t=n(65263),o=n(40668),m=e("".charAt),V=e("".charCodeAt),k=e("".slice),S=function(h){return function(s,l){var u=t(o(s)),i=a(l),c=u.length,d,p;return i<0||i>=c?h?"":void 0:(d=V(u,i),d<55296||d>56319||i+1===c||(p=V(u,i+1))<56320||p>57343?h?m(u,i):d:h?k(u,i,i+2):(d-55296<<10)+(p-56320)+65536)}};x.exports={codeAt:S(!1),charAt:S(!0)}},54640:function(x,r,n){"use strict";var e=n(8838);x.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},41121:function(x,r,n){"use strict";var e=n(28772),a=n(25657),t=n(65263),o=n(46796),m=n(40668),V=e(o),k=e("".slice),S=Math.ceil,N=function(s){return function(l,u,i){var c=t(m(l)),d=a(u),p=c.length,v=i===void 0?" ":t(i),f,C;return d<=p||v===""?c:(f=d-p,C=V(v,S(f/v.length)),C.length>f&&(C=k(C,0,f)),s?c+C:C+c)}};x.exports={start:N(!1),end:N(!0)}},46796:function(x,r,n){"use strict";var e=n(8624),a=n(65263),t=n(40668),o=RangeError;x.exports=function(){function m(V){var k=a(t(this)),S="",N=e(V);if(N<0||N===1/0)throw new o("Wrong number of repetitions");for(;N>0;(N>>>=1)&&(k+=k))N&1&&(S+=k);return S}return m}()},36080:function(x,r,n){"use strict";var e=n(63891).end,a=n(68775);x.exports=a("trimEnd")?function(){function t(){return e(this)}return t}():"".trimEnd},68775:function(x,r,n){"use strict";var e=n(8333).PROPER,a=n(6232),t=n(88206),o="\u200B\x85\u180E";x.exports=function(m){return a(function(){return!!t[m]()||o[m]()!==o||e&&t[m].name!==m})}},472:function(x,r,n){"use strict";var e=n(63891).start,a=n(68775);x.exports=a("trimStart")?function(){function t(){return e(this)}return t}():"".trimStart},63891:function(x,r,n){"use strict";var e=n(28772),a=n(40668),t=n(65263),o=n(88206),m=e("".replace),V=RegExp("^["+o+"]+"),k=RegExp("(^|[^"+o+"])["+o+"]+$"),S=function(h){return function(s){var l=t(a(s));return h&1&&(l=m(l,V,"")),h&2&&(l=m(l,k,"$1")),l}};x.exports={start:S(1),end:S(2),trim:S(3)}},11851:function(x,r,n){"use strict";var e=n(38643),a=n(6232),t=n(18937),o=t.String;x.exports=!!Object.getOwnPropertySymbols&&!a(function(){var m=Symbol("symbol detection");return!o(m)||!(Object(m)instanceof Symbol)||!Symbol.sham&&e&&e<41})},97510:function(x,r,n){"use strict";var e=n(14454),a=n(31640),t=n(98767),o=n(59909);x.exports=function(){var m=a("Symbol"),V=m&&m.prototype,k=V&&V.valueOf,S=t("toPrimitive");V&&!V[S]&&o(V,S,function(N){return e(k,this)},{arity:1})}},90606:function(x,r,n){"use strict";var e=n(11851);x.exports=e&&!!Symbol.for&&!!Symbol.keyFor},16812:function(x,r,n){"use strict";var e=n(18937),a=n(91973),t=n(7214),o=n(71839),m=n(70879),V=n(6232),k=n(9206),S=n(2497),N=n(74787),h=n(63625),s=n(80918),l=n(31786),u=e.setImmediate,i=e.clearImmediate,c=e.process,d=e.Dispatch,p=e.Function,v=e.MessageChannel,f=e.String,C=0,b={},g="onreadystatechange",y,B,L,I;V(function(){y=e.location});var w=function(O){if(m(b,O)){var _=b[O];delete b[O],_()}},T=function(O){return function(){w(O)}},M=function(O){w(O.data)},A=function(O){e.postMessage(f(O),y.protocol+"//"+y.host)};(!u||!i)&&(u=function(){function R(O){h(arguments.length,1);var _=o(O)?O:p(O),P=S(arguments,1);return b[++C]=function(){a(_,void 0,P)},B(C),C}return R}(),i=function(){function R(O){delete b[O]}return R}(),l?B=function(O){c.nextTick(T(O))}:d&&d.now?B=function(O){d.now(T(O))}:v&&!s?(L=new v,I=L.port2,L.port1.onmessage=M,B=t(I.postMessage,I)):e.addEventListener&&o(e.postMessage)&&!e.importScripts&&y&&y.protocol!=="file:"&&!V(A)?(B=A,e.addEventListener("message",M,!1)):g in N("script")?B=function(O){k.appendChild(N("script"))[g]=function(){k.removeChild(this),w(O)}}:B=function(O){setTimeout(T(O),0)}),x.exports={set:u,clear:i}},51513:function(x,r,n){"use strict";var e=n(28772);x.exports=e(1 .valueOf)},98926:function(x,r,n){"use strict";var e=n(8624),a=Math.max,t=Math.min;x.exports=function(o,m){var V=e(o);return V<0?a(V+m,0):t(V,m)}},49685:function(x,r,n){"use strict";var e=n(34739),a=TypeError;x.exports=function(t){var o=e(t,"number");if(typeof o=="number")throw new a("Can't convert number to bigint");return BigInt(o)}},74809:function(x,r,n){"use strict";var e=n(8624),a=n(25657),t=RangeError;x.exports=function(o){if(o===void 0)return 0;var m=e(o),V=a(m);if(m!==V)throw new t("Wrong length or index");return V}},81366:function(x,r,n){"use strict";var e=n(64864),a=n(40668);x.exports=function(t){return e(a(t))}},8624:function(x,r,n){"use strict";var e=n(2094);x.exports=function(a){var t=+a;return t!==t||t===0?0:e(t)}},25657:function(x,r,n){"use strict";var e=n(8624),a=Math.min;x.exports=function(t){return t>0?a(e(t),9007199254740991):0}},63104:function(x,r,n){"use strict";var e=n(40668),a=Object;x.exports=function(t){return a(e(t))}},10371:function(x,r,n){"use strict";var e=n(10695),a=RangeError;x.exports=function(t,o){var m=e(t);if(m%o)throw new a("Wrong offset");return m}},10695:function(x,r,n){"use strict";var e=n(8624),a=RangeError;x.exports=function(t){var o=e(t);if(o<0)throw new a("The argument can't be less than 0");return o}},34739:function(x,r,n){"use strict";var e=n(14454),a=n(81216),t=n(74159),o=n(31338),m=n(41219),V=n(98767),k=TypeError,S=V("toPrimitive");x.exports=function(N,h){if(!a(N)||t(N))return N;var s=o(N,S),l;if(s){if(h===void 0&&(h="default"),l=e(s,N,h),!a(l)||t(l))return l;throw new k("Can't convert object to primitive value")}return h===void 0&&(h="number"),m(N,h)}},30198:function(x,r,n){"use strict";var e=n(34739),a=n(74159);x.exports=function(t){var o=e(t,"string");return a(o)?o:o+""}},46701:function(x,r,n){"use strict";var e=n(98767),a=e("toStringTag"),t={};t[a]="z",x.exports=String(t)==="[object z]"},65263:function(x,r,n){"use strict";var e=n(76176),a=String;x.exports=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(t)}},67014:function(x){"use strict";var r=Math.round;x.exports=function(n){var e=r(n);return e<0?0:e>255?255:e&255}},74991:function(x){"use strict";var r=String;x.exports=function(n){try{return r(n)}catch(e){return"Object"}}},64229:function(x,r,n){"use strict";var e=n(89754),a=n(18937),t=n(14454),o=n(52153),m=n(16728),V=n(32072),k=n(79248),S=n(88538),N=n(43683),h=n(37400),s=n(52095),l=n(25657),u=n(74809),i=n(10371),c=n(67014),d=n(30198),p=n(70879),v=n(76176),f=n(81216),C=n(74159),b=n(90552),g=n(32284),y=n(70652),B=n(75200).f,L=n(88695),I=n(77887).forEach,w=n(83526),T=n(66074),M=n(12305),A=n(68431),R=n(13358),O=n(28715),_=R.get,P=R.set,D=R.enforce,z=M.f,U=A.f,W=a.RangeError,K=k.ArrayBuffer,H=K.prototype,Y=k.DataView,J=V.NATIVE_ARRAY_BUFFER_VIEWS,q=V.TYPED_ARRAY_TAG,oe=V.TypedArray,ae=V.TypedArrayPrototype,le=V.aTypedArrayConstructor,he=V.isTypedArray,me="BYTES_PER_ELEMENT",Be="Wrong length",ce=function(pe,E){le(pe);for(var Z=0,re=E.length,X=new pe(re);re>Z;)X[Z]=E[Z++];return X},te=function(pe,E){T(pe,E,{configurable:!0,get:function(){function Z(){return _(this)[E]}return Z}()})},ee=function(pe){var E;return g(H,pe)||(E=v(pe))==="ArrayBuffer"||E==="SharedArrayBuffer"},ie=function(pe,E){return he(pe)&&!C(E)&&E in pe&&s(+E)&&E>=0},Ce=function(){function we(pe,E){return E=d(E),ie(pe,E)?N(2,pe[E]):U(pe,E)}return we}(),Se=function(){function we(pe,E,Z){return E=d(E),ie(pe,E)&&f(Z)&&p(Z,"value")&&!p(Z,"get")&&!p(Z,"set")&&!Z.configurable&&(!p(Z,"writable")||Z.writable)&&(!p(Z,"enumerable")||Z.enumerable)?(pe[E]=Z.value,pe):z(pe,E,Z)}return we}();o?(J||(A.f=Ce,M.f=Se,te(ae,"buffer"),te(ae,"byteOffset"),te(ae,"byteLength"),te(ae,"length")),e({target:"Object",stat:!0,forced:!J},{getOwnPropertyDescriptor:Ce,defineProperty:Se}),x.exports=function(we,pe,E){var Z=we.match(/\d+/)[0]/8,re=we+(E?"Clamped":"")+"Array",X="get"+we,ne="set"+we,ve=a[re],Ve=ve,Ie=Ve&&Ve.prototype,Pe={},Ae=function(ue,be){var ke=_(ue);return ke.view[X](be*Z+ke.byteOffset,!0)},Oe=function(ue,be,ke){var Te=_(ue);Te.view[ne](be*Z+Te.byteOffset,E?c(ke):ke,!0)},de=function(ue,be){z(ue,be,{get:function(){function ke(){return Ae(this,be)}return ke}(),set:function(){function ke(Te){return Oe(this,be,Te)}return ke}(),enumerable:!0})};J?m&&(Ve=pe(function(j,ue,be,ke){return S(j,Ie),O(function(){return f(ue)?ee(ue)?ke!==void 0?new ve(ue,i(be,Z),ke):be!==void 0?new ve(ue,i(be,Z)):new ve(ue):he(ue)?ce(Ve,ue):t(L,Ve,ue):new ve(u(ue))}(),j,Ve)}),y&&y(Ve,oe),I(B(ve),function(j){j in Ve||h(Ve,j,ve[j])}),Ve.prototype=Ie):(Ve=pe(function(j,ue,be,ke){S(j,Ie);var Te=0,Ee=0,Re,_e,De;if(!f(ue))De=u(ue),_e=De*Z,Re=new K(_e);else if(ee(ue)){Re=ue,Ee=i(be,Z);var Ue=ue.byteLength;if(ke===void 0){if(Ue%Z)throw new W(Be);if(_e=Ue-Ee,_e<0)throw new W(Be)}else if(_e=l(ke)*Z,_e+Ee>Ue)throw new W(Be);De=_e/Z}else return he(ue)?ce(Ve,ue):t(L,Ve,ue);for(P(j,{buffer:Re,byteOffset:Ee,byteLength:_e,length:De,view:new Y(Re)});Te<De;)de(j,Te++)}),y&&y(Ve,oe),Ie=Ve.prototype=b(ae)),Ie.constructor!==Ve&&h(Ie,"constructor",Ve),D(Ie).TypedArrayConstructor=Ve,q&&h(Ie,q,re);var ge=Ve!==ve;Pe[re]=Ve,e({global:!0,constructor:!0,forced:ge,sham:!J},Pe),me in Ve||h(Ve,me,Z),me in Ie||h(Ie,me,Z),w(re)}):x.exports=function(){}},16728:function(x,r,n){"use strict";var e=n(18937),a=n(6232),t=n(93923),o=n(32072).NATIVE_ARRAY_BUFFER_VIEWS,m=e.ArrayBuffer,V=e.Int8Array;x.exports=!o||!a(function(){V(1)})||!a(function(){new V(-1)})||!t(function(k){new V,new V(null),new V(1.5),new V(k)},!0)||a(function(){return new V(new m(2),1,void 0).length!==1})},754:function(x,r,n){"use strict";var e=n(13170),a=n(42598);x.exports=function(t,o){return e(a(t),o)}},88695:function(x,r,n){"use strict";var e=n(7214),a=n(14454),t=n(10032),o=n(63104),m=n(78858),V=n(31182),k=n(67414),S=n(13803),N=n(40754),h=n(32072).aTypedArrayConstructor,s=n(49685);x.exports=function(){function l(u){var i=t(this),c=o(u),d=arguments.length,p=d>1?arguments[1]:void 0,v=p!==void 0,f=k(c),C,b,g,y,B,L,I,w;if(f&&!S(f))for(I=V(c,f),w=I.next,c=[];!(L=a(w,I)).done;)c.push(L.value);for(v&&d>2&&(p=e(p,arguments[2])),b=m(c),g=new(h(i))(b),y=N(g),C=0;b>C;C++)B=v?p(c[C],C):c[C],g[C]=y?s(B):+B;return g}return l}()},42598:function(x,r,n){"use strict";var e=n(32072),a=n(40503),t=e.aTypedArrayConstructor,o=e.getTypedArrayConstructor;x.exports=function(m){return t(a(m,o(m)))}},20228:function(x,r,n){"use strict";var e=n(28772),a=0,t=Math.random(),o=e(1 .toString);x.exports=function(m){return"Symbol("+(m===void 0?"":m)+")_"+o(++a+t,36)}},75931:function(x,r,n){"use strict";var e=n(11851);x.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},94485:function(x,r,n){"use strict";var e=n(52153),a=n(6232);x.exports=e&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},63625:function(x){"use strict";var r=TypeError;x.exports=function(n,e){if(n<e)throw new r("Not enough arguments");return n}},38641:function(x,r,n){"use strict";var e=n(18937),a=n(71839),t=e.WeakMap;x.exports=a(t)&&/native code/.test(String(t))},37441:function(x,r,n){"use strict";var e=n(10565),a=n(70879),t=n(26483),o=n(12305).f;x.exports=function(m){var V=e.Symbol||(e.Symbol={});a(V,m)||o(V,m,{value:t.f(m)})}},26483:function(x,r,n){"use strict";var e=n(98767);r.f=e},98767:function(x,r,n){"use strict";var e=n(18937),a=n(76838),t=n(70879),o=n(20228),m=n(11851),V=n(75931),k=e.Symbol,S=a("wks"),N=V?k.for||k:k&&k.withoutSetter||o;x.exports=function(h){return t(S,h)||(S[h]=m&&t(k,h)?k[h]:N("Symbol."+h)),S[h]}},88206:function(x){"use strict";x.exports=" \n\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF"},41733:function(x,r,n){"use strict";var e=n(89754),a=n(18937),t=n(79248),o=n(83526),m="ArrayBuffer",V=t[m],k=a[m];e({global:!0,constructor:!0,forced:k!==V},{ArrayBuffer:V}),o(m)},37657:function(x,r,n){"use strict";var e=n(89754),a=n(32072),t=a.NATIVE_ARRAY_BUFFER_VIEWS;e({target:"ArrayBuffer",stat:!0,forced:!t},{isView:a.isView})},32172:function(x,r,n){"use strict";var e=n(89754),a=n(7863),t=n(6232),o=n(79248),m=n(74199),V=n(98926),k=n(25657),S=n(40503),N=o.ArrayBuffer,h=o.DataView,s=h.prototype,l=a(N.prototype.slice),u=a(s.getUint8),i=a(s.setUint8),c=t(function(){return!new N(2).slice(1,void 0).byteLength});e({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:c},{slice:function(){function d(p,v){if(l&&v===void 0)return l(m(this),p);for(var f=m(this).byteLength,C=V(p,f),b=V(v===void 0?f:v,f),g=new(S(this,N))(k(b-C)),y=new h(this),B=new h(g),L=0;C<b;)i(B,L++,u(y,C++));return g}return d}()})},33684:function(x,r,n){"use strict";var e=n(89754),a=n(6232),t=n(58275),o=n(81216),m=n(63104),V=n(78858),k=n(76809),S=n(60769),N=n(90452),h=n(75607),s=n(98767),l=n(38643),u=s("isConcatSpreadable"),i=l>=51||!a(function(){var p=[];return p[u]=!1,p.concat()[0]!==p}),c=function(v){if(!o(v))return!1;var f=v[u];return f!==void 0?!!f:t(v)},d=!i||!h("concat");e({target:"Array",proto:!0,arity:1,forced:d},{concat:function(){function p(v){var f=m(this),C=N(f,0),b=0,g,y,B,L,I;for(g=-1,B=arguments.length;g<B;g++)if(I=g===-1?f:arguments[g],c(I))for(L=V(I),k(b+L),y=0;y<L;y++,b++)y in I&&S(C,b,I[y]);else k(b+1),S(C,b++,I);return C.length=b,C}return p}()})},42005:function(x,r,n){"use strict";var e=n(89754),a=n(95349),t=n(29260);e({target:"Array",proto:!0},{copyWithin:a}),t("copyWithin")},41041:function(x,r,n){"use strict";var e=n(89754),a=n(77887).every,t=n(48626),o=t("every");e({target:"Array",proto:!0,forced:!o},{every:function(){function m(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return m}()})},65701:function(x,r,n){"use strict";var e=n(89754),a=n(55149),t=n(29260);e({target:"Array",proto:!0},{fill:a}),t("fill")},95749:function(x,r,n){"use strict";var e=n(89754),a=n(77887).filter,t=n(75607),o=t("filter");e({target:"Array",proto:!0,forced:!o},{filter:function(){function m(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return m}()})},28132:function(x,r,n){"use strict";var e=n(89754),a=n(77887).findIndex,t=n(29260),o="findIndex",m=!0;o in[]&&Array(1)[o](function(){m=!1}),e({target:"Array",proto:!0,forced:m},{findIndex:function(){function V(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return V}()}),t(o)},71478:function(x,r,n){"use strict";var e=n(89754),a=n(77887).find,t=n(29260),o="find",m=!0;o in[]&&Array(1)[o](function(){m=!1}),e({target:"Array",proto:!0,forced:m},{find:function(){function V(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return V}()}),t(o)},58795:function(x,r,n){"use strict";var e=n(89754),a=n(84471),t=n(67194),o=n(63104),m=n(78858),V=n(90452);e({target:"Array",proto:!0},{flatMap:function(){function k(S){var N=o(this),h=m(N),s;return t(S),s=V(N,0),s.length=a(s,N,N,h,0,1,S,arguments.length>1?arguments[1]:void 0),s}return k}()})},76127:function(x,r,n){"use strict";var e=n(89754),a=n(84471),t=n(63104),o=n(78858),m=n(8624),V=n(90452);e({target:"Array",proto:!0},{flat:function(){function k(){var S=arguments.length?arguments[0]:void 0,N=t(this),h=o(N),s=V(N,0);return s.length=a(s,N,N,h,0,S===void 0?1:m(S)),s}return k}()})},68018:function(x,r,n){"use strict";var e=n(89754),a=n(39078);e({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},75314:function(x,r,n){"use strict";var e=n(89754),a=n(78505),t=n(93923),o=!t(function(m){Array.from(m)});e({target:"Array",stat:!0,forced:o},{from:a})},88450:function(x,r,n){"use strict";var e=n(89754),a=n(68845).includes,t=n(6232),o=n(29260),m=t(function(){return!Array(1).includes()});e({target:"Array",proto:!0,forced:m},{includes:function(){function V(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return V}()}),o("includes")},73238:function(x,r,n){"use strict";var e=n(89754),a=n(7863),t=n(68845).indexOf,o=n(48626),m=a([].indexOf),V=!!m&&1/m([1],1,-0)<0,k=V||!o("indexOf");e({target:"Array",proto:!0,forced:k},{indexOf:function(){function S(N){var h=arguments.length>1?arguments[1]:void 0;return V?m(this,N,h)||0:t(this,N,h)}return S}()})},64319:function(x,r,n){"use strict";var e=n(89754),a=n(58275);e({target:"Array",stat:!0},{isArray:a})},33700:function(x,r,n){"use strict";var e=n(81366),a=n(29260),t=n(82092),o=n(13358),m=n(12305).f,V=n(76775),k=n(32615),S=n(43546),N=n(52153),h="Array Iterator",s=o.set,l=o.getterFor(h);x.exports=V(Array,"Array",function(i,c){s(this,{type:h,target:e(i),index:0,kind:c})},function(){var i=l(this),c=i.target,d=i.index++;if(!c||d>=c.length)return i.target=void 0,k(void 0,!0);switch(i.kind){case"keys":return k(d,!1);case"values":return k(c[d],!1)}return k([d,c[d]],!1)},"values");var u=t.Arguments=t.Array;if(a("keys"),a("values"),a("entries"),!S&&N&&u.name!=="values")try{m(u,"name",{value:"values"})}catch(i){}},61378:function(x,r,n){"use strict";var e=n(89754),a=n(28772),t=n(64864),o=n(81366),m=n(48626),V=a([].join),k=t!==Object,S=k||!m("join",",");e({target:"Array",proto:!0,forced:S},{join:function(){function N(h){return V(o(this),h===void 0?",":h)}return N}()})},69893:function(x,r,n){"use strict";var e=n(89754),a=n(70510);e({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},80430:function(x,r,n){"use strict";var e=n(89754),a=n(77887).map,t=n(75607),o=t("map");e({target:"Array",proto:!0,forced:!o},{map:function(){function m(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return m}()})},87201:function(x,r,n){"use strict";var e=n(89754),a=n(6232),t=n(3897),o=n(60769),m=Array,V=a(function(){function k(){}return!(m.of.call(k)instanceof k)});e({target:"Array",stat:!0,forced:V},{of:function(){function k(){for(var S=0,N=arguments.length,h=new(t(this)?this:m)(N);N>S;)o(h,S,arguments[S++]);return h.length=N,h}return k}()})},9941:function(x,r,n){"use strict";var e=n(89754),a=n(21716).right,t=n(48626),o=n(38643),m=n(31786),V=!m&&o>79&&o<83,k=V||!t("reduceRight");e({target:"Array",proto:!0,forced:k},{reduceRight:function(){function S(N){return a(this,N,arguments.length,arguments.length>1?arguments[1]:void 0)}return S}()})},62166:function(x,r,n){"use strict";var e=n(89754),a=n(21716).left,t=n(48626),o=n(38643),m=n(31786),V=!m&&o>79&&o<83,k=V||!t("reduce");e({target:"Array",proto:!0,forced:k},{reduce:function(){function S(N){var h=arguments.length;return a(this,N,h,h>1?arguments[1]:void 0)}return S}()})},71790:function(x,r,n){"use strict";var e=n(89754),a=n(28772),t=n(58275),o=a([].reverse),m=[1,2];e({target:"Array",proto:!0,forced:String(m)===String(m.reverse())},{reverse:function(){function V(){return t(this)&&(this.length=this.length),o(this)}return V}()})},75157:function(x,r,n){"use strict";var e=n(89754),a=n(58275),t=n(3897),o=n(81216),m=n(98926),V=n(78858),k=n(81366),S=n(60769),N=n(98767),h=n(75607),s=n(2497),l=h("slice"),u=N("species"),i=Array,c=Math.max;e({target:"Array",proto:!0,forced:!l},{slice:function(){function d(p,v){var f=k(this),C=V(f),b=m(p,C),g=m(v===void 0?C:v,C),y,B,L;if(a(f)&&(y=f.constructor,t(y)&&(y===i||a(y.prototype))?y=void 0:o(y)&&(y=y[u],y===null&&(y=void 0)),y===i||y===void 0))return s(f,b,g);for(B=new(y===void 0?i:y)(c(g-b,0)),L=0;b<g;b++,L++)b in f&&S(B,L,f[b]);return B.length=L,B}return d}()})},44305:function(x,r,n){"use strict";var e=n(89754),a=n(77887).some,t=n(48626),o=t("some");e({target:"Array",proto:!0,forced:!o},{some:function(){function m(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return m}()})},13746:function(x,r,n){"use strict";var e=n(89754),a=n(28772),t=n(67194),o=n(63104),m=n(78858),V=n(82728),k=n(65263),S=n(6232),N=n(54727),h=n(48626),s=n(84467),l=n(61954),u=n(38643),i=n(60441),c=[],d=a(c.sort),p=a(c.push),v=S(function(){c.sort(void 0)}),f=S(function(){c.sort(null)}),C=h("sort"),b=!S(function(){if(u)return u<70;if(!(s&&s>3)){if(l)return!0;if(i)return i<603;var B="",L,I,w,T;for(L=65;L<76;L++){switch(I=String.fromCharCode(L),L){case 66:case 69:case 70:case 72:w=3;break;case 68:case 71:w=4;break;default:w=2}for(T=0;T<47;T++)c.push({k:I+T,v:w})}for(c.sort(function(M,A){return A.v-M.v}),T=0;T<c.length;T++)I=c[T].k.charAt(0),B.charAt(B.length-1)!==I&&(B+=I);return B!=="DGBEFHACIJK"}}),g=v||!f||!C||!b,y=function(L){return function(I,w){return w===void 0?-1:I===void 0?1:L!==void 0?+L(I,w)||0:k(I)>k(w)?1:-1}};e({target:"Array",proto:!0,forced:g},{sort:function(){function B(L){L!==void 0&&t(L);var I=o(this);if(b)return L===void 0?d(I):d(I,L);var w=[],T=m(I),M,A;for(A=0;A<T;A++)A in I&&p(w,I[A]);for(N(w,y(L)),M=m(w),A=0;A<M;)I[A]=w[A++];for(;A<T;)V(I,A++);return I}return B}()})},71957:function(x,r,n){"use strict";var e=n(83526);e("Array")},52525:function(x,r,n){"use strict";var e=n(89754),a=n(63104),t=n(98926),o=n(8624),m=n(78858),V=n(58710),k=n(76809),S=n(90452),N=n(60769),h=n(82728),s=n(75607),l=s("splice"),u=Math.max,i=Math.min;e({target:"Array",proto:!0,forced:!l},{splice:function(){function c(d,p){var v=a(this),f=m(v),C=t(d,f),b=arguments.length,g,y,B,L,I,w;for(b===0?g=y=0:b===1?(g=0,y=f-C):(g=b-2,y=i(u(o(p),0),f-C)),k(f+g-y),B=S(v,y),L=0;L<y;L++)I=C+L,I in v&&N(B,L,v[I]);if(B.length=y,g<y){for(L=C;L<f-y;L++)I=L+y,w=L+g,I in v?v[w]=v[I]:h(v,w);for(L=f;L>f-y+g;L--)h(v,L-1)}else if(g>y)for(L=f-y;L>C;L--)I=L+y-1,w=L+g-1,I in v?v[w]=v[I]:h(v,w);for(L=0;L<g;L++)v[L+C]=arguments[L+2];return V(v,f-y+g),B}return c}()})},34330:function(x,r,n){"use strict";var e=n(29260);e("flatMap")},12797:function(x,r,n){"use strict";var e=n(29260);e("flat")},18202:function(x,r,n){"use strict";var e=n(89754),a=n(79248),t=n(10806);e({global:!0,constructor:!0,forced:!t},{DataView:a.DataView})},31387:function(x,r,n){"use strict";n(18202)},83771:function(x,r,n){"use strict";var e=n(89754),a=n(28772),t=Date,o=a(t.prototype.getTime);e({target:"Date",stat:!0},{now:function(){function m(){return o(new t)}return m}()})},9232:function(x,r,n){"use strict";var e=n(89754),a=n(83439);e({target:"Date",proto:!0,forced:Date.prototype.toISOString!==a},{toISOString:a})},77812:function(x,r,n){"use strict";var e=n(89754),a=n(6232),t=n(63104),o=n(34739),m=a(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function(){function V(){return 1}return V}()})!==1});e({target:"Date",proto:!0,arity:1,forced:m},{toJSON:function(){function V(k){var S=t(this),N=o(S,"number");return typeof N=="number"&&!isFinite(N)?null:S.toISOString()}return V}()})},97786:function(x,r,n){"use strict";var e=n(70879),a=n(59909),t=n(24774),o=n(98767),m=o("toPrimitive"),V=Date.prototype;e(V,m)||a(V,m,t)},16070:function(x,r,n){"use strict";var e=n(28772),a=n(59909),t=Date.prototype,o="Invalid Date",m="toString",V=e(t[m]),k=e(t.getTime);String(new Date(NaN))!==o&&a(t,m,function(){function S(){var N=k(this);return N===N?V(this):o}return S}())},84941:function(x,r,n){"use strict";var e=n(89754),a=n(56685);e({target:"Function",proto:!0,forced:Function.bind!==a},{bind:a})},81765:function(x,r,n){"use strict";var e=n(71839),a=n(81216),t=n(12305),o=n(6833),m=n(98767),V=n(4308),k=m("hasInstance"),S=Function.prototype;k in S||t.f(S,k,{value:V(function(N){if(!e(this)||!a(N))return!1;var h=this.prototype;if(!a(h))return N instanceof this;for(;N=o(N);)if(h===N)return!0;return!1},k)})},10174:function(x,r,n){"use strict";var e=n(52153),a=n(8333).EXISTS,t=n(28772),o=n(66074),m=Function.prototype,V=t(m.toString),k=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,S=t(k.exec),N="name";e&&!a&&o(m,N,{configurable:!0,get:function(){function h(){try{return S(k,V(this))[1]}catch(s){return""}}return h}()})},82943:function(x,r,n){"use strict";var e=n(89754),a=n(31640),t=n(91973),o=n(14454),m=n(28772),V=n(6232),k=n(71839),S=n(74159),N=n(2497),h=n(48970),s=n(11851),l=String,u=a("JSON","stringify"),i=m(/./.exec),c=m("".charAt),d=m("".charCodeAt),p=m("".replace),v=m(1 .toString),f=/[\uD800-\uDFFF]/g,C=/^[\uD800-\uDBFF]$/,b=/^[\uDC00-\uDFFF]$/,g=!s||V(function(){var I=a("Symbol")("stringify detection");return u([I])!=="[null]"||u({a:I})!=="{}"||u(Object(I))!=="{}"}),y=V(function(){return u("\uDF06\uD834")!=='"\\udf06\\ud834"'||u("\uDEAD")!=='"\\udead"'}),B=function(w,T){var M=N(arguments),A=h(T);if(!(!k(A)&&(w===void 0||S(w))))return M[1]=function(R,O){if(k(A)&&(O=o(A,this,l(R),O)),!S(O))return O},t(u,null,M)},L=function(w,T,M){var A=c(M,T-1),R=c(M,T+1);return i(C,w)&&!i(b,R)||i(b,w)&&!i(C,A)?"\\u"+v(d(w,0),16):w};u&&e({target:"JSON",stat:!0,arity:3,forced:g||y},{stringify:function(){function I(w,T,M){var A=N(arguments),R=t(g?B:u,null,A);return y&&typeof R=="string"?p(R,f,L):R}return I}()})},3767:function(x,r,n){"use strict";var e=n(18937),a=n(17192);a(e.JSON,"JSON",!0)},99612:function(x,r,n){"use strict";var e=n(32376),a=n(38040);e("Map",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},29584:function(x,r,n){"use strict";n(99612)},24309:function(x,r,n){"use strict";var e=n(89754),a=n(52563),t=Math.acosh,o=Math.log,m=Math.sqrt,V=Math.LN2,k=!t||Math.floor(t(Number.MAX_VALUE))!==710||t(1/0)!==1/0;e({target:"Math",stat:!0,forced:k},{acosh:function(){function S(N){var h=+N;return h<1?NaN:h>9490626562425156e-8?o(h)+V:a(h-1+m(h-1)*m(h+1))}return S}()})},13275:function(x,r,n){"use strict";var e=n(89754),a=Math.asinh,t=Math.log,o=Math.sqrt;function m(k){var S=+k;return!isFinite(S)||S===0?S:S<0?-m(-S):t(S+o(S*S+1))}var V=!(a&&1/a(0)>0);e({target:"Math",stat:!0,forced:V},{asinh:m})},43162:function(x,r,n){"use strict";var e=n(89754),a=Math.atanh,t=Math.log,o=!(a&&1/a(-0)<0);e({target:"Math",stat:!0,forced:o},{atanh:function(){function m(V){var k=+V;return k===0?k:t((1+k)/(1-k))/2}return m}()})},60782:function(x,r,n){"use strict";var e=n(89754),a=n(45647),t=Math.abs,o=Math.pow;e({target:"Math",stat:!0},{cbrt:function(){function m(V){var k=+V;return a(k)*o(t(k),.3333333333333333)}return m}()})},71947:function(x,r,n){"use strict";var e=n(89754),a=Math.floor,t=Math.log,o=Math.LOG2E;e({target:"Math",stat:!0},{clz32:function(){function m(V){var k=V>>>0;return k?31-a(t(k+.5)*o):32}return m}()})},85874:function(x,r,n){"use strict";var e=n(89754),a=n(27228),t=Math.cosh,o=Math.abs,m=Math.E,V=!t||t(710)===1/0;e({target:"Math",stat:!0,forced:V},{cosh:function(){function k(S){var N=a(o(S)-1)+1;return(N+1/(N*m*m))*(m/2)}return k}()})},45957:function(x,r,n){"use strict";var e=n(89754),a=n(27228);e({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},56321:function(x,r,n){"use strict";var e=n(89754),a=n(3212);e({target:"Math",stat:!0},{fround:a})},78056:function(x,r,n){"use strict";var e=n(89754),a=Math.hypot,t=Math.abs,o=Math.sqrt,m=!!a&&a(1/0,NaN)!==1/0;e({target:"Math",stat:!0,arity:2,forced:m},{hypot:function(){function V(k,S){for(var N=0,h=0,s=arguments.length,l=0,u,i;h<s;)u=t(arguments[h++]),l<u?(i=l/u,N=N*i*i+1,l=u):u>0?(i=u/l,N+=i*i):N+=u;return l===1/0?1/0:l*o(N)}return V}()})},37867:function(x,r,n){"use strict";var e=n(89754),a=n(6232),t=Math.imul,o=a(function(){return t(4294967295,5)!==-5||t.length!==2});e({target:"Math",stat:!0,forced:o},{imul:function(){function m(V,k){var S=65535,N=+V,h=+k,s=S&N,l=S&h;return 0|s*l+((S&N>>>16)*l+s*(S&h>>>16)<<16>>>0)}return m}()})},8097:function(x,r,n){"use strict";var e=n(89754),a=n(68732);e({target:"Math",stat:!0},{log10:a})},28917:function(x,r,n){"use strict";var e=n(89754),a=n(52563);e({target:"Math",stat:!0},{log1p:a})},57466:function(x,r,n){"use strict";var e=n(89754),a=Math.log,t=Math.LN2;e({target:"Math",stat:!0},{log2:function(){function o(m){return a(m)/t}return o}()})},76064:function(x,r,n){"use strict";var e=n(89754),a=n(45647);e({target:"Math",stat:!0},{sign:a})},77133:function(x,r,n){"use strict";var e=n(89754),a=n(6232),t=n(27228),o=Math.abs,m=Math.exp,V=Math.E,k=a(function(){return Math.sinh(-2e-17)!==-2e-17});e({target:"Math",stat:!0,forced:k},{sinh:function(){function S(N){var h=+N;return o(h)<1?(t(h)-t(-h))/2:(m(h-1)-m(-h-1))*(V/2)}return S}()})},17681:function(x,r,n){"use strict";var e=n(89754),a=n(27228),t=Math.exp;e({target:"Math",stat:!0},{tanh:function(){function o(m){var V=+m,k=a(V),S=a(-V);return k===1/0?1:S===1/0?-1:(k-S)/(t(V)+t(-V))}return o}()})},52998:function(x,r,n){"use strict";var e=n(17192);e(Math,"Math",!0)},78886:function(x,r,n){"use strict";var e=n(89754),a=n(2094);e({target:"Math",stat:!0},{trunc:a})},49534:function(x,r,n){"use strict";var e=n(89754),a=n(43546),t=n(52153),o=n(18937),m=n(10565),V=n(28772),k=n(51320),S=n(70879),N=n(28715),h=n(32284),s=n(74159),l=n(34739),u=n(6232),i=n(75200).f,c=n(68431).f,d=n(12305).f,p=n(51513),v=n(63891).trim,f="Number",C=o[f],b=m[f],g=C.prototype,y=o.TypeError,B=V("".slice),L=V("".charCodeAt),I=function(_){var P=l(_,"number");return typeof P=="bigint"?P:w(P)},w=function(_){var P=l(_,"number"),D,z,U,W,K,H,Y,J;if(s(P))throw new y("Cannot convert a Symbol value to a number");if(typeof P=="string"&&P.length>2){if(P=v(P),D=L(P,0),D===43||D===45){if(z=L(P,2),z===88||z===120)return NaN}else if(D===48){switch(L(P,1)){case 66:case 98:U=2,W=49;break;case 79:case 111:U=8,W=55;break;default:return+P}for(K=B(P,2),H=K.length,Y=0;Y<H;Y++)if(J=L(K,Y),J<48||J>W)return NaN;return parseInt(K,U)}}return+P},T=k(f,!C(" 0o1")||!C("0b1")||C("+0x1")),M=function(_){return h(g,_)&&u(function(){p(_)})},A=function(){function O(_){var P=arguments.length<1?0:C(I(_));return M(this)?N(Object(P),this,A):P}return O}();A.prototype=g,T&&!a&&(g.constructor=A),e({global:!0,constructor:!0,wrap:!0,forced:T},{Number:A});var R=function(_,P){for(var D=t?i(P):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),z=0,U;D.length>z;z++)S(P,U=D[z])&&!S(_,U)&&d(_,U,c(P,U))};a&&b&&R(m[f],b),(T||a)&&R(m[f],C)},17559:function(x,r,n){"use strict";var e=n(89754);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},71338:function(x,r,n){"use strict";var e=n(89754),a=n(45836);e({target:"Number",stat:!0},{isFinite:a})},98911:function(x,r,n){"use strict";var e=n(89754),a=n(52095);e({target:"Number",stat:!0},{isInteger:a})},58709:function(x,r,n){"use strict";var e=n(89754);e({target:"Number",stat:!0},{isNaN:function(){function a(t){return t!==t}return a}()})},48342:function(x,r,n){"use strict";var e=n(89754),a=n(52095),t=Math.abs;e({target:"Number",stat:!0},{isSafeInteger:function(){function o(m){return a(m)&&t(m)<=9007199254740991}return o}()})},69204:function(x,r,n){"use strict";var e=n(89754);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},93492:function(x,r,n){"use strict";var e=n(89754);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},92284:function(x,r,n){"use strict";var e=n(89754),a=n(48983);e({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},99335:function(x,r,n){"use strict";var e=n(89754),a=n(67150);e({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},87506:function(x,r,n){"use strict";var e=n(89754),a=n(28772),t=n(8624),o=n(51513),m=n(46796),V=n(6232),k=RangeError,S=String,N=Math.floor,h=a(m),s=a("".slice),l=a(1 .toFixed),u=function f(C,b,g){return b===0?g:b%2===1?f(C,b-1,g*C):f(C*C,b/2,g)},i=function(C){for(var b=0,g=C;g>=4096;)b+=12,g/=4096;for(;g>=2;)b+=1,g/=2;return b},c=function(C,b,g){for(var y=-1,B=g;++y<6;)B+=b*C[y],C[y]=B%1e7,B=N(B/1e7)},d=function(C,b){for(var g=6,y=0;--g>=0;)y+=C[g],C[g]=N(y/b),y=y%b*1e7},p=function(C){for(var b=6,g="";--b>=0;)if(g!==""||b===0||C[b]!==0){var y=S(C[b]);g=g===""?y:g+h("0",7-y.length)+y}return g},v=V(function(){return l(8e-5,3)!=="0.000"||l(.9,0)!=="1"||l(1.255,2)!=="1.25"||l(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!V(function(){l({})});e({target:"Number",proto:!0,forced:v},{toFixed:function(){function f(C){var b=o(this),g=t(C),y=[0,0,0,0,0,0],B="",L="0",I,w,T,M;if(g<0||g>20)throw new k("Incorrect fraction digits");if(b!==b)return"NaN";if(b<=-1e21||b>=1e21)return S(b);if(b<0&&(B="-",b=-b),b>1e-21)if(I=i(b*u(2,69,1))-69,w=I<0?b*u(2,-I,1):b/u(2,I,1),w*=4503599627370496,I=52-I,I>0){for(c(y,0,w),T=g;T>=7;)c(y,1e7,0),T-=7;for(c(y,u(10,T,1),0),T=I-1;T>=23;)d(y,8388608),T-=23;d(y,1<<T),c(y,1,1),d(y,2),L=p(y)}else c(y,0,w),c(y,1<<-I,0),L=p(y)+h("0",g);return g>0?(M=L.length,L=B+(M<=g?"0."+h("0",g-M)+L:s(L,0,M-g)+"."+s(L,M-g))):L=B+L,L}return f}()})},2406:function(x,r,n){"use strict";var e=n(89754),a=n(28772),t=n(6232),o=n(51513),m=a(1 .toPrecision),V=t(function(){return m(1,void 0)!=="1"})||!t(function(){m({})});e({target:"Number",proto:!0,forced:V},{toPrecision:function(){function k(S){return S===void 0?m(o(this)):m(o(this),S)}return k}()})},39160:function(x,r,n){"use strict";var e=n(89754),a=n(77640);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},19493:function(x,r,n){"use strict";var e=n(89754),a=n(52153),t=n(90552);e({target:"Object",stat:!0,sham:!a},{create:t})},3464:function(x,r,n){"use strict";var e=n(89754),a=n(52153),t=n(57993),o=n(67194),m=n(63104),V=n(12305);a&&e({target:"Object",proto:!0,forced:t},{__defineGetter__:function(){function k(S,N){V.f(m(this),S,{get:o(N),enumerable:!0,configurable:!0})}return k}()})},39451:function(x,r,n){"use strict";var e=n(89754),a=n(52153),t=n(27303).f;e({target:"Object",stat:!0,forced:Object.defineProperties!==t,sham:!a},{defineProperties:t})},82362:function(x,r,n){"use strict";var e=n(89754),a=n(52153),t=n(12305).f;e({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!a},{defineProperty:t})},34629:function(x,r,n){"use strict";var e=n(89754),a=n(52153),t=n(57993),o=n(67194),m=n(63104),V=n(12305);a&&e({target:"Object",proto:!0,forced:t},{__defineSetter__:function(){function k(S,N){V.f(m(this),S,{set:o(N),enumerable:!0,configurable:!0})}return k}()})},66825:function(x,r,n){"use strict";var e=n(89754),a=n(68149).entries;e({target:"Object",stat:!0},{entries:function(){function t(o){return a(o)}return t}()})},79252:function(x,r,n){"use strict";var e=n(89754),a=n(62579),t=n(6232),o=n(81216),m=n(62038).onFreeze,V=Object.freeze,k=t(function(){V(1)});e({target:"Object",stat:!0,forced:k,sham:!a},{freeze:function(){function S(N){return V&&o(N)?V(m(N)):N}return S}()})},12645:function(x,r,n){"use strict";var e=n(89754),a=n(73452),t=n(60769);e({target:"Object",stat:!0},{fromEntries:function(){function o(m){var V={};return a(m,function(k,S){t(V,k,S)},{AS_ENTRIES:!0}),V}return o}()})},77316:function(x,r,n){"use strict";var e=n(89754),a=n(6232),t=n(81366),o=n(68431).f,m=n(52153),V=!m||a(function(){o(1)});e({target:"Object",stat:!0,forced:V,sham:!m},{getOwnPropertyDescriptor:function(){function k(S,N){return o(t(S),N)}return k}()})},95867:function(x,r,n){"use strict";var e=n(89754),a=n(52153),t=n(13079),o=n(81366),m=n(68431),V=n(60769);e({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(){function k(S){for(var N=o(S),h=m.f,s=t(N),l={},u=0,i,c;s.length>u;)c=h(N,i=s[u++]),c!==void 0&&V(l,i,c);return l}return k}()})},53900:function(x,r,n){"use strict";var e=n(89754),a=n(6232),t=n(12258).f,o=a(function(){return!Object.getOwnPropertyNames(1)});e({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:t})},88467:function(x,r,n){"use strict";var e=n(89754),a=n(11851),t=n(6232),o=n(37),m=n(63104),V=!a||t(function(){o.f(1)});e({target:"Object",stat:!0,forced:V},{getOwnPropertySymbols:function(){function k(S){var N=o.f;return N?N(m(S)):[]}return k}()})},31118:function(x,r,n){"use strict";var e=n(89754),a=n(6232),t=n(63104),o=n(6833),m=n(56508),V=a(function(){o(1)});e({target:"Object",stat:!0,forced:V,sham:!m},{getPrototypeOf:function(){function k(S){return o(t(S))}return k}()})},37836:function(x,r,n){"use strict";var e=n(89754),a=n(97955);e({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},68933:function(x,r,n){"use strict";var e=n(89754),a=n(6232),t=n(81216),o=n(19836),m=n(65021),V=Object.isFrozen,k=m||a(function(){V(1)});e({target:"Object",stat:!0,forced:k},{isFrozen:function(){function S(N){return!t(N)||m&&o(N)==="ArrayBuffer"?!0:V?V(N):!1}return S}()})},86346:function(x,r,n){"use strict";var e=n(89754),a=n(6232),t=n(81216),o=n(19836),m=n(65021),V=Object.isSealed,k=m||a(function(){V(1)});e({target:"Object",stat:!0,forced:k},{isSealed:function(){function S(N){return!t(N)||m&&o(N)==="ArrayBuffer"?!0:V?V(N):!1}return S}()})},68681:function(x,r,n){"use strict";var e=n(89754),a=n(9917);e({target:"Object",stat:!0},{is:a})},49037:function(x,r,n){"use strict";var e=n(89754),a=n(63104),t=n(97234),o=n(6232),m=o(function(){t(1)});e({target:"Object",stat:!0,forced:m},{keys:function(){function V(k){return t(a(k))}return V}()})},54818:function(x,r,n){"use strict";var e=n(89754),a=n(52153),t=n(57993),o=n(63104),m=n(30198),V=n(6833),k=n(68431).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(){function S(N){var h=o(this),s=m(N),l;do if(l=k(h,s))return l.get;while(h=V(h))}return S}()})},55548:function(x,r,n){"use strict";var e=n(89754),a=n(52153),t=n(57993),o=n(63104),m=n(30198),V=n(6833),k=n(68431).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(){function S(N){var h=o(this),s=m(N),l;do if(l=k(h,s))return l.set;while(h=V(h))}return S}()})},969:function(x,r,n){"use strict";var e=n(89754),a=n(81216),t=n(62038).onFreeze,o=n(62579),m=n(6232),V=Object.preventExtensions,k=m(function(){V(1)});e({target:"Object",stat:!0,forced:k,sham:!o},{preventExtensions:function(){function S(N){return V&&a(N)?V(t(N)):N}return S}()})},7734:function(x,r,n){"use strict";var e=n(89754),a=n(81216),t=n(62038).onFreeze,o=n(62579),m=n(6232),V=Object.seal,k=m(function(){V(1)});e({target:"Object",stat:!0,forced:k,sham:!o},{seal:function(){function S(N){return V&&a(N)?V(t(N)):N}return S}()})},78696:function(x,r,n){"use strict";var e=n(89754),a=n(70652);e({target:"Object",stat:!0},{setPrototypeOf:a})},93607:function(x,r,n){"use strict";var e=n(46701),a=n(59909),t=n(26767);e||a(Object.prototype,"toString",t,{unsafe:!0})},27480:function(x,r,n){"use strict";var e=n(89754),a=n(68149).values;e({target:"Object",stat:!0},{values:function(){function t(o){return a(o)}return t}()})},21757:function(x,r,n){"use strict";var e=n(89754),a=n(48983);e({global:!0,forced:parseFloat!==a},{parseFloat:a})},41518:function(x,r,n){"use strict";var e=n(89754),a=n(67150);e({global:!0,forced:parseInt!==a},{parseInt:a})},74212:function(x,r,n){"use strict";var e=n(89754),a=n(14454),t=n(67194),o=n(35171),m=n(71674),V=n(73452),k=n(85306);e({target:"Promise",stat:!0,forced:k},{all:function(){function S(N){var h=this,s=o.f(h),l=s.resolve,u=s.reject,i=m(function(){var c=t(h.resolve),d=[],p=0,v=1;V(N,function(f){var C=p++,b=!1;v++,a(c,h,f).then(function(g){b||(b=!0,d[C]=g,--v||l(d))},u)}),--v||l(d)});return i.error&&u(i.value),s.promise}return S}()})},90137:function(x,r,n){"use strict";var e=n(89754),a=n(43546),t=n(63006).CONSTRUCTOR,o=n(68609),m=n(31640),V=n(71839),k=n(59909),S=o&&o.prototype;if(e({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(){function h(s){return this.then(void 0,s)}return h}()}),!a&&V(o)){var N=m("Promise").prototype.catch;S.catch!==N&&k(S,"catch",N,{unsafe:!0})}},53735:function(x,r,n){"use strict";var e=n(89754),a=n(43546),t=n(31786),o=n(18937),m=n(14454),V=n(59909),k=n(70652),S=n(17192),N=n(83526),h=n(67194),s=n(71839),l=n(81216),u=n(88538),i=n(40503),c=n(16812).set,d=n(73399),p=n(37541),v=n(71674),f=n(84064),C=n(13358),b=n(68609),g=n(63006),y=n(35171),B="Promise",L=g.CONSTRUCTOR,I=g.REJECTION_EVENT,w=g.SUBCLASSING,T=C.getterFor(B),M=C.set,A=b&&b.prototype,R=b,O=A,_=o.TypeError,P=o.document,D=o.process,z=y.f,U=z,W=!!(P&&P.createEvent&&o.dispatchEvent),K="unhandledrejection",H="rejectionhandled",Y=0,J=1,q=2,oe=1,ae=2,le,he,me,Be,ce=function(X){var ne;return l(X)&&s(ne=X.then)?ne:!1},te=function(X,ne){var ve=ne.value,Ve=ne.state===J,Ie=Ve?X.ok:X.fail,Pe=X.resolve,Ae=X.reject,Oe=X.domain,de,ge,j;try{Ie?(Ve||(ne.rejection===ae&&we(ne),ne.rejection=oe),Ie===!0?de=ve:(Oe&&Oe.enter(),de=Ie(ve),Oe&&(Oe.exit(),j=!0)),de===X.promise?Ae(new _("Promise-chain cycle")):(ge=ce(de))?m(ge,de,Pe,Ae):Pe(de)):Ae(ve)}catch(ue){Oe&&!j&&Oe.exit(),Ae(ue)}},ee=function(X,ne){X.notified||(X.notified=!0,d(function(){for(var ve=X.reactions,Ve;Ve=ve.get();)te(Ve,X);X.notified=!1,ne&&!X.rejection&&Ce(X)}))},ie=function(X,ne,ve){var Ve,Ie;W?(Ve=P.createEvent("Event"),Ve.promise=ne,Ve.reason=ve,Ve.initEvent(X,!1,!0),o.dispatchEvent(Ve)):Ve={promise:ne,reason:ve},!I&&(Ie=o["on"+X])?Ie(Ve):X===K&&p("Unhandled promise rejection",ve)},Ce=function(X){m(c,o,function(){var ne=X.facade,ve=X.value,Ve=Se(X),Ie;if(Ve&&(Ie=v(function(){t?D.emit("unhandledRejection",ve,ne):ie(K,ne,ve)}),X.rejection=t||Se(X)?ae:oe,Ie.error))throw Ie.value})},Se=function(X){return X.rejection!==oe&&!X.parent},we=function(X){m(c,o,function(){var ne=X.facade;t?D.emit("rejectionHandled",ne):ie(H,ne,X.value)})},pe=function(X,ne,ve){return function(Ve){X(ne,Ve,ve)}},E=function(X,ne,ve){X.done||(X.done=!0,ve&&(X=ve),X.value=ne,X.state=q,ee(X,!0))},Z=function re(X,ne,ve){if(!X.done){X.done=!0,ve&&(X=ve);try{if(X.facade===ne)throw new _("Promise can't be resolved itself");var Ve=ce(ne);Ve?d(function(){var Ie={done:!1};try{m(Ve,ne,pe(re,Ie,X),pe(E,Ie,X))}catch(Pe){E(Ie,Pe,X)}}):(X.value=ne,X.state=J,ee(X,!1))}catch(Ie){E({done:!1},Ie,X)}}};if(L&&(R=function(){function re(X){u(this,O),h(X),m(le,this);var ne=T(this);try{X(pe(Z,ne),pe(E,ne))}catch(ve){E(ne,ve)}}return re}(),O=R.prototype,le=function(){function re(X){M(this,{type:B,done:!1,notified:!1,parent:!1,reactions:new f,rejection:!1,state:Y,value:void 0})}return re}(),le.prototype=V(O,"then",function(){function re(X,ne){var ve=T(this),Ve=z(i(this,R));return ve.parent=!0,Ve.ok=s(X)?X:!0,Ve.fail=s(ne)&&ne,Ve.domain=t?D.domain:void 0,ve.state===Y?ve.reactions.add(Ve):d(function(){te(Ve,ve)}),Ve.promise}return re}()),he=function(){var X=new le,ne=T(X);this.promise=X,this.resolve=pe(Z,ne),this.reject=pe(E,ne)},y.f=z=function(X){return X===R||X===me?new he(X):U(X)},!a&&s(b)&&A!==Object.prototype)){Be=A.then,w||V(A,"then",function(){function re(X,ne){var ve=this;return new R(function(Ve,Ie){m(Be,ve,Ve,Ie)}).then(X,ne)}return re}(),{unsafe:!0});try{delete A.constructor}catch(re){}k&&k(A,O)}e({global:!0,constructor:!0,wrap:!0,forced:L},{Promise:R}),S(R,B,!1,!0),N(B)},66432:function(x,r,n){"use strict";var e=n(89754),a=n(43546),t=n(68609),o=n(6232),m=n(31640),V=n(71839),k=n(40503),S=n(4763),N=n(59909),h=t&&t.prototype,s=!!t&&o(function(){h.finally.call({then:function(){function u(){}return u}()},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:s},{finally:function(){function u(i){var c=k(this,m("Promise")),d=V(i);return this.then(d?function(p){return S(c,i()).then(function(){return p})}:i,d?function(p){return S(c,i()).then(function(){throw p})}:i)}return u}()}),!a&&V(t)){var l=m("Promise").prototype.finally;h.finally!==l&&N(h,"finally",l,{unsafe:!0})}},95156:function(x,r,n){"use strict";n(53735),n(74212),n(90137),n(67227),n(79007),n(51727)},67227:function(x,r,n){"use strict";var e=n(89754),a=n(14454),t=n(67194),o=n(35171),m=n(71674),V=n(73452),k=n(85306);e({target:"Promise",stat:!0,forced:k},{race:function(){function S(N){var h=this,s=o.f(h),l=s.reject,u=m(function(){var i=t(h.resolve);V(N,function(c){a(i,h,c).then(s.resolve,l)})});return u.error&&l(u.value),s.promise}return S}()})},79007:function(x,r,n){"use strict";var e=n(89754),a=n(14454),t=n(35171),o=n(63006).CONSTRUCTOR;e({target:"Promise",stat:!0,forced:o},{reject:function(){function m(V){var k=t.f(this);return a(k.reject,void 0,V),k.promise}return m}()})},51727:function(x,r,n){"use strict";var e=n(89754),a=n(31640),t=n(43546),o=n(68609),m=n(63006).CONSTRUCTOR,V=n(4763),k=a("Promise"),S=t&&!m;e({target:"Promise",stat:!0,forced:t||m},{resolve:function(){function N(h){return V(S&&this===k?o:this,h)}return N}()})},99857:function(x,r,n){"use strict";var e=n(89754),a=n(91973),t=n(67194),o=n(74199),m=n(6232),V=!m(function(){Reflect.apply(function(){})});e({target:"Reflect",stat:!0,forced:V},{apply:function(){function k(S,N,h){return a(t(S),N,o(h))}return k}()})},7050:function(x,r,n){"use strict";var e=n(89754),a=n(31640),t=n(91973),o=n(56685),m=n(10032),V=n(74199),k=n(81216),S=n(90552),N=n(6232),h=a("Reflect","construct"),s=Object.prototype,l=[].push,u=N(function(){function d(){}return!(h(function(){},[],d)instanceof d)}),i=!N(function(){h(function(){})}),c=u||i;e({target:"Reflect",stat:!0,forced:c,sham:c},{construct:function(){function d(p,v){m(p),V(v);var f=arguments.length<3?p:m(arguments[2]);if(i&&!u)return h(p,v,f);if(p===f){switch(v.length){case 0:return new p;case 1:return new p(v[0]);case 2:return new p(v[0],v[1]);case 3:return new p(v[0],v[1],v[2]);case 4:return new p(v[0],v[1],v[2],v[3])}var C=[null];return t(l,C,v),new(t(o,p,C))}var b=f.prototype,g=S(k(b)?b:s),y=t(p,g,v);return k(y)?y:g}return d}()})},47910:function(x,r,n){"use strict";var e=n(89754),a=n(52153),t=n(74199),o=n(30198),m=n(12305),V=n(6232),k=V(function(){Reflect.defineProperty(m.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:k,sham:!a},{defineProperty:function(){function S(N,h,s){t(N);var l=o(h);t(s);try{return m.f(N,l,s),!0}catch(u){return!1}}return S}()})},9799:function(x,r,n){"use strict";var e=n(89754),a=n(74199),t=n(68431).f;e({target:"Reflect",stat:!0},{deleteProperty:function(){function o(m,V){var k=t(a(m),V);return k&&!k.configurable?!1:delete m[V]}return o}()})},83844:function(x,r,n){"use strict";var e=n(89754),a=n(52153),t=n(74199),o=n(68431);e({target:"Reflect",stat:!0,sham:!a},{getOwnPropertyDescriptor:function(){function m(V,k){return o.f(t(V),k)}return m}()})},38622:function(x,r,n){"use strict";var e=n(89754),a=n(74199),t=n(6833),o=n(56508);e({target:"Reflect",stat:!0,sham:!o},{getPrototypeOf:function(){function m(V){return t(a(V))}return m}()})},62584:function(x,r,n){"use strict";var e=n(89754),a=n(14454),t=n(81216),o=n(74199),m=n(61669),V=n(68431),k=n(6833);function S(N,h){var s=arguments.length<3?N:arguments[2],l,u;if(o(N)===s)return N[h];if(l=V.f(N,h),l)return m(l)?l.value:l.get===void 0?void 0:a(l.get,s);if(t(u=k(N)))return S(u,h,s)}e({target:"Reflect",stat:!0},{get:S})},38685:function(x,r,n){"use strict";var e=n(89754);e({target:"Reflect",stat:!0},{has:function(){function a(t,o){return o in t}return a}()})},50904:function(x,r,n){"use strict";var e=n(89754),a=n(74199),t=n(97955);e({target:"Reflect",stat:!0},{isExtensible:function(){function o(m){return a(m),t(m)}return o}()})},48098:function(x,r,n){"use strict";var e=n(89754),a=n(13079);e({target:"Reflect",stat:!0},{ownKeys:a})},9023:function(x,r,n){"use strict";var e=n(89754),a=n(31640),t=n(74199),o=n(62579);e({target:"Reflect",stat:!0,sham:!o},{preventExtensions:function(){function m(V){t(V);try{var k=a("Object","preventExtensions");return k&&k(V),!0}catch(S){return!1}}return m}()})},82469:function(x,r,n){"use strict";var e=n(89754),a=n(74199),t=n(74106),o=n(70652);o&&e({target:"Reflect",stat:!0},{setPrototypeOf:function(){function m(V,k){a(V),t(k);try{return o(V,k),!0}catch(S){return!1}}return m}()})},82811:function(x,r,n){"use strict";var e=n(89754),a=n(14454),t=n(74199),o=n(81216),m=n(61669),V=n(6232),k=n(12305),S=n(68431),N=n(6833),h=n(43683);function s(u,i,c){var d=arguments.length<4?u:arguments[3],p=S.f(t(u),i),v,f,C;if(!p){if(o(f=N(u)))return s(f,i,c,d);p=h(0)}if(m(p)){if(p.writable===!1||!o(d))return!1;if(v=S.f(d,i)){if(v.get||v.set||v.writable===!1)return!1;v.value=c,k.f(d,i,v)}else k.f(d,i,h(0,c))}else{if(C=p.set,C===void 0)return!1;a(C,d,c)}return!0}var l=V(function(){var u=function(){},i=k.f(new u,"a",{configurable:!0});return Reflect.set(u.prototype,"a",1,i)!==!1});e({target:"Reflect",stat:!0,forced:l},{set:s})},93037:function(x,r,n){"use strict";var e=n(52153),a=n(18937),t=n(28772),o=n(51320),m=n(28715),V=n(37400),k=n(90552),S=n(75200).f,N=n(32284),h=n(29749),s=n(65263),l=n(99881),u=n(85032),i=n(15803),c=n(59909),d=n(6232),p=n(70879),v=n(13358).enforce,f=n(83526),C=n(98767),b=n(16465),g=n(10454),y=C("match"),B=a.RegExp,L=B.prototype,I=a.SyntaxError,w=t(L.exec),T=t("".charAt),M=t("".replace),A=t("".indexOf),R=t("".slice),O=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,_=/a/g,P=/a/g,D=new B(_)!==_,z=u.MISSED_STICKY,U=u.UNSUPPORTED_Y,W=e&&(!D||z||b||g||d(function(){return P[y]=!1,B(_)!==_||B(P)===P||String(B(_,"i"))!=="/a/i"})),K=function(ae){for(var le=ae.length,he=0,me="",Be=!1,ce;he<=le;he++){if(ce=T(ae,he),ce==="\\"){me+=ce+T(ae,++he);continue}!Be&&ce==="."?me+="[\\s\\S]":(ce==="["?Be=!0:ce==="]"&&(Be=!1),me+=ce)}return me},H=function(ae){for(var le=ae.length,he=0,me="",Be=[],ce=k(null),te=!1,ee=!1,ie=0,Ce="",Se;he<=le;he++){if(Se=T(ae,he),Se==="\\")Se+=T(ae,++he);else if(Se==="]")te=!1;else if(!te)switch(!0){case Se==="[":te=!0;break;case Se==="(":w(O,R(ae,he+1))&&(he+=2,ee=!0),me+=Se,ie++;continue;case(Se===">"&&ee):if(Ce===""||p(ce,Ce))throw new I("Invalid capture group name");ce[Ce]=!0,Be[Be.length]=[Ce,ie],ee=!1,Ce="";continue}ee?Ce+=Se:me+=Se}return[me,Be]};if(o("RegExp",W)){for(var Y=function(){function oe(ae,le){var he=N(L,this),me=h(ae),Be=le===void 0,ce=[],te=ae,ee,ie,Ce,Se,we,pe;if(!he&&me&&Be&&ae.constructor===Y)return ae;if((me||N(L,ae))&&(ae=ae.source,Be&&(le=l(te))),ae=ae===void 0?"":s(ae),le=le===void 0?"":s(le),te=ae,b&&"dotAll"in _&&(ie=!!le&&A(le,"s")>-1,ie&&(le=M(le,/s/g,""))),ee=le,z&&"sticky"in _&&(Ce=!!le&&A(le,"y")>-1,Ce&&U&&(le=M(le,/y/g,""))),g&&(Se=H(ae),ae=Se[0],ce=Se[1]),we=m(B(ae,le),he?this:L,Y),(ie||Ce||ce.length)&&(pe=v(we),ie&&(pe.dotAll=!0,pe.raw=Y(K(ae),ee)),Ce&&(pe.sticky=!0),ce.length&&(pe.groups=ce)),ae!==te)try{V(we,"source",te===""?"(?:)":te)}catch(E){}return we}return oe}(),J=S(B),q=0;J.length>q;)i(Y,B,J[q++]);L.constructor=Y,Y.prototype=L,c(a,"RegExp",Y,{constructor:!0})}f("RegExp")},26236:function(x,r,n){"use strict";var e=n(89754),a=n(34898);e({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},1634:function(x,r,n){"use strict";var e=n(18937),a=n(52153),t=n(66074),o=n(33945),m=n(6232),V=e.RegExp,k=V.prototype,S=a&&m(function(){var N=!0;try{V(".","d")}catch(p){N=!1}var h={},s="",l=N?"dgimsy":"gimsy",u=function(v,f){Object.defineProperty(h,v,{get:function(){function C(){return s+=f,!0}return C}()})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};N&&(i.hasIndices="d");for(var c in i)u(c,i[c]);var d=Object.getOwnPropertyDescriptor(k,"flags").get.call(h);return d!==l||s!==l});S&&t(k,"flags",{configurable:!0,get:o})},56861:function(x,r,n){"use strict";var e=n(8333).PROPER,a=n(59909),t=n(74199),o=n(65263),m=n(6232),V=n(99881),k="toString",S=RegExp.prototype,N=S[k],h=m(function(){return N.call({source:"a",flags:"b"})!=="/a/b"}),s=e&&N.name!==k;(h||s)&&a(RegExp.prototype,k,function(){function l(){var u=t(this),i=o(u.source),c=o(V(u));return"/"+i+"/"+c}return l}(),{unsafe:!0})},28614:function(x,r,n){"use strict";var e=n(32376),a=n(38040);e("Set",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},30459:function(x,r,n){"use strict";n(28614)},62984:function(x,r,n){"use strict";var e=n(89754),a=n(24510),t=n(88204);e({target:"String",proto:!0,forced:t("anchor")},{anchor:function(){function o(m){return a(this,"a","name",m)}return o}()})},65782:function(x,r,n){"use strict";var e=n(89754),a=n(24510),t=n(88204);e({target:"String",proto:!0,forced:t("big")},{big:function(){function o(){return a(this,"big","","")}return o}()})},78759:function(x,r,n){"use strict";var e=n(89754),a=n(24510),t=n(88204);e({target:"String",proto:!0,forced:t("blink")},{blink:function(){function o(){return a(this,"blink","","")}return o}()})},9575:function(x,r,n){"use strict";var e=n(89754),a=n(24510),t=n(88204);e({target:"String",proto:!0,forced:t("bold")},{bold:function(){function o(){return a(this,"b","","")}return o}()})},35423:function(x,r,n){"use strict";var e=n(89754),a=n(77524).codeAt;e({target:"String",proto:!0},{codePointAt:function(){function t(o){return a(this,o)}return t}()})},48893:function(x,r,n){"use strict";var e=n(89754),a=n(7863),t=n(68431).f,o=n(25657),m=n(65263),V=n(54301),k=n(40668),S=n(28350),N=n(43546),h=a("".endsWith),s=a("".slice),l=Math.min,u=S("endsWith"),i=!N&&!u&&!!function(){var c=t(String.prototype,"endsWith");return c&&!c.writable}();e({target:"String",proto:!0,forced:!i&&!u},{endsWith:function(){function c(d){var p=m(k(this));V(d);var v=arguments.length>1?arguments[1]:void 0,f=p.length,C=v===void 0?f:l(o(v),f),b=m(d);return h?h(p,b,C):s(p,C-b.length,C)===b}return c}()})},60330:function(x,r,n){"use strict";var e=n(89754),a=n(24510),t=n(88204);e({target:"String",proto:!0,forced:t("fixed")},{fixed:function(){function o(){return a(this,"tt","","")}return o}()})},92414:function(x,r,n){"use strict";var e=n(89754),a=n(24510),t=n(88204);e({target:"String",proto:!0,forced:t("fontcolor")},{fontcolor:function(){function o(m){return a(this,"font","color",m)}return o}()})},48335:function(x,r,n){"use strict";var e=n(89754),a=n(24510),t=n(88204);e({target:"String",proto:!0,forced:t("fontsize")},{fontsize:function(){function o(m){return a(this,"font","size",m)}return o}()})},24301:function(x,r,n){"use strict";var e=n(89754),a=n(28772),t=n(98926),o=RangeError,m=String.fromCharCode,V=String.fromCodePoint,k=a([].join),S=!!V&&V.length!==1;e({target:"String",stat:!0,arity:1,forced:S},{fromCodePoint:function(){function N(h){for(var s=[],l=arguments.length,u=0,i;l>u;){if(i=+arguments[u++],t(i,1114111)!==i)throw new o(i+" is not a valid code point");s[u]=i<65536?m(i):m(((i-=65536)>>10)+55296,i%1024+56320)}return k(s,"")}return N}()})},36678:function(x,r,n){"use strict";var e=n(89754),a=n(28772),t=n(54301),o=n(40668),m=n(65263),V=n(28350),k=a("".indexOf);e({target:"String",proto:!0,forced:!V("includes")},{includes:function(){function S(N){return!!~k(m(o(this)),m(t(N)),arguments.length>1?arguments[1]:void 0)}return S}()})},89428:function(x,r,n){"use strict";var e=n(89754),a=n(24510),t=n(88204);e({target:"String",proto:!0,forced:t("italics")},{italics:function(){function o(){return a(this,"i","","")}return o}()})},86229:function(x,r,n){"use strict";var e=n(77524).charAt,a=n(65263),t=n(13358),o=n(76775),m=n(32615),V="String Iterator",k=t.set,S=t.getterFor(V);o(String,"String",function(N){k(this,{type:V,string:a(N),index:0})},function(){function N(){var h=S(this),s=h.string,l=h.index,u;return l>=s.length?m(void 0,!0):(u=e(s,l),h.index+=u.length,m(u,!1))}return N}())},16102:function(x,r,n){"use strict";var e=n(89754),a=n(24510),t=n(88204);e({target:"String",proto:!0,forced:t("link")},{link:function(){function o(m){return a(this,"a","href",m)}return o}()})},34332:function(x,r,n){"use strict";var e=n(14454),a=n(95143),t=n(74199),o=n(95605),m=n(25657),V=n(65263),k=n(40668),S=n(31338),N=n(23161),h=n(72556);a("match",function(s,l,u){return[function(){function i(c){var d=k(this),p=o(c)?void 0:S(c,s);return p?e(p,c,d):new RegExp(c)[s](V(d))}return i}(),function(i){var c=t(this),d=V(i),p=u(l,c,d);if(p.done)return p.value;if(!c.global)return h(c,d);var v=c.unicode;c.lastIndex=0;for(var f=[],C=0,b;(b=h(c,d))!==null;){var g=V(b[0]);f[C]=g,g===""&&(c.lastIndex=N(d,m(c.lastIndex),v)),C++}return C===0?null:f}]})},85787:function(x,r,n){"use strict";var e=n(89754),a=n(41121).end,t=n(54640);e({target:"String",proto:!0,forced:t},{padEnd:function(){function o(m){return a(this,m,arguments.length>1?arguments[1]:void 0)}return o}()})},27661:function(x,r,n){"use strict";var e=n(89754),a=n(41121).start,t=n(54640);e({target:"String",proto:!0,forced:t},{padStart:function(){function o(m){return a(this,m,arguments.length>1?arguments[1]:void 0)}return o}()})},58682:function(x,r,n){"use strict";var e=n(89754),a=n(28772),t=n(81366),o=n(63104),m=n(65263),V=n(78858),k=a([].push),S=a([].join);e({target:"String",stat:!0},{raw:function(){function N(h){var s=t(o(h).raw),l=V(s);if(!l)return"";for(var u=arguments.length,i=[],c=0;;){if(k(i,m(s[c++])),c===l)return S(i,"");c<u&&k(i,m(arguments[c]))}}return N}()})},96811:function(x,r,n){"use strict";var e=n(89754),a=n(46796);e({target:"String",proto:!0},{repeat:a})},38128:function(x,r,n){"use strict";var e=n(91973),a=n(14454),t=n(28772),o=n(95143),m=n(6232),V=n(74199),k=n(71839),S=n(95605),N=n(8624),h=n(25657),s=n(65263),l=n(40668),u=n(23161),i=n(31338),c=n(58420),d=n(72556),p=n(98767),v=p("replace"),f=Math.max,C=Math.min,b=t([].concat),g=t([].push),y=t("".indexOf),B=t("".slice),L=function(A){return A===void 0?A:String(A)},I=function(){return"a".replace(/./,"$0")==="$0"}(),w=function(){return/./[v]?/./[v]("a","$0")==="":!1}(),T=!m(function(){var M=/./;return M.exec=function(){var A=[];return A.groups={a:"7"},A},"".replace(M,"$<a>")!=="7"});o("replace",function(M,A,R){var O=w?"$":"$0";return[function(){function _(P,D){var z=l(this),U=S(P)?void 0:i(P,v);return U?a(U,P,z,D):a(A,s(z),P,D)}return _}(),function(_,P){var D=V(this),z=s(_);if(typeof P=="string"&&y(P,O)===-1&&y(P,"$<")===-1){var U=R(A,D,z,P);if(U.done)return U.value}var W=k(P);W||(P=s(P));var K=D.global,H;K&&(H=D.unicode,D.lastIndex=0);for(var Y=[],J;J=d(D,z),!(J===null||(g(Y,J),!K));){var q=s(J[0]);q===""&&(D.lastIndex=u(z,h(D.lastIndex),H))}for(var oe="",ae=0,le=0;le<Y.length;le++){J=Y[le];for(var he=s(J[0]),me=f(C(N(J.index),z.length),0),Be=[],ce,te=1;te<J.length;te++)g(Be,L(J[te]));var ee=J.groups;if(W){var ie=b([he],Be,me,z);ee!==void 0&&g(ie,ee),ce=s(e(P,void 0,ie))}else ce=c(he,z,me,Be,ee,P);me>=ae&&(oe+=B(z,ae,me)+ce,ae=me+he.length)}return oe+B(z,ae)}]},!T||!I||w)},41314:function(x,r,n){"use strict";var e=n(14454),a=n(95143),t=n(74199),o=n(95605),m=n(40668),V=n(9917),k=n(65263),S=n(31338),N=n(72556);a("search",function(h,s,l){return[function(){function u(i){var c=m(this),d=o(i)?void 0:S(i,h);return d?e(d,i,c):new RegExp(i)[h](k(c))}return u}(),function(u){var i=t(this),c=k(u),d=l(s,i,c);if(d.done)return d.value;var p=i.lastIndex;V(p,0)||(i.lastIndex=0);var v=N(i,c);return V(i.lastIndex,p)||(i.lastIndex=p),v===null?-1:v.index}]})},14768:function(x,r,n){"use strict";var e=n(89754),a=n(24510),t=n(88204);e({target:"String",proto:!0,forced:t("small")},{small:function(){function o(){return a(this,"small","","")}return o}()})},40641:function(x,r,n){"use strict";var e=n(91973),a=n(14454),t=n(28772),o=n(95143),m=n(74199),V=n(95605),k=n(29749),S=n(40668),N=n(40503),h=n(23161),s=n(25657),l=n(65263),u=n(31338),i=n(85120),c=n(72556),d=n(34898),p=n(85032),v=n(6232),f=p.UNSUPPORTED_Y,C=4294967295,b=Math.min,g=[].push,y=t(/./.exec),B=t(g),L=t("".slice),I=!v(function(){var w=/(?:)/,T=w.exec;w.exec=function(){return T.apply(this,arguments)};var M="ab".split(w);return M.length!==2||M[0]!=="a"||M[1]!=="b"});o("split",function(w,T,M){var A;return"abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length?A=function(O,_){var P=l(S(this)),D=_===void 0?C:_>>>0;if(D===0)return[];if(O===void 0)return[P];if(!k(O))return a(T,P,O,D);for(var z=[],U=(O.ignoreCase?"i":"")+(O.multiline?"m":"")+(O.unicode?"u":"")+(O.sticky?"y":""),W=0,K=new RegExp(O.source,U+"g"),H,Y,J;(H=a(d,K,P))&&(Y=K.lastIndex,!(Y>W&&(B(z,L(P,W,H.index)),H.length>1&&H.index<P.length&&e(g,z,i(H,1)),J=H[0].length,W=Y,z.length>=D)));)K.lastIndex===H.index&&K.lastIndex++;return W===P.length?(J||!y(K,""))&&B(z,""):B(z,L(P,W)),z.length>D?i(z,0,D):z}:"0".split(void 0,0).length?A=function(O,_){return O===void 0&&_===0?[]:a(T,this,O,_)}:A=T,[function(){function R(O,_){var P=S(this),D=V(O)?void 0:u(O,w);return D?a(D,O,P,_):a(A,l(P),O,_)}return R}(),function(R,O){var _=m(this),P=l(R),D=M(A,_,P,O,A!==T);if(D.done)return D.value;var z=N(_,RegExp),U=_.unicode,W=(_.ignoreCase?"i":"")+(_.multiline?"m":"")+(_.unicode?"u":"")+(f?"g":"y"),K=new z(f?"^(?:"+_.source+")":_,W),H=O===void 0?C:O>>>0;if(H===0)return[];if(P.length===0)return c(K,P)===null?[P]:[];for(var Y=0,J=0,q=[];J<P.length;){K.lastIndex=f?0:J;var oe=c(K,f?L(P,J):P),ae;if(oe===null||(ae=b(s(K.lastIndex+(f?J:0)),P.length))===Y)J=h(P,J,U);else{if(B(q,L(P,Y,J)),q.length===H)return q;for(var le=1;le<=oe.length-1;le++)if(B(q,oe[le]),q.length===H)return q;J=Y=ae}}return B(q,L(P,Y)),q}]},!I,f)},81615:function(x,r,n){"use strict";var e=n(89754),a=n(7863),t=n(68431).f,o=n(25657),m=n(65263),V=n(54301),k=n(40668),S=n(28350),N=n(43546),h=a("".startsWith),s=a("".slice),l=Math.min,u=S("startsWith"),i=!N&&!u&&!!function(){var c=t(String.prototype,"startsWith");return c&&!c.writable}();e({target:"String",proto:!0,forced:!i&&!u},{startsWith:function(){function c(d){var p=m(k(this));V(d);var v=o(l(arguments.length>1?arguments[1]:void 0,p.length)),f=m(d);return h?h(p,f,v):s(p,v,v+f.length)===f}return c}()})},30260:function(x,r,n){"use strict";var e=n(89754),a=n(24510),t=n(88204);e({target:"String",proto:!0,forced:t("strike")},{strike:function(){function o(){return a(this,"strike","","")}return o}()})},58965:function(x,r,n){"use strict";var e=n(89754),a=n(24510),t=n(88204);e({target:"String",proto:!0,forced:t("sub")},{sub:function(){function o(){return a(this,"sub","","")}return o}()})},22698:function(x,r,n){"use strict";var e=n(89754),a=n(24510),t=n(88204);e({target:"String",proto:!0,forced:t("sup")},{sup:function(){function o(){return a(this,"sup","","")}return o}()})},35242:function(x,r,n){"use strict";n(98523);var e=n(89754),a=n(36080);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==a},{trimEnd:a})},9994:function(x,r,n){"use strict";var e=n(89754),a=n(472);e({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==a},{trimLeft:a})},98523:function(x,r,n){"use strict";var e=n(89754),a=n(36080);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==a},{trimRight:a})},91916:function(x,r,n){"use strict";n(9994);var e=n(89754),a=n(472);e({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==a},{trimStart:a})},80296:function(x,r,n){"use strict";var e=n(89754),a=n(63891).trim,t=n(68775);e({target:"String",proto:!0,forced:t("trim")},{trim:function(){function o(){return a(this)}return o}()})},27249:function(x,r,n){"use strict";var e=n(37441);e("asyncIterator")},62836:function(x,r,n){"use strict";var e=n(89754),a=n(18937),t=n(14454),o=n(28772),m=n(43546),V=n(52153),k=n(11851),S=n(6232),N=n(70879),h=n(32284),s=n(74199),l=n(81366),u=n(30198),i=n(65263),c=n(43683),d=n(90552),p=n(97234),v=n(75200),f=n(12258),C=n(37),b=n(68431),g=n(12305),y=n(27303),B=n(38684),L=n(59909),I=n(66074),w=n(76838),T=n(79471),M=n(78876),A=n(20228),R=n(98767),O=n(26483),_=n(37441),P=n(97510),D=n(17192),z=n(13358),U=n(77887).forEach,W=T("hidden"),K="Symbol",H="prototype",Y=z.set,J=z.getterFor(K),q=Object[H],oe=a.Symbol,ae=oe&&oe[H],le=a.RangeError,he=a.TypeError,me=a.QObject,Be=b.f,ce=g.f,te=f.f,ee=B.f,ie=o([].push),Ce=w("symbols"),Se=w("op-symbols"),we=w("wks"),pe=!me||!me[H]||!me[H].findChild,E=function(de,ge,j){var ue=Be(q,ge);ue&&delete q[ge],ce(de,ge,j),ue&&de!==q&&ce(q,ge,ue)},Z=V&&S(function(){return d(ce({},"a",{get:function(){function Oe(){return ce(this,"a",{value:7}).a}return Oe}()})).a!==7})?E:ce,re=function(de,ge){var j=Ce[de]=d(ae);return Y(j,{type:K,tag:de,description:ge}),V||(j.description=ge),j},X=function(){function Oe(de,ge,j){de===q&&X(Se,ge,j),s(de);var ue=u(ge);return s(j),N(Ce,ue)?(j.enumerable?(N(de,W)&&de[W][ue]&&(de[W][ue]=!1),j=d(j,{enumerable:c(0,!1)})):(N(de,W)||ce(de,W,c(1,{})),de[W][ue]=!0),Z(de,ue,j)):ce(de,ue,j)}return Oe}(),ne=function(){function Oe(de,ge){s(de);var j=l(ge),ue=p(j).concat(Ae(j));return U(ue,function(be){(!V||t(Ve,j,be))&&X(de,be,j[be])}),de}return Oe}(),ve=function(){function Oe(de,ge){return ge===void 0?d(de):ne(d(de),ge)}return Oe}(),Ve=function(){function Oe(de){var ge=u(de),j=t(ee,this,ge);return this===q&&N(Ce,ge)&&!N(Se,ge)?!1:j||!N(this,ge)||!N(Ce,ge)||N(this,W)&&this[W][ge]?j:!0}return Oe}(),Ie=function(){function Oe(de,ge){var j=l(de),ue=u(ge);if(!(j===q&&N(Ce,ue)&&!N(Se,ue))){var be=Be(j,ue);return be&&N(Ce,ue)&&!(N(j,W)&&j[W][ue])&&(be.enumerable=!0),be}}return Oe}(),Pe=function(){function Oe(de){var ge=te(l(de)),j=[];return U(ge,function(ue){!N(Ce,ue)&&!N(M,ue)&&ie(j,ue)}),j}return Oe}(),Ae=function(de){var ge=de===q,j=te(ge?Se:l(de)),ue=[];return U(j,function(be){N(Ce,be)&&(!ge||N(q,be))&&ie(ue,Ce[be])}),ue};k||(oe=function(){function Oe(){if(h(ae,this))throw new he("Symbol is not a constructor");var de=!arguments.length||arguments[0]===void 0?void 0:i(arguments[0]),ge=A(de),j=function(){function ue(be){var ke=this===void 0?a:this;ke===q&&t(ue,Se,be),N(ke,W)&&N(ke[W],ge)&&(ke[W][ge]=!1);var Te=c(1,be);try{Z(ke,ge,Te)}catch(Ee){if(!(Ee instanceof le))throw Ee;E(ke,ge,Te)}}return ue}();return V&&pe&&Z(q,ge,{configurable:!0,set:j}),re(ge,de)}return Oe}(),ae=oe[H],L(ae,"toString",function(){function Oe(){return J(this).tag}return Oe}()),L(oe,"withoutSetter",function(Oe){return re(A(Oe),Oe)}),B.f=Ve,g.f=X,y.f=ne,b.f=Ie,v.f=f.f=Pe,C.f=Ae,O.f=function(Oe){return re(R(Oe),Oe)},V&&(I(ae,"description",{configurable:!0,get:function(){function Oe(){return J(this).description}return Oe}()}),m||L(q,"propertyIsEnumerable",Ve,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!k,sham:!k},{Symbol:oe}),U(p(we),function(Oe){_(Oe)}),e({target:K,stat:!0,forced:!k},{useSetter:function(){function Oe(){pe=!0}return Oe}(),useSimple:function(){function Oe(){pe=!1}return Oe}()}),e({target:"Object",stat:!0,forced:!k,sham:!V},{create:ve,defineProperty:X,defineProperties:ne,getOwnPropertyDescriptor:Ie}),e({target:"Object",stat:!0,forced:!k},{getOwnPropertyNames:Pe}),P(),D(oe,K),M[W]=!0},86738:function(x,r,n){"use strict";var e=n(89754),a=n(52153),t=n(18937),o=n(28772),m=n(70879),V=n(71839),k=n(32284),S=n(65263),N=n(66074),h=n(71956),s=t.Symbol,l=s&&s.prototype;if(a&&V(s)&&(!("description"in l)||s().description!==void 0)){var u={},i=function(){function b(){var g=arguments.length<1||arguments[0]===void 0?void 0:S(arguments[0]),y=k(l,this)?new s(g):g===void 0?s():s(g);return g===""&&(u[y]=!0),y}return b}();h(i,s),i.prototype=l,l.constructor=i;var c=String(s("description detection"))==="Symbol(description detection)",d=o(l.valueOf),p=o(l.toString),v=/^Symbol\((.*)\)[^)]+$/,f=o("".replace),C=o("".slice);N(l,"description",{configurable:!0,get:function(){function b(){var g=d(this);if(m(u,g))return"";var y=p(g),B=c?C(y,7,-1):f(y,v,"$1");return B===""?void 0:B}return b}()}),e({global:!0,constructor:!0,forced:!0},{Symbol:i})}},18832:function(x,r,n){"use strict";var e=n(89754),a=n(31640),t=n(70879),o=n(65263),m=n(76838),V=n(90606),k=m("string-to-symbol-registry"),S=m("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!V},{for:function(){function N(h){var s=o(h);if(t(k,s))return k[s];var l=a("Symbol")(s);return k[s]=l,S[l]=s,l}return N}()})},28344:function(x,r,n){"use strict";var e=n(37441);e("hasInstance")},68616:function(x,r,n){"use strict";var e=n(37441);e("isConcatSpreadable")},95980:function(x,r,n){"use strict";var e=n(37441);e("iterator")},61313:function(x,r,n){"use strict";n(62836),n(18832),n(91876),n(82943),n(88467)},91876:function(x,r,n){"use strict";var e=n(89754),a=n(70879),t=n(74159),o=n(74991),m=n(76838),V=n(90606),k=m("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!V},{keyFor:function(){function S(N){if(!t(N))throw new TypeError(o(N)+" is not a symbol");if(a(k,N))return k[N]}return S}()})},8712:function(x,r,n){"use strict";var e=n(37441);e("match")},77898:function(x,r,n){"use strict";var e=n(37441);e("replace")},70567:function(x,r,n){"use strict";var e=n(37441);e("search")},17430:function(x,r,n){"use strict";var e=n(37441);e("species")},95898:function(x,r,n){"use strict";var e=n(37441);e("split")},90062:function(x,r,n){"use strict";var e=n(37441),a=n(97510);e("toPrimitive"),a()},14373:function(x,r,n){"use strict";var e=n(31640),a=n(37441),t=n(17192);a("toStringTag"),t(e("Symbol"),"Symbol")},13802:function(x,r,n){"use strict";var e=n(37441);e("unscopables")},84973:function(x,r,n){"use strict";var e=n(28772),a=n(32072),t=n(95349),o=e(t),m=a.aTypedArray,V=a.exportTypedArrayMethod;V("copyWithin",function(){function k(S,N){return o(m(this),S,N,arguments.length>2?arguments[2]:void 0)}return k}())},18952:function(x,r,n){"use strict";var e=n(32072),a=n(77887).every,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("every",function(){function m(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return m}())},72168:function(x,r,n){"use strict";var e=n(32072),a=n(55149),t=n(49685),o=n(76176),m=n(14454),V=n(28772),k=n(6232),S=e.aTypedArray,N=e.exportTypedArrayMethod,h=V("".slice),s=k(function(){var l=0;return new Int8Array(2).fill({valueOf:function(){function u(){return l++}return u}()}),l!==1});N("fill",function(){function l(u){var i=arguments.length;S(this);var c=h(o(this),0,3)==="Big"?t(u):+u;return m(a,this,c,i>1?arguments[1]:void 0,i>2?arguments[2]:void 0)}return l}(),s)},52986:function(x,r,n){"use strict";var e=n(32072),a=n(77887).filter,t=n(754),o=e.aTypedArray,m=e.exportTypedArrayMethod;m("filter",function(){function V(k){var S=a(o(this),k,arguments.length>1?arguments[1]:void 0);return t(this,S)}return V}())},32584:function(x,r,n){"use strict";var e=n(32072),a=n(77887).findIndex,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("findIndex",function(){function m(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return m}())},34957:function(x,r,n){"use strict";var e=n(32072),a=n(77887).find,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("find",function(){function m(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return m}())},51714:function(x,r,n){"use strict";var e=n(64229);e("Float32",function(a){return function(){function t(o,m,V){return a(this,o,m,V)}return t}()})},14686:function(x,r,n){"use strict";var e=n(64229);e("Float64",function(a){return function(){function t(o,m,V){return a(this,o,m,V)}return t}()})},98371:function(x,r,n){"use strict";var e=n(32072),a=n(77887).forEach,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("forEach",function(){function m(V){a(t(this),V,arguments.length>1?arguments[1]:void 0)}return m}())},37218:function(x,r,n){"use strict";var e=n(16728),a=n(32072).exportTypedArrayStaticMethod,t=n(88695);a("from",t,e)},82935:function(x,r,n){"use strict";var e=n(32072),a=n(68845).includes,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("includes",function(){function m(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return m}())},5766:function(x,r,n){"use strict";var e=n(32072),a=n(68845).indexOf,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("indexOf",function(){function m(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return m}())},26927:function(x,r,n){"use strict";var e=n(64229);e("Int16",function(a){return function(){function t(o,m,V){return a(this,o,m,V)}return t}()})},21968:function(x,r,n){"use strict";var e=n(64229);e("Int32",function(a){return function(){function t(o,m,V){return a(this,o,m,V)}return t}()})},75067:function(x,r,n){"use strict";var e=n(64229);e("Int8",function(a){return function(){function t(o,m,V){return a(this,o,m,V)}return t}()})},73105:function(x,r,n){"use strict";var e=n(18937),a=n(6232),t=n(28772),o=n(32072),m=n(33700),V=n(98767),k=V("iterator"),S=e.Uint8Array,N=t(m.values),h=t(m.keys),s=t(m.entries),l=o.aTypedArray,u=o.exportTypedArrayMethod,i=S&&S.prototype,c=!a(function(){i[k].call([1])}),d=!!i&&i.values&&i[k]===i.values&&i.values.name==="values",p=function(){function v(){return N(l(this))}return v}();u("entries",function(){function v(){return s(l(this))}return v}(),c),u("keys",function(){function v(){return h(l(this))}return v}(),c),u("values",p,c||!d,{name:"values"}),u(k,p,c||!d,{name:"values"})},24620:function(x,r,n){"use strict";var e=n(32072),a=n(28772),t=e.aTypedArray,o=e.exportTypedArrayMethod,m=a([].join);o("join",function(){function V(k){return m(t(this),k)}return V}())},59437:function(x,r,n){"use strict";var e=n(32072),a=n(91973),t=n(70510),o=e.aTypedArray,m=e.exportTypedArrayMethod;m("lastIndexOf",function(){function V(k){var S=arguments.length;return a(t,o(this),S>1?[k,arguments[1]]:[k])}return V}())},19444:function(x,r,n){"use strict";var e=n(32072),a=n(77887).map,t=n(42598),o=e.aTypedArray,m=e.exportTypedArrayMethod;m("map",function(){function V(k){return a(o(this),k,arguments.length>1?arguments[1]:void 0,function(S,N){return new(t(S))(N)})}return V}())},27854:function(x,r,n){"use strict";var e=n(32072),a=n(16728),t=e.aTypedArrayConstructor,o=e.exportTypedArrayStaticMethod;o("of",function(){function m(){for(var V=0,k=arguments.length,S=new(t(this))(k);k>V;)S[V]=arguments[V++];return S}return m}(),a)},10484:function(x,r,n){"use strict";var e=n(32072),a=n(21716).right,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduceRight",function(){function m(V){var k=arguments.length;return a(t(this),V,k,k>1?arguments[1]:void 0)}return m}())},82814:function(x,r,n){"use strict";var e=n(32072),a=n(21716).left,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduce",function(){function m(V){var k=arguments.length;return a(t(this),V,k,k>1?arguments[1]:void 0)}return m}())},3014:function(x,r,n){"use strict";var e=n(32072),a=e.aTypedArray,t=e.exportTypedArrayMethod,o=Math.floor;t("reverse",function(){function m(){for(var V=this,k=a(V).length,S=o(k/2),N=0,h;N<S;)h=V[N],V[N++]=V[--k],V[k]=h;return V}return m}())},11204:function(x,r,n){"use strict";var e=n(18937),a=n(14454),t=n(32072),o=n(78858),m=n(10371),V=n(63104),k=n(6232),S=e.RangeError,N=e.Int8Array,h=N&&N.prototype,s=h&&h.set,l=t.aTypedArray,u=t.exportTypedArrayMethod,i=!k(function(){var d=new Uint8ClampedArray(2);return a(s,d,{length:1,0:3},1),d[1]!==3}),c=i&&t.NATIVE_ARRAY_BUFFER_VIEWS&&k(function(){var d=new N(2);return d.set(1),d.set("2",1),d[0]!==0||d[1]!==2});u("set",function(){function d(p){l(this);var v=m(arguments.length>1?arguments[1]:void 0,1),f=V(p);if(i)return a(s,this,f,v);var C=this.length,b=o(f),g=0;if(b+v>C)throw new S("Wrong length");for(;g<b;)this[v+g]=f[g++]}return d}(),!i||c)},63107:function(x,r,n){"use strict";var e=n(32072),a=n(42598),t=n(6232),o=n(2497),m=e.aTypedArray,V=e.exportTypedArrayMethod,k=t(function(){new Int8Array(1).slice()});V("slice",function(){function S(N,h){for(var s=o(m(this),N,h),l=a(this),u=0,i=s.length,c=new l(i);i>u;)c[u]=s[u++];return c}return S}(),k)},6912:function(x,r,n){"use strict";var e=n(32072),a=n(77887).some,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("some",function(){function m(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return m}())},11626:function(x,r,n){"use strict";var e=n(18937),a=n(7863),t=n(6232),o=n(67194),m=n(54727),V=n(32072),k=n(84467),S=n(61954),N=n(38643),h=n(60441),s=V.aTypedArray,l=V.exportTypedArrayMethod,u=e.Uint16Array,i=u&&a(u.prototype.sort),c=!!i&&!(t(function(){i(new u(2),null)})&&t(function(){i(new u(2),{})})),d=!!i&&!t(function(){if(N)return N<74;if(k)return k<67;if(S)return!0;if(h)return h<602;var v=new u(516),f=Array(516),C,b;for(C=0;C<516;C++)b=C%4,v[C]=515-C,f[C]=C-2*b+3;for(i(v,function(g,y){return(g/4|0)-(y/4|0)}),C=0;C<516;C++)if(v[C]!==f[C])return!0}),p=function(f){return function(C,b){return f!==void 0?+f(C,b)||0:b!==b?-1:C!==C?1:C===0&&b===0?1/C>0&&1/b<0?1:-1:C>b}};l("sort",function(){function v(f){return f!==void 0&&o(f),d?i(this,f):m(s(this),p(f))}return v}(),!d||c)},32063:function(x,r,n){"use strict";var e=n(32072),a=n(25657),t=n(98926),o=n(42598),m=e.aTypedArray,V=e.exportTypedArrayMethod;V("subarray",function(){function k(S,N){var h=m(this),s=h.length,l=t(S,s),u=o(h);return new u(h.buffer,h.byteOffset+l*h.BYTES_PER_ELEMENT,a((N===void 0?s:t(N,s))-l))}return k}())},69329:function(x,r,n){"use strict";var e=n(18937),a=n(91973),t=n(32072),o=n(6232),m=n(2497),V=e.Int8Array,k=t.aTypedArray,S=t.exportTypedArrayMethod,N=[].toLocaleString,h=!!V&&o(function(){N.call(new V(1))}),s=o(function(){return[1,2].toLocaleString()!==new V([1,2]).toLocaleString()})||!o(function(){V.prototype.toLocaleString.call([1,2])});S("toLocaleString",function(){function l(){return a(N,h?m(k(this)):k(this),m(arguments))}return l}(),s)},19341:function(x,r,n){"use strict";var e=n(32072).exportTypedArrayMethod,a=n(6232),t=n(18937),o=n(28772),m=t.Uint8Array,V=m&&m.prototype||{},k=[].toString,S=o([].join);a(function(){k.call({})})&&(k=function(){function h(){return S(this)}return h}());var N=V.toString!==k;e("toString",k,N)},45681:function(x,r,n){"use strict";var e=n(64229);e("Uint16",function(a){return function(){function t(o,m,V){return a(this,o,m,V)}return t}()})},13801:function(x,r,n){"use strict";var e=n(64229);e("Uint32",function(a){return function(){function t(o,m,V){return a(this,o,m,V)}return t}()})},97690:function(x,r,n){"use strict";var e=n(64229);e("Uint8",function(a){return function(){function t(o,m,V){return a(this,o,m,V)}return t}()})},34237:function(x,r,n){"use strict";var e=n(64229);e("Uint8",function(a){return function(){function t(o,m,V){return a(this,o,m,V)}return t}()},!0)},13761:function(x,r,n){"use strict";var e=n(62579),a=n(18937),t=n(28772),o=n(62425),m=n(62038),V=n(32376),k=n(58385),S=n(81216),N=n(13358).enforce,h=n(6232),s=n(38641),l=Object,u=Array.isArray,i=l.isExtensible,c=l.isFrozen,d=l.isSealed,p=l.freeze,v=l.seal,f={},C={},b=!a.ActiveXObject&&"ActiveXObject"in a,g,y=function(O){return function(){function _(){return O(this,arguments.length?arguments[0]:void 0)}return _}()},B=V("WeakMap",y,k),L=B.prototype,I=t(L.set),w=function(){return e&&h(function(){var O=p([]);return I(new B,O,1),!c(O)})};if(s)if(b){g=k.getConstructor(y,"WeakMap",!0),m.enable();var T=t(L.delete),M=t(L.has),A=t(L.get);o(L,{delete:function(){function R(O){if(S(O)&&!i(O)){var _=N(this);return _.frozen||(_.frozen=new g),T(this,O)||_.frozen.delete(O)}return T(this,O)}return R}(),has:function(){function R(O){if(S(O)&&!i(O)){var _=N(this);return _.frozen||(_.frozen=new g),M(this,O)||_.frozen.has(O)}return M(this,O)}return R}(),get:function(){function R(O){if(S(O)&&!i(O)){var _=N(this);return _.frozen||(_.frozen=new g),M(this,O)?A(this,O):_.frozen.get(O)}return A(this,O)}return R}(),set:function(){function R(O,_){if(S(O)&&!i(O)){var P=N(this);P.frozen||(P.frozen=new g),M(this,O)?I(this,O,_):P.frozen.set(O,_)}else I(this,O,_);return this}return R}()})}else w()&&o(L,{set:function(){function R(O,_){var P;return u(O)&&(c(O)?P=f:d(O)&&(P=C)),I(this,O,_),P===f&&p(O),P===C&&v(O),this}return R}()})},58883:function(x,r,n){"use strict";n(13761)},50943:function(x,r,n){"use strict";var e=n(32376),a=n(58385);e("WeakSet",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},81736:function(x,r,n){"use strict";n(50943)},47703:function(x,r,n){"use strict";var e=n(89754),a=n(18937),t=n(16812).clear;e({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==t},{clearImmediate:t})},50845:function(x,r,n){"use strict";n(47703),n(12392)},89602:function(x,r,n){"use strict";var e=n(89754),a=n(18937),t=n(73399),o=n(67194),m=n(63625),V=n(31786),k=a.process;e({global:!0,enumerable:!0,dontCallGetSet:!0},{queueMicrotask:function(){function S(N){m(arguments.length,1),o(N);var h=V&&k.domain;t(h?h.bind(N):N)}return S}()})},12392:function(x,r,n){"use strict";var e=n(89754),a=n(18937),t=n(16812).set,o=n(34750),m=a.setImmediate?o(t,!1):t;e({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==m},{setImmediate:m})},24796:function(x,r,n){"use strict";var e=n(89754),a=n(18937),t=n(34750),o=t(a.setInterval,!0);e({global:!0,bind:!0,forced:a.setInterval!==o},{setInterval:o})},93819:function(x,r,n){"use strict";var e=n(89754),a=n(18937),t=n(34750),o=t(a.setTimeout,!0);e({global:!0,bind:!0,forced:a.setTimeout!==o},{setTimeout:o})},31015:function(x,r,n){"use strict";n(24796),n(93819)},60207:function(x){"use strict";/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/var r,n=[],e=[],a=function(){if(0)var N},t=function(N){return e.push(N)},o=function(N){var h=[],s=function(c){return typeof c=="number"&&!Number.isFinite(c)?{__number__:String(c)}:typeof c=="undefined"?{__undefined__:!0}:c},l=function(c,d){if(typeof d=="object"){if(d===null)return d;if(h.includes(d))return"[circular ref]";h.push(d);var p=d instanceof Error||d.code&&d.message&&d.message.includes("Error");return p?{__error__:!0,string:String(d),stack:d.stack}:Array.isArray(d)?d.map(s):d}return s(d)},u=JSON.stringify(N,l);return h=null,u},m=function(N){if(0)var h,s,l},V=function(N,h){if(0)var s,l,u},k=function(){};x.exports={subscribe:t,sendMessage:m,sendLogEntry:V,setupHotReloading:k}}},Vn={};function fe(x){var r=Vn[x];if(r!==void 0)return r.exports;var n=Vn[x]={exports:{}};return Ln[x](n,n.exports,fe),n.exports}(function(){fe.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(x){if(typeof window=="object")return window}}()})(),function(){fe.o=function(x,r){return Object.prototype.hasOwnProperty.call(x,r)}}();var In={};(function(){"use strict";fe(61313),fe(86738),fe(27249),fe(28344),fe(68616),fe(95980),fe(8712),fe(77898),fe(70567),fe(17430),fe(95898),fe(90062),fe(14373),fe(13802),fe(33684),fe(42005),fe(41041),fe(65701),fe(95749),fe(71478),fe(28132),fe(76127),fe(58795),fe(68018),fe(75314),fe(88450),fe(73238),fe(64319),fe(33700),fe(61378),fe(69893),fe(80430),fe(87201),fe(62166),fe(9941),fe(71790),fe(75157),fe(44305),fe(13746),fe(71957),fe(52525),fe(12797),fe(34330),fe(41733),fe(37657),fe(32172),fe(31387),fe(83771),fe(9232),fe(77812),fe(97786),fe(16070),fe(84941),fe(81765),fe(10174),fe(3767),fe(29584),fe(24309),fe(13275),fe(43162),fe(60782),fe(71947),fe(85874),fe(45957),fe(56321),fe(78056),fe(37867),fe(8097),fe(28917),fe(57466),fe(76064),fe(77133),fe(17681),fe(52998),fe(78886),fe(49534),fe(17559),fe(71338),fe(98911),fe(58709),fe(48342),fe(69204),fe(93492),fe(92284),fe(99335),fe(87506),fe(2406),fe(39160),fe(19493),fe(3464),fe(39451),fe(82362),fe(34629),fe(66825),fe(79252),fe(12645),fe(77316),fe(95867),fe(53900),fe(31118),fe(68681),fe(37836),fe(68933),fe(86346),fe(49037),fe(54818),fe(55548),fe(969),fe(7734),fe(78696),fe(93607),fe(27480),fe(21757),fe(41518),fe(95156),fe(66432),fe(99857),fe(7050),fe(47910),fe(9799),fe(62584),fe(83844),fe(38622),fe(38685),fe(50904),fe(48098),fe(9023),fe(82811),fe(82469),fe(93037),fe(26236),fe(1634),fe(56861),fe(30459),fe(35423),fe(48893),fe(24301),fe(36678),fe(86229),fe(34332),fe(85787),fe(27661),fe(58682),fe(96811),fe(38128),fe(41314),fe(40641),fe(81615),fe(80296),fe(35242),fe(91916),fe(62984),fe(65782),fe(78759),fe(9575),fe(60330),fe(92414),fe(48335),fe(89428),fe(16102),fe(14768),fe(30260),fe(58965),fe(22698),fe(51714),fe(14686),fe(75067),fe(26927),fe(21968),fe(97690),fe(34237),fe(45681),fe(13801),fe(84973),fe(18952),fe(72168),fe(52986),fe(34957),fe(32584),fe(98371),fe(37218),fe(82935),fe(5766),fe(73105),fe(24620),fe(59437),fe(19444),fe(27854),fe(82814),fe(10484),fe(3014),fe(11204),fe(63107),fe(6912),fe(11626),fe(32063),fe(69329),fe(19341),fe(58883),fe(81736),fe(50845),fe(89602),fe(31015),fe(27717),fe(9084)})(),function(){"use strict";var x=fe(58734);fe(30539),fe(26867),fe(38390),fe(10497),fe(98501),fe(38163),fe(9904),fe(44095),fe(75205),fe(17379),fe(32093),fe(43681),fe(71124);var r=fe(27289),n=fe(27803),e=fe(72630),a=fe(15645),t=fe(80835),o=fe(73764),m=fe(60207),V;/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/a.perf.mark("inception",(V=window.performance)==null||(V=V.timing)==null?void 0:V.navigationStart),a.perf.mark("init");var k=(0,r.configureStore)(),S=(0,e.createRenderer)(function(){var h=fe(61082),s=h.getRoutedComponent,l=s(k);return(0,x.createComponentVNode)(2,r.StoreProvider,{store:k,children:(0,x.createComponentVNode)(2,l)})}),N=function h(){if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",h);return}(0,t.setupGlobalEvents)(),(0,o.setupHotKeys)(),(0,n.captureExternalLinks)(),k.subscribe(S),Byond.subscribe(function(s,l){return k.dispatch({type:s,payload:l})})};N()}()})();})();
|