diff --git a/mxcube3/static/1cae45989275e1ad4e956e92a9fd08ff.ogv b/mxcube3/static/1cae45989275e1ad4e956e92a9fd08ff.ogv
new file mode 100644
index 000000000..fc1791067
Binary files /dev/null and b/mxcube3/static/1cae45989275e1ad4e956e92a9fd08ff.ogv differ
diff --git a/mxcube3/static/46661d6d65debc63884004fed6e37e5c.svg b/mxcube3/static/46661d6d65debc63884004fed6e37e5c.svg
new file mode 100644
index 000000000..5fda42219
--- /dev/null
+++ b/mxcube3/static/46661d6d65debc63884004fed6e37e5c.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/mxcube3/static/5f4164edee3a93d7c577722fd59dc454.gif b/mxcube3/static/5f4164edee3a93d7c577722fd59dc454.gif
new file mode 100644
index 000000000..2b51ae103
Binary files /dev/null and b/mxcube3/static/5f4164edee3a93d7c577722fd59dc454.gif differ
diff --git a/mxcube3/static/674f50d287a8c48dc19ba404d20fe713.eot b/mxcube3/static/674f50d287a8c48dc19ba404d20fe713.eot
new file mode 100644
index 000000000..e9f60ca95
Binary files /dev/null and b/mxcube3/static/674f50d287a8c48dc19ba404d20fe713.eot differ
diff --git a/mxcube3/static/677433a0892aaed7b7d2628c313c9775.svg b/mxcube3/static/677433a0892aaed7b7d2628c313c9775.svg
new file mode 100644
index 000000000..950ddbbd8
--- /dev/null
+++ b/mxcube3/static/677433a0892aaed7b7d2628c313c9775.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/mxcube3/static/7d6298bc6c52df32dcdc5706c5bd862c.png b/mxcube3/static/7d6298bc6c52df32dcdc5706c5bd862c.png
new file mode 100644
index 000000000..fcab8f3bd
Binary files /dev/null and b/mxcube3/static/7d6298bc6c52df32dcdc5706c5bd862c.png differ
diff --git a/mxcube3/static/8a9853e0395b8ce408e9312f143ca9c0.ogv b/mxcube3/static/8a9853e0395b8ce408e9312f143ca9c0.ogv
new file mode 100644
index 000000000..ba4fde0af
Binary files /dev/null and b/mxcube3/static/8a9853e0395b8ce408e9312f143ca9c0.ogv differ
diff --git a/mxcube3/static/a51c5608d01acf32df728f299767f82b.gif b/mxcube3/static/a51c5608d01acf32df728f299767f82b.gif
new file mode 100644
index 000000000..3288d1035
Binary files /dev/null and b/mxcube3/static/a51c5608d01acf32df728f299767f82b.gif differ
diff --git a/mxcube3/static/b06871f281fee6b241d60582ae9369b9.ttf b/mxcube3/static/b06871f281fee6b241d60582ae9369b9.ttf
new file mode 100644
index 000000000..35acda2fa
Binary files /dev/null and b/mxcube3/static/b06871f281fee6b241d60582ae9369b9.ttf differ
diff --git a/mxcube3/static/c3437d3371f119024def49ac75d53fe4.png b/mxcube3/static/c3437d3371f119024def49ac75d53fe4.png
new file mode 100644
index 000000000..c236b8810
Binary files /dev/null and b/mxcube3/static/c3437d3371f119024def49ac75d53fe4.png differ
diff --git a/mxcube3/static/e9b1dc2cd9cf3db3a3946d6f766cb64e.ogv b/mxcube3/static/e9b1dc2cd9cf3db3a3946d6f766cb64e.ogv
new file mode 100644
index 000000000..c018018a2
Binary files /dev/null and b/mxcube3/static/e9b1dc2cd9cf3db3a3946d6f766cb64e.ogv differ
diff --git a/mxcube3/static/index.html b/mxcube3/static/index.html
new file mode 100644
index 000000000..9c31bff30
--- /dev/null
+++ b/mxcube3/static/index.html
@@ -0,0 +1,12 @@
+
+
+
+
+ MXCuBE 3
+
+
+
+
+
+
+
diff --git a/mxcube3/static/main.js b/mxcube3/static/main.js
new file mode 100644
index 000000000..f153ee378
--- /dev/null
+++ b/mxcube3/static/main.js
@@ -0,0 +1,105 @@
+!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=822)}([function(e,t,n){"use strict";e.exports=n(147)},function(e,t,n){var r=n(18),o=n(65),i=n(47),a=n(48),s=n(59),l=function(e,t,n){var c,u,p,f,d=e&l.F,h=e&l.G,m=e&l.S,g=e&l.P,v=e&l.B,y=h?r:m?r[t]||(r[t]={}):(r[t]||{}).prototype,b=h?o:o[t]||(o[t]={}),A=b.prototype||(b.prototype={});h&&(n=t);for(c in n)u=!d&&y&&void 0!==y[c],p=(u?y:n)[c],f=v&&u?s(p,r):g&&"function"==typeof p?s(Function.call,p):p,y&&a(y,c,p,e&l.U),b[c]!=p&&i(b,c,f),g&&A[c]!=p&&(A[c]=p)};r.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){var r,o;/*!
+ Copyright (c) 2016 Jed Watson.
+ Licensed under the MIT License (MIT), see
+ http://jedwatson.github.io/classnames
+*/
+!function(){"use strict";function n(){for(var e=[],t=0;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},function(e,t,n){"use strict";function r(e,t,n,r,i,a,s,l){if(o(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,a,s,l],p=0;c=new Error(t.replace(/%s/g,function(){return u[p++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var o=function(e){};e.exports=r},function(e,t,n){"use strict";function r(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r",NEXT_PAGE_TITLE:"next page",LAST_PAGE:">>",LAST_PAGE_TITLE:"last page",PRE_PAGE:"<",PRE_PAGE_TITLE:"previous page",FIRST_PAGE:"<<",FIRST_PAGE_TITLE:"first page",PAGE_START_INDEX:1,ROW_SELECT_BG_COLOR:"",ROW_SELECT_NONE:"none",ROW_SELECT_SINGLE:"radio",ROW_SELECT_MULTI:"checkbox",CELL_EDIT_NONE:"none",CELL_EDIT_CLICK:"click",CELL_EDIT_DBCLICK:"dbclick",SIZE_PER_PAGE_LIST:[10,25,30,50],PAGINATION_SIZE:5,PAGINATION_POS_TOP:"top",PAGINATION_POS_BOTTOM:"bottom",PAGINATION_POS_BOTH:"both",NO_DATA_TEXT:"There is no data to display",SHOW_ONLY_SELECT:"Show Selected Only",SHOW_ALL:"Show All",EXPORT_CSV_TEXT:"Export to CSV",INSERT_BTN_TEXT:"New",DELETE_BTN_TEXT:"Delete",SAVE_BTN_TEXT:"Save",CLOSE_BTN_TEXT:"Close",FILTER_DELAY:500,SCROLL_TOP:"Top",SCROLL_BOTTOM:"Bottom",FILTER_TYPE:{TEXT:"TextFilter",REGEX:"RegexFilter",SELECT:"SelectFilter",NUMBER:"NumberFilter",DATE:"DateFilter",CUSTOM:"CustomFilter"},FILTER_COND_EQ:"eq",FILTER_COND_LIKE:"like",EXPAND_BY_ROW:"row",EXPAND_BY_COL:"column",CANCEL_TOASTR:"Pressed ESC can cancel",REMOTE_SORT:"sort",REMOTE_PAGE:"pagination",REMOTE_CELL_EDIT:"cellEdit",REMOTE_INSERT_ROW:"insertRow",REMOTE_DROP_ROW:"dropRow",REMOTE_FILTER:"filter",REMOTE_SEARCH:"search",REMOTE_EXPORT_CSV:"exportCSV",DEFAULT_CSV_SEPARATOR:","};r.REMOTE={},r.REMOTE[r.REMOTE_SORT]=!1,r.REMOTE[r.REMOTE_PAGE]=!1,r.REMOTE[r.REMOTE_CELL_EDIT]=!1,r.REMOTE[r.REMOTE_INSERT_ROW]=!1,r.REMOTE[r.REMOTE_DROP_ROW]=!1,r.REMOTE[r.REMOTE_FILTER]=!1,r.REMOTE[r.REMOTE_SEARCH]=!1,r.REMOTE[r.REMOTE_EXPORT_CSV]=!1;var o=r;t.default=o,function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(r,"CONST_VAR","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/Const.js"),__REACT_HOT_LOADER__.register(o,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/Const.js"))}()},function(e,t,n){e.exports=!n(20)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(16),o=n(476),i=n(66),a=Object.defineProperty;t.f=n(32)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(68),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t){function n(e,t){for(var n=0;n1)for(var n=1;n"+o+""+t+">"};e.exports=function(e,t){var n={};n[e]=t(s),r(r.P+r.F*o(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",n)}},function(e,t,n){"use strict";function r(e,t,n){var r=0;return f.a.Children.map(e,function(e){return f.a.isValidElement(e)?t.call(n,e,r++):e})}function o(e,t,n){var r=0;f.a.Children.forEach(e,function(e){f.a.isValidElement(e)&&t.call(n,e,r++)})}function i(e){var t=0;return f.a.Children.forEach(e,function(e){f.a.isValidElement(e)&&++t}),t}function a(e,t,n){var r=0,o=[];return f.a.Children.forEach(e,function(e){f.a.isValidElement(e)&&t.call(n,e,r++)&&o.push(e)}),o}function s(e,t,n){var r=0,o=void 0;return f.a.Children.forEach(e,function(e){o||f.a.isValidElement(e)&&t.call(n,e,r++)&&(o=e)}),o}function l(e,t,n){var r=0,o=!0;return f.a.Children.forEach(e,function(e){o&&f.a.isValidElement(e)&&(t.call(n,e,r++)||(o=!1))}),o}function c(e,t,n){var r=0,o=!1;return f.a.Children.forEach(e,function(e){o||f.a.isValidElement(e)&&t.call(n,e,r++)&&(o=!0)}),o}function u(e){var t=[];return f.a.Children.forEach(e,function(e){f.a.isValidElement(e)&&t.push(e)}),t}var p=n(0),f=n.n(p);t.a={map:r,forEach:o,count:i,find:s,filter:a,every:l,some:c,toArray:u}},function(e,t,n){function r(e){return a(e)?o(e,!0):i(e)}var o=n(658),i=n(1452),a=n(138);e.exports=r},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(177),o=n(67);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(178),o=n(118),i=n(53),a=n(66),s=n(52),l=n(476),c=Object.getOwnPropertyDescriptor;t.f=n(32)?c:function(e,t){if(e=i(e),t=a(t,!0),l)try{return c(e,t)}catch(e){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(52),o=n(42),i=n(303)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){"use strict";var r=n(0),o=n(515);if(void 0===r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var i=(new r.Component).updater;e.exports=o(r.Component,r.isValidElement,i)},function(e,t,n){"use strict";function r(e,t){var n=void 0,r="INFO",o=e.message,i=e.stack_trace,a=e.logger;"ERROR"===e.severity?(n=7e3,r="ERROR"):"WARNING"===e.severutiy?(n=5e3,r="WARNING"):n=7e3;var s=(new Date).getTime();return s+=n,{type:"ADD_USER_MESSAGE",message:{message:o,details:i,level:r,duration:n,exp:s,meta:a,target:t}}}function o(e){return{type:"SET_INITIAL_STATE",data:e}}function i(e){return{type:"SET_LOADING",loading:e,title:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",message:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",blocking:arguments.length>3&&void 0!==arguments[3]&&arguments[3],abortFun:arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0}}function a(e){return{type:"SHOW_ERROR_PANEL",show:e,message:arguments.length>1&&void 0!==arguments[1]?arguments[1]:""}}function s(e){if(e.status>=200&&e.status<300)return e.json();var t=new Error(e.statusText);throw t.response=e,t}function l(e){console.error("REQUEST FAILED",e)}function c(){return function(e){var t={},n=d()("mxcube/api/v0.1/queue_state",{method:"GET",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"}}),r=d()("mxcube/api/v0.1/diffractometer/movables/state",{method:"GET",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"}}),i=d()("mxcube/api/v0.1/beam/info",{method:"GET",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"}}),a=d()("mxcube/api/v0.1/beamline",{method:"GET",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"}}),c=d()("mxcube/api/v0.1/sampleview/camera",{method:"GET",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"}}),u=d()("mxcube/api/v0.1/diffractometer/info",{method:"GET",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"}}),p=d()("mxcube/api/v0.1/detector",{method:"GET",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"}}),f=d()("mxcube/api/v0.1/queue/dc",{method:"GET",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"}}),h=d()("mxcube/api/v0.1/queue/char_acq",{method:"GET",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"}}),m=d()("mxcube/api/v0.1/queue/mesh",{method:"GET",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"}}),g=d()("mxcube/api/v0.1/queue/xrf",{method:"GET",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"}}),v=d()("mxcube/api/v0.1/sampleview/shapes",{method:"GET",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"}}),y=d()("mxcube/api/v0.1/sample_changer/get_initial_state",{method:"GET",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"}}),b=d()("mxcube/api/v0.1/ra",{method:"GET",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"}}),A=d()("mxcube/api/v0.1/workflow",{method:"GET",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"}}),E=[n.then(s).then(function(e){t.queue=e}).catch(l),r.then(s).then(function(e){t.Motors=e}).catch(l),i.then(s).then(function(e){t.beamInfo=e}).catch(l),a.then(s).then(function(e){return t.beamlineSetup=e,e}).then(function(e){return t.datapath=e.path,e}).catch(l),c.then(s).then(function(e){t.Camera=e}).catch(l),u.then(s).then(function(e){Object.assign(t,e)}).catch(l),p.then(s).then(function(e){t.detector=e}).catch(l),f.then(s).then(function(e){return t.dcParameters=e.acq_parameters,e}).then(function(e){t.acqParametersLimits=e.limits}).catch(l),h.then(s).then(function(e){t.charParameters=e.acq_parameters}).catch(l),m.then(s).then(function(e){t.meshParameters=e.acq_parameters}).catch(l),g.then(s).then(function(e){t.xrfParameters=e}).catch(l),v.then(s).then(function(e){t.shapes=e.shapes}).catch(l),y.then(s).then(function(e){return t.sampleChangerState={state:e.state},e}).then(function(e){return t.sampleChangerContents=e.contents,e}).then(function(e){return t.loadedSample=e.loaded_sample,e}).then(function(e){return t.sampleChangerCommands=e.cmds,e}).then(function(e){return t.sampleChangerGlobalState=e.global_state,e}).catch(l),b.then(s).then(function(e){t.remoteAccess=e.data}).catch(l),A.then(s).then(function(e){t.workflow=e}).catch(l)];Promise.all(E).then(function(){e(o(t))})}}function u(){return{type:"SHOW_CONNECTION_LOST_DIALOG",show:!(arguments.length>0&&void 0!==arguments[0])||arguments[0]}}function p(){return{type:"SHOW_CONFIRM_CLEAR_QUEUE_DIALOG",show:!(arguments.length>0&&void 0!==arguments[0])||arguments[0]}}t.a=r,t.c=i,t.f=a,t.b=c,t.e=u,t.d=p;var f=n(92),d=n.n(f)},function(e,t,n){function r(e){return a(e)?o(e):i(e)}var o=n(658),i=n(1717),a=n(138);e.exports=r},function(e,t,n){var r=n(45);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){"use strict";var r=n(20);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){"use strict";e.exports={debugTool:null}},function(e,t,n){"use strict";function r(e,t,n){e.removeEventListener(t,n,!1)}function o(e){return e=e||window.event,e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),e.cancelBubble=!0,e.cancel=!0,e.returnValue=!1,!1}function i(e,t,n){var r,o,i;if(0===t)r=n,o=n,i=n;else{var a=Math.floor(6*e),s=6*e-a,l=n*(1-t),c=n*(1-t*s),u=n*(1-t*(1-s));switch(a){case 1:r=c,o=n,i=l;break;case 2:r=l,o=n,i=u;break;case 3:r=l,o=c,i=n;break;case 4:r=u,o=l,i=n;break;case 5:r=n,o=l,i=c;break;case 6:case 0:r=n,o=u,i=l}}return r=Math.floor(255*r+.5),o=Math.floor(255*o+.5),i=Math.floor(255*i+.5),"rgb("+r+","+o+","+i+")"}function a(e){var t=e.getBoundingClientRect(),n=window,r=document.documentElement;return{x:t.left+(n.pageXOffset||r.scrollLeft),y:t.top+(n.pageYOffset||r.scrollTop)}}function s(e){return!e.pageX||e.pageX<0?0:e.pageX}function l(e){return!e.pageY||e.pageY<0?0:e.pageY}function c(e,t){return s(e)-t.px}function u(e,t){return l(e)-t.py}function p(e){return!!e&&!isNaN(e)}function f(e,t){return!!e&&null!==e.yval&&null!==e.x&&void 0!==e.x&&null!==e.y&&void 0!==e.y&&!(isNaN(e.x)||!t&&isNaN(e.y))}function d(e,t){var n=Math.min(Math.max(1,t||2),21);return Math.abs(e)<.001&&0!==e?e.toExponential(n-1):e.toPrecision(n)}function h(e){return e<10?"0"+e:""+e}function m(e,t,n,r){var o=h(e)+":"+h(t);if(n&&(o+=":"+h(n),r)){var i=""+r;o+="."+("000"+i).substring(i.length)}return o}function g(e,t){var n=t?ne:te,r=new Date(e),o=n.getFullYear(r),i=n.getMonth(r),a=n.getDate(r),s=n.getHours(r),l=n.getMinutes(r),c=n.getSeconds(r),u=n.getMilliseconds(r),p=""+o,f=h(i+1),d=h(a),g=3600*s+60*l+c+.001*u,v=p+"/"+f+"/"+d;return g&&(v+=" "+m(s,l,c,u)),v}function v(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}function y(e,t,n,r,o){if(null!==r&&void 0!==r&&null!==o&&void 0!==o||(r=0,o=t.length-1),r>o)return-1;null!==n&&void 0!==n||(n=0);var i,a=function(e){return e>=0&&ee?n>0&&(i=s-1,a(i)&&t[i]e)?s:y(e,t,n,s+1,o):-1}function b(e){var t,n;if((-1==e.search("-")||-1!=e.search("T")||-1!=e.search("Z"))&&(n=A(e))&&!isNaN(n))return n;if(-1!=e.search("-")){for(t=e.replace("-","/","g");-1!=t.search("-");)t=t.replace("-","/");n=A(t)}else 8==e.length?(t=e.substr(0,4)+"/"+e.substr(4,2)+"/"+e.substr(6,2),n=A(t)):n=A(e);return n&&!isNaN(n)||console.error("Couldn't parse "+e+" as a date"),n}function A(e){return new Date(e).getTime()}function E(e,t){if(void 0!==t&&null!==t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function w(e,t){if(void 0!==t&&null!==t)for(var n in t)t.hasOwnProperty(n)&&(null===t[n]?e[n]=null:x(t[n])?e[n]=t[n].slice():function(e){return"object"===("undefined"==typeof Node?"undefined":V(Node))?e instanceof Node:"object"===(void 0===e?"undefined":V(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName}(t[n])||"object"!=V(t[n])?e[n]=t[n]:("object"==V(e[n])&&null!==e[n]||(e[n]={}),w(e[n],t[n])));return e}function x(e){var t=void 0===e?"undefined":V(e);return("object"==t||"function"==t&&"function"==typeof e.item)&&null!==e&&"number"==typeof e.length&&3!==e.nodeType}function O(e){return"object"==(void 0===e?"undefined":V(e))&&null!==e&&"function"==typeof e.getTime}function C(e){for(var t=[],n=0;n=t||re.call(window,function(){var t=(new Date).getTime(),c=t-a;o=i,i=Math.floor(c/n);var u=i-o;i+u>s||i>=s?(e(s),r()):(0!==u&&e(i),l())})}()}function D(e,t){var n={};if(e)for(var r=1;r=Math.pow(10,i)||Math.abs(e)=0;h--,f/=l)if(p>=f){r=v(e/f,o)+c[h];break}if(s){var m=String(e.toExponential()).split("e-");2===m.length&&m[1]>=3&&m[1]<=24&&(r=m[1]%3>0?v(m[0]/M(10,m[1]%3),o):Number(m[0]).toFixed(2),r+=u[Math.floor(m[1]/3)-1])}}return r}function U(e,t,n){return L.call(this,e,n)}function H(e,t,n){var r=n("labelsUTC"),o=r?ne:te,i=o.getFullYear(e),a=o.getMonth(e),s=o.getDate(e),l=o.getHours(e),c=o.getMinutes(e),u=o.getSeconds(e),p=o.getMilliseconds(e);if(t>=Y.a.DECADAL)return""+i;if(t>=Y.a.MONTHLY)return ue[a]+" "+i;if(0===3600*l+60*c+u+.001*p||t>=Y.a.DAILY)return h(s)+" "+ue[a];if(tY.a.MINUTELY?m(l,c,u,0):m(l,c,u,p)}function Q(e,t){return g(e,t("labelsUTC"))}n.d(t,"g",function(){return z}),n.d(t,"H",function(){return G}),n.d(t,"I",function(){return q}),n.d(t,"b",function(){return K}),n.d(t,"c",function(){return X}),n.d(t,"f",function(){return J}),n.d(t,"h",function(){return Z}),n.d(t,"x",function(){return $}),n.d(t,"i",function(){return ee}),t.O=r,t.k=o,t.z=i,t.v=a,t.L=s,t.M=l,t.t=c,t.u=u,t.E=p,t.G=f,t.w=d,n.d(t,"d",function(){return te}),n.d(t,"e",function(){return ne}),t.q=g,t.j=y,t.p=b,t.R=E,t.S=w,t.A=x,t.C=O,t.l=C,t.m=S,t.y=_,t.n=k,t.P=P,t.F=D,n.d(t,"a",function(){return ie}),t.s=I,t.D=j,t.Q=N,t.B=B,t.N=F,t.K=L,t.J=U,t.o=H,t.r=Q;var Y=n(387),V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z=10,W=Math.log(z),G=function(e){return Math.log(e)/W},q=function(e,t,n){var r=G(e),o=G(t),i=r+n*(o-r);return Math.pow(z,i)},K=[7,3],X=[7,2,2,2],J=1,Z=2,$=function(e){return e.getContext("2d")},ee=function(e,t,n){e.addEventListener(t,n,!1)},te={getFullYear:function(e){return e.getFullYear()},getMonth:function(e){return e.getMonth()},getDate:function(e){return e.getDate()},getHours:function(e){return e.getHours()},getMinutes:function(e){return e.getMinutes()},getSeconds:function(e){return e.getSeconds()},getMilliseconds:function(e){return e.getMilliseconds()},getDay:function(e){return e.getDay()},makeDate:function(e,t,n,r,o,i,a){return new Date(e,t,n,r,o,i,a)}},ne={getFullYear:function(e){return e.getUTCFullYear()},getMonth:function(e){return e.getUTCMonth()},getDate:function(e){return e.getUTCDate()},getHours:function(e){return e.getUTCHours()},getMinutes:function(e){return e.getUTCMinutes()},getSeconds:function(e){return e.getUTCSeconds()},getMilliseconds:function(e){return e.getUTCMilliseconds()},getDay:function(e){return e.getUTCDay()},makeDate:function(e,t,n,r,o,i,a){return new Date(Date.UTC(e,t,n,r,o,i,a))}};T.prototype.next=function(){if(!this.hasNext)return null;for(var e=this.peek,t=this.nextIdx_+1,n=!1;t0?r:n)(e)}},function(e,t,n){var r=n(1),o=n(65),i=n(20);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var r=n(59),o=n(177),i=n(42),a=n(34),s=n(320);e.exports=function(e,t){var n=1==e,l=2==e,c=3==e,u=4==e,p=6==e,f=5==e||p,d=t||s;return function(t,s,h){for(var m,g,v=i(t),y=o(v),b=r(s,h,3),A=a(y.length),E=0,w=n?d(t,A):l?d(t,0):void 0;A>E;E++)if((f||E in y)&&(m=y[E],g=b(m,E,v),e))if(n)w[E]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return E;case 2:w.push(m)}else if(u)return!1;return p?-1:c||u?u:w}}},function(e,t,n){"use strict";function r(){_.ReactReconcileTransaction&&E||u("123")}function o(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=f.getPooled(),this.reconcileTransaction=_.ReactReconcileTransaction.getPooled(!0)}function i(e,t,n,o,i,a){return r(),E.batchedUpdates(e,t,n,o,i,a)}function a(e,t){return e._mountOrder-t._mountOrder}function s(e){var t=e.dirtyComponentsLength;t!==v.length&&u("124",t,v.length),v.sort(a),y++;for(var n=0;n=400)throw new Error("Server refused to mount sample")}):a(e.sampleID)}}function g(e){return function(t){t(r(!0)),h(e).then(function(e){return e.status>=400&&t(Object(ae.f)(!0,"Server refused to add sample")),e.json()}).then(function(e){t(s(e))}).catch(function(){return r(!1)}).then(function(){return t(r(!1))})}}function v(e){return function(t){h([e]).then(function(e){return e.status>=400&&t(Object(ae.f)(!0,"Server refused to add sample")),e.json()}).then(function(n){t(s(n)),t(Object(le.d)([e.sampleID])),t(m(e))}).catch(function(){return r(!1)}).then(function(){return t(r(!1))})}}function y(){return{type:"CLEAR_QUEUE"}}function b(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t){ie()("mxcube/api/v0.1/queue/clear",{method:"PUT",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"}}).then(function(n){if(n.status>=400)throw new Error("Server refused to clear queue");e?t(y()):(t(y()),t(Object(le.b)()))})}}function A(e,t,n){return ie()("mxcube/api/v0.1/queue/"+e+"/"+t,{method:"POST",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"},body:JSON.stringify(n)})}function E(e){return ie()("mxcube/api/v0.1/queue/delete",{method:"POST",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"},body:JSON.stringify(e)})}function w(e,t){return ie()("mxcube/api/v0.1/queue/set_enabled",{method:"POST",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"},body:JSON.stringify({qidList:e,value:t})})}function x(e){return{type:"SET_QUEUE_STATUS",queueState:e}}function O(e){return{type:"QUEUE_STATE",queueState:e}}function C(e,t,n){return{type:"CHANGE_TASK_ORDER",sampleId:e,oldIndex:t,newIndex:n}}function S(e,t,n){return ie()("mxcube/api/v0.1/queue/"+e+"/"+t+"/"+n+"/swap",{method:"POST",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"}})}function _(e,t,n){return ie()("mxcube/api/v0.1/queue/"+e+"/"+t+"/"+n+"/move",{method:"POST",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"}})}function T(e,t,n){return function(o){o(r(!0)),_(e,t,n).then(function(i){i.status>=400&&(o(C(e,n,t)),o(Object(ae.f)(!0,"Could not move task"))),o(r(!1))})}}function k(e){return{type:"RUN_SAMPLE",queueID:e}}function P(){return{type:"CLEAR_CURRENT_SAMPLE"}}function D(e,t){return{type:"TOGGLE_CHECKED",sampleID:e,index:t}}function I(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return function(){ie()("mxcube/api/v0.1/queue/start",{method:"PUT",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"},body:JSON.stringify({autoMountNext:e,sid:t})}).then(function(e){if(e.status>=400)throw new Error("Server refused to start queue")})}}function j(){return function(){ie()("mxcube/api/v0.1/queue/pause",{method:"PUT",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"}}).then(function(e){if(e.status>=400)throw new Error("Server refused to pause queue")})}}function M(){return function(){ie()("mxcube/api/v0.1/queue/unpause",{method:"PUT",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"}}).then(function(e){if(e.status>=400)throw new Error("Server refused to unpause queue")})}}function R(){return function(e){ie()("mxcube/api/v0.1/queue/stop",{method:"PUT",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"}}).then(function(t){if(e(Object(se.sendAbortCentring)()),t.status>=400)throw new Error("Server refused to stop queue")})}}function N(e,t){return function(n){ie()("mxcube/api/v0.1/queue/"+e+"/"+t+"/execute",{method:"PUT",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"}}).then(function(t){if(t.status>=400)throw new Error("Server refused to run sample");n(k(e))})}}function B(e,t){return{type:"REMOVE_TASK",sampleID:e,taskIndex:t,queueID:arguments.length>2&&void 0!==arguments[2]?arguments[2]:null}}function F(e,t){return function(n,o){var i=o();n(r(!0)),w(e.map(function(e){return i.sampleGrid.sampleList[e].queueID}),t).then(function(r){r.status>=400?n(Object(ae.f)(!0,"Server refused to set item enabled flag")):e.forEach(function(e){n(d(e,"checked",t)),i.sampleChanger.loadedSample.address===e&&t&&n(a(e)),i.sampleChanger.loadedSample.address!==e||t||n(a("")),!t&&i.queue.queue.includes(e)&&n(f([e]))})}).catch(function(){return r(!1)}).then(function(){return n(r(!1))})}}function L(e,t){return function(n,o){var i=o(),a=i.sampleGrid.sampleList[e].tasks[t];a.state===ce.n&&(n(r(!0)),E([[e,t]]).then(function(o){n(o.status>=400?Object(ae.f)(!0,"Server refused to delete task"):B(e,t,a.queueID)),n(r(!1))}))}}function U(e){return{type:"ADD_TASKS",tasks:e}}function H(e,t,n){return{type:"UPDATE_TASK",sampleID:e,taskIndex:t,taskData:n}}function Q(e,t,n,o){return function(i,a){var s=a(),l=s.sampleGrid,c=pe({},l.sampleList[e].tasks[t],{parameters:n});i(r(!0)),A(l.sampleList[e].queueID,c.queueID,c).then(function(e){return e.status>=400&&i(Object(ae.f)(!0,"The task could not be modified on the server")),e.json()}).then(function(n){i(H(e,t,n)),o&&i(N(e,t))}).catch(function(){return r(!1)}).then(function(){return i(r(!1))})}}function Y(e){return{type:"ADD_DIFF_PLAN",tasks:e}}function V(e,t,n){return function(o,i){var a=i(),l=[],c=[];"object"===ue(t.shape)?c=Object.values(t.shape):c.push(t.shape),e.forEach(function(e){c.forEach(function(n){var r=pe({},t,{shape:n}),i={type:r.type,label:r.label,state:ce.n,sampleID:e,sampleQueueID:a.sampleGrid.sampleList[e].queueID,parameters:pe({},r),checked:!0};-1!==t.shape&&void 0!==t.shape&&("TMP"===a.shapes.shapes[i.parameters.shape].state&&o(Object(se.sendUpdateShapes)([{id:i.parameters.shape,state:"SAVED"}])),"L"===a.shapes.shapes[i.parameters.shape].t&&(o(Object(se.sendUpdateShapes)([{id:a.shapes.shapes[i.parameters.shape].refs[0],state:"SAVED"}])),o(Object(se.sendUpdateShapes)([{id:a.shapes.shapes[i.parameters.shape].refs[1],state:"SAVED"}]))));var s=Object.assign({},a.sampleGrid.sampleList[e]);s.tasks=[i],l.push(s)})}),o(r(!0)),h(l).then(function(e){return e.status>=400&&o(Object(ae.f)(!0,"The task could not be added to the server")),e.json()}).then(function(t){if(o(s(t)),n){var r=t.sampleList,i=r[e[0]].tasks[r[e[0]].tasks.length-1].taskIndex;o(N(e[0],i))}}).catch(function(){return r(!1)}).then(function(){return o(r(!1))})}}function z(e,t,n,r,o,i){return{type:"ADD_TASK_RESULT",sampleID:e,taskIndex:t,state:n,progress:r,limsResultData:o,queueID:i}}function W(e,t,n){return{type:"UPDATE_TASK_LIMS_DATA",sampleID:e,taskIndex:t,limsResultData:n}}function G(e){return function(t){ie()("mxcube/api/v0.1/sample_changer/unmount",{method:"POST",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"},body:JSON.stringify(e)}).then(function(e){if(e.status>=400)throw new Error("Server refused to unmount sample");t(P())})}}function q(e,t){return function(n){ie()("mxcube/api/v0.1/queue/"+e.queueID+"/toggle",{method:"PUT",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"}}).then(function(r){if(r.status>=400)throw new Error("Server refused to toogle checked task");n(D(e.sampleID,t))})}}function K(e){return function(t){t(r(!0)),E(e.map(function(e){return[e,void 0]})).then(function(n){t(n.status>=400?Object(ae.f)(!0,"Server refused to delete sample"):f(e))}).catch(function(){return r(!1)}).then(function(){return t(r(!1))})}}function X(e){return{type:"SET_AUTO_MOUNT_SAMPLE",automount:e}}function J(e){return function(t){return ie()("mxcube/api/v0.1/queue/automount",{method:"POST",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"},body:JSON.stringify(e)}).then(function(e){return e.status>=400&&t(Object(ae.f)(!0,"Could not set/unset automount")),e.json()}).then(function(e){var n=e.automount;n=void 0!==n&&n,t(X(n))})}}function Z(e){return{type:"SET_AUTO_ADD_DIFFPLAN",autoadd:e}}function $(e){return function(t){return ie()("mxcube/api/v0.1/queue/auto_add_diffplan",{method:"POST",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"},body:JSON.stringify(e)}).then(function(e){return e.status>=400&&t(Object(ae.f)(!0,"Could not set/unset automount")),e.json()}).then(function(e){var n=e.auto_add_diffplan;t(Z(n))})}}function ee(e){return function(t){ie()("/mxcube/api/v0.1/sampleview/centring/centring_method",{method:"PUT",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"},body:JSON.stringify({centringMethod:e})}).then(function(n){if(n.status>=400)throw new Error("Server could not set centring method "+e);t(l(e))})}}function te(e){return function(t){ie()("/mxcube/api/v0.1/queue/num_snapshots",{method:"PUT",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"},body:JSON.stringify({numSnapshots:e})}).then(function(n){if(n.status>=400)throw new Error("Server could not set number of snapshots "+e);t(c(e))})}}function ne(e){return function(t){ie()("/mxcube/api/v0.1/queue/group_folder",{method:"POST",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"},body:JSON.stringify({path:e})}).then(function(t){if(t.status>=400)throw new Error("Server could not set group folder "+e);return t.json()}).then(function(e){t(u(e.path))})}}function re(e){ie()("mxcube/api/v0.1/queue/get_lims_data_for_task",{method:"POST",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"},body:JSON.stringify({qid:e})})}Object.defineProperty(t,"__esModule",{value:!0}),t.queueLoading=r,t.clearAll=o,t.setQueueAction=i,t.setCurrentSample=a,t.setQueue=s,t.setCentringMethod=l,t.setNumSnapshots=c,t.setGroupFolder=u,t.addSamplesToQueueAction=p,t.removeSamplesFromQueueAction=f,t.setSampleAttribute=d,t.sendAddQueueItem=h,t.sendMountSample=m,t.addSamplesToQueue=g,t.addSampleAndMount=v,t.clearQueue=y,t.sendClearQueue=b,t.sendUpdateQueueItem=A,t.sendDeleteQueueItem=E,t.sendSetEnabledQueueItem=w,t.setStatus=x,t.setState=O,t.changeTaskOrderAction=C,t.sendChangeTaskOrder=S,t.sendMoveTask=_,t.moveTask=T,t.runSample=k,t.clearCurrentSample=P,t.toggleChecked=D,t.sendRunQueue=I,t.sendPauseQueue=j,t.sendUnpauseQueue=M,t.sendStopQueue=R,t.sendRunSample=N,t.removeTaskAction=B,t.setEnabledSample=F,t.deleteTask=L,t.addTaskAction=U,t.updateTaskAction=H,t.updateTask=Q,t.addDiffractionPlanAction=Y,t.addTask=V,t.addTaskResultAction=z,t.updateTaskLimsData=W,t.sendUnmountSample=G,t.sendToggleCheckBox=q,t.deleteSamplesFromQueue=K,t.setAutoMountAction=X,t.setAutoMountSample=J,t.setAutoAddDiffPlanAction=Z,t.setAutoAddDiffPlan=$,t.sendSetCentringMethod=ee,t.sendSetNumSnapshots=te,t.sendSetGroupFolder=ne,t.getLimsDataForTask=re;var oe=n(92),ie=n.n(oe),ae=n(57),se=n(260),le=n(263),ce=n(30),ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pe=Object.assign||function(e){for(var t=1;t1){for(var h=Array(d),m=0;m1){for(var v=Array(g),y=0;yn;)o[n]=t[n++];return o},ke=function(e,t,n){H(e,t,{get:function(){return this._d[n]}})},Pe=function(e){var t,n,r,o,i,a,s=w(e),l=arguments.length,u=l>1?arguments[1]:void 0,p=void 0!==u,f=_(s);if(void 0!=f&&!x(f)){for(a=f.call(s),r=[],t=0;!(i=a.next()).done;t++)r.push(i.value);s=r}for(p&&l>2&&(u=c(u,arguments[2],2)),t=0,n=m(s.length),o=Se(this,n);n>t;t++)o[t]=p?u(s[t],t):s[t];return o},De=function(){for(var e=0,t=arguments.length,n=Se(this,t);t>e;)n[e]=arguments[e++];return n},Ie=!!z&&i(function(){de.call(new z(1))}),je=function(){return de.apply(Ie?pe.call(Ce(this)):Ce(this),arguments)},Me={copyWithin:function(e,t){return F.call(Ce(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return Z(Ce(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return B.apply(Ce(this),arguments)},filter:function(e){return _e(this,X(Ce(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return $(Ce(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(Ce(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){K(Ce(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ne(Ce(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(Ce(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return ce.apply(Ce(this),arguments)},lastIndexOf:function(e){return ae.apply(Ce(this),arguments)},map:function(e){return Ee(Ce(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return se.apply(Ce(this),arguments)},reduceRight:function(e){return le.apply(Ce(this),arguments)},reverse:function(){for(var e,t=this,n=Ce(t).length,r=Math.floor(n/2),o=0;o1?arguments[1]:void 0)},sort:function(e){return ue.call(Ce(this),e)},subarray:function(e,t){var n=Ce(this),r=n.length,o=v(e,r);return new(I(n,n[ve]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,m((void 0===t?r:v(t,r))-o))}},Re=function(e,t){return _e(this,pe.call(Ce(this),e,t))},Ne=function(e){Ce(this);var t=Oe(arguments[1],1),n=this.length,r=w(e),o=m(r.length),i=0;if(o+t>n)throw Y("Wrong length!");for(;i255?255:255&r),o.v[d](n*t+o.o,r,we)},k=function(e,t){H(e,t,{get:function(){return _(this,t)},set:function(e){return T(this,t,e)},enumerable:!0})};b?(h=n(function(e,n,r,o){u(e,h,c,"_d");var i,a,s,l,p=0,d=0;if(E(n)){if(!(n instanceof G||"ArrayBuffer"==(l=A(n))||"SharedArrayBuffer"==l))return be in n?Te(h,n):Pe.call(h,n);i=n,d=Oe(r,t);var v=n.byteLength;if(void 0===o){if(v%t)throw Y("Wrong length!");if((a=v-d)<0)throw Y("Wrong length!")}else if((a=m(o)*t)+d>v)throw Y("Wrong length!");s=a/t}else s=g(n),a=s*t,i=new G(a);for(f(e,"_d",{b:i,o:d,l:a,e:s,v:new q(i)});p0?t.map(function(e,n){return l.a.createElement(u.f,{key:n,xs:12/t.length},e)}):l.a.createElement(u.f,{key:1,xs:6},t))},E=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={collapsed:!0},n}return i(t,e),p(t,[{key:"render",value:function(){var e=this;return l.a.createElement("div",null,this.state.collapsed?"":this.props.children,l.a.createElement(u.A,null,l.a.createElement(u.f,{xs:12},l.a.createElement("center",null,this.state.collapsed?l.a.createElement(u.b,{bsStyle:"link",onClick:function(){e.setState({collapsed:!1})}},l.a.createElement("a",null,"Show")):l.a.createElement(u.b,{bsStyle:"link",onClick:function(){e.setState({collapsed:!0})}},l.a.createElement("a",null,"Hide"))))))}}]),t}(l.a.Component)},function(e,t,n){var r=n(119)("meta"),o=n(22),i=n(52),a=n(33).f,s=0,l=Object.isExtensible||function(){return!0},c=!n(20)(function(){return l(Object.preventExtensions({}))}),u=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},p=function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[r].i},f=function(e,t){if(!i(e,r)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[r].w},d=function(e){return c&&h.NEED&&l(e)&&!i(e,r)&&u(e),e},h=e.exports={KEY:r,NEED:!1,fastKey:p,getWeak:f,onFreeze:d}},function(e,t,n){var r=n(27)("unscopables"),o=Array.prototype;void 0==o[r]&&n(47)(o,r,{}),e.exports=function(e){o[r][e]=!0}},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";function r(e){return null==e||u.a.isValidElement(e)}function o(e){return r(e)||Array.isArray(e)&&e.every(r)}function i(e,t){return p({},e,t)}function a(e){var t=e.type,n=i(t.defaultProps,e.props);if(n.children){var r=s(n.children,n);r.length&&(n.childRoutes=r),delete n.children}return n}function s(e,t){var n=[];return u.a.Children.forEach(e,function(e){if(u.a.isValidElement(e))if(e.type.createRouteFromReactElement){var r=e.type.createRouteFromReactElement(e,t);r&&n.push(r)}else n.push(a(e))}),n}function l(e){return o(e)?e=s(e):e&&!Array.isArray(e)&&(e=[e]),e}t.c=o,t.a=a,t.b=l;var c=n(0),u=n.n(c),p=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0])||arguments[0]}}function o(e,t){return function(n){e?v.a.setRemoteAccessMaster(t,function(r){n({type:"SET_MASTER",master:e,sid:r,name:t})}):(e||t||n(r(!0)),v.a.setRemoteAccessObserver(t,function(r){n({type:"SET_MASTER",master:e,sid:r,name:t})}))}}function i(e){return{type:"REQUEST_CONTROL",control:e}}function a(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return function(o){fetch("mxcube/api/v0.1/ra/request_control",{method:"POST",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"},body:JSON.stringify({control:e,message:t,name:n,userInfo:r})}),o(i(e))}}function s(){return function(){fetch("mxcube/api/v0.1/ra/take_control",{method:"POST",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"}})}}function l(e){return function(){fetch("mxcube/api/v0.1/ra/give_control",{method:"POST",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"},body:JSON.stringify({sid:e})})}}function c(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return fetch("mxcube/api/v0.1/ra/request_control_response",{method:"POST",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"},body:JSON.stringify({giveControl:e,message:t})}),{type:"REQUEST_CONTROL_RESPONSE"}}function u(e){return{type:"SET_ALLOW_REMOTE",allow:e}}function p(e){return{type:"SET_TIMEOUT_GIVES_CONTROL",timeoutGivesControl:e}}function f(e){return function(t){fetch("mxcube/api/v0.1/ra/allow_remote",{method:"POST",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"},body:JSON.stringify({allow:e})}),t(u(e))}}function d(e){return function(t){fetch("mxcube/api/v0.1/ra/timeout_gives_control",{method:"POST",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"},body:JSON.stringify({timeoutGivesControl:e})}),t(p(e))}}function h(e){return{type:"SET_OBSERVERS",observers:e}}function m(e,t){return fetch("mxcube/api/v0.1/ra/chat",{method:"POST",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"},body:JSON.stringify({message:e,sid:t})})}function g(){return fetch("mxcube/api/v0.1/ra/chat",{method:"GET",credentials:"include",headers:{Accept:"application/json","Content-type":"application/json"}}).then(function(e){return e.json()})}t.l=r,t.j=o,t.c=i,t.b=a,t.h=s,t.g=l,t.d=c,t.e=f,t.i=d,t.k=h,t.f=m,t.a=g;var v=n(665)},function(e,t,n){(function(r){function o(){return"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}function i(){var e=arguments,n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),!n)return e;var r="color: "+this.color;e=[e[0],r,"color: inherit"].concat(Array.prototype.slice.call(e,1));var o=0,i=0;return e[0].replace(/%[a-z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))}),e.splice(i,0,r),e}function a(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}}function l(){try{return t.storage.debug}catch(e){}if(void 0!==r&&"env"in r)return Object({NODE_ENV:"production"}).DEBUG}t=e.exports=n(1503),t.log=a,t.formatArgs=i,t.save=s,t.load=l,t.useColors=o,t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(l())}).call(t,n(40))},function(e,t,n){"use strict";function r(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=r(o),a=n(31),s=r(a),l=n(2),c=r(l),u={renderReactSortCaret:function(e){var t=(0,c.default)("order",{dropup:e===s.default.SORT_ASC});return i.default.createElement("span",{className:t},i.default.createElement("span",{className:"caret",style:{margin:"10px 5px"}}))},isFunction:function(e){return e&&"function"==typeof e},getScrollBarWidth:function(){var e=document.createElement("p");e.style.width="100%",e.style.height="200px";var t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.visibility="hidden",t.style.width="200px",t.style.height="150px",t.style.overflow="hidden",t.appendChild(e),document.body.appendChild(t);var n=e.getBoundingClientRect().width;t.style.overflow="scroll";var r=e.getBoundingClientRect().width;return n===r&&(r=t.clientWidth),document.body.removeChild(t),n-r},canUseDOM:function(){return"undefined"!=typeof window&&void 0!==window.document},getNormalizedPage:function(e,t){return e=this.getFirstPage(e),void 0===t&&(t=e),t+Math.abs(s.default.PAGE_START_INDEX-e)},getFirstPage:function(e){return void 0!==e?e:s.default.PAGE_START_INDEX},renderColGroup:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null,o=null;if(t.mode===s.default.ROW_SELECT_SINGLE||t.mode===s.default.ROW_SELECT_MULTI){var a={width:t.columnWidth||"30px",minWidth:t.columnWidth||"30px"};t.hideSelectColumn||(r=i.default.createElement("col",{key:"select-col",style:a}))}if(n.expandColumnVisible){var l={width:n.columnWidth||30,minWidth:n.columnWidth||30};o=i.default.createElement("col",{key:"expand-col",style:l})}var c=e.map(function(e,t){var n={display:e.hidden?"none":null};if(e.width){var r=isNaN(e.width)?e.width:e.width+"px";n.width=r,n.minWidth=r}return i.default.createElement("col",{style:n,key:t,className:e.className})});return i.default.createElement("colgroup",null,n.expandColumnVisible&&n.expandColumnBeforeSelectColumn&&o,r,n.expandColumnVisible&&!n.expandColumnBeforeSelectColumn&&o,c)}};t.default=u,function(){"undefined"!=typeof __REACT_HOT_LOADER__&&__REACT_HOT_LOADER__.register(u,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/util.js")}()},function(e,t,n){function r(e,t){return o(e)?e:i(e,t)?[e]:a(s(e))}var o=n(41),i=n(441),a=n(1734),s=n(1736);e.exports=r},function(e,t,n){function r(e){if("string"==typeof e||o(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}var o=n(290),i=1/0;e.exports=r},function(e,t,n){"use strict";var r=n(19),o=(n(9),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},a=function(e,t,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,e,t,n),o}return new r(e,t,n)},s=function(e,t,n,r){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,e,t,n,r),i}return new o(e,t,n,r)},l=function(e,t,n,r,o){var i=this;if(i.instancePool.length){var a=i.instancePool.pop();return i.call(a,e,t,n,r,o),a}return new i(e,t,n,r,o)},c=function(e){var t=this;e instanceof t||r("25"),e.destructor(),t.instancePool.length2?(u=r.linear(o,s,l),p=r.linear(o,s,c)):(u=t.attributes.resolution.limits[0],p=t.attributes.resolution.limits[1]),(""===e.num_images||parseInt(e.num_images,10)>t.acqParametersLimits.number_of_images||parseInt(e.num_images,10)<1)&&(n.num_images="Number of images out of allowed range"),(""===e.osc_range||parseInt(e.osc_range,10)>t.acqParametersLimits.osc_range||parseFloat(e.osc_range,10)<0)&&(n.osc_range="wrong value"),""===e.osc_start&&(n.osc_start="field empty");var f=t.acqParametersLimits.exposure_time[0],d=t.acqParametersLimits.exposure_time[1];return(""===e.exp_time||parseFloat(e.exp_time,10)>d||parseFloat(e.exp_time,10)u&&i<=p||(n.resolution="Resolution outside working range"),s.length>2&&(o>t.attributes.energy.limits[0]&&o=0&&a<=100||(n.transmission="Transmission outside working range"),n};t.a=o},function(e,t,n){function r(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?s(e)?i(e[0],e[1]):o(e):l(e)}var o=n(1977),i=n(1984),a=n(197),s=n(41),l=n(1986);e.exports=r},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports=!1},function(e,t,n){var r=n(478),o=n(304);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(68),o=Math.max,i=Math.min;e.exports=function(e,t){return e=r(e),e<0?o(e+t,0):i(e,t)}},function(e,t,n){var r=n(16),o=n(479),i=n(304),a=n(303)("IE_PROTO"),s=function(){},l=function(){var e,t=n(301)("iframe"),r=i.length;for(t.style.display="none",n(305).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("