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.
2 lines
37 KiB
2 lines
37 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([[217],{"EF+S":function(se,ce,w){se.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(se,ce,w){se.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"}},sUu2:function(se,ce,w){"use strict";w.r(ce);var ht=w("T2oS"),Ae=w("W9HT"),pt=w("+L6B"),fe=w("2/Rp"),mt=w("2qtc"),ie=w("kLXV"),_t=w("miYZ"),oe=w("tsqr"),k=w("9og8"),V=w("tJVT"),Ce=w("PpiC"),vt=w("aHsQ"),Ie=w("sGsY"),T=w("q1tI"),l=w.n(T),Fe=w("Ty5D"),de=w("9kvl"),ke=w("m3rI"),ue=w("VTBJ"),Me={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"},Ge=Me,he=w("6VBw"),Le=function(d,h){return T.createElement(he.a,Object(ue.a)(Object(ue.a)({},d),{},{ref:h,icon:Ge}))};Le.displayName="HistoryOutlined";var We=T.forwardRef(Le),Xe={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"},Be=Xe,Te=function(d,h){return T.createElement(he.a,Object(ue.a)(Object(ue.a)({},d),{},{ref:h,icon:Be}))};Te.displayName="SyncOutlined";var Je=T.forwardRef(Te),He=w("GIiI"),$e=w("EF+S"),N=w.n($e),re=w("ErOA");function C(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */C=function(){return u};var u={},d=Object.prototype,h=d.hasOwnProperty,c=typeof Symbol=="function"?Symbol:{},M=c.iterator||"@@iterator",ne=c.asyncIterator||"@@asyncIterator",A=c.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 S(t,e,r,n){var a=e&&e.prototype instanceof J?e:J,i=Object.create(a.prototype),s=new $(n||[]);return i._invoke=function(m,g,o){var f="suspendedStart";return function(y,q){if(f==="executing")throw new Error("Generator is already running");if(f==="completed"){if(y==="throw")throw q;return j()}for(o.method=y,o.arg=q;;){var K=o.delegate;if(K){var z=x(K,o);if(z){if(z===E)continue;return z}}if(o.method==="next")o.sent=o._sent=o.arg;else if(o.method==="throw"){if(f==="suspendedStart")throw f="completed",o.arg;o.dispatchException(o.arg)}else o.method==="return"&&o.abrupt("return",o.arg);f="executing";var D=B(m,g,o);if(D.type==="normal"){if(f=o.done?"completed":"suspendedYield",D.arg===E)continue;return{value:D.arg,done:o.done}}D.type==="throw"&&(f="completed",o.method="throw",o.arg=D.arg)}}}(t,r,s),i}function B(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(n){return{type:"throw",arg:n}}}u.wrap=S;var E={};function J(){}function P(){}function b(){}var H={};_(H,M,function(){return this});var G=Object.getPrototypeOf,O=G&&G(G(I([])));O&&O!==d&&h.call(O,M)&&(H=O);var R=b.prototype=J.prototype=Object.create(H);function Z(t){["next","throw","return"].forEach(function(e){_(t,e,function(r){return this._invoke(e,r)})})}function U(t,e){function r(a,i,s,m){var g=B(t[a],t,i);if(g.type!=="throw"){var o=g.arg,f=o.value;return f&&typeof f=="object"&&h.call(f,"__await")?e.resolve(f.__await).then(function(y){r("next",y,s,m)},function(y){r("throw",y,s,m)}):e.resolve(f).then(function(y){o.value=y,s(o)},function(y){return r("throw",y,s,m)})}m(g.arg)}var n;this._invoke=function(a,i){function s(){return new e(function(m,g){r(a,i,m,g)})}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=B(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 te(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 $(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(te,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:j}}function j(){return{value:void 0,done:!0}}return P.prototype=b,_(R,"constructor",b),_(b,"constructor",P),P.displayName=_(b,A,"GeneratorFunction"),u.isGeneratorFunction=function(t){var e=typeof t=="function"&&t.constructor;return!!e&&(e===P||(e.displayName||e.name)==="GeneratorFunction")},u.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,_(t,A,"GeneratorFunction")),t.prototype=Object.create(R),t},u.awrap=function(t){return{__await:t}},Z(U.prototype),_(U.prototype,ne,function(){return this}),u.AsyncIterator=U,u.async=function(t,e,r,n,a){a===void 0&&(a=Promise);var i=new U(S(t,e,r,n),a);return u.isGeneratorFunction(e)?i:i.next().then(function(s){return s.done?s.value:i.next()})},Z(R),_(R,A,"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,$.prototype={constructor:$,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,f){return s.type="throw",s.arg=e,r.next=o,f&&(r.method="next",r.arg=void 0),!!f}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 m=h.call(i,"catchLoc"),g=h.call(i,"finallyLoc");if(m&&g){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(m){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!g)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 Ye(u){return pe.apply(this,arguments)}function pe(){return pe=Object(k.a)(C().mark(function u(d){return C().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",Object(re.a)("/api/jupyters/save_with_tpi.json",{method:"Get",params:d}));case 1:case"end":return c.stop()}},u)})),pe.apply(this,arguments)}function xe(u){return me.apply(this,arguments)}function me(){return me=Object(k.a)(C().mark(function u(d){return C().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",Object(re.a)("/api/tasks/".concat(d.identifier,"/jupyter.json"),{method:"Get",params:d}));case 1:case"end":return c.stop()}},u)})),me.apply(this,arguments)}function ze(u){return _e.apply(this,arguments)}function _e(){return _e=Object(k.a)(C().mark(function u(d){return C().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",Object(re.a)("/api/jupyters/get_info_with_tpi.json",{method:"Get",params:d}));case 1:case"end":return c.stop()}},u)})),_e.apply(this,arguments)}function Ve(u){return ve.apply(this,arguments)}function ve(){return ve=Object(k.a)(C().mark(function u(d){return C().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",Object(re.a)("/api/jupyters/timeinfo_with_tpi.json",{method:"Get",params:d}));case 1:case"end":return c.stop()}},u)})),ve.apply(this,arguments)}function Qe(u){return Ee.apply(this,arguments)}function Ee(){return Ee=Object(k.a)(C().mark(function u(d){return C().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",Object(re.a)("/api/jupyters/reset_with_tpi.json",{method:"Get",params:d}));case 1:case"end":return c.stop()}},u)})),Ee.apply(this,arguments)}function Ze(u){return ye.apply(this,arguments)}function ye(){return ye=Object(k.a)(C().mark(function u(d){return C().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",Object(re.a)("/api/jupyters/active_with_tpi.json",{method:"Get",params:d}));case 1:case"end":return c.stop()}},u)})),ye.apply(this,arguments)}function Ke(u){return ge.apply(this,arguments)}function ge(){return ge=Object(k.a)(C().mark(function u(d){return C().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",Object(re.a)("/api/myshixuns/".concat(d.identifier,"/sync_code.json"),{method:"Post",params:d}));case 1:case"end":return c.stop()}},u)})),ge.apply(this,arguments)}function qe(u){return we.apply(this,arguments)}function we(){return we=Object(k.a)(C().mark(function u(d){return C().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",Object(re.a)("/api/shixuns/".concat(d.identifier,"/get_data_sets.json"),{method:"Get",params:d}));case 1:case"end":return c.stop()}},u)})),we.apply(this,arguments)}var Et=w("bbsP"),et=w("/wGt"),tt={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"},rt=tt,Pe=function(d,h){return T.createElement(he.a,Object(ue.a)(Object(ue.a)({},d),{},{ref:h,icon:rt}))};Pe.displayName="FileTextOutlined";var nt=T.forwardRef(Pe),Re=w("P5Jw"),at=w("RotF"),it=w.n(at),ot=w("Flby"),Q=w.n(ot);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={},d=Object.prototype,h=d.hasOwnProperty,c=typeof Symbol=="function"?Symbol:{},M=c.iterator||"@@iterator",ne=c.asyncIterator||"@@asyncIterator",A=c.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 S(t,e,r,n){var a=e&&e.prototype instanceof J?e:J,i=Object.create(a.prototype),s=new $(n||[]);return i._invoke=function(m,g,o){var f="suspendedStart";return function(y,q){if(f==="executing")throw new Error("Generator is already running");if(f==="completed"){if(y==="throw")throw q;return j()}for(o.method=y,o.arg=q;;){var K=o.delegate;if(K){var z=x(K,o);if(z){if(z===E)continue;return z}}if(o.method==="next")o.sent=o._sent=o.arg;else if(o.method==="throw"){if(f==="suspendedStart")throw f="completed",o.arg;o.dispatchException(o.arg)}else o.method==="return"&&o.abrupt("return",o.arg);f="executing";var D=B(m,g,o);if(D.type==="normal"){if(f=o.done?"completed":"suspendedYield",D.arg===E)continue;return{value:D.arg,done:o.done}}D.type==="throw"&&(f="completed",o.method="throw",o.arg=D.arg)}}}(t,r,s),i}function B(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(n){return{type:"throw",arg:n}}}u.wrap=S;var E={};function J(){}function P(){}function b(){}var H={};_(H,M,function(){return this});var G=Object.getPrototypeOf,O=G&&G(G(I([])));O&&O!==d&&h.call(O,M)&&(H=O);var R=b.prototype=J.prototype=Object.create(H);function Z(t){["next","throw","return"].forEach(function(e){_(t,e,function(r){return this._invoke(e,r)})})}function U(t,e){function r(a,i,s,m){var g=B(t[a],t,i);if(g.type!=="throw"){var o=g.arg,f=o.value;return f&&typeof f=="object"&&h.call(f,"__await")?e.resolve(f.__await).then(function(y){r("next",y,s,m)},function(y){r("throw",y,s,m)}):e.resolve(f).then(function(y){o.value=y,s(o)},function(y){return r("throw",y,s,m)})}m(g.arg)}var n;this._invoke=function(a,i){function s(){return new e(function(m,g){r(a,i,m,g)})}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=B(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 te(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 $(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(te,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:j}}function j(){return{value:void 0,done:!0}}return P.prototype=b,_(R,"constructor",b),_(b,"constructor",P),P.displayName=_(b,A,"GeneratorFunction"),u.isGeneratorFunction=function(t){var e=typeof t=="function"&&t.constructor;return!!e&&(e===P||(e.displayName||e.name)==="GeneratorFunction")},u.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,_(t,A,"GeneratorFunction")),t.prototype=Object.create(R),t},u.awrap=function(t){return{__await:t}},Z(U.prototype),_(U.prototype,ne,function(){return this}),u.AsyncIterator=U,u.async=function(t,e,r,n,a){a===void 0&&(a=Promise);var i=new U(S(t,e,r,n),a);return u.isGeneratorFunction(e)?i:i.next().then(function(s){return s.done?s.value:i.next()})},Z(R),_(R,A,"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,$.prototype={constructor:$,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,f){return s.type="throw",s.arg=e,r.next=o,f&&(r.method="next",r.arg=void 0),!!f}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 m=h.call(i,"catchLoc"),g=h.call(i,"finallyLoc");if(m&&g){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(m){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!g)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 ut=function(d){var h=d.globalSetting,c=d.loading,M=d.dispatch,ne=d.visible,A=d.identifier,_=Object(T.useState)([]),S=Object(V.a)(_,2),B=S[0],E=S[1],J=Object(T.useState)(),P=Object(V.a)(J,2),b=P[0],H=P[1],G=Object(T.useState)(),O=Object(V.a)(G,2),R=O[0],Z=O[1],U=Object(T.useState)(),x=Object(V.a)(U,2),te=x[0],W=x[1],$=Object(T.useState)({page:1,limit:20,identifier:null}),I=Object(V.a)($,2),j=I[0],t=I[1];Object(T.useEffect)(function(){if(!A)return;j.identifier=A,t(j),e(j)},[A]);var e=function(){var n=Object(k.a)(Oe().mark(function a(i){var s,m;return Oe().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,qe(i);case 2:s=o.sent,s&&(E(s.data_sets||[]),W(((m=s.data_sets)===null||m===void 0?void 0:m.length)===20),H(s.data_sets_count),Z(s.folder_name));case 4:case"end":return o.stop()}},a)}));return function(i){return n.apply(this,arguments)}}(),r=function(){j.page=j.page+1,t(j),e(j)};return l.a.createElement(et.a,{placement:"right",closable:!1,mask:!1,visible:ne,className:Q.a.drawerWrap},l.a.createElement("div",{className:Q.a.drawer},l.a.createElement("h2",{className:Q.a.title},l.a.createElement("i",{className:"iconfont icon-base ".concat(Q.a.titleIcon)}),"\u6570\u636E\u96C6"),l.a.createElement("div",{className:Q.a.filePathWrap},l.a.createElement("span",{className:"ml50"},"\u6587\u4EF6\u8DEF\u5F84"),l.a.createElement("div",{className:Q.a.filePathContent},l.a.createElement("span",{className:Q.a.folderName},R),l.a.createElement(Re.CopyToClipboard,{text:R,onCopy:function(){return oe.b.success("\u590D\u5236\u6210\u529F")}},l.a.createElement("span",{className:"".concat(Q.a.copy," current")},"\u590D\u5236\u5730\u5740")))),l.a.createElement("div",{className:Q.a.listWrap},l.a.createElement(it.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(a){return r()},hasMore:te,useWindow:!1},B.map(function(n,a){return l.a.createElement("div",{className:Q.a.item},l.a.createElement("span",{className:Q.a.itemText,title:n.title},l.a.createElement(nt,{style:{color:"#28b887",fontSize:25}}),n.title),l.a.createElement(Re.CopyToClipboard,{text:n.file_path,onCopy:function(){return oe.b.success("\u590D\u5236\u6210\u529F")}},l.a.createElement("span",{className:"".concat(Q.a.copy," current")},"\u590D\u5236\u5730\u5740")))})))))},st=Object(de.a)(function(u){var d=u.loading,h=u.globalSetting;return{globalSetting:h,loading:d}})(ut);function X(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */X=function(){return u};var u={},d=Object.prototype,h=d.hasOwnProperty,c=typeof Symbol=="function"?Symbol:{},M=c.iterator||"@@iterator",ne=c.asyncIterator||"@@asyncIterator",A=c.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 S(t,e,r,n){var a=e&&e.prototype instanceof J?e:J,i=Object.create(a.prototype),s=new $(n||[]);return i._invoke=function(m,g,o){var f="suspendedStart";return function(y,q){if(f==="executing")throw new Error("Generator is already running");if(f==="completed"){if(y==="throw")throw q;return j()}for(o.method=y,o.arg=q;;){var K=o.delegate;if(K){var z=x(K,o);if(z){if(z===E)continue;return z}}if(o.method==="next")o.sent=o._sent=o.arg;else if(o.method==="throw"){if(f==="suspendedStart")throw f="completed",o.arg;o.dispatchException(o.arg)}else o.method==="return"&&o.abrupt("return",o.arg);f="executing";var D=B(m,g,o);if(D.type==="normal"){if(f=o.done?"completed":"suspendedYield",D.arg===E)continue;return{value:D.arg,done:o.done}}D.type==="throw"&&(f="completed",o.method="throw",o.arg=D.arg)}}}(t,r,s),i}function B(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(n){return{type:"throw",arg:n}}}u.wrap=S;var E={};function J(){}function P(){}function b(){}var H={};_(H,M,function(){return this});var G=Object.getPrototypeOf,O=G&&G(G(I([])));O&&O!==d&&h.call(O,M)&&(H=O);var R=b.prototype=J.prototype=Object.create(H);function Z(t){["next","throw","return"].forEach(function(e){_(t,e,function(r){return this._invoke(e,r)})})}function U(t,e){function r(a,i,s,m){var g=B(t[a],t,i);if(g.type!=="throw"){var o=g.arg,f=o.value;return f&&typeof f=="object"&&h.call(f,"__await")?e.resolve(f.__await).then(function(y){r("next",y,s,m)},function(y){r("throw",y,s,m)}):e.resolve(f).then(function(y){o.value=y,s(o)},function(y){return r("throw",y,s,m)})}m(g.arg)}var n;this._invoke=function(a,i){function s(){return new e(function(m,g){r(a,i,m,g)})}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=B(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 te(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 $(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(te,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:j}}function j(){return{value:void 0,done:!0}}return P.prototype=b,_(R,"constructor",b),_(b,"constructor",P),P.displayName=_(b,A,"GeneratorFunction"),u.isGeneratorFunction=function(t){var e=typeof t=="function"&&t.constructor;return!!e&&(e===P||(e.displayName||e.name)==="GeneratorFunction")},u.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,_(t,A,"GeneratorFunction")),t.prototype=Object.create(R),t},u.awrap=function(t){return{__await:t}},Z(U.prototype),_(U.prototype,ne,function(){return this}),u.AsyncIterator=U,u.async=function(t,e,r,n,a){a===void 0&&(a=Promise);var i=new U(S(t,e,r,n),a);return u.isGeneratorFunction(e)?i:i.next().then(function(s){return s.done?s.value:i.next()})},Z(R),_(R,A,"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,$.prototype={constructor:$,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,f){return s.type="throw",s.arg=e,r.next=o,f&&(r.method="next",r.arg=void 0),!!f}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 m=h.call(i,"catchLoc"),g=h.call(i,"finallyLoc");if(m&&g){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(m){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!g)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=Ie.a.Countdown,ee;(function(u){u[u.LoadFail=1]="LoadFail",u[u.ReLoad=2]="ReLoad",u[u.Success=3]="Success"})(ee||(ee={}));var ct=function(d){var h,c,M=d.globalSetting,ne=d.loading,A=d.dispatch,_=Object(Ce.a)(d,["globalSetting","loading","dispatch"]),S=Object(Fe.m)(),B=Object(T.useState)(!0),E=Object(V.a)(B,2),J=E[0],P=E[1],b=Object(T.useRef)(!0),H=Object(T.useState)({}),G=Object(V.a)(H,2),O=G[0],R=G[1],Z=Object(T.useState)(),U=Object(V.a)(Z,2),x=U[0],te=U[1],W=Object(T.useRef)(),$=Object(T.useState)(ee.Success),I=Object(V.a)($,2),j=I[0],t=I[1],e=Object(T.useState)(),r=Object(V.a)(e,2),n=r[0],a=r[1],i=Object(T.useState)(),s=Object(V.a)(i,2),m=s[0],g=s[1],o=Object(T.useState)(!1),f=Object(V.a)(o,2),y=f[0],q=f[1];Object(T.useEffect)(function(){return A({type:"globalSetting/headerFooterToggle",payload:!1}),function(){A({type:"globalSetting/headerFooterToggle",payload:!0})}},[]),Object(T.useEffect)(function(){return window.addEventListener("message",K),function(){window.removeEventListener("message",K)}},[]),Object(T.useEffect)(function(){D(),Se()},[S.identifier]);var K=function(L){(L==null?void 0:L.data)==="jupytermessage"&&b.current&&(b.current=!1,z(),setTimeout(function(){return b.current=!0},500))},z=function(){var F=Object(k.a)(X().mark(function L(){var v;return X().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,Ye({identifier:S.identifier,jupyter_port:W.current});case 2:v=p.sent,v.status===0&&oe.b.success("\u4FDD\u5B58\u6210\u529F!");case 4:case"end":return p.stop()}},L)}));return function(){return F.apply(this,arguments)}}(),D=function(){var F=Object(k.a)(X().mark(function L(){var v;return X().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,xe({identifier:S.identifier});case 2:v=p.sent,v&&R(v);case 4:case"end":return p.stop()}},L)}));return function(){return F.apply(this,arguments)}}(),Se=function(){var F=Object(k.a)(X().mark(function L(){var v;return X().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,ze({identifier:S.identifier});case 2:if(v=p.sent,P(!1),!(v==null?void 0:v.url)){p.next=10;break}return je(),te(v.url),W.current=v.port,t(ee.Success),p.abrupt("return");case 10:v.url===-1?t(ee.LoadFail):t(ee.ReLoad);case 11:case"end":return p.stop()}},L)}));return function(){return F.apply(this,arguments)}}(),je=function(){var F=Object(k.a)(X().mark(function L(){var v;return X().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,Ve({identifier:S.identifier});case 2:if(v=p.sent,!((v==null?void 0:v.status)!==0)){p.next=5;break}return p.abrupt("return");case 5:if(v==null?void 0:v.useSeconds){p.next=8;break}return Ne(),p.abrupt("return");case 8:(v==null?void 0:v.remainingSeconds)&&(a(Date.now()+v.remainingSeconds*1e3),g(v.remainingSeconds-300<=0?Date.now()+1e3:Date.now()+(v.remainingSeconds-300)*1e3));case 9:case"end":return p.stop()}},L)}));return function(){return F.apply(this,arguments)}}(),Ne=function(){le(!0),P(!0),ie.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(){Ue()},onCancel:function(){le(!1),P(!1)}})},Ue=function(){var F=Object(k.a)(X().mark(function L(){var v;return X().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,Qe({identifier:S.identifier});case 2:if(v=p.sent,!((v==null?void 0:v.status)!==0)){p.next=5;break}return p.abrupt("return");case 5:oe.b.success("\u91CD\u7F6E\u6210\u529F!"),P(!1),setTimeout(function(){return window.location.reload()},300);case 8:case"end":return p.stop()}},L)}));return function(){return F.apply(this,arguments)}}(),lt=function(){ie.a.destroyAll(),ie.a.confirm({centered:!0,title:"\u670D\u52A1\u4E2D\u65AD\u63D0\u9192",content:l.a.createElement("div",{className:"tc font14"},"jupyter\u5C06\u4E8E",l.a.createElement("span",null,l.a.createElement(be,{value:n,format:"HH:mm:ss",onFinish:De})),"\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 L=Object(k.a)(X().mark(function ae(){var p;return X().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return Y.next=2,Ze({identifier:S.identifier});case 2:if(p=Y.sent,!(p.status===0)){Y.next=7;break}return Y.next=6,je();case 6:oe.b.success("\u5EF6\u957F\u6210\u529F!");case 7:case"end":return Y.stop()}},ae)}));function v(){return L.apply(this,arguments)}return v}()})},De=function(){ie.a.destroyAll(),ie.a.confirm({centered:!0,title:"\u5012\u8BA1\u65F6\u622A\u6B62",content:l.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(){Ue()}})},le=function(L){var v=document.getElementById("taskJupyterIframe");if(!v)return;L?v.contentWindow.postMessage("stopParent","*"):v.contentWindow.postMessage("clonsParent","*")},ft=function(){P(!0),le(!0),ie.a.confirm({centered:!0,title:"\u91CD\u7F6E\u5B9E\u8BAD",content:l.a.createElement("div",{className:"tc font14"},"\u4F60\u5728\u672C\u6587\u4EF6\u4E2D\u4FEE\u6539\u7684\u5185\u5BB9\u5C06\u4E22\u5931,",l.a.createElement("br",null),"\u662F\u5426\u786E\u5B9A\u91CD\u65B0\u52A0\u8F7D\u521D\u59CB\u4EE3\u7801\uFF1F"),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var L=Object(k.a)(X().mark(function ae(){var p;return X().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return Y.next=2,Ke({identifier:S.identifier});case 2:if(p=Y.sent,!(p.status!==0)){Y.next=5;break}return Y.abrupt("return");case 5:oe.b.success("\u91CD\u7F6E\u6210\u529F"),P(!1),setTimeout(function(){return window.location.reload()},300);case 8:case"end":return Y.stop()}},ae)}));function v(){return L.apply(this,arguments)}return v}(),onCancel:function(){le(!1),P(!1)}})};return l.a.createElement(Ae.a,{spinning:J,tip:"\u52A0\u8F7D\u4E2D..."},l.a.createElement("section",{className:N.a.bg},l.a.createElement("header",{className:N.a.header},l.a.createElement("div",{className:N.a.user},l.a.createElement("img",{src:"".concat(ke.a.IMG_SERVER,"/images/").concat(O==null||((h=O.user)===null||h===void 0)?void 0:h.image_url),alt:"\u7528\u6237\u5934\u50CF"}),l.a.createElement("span",{className:"ml10"},O==null||((c=O.user)===null||c===void 0)?void 0:c.name)),l.a.createElement("div",{className:N.a.titleWrap},l.a.createElement("span",{className:N.a.title},O==null?void 0:O.name),l.a.createElement("span",null,l.a.createElement(be,{value:n,format:"HH:mm:ss",onFinish:De}),l.a.createElement("span",{className:N.a.endTimeWrap},m&&l.a.createElement(be,{value:m,format:"HH:mm:ss",onFinish:lt})))),l.a.createElement("div",{className:N.a.actionWrap},l.a.createElement(fe.a,{icon:l.a.createElement(We,null),className:"".concat(N.a.colorGray," font14"),type:"link",onClick:ft},"\u91CD\u7F6E\u5B9E\u8BAD"),l.a.createElement(fe.a,{icon:l.a.createElement(Je,null),className:"".concat(N.a.colorGray," font14"),type:"link",onClick:Ne},"\u91CD\u7F6E\u73AF\u5883"),l.a.createElement(fe.a,{icon:l.a.createElement(He.a,null),className:"".concat(N.a.colorGray," font14"),type:"link",onClick:function(){return de.c.push("/shixuns/".concat(O.identifier,"/challenges"))}},"\u9000\u51FA\u5B9E\u8BAD"))),l.a.createElement("main",{className:N.a.main},l.a.createElement("div",{className:"".concat(N.a.dataSetButton," ").concat(y?N.a.dataSetOpen:""),onClick:function(){return q(!y)}},l.a.createElement("span",{className:N.a.dataSetText},"\u6570\u636E\u96C6")),j===ee.LoadFail&&l.a.createElement("div",{className:N.a.loadFail}," "),j===ee.ReLoad&&l.a.createElement("div",{className:N.a.reload},l.a.createElement("div",{className:N.a.failWrap},l.a.createElement("i",{className:"iconfont icon-jiazaishibai1 ".concat(N.a.failIcon)}),l.a.createElement("p",{className:"font12"},"\u52A0\u8F7D\u5B9E\u8BAD\u5931\u8D25\uFF0C",l.a.createElement("span",{className:N.a.failReload,onClick:Se},"\u91CD\u65B0\u52A0\u8F7D")))),j===ee.Success&&l.a.createElement("iframe",{id:"taskJupyterIframe",width:"100%",height:"100%",src:x}),l.a.createElement(st,{visible:y,identifier:O.identifier}))))},yt=ce.default=Object(de.a)(function(u){var d=u.loading,h=u.globalSetting;return{globalSetting:h,loading:d}})(ct)}}]);
|