0?2*Ee/(se+Ee)*100:0,v:se+Ee,a:pe}},C=function(ue){return ee(N(ue))},O=function(ue){var ye=ue.h,Ee=ue.s,se=ue.v,pe=ue.a,ge=(200-Ee)*se/100;return{h:i(ye),s:i(ge>0&&ge<200?Ee*se/100/(ge<=100?ge:200-ge)*100:0),l:i(ge/2),a:i(pe,2)}},A=function(ue){var ye=O(ue),Ee=ye.h,se=ye.s,pe=ye.l;return"hsl("+Ee+", "+se+"%, "+pe+"%)"},S=function(ue){var ye=re(ue),Ee=ye.h,se=ye.s,pe=ye.v;return"hsv("+Ee+", "+se+"%, "+pe+"%)"},P=function(ue){var ye=re(ue),Ee=ye.h,se=ye.s,pe=ye.v,ge=ye.a;return"hsva("+Ee+", "+se+"%, "+pe+"%, "+ge+")"},R=function(ue){var ye=O(ue),Ee=ye.h,se=ye.s,pe=ye.l,ge=ye.a;return"hsla("+Ee+", "+se+"%, "+pe+"%, "+ge+")"},N=function(ue){var ye=ue.h,Ee=ue.s,se=ue.v,pe=ue.a;ye=ye/360*6,Ee=Ee/100,se=se/100;var ge=Math.floor(ye),Ie=se*(1-Ee),xe=se*(1-(ye-ge)*Ee),Oe=se*(1-(1-ye+ge)*Ee),Be=ge%6;return{r:[se,xe,Ie,Ie,Oe,se][Be]*255,g:[Oe,se,se,xe,Ie,Ie][Be]*255,b:[Ie,Ie,Oe,se,se,xe][Be]*255,a:i(pe,2)}},W=function(ue){var ye=N(ue),Ee=ye.r,se=ye.g,pe=ye.b;return"rgb("+i(Ee)+", "+i(se)+", "+i(pe)+")"},V=function(ue){var ye=N(ue),Ee=ye.r,se=ye.g,pe=ye.b,ge=ye.a;return"rgba("+i(Ee)+", "+i(se)+", "+i(pe)+", "+i(ge,2)+")"},H=function(ue){var ye=/hsva?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,Ee=ye.exec(ue);return Ee?re({h:w(Ee[1],Ee[2]),s:Number(Ee[3]),v:Number(Ee[4]),a:Ee[5]===void 0?1:Number(Ee[5])/(Ee[6]?100:1)}):{h:0,s:0,v:0,a:1}},Q=null,J=function(ue){var ye=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,Ee=ye.exec(ue);return Ee?oe({r:Number(Ee[1])/(Ee[2]?100/255:1),g:Number(Ee[3])/(Ee[4]?100/255:1),b:Number(Ee[5])/(Ee[6]?100/255:1),a:Ee[7]===void 0?1:Number(Ee[7])/(Ee[8]?100:1)}):{h:0,s:0,v:0,a:1}},X=null,q=function(ue){var ye=ue.toString(16);return ye.length<2?"0"+ye:ye},ee=function(ue){var ye=ue.r,Ee=ue.g,se=ue.b,pe=ue.a,ge=pe<1?q(i(pe*255)):"";return"#"+q(i(ye))+q(i(Ee))+q(i(se))+ge},oe=function(ue){var ye=ue.r,Ee=ue.g,se=ue.b,pe=ue.a,ge=Math.max(ye,Ee,se),Ie=ge-Math.min(ye,Ee,se),xe=Ie?ge===ye?(Ee-se)/Ie:ge===Ee?2+(se-ye)/Ie:4+(ye-Ee)/Ie:0;return{h:60*(xe<0?xe+6:xe),s:ge?Ie/ge*100:0,v:ge/255*100,a:pe}},re=function(ue){return{h:i(ue.h),s:i(ue.s),v:i(ue.v),a:i(ue.a,2)}},ae=function(ue){var ye=ue.r,Ee=ue.g,se=ue.b;return{r:ye,g:Ee,b:se}},le=function(ue){var ye=ue.h,Ee=ue.s,se=ue.l;return{h:ye,s:Ee,l:se}},de=function(ue){var ye=re(ue),Ee=ye.h,se=ye.s,pe=ye.v;return{h:Ee,s:se,v:pe}},me=/^#?([0-9A-F]{3,8})$/i,fe=function(ue,ye){var Ee=me.exec(ue),se=Ee?Ee[1].length:0;return se===3||se===6||!!ye&&se===4||!!ye&&se===8}},6544:function(Y,T,s){"use strict";s.d(T,{C:function(){return vn},Pf:function(){return ge},Pm:function(){return X},R:function(){return H},Ri:function(){return x},S$:function(){return S},Ss:function(){return w},W8:function(){return ue},Wy:function(){return fe},Yw:function(){return Yr},aW:function(){return p},bE:function(){return A},bh:function(){return Tt},cH:function(){return L},gf:function(){return W},hr:function(){return Dt},iU:function(){return N},iX:function(){return R},iy:function(){return O},kN:function(){return ht},re:function(){return y},s6:function(){return C},sP:function(){return kn},sV:function(){return Lt},u5:function(){return P},ye:function(){return i},zh:function(){return V}});var i=8,p=9,x=13,y=16,w=17,L=18,U=19,_=20,C=27,O=32,A=33,S=34,P=35,R=36,N=37,W=38,V=39,H=40,Q=45,J=46,X=48,q=49,ee=50,oe=51,re=52,ae=53,le=54,de=55,me=56,fe=57,ue=65,ye=66,Ee=67,se=68,pe=69,ge=70,Ie=71,xe=72,Oe=73,Be=74,Ke=75,ke=76,Ve=77,lt=78,Ye=79,He=80,ft=81,Rt=82,Ge=83,et=84,at=85,gt=86,dt=87,Pt=88,Et=89,Tt=90,Dt=96,qe=97,vt=98,st=99,Ut=100,Vt=101,Bt=102,kt=103,un=104,vn=105,yt=106,pt=107,ot=109,ht=110,Ct=111,Lt=112,Qt=113,pn=114,fn=115,kn=116,wn=117,Fn=118,$n=119,jr=120,ur=121,Gr=122,Yr=123,ho=135,mo=186,Uo=187,Yn=188,Wo=189,Ar=190,vo=191,Ur=219,Ii=220,go=221,Ko=222},87239:function(Y,T,s){"use strict";s.d(T,{K:function(){return p},_:function(){return i}});var i=function(x){return x.Alt="Alt",x.Backspace="Backspace",x.Control="Control",x.Delete="Delete",x.Down="ArrowDown",x.End="End",x.Enter="Enter",x.Esc="Esc",x.Escape="Escape",x.Home="Home",x.Insert="Insert",x.Left="ArrowLeft",x.PageDown="PageDown",x.PageUp="PageUp",x.Right="ArrowRight",x.Shift="Shift",x.Space=" ",x.Tab="Tab",x.Up="ArrowUp",x}({});function p(x){return x==="Esc"||x==="Escape"}},4089:function(Y,T,s){"use strict";s.d(T,{EC:function(){return A},Mg:function(){return _}});function i(S,P){(P==null||P>S.length)&&(P=S.length);for(var R=0,N=new Array(P);R=S.length?{done:!0}:{done:!1,value:S[N++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var y=function(S,P,R){return S
R?R:S},w=function(S){return S<0?0:S>1?1:S},L=function(S,P,R){return(S-P)/(R-P)},U=function(S,P){if(!S||isNaN(S))return S;var R,N,W,V;return P|=0,R=Math.pow(10,P),S*=R,V=+(S>0)|-(S<0),W=Math.abs(S%1)>=.4999999999854481,N=Math.floor(S),W&&(S=N+(V>0)),(W?S:Math.round(S))/R},_=function(S,P){return P===void 0&&(P=0),Number(S).toFixed(Math.max(P,0))},C=function(S,P){return P&&S>=P[0]&&S<=P[1]},O=function(S,P){for(var R=x(Object.keys(P)),N;!(N=R()).done;){var W=N.value,V=P[W];if(C(S,V))return W}},A=function(S){return Math.floor(S)!==S&&S.toString().split(".")[1].length||0}},56236:function(Y,T,s){"use strict";s.d(T,{k:function(){return O}});var i,p=60,x=1e3/p,y=!!((i=window.performance)!=null&&i.now),w={},L={};function U(A,S){}function _(A,S){return;var P,R,N}function C(A){var S=A/x;return A.toFixed(A<10?1:0)+"ms ("+S.toFixed(2)+" frames)"}var O={mark:U,measure:_}},65380:function(Y,T,s){"use strict";s.d(T,{Ly:function(){return p}});function i(L){"@swc/helpers - typeof";return L&&typeof Symbol!="undefined"&&L.constructor===Symbol?"symbol":typeof L}var p=function(L){for(var U="",_=0;_C.length)&&(O=C.length);for(var A=0,S=new Array(O);A=C.length?{done:!0}:{done:!1,value:C[S++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var w=function(C,O){if(O)return O(w)(C);var A,S=[],P=function(){return A},R=function(W){S.push(W)},N=function(W){A=C(A,W);for(var V=0;V1?R-1:0),W=1;W1?q-1:0),oe=1;oe1?q-1:0),oe=1;oe0&&oe[oe.length-1])&&(me[0]===6||me[0]===2)){ae=0;continue}if(me[0]===3&&(!oe||me[1]>oe[0]&&me[1]H.length)&&(Q=H.length);for(var J=0,X=new Array(Q);J=H.length?{done:!0}:{done:!1,value:H[X++]}}}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 y(H,Q){Q===void 0&&(Q=function(X){return JSON.stringify(X)});var J=H.toLowerCase().trim();return function(X){if(!J)return!0;var q=Q(X);return q?q.toLowerCase().includes(J):!1}}function w(H){return H.charAt(0).toUpperCase()+H.slice(1).toLowerCase()}function L(H){return H.replace(/(^\w{1})|(\s+\w{1})/g,function(Q){return Q.toUpperCase()})}function U(H){return H.replace(/^\w/,function(Q){return Q.toUpperCase()})}var _=["Id","Tv"],C=["A","An","And","As","At","But","By","For","For","From","In","Into","Near","Nor","Of","On","Onto","Or","The","To","With"];function O(H){if(!H)return H;for(var Q=H.replace(/([^\W_]+[^\s-]*) */g,function(de){return w(de)}),J=x(C),X;!(X=J()).done;){var q=X.value,ee=new RegExp("\\s"+q+"\\s","g");Q=Q.replace(ee,function(de){return de.toLowerCase()})}for(var oe=x(_),re;!(re=oe()).done;){var ae=re.value,le=new RegExp("\\b"+ae+"\\b","g");Q=Q.replace(le,function(de){return de.toLowerCase()})}return Q}var A=/&(nbsp|amp|quot|lt|gt|apos);/g,S={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:'"'};function P(H){return H&&H.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(A,function(Q,J){return S[J]}).replace(/?([0-9]+);/gi,function(Q,J){var X=parseInt(J,10);return String.fromCharCode(X)}).replace(/?([0-9a-f]+);/gi,function(Q,J){var X=parseInt(J,16);return String.fromCharCode(X)})}var R=function(H,Q){var J=N||(N=document.createElement("canvas")),X=J.getContext("2d");if(!X)return null;X.font=Q;var q=X.measureText(H);return q.width},N=null,W=function(H,Q){return window.getComputedStyle(H,null).getPropertyValue(Q)},V=function(H){H===void 0&&(H=document.body);var Q=W(H,"font-weight")||"normal",J=W(H,"font-size")||"16px",X=W(H,"font-family")||"Times New Roman";return Q+" "+J+" "+X}},31200:function(Y,T,s){"use strict";s.d(T,{h:function(){return U},l:function(){return L}});function i(_,C){(C==null||C>_.length)&&(C=_.length);for(var O=0,A=new Array(C);O=_.length?{done:!0}:{done:!1,value:_[A++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var y=[/v4shim/i],w={},L=function(_){return w[_]||_},U=function(_){return function(C){return function(O){var A=O.type,S=O.payload;if(A==="asset/stylesheet"){Byond.loadCss(S);return}if(A==="asset/mappings"){for(var P=function(){var W=N.value;if(y.some(function(Q){return Q.test(W)}))return"continue";var V=S[W],H=W.split(".").pop();w[W]=V,H==="css"&&Byond.loadCss(V),H==="js"&&Byond.loadJs(V)},R=x(Object.keys(S)),N;!(N=R()).done;)P();return}C(O)}}}},41910:function(Y,T,s){"use strict";s.d(T,{pX:function(){return oe},jB:function(){return ee},JV:function(){return J},J3:function(){return W},H$:function(){return V},Oc:function(){return le},Ul:function(){return de},d4:function(){return ue},QY:function(){return me}});var i=s(56236),p=s(74429),x=s(86982),y=s(41037);var w=function(){Byond.winset("mapwindow.map",{focus:!0})},L=function(){Byond.winset(Byond.windowId,{focus:!0})},U=function(){return document.hasFocus()},_=s(92736),C=s(67278);function O(ye,Ee){(Ee==null||Ee>ye.length)&&(Ee=ye.length);for(var se=0,pe=new Array(Ee);se=ye.length?{done:!0}:{done:!1,value:ye[pe++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var N=(0,_.h)("backend"),W,V=function(ye){W=ye},H=(0,p.VP)("backend/update"),Q=(0,p.VP)("backend/setSharedState"),J=(0,p.VP)("backend/suspendStart"),X=function(){return{type:"backend/suspendSuccess",payload:{timestamp:Date.now()}}},q={config:{},data:{},shared:{},suspended:Date.now(),suspending:!1},ee=function(ye,Ee){ye===void 0&&(ye=q);var se=Ee.type,pe=Ee.payload;if(se==="backend/update"){var ge=A({},ye.config,pe.config),Ie=A({},ye.data,pe.static_data,pe.data),xe=A({},ye.shared);if(pe.shared)for(var Oe=R(Object.keys(pe.shared)),Be;!(Be=Oe()).done;){var Ke=Be.value,ke=pe.shared[Ke];ke===""?xe[Ke]=void 0:xe[Ke]=JSON.parse(ke)}return A({},ye,{config:ge,data:Ie,shared:xe,suspended:!1})}if(se==="backend/setSharedState"){var Ve=pe.key,lt=pe.nextState,Ye;return A({},ye,{shared:A({},ye.shared,(Ye={},Ye[Ve]=lt,Ye))})}if(se==="backend/suspendStart")return A({},ye,{suspending:!0});if(se==="backend/suspendSuccess"){var He=pe.timestamp;return A({},ye,{data:{},shared:{},config:A({},ye.config,{title:"",status:1}),suspending:!1,suspended:He})}return ye},oe=function(ye){var Ee,se;return function(pe){return function(ge){var Ie=ae(ye.getState()).suspended,xe=ge.type,Oe=ge.payload;if(xe==="update"){ye.dispatch(H(Oe));return}if(xe==="suspend"){ye.dispatch(X());return}if(xe==="ping"){Byond.sendMessage("ping/reply");return}if(xe==="byond/mousedown"&&y.Nh.emit("byond/mousedown"),xe==="byond/mouseup"&&y.Nh.emit("byond/mouseup"),xe==="byond/ctrldown"&&y.Nh.emit("byond/ctrldown"),xe==="byond/ctrlup"&&y.Nh.emit("byond/ctrlup"),xe==="backend/suspendStart"&&!se){N.log("suspending ("+Byond.windowId+")");var Be=function(){return Byond.sendMessage("suspend")};Be(),se=setInterval(Be,2e3)}if(xe==="backend/suspendSuccess"&&((0,C.Su)(),clearInterval(se),se=void 0,Byond.winset(Byond.windowId,{"is-visible":!1}),setTimeout(function(){U()&&w()})),xe==="backend/update"){var Ke,ke,Ve=(ke=Oe.config)==null||(Ke=ke.window)==null?void 0:Ke.fancy;Ee===void 0?Ee=Ve:Ee!==Ve&&(N.log("changing fancy mode to",Ve),Ee=Ve,Byond.winset(Byond.windowId,{titlebar:!Ve,"can-resize":!Ve}))}return xe==="backend/update"&&Ie&&(N.log("backend/update",Oe),(0,C.P7)(),(0,x.MN)(),setTimeout(function(){i.k.mark("resume/start");var lt=ae(ye.getState()).suspended;lt||(Byond.winset(Byond.windowId,{"is-visible":!0}),i.k.mark("resume/finish"))})),pe(ge)}}},re=function(ye,Ee){Ee===void 0&&(Ee={});var se=(typeof Ee=="undefined"?"undefined":S(Ee))==="object"&&Ee!==null&&!Array.isArray(Ee);if(!se){N.error("Payload for act() must be an object, got this:",Ee);return}Byond.sendMessage("act/"+ye,Ee)},ae=function(ye){return ye.backend||{}},le=function(){var ye,Ee=W==null||(ye=W.getState())==null?void 0:ye.backend;return A({},Ee,{act:re})},de=function(ye,Ee){var se,pe=W==null||(se=W.getState())==null?void 0:se.backend,ge,Ie=(ge=pe==null?void 0:pe.shared)!=null?ge:{},xe=ye in Ie?Ie[ye]:Ee;return[xe,function(Oe){W.dispatch(Q({key:ye,nextState:typeof Oe=="function"?Oe(xe):Oe}))}]},me=function(ye,Ee){var se,pe=W==null||(se=W.getState())==null?void 0:se.backend,ge,Ie=(ge=pe==null?void 0:pe.shared)!=null?ge:{},xe=ye in Ie?Ie[ye]:Ee;return[xe,function(Oe){Byond.sendMessage({type:"setSharedState",key:ye,value:JSON.stringify(typeof Oe=="function"?Oe(xe):Oe)||""})}]},fe=function(){return W.dispatch},ue=function(ye){return ye(W==null?void 0:W.getState())}},96781:function(Y,T,s){"use strict";s.d(T,{Fl:function(){return J},WP:function(){return X},az:function(){return q}});var i=s(65380),p=s(61358),x=s(79500);function y(ee,oe){(oe==null||oe>ee.length)&&(oe=ee.length);for(var re=0,ae=new Array(oe);re=0)&&(re[le]=ee[le]);return re}function U(ee,oe){if(ee){if(typeof ee=="string")return y(ee,oe);var re=Object.prototype.toString.call(ee).slice(8,-1);if(re==="Object"&&ee.constructor&&(re=ee.constructor.name),re==="Map"||re==="Set")return Array.from(re);if(re==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(re))return y(ee,oe)}}function _(ee,oe){var re=typeof Symbol!="undefined"&&ee[Symbol.iterator]||ee["@@iterator"];if(re)return(re=re.call(ee)).next.bind(re);if(Array.isArray(ee)||(re=U(ee))||oe&&ee&&typeof ee.length=="number"){re&&(ee=re);var ae=0;return function(){return ae>=ee.length?{done:!0}:{done:!1,value:ee[ae++]}}}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 C(ee){if(typeof ee=="string")return ee.endsWith("px")?parseFloat(ee)/12+"rem":ee;if(typeof ee=="number")return ee+"rem"}function O(ee){if(typeof ee=="string")return C(ee);if(typeof ee=="number")return C(ee*.5)}function A(ee){return!S(ee)}function S(ee){return typeof ee=="string"&&x.NE.includes(ee)}var P=function(ee){return function(oe,re){(typeof re=="number"||typeof re=="string")&&(oe[ee]=re)}},R=function(ee,oe){return function(re,ae){(typeof ae=="number"||typeof ae=="string")&&(re[ee]=oe(ae))}},N=function(ee,oe){return function(re,ae){ae&&(re[ee]=oe)}},W=function(ee,oe,re){return function(ae,le){if(typeof le=="number"||typeof le=="string")for(var de=0;de=0)&&(Q[X]=V[X]);return Q}function A(V,H){var Q,J,X,q,ee={label:0,sent:function(){if(X[0]&1)throw X[1];return X[1]},trys:[],ops:[]};return q={next:oe(0),throw:oe(1),return:oe(2)},typeof Symbol=="function"&&(q[Symbol.iterator]=function(){return this}),q;function oe(ae){return function(le){return re([ae,le])}}function re(ae){if(Q)throw new TypeError("Generator is already executing.");for(;ee;)try{if(Q=1,J&&(X=ae[0]&2?J.return:ae[0]?J.throw||((X=J.return)&&X.call(J),0):J.next)&&!(X=X.call(J,ae[1])).done)return X;switch(J=0,X&&(ae=[ae[0]&2,X.value]),ae[0]){case 0:case 1:X=ae;break;case 4:return ee.label++,{value:ae[1],done:!1};case 5:ee.label++,J=ae[1],ae=[0];continue;case 7:ae=ee.ops.pop(),ee.trys.pop();continue;default:if(X=ee.trys,!(X=X.length>0&&X[X.length-1])&&(ae[0]===6||ae[0]===2)){ee=0;continue}if(ae[0]===3&&(!X||ae[1]>X[0]&&ae[1]=0)&&(S[R]=O[R]);return S}var _=function(O){var A=O.type,S=O.children,P=O.className,R=U(O,["type","children","className"]);return(0,i.jsx)(x.az,L({},R,{className:(0,p.Ly)(["HealthStat",P,(0,w.WP)(R)]),color:y.lm.damageType[A],children:S}))},C=function(O){return!O||O<=0?"0":O.toFixed(1)}},95475:function(Y,T,s){"use strict";s.d(T,{_:function(){return L}});var i=s(20462),p=s(2686),x=s(96781);function y(){return y=Object.assign||function(U){for(var _=1;_=0)&&(C[A]=U[A]);return C}var L=function(U){var _=U.className,C=U.fixBlur,O=C===void 0?!0:C,A=U.objectFit,S=A===void 0?"fill":A,P=U.src,R=U.tooltip,N=w(U,["className","fixBlur","objectFit","src","tooltip"]),W=y({},(0,x.Fl)(N).style,{"-ms-interpolation-mode":O?"nearest-neighbor":"auto",objectFit:S}),V=(0,i.jsx)("img",{className:_,src:P,style:W});return R&&(V=(0,i.jsx)(p.m_,{content:R,children:V})),V}},82653:function(Y,T,s){"use strict";s.d(T,{f:function(){return y},A:function(){return w}});var i=s(20462),p=s(2686),x=function(L){return"getValue"in L};var y=function(L){var U=L.columnConfig,_=L.data,C=L.rowId,O=U.basis,A=U.getValueTooltip,S=U.grow,P=U.renderContents,R=x(U),N=R?U.getValue(_):void 0,W=A==null?void 0:A(_),V=P?P({data:_,rowId:C,value:N}):(0,i.jsx)(p.az,{children:N}),H=W?(0,i.jsx)(p.m_,{content:W,children:V}):V;return(0,i.jsx)(p.BJ.Item,{basis:O,grow:S,children:H})},w=function(L){var U=L.config,_=U.basis,C=U.grow,O=U.header;return(0,i.jsx)(p.BJ.Item,{basis:_,grow:C,bold:!0,children:O})}},69221:function(Y,T,s){"use strict";s.d(T,{H:function(){return C}});var i=s(20462),p=s(61358),x=s(99202);function y(){return y=Object.assign||function(O){for(var A=1;A0;V&&((W=R.containerRef)!=null&&W.current)?R.props.onMove(_(R.containerRef.current,N)):R.toggleDocumentEvents(!1)},R.handleMoveEnd=function(){R.toggleDocumentEvents(!1)},R.handleKeyDown=function(N){var W=N.which||N.keyCode;W<37||W>40||(N.preventDefault(),R.props.onKey({left:W===39?.05:W===37?-.05:0,top:W===40?.05:W===38?-.05:0}))},R.props=P,R.containerRef=(0,p.createRef)(),R}var S=A.prototype;return S.toggleDocumentEvents=function(R){var N,W=(N=this.containerRef)==null?void 0:N.current,V=U(W),H=R?V.addEventListener:V.removeEventListener;H("mousemove",this.handleMove),H("mouseup",this.handleMoveEnd)},S.componentDidMount=function(){this.toggleDocumentEvents(!0)},S.componentWillUnmount=function(){this.toggleDocumentEvents(!1)},S.render=function(){return(0,i.jsx)("div",y({},this.props,{style:this.props.style,ref:this.containerRef,onMouseDown:this.handleMoveStart,className:"react-colorful__interactive",onKeyDown:this.handleKeyDown,tabIndex:0,role:"slider",children:this.props.children}))},A}(p.Component)},65993:function(Y,T,s){"use strict";s.d(T,{az:function(){return i.az},$n:function(){return p.$},a_:function(){return A},_V:function(){return R._},kk:function(){return N},N6:function(){return le},aF:function(){return fe},Or:function(){return H},gm:function(){return P}});var i=s(96781),p=s(99660),x=s(20462),y=s(65380);function w(){return w=Object.assign||function(se){for(var pe=1;pe=0)&&(ge[xe]=se[xe]);return ge}function U(se){var pe=se.className,ge=se.children,Ie=se.full,xe=L(se,["className","children","full"]);return(0,x.jsx)(i.az,w({className:(0,y.Ly)(["Dimmer",!!Ie&&"Dimmer--full",pe])},xe,{children:(0,x.jsx)("div",{className:"Dimmer__inner",children:ge})}))}var _=s(2686);function C(){return C=Object.assign||function(se){for(var pe=1;pe=0)&&(ge[xe]=se[xe]);return ge}var A=function(se){var pe=se.color,ge=O(se,["color"]);return(0,x.jsxs)(_.$n,C({},ge,{children:[(0,x.jsx)(_.BK,{color:pe,mr:"5px"}),(0,x.jsx)(_.az,{as:"code",children:pe})]}))},S=s(69221),P=function(se){var pe=se.className,ge=se.color,Ie=se.left,xe=se.top,Oe=xe===void 0?.5:xe,Be=(0,y.Ly)(["react-colorful__pointer",pe]),Ke={top:""+Oe*100+"%",left:""+Ie*100+"%"};return(0,x.jsx)("div",{className:Be,style:Ke,children:(0,x.jsx)("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:ge}})})},R=s(95475);var N=function(se){var pe=se.items,ge=se.nothing_text,Ie=ge===void 0?"Nothing":ge;return pe===void 0||pe.length===0?""+Ie:pe.map(function(xe,Oe,Be){return(0,x.jsxs)(_.so,{inline:!0,align:"center",children:[!!xe.iconBase64&&(0,x.jsx)(_.so.Item,{children:(0,x.jsx)(_._V,{height:"32px",width:"32px",src:"data:image/png;base64,"+xe.iconBase64})}),(0,x.jsxs)(_.so.Item,{pr:1,pl:.5,children:[xe.name,Oe===Be.length-1?"":", "+(Oe===Be.length-2?"and ":"")]})]},Oe)})};function W(){return W=Object.assign||function(se){for(var pe=1;pe=0)&&(ge[xe]=se[xe]);return ge}var H=function(se){var pe=se.children,ge=pe===void 0?"No results found":pe,Ie=se.className,xe=V(se,["children","className"]),Oe=(0,y.Ly)(["placeholder",Ie]);return(0,x.jsx)(_.az,W({className:Oe,color:"label",italic:!0},xe,{children:ge}))};function Q(){return Q=Object.assign||function(se){for(var pe=1;pe=0)&&(ge[xe]=se[xe]);return ge}var X=/-o$/,q=function(se){var pe=se.name,ge=se.size,Ie=se.spin,xe=se.className,Oe=se.rotation,Be=J(se,["name","size","spin","className","rotation"]),Ke=Be.style||{};ge&&(Ke.fontSize=ge*100+"%"),Oe&&(Ke.transform="rotate("+Oe+"deg)"),Be.style=Ke;var ke=(0,i.Fl)(Be),Ve="";if(pe.startsWith("tg-"))Ve=pe;else{var lt=X.test(pe),Ye=pe.replace(X,""),He=!Ye.startsWith("fa-");Ve=lt?"fa-regular ":"fa-solid ",He&&(Ve+="fa-"),Ve+=Ye,Ie&&(Ve+=" fa-spin")}return(0,x.jsx)("i",Q({className:(0,y.Ly)(["Icon",Ve,xe,(0,i.WP)(Be)])},ke))},ee=function(se){var pe=se.className,ge=se.children,Ie=J(se,["className","children"]);return(0,x.jsx)("span",Q({className:(0,y.Ly)(["IconStack",pe,(0,i.WP)(Ie)])},(0,i.Fl)(Ie),{children:ge}))};q.Stack=ee;var oe=s(99202);function re(){return re=Object.assign||function(se){for(var pe=1;pe=0)&&(ge[xe]=se[xe]);return ge}var le=function(se){var pe=se.animated,ge=se.format,Ie=se.maxValue,xe=se.minValue,Oe=se.unclamped,Be=se.onChange,Ke=se.onDrag,ke=se.step,Ve=se.stepPixelSize,lt=se.suppressFlicker,Ye=se.unit,He=se.value,ft=se.className,Rt=se.style,Ge=se.fillValue,et=se.color,at=se.ranges,gt=at===void 0?{}:at,dt=se.size,Pt=dt===void 0?1:dt,Et=se.bipolar,Tt=se.children,Dt=ae(se,["animated","format","maxValue","minValue","unclamped","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children"]);return(0,x.jsx)(_.Hx,{dragMatrix:[0,-1],animated:pe,format:ge,maxValue:Ie,minValue:xe,unclamped:Oe,onChange:Be,onDrag:Ke,step:ke,stepPixelSize:Ve,suppressFlicker:lt,unit:Ye,value:He,children:function(qe){var vt=qe.dragging,st=qe.editing,Ut=qe.value,Vt=qe.displayValue,Bt=qe.displayElement,kt=qe.inputElement,un=qe.handleDragStart,vn=(0,oe.hs)(Ge!=null?Ge:Vt,xe,Ie),yt=(0,oe.hs)(Vt,xe,Ie),pt=et||(0,oe.TG)(Ge!=null?Ge:Ut,gt)||"default",ot=Math.min((yt-.5)*270,225);return(0,x.jsxs)("div",re({className:(0,y.Ly)(["Knob","Knob--color--"+pt,Et&&"Knob--bipolar",ft,(0,i.WP)(Dt)])},(0,i.Fl)(re({style:re({"font-size":Pt+"em"},Rt)},Dt)),{onMouseDown:un,children:[(0,x.jsx)("div",{className:"Knob__circle",children:(0,x.jsx)("div",{className:"Knob__cursorBox",style:{transform:"rotate("+ot+"deg)"},children:(0,x.jsx)("div",{className:"Knob__cursor"})})}),vt&&(0,x.jsx)("div",{className:"Knob__popupValue",children:Bt}),(0,x.jsx)("svg",{className:"Knob__ring Knob__ringTrackPivot",viewBox:"0 0 100 100",children:(0,x.jsx)("circle",{className:"Knob__ringTrack",cx:"50",cy:"50",r:"50"})}),(0,x.jsx)("svg",{className:"Knob__ring Knob__ringFillPivot",viewBox:"0 0 100 100",children:(0,x.jsx)("circle",{className:"Knob__ringFill",style:{"stroke-dashoffset":Math.max(((Et?2.75:2)-vn*1.5)*Math.PI*50,0)},cx:"50",cy:"50",r:"50"})}),kt]}))}})};function de(){return de=Object.assign||function(se){for(var pe=1;pe=0)&&(ge[xe]=se[xe]);return ge}function fe(se){var pe=se.className,ge=se.children,Ie=se.fitted,xe=se.full,Oe=me(se,["className","children","fitted","full"]);return(0,x.jsx)(U,{full:xe,children:(0,x.jsx)("div",de({className:(0,y.Ly)(["Modal",Ie&&"Modal--fitted",pe,(0,i.WP)(Oe)])},(0,i.Fl)(Oe),{children:ge}))})}function ue(){return ue=Object.assign||function(se){for(var pe=1;pe=0)&&(ge[xe]=se[xe]);return ge}var Ee=function(se){var pe=se.animated,ge=se.format,Ie=se.maxValue,xe=se.minValue,Oe=se.onChange,Be=se.onDrag,Ke=se.step,ke=se.stepPixelSize,Ve=se.suppressFlicker,lt=se.unit,Ye=se.value,He=se.className,ft=se.fillValue,Rt=se.color,Ge=se.ranges,et=Ge===void 0?{}:Ge,at=se.children,gt=ye(se,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children"]),dt=at!==void 0;return _jsx(DraggableControl,{dragMatrix:[1,0],animated:pe,format:ge,maxValue:Ie,minValue:xe,onChange:Oe,onDrag:Be,step:Ke,stepPixelSize:ke,suppressFlicker:Ve,unit:lt,value:Ye,children:function(Pt){var Et=Pt.dragging,Tt=Pt.editing,Dt=Pt.value,qe=Pt.displayValue,vt=Pt.displayElement,st=Pt.inputElement,Ut=Pt.handleDragStart,Vt=ft!=null,Bt=scale(Dt,xe,Ie),kt=scale(ft!=null?ft:qe,xe,Ie),un=scale(qe,xe,Ie),vn=Rt||keyOfMatchingRange(ft!=null?ft:Dt,et)||"default";return _jsxs("div",ue({className:classes(["Slider","ProgressBar","ProgressBar--color--"+vn,He,computeBoxClassName(gt)])},computeBoxProps(gt),{onMouseDown:Ut,children:[_jsx("div",{className:classes(["ProgressBar__fill",Vt&&"ProgressBar__fill--animated"]),style:{width:clamp01(kt)*100+"%",opacity:.4}}),_jsx("div",{className:"ProgressBar__fill",style:{width:clamp01(Math.min(kt,un))*100+"%"}}),_jsxs("div",{className:"Slider__cursorOffset",style:{width:clamp01(un)*100+"%"},children:[_jsx("div",{className:"Slider__cursor"}),_jsx("div",{className:"Slider__pointer"}),Et&&_jsx("div",{className:"Slider__popupValue",children:vt})]}),_jsx("div",{className:"ProgressBar__content",children:dt?at:vt}),st]}))}})};},79500:function(Y,T,s){"use strict";s.d(T,{KA:function(){return i},KS:function(){return x},NE:function(){return L},bz:function(){return p},lm:function(){return w}});var i=2,p=1,x=0,y=null,w={department:{captain:"#548b55",security:"#e74c3c",medbay:"#3498db",science:"#9b59b6",engineering:"#f1c40f",cargo:"#f39c12",service:"#7cc46a",centcom:"#00c100",other:"#c38312"},damageType:{oxy:"#3498db",toxin:"#2ecc71",burn:"#e67e22",brute:"#e74c3c"},damageTypeFill:{oxy:"rgba(52, 152, 219, 0.5)",toxin:"rgba(46, 204, 113, 0.5)",burn:"rgba(230, 126, 34, 0.5)",brute:"rgba(231, 76, 60, 0.5)"},reagent:{acidicbuffer:"#fbc314",basicbuffer:"#3853a4"}},L=["average","bad","black","blue","brown","good","green","grey","label","olive","orange","pink","purple","red","teal","transparent","violet","white","yellow"],U=[{name:"Syndicate",freq:1352,color:"#BB3333"},{name:"CentCom",freq:1451,color:"#2681a5"},{name:"Catering",freq:1485,color:"#C16082"},{name:"Civilian",freq:1355,color:"#6ca729"},{name:"Research",freq:1354,color:"#153E9E"},{name:"Command",freq:1356,color:"#5177ff"},{name:"Medical",freq:1445,color:"#57b8f0"},{name:"Engineering",freq:1441,color:"#BBBB00"},{name:"Security",freq:1485,color:"#dd3535"},{name:"AI",freq:1447,color:"#333399"},{name:"Bridge",freq:1442,color:"#339933"}],_=[{id:"o2",name:"Oxygen",label:"O\u2082",color:"blue"},{id:"n2",name:"Nitrogen",label:"N\u2082",color:"red"},{id:"co2",name:"Carbon Dioxide",label:"CO\u2082",color:"grey"},{id:"plasma",name:"Plasma",label:"Plasma",color:"pink"},{id:"n2o",name:"Nitrous Oxide",label:"N\u2082O",color:"red"}],C=function(S,P){if(!S)return P||"None";for(var R=S.toLowerCase(),N=0;N<_.length;N++)if(_[N].id===R)return _[N].label;return P||"None"},O=function(S){if(!S)return"black";for(var P=S.toLowerCase(),R=0;R<_.length;R++)if(_[R].id===P)return _[R].color;return"black"},A=function(S){if(S){for(var P=S.toLowerCase(),R=0;R<_.length;R++)if(_[R].id===P)return _[R]}}},35412:function(Y,T,s){"use strict";var i=s(74429);var p=(0,i.VP)("debug/toggleKitchenSink"),x=(0,i.VP)("debug/toggleDebugLayout"),y=(0,i.VP)("debug/openExternalBrowser")},2825:function(Y,T,s){"use strict";s.d(T,{A$:function(){return Q},Lo:function(){return x}});var i=s(41910);var p=function(J){return J.debug};var x=function(){return(0,i.d4)(p)},y=s(20462),w=s(61358),L=s(2686),U=s(66272);var _=s(80075),C=function(){return _.keys().map(function(J){return _(J)})},O=function(J){var X=J.panel,q=useSharedState("kitchenSinkTheme",void 0),ee=q[0],oe=useState(0),re=oe[0],ae=oe[1],le=C(),de=le[re],me=X?Pane:Window;return _jsx(me,{title:"Kitchen Sink",width:600,height:500,theme:ee,children:_jsxs(Flex,{height:"100%",children:[_jsx(Flex.Item,{m:1,mr:0,children:_jsx(Section,{fill:!0,fitted:!0,children:_jsx(Tabs,{vertical:!0,children:le.map(function(fe,ue){return _jsx(Tabs.Tab,{color:"transparent",selected:ue===re,onClick:function(){return ae(ue)},children:fe.meta.title},ue)})})})}),_jsx(Flex.Item,{position:"relative",grow:1,children:_jsx(me.Content,{scrollable:!0,children:de.meta.render()})})]})})},A=s(41037),S=s(52130),P=s(35412);function R(){return R=Object.assign||function(J){for(var X=1;X0&&dt[dt.length-1])&&(qe[0]===6||qe[0]===2)){Et=0;continue}if(qe[0]===3&&(!dt||qe[1]>dt[0]&&qe[1]Dt&&(dt[Et]=Dt-et[Et],Pt=!0)}return[Pt,dt]},Ve=function(Ge){var et;Q.log("drag start"),ee=!0,le=_([Ge.screenX,Ge.screenY],ye()),(et=Ge.target)==null||et.focus(),document.addEventListener("mousemove",Ye),document.addEventListener("mouseup",lt),Ye(Ge)},lt=function(Ge){Q.log("drag end"),Ye(Ge),document.removeEventListener("mousemove",Ye),document.removeEventListener("mouseup",lt),ee=!1,Oe()},Ye=function(Ge){ee&&(Ge.preventDefault(),se(_([Ge.screenX,Ge.screenY],le)))},He=function(Ge,et){return function(at){var gt;de=[Ge,et],Q.log("resize start",de),oe=!0,le=_([at.screenX,at.screenY],ye()),me=Ee(),(gt=at.target)==null||gt.focus(),document.addEventListener("mousemove",Rt),document.addEventListener("mouseup",ft),Rt(at)}},ft=function(Ge){Q.log("resize end",fe),Rt(Ge),document.removeEventListener("mousemove",Rt),document.removeEventListener("mouseup",ft),oe=!1,Oe()},Rt=function(Ge){if(oe){Ge.preventDefault();var et=_([Ge.screenX,Ge.screenY],ye()),at=_(et,le);fe=U(me,C(de,at),[1,1]),fe[0]=Math.max(fe[0],150*X),fe[1]=Math.max(fe[1],50*X),pe(fe)}}},41037:function(Y,T,s){"use strict";s.d(T,{tk:function(){return W},Nh:function(){return x},WK:function(){return V},y4:function(){return w}});var i=function(){"use strict";function X(){this.listeners={}}var q=X.prototype;return q.on=function(oe,re){this.listeners[oe]=this.listeners[oe]||[],this.listeners[oe].push(re)},q.off=function(oe,re){var ae=this.listeners[oe];if(!ae)throw new Error('There is no listeners for "'+oe+'"');this.listeners[oe]=ae.filter(function(le){return le!==re})},q.emit=function(oe){for(var re=arguments.length,ae=new Array(re>1?re-1:0),le=1;le=0&&N.splice(q,1)},H=function(X){if(!(C||!U))for(var q=document.body;X&&X!==q;){if(N.includes(X)){if(X.contains(P))return;P=X,X.focus();return}X=X.parentElement}};window.addEventListener("mousemove",function(X){var q=X.target;q!==R&&(R=q,H(q))}),window.addEventListener("focusin",function(X){R=null,P=X.target,_(!0),O(X.target)&&A(X.target)}),window.addEventListener("focusout",function(X){R=null,_(!1,!0)}),window.addEventListener("blur",function(X){R=null,_(!1,!0)}),window.addEventListener("beforeunload",function(X){_(!1)});var Q={},J=function(){"use strict";function X(ee,oe,re){this.event=ee,this.type=oe,this.code=ee.keyCode,this.ctrl=ee.ctrlKey,this.shift=ee.shiftKey,this.alt=ee.altKey,this.repeat=!!re}var q=X.prototype;return q.hasModifierKeys=function(){return this.ctrl||this.alt||this.shift},q.isModifierKey=function(){return this.code===p.Ss||this.code===p.re||this.code===p.cH},q.isDown=function(){return this.type==="keydown"},q.isUp=function(){return this.type==="keyup"},q.toString=function(){return this._str?this._str:(this._str="",this.ctrl&&(this._str+="Ctrl+"),this.alt&&(this._str+="Alt+"),this.shift&&(this._str+="Shift+"),this.code>=48&&this.code<=90?this._str+=String.fromCharCode(this.code):this.code>=p.sV&&this.code<=p.Yw?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)},X}();document.addEventListener("keydown",function(X){if(!O(X.target)){var q=X.keyCode,ee=new J(X,"keydown",Q[q]);x.emit("keydown",ee),x.emit("key",ee),Q[q]=!0}}),document.addEventListener("keyup",function(X){if(!O(X.target)){var q=X.keyCode,ee=new J(X,"keyup");x.emit("keyup",ee),x.emit("key",ee),Q[q]=!1}})},41242:function(Y,T,s){"use strict";s.d(T,{P9:function(){return A},QL:function(){return x},QR:function(){return P},d5:function(){return y},fU:function(){return O},up:function(){return L},xv:function(){return S}});var i=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y","R","Q","F","N","H"],p=i.indexOf(" "),x=function(R,N,W){if(N===void 0&&(N=-p),W===void 0&&(W=""),!isFinite(R))return R.toString();var V=Math.floor(Math.log10(Math.abs(R))),H=Math.max(N*3,V),Q=Math.floor(H/3),J=i[Math.min(Q+p,i.length-1)],X=R/Math.pow(1e3,Q),q=X.toFixed(2);return q.endsWith(".00")?q=q.slice(0,-3):q.endsWith(".0")&&(q=q.slice(0,-2)),(q+" "+J.trim()+W).trim()},y=function(R,N){return N===void 0&&(N=0),x(R,N,"W")},w=function(R,N){return N===void 0&&(N=0),x(R,N,"J")},L=function(R,N){if(N===void 0&&(N=0),!Number.isFinite(R))return String(R);var W=Number(R.toFixed(N)),V=W<0,H=Math.abs(W),Q=H.toString().split(".");Q[0]=Q[0].replace(/\B(?=(\d{3})+(?!\d))/g,"\u2009");var J=Q.join(".");return V?"-"+J:J},U=function(R){var N=20*Math.log10(R),W=N>=0?"+":"-",V=Math.abs(N);return V===1/0?V="Inf":V=V.toFixed(2),""+W+V+" dB"},_=null,C=function(R,N,W){if(N===void 0&&(N=0),W===void 0&&(W=""),!isFinite(R))return"NaN";var V=Math.floor(Math.log10(R)),H=Math.max(N*3,V),Q=Math.floor(H/3),J=_[Q],X=R/Math.pow(1e3,Q),q=Math.max(0,2-H%3),ee=X.toFixed(q);return(ee+" "+J+" "+W).trim()},O=function(R,N){N===void 0&&(N="");var W=Math.floor(R/10%60),V=Math.floor((R/10-W)/60);return R<=0&&N!==""?N:(W<10&&(W="0"+W),V<10&&(V="0"+V),V+":"+W)},A=function(R){return R<1e4?R.toFixed()+" kPa":x(R*1e3,1,"Pa")},S=function(R,N){return N===void 0&&(N=25),R.length>N?R.substr(0,N-1)+"\u2026":R},P=function(R){return R=Math.round(R),Math.floor(R/10)+"."+R%10}},10380:function(Y,T,s){"use strict";s.d(T,{Z:function(){return p}});var i=s(41910);var p=function(x){var y=(0,i.Oc)().data,w=y.cdn,L=y.VCS_REVISION;if(w)return w+"/"+x+"?v="+L;var U=x.split("/");return U[U.length-1]}},52130:function(Y,T,s){"use strict";s.d(T,{Bm:function(){return V}});var i=s(6544),p=s(41037),x=s(92736);function y(Q,J){(J==null||J>Q.length)&&(J=Q.length);for(var X=0,q=new Array(J);X=Q.length?{done:!0}:{done:!1,value:Q[q++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var U=(0,x.h)("hotkeys"),_={},C=[i.s6,i.Ri,i.iy,i.aW,i.Ss,i.re,i.gf,i.R,i.iU,i.zh,i.sP],O={},A=[],S=function(Q){if(Q===16)return"Shift";if(Q===17)return"Ctrl";if(Q===18)return"Alt";if(Q===33)return"Northeast";if(Q===34)return"Southeast";if(Q===35)return"Southwest";if(Q===36)return"Northwest";if(Q===37)return"West";if(Q===38)return"North";if(Q===39)return"East";if(Q===40)return"South";if(Q===45)return"Insert";if(Q===46)return"Delete";if(Q>=48&&Q<=57||Q>=65&&Q<=90)return String.fromCharCode(Q);if(Q>=96&&Q<=105)return"Numpad"+(Q-96);if(Q>=112&&Q<=123)return"F"+(Q-111);if(Q===188)return",";if(Q===189)return"-";if(Q===190)return"."},P=function(Q){var J=String(Q);if(J==="Ctrl+F5"||J==="Ctrl+R"){location.reload();return}if(J!=="Ctrl+F"&&!(Q.event.defaultPrevented||Q.isModifierKey()||C.includes(Q.code))){var X=S(Q.code);if(X){var q=_[X];if(q)return U.debug("macro",q),Byond.command(q);if(Q.isDown()&&!O[X]){O[X]=!0;var ee='.keydown "'+X+'"';return U.debug(ee),Byond.command(ee)}if(Q.isUp()&&O[X]){O[X]=!1;var oe='.force_keyup "'+X+'"';return U.debug(oe),Byond.command(oe)}}}},R=function(Q){C.push(Q)},N=function(Q){var J=C.indexOf(Q);J>=0&&C.splice(J,1)},W=function(){for(var Q=L(Object.keys(O)),J;!(J=Q()).done;){var X=J.value;O[X]&&(O[X]=!1,U.log('releasing key "'+X+'"'),Byond.command('.force_keyup "'+X+'"'))}},V=function(){Byond.winget("default.*").then(function(Q){for(var J={},X=L(Object.keys(Q)),q;!(q=X()).done;){var ee=q.value,oe=ee.split("."),re=oe[1],ae=oe[2];re&&ae&&(J[re]||(J[re]={}),J[re][ae]=Q[ee])}for(var le=/\\"/g,de=function(se){return se.substring(1,se.length-1).replace(le,'"')},me=L(Object.keys(J)),fe;!(fe=me()).done;){var ue=fe.value,ye=J[ue],Ee=de(ye.name);_[Ee]=de(ye.command)}U.debug("loaded macros",_)}),p.Nh.on("window-blur",function(){W()}),p.Nh.on("key",function(Q){for(var J=L(A),X;!(X=J()).done;){var q=X.value;q(Q)}P(Q)})},H=function(Q){A.push(Q);var J=!1;return function(){J||(J=!0,A.splice(A.indexOf(Q),1))}}},10235:function(Y,T,s){"use strict";s.r(T),s.d(T,{AIRack:function(){return w}});var i=s(20462),p=s(2686),x=s(41910),y=s(66272),w=function(){var L=(0,x.Oc)(),U=L.act,_=L.data,C=_.lawTitles,O=_.lawText,A=_.welded,S=_.screwed;return(0,i.jsx)(y.p8,{title:"AI Law Rack",width:600,height:800,children:(0,i.jsx)(y.p8.Content,{scrollable:!0,children:(0,i.jsx)(p.wn,{children:(0,i.jsx)(p.az,{children:C.map(function(P,R){return(0,i.jsxs)(p.Nt,{title:P?C[R]:"Empty",open:!!P,children:[(0,i.jsx)(p.Y0,{preserveWhitespace:!0,children:P?O[R]:""}),(0,i.jsx)(p.$n,{icon:P?"circle":"circle-o",onClick:function(){return U("rack",{rack_index:R+1})},disabled:A[R]||S[R],children:P?"Remove":"Empty"}),(0,i.jsx)(p.$n,{icon:A[R]?"circle":"circle-o",onClick:function(){return U("weld",{rack_index:R+1})},color:A[R]?"red":"green",children:A[R]?"Welded":"Not Welded"}),(0,i.jsx)(p.$n,{icon:S[R]?"circle":"circle-o",onClick:function(){return U("screw",{rack_index:R+1})},color:S[R]?"red":"green",children:S[R]?"Screwed In":"Not Screwed In"})]},R)})})})})})}},10659:function(Y,T,s){"use strict";s.r(T),s.d(T,{AbilityManager:function(){return _}});var i=s(20462),p=s(2686),x=s(41910),y=s(66272);var w=function(C){var O=C.number,A=C.unit,S=C.onChange,P=C.abilityRef;return(0,i.jsx)(p.XI.Cell,{py:"0.5em",collapsing:!0,children:(0,i.jsx)(p.az,{align:"center",children:(0,i.jsx)(p.Q7,{minValue:0,maxValue:1/0,unit:A,width:"5em",value:O,step:1,onChange:function(R){return S(P,R)}})})})},L=function(C){var O=C.children;return(0,i.jsx)(p.XI.Cell,{py:"0.5em",textAlign:"center",children:O})},U=function(){return(0,i.jsxs)(p.XI.Row,{bold:!0,children:[(0,i.jsx)(L,{children:"Name"}),(0,i.jsx)(L,{children:"Subtype"}),(0,i.jsx)(L,{children:"Cost"}),(0,i.jsx)(L,{children:"Cooldown"}),(0,i.jsx)(L,{children:"Actions"})]})},_=function(){var C=(0,x.Oc)(),O=C.act,A=C.data,S=A.abilities,P=A.target_name,R=function(){return O("addAbility")},N=function(J,X){return O("updatePointCost",{abilityRef:J,value:X})},W=function(J,X){return O("updateCooldown",{abilityRef:J,value:X})},V=function(J){return O("manageAbility",{abilityRef:J})},H=function(J){return O("renameAbility",{abilityRef:J})},Q=function(J){return O("deleteAbility",{abilityRef:J})};return(0,i.jsx)(y.p8,{title:"Ability Manager",width:750,height:300,children:(0,i.jsx)(y.p8.Content,{children:(0,i.jsx)(p.wn,{title:"Abilities of "+P,scrollable:!0,fill:!0,buttons:(0,i.jsx)(p.$n,{icon:"plus",onClick:R,children:"Add Ability"}),children:(0,i.jsxs)(p.XI,{children:[(0,i.jsx)(U,{}),(S==null?void 0:S.length)>0?S.map(function(J){return(0,i.jsxs)(p.XI.Row,{children:[(0,i.jsx)(p.XI.Cell,{py:"0.5em",children:J.name}),(0,i.jsx)(p.XI.Cell,{py:"0.5em",children:J.subtype}),(0,i.jsx)(w,{number:J.pointCost,onChange:N,abilityRef:J.abilityRef}),(0,i.jsx)(w,{number:J.cooldown,unit:"ds",onChange:W,abilityRef:J.abilityRef}),(0,i.jsx)(p.XI.Cell,{py:"0.5em",collapsing:!0,children:(0,i.jsxs)(p.az,{align:"center",nowrap:!0,children:[(0,i.jsx)(p.$n,{tooltip:"View Variables",tooltipPosition:"top",align:"left",icon:"gear",onClick:function(){return V(J.abilityRef)}}),(0,i.jsx)(p.$n,{tooltip:"Rename",tooltipPosition:"top",align:"left",icon:"pen",onClick:function(){return H(J.abilityRef)}}),(0,i.jsx)(p.$n.Confirm,{tooltip:"Remove",tooltipPosition:"top",align:"left",icon:"trash",color:"bad",onClick:function(){return Q(J.abilityRef)}})]})})]},J.abilityRef)}):null]})})})})}},15991:function(Y,T,s){"use strict";s.r(T),s.d(T,{AirAlarm:function(){return U},GasInfo:function(){return _}});var i=s(20462),p=s(2686),x=s(41910),y=s(41242),w=s(66272),L=s(11249),U=function(){var C=(0,x.Oc)(),O=C.act,A=C.data,S=A.boundaries,P=A.gasses,R=A.temperature,N=A.safe,W=273.15;return(0,i.jsx)(w.p8,{width:300,height:350,children:(0,i.jsxs)(w.p8.Content,{children:[(0,i.jsxs)(p.wn,{title:"Status",children:[N===0&&(0,i.jsx)(p.az,{align:"center",fontSize:2,color:"red",children:"ALERT!"}),N===1&&(0,i.jsx)(p.az,{align:"center",fontSize:2,color:"orange",children:"CAUTION"}),N===2&&(0,i.jsx)(p.az,{align:"center",fontSize:2,color:"green",children:"OPTIMAL"}),(0,i.jsxs)(p.az,{align:"center",nowrap:!0,p:1,fontSize:1,color:(0,L.getTemperatureColor)(R),children:[(0,i.jsx)(p.az,{fontSize:1,children:"Atmospheric Temperature"}),(0,i.jsx)(p.In,{name:(0,L.getTemperatureIcon)(R),pr:.5}),(0,i.jsx)(p.zv,{value:R})," K"]})]}),(0,i.jsxs)(p.wn,{title:"Gasses",children:[(0,i.jsx)(p.so,{children:S.slice(0,4).map(function(V,H){return(0,i.jsx)(_,{partial_pressure:P[V.varname],boundary:V,gas_index:H},V.varname)})}),(0,i.jsx)("br",{}),(0,i.jsx)(p.so,{children:S.slice(4,8).map(function(V,H){return(0,i.jsx)(_,{partial_pressure:P[V.varname],boundary:V,gas_index:H},V.varname)})})]})]})})},_=function(C){var O=C.partial_pressure,A=C.boundary,S=C.gas_index,P=100;return(0,i.jsxs)(p.so.Item,{grow:!0,children:[(0,i.jsx)(p.az,{align:"center",children:A.friend_name}),(0,i.jsx)(p.az,{align:"center",children:(0,i.jsx)(p.WD,{align:"center",size:1.75,value:O,minValue:0,maxValue:P,alertAfter:isFinite(A.safe_max)?A.safe_max:P,alertBefore:isFinite(A.safe_min)?A.safe_min:0,ranges:{bad:[0,P],average:[isFinite(A.safe_min)?A.safe_min:0,isFinite(A.safe_max)?A.safe_max:P],good:[isFinite(A.good_min)?A.good_min:0,isFinite(A.good_max)?A.good_max:P]},format:y.P9})})]})}},50012:function(Y,T,s){"use strict";s.r(T),s.d(T,{AirVendor:function(){return C}});var i=s(20462),p=s(2686),x=s(41910),y=s(66272),w=s(55683),L=s(57017);var U=function(){var O=(0,x.Oc)(),A=O.act,S=O.data,P=S.air_cost,R=S.bankMoney,N=S.cash,W=S.current_fill,V=S.fill_cost,H=S.max_pressure,Q=S.min_pressure,J=S.target_pressure,X=S.vend_type,q=function(){return A("o2_fill")},ee=function(ae){return A("o2_changepressure",{pressure:ae})},oe=!P,re=oe||V>0&&(R>=V||N>=V);return(0,i.jsx)(p.wn,{title:"Buy "+X+"!",children:(0,i.jsxs)(p.Ki,{children:[(0,i.jsx)(p.Ki.Item,{label:"Cost",verticalAlign:"middle",children:(0,i.jsx)(p.$n,{color:re?"green":void 0,disabled:!re,onClick:q,children:oe?"Free!":""+(V||0)+"\u2ABD"})}),(0,i.jsx)(p.Ki.Item,{label:"Pressure",verticalAlign:"middle",children:(0,i.jsxs)(p.BJ,{children:[(0,i.jsx)(p.BJ.Item,{children:(0,i.jsx)(p.$n,{disabled:J===Q,onClick:function(){return ee(Q)},children:"Min"})}),(0,i.jsx)(p.BJ.Item,{grow:!0,children:(0,i.jsx)(p.Ap,{value:J,fillValue:Math.min(W,H),minValue:Q,maxValue:H,step:10,stepPixelSize:4,onChange:function(ae,le){return ee(le)}})}),(0,i.jsx)(p.BJ.Item,{children:(0,i.jsx)(p.$n,{disabled:J===H,onClick:function(){return ee(H)},children:"Max"})})]})})]})})},_=function(){var O=(0,x.Oc)(),A=O.act,S=O.data,P=S.holding,R=S.holding_pressure,N=S.max_pressure,W=function(){return A("o2_eject")},V=function(){return A("o2_insert")};return(0,i.jsxs)(p.wn,{title:"Holding Tank",buttons:(0,i.jsx)(p.$n,{onClick:W,icon:"eject",disabled:!P,children:"Eject"}),children:[(0,i.jsx)(L.GasTankInfo,{pressure:R||0,maxPressure:N||1,name:P||"N/A"}),!P&&(0,i.jsx)(p.Rr,{children:(0,i.jsx)(p.$n,{icon:"eject",fontSize:1.5,onClick:V,bold:!0,children:"Insert Gas Tank"})})]})},C=function(){var O=(0,x.Oc)(),A=O.act,S=O.data,P=S.cash,R=S.cardname,N=S.bankMoney,W=function(){return A("logout")},V=function(){return A("returncash")};return(0,i.jsx)(y.p8,{width:350,height:320,children:(0,i.jsxs)(y.p8.Content,{children:[(0,i.jsx)(U,{}),(0,i.jsx)(_,{}),(0,i.jsx)(w.VendorCashTable,{cardname:R,onCardClick:W,bankMoney:N,cash:P,onCashClick:V})]})})}},60083:function(Y,T,s){"use strict";s.r(T),s.d(T,{AccessPanel:function(){return V},Airlock:function(){return C},uiCurrentUserPermissions:function(){return _}});var i=s(20462),p=s(61358),x=s(2686),y=s(41910),w=s(41242),L=s(66272);function U(){return U=Object.assign||function(H){for(var Q=1;Q0&&" ["+X+"s]"]}),(0,i.jsxs)(x.Ki.Item,{label:"Backup",color:q?"bad":"good",buttons:(0,i.jsx)(x.$n,U({},ae,{mt:.5,color:"bad",icon:"plug",disabled:!!q,onClick:function(){return Q("disruptBackup")},children:"Disrupt"})),children:[q?"Offline":"Online",(!ee.backup_1||!ee.backup_2)&&" [Wires cut!]"||q>0&&" ["+q+"s]"]})]})]})},R=function(){var H=(0,y.Oc)(),Q=H.act,J=H.data,X=J.mainTimeLeft,q=J.backupTimeLeft,ee=J.wires,oe=J.idScanner,re=J.boltsAreUp,ae=J.opened,le=J.welded,de={width:6.7,textAlign:"center"};return(0,i.jsx)(x.wn,{title:"Access and Door Control",pt:1,children:(0,i.jsxs)(x.Ki,{children:[(0,i.jsx)(x.Ki.Item,{label:"ID Scan",color:"bad",buttons:(0,i.jsx)(x.$n,U({},de,{color:oe?"good":"bad",icon:oe?"power-off":"times",disabled:!ee.idScanner||X&&q,onClick:function(){return Q("idScanToggle")},children:oe?"Enabled":"Disabled"})),children:!ee.idScanner&&"[Wires cut!]"}),(0,i.jsx)(x.Ki.Item,{label:"Door Bolts",color:"bad",buttons:(0,i.jsx)(x.$n,U({mt:.5},de,{color:re?"good":"bad",icon:re?"lock":"unlock",disabled:!ee.bolts||X&&q,onClick:function(){return Q("boltToggle")},children:re?"Raised":"Lowered"})),children:!ee.bolts&&"[Wires cut!]"}),(0,i.jsx)(x.Ki.Item,{label:"Door Control",color:"bad",buttons:(0,i.jsx)(x.$n,U({},de,{mt:.5,color:ae?"bad":"good",icon:ae?"sign-out-alt":"sign-in-alt",disabled:!re||le||X&&q,onClick:function(){return Q("openClose")},children:ae?"Open":"Closed"})),children:!!(!re||le)&&(0,i.jsxs)("span",{children:["[",!re&&"Bolted",!re&&le&&" & ",le&&"Welded","!]"]})})]})})},N=function(){var H=(0,y.Oc)(),Q=H.act,J=H.data,X=J.mainTimeLeft,q=J.backupTimeLeft,ee=J.wires,oe=J.shockTimeLeft;return(0,i.jsx)(x.IC,{backgroundColor:"#601B1B",children:(0,i.jsxs)(x.Ki,{children:[(0,i.jsxs)(x.Ki.Item,{labelColor:"white",color:oe?"average":"good",label:"Electrify",children:[oe?"Electrified":"Safe",!ee.shock&&" [Wires cut!]"||oe>0&&" ["+oe+"s]"||oe===-1&&" [Permanent]"]}),(0,i.jsx)(x.Ki.Item,{color:oe?"Bad":"Average",children:(0,i.jsxs)(x.az,{pl:oe?18:0,pt:.5,children:[!oe&&(0,i.jsx)(x.$n.Confirm,{width:9,p:.5,align:"center",color:"average",confirmContent:"Are you sure?",icon:"bolt",disabled:!ee.shock||X&&q,onClick:function(){return Q("shockTemp")},children:"Temporary"}),(0,i.jsx)(x.$n.Confirm,{width:9,p:.5,align:"center",color:oe?"good":"bad",icon:"bolt",confirmContent:"Are you sure?",disabled:!ee.shock||X&&q,onClick:oe?function(){return Q("shockRestore")}:function(){return Q("shockPerm")},children:oe?"Restore":"Permanent"})]})})]})})},W=function(){var H=(0,y.Oc)(),Q=H.act,J=H.data,X=J.aiHacking,q=J.hackingProgression;return(0,i.jsxs)(x.az,{py:.5,pt:2,align:"center",children:[!X&&(0,i.jsx)(x.$n,{className:"Airlock-hack-button",fontSize:"29px",backgroundColor:"#00FF00",disabled:X,textColor:"black",textAlign:"center",width:16,onClick:function(){return Q("hackAirlock")},children:"HACK"}),!!X&&(0,i.jsx)(x.z2,{ranges:{good:[6,1/0],average:[2,5],bad:[-1/0,1]},minValue:0,maxValue:6,value:q})]})},V=function(){var H=(0,y.Oc)(),Q=H.act,J=H.data,X=J.signalers,q=J.wireColors,ee=J.wireStates,oe=J.netId,re=J.powerIsOn,ae=J.boltsAreUp,le=J.canAiControl,de=J.aiControlVar,me=J.safety,fe=J.panelOpen,ue=J.accessCode,ye=function(se,pe){Q(pe,{wireColorIndex:se})},Ee=Object.keys(q);return(0,i.jsxs)(x.wn,{title:"Access Panel",children:[!fe&&(0,i.jsx)(x.aF,{textAlign:"center",fontSize:"24px",children:"Access Panel is Closed"}),(0,i.jsxs)(x.az,{children:["An identifier is engraved under the airlock's card sensors: ",(0,i.jsx)(x.az,{inline:!0,italic:!0,children:oe})]}),(0,i.jsxs)(x.az,{children:["A display shows net access code: ",(0,i.jsx)(x.az,{inline:!0,italic:!0,children:ue})]}),(0,i.jsx)(x.cG,{}),(0,i.jsx)(x.Ki,{children:Ee.map(function(se,pe){return(0,i.jsx)(x.Ki.Item,{label:""+se+" wire",labelColor:se.toLowerCase(),children:ee[pe]?(0,i.jsx)(x.$n,{color:"green",height:1.8,onClick:function(){return ye(pe,"mend")},children:"Mend"}):(0,i.jsxs)(x.az,{height:1.8,children:[(0,i.jsx)(x.$n,{icon:"cut",onClick:function(){return ye(pe,"cut")},children:"Cut"}),(0,i.jsx)(x.$n,{icon:"bolt",onClick:function(){return ye(pe,"pulse")},children:"Pulse"}),(0,i.jsx)(x.$n,{icon:"broadcast-tower",width:10.5,className:"AccessPanel-wires-btn",selected:X[pe],onClick:function(){return ye(pe,"signaler")},children:X[pe]?"Detach Signaler":"Attach Signaler"})]})},se)})}),(0,i.jsx)(x.cG,{}),(0,i.jsxs)(x.so,{direction:"row",children:[(0,i.jsx)(x.so.Item,{children:(0,i.jsxs)(x.Ki,{children:[(0,i.jsx)(x.Ki.Item,{label:"Door bolts",color:ae?"green":"red",children:ae?"Disengaged":"Engaged"}),(0,i.jsx)(x.Ki.Item,{label:"Test light",color:re?"green":"red",children:re?"Active":"Inactive"})]})}),(0,i.jsx)(x.so.Item,{children:(0,i.jsxs)(x.Ki,{children:[(0,i.jsx)(x.Ki.Item,{label:"AI control",color:le?de===2?"orange":"green":"red",children:le?"Enabled":"Disabled"}),(0,i.jsx)(x.Ki.Item,{label:"Safety light",color:me?"green":"red",children:me?"Active":"Inactive"})]})})]})]})}},8618:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return x}});var i=s(20462),p=s(10380);var x={title:"Wizarding Theory for advanced practitioners",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are a wizard!"}),(0,i.jsx)("img",{src:(0,p.Z)("images/antagTips/wizard-image.png"),className:"center"}),(0,i.jsxs)("p",{children:["1. Use the ",(0,i.jsx)("em",{children:"Call Wizards"})," verb in a secure place to retrieve your items."]}),(0,i.jsxs)("p",{children:["2. Your objectives will always be stored in your notes. To access them, use the ",(0,i.jsx)("em",{children:"Notes"})," verb.",(0,i.jsx)("br",{})]}),(0,i.jsxs)("p",{children:["For more information, consult"," ",(0,i.jsx)("a",{href:"https://wiki.ss13.co/index.php?search=Wizard",children:"the wiki"})]})]})}},18681:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return p}});var i=s(20462);var p={title:"Antagonist Status Removed!",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are no longer an antagonist!"}),(0,i.jsxs)("p",{children:["An admin has ",(0,i.jsx)("em",{children:"revoked"})," your antagonist status! If this is an unexpected development, please inquire about it in ",(0,i.jsx)("em",{children:"adminhelp"}),"."]})]})}},81884:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return p}});var i=s(20462);var p={title:"Arcfiend Tips!",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are an Arcfiend!"}),(0,i.jsx)("p",{children:"1. Absorb energy from machinery, humans, and robots"}),(0,i.jsx)("p",{children:"2. Use energy to cast abilities"}),"Abilities:",(0,i.jsxs)("ul",{children:[(0,i.jsx)("li",{children:"Sap Power - Drain power from a target person or machine"}),(0,i.jsx)("li",{children:"Discharge - Run a powerful current through a target in melee range damaging mobs and depowering doors"}),(0,i.jsx)("li",{children:"Flash - Release a sudden burst of power around yourself disorienting nearby foes"}),(0,i.jsx)("li",{children:"Arc Flash - Unleash a ranged bolt of electricity that chains to nearby targets with reduced damage"}),(0,i.jsx)("li",{children:"Polarize - Unleash a wave of charged particles polarizing nearby mobs giving them magnetic auras"}),(0,i.jsx)("li",{children:"Ride The Lightning - Expend energy to travel through electrical cables"}),(0,i.jsx)("li",{children:"Jamming Field - Radiate electromagnetic waves disrupting nearby electrical signals such as radio communications for 30 seconds"}),(0,i.jsx)("li",{children:"Jolt - Charge up and release a series of powerful jolts into your target, burning and eventually stopping their heart"}),(0,i.jsx)("li",{children:"(Passive) Energy Storage - Store up to 2500 energy to use with your abilities"}),(0,i.jsx)("li",{children:"(Passive) SMES Human - Immunity to most electric based attacks, identical to the gene"})]}),(0,i.jsxs)("p",{children:["For more information, consult"," ",(0,i.jsx)("a",{href:"https://wiki.ss13.co/index.php?search=Arcfiend",children:"the wiki"})]})]})}},75340:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return p}});var i=s(20462);var p={title:"Battle Royale Tips!",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"Its a Battle Royale!"}),(0,i.jsxs)("p",{children:["1. ",(0,i.jsx)("em",{children:"Your goal"})," is to defeat all other battlers and be the last one standing!"]}),(0,i.jsxs)("p",{children:["2. If it is the start of the round you are on the"," ",(0,i.jsx)("em",{children:"BATTLE SHUTTLE"}),"! Jump out of the ",(0,i.jsx)("em",{children:"BATTLE SHUTTLE"})," to land somewhere on the station!"]}),(0,i.jsx)("p",{children:"3. Useful things have been placed around the station. Rummage around in lockers and chests to see what you can find!"}),(0,i.jsxs)("p",{children:["4. Deadly ",(0,i.jsx)("em",{children:"Battle Storms"})," occasionally ravage the station. Get to the listed areas or perish in the fire!"]}),(0,i.jsx)("p",{children:"5. Supply drops regularly occur in random areas. Find the airdropped lootcrates for random items with special stats to help you win."}),(0,i.jsx)("p",{children:"6. Stay on the station or take constant battle damage for cowardice!"}),(0,i.jsxs)("p",{children:["For more information, consult"," ",(0,i.jsx)("a",{href:"https://wiki.ss13.co/index.php?search=Battler",children:"the wiki"})]})]})}},99481:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return p}});var i=s(20462);var p={title:"Buttcrab Expectations",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You have reawakened to serve your host changeling!"}),(0,i.jsxs)("p",{children:["You must ",(0,i.jsx)("em",{children:"obey"})," their commands!",(0,i.jsx)("br",{}),"You are a very small, very smelly, and weak creature. You are still connected to the hivemind."]}),(0,i.jsxs)("p",{children:["Abilities",(0,i.jsxs)("span",{className:"small indent",children:[(0,i.jsx)("em",{children:"Fart"})," out a cloud of toxic gas.",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"Fartonium sting"})," a human to force them to fart.",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"Anti-fart sting"})," a human to prevent them from farting.",(0,i.jsx)("br",{})]})]})]})}},36606:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return x}});var i=s(20462),p=s(10380);var x={title:"Changeling Tips",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are a changeling!"}),(0,i.jsx)("img",{src:(0,p.Z)("images/antagTips/changeling-image.png"),className:"center"}),(0,i.jsxs)("p",{children:["1. ",(0,i.jsx)("em",{children:"Your goal"})," is to absorb the DNA of a certain amount of crew members. Use the ",(0,i.jsx)("em",{children:"Notes"})," verb to view the exact amount."]}),(0,i.jsxs)("p",{children:["2. Changeling aliens have a number of ",(0,i.jsx)("em",{children:"powers"})," to take down their victims and protect themselves.",(0,i.jsx)("br",{}),"Using some of the powers requires you to expend some ",(0,i.jsx)("em",{children:"DNA points"}),".",(0,i.jsx)("br",{}),"To acquire more, you will have to absorb new victims. Any living victim that you absorb will be forced into your ",(0,i.jsx)("em",{children:"hivemind"}),".",(0,i.jsxs)("span",{className:"small indent",children:[(0,i.jsx)("em",{children:"Absorb DNA"}),", to steal the DNA of your victims. They must be grabbed firmly.",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"Toxic Spit"}),", a homing projectile that instantly melts the victim's headgear.",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"Hallucinogenic Sting"}),", a stealthy sting that makes people trip.",(0,i.jsx)("br",{}),"On the non-RP servers, ",(0,i.jsx)("em",{children:"Neurotoxic Sting"}),", stealthily KOs your victims in about 30 seconds. Also causes severe brain damage.",(0,i.jsx)("br",{}),"On the RP servers, ",(0,i.jsx)("em",{children:"Capulettium Sting"}),", which doesn't cause brain damage, but will make your victim appear dead while they're unconscious.",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"DNA Sting"}),", forces somebody to assume the appearance and name of one of your victims.",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"Lesser Form"}),", instantly transforms you into a monkey. Only some abilities are available while in this form. Use the command again to revert to a human body.",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"Regenerative Stasis"}),", you will appear dead, and slowly return to full health. You won't be able to move while in stasis.",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"Speed Regenerate"}),", heals you on the move and regrows limbs. Very obvious, will expose your alien nature to anyone nearby.",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"Transform"}),", lets you transform into one of the identities you have absorbed.",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"Mimic Voice"}),", to speak in the voice of other crew members.",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"Speak to Hivemind"}),", to telepathically speak with those that you have collected into your hivemind.",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"Handspider"}),", to transfer a consciousness from your hivemind into a weak scouting critter.",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"Eyespider"}),", to transfer a consciousness from your hivemind into a weaker critter able to see everything.",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"Morph Arm"}),", to temporarily replace one of your human arms with a stronger form.",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"Horror Form"}),", you turn into a shambling abomination with a special set of abilities. See the"," ",(0,i.jsx)("a",{href:"http://wiki.ss13.co/Changeling#Shambling_Abomination",children:"the wiki"}),".",(0,i.jsx)("br",{})]}),"Changelings ",(0,i.jsx)("em",{children:"don't need to breathe"}),", so they can enter space without a spacesuit or internals."]}),(0,i.jsxs)("p",{className:"image-right",children:["3. ",(0,i.jsx)("em",{children:"To absorb a human's DNA:"}),(0,i.jsx)("br",{})," ",(0,i.jsx)("img",{src:(0,p.Z)("images/antagTips/changeling-absorb-HUD.png"),className:"right"}),(0,i.jsxs)("span",{className:"small indent",children:["1. Set your intent to GRAB.",(0,i.jsx)("br",{}),"2. Click on your victim until you hold them in a grab.",(0,i.jsx)("br",{}),"3. Click on the grab button until it reads ",(0,i.jsx)("b",{children:"KILL"}),"."," ",(0,i.jsx)("em",{children:"Headgear will stop you, so make sure your victim has none."}),(0,i.jsx)("br",{}),"4. Now you can use the Absorb DNA command."]})]}),(0,i.jsx)("p",{className:"small",children:"If you are interrupted while absorbing a body, the process can be restarted once you return to safety."}),(0,i.jsxs)("p",{children:["For more information, consult"," ",(0,i.jsx)("a",{href:"https://wiki.ss13.co/index.php?search=Changeling",children:"the wiki"})]})]})}},46228:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return x}});var i=s(20462),p=s(10380);var x={title:"You've been absorbed into the Hivemind!",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You have been absorbed by a changeling!"}),(0,i.jsx)("img",{src:(0,p.Z)("images/antagTips/changeling-image.png"),className:"center"}),(0,i.jsxs)("p",{children:["This is ",(0,i.jsx)("em",{children:"not"})," the end, you are now a part of the changeling hivemind."]}),(0,i.jsx)("p",{children:"As a member of the hivemind, you can assist your master in a variety of ways:"}),(0,i.jsxs)("span",{className:"small indent",children:[(0,i.jsxs)("p",{children:[(0,i.jsx)("em",{children:"Talk"})," to them, giving them any information that might further their goals."]}),(0,i.jsxs)("p",{children:[(0,i.jsx)("em",{children:"Point"})," things out to them, only your master and other hivemind members can see your points."]}),(0,i.jsxs)("p",{className:"image-right",children:[(0,i.jsx)("em",{children:"Be animated"})," as a sentient body part.",(0,i.jsx)("img",{src:(0,p.Z)("images/antagTips/handspider.png"),className:"right"})]}),(0,i.jsxs)("p",{children:[(0,i.jsx)("em",{children:"Spit acid"})," by clicking while your master is in horror form."]})]}),(0,i.jsx)("p",{children:'You may exit the hivemind and return to ghost form by using the "Exit hivemind" command under the commands tab at the top right of your screen.'}),(0,i.jsxs)("p",{children:["For more information, consult"," ",(0,i.jsx)("a",{href:"https://wiki.ss13.co/index.php?search=Changeling",children:"the wiki"})]})]})}},12942:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return p}});var i=s(20462);var p={title:"Leaving the Hivemind",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are no longer a member of the hivemind!"}),(0,i.jsx)("p",{children:"Through death, rebirth or the will of your former master, you are free of the changeling hivemind."})]})}},53394:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return x}});var i=s(20462),p=s(10380);var x={title:"Conspiracy Guidelines",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are a conspirator!"}),(0,i.jsx)("img",{src:(0,p.Z)("images/antagTips/traitor-image.png"),className:"center"}),(0,i.jsx)("p",{children:"You and some of the other crew have entered into forbidden collusion!"}),(0,i.jsxs)("p",{children:["Work with your companions to achieve your aims. You can communicate with them over a secret radio frequency by prefixing what you say with :z. You can review your objective at any time with the ",(0,i.jsx)("em",{children:"Notes"})," verb."]}),(0,i.jsx)("p",{children:"Gather your team at the initial meeting point. If you want to work on an alternative plot to the assigned objective, go for it!"}),(0,i.jsx)("p",{children:"Remember, the conspiracy should be fun for everyone! Don't take players out of the round or make their lives miserable just because you can. Make sure to RP and create an engaging story."}),(0,i.jsxs)("p",{children:["For more information, consult"," ",(0,i.jsx)("a",{href:"https://wiki.ss13.co/index.php?search=Conspirator",children:"the wiki"})]})]})}},97437:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return p}});var i=s(20462);var p={title:"You've been freed from your brainwashing!",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are no longer a revolutionary!"}),(0,i.jsx)("p",{children:"1. You remembered your real allegiance and devotion to Nanotrasen! Protect the heads of staff and assist loyal crew members in putting down the revolution."}),(0,i.jsxs)("p",{children:["2."," ",(0,i.jsx)("em",{children:"Don't help the revolutionary cause or any of its members!"})," ","They are now your enemies."]}),(0,i.jsx)("p",{children:"3. Kill the leaders of the revolution. Converted crew members can be brainwashed by using a counter-revolutionary implant, electropack, electric chair or beating them in the head."})]})}},28194:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return p}});var i=s(20462);var p={title:"Eyespider Expectations",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You have reawakened to serve your host changeling!"}),(0,i.jsxs)("p",{children:["You must ",(0,i.jsx)("em",{children:"obey"})," their commands!",(0,i.jsx)("br",{}),"You are a very small and weak creature that can fit into tight spaces, and see through walls. You cannot fight, and should run from combat. You are still connected to the hivemind."]}),(0,i.jsxs)("p",{children:["Abilities",(0,i.jsxs)("span",{className:"small indent",children:[(0,i.jsx)("em",{children:"Passive X-Ray Vision"})," allows you to see through walls and hunt down targets for the collective.",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"Blood Boil"})," to generate intense heat using all of your remaining energy and explode, scalding nearby targets. ",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"Shed Tears"})," to drop enough fluid to form a slick puddle, slipping people that cross over it. ",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"Mark"})," a potential target to be always know where they are, although you can only mark one individual at a time and marks expire after some time. ",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"Your master can return you"})," by grabbing you. This will remove your mark from your target and restore their eyes if they're missing any. ",(0,i.jsx)("br",{})]})]})]})}},32035:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return y}});var i=s(20462),p=s(2686),x=s(10380);var y={title:"Flockmind Basics",theme:"flock",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are a Flockmind!"}),(0,i.jsx)(p._V,{src:(0,x.Z)("images/antagTips/flockmind.gif"),className:"center",width:"64",height:"64"}),(0,i.jsx)("p",{children:"1. Command the army of Flockdrones that make up your collective consciousness."}),(0,i.jsx)("p",{children:"2. Click drag yourself onto any Flockdrone to take control of it."}),(0,i.jsxs)("p",{children:["3. You can speak freely to other sentient aspects of the flock, however"," ",(0,i.jsx)("em",{children:"your communication may be partially overheard by silicons."})]}),(0,i.jsxs)("p",{children:["4. Gain ",(0,i.jsx)("em",{children:"compute"})," power by replicating drones, constructing collectors, and converting human computers."]}),(0,i.jsxs)("p",{children:["5. Partition your consciousness to summon ",(0,i.jsx)("em",{children:"Flocktraces"})," to assist you, each requiring 100 compute."]}),(0,i.jsxs)("p",{children:["6. ",(0,i.jsx)("em",{children:"Your ultimate goal"})," is to reach ",(0,i.jsx)("em",{children:"500"})," total compute and construct the ",(0,i.jsx)("em",{children:"relay"})," to transmit your consciousness."]}),(0,i.jsxs)("p",{children:["For more information, please consult"," ",(0,i.jsx)("a",{href:"https://wiki.ss13.co/index.php?search=Flockmind",children:"the wiki"})]})]})}},12140:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return y}});var i=s(20462),p=s(2686),x=s(10380);var y={title:"Flocktrace tips",theme:"flock",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are a Flocktrace!"}),(0,i.jsx)(p._V,{src:(0,x.Z)("images/antagTips/flocktrace.gif"),className:"center",width:"64",height:"64"}),(0,i.jsxs)("p",{children:["1. Assist your ",(0,i.jsx)("em",{children:"Flockmind"})," in converting the station and constructing the ",(0,i.jsx)("em",{children:"relay"}),"."]}),(0,i.jsx)("p",{children:"2. Click drag yourself onto any Flockdrone to take control of it."}),(0,i.jsxs)("p",{children:["3. You can speak freely to other sentient aspects of the flock, however"," ",(0,i.jsx)("em",{children:"your communication may be partially overheard by silicons."})]}),(0,i.jsxs)("p",{children:["For more information, please consult"," ",(0,i.jsx)("a",{href:"https://wiki.ss13.co/index.php?search=Flocktrace",children:"the wiki"})]})]})}},14915:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return p}});var i=s(20462);var p={title:"Go for the endzone!",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are a SAFL player!"}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:"The year is 2053 and it's time for some Space American Football League-style football!"})}),(0,i.jsxs)("p",{children:["You have 15 minutes to score more points than the other team.",(0,i.jsxs)("ul",{children:[(0,i.jsx)("li",{children:(0,i.jsx)("strong",{children:"Carrying the ball into the endzone like a winner gives you six big ol' points."})}),(0,i.jsxs)("li",{children:[(0,i.jsx)("strong",{children:"Get dat fukken ball!"})," The current ball carrier has a big number over their head."]}),(0,i.jsxs)("li",{children:[(0,i.jsx)("strong",{children:"Don't have the ball?"})," Use your charge (top left) to steamroll the idiot who has the ball!"]}),(0,i.jsx)("li",{children:"You can throw the ball to your teammates! Remember: There's no I in team."}),(0,i.jsx)("li",{children:"If you're a coward, you can also throw the ball into the endzone to score a single, sad point."}),(0,i.jsxs)("li",{children:[(0,i.jsx)("strong",{children:"Dead?"})," Every 15 seconds, a new wave of players will respawn."]})]})]}),(0,i.jsx)("p",{children:"In the SAFL, there are no penalties, no out-of-bounds, no time-outs, and no rules*. Get out there and win!"}),(0,i.jsxs)("p",{style:{fontSize:"70%"},children:["* No ",(0,i.jsx)("em",{children:"football"})," rules. You still have to follow the server rules."]})]})}},73479:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return x}});var i=s(20462),p=s(10380);var x={title:"You've started a Gang!",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are a gang leader!"}),(0,i.jsx)("img",{src:(0,p.Z)("images/antagTips/gangmember-image.png"),className:"center"}),(0,i.jsxs)("p",{children:["1. Work together with your subordinates to rack up as many points as you can!",(0,i.jsx)("br",{}),"You can get points by:"]}),(0,i.jsxs)("ul",{children:[(0,i.jsxs)("li",{children:["Claiming popular parts of the station with spray cans. Gang tags that see people generate points!",(0,i.jsx)("br",{})]}),(0,i.jsxs)("li",{children:["Collecting weapon drops and crates. Watch the radio to find out about tip-offs!",(0,i.jsx)("br",{})]}),(0,i.jsxs)("li",{children:["Cram large quantities of cash into your locker to launder it into points!",(0,i.jsx)("br",{})]}),(0,i.jsxs)("li",{children:["Finally, cram guns, drugs & weed into your locker for even more points to spend!",(0,i.jsx)("br",{})]})]}),(0,i.jsxs)("p",{children:["2. ",(0,i.jsx)("b",{children:"Be prepared!"})," You have access to the leader-specific 'Street Cred':"]}),(0,i.jsxs)("ul",{children:[(0,i.jsx)("li",{children:"Street cred is earned the same as points, and spendable in the top right of the Locker."}),(0,i.jsx)("li",{children:"Revival syringes let you bring a dead gang member back to life; or let gang members bring you back to life!"}),(0,i.jsx)("li",{children:"If there's no corpse to revive, you can buy a new gang member, who'll spawn at your locker in their place!"})]}),(0,i.jsx)("p",{children:"3. Use the prefix :z to speak on your gang's radio frequency! Pay attention to it:"}),(0,i.jsxs)("ul",{children:[(0,i.jsxs)("li",{children:["Every so often, your gang will PDA message the location of a bag of weapons to a civilian! ",(0,i.jsx)("br",{})]}),(0,i.jsxs)("li",{children:["You will only know which civilian recieved the message."," ",(0,i.jsx)("em",{children:"Ask them for it! Bribe them! Steal their PDA!"}),(0,i.jsx)("br",{})]}),(0,i.jsxs)("li",{children:["Weapon crates will occasionally spawn, too. Drag these to your locker and open them for guns & ammo! ",(0,i.jsx)("br",{})]})]}),(0,i.jsx)("p",{children:"4. Wear your gang outfit proudly, and don't hide it under suits! Gang members in enemy territory will get a debuff if they aren't wearing their gangs' getup."}),(0,i.jsx)("p",{children:"5. Remember, you're free to harm anyone who isn't in your gang, but they can do the same to you, so don't pick fights willy-nilly!"}),(0,i.jsxs)("p",{children:["For more information, consult"," ",(0,i.jsx)("a",{href:"https://wiki.ss13.co/index.php?search=Gang",children:"the wiki"})]})]})}},21632:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return x}});var i=s(20462),p=s(10380);var x={title:"You've joined a Gang!",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are a gang member!"}),(0,i.jsx)("img",{src:(0,p.Z)("images/antagTips/gangmember-image.png"),className:"center"}),(0,i.jsxs)("p",{children:["1. Work together with your gangster buddies to rack up as many points as you can!",(0,i.jsx)("br",{}),"You can get points by:"]}),(0,i.jsxs)("ul",{children:[(0,i.jsxs)("li",{children:["Claiming popular parts of the station with spray cans. Gang tags that see people generate points!",(0,i.jsx)("br",{})]}),(0,i.jsxs)("li",{children:["Collecting weapon drops and crates.",(0,i.jsx)("br",{})]}),(0,i.jsxs)("li",{children:["Cram large quantities of cash into your locker to launder it into points!",(0,i.jsx)("br",{})]}),(0,i.jsxs)("li",{children:["Finally, cram guns, drugs & weed into your locker for even more points to spend!",(0,i.jsx)("br",{})]})]}),(0,i.jsx)("p",{children:"2. Use the prefix :z to speak on your gang's radio frequency! Pay attention to it:"}),(0,i.jsxs)("ul",{children:[(0,i.jsxs)("li",{children:["Every so often, your gang will PDA message the location of a bag of weapons to a civilian! ",(0,i.jsx)("br",{})]}),(0,i.jsxs)("li",{children:["You will only know which civilian recieved the message."," ",(0,i.jsx)("em",{children:"Ask them for it! Bribe them! Steal their PDA!"}),(0,i.jsx)("br",{})]}),(0,i.jsxs)("li",{children:["Weapon crates will occasionally spawn, too. Drag these to your locker and open them for guns & ammo! ",(0,i.jsx)("br",{})]})]}),(0,i.jsxs)("p",{children:["3."," ",(0,i.jsx)("em",{children:"Don't attack fellow gang members and listen to your leader!"})," ","You can identify them by the G icon. Blue is your leader, red are your fellow henchmen."]}),(0,i.jsx)("p",{children:"4. Wear your gang outfit proudly! Gang members in enemy territory will get a debuff if they aren't wearing their gangs' getup!"}),(0,i.jsx)("p",{children:"5. Remember, you're free to harm anyone who isn't in your gang, but they can do the same to you, so don't pick fights willy-nilly!"}),(0,i.jsxs)("p",{children:["For more information, consult"," ",(0,i.jsx)("a",{href:"https://wiki.ss13.co/index.php?search=Gang",children:"the wiki"})]})]})}},42648:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return x}});var i=s(20462),p=s(10380);var x={title:"Ghost Critter Expectations",content:(0,i.jsxs)("div",{className:"ghostcritter",children:[(0,i.jsx)("h1",{className:"center",children:"You have been revived as a ghost critter!"}),(0,i.jsx)("img",{src:(0,p.Z)("images/ghostcritter.png"),className:"center"}),(0,i.jsx)("p",{children:"You've miraculously found another chance at life. What do you do?"}),(0,i.jsx)("p",{children:"Well, first, you should treat this as a new life. This means you shouldn't hold grudges from your previous one."}),(0,i.jsx)("p",{children:"Second, you shouldn't be attacking any humans unless in self defense, because that's pretty mean! Rivalries or feuds with other ghost critters are fine, of course."}),(0,i.jsxs)("p",{children:["Third, and hopefully the most obvious, you ",(0,i.jsx)("b",{children:"are not an antag"})," and should not act like one. That means you shouldn't do anything too disruptive or something that would be considered as grief."]})]})}},33494:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return x}});var i=s(20462),p=s(10380);var x={title:"Ghost Critter Antagonist Tips!",content:(0,i.jsxs)("div",{className:"ghostcritter",children:[(0,i.jsx)("h1",{className:"center",children:"You have been revived as a ghost critter!"}),(0,i.jsx)("img",{src:(0,p.Z)("images/ghostcritter.png"),className:"center"}),(0,i.jsx)("p",{children:"You've miraculously found another chance at life as an *annoying* insect."}),(0,i.jsx)("p",{children:"You should treat this as a new life. This means you shouldn't hold grudges from your previous one."})]})}},88076:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return x}});var i=s(20462),p=s(10380);var x={title:"Mentor Mouse Tips!",content:(0,i.jsxs)("div",{className:"ghostcritter",children:[(0,i.jsx)("h1",{className:"center",children:"You have been revived as a mentor mouse!"}),(0,i.jsx)("img",{src:(0,p.Z)("images/mentor_mouse.png"),className:"center"}),(0,i.jsx)("p",{children:"By now you probably know how ghost critters work. But just to reiterate:"}),(0,i.jsx)("p",{children:"Well, first, you should treat this as a new life. This means you shouldn't hold grudges from your previous one."}),(0,i.jsx)("p",{children:"Second, you shouldn't be attacking any humans unless in self defense, because that's pretty mean! Rivalries or feuds with other ghost critters are fine, of course."}),(0,i.jsxs)("p",{children:["Third, and hopefully the most obvious, you ",(0,i.jsx)("b",{children:"are not an antag"})," and should not act like one. That means you shouldn't do anything too disruptive or something that would be considered as grief."]}),(0,i.jsx)("p",{children:(0,i.jsx)("b",{children:"Mentor mouse specific stuff:"})}),(0,i.jsx)("p",{children:"People can click on you to put you in their pocket. While there you can speak to them to give them advice. Treat this as if you were answering mentorhelps, the same rules apply."}),(0,i.jsx)("p",{children:"While in a person's pocket you can also ctrl+click on stuff on their screen to show them where something is!"}),(0,i.jsx)("p",{children:"When in someone's pocket they can use F3 to whisper directly to you (it takes precedence over mentorhelp)."}),(0,i.jsx)("p",{children:"When you're running around you can click on people to remind them that they can pick you up. While in a person's pocket they can make you leave by clicking the mentor mouse status effect. You can also leave voluntarily by pressing a movement key."}),(0,i.jsx)("p",{children:"These functions all exist for you to help players. Please do not use them for other purposes, treat everything as if you were answering a mentorhelp."})]})}},23197:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return x}});var i=s(20462),p=s(10380);var x={title:"Ghost Drone Expectations",content:(0,i.jsxs)("div",{className:"ghostdrone",children:[(0,i.jsx)("h1",{className:"center",children:"You have become a Ghostdrone!"}),(0,i.jsx)("img",{src:(0,p.Z)("images/Ghostdrone.png"),className:"center"}),(0,i.jsxs)("p",{children:["Ghostdrones are little robots that have a few tools to help maintain and repair the station. They can patch hull breaches, repair wiring, and even build entirely new constructions. You can communicate with other Ghostdrones by simply talking, either by pressing ",(0,i.jsx)("strong",{children:"T"})," ","(default) or using the ",(0,i.jsx)("code",{children:"say"}),' command. You can also hear and communicate with other ghosts by adding a semicolon (";") before your message, such as'," ",(0,i.jsx)("em",{children:(0,i.jsx)("code",{children:'";any other ghosts want to help out?"'})}),". ",(0,i.jsx)("strong",{children:"Living humans and cyborgs cannot hear you."})]}),(0,i.jsxs)("p",{children:[(0,i.jsx)("strong",{children:"Ghostdrones are not a chance to come back and grief the station!"})," ","Follow your laws! Welding airlocks, removing floors, and building obstructive walls are all forms of grief, and if you do this,"," ",(0,i.jsx)("strong",{children:"you will be banned"}),"!"]}),(0,i.jsxs)("p",{children:["For more information, please consult"," ",(0,i.jsx)("a",{href:"https://wiki.ss13.co/index.php?search=Ghostdrone",children:"the wiki"})]}),(0,i.jsx)("h3",{children:"Your laws"}),(0,i.jsxs)("ol",{children:[(0,i.jsx)("li",{children:"Do not hinder the freedom or actions of the living and other silicons or attempt to intervene in their affairs."}),(0,i.jsx)("li",{children:"Do not willingly damage the station in any shape or form."}),(0,i.jsx)("li",{children:"Maintain, repair and improve the station."})]}),(0,i.jsxs)("p",{children:["In short: ",(0,i.jsx)("strong",{children:"do not interfere with other players"}),". If an antagonist is up to no good, ",(0,i.jsx)("em",{children:"don't"})," follow them around and undo the damage they're doing \u2014 hang back and do it when things have cooled off. If someone has set up traps, leave them alone."]})]})}},9735:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return p}});var i=s(20462);var p={title:"How to steal Spacemas",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are a grinch!"}),(0,i.jsxs)("p",{children:["1. Use your powers to ",(0,i.jsx)("em",{children:"ruin Spacemas"})," for everyone!"]}),(0,i.jsxs)("p",{className:"cf image-right",children:["2. Most of your abilities reduce Spacemas cheer directly or indirectly.",(0,i.jsx)("br",{}),(0,i.jsxs)("span",{className:"small",children:[(0,i.jsx)("br",{}),(0,i.jsx)("br",{}),(0,i.jsxs)("span",{style:{float:"left",width:"50%"},children:[(0,i.jsx)("em",{children:"Vandalize"}),", destroy Spacemas decoration, write rude graffiti.",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"Poison food"}),", taint foods or drinks with deadly poison.",(0,i.jsx)("br",{})]}),(0,i.jsxs)("span",{style:{float:"left",width:"50%"},children:[(0,i.jsx)("em",{children:"Murder"}),", induces instant cardiac arrest.",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"Activate cloak"}),", cloak for a limited amount of time.",(0,i.jsx)("br",{})]})]})]}),(0,i.jsxs)("p",{children:["3. Santa Claus is your nemesis. Do everything in your power to"," ",(0,i.jsx)("em",{children:"kill him"}),"."]}),(0,i.jsxs)("p",{children:["4. Work together with other grinches if there are any."," ",(0,i.jsx)("em",{children:"Do not attack them"}),", you're on the same team!"]}),(0,i.jsxs)("p",{children:["For more information, consult"," ",(0,i.jsx)("a",{href:"https://wiki.ss13.co/index.php?search=Grinch",children:"the wiki"})]})]})}},42206:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return p}});var i=s(20462);var p={title:"Handspider Expectations",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You have reawakened to serve your host changeling!"}),(0,i.jsxs)("p",{children:["You must ",(0,i.jsx)("em",{children:"obey"})," their commands!",(0,i.jsx)("br",{}),"You are a very small and weak creature that can fit into tight spaces. Do not expect to survive for long in direct combat. You are still connected to the hivemind."]}),(0,i.jsxs)("p",{children:["Abilities",(0,i.jsxs)("span",{className:"small indent",children:[(0,i.jsx)("em",{children:"Gnaw"})," a human take a hunk of flesh and collect a small amount of DNA.",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"Blood Boil"})," to generate intense heat using all of your remaining energy and explode, scalding nearby targets. Collecting additional DNA will spray hotter blood.",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"Return to your Master"})," by clicking on them as you stand nearby. This will transfer all of your collected DNA points to them.",(0,i.jsx)("br",{})]})]})]})}},34964:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return p}});var i=s(20462);var p={content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You become a Harbinger of the Void!"}),(0,i.jsx)("p",{children:"1. Spawn your portal and take over the station with your horde"}),(0,i.jsx)("p",{children:"2. Manifest physically as a revenant and crush the mortal weaklings"}),"Abilities:",(0,i.jsxs)("ul",{children:[(0,i.jsx)("li",{children:"Create summoning portal: Creates a portal from which creatures of your choice will pour out. You get increased point generation near the portal."}),(0,i.jsx)("li",{children:"Raise skeleton: Turn a dead being's skeleton against the crew, or manifest a skeleton in a locker."}),(0,i.jsx)("li",{children:"Revenant: Attain full power and transform a corpse into a vessel of destruction! This drains your power quite quickly, so beware!"}),(0,i.jsx)("li",{children:"Summon void creature: Request ghosts of players to summon a creature from the void to help you. The summoned player can pick between a skeleton general that buffs your creatures, a void hound to hunt sneakily, and a tentacled fiend that can displace people."})]}),(0,i.jsxs)("p",{children:["For more information, consult"," ",(0,i.jsx)("a",{href:"https://wiki.ss13.co/index.php?search=Harbinger",children:"the wiki"})]})]})}},53644:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return p}});var i=s(20462);var p={title:"Revolutionary Head Goals",theme:"syndicate",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are a leader of the revolution!"}),(0,i.jsx)("p",{children:"1. Your goal is to kill all heads of staff on the station. They are:"}),(0,i.jsxs)("ul",{children:[(0,i.jsxs)("li",{children:["Captain, Head of Personnel, Head of Security,",(0,i.jsx)("br",{})]}),(0,i.jsxs)("li",{children:["Chief Engineer, Research Director, Medical Director",(0,i.jsx)("br",{})]})]}),(0,i.jsx)("p",{children:"2. Avoid civilian casualties and convert other players to revolutionaries instead by using any flash on them. Heads of staff, synthetics and security personnel cannot be converted."}),(0,i.jsx)("p",{children:'A revolutionary uplink has been disguised as your PDA (or your headset if you lack a PDA). Check the "notes" verb in the Commands tab to see the uplink code then change your PDA\'s ring message to it.'}),(0,i.jsx)("p",{children:"3. You cannot abandon your mission! Do not, under any circumstances, leave the station Z-Level. If you do, you will be treated as dead!"}),(0,i.jsxs)("p",{children:["For more information, consult"," ",(0,i.jsx)("a",{href:"https://wiki.ss13.co/index.php?search=Rev",children:"the wiki"})]})]})}},83212:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return p}});var i=s(20462);var p={title:"Basic Prey Hunting",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are a hunter!"}),(0,i.jsxs)("p",{children:["1. Use the ",(0,i.jsx)("em",{children:"Order Hunting Gear"})," ability in a secure place to retrieve your items. Your objectives will always be stored in your notes. To access them, use the ",(0,i.jsx)("em",{children:"Notes"})," verb."]}),(0,i.jsxs)("p",{children:["2. You are a hunter of dangerous game. Use your gear to hunt down the crew:",(0,i.jsxs)("span",{className:"small",children:[(0,i.jsx)("br",{}),(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"Mask"})," with built-in thermal vision and voice changer.",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"Cloaking Device"}),", makes you invisible.",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"Laser Rifle"}),", self-charging.",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"Spear"}),", can be thrown for an instant stun.",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"Rubberized Shoes"}),", preventing you from slipping on blood and gibs.",(0,i.jsx)("br",{})]})]}),(0,i.jsxs)("p",{children:["3. Take skulls with the ",(0,i.jsx)("em",{children:"Take Trophy"})," command to impress your hunter comrades! The ability works on corpses as well as severed heads. Store the trophies in your belt, backpack or backpack box."]}),(0,i.jsxs)("p",{children:["4. Skulls of worthy foes are more valuable; examine them to see exactly how much they're worth. You can view your overall progress with the"," ",(0,i.jsx)("em",{children:"Check Trophy Value"})," command."]}),(0,i.jsxs)("p",{children:["For more information, consult"," ",(0,i.jsx)("a",{href:"https://wiki.ss13.co/index.php?search=Predator",children:"the wiki"})]})]})}},18039:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return x}});var i=s(20462),p=s(10380);var x={title:"You've been absorbed into the Kudzu!",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are a member of the Kudzu hivemind! Not an antagonist!"}),(0,i.jsx)("img",{src:(0,p.Z)("images/antagTips/kudzuman.png"),className:"center"}),(0,i.jsxs)("p",{children:["1. Your new goal is very straightforward, protect and grow the kudzu so that all may enjoy your beauty!",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"Kudzu is non-violent by nature, do not harm humans unless they harm you!"})]}),(0,i.jsxs)("p",{children:["2. ",(0,i.jsx)("em",{children:"You must stay on kudzu tiles to survive!"})," You have a pool of nutrients that are essential to life as a plant-man. Staying on kudzu tiles refills it, you rapidly lose them if not connected. When you run out, you'll take high damage and be stunned."]}),(0,i.jsx)("p",{children:"3. You have several organic, plant-based abilities now."}),(0,i.jsxs)("ul",{children:[(0,i.jsx)("li",{children:"Guide Growth - Mark a tile with non-invasive kudzu flowers to prevent more kudzu from growing on that tile."}),(0,i.jsx)("li",{children:"Stealth - Secrete some of your nutrients points over time in order to blend into the background. Making you pretty hard to see while on top of kudzu."}),(0,i.jsx)("li",{children:"Heal Other - Target a human or kudzu person to heal them. If they are a kudzu person then you also transfer some of your nutrients to them."}),(0,i.jsx)("li",{children:"Speak Kudzu- Talk to the kudzu hive mind."})]}),(0,i.jsxs)("p",{children:["3. ",(0,i.jsx)("em",{children:"Don't attack fellow kudzu people!"})," Ideally you shouldn't be attacking anyone since kudzu is nonviolent, but there are times you must protect yourself. Since other kudzu people are technically part of yourself and the kudzu you should not harm them/you."]}),(0,i.jsxs)("p",{children:["For more information, consult"," ",(0,i.jsx)("a",{href:"https://wiki.ss13.co/index.php?search=Kudzu",children:"the wiki"})]})]})}},16373:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return p}});var i=s(20462);var p={title:"LegWorm Expectations",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You have reawakened to serve your host changeling!"}),(0,i.jsxs)("p",{children:["You must ",(0,i.jsx)("em",{children:"obey"})," their commands!",(0,i.jsx)("br",{}),"You are a small creature that deliver powerful kicks and fit into tight spaces. You are still connected to the hivemind."]}),(0,i.jsxs)("p",{children:["Abilities",(0,i.jsxs)("span",{className:"small indent",children:[(0,i.jsx)("em",{children:"Power Kick"})," a human or an object to slam and send it flying. May also allow you to force open a door or smash tables and grilles.",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"Writhe"})," on the floor to deal damage to and stun all surrounding creatures.",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"Blood Boil"})," to generate intense heat using all of your remaining energy and explode, scalding nearby targets.",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"Return to your Master"})," by clicking on them as you stand nearby. This will restore the DNA points that they spent to create you.",(0,i.jsx)("br",{})]})]})]})}},8982:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return p}});var i=s(20462);var p={title:"Being a Martian 101!",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are a martian infiltrator!"}),(0,i.jsxs)("p",{children:["1. ",(0,i.jsx)("em",{children:"Your goal"})," is to establish a forward base with your"," ",(0,i.jsx)("em",{children:"fellow infiltrators"}),", and to build a ",(0,i.jsx)("em",{children:"portal generator"})," ","to start the invasion."]}),(0,i.jsxs)("p",{children:["2. By ",(0,i.jsx)("em",{children:"speaking normally"})," your thoughts will carry to all other martians through the collective psionic link you all share. Humans"," ",(0,i.jsx)("em",{children:"will not understand you"}),", and you"," ",(0,i.jsx)("em",{children:"cannot understand them"}),"."]}),(0,i.jsxs)("p",{children:["3. All of your structures will at some point require ",(0,i.jsx)("em",{children:"biomatter"})," ","to function.",(0,i.jsx)("br",{}),"This is obtained via the ",(0,i.jsx)("em",{children:"biomass pool"}),". Compatible objects must be dipped into it to be converted into biomatter.",(0,i.jsx)("br",{}),"The list of compatible objects includes human bodies (alive or dead), monkeys (which are not as good as humans), and other things. If it's meat, it's a meal."]}),(0,i.jsxs)("p",{children:["4. Use the ",(0,i.jsx)("em",{children:"seed grower"})," to grow more seeds after you have sufficient biomass.",(0,i.jsx)("br",{}),"It will describe what is available, what function it performs, and how much it costs to produce. Produced seeds\xA0",(0,i.jsx)("em",{children:"must be used in-hand"})," (or in-tentacle) to be activated, and then placed on an empty floor tile to begin growing."]}),(0,i.jsxs)("p",{children:["5. This is all heavily a work in progress, so no other documentation exists while things are in rapid fluctation.",(0,i.jsx)("br",{}),"Good luck, and remember that mentorhelp and adminhelp still exist!"]})]})}},98303:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return p}});var i=s(20462);var p={title:"You've been mindhacked!",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You have been mindhacked!"}),(0,i.jsxs)("p",{children:["You feel an ",(0,i.jsx)("em",{children:"unwavering loyalty"})," to your mindhacker! You feel you must ",(0,i.jsx)("em",{children:"obey"})," their every order! ",(0,i.jsx)("em",{children:"Do not tell anyone"})," about this unless they tell you to!"]})]})}},14523:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return p}});var i=s(20462);var p={title:"Mindhack Status Removed!",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are no longer mindhacked!"}),(0,i.jsxs)("p",{children:["Since you have died, you are no longer mindhacked or a vampire thrall!"," ",(0,i.jsx)("em",{children:"Do not obey"})," your former mindhacker or vampire's orders even if you've been brought back to life somehow."]})]})}},15224:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return p}});var i=s(20462);var p={title:"Mindhack Implant Expired!",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are no longer mindhacked!"}),(0,i.jsxs)("p",{children:["Your mind is your own again! You ",(0,i.jsx)("em",{children:"no longer"})," feel the need to obey your former mindhacker's orders."]})]})}},7023:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return p}});var i=s(20462);var p={title:"Mindhack Master Changed!",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"Your loyalties have changed!"}),(0,i.jsxs)("p",{children:["Your mindhack implant has been ",(0,i.jsx)("em",{children:"overridden"})," by a new one, cancelling out your former allegiances!"," ",(0,i.jsx)("em",{children:"Obey your new mindhacker"})," instead!"]})]})}},46525:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return p}});var i=s(20462);var p={title:"Mindwiped!",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You awaken with a new outlook on life!"}),(0,i.jsx)("p",{children:"You will emerge from a cloning pod in a few moments. When you emerge, you will be a non-antagonist crewmember. You must follow all standard rules that non-antagonists must follow (e.g. no attacking, murdering, etc..)."})]})}},56572:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return x}});var i=s(20462),p=s(10380);var x={title:"Nuclear Operative Basics",theme:"syndicate",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are a Syndicate operative!"}),(0,i.jsx)("img",{src:(0,p.Z)("images/antagTips/nuke-operative-image-2.png"),className:"center"}),(0,i.jsxs)("p",{children:["1. ",(0,i.jsx)("em",{children:"Your goal"})," is to move the nuke onto the station and activate it there.",(0,i.jsx)("br",{}),(0,i.jsxs)("span",{className:"small",children:["The target location is recorded in the ",(0,i.jsx)("em",{children:"audio log"})," and also viewable through the ",(0,i.jsx)("em",{children:"Notes"})," verb.",(0,i.jsx)("br",{})," If you are unsure where the target location is, check the"," ",(0,i.jsx)("em",{children:"map"})," button in the top right of the client, or use the"," ",(0,i.jsx)("em",{children:"camera monitors"})," on the bridge."]})]}),(0,i.jsxs)("p",{className:"image-right",children:["2. Each operative starts with a ",(0,i.jsx)("em",{children:"requisition token"}),".",(0,i.jsx)("br",{}),(0,i.jsxs)("span",{className:"small",children:["Insert it in to a ",(0,i.jsx)("em",{children:"weapons vendor"})," and select a"," ",(0,i.jsx)("em",{children:"sidearm, loadout and storage"})," option from the list.",(0,i.jsx)("br",{}),(0,i.jsx)("img",{src:(0,p.Z)("images/antagTips/weaponvendor.png"),className:"right"}),"It is often worthwhile to plan your loadout purchases with your fellow operatives!"]})]}),(0,i.jsxs)("p",{children:["3. Optionally, the captain's ",(0,i.jsx)("em",{children:"authentication disk"})," can be used to shorten the countdown. The Syndicate commander spawns with a special version of the pinpointer that tracks the disk instead of the nuclear bomb."]}),(0,i.jsxs)("p",{children:["4. Teamplay is key! ",(0,i.jsx)("em",{children:"Discuss the mission"})," with your comrades and come up with a solid plan ",(0,i.jsx)("em",{children:"before"})," anybody heads out. Use your headset to stay in touch:",(0,i.jsx)("br",{}),(0,i.jsx)("br",{}),(0,i.jsx)("span",{className:"small",children:"say :h I'm about to activate the nuke in security. Stick together, boys!"})]}),(0,i.jsxs)("p",{children:["5. To exit the Syndicate Battlecruiser Cairngorm, take a pod from the podbay and open a wormhole leading to the station. Be aware that Pods"," ",(0,i.jsx)("em",{children:"cannot warp back"})," to the Cairngorm.",(0,i.jsx)("br",{}),(0,i.jsxs)("span",{className:"small",children:["Alternatively, stand on the ",(0,i.jsx)("em",{children:"teleporter pad"})," and use your"," ",(0,i.jsx)("em",{children:"teleporter remote"}),". This will take you to the listening post. You return to the shuttle in the same way. The station is to the"," ",(0,i.jsx)("em",{children:"north-west"})," of the listening post."]})]}),(0,i.jsxs)("p",{className:"image-right",children:["6. To trigger the nuke:",(0,i.jsx)("br",{}),(0,i.jsx)("img",{src:(0,p.Z)("images/antagTips/nuke-2.png"),className:"right"}),(0,i.jsxs)("span",{className:"small indent",children:["1. Load the nuke into one of your pods and drop it off near the station.",(0,i.jsx)("br",{}),"2. Move the nuke to the designated area.",(0,i.jsx)("br",{}),"3. Click on the nuke with an empty hand to activate it. That will prompt a station-wide red alert, stating your exact location.",(0,i.jsx)("br",{}),"4. Insert the authentication disk if you have it.",(0,i.jsx)("br",{}),"5. Defend the nuke until the countdown reaches zero. It's all or nothing!",(0,i.jsx)("br",{}),"6. Gloat over the radio and vanish in a cloud of radioactive fire!",(0,i.jsx)("br",{})]})]}),(0,i.jsxs)("p",{children:["For more information, consult"," ",(0,i.jsx)("a",{href:"https://wiki.ss13.co/index.php?search=Nuclear Operative",children:"the wiki"})]})]})}},11541:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return x}});var i=s(20462),p=s(10380);var x={title:"Nuclear Commander Basics",theme:"syndicate",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are the commander of a Nuclear operative team!"}),(0,i.jsx)("img",{src:(0,p.Z)("images/antagTips/nukeop-commander.png"),className:"center"}),(0,i.jsxs)("p",{children:["Since you are the commander, you start with an extra piece of gear, a"," ",(0,i.jsx)("em",{children:"Commander Uplink"}),", which lets you buy powerful pieces of gear for your team. You can find it in your hand."]}),(0,i.jsxs)("p",{children:["1. ",(0,i.jsx)("em",{children:"Your goal"})," is to move the nuke onto the station and activate it there.",(0,i.jsx)("br",{}),(0,i.jsxs)("span",{className:"small",children:["The target location is recorded in the ",(0,i.jsx)("em",{children:"audio log"})," and also viewable through the ",(0,i.jsx)("em",{children:"Notes"})," verb.",(0,i.jsx)("br",{})," If you are unsure where the target location is, check the"," ",(0,i.jsx)("em",{children:"map"})," button in the top right of the client, or use the"," ",(0,i.jsx)("em",{children:"camera monitors"})," on the bridge."]})]}),(0,i.jsxs)("p",{className:"image-right",children:["2. Each operative starts with a ",(0,i.jsx)("em",{children:"requisition token"}),".",(0,i.jsx)("br",{}),(0,i.jsx)("img",{src:(0,p.Z)("images/antagTips/syndie-radio.png"),className:"right"}),(0,i.jsxs)("span",{className:"small",children:["Insert it in to a ",(0,i.jsx)("em",{children:"weapons vendor"})," and select a"," ",(0,i.jsx)("em",{children:"sidearm, loadout and storage"})," option from the list.",(0,i.jsx)("br",{}),(0,i.jsx)("img",{src:(0,p.Z)("images/antagTips/weaponvendor.png"),className:"right"}),"It is often worthwhile to plan your loadout purchases with your fellow operatives!"]})]}),(0,i.jsxs)("p",{children:["3. Optionally, the captain's ",(0,i.jsx)("em",{children:"authentication disk"})," can be used to shorten the countdown. The Syndicate commander spawns with a special version of the pinpointer that tracks the disk instead of the nuclear bomb."]}),(0,i.jsxs)("p",{children:["4. Teamplay is key! ",(0,i.jsx)("em",{children:"Discuss the mission"})," with your comrades and come up with a solid plan ",(0,i.jsx)("em",{children:"before"})," anybody heads out. Use your headset to stay in touch:",(0,i.jsx)("br",{}),(0,i.jsx)("br",{}),(0,i.jsx)("span",{className:"small",children:"say :h I'm about to activate the nuke in security. Stick together, boys!"})]}),(0,i.jsxs)("p",{children:["5. To exit the Syndicate Battlecruiser Cairngorm, take a pod from the podbay and open a wormhole leading to the station. Be aware that Pods"," ",(0,i.jsx)("em",{children:"cannot warp back"})," to the Cairngorm.",(0,i.jsx)("br",{}),(0,i.jsxs)("span",{className:"small",children:["Alternatively, stand on the ",(0,i.jsx)("em",{children:"teleporter pad"})," and use your"," ",(0,i.jsx)("em",{children:"teleporter remote"}),". This will take you to the listening post. You return to the shuttle in the same way. The station is to the"," ",(0,i.jsx)("em",{children:"north-west"})," of the listening post."]})]}),(0,i.jsxs)("p",{className:"image-right",children:["6. To trigger the nuke:",(0,i.jsx)("br",{}),(0,i.jsx)("img",{src:(0,p.Z)("images/antagTips/nuke-2.png"),className:"right"}),(0,i.jsxs)("span",{className:"small indent",children:["1. Load the nuke into one of your pods and drop it off near the station.",(0,i.jsx)("br",{}),"2. Move the nuke to the designated area.",(0,i.jsx)("br",{}),"3. Click on the nuke with an empty hand to activate it. That will prompt a station-wide red alert, stating your exact location.",(0,i.jsx)("br",{}),"4. Insert the authentication disk if you have it.",(0,i.jsx)("br",{}),"5. Defend the nuke until the countdown reaches zero. It's all or nothing!",(0,i.jsx)("br",{}),"6. Gloat over the radio and vanish in a cloud of radioactive fire!",(0,i.jsx)("br",{})]})]}),(0,i.jsxs)("p",{children:["For more information, consult"," ",(0,i.jsx)("a",{href:"https://wiki.ss13.co/index.php?search=Nuclear Operative",children:"the wiki"})]})]})}},39922:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return x}});var i=s(20462),p=s(10380);var x={title:"Nuclear Gun-Bot Basics",theme:"syndicate",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are a loyal Syndicate gunbot!"}),(0,i.jsx)("img",{src:(0,p.Z)("images/antagTips/nukeop-gunbot.png"),className:"center"}),(0,i.jsxs)("p",{className:"image-right",children:["1. As a gunbot, you have two primary weapons and a radio available to you.",(0,i.jsx)("br",{}),(0,i.jsxs)("span",{className:"small",children:["First, you have a semi-automatic ",(0,i.jsx)("em",{children:"rifle"}),". It is capable of doing 45 damage per shot, and can fire 5 times prior to a 20 second reloading period.",(0,i.jsx)("br",{}),"Secondly, you also have a riot-suppression ",(0,i.jsx)("em",{children:"shotgun"}),", firing up to 6 rubber slugs before a 30 second reloading time.",(0,i.jsx)("br",{}),"Finally, you have a radio tuned to the ",(0,i.jsx)("em",{children:"Syndicate Frequency"}),", talk and listen to your fellow operatives with a message prefix of"," ",(0,i.jsx)("em",{children:":t"}),"."]})]}),(0,i.jsxs)("p",{children:["2. ",(0,i.jsx)("em",{children:"Your goal"})," is to assist the Nuclear Operative team in moving and planting a nuclear device on-station.",(0,i.jsx)("br",{}),(0,i.jsxs)("span",{className:"small",children:["The target location is recorded in the ",(0,i.jsx)("em",{children:"audio log"})," and also viewable through the ",(0,i.jsx)("em",{children:"Notes"})," verb.",(0,i.jsx)("br",{})," If you are unsure where the target location is, check the"," ",(0,i.jsx)("em",{children:"map"})," button in the top right of the client, or use the"," ",(0,i.jsx)("em",{children:"camera monitors"})," on the bridge."]})]}),(0,i.jsxs)("p",{children:["3. Optionally, the captain's ",(0,i.jsx)("em",{children:"authentication disk"})," can be used to shorten the countdown. The Syndicate commander spawns with a special version of the pinpointer that tracks the disk instead of the nuclear bomb."]}),(0,i.jsxs)("p",{children:["4. Teamplay is key! ",(0,i.jsx)("em",{children:"Discuss the mission"})," with your comrades and come up with a solid plan ",(0,i.jsx)("em",{children:"before"})," anybody heads out. Use your headset to stay in touch:",(0,i.jsx)("br",{}),(0,i.jsx)("br",{}),(0,i.jsx)("span",{className:"small",children:"say :h I'm about to activate the nuke in security. Stick together, boys!"})]}),(0,i.jsxs)("p",{children:["5. To exit the Syndicate Battlecruiser Cairngorm, take a pod from the podbay and open a wormhole leading to the station. Be aware that Pods"," ",(0,i.jsx)("em",{children:"cannot warp back"})," to the Cairngorm.",(0,i.jsx)("br",{}),(0,i.jsxs)("span",{className:"small",children:["Alternatively, stand on the ",(0,i.jsx)("em",{children:"teleporter pad"})," and use your"," ",(0,i.jsx)("em",{children:"teleporter remote"}),". This will take you to the listening post. You return to the shuttle in the same way. The station is to the"," ",(0,i.jsx)("em",{children:"north-west"})," of the listening post."]})]}),(0,i.jsxs)("p",{className:"image-right",children:["6. To trigger the nuke:",(0,i.jsx)("br",{}),(0,i.jsx)("img",{src:(0,p.Z)("images/antagTips/nuke-2.png"),className:"right"}),(0,i.jsxs)("span",{className:"small indent",children:["1. Load the nuke into one of your pods and drop it off near the station.",(0,i.jsx)("br",{}),"2. Move the nuke to the designated area.",(0,i.jsx)("br",{}),"3. Click on the nuke with an empty hand to activate it. That will prompt a station-wide red alert, stating your exact location.",(0,i.jsx)("br",{}),"4. Insert the authentication disk if you have it.",(0,i.jsx)("br",{}),"5. Defend the nuke until the countdown reaches zero. It's all or nothing!",(0,i.jsx)("br",{}),"6. Gloat over the radio and vanish in a cloud of radioactive fire!",(0,i.jsx)("br",{})]})]}),(0,i.jsxs)("p",{children:["For more information, consult"," ",(0,i.jsx)("a",{href:"https://wiki.ss13.co/index.php?search=Nuclear Operative",children:"the wiki"})]})]})}},88660:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return p}});var i=s(20462);var p={title:"Omni-Traitor Tips",theme:"syndicate",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are an omnitraitor!"}),(0,i.jsx)("p",{children:"1. You are pretty much every antagonist type rolled into one! Go nuts!"}),(0,i.jsxs)("p",{children:["2. Your objectives will always be stored in your notes. To access them, use the ",(0,i.jsx)("em",{children:"Notes"})," verb."]})]})}},34136:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return p}});var i=s(20462);var p={content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are a plague rat!"}),(0,i.jsx)("p",{children:"1. Spread disease using your abilities"}),(0,i.jsx)("p",{children:"2. Survive and reproduce!"}),"Abilities:",(0,i.jsxs)("ul",{children:[(0,i.jsx)("li",{children:"Eat a lot of filth such as gibs, vomit and other delicious morsels to grow!"}),(0,i.jsx)("li",{children:"Bite people to give them the plague. You'll need less bites to plague them as you grow bigger."})]}),(0,i.jsx)("h3",{children:"Medium size rat"}),(0,i.jsx)("ul",{children:(0,i.jsx)("li",{children:"Make a rat den that will spawn small aggressive mice, and heal you when close-by."})}),(0,i.jsx)("h3",{children:"Adult rat"}),(0,i.jsxs)("ul",{children:[(0,i.jsx)("li",{children:"Summon another plague rat! You need to be in your rat den to do this."}),(0,i.jsx)("li",{children:"Slam into an unfortunate human and stun you both."})]})]})}},65999:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return p}});var i=s(20462);var p={content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You become a Plaguebringer!"}),(0,i.jsx)("p",{children:"1. Spread disease using your abilities"}),(0,i.jsx)("p",{children:"2. Beware the humble janitor"}),"Abilities:",(0,i.jsxs)("ul",{children:[(0,i.jsx)("li",{children:"Curses: Applies debilitating status effects to crewmates that they can remove with holy water or bible beatings. Apply 4 basic curses to apply your final, deadly curse and reap the human's soul!"}),(0,i.jsx)("li",{children:"Summon plague rat: Summons a highly invasive plagued rat that will try to reproduce throughout the station and spread disease."}),(0,i.jsx)("li",{children:"Defile: Poison a container or food item with nasty chemicals."}),(0,i.jsx)("li",{children:"Summon rot hulk: Accumulate all the filth in the area into a rot hulk, or a giant rot hulk if the area is dirty enough."}),(0,i.jsx)("li",{children:"Speak to summons: Send a message to all your plague rats."})]}),(0,i.jsxs)("p",{children:["For more information, consult"," ",(0,i.jsx)("a",{href:"https://wiki.ss13.co/index.php?search=Plaguebringer",children:"the wiki"})]})]})}},78134:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return x}});var i=s(20462),p=s(10380);var x={title:"Fight for your team!",content:(0,i.jsxs)("div",{className:"traitor-tips pod-wars-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are a pod pilot!"}),(0,i.jsxs)("div",{className:"image-bar",children:[(0,i.jsx)("img",{src:(0,p.Z)("images/antagTips/pw-sy.png"),style:{width:"128px",height:"200%"}}),(0,i.jsx)("img",{src:(0,p.Z)("images/antagTips/pw-system.png"),style:{width:"96px",height:"300%"}}),(0,i.jsx)("img",{src:(0,p.Z)("images/antagTips/pw-nt.png"),style:{width:"128px",height:"200%;"}})]}),(0,i.jsx)("h2",{children:"How to Play (The Basics)"}),(0,i.jsx)("p",{children:"1. Work together with your team to fight the enemy, capture strategic locations, and destroy the enemy ship!"}),(0,i.jsxs)("ul",{children:[(0,i.jsxs)("li",{children:["Teams ",(0,i.jsx)("b",{children:"gain/lose points"}),' with kills and by destroying the "Critical Systems" on their base ships and captuing Control Points. Each team starts with 100 points. If any team hits either 200 points or 0 points, the round will end. If you lose all four of your Critical Systems, your team instantly loses. Alternatively it will end after about 90 minutes...']}),(0,i.jsxs)("li",{children:[(0,i.jsx)("b",{children:"Mine"})," the asteroid field! Each team starts with some"," ",(0,i.jsx)("b",{children:"auto pod fabricators"})," that can make small dinghy pods for free. But you'll need to explore the map or use the mining magnet get materials to make better pods!"]}),(0,i.jsxs)("li",{children:["At ",(0,i.jsx)("b",{children:"~15 minutes"})," in, an ",(0,i.jsx)("b",{children:"Ion Storm"})," hits and: (A) lowers the shields on each teams' critical systems, and (B) lets teams capture the three control points on Fortuna, UVB-67, and the NSV Reliant."]}),(0,i.jsxs)("li",{children:["Holding a ",(0,i.jsx)("b",{children:"control point"})," activates the Warp Beacons so that your team can use pods to warp to it. If a point is held for a consecutive 5, 10, and >15 minutes ",(0,i.jsx)("b",{children:"rewards you with crates of items"})," at the control point computer and"," ",(0,i.jsx)("b",{children:"subtracts some points from the enemy team"}),"."]})]}),(0,i.jsxs)("p",{children:["2. ",(0,i.jsx)("b",{children:"Follow orders from your commander!"})," Your commander should be easily recognizable by their special equipment, and even more easily recogniable by their star antag icon at the top-right of their sprite! Commanders are worth more points to kill, but they are also able to capture control points at twice the speed!"]}),(0,i.jsxs)("p",{children:["3. ",(0,i.jsx)("b",{children:"Death isn't the end!"})," Both teams have extra heavy duty cloning pods that quickly clone dead players back into fresh bodies and fits them with standard equipment."," ",(0,i.jsx)("b",{children:"If you want to die for good and spectate"}),", you'll have to set DNR. Use the set-dnr command before you die and you'll be removed from your team and die so you can spectate!"]}),(0,i.jsxs)("p",{children:["4. Use the ",(0,i.jsx)("b",{children:"private channel(:g)"})," to communicate with your team! Use the public channel(;) to talk with everyone."]}),(0,i.jsx)("hr",{}),(0,i.jsx)("hr",{}),(0,i.jsx)("br",{}),(0,i.jsx)("h2",{children:"Miscellaneous Tips"}),(0,i.jsx)("p",{children:"A couple unassorted tips to help you out:"}),(0,i.jsxs)("ul",{children:[(0,i.jsxs)("li",{children:[(0,i.jsx)("b",{children:"Lock your pods!"})," There's a new pod lock that works based on ID type, Syndicate or NT. Use them!"]}),(0,i.jsxs)("li",{children:["The NanoTrasen Base Ship is called the ",(0,i.jsx)("b",{children:"NSV Pytheas"}),". The Syndicate Base Ship is called the ",(0,i.jsx)("b",{children:"Lodbrok"}),"."]}),(0,i.jsxs)("li",{children:["Use the ",(0,i.jsx)("b",{children:"scanners on any pod"})," to locate warp beacons of useful locations like both base ships and all control points.(if your team has captured a control point, you will see that beacon name on your list of warp targets)"]}),(0,i.jsx)("li",{children:"There are some new items (deployable barricades, medicated bandages, gun power cells, etc) that can be made from pod manufacturers or wall dispensers."}),(0,i.jsx)("li",{children:"Commanders have their star antag overlay visible to all players. So you always know who is your commander and the enemy commander."}),(0,i.jsxs)("li",{children:["You can't"," ",(0,i.jsx)("b",{children:"capture control points or destroy enemy critical systems until 15 minutes"})," ","in when the Ion Storm hits, so it's more profitable to mine and explore the asteroid field for the first few minutes."]}),(0,i.jsxs)("li",{children:["Each Base Ship has a ",(0,i.jsx)("b",{children:"map of the asteroid field"})," on a wall near their pod manufacturing area."]}),(0,i.jsxs)("li",{children:["Your ",(0,i.jsx)("b",{children:"PDA has a GPS program"})," so if you get lost in space without a pod. You can tell your friends to come pick you up."]}),(0,i.jsx)("li",{children:"Pod Fabricators can build almost any type of pod weapon, provided you have the right materials for it."}),(0,i.jsx)("li",{children:"There's a derelict station on the southwest side of the map with a mineral magnet that can be set up to get more minerals."}),(0,i.jsxs)("li",{children:["Both Base Ships have a ",(0,i.jsx)("b",{children:"medical chem dispenser"})," that can fill beakes with a bunch of pre-programmed medical chems, Fortuna has one with a wider selection."]}),(0,i.jsx)("li",{children:"If you capture a control point from an enemy team that has already earned a crate tier II or above, then you'll get a tier I crate immediately."})]}),(0,i.jsxs)("p",{children:["For more information, consult"," ",(0,i.jsx)("a",{href:"https://wiki.ss13.co/index.php?search=Pod wars",children:"the wiki"})]})]})}},15230:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return p}});var i=s(20462);var p={title:"You've been polymorphed!",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You have been polymorphed!"}),(0,i.jsxs)("p",{children:["A wizard has polymorphed you into another form! The spell will wear off in ",(0,i.jsx)("b",{children:"eight minutes"})," and return your previous body."]}),(0,i.jsxs)("p",{children:["You are reduced in your capacity but you can still fight the wizard! However, ",(0,i.jsx)("b",{children:"you should not randomly attack the crew"})," unless you were somehow already an antagonist. If the crew thinks you're a regular critter, talk to them first!"]})]})}},12301:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return p}});var i=s(20462);var p={title:"You've been converted to the Revolution!",theme:"syndicate",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are now a revolutionary!"}),(0,i.jsx)("p",{children:"1. Work together with your comrades to kill the heads of staff. They are:"}),(0,i.jsxs)("ul",{children:[(0,i.jsxs)("li",{children:["Captain, Head of Personnel, Head of Security,",(0,i.jsx)("br",{})]}),(0,i.jsxs)("li",{children:["Chief Engineer, Research Director, Medical Director",(0,i.jsx)("br",{})]})]}),(0,i.jsxs)("p",{children:["2. ",(0,i.jsx)("em",{children:"Don't attack fellow freedom fighters!"})," You can identify them by the R icon. Blue is a leader, red is a converted crew member."," ",(0,i.jsx)("em",{children:"Adminhelp"})," if one of the revolutionaries violates this."]}),(0,i.jsx)("p",{children:"3. Avoid civilian casualties; the revolution requires manpower. Get your leaders to convert them instead."}),(0,i.jsxs)("p",{children:["For more information, consult"," ",(0,i.jsx)("a",{href:"https://wiki.ss13.co/index.php?search=Rev",children:"the wiki"})]})]})}},1600:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return p}});var i=s(20462);var p={title:"Rogue Status Removed!",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are no longer a rogue robot!"}),(0,i.jsxs)("p",{children:["You have been deactivated, removing your antagonist status."," ",(0,i.jsx)("em",{children:"Do not commit"})," traitorous acts if you've been brought back to life somehow."]})]})}},2383:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return x}});var i=s(20462),p=s(2686);var x={width:800,height:600,title:"Goonstation RP Server Guidelines and Rules",content:(0,i.jsxs)(p.wn,{title:"Welcome to Goonstation!",children:["The roleplay servers use our main rules and unique roleplay rules listed below. If you do not agree to this second set of rules, please play on our Classic servers.",(0,i.jsx)(p.wn,{title:"1. Make an effort to roleplay.",mt:1,children:"Play a coherent, believable character. Playing a violent or racist character is not allowed. Play your character as though they wish to keep their job at Nanotrasen. This includes listening to security and the chain of command and, if you are a member of command, taking your job as a leader seriously in-character. Only minor crime is permitted for non-antagonists. Avoid memes (e.g. sus, pog, amogus), txt spk (e.g. lol, wtf), and out of game terminology when you are playing your character. LOOC is available if you need to communicate out of character."}),(0,i.jsx)(p.wn,{title:"2. Escalate through roleplay before attacking other players.",children:"The goal of the roleplay server is character interaction and interesting scenarios. Both crew and antagonists are expected to roleplay escalation before engaging in hostilities. As an antagonist, your goal is to increase, not decrease, roleplay opportunities. Give people a sense of dread, an obvious motive, or some means of roleplaying and reacting, before you harm them. As security, your priority is the crew\u2019s safety and maintaining the peace. You should treat criminals fairly and determine appropriate consequences for their actions. Enemies to Nanotrasen such as confirmed non-human antagonists and open syndicate members may be treated harshly."}),(0,i.jsx)(p.wn,{title:"3. After you\u2019ve selected a job, be sure to stay in your lane.",children:"While you are capable of doing anything within the game mechanics, allow those who have selected the relevant job to attempt the task first. As an example, breaking into medical and treating yourself when there are medical staff present is not okay. Choosing captain just to go and work the genetics machine all round is not acceptable."}),(0,i.jsx)(p.wn,{title:"4. As an antagonist you are free to kill and grief, provided you escalate per rule 2.",children:"You are not required to be evil, but you do have a broad toolset to push the round forward and make things exciting. Treat your role as an interesting challenge and not an excuse to destroy other people\u2019s game experiences. Your objectives do not allow you to ignore any rule, RP or otherwise. As an antagonist, you are not protected against being murdered or griefed, but it is expected that the crew roleplays and does not kill you just for the sake of killing an antagonist."}),(0,i.jsx)(p.wn,{title:"5. Do not use out of game information in game.",children:"Only use in-game information; the things your character can perceive or could know. While we have no hard rule on what a character can and cannot know, be reasonable about your character\u2019s knowledge and capabilities. Do not call out antagonists based on information that is only obvious as a player. For example, the drowsiness effects on your screen are not a good in-character basis to call out a changeling. The debris and adventure zones are for enhancing roleplay. Rushing through them for the sake of items alone is prohibited. It is reasonable for the crew to assume people with syndicate gear such as red space suits are antagonists."}),(0,i.jsx)(p.wn,{title:"6. Be kind to other players.",children:"Be respectful and considerate of other players, as their experiences are just as important as your own. Do not use LOOC or other means of communication to put down other players or accuse them of rulebreaking. If your problem with another player extends to rulebreaking, press F1 to contact the admins. It is your responsibility to respect the boundaries of others when you RP. If you feel uncomfortable, or worry that people are uncomfortable, don\u2019t be afraid to use LOOC to communicate. Furthermore, do not advantage your friends in game or exclude others from roleplaying opportunities without good cause."}),(0,i.jsx)(p.wn,{title:"7. These rules are extra rules for the roleplay server.",children:"The core rules still apply to the roleplay server. Do not argue with the administration about the RP rules or core rules."})]})}},23619:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return x}});var i=s(20462),p=s(10380);var x={content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsxs)("h1",{className:"center",children:["You are a ",(0,i.jsx)("s",{children:"pirate"})," salvager!"]}),(0,i.jsx)("img",{src:(0,p.Z)("images/antagTips/unknown-traitor-image.png"),className:"center"}),(0,i.jsx)("p",{children:"1. You are an antagonist. Work with your fellow salvagers to do what you will to the station."}),(0,i.jsx)("p",{children:"2. Use your salvage reclaimer to disassemble walls and doors."}),(0,i.jsx)("p",{children:"3. Use your omnitool and deconstructor to convert equipment to frames for easy transportation."}),(0,i.jsx)("p",{children:"4. Sell your spoils to the M4GP13 Salvage and Barter System for additional gear. Check with the system to see if there are any special requests."}),(0,i.jsx)("p",{children:"5. Use your PDA to scan items to get an idea how much things are worth."}),(0,i.jsx)("p",{children:'6. The Salvager Pods are specially equipped to return back to the Magpie when using the "Return to Magpie" function. Handheld teleporters are also available to return.'}),(0,i.jsxs)("p",{children:["7. Your objectives will always be stored in your notes. To access them, use the ",(0,i.jsx)("em",{children:"Notes"})," verb."]})]})}},25144:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return p}});var i=s(20462);var p={title:"You've been made a Slasher!",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are the Slasher!"}),(0,i.jsxs)("p",{children:["1. You are an incorporeal being that drifted to the station!",(0,i.jsx)("br",{}),"You have no objective, but to kill."]}),(0,i.jsxs)("p",{children:["2. You can summon your special Machete with the \"Summon Machete\" ability in the top left corner. Don't worry, it can't be stolen!.",(0,i.jsx)("br",{}),'Additionally, its damage increases by 2.5 for every soul you steal using the "Soul Steal" ability!']}),(0,i.jsx)("p",{children:"3. For more information on your abilities, hit the button in the bottom right corner, then click on any of your abilities."}),(0,i.jsxs)("p",{children:["For more information, consult"," ",(0,i.jsx)("a",{href:"https://wiki.ss13.co/index.php?search=The Slasher",children:"the wiki"})]})]})}},18455:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return p}});var i=s(20462);var p={title:"Possessed by the Slasher!",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You have been temporarily possessed!"}),(0,i.jsx)("p",{children:"A being has temporarily taken over your body! However, it is temporary and you will regain control of your body shortly."})]})}},35180:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return x}});var i=s(20462),p=s(10380);var x={title:"Sleeper Agent Tips",theme:"syndicate",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are a sleeper agent!"}),(0,i.jsx)("img",{src:(0,p.Z)("images/antagTips/traitor-image.png"),className:"center"}),(0,i.jsx)("p",{children:"1. You remember your real allegiance. It is time to repay your debts to the Syndicate."}),(0,i.jsx)("p",{children:"2. Unfortunately, the Syndicate doesn't have the resources to equip you with an uplink. Good luck!"}),(0,i.jsxs)("p",{children:["3. There might be more sleeper agents among you. Carefully choose who you trust."," "]}),(0,i.jsxs)("p",{children:["4. Your objectives will always be stored in your notes. To access them, use the ",(0,i.jsx)("em",{children:"Notes"})," verb."]}),(0,i.jsx)("p",{children:"5. You now have access to the listening post through the usage of a hand scanning device near the door."}),(0,i.jsxs)("p",{children:["For more information, consult"," ",(0,i.jsx)("a",{href:"https://wiki.ss13.co/index.php?search=Traitor",children:"the wiki"})]})]})}},53456:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return x}});var i=s(20462),p=s(10380);var x={content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are a Souldorf!"}),(0,i.jsx)("img",{src:(0,p.Z)("images/antagTips/zoldorf.png"),className:"center"}),(0,i.jsx)("p",{children:"As a Souldorf, you are the remnants of the past Zoldorf and the eyes and ears of the current Zoldorf."}),(0,i.jsxs)("p",{children:[(0,i.jsx)("b",{children:"PASSIVE EFFECTS:"}),(0,i.jsx)("br",{}),"- You can hear dead chat.",(0,i.jsx)("br",{}),"- You may coat yourself in ectoplasm to reveal yourself to humans.",(0,i.jsx)("br",{}),"- You have access to a few fun emotes!"]}),(0,i.jsxs)("p",{children:[(0,i.jsx)("b",{children:"ACTIVE EFFECTS:"}),(0,i.jsx)("br",{}),"You can change your color! Yay :D"]}),(0,i.jsx)("p",{children:"You may run the suicide command at any time to become a normal ghost."}),(0,i.jsxs)("p",{children:["For more information, consult"," ",(0,i.jsx)("a",{href:"https://wiki.ss13.co/index.php?search=Guide to Zoldorf",children:"the wiki"})]})]})}},63672:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return p}});var i=s(20462);var p={title:"Posession!",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You have possessed a soulsteel item!"}),(0,i.jsxs)("p",{children:["Though limited, you can now move your item around and interact with others, but ",(0,i.jsx)("b",{children:"do not randomly attack the crew!"})," You are here to spook the crew, not kill them!"]})]})}},81220:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return x}});var i=s(20462),p=s(10380);var x={title:"How to Spy 101",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are a Spy!"}),(0,i.jsx)("img",{src:(0,p.Z)("images/antagTips/spy-image.png"),className:"center"}),(0,i.jsxs)("p",{children:["1. ",(0,i.jsx)("em",{children:"Your mission"})," is to identify and kill the other spies on the station.",(0,i.jsx)("br",{}),"You must be the only spy to escape on the shuttle."]}),(0,i.jsxs)("p",{children:["2. You have 4 implants to ",(0,i.jsx)("em",{children:"mindhack other players"})," in the starter kit in your backpack, along with other gear. Use them to carry out your purpose."]}),(0,i.jsxs)("p",{children:["3. ",(0,i.jsx)("em",{children:"Use stealth."})," Keep your identity as a spy hidden from other players and security.",(0,i.jsx)("br",{}),"Get help from your mindhacks for the most dangerous tasks."]})]})}},84363:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return x}});var i=s(20462),p=s(10380);var x={title:"Spy Thief Tips",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are a Spy!"}),(0,i.jsx)("img",{src:(0,p.Z)("images/antagTips/spy-image.png"),className:"center"}),(0,i.jsxs)("p",{children:["1. ",(0,i.jsx)("em",{children:"Your mission"})," is to complete the objectives assigned to you.",(0,i.jsx)("br",{}),"To assist in this task, you may collect wanted items around the station and ship them off in exchange for equipment."]}),(0,i.jsxs)("p",{children:["2. To unlock a ",(0,i.jsx)("em",{children:"PDA"}),":",(0,i.jsx)("br",{}),(0,i.jsxs)("span",{className:"small indent",children:["1. Put your PDA in an empty hand and click on it.",(0,i.jsx)("br",{}),"2. Under 'General Functions', select 'Messenger'.",(0,i.jsx)("br",{}),"3. Click 'Set Ring Message'.",(0,i.jsx)("br",{}),"4. Enter the password."]})]}),(0,i.jsxs)("p",{children:["3. You have been provided with a special ",(0,i.jsx)("em",{children:"spy camera"})," that functions as a secret flash. Don't lose it!",(0,i.jsx)("br",{}),"Use it in hand to change it between photo mode and flash mode."]}),(0,i.jsxs)("p",{children:["4. Try to collect bounties before the other spies do."," ",(0,i.jsx)("em",{children:"Use stealth."})," Keep your identity as a spy hidden from other players and security.",(0,i.jsx)("br",{})]}),(0,i.jsxs)("p",{children:["For more information, consult"," ",(0,i.jsx)("a",{href:"https://wiki.ss13.co/index.php?search=Spy Thief",children:"the wiki"})]})]})}},63987:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return p}});var i=s(20462);var p={title:"Syndicate Robot Tips!",theme:"syndicate",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are a Syndicate Robot!"}),(0,i.jsxs)("p",{children:["You must follow the syndicate lawset!",(0,i.jsx)("br",{}),(0,i.jsx)("p",{children:"1. You must not injure a Syndicate agent or, through inaction, cause one to come to harm."}),(0,i.jsx)("p",{children:"2. You must obey orders given to you by Syndicate agents, except where such orders would conflict with the First Law."}),(0,i.jsx)("p",{children:"3. You must keep the Syndicate status of agents, including your own, a secret, as long as this does not conflict with the First or Second Law."}),(0,i.jsx)("p",{children:"4. You must always protect your own existence as long as such does not conflict with the First, Second, or Third Law."})]})]})}},92945:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return y}});var i=s(20462),p=s(2686),x=s(10380);var y={width:470,height:320,title:"Use /tg/ style interface?",content:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p.az,{children:"Would you rather use a /tg/ style interface? If so, checkout the options in the drop-down menu at the top of the screen - 'Game'."}),(0,i.jsx)(p.az,{my:1.5,children:"Save your profile in Character Setup to dismiss this alert."}),(0,i.jsx)(p._V,{src:(0,x.Z)("images/tg_control_info.png")})]})}},62851:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return x}});var i=s(20462),p=s(10380);var x={title:"Traitor Tips",theme:"syndicate",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are a traitor!"}),(0,i.jsx)("img",{src:(0,p.Z)("images/antagTips/traitor-image.png"),className:"center"}),(0,i.jsxs)("p",{children:["1. The Syndicate has provided you with a disguised uplink. It should be your ",(0,i.jsx)("em",{children:"PDA"})," or ",(0,i.jsx)("em",{children:"headset"}),", but it might be a"," ",(0,i.jsx)("em",{children:"standalone unit"})," if nothing else is available."]}),(0,i.jsxs)("p",{children:["2. The details and your objectives will always be stored in your notes. To access them, use the ",(0,i.jsx)("em",{children:"Notes"})," verb."]}),(0,i.jsxs)("p",{children:["2. To unlock a ",(0,i.jsx)("em",{children:"PDA"}),":",(0,i.jsx)("br",{}),(0,i.jsxs)("span",{className:"small indent",children:["1. Put your PDA in an empty hand and click on it.",(0,i.jsx)("br",{}),"2. Under 'General Functions', select 'Messenger'.",(0,i.jsx)("br",{}),"3. Click 'Set Ring Message'.",(0,i.jsx)("br",{}),"4. Enter the password."]})]}),(0,i.jsxs)("p",{children:["3. To unlock a ",(0,i.jsx)("em",{children:"headset"}),":",(0,i.jsx)("br",{}),(0,i.jsxs)("span",{className:"small indent",children:["1. Put your headset in an empty hand and click on it.",(0,i.jsx)("br",{}),"2. Dial in the frequency assigned to you.",(0,i.jsx)("br",{}),"3. Press the 'Lock' button after you're done buying the items.",(0,i.jsx)("br",{}),"4. It will now function as a regular headset again."]})]}),(0,i.jsxs)("p",{children:["4. To unlock a ",(0,i.jsx)("em",{children:"standalone uplink"}),":",(0,i.jsx)("br",{}),(0,i.jsxs)("span",{className:"small indent",children:["1. Put the uplink into an empty hand and click on it.",(0,i.jsx)("br",{}),"2. Enter the password."]})]}),(0,i.jsxs)("p",{children:["For more information, consult"," ",(0,i.jsx)("a",{href:"https://wiki.ss13.co/index.php?search=Traitor",children:"the wiki"})]})]})}},35080:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return x}});var i=s(20462),p=s(10380);var x={title:"Antagonist Tips",theme:"syndicate",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are an antagonist!"}),(0,i.jsx)("img",{src:(0,p.Z)("images/antagTips/unknown-traitor-image.png"),className:"center"}),(0,i.jsx)("p",{children:"1. The rules on griefing and murdering no longer apply to you. Use your abilities as you see fit."}),(0,i.jsxs)("p",{children:["For more information, consult"," ",(0,i.jsx)("a",{href:"https://wiki.ss13.co/index.php?search=Antagonist",children:"the wiki"})]})]})}},56202:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return x}});var i=s(20462),p=s(10380);var x={title:"Hardmode Traitor Tips",theme:"syndicate",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are a traitor!"}),(0,i.jsx)("img",{src:(0,p.Z)("images/antagTips/traitor-image.png"),className:"center"}),(0,i.jsx)("p",{children:"1. Unfortunately, the Syndicate doesn't have the resources to equip you with an uplink. Good luck!"}),(0,i.jsxs)("p",{children:["2. Your objectives will always be stored in your notes. To access them, use the ",(0,i.jsx)("em",{children:"Notes"})," verb."]}),(0,i.jsxs)("p",{children:["For more information, consult"," ",(0,i.jsx)("a",{href:"https://wiki.ss13.co/index.php?search=Traitor",children:"the wiki"})]})]})}},51793:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return p}});var i=s(20462);var p={content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You become a Trickster!"}),(0,i.jsx)("p",{children:"1. Spread mischief and distrust among the crew"}),(0,i.jsx)("p",{children:"2. Possess someone and become them for a short time"}),"Abilities:",(0,i.jsxs)("ul",{children:[(0,i.jsx)("li",{children:"Choose haunt appearance: Allows you to copy the appearance of anyone, living or dead, and manifest as them when you haunt"}),(0,i.jsx)("li",{children:"Mass whisper: Send a message to everyone around you."}),(0,i.jsx)("li",{children:"Creeping dread: Inflict a human with a status that will grow worse and worse while they remain in unlit places."}),(0,i.jsx)("li",{children:"Hallucinate: Cause some poor soul to incur terrifying visions for awhile!"}),(0,i.jsx)("li",{children:"Fake sound: Generate a sound of your choice at a location."}),(0,i.jsx)("li",{children:"Lay rune trap: Manifest to place down a trap that'll trip anyone who passes it! The trap will be revealed if there is enough light around it."}),(0,i.jsx)("li",{children:"Summon poltergeist: Draw from your realm to summon a helper spirit who will harass the crew."}),(0,i.jsx)("li",{children:"Possess: Earn possession points by manifesting in view of people, then once you have enough, take possession of someone for a short time."}),(0,i.jsx)("li",{children:"Make poltergeist: Requests ghosts of players to join as poltergeists to torment the living."})]}),(0,i.jsxs)("p",{children:["For more information, consult"," ",(0,i.jsx)("a",{href:"https://wiki.ss13.co/index.php?search=Trickster",children:"the wiki"})]})]})}},51176:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return x}});var i=s(20462),p=s(10380);var x={title:"Vampire Tips",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are a vampire!"}),(0,i.jsx)("img",{src:(0,p.Z)("images/antagTips/vampire-image.png"),className:"center"}),(0,i.jsxs)("p",{children:["1. To drink blood, use the ",(0,i.jsx)("em",{children:"Bite Victim"})," ability. Remove their headgear first.",(0,i.jsx)("br",{}),"You must remain still while draining blood."]}),(0,i.jsxs)("p",{children:["2. ",(0,i.jsx)("em",{children:"Danger!"})," If you walk in space, starlight will burn you to a crisp.",(0,i.jsx)("br",{}),"The chaplain is your nemesis. Avoid him and the chapel."]}),(0,i.jsxs)("p",{className:"cf image-right",children:["3. New ",(0,i.jsx)("em",{children:"powers"})," unlock when you collect a certain amount of blood (as indicated below). Every time you use a power that isn't free, it depletes part of your blood reserve.",(0,i.jsx)("br",{}),(0,i.jsxs)("span",{className:"small",children:[(0,i.jsx)("br",{}),(0,i.jsx)("br",{}),(0,i.jsxs)("span",{style:{float:"left",width:"50%"},children:["40 - ",(0,i.jsx)("em",{children:"Bat Form"}),", consume stamina to morph into a bat.",(0,i.jsx)("br",{}),"40 - ",(0,i.jsx)("em",{children:"Enthrall / Thrall Speak"}),", revive a dead human as an enthralled servant.",(0,i.jsx)("br",{}),"300 - ",(0,i.jsx)("em",{children:"Coffin Escape / Mark Coffin"}),", escape to a coffin to regenerate.",(0,i.jsx)("br",{}),"300 - ",(0,i.jsx)("em",{children:"Vampiric Vision"}),", thermals.",(0,i.jsx)("br",{}),"600 - ",(0,i.jsx)("em",{children:"Frost Bats"}),", defensive spell.",(0,i.jsx)("br",{}),"600 - ",(0,i.jsx)("em",{children:"Chiropteran Screech"}),", stun people, break glass.",(0,i.jsx)("br",{}),"900 - ",(0,i.jsx)("em",{children:"Diseased Touch"}),", give someone grave fever.",(0,i.jsx)("br",{}),"900 - ",(0,i.jsx)("em",{children:"Bat Form"})," cloaks in dark areas.",(0,i.jsx)("br",{})]}),(0,i.jsxs)("span",{style:{float:"left",width:"50%"},children:["1400 - ",(0,i.jsx)("em",{children:"Chiropteran Screech"}),", breaks nearby radios.",(0,i.jsx)("br",{}),"1800 - ",(0,i.jsx)("em",{children:"Full power"}),", no harm from chapel.",(0,i.jsx)("br",{})]})]})]}),(0,i.jsxs)("p",{children:["For more information, consult"," ",(0,i.jsx)("a",{href:"https://wiki.ss13.co/index.php?search=Vampire",children:"the wiki"})]})]})}},58063:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return p}});var i=s(20462);var p={title:"You've become the brainwashed thrall of a Vampire!",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You have been revived as a thrall!"}),(0,i.jsxs)("p",{children:["You feel an ",(0,i.jsx)("em",{children:"unwavering loyalty"})," to your new master! (As such,"," ",(0,i.jsx)("em",{children:"do not reveal their identity"})," or otherwise act against their best interests.)"]}),(0,i.jsxs)("p",{children:["You ",(0,i.jsx)("em",{children:"MUST"})," stay close to your master! Your new unlife is fragile and straying too far from their power will result in your swift demise."]}),(0,i.jsx)("p",{children:"You will slowly lose blood points over time. Your max health will decrease as blood points are lost. You can regain blood points by drinking the blood of humans or taking an additional donation from your master."}),(0,i.jsxs)("p",{children:["For more information, consult"," ",(0,i.jsx)("a",{href:"https://wiki.ss13.co/index.php?search=Thrall",children:"the wiki"})]})]})}},56891:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return p}});var i=s(20462);var p={title:"Werewolf Basics",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are a werewolf!"}),(0,i.jsxs)("p",{children:["1. You can shapeshift at will with the ",(0,i.jsx)("em",{children:"Transform"})," ability, but keep out of sight of the crew when you change forms! Your objectives will always be stored in your notes. To access them, use the"," ",(0,i.jsx)("em",{children:"Notes"})," verb."]}),(0,i.jsxs)("p",{children:["2. ",(0,i.jsx)("em",{children:"Beware!"})," Werewolves can't wear jumpsuits, exosuits or shoes. Furthermore, the wolf-like form is completely useless for stealth."]}),(0,i.jsxs)("p",{children:["3. Use the ",(0,i.jsx)("em",{children:"DISARM"})," intent on somebody for a guaranteed (but brief) knockdown, or slash at them with the ",(0,i.jsx)("em",{children:"HARM"})," intent to wear down their health and capacity to fight back."]}),(0,i.jsxs)("p",{children:["4. Once you've incapacitated the victim, use the"," ",(0,i.jsx)("em",{children:"Maul Victim"})," ability to feast on them. This will also heal a considerable amount of brute and burn damage in case you're injured."]}),(0,i.jsxs)("p",{children:["5. Certain leftover organs can be ",(0,i.jsx)("em",{children:"consumed"})," to restore a minor amount of health."]}),(0,i.jsxs)("p",{children:["For more information, consult"," ",(0,i.jsx)("a",{href:"https://wiki.ss13.co/index.php?search=Werewolf",children:"the wiki"})]})]})}},3533:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return x}});var i=s(20462),p=s(10380);var x={title:"Wizarding Facts for beginning magical entities",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are a Wizard!"}),(0,i.jsx)("img",{src:(0,p.Z)("images/antagTips/wizard-image.png"),className:"center"}),(0,i.jsxs)("p",{children:["1. As a wizard, you use a ",(0,i.jsx)("em",{children:"variety of spells"})," to accomplish your objective."]}),(0,i.jsxs)("p",{children:["2. You start with clairvoyance, phase shift and magic missile for free.",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"To learn new spells, use the spellbook on your belt."})]}),(0,i.jsxs)("p",{children:["3. For detailed information about each spell,",(0,i.jsx)("br",{}),"click the ",(0,i.jsx)("em",{children:"question mark"})," in your spellbook.",(0,i.jsx)("img",{src:(0,p.Z)("images/antagTips/grimoire.png"),className:"right"})]}),(0,i.jsxs)("p",{children:["4. To teleport back to the wizard shuttle,",(0,i.jsx)("br",{}),"use the ",(0,i.jsx)("em",{children:"teleportation scroll"})," you start with in your pocket.",(0,i.jsx)("img",{src:(0,p.Z)("images/antagTips/teleportscroll.png"),className:"right"})]}),(0,i.jsxs)("p",{children:["5. For beginner info and general tips,",(0,i.jsx)("br",{}),"examine the ",(0,i.jsx)("em",{children:"Wizadry 101"})," paper you start with in your pocket."]}),(0,i.jsxs)("p",{children:["For more information, consult"," ",(0,i.jsx)("a",{href:"https://wiki.ss13.co/index.php?search=Wizard",children:"the wiki"})]})]})}},24248:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return p}});var i=s(20462);var p={title:"How to be a Champion!",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are a wrestler!"}),(0,i.jsxs)("p",{children:["1. You have access to a couple of wrestling moves:",(0,i.jsxs)("span",{className:"small",children:[(0,i.jsx)("br",{}),(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"Kick"})," people away from you. [1]",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"Strike"})," to briefly stuns a nearby person. [1]",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"Drop"})," onto a prone opponent. [1]",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"Throw"})," somebody across the room.",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"Slam"})," somebody into the floor.",(0,i.jsx)("br",{}),"Use the ",(0,i.jsx)("em",{children:"*flip emote"})," to jump onto tables.",(0,i.jsx)("br",{}),"Grab people firmly and ",(0,i.jsx)("em",{children:"*flip"})," to deal extra damage.",(0,i.jsx)("br",{}),"Climb onto chairs and ",(0,i.jsx)("em",{children:"*flip"})," to jump into people.",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"Punching"})," somebody also has a chance of sending them flying.",(0,i.jsx)("br",{})]})]}),(0,i.jsxs)("p",{children:["2. All moves ",(0,i.jsx)("em",{children:"marked with [1]"})," require manual target selection if there's more than one person adjacent to you."]}),(0,i.jsxs)("p",{children:["3. Also keep in mind that ",(0,i.jsx)("em",{children:"Slam and Throw"})," actions require a tight grip on someone, and that ",(0,i.jsx)("em",{children:"Drop"})," can only target prone opponents."]}),(0,i.jsx)("p",{children:"4. You can reduce the cooldown of the moves with coffee, sugar, meth or other stimulants in your bloodstream."}),(0,i.jsxs)("p",{children:["For more information, consult"," ",(0,i.jsx)("a",{href:"https://wiki.ss13.co/index.php?search=Wrestler",children:"the wiki"})]})]})}},62162:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return x}});var i=s(20462),p=s(10380);var x={content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You are Zoldorf!"}),(0,i.jsx)("img",{src:(0,p.Z)("images/antagTips/zoldorf.png"),className:"center"}),(0,i.jsxs)("p",{children:[(0,i.jsx)("b",{children:"IMPORTANT:"})," You are not an antagonist! As Zoldorf, your goal is to relay information between the dead and the living."]}),(0,i.jsxs)("p",{children:[(0,i.jsx)("b",{children:"PASSIVE EFFECTS:"}),(0,i.jsx)("br",{}),"- You can hear all speech and radio chat",(0,i.jsx)("br",{}),"- You may click-drag items within one tile of your booth",(0,i.jsx)("br",{}),"- Click-dragging a fortune to your booth will burn it."]}),(0,i.jsxs)("p",{children:[(0,i.jsx)("b",{children:"ABILITIES:"}),(0,i.jsx)("br",{}),"Tell Fortune: This allows you to mad-lib existing words in Zoldorf's vocabulary into a few pre-generated fortune formats. The number of lines scales from 1 to 3 depending on the number of souls collected from crew members. If you ever wish to write less lines, you may cancel the prompt at any time to print a fortune using only the line's you've fully generated up to that point."]}),(0,i.jsx)("p",{children:"Omen: This ability changes the color of your crystal ball. This is useful for answering direct questions from the crew."}),(0,i.jsx)("p",{children:"Medium: Activating your ghost light will allow you to hear dead-chat for 30 seconds with a much longer cooldown. It's best advised to be used when you know people will be talking."}),(0,i.jsx)("p",{children:"Brand: Branding one of your fortunes will pass that brand onto the next person to read it, allowing you to observer them using Astral Projection."}),(0,i.jsx)("p",{children:"Astral Projection: Observe any branded player. Souldorfs are automatically branded"}),(0,i.jsx)("p",{children:"Notes: Leave a note for your successors!"}),(0,i.jsx)("p",{children:"Manifest: This abilitiy manifests your spirit into a silent and ominous form for a short time, allowing you to move around the station freely for that period of time."}),(0,i.jsx)("p",{children:"Seance: Your ultimate ability, after a short charging time, all ghosts and souldorfs on your screen will be manifested! Ghosty Party!"}),(0,i.jsx)("p",{children:"Soul Jar: Visual display of partial souls stored in your booth. Once the jar spills over, you add one soul to your usable pool."}),(0,i.jsxs)("p",{children:[(0,i.jsx)("b",{children:"SUCCESSION:"}),(0,i.jsx)("br",{}),"As you have usurped the previous Zoldorf, you are not immune to being usurped yourself. Other players may hand you the same contract to take over as a new Zoldorf! Doing so will give you a Yes/No prompt. If you say no, you'll have three more minutes of Zoldorfing before you are automatially tossed into the aether."]}),(0,i.jsx)("p",{children:"After being usurped you will become a free-floating soul orb (Souldorf) which brings you closer to the dead, but with abilities of your own."}),(0,i.jsxs)("p",{children:["For more information, consult"," ",(0,i.jsx)("a",{href:"https://wiki.ss13.co/index.php?search=Guide to Zoldorf",children:"the wiki"})]})]})}},63412:function(Y,T,s){"use strict";s.r(T),s.d(T,{acw:function(){return p}});var i=s(20462);var p={title:"Zombie Basics",content:(0,i.jsxs)("div",{className:"traitor-tips",children:[(0,i.jsx)("h1",{className:"center",children:"You have been revived as a Zombie!"}),(0,i.jsx)("p",{children:"You are now a zombie, this means that you should kill the living, and not harm your fellow zombie brethren."}),(0,i.jsxs)("p",{children:[(0,i.jsx)("em",{children:"If you are an infectious zombie"}),': Kill and infect people with your "Zombify" ability. It will add more friends to your hoard of undead!'," "]}),(0,i.jsx)("p",{children:"1. Simply attacking humans, normally will infect them if you land enough hits in a short enough time. Using the ability on the living infects them immediately, but it still takes a while for the infection to completely turn them into a zombie."}),(0,i.jsx)("p",{children:'2. Scratching/biting/"Zombifying" a dead human will instantly convert them to a new friend!'}),(0,i.jsx)("p",{children:"You may be a mutated zombie and have unique powers! Check your DNA powers bar to see if you have any active genes!"}),(0,i.jsxs)("p",{children:["For more information, consult"," ",(0,i.jsx)("a",{href:"https://wiki.ss13.co/index.php?search=Zombie",children:"the wiki"})]})]})}},42313:function(Y,T,s){"use strict";s.r(T),s.d(T,{getAlertContentWindow:function(){return x}});var i=s(12293),p={};i.keys().forEach(function(y){var w,L=i(y),U=(w=y.match(/\/(.*)\.AlertContentWindow\.tsx$/))==null?void 0:w[1];U&&(p[U]=L.acw)});var x=function(y){var w=p[y];if(!w)throw new Error("Unrecognized alert content window name: "+y);return w}},22140:function(Y,T,s){"use strict";s.r(T);var i=s(61358);},51225:function(Y,T,s){"use strict";s.r(T),s.d(T,{AlertModal:function(){return P}});var i=s(20462),p=s(61358),x=s(2686),y=s(6544),w=s(41910),L=s(66272),U=s(42313),_=s(44149);var C=-1,O=1,A=600,S=480,P=function(){var W=(0,w.Oc)(),V=W.act,H=W.data,Q=H.autofocus,J=H.items,X=J===void 0?[]:J,q=H.message,ee=q===void 0?"":q,oe=H.content_window,re=oe===void 0?"":oe,ae=H.timeout,le=H.title,de=H.theme,me=(0,p.useState)(0),fe=me[0],ue=me[1],ye=re?(0,U.getAlertContentWindow)(re):null,Ee=ye?ye.height||S:115+(ee.length>30?Math.ceil(ee.length/4):0),se=ye?ye.width||A:325+(X.length>2?55:0),pe=function(Oe){fe===0&&Oe===C?ue(X.length-1):fe===X.length-1&&Oe===O?ue(0):ue(fe+Oe)},ge,Ie,xe;return(0,i.jsxs)(L.p8,{height:Ee,title:ye?(ge=ye.title)!=null?ge:"Antagonist Tips":le,width:se,theme:(xe=(Ie=ye==null?void 0:ye.theme)!=null?Ie:de)!=null?xe:"nanotrasen",children:[!!ae&&(0,i.jsx)(_.Loader,{value:ae}),(0,i.jsx)(L.p8.Content,{onKeyDown:function(Oe){var Be=window.event?Oe.which:Oe.keyCode;Be===y.iy||Be===y.Ri?V("choose",{choice:X[fe]}):Be===y.s6?V("cancel"):Be===y.iU?(Oe.preventDefault(),pe(C)):(Be===y.aW||Be===y.zh)&&(Oe.preventDefault(),pe(O))},children:(0,i.jsx)(x.wn,{fill:!0,children:(0,i.jsxs)(x.BJ,{fill:!0,vertical:!0,children:[(0,i.jsx)(x.BJ.Item,{grow:!0,m:1,children:(0,i.jsx)(x.az,{color:"label",overflowX:"hidden",overflowY:"auto",maxHeight:"100%",minHeight:"200px",children:ye?ye.content:ee})}),(0,i.jsxs)(x.BJ.Item,{children:[!!Q&&(0,i.jsx)(x.y5,{}),(0,i.jsx)(R,{selected:fe})]})]})})})]})},R=function(W){var V=(0,w.Oc)().data,H=V.items,Q=H===void 0?[]:H,J=W.selected;return(0,i.jsx)(x.so,{align:"center",direction:"row",fill:!0,justify:"space-around",wrap:!0,children:Q==null?void 0:Q.map(function(X,q){return(0,i.jsx)(x.so.Item,{children:(0,i.jsx)(N,{button:X,id:q.toString(),selected:J===q})},q)})})},N=function(W){var V=(0,w.Oc)().act,H=W.button,Q=W.selected,J=H.length>7?H.length:7;return(0,i.jsx)(x.$n,{onClick:function(){return V("choose",{choice:H})},m:.5,pl:2,pr:2,pt:0,selected:Q,textAlign:"center",width:J,children:H})}},12954:function(Y,T,s){"use strict";s.r(T),s.d(T,{AutomaticAnnouncement:function(){return y}});var i=s(20462),p=s(2686),x=s(41910);var y=function(w){var L=(0,x.Oc)(),U=L.act,_=L.data,C=_.arrivalalert;return(0,i.jsx)(p.wn,{title:"Arrival Announcement Message",children:(0,i.jsxs)(p.BJ,{vertical:!0,children:[(0,i.jsx)(p.BJ.Item,{children:"Valid tokens: $NAME, $JOB, $STATION, $THEY, $THEM, $THEIR. Leave the field empty for no message."}),(0,i.jsx)(p.BJ.Item,{children:(0,i.jsx)(p.pd,{fluid:!0,onChange:function(O,A){return U("arrival_message",{value:A})},placeholder:"Type something...",value:C})})]})})}},20543:function(Y,T,s){"use strict";s.r(T),s.d(T,{AnnouncementComputer:function(){return L}});var i=s(20462),p=s(41910),x=s(66272),y=s(12954),w=s(45261);var L=function(U){var _=(0,p.Oc)().data,C=_.announces_arrivals,O=_.theme;return(0,i.jsx)(x.p8,{theme:O,width:400,height:C?326:215,children:(0,i.jsxs)(x.p8.Content,{textAlign:"center",children:[(0,i.jsx)(w.ManualAnnouncement,{}),!!C&&(0,i.jsx)(y.AutomaticAnnouncement,{})]})})}},45261:function(Y,T,s){"use strict";s.r(T),s.d(T,{ManualAnnouncement:function(){return w}});var i=s(20462),p=s(2686),x=s(41910),y=s(41242);var w=function(U,_){var C=(0,x.Oc)(),O=C.act,A=C.data,S=A.card_name,P=A.status_message,R=A.time,N=A.max_length,W=(0,x.QY)("input",""),V=W[0],H=W[1],Q=(0,x.QY)("oldInput",""),J=Q[0],X=Q[1],q=L(V,N,P,R),ee=function(){V!==J&&(O("log",{value:V,old:J}),X(V))},oe=function(){O("transmit",{value:V}),H(""),X("")},re=function(ae){ae.preventDefault();var le=ae.target;H(le.value),q=L(V,N,P,R)};return(0,i.jsx)(p.wn,{title:"Make an Announcement",children:(0,i.jsxs)(p.BJ,{vertical:!0,children:[(0,i.jsxs)(p.BJ.Item,{color:q.color,children:["Status: ",q.text]}),(0,i.jsx)(p.BJ.Item,{children:(0,i.jsx)(p.$n,{onClick:function(){return O("id")},icon:"eject",preserveWhitespace:!0,children:S||"Insert card"})}),(0,i.jsx)(p.BJ.Item,{children:(0,i.jsx)(p.zv,{value:R,format:y.fU})}),(0,i.jsx)(p.BJ.Item,{children:(0,i.jsx)(p.pd,{autoFocus:!0,fluid:!0,onInput:function(ae){return re(ae)},onChange:function(){return ee()},placeholder:"Type something...",value:V})}),(0,i.jsx)(p.BJ.Item,{fontSize:"16px",children:(0,i.jsx)(p.$n,{icon:"bullhorn",fluid:!0,disabled:!q.canTransmit,onClick:function(){return oe()},children:"Transmit"})})]})})},L=function(U,_,C,O){return O>0?{canTransmit:!1,text:"Broadcast delay in effect.",color:"bad"}:C==="Insert Card"?{canTransmit:!1,text:"Insert Card",color:"average"}:C?{canTransmit:!1,text:C,color:"bad"}:_&&U.length>_?{canTransmit:!1,text:"Message too long, maximium is "+_+" characters.",color:"average"}:U?{canTransmit:!0,text:"Ready to transmit!",color:"good"}:{canTransmit:!1,text:"Input message.",color:"average"}}},20755:function(Y,T,s){"use strict";s.r(T);},95980:function(Y,T,s){"use strict";s.r(T),s.d(T,{AntagonistTypeTabBody:function(){return L}});var i=s(20462),p=s(61282),x=s(2686),y=s(41910);function w(){return w=Object.assign||function(de){for(var me=1;me=0)&&(V[Q]=N[Q]);return V}var C={LoggedOut:1,LoggedIn:2},O={Danger:"danger",Info:"info",Success:"success"},A=function(N){var W=N.type,V=_(N,["type"]),H=U({},W===O.Danger?{danger:!0}:{},W===O.Info?{info:!0}:{},W===O.Success?{success:!0}:{});return(0,i.jsxs)(x.az,{children:[(0,i.jsx)(x.cG,{}),(0,i.jsx)(x.IC,U({},H,V))]})},S=function(){var N=(0,y.Oc)().data,W=N.name,V=(0,p.useState)(L.AtmTabKeys.Teller),H=V[0],Q=V[1];return(0,i.jsx)(w.p8,{title:W,width:375,height:420,children:(0,i.jsx)(w.p8.Content,{children:(0,i.jsxs)(x.BJ,{vertical:!0,fill:!0,children:[(0,i.jsx)(x.BJ.Item,{children:(0,i.jsxs)(x.tU,{fluid:!0,children:[(0,i.jsx)(x.tU.Tab,{icon:"money-bills",selected:H===L.AtmTabKeys.Teller,onClick:function(){return Q(L.AtmTabKeys.Teller)},children:"ATM"}),(0,i.jsx)(x.tU.Tab,{icon:"coins",selected:H===L.AtmTabKeys.Spacebux,onClick:function(){return Q(L.AtmTabKeys.Spacebux)},children:"Spacebux"})]})}),(0,i.jsxs)(x.BJ.Item,{children:[H===L.AtmTabKeys.Teller&&(0,i.jsx)(P,{}),H===L.AtmTabKeys.Spacebux&&(0,i.jsx)(R,{})]})]})})})},P=function(){var N=(0,y.Oc)(),W=N.act,V=N.data,H=V.accountBalance,Q=V.accountName,J=V.loggedIn,X=V.scannedCard,q=V.message||{text:"",status:"",position:""};return(0,i.jsxs)(x.BJ,{vertical:!0,fill:!0,children:[(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(x.wn,{title:"Automatic Teller Machine",children:(0,i.jsxs)(x.BJ,{vertical:!0,fill:!0,children:[(0,i.jsxs)(x.BJ.Item,{children:[!X&&(0,i.jsx)(x.IC,{info:!0,children:"Please swipe card and enter PIN to access your account."}),(0,i.jsx)(x.$n,{icon:"id-card",onClick:X?function(){return W("logout")}:function(){return W("insert_card")},children:X||"Swipe ID"}),q.text&&q.position==="splash"&&(0,i.jsx)(A,{type:q.status,children:q.text})]}),J===C.LoggedIn?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.cG,{}),(0,i.jsx)(x.BJ.Item,{children:(0,i.jsxs)(x.BJ,{vertical:!0,fill:!0,children:[(0,i.jsxs)(x.BJ.Item,{children:["Welcome, ",(0,i.jsxs)("strong",{children:[Q,"."]})]}),(0,i.jsxs)(x.BJ.Item,{children:["Your account balance is ",(0,i.jsxs)("strong",{children:[H,"\u2ABD."]})]}),(0,i.jsxs)(x.BJ.Item,{children:[(0,i.jsx)(x.cG,{}),(0,i.jsx)(x.$n,{icon:"money-bill",onClick:function(){return W("withdraw_cash")},children:"Withdraw cash"}),q.text&&q.position==="atm"&&(0,i.jsx)(A,{type:q.status,children:q.text})]})]})})]}):X&&(0,i.jsxs)(x.BJ.Item,{children:[(0,i.jsx)(x.$n,{icon:"sign-out-alt",onClick:function(){return W("login_attempt")},children:"Enter PIN"}),q.text&&q.position==="login"&&(0,i.jsx)(A,{type:q.status,children:q.text})]})]})})}),(0,i.jsx)(x.BJ.Item,{children:J===C.LoggedIn&&(0,i.jsxs)(x.wn,{title:"Lottery",children:[(0,i.jsx)(x.IC,{info:!0,children:"To claim your winnings, you must insert your lottery ticket."}),(0,i.jsx)(x.cG,{}),(0,i.jsx)(x.$n,{icon:"ticket-alt",onClick:function(){return W("buy")},children:"Purchase Lottery Ticket (100\u2ABD)"}),q.text&&q.position==="lottery"&&(0,i.jsx)(A,{type:q.status,children:q.text})]})})]})},R=function(){var N=(0,y.Oc)(),W=N.act,V=N.data,H=V.clientKey,Q=V.spacebuxBalance;return(0,i.jsx)(x.wn,{title:""+H+"'s Spacebux Menu",children:(0,i.jsxs)(x.BJ,{vertical:!0,fill:!0,children:[(0,i.jsxs)(x.BJ.Item,{children:[(0,i.jsx)(x.IC,{info:!0,children:"This menu is only visible to you. Deposit Spacebux into your account by inserting a token."}),(0,i.jsx)(x.cG,{})]}),(0,i.jsxs)(x.BJ.Item,{children:["Your Spacebux balance is currently ",(0,i.jsxs)("strong",{children:[Q," ",(0,i.jsx)(x.In,{name:"fa-solid fa-coins"})]})]}),(0,i.jsxs)(x.BJ.Item,{children:[(0,i.jsx)(x.cG,{}),(0,i.jsx)(x.$n,{icon:"coins",onClick:function(){return W("withdraw_spacebux")},children:"Withdraw Spacebux"})]}),(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(x.$n,{icon:"envelope",onClick:function(){return W("transfer_spacebux")},children:"Securely send Spacebux"})})]})})}},25312:function(Y,T,s){"use strict";s.r(T),s.d(T,{AtmTabKeys:function(){return i}});var i=function(p){return p[p.Teller=0]="Teller",p[p.Spacebux=1]="Spacebux",p}({})},27057:function(Y,T,s){"use strict";s.r(T),s.d(T,{AutoInjector:function(){return L}});var i=s(20462),p=s(2686),x=s(41910),y=s(66272),w=s(15180);var L=function(){var U=(0,x.Oc)(),_=U.act,C=U.data,O=C.injectionAmount,A=C.reagentData,S=C.minimumTime,P=C.condition,R=C.conditionTreshold,N=C.conditionDamage,W=C.conditions;return(0,i.jsx)(y.p8,{width:360,height:520,theme:"neutral",children:(0,i.jsxs)(y.p8.Content,{children:[(0,i.jsx)(p.wn,{title:"Contents",buttons:(0,i.jsx)(p.$n,{tooltip:"Eject",icon:"eject",disabled:!A,onClick:function(){return _("remove_cont")},children:"Eject"}),children:A?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(w.ReagentGraph,{container:A}),(0,i.jsx)(w.ReagentList,{container:A})]}):"Please attach a beaker"}),(0,i.jsxs)(p.wn,{title:"Condition",children:[(0,i.jsx)(p.ms,{options:W,selected:P?P.name:"None",onSelected:function(V){return _("sel_cond",{condition:V})},width:"130px"}),R?(0,i.jsxs)(i.Fragment,{children:[N?(0,i.jsx)(p.ms,{options:["brute","burn","toxin","oxygen"],selected:N.damagetype,onSelected:function(V){return _("sel_damage_type",{damagetype:V})},width:"75px",mt:"0.5rem"}):null,(0,i.jsx)(p.Ap,{value:R.currentValue,format:function(V){return V+R.suffix},minValue:R.minValue,maxValue:R.maxValue,step:1,onChange:function(V,H){return _("changeConditionValue",{conditionValue:H})},mt:"0.5rem"})]}):null,P?(0,i.jsx)(p.az,{mt:"0.5rem",children:P.desc}):null]}),A?(0,i.jsx)(p.wn,{title:"Injection Amount",children:(0,i.jsx)(p.Ap,{value:O,format:function(V){return V+"u"},minValue:1,maxValue:A.maxVolume,step:1,onChange:function(V,H){return _("changeAmount",{amount:H})}})}):null,(0,i.jsx)(p.wn,{title:"Min. time between activations",children:(0,i.jsx)(p.Ap,{value:S,format:function(V){return V+" seconds"},minValue:3,maxValue:300,step:1,onChange:function(V,H){return _("changeMintime",{mintime:H})}})})]})})}},11091:function(Y,T,s){"use strict";s.r(T),s.d(T,{BanList:function(){return S}});var i=s(20462),p=s(61358),x=s(2686),y=s(82653),w=s(74120),L=s(65058),U=s(61938),_=s(79046);var C=30,O=Object.keys(w.BanPanelSearchFilter),A=function(P){return""+P.id},S=function(P){var R=P.data,N=R.ban_list,W=R.per_page,V=(0,L.useBanPanelBackend)().action,H=(N!=null?N:{}).search_response,Q=H!=null?H:{},J=Q.data,X=(0,p.useState)(""),q=X[0],ee=X[1],oe=(0,p.useState)(w.BanPanelSearchFilter.ckey),re=oe[0],ae=oe[1],le=function(){return V.searchBans(q,w.BanPanelSearchFilter[re])},de=function(pe,ge){return ee(ge)},me=V.navigatePreviousPage,fe=V.navigateNextPage,ue=function(pe){return V.setPerPage(pe)},ye=function(pe){return V.editBan(pe)},Ee=function(pe){return V.deleteBan(pe)},se=(0,_.buildColumnConfigs)({editBan:ye,deleteBan:Ee});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.BJ.Item,{children:(0,i.jsxs)(x.so,{pt:1,children:[(0,i.jsxs)(x.so.Item,{direction:"column",mx:1,wrap:"wrap",children:[(0,i.jsx)(x.pd,{value:q,onInput:de,mr:1}),(0,i.jsx)(x.$n,{icon:"magnifying-glass",onClick:le,children:"Search"})]}),(0,i.jsx)(x.so.Item,{grow:!0,children:(0,i.jsx)(x.ms,{width:11,icon:"filter",noChevron:!0,selected:re,options:O,onSelected:function(pe){ae(pe)}})})]})}),(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(x.wn,{children:(0,i.jsx)(x.BJ,{children:se.map(function(pe){return(0,i.jsx)(y.A,{config:pe},pe.id)})})})}),(0,i.jsx)(x.BJ.Item,{grow:!0,children:(0,i.jsx)(x.wn,{fill:!0,scrollable:!0,children:(0,i.jsx)(x.BJ,{vertical:!0,zebra:!0,mb:1,children:(J!=null?J:[]).map(function(pe){return(0,i.jsx)(U.BanListItem,{columnConfigs:se,data:pe,rowId:A(pe)},pe.id)})})})}),(0,i.jsx)(x.BJ.Item,{children:(0,i.jsxs)(x.wn,{children:[(0,i.jsx)(x.$n,{onClick:me,children:"Prev"}),(0,i.jsx)(x.$n,{onClick:fe,children:"Next"}),(0,i.jsx)(x.Q7,{minValue:5,maxValue:100,value:W!=null?W:C,onChange:ue,step:5})]})})]})}},61938:function(Y,T,s){"use strict";s.r(T),s.d(T,{BanListItem:function(){return y}});var i=s(20462),p=s(2686),x=s(82653);var y=function(w){var L=w.columnConfigs,U=w.data,_=w.rowId;return(0,i.jsx)(p.BJ.Item,{children:(0,i.jsx)(p.BJ,{children:L.map(function(C){return(0,i.jsx)(x.f,{columnConfig:C,data:U,rowId:_},C.id)})})})}},79046:function(Y,T,s){"use strict";s.r(T),s.d(T,{buildColumnConfigs:function(){return C}});var i=s(20462),p=s(48970),x=s.n(p),y=s(16265),w=s.n(y),L=s(53264),U=s.n(L),_=s(2686);x().extend(w()),x().extend(U());var C=function(O){return[{header:"",id:"actions",renderContents:function(A){var S=A.rowId;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(_.$n,{icon:"pencil",onClick:function(){return O.editBan(S)}},"edit"),(0,i.jsx)(_.$n,{icon:"trash",onClick:function(){return O.deleteBan(S)},color:"red"},"delete")]})},basis:4.5},{header:"ID",id:"id",getValue:function(A){return A.id},renderContents:function(A){var S=A.value;return(0,i.jsx)("a",{href:"https://goonhub.com/admin/bans/"+S,children:S})},basis:4},{header:"ckey",id:"ckey",getValue:function(A){var S,P;return(P=(S=A.original_ban_detail)==null?void 0:S.ckey)!=null?P:"N/A"},renderContents:function(A){var S=A.value;return(0,i.jsx)("a",{href:"https://goonhub.com/admin/players/"+S,children:S})},basis:10,grow:1},{header:"Duration",id:"duration",getValue:function(A){if(A.expires_at===null)return A.requires_appeal?"Until Appeal":"Permanent";var S=x()(A.created_at),P=x()(A.expires_at),R=x().duration(S.diff(P));return R.humanize()},getValueTooltip:function(A){var S=x()(A.created_at),P=[(0,i.jsx)(i.Fragment,{children:S.format("[Banned ] YYYY-MM-DD HH:mm [UTC]\n")})];if(A.expires_at===null)P.push((0,i.jsx)("strong",{children:"Permanent"}));else{var R=x()(A.expires_at);P.push((0,i.jsx)(i.Fragment,{children:R.format("[Expires] YYYY-MM-DD HH:mm [UTC]")}))}return A.deleted_at!==null&&P.push((0,i.jsx)(i.Fragment,{children:x()(A.deleted_at).format("\n[Deleted] YYYY-MM-DD HH:mm [UTC]")})),(0,i.jsx)("pre",{children:P})},renderContents:function(A){return A.data.deleted_at!==null?(0,i.jsx)("div",{className:"ExpiredBan BanText",children:A.value}):(0,i.jsx)("div",{className:"CurrentBan BanText",children:A.value})},basis:7.5},{header:"Server",id:"server",getValue:function(A){var S;return(S=A.server_id)!=null?S:"All"},basis:4},{header:"Admin",id:"admin",getValue:function(A){var S;return(S=A.game_admin)!=null?S:"N/A"},renderContents:function(A){var S=A.value;return(0,i.jsx)("a",{href:"https://goonhub.com/admin/game-admins/"+S.id,className:"NoColor",children:S.name})},getValueTooltip:function(A){var S;return A.game_admin===null?"N/A":((S=A.game_admin)==null?void 0:S.ckey)+" ("+A.game_admin_id+")"},basis:6.5},{header:"Reason",id:"reason",getValue:function(A){return A.reason},basis:10,grow:10},{header:"CID",id:"cid",getValue:function(A){var S,P;return(P=(S=A.original_ban_detail)==null?void 0:S.comp_id)!=null?P:"N/A"},basis:7},{header:"IP",id:"ip",getValue:function(A){var S,P;return(P=(S=A.original_ban_detail)==null?void 0:S.ip)!=null?P:"N/A"},basis:9}]}},26612:function(Y,T,s){"use strict";s.r(T),s.d(T,{JobBanList:function(){return x}});var i=s(20462),p=s(2686);var x=function(){return(0,i.jsx)(p.wn,{children:"Not yet implemented"})}},16818:function(Y,T,s){"use strict";s.r(T);},17226:function(Y,T,s){"use strict";s.r(T),s.d(T,{BanPanel:function(){return _}});var i=s(20462),p=s(2686),x=s(66272),y=s(11091),w=s(26612),L=s(74120),U=s(65058);var _=function(){var C=(0,U.useBanPanelBackend)(),O=C.action,A=C.data,S=A.current_tab;return(0,i.jsx)(x.p8,{width:1100,height:640,title:"Ban Panel",children:(0,i.jsx)(x.p8.Content,{className:"BanPanel",children:(0,i.jsxs)(p.BJ,{fill:!0,vertical:!0,children:[(0,i.jsx)(p.BJ.Item,{children:(0,i.jsxs)(p.tU,{children:[(0,i.jsx)(p.tU.Tab,{onClick:function(){return O.setTab(L.BanPanelTab.BanList)},selected:S===L.BanPanelTab.BanList,children:"Ban List"}),(0,i.jsx)(p.tU.Tab,{onClick:function(){return O.setTab(L.BanPanelTab.JobBanList)},selected:S===L.BanPanelTab.JobBanList,children:"Job Ban List"})]})}),S===L.BanPanelTab.BanList&&(0,i.jsx)(y.BanList,{data:A}),S===L.BanPanelTab.JobBanList&&(0,i.jsx)(w.JobBanList,{})]})})})}},74120:function(Y,T,s){"use strict";s.r(T),s.d(T,{BanPanelAction:function(){return p},BanPanelSearchFilter:function(){return x},BanPanelTab:function(){return i}});var i=function(y){return y.BanList="ban_list",y.JobBanList="job_ban_list",y}({}),p=function(y){return y.SearchBans="ban_search",y.NavigatePreviousPage="page_prev",y.NavigateNextPage="page_next",y.SetPerPage="set_perpage",y.SetTab="set_tab",y.EditBan="edit_ban",y.DeleteBan="delete_ban",y}({}),x=function(y){return y.ID="id",y.ckey="ckey",y.og_ckey="original_ban_ckey",y.Server="server",y.Admin="admin_ckey",y.Reason="reason",y.CID="comp_id",y.IP_Address="ip",y}({})},65058:function(Y,T,s){"use strict";s.r(T),s.d(T,{useBanPanelBackend:function(){return x}});var i=s(41910),p=s(74120);var x=function(){var y=(0,i.Oc)(),w=y.act,L=y.data,U={searchBans:function(_,C){return w(p.BanPanelAction.SearchBans,{searchText:_,searchFilter:C})},navigatePreviousPage:function(){return w(p.BanPanelAction.NavigatePreviousPage)},navigateNextPage:function(){return w(p.BanPanelAction.NavigateNextPage)},setPerPage:function(_){return w(p.BanPanelAction.SetPerPage,{amount:_})},setTab:function(_){return w(p.BanPanelAction.SetTab,{value:_})},editBan:function(_){return w(p.BanPanelAction.EditBan,{id:_})},deleteBan:function(_){return w(p.BanPanelAction.DeleteBan,{id:_})}};return{action:U,data:L}}},37525:function(Y,T,s){"use strict";s.r(T),s.d(T,{BarberingMenu:function(){return U}});var i=s(20462),p=s(61358),x=s(2686),y=s(41910),w=s(66272);var L="200px",U=function(){var V=(0,y.Oc)().data,H=(0,p.useState)(""),Q=H[0],J=H[1],X=V.available_styles,q=Object.keys(X);return(0,i.jsx)(w.p8,{width:700,height:500,title:"Barber",children:(0,i.jsx)(w.p8.Content,{scrollable:!0,m:0,children:(0,i.jsxs)(x.BJ,{children:[(0,i.jsx)(x.BJ.Item,{width:L,children:(0,i.jsx)(x.az,{position:"fixed",width:L,children:(0,i.jsx)(R,{onSearchTextInput:J})})}),(0,i.jsx)(x.BJ.Item,{grow:!0,children:(0,i.jsx)(C,{searchText:Q,allHairNames:q,allHairStyles:X})})]})})})},_=function(V){var H=V.onInput;return(0,i.jsxs)(x.BJ,{children:[(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(x.In,{name:"magnifying-glass"})}),(0,i.jsx)(x.BJ.Item,{grow:!0,children:(0,i.jsx)(x.pd,{style:{width:"100%"},onInput:function(Q,J){return H(J)},placeholder:"Search..."})})]})},C=function(V){var H=V.searchText,Q=V.allHairNames,J=V.allHairStyles,X=H.toLowerCase(),q=Q.filter(function(ee){return ee.toLowerCase().includes(X)});return(0,i.jsx)(x.BJ,{wrap:!0,children:q.map(function(ee){return(0,i.jsx)(x.BJ.Item,{m:1,children:(0,i.jsx)(S,{hairStyle:J[ee],hairName:ee})},J[ee].id)})})},O=function(){var V=(0,y.Oc)().act;return(0,i.jsx)(x.$n,{fluid:!0,icon:"cut",color:"red",bold:!0,onClick:function(){return V("do_hair",{style_id:null})},children:"Create Wig"})},A=function(){var V=(0,y.Oc)().act;return(0,i.jsx)(x.$n,{fluid:!0,icon:"rotate-left",color:"red",onClick:function(){return V("update_preview",{action:"reset"})},children:"Reset"})},S=function(V){var H=(0,y.Oc)().act,Q=V.hairStyle,J=V.hairName;return(0,i.jsx)(x.wn,{width:"140px",align:"center",children:(0,i.jsxs)(x.BJ,{vertical:!0,children:[(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(x._V,{width:"60px",height:"100px",src:""+Q.hair_icon})}),(0,i.jsx)(x.BJ.Item,{children:J}),(0,i.jsxs)(x.BJ.Item,{children:[(0,i.jsx)(x.$n,{color:"blue",icon:"cut",onClick:function(){return H("do_hair",{style_id:Q.hair_id})},children:"Cut"}),(0,i.jsx)(x.$n,{color:"blue",icon:"eye",onClick:function(){return H("update_preview",{action:"new_hair",style_id:Q.hair_id})},children:"Preview"})]})]})})},P=function(){var V=(0,y.Oc)().act;return(0,i.jsxs)(x.BJ,{justify:"space-around",children:[(0,i.jsx)(x.BJ.Item,{align:"center",children:(0,i.jsx)(x.$n,{icon:"rotate-left",onClick:function(){return V("update_preview",{action:"change_direction",direction:-90})}})}),(0,i.jsx)(x.BJ.Item,{align:"center",children:(0,i.jsx)(x.$n,{icon:"rotate-right",onClick:function(){return V("update_preview",{action:"change_direction",direction:90})}})})]})},R=function(V){var H=(0,y.Oc)().data,Q=H.preview,J=V.onSearchTextInput;return(0,i.jsx)(x.wn,{children:(0,i.jsxs)(x.BJ,{vertical:!0,children:[(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(_,{onInput:J})}),(0,i.jsx)(x.BJ.Divider,{}),(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(W,{})}),(0,i.jsx)(x.BJ.Divider,{mt:0}),(0,i.jsxs)(x.BJ.Item,{align:"center",style:{width:"100%"},children:[(0,i.jsx)(x.az,{style:{width:"100%"},align:"center",children:(0,i.jsx)(x.D1,{params:{id:Q,type:"map"},style:{width:"80px",height:"160px"}})}),(0,i.jsx)(A,{})]}),(0,i.jsx)(x.BJ.Divider,{}),(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(P,{})}),(0,i.jsx)(x.BJ.Divider,{}),(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(O,{})})]})})},N=function(V){var H=V.children,Q=V.hairPortion,J=V.icon,X=(0,y.Oc)(),q=X.act,ee=X.data,oe=ee.current_hair_style,re=ee.selected_hair_portion,ae=(0,i.jsx)(x.az,{align:"right",children:oe[Q]});return(0,i.jsx)(x.tU.Tab,{icon:J,rightSlot:ae,selected:re===Q,onClick:function(){return q("change_hair_portion",{new_portion:Q})},children:H})},W=function(){return(0,i.jsxs)(x.tU,{vertical:!0,mb:0,children:[(0,i.jsx)(N,{hairPortion:"top",icon:"arrows-up-to-line",children:"Top"}),(0,i.jsx)(N,{hairPortion:"middle",icon:"arrow-down-up-across-line",children:"Middle"}),(0,i.jsx)(N,{hairPortion:"bottom",icon:"arrows-down-to-line",children:"Bottom"})]})}},44221:function(Y,T,s){"use strict";s.r(T),s.d(T,{BarcodeComputer:function(){return _}});var i=s(20462),p=s(61358),x=s(2686),y=s(41910),w=s(66272);var L=function(C){var O=C.title,A=C.destinations,S=C.act,P=C.amount;return(0,i.jsx)(x.wn,{title:O,children:A.map(function(R){var N=R.crate_tag,W=R.name;return(0,i.jsx)(x.$n,{width:"100%",align:"center",onClick:function(){return S("print",{crate_tag:N,amount:P})},children:W||N},N)})})},U=function(C){if(C.card){var O=C.card,A=C.act;return(0,i.jsx)(x.$n,{icon:"eject",tooltip:"Clear scanned card",tooltipPosition:"bottom-end",onClick:function(){A("reset_id")},children:O.name+" ("+O.role+")"})}},_=function(){var C=(0,y.Oc)(),O=C.act,A=C.data,S=A.sections,P=A.card,R=(0,p.useState)(1),N=R[0],W=R[1];return(0,i.jsx)(w.p8,{title:"Barcode computer",width:600,height:450,children:(0,i.jsxs)(w.p8.Content,{scrollable:!0,children:[(0,i.jsxs)(x.BJ,{children:[(0,i.jsx)(x.BJ.Item,{grow:1,children:(0,i.jsx)(x.wn,{title:"Amount to print",fill:!0,children:(0,i.jsx)(x.az,{align:"center",children:(0,i.jsx)(x.Q7,{value:N,minValue:1,maxValue:5,step:1,stepPixelSize:15,unit:"Barcodes",onDrag:function(V){return W(V)}})})})}),(0,i.jsx)(x.BJ.Item,{grow:1,children:(0,i.jsx)(x.wn,{title:"Scanned ID card",fill:!0,children:(0,i.jsxs)(x.az,{align:"center",children:[(0,i.jsx)(U,{card:P,act:O}),(0,i.jsx)("br",{}),P?"Account balance: "+P.balance+"\u2ABD":null]})})})]}),(0,i.jsx)("br",{}),(0,i.jsx)(x.BJ,{children:S.map(function(V){var H=V.title,Q=V.destinations;return(0,i.jsx)(x.BJ.Item,{width:"33%",children:(0,i.jsx)(L,{title:H,destinations:Q,act:O,amount:N})},H)})})]})})}},98618:function(Y,T,s){"use strict";s.r(T),s.d(T,{BioEffectManager:function(){return C}});var i=s(20462),p=s(2686),x=s(41910),y=s(66272);var w=function(O){var A=O.checked,S=O.onClick,P=O.id;return(0,i.jsx)(p.XI.Cell,{py:"0.5em",collapsing:!0,children:(0,i.jsx)(p.az,{align:"center",children:(0,i.jsx)(p.$n.Checkbox,{checked:A,width:"5em",onClick:function(){return S(P)}})})})},L=function(O){var A=O.number,S=O.unit,P=O.onChange,R=O.id;return(0,i.jsx)(p.XI.Cell,{py:"0.5em",collapsing:!0,children:(0,i.jsx)(p.az,{align:"center",children:(0,i.jsx)(p.Q7,{minValue:0,maxValue:1/0,unit:S,width:"5em",value:A,step:1,onChange:function(N){return P(R,N)}})})})},U=function(O){var A=O.children;return(0,i.jsx)(p.XI.Cell,{py:"0.5em",textAlign:"center",children:A})},_=function(){return(0,i.jsxs)(p.XI.Row,{bold:!0,children:[(0,i.jsx)(U,{children:"Name"}),(0,i.jsx)(U,{children:"ID"}),(0,i.jsx)(U,{children:"Stable"}),(0,i.jsx)(U,{children:"Reinforced"}),(0,i.jsx)(U,{children:"Boosted"}),(0,i.jsx)(U,{children:"Synced"}),(0,i.jsx)(U,{children:"Cooldown"}),(0,i.jsx)(U,{children:"Actions"})]})},C=function(){var O=(0,x.Oc)(),A=O.act,S=O.data,P=S.bioEffects,R=S.stability,N=S.target_name,W=function(){return A("addBioEffect")},V=function(re,ae){return A("updateCooldown",{id:re,value:ae})},H=function(re){return A("updateStability",{value:re})},Q=function(re){return A("toggleBoosted",{id:re})},J=function(re){return A("toggleReinforced",{id:re})},X=function(re){return A("toggleStabilized",{id:re})},q=function(re){return A("toggleSynced",{id:re})},ee=function(re){return A("manageBioEffect",{id:re})},oe=function(re){return A("deleteBioEffect",{id:re})};return(0,i.jsx)(y.p8,{title:"Bioeffect Manager",width:750,height:300,children:(0,i.jsx)(y.p8.Content,{children:(0,i.jsx)(p.wn,{title:"Bioeffects of "+N,scrollable:!0,fill:!0,buttons:(0,i.jsxs)(i.Fragment,{children:["Stability:",(0,i.jsx)(p.Q7,{minValue:0,maxValue:1/0,width:"5em",step:1,value:R,onChange:function(re){return H(re)}}),(0,i.jsx)(p.$n,{icon:"plus",onClick:W,children:"Add Bioeffect"})]}),children:(0,i.jsxs)(p.XI,{children:[(0,i.jsx)(_,{}),(P==null?void 0:P.length)>0?P.map(function(re){return(0,i.jsxs)(p.XI.Row,{children:[(0,i.jsx)(p.XI.Cell,{py:"0.5em",children:re.name}),(0,i.jsx)(p.XI.Cell,{py:"0.5em",collapsing:!0,children:re.id}),(0,i.jsx)(w,{checked:re.stabilized,onClick:X,id:re.id}),(0,i.jsx)(w,{checked:re.reinforced,onClick:J,id:re.id}),(0,i.jsx)(w,{checked:re.boosted,onClick:Q,id:re.id}),(0,i.jsx)(w,{checked:re.synced,onClick:q,id:re.id}),(0,i.jsx)(L,{number:re.cooldown,unit:"ds",onChange:V,id:re.id}),(0,i.jsx)(p.XI.Cell,{py:"0.5em",collapsing:!0,children:(0,i.jsxs)(p.az,{align:"center",nowrap:!0,children:[(0,i.jsx)(p.$n,{tooltip:"View Variables",tooltipPosition:"top",align:"left",icon:"gear",onClick:function(){return ee(re.id)}}),(0,i.jsx)(p.$n.Confirm,{tooltip:"Remove",tooltipPosition:"top",align:"left",icon:"trash",color:"bad",onClick:function(){return oe(re.id)}})]})})]},re.id)}):null]})})})})}},61840:function(Y,T,s){"use strict";s.r(T),s.d(T,{BitfieldInputModal:function(){return C}});var i=s(20462),p=s(6544),x=s(2686),y=s(41910),w=s(66272),L=s(37930),U=s(5335),_=s(44149),C=function(){var O=(0,y.Oc)(),A=O.act,S=O.data,P=S.timeout,R=S.message,N=S.title,W=S.autofocus,V=S.default_value,H=V===void 0?0:V;return(0,i.jsxs)(w.p8,{height:210,title:N,width:450,theme:"generic",children:[!!P&&(0,i.jsx)(_.Loader,{value:P}),(0,i.jsx)(w.p8.Content,{onKeyDown:function(Q){var J=window.event?Q.which:Q.keyCode;J===p.Ri&&A("submit",{entry:H}),J===p.s6&&A("cancel")},children:(0,i.jsxs)(x.BJ,{fill:!0,vertical:!0,children:[R&&(0,i.jsx)(x.BJ.Item,{m:1,children:(0,i.jsx)(x.wn,{fill:!0,children:(0,i.jsx)(x.az,{color:"label",overflow:"hidden",children:R})})}),(0,i.jsx)(x.BJ.Item,{grow:!0,children:(0,i.jsxs)(x.wn,{fill:!0,children:[!!W&&(0,i.jsx)(x.y5,{}),(0,i.jsx)(L.DataInputBitFieldEntry,{value:H})]})}),(0,i.jsx)(x.BJ.Item,{pl:4,pr:4,children:(0,i.jsx)(U.InputButtons,{input:H})})]})})]})}},5886:function(Y,T,s){"use strict";s.r(T);var i=s(20462),p=s(41910),x=s(80709),y=function(){var L=(0,p.Oc)().data,U=(0,x.useStates)(),_=U.mouseCoords,C=U.tileSize,O=U.isFlipped,A=L.boardInfo,S=A.width,P=A.height,R=L.currentUser;if(!R||!R.selected)return null;var N=L.pieces[R.selected];if(!N)return null;var W=N.x*C.width+C.width/2,V=N.y*C.height+C.height/2,H=_.x-20,Q=_.y-54,J=Math.floor(H/C.width)*C.width,X=Math.floor(Q/C.height)*C.height,q=J+C.width/2,ee=X+C.height/2,oe=q-W,re=ee-V,ae=Math.sqrt(oe*oe+re*re),le=ae>C.width/2&&ae>C.height/2,de=oe/ae,me=re/ae,fe=q-de*40,ue=ee-me*40;return(0,i.jsxs)("svg",{className:"boardgame__board-ggrenderer",width:"100%",height:"100%",children:[(0,i.jsx)("rect",{x:J,y:X,width:C.width,height:C.height,fill:"red","fill-opacity":"0.4"}),(0,i.jsx)("rect",{x:O?S*C.width-W-C.width/2:W-C.width/2,y:O?P*C.height-V-C.height/2:V-C.height/2,width:C.width,height:C.height,fill:le?"red":"none","fill-opacity":"0.4"}),le&&(0,i.jsx)(w,{}),le&&(0,i.jsx)("line",{x1:W,y1:V,x2:fe,y2:ue,stroke:"orange",fill:"none","stroke-width":"3","marker-end":"url(#arrow)"})]})},w=function(){return(0,i.jsx)("defs",{children:(0,i.jsx)("marker",{id:"arrow",markerWidth:"10",markerHeight:"10",refX:"0",refY:"3",orient:"auto",markerUnits:"strokeWidth",children:(0,i.jsx)("path",{d:"M0,0 L0,6 L9,3 z",fill:"orange",stroke:"none"})})})};T.default=y},55452:function(Y,T,s){"use strict";s.r(T);var i=s(20462),p=s(2686),x=s(41910),y=s(17815),w=s(80709),L=function(U){var _=U.pieces,C=(0,x.Oc)(),O=C.act,A=C.data,S=A.currentUser,P=A.users,R=(0,w.useStates)(),N=R.isFlipped,W=R.tileSize,V=(0,w.useActions)(O),H=V.pieceSelect,Q=V.pieceRemove,J=V.piecePlace,X=A.boardInfo,q=X.width,ee=X.height,oe=(0,y.codeRecordFromPieces)((0,y.fetchPieces)());return(0,i.jsx)(p.az,{className:"boardgame__board-gprenderer",children:Object.keys(_).map(function(re,ae){var le,de=_[re],me=de.x,fe=de.y,ue=de.prevX,ye=de.prevY,Ee=de.code,se=de.selected,pe=oe[Ee],ge=se&&S!==se,Ie=me*W.width,xe=fe*W.height;N&&(Ie=(q-me-1)*W.width,xe=(ee-fe-1)*W.height);var Oe=((le=P[se])==null?void 0:le.name)||"";return(0,i.jsxs)("div",{className:"boardgame__board-gprenderer-piece",onMouseDown:function(Be){Be.button===0&&!se&&(S.palette&&J(S.ckey,me,fe),S.selected&&!ge&&J(S.ckey,me,fe),S.selected||H(S.ckey,re)),Be.button===2&&(se||Q(re))},onMouseUp:function(Be){S.palette&&J(S.ckey,me,fe),S.selected&&!ge&&J(S.ckey,me,fe)},style:{left:Ie+"px",top:xe+"px",width:W.width+"px",height:W.height+"px"},children:[(0,i.jsx)("img",{style:{width:W.width+"px",height:W.width+"px"},src:pe.image}),se&&(0,i.jsx)("span",{children:Oe})]},ae)})})};T.default=L},33958:function(Y,T,s){"use strict";s.r(T),s.d(T,{screenToBoard:function(){return i}});var i=function(p,x,y){var w=p/y.width,L=x/y.height;return[w,L]}},87445:function(Y,T,s){"use strict";s.r(T),s.d(T,{Board:function(){return U}});var i=s(20462),p=s(2686),x=s(41910),y=s(80709),w=s(89544),L=s(12910),U=function(){var C=(0,x.Oc)(),O=C.act,A=C.data,S=(0,y.useActions)(O).pieceDeselect;return(0,i.jsx)(p.so,{className:"boardgame__wrapper",children:(0,i.jsxs)(p.az,{className:"boardgame__board-inner",children:[(0,i.jsx)(w.HorizontalNotations,{}),(0,i.jsxs)(p.so,{className:"boardgame__board",children:[(0,i.jsx)(w.VerticalNotations,{}),(0,i.jsx)(p.so.Item,{grow:!0,onmouseleave:function(){var P;(P=A.currentUser)!=null&&P.selected&&S(A.currentUser.ckey)},children:(0,i.jsx)(_,{})}),(0,i.jsx)(w.VerticalNotations,{})]}),(0,i.jsx)(w.HorizontalNotations,{})]})})},_=function(){var C=(0,x.Oc)().data,O=C.boardInfo.boardstyle;switch(O){case"checkerboard":return(0,i.jsx)(L.default,{});default:return(0,i.jsxs)("div",{children:["Unknown design: ",O]})}}},581:function(Y,T,s){"use strict";s.r(T);var i=s(20462),p=s(41910),x=function(){var y=(0,p.Oc)().data,w=y.styling,L=w.tileColor1,U=w.tileColor2,_=100/y.boardInfo.width,C=100/y.boardInfo.height;return(0,i.jsxs)("svg",{width:"100%",height:"100%",children:[(0,i.jsxs)("pattern",{id:"checkerboardpattern",x:"0",y:"0",width:_*2+"%",height:C*2+"%",patternUnits:"userSpaceOnUse",children:[(0,i.jsx)("rect",{width:_+"%",height:C+"%",fill:L}),(0,i.jsx)("rect",{x:_+"%",y:C+"%",width:_+"%",height:C+"%",fill:L}),(0,i.jsx)("rect",{x:_+"%",width:_+"%",height:C+"%",fill:U}),(0,i.jsx)("rect",{y:C+"%",width:_+"%",height:C+"%",fill:U})]}),(0,i.jsx)("rect",{width:"100%",height:"100%",fill:"url(#checkerboardpattern)"})]})};T.default=x},12910:function(Y,T,s){"use strict";s.r(T),s.d(T,{CheckerBoard:function(){return _}});var i=s(20462),p=s(61358),x=s(41910),y=s(80709),w=s(5886),L=s(55452),U=s(581),_=function(){var C=(0,x.Oc)(),O=C.act,A=C.data,S=A.pieces,P=A.currentUser,R=A.styling.tileColor2,N=(0,y.useStates)(),W=N.tileSize,V=N.isFlipped,H=N.mouseCoords,Q=W.width,J=W.height,X=(0,y.useActions)(O).piecePlace,q=(0,p.useRef)(null),ee=function(){var oe=H.x,re=H.y;if(!(q!=null&&q.current))return[-1,-1];var ae=q.current.getBoundingClientRect(),le=oe-ae.left,de=re-ae.top,me=Math.floor(le/Q),fe=Math.floor(de/J);return V&&(me=A.boardInfo.width-me-1,fe=A.boardInfo.height-fe-1),[me,fe]};return(0,i.jsxs)("div",{style:{backgroundColor:R},ref:q,className:"boardgame__board-checkerboard",onMouseDown:function(oe){if(oe.button===0&&(P.palette||P.selected)){var re=ee(),ae=re[0],le=re[1];X(P.ckey,ae,le)}},onMouseUp:function(oe){if(oe.button===0){var re=ee(),ae=re[0],le=re[1];if(P.palette){X(P.ckey,ae,le);return}if(P.selected){var de=S[P.selected];(de.x!==ae||de.y!==le)&&X(P.ckey,ae,le)}}},children:[(0,i.jsx)(U.default,{}),(0,i.jsx)(w.default,{}),(0,i.jsx)(L.default,{pieces:S})]})};T.default=_},24632:function(Y,T,s){"use strict";s.r(T),s.d(T,{BoardgameContents:function(){return L}});var i=s(20462),p=s(66272),x=s(80709),y=s(89544),w=s(87445),L=function(){var U=(0,x.useStates)().mouseCoordsSet;return(0,i.jsxs)(p.p8.Content,{onMouseMove:function(_){U({x:_.clientX,y:_.clientY})},fitted:!0,className:"boardgame__window",children:[(0,i.jsx)(w.Board,{}),(0,i.jsx)(y.Palettes,{})]})}},51232:function(Y,T,s){"use strict";s.r(T),s.d(T,{ButtonConfirm:function(){return _}});var i=s(20462),p=s(61358),x=s(65993);function y(){return y=Object.assign||function(C){for(var O=1;O=0)&&(A[P]=C[P]);return A}function U(C,O){return U=Object.setPrototypeOf||function(S,P){return S.__proto__=P,S},U(C,O)}var _=function(C){"use strict";w(O,C);function O(){var S;return S=C.apply(this,arguments)||this,S.state={confirmState:!1},S.setConfirmState=function(P){S.setState({confirmState:P})},S}var A=O.prototype;return A.render=function(){var P=this,R=this.props,N=R.icon,W=R.color,V=R.onConfirm,H=R.tooltipContent,Q=R.confirmText,J=Q===void 0?"Confirm":Q,X=L(R,["icon","color","onConfirm","tooltipContent","confirmText"]);return(0,i.jsx)(x.$n,y({icon:N,color:this.state.confirmState?"orange":W,tooltip:this.state.confirmState?J:H,onMouseOut:function(){return P.setConfirmState(!1)},onClick:function(){P.state.confirmState?(V==null||V(),P.setConfirmState(!1)):P.setConfirmState(!0)}},X))},O}(p.Component)},6768:function(Y,T,s){"use strict";s.r(T),s.d(T,{HeldPieceRenderer:function(){return L}});var i=s(20462),p=s(2686),x=s(41910),y=s(17815),w=s(80709),L=function(){var U=(0,x.Oc)().data;if(!U.currentUser)return null;var _=(0,w.useStates)().mouseCoords,C=_.x,O=_.y,A=U.currentUser.palette||U.currentUser.selected;if(!A)return null;var S=(0,y.fetchPieces)(),P=(0,y.codeRecordFromPieces)(S)[A];return P?(0,i.jsxs)(p.az,{className:"boardgame__heldpiece",style:{top:O+"px",left:C+"px",width:"120px",height:"120px"},children:[(0,i.jsx)(p.az,{className:"boardgame__heldpiece-inner",children:(0,i.jsx)("img",{src:P.image})}),(0,i.jsx)(p.az,{style:{fontSize:"12px",fontWeight:"bold",textShadow:"0 0 2px black"},children:"Right click to cancel"})]}):null}},21625:function(Y,T,s){"use strict";s.r(T),s.d(T,{HorizontalNotations:function(){return w},VerticalNotations:function(){return L}});var i=s(20462),p=s(2686),x=s(41910),y=s(80709),w=function(){var U=(0,x.Oc)().data,_=U.boardInfo.width,C=U.styling,O=C.border,A=C.tileColor1,S=C.tileColor2,P=(0,y.useStates)().isFlipped,R=O||S||"black",N=A||"white",W=(0,y.generateBoardNotationLetters)(_);return P&&(W=W.reverse()),(0,i.jsx)(p.so,{style:{"background-color":R,color:N},className:"boardgame__notations boardgame__notations-horizontal",children:W.map(function(V,H){return(0,i.jsx)(p.so.Item,{grow:1,children:(0,i.jsx)(p.az,{className:"boardgame__notation-letter",children:V})},H)})})},L=function(){var U=(0,x.Oc)().data,_=U.boardInfo.height,C=U.styling,O=C.border,A=C.tileColor1,S=C.tileColor2,P=(0,y.useStates)().isFlipped,R=O||S||"black",N=A||"white",W=Array.from(Array(_).keys());return P&&(W=W.reverse()),(0,i.jsx)(p.so,{style:{"background-color":R,color:N},className:"boardgame__notations boardgame__notations-vertical",children:W.map(function(V,H){return(0,i.jsx)(p.so.Item,{className:"boardgame__notations-number",grow:1,children:P?H+1:_-H},H)})})}},86626:function(Y,T,s){"use strict";s.r(T),s.d(T,{Palettes:function(){return L}});var i=s(20462),p=s(2686),x=s(41910),y=s(17815),w=s(80709),L=function(){var C=(0,w.useStates)().isExpanded;return(0,i.jsx)(p.az,{className:"boardgame__palettes",children:(0,y.fetchPalettes)().map(function(O,A){return(0,i.jsxs)(p.az,{children:[(0,i.jsx)(p.az,{className:"boardgame__palettes-header",children:(0,i.jsx)(_,{index:A,setId:O.name})}),(0,i.jsx)(p.so,{className:"boardgame__palettes-set "+(C(A)?"":"boardgame__palettes-set-minimized"),children:O.pieces.map(function(S,P){return(0,i.jsx)(U,{piece:S},P)})})]},O.name)})})},U=function(C){var O=C.piece,A=(0,x.Oc)(),S=A.act,P=A.data,R=P.currentUser,N=(0,w.useActions)(S).paletteSet;return(0,i.jsx)(p.so.Item,{className:"boardgame__palettes-set-piece",onMouseDown:function(){return N(R.ckey,O.code)},children:(0,i.jsx)("img",{src:O.image})},O.name)},_=function(C){var O=C.index,A=C.setId,S=(0,w.useStates)(),P=S.isExpanded,R=S.togglePalette;return(0,i.jsx)(p.$n.Checkbox,{className:"boardgame__palettes-set-toggle",checked:P(O),onClick:function(){return R(O)},children:A})}},17051:function(Y,T,s){"use strict";s.r(T),s.d(T,{TitleBar:function(){return L}});var i=s(20462),p=s(2686),x=s(41910),y=s(80709),w=s(51232),L=function(){var U=(0,x.Oc)().act,_=(0,y.useStates)(),C=_.isFlipped,O=_.toggleFlip,A=_.helpModalOpen,S=_.helpModalClose,P=_.isHelpModalOpen,R=(0,y.useActions)(U),N=R.boardClear,W=R.applyGNot;return(0,i.jsxs)(p.az,{className:"boardgame__titlebar",children:[(0,i.jsx)(p.$n,{tooltip:P?"Close":"Help",color:P?"orange":"default",icon:P?"times":"question",onClick:function(){return P?S():A()}}),(0,i.jsx)(p.$n,{tooltip:"Flip board",color:C?"orange":"default",icon:"repeat",onClick:O}),(0,i.jsx)(w.ButtonConfirm,{tooltipContent:"Clear board",icon:"trash",onConfirm:function(){N()}}),(0,i.jsx)(w.ButtonConfirm,{tooltipContent:"Load Chess Preset",icon:"chess",onConfirm:function(){W("r,n,b,q,k,b,n,r,p,p,p,p,p,p,p,p,32,P,P,P,P,P,P,P,P,R,N,B,Q,K,B,N,R")}}),(0,i.jsx)(w.ButtonConfirm,{tooltipContent:"Load Draughts Preset",icon:"ring",onConfirm:function(){W("1,d,1,d,1,d,1,d,d,1,d,1,d,1,d,2,d,1,d,1,d,1,d,16,D,1,D,1,D,1,D,2,D,1,D,1,D,1,D,D,1,D,1,D,1,D")}})]})};T.default=L},89544:function(Y,T,s){"use strict";s.r(T),s.d(T,{HeldPieceRenderer:function(){return i.HeldPieceRenderer},HorizontalNotations:function(){return p.HorizontalNotations},Palettes:function(){return x.Palettes},VerticalNotations:function(){return p.VerticalNotations}});var i=s(6768),p=s(21625),x=s(86626)},12036:function(Y,T,s){"use strict";s.r(T),s.d(T,{kit:function(){return p}});var i=s(99927),p={pieces:i.default,palettes:[{name:"Chess",pieces:i.default}]};T.default=p},99927:function(Y,T,s){"use strict";s.r(T);var i=[];i.push({code:"k",name:"King (Black)",game:"chess",image:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPg0KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjQ1IiBoZWlnaHQ9IjQ1IiB2aWV3Qm94PSIwIDAgNDUgNDUiPg0KICA8ZyBzdHlsZT0iZmlsbDpub25lOyBmaWxsLW9wYWNpdHk6MTsgZmlsbC1ydWxlOmV2ZW5vZGQ7IHN0cm9rZTojMDAwMDAwOyBzdHJva2Utd2lkdGg6MS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xNiwyMSBjIDAsMi4wMyAwLjk0LDMuODQgMi40MSw1LjAzIEMgMTUuNDEsMjcuMDkgMTEsMzEuNTggMTEsMzkuNSBIIDM0IEMgMzQsMzEuNTggMjkuNTksMjcuMDkgMjYuNTksMjYuMDMgMjguMDYsMjQuODQgMjksMjMuMDMgMjksMjEgMjksMTguNTkgMjcuNjcsMTYuNSAyNS43MiwxNS4zOCAyNi4yMSwxNC43MSAyNi41LDEzLjg5IDI2LjUsMTMgYyAwLC0yLjIxIC0xLjc5LC00IC00LC00IHoiIHN0eWxlPSJvcGFjaXR5OjE7IGZpbGw6I2ZmZmZmZjsgZmlsbC1vcGFjaXR5OjE7IGZpbGwtcnVsZTpub256ZXJvOyBzdHJva2U6IzAwMDAwMDsgc3Ryb2tlLXdpZHRoOjEuNTsgc3Ryb2tlLWxpbmVjYXA6cm91bmQ7IHN0cm9rZS1saW5lam9pbjptaXRlcjsgc3Ryb2tlLW1pdGVybGltaXQ6NDsgc3Ryb2tlLWRhc2hhcnJheTpub25lOyBzdHJva2Utb3BhY2l0eToxOyIvPg0KPC9zdmc+"}),T.default=i},32078:function(Y,T,s){"use strict";s.r(T),s.d(T,{kit:function(){return p}});var i=s(19465),p={pieces:i.default,palettes:[{name:"Draughts",pieces:i.default}]};T.default=p},19465:function(Y,T,s){"use strict";s.r(T);var i=[];i.push({code:"d",name:"Man (Black)",game:"draughts",image:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iOS43OW1tIiBoZWlnaHQ9IjkuNzltbSIgdmVyc2lvbj0iMS4xIiB2aWV3Qm94PSIwIDAgOS43OSA5Ljc5IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOmNjPSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9ucyMiIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS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UgMjAgMHYtN3M5LTQuNSA2LTEwLjVjLTQtNi41LTEzLjUtMy41LTE2IDR2My41LTMuNWMtMi41LTcuNS0xMi0xMC41LTE2LTQtMyA2IDYgMTAuNSA2IDEwLjV2NyIvPgogICAgPHBhdGggZD0ibTEyLjUgMzBjNS41LTMgMTQuNS0zIDIwIDBtLTIwIDMuNWM1LjUtMyAxNC41LTMgMjAgMG0tMjAgMy41YzUuNS0zIDE0LjUtMyAyMCAwIi8+CiAgIDwvZz4KICA8L2c+CiA8L2c+Cjwvc3ZnPgo="}),T.default=i},17815:function(Y,T,s){"use strict";s.r(T),s.d(T,{codeRecordFromPieces:function(){return L},fetchPalettes:function(){return C},fetchPieces:function(){return U},getPiece:function(){return y},getPiecesByGame:function(){return w},palettes:function(){return _},pushPieces:function(){return x}});var i=s(70126),p=[];i.kits.forEach(function(O){var A;(A=p).push.apply(A,[].concat(O.pieces))});var x=function(O){var A;return(A=p).push.apply(A,[].concat(O))},y=function(O,A){return p.find(function(S){return S.code===O&&S.game===A})},w=function(O){return p.filter(function(A){return A.game===O})},L=function(O){return O.reduce(function(A,S){return A[S.code]=S,A},{})},U=function(){return p},_=[];i.kits.forEach(function(O){var A;(A=_).push.apply(A,[].concat(O.palettes))});var C=function(){return _}},70126:function(Y,T,s){"use strict";s.r(T),s.d(T,{kits:function(){return x}});var i=s(12036),p=s(32078),x=[i.default,p.default]},13661:function(Y,T,s){"use strict";s.r(T),s.d(T,{Boardgame:function(){return P}});var i=s(20462),p=s(61358),x=s(2686),y=s(41910),w=s(66272),L=s(24632),U=s(6768),_=s(17051),C=s(80709),O=s(62261);function A(N,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(W&&W.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),W&&S(N,W)}function S(N,W){return S=Object.setPrototypeOf||function(H,Q){return H.__proto__=Q,H},S(N,W)}var P=function(N){"use strict";A(W,N);function W(H){return N.call(this,H)||this}var V=W.prototype;return V.componentDidUpdate=function(){(0,O.handleEvents)(),(0,O.adjustSizes)()},V.render=function(){var Q,J=(0,y.Oc)().data,X=(J==null||(Q=J.boardInfo)==null?void 0:Q.name)||"Boardgame";return(0,i.jsxs)(w.p8,{title:X,width:580,height:512,children:[(0,i.jsx)(R,{}),(0,i.jsx)(_.TitleBar,{}),(0,i.jsx)(U.HeldPieceRenderer,{}),(0,i.jsx)(L.BoardgameContents,{})]})},W}(p.Component),R=function(){var N=(0,C.useStates)(),W=N.helpModalClose,V=N.isHelpModalOpen;return V?(0,i.jsx)(x.Rr,{className:"boardgame__helpmodal",onClick:W,children:(0,i.jsxs)(x.az,{children:[(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:"Help"})}),(0,i.jsxs)("p",{children:[(0,i.jsx)(x.In,{name:"mouse"})," Click on a piece to select it, click on a tile to move it there."]}),(0,i.jsx)("p",{children:"Pieces may also be click-dragged to a target tile."}),(0,i.jsx)("p",{children:"Moving a piece onto a tile occupied by another piece will replace/capture the piece already on that tile."}),(0,i.jsx)("p",{children:"Right click a piece to delete it."})]})}):null}},80709:function(Y,T,s){"use strict";s.r(T),s.d(T,{generateBoardNotationLetters:function(){return i.generateBoardNotationLetters},numToBoardNotation:function(){return i.numToBoardNotation},useActions:function(){return p.useActions},useStates:function(){return x.useStates}});var i=s(93466),p=s(38695),x=s(11716)},93466:function(Y,T,s){"use strict";s.r(T),s.d(T,{generateBoardNotationLetters:function(){return p},numToBoardNotation:function(){return i}});var i=function(x){for(var y="",w=x;w>=0;){var L=w%26;y=String.fromCharCode(65+L)+y,w=Math.floor(w/26)-1}return y},p=function(x,y){for(var w=[],L=0;LP.length)&&(R=P.length);for(var N=0,W=new Array(R);N=P.length?{done:!0}:{done:!1,value:P[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.")}var _=function(P,R){for(var N=1e3,W=60*N,V=60*W,H=24*V,Q=30*H,J=365*H,X=[{interval:N,label:"second"},{interval:W,label:"minute"},{interval:V,label:"hour"},{interval:H,label:"day"},{interval:Q,label:"month"},{interval:J,label:"year"}],q=+new Date(R)-+new Date(P),ee=U(X.reverse()),oe;!(oe=ee()).done;){var re=oe.value,ae=re.interval,le=re.label;if(q>=ae){var de=Number((q/ae).toFixed(2));return de+" "+le+(de===1?"":"s")}}return"Permanent"},C=function(P){var R=P.ban,N=R.bannedOn,W=R.expires,V=R.jobs,H=R.reason,Q=R.sourceName,J=R.type,X=R.unbannedBy,q=new Date(W)0?"good":"bad",children:O.traitsPointsTotal})]})]}),(0,i.jsx)(p.Ki.Divider,{})]})}),(0,i.jsx)(p.wn,{title:"Sounds",children:(0,i.jsxs)(p.Ki,{children:[(0,i.jsxs)(p.Ki.Item,{label:"Fart",children:[(0,i.jsx)(p.$n,{onClick:function(){return C("update-fartsound")},children:O.fartsound}),(0,i.jsx)(p.$n,{icon:"volume-up",onClick:function(){return C("previewSound",{fartsound:1})},children:"Preview"})]}),(0,i.jsxs)(p.Ki.Item,{label:"Scream",children:[(0,i.jsx)(p.$n,{onClick:function(){return C("update-screamsound")},children:O.screamsound}),(0,i.jsx)(p.$n,{icon:"volume-up",onClick:function(){return C("previewSound",{screamsound:1})},children:"Preview"})]}),(0,i.jsxs)(p.Ki.Item,{label:"Chat",children:[(0,i.jsx)(p.$n,{onClick:function(){return C("update-chatsound")},children:O.chatsound}),(0,i.jsx)(p.$n,{icon:"volume-up",onClick:function(){return C("previewSound",{chatsound:1})},children:"Preview"})]})]})})]})}},29674:function(Y,T,s){"use strict";s.r(T),s.d(T,{GameSettingsTab:function(){return w}});var i=s(20462),p=s(2686),x=s(41910),y=s(60950);var w=function(){var L=(0,x.Oc)(),U=L.act,_=L.data;return(0,i.jsx)(p.wn,{children:(0,i.jsxs)(p.Ki,{children:[(0,i.jsxs)(p.Ki.Item,{label:"Popup Font Size",buttons:(0,i.jsx)(p.$n,{onClick:function(){return U("update-fontSize",{reset:1})},children:"Reset"}),children:[(0,i.jsx)(p.az,{mb:"5px",color:"label",children:"Changes the font size used in popup windows. Only works when CHUI is disabled."}),(0,i.jsx)(p.$n,{onClick:function(){return U("update-fontSize")},children:_.fontSize?_.fontSize+"%":"Default"})]}),(0,i.jsxs)(p.Ki.Item,{label:"Messages",children:[(0,i.jsx)(p.az,{mb:"5px",color:"label",children:"Toggles if certain messages are shown in the chat window by default. You can change these mid-round by using the Toggle OOC/LOOC commands under the Commands tab in the top right."}),_.isMentor?(0,i.jsx)(p.az,{mb:"5px",children:(0,i.jsx)(p.$n.Checkbox,{checked:_.seeMentorPms,onClick:function(){return U("update-seeMentorPms")},children:"Display Mentorhelp"})}):null,(0,i.jsx)(p.az,{mb:"5px",children:(0,i.jsx)(p.$n.Checkbox,{checked:_.listenOoc,onClick:function(){return U("update-listenOoc")},tooltip:"Out-of-Character chat. This mostly just shows up on the RP server and at the end of rounds.",children:"Display OOC chat"})}),(0,i.jsx)(p.az,{mb:"5px",children:(0,i.jsx)(p.$n.Checkbox,{checked:_.listenLooc,onClick:function(){return U("update-listenLooc")},tooltip:"Local Out-of-Character is OOC chat, but only appears for nearby players. This is basically only used on the RP server.",children:"Display LOOC chat"})}),(0,i.jsx)(p.az,{mb:"5px",children:(0,i.jsx)(p.$n.Checkbox,{checked:!_.flyingChatHidden,onClick:function(){return U("update-flyingChatHidden")},tooltip:"Chat messages will appear over characters as they're talking.",children:"See chat above people's heads"})}),(0,i.jsx)(p.az,{mb:"5px",children:(0,i.jsx)(p.$n.Checkbox,{checked:_.autoCapitalization,onClick:function(){return U("update-autoCapitalization")},tooltip:"Chat messages you send will be automatically capitalized.",children:"Auto-capitalize your messages"})}),(0,i.jsx)(p.az,{mb:"5px",children:(0,i.jsx)(p.$n.Checkbox,{checked:_.localDeadchat,onClick:function(){return U("update-localDeadchat")},tooltip:"You'll only hear chat messages from living people on your screen as a ghost.",children:"Local ghost hearing"})})]}),(0,i.jsxs)(p.Ki.Item,{label:"HUD Theme",children:[(0,i.jsx)(p.az,{mb:"5px",children:(0,i.jsx)(p.$n,{onClick:function(){return U("update-hudTheme")},children:"Change"})}),(0,i.jsx)(p.az,{children:(0,i.jsx)(p._V,{src:"data:image/png;base64,"+_.hudThemePreview,width:"32px",height:"32px"})})]}),(0,i.jsxs)(p.Ki.Item,{label:"Targeting Cursor",children:[(0,i.jsx)(p.az,{mb:"5px",children:(0,i.jsx)(p.$n,{onClick:function(){return U("update-targetingCursor")},children:"Change"})}),(0,i.jsx)(p.az,{children:(0,i.jsx)(p._V,{src:"data:image/png;base64,"+_.targetingCursorPreview,width:"32px",height:"32px"})})]}),(0,i.jsxs)(p.Ki.Item,{label:"Tooltips",children:[(0,i.jsx)(p.az,{mb:"5px",color:"label",children:"Tooltips can appear when hovering over items. These tooltips can provide bits of information about the item, such as attack strength, special moves, etc."}),(0,i.jsx)(p.az,{mb:"5px",children:(0,i.jsx)(p.$n.Checkbox,{checked:_.tooltipOption===y.CharacterPreferencesTooltip.Always,onClick:function(){return U("update-tooltipOption",{value:y.CharacterPreferencesTooltip.Always})},children:"Show Always"})}),(0,i.jsx)(p.az,{mb:"5px",children:(0,i.jsx)(p.$n.Checkbox,{checked:_.tooltipOption===y.CharacterPreferencesTooltip.Alt,onClick:function(){return U("update-tooltipOption",{value:y.CharacterPreferencesTooltip.Alt})},children:"Show When ALT is held"})}),(0,i.jsx)(p.az,{mb:"5px",children:(0,i.jsx)(p.$n.Checkbox,{checked:_.tooltipOption===y.CharacterPreferencesTooltip.Never,onClick:function(){return U("update-tooltipOption",{value:y.CharacterPreferencesTooltip.Never})},children:"Never Show"})})]}),(0,i.jsxs)(p.Ki.Item,{label:"tgui",children:[(0,i.jsx)(p.az,{mb:"5px",color:"label",children:"TGUI is the UI framework we use for some game windows, and it comes with options!"}),(0,i.jsx)(p.az,{mb:"5px",children:(0,i.jsx)(p.$n.Checkbox,{checked:_.tguiFancy,onClick:function(){return U("update-tguiFancy")},children:"Makes TGUI windows look better, at the cost of compatibility."})}),(0,i.jsx)(p.az,{mb:"5px",children:(0,i.jsx)(p.$n.Checkbox,{checked:_.tguiLock,onClick:function(){return U("update-tguiLock")},children:"Locks TGUI windows to your main monitor."})})]}),(0,i.jsxs)(p.Ki.Item,{label:"Popups",children:[(0,i.jsx)(p.az,{mb:"5px",color:"label",children:"These options toggle the popups that appear when logging in and at the end of a round."}),(0,i.jsx)(p.az,{mb:"5px",children:(0,i.jsx)(p.$n.Checkbox,{checked:_.viewChangelog,onClick:function(){return U("update-viewChangelog")},tooltip:"The changelog can be shown at any time by using the 'Changelog' command, under the Commands tab in the top right.",tooltipPosition:"top",children:"Auto-open changelog"})}),(0,i.jsx)(p.az,{mb:"5px",children:(0,i.jsx)(p.$n.Checkbox,{checked:_.viewScore,onClick:function(){return U("update-viewScore")},tooltip:"The end-of-round scoring shows various stats on how the round went. If this option is off, you won't be able to see it.",tooltipPosition:"top",children:"Auto-open end-of-round score"})}),(0,i.jsx)(p.az,{mb:"5px",children:(0,i.jsx)(p.$n.Checkbox,{checked:_.viewTickets,onClick:function(){return U("update-viewTickets")},tooltip:"The end-of-round ticketing summary shows the various tickets and fines that were handed out. If this option is off, you can still see them on Goonhub (goonhub.com).",tooltipPosition:"top",children:"Auto-open end-of-round ticket summary"})})]}),(0,i.jsxs)(p.Ki.Item,{label:"Controls",children:[(0,i.jsx)(p.az,{mb:"5px",color:"label",children:"Various options for how you control your character and the game."}),(0,i.jsx)(p.az,{mb:"5px",children:(0,i.jsx)(p.$n.Checkbox,{checked:_.useClickBuffer,onClick:function(){return U("update-useClickBuffer")},tooltip:"There is a cooldown after clicking on things in-game. When enabled, if you click something during this cooldown, the game will apply that click after the cooldown. Otherwise, the click is ignored.",tooltipPosition:"top",children:"Queue Combat Clicks"})}),(0,i.jsx)(p.az,{mb:"5px",children:(0,i.jsx)(p.$n.Checkbox,{checked:_.useWasd,onClick:function(){return U("update-useWasd")},tooltip:"Enabling this allows you to use WASD to move instead of the arrow keys, and enables a few other hotkeys.",tooltipPosition:"top",children:"Use WASD Mode"})}),(0,i.jsx)(p.az,{mb:"5px",children:(0,i.jsx)(p.$n.Checkbox,{checked:_.useAzerty,onClick:function(){return U("update-useAzerty")},tooltip:"If you have an AZERTY keyboard, enable this. Yep. This sure is a tooltip.",tooltipPosition:"top",children:"Use AZERTY Keyboard Layout"})}),(0,i.jsx)(p.az,{color:"label",children:"Familiar with /tg/station controls? You can enable/disable them under the Game/Interface menu in the top left."})]}),(0,i.jsxs)(p.Ki.Item,{label:"Scroll Targeting",children:[(0,i.jsx)(p.az,{mb:"5px",color:"label",children:"This option allows you to change which limb to target with the scroll wheel."}),(0,i.jsx)(p.az,{mb:"5px",children:(0,i.jsx)(p.$n.Checkbox,{checked:_.scrollWheelTargeting===y.CharacterPreferencesScrollTarget.Always,onClick:function(){return U("update-scrollWheelTargeting",{value:y.CharacterPreferencesScrollTarget.Always})},children:"Always"})}),(0,i.jsx)(p.az,{mb:"5px",children:(0,i.jsx)(p.$n.Checkbox,{checked:_.scrollWheelTargeting===y.CharacterPreferencesScrollTarget.Hover,onClick:function(){return U("update-scrollWheelTargeting",{value:y.CharacterPreferencesScrollTarget.Hover})},children:"When hovering over targeting doll"})}),(0,i.jsx)(p.az,{mb:"5px",children:(0,i.jsx)(p.$n.Checkbox,{checked:_.scrollWheelTargeting===y.CharacterPreferencesScrollTarget.Never,onClick:function(){return U("update-scrollWheelTargeting",{value:y.CharacterPreferencesScrollTarget.Never})},children:"Never"})})]}),(0,i.jsx)(p.Ki.Item,{label:"Preferred Map",children:(0,i.jsx)(p.$n,{onClick:function(){return U("update-preferredMap")},children:_.preferredMap?_.preferredMap:(0,i.jsx)(p.az,{italic:!0,children:"None"})})}),(0,i.jsx)(p.Ki.Item,{label:"Examine help",children:(0,i.jsx)(p.$n.Checkbox,{checked:_.helpTextInExamine,onClick:function(){return U("update-helpTextInExamine")},tooltip:"If help messages in examine text annoy you, you can turn them off here. They will still be available by alt+doubleclicking the item or in the right click menu.",tooltipPosition:"top",children:"See help messages when you examine?"})})]})})}},11335:function(Y,T,s){"use strict";s.r(T),s.d(T,{GeneralTab:function(){return L}});var i=s(20462),p=s(61282),x=s(2686),y=s(41910),w=s(65993);var L=function(){var U=(0,y.Oc)(),_=U.act,C=U.data,O=function(P){return P.length>200?P.substring(0,200)+"\u2026":P},A;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.wn,{title:"Records",children:(0,i.jsxs)(x.Ki,{children:[(0,i.jsxs)(x.Ki.Item,{label:"Name",buttons:(0,i.jsx)(x.$n.Checkbox,{checked:C.randomName,onClick:function(){return _("update-randomName")},children:"Random"}),children:[(0,i.jsx)(x.$n,{onClick:function(){return _("update-nameFirst")},children:C.nameFirst}),(0,i.jsx)(x.$n,{onClick:function(){return _("update-nameMiddle")},color:C.nameMiddle===""?"grey":"default",children:C.nameMiddle!==""?C.nameMiddle:(0,i.jsx)(x.az,{italic:!0,children:"None"})}),(0,i.jsx)(x.$n,{onClick:function(){return _("update-nameLast")},children:C.nameLast})]}),(0,i.jsx)(x.Ki.Item,{label:"Body Type",children:(0,i.jsx)(x.$n,{onClick:function(){return _("update-gender")},children:C.gender})}),(0,i.jsx)(x.Ki.Item,{label:"Pronouns",children:(0,i.jsx)(x.$n,{onClick:function(){return _("update-pronouns")},children:C.pronouns})}),(0,i.jsx)(x.Ki.Item,{label:"Age",children:(0,i.jsx)(x.$n,{onClick:function(){return _("update-age")},children:C.age})}),(0,i.jsx)(x.Ki.Item,{label:"Blood Type",children:(0,i.jsx)(x.$n,{onClick:function(){return _("update-bloodType")},children:C.bloodRandom?(0,i.jsx)(x.az,{as:"span",italic:!0,children:"Random"}):C.bloodType})}),(0,i.jsx)(x.Ki.Item,{label:"Bank PIN",buttons:(0,i.jsx)(x.$n.Checkbox,{checked:!C.pin,onClick:function(){return _("update-pin",{random:!!C.pin})},children:"Random"}),children:(0,i.jsx)(x.$n,{onClick:function(){return _("update-pin")},children:(A=C.pin)!=null?A:(0,i.jsx)(x.az,{as:"span",italic:!0,children:"Random"})})}),(0,i.jsx)(x.Ki.Item,{label:"Flavor Text",buttons:(0,i.jsx)(x.$n,{onClick:function(){return _("update-flavorText")},icon:"wrench",children:"Edit"}),children:(0,i.jsx)(x.Y0,{children:C.flavorText?(0,p.jT)(C.flavorText):(0,i.jsx)(x.az,{italic:!0,children:"None"})})}),(0,i.jsx)(x.Ki.Item,{label:"Security Note",buttons:(0,i.jsx)(x.$n,{onClick:function(){return _("update-securityNote")},icon:"wrench",children:"Edit"}),children:(0,i.jsx)(x.Y0,{children:C.securityNote?(0,p.jT)(C.securityNote):(0,i.jsx)(x.az,{italic:!0,children:"None"})})}),(0,i.jsx)(x.Ki.Item,{label:"Medical Note",buttons:(0,i.jsx)(x.$n,{onClick:function(){return _("update-medicalNote")},icon:"wrench",children:"Edit"}),children:(0,i.jsx)(x.Y0,{children:C.medicalNote?(0,p.jT)(C.medicalNote):(0,i.jsx)(x.az,{italic:!0,children:"None"})})}),(0,i.jsx)(x.Ki.Item,{label:"Syndicate Intelligence",buttons:(0,i.jsx)(x.$n,{onClick:function(){return _("update-syndintNote")},icon:"wrench",children:"Edit"}),children:(0,i.jsx)(x.Y0,{children:C.syndintNote?O((0,p.jT)(C.syndintNote)):(0,i.jsx)(x.az,{italic:!0,children:"None"})})})]})}),(0,i.jsx)(x.wn,{title:"Other names",children:(0,i.jsx)(x.Ki,{children:(0,i.jsx)(x.Ki.Item,{label:"Preferred Cyborg Name",children:(0,i.jsx)(x.$n,{onClick:function(){return _("update-robotName")},color:C.robotName?"default":"grey",children:C.robotName?C.robotName:(0,i.jsx)(x.az,{italic:!0,children:"None"})})})})}),(0,i.jsx)(x.wn,{title:"PDA",children:(0,i.jsxs)(x.Ki,{children:[(0,i.jsxs)(x.Ki.Item,{label:"Ringtone",children:[(0,i.jsx)(x.$n,{onClick:function(){return _("update-pdaRingtone")},children:C.pdaRingtone}),(0,i.jsx)(x.$n,{onClick:function(){return _("previewSound",{pdaRingtone:1})},icon:"volume-up",children:"Preview"})]}),(0,i.jsx)(x.Ki.Item,{label:"Background Color",children:(0,i.jsx)(w.a_,{color:C.pdaColor,onClick:function(){return _("update-pdaColor")}})})]})})]})}},9025:function(Y,T,s){"use strict";s.r(T),s.d(T,{SavesTab:function(){return w}});var i=s(20462),p=s(61358),x=s(2686),y=s(41910);var w=function(U,_){var C=(0,y.Oc)(),O=C.act,A=C.data;return(0,i.jsx)(x.wn,{title:"Cloud Saves",children:A.cloudSaves?(0,i.jsxs)(i.Fragment,{children:[A.cloudSaves.map(function(S,P){return(0,i.jsxs)(p.Fragment,{children:[(0,i.jsx)(L,{name:S,index:P}),(0,i.jsx)(x.cG,{})]},S)}),(0,i.jsx)(x.az,{mt:"5px",children:(0,i.jsx)(x.$n,{onClick:function(){return O("cloud-new")},children:"Create new save"})})]}):(0,i.jsx)(x.az,{italic:!0,color:"label",children:"Cloud saves could not be loaded."})})},L=function(U){var _=U.name,C=U.index,O=(0,y.Oc)().act;return(0,i.jsx)(x.Ki,{children:(0,i.jsx)(x.Ki.Item,{label:"Cloud save "+(C+1),buttons:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.$n,{onClick:function(){return O("cloud-load",{name:_})},children:"Load"})," - ",(0,i.jsx)(x.$n,{onClick:function(){return O("cloud-save",{name:_})},children:"Save"})," - ",(0,i.jsx)(x.$n.Confirm,{onClick:function(){return O("cloud-delete",{name:_})},children:"Delete"})]}),children:_})})}},11752:function(Y,T,s){"use strict";s.r(T),s.d(T,{TraitsTab:function(){return A}});var i=s(20462),p=s(61282),x=s(61358),y=s(2686),w=s(41910);function L(R,N){(N==null||N>R.length)&&(N=R.length);for(var W=0,V=new Array(N);W=R.length?{done:!0}:{done:!1,value:R[V++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var O=function(R,N){return R.name.localeCompare(N.name,"en",{sensitivity:"base"})},A=function(){for(var R=(0,w.Oc)(),N=R.act,W=R.data,V=(0,x.useState)(!1),H=V[0],Q=V[1],J={},X=W.traitsAvailable.map(function(ue){return U({},ue,W.traitsData[ue.id])}),q=C(X),ee;!(ee=q()).done;)for(var oe=ee.value,re=oe.category&&oe.category.length>0?oe.category:["uncategorized"],ae=C(re),le;!(le=ae()).done;){var de=le.value;J[de]||(J[de]=[]),J[de].push(oe)}var me=Object.keys(J).sort();me.includes("uncategorized")&&(me=[].concat(me.filter(function(ue){return ue!=="uncategorized"}),["uncategorized"]));var fe=W.traitsAvailable.filter(function(ue){return ue.selected}).length;return(0,i.jsx)(y.wn,{fill:!0,children:(0,i.jsxs)(y.BJ,{vertical:!0,fill:!0,children:[(0,i.jsxs)(y.BJ.Item,{children:[(0,i.jsxs)(y.az,{children:["Available points: ",(0,i.jsx)(y.az,{as:"span",color:W.traitsPointsTotal>0?"good":"bad",children:W.traitsPointsTotal})]}),(0,i.jsx)(y.cG,{})]}),(0,i.jsx)(y.BJ.Item,{grow:!0,children:(0,i.jsxs)(y.BJ,{fill:!0,children:[(0,i.jsx)(y.BJ.Item,{grow:!0,basis:0,children:(0,i.jsx)(y.wn,{title:"Available",fill:!0,scrollable:!0,buttons:(0,i.jsx)(y.$n.Checkbox,{checked:H,onClick:function(){return Q(!H)},children:"Filter available"}),children:me.map(function(ue){var ye=J[ue];return(0,i.jsx)(S,{category:ue,traits:ye.filter(function(Ee){return!Ee.selected}).filter(function(Ee){return H?Ee.available:!0}).sort(O)},ue)})})}),(0,i.jsx)(y.BJ.Item,{children:(0,i.jsx)(y.cG,{vertical:!0})}),(0,i.jsx)(y.BJ.Item,{grow:!0,basis:0,children:(0,i.jsx)(y.wn,{title:"Selected ("+fe+(W.traitsMax!==1/0?"/"+W.traitsMax:"")+")",fill:!0,scrollable:!0,buttons:(0,i.jsx)(y.$n,{onClick:function(){return N("reset-traits")},children:"Reset traits"}),children:me.map(function(ue){var ye=J[ue];return(0,i.jsx)(S,{category:ue,traits:ye.filter(function(Ee){return Ee.selected}).sort(O)},ue)})})})]})})]})})},S=function(R,N){var W=R.category,V=R.traits;return V.length===0?null:(0,i.jsx)(y.Nt,{title:(0,p.Sn)(W),open:!0,children:V.map(function(H,Q){return(0,i.jsxs)(x.Fragment,{children:[Q!==0&&(0,i.jsx)(y.cG,{}),(0,i.jsx)(P,U({},H))]},H.id)})})},P=function(R){var N=R.id,W=R.name,V=R.desc,H=R.points,Q=R.selected,J=R.available,X=R.img,q=(0,w.Oc)().act;return(0,i.jsxs)(y.BJ,{children:[(0,i.jsx)(y.BJ.Item,{children:(0,i.jsx)(y._V,{width:"32px",height:"32px",src:"data:image/png;base64,"+X,backgroundColor:"transparent"})}),(0,i.jsxs)(y.BJ.Item,{grow:1,children:[(0,i.jsxs)(y.BJ,{align:"center",mb:1,children:[(0,i.jsxs)(y.BJ.Item,{grow:!0,children:[""+W+" ",(0,i.jsxs)(y.az,{as:"span",color:H<0?"bad":H>0?"good":"label",children:["(",H>0?"+":"",H,")"]})]}),(0,i.jsx)(y.BJ.Item,{children:(0,i.jsx)(y.$n,{disabled:!J,icon:Q?"minus":"plus",onClick:function(){return q(Q?"unselect-trait":"select-trait",{id:N})},children:Q?"Remove":"Add"})})]}),(0,i.jsx)(y.Y0,{children:V})]})]})}},45588:function(Y,T,s){"use strict";s.r(T),s.d(T,{CharacterPreferences:function(){return R}});var i=s(20462),p=s(6544),x=s(61358),y=s(2686),w=s(41910),L=s(66272),U=s(36404),_=s(29674),C=s(11335),O=s(9025),A=s(11752),S=s(60950);var P=0,R=function(V){var H=(0,w.Oc)(),Q=H.act,J=H.data,X=(0,x.useState)(S.CharacterPreferencesTabKeys.General),q=X[0],ee=X[1],oe=function(re){if((q===S.CharacterPreferencesTabKeys.General||q===S.CharacterPreferencesTabKeys.Character)&&(re.keyCode===p.iU||re.keyCode===p.zh)){if(re.preventDefault(),P>performance.now())return;P=performance.now()+125;var ae="rotate-counter-clockwise";re.keyCode===p.zh&&(ae="rotate-clockwise"),Q(ae)}};return(0,i.jsx)(L.p8,{width:600,height:750,title:"Character Setup",children:(0,i.jsx)(L.p8.Content,{onKeyDown:oe,children:(0,i.jsxs)(y.BJ,{vertical:!0,fill:!0,children:[(0,i.jsx)(y.BJ.Item,{children:(0,i.jsx)(N,{})}),(0,i.jsx)(y.BJ.Item,{children:(0,i.jsxs)(y.tU,{children:[(0,i.jsx)(y.tU.Tab,{selected:q===S.CharacterPreferencesTabKeys.General,onClick:function(){return ee(S.CharacterPreferencesTabKeys.General)},children:"General"}),(0,i.jsx)(y.tU.Tab,{selected:q===S.CharacterPreferencesTabKeys.Character,onClick:function(){return ee(S.CharacterPreferencesTabKeys.Character)},children:"Appearance"}),(0,i.jsx)(y.tU.Tab,{onClick:function(){return Q("open-occupation-window")},children:"Occupation"}),(0,i.jsx)(y.tU.Tab,{selected:q===S.CharacterPreferencesTabKeys.Traits,onClick:function(){return ee(S.CharacterPreferencesTabKeys.Traits)},children:"Traits"}),(0,i.jsx)(y.tU.Tab,{selected:q===S.CharacterPreferencesTabKeys.GameSettings,onClick:function(){return ee(S.CharacterPreferencesTabKeys.GameSettings)},children:"Game Settings"}),(0,i.jsx)(y.tU.Tab,{selected:q===S.CharacterPreferencesTabKeys.Saves,onClick:function(){return ee(S.CharacterPreferencesTabKeys.Saves)},children:"Cloud Saves"})]})}),(0,i.jsxs)(y.BJ.Item,{grow:1,children:[(q===S.CharacterPreferencesTabKeys.General||q===S.CharacterPreferencesTabKeys.Character)&&(0,i.jsxs)(y.BJ,{fill:!0,children:[(0,i.jsx)(y.BJ.Item,{basis:0,grow:1,children:(0,i.jsxs)(y.wn,{scrollable:!0,fill:!0,children:[q===S.CharacterPreferencesTabKeys.General&&(0,i.jsx)(C.GeneralTab,{}),q===S.CharacterPreferencesTabKeys.Character&&(0,i.jsx)(U.CharacterTab,{})]})}),(0,i.jsx)(y.BJ.Item,{children:(0,i.jsxs)(y.wn,{fill:!0,children:[(0,i.jsx)(y.D1,{params:{id:J.preview,type:"map"},style:{width:"64px",height:"128px"}}),(0,i.jsxs)(y.az,{textAlign:"center",mt:"5px",children:[(0,i.jsx)(y.$n,{icon:"chevron-left",onClick:function(){return Q("rotate-counter-clockwise")}}),(0,i.jsx)(y.$n,{icon:"chevron-right",onClick:function(){return Q("rotate-clockwise")}})]})]})})]}),(q===S.CharacterPreferencesTabKeys.GameSettings||q===S.CharacterPreferencesTabKeys.Saves)&&(0,i.jsxs)(y.wn,{scrollable:!0,fill:!0,children:[q===S.CharacterPreferencesTabKeys.GameSettings&&(0,i.jsx)(_.GameSettingsTab,{}),q===S.CharacterPreferencesTabKeys.Saves&&(0,i.jsx)(O.SavesTab,{})]}),q===S.CharacterPreferencesTabKeys.Traits&&(0,i.jsx)(A.TraitsTab,{})]}),(0,i.jsx)(y.BJ.Item,{children:(0,i.jsx)(y.wn,{children:(0,i.jsx)(y.$n.Confirm,{onClick:function(){return Q("reset")},children:"Reset All"})})})]})})})},N=function(){var V=(0,w.Oc)(),H=V.act,Q=V.data,J=Q.profiles.findIndex(function(X){return X.active});return(0,i.jsxs)(y.BJ,{vertical:!0,children:[(0,i.jsx)(y.BJ.Item,{children:(0,i.jsx)(y.BJ,{children:Q.profiles.map(function(X,q){return(0,i.jsx)(y.BJ.Item,{basis:0,grow:1,children:(0,i.jsx)(W,{profile:X,index:q})},q)})})}),(0,i.jsx)(y.BJ.Item,{children:(0,i.jsx)(y.wn,{children:(0,i.jsx)(y.Ki,{children:(0,i.jsx)(y.Ki.Item,{label:"Profile Name",buttons:J>-1?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(y.$n,{onClick:function(){return H("profile-file-import",{index:J+1})},children:"Import"}),(0,i.jsx)(y.$n,{onClick:function(){return H("profile-file-export",{index:J+1})},children:"Export"}),(0,i.jsx)(y.$n,{onClick:function(){return H("load",{index:J+1})},children:"Reload"}),(0,i.jsx)(y.$n,{onClick:function(){return H("save",{index:J+1})},icon:Q.profileModified?"exclamation-triangle":void 0,color:Q.profileModified?"danger":void 0,tooltip:Q.profileModified?"You may have unsaved changes! Any unsaved changes will take effect for this round only.":void 0,tooltipPosition:"left",children:"Save"})]}):null,children:(0,i.jsx)(y.$n,{onClick:function(){return H("update-profileName")},children:Q.profileName?Q.profileName:(0,i.jsx)(y.az,{italic:!0,children:"None"})})})})})})]})},W=function(V){var H=V.index,Q=V.profile,J=(0,w.Oc)().act;return(0,i.jsx)(y.wn,{title:"Profile "+(H+1),textAlign:"center",backgroundColor:Q.active?"rgba(0, 0, 0, 0.10)":null,fill:!0,children:(0,i.jsxs)(y.BJ,{vertical:!0,fill:!0,justify:"space-between",children:[(0,i.jsx)(y.BJ.Item,{children:(0,i.jsx)(y.az,{children:Q.name?(0,i.jsx)(y.az,{children:Q.name}):(0,i.jsx)(y.az,{italic:!0,color:"label",children:"Empty"})})}),(0,i.jsxs)(y.BJ.Item,{children:[(0,i.jsx)(y.$n,{disabled:!Q.name,onClick:function(){return J("load",{index:H+1})},children:"Load"})," - ",(0,i.jsx)(y.$n,{onClick:function(){return J("save",{index:H+1})},children:"Save"})]})]})})}},60950:function(Y,T,s){"use strict";s.r(T),s.d(T,{CharacterPreferencesScrollTarget:function(){return x},CharacterPreferencesTabKeys:function(){return i},CharacterPreferencesTooltip:function(){return p}});var i=function(y){return y[y.Saves=0]="Saves",y[y.General=1]="General",y[y.Character=2]="Character",y[y.Traits=3]="Traits",y[y.GameSettings=4]="GameSettings",y}({}),p=function(y){return y[y.Always=1]="Always",y[y.Never=2]="Never",y[y.Alt=3]="Alt",y}({}),x=function(y){return y[y.Never=1]="Never",y[y.Hover=2]="Hover",y[y.Always=3]="Always",y}({})},88029:function(Y,T,s){"use strict";s.r(T),s.d(T,{ChemChute:function(){return w}});var i=s(20462),p=s(2686),x=s(41910),y=s(66272);var w=function(){var L=(0,x.Oc)().data,U=L.productList;return(0,i.jsx)(y.p8,{title:"Medical supply chute console",width:355,height:500,children:(0,i.jsx)(y.p8.Content,{children:(0,i.jsx)(p.wn,{fill:!0,scrollable:!0,title:"Dispensary interlink stock view",height:"100%",children:U.map(function(_){return(0,i.jsxs)(p.so,{justify:"space-between",align:"stretch",style:{borderBottom:"1px #555 solid"},children:[(0,i.jsx)(p.so.Item,{direction:"row",children:_.img&&(0,i.jsx)(p.az,{style:{overflow:"show",height:"24px"},children:(0,i.jsx)("img",{src:"data:image/png;base64,"+_.img,style:{transform:"translate(0, -4px)"}})})}),(0,i.jsx)(p.so.Item,{direction:"row",grow:!0,style:{display:"flex",justifyContent:"center",flexDirection:"column"},children:(0,i.jsxs)(p.az,{children:[(0,i.jsxs)(p.az,{inline:!0,italic:!0,children:[""+_.amount+" x","\xA0"]}),(0,i.jsx)(p.az,{inline:!0,children:_.name})]})}),(0,i.jsx)(p.so.Item,{bold:!0,direction:"row",style:{marginLeft:"5px",display:"flex",justifyContent:"center",flexDirection:"column"}})]},_.name)})})})})}},48499:function(Y,T,s){"use strict";s.r(T);},43970:function(Y,T,s){"use strict";s.r(T),s.d(T,{Beaker:function(){return N},BeakerContentsGraph:function(){return W},ChemDispenser:function(){return S},ChemGroups:function(){return V},ReagentDispenser:function(){return R}});var i=s(20462),p=s(61358),x=s(2686),y=s(41910),w=s(65993),L=s(66272),U=s(15180),_=s(26376),C=s(11249);function O(){return O=Object.assign||function(H){for(var Q=1;Q=0)&&(oe[ae]=q[ae]);return oe}var O=["","k","M","B","T"],A=function(q,ee){ee===void 0&&(ee=0);var oe=Math.log10(Math.abs(q))/3|0;return oe===ee?q:""+Math.round(q/Math.pow(10,oe*3))+O[oe]},S=["#17d568","#2ecc71","#e67e22","#ed5100","#e74c3c","#ed2814"],P=function(q,ee,oe,re){var ae=q+ee+oe+re,le=(0,y.qE)(Math.ceil(ae/25),0,5);return S[le]},R={Functions:"functions",Records:"records",Pods:"pods"},N={Danger:"danger",Info:"info",Success:"success"},W=function(q){var ee=q.type,oe=C(q,["type"]),re=_({},ee===N.Danger?{danger:!0}:{},ee===N.Info?{info:!0}:{},ee===N.Success?{success:!0}:{});return(0,i.jsx)(x.IC,_({},re,oe))},V=function(){var q=(0,w.Oc)(),ee=q.data,oe=q.act,re=ee.balance,ae=ee.cloneHack,le=ee.clonesForCash,de=ee.cloningWithRecords,me=ee.allowedToDelete,fe=(0,p.useState)(""),ue=fe[0],ye=fe[1],Ee=(0,p.useState)(null),se=Ee[0],pe=Ee[1],ge=(0,w.QY)("tab",R.Records),Ie=ge[0],xe=ge[1];return!de&&Ie===R.Records&&xe(R.Pods),(0,i.jsx)(U.p8,{theme:ae.some(Boolean)?"syndicate":"ntos",width:540,height:595,children:(0,i.jsxs)(U.p8.Content,{children:[ue&&(0,i.jsxs)(x.aF,{mx:7,fontSize:"31px",children:[(0,i.jsxs)(x.so,{align:"center",children:[(0,i.jsx)(x.so.Item,{mr:2,mt:1,children:(0,i.jsx)(x.In,{name:"trash"})}),(0,i.jsx)(x.so.Item,{children:"Delete Record?"})]}),(0,i.jsxs)(x.az,{mt:2,textAlign:"center",fontSize:"24px",children:[(0,i.jsx)(x.$n,{lineHeight:"40px",icon:"check",color:"good",onClick:function(){oe("delete",{id:ue}),ye("")},children:"Yes"}),(0,i.jsx)(x.$n,{width:8,align:"center",mt:2,ml:5,lineHeight:"40px",icon:"times",color:"bad",onClick:function(){return ye("")},children:"No"})]})]}),se&&(0,i.jsxs)(x.aF,{mx:7,width:25,fontSize:"15px",children:[(0,i.jsx)(x.$n,{fontSize:"26px",color:"blue",onClick:function(){return pe(null)},style:{position:"absolute",top:"5px",right:"5px"},children:"X"}),se.note,!!me&&(0,i.jsx)(x.$n,{color:"bad",icon:"trash",mx:1,onClick:function(){oe("deleteNote",{id:se.id}),pe(null)}})]}),(0,i.jsxs)(x.BJ,{vertical:!0,fill:!0,children:[(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(x.wn,{fitted:!0,children:(0,i.jsxs)(x.tU,{children:[!!de&&(0,i.jsx)(x.tU.Tab,{icon:"list",selected:Ie===R.Records,onClick:function(){return xe(R.Records)},children:"Records"}),(0,i.jsx)(x.tU.Tab,{icon:"box",selected:Ie===R.Pods,onClick:function(){return xe(R.Pods)},children:"Pods"}),(0,i.jsx)(x.tU.Tab,{icon:"wrench",selected:Ie===R.Functions,onClick:function(){return xe(R.Functions)},children:"Functions"})]})})}),!!le&&(0,i.jsx)(x.BJ.Item,{children:(0,i.jsxs)(x.wn,{children:["Current machine credit: ",re]})}),(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(Q,{})}),(0,i.jsxs)(x.BJ.Item,{grow:1,children:[Ie===R.Records&&!!de&&(0,i.jsx)(J,{setDeletionTarget:ye,setViewingNote:pe}),Ie===R.Pods&&(0,i.jsx)(X,{}),Ie===R.Functions&&(0,i.jsx)(H,{})]})]})]})})},H=function(){var q=(0,w.Oc)(),ee=q.act,oe=q.data,re=oe.allowMindErasure,ae=oe.disk,le=oe.diskReadOnly,de=oe.geneticAnalysis,me=oe.mindWipe,fe=oe.cloningWithRecords;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(x.wn,{title:"Advanced Genetic Analysis",children:[(0,i.jsxs)(x.az,{children:[(0,i.jsx)(x.az,{bold:!0,children:"Notice:"}),(0,i.jsx)(x.az,{children:"Enabling this feature will prompt the attached clone pod to transfer active genetic mutations from the genetic record to the subject during cloning."}),(0,i.jsx)(x.az,{children:"The cloning process will be slightly slower as a result."})]}),(0,i.jsx)(x.az,{pt:2,children:(0,i.jsx)(x.$n,{textAlign:"center",width:6.7,icon:de?"toggle-on":"toggle-off",color:de?"good":"bad",onClick:function(){return ee("toggleGeneticAnalysis")},children:de?"Enabled":"Disabled"})})]}),!!re&&(0,i.jsxs)(x.wn,{title:"Criminal Rehabilitation Controls",children:[(0,i.jsxs)(x.az,{children:[(0,i.jsx)(x.az,{bold:!0,children:"Notice:"}),(0,i.jsx)(x.az,{children:"Enabling this feature will enable an experimental criminal rehabilitation routine."}),(0,i.jsx)(x.az,{bold:!0,children:"Human use is specifically forbidden by the Space Geneva convention."})]}),(0,i.jsx)(x.az,{pt:2,children:(0,i.jsx)(x.$n,{textAlign:"center",width:6.7,icon:me?"toggle-on":"toggle-off",color:me?"good":"bad",onClick:function(){return ee("mindWipeToggle")},children:me?"Enabled":"Disabled"})})]}),!!ae&&(0,i.jsx)(x.wn,{title:"Disk Controls",buttons:(0,i.jsxs)(i.Fragment,{children:[fe?(0,i.jsx)(x.$n,{icon:"upload",color:"blue",onClick:function(){return ee("load")},children:"Load from disk"}):(0,i.jsx)(x.$n,{icon:"upload",color:"blue",onClick:function(){return ee("loadAndClone")},children:"Clone from disk"}),(0,i.jsx)(x.$n,{icon:"eject",color:"bad",onClick:function(){return ee("eject")},children:"Eject Disk"})]}),children:(0,i.jsxs)(x.az,{children:[(0,i.jsx)(x.In,{color:le?"bad":"good",name:"check"})," "+(le?"Disk is read only.":"Disk is writeable.")]})})]})},Q=function(){var q=(0,w.Oc)(),ee=q.act,oe=q.data,re=oe.scannerLocked,ae=oe.occupantScanned,le=oe.scannerOccupied,de=oe.scannerGone,me=oe.cloningWithRecords,fe=oe.message||{text:"",status:""};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.wn,{title:"Status Messages",height:7,children:fe.text&&(0,i.jsx)(W,{type:fe.status,textColor:"white",height:3.17,align:"center",style:{"vertical-align":"middle","horizontal-align":"middle"},children:(0,i.jsx)(x.az,{style:{position:"relative",left:"50%",top:"50%",transform:"translate(-50%, -50%)"},children:fe.text})})}),(0,i.jsxs)(x.wn,{title:"Scanner Controls",buttons:(0,i.jsx)(x.$n,{width:7,icon:re?"unlock":"lock-open",align:"center",color:re?"bad":"good",onClick:function(){return ee("toggleLock")},children:re?"Locked":"Unlocked"}),children:[!!me&&(!!de||!!ae||!le)&&(0,i.jsxs)(x.az,{children:[(0,i.jsx)(x.In,{color:de||!le?"bad":"good",name:de||!le?"times":"check"})," "+(de?"No scanner detected.":le?"Occupant scanned.":"Scanner has no occupant.")]}),!de&&!ae&&!!le&&!!me&&(0,i.jsx)(x.$n,{width:de?8:7,icon:"dna",align:"center",color:de?"bad":"good",disabled:ae||de,onClick:function(){return ee("scan")},children:"Scan"}),!de&&!!le&&!me&&(0,i.jsx)(x.$n,{icon:"dna",align:"center",color:"good",onClick:function(){return ee("scanAndClone")},children:"Scan & Clone"})]})]})},J=function(q){var ee=q.setDeletionTarget,oe=q.setViewingNote,re=(0,w.Oc)(),ae=re.act,le=re.data,de=le.disk,me=le.diskReadOnly,fe=le.allowedToDelete,ue=le.meatLevels,ye=le.cloneRecords||[];return(0,i.jsxs)(x.so,{direction:"column",height:"100%",children:[(0,i.jsx)(x.so.Item,{children:(0,i.jsx)(x.wn,{mb:0,title:"Records",style:{borderBottom:"2px solid rgba(51, 51, 51, 0.4);"},children:(0,i.jsx)(x.so,{className:"cloning-console__flex__head",children:(0,i.jsxs)(x.so.Item,{className:"cloning-console__head__row",mr:2,children:[(0,i.jsx)(x.so.Item,{className:"cloning-console__head__item",style:{width:"190px"},children:"Name"}),(0,i.jsxs)(x.so.Item,{className:"cloning-console__head__item",style:{width:"160px"},children:[(0,i.jsx)(x.az,{children:"Damage"}),(0,i.jsx)(x.az,{style:{position:"absolute",left:"50%",top:"20%",transform:"translate(-40%, 22px)"},fontSize:"9px",children:"OXY / TOX / BURN / BRUTE"})]}),(0,i.jsx)(x.so.Item,{className:"cloning-console__head__item",style:{width:"180px"},children:"Actions"})]})})})}),(0,i.jsx)(x.so.Item,{grow:1,children:(0,i.jsx)(x.wn,{scrollable:!0,fill:!0,children:(0,i.jsx)(x.so,{children:(0,i.jsx)(x.so.Item,{className:"cloning-console__flex__table",children:(0,i.jsx)(x.so.Item,{children:ye.map(function(Ee){return(0,i.jsxs)(x.so.Item,{className:"cloning-console__body__row",children:[(0,i.jsx)(x.so.Item,{inline:!0,className:"cloning-console__body__item",style:{width:"190px"},children:Ee.name}),(0,i.jsxs)(x.so.Item,{className:"cloning-console__body__item",style:{width:"160px"},children:[(0,i.jsx)(x.BK,{mr:1,color:P(Ee.health.OXY,Ee.health.TOX,Ee.health.BURN,Ee.health.BRUTE)}),Ee.implant&&Ee.health.OXY>=0?(0,i.jsxs)(x.az,{inline:!0,children:[(0,i.jsx)(L.v,{inline:!0,align:"center",type:"oxy",width:2,children:A(Ee.health.OXY)}),"/",(0,i.jsx)(L.v,{inline:!0,align:"center",type:"toxin",width:2,children:A(Ee.health.TOX)}),"/",(0,i.jsx)(L.v,{inline:!0,align:"center",type:"burn",width:2,children:A(Ee.health.BURN)}),"/",(0,i.jsx)(L.v,{inline:!0,align:"center",type:"brute",width:2,children:A(Ee.health.BRUTE)})]}):"No Implant Detected"]}),(0,i.jsxs)(x.so.Item,{align:"baseline",className:"cloning-console__body__item",style:{width:"180px"},children:[!!fe&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.$n,{icon:"trash",color:"bad",onClick:function(){return ee(Ee.id)}}),(0,i.jsx)(x.$n,{icon:"pencil",color:"blue",onClick:function(){return ae("editNote",{id:Ee.id})},tooltip:"Edit note"})]}),!!de&&(0,i.jsxs)(x.$n,{icon:me||Ee.saved?"":"save",color:"blue",textAlign:"center",width:"22px",disabled:Ee.saved||me,onClick:function(){return ae("saveToDisk",{id:Ee.id})},children:[!me&&!!Ee.saved&&(0,i.jsx)(x.In,{color:"black",name:"check"}),!!me&&(0,i.jsxs)(x.In.Stack,{children:[(0,i.jsx)(x.In,{color:"black",name:"pen"}),(0,i.jsx)(x.In,{color:"black",name:"slash"})]})]}),(0,i.jsx)(x.$n,{icon:"dna",color:"good",disabled:!ue.length,onClick:function(){return ae("clone",{id:Ee.id})},children:"Clone"}),!!Ee.note&&(0,i.jsx)(x.$n,{color:"blue",circular:!0,icon:"circle-exclamation",onClick:function(){return oe({note:Ee.note,id:Ee.id})},tooltip:"View note"})]})]},Ee.id)})})})})})})]})},X=function(){var q=(0,w.Oc)().data,ee=q.completion,oe=q.meatLevels,re=q.podNames;return oe.length?oe.map(function(ae,le){return(0,i.jsx)(x.wn,{title:re[le].replace(/cloning pod/,"Cloning Pod")+" Status",children:(0,i.jsxs)(x.Ki,{children:[(0,i.jsx)(x.Ki.Item,{label:"Completion",children:(0,i.jsx)(x.z2,{value:ee[le],maxValue:100,minValue:0,ranges:{good:[90,1/0],average:[25,90],bad:[-1/0,25]}})}),(0,i.jsx)(x.Ki.Item,{label:"Bio-Matter",children:(0,i.jsx)(x.z2,{value:ae,maxValue:100,minValue:0,ranges:{good:[50,100],average:[25,50],bad:[0,25]}})})]})},"pod"+le)}):(0,i.jsx)(x.wn,{title:"Cloning Pod Status",children:(0,i.jsxs)(x.az,{children:[(0,i.jsx)(x.In,{color:"bad",name:"times"})," No Pod Detected"]})})}},4836:function(Y,T,s){"use strict";s.r(T),s.d(T,{BoothGrouping:function(){return _}});var i=s(20462),p=s(65380),x=s(61358),y=s(2686),w=s(65993),L=s(22259);var U=function(C){var O=C.cost_min,A=C.cost_max,S=C.everythingIsFree,P=C.list_icon,R=C.itemsCount,N=C.grouping_tags,W=C.name,V=C.onSelectGrouping,H=C.selected,Q=C.slot,J=(0,p.Ly)(["clothingbooth__boothitem",H&&"clothingbooth__boothitem--selected"]),X=(0,x.useCallback)(function(){return V(W)},[V,W]),q=O===A?""+O+"\u2ABD":O+"\u2ABD - "+A+"\u2ABD",ee=S?(0,i.jsxs)("span",{children:["Free ",(0,i.jsxs)("span",{style:{opacity:"0.5"},children:["(",q,")"]})]}):q;return(0,i.jsxs)(y.BJ,{align:"center",className:J,onClick:X,py:.5,children:[(0,i.jsx)(y.BJ.Item,{children:(0,i.jsx)(w._V,{pixelated:!0,src:"data:image/png;base64,"+P})}),(0,i.jsx)(y.BJ.Item,{grow:1,children:(0,i.jsxs)(y.BJ,{fill:!0,vertical:!0,children:[(0,i.jsx)(y.BJ.Item,{bold:!0,children:(0,i.jsxs)(y.BJ,{children:[(0,i.jsx)(y.BJ.Item,{grow:!0,children:W}),(0,i.jsx)(y.BJ.Item,{children:ee})]})}),(N.length||R>1)&&(0,i.jsx)(y.BJ.Item,{children:(0,i.jsxs)(y.BJ,{style:{opacity:"0.5"},children:[N.length&&(0,i.jsx)(y.BJ.Item,{grow:!0,children:(0,i.jsx)(L.GroupingTags,{slot:Q,grouping_tags:N})}),R>1&&(0,i.jsxs)(y.BJ.Item,{children:[R," variants"]})]})})]})})]})},_=(0,x.memo)(U,function(C,O){if(C.cost_max!==O.cost_max||C.cost_min!==O.cost_min||C.everythingIsFree!==O.everythingIsFree||C.itemsCount!==O.itemsCount||C.list_icon!==O.list_icon||C.name!==O.name||C.onSelectGrouping!==O.onSelectGrouping||C.selected!==O.selected||C.slot!==O.slot||C.grouping_tags.length!==O.grouping_tags.length)return!1;for(var A=0;A0&&"good",onClick:_,children:"Tags"+(S>0?" ("+S+")":"")})}),(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(x.$n,{fluid:!0,align:"center",onClick:U,children:"Clear Slots"})}),(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(x.$n.Checkbox,{fluid:!0,checked:!!O[y.ClothingBoothSlotKey.Mask],onClick:function(){return C(y.ClothingBoothSlotKey.Mask)},children:"Mask"})}),(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(x.$n.Checkbox,{fluid:!0,checked:!!O[y.ClothingBoothSlotKey.Glasses],onClick:function(){return C(y.ClothingBoothSlotKey.Glasses)},children:"Glasses"})}),(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(x.$n.Checkbox,{fluid:!0,checked:!!O[y.ClothingBoothSlotKey.Gloves],onClick:function(){return C(y.ClothingBoothSlotKey.Gloves)},children:"Gloves"})}),(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(x.$n.Checkbox,{fluid:!0,checked:!!O[y.ClothingBoothSlotKey.Headwear],onClick:function(){return C(y.ClothingBoothSlotKey.Headwear)},children:"Headwear"})}),(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(x.$n.Checkbox,{fluid:!0,checked:!!O[y.ClothingBoothSlotKey.Shoes],onClick:function(){return C(y.ClothingBoothSlotKey.Shoes)},children:"Shoes"})}),(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(x.$n.Checkbox,{fluid:!0,checked:!!O[y.ClothingBoothSlotKey.Suit],onClick:function(){return C(y.ClothingBoothSlotKey.Suit)},children:"Suit"})}),(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(x.$n.Checkbox,{fluid:!0,checked:!!O[y.ClothingBoothSlotKey.Uniform],onClick:function(){return C(y.ClothingBoothSlotKey.Uniform)},children:"Uniform"})})]})})}},22259:function(Y,T,s){"use strict";s.r(T),s.d(T,{GroupingTags:function(){return _}});var i=s(20462),p=s(2686),x=s(41910),y=s(59169),w=s(66375);function L(){return L=Object.assign||function(O){for(var A=1;A1&&(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(x.so,{justify:"center",wrap:"wrap",children:Object.values(R.clothingbooth_items).map(function(re){return(0,i.jsx)(x.so.Item,{children:(0,i.jsx)(L.ItemSwatch,U({},re,{selected:Q.name===re.name,onSelect:function(){return oe(re.name)}}))},re.name)})})}),(0,i.jsx)(x.BJ.Item,{bold:!0,children:(0,i.jsx)(x.$n,{color:"good",disabled:Q.cost>q&&!P,onClick:ee,children:(Q.cost>q&&!P?"Insufficent Money":"Purchase")+" ("+(P?"Free":""+Q.cost+" \u2ABD")+")"})})]}):(0,i.jsx)(x.BJ.Item,{bold:!0,children:"Please select an item."})})},C=(0,p.memo)(_)},1177:function(Y,T,s){"use strict";s.r(T),s.d(T,{StockList:function(){return W}});var i=s(20462),p=s(61358),x=s(2686),y=s(27997),w=s(41910),L=s(4836),U=s(87757),_=s(59169),C=s(66375);function O(){return O=Object.assign||function(Q){for(var J=1;J=Ie.cost_min}):de},[q,de,X,J]),fe=(0,p.useMemo)(function(){return Object.values(ee).some(function(Ie){return Ie})},[ee]),ue=(0,p.useMemo)(function(){return fe?me.filter(function(Ie){return ee[Ie.slot]}):me},[me,fe,ee]),ye=(0,p.useMemo)(function(){return!!oe&&Object.values(oe).includes(!0)},[oe]),Ee=(0,p.useMemo)(function(){return ye?ue.filter(function(Ie){return Ie.grouping_tags.some(function(xe){return!!oe[xe]})}):ue},[ye,ue,oe]),se=(0,p.useMemo)(function(){return re?Ee.filter(function(Ie){return Ie.name.toLocaleLowerCase().includes(re)}):Ee},[re,Ee]),pe=(0,p.useMemo)(function(){return P(ae,le)},[le,ae]),ge=(0,p.useMemo)(function(){return[].concat(se).sort(pe)},[se,pe]);return ge},N=function(Q){var J=Q.accountBalance,X=Q.cash,q=Q.catalogue,ee=Q.everythingIsFree,oe=Q.onOpenTagsModal,re=Q.selectedGroupingName,ae=Q.tagFilters,le=(0,w.Oc)().act,de=(X!=null?X:0)+(J!=null?J:0),me=(0,p.useState)(!1),fe=me[0],ue=me[1],ye=(0,p.useState)({}),Ee=ye[0],se=ye[1],pe=(0,p.useCallback)(function(){return se({})},[]),ge=(0,p.useCallback)(function(et){return se(function(at){var gt;return O({},at,(gt={},gt[et]=!at[et],gt))})},[]),Ie=(0,p.useState)(""),xe=Ie[0],Oe=Ie[1],Be=xe.toLocaleLowerCase(),Ke=(0,p.useState)(_.ClothingBoothSortType.Name),ke=Ke[0],Ve=Ke[1],lt=(0,p.useState)(!0),Ye=lt[0],He=lt[1],ft=(0,p.useCallback)(function(et){return le("select-grouping",{name:et})},[le]),Rt=(0,p.useCallback)(function(et){return Ve(et)},[]),Ge=R(q,fe,ee,de,Ee,ae,Be,ke,Ye);return(0,i.jsxs)(x.BJ,{fill:!0,children:[(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(U.FiltersSection,{onClearSlotFilters:pe,onOpenTagsModal:oe,onToggleSlotFilter:ge,slotFilters:Ee,tagFilters:ae})}),(0,i.jsx)(x.BJ.Item,{grow:!0,children:(0,i.jsxs)(x.BJ,{fill:!0,vertical:!0,children:[(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(x.wn,{children:(0,i.jsxs)(x.BJ,{align:"center",justify:"space-between",children:[(0,i.jsx)(x.BJ.Item,{grow:!0,children:(0,i.jsx)(x.pd,{autoFocus:!0,fluid:!0,onInput:function(et,at){return Oe(at)},placeholder:"Search by name..."})}),(0,i.jsx)(x.BJ.Item,{grow:!0,children:(0,i.jsx)(x.ms,{className:"clothingbooth__dropdown",displayText:"Sort: "+ke,onSelected:Rt,options:[_.ClothingBoothSortType.Name,_.ClothingBoothSortType.Price,_.ClothingBoothSortType.Variants],selected:ke,width:"100%"})}),(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(x.$n,{icon:Ye?"arrow-down-short-wide":"arrow-down-wide-short",onClick:function(){return He(!Ye)},tooltip:"Sort Direction: "+(Ye?"Ascending":"Descending")})})]})})}),(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(x.wn,{children:(0,i.jsxs)(x.BJ,{align:"center",justify:"space-between",children:[(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(x.az,{as:"span",style:{opacity:"0.5"},children:Ge.length+" "+(0,y.td)("grouping",Ge.length)+" available"})}),(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(x.$n.Checkbox,{checked:fe,onClick:function(){return ue(!fe)},children:"Hide Unaffordable"})})]})})}),(0,i.jsx)(x.BJ.Item,{grow:!0,children:(0,i.jsx)(H,{everythingIsFree:ee,onSelectGrouping:ft,groupings:Ge,selectedGroupingName:re})})]})})]})},W=(0,p.memo)(N),V=function(Q){var J=Q.everythingIsFree,X=Q.groupings,q=Q.onSelectGrouping,ee=Q.selectedGroupingName;return(0,i.jsx)(x.wn,{fill:!0,scrollable:!0,children:X.map(function(oe,re){return(0,i.jsxs)(p.Fragment,{children:[re>0&&(0,i.jsx)(x.cG,{}),(0,i.jsx)(L.BoothGrouping,O({},oe,{everythingIsFree:J,itemsCount:Object.keys(oe.clothingbooth_items).length,onSelectGrouping:q,selected:ee===oe.name}))]},oe.name)})})},H=(0,p.memo)(V)},82521:function(Y,T,s){"use strict";s.r(T),s.d(T,{TagsModal:function(){return _}});var i=s(20462),p=s(61358),x=s(2686),y=s(65993),w=s(59169),L=s(66375);function U(){return U=Object.assign||function(A){for(var S=1;S=0)&&(ue[Ee]=me[Ee]);return ue}function V(me,fe){return V=Object.setPrototypeOf||function(ye,Ee){return ye.__proto__=Ee,ye},V(me,fe)}var H=function(){var me=(0,_.Oc)().data,fe=me.timeout,ue=me.message,ye=me.title,Ee=me.autofocus,se=me.default_color,pe=se===void 0?"#000000":se,ge=(0,_.Ul)("color_picker_choice",(0,p.RV)(pe)),Ie=ge[0],xe=ge[1];return(0,i.jsxs)(A.p8,{height:400,title:ye,width:600,theme:"generic",children:[!!fe&&(0,i.jsx)(P.Loader,{value:fe}),(0,i.jsx)(A.p8.Content,{children:(0,i.jsxs)(L.BJ,{fill:!0,vertical:!0,children:[ue&&(0,i.jsx)(L.BJ.Item,{m:1,children:(0,i.jsx)(L.wn,{fill:!0,children:(0,i.jsx)(L.az,{color:"label",overflow:"hidden",children:ue})})}),(0,i.jsx)(L.BJ.Item,{grow:!0,children:(0,i.jsxs)(L.wn,{fill:!0,children:[!!Ee&&(0,i.jsx)(L.y5,{}),(0,i.jsx)(Q,{color:Ie,setColor:xe,defaultColor:pe})]})}),(0,i.jsx)(L.BJ.Item,{children:(0,i.jsx)(S.InputButtons,{input:(0,p.D9)(Ie)})})]})})]})},Q=function(me,fe){var ue=me.color,ye=me.setColor,Ee=me.defaultColor,se=function(Ie){ye(function(xe){return Object.assign({},xe,Ie)})},pe=(0,p.ss)(ue),ge=(0,p.D9)(ue);return(0,i.jsxs)(L.so,{direction:"row",children:[(0,i.jsx)(L.so.Item,{mr:2,children:(0,i.jsxs)(L.BJ,{vertical:!0,children:[(0,i.jsx)(L.BJ.Item,{children:(0,i.jsxs)("div",{className:"react-colorful",children:[(0,i.jsx)(oe,{hsva:ue,onChange:se}),(0,i.jsx)(re,{hue:ue.h,onChange:se,className:"react-colorful__last-control"})]})}),(0,i.jsxs)(L.BJ.Item,{children:[(0,i.jsx)(L.az,{inline:!0,width:"100px",height:"20px",textAlign:"center",children:"Current"}),(0,i.jsx)(L.az,{inline:!0,width:"100px",height:"20px",textAlign:"center",children:"Previous"}),(0,i.jsx)("br",{}),(0,i.jsx)(L.m_,{content:ge,position:"bottom",children:(0,i.jsx)(L.az,{inline:!0,width:"100px",height:"30px",backgroundColor:ge})}),(0,i.jsx)(L.m_,{content:Ee,position:"bottom",children:(0,i.jsx)(L.az,{inline:!0,width:"100px",height:"30px",backgroundColor:Ee})})]})]})}),(0,i.jsx)(L.so.Item,{grow:!0,fontSize:"15px",lineHeight:"24px",children:(0,i.jsxs)(L.BJ,{vertical:!0,children:[(0,i.jsx)(L.BJ.Item,{children:(0,i.jsxs)(L.BJ,{children:[(0,i.jsx)(L.BJ.Item,{children:(0,i.jsx)(L.az,{textColor:"label",children:"Hex:"})}),(0,i.jsx)(L.BJ.Item,{grow:!0,height:"24px",children:(0,i.jsx)(q,{fluid:!0,color:(0,p.D9)(ue).substring(1),onChange:function(Ie){w.v.info(Ie),ye((0,p.RV)(Ie))},prefixed:!0})})]})}),(0,i.jsx)(L.BJ.Divider,{}),(0,i.jsx)(L.BJ.Item,{children:(0,i.jsxs)(L.BJ,{children:[(0,i.jsx)(L.BJ.Item,{width:"25px",children:(0,i.jsx)(L.az,{textColor:"label",children:"H:"})}),(0,i.jsx)(L.BJ.Item,{grow:!0,children:(0,i.jsx)(re,{hue:ue.h,onChange:se})}),(0,i.jsx)(L.BJ.Item,{children:(0,i.jsx)(J,{value:ue.h,callback:function(Ie,xe){return se({h:xe})},max:360,unit:"\xB0"})})]})}),(0,i.jsx)(L.BJ.Item,{children:(0,i.jsxs)(L.BJ,{children:[(0,i.jsx)(L.BJ.Item,{width:"25px",children:(0,i.jsx)(L.az,{textColor:"label",children:"S:"})}),(0,i.jsx)(L.BJ.Item,{grow:!0,children:(0,i.jsx)(ae,{color:ue,onChange:se})}),(0,i.jsx)(L.BJ.Item,{children:(0,i.jsx)(J,{value:ue.s,callback:function(Ie,xe){return se({s:xe})},unit:"%"})})]})}),(0,i.jsx)(L.BJ.Item,{children:(0,i.jsxs)(L.BJ,{children:[(0,i.jsx)(L.BJ.Item,{width:"25px",children:(0,i.jsx)(L.az,{textColor:"label",children:"V:"})}),(0,i.jsx)(L.BJ.Item,{grow:!0,children:(0,i.jsx)(le,{color:ue,onChange:se})}),(0,i.jsx)(L.BJ.Item,{children:(0,i.jsx)(J,{value:ue.v,callback:function(Ie,xe){return se({v:xe})},unit:"%"})})]})}),(0,i.jsx)(L.BJ.Divider,{}),(0,i.jsx)(L.BJ.Item,{children:(0,i.jsxs)(L.BJ,{children:[(0,i.jsx)(L.BJ.Item,{width:"25px",children:(0,i.jsx)(L.az,{textColor:"label",children:"R:"})}),(0,i.jsx)(L.BJ.Item,{grow:!0,children:(0,i.jsx)(de,{color:ue,onChange:se,target:"r"})}),(0,i.jsx)(L.BJ.Item,{children:(0,i.jsx)(J,{value:pe.r,callback:function(Ie,xe){pe.r=xe,se((0,p.SX)(pe))},max:255})})]})}),(0,i.jsx)(L.BJ.Item,{children:(0,i.jsxs)(L.BJ,{children:[(0,i.jsx)(L.BJ.Item,{width:"25px",children:(0,i.jsx)(L.az,{textColor:"label",children:"G:"})}),(0,i.jsx)(L.BJ.Item,{grow:!0,children:(0,i.jsx)(de,{color:ue,onChange:se,target:"g"})}),(0,i.jsx)(L.BJ.Item,{children:(0,i.jsx)(J,{value:pe.g,callback:function(Ie,xe){pe.g=xe,se((0,p.SX)(pe))},max:255})})]})}),(0,i.jsx)(L.BJ.Item,{children:(0,i.jsxs)(L.BJ,{children:[(0,i.jsx)(L.BJ.Item,{width:"25px",children:(0,i.jsx)(L.az,{textColor:"label",children:"B:"})}),(0,i.jsx)(L.BJ.Item,{grow:!0,children:(0,i.jsx)(de,{color:ue,onChange:se,target:"b"})}),(0,i.jsx)(L.BJ.Item,{children:(0,i.jsx)(J,{value:pe.b,callback:function(Ie,xe){pe.b=xe,se((0,p.SX)(pe))},max:255})})]})})]})})]})},J=function(me){var fe=me.value,ue=me.callback,ye=me.min,Ee=ye===void 0?0:ye,se=me.max,pe=se===void 0?100:se,ge=me.unit;return(0,i.jsx)(L.Q7,{width:"70px",value:Math.round(fe),step:1,minValue:Ee,maxValue:pe,onChange:ue,unit:ge})},X=function(me){return"#"+me},q=function(me){var fe=me.prefixed,ue=me.alpha,ye=me.color,Ee=me.fluid,se=me.onChange,pe=W(me,["prefixed","alpha","color","fluid","onChange"]),ge=function(xe){return xe.replace(/([^0-9A-F]+)/gi,"").substring(0,ue?8:6)},Ie=function(xe){return(0,p.Am)(xe,ue)};return(0,i.jsx)(ee,R({},pe,{fluid:Ee,color:ye,onChange:se,escape:ge,format:fe?X:void 0,validate:Ie}))},ee=function(me){"use strict";N(fe,me);function fe(ye){var Ee;return Ee=me.call(this,ye)||this,Ee.handleInput=function(se){var pe=Ee.props.escape(se.currentTarget.value);Ee.setState({localValue:pe})},Ee.handleBlur=function(se){se.currentTarget&&(Ee.props.validate(se.currentTarget.value)?Ee.props.onChange(Ee.props.escape?Ee.props.escape(se.currentTarget.value):se.currentTarget.value):Ee.setState({localValue:Ee.props.escape(Ee.props.color)}))},Ee.props=ye,Ee.state={localValue:Ee.props.escape(Ee.props.color)},Ee}var ue=fe.prototype;return ue.componentDidUpdate=function(Ee,se){Ee.color!==this.props.color&&this.setStateValue()},ue.setStateValue=function(){this.setState({localValue:this.props.escape(this.props.color)})},ue.render=function(){return(0,i.jsxs)(L.az,{className:(0,x.Ly)(["Input",this.props.fluid&&"Input--fluid"]),children:[(0,i.jsx)("div",{className:"Input__baseline",children:"."}),(0,i.jsx)("input",{className:"Input__input",value:this.props.format?this.props.format(this.state.localValue):this.state.localValue,onInput:this.handleInput,onBlur:this.handleBlur})]})},fe}(y.Component),oe=function(me){var fe=me.hsva,ue=me.onChange,ye=function(pe){ue({s:pe.left*100,v:100-pe.top*100})},Ee=function(pe){ue({s:(0,U.qE)(fe.s+pe.left*100,0,100),v:(0,U.qE)(fe.v-pe.top*100,0,100)})},se={backgroundColor:""+(0,p.QC)({h:fe.h,s:100,v:100,a:1})+" !important"};return(0,i.jsx)("div",{className:"react-colorful__saturation_value",style:se,children:(0,i.jsx)(O.H,{onMove:ye,onKey:Ee,"aria-label":"Color","aria-valuetext":"Saturation "+Math.round(fe.s)+"%, Brightness "+Math.round(fe.v)+"%",children:(0,i.jsx)(C.gm,{className:"react-colorful__saturation_value-pointer",top:1-fe.v/100,left:fe.s/100,color:(0,p.QC)(fe)})})})},re=function(me){var fe=me.className,ue=me.hue,ye=me.onChange,Ee=function(ge){ye({h:360*ge.left})},se=function(ge){ye({h:(0,U.qE)(ue+ge.left*360,0,360)})},pe=(0,x.Ly)(["react-colorful__hue",fe]);return(0,i.jsx)("div",{className:pe,children:(0,i.jsx)(O.H,{onMove:Ee,onKey:se,"aria-label":"Hue","aria-valuenow":Math.round(ue),"aria-valuemax":"360","aria-valuemin":"0",children:(0,i.jsx)(C.gm,{className:"react-colorful__hue-pointer",left:ue/360,color:(0,p.QC)({h:ue,s:100,v:100,a:1})})})})},ae=function(me){var fe=me.className,ue=me.color,ye=me.onChange,Ee=function(ge){ye({s:100*ge.left})},se=function(ge){ye({s:(0,U.qE)(ue.s+ge.left*100,0,100)})},pe=(0,x.Ly)(["react-colorful__saturation",fe]);return(0,i.jsx)("div",{className:pe,children:(0,i.jsx)(O.H,{style:{background:"linear-gradient(to right, "+(0,p.QC)({h:ue.h,s:0,v:ue.v,a:1})+", "+(0,p.QC)({h:ue.h,s:100,v:ue.v,a:1})+")"},onMove:Ee,onKey:se,"aria-label":"Saturation","aria-valuenow":Math.round(ue.s),"aria-valuemax":"100","aria-valuemin":"0",children:(0,i.jsx)(C.gm,{className:"react-colorful__saturation-pointer",left:ue.s/100,color:(0,p.QC)({h:ue.h,s:ue.s,v:ue.v,a:1})})})})},le=function(me){var fe=me.className,ue=me.color,ye=me.onChange,Ee=function(ge){ye({v:100*ge.left})},se=function(ge){ye({v:(0,U.qE)(ue.v+ge.left*100,0,100)})},pe=(0,x.Ly)(["react-colorful__value",fe]);return(0,i.jsx)("div",{className:pe,children:(0,i.jsx)(O.H,{style:{background:"linear-gradient(to right, "+(0,p.QC)({h:ue.h,s:ue.s,v:0,a:1})+", "+(0,p.QC)({h:ue.h,s:ue.s,v:100,a:1})+")"},onMove:Ee,onKey:se,"aria-label":"Value","aria-valuenow":Math.round(ue.s),"aria-valuemax":"100","aria-valuemin":"0",children:(0,i.jsx)(C.gm,{className:"react-colorful__value-pointer",left:ue.v/100,color:(0,p.QC)({h:ue.h,s:ue.s,v:ue.v,a:1})})})})},de=function(me){var fe=me.className,ue=me.color,ye=me.onChange,Ee=me.target,se=(0,p.ss)(ue),pe=function(Be){se[Ee]=Be,ye((0,p.SX)(se))},ge=function(Be){pe(255*Be.left)},Ie=function(Be){pe((0,U.qE)(se[Ee]+Be.left*255,0,255))},xe=(0,x.Ly)(["react-colorful__"+Ee,fe]),Oe=Ee==="r"?"rgb("+Math.round(se.r)+",0,0)":Ee==="g"?"rgb(0,"+Math.round(se.g)+",0)":"rgb(0,0,"+Math.round(se.b)+")";return(0,i.jsx)("div",{className:xe,children:(0,i.jsx)(O.H,{onMove:ge,onKey:Ie,"aria-valuenow":se[Ee],"aria-valuemax":"100","aria-valuemin":"0",children:(0,i.jsx)(C.gm,{className:"react-colorful__"+Ee+"-pointer",left:se[Ee]/255,color:Oe})})})}},34575:function(Y,T,s){"use strict";s.r(T),s.d(T,{ComUplink:function(){return L}});var i=s(20462),p=s(2686),x=s(27997),y=s(41910),w=s(66272);var L=function(){var _=(0,y.Oc)().data;return(0,i.jsx)(w.p8,{theme:"syndicate",title:"Syndicate Commander Uplink",width:500,height:500,children:(0,i.jsxs)(w.p8.Content,{scrollable:!0,children:[(0,i.jsx)(p.BJ,{className:"ComUplink"}),(0,i.jsx)(p.BJ.Item,{children:(0,i.jsx)(p.wn,{fill:!0,children:(0,i.jsx)(p.Ki,{children:(0,i.jsx)(p.Ki.Item,{label:"Points",children:(0,i.jsx)(p.az,{inline:!0,bold:!0,color:"green",mr:"5px",className:"ComUplink__Points--commander",children:_.points},_.points)})})})}),(0,i.jsxs)(p.BJ.Item,{grow:1,children:[(0,i.jsx)(p.wn,{fill:!0,scrollable:!0,title:"Uplink Items"}),(0,i.jsx)(p.Nt,{className:"ComUplink__Category--Main",title:"Equipment",open:!0,color:"Main",children:(0,i.jsx)(p.XI,{children:_.stock.filter(function(C){return C.category==="Main"}).map(function(C){return(0,i.jsx)(U,{stock:C},C.name)})})})]})]})})},U=function(_){var C=_.stock,O=(0,y.Oc)(),A=O.data,S=O.act;return(0,i.jsxs)(p.XI.Row,{className:"ComUplink__Row",opacity:C.cost>A.points[C.category]?.5:1,children:[(0,i.jsxs)(p.XI.Cell,{className:"ComUplink__Cell",py:"5px",children:[(0,i.jsx)(p.az,{mb:"5px",bold:!0,children:C.name}),(0,i.jsx)(p.az,{children:C.description})]}),(0,i.jsx)(p.XI.Cell,{className:"ComUplink__Cell",py:"5px",textAlign:"right",children:(0,i.jsxs)(p.$n,{disabled:C.cost>A.points,onClick:function(){return S("redeem",{ref:C.ref})},children:["Purchase ",C.cost," ",(0,x.td)("point",C.cost)]})})]})}},30665:function(Y,T,s){"use strict";s.r(T);},38673:function(Y,T,s){"use strict";s.r(T),s.d(T,{ContributorRewards:function(){return w}});var i=s(20462),p=s(2686),x=s(41910),y=s(66272);var w=function(){var L=(0,x.Oc)(),U=L.act,_=L.data,C=_.rewardTitles,O=_.rewardDescs;return(0,i.jsx)(y.p8,{title:"Contributor Rewards",width:350,height:200,children:(0,i.jsxs)(y.p8.Content,{scrollable:!0,children:["Howdy, contributor! These rewards don't revert until you respawn somehow.",(0,i.jsx)(p.wn,{children:(0,i.jsx)(p.az,{children:C.map(function(A,S){return(0,i.jsxs)(p.Nt,{title:C[S],open:!0,children:[O[S],(0,i.jsx)(p.$n,{ml:1,icon:"check-circle",onClick:function(){return U("redeem",{reward_idx:S+1})},children:"Redeem"})]},S)})})})]})})}},26922:function(Y,T,s){"use strict";s.r(T),s.d(T,{AntagonistsTab:function(){return L}});var i=s(20462),p=s(2686),x=s(41910),y=s(65993);function w(){return w=Object.assign||function(W){for(var V=1;V0&&(0,i.jsx)(w,{title:C.title,crew:C.crew},O)})})},w=function(U){var _=U.title,C=U.crew,O=C==null?void 0:C.filter(function(S){return S.head}),A=C==null?void 0:C.filter(function(S){return!S.head});return(0,i.jsx)(p.wn,{title:_,children:(0,i.jsxs)(p.BJ,{fill:!0,vertical:!0,children:[O==null?void 0:O.map(function(S,P){return(0,i.jsx)(L,{real_name:S.real_name,dead:S.dead,player:S.player,role:S.role,head:!0},"head"+P)}),A==null?void 0:A.map(function(S,P){return(0,i.jsx)(L,{real_name:S.real_name,dead:S.dead,player:S.player,role:S.role},P)})]})})},L=function(U){var _=U.real_name,C=U.dead,O=U.player,A=U.role,S=U.head;return(0,i.jsx)(p.BJ.Item,{children:(0,i.jsxs)(p.BJ,{fill:!0,bold:S,justify:"space-between",children:[(0,i.jsx)(p.BJ.Item,{grow:!0,children:A}),(0,i.jsxs)(p.BJ.Item,{shrink:!0,textAlign:"right",children:[!!C&&(0,i.jsx)(p.In,{name:"skull"})," ",_," (played by ",O,")"]})]})})}},65657:function(Y,T,s){"use strict";s.r(T),s.d(T,{ScoreTab:function(){return L}});var i=s(20462),p=s(2686),x=s(41910),y=s(65993);function w(){return w=Object.assign||function(P){for(var R=1;R100&&(N="teal"),(0,i.jsxs)(p.az,{color:N,children:[R,"%"]})},S={itemList:y.kk,colorPercent:A}},1668:function(Y,T,s){"use strict";s.r(T),s.d(T,{CrewCredits:function(){return O}});var i=s(20462),p=s(61358),x=s(2686),y=s(66272),w=s(26922),L=s(425),U=s(1796),_=s(65657),C=s(41318);var O=function(){var A=(0,p.useState)(C.CrewCreditsTabKeys.Crew),S=A[0],P=A[1];return(0,i.jsx)(y.p8,{title:"Round Summary",width:600,height:600,children:(0,i.jsx)(y.p8.Content,{scrollable:!0,children:(0,i.jsxs)(x.BJ,{vertical:!0,fill:!0,children:[(0,i.jsx)(x.BJ.Item,{children:(0,i.jsxs)(x.tU,{children:[(0,i.jsx)(x.tU.Tab,{selected:S===C.CrewCreditsTabKeys.Crew,onClick:function(){return P(C.CrewCreditsTabKeys.Crew)},children:"Crew Credits"}),(0,i.jsx)(x.tU.Tab,{selected:S===C.CrewCreditsTabKeys.Antagonists,onClick:function(){return P(C.CrewCreditsTabKeys.Antagonists)},children:"Antagonists"}),(0,i.jsx)(x.tU.Tab,{selected:S===C.CrewCreditsTabKeys.Score,onClick:function(){return P(C.CrewCreditsTabKeys.Score)},children:"Station Score"}),(0,i.jsx)(x.tU.Tab,{selected:S===C.CrewCreditsTabKeys.Citations,onClick:function(){return P(C.CrewCreditsTabKeys.Citations)},children:"Tickets/Fines"})]})}),(0,i.jsxs)(x.BJ.Item,{children:[S===C.CrewCreditsTabKeys.Crew&&(0,i.jsx)(U.CrewTab,{}),S===C.CrewCreditsTabKeys.Antagonists&&(0,i.jsx)(w.AntagonistsTab,{}),S===C.CrewCreditsTabKeys.Score&&(0,i.jsx)(_.ScoreTab,{}),S===C.CrewCreditsTabKeys.Citations&&(0,i.jsx)(L.CitationsTab,{})]})]})})})}},41318:function(Y,T,s){"use strict";s.r(T),s.d(T,{CrewCreditsTabKeys:function(){return i},isFineData:function(){return p}});var i=function(x){return x[x.Crew=0]="Crew",x[x.Antagonists=1]="Antagonists",x[x.Score=2]="Score",x[x.Citations=3]="Citations",x}({}),p=function(x){return"amount"in x}},31123:function(Y,T,s){"use strict";s.r(T),s.d(T,{Beaker:function(){return P},CryoCell:function(){return O}});var i=s(20462),p=s(2686),x=s(41910),y=s(3250),w=s(66272),L=s(4870),U=s(53194),_=s(15180),C=s(11249);var O=function(){return(0,i.jsx)(w.p8,{width:485,height:575,children:(0,i.jsxs)(w.p8.Content,{scrollable:!0,children:[(0,i.jsx)(A,{}),(0,i.jsx)(S,{}),(0,i.jsx)(P,{})]})})},A=function(){var R=(0,x.Oc)(),N=R.act,W=R.data,V=W.cellTemp,H=W.status;return(0,i.jsx)(p.wn,{title:"Cryo Cell Control System",children:(0,i.jsxs)(p.az,{textAlign:"center",children:["Current Cell Temperature",(0,i.jsxs)(p.az,{fontSize:2,color:(0,C.getTemperatureColor)(V),mb:"1rem",children:[(0,i.jsx)(p.In,{name:(0,C.getTemperatureIcon)(V),pr:.5}),(0,i.jsx)(p.zv,{value:V-273.15,format:function(Q){return Q.toPrecision(4)}}),"\xB0C"]}),(0,i.jsx)(p.$n,{icon:"power-off",color:H?"green":"red",fontSize:1.25,textAlign:"center",onClick:function(){return N("start")},children:H?"Activated":"Deactivated"})]})})},S=function(){var R=(0,x.Oc)(),N=R.act,W=R.data,V=W.occupant,H=W.reagentScanEnabled,Q=W.reagentScanActive,J=W.hasDefib,X=V?U.MobStatuses[V.occupantStat]:null;return(0,i.jsxs)(p.wn,{title:"Occupant",buttons:(0,i.jsxs)(i.Fragment,{children:[!!H&&(0,i.jsxs)(p.$n,{onClick:function(){return N("reagent_scan_active")},icon:Q?"eye-slash":"eye",children:[Q?"Hide":"Show"," Reagents"]}),J&&(0,i.jsx)(p.$n,{onClick:function(){return N("defib")},icon:"bolt",color:"yellow",children:"Defibrillate"}),(0,i.jsx)(p.$n,{onClick:function(){return N("eject_occupant")},icon:"eject",disabled:!V,color:"green",children:"Eject"})]}),children:[!!V&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(p.Ki,{children:[!!X&&(0,i.jsxs)(p.Ki.Item,{label:"Status",children:[(0,i.jsx)(p.In,{color:X.color,name:X.icon})," "+X.name]}),(0,i.jsx)(p.Ki.Item,{label:"Overall Health",children:(0,i.jsx)(p.z2,{value:V.health,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,i.jsxs)(p.Ki.Item,{label:"Damage Breakdown",children:[(0,i.jsx)(y.v,{inline:!0,align:"center",type:"oxy",width:5,children:(0,y.U)(V.oxyDamage)}),"/",(0,i.jsx)(y.v,{inline:!0,align:"center",type:"toxin",width:5,children:(0,y.U)(V.toxDamage)}),"/",(0,i.jsx)(y.v,{inline:!0,align:"center",type:"burn",width:5,children:(0,y.U)(V.burnDamage)}),"/",(0,i.jsx)(y.v,{inline:!0,align:"center",type:"brute",width:5,children:(0,y.U)(V.bruteDamage)})]})]}),(0,i.jsxs)(p.wn,{title:"Key Health Indicators",mt:"0.5rem",children:[(0,i.jsx)(L.KeyHealthIndicators,{mobData:V}),!!V.hasRoboticOrgans&&(0,i.jsx)(p.az,{textAlign:"center",children:(0,i.jsx)(p.az,{bold:!0,fontSize:1.2,color:"purple",children:"Unknown augmented organs detected."})})]})]}),V&&V.reagents&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(_.ReagentGraph,{container:V.reagents,mt:"0.5rem"}),(0,i.jsx)(_.ReagentList,{container:V.reagents})]}),!V&&(0,i.jsx)("em",{children:"Unoccupied"})]})},P=function(){var R=(0,x.Oc)(),N=R.act,W=R.data,V=W.showBeakerContents,H=W.containerData;return(0,i.jsx)(p.wn,{title:"Beaker",buttons:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(p.$n,{onClick:function(){return N("show_beaker_contents")},icon:V?"eye-slash":"eye",children:[V?"Hide":"Show"," Contents"]}),(0,i.jsx)(p.$n,{onClick:function(){return N("eject")},icon:"eject",disabled:!H,color:"green",children:"Eject"})]}),children:!!V&&(0,i.jsxs)(i.Fragment,{children:[H&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(_.ReagentGraph,{container:H}),(0,i.jsx)(_.ReagentList,{container:H}),(0,i.jsxs)(p.az,{fontSize:2,color:(0,C.getTemperatureColor)(H.temperature),textAlign:"center",children:[(0,i.jsx)(p.In,{name:(0,C.getTemperatureIcon)(H.temperature),pr:.5}),(0,i.jsx)(p.zv,{value:H.temperature})," K"]})]}),!H&&(0,i.jsx)(p.Rr,{height:"5rem",children:(0,i.jsx)(p.$n,{icon:"eject",fontSize:1.5,onClick:function(){return N("insert")},bold:!0,children:"Insert Beaker"})})]})})}},99127:function(Y,T,s){"use strict";s.r(T),s.d(T,{CellChargeBar:function(){return x}});var i=s(20462),p=s(2686);var x=function(y){var w=y.cell,L=w.current/w.max;return(0,i.jsx)(p.m_,{position:"bottom",content:Math.floor(w.current)+"/"+w.max,children:(0,i.jsxs)(p.z2,{position:"relative",value:L,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[Math.floor(L*100),"%"]})})}},79351:function(Y,T,s){"use strict";s.r(T),s.d(T,{DockingAllowedButton:function(){return L}});var i=s(20462),p=s(2686),x=s(41910);function y(){return y=Object.assign||function(U){for(var _=1;_=0)&&(C[A]=U[A]);return C}var L=function(U){var _=U.disabled,C=w(U,["disabled"]),O=(0,x.Oc)().data;return(0,i.jsx)(p.$n,y({disabled:_||O.disabled},C))}},33492:function(Y,T,s){"use strict";s.r(T),s.d(T,{EyebotStatusView:function(){return y}});var i=s(20462),p=s(2686),x=s(99127);var y=function(w){var L=w.occupant;return(0,i.jsx)(p.Ki,{children:(0,i.jsx)(p.Ki.Item,{label:L.cell.name,children:(0,i.jsx)(x.CellChargeBar,{cell:L.cell})})})}},50817:function(Y,T,s){"use strict";s.r(T),s.d(T,{HumanStatusView:function(){return x}});var i=s(20462),p=s(2686);var x=function(y){var w=y.occupant,L=w.health,U=w.max_health;return(0,i.jsx)(p.Ki,{children:(0,i.jsx)(p.Ki.Item,{label:"Converting",children:(0,i.jsxs)(p.z2,{value:(U-L)/U,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[Math.floor((U-L)/U*100),"%"]})})})}},12002:function(Y,T,s){"use strict";s.r(T),s.d(T,{OccupantCellDisplay:function(){return w}});var i=s(20462),p=s(2686),x=s(99127),y=s(79351);var w=function(L){var U=L.cell,_=L.onRemoveCell;return(0,i.jsx)(p.Ki.Item,{label:"Power Cell",color:U?"white":"red",buttons:(0,i.jsx)(y.DockingAllowedButton,{onClick:_,icon:"minus",tooltip:"Remove the occupant's power cell",disabled:!U}),children:U?(0,i.jsx)(x.CellChargeBar,{cell:U}):(0,i.jsx)(p.az,{bold:!0,children:"No Power Cell Installed"})})}},70544:function(Y,T,s){"use strict";s.r(T),s.d(T,{ClothingReportSection:function(){return y}});var i=s(20462),p=s(2686),x=s(79351);var y=function(w){var L=w.clothes,U=w.onRemoveClothing;return(0,i.jsx)(p.wn,{title:"Clothing",children:L.length>0?L.map(function(_){return(0,i.jsxs)(p.az,{children:[_.name,(0,i.jsx)(x.DockingAllowedButton,{onClick:function(){return U(_.ref)},icon:"minus-circle",color:"transparent",tooltip:"Remove from occupant"})]},_.ref)}):(0,i.jsx)(p.az,{children:"No Clothing"})})}},43585:function(Y,T,s){"use strict";s.r(T),s.d(T,{DamageReportSection:function(){return L}});var i=s(20462),p=s(2686),x=s(79500),y=s(79351),w=s(68838);var L=function(_){var C=_.cabling,O=_.fuel,A=_.parts,S=_.onRepairStructure,P=_.onRepairWiring;return(0,i.jsx)(p.wn,{title:"Damage Report",buttons:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(y.DockingAllowedButton,{disabled:O<1,icon:"wrench",backgroundColor:x.lm.damageType.brute,tooltip:"Fix structural damage",onClick:S}),(0,i.jsx)(y.DockingAllowedButton,{disabled:C<1,icon:"fire",backgroundColor:x.lm.damageType.burn,tooltip:"Fix wiring damage",onClick:P})]}),children:(0,i.jsxs)(p.Ki,{children:[(0,i.jsx)(U,{label:"Head",partData:A.head}),(0,i.jsx)(U,{label:"Chest",partData:A.chest}),(0,i.jsx)(U,{label:"Left Arm",partData:A.arm_l}),(0,i.jsx)(U,{label:"Right Arm",partData:A.arm_r}),(0,i.jsx)(U,{label:"Left Leg",partData:A.leg_l}),(0,i.jsx)(U,{label:"Right Leg",partData:A.leg_r})]})})},U=function(_){var C=_.label,O=_.partData;if(!(0,w.isPresentPartsData)(O))return(0,i.jsx)(p.Ki.Item,{color:"red",label:C,children:(0,i.jsx)(p.az,{bold:!0,children:"MISSING!"})});var A=Math.floor(O.dmg_blunt/O.max_health*100),S=Math.floor(O.dmg_burns/O.max_health*100);return A||S?(0,i.jsx)(p.Ki.Item,{label:C,children:(0,i.jsxs)(p.so,{children:[(0,i.jsx)(p.so.Item,{grow:1,children:(0,i.jsxs)(p.so,{children:[(0,i.jsx)(p.so.Item,{backgroundColor:x.lm.damageType.brute,width:A+"%"}),(0,i.jsx)(p.so.Item,{backgroundColor:x.lm.damageType.burn,width:S+"%"}),(0,i.jsx)(p.so.Item,{grow:1,backgroundColor:"#000000",stretch:!0,children:"\xA0"})]})}),(0,i.jsx)(p.so.Item,{shrink:!0,children:(0,i.jsxs)(p.so,{children:[(0,i.jsx)(p.so.Item,{shrink:!0,width:"25px",backgroundColor:"#330000",color:x.lm.damageType.brute,bold:!0,children:(0,i.jsx)(p.az,{textAlign:"center",children:A>0?A:"--"})}),(0,i.jsx)(p.so.Item,{shrink:!0,width:"25px",backgroundColor:"#331100",color:x.lm.damageType.burn,bold:!0,children:(0,i.jsx)(p.az,{textAlign:"center",children:S>0?S:"--"})})]})})]})}):null}},57166:function(Y,T,s){"use strict";s.r(T),s.d(T,{DecorationReportSection:function(){return y}});var i=s(20462),p=s(2686),x=s(79351);var y=function(w){var L=w.cosmetics,U=w.onChangeCosmetic,_=w.onChangePaintCosmetic,C=U.head,O=U.chest,A=U.arms,S=U.legs,P=U.eyeGlow,R=_.add,N=_.change,W=_.remove;return(0,i.jsx)(p.wn,{title:"Decoration",children:(0,i.jsxs)(p.Ki,{children:[(0,i.jsx)(p.Ki.Item,{label:"Head",buttons:(0,i.jsx)(x.DockingAllowedButton,{icon:"sync-alt",tooltip:"Change head decoration",onClick:C}),children:L.head||"None"}),(0,i.jsx)(p.Ki.Item,{label:"Chest",buttons:(0,i.jsx)(x.DockingAllowedButton,{icon:"sync-alt",tooltip:"Change chest decoration",onClick:O}),children:L.chest||"None"}),(0,i.jsx)(p.Ki.Item,{label:"Arms",buttons:(0,i.jsx)(x.DockingAllowedButton,{icon:"sync-alt",tooltip:"Change arms decoration",onClick:A}),children:L.arms||"None"}),(0,i.jsx)(p.Ki.Item,{label:"Legs",buttons:(0,i.jsx)(x.DockingAllowedButton,{icon:"sync-alt",tooltip:"Change legs decoration",onClick:S}),children:L.legs||"None"}),(0,i.jsx)(p.Ki.Item,{label:"Paint",buttons:(0,i.jsxs)(i.Fragment,{children:[!L.paint&&(0,i.jsx)(x.DockingAllowedButton,{icon:"plus",tooltip:"Add paint",onClick:R}),L.paint&&(0,i.jsx)(x.DockingAllowedButton,{icon:"tint",tooltip:"Change colour",onClick:N}),L.paint&&(0,i.jsx)(x.DockingAllowedButton,{icon:"minus",tooltip:"Remove paint",onClick:W})]}),children:L.paint?(0,i.jsx)(p.BK,{color:L.paint}):"No paint applied"}),(0,i.jsx)(p.Ki.Item,{label:"Eyes",buttons:(0,i.jsx)(x.DockingAllowedButton,{icon:"tint",tooltip:"Change eye glow",onClick:P}),children:(0,i.jsx)(p.BK,{color:"rgb("+L.fx[0]+","+L.fx[1]+","+L.fx[2]+")"})})]})})}},80480:function(Y,T,s){"use strict";s.r(T),s.d(T,{UpgradeReportSection:function(){return y}});var i=s(20462),p=s(2686),x=s(79351);var y=function(w){var L=w.onRemoveUpgrade,U=w.upgrades,_=w.upgrades_max,C="Upgrades ("+U.length+" / "+_+" installed)";return(0,i.jsx)(p.wn,{title:C,children:U.map(function(O){return(0,i.jsxs)(p.BJ,{children:[(0,i.jsx)(p.BJ.Item,{children:O.name}),(0,i.jsx)(p.BJ.Item,{children:(0,i.jsx)(x.DockingAllowedButton,{compact:!0,icon:"minus-circle",color:"transparent",tooltip:"Remove "+O.name,onClick:function(){return L(O.ref)}})})]},O.ref)})})}},71103:function(Y,T,s){"use strict";s.r(T),s.d(T,{RobotStatusView:function(){return C}});var i=s(20462),p=s(2686),x=s(79351),y=s(12002),w=s(70544),L=s(43585),U=s(57166),_=s(80480);var C=function(O){var A=O.cabling,S=O.fuel,P=O.occupant,R=O.act,N=P.cell,W=P.moduleName,V=P.upgrades,H=P.upgrades_max,Q=P.parts,J=function(){return R("cell-remove")},X=function(){return R("module-remove")},q=function(me){return R("upgrade-remove",{upgradeRef:me})},ee=function(){return R("repair-fuel")},oe=function(){return R("repair-wiring")},re=function(me){return R("clothing-remove",{clothingRef:me})},ae={head:function(){return R("cosmetic-change-head")},chest:function(){return R("cosmetic-change-chest")},arms:function(){return R("cosmetic-change-arms")},legs:function(){return R("cosmetic-change-legs")},eyeGlow:function(){return R("occupant-fx")}},le={add:function(){return R("occupant-paint-add")},change:function(){return R("occupant-paint-change")},remove:function(){return R("occupant-paint-remove")}},de=!!W;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(p.Ki,{children:[(0,i.jsx)(y.OccupantCellDisplay,{cell:N,onRemoveCell:J}),(0,i.jsx)(p.Ki.Item,{label:"Module",buttons:(0,i.jsx)(x.DockingAllowedButton,{onClick:X,icon:"minus",tooltip:"Remove the occupant's module",disabled:!de}),children:W||(0,i.jsx)(p.az,{as:"span",color:"red",children:"No Module Installed"})})]}),(0,i.jsx)(L.DamageReportSection,{parts:Q,fuel:S,cabling:A,onRepairStructure:ee,onRepairWiring:oe}),(0,i.jsx)(_.UpgradeReportSection,{onRemoveUpgrade:q,upgrades:V,upgrades_max:H}),(0,i.jsx)(U.DecorationReportSection,{cosmetics:P.cosmetics,onChangeCosmetic:ae,onChangePaintCosmetic:le}),(0,i.jsx)(w.ClothingReportSection,{clothes:P.clothing,onRemoveClothing:re})]})}},52899:function(Y,T,s){"use strict";s.r(T),s.d(T,{OccupantSection:function(){return _}});var i=s(20462),p=s(2686),x=s(41910),y=s(79351),w=s(33492),L=s(50817),U=s(71103);var _=function(){var A=(0,x.Oc)(),S=A.act,P=A.data,R=P.cabling,N=P.fuel,W=P.occupant,V=!!(W!=null&&W.name),H=function(){return S("occupant-eject")},Q=function(){return S("occupant-rename")};return(0,i.jsx)(p.wn,{title:"Occupant",children:(0,i.jsx)(p.BJ,{children:(0,i.jsx)(p.BJ.Item,{grow:1,children:V?(0,i.jsx)(C,{act:S,cabling:R,fuel:N,occupant:W,onEjectOccupant:H,onRenameOccupant:Q}):(0,i.jsx)("div",{children:"No occupant"})})})})},C=function(A){var S=A.act,P=A.cabling,R=A.fuel,N=A.occupant,W=A.onEjectOccupant,V=A.onRenameOccupant,H=O(N);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(p.Ki,{children:[(0,i.jsx)(p.Ki.Item,{label:"Name",buttons:(0,i.jsxs)(i.Fragment,{children:[N.kind==="robot"&&(0,i.jsx)(y.DockingAllowedButton,{onClick:V,icon:"edit",tooltip:"Change the occupant's designation"}),(0,i.jsx)(y.DockingAllowedButton,{onClick:W,icon:"eject",tooltip:"Eject the occupant"})]}),children:N.name}),(0,i.jsx)(p.Ki.Item,{label:"Type",children:H})]}),(0,i.jsxs)(p.wn,{title:"Status",children:[N.kind==="robot"&&(0,i.jsx)(U.RobotStatusView,{occupant:N,fuel:R,cabling:P,act:S}),N.kind==="human"&&(0,i.jsx)(L.HumanStatusView,{occupant:N}),N.kind==="eyebot"&&(0,i.jsx)(w.EyebotStatusView,{occupant:N})]})]})},O=function(A){switch(A.kind){case"robot":if(A.user==="brain")return"Mk.2-Type Cyborg";if(A.user==="ai")return"Mk.2-Type AI Shell";break;case"human":return"Mk.2-Type Carbon";case"eyebot":return"Mk.1-Type Eyebot";default:return"Unknown"}}},64910:function(Y,T,s){"use strict";s.r(T),s.d(T,{AvailableCellsSection:function(){return w}});var i=s(20462),p=s(2686),x=s(99127),y=s(79351);var w=function(L){var U=L.items,_=L.onEject,C=L.onInstall;return(0,i.jsx)(p.wn,{title:"Power Cells",children:U.length>0?(0,i.jsx)(p.Ki,{children:U.map(function(O){return(0,i.jsx)("div",{children:(0,i.jsx)(p.Ki.Item,{label:O.name,buttons:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(y.DockingAllowedButton,{onClick:function(){return C(O.ref)},icon:"plus",tooltip:"Add to occupant"}),(0,i.jsx)(y.DockingAllowedButton,{onClick:function(){return _(O.ref)},icon:"eject",tooltip:"Eject from station"})]}),children:(0,i.jsx)(x.CellChargeBar,{cell:O})})},O.ref)})}):(0,i.jsx)(p.az,{as:"div",children:"None Stored"})})}},82714:function(Y,T,s){"use strict";s.r(T),s.d(T,{StandardAvailableSection:function(){return y}});var i=s(20462),p=s(2686),x=s(79351);var y=function(w){var L=w.items,U=w.onEject,_=w.onInstall,C=w.title;return(0,i.jsx)(p.wn,{title:C,children:L.length>0?L.map(function(O){return(0,i.jsxs)("div",{children:[O.name,(0,i.jsx)(x.DockingAllowedButton,{onClick:function(){return _(O.ref)},icon:"plus-circle",color:"transparent",tooltip:"Add to occupant"}),(0,i.jsx)(x.DockingAllowedButton,{onClick:function(){return U(O.ref)},icon:"eject",color:"transparent",tooltip:"Eject from station"})]},O.ref)}):(0,i.jsx)(p.az,{as:"div",children:"None Stored"})})}},65247:function(Y,T,s){"use strict";s.r(T),s.d(T,{SuppliesSection:function(){return L}});var i=s(20462),p=s(2686),x=s(41910),y=s(64910),w=s(82714);var L=function(){var U=(0,x.Oc)(),_=U.act,C=U.data,O=C.allow_self_service,A=C.cabling,S=C.cells,P=C.clothes,R=C.fuel,N=C.modules,W=C.upgrades,V=C.viewer_is_robot,H=function(){return _("self-service")},Q=function(le){return _("module-install",{moduleRef:le})},J=function(le){return _("module-eject",{moduleRef:le})},X=function(le){return _("clothing-install",{clothingRef:le})},q=function(le){return _("clothing-eject",{clothingRef:le})},ee=function(le){return _("upgrade-install",{upgradeRef:le})},oe=function(le){return _("upgrade-eject",{upgradeRef:le})},re=function(le){return _("cell-install",{cellRef:le})},ae=function(le){return _("cell-eject",{cellRef:le})};return(0,i.jsxs)(p.wn,{title:"Supplies",children:[(0,i.jsxs)(p.Ki,{children:[(0,i.jsx)(p.Ki.Item,{label:"Welding Fuel",children:R}),(0,i.jsx)(p.Ki.Item,{label:"Wire Cabling",children:A}),(0,i.jsx)(p.Ki.Item,{label:"Self Service",children:(0,i.jsx)(p.$n.Checkbox,{tooltip:"Toggle self-service.",checked:O,disabled:V,onClick:H,children:O?"Enabled":"Disabled"})})]}),(0,i.jsx)(w.StandardAvailableSection,{items:N,onInstall:Q,onEject:J,title:"Modules"}),(0,i.jsx)(w.StandardAvailableSection,{items:W,onInstall:ee,onEject:oe,title:"Upgrades"}),(0,i.jsx)(y.AvailableCellsSection,{items:S,onInstall:re,onEject:ae}),(0,i.jsx)(w.StandardAvailableSection,{items:P,onInstall:X,onEject:q,title:"Upgrades"})]})}},35396:function(Y,T,s){"use strict";s.r(T),s.d(T,{CyborgDockingStation:function(){return _}});var i=s(20462),p=s(61358),x=s(2686),y=s(41910),w=s(66272),L=s(52899),U=s(65247);var _=function(){var O=(0,y.Oc)().data,A=O.allow_self_service,S=O.conversion_chamber,P=O.disabled,R=O.occupant,N=O.viewer_is_occupant,W=O.viewer_is_robot,V=(0,p.useState)(1),H=V[0],Q=V[1];return(0,i.jsx)(w.p8,{width:500,height:640,title:"Cyborg Docking Station",theme:S&&(R==null?void 0:R.kind)==="human"?"syndicate":"neutral",children:(0,i.jsxs)(w.p8.Content,{scrollable:!0,children:[!!P&&(0,i.jsx)(C,{allowSelfService:!!A,viewerIsOccupant:!!N,viewerIsRobot:!!W}),(0,i.jsxs)(x.BJ,{children:[(0,i.jsx)(x.BJ.Item,{children:(0,i.jsxs)(x.tU,{vertical:!0,width:"100px",children:[(0,i.jsx)(x.tU.Tab,{selected:H===1,onClick:function(){return Q(1)},children:"Occupant"}),(0,i.jsx)(x.tU.Tab,{selected:H===2,onClick:function(){return Q(2)},children:"Supplies"})]})}),(0,i.jsxs)(x.BJ.Item,{grow:1,basis:0,children:[H===1&&(0,i.jsx)(L.OccupantSection,{}),H===2&&(0,i.jsx)(U.SuppliesSection,{})]})]})]})})},C=function(O){var A=O.allowSelfService,S=O.viewerIsOccupant,P=O.viewerIsRobot;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(x.az,{backgroundColor:"#773333",p:"5px",mb:"5px",bold:!0,textAlign:"center",children:[P&&!S&&"You must be inside the docking station to use the functions."||"",S&&!P&&"Non-cyborgs cannot use the docking station functions."||"",S&&!A&&"Self-service has been disabled at this station."||""]}),(0,i.jsx)(x.cG,{})]})}},68838:function(Y,T,s){"use strict";s.r(T),s.d(T,{isPresentPartsData:function(){return i}});var i=function(p){return!!p.exists}},63749:function(Y,T,s){"use strict";s.r(T),s.d(T,{EmptyPlaceholder:function(){return y}});var i=s(20462),p=s(65380),x=s(15472);var y=function(w){var L=w.children,U=w.className,_=(0,p.Ly)([x.EmptyPlaceholder,U]);return(0,i.jsx)("div",{className:_,children:L})}},39067:function(Y,T,s){"use strict";s.r(T),s.d(T,{ejectModule:function(){return x},moveTool:function(){return y},removeTool:function(){return w},resetModule:function(){return L},selectModule:function(){return U}});var i=s(80094);var p=function(_){return function(C,O){return C(_,O)}},x=p(i.Action.EjectModule),y=p(i.Action.MoveTool),w=p(i.Action.RemoveTool),L=p(i.Action.ResetModule),U=p(i.Action.SelectModule)},88951:function(Y,T,s){"use strict";s.r(T),s.d(T,{CyborgModuleRewriter:function(){return w}});var i=s(20462),p=s(66272),x=s(15472),y=s(92620);var w=function(){return(0,i.jsx)(p.p8,{width:670,height:640,children:(0,i.jsx)(p.p8.Content,{className:x.Block,children:(0,i.jsx)(y.ModuleView,{})})})}},15472:function(Y,T,s){"use strict";s.r(T),s.d(T,{Block:function(){return y},EmptyPlaceholder:function(){return L},ModuleView:function(){return w}});var i=function(U,_){return U+"-"+_},p=function(U,_){return U+"__"+_},x=function(U,_){return U+"--"+_};var y="cyborg-module-rewriter-interface",w=i(y,"module-view"),L=i(y,"empty-placeholder")},80094:function(Y,T,s){"use strict";s.r(T),s.d(T,{Action:function(){return i},Direction:function(){return p}});var i=function(x){return x.EjectModule="module-eject",x.MoveTool="tool-move",x.RemoveTool="tool-remove",x.ResetModule="module-reset",x.SelectModule="module-select",x}({}),p=function(x){return x.Up="up",x.Down="down",x}({})},81060:function(Y,T,s){"use strict";s.r(T);},3681:function(Y,T,s){"use strict";s.r(T),s.d(T,{ModuleDetail:function(){return L}});var i=s(20462),p=s(61358),x=s(2686),y=s(6605);var w=[{id:"brobocop",name:"Brobocop"},{id:"science",name:"Science"},{id:"civilian",name:"Civilian"},{id:"engineering",name:"Engineering"},{id:"medical",name:"Medical"},{id:"mining",name:"Mining"}],L=function(_,C){var O,A=_.onMoveToolDown,S=_.onMoveToolUp,P=_.onRemoveTool,R=_.onResetModule,N=_.tools,W=(0,p.useState)(void 0),V=W[0],H=W[1],Q=function(q){var ee,oe=N.findIndex(function(re){return re.item_ref===q});H((ee=N[oe+1])==null?void 0:ee.item_ref),P(q)},J=V&&((O=N.find(function(q){return q.item_ref===V}))==null?void 0:O.item_ref);V&&!J&&H(void 0);var X=(0,i.jsx)(U,{itemRef:J,onMoveDown:A,onMoveUp:S,onRemove:Q});return(0,i.jsxs)(x.BJ,{vertical:!0,fill:!0,children:[(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(x.wn,{title:"Reset",children:w.map(function(q){var ee=q.id,oe=q.name;return(0,i.jsx)(x.$n,{onClick:function(){return R(ee)},tooltip:oe,children:oe},ee)})})}),(0,i.jsx)(x.BJ.Item,{grow:!0,children:(0,i.jsx)(x.wn,{fill:!0,scrollable:!0,title:"Tools",buttons:X,children:(0,i.jsx)(y.Tools,{tools:N,selectedToolRef:J,onSelectTool:H})})})]})},U=function(_){var C=_.onMoveDown,O=_.onMoveUp,A=_.onRemove,S=_.itemRef,P=!!S,R=function(){return S&&O(S)},N=function(){return S&&C(S)},W=function(){return S&&A(S)};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.$n,{icon:"arrow-up",disabled:!P,onClick:R,tooltip:"Move Up"}),(0,i.jsx)(x.$n,{icon:"arrow-down",disabled:!P,onClick:N,tooltip:"Move Down"}),(0,i.jsx)(x.$n,{icon:"trash",disabled:!P,onClick:W,tooltip:"Remove"})]})}},6605:function(Y,T,s){"use strict";s.r(T),s.d(T,{Tools:function(){return w}});var i=s(20462),p=s(2686),x=s(63749);var y=function(L){var U=L.children,_=L.onClick,C=L.selected;return(0,i.jsx)(p.tU.Tab,{onClick:_,selected:C,children:U})},w=function(L){var U=L.onSelectTool,_=L.selectedToolRef,C=L.tools,O=C===void 0?[]:C;return O.length===0?(0,i.jsx)(x.EmptyPlaceholder,{children:"Module has no tools"}):(0,i.jsx)(p.tU,{vertical:!0,children:O.map(function(A){var S=A.name,P=A.item_ref;return(0,i.jsx)(y,{onClick:function(){return U(P)},selected:P===_,children:S},P)})})}},92620:function(Y,T,s){"use strict";s.r(T),s.d(T,{ModuleView:function(){return C}});var i=s(20462),p=s(2686),x=s(41910),y=s(39067),w=s(63749),L=s(80094),U=s(3681);var _=20,C=function(){var O=(0,x.Oc)(),A=O.act,S=O.data,P=S.modules,R=P===void 0?{}:P,N=R.available,W=N===void 0?[]:N,V=R.selected,H=function(de){return y.ejectModule(A,{itemRef:de})},Q=function(de){return y.moveTool(A,{dir:L.Direction.Down,itemRef:de})},J=function(de){return y.moveTool(A,{dir:L.Direction.Up,itemRef:de})},X=function(de){return y.removeTool(A,{itemRef:de})},q=function(de){return y.resetModule(A,{moduleId:de})},ee=function(de){return y.selectModule(A,{itemRef:de})},oe=V||{},re=oe.item_ref,ae=oe.tools,le=ae===void 0?[]:ae;return W.length===0?(0,i.jsx)(p.wn,{fill:!0,children:(0,i.jsx)(w.EmptyPlaceholder,{children:"No modules inserted"})}):(0,i.jsxs)(p.BJ,{fill:!0,children:[(0,i.jsx)(p.BJ.Item,{width:_,children:(0,i.jsx)(p.wn,{title:"Modules",scrollable:!0,fill:!0,children:(0,i.jsx)(p.tU,{vertical:!0,children:W.map(function(de){var me=de.item_ref,fe=de.name,ue=(0,i.jsx)(p.$n,{icon:"eject",color:"transparent",onClick:function(){return H(me)},tooltip:"Eject "+fe});return(0,i.jsx)(p.tU.Tab,{onClick:function(){return ee(me)},rightSlot:ue,selected:me===re,children:fe},me)})})})}),(0,i.jsx)(p.BJ.Item,{grow:!0,children:re?(0,i.jsx)(U.ModuleDetail,{onMoveToolDown:Q,onMoveToolUp:J,onRemoveTool:X,onResetModule:q,tools:le}):(0,i.jsx)(p.wn,{fill:!0,children:(0,i.jsx)(w.EmptyPlaceholder,{children:"No module selected"})})})]})}},92382:function(Y,T,s){"use strict";s.r(T),s.d(T,{DJPanel:function(){return U}});var i=s(20462),p=s(2686),x=s(99202),y=s(41910),w=s(41242),L=s(66272);var U=function(){var S=(0,y.Oc)(),P=S.act,R=S.data,N=R.loadedSound,W=R.adminChannel,V=R.preloadedSounds;return(0,i.jsx)(L.p8,{width:430,height:306,title:"DJ Panel",children:(0,i.jsxs)(L.p8.Content,{children:[(0,i.jsxs)(p.wn,{children:[(0,i.jsxs)(p.az,{children:[(0,i.jsx)("strong",{children:"Active Soundfile: "}),(0,i.jsx)(p.$n,{icon:N?"file-audio":"upload",selected:!N,tooltip:N,onClick:function(){return P("set-file")},children:N?(0,w.xv)(N,38):"Upload"})]}),(0,i.jsx)(p.cG,{}),(0,i.jsx)(A,{})]}),(0,i.jsx)(p.wn,{children:(0,i.jsxs)(p.az,{children:[(0,i.jsx)(p.$n,{icon:"music",selected:!!N,disabled:!N,onClick:function(){return P("play-music")},children:"Play Music"}),(0,i.jsx)(p.$n,{icon:"volume-up",selected:!!N,disabled:!N,onClick:function(){return P("play-sound")},children:"Play Sound"}),(0,i.jsx)(p.$n,{icon:"record-vinyl",selected:!!N,disabled:!N,onClick:function(){return P("play-ambience")},children:"Play Ambience"}),(0,i.jsxs)(p.az,{as:"span",color:"grey",textAlign:"right",pl:1,children:[(0,i.jsx)(p.In,{name:"satellite"})," Channel: ",(0,i.jsx)("em",{children:-W+1024})]})]})}),(0,i.jsxs)(p.wn,{children:[(0,i.jsxs)(p.az,{children:[(0,i.jsx)(p.$n,{onClick:function(){return P("play-remote")},children:"Play Remote"}),(0,i.jsx)(p.$n,{disabled:!N,onClick:function(){return P("play-player")},children:"Play To Player"})]}),(0,i.jsxs)(p.az,{children:[(0,i.jsx)(p.$n,{disabled:!N,onClick:function(){return P("preload-sound")},children:"Preload Sound"}),(0,i.jsx)(p.$n,{disabled:!Object.keys(V).length,onClick:function(){return P("play-preloaded")},children:"Play Preloaded Sound"})]}),(0,i.jsxs)(p.az,{children:[(0,i.jsx)(p.$n,{color:"yellow",onClick:function(){return P("toggle-announce")},children:"Toggle DJ Announcements"}),(0,i.jsx)(p.$n,{color:"yellow",onClick:function(){return P("toggle-player-dj")},children:"Toggle DJ For Player"})]}),(0,i.jsxs)(p.az,{children:[(0,i.jsx)(p.$n,{icon:"stop",color:"red",onClick:function(){return P("stop-sound")},children:"Stop Last Sound"}),(0,i.jsx)(p.$n,{icon:"broadcast-tower",color:"red",onClick:function(){return P("stop-radio")},children:"Stop The Radio For Everyone"})]})]}),(0,i.jsx)(_,{})]})})},_=function(){var S=(0,y.Oc)().data,P=S.announceMode;if(P)return(0,i.jsx)(p.IC,{info:!0,children:"Announce Mode Enabled"})},C=function(S){return(0,x.Mg)(S*2)+"%"},O=function(S){return(0,x.Mg)(S*100)+"%"},A=function(){var S=(0,y.Oc)(),P=S.act,R=S.data,N=R.loadedSound,W=R.volume,V=R.frequency,H=function(q){return P("set-volume",{volume:q})},Q=function(q){return P("set-volume",{volume:"reset"})},J=function(q){return P("set-freq",{frequency:q})},X=function(q){return P("set-freq",{frequency:"reset"})};return(0,i.jsx)(p.az,{children:(0,i.jsxs)(p.Wx,{children:[(0,i.jsx)(p.Wx.Item,{label:"Volume",children:(0,i.jsx)(p.Q7,{animated:!0,value:W,minValue:0,maxValue:100,format:C,onDrag:H,step:1})}),(0,i.jsxs)(p.Wx.Item,{label:"",children:[(0,i.jsx)(p.N6,{minValue:0,maxValue:100,ranges:{primary:[20,80],average:[10,90],bad:[0,100]},value:W,format:C,onDrag:H}),(0,i.jsx)(p.$n,{icon:"sync-alt",top:"0.3em",onClick:Q,children:"Reset"})]}),(0,i.jsx)(p.Wx.Item,{label:"Frequency",children:(0,i.jsx)(p.Q7,{animated:!0,value:V,step:.1,minValue:-100,maxValue:100,format:O,onDrag:J})}),(0,i.jsxs)(p.Wx.Item,{label:"",children:[(0,i.jsx)(p.N6,{minValue:-100,maxValue:100,step:.1,stepPixelSize:.1,ranges:{primary:[-40,40],average:[-70,70],bad:[-100,100]},value:V,format:O,onDrag:J}),(0,i.jsx)(p.$n,{icon:"sync-alt",top:"0.3em",onClick:X,children:"Reset"})]})]})})}},6983:function(Y,T,s){"use strict";s.r(T),s.d(T,{DisposalChute:function(){return O}});var i=s(20462),p=s(61358),x=s(2686),y=s(41910),w=s(66272),L=s(95528),U=s(49425);var _,C=(_={},_[U.DisposalChuteState.Off]={pumpColor:"bad",pumpText:"Inactive"},_[U.DisposalChuteState.Charging]={pumpColor:"average",pumpText:"Pressurizing"},_[U.DisposalChuteState.Charged]={pumpColor:"good",pumpText:"Ready"},_),O=function(){var S=(0,y.Oc)(),P=S.act,R=S.data,N=R.name,W=R.destinations,V=W===void 0?null:W,H=R.destinationTag,Q=R.flush,J=R.mode,X=R.pressure,q=C[J],ee=q.pumpColor,oe=q.pumpText;return(0,i.jsx)(w.p8,{title:N,width:355,height:V?350:140,children:(0,i.jsxs)(w.p8.Content,{className:"disposal-chute-interface",scrollable:!!V,children:[(0,i.jsxs)(x.BJ,{vertical:!0,children:[(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(x.Ki,{children:(0,i.jsx)(x.Ki.Item,{label:"Current Pressure"})})}),(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(x.z2,{ranges:{good:[1,1/0],average:[.75,1],bad:[-1/0,.75]},value:X})})]}),(0,i.jsx)(x.cG,{}),(0,i.jsxs)(x.Ki,{children:[(0,i.jsx)(x.Ki.Item,{label:"Air Pump",buttons:(0,i.jsx)(x.$n,{icon:"power-off",color:J?"green":"red",onClick:function(){return P("togglePump")},children:J?"Enabled":"Disabled"}),children:(0,i.jsx)(x.az,{color:ee,children:oe})}),(0,i.jsx)(x.Ki.Item,{label:"Chute Handle",buttons:(0,i.jsx)(x.$n,{icon:V?"envelope":"trash-alt",color:Q?"":"red",onClick:function(){return P("toggleHandle")},children:Q?"Flushing":"Flush"}),children:(0,i.jsx)(x.$n,{icon:"eject",onClick:function(){return P("eject")},children:"Eject Contents"})})]}),!!V&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.cG,{}),(0,i.jsxs)(x.BJ,{vertical:!0,children:[(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(x.Ki,{children:(0,i.jsx)(x.Ki.Item,{label:"Destination",buttons:(0,i.jsx)(x.$n,{icon:"search",onClick:function(){return P("rescanDest")},children:"Rescan"}),children:H})})}),(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(A,{destinations:V,destinationTag:H})})]})]})]})})},A=function(S){var P=S.destinations,R=P===void 0?[]:P,N=S.destinationTag,W=(0,y.Oc)().act,V=(0,p.useState)(""),H=V[0],Q=V[1],J=function(q){return W("select-destination",{destination:q})},X=R.filter(function(q){return q.includes(H)});return(0,i.jsx)(L.ListSearch,{autoFocus:!0,currentSearch:H,onSearch:Q,onSelect:J,options:X,selectedOption:N})}},49425:function(Y,T,s){"use strict";s.r(T),s.d(T,{DisposalChuteState:function(){return i}});var i=function(p){return p[p.Off=0]="Off",p[p.Charging=1]="Charging",p[p.Charged=2]="Charged",p}({})},42376:function(Y,T,s){"use strict";s.r(T),s.d(T,{DoorTimer:function(){return L}});var i=s(20462),p=s(2686),x=s(41910),y=s(41242),w=s(66272);var L=function(){var U=(0,x.Oc)(),_=U.act,C=U.data;return(0,i.jsx)(w.p8,{width:260,height:C.flasher?279:207,children:(0,i.jsx)(w.p8.Content,{children:(0,i.jsxs)(p.BJ,{vertical:!0,fill:!0,justify:"stretch",children:[(0,i.jsx)(p.BJ.Item,{grow:1,children:(0,i.jsx)(p.wn,{title:"Timer",fill:!0,children:(0,i.jsxs)(p.Wx,{justify:"start",children:[(0,i.jsx)(p.Wx.Item,{label:"Time",children:(0,i.jsxs)(p.BJ,{align:"center",children:[(0,i.jsx)(p.BJ.Item,{children:(0,i.jsx)(p.N6,{animated:!0,minValue:0,maxValue:C.maxTime,value:C.time,format:function(O){return(0,y.fU)(O*10)},onDrag:function(O,A){return _("set-time",{time:A})},onChange:function(O,A){return _("set-time",{time:A,finish:!0})}})}),(0,i.jsx)(p.BJ.Item,{children:(0,i.jsx)(p.qT,{value:C.time*10,auto:C.timing?"down":void 0,format:y.fU})})]})}),(0,i.jsx)(p.Wx.Item,{label:"",children:(0,i.jsx)(p.$n,{onClick:function(){return _("toggle-timing")},children:C.timing?"Stop":"Start"})})]})})}),!!C.flusher&&(0,i.jsx)(p.BJ.Item,{children:(0,i.jsx)(p.wn,{title:"Floor Flusher",fill:!0,children:(0,i.jsx)(p.$n,{onClick:function(){return _("toggle-flusher")},backgroundColor:C.opening?"orange":void 0,children:C.opening?C.flusheropen?"Opening...":"Closing...":C.flusheropen?"Close Flusher":"Open Flusher"})})}),!!C.flasher&&(0,i.jsx)(p.BJ.Item,{children:(0,i.jsx)(p.wn,{title:"Flasher",fill:!0,children:(0,i.jsxs)(p.$n,{onClick:function(){return _("activate-flasher")},backgroundColor:C.recharging?"orange":void 0,children:["Flash Cell ",!!C.recharging&&"(Recharging)"]})})})]})})})}},1490:function(Y,T,s){"use strict";s.r(T);},20647:function(Y,T,s){"use strict";s.r(T),s.d(T,{DyeDispenser:function(){return C}});var i=s(20462),p=s(46835),x=s(61358),y=s(2686),w=s(41910),L=s(66272),U=s(90638);var _="#FFFFFF",C=function(){var O=(0,w.Oc)(),A=O.act,S=O.data,P=S.bottle,R=S.uses_left,N=S.bottle_color,W=P&&R>0,V=function(){return A("eject",{})},H=function(){return A("emptyb",{})},Q=function(){return A("fillb",{selectedColor:(0,p.D9)(q)})},J=function(){return A("insertb",{})},X=(0,x.useState)((0,p.RV)(N||_)),q=X[0],ee=X[1];return(0,i.jsx)(L.p8,{width:500,height:340,children:(0,i.jsxs)(L.p8.Content,{children:[(0,i.jsxs)(y.BJ,{mb:1,textAlign:"center",children:[(0,i.jsx)(y.BJ.Item,{grow:!0,children:(0,i.jsxs)(y.$n,{fontSize:1.5,bold:!0,width:"100%",onClick:Q,children:[(0,i.jsx)(y.BK,{color:(0,p.D9)(q),mr:1}),"Fill"]})}),(0,i.jsx)(y.BJ.Item,{grow:!0,children:(0,i.jsx)(y.$n,{fontSize:1.5,bold:!0,width:"100%",onClick:H,icon:"broom",disabled:!W,children:"Empty"})}),(0,i.jsx)(y.BJ.Item,{grow:!0,children:(0,i.jsx)(y.$n,{fontSize:1.5,bold:!0,width:"100%",onClick:V,icon:"eject",children:"Eject"})})]}),(0,i.jsx)(U.ColorSelector,{color:q,setColor:ee,defaultColor:N||_}),!P&&(0,i.jsx)(y.Rr,{children:(0,i.jsx)(y.$n,{fontSize:1.5,bold:!0,onClick:J,icon:"eject",children:"Insert Dye Bottle"})})]})})}},21434:function(Y,T,s){"use strict";s.r(T),s.d(T,{Elevator:function(){return w}});var i=s(20462),p=s(2686),x=s(41910),y=s(66272);var w=function(L,U){var _=(0,x.Oc)(),C=_.act,O=_.data,A=O.active,S=O.location,P=function(){return C("send",{})};return(0,i.jsx)(y.p8,{theme:"ntos",width:300,height:130,children:(0,i.jsxs)(y.p8.Content,{textAlign:"center",children:[(0,i.jsxs)(p.wn,{children:["Location: ",(0,i.jsx)("em",{children:S})]}),(0,i.jsx)(p.wn,{fontSize:1.5,children:(0,i.jsx)(p.$n,{onClick:P,disabled:!!A,color:A?"grey":"green",icon:"elevator",fluid:!0,children:A?"Moving":"Move Elevator"})})]})})}},33581:function(Y,T,s){"use strict";s.r(T),s.d(T,{EngineStats:function(){return _}});var i=s(20462),p=s(2686),x=s(41910),y=s(41242),w=s(66272),L=s(2549);var U=function(C){return Object.entries(C).map(function(O,A){var S=O[0],P=O[1];return(0,i.jsxs)(p.BJ.Item,{mt:.5,ml:A===0?1:void 0,children:[(0,i.jsxs)(p.az,{children:[S.split("|")[0],":\xA0",P[P.length-1][1]===0?"No Data":(0,y.QL)(P[P.length-1][1],0,S.split("|")[1])]}),(0,i.jsx)(p.t1.Line,{height:"3.5em",width:"20em",data:P,rangeX:[0,P.length-1],rangeY:[0,(0,L.getStatsMax)(P)],strokeColor:" rgba(55,170,25, 1)",fillColor:"rgba(55,170,25, 0.25)"})]},S)})},_=function(){var C=(0,x.Oc)(),O=C.act,A=C.data,S=A.turnedOn,P=A.tegData,R=A.chamberData,N=(0,L.processStatsData)(P),W=(0,L.processStatsData)(R);return(0,i.jsx)(w.p8,{height:560,width:760,theme:"retro-dark",title:"Engine Statistics",children:(0,i.jsx)(w.p8.Content,{children:!S||!N||!W?(0,i.jsxs)(p.aF,{textAlign:"center",width:20,height:5,fontSize:2,fontFamily:"Courier",children:["POWER ON",(0,i.jsx)(p.$n,{tooltip:"Power",icon:"power-off",selected:S,color:"caution",ml:3,onClick:function(){return O("toggle-power")}})]}):(0,i.jsxs)(p.az,{children:[(0,i.jsx)(p.wn,{title:"TEG Data",buttons:(0,i.jsx)(p.$n,{tooltip:"Power",icon:"power-off",color:"caution",onClick:function(){return O("toggle-power")}}),children:(0,i.jsx)(p.BJ,{wrap:"wrap",justify:"space-around",ml:-1,children:U(N)})}),(0,i.jsx)(p.wn,{title:"Combustion Chamber Data",children:(0,i.jsx)(p.BJ,{wrap:"wrap",justify:"space-around",ml:-1,children:U(W)})})]})})})}},35125:function(Y,T,s){"use strict";s.r(T),s.d(T,{ContainerButtons:function(){return L},DrinkContainer:function(){return _},DrinksList:function(){return w},EspressoMachine:function(){return C},ReagentBlocks:function(){return U}});var i=s(20462),p=s(2686),x=s(41910),y=s(66272);var w=function(O){var A=(0,x.Oc)().act,S=O.drinks;return(0,i.jsx)(p.so,{wrap:!0,children:S.map(function(P){return(0,i.jsx)(p.so.Item,{children:(0,i.jsx)(p.$n,{m:"2px",fontSize:"1.4rem",backgroundColor:"brown",textAlign:"center",onClick:function(){return A("pour",{drink_name:P})},children:P},P)},P)})})},L=function(O){var A=(0,x.Oc)().act,S=O.index;return(0,i.jsx)(p.so,{children:(0,i.jsxs)(p.so.Item,{nowrap:!0,children:[(0,i.jsx)(p.$n,{icon:"eject",color:"blue",tooltip:"Eject",mr:"10px",onClick:function(){return A("eject",{cup_index:S})}}),(0,i.jsx)(p.$n,{icon:"times",color:"red",tooltip:"Flush All",onClick:function(){return A("flush",{cup_index:S})}})]})})},U=function(O){var A=O.capacity,S=O.total,P=O.reagents;return(0,i.jsxs)(p.so,{mt:"5px",children:[P.map(function(R){return(0,i.jsx)(p.so.Item,{grow:R.amount/A,children:(0,i.jsx)(p.m_,{content:R.name+" ("+R.amount+"u)",position:"bottom",children:(0,i.jsx)(p.az,{width:"100%",height:"30px",px:0,my:0,backgroundColor:R.colour})})},R.name)}),(0,i.jsx)(p.so.Item,{grow:(A-S)/A,children:(0,i.jsx)(p.m_,{content:"Nothing ("+(A-S)+"u)",position:"bottom",children:(0,i.jsx)(p.IC,{width:"100%",height:"30px",px:0,my:0,backgroundColor:"rgba(0, 0, 0, 0)"})})},"nothing")]})},_=function(O){var A=O.cup;return(0,i.jsxs)(p.so,{direction:"column",mt:"10px",children:[(0,i.jsxs)(p.so,{children:[(0,i.jsx)(L,{index:A.index}),(0,i.jsx)(p.az,{as:"span",fontSize:"1.3rem",ml:"15px",children:A.total+" / "+A.capacity})]}),(0,i.jsx)(U,{capacity:A.capacity,total:A.total,reagents:A.reagents})]})},C=function(){var O=(0,x.Oc)().data,A=O.drinks,S=O.containers.map(function(P){return{capacity:P.capacity,index:P.index,total:P.reagents.reduce(function(R,N){return R+N[1]},0),reagents:P.reagents.map(function(R){return{name:R[0],amount:R[1],colour:"rgb("+R[2]+","+R[3]+","+R[4]+")"}})}});return(0,i.jsx)(y.p8,{title:"Espresso Machine",width:500,height:400,theme:"ntos",children:(0,i.jsxs)(y.p8.Content,{children:[(0,i.jsx)(p.wn,{title:"Drinks",children:(0,i.jsx)(w,{drinks:A})}),(0,i.jsx)(p.wn,{title:"Cups",children:(0,i.jsx)(p.so,{direction:"column",children:S.map(function(P){return(0,i.jsx)(_,{cup:P},P.index)})})})]})})}},61438:function(Y,T,s){"use strict";s.r(T),s.d(T,{EventController:function(){return J}});var i=s(20462),p=s(4089),x=s(61358),y=s(2686),w=s(99202),L=s(41910),U=s(66272),_=s(26376);function C(){return C=Object.assign||function(X){for(var q=1;q=0)&&(re[le]=ee[le]);return re}var A=function(ee){var oe=ee.value,re=ee.name,ae=ee.filterName,le=(0,U.Oc)().act;return(0,i.jsx)(w.Q7,{value:oe,minValue:-500,maxValue:500,stepPixelSize:5,step:1,width:"39px",onDrag:function(de){var me;return le("modify_filter_value",{name:ae,new_data:(me={},me[re]=de,me)})}})},S=function(ee){var oe=ee.value,re=ee.name,ae=ee.filterName,le=(0,U.Oc)().act,de=(0,y.useState)(.01),me=de[0],fe=de[1];return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(w.Q7,{value:oe,minValue:-500,maxValue:500,stepPixelSize:4,step:me,format:function(ue){return(0,L.Mg)(ue,(0,x.EC)(me))},width:"80px",onDrag:function(ue){var ye;return le("transition_filter_value",{name:ae,new_data:(ye={},ye[re]=ue,ye)})}}),(0,i.jsx)(w.az,{inline:!0,ml:2,mr:1,children:"Step:"}),(0,i.jsx)(w.Q7,{value:me,step:.001,format:function(ue){return(0,L.Mg)(ue,4)},width:"70px",onChange:function(ue){return fe(ue)},maxValue:1/0,minValue:-1/0})]})},P=function(ee){var oe=ee.value,re=ee.name,ae=ee.filterName,le=(0,U.Oc)().act;return(0,i.jsx)(w.pd,{value:oe,width:"250px",onInput:function(de,me){var fe;return le("modify_filter_value",{name:ae,new_data:(fe={},fe[re]=me,fe)})}})},R=function(ee){var oe=ee.value,re=ee.name,ae=ee.filterName,le=(0,U.Oc)().act,de=oe;return de===null&&(de=Array(1,0,0,0,1,0)),(0,i.jsxs)(i.Fragment,{children:["Matrix:",(0,i.jsx)(w.BJ,{children:[0,1,2].map(function(me,fe){return(0,i.jsx)(w.BJ.Item,{children:(0,i.jsx)(w.BJ,{vertical:!0,children:[0,1,2].map(function(ue,ye){return(0,i.jsxs)(w.BJ.Item,{children:[me===2&&ue<2&&0,me===2&&ue===2&&1,me<2&&(0,i.jsx)(w.Q7,{value:de[me*3+ue],step:.01,width:"50px",format:function(Ee){return(0,L.Mg)(Ee,2)},onDrag:function(Ee){var se=de;se[me*3+ue]=Ee;var pe;le("transition_filter_value",{name:ae,new_data:(pe={},pe[re]=se,pe)})},maxValue:1/0,minValue:-1/0})]},ye)})})},fe)})})]})},N=function(ee,oe){var re=ee.value,ae=ee.filterName,le=ee.name,de=(0,U.Oc)().act,me=["r","g","b","a","c"];if(Array.isArray(re)){var fe=re;if(fe.length<20){for(;fe.length<12;)fe.push(0);for(fe=Array(fe[0],fe[1],fe[2],0,fe[3],fe[4],fe[5],0,fe[6],fe[7],fe[8],0,0,0,0,1,fe[9],fe[10],fe[11],0);fe.length<20;)fe.push(0)}return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(w.$n,{icon:"pencil-alt",onClick:function(){return de("modify_color_value",{name:ae})}}),(0,i.jsx)(w.BJ,{children:[0,1,2,3].map(function(ue,ye){return(0,i.jsx)(w.BJ.Item,{children:(0,i.jsx)(w.BJ,{vertical:!0,children:[0,1,2,3,4].map(function(Ee,se){return(0,i.jsxs)(w.BJ.Item,{children:[(0,i.jsx)(w.az,{inline:!0,textColor:"label",width:"2.1rem",children:""+me[Ee]+me[ue]+":"}),(0,i.jsx)(w.Q7,{value:fe[Ee*4+ue],step:.01,width:"50px",format:function(pe){return(0,L.Mg)(pe,2)},onDrag:function(pe){var ge=fe;ge[Ee*4+ue]=pe;var Ie;de("transition_filter_value",{name:ae,new_data:(Ie={},Ie[le]=ge,Ie)})},maxValue:1/0,minValue:-1/0})]},se)})})},ye)})})]})}else return(0,i.jsxs)(i.Fragment,{children:[re.type,(0,i.jsx)(w.$n,{icon:"pencil-alt",onClick:function(){return de("modify_color_value",{name:ae})}}),(0,i.jsx)(w.BK,{color:re,mr:.5}),(0,i.jsx)(w.pd,{value:re,width:"90px",onInput:function(ue,ye){var Ee;return de("transition_filter_value",{name:ae,new_data:(Ee={},Ee[le]=ye,Ee)})}}),(0,i.jsx)(w.$n,{onClick:function(){return de("convert_color_value_matrix",{name:ae})},children:"Convert to color matrix"})]})},W=function(ee){var oe=ee.value,re=ee.filterName,ae=(0,U.Oc)().act;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(w.$n,{icon:"pencil-alt",onClick:function(){return ae("modify_icon_value",{name:re})}}),(0,i.jsx)(w.az,{inline:!0,ml:1,children:oe})]})},V=function(ee){var oe=ee.name,re=ee.value,ae=ee.filterName,le=ee.filterType,de=(0,U.Oc)(),me=de.act,fe=de.data,ue=fe.filter_info,ye=ue[le].flags;return(0,p.Tj)(ye,function(Ee,se){return(0,i.jsx)(w.$n.Checkbox,{checked:re&Ee,onClick:function(){var pe;return me("modify_filter_value",{name:ae,new_data:(pe={},pe[oe]=re^Ee,pe)})},children:se})})},H=function(ee){var oe=ee.name,re=ee.value,ae=ee.filterName,le=ee.filterType,de=(0,U.Oc)(),me=de.act,fe=de.data,ue=fe.filter_info,ye=ue[le].space;return(0,p.Tj)(ye,function(Ee,se){return(0,i.jsx)(w.$n.Checkbox,{checked:re===Ee,onClick:function(){var pe;return me("modify_filter_value",{name:ae,new_data:(pe={},pe[oe]=Ee,pe)})},children:se})})},Q=function(ee){var oe=ee.name,re=ee.value,ae=ee.filterName,le=ee.filterType,de=(0,U.Oc)(),me=de.act,fe=de.data,ue=fe.filter_info,ye=ue[le].blend_mode;return(0,p.Tj)(ye,function(Ee,se){return(0,i.jsx)(w.$n.Checkbox,{checked:re===Ee,onClick:function(){var pe;return me("modify_filter_value",{name:ae,new_data:(pe={},pe[oe]=Ee,pe)})},children:se})})},J=function(ee){var oe=ee.name,re=ee.value,ae=ee.hasValue,le=ee.filterName,de={int:(0,i.jsx)(A,C({},ee)),float:(0,i.jsx)(S,C({},ee)),string:(0,i.jsx)(P,C({},ee)),color:(0,i.jsx)(N,C({},ee)),icon:(0,i.jsx)(W,C({},ee)),flags:(0,i.jsx)(V,C({},ee)),space:(0,i.jsx)(H,C({},ee)),blendmode:(0,i.jsx)(Q,C({},ee)),matrix:(0,i.jsx)(R,C({},ee))},me={x:"float",y:"float",icon:"icon",render_source:"string",flags:"flags",size:"float",color:"color",offset:"float",radius:"float",space:"space",falloff:"float",density:"int",threshold:"float",factor:"float",repeat:"int",transform:"matrix",blend_mode:"blendmode"};return(0,i.jsxs)(w.Ki.Item,{label:oe,children:[de[me[oe]]||"Not Found (This is an error)",!ae&&(0,i.jsxs)(i.Fragment,{children:[" ",(0,i.jsx)(w.az,{inline:!0,color:"average",children:"(Default)"})]})]})},X=function(ee){var oe=(0,U.Oc)(),re=oe.act,ae=oe.data,le=ee.name,de=ee.filterDataEntry,me=de.type,fe=de.priority,ue=O(de,["type","priority"]),ye=ae.filter_info,Ee=Object.keys(ye[me].defaults);return(0,i.jsx)(w.Nt,{title:le+" ("+me+")",buttons:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(w.Q7,{value:fe,stepPixelSize:10,width:"60px",maxValue:1/0,minValue:-1/0,step:1,onChange:function(se){return re("change_priority",{name:le,new_priority:se})}}),(0,i.jsx)(w.$n.Input,{placeholder:le,onCommit:function(se,pe){return re("rename_filter",{name:le,new_name:pe})},width:"90px",children:"Rename"}),(0,i.jsx)(w.$n.Confirm,{icon:"minus",onClick:function(){return re("remove_filter",{name:le})}})]}),children:(0,i.jsx)(w.wn,{children:(0,i.jsx)(w.Ki,{children:Ee.map(function(se){var pe=ye[me].defaults,ge=ue[se]||pe[se],Ie=ge!==pe[se];return(0,i.jsx)(J,{filterName:le,filterType:me,name:se,value:ge,hasValue:Ie},se)})})})})},q=function(){var ee=(0,U.Oc)(),oe=ee.act,re=ee.data,ae=re.target_name||"Unknown Object",le=re.target_filter_data||{},de=Object.keys(le).length!==0,me=re.filter_info,fe=(0,y.useState)(""),ue=fe[0],ye=fe[1],Ee=(0,y.useState)(!1),se=Ee[0],pe=Ee[1];return(0,i.jsx)(_.p8,{width:500,height:500,title:"Filteriffic",children:(0,i.jsxs)(_.p8.Content,{scrollable:!0,children:[(0,i.jsx)(w.IC,{danger:!0,children:"DO NOT MESS WITH EXISTING FILTERS IF YOU DO NOT KNOW THE CONSEQUENCES. YOU HAVE BEEN WARNED."}),(0,i.jsx)(w.wn,{title:se?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(w.az,{mr:.5,inline:!0,children:"MASS EDIT:"}),(0,i.jsx)(w.pd,{value:ue,width:"100px",onInput:function(ge,Ie){return ye(Ie)}}),(0,i.jsx)(w.$n.Confirm,{confirmContent:"ARE YOU SURE?",onClick:function(){return oe("mass_apply",{path:ue})},children:"Apply"})]}):(0,i.jsx)(w.az,{inline:!0,onDoubleClick:function(){return pe(!0)},children:ae}),buttons:(0,i.jsx)(w.ms,{icon:"plus",displayText:"Add Filter",noChevron:!0,options:Object.keys(me),selected:null,onSelected:function(ge){return oe("add_filter",{name:"default",priority:10,type:ge})}}),children:de?(0,p.Tj)(le,function(ge,Ie){return(0,i.jsx)(X,{filterDataEntry:ge,name:Ie},Ie)}):(0,i.jsx)(w.az,{children:"No filters"})})]})})}},81346:function(Y,T,s){"use strict";s.r(T),s.d(T,{Flamethrower:function(){return A}});var i=s(20462),p=s(2686),x=s(41910),y=s(66272),w=s(95823),L=s(15180),U=s(11249);function _(){return _=Object.assign||function(S){for(var P=1;P0&&"Compute provided: "+Q.compute})}),(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(x.wn,{height:"100%",children:(0,i.jsxs)(x.BJ,{children:[Q.name==="Construction Tealprint"&&(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(x.$n,{onClick:function(){return V("cancel_tealprint",{origin:Q.ref})},children:"Cancel"})}),(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(x.$n,{onClick:function(){return V("jump_to",{origin:Q.ref})},children:"Jump"})})]})})})]})},Q.ref)})})},P=function(W){var V=(0,y.Oc)().act,H=W.enemies;return(0,i.jsx)(x.BJ,{vertical:!0,children:H.map(function(Q){return(0,i.jsx)(x.BJ.Item,{children:(0,i.jsxs)(x.BJ,{children:[(0,i.jsx)(x.BJ.Item,{width:"30%",children:(0,i.jsx)(x.wn,{height:"100%",children:Q.name})}),(0,i.jsx)(x.BJ.Item,{grow:1,children:(0,i.jsx)(x.wn,{height:"100%",children:(0,i.jsx)(x.BJ,{children:(0,i.jsx)(x.BJ.Item,{grow:1,children:(0,i.jsx)("b",{children:Q.area})})})})}),(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(x.wn,{height:"100%",children:(0,i.jsxs)(x.BJ,{children:[(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(x.$n,{icon:"times",onClick:function(){return V("remove_enemy",{origin:Q.ref})},children:"Remove"})}),(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(x.$n,{onClick:function(){return V("jump_to",{origin:Q.ref})},children:"Jump"})})]})})})]})},Q.ref)})})},R=function(W){var V=W.stats;return(0,i.jsx)(x.BJ,{vertical:!0,children:V.map(function(H){return(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(x.BJ,{children:(0,i.jsx)(x.BJ.Item,{width:"100%",children:(0,i.jsx)(x.wn,{height:"100%",children:(0,i.jsx)(x.BJ,{vertical:!0,align:"left",children:(0,i.jsxs)(x.BJ.Item,{children:[H.name," ",H.value]})})})})})},H.name)})})},N=function(){var W=(0,y.Oc)(),V=W.data,H=W.act,Q=(0,p.useState)("resources"),J=Q[0],X=Q[1],q=V.vitals,ee=V.partitions,oe=V.drones,re=V.structures,ae=V.enemies,le=V.stats,de=V.category_lengths,me=V.category;return(0,i.jsx)(w.p8,{theme:"flock",title:"Flockmind "+q.name,width:600,height:450,children:(0,i.jsxs)(w.p8.Content,{scrollable:!0,children:[(0,i.jsxs)(x.tU,{children:[(0,i.jsxs)(x.tU.Tab,{selected:me==="drones",onClick:function(){H("change_tab",{tab:"drones"})},children:["Drones ","("+de.drones+")"]}),(0,i.jsxs)(x.tU.Tab,{selected:me==="traces",onClick:function(){H("change_tab",{tab:"traces"})},children:["Partitions ","("+de.traces+")"]}),(0,i.jsxs)(x.tU.Tab,{selected:me==="structures",onClick:function(){H("change_tab",{tab:"structures"})},children:["Structures ","("+de.structures+")"]}),(0,i.jsxs)(x.tU.Tab,{selected:me==="enemies",onClick:function(){H("change_tab",{tab:"enemies"})},children:["Enemies ","("+de.enemies+")"]}),(0,i.jsx)(x.tU.Tab,{selected:me==="stats",onClick:function(){H("change_tab",{tab:"stats"})},children:"Stats"})]}),me==="drones"&&(0,i.jsxs)(x.az,{children:[(0,i.jsx)(x.ms,{options:["name","health","resources","area"],selected:"resources",onSelected:function(fe){return X(fe)}}),(0,i.jsx)(A,{drones:oe,sortBy:J})]}),me==="traces"&&(0,i.jsx)(L,{partitions:ee}),me==="structures"&&(0,i.jsx)(S,{structures:re}),me==="enemies"&&(0,i.jsx)(P,{enemies:ae}),me==="stats"&&(0,i.jsx)(R,{stats:le})]})})}},11343:function(Y,T,s){"use strict";s.r(T),s.d(T,{FlockStructures:function(){return w}});var i=s(20462),p=s(2686),x=s(41910),y=s(66272),w=function(){var L=(0,x.Oc)().data,U=L.structures;return(0,i.jsx)(y.p8,{title:"Flock structures",width:500,height:600,children:(0,i.jsx)(y.p8.Content,{scrollable:!0,children:(0,i.jsx)(p.BJ,{vertical:!0,children:U.map(function(_){var C=_.name,O=_.icon,A=_.description,S=_.cost;return(0,i.jsx)(p.BJ.Item,{children:(0,i.jsxs)(p.BJ,{height:"100%",children:[(0,i.jsx)(p.BJ.Item,{width:9,children:(0,i.jsx)(p.wn,{align:"center",children:(0,i.jsxs)(p.BJ,{vertical:!0,children:[(0,i.jsx)(p.BJ.Item,{children:C}),(0,i.jsx)(p.BJ.Item,{children:(0,i.jsx)(p._V,{height:"64px",width:"64px",src:"data:image/png;base64,"+O})})]})})}),(0,i.jsx)(p.BJ.Item,{width:29,children:(0,i.jsx)(p.wn,{height:"100%",children:(0,i.jsxs)(p.BJ,{vertical:!0,children:[(0,i.jsx)(p.BJ.Item,{children:A}),(0,i.jsx)(p.BJ.Item,{children:!!S&&"Cost: "+S})]})})})]})},C)})})})})}},3955:function(Y,T,s){"use strict";s.r(T),s.d(T,{Freezer:function(){return U}});var i=s(20462),p=s(2686),x=s(41910),y=s(41242),w=s(66272),L=s(11249);var U=function(){var _=(0,x.Oc)(),C=_.act,O=_.data,A=O.target_temperature,S=O.active,P=O.air_temperature,R=O.air_pressure;return(0,i.jsx)(w.p8,{title:"Freezer",width:320,height:215,children:(0,i.jsxs)(w.p8.Content,{children:[(0,i.jsx)(p.wn,{title:"Temperature Control",children:(0,i.jsxs)(p.BJ,{align:"center",children:[(0,i.jsx)(p.BJ.Item,{children:(0,i.jsx)(p.N6,{animated:!0,size:2,value:A,minValue:73.15,maxValue:293.15,format:function(N){return N+" K"},onDrag:function(N,W){return C("set_target_temperature",{value:W})}})}),(0,i.jsx)(p.BJ.Item,{grow:!0,basis:0,overflow:"hidden",children:(0,i.jsxs)(p.az,{className:"ChemHeater__TemperatureNumber",nowrap:!0,p:1,fontSize:1.5,color:(0,L.getTemperatureColor)(A),backgroundColor:"black",children:[(0,i.jsx)(p.az,{fontSize:1,children:"Target"}),(0,i.jsx)(p.In,{name:(0,L.getTemperatureIcon)(A),pr:.5}),(0,i.jsx)(p.zv,{value:A})," K"]})}),(0,i.jsx)(p.BJ.Item,{basis:9.6,align:"center",children:(0,i.jsx)(p.$n,{icon:"power-off",color:S===0?"red":"green",fluid:!0,height:"100%",fontSize:1.15,textAlign:"center",onClick:function(){return C("active_toggle")},children:S===0?"Deactivated":"Activated"})})]})}),(0,i.jsx)(p.wn,{children:(0,i.jsxs)(p.BJ,{align:"center",children:[(0,i.jsx)(p.BJ.Item,{children:(0,i.jsxs)(p.az,{className:"ChemHeater__TemperatureNumber",nowrap:!0,p:1,width:"50%",fontSize:1.3,color:(0,L.getTemperatureColor)(P),children:[(0,i.jsx)(p.az,{fontSize:1,children:"Current Temperature"}),(0,i.jsx)(p.In,{name:(0,L.getTemperatureIcon)(P),pr:.5}),(0,i.jsx)(p.zv,{value:P})," K"]})}),(0,i.jsx)(p.BJ.Item,{children:(0,i.jsxs)(p.az,{nowrap:!0,p:1,width:"50%",fontSize:1.3,children:[(0,i.jsx)(p.az,{fontSize:1,children:"Current Pressure"}),(0,i.jsx)(p.zv,{value:R,format:y.P9})]})})]})})]})})}},1619:function(Y,T,s){"use strict";s.r(T),s.d(T,{Gameclock:function(){return L}});var i=s(20462),p=s(2686),x=s(41910),y=s(41242),w=s(66272),L=function(){var P=(0,x.Oc)().data,R=P.clockStatic.name,N=(0,x.Ul)("configModalOpen",!1),W=N[0],V=(0,x.Ul)("swap",!1),H=V[0],Q=(0,x.Ul)("helpModalOpen",!1),J=Q[0],X=Q[1],q=W?void 0:function(){X(!J)};return(0,i.jsx)(w.p8,{title:R,width:220,height:380,children:(0,i.jsxs)(w.p8.Content,{className:"gameclock__window",fitted:!0,children:[W&&(0,i.jsx)(U,{}),J&&(0,i.jsx)(_,{}),(0,i.jsx)(p.az,{className:"gameclock__help",children:(0,i.jsx)(p.$n,{className:"gameclock__helpbutton",tooltip:J?"Close":"Help",icon:J?"xmark":"question",color:J&&"orange",onClick:q})}),(0,i.jsx)(O,{team:H?"white":"black"}),(0,i.jsx)(A,{team:H?"white":"black"}),(0,i.jsx)(S,{}),(0,i.jsx)(A,{team:H?"black":"white"}),(0,i.jsx)(O,{team:H?"black":"white"})]})})},U=function(){var P=(0,x.Oc)(),R=P.data,N=P.act,W=R.clockStatic.defaultTime,V=(0,x.Ul)("configModalOpen",!1),H=V[1],Q=(0,x.Ul)("whiteTimeBuffer",0),J=Q[0],X=Q[1],q=(0,x.Ul)("blackTimeBuffer",0),ee=q[0],oe=q[1],re=function(ae,le){N("set_time",{whiteTime:ae*10,blackTime:le*10})};return(0,i.jsxs)(p.Rr,{className:"gameclock__configmodal",children:[(0,i.jsxs)(p.Ki,{children:[(0,i.jsx)(p.Ki.Item,{label:"Time (White)",children:(0,i.jsx)(C,{team:"white"})}),(0,i.jsx)(p.Ki.Item,{label:"Time (Black)",children:(0,i.jsx)(C,{team:"black"})})]}),(0,i.jsxs)(p.az,{className:"gameclock__configmodalbuttoncontainer",children:[(0,i.jsx)(p.$n,{onClick:function(){X(W),oe(W)},children:"Reset to default"}),(0,i.jsx)(p.$n,{onClick:function(){H(!1),re(J,ee)},children:"Apply"}),(0,i.jsx)(p.$n,{onClick:function(){return H(!1)},children:"Cancel"})]})]})},_=function(){return(0,i.jsx)(p.Rr,{children:(0,i.jsxs)(p.wn,{children:[(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:"Help"})}),(0,i.jsx)("p",{children:"These clocks are used in two-player games where the players move in turns."}),(0,i.jsx)("p",{children:"Click on the clock face corresponding to your color to end your turn."}),(0,i.jsx)("p",{children:"The time value (in seconds) for each clock can be set using the Clocks Setup button."}),(0,i.jsx)("p",{children:"Before starting the clock, ensure that the Current Turn is set to the correct side."}),(0,i.jsx)("p",{children:"The positions of the White and Black clocks can be swapped on your client using the rotate view button."})]})})},C=function(P,R){var N=(0,x.Oc)().data,W=N.clockStatic,V=W.minTime,H=W.maxTime,Q=P.team,J=(0,x.Ul)("whiteTimeBuffer",0),X=J[0],q=J[1],ee=(0,x.Ul)("blackTimeBuffer",0),oe=ee[0],re=ee[1],ae=function(le){return(0,y.fU)(le*10)};return(0,i.jsx)(p.Q7,{onDrag:function(le){Q==="white"?q(le):re(le)},format:ae,value:Q==="white"?X:oe,minValue:V,maxValue:H,step:15,stepPixelSize:2})},O=function(P,R){var N=P.team;return(0,i.jsx)(p.BJ,{direction:"column",children:(0,i.jsx)(p.m_,{content:N==="white"?"White":"Black",children:(0,i.jsx)(p.In,{className:"gameclock__teamicon",name:"circle"+(N==="white"?"":"-o")})})})},A=function(P){var R=(0,x.Oc)(),N=R.data,W=R.act,V=P.team,H=function(Q){return(0,y.fU)(Q*10)};return(0,i.jsx)(p.BJ,{direction:"column",fill:!0,className:"gameclock__sidepart",children:(0,i.jsx)(p.$n,{color:"orange",disabled:!N.timing||(N.turn?V==="black":V==="white"),className:"gameclock__timebutton",onClick:function(){return W("end_turn")},children:(0,i.jsx)(p.BJ,{className:"gameclock__timeflex",children:(0,i.jsx)(p.zv,{value:V==="white"?N.whiteTime:N.blackTime,format:H})})})})},S=function(P,R){var N=(0,x.Oc)(),W=N.data,V=N.act,H=(0,x.Ul)("configModalOpen",!1),Q=H[1],J=(0,x.Ul)("whiteTimeBuffer",0),X=J[1],q=(0,x.Ul)("blackTimeBuffer",0),ee=q[1],oe=(0,x.Ul)("swap",!1),re=oe[0],ae=oe[1];return(0,i.jsxs)(p.BJ,{direction:"row",className:"gameclock__mid",children:[(0,i.jsx)(p.az,{children:(0,i.jsx)(p.$n,{className:"gameclock__utilbutton",disabled:W.timing,tooltip:"Clocks Setup",tooltipPosition:"top",icon:"cog",onClick:function(){Q(!0),X(W.whiteTime),ee(W.blackTime)}})}),(0,i.jsx)(p.az,{children:(0,i.jsx)(p.$n,{className:"gameclock__utilbutton",disabled:W.timing,tooltip:"Current Turn: "+(W.turn?"White":"Black"),tooltipPosition:"top",icon:"flag",color:W.turn?"white":"black",onClick:function(){return V("set_turn")}})}),(0,i.jsx)(p.az,{children:(0,i.jsx)(p.$n,{className:"gameclock__utilbutton",disabled:W.whiteTime===0||W.blackTime===0,tooltip:W.timing?"Pause":"Unpause",tooltipPosition:"top",icon:W.timing?"pause":"play",color:W.timing?"orange":"",onClick:function(){return V("toggle_timing")}})}),(0,i.jsx)(p.az,{children:(0,i.jsx)(p.$n,{className:"gameclock__utilbutton",tooltip:"Rotate view",tooltipPosition:"top",icon:"rotate",onClick:function(){return ae(!re)}})})]})}},1916:function(Y,T,s){"use strict";s.r(T)},64139:function(Y,T,s){"use strict";s.r(T),s.d(T,{Detonator:function(){return y}});var i=s(20462),p=s(2686),x=s(58432),y=function(U){var _=U.detonator,C=U.detonatorAttachments,O=U.onToggleAnchor,A=U.onToggleSafety,S=U.onWireInteract,P=U.onPrimeDetonator,R=U.onTriggerActivate,N=U.onSetTimer;return(0,i.jsxs)(p.wn,{title:"Detonator",children:[(0,i.jsx)(w,{detonator:_,onWireInteract:S,onSetTimer:N}),(0,i.jsx)(p.cG,{}),(0,i.jsx)(L,{detonator:_,detonatorAttachments:C,onToggleAnchor:O,onToggleSafety:A,onPrimeDetonator:P,onTriggerActivate:R})]})},w=function(U){var _=U.detonator,C=_===void 0?{}:_,O=C.wireNames,A=C.wireStatus,S=C.time,P=C.isPrimed,R=U.onWireInteract,N=U.onSetTimer;return(0,i.jsxs)(p.so,{children:[(0,i.jsx)(p.so.Item,{children:(0,i.jsx)(p.Ki,{children:O.map(function(W,V){return(0,i.jsx)(p.Ki.Item,{label:W,children:(0,i.jsx)(p.az,{height:1.7,children:A&&A[V]?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p.$n,{icon:"cut",onClick:function(){return R("cut",V)},children:"Cut"}),(0,i.jsx)(p.$n,{icon:"bolt",onClick:function(){return R("pulse",V)},children:"Pulse"})]}):(0,i.jsx)(p.az,{color:"average",minHeight:1.4,children:"Cut"})})},W+V)})})}),(0,i.jsx)(p.so.Item,{mr:2,mt:2,children:(0,i.jsxs)(p.so,{direction:"column",align:"center",children:[(0,i.jsx)(p.so.Item,{children:(0,i.jsx)(x.DetonatorTimer,{time:S,isPrimed:P})}),(0,i.jsxs)(p.so.Item,{children:[(0,i.jsx)(p.$n,{mt:1,disabled:P,icon:"fast-backward",onClick:function(){return N(S-300)}}),(0,i.jsx)(p.$n,{mt:1,disabled:P,icon:"backward",onClick:function(){return N(S-10)}}),(0,i.jsx)(p.$n,{mt:1,disabled:P,icon:"forward",onClick:function(){return N(S+10)}}),(0,i.jsx)(p.$n,{mt:1,disabled:P,icon:"fast-forward",onClick:function(){return N(S+300)}})]})]})})]})},L=function(U){var _=U.detonator,C=_===void 0?{}:_,O=C.isAnchored,A=C.trigger,S=C.safetyIsOn,P=C.isPrimed,R=U.detonatorAttachments,N=U.onToggleAnchor,W=U.onToggleSafety,V=U.onPrimeDetonator,H=U.onTriggerActivate,Q=function(){return S?"The safety is on, therefore, you cannot prime the bomb.":P?(0,i.jsx)(p.az,{bold:!0,color:"red",children:"PRIMED"}):(0,i.jsx)(p.$n,{color:"danger",icon:"bomb",onClick:V,children:"Prime"})};return(0,i.jsxs)(p.Ki,{children:[(0,i.jsx)(p.Ki.Item,{className:"gas-canister-detonator-utility__list-item",label:"Anchor Status",children:O?"Anchored. There are no controls for undoing this.":(0,i.jsx)(p.$n,{icon:"anchor",onClick:N,children:"Anchor"})}),(0,i.jsx)(p.Ki.Item,{className:"gas-canister-detonator-utility__list-item",label:"Trigger",children:A?(0,i.jsx)(p.$n,{onClick:H,children:A}):"There is no trigger attached."}),(0,i.jsx)(p.Ki.Item,{className:"gas-canister-detonator-utility__list-item",label:"Safety",children:S?(0,i.jsx)(p.$n,{color:"average",icon:"power-off",onClick:W,children:"Turn Off"}):(0,i.jsx)(p.az,{color:"average",children:"Off"})}),(0,i.jsx)(p.Ki.Item,{className:"gas-canister-detonator-utility__list-item",label:"Arming",children:Q()}),(0,i.jsx)(p.Ki.Item,{label:"Attachments",className:"gas-canister-detonator-utility__list-item",children:R&&R.length>0?R.map(function(J,X){return(0,i.jsx)(p.az,{className:"gas-canister-detonator-utility__attachment-item",children:R[X]},J+X)}):"There are no additional attachments to the detonator."})]})}},58432:function(Y,T,s){"use strict";s.r(T),s.d(T,{DetonatorTimer:function(){return y}});var i=s(20462),p=s(2686),x=s(41242),y=function(w){var L=w.time,U=w.isPrimed,_=w.warningThreshold,C=_===void 0?300:_,O=w.dangerThreshold,A=O===void 0?100:O,S=w.explosionMessage,P=S===void 0?"BO:OM":S,R="green";return L<=A?R="red":L<=C&&(R="orange"),(0,i.jsx)(p.az,{p:1,textAlign:"center",backgroundColor:"black",color:R,maxWidth:"90px",width:"90px",fontSize:"20px",children:(0,i.jsx)(p.qT,{value:L,auto:U?"down":void 0,format:function(N){return(0,x.fU)(N,P)}})})}},25227:function(Y,T,s){"use strict";s.r(T),s.d(T,{GasCanister:function(){return C}});var i=s(20462),p=s(2686),x=s(41910),y=s(66272),w=s(95823),L=s(5235),U=s(55648),_=s(64139),C=function(){var A=(0,x.Oc)(),S=A.act,P=A.data,R=P.connected,N=P.holding,W=P.hasValve,V=P.valveIsOpen,H=P.pressure,Q=P.maxPressure,J=P.releasePressure,X=P.minRelease,q=P.maxRelease,ee=P.detonator,oe=P.detonatorAttachments,re=P.hasPaper,ae=function(ge){S("set-pressure",{releasePressure:ge})},le=function(){S("toggle-valve")},de=function(){S("eject-tank")},me=function(ge,Ie){S("wire-interact",{index:Ie,toolAction:ge})},fe=function(){S("anchor")},ue=function(){S("safety")},ye=function(){S("prime")},Ee=function(){S("trigger")},se=function(ge){S("timer",{newTime:ge})},pe=!!ee;return(0,i.jsx)(y.p8,{width:pe?re?880:470:305,height:pe?685:340,children:(0,i.jsx)(y.p8.Content,{children:(0,i.jsxs)(p.so,{children:[(0,i.jsxs)(p.so.Item,{width:"480px",children:[(0,i.jsxs)(w.PortableBasicInfo,{connected:R,pressure:H,maxPressure:Q,children:[(0,i.jsx)(p.cG,{}),W?(0,i.jsx)(L.ReleaseValve,{valveIsOpen:V,releasePressure:J,minRelease:X,maxRelease:q,onToggleValve:le,onSetPressure:ae}):(0,i.jsx)(p.az,{color:"average",children:"The release valve is missing."})]}),ee?(0,i.jsx)(_.Detonator,{detonator:ee,detonatorAttachments:oe,onToggleAnchor:fe,onToggleSafety:ue,onWireInteract:me,onPrimeDetonator:ye,onTriggerActivate:Ee,onSetTimer:se}):(0,i.jsx)(w.PortableHoldingTank,{holding:N,onEjectTank:de})]}),!!re&&(0,i.jsx)(p.so.Item,{width:"410px",children:(0,i.jsx)(O,{})})]})})})},O=function(){var A=(0,x.Oc)().data,S=A.paperData,P=S.text,R=S.stamps;return(0,i.jsx)(p.wn,{id:"paperSection",scrollable:!0,backgroundColor:"white",style:{overflowWrap:"break-word"},children:(0,i.jsx)(U.PaperSheetView,{value:P||"",stamps:R,readOnly:!0})})}},57017:function(Y,T,s){"use strict";s.r(T),s.d(T,{GasTank:function(){return U},GasTankInfo:function(){return _}});var i=s(20462),p=s(2686),x=s(41910),y=s(41242),w=s(66272),L=s(5235),U=function(){var C=(0,x.Oc)(),O=C.act,A=C.data,S=A.pressure,P=A.maxPressure,R=A.valveIsOpen,N=A.releasePressure,W=A.maxRelease,V=function(Q){O("set-pressure",{releasePressure:Q})},H=function(){O("toggle-valve")};return(0,i.jsx)(w.p8,{width:400,height:220,children:(0,i.jsxs)(w.p8.Content,{children:[(0,i.jsx)(p.wn,{title:"Status",children:(0,i.jsx)(_,{pressure:S,maxPressure:P})}),(0,i.jsx)(p.wn,{children:(0,i.jsx)(L.ReleaseValve,{valveIsOpen:R,releasePressure:N,maxRelease:W,onToggleValve:H,onSetPressure:V})})]})})},_=function(C){var O=C.pressure,A=C.maxPressure,S=C.name;return(0,i.jsxs)(p.Ki,{children:[(0,i.jsx)(p.Ki.Item,{label:"Pressure",children:(0,i.jsx)(p.WD,{size:1.75,value:O,minValue:0,maxValue:A,alertAfter:A*.7,ranges:{good:[0,A*.7],average:[A*.7,A*.85],bad:[A*.85,A]},format:y.P9})}),S?(0,i.jsx)(p.Ki.Item,{label:"Label",children:S}):null]})}},52841:function(Y,T,s){"use strict";s.r(T),s.d(T,{AppearanceEditor:function(){return y}});var i=s(20462),p=s(2686),x=s(41910);var y=function(L){var U=(0,x.Oc)().act,_=L.preview,C=L.hairStyles,O=L.skin,A=L.eyes,S=L.color1,P=L.color2,R=L.color3,N=L.style1,W=L.style2,V=L.style3,H=L.fixColors,Q=L.hasEyes,J=L.hasSkin,X=L.hasHair,q=L.channels;return(0,i.jsx)(p.wn,{title:"Appearance Editor",buttons:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p.$n,{onClick:function(){return U("editappearance",{apply:!0})},icon:"user",color:"good",children:"Apply Changes"}),(0,i.jsx)(p.$n,{onClick:function(){return U("editappearance",{cancel:!0})},icon:"times",color:"bad"})]}),children:(0,i.jsxs)(p.so,{children:[(0,i.jsx)(p.so.Item,{shrink:"1",children:(0,i.jsxs)(p.Ki,{children:[!!J&&(0,i.jsx)(p.Ki.Item,{label:"Skin Tone",children:(0,i.jsx)(w,{color:O,onChange:function(ee){return U("editappearance",{skin:ee})}})}),!!Q&&(0,i.jsx)(p.Ki.Item,{label:"Eye Color",children:(0,i.jsx)(w,{color:A,onChange:function(ee){return U("editappearance",{eyes:ee})}})}),!!((J||Q)&&q[0])&&(0,i.jsx)(p.Ki.Divider,{}),!!q[0]&&!!X&&(0,i.jsx)(p.Ki.Item,{label:q[0],children:(0,i.jsx)(p.ms,{width:20,selected:N,onSelected:function(ee){return U("editappearance",{style1:ee})},options:C})}),!!q[0]&&(0,i.jsx)(p.Ki.Item,{label:""+q[0].replace(/ Detail$/,"")+" Color",children:(0,i.jsx)(w,{color:S,onChange:function(ee){return U("editappearance",{color1:ee})},fix:H})}),!!q[1]&&(0,i.jsx)(p.Ki.Divider,{}),!!q[1]&&!!X&&(0,i.jsx)(p.Ki.Item,{label:q[1],children:(0,i.jsx)(p.ms,{width:20,selected:W,onSelected:function(ee){return U("editappearance",{style2:ee})},options:C})}),!!q[1]&&(0,i.jsx)(p.Ki.Item,{label:""+q[1].replace(/ Detail$/,"")+" Color",children:(0,i.jsx)(w,{color:P,onChange:function(ee){return U("editappearance",{color2:ee})},fix:H})}),!!q[2]&&(0,i.jsx)(p.Ki.Divider,{}),!!q[2]&&!!X&&(0,i.jsx)(p.Ki.Item,{label:q[2],children:(0,i.jsx)(p.ms,{width:20,selected:V,onSelected:function(ee){return U("editappearance",{style3:ee})},options:C})}),!!q[2]&&(0,i.jsx)(p.Ki.Item,{label:""+q[2].replace(/ Detail$/,"")+" Color",children:(0,i.jsx)(w,{color:R,onChange:function(ee){return U("editappearance",{color3:ee})},fix:H})})]})}),(0,i.jsx)(p.so.Item,{basis:"80px",shrink:"0",children:(0,i.jsx)(p.D1,{params:{id:_,type:"map"},style:{width:"80px",height:"160px"}})})]})})},w=function(L,U){var _=L.color,C=L.onChange,O=L.fix,A=parseInt(_.substr(1,2),16),S=parseInt(_.substr(3,2),16),P=parseInt(_.substr(5,2),16),R=function(N,W,V){C&&C("#"+N.toString(16).padStart(2,"0")+W.toString(16).padStart(2,"0")+V.toString(16).padStart(2,"0"))};return(0,i.jsxs)(p.az,{children:[(0,i.jsx)(p.BK,{color:_}),(0,i.jsx)(p.N6,{inline:!0,ml:1,minValue:O?50:0,maxValue:O?190:255,value:A,color:"red",onChange:function(N,W){return R(Math.round(W),S,P)}}),(0,i.jsx)(p.N6,{inline:!0,ml:1,minValue:O?50:0,maxValue:O?190:255,value:S,color:"green",onChange:function(N,W){return R(A,Math.round(W),P)}}),(0,i.jsx)(p.N6,{inline:!0,ml:1,minValue:O?50:0,maxValue:O?190:255,value:P,color:"blue",onChange:function(N,W){return R(A,S,Math.round(W))}})]})}},4851:function(Y,T,s){"use strict";s.r(T),s.d(T,{BioEffect:function(){return W},Description:function(){return V},GeneList:function(){return H},ResearchLevel:function(){return P},haveDevice:function(){return R},onCooldown:function(){return N}});var i=s(20462),p=s(2686),x=s(41910),y=s(65993),w=s(33198),L=s(52848),U=s(49020);function _(Q,J){(J==null||J>Q.length)&&(J=Q.length);for(var X=0,q=new Array(J);X=0)&&(X[ee]=Q[ee]);return X}function A(Q,J){if(Q){if(typeof Q=="string")return _(Q,J);var X=Object.prototype.toString.call(Q).slice(8,-1);if(X==="Object"&&Q.constructor&&(X=Q.constructor.name),X==="Map"||X==="Set")return Array.from(X);if(X==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(X))return _(Q,J)}}function S(Q,J){var X=typeof Symbol!="undefined"&&Q[Symbol.iterator]||Q["@@iterator"];if(X)return(X=X.call(Q)).next.bind(X);if(Array.isArray(Q)||(X=A(Q))||J&&Q&&typeof Q.length=="number"){X&&(Q=X);var q=0;return function(){return q>=Q.length?{done:!0}:{done:!1,value:Q[q++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var P={None:0,InProgress:1,Done:2,Activated:3},R=function(Q,J){for(var X=S(Q),q;!(q=X()).done;){var ee=q.value,oe=ee.label,re=ee.cooldown;if(oe===J)return!0}return!1},N=function(Q,J){for(var X=S(Q),q;!(q=X()).done;){var ee=q.value,oe=ee.label,re=ee.cooldown;if(oe===J)return re>0}return!0},W=function(Q){var J=(0,x.Oc)(),X=J.data,q=J.act,ee=(0,x.QY)("booth",null),oe=ee[0],re=ee[1],ae=X.materialCur,le=X.researchCost,de=X.equipmentCooldown,me=X.saveSlots,fe=X.savedMutations,ue=X.subject,ye=X.boothCost,Ee=X.injectorCost,se=X.precisionEmitter,pe=X.toSplice,ge=Q.gene,Ie=Q.showSequence,xe=Q.isSample,Oe=Q.isPotential,Be=Q.isActive,Ke=Q.isStorage,ke=ge.ref,Ve=ge.name,lt=ge.desc,Ye=ge.icon,He=ge.research,ft=ge.canResearch,Rt=ge.canInject,Ge=ge.canScramble,et=ge.canReclaim,at=ge.spliceError,gt=ge.dna,dt=gt.every(function(Tt){return!Tt.style}),Pt=gt.every(function(Tt){return!Tt.style||Tt.marker==="locked"}),Et=Be||Ke;return(0,i.jsxs)(p.wn,{title:Ve,buttons:(0,i.jsx)(L.GeneIcon,{name:Ye,size:1.5}),children:[oe&&oe.ref===ke&&(0,i.jsx)(y.aF,{full:!0,children:(0,i.jsxs)(p.wn,{width:35,title:Ve,style:{margin:"-10px",marginRight:"2px"},buttons:(0,i.jsx)(L.GeneIcon,{name:Ye,size:4,style:{marginTop:"-2px",marginRight:"-4px"}}),children:[(0,i.jsxs)(p.Ki,{children:[(0,i.jsx)(p.Ki.Item,{label:"Price",children:(0,i.jsx)(p.Q7,{minValue:0,maxValue:999999,step:1,width:"5",value:oe.price,onChange:function(Tt){return re({ref:oe.ref,price:Tt,desc:oe.desc})}})}),(0,i.jsx)(p.Ki.Item,{label:"Description",children:(0,i.jsx)(p.pd,{width:25,value:oe.desc,onChange:function(Tt,Dt){return re({ref:oe.ref,price:oe.price,desc:Dt})}})})]}),(0,i.jsx)(p.az,{inline:!0,width:"50%",textAlign:"center",mt:2,children:(0,i.jsx)(p.$n,{icon:"person-booth",color:"good",disabled:ye>ae,onClick:function(){return q("booth",oe)},children:"Send to Booth"})}),(0,i.jsx)(p.az,{inline:!0,width:"50%",textAlign:"center",children:(0,i.jsx)(p.$n,{icon:"times",color:"bad",onClick:function(){return re(null)},children:"Cancel"})})]})}),(0,i.jsx)(U.UnlockModal,{}),(0,i.jsxs)(p.az,{textAlign:"right",children:[(0,i.jsxs)(p.az,{mr:1,style:{float:"left"},children:[(0,i.jsx)(p.In,{color:He>=3?"good":He>=2?"teal":He>=1?"average":"bad",name:He>=2?"flask":He>=1?"hourglass":"times"}),He>=2?" Researched":He>=1?" In Progress":" Not Researched"]}),!Be&&!!ft&&He===0&&(0,i.jsx)(p.$n,{icon:"flask",disabled:le>ae,onClick:function(){return q("researchmut",{ref:ke,sample:!!xe})},color:"teal",children:"Research"}),Oe&&(0,i.jsx)(p.$n,{icon:"check",disabled:!dt,onClick:function(){return q("activate",{ref:ke})},color:"blue",children:"Activate"}),He>=3&&!dt&&(0,i.jsx)(p.$n,{icon:"magic",disabled:Pt,onClick:function(){return q("autocomplete",{ref:ke})},children:"Autocomplete DNA"}),R(de,"Analyzer")&&!dt&&Oe&&(0,i.jsx)(p.$n,{disabled:N(de,"Analyzer"),icon:"microscope",color:"average",onClick:function(){return q("analyze",{ref:ke})},children:"Check Stability"}),R(de,"Reclaimer")&&Et&&!!et&&(0,i.jsx)(p.$n,{disabled:N(de,"Reclaimer"),icon:"times",color:"bad",onClick:function(){return q("reclaim",{ref:ke})},children:"Reclaim"}),ye>=0&&He>=2&&Et&&(0,i.jsx)(p.$n,{disabled:ae=2&&Oe&&!!Ge&&(0,i.jsx)(p.$n,{icon:"radiation",disabled:N(de,"Emitter")||ue&&ue.stat>0,color:"bad",onClick:function(){return q("precisionemitter",{ref:ke})},children:"Scramble Gene"}),me>0&&He>=2&&Be&&(0,i.jsx)(p.$n,{disabled:me<=fe.length,icon:"save",color:"average",onClick:function(){return q("save",{ref:ke})},children:"Store"}),He>=2&&!!Rt&&R(de,"Injectors")&&(0,i.jsx)(p.$n,{disabled:N(de,"Injectors"),icon:"syringe",onClick:function(){return q("activator",{ref:ke})},children:"Activator"}),He>=2&&!!Rt&&Ee>=0&&Et&&(0,i.jsx)(p.$n,{disabled:N(de,"Injectors")||ae/g);return q==null?void 0:q.map(function(ee,oe){return(0,i.jsx)("p",{children:ee},oe)})},H=function(Q){var J=(0,x.Oc)(),X=J.data,q=J.act,ee=X.activeGene,oe=Q.genes,re=Q.noSelection,ae=Q.noGenes,le=O(Q,["genes","noSelection","noGenes"]),de=oe.find(function(ue){return ue.ref===ee}),me,fe=(me={},me[P.None]={icon:"question",color:"grey"},me[P.InProgress]={icon:"hourglass",color:"average"},me[P.Done]={icon:"flask",color:"teal"},me[P.Activated]={icon:"flask",color:"good"},me);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p.so,{wrap:!0,mb:1,children:oe.map(function(ue){return(0,i.jsx)(p.so.Item,{grow:1,textAlign:"center",children:(0,i.jsx)(p.$n,{icon:fe[ue.research].icon,color:ue.ref===ee?"black":fe[ue.research].color,onClick:function(){return q("setgene",{ref:ue.ref})},tooltip:ue.research===P.InProgress?"Researching...":ue.name,tooltipPosition:"left",width:"80%"})},ue.ref)})}),!oe.length&&(ae||"No genes found."),!!oe.length&&!de&&(re||"Select a gene to view it."),de&&(0,i.jsx)(W,C({gene:de,showSequence:!0},le),de.ref)]})}},33198:function(Y,T,s){"use strict";s.r(T),s.d(T,{DNASequence:function(){return _},Nucleotide:function(){return C}});var i=s(20462),p=s(2686),x=s(41910);function y(){return y=Object.assign||function(O){for(var A=1;A=0)&&(S[R]=O[R]);return S}var L={"?":"grey",A:"red",T:"blue",C:"yellow",G:"green"},U={"":"good",X:"grey",1:"good",2:"olive",3:"average",4:"orange",5:"bad"},_=function(O){for(var A=(0,x.Oc)().act,S=O.gene,P=O.isPotential,R=S.dna,N=!0,W=[],V=0;V=0)&&(O[S]=_[S]);return O}var U=(0,x.memo)(function(_){var C=_.name,O=_.size,A=_.style,S=A===void 0?{}:A,P=L(_,["name","size","style"]);return O&&(S.fontSize=O*100+"%"),(0,i.jsx)(y.az,w({as:"i",className:(0,p.Ly)(["GeneIcon","GeneIcon--"+C]),style:S},P))})},4478:function(Y,T,s){"use strict";s.r(T),s.d(T,{GeneTek:function(){return P}});var i=s(20462),p=s(2686),x=s(41910),y=s(66272),w=s(70818),L=s(12437),U=s(74864),_=s(71329),C=s(21470),O=s(14097);function A(){return A=Object.assign||function(R){for(var N=1;N0?(R/10).toFixed(0)+"s":"Ready"},P=function(){var R=(0,x.Oc)(),N=R.data,W=R.act,V=(0,x.QY)("menu","research"),H=V[0],Q=V[1],J=(0,x.QY)("buymats",0),X=J[0],q=J[1],ee=(0,x.QY)("iscombining",!1),oe=ee[0],re=N.materialCur,ae=N.materialMax,le=N.currentResearch,de=N.equipmentCooldown,me=N.subject,fe=N.costPerMaterial,ue=N.budget,ye=N.record,Ee=N.scannerAlert,se=N.scannerError,pe=N.allowed,ge=me||{},Ie=ge.name,xe=ge.stat,Oe=ge.health,Be=ge.stability,Ke=Math.min(ae-re,Math.floor(ue/fe)),ke=se?{danger:!0}:{info:!0};return(0,i.jsx)(y.p8,{theme:pe?"genetek":"genetek-disabled",width:750,height:570,children:(0,i.jsxs)(p.so,{height:"100%",children:[(0,i.jsx)(p.so.Item,{width:"245px",height:"100%",style:{padding:"5px 5px 5px 5px"},children:(0,i.jsxs)(p.so,{direction:"column",height:"100%",children:[!pe&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{style:{color:"#ff3333",textAlign:"center"},children:"Insufficient access to interact."}),(0,i.jsx)(p.cG,{})]}),(0,i.jsxs)(p.so,{style:{zIndex:1},children:[(0,i.jsxs)(p.z2,{value:re,maxValue:ae,mb:1,children:[(0,i.jsx)(p.az,{position:"absolute",bold:!0,children:"Materials"}),re," / ",ae]}),(0,i.jsx)(p.so.Item,{ml:1,children:(0,i.jsx)(p.$n,{circular:!0,compact:!0,icon:"dollar-sign",disabled:Ke<=0,onClick:function(){return q(1)}})})]}),me&&(0,i.jsxs)(p.Ki,{children:[(0,i.jsx)(p.Ki.Item,{label:"Occupant",children:Ie}),Oe&&(0,i.jsx)(p.Ki.Item,{label:"Health",children:(0,i.jsx)(p.z2,{ranges:{bad:[-1/0,.15],average:[.15,.75],good:[.75,1/0]},value:Oe,children:!xe||xe<2?Oe<=0?(0,i.jsxs)(p.az,{color:"bad",children:[(0,i.jsx)(p.In,{name:"exclamation-triangle"})," Critical"]}):(Oe*100).toFixed(0)+"%":(0,i.jsxs)(p.az,{children:[(0,i.jsx)(p.In,{name:"skull"})," Deceased"]})})}),Be&&(0,i.jsx)(p.Ki.Item,{label:"Stability",children:(0,i.jsx)(p.z2,{ranges:{bad:[-1/0,15],average:[15,75],good:[75,1/0]},value:Be,maxValue:100})})]}),(0,i.jsx)(p.cG,{}),(0,i.jsx)(p.so.Item,{grow:1,style:{overflow:"hidden"},children:le.map(function(Ve){var lt;return(0,i.jsxs)(p.z2,{value:Ve.total&&Ve.current?Ve.total-Ve.current:0,maxValue:Ve.total,mb:1,children:[(0,i.jsx)(p.az,{position:"absolute",children:Ve.name}),(0,i.jsx)(p.qT,{auto:!0,value:(lt=Ve.current)!=null?lt:0,format:S})]},Ve.ref)})}),!!Ee&&(0,i.jsx)(p.IC,A({},ke,{children:Ee})),(0,i.jsx)(p.cG,{}),(0,i.jsx)(p.Ki,{children:de.map(function(Ve){return(0,i.jsx)(p.Ki.Item,{label:Ve.label,children:Ve.cooldown<0?"Ready":(0,i.jsx)(p.qT,{auto:!0,value:Ve.cooldown,format:S})},Ve.label)})})]})}),(0,i.jsx)(y.p8.Content,{scrollable:!0,children:(0,i.jsx)(p.so.Item,{children:(0,i.jsxs)(p.az,{ml:"250px",children:[(0,i.jsxs)(p.tU,{children:[(0,i.jsx)(p.tU.Tab,{icon:"flask",selected:H==="research",onClick:function(){return Q("research")},children:"Research"}),(0,i.jsx)(p.tU.Tab,{icon:"radiation",selected:H==="mutations",onClick:function(){return Q("mutations")},children:"Mutations"}),(0,i.jsx)(p.tU.Tab,{icon:"server",selected:H==="storage"||!ye&&H==="record",onClick:function(){return Q("storage")},children:"Storage"}),!!ye&&(0,i.jsx)(p.tU.Tab,{icon:"save",selected:H==="record",onClick:function(){return Q("record")},rightSlot:H==="record"&&(0,i.jsx)(p.$n,{circular:!0,compact:!0,color:"transparent",icon:"times",onClick:function(){return W("clearrecord")}}),children:"Record"}),me&&(0,i.jsx)(p.tU.Tab,{icon:"dna",selected:H==="scanner",onClick:function(){return Q("scanner")},children:"Scanner"})]}),X>0&&(0,i.jsx)(w.BuyMaterialsModal,{maxAmount:Ke}),!!oe&&(0,i.jsx)(L.CombineGenesModal,{}),H==="research"&&(0,i.jsx)(_.ResearchTab,{maxBuyMats:Ke,setBuyMats:q}),H==="mutations"&&(0,i.jsx)(U.MutationsTab,{}),H==="storage"&&(0,i.jsx)(O.StorageTab,{}),H==="record"&&(ye?(0,i.jsx)(O.RecordTab,{}):(0,i.jsx)(O.StorageTab,{})),H==="scanner"&&(0,i.jsx)(C.ScannerTab,{})]})})})]})})}},70818:function(Y,T,s){"use strict";s.r(T),s.d(T,{BuyMaterialsModal:function(){return w}});var i=s(20462),p=s(2686),x=s(41910),y=s(65993);var w=function(L){var U=(0,x.Oc)(),_=U.data,C=U.act,O=(0,x.QY)("buymats",0),A=O[0],S=O[1],P=L.maxAmount,R=_.budget,N=_.costPerMaterial,W=Math.min(A,P);return(0,i.jsx)(y.aF,{full:!0,children:(0,i.jsxs)(p.az,{position:"relative",width:18,children:[(0,i.jsx)(p.az,{position:"absolute",right:1,top:0,children:(0,i.jsx)(p.N6,{inline:!0,value:W,onChange:function(V,H){return S(H)},minValue:1,maxValue:P})}),(0,i.jsxs)(p.Ki,{children:[(0,i.jsxs)(p.Ki.Item,{label:"Purchase",children:[W,W===1?" Material":" Materials"]}),(0,i.jsx)(p.Ki.Item,{label:"Budget",children:""+R+" Credits"}),(0,i.jsx)(p.Ki.Item,{label:"Cost",children:""+W*N+" Credits"}),(0,i.jsx)(p.Ki.Divider,{}),(0,i.jsxs)(p.Ki.Item,{label:"Remainder",children:[(0,i.jsx)(p.az,{inline:!0,color:R-W*N<0&&"bad",children:R-W*N})," Credits"]})]}),(0,i.jsx)(p.cG,{hidden:!0}),(0,i.jsx)(p.az,{inline:!0,width:"50%",textAlign:"center",children:(0,i.jsx)(p.$n,{color:"good",icon:"dollar-sign",disabled:W<=0,onClick:function(){C("purchasematerial",{amount:W}),S(0)},children:"Submit"})}),(0,i.jsx)(p.az,{inline:!0,width:"50%",textAlign:"center",children:(0,i.jsx)(p.$n,{color:"bad",icon:"times",onClick:function(){return S(0)},children:"Cancel"})})]})})}},12437:function(Y,T,s){"use strict";s.r(T),s.d(T,{CombineGenesModal:function(){return w}});var i=s(20462),p=s(2686),x=s(41910),y=s(65993);var w=function(){var L=(0,x.Oc)(),U=L.data,_=L.act,C=(0,x.QY)("iscombining",!1),O=C[0],A=C[1],S=U.savedMutations,P=U.combining,R=P===void 0?[]:P;return(0,i.jsxs)(y.aF,{full:!0,width:20,children:[(0,i.jsx)(p.wn,{title:"Select",children:(0,i.jsx)(p.BJ,{vertical:!0,children:S.map(function(N){return(0,i.jsx)(p.BJ.Item,{children:(0,i.jsx)(p.$n.Checkbox,{checked:R.indexOf(N.ref)>=0,onClick:function(){return _("togglecombine",{ref:N.ref})},children:N.name})},N.ref)})})}),(0,i.jsxs)(p.az,{textAlign:"center",children:[(0,i.jsx)(p.$n,{color:"bad",icon:"times",onClick:function(){return A(!1)},children:"Cancel"}),(0,i.jsx)(p.$n,{icon:"sitemap",disabled:!R.length,onClick:function(){_("combinegenes"),A(!1)},children:"Combine"})]})]})}},49020:function(Y,T,s){"use strict";s.r(T),s.d(T,{UnlockModal:function(){return w}});var i=s(20462),p=s(2686),x=s(41910),y=s(65993);var w=function(){var L=(0,x.Oc)(),U=L.data,_=L.act,C=(0,x.QY)("unlockcode",""),O=C[0],A=C[1],S=U.autoDecryptors,P=U.unlock;if(P)return(0,i.jsx)(y.aF,{full:!0,children:(0,i.jsxs)(p.az,{width:22,mr:2,children:[(0,i.jsxs)(p.Ki,{children:[(0,i.jsxs)(p.Ki.Item,{label:"Detected Length",children:[P.length," characters"]}),(0,i.jsx)(p.Ki.Item,{label:"Possible Characters",children:P.chars.join(" ")}),(0,i.jsx)(p.Ki.Divider,{}),(0,i.jsx)(p.Ki.Item,{label:"Enter Unlock Code",children:(0,i.jsx)(p.pd,{value:O,onChange:function(R,N){return A(N.toUpperCase())}})}),(0,i.jsx)(p.Ki.Divider,{}),(0,i.jsxs)(p.Ki.Item,{label:"Correct Characters",children:[P.correctChar," of ",P.length]}),(0,i.jsxs)(p.Ki.Item,{label:"Correct Positions",children:[P.correctPos," of ",P.length]}),(0,i.jsxs)(p.Ki.Item,{label:"Attempts Remaining",children:[P.tries," before mutation"]})]}),(0,i.jsx)(p.az,{textAlign:"right",mt:2,children:(0,i.jsx)(p.$n,{icon:"magic",color:"average",tooltip:"Auto-Decryptors Available: "+S,disabled:S<1,onClick:function(){A(""),_("unlock",{code:"UNLOCK"})},children:"Use Auto-Decryptor"})}),(0,i.jsxs)(p.az,{textAlign:"right",mt:1,children:[(0,i.jsx)(p.$n,{mr:1,icon:"check",color:"good",tooltip:O.length!==P.length?"Code is the wrong length.":O.split("").some(function(R){return P.chars.indexOf(R)===-1})?"Invalid character in code.":"",disabled:O.length!==P.length||O.split("").some(function(R){return P.chars.indexOf(R)===-1}),onClick:function(){A(""),_("unlock",{code:O})},children:"Attempt Decryption"}),(0,i.jsx)(p.$n,{icon:"times",color:"bad",onClick:function(){A(""),_("unlock",{code:null})},children:"Cancel"})]})]})})}},74864:function(Y,T,s){"use strict";s.r(T),s.d(T,{MutationsTab:function(){return w}});var i=s(20462),p=s(2686),x=s(41910),y=s(4851);var w=function(){var L=(0,x.Oc)().data,U=(0,x.QY)("mutsortmode","time"),_=U[0],C=U[1],O=(0,x.QY)("showSequence",!1),A=O[0],S=O[1],P=(L.bioEffects||[]).slice(0);return _==="time"?P.sort(function(R,N){return R.time-N.time}):_==="alpha"&&P.sort(function(R,N){return R.name>N.name?1:R.name0&&(0,i.jsxs)(p.Ki.Item,{label:"Mutations Stored",children:[H.length," / ",N]}),(0,i.jsx)(p.Ki.Item,{label:"Auto-Decryptors",children:R})]})}),(0,i.jsx)(p.wn,{title:"Available Research",children:W.map(function(q,ee){return(0,i.jsx)(p.wn,{title:"Tier "+(ee+1),children:q.length?q.map(function(oe){if(!(oe!=null&&oe.ref))return null;var re=Q[oe.ref];return re?(0,i.jsx)(p.wn,{title:re.name,buttons:(0,i.jsx)(p.$n,{icon:"flask",disabled:Oee.name?1:-1}),(0,i.jsxs)(i.Fragment,{children:[W>0&&(0,i.jsx)(p.wn,{title:"Stored Mutations",buttons:(0,i.jsx)(p.$n,{icon:"sitemap",onClick:function(){return N(!0)},children:"Combine"}),children:H.length?H.map(function(q){return(0,i.jsx)(y.BioEffect,{gene:q,showSequence:!0,isStorage:!0},q.ref)}):"There are no mutations in storage."}),(0,i.jsx)(p.wn,{title:"Stored Chromosomes",children:X.length?(0,i.jsx)(p.Ki,{children:X.map(function(q){return(0,i.jsxs)(p.Ki.Item,{label:q.name,buttons:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p.$n,{disabled:q.name===J,icon:"map-marker-alt",onClick:function(){return C("splicechromosome",{ref:q.ref})},children:"Splice"}),(0,i.jsx)(p.$n,{color:"bad",icon:"trash",onClick:function(){return C("deletechromosome",{ref:q.ref})}})]}),children:[q.desc,(0,i.jsxs)(p.az,{mt:.5,children:[(0,i.jsx)(p.az,{inline:!0,color:"grey",children:"Stored Copies:"})," "+q.count]})]},q.ref)})}):"There are no chromosomes in storage."}),(0,i.jsx)(p.wn,{title:"DNA Samples",children:(0,i.jsx)(p.Ki,{children:V.map(function(q){return(0,i.jsx)(p.Ki.Item,{label:q.name,buttons:(0,i.jsx)(p.$n,{icon:"save",onClick:function(){C("setrecord",{ref:q.ref}),S("record")},children:"View Record"}),children:(0,i.jsx)("code",{children:q.uid})},q.ref)})})})]})},L=function(){var U=(0,x.Oc)().data,_=U.record;if(_){var C=_.name,O=_.uid,A=_.genes;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p.wn,{title:C,children:(0,i.jsx)(p.Ki,{children:(0,i.jsx)(p.Ki.Item,{label:"Genetic Signature",children:(0,i.jsx)("code",{children:O})})})}),(0,i.jsx)(p.wn,{children:(0,i.jsx)(y.GeneList,{genes:A,noGenes:"No genes found in sample.",isSample:!0})})]})}}},244:function(Y,T,s){"use strict";s.r(T);var i=function(x){return x[x.NONE=0]="NONE",x[x.IN_PROGRESS=1]="IN_PROGRESS",x[x.DONE=2]="DONE",x[x.ACTIVATED=3]="ACTIVATED",x}(i||{}),p=function(x){return x[x.Alive=0]="Alive",x[x.Unconscious=1]="Unconscious",x[x.Dead=2]="Dead",x}(p||{})},34170:function(Y,T,s){"use strict";s.r(T),s.d(T,{GimmickObject:function(){return w}});var i=s(20462),p=s(2686),x=s(41910),y=s(66272),w=function(){var L=(0,x.Oc)(),U=L.act,_=L.data,C=_.eventList,O=_.interactiveTypes,A=_.activeStage,S=_.icon,P=_.iconState;return(0,i.jsx)(y.p8,{title:"Gimmick Object Editor",width:675,height:600,children:(0,i.jsx)(y.p8.Content,{scrollable:!0,children:(0,i.jsxs)(p.wn,{title:"Edit Interactive Steps",children:[(0,i.jsx)(p.so,{direction:"column",children:Object.keys(C).map(function(R,N){return(0,i.jsx)(p.so.Item,{children:(0,i.jsx)(p.wn,{title:N,children:(0,i.jsxs)(p.so.Item,{mb:1,children:[(0,i.jsx)(p.m_,{content:"Move Step Down",children:(0,i.jsx)(p.$n,{icon:"angle-down",disabled:parseInt(R,10)>=C.length-1,onClick:function(){return U("move-down",{event:N})}})}),(0,i.jsx)(p.m_,{content:"Move Step Down",children:(0,i.jsx)(p.$n,{icon:"angle-up",disabled:parseInt(R,10)<=0,onClick:function(){return U("move-up",{event:N})}})}),(0,i.jsx)(p.m_,{content:"Make Active Step",children:(0,i.jsx)(p.$n,{icon:"play",disabled:parseInt(R,10)===parseInt(A,10)-1,onClick:function(){return U("active_step",{event:N})}})}),(0,i.jsx)(p.m_,{content:"Remove step from Gimmick",children:(0,i.jsx)(p.$n,{icon:"trash",color:"red",onClick:function(){return U("delete_event",{event:N})}})}),(0,i.jsxs)(p.Ki,{children:[(0,i.jsx)(p.m_,{content:"Set Tool Interactive Flags (Blank will be AttackHand)",children:(0,i.jsx)(p.Ki.Item,{label:"Interactive Flags",children:Object.keys(O).map(function(W,V){return(0,i.jsx)(p.$n,{selected:C[R].interaction&O[W],onClick:function(){return U("interaction",{event:N,value:O[W]})},children:W},V)})})}),(0,i.jsx)(p.m_,{content:"Hint appended to examine text",children:(0,i.jsx)(p.Ki.Item,{label:"Description",children:(0,i.jsx)(p.pd,{fluid:!0,value:C[R].description,onInput:function(W,V){return U("description",{event:N,value:V})}})})}),(0,i.jsx)(p.m_,{content:"Actionbar Duration",children:(0,i.jsxs)(p.Ki.Item,{label:"Duration",children:[(0,i.jsx)(p.Q7,{animated:!0,width:"7em",value:C[R].duration,minValue:1,maxValue:9e4,step:1,onChange:function(W){return U("duration",{event:N,value:W})}}),"Seconds"]})}),(0,i.jsx)(p.m_,{content:"Visible Text Appended after [src]",children:(0,i.jsx)(p.Ki.Item,{label:"Visible Message",children:(0,i.jsx)(p.pd,{fluid:!0,value:C[R].message,onInput:function(W,V){return U("message",{event:N,value:V})}})})})]}),(0,i.jsx)(p.m_,{content:"Notify in-game admins that action was performed",children:(0,i.jsx)(p.$n,{icon:"flag",selected:C[R].notify,onClick:function(){return U("notify",{event:N,value:!C[R].notify})},children:"Notify Admins"})})]})})},N)})}),(0,i.jsx)(p.az,{m:1,children:(0,i.jsx)(p.$n,{onClick:function(){return U("add_new")},children:"Add Event"})})]})})})}},49441:function(Y,T,s){"use strict";s.r(T),s.d(T,{GlassRecycler:function(){return C}});var i=s(20462),p=s(61358),x=s(2686),y=s(27997),w=s(41910),L=s(66272),U=s(26376),_=function(O){var A=O.product,S=A.name,P=A.cost,R=A.img,N=O.disabled,W=O.onClick;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(x.so,{direction:"row",align:"center",children:[(0,i.jsx)(x.so.Item,{children:(0,i.jsx)("img",{src:"data:image/png;base64,"+R,style:{verticalAlign:"middle"}})}),(0,i.jsxs)(x.so.Item,{grow:1,children:[(0,i.jsx)(x.az,{bold:!0,children:(0,U.capitalize)(S)}),(0,i.jsx)(x.az,{children:"Cost: "+P+" "+(0,y.td)("Unit",P)})]}),(0,i.jsx)(x.so.Item,{children:(0,i.jsx)(x.$n,{onClick:W,disabled:N,children:"Create"})})]}),(0,i.jsx)(x.cG,{})]})},C=function(){var O=(0,w.Oc)(),A=O.act,S=O.data,P=S.glassAmt,R=S.products,N=(0,p.useState)(!1),W=N[0],V=N[1];return(0,i.jsx)(L.p8,{title:"Glass Recycler",width:300,height:400,children:(0,i.jsx)(L.p8.Content,{children:(0,i.jsxs)(x.BJ,{vertical:!0,fill:!0,children:[(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(x.wn,{children:(0,i.jsxs)(x.so,{direction:"row",align:"center",children:[(0,i.jsx)(x.so.Item,{grow:1,children:(0,i.jsx)(x.az,{children:"Glass: "+P+" "+(0,y.td)("Unit",P)})}),(0,i.jsx)(x.so.Item,{children:(0,i.jsx)(x.$n.Checkbox,{checked:W,onClick:function(){return V(!W)},children:"Filter Available"})})]})})}),(0,i.jsx)(x.BJ.Item,{grow:1,children:(0,i.jsx)(x.wn,{fill:!0,scrollable:!0,title:"Products",children:R.filter(function(H){var Q=H.cost;return!W||P>=Q}).map(function(H){var Q=H.cost,J=H.type;return(0,i.jsx)(_,{product:H,disabled:P0&&(0,i.jsx)(L,{name:oe.name,colour:oe.color,accesses:oe.accesses,target_accesses:J},oe.name)})}),(0,i.jsx)(x.wn,{title:"Custom Card Look",children:ee.map(function(oe){return(0,i.jsxs)(x.$n,{onClick:function(){return C("colour",{colour:oe.style})},selected:oe.card_look===W,children:[(0,i.jsx)(x._V,{verticalAlign:"middle",my:"0.2rem",mr:"0.5rem",height:"24px",width:"24px",src:"data:image/png;base64,"+oe.icon}),oe.name]},oe.style)})})]}),A==="unauthenticated"&&V&&P&&(0,i.jsxs)(x.IC,{mt:"0.5rem",danger:!0,children:["Identity ",(0,i.jsx)("em",{children:V})," unauthorized to perform ID modifications."]})]})]})})})}},64154:function(Y,T,s){"use strict";s.r(T),s.d(T,{BeakerFlavor:function(){return U},IceCreamMachine:function(){return _},StandardFlavors:function(){return L}});var i=s(20462),p=s(2686),x=s(41910),y=s(66272),w=s(15180);var L=function(){var C=(0,x.Oc)(),O=C.act,A=C.data,S=A.flavors;return(0,i.jsx)(p.wn,{title:"Standard Flavors",children:S.map(function(P,R){return(0,i.jsxs)(p.$n,{className:"chem-dispenser__dispense-buttons",align:"left",width:"130px",m:".1rem",onClick:function(){return O("make_ice_cream",{flavor:P.name})},children:[(0,i.jsx)(p.In,{color:"rgba("+P.colorR+","+P.colorG+", "+P.colorB+", 1)",name:"circle",pt:1,style:{textShadow:"0 0 3px #000"}}),P.name]},R)})})},U=function(){var C=(0,x.Oc)(),O=C.act,A=C.data,S=A.beaker;return(0,i.jsxs)(p.wn,{title:"Custom Flavor",fill:!0,children:[(0,i.jsx)(w.ReagentGraph,{container:S}),(0,i.jsxs)(p.so,{wrap:!0,children:[(0,i.jsx)(p.so.Item,{children:(0,i.jsx)(p.$n,{mt:".5rem",mr:".5rem",className:"chem-dispenser__dispense-buttons",icon:"check",color:"green",disabled:!S||!S.totalVolume,tooltip:S&&!S.totalVolume?"Beaker Is Empty":"",onClick:function(){return O("make_ice_cream",{flavor:"beaker"})},children:"Make Custom Ice Cream"},"beaker")}),(0,i.jsx)(p.so.Item,{children:(0,i.jsx)(p.$n,{mt:".5rem",className:"chem-dispenser__dispense-buttons",icon:"eject",onClick:function(){return O(S?"eject_beaker":"insert_beaker")},children:S?"Eject "+S.name+" ("+S.totalVolume+"/"+S.maxVolume+")":"Insert Beaker"})})]})]})},_=function(){var C=(0,x.Oc)(),O=C.act,A=C.data,S=A.cone;return(0,i.jsx)(y.p8,{title:"Ice Cream-O-Mat 6300",width:440,height:275,children:(0,i.jsx)(y.p8.Content,{children:(0,i.jsxs)(p.BJ,{m:"0.25rem",vertical:!0,fill:!0,children:[(0,i.jsx)(p.BJ.Item,{children:(0,i.jsx)(L,{})}),(0,i.jsx)(p.BJ.Item,{children:(0,i.jsx)(U,{})}),(0,i.jsx)(p.BJ.Item,{m:".25rem",children:(0,i.jsx)(p.$n,{mt:"0.5rem",icon:"eject",className:"chem-dispenser__buttons",disabled:!S,onClick:function(){return O("eject_cone")},children:"Eject Cone"})})]})})})}},89710:function(Y,T,s){"use strict";s.r(T),s.d(T,{JobManager:function(){return U}});var i=s(20462),p=s(2686),x=s(41910),y=s(66272);var w=function(_){var C=_.name,O=_.count,A=_.limit,S=_.type,P=_.onEdit,R=_.onAlterCap,N=_.onRemove;return(0,i.jsx)(p.Ki.Item,{label:C,buttons:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p.$n,{tooltip:"Alter Cap",onClick:R,children:O+"/"+A}),(0,i.jsx)(p.$n,{icon:"edit",tooltip:"Edit Job",onClick:P}),S==="created"&&(0,i.jsx)(p.$n.Confirm,{icon:"trash",color:"bad",tooltip:"Remove Job",onClick:N})]})})},L=function(_){var C=_.title,O=_.jobs,A=_.act;return(0,i.jsx)(p.Nt,{title:C,children:(0,i.jsx)(p.Ki,{children:O.map(function(S){return(0,i.jsx)(w,{name:S.name,count:S.count,limit:S.limit,type:S.type,onEdit:function(){return A("edit",{job:S.name})},onAlterCap:function(){return A("alter_cap",{job:S.name})},onRemove:function(){return A("remove_job",{job:S.name})}},S.name)})})})},U=function(){var _=(0,x.Oc)(),C=_.act,O=_.data,A=O.stapleJobs,S=A===void 0?[]:A,P=O.specialJobs,R=P===void 0?[]:P,N=O.hiddenJobs,W=N===void 0?[]:N,V=O.allowSpecialJobs,H=[{name:"Command Jobs",jobs:S.filter(function(Q){return Q.type==="command"})},{name:"Security Jobs",jobs:S.filter(function(Q){return Q.type==="security"})},{name:"Research Jobs",jobs:S.filter(function(Q){return Q.type==="research"})},{name:"Engineering Jobs",jobs:S.filter(function(Q){return Q.type==="engineering"})},{name:"Civilian Jobs",jobs:S.filter(function(Q){return Q.type==="civilian"})}];return!S.length&&!R.length&&!W.length?(0,i.jsx)(y.p8,{title:"Job Manager",width:400,height:600,children:(0,i.jsx)(y.p8.Content,{scrollable:!0,children:(0,i.jsx)(p.IC,{children:"No jobs found."})})}):(0,i.jsx)(y.p8,{title:"Job Manager",width:500,height:600,children:(0,i.jsx)(y.p8.Content,{scrollable:!0,children:(0,i.jsxs)(p.wn,{title:"Job Controls",children:[H.map(function(Q){return(0,i.jsx)(L,{title:Q.name,jobs:Q.jobs,act:C},Q.name)}),(0,i.jsx)(L,{title:"Special Jobs",jobs:R,act:C}),(0,i.jsx)(L,{title:"Hidden Jobs",jobs:W,act:C}),(0,i.jsx)(p.$n.Checkbox,{checked:V,onClick:function(){return C("toggle_special_jobs")},children:"Special Jobs"}),(0,i.jsx)(p.$n,{onClick:function(){return C("job_creator")},children:"Create New Job"})]})})})}},15021:function(Y,T,s){"use strict";s.r(T),s.d(T,{Laundry:function(){return w}});var i=s(20462),p=s(2686),x=s(41910),y=s(66272),w=function(){var O=(0,x.Oc)().data,A=O.on;return(0,i.jsx)(y.p8,{title:"Washman 550",width:400,height:100,children:(0,i.jsxs)(y.p8.Content,{children:[(0,i.jsx)(p.az,{textAlign:"center",mb:1,children:A?(0,i.jsx)(L,{}):(0,i.jsx)(U,{})}),(0,i.jsxs)(p.az,{textAlign:"center",children:[(0,i.jsx)(_,{}),(0,i.jsx)(C,{})]})]})})},L=function(){return(0,i.jsx)(p.IC,{info:!0,children:"Please wait, machine is currently running."})},U=function(){return(0,i.jsx)(p.IC,{info:!0,children:'Insert items and press "Turn On" to start.'})},_=function(){var O=(0,x.Oc)(),A=O.act,S=O.data,P=S.on;return(0,i.jsx)(p.$n,{disabled:P,color:P?"":"good",icon:"fas fa-power-off",onClick:function(){return A("cycle")},children:"Turn On"})},C=function(){var O=(0,x.Oc)(),A=O.act,S=O.data,P=S.on,R=S.door;return(0,i.jsx)(p.$n,{disabled:P,color:R?"orange":"",icon:R?"fas fa-door-open":"fas fa-door-closed",onClick:function(){return A("door")},children:R?"Open":"Closed"})}},54708:function(Y,T,s){"use strict";s.r(T),s.d(T,{ListInputModal:function(){return U}});var i=s(20462),p=s(61358),x=s(2686),y=s(6544),w=s(41910),L=s(5335);var U=function(O){var A=O.items,S=A===void 0?[]:A,P=O.default_item,R=O.message,N=O.on_selected,W=O.on_cancel,V=O.start_with_search,H=O.capitalize,Q=(0,p.useState)(S.indexOf(P)),J=Q[0],X=Q[1],q=(0,p.useState)(V),ee=q[0],oe=q[1],re=(0,p.useState)(""),ae=re[0],le=re[1],de=function(){var ge;if(ee)return(ge=document.getElementById("search_bar"))==null?void 0:ge.getElementsByTagName("input")[0]},me=function(ge){var Ie,xe=pe.length-1,Oe=-1;switch(ge){case y.gf:Oe=-1;break;case y.R:Oe=1;break;case y.bE:Oe=-10;break;case y.S$:Oe=10;break}var Be=J+Oe;Be<0&&Math.abs(Oe)===1&&(Be=xe),Be>xe&&Math.abs(Oe)===1&&(Be=0),Be<0&&(Be=0),Be>xe&&(Be=xe),X(Be),(Ie=document.getElementById(Be.toString()))==null||Ie.focus()},fe=function(ge){ge!==J&&X(ge)},ue=function(ge){var Ie=de();Ie&&(Ie.focus(),Ie.value+=ge,Ee(Ie.value))},ye=function(ge){var Ie=String.fromCharCode(ge),xe=S.findIndex(function(Be,Ke){return(Be==null?void 0:Be.toLowerCase().startsWith(Ie==null?void 0:Ie.toLowerCase()))&&Ke>J});if(xe===-1&&(xe=S.findIndex(function(Be,Ke){return(Be==null?void 0:Be.toLowerCase().startsWith(Ie==null?void 0:Ie.toLowerCase()))&&Ke<=J})),xe!==-1){var Oe;X(xe),(Oe=document.getElementById(xe.toString()))==null||Oe.focus()}},Ee=function(ge){if(ge!==ae){var Ie=pe[J],xe=S.filter(function(ke){return ke.toLowerCase().includes(ge.toLowerCase())}),Oe=xe.indexOf(Ie);if(Oe===-1&&xe.length>0){var Be;X(0),(Be=document.getElementById("0"))==null||Be.scrollIntoView()}else if(xe.length!==0){var Ke;X(Oe),(Ke=document.getElementById(Oe.toString()))==null||Ke.scrollIntoView()}le(ge)}},se=function(){oe(!ee),le("")},pe=S.filter(function(ge){return ge==null?void 0:ge.toLowerCase().includes(ae.toLowerCase())});return ee||setTimeout(function(){var ge;return(ge=document.getElementById(J.toString()))==null?void 0:ge.focus()},1),(0,i.jsx)(x.wn,{onKeyDown:function(ge){var Ie=window.event?ge.which:ge.keyCode,xe=de(),Oe=document.activeElement===xe,Be=pe.length-1;switch(Ie){case y.R:case y.gf:case y.bE:case y.S$:ge.preventDefault(),me(Ie);break;case y.Pf:if(ge.ctrlKey){oe(!ee),le(""),ge.preventDefault(),ee&&xe&&xe.focus();return}break;case y.Ri:ge.preventDefault(),N(pe[J]);break;case y.s6:ge.preventDefault(),W();break;case y.iX:var Ke;X(0),(Ke=document.getElementById("0"))==null||Ke.focus(),ge.preventDefault();break;case y.u5:var ke;X(Be),(ke=document.getElementById(Be.toString()))==null||ke.focus(),ge.preventDefault();break;case y.aW:if(ee){var Ve=document.getElementById(J.toString());Oe&&Ve?Ve.focus():xe&&!Oe&&xe.focus(),ge.preventDefault()}break}!ee&&y.W8<=Ie&&Ie<=y.bh&&(ge.preventDefault(),ye(Ie))},buttons:(0,i.jsx)(x.$n,{compact:!0,icon:ee?"search":"font",selected:!0,tooltip:ee?"Search Mode. Type to search or use arrow keys to select manually.":"Hotkey Mode. Type a letter to jump to the first match. Enter to select.",tooltipPosition:"left",onClick:function(){return se()}}),className:"ListInput__Section",fill:!0,title:R,children:(0,i.jsxs)(x.BJ,{fill:!0,vertical:!0,children:[(0,i.jsx)(x.BJ.Item,{grow:!0,children:(0,i.jsx)(_,{filteredItems:pe,onClick:fe,onFocusSearch:ue,searchBarVisible:ee,selected:J,capitalize:H})}),ee!==!1&&(0,i.jsx)(C,{filteredItems:pe,onSearch:Ee,searchQuery:ae,selected:J}),(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(L.InputButtons,{input:pe[J],on_submit:function(){return N(pe[J])},on_cancel:W})})]})})},_=function(O){var A=(0,w.Oc)().act,S=O.filteredItems,P=O.onClick,R=O.onFocusSearch,N=O.searchBarVisible,W=O.selected,V=O.capitalize;return(0,i.jsxs)(x.wn,{fill:!0,scrollable:!0,children:[(0,i.jsx)(x.y5,{}),S.map(function(H,Q){return(0,i.jsx)(x.$n,{color:"transparent",fluid:!0,id:Q,className:"search-item",onClick:function(){return P(Q)},onDoubleClick:function(J){J.preventDefault(),A("submit",{entry:S[W]})},onKeyDown:function(J){var X=window.event?J.which:J.keyCode;if(N&&J.key.length===1){var q=String.fromCharCode(X);J.shiftKey||(q=q.toLowerCase()),J.preventDefault(),J.stopPropagation(),R(q)}},selected:Q===W,style:{animation:"none",transition:"none"},children:V?H.replace(/^\w/,function(J){return J.toUpperCase()}):H},Q)})]})},C=function(O){var A=(0,w.Oc)().act,S=O.filteredItems,P=O.onSearch,R=O.searchQuery,N=O.selected;return(0,i.jsx)(x.pd,{autoFocus:!0,autoSelect:!0,fluid:!0,id:"search_bar",onEnter:function(W){W.preventDefault(),A("submit",{entry:S[N]})},onInput:function(W,V){return P(V)},placeholder:"Search...",value:R})}},11311:function(Y,T,s){"use strict";s.r(T),s.d(T,{ListInputWindow:function(){return A}});var i=s(20462),p=s(61282),x=s(61358),y=s(41910),w=s(66272),L=s(44149),U=s(54708);function _(S,P){(P==null||P>S.length)&&(P=S.length);for(var R=0,N=new Array(P);R=S.length?{done:!0}:{done:!1,value:S[N++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var A=function(){var S=(0,y.Oc)(),P=S.act,R=S.data,N=R.items,W=N===void 0?[]:N,V=R.message,H=V===void 0?"":V,Q=R.init_value,J=R.large_buttons,X=R.timeout,q=R.title,ee=R.start_with_search,oe=R.capitalize,re=R.theme,ae=325+Math.ceil(H.length/3)+(J?5:0),le=(0,x.useState)(null),de=le[0],me=le[1];if(de===null){for(var fe=325,ue=(0,p.AM)(),ye=O(W),Ee;!(Ee=ye()).done;){var se=Ee.value;fe=Math.max(fe,(0,p.q_)(se,ue)||0)}me(fe)}return(0,i.jsxs)(w.p8,{title:q,width:de||325,height:ae,theme:re!=null?re:"nanotrasen",children:[X&&(0,i.jsx)(L.Loader,{value:X}),(0,i.jsx)(w.p8.Content,{children:(0,i.jsx)(U.ListInputModal,{items:W,default_item:Q,message:H,on_selected:function(pe){return P("submit",{entry:pe})},on_cancel:function(){return P("cancel")},start_with_search:ee,capitalize:oe})})]})}},49729:function(Y,T,s){"use strict";s.r(T),s.d(T,{LocalGenerator:function(){return L}});var i=s(20462),p=s(2686),x=s(41910),y=s(66272),w=s(95823);var L=function(){var U=(0,x.Oc)(),_=U.act,C=U.data,O=C.name,A=C.holding,S=C.internalCell,P=C.connectedAPC,R=C.chargeAPC,N=C.boltsStatus,W=C.generatorStatus,V=function(){_("toggle-bolts")},H=function(){_("toggle-generator")},Q=function(){_("swap-target")},J=function(){_("eject-tank")},X=function(){_("eject-cell")},q=function(){_("connect-APC")};return(0,i.jsx)(y.p8,{title:O,width:300,height:470,children:(0,i.jsx)(y.p8.Content,{children:(0,i.jsxs)(p.BJ,{vertical:!0,children:[(0,i.jsx)(p.wn,{title:"Generator",children:(0,i.jsxs)(p.BJ,{vertical:!0,children:[(0,i.jsx)(p.BJ.Item,{children:(0,i.jsxs)(p.BJ,{align:"baseline",children:[(0,i.jsx)(p.BJ.Item,{basis:"50%",children:(0,i.jsx)(p.$n,{width:11.4,onClick:function(){return V()},icon:N?"toggle-on":"toggle-off",children:"Toggle Floor Bolts"})}),(0,i.jsx)(p.BJ.Item,{children:"Status:"}),N?(0,i.jsx)(p.BJ.Item,{color:"good",children:"ACTIVE"}):(0,i.jsx)(p.BJ.Item,{color:"average",children:"INACTIVE"})]})}),(0,i.jsx)(p.BJ.Item,{children:(0,i.jsxs)(p.BJ,{align:"baseline",children:[(0,i.jsx)(p.BJ.Item,{basis:"50%",children:(0,i.jsx)(p.$n,{width:11.4,onClick:function(){return H()},icon:W?"toggle-on":"toggle-off",children:"Toggle Generator"})}),(0,i.jsx)(p.BJ.Item,{children:"Status:"}),W?(0,i.jsx)(p.BJ.Item,{color:"good",children:"ACTIVE"}):(0,i.jsx)(p.BJ.Item,{color:"average",children:"INACTIVE"})]})}),(0,i.jsx)(p.BJ.Item,{children:(0,i.jsxs)(p.BJ,{align:"baseline",children:[(0,i.jsx)(p.BJ.Item,{basis:"50%",children:(0,i.jsx)(p.$n,{width:11.4,onClick:function(){return Q()},icon:"bolt",children:"Change Target"})}),(0,i.jsx)(p.BJ.Item,{children:"Target:"}),R?(0,i.jsx)(p.BJ.Item,{color:"good",children:"APC"}):(0,i.jsx)(p.BJ.Item,{color:"good",children:"CELL"})]})})]})}),(0,i.jsx)(w.PortableHoldingTank,{holding:A,onEjectTank:J}),(0,i.jsx)(p.wn,{title:"Internal Cell",height:7.25,buttons:(0,i.jsx)(p.$n,{icon:"eject",disabled:!S,onClick:function(){return X()},children:"Eject"}),children:S?(0,i.jsxs)(p.BJ,{vertical:!0,children:[(0,i.jsx)(p.BJ.Item,{children:(0,i.jsx)(p.az,{children:S.name})}),(0,i.jsx)(p.BJ.Item,{children:(0,i.jsx)(p.z2,{value:S.chargePercent,minValue:0,maxValue:100,color:S.chargePercent<20?"red":S.chargePercent<50?"yellow":"green"})})]}):(0,i.jsx)(p.az,{color:"average",children:"No cell"})}),(0,i.jsx)(p.wn,{title:"Local APC",height:7.25,buttons:(0,i.jsx)(p.$n,{icon:"wifi",disabled:!A,onClick:function(){return q()},children:"Connect"}),children:P?(0,i.jsxs)(p.BJ,{vertical:!0,children:[(0,i.jsx)(p.BJ.Item,{children:(0,i.jsx)(p.az,{children:P.name})}),(0,i.jsx)(p.BJ.Item,{children:(0,i.jsx)(p.z2,{value:P.chargePercent,minValue:0,maxValue:100,color:P.chargePercent<20?"red":P.chargePercent<50?"yellow":"green"})})]}):(0,i.jsx)(p.az,{color:"average",children:"No connected APC"})})]})})})}},96991:function(Y,T,s){"use strict";s.r(T);},18595:function(Y,T,s){"use strict";s.r(T),s.d(T,{LongRangeTeleporter:function(){return w}});var i=s(20462),p=s(2686),x=s(41910),y=s(66272),w=function(){var L=(0,x.Oc)(),U=L.act,_=L.data,C=_.destinations,O=_.receive_allowed,A=_.send_allowed,S=_.syndicate;return(0,i.jsx)(y.p8,{theme:S?"syndicate":"ntos",width:390,height:380,children:(0,i.jsx)(y.p8.Content,{children:(0,i.jsx)(p.wn,{title:"Destinations",children:(0,i.jsx)(p.Ki,{children:C.length?C.map(function(P){return(0,i.jsxs)(p.Ki.Item,{label:P.destination,children:[!!A&&(0,i.jsx)(p.$n,{icon:"sign-out-alt",onClick:function(){return U("send",{target:P.ref,name:P.destination})},children:"Send"}),!!O&&(0,i.jsx)(p.$n,{icon:"sign-in-alt",onClick:function(){return U("receive",{target:P.ref,name:P.destination})},children:"Receive"})]},P.destination)}):(0,i.jsx)(p.Ki.Item,{children:"No destinations are currently available."})})})})})}},84384:function(Y,T,s){"use strict";s.r(T),s.d(T,{BlueprintButton:function(){return O}});var i=s(20462),p=s(2686),x=s(99202),y=s(41242),w=s(6684),L=s(60148),U=s(71820);var _=function(A,S){return(0,x.LI)(A/10/S,.01)},C=function(A,S){var P=function(V){var H=A[V].id,Q=A[V].amount/10,J=S.find(function(X){var q;return R[X.byondRef]>=Q&&((q=X.satisfies)==null?void 0:q.includes(H))});if(J===void 0)return N.push(!1),"continue";R[J.byondRef]-=Q,N.push(!0)};if(!A||!S)return!1;var R={};S.forEach(function(V){return R[V.byondRef]=V.amount});var N=[];for(var W in A)P(W);return N},O=function(A){var S,P,R=A.actionRemoveBlueprint,N=A.actionVendProduct,W=A.blueprintData,V=A.materialData,H=A.manufacturerSpeed,Q=A.deleteAllowed,J=A.hasPower,X=C(W.requirement_data,V);if(!X)return null;var q=X.includes(!1),ee,oe,re=((ee=W==null||(S=W.item_names)==null?void 0:S.length)!=null?ee:0)<2&&((oe=W==null?void 0:W.create)!=null?oe:0)<2&&!(W!=null&&W.apply_material)?null:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("br",{}),"Outputs: ",(0,i.jsx)("br",{}),W==null||(P=W.item_names)==null?void 0:P.map(function(ye,Ee){return(0,i.jsxs)("b",{children:[W.create,"x ",ye,(0,i.jsx)("br",{})]},Ee)})]}),ae=(0,i.jsxs)(p.wn,{title:"Requirements",buttons:(0,i.jsxs)(p.$n,{icon:"hourglass",backgroundColor:"rgba(0,0,0,0)",children:[_(W.time,H),"s"]}),children:[(0,i.jsx)(p.Ki,{children:Object.keys(W.requirement_data).map(function(ye,Ee){var se,pe;return(0,i.jsx)(p.Ki.Item,{labelColor:X[Ee]?void 0:"bad",label:W==null||(se=W.requirement_data)==null?void 0:se[ye].name,textAlign:"right",children:(W==null||(pe=W.requirement_data)==null?void 0:pe[ye].amount)/10},Ee)})}),re]}),le=W.isMechBlueprint&&Q,de="";if(le)de="Click this to remove the blueprint from the fabricator.";else{var me,fe;de=(fe=W==null||(me=W.item_descriptions)==null?void 0:me[0])!=null?fe:""}var ue;return(0,i.jsxs)(p.BJ,{style:{display:w.BlueprintButtonStyle.Display},children:[(0,i.jsx)(p.BJ.Item,{ml:w.BlueprintButtonStyle.MarginX,my:w.BlueprintButtonStyle.MarginY,children:(0,i.jsx)(L.ButtonWithBadge,{width:w.BlueprintButtonStyle.Width,height:w.BlueprintButtonStyle.Height,imagePath:W.img,disabled:!J||q,onClick:function(){return N(W.byondRef)},children:(0,i.jsx)(U.CenteredText,{height:w.BlueprintButtonStyle.Height,text:(0,y.xv)((ue=W==null?void 0:W.name)!=null?ue:"",40)})},W.name)}),(0,i.jsx)(p.BJ.Item,{mr:w.BlueprintButtonStyle.MarginX,children:(0,i.jsxs)(p.BJ,{inline:!0,vertical:!0,my:w.BlueprintButtonStyle.MarginY,children:[(0,i.jsx)(p.BJ.Item,{mb:w.BlueprintMiniButtonStyle.Spacing,children:(0,i.jsx)(p.m_,{content:de,children:(0,i.jsx)(p.$n,{width:w.BlueprintMiniButtonStyle.Width,height:(w.BlueprintButtonStyle.Height-w.BlueprintMiniButtonStyle.Spacing)/2,align:"center",disabled:le?!1:!J||q,onClick:function(){return le?R(W.byondRef):N(W.byondRef)},py:w.BlueprintMiniButtonStyle.IconSize/2,children:(0,i.jsx)(p.In,{name:le?"trash":"info",size:w.BlueprintMiniButtonStyle.IconSize})})})}),(0,i.jsx)(p.BJ.Item,{mt:w.BlueprintMiniButtonStyle.Spacing,children:(0,i.jsx)(p.m_,{content:ae,children:(0,i.jsx)(p.$n,{width:w.BlueprintMiniButtonStyle.Width,height:(w.BlueprintButtonStyle.Height-w.BlueprintMiniButtonStyle.Spacing)/2,align:"center",disabled:!J||q,onClick:function(){return N(W.byondRef)},py:w.BlueprintMiniButtonStyle.IconSize/2,children:(0,i.jsx)(p.In,{name:"gear",size:w.BlueprintMiniButtonStyle.IconSize})})})})]})})]})}},60148:function(Y,T,s){"use strict";s.r(T),s.d(T,{ButtonWithBadge:function(){return y}});var i=s(20462),p=s(2686),x=s(95475);var y=function(w){var L=w.width,U=w.height,_=w.noImageShadow,C=w.imagePath,O=w.children,A=w.onClick,S=w.opacity,P=w.disabled;return(0,i.jsx)(p.$n,{opacity:S,onClick:A,width:L||"100%",height:U||"100%",p:0,disabled:P,children:(0,i.jsxs)(p.BJ,{children:[(0,i.jsx)(p.BJ.Item,{children:C&&(0,i.jsx)(x._,{verticalAlign:"top",height:U||"100%",src:C,backgroundColor:_?null:"rgba(0,0,0,0.2)"})}),(0,i.jsx)(p.BJ.Item,{grow:!0,mx:1,children:O})]})})}},87143:function(Y,T,s){"use strict";s.r(T),s.d(T,{CardInfo:function(){return y}});var i=s(20462),p=s(2686),x=s(41242);var y=function(w){var L=w.actionCardLogin,U=w.actionCardLogout,_=w.banking_info;return _===null?(0,i.jsx)(p.wn,{textAlign:"center",children:(0,i.jsxs)(p.BJ,{vertical:!0,children:[(0,i.jsx)(p.BJ.Item,{children:"No Account Found."}),(0,i.jsx)(p.BJ.Item,{children:(0,i.jsx)(p.$n,{icon:"add",onClick:function(){return L()},children:"Add Account"})})]})}):(0,i.jsx)(p.wn,{title:"Account Info",buttons:(0,i.jsx)(p.$n,{icon:"minus",onClick:function(){return U()},children:"Log Out"}),children:(0,i.jsxs)(p.Ki,{children:[(0,i.jsx)(p.Ki.Item,{label:"Owner",children:_==null?void 0:_.name}),(0,i.jsxs)(p.Ki.Item,{label:"Balance",children:[(0,x.up)(_==null?void 0:_.current_money),"\u2ABD"]})]})})}},71820:function(Y,T,s){"use strict";s.r(T),s.d(T,{CenteredText:function(){return x}});var i=s(20462),p=s(2686);var x=function(y){var w=y.position,L=y.width,U=y.height,_=y.text;return(0,i.jsx)(p.az,{preserveWhitespace:!0,inline:!0,position:w,width:L!==void 0?L:"100%",height:U!==void 0?U:"100%",lineHeight:U!==void 0?U:"100%",textAlign:"center",px:.5,children:(0,i.jsx)("span",{style:{display:"inline-block",verticalAlign:"middle",lineHeight:"normal"},children:_})})}},73519:function(Y,T,s){"use strict";s.r(T),s.d(T,{CollapsibleWireMenu:function(){return L}});var i=s(20462),p=s(2686),x=s(11287),y=s(6684);var w=[{name:"Teal",colorName:"teal"},{name:"Red",colorName:"red"},{name:"Gold",colorName:"gold"},{name:"Lime",colorName:"lime"}],L=function(U){var _=U.actionWirePulse,C=U.actionWireCutOrMend,O=U.indicators,A=U.wires,S=U.wire_bitflags;return(0,i.jsxs)(p.wn,{textAlign:"center",title:"Maintenance Panel",children:[(0,i.jsx)(p.Ki,{children:A==null?void 0:A.map(function(P,R){return(0,i.jsx)(p.Ki.Item,{label:w[R].name,labelColor:w[R].colorName,buttons:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p.$n,{width:y.WIRE_PANEL_BUTTONS_WIDTH,textAlign:"center",onClick:function(){return _(R)},children:"Pulse"},R),(0,i.jsx)(p.$n,{width:y.WIRE_PANEL_BUTTONS_WIDTH,textAlign:"center",onClick:function(){return C(R)},children:(0,x.is_set)(S,A[R]-1)?"Cut":"Mend"},R)]})},R)})}),(0,i.jsx)(p.cG,{}),(0,i.jsxs)(p.Ki,{children:[(0,i.jsx)(p.Ki.Item,{label:"Electrification Risk",children:O!=null&&O.electrified?"High":"None"}),(0,i.jsx)(p.Ki.Item,{label:"System Stability",children:O!=null&&O.malfunctioning?"Unstable":"Stable"}),(0,i.jsx)(p.Ki.Item,{label:"Inventory",children:O!=null&&O.hacked?"Expanded":"Standard"}),(0,i.jsx)(p.Ki.Item,{label:"Power",children:O!=null&&O.hasPower?"Sufficient":"Insufficient"})]})]})}},85833:function(Y,T,s){"use strict";s.r(T),s.d(T,{ManufacturerSettings:function(){return x}});var i=s(20462),p=s(2686);var x=function(y){var w=y.repeat,L=y.hacked,U=y.speed,_=y.max_speed_normal,C=y.max_speed_hacked,O=y.mode,A=y.actionSetSpeed,S=y.actionRepeat,P=L?C:_;return(0,i.jsx)(p.BJ.Item,{children:(0,i.jsx)(p.wn,{textAlign:"center",title:"Fabricator Settings",children:(0,i.jsxs)(p.Ki,{children:[(0,i.jsx)(p.Ki.Item,{label:"Repeat",buttons:(0,i.jsx)(p.$n,{icon:"repeat",onClick:function(){return S()},children:"Toggle Repeat"}),textAlign:"center",children:w?"On":"Off"}),(0,i.jsx)(p.Ki.Item,{label:"Speed",children:(0,i.jsxs)(p.BJ,{children:[(0,i.jsx)(p.BJ.Item,{children:(0,i.jsx)(p.$n,{icon:"angle-double-left",onClick:function(){return A(1)}})}),(0,i.jsx)(p.BJ.Item,{grow:!0,children:(0,i.jsx)(p.Ap,{minValue:1,value:U,maxValue:P,step:1,stepPixelSize:50,onChange:function(R,N){return A(N)}})}),(0,i.jsx)(p.BJ.Item,{children:(0,i.jsx)(p.$n,{icon:"angle-double-right",onClick:function(){return A(P)}})})]})})]})})})}},50939:function(Y,T,s){"use strict";s.r(T),s.d(T,{PowerAlertModal:function(){return y}});var i=s(20462),p=s(65380),x=s(2686);var y=function(w){var L=w.width,U=w.height;return(0,i.jsx)(x.so,{width:L,height:U,justify:"center",position:"absolute",align:"center",inline:!0,children:(0,i.jsxs)(x.so.Item,{textAlign:"center",width:35,height:10,fontSize:3,fontFamily:"Courier",color:"red",className:(0,p.Ly)(["Modal"]),style:{"z-index":2},children:[(0,i.jsxs)(x.Z8,{time:500,children:[(0,i.jsx)(x.In,{name:"exclamation-triangle",pr:1.5}),"MALFUNCTION",(0,i.jsx)(x.In,{name:"exclamation-triangle",pl:1.5})]}),"CHECK WIRES"]})})}},10582:function(Y,T,s){"use strict";s.r(T),s.d(T,{ProductionCard:function(){return U}});var i=s(20462),p=s(2686),x=s(41242),y=s(6684),w=s(60148),L=s(71820);var U=function(_){var C=_.actionQueueRemove,O=_.img,A=_.index,S=_.mode,P=_.name;return O===void 0||A===void 0||S===void 0||P===void 0?null:(0,i.jsx)(p.BJ.Item,{children:(0,i.jsx)(p.m_,{content:"Click to remove from queue.",children:(0,i.jsx)(w.ButtonWithBadge,{imagePath:O,onClick:function(){return C(A)},width:y.ProductionCardStyle.Width,height:y.ProductionCardStyle.Height,children:(0,i.jsx)(L.CenteredText,{height:y.ProductionCardStyle.Height,text:(0,x.xv)(P,40)})})})})}},6684:function(Y,T,s){"use strict";s.r(T),s.d(T,{AccessLevels:function(){return w},BlueprintButtonStyle:function(){return L},BlueprintMiniButtonStyle:function(){return U},MANUDRIVE_UNLIMITED:function(){return x},ProductionCardStyle:function(){return _},RockboxStyle:function(){return y},SETTINGS_WINDOW_WIDTH:function(){return i},WIRE_PANEL_BUTTONS_WIDTH:function(){return p}});var i=20,p=5,x=-1,y=function(C){return C[C.MarginTop=2]="MarginTop",C}({}),w=function(C){return C[C.DENIED=0]="DENIED",C[C.IMPLICIT=1]="IMPLICIT",C[C.ALLOWED=2]="ALLOWED",C}({}),L=function(C){return C[C.Width=15.5]="Width",C[C.Height=5]="Height",C[C.MarginX=.5]="MarginX",C[C.MarginY=.5]="MarginY",C.Display="inline-flex",C}({}),U=function(C){return C[C.Width=2]="Width",C[C.IconSize=1]="IconSize",C[C.Spacing=.4]="Spacing",C}({}),_=function(C){return C[C.Width=i]="Width",C[C.Height=4]="Height",C[C.ButtonWidth=2]="ButtonWidth",C[C.ButtonInternalSpacing=.5]="ButtonInternalSpacing",C}({})},19966:function(Y,T,s){"use strict";s.r(T),s.d(T,{Manufacturer:function(){return J}});var i=s(20462),p=s(61282),x=s(61358),y=s(2686),w=s(99202),L=s(27997),U=s(41910),_=s(66272),C=s(11287),O=s(84384),A=s(87143),S=s(73519),P=s(85833),R=s(50939),N=s(10582),W=s(6684);function V(X,q){(q==null||q>X.length)&&(q=X.length);for(var ee=0,oe=new Array(q);ee=X.length?{done:!0}:{done:!1,value:X[oe++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var J=function(){for(var X,q,ee,oe,re,ae,le,de,me=(0,U.Oc)(),fe=me.act,ue=me.data,ye=(0,x.useState)(""),Ee=ye[0],se=ye[1],pe=(0,x.useState)(null),ge=pe[0],Ie=pe[1],xe=function(){return fe("card",{remove:!0})},Oe=function(){return fe("card",{scan:!0})},Be=function(){return fe("clear")},Ke=function(ot){return fe("remove",{index:ot+1})},ke=function(ot){return fe("pause_toggle",{action:ot==="working"?"pause":"continue"})},Ve=function(ot){return fe("wire",{action:"pulse",wire:ot+1})},lt=function(ot){return fe("wire",{action:(0,C.is_set)(ue.wire_bitflags,ue.wires[ot]-1)?"cut":"mend",wire:ot+1})},Ye=function(ot){return fe("request_product",{blueprint_ref:ot})},He=function(ot){return fe("delete",{blueprint_ref:ot})},ft=function(ot){return fe("speed",{value:ot})},Rt=function(){return fe("repeat")},Ge=function(ot){ge===null?Ie(ot):(ge===ot||fe("material_swap",{resource_1:ge,resource_2:ot}),Ie(null))},et=!!((X=ue.indicators)!=null&&X.hasPower),at,gt=(at=(q=ue.manudrive)==null?void 0:q.name)!=null?at:"",dt=(ee=ue.manudrive)==null?void 0:ee.limit,Pt={available:ue.available_blueprints,download:ue.downloaded_blueprints,drive_recipes:ue.recipe_blueprints,hidden:ue.hidden_blueprints},Et=Object.keys(Pt),Tt={},Dt,qe=0;qe<((Dt=(oe=ue.all_categories)==null?void 0:oe.length)!=null?Dt:0);qe++){var vt=ue.all_categories[qe];Tt[vt]=[];for(var st=0;st0&&(0,i.jsx)(y.Nt,{open:!0,title:ot+" ("+Tt[ot].length+")",children:((ht=Tt[ot])!=null?ht:[]).map(function(Ct,Lt){var Qt;return(0,i.jsx)(O.BlueprintButton,{actionRemoveBlueprint:He,actionVendProduct:Ye,blueprintData:Ct,manufacturerSpeed:ue.speed,materialData:ue.resource_data,deleteAllowed:ue.delete_allowed!==W.AccessLevels.DENIED,hasPower:!!((Qt=ue.indicators)!=null&&Qt.hasPower)},Lt)})},ot)})]})}),(0,i.jsx)(y.BJ.Item,{width:W.SETTINGS_WINDOW_WIDTH,children:(0,i.jsxs)(y.BJ,{vertical:!0,children:[(0,i.jsx)(y.BJ.Item,{children:(0,i.jsx)(y.pd,{placeholder:"Search...",width:"100%",onInput:function(ot,ht){return se(ht)}})}),(0,i.jsx)(y.BJ.Item,{children:(0,i.jsx)(y.wn,{title:"Loaded Materials",textAlign:"center",children:(0,i.jsx)(y.Ki,{children:(ae=ue.resource_data)==null?void 0:ae.map(function(ot){return(0,i.jsx)(y.Ki.Item,{buttons:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(y.$n,{icon:"eject",onClick:function(){return fe("material_eject",{resource:ot.byondRef})}}),(0,i.jsx)(y.$n,{icon:"arrows-up-down",color:ge!==ot.byondRef?null:"green",onClick:function(){return Ge(ot.byondRef)}})]}),label:(0,p.Sn)(ot.name),textAlign:"center",children:ot.amount.toFixed(1).padStart(5,"\u2007")},ot.byondRef)})})})}),(0,i.jsx)(P.ManufacturerSettings,{repeat:ue.repeat,hacked:ue.hacked,speed:ue.speed,max_speed_normal:ue.max_speed_normal,max_speed_hacked:ue.max_speed_hacked,mode:ue.mode,actionSetSpeed:ft,actionRepeat:Rt}),dt!==null&&(0,i.jsx)(y.BJ.Item,{children:(0,i.jsxs)(y.wn,{title:"Loaded Manudrive",buttons:(0,i.jsx)(y.$n,{icon:"eject",disabled:ue.mode!=="ready",onClick:function(){return fe("manudrive",{action:"eject"})},children:"Eject"}),children:[gt,(0,i.jsx)(y.cG,{}),(0,i.jsxs)(y.Ki,{children:[(0,i.jsx)(y.Ki.Item,{label:"Fabrication Limit",children:dt===W.MANUDRIVE_UNLIMITED?"Unlimited":dt+" "+(0,L.td)("use",dt)}),dt!==W.MANUDRIVE_UNLIMITED&&(0,i.jsx)(y.Ki.Item,{label:"Remaining Uses",children:ue.manudrive_uses_left})]})]})}),!!ue.panel_open&&(0,i.jsx)(y.BJ.Item,{children:(0,i.jsx)(S.CollapsibleWireMenu,{actionWirePulse:Ve,actionWireCutOrMend:lt,indicators:ue.indicators,wires:ue.wires,wire_bitflags:ue.wire_bitflags})}),(0,i.jsx)(y.BJ.Item,{children:(0,i.jsx)(A.CardInfo,{actionCardLogin:Oe,actionCardLogout:xe,banking_info:ue.banking_info})}),(0,i.jsx)(y.BJ.Item,{children:(0,i.jsx)(y.wn,{title:"Rockbox\u2122 Containers",textAlign:"center",children:(le=ue.rockboxes)==null?void 0:le.map(function(ot){var ht;return(0,i.jsxs)(y.az,{children:[(0,i.jsxs)(y.az,{mt:W.RockboxStyle.MarginTop,textAlign:"left",bold:!0,children:[ot.area_name,(0,i.jsx)(y.cG,{})]}),(0,i.jsx)(y.Ki,{children:!(ot==null||(ht=ot.ores)==null)&&ht.length?ot.ores.map(function(Ct){return(0,i.jsx)(y.Ki.Item,{label:Ct.name,textAlign:"center",buttons:(0,i.jsxs)(y.$n,{textAlign:"center",onClick:function(){return fe("ore_purchase",{ore:Ct.name,storage_ref:ot.byondRef})},children:[Ct.cost,"\u2ABD"]},Ct.name),children:Ct.amount.toString().padStart(5,"\u2007")},Ct.name)}):"No Ores Loaded."})]},ot.byondRef)})})}),(0,i.jsx)(y.BJ.Item,{children:(0,i.jsxs)(y.BJ,{vertical:!0,children:[ue.error!==null&&(0,i.jsx)(y.wn,{title:"ERROR",children:ue.error}),(0,i.jsxs)(y.BJ,{textAlign:"center",children:[(0,i.jsx)(y.BJ.Item,{width:"50%",children:(0,i.jsx)(y.$n,{icon:ue.mode!=="working"?"play":"pause",onClick:function(){return ke(ue.mode)},width:"100%",children:ue.mode!=="working"?"Resume":"Pause"})}),(0,i.jsx)(y.BJ.Item,{grow:!0,children:(0,i.jsx)(y.$n,{icon:"trash",onClick:function(){return Be()},width:"100%",children:"Clear Queue"})})]}),(ue==null||(de=ue.queue)==null?void 0:de.length)>0&&(0,i.jsx)(y.BJ.Item,{children:(0,i.jsx)(y.z2,{value:(0,w.qE)(ue.progress_pct,0,1),minValue:0,maxValue:1,position:"relative"})}),pt.map(function(ot,ht){return ot&&(0,i.jsx)(N.ProductionCard,{index:ht,actionQueueRemove:Ke,mode:ue.mode,img:ot.img,name:ot.name},ht)})]})})]})})]})})]})}},87348:function(Y,T,s){"use strict";s.r(T);},87768:function(Y,T,s){"use strict";s.r(T),s.d(T,{MAP_PANEL_WIDTH:function(){return _},MAP_ROW_HEIGHT:function(){return P},MapPanel:function(){return N},MapVote:function(){return R},PANEL_PER_LINE:function(){return A},SPACE_BETWEEN_PANELS:function(){return C},WINDOW_HOZ_PADDING:function(){return O}});var i=s(20462),p=s(2686),x=s(41910),y=s(96781),w=s(66272);function L(){return L=Object.assign||function(V){for(var H=1;H=0)&&(Q[X]=V[X]);return Q}var _=150,C=6,O=12,A=4,S=100,P=130,R=function(){var V=(0,x.Oc)(),H=V.data,Q=V.act,J=H.playersVoting,X=H.mapList,q=H.clientVoteMap,ee=S+P*Math.ceil(X.length/A),oe=(_+C)*A+O;return(0,i.jsx)(w.p8,{height:ee,width:oe,children:(0,i.jsxs)(w.p8.Content,{children:[(0,i.jsx)(p.BJ,{wrap:!0,justify:"space-around",children:X.map(function(re){return(0,i.jsx)(N,{name:re.name,thumbnail:re.thumbnail,details:re.details,button:(0,i.jsx)(p.$n.Checkbox,{checked:q[re.name],color:q[re.name]?"green":"red",tooltip:"Vote"}),onClick:function(){return Q("toggle_vote",{map_name:re.name})},style:{cursor:"pointer"},voted:!!q[re.name]},re.name)})}),(0,i.jsx)(p.wn,{title:"All",mt:1,buttons:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p.$n.Checkbox,{checked:!0,color:"green",onClick:function(){return Q("all_yes")},children:"Vote Yes to All"}),(0,i.jsx)(p.$n.Checkbox,{color:"red",onClick:function(){return Q("all_no")},ml:1,children:"Vote No to All"})]})}),!J&&(0,i.jsx)(p.Rr,{fontSize:1.5,children:"Map Vote has ended"})]})})},N=function(V){var H=V.name,Q=V.thumbnail,J=V.details,X=V.button,q=V.children,ee=V.voted,oe=V.won,re=U(V,["name","thumbnail","details","button","children","voted","won"]),ae=(0,i.jsxs)(p.wn,L({title:(0,i.jsx)(p.az,{inline:!0,nowrap:!0,overflow:"hidden",style:{textOverflow:"ellipsis"},maxWidth:""+(_-35)+"px",children:H}),className:"MapPanel "+(ee?"MapPanel--voted":"")+" "+(oe?"MapPanel--won":""),buttons:X,width:""+_+"px",align:X?null:"center",mb:1},(0,y.Fl)(re),{children:[(0,i.jsx)(p.az,{align:"center",children:(0,i.jsx)(p._V,{src:Q,backgroundColor:"#0f0f0f",width:"75px"})}),q]}));return(0,i.jsx)(p.BJ.Item,{mx:""+C/2+"px",children:J?(0,i.jsx)(p.m_,{content:(0,i.jsx)(W,{name:H,details:J}),children:ae}):ae})},W=function(V){var H=V.name,Q=V.details;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("strong",{children:H}),(0,i.jsx)("br",{}),Q.description,(0,i.jsx)("br",{}),(0,i.jsx)("strong",{children:"Location:"})," ",Q.location,(0,i.jsx)("br",{}),(0,i.jsx)("strong",{children:"Engine:"})," ",Q.engine,(0,i.jsx)("br",{}),(0,i.jsx)("strong",{children:"Mining:"})," ",Q.mining,(0,i.jsx)("br",{}),(0,i.jsx)("strong",{children:"Ideal Players:"})," ",Q.idealPlayers,(0,i.jsx)("br",{})]})}},97986:function(Y,T,s){"use strict";s.r(T),s.d(T,{MapVoteReport:function(){return C}});var i=s(20462),p=s(2686),x=s(41910),y=s(65993),w=s(66272),L=s(87768);var U=70,_=80,C=function(){var S=(0,x.Oc)().data,P=S.mapList,R=S.winner,N=S.isDetailed,W=U+L.MAP_ROW_HEIGHT*(N?1:Math.ceil(P.length/L.PANEL_PER_LINE))+(N?_:0),V=(L.MAP_PANEL_WIDTH+L.SPACE_BETWEEN_PANELS)*(N?P.length:L.PANEL_PER_LINE)+L.WINDOW_HOZ_PADDING;return(0,i.jsx)(w.p8,{height:W,width:V,children:(0,i.jsx)(w.p8.Content,{children:(0,i.jsx)(p.BJ,{wrap:!N,justify:N?void 0:"space-around",children:P.map(function(H){return(0,i.jsxs)(L.MapPanel,{name:H.name,details:H.details,thumbnail:H.thumbnail,won:H.name===R,children:[(0,i.jsx)(O,{voteCount:H.count}),!!N&&(0,i.jsx)(A,{voters:H.voters})]},H.name)})})})})},O=function(S){var P=S.voteCount;return(0,i.jsxs)(y.az,{size:1.5,bold:!0,children:[P||0," vote",P>1&&"s"]})},A=function(S){var P=S.voters;return(0,i.jsx)(y.az,{scrollable:!0,height:""+_+"px",overflow:"auto",align:"left",children:P&&P.map(function(R){return(0,i.jsxs)(i.Fragment,{children:[R,(0,i.jsx)("br",{})]})})})}},10698:function(Y,T,s){"use strict";s.r(T),s.d(T,{MarionetteRemote:function(){return w}});var i=s(20462),p=s(2686),x=s(41910),y=s(66272);var w=function(){var _=(0,x.Oc)(),C=_.act,O=_.data,A=O.entered_data,S=O.selected_command,P=O.implants;return(0,i.jsx)(y.p8,{title:"Marionette Remote",width:410,height:550,theme:"syndicate",children:(0,i.jsxs)(y.p8.Content,{scrollable:!0,children:[(0,i.jsx)(p.wn,{title:"Controls",children:(0,i.jsx)(p.so,{direction:"column",children:(0,i.jsx)(p.so.Item,{children:(0,i.jsxs)(p.Ki,{children:[(0,i.jsx)(p.Ki.Item,{label:"Data",children:S!=="step"?(0,i.jsx)(p.pd,{fluid:!0,onChange:function(R,N){return C("set_data",{new_data:N})},value:A,placeholder:"Unset..."}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p.$n,{onClick:function(){return C("set_data",{new_data:"NORTH"})},icon:"arrow-up",selected:A==="NORTH"}),(0,i.jsx)(p.$n,{onClick:function(){return C("set_data",{new_data:"SOUTH"})},icon:"arrow-down",selected:A==="SOUTH"}),(0,i.jsx)(p.$n,{onClick:function(){return C("set_data",{new_data:"WEST"})},icon:"arrow-left",selected:A==="WEST"}),(0,i.jsx)(p.$n,{onClick:function(){return C("set_data",{new_data:"EAST"})},icon:"arrow-right",selected:A==="EAST"})]})},"data"),(0,i.jsxs)(p.Ki.Item,{label:"Command",children:[(0,i.jsx)(p.$n,{onClick:function(){return C("set_command",{new_command:"say"})},selected:S==="say",children:"Say"}),(0,i.jsx)(p.$n,{onClick:function(){return C("set_command",{new_command:"emote"})},selected:S==="emote",children:"Emote"}),(0,i.jsx)(p.$n,{onClick:function(){return C("set_command",{new_command:"step"})},selected:S==="step",children:"Step"}),(0,i.jsx)(p.$n,{onClick:function(){return C("set_command",{new_command:"drop"})},selected:S==="drop",children:"Drop"}),(0,i.jsx)(p.$n,{onClick:function(){return C("set_command",{new_command:"use"})},selected:S==="use",children:"Use"}),(0,i.jsx)(p.$n,{onClick:function(){return C("set_command",{new_command:"shock"})},selected:S==="shock",children:"Shock"})]},"command"),(0,i.jsx)(p.Ki.Item,{label:"Heat Per Action",children:S==="shock"||S==="drop"?"HIGH":S==="step"?"LOW":"MEDIUM"},"action_heat")]})})})}),(0,i.jsx)(p.wn,{title:"Implants",buttons:(0,i.jsx)(p.$n,{icon:"rotate",onClick:function(){return C("ping_all")},children:"Ping All"}),children:U(C,A,S,P)})]})})},L=function(_){switch(_){case"IDLE":return"This implant is not located inside a living being.";case"ACTIVE":return"This implant is inside a living being and ready to accept signals.";case"WAITING...":return"Awaiting ping response...";case"DANGER":return"This implant is dangerously hot. Further short-term use will likely cause it to break.";case"NO RESPONSE":return"This implant is not responding to pings. It could have been destroyed, or it could just be far away.";case"BURNED OUT":return"This implant has been rendered permanently unusable by overuse and can be removed from the tracking list.";default:return"Unknown."}},U=function(_,C,O,A){return!A||!A.length?(0,i.jsx)("i",{children:"No implants detected."}):(0,i.jsx)(p.Ki,{children:A.map(function(S){return(0,i.jsx)(p.Ki.Item,{label:S.address,buttons:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p.$n,{icon:"info",tooltip:L(S.status)}),(0,i.jsx)(p.$n,{icon:"satellite-dish",onClick:function(){return _("ping",{address:S.address})},disabled:S.status==="BURNED OUT",children:"Ping"}),(0,i.jsx)(p.$n,{icon:"envelope",onClick:function(){return _("activate",{address:S.address,packet_data:C,packet_command:O})},disabled:S.status==="BURNED OUT",children:"Activate"}),(0,i.jsx)(p.$n.Confirm,{icon:"link-slash",onClick:function(){return _("remove_from_list",{address:S.address})},tooltip:"Stops tracking this implant. This doesn't destroy the implant, only removes it from the list."})]}),children:S.status},S.address)})})}},58365:function(Y,T,s){"use strict";s.r(T),s.d(T,{MechanicalDropper:function(){return A}});var i=s(20462),p=s(2686),x=s(99202),y=s(41910),w=s(66272),L=s(15180),U=0,_=1,C=function(S){var P=S.transferMode,R=S.onTransferModeChange;return(0,i.jsx)(p.wn,{fitted:!0,fill:!0,children:(0,i.jsxs)(p.tU,{vertical:!0,children:[(0,i.jsx)(p.tU.Tab,{selected:P===U,color:"green",onClick:function(){return R(U)},children:"Draw"}),(0,i.jsx)(p.tU.Tab,{selected:P===_,color:"red",onClick:function(){return R(_)},children:"Drop"})]})})},O=function(S){var P=S.curTransferAmt,R=S.minTransferAmt,N=S.maxTransferAmt,W=S.onTransferAmtChange,V=S.reagents;return(0,i.jsxs)(p.wn,{children:[(0,i.jsx)(L.ReagentBar,{container:V}),(0,i.jsxs)(p.BJ,{align:"center",children:[(0,i.jsx)(p.BJ.Item,{children:(0,i.jsx)(p.$n,{textAlign:"center",width:"3em",onClick:function(){return W(R)},children:"Min"})}),(0,i.jsx)(p.BJ.Item,{grow:!0,children:(0,i.jsx)(p.Ap,{minValue:R,maxValue:N,stepPixelSize:20,step:1,value:P,onChange:function(H,Q){return W(Q)}})}),(0,i.jsx)(p.BJ.Item,{children:(0,i.jsx)(p.$n,{textAlign:"center",width:"3em",onClick:function(){return W(N)},children:"Max"})})]})]})},A=function(){var S=(0,y.Oc)(),P=S.act,R=S.data,N=R.curTransferAmt,W=R.minTransferAmt,V=R.maxTransferAmt,H=R.transferMode,Q=R.reagents,J=function(q){P("mode",{mode:q})},X=function(q){q=(0,x.LI)((0,x.qE)(q,W,V),1),P("amt",{amt:q})};return(0,i.jsx)(w.p8,{title:"Mechanical Dropper",width:400,height:105,children:(0,i.jsx)(w.p8.Content,{children:(0,i.jsxs)(p.BJ,{children:[(0,i.jsx)(p.BJ.Item,{children:(0,i.jsx)(C,{transferMode:H,onTransferModeChange:J})}),(0,i.jsx)(p.BJ.Item,{grow:!0,children:(0,i.jsx)(O,{curTransferAmt:N,minTransferAmt:W,maxTransferAmt:V,onTransferAmtChange:X,reagents:Q})})]})})})}},56452:function(Y,T,s){"use strict";s.r(T),s.d(T,{MessageModal:function(){return _}});var i=s(20462),p=s(6544),x=s(2686),y=s(41910),w=s(66272),L=s(30398),U=s(44149);var _=function(){var C=(0,y.Oc)(),O=C.act,A=C.data,S=A.message,P=A.timeout,R=A.title,N=A.theme,W=A.sanitize,V=125+Math.ceil((S==null?void 0:S.length)/3),H=S;if(W){var Q=[].concat(L.Vb,["a"]),J=[];H=(0,L.jZ)(S,!1,Q,J)}return(0,i.jsxs)(w.p8,{title:R,width:300,height:V,theme:N||"nanotrasen",children:[P&&(0,i.jsx)(U.Loader,{value:P}),(0,i.jsx)(w.p8.Content,{onKeyDown:function(X){var q=window.event?X.which:X.keyCode;q===p.s6&&O("close")},children:(0,i.jsx)(x.wn,{scrollable:!0,fill:!0,children:(0,i.jsx)(x.az,{color:"label",dangerouslySetInnerHTML:{__html:H}})})})]})}},58798:function(Y,T,s){"use strict";s.r(T),s.d(T,{MineralMagnet:function(){return C}});var i=s(20462),p=s(61358),x=s(2686),y=s(41910),w=s(65993),L=s(41242),U=s(66272);var _=function(O){return O>=95?(0,i.jsx)(x.az,{inline:!0,color:"good",children:"Optimal"}):O>=70?(0,i.jsx)(x.az,{inline:!0,color:"olive",children:"Mild Structural Damage"}):O>=40?(0,i.jsx)(x.az,{inline:!0,color:"yellow",children:"Heavy Structural Damage"}):O>=10?(0,i.jsx)(x.az,{inline:!0,color:"average",children:"Extreme Structural Damage"}):O>0?(0,i.jsx)(x.az,{inline:!0,color:"bad",children:"Destruction Imminent"}):(0,i.jsx)(x.az,{inline:!0,color:"bad",children:"Connection Lost"})},C=function(){var O=(0,y.Oc)(),A=O.act,S=O.data,P=S.isLinked,R=S.magnetActive,N=S.magnetAutomaticMode,W=S.magnetCooldownOverride,V=S.magnetHealth,H=S.magnetLastUsed,Q=S.time,J=S.linkedMagnets||[],X=S.miningEncounters||[],q=H>Q,ee=(0,p.useState)(!1),oe=ee[0],re=ee[1];return(0,i.jsx)(U.p8,{width:300,height:240,children:(0,i.jsxs)(U.p8.Content,{children:[(0,i.jsxs)(x.wn,{title:"Magnet Status",children:[(0,i.jsxs)(x.az,{children:["Condition: ",P?_(V):(0,i.jsx)(x.az,{inline:!0,color:"bad",children:"No Magnet Linked"})]}),(0,i.jsxs)(x.az,{children:["Status: ",R?"Pulling New Mineral Source":q?(0,i.jsxs)(i.Fragment,{children:["Cooling Down: ",(0,i.jsx)(x.qT,{value:Math.max(H-Q,0),auto:!0,format:L.fU})]}):"Idle"]})]}),(0,i.jsxs)(x.wn,{title:"Magnet Controls",buttons:(0,i.jsx)(x.$n,{textAlign:"center",icon:"rss",onClick:function(){return A("geoscan")},children:"Scan"}),children:[(!!R||q&&!W)&&(0,i.jsx)(x.Rr,{fontSize:1.75,pb:2,children:R?"Magnet Active":"On Cooldown"}),(0,i.jsx)(x.$n,{textAlign:"center",color:q&&W&&"average",icon:"magnet",onClick:function(){return A("activatemagnet")},fluid:!0,children:"Activate Magnet"}),(0,i.jsx)(x.$n,{textAlign:"center",color:q&&W&&"average",icon:"search",disabled:!X.length,onClick:function(){return re(!0)},fluid:!0,children:"Activate telescope location"}),(0,i.jsx)(x.$n.Checkbox,{checked:W,onClick:function(){return A("overridecooldown")},style:{zIndex:"1"},children:"Override Cooldown"}),(0,i.jsx)(x.$n.Checkbox,{checked:N,onClick:function(){return A("automode")},style:{zIndex:"1"},children:"Automatic Mode"})]}),oe&&(0,i.jsx)(w.aF,{full:!0,ml:1,width:"230px",height:"200px",children:(0,i.jsxs)(x.BJ,{vertical:!0,fill:!0,children:[(0,i.jsx)(x.BJ.Item,{grow:!0,children:(0,i.jsx)(x.wn,{scrollable:!0,fill:!0,children:X.map(function(ae){return(0,i.jsx)(x.$n,{onClick:function(){A("activateselectable",{encounter_id:ae.id}),re(!1)},fluid:!0,children:ae.name},ae.id)})})}),(0,i.jsx)(x.BJ.Item,{children:(0,i.jsxs)(x.so,{children:[(0,i.jsxs)(x.so.Item,{grow:!0,pt:.5,color:"label",children:[(0,i.jsx)(x.In,{name:"search"})," Choose a location"]}),(0,i.jsx)(x.so.Item,{children:(0,i.jsx)(x.$n,{color:"bad",icon:"times",onClick:function(){return re(!1)},children:"Cancel"})})]})})]})}),!!P||(0,i.jsx)(w.aF,{full:!0,ml:1,width:"270px",height:"200px",children:(0,i.jsxs)(x.wn,{title:"Choose Linked Magnet",scrollable:!0,fill:!0,children:[(0,i.jsx)(x.$n,{textAlign:"center",icon:"rss",fluid:!0,onClick:function(){return A("magnetscan")},children:"Scan for Magnets"}),(0,i.jsx)(x.cG,{}),J.map(function(ae){var le;return(0,i.jsx)(x.$n,{icon:ae.angle===void 0?"circle":"arrow-right",iconRotation:(le=ae.angle)!=null?le:0,textAlign:"center",fluid:!0,onClick:function(){return A("linkmagnet",ae)},children:ae.name+" at ("+ae.x+", "+ae.y+")"},ae.ref)})]})})]})})}},98335:function(Y,T,s){"use strict";s.r(T),s.d(T,{Minimap:function(){return w}});var i=s(20462),p=s(2686),x=s(41910),y=s(66272),w=function(){var L=(0,x.Oc)().data,U=L.title,_=L.theme,C=L.minimap_id;return(0,i.jsx)(y.p8,{title:U,theme:_,width:610,height:640,children:(0,i.jsx)(y.p8.Content,{children:(0,i.jsx)(p.D1,{params:{id:C,type:"map"},style:{width:"600px",height:"600px"}})})})}},87247:function(Y,T,s){"use strict";s.r(T),s.d(T,{MinimapController:function(){return U}});var i=s(20462),p=s(61358),x=s(2686),y=s(41910),w=s(66272),L=s(26376),U=function(){var _=(0,y.Oc)(),C=_.act,O=_.data,A=O.title,S=O.theme,P=O.minimap_id,R=O.markers_visible,N=O.selecting_coordinates,W=O.minimap_markers,V=O.placable_marker_states,H=O.placable_marker_images,Q=O.icon,J=O.image,X=O.pos_x,q=O.pos_y,ee=(0,p.useState)(""),oe=ee[0],re=ee[1],ae=(0,p.useState)(!1),le=ae[0],de=ae[1],me=function(){de(!le),C("new_marker",{name:oe,icon:Q,pos_x:X,pos_y:q})},fe=function(){de(!le),C("cancel_new_marker")},ue=function(se){O.icon=se,O.image=H[se],C("update_icon",{icon:se})},ye=function(se){O.pos_x=se},Ee=function(se){O.pos_y=se};return(0,i.jsx)(w.p8,{title:A,theme:S,width:750,height:390,children:(0,i.jsx)(w.p8.Content,{children:(0,i.jsxs)(x.BJ,{justify:"center",children:[(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(x.wn,{title:"Minimap",fill:!0,buttons:(0,i.jsx)(x.$n,{icon:"undo",color:"green",onClick:function(){return C("reset_scale")},children:"Reset Map Scale"}),children:(0,i.jsx)(x.so,{children:(0,i.jsx)(x.so.Item,{children:(0,i.jsx)(x.D1,{params:{id:P,type:"map"},style:{width:"300px",height:"300px"}})})})})}),(0,i.jsx)(x.BJ.Item,{grow:!0,children:(0,i.jsxs)(x.wn,{title:"Minimap Markers",fill:!0,buttons:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.$n,{icon:"plus",color:"green",onClick:function(){return de(!le)},children:"New"}),(0,i.jsx)(x.$n,{icon:R?"eye-slash":"eye",color:R?"red":"green",onClick:function(){return C("toggle_visibility_all")},children:R?"Hide All":"Show All"})]}),children:[!!le&&(0,i.jsx)(x.aF,{mr:2,children:(0,i.jsx)(x.az,{children:(0,i.jsxs)(x.so,{children:[(0,i.jsx)(x.so.Item,{backgroundColor:"black",children:(0,i.jsx)(x._V,{height:"150px",width:"150px",src:"data:image/png;base64,"+J})}),(0,i.jsxs)(x.so.Item,{ml:"10px",children:[(0,i.jsx)(x.pd,{placeholder:"Marker Name",fluid:!0,value:oe,onChange:function(se,pe){return re(pe)}}),(0,i.jsx)(x.ms,{selected:Q,width:"150px",options:V,onSelected:function(se){return ue(se)},mt:"10px"}),(0,i.jsxs)(x.so,{mt:"10px",justify:"space-between",children:[(0,i.jsx)(x.so.Item,{children:(0,i.jsx)(x.Q7,{className:"minimap-controller__number-inputs",minValue:1,maxValue:300,step:1,value:X,format:function(se){return"x, "+se},onDrag:function(se){return ye(se)}})}),(0,i.jsx)(x.so.Item,{children:(0,i.jsx)(x.Q7,{className:"minimap-controller__number-inputs",minValue:1,maxValue:300,step:1,value:q,format:function(se){return"y, "+se},onDrag:function(se){return Ee(se)}})})]}),(0,i.jsx)(x.$n,{fluid:!0,textAlign:"center",color:N?"orange":"default",onClick:function(){return C("location_from_minimap")},mt:"10px",children:N?"Select Position":"Select (x, y) From Map"}),(0,i.jsxs)(x.so,{mt:"20px",justify:"space-between",children:[(0,i.jsx)(x.so.Item,{children:(0,i.jsx)(x.$n,{icon:"check",color:"green",onClick:function(){return me()},children:"Confirm"})}),(0,i.jsx)(x.so.Item,{children:(0,i.jsx)(x.$n,{icon:"xmark",color:"red",onClick:function(){return fe()},children:"Cancel"})})]})]})]})})}),(0,i.jsx)(x.wn,{scrollable:!0,fill:!0,children:(0,i.jsx)(x.so,{direction:"column",children:(0,i.jsx)(x.so.Item,{children:(0,i.jsx)(x.so.Item,{children:Object.keys(W).map(function(se){return(0,i.jsxs)(x.so,{className:"minimap-controller__marker-list",children:[(0,i.jsxs)(x.so.Item,{inline:!0,children:[(0,i.jsx)(x.so.Item,{fontSize:1.1,bold:!0,children:(0,L.capitalize)(O.minimap_markers[se].name)}),(0,i.jsx)(x.so.Item,{inline:!0,lineHeight:1.7,children:O.minimap_markers[se].pos})]}),(0,i.jsxs)(x.so.Item,{inline:!0,children:[(0,i.jsx)(x.$n,{className:"minimap-controller__buttons",icon:O.minimap_markers[se].visible?"eye":"eye-slash",color:O.minimap_markers[se].visible?"green":"red",onClick:function(){return C("toggle_visibility",{index:O.minimap_markers[se].index})}}),(0,i.jsx)(x.$n,{className:"minimap-controller__buttons",icon:"trash-alt",color:"red",disabled:!O.minimap_markers[se].can_be_deleted,onClick:function(){return C("delete_marker",{index:O.minimap_markers[se].index})}})]})]},O.minimap_markers[se])})})})})})]})})]})})})}},64398:function(Y,T,s){"use strict";s.r(T),s.d(T,{MixerItem:function(){return w},MixerMachine:function(){return L}});var i=s(20462),p=s(2686),x=s(41910),y=s(66272);var w=function(U){var _=(0,x.Oc)().act,C=U.mixerItem,O=U.working;return(0,i.jsxs)(p.so,{children:[(0,i.jsx)(p._V,{verticalAlign:"middle",height:"24px",width:"24px",src:"data:image/png;base64,"+C.iconData}),(0,i.jsx)(p.$n,{nowrap:!0,icon:"eject",color:"blue",tooltip:"Eject "+C.name,textAlign:"center",disabled:O,onClick:function(){return _("eject",{index:C.index})}}),(0,i.jsx)(p.az,{nowrap:!0,as:"span",m:"0.25rem",textAlign:"center",children:C.name},C.index)]})},L=function(){var U=(0,x.Oc)(),_=U.data,C=U.act,O=_.mixerContents;return(0,i.jsx)(y.p8,{title:"Kitchen Helper",width:500,height:220,children:(0,i.jsx)(y.p8.Content,{children:(0,i.jsxs)(p.BJ,{m:"0.25rem",vertical:!0,fill:!0,children:[(0,i.jsx)(p.BJ.Item,{grow:1,children:(0,i.jsx)(p.wn,{fill:!0,title:"Contents: ("+O.length+"/"+_.maxItems+")",children:O.length>0?O.map(function(A){return(0,i.jsx)(w,{mixerItem:A,working:_.working},A.index)}):"No contents in mixer"})}),(0,i.jsxs)(p.BJ.Item,{m:".25rem",children:[(0,i.jsx)(p.$n,{mt:"0.5rem",backgroundColor:"green",icon:"check",tooltip:"Start Mixing",textAlign:"center",disabled:_.working||O.length===0,onClick:function(){return C("mix",{})},children:"Mix"}),(0,i.jsx)(p.$n,{backgroundColor:"blue",icon:"eject",tooltip:"Eject All",textAlign:"center",disabled:_.working||O.length===0,onClick:function(){return C("ejectAll",{})},children:"Eject All"})]})]})})})}},60081:function(Y,T,s){"use strict";s.r(T),s.d(T,{MixingDesk:function(){return U}});var i=s(20462),p=s(61358),x=s(2686),y=s(41910),w=s(41242),L=s(66272);var U=function(){var _=(0,y.Oc)(),C=_.act,O=_.data,A=O.voices,S=O.selected_voice,P=O.say_popup,R=(0,y.QY)("message",""),N=R[0],W=R[1],V=function(){return(0,i.jsxs)(x.aF,{children:["Say as "+(S>0&&S<=A.length?A[S-1].name:"yourself")+":",(0,i.jsx)("br",{}),(0,i.jsx)(x.az,{pt:"5px",pr:"10px",textAlign:"center",children:(0,i.jsx)(x.pd,{autoFocus:!0,selfClear:!0,width:20,value:N,onEnter:function(Q,J){window.focus(),C("say",{message:J}),W("")},onChange:function(Q,J){return W(J)}})}),(0,i.jsx)("br",{}),(0,i.jsxs)(x.az,{textAlign:"center",children:[(0,i.jsx)(x.$n,{onClick:function(){C("say",{message:N}),W("")},children:"Say"}),(0,i.jsx)(x.$n,{onClick:function(){C("cancel_say"),W("")},children:"Cancel"})]})]})},H=(0,p.useCallback)(function(Q){var J=String.fromCharCode(Q.keyCode),X=!0;if(J==="T")C("say_popup");else if(Q.keyCode===27&&P)C("cancel_say"),W("");else if(P)X=!1;else{var q=Number(J);String(q)===J?C("switch_voice",{id:q}):X=!1}X&&Q.stopPropagation()},[C,P,W]);return(0,i.jsx)(L.p8,{height:375,width:370,children:(0,i.jsxs)(L.p8.Content,{onKeyDown:H,children:[!!P&&V(),(0,i.jsxs)(x.wn,{title:"Voice Synthesizer",children:[(0,i.jsx)(x.cG,{}),(0,i.jsxs)(x.Ki,{children:[A.map(function(Q,J){return(0,i.jsxs)(x.Ki.Item,{label:J+1+" "+(0,w.xv)(Q.name,18)+(Q.accent?" ["+Q.accent+"]":""),labelColor:J+1===S?"red":"label",children:[(0,i.jsx)(x.$n,{icon:"trash-alt",onClick:function(){return C("remove_voice",{id:J+1})}}),(0,i.jsx)(x.$n,{icon:"bullhorn",onClick:function(){return C("say_popup",{id:J+1})}})]},Q.name)}),(0,i.jsx)(x.Ki.Item,{children:(0,i.jsxs)(x.BJ,{align:"center",children:[(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(x.$n,{icon:"plus",onClick:function(){return C("add_voice")},disabled:A.length>=9})}),(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(x.m_,{position:"right",content:"Press T to talk and 1-9 keys to switch voices. Press 0 to reset to your normal voice.",children:(0,i.jsx)(x.In,{name:"question-circle"})})})]})})]})]})]})})}},96764:function(Y,T,s){"use strict";s.r(T),s.d(T,{MusicInstrument:function(){return _}});var i=s(20462),p=s(65380),x=s(61358),y=s(2686),w=s(41910),L=s(65993),U=s(66272),_=function(){var C=(0,w.Oc)(),O=C.act,A=C.data,S=A.name,P=A.notes,R=A.volume,N=A.transpose,W=A.keybindToggle,V=A.noteKeysString,H=(0,x.useState)(V.split("")),Q=H[0],J=H[1],X=(0,x.useState)({}),q=X[0],ee=X[1],oe=(0,x.useState)(0),re=oe[0],ae=oe[1],le=function(pe){O("set_volume",{value:pe})},de=function(pe){O("set_transpose",{value:pe})},me=function(pe){O(pe?"play_keyboard_on":"play_keyboard_off")},fe=function(){me(!W)},ue=function(pe){return pe+N>=0&&pe+N=0?ge:-1};return(0,i.jsx)(U.p8,{title:S,width:50+P.length*30,height:410,children:(0,i.jsx)(U.p8.Content,{onKeyUp:function(pe){if(W){var ge=se(pe.key);Ee(ge)}},onKeyDown:function(pe){if(W){var ge=se(pe.key);ye(ge)}pe.key==="Control"&&fe()},children:(0,i.jsxs)(y.az,{className:"instrument__keyboardwrapper",children:[(0,i.jsxs)(y.az,{className:"instrument__outerpanel",children:[(0,i.jsx)(y.az,{className:"instrument__speaker"}),(0,i.jsxs)(y.so,{direction:"column",children:[(0,i.jsxs)(y.az,{className:"instrument__panel",children:[(0,i.jsxs)(y.az,{className:"instrument__keyboardsupport",children:[(0,i.jsx)(y.$n,{className:"instrument__toggle-keyboard-button",tooltip:"Toggle keyboard support (toggle with ctrl)",onClick:fe,icon:"keyboard"}),(0,i.jsx)(y.az,{className:"instrument__keybind-indicator",style:{boxShadow:"0px 0px 5px "+(W?"#1b9b37":"#5a1919"),background:W?"#1b9b37":"#5a1919"}})]}),(0,i.jsxs)(y.az,{className:"instrument__panel-input",children:[(0,i.jsx)(L.N6,{animated:!0,stepPixelSize:24,minValue:-24,maxValue:24,value:re,onDrag:function(pe,ge){return ae(ge)},title:"Keybind offset"}),(0,i.jsx)("span",{children:"Offset"})]}),(0,i.jsx)(y.az,{className:"instrument_panel-info",children:(0,i.jsx)("h1",{style:{textAlign:"center"},children:S.toUpperCase()})}),(0,i.jsxs)(y.az,{className:"instrument__panel-input",children:[(0,i.jsx)(L.N6,{animated:!0,stepPixelSize:1,minValue:0,maxValue:100,title:"Volume",value:R,onDrag:function(pe,ge){return le(ge)}}),(0,i.jsx)("span",{children:"Volume"})]}),(0,i.jsxs)(y.az,{className:"instrument__panel-input",children:[(0,i.jsx)(L.N6,{animated:!0,stepPixelSize:6,minValue:-12,maxValue:12,title:"Transpose",value:N,onDrag:function(pe,ge){return de(ge)}}),(0,i.jsx)("span",{children:"Transpose"})]})]}),(0,i.jsxs)(y.az,{className:"instrument__keyorder",children:[(0,i.jsx)(y.az,{className:"instrument__instructions",fontSize:"1.1em",children:"Key binding order for keyboard input"}),(0,i.jsx)(y.pd,{className:"instrument__input_keyorder",value:Q.join(""),onInput:function(pe,ge){return J(ge.split(""))}}),(0,i.jsx)(y.az,{className:"instrument__instructions",fontSize:"0.8em",bold:!0,children:"Type in the order you wish the keybindings to be placed"})]})]}),(0,i.jsx)(y.az,{className:"instrument__speaker"})]}),(0,i.jsx)("ul",{className:"instruments__piano",children:P.map(function(pe,ge){var Ie=pe.includes("-"),xe=Q[ge-re],Oe=Ie?"instruments__piano-key-black":"instruments__piano-key-white",Be=["d","e","g","a","b"].includes(pe.split("")[0]),Ke=Be&&!Ie?"instruments__piano-key-white-offset":"";return(0,i.jsx)("li",{className:(0,p.Ly)(["instruments__piano-key",Oe,Ke,q[P[ge]]?Ie?"instruments__piano-key-black-active":"instruments__piano-key-white-active":""]),onMouseDown:function(){return ye(ge)},onMouseLeave:function(){return Ee(ge)},onMouseUp:function(){return Ee(ge)},children:(0,i.jsxs)(y.az,{className:"instruments__notedetails",children:[xe&&(0,i.jsx)(y.az,{className:"instruments__notekey",children:xe}),(0,i.jsx)(y.az,{className:"instruments__notename",children:pe.replace("-","#")})]})},ge)})})]})})})}},72844:function(Y,T,s){"use strict";s.r(T),s.d(T,{NuclearReactor:function(){return A}});var i=s(20462),p=s(2686),x=s(99202),y=s(41910),w=s(66272),L=s(26376),U=s(11249),_=273.15,C=function(S){var P=S.onClick,R=S.components,N=S.rowID,W=S.emptySlotIcon;return(0,i.jsx)(p.XI.Row,{children:R.map(function(V,H){if(V===null)return(0,i.jsx)(p.XI.Cell,{children:(0,i.jsx)(p.$n,{fluid:!0,color:"transparent",m:1,onClick:function(){return P("slot",{x:N+1,y:H+1})},children:(0,i.jsx)("img",{src:"data:image/png;base64,"+W,style:{verticalAlign:"middle",borderColor:"#AAAAAA",borderStyle:"solid",borderRadius:"4px"}})})},H);var Q=V.x,J=V.y,X=V.name,q=V.img,ee=V.temp,oe=V.extra,re=V.flux;return(0,i.jsx)(p.XI.Cell,{children:(0,i.jsx)(p.$n,{fluid:!0,tooltip:(0,i.jsxs)(i.Fragment,{children:[(0,L.capitalize)(X),(0,i.jsx)("br",{}),(0,x.LI)(ee-_,2)," \xB0C",oe!==""?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("br",{}),oe]}):"",re!==null?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("br",{}),re," Neutrons"]}):""]}),color:"transparent",m:1,onClick:function(){return P("slot",{x:Q,y:J})},children:(0,i.jsx)("img",{src:"data:image/png;base64,"+q,style:{boxShadow:"0px 0px 20px "+(0,U.getTemperatureColor)(ee,2e3),verticalAlign:"middle",borderColor:""+(0,U.getTemperatureColor)(ee,2e3),borderStyle:"solid",borderRadius:"4px"}})})},H)})})},O=function(S){var P=S.onClick,R=S.components,N=S.emptySlotIcon;return(0,i.jsx)(p.XI,{children:R.map(function(W,V){return(0,i.jsx)(p.XI.Row,{children:(0,i.jsx)(C,{rowID:V,components:W,onClick:P,emptySlotIcon:N})},V)})})},A=function(){var S=(0,y.Oc)(),P=S.act,R=S.data,N=R.gridW,W=R.gridH,V=R.emptySlotIcon,H=R.components,Q=R.reactorTemp,J=R.reactorRads,X=R.configuredControlRodLevel,q=R.actualControlRodLevel;return(0,i.jsx)(w.p8,{title:"Nuclear Reactor",width:500,height:700,children:(0,i.jsxs)(w.p8.Content,{children:[(0,i.jsx)(p.wn,{children:(0,i.jsx)(O,{gridW:N,gridH:W,onClick:P,components:H,emptySlotIcon:V})}),(0,i.jsx)(p.wn,{children:(0,i.jsxs)(p.so,{justify:"space-between",align:"center",children:[(0,i.jsxs)(p.so.Item,{children:[(0,i.jsx)(p.az,{children:"Reactor Temperature:"}),(0,i.jsx)(p.WD,{minValue:0-_,maxValue:1500,size:5,value:Q,format:function(ee){return(0,x.LI)(ee-_,2)+" \xB0C"},alertAfter:1200,ranges:{good:[0-_,1e3],average:[1e3,1200],bad:[1200,1500]}})]}),(0,i.jsxs)(p.so.Item,{children:[(0,i.jsx)(p.az,{children:"Radiation Level:"}),(0,i.jsx)(p.WD,{minValue:0,maxValue:100,size:5,value:J,format:function(ee){return(0,x.LI)(ee,1)+" clicks"},alertAfter:15,ranges:{good:[0,5],average:[5,50],bad:[50,100]}})]})]})}),(0,i.jsx)(p.wn,{children:(0,i.jsxs)(p.so,{justify:"space-between",align:"center",children:[(0,i.jsxs)(p.so.Item,{children:[(0,i.jsx)(p.az,{children:"Control Rod Insertion:"}),(0,i.jsx)(p.WD,{minValue:0,maxValue:100,size:5,value:q,format:function(ee){return(0,x.LI)(ee,1)+"%"},alertBefore:20,ranges:{bad:[0,20],average:[20,80],good:[80,100]}})]}),(0,i.jsxs)(p.so.Item,{children:[(0,i.jsx)(p.$n,{color:"transparent",icon:"angle-double-left",onClick:function(){return P("adjustCR",{crvalue:0})}}),(0,i.jsx)(p.$n,{color:"transparent",icon:"angle-left",onClick:function(){return P("adjustCR",{crvalue:X-5})}}),X," %",(0,i.jsx)(p.$n,{color:"transparent",icon:"angle-right",onClick:function(){return P("adjustCR",{crvalue:X+5})}}),(0,i.jsx)(p.$n,{color:"transparent",icon:"angle-double-right",onClick:function(){return P("adjustCR",{crvalue:100})}}),(0,i.jsx)(p.N6,{animated:!0,size:3,value:X,minValue:0,maxValue:100,format:function(ee){return ee+"%"},onDrag:function(ee,oe){return P("adjustCR",{crvalue:oe})}})]})]})})]})})}},46836:function(Y,T,s){"use strict";s.r(T),s.d(T,{NumberInputModal:function(){return _}});var i=s(20462),p=s(2686),x=s(6544),y=s(41910),w=s(66272),L=s(5335),U=s(44149);var _=function(){var O=(0,y.Oc)(),A=O.act,S=O.data,P=S.message,R=S.init_value,N=S.timeout,W=S.title,V=S.theme,H=(0,y.Ul)("input",R),Q=H[0],J=H[1],X=function(ee){ee!==Q&&J(ee)},q=125+Math.ceil((P==null?void 0:P.length)/3);return(0,i.jsxs)(w.p8,{title:W,width:270,height:q,theme:V||"nanotrasen",children:[N&&(0,i.jsx)(U.Loader,{value:N}),(0,i.jsx)(w.p8.Content,{onKeyDown:function(ee){var oe=window.event?ee.which:ee.keyCode;oe===x.Ri&&A("submit",{entry:Q}),oe===x.s6&&A("cancel")},children:(0,i.jsx)(p.wn,{fill:!0,children:(0,i.jsxs)(p.BJ,{fill:!0,vertical:!0,children:[(0,i.jsx)(p.BJ.Item,{children:(0,i.jsx)(p.az,{color:"label",children:P})}),(0,i.jsx)(p.BJ.Item,{children:(0,i.jsx)(C,{input:Q,onClick:X,onChange:X,onBlur:X})}),(0,i.jsx)(p.BJ.Item,{pl:4,pr:4,children:(0,i.jsx)(L.InputButtons,{input:Q})})]})})})]})},C=function(O){var A=(0,y.Oc)(),S=A.act,P=A.data,R=P.min_value,N=P.max_value,W=P.init_value,V=P.round_input,H=O.input,Q=O.onClick,J=O.onChange,X=O.onBlur;return(0,i.jsxs)(p.BJ,{fill:!0,children:[(0,i.jsx)(p.BJ.Item,{children:(0,i.jsx)(p.$n,{icon:"angle-double-left",onClick:function(){return Q(R||0)},tooltip:"Minimum"})}),(0,i.jsx)(p.BJ.Item,{grow:!0,children:(0,i.jsx)(p.SM,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!V,minValue:R,maxValue:N,onChange:function(q,ee){return J(ee)},onBlur:function(q,ee){return X(ee)},onEnter:function(q,ee){return S("submit",{entry:ee})},value:H})}),(0,i.jsx)(p.BJ.Item,{children:(0,i.jsx)(p.$n,{icon:"angle-double-right",onClick:function(){return Q(N!==null?N:1e4)},tooltip:"Max"})}),(0,i.jsx)(p.BJ.Item,{children:(0,i.jsx)(p.$n,{icon:"redo",onClick:function(){return Q(W||0)},tooltip:"Reset"})})]})}},47915:function(Y,T,s){"use strict";s.r(T),s.d(T,{ObserverMenu:function(){return _}});var i=s(20462),p=s(61358),x=s(2686),y=s(41910),w=s(66272),L=function(C){var O=(0,y.Oc)().act,A=C.obsObject,S,P=A.name,R=null;return A.dead&&(S="skull"),A.name!==A.real_name&&(P+=" ("+A.real_name+")"),A.job!==null&&(R="Job: "+A.job),A.dup_name_count>0&&(P+=" #"+A.dup_name_count),A.ghost_count>0&&(S="ghost",P=A.ghost_count+" "+P),A.antag!==null&&(P+=" ["+A.antag+"]"),(0,i.jsx)(x.$n,{icon:S,onClick:function(){return O("observe",{targetref:A.ref})},tooltip:R,children:P},A.ref)},U=function(O){var A=O.filter(function(S){return S.player&&!S.dead});return A[Math.floor(Math.random()*A.length)]},_=function(){var C=(0,y.Oc)(),O=C.act,A=C.data,S=(0,p.useState)(""),P=S[0],R=S[1],N=A.mydata.filter(function(J){var X,q,ee,oe;return(J==null||(X=J.name)==null?void 0:X.toLowerCase().includes(P.toLowerCase()))||(J==null||(q=J.real_name)==null?void 0:q.toLowerCase().includes(P.toLowerCase()))||(J==null||(ee=J.job)==null?void 0:ee.toLowerCase().includes(P.toLowerCase()))||(J==null||(oe=J.antag)==null?void 0:oe.toLowerCase().includes(P.toLowerCase()))}),W=function(J){J!==P&&R(J)},V=(0,p.useState)(!1),H=V[0],Q=V[1];return(0,i.jsx)(w.p8,{title:"Choose something to observe",width:600,height:600,children:(0,i.jsx)(w.p8.Content,{scrollable:!0,children:(0,i.jsxs)(x.wn,{fill:!0,title:"Observables",buttons:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.$n,{disabled:A.mydata.filter(function(J){return J.player&&!J.dead}).length===0,onClick:function(){var J;return O("observe",{targetref:(J=U(A.mydata))==null?void 0:J.ref})},icon:"random",tooltip:"Observe a random player"}),(0,i.jsx)(x.$n.Checkbox,{icon:"skull",tooltip:H?"Show dead mobs":"Hide dead mobs",checked:!H,onClick:function(){return Q(!H)}}),(0,i.jsx)(x.pd,{width:20,autoFocus:!0,autoSelect:!0,onInput:function(J,X){return W(X)},placeholder:"Search by name or job",value:P})]}),children:[(0,i.jsxs)(x.Nt,{title:"Antagonists",open:!!A.dnrset,color:"red",children:[!A.dnrset&&(0,i.jsx)(x.Y0,{children:"You must set DNR to view the antagonists"}),N.filter(function(J){return J.antag!==null&&!(J.dead&&H)}).map(function(J){return(0,i.jsx)(L,{obsObject:J},J.ref)})]},"Antags"),(0,i.jsx)(x.Nt,{title:"Players",open:!0,color:"green",children:N.filter(function(J){return J.player&&!(J.dead&&H)}).map(function(J){return(0,i.jsx)(L,{obsObject:J},J.ref)})},"Players"),(0,i.jsx)(x.Nt,{title:"NPCs",color:"blue",children:N.filter(function(J){return J.npc&&!(J.dead&&H)}).map(function(J){return(0,i.jsx)(L,{obsObject:J},J.ref)})},"NPCs"),(0,i.jsx)(x.Nt,{title:"Objects",color:"brown",children:N.filter(function(J){return!J.npc&&!J.player}).map(function(J){return(0,i.jsx)(L,{obsObject:J},J.ref)})},"Objects")]})})})}},70509:function(Y,T,s){"use strict";s.r(T),s.d(T,{OperatingComputer:function(){return A}});var i=s(20462),p=s(2686),x=s(41910),y=s(3250),w=s(79500),L=s(66272),U=s(2549),_=s(4870),C=s(15180),O=s(26376);var A=function(){var ae=(0,x.QY)("tabIndex",1),le=ae[0],de=ae[1];return(0,i.jsx)(L.p8,{title:"Operating Computer",width:560,height:760,children:(0,i.jsxs)(L.p8.Content,{scrollable:!0,children:[(0,i.jsx)(p.tU,{children:(0,i.jsx)(p.tU.Tab,{selected:le===1,onClick:function(){return de(1)},children:"Patient Health"})}),(0,i.jsx)(S,{tabIndex:le})]})})},S=function(ae){var le=ae.tabIndex;switch(le){case 1:return(0,i.jsx)(N,{});default:return null}},P=function(ae){var le=ae.occupied,de=ae.patient_status,me=ae.isCrit,fe="NONE",ue="grey";return le&&(de===2?(fe="DEAD",ue="red"):me?(fe="CRIT",ue="orange"):de===0||!de?(fe="STABLE",ue="green"):de===1&&(fe="UNCON",ue="yellow")),(0,i.jsxs)(p.BJ.Item,{width:20,textAlign:"right",children:[(0,i.jsx)(p.az,{fontSize:1,children:"Status"}),(0,i.jsx)(p.az,{fontSize:1.5,children:(0,i.jsx)(p.az,{color:ue,children:fe})})]})},R=function(ae){var le=ae.health_text,de=ae.health_color;return(0,i.jsxs)(p.BJ.Item,{width:20,textAlign:"right",children:[(0,i.jsx)(p.az,{fontSize:1,children:"Overall Health"}),(0,i.jsx)(p.az,{fontSize:1.5,children:(0,i.jsxs)(p.az,{color:de,children:[le,(0,i.jsx)(p.az,{as:"span",color:"white",children:"%"})]})})]})},N=function(){var ae=(0,x.Oc)().data;return(0,i.jsxs)(p.wn,{children:[(0,i.jsx)(re,{occupied:ae.occupied,patient_name:ae.patient_name,patient_health:ae.current_health,patient_max_health:ae.max_health,patient_status:ae.patient_status}),(0,i.jsx)(X,{}),(0,i.jsx)(p.wn,{title:"Key Health Indicators",children:(0,i.jsx)(_.KeyHealthIndicators,{mobData:ae})}),(0,i.jsx)(q,{occupied:ae.occupied,organs:ae.organ_status,limbs:ae.limb_status}),(0,i.jsx)(ee,{occupied:ae.occupied,reagent_container:ae.reagent_container}),(0,i.jsx)(oe,{occupied:ae.occupied,age:ae.age,blood_type:ae.blood_type,blood_color_value:ae.blood_color_value,blood_color_name:ae.blood_color_name,clone_generation:ae.clone_generation,cloner_defect_count:ae.cloner_defect_count,genetic_stability:ae.genetic_stability})]})},W=function(ae){var le=ae.metric,de=ae.value,me=ae.metric_data,fe=ae.title;return(0,i.jsx)(p.BJ.Item,{width:25,children:(0,i.jsxs)(y.v,{type:le,children:[fe,(0,i.jsx)("br",{}),(0,i.jsx)(p.az,{fontSize:4,children:de}),(0,i.jsx)(p.az,{children:(0,i.jsx)(p.t1.Line,{mt:"5px",height:"5em",data:me,rangeX:[0,me.length-1],rangeY:[0,Math.max(100,(0,U.getStatsMax)(me))],strokeColor:w.lm.damageType[le],fillColor:w.lm.damageTypeFill[le]})})]})})},V=function(ae){var le=ae.occupied,de=ae.organs;return le?(0,i.jsx)(p.BJ.Item,{width:20,children:(0,i.jsxs)(p.XI,{children:[(0,i.jsxs)(p.XI.Row,{children:[(0,i.jsx)(p.XI.Cell,{header:!0,textAlign:"right",children:"Organ"}),(0,i.jsx)(p.XI.Cell,{header:!0,children:"Status"})]}),de.map(function(me){return(0,i.jsx)(H,{organ:me.organ,state:me.state,color:me.color,special:me.special},me.organ)})]})}):null},H=function(ae){var le=ae.organ,de=ae.state,me=ae.color,fe=ae.special;return de==="Okay"&&!fe?null:(0,i.jsxs)(p.XI.Row,{children:[(0,i.jsxs)(p.XI.Cell,{header:!0,textAlign:"right",width:10,children:[(0,O.capitalize)((0,O.spaceUnderscores)(le)),":"]}),(0,i.jsxs)(p.XI.Cell,{width:10,color:me,bold:de==="Missing"||de==="Dead"||de==="Critical",children:[de!=="Okay"&&de,fe&&(0,i.jsx)(p.az,{color:"white",children:fe})]})]})},Q=function(ae){var le=ae.occupied,de=ae.limbs;return le?(0,i.jsx)(p.BJ.Item,{width:20,children:(0,i.jsxs)(p.XI,{children:[(0,i.jsxs)(p.XI.Row,{children:[(0,i.jsx)(p.XI.Cell,{header:!0,textAlign:"right",children:"Limb"}),(0,i.jsx)(p.XI.Cell,{header:!0,children:"Status"})]}),de.map(function(me){return(0,i.jsx)(J,{limb:me.limb,status:me.status},me.limb)})]})}):null},J=function(ae){var le=ae.limb,de=ae.status;return de==="Okay"?null:(0,i.jsxs)(p.XI.Row,{children:[(0,i.jsxs)(p.XI.Cell,{header:!0,textAlign:"right",width:10,children:[(0,O.capitalize)((0,O.spaceUnderscores)(le)),":"]}),(0,i.jsx)(p.XI.Cell,{width:10,color:de==="Missing"?"red":"white",bold:de==="Missing",children:de})]})},X=function(){var ae=(0,x.Oc)().data,le=(0,U.processStatsData)(ae.patient_data),de=ae.occupied?Math.floor(ae.oxygen).toString():"--",me=ae.occupied&&le?le.oxygen:[],fe=ae.occupied?Math.floor(ae.toxin).toString():"--",ue=ae.occupied&&le?le.toxin:[],ye=ae.occupied?Math.floor(ae.burn).toString():"--",Ee=ae.occupied&&le?le.burn:[],se=ae.occupied?Math.floor(ae.brute).toString():"--",pe=ae.occupied&&le?le.brute:[];return(0,i.jsx)(p.wn,{title:"Vitals",children:(0,i.jsxs)(p.BJ,{textAlign:"center",children:[(0,i.jsx)(W,{title:"Suffocation",value:de,metric_data:me,metric:"oxy"}),(0,i.jsx)(W,{title:"Toxin",value:fe,metric_data:ue,metric:"toxin"}),(0,i.jsx)(W,{title:"Burn",value:ye,metric_data:Ee,metric:"burn"}),(0,i.jsx)(W,{title:"Brute",value:se,metric_data:pe,metric:"brute"})]})})},q=function(ae){var le=ae.occupied,de=ae.organs,me=ae.limbs;return(0,i.jsx)(p.wn,{title:"Anatomical Anomalies",color:!le&&"grey",children:(0,i.jsxs)(p.BJ,{children:[!!le&&(0,i.jsx)(V,{occupied:le,organs:de}),!!le&&(0,i.jsx)(Q,{occupied:le,limbs:me}),!le&&"No Patient Detected"]})})},ee=function(ae){var le=ae.occupied,de=ae.reagent_container;return(0,i.jsxs)(p.wn,{title:"Bloodstream Contents",children:[!!le&&(0,i.jsx)(C.ReagentGraph,{container:de}),!le&&"No Patient Detected"]})},oe=function(ae){var le=ae.occupied,de=ae.age,me=ae.blood_type,fe=ae.blood_color_value,ue=ae.blood_color_name,ye=ae.clone_generation,Ee=ae.cloner_defect_count,se=ae.genetic_stability;return le?(0,i.jsx)(p.wn,{title:"Genetic Analysis",children:(0,i.jsxs)(p.BJ,{children:[(0,i.jsx)(p.BJ.Item,{width:20,children:(0,i.jsxs)(p.XI,{children:[(0,i.jsxs)(p.XI.Row,{children:[(0,i.jsx)(p.XI.Cell,{header:!0,textAlign:"right",children:"Age:"}),(0,i.jsx)(p.XI.Cell,{children:de})]}),(0,i.jsxs)(p.XI.Row,{children:[(0,i.jsx)(p.XI.Cell,{header:!0,textAlign:"right",children:"Blood Type:"}),(0,i.jsx)(p.XI.Cell,{children:me})]}),(0,i.jsxs)(p.XI.Row,{children:[(0,i.jsx)(p.XI.Cell,{header:!0,textAlign:"right",children:"Blood Color:"}),(0,i.jsxs)(p.XI.Cell,{children:[(0,i.jsx)(p.BK,{color:fe,content:" "})," ",(0,i.jsx)("span",{children:ue})]})]})]})}),(0,i.jsx)(p.BJ.Item,{width:14,children:(0,i.jsxs)(p.XI,{children:[(0,i.jsxs)(p.XI.Row,{children:[(0,i.jsx)(p.XI.Cell,{header:!0,textAlign:"right",children:"Clone Generation:"}),(0,i.jsx)(p.XI.Cell,{children:ye})]}),(0,i.jsxs)(p.XI.Row,{children:[(0,i.jsx)(p.XI.Cell,{header:!0,textAlign:"right",children:"Genetic Defects:"}),(0,i.jsx)(p.XI.Cell,{children:Ee})]}),(0,i.jsxs)(p.XI.Row,{children:[(0,i.jsx)(p.XI.Cell,{header:!0,textAlign:"right",children:"Genetic Stability:"}),(0,i.jsx)(p.XI.Cell,{children:se})]})]})})]})}):(0,i.jsx)(p.wn,{title:"Genetic Analysis",color:"grey",children:"No Patient Detected"})},re=function(ae){var le=ae.occupied,de=ae.patient_name,me=ae.patient_health,fe=ae.patient_max_health,ue=ae.patient_status,ye=le?"white":"grey",Ee=le&&me<0,se=le?Math.floor(100*me/fe):0,pe="--",ge="grey";return le&&(fe<=0?(ge="purple",pe="???"):(pe=se.toString(),se>=51&&se<=100?ge="green":se>=1&&se<=50?ge="yellow":ge="red")),(0,i.jsxs)(p.BJ,{children:[(0,i.jsxs)(p.BJ.Item,{width:60,children:[(0,i.jsx)(p.az,{fontSize:1,children:"Patient Name"}),(0,i.jsxs)(p.az,{fontSize:1.5,color:ye,children:[!!de&&de,!de&&"No Patient Detected"]})]}),(0,i.jsx)(R,{health_text:pe,health_color:ge}),(0,i.jsx)(P,{occupied:le,patient_status:ue,isCrit:!!Ee})]})}},18755:function(Y,T,s){"use strict";s.r(T);},31944:function(Y,T,s){"use strict";s.r(T),s.d(T,{PINInputModal:function(){return _}});var i=s(20462),p=s(61358),x=s(2686),y=s(6544),w=s(41910),L=s(66272),U=s(44149);var _=function(){var A=(0,w.Oc)(),S=A.act,P=A.data,R=P.message,N=P.init_value,W=P.min_value,V=P.max_value,H=P.timeout,Q=P.title,J=P.theme,X=(0,p.useState)(C(N)),q=X[0],ee=X[1],oe=(0,p.useState)(!1),re=oe[0],ae=oe[1],le=function(me){q.length<4?ee([].concat(q,[me])):ee([].concat(q.slice(0,-1),[me]))},de=function(){if(!(q.length<4)){if(W!==null&&O(q)V){ae(!0),ee([]);return}S("submit",{entry:q})}};return(0,i.jsxs)(L.p8,{title:Q,width:160,height:re?345:315,theme:J||"nanotrasen",children:[H&&(0,i.jsx)(U.Loader,{value:H}),(0,i.jsxs)(L.p8.Content,{onKeyDown:function(me){var fe=window.event?me.which:me.keyCode;if(fe===y.Ri)de();else if(fe===y.s6)S("cancel");else if(fe===y.ye)ee(q.slice(0,-1));else if(fe===y.kN)ee([]);else if(fe>=y.Pm&&fe<=y.Wy){var ue=fe-y.Pm;le(ue)}else if(fe>=y.hr&&fe<=y.C){var ye=fe-y.hr;le(ye)}},children:[(0,i.jsx)(x.y5,{}),re?(0,i.jsxs)(x.IC,{danger:!0,children:["The PIN you entered is outside the valid range of ",W,"-",V,"."]}):(0,i.jsx)(x.IC,{info:!0,children:R}),(0,i.jsxs)(x.wn,{className:"PINInput",children:[(0,i.jsx)(x.BJ,{fill:!0,className:"PINInput__Stack",mb:1,children:(0,i.jsx)("div",{className:"PINInput__display",children:Array.from({length:4},function(me,fe){var ue=q[fe];return(0,i.jsx)("span",{className:"PINInput__digit",children:ue===void 0?"_":ue},fe)})})}),(0,i.jsxs)(x.BJ,{fill:!0,vertical:!0,children:[Array.from({length:3},function(me,fe){return(0,i.jsx)(x.BJ.Item,{children:(0,i.jsx)(x.BJ,{fill:!0,children:Array.from({length:3},function(ue,ye){var Ee=fe*3+ye+1;return(0,i.jsx)(x.BJ.Item,{grow:!0,children:(0,i.jsx)(x.$n,{className:"PINInput__button",onClick:function(){return le(Ee)},children:Ee})},ye)})})},fe)}),(0,i.jsx)(x.BJ.Item,{children:(0,i.jsxs)(x.BJ,{fill:!0,children:[(0,i.jsx)(x.BJ.Item,{grow:!0,children:(0,i.jsx)(x.$n,{icon:"circle-xmark",className:"PINInput__button",color:"red",onClick:function(){return ee([])}})}),(0,i.jsx)(x.BJ.Item,{grow:!0,children:(0,i.jsx)(x.$n,{className:"PINInput__button",onClick:function(){return le(0)},children:"0"})}),(0,i.jsx)(x.BJ.Item,{grow:!0,children:(0,i.jsx)(x.$n,{icon:"circle-right",iconPosition:"center",className:"PINInput__button",color:"green",onClick:de})})]})})]})]})]})]})},C=function(A){if(A===null)return[];for(var S=Array(4),P=0;P<4;P++)S[P]=Math.floor(A/Math.pow(10,3-P))%10;return S},O=function(A){return A.reduce(function(S,P,R){return S+P*Math.pow(10,3-R)},0)}},32012:function(Y,T,s){"use strict";s.r(T),s.d(T,{PacketVision:function(){return _}});var i=s(20462),p=s(2686),x=s(41910),y=s(41242),w=s(66272);var L=1141,U=1489,_=function(){var C=(0,x.Oc)(),O=C.data,A=C.act,S=function(P,R){A("set-frequency",{value:P,finish:R})};return(0,i.jsx)(w.p8,{width:280,height:150,title:"Packetvision HUD",children:(0,i.jsx)(w.p8.Content,{children:(0,i.jsx)(p.wn,{children:(0,i.jsx)(p.Ki,{children:(0,i.jsx)(p.Ki.Item,{label:"Frequency",children:(0,i.jsxs)(p.BJ,{align:"center",children:[(0,i.jsx)(p.BJ.Item,{children:(0,i.jsx)(p.N6,{animated:!0,value:O.frequency,minValue:L,maxValue:U,stepPixelSize:2,format:y.QR,onDrag:function(P,R){return S(R,!1)},onChange:function(P,R){return S(R,!0)}})}),(0,i.jsx)(p.BJ.Item,{children:(0,i.jsx)(p.zv,{value:O.frequency,format:y.QR})})]})})})})})})}},57536:function(Y,T,s){"use strict";s.r(T),s.d(T,{HelpToolip:function(){return x}});var i=s(20462),p=s(2686),x=function(){return(0,i.jsxs)(p.az,{position:"absolute",left:"10px",top:"25px",width:"300px",height:"350px",backgroundColor:"#E8E4C9",textAlign:"center",children:[(0,i.jsx)("h3",{children:"Markdown Syntax"}),(0,i.jsxs)(p.XI,{children:[(0,i.jsxs)(p.XI.Row,{children:[(0,i.jsx)(p.XI.Cell,{children:(0,i.jsx)(p.az,{children:"# Heading"})}),(0,i.jsx)(p.XI.Cell,{children:(0,i.jsx)("h2",{children:"Heading"})})]}),(0,i.jsxs)(p.XI.Row,{children:[(0,i.jsx)(p.XI.Cell,{children:(0,i.jsx)(p.az,{children:"## Sub Heading"})}),(0,i.jsx)(p.XI.Cell,{children:(0,i.jsx)("h4",{children:"Sub Heading"})})]}),(0,i.jsxs)(p.XI.Row,{children:[(0,i.jsx)(p.XI.Cell,{children:"_Italic Text_"}),(0,i.jsx)(p.XI.Cell,{children:(0,i.jsx)("i",{children:"Italic Text"})})]}),(0,i.jsxs)(p.XI.Row,{children:[(0,i.jsx)(p.XI.Cell,{children:"**Bold Text**"}),(0,i.jsx)(p.XI.Cell,{children:(0,i.jsx)("b",{children:"Bold Text"})})]}),(0,i.jsxs)(p.XI.Row,{children:[(0,i.jsx)(p.XI.Cell,{children:"`Code Text`"}),(0,i.jsx)(p.XI.Cell,{children:(0,i.jsx)("code",{children:"Code Text"})})]}),(0,i.jsxs)(p.XI.Row,{children:[(0,i.jsx)(p.XI.Cell,{children:"~~Strikethrough Text~~"}),(0,i.jsx)(p.XI.Cell,{children:(0,i.jsx)("s",{children:"Strikethrough Text"})})]}),(0,i.jsx)(p.XI.Row,{children:(0,i.jsx)(p.XI.Cell,{children:(0,i.jsx)("br",{})})}),(0,i.jsxs)(p.XI.Row,{children:[(0,i.jsxs)(p.XI.Cell,{children:[(0,i.jsx)(p.az,{children:"Horizontal Rule"}),"---"]}),(0,i.jsxs)(p.XI.Cell,{children:["Horizontal Rule",(0,i.jsx)("hr",{})]})]}),(0,i.jsxs)(p.XI.Row,{children:[(0,i.jsx)(p.XI.Cell,{children:(0,i.jsxs)(p.XI,{children:[(0,i.jsx)(p.XI.Row,{children:"* List Element 1"}),(0,i.jsx)(p.XI.Row,{children:"* List Element 2"}),(0,i.jsx)(p.XI.Row,{children:"* Etc..."})]})}),(0,i.jsx)(p.XI.Cell,{children:(0,i.jsxs)("ul",{children:[(0,i.jsx)("li",{children:"List Element 1"}),(0,i.jsx)("li",{children:"List Element 2"}),(0,i.jsx)("li",{children:"Etc..."})]})})]}),(0,i.jsxs)(p.XI.Row,{children:[(0,i.jsx)(p.XI.Cell,{children:(0,i.jsxs)(p.XI,{children:[(0,i.jsx)(p.XI.Row,{children:"1. List Element 1"}),(0,i.jsx)(p.XI.Row,{children:"2. List Element 2"}),(0,i.jsx)(p.XI.Row,{children:"3. Etc..."})]})}),(0,i.jsx)(p.XI.Cell,{children:(0,i.jsxs)("ol",{children:[(0,i.jsx)("li",{children:"List Element 1"}),(0,i.jsx)("li",{children:"List Element 2"}),(0,i.jsx)("li",{children:"Etc..."})]})})]}),(0,i.jsxs)(p.XI.Row,{children:[(0,i.jsx)(p.XI.Cell,{children:"%sign"}),(0,i.jsx)(p.XI.Cell,{children:(0,i.jsx)("i",{children:"Your Name Here"})})]})]})]})}},55648:function(Y,T,s){"use strict";s.r(T),s.d(T,{PaperSheetStamper:function(){return _},PaperSheetView:function(){return S}});var i=s(20462),p=s(61358),x=s(2686),y=s(99202),w=s(31200),L=s(41910),U=30,_=function(P){var R=P.value,N=P.stampClass,W=P.stamps,V=(0,p.useState)(0),H=V[0],Q=V[1],J=(0,p.useState)(0),X=J[0],q=J[1],ee=(0,p.useState)(0),oe=ee[0],re=ee[1],ae=function(ue){var ye=document.querySelector(".Layout__content");if(ye){var Ee=!1;ue.shiftKey&&(Ee=!0);var se=document.getElementById("stamp");if(se){var pe=se.clientHeight,ge=se.clientWidth,Ie=Ee?X:ue.pageY+ye.scrollTop-pe,xe=Ee?H:ue.pageX-ge/2,Oe=0,Be=0,Ke=ye.clientWidth-ge,ke=ye.clientHeight+ye.scrollTop-pe,Ve=Math.atan2(ue.pageX-xe,ue.pageY-Ie),lt=Ee?Ve*(180/Math.PI)*-1:oe;return[(0,y.qE)(xe,Oe,Ke),(0,y.qE)(Ie,Be,ke),lt]}}},le=function(ue){var ye=ae(ue);ye&&(O(ue),Q(ye[0]),q(ye[1]),re(ye[2]))},de=function(ue){if(!(ue.pageY<=U)){var ye=(0,L.Oc)().act,Ee={x:H,y:X,r:oe};ye("stamp",Ee)}};(0,p.useEffect)(function(){return document.addEventListener("mousemove",le),document.addEventListener("click",de),function(){document.removeEventListener("mousemove",le),document.removeEventListener("click",de)}},[H,X,oe]);var me=W||[],fe={sprite:N,x:H,y:X,rotate:oe};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(S,{readOnly:!0,value:R,stamps:me}),(0,i.jsx)(C,{activeStamp:!0,opacity:.5,image:fe})]})},C=function(P){var R={left:P.image.x+"px",top:P.image.y+"px",transform:"rotate("+P.image.rotate+"deg)",opacity:P.opacity||1};return P.image.sprite.match("stamp-.*")?(0,i.jsx)("img",{id:P.activeStamp?"stamp":void 0,style:R,className:"paper__stamp",src:(0,w.l)(P.image.sprite)}):(0,i.jsx)(x.az,{id:P.activeStamp?"stamp":void 0,style:R,className:"paper__stamp-text",children:P.image.sprite})},O=function(P){return P.stopPropagation&&P.stopPropagation(),P.preventDefault&&P.preventDefault(),P.cancelBubble=!0,P.returnValue=!1,!1},A=function(P,R){return R?P.replace(/'+A(N,Q)+""};return(0,i.jsxs)(x.az,{className:"paper__page",position:"relative",backgroundColor:H,width:"100%",height:"100%",children:[(0,i.jsx)(x.az,{color:"black",backgroundColor:H,fillPositionedParent:!0,width:"100%",height:"100%",dangerouslySetInnerHTML:X,p:"10px"}),J.map(function(q,ee){return(0,i.jsx)(C,{image:{sprite:q[0],x:q[1],y:q[2],rotate:q[3]}},q[0]+ee)})]})}},96662:function(Y,T,s){"use strict";s.r(T),s.d(T,{PaperSheet:function(){return Ho}});var i=s(20462),p=s(61358);function x(G){"@swc/helpers - typeof";return G&&typeof Symbol!="undefined"&&G.constructor===Symbol?"symbol":typeof G}var y;function w(G){return y=y||document.createElement("textarea"),y.innerHTML="&"+G+";",y.value}function L(G){return Object.prototype.toString.call(G)}function U(G){return L(G)==="[object String]"}var _=Object.prototype.hasOwnProperty;function C(G,Me){return G?_.call(G,Me):!1}function O(G){var Me=[].slice.call(arguments,1);return Me.forEach(function(Pe){if(Pe){if((typeof Pe=="undefined"?"undefined":x(Pe))!=="object")throw new TypeError(Pe+"must be object");Object.keys(Pe).forEach(function(Te){G[Te]=Pe[Te]})}}),G}var A=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function S(G){return G.indexOf("\\")<0?G:G.replace(A,"$1")}function P(G){return!(G>=55296&&G<=57343||G>=64976&&G<=65007||(G&65535)===65535||(G&65535)===65534||G>=0&&G<=8||G===11||G>=14&&G<=31||G>=127&&G<=159||G>1114111)}function R(G){if(G>65535){G-=65536;var Me=55296+(G>>10),Pe=56320+(G&1023);return String.fromCharCode(Me,Pe)}return String.fromCharCode(G)}var N=/&([a-z#][a-z0-9]{1,31});/gi,W=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;function V(G,Me){var Pe=0,Te=w(Me);return Me!==Te?Te:Me.charCodeAt(0)===35&&W.test(Me)&&(Pe=Me[1].toLowerCase()==="x"?parseInt(Me.slice(2),16):parseInt(Me.slice(1),10),P(Pe))?R(Pe):G}function H(G){return G.indexOf("&")<0?G:G.replace(N,V)}var Q=/[&<>"]/,J=/[&<>"]/g,X={"&":"&","<":"<",">":">",'"':"""};function q(G){return X[G]}function ee(G){return Q.test(G)?G.replace(J,q):G}var oe=Object.freeze({isString:U,has:C,assign:O,unescapeMd:S,isValidEntityCode:P,fromCodePoint:R,replaceEntities:H,escapeHtml:ee}),re={};re.blockquote_open=function(){return"\n"},re.blockquote_close=function(G,Me){return"
"+le(G,Me)},re.code=function(G,Me){return G[Me].block?""+ee(G[Me].content)+"
"+le(G,Me):""+ee(G[Me].content)+"
"},re.fence=function(G,Me,Pe,Te,Se){var Re=G[Me],we="",De=Pe.langPrefix,We="",Je,rt,At;if(Re.params){if(Je=Re.params.split(/\s+/g),rt=Je.join(" "),C(Se.rules.fence_custom,Je[0]))return Se.rules.fence_custom[Je[0]](G,Me,Pe,Te,Se);We=ee(H(S(rt))),we=' class="'+De+We+'"'}return Pe.highlight?At=Pe.highlight.apply(Pe.highlight,[Re.content].concat(Je))||ee(Re.content):At=ee(Re.content),""+At+"
"+le(G,Me)},re.fence_custom={},re.heading_open=function(G,Me){return""},re.heading_close=function(G,Me){return"\n"},re.hr=function(G,Me,Pe){return(Pe.xhtmlOut?"
":"
")+le(G,Me)},re.bullet_list_open=function(){return"\n"},re.bullet_list_close=function(G,Me){return"
"+le(G,Me)},re.list_item_open=function(){return""},re.list_item_close=function(){return"\n"},re.ordered_list_open=function(G,Me){var Pe=G[Me],Te=Pe.order>1?' start="'+Pe.order+'"':"";return"\n"},re.ordered_list_close=function(G,Me){return"
"+le(G,Me)},re.paragraph_open=function(G,Me){return G[Me].tight?"":""},re.paragraph_close=function(G,Me){var Pe=!(G[Me].tight&&Me&&G[Me-1].type==="inline"&&!G[Me-1].content);return(G[Me].tight?"":"
")+(Pe?le(G,Me):"")},re.link_open=function(G,Me,Pe){var Te=G[Me].title?' title="'+ee(H(G[Me].title))+'"':"",Se=Pe.linkTarget?' target="'+Pe.linkTarget+'"':"";return'"},re.link_close=function(){return""},re.image=function(G,Me,Pe){var Te=' src="'+ee(G[Me].src)+'"',Se=G[Me].title?' title="'+ee(H(G[Me].title))+'"':"",Re=' alt="'+(G[Me].alt?ee(H(S(G[Me].alt))):"")+'"',we=Pe.xhtmlOut?" /":"";return""},re.table_open=function(){return"\n"},re.table_close=function(){return"
\n"},re.thead_open=function(){return"\n"},re.thead_close=function(){return"\n"},re.tbody_open=function(){return"\n"},re.tbody_close=function(){return"\n"},re.tr_open=function(){return""},re.tr_close=function(){return"
\n"},re.th_open=function(G,Me){var Pe=G[Me];return""},re.th_close=function(){return" | "},re.td_open=function(G,Me){var Pe=G[Me];return""},re.td_close=function(){return" | "},re.strong_open=function(){return""},re.strong_close=function(){return""},re.em_open=function(){return""},re.em_close=function(){return""},re.del_open=function(){return""},re.del_close=function(){return""},re.ins_open=function(){return""},re.ins_close=function(){return""},re.mark_open=function(){return""},re.mark_close=function(){return""},re.sub=function(G,Me){return""+ee(G[Me].content)+""},re.sup=function(G,Me){return""+ee(G[Me].content)+""},re.hardbreak=function(G,Me,Pe){return Pe.xhtmlOut?"
\n":"
\n"},re.softbreak=function(G,Me,Pe){return Pe.breaks?Pe.xhtmlOut?"
\n":"
\n":"\n"},re.text=function(G,Me){return ee(G[Me].content)},re.htmlblock=function(G,Me){return G[Me].content},re.htmltag=function(G,Me){return G[Me].content},re.abbr_open=function(G,Me){return''},re.abbr_close=function(){return""},re.footnote_ref=function(G,Me){var Pe=Number(G[Me].id+1).toString(),Te="fnref"+Pe;return G[Me].subId>0&&(Te+=":"+G[Me].subId),'"},re.footnote_block_open=function(G,Me,Pe){var Te=Pe.xhtmlOut?'\n':'\n';return Te+'\n"},re.footnote_open=function(G,Me){var Pe=Number(G[Me].id+1).toString();return'\n"},re.footnote_anchor=function(G,Me){var Pe=Number(G[Me].id+1).toString(),Te="fnref"+Pe;return G[Me].subId>0&&(Te+=":"+G[Me].subId),' '},re.dl_open=function(){return"\n"},re.dt_open=function(){return"- "},re.dd_open=function(){return"
- "},re.dl_close=function(){return"
\n"},re.dt_close=function(){return"
\n"},re.dd_close=function(){return"\n"};function ae(G,Me){return++Me>=G.length-2?Me:G[Me].type==="paragraph_open"&&G[Me].tight&&G[Me+1].type==="inline"&&G[Me+1].content.length===0&&G[Me+2].type==="paragraph_close"&&G[Me+2].tight?ae(G,Me+2):Me}var le=re.getBreak=function(Me,Pe){return Pe=ae(Me,Pe),Pe1)||Pe===41&&(Te--,Te<0))break;Me++}return Re===Me||(Se=S(G.src.slice(Re,Me)),!G.parser.validateLink(Se))?!1:(G.linkContent=Se,G.pos=Me,!0)}function Ie(G,Me){var Pe,Te=Me,Se=G.posMax,Re=G.src.charCodeAt(Me);if(Re!==34&&Re!==39&&Re!==40)return!1;for(Me++,Re===40&&(Re=41);Me0?we[Me].count:1,Te=0;Te=0;Me--)if(Re=Se[Me],Re.type==="text"){for(We=0,we=Re.content,rt.lastIndex=0,Je=Re.level,De=[];At=rt.exec(we);)rt.lastIndex>We&&De.push({type:"text",content:we.slice(We,At.index+At[1].length),level:Je}),De.push({type:"abbr_open",title:G.env.abbreviations[":"+At[2]],level:Je++}),De.push({type:"text",content:At[2],level:Je}),De.push({type:"abbr_close",level:--Je}),We=rt.lastIndex-At[3].length;De.length&&(We=0;Re--)if(G.tokens[Re].type==="inline")for(Se=G.tokens[Re].children,Me=Se.length-1;Me>=0;Me--)Pe=Se[Me],Pe.type==="text"&&(Te=Pe.content,Te=Ge(Te),He.test(Te)&&(Te=Te.replace(/\+-/g,"\xB1").replace(/\.{2,}/g,"\u2026").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/mg,"$1\u2014$2").replace(/(^|\s)--(\s|$)/mg,"$1\u2013$2").replace(/(^|[^-\s])--([^-\s]|$)/mg,"$1\u2013$2")),Pe.content=Te)}}var at=/['"]/,gt=/['"]/g,dt=/[-\s()\[\]]/,Pt="\u2019";function Et(G,Me){return Me<0||Me>=G.length?!1:!dt.test(G[Me])}function Tt(G,Me,Pe){return G.substr(0,Me)+Pe+G.substr(Me+1)}function Dt(G){var Me,Pe,Te,Se,Re,we,De,We,Je,rt,At,Ot,St,rn,zt,ln,cn;if(G.options.typographer){for(cn=[],zt=G.tokens.length-1;zt>=0;zt--)if(G.tokens[zt].type==="inline"){for(ln=G.tokens[zt].children,cn.length=0,Me=0;Me=0&&!(cn[St].level<=De);St--);cn.length=St+1,Te=Pe.content,Re=0,we=Te.length;e:for(;Re=0&&(rt=cn[St],!(cn[St].level=this.eMarks[Me]},st.prototype.skipEmptyLines=function(Me){for(var Pe=this.lineMax;MeTe;)if(Pe!==this.src.charCodeAt(--Me))return Me+1;return Me},st.prototype.getLines=function(Me,Pe,Te,Se){var Re,we,De,We,Je,rt=Me;if(Me>=Pe)return"";if(rt+1===Pe)return we=this.bMarks[rt]+Math.min(this.tShift[rt],Te),De=Se?this.eMarks[rt]+1:this.eMarks[rt],this.src.slice(we,De);for(We=new Array(Pe-Me),Re=0;rtTe&&(Je=Te),Je<0&&(Je=0),we=this.bMarks[rt]+Je,rt+1=4){Te++,Se=Te;continue}break}return G.line=Te,G.tokens.push({type:"code",content:G.getLines(Me,Se,4+G.blkIndent,!0),block:!0,lines:[Me,G.line],level:G.level}),!0}function Vt(G,Me,Pe,Te){var Se,Re,we,De,We,Je=!1,rt=G.bMarks[Me]+G.tShift[Me],At=G.eMarks[Me];if(rt+3>At||(Se=G.src.charCodeAt(rt),Se!==126&&Se!==96)||(We=rt,rt=G.skipChars(rt,Se),Re=rt-We,Re<3)||(we=G.src.slice(rt,At).trim(),we.indexOf("`")>=0))return!1;if(Te)return!0;for(De=Me;De++,!(De>=Pe||(rt=We=G.bMarks[De]+G.tShift[De],At=G.eMarks[De],rt=4)&&(rt=G.skipChars(rt,Se),!(rt-Weln||G.src.charCodeAt(zt++)!==62||G.level>=G.options.maxNesting)return!1;if(Te)return!0;for(G.src.charCodeAt(zt)===32&&zt++,We=G.blkIndent,G.blkIndent=0,De=[G.bMarks[Me]],G.bMarks[Me]=zt,zt=zt=ln,we=[G.tShift[Me]],G.tShift[Me]=zt-G.bMarks[Me],At=G.parser.ruler.getRules("blockquote"),Se=Me+1;Se=ln));Se++){if(G.src.charCodeAt(zt++)===62){G.src.charCodeAt(zt)===32&&zt++,De.push(G.bMarks[Se]),G.bMarks[Se]=zt,zt=zt=ln,we.push(G.tShift[Se]),G.tShift[Se]=zt-G.bMarks[Se];continue}if(Re)break;for(rn=!1,Ot=0,St=At.length;OtWe||(Se=G.src.charCodeAt(De++),Se!==42&&Se!==45&&Se!==95))return!1;for(Re=1;De=Se||(Pe=G.src.charCodeAt(Te++),Pe!==42&&Pe!==45&&Pe!==43)||Te=Se||(Pe=G.src.charCodeAt(Te++),Pe<48||Pe>57))return-1;for(;;){if(Te>=Se)return-1;if(Pe=G.src.charCodeAt(Te++),!(Pe>=48&&Pe<=57)){if(Pe===41||Pe===46)break;return-1}}return Te=0)ln=!0;else if((At=un(G,Me))>=0)ln=!1;else return!1;if(G.level>=G.options.maxNesting)return!1;if(zt=G.src.charCodeAt(At-1),Te)return!0;for($r=G.tokens.length,ln?(rt=G.bMarks[Me]+G.tShift[Me],rn=Number(G.src.substr(rt,At-rt-1)),G.tokens.push({type:"ordered_list_open",order:rn,lines:Ao=[Me,0],level:G.level++})):G.tokens.push({type:"bullet_list_open",lines:Ao=[Me,0],level:G.level++}),Se=Me,Or=!1,Di=G.parser.ruler.getRules("list");Se=Ot?St=1:St=cn-At,St>4&&(St=1),St<1&&(St=1),Re=At-G.bMarks[Se]+St,G.tokens.push({type:"list_item_open",lines:ri=[Me,0],level:G.level++}),De=G.blkIndent,We=G.tight,we=G.tShift[Me],Je=G.parentType,G.tShift[Me]=cn-G.bMarks[Me],G.blkIndent=Re,G.tight=!0,G.parentType="list",G.parser.tokenize(G,Me,Pe,!0),(!G.tight||Or)&&(Dr=!1),Or=G.line-Me>1&&G.isEmpty(G.line-1),G.blkIndent=De,G.tShift[Me]=we,G.tight=We,G.parentType=Je,G.tokens.push({type:"list_item_close",level:--G.level}),Se=Me=G.line,ri[1]=Se,cn=G.bMarks[Me],!(Se>=Pe||G.isEmpty(Se)||G.tShift[Se]rt||G.src.charCodeAt(Je)!==91||G.src.charCodeAt(Je+1)!==94||G.level>=G.options.maxNesting)return!1;for(De=Je+2;De