newfront/dist/js/app.7588c5a0.js
2025-06-02 14:10:01 +08:00

2 lines
37 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(function(){"use strict";var e={1911:function(e,t,s){s.d(t,{A:function(){return pe}});var a=s(6768),n=s(4232),o=s(5130);const i={class:"navbar"},r={class:"container"},c={class:"navbar-brand"},l={class:"burger-container"},d={key:0,class:"unread-dot burger-badge"},u={class:"navbar-end"},h={key:0,class:"navbar-item user-dropdown",style:{padding:"0"}},p={class:"avatar-wrapper"},g=["src","alt"],m={key:0,class:"unread-dot avatar-badge"},f={class:"user-nickname"},v={class:"dropdown-menu"},k={key:0,class:"unread-dot"},b={key:1,class:"navbar-item"},y={key:0,class:"activation-dialog"},C={class:"activation-dialog-content"},w={class:"activation-methods"},L={class:"activation-method"},E={class:"activation-method"},_={key:1,class:"message-modal"},A={class:"message-modal-content"},M={class:"message-modal-header"},x={class:"message-modal-body",ref:"messageContainer"},I={key:0,class:"no-messages"},X={key:1,class:"message-list"},S={class:"message-header"},T={class:"message-time"},P={key:0,class:"unread-tag"},j=["innerHTML"],O={key:1,class:"message-content"},z=["href"],W={key:1},q={key:2,class:"message-content"},D=["href"],N={key:1},V={key:3,class:"message-content"},U=["href"],$={key:1},F={key:4,class:"message-content"},Q={key:5,class:"message-content"},B=["href"],R={key:1},Z={key:6,class:"message-content"},J=["href"],H={key:1},K={key:7,class:"message-content"},G=["href"],Y={key:1},ee={key:8,class:"message-content"},te={key:2,class:"pagination"},se=["disabled"],ae={class:"page-info"},ne=["disabled"];function oe(e,t,s,oe,ie,re){const ce=(0,a.g2)("router-link");return(0,a.uX)(),(0,a.CE)("nav",i,[(0,a.Lk)("div",r,[(0,a.Lk)("div",c,[(0,a.bF)(ce,{to:"/",class:"navbar-logo"},{default:(0,a.k6)((()=>[t[12]||(t[12]=(0,a.Lk)("img",{src:"https://download.xn--xhq44jb2fzpc.com/images/logo-hd.png",alt:"NEU小站",class:"navbar-logo-img"},null,-1)),t[13]||(t[13]=(0,a.Lk)("span",null,"NEU小站",-1)),re.currentTagConfig?((0,a.uX)(),(0,a.CE)("span",{key:0,style:(0,n.Tr)({backgroundColor:re.currentTagConfig.backgroundColor}),class:"route-tag"},(0,n.v_)(re.currentTagConfig.text),5)):(0,a.Q3)("",!0)])),_:1}),(0,a.Lk)("div",l,[(0,a.Lk)("div",{class:(0,n.C4)(["navbar-burger",{"is-active":ie.isMenuActive}]),onClick:t[0]||(t[0]=(...e)=>re.toggleMenu&&re.toggleMenu(...e))},t[14]||(t[14]=[(0,a.Lk)("span",null,null,-1),(0,a.Lk)("span",null,null,-1),(0,a.Lk)("span",null,null,-1)]),2),ie.userInfo&&ie.userInfo.messageUnread?((0,a.uX)(),(0,a.CE)("span",d)):(0,a.Q3)("",!0)])]),(0,a.Lk)("div",{class:(0,n.C4)(["navbar-menu",{"is-active":ie.isMenuActive}])},[(0,a.Lk)("div",u,[(0,a.bF)(ce,{to:"/",class:"navbar-item"},{default:(0,a.k6)((()=>t[15]||(t[15]=[(0,a.eW)("首页")]))),_:1}),(0,a.bF)(ce,{to:"/strategy",class:"navbar-item"},{default:(0,a.k6)((()=>t[16]||(t[16]=[(0,a.eW)("攻略指南")]))),_:1}),(0,a.bF)(ce,{to:"/resources",class:"navbar-item"},{default:(0,a.k6)((()=>t[17]||(t[17]=[(0,a.eW)("资源共享")]))),_:1}),(0,a.bF)(ce,{to:"/app",class:"navbar-item"},{default:(0,a.k6)((()=>t[18]||(t[18]=[(0,a.eW)("应用中心")]))),_:1}),(0,a.bF)(ce,{to:"/widgets",class:"navbar-item"},{default:(0,a.k6)((()=>t[19]||(t[19]=[(0,a.eW)("小工具")]))),_:1}),(0,a.bF)(ce,{to:"/about",class:"navbar-item"},{default:(0,a.k6)((()=>t[20]||(t[20]=[(0,a.eW)("关于")]))),_:1}),(0,a.bF)(ce,{to:"/search",class:"navbar-item"},{default:(0,a.k6)((()=>t[21]||(t[21]=[(0,a.eW)("搜索")]))),_:1}),ie.userInfo?((0,a.uX)(),(0,a.CE)("div",h,[(0,a.Lk)("div",{class:"user-info",onClick:t[1]||(t[1]=(...e)=>re.toggleDropdown&&re.toggleDropdown(...e))},[(0,a.Lk)("div",p,[(0,a.Lk)("img",{src:ie.userInfo.avatar_path,class:"user-avatar",alt:ie.userInfo.nickname},null,8,g),ie.userInfo.messageUnread?((0,a.uX)(),(0,a.CE)("span",m)):(0,a.Q3)("",!0)]),(0,a.Lk)("span",f,(0,n.v_)(ie.userInfo.nickname),1),(0,a.Lk)("span",{class:(0,n.C4)(["dropdown-arrow",{"is-active":ie.isDropdownActive}])},"▼",2)]),(0,a.bo)((0,a.Lk)("div",v,[(0,a.Lk)("div",{class:"dropdown-item",onClick:t[2]||(t[2]=(...e)=>re.handleUserCenter&&re.handleUserCenter(...e))},"个人中心"),(0,a.Lk)("div",{class:"dropdown-item",onClick:t[3]||(t[3]=(...e)=>re.handleMessages&&re.handleMessages(...e))},[t[22]||(t[22]=(0,a.eW)(" 我的消息 ")),ie.userInfo.messageUnread?((0,a.uX)(),(0,a.CE)("span",k)):(0,a.Q3)("",!0)]),(0,a.Lk)("div",{class:"dropdown-item",onClick:t[4]||(t[4]=(...e)=>re.handleLogout&&re.handleLogout(...e))},"退出登录")],512),[[o.aG,ie.isDropdownActive]])])):((0,a.uX)(),(0,a.CE)("div",b,[(0,a.Lk)("a",{class:"login-btn",onClick:t[5]||(t[5]=(...e)=>re.handleLogin&&re.handleLogin(...e))},"登录")]))])],2)]),ie.showActivationDialog?((0,a.uX)(),(0,a.CE)("div",y,[(0,a.Lk)("div",C,[t[27]||(t[27]=(0,a.Lk)("h3",null,"账户激活",-1)),t[28]||(t[28]=(0,a.Lk)("p",null,"您的账户尚未激活,请选择以下方式进行激活:",-1)),(0,a.Lk)("div",w,[(0,a.Lk)("div",L,[t[23]||(t[23]=(0,a.Lk)("h4",null,"方式 1NEU 校园网验证",-1)),t[24]||(t[24]=(0,a.Lk)("p",null,"请连接 NEU 校园网后点击下面的验证按钮(暂不支持秦皇岛分校)",-1)),(0,a.Lk)("button",{onClick:t[6]||(t[6]=(...e)=>re.handleNetworkVerify&&re.handleNetworkVerify(...e)),class:"verify-btn"},"校园网验证")]),(0,a.Lk)("div",E,[t[25]||(t[25]=(0,a.Lk)("h4",null,"方式 2校园邮箱验证",-1)),t[26]||(t[26]=(0,a.Lk)("p",null,"使用 @stu.neu.edu.cn 或 @stu.neuq.edu.cn 后缀的校园邮箱验证",-1)),(0,a.Lk)("button",{onClick:t[7]||(t[7]=(...e)=>re.handleEmailVerify&&re.handleEmailVerify(...e)),class:"verify-btn"},"邮箱验证")])]),(0,a.Lk)("button",{onClick:t[8]||(t[8]=(...e)=>re.handleLogout&&re.handleLogout(...e)),class:"close-btn"},"退出登录")])])):(0,a.Q3)("",!0),ie.showMessageModal?((0,a.uX)(),(0,a.CE)("div",_,[(0,a.Lk)("div",A,[(0,a.Lk)("div",M,[t[29]||(t[29]=(0,a.Lk)("h3",null,"我的消息",-1)),(0,a.Lk)("span",{class:"close-icon",onClick:t[9]||(t[9]=(...e)=>re.closeMessageModal&&re.closeMessageModal(...e))},"×")]),(0,a.Lk)("div",x,[0===ie.messages.length?((0,a.uX)(),(0,a.CE)("div",I," 暂无消息 ")):((0,a.uX)(),(0,a.CE)("div",X,[((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(ie.messages,(e=>((0,a.uX)(),(0,a.CE)("div",{key:e.id,class:"message-item"},[(0,a.Lk)("div",S,[(0,a.Lk)("span",T,(0,n.v_)(re.formatDate(e.created_at)),1),e.status?(0,a.Q3)("",!0):((0,a.uX)(),(0,a.CE)("span",P,"未读"))]),0===e.type?((0,a.uX)(),(0,a.CE)("div",{key:0,class:"message-content",innerHTML:e.content},null,8,j)):1===e.type?((0,a.uX)(),(0,a.CE)("div",O,[t[30]||(t[30]=(0,a.eW)(" 您在《")),e.article_id?((0,a.uX)(),(0,a.CE)("a",{key:0,href:"https://www.xn--xhq44jb2fzpc.com/article/"+e.article_id,target:"_blank"},(0,n.v_)(e.article_title),9,z)):((0,a.uX)(),(0,a.CE)("span",W,(0,n.v_)(e.article_title),1)),(0,a.eW)("》内容下的「"+(0,n.v_)(e.original_content)+"」评论被回复:「"+(0,n.v_)(e.reply_content)+"」 ",1)])):2===e.type?((0,a.uX)(),(0,a.CE)("div",q,[t[31]||(t[31]=(0,a.eW)(" 您的投稿《")),e.article_id?((0,a.uX)(),(0,a.CE)("a",{key:0,href:"https://www.xn--xhq44jb2fzpc.com/article/"+e.article_id,target:"_blank"},(0,n.v_)(e.title),9,D)):((0,a.uX)(),(0,a.CE)("span",N,(0,n.v_)(e.title),1)),(0,a.eW)("》审核"+(0,n.v_)(e.pass?"已通过":"未通过")+(0,n.v_)(e.note?",审核备注:"+e.note:""),1)])):3===e.type?((0,a.uX)(),(0,a.CE)("div",V,[t[32]||(t[32]=(0,a.eW)(' 您添加的课程"')),e.course_id?((0,a.uX)(),(0,a.CE)("a",{key:0,href:"https://course.xn--xhq44jb2fzpc.com/courses?c="+re.encodeBase64(e.course_id),target:"_blank"},(0,n.v_)(e.course_name),9,U)):((0,a.uX)(),(0,a.CE)("span",$,(0,n.v_)(e.course_name),1)),(0,a.eW)('"审核'+(0,n.v_)(e.course_status),1)])):4===e.type?((0,a.uX)(),(0,a.CE)("div",F," 您的密钥「"+(0,n.v_)(e.key_plaintext)+"」使用次数已用尽,继续投稿可获得新的密钥。 ",1)):5===e.type?((0,a.uX)(),(0,a.CE)("div",Q,[t[33]||(t[33]=(0,a.eW)(" 您在《")),e.article_id?((0,a.uX)(),(0,a.CE)("a",{key:0,href:"https://www.xn--xhq44jb2fzpc.com/article/"+e.article_id,target:"_blank"},(0,n.v_)(e.article_title),9,B)):((0,a.uX)(),(0,a.CE)("span",R,(0,n.v_)(e.article_title),1)),(0,a.eW)("》内容下的「"+(0,n.v_)(e.content)+"」评论被点赞。 ",1)])):6===e.type?((0,a.uX)(),(0,a.CE)("div",Z,[t[34]||(t[34]=(0,a.eW)(" 您的内容《")),e.article_id?((0,a.uX)(),(0,a.CE)("a",{key:0,href:"https://www.xn--xhq44jb2fzpc.com/article/"+e.article_id,target:"_blank"},(0,n.v_)(e.article_title),9,J)):((0,a.uX)(),(0,a.CE)("span",H,(0,n.v_)(e.article_title),1)),(0,a.eW)("》收到新评论:「"+(0,n.v_)(e.comment_content)+"」 ",1)])):7===e.type?((0,a.uX)(),(0,a.CE)("div",K,[t[35]||(t[35]=(0,a.eW)(" 恭喜您的内容《")),e.article_id?((0,a.uX)(),(0,a.CE)("a",{key:0,href:"https://www.xn--xhq44jb2fzpc.com/article/"+e.article_id,target:"_blank"},(0,n.v_)(e.article_title),9,G)):((0,a.uX)(),(0,a.CE)("span",Y,(0,n.v_)(e.article_title),1)),(0,a.eW)("》浏览量达到"+(0,n.v_)(e.view_count)+"感谢您为NEU小站贡献优质内容小站因为有你而更加精彩~ ",1)])):((0,a.uX)(),(0,a.CE)("div",ee,(0,n.v_)(e.error||"未知消息类型"),1))])))),128))])),ie.totalPages>1?((0,a.uX)(),(0,a.CE)("div",te,[(0,a.Lk)("button",{disabled:1===ie.currentPage,onClick:t[10]||(t[10]=e=>re.loadMessages(ie.currentPage-1)),class:"page-btn"},"上一页",8,se),(0,a.Lk)("span",ae,(0,n.v_)(ie.currentPage)+" / "+(0,n.v_)(ie.totalPages),1),(0,a.Lk)("button",{disabled:ie.currentPage===ie.totalPages,onClick:t[11]||(t[11]=e=>re.loadMessages(ie.currentPage+1)),class:"page-btn"},"下一页",8,ne)])):(0,a.Q3)("",!0)],512)])])):(0,a.Q3)("",!0)])}s(4114),s(8111),s(116),s(3579),s(4979);var ie=s(8704),re=s(4373),ce=s(4993),le=s(9090),de={name:"NavBar",data(){return{isMenuActive:!1,isDropdownActive:!1,userInfo:null,showActivationDialog:!1,isActivated:!1,showMessageModal:!1,messages:[],loading:!1,currentPage:1,totalPages:1,pageSize:10,tagConfigurations:[{text:"应用",backgroundColor:"#ff8c00",routes:["/app","/app/"],wildcard:!1},{text:"工具",backgroundColor:"#3273dc",routes:["/widgets"],wildcard:!0}]}},computed:{currentTagConfig(){const e=this.$route.path;return this.tagConfigurations.find((t=>!!t.routes.includes(e)||!!t.wildcard&&t.routes.some((t=>e===t||e.startsWith(t+"/")))))||null}},mounted(){this.checkLoginStatus()},methods:{handleLogin(){(0,le.A)().then((e=>{console.log(e),this.checkLoginStatus()})).catch((e=>{console.log(e)}))},toggleMenu(){this.isMenuActive=!this.isMenuActive},toggleDropdown(){this.isDropdownActive=!this.isDropdownActive},handleUserCenter(){this.isDropdownActive=!1,this.$router.push("/user-center")},handleLogout(){const e=window.location.hostname.includes("localhost")?"localhost":window.location.hostname.split(".").slice(-2).join(".");ie.A.remove("token",{domain:e,path:"/"}),this.userInfo=null,window.location.reload()},checkLoginStatus(){const e=ie.A.get("token");e&&re.A.get("https://newfront.xn--xhq44jb2fzpc.com/user/info",{headers:{Authorization:e}}).then((e=>{this.userInfo=e.data,e.data.banned?(this.$barMessage({message:"您的账户已被封禁,请联系网站管理员",type:"error"}),ce.A.alert('您的账户已被封禁,如有疑问请在"关于"页面联系网站管理员。',"账户状态异常",{confirmText:"退出登录",cancel:!1}).then((()=>{this.handleLogout()})).catch((()=>{this.handleLogout()}))):(this.isActivated=e.data.activated,this.isActivated||(this.showActivationDialog=!0))})).catch((e=>{console.log(e),this.userInfo=null}))},closeActivationDialog(){this.showActivationDialog=!1},handleNetworkVerify(){const e=ie.A.get("token");e?re.A.get("https://userlogin.xn--xhq44jb2fzpc.com/qv",{headers:{Authorization:e}}).then((e=>{ce.A.alert(e.data.message,"提示"),this.isActivated=!0,this.showActivationDialog=!1})).catch((e=>{e.response&&e.response.data?ce.A.alert(`${e.response.data.message} 当前IP: ${e.response.data.ip||"未知"}`,"提示"):ce.A.alert("验证失败,请稍后重试","提示")})):ce.A.alert("您未登录,请先登录后操作!","提示")},handleEmailVerify(){const e=ie.A.get("token");e?re.A.get("https://userlogin.xn--xhq44jb2fzpc.com/check-email",{headers:{Authorization:e}}).then((e=>{ce.A.alert(e.data.message,"提示"),this.isActivated=!0,this.showActivationDialog=!1})).catch((t=>{t.response&&403===t.response.status?this.promptForCampusEmail(e):t.response&&t.response.data?ce.A.alert(t.response.data.message||"发生未知错误,请稍后重试","提示"):ce.A.alert("验证失败,请稍后重试","提示")})):ce.A.alert("您未登录,请先登录后操作!","提示")},promptForCampusEmail(e){(0,ce.A)({title:"校园邮箱验证",message:"请输入您的 @stu.neu.edu.cn 或 @stu.neuq.edu.cn 校园邮箱:",showInput:!0,inputPlaceholder:"请输入校园邮箱",confirmText:"确认",cancelText:"取消",cancel:!0}).then((({value:t})=>{t?t.endsWith("@stu.neu.edu.cn")||t.endsWith("@stu.neuq.edu.cn")?this.sendCampusVerificationEmail(t,e):ce.A.alert("请输入有效的 @stu.neu.edu.cn 或 @stu.neuq.edu.cn 校园邮箱!","提示"):ce.A.alert("邮箱不能为空","提示")})).catch((()=>{}))},sendCampusVerificationEmail(e,t){re.A.post("https://userlogin.xn--xhq44jb2fzpc.com/send-campus-verify",{campus_email:e},{headers:{Authorization:t,"Content-Type":"application/json"}}).then((t=>{ce.A.alert(`验证邮件已发送至 ${e},请检查您的邮箱完成验证。`,"提示")})).catch((e=>{e.response&&e.response.data?ce.A.alert(`发送验证邮件失败:${e.response.data.message}`,"提示"):ce.A.alert("发送验证邮件失败,请稍后重试","提示")}))},handleMessages(){this.isDropdownActive=!1,this.showMessageModal=!0,this.loadMessages(1)},closeMessageModal(){this.showMessageModal=!1,this.checkLoginStatus()},loadMessages(e){this.currentPage=e,re.A.get("https://newfront.xn--xhq44jb2fzpc.com/message/get",{headers:{Authorization:ie.A.get("token")},params:{page:e}}).then((e=>{this.messages=e.data.messages,this.totalPages=e.data.totalPages,this.pageSize=e.data.pageSize})).catch((e=>{console.error("获取消息失败:",e),ce.A.alert("获取消息失败,请稍后再试。","错误")}))},formatDate(e){const t=new Date(e);return t.toLocaleDateString()+" "+t.toLocaleTimeString()},encodeBase64(e){return window.btoa(e)}}},ue=s(1241);const he=(0,ue.A)(de,[["render",oe],["__scopeId","data-v-4b20f304"]]);var pe=he},2090:function(e,t,s){s.d(t,{A:function(){return f}});s(4114);var a=s(6768),n=s(5130),o=s(4232);const i={class:"bar-message-text"};function r(e,t,s,r,c,l){return(0,a.uX)(),(0,a.Wv)(n.eB,{name:"bar-message-fade"},{default:(0,a.k6)((()=>[c.visible?((0,a.uX)(),(0,a.CE)("div",{key:0,class:"bar-message",style:(0,o.Tr)(l.positionStyle)},[(0,a.Lk)("div",{class:(0,o.C4)(["bar-message-content",c.customColor?"":c.type]),style:(0,o.Tr)({backgroundColor:c.customColor})},[c.showIcon?((0,a.uX)(),(0,a.CE)("i",{key:0,class:(0,o.C4)(["bar-message-icon",l.iconClass])},null,2)):(0,a.Q3)("",!0),(0,a.Lk)("span",i,(0,o.v_)(c.message),1),c.showClose?((0,a.uX)(),(0,a.CE)("i",{key:1,class:"bar-message-close fas fa-times",onClick:t[0]||(t[0]=(...e)=>l.close&&l.close(...e))})):(0,a.Q3)("",!0)],6)],4)):(0,a.Q3)("",!0)])),_:1})}var c={name:"BarMessage",data(){return{visible:!1,message:"",type:"success",customColor:"",timer:null,duration:3e3,position:"top",showIcon:!0,showClose:!1}},computed:{positionStyle(){return"bottom"===this.position?{top:"auto",bottom:"16px"}:"center"===this.position?{top:"50%",transform:"translate(-50%, -50%)"}:{top:"16px",bottom:"auto"}},iconClass(){switch(this.type){case"success":return"fas fa-check-circle";case"error":return"fas fa-times-circle";case"warning":return"fas fa-exclamation-circle";case"info":return"fas fa-info-circle";default:return"fas fa-bell"}}},methods:{show(e){this.timer&&clearTimeout(this.timer),this.message=e.message||"",this.type=e.type||"success",this.customColor=e.color||"",this.duration=void 0!==e.duration?e.duration:3e3,this.position=e.position||"top",this.showIcon=void 0===e.showIcon||e.showIcon,this.showClose=void 0!==e.showClose&&e.showClose,this.visible=!0,this.duration>0&&(this.timer=setTimeout((()=>{this.close()}),this.duration))},close(){this.visible=!1,this.timer&&(clearTimeout(this.timer),this.timer=null),this.onClose&&this.onClose()}}},l=s(1241);const d=(0,l.A)(c,[["render",r],["__scopeId","data-v-18bdfd8a"]]);var u=d;const h=[];let p=1;const g=function(e){"string"===typeof e&&(e={message:e}),e=e||{};const t="bar_message_"+p++,s=document.createElement("div"),o=e.onClose;e.onClose=()=>{m(t,o)};const i=(0,a.bF)(u,e);(0,n.XX)(i,s),document.body.appendChild(s);const r=i.component.proxy;r.show(e);const c={id:t,vnode:i,vm:r,container:s};return h.push(c),{close:()=>{r.close()}}};function m(e,t){const s=h.findIndex((t=>t.id===e));if(-1===s)return;const{vm:a,container:o}=h[s];a&&("function"===typeof t&&t(),(0,n.XX)(null,o),document.body.removeChild(o),h.splice(s,1))}["success","error","warning","info"].forEach((e=>{g[e]=t=>("string"===typeof t?t={message:t,type:e}:(t=t||{},t.type=e),g(t))})),g.permanent=e=>("string"===typeof e&&(e={message:e}),e=e||{},e.duration=0,e.showClose=!1!==e.showClose,g(e)),g.closeAll=function(){for(let e=h.length-1;e>=0;e--)h[e].vm.close()};var f=g},4529:function(e,t,s){var a=s(5130),n=s(6768);const o={id:"app"},i={class:"beian-footer"},r={class:"container"},c={class:"copyright"};function l(e,t){const s=(0,n.g2)("router-view"),a=(0,n.g2)("router-link");return(0,n.uX)(),(0,n.CE)("div",o,[(0,n.bF)(s),(0,n.Lk)("footer",i,[(0,n.Lk)("div",r,[t[2]||(t[2]=(0,n.Lk)("span",{style:{"white-space":"nowrap"}},[(0,n.Lk)("img",{src:"https://beian.mps.gov.cn/web/assets/logo01.6189a29f.png",alt:"公安标识",style:{"vertical-align":"middle",height:"16px",display:"inline-block"}}),(0,n.Lk)("a",{href:"https://beian.mps.gov.cn/",target:"_blank"}," 赣公网安备36090202000259号"),(0,n.eW)("  |  "),(0,n.Lk)("a",{href:"https://beian.miit.gov.cn/",target:"_blank"},"赣ICP备2024039267号-1")],-1)),(0,n.Lk)("div",c,[t[1]||(t[1]=(0,n.eW)(" © 2025 ")),(0,n.bF)(a,{to:"/about"},{default:(0,n.k6)((()=>t[0]||(t[0]=[(0,n.eW)("NEU小站")]))),_:1})])])])])}var d=s(1241);const u={},h=(0,d.A)(u,[["render",l]]);var p=h,g=s(1387);const m={class:"home"},f={class:"container"},v={class:"welcome-section"},k={class:"quick-links"};function b(e,t,s,a,o,i){const r=(0,n.g2)("Navbar");return(0,n.uX)(),(0,n.CE)("div",m,[(0,n.bF)(r),(0,n.Lk)("div",f,[(0,n.Lk)("div",v,[t[2]||(t[2]=(0,n.Lk)("img",{alt:"Vue logo",src:"https://download.东北大学.com/images/logo-hd.png"},null,-1)),t[3]||(t[3]=(0,n.Lk)("h1",null,"欢迎访问NEU小站",-1)),(0,n.Lk)("div",k,[t[1]||(t[1]=(0,n.Lk)("span",null,"快速入口:",-1)),(0,n.Lk)("a",{onClick:t[0]||(t[0]=e=>i.goTo("course",!0)),target:"_blank"},"课程评分系统")]),t[4]||(t[4]=(0,n.Lk)("div",{class:"intro-text"},[(0,n.Lk)("p",null,"“哈哈,恭喜你发现了宝藏,让我在接下来的日子里陪你一起成长吧”"),(0,n.Lk)("p",{style:{"text-align":"right"}},"——NEU小站")],-1))])])])}var y=s(1911),C=s(4993),w={name:"HomeView",components:{Navbar:y.A},created(){document.title="NEU小站"},methods:{goTo(e,t=!1){const s={course:"https://course.xn--xhq44jb2fzpc.com",oj:"https://oj.xn--xhq44jb2fzpc.com"},a=s[e];if(a)if(t){const e=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||window.innerWidth<768;e?C.A.confirm("推荐在电脑端访问,以获得最佳体验。仍要继续吗?","提示").then((()=>{window.open(a,"_blank")})).catch((()=>{})):window.open(a,"_blank")}else window.open(a,"_blank");else console.error(`No URL found for name: ${e}`)}}};const L=(0,d.A)(w,[["render",b],["__scopeId","data-v-5a2476b6"]]);var E=L,_=s(4130),A=s.n(_);A().configure({showSpinner:!1});const M=[{path:"/",name:"home",component:E},{path:"/login",name:"login",component:()=>s.e(862).then(s.bind(s,9862))},{path:"/article/:id",name:"article-detail",component:()=>s.e(770).then(s.bind(s,6770))},{path:"/about",name:"about",component:()=>s.e(299).then(s.bind(s,2299))},{path:"/strategy",name:"strategy",component:()=>s.e(860).then(s.bind(s,4860))},{path:"/resources",name:"resources",component:()=>s.e(790).then(s.bind(s,9790))},{path:"/:pathMatch(.*)*",name:"404",component:()=>s.e(899).then(s.bind(s,3899))},{path:"/search",name:"search",component:()=>s.e(368).then(s.bind(s,7368))},{path:"/user-center",name:"user-center",component:()=>s.e(862).then(s.bind(s,9862))},{path:"/app",name:"app",component:()=>s.e(270).then(s.bind(s,9270))},{path:"/submit",name:"submit",component:()=>s.e(890).then(s.bind(s,5890))},{path:"/preview",name:"preview",component:()=>s.e(770).then(s.bind(s,6770))},{path:"/edit",name:"edit-article",component:()=>s.e(890).then(s.bind(s,5890))},{path:"/widgets",name:"widgets",component:()=>s.e(155).then(s.bind(s,5155))},{path:"/widgets/webvpn",name:"webvpn",component:()=>s.e(898).then(s.bind(s,898))}],x=(0,g.aE)({history:(0,g.LA)("/"),routes:M});x.beforeEach(((e,t,s)=>{A().start(),s()})),x.afterEach((()=>{A().done()}));var I=x,X=s(2090);const S=(0,a.Ef)(p);S.config.globalProperties.$barMessage=X.A,S.use(I).mount("#app"),window.$barMessage=X.A},4993:function(e,t,s){s.d(t,{A:function(){return k}});var a=s(5130),n=s(6768),o=s(4232);const i={class:"message-box"},r={key:0,class:"message-header"},c={class:"message-content"},l={key:0,class:"input-wrapper"},d=["type","placeholder"],u={class:"message-footer"};function h(e,t,s,h,p,g){return(0,n.uX)(),(0,n.Wv)(a.eB,{name:"message-fade"},{default:(0,n.k6)((()=>[s.visible?((0,n.uX)(),(0,n.CE)("div",{key:0,class:"message-overlay",onClick:t[4]||(t[4]=(0,a.D$)(((...e)=>g.handleOverlayClick&&g.handleOverlayClick(...e)),["self"]))},[(0,n.Lk)("div",i,[s.title?((0,n.uX)(),(0,n.CE)("div",r,[(0,n.Lk)("h3",null,(0,o.v_)(s.title),1)])):(0,n.Q3)("",!0),(0,n.Lk)("div",c,[(0,n.Lk)("p",null,(0,o.v_)(s.message),1),s.showInput?((0,n.uX)(),(0,n.CE)("div",l,[(0,n.bo)((0,n.Lk)("input",{"onUpdate:modelValue":t[0]||(t[0]=e=>p.localInputValue=e),type:s.inputType,placeholder:s.inputPlaceholder,class:"message-input",onKeyup:t[1]||(t[1]=(0,a.jR)(((...e)=>g.handleConfirm&&g.handleConfirm(...e)),["enter"]))},null,40,d),[[a.hp,p.localInputValue]])])):(0,n.Q3)("",!0)]),(0,n.Lk)("div",u,[g.cancelVisible?((0,n.uX)(),(0,n.CE)("button",{key:0,class:"btn btn-cancel",onClick:t[2]||(t[2]=(...e)=>g.handleCancel&&g.handleCancel(...e))},(0,o.v_)(s.cancelText),1)):(0,n.Q3)("",!0),g.confirmVisible?((0,n.uX)(),(0,n.CE)("button",{key:1,class:"btn btn-confirm",onClick:t[3]||(t[3]=(...e)=>g.handleConfirm&&g.handleConfirm(...e))},(0,o.v_)(s.confirmText),1)):(0,n.Q3)("",!0)])])])):(0,n.Q3)("",!0)])),_:1})}var p={name:"MessageBox",props:{visible:{type:Boolean,default:!1},title:{type:String,default:""},message:{type:String,required:!0},confirm:{type:Boolean,default:!0},cancel:{type:Boolean,default:!1},confirmText:{type:String,default:"确定"},cancelText:{type:String,default:"取消"},closeOnClickOverlay:{type:Boolean,default:!1},showInput:{type:Boolean,default:!1},inputType:{type:String,default:"text"},inputValue:{type:String,default:""},inputPlaceholder:{type:String,default:"请输入"}},data(){return{localInputValue:""}},watch:{inputValue:{immediate:!0,handler(e){this.localInputValue=e}}},computed:{confirmVisible(){return this.confirm},cancelVisible(){return this.cancel}},methods:{handleConfirm(){this.$emit("confirm",this.localInputValue)},handleCancel(){this.$emit("cancel")},handleOverlayClick(){this.closeOnClickOverlay&&this.$emit("cancel")}}},g=s(1241);const m=(0,g.A)(p,[["render",h],["__scopeId","data-v-076938bc"]]);var f=m;const v=(e={})=>new Promise(((t,s)=>{const n=document.createElement("div");document.body.appendChild(n);const o=(0,a.Ef)(f,{...e,visible:!0,confirm:!1!==e.confirm,cancel:!0===e.cancel,onConfirm:e=>{o.unmount(),document.body.removeChild(n),t({value:e,action:"confirm"})},onCancel:()=>{o.unmount(),document.body.removeChild(n),s({action:"cancel"})}});o.mount(n)}));v.alert=(e,t="",s={})=>v({title:t,message:e,confirm:!0,cancel:!1,...s}),v.confirm=(e,t="",s={})=>v({title:t,message:e,confirm:!0,cancel:!0,...s}),v.prompt=(e,t="",s={})=>v({title:t,message:e,showInput:!0,confirm:!0,cancel:!0,...s});var k=v},9090:function(e,t,s){s.d(t,{A:function(){return A}});var a=s(5130),n=s(6768),o=s(4232);const i={key:0,class:"login-container"},r={class:"login-box"},c={class:"login-header"},l={class:"form-group"},d={class:"form-group"},u={class:"button-group"},h={class:"modal-content"},p={class:"modal-header"},g={class:"modal-body"},m={class:"captcha-instruction"},f={class:"form-group"},v={class:"modal-footer"},k={key:0,class:"loading-overlay"};function b(e,t,s,b,y,C){return s.visible?((0,n.uX)(),(0,n.CE)("div",i,[t[13]||(t[13]=(0,n.Lk)("div",{class:"login-overlay"},null,-1)),(0,n.Lk)("div",r,[(0,n.Lk)("div",c,[t[8]||(t[8]=(0,n.Lk)("h2",{class:"login-title"},"登录/注册",-1)),s.showClose?((0,n.uX)(),(0,n.CE)("button",{key:0,onClick:t[0]||(t[0]=(...e)=>C.handleClose&&C.handleClose(...e)),class:"close-btn"},"×")):(0,n.Q3)("",!0)]),(0,n.Lk)("form",{onSubmit:t[4]||(t[4]=(0,a.D$)(((...e)=>C.handleSubmit&&C.handleSubmit(...e)),["prevent"])),class:"login-form"},[(0,n.Lk)("div",l,[t[9]||(t[9]=(0,n.Lk)("label",{for:"email"},"邮箱",-1)),(0,n.bo)((0,n.Lk)("input",{type:"email",id:"email","onUpdate:modelValue":t[1]||(t[1]=e=>y.email=e),placeholder:"请输入邮箱地址",required:"",class:"form-input",pattern:"[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,}$",title:"请输入有效的邮箱地址"},null,512),[[a.Jo,y.email]])]),(0,n.Lk)("div",d,[t[10]||(t[10]=(0,n.Lk)("label",{for:"password"},"密码",-1)),(0,n.bo)((0,n.Lk)("input",{type:"password",id:"password","onUpdate:modelValue":t[2]||(t[2]=e=>y.password=e),placeholder:"请输入密码",required:"",class:"form-input"},null,512),[[a.Jo,y.password]])]),y.message?((0,n.uX)(),(0,n.CE)("div",{key:0,class:(0,o.C4)(["message",{error:y.messageIsError,success:!y.messageIsError}])},(0,o.v_)(y.message),3)):(0,n.Q3)("",!0),(0,n.Lk)("div",u,[(0,n.Lk)("button",{type:"button",onClick:t[3]||(t[3]=(...e)=>C.login&&C.login(...e)),class:"btn btn-primary"},"登录/注册")])],32)]),(0,n.Lk)("div",{class:(0,o.C4)(["modal",{show:y.showCaptchaModal}])},[(0,n.Lk)("div",h,[(0,n.Lk)("div",p,[t[11]||(t[11]=(0,n.Lk)("h3",null,"邮箱验证",-1)),(0,n.Lk)("button",{onClick:t[5]||(t[5]=(...e)=>C.closeCaptchaModal&&C.closeCaptchaModal(...e)),class:"close-btn"},"×")]),(0,n.Lk)("div",g,[(0,n.Lk)("p",m,(0,o.v_)(y.captchaInstruction),1),(0,n.Lk)("div",f,[(0,n.bo)((0,n.Lk)("input",{type:"text","onUpdate:modelValue":t[6]||(t[6]=e=>y.captchaCode=e),placeholder:"请输入验证码",class:"form-input"},null,512),[[a.Jo,y.captchaCode]])]),y.captchaMessage?((0,n.uX)(),(0,n.CE)("div",{key:0,class:(0,o.C4)(["captcha-message",{error:y.captchaMessageIsError,success:!y.captchaMessageIsError}])},(0,o.v_)(y.captchaMessage),3)):(0,n.Q3)("",!0)]),(0,n.Lk)("div",v,[(0,n.Lk)("button",{onClick:t[7]||(t[7]=(...e)=>C.verifyCaptcha&&C.verifyCaptcha(...e)),class:"btn btn-primary"},"验证")])])],2),y.loading?((0,n.uX)(),(0,n.CE)("div",k,[t[12]||(t[12]=(0,n.Lk)("div",{class:"spinner"},null,-1)),(0,n.Lk)("p",null,(0,o.v_)(y.loadingMessage),1)])):(0,n.Q3)("",!0)])):(0,n.Q3)("",!0)}var y=s(4993),C={name:"Login",props:{visible:{type:Boolean,default:!0},showClose:{type:Boolean,default:!1},onSuccess:{type:Function,default:null},onClose:{type:Function,default:null}},data(){return{email:"",password:"",message:"",messageIsError:!0,loading:!1,loadingMessage:"加载中...",showCaptchaModal:!1,captchaCode:"",captchaMessage:"",captchaMessageIsError:!0,captchaInstruction:"验证码已发送至您的邮箱,请在下方输入"}},methods:{detectDevice(){const e=navigator.userAgent;return/android/i.test(e)?"Android":/iPad|iPhone|iPod/.test(e)?"iOS":/Windows Phone/i.test(e)?"Windows Phone":/Windows/i.test(e)?"Windows":/Macintosh|Mac OS X/i.test(e)?"macOS":/Linux/i.test(e)?"Linux":"Unknown"},async handleSubmit(){await this.login()},handleClose(){this.onClose?this.onClose():this.$emit("close")},async login(){if(!this.email||!this.password)return this.message="请输入邮箱和密码",void(this.messageIsError=!0);const e=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;if(!e.test(this.email))return this.message="请输入有效的邮箱地址",void(this.messageIsError=!0);this.loading=!0,this.loadingMessage="登录中...";try{const e=await this.loginOrRegister(this.email,this.password,"login");"Login successful."===e.message?this.handleLoginSuccess(e):"User not registered."===e.message?(this.loading=!1,(0,y.A)({title:"邮箱未注册",message:'此邮箱没有注册。点击"发送"按钮将向您的邮箱发送注册验证码。',confirmText:"发送",cancelText:"取消",cancel:!0,closeOnClickOverlay:!0}).then((async()=>{await this.sendRegisterCode()})).catch((()=>{}))):"Invalid email or password."===e.message?(this.message="密码错误。",this.messageIsError=!0,this.loading=!1):(this.message=e.message||"登录失败,请重试。",this.messageIsError=!0,this.loading=!1)}catch(t){console.error("Error:",t),this.message="发生错误,请稍后重试。",this.messageIsError=!0,this.loading=!1}},async register(){if(!this.email||!this.password)return this.message="请输入邮箱和密码",void(this.messageIsError=!0);const e=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;if(!e.test(this.email))return this.message="请输入有效的邮箱地址",void(this.messageIsError=!0);await this.sendRegisterCode()},async sendRegisterCode(){this.loading=!0,this.loadingMessage="发送验证码中...";try{const e=await this.loginOrRegister(this.email,this.password,"register");"Verification email sent."===e.message?(this.captchaInstruction="验证码已发送至您的邮箱,请在下方输入",this.captchaMessage="",this.captchaCode="",this.showCaptchaModal=!0):"A valid code has already been sent. Please try again later."===e.message?(this.captchaInstruction="您还有未验证的验证码,请查看邮箱并在下方输入",this.captchaMessage="",this.captchaCode="",this.showCaptchaModal=!0):"Email is already registered."===e.message?(this.message="此邮箱已注册。",this.messageIsError=!0):(this.message="发送验证码失败,请稍后重试。",this.messageIsError=!0),this.loading=!1}catch(e){console.error("Error:",e),this.message="发生错误,请稍后重试。",this.messageIsError=!0,this.loading=!1}},async verifyCaptcha(){if(!this.captchaCode)return this.captchaMessage="请输入验证码",void(this.captchaMessageIsError=!0);try{const e=await this.verifyRegisterCode(this.email,this.captchaCode);"User registered successfully."===e.message?(this.captchaMessage="验证成功!",this.captchaMessageIsError=!1,setTimeout((()=>{this.closeCaptchaModal(),this.handleSuccessfulRegistration()}),1500)):(this.captchaMessage="您的验证码不正确",this.captchaMessageIsError=!0)}catch(e){console.error("Error:",e),this.captchaMessage="验证过程中发生错误,请重试",this.captchaMessageIsError=!0}},closeCaptchaModal(){this.showCaptchaModal=!1,this.captchaCode="",this.captchaMessage=""},async handleSuccessfulRegistration(){this.message="注册成功!正在登录...",this.messageIsError=!1,this.loading=!0,this.loadingMessage="登录中...",await this.delay(1e3);try{const e=await this.loginOrRegister(this.email,this.password,"login");"Login successful."===e.message?this.handleLoginSuccess(e):(this.message="注册成功,但自动登录失败,请手动登录。",this.messageIsError=!0,this.loading=!1)}catch(e){console.error("Error during login after registration:",e),this.message="注册成功,但自动登录失败,请手动登录。",this.messageIsError=!0,this.loading=!1}},handleLoginSuccess(e){const t=e.token,s=window.location.hostname.includes("localhost")?"localhost":window.location.hostname.split(".").slice(-2).join(".");document.cookie=`token=${t}; max-age=86340; path=/; domain=${s}; secure; SameSite=Strict`,this.loading=!1,this.message="登录成功!正在加载中...",this.messageIsError=!1;const a={email:this.email,userId:e.id,token:e.token};this.onSuccess&&(this.onSuccess(a),window.location.reload()),this.$emit("login-success",a),this.onClose&&setTimeout((()=>{this.handleClose()}),3e3)},async loginOrRegister(e,t,s){const a="login"===s?"https://userlogin.xn--xhq44jb2fzpc.com/login":"https://userlogin.xn--xhq44jb2fzpc.com/register",n={email:e,password:t};"login"===s&&(n.device=this.detectDevice());const o=await fetch(a,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});return o.json()},async verifyRegisterCode(e,t){const s="https://userlogin.xn--xhq44jb2fzpc.com/verify-register-code",a=await fetch(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e,code:t})});return a.json()},delay(e){return new Promise((t=>setTimeout(t,e)))}}},w=s(1241);const L=(0,w.A)(C,[["render",b],["__scopeId","data-v-66365b1a"]]);var E=L;const _=(e={})=>new Promise(((t,s)=>{const n=document.createElement("div");document.body.appendChild(n);const o=(0,a.Ef)(E,{...e,visible:!0,showClose:!0,onSuccess:e=>{t(e)},onClose:()=>{o.unmount(),document.body.removeChild(n)}});o.mount(n)}));_.withCallback=(e,t={})=>_({...t,onSuccess:t=>{e(t)}});var A=_}},t={};function s(a){var n=t[a];if(void 0!==n)return n.exports;var o=t[a]={exports:{}};return e[a].call(o.exports,o,o.exports,s),o.exports}s.m=e,function(){var e=[];s.O=function(t,a,n,o){if(!a){var i=1/0;for(d=0;d<e.length;d++){a=e[d][0],n=e[d][1],o=e[d][2];for(var r=!0,c=0;c<a.length;c++)(!1&o||i>=o)&&Object.keys(s.O).every((function(e){return s.O[e](a[c])}))?a.splice(c--,1):(r=!1,o<i&&(i=o));if(r){e.splice(d--,1);var l=n();void 0!==l&&(t=l)}}return t}o=o||0;for(var d=e.length;d>0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[a,n,o]}}(),function(){s.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return s.d(t,{a:t}),t}}(),function(){s.d=function(e,t){for(var a in t)s.o(t,a)&&!s.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})}}(),function(){s.f={},s.e=function(e){return Promise.all(Object.keys(s.f).reduce((function(t,a){return s.f[a](e,t),t}),[]))}}(),function(){s.u=function(e){return"js/"+e+"."+{12:"dc7bebdb",155:"cc8a723a",270:"e2bb50f1",299:"bb6ddaef",368:"a691df89",770:"787465e9",790:"7c7ea315",860:"7c499d59",862:"47ca8716",890:"66d97cb7",898:"6a122131",899:"669295aa",940:"705f02e8"}[e]+".js"}}(),function(){s.miniCssF=function(e){return"css/"+e+"."+{155:"e92d57c5",270:"e032f250",299:"af5d7086",368:"9ee9e7c3",770:"4166589e",790:"2993be7e",860:"96a25134",862:"c288fc49",890:"730da76c",898:"6cbcb5bc",899:"35501d47"}[e]+".css"}}(),function(){s.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="newfront:";s.l=function(a,n,o,i){if(e[a])e[a].push(n);else{var r,c;if(void 0!==o)for(var l=document.getElementsByTagName("script"),d=0;d<l.length;d++){var u=l[d];if(u.getAttribute("src")==a||u.getAttribute("data-webpack")==t+o){r=u;break}}r||(c=!0,r=document.createElement("script"),r.charset="utf-8",r.timeout=120,s.nc&&r.setAttribute("nonce",s.nc),r.setAttribute("data-webpack",t+o),r.src=a),e[a]=[n];var h=function(t,s){r.onerror=r.onload=null,clearTimeout(p);var n=e[a];if(delete e[a],r.parentNode&&r.parentNode.removeChild(r),n&&n.forEach((function(e){return e(s)})),t)return t(s)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=h.bind(null,r.onerror),r.onload=h.bind(null,r.onload),c&&document.head.appendChild(r)}}}(),function(){s.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){s.p="/"}(),function(){if("undefined"!==typeof document){var e=function(e,t,a,n,o){var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",s.nc&&(i.nonce=s.nc);var r=function(s){if(i.onerror=i.onload=null,"load"===s.type)n();else{var a=s&&s.type,r=s&&s.target&&s.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+a+": "+r+")");c.name="ChunkLoadError",c.code="CSS_CHUNK_LOAD_FAILED",c.type=a,c.request=r,i.parentNode&&i.parentNode.removeChild(i),o(c)}};return i.onerror=i.onload=r,i.href=t,a?a.parentNode.insertBefore(i,a.nextSibling):document.head.appendChild(i),i},t=function(e,t){for(var s=document.getElementsByTagName("link"),a=0;a<s.length;a++){var n=s[a],o=n.getAttribute("data-href")||n.getAttribute("href");if("stylesheet"===n.rel&&(o===e||o===t))return n}var i=document.getElementsByTagName("style");for(a=0;a<i.length;a++){n=i[a],o=n.getAttribute("data-href");if(o===e||o===t)return n}},a=function(a){return new Promise((function(n,o){var i=s.miniCssF(a),r=s.p+i;if(t(i,r))return n();e(a,r,null,n,o)}))},n={524:0};s.f.miniCss=function(e,t){var s={155:1,270:1,299:1,368:1,770:1,790:1,860:1,862:1,890:1,898:1,899:1};n[e]?t.push(n[e]):0!==n[e]&&s[e]&&t.push(n[e]=a(e).then((function(){n[e]=0}),(function(t){throw delete n[e],t})))}}}(),function(){var e={524:0};s.f.j=function(t,a){var n=s.o(e,t)?e[t]:void 0;if(0!==n)if(n)a.push(n[2]);else{var o=new Promise((function(s,a){n=e[t]=[s,a]}));a.push(n[2]=o);var i=s.p+s.u(t),r=new Error,c=function(a){if(s.o(e,t)&&(n=e[t],0!==n&&(e[t]=void 0),n)){var o=a&&("load"===a.type?"missing":a.type),i=a&&a.target&&a.target.src;r.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",r.name="ChunkLoadError",r.type=o,r.request=i,n[1](r)}};s.l(i,c,"chunk-"+t,t)}},s.O.j=function(t){return 0===e[t]};var t=function(t,a){var n,o,i=a[0],r=a[1],c=a[2],l=0;if(i.some((function(t){return 0!==e[t]}))){for(n in r)s.o(r,n)&&(s.m[n]=r[n]);if(c)var d=c(s)}for(t&&t(a);l<i.length;l++)o=i[l],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return s.O(d)},a=self["webpackChunknewfront"]=self["webpackChunknewfront"]||[];a.forEach(t.bind(null,0)),a.push=t.bind(null,a.push.bind(a))}();var a=s.O(void 0,[504],(function(){return s(4529)}));a=s.O(a)})();
//# sourceMappingURL=app.7588c5a0.js.map