From 0650ec31fd511f25281048ae3b91f0ff5a2188ab Mon Sep 17 00:00:00 2001 From: Donghyeon Cho Date: Tue, 23 Nov 2021 21:18:16 +0900 Subject: [PATCH] Add files via upload --- js/0.192d1686d5d3e81bbfd6.js | 7 + js/1.f7385a6fceb30ceaecb0.js | 1 + js/2.c82b0057da602cd28e7e.js | 1 + js/3.d134e37f27ae1c7c8972.js | 1 + js/4.4e7d9ecbe39e0fb55187.js | 1 + js/5.1da082458c4aec0959ce.js | 1 + js/admin.540bd9288dd3e2266674.js | 201 +++ js/bootstrap.min.js | 7 + js/manifest.ea4c8ea90c9621136b10.js | 1 + js/oj.6ac64fb3caa4ef459133.js | 1985 +++++++++++++++++++++++++++ js/vendor.c3d0ddc1bdcdb5fc2e47.js | 7 + js/vendor.dll.098646a.js | 50 + 12 files changed, 2263 insertions(+) create mode 100644 js/0.192d1686d5d3e81bbfd6.js create mode 100644 js/1.f7385a6fceb30ceaecb0.js create mode 100644 js/2.c82b0057da602cd28e7e.js create mode 100644 js/3.d134e37f27ae1c7c8972.js create mode 100644 js/4.4e7d9ecbe39e0fb55187.js create mode 100644 js/5.1da082458c4aec0959ce.js create mode 100644 js/admin.540bd9288dd3e2266674.js create mode 100644 js/bootstrap.min.js create mode 100644 js/manifest.ea4c8ea90c9621136b10.js create mode 100644 js/oj.6ac64fb3caa4ef459133.js create mode 100644 js/vendor.c3d0ddc1bdcdb5fc2e47.js create mode 100644 js/vendor.dll.098646a.js diff --git a/js/0.192d1686d5d3e81bbfd6.js b/js/0.192d1686d5d3e81bbfd6.js new file mode 100644 index 0000000..facf0f2 --- /dev/null +++ b/js/0.192d1686d5d3e81bbfd6.js @@ -0,0 +1,7 @@ +webpackJsonp([0],{"04VD":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n("Dd8w"),a=n.n(s),o=n("woOf"),i=n.n(o),r=n("8Q2T"),c=n("NYxO"),l=n("oAV5"),u=n("26Oo"),d=n("2hfY"),m=n("FN8c"),h={name:"contest-list",components:{Pagination:u.a},data:function(){return{page:1,query:{status:"",keyword:"",rule_type:""},limit:10,total:0,rows:"",contests:[],CONTEST_STATUS_REVERSE:m.b,cur_contest_id:""}},beforeRouteEnter:function(t,e,n){r.a.getContestList(0,10).then(function(t){n(function(e){e.contests=t.data.data.results,e.total=t.data.data.total})},function(t){n()})},methods:{init:function(){var t=this.$route.query;this.query.status=t.status||"",this.query.rule_type=t.rule_type||"",this.query.keyword=t.keyword||"",this.page=parseInt(t.page)||1,this.limit=parseInt(t.limit)||10,this.getContestList(this.page)},getContestList:function(){var t=this,e=((arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)-1)*this.limit;r.a.getContestList(e,this.limit,this.query).then(function(e){t.contests=e.data.data.results,t.total=e.data.data.total})},changeRoute:function(){var t=i()({},this.query);t.page=this.page,t.limit=this.limit,this.$router.push({name:"contest-list",query:l.a.filterEmptyValue(t)})},onRuleChange:function(t){this.query.rule_type=t,this.page=1,this.changeRoute()},onStatusChange:function(t){this.query.status=t,this.page=1,this.changeRoute()},goContest:function(t){this.cur_contest_id=t.id,t.contest_type===m.c.PUBLIC||this.isAuthenticated?this.$router.push({name:"contest-details",params:{contestID:t.id}}):(this.$error(this.$i18n.t("m.Please_login_first")),this.$store.dispatch("changeModalStatus",{visible:!0}))},getDuration:function(t,e){return d.a.duration(t,e)}},computed:a()({},Object(c.mapGetters)(["isAuthenticated","user"])),watch:{$route:function(t,e){t!==e&&this.init()}}},p={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("Row",{attrs:{type:"flex"}},[s("Col",{attrs:{span:24}},[s("Panel",{attrs:{id:"contest-card",shadow:""}},[s("div",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(""===t.query.rule_type?this.$i18n.t("m.All"):t.query.rule_type)+" "+t._s(t.$t("m.Contests")))]),t._v(" "),s("div",{attrs:{slot:"extra"},slot:"extra"},[s("ul",{staticClass:"filter"},[s("li",[s("Dropdown",{on:{"on-click":t.onRuleChange}},[s("span",[t._v(t._s(""===t.query.rule_type?this.$i18n.t("m.Rule"):this.$i18n.t("m."+t.query.rule_type))+"\n "),s("Icon",{attrs:{type:"arrow-down-b"}})],1),t._v(" "),s("Dropdown-menu",{attrs:{slot:"list"},slot:"list"},[s("Dropdown-item",{attrs:{name:""}},[t._v(t._s(t.$t("m.All")))]),t._v(" "),s("Dropdown-item",{attrs:{name:"OI"}},[t._v(t._s(t.$t("m.OI")))]),t._v(" "),s("Dropdown-item",{attrs:{name:"ACM"}},[t._v(t._s(t.$t("m.ACM")))])],1)],1)],1),t._v(" "),s("li",[s("Dropdown",{on:{"on-click":t.onStatusChange}},[s("span",[t._v(t._s(""===t.query.status?this.$i18n.t("m.Status"):this.$i18n.t("m."+t.CONTEST_STATUS_REVERSE[t.query.status].name.replace(/ /g,"_")))+"\n "),s("Icon",{attrs:{type:"arrow-down-b"}})],1),t._v(" "),s("Dropdown-menu",{attrs:{slot:"list"},slot:"list"},[s("Dropdown-item",{attrs:{name:""}},[t._v(t._s(t.$t("m.All")))]),t._v(" "),s("Dropdown-item",{attrs:{name:"0"}},[t._v(t._s(t.$t("m.Underway")))]),t._v(" "),s("Dropdown-item",{attrs:{name:"1"}},[t._v(t._s(t.$t("m.Not_Started")))]),t._v(" "),s("Dropdown-item",{attrs:{name:"-1"}},[t._v(t._s(t.$t("m.Ended")))])],1)],1)],1),t._v(" "),s("li",[s("Input",{attrs:{id:"keyword",icon:"ios-search-strong",placeholder:"Keyword"},on:{"on-enter":t.changeRoute,"on-click":t.changeRoute},model:{value:t.query.keyword,callback:function(e){t.$set(t.query,"keyword",e)},expression:"query.keyword"}})],1)])]),t._v(" "),0==t.contests.length?s("p",{attrs:{id:"no-contest"}},[t._v(t._s(t.$t("m.No_contest")))]):t._e(),t._v(" "),s("ol",{attrs:{id:"contest-list"}},t._l(t.contests,function(e){return s("li",{key:e.title},[s("Row",{attrs:{type:"flex",justify:"space-between",align:"middle"}},[s("img",{staticClass:"trophy",attrs:{src:n("uZQl")}}),t._v(" "),s("Col",{staticClass:"contest-main",attrs:{span:18}},[s("p",{staticClass:"title"},[s("a",{staticClass:"entry",on:{click:function(n){return n.stopPropagation(),t.goContest(e)}}},[t._v("\n "+t._s(e.title)+"\n ")]),t._v(" "),"Public"!=e.contest_type?[s("Icon",{attrs:{type:"ios-locked-outline",size:"20"}})]:t._e()],2),t._v(" "),s("ul",{staticClass:"detail"},[s("li",[s("Icon",{attrs:{type:"calendar",color:"#3091f2"}}),t._v("\n "+t._s(t._f("localtime")(e.start_time,"YYYY-M-D HH:mm"))+"\n ")],1),t._v(" "),s("li",[s("Icon",{attrs:{type:"android-time",color:"#3091f2"}}),t._v("\n "+t._s(t.getDuration(e.start_time,e.end_time))+"\n ")],1),t._v(" "),s("li",[s("Button",{attrs:{size:"small",shape:"circle"},on:{click:function(n){return t.onRuleChange(e.rule_type)}}},[t._v("\n "+t._s(e.rule_type)+"\n ")])],1)])]),t._v(" "),s("Col",{staticStyle:{"text-align":"center"},attrs:{span:4}},[s("Tag",{attrs:{type:"dot",color:t.CONTEST_STATUS_REVERSE[e.status].color}},[t._v(t._s(t.$t("m."+t.CONTEST_STATUS_REVERSE[e.status].name.replace(/ /g,"_"))))])],1)],1)],1)}),0)]),t._v(" "),s("Pagination",{attrs:{total:t.total,"page-size":t.limit,current:t.page,"show-sizer":!0},on:{"update:pageSize":function(e){t.limit=e},"update:page-size":function(e){t.limit=e},"on-change":t.changeRoute,"update:current":function(e){t.page=e},"on-page-size-change":t.changeRoute}})],1)],1)},staticRenderFns:[]};var f=n("VU/8")(h,p,!1,function(t){n("9NxQ")},"data-v-bea65ec8",null);e.default=f.exports},"4dQa":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n("Dd8w"),a=n.n(s),o=n("PJh5"),i=n.n(o),r=n("8Q2T"),c=n("NYxO"),l=n("IcnI"),u=n("FN8c"),d=n("2hfY"),m={name:"ContestDetail",components:{},data:function(){var t=this;return{CONTEST_STATUS:u.a,route_name:"",btnLoading:!1,contestID:"",contestPassword:"",columns:[{title:this.$i18n.t("m.StartAt"),render:function(t,e){return t("span",d.a.utcToLocal(e.row.start_time))}},{title:this.$i18n.t("m.EndAt"),render:function(t,e){return t("span",d.a.utcToLocal(e.row.end_time))}},{title:this.$i18n.t("m.ContestType"),render:function(e,n){return e("span",t.$i18n.t("m."+n.row.contest_type.replace(" ","_")))}},{title:this.$i18n.t("m.Rule"),render:function(e,n){return e("span",t.$i18n.t("m."+n.row.rule_type))}},{title:this.$i18n.t("m.Creator"),render:function(t,e){return t("span",e.row.created_by.username)}}]}},mounted:function(){var t=this;this.contestID=this.$route.params.contestID,this.route_name=this.$route.name,this.$store.dispatch("getContest").then(function(e){t.changeDomTitle({title:e.data.data.title});var n=e.data.data;i()(n.end_time).isAfter(i()(n.now))&&(t.timer=setInterval(function(){t.$store.commit(l.b.NOW_ADD_1S)},1e3))})},methods:a()({},Object(c.mapActions)(["changeDomTitle"]),{handleRoute:function(t){this.$router.push(t)},checkPassword:function(){var t=this;""!==this.contestPassword?(this.btnLoading=!0,r.a.checkContestPassword(this.contestID,this.contestPassword).then(function(e){t.$success("Succeeded"),t.$store.commit(l.b.CONTEST_ACCESS,{access:!0}),t.btnLoading=!1},function(e){t.btnLoading=!1})):this.$error("Password can't be empty")}}),computed:a()({},Object(c.mapState)({showMenu:function(t){return t.contest.itemVisible.menu},contest:function(t){return t.contest.contest},contest_table:function(t){return[t.contest.contest]},now:function(t){return t.contest.now}}),Object(c.mapGetters)(["contestMenuDisabled","contestRuleType","contestStatus","countdown","isContestAdmin","OIContestRealTimePermission","passwordFormVisible"]),{countdownColor:function(){if(this.contestStatus)return u.b[this.contestStatus].color},showAdminHelper:function(){return this.isContestAdmin&&"ACM"===this.contestRuleType}}),watch:{$route:function(t){this.route_name=t.name,this.contestID=t.params.contestID,this.changeDomTitle({title:this.contest.title})}},beforeDestroy:function(){clearInterval(this.timer),this.$store.commit(l.b.CLEAR_CONTEST)}},h={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"flex-container"},[n("div",{attrs:{id:"contest-main"}},[n("transition",{attrs:{name:"fadeInUp"}},[n("router-view")],1),t._v(" "),"contest-details"===t.route_name?n("div",{staticClass:"flex-container"},[[n("div",{attrs:{id:"contest-desc"}},[n("Panel",{attrs:{padding:20,shadow:""}},[n("div",{attrs:{slot:"title"},slot:"title"},[t._v("\n "+t._s(t.contest.title)+"\n ")]),t._v(" "),n("div",{attrs:{slot:"extra"},slot:"extra"},[n("Tag",{attrs:{type:"dot",color:t.countdownColor}},[n("span",{attrs:{id:"countdown"}},[t._v(t._s(t.countdown))])])],1),t._v(" "),n("div",{staticClass:"markdown-body",domProps:{innerHTML:t._s(t.contest.description)}}),t._v(" "),t.passwordFormVisible?n("div",{staticClass:"contest-password"},[n("Input",{staticClass:"contest-password-input",attrs:{type:"password",placeholder:"contest password"},on:{"on-enter":t.checkPassword},model:{value:t.contestPassword,callback:function(e){t.contestPassword=e},expression:"contestPassword"}}),t._v(" "),n("Button",{attrs:{type:"info"},on:{click:t.checkPassword}},[t._v("Enter")])],1):t._e()]),t._v(" "),n("Table",{staticStyle:{"margin-bottom":"40px"},attrs:{columns:t.columns,data:t.contest_table,"disabled-hover":""}})],1)]],2):t._e()],1),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showMenu,expression:"showMenu"}],attrs:{id:"contest-menu"}},[n("VerticalMenu",{on:{"on-click":t.handleRoute}},[n("VerticalMenu-item",{attrs:{route:{name:"contest-details",params:{contestID:t.contestID}}}},[n("Icon",{attrs:{type:"home"}}),t._v("\n "+t._s(t.$t("m.Overview"))+"\n ")],1),t._v(" "),n("VerticalMenu-item",{attrs:{disabled:t.contestMenuDisabled,route:{name:"contest-announcement-list",params:{contestID:t.contestID}}}},[n("Icon",{attrs:{type:"chatbubble-working"}}),t._v("\n "+t._s(t.$t("m.Announcements"))+"\n ")],1),t._v(" "),n("VerticalMenu-item",{attrs:{disabled:t.contestMenuDisabled,route:{name:"contest-problem-list",params:{contestID:t.contestID}}}},[n("Icon",{attrs:{type:"ios-photos"}}),t._v("\n "+t._s(t.$t("m.Problems"))+"\n ")],1),t._v(" "),t.OIContestRealTimePermission?n("VerticalMenu-item",{attrs:{disabled:t.contestMenuDisabled,route:{name:"contest-submission-list"}}},[n("Icon",{attrs:{type:"navicon-round"}}),t._v("\n "+t._s(t.$t("m.Submissions"))+"\n ")],1):t._e(),t._v(" "),t.OIContestRealTimePermission?n("VerticalMenu-item",{attrs:{disabled:t.contestMenuDisabled,route:{name:"contest-rank",params:{contestID:t.contestID}}}},[n("Icon",{attrs:{type:"stats-bars"}}),t._v("\n "+t._s(t.$t("m.Rankings"))+"\n ")],1):t._e(),t._v(" "),t.showAdminHelper?n("VerticalMenu-item",{attrs:{route:{name:"acm-helper",params:{contestID:t.contestID}}}},[n("Icon",{attrs:{type:"ios-paw"}}),t._v("\n "+t._s(t.$t("m.Admin_Helper"))+"\n ")],1):t._e()],1)],1)])},staticRenderFns:[]};var p=n("VU/8")(m,h,!1,function(t){n("C7H7")},"data-v-64fc3174",null);e.default=p.exports},"5PlU":function(t,e,n){var s=n("RY/4"),a=n("dSzd")("iterator"),o=n("/bQp");t.exports=n("FeBl").isIterable=function(t){var e=Object(t);return void 0!==e[a]||"@@iterator"in e||o.hasOwnProperty(s(e))}},"95TO":function(t,e,n){"use strict";var s=n("I95x"),a=n.n(s),o={name:"hamburger",props:{width:{type:Number,default:22},height:{type:Number,default:22},color:{type:String,default:"#5A5E66"}},data:function(){return{isFullscreen:!1}},methods:{click:function(){if(!a.a.enabled)return this.$warning("Your browser doesn't support fullscreen"),!1;a.a.toggle()}}},i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon screenfull",attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",t:"1497503607356",viewBox:"0 0 1024 1024",version:"1.1","p-id":"4109",fill:this.color,width:this.width,height:this.height},on:{click:this.click}},[e("path",{attrs:{d:"M604.157933 512l204.484208 204.484208 82.942037-82.942037c10.364045-10.952446 26.498514-13.83817 40.309054-8.067746 13.249769 5.742794 22.465664 18.99154 22.465664 33.977859l0 258.042008c0 20.168342-16.695241 36.863582-36.863582 36.863582L659.452283 954.357873c-14.986319 0-28.236088-9.215896-33.977859-23.025413-5.770424-13.249769-2.885723-29.384237 8.067746-39.748283l82.942037-82.942037L512 604.157933 307.515792 808.642141l82.942037 82.942037c10.952446 10.364045 13.83817 26.498514 8.067746 39.748283-5.742794 13.809517-18.99154 23.025413-33.977859 23.025413L106.504686 954.357873c-20.168342 0-36.863582-16.695241-36.863582-36.863582L69.641103 659.452283c0-14.986319 9.215896-28.236088 23.025413-33.977859 13.249769-5.770424 29.384237-2.8847 39.748283 8.067746l82.942037 82.942037 204.484208-204.484208L215.357859 307.515792l-82.942037 82.942037c-6.890944 6.918573-16.10684 10.952446-25.911136 10.952446-4.593622 0-9.804297-1.14815-13.83817-2.8847-13.809517-5.742794-23.025413-18.99154-23.025413-33.977859L69.641103 106.504686c0-20.168342 16.695241-36.863582 36.863582-36.863582L364.546693 69.641103c14.986319 0 28.236088 9.215896 33.977859 23.025413 5.770424 13.249769 2.8847 29.384237-8.067746 39.748283l-82.942037 82.942037 204.484208 204.484208L716.484208 215.357859l-82.942037-82.942037c-10.952446-10.364045-13.83817-26.498514-8.067746-39.748283 5.742794-13.809517 18.99154-23.025413 33.977859-23.025413l258.042008 0c20.168342 0 36.863582 16.695241 36.863582 36.863582l0 258.042008c0 14.986319-9.215896 28.236088-22.465664 33.977859-4.593622 1.736551-9.804297 2.8847-14.397918 2.8847-9.804297 0-19.020192-4.033873-25.911136-10.952446l-82.942037-82.942037L604.157933 512z","p-id":"4110"}})])},staticRenderFns:[]};var r=n("VU/8")(o,i,!1,function(t){n("Swcz")},"data-v-3df92c54",null);e.a=r.exports},"9NxQ":function(t,e){},BoGV:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n("Dd8w"),a=n.n(s),o=n("NYxO"),i={name:"ContestProblemList",mixins:[n("y2MC").b],data:function(){var t=this;return{ACMTableColumns:[{title:"#",key:"_id",sortType:"asc",width:150},{title:this.$i18n.t("m.Title"),key:"title"},{title:this.$i18n.t("m.Total"),key:"submission_number"},{title:this.$i18n.t("m.AC_Rate"),render:function(e,n){return e("span",t.getACRate(n.row.accepted_number,n.row.submission_number))}}],OITableColumns:[{title:"#",key:"_id",width:150},{title:this.$i18n.t("m.Title"),key:"title"}]}},mounted:function(){this.getContestProblems()},methods:{getContestProblems:function(){var t=this;this.$store.dispatch("getContestProblems").then(function(e){t.isAuthenticated&&("ACM"===t.contestRuleType?t.addStatusColumn(t.ACMTableColumns,e.data.data):t.OIContestRealTimePermission&&t.addStatusColumn(t.ACMTableColumns,e.data.data))})},goContestProblem:function(t){this.$router.push({name:"contest-problem-details",params:{contestID:this.$route.params.contestID,problemID:t._id}})}},computed:a()({},Object(o.mapState)({problems:function(t){return t.contest.contestProblems}}),Object(o.mapGetters)(["isAuthenticated","contestRuleType","OIContestRealTimePermission"]))},r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Panel",[n("div",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(t.$t("m.Problems_List")))]),t._v(" "),"ACM"==t.contestRuleType||t.OIContestRealTimePermission?n("Table",{attrs:{columns:t.ACMTableColumns,data:t.problems,"no-data-text":t.$t("m.No_Problems")},on:{"on-row-click":t.goContestProblem}}):n("Table",{attrs:{data:t.problems,columns:t.OITableColumns,"no-data-text":"$t('m.No_Problems')"},on:{"on-row-click":t.goContestProblem}})],1)],1)},staticRenderFns:[]};var c=n("VU/8")(i,r,!1,function(t){n("uPiC")},"data-v-37737398",null);e.default=c.exports},C7H7:function(t,e){},H40m:function(t,e){},HAQa:function(t,e){},I95x:function(t,e){ +/*! +* screenfull +* v3.3.3 - 2018-09-04 +* (c) Sindre Sorhus; MIT License +*/ +!function(){"use strict";var e="undefined"!=typeof window&&void 0!==window.document?window.document:{},n=void 0!==t&&t.exports,s="undefined"!=typeof Element&&"ALLOW_KEYBOARD_INPUT"in Element,a=function(){for(var t,n=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],s=0,a=n.length,o={};s0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=(e-1)*this.limit;this.showChart&&!n&&this.$refs.chart.showLoading({maskColor:"rgba(250, 250, 250, 0.8)"});var a={offset:s,limit:this.limit,contest_id:this.$route.params.contestID,force_refresh:this.forceUpdate?"1":"0"};g.a.getContestRank(a).then(function(s){t.showChart&&!n&&t.$refs.chart.hideLoading(),t.total=s.data.data.total,1===e&&t.applyToChart(s.data.data.results.slice(0,10)),t.applyToTable(s.data.data.results)})},handleAutoRefresh:function(t){var e=this;!0===t?this.refreshFunc=setInterval(function(){e.page=1,e.getContestRankData(1,!0)},1e4):clearInterval(this.refreshFunc)}},computed:a()({},Object(o.mapGetters)(["isContestAdmin"]),Object(o.mapState)({contest:function(t){return t.contest.contest},contestProblems:function(t){return t.contest.contestProblems}}),{showChart:{get:function(){return this.$store.state.contest.itemVisible.chart},set:function(t){this.$store.commit(i.b.CHANGE_CONTEST_ITEM_VISIBLE,{chart:t})}},showMenu:{get:function(){return this.$store.state.contest.itemVisible.menu},set:function(t){var e=this;this.$store.commit(i.b.CHANGE_CONTEST_ITEM_VISIBLE,{menu:t}),this.$nextTick(function(){e.showChart&&e.$refs.chart.resize(),e.$refs.tableRank.handleResize()})}},showRealName:{get:function(){return this.$store.state.contest.itemVisible.realName},set:function(t){this.$store.commit(i.b.CHANGE_CONTEST_ITEM_VISIBLE,{realName:t}),t?this.columns.splice(2,0,{title:"RealName",align:"center",width:150,render:function(t,e){return t("span",e.row.user.real_name)}}):this.columns.splice(2,1)}},forceUpdate:{get:function(){return this.$store.state.contest.forceUpdate},set:function(t){this.$store.commit(i.b.CHANGE_RANK_FORCE_UPDATE,{value:t})}},limit:{get:function(){return this.$store.state.contest.rankLimit},set:function(t){this.$store.commit(i.b.CHANGE_CONTEST_RANK_LIMIT,{rankLimit:t})}},refreshDisabled:function(){return this.contest.status===b.a.ENDED}}),beforeDestroy:function(){clearInterval(this.refreshFunc)}},y=n("2hfY"),A=n("oAV5"),I={name:"acm-contest-rank",components:{Pagination:v.a},mixins:[C],data:function(){var t=this;return{total:0,page:1,contestID:"",columns:[{align:"center",width:50,fixed:"left",render:function(e,n){return e("span",{},n.index+(t.page-1)*t.limit+1)}},{title:this.$i18n.t("m.User_User"),align:"center",fixed:"left",width:150,render:function(e,n){return e("a",{style:{display:"inline-block","max-width":"150px"},on:{click:function(){t.$router.push({name:"user-home",query:{username:n.row.user.username}})}}},n.row.user.username)}},{title:"AC / "+this.$i18n.t("m.Total"),align:"center",width:100,render:function(e,n){return e("span",{},[e("span",{},n.row.accepted_number+" / "),e("a",{on:{click:function(){t.$router.push({name:"contest-submission-list",query:{username:n.row.user.username}})}}},n.row.submission_number)])}},{title:this.$i18n.t("m.TotalTime"),align:"center",width:100,render:function(e,n){return e("span",t.parseTotalTime(n.row.total_time))}}],dataRank:[],options:{title:{text:this.$i18n.t("m.Top_10_Teams"),left:"center"},dataZoom:[{type:"inside",filterMode:"none",xAxisIndex:[0],start:0,end:100}],toolbox:{show:!0,feature:{saveAsImage:{show:!0,title:this.$i18n.t("m.save_as_image")}},right:"5%"},tooltip:{trigger:"axis",axisPointer:{type:"cross",axis:"x"}},legend:{orient:"vertical",y:"center",right:0,data:[],formatter:function(t){return A.a.breakLongWords(t,16)},textStyle:{fontSize:12}},grid:{x:80,x2:200},xAxis:[{type:"time",splitLine:!1,axisPointer:{show:!0,snap:!0}}],yAxis:[{type:"category",boundaryGap:!1,data:[0]}],series:[]}}},mounted:function(){var t=this;this.contestID=this.$route.params.contestID,this.getContestRankData(1),0===this.contestProblems.length?this.getContestProblems().then(function(e){t.addTableColumns(e.data.data),t.addChartCategory(e.data.data)}):(this.addTableColumns(this.contestProblems),this.addChartCategory(this.contestProblems))},methods:a()({},Object(o.mapActions)(["getContestProblems"]),{addChartCategory:function(t){for(var e=[],n=0;n<=t.length;++n)e.push(n);this.options.yAxis[0].data=e},applyToChart:function(t){var e=this,n=[],s=[];t.forEach(function(t){n.push(t.user.username);var a=t.submission_info,o=[];p()(a).forEach(function(t){a[t].is_ac&&o.push(a[t].ac_time)}),o.sort(function(t,e){return t-e});var i=[];i.push([e.contest.start_time,0]);var r=!0,c=!1,l=void 0;try{for(var d,h=u()(o.entries());!(r=(d=h.next()).done);r=!0){var f=d.value,v=m()(f,2),g=v[0],w=v[1],b=_()(e.contest.start_time).add(w,"seconds").format();i.push([b,g+1])}}catch(t){c=!0,l=t}finally{try{!r&&h.return&&h.return()}finally{if(c)throw l}}s.push({name:t.user.username,type:"line",data:i})}),this.options.legend.data=n,this.options.series=s},applyToTable:function(t){var e=JSON.parse(c()(t));e.forEach(function(t,n){var s=t.submission_info,a={};p()(s).forEach(function(t){e[n][t]=s[t],e[n][t].ac_time=y.a.secondFormat(e[n][t].ac_time);var o=s[t];o.is_first_ac?a[t]="first-ac":o.is_ac?a[t]="ac":a[t]="wa"}),e[n].cellClassName=a}),this.dataRank=e},addTableColumns:function(t){var e=this;t.forEach(function(n){e.columns.push({align:"center",key:n.id,width:t.length>15?80:null,renderHeader:function(t,s){return t("a",{class:{emphasis:!0},on:{click:function(){e.$router.push({name:"contest-problem-details",params:{contestID:e.contestID,problemID:n._id}})}}},n._id)},render:function(t,e){if(e.row[n.id]){var s=e.row[n.id],a=void 0,o=void 0;return s.is_ac&&(a=t("span",s.ac_time)),0!==s.error_number&&(o=t("p","(-"+s.error_number+")")),t("div",[a,o])}}})})},parseTotalTime:function(t){var e=_.a.duration(t,"s");return[Math.floor(e.asHours()),e.minutes(),e.seconds()].join(":")},downloadRankCSV:function(){A.a.downloadFile("contest_rank?download_csv=1&contest_id="+this.$route.params.contestID+"&force_refrash="+(this.forceUpdate?"1":"0"))}})},k={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("Panel",{attrs:{shadow:""}},[n("div",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(t.contest.title))]),t._v(" "),n("div",{attrs:{slot:"extra"},slot:"extra"},[n("screen-full",{staticClass:"screen-full",attrs:{height:18,width:18}}),t._v(" "),n("Poptip",{attrs:{trigger:"hover",placement:"left-start"}},[n("Icon",{attrs:{type:"android-settings",size:"20"}}),t._v(" "),n("div",{attrs:{slot:"content",id:"switches"},slot:"content"},[n("p",[n("span",[t._v(t._s(t.$t("m.Menu")))]),t._v(" "),n("i-switch",{model:{value:t.showMenu,callback:function(e){t.showMenu=e},expression:"showMenu"}}),t._v(" "),n("span",[t._v(t._s(t.$t("m.Chart")))]),t._v(" "),n("i-switch",{model:{value:t.showChart,callback:function(e){t.showChart=e},expression:"showChart"}})],1),t._v(" "),n("p",[n("span",[t._v(t._s(t.$t("m.Auto_Refresh"))+"(10s)")]),t._v(" "),n("i-switch",{attrs:{disabled:t.refreshDisabled},on:{"on-change":t.handleAutoRefresh}})],1),t._v(" "),t.isContestAdmin?[n("p",[n("span",[t._v(t._s(t.$t("m.RealName")))]),t._v(" "),n("i-switch",{model:{value:t.showRealName,callback:function(e){t.showRealName=e},expression:"showRealName"}})],1),t._v(" "),n("p",[n("span",[t._v(t._s(t.$t("m.Force_Update")))]),t._v(" "),n("i-switch",{attrs:{disabled:t.refreshDisabled},model:{value:t.forceUpdate,callback:function(e){t.forceUpdate=e},expression:"forceUpdate"}})],1)]:t._e(),t._v(" "),[n("Button",{attrs:{type:"primary",size:"small"},on:{click:t.downloadRankCSV}},[t._v(t._s(t.$t("m.download_csv")))])]],2)],1)],1),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showChart,expression:"showChart"}],staticClass:"echarts"},[n("ECharts",{ref:"chart",attrs:{options:t.options,"auto-resize":""}})],1),t._v(" "),n("Table",{ref:"tableRank",attrs:{columns:t.columns,data:t.dataRank,"disabled-hover":"",height:"600"}}),t._v(" "),n("Pagination",{attrs:{total:t.total,"page-size":t.limit,current:t.page,"show-sizer":""},on:{"update:pageSize":function(e){t.limit=e},"update:page-size":function(e){t.limit=e},"update:current":function(e){t.page=e},"on-change":t.getContestRankData,"on-page-size-change":function(e){return t.getContestRankData(1)}}})],1)},staticRenderFns:[]};var R=n("VU/8")(I,k,!1,function(t){n("H40m")},"data-v-6a2e4af0",null).exports,T={name:"acm-contest-rank",components:{Pagination:v.a},mixins:[C],data:function(){var t=this;return{total:0,page:1,contestID:"",columns:[{align:"center",width:60,render:function(e,n){return e("span",{},n.index+(t.page-1)*t.limit+1)}},{title:this.$i18n.t("m.User_User"),align:"center",render:function(e,n){return e("a",{style:{display:"inline-block","max-width":"150px"},on:{click:function(){t.$router.push({name:"user-home",query:{username:n.row.user.username}})}}},n.row.user.username)}},{title:this.$i18n.t("m.Total_Score"),align:"center",render:function(e,n){return e("a",{on:{click:function(){t.$router.push({name:"contest-submission-list",query:{username:n.row.user.username}})}}},n.row.total_score)}}],dataRank:[],options:{title:{text:this.$i18n.t("m.Top_10_Teams"),left:"center"},tooltip:{trigger:"axis"},toolbox:{show:!0,feature:{dataView:{show:!0,readOnly:!0},magicType:{show:!0,type:["line","bar"]},saveAsImage:{show:!0}},right:"10%"},calculable:!0,xAxis:[{type:"category",data:["root"],boundaryGap:!0,axisLabel:{interval:0,showMinLabel:!0,showMaxLabel:!0,align:"center",formatter:function(t,e){return A.a.breakLongWords(t,14)}},axisTick:{alignWithLabel:!0}}],yAxis:[{type:"value"}],series:[{name:this.$i18n.t("m.Score"),type:"bar",barMaxWidth:"80",data:[0],markPoint:{data:[{type:"max",name:"max"}]}}]}}},mounted:function(){var t=this;this.contestID=this.$route.params.contestID,this.getContestRankData(1),0===this.contestProblems.length?this.getContestProblems().then(function(e){t.addTableColumns(e.data.data)}):this.addTableColumns(this.contestProblems)},methods:a()({},Object(o.mapActions)(["getContestProblems"]),{applyToChart:function(t){var e=[],n=[];t.forEach(function(t){e.push(t.user.username),n.push(t.total_score)}),this.options.xAxis[0].data=e,this.options.series[0].data=n},applyToTable:function(t){var e=JSON.parse(c()(t));e.forEach(function(t,n){var s=t.submission_info;p()(s).forEach(function(t){e[n][t]=s[t]})}),this.dataRank=e},addTableColumns:function(t){var e=this;t.forEach(function(t){e.columns.push({align:"center",key:t.id,renderHeader:function(n,s){return n("a",{class:{emphasis:!0},on:{click:function(){e.$router.push({name:"contest-problem-details",params:{contestID:e.contestID,problemID:t._id}})}}},t._id)},render:function(e,n){return e("span",n.row[t.id])}})})},downloadRankCSV:function(){A.a.downloadFile("contest_rank?download_csv=1&contest_id="+this.$route.params.contestID+"&force_refrash="+(this.forceUpdate?"1":"0"))}})},x={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("Panel",{attrs:{shadow:""}},[n("div",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(t.contest.title))]),t._v(" "),n("div",{attrs:{slot:"extra"},slot:"extra"},[n("screen-full",{staticClass:"screen-full",attrs:{height:18,width:18}}),t._v(" "),n("Poptip",{attrs:{trigger:"hover",placement:"left-start"}},[n("Icon",{attrs:{type:"android-settings",size:"20"}}),t._v(" "),n("div",{attrs:{slot:"content",id:"switches"},slot:"content"},[n("p",[n("span",[t._v(t._s(t.$t("m.Menu")))]),t._v(" "),n("i-switch",{model:{value:t.showMenu,callback:function(e){t.showMenu=e},expression:"showMenu"}}),t._v(" "),n("span",[t._v(t._s(t.$t("m.Chart")))]),t._v(" "),n("i-switch",{model:{value:t.showChart,callback:function(e){t.showChart=e},expression:"showChart"}})],1),t._v(" "),n("p",[n("span",[t._v(t._s(t.$t("m.Auto_Refresh"))+"(10s)")]),t._v(" "),n("i-switch",{attrs:{disabled:t.refreshDisabled},on:{"on-change":t.handleAutoRefresh}})],1),t._v(" "),t.isContestAdmin?n("p",[n("span",[t._v(t._s(t.$t("m.RealName")))]),t._v(" "),n("i-switch",{model:{value:t.showRealName,callback:function(e){t.showRealName=e},expression:"showRealName"}})],1):t._e(),t._v(" "),n("p",[n("Button",{attrs:{type:"primary",size:"small"},on:{click:t.downloadRankCSV}},[t._v(t._s(t.$t("m.download_csv")))])],1)])],1)],1),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showChart,expression:"showChart"}],staticClass:"echarts"},[n("ECharts",{ref:"chart",attrs:{options:t.options,"auto-resize":""}})],1),t._v(" "),n("Table",{ref:"tableRank",staticClass:"auto-resize",attrs:{columns:t.columns,data:t.dataRank,"disabled-hover":""}}),t._v(" "),n("Pagination",{attrs:{total:t.total,"page-size":t.limit,current:t.page,"show-sizer":""},on:{"update:pageSize":function(e){t.limit=e},"update:page-size":function(e){t.limit=e},"update:current":function(e){t.page=e},"on-change":t.getContestRankData,"on-page-size-change":function(e){return t.getContestRankData(1)}}})],1)},staticRenderFns:[]};var D={name:"contest-rank",components:{ACMContestRank:R,OIContestRank:n("VU/8")(T,x,!1,function(t){n("cVp+")},"data-v-72082334",null).exports,NullComponent:{name:"null-component",template:"
"}},computed:a()({},Object(o.mapGetters)(["contestRuleType"]),{currentView:function(){return null===this.contestRuleType?"NullComponent":"ACM"===this.contestRuleType?"ACMContestRank":"OIContestRank"}}),beforeRouteLeave:function(t,e,n){this.$store.commit(i.b.CHANGE_CONTEST_ITEM_VISIBLE,{menu:!0}),n()}},E={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e(this.currentView,{tag:"component"})],1)},staticRenderFns:[]};var S=n("VU/8")(D,E,!1,function(t){n("HAQa")},"data-v-7b123b58",null);e.default=S.exports},zVEN:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n("BO1k"),a=n.n(s),o=n("Dd8w"),i=n.n(o),r=n("NYxO"),c=n("IcnI"),l=n("PJh5"),u=n.n(l),d=n("26Oo"),m=n("8Q2T"),h={name:"acm-helper",components:{Pagination:d.a},data:function(){var t=this;return{page:1,total:0,loadingTable:!1,columns:[{title:this.$i18n.t("m.AC_Time"),key:"ac_time"},{title:this.$i18n.t("m.ProblemID"),align:"center",key:"problem_display_id"},{title:this.$i18n.t("m.First_Blood"),align:"center",render:function(e,n){return n.row.ac_info.is_first_ac?e("Tag",{props:{color:"red"}},t.$i18n.t("m.First_Blood")):e("span","----")}},{title:this.$i18n.t("m.Username"),align:"center",render:function(e,n){var s=n.row;return e("a",{style:{display:"inline-block","max-width":"150px"},on:{click:function(){t.$router.push({name:"contest-submission-list",query:{username:s.username}})}}},s.username)}},{title:this.$i18n.t("m.RealName"),align:"center",render:function(t,e){return t("span",{style:{display:"inline-block","max-width":"150px"}},e.row.real_name)}},{title:this.$i18n.t("m.Status"),align:"center",render:function(e,n){var s=n.row;return e("Tag",{props:{color:s.checked?"green":"yellow"}},s.checked?t.$i18n.t("m.Checked"):t.$i18n.t("m.Not_Checked"))}},{title:this.$i18n.t("m.Option"),fixed:"right",align:"center",width:100,render:function(e,n){var s=n.row;return e("Button",{props:{type:"ghost",size:"small",icon:"checkmark",disabled:s.checked},on:{click:function(){t.updateCheckedStatus(s)}}},t.$i18n.t("m.Check_It"))}}],acInfo:[],pagedAcInfo:[],problemsMap:[]}},mounted:function(){var t=this;this.contestID=this.$route.params.contestID,0===this.contestProblems.length?this.getContestProblems().then(function(e){t.mapProblemDisplayID(),t.getACInfo()}):(this.mapProblemDisplayID(),this.getACInfo())},methods:i()({},Object(r.mapActions)(["getContestProblems"]),{mapProblemDisplayID:function(){var t={};this.contestProblems.forEach(function(e){t[e.id]=e._id}),this.problemsMap=t},getACInfo:function(){var t=this;arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.loadingTable=!0;var e={contest_id:this.$route.params.contestID};m.a.getACMACInfo(e).then(function(e){t.loadingTable=!1;var n=e.data.data;t.total=n.length,t.acInfo=n,t.handlePage()}).catch(function(){t.loadingTable=!1})},updateCheckedStatus:function(t){var e=this,n={rank_id:t.id,contest_id:this.contestID,problem_id:t.problem_id,checked:!0};m.a.updateACInfoCheckedStatus(n).then(function(t){e.$success("Succeeded"),e.getACInfo()}).catch(function(){})},handleAutoRefresh:function(t){var e=this;t?this.refreshFunc=setInterval(function(){e.page=1,e.getACInfo()},1e4):clearInterval(this.refreshFunc)},handlePage:function(){1!==(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)&&(this.loadingTable=!0);var t=this.acInfo.slice((this.page-1)*this.limit,this.page*this.limit),e=!0,n=!1,s=void 0;try{for(var o,i=a()(t);!(e=(o=i.next()).done);e=!0){var r=o.value;r.init||(r.init=!0,r.problem_display_id=this.problemsMap[r.problem_id],r.ac_time=u()(this.contest.start_time).add(r.ac_info.ac_time,"seconds").local().format("YYYY-M-D HH:mm:ss"))}}catch(t){n=!0,s=t}finally{try{!e&&i.return&&i.return()}finally{if(n)throw s}}this.pagedAcInfo=t,this.loadingTable=!1}}),computed:i()({},Object(r.mapState)({contest:function(t){return t.contest.contest},contestProblems:function(t){return t.contest.contestProblems}}),{limit:{get:function(){return this.$store.state.contest.rankLimit},set:function(t){this.$store.commit(c.b.CHANGE_CONTEST_RANK_LIMIT,{rankLimit:t})}}}),beforeDestroy:function(){clearInterval(this.refreshFunc)}},p={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("panel",{attrs:{shadow:""}},[n("div",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(t.$t("m.ACM_Helper")))]),t._v(" "),n("div",{attrs:{slot:"extra"},slot:"extra"},[n("ul",{staticClass:"filter"},[n("li",[t._v("\n "+t._s(t.$t("m.Auto_Refresh"))+" (10s)\n "),n("i-switch",{staticStyle:{"margin-left":"5px"},on:{"on-change":t.handleAutoRefresh}})],1),t._v(" "),n("li",[n("Button",{attrs:{type:"info"},on:{click:t.getACInfo}},[t._v(t._s(t.$t("m.Refresh")))])],1)])]),t._v(" "),n("Table",{attrs:{data:t.pagedAcInfo,columns:t.columns,loading:t.loadingTable,"disabled-hover":""}}),t._v(" "),n("pagination",{attrs:{total:t.total,"page-size":t.limit,current:t.page,"show-sizer":""},on:{"update:pageSize":function(e){t.limit=e},"update:page-size":function(e){t.limit=e},"update:current":function(e){t.page=e},"on-change":t.handlePage,"on-page-size-change":function(e){return t.handlePage(1)}}})],1)},staticRenderFns:[]};var f=n("VU/8")(h,p,!1,function(t){n("NKMc")},"data-v-50b83d98",null);e.default=f.exports}}); \ No newline at end of file diff --git a/js/1.f7385a6fceb30ceaecb0.js b/js/1.f7385a6fceb30ceaecb0.js new file mode 100644 index 0000000..4f590d7 --- /dev/null +++ b/js/1.f7385a6fceb30ceaecb0.js @@ -0,0 +1 @@ +webpackJsonp([1],{"01dx":function(t,e){},"1r1+":function(t,e){},"7xfo":function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=o("Dd8w"),n=o.n(r),i=o("fZjL"),a=o.n(i),s=o("8Q2T"),c=o("NYxO"),p=o("Pc6x"),l={},h=function(t){var e={};return t in a()(l)?e=l[t]:(e=Object(p.default)(t),l[t]=e),e},u={data:function(){return{qrcodeSrc:"",loadingQRcode:!1,loadingBtn:!1,formTwoFactor:{code:""},sessions:[]}},mounted:function(){this.getSessions(),this.TFAOpened||this.getAuthImg()},methods:n()({},Object(c.mapActions)(["getProfile"]),{getAuthImg:function(){var t=this;this.loadingQRcode=!0,s.a.twoFactorAuth("get").then(function(e){t.loadingQRcode=!1,t.qrcodeSrc=e.data.data})},getSessions:function(){var t=this;s.a.getSessions().then(function(e){var o=e.data.data,r=o.filter(function(t){return t.current_session});o.forEach(function(t){t.current_session||r.push(t)}),t.sessions=r})},deleteSession:function(t){var e=this;this.$Modal.confirm({title:"Confirm",content:"Are you sure to revoke the session?",onOk:function(){s.a.deleteSession(t).then(function(t){e.getSessions()},function(t){})}})},closeTFA:function(){var t=this;this.$Modal.confirm({title:"Confirm",content:"Two-factor Authentication is a powerful tool to protect your account, are you sure to close it?",onOk:function(){t.updateTFA(!0)}})},updateTFA:function(t){var e=this,o=!1===t?"post":"put";this.loadingBtn=!0,s.a.twoFactorAuth(o,this.formTwoFactor).then(function(o){e.loadingBtn=!1,e.getProfile(),!0===t&&(e.getAuthImg(),e.formTwoFactor.code=""),e.formTwoFactor.code=""},function(t){e.formTwoFactor.code="",e.loadingBtn=!1,t.data.data.indexOf("session")>-1&&(e.getProfile(),e.getAuthImg())})}}),computed:n()({},Object(c.mapGetters)(["user"]),{TFAOpened:function(){return this.user&&this.user.two_factor_auth}}),filters:{browser:function(t){var e=h(t);return e.name&&e.version?e.name+" "+e.version:"Unknown"},platform:function(t){var e=h(t);return e.os?e.os:"Unknown"}}},d={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"setting-main"},[o("p",{staticClass:"section-title"},[t._v(t._s(t.$t("m.Sessions")))]),t._v(" "),o("div",{staticClass:"flex-container setting-content"},[t._l(t.sessions,function(e){return[o("Card",{staticClass:"flex-child",attrs:{padding:20}},[o("span",{staticStyle:{"line-height":"20px"},attrs:{slot:"title"},slot:"title"},[t._v(t._s(e.ip))]),t._v(" "),o("div",{attrs:{slot:"extra"},slot:"extra"},[e.current_session?o("Tag",{attrs:{color:"green"}},[t._v("Current")]):o("Button",{attrs:{type:"warning",size:"small"},on:{click:function(o){return t.deleteSession(e.session_key)}}},[t._v("Revoke\n ")])],1),t._v(" "),o("Form",{attrs:{"label-width":100}},[o("FormItem",{staticClass:"item",attrs:{label:"OS :"}},[t._v("\n "+t._s(t._f("platform")(e.user_agent))+"\n ")]),t._v(" "),o("FormItem",{staticClass:"item",attrs:{label:"Browser :"}},[t._v("\n "+t._s(t._f("browser")(e.user_agent))+"\n ")]),t._v(" "),o("FormItem",{staticClass:"item",attrs:{label:"Last Activity :"}},[t._v("\n "+t._s(t._f("localtime")(e.last_activity))+"\n ")])],1)],1)]})],2),t._v(" "),o("p",{staticClass:"section-title"},[t._v(t._s(t.$t("m.Two_Factor_Authentication")))]),t._v(" "),o("div",{staticClass:"mini-container setting-content"},[o("Form",[t.TFAOpened?o("Alert",{staticClass:"notice",attrs:{type:"success",showIcon:""}},[t._v("You have enabled two-factor authentication.\n ")]):t._e(),t._v(" "),t.TFAOpened?t._e():o("FormItem",[o("div",{staticClass:"oj-relative"},[o("img",{attrs:{src:t.qrcodeSrc,id:"qr-img"}}),t._v(" "),t.loadingQRcode?o("Spin",{attrs:{size:"large",fix:""}}):t._e()],1)]),t._v(" "),t.loadingQRcode?t._e():[o("FormItem",{staticStyle:{width:"250px"}},[o("Input",{attrs:{placeholder:"Enter the code from your application"},model:{value:t.formTwoFactor.code,callback:function(e){t.$set(t.formTwoFactor,"code",e)},expression:"formTwoFactor.code"}})],1),t._v(" "),t.TFAOpened?o("Button",{attrs:{type:"error",loading:t.loadingBtn},on:{click:t.closeTFA}},[t._v("Close TFA\n ")]):o("Button",{attrs:{type:"primary",loading:t.loadingBtn},on:{click:function(e){return t.updateTFA(!1)}}},[t._v("Open TFA\n ")])]],2)],1)])},staticRenderFns:[]};var f=o("VU/8")(u,d,!1,function(t){o("zbd6")},"data-v-05a7df2d",null);e.default=f.exports},KWkR:function(t,e){},Pc6x:function(t,e,o){t.exports=o("JjJT")(45)},QhGd:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=o("woOf"),n=o.n(r),i=o("8Q2T"),a={mixins:[o("y2MC").a],data:function(){var t=this,e=[{required:!0,trigger:"blur",min:6,max:20}],o=[{required:!0,trigger:"change"}];return{loading:{btnPassword:!1,btnEmail:!1},visible:{passwordAlert:!1,emailAlert:!1,tfaRequired:!1},formPassword:{tfa_code:"",old_password:"",new_password:"",again_password:""},formEmail:{tfa_code:"",password:"",old_email:"",new_email:""},rulePassword:{old_password:e,new_password:[{required:!0,trigger:"blur",min:6,max:20},{validator:function(e,o,r){""!==t.formPassword.old_password&&(t.formPassword.old_password===t.formPassword.new_password?r(new Error("The new password doesn't change")):t.$refs.formPassword.validateField("again_password")),r()},trigger:"blur"}],again_password:[{required:!0,validator:function(e,o,r){o!==t.formPassword.new_password&&r(new Error("password does not match")),r()},trigger:"change"}],tfa_code:o},ruleEmail:{password:e,new_email:[{required:!0,type:"email",trigger:"change"}],tfa_code:o}}},mounted:function(){this.formEmail.old_email=this.$store.getters.user.email||""},methods:{changePassword:function(){var t=this;this.validateForm("formPassword").then(function(e){t.loading.btnPassword=!0;var o=n()({},t.formPassword);delete o.again_password,t.visible.tfaRequired||delete o.tfa_code,i.a.changePassword(o).then(function(e){t.loading.btnPassword=!1,t.visible.passwordAlert=!0,t.$success("Update password successfully"),setTimeout(function(){t.visible.passwordAlert=!1,t.$router.push({name:"logout"})},5e3)},function(e){"tfa_required"===e.data.data&&(t.visible.tfaRequired=!0),t.loading.btnPassword=!1})})},changeEmail:function(){var t=this;this.validateForm("formEmail").then(function(e){t.loading.btnEmail=!0;var o=n()({},t.formEmail);t.visible.tfaRequired||delete o.tfa_code,i.a.changeEmail(o).then(function(e){t.loading.btnEmail=!1,t.visible.emailAlert=!0,t.$success("Change email successfully"),t.$refs.formEmail.resetFields()},function(e){"tfa_required"===e.data.data&&(t.visible.tfaRequired=!0)})})}}},s={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"setting-main"},[o("div",{staticClass:"flex-container"},[o("div",{staticClass:"left"},[o("p",{staticClass:"section-title"},[t._v("비밀번호 재설정")]),t._v(" "),o("Form",{ref:"formPassword",staticClass:"setting-content",attrs:{model:t.formPassword,rules:t.rulePassword}},[o("FormItem",{attrs:{label:"이전 비밀번호",prop:"old_password"}},[o("Input",{attrs:{type:"password"},model:{value:t.formPassword.old_password,callback:function(e){t.$set(t.formPassword,"old_password",e)},expression:"formPassword.old_password"}})],1),t._v(" "),o("FormItem",{attrs:{label:"새 비밀번호",prop:"new_password"}},[o("Input",{attrs:{type:"password"},model:{value:t.formPassword.new_password,callback:function(e){t.$set(t.formPassword,"new_password",e)},expression:"formPassword.new_password"}})],1),t._v(" "),o("FormItem",{attrs:{label:"새 비밀번호 확인",prop:"again_password"}},[o("Input",{attrs:{type:"password"},model:{value:t.formPassword.again_password,callback:function(e){t.$set(t.formPassword,"again_password",e)},expression:"formPassword.again_password"}})],1),t._v(" "),t.visible.tfaRequired?o("FormItem",{attrs:{label:"Two Factor Auth",prop:"tfa_code"}},[o("Input",{model:{value:t.formPassword.tfa_code,callback:function(e){t.$set(t.formPassword,"tfa_code",e)},expression:"formPassword.tfa_code"}})],1):t._e(),t._v(" "),t.visible.passwordAlert?o("FormItem",[o("Alert",{attrs:{type:"success"}},[t._v("5초 후에 재로그인하세요.")])],1):t._e(),t._v(" "),o("Button",{attrs:{type:"primary"},on:{click:t.changePassword}},[t._v("저장")])],1)],1),t._v(" "),o("div",{staticClass:"middle separator"}),t._v(" "),o("div",{staticClass:"right"},[o("p",{staticClass:"section-title"},[t._v("이메일 재설정")]),t._v(" "),o("Form",{ref:"formEmail",staticClass:"setting-content",attrs:{model:t.formEmail,rules:t.ruleEmail}},[o("FormItem",{attrs:{label:"현재 비밀번호",prop:"password"}},[o("Input",{attrs:{type:"password"},model:{value:t.formEmail.password,callback:function(e){t.$set(t.formEmail,"password",e)},expression:"formEmail.password"}})],1),t._v(" "),o("FormItem",{attrs:{label:"이전 이메일"}},[o("Input",{attrs:{disabled:""},model:{value:t.formEmail.old_email,callback:function(e){t.$set(t.formEmail,"old_email",e)},expression:"formEmail.old_email"}})],1),t._v(" "),o("FormItem",{attrs:{label:"새 이메일",prop:"new_email"}},[o("Input",{model:{value:t.formEmail.new_email,callback:function(e){t.$set(t.formEmail,"new_email",e)},expression:"formEmail.new_email"}})],1),t._v(" "),t.visible.tfaRequired?o("FormItem",{attrs:{label:"Two Factor Auth",prop:"tfa_code"}},[o("Input",{model:{value:t.formEmail.tfa_code,callback:function(e){t.$set(t.formEmail,"tfa_code",e)},expression:"formEmail.tfa_code"}})],1):t._e(),t._v(" "),o("Button",{attrs:{type:"primary"},on:{click:t.changeEmail}},[t._v("저장")])],1)],1)])])},staticRenderFns:[]};var c=o("VU/8")(a,s,!1,function(t){o("01dx")},"data-v-a4b20b6e",null);e.default=c.exports},YZ0n:function(t,e,o){!function(e,o){t.exports=o()}(window,function(){return function(t){var e={};function o(r){if(e[r])return e[r].exports;var n=e[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=t,o.c=e,o.d=function(t,e,r){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=6)}([function(t,e,o){var r=o(2);"string"==typeof r&&(r=[[t.i,r,""]]);o(4)(r,{hmr:!0,transform:void 0,insertInto:void 0}),r.locals&&(t.exports=r.locals)},function(t,e,o){"use strict";var r=o(0);o.n(r).a},function(t,e,o){(t.exports=o(3)(!1)).push([t.i,'\n.vue-cropper[data-v-6dae58fd] {\n position: relative;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n direction: ltr;\n touch-action: none;\n text-align: left;\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC");\n}\n.cropper-box[data-v-6dae58fd],\n.cropper-box-canvas[data-v-6dae58fd],\n.cropper-drag-box[data-v-6dae58fd],\n.cropper-crop-box[data-v-6dae58fd],\n.cropper-face[data-v-6dae58fd] {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n user-select: none;\n}\n.cropper-box-canvas img[data-v-6dae58fd] {\n position: relative;\n text-align: left;\n user-select: none;\n transform: none;\n max-width: none;\n max-height: none;\n}\n.cropper-box[data-v-6dae58fd] {\n overflow: hidden;\n}\n.cropper-move[data-v-6dae58fd] {\n cursor: move;\n}\n.cropper-crop[data-v-6dae58fd] {\n cursor: crosshair;\n}\n.cropper-modal[data-v-6dae58fd] {\n background: rgba(0, 0, 0, 0.5);\n}\n.cropper-crop-box[data-v-6dae58fd] {\n /*border: 2px solid #39f;*/\n}\n.cropper-view-box[data-v-6dae58fd] {\n display: block;\n overflow: hidden;\n width: 100%;\n height: 100%;\n outline: 1px solid #39f;\n outline-color: rgba(51, 153, 255, 0.75);\n user-select: none;\n}\n.cropper-view-box img[data-v-6dae58fd] {\n user-select: none;\n text-align: left;\n max-width: none;\n max-height: none;\n}\n.cropper-face[data-v-6dae58fd] {\n top: 0;\n left: 0;\n background-color: #fff;\n opacity: 0.1;\n}\n.crop-info[data-v-6dae58fd] {\n position: absolute;\n left: 0px;\n min-width: 65px;\n text-align: center;\n color: white;\n line-height: 20px;\n background-color: rgba(0, 0, 0, 0.8);\n font-size: 12px;\n}\n.crop-line[data-v-6dae58fd] {\n position: absolute;\n display: block;\n width: 100%;\n height: 100%;\n opacity: 0.1;\n}\n.line-w[data-v-6dae58fd] {\n top: -3px;\n left: 0;\n height: 5px;\n cursor: n-resize;\n}\n.line-a[data-v-6dae58fd] {\n top: 0;\n left: -3px;\n width: 5px;\n cursor: w-resize;\n}\n.line-s[data-v-6dae58fd] {\n bottom: -3px;\n left: 0;\n height: 5px;\n cursor: s-resize;\n}\n.line-d[data-v-6dae58fd] {\n top: 0;\n right: -3px;\n width: 5px;\n cursor: e-resize;\n}\n.crop-point[data-v-6dae58fd] {\n position: absolute;\n width: 8px;\n height: 8px;\n opacity: 0.75;\n background-color: #39f;\n border-radius: 100%;\n}\n.point1[data-v-6dae58fd] {\n top: -4px;\n left: -4px;\n cursor: nw-resize;\n}\n.point2[data-v-6dae58fd] {\n top: -5px;\n left: 50%;\n margin-left: -3px;\n cursor: n-resize;\n}\n.point3[data-v-6dae58fd] {\n top: -4px;\n right: -4px;\n cursor: ne-resize;\n}\n.point4[data-v-6dae58fd] {\n top: 50%;\n left: -4px;\n margin-top: -3px;\n cursor: w-resize;\n}\n.point5[data-v-6dae58fd] {\n top: 50%;\n right: -4px;\n margin-top: -3px;\n cursor: e-resize;\n}\n.point6[data-v-6dae58fd] {\n bottom: -5px;\n left: -4px;\n cursor: sw-resize;\n}\n.point7[data-v-6dae58fd] {\n bottom: -5px;\n left: 50%;\n margin-left: -3px;\n cursor: s-resize;\n}\n.point8[data-v-6dae58fd] {\n bottom: -5px;\n right: -4px;\n cursor: se-resize;\n}\n@media screen and (max-width: 500px) {\n.crop-point[data-v-6dae58fd] {\n position: absolute;\n width: 20px;\n height: 20px;\n opacity: 0.45;\n background-color: #39f;\n border-radius: 100%;\n}\n.point1[data-v-6dae58fd] {\n top: -10px;\n left: -10px;\n}\n.point2[data-v-6dae58fd],\n .point4[data-v-6dae58fd],\n .point5[data-v-6dae58fd],\n .point7[data-v-6dae58fd] {\n display: none;\n}\n.point3[data-v-6dae58fd] {\n top: -10px;\n right: -10px;\n}\n.point4[data-v-6dae58fd] {\n top: 0;\n left: 0;\n}\n.point6[data-v-6dae58fd] {\n bottom: -10px;\n left: -10px;\n}\n.point8[data-v-6dae58fd] {\n bottom: -10px;\n right: -10px;\n}\n}\n',""])},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o=function(t,e){var o=t[1]||"",r=t[3];if(!r)return o;if(e&&"function"==typeof btoa){var n=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(r),i=r.sources.map(function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"});return[o].concat(i).concat([n]).join("\n")}return[o].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+o+"}":o}).join("")},e.i=function(t,o){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},n=0;n=0&&c.splice(e,1)}function f(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var r=o.nc;r&&(t.attrs.nonce=r)}return m(e,t.attrs),u(t,e),e}function m(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}function v(t,e){var o,r,n,i;if(e.transform&&t.css){if(!(i="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=i}if(e.singleton){var c=s++;o=a||(a=f(e)),r=w.bind(null,o,c,!1),n=w.bind(null,o,c,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(o=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",m(e,t.attrs),u(t,e),e}(e),r=function(t,e,o){var r=o.css,n=o.sourceMap,i=void 0===e.convertToAbsoluteUrls&&n;(e.convertToAbsoluteUrls||i)&&(r=p(r)),n&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */");var a=new Blob([r],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,o,e),n=function(){d(o),o.href&&URL.revokeObjectURL(o.href)}):(o=f(e),r=function(t,e){var o=e.css,r=e.media;if(r&&t.setAttribute("media",r),t.styleSheet)t.styleSheet.cssText=o;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(o))}}.bind(null,o),n=function(){d(o)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else n()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=n()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var o=h(t,e);return l(o,e),function(t){for(var n=[],i=0;i=8&&(s=o+r))),s)for(h=l.getUint16(s,n),p=0;p21?"-21px":"0px",t.width=this.cropW>0?this.cropW:0,t.height=this.cropH>0?this.cropH:0,this.infoTrue){var e=1;this.high&&!this.full&&(e=window.devicePixelRatio),1!==this.enlarge&!this.full&&(e=Math.abs(Number(this.enlarge))),t.width=t.width*e,t.height=t.height*e,this.full&&(t.width=t.width/this.scale,t.height=t.height/this.scale)}return t.width=t.width.toFixed(0),t.height=t.height.toFixed(0),t},isIE:function(){var t=navigator.userAgent;return t.indexOf("compatible")>-1&&t.indexOf("MSIE")>-1}},watch:{img:function(){this.checkedImg()},imgs:function(t){""!==t&&this.reload()},cropW:function(){this.showPreview()},cropH:function(){this.showPreview()},cropOffsertX:function(){this.showPreview()},cropOffsertY:function(){this.showPreview()},scale:function(t,e){this.showPreview()},x:function(){this.showPreview()},y:function(){this.showPreview()},autoCrop:function(t){t&&this.goAutoCrop()},autoCropWidth:function(){this.autoCrop&&this.goAutoCrop()},autoCropHeight:function(){this.autoCrop&&this.goAutoCrop()},mode:function(){this.checkedImg()},rotate:function(){this.showPreview(),this.autoCrop?this.goAutoCrop(this.cropW,this.cropH):(this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{checkOrientationImage:function(t,e,o,r){var n=this,i=document.createElement("canvas"),a=i.getContext("2d");switch(a.save(),e){case 2:i.width=o,i.height=r,a.translate(o,0),a.scale(-1,1);break;case 3:i.width=o,i.height=r,a.translate(o/2,r/2),a.rotate(180*Math.PI/180),a.translate(-o/2,-r/2);break;case 4:i.width=o,i.height=r,a.translate(0,r),a.scale(1,-1);break;case 5:i.height=o,i.width=r,a.rotate(.5*Math.PI),a.scale(1,-1);break;case 6:i.width=r,i.height=o,a.translate(r/2,o/2),a.rotate(90*Math.PI/180),a.translate(-o/2,-r/2);break;case 7:i.height=o,i.width=r,a.rotate(.5*Math.PI),a.translate(o,-r),a.scale(-1,1);break;case 8:i.height=o,i.width=r,a.translate(r/2,o/2),a.rotate(-90*Math.PI/180),a.translate(-o/2,-r/2);break;default:i.width=o,i.height=r}a.drawImage(t,0,0,o,r),a.restore(),i.toBlob(function(t){var e=URL.createObjectURL(t);n.imgs=e},"image/"+this.outputType,1)},checkedImg:function(){var t=this;if(""!==this.img){this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();var e=new Image;if(e.onload=function(){if(""===t.img)return t.$emit("imgLoad","error"),t.$emit("img-load","error"),!1;var o=e.width,r=e.height;i.getData(e).then(function(n){t.orientation=n.orientation||1;var i=t.maxImgSize;!t.orientation&&oi&&(r=r/o*i,o=i),r>i&&(o=o/r*i,r=i),t.checkOrientationImage(e,t.orientation,o,r))})},e.onerror=function(){t.$emit("imgLoad","error"),t.$emit("img-load","error")},"data"!==this.img.substr(0,4)&&(e.crossOrigin=""),this.isIE){var o=new XMLHttpRequest;o.onload=function(){var t=URL.createObjectURL(this.response);e.src=t},o.open("GET",this.img,!0),o.responseType="blob",o.send()}else e.src=this.img}},startMove:function(t){if(t.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=(t.clientX?t.clientX:t.touches[0].clientX)-this.x,this.moveY=(t.clientY?t.clientY:t.touches[0].clientY)-this.y,t.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),2==t.touches.length&&(this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=t.offsetX?t.offsetX:t.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=t.offsetY?t.offsetY:t.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX=t.clientX?t.clientX:t.touches[0].clientX,this.cropY=t.clientY?t.clientY:t.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale:function(t){var e=this;t.preventDefault();var o=this.scale,r=this.touches[0].clientX,n=this.touches[0].clientY,i=t.touches[0].clientX,a=t.touches[0].clientY,s=this.touches[1].clientX,c=this.touches[1].clientY,p=t.touches[1].clientX,l=t.touches[1].clientY,h=Math.sqrt(Math.pow(r-s,2)+Math.pow(n-c,2)),u=Math.sqrt(Math.pow(i-p,2)+Math.pow(a-l,2))-h,d=1,f=(d=(d=d/this.trueWidth>d/this.trueHeight?d/this.trueHeight:d/this.trueWidth)>.1?.1:d)*u;if(!this.touchNow){if(this.touchNow=!0,u>0?o+=Math.abs(f):u<0&&o>Math.abs(f)&&(o-=Math.abs(f)),this.touches=t.touches,setTimeout(function(){e.touchNow=!1},8),!this.checkoutImgAxis(this.x,this.y,o))return!1;this.scale=o}},cancelTouchScale:function(t){window.removeEventListener("touchmove",this.touchScale)},moveImg:function(t){var e=this;if(t.preventDefault(),t.touches&&2===t.touches.length)return this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;var o,r,n=t.clientX?t.clientX:t.touches[0].clientX,i=t.clientY?t.clientY:t.touches[0].clientY;o=n-this.moveX,r=i-this.moveY,this.$nextTick(function(){if(e.centerBox){var t,n,i,a,s=e.getImgAxis(o,r,e.scale),c=e.getCropAxis(),p=e.trueHeight*e.scale,l=e.trueWidth*e.scale;switch(e.rotate){case 1:case-1:case 3:case-3:t=e.cropOffsertX-e.trueWidth*(1-e.scale)/2+(p-l)/2,n=e.cropOffsertY-e.trueHeight*(1-e.scale)/2+(l-p)/2,i=t-p+e.cropW,a=n-l+e.cropH;break;default:t=e.cropOffsertX-e.trueWidth*(1-e.scale)/2,n=e.cropOffsertY-e.trueHeight*(1-e.scale)/2,i=t-l+e.cropW,a=n-p+e.cropH}s.x1>=c.x1&&(o=t),s.y1>=c.y1&&(r=n),s.x2<=c.x2&&(o=i),s.y2<=c.y2&&(r=a)}e.x=o,e.y=r,e.$emit("imgMoving",{moving:!0,axis:e.getImgAxis()}),e.$emit("img-moving",{moving:!0,axis:e.getImgAxis()})})},leaveImg:function(t){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg:function(){this.canScale&&window.addEventListener(this.support,this.changeSize,{passive:!1})},cancelScale:function(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize:function(t){var e=this;t.preventDefault();var o=this.scale,r=t.deltaY||t.wheelDelta;r=navigator.userAgent.indexOf("Firefox")>0?30*r:r,this.isIE&&(r=-r);var n=this.coe,i=(n=n/this.trueWidth>n/this.trueHeight?n/this.trueHeight:n/this.trueWidth)*r;i<0?o+=Math.abs(i):o>Math.abs(i)&&(o-=Math.abs(i));var a=i<0?"add":"reduce";if(a!==this.coeStatus&&(this.coeStatus=a,this.coe=.2),this.scaling||(this.scalingSet=setTimeout(function(){e.scaling=!1,e.coe=e.coe+=.01},50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,o))return!1;this.scale=o},changeScale:function(t){var e=this.scale;t=t||1;var o=20;if((t*=o=o/this.trueWidth>o/this.trueHeight?o/this.trueHeight:o/this.trueWidth)>0?e+=Math.abs(t):e>Math.abs(t)&&(e-=Math.abs(t)),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},createCrop:function(t){var e=this;t.preventDefault();var o=t.clientX?t.clientX:t.touches?t.touches[0].clientX:0,r=t.clientY?t.clientY:t.touches?t.touches[0].clientY:0;this.$nextTick(function(){var t=o-e.cropX,n=r-e.cropY;if(t>0?(e.cropW=t+e.cropChangeX>e.w?e.w-e.cropChangeX:t,e.cropOffsertX=e.cropChangeX):(e.cropW=e.w-e.cropChangeX+Math.abs(t)>e.w?e.cropChangeX:Math.abs(t),e.cropOffsertX=e.cropChangeX+t>0?e.cropChangeX+t:0),e.fixed){var i=e.cropW/e.fixedNumber[0]*e.fixedNumber[1];i+e.cropOffsertY>e.h?(e.cropH=e.h-e.cropOffsertY,e.cropW=e.cropH/e.fixedNumber[1]*e.fixedNumber[0],e.cropOffsertX=t>0?e.cropChangeX:e.cropChangeX-e.cropW):e.cropH=i,e.cropOffsertY=e.cropOffsertY}else n>0?(e.cropH=n+e.cropChangeY>e.h?e.h-e.cropChangeY:n,e.cropOffsertY=e.cropChangeY):(e.cropH=e.h-e.cropChangeY+Math.abs(n)>e.h?e.cropChangeY:Math.abs(n),e.cropOffsertY=e.cropChangeY+n>0?e.cropChangeY+n:0)})},changeCropSize:function(t,e,o,r,n){t.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=e,this.canChangeY=o,this.changeCropTypeX=r,this.changeCropTypeY=n,this.cropX=t.clientX?t.clientX:t.touches[0].clientX,this.cropY=t.clientY?t.clientY:t.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0)},changeCropNow:function(t){var e=this;t.preventDefault();var o=t.clientX?t.clientX:t.touches?t.touches[0].clientX:0,r=t.clientY?t.clientY:t.touches?t.touches[0].clientY:0,n=this.w,i=this.h,a=0,s=0;if(this.centerBox){var c=this.getImgAxis(),p=c.x2,l=c.y2;a=c.x1>0?c.x1:0,s=c.y1>0?c.y1:0,n>p&&(n=p),i>l&&(i=l)}this.$nextTick(function(){var t=o-e.cropX,c=r-e.cropY;if(e.canChangeX&&(1===e.changeCropTypeX?e.cropOldW-t>0?(e.cropW=n-e.cropChangeX-t<=n-a?e.cropOldW-t:e.cropOldW+e.cropChangeX-a,e.cropOffsertX=n-e.cropChangeX-t<=n-a?e.cropChangeX+t:a):(e.cropW=Math.abs(t)+e.cropChangeX<=n?Math.abs(t)-e.cropOldW:n-e.cropOldW-e.cropChangeX,e.cropOffsertX=e.cropChangeX+e.cropOldW):2===e.changeCropTypeX&&(e.cropOldW+t>0?(e.cropW=e.cropOldW+t+e.cropOffsertX<=n?e.cropOldW+t:n-e.cropOffsertX,e.cropOffsertX=e.cropChangeX):(e.cropW=n-e.cropChangeX+Math.abs(t+e.cropOldW)<=n-a?Math.abs(t+e.cropOldW):e.cropChangeX-a,e.cropOffsertX=n-e.cropChangeX+Math.abs(t+e.cropOldW)<=n-a?e.cropChangeX-Math.abs(t+e.cropOldW):a))),e.canChangeY&&(1===e.changeCropTypeY?e.cropOldH-c>0?(e.cropH=i-e.cropChangeY-c<=i-s?e.cropOldH-c:e.cropOldH+e.cropChangeY-s,e.cropOffsertY=i-e.cropChangeY-c<=i-s?e.cropChangeY+c:s):(e.cropH=Math.abs(c)+e.cropChangeY<=i?Math.abs(c)-e.cropOldH:i-e.cropOldH-e.cropChangeY,e.cropOffsertY=e.cropChangeY+e.cropOldH):2===e.changeCropTypeY&&(e.cropOldH+c>0?(e.cropH=e.cropOldH+c+e.cropOffsertY<=i?e.cropOldH+c:i-e.cropOffsertY,e.cropOffsertY=e.cropChangeY):(e.cropH=i-e.cropChangeY+Math.abs(c+e.cropOldH)<=i-s?Math.abs(c+e.cropOldH):e.cropChangeY-s,e.cropOffsertY=i-e.cropChangeY+Math.abs(c+e.cropOldH)<=i-s?e.cropChangeY-Math.abs(c+e.cropOldH):s))),e.canChangeX&&e.fixed){var p=e.cropW/e.fixedNumber[0]*e.fixedNumber[1];p+e.cropOffsertY>i?(e.cropH=i-e.cropOffsertY,e.cropW=e.cropH/e.fixedNumber[1]*e.fixedNumber[0]):e.cropH=p}if(e.canChangeY&&e.fixed){var l=e.cropH/e.fixedNumber[1]*e.fixedNumber[0];l+e.cropOffsertX>n?(e.cropW=n-e.cropOffsertX,e.cropH=e.cropW/e.fixedNumber[0]*e.fixedNumber[1]):e.cropW=l}})},changeCropEnd:function(t){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},endCrop:function(){0===this.cropW&&0===this.cropH&&(this.cropping=!1),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop:function(){this.crop=!0},stopCrop:function(){this.crop=!1},clearCrop:function(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove:function(t){if(t.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(t),!1;if(t.touches&&2===t.touches.length)return this.crop=!1,this.startMove(t),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);var e,o,r=t.clientX?t.clientX:t.touches[0].clientX,n=t.clientY?t.clientY:t.touches[0].clientY;e=r-this.cropOffsertX,o=n-this.cropOffsertY,this.cropX=e,this.cropY=o,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop:function(t,e){var o=this,r=0,n=0;t&&(t.preventDefault(),r=t.clientX?t.clientX:t.touches[0].clientX,n=t.clientY?t.clientY:t.touches[0].clientY),this.$nextTick(function(){var t,i,a=r-o.cropX,s=n-o.cropY;if(e&&(a=o.cropOffsertX,s=o.cropOffsertY),t=a<=0?0:a+o.cropW>o.w?o.w-o.cropW:a,i=s<=0?0:s+o.cropH>o.h?o.h-o.cropH:s,o.centerBox){var c=o.getImgAxis();t<=c.x1&&(t=c.x1),t+o.cropW>c.x2&&(t=c.x2-o.cropW),i<=c.y1&&(i=c.y1),i+o.cropH>c.y2&&(i=c.y2-o.cropH)}o.cropOffsertX=t,o.cropOffsertY=i,o.$emit("cropMoving",{moving:!0,axis:o.getCropAxis()}),o.$emit("crop-moving",{moving:!0,axis:o.getCropAxis()})})},getImgAxis:function(t,e,o){t=t||this.x,e=e||this.y,o=o||this.scale;var r={x1:0,x2:0,y1:0,y2:0},n=this.trueWidth*o,i=this.trueHeight*o;switch(this.rotate){case 0:r.x1=t+this.trueWidth*(1-o)/2,r.x2=r.x1+this.trueWidth*o,r.y1=e+this.trueHeight*(1-o)/2,r.y2=r.y1+this.trueHeight*o;break;case 1:case-1:case 3:case-3:r.x1=t+this.trueWidth*(1-o)/2+(n-i)/2,r.x2=r.x1+this.trueHeight*o,r.y1=e+this.trueHeight*(1-o)/2+(i-n)/2,r.y2=r.y1+this.trueWidth*o;break;default:r.x1=t+this.trueWidth*(1-o)/2,r.x2=r.x1+this.trueWidth*o,r.y1=e+this.trueHeight*(1-o)/2,r.y2=r.y1+this.trueHeight*o}return r},getCropAxis:function(){var t={x1:0,x2:0,y1:0,y2:0};return t.x1=this.cropOffsertX,t.x2=t.x1+this.cropW,t.y1=this.cropOffsertY,t.y2=t.y1+this.cropH,t},leaveCrop:function(t){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked:function(t){var e=this,o=document.createElement("canvas"),r=new Image,n=this.rotate,i=this.trueWidth,a=this.trueHeight,s=this.cropOffsertX,c=this.cropOffsertY;function p(t,e){o.width=Math.round(t),o.height=Math.round(e)}r.onload=function(){if(0!==e.cropW){var l=o.getContext("2d"),h=1;e.high&!e.full&&(h=window.devicePixelRatio),1!==e.enlarge&!e.full&&(h=Math.abs(Number(e.enlarge)),console.log(h));var u=e.cropW*h,d=e.cropH*h,f=i*e.scale*h,m=a*e.scale*h,v=(e.x-s+e.trueWidth*(1-e.scale)/2)*h,g=(e.y-c+e.trueHeight*(1-e.scale)/2)*h;switch(p(u,d),l.save(),n){case 0:e.full?(p(u/e.scale,d/e.scale),l.drawImage(r,v/e.scale,g/e.scale,f/e.scale,m/e.scale)):l.drawImage(r,v,g,f,m);break;case 1:case-3:e.full?(p(u/e.scale,d/e.scale),v=v/e.scale+(f/e.scale-m/e.scale)/2,g=g/e.scale+(m/e.scale-f/e.scale)/2,l.rotate(90*n*Math.PI/180),l.drawImage(r,g,-v-m/e.scale,f/e.scale,m/e.scale)):(v+=(f-m)/2,g+=(m-f)/2,l.rotate(90*n*Math.PI/180),l.drawImage(r,g,-v-m,f,m));break;case 2:case-2:e.full?(p(u/e.scale,d/e.scale),l.rotate(90*n*Math.PI/180),v/=e.scale,g/=e.scale,l.drawImage(r,-v-f/e.scale,-g-m/e.scale,f/e.scale,m/e.scale)):(l.rotate(90*n*Math.PI/180),l.drawImage(r,-v-f,-g-m,f,m));break;case 3:case-1:e.full?(p(u/e.scale,d/e.scale),v=v/e.scale+(f/e.scale-m/e.scale)/2,g=g/e.scale+(m/e.scale-f/e.scale)/2,l.rotate(90*n*Math.PI/180),l.drawImage(r,-g-f/e.scale,v,f/e.scale,m/e.scale)):(v+=(f-m)/2,g+=(m-f)/2,l.rotate(90*n*Math.PI/180),l.drawImage(r,-g-f,v,f,m));break;default:e.full?(p(u/e.scale,d/e.scale),l.drawImage(r,v/e.scale,g/e.scale,f/e.scale,m/e.scale)):l.drawImage(r,v,g,f,m)}l.restore()}else{var w=i*e.scale,x=a*e.scale,C=o.getContext("2d");switch(C.save(),n){case 0:p(w,x),C.drawImage(r,0,0,w,x);break;case 1:case-3:p(x,w),C.rotate(90*n*Math.PI/180),C.drawImage(r,0,-x,w,x);break;case 2:case-2:p(w,x),C.rotate(90*n*Math.PI/180),C.drawImage(r,-w,-x,w,x);break;case 3:case-1:p(x,w),C.rotate(90*n*Math.PI/180),C.drawImage(r,-w,0,w,x);break;default:p(w,x),C.drawImage(r,0,0,w,x)}C.restore()}t(o)},"data"!==this.img.substr(0,4)&&(r.crossOrigin="Anonymous"),r.src=this.imgs},getCropData:function(t){var e=this;this.getCropChecked(function(o){t(o.toDataURL("image/"+e.outputType,e.outputSize))})},getCropBlob:function(t){var e=this;this.getCropChecked(function(o){o.toBlob(function(e){return t(e)},"image/"+e.outputType,e.outputSize)})},showPreview:function(){var t=this;if(!this.isCanShow)return!1;this.isCanShow=!1,setTimeout(function(){t.isCanShow=!0},16);var e=this.cropW,o=this.cropH,r=this.scale,n={};n.div={width:"".concat(e,"px"),height:"".concat(o,"px")};var i=(this.x-this.cropOffsertX)/r,a=(this.y-this.cropOffsertY)/r;n.w=e,n.h=o,n.url=this.imgs,n.img={width:"".concat(this.trueWidth,"px"),height:"".concat(this.trueHeight,"px"),transform:"scale(".concat(r,")translate3d(").concat(i,"px, ").concat(a,"px, ").concat(0,"px)rotateZ(").concat(90*this.rotate,"deg)")},n.html='\n
\n
\n \n
\n
'),this.$emit("realTime",n),this.$emit("real-time",n)},reload:function(){var t=this,e=new Image;e.onload=function(){t.w=parseFloat(window.getComputedStyle(t.$refs.cropper).width),t.h=parseFloat(window.getComputedStyle(t.$refs.cropper).height),t.trueWidth=e.width,t.trueHeight=e.height,t.original?t.scale=1:t.scale=t.checkedMode(),t.$nextTick(function(){t.x=-(t.trueWidth-t.trueWidth*t.scale)/2+(t.w-t.trueWidth*t.scale)/2,t.y=-(t.trueHeight-t.trueHeight*t.scale)/2+(t.h-t.trueHeight*t.scale)/2,t.loading=!1,t.autoCrop&&t.goAutoCrop(),t.$emit("img-load","success"),t.$emit("imgLoad","success"),setTimeout(function(){t.showPreview()},20)})},e.onerror=function(){t.$emit("imgLoad","error"),t.$emit("img-load","error")},e.src=this.imgs},checkedMode:function(){var t=1,e=(this.trueWidth,this.trueHeight),o=this.mode.split(" ");switch(o[0]){case"contain":this.trueWidth>this.w&&(t=this.w/this.trueWidth),this.trueHeight*t>this.h&&(t=this.h/this.trueHeight);break;case"cover":(e*=t=this.w/this.trueWidth)o?o:a,s=s>r?r:s,this.fixed&&(s=a/this.fixedNumber[0]*this.fixedNumber[1]),s>this.h&&(a=(s=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(a,s)},changeCrop:function(t,e){var o=this;if(this.centerBox){var r=this.getImgAxis();t>r.x2-r.x1&&(e=(t=r.x2-r.x1)/this.fixedNumber[0]*this.fixedNumber[1]),e>r.y2-r.y1&&(t=(e=r.y2-r.y1)/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=t,this.cropH=e,this.cropOffsertX=(this.w-t)/2,this.cropOffsertY=(this.h-e)/2,this.centerBox&&this.$nextTick(function(){o.moveCrop(null,!0)})},refresh:function(){var t=this;this.img,this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop(),this.$nextTick(function(){t.checkedImg()})},rotateLeft:function(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight:function(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear:function(){this.rotate=0},checkoutImgAxis:function(t,e,o){t=t||this.x,e=e||this.y,o=o||this.scale;var r=!0;if(this.centerBox){var n=this.getImgAxis(t,e,o),i=this.getCropAxis();n.x1>=i.x1&&(r=!1),n.x2<=i.x2&&(r=!1),n.y1>=i.y1&&(r=!1),n.y2<=i.y2&&(r=!1)}return r}},mounted:function(){this.support="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";var t=this,e=navigator.userAgent;this.isIOS=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,o,r){for(var n=atob(this.toDataURL(o,r).split(",")[1]),i=n.length,a=new Uint8Array(i),s=0;s2097152)||(this.$Notice.warning({title:"Exceed max size limit",desc:"File "+t.name+" is too big, you can upload a image up to 2MB in size"}),!1)},handleSelectFile:function(t){var e=this;if(!(this.checkFileType(t)&&this.checkFileSize(t)))return!1;var o=new window.FileReader;return o.onload=function(t){e.avatarOption.imgSrc=t.target.result},o.readAsDataURL(t),!1},realTime:function(t){this.preview=t},rotate:function(t){"left"===t?this.$refs.cropper.rotateLeft():this.$refs.cropper.rotateRight()},reselect:function(){var t=this;this.$Modal.confirm({content:"Are you sure to disgard the changes?",onOk:function(){t.avatarOption.imgSrc=""}})},finishCrop:function(){var t=this;this.$refs.cropper.getCropData(function(e){t.uploadImgSrc=e,t.uploadModalVisible=!0})},uploadAvatar:function(){var t=this;this.$refs.cropper.getCropBlob(function(e){var o=new window.FormData,r=new window.File([e],"avatar."+t.avatarOption.outputType);o.append("image",r),t.loadingUploadBtn=!0,t.$http({method:"post",url:"upload_avatar",data:o,headers:{"content-type":"multipart/form-data"}}).then(function(e){t.loadingUploadBtn=!1,t.$success("Successfully set new avatar"),t.uploadModalVisible=!1,t.avatarOption.imgSrc="",t.$store.dispatch("getProfile")},function(){t.loadingUploadBtn=!1})})},updateProfile:function(){var t=this;this.loadingSaveBtn=!0;var e=c.a.filterEmptyValue(n()({},this.formProfile));s.a.updateProfile(e).then(function(e){t.$success("Success"),t.$store.commit(l.b.CHANGE_PROFILE,{profile:e.data.data}),t.loadingSaveBtn=!1},function(e){t.loadingSaveBtn=!1})}},computed:{previewStyle:function(){return{width:this.preview.w+"px",height:this.preview.h+"px",overflow:"hidden"}}}},d={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"setting-main"},[o("div",{staticClass:"section-title"},[t._v(t._s(t.$t("m.Avatar_Setting")))]),t._v(" "),t.avatarOption.imgSrc?[o("div",{staticClass:"flex-container"},[o("div",{staticClass:"cropper-main inline"},[o("vueCropper",{ref:"cropper",attrs:{autoCrop:"",fixed:"",autoCropWidth:200,autoCropHeight:200,img:t.avatarOption.imgSrc,outputSize:t.avatarOption.size,outputType:t.avatarOption.outputType,info:!0},on:{realTime:t.realTime}})],1),t._v(" "),o("ButtonGroup",{staticClass:"cropper-btn",attrs:{vertical:""}},[o("Button",{on:{click:function(e){return t.rotate("left")}}},[o("Icon",{attrs:{type:"arrow-return-left",size:"20"}})],1),t._v(" "),o("Button",{on:{click:function(e){return t.rotate("right")}}},[o("Icon",{attrs:{type:"arrow-return-right",size:"20"}})],1),t._v(" "),o("Button",{on:{click:t.reselect}},[o("Icon",{attrs:{type:"refresh",size:"20"}})],1),t._v(" "),o("Button",{on:{click:t.finishCrop}},[o("Icon",{attrs:{type:"checkmark-round",size:"20"}})],1)],1),t._v(" "),o("div",{staticClass:"cropper-preview",style:t.previewStyle},[o("div",{style:t.preview.div},[o("img",{style:t.preview.img,attrs:{src:t.avatarOption.imgSrc}})])])],1)]:[o("Upload",{staticClass:"mini-container",attrs:{type:"drag",accept:".jpg,.jpeg,.png,.bmp,.gif",action:"","before-upload":t.handleSelectFile}},[o("div",{staticStyle:{padding:"30px 0"}},[o("Icon",{staticStyle:{color:"#3399ff"},attrs:{type:"ios-cloud-upload",size:"52"}}),t._v(" "),o("p",[t._v("Drop here, or click to select manually")])],1)])],t._v(" "),o("Modal",{attrs:{title:"Upload the avatar"},model:{value:t.uploadModalVisible,callback:function(e){t.uploadModalVisible=e},expression:"uploadModalVisible"}},[o("div",{staticClass:"upload-modal"},[o("p",{staticClass:"notice"},[t._v("Your avatar will be set to:")]),t._v(" "),o("img",{attrs:{src:t.uploadImgSrc}})]),t._v(" "),o("div",{attrs:{slot:"footer"},slot:"footer"},[o("Button",{attrs:{loading:t.loadingUploadBtn},on:{click:t.uploadAvatar}},[t._v("upload")])],1)]),t._v(" "),o("div",{staticClass:"section-title"},[t._v("프로필 정보")]),t._v(" "),o("Form",{ref:"formProfile",attrs:{model:t.formProfile}},[o("Row",{attrs:{type:"flex",gutter:30,justify:"space-around"}},[o("Col",{attrs:{span:11}},[o("FormItem",{attrs:{label:"이름"}},[o("Input",{model:{value:t.formProfile.real_name,callback:function(e){t.$set(t.formProfile,"real_name",e)},expression:"formProfile.real_name"}})],1),t._v(" "),o("Form-item",{attrs:{label:"학과"}},[o("Input",{model:{value:t.formProfile.major,callback:function(e){t.$set(t.formProfile,"major",e)},expression:"formProfile.major"}})],1),t._v(" "),o("Form-item",[o("Button",{attrs:{type:"primary",loading:t.loadingSaveBtn},on:{click:t.updateProfile}},[t._v("저장")])],1)],1),t._v(" "),o("Col",{attrs:{span:11}})],1)],1)],2)},staticRenderFns:[]};var f=o("VU/8")(u,d,!1,function(t){o("fZOJ")},"data-v-4f8afec2",null);e.default=f.exports},s44H:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=o("Dd8w"),n=o.n(r),i=o("NYxO"),a={name:"profile",methods:{goRoute:function(t){this.$router.push(t)}},computed:n()({},Object(i.mapGetters)(["profile"]),{activeName:function(){return this.$route.path}})},s={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"container"},[o("Card",{attrs:{padding:0}},[o("div",{staticClass:"flex-container"},[o("div",{staticClass:"menu"},[o("Menu",{staticStyle:{"text-align":"center"},attrs:{accordion:"",activeName:t.activeName,width:"auto"},on:{"on-select":t.goRoute}},[o("div",{staticClass:"avatar-editor"},[o("div",{staticClass:"avatar-container"},[o("img",{staticClass:"avatar",attrs:{src:t.profile.avatar}}),t._v(" "),o("div",{staticClass:"avatar-mask"},[o("a",{on:{click:function(e){return e.stopPropagation(),t.goRoute({name:"profile-setting"})}}},[o("div",{staticClass:"mask-content"},[o("Icon",{attrs:{type:"camera",size:"30"}}),t._v(" "),o("p",{staticClass:"text"},[t._v("프로필 사진 바꾸기")])],1)])])])]),t._v(" "),o("Menu-item",{attrs:{name:"/setting/profile"}},[t._v("프로필")]),t._v(" "),o("Menu-item",{attrs:{name:"/setting/account"}},[t._v("비밀번호/이메일 재설정")]),t._v(" "),o("Menu-item",{attrs:{name:"/setting/security"}},[t._v(t._s(t.$t("m.Security")))])],1)],1),t._v(" "),o("div",{staticClass:"panel"},[o("transition",{attrs:{name:"fadeInUp"}},[o("router-view")],1)],1)])])],1)},staticRenderFns:[]};var c=o("VU/8")(a,s,!1,function(t){o("KWkR"),o("1r1+")},"data-v-bb0f79fa",null);e.default=c.exports},zbd6:function(t,e){}}); \ No newline at end of file diff --git a/js/2.c82b0057da602cd28e7e.js b/js/2.c82b0057da602cd28e7e.js new file mode 100644 index 0000000..ac3ec3a --- /dev/null +++ b/js/2.c82b0057da602cd28e7e.js @@ -0,0 +1 @@ +webpackJsonp([2],{"6A5e":function(t,e){},G3TW:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=s("8Q2T"),n=s("FN8c"),o=s("oAV5"),r={name:"highlight",data:function(){return{styleObject:{"border-left":"2px solid green"}}},props:{language:{type:String},code:{required:!0,type:String},borderColor:{type:String,default:"green"}},watch:{borderColor:function(t,e){this.styleObject["border-left"]="2.5px solid "+t}}},a={render:function(){var t=this.$createElement,e=this._self._c||t;return e("pre",{directives:[{name:"highlight",rawName:"v-highlight",value:this.code,expression:"code"}]},[e("code",{class:this.language,style:this.styleObject})])},staticRenderFns:[]};var u={name:"submissionDetails",components:{Highlight:s("VU/8")(r,a,!1,function(t){s("dJ2g")},"data-v-42d1f142",null).exports},data:function(){var t=this;return{columns:[{title:this.$i18n.t("m.ID"),align:"center",type:"index"},{title:this.$i18n.t("m.Status"),align:"center",render:function(e,s){return e("Tag",{props:{color:n.e[s.row.result].color}},t.$i18n.t("m."+n.e[s.row.result].name.replace(/ /g,"_")))}},{title:this.$i18n.t("m.Memory"),align:"center",render:function(t,e){return t("span",o.a.submissionMemoryFormat(e.row.memory))}},{title:this.$i18n.t("m.Time"),align:"center",render:function(t,e){return t("span",o.a.submissionTimeFormat(e.row.cpu_time))}}],submission:{result:"0",code:"",info:{data:[]},statistic_info:{time_cost:"",memory_cost:""}},isConcat:!1,loading:!1}},mounted:function(){this.getSubmission()},methods:{getSubmission:function(){var t=this;this.loading=!0,i.a.getSubmission(this.$route.params.id).then(function(e){t.loading=!1;var s=e.data.data;if(s.info&&s.info.data&&!t.isConcat){if(void 0!==s.info.data[0].score){t.isConcat=!0;var i={title:t.$i18n.t("m.Score"),align:"center",key:"score"};t.columns.push(i),t.loadingTable=!1}if(t.isAdminRole){t.isConcat=!0;var n=[{title:t.$i18n.t("m.Real_Time"),align:"center",render:function(t,e){return t("span",o.a.submissionTimeFormat(e.row.real_time))}},{title:t.$i18n.t("m.Signal"),align:"center",key:"signal"}];t.columns=t.columns.concat(n)}}t.submission=s},function(){t.loading=!1})},shareSubmission:function(t){var e=this,s={id:this.submission.id,shared:t};i.a.updateSubmission(s).then(function(t){e.getSubmission(),e.$success(e.$i18n.t("m.Succeeded"))},function(){})}},computed:{status:function(){return{type:n.e[this.submission.result].type,statusName:n.e[this.submission.result].name,color:n.e[this.submission.result].color}},isCE:function(){return-2===this.submission.result},isAdminRole:function(){return this.$store.getters.isAdminRole}}},l={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("Row",{attrs:{type:"flex",justify:"space-around"}},[s("Col",{attrs:{span:20,id:"status"}},[s("Alert",{attrs:{type:t.status.type,showIcon:""}},[s("span",{staticClass:"title"},[t._v(t._s(t.$t("m."+t.status.statusName.replace(/ /g,"_"))))]),t._v(" "),s("div",{staticClass:"content",attrs:{slot:"desc"},slot:"desc"},[t.isCE?[s("pre",[t._v(t._s(t.submission.statistic_info.err_info))])]:[s("span",[t._v(t._s(t.$t("m.Time"))+": "+t._s(t._f("submissionTime")(t.submission.statistic_info.time_cost)))]),t._v(" "),s("span",[t._v(t._s(t.$t("m.Memory"))+": "+t._s(t._f("submissionMemory")(t.submission.statistic_info.memory_cost)))]),t._v(" "),s("span",[t._v(t._s(t.$t("m.Lang"))+": "+t._s(t.submission.language))]),t._v(" "),s("span",[t._v(t._s(t.$t("m.Author"))+": "+t._s(t.submission.username))])]],2)])],1),t._v(" "),t.submission.info&&!t.isCE?s("Col",{attrs:{span:20}},[s("Table",{attrs:{stripe:"",loading:t.loading,"disabled-hover":!0,columns:t.columns,data:t.submission.info.data}})],1):t._e(),t._v(" "),s("Col",{attrs:{span:20}},[s("Highlight",{attrs:{code:t.submission.code,language:t.submission.language,"border-color":t.status.color}})],1),t._v(" "),t.submission.can_unshare?s("Col",{attrs:{span:20}},[s("div",{attrs:{id:"share-btn"}},[t.submission.shared?s("Button",{attrs:{type:"warning",size:"large"},on:{click:function(e){return t.shareSubmission(!1)}}},[t._v("\n "+t._s(t.$t("m.UnShare"))+"\n ")]):s("Button",{attrs:{type:"primary",size:"large"},on:{click:function(e){return t.shareSubmission(!0)}}},[t._v("\n "+t._s(t.$t("m.Share"))+"\n ")])],1)]):t._e()],1)},staticRenderFns:[]};var c=s("VU/8")(u,l,!1,function(t){s("bThi")},"data-v-d86ef92a",null);e.default=c.exports},bThi:function(t,e){},dJ2g:function(t,e){},tEBz:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=s("Dd8w"),n=s.n(i),o=s("BO1k"),r=s.n(o),a=s("woOf"),u=s.n(a),l=s("NYxO"),c=s("8Q2T"),m=s("FN8c"),h=s("oAV5"),d=s("2hfY"),f={name:"submissionList",components:{Pagination:s("26Oo").a},data:function(){var t=this;return{formFilter:{myself:!1,result:"",username:""},columns:[{title:this.$i18n.t("m.When"),align:"center",render:function(t,e){return t("span",d.a.utcToLocal(e.row.create_time))}},{title:this.$i18n.t("m.ID"),align:"center",render:function(e,s){return s.row.show_link?e("span",{style:{color:"#57a3f3",cursor:"pointer"},on:{click:function(){t.$router.push("/status/"+s.row.id)}}},s.row.id.slice(0,12)):e("span",s.row.id.slice(0,12))}},{title:this.$i18n.t("m.Status"),align:"center",render:function(e,s){return e("Tag",{props:{color:m.e[s.row.result].color}},t.$i18n.t("m."+m.e[s.row.result].name.replace(/ /g,"_")))}},{title:this.$i18n.t("m.Problem"),align:"center",render:function(e,s){return e("span",{style:{color:"#57a3f3",cursor:"pointer"},on:{click:function(){t.contestID?t.$router.push({name:"contest-problem-details",params:{problemID:s.row.problem,contestID:t.contestID}}):t.$router.push({name:"problem-details",params:{problemID:s.row.problem}})}}},s.row.problem)}},{title:this.$i18n.t("m.Time"),align:"center",render:function(t,e){return t("span",h.a.submissionTimeFormat(e.row.statistic_info.time_cost))}},{title:this.$i18n.t("m.Memory"),align:"center",render:function(t,e){return t("span",h.a.submissionMemoryFormat(e.row.statistic_info.memory_cost))}},{title:this.$i18n.t("m.Language"),align:"center",key:"language"},{title:this.$i18n.t("m.Author"),align:"center",render:function(e,s){return e("a",{style:{display:"inline-block","max-width":"150px"},on:{click:function(){t.$router.push({name:"user-home",query:{username:s.row.username}})}}},s.row.username)}}],loadingTable:!1,submissions:[],total:30,limit:12,page:1,contestID:"",problemID:"",routeName:"",JUDGE_STATUS:"",rejudge_column:!1}},mounted:function(){this.init(),this.JUDGE_STATUS=u()({},m.e),delete this.JUDGE_STATUS[9],delete this.JUDGE_STATUS[2]},methods:{init:function(){this.contestID=this.$route.params.contestID;var t=this.$route.query;this.problemID=t.problemID,this.formFilter.myself="1"===t.myself,this.formFilter.result=t.result||"",this.formFilter.username=t.username||"",this.page=parseInt(t.page)||1,this.page<1&&(this.page=1),this.routeName=this.$route.name,this.getSubmissions()},buildQuery:function(){return{myself:!0===this.formFilter.myself?"1":"0",result:this.formFilter.result,username:this.formFilter.username,page:this.page}},getSubmissions:function(){var t=this,e=this.buildQuery();e.contest_id=this.contestID,e.problem_id=this.problemID;var s=(this.page-1)*this.limit,i=this.contestID?"getContestSubmissionList":"getSubmissionList";this.loadingTable=!0,c.a[i](s,this.limit,e).then(function(e){var s=e.data.data,i=!0,n=!1,o=void 0;try{for(var a,u=r()(s.results);!(i=(a=u.next()).done);i=!0){a.value.loading=!1}}catch(t){n=!0,o=t}finally{try{!i&&u.return&&u.return()}finally{if(n)throw o}}t.adjustRejudgeColumn(),t.loadingTable=!1,t.submissions=s.results,t.total=s.total}).catch(function(){t.loadingTable=!1})},changeRoute:function(){var t=h.a.filterEmptyValue(this.buildQuery());t.contestID=this.contestID,t.problemID=this.problemID;var e=t.contestID?"contest-submission-list":"submission-list";this.$router.push({name:e,query:h.a.filterEmptyValue(t)})},goRoute:function(t){this.$router.push(t)},adjustRejudgeColumn:function(){var t=this;if(this.rejudgeColumnVisible&&!this.rejudge_column){var e={title:this.$i18n.t("m.Option"),fixed:"right",align:"center",width:90,render:function(e,s){return e("Button",{props:{type:"primary",size:"small",loading:s.row.loading},on:{click:function(){t.handleRejudge(s.row.id,s.index)}}},t.$i18n.t("m.Rejudge"))}};this.columns.push(e),this.rejudge_column=!0}},handleResultChange:function(t){this.page=1,this.formFilter.result=t,this.changeRoute()},handleQueryChange:function(){this.page=1,this.changeRoute()},handleRejudge:function(t,e){var s=this;this.submissions[e].loading=!0,c.a.submissionRejudge(t).then(function(t){s.submissions[e].loading=!1,s.$success("Succeeded"),s.getSubmissions()},function(){s.submissions[e].loading=!1})}},computed:n()({},Object(l.mapGetters)(["isAuthenticated","user"]),{title:function(){return this.contestID?this.problemID?this.$i18n.t("m.Problem_Submissions"):this.$i18n.t("m.Submissions"):this.$i18n.t("m.Status")},status:function(){return""===this.formFilter.result?this.$i18n.t("m.Status"):this.$i18n.t("m."+m.e[this.formFilter.result].name.replace(/ /g,"_"))},rejudgeColumnVisible:function(){return!this.contestID&&this.user.admin_type===m.i.SUPER_ADMIN}}),watch:{$route:function(t,e){t!==e&&this.init()},rejudgeColumnVisible:function(){this.adjustRejudgeColumn()},isAuthenticated:function(){this.init()}}},g={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"flex-container"},[s("div",{attrs:{id:"main"}},[s("Panel",{attrs:{shadow:""}},[s("div",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(t.title))]),t._v(" "),s("div",{attrs:{slot:"extra"},slot:"extra"},[s("ul",{staticClass:"filter"},[s("li",[s("Dropdown",{on:{"on-click":t.handleResultChange}},[s("span",[t._v(t._s(t.status)+"\n "),s("Icon",{attrs:{type:"arrow-down-b"}})],1),t._v(" "),s("Dropdown-menu",{attrs:{slot:"list"},slot:"list"},[s("Dropdown-item",{attrs:{name:""}},[t._v(t._s(t.$t("m.All")))]),t._v(" "),t._l(Object.keys(t.JUDGE_STATUS),function(e){return s("Dropdown-item",{key:e,attrs:{name:e}},[t._v("\n "+t._s(t.$t("m."+t.JUDGE_STATUS[e].name.replace(/ /g,"_")))+"\n ")])})],2)],1)],1),t._v(" "),s("li",[s("i-switch",{attrs:{size:"large"},on:{"on-change":t.handleQueryChange},model:{value:t.formFilter.myself,callback:function(e){t.$set(t.formFilter,"myself",e)},expression:"formFilter.myself"}},[s("span",{attrs:{slot:"open"},slot:"open"},[t._v(t._s(t.$t("m.Mine")))]),t._v(" "),s("span",{attrs:{slot:"close"},slot:"close"},[t._v(t._s(t.$t("m.All")))])])],1),t._v(" "),s("li",[s("Input",{attrs:{placeholder:t.$t("m.Search_Author")},on:{"on-enter":t.handleQueryChange},model:{value:t.formFilter.username,callback:function(e){t.$set(t.formFilter,"username",e)},expression:"formFilter.username"}})],1),t._v(" "),s("li",[s("Button",{attrs:{type:"info",icon:"refresh"},on:{click:t.getSubmissions}},[t._v(t._s(t.$t("m.Refresh")))])],1)])]),t._v(" "),s("Table",{attrs:{stripe:"","disabled-hover":!0,columns:t.columns,data:t.submissions,loading:t.loadingTable}}),t._v(" "),s("Pagination",{attrs:{total:t.total,"page-size":t.limit,current:t.page},on:{"on-change":t.changeRoute,"update:current":function(e){t.page=e}}})],1)],1)])},staticRenderFns:[]};var p=s("VU/8")(f,g,!1,function(t){s("6A5e")},"data-v-5e851b3e",null);e.default=p.exports}}); \ No newline at end of file diff --git a/js/3.d134e37f27ae1c7c8972.js b/js/3.d134e37f27ae1c7c8972.js new file mode 100644 index 0000000..117c697 --- /dev/null +++ b/js/3.d134e37f27ae1c7c8972.js @@ -0,0 +1 @@ +webpackJsonp([3],{"8Yd/":function(t,a){},dUHu:function(t,a){},iKNO:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("8Q2T"),i=e("26Oo"),s=e("oAV5"),r=e("FN8c"),o={name:"acm-rank",components:{Pagination:i.a},data:function(){var t=this;return{page:1,limit:30,total:0,loadingTable:!1,dataRank:[],columns:[{align:"center",width:60,render:function(a,e){return a("span",{},e.index+(t.page-1)*t.limit+1)}},{title:this.$i18n.t("m.User_User"),align:"center",render:function(a,e){return a("a",{style:{display:"inline-block","max-width":"200px"},on:{click:function(){t.$router.push({name:"user-home",query:{username:e.row.user.username}})}}},e.row.user.username)}},{title:this.$i18n.t("m.mood"),align:"center",key:"mood"},{title:this.$i18n.t("m.AC"),align:"center",key:"accepted_number"},{title:this.$i18n.t("m.Total"),align:"center",key:"submission_number"},{title:this.$i18n.t("m.Rating"),align:"center",render:function(t,a){return t("span",s.a.getACRate(a.row.accepted_number,a.row.submission_number))}}],options:{tooltip:{trigger:"axis"},legend:{data:[this.$i18n.t("m.AC"),this.$i18n.t("m.Total")]},grid:{x:"3%",x2:"3%"},toolbox:{show:!0,feature:{dataView:{show:!0,readOnly:!0},magicType:{show:!0,type:["line","bar","stack"]},saveAsImage:{show:!0}},right:"10%"},calculable:!0,xAxis:[{type:"category",data:["root"],axisLabel:{interval:0,showMinLabel:!0,showMaxLabel:!0,align:"center",formatter:function(t,a){return s.a.breakLongWords(t,10)}}}],yAxis:[{type:"value"}],series:[{name:this.$i18n.t("m.AC"),type:"bar",data:[0],markPoint:{data:[{type:"max",name:"max"}]}},{name:this.$i18n.t("m.Total"),type:"bar",data:[0],markPoint:{data:[{type:"max",name:"max"}]}}]}}},mounted:function(){this.getRankData(1)},methods:{getRankData:function(t){var a=this,e=(t-1)*this.limit,i=this.$refs.chart;i.showLoading({maskColor:"rgba(250, 250, 250, 0.8)"}),this.loadingTable=!0,n.a.getUserRank(e,this.limit,r.g.ACM).then(function(e){a.loadingTable=!1,1===t&&a.changeCharts(e.data.data.results.slice(0,10)),a.total=e.data.data.total,a.dataRank=e.data.data.results,i.hideLoading()}).catch(function(){a.loadingTable=!1,i.hideLoading()})},changeCharts:function(t){var a=[],e=[],n=[];t.forEach(function(t){a.push(t.user.username),e.push(t.accepted_number),n.push(t.submission_number)}),this.options.xAxis[0].data=a,this.options.series[0].data=e,this.options.series[1].data=n}}},l={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Row",{attrs:{type:"flex",justify:"space-around"}},[e("Col",{attrs:{span:22}},[e("Panel",{attrs:{padding:10}},[e("div",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(t.$t("m.ACM_Ranklist")))]),t._v(" "),e("div",{staticClass:"echarts"},[e("ECharts",{ref:"chart",attrs:{options:t.options,"auto-resize":""}})],1)]),t._v(" "),e("Table",{attrs:{data:t.dataRank,columns:t.columns,loading:t.loadingTable,size:"large"}}),t._v(" "),e("Pagination",{attrs:{total:t.total,"page-size":t.limit,current:t.page,"show-sizer":""},on:{"update:pageSize":function(a){t.limit=a},"update:page-size":function(a){t.limit=a},"update:current":function(a){t.page=a},"on-change":t.getRankData,"on-page-size-change":function(a){return t.getRankData(1)}}})],1)],1)},staticRenderFns:[]};var u=e("VU/8")(o,l,!1,function(t){e("8Yd/")},"data-v-2aba2f04",null);a.default=u.exports},sW7o:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("8Q2T"),i=e("26Oo"),s=e("oAV5"),r=e("FN8c"),o={name:"acm-rank",components:{Pagination:i.a},data:function(){var t=this;return{page:1,limit:30,total:0,dataRank:[],columns:[{align:"center",width:60,render:function(a,e){return a("span",{},e.index+(t.page-1)*t.limit+1)}},{title:this.$i18n.t("m.User_User"),align:"center",render:function(a,e){return a("a",{style:{display:"inline-block","max-width":"200px"},on:{click:function(){t.$router.push({name:"user-home",query:{username:e.row.user.username}})}}},e.row.user.username)}},{title:this.$i18n.t("m.mood"),align:"center",key:"mood"},{title:this.$i18n.t("m.Score"),align:"center",key:"total_score"},{title:this.$i18n.t("m.AC"),align:"center",key:"accepted_number"},{title:this.$i18n.t("m.Total"),align:"center",key:"submission_number"},{title:this.$i18n.t("m.Rating"),align:"center",render:function(t,a){return t("span",s.a.getACRate(a.row.accepted_number,a.row.submission_number))}}],options:{tooltip:{trigger:"axis"},legend:{data:[this.$i18n.t("m.Score")]},grid:{x:"3%",x2:"3%"},toolbox:{show:!0,feature:{dataView:{show:!0,readOnly:!0},magicType:{show:!0,type:["line","bar"]},saveAsImage:{show:!0}},right:"10%"},calculable:!0,xAxis:[{type:"category",data:["root"],boundaryGap:!0,axisLabel:{interval:0,showMinLabel:!0,showMaxLabel:!0,align:"center",formatter:function(t,a){return s.a.breakLongWords(t,14)}},axisTick:{alignWithLabel:!0}}],yAxis:[{type:"value"}],series:[{name:this.$i18n.t("m.Score"),type:"bar",data:[0],barMaxWidth:"80",markPoint:{data:[{type:"max",name:"max"}]}}]}}},mounted:function(){this.getRankData(1)},methods:{getRankData:function(t){var a=this,e=(t-1)*this.limit,i=this.$refs.chart;i.showLoading({maskColor:"rgba(250, 250, 250, 0.8)"}),n.a.getUserRank(e,this.limit,r.g.OI).then(function(e){1===t&&a.changeCharts(e.data.data.results.slice(0,10)),a.total=e.data.data.total,a.dataRank=e.data.data.results,i.hideLoading()})},changeCharts:function(t){var a=[],e=[];t.forEach(function(t){a.push(t.user.username),e.push(t.total_score)}),this.options.xAxis[0].data=a,this.options.series[0].data=e}}},l={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Row",{attrs:{type:"flex",justify:"space-around"}},[e("Col",{attrs:{span:22}},[e("Panel",{attrs:{padding:10}},[e("div",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(t.$t("m.OI_Ranklist")))]),t._v(" "),e("div",{staticClass:"echarts"},[e("ECharts",{ref:"chart",attrs:{options:t.options,"auto-resize":""}})],1)]),t._v(" "),e("Table",{attrs:{data:t.dataRank,columns:t.columns,size:"large"}}),t._v(" "),e("Pagination",{attrs:{total:t.total,"page-size":t.limit,current:t.page,"show-sizer":""},on:{"update:pageSize":function(a){t.limit=a},"update:page-size":function(a){t.limit=a},"update:current":function(a){t.page=a},"on-change":t.getRankData,"on-page-size-change":function(a){return t.getRankData(1)}}})],1)],1)},staticRenderFns:[]};var u=e("VU/8")(o,l,!1,function(t){e("dUHu")},"data-v-ed093576",null);a.default=u.exports}}); \ No newline at end of file diff --git a/js/4.4e7d9ecbe39e0fb55187.js b/js/4.4e7d9ecbe39e0fb55187.js new file mode 100644 index 0000000..b914197 --- /dev/null +++ b/js/4.4e7d9ecbe39e0fb55187.js @@ -0,0 +1 @@ +webpackJsonp([4],{"04zp":function(t,s,e){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a=e("woOf"),r=e.n(a),o=e("y2MC"),n=e("8Q2T"),c={name:"reset-password",mixins:[o.a],data:function(){var t=this;return{btnLoading:!1,captchaSrc:"",resetSuccess:!1,formResetPassword:{captcha:"",password:"",passwordAgain:"",token:""},ruleResetPassword:{password:[{required:!0,trigger:"blur",min:6,max:20},{validator:function(s,e,a){""!==t.formResetPassword.passwdCheck&&t.$refs.formResetPassword.validateField("passwordAgain"),a()},trigger:"blur"}],passwordAgain:[{required:!0,validator:function(s,e,a){e!==t.formResetPassword.password&&a(new Error(t.$i18n.t("m.password_does_not_match"))),a()},trigger:"change"}],captcha:[{required:!0,trigger:"blur",min:1,max:10}]}}},mounted:function(){this.formResetPassword.token=this.$route.params.token,this.getCaptchaSrc()},methods:{resetPassword:function(){var t=this;this.validateForm("formResetPassword").then(function(s){t.btnLoading=!0;var e=r()({},t.formResetPassword);delete e.passwordAgain,n.a.resetPassword(e).then(function(s){t.btnLoading=!1,t.resetSuccess=!0},function(s){t.btnLoading=!1,t.formResetPassword.captcha="",t.getCaptchaSrc()})})}}},i={render:function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("Panel",{staticClass:"container",attrs:{padding:30}},[e("div",{staticClass:"center",attrs:{slot:"title"},slot:"title"},[t._v(t._s(t.$t("m.Reset_Password")))]),t._v(" "),t.resetSuccess?[e("Alert",{attrs:{type:"success"}},[t._v(t._s(t.$t("m.Your_password_has_been_reset")))])]:[e("Form",{ref:"formResetPassword",attrs:{model:t.formResetPassword,rules:t.ruleResetPassword}},[e("Form-item",{attrs:{prop:"password"}},[e("Input",{attrs:{type:"password",placeholder:t.$t("m.RPassword"),size:"large"},model:{value:t.formResetPassword.password,callback:function(s){t.$set(t.formResetPassword,"password",s)},expression:"formResetPassword.password"}},[e("Icon",{attrs:{slot:"prepend",type:"ios-locked-outline"},slot:"prepend"})],1)],1),t._v(" "),e("Form-item",{attrs:{prop:"passwordAgain"}},[e("Input",{attrs:{type:"password",placeholder:t.$t("m.RPassword_Again"),size:"large"},model:{value:t.formResetPassword.passwordAgain,callback:function(s){t.$set(t.formResetPassword,"passwordAgain",s)},expression:"formResetPassword.passwordAgain"}},[e("Icon",{attrs:{slot:"prepend",type:"ios-locked-outline"},slot:"prepend"})],1)],1),t._v(" "),e("Form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{prop:"captcha"}},[e("div",{attrs:{id:"captcha"}},[e("div",{attrs:{id:"captchaCode"}},[e("Input",{attrs:{placeholder:t.$t("m.RCaptcha"),size:"large"},model:{value:t.formResetPassword.captcha,callback:function(s){t.$set(t.formResetPassword,"captcha",s)},expression:"formResetPassword.captcha"}},[e("Icon",{attrs:{slot:"prepend",type:"ios-lightbulb-outline"},slot:"prepend"})],1)],1),t._v(" "),e("div",{attrs:{id:"captchaImg"}},[e("Tooltip",{attrs:{content:"Click to refresh",placement:"top"}},[e("img",{attrs:{src:t.captchaSrc},on:{click:t.getCaptchaSrc}})])],1)])])],1),t._v(" "),e("Button",{staticClass:"btn",attrs:{type:"primary",long:"",loading:t.btnLoading},on:{click:t.resetPassword}},[t._v(t._s(t.$t("m.Reset_Password"))+"\n ")])]],2)},staticRenderFns:[]};var d=e("VU/8")(c,i,!1,function(t){e("xImk")},"data-v-1c26c340",null);s.default=d.exports},DQgc:function(t,s){},WaBM:function(t,s,e){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a=e("8Q2T"),r={mixins:[e("y2MC").a],data:function(){var t=this;return{captchaSrc:"",successApply:!1,btnLoading:!1,formResetPassword:{email:"",captcha:""},ruleResetPassword:{email:[{required:!0,type:"email",trigger:"blur"},{validator:function(s,e,r){""!==e?a.a.checkUsernameOrEmail(void 0,e).then(function(s){!1===s.data.data.email?r(new Error(t.$i18n.t("m.The_email_doesnt_exist"))):r()},function(t){return r()}):r()},trigger:"blur"}],captcha:[{required:!0,trigger:"blur",min:1,max:10}]}}},mounted:function(){this.getCaptchaSrc()},methods:{sendEmail:function(){var t=this;this.validateForm("formResetPassword").then(function(){t.btnLoading=!0,a.a.applyResetPassword(t.formResetPassword).then(function(s){setTimeout(function(){t.btnLoading=!1,t.successApply=!0},2e3)},function(s){t.btnLoading=!1,t.formResetPassword.captcha="",t.getCaptchaSrc()})})}}},o={render:function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("Panel",{staticClass:"container",attrs:{padding:30}},[e("div",{staticClass:"center",attrs:{slot:"title"},slot:"title"},[t._v(t._s(t.$t("m.Reset_Password")))]),t._v(" "),t.successApply?[e("Alert",{attrs:{type:"success","show-icon":""}},[t._v("\n "+t._s(t.$t("Success"))+"\n "),e("span",{attrs:{slot:"desc"},slot:"desc"},[t._v(" "+t._s(t.$t("Password_reset_mail_sent")))])])]:[e("Form",{ref:"formResetPassword",attrs:{rules:t.ruleResetPassword,model:t.formResetPassword}},[e("Form-item",{attrs:{prop:"email"}},[e("Input",{attrs:{placeholder:t.$t("m.ApplyEmail"),size:"large"},model:{value:t.formResetPassword.email,callback:function(s){t.$set(t.formResetPassword,"email",s)},expression:"formResetPassword.email"}},[e("Icon",{attrs:{slot:"prepend",type:"ios-email-outline"},slot:"prepend"})],1)],1),t._v(" "),e("Form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{prop:"captcha"}},[e("div",{staticClass:"oj-captcha"},[e("div",{staticClass:"oj-captcha-code"},[e("Input",{attrs:{placeholder:t.$t("m.RCaptcha"),size:"large"},model:{value:t.formResetPassword.captcha,callback:function(s){t.$set(t.formResetPassword,"captcha",s)},expression:"formResetPassword.captcha"}},[e("Icon",{attrs:{slot:"prepend",type:"ios-lightbulb-outline"},slot:"prepend"})],1)],1),t._v(" "),e("div",{staticClass:"oj-captcha-img"},[e("Tooltip",{attrs:{content:"Click to refresh",placement:"top"}},[e("img",{attrs:{src:t.captchaSrc},on:{click:t.getCaptchaSrc}})])],1)])])],1),t._v(" "),e("Button",{staticClass:"btn",attrs:{type:"primary",long:"",loading:t.btnLoading},on:{click:t.sendEmail}},[t._v(t._s(t.$t("m.Send_Password_Reset_Email"))+"\n ")])]],2)},staticRenderFns:[]};var n=e("VU/8")(r,o,!1,function(t){e("DQgc")},"data-v-1234b21d",null);s.default=n.exports},xImk:function(t,s){}}); \ No newline at end of file diff --git a/js/5.1da082458c4aec0959ce.js b/js/5.1da082458c4aec0959ce.js new file mode 100644 index 0000000..eeecbe4 --- /dev/null +++ b/js/5.1da082458c4aec0959ce.js @@ -0,0 +1 @@ +webpackJsonp([5],{"1Jov":function(t,e){},WQH6:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=s("fZjL"),a=s.n(i),o=s("mvHQ"),n=s.n(o),r=s("Dd8w"),l=s.n(r),c=s("NYxO"),m=s("IcnI"),u=s("jj1A"),p=s("VKKs"),_=s("y2MC"),d=s("FN8c"),h=s("8Q2T"),v={AC:{color:"#19be6b"},WA:{color:"#ed3f14"},TLE:{color:"#ff9300"},MLE:{color:"#f7de00"},RE:{color:"#ff6104"},CE:{color:"#80848f"},PAC:{color:"#2d8cf0"}};function b(t){return v[t.name].color}var g={legend:{left:"center",top:"10",orient:"horizontal",data:["AC","WA"]},series:[{name:"Summary",type:"pie",radius:"80%",center:["50%","55%"],itemStyle:{normal:{color:b}},data:[{value:0,name:"WA"},{value:0,name:"AC"}],label:{normal:{position:"inner",show:!0,formatter:"{b}: {c}\n {d}%",textStyle:{fontWeight:"bold"}}}}]},f={legend:{left:"center",top:"10",orient:"horizontal",itemGap:20,data:["AC","RE","WA","TLE","PAC","MLE"]},series:[{name:"Detail",type:"pie",radius:["45%","70%"],center:["50%","55%"],itemStyle:{normal:{color:b}},data:[{value:0,name:"RE"},{value:0,name:"WA"},{value:0,name:"TLE"},{value:0,name:"AC"},{value:0,name:"MLE"},{value:0,name:"PAC"}],label:{normal:{formatter:"{b}: {c}\n {d}%"}},labelLine:{normal:{}}},{name:"Summary",type:"pie",radius:"30%",center:["50%","55%"],itemStyle:{normal:{color:b}},data:[{value:"0",name:"WA"},{value:0,name:"AC",selected:!0}],label:{normal:{position:"inner",formatter:"{b}: {c}\n {d}%"}}}]},C=["-1","-2","0","1","2","3","4","8"],I={name:"Problem",components:{CodeMirror:u.a},mixins:[_.a],data:function(){return{statusVisible:!1,captchaRequired:!1,graphVisible:!1,submissionExists:!1,captchaCode:"",captchaSrc:"",contestID:"",problemID:"",submitting:!1,code:"",language:"C++",theme:"solarized",submissionId:"",submitted:!1,result:{result:9},problem:{title:"",description:"",testhint:"",my_status:"",template:{},languages:[],created_by:{username:""},tags:[],io_mode:{io_mode:"Standard IO"}},pie:g,largePie:f,largePieInitOpts:{width:"500",height:"480"}}},beforeRouteEnter:function(t,e,s){var i=p.a.get(Object(d.j)(t.params.problemID,t.params.contestID));i?s(function(t){t.language=i.language,t.code=i.code,t.theme=i.theme}):s()},mounted:function(){this.$store.commit(m.b.CHANGE_CONTEST_ITEM_VISIBLE,{menu:!1}),this.init()},methods:l()({},Object(c.mapActions)(["changeDomTitle"]),{init:function(){var t=this;this.$Loading.start(),this.contestID=this.$route.params.contestID,this.problemID=this.$route.params.problemID;var e="problem-details"===this.$route.name?"getProblem":"getContestProblem";h.a[e](this.problemID,this.contestID).then(function(e){t.$Loading.finish();var s=e.data.data;if(t.changeDomTitle({title:s.title}),h.a.submissionExists(s.id).then(function(e){t.submissionExists=e.data.data}),s.languages=s.languages.sort(),t.problem=s,t.changePie(s),""===t.code){t.language=t.problem.languages[0];var i=t.problem.template;i&&i[t.language]&&(t.code=i[t.language])}},function(){t.$Loading.error()})},changePie:function(t){for(var e in t.statistic_info)-1===C.indexOf(e)&&delete t.statistic_info[e];var s=t.accepted_number,i=[{name:"WA",value:t.submission_number-s},{name:"AC",value:s}];this.pie.series[0].data=i;var o=JSON.parse(n()(i));o[1].selected=!0,this.largePie.series[1].data=o;var r=a()(t.statistic_info).map(function(t){return d.e[t].short});0===r.length&&r.push("AC","WA"),this.largePie.legend.data=r;var l=t.statistic_info[0];delete t.statistic_info[0];var c=[];a()(t.statistic_info).forEach(function(e){c.push({name:d.e[e].short,value:t.statistic_info[e]})}),c.push({name:"AC",value:l}),this.largePie.series[0].data=c},handleRoute:function(t){this.$router.push(t)},onChangeLang:function(t){this.problem.template[t]&&""===this.code.trim()&&(this.code=this.problem.template[t]),this.language=t},onChangeTheme:function(t){this.theme=t},onResetToTemplate:function(){var t=this;this.$Modal.confirm({content:this.$i18n.t("m.Are_you_sure_you_want_to_reset_your_code"),onOk:function(){var e=t.problem.template;e&&e[t.language]?t.code=e[t.language]:t.code=""}})},checkSubmissionStatus:function(){var t=this;this.refreshStatus&&clearTimeout(this.refreshStatus);this.refreshStatus=setTimeout(function e(){var s=t.submissionId;h.a.getSubmission(s).then(function(s){t.result=s.data.data,0!==a()(s.data.data.statistic_info).length?(t.submitting=!1,t.submitted=!1,clearTimeout(t.refreshStatus),t.init()):t.refreshStatus=setTimeout(e,2e3)},function(e){t.submitting=!1,clearTimeout(t.refreshStatus)})},2e3)},submitCode:function(){var t=this;if(""!==this.code.trim()){this.submissionId="",this.result={result:9},this.submitting=!0;var e={problem_id:this.problem.id,language:this.language,code:this.code,contest_id:this.contestID};this.captchaRequired&&(e.captcha=this.captchaCode);var s=function(e,s){t.statusVisible=!0,h.a.submitCode(e).then(function(e){t.submissionId=e.data.data&&e.data.data.submission_id,t.submitting=!1,t.submissionExists=!0,s?(t.submitted=!0,t.checkSubmissionStatus()):t.$Modal.success({title:t.$i18n.t("m.Success"),content:t.$i18n.t("m.Submit_code_successfully")})},function(e){t.getCaptchaSrc(),e.data.data.startsWith("Captcha is required")&&(t.captchaRequired=!0),t.submitting=!1,t.statusVisible=!1})};"OI"!==this.contestRuleType||this.OIContestRealTimePermission?s(e,!0):this.submissionExists?this.$Modal.confirm({title:"",content:"

"+this.$i18n.t("m.You_have_submission_in_this_problem_sure_to_cover_it")+"

",onOk:function(){setTimeout(function(){s(e,!1)},1e3)},onCancel:function(){t.submitting=!1}}):s(e,!1)}else this.$error(this.$i18n.t("m.Code_can_not_be_empty"))},onCopy:function(t){this.$success("Code copied")},onCopyError:function(t){this.$error("Failed to copy code")}}),computed:l()({},Object(c.mapGetters)(["problemSubmitDisabled","contestRuleType","OIContestRealTimePermission","contestStatus"]),{contest:function(){return this.$store.state.contest.contest},contestEnded:function(){return this.contestStatus===d.a.ENDED},submissionStatus:function(){return{text:d.e[this.result.result].name,color:d.e[this.result.result].color}},submissionRoute:function(){return this.contestID?{name:"contest-submission-list",query:{problemID:this.problemID}}:{name:"submission-list",query:{problemID:this.problemID}}}}),beforeRouteLeave:function(t,e,s){clearInterval(this.refreshStatus),this.$store.commit(m.b.CHANGE_CONTEST_ITEM_VISIBLE,{menu:!0}),p.a.set(Object(d.j)(this.problem._id,e.params.contestID),{code:this.code,language:this.language,theme:this.theme}),s()},watch:{$route:function(){this.init()}}},y={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"flex-container"},[s("div",{attrs:{id:"problem-main"}},[s("Panel",{attrs:{padding:40,shadow:""}},[s("div",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(t.problem.title))]),t._v(" "),s("div",{directives:[{name:"katex",rawName:"v-katex"}],staticClass:"markdown-body",attrs:{id:"problem-content"}},[s("p",{staticClass:"title"},[t._v(t._s(t.$t("m.Description")))]),t._v(" "),s("p",{staticClass:"content",domProps:{innerHTML:t._s(t.problem.description)}}),t._v(" "),s("p",{staticClass:"title"},[t._v(t._s(t.$t("m.Input"))+" "),"File IO"==t.problem.io_mode.io_mode?s("span",[t._v("("+t._s(t.$t("m.FromFile"))+": "+t._s(t.problem.io_mode.input)+")")]):t._e()]),t._v(" "),s("p",{staticClass:"content",domProps:{innerHTML:t._s(t.problem.input_description)}}),t._v(" "),s("p",{staticClass:"title"},[t._v(t._s(t.$t("m.Output"))+" "),"File IO"==t.problem.io_mode.io_mode?s("span",[t._v("("+t._s(t.$t("m.ToFile"))+": "+t._s(t.problem.io_mode.output)+")")]):t._e()]),t._v(" "),s("p",{staticClass:"content",domProps:{innerHTML:t._s(t.problem.output_description)}}),t._v(" "),t._l(t.problem.samples,function(e,i){return s("div",{key:i},[s("div",{staticClass:"flex-container sample"},[s("div",{staticClass:"sample-input"},[s("p",{staticClass:"title"},[t._v(t._s(t.$t("m.Sample_Input"))+" "+t._s(i+1)+"\n "),s("a",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.input,expression:"sample.input",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.onCopy,expression:"onCopy",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:t.onCopyError,expression:"onCopyError",arg:"error"}],staticClass:"copy"},[s("Icon",{attrs:{type:"clipboard"}})],1)]),t._v(" "),s("pre",[t._v(t._s(e.input))])]),t._v(" "),s("div",{staticClass:"sample-output"},[s("p",{staticClass:"title"},[t._v(t._s(t.$t("m.Sample_Output"))+" "+t._s(i+1))]),t._v(" "),s("pre",[t._v(t._s(e.output))])])])])}),t._v(" "),t.problem.testhint?s("div",[s("p",{staticClass:"title"},[t._v(t._s(t.$t("testhint")))]),t._v(" "),s("Card",{attrs:{"dis-hover":""}},[s("div",{staticClass:"content",domProps:{innerHTML:t._s(t.problem.testhint)}})])],1):t._e(),t._v(" "),t.problem.source?s("div",[s("p",{staticClass:"title"},[t._v(t._s(t.$t("m.Source")))]),t._v(" "),s("p",{staticClass:"content"},[t._v(t._s(t.problem.source))])]):t._e()],2)]),t._v(" "),s("Card",{attrs:{padding:20,id:"submit-code","dis-hover":""}},[s("CodeMirror",{attrs:{value:t.code,languages:t.problem.languages,language:t.language,theme:t.theme},on:{"update:value":function(e){t.code=e},resetCode:t.onResetToTemplate,changeTheme:t.onChangeTheme,changeLang:t.onChangeLang}}),t._v(" "),s("Row",{attrs:{type:"flex",justify:"space-between"}},[s("Col",{attrs:{span:10}},[t.statusVisible?s("div",{staticClass:"status"},[!this.contestID||this.contestID&&t.OIContestRealTimePermission?[s("span",[t._v(t._s(t.$t("m.Status")))]),t._v(" "),s("Tag",{attrs:{type:"dot",color:t.submissionStatus.color},nativeOn:{click:function(e){return t.handleRoute("/status/"+t.submissionId)}}},[t._v("\n "+t._s(t.$t("m."+t.submissionStatus.text.replace(/ /g,"_")))+"\n ")])]:this.contestID&&!t.OIContestRealTimePermission?[s("Alert",{attrs:{type:"success","show-icon":""}},[t._v(t._s(t.$t("m.Submitted_successfully")))])]:t._e()],2):0===t.problem.my_status?s("div",[s("Alert",{attrs:{type:"success","show-icon":""}},[t._v(t._s(t.$t("m.You_have_solved_the_problem")))])],1):this.contestID&&!t.OIContestRealTimePermission&&t.submissionExists?s("div",[s("Alert",{attrs:{type:"success","show-icon":""}},[t._v(t._s(t.$t("m.You_have_submitted_a_solution")))])],1):t._e(),t._v(" "),t.contestEnded?s("div",[s("Alert",{attrs:{type:"warning","show-icon":""}},[t._v(t._s(t.$t("m.Contest_has_ended")))])],1):t._e()]),t._v(" "),s("Col",{attrs:{span:12}},[t.captchaRequired?[s("div",{staticClass:"captcha-container"},[t.captchaRequired?s("Tooltip",{attrs:{content:"Click to refresh",placement:"top"}},[s("img",{attrs:{src:t.captchaSrc},on:{click:t.getCaptchaSrc}})]):t._e(),t._v(" "),s("Input",{staticClass:"captcha-code",model:{value:t.captchaCode,callback:function(e){t.captchaCode=e},expression:"captchaCode"}})],1)]:t._e(),t._v(" "),s("Button",{staticClass:"fl-right",attrs:{type:"warning",icon:"edit",loading:t.submitting,disabled:t.problemSubmitDisabled||t.submitted},on:{click:t.submitCode}},[t.submitting?s("span",[t._v(t._s(t.$t("m.Submitting")))]):s("span",[t._v(t._s(t.$t("m.Submit")))])])],2)],1)],1)],1),t._v(" "),s("div",{attrs:{id:"right-column"}},[s("VerticalMenu",{on:{"on-click":t.handleRoute}},[this.contestID?[s("VerticalMenu-item",{attrs:{route:{name:"contest-problem-list",params:{contestID:t.contestID}}}},[s("Icon",{attrs:{type:"ios-photos"}}),t._v("\n "+t._s(t.$t("m.Problems"))+"\n ")],1),t._v(" "),s("VerticalMenu-item",{attrs:{route:{name:"contest-announcement-list",params:{contestID:t.contestID}}}},[s("Icon",{attrs:{type:"chatbubble-working"}}),t._v("\n "+t._s(t.$t("m.Announcements"))+"\n ")],1)]:t._e(),t._v(" "),!this.contestID||t.OIContestRealTimePermission?s("VerticalMenu-item",{attrs:{route:t.submissionRoute}},[s("Icon",{attrs:{type:"navicon-round"}}),t._v("\n "+t._s(t.$t("m.Submissions"))+"\n ")],1):t._e(),t._v(" "),this.contestID?[!this.contestID||t.OIContestRealTimePermission?s("VerticalMenu-item",{attrs:{route:{name:"contest-rank",params:{contestID:t.contestID}}}},[s("Icon",{attrs:{type:"stats-bars"}}),t._v("\n "+t._s(t.$t("m.Rankings"))+"\n ")],1):t._e(),t._v(" "),s("VerticalMenu-item",{attrs:{route:{name:"contest-details",params:{contestID:t.contestID}}}},[s("Icon",{attrs:{type:"home"}}),t._v("\n "+t._s(t.$t("m.View_Contest"))+"\n ")],1)]:t._e()],2),t._v(" "),s("Card",{attrs:{id:"info"}},[s("div",{staticClass:"header",attrs:{slot:"title"},slot:"title"},[s("Icon",{attrs:{type:"information-circled"}}),t._v(" "),s("span",{staticClass:"card-title"},[t._v(t._s(t.$t("m.Information")))])],1),t._v(" "),s("ul",[s("li",[s("p",[t._v("ID")]),t._v(" "),s("p",[t._v(t._s(t.problem._id))])]),t._v(" "),s("li",[s("p",[t._v(t._s(t.$t("m.Time_Limit")))]),t._v(" "),s("p",[t._v(t._s(t.problem.time_limit)+"MS")])]),t._v(" "),s("li",[s("p",[t._v(t._s(t.$t("m.Memory_Limit")))]),t._v(" "),s("p",[t._v(t._s(t.problem.memory_limit)+"MB")])]),t._v(" "),s("li"),s("li",[s("p",[t._v(t._s(t.$t("m.IOMode")))]),t._v(" "),s("p",[t._v(t._s(t.problem.io_mode.io_mode))])]),t._v(" "),s("li",[s("p",[t._v(t._s(t.$t("m.Created")))]),t._v(" "),s("p",[t._v(t._s(t.problem.created_by.username))])]),t._v(" "),t.problem.difficulty?s("li",[s("p",[t._v(t._s(t.$t("m.Level")))]),t._v(" "),s("p",[t._v(t._s(t.$t("m."+t.problem.difficulty)))])]):t._e(),t._v(" "),t.problem.total_score?s("li",[s("p",[t._v(t._s(t.$t("m.Score")))]),t._v(" "),s("p",[t._v(t._s(t.problem.total_score))])]):t._e(),t._v(" "),s("li",[s("p",[t._v(t._s(t.$t("m.Tags")))]),t._v(" "),s("p",[s("Poptip",{attrs:{trigger:"hover",placement:"left-end"}},[s("a",[t._v(t._s(t.$t("m.Show")))]),t._v(" "),s("div",{attrs:{slot:"content"},slot:"content"},t._l(t.problem.tags,function(e){return s("Tag",{key:e},[t._v(t._s(e))])}),1)])],1)])])]),t._v(" "),!this.contestID||t.OIContestRealTimePermission?s("Card",{attrs:{id:"pieChart",padding:0}},[s("div",{attrs:{slot:"title"},slot:"title"},[s("Icon",{attrs:{type:"ios-analytics"}}),t._v(" "),s("span",{staticClass:"card-title"},[t._v(t._s(t.$t("m.Statistic")))]),t._v(" "),s("Button",{attrs:{type:"ghost",size:"small",id:"detail"},on:{click:function(e){t.graphVisible=!t.graphVisible}}},[t._v("Details")])],1),t._v(" "),s("div",{staticClass:"echarts"},[s("ECharts",{attrs:{options:t.pie}})],1)]):t._e()],1),t._v(" "),s("Modal",{model:{value:t.graphVisible,callback:function(e){t.graphVisible=e},expression:"graphVisible"}},[s("div",{attrs:{id:"pieChart-detail"}},[s("ECharts",{attrs:{options:t.largePie,initOptions:t.largePieInitOpts}})],1),t._v(" "),s("div",{attrs:{slot:"footer"},slot:"footer"},[s("Button",{attrs:{type:"ghost"},on:{click:function(e){t.graphVisible=!1}}},[t._v(t._s(t.$t("m.Close")))])],1)])],1)},staticRenderFns:[]};var $=s("VU/8")(I,y,!1,function(t){s("1Jov")},"data-v-4ee7c728",null);e.default=$.exports}}); \ No newline at end of file diff --git a/js/admin.540bd9288dd3e2266674.js b/js/admin.540bd9288dd3e2266674.js new file mode 100644 index 0000000..79887e1 --- /dev/null +++ b/js/admin.540bd9288dd3e2266674.js @@ -0,0 +1,201 @@ +webpackJsonp([8],{"++K3":function(e,t){var n,i,r,o,s,a,l,u,c,d,h,p,f,m,g,v=!1;function y(){if(!v){v=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),y=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(p=/\b(iPhone|iP[ao]d)/.exec(e),f=/\b(iP[ao]d)/.exec(e),d=/Android/i.exec(e),m=/FBAN\/\w+;/i.exec(e),g=/Mobile/i.exec(e),h=!!/Win64/.exec(e),t){(n=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN)&&document&&document.documentMode&&(n=document.documentMode);var b=/(?:Trident\/(\d+.\d+))/.exec(e);a=b?parseFloat(b[1])+4:n,i=t[2]?parseFloat(t[2]):NaN,r=t[3]?parseFloat(t[3]):NaN,(o=t[4]?parseFloat(t[4]):NaN)?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),s=t&&t[1]?parseFloat(t[1]):NaN):s=NaN}else n=i=r=s=o=NaN;if(y){if(y[1]){var _=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);l=!_||parseFloat(_[1].replace("_","."))}else l=!1;u=!!y[2],c=!!y[3]}else l=u=c=!1}}var b={ie:function(){return y()||n},ieCompatibilityMode:function(){return y()||a>n},ie64:function(){return b.ie()&&h},firefox:function(){return y()||i},opera:function(){return y()||r},webkit:function(){return y()||o},safari:function(){return b.webkit()},chrome:function(){return y()||s},windows:function(){return y()||u},osx:function(){return y()||l},linux:function(){return y()||c},iphone:function(){return y()||p},mobile:function(){return y()||p||f||d||g},nativeApp:function(){return y()||m},android:function(){return y()||d},ipad:function(){return y()||f}};e.exports=b},"/SGA":function(e,t){},"02w1":function(e,t,n){"use strict";t.__esModule=!0,t.removeResizeListener=t.addResizeListener=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n("z+gd"));var r="undefined"==typeof window,o=function(e){var t=e,n=Array.isArray(t),i=0;for(t=n?t:t[Symbol.iterator]();;){var r;if(n){if(i>=t.length)break;r=t[i++]}else{if((i=t.next()).done)break;r=i.value}var o=r.target.__resizeListeners__||[];o.length&&o.forEach(function(e){e()})}};t.addResizeListener=function(e,t){r||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new i.default(o),e.__ro__.observe(e)),e.__resizeListeners__.push(t))},t.removeResizeListener=function(e,t){e&&e.__resizeListeners__&&(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||e.__ro__.disconnect())}},"04xm":function(e,t){},"0kY3":function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=104)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,s,a){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),s?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},u._ssrRegister=l):r&&(l=a?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}n.d(t,"a",function(){return i})},10:function(e,t){e.exports=n("HJMx")},104:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["el-input-number",e.inputNumberSize?"el-input-number--"+e.inputNumberSize:"",{"is-disabled":e.inputNumberDisabled},{"is-without-controls":!e.controls},{"is-controls-right":e.controlsAtRight}],on:{dragstart:function(e){e.preventDefault()}}},[e.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-input-number__decrease",class:{"is-disabled":e.minDisabled},attrs:{role:"button"},on:{keydown:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.decrease(t):null}}},[n("i",{class:"el-icon-"+(e.controlsAtRight?"arrow-down":"minus")})]):e._e(),e.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-input-number__increase",class:{"is-disabled":e.maxDisabled},attrs:{role:"button"},on:{keydown:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.increase(t):null}}},[n("i",{class:"el-icon-"+(e.controlsAtRight?"arrow-up":"plus")})]):e._e(),n("el-input",{ref:"input",attrs:{value:e.displayValue,placeholder:e.placeholder,disabled:e.inputNumberDisabled,size:e.inputNumberSize,max:e.max,min:e.min,name:e.name,label:e.label},on:{blur:e.handleBlur,focus:e.handleFocus,input:e.handleInput,change:e.handleInputChange},nativeOn:{keydown:[function(t){return"button"in t||!e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?(t.preventDefault(),e.increase(t)):null},function(t){return"button"in t||!e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?(t.preventDefault(),e.decrease(t)):null}]}})],1)};i._withStripped=!0;var r=n(10),o=n.n(r),s=n(22),a=n.n(s),l=n(30),u={name:"ElInputNumber",mixins:[a()("input")],inject:{elForm:{default:""},elFormItem:{default:""}},directives:{repeatClick:l.a},components:{ElInput:o.a},props:{step:{type:Number,default:1},stepStrictly:{type:Boolean,default:!1},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},value:{},disabled:Boolean,size:String,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:""},name:String,label:String,placeholder:String,precision:{type:Number,validator:function(e){return e>=0&&e===parseInt(e,10)}}},data:function(){return{currentValue:0,userInput:null}},watch:{value:{immediate:!0,handler:function(e){var t=void 0===e?e:Number(e);if(void 0!==t){if(isNaN(t))return;if(this.stepStrictly){var n=this.getPrecision(this.step),i=Math.pow(10,n);t=Math.round(t/this.step)*i*this.step/i}void 0!==this.precision&&(t=this.toPrecision(t,this.precision))}t>=this.max&&(t=this.max),t<=this.min&&(t=this.min),this.currentValue=t,this.userInput=null,this.$emit("input",t)}}},computed:{minDisabled:function(){return this._decrease(this.value,this.step)this.max},numPrecision:function(){var e=this.value,t=this.step,n=this.getPrecision,i=this.precision,r=n(t);return void 0!==i?(r>i&&console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"),i):Math.max(n(e),r)},controlsAtRight:function(){return this.controls&&"right"===this.controlsPosition},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},inputNumberSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputNumberDisabled:function(){return this.disabled||!!(this.elForm||{}).disabled},displayValue:function(){if(null!==this.userInput)return this.userInput;var e=this.currentValue;if("number"==typeof e){if(this.stepStrictly){var t=this.getPrecision(this.step),n=Math.pow(10,t);e=Math.round(e/this.step)*n*this.step/n}void 0!==this.precision&&(e=e.toFixed(this.precision))}return e}},methods:{toPrecision:function(e,t){return void 0===t&&(t=this.numPrecision),parseFloat(Math.round(e*Math.pow(10,t))/Math.pow(10,t))},getPrecision:function(e){if(void 0===e)return 0;var t=e.toString(),n=t.indexOf("."),i=0;return-1!==n&&(i=t.length-n-1),i},_increase:function(e,t){if("number"!=typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e+n*t)/n)},_decrease:function(e,t){if("number"!=typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e-n*t)/n)},increase:function(){if(!this.inputNumberDisabled&&!this.maxDisabled){var e=this.value||0,t=this._increase(e,this.step);this.setCurrentValue(t)}},decrease:function(){if(!this.inputNumberDisabled&&!this.minDisabled){var e=this.value||0,t=this._decrease(e,this.step);this.setCurrentValue(t)}},handleBlur:function(e){this.$emit("blur",e)},handleFocus:function(e){this.$emit("focus",e)},setCurrentValue:function(e){var t=this.currentValue;"number"==typeof e&&void 0!==this.precision&&(e=this.toPrecision(e,this.precision)),e>=this.max&&(e=this.max),e<=this.min&&(e=this.min),t!==e&&(this.userInput=null,this.$emit("input",e),this.$emit("change",e,t),this.currentValue=e)},handleInput:function(e){this.userInput=e},handleInputChange:function(e){var t=""===e?void 0:Number(e);isNaN(t)&&""!==e||this.setCurrentValue(t),this.userInput=null},select:function(){this.$refs.input.select()}},mounted:function(){var e=this.$refs.input.$refs.input;e.setAttribute("role","spinbutton"),e.setAttribute("aria-valuemax",this.max),e.setAttribute("aria-valuemin",this.min),e.setAttribute("aria-valuenow",this.currentValue),e.setAttribute("aria-disabled",this.inputNumberDisabled)},updated:function(){this.$refs&&this.$refs.input&&this.$refs.input.$refs.input.setAttribute("aria-valuenow",this.currentValue)}},c=n(0),d=Object(c.a)(u,i,[],!1,null,null,null);d.options.__file="packages/input-number/src/input-number.vue";var h=d.exports;h.install=function(e){e.component(h.name,h)};t.default=h},2:function(e,t){e.exports=n("2kvA")},22:function(e,t){e.exports=n("1oZe")},30:function(e,t,n){"use strict";var i=n(2);t.a={bind:function(e,t,n){var r=null,o=void 0,s=function(){return n.context[t.expression].apply()},a=function(){Date.now()-o<100&&s(),clearInterval(r),r=null};Object(i.on)(e,"mousedown",function(e){0===e.button&&(o=Date.now(),Object(i.once)(document,"mouseup",a),clearInterval(r),r=setInterval(s,100))})}}}})},"0oTq":function(e,t){},1:function(e,t,n){e.exports=n("Z2OV")},"1oZe":function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return{methods:{focus:function(){this.$refs[e].focus()}}}}},2:function(e,t){},"2kvA":function(e,t,n){"use strict";t.__esModule=!0,t.isInContainer=t.getScrollContainer=t.isScroll=t.getStyle=t.once=t.off=t.on=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.hasClass=h,t.addClass=function(e,t){if(!e)return;for(var n=e.className,i=(t||"").split(" "),r=0,o=i.length;r-1}var p=t.getStyle=a<9?function(e,t){if(!r){if(!e||!t)return null;"float"===(t=u(t))&&(t="styleFloat");try{switch(t){case"opacity":try{return e.filters.item("alpha").opacity/100}catch(e){return 1}default:return e.style[t]||e.currentStyle?e.currentStyle[t]:null}}catch(n){return e.style[t]}}}:function(e,t){if(!r){if(!e||!t)return null;"float"===(t=u(t))&&(t="cssFloat");try{var n=document.defaultView.getComputedStyle(e,"");return e.style[t]||n?n[t]:null}catch(n){return e.style[t]}}};var f=t.isScroll=function(e,t){if(!r)return p(e,null!==t&&void 0!==t?t?"overflow-y":"overflow-x":"overflow").match(/(scroll|auto|overlay)/)};t.getScrollContainer=function(e,t){if(!r){for(var n=e;n;){if([window,document,document.documentElement].includes(n))return window;if(f(n,t))return n;n=n.parentNode}return n}},t.isInContainer=function(e,t){if(r||!e||!t)return!1;var n=e.getBoundingClientRect(),i=void 0;return i=[window,document,document.documentElement,null,void 0].includes(t)?{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:t.getBoundingClientRect(),n.topi.top&&n.right>i.left&&n.left0?(r=r.replace(/([^%]|^)%(?:(\d+)\$)?s/g,function(t,n,i){return i?n+e[parseInt(i)-1]:n+e.shift()})).replace(/%%s/g,"%s"):r},n.i18n={"zh-CN":{}},n.locale="zh-CN",n}()})},"5IXW":function(e,t,n){var i,r;!function(o,s){i=[n("7t+N"),n("580I")],void 0===(r=function(e,t){return o.returnExportsGlobal=s(e,t)}.apply(t,i))||(e.exports=r)}(this,function(e,t){var n,i={}.hasOwnProperty;return n=function(n){function r(){return r.__super__.constructor.apply(this,arguments)}return function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype}(r,t),r.count=0,r.keyNameMap={8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Spacebar",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",45:"Insert",46:"Del",91:"Meta",93:"Meta",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"Multiply",107:"Add",109:"Subtract",110:"Decimal",111:"Divide",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",124:"F13",125:"F14",126:"F15",127:"F16",128:"F17",129:"F18",130:"F19",131:"F20",132:"F21",133:"F22",134:"F23",135:"F24",59:";",61:"=",186:";",187:"=",188:",",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},r.aliases={escape:"esc",delete:"del",return:"enter",ctrl:"control",space:"spacebar",ins:"insert",cmd:"meta",command:"meta",wins:"meta",windows:"meta"},r.normalize=function(e){var t,n,i,r,o,s;for(t=o=0,s=(r=e.toLowerCase().replace(/\s+/gi,"").split("+")).length;o0?this._openTimer=setTimeout(function(){t._openTimer=null,t.doOpen(n)},i):this.doOpen(n)},doOpen:function(e){if(!this.$isServer&&(!this.willOpen||this.willOpen())&&!this.opened){this._opening=!0;var t=this.$el,n=e.modal,i=e.zIndex;if(i&&(o.default.zIndex=i),n&&(this._closing&&(o.default.closeModal(this._popupId),this._closing=!1),o.default.openModal(this._popupId,o.default.nextZIndex(),this.modalAppendToBody?void 0:t,e.modalClass,e.modalFade),e.lockScroll)){this.withoutHiddenClass=!(0,a.hasClass)(document.body,"el-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt((0,a.getStyle)(document.body,"paddingRight"),10)),c=(0,s.default)();var r=document.documentElement.clientHeight0&&(r||"scroll"===l)&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+c+"px"),(0,a.addClass)(document.body,"el-popup-parent--hidden")}"static"===getComputedStyle(t).position&&(t.style.position="absolute"),t.style.zIndex=o.default.nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var e=this;if(!this.willClose||this.willClose()){null!==this._openTimer&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var t=Number(this.closeDelay);t>0?this._closeTimer=setTimeout(function(){e._closeTimer=null,e.doClose()},t):this.doClose()}},doClose:function(){this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose()},doAfterClose:function(){o.default.closeModal(this._popupId),this._closing=!1},restoreBodyStyle:function(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,(0,a.removeClass)(document.body,"el-popup-parent--hidden")),this.withoutHiddenClass=!0}}},t.PopupManager=o.default},"7t+N":function(e,t,n){var i; +/*! + * jQuery JavaScript Library v3.6.0 + * https://jquery.com/ + * + * Includes Sizzle.js + * https://sizzlejs.com/ + * + * Copyright OpenJS Foundation and other contributors + * Released under the MIT license + * https://jquery.org/license + * + * Date: 2021-03-02T17:08Z + */ +/*! + * jQuery JavaScript Library v3.6.0 + * https://jquery.com/ + * + * Includes Sizzle.js + * https://sizzlejs.com/ + * + * Copyright OpenJS Foundation and other contributors + * Released under the MIT license + * https://jquery.org/license + * + * Date: 2021-03-02T17:08Z + */ +!function(t,n){"use strict";"object"==typeof e&&"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(n,r){"use strict";var o=[],s=Object.getPrototypeOf,a=o.slice,l=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},u=o.push,c=o.indexOf,d={},h=d.toString,p=d.hasOwnProperty,f=p.toString,m=f.call(Object),g={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},b=n.document,_={type:!0,src:!0,nonce:!0,noModule:!0};function x(e,t,n){var i,r,o=(n=n||b).createElement("script");if(o.text=e,t)for(i in _)(r=t[i]||t.getAttribute&&t.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[h.call(e)]||"object":typeof e}var C=function(e,t){return new C.fn.init(e,t)};function k(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}C.fn=C.prototype={jquery:"3.6.0",constructor:C,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=C.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return C.each(this,e)},map:function(e){return this.pushStack(C.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(C.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(C.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n+~]|"+L+")"+L+"*"),W=new RegExp(L+"|>"),U=new RegExp(B),K=new RegExp("^"+F+"$"),Y={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,X=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},ie=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,re=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){h()},se=_e(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{A.apply(O=I.call(x.childNodes),x.childNodes),O[x.childNodes.length].nodeType}catch(e){A={apply:O.length?function(e,t){P.apply(e,I.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function ae(e,t,i,r){var o,a,u,c,d,f,v,y=t&&t.ownerDocument,x=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==x&&9!==x&&11!==x)return i;if(!r&&(h(t),t=t||p,m)){if(11!==x&&(d=Z.exec(e)))if(o=d[1]){if(9===x){if(!(u=t.getElementById(o)))return i;if(u.id===o)return i.push(u),i}else if(y&&(u=y.getElementById(o))&&b(t,u)&&u.id===o)return i.push(u),i}else{if(d[2])return A.apply(i,t.getElementsByTagName(e)),i;if((o=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return A.apply(i,t.getElementsByClassName(o)),i}if(n.qsa&&!E[e+" "]&&(!g||!g.test(e))&&(1!==x||"object"!==t.nodeName.toLowerCase())){if(v=e,y=t,1===x&&(W.test(e)||H.test(e))){for((y=ee.test(e)&&ve(t.parentNode)||t)===t&&n.scope||((c=t.getAttribute("id"))?c=c.replace(ie,re):t.setAttribute("id",c=_)),a=(f=s(e)).length;a--;)f[a]=(c?"#"+c:":scope")+" "+be(f[a]);v=f.join(",")}try{return A.apply(i,y.querySelectorAll(v)),i}catch(t){E(e,!0)}finally{c===_&&t.removeAttribute("id")}}}return l(e.replace(q,"$1"),t,i,r)}function le(){var e=[];return function t(n,r){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=r}}function ue(e){return e[_]=!0,e}function ce(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),r=n.length;r--;)i.attrHandle[n[r]]=t}function he(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&se(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return ue(function(t){return t=+t,ue(function(n,i){for(var r,o=e([],n.length,t),s=o.length;s--;)n[r=o[s]]&&(n[r]=!(i[r]=n[r]))})})}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ae.support={},o=ae.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!G.test(t||n&&n.nodeName||"HTML")},h=ae.setDocument=function(e){var t,r,s=e?e.ownerDocument||e:x;return s!=p&&9===s.nodeType&&s.documentElement?(f=(p=s).documentElement,m=!o(p),x!=p&&(r=p.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",oe,!1):r.attachEvent&&r.attachEvent("onunload",oe)),n.scope=ce(function(e){return f.appendChild(e).appendChild(p.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),n.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ce(function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Q.test(p.getElementsByClassName),n.getById=ce(function(e){return f.appendChild(e).id=_,!p.getElementsByName||!p.getElementsByName(_).length}),n.getById?(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),i.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},i.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},v=[],g=[],(n.qsa=Q.test(p.querySelectorAll))&&(ce(function(e){var t;f.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+L+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+L+"*(?:value|"+M+")"),e.querySelectorAll("[id~="+_+"-]").length||g.push("~="),(t=p.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\["+L+"*name"+L+"*="+L+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+L+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),f.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(n.matchesSelector=Q.test(y=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ce(function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",B)}),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=Q.test(f.compareDocumentPosition),b=t||Q.test(f.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return d=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===i?e==p||e.ownerDocument==x&&b(x,e)?-1:t==p||t.ownerDocument==x&&b(x,t)?1:c?j(c,e)-j(c,t):0:4&i?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,s=[e],a=[t];if(!r||!o)return e==p?-1:t==p?1:r?-1:o?1:c?j(c,e)-j(c,t):0;if(r===o)return he(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;s[i]===a[i];)i++;return i?he(s[i],a[i]):s[i]==x?-1:a[i]==x?1:0},p):p},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if(h(e),n.matchesSelector&&m&&!E[t+" "]&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var i=y.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){E(t,!0)}return ae(t,p,null,[e]).length>0},ae.contains=function(e,t){return(e.ownerDocument||e)!=p&&h(e),b(e,t)},ae.attr=function(e,t){(e.ownerDocument||e)!=p&&h(e);var r=i.attrHandle[t.toLowerCase()],o=r&&N.call(i.attrHandle,t.toLowerCase())?r(e,t,!m):void 0;return void 0!==o?o:n.attributes||!m?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},ae.escape=function(e){return(e+"").replace(ie,re)},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,i=[],r=0,o=0;if(d=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(D),d){for(;t=e[o++];)t===e[o]&&(r=i.push(o));for(;r--;)e.splice(i[r],1)}return c=null,e},r=ae.getText=function(e){var t,n="",i=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=r(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[i++];)n+=r(t);return n},(i=ae.selectors={cacheLength:50,createPseudo:ue,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ae.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ae.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&U.test(n)&&(t=s(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=k[e+" "];return t||(t=new RegExp("(^|"+L+")"+e+"("+L+"|$)"))&&k(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(i){var r=ae.attr(i,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r.replace(z," ")+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,r){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,l){var u,c,d,h,p,f,m=o!==s?"nextSibling":"previousSibling",g=t.parentNode,v=a&&t.nodeName.toLowerCase(),y=!l&&!a,b=!1;if(g){if(o){for(;m;){for(h=t;h=h[m];)if(a?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[s?g.firstChild:g.lastChild],s&&y){for(b=(p=(u=(c=(d=(h=g)[_]||(h[_]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===w&&u[1])&&u[2],h=p&&g.childNodes[p];h=++p&&h&&h[m]||(b=p=0)||f.pop();)if(1===h.nodeType&&++b&&h===t){c[e]=[w,p,b];break}}else if(y&&(b=p=(u=(c=(d=(h=t)[_]||(h[_]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===w&&u[1]),!1===b)for(;(h=++p&&h&&h[m]||(b=p=0)||f.pop())&&((a?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++b||(y&&((c=(d=h[_]||(h[_]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]=[w,b]),h!==t)););return(b-=r)===i||b%i==0&&b/i>=0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return r[_]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ue(function(e,n){for(var i,o=r(e,t),s=o.length;s--;)e[i=j(e,o[s])]=!(n[i]=o[s])}):function(e){return r(e,0,n)}):r}},pseudos:{not:ue(function(e){var t=[],n=[],i=a(e.replace(q,"$1"));return i[_]?ue(function(e,t,n,r){for(var o,s=i(e,null,r,[]),a=e.length;a--;)(o=s[a])&&(e[a]=!(t[a]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:ue(function(e){return function(t){return ae(e,t).length>0}}),contains:ue(function(e){return e=e.replace(te,ne),function(t){return(t.textContent||r(t)).indexOf(e)>-1}}),lang:ue(function(e){return K.test(e||"")||ae.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return X.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge(function(){return[0]}),last:ge(function(e,t){return[t-1]}),eq:ge(function(e,t,n){return[n<0?n+t:n]}),even:ge(function(e,t){for(var n=0;nt?t:n;--i>=0;)e.push(i);return e}),gt:ge(function(e,t,n){for(var i=n<0?n+t:n;++i1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function we(e,t,n,i,r){for(var o,s=[],a=0,l=e.length,u=null!=t;a-1&&(o[u]=!(s[u]=d))}}else v=we(v===s?v.splice(f,v.length):v),r?r(null,s,v,l):A.apply(s,v)})}function ke(e){for(var t,n,r,o=e.length,s=i.relative[e[0].type],a=s||i.relative[" "],l=s?1:0,c=_e(function(e){return e===t},a,!0),d=_e(function(e){return j(t,e)>-1},a,!0),h=[function(e,n,i){var r=!s&&(i||n!==u)||((t=n).nodeType?c(e,n,i):d(e,n,i));return t=null,r}];l1&&xe(h),l>1&&be(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(q,"$1"),n,l0,r=e.length>0,o=function(o,s,a,l,c){var d,f,g,v=0,y="0",b=o&&[],_=[],x=u,C=o||r&&i.find.TAG("*",c),k=w+=null==x?1:Math.random()||.1,S=C.length;for(c&&(u=s==p||s||c);y!==S&&null!=(d=C[y]);y++){if(r&&d){for(f=0,s||d.ownerDocument==p||(h(d),a=!m);g=e[f++];)if(g(d,s||p,a)){l.push(d);break}c&&(w=k)}n&&((d=!g&&d)&&v--,o&&b.push(d))}if(v+=y,n&&y!==v){for(f=0;g=t[f++];)g(b,_,s,a);if(o){if(v>0)for(;y--;)b[y]||_[y]||(_[y]=$.call(l));_=we(_)}A.apply(l,_),c&&!o&&_.length>0&&v+t.length>1&&ae.uniqueSort(l)}return c&&(w=k,u=x),b};return n?ue(o):o}(o,r))).selector=e}return a},l=ae.select=function(e,t,n,r){var o,l,u,c,d,h="function"==typeof e&&e,p=!r&&s(e=h.selector||e);if(n=n||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"ID"===(u=l[0]).type&&9===t.nodeType&&m&&i.relative[l[1].type]){if(!(t=(i.find.ID(u.matches[0].replace(te,ne),t)||[])[0]))return n;h&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(o=Y.needsContext.test(e)?0:l.length;o--&&(u=l[o],!i.relative[c=u.type]);)if((d=i.find[c])&&(r=d(u.matches[0].replace(te,ne),ee.test(l[0].type)&&ve(t.parentNode)||t))){if(l.splice(o,1),!(e=r.length&&be(l)))return A.apply(n,r),n;break}}return(h||a(e,p))(r,t,!m,n,!t||ee.test(e)&&ve(t.parentNode)||t),n},n.sortStable=_.split("").sort(D).join("")===_,n.detectDuplicates=!!d,h(),n.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))}),ce(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||de("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ce(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||de("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||de(M,function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),ae}(n);C.find=S,C.expr=S.selectors,C.expr[":"]=C.expr.pseudos,C.uniqueSort=C.unique=S.uniqueSort,C.text=S.getText,C.isXMLDoc=S.isXML,C.contains=S.contains,C.escapeSelector=S.escape;var T=function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&C(e).is(n))break;i.push(e)}return i},E=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},D=C.expr.match.needsContext;function N(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var O=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function $(e,t,n){return v(t)?C.grep(e,function(e,i){return!!t.call(e,i,e)!==n}):t.nodeType?C.grep(e,function(e){return e===t!==n}):"string"!=typeof t?C.grep(e,function(e){return c.call(t,e)>-1!==n}):C.filter(t,e,n)}C.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?C.find.matchesSelector(i,e)?[i]:[]:C.find.matches(e,C.grep(t,function(e){return 1===e.nodeType}))},C.fn.extend({find:function(e){var t,n,i=this.length,r=this;if("string"!=typeof e)return this.pushStack(C(e).filter(function(){for(t=0;t1?C.uniqueSort(n):n},filter:function(e){return this.pushStack($(this,e||[],!1))},not:function(e){return this.pushStack($(this,e||[],!0))},is:function(e){return!!$(this,"string"==typeof e&&D.test(e)?C(e):e||[],!1).length}});var P,A=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(C.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||P,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:A.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof C?t[0]:t,C.merge(this,C.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),O.test(i[1])&&C.isPlainObject(t))for(i in t)v(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(r=b.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(C):C.makeArray(e,this)}).prototype=C.fn,P=C(b);var I=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function M(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}C.fn.extend({has:function(e){var t=C(e,this),n=t.length;return this.filter(function(){for(var e=0;e-1:1===n.nodeType&&C.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?C.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?c.call(C(e),this[0]):c.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(C.uniqueSort(C.merge(this.get(),C(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),C.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return T(e,"parentNode")},parentsUntil:function(e,t,n){return T(e,"parentNode",n)},next:function(e){return M(e,"nextSibling")},prev:function(e){return M(e,"previousSibling")},nextAll:function(e){return T(e,"nextSibling")},prevAll:function(e){return T(e,"previousSibling")},nextUntil:function(e,t,n){return T(e,"nextSibling",n)},prevUntil:function(e,t,n){return T(e,"previousSibling",n)},siblings:function(e){return E((e.parentNode||{}).firstChild,e)},children:function(e){return E(e.firstChild)},contents:function(e){return null!=e.contentDocument&&s(e.contentDocument)?e.contentDocument:(N(e,"template")&&(e=e.content||e),C.merge([],e.childNodes))}},function(e,t){C.fn[e]=function(n,i){var r=C.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=C.filter(i,r)),this.length>1&&(j[e]||C.uniqueSort(r),I.test(e)&&r.reverse()),this.pushStack(r)}});var L=/[^\x20\t\r\n\f]+/g;function F(e){return e}function R(e){throw e}function B(e,t,n,i){var r;try{e&&v(r=e.promise)?r.call(e).done(t).fail(n):e&&v(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}C.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return C.each(e.match(L)||[],function(e,n){t[n]=!0}),t}(e):C.extend({},e);var t,n,i,r,o=[],s=[],a=-1,l=function(){for(r=r||e.once,i=t=!0;s.length;a=-1)for(n=s.shift();++a-1;)o.splice(n,1),n<=a&&a--}),this},has:function(e){return e?C.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=s=[],n||t||(o=n=""),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=[e,(n=n||[]).slice?n.slice():n],s.push(n),t||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},C.extend({Deferred:function(e){var t=[["notify","progress",C.Callbacks("memory"),C.Callbacks("memory"),2],["resolve","done",C.Callbacks("once memory"),C.Callbacks("once memory"),0,"resolved"],["reject","fail",C.Callbacks("once memory"),C.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return C.Deferred(function(n){C.each(t,function(t,i){var r=v(e[i[4]])&&e[i[4]];o[i[1]](function(){var e=r&&r.apply(this,arguments);e&&v(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[e]:arguments)})}),e=null}).promise()},then:function(e,i,r){var o=0;function s(e,t,i,r){return function(){var a=this,l=arguments,u=function(){var n,u;if(!(e=o&&(i!==R&&(a=void 0,l=[n]),t.rejectWith(a,l))}};e?c():(C.Deferred.getStackHook&&(c.stackTrace=C.Deferred.getStackHook()),n.setTimeout(c))}}return C.Deferred(function(n){t[0][3].add(s(0,n,v(r)?r:F,n.notifyWith)),t[1][3].add(s(0,n,v(e)?e:F)),t[2][3].add(s(0,n,v(i)?i:R))}).promise()},promise:function(e){return null!=e?C.extend(e,r):r}},o={};return C.each(t,function(e,n){var s=n[2],a=n[5];r[n[1]]=s.add,a&&s.add(function(){i=a},t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),s.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=s.fireWith}),r.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,i=Array(n),r=a.call(arguments),o=C.Deferred(),s=function(e){return function(n){i[e]=this,r[e]=arguments.length>1?a.call(arguments):n,--t||o.resolveWith(i,r)}};if(t<=1&&(B(e,o.done(s(n)).resolve,o.reject,!t),"pending"===o.state()||v(r[n]&&r[n].then)))return o.then();for(;n--;)B(r[n],s(n),o.reject);return o.promise()}});var z=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;C.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&z.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},C.readyException=function(e){n.setTimeout(function(){throw e})};var q=C.Deferred();function V(){b.removeEventListener("DOMContentLoaded",V),n.removeEventListener("load",V),C.ready()}C.fn.ready=function(e){return q.then(e).catch(function(e){C.readyException(e)}),this},C.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--C.readyWait:C.isReady)||(C.isReady=!0,!0!==e&&--C.readyWait>0||q.resolveWith(b,[C]))}}),C.ready.then=q.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?n.setTimeout(C.ready):(b.addEventListener("DOMContentLoaded",V),n.addEventListener("load",V));var H=function(e,t,n,i,r,o,s){var a=0,l=e.length,u=null==n;if("object"===w(n))for(a in r=!0,n)H(e,t,a,n[a],!0,o,s);else if(void 0!==i&&(r=!0,v(i)||(s=!0),u&&(s?(t.call(e,i),t=null):(u=t,t=function(e,t,n){return u.call(C(e),n)})),t))for(;a1,null,!0)},removeData:function(e){return this.each(function(){Q.remove(this,e)})}}),C.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=J.get(e,t),n&&(!i||Array.isArray(n)?i=J.access(e,t,C.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=C.queue(e,t),i=n.length,r=n.shift(),o=C._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,function(){C.dequeue(e,t)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return J.get(e,n)||J.access(e,n,{empty:C.Callbacks("once memory").add(function(){J.remove(e,[t+"queue",n])})})}}),C.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length\x20\t\r\n\f]*)/i,me=/^$|^module$|\/(?:java|ecma)script/i;!function(){var e=b.createDocumentFragment().appendChild(b.createElement("div")),t=b.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),g.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="",g.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,e.innerHTML="",g.option=!!e.lastChild}();var ge={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ve(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&N(e,t)?C.merge([e],n):n}function ye(e,t){for(var n=0,i=e.length;n",""]);var be=/<|&#?\w+;/;function _e(e,t,n,i,r){for(var o,s,a,l,u,c,d=t.createDocumentFragment(),h=[],p=0,f=e.length;p-1)r&&r.push(o);else if(u=se(o),s=ve(d.appendChild(o),"script"),u&&ye(s),n)for(c=0;o=s[c++];)me.test(o.type||"")&&n.push(o);return d}var xe=/^([^.]*)(?:\.(.+)|)/;function we(){return!0}function Ce(){return!1}function ke(e,t){return e===function(){try{return b.activeElement}catch(e){}}()==("focus"===t)}function Se(e,t,n,i,r,o){var s,a;if("object"==typeof t){for(a in"string"!=typeof n&&(i=i||n,n=void 0),t)Se(e,a,n,i,t[a],o);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Ce;else if(!r)return e;return 1===o&&(s=r,(r=function(e){return C().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=C.guid++)),e.each(function(){C.event.add(this,t,r,i,n)})}function Te(e,t,n){n?(J.set(e,t,!1),C.event.add(e,t,{namespace:!1,handler:function(e){var i,r,o=J.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(C.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=a.call(arguments),J.set(this,t,o),i=n(this,t),this[t](),o!==(r=J.get(this,t))||i?J.set(this,t,!1):r={},o!==r)return e.stopImmediatePropagation(),e.preventDefault(),r&&r.value}else o.length&&(J.set(this,t,{value:C.event.trigger(C.extend(o[0],C.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===J.get(e,t)&&C.event.add(e,t,we)}C.event={global:{},add:function(e,t,n,i,r){var o,s,a,l,u,c,d,h,p,f,m,g=J.get(e);if(G(e))for(n.handler&&(n=(o=n).handler,r=o.selector),r&&C.find.matchesSelector(oe,r),n.guid||(n.guid=C.guid++),(l=g.events)||(l=g.events=Object.create(null)),(s=g.handle)||(s=g.handle=function(t){return void 0!==C&&C.event.triggered!==t.type?C.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(L)||[""]).length;u--;)p=m=(a=xe.exec(t[u])||[])[1],f=(a[2]||"").split(".").sort(),p&&(d=C.event.special[p]||{},p=(r?d.delegateType:d.bindType)||p,d=C.event.special[p]||{},c=C.extend({type:p,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&C.expr.match.needsContext.test(r),namespace:f.join(".")},o),(h=l[p])||((h=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,f,s)||e.addEventListener&&e.addEventListener(p,s)),d.add&&(d.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,c):h.push(c),C.event.global[p]=!0)},remove:function(e,t,n,i,r){var o,s,a,l,u,c,d,h,p,f,m,g=J.hasData(e)&&J.get(e);if(g&&(l=g.events)){for(u=(t=(t||"").match(L)||[""]).length;u--;)if(p=m=(a=xe.exec(t[u])||[])[1],f=(a[2]||"").split(".").sort(),p){for(d=C.event.special[p]||{},h=l[p=(i?d.delegateType:d.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=h.length;o--;)c=h[o],!r&&m!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,d.remove&&d.remove.call(e,c));s&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,f,g.handle)||C.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)C.event.remove(e,p+t[u],n,i,!0);C.isEmptyObject(l)&&J.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,o,s,a=new Array(arguments.length),l=C.event.fix(e),u=(J.get(this,"events")||Object.create(null))[l.type]||[],c=C.event.special[l.type]||{};for(a[0]=l,t=1;t=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(o=[],s={},n=0;n-1:C.find(r,this,null,[u]).length),s[r]&&o.push(i);o.length&&a.push({elem:u,handlers:o})}return u=this,l\s*$/g;function Oe(e,t){return N(e,"table")&&N(11!==t.nodeType?t:t.firstChild,"tr")&&C(e).children("tbody")[0]||e}function $e(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Pe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ae(e,t){var n,i,r,o,s,a;if(1===t.nodeType){if(J.hasData(e)&&(a=J.get(e).events))for(r in J.remove(t,"handle events"),a)for(n=0,i=a[r].length;n1&&"string"==typeof f&&!g.checkClone&&De.test(f))return e.each(function(r){var o=e.eq(r);m&&(t[0]=f.call(this,r,o.html())),je(o,t,n,i)});if(h&&(o=(r=_e(t,e[0].ownerDocument,!1,e,i)).firstChild,1===r.childNodes.length&&(r=o),o||i)){for(a=(s=C.map(ve(r,"script"),$e)).length;d0&&ye(s,!l&&ve(e,"script")),a},cleanData:function(e){for(var t,n,i,r=C.event.special,o=0;void 0!==(n=e[o]);o++)if(G(n)){if(t=n[J.expando]){if(t.events)for(i in t.events)r[i]?C.event.remove(n,i):C.removeEvent(n,i,t.handle);n[J.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),C.fn.extend({detach:function(e){return Me(this,e,!0)},remove:function(e){return Me(this,e)},text:function(e){return H(this,function(e){return void 0===e?C.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return je(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Oe(this,e).appendChild(e)})},prepend:function(){return je(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Oe(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return je(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return je(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(C.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return C.clone(this,e,t)})},html:function(e){return H(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ee.test(e)&&!ge[(fe.exec(e)||["",""])[1].toLowerCase()]){e=C.htmlPrefilter(e);try{for(;n=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-a-.5))||0),l}function Ze(e,t,n){var i=Fe(e),r=(!g.boxSizingReliable()||n)&&"border-box"===C.css(e,"boxSizing",!1,i),o=r,s=ze(e,t,i),a="offset"+t[0].toUpperCase()+t.slice(1);if(Le.test(s)){if(!n)return s;s="auto"}return(!g.boxSizingReliable()&&r||!g.reliableTrDimensions()&&N(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===C.css(e,"display",!1,i))&&e.getClientRects().length&&(r="border-box"===C.css(e,"boxSizing",!1,i),(o=a in e)&&(s=e[a])),(s=parseFloat(s)||0)+Qe(e,t,n||(r?"border":"content"),o,i,s)+"px"}function et(e,t,n,i,r){return new et.prototype.init(e,t,n,i,r)}C.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=ze(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,s,a=Y(t),l=Ye.test(t),u=e.style;if(l||(t=Ue(a)),s=C.cssHooks[t]||C.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(r=s.get(e,!1,i))?r:u[t];"string"===(o=typeof n)&&(r=ie.exec(n))&&r[1]&&(n=ue(e,t,r),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=r&&r[3]||(C.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,i))||(l?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,i){var r,o,s,a=Y(t);return Ye.test(t)||(t=Ue(a)),(s=C.cssHooks[t]||C.cssHooks[a])&&"get"in s&&(r=s.get(e,!0,n)),void 0===r&&(r=ze(e,t,i)),"normal"===r&&t in Xe&&(r=Xe[t]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),C.each(["height","width"],function(e,t){C.cssHooks[t]={get:function(e,n,i){if(n)return!Ke.test(C.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ze(e,t,i):Re(e,Ge,function(){return Ze(e,t,i)})},set:function(e,n,i){var r,o=Fe(e),s=!g.scrollboxSize()&&"absolute"===o.position,a=(s||i)&&"border-box"===C.css(e,"boxSizing",!1,o),l=i?Qe(e,t,i,a,o):0;return a&&s&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-Qe(e,t,"border",!1,o)-.5)),l&&(r=ie.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=C.css(e,t)),Je(0,n,l)}}}),C.cssHooks.marginLeft=qe(g.reliableMarginLeft,function(e,t){if(t)return(parseFloat(ze(e,"marginLeft"))||e.getBoundingClientRect().left-Re(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),C.each({margin:"",padding:"",border:"Width"},function(e,t){C.cssHooks[e+t]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[e+re[i]+t]=o[i]||o[i-2]||o[0];return r}},"margin"!==e&&(C.cssHooks[e+t].set=Je)}),C.fn.extend({css:function(e,t){return H(this,function(e,t,n){var i,r,o={},s=0;if(Array.isArray(t)){for(i=Fe(e),r=t.length;s1)}}),C.Tween=et,et.prototype={constructor:et,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||C.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(C.cssNumber[n]?"":"px")},cur:function(){var e=et.propHooks[this.prop];return e&&e.get?e.get(this):et.propHooks._default.get(this)},run:function(e){var t,n=et.propHooks[this.prop];return this.options.duration?this.pos=t=C.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):et.propHooks._default.set(this),this}},et.prototype.init.prototype=et.prototype,et.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=C.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){C.fx.step[e.prop]?C.fx.step[e.prop](e):1!==e.elem.nodeType||!C.cssHooks[e.prop]&&null==e.elem.style[Ue(e.prop)]?e.elem[e.prop]=e.now:C.style(e.elem,e.prop,e.now+e.unit)}}},et.propHooks.scrollTop=et.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},C.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},C.fx=et.prototype.init,C.fx.step={};var tt,nt,it=/^(?:toggle|show|hide)$/,rt=/queueHooks$/;function ot(){nt&&(!1===b.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(ot):n.setTimeout(ot,C.fx.interval),C.fx.tick())}function st(){return n.setTimeout(function(){tt=void 0}),tt=Date.now()}function at(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=re[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function lt(e,t,n){for(var i,r=(ut.tweeners[t]||[]).concat(ut.tweeners["*"]),o=0,s=r.length;o1)},removeAttr:function(e){return this.each(function(){C.removeAttr(this,e)})}}),C.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?C.prop(e,t,n):(1===o&&C.isXMLDoc(e)||(r=C.attrHooks[t.toLowerCase()]||(C.expr.match.bool.test(t)?ct:void 0)),void 0!==n?null===n?void C.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=C.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&N(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,r=t&&t.match(L);if(r&&1===e.nodeType)for(;n=r[i++];)e.removeAttribute(n)}}),ct={set:function(e,t,n){return!1===t?C.removeAttr(e,n):e.setAttribute(n,n),n}},C.each(C.expr.match.bool.source.match(/\w+/g),function(e,t){var n=dt[t]||C.find.attr;dt[t]=function(e,t,i){var r,o,s=t.toLowerCase();return i||(o=dt[s],dt[s]=r,r=null!=n(e,t,i)?s:null,dt[s]=o),r}});var ht=/^(?:input|select|textarea|button)$/i,pt=/^(?:a|area)$/i;function ft(e){return(e.match(L)||[]).join(" ")}function mt(e){return e.getAttribute&&e.getAttribute("class")||""}function gt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(L)||[]}C.fn.extend({prop:function(e,t){return H(this,C.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[C.propFix[e]||e]})}}),C.extend({prop:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&C.isXMLDoc(e)||(t=C.propFix[t]||t,r=C.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=C.find.attr(e,"tabindex");return t?parseInt(t,10):ht.test(e.nodeName)||pt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(C.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){C.propFix[this.toLowerCase()]=this}),C.fn.extend({addClass:function(e){var t,n,i,r,o,s,a,l=0;if(v(e))return this.each(function(t){C(this).addClass(e.call(this,t,mt(this)))});if((t=gt(e)).length)for(;n=this[l++];)if(r=mt(n),i=1===n.nodeType&&" "+ft(r)+" "){for(s=0;o=t[s++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r!==(a=ft(i))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,i,r,o,s,a,l=0;if(v(e))return this.each(function(t){C(this).removeClass(e.call(this,t,mt(this)))});if(!arguments.length)return this.attr("class","");if((t=gt(e)).length)for(;n=this[l++];)if(r=mt(n),i=1===n.nodeType&&" "+ft(r)+" "){for(s=0;o=t[s++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");r!==(a=ft(i))&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e,i="string"===n||Array.isArray(e);return"boolean"==typeof t&&i?t?this.addClass(e):this.removeClass(e):v(e)?this.each(function(n){C(this).toggleClass(e.call(this,n,mt(this),t),t)}):this.each(function(){var t,r,o,s;if(i)for(r=0,o=C(this),s=gt(e);t=s[r++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=mt(this))&&J.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":J.get(this,"__className__")||""))})},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+ft(mt(n))+" ").indexOf(t)>-1)return!0;return!1}});var vt=/\r/g;C.fn.extend({val:function(e){var t,n,i,r=this[0];return arguments.length?(i=v(e),this.each(function(n){var r;1===this.nodeType&&(null==(r=i?e.call(this,n,C(this).val()):e)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=C.map(r,function(e){return null==e?"":e+""})),(t=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))})):r?(t=C.valHooks[r.type]||C.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(vt,""):null==n?"":n:void 0}}),C.extend({valHooks:{option:{get:function(e){var t=C.find.attr(e,"value");return null!=t?t:ft(C.text(e))}},select:{get:function(e){var t,n,i,r=e.options,o=e.selectedIndex,s="select-one"===e.type,a=s?null:[],l=s?o+1:r.length;for(i=o<0?l:s?o:0;i-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),C.each(["radio","checkbox"],function(){C.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=C.inArray(C(e).val(),t)>-1}},g.checkOn||(C.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),g.focusin="onfocusin"in n;var yt=/^(?:focusinfocus|focusoutblur)$/,bt=function(e){e.stopPropagation()};C.extend(C.event,{trigger:function(e,t,i,r){var o,s,a,l,u,c,d,h,f=[i||b],m=p.call(e,"type")?e.type:e,g=p.call(e,"namespace")?e.namespace.split("."):[];if(s=h=a=i=i||b,3!==i.nodeType&&8!==i.nodeType&&!yt.test(m+C.event.triggered)&&(m.indexOf(".")>-1&&(m=(g=m.split(".")).shift(),g.sort()),u=m.indexOf(":")<0&&"on"+m,(e=e[C.expando]?e:new C.Event(m,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:C.makeArray(t,[e]),d=C.event.special[m]||{},r||!d.trigger||!1!==d.trigger.apply(i,t))){if(!r&&!d.noBubble&&!y(i)){for(l=d.delegateType||m,yt.test(l+m)||(s=s.parentNode);s;s=s.parentNode)f.push(s),a=s;a===(i.ownerDocument||b)&&f.push(a.defaultView||a.parentWindow||n)}for(o=0;(s=f[o++])&&!e.isPropagationStopped();)h=s,e.type=o>1?l:d.bindType||m,(c=(J.get(s,"events")||Object.create(null))[e.type]&&J.get(s,"handle"))&&c.apply(s,t),(c=u&&s[u])&&c.apply&&G(s)&&(e.result=c.apply(s,t),!1===e.result&&e.preventDefault());return e.type=m,r||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(f.pop(),t)||!G(i)||u&&v(i[m])&&!y(i)&&((a=i[u])&&(i[u]=null),C.event.triggered=m,e.isPropagationStopped()&&h.addEventListener(m,bt),i[m](),e.isPropagationStopped()&&h.removeEventListener(m,bt),C.event.triggered=void 0,a&&(i[u]=a)),e.result}},simulate:function(e,t,n){var i=C.extend(new C.Event,n,{type:e,isSimulated:!0});C.event.trigger(i,null,t)}}),C.fn.extend({trigger:function(e,t){return this.each(function(){C.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return C.event.trigger(e,t,n,!0)}}),g.focusin||C.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){C.event.simulate(t,e.target,C.event.fix(e))};C.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,r=J.access(i,t);r||i.addEventListener(e,n,!0),J.access(i,t,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=J.access(i,t)-1;r?J.access(i,t,r):(i.removeEventListener(e,n,!0),J.remove(i,t))}}});var _t=n.location,xt={guid:Date.now()},wt=/\?/;C.parseXML=function(e){var t,i;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){}return i=t&&t.getElementsByTagName("parsererror")[0],t&&!i||C.error("Invalid XML: "+(i?C.map(i.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Ct=/\[\]$/,kt=/\r?\n/g,St=/^(?:submit|button|image|reset|file)$/i,Tt=/^(?:input|select|textarea|keygen)/i;function Et(e,t,n,i){var r;if(Array.isArray(t))C.each(t,function(t,r){n||Ct.test(e)?i(e,r):Et(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,i)});else if(n||"object"!==w(t))i(e,t);else for(r in t)Et(e+"["+r+"]",t[r],n,i)}C.param=function(e,t){var n,i=[],r=function(e,t){var n=v(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!C.isPlainObject(e))C.each(e,function(){r(this.name,this.value)});else for(n in e)Et(n,e[n],t,r);return i.join("&")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=C.prop(this,"elements");return e?C.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!C(this).is(":disabled")&&Tt.test(this.nodeName)&&!St.test(e)&&(this.checked||!pe.test(e))}).map(function(e,t){var n=C(this).val();return null==n?null:Array.isArray(n)?C.map(n,function(e){return{name:t.name,value:e.replace(kt,"\r\n")}}):{name:t.name,value:n.replace(kt,"\r\n")}}).get()}});var Dt=/%20/g,Nt=/#.*$/,Ot=/([?&])_=[^&]*/,$t=/^(.*?):[ \t]*([^\r\n]*)$/gm,Pt=/^(?:GET|HEAD)$/,At=/^\/\//,It={},jt={},Mt="*/".concat("*"),Lt=b.createElement("a");function Ft(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r=0,o=t.toLowerCase().match(L)||[];if(v(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function Rt(e,t,n,i){var r={},o=e===jt;function s(a){var l;return r[a]=!0,C.each(e[a]||[],function(e,a){var u=a(t,n,i);return"string"!=typeof u||o||r[u]?o?!(l=u):void 0:(t.dataTypes.unshift(u),s(u),!1)}),l}return s(t.dataTypes[0])||!r["*"]&&s("*")}function Bt(e,t){var n,i,r=C.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&C.extend(!0,e,i),e}Lt.href=_t.href,C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:_t.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(_t.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Mt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Bt(Bt(e,C.ajaxSettings),t):Bt(C.ajaxSettings,e)},ajaxPrefilter:Ft(It),ajaxTransport:Ft(jt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,r,o,s,a,l,u,c,d,h,p=C.ajaxSetup({},t),f=p.context||p,m=p.context&&(f.nodeType||f.jquery)?C(f):C.event,g=C.Deferred(),v=C.Callbacks("once memory"),y=p.statusCode||{},_={},x={},w="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(u){if(!s)for(s={};t=$t.exec(o);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(e,t){return null==u&&(e=x[e.toLowerCase()]=x[e.toLowerCase()]||e,_[e]=t),this},overrideMimeType:function(e){return null==u&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)k.always(e[k.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||w;return i&&i.abort(t),S(0,t),this}};if(g.promise(k),p.url=((e||p.url||_t.href)+"").replace(At,_t.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(L)||[""],null==p.crossDomain){l=b.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Lt.protocol+"//"+Lt.host!=l.protocol+"//"+l.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=C.param(p.data,p.traditional)),Rt(It,p,t,k),u)return k;for(d in(c=C.event&&p.global)&&0==C.active++&&C.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Pt.test(p.type),r=p.url.replace(Nt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Dt,"+")):(h=p.url.slice(r.length),p.data&&(p.processData||"string"==typeof p.data)&&(r+=(wt.test(r)?"&":"?")+p.data,delete p.data),!1===p.cache&&(r=r.replace(Ot,"$1"),h=(wt.test(r)?"&":"?")+"_="+xt.guid+++h),p.url=r+h),p.ifModified&&(C.lastModified[r]&&k.setRequestHeader("If-Modified-Since",C.lastModified[r]),C.etag[r]&&k.setRequestHeader("If-None-Match",C.etag[r])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&k.setRequestHeader("Content-Type",p.contentType),k.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Mt+"; q=0.01":""):p.accepts["*"]),p.headers)k.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(f,k,p)||u))return k.abort();if(w="abort",v.add(p.complete),k.done(p.success),k.fail(p.error),i=Rt(jt,p,t,k)){if(k.readyState=1,c&&m.trigger("ajaxSend",[k,p]),u)return k;p.async&&p.timeout>0&&(a=n.setTimeout(function(){k.abort("timeout")},p.timeout));try{u=!1,i.send(_,S)}catch(e){if(u)throw e;S(-1,e)}}else S(-1,"No Transport");function S(e,t,s,l){var d,h,b,_,x,w=t;u||(u=!0,a&&n.clearTimeout(a),i=void 0,o=l||"",k.readyState=e>0?4:0,d=e>=200&&e<300||304===e,s&&(_=function(e,t,n){for(var i,r,o,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){o=r;break}s||(s=r)}o=o||s}if(o)return o!==l[0]&&l.unshift(o),n[o]}(p,k,s)),!d&&C.inArray("script",p.dataTypes)>-1&&C.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),_=function(e,t,n,i){var r,o,s,a,l,u={},c=e.dataTypes.slice();if(c[1])for(s in e.converters)u[s.toLowerCase()]=e.converters[s];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=u[l+" "+o]||u["* "+o]))for(r in u)if((a=r.split(" "))[1]===o&&(s=u[l+" "+a[0]]||u["* "+a[0]])){!0===s?s=u[r]:!0!==u[r]&&(o=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(p,_,k,d),d?(p.ifModified&&((x=k.getResponseHeader("Last-Modified"))&&(C.lastModified[r]=x),(x=k.getResponseHeader("etag"))&&(C.etag[r]=x)),204===e||"HEAD"===p.type?w="nocontent":304===e?w="notmodified":(w=_.state,h=_.data,d=!(b=_.error))):(b=w,!e&&w||(w="error",e<0&&(e=0))),k.status=e,k.statusText=(t||w)+"",d?g.resolveWith(f,[h,w,k]):g.rejectWith(f,[k,w,b]),k.statusCode(y),y=void 0,c&&m.trigger(d?"ajaxSuccess":"ajaxError",[k,p,d?h:b]),v.fireWith(f,[k,w]),c&&(m.trigger("ajaxComplete",[k,p]),--C.active||C.event.trigger("ajaxStop")))}return k},getJSON:function(e,t,n){return C.get(e,t,n,"json")},getScript:function(e,t){return C.get(e,void 0,t,"script")}}),C.each(["get","post"],function(e,t){C[t]=function(e,n,i,r){return v(n)&&(r=r||i,i=n,n=void 0),C.ajax(C.extend({url:e,type:t,dataType:r,data:n,success:i},C.isPlainObject(e)&&e))}}),C.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),C._evalUrl=function(e,t,n){return C.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){C.globalEval(e,t,n)}})},C.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=C(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return v(e)?this.each(function(t){C(this).wrapInner(e.call(this,t))}):this.each(function(){var t=C(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=v(e);return this.each(function(n){C(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){C(this).replaceWith(this.childNodes)}),this}}),C.expr.pseudos.hidden=function(e){return!C.expr.pseudos.visible(e)},C.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},C.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var zt={0:200,1223:204},qt=C.ajaxSettings.xhr();g.cors=!!qt&&"withCredentials"in qt,g.ajax=qt=!!qt,C.ajaxTransport(function(e){var t,i;if(g.cors||qt&&!e.crossDomain)return{send:function(r,o){var s,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)a[s]=e.xhrFields[s];for(s in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(s,r[s]);t=function(e){return function(){t&&(t=i=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(zt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=t(),i=a.onerror=a.ontimeout=t("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&n.setTimeout(function(){t&&i()})},t=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),C.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),C.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return C.globalEval(e),e}}}),C.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),C.ajaxTransport("script",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,r){t=C("