You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__tasks__Jupyter.9d1d64ca....

2 lines
40 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([[234],{"EF+S":function(oe,le,y){oe.exports={bg:"bg___3hUp0",header:"header___1T3qP",user:"user___3gcln",titleWrap:"titleWrap___BPyXW",title:"title___1hc9j",endTimeWrap:"endTimeWrap___tCmLs",colorGray:"colorGray___2s62a",main:"main___g8cKX",loadFail:"loadFail___1h3vW",reload:"reload___2TZng",failIcon:"failIcon___3mbwQ",failWrap:"failWrap___138EN",failReload:"failReload___3eeAm",dataSetButton:"dataSetButton___38M58",dataSetText:"dataSetText___k4Y8a",dataSetOpen:"dataSetOpen___Eqml_",mymove:"mymove___3BEqr"}},Flby:function(oe,le,y){oe.exports={drawerWrap:"drawerWrap___30u-E",drawer:"drawer___25Cz3",title:"title___2sb8_",titleIcon:"titleIcon___2sEYD",filePathWrap:"filePathWrap___1lqDk",filePathContent:"filePathContent___3g6vP",folderName:"folderName___1_P2P",copy:"copy___2Lnre",listWrap:"listWrap___W2kd8",item:"item___2WUk2",itemText:"itemText___2QG3L"}},qgvg:function(oe,le){oe.exports="data:image/gif;base64,R0lGODlhFAAQAOZVAD6Q33p6ezZto2VnaW5vcDuCxiYvNysvM1tdXzNij5eXlyg0QTA0OExOUWZnaS8zN19hYzFYf0Oi/Sg1QoeHh2JjZWZoaTdzrTRmljl5tzFZgDBWez6P3Tl4tjl8uzdxqWBiYys/VCUqL39/gHV2dy4yNScyPDJeiEpNTzk8P0CX6jc7PiYuNWlqaywwNDZtojAzNytDWScrLitAVUGb8Xl6eoWFhTp+wDNgjWRmZ4+QkFdZWzo9QIODgyo/Uzh3syg0QCczPmprbTRllW9wcSotMVJUVjZupDuEylBSVUGb8kxPUZGRkTd0rUGc82JkZUKe9j2M1zg7P4iIiEOj/yUpLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6N0U3Nzk1NkY5QkRGMTFFQUIzQzFDQjY5MEVFODZDMDciIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6N0U3Nzk1NzA5QkRGMTFFQUIzQzFDQjY5MEVFODZDMDciPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo3RTc3OTU2RDlCREYxMUVBQjNDMUNCNjkwRUU4NkMwNyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo3RTc3OTU2RTlCREYxMUVBQjNDMUNCNjkwRUU4NkMwNyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAUyAFUALAAAAAAUABAAAAd5gFWCg4RSLoSIiVUPFlNEhAwDCIoyST1TUwGCBwM6AweJPCSYmJpVCAMMgykgFRUtFKSlilVCsreZtAS4sqaJu7yzisDBvhAKyBDEvL6Iy7jNhA7BwoklKA0NRiO30bRFOzakpqiqtItPsTWbA0wWoOcrOUuEMA6TgQAh+QQFMgBVACwAAAAAFAAQAAAHeIBVgoOEISaEiIlVExlUSIQLAgmKIidOVFQAggYCNAIGiTFRmJiaVQkCC4MzHxcXHhKkpYpVN7K3mbQFuLKmibu8s4rAwb4YpBjEvL6IyrjMhB3BwolBGxEROCq30LQsQ1CkpqiqtItNsRybAkpHoOY+PxqEQC+TgQA7"},sUu2:function(oe,le,y){"use strict";y.r(le);var vt=y("T2oS"),Ie=y("W9HT"),_t=y("+L6B"),fe=y("2/Rp"),Et=y("2qtc"),ue=y("kLXV"),gt=y("miYZ"),se=y("tsqr"),G=y("9og8"),Z=y("tJVT"),Ge=y("PpiC"),yt=y("aHsQ"),Me=y("sGsY"),L=y("q1tI"),c=y.n(L),ke=y("Ty5D"),he=y("9kvl"),We=y("m3rI"),ce=y("VTBJ"),Be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 003 14.1zm167.7 301.1l-56.7-19.5a8 8 0 00-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 01-112.5 75.9 352.18 352.18 0 01-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 01-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 01171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 01112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 01775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z"}}]},name:"history",theme:"outlined"},Ye=Be,pe=y("6VBw"),Te=function(f,h){return L.createElement(pe.a,Object(ce.a)(Object(ce.a)({},f),{},{ref:h,icon:Ye}))};Te.displayName="HistoryOutlined";var ze=L.forwardRef(Te),Je={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"},Ve=Je,Re=function(f,h){return L.createElement(pe.a,Object(ce.a)(Object(ce.a)({},f),{},{ref:h,icon:Ve}))};Re.displayName="SyncOutlined";var He=L.forwardRef(Re),Xe=y("GIiI"),Ze=y("EF+S"),N=y.n(Ze),te=y("ErOA");function F(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */F=function(){return u};var u={},f=Object.prototype,h=f.hasOwnProperty,l=typeof Symbol=="function"?Symbol:{},M=l.iterator||"@@iterator",re=l.asyncIterator||"@@asyncIterator",C=l.toStringTag||"@@toStringTag";function _(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{_({},"")}catch(t){_=function(r,n,a){return r[n]=a}}function j(t,e,r,n){var a=e&&e.prototype instanceof z?e:z,i=Object.create(a.prototype),s=new V(n||[]);return i._invoke=function(p,A,o){var d="suspendedStart";return function(g,K){if(d==="executing")throw new Error("Generator is already running");if(d==="completed"){if(g==="throw")throw K;return U()}for(o.method=g,o.arg=K;;){var $=o.delegate;if($){var H=X($,o);if(H){if(H===E)continue;return H}}if(o.method==="next")o.sent=o._sent=o.arg;else if(o.method==="throw"){if(d==="suspendedStart")throw d="completed",o.arg;o.dispatchException(o.arg)}else o.method==="return"&&o.abrupt("return",o.arg);d="executing";var S=Y(p,A,o);if(S.type==="normal"){if(d=o.done?"completed":"suspendedYield",S.arg===E)continue;return{value:S.arg,done:o.done}}S.type==="throw"&&(d="completed",o.method="throw",o.arg=S.arg)}}}(t,r,s),i}function Y(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(n){return{type:"throw",arg:n}}}u.wrap=j;var E={};function z(){}function T(){}function O(){}var J={};_(J,M,function(){return this});var k=Object.getPrototypeOf,w=k&&k(k(I([])));w&&w!==f&&h.call(w,M)&&(J=w);var R=O.prototype=z.prototype=Object.create(J);function x(t){["next","throw","return"].forEach(function(e){_(t,e,function(r){return this._invoke(e,r)})})}function P(t,e){function r(a,i,s,p){var A=Y(t[a],t,i);if(A.type!=="throw"){var o=A.arg,d=o.value;return d&&typeof d=="object"&&h.call(d,"__await")?e.resolve(d.__await).then(function(g){r("next",g,s,p)},function(g){r("throw",g,s,p)}):e.resolve(d).then(function(g){o.value=g,s(o)},function(g){return r("throw",g,s,p)})}p(A.arg)}var n;this._invoke=function(a,i){function s(){return new e(function(p,A){r(a,i,p,A)})}return n=n?n.then(s,s):s()}}function X(t,e){var r=t.iterator[e.method];if(r===void 0){if(e.delegate=null,e.method==="throw"){if(t.iterator.return&&(e.method="return",e.arg=void 0,X(t,e),e.method==="throw"))return E;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return E}var n=Y(r,t.iterator,e.arg);if(n.type==="throw")return e.method="throw",e.arg=n.arg,e.delegate=null,E;var a=n.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,e.method!=="return"&&(e.method="next",e.arg=void 0),e.delegate=null,E):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,E)}function ee(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function W(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function V(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(ee,this),this.reset(!0)}function I(t){if(t){var e=t[M];if(e)return e.call(t);if(typeof t.next=="function")return t;if(!isNaN(t.length)){var r=-1,n=function a(){for(;++r<t.length;)if(h.call(t,r))return a.value=t[r],a.done=!1,a;return a.value=void 0,a.done=!0,a};return n.next=n}}return{next:U}}function U(){return{value:void 0,done:!0}}return T.prototype=O,_(R,"constructor",O),_(O,"constructor",T),T.displayName=_(O,C,"GeneratorFunction"),u.isGeneratorFunction=function(t){var e=typeof t=="function"&&t.constructor;return!!e&&(e===T||(e.displayName||e.name)==="GeneratorFunction")},u.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,O):(t.__proto__=O,_(t,C,"GeneratorFunction")),t.prototype=Object.create(R),t},u.awrap=function(t){return{__await:t}},x(P.prototype),_(P.prototype,re,function(){return this}),u.AsyncIterator=P,u.async=function(t,e,r,n,a){a===void 0&&(a=Promise);var i=new P(j(t,e,r,n),a);return u.isGeneratorFunction(e)?i:i.next().then(function(s){return s.done?s.value:i.next()})},x(R),_(R,C,"Generator"),_(R,M,function(){return this}),_(R,"toString",function(){return"[object Generator]"}),u.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function n(){for(;e.length;){var a=e.pop();if(a in t)return n.value=a,n.done=!1,n}return n.done=!0,n}},u.values=I,V.prototype={constructor:V,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(W),!e)for(var r in this)r.charAt(0)==="t"&&h.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(e.type==="throw")throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(o,d){return s.type="throw",s.arg=e,r.next=o,d&&(r.method="next",r.arg=void 0),!!d}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],s=i.completion;if(i.tryLoc==="root")return n("end");if(i.tryLoc<=this.prev){var p=h.call(i,"catchLoc"),A=h.call(i,"finallyLoc");if(p&&A){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(p){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!A)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,r){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&h.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&(e==="break"||e==="continue")&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=e,s.arg=r,i?(this.method="next",this.next=i.finallyLoc,E):this.complete(s)},complete:function(e,r){if(e.type==="throw")throw e.arg;return e.type==="break"||e.type==="continue"?this.next=e.arg:e.type==="return"?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):e.type==="normal"&&r&&(this.next=r),E},finish:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),W(n),E}},catch:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===e){var a=n.completion;if(a.type==="throw"){var i=a.arg;W(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},this.method==="next"&&(this.arg=void 0),E}},u}function Qe(u){return me.apply(this,arguments)}function me(){return me=Object(G.a)(F().mark(function u(f){return F().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",Object(te.a)("/api/jupyters/save_with_tpi.json",{method:"Get",params:f}));case 1:case"end":return l.stop()}},u)})),me.apply(this,arguments)}function xe(u){return ve.apply(this,arguments)}function ve(){return ve=Object(G.a)(F().mark(function u(f){return F().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",Object(te.a)("/api/tasks/".concat(f.identifier,"/jupyter.json"),{method:"Get",params:f}));case 1:case"end":return l.stop()}},u)})),ve.apply(this,arguments)}function $e(u){return _e.apply(this,arguments)}function _e(){return _e=Object(G.a)(F().mark(function u(f){return F().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",Object(te.a)("/api/jupyters/get_info_with_tpi.json",{method:"Get",params:f}));case 1:case"end":return l.stop()}},u)})),_e.apply(this,arguments)}function Ke(u){return Ee.apply(this,arguments)}function Ee(){return Ee=Object(G.a)(F().mark(function u(f){return F().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",Object(te.a)("/api/jupyters/timeinfo_with_tpi.json",{method:"Get",params:f}));case 1:case"end":return l.stop()}},u)})),Ee.apply(this,arguments)}function qe(u){return ge.apply(this,arguments)}function ge(){return ge=Object(G.a)(F().mark(function u(f){return F().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",Object(te.a)("/api/jupyters/reset_with_tpi.json",{method:"Get",params:f}));case 1:case"end":return l.stop()}},u)})),ge.apply(this,arguments)}function et(u){return ye.apply(this,arguments)}function ye(){return ye=Object(G.a)(F().mark(function u(f){return F().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",Object(te.a)("/api/jupyters/active_with_tpi.json",{method:"Get",params:f}));case 1:case"end":return l.stop()}},u)})),ye.apply(this,arguments)}function tt(u){return Ae.apply(this,arguments)}function Ae(){return Ae=Object(G.a)(F().mark(function u(f){return F().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",Object(te.a)("/api/myshixuns/".concat(f.identifier,"/sync_code.json"),{method:"Post",params:f}));case 1:case"end":return l.stop()}},u)})),Ae.apply(this,arguments)}function rt(u){return we.apply(this,arguments)}function we(){return we=Object(G.a)(F().mark(function u(f){return F().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",Object(te.a)("/api/shixuns/".concat(f.identifier,"/get_data_sets.json"),{method:"Get",params:f}));case 1:case"end":return l.stop()}},u)})),we.apply(this,arguments)}var At=y("bbsP"),nt=y("/wGt"),at={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},it=at,je=function(f,h){return L.createElement(pe.a,Object(ce.a)(Object(ce.a)({},f),{},{ref:h,icon:it}))};je.displayName="FileTextOutlined";var ot=L.forwardRef(je),Ue=y("P5Jw"),ut=y("RotF"),st=y.n(ut),ct=y("Flby"),Q=y.n(ct);function Oe(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Oe=function(){return u};var u={},f=Object.prototype,h=f.hasOwnProperty,l=typeof Symbol=="function"?Symbol:{},M=l.iterator||"@@iterator",re=l.asyncIterator||"@@asyncIterator",C=l.toStringTag||"@@toStringTag";function _(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{_({},"")}catch(t){_=function(r,n,a){return r[n]=a}}function j(t,e,r,n){var a=e&&e.prototype instanceof z?e:z,i=Object.create(a.prototype),s=new V(n||[]);return i._invoke=function(p,A,o){var d="suspendedStart";return function(g,K){if(d==="executing")throw new Error("Generator is already running");if(d==="completed"){if(g==="throw")throw K;return U()}for(o.method=g,o.arg=K;;){var $=o.delegate;if($){var H=X($,o);if(H){if(H===E)continue;return H}}if(o.method==="next")o.sent=o._sent=o.arg;else if(o.method==="throw"){if(d==="suspendedStart")throw d="completed",o.arg;o.dispatchException(o.arg)}else o.method==="return"&&o.abrupt("return",o.arg);d="executing";var S=Y(p,A,o);if(S.type==="normal"){if(d=o.done?"completed":"suspendedYield",S.arg===E)continue;return{value:S.arg,done:o.done}}S.type==="throw"&&(d="completed",o.method="throw",o.arg=S.arg)}}}(t,r,s),i}function Y(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(n){return{type:"throw",arg:n}}}u.wrap=j;var E={};function z(){}function T(){}function O(){}var J={};_(J,M,function(){return this});var k=Object.getPrototypeOf,w=k&&k(k(I([])));w&&w!==f&&h.call(w,M)&&(J=w);var R=O.prototype=z.prototype=Object.create(J);function x(t){["next","throw","return"].forEach(function(e){_(t,e,function(r){return this._invoke(e,r)})})}function P(t,e){function r(a,i,s,p){var A=Y(t[a],t,i);if(A.type!=="throw"){var o=A.arg,d=o.value;return d&&typeof d=="object"&&h.call(d,"__await")?e.resolve(d.__await).then(function(g){r("next",g,s,p)},function(g){r("throw",g,s,p)}):e.resolve(d).then(function(g){o.value=g,s(o)},function(g){return r("throw",g,s,p)})}p(A.arg)}var n;this._invoke=function(a,i){function s(){return new e(function(p,A){r(a,i,p,A)})}return n=n?n.then(s,s):s()}}function X(t,e){var r=t.iterator[e.method];if(r===void 0){if(e.delegate=null,e.method==="throw"){if(t.iterator.return&&(e.method="return",e.arg=void 0,X(t,e),e.method==="throw"))return E;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return E}var n=Y(r,t.iterator,e.arg);if(n.type==="throw")return e.method="throw",e.arg=n.arg,e.delegate=null,E;var a=n.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,e.method!=="return"&&(e.method="next",e.arg=void 0),e.delegate=null,E):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,E)}function ee(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function W(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function V(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(ee,this),this.reset(!0)}function I(t){if(t){var e=t[M];if(e)return e.call(t);if(typeof t.next=="function")return t;if(!isNaN(t.length)){var r=-1,n=function a(){for(;++r<t.length;)if(h.call(t,r))return a.value=t[r],a.done=!1,a;return a.value=void 0,a.done=!0,a};return n.next=n}}return{next:U}}function U(){return{value:void 0,done:!0}}return T.prototype=O,_(R,"constructor",O),_(O,"constructor",T),T.displayName=_(O,C,"GeneratorFunction"),u.isGeneratorFunction=function(t){var e=typeof t=="function"&&t.constructor;return!!e&&(e===T||(e.displayName||e.name)==="GeneratorFunction")},u.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,O):(t.__proto__=O,_(t,C,"GeneratorFunction")),t.prototype=Object.create(R),t},u.awrap=function(t){return{__await:t}},x(P.prototype),_(P.prototype,re,function(){return this}),u.AsyncIterator=P,u.async=function(t,e,r,n,a){a===void 0&&(a=Promise);var i=new P(j(t,e,r,n),a);return u.isGeneratorFunction(e)?i:i.next().then(function(s){return s.done?s.value:i.next()})},x(R),_(R,C,"Generator"),_(R,M,function(){return this}),_(R,"toString",function(){return"[object Generator]"}),u.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function n(){for(;e.length;){var a=e.pop();if(a in t)return n.value=a,n.done=!1,n}return n.done=!0,n}},u.values=I,V.prototype={constructor:V,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(W),!e)for(var r in this)r.charAt(0)==="t"&&h.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(e.type==="throw")throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(o,d){return s.type="throw",s.arg=e,r.next=o,d&&(r.method="next",r.arg=void 0),!!d}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],s=i.completion;if(i.tryLoc==="root")return n("end");if(i.tryLoc<=this.prev){var p=h.call(i,"catchLoc"),A=h.call(i,"finallyLoc");if(p&&A){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(p){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!A)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,r){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&h.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&(e==="break"||e==="continue")&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=e,s.arg=r,i?(this.method="next",this.next=i.finallyLoc,E):this.complete(s)},complete:function(e,r){if(e.type==="throw")throw e.arg;return e.type==="break"||e.type==="continue"?this.next=e.arg:e.type==="return"?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):e.type==="normal"&&r&&(this.next=r),E},finish:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),W(n),E}},catch:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===e){var a=n.completion;if(a.type==="throw"){var i=a.arg;W(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},this.method==="next"&&(this.arg=void 0),E}},u}var lt=function(f){var h=f.globalSetting,l=f.loading,M=f.dispatch,re=f.visible,C=f.identifier,_=Object(L.useState)([]),j=Object(Z.a)(_,2),Y=j[0],E=j[1],z=Object(L.useState)(),T=Object(Z.a)(z,2),O=T[0],J=T[1],k=Object(L.useState)(),w=Object(Z.a)(k,2),R=w[0],x=w[1],P=Object(L.useState)(),X=Object(Z.a)(P,2),ee=X[0],W=X[1],V=Object(L.useState)({page:1,limit:20,identifier:null}),I=Object(Z.a)(V,2),U=I[0],t=I[1];Object(L.useEffect)(function(){if(!C)return;U.identifier=C,t(U),e(U)},[C]);var e=function(){var n=Object(G.a)(Oe().mark(function a(i){var s,p;return Oe().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,rt(i);case 2:s=o.sent,s&&(E(s.data_sets||[]),W(((p=s.data_sets)===null||p===void 0?void 0:p.length)===20),J(s.data_sets_count),x(s.folder_name));case 4:case"end":return o.stop()}},a)}));return function(i){return n.apply(this,arguments)}}(),r=function(){U.page=U.page+1,t(U),e(U)};return c.a.createElement(nt.a,{placement:"right",closable:!1,mask:!1,visible:re,className:Q.a.drawerWrap},c.a.createElement("div",{className:Q.a.drawer},c.a.createElement("h2",{className:Q.a.title},c.a.createElement("i",{className:"iconfont icon-base ".concat(Q.a.titleIcon)}),"\u6570\u636E\u96C6"),c.a.createElement("div",{className:Q.a.filePathWrap},c.a.createElement("span",{className:"ml50"},"\u6587\u4EF6\u8DEF\u5F84"),c.a.createElement("div",{className:Q.a.filePathContent},c.a.createElement("span",{className:Q.a.folderName},R),c.a.createElement(Ue.CopyToClipboard,{text:R,onCopy:function(){return se.b.success("\u590D\u5236\u6210\u529F")}},c.a.createElement("span",{className:"".concat(Q.a.copy," current")},"\u590D\u5236\u5730\u5740")))),c.a.createElement("div",{className:Q.a.listWrap},c.a.createElement(st.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(a){return r()},hasMore:ee,useWindow:!1},Y.map(function(n,a){return c.a.createElement("div",{className:Q.a.item},c.a.createElement("span",{className:Q.a.itemText,title:n.title},c.a.createElement(ot,{style:{color:"#28b887",fontSize:25}}),n.title),c.a.createElement(Ue.CopyToClipboard,{text:n.file_path,onCopy:function(){return se.b.success("\u590D\u5236\u6210\u529F")}},c.a.createElement("span",{className:"".concat(Q.a.copy," current")},"\u590D\u5236\u5730\u5740")))})))))},dt=Object(he.a)(function(u){var f=u.loading,h=u.globalSetting;return{globalSetting:h,loading:f}})(lt);function B(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */B=function(){return u};var u={},f=Object.prototype,h=f.hasOwnProperty,l=typeof Symbol=="function"?Symbol:{},M=l.iterator||"@@iterator",re=l.asyncIterator||"@@asyncIterator",C=l.toStringTag||"@@toStringTag";function _(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{_({},"")}catch(t){_=function(r,n,a){return r[n]=a}}function j(t,e,r,n){var a=e&&e.prototype instanceof z?e:z,i=Object.create(a.prototype),s=new V(n||[]);return i._invoke=function(p,A,o){var d="suspendedStart";return function(g,K){if(d==="executing")throw new Error("Generator is already running");if(d==="completed"){if(g==="throw")throw K;return U()}for(o.method=g,o.arg=K;;){var $=o.delegate;if($){var H=X($,o);if(H){if(H===E)continue;return H}}if(o.method==="next")o.sent=o._sent=o.arg;else if(o.method==="throw"){if(d==="suspendedStart")throw d="completed",o.arg;o.dispatchException(o.arg)}else o.method==="return"&&o.abrupt("return",o.arg);d="executing";var S=Y(p,A,o);if(S.type==="normal"){if(d=o.done?"completed":"suspendedYield",S.arg===E)continue;return{value:S.arg,done:o.done}}S.type==="throw"&&(d="completed",o.method="throw",o.arg=S.arg)}}}(t,r,s),i}function Y(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(n){return{type:"throw",arg:n}}}u.wrap=j;var E={};function z(){}function T(){}function O(){}var J={};_(J,M,function(){return this});var k=Object.getPrototypeOf,w=k&&k(k(I([])));w&&w!==f&&h.call(w,M)&&(J=w);var R=O.prototype=z.prototype=Object.create(J);function x(t){["next","throw","return"].forEach(function(e){_(t,e,function(r){return this._invoke(e,r)})})}function P(t,e){function r(a,i,s,p){var A=Y(t[a],t,i);if(A.type!=="throw"){var o=A.arg,d=o.value;return d&&typeof d=="object"&&h.call(d,"__await")?e.resolve(d.__await).then(function(g){r("next",g,s,p)},function(g){r("throw",g,s,p)}):e.resolve(d).then(function(g){o.value=g,s(o)},function(g){return r("throw",g,s,p)})}p(A.arg)}var n;this._invoke=function(a,i){function s(){return new e(function(p,A){r(a,i,p,A)})}return n=n?n.then(s,s):s()}}function X(t,e){var r=t.iterator[e.method];if(r===void 0){if(e.delegate=null,e.method==="throw"){if(t.iterator.return&&(e.method="return",e.arg=void 0,X(t,e),e.method==="throw"))return E;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return E}var n=Y(r,t.iterator,e.arg);if(n.type==="throw")return e.method="throw",e.arg=n.arg,e.delegate=null,E;var a=n.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,e.method!=="return"&&(e.method="next",e.arg=void 0),e.delegate=null,E):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,E)}function ee(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function W(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function V(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(ee,this),this.reset(!0)}function I(t){if(t){var e=t[M];if(e)return e.call(t);if(typeof t.next=="function")return t;if(!isNaN(t.length)){var r=-1,n=function a(){for(;++r<t.length;)if(h.call(t,r))return a.value=t[r],a.done=!1,a;return a.value=void 0,a.done=!0,a};return n.next=n}}return{next:U}}function U(){return{value:void 0,done:!0}}return T.prototype=O,_(R,"constructor",O),_(O,"constructor",T),T.displayName=_(O,C,"GeneratorFunction"),u.isGeneratorFunction=function(t){var e=typeof t=="function"&&t.constructor;return!!e&&(e===T||(e.displayName||e.name)==="GeneratorFunction")},u.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,O):(t.__proto__=O,_(t,C,"GeneratorFunction")),t.prototype=Object.create(R),t},u.awrap=function(t){return{__await:t}},x(P.prototype),_(P.prototype,re,function(){return this}),u.AsyncIterator=P,u.async=function(t,e,r,n,a){a===void 0&&(a=Promise);var i=new P(j(t,e,r,n),a);return u.isGeneratorFunction(e)?i:i.next().then(function(s){return s.done?s.value:i.next()})},x(R),_(R,C,"Generator"),_(R,M,function(){return this}),_(R,"toString",function(){return"[object Generator]"}),u.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function n(){for(;e.length;){var a=e.pop();if(a in t)return n.value=a,n.done=!1,n}return n.done=!0,n}},u.values=I,V.prototype={constructor:V,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(W),!e)for(var r in this)r.charAt(0)==="t"&&h.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(e.type==="throw")throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(o,d){return s.type="throw",s.arg=e,r.next=o,d&&(r.method="next",r.arg=void 0),!!d}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],s=i.completion;if(i.tryLoc==="root")return n("end");if(i.tryLoc<=this.prev){var p=h.call(i,"catchLoc"),A=h.call(i,"finallyLoc");if(p&&A){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(p){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!A)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,r){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&h.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&(e==="break"||e==="continue")&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=e,s.arg=r,i?(this.method="next",this.next=i.finallyLoc,E):this.complete(s)},complete:function(e,r){if(e.type==="throw")throw e.arg;return e.type==="break"||e.type==="continue"?this.next=e.arg:e.type==="return"?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):e.type==="normal"&&r&&(this.next=r),E},finish:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),W(n),E}},catch:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===e){var a=n.completion;if(a.type==="throw"){var i=a.arg;W(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},this.method==="next"&&(this.arg=void 0),E}},u}var be=Me.a.Countdown,q;(function(u){u[u.LoadFail=1]="LoadFail",u[u.ReLoad=2]="ReLoad",u[u.Success=3]="Success"})(q||(q={}));var ft=function(f){var h,l,M=f.globalSetting,re=f.loading,C=f.dispatch,_=Object(Ge.a)(f,["globalSetting","loading","dispatch"]),j=Object(ke.m)(),Y=Object(L.useState)(!0),E=Object(Z.a)(Y,2),z=E[0],T=E[1],O=Object(L.useRef)(!0),J=Object(L.useState)({}),k=Object(Z.a)(J,2),w=k[0],R=k[1],x=Object(L.useState)(),P=Object(Z.a)(x,2),X=P[0],ee=P[1],W=Object(L.useRef)(),V=Object(L.useState)(q.Success),I=Object(Z.a)(V,2),U=I[0],t=I[1],e=Object(L.useState)(),r=Object(Z.a)(e,2),n=r[0],a=r[1],i=Object(L.useState)(),s=Object(Z.a)(i,2),p=s[0],A=s[1],o=Object(L.useState)(!1),d=Object(Z.a)(o,2),g=d[0],K=d[1];Object(L.useEffect)(function(){return C({type:"globalSetting/headerFooterToggle",payload:!1}),function(){C({type:"globalSetting/headerFooterToggle",payload:!0})}},[]),Object(L.useEffect)(function(){return window.addEventListener("message",H),function(){window.removeEventListener("message",H)}},[]),Object(L.useEffect)(function(){ht(),Ne()},[j.identifier]),Object(L.useEffect)(function(){w.tpm_modified&&$()},[w]);var $=function(){Fe({title:"\u66F4\u65B0\u901A\u77E5",content:c.a.createElement("p",null,"\u5173\u5361\u4EFB\u52A1\u7684\u4EE3\u7801\u6587\u4EF6\u6709\u66F4\u65B0\u5566~",c.a.createElement("br",null)," \u66F4\u65B0\u64CD\u4F5C\u5C06\u4FDD\u7559\u5DF2\u5B8C\u6210\u7684\u8BC4\u6D4B\u8BB0\u5F55\u548C\u6210\u7EE9\u3002",c.a.createElement("br",null),"\u8FD8\u672A\u5B8C\u6210\u8BC4\u6D4B\u7684\u4EFB\u52A1\u4EE3\u7801\uFF0C\u8BF7\u81EA\u884C\u4FDD\u5B58\uFF01")})},H=function(b){(b==null?void 0:b.data)==="jupytermessage"&&O.current&&(O.current=!1,S(),setTimeout(function(){return O.current=!0},500))},S=function(){var D=Object(G.a)(B().mark(function b(){var m;return B().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,Qe({identifier:j.identifier,jupyter_port:W.current});case 2:m=v.sent,m.status===0&&se.b.success("\u4FDD\u5B58\u6210\u529F!");case 4:case"end":return v.stop()}},b)}));return function(){return D.apply(this,arguments)}}(),ht=function(){var D=Object(G.a)(B().mark(function b(){var m;return B().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,xe({identifier:j.identifier});case 2:m=v.sent,m&&R(m);case 4:case"end":return v.stop()}},b)}));return function(){return D.apply(this,arguments)}}(),Ne=function(){var D=Object(G.a)(B().mark(function b(){var m;return B().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,$e({identifier:j.identifier});case 2:if(m=v.sent,T(!1),!(m==null?void 0:m.url)){v.next=10;break}return Pe(),ee(m.url),W.current=m.port,t(q.Success),v.abrupt("return");case 10:m.url===-1?t(q.LoadFail):t(q.ReLoad);case 11:case"end":return v.stop()}},b)}));return function(){return D.apply(this,arguments)}}(),Pe=function(){var D=Object(G.a)(B().mark(function b(){var m;return B().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,Ke({identifier:j.identifier});case 2:if(m=v.sent,!((m==null?void 0:m.status)!==0)){v.next=5;break}return v.abrupt("return");case 5:if(m==null?void 0:m.useSeconds){v.next=8;break}return Se(),v.abrupt("return");case 8:(m==null?void 0:m.remainingSeconds)&&(a(Date.now()+m.remainingSeconds*1e3),A(m.remainingSeconds-300<=0?Date.now()+1e3:Date.now()+(m.remainingSeconds-300)*1e3));case 9:case"end":return v.stop()}},b)}));return function(){return D.apply(this,arguments)}}(),Se=function(){de(!0),T(!0),ue.a.confirm({centered:!0,title:"\u91CD\u7F6E\u73AF\u5883",content:" \u662F\u5426\u786E\u5B9A\u91CD\u7F6E\u73AF\u5883\uFF1F",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){De()},onCancel:function(){de(!1),T(!1)}})},De=function(){var D=Object(G.a)(B().mark(function b(){var m;return B().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,qe({identifier:j.identifier});case 2:if(m=v.sent,!((m==null?void 0:m.status)!==0)){v.next=5;break}return v.abrupt("return");case 5:se.b.success("\u91CD\u7F6E\u6210\u529F!"),T(!1),setTimeout(function(){return window.location.reload()},300);case 8:case"end":return v.stop()}},b)}));return function(){return D.apply(this,arguments)}}(),pt=function(){ue.a.destroyAll(),ue.a.confirm({centered:!0,title:"\u670D\u52A1\u4E2D\u65AD\u63D0\u9192",content:c.a.createElement("div",{className:"tc font14"},"jupyter\u5C06\u4E8E",c.a.createElement("span",null,c.a.createElement(be,{value:n,format:"HH:mm:ss",onFinish:Ce})),"\u65F6\u95F4\u540E\u670D\u52A1\u4E2D\u65AD\uFF0C\u662F\u5426\u9700\u8981\u5EF6\u957F\u4F7F\u7528\u65F6\u95F4\uFF1F"),okText:"\u7ACB\u5373\u5EF6\u957F",cancelText:"\u4E0D\u9700\u8981",onOk:function(){var b=Object(G.a)(B().mark(function ne(){var v;return B().wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:return ae.next=2,et({identifier:j.identifier});case 2:if(v=ae.sent,!(v.status===0)){ae.next=7;break}return ae.next=6,Pe();case 6:se.b.success("\u5EF6\u957F\u6210\u529F!");case 7:case"end":return ae.stop()}},ne)}));function m(){return b.apply(this,arguments)}return m}()})},Ce=function(){ue.a.destroyAll(),ue.a.confirm({centered:!0,title:"\u5012\u8BA1\u65F6\u622A\u6B62",content:c.a.createElement("p",{className:"tc font14"},"\u670D\u52A1\u5DF2\u4E2D\u65AD\uFF0C\u662F\u5426\u786E\u8BA4\u91CD\u7F6E\u5B9E\u9A8C\u73AF\u5883\uFF1F"),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){De()}})},de=function(b){var m=document.getElementById("taskJupyterIframe");if(!m)return;b?m.contentWindow.postMessage("stopParent","*"):m.contentWindow.postMessage("clonsParent","*")},mt=function(){T(!0),de(!0),Fe({title:"\u91CD\u7F6E\u5B9E\u8BAD",content:c.a.createElement("div",{className:"tc font14"},"\u4F60\u5728\u672C\u6587\u4EF6\u4E2D\u4FEE\u6539\u7684\u5185\u5BB9\u5C06\u4E22\u5931,",c.a.createElement("br",null),"\u662F\u5426\u786E\u5B9A\u91CD\u65B0\u52A0\u8F7D\u521D\u59CB\u4EE3\u7801\uFF1F")})},Fe=function(b){ue.a.confirm({centered:!0,title:b.title,content:b.content,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var m=Object(G.a)(B().mark(function v(){var Le;return B().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.next=2,tt({identifier:j.identifier});case 2:if(Le=ie.sent,!(Le.status!==0)){ie.next=5;break}return ie.abrupt("return");case 5:se.b.success("\u64CD\u4F5C\u6210\u529F"),T(!1),setTimeout(function(){return window.location.reload()},300);case 8:case"end":return ie.stop()}},v)}));function ne(){return m.apply(this,arguments)}return ne}(),onCancel:function(){de(!1),T(!1)}})};return c.a.createElement(Ie.a,{spinning:z,tip:"\u52A0\u8F7D\u4E2D..."},c.a.createElement("section",{className:N.a.bg},c.a.createElement("header",{className:N.a.header},c.a.createElement("div",{className:N.a.user},c.a.createElement("img",{src:"".concat(We.a.IMG_SERVER,"/images/").concat(w==null||((h=w.user)===null||h===void 0)?void 0:h.image_url),alt:"\u7528\u6237\u5934\u50CF"}),c.a.createElement("span",{className:"ml10"},w==null||((l=w.user)===null||l===void 0)?void 0:l.name)),c.a.createElement("div",{className:N.a.titleWrap},c.a.createElement("span",{className:N.a.title},w==null?void 0:w.name),c.a.createElement("span",null,c.a.createElement(be,{value:n,format:"HH:mm:ss",onFinish:Ce}),c.a.createElement("span",{className:N.a.endTimeWrap},p&&c.a.createElement(be,{value:p,format:"HH:mm:ss",onFinish:pt})))),c.a.createElement("div",{className:N.a.actionWrap},w.tpm_modified&&c.a.createElement("img",{src:y("qgvg"),onClick:$,style:{position:"relative",top:-1,marginRight:8,cursor:"pointer"}}),c.a.createElement(fe.a,{icon:c.a.createElement(ze,null),className:"".concat(N.a.colorGray," font14"),type:"link",onClick:mt},"\u91CD\u7F6E\u5B9E\u8BAD"),c.a.createElement(fe.a,{icon:c.a.createElement(He,null),className:"".concat(N.a.colorGray," font14"),type:"link",onClick:Se},"\u91CD\u7F6E\u73AF\u5883"),c.a.createElement(fe.a,{icon:c.a.createElement(Xe.a,null),className:"".concat(N.a.colorGray," font14"),type:"link",onClick:function(){return he.c.push("/shixuns/".concat(w.identifier,"/challenges"))}},"\u9000\u51FA\u5B9E\u8BAD"))),c.a.createElement("main",{className:N.a.main},c.a.createElement("div",{className:"".concat(N.a.dataSetButton," ").concat(g?N.a.dataSetOpen:""),onClick:function(){return K(!g)}},c.a.createElement("span",{className:N.a.dataSetText},"\u6570\u636E\u96C6")),U===q.LoadFail&&c.a.createElement("div",{className:N.a.loadFail}," "),U===q.ReLoad&&c.a.createElement("div",{className:N.a.reload},c.a.createElement("div",{className:N.a.failWrap},c.a.createElement("i",{className:"iconfont icon-jiazaishibai1 ".concat(N.a.failIcon)}),c.a.createElement("p",{className:"font12"},"\u52A0\u8F7D\u5B9E\u8BAD\u5931\u8D25\uFF0C",c.a.createElement("span",{className:N.a.failReload,onClick:Ne},"\u91CD\u65B0\u52A0\u8F7D")))),U===q.Success&&c.a.createElement("iframe",{id:"taskJupyterIframe",width:"100%",height:"100%",src:X}),c.a.createElement(dt,{visible:g,identifier:w.identifier}))))},wt=le.default=Object(he.a)(function(u){var f=u.loading,h=u.globalSetting;return{globalSetting:h,loading:f}})(ft)}}]);