define(["react","mobx","gpui-style-inject"],(function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=r(e),i=r(n);
/*! *****************************************************************************
    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,t,n,r){return new(n||(n=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 t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function a(e){var t={exports:{}};return e(t,t.exports),t.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 t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[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,t){var n=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var r=Symbol.for;n=r("react.element"),t.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,t,r){var o,c={},u=null,d=null;for(o in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(d=t.ref),t)s.call(t,o)&&!a.hasOwnProperty(o)&&(c[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===c[o]&&(c[o]=t[o]);return{$$typeof:n,type:e,key:u,ref:d,props:c,_owner:i.current}}t.jsx=c,t.jsxs=c})),u=a((function(e){e.exports=c})),d=a((function(e,t){var n;n=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){var r=n(2),o=n(3),i=n(4),s=n(22);function a(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var c=a(n(10));c.Axios=i,c.create=function(e){return a(s(c.defaults,e))},c.Cancel=n(23),c.CancelToken=n(24),c.isCancel=n(9),c.all=function(e){return Promise.all(e)},c.spread=n(25),c.isAxiosError=n(26),e.exports=c,e.exports.default=c},function(e,t,n){var r=n(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 t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===o.call(e)}function d(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.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 t={};function n(n,r){c(t[r])&&c(n)?t[r]=e(t[r],n):c(n)?t[r]=e({},n):i(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)d(arguments[r],n);return t},extend:function(e,t,n){return d(t,(function(t,o){e[o]=n&&"function"==typeof t?r(t,n):t})),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,t){e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){var r=n(2),o=n(5),i=n(6),s=n(7),a=n(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 t=[s,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},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(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,r){return this.request(a(r||{},{method:e,url:t,data:n}))}})),e.exports=c},function(e,t,n){var r=n(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,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var s=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),s.push(o(t)+"="+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,t,n){var r=n(2);function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),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(t){null!==t&&e(t)}))},e.exports=o},function(e,t,n){var r=n(2),o=n(8),i=n(9),s=n(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(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return a(e),t.data=o(t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(a(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){var r=n(2);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},function(e,t){e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){var r=n(2),o=n(11),i={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var a,c={adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(a=n(12)),a),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"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(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(s(t,"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,t,n){var r=n(2);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){var r=n(2),o=n(13),i=n(16),s=n(5),a=n(17),c=n(20),u=n(21),d=n(14);e.exports=function(e){return new Promise((function(t,n){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(t,n,i),p=null}},p.onabort=function(){p&&(n(d("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(d("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(d(t,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,t){void 0===l&&"content-type"===t.toLowerCase()?delete f[t]:p.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),e.responseType)try{p.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"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(),n(e),p=null)})),l||(l=null),p.send(l)}))}},function(e,t,n){var r=n(14);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){var r=n(15);e.exports=function(e,t,n,o,i){var s=new Error(e);return r(s,t,n,o,i)}},function(e,t){e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),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,t,n){var r=n(2);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,s){var a=[];a.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&a.push("expires="+new Date(n).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 t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){var r=n(18),o=n(19);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},function(e,t){e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t){e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){var r=n(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 t,n,i,s={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(s[t]&&o.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},function(e,t,n){var r=n(2);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){var r=n(2);e.exports=function(e,t){t=t||{};var n={},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,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function u(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=c(void 0,e[o])):n[o]=c(e[o],t[o])}r.forEach(o,(function(e){r.isUndefined(t[e])||(n[e]=c(void 0,t[e]))})),r.forEach(i,u),r.forEach(s,(function(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=c(void 0,e[o])):n[o]=c(void 0,t[o])})),r.forEach(a,(function(r){r in t?n[r]=c(e[r],t[r]):r in e&&(n[r]=c(void 0,e[r]))}));var d=o.concat(i).concat(s).concat(a),l=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===d.indexOf(e)}));return r.forEach(l,u),n}},function(e,t){function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},function(e,t,n){var r=n(23);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},function(e,t){e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t){e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}}])},e.exports=n()}));class l{constructor({baseURL:e="",timeout:t=6e4,headers:n={}}){this.passenger=d.create({baseURL:e,timeout:t,headers:Object.assign({"Content-Type":"application/x-www-form-urlencoded; chartset=UTF-8"},n)}),this.passenger.interceptors.response.use((e=>e),(e=>Promise.reject(e)))}call({method:e,params:t={}}){var n,r;return s(this,void 0,void 0,(function*(){const o=yield this.passenger.post("",{jsonrpc:"2.0",method:e,id:1,params:t instanceof Array?t:[t]});return(null===(n=o.data)||void 0===n?void 0:n.result)?o.data.result:null===(r=o.data)||void 0===r?void 0:r.error}))}get({method:e,params:t={},path:n={}}){return s(this,void 0,void 0,(function*(){let r=e;if(Object.keys(n).length&&e)for(const e in n)r=r.replace(`:${e}`,n[e]);const o=yield this.passenger.get(r,{params:t});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,t){const n={"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(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length)));for(const e in n)new RegExp("("+e+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?n[e]:("00"+n[e]).substr((""+n[e]).length)));return t}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  .record-module_content__child_1__39jZu {\n    flex: 1;\n    width: 90%;\n    box-sizing: border-box; }\n  .record-module_content__child__2__1Dnyz {\n    flex: 1;\n    width: 48%;\n    box-sizing: border-box; }\n  .record-module_content__child__3__2gWuw {\n    flex: 1;\n    width: 30%;\n    box-sizing: border-box; }\n  .record-module_content__item__3zROm {\n    height: 23.67vh;\n    display: flex;\n    align-items: center;\n    color: #83b5db; }\n    .record-module_content__item__3zROm:last-child:before {\n      border-left: none; }\n    .record-module_content__item__3zROm:last-child .record-module_content__item__line__2mc8E {\n      border-left: none; }\n    .record-module_content__item__3zROm:last-child .record-module_content__item__point__2ZZjh {\n      background-color: #83b5db;\n      left: -3.5px; }\n    .record-module_content__item__3zROm:first-child {\n      color: #e6e6e6 !important; }\n      .record-module_content__item__3zROm:first-child .record-module_content__item__point__2ZZjh {\n        background-color: #e6e6e6; }\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      .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  .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    .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    .record-module_content__inner__name__2_Xwv {\n      width: 16vw; }\n    .record-module_content__inner__lab__3y_EP {\n      width: 32vw; }\n    .record-module_content__inner__time__2cghz {\n      width: 30vw; }\n  .record-module_content__2B2p0 .record-module_null__2jc85 {\n    color: white;\n    padding: 40px;\n    font-size: 20px; }\n");const _=({record:t,columns:n})=>{console.log("🚀 ~ file: Record.tsx:14 ~ columns:",n);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!t||(t.slice(0,4),t.slice(4,8),t.slice(8,12)),o.default.useEffect((()=>{let e=[];t?(e=[t.slice(0,4),t.slice(4,8),t.slice(8,12)],i(2==n?e.slice(0,2):1==n?e.slice(0,1):e)):i([])}),[t,n]),r.length>0?u.jsx("div",Object.assign({className:f.content},{children:r.map(((e,t)=>u.jsx("div",Object.assign({className:1==n?f.content__child__1:2==n?f.content__child__2:f.content__child__3},{children:e.length?e.map(((e,t)=>{const n=new Date(1e3*parseInt(e.start)),r=(new Date).getFullYear(),o=p(n,"yyyy"),i=r===parseInt(o)?p(n,"MM.dd hh:mm:ss"):p(n,"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)]}),t)})):null}),t)))}),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:n})=>{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=t.reaction((()=>{var e;return null===(e=n.params)||void 0===e?void 0:e.equipment_base_url}),(t=>s(void 0,void 0,void 0,(function*(){if(!t)return;const r=new l({baseURL:t,headers:n.params.lims_gpui_headers}),o=()=>s(void 0,void 0,void 0,(function*(){const t=yield r.call({method:"gpui/equipment/recordList",params:[0,0,{equipment:n.params.equipment_ids}]});e&&t&&i(t)}));((e,t,n,r)=>{const o=i=>s(void 0,void 0,void 0,(function*(){r.current||(r.current=i),i-r.current>t&&(r.current=i,yield e()),n.current=requestAnimationFrame(o)}));n.current||(n.current=requestAnimationFrame(o))})((()=>{o()}),18e5,d,f),o()}))),{fireImmediately:!0}),o=t.reaction((()=>{var e;return null===(e=n.params)||void 0===e?void 0:e.columns}),(t=>s(void 0,void 0,void 0,(function*(){t&&e&&c(t)}))),{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)}}));
