diff --git a/umi.b50aa3e0.js b/umi.57e35e81.js
similarity index 99%
rename from umi.b50aa3e0.js
rename to umi.57e35e81.js
index e7fed4d2f8..22dacfb6aa 100644
--- a/umi.b50aa3e0.js
+++ b/umi.57e35e81.js
@@ -99,7 +99,7 @@ http://j.mp/37Fkd5Q
`)}catch(N){return null}},R=(M,N)=>k(void 0,null,function*(){if(M.status>=200&&M.status<300)return M;const V=T[M.status]||M.statusText;let te;var se=M.json();yield se.then((pe,he)=>{setTimeout(()=>{let Ye=(0,o.getDvaApp)()},400),te=pe.message,window.showNetworkErrorTip(pe.message||`\u8BF7\u6C42\u9519\u8BEF ${M.status}: ${M.message}`),r.ZP.error({style:{wordBreak:"break-all"},message:pe.message||`\u8BF7\u6C42\u9519\u8BEF ${M.status}: ${M.message}`,description:pe.message?"":V})});const ve=new Error(V);throw ve.name=M.status,ve.response=M,{data:M,code:M.status,message:te||V}}),Z=(M,N)=>{const V=M.headers.get("Content-Type");return V&&V.match(/application\/json/i)&&M.clone().text().then(()=>{}),M};function $(M){try{return decodeURIComponent(M),decodeURIComponent(encodeURIComponent(M))===M}catch(N){return!1}}const K=M=>{M=M||{};let N="";for(let V in M)typeof M[V]=="object"?Array.isArray(M[V])&&M[V].forEach((te,se)=>{N+="&"+V+"[]="+te}):M[V]!==void 0&&(N+="&"+V+"="+($(M[V])?M[V]:encodeURIComponent(M[V])));return N.substr(1)};function G(M,N,V,te){N.method||(N.method="get"),N.method=N.method.toUpperCase(),N.mode="cors";const se=I({},N),{user:ve}=(0,o.getDvaApp)()._store.getState(),{userInfo:pe}=ve,he=M+(se.body?JSON.stringify(se.body):""),Ye=u().sha256().update(he).digest("hex"),Ke={credentials:"include",withCredentials:!0},dt={};pe!=null&&pe.login&&(dt.zzud=pe==null?void 0:pe.login,pe!=null&&pe.school_id&&(dt.zzsud=pe==null?void 0:pe.school_id),se.params=I(I({},se.params||{}),dt));let ft=I(I({},Ke),JSON.parse(JSON.stringify(se)));(ft.method==="POST"||ft.method==="PUT"||ft.method==="PATCH"||ft.method==="DELETE")&&(V?(ft.headers=P(I({},ft.headers),{Origin:location.origin,"Pc-Authorization":(0,f.ej)("_educoder_session")}),ft.body=se.body):(ft.headers=I({Accept:"application/json","Content-Type":"application/json; charset=utf-8","Pc-Authorization":(0,f.ej)("_educoder_session"),Origin:location.origin},ft.headers),ft.body=JSON.stringify(se.body))),ft.method=="GET"?(ft.headers=P(I({Accept:"application/json","Content-Type":"application/json; charset=utf-8"},ft.headers),{Origin:location.origin,"Pc-Authorization":(0,f.ej)("_educoder_session")}),se.params&&K(se.params)&&(M+="?"+K(se.params))):dt.zzud&&(M+="?"+K(I({},dt)));const lt=se.expirys&&60;let Xe;(rt=>{rt.json="application/json;charset=UTF-8",rt.form="application/x-www-form-urlencoded; charset=UTF-8"})(Xe||(Xe={}));let ge;(rt=>{rt.get="GET",rt.post="POST"})(ge||(ge={}));const Oe=rt=>k(this,null,function*(){const Et=yield rt.arrayBuffer();let Lt;const kt=new Blob([Et]);try{Lt=rt.headers.get("Content-Disposition").split(";")[1].replace("filename=","").replace(/[\s+,\',\",\‘,\’,\“,\”,\<,\>,\《,\》]/g,"")}catch(je){Lt="userfiles.zip"}const De=document.createElement("a"),Qe=window.URL.createObjectURL(kt),_t=Lt;return De.href=Qe,De.download=_t,De.click(),window.URL.revokeObjectURL(Qe),Et});let Le=t.Z.API_SERVER;return(window.ENV==="dev"||M.startsWith("http"))&&(Le=""),ft.method=="GET"&&ft.params&&Object.keys(ft.params).map(rt=>{if(ft.params[rt]&&!Array.isArray(ft.params[rt]))try{ft.params[rt]=encodeURIComponent(decodeURIComponent(ft.params[rt]))}catch(Et){ft.params[rt]=encodeURIComponent(ft.params[rt])}}),(0,f.Ec)(ft,M),te&&(Le=""),fetch(Le+M,ft).then(rt=>R(rt,I({url:t.Z.API_SERVER+M},ft))).then(rt=>Z(rt,Ye)).then(rt=>k(this,null,function*(){var Et,Lt,kt,De;try{const _t=rt.headers.get("cs");_t&&(0,f.d8)("_educoder_session",_t,1)}catch(_t){}if(rt.status===204)return rt.text();let Qe;if(rt.headers.get("content-type").indexOf("application/json")>-1){Qe=yield rt.json();try{Qe=JSON.parse(A(Qe))}catch(_t){}}else ft.headers["Content-Type"]==="application/xml"?Qe=yield rt.text():(Et=se.body)!=null&&Et.autoDownload||(Lt=se.params)!=null&&Lt.autoDownload?Qe=yield Oe(rt):Qe=yield rt.arrayBuffer();try{Qe.status===401&&(!((kt=ft.params)!=null&&kt.hidePopLogin)||!((De=ft.body)!=null&&De.hidePopLogin))&&(0,o.getDvaApp)()._store.dispatch({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),Qe.status===402&&(localStorage.getItem("addinfo")==="2"?(0,o.getDvaApp)()._store.dispatch({type:"shixunHomeworks/setActionTabs",payload:{key:"\u586B\u5145\u4FE1\u606F\u5F39\u7A97"}}):(D=D||n.default.confirm({visible:!1,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88"}),D.update({centered:!0,visible:!0,title:"\u63D0\u793A",content:"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{o.history.push("/account/profile/edit")}})))}catch(_t){console.log("fetcherr",_t)}return B(Qe,M),Qe})).catch(rt=>{try{const Et=rt.code;if(rt instanceof TypeError&&window.showNetworkErrorTip(`${M}${rt.message}`),Et){if(Et===401){(0,o.getDvaApp)()._store.dispatch({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}});return}B(rt,M)}else M.includes("/file/filePatchMerge")?(0,o.getDvaApp)()._store.dispatch({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5206\u7247\u4E13\u7528504",params:ft.body}}):rt.message!=="403"&&window.showNetworkErrorTip(`${M}${rt.message}`);return rt}catch(Et){}})}let q=!1,L=!1;const B=(M,N)=>{var V,te,se;if(M.status==-6&&!L){L=!0,(0,f.d8)("_educoder_session","logout",1),(0,f.m5)(),setTimeout(()=>L=!1,500),n.default.info({title:"\u7CFB\u7EDF\u901A\u77E5",content:M.message,okText:"\u77E5\u9053\u4E86",maskStyle:{background:"#000"},onOk:()=>{window.location.reload()}});return}if(M.status==-7){L=!0,setTimeout(()=>L=!1,500);let pe="";(V=M==null?void 0:M.data)!=null&&V.exercise_list&&((se=(te=M==null?void 0:M.data)==null?void 0:te.exercise_list)==null||se.map(he=>{pe+=`\u300A${he.exercise_name}\u300B`})),n.default.info({title:"\u63D0\u793A",content:l.createElement("div",{id:"fetchStatus7",className:"fetchStatus7"},""),maskClosable:!1,closeIcon:!1,width:550,maskStyle:{background:"#000"},okText:"\u8FD4\u56DE\u9996\u9875",onOk:()=>{window.location.href="/"}}),setTimeout(()=>{document.getElementById("fetchStatus7").innerHTML=`
\u60A8\u5F53\u524D\u6709\u6B63\u5728\u8FDB\u884C\u7684\u8003\u8BD5 ${pe} \uFF0C\u8BF7\u5728\u8003\u8BD5\u7ED3\u675F\u540E\u8BBF\u95EE\u8BE5\u9875\u9762
`},500);return}if((M.status==-1||M.status==-2||M.status==-102||M.status>400)&&M.status!=403&&!L){L=!0,setTimeout(()=>L=!1,500),a.ZP.warning({content:M.message,key:"message-key"});return}const ve={403:"/403",404:"/404",500:"/500"};if(ve[M.status]&&!q){const{user:pe}=(0,o.getDvaApp)()._store.getState(),{userInfo:he}=pe;throw window.location.pathname.indexOf("/users")>-1&&document.domain==="kepukehuan.educoder.net"&&(q=!0),setTimeout(()=>q=!1,500),sessionStorage.setItem("errorStatus",JSON.stringify(M)),Object.values(ve).includes(window.location.pathname)?console.log("\u5F53\u524D\u8DEF\u5F84\u5B58\u5728\u4E8E mapping \u4E2D, \u4E0D\u518D\u6267\u884C\u8DF3\u8F6C"):location.replace(ve[M.status]),new Error("403")}};function U(M,N){return G(`/api/${M}`,{method:"Get",params:N||{}})}function Y(M,N){return G(`/${M}`,{method:"Get",params:N})}function H(M,N){return G(`/api/${M}`,{method:"Post",body:I({},N)})}function j(M,N){return G(`/api/${M}`,{method:"Put",body:I({},N)})}function Q(M,N){return G(`/api/${M}`,{method:"delete",body:I({},N||{})})}},11851:function(i,d,e){"use strict";e.d(d,{Bn:function(){return n},hw:function(){return r},mi:function(){return t}});const t="WlRsa1pEVmlORE15TW1ZNVpqZGtPRE5rTURBNVpHVTVZbVpoTVRBd1l6TT0=",r="TW1VelpHRXdObUZsTWpaaVlUbG1OelpoTldRNFpETTFOVGMwTm1ZeVptVT0=",n="T1RkaE1XWTRaalJoTUdaaE9HUmxaR016T0RGa05XTTNPRFkwTkdJeVpUQT0="},51257:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{AS:function(){return vtrsKey},BO:function(){return NewAntdDisabledDate},BR:function(){return aiReviewConfigformatChecks},Br:function(){return getBlob},DH:function(){return timego},Dk:function(){return setDocumentTitle},Dw:function(){return onPreviewImage},EJ:function(){return HighLightedContent},EM:function(){return toChineseNumber},EN:function(){return preciseCalculation},Ec:function(){return setHeader},FH:function(){return downLoadFile},G5:function(){return sendAppStatus},G7:function(){return handleValidatorNickName},HJ:function(){return handleValidatorName},I9:function(){return RomanNumber},IS:function(){return isWechatBrowser},Il:function(){return setThreeComponent},JL:function(){return formatHomeWorkStatusToName},Jn:function(){return getImageUrl},L4:function(){return PollsStatus},L9:function(){return trackEvent},LR:function(){return download},Ll:function(){return checkIsClientExam},M:function(){return setmiyah},M2:function(){return randomArray},NY:function(){return setUrlQuery},Nd:function(){return downLoadLink},Oo:function(){return getCategoryName},Or:function(){return toWechatLogin},PF:function(){return formatRandomPaperDatas},Pq:function(){return cutName},Q8:function(){return disabledDate},QB:function(){return timeContrast},QE:function(){return releaseRuleDataAdjust},QH:function(){return downLoadFileIframe},Qq:function(){return JudgeSort},RD:function(){return bytesToSize},RG:function(){return copyTextFuc},Sp:function(){return rangeNumber},Sv:function(){return downloadFile},Tv:function(){return ImgSrcConvert},U6:function(){return HalfPastOne},UQ:function(){return HomeWorkDetailStatus},Uw:function(){return CommonWorkStatus},VV:function(){return StatusClassroomsTags},Vf:function(){return domScrollToTop},W:function(){return isUnOrNull},WX:function(){return isLocalApp},Y:function(){return HomeWorkCommonDetailStatus},YA:function(){return getHiddenName},ZJ:function(){return toDataUrl},ZR:function(){return GetElementHeight},_g:function(){return getMessagesUrl},_m:function(){return isKepuKehuan},ad:function(){return formatRandomPaperData},b9:function(){return isPc},cX:function(){return localSort},d0:function(){return disabledTime},d8:function(){return setCookie},db:function(){return getFileContentAndUrl},eF:function(){return bindPhone},eR:function(){return validateLength},ej:function(){return getCookie},en:function(){return parseUrl},fX:function(){return buildTree},hi:function(){return getExamRestrictionInfo},hv:function(){return NewAntdDisabledTime},i7:function(){return isChrome},j1:function(){return StatusGraduationProjectTags},jh:function(){return educationList},ju:function(){return ExerciseStatus},jz:function(){return replaceParamVal},k3:function(){return scrollToTop},kk:function(){return pointerEvents},lC:function(){return HomeWorkListStatus},lF:function(){return toWNumber},li:function(){return toTimeFormat},m5:function(){return clearAllCookies},nr:function(){return startExercise},oP:function(){return getJsonFromUrl},oV:function(){return ZimuSort},og:function(){return formatRate},oi:function(){return checkLocalOrPublicIp},pE:function(){return addJumping},pp:function(){return findEndWhitespace},qZ:function(){return arrTrans},qd:function(){return DayHalfPastOne},rK:function(){return HomeWorkShixunListStatus},rU:function(){return showTotal},rz:function(){return moveArray},s2:function(){return isMobileDevice},tP:function(){return cutFileName},tw:function(){return getTwoDecimalPlaces},uD:function(){return dealUploadChange},vA:function(){return HomeWorkShixunDetailStatus},vB:function(){return exerciseTips},xg:function(){return openNewWindow},y3:function(){return getBase64},yC:function(){return compareVersion}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(59301),_utils_authority__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(48790),antd__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(6767),antd__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(62957),antd__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(77019),antd__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(5269),_components_Exercise_ip__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(6383),_service_exercise__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(81722),_contentType__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(77935),umi__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(25690),md5__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(93735),md5__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(md5__WEBPACK_IMPORTED_MODULE_6__),_env__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(346),_components_mediator__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(49535),crypto_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(28209),crypto_js__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(crypto_js__WEBPACK_IMPORTED_MODULE_9__),_key__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(11851),moment__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(61186),moment__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_10__),dayjs_plugin_customParseFormat__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(33656),dayjs_plugin_customParseFormat__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(dayjs_plugin_customParseFormat__WEBPACK_IMPORTED_MODULE_11__),uuid__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(1012),__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(i,d,e)=>d in i?__defProp(i,d,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[d]=e,__spreadValues=(i,d)=>{for(var e in d||(d={}))__hasOwnProp.call(d,e)&&__defNormalProp(i,e,d[e]);if(__getOwnPropSymbols)for(var e of __getOwnPropSymbols(d))__propIsEnum.call(d,e)&&__defNormalProp(i,e,d[e]);return i},__spreadProps=(i,d)=>__defProps(i,__getOwnPropDescs(d)),__async=(i,d,e)=>new Promise((t,r)=>{var n=u=>{try{s(e.next(u))}catch(l){r(l)}},a=u=>{try{s(e.throw(u))}catch(l){r(l)}},s=u=>u.done?t(u.value):Promise.resolve(u.value).then(n,a);s((e=e.apply(i,d)).next())}),_a,_b;moment__WEBPACK_IMPORTED_MODULE_10___default().extend(dayjs_plugin_customParseFormat__WEBPACK_IMPORTED_MODULE_11___default());const GetElementHeight=(i,d="px",e,t=!1)=>{if(!i)return 0;const r=t?i.scrollHeight:i.offsetHeight;if(d==="rem"){const n=e?`${e}`:getComputedStyle(document.documentElement).fontSize,a=parseFloat(n);return r/a}return r},HighLightedContent=(i,d=[],e="#2EC25B")=>(typeof d=="string"&&(d=[d]),i.replace(new RegExp(`(${d.join("|")})`,"gi"),`$1`)),parseParams=i=>{i=i||{};let d="";for(let e in i)typeof i[e]=="object"?Array.isArray(i[e])&&i[e].forEach((t,r)=>{d+="&"+e+"[]="+t}):i[e]!==void 0&&(d+="&"+e+"="+i[e]);return d.substr(1)},getKey=i=>window.atob(window.atob(i));function bytesToSize(i){var d=["Bytes","KB","MB","GB","TB"];if(i==0)return"0 Byte";var e=parseInt(""+Math.floor(Math.log(i)/Math.log(1024)),10);return(i/Math.pow(1024,e)).toFixed(1)+" "+d[e]}const getTwoDecimalPlaces=i=>Math.round(Math.round(i*1e5)/1e3*100)/100,NewAntdDisabledDate=(i,d=null)=>{const e=imoment__WEBPACK_IMPORTED_MODULE_10___default()(d==null?void 0:d.endTime).endOf("day"),r=i{const e=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()(i).format("HH")),t=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()(i).format("mm")),r=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()().format("HH")),n=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()().format("mm")),a=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()().format("ss"));function s(u,l){const o=[];for(let f=u;fs(0,r),disabledMinutes:()=>s(0,n)};if(d!=null&&d.compared){const u=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()(d==null?void 0:d.compared).format("HH")),l=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()(d==null?void 0:d.compared).format("mm")),o=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()(d==null?void 0:d.compared).format("ss"));return moment__WEBPACK_IMPORTED_MODULE_10___default()(i).isSame(moment__WEBPACK_IMPORTED_MODULE_10___default()(d==null?void 0:d.compared),"day")?{disabledHours:()=>s(0,u),disabledMinutes:()=>e<=u?s(0,l):[]}:void 0}if(moment__WEBPACK_IMPORTED_MODULE_10___default()(i).isSame(moment__WEBPACK_IMPORTED_MODULE_10___default()(),"day"))return{disabledHours:()=>s(0,r),disabledMinutes:()=>moment__WEBPACK_IMPORTED_MODULE_10___default()(i).isSame(moment__WEBPACK_IMPORTED_MODULE_10___default()(),"hour")&&e<=r?s(0,n):[]}},disabledDate=(i,d,e,t)=>{t=typeof t=="string"?moment__WEBPACK_IMPORTED_MODULE_10___default()(t):t;const r=t?i<(t==null?void 0:t.startOf("day")):imoment__WEBPACK_IMPORTED_MODULE_10___default()(d).endOf("day"),a=i{const e=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()(i).format("HH")),t=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()().format("HH")),r=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()().format("mm"));function n(a,s){const u=[];for(let l=a;ln(0,t),disabledMinutes:()=>n(0,r)};if(d){const a=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()(d).format("HH")),s=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()(d).format("mm"));return moment__WEBPACK_IMPORTED_MODULE_10___default()(i).isSame(moment__WEBPACK_IMPORTED_MODULE_10___default()(d),"day")?{disabledHours:()=>n(0,a),disabledMinutes:()=>e<=a?n(0,s):[]}:void 0}if(moment__WEBPACK_IMPORTED_MODULE_10___default()(i).isSame(moment__WEBPACK_IMPORTED_MODULE_10___default()(),"day"))return{disabledHours:()=>n(0,t),disabledMinutes:()=>moment__WEBPACK_IMPORTED_MODULE_10___default()(i).isSame(moment__WEBPACK_IMPORTED_MODULE_10___default()(),"hour")&&e<=t?n(0,r):[]}},preciseCalculation=(i,d,e)=>{typeof i=="string"&&(i=Number(i)),typeof d=="string"&&(d=Number(d));const t=(i.toString().split(".")[1]||"").length,r=(d.toString().split(".")[1]||"").length,n=Math.max(t,r),a=Math.pow(10,n);return(()=>{switch(e){case"+":return(Math.round(i*a)+Math.round(d*a))/a;case"-":return(Math.round(i*a)-Math.round(d*a))/a;case"*":return Math.round(i*a)*Math.round(d*a)/(a*a);case"/":return Math.round(i*a)/Math.round(d*a);default:throw new Error("\u4E0D\u652F\u6301\u7684\u8FD0\u7B97\u7B26\u53F7")}})()},toWNumber=i=>i/1e4>1?react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,Math.round(i/1e4*100)/100,react__WEBPACK_IMPORTED_MODULE_0__.createElement("i",{className:"font12"},"w")):i,toChineseNumber=i=>{const d=i.toString().replace(/(?=(\d{4})+$)/g,",").split(",").filter(Boolean),e=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],t=["","\u5341","\u767E","\u5343"],r=["","\u4E07","\u4EBF"],n=s=>{let u="";for(let l=0;l{const t=i.splice(d,1)[0];return i.splice(e,0,t),i},ZimuSort=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],JudgeSort=["\u6B63\u786E","\u9519\u8BEF"],RomanNumber=["I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII","XIII","XIV","XV","XVI","XVII","XVIII","XIX","XX"],findEndWhitespace=i=>{if(!i)return"";const d=i.replace(/(?:\r\n|\n)/g,`\x1B[41m\x1B[37m\u21B5\x1B[0m\r
`).replace(/ +$/g,"\x1B[41m \x1B[0m");return console.debug("str:",d,JSON.stringify(i)),d},StatusTags=i=>{const d={\u5DF2\u622A\u6B62:{class:"tag-style bg-pink ml10"},\u63D0\u4EA4\u4E2D:{class:"tag-style bg-blue ml10"},\u8FDB\u884C\u4E2D:{class:"tag-style bg-blue ml10"},\u672A\u53D1\u5E03:{class:"tag-style bgB8B8B8 ml10"},\u8865\u4EA4\u4E2D:{class:"tag-style bg-blue ml10"},\u96C6\u4E2D\u9605\u5377:{class:"tag-style bg-light-orangess ml10soft"}};return i.data&&i.data.map(function(e,t){return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{key:t,className:d[e]&&d[e].class},e)})},formatHomeWorkStatusToName=i=>({[-1]:"\u91CD\u505A\u4E2D",0:"\u672A\u5F00\u542F",1:"\u672A\u901A\u5173",2:"\u6309\u65F6\u901A\u5173"})[i]||"\u8FDF\u4EA4\u901A\u5173",HomeWorkListStatus=i=>{var d,e;const t={[-1]:{name:"\u91CD\u505A\u4E2D",class:"c-orange"},0:{name:"\u672A\u5F00\u542F",class:"c-black"},1:{name:"\u672A\u901A\u5173",class:"c-red"},2:{name:"\u6309\u65F6\u901A\u5173",class:"c-green"},3:{name:"\u8865\u4EA4\u901A\u5173",class:"c-orange"},4:{name:"\u622A\u6B62\u901A\u5173",class:"c-red"}};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:(d=t==null?void 0:t[i.status])==null?void 0:d.class},(e=t==null?void 0:t[i.status])==null?void 0:e.name)},HomeWorkShixunListStatus=i=>{var d,e;const t={[-1]:{name:"\u91CD\u505A\u4E2D",class:"c-orange"},0:{name:"\u672A\u5F00\u542F",class:"c-black"},1:{name:"\u672A\u901A\u5173",class:"c-red"},2:{name:"\u6309\u65F6\u901A\u5173",class:"c-green"},3:{name:"\u8865\u4EA4\u901A\u5173",class:"c-orange"},4:{name:"\u622A\u6B62\u540E\u901A\u5173",class:"c-red"}};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:(d=t==null?void 0:t[i.status])==null?void 0:d.class},(e=t==null?void 0:t[i.status])==null?void 0:e.name)},HomeWorkDetailStatus=i=>{var d,e;const t={[-1]:{name:"\u91CD\u505A\u4E2D",class:"c-orange",color:"#999999"},0:{name:"\u672A\u5F00\u542F",class:"c-black",color:"#999999"},1:{name:"\u672A\u901A\u5173",class:"c-red",color:"#d4443d"},2:{name:"\u6309\u65F6\u901A\u5173",class:"c-green",color:"#57be40"},3:{name:"\u8865\u4EA4\u901A\u5173",class:"c-orange",color:"#f09143"},4:{name:"\u622A\u6B62\u901A\u5173",class:"c-red",color:"#d4443d"}};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{marginLeft:"10px",color:"#fff",background:(d=t==null?void 0:t[i.status])==null?void 0:d.color,borderRadius:"20px",width:"65px",height:"18px",justifyContent:"center",display:"inline-flex",lineHeight:"18px"}},(e=t==null?void 0:t[i.status])==null?void 0:e.name)},HomeWorkShixunDetailStatus=i=>{var d,e;const t={[-1]:{name:"\u91CD\u505A\u4E2D",class:"c-orange",color:"#999999"},0:{name:"\u672A\u5F00\u542F",class:"c-black",color:"#999999"},1:{name:"\u672A\u901A\u5173",class:"c-red",color:"#d4443d"},2:{name:"\u6309\u65F6\u901A\u5173",class:"c-green",color:"#57be40"},3:{name:"\u8865\u4EA4\u901A\u5173",class:"c-orange",color:"#f09143"},4:{name:"\u622A\u6B62\u540E\u901A\u5173",class:"c-red",color:"#d4443d"},5:{name:"\u622A\u6B62\u540E\u8BC4\u6D4B",class:"c-red",color:"#d4443d"}};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{marginLeft:"10px",color:"#fff",background:(d=t==null?void 0:t[i.status])==null?void 0:d.color,borderRadius:"20px",padding:"0 8px",height:"18px",justifyContent:"center",display:"inline-flex",lineHeight:"18px"}},(e=t==null?void 0:t[i.status])==null?void 0:e.name)},HomeWorkCommonDetailStatus=i=>{var d,e;const t={[-1]:{name:"\u91CD\u505A\u4E2D",class:"c-black",color:"#999999"},0:{name:"\u672A\u63D0\u4EA4",class:"c-black",color:"#999999"},1:{name:"\u6309\u65F6\u63D0\u4EA4",class:"c-green",color:"#57be40"},2:{name:"\u5EF6\u65F6\u63D0\u4EA4",class:"c-red",color:"#d4443d"}};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{marginLeft:"10px",color:"#fff",background:(d=t==null?void 0:t[i.status])==null?void 0:d.color,borderRadius:"20px",padding:"0 8px",height:"18px",justifyContent:"center",display:"inline-flex",lineHeight:"18px"}},(e=t==null?void 0:t[i.status])==null?void 0:e.name)},StatusGraduationProjectTags=i=>{const{status:d}=i,e={0:{class:"tag-style bg-blue ml10",name:"\u5F85\u9009\u4E2D"},1:{class:"tag-style bg-blue ml10",name:"\u5F85\u786E\u8BA4"},2:{class:"tag-style bg-pink ml10",name:"\u5DF2\u786E\u8BA4"}};try{return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:e[d].class},e[d].name)}catch(t){console.log("utils.StatusGraduationProjectTags",i.status)}},ExerciseStatus={1:"\u672A\u53D1\u5E03",2:"\u8003\u8BD5\u4E2D",3:"\u5DF2\u622A\u6B62",4:"\u5DF2\u7ED3\u675F",5:"\u96C6\u4E2D\u9605\u5377",99:"\u6A21\u62DF\u8003\u8BD5\u4E2D"},PollsStatus={1:"\u672A\u53D1\u5E03",2:"\u63D0\u4EA4\u4E2D",3:"\u5DF2\u622A\u6B62",4:"\u5DF2\u7ED3\u675F",5:"\u672A\u5F00\u59CB"},StatusClassroomsTags=i=>{let d={\u6A21\u62DF\u8003\u8BD5\u4E2D:{class:"tag-style bg-light-pink ml10"},\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A:{class:"tag-style-fzb ml10 iconfont icon-fangzuobi"},\u516C\u5F00:{class:"tag-style bg-blue ml10"},\u5DF2\u5F00\u542F\u8865\u4EA4:{class:"tag-style bg-green ml10soft"},\u672A\u5F00\u542F\u8865\u4EA4:{class:"tag-style bg-pink ml10soft"},\u672A\u53D1\u5E03:{class:"tag-style bgB8B8B8 ml10soft"},\u672A\u5F00\u59CB:{class:"tag-style bg-c5d6ff ml10soft"},\u533F\u540D\u4F5C\u54C1:{class:"tag-style bg-cyan ml10"},\u5DF2\u9009\u62E9:{class:"tag-style bg-grey-ede ml10"},\u5DF2\u7ED3\u675F:{class:"tag-style bg-grey-ede ml10soft"},\u63D0\u4EA4\u4E2D:{class:"tag-style bg-blue ml10soft"},\u8FDB\u884C\u4E2D:{class:"tag-style bg-blue ml10soft"},\u533F\u8BC4\u4E2D:{class:"tag-style bg-blue ml10"},\u7533\u8BC9\u4E2D:{class:"tag-style bg-blue ml10"},\u8003\u8BD5\u4E2D:{class:"tag-style bg-light-blue ml10"},\u8865\u4EA4\u4E2D:{class:"tag-style bg-blue ml10soft"},\u8BC4\u9605\u4E2D:{class:"tag-style bg-blue ml10"},\u5F85\u9009\u4E2D:{class:"tag-style bg-blue ml10"},\u4EA4\u53C9\u8BC4\u9605\u4E2D:{class:"tag-style bg-light-orange ml10"},\u5DF2\u5F00\u542F\u4EA4\u53C9\u8BC4\u9605:{class:"tag-style bg-lightblue-purple ml10"},\u5F85\u786E\u8BA4:{class:"tag-style bg-lightblue-purple ml10"},\u5F85\u5904\u7406:{class:"tag-style bg-lightblue-purple ml10"},\u79C1\u6709:{class:"tag-style bg-lightblue-purple ml10"},\u672A\u63D0\u4EA4:{class:"tag-style bg-lightblue-purple ml10"},\u5DF2\u786E\u8BA4:{class:"tag-style bg-light-pink ml10"},\u5DF2\u53D1\u5E03:{class:"tag-style bg-light-blue ml10"},\u5DF2\u622A\u6B62:{class:"tag-style bg-light-pink ml10soft"},\u5F00\u53D1\u8BFE\u7A0B:{class:"tag-style bg-orange ml10"},\u5DF2\u5F00\u64AD:{class:"tag-style-border border-green c-green ml10"},\u672A\u5F00\u64AD:{class:"tag-style-border border-light-black ml10"},\u672A\u5F00\u8BFE:{class:"tag-style bg-c5d6ff ml10soft"},\u4E0A\u8BFE\u4E2D:{class:"tag-style bg-blue ml10soft"},\u6309\u65F6\u901A\u5173:{class:"tag-style-border border-light-black ml10"},\u8FDF\u4EA4\u901A\u5173:{class:"tag-style-border border-light-black ml10"},\u672A\u901A\u5173:{class:"tag-style-border border-light-black ml10"},\u672A\u5F00\u542F:{class:"tag-style-border border-light-black ml10"},\u5BFC\u5165:{class:"export ml10"},\u96C6\u4E2D\u9605\u5377:{class:"tag-style bg-light-orangess ml10soft"}};const e={\u672A\u53D1\u5E03:{class:"tag-style bg-C6CED6 ml10soft"},\u672A\u5F00\u59CB:{class:"tag-style bg-C1E2FF ml10soft"},\u8FDB\u884C\u4E2D:{class:"tag-style bg-0152d9 ml10soft"},\u5DF2\u622A\u6B62:{class:"tag-style bg-E53333 ml10soft"},\u63D0\u4EA4\u4E2D:{class:"tag-style bg-0152d9 ml10soft"},\u8865\u4EA4\u4E2D:{class:"tag-style bg-44D7B6 ml10soft"}};i.temporary&&(d=__spreadValues(__spreadValues({},d),e));const t=[];i.is_random&&t.push(react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"tag-style bg-blue ml10"},"\u968F\u673A"));try{i.status&&i.status.map((r,n)=>{t.push(react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:(i==null?void 0:i.style)||[],key:n,className:d[r]&&d[r].class},r))})}catch(r){console.log("utils.status.tag:",r,i.status)}return t},exerciseTips=(i,d)=>{if(i===5||d)return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{backgroundColor:"#f59a23"},className:"tag-style ml5"},"\u96C6\u4E2D\u9605\u5377");if(i===1)return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{backgroundColor:"#B8B8B8"},className:"tag-style ml5"},"\u672A\u5F00\u59CB");if(i===2)return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{backgroundColor:"#007AFF"},className:"tag-style ml5"},"\u8003\u8BD5\u4E2D");if(i===3)return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{backgroundColor:"#FC2D6B"},className:"tag-style ml5"},"\u5DF2\u622A\u6B62");if(i===-1)return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"export ml5"},"\u5BFC\u5165")},WorkStatus=i=>{var d,e;const t={[-1]:{name:"\u91CD\u505A\u4E2D",class:"c-orange"},0:{name:"\u672A\u63D0\u4EA4",class:"c-black"},1:{name:"\u672A\u901A\u5173",class:"c-red"},2:{name:"\u6309\u65F6\u901A\u5173",class:"c-green"},3:{name:"\u8FDF\u4EA4\u901A\u5173",class:"c-orange"}};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:(d=t[i.status])==null?void 0:d.class},(e=t[i.status])==null?void 0:e.name)},CommonWorkStatus=i=>{var d,e;const t={0:{name:"\u672A\u63D0\u4EA4",class:"c-black"},1:{name:"\u6309\u65F6\u63D0\u4EA4",class:"c-green"},2:{name:"\u5EF6\u65F6\u63D0\u4EA4",class:"c-red"},3:{name:"\u90E8\u5206\u63D0\u4EA4",class:"c-green"},4:{name:`\u6309\u65F6\u63D0\u4EA4${i!=null&&i.lineBreak?`
`:""}\uFF08\u6559\u5E08\u63D0\u4EA4\uFF09`,class:"c-green"},5:{name:`\u672A\u63D0\u4EA4${i!=null&&i.lineBreak?`
-`:""}\uFF08\u6559\u5E08\u63D0\u4EA4\uFF09`,class:"c-black"},6:{name:"\u6309\u65F6\u63D0\u4EA4\uFF08\u7EBF\u4E0B\uFF09",class:"c-green"}};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:(d=t[i.status])==null?void 0:d.class},(e=t[i.status])==null?void 0:e.name)},timego=i=>{i=new Date(i).getTime();let d=1e3*60,e=d*60,t=e*24,r="",a=new Date().getTime()-i;if(a<0)return console.log("\u65F6\u95F4\u4E0D\u5BF9\u52B2,\u670D\u52A1\u5668\u521B\u5EFA\u65F6\u95F4\u4E0E\u5F53\u524D\u65F6\u95F4\u4E0D\u540C\u6B65"),r="\u521A\u521A";let s=parseInt(a/t,10),u=parseInt(a/e,10),l=parseInt(a/d,10);return s>30?r=""+timeformat(i,"yyyy-MM-dd"):s>1?r=""+s+"\u5929\u524D":s==1?r="\u6628\u5929":u>=1?r=""+u+"\u5C0F\u65F6\u524D":l>=5?r=""+l+"\u5206\u949F\u524D":r="\u521A\u521A",r};function replaceParamVal(paramName,replaceWith){var oUrl=window.location.href.toString(),re=eval("/("+paramName+"=)([^&]*)/gi"),nUrl=oUrl.replace(re,paramName+"="+replaceWith);window.history.replaceState(null,"",nUrl)}const timeformat=(i,d)=>{typeof i=="string"&&(i.indexOf("T")>=0&&(i=i.replace("T"," ")),i=new Date(Date.parse(i.replace(/-/g,"/")))),i=new Date(i);let e={"M+":i.getMonth()+1,"d+":i.getDate(),"h+":i.getHours(),"m+":i.getMinutes(),"s+":i.getSeconds(),"q+":Math.floor((i.getMonth()+3)/3),S:i.getMilliseconds()},t=[["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]];/(y+)/.test(d)&&(d=d.replace(RegExp.$1,(i.getFullYear()+"").substr(4-RegExp.$1.length))),/(w+)/.test(d)&&(d=d.replace(RegExp.$1,t[RegExp.$1.length-1][i.getDay()]));for(let r in e)new RegExp("("+r+")").test(d)&&(d=d.replace(RegExp.$1,RegExp.$1.length==1?e[r]:("00"+e[r]).substr((""+e[r]).length)));return d},toTimeFormat=i=>{if(!i||i<0)return"0\u79D2";console.log("time:",i);let d=60,e=d*60,t=e*24,r=i/t,n=i/e,a=i/d,s=i%60;return r>=1?parseInt(r.toString())+"\u5929"+Math.floor(n%24)+"\u65F6"+Math.floor(a%60)+"\u5206"+Math.floor(i%60)+"\u79D2":n>1?parseInt(n.toString())+"\u65F6"+Math.floor(a%60)+"\u5206"+Math.floor(i%60)+"\u79D2":a>=1?parseInt(a.toString())+"\u5206"+Math.floor(i%60)+"\u79D2":Math.ceil(i)+"\u79D2"},validateLength=(i="",d=100)=>{let e=0;if(i){e=i.length;for(let t=0;t=55296&&r<=56319&&(e--,t++)}}return e<=d};function buildTree(i,d){const e={};let t=null;return i.forEach(r=>{e[r.properties.uuid]=__spreadProps(__spreadValues({},r),{children:[]})}),d.forEach(r=>{const n=e[r.startNodeUuid],a=e[r.endNodeUuid];n&&a&&n.children.push(a)}),i.forEach(r=>{!d.some(a=>a.endNodeUuid===r.properties.uuid)&&(t=e[r.properties.uuid])}),t}const handleValidatorNickName=(i,d,e)=>{if(d){let t=/[`~!@#$%^&*()\-+=<>?:"{}|,.\/;'\\[\]~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘’,。、]/im;const n=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi.test(d),a=t.test(d);(n===!0||a===!0||d.length<2||d.length>=21)&&e("2-20\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57\u53CA\u4E0B\u5212\u7EBF")}e()},handleValidatorName=(i,d,e)=>{if(d){let t=/[`~!@#$%^&()_\-+=<>?:"{}|,.\/;'\\[\]~!@#¥%……&()——\-+={}|《》?:“”【】、;‘’,。、]/im;const n=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi.test(d),a=t.test(d);(n===!0||a===!0||d.length<2||d.length>=21)&&e("2-20\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57")}e()},getHiddenName=i=>{if(!i)return"";let d=i.length-1,e="";for(var t=0;t{const e=new FileReader;e.addEventListener("load",()=>d(e.result)),e.readAsDataURL(i)},getFileContentAndUrl=i=>new Promise((d,e)=>{var t=new FileReader;t.onload=function(){try{const r=window.URL.createObjectURL(i);d({text:this.result,link:r})}catch(r){antd__WEBPACK_IMPORTED_MODULE_12__.ZP.warning("\u5F53\u524D\u6587\u4EF6\u65E0\u6CD5\u8BFB\u53D6\u5185\u5BB9"),e("\u5F53\u524D\u6587\u4EF6\u65E0\u6CD5\u8BFB\u53D6\u5185\u5BB9")}},t.readAsText(i)});function setmiyah(i){return md5__WEBPACK_IMPORTED_MODULE_6___default()("79e33abd4b6588941ab7622aed1e67e8"+i)}const getCookie=i=>{var d,e=RegExp("(^| )"+i+"=([^;]+)(;|$)");return(d=document.cookie.match(e))?decodeURIComponent(d[2]):null};function setCookie(i,d,e){var t=new Date;t.setTime(t.getTime()+e*24*60*60*1e3);var r="expires="+t.toUTCString();document.cookie=i+"="+d+"; "+r+`;domain=${document.domain.indexOf("educoder.net")>-1?".educoder.net":document.domain};path=/;SameSite=None;secure`}const delCookie=i=>{document.cookie=i+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;"},clearAllCookies=()=>{for(var i=document.cookie.split(";"),d=0;d-1?e.substr(0,t):e;document.cookie=r+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT"}};function downLoadLink(i,d){let e=document.createElement("a");document.body.appendChild(e),e.href=d,i&&(e.title=i,e.download=i);let t=document.createEvent("MouseEvents");t.initEvent("click",!1,!1),e.dispatchEvent(t),document.body.removeChild(e)}function getFirstLevelDomain(){var i=window.location.hostname,d=i.split(".").reverse();return d.length>2?[d[1],d[0]].join("."):i}function getBlob(i){return new Promise(d=>{const e=new window.XMLHttpRequest;(i.indexOf(getFirstLevelDomain())>-1||location.hostname==="localhost"&&i.indexOf("/api/")>-1)&&(e.withCredentials=!0),e.open("GET",i,!0),e.responseType="blob",e.onload=()=>{e.status===200&&d(e.response)},e.send()})}function saveAs(i,d){if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveBlob(i,d);else{const e=document.createElement("a"),t=document.querySelector("body");e.href=window.URL.createObjectURL(i),e.download=d,e.style.display="none",t.appendChild(e),e.click(),t.removeChild(e),window.URL.revokeObjectURL(e.href)}}function download(i,d){getBlob(i).then(e=>{saveAs(e,d)})}function downLoadFileIframe(i,d){return new Promise((e,t)=>{var r=d,n=document.createElement("iframe"),a;document.body.appendChild(n),n.src=r,n.style.display="none",n.addEventListener("load",function(){setTimeout(()=>{document.body.removeChild(n)},1e3)},!0),a=setInterval(()=>{getCookie("fileDownload")&&(delCookie("fileDownload"),clearInterval(a),document.body.removeChild(n),e())},1e3)})}function downLoadFile(i,d){downLoadLink(i,d)}const setUrlQuery=i=>{let{url:d,query:e}=i;if(!d)return"";if(e){let t=[];for(const r in e)e.hasOwnProperty(r)&&!isUnOrNull(e[r])&&(typeof e[r]=="object"?e[r].map(n=>{t.push(`${r}[]=${n}`)}):t.push(`${r}=${e[r]}`));d.indexOf("?")!==-1?d=`${d}&${t.join("&")}`:d=`${d}?${t.join("&")}`,console.log("url1111",d)}return d};function isPc(){let i=navigator.userAgent,d=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],e=!0;for(var t=0;t0){e=!1;break}return e}function isChrome(){let i=navigator.userAgent;return["Chrome"].some(e=>i.indexOf(e)>-1)}function isFirefox(){let i=navigator.userAgent;return["Firefox"].some(e=>i.indexOf(e)>-1)}function isChromeOrFirefox(){let i=navigator.userAgent;return["Chrome","Firefox"].some(e=>i.indexOf(e)>-1)}const formatMoney=(i="")=>{var d;return(d=i==null?void 0:i.toString())==null?void 0:d.replace(/\B(?=(\d{3})+(?!\d))/g,",")},openNewWindow=i=>{let d=document.createElement("a");d.target="_blank",document.body.appendChild(d),d.href=i;let e=document.createEvent("MouseEvents");e.initEvent("click",!1,!1),d.dispatchEvent(e),document.body.removeChild(d)},openNewWindows=i=>{let d=document.createElement("a");document.body.appendChild(d),d.href=i;let e=document.createEvent("MouseEvents");e.initEvent("click",!1,!1),d.dispatchEvent(e),document.body.removeChild(d)},formatTextMiddleIntercept=(i="")=>i.length<=6?i:`${i.substring(0,3)}...${i.substring(i.length-3,i.length)}`,HalfPastOne=()=>{let i=new Date().getHours(),d=new Date().getMinutes();return d>=30?(i++,d="00"):d="30",i+":"+d},DayHalfPastOne=(i="-")=>{let d=new Date().getHours(),e=new Date().getMinutes();return e>=30?(d++,e="00"):e="30",new Date().toLocaleDateString().replace(/\//g,i)+" "+d+":"+e};var Type=(i=>(i.Number="Number",i.String="String",i.Boolean="Boolean",i.Object="Object",i.Array="Array",i.Function="Function",i))(Type||{});const type=i=>{const d=Object.prototype.toString.call(i);return d.substring(8,d.length-1)},isEmpty=i=>type(i)==="Array"?i.length===0:type(i)==="Object"?Object.keys(i).length===0:!i,rangeNumber=(i,d)=>{const e=[];for(let t=i;t{let e=d/2-2,t=d/2+3;return i.length>d?i.substr(0,e)+"..."+i.substr(t,d):i},formatRate=i=>i>4.5?5:i>4&&i<=4.5?4.5:i>3.5&&i<=4?4:i>3&&i<=3.5?3.5:i>2.5&&i<=3?3:i>2&&i<=2.5?2.5:i>1.5&&i<=2?2:i>1&&i<=1.5?1.5:i>.5&&i<=1?1:i>0&&i<=.5?.5:0,isUnOrNull=i=>i==null;function getUrlToken(i,d){const e=new RegExp(`(^|&)${i}=([^&]*)(&|$)`,"i"),t=d.substr(1).match(e);return t!=null?decodeURIComponent(t[2]):null}const getMessagesUrl=i=>{var d;if(i.link_url)return window.open(i.link_url);switch(i==null?void 0:i.container_type){case"TeacherChangeUserInfo":return window.open("/account/profile");case"TeacherResetUserPassword":return window.open("/account/secure");case"ApplyUserAuthentication":return window.open("/account/certification")}switch(i.container_type){case"ApplyUserAuthentication":if(i.tiding_type==="Apply"){if(i.auth_type===1)return window.open("/admins/identity_authentications");if(i.auth_type===2)return window.open("/admins/professional_authentications")}return i.tiding_type==="System"?window.open("/account/certification"):i.tiding_type==="Code"?window.open("/account/profile"):void 0;case"CancelUserAuthentication":return window.open("/account/certification");case"CancelUserProCertification":return window.open("/account/certification");case"ApplyAddMajor":return window.open("/account/profile");case"Major":return window.open("/account/profile");case"ApplyAddDepartment":return i.tiding_type==="Apply"?window.open("/admins/department_applies"):i.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAddSchools":return i.tiding_type==="Apply"?window.open("/admins/unit_applies"):i.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAction":switch(i.parent_container_type){case"ApplyShixun":if(i.tiding_type==="Apply")return window.open("/admins/shixun_authorizations");if(i.tiding_type==="System")return window.open(`/shixuns/${i.identifier}/challenges`);case"ApplySubject":if(i.tiding_type==="Apply")return window.open("/admins/subject_authorizations");if(i.tiding_type==="System")return window.open(`/paths/${i.parent_container_id}`);case"TrialAuthorization":if(i.tiding_type==="Apply")return window.open("/managements/trial_authorization");if(i.tiding_type==="System")return window.open("/account/profile")}return;case"JoinCourse":return window.open(`/classrooms/${i.belong_container_id}/teachers`);case"StudentJoinCourse":if(i.tiding_type==="Apply")return window.open(`/classrooms/${i.belong_container_id}/teachers`);if(i.tiding_type==="System")return window.open(`/classrooms/${i.belong_container_id}/students`);case"DealCourse":return window.open(`/classrooms/${i.belong_container_id}/shixun_homework/`);case"TeacherJoinCourse":return window.open(`/classrooms/${i.belong_container_id}/shixun_homework/`);case"Course":return i.tiding_type==="Delete"?void 0:window.open(`/classrooms/${i.belong_container_id}/shixun_homework/`);case"ArchiveCourse":return window.open(`/classrooms/${i.belong_container_id}/shixun_homework/`);case"Shixun":return window.open(`/shixuns/${i.identifier}/challenges`);case"Subject":return window.open(`/paths/${i.container_id}`);case"JournalsForMessage":switch(i.parent_container_type){case"Principal":return"";case"HomeworkCommon":return i.homework_type==="normal"?window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.parent_container_id}/question`):i.homework_type==="group"?window.open(`/classrooms/${i.belong_container_id}/group_homework/${i.parent_container_id}/question`):i.homework_type==="practice"?window.open(`/classrooms/${i.belong_container_id}/shixun_homework/${i.parent_container_id}/detail?tabs=1`):"";case"GraduationTopic":return window.open(`/classrooms/${i.belong_container_id}/graduation_topics/${i.parent_container_id}/detail`);case"StudentWorksScore":return window.open(i.link_url)}case"Memo":return window.open(`/forums/${i.parent_container_id}`);case"Message":return window.open("/forums/");case"Watcher":return window.open(`/users/${i.trigger_user.login}/classrooms`);case"PraiseTread":return"";case"Grade":return"";case"JoinProject":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+i.project_url);case"ReporterJoinProject":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+i.project_url);case"DealProject":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+i.project_url);case"ManagerJoinProject":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+i.project_url);case"Poll":switch(i.parent_container_type){case"CommitPoll":return window.open(` /classrooms/${i.belong_container_id}/poll/${i.container_id}/detail`);default:return window.open(` /classrooms/${i.belong_container_id}/poll/${i.container_id}/detail`)}case"Exercise":switch(i.parent_container_type){case"CommitExercise":return window.open(` /classrooms/${i.belong_container_id}/exercise/${i.container_id}/detail?tab=0`);case"ExerciseScore":return window.open(` /classrooms/${i.belong_container_id}/exercise/${i.container_id}/detail?tab=0`);default:return window.open(`/classrooms/${i.belong_container_id}/exercise/${i.container_id}/detail?tab=0`)}case"StudentGraduationTopic":return window.open(`/classrooms/${i.belong_container_id}/graduation_topics/${i.parent_container_id}/detail`);case"DealStudentTopicSelect":return window.open(`/classrooms/${i.belong_container_id}/graduation_topics/${i.parent_container_id}/detail`);case"GraduationTask":return window.open(`/classrooms/${i.belong_container_id}/graduation_tasks/${i.container_id}`);case"GraduationWork":return window.open(`/classrooms/${i.belong_container_id}/graduation_tasks/${i.container_id}`);case"GraduationWorkScore":return window.open(`/classrooms/${i.belong_container_id}/graduation_tasks/${i.parent_container_id}`);case"HomeworkCommon":switch(i.parent_container_type){case"AnonymousCommentFail":if(i.homework_type==="normal")return window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.parent_container_id}/detail`);if(i.homework_type==="group")return window.open(`/classrooms/${i.belong_container_id}/group_homework/${i.parent_container_id}/detail`);if(i.homework_type==="practice")return window.open(`/classrooms/${i.belong_container_id}/shixun_homework/${i.parent_container_id}/detail?tabs=0`);case"HomeworkPublish":if(i.homework_type==="normal")return window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.parent_container_id}/detail`);if(i.homework_type==="group")return window.open(`/classrooms/${i.belong_container_id}/group_homework/${i.parent_container_id}/detail`);if(i.homework_type==="practice")return window.open(`/classrooms/${i.belong_container_id}/shixun_homework/${i.parent_container_id}/detail?tabs=0`);case"AnonymousAppeal":if(i.homework_type==="normal")return window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.parent_container_id}/detail`);if(i.homework_type==="group")return window.open(`/classrooms/${i.belong_container_id}/group_homework/${i.parent_container_id}/detail`);if(i.homework_type==="practice")return window.open(`/classrooms/${i.belong_container_id}/shixun_homework/${i.parent_container_id}/detail?tabs=0`);default:if(i.homework_type==="normal")return window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.parent_container_id}/detail`);if(i.homework_type==="group")return window.open(`/classrooms/${i.belong_container_id}/group_homework/${i.parent_container_id}/detail`);if(i.homework_type==="practice")return window.open(`/classrooms/${i.belong_container_id}/shixun_homework/${i.parent_container_id}/detail?tabs=0`)}case"StudentWork":if(i.homework_type==="normal")return window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.parent_container_id}/review/${i.container_id}`);if(i.homework_type==="group")return window.open(`/classrooms/${i.belong_container_id}/group_homework/${i.parent_container_id}/review/${i.container_id}`);if(i.homework_type==="practice")return window.open(`/classrooms/${i.belong_container_id}/shixun_homework/${i.parent_container_id}/detail`);case"StudentWorksScore":return window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.trigger_user.id}/review/${i.parent_container_id}`);case"StudentWorksScoresAppeal":return window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.trigger_user.id}/review/${i.parent_container_id}`);case"ChallengeWorkScore":return"";case"SendMessage":return window.open(`${_env__WEBPACK_IMPORTED_MODULE_7__.Z.API_SERVER}/admins/mirror_repositories`);case"Journal":return window.open(`/issues/${i.parent_container_id}`);case"Issue":return window.open(`/issues/${i.container_id}`);case"PullRequest":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+i.project_url);case"Department":return window.open("/account/profile");case"Library":if(i.tiding_type==="Apply")return window.open("/admins/library_applies");if(i.tiding_type==="System")return window.open(`/moop_cases/${i.container_id}`);case"ProjectPackage":return i.tiding_type==="Destroyed"||i.tiding_type==="Destroyed_end"?void 0:i.tiding_type==="Apply"?window.open("/admins/project_package_applies"):window.open(`/crowdsourcing/${i.container_id}`);case"Discuss":return i.parent_container_type==="Hack"&&i.extra?window.open(`/myproblems/${i.extra}/comment`):i.extra==="ai_reply"&&i.task_identifier?window.open(`/tasks/${i.task_identifier}?extra=extra`):window.open(`/shixuns/${i.identifier}/shixun_discuss`);case"Video":return i.tiding_type==="Apply"?window.open("/admins/video_applies"):i.tiding_type==="System"?window.open(`/users/${(d=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:d.login}/videos`):"";case"PublicCourseStart":return window.open(`/classrooms/${i.container_id}/informs`);case"SubjectStartCourse":return window.open(`/paths/${i.container_id}`);case"ResubmitStudentWork":if(i.homework_type==="normal")return window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.parent_container_id}/${i.container_id}/appraise`);if(i.homework_type==="group")return window.open(`/classrooms/${i.belong_container_id}/group_homework/${i.parent_container_id}/${i.container_id}/appraise`);case"AdjustScore":if(i.homework_type==="normal")return window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.parent_container_id}`);if(i.homework_type==="group")return window.open(`/classrooms/${i.belong_container_id}/group_homework/${i.parent_container_id}`);case"LiveLink":return window.open(`/classrooms/${i.belong_container_id}/course_videos?open=live`);case"Hack":if(i.extra&&i.parent_container_type!=="HackDelete")return window.open(`/problems/${i.extra}/edit`);default:return}},checkLocalOrPublicIp=(i,d)=>__async(void 0,null,function*(){let e="",t;return new Promise((r,n)=>__async(void 0,null,function*(){if(i.ip_limit!=="no"||i.ip_bind_type)try{e=yield(0,_components_Exercise_ip__WEBPACK_IMPORTED_MODULE_2__.y)({ip_limit:i==null?void 0:i.ip_limit,ip_bind:i==null?void 0:i.ip_bind_type}),console.log(e,44)}catch(s){n(void 0)}const a=yield(0,_service_exercise__WEBPACK_IMPORTED_MODULE_3__.Cl)({id:i.exerciseId,ip:e});if(a.status===0)r(a);else if(a.status===-5){(0,umi__WEBPACK_IMPORTED_MODULE_5__.getDvaApp)()._store.dispatch({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:{errorMessage:a==null?void 0:a.message,exercise_user_id:i==null?void 0:i.exercise_user_id,id:i.exerciseId,unlockClose:i.unlockClose}}});return}else r(a);if(i.errmsgHide||d)return!0;if(a.status===-1)return t=antd__WEBPACK_IMPORTED_MODULE_13__.default.info({title:react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_14__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_15__.Z,{flex:"1"},"\u63D0\u793A"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_15__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:()=>t.destroy()}))),icon:null,className:"custom-modal-divider",content:react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"font16 p20"},"\u60A8\u7684IP\u4E0D\u5728\u8003\u8BD5\u5141\u8BB8\u7684\u8303\u56F4\u5185\uFF01"),okText:"\u6211\u77E5\u9053\u4E86"}),!1;if(a.status===-2)return t=antd__WEBPACK_IMPORTED_MODULE_13__.default.info({title:react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_14__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_15__.Z,{flex:"1"},"\u63D0\u793A"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_15__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:()=>t.destroy()}))),icon:null,className:"custom-modal-divider",content:react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"font16 p20"},"\u60A8\u5DF2\u7ED1\u5B9A\u5F53\u524D\u8003\u8BD5IP\u5730\u5740\uFF1A",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},a.ip),"\u8BF7\u4F7F\u7528\u8BE5IP\u5730\u5740\u8FDB\u5165\u8003\u8BD5\u3002"),okText:"\u6211\u77E5\u9053\u4E86"}),!1}))}),checkDisabledExam=i=>new Promise((d,e)=>__async(void 0,null,function*(){const t=yield(0,_service_exercise__WEBPACK_IMPORTED_MODULE_3__.Zg)({id:i==null?void 0:i.exerciseId,coursesId:i==null?void 0:i.coursesId});if((t==null?void 0:t.status)===0){d("");return}setTimeout(()=>{window.location.reload()},2e3),e("")})),isKepuKehuan=()=>location.pathname.indexOf("/classrooms/4RW9CYHY")>-1||location.pathname.indexOf("/classrooms/qb4ft587")>-1||location.pathname.indexOf("/classrooms/c5q9bsp2")>-1,startExercise=i=>__async(void 0,null,function*(){var d,e,t;sessionStorage.removeItem("studentunlock");let r;if((location.pathname.indexOf("/classrooms/4RW9CYHY")>-1||location.pathname.indexOf("/classrooms/qb4ft587")>-1||location.pathname.indexOf("/classrooms/c5q9bsp2")>-1)&&!isPc()){antd__WEBPACK_IMPORTED_MODULE_13__.default.info({content:"\u8BF7\u4F7F\u7528\u7535\u8111\u53C2\u52A0\u8003\u8BD5\uFF01"});return}if(copyTextFuc(" ",!0),yield checkDisabledExam(i),i.ip_limit!=="no"||i.ip_bind){const n=yield checkLocalOrPublicIp(i,!0);if((n==null?void 0:n.status)!==0)return;if(!isChrome()){antd__WEBPACK_IMPORTED_MODULE_13__.default.info({icon:null,okText:"\u786E\u5B9A",width:500,content:react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"font16"},"\u672C\u6B21\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u4EC5\u652F\u6301",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3002",react__WEBPACK_IMPORTED_MODULE_0__.createElement("br",null),"\u8BF7\u4F7F\u7528",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u6D4F\u89C8\u5668\u5F00\u59CB\u8003\u8BD5\u3002")});return}}if(i.forbid_screen){const n=new WebSocket("ws://localhost:8082");yield new Promise(a=>setTimeout(()=>a(),200)),sendAppStatus(n,i)}if(i.open_camera||i.screen_open||i.ip_limit!=="no"||i.identity_verify){if(!isChromeOrFirefox())return antd__WEBPACK_IMPORTED_MODULE_13__.default.info({icon:null,okText:"\u786E\u5B9A",width:500,content:react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"font16"},"\u672C\u6B21\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u4EC5\u652F\u6301",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3001",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},"\u706B\u72D0"),"\u6D4F\u89C8\u5668\u3002",react__WEBPACK_IMPORTED_MODULE_0__.createElement("br",null),"\u8BF7\u4F7F\u7528",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3001",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},"\u706B\u72D0"),"\u6D4F\u89C8\u5668\u5F00\u59CB\u8003\u8BD5\u3002")}),!1;i.open_phone_video_recording?window.location.href=`/classrooms/${i.coursesId}/exercise/${i.exerciseId}/users/${(d=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:d.login}/check`:i.identity_verify&&i.current_status===2?window.location.href=`/classrooms/${i.coursesId}/exercise/${i.exerciseId}/users/${(e=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:e.login}/check`:window.location.href=`/classrooms/${i.coursesId}/exercise/${i.exerciseId}/users/${(t=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:t.login}`}else i.identity_verify&&i.current_status===2?window.location.href=`/classrooms/${i.coursesId}/exercise/${i.exerciseId}/users/${i.login}/check`:window.location.href=`/classrooms/${i.coursesId}/exercise/${i.exerciseId}/users/${i.login}`});var httpBuildQuery=function(i,d,e,t){if(console.log("param:",i),d=d||null,e=e||"&",t=t||null,!i)return"";var r=function(u){for(var l=new Array,o=0;o{const e={},t=Object.assign(!0,i,{}),r=[];return Object.keys(t).sort().forEach(function(n){if(t[n]=t[n]===!0?"true":t[n],t[n]=t[n]===!1?"false":t[n],d==="GET"){if(t[n]!==null){if(typeof t[n]=="object"&&(!Array.isArray(t[n])||Array.isArray(t[n])&&!t[n].length))return;const a=t[n]===null||t[n]==="null"?"":t[n];r.push(`${n}=${typeof a=="string"||typeof a=="number"?decodeURIComponent(a):JSON.stringify(a)}`)}}else{const a=t[n]===null||t[n]==="null"?"":t[n];r.push(`${n}=${typeof a=="string"||typeof a=="number"?a:JSON.stringify(a)}`),t[n],e[n]=t[n]}}),r.join("&").trim()},educationList=[{name:"\u672C\u79D1",id:6},{name:"\u5927\u4E13",id:5},{name:"\u4E2D\u4E13",id:4},{name:"\u9AD8\u4E2D",id:3},{name:"\u521D\u4E2D",id:2},{name:"\u5C0F\u5B66",id:1},{name:"\u5176\u4ED6",id:9},{name:"\u7855\u58EB",id:7},{name:"\u535A\u58EB",id:8},{name:"\u9AD8\u4E2D",id:3},{name:"\u521D\u4E2D",id:2},{name:"\u5C0F\u5B66",id:1},{name:"\u5176\u4ED6",id:9},{name:"\u7855\u58EB",id:7},{name:"\u535A\u58EB",id:8}];function getTopLevelDomain(){let i=window.location.hostname;if(/^\d+\.\d+\.\d+\.\d+$/.test(i)||i==="localhost")return i;let d=i.split(".");return d.length>2&&/^[a-z]{2}$/.test(d[d.length-2])?d.slice(-3).join("."):d.slice(-2).join(".")}const setHeader=(i,d)=>{var e;try{const t=Date.now(),r=(0,uuid__WEBPACK_IMPORTED_MODULE_16__.Z)();let n="method="+((e=i.method)==null?void 0:e.toLocaleUpperCase())+"&ak="+getKey(_key__WEBPACK_IMPORTED_MODULE_17__.mi)+"&sk="+getKey(_key__WEBPACK_IMPORTED_MODULE_17__.hw)+"&time="+t;return i.headers["X-EDU-Type"]="pc",i.headers["X-EDU-Timestamp"]=t,i.headers["X-EDU-Signature"]=md5__WEBPACK_IMPORTED_MODULE_6___default()(window.btoa(n)),i.headers["Pc-Authorization"]=getCookie("_educoder_session"),i.headers["X-Original-Protocol"]=location.protocol,i.headers["X-Original-Host"]=location.host,i.headers["X-Request-Id"]=r,i}catch(t){console.log("error:",t,i,d)}},setThreeComponent=()=>{(function(i){XMLHttpRequest.prototype.open=function(d,e,t=!0){const r=setHeader({method:d,headers:{}});i.call(this,d,e,t);try{e.indexOf(getTopLevelDomain())>-1&&(this.setRequestHeader("X-EDU-Type","pc"),this.setRequestHeader("X-EDU-Timestamps",r.headers["X-EDU-Timestamp"]),this.setRequestHeader("X-EDU-Signatures",r.headers["X-EDU-Signature"]),this.setRequestHeader("Pc-Authorization",getCookie("_educoder_session")))}catch(n){}}})(XMLHttpRequest.prototype.open),function(i){window.fetch=function(d,e){var t;return e=e||{},(t=e.headers)!=null&&t["X-EDU-Timestamp"]||setHeader(e),i.apply(this,arguments).then(function(r){return r})}}(window.fetch)},parseUrl=i=>{const d=/(\w+)=([^\#&]*)/gi,e={};return i.replace(d,function(t,r,n){e[r]=decodeURI(n)}),e},messageInfo=(i,d)=>{const t={1:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u6682\u672A\u53D1\u5E03\uFF0C\u8BF7\u8054\u7CFB\u672C\u8BFE\u5802\u6559\u5E08\u3002",2:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u4E0D\u5B58\u5728\uFF0C\u8BF7\u8054\u7CFB\u672C\u8BFE\u5802\u6559\u5E08\u3002",3:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E\uFF0C\u8BF7\u8054\u7CFB\u672C\u8BFE\u5802\u6559\u5E08\u3002",4:`\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u5C06\u4E8E${d}\u53D1\u5E03\uFF0C\u8BF7\u7B49\u5F85\u3002`}[i];antd__WEBPACK_IMPORTED_MODULE_12__.ZP.warning(t)},base64ToBlob=(i,d)=>{var e;const t=window.atob(i),r=t.length,n=new Uint8Array(r);for(let a=0;a{const t=base64ToBlob(d,e);if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(t,i);else{const r=document.createElement("a");r.href=window.URL.createObjectURL(t),r.download=i,document.body.appendChild(r);const n=document.createEvent("MouseEvents");n.initEvent("click",!1,!1),r.dispatchEvent(n),document.body.removeChild(r)}},trackEvent=i=>{var d;if(i.length)try{window._czc.push(["_trackEvent",...i]),window==null||window.gtag("event",i[1],{event_category:i[0],event_label:i[2]||"",value:i[3]||"",user_id:((d=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:d.login)||""})}catch(e){console.log("trackEvent:err:",e)}},trackEventCustom=i=>{if(i.length)try{window._czc.push(["_setCustomVar",...i])}catch(d){console.log("trackEvent:err:",d)}},onPreviewImage=i=>{const d=(r,n)=>{if(r.localName===n)return r;for(let a=0,s=r;s=s.parentNode;a++){if(s.localName===n)return s;if(s==document.documentElement)return!1}},e=i.target,t=d(e,"a");if(!(t!=null&&t.href)&&e.tagName.toUpperCase()==="IMG"){let r=e.src||e.getAttribute("src");r&&r.indexOf("/images/avatars/User")===-1&&(i.stopPropagation(),i.preventDefault(),_components_mediator__WEBPACK_IMPORTED_MODULE_8__.Z.publish("preview-image",r))}},getCategoryName=(i,d)=>{var e,t,r,n;if(i){let a=(e=i==null?void 0:i.filter(s=>s.type===location.pathname.split("/")[3]))==null?void 0:e[0];return d?(n=(r=(t=a==null?void 0:a.second_category)==null?void 0:t.filter(s=>s.category_id==d))==null?void 0:r[0])==null?void 0:n.category_name:a==null?void 0:a.name}return null},bindPhone=i=>{const d=antd__WEBPACK_IMPORTED_MODULE_13__.default.confirm({title:"\u5B8C\u5584\u624B\u673A\u53F7\u7801",content:"\u6309\u7167\u6709\u5173\u653F\u7B56\u89C4\u5B9A\uFF0C\u7279\u6B8A\u5B9E\u9A8C\u9700\u8981\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u624D\u80FD\u4F7F\u7528\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801",okText:"\u7ACB\u5373\u7ED1\u5B9A",cancelText:"\u53D6\u6D88",centered:!0,maskClosable:!1,keyboard:!1,closeIcon:i!=null&&i.hiddenCloseIcon?null:"",onOk:()=>{location.href="/account/secure"},onCancel:()=>{d.destroy(),i!=null&&i.onCancel&&i.onCancel()}})},copyTextFuc=(i="",d=!1)=>{const e=document.createElement("textarea");e.value=i,document.body.appendChild(e),e.select(),document.execCommand("Copy"),d||antd__WEBPACK_IMPORTED_MODULE_12__.ZP.success("\u590D\u5236\u6210\u529F"),document.body.removeChild(e)},getJsonFromUrl=i=>{if(i||(i=window.location.search),!i)return{};let d=i.substring(1),e={};return d.split("&").forEach(function(t){let r=t.split("=");e[r[0]]=decodeURIComponent(r[1])}),e},arrTrans=(i,d)=>{if(!d)return null;const e=[];return d.forEach((t,r)=>{const n=Math.floor(r/i);e[n]||(e[n]=[]),e[n].push(t)}),e},setDocumentTitle=i=>{checkIsClientExam()?document.title="\u5934\u6B4C\u8003\u8BD5\u7CFB\u7EDF":i!==""&&i&&(document.title=i||(document.domain.indexOf(".educoder.net")>-1?"\u5934\u6B4C\u5B9E\u8DF5\u6559\u5B66\u5E73\u53F0":""))},checkIsClientExam=()=>{var i;return(i=window==null?void 0:window.localStorage)==null?void 0:i.isClientExam},localSort={setItem:(i,d,e)=>{const t=i,r=localStorage.getItem(t),n=r!==null&&r!=="[object Object]"?JSON.parse(r):{};n[e]=d,localStorage.setItem(t,JSON.stringify(n))},getItem:(i,d)=>{const e=i,t=localStorage.getItem(e);return(t!==null&&t!=="[object Object]"?JSON.parse(t):{})[d]}},ImgSrcConvert=i=>i!=null&&i.startsWith("http")?i:_env__WEBPACK_IMPORTED_MODULE_7__.Z.IMG_SERVER+i,compareVersion=i=>{const d=getVersion(),e=i.split("."),t=d.split("."),r=Math.max(e.length,t.length);for(;e.lengths)return 1;if(a{i=`${i}${d?","+d:""}`;const e=crypto_js__WEBPACK_IMPORTED_MODULE_9___default().enc.Utf8.parse(window.atob(window.atob(_key__WEBPACK_IMPORTED_MODULE_17__.Bn)).substring(0,16)),t=crypto_js__WEBPACK_IMPORTED_MODULE_9___default().AES.encrypt(i||"",e,{iv:e,mode:crypto_js__WEBPACK_IMPORTED_MODULE_9___default().mode.CBC});return window.btoa(t.toString())},getVersion=()=>{const d=navigator.userAgent.toLowerCase().match(/version\/[\d.]+/gi);return d&&d[0].replace(/version\//,"")},isLocalApp=()=>navigator.userAgent.indexOf("ExerciseApp")>-1;function randomArray(i,d){let e=i.length,t,r;d=d||1;let n=function(){var a=Math.sin(d++)*1e3;return a-Math.floor(a)};for(;e!==0;)r=Math.floor(n()*e),e-=1,t=i[e],i[e]=i[r],i[r]=t;return i}function pointerEvents(i){const d=document.getElementsByTagName("iframe");for(let t=0;tnew Promise((d,e)=>{var t=new XMLHttpRequest;t.withCredentials=!0,t.onload=function(){var r=new FileReader;r.onloadend=function(){d(r.result)},r.readAsDataURL(t.response)},t.open("GET",i),t.responseType="blob",t.send()}),vtrsKey=(_b=(_a=location==null?void 0:location.pathname)==null?void 0:_a.split("/"))==null?void 0:_b[1];function scrollToTop(){window.scrollTo({left:0,top:0,behavior:"smooth"})}function domScrollToTop(i){var d;(d=document.querySelector(i))==null||d.scrollTo({left:0,top:0,behavior:"smooth"})}function dealUploadChange(i){var d,e,t,r,n;const a=(d=i.fileList)==null?void 0:d.map(s=>{var u,l;return __spreadProps(__spreadValues({},s),{status:typeof(s==null?void 0:s.response)=="string"||((u=s==null?void 0:s.response)==null?void 0:u.status)===-1?"error":s.status,response:typeof(s==null?void 0:s.response)=="string"?s==null?void 0:s.response:s!=null&&s.response&&(s==null?void 0:s.response.status)===-1?(l=s==null?void 0:s.response)==null?void 0:l.message:s==null?void 0:s.response})});return((t=(e=i.file)==null?void 0:e.response)==null?void 0:t.status)===-1&&(antd__WEBPACK_IMPORTED_MODULE_12__.ZP.destroy(),antd__WEBPACK_IMPORTED_MODULE_12__.ZP.warning((n=(r=i.file)==null?void 0:r.response)==null?void 0:n.message)),a}function cutFileName(i="",d){if(!i)return"";const e=i.lastIndexOf(".");let t=[i,""];if(e!==-1&&e!==i.length-1){const r=i.substring(0,e),n=i.substring(e+1);t=[r,n]}return t[0].length>d?t[0].slice(0,d)+"..."+t[1]:i}function cutName(i="",d,e="--"){return i?(i==null?void 0:i.length)>=d?(i==null?void 0:i.slice(0,d))+"...":i:e}function timeContrast(i){return i?moment__WEBPACK_IMPORTED_MODULE_10___default()().isBefore(moment__WEBPACK_IMPORTED_MODULE_10___default()(i)):!0}function showTotal(i){return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"font14 c-grey-333"},"\u5171",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-light-primary"},"\xA0",i,"\xA0"),"\u6761\u6570\u636E")}const formatRandomPaperData=i=>{const d={1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D",7:"\u4E03"};if(!i)return;const{exam:e,single_questions:t,multiple_questions:r,judgement_questions:n,program_questions:a,completion_questions:s,subjective_questions:u,practical_questions:l,combination_questions:o,bprogram_questions:f}=i||{},m=[__spreadValues({type:"SINGLE",name:"\u5355\u9009\u9898"},t),__spreadValues({type:"MULTIPLE",name:"\u591A\u9009\u9898"},r),__spreadValues({type:"COMPLETION",name:"\u586B\u7A7A\u9898"},s),__spreadValues({type:"JUDGMENT",name:"\u5224\u65AD\u9898"},n),__spreadValues({type:"SUBJECTIVE",name:"\u7B80\u7B54\u9898"},u),__spreadValues({type:"PROGRAM",name:"\u7F16\u7A0B\u9898"},a),__spreadValues({type:"BPROGRAM",name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"},f),__spreadValues({type:"PRACTICAL",name:"\u5B9E\u8BAD\u9898"},l),__spreadValues({type:"COMBINATION",name:"\u7EC4\u5408\u9898"},o)],p=[];let b=0,g=0;const E=m.filter(O=>O.questions_count>0).map((O,C)=>{var I;return(I=O.questions)==null||I.forEach(P=>{p.push(P.id),b=b+P.score,g=g+1}),__spreadValues(__spreadValues({},O),{number:d[C+1]})});return{all_questions_count:g,all_score:b,questionList:E,ids:p,exam:e}},formatRandomPaperDatas=i=>{var d;const e={1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D",7:"\u4E03"};if(!i)return;const{exam:t,single_questions:r,multiple_questions:n,judgement_questions:a,program_questions:s,completion_questions:u,subjective_questions:l,practical_questions:o,combination_questions:f,bprogram_questions:m}=i||{},p=[__spreadValues({type:"SINGLE",name:"\u5355\u9009\u9898"},r),__spreadValues({type:"MULTIPLE",name:"\u591A\u9009\u9898"},n),__spreadValues({type:"COMPLETION",name:"\u586B\u7A7A\u9898"},u),__spreadValues({type:"JUDGMENT",name:"\u5224\u65AD\u9898"},a),__spreadValues({type:"SUBJECTIVE",name:"\u7B80\u7B54\u9898"},l),__spreadValues({type:"PROGRAM",name:"\u7F16\u7A0B\u9898"},s),__spreadValues({type:"BPROGRAM",name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"},m),__spreadValues({type:"PRACTICAL",name:"\u5B9E\u8BAD\u9898"},o),__spreadValues({type:"COMBINATION",name:"\u7EC4\u5408\u9898"},f)];let b=[];(d=t==null?void 0:t.question_type_position)==null||d.map((I,P)=>{p==null||p.map((k,D)=>{I.type===k.type&&b.push(k)})});const g=[];let E=0,O=0;const C=b.filter(I=>I.questions_count>0).map((I,P)=>{var k;return(k=I.questions)==null||k.forEach(D=>{g.push(D.id),E=E+D.score,O=O+1}),__spreadValues(__spreadValues({},I),{number:e[P+1]})});return{all_questions_count:O,all_score:E,questionList:C,ids:g,exam:t}},isWechatBrowser=()=>navigator.userAgent.toLowerCase().match(/MicroMessenger/i)=="micromessenger",toWechatLogin=()=>{isWechatBrowser()?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx0955caba88bc37eb&redirect_uri=https%3A%2F%2Fwww.educoder.net%2fotherloginstart&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":window.location.href="/wxlogin.html"},isMobileDevice=()=>typeof window.orientation!="undefined"||navigator.userAgent.indexOf("Mobi")!==-1,sendAppStatus=(i,d)=>{var e;try{d?(i.send(JSON.stringify({type:"toggleLockExit",data:!0})),d!=null&&d.forbid_screen&&i.send(JSON.stringify({type:"open-disabled-switchscreen"})),d!=null&&d.use_white_list&&i.send(JSON.stringify({type:"open-only-allow-runapp",data:d==null?void 0:d.white_list})),d!=null&&d.net_limit&&i.send(JSON.stringify({type:"network-close",data:(e=d==null?void 0:d.net_limit_list)==null?void 0:e.split(`
+`:""}\uFF08\u6559\u5E08\u63D0\u4EA4\uFF09`,class:"c-black"},6:{name:"\u6309\u65F6\u63D0\u4EA4\uFF08\u7EBF\u4E0B\uFF09",class:"c-green"}};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:(d=t[i.status])==null?void 0:d.class},(e=t[i.status])==null?void 0:e.name)},timego=i=>{i=new Date(i).getTime();let d=1e3*60,e=d*60,t=e*24,r="",a=new Date().getTime()-i;if(a<0)return console.log("\u65F6\u95F4\u4E0D\u5BF9\u52B2,\u670D\u52A1\u5668\u521B\u5EFA\u65F6\u95F4\u4E0E\u5F53\u524D\u65F6\u95F4\u4E0D\u540C\u6B65"),r="\u521A\u521A";let s=parseInt(a/t,10),u=parseInt(a/e,10),l=parseInt(a/d,10);return s>30?r=""+timeformat(i,"yyyy-MM-dd"):s>1?r=""+s+"\u5929\u524D":s==1?r="\u6628\u5929":u>=1?r=""+u+"\u5C0F\u65F6\u524D":l>=5?r=""+l+"\u5206\u949F\u524D":r="\u521A\u521A",r};function replaceParamVal(paramName,replaceWith){var oUrl=window.location.href.toString(),re=eval("/("+paramName+"=)([^&]*)/gi"),nUrl=oUrl.replace(re,paramName+"="+replaceWith);window.history.replaceState(null,"",nUrl)}const timeformat=(i,d)=>{typeof i=="string"&&(i.indexOf("T")>=0&&(i=i.replace("T"," ")),i=new Date(Date.parse(i.replace(/-/g,"/")))),i=new Date(i);let e={"M+":i.getMonth()+1,"d+":i.getDate(),"h+":i.getHours(),"m+":i.getMinutes(),"s+":i.getSeconds(),"q+":Math.floor((i.getMonth()+3)/3),S:i.getMilliseconds()},t=[["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]];/(y+)/.test(d)&&(d=d.replace(RegExp.$1,(i.getFullYear()+"").substr(4-RegExp.$1.length))),/(w+)/.test(d)&&(d=d.replace(RegExp.$1,t[RegExp.$1.length-1][i.getDay()]));for(let r in e)new RegExp("("+r+")").test(d)&&(d=d.replace(RegExp.$1,RegExp.$1.length==1?e[r]:("00"+e[r]).substr((""+e[r]).length)));return d},toTimeFormat=i=>{if(!i||i<0)return"0\u79D2";console.log("time:",i);let d=60,e=d*60,t=e*24,r=i/t,n=i/e,a=i/d,s=i%60;return r>=1?parseInt(r.toString())+"\u5929"+Math.floor(n%24)+"\u65F6"+Math.floor(a%60)+"\u5206"+Math.floor(i%60)+"\u79D2":n>1?parseInt(n.toString())+"\u65F6"+Math.floor(a%60)+"\u5206"+Math.floor(i%60)+"\u79D2":a>=1?parseInt(a.toString())+"\u5206"+Math.floor(i%60)+"\u79D2":Math.ceil(i)+"\u79D2"},validateLength=(i="",d=100)=>{let e=0;if(i){e=i.length;for(let t=0;t=55296&&r<=56319&&(e--,t++)}}return e<=d};function buildTree(i,d){const e={};let t=null;return i.forEach(r=>{e[r.properties.uuid]=__spreadProps(__spreadValues({},r),{children:[]})}),d.forEach(r=>{const n=e[r.startNodeUuid],a=e[r.endNodeUuid];n&&a&&n.children.push(a)}),i.forEach(r=>{!d.some(a=>a.endNodeUuid===r.properties.uuid)&&(t=e[r.properties.uuid])}),t}const handleValidatorNickName=(i,d,e)=>{if(d){let t=/[`~!@#$%^&*()\-+=<>?:"{}|,.\/;'\\[\]~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘’,。、]/im;const n=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi.test(d),a=t.test(d);(n===!0||a===!0||d.length<2||d.length>=21)&&e("2-20\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57\u53CA\u4E0B\u5212\u7EBF")}e()},handleValidatorName=(i,d,e)=>{if(d){let t=/[`~!@#$%^&()_\-+=<>?:"{}|,.\/;'\\[\]~!@#¥%……&()——\-+={}|《》?:“”【】、;‘’,。、]/im;const n=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi.test(d),a=t.test(d);(n===!0||a===!0||d.length<2||d.length>=21)&&e("2-20\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57")}e()},getHiddenName=i=>{if(!i)return"";let d=i.length-1,e="";for(var t=0;t{const e=new FileReader;e.addEventListener("load",()=>d(e.result)),e.readAsDataURL(i)},getFileContentAndUrl=i=>new Promise((d,e)=>{var t=new FileReader;t.onload=function(){try{const r=window.URL.createObjectURL(i);d({text:this.result,link:r})}catch(r){antd__WEBPACK_IMPORTED_MODULE_12__.ZP.warning("\u5F53\u524D\u6587\u4EF6\u65E0\u6CD5\u8BFB\u53D6\u5185\u5BB9"),e("\u5F53\u524D\u6587\u4EF6\u65E0\u6CD5\u8BFB\u53D6\u5185\u5BB9")}},t.readAsText(i)});function setmiyah(i){return md5__WEBPACK_IMPORTED_MODULE_6___default()("79e33abd4b6588941ab7622aed1e67e8"+i)}const getCookie=i=>{var d,e=RegExp("(^| )"+i+"=([^;]+)(;|$)");return(d=document.cookie.match(e))?decodeURIComponent(d[2]):null};function setCookie(i,d,e){var t=new Date;t.setTime(t.getTime()+e*24*60*60*1e3);var r="expires="+t.toUTCString();document.cookie=i+"="+d+"; "+r+`;domain=${document.domain.indexOf("educoder.net")>-1?".educoder.net":document.domain};path=/;SameSite=None;secure`}const delCookie=i=>{document.cookie=i+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;"},clearAllCookies=()=>{for(var i=document.cookie.split(";"),d=0;d-1?e.substr(0,t):e;document.cookie=r+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT"}};function downLoadLink(i,d){let e=document.createElement("a");document.body.appendChild(e),e.href=d,i&&(e.title=i,e.download=i);let t=document.createEvent("MouseEvents");t.initEvent("click",!1,!1),e.dispatchEvent(t),document.body.removeChild(e)}function getFirstLevelDomain(){var i=window.location.hostname,d=i.split(".").reverse();return d.length>2?[d[1],d[0]].join("."):i}function getBlob(i){return new Promise(d=>{const e=new window.XMLHttpRequest;(i.indexOf(getFirstLevelDomain())>-1||location.hostname==="localhost"&&i.indexOf("/api/")>-1)&&(e.withCredentials=!0),e.open("GET",i,!0),e.responseType="blob",e.onload=()=>{e.status===200&&d(e.response)},e.send()})}function saveAs(i,d){if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveBlob(i,d);else{const e=document.createElement("a"),t=document.querySelector("body");e.href=window.URL.createObjectURL(i),e.download=d,e.style.display="none",t.appendChild(e),e.click(),t.removeChild(e),window.URL.revokeObjectURL(e.href)}}function download(i,d){getBlob(i).then(e=>{saveAs(e,d)})}function downLoadFileIframe(i,d){return new Promise((e,t)=>{var r=d,n=document.createElement("iframe"),a;document.body.appendChild(n),n.src=r,n.style.display="none",n.addEventListener("load",function(){setTimeout(()=>{document.body.removeChild(n)},1e3)},!0),a=setInterval(()=>{getCookie("fileDownload")&&(delCookie("fileDownload"),clearInterval(a),document.body.removeChild(n),e())},1e3)})}function downLoadFile(i,d){downLoadLink(i,d)}const setUrlQuery=i=>{let{url:d,query:e}=i;if(!d)return"";if(e){let t=[];for(const r in e)e.hasOwnProperty(r)&&!isUnOrNull(e[r])&&(typeof e[r]=="object"?e[r].map(n=>{t.push(`${r}[]=${n}`)}):t.push(`${r}=${e[r]}`));d.indexOf("?")!==-1?d=`${d}&${t.join("&")}`:d=`${d}?${t.join("&")}`,console.log("url1111",d)}return d};function isPc(){let i=navigator.userAgent,d=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],e=!0;for(var t=0;t0){e=!1;break}return e}function isChrome(){let i=navigator.userAgent;return["Chrome"].some(e=>i.indexOf(e)>-1)}function isFirefox(){let i=navigator.userAgent;return["Firefox"].some(e=>i.indexOf(e)>-1)}function isChromeOrFirefox(){let i=navigator.userAgent;return["Chrome","Firefox"].some(e=>i.indexOf(e)>-1)}const formatMoney=(i="")=>{var d;return(d=i==null?void 0:i.toString())==null?void 0:d.replace(/\B(?=(\d{3})+(?!\d))/g,",")},openNewWindow=i=>{let d=document.createElement("a");d.target="_blank",document.body.appendChild(d),d.href=i;let e=document.createEvent("MouseEvents");e.initEvent("click",!1,!1),d.dispatchEvent(e),document.body.removeChild(d)},openNewWindows=i=>{let d=document.createElement("a");document.body.appendChild(d),d.href=i;let e=document.createEvent("MouseEvents");e.initEvent("click",!1,!1),d.dispatchEvent(e),document.body.removeChild(d)},formatTextMiddleIntercept=(i="")=>i.length<=6?i:`${i.substring(0,3)}...${i.substring(i.length-3,i.length)}`,HalfPastOne=()=>{let i=new Date().getHours(),d=new Date().getMinutes();return d>=30?(i++,d="00"):d="30",i+":"+d},DayHalfPastOne=(i="-")=>{let d=new Date().getHours(),e=new Date().getMinutes();return e>=30?(d++,e="00"):e="30",new Date().toLocaleDateString().replace(/\//g,i)+" "+d+":"+e};var Type=(i=>(i.Number="Number",i.String="String",i.Boolean="Boolean",i.Object="Object",i.Array="Array",i.Function="Function",i))(Type||{});const type=i=>{const d=Object.prototype.toString.call(i);return d.substring(8,d.length-1)},isEmpty=i=>type(i)==="Array"?i.length===0:type(i)==="Object"?Object.keys(i).length===0:!i,rangeNumber=(i,d)=>{const e=[];for(let t=i;t{let e=d/2-2,t=d/2+3;return i.length>d?i.substr(0,e)+"..."+i.substr(t,d):i},formatRate=i=>i>4.5?5:i>4&&i<=4.5?4.5:i>3.5&&i<=4?4:i>3&&i<=3.5?3.5:i>2.5&&i<=3?3:i>2&&i<=2.5?2.5:i>1.5&&i<=2?2:i>1&&i<=1.5?1.5:i>.5&&i<=1?1:i>0&&i<=.5?.5:0,isUnOrNull=i=>i==null;function getUrlToken(i,d){const e=new RegExp(`(^|&)${i}=([^&]*)(&|$)`,"i"),t=d.substr(1).match(e);return t!=null?decodeURIComponent(t[2]):null}const getMessagesUrl=i=>{var d;if(i.link_url)return window.open(i.link_url);switch(i==null?void 0:i.container_type){case"TeacherChangeUserInfo":return window.open("/account/profile");case"TeacherResetUserPassword":return window.open("/account/secure");case"ApplyUserAuthentication":return window.open("/account/certification")}switch(i.container_type){case"ApplyUserAuthentication":if(i.tiding_type==="Apply"){if(i.auth_type===1)return window.open("/admins/identity_authentications");if(i.auth_type===2)return window.open("/admins/professional_authentications")}return i.tiding_type==="System"?window.open("/account/certification"):i.tiding_type==="Code"?window.open("/account/profile"):void 0;case"CancelUserAuthentication":return window.open("/account/certification");case"CancelUserProCertification":return window.open("/account/certification");case"ApplyAddMajor":return window.open("/account/profile");case"Major":return window.open("/account/profile");case"ApplyAddDepartment":return i.tiding_type==="Apply"?window.open("/admins/department_applies"):i.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAddSchools":return i.tiding_type==="Apply"?window.open("/admins/unit_applies"):i.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAction":switch(i.parent_container_type){case"ApplyShixun":if(i.tiding_type==="Apply")return window.open("/admins/shixun_authorizations");if(i.tiding_type==="System")return window.open(`/shixuns/${i.identifier}/challenges`);case"ApplySubject":if(i.tiding_type==="Apply")return window.open("/admins/subject_authorizations");if(i.tiding_type==="System")return window.open(`/paths/${i.parent_container_id}`);case"TrialAuthorization":if(i.tiding_type==="Apply")return window.open("/managements/trial_authorization");if(i.tiding_type==="System")return window.open("/account/profile")}return;case"JoinCourse":return window.open(`/classrooms/${i.belong_container_id}/teachers`);case"StudentJoinCourse":if(i.tiding_type==="Apply")return window.open(`/classrooms/${i.belong_container_id}/teachers`);if(i.tiding_type==="System")return window.open(`/classrooms/${i.belong_container_id}/students`);case"DealCourse":return window.open(`/classrooms/${i.belong_container_id}/shixun_homework/`);case"TeacherJoinCourse":return window.open(`/classrooms/${i.belong_container_id}/shixun_homework/`);case"Course":return i.tiding_type==="Delete"?void 0:window.open(`/classrooms/${i.belong_container_id}/shixun_homework/`);case"ArchiveCourse":return window.open(`/classrooms/${i.belong_container_id}/shixun_homework/`);case"Shixun":return window.open(`/shixuns/${i.identifier}/challenges`);case"Subject":return window.open(`/paths/${i.container_id}`);case"JournalsForMessage":switch(i.parent_container_type){case"Principal":return"";case"HomeworkCommon":return i.homework_type==="normal"?window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.parent_container_id}/question`):i.homework_type==="group"?window.open(`/classrooms/${i.belong_container_id}/group_homework/${i.parent_container_id}/question`):i.homework_type==="practice"?window.open(`/classrooms/${i.belong_container_id}/shixun_homework/${i.parent_container_id}/detail?tabs=1`):"";case"GraduationTopic":return window.open(`/classrooms/${i.belong_container_id}/graduation_topics/${i.parent_container_id}/detail`);case"StudentWorksScore":return window.open(i.link_url)}case"Memo":return window.open(`/forums/${i.parent_container_id}`);case"Message":return window.open("/forums/");case"Watcher":return window.open(`/users/${i.trigger_user.login}/classrooms`);case"PraiseTread":return"";case"Grade":return"";case"JoinProject":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+i.project_url);case"ReporterJoinProject":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+i.project_url);case"DealProject":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+i.project_url);case"ManagerJoinProject":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+i.project_url);case"Poll":switch(i.parent_container_type){case"CommitPoll":return window.open(` /classrooms/${i.belong_container_id}/poll/${i.container_id}/detail`);default:return window.open(` /classrooms/${i.belong_container_id}/poll/${i.container_id}/detail`)}case"Exercise":switch(i.parent_container_type){case"CommitExercise":return window.open(` /classrooms/${i.belong_container_id}/exercise/${i.container_id}/detail?tab=0`);case"ExerciseScore":return window.open(` /classrooms/${i.belong_container_id}/exercise/${i.container_id}/detail?tab=0`);default:return window.open(`/classrooms/${i.belong_container_id}/exercise/${i.container_id}/detail?tab=0`)}case"StudentGraduationTopic":return window.open(`/classrooms/${i.belong_container_id}/graduation_topics/${i.parent_container_id}/detail`);case"DealStudentTopicSelect":return window.open(`/classrooms/${i.belong_container_id}/graduation_topics/${i.parent_container_id}/detail`);case"GraduationTask":return window.open(`/classrooms/${i.belong_container_id}/graduation_tasks/${i.container_id}`);case"GraduationWork":return window.open(`/classrooms/${i.belong_container_id}/graduation_tasks/${i.container_id}`);case"GraduationWorkScore":return window.open(`/classrooms/${i.belong_container_id}/graduation_tasks/${i.parent_container_id}`);case"HomeworkCommon":switch(i.parent_container_type){case"AnonymousCommentFail":if(i.homework_type==="normal")return window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.parent_container_id}/detail`);if(i.homework_type==="group")return window.open(`/classrooms/${i.belong_container_id}/group_homework/${i.parent_container_id}/detail`);if(i.homework_type==="practice")return window.open(`/classrooms/${i.belong_container_id}/shixun_homework/${i.parent_container_id}/detail?tabs=0`);case"HomeworkPublish":if(i.homework_type==="normal")return window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.parent_container_id}/detail`);if(i.homework_type==="group")return window.open(`/classrooms/${i.belong_container_id}/group_homework/${i.parent_container_id}/detail`);if(i.homework_type==="practice")return window.open(`/classrooms/${i.belong_container_id}/shixun_homework/${i.parent_container_id}/detail?tabs=0`);case"AnonymousAppeal":if(i.homework_type==="normal")return window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.parent_container_id}/detail`);if(i.homework_type==="group")return window.open(`/classrooms/${i.belong_container_id}/group_homework/${i.parent_container_id}/detail`);if(i.homework_type==="practice")return window.open(`/classrooms/${i.belong_container_id}/shixun_homework/${i.parent_container_id}/detail?tabs=0`);default:if(i.homework_type==="normal")return window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.parent_container_id}/detail`);if(i.homework_type==="group")return window.open(`/classrooms/${i.belong_container_id}/group_homework/${i.parent_container_id}/detail`);if(i.homework_type==="practice")return window.open(`/classrooms/${i.belong_container_id}/shixun_homework/${i.parent_container_id}/detail?tabs=0`)}case"StudentWork":if(i.homework_type==="normal")return window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.parent_container_id}/review/${i.container_id}`);if(i.homework_type==="group")return window.open(`/classrooms/${i.belong_container_id}/group_homework/${i.parent_container_id}/review/${i.container_id}`);if(i.homework_type==="practice")return window.open(`/classrooms/${i.belong_container_id}/shixun_homework/${i.parent_container_id}/detail`);case"StudentWorksScore":return window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.trigger_user.id}/review/${i.parent_container_id}`);case"StudentWorksScoresAppeal":return window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.trigger_user.id}/review/${i.parent_container_id}`);case"ChallengeWorkScore":return"";case"SendMessage":return window.open(`${_env__WEBPACK_IMPORTED_MODULE_7__.Z.API_SERVER}/admins/mirror_repositories`);case"Journal":return window.open(`/issues/${i.parent_container_id}`);case"Issue":return window.open(`/issues/${i.container_id}`);case"PullRequest":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+i.project_url);case"Department":return window.open("/account/profile");case"Library":if(i.tiding_type==="Apply")return window.open("/admins/library_applies");if(i.tiding_type==="System")return window.open(`/moop_cases/${i.container_id}`);case"ProjectPackage":return i.tiding_type==="Destroyed"||i.tiding_type==="Destroyed_end"?void 0:i.tiding_type==="Apply"?window.open("/admins/project_package_applies"):window.open(`/crowdsourcing/${i.container_id}`);case"Discuss":return i.parent_container_type==="Hack"&&i.extra?window.open(`/myproblems/${i.extra}/comment`):i.extra==="ai_reply"&&i.task_identifier?window.open(`/tasks/${i.task_identifier}?extra=extra`):window.open(`/shixuns/${i.identifier}/shixun_discuss`);case"Video":return i.tiding_type==="Apply"?window.open("/admins/video_applies"):i.tiding_type==="System"?window.open(`/users/${(d=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:d.login}/videos`):"";case"PublicCourseStart":return window.open(`/classrooms/${i.container_id}/informs`);case"SubjectStartCourse":return window.open(`/paths/${i.container_id}`);case"ResubmitStudentWork":if(i.homework_type==="normal")return window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.parent_container_id}/${i.container_id}/appraise`);if(i.homework_type==="group")return window.open(`/classrooms/${i.belong_container_id}/group_homework/${i.parent_container_id}/${i.container_id}/appraise`);case"AdjustScore":if(i.homework_type==="normal")return window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.parent_container_id}`);if(i.homework_type==="group")return window.open(`/classrooms/${i.belong_container_id}/group_homework/${i.parent_container_id}`);case"LiveLink":return window.open(`/classrooms/${i.belong_container_id}/course_videos?open=live`);case"Hack":if(i.extra&&i.parent_container_type!=="HackDelete")return window.open(`/problems/${i.extra}/edit`);default:return}},checkLocalOrPublicIp=(i,d)=>__async(void 0,null,function*(){let e="",t;return new Promise((r,n)=>__async(void 0,null,function*(){if(i.ip_limit!=="no"||i.ip_bind_type)try{e=yield(0,_components_Exercise_ip__WEBPACK_IMPORTED_MODULE_2__.y)({ip_limit:i==null?void 0:i.ip_limit,ip_bind:i==null?void 0:i.ip_bind_type}),console.log(e,44)}catch(s){n(void 0)}const a=yield(0,_service_exercise__WEBPACK_IMPORTED_MODULE_3__.Cl)({id:i.exerciseId,ip:e});if(a.status===0)r(a);else if(a.status===-5){(0,umi__WEBPACK_IMPORTED_MODULE_5__.getDvaApp)()._store.dispatch({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:{errorMessage:a==null?void 0:a.message,exercise_user_id:i==null?void 0:i.exercise_user_id,id:i.exerciseId,unlockClose:i.unlockClose}}});return}else r(a);if(i.errmsgHide||d)return!0;if(a.status===-1)return t=antd__WEBPACK_IMPORTED_MODULE_13__.default.info({title:react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_14__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_15__.Z,{flex:"1"},"\u63D0\u793A"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_15__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:()=>t.destroy()}))),icon:null,className:"custom-modal-divider",content:react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"font16 p20"},"\u60A8\u7684IP\u4E0D\u5728\u8003\u8BD5\u5141\u8BB8\u7684\u8303\u56F4\u5185\uFF01"),okText:"\u6211\u77E5\u9053\u4E86"}),!1;if(a.status===-2)return t=antd__WEBPACK_IMPORTED_MODULE_13__.default.info({title:react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_14__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_15__.Z,{flex:"1"},"\u63D0\u793A"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_15__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:()=>t.destroy()}))),icon:null,className:"custom-modal-divider",content:react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"font16 p20"},"\u60A8\u5DF2\u7ED1\u5B9A\u5F53\u524D\u8003\u8BD5IP\u5730\u5740\uFF1A",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},a.ip),"\u8BF7\u4F7F\u7528\u8BE5IP\u5730\u5740\u8FDB\u5165\u8003\u8BD5\u3002"),okText:"\u6211\u77E5\u9053\u4E86"}),!1}))}),checkDisabledExam=i=>new Promise((d,e)=>__async(void 0,null,function*(){const t=yield(0,_service_exercise__WEBPACK_IMPORTED_MODULE_3__.Zg)({id:i==null?void 0:i.exerciseId,coursesId:i==null?void 0:i.coursesId});if((t==null?void 0:t.status)===0){d("");return}setTimeout(()=>{window.location.reload()},2e3),e("")})),isKepuKehuan=()=>location.pathname.indexOf("/classrooms/4RW9CYHY")>-1||location.pathname.indexOf("/classrooms/qb4ft587")>-1||location.pathname.indexOf("/classrooms/c5q9bsp2")>-1,startExercise=i=>__async(void 0,null,function*(){var d,e,t;sessionStorage.removeItem("studentunlock");let r;if((location.pathname.indexOf("/classrooms/4RW9CYHY")>-1||location.pathname.indexOf("/classrooms/qb4ft587")>-1||location.pathname.indexOf("/classrooms/c5q9bsp2")>-1)&&!isPc()){antd__WEBPACK_IMPORTED_MODULE_13__.default.info({content:"\u8BF7\u4F7F\u7528\u7535\u8111\u53C2\u52A0\u8003\u8BD5\uFF01"});return}if(copyTextFuc(" ",!0),yield checkDisabledExam(i),i.ip_limit!=="no"||i.ip_bind){const n=yield checkLocalOrPublicIp(i,!0);if((n==null?void 0:n.status)!==0)return;if(!isChrome()){antd__WEBPACK_IMPORTED_MODULE_13__.default.info({icon:null,okText:"\u786E\u5B9A",width:500,content:react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"font16"},"\u672C\u6B21\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u4EC5\u652F\u6301",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3002",react__WEBPACK_IMPORTED_MODULE_0__.createElement("br",null),"\u8BF7\u4F7F\u7528",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u6D4F\u89C8\u5668\u5F00\u59CB\u8003\u8BD5\u3002")});return}}if(i.forbid_screen){const n=new WebSocket("ws://localhost:8082");yield new Promise(a=>setTimeout(()=>a(),200)),sendAppStatus(n,i)}if(i.open_camera||i.screen_open||i.ip_limit!=="no"||i.identity_verify){if(!isChromeOrFirefox())return antd__WEBPACK_IMPORTED_MODULE_13__.default.info({icon:null,okText:"\u786E\u5B9A",width:500,content:react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"font16"},"\u672C\u6B21\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u4EC5\u652F\u6301",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3001",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},"\u706B\u72D0"),"\u6D4F\u89C8\u5668\u3002",react__WEBPACK_IMPORTED_MODULE_0__.createElement("br",null),"\u8BF7\u4F7F\u7528",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3001",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},"\u706B\u72D0"),"\u6D4F\u89C8\u5668\u5F00\u59CB\u8003\u8BD5\u3002")}),!1;i.open_phone_video_recording?window.location.href=`/classrooms/${i.coursesId}/exercise/${i.exerciseId}/users/${(d=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:d.login}/check`:i.identity_verify&&i.current_status===2?window.location.href=`/classrooms/${i.coursesId}/exercise/${i.exerciseId}/users/${(e=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:e.login}/check`:window.location.href=`/classrooms/${i.coursesId}/exercise/${i.exerciseId}/users/${(t=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:t.login}`}else i.identity_verify&&i.current_status===2?window.location.href=`/classrooms/${i.coursesId}/exercise/${i.exerciseId}/users/${i.login}/check`:window.location.href=`/classrooms/${i.coursesId}/exercise/${i.exerciseId}/users/${i.login}`});var httpBuildQuery=function(i,d,e,t){if(console.log("param:",i),d=d||null,e=e||"&",t=t||null,!i)return"";var r=function(u){for(var l=new Array,o=0;o{const e={},t=Object.assign(!0,i,{}),r=[];return Object.keys(t).sort().forEach(function(n){if(t[n]=t[n]===!0?"true":t[n],t[n]=t[n]===!1?"false":t[n],d==="GET"){if(t[n]!==null){if(typeof t[n]=="object"&&(!Array.isArray(t[n])||Array.isArray(t[n])&&!t[n].length))return;const a=t[n]===null||t[n]==="null"?"":t[n];r.push(`${n}=${typeof a=="string"||typeof a=="number"?decodeURIComponent(a):JSON.stringify(a)}`)}}else{const a=t[n]===null||t[n]==="null"?"":t[n];r.push(`${n}=${typeof a=="string"||typeof a=="number"?a:JSON.stringify(a)}`),t[n],e[n]=t[n]}}),r.join("&").trim()},educationList=[{name:"\u672C\u79D1",id:6},{name:"\u5927\u4E13",id:5},{name:"\u4E2D\u4E13",id:4},{name:"\u9AD8\u4E2D",id:3},{name:"\u521D\u4E2D",id:2},{name:"\u5C0F\u5B66",id:1},{name:"\u5176\u4ED6",id:9},{name:"\u7855\u58EB",id:7},{name:"\u535A\u58EB",id:8},{name:"\u9AD8\u4E2D",id:3},{name:"\u521D\u4E2D",id:2},{name:"\u5C0F\u5B66",id:1},{name:"\u5176\u4ED6",id:9},{name:"\u7855\u58EB",id:7},{name:"\u535A\u58EB",id:8}];function getTopLevelDomain(){let i=window.location.hostname;if(/^\d+\.\d+\.\d+\.\d+$/.test(i)||i==="localhost")return i;let d=i.split(".");return d.length>2&&/^[a-z]{2}$/.test(d[d.length-2])?d.slice(-3).join("."):d.slice(-2).join(".")}const setHeader=(i,d)=>{var e;try{const t=Date.now(),r=(0,uuid__WEBPACK_IMPORTED_MODULE_16__.Z)();let n="method="+((e=i.method)==null?void 0:e.toLocaleUpperCase())+"&ak="+getKey(_key__WEBPACK_IMPORTED_MODULE_17__.mi)+"&sk="+getKey(_key__WEBPACK_IMPORTED_MODULE_17__.hw)+"&time="+t;return i.headers["X-EDU-Type"]="pc",i.headers["X-EDU-Timestamp"]=t,i.headers["X-EDU-Signature"]=md5__WEBPACK_IMPORTED_MODULE_6___default()(window.btoa(n)),i.headers["Pc-Authorization"]=getCookie("_educoder_session"),i.headers["X-Original-Protocol"]=location.protocol,i.headers["X-Original-Host"]=location.host,i.headers["X-Original-Origin"]=location.origin,i.headers["X-Request-Id"]=r,i}catch(t){console.log("error:",t,i,d)}},setThreeComponent=()=>{(function(i){XMLHttpRequest.prototype.open=function(d,e,t=!0){const r=setHeader({method:d,headers:{}});i.call(this,d,e,t);try{e.indexOf(getTopLevelDomain())>-1&&(this.setRequestHeader("X-EDU-Type","pc"),this.setRequestHeader("X-EDU-Timestamps",r.headers["X-EDU-Timestamp"]),this.setRequestHeader("X-EDU-Signatures",r.headers["X-EDU-Signature"]),this.setRequestHeader("Pc-Authorization",getCookie("_educoder_session")))}catch(n){}}})(XMLHttpRequest.prototype.open),function(i){window.fetch=function(d,e){var t;return e=e||{},(t=e.headers)!=null&&t["X-EDU-Timestamp"]||setHeader(e),i.apply(this,arguments).then(function(r){return r})}}(window.fetch)},parseUrl=i=>{const d=/(\w+)=([^\#&]*)/gi,e={};return i.replace(d,function(t,r,n){e[r]=decodeURI(n)}),e},messageInfo=(i,d)=>{const t={1:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u6682\u672A\u53D1\u5E03\uFF0C\u8BF7\u8054\u7CFB\u672C\u8BFE\u5802\u6559\u5E08\u3002",2:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u4E0D\u5B58\u5728\uFF0C\u8BF7\u8054\u7CFB\u672C\u8BFE\u5802\u6559\u5E08\u3002",3:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E\uFF0C\u8BF7\u8054\u7CFB\u672C\u8BFE\u5802\u6559\u5E08\u3002",4:`\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u5C06\u4E8E${d}\u53D1\u5E03\uFF0C\u8BF7\u7B49\u5F85\u3002`}[i];antd__WEBPACK_IMPORTED_MODULE_12__.ZP.warning(t)},base64ToBlob=(i,d)=>{var e;const t=window.atob(i),r=t.length,n=new Uint8Array(r);for(let a=0;a{const t=base64ToBlob(d,e);if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(t,i);else{const r=document.createElement("a");r.href=window.URL.createObjectURL(t),r.download=i,document.body.appendChild(r);const n=document.createEvent("MouseEvents");n.initEvent("click",!1,!1),r.dispatchEvent(n),document.body.removeChild(r)}},trackEvent=i=>{var d;if(i.length)try{window._czc.push(["_trackEvent",...i]),window==null||window.gtag("event",i[1],{event_category:i[0],event_label:i[2]||"",value:i[3]||"",user_id:((d=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:d.login)||""})}catch(e){console.log("trackEvent:err:",e)}},trackEventCustom=i=>{if(i.length)try{window._czc.push(["_setCustomVar",...i])}catch(d){console.log("trackEvent:err:",d)}},onPreviewImage=i=>{const d=(r,n)=>{if(r.localName===n)return r;for(let a=0,s=r;s=s.parentNode;a++){if(s.localName===n)return s;if(s==document.documentElement)return!1}},e=i.target,t=d(e,"a");if(!(t!=null&&t.href)&&e.tagName.toUpperCase()==="IMG"){let r=e.src||e.getAttribute("src");r&&r.indexOf("/images/avatars/User")===-1&&(i.stopPropagation(),i.preventDefault(),_components_mediator__WEBPACK_IMPORTED_MODULE_8__.Z.publish("preview-image",r))}},getCategoryName=(i,d)=>{var e,t,r,n;if(i){let a=(e=i==null?void 0:i.filter(s=>s.type===location.pathname.split("/")[3]))==null?void 0:e[0];return d?(n=(r=(t=a==null?void 0:a.second_category)==null?void 0:t.filter(s=>s.category_id==d))==null?void 0:r[0])==null?void 0:n.category_name:a==null?void 0:a.name}return null},bindPhone=i=>{const d=antd__WEBPACK_IMPORTED_MODULE_13__.default.confirm({title:"\u5B8C\u5584\u624B\u673A\u53F7\u7801",content:"\u6309\u7167\u6709\u5173\u653F\u7B56\u89C4\u5B9A\uFF0C\u7279\u6B8A\u5B9E\u9A8C\u9700\u8981\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u624D\u80FD\u4F7F\u7528\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801",okText:"\u7ACB\u5373\u7ED1\u5B9A",cancelText:"\u53D6\u6D88",centered:!0,maskClosable:!1,keyboard:!1,closeIcon:i!=null&&i.hiddenCloseIcon?null:"",onOk:()=>{location.href="/account/secure"},onCancel:()=>{d.destroy(),i!=null&&i.onCancel&&i.onCancel()}})},copyTextFuc=(i="",d=!1)=>{const e=document.createElement("textarea");e.value=i,document.body.appendChild(e),e.select(),document.execCommand("Copy"),d||antd__WEBPACK_IMPORTED_MODULE_12__.ZP.success("\u590D\u5236\u6210\u529F"),document.body.removeChild(e)},getJsonFromUrl=i=>{if(i||(i=window.location.search),!i)return{};let d=i.substring(1),e={};return d.split("&").forEach(function(t){let r=t.split("=");e[r[0]]=decodeURIComponent(r[1])}),e},arrTrans=(i,d)=>{if(!d)return null;const e=[];return d.forEach((t,r)=>{const n=Math.floor(r/i);e[n]||(e[n]=[]),e[n].push(t)}),e},setDocumentTitle=i=>{checkIsClientExam()?document.title="\u5934\u6B4C\u8003\u8BD5\u7CFB\u7EDF":i!==""&&i&&(document.title=i||(document.domain.indexOf(".educoder.net")>-1?"\u5934\u6B4C\u5B9E\u8DF5\u6559\u5B66\u5E73\u53F0":""))},checkIsClientExam=()=>{var i;return(i=window==null?void 0:window.localStorage)==null?void 0:i.isClientExam},localSort={setItem:(i,d,e)=>{const t=i,r=localStorage.getItem(t),n=r!==null&&r!=="[object Object]"?JSON.parse(r):{};n[e]=d,localStorage.setItem(t,JSON.stringify(n))},getItem:(i,d)=>{const e=i,t=localStorage.getItem(e);return(t!==null&&t!=="[object Object]"?JSON.parse(t):{})[d]}},ImgSrcConvert=i=>i!=null&&i.startsWith("http")?i:_env__WEBPACK_IMPORTED_MODULE_7__.Z.IMG_SERVER+i,compareVersion=i=>{const d=getVersion(),e=i.split("."),t=d.split("."),r=Math.max(e.length,t.length);for(;e.lengths)return 1;if(a{i=`${i}${d?","+d:""}`;const e=crypto_js__WEBPACK_IMPORTED_MODULE_9___default().enc.Utf8.parse(window.atob(window.atob(_key__WEBPACK_IMPORTED_MODULE_17__.Bn)).substring(0,16)),t=crypto_js__WEBPACK_IMPORTED_MODULE_9___default().AES.encrypt(i||"",e,{iv:e,mode:crypto_js__WEBPACK_IMPORTED_MODULE_9___default().mode.CBC});return window.btoa(t.toString())},getVersion=()=>{const d=navigator.userAgent.toLowerCase().match(/version\/[\d.]+/gi);return d&&d[0].replace(/version\//,"")},isLocalApp=()=>navigator.userAgent.indexOf("ExerciseApp")>-1;function randomArray(i,d){let e=i.length,t,r;d=d||1;let n=function(){var a=Math.sin(d++)*1e3;return a-Math.floor(a)};for(;e!==0;)r=Math.floor(n()*e),e-=1,t=i[e],i[e]=i[r],i[r]=t;return i}function pointerEvents(i){const d=document.getElementsByTagName("iframe");for(let t=0;tnew Promise((d,e)=>{var t=new XMLHttpRequest;t.withCredentials=!0,t.onload=function(){var r=new FileReader;r.onloadend=function(){d(r.result)},r.readAsDataURL(t.response)},t.open("GET",i),t.responseType="blob",t.send()}),vtrsKey=(_b=(_a=location==null?void 0:location.pathname)==null?void 0:_a.split("/"))==null?void 0:_b[1];function scrollToTop(){window.scrollTo({left:0,top:0,behavior:"smooth"})}function domScrollToTop(i){var d;(d=document.querySelector(i))==null||d.scrollTo({left:0,top:0,behavior:"smooth"})}function dealUploadChange(i){var d,e,t,r,n;const a=(d=i.fileList)==null?void 0:d.map(s=>{var u,l;return __spreadProps(__spreadValues({},s),{status:typeof(s==null?void 0:s.response)=="string"||((u=s==null?void 0:s.response)==null?void 0:u.status)===-1?"error":s.status,response:typeof(s==null?void 0:s.response)=="string"?s==null?void 0:s.response:s!=null&&s.response&&(s==null?void 0:s.response.status)===-1?(l=s==null?void 0:s.response)==null?void 0:l.message:s==null?void 0:s.response})});return((t=(e=i.file)==null?void 0:e.response)==null?void 0:t.status)===-1&&(antd__WEBPACK_IMPORTED_MODULE_12__.ZP.destroy(),antd__WEBPACK_IMPORTED_MODULE_12__.ZP.warning((n=(r=i.file)==null?void 0:r.response)==null?void 0:n.message)),a}function cutFileName(i="",d){if(!i)return"";const e=i.lastIndexOf(".");let t=[i,""];if(e!==-1&&e!==i.length-1){const r=i.substring(0,e),n=i.substring(e+1);t=[r,n]}return t[0].length>d?t[0].slice(0,d)+"..."+t[1]:i}function cutName(i="",d,e="--"){return i?(i==null?void 0:i.length)>=d?(i==null?void 0:i.slice(0,d))+"...":i:e}function timeContrast(i){return i?moment__WEBPACK_IMPORTED_MODULE_10___default()().isBefore(moment__WEBPACK_IMPORTED_MODULE_10___default()(i)):!0}function showTotal(i){return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"font14 c-grey-333"},"\u5171",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-light-primary"},"\xA0",i,"\xA0"),"\u6761\u6570\u636E")}const formatRandomPaperData=i=>{const d={1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D",7:"\u4E03"};if(!i)return;const{exam:e,single_questions:t,multiple_questions:r,judgement_questions:n,program_questions:a,completion_questions:s,subjective_questions:u,practical_questions:l,combination_questions:o,bprogram_questions:f}=i||{},m=[__spreadValues({type:"SINGLE",name:"\u5355\u9009\u9898"},t),__spreadValues({type:"MULTIPLE",name:"\u591A\u9009\u9898"},r),__spreadValues({type:"COMPLETION",name:"\u586B\u7A7A\u9898"},s),__spreadValues({type:"JUDGMENT",name:"\u5224\u65AD\u9898"},n),__spreadValues({type:"SUBJECTIVE",name:"\u7B80\u7B54\u9898"},u),__spreadValues({type:"PROGRAM",name:"\u7F16\u7A0B\u9898"},a),__spreadValues({type:"BPROGRAM",name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"},f),__spreadValues({type:"PRACTICAL",name:"\u5B9E\u8BAD\u9898"},l),__spreadValues({type:"COMBINATION",name:"\u7EC4\u5408\u9898"},o)],p=[];let b=0,g=0;const E=m.filter(O=>O.questions_count>0).map((O,C)=>{var I;return(I=O.questions)==null||I.forEach(P=>{p.push(P.id),b=b+P.score,g=g+1}),__spreadValues(__spreadValues({},O),{number:d[C+1]})});return{all_questions_count:g,all_score:b,questionList:E,ids:p,exam:e}},formatRandomPaperDatas=i=>{var d;const e={1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D",7:"\u4E03"};if(!i)return;const{exam:t,single_questions:r,multiple_questions:n,judgement_questions:a,program_questions:s,completion_questions:u,subjective_questions:l,practical_questions:o,combination_questions:f,bprogram_questions:m}=i||{},p=[__spreadValues({type:"SINGLE",name:"\u5355\u9009\u9898"},r),__spreadValues({type:"MULTIPLE",name:"\u591A\u9009\u9898"},n),__spreadValues({type:"COMPLETION",name:"\u586B\u7A7A\u9898"},u),__spreadValues({type:"JUDGMENT",name:"\u5224\u65AD\u9898"},a),__spreadValues({type:"SUBJECTIVE",name:"\u7B80\u7B54\u9898"},l),__spreadValues({type:"PROGRAM",name:"\u7F16\u7A0B\u9898"},s),__spreadValues({type:"BPROGRAM",name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"},m),__spreadValues({type:"PRACTICAL",name:"\u5B9E\u8BAD\u9898"},o),__spreadValues({type:"COMBINATION",name:"\u7EC4\u5408\u9898"},f)];let b=[];(d=t==null?void 0:t.question_type_position)==null||d.map((I,P)=>{p==null||p.map((k,D)=>{I.type===k.type&&b.push(k)})});const g=[];let E=0,O=0;const C=b.filter(I=>I.questions_count>0).map((I,P)=>{var k;return(k=I.questions)==null||k.forEach(D=>{g.push(D.id),E=E+D.score,O=O+1}),__spreadValues(__spreadValues({},I),{number:e[P+1]})});return{all_questions_count:O,all_score:E,questionList:C,ids:g,exam:t}},isWechatBrowser=()=>navigator.userAgent.toLowerCase().match(/MicroMessenger/i)=="micromessenger",toWechatLogin=()=>{isWechatBrowser()?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx0955caba88bc37eb&redirect_uri=https%3A%2F%2Fwww.educoder.net%2fotherloginstart&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":window.location.href="/wxlogin.html"},isMobileDevice=()=>typeof window.orientation!="undefined"||navigator.userAgent.indexOf("Mobi")!==-1,sendAppStatus=(i,d)=>{var e;try{d?(i.send(JSON.stringify({type:"toggleLockExit",data:!0})),d!=null&&d.forbid_screen&&i.send(JSON.stringify({type:"open-disabled-switchscreen"})),d!=null&&d.use_white_list&&i.send(JSON.stringify({type:"open-only-allow-runapp",data:d==null?void 0:d.white_list})),d!=null&&d.net_limit&&i.send(JSON.stringify({type:"network-close",data:(e=d==null?void 0:d.net_limit_list)==null?void 0:e.split(`
`)}))):(i.send(JSON.stringify({type:"toggleLockExit",data:!1})),i.send(JSON.stringify({type:"close-disabled-switchscreen"})),i.send(JSON.stringify({type:"close-only-allow-runapp"})),i.send(JSON.stringify({type:"network-open"})))}catch(t){}},addJumping=()=>{const i=document.querySelector('a[title="\u589E\u52A0\u586B\u7A7A"]'),d=i==null?void 0:i.querySelector("span");d&&(d.classList.remove("jumping-icon"),d.offsetWidth,d.classList.add("jumping-icon"),setTimeout(()=>{var e;(e=d==null?void 0:d.classList)==null||e.remove("jumping-icon")},2e3))},showClassroomsmodal=i=>i!=null&&i.forbid_student_visit?(antd__WEBPACK_IMPORTED_MODULE_13__.default.warning({title:"\u63D0\u793A",icon:null,centered:!0,okText:"\u6211\u77E5\u9053\u4E86",content:react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{fontWeight:600}},i==null?void 0:i.username,"\u8001\u5E08 "),"\u5DF2\u5173\u95ED\u8BE5\u8BFE\u5802\uFF0C\u5B66\u751F\u7528\u6237\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE ")}),!0):!1,getExamRestrictionInfo=i=>{const d=[];return i.is_locked&&d.push("\u8003\u8BD5\u89E3\u9501\u7801"),i.login_restrict&&d.push("\u8003\u8BD5\u767B\u5F55\u9650\u5236"),i.screen_open&&d.push("\u5207\u5C4F\u540E\u5F3A\u5236\u4EA4\u5377"),i.ip_bind&&d.push("IP\u5730\u5740\u7ED1\u5B9A"),(i.ip_limit==="pub"||i.ip_limit==="inner")&&d.push("\u9650\u5236\u8003\u8BD5\u8BBF\u95EEIP"),i.open_camera&&d.push("\u8003\u8BD5\u4E2D\u542F\u7528\u62CD\u7167\u529F\u80FD\u8FDB\u884C\u76D1\u8003\u548C\u884C\u4E3A\u5206\u6790"),i.identity_verify&&d.push("\u8003\u8BD5\u524D\u4EBA\u8138\u8EAB\u4EFD\u6838\u9A8C"),i.open_phone_video_recording&&d.push("\u8003\u8BD5\u4E2D\u5F00\u542F\u624B\u673A\u89C6\u9891\u5F55\u5236"),d.length>0?d.join("\u3001"):""},releaseRuleDataAdjust=i=>{const d=i.reduce((t,r)=>{const n=`${r.publish_time}_${r.end_time}_${r.is_admin}`;return t[n]?(t[n].group_name.push(r.group_name),t[n].group_id.push(r.group_id)):t[n]={publish_time:r.publish_time,end_time:r.end_time,is_admin:r.is_admin,group_name:[r.group_name],group_id:[r.group_id]},t},{});return Object.values(d).map(t=>__spreadProps(__spreadValues({},t),{group_name:t.group_name.flat(),group_id:t.group_id.flat()}))},aiReviewConfigformatChecks=i=>{if(!i||i.length===0)return!0;const d=new Set,e=new Set;let t=!0,r=!0;const n=i==null?void 0:i.reduce((a,s)=>{d!=null&&d.has(s.name)&&(t=!1),d==null||d.add(s.name),e!=null&&e.has(s.content)&&(r=!1),e==null||e.add(s.content);const u=parseFloat(s.weight);return a+u},0);return t?r?parseFloat(n.toFixed(2))!=100?(antd__WEBPACK_IMPORTED_MODULE_12__.ZP.warning("\u6240\u6709\u8BC4\u5206\u9879\u76EE\u7684\u6743\u91CD\u4E4B\u548C\u5FC5\u987B\u4E3A100%"),!1):!0:(antd__WEBPACK_IMPORTED_MODULE_12__.ZP.warning("\u8BC4\u5206\u6807\u51C6\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D!"),!1):(antd__WEBPACK_IMPORTED_MODULE_12__.ZP.warning("\u8BC4\u5206\u9879\u76EE\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D!"),!1)}},4787:function(i,d,e){"use strict";e.d(d,{t:function(){return t}});const t=n=>{var a=/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/;return a.test(n)},r=n=>{var a=/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.$/;return a.test(n)}},91231:function(i,d,e){"use strict";e.d(d,{Il:function(){return s},Ov:function(){return u},T$:function(){return o}});var t=e(38127),r=e(59301),n=e(35338),a=["element"],s=r.createContext({});function u(){return r.useContext(s)}function l(){var b=(0,n.TH)(),g=u(),E=g.clientRoutes,O=(0,n.fp)(E,b.pathname);return O||[]}function o(){var b,g=l().slice(-1),E=((b=g[0])===null||b===void 0?void 0:b.route)||{},O=E.element,C=(0,t.Z)(E,a);return C}function f(){var b=l(),g=u(),E=g.serverLoaderData,O=g.basename,C=React.useState(function(){var D={},T=!1;return b.forEach(function(A){var R=E[A.route.id];R&&(Object.assign(D,R),T=!0)}),T?D:void 0}),I=_slicedToArray(C,2),P=I[0],k=I[1];return React.useEffect(function(){window.__UMI_LOADER_DATA__||Promise.all(b.filter(function(D){return D.route.hasServerLoader}).map(function(D){return new Promise(function(T){fetchServerLoader({id:D.route.id,basename:O,cb:T})})})).then(function(D){if(D.length){var T={};D.forEach(function(A){Object.assign(T,A)}),k(T)}})},[]),{data:P}}function m(){var b=useRouteData(),g=u();return{data:g.clientLoaderData[b.route.id]}}function p(){var b=f(),g=m();return{data:_objectSpread(_objectSpread({},b.data),g.data)}}},91392:function(i){var d={en_GB:"en-gb",en_US:"en",zh_CN:"zh-cn",zh_TW:"zh-tw"},e=function(r){var n=d[r];return n||r.split("_")[0]};i.exports=function(t,r,n){var a=r.prototype.locale;r.prototype.locale=function(s){return typeof s=="string"&&(s=e(s)),a.call(this,s)}}},15565:function(i,d,e){"use strict";var t=e(59301),r=e(41799),n=e(99571),a=e(61670);function s(l){return!!(l!=null&&l.then)}const u=l=>{const{type:o,children:f,prefixCls:m,buttonProps:p,close:b,autoFocus:g,emitEvent:E,isSilent:O,quitOnNullishReturnValue:C,actionFn:I}=l,P=t.useRef(!1),k=t.useRef(null),[D,T]=(0,r.Z)(!1),A=function(){b==null||b.apply(void 0,arguments)};t.useEffect(()=>{let $=null;return g&&($=setTimeout(()=>{var K;(K=k.current)===null||K===void 0||K.focus({preventScroll:!0})})),()=>{$&&clearTimeout($)}},[]);const R=$=>{s($)&&(T(!0),$.then(function(){T(!1,!0),A.apply(void 0,arguments),P.current=!1},K=>{if(T(!1,!0),P.current=!1,!(O!=null&&O()))return Promise.reject(K)}))},Z=$=>{if(P.current)return;if(P.current=!0,!I){A();return}let K;if(E){if(K=I($),C&&!s(K)){P.current=!1,A($);return}}else if(I.length)K=I(b),P.current=!1;else if(K=I(),!s(K)){A();return}R(K)};return t.createElement(n.ZP,Object.assign({},(0,a.nx)(o),{onClick:Z,loading:D,prefixCls:m},p,{ref:k}),f)};d.Z=u},62487:function(i,d,e){"use strict";var t=e(59301),r=e(56553),n=e(70045);const a=s=>{const{space:u,form:l,children:o}=s;if(o==null)return null;let f=o;return l&&(f=t.createElement(r.Ux,{override:!0,status:!0},f)),u&&(f=t.createElement(n.BR,null,f)),f};d.Z=a},45915:function(i,d,e){"use strict";e.d(d,{i:function(){return s}});var t=e(59301),r=e(18929),n=e(60840),a=e(48755);function s(l){return o=>t.createElement(n.ZP,{theme:{token:{motion:!1,zIndexPopupBase:0}}},t.createElement(l,Object.assign({},o)))}const u=(l,o,f,m,p)=>s(g=>{const{prefixCls:E,style:O}=g,C=t.useRef(null),[I,P]=t.useState(0),[k,D]=t.useState(0),[T,A]=(0,r.Z)(!1,{value:g.open}),{getPrefixCls:R}=t.useContext(a.E_),Z=R(m||"select",E);t.useEffect(()=>{if(A(!0),typeof ResizeObserver!="undefined"){const G=new ResizeObserver(L=>{const B=L[0].target;P(B.offsetHeight+8),D(B.offsetWidth)}),q=setInterval(()=>{var L;const B=p?`.${p(Z)}`:`.${Z}-dropdown`,U=(L=C.current)===null||L===void 0?void 0:L.querySelector(B);U&&(clearInterval(q),G.observe(U))},10);return()=>{clearInterval(q),G.disconnect()}}},[]);let $=Object.assign(Object.assign({},g),{style:Object.assign(Object.assign({},O),{margin:0}),open:T,visible:T,getPopupContainer:()=>C.current});f&&($=f($)),o&&Object.assign($,{[o]:{overflow:{adjustX:!1,adjustY:!1}}});const K={paddingBottom:I,position:"relative",minWidth:k};return t.createElement("div",{ref:C,style:K},t.createElement(l,Object.assign({},$)))});d.Z=u},78776:function(i,d,e){"use strict";e.d(d,{Z:function(){return o},w:function(){return a}});var t=e(59301),r=e(99267),n=e(26112);function a(f){if(f)return{closable:f.closable,closeIcon:f.closeIcon}}function s(f){const{closable:m,closeIcon:p}=f||{};return t.useMemo(()=>{if(!m&&(m===!1||p===!1||p===null))return!1;if(m===void 0&&p===void 0)return null;let b={closeIcon:typeof p!="boolean"&&p!==null?p:void 0};return m&&typeof m=="object"&&(b=Object.assign(Object.assign({},b),m)),b},[m,p])}function u(){const f={};for(var m=arguments.length,p=new Array(m),b=0;b{g&&Object.keys(g).forEach(E=>{g[E]!==void 0&&(f[E]=g[E])})}),f}const l={};function o(f,m){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:l;const b=s(f),g=s(m),E=typeof b!="boolean"?!!(b!=null&&b.disabled):!1,O=t.useMemo(()=>Object.assign({closeIcon:t.createElement(r.Z,null)},p),[p]),C=t.useMemo(()=>b===!1?!1:b?u(O,g,b):g===!1?!1:g?u(O,g):O.closable?O:!1,[b,g,O]);return t.useMemo(()=>{if(C===!1)return[!1,null,E];const{closeIconRender:I}=O,{closeIcon:P}=C;let k=P;if(k!=null){I&&(k=I(P));const D=(0,n.Z)(C,!0);Object.keys(D).length&&(k=t.isValidElement(k)?t.cloneElement(k,D):t.createElement("span",Object.assign({},D),k))}return[!0,k,E]},[C,O])}},40192:function(i,d,e){"use strict";e.d(d,{Z:function(){return r}});var t=e(59301);function r(){const[,n]=t.useReducer(a=>a+1,0);return n}},75030:function(i,d,e){"use strict";e.d(d,{Cn:function(){return p},u6:function(){return u}});var t=e(59301),r=e(57700),n=e(55743);const a=100,u=a*10,l=u+a,o={Modal:a,Drawer:a,Popover:a,Popconfirm:a,Tooltip:a,Tour:a,FloatButton:a},f={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function m(b){return b in o}const p=(b,g)=>{const[,E]=(0,r.ZP)(),O=t.useContext(n.Z),C=m(b);let I;if(g!==void 0)I=[g,g];else{let P=O!=null?O:0;C?P+=(O?0:E.zIndexPopupBase)+o[b]:P+=f[b],I=[O===void 0?g:P,P]}return I}},86641:function(i,d,e){"use strict";e.d(d,{m:function(){return o}});var t=e(48755);const r=()=>({height:0,opacity:0}),n=f=>{const{scrollHeight:m}=f;return{height:m,opacity:1}},a=f=>({height:f?f.offsetHeight:0}),s=(f,m)=>(m==null?void 0:m.deadline)===!0||m.propertyName==="height",u=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.Rf}-motion-collapse`,onAppearStart:r,onEnterStart:r,onAppearActive:n,onEnterActive:n,onLeaveStart:a,onLeaveActive:r,onAppearEnd:s,onEnterEnd:s,onLeaveEnd:s,motionDeadline:500}},l=null,o=(f,m,p)=>p!==void 0?p:`${f}-${m}`;d.Z=u},22703:function(i,d,e){"use strict";e.d(d,{M2:function(){return r},Tm:function(){return a},wm:function(){return n}});var t=e(59301);function r(s){return s&&t.isValidElement(s)&&s.type===t.Fragment}const n=(s,u,l)=>t.isValidElement(s)?t.cloneElement(s,typeof l=="function"?l(s.props||{}):l):u;function a(s,u){return n(s,s,u)}},47999:function(i,d,e){"use strict";e.d(d,{c4:function(){return n},m9:function(){return u}});var t=e(59301),r=e(57700);const n=["xxl","xl","lg","md","sm","xs"],a=o=>({xs:`(max-width: ${o.screenXSMax}px)`,sm:`(min-width: ${o.screenSM}px)`,md:`(min-width: ${o.screenMD}px)`,lg:`(min-width: ${o.screenLG}px)`,xl:`(min-width: ${o.screenXL}px)`,xxl:`(min-width: ${o.screenXXL}px)`}),s=o=>{const f=o,m=[].concat(n).reverse();return m.forEach((p,b)=>{const g=p.toUpperCase(),E=`screen${g}Min`,O=`screen${g}`;if(!(f[E]<=f[O]))throw new Error(`${E}<=${O} fails : !(${f[E]}<=${f[O]})`);if(b{if(f){for(const m of n)if(o[m]&&(f==null?void 0:f[m])!==void 0)return f[m]}},l=()=>{const[,o]=(0,r.ZP)(),f=a(s(o));return t.useMemo(()=>{const m=new Map;let p=-1,b={};return{responsiveMap:f,matchHandlers:{},dispatch(g){return b=g,m.forEach(E=>E(b)),m.size>=1},subscribe(g){return m.size||this.register(),p+=1,m.set(p,g),g(b),p},unsubscribe(g){m.delete(g),m.size||this.unregister()},register(){Object.keys(f).forEach(g=>{const E=f[g],O=I=>{let{matches:P}=I;this.dispatch(Object.assign(Object.assign({},b),{[g]:P}))},C=window.matchMedia(E);C.addListener(O),this.matchHandlers[E]={mql:C,listener:O},O(C)})},unregister(){Object.keys(f).forEach(g=>{const E=f[g],O=this.matchHandlers[E];O==null||O.mql.removeListener(O==null?void 0:O.listener)}),m.clear()}}},[o])};d.ZP=l},32383:function(i,d,e){"use strict";e.d(d,{G8:function(){return l},ln:function(){return o}});var t=e(59301),r=e(48736);function n(){}let a=null;function s(){a=null,rcResetWarned()}let u=null;const l=t.createContext({}),o=()=>{const m=()=>{};return m.deprecated=n,m};var f=null},12919:function(i,d,e){"use strict";e.d(d,{Z:function(){return K}});var t=e(59301),r=e(92310),n=e.n(r),a=e(29194),s=e(8654),u=e(48755),l=e(22703),o=e(16931);const f=G=>{const{componentCls:q,colorPrimary:L}=G;return{[q]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${L})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${G.motionEaseOutCirc}`,`opacity 2s ${G.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${G.motionDurationSlow} ${G.motionEaseInOut}`,`opacity ${G.motionDurationSlow} ${G.motionEaseInOut}`].join(",")}}}}};var m=(0,o.A1)("Wave",G=>[f(G)]),p=e(6089),b=e(16089),g=e(57700),E=e(63872),O=e(77900),C=e(11774);function I(G){return G&&G!=="#fff"&&G!=="#ffffff"&&G!=="rgb(255, 255, 255)"&&G!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(G)&&G!=="transparent"}function P(G){const{borderTopColor:q,borderColor:L,backgroundColor:B}=getComputedStyle(G);return I(q)?q:I(L)?L:I(B)?B:null}function k(G){return Number.isNaN(G)?0:G}const D=G=>{const{className:q,target:L,component:B,registerUnmount:U}=G,Y=t.useRef(null),H=t.useRef(null);t.useEffect(()=>{H.current=U()},[]);const[j,Q]=t.useState(null),[M,N]=t.useState([]),[V,te]=t.useState(0),[se,ve]=t.useState(0),[pe,he]=t.useState(0),[Ye,Ke]=t.useState(0),[dt,ft]=t.useState(!1),lt={left:V,top:se,width:pe,height:Ye,borderRadius:M.map(Oe=>`${Oe}px`).join(" ")};j&&(lt["--wave-color"]=j);function Xe(){const Oe=getComputedStyle(L);Q(P(L));const Le=Oe.position==="static",{borderLeftWidth:rt,borderTopWidth:Et}=Oe;te(Le?L.offsetLeft:k(-parseFloat(rt))),ve(Le?L.offsetTop:k(-parseFloat(Et))),he(L.offsetWidth),Ke(L.offsetHeight);const{borderTopLeftRadius:Lt,borderTopRightRadius:kt,borderBottomLeftRadius:De,borderBottomRightRadius:Qe}=Oe;N([Lt,kt,Qe,De].map(_t=>k(parseFloat(_t))))}if(t.useEffect(()=>{if(L){const Oe=(0,b.Z)(()=>{Xe(),ft(!0)});let Le;return typeof ResizeObserver!="undefined"&&(Le=new ResizeObserver(Xe),Le.observe(L)),()=>{b.Z.cancel(Oe),Le==null||Le.disconnect()}}},[]),!dt)return null;const ge=(B==="Checkbox"||B==="Radio")&&(L==null?void 0:L.classList.contains(E.A));return t.createElement(O.default,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(Oe,Le)=>{var rt,Et;if(Le.deadline||Le.propertyName==="opacity"){const Lt=(rt=Y.current)===null||rt===void 0?void 0:rt.parentElement;(Et=H.current)===null||Et===void 0||Et.call(H).then(()=>{Lt==null||Lt.remove()})}return!1}},(Oe,Le)=>{let{className:rt}=Oe;return t.createElement("div",{ref:(0,s.sQ)(Y,Le),className:n()(q,rt,{"wave-quick":ge}),style:lt})})};var A=(G,q)=>{var L;const{component:B}=q;if(B==="Checkbox"&&!(!((L=G.querySelector("input"))===null||L===void 0)&&L.checked))return;const U=document.createElement("div");U.style.position="absolute",U.style.left="0px",U.style.top="0px",G==null||G.insertBefore(U,G==null?void 0:G.firstChild);const Y=(0,C.x)();let H=null;function j(){return H}H=Y(t.createElement(D,Object.assign({},q,{target:G,registerUnmount:j})),U)},Z=(G,q,L)=>{const{wave:B}=t.useContext(u.E_),[,U,Y]=(0,g.ZP)(),H=(0,p.Z)(M=>{const N=G.current;if(B!=null&&B.disabled||!N)return;const V=N.querySelector(`.${E.A}`)||N,{showEffect:te}=B||{};(te||A)(V,{className:q,token:U,component:L,event:M,hashId:Y})}),j=t.useRef(null);return M=>{b.Z.cancel(j.current),j.current=(0,b.Z)(()=>{H(M)})}},K=G=>{const{children:q,disabled:L,component:B}=G,{getPrefixCls:U}=(0,t.useContext)(u.E_),Y=(0,t.useRef)(null),H=U("wave"),[,j]=m(H),Q=Z(Y,n()(H,j),B);if(t.useEffect(()=>{const N=Y.current;if(!N||N.nodeType!==1||L)return;const V=te=>{!(0,a.Z)(te.target)||!N.getAttribute||N.getAttribute("disabled")||N.disabled||N.className.includes("disabled")||N.className.includes("-leave")||Q(te)};return N.addEventListener("click",V,!0),()=>{N.removeEventListener("click",V,!0)}},[L]),!t.isValidElement(q))return q!=null?q:null;const M=(0,s.Yr)(q)?(0,s.sQ)((0,s.C4)(q),Y):Y;return(0,l.Tm)(q,{ref:M})}},63872:function(i,d,e){"use strict";e.d(d,{A:function(){return r}});var t=e(48755);const r=`${t.Rf}-wave-target`},55743:function(i,d,e){"use strict";var t=e(59301);const r=t.createContext(void 0);d.Z=r},17004:function(i,d,e){"use strict";e.d(d,{J:function(){return r}});var t=e(59301);const r=t.createContext({}),n=t.createContext({message:{},notification:{},modal:{}});var a=null},61670:function(i,d,e){"use strict";e.d(d,{Dn:function(){return f},aG:function(){return u},hU:function(){return p},nx:function(){return l}});var t=e(92393),r=e(59301),n=e(22703),a=e(34998);const s=/^[\u4E00-\u9FA5]{2}$/,u=s.test.bind(s);function l(I){return I==="danger"?{danger:!0}:{type:I}}function o(I){return typeof I=="string"}function f(I){return I==="text"||I==="link"}function m(I,P){if(I==null)return;const k=P?" ":"";return typeof I!="string"&&typeof I!="number"&&o(I.type)&&u(I.props.children)?(0,n.Tm)(I,{children:I.props.children.split("").join(k)}):o(I)?u(I)?r.createElement("span",null,I.split("").join(k)):r.createElement("span",null,I):(0,n.M2)(I)?r.createElement("span",null,I):I}function p(I,P){let k=!1;const D=[];return r.Children.forEach(I,T=>{const A=typeof T,R=A==="string"||A==="number";if(k&&R){const Z=D.length-1,$=D[Z];D[Z]=`${$}${T}`}else D.push(T);k=R}),r.Children.map(D,T=>m(T,P))}const b=null,g=null,E=null,O=null,C=["default","primary","danger"].concat((0,t.Z)(a.i))},99571:function(i,d,e){"use strict";e.d(d,{ZP:function(){return _r}});var t=e(59301),r=e(92310),n=e.n(r),a=e(2738),s=e(8654),u=e(12919),l=e(48755),o=e(2171),f=e(31756),m=e(70045),p=e(57700),b=function(ie,it){var Yt={};for(var qt in ie)Object.prototype.hasOwnProperty.call(ie,qt)&&it.indexOf(qt)<0&&(Yt[qt]=ie[qt]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,qt=Object.getOwnPropertySymbols(ie);St{const{getPrefixCls:it,direction:Yt}=t.useContext(l.E_),{prefixCls:qt,size:St,className:Ct}=ie,jt=b(ie,["prefixCls","size","className"]),Ft=it("btn-group",qt),[,,sr]=(0,p.ZP)(),fr=t.useMemo(()=>{switch(St){case"large":return"lg";case"small":return"sm";default:return""}},[St]),gt=n()(Ft,{[`${Ft}-${fr}`]:fr,[`${Ft}-rtl`]:Yt==="rtl"},Ct,sr);return t.createElement(g.Provider,{value:St},t.createElement("div",Object.assign({},jt,{className:gt})))},C=e(61670),I=e(58617),P=e(77900),D=(0,t.forwardRef)((ie,it)=>{const{className:Yt,style:qt,children:St,prefixCls:Ct}=ie,jt=n()(`${Ct}-icon`,Yt);return t.createElement("span",{ref:it,className:jt,style:qt},St)});const T=(0,t.forwardRef)((ie,it)=>{const{prefixCls:Yt,className:qt,style:St,iconClassName:Ct}=ie,jt=n()(`${Yt}-loading-icon`,qt);return t.createElement(D,{prefixCls:Yt,className:jt,style:St,ref:it},t.createElement(I.Z,{className:Ct}))}),A=()=>({width:0,opacity:0,transform:"scale(0)"}),R=ie=>({width:ie.scrollWidth,opacity:1,transform:"scale(1)"});var $=ie=>{const{prefixCls:it,loading:Yt,existIcon:qt,className:St,style:Ct,mount:jt}=ie,Ft=!!Yt;return qt?t.createElement(T,{prefixCls:it,className:St,style:Ct}):t.createElement(P.default,{visible:Ft,motionName:`${it}-loading-icon-motion`,motionAppear:!jt,motionEnter:!jt,motionLeave:!jt,removeOnLeave:!0,onAppearStart:A,onAppearActive:R,onEnterStart:A,onEnterActive:R,onLeaveStart:R,onLeaveActive:A},(sr,fr)=>{let{className:gt,style:We}=sr;const $e=Object.assign(Object.assign({},Ct),We);return t.createElement(T,{prefixCls:it,className:n()(St,gt),style:$e,ref:fr})})},K=e(93083),G=e(63356),q=e(34998),L=e(51636),B=e(16931);const U=(ie,it)=>({[`> span, > ${ie}`]:{"&:not(:last-child)":{[`&, & > ${ie}`]:{"&:not(:disabled)":{borderInlineEndColor:it}}},"&:not(:first-child)":{[`&, & > ${ie}`]:{"&:not(:disabled)":{borderInlineStartColor:it}}}}});var H=ie=>{const{componentCls:it,fontSize:Yt,lineWidth:qt,groupBorderColor:St,colorErrorHover:Ct}=ie;return{[`${it}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${it}`]:{"&:not(:last-child)":{[`&, & > ${it}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:ie.calc(qt).mul(-1).equal(),[`&, & > ${it}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[it]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${it}-icon-only`]:{fontSize:Yt}},U(`${it}-primary`,St),U(`${it}-danger`,Ct)]}},j=e(6487),Q=e(56789),M=e(76196);const N=(ie,it)=>(ie==null?void 0:ie.replace(/[^\w/]/g,"").slice(0,it?8:6))||"",V=(ie,it)=>ie?N(ie,it):"";let te=function(){function ie(it){(0,j.Z)(this,ie);var Yt;if(this.cleared=!1,it instanceof ie){this.metaColor=it.metaColor.clone(),this.colors=(Yt=it.colors)===null||Yt===void 0?void 0:Yt.map(St=>({color:new ie(St.color),percent:St.percent})),this.cleared=it.cleared;return}const qt=Array.isArray(it);qt&&it.length?(this.colors=it.map(St=>{let{color:Ct,percent:jt}=St;return{color:new ie(Ct),percent:jt}}),this.metaColor=new M.Color(this.colors[0].color.metaColor)):this.metaColor=new M.Color(qt?"":it),(!it||qt&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return(0,Q.Z)(ie,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return V(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:Yt}=this;return Yt?`linear-gradient(90deg, ${Yt.map(St=>`${St.color.toRgbString()} ${St.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(Yt){return!Yt||this.isGradient()!==Yt.isGradient()?!1:this.isGradient()?this.colors.length===Yt.colors.length&&this.colors.every((qt,St)=>{const Ct=Yt.colors[St];return qt.percent===Ct.percent&&qt.color.equals(Ct.color)}):this.toHexString()===Yt.toHexString()}}])}();var se=e(18929);const ve=ie=>ie.map(it=>(it.colors=it.colors.map(generateColor),it)),pe=(ie,it)=>{const{r:Yt,g:qt,b:St,a:Ct}=ie.toRgb(),jt=new M.Color(ie.toRgbString()).onBackground(it).toHsv();return Ct<=.5?jt.v>.5:Yt*.299+qt*.587+St*.114>192},he=(ie,it)=>{var Yt;return`panel-${(Yt=ie.key)!==null&&Yt!==void 0?Yt:it}`},Ye=ie=>{let{prefixCls:it,presets:Yt,value:qt,onChange:St}=ie;const[Ct]=useLocale("ColorPicker"),[,jt]=useToken(),[Ft]=useMergedState(ve(Yt),{value:ve(Yt),postState:ve}),sr=`${it}-presets`,fr=useMemo(()=>Ft.reduce(($e,Me,qe)=>{const{defaultOpen:At=!0}=Me;return At&&$e.push(he(Me,qe)),$e},[]),[Ft]),gt=$e=>{St==null||St($e)},We=Ft.map(($e,Me)=>{var qe;return{key:he($e,Me),label:React.createElement("div",{className:`${sr}-label`},$e==null?void 0:$e.label),children:React.createElement("div",{className:`${sr}-items`},Array.isArray($e==null?void 0:$e.colors)&&((qe=$e.colors)===null||qe===void 0?void 0:qe.length)>0?$e.colors.map((At,Nt)=>React.createElement(ColorBlock,{key:`preset-${Nt}-${At.toHexString()}`,color:generateColor(At).toRgbString(),prefixCls:it,className:classNames(`${sr}-color`,{[`${sr}-color-checked`]:At.toHexString()===(qt==null?void 0:qt.toHexString()),[`${sr}-color-bright`]:pe(At,jt.colorBgElevated)}),onClick:()=>gt(At)})):React.createElement("span",{className:`${sr}-empty`},Ct.presetEmpty))}});return React.createElement("div",{className:sr},React.createElement(Collapse,{defaultActiveKey:fr,ghost:!0,items:We}))};var Ke=null,dt=e(45156),ft=e(28620);const lt=ie=>{const{paddingInline:it,onlyIconSize:Yt}=ie;return(0,L.mergeToken)(ie,{buttonPaddingHorizontal:it,buttonPaddingVertical:0,buttonIconOnlyFontSize:Yt})},Xe=ie=>{var it,Yt,qt,St,Ct,jt;const Ft=(it=ie.contentFontSize)!==null&&it!==void 0?it:ie.fontSize,sr=(Yt=ie.contentFontSizeSM)!==null&&Yt!==void 0?Yt:ie.fontSize,fr=(qt=ie.contentFontSizeLG)!==null&&qt!==void 0?qt:ie.fontSizeLG,gt=(St=ie.contentLineHeight)!==null&&St!==void 0?St:(0,dt.D)(Ft),We=(Ct=ie.contentLineHeightSM)!==null&&Ct!==void 0?Ct:(0,dt.D)(sr),$e=(jt=ie.contentLineHeightLG)!==null&&jt!==void 0?jt:(0,dt.D)(fr),Me=pe(new te(ie.colorBgSolid),"#fff")?"#000":"#fff",qe=q.i.reduce((At,Nt)=>Object.assign(Object.assign({},At),{[`${Nt}ShadowColor`]:`0 ${(0,K.unit)(ie.controlOutlineWidth)} 0 ${(0,ft.Z)(ie[`${Nt}1`],ie.colorBgContainer)}`}),{});return Object.assign(Object.assign({},qe),{fontWeight:400,defaultShadow:`0 ${ie.controlOutlineWidth}px 0 ${ie.controlTmpOutline}`,primaryShadow:`0 ${ie.controlOutlineWidth}px 0 ${ie.controlOutline}`,dangerShadow:`0 ${ie.controlOutlineWidth}px 0 ${ie.colorErrorOutline}`,primaryColor:ie.colorTextLightSolid,dangerColor:ie.colorTextLightSolid,borderColorDisabled:ie.colorBorder,defaultGhostColor:ie.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:ie.colorBgContainer,paddingInline:ie.paddingContentHorizontal-ie.lineWidth,paddingInlineLG:ie.paddingContentHorizontal-ie.lineWidth,paddingInlineSM:8-ie.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:ie.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:ie.colorText,textTextHoverColor:ie.colorText,textTextActiveColor:ie.colorText,textHoverBg:ie.colorFillTertiary,defaultColor:ie.colorText,defaultBg:ie.colorBgContainer,defaultBorderColor:ie.colorBorder,defaultBorderColorDisabled:ie.colorBorder,defaultHoverBg:ie.colorBgContainer,defaultHoverColor:ie.colorPrimaryHover,defaultHoverBorderColor:ie.colorPrimaryHover,defaultActiveBg:ie.colorBgContainer,defaultActiveColor:ie.colorPrimaryActive,defaultActiveBorderColor:ie.colorPrimaryActive,solidTextColor:Me,contentFontSize:Ft,contentFontSizeSM:sr,contentFontSizeLG:fr,contentLineHeight:gt,contentLineHeightSM:We,contentLineHeightLG:$e,paddingBlock:Math.max((ie.controlHeight-Ft*gt)/2-ie.lineWidth,0),paddingBlockSM:Math.max((ie.controlHeightSM-sr*We)/2-ie.lineWidth,0),paddingBlockLG:Math.max((ie.controlHeightLG-fr*$e)/2-ie.lineWidth,0)})},ge=ie=>{const{componentCls:it,iconCls:Yt,fontWeight:qt,opacityLoading:St,motionDurationSlow:Ct,motionEaseInOut:jt,marginXS:Ft,calc:sr}=ie;return{[it]:{outline:"none",position:"relative",display:"inline-flex",gap:ie.marginXS,alignItems:"center",justifyContent:"center",fontWeight:qt,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${(0,K.unit)(ie.lineWidth)} ${ie.lineType} transparent`,cursor:"pointer",transition:`all ${ie.motionDurationMid} ${ie.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:ie.colorText,"&:disabled > *":{pointerEvents:"none"},[`${it}-icon > svg`]:(0,G.Ro)(),"> a":{color:"currentColor"},"&:not(:disabled)":(0,G.Qy)(ie),[`&${it}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${it}-two-chinese-chars > *:not(${Yt})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${it}-icon-only`]:{paddingInline:0,[`&${it}-compact-item`]:{flex:"none"},[`&${it}-round`]:{width:"auto"}},[`&${it}-loading`]:{opacity:St,cursor:"default"},[`${it}-loading-icon`]:{transition:["width","opacity","margin"].map(fr=>`${fr} ${Ct} ${jt}`).join(",")},[`&:not(${it}-icon-end)`]:{[`${it}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:sr(Ft).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:sr(Ft).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${it}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:sr(Ft).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:sr(Ft).mul(-1).equal()}}}}}},Oe=(ie,it,Yt)=>({[`&:not(:disabled):not(${ie}-disabled)`]:{"&:hover":it,"&:active":Yt}}),Le=ie=>({minWidth:ie.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),rt=ie=>({borderRadius:ie.controlHeight,paddingInlineStart:ie.calc(ie.controlHeight).div(2).equal(),paddingInlineEnd:ie.calc(ie.controlHeight).div(2).equal()}),Et=ie=>({cursor:"not-allowed",borderColor:ie.borderColorDisabled,color:ie.colorTextDisabled,background:ie.colorBgContainerDisabled,boxShadow:"none"}),Lt=(ie,it,Yt,qt,St,Ct,jt,Ft)=>({[`&${ie}-background-ghost`]:Object.assign(Object.assign({color:Yt||void 0,background:it,borderColor:qt||void 0,boxShadow:"none"},Oe(ie,Object.assign({background:it},jt),Object.assign({background:it},Ft))),{"&:disabled":{cursor:"not-allowed",color:St||void 0,borderColor:Ct||void 0}})}),kt=ie=>({[`&:disabled, &${ie.componentCls}-disabled`]:Object.assign({},Et(ie))}),De=ie=>({[`&:disabled, &${ie.componentCls}-disabled`]:{cursor:"not-allowed",color:ie.colorTextDisabled}}),Qe=(ie,it,Yt,qt)=>{const Ct=qt&&["link","text"].includes(qt)?De:kt;return Object.assign(Object.assign({},Ct(ie)),Oe(ie.componentCls,it,Yt))},_t=(ie,it,Yt,qt,St)=>({[`&${ie.componentCls}-variant-solid`]:Object.assign({color:it,background:Yt},Qe(ie,qt,St))}),je=(ie,it,Yt,qt,St)=>({[`&${ie.componentCls}-variant-outlined, &${ie.componentCls}-variant-dashed`]:Object.assign({borderColor:it,background:Yt},Qe(ie,qt,St))}),we=ie=>({[`&${ie.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),ce=(ie,it,Yt,qt)=>({[`&${ie.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:it},Qe(ie,Yt,qt))}),Se=(ie,it,Yt,qt,St)=>({[`&${ie.componentCls}-variant-${Yt}`]:Object.assign({color:it,boxShadow:"none"},Qe(ie,qt,St,Yt))}),Ce=ie=>{const{componentCls:it}=ie;return q.i.reduce((Yt,qt)=>{const St=ie[`${qt}6`],Ct=ie[`${qt}1`],jt=ie[`${qt}5`],Ft=ie[`${qt}2`],sr=ie[`${qt}3`],fr=ie[`${qt}7`];return Object.assign(Object.assign({},Yt),{[`&${it}-color-${qt}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:St,boxShadow:ie[`${qt}ShadowColor`]},_t(ie,ie.colorTextLightSolid,St,{background:jt},{background:fr})),je(ie,St,ie.colorBgContainer,{color:jt,borderColor:jt,background:ie.colorBgContainer},{color:fr,borderColor:fr,background:ie.colorBgContainer})),we(ie)),ce(ie,Ct,{background:Ft},{background:sr})),Se(ie,St,"link",{color:jt},{color:fr})),Se(ie,St,"text",{color:jt,background:Ct},{color:fr,background:sr}))})},{})},et=ie=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:ie.defaultColor,boxShadow:ie.defaultShadow},_t(ie,ie.solidTextColor,ie.colorBgSolid,{color:ie.solidTextColor,background:ie.colorBgSolidHover},{color:ie.solidTextColor,background:ie.colorBgSolidActive})),we(ie)),ce(ie,ie.colorFillTertiary,{background:ie.colorFillSecondary},{background:ie.colorFill})),Lt(ie.componentCls,ie.ghostBg,ie.defaultGhostColor,ie.defaultGhostBorderColor,ie.colorTextDisabled,ie.colorBorder)),Se(ie,ie.textTextColor,"link",{color:ie.colorLinkHover,background:ie.linkHoverBg},{color:ie.colorLinkActive})),yt=ie=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:ie.colorPrimary,boxShadow:ie.primaryShadow},je(ie,ie.colorPrimary,ie.colorBgContainer,{color:ie.colorPrimaryTextHover,borderColor:ie.colorPrimaryHover,background:ie.colorBgContainer},{color:ie.colorPrimaryTextActive,borderColor:ie.colorPrimaryActive,background:ie.colorBgContainer})),we(ie)),ce(ie,ie.colorPrimaryBg,{background:ie.colorPrimaryBgHover},{background:ie.colorPrimaryBorder})),Se(ie,ie.colorPrimaryText,"text",{color:ie.colorPrimaryTextHover,background:ie.colorPrimaryBg},{color:ie.colorPrimaryTextActive,background:ie.colorPrimaryBorder})),Se(ie,ie.colorPrimaryText,"link",{color:ie.colorPrimaryTextHover,background:ie.linkHoverBg},{color:ie.colorPrimaryTextActive})),Lt(ie.componentCls,ie.ghostBg,ie.colorPrimary,ie.colorPrimary,ie.colorTextDisabled,ie.colorBorder,{color:ie.colorPrimaryHover,borderColor:ie.colorPrimaryHover},{color:ie.colorPrimaryActive,borderColor:ie.colorPrimaryActive})),le=ie=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:ie.colorError,boxShadow:ie.dangerShadow},_t(ie,ie.dangerColor,ie.colorError,{background:ie.colorErrorHover},{background:ie.colorErrorActive})),je(ie,ie.colorError,ie.colorBgContainer,{color:ie.colorErrorHover,borderColor:ie.colorErrorBorderHover},{color:ie.colorErrorActive,borderColor:ie.colorErrorActive})),we(ie)),ce(ie,ie.colorErrorBg,{background:ie.colorErrorBgFilledHover},{background:ie.colorErrorBgActive})),Se(ie,ie.colorError,"text",{color:ie.colorErrorHover,background:ie.colorErrorBg},{color:ie.colorErrorHover,background:ie.colorErrorBgActive})),Se(ie,ie.colorError,"link",{color:ie.colorErrorHover},{color:ie.colorErrorActive})),Lt(ie.componentCls,ie.ghostBg,ie.colorError,ie.colorError,ie.colorTextDisabled,ie.colorBorder,{color:ie.colorErrorHover,borderColor:ie.colorErrorHover},{color:ie.colorErrorActive,borderColor:ie.colorErrorActive})),me=ie=>Object.assign(Object.assign({},Se(ie,ie.colorLink,"link",{color:ie.colorLinkHover},{color:ie.colorLinkActive})),Lt(ie.componentCls,ie.ghostBg,ie.colorInfo,ie.colorInfo,ie.colorTextDisabled,ie.colorBorder,{color:ie.colorInfoHover,borderColor:ie.colorInfoHover},{color:ie.colorInfoActive,borderColor:ie.colorInfoActive})),ct=ie=>{const{componentCls:it}=ie;return Object.assign({[`${it}-color-default`]:et(ie),[`${it}-color-primary`]:yt(ie),[`${it}-color-dangerous`]:le(ie),[`${it}-color-link`]:me(ie)},Ce(ie))},Ve=ie=>Object.assign(Object.assign(Object.assign(Object.assign({},je(ie,ie.defaultBorderColor,ie.defaultBg,{color:ie.defaultHoverColor,borderColor:ie.defaultHoverBorderColor,background:ie.defaultHoverBg},{color:ie.defaultActiveColor,borderColor:ie.defaultActiveBorderColor,background:ie.defaultActiveBg})),Se(ie,ie.textTextColor,"text",{color:ie.textTextHoverColor,background:ie.textHoverBg},{color:ie.textTextActiveColor,background:ie.colorBgTextActive})),_t(ie,ie.primaryColor,ie.colorPrimary,{background:ie.colorPrimaryHover,color:ie.primaryColor},{background:ie.colorPrimaryActive,color:ie.primaryColor})),Se(ie,ie.colorLink,"link",{color:ie.colorLinkHover,background:ie.linkHoverBg},{color:ie.colorLinkActive})),ze=function(ie){let it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:Yt,controlHeight:qt,fontSize:St,borderRadius:Ct,buttonPaddingHorizontal:jt,iconCls:Ft,buttonPaddingVertical:sr,buttonIconOnlyFontSize:fr}=ie;return[{[it]:{fontSize:St,height:qt,padding:`${(0,K.unit)(sr)} ${(0,K.unit)(jt)}`,borderRadius:Ct,[`&${Yt}-icon-only`]:{width:qt,[Ft]:{fontSize:fr}}}},{[`${Yt}${Yt}-circle${it}`]:Le(ie)},{[`${Yt}${Yt}-round${it}`]:rt(ie)}]},nt=ie=>{const it=(0,L.mergeToken)(ie,{fontSize:ie.contentFontSize});return ze(it,ie.componentCls)},Dt=ie=>{const it=(0,L.mergeToken)(ie,{controlHeight:ie.controlHeightSM,fontSize:ie.contentFontSizeSM,padding:ie.paddingXS,buttonPaddingHorizontal:ie.paddingInlineSM,buttonPaddingVertical:0,borderRadius:ie.borderRadiusSM,buttonIconOnlyFontSize:ie.onlyIconSizeSM});return ze(it,`${ie.componentCls}-sm`)},ut=ie=>{const it=(0,L.mergeToken)(ie,{controlHeight:ie.controlHeightLG,fontSize:ie.contentFontSizeLG,buttonPaddingHorizontal:ie.paddingInlineLG,buttonPaddingVertical:0,borderRadius:ie.borderRadiusLG,buttonIconOnlyFontSize:ie.onlyIconSizeLG});return ze(it,`${ie.componentCls}-lg`)},Te=ie=>{const{componentCls:it}=ie;return{[it]:{[`&${it}-block`]:{width:"100%"}}}};var ot=(0,B.I$)("Button",ie=>{const it=lt(ie);return[ge(it),nt(it),Dt(it),ut(it),Te(it),ct(it),Ve(it),H(it)]},Xe,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}}),Be=e(56119);function ht(ie,it){return{[`&-item:not(${it}-last-item)`]:{marginBottom:ie.calc(ie.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Mt(ie,it){return{[`&-item:not(${it}-first-item):not(${it}-last-item)`]:{borderRadius:0},[`&-item${it}-first-item:not(${it}-last-item)`]:{[`&, &${ie}-sm, &${ie}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${it}-last-item:not(${it}-first-item)`]:{[`&, &${ie}-sm, &${ie}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function ur(ie){const it=`${ie.componentCls}-compact-vertical`;return{[it]:Object.assign(Object.assign({},ht(ie,it)),Mt(ie.componentCls,it))}}const ir=ie=>{const{componentCls:it,colorPrimaryHover:Yt,lineWidth:qt,calc:St}=ie,Ct=St(qt).mul(-1).equal(),jt=Ft=>{const sr=`${it}-compact${Ft?"-vertical":""}-item${it}-primary:not([disabled])`;return{[`${sr} + ${sr}::before`]:{position:"absolute",top:Ft?Ct:0,insetInlineStart:Ft?0:Ct,backgroundColor:Yt,content:'""',width:Ft?"100%":qt,height:Ft?qt:"100%"}}};return Object.assign(Object.assign({},jt()),jt(!0))};var Sr=(0,B.bk)(["Button","compact"],ie=>{const it=lt(ie);return[(0,Be.c)(it),ur(it),ir(it)]},Xe),Ze=function(ie,it){var Yt={};for(var qt in ie)Object.prototype.hasOwnProperty.call(ie,qt)&&it.indexOf(qt)<0&&(Yt[qt]=ie[qt]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,qt=Object.getOwnPropertySymbols(ie);St{var Yt,qt;const{loading:St=!1,prefixCls:Ct,color:jt,variant:Ft,type:sr,danger:fr=!1,shape:gt="default",size:We,styles:$e,disabled:Me,className:qe,rootClassName:At,children:Nt,icon:vr,iconPosition:Ie="start",ghost:Tr=!1,block:an=!1,htmlType:ye="button",classNames:Fr,style:zr={},autoInsertSpace:An,autoFocus:Xn}=ie,mn=Ze(ie,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),Pn=sr||"default",[fa,Jn]=(0,t.useMemo)(()=>{if(jt&&Ft)return[jt,Ft];const vt=mr[Pn]||[];return fr?["danger",vt[1]]:vt},[sr,jt,Ft,fr]),ao=fa==="danger"?"dangerous":fa,{getPrefixCls:mo,direction:Tn,autoInsertSpace:oo,className:Ta,style:Fe,classNames:ia,styles:ja}=(0,l.dj)("button"),Ua=(Yt=An!=null?An:oo)!==null&&Yt!==void 0?Yt:!0,za=mo("btn",Ct),[va,la,Sn]=ot(za),sa=(0,t.useContext)(o.Z),Yn=Me!=null?Me:sa,lo=(0,t.useContext)(g),Ha=(0,t.useMemo)(()=>dr(St),[St]),[so,_i]=(0,t.useState)(Ha.loading),[Ya,qa]=(0,t.useState)(!1),ke=(0,t.useRef)(null),Ee=(0,s.x1)(it,ke),Ge=t.Children.count(Nt)===1&&!vr&&!(0,C.Dn)(Jn),J=(0,t.useRef)(!0);t.useEffect(()=>(J.current=!1,()=>{J.current=!0}),[]),(0,t.useEffect)(()=>{let vt=null;Ha.delay>0?vt=setTimeout(()=>{vt=null,_i(!0)},Ha.delay):_i(Ha.loading);function Ut(){vt&&(clearTimeout(vt),vt=null)}return Ut},[Ha]),(0,t.useEffect)(()=>{if(!ke.current||!Ua)return;const vt=ke.current.textContent||"";Ge&&(0,C.aG)(vt)?Ya||qa(!0):Ya&&qa(!1)}),(0,t.useEffect)(()=>{Xn&&ke.current&&ke.current.focus()},[]);const Tt=t.useCallback(vt=>{var Ut;if(so||Yn){vt.preventDefault();return}(Ut=ie.onClick)===null||Ut===void 0||Ut.call(ie,("href"in ie,vt))},[ie.onClick,so,Yn]),{compactSize:Qt,compactItemClassnames:xr}=(0,m.ri)(za,Tn),Dr={large:"lg",small:"sm",middle:void 0},Er=(0,f.Z)(vt=>{var Ut,lr;return(lr=(Ut=We!=null?We:Qt)!==null&&Ut!==void 0?Ut:lo)!==null&&lr!==void 0?lr:vt}),sn=Er&&(qt=Dr[Er])!==null&&qt!==void 0?qt:"",ga=so?"loading":vr,Rr=(0,a.Z)(mn,["navigate"]),rn=n()(za,la,Sn,{[`${za}-${gt}`]:gt!=="default"&>,[`${za}-${Pn}`]:Pn,[`${za}-dangerous`]:fr,[`${za}-color-${ao}`]:ao,[`${za}-variant-${Jn}`]:Jn,[`${za}-${sn}`]:sn,[`${za}-icon-only`]:!Nt&&Nt!==0&&!!ga,[`${za}-background-ghost`]:Tr&&!(0,C.Dn)(Jn),[`${za}-loading`]:so,[`${za}-two-chinese-chars`]:Ya&&Ua&&!so,[`${za}-block`]:an,[`${za}-rtl`]:Tn==="rtl",[`${za}-icon-end`]:Ie==="end"},xr,qe,At,Ta),tt=Object.assign(Object.assign({},Fe),zr),be=n()(Fr==null?void 0:Fr.icon,ia.icon),ue=Object.assign(Object.assign({},($e==null?void 0:$e.icon)||{}),ja.icon||{}),He=vr&&!so?t.createElement(D,{prefixCls:za,className:be,style:ue},vr):St&&typeof St=="object"&&St.icon?t.createElement(D,{prefixCls:za,className:be,style:ue},St.icon):t.createElement($,{existIcon:!!vr,prefixCls:za,loading:so,mount:J.current}),Re=Nt||Nt===0?(0,C.hU)(Nt,Ge&&Ua):null;if(Rr.href!==void 0)return va(t.createElement("a",Object.assign({},Rr,{className:n()(rn,{[`${za}-disabled`]:Yn}),href:Yn?void 0:Rr.href,style:tt,onClick:Tt,ref:Ee,tabIndex:Yn?-1:0}),He,Re));let bt=t.createElement("button",Object.assign({},mn,{type:ye,className:rn,style:tt,onClick:Tt,disabled:Yn,ref:Ee}),He,Re,xr&&t.createElement(Sr,{prefixCls:za}));return(0,C.Dn)(Jn)||(bt=t.createElement(u.Z,{component:"Button",disabled:so},bt)),va(bt)});wt.Group=O,wt.__ANT_BUTTON=!0;var Xt=wt,_r=Xt},5269:function(i,d,e){"use strict";var t=e(5472);d.Z=t.Z},2171:function(i,d,e){"use strict";e.d(d,{n:function(){return n}});var t=e(59301);const r=t.createContext(!1),n=a=>{let{children:s,disabled:u}=a;const l=t.useContext(r);return t.createElement(r.Provider,{value:u!=null?u:l},s)};d.Z=r},23069:function(i,d,e){"use strict";e.d(d,{q:function(){return n}});var t=e(59301);const r=t.createContext(void 0),n=a=>{let{children:s,size:u}=a;const l=t.useContext(r);return t.createElement(r.Provider,{value:u||l},s)};d.Z=r},11774:function(i,d,e){"use strict";e.d(d,{x:function(){return L}});var t=e(59301),r=e(4676),n=e.t(r,2),a=e(85444),s=e(21566),u=e(10928),l=e(20049),o=(0,l.Z)({},n),f=o.version,m=o.render,p=o.unmountComponentAtNode,b;try{var g=Number((f||"").split(".")[0]);g>=18&&(b=o.createRoot)}catch(B){}function E(B){var U=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;U&&(0,u.Z)(U)==="object"&&(U.usingClientEntryPoint=B)}var O="__rc_react_root__";function C(B,U){E(!0);var Y=U[O]||b(U);E(!1),Y.render(B),U[O]=Y}function I(B,U){m==null||m(B,U)}function P(B,U){}function k(B,U){if(b){C(B,U);return}I(B,U)}function D(B){return T.apply(this,arguments)}function T(){return T=(0,s.Z)((0,a.Z)().mark(function B(U){return(0,a.Z)().wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return H.abrupt("return",Promise.resolve().then(function(){var j;(j=U[O])===null||j===void 0||j.unmount(),delete U[O]}));case 1:case"end":return H.stop()}},B)})),T.apply(this,arguments)}function A(B){p(B)}function R(B){}function Z(B){return $.apply(this,arguments)}function $(){return $=(0,s.Z)((0,a.Z)().mark(function B(U){return(0,a.Z)().wrap(function(H){for(;;)switch(H.prev=H.next){case 0:if(b===void 0){H.next=2;break}return H.abrupt("return",D(U));case 2:A(U);case 3:case"end":return H.stop()}},B)})),$.apply(this,arguments)}let G=(B,U)=>(k(B,U),()=>Z(U));function q(B){G=B}function L(){return G}},48755:function(i,d,e){"use strict";e.d(d,{E_:function(){return u},Rf:function(){return r},dj:function(){return f},oR:function(){return n},tr:function(){return a}});var t=e(59301);const r="ant",n="anticon",a=["outlined","borderless","filled","underlined"],s=(m,p)=>p||(m?`${r}-${m}`:r),u=t.createContext({getPrefixCls:s,iconPrefixCls:n}),{Consumer:l}=u,o={};function f(m){const p=t.useContext(u),{getPrefixCls:b,direction:g,getPopupContainer:E}=p,O=p[m];return Object.assign(Object.assign({classNames:o,styles:o},O),{getPrefixCls:b,direction:g,getPopupContainer:E})}},83397:function(i,d,e){"use strict";var t=e(57700);const r=n=>{const[,,,,a]=(0,t.ZP)();return a?`${n}-css-var`:""};d.Z=r},31756:function(i,d,e){"use strict";var t=e(59301),r=e(23069);const n=a=>{const s=t.useContext(r.Z);return t.useMemo(()=>a?typeof a=="string"?a!=null?a:s:typeof a=="function"?a(s):s:s,[a,s])};d.Z=n},60840:function(i,d,e){"use strict";e.d(d,{ZP:function(){return we},w6:function(){return Qe}});var t=e(59301),r=e.t(t,2),n=e(93083),a=e(18418),s=e(80547),u=e(24434),l=e(32383),o=e(98350),f=e(25012),m=e(22200);const p="internalMark";var g=ce=>{const{locale:Se={},children:Ce,_ANT_MARK__:et}=ce;t.useEffect(()=>(0,f.f)(Se==null?void 0:Se.Modal),[Se]);const yt=t.useMemo(()=>Object.assign(Object.assign({},Se),{exist:!0}),[Se]);return t.createElement(m.Z.Provider,{value:yt},Ce)},E=e(85981),O=e(42146),C=e(29796),I=e(90820),P=e(48755),k=e(68361),D=e(17835),T=e(47273),A=e(810);const R=`-ant-${Date.now()}-${Math.random()}`;function Z(ce,Se){const Ce={},et=(me,ct)=>{let Ve=me.clone();return Ve=(ct==null?void 0:ct(Ve))||Ve,Ve.toRgbString()},yt=(me,ct)=>{const Ve=new D.FastColor(me),ze=(0,k.generate)(Ve.toRgbString());Ce[`${ct}-color`]=et(Ve),Ce[`${ct}-color-disabled`]=ze[1],Ce[`${ct}-color-hover`]=ze[4],Ce[`${ct}-color-active`]=ze[6],Ce[`${ct}-color-outline`]=Ve.clone().setA(.2).toRgbString(),Ce[`${ct}-color-deprecated-bg`]=ze[0],Ce[`${ct}-color-deprecated-border`]=ze[2]};if(Se.primaryColor){yt(Se.primaryColor,"primary");const me=new D.FastColor(Se.primaryColor),ct=(0,k.generate)(me.toRgbString());ct.forEach((ze,nt)=>{Ce[`primary-${nt+1}`]=ze}),Ce["primary-color-deprecated-l-35"]=et(me,ze=>ze.lighten(35)),Ce["primary-color-deprecated-l-20"]=et(me,ze=>ze.lighten(20)),Ce["primary-color-deprecated-t-20"]=et(me,ze=>ze.tint(20)),Ce["primary-color-deprecated-t-50"]=et(me,ze=>ze.tint(50)),Ce["primary-color-deprecated-f-12"]=et(me,ze=>ze.setA(ze.a*.12));const Ve=new D.FastColor(ct[0]);Ce["primary-color-active-deprecated-f-30"]=et(Ve,ze=>ze.setA(ze.a*.3)),Ce["primary-color-active-deprecated-d-02"]=et(Ve,ze=>ze.darken(2))}return Se.successColor&&yt(Se.successColor,"success"),Se.warningColor&&yt(Se.warningColor,"warning"),Se.errorColor&&yt(Se.errorColor,"error"),Se.infoColor&&yt(Se.infoColor,"info"),`
:root {
${Object.keys(Ce).map(me=>`--${ce}-${me}: ${Ce[me]};`).join(`