define(["react","mobx","gpui-style-inject"],(function(e,n,t){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=r(e),i=r(t);
/*! *****************************************************************************
    Copyright (c) Microsoft Corporation.

    Permission to use, copy, modify, and/or distribute this software for any
    purpose with or without fee is hereby granted.

    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
    PERFORMANCE OF THIS SOFTWARE.
    ***************************************************************************** */
function s(e,n,t,r){return new(t||(t=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(s,a)}c((r=r.apply(e,n||[])).next())}))}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function a(e){var n={exports:{}};return e(n,n.exports),n.exports
/*
    object-assign
    (c) Sindre Sorhus
    @license MIT
    */}Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;!function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var n={},t=0;t<10;t++)n["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(n).map((function(e){return n[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()||Object.assign;
/** @license React v17.0.2
     * react-jsx-runtime.production.min.js
     *
     * Copyright (c) Facebook, Inc. and its affiliates.
     *
     * This source code is licensed under the MIT license found in the
     * LICENSE file in the root directory of this source tree.
     */
var c=a((function(e,n){var t=60103;if(n.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var r=Symbol.for;t=r("react.element"),n.Fragment=r("react.fragment")}var i=o.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,a={key:!0,ref:!0,__self:!0,__source:!0};function c(e,n,r){var o,c={},u=null,d=null;for(o in void 0!==r&&(u=""+r),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(d=n.ref),n)s.call(n,o)&&!a.hasOwnProperty(o)&&(c[o]=n[o]);if(e&&e.defaultProps)for(o in n=e.defaultProps)void 0===c[o]&&(c[o]=n[o]);return{$$typeof:t,type:e,key:u,ref:d,props:c,_owner:i.current}}n.jsx=c,n.jsxs=c})),u=a((function(e){e.exports=c})),d=a((function(e,n){var t;t=function(){return function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}return t.m=e,t.c=n,t.p="",t(0)}([function(e,n,t){e.exports=t(1)},function(e,n,t){var r=t(2),o=t(3),i=t(4),s=t(22);function a(e){var n=new i(e),t=o(i.prototype.request,n);return r.extend(t,i.prototype,n),r.extend(t,n),t}var c=a(t(10));c.Axios=i,c.create=function(e){return a(s(c.defaults,e))},c.Cancel=t(23),c.CancelToken=t(24),c.isCancel=t(9),c.all=function(e){return Promise.all(e)},c.spread=t(25),c.isAxiosError=t(26),e.exports=c,e.exports.default=c},function(e,n,t){var r=t(3),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function s(e){return void 0===e}function a(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==o.call(e))return!1;var n=Object.getPrototypeOf(e);return null===n||n===Object.prototype}function u(e){return"[object Function]"===o.call(e)}function d(e,n){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var t=0,r=e.length;t<r;t++)n.call(null,e[t],t,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:a,isPlainObject:c,isUndefined:s,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:u,isStream:function(e){return a(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:d,merge:function e(){var n={};function t(t,r){c(n[r])&&c(t)?n[r]=e(n[r],t):c(t)?n[r]=e({},t):i(t)?n[r]=t.slice():n[r]=t}for(var r=0,o=arguments.length;r<o;r++)d(arguments[r],t);return n},extend:function(e,n,t){return d(n,(function(n,o){e[o]=t&&"function"==typeof n?r(n,t):n})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},function(e,n){e.exports=function(e,n){return function(){for(var t=new Array(arguments.length),r=0;r<t.length;r++)t[r]=arguments[r];return e.apply(n,t)}}},function(e,n,t){var r=t(2),o=t(5),i=t(6),s=t(7),a=t(22);function c(e){this.defaults=e,this.interceptors={request:new i,response:new i}}c.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=a(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var n=[s,void 0],t=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){n.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){n.push(e.fulfilled,e.rejected)}));n.length;)t=t.then(n.shift(),n.shift());return t},c.prototype.getUri=function(e){return e=a(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(n,t){return this.request(a(t||{},{method:e,url:n,data:(t||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(n,t,r){return this.request(a(r||{},{method:e,url:n,data:t}))}})),e.exports=c},function(e,n,t){var r=t(2);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,n,t){if(!n)return e;var i;if(t)i=t(n);else if(r.isURLSearchParams(n))i=n.toString();else{var s=[];r.forEach(n,(function(e,n){null!=e&&(r.isArray(e)?n+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),s.push(o(n)+"="+o(e))})))})),i=s.join("&")}if(i){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},function(e,n,t){var r=t(2);function o(){this.handlers=[]}o.prototype.use=function(e,n){return this.handlers.push({fulfilled:e,rejected:n}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(n){null!==n&&e(n)}))},e.exports=o},function(e,n,t){var r=t(2),o=t(8),i=t(9),s=t(10);function a(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return a(e),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(n){delete e.headers[n]})),(e.adapter||s.adapter)(e).then((function(n){return a(e),n.data=o(n.data,n.headers,e.transformResponse),n}),(function(n){return i(n)||(a(e),n&&n.response&&(n.response.data=o(n.response.data,n.response.headers,e.transformResponse))),Promise.reject(n)}))}},function(e,n,t){var r=t(2);e.exports=function(e,n,t){return r.forEach(t,(function(t){e=t(e,n)})),e}},function(e,n){e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,n,t){var r=t(2),o=t(11),i={"Content-Type":"application/x-www-form-urlencoded"};function s(e,n){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=n)}var a,c={adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(a=t(12)),a),transformRequest:[function(e,n){return o(n,"Accept"),o(n,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(n,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(s(n,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(i)})),e.exports=c},function(e,n,t){var r=t(2);e.exports=function(e,n){r.forEach(e,(function(t,r){r!==n&&r.toUpperCase()===n.toUpperCase()&&(e[n]=t,delete e[r])}))}},function(e,n,t){var r=t(2),o=t(13),i=t(16),s=t(5),a=t(17),c=t(20),u=t(21),d=t(14);e.exports=function(e){return new Promise((function(n,t){var l=e.data,f=e.headers;r.isFormData(l)&&delete f["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var _=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";f.Authorization="Basic "+btoa(_+":"+m)}var h=a(e.baseURL,e.url);if(p.open(e.method.toUpperCase(),s(h,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in p?c(p.getAllResponseHeaders()):null,i={data:e.responseType&&"text"!==e.responseType?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:e,request:p};o(n,t,i),p=null}},p.onabort=function(){p&&(t(d("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){t(d("Network Error",e,null,p)),p=null},p.ontimeout=function(){var n="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(n=e.timeoutErrorMessage),t(d(n,e,"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var g=(e.withCredentials||u(h))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;g&&(f[e.xsrfHeaderName]=g)}if("setRequestHeader"in p&&r.forEach(f,(function(e,n){void 0===l&&"content-type"===n.toLowerCase()?delete f[n]:p.setRequestHeader(n,e)})),r.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),e.responseType)try{p.responseType=e.responseType}catch(n){if("json"!==e.responseType)throw n}"function"==typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){p&&(p.abort(),t(e),p=null)})),l||(l=null),p.send(l)}))}},function(e,n,t){var r=t(14);e.exports=function(e,n,t){var o=t.config.validateStatus;t.status&&o&&!o(t.status)?n(r("Request failed with status code "+t.status,t.config,null,t.request,t)):e(t)}},function(e,n,t){var r=t(15);e.exports=function(e,n,t,o,i){var s=new Error(e);return r(s,n,t,o,i)}},function(e,n){e.exports=function(e,n,t,r,o){return e.config=n,t&&(e.code=t),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,n,t){var r=t(2);e.exports=r.isStandardBrowserEnv()?{write:function(e,n,t,o,i,s){var a=[];a.push(e+"="+encodeURIComponent(n)),r.isNumber(t)&&a.push("expires="+new Date(t).toGMTString()),r.isString(o)&&a.push("path="+o),r.isString(i)&&a.push("domain="+i),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,n,t){var r=t(18),o=t(19);e.exports=function(e,n){return e&&!r(n)?o(e,n):n}},function(e,n){e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,n){e.exports=function(e,n){return n?e.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):e}},function(e,n,t){var r=t(2),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var n,t,i,s={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),n=r.trim(e.substr(0,i)).toLowerCase(),t=r.trim(e.substr(i+1)),n){if(s[n]&&o.indexOf(n)>=0)return;s[n]="set-cookie"===n?(s[n]?s[n]:[]).concat([t]):s[n]?s[n]+", "+t:t}})),s):s}},function(e,n,t){var r=t(2);e.exports=r.isStandardBrowserEnv()?function(){var e,n=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");function o(e){var r=e;return n&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return e=o(window.location.href),function(n){var t=r.isString(n)?o(n):n;return t.protocol===e.protocol&&t.host===e.host}}():function(){return!0}},function(e,n,t){var r=t(2);e.exports=function(e,n){n=n||{};var t={},o=["url","method","data"],i=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function c(e,n){return r.isPlainObject(e)&&r.isPlainObject(n)?r.merge(e,n):r.isPlainObject(n)?r.merge({},n):r.isArray(n)?n.slice():n}function u(o){r.isUndefined(n[o])?r.isUndefined(e[o])||(t[o]=c(void 0,e[o])):t[o]=c(e[o],n[o])}r.forEach(o,(function(e){r.isUndefined(n[e])||(t[e]=c(void 0,n[e]))})),r.forEach(i,u),r.forEach(s,(function(o){r.isUndefined(n[o])?r.isUndefined(e[o])||(t[o]=c(void 0,e[o])):t[o]=c(void 0,n[o])})),r.forEach(a,(function(r){r in n?t[r]=c(e[r],n[r]):r in e&&(t[r]=c(void 0,e[r]))}));var d=o.concat(i).concat(s).concat(a),l=Object.keys(e).concat(Object.keys(n)).filter((function(e){return-1===d.indexOf(e)}));return r.forEach(l,u),t}},function(e,n){function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},function(e,n,t){var r=t(23);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var n;this.promise=new Promise((function(e){n=e}));var t=this;e((function(e){t.reason||(t.reason=new r(e),n(t.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(n){e=n})),cancel:e}},e.exports=o},function(e,n){e.exports=function(e){return function(n){return e.apply(null,n)}}},function(e,n){e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}}])},e.exports=t()}));class l{constructor({baseURL:e="",timeout:n=6e4,headers:t={}}){this.passenger=d.create({baseURL:e,timeout:n,headers:Object.assign({"Content-Type":"application/x-www-form-urlencoded; chartset=UTF-8"},t)}),this.passenger.interceptors.response.use((e=>e),(e=>Promise.reject(e)))}call({method:e,params:n={}}){var t,r;return s(this,void 0,void 0,(function*(){const o=yield this.passenger.post("",{jsonrpc:"2.0",method:e,id:1,params:n instanceof Array?n:[n]});return(null===(t=o.data)||void 0===t?void 0:t.result)?o.data.result:null===(r=o.data)||void 0===r?void 0:r.error}))}get({method:e,params:n={},path:t={}}){return s(this,void 0,void 0,(function*(){let r=e;if(Object.keys(t).length&&e)for(const e in t)r=r.replace(`:${e}`,t[e]);const o=yield this.passenger.get(r,{params:n});return o.data?o.data:o.data.error}))}}var f={content:"record-module_content__2B2p0",content__child_1:"record-module_content__child_1__39jZu",content__child__2:"record-module_content__child__2__1Dnyz",content__child__3:"record-module_content__child__3__2gWuw",content__item:"record-module_content__item__3zROm",content__item__line:"record-module_content__item__line__2mc8E",content__item__point:"record-module_content__item__point__2ZZjh",content__inner:"record-module_content__inner__7kei8",content__inner__name:"record-module_content__inner__name__2_Xwv",content__inner__lab:"record-module_content__inner__lab__3y_EP",content__inner__time:"record-module_content__inner__time__2cghz",null:"record-module_null__2jc85"};function p(e,n){const t={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()};/(y+)/.test(n)&&(n=n.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length)));for(const e in t)new RegExp("("+e+")").test(n)&&(n=n.replace(RegExp.$1,1===RegExp.$1.length?t[e]:("00"+t[e]).substr((""+t[e]).length)));return n}i.default(".record-module_content__2B2p0 {\n  margin-top: 10px;\n  padding: 0 2.2vw;\n  box-sizing: border-box;\n  overflow: hidden;\n  display: flex;\n  flex-direction: row;\n}\n.record-module_content__child_1__39jZu {\n  flex: 1;\n  width: 90%;\n  box-sizing: border-box;\n}\n.record-module_content__child__2__1Dnyz {\n  flex: 1;\n  width: 48%;\n  box-sizing: border-box;\n}\n.record-module_content__child__3__2gWuw {\n  flex: 1;\n  width: 30%;\n  box-sizing: border-box;\n}\n.record-module_content__item__3zROm {\n  height: 23.67vh;\n  display: flex;\n  align-items: center;\n  color: #83b5db;\n}\n.record-module_content__item__3zROm:last-child:before {\n  border-left: none;\n}\n.record-module_content__item__3zROm:last-child .record-module_content__item__line__2mc8E {\n  border-left: none;\n}\n.record-module_content__item__3zROm:last-child .record-module_content__item__point__2ZZjh {\n  background-color: #83b5db;\n  left: -3.5px;\n}\n.record-module_content__item__3zROm:first-child {\n  color: #e6e6e6 !important;\n}\n.record-module_content__item__3zROm:first-child .record-module_content__item__point__2ZZjh {\n  background-color: #e6e6e6;\n}\n.record-module_content__item__line__2mc8E {\n  max-width: 20px;\n  min-width: 20px;\n  height: 23.67vh;\n  border-left: 1px solid #83b5db;\n  margin-top: 11.67vh;\n}\n.record-module_content__item__line__2mc8E .record-module_content__item__point__2ZZjh {\n  position: relative;\n  width: 7px;\n  height: 7px;\n  left: -4px;\n  border-radius: 50%;\n  background: #83b5db;\n  z-index: 2;\n}\n.record-module_content__inner__7kei8 {\n  width: calc(100% - 30px);\n  font-size: 20px;\n  display: flex;\n  margin-bottom: 21px;\n  flex: 1;\n  justify-content: space-around;\n}\n.record-module_content__inner__name__2_Xwv, .record-module_content__inner__lab__3y_EP, .record-module_content__inner__time__2cghz {\n  height: 16.67vh;\n  line-height: 16.67vh;\n}\n.record-module_content__inner__name__2_Xwv {\n  width: 16vw;\n}\n.record-module_content__inner__lab__3y_EP {\n  width: 32vw;\n}\n.record-module_content__inner__time__2cghz {\n  width: 30vw;\n}\n.record-module_content__2B2p0 .record-module_null__2jc85 {\n  color: white;\n  padding: 40px;\n  font-size: 20px;\n}");const _=({record:n,columns:t})=>{console.log("🚀 ~ file: Record.tsx:14 ~ columns:",t);const[r,i]=e.useState([{start:"1432784753",user_name:"aaa",equipment_name:"pswer"},{start:"1432784753",user_name:"aaa",equipment_name:"pswer"},{start:"1432784753",user_name:"aaa",equipment_name:"pswer"},{start:"1432784753",user_name:"aaa",equipment_name:"pswer"},{start:"1432784753",user_name:"aaa",equipment_name:"pswer"},{start:"1432784753",user_name:"aaa",equipment_name:"pswer"},{start:"1432784753",user_name:"aaa",equipment_name:"pswer"}]);return!n||(n.slice(0,4),n.slice(4,8),n.slice(8,12)),o.default.useEffect((()=>{let e=[];n?(e=[n.slice(0,4),n.slice(4,8),n.slice(8,12)],i(2==t?e.slice(0,2):1==t?e.slice(0,1):e)):i([])}),[n,t]),r.length>0?u.jsx("div",Object.assign({className:f.content},{children:r.map(((e,n)=>u.jsx("div",Object.assign({className:1==t?f.content__child__1:2==t?f.content__child__2:f.content__child__3},{children:e.length?e.map(((e,n)=>{const t=new Date(1e3*parseInt(e.start)),r=(new Date).getFullYear(),o=p(t,"yyyy"),i=r===parseInt(o)?p(t,"MM.dd hh:mm:ss"):p(t,"yyyy/MM/dd hh:mm:ss");return u.jsxs("div",Object.assign({className:f.content__item},{children:[u.jsx("div",Object.assign({className:f.content__item__line},{children:u.jsx("div",{className:f.content__item__point},void 0)}),void 0),u.jsxs("div",Object.assign({className:f.content__inner},{children:[u.jsx("div",Object.assign({className:`${f.content__inner__time} g__text-overflow`},{children:i}),void 0),u.jsx("div",Object.assign({className:`${f.content__inner__name} g__text-overflow`},{children:e.user_name}),void 0),u.jsx("div",Object.assign({className:`${f.content__inner__lab} g__text-overflow`},{children:e.equipment_name}),void 0)]}),void 0)]}),n)})):null}),n)))}),void 0):u.jsx("div",Object.assign({className:f.null},{children:"暂无数据"}),void 0)};i.default("html,\nbody,\n#root {\n    width: 100%;\n    height: 100%;\n    margin: 0;\n    overflow: hidden;\n    box-sizing: border-box;\n    background-color: transparent;\n}\n\n.g__text-overflow {\n    display: inline-block;\n    white-space: nowrap;\n    overflow: hidden;\n    -o-text-overflow: ellipsis;\n    text-overflow: ellipsis;\n}\n.no {\n    color: white;\n    padding: 50px;\n    font-size: 20px;\n}");return({gpui:t})=>{const[r,i]=o.default.useState([]),[a,c]=o.default.useState(2),d=e.useRef(),f=e.useRef();return o.default.useEffect((()=>{let e=!0;const r=n.reaction((()=>{var e;return null===(e=t.params)||void 0===e?void 0:e.equipment_base_url}),(n=>s(void 0,void 0,void 0,(function*(){if(!n)return;const r=new l({baseURL:n,headers:t.params.lims_gpui_headers}),o=()=>s(void 0,void 0,void 0,(function*(){const n=yield r.call({method:"gpui/equipment/recordList",params:[0,0,{equipment:t.params.equipment_ids}]});e&&n&&i(n)}));((e,n,t,r)=>{const o=i=>s(void 0,void 0,void 0,(function*(){r.current||(r.current=i),i-r.current>n&&(r.current=i,yield e()),t.current=requestAnimationFrame(o)}));t.current||(t.current=requestAnimationFrame(o))})((()=>{o()}),18e5,d,f),o()}))),{fireImmediately:!0}),o=n.reaction((()=>{var e;return null===(e=t.params)||void 0===e?void 0:e.columns}),(n=>s(void 0,void 0,void 0,(function*(){n&&e&&c(n)}))),{fireImmediately:!0});return()=>{e=!1,r(),o(),d.current&&(cancelAnimationFrame(d.current),d.current=null)}}),[]),r.length>0?u.jsx(_,{record:r,columns:a},void 0):u.jsx("div",Object.assign({className:"no"},{children:"暂无数据"}),void 0)}}));
