Skip to content

Instantly share code, notes, and snippets.

@lcandy2
Last active September 30, 2023 09:16
Show Gist options
  • Select an option

  • Save lcandy2/aeb6cd2f89a84f1d64a4e49bd0efdee2 to your computer and use it in GitHub Desktop.

Select an option

Save lcandy2/aeb6cd2f89a84f1d64a4e49bd0efdee2 to your computer and use it in GitHub Desktop.
nowcoder signup js
This file has been truncated, but you can view the full file.
(self.webpackChunkreborn = self.webpackChunkreborn || []).push([[9627], {
17203: function(t, e, n) {
var i = n(21004)
, r = t.exports = {
url: {
contestInfoCountDown: "/acm/contest/contest-info-count-down",
contestInfo: "/acm/contest/contest-info",
problemList: "/acm/contest/problem-list",
problemListEvaluate: "/acm/evaluate/problem-list",
statusList: "/acm-heavy/acm/contest/status-list",
statusListEvaluate: "/acm/evaluate/status-list",
realTimeRankData: "/acm/contest/real-time-rank-data",
realTimeRankData2: "/acm-heavy/acm/contest/real-time-rank-data",
vipContestList: "/acm/contest/vip-contest-list",
submitPassword: "/acm/contest/submit-password",
signUpTeam: "/acm/contest/sign-up-team",
signUpSwitch: "/acm/contest/sign-up-switch",
signUpCancel: "/acm/contest/sign-up-cancel",
receiveNotification: "/acm/contest/receive-notification",
queryOrganizers: "query-organizers",
followContest: "follow-contest",
unfollowContest: "unfollow-contest",
rankTypeInfo: "/acm/contest/rank-type-info",
ratingList: "/acm/contest/rating-list",
ratingBasic: "/acm/contest/rating-basic",
ratingHistory: "/acm/contest/rating-history",
contestJoinedHistory: "/acm-heavy/acm/contest/profile/contest-joined-history",
contestSignOnlyHistory: "/acm/contest/profile/contest-sign-only-history",
contestCreateHistory: "/acm/contest/profile/contest-create-history",
calendar: "/acm/calendar/contest",
faq: "/acm/contest/messages/faq",
ping: "/acm/contest/ping-to-nc",
messagesList: "/acm/contest/messages",
newMessage: "/acm/contest/messages",
getSubmissionScore: "/acm/contest/view-submission-score",
updateProfileInfo: "/acm/contest/profile/update-info",
updatePlanType: "/acm/contest/profile/update-info-plan-type",
getChallengeStatus: "/acm/challenge/challenge-status",
stopChallenge: "/acm/challenge/stop-challenge",
updateClockQuestionTarget: "/acm/contest/profile/update-clock-question-target",
addClock: "/acm/add/clock",
updateOtherRating: "/acm/otherrating/update",
contestCategoryList: "/acm/contest/admin/contest-category-list",
getCategoryList: "/acm/contest/admin/contest-category-list",
getClockImg: "/acm/clock/share-image",
getRecommandContest: "/acm/recommand/contests",
getUserTeamList: "/acm/contest/profile/user-team-list",
getRelativeRunningContests: "/acm/contest/replay/relative-running-contests",
createReadonly: "/acm/contest/replay/create-readonly",
getSameContestList: "/acm/contest/rank/same-contest-list",
getRatingColorLevel: "/acm/contest/rating-color-level",
getSubmitList: "/acm/contest/rank/submit-list",
getUserFollow: "/nccommon/sns/following-peoples-uid",
getSignUpDefaultInfo: "/acm/contest/sign-up-default-info",
editSignUpInfo: "/acm/contest/sign-up-edit-info",
getLeftSeconds: "/acm/contest/info/leftSeconds",
getExcitation: "/acm/contest/excitation",
getCheckoutCode: "/fission/activity/verify-code"
}
};
i.add(t.exports, r.url)
},
3266: function(t, e, n) {
var i = n(21004)
, r = t.exports = {
url: {
getMyCreate: "/acm/problem/collection/my-create",
getMyFollow: "/acm/problem/collection/my-follow",
getInfo: "/acm/problem/collection/info",
del: "/acm/problem/collection/delete",
addQuestion: "/acm/problem/collection/add-problem",
delQuestion: "/acm/problem/collection/remove-problem",
create: "/acm/problem/collection/create",
edit: "/acm/problem/collection/edit",
getAllTags: "/acm/problem/all-tags"
}
};
i.add(t.exports, r.url)
},
7864: function(t, e, n) {
var i = n(21004)
, r = t.exports = {
url: {
getNextProblem: "/acm/problem/tag-rate/contest-next-problem",
getTagRate: "/acm/problem/tag-rate",
makeTagRate: "/acm/problem/tag-rate"
}
};
i.add(t.exports, r.url)
},
50417: function(t, e, n) {
var i = n(21004)
, r = t.exports = {
url: {
createTeam: "/acm/team/manager/create-team",
editTeam: "/acm/team/manager/edit-team",
canUserInvite: "/acm/team/manager/can-user-invite",
newInvite: "/acm/team/manager/new-invite",
acceptInvite: "/acm/team/accept-invite",
rejectInvite: "/acm/team/reject-invite",
newApply: "/acm/team/new-apply",
acceptApply: "/acm/team/manager/accept-apply",
rejectApply: "/acm/team/manager/reject-apply",
getApplyList: "/acm/team/apply-list",
getMemberList: "/acm/team/member-list",
getMyTeamList: "/acm/team/my-team-list",
dissolveTeam: "/acm/team/manager/dissolve-team",
quitTeam: "/acm/team/quit-team",
delMember: "/acm/team/manager/delete-member"
}
};
i.add(t.exports, r.url)
},
94954: function(t, e, n) {
"use strict";
var i = n(27946)
, r = n.n(i)
, a = n(98247)
, o = n.n(a)
, s = n(99734)
, l = n.n(s)
, c = n(75441)
, u = n.n(c)
, d = n(17203)
, p = n.n(d)
, f = n(8604)
, h = n(31471)
, m = n(70570)
, g = n(9854)
, v = n(70208)
, b = n(13993)
, y = n(54719)
, w = n(4504)
, _ = n(71295)
, x = n(94778)
, C = n(46850)
, k = n(6813)
, S = n(33337)
, T = m.create();
e.Z = T,
m.mix(T, g, {
_template: '\n <div class="subject-oprt-wrap pannel-chat #{open}" style="display:none;">\n <div class="oprt-hd">\n <div class="s-pannel-oprt"><a class="icon-angle-up" style="color:#333;margin-top:10px;background:none;"></a></div>\n <span class="s-pannel-title">比赛问题咨询</span>\n </div>\n <div class="oprt-bd">\n <div class="pannel-chat-list"><div id="jsList"></div></div>\n <div class="pannel-chat-type clearfix">\n <div role="group" class="btn-group btn-group-xs" id="jsType"></div>\n <a href="javascript:void(0);" class="js-show-auto-msg link-green" style="display:inline-block;float:right;font-size:12px;">常见问题</a>\n </div>\n <textarea class="pannel-chat-txt" id="jsTxtIpt"></textarea>\n </div>\n </div>',
listeners: [{
name: "render",
type: "custom",
handler: function() {
var t = this
, e = t.getEl()
, n = t.rawConfig;
t.userId = window.globalInfo.ownerId,
t.contestId = n.contestId,
t.questionId = n.questionId,
t.signUpId = n.signUpId,
t.manager = n.manager,
t.msgMap = {},
t.initHolderEl(),
t.initComponent(),
t.initEvent(),
t.showTips(),
t.initPing(),
t.titleEl = r()(e).call(e, "div.oprt-hd span.s-pannel-title"),
t.listEl = r()(e).call(e, "#jsList"),
t.txtIpt = r()(e).call(e, "#jsTxtIpt"),
n.needFixBottom && t.fixBottom(),
e.on("click", (function() {
return t.showTitle(!1)
}
))
}
}, {
name: "click div.oprt-hd",
handler: function() {
this.open(!this.isOpen())
}
}, {
name: "click #jsList a.js-auto-msg",
handler: function(t) {
var e = f(t.currentTarget).attr("data-index");
return this.showAutoReply(e)
}
}, {
name: "click a.js-show-auto-msg",
handler: function(t) {
var e = f(t.currentTarget);
v.mark(e) || (this.showTips(),
window.setTimeout((function() {
return v.clear(e)
}
), 2500))
}
}]
}, {
initialize: function(t) {
var e = this;
t.renderTo = f(t.renderTo || document.body),
e.db = new C("ACM-CHAT"),
e.isOpenAdBlock = !1,
k.checkAdBlock((function(t) {
return e.isOpenAdBlock = !0
}
))
},
initHolderEl: function() {
var t = this
, e = t.rawConfig
, n = t.holderEl = f('<div class="code-question-pannel" style="z-index:998;bottom:0px;"><i class="ico-q-msg"></i><span>比赛问题咨询</span><a class="icon-angle-up"></a></div>');
e.renderTo.append(n),
n.on("click", (function(e) {
e.preventDefault(),
e.stopPropagation(),
t.open()
}
))
},
initComponent: function() {
var t = this.getEl();
this.typeSelect = new S({
renderTo: r()(t).call(t, "#jsType"),
renderBy: "replaceWith",
cls: "btn-group-xs",
options: [{
text: "题目问题",
value: "1",
checked: !0
}, {
text: "系统问题",
value: "2"
}, {
text: "其他",
value: "4"
}],
render: function() {
this.getEl().width(150)
}
})
},
initEvent: function() {
var t = this
, e = t.getEl();
r()(e).call(e, "textarea.pannel-chat-txt").on("keydown", (function(e) {
if (13 === e.keyCode) {
e.preventDefault();
var n = f(e.currentTarget);
t.sendMsg(n.val()),
n.val("")
}
}
)),
f(document).on("click", (function(n) {
var i = n.target
, r = (t.typeSelect || {}).attachSel
, a = r && r.getEl ? r.getEl().get(0) : null;
!t.isOpen() || i === e.get(0) || f.contains(e.get(0), i) || a && f.contains(a, i) || t.open(!1)
}
))
},
initPing: function() {
var t = this
, e = y.frequency(8e3)
, n = 0
, i = !1;
!function r() {
e((function() {
p().ping({
body: {
contestId: t.contestId,
uid: t.userId,
previousMessageId: t.previousMessageId
},
call: function(e) {
var r = e.data || {};
i = !!r.stopPing,
r.newMsgCount > 0 && t.checkMsg(),
n = 0
},
error: function(e) {
++n < 5 || (t.showNotice({
content: "你的网络可能存在连接异常:请检查是否断网并重新连接。" + (t.isOpenAdBlock ? "如果你开启了Adblock、Adblock Plus、AdGuard等屏蔽广告插件,请暂时关闭。" : ""),
type: "9",
duration: 8e3
}),
n = 0)
},
always: function() {
return !i && !t.__destroy && r()
}
})
}
))
}()
},
fixBottom: function() {
var t = this;
if (t._fixBottom)
return;
t._fixBottom = !0;
var e = t.getEl()
, n = f(window)
, i = n.height()
, r = f("div.js-nowcoder-footer")
, a = r.position().top
, o = 0
, s = y.frequency(15);
function l() {
t._stopFixBottom ? o = 0 : s((function() {
if (0 === o) {
i = n.height(),
a = r.position().top;
var s = n.scrollTop();
o = (l = s + i - 0) > a ? l - a : 0,
e.css("bottom", o),
t.holderEl.css("bottom", o)
} else {
i = n.height(),
a = r.position().top;
var l;
s = n.scrollTop();
o = (l = s + i - 0) > a ? l - a : 0,
e.css("bottom", o),
t.holderEl.css("bottom", o)
}
}
))
}
l(),
t.open(!1),
n.on("scroll", l),
n.on("resize", (function() {
i = n.height(),
l()
}
)),
t.listen("fixSize", (function() {
return l()
}
))
},
fixPos: function() {
this.fire("fixSize")
},
showMsg: function(t, e, n) {
var i = this.listEl
, r = e ? "出题人" : "我";
if (!(t = o()(f).call(f, t)))
return;
var a = e ? '\n <div class="pcl-item clearfix">\n <div class="pcl-head">\n <a class="list-head" href="javascript:void(0);"><img alt="头像" src="//uploadfiles.nowcoder.com/images/20160711/56_1468219359225_DFC72C14F1C7419B93207CC1C1A560C9"></a>\n <span class="pcl-name" style="">#{name}</span>\n </div>\n <div class="tooltip fade right in">\n <div class="tooltip-arrow" style="top:18px;"></div>\n <div class="tooltip-inner letter-chat clearfix">#{msg}</div>\n </div>\n </div>' : '\n <div class="pcl-item ask-item clearfix">\n <div class="pcl-head">\n <a class="list-head" href="javascript:void(0);"><img alt="头像" src="//uploadfiles.nowcoder.com/images/20160712/58_1468318308479_449C3253CA2BBED9314D39977A486D0E"></a>\n <span class="pcl-name" style="margin-left:9px;">#{name}</span>\n </div>\n <div class="tooltip fade right in">\n <div class="tooltip-arrow" style="top:18px"></div>\n <div class="tooltip-inner letter-chat clearfix">#{msg}</div>\n </div>\n </div>'
, s = b.execTpl(a, {
name: r,
msg: t
}, arguments.length > 2 ? !!n : !e);
i.append(s),
this.bottomMsg()
},
showAutoReply: function(t) {
var e = this;
if (!/^\d+$/.test(t = t || "") || !e._autoMsg)
return;
var n = +t - 1;
if (n < 0 || n >= e._autoMsg.length)
return;
var i = e._autoMsg[n];
return e.showMsg(i.answer || "", !0),
!0
},
showTitle: function(t) {
var e = this
, n = e.getEl()
, i = "比赛问题咨询" + (t ? "(您有未读信息)" : "");
e.titleEl.html(i),
n[t ? "addClass" : "removeClass"]("has-new-msg"),
e.holderEl[t ? "addClass" : "removeClass"]("new-msg-notice")
},
bottomMsg: function() {
var t = this.listEl;
_.scrollToElBottom(t.parent())
},
showTips: function() {
var t = this;
if (t.getingAutoMsg)
return;
if (t._autoMsg)
return e();
function e() {
var e = ["欢迎参加比赛,我是本场比赛的出题人,如有以下问题,可以点击查询解决方法:"];
l()(h).call(h, t._autoMsg, (function(t, n) {
e.push(b.execTpl('<a class="js-auto-msg link-green" href="javascript:void(0);" data-index="#{order}">#{order}:#{content}</a>', {
order: n + 1,
content: t.question
}, !0))
}
)),
e.push("如以上问题未解决你的困难,请选择你遇到的问题类型并进行详细描述,我将尽快为你解答。"),
e.push("请注意,与比赛内容相关的技术问题一概不做回答,比赛期间请自行思考作答。祝比赛加油^^ ");
var n = '<div class="pcl-item">' + (e = u()(h).call(h, e, (function(t) {
return "<p>" + t + "</p>"
}
))).join("") + "</div>";
t.showMsg(n, !0)
}
t.getingAutoMsg = !0,
p().faq({
query: {
contestId: t.contestId
},
call: function(n) {
t._autoMsg = n.data,
e()
},
always: function() {
t.getingAutoMsg = !1
}
})
},
open: function(t) {
var e = this
, n = e.getEl();
!1 === t ? n.hide(50, (function() {
n.removeClass("open"),
e.holderEl.show(100)
}
)) : (e.holderEl.hide(50, (function() {
n.addClass("open").show(100, (function() {
e.txtIpt.focus(),
e.bottomMsg()
}
))
}
)),
e.showTitle(!1))
},
isOpen: function() {
return this.getEl().hasClass("open")
},
sendMsg: function(t) {
var e = this;
if (!(t = o()(f).call(f, t)))
return;
p().newMessage({
type: "POST",
body: {
contestId: e.contestId,
problemId: e.questionId,
content: t,
type: e.typeSelect.val(),
uid: e.userId
},
call: function(n) {
var i = n.data + "";
e.msgMap[i] = {
content: t,
id: n.data,
isSelf: !0
},
e.showMsg(t)
},
error: function(n) {
e.showMsg("消息“ " + t + " ”发送失败", !0, !0)
}
})
},
checkMsg: function(t) {
var e = this;
if (e._requesting)
return;
e._requesting = !0,
t = +t || 1,
p().messagesList({
query: {
contestId: e.contestId,
uid: e.userId,
previousMessageId: e.previousMessageId,
page: t
},
call: function(n) {
var i = n.data
, r = +i.totalPage || 1
, a = i.messages || [];
e.db.refresh();
var s = +e.db.get(e.signUpId) || 0
, c = !1;
l()(h).call(h, a, (function(t) {
var n = h.id(t.id)
, i = o()(f).call(f, t.content)
, r = t.isAcmManager
, a = s >= t.id || !r;
!e.msgMap[n] && i && (e.msgMap[n] = t,
e.showMsg(i, r, !1),
a || (c = !0,
"3" === h.id(t.type) && e.showNotice(i)))
}
));
var u = (a[a.length - 1] || {}).id;
u && (e.previousMessageId = Math.max(u, e.previousMessageId || 0),
document.hidden || e.db.set(e.signUpId, Math.max(e.previousMessageId, e.db.get(e.signUpId) || 0), 864e5)),
c && !e.isOpen() && e.showTitle(!0),
e._requesting = !1,
t < r && e.checkMsg()
},
error: function(t) {
e._requesting = !1
}
})
},
stopFixBottom: function(t) {
this._stopFixBottom = !1 !== t
},
showNotice: function(t) {
w.fire("MSG_EVENT_NOTICE_SHOW", t),
this.soundNotice()
},
soundNotice: function() {
var t = this;
try {
t._noticeSound = t._noticeSound || new x("//uploadfiles.nowcoder.com/acts/cts/notice.mp3"),
t._noticeSound.stop(),
t._noticeSound.play()
} catch (e) {}
},
_getData: function(t) {
return {
open: t.open ? "open" : ""
}
}
})
},
9992: function(t, e, n) {
"use strict";
var i = n(27946)
, r = n.n(i)
, a = n(98247)
, o = n.n(a)
, s = n(85303)
, l = n.n(s)
, c = n(8604)
, u = n(31471)
, d = n(70570)
, p = n(9854)
, f = d.create();
e.Z = f,
d.mix(f, p, {
_template: '\n <div class="notice-tip-bar">\n <div class="notice-tip-content">\n <i class="icon-volume-down"></i><span class="js-part-notice"></span><a href="javascript:void(0);" class="icon-remove"></a>\n </div>\n </div>',
listeners: [{
name: "render",
type: "custom",
handler: function() {
var t = this.getEl();
this.contentEl = r()(t).call(t, "span.js-part-notice")
}
}, {
name: "click a.icon-remove",
handler: function() {
this.closeNotice()
}
}]
}, {
initialize: function(t) {
var e = this;
e.list = [],
e.currentItem = null,
e.showing = !1,
e.hiding = !1
},
showNotice: function(t) {
var e = this
, n = e.list;
u.isString(t) && (t = {
content: t,
type: "TYPE_NORMAL_STRING_MSG"
});
if (!u.isObject(t) || !o()(c).call(c, t.content))
return;
var i = +(u.id(t.duration) || 6e4)
, r = o()(c).call(c, t.type);
t.type = r,
t.duration = i,
e.removeType(r),
0 === i && e.removeFixed(),
r && e.currentItem && e.currentItem.type === r ? (n.unshift(t),
e.startNotice(!0)) : (n.push(t),
e.startNotice())
},
startNotice: function(t) {
var e = this
, n = e.getEl()
, i = e.list;
if (0 === i.length)
return void e.hideNotice();
if (e.currentItem && !t)
return;
if (e.hiding)
return;
e.showing || (e.resize(),
n.hide().show(750));
window.clearTimeout(e._noticeTimer);
var r = e.currentItem = i.shift();
e.showContent(r.content),
e.showing = !0,
e._noticeTimer = window.setTimeout((function() {
0 === r.duration && !e.existFixed() && i.push(r),
e.currentItem = null,
e.startNotice()
}
), r.duration || 6e4)
},
hideNotice: function() {
var t = this
, e = t.getEl();
if (t.hiding)
return;
t.hiding = !0,
window.clearTimeout(t._noticeTimer),
t.list.length = 0,
e.hide(750, (function() {
t.currentItem = null,
t.showing = !1,
t.hiding = !1,
t.showContent(""),
t.resize(),
t.list.length > 0 && t.startNotice()
}
))
},
closeNotice: function(t) {
var e = this
, n = (t = t || {}).type;
if (t.all)
return void e.hideNotice();
(n = o()(c).call(c, n)) && e.removeType(n),
(!n || e.currentItem && e.currentItem.type === n) && e.startNotice(!0)
},
removeType: function(t) {
var e = this.list;
if (!(t = o()(c).call(c, t)))
return;
for (var n = e.length - 1; n >= 0; n--)
e[n].type === t && l()(e).call(e, n, 1)
},
removeFixed: function() {
for (var t = this.list, e = t.length - 1; e >= 0; e--)
0 === t[e].duration && l()(t).call(t, e, 1)
},
existFixed: function() {
for (var t = this.list, e = 0, n = t.length; e < n; e++)
if (0 === t[e].duration)
return !0;
return !1
},
showContent: function(t) {
(t = o()(c).call(c, t)) && this.contentEl.html(t)
},
resize: function() {
var t = this.rawConfig;
t && t.resize && t.resize()
}
})
},
29701: function(t, e, n) {
"use strict";
var i = n(27946)
, r = n.n(i)
, a = n(75441)
, o = n.n(a)
, s = n(98247)
, l = n.n(s)
, c = n(17203)
, u = n.n(c)
, d = n(8604)
, p = n(31471)
, f = n(13993)
, h = n(70570)
, m = n(9854)
, g = n(70208)
, v = n(49370)
, b = n(11130)
, y = n(33337)
, w = n(54719)
, _ = n(7634)
, x = n(10164)
, C = n(95234)
, k = h.create();
e.Z = k,
h.mix(k, m, {
_template: '<div><div style="font-size:14px;padding:20px;text-align:center;">加载中...</div></div>',
listeners: [{
name: "render",
type: "custom",
handler: function() {
var t = this;
x.getUserNameUpdateTime({
type: "GET",
call: function(e) {
var n = e.data.lastUpdateTime;
t.userLastUpdateTime = "180天内只可修改1次" + (n ? ",</br>最近一次修改:" + w.form(new Date(n), "yyyy-MM-dd") : ""),
t.fetchData((function(e) {
t.forbiddenUpdateName = e.forbiddenUpdateName,
t.initContainer(),
t.initCpn(),
t.popup.fixPosition(),
t.val(e)
}
))
}
})
}
}, {
name: "click .js-submit",
handler: function() {
this.submit()
}
}],
show: function(t) {
var e = new k(t = t || {});
return v.wrap(e, {
title: t.title || "编辑个人信息",
width: 520,
content: e.html(),
hasNoFooter: !0,
close: t.closeCb
}),
e
}
}, {
initContainer: function() {
this.getEl().html('\n <div class="pop-info-complete clearfix">\n <div class="form-group"><div class="control-group js-nickname"><input type="text" placeholder="昵称" /></div></div>\n <div class="form-group"><div class="control-group js-introduction"><input type="text" placeholder="个性签名" /></div></div>\n <div class="form-group js-edu"></div>\n <div class="form-group"><div class="control-group js-educationInfo"><input type="text" placeholder="你的学校"></div></div>\n <div class="form-group js-workTime"></div>\n <div class="form-group js-plan-type"></div>\n <a href="javascript:void(0);" class="btn btn-primary btn-lg js-submit">确定</a>\n </div>')
},
initCpn: function() {
var t = this
, e = t.getEl()
, n = t.cpn = {}
, i = n.nickname = b.transform(r()(e).call(e, ".js-nickname"));
"0" !== t.forbiddenUpdateName ? (i.disabled(),
i.getEl().attr("title", "2" === t.forbiddenUpdateName ? "近期暂不支持修改昵称" : "".concat(t.userLastUpdateTime)).addClass("js-nc-title-tips")) : i.rawConfig.focusTips = "180天内只可修改1次";
n.introduction = b.transform(r()(e).call(e, ".js-introduction")),
n.educationInfo = b.transform(r()(e).call(e, ".js-educationInfo")),
n.edu = new y({
renderTo: r()(e).call(e, ".js-edu"),
text: "最高学历",
options: o()(p).call(p, C.eduNames, (function(t) {
return {
text: t,
value: t
}
}
))
});
var a = (new Date).getFullYear();
n.workTime = new y({
renderTo: r()(e).call(e, ".js-workTime"),
text: "毕业年份",
options: o()(p).call(p, p.range(4, 1980 - a, -1), (function(t) {
return {
text: a + t,
value: a + t
}
}
))
}),
n.planType = new y({
renderTo: r()(e).call(e, ".js-plan-type"),
text: "近期比赛计划",
options: [{
text: "CSP-J入门组",
value: "1"
}, {
text: "CSP-S提高组",
value: "2"
}, {
text: "省选/NOI",
value: "3"
}, {
text: "ACM",
value: "4"
}]
}),
n.nickname && n.nickname.listen("blur", p.bind(t.checkName, t)),
_.initEduSchool({
edu: n.edu,
school: n.educationInfo
})
},
val: function(t) {
var e = this.cpn;
if (0 === arguments.length)
return {
nickname: l()(d).call(d, e.nickname.val()),
introduction: l()(d).call(d, e.introduction.val()),
eduLevel: l()(d).call(d, e.edu.val()),
educationInfo: l()(d).call(d, e.educationInfo.val()),
workTime: l()(d).call(d, e.workTime.val()),
planType: l()(d).call(d, e.planType.val())
};
e.nickname.val(f.decodeHTML(l()(d).call(d, t.nickname))),
e.introduction.val(f.decodeHTML(l()(d).call(d, t.introduction))),
e.educationInfo.val(f.decodeHTML(l()(d).call(d, t.educationInfo))),
e.edu.val(l()(d).call(d, t.eduLevel)),
e.planType.val(l()(d).call(d, t.planType)),
+t.workTime && e.workTime.val(+t.workTime)
},
submit: function() {
var t = this
, e = t.getEl(".js-submit");
t.check((function(n) {
n && !g.mark(e) && u().updateProfileInfo({
body: t.val(),
call: function(e) {
var n = t.rawConfig;
n.callCb && n.callCb(),
t.popup.close()
},
error: function(t) {
v.alert(t.msg)
},
always: function() {
g.clear(e)
}
})
}
))
},
fetchData: function(t) {
var e = this.getEl();
x.getBasicInfo({
type: "GET",
call: function(e) {
var n = e.data
, i = n.basicInfo || {}
, r = i.educationInfo || "";
t && t({
nickname: i.nickname || i.displayname,
introduction: i.introduction,
educationInfo: /填写/.test(r) ? "" : r,
eduLevel: n.additionInfo.eduLevel,
workTime: n.additionInfo.workTime,
planType: p.id((n.acmUser || {}).planType),
forbiddenUpdateName: p.id(n.forbiddenUpdateName) || "0"
})
},
error: function(t) {
e.html('<div style="font-size:14px;padding:20px;text-align:center;">' + t.msg + "</div>")
}
})
},
check: function(t) {
var e = this
, n = e.cpn
, i = e.val()
, r = !0;
i.eduLevel || (n.edu.error(),
r = !1);
i.educationInfo || (n.educationInfo.setErrorTips("学校不能为空"),
r = !1);
i.workTime || (n.workTime.error(),
r = !1);
i.planType || (n.planType.error(),
r = !1);
e.checkName((function(e) {
t && t(r && e)
}
))
},
checkName: function(t) {
var e = this
, n = e.cpn.nickname;
if (!n)
return t && t(!0);
var i = e.nameMap = e.nameMap || {}
, r = l()(d).call(d, n.val())
, a = i[r];
if (!r)
return n.setErrorTips("起一个响亮的名字吧"),
t && t(!1);
if (r.length > 25)
return n.setErrorTips("昵称不能大于25字符"),
t && t(!1);
if (!0 === a)
return n.setErrorTips("昵称已经被占用"),
t && t(!1);
if (!1 === a)
return t && t(!0);
x.checkNickName({
query: {
nickname: r
},
call: function() {
i[r] = !1,
t && t(!0)
},
error: function(e) {
var a = 2 === e.code;
a && n.setErrorTips("昵称已经被占用"),
i[r] = !!a || undefined,
!a && t && t(!0)
}
})
}
})
},
67739: function(t, e, n) {
"use strict";
n.d(e, {
Z: function() {
return x
}
});
var i = n(17986)
, r = n.n(i)
, a = n(75441)
, o = n.n(a)
, s = n(7864)
, l = n.n(s)
, c = n(8604)
, u = n(31471)
, d = n(70570)
, p = n(9854)
, f = d.create()
, h = f;
d.mix(f, p, {
_template: '\n <div class="difficulty">\n <span class="stars-all star-0"></span>\n <span class="item-scores">0.0</span>\n <span class="club-tips"></span>\n </div>',
listeners: [{
name: "render",
type: "custom",
handler: function() {
var t = this;
t.initHover(),
t.rawConfig.starCount && t.val({
starCount: t.rawConfig.starCount
})
}
}]
}, {
initHover: function() {
var t = this
, e = t.getEl(".stars-all")
, n = function(t) {
var n = t.clientX - e.offset().left
, i = Math.max(1, Math.ceil(n / 23));
return i = i < 1 ? 1 : i > 5 ? 5 : i,
i = u.contains([1, 2, 3, 4, 5], i) ? i : 3
};
e.on("mousemove", (function(e) {
var i = n(e);
t.markStar(i),
t.changeScore(i)
}
)),
e.on("mouseleave", (function(e) {
t.markStar(t.starCount),
t.changeScore(t.starCount)
}
)),
e.on("click", (function(e) {
var i = n(e);
t.markStar(i),
t.changeScore(i),
t.starCount = i
}
))
},
val: function(t) {
var e = this;
if (0 === arguments.length)
return {
starCount: e.starCount || 0
};
t = t || {},
e.starCount = t.starCount || 0,
e.markStar(e.starCount),
e.changeScore(e.starCount)
},
getScoreDesc: function(t) {
return (this.rawConfig.scoreDesc || [])[t - 1] || ""
},
markStar: function(t) {
var e = this.getEl(".stars-all");
if (t = (t = +t || 0) < 0 ? 0 : t > 5 ? 5 : t,
!(e = c(e).get(0)))
return;
var n = e.className;
n = n.replace(/star-\d+/g, ""),
n = (n += t > 0 ? " star-" + t : "").replace(/\s+/g, " "),
e.className = n
},
changeScore: function(t, e) {
var n = this
, i = n.getScoreDesc(t);
t = t || 0,
n.getEl("span.item-scores").html(t + ".0"),
n.getEl("span.club-tips").html(i),
e && (n.starCount = t)
}
});
var m = n(31471)
, g = n(70570)
, v = n(9854)
, b = n(13993)
, y = n(49370)
, w = n(75304)
, _ = g.create()
, x = _;
function C(t, e, n) {
var i = this;
if (i.rawConfig && i.rawConfig.tagRate)
return i.rawConfig.tagRate.handleTag = r(i.rawConfig.tagRate.allTagArray),
i.rawConfig.tagRate.handleCommonTag = r(i.rawConfig.tagRate.recommendTags),
i.tagData = i.rawConfig.tagRate,
void (e && e(i.tagData));
function r(t) {
return o()(m).call(m, t, (function(t) {
return {
text: t.name,
value: m.id(t.id)
}
}
)) || []
}
l().getTagRate({
query: {
problemId: t.problemId,
batch: t.batch,
submissionId: t.submissionId,
contestId: t.contestId
},
call: function(t) {
t.data.handleTag = r(t.data.allTagArray),
t.data.handleCommonTag = r(t.data.recommendTags),
i.tagData = t.data,
e && e(t.data)
},
error: function(t) {
n ? n() : i.getEl().html('<div style="text-align:center;font-size:14px;">' + t.msg + "</div>")
}
})
}
g.mix(_, v, {
_template: '<div class="pop-challenge"></div>',
listeners: [{
name: "render",
type: "custom",
handler: function() {
var t = this;
t.getTagRate(t.rawConfig, (function(e) {
t.initContent(e),
t.initCpns(e),
!e.nextProblemId && t.popup && t.popup.okBtn.html("确定"),
t.popup && t.popup.fixPosition()
}
))
}
}],
show: function(t) {
var e = new _(t = t || {})
, n = y.wrap(e, {
title: "恭喜通过本题",
width: 630,
content: e.html(),
cancelTxt: "关闭",
okTxt: "下一题",
ok: function() {
return !e.check() || (e.submit((function() {
if (!e.tagData.nextProblemId)
return e.fire("end"),
void n.close();
e.fire("nextProblem", e.tagData.nextProblemId),
n.close()
}
)),
!0)
}
});
return e
},
ifShow: function(t) {
this.getTagRate(t, (function(e) {
t.call && t.call(e.show, e)
}
), (function() {
t.call && t.call(!1)
}
))
},
getTagRate: C
}, {
initContent: function(t) {
var e = this.rawConfig
, n = b.execTpl('\n <img src="//static.nowcoder.com/fe/style/images/common/res/tips/7.png" alt="图片">\n <div class="pop-challenge-tips">恭喜你AC本题!</div>\n <div class="pop-evaluate-topic">\n <p>评价一下题目吧~</p>\n <div class="pop-evaluate-detail" style="padding-bottom:10px;">\n <div class="form-group">\n <label class="control-label">题目</label>\n <div class="control-group">\n <a href="/acm/problem/#{problemId}" target="_blank" class="link-green">#{problemName}</a>\n </div>\n </div>\n <div class="form-group">\n <label class="control-label">题目难度</label>\n <div class="control-group js-difficulty"></div>\n </div>\n <div class="form-group">\n <label class="control-label">题目知识点</label>\n <div class="control-group js-tag"></div>\n </div>\n </div>\n </div>', {
problemName: t.problemName,
contestId: e.contestId,
problemId: e.problemId
});
this.getEl().html(n)
},
initCpns: function(t) {
var e = this;
e.starCpn = new h({
renderTo: e.getEl(".js-difficulty"),
scoreDesc: ["太简单了", "比较简单", "不难", "难度适中", "特别难"]
}),
e.tagInput = new w({
renderTo: e.getEl(".js-tag"),
noCustom: !0,
width: 300,
common: t.handleCommonTag,
attach: {
verReverse: !0
},
placeholder: "不清楚可以不填写哦~",
getSuggest: function(e, n) {
var i = t.handleTag;
if (e) {
var a = b.searchRegExp(e);
i = r()(m).call(m, i, (function(t) {
return a.exec(t.text)
}
))
}
n(i)
}
}),
e.tagInput.getEl(".tags-input-wrap").css("background", "#fff").css("width", "278px"),
e.tagInput.getEl(".tags-input-cont").css("line-height", "25px"),
e.tagInput.getEl("input").css("height", "12px"),
e.tagInput.getEl(".tag-label").css("margin-top", "5px")
},
val: function(t) {
var e = this;
if (0 === arguments.length)
return {
tags: e.tagInput.val(),
difficulty: e.starCpn.val().starCount
};
t = t || {},
e.tagInput.val((t.tags || "").split(",")),
e.starCpn.val(+t.difficulty || 0)
},
check: function() {
if (!this.val().difficulty)
return y.alert("请选择题目难度"),
!1;
return !0
},
submit: function(t) {
var e = this.rawConfig
, n = this.val();
l().makeTagRate({
type: "POST",
body: {
problemId: e.problemId,
tags: (n.tags || []).join(","),
difficulty: n.difficulty,
contestId: e.contestId
},
call: function(e) {
t && t()
},
error: function(t) {
y.alert(t.msg)
}
})
},
getTagRate: C
})
},
87148: function(t, e, n) {
"use strict";
var i = n(75533)
, r = n.n(i)
, a = n(27946)
, o = n.n(a)
, s = n(75441)
, l = n.n(s)
, c = n(98247)
, u = n.n(c)
, d = n(50417)
, p = n.n(d)
, f = n(8604)
, h = n(31471)
, m = n(70570)
, g = n(9854)
, v = n(49370)
, b = n(33337)
, y = m.create();
e.Z = y,
m.mix(y, g, {
_template: '<div class="pop-signup clearfix"><div style="padding:20px;text-align:center;font-size:14px;">正在加载中,请稍等...</div></div>',
listeners: [{
name: "render",
type: "custom",
handler: function() {
var t = this
, e = t.rawConfig;
t.fetchList((function(n) {
t.teamList = n,
t.initContainer(),
t.initCpn(),
t.popup.fixPosition(),
e.tid && (t.teamSelect.val(e.tid),
t.select("team"))
}
))
}
}, {
name: "click .js-signup-item",
handler: function(t) {
var e = f(t.currentTarget)
, n = e.hasClass("selected");
this.getEl(".js-signup-item.selected").removeClass("selected"),
!n && e.addClass("selected")
}
}, {
name: "click .js-submit",
handler: function(t) {
var e = this
, n = e.rawConfig
, i = e.val();
if (!i.id)
return v.alert("请选择报名方式");
i.id && n.call && n.call(i),
e.popup.close()
}
}],
show: function(t) {
var e = new y(t = t || {});
return v.wrap(e, {
title: "报名方式选择",
width: 480,
content: e.html(),
hasNoFooter: !0
}),
e
}
}, {
initialize: function(t) {
var e = this;
e.isFree = t.isFree,
e.contestId = t.contestId,
e.onlyTeam = t.onlyTeam
},
initContainer: function() {
var t, e, n, i, a = this;
a.getEl().html(r()(t = r()(e = r()(n = r()(i = '\n <p class="pop-signup-tips">本场比赛支持团队报名,<a href="/acm/contest/'.concat(a.contestId, "?t=")).call(i, (new Date).getTime(), '" class="link-green">点此查看比赛详情</a></p>\n <div>\n ')).call(n, a.onlyTeam ? "" : '<a href="javascript:void(0);" class="pop-signup-item pop-signup-single selected js-signup-item" data-type="user" style="'.concat(a.onlyTeam ? "display: none" : "", '">\n <i class="icon-user"></i><span>个人参赛</span><i class="icon-nc-check"></i>\n </a>'), '\n <div class="pop-signup-item ')).call(e, a.onlyTeam ? "selected" : "", ' js-signup-item" data-type="team">\n <i class="icon-nc-member"></i><span>团队参赛</span>\n <div class="btn-group js-team-list"></div>\n <i class="icon-nc-check"></i>\n </div>\n <div class="pop-signup-item-tips">*本场比赛开始后,团队成员不可变更</div>\n </div>\n <div class="submit-btnbox">\n <a class="btn btn-primary js-submit" href="javascript:void(0);">')).call(t, a.isFree ? "确定" : "去支付", "</a>\n </div>"))
},
initCpn: function() {
var t = this
, e = t.getEl();
t.teamSelect = new b({
renderTo: o()(e).call(e, ".js-team-list"),
renderBy: "replaceWith",
text: "请选择团队",
size: "small",
options: l()(h).call(h, t.teamList, (function(t) {
return {
text: t.name,
value: t.id
}
}
))
}),
t.teamSelect.listen("change", (function() {
return t.select("team")
}
));
var n = t.teamSelect.attachSel;
n.noneEl.show(),
n.noneEl.html('<a href="/acm/team/manager/create-team-index" target="_blank" class="link-green">+创建新团队</a>')
},
val: function() {
var t = this
, e = t.rawConfig
, n = t.getEl(".js-signup-item.selected")
, i = u()(f).call(f, n.attr("data-type"));
return {
isTeam: "user" !== i,
id: "user" === i ? e.uid : t.teamSelect.val()
}
},
select: function(t, e) {
var n = this.getEl();
e = !1 !== e,
o()(n).call(n, ".js-signup-item.selected").removeClass("selected"),
e && o()(n).call(n, ".js-signup-item[data-type=" + t + "]").addClass("selected")
},
fetchList: function(t) {
var e = this.getEl();
p().getMyTeamList({
type: "GET",
call: function(e) {
return t && t(e.data)
},
error: function(t) {
return e.html('<div style="padding:20px;text-align:center;">出现错误,请重试</div>')
}
})
}
})
},
981: function(t, e, n) {
"use strict";
var i = n(13349)
, r = n.n(i)
, a = n(68991)
, o = n.n(a)
, s = n(17986)
, l = n.n(s)
, c = n(13611)
, u = n.n(c)
, d = n(99734)
, p = n.n(d)
, f = n(76977)
, h = n.n(f)
, m = n(89463)
, g = n.n(m)
, v = n(99221)
, b = n.n(v)
, y = n(11817)
, w = n(75441)
, _ = n.n(w);
function x(t, e) {
var n = r()(t);
if (o()) {
var i = o()(t);
e && (i = l()(i).call(i, (function(e) {
return u()(t, e).enumerable
}
))),
n.push.apply(n, i)
}
return n
}
function C(t) {
for (var e = 1; e < arguments.length; e++) {
var n, i, r = null != arguments[e] ? arguments[e] : {};
e % 2 ? p()(n = x(Object(r), !0)).call(n, (function(e) {
(0,
y["default"])(t, e, r[e])
}
)) : h() ? g()(t, h()(r)) : p()(i = x(Object(r))).call(i, (function(e) {
b()(t, e, u()(r, e))
}
))
}
return t
}
var k = n(31471)
, S = n(70570)
, T = n(9854)
, E = n(71295)
, I = n(6813)
, L = n(37039)
, j = n(38759)
, M = n(49370)
, $ = n(65651)
, F = S.create();
e.Z = F,
S.mix(F, T, {
_showTips: [],
_template: '<div class="layer-share-main">#{content}</div>',
listeners: [{
name: "render",
type: "custom",
handler: function() {
this.initShare()
}
}, {
name: "click .js-share-wx",
handler: function(t) {
var e = this.rawConfig
, n = e.wxImg && this.imgUrl || e.wxLink || e.link || window.location.href;
$.wx(I.rqUrl(n))
}
}],
show: function(t) {
if (!t.target || 0 === t.target.length)
return;
var e = new F(t)
, n = j.wrap(e, {
target: t.target,
content: e.html(),
theme: !0,
autoWidth: !0,
attach: C({
zIndex: 1001
}, t.attach)
});
return t.target.on("click", (function() {
var e = n.getEl().is(":hidden");
t.target.trigger(e ? "mouseenter" : "mouseleave")
}
)),
n.getEl().addClass("layer-share-tips"),
n.getEl(".tooltip-inner").addClass("layer-share-wrapper").css("position", "initial"),
e
}
}, {
initShare: function(t) {
var e = this
, n = e.rawConfig
, i = n.link || window.location.href;
L.bind({
el: e.getEl('.js-share-link[data-share="weibo"]'),
title: n.title,
desc: n.desc,
link: i,
image: t,
searchPic: "false",
account: "牛客网"
}),
L.bind({
el: e.getEl('.js-share-link[data-share="fqq"]'),
title: (n.title || "") + (n.title ? " " : "") + (n.desc || "") + " 来自@牛客网",
link: i,
image: t,
account: "牛客网"
}),
E.copy({
el: e.getEl(".js-copy-link"),
content: i,
call: function() {
return M.tips("复制成功!")
},
error: function() {
return M.alert("复制失败!")
}
}),
n.noTxt && e.getEl(".js-txt").hide()
},
_getData: function(t) {
var e = t.btn || ["wx", "qq", "weibo", "link"]
, n = {
wx: '<div class="layer-share-item js-share-wx" data-to="1"><i class="ico-nc-wechat"></i><p class="js-txt">微信</p></div>',
qq: '<div class="layer-share-item js-share-link" data-share="fqq" data-to="2"><i class="ico-nc-qq"></i><p class="js-txt">QQ</p></div>',
weibo: '<div class="layer-share-item js-share-link" data-share="weibo" data-to="3"><i class="ico-nc-weibo"></i><p class="js-txt">微博</p></div>',
link: '<div class="layer-share-item js-copy-link" data-to="4"><i class="ico-nc-link" data-type="4"></i><p class="js-txt">复制链接</p></div>'
};
return {
content: _()(k).call(k, e, (function(t) {
return n[t] || ""
}
)).join("")
}
}
})
},
6183: function(t, e, n) {
"use strict";
var i = n(31050)
, r = n(13349)
, a = n.n(r)
, o = n(68991)
, s = n.n(o)
, l = n(17986)
, c = n.n(l)
, u = n(13611)
, d = n.n(u)
, p = n(99734)
, f = n.n(p)
, h = n(76977)
, m = n.n(h)
, g = n(89463)
, v = n.n(g)
, b = n(99221)
, y = n.n(b)
, w = n(11817)
, _ = n(75533)
, x = n.n(_)
, C = n(13984)
, k = n(981)
, S = n(48568);
function T(t, e) {
var n = a()(t);
if (s()) {
var i = s()(t);
e && (i = c()(i).call(i, (function(e) {
return d()(t, e).enumerable
}
))),
n.push.apply(n, i)
}
return n
}
function E(t) {
for (var e = 1; e < arguments.length; e++) {
var n, i, r = null != arguments[e] ? arguments[e] : {};
e % 2 ? f()(n = T(Object(r), !0)).call(n, (function(e) {
(0,
w["default"])(t, e, r[e])
}
)) : m() ? v()(t, m()(r)) : f()(i = T(Object(r))).call(i, (function(e) {
y()(t, e, d()(r, e))
}
))
}
return t
}
var I = n(49548)
, L = n(8604)
, j = n(54719);
var M = {
mounted: function() {
var t = this;
t.$nextTick((function() {
return t.initShare()
}
))
},
methods: {
initShare: function() {
var t, e, n, i, r, a = this, o = (window.location.href || "").split("#")[0];
k.Z.show({
target: L(a.$refs.share),
btn: ["link"],
link: x()(t = x()(e = x()(n = x()(i = x()(r = "快来参加“".concat(a.name, "”~ 比赛时间:")).call(r, a.formTime(a.startTime), " - ")).call(i, a.formTime(a.endTime), ",比赛时长:")).call(n, a.duration, ",比赛地址:")).call(e, o, "。")).call(t, a.settingInfo.needPassword ? "【邀请码:".concat(a.password, "】") : "")
})
},
formTime: function(t) {
return j.form(new Date(t), "yyyy-MM-dd HH:mm:ss")
},
actionCreateReplay: function() {
var t = this;
if (!I.isLogin())
return;
var e = t.settingInfo || {};
S.Z.createReadonly({
id: t.id,
contestName: t.name,
price: e.price,
needCharge: e.needCharge,
isSignUp: t.isSignUp,
isTeamSignUp: t.isTeamSignUp
})
}
},
computed: E(E({
duration: function() {
var t, e, n, i = j.second2data((this.endTime - this.startTime) / 1e3);
return x()(t = x()(e = x()(n = "".concat(i.day ? "".concat(i.day, "天") : "")).call(n, i.hour ? "".concat(i.hour, "小时") : "")).call(e, i.min ? "".concat(i.min, "分钟") : "")).call(t, i.second ? "".concat(i.second, "秒") : "")
},
style: function() {
return this.isEvaluate || this.isReplay ? "background-image:url(//static.nowcoder.com/images/res/banner/platForm/3.jpg);background-color:#080508;" : "background-image:url(//uploadfiles.nowcoder.com/images/20170717/56_1500258024335_B16F33991AAD19B106ACB5FC96798E75);background-color:#070a0f;"
},
isRating: function() {
var t = this.settingInfo;
return "Waiting" === t.ratingStatus || "Finished" === t.ratingStatus
}
}, (0,
C.mapState)({
id: "id",
isSignUp: "isSignUp",
isTeamSignUp: "isTeamSignUp",
hideSignCount: "hideSignCount",
replayUrl: "replayUrl",
name: "name",
password: "password",
startTime: "startTime",
endTime: "endTime",
signUpCount: "signUpCount",
isManager: "isManager",
isProblemOriginal: "isProblemOriginal",
isEvaluate: "isEvaluate",
isOI: "isOI",
isIOI: "isIOI",
isReplay: "isReplay",
settingInfo: "settingInfo"
})), (0,
C.mapGetters)({
isStart: "isStart",
isFinished: "isFinished",
isSignUpStart: "isSignUpStart",
isSignUpFinished: "isSignUpFinished",
isFilledPassword: "isFilledPassword"
}))
}
, $ = n(51900)
, F = (0,
$.Z)(M, (function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("div", {
staticClass: "topic-banner-box",
style: t.style
}, [n("div", {
staticClass: "topic-banner"
}, [t._m(0), t._v(" "), !t.settingInfo.needPassword || t.isManager ? n("a", {
ref: "share",
staticClass: "layer-share-oprt",
attrs: {
href: "javascript:void(0);"
}
}, [n("i", {
staticClass: "icon-nc-share3"
}), t._v("分享比赛")]) : t._e(), t._v(" "), n("h1", [t.settingInfo.needPassword ? n("i", {
staticClass: "icon-lock js-nc-title-tips",
attrs: {
title: "加密比赛,需输入邀请码即可报名"
}
}) : t._e(), t._v(" "), n("span", {
domProps: {
innerHTML: t._s(t.name)
}
}), t._v(" "), t.isProblemOriginal ? n("span", {
staticClass: "btn btn-primary btn-xxs",
staticStyle: {
"vertical-align": "middle"
}
}, [t._v("原创")]) : t._e(), t._v(" "), t.isRating ? n("span", {
staticClass: "tag-rating js-nc-title-tips",
staticStyle: {
"font-size": "12px"
},
attrs: {
title: "Rating赛奖品更加丰厚"
}
}, [n("i", {
staticStyle: {
margin: "0"
}
}, [t._v("¥")]), t._v(" "), n("span", [t._v("Rated")])]) : t._e(), t._v(" "), t.isOI ? n("span", {
staticClass: "match-tag js-nc-title-tips",
attrs: {
title: "在OI赛制下,所有选手的提交都将在比赛结束后统一评测,并按照实际得分总和排名并公布"
}
}, [t._v("OI")]) : t.isIOI ? n("span", {
staticClass: "match-tag js-nc-title-tips",
attrs: {
title: "在IOI赛制下,所有选手的提交都将在比赛进行中实时评测,并按照实际得分总和排名并公布"
}
}, [t._v("IOI")]) : t._e(), t._v(" "), t.isReplay ? n("span", {
staticClass: "match-tag"
}, [t._v("重现赛")]) : t._e(), t._v(" "), t.isFinished ? n("span", {
staticClass: "match-status $statusSmCls match-end-tag"
}, [t._v("比赛结束")]) : t.isStart ? n("span", {
staticClass: "match-status $statusSmCls"
}, [t._v("比赛中")]) : t.isSignUpFinished ? n("span", {
staticClass: "match-status $statusSmCls match-signup-end"
}, [t._v("报名结束")]) : t.isSignUpStart ? n("span", {
staticClass: "match-status $statusSmCls match-signup"
}, [t._v("报名中")]) : n("span", {
staticClass: "match-status $statusSmCls match-not-signup"
}, [t._v("报名未开始")])]), t._v(" "), n("p", {
staticClass: "match-time"
}, [n("span", [t._v(t._s(t.formTime(t.startTime)) + " 至 " + t._s(t.formTime(t.endTime)))]), t._v(" "), n("br"), t._v(" "), n("span", [t._v("时长: " + t._s(t.duration))])]), t._v(" "), t.isRating && t.settingInfo.needRatingUpperLimit ? n("p", {
staticClass: "match-time"
}, [t._v("不计Rating的范围:Rating>" + t._s(t.settingInfo.ratingUpperLimit))]) : t._e(), t._v(" "), t.isReplay || t.hideSignCount ? t._e() : n("p", [t._v("已有" + t._s(t.signUpCount) + "人" + t._s(t.isEvaluate ? "测评" : "报名"))]), t._v(" "), t.isReplay || !t.isFinished || t.settingInfo.needPassword ? t._e() : [t.replayUrl ? n("a", {
staticClass: "btn btn-primary btn-xs nc-req-auth mtb-2",
staticStyle: {
width: "auto",
padding: "5px"
},
attrs: {
href: t.replayUrl,
target: "_blank"
}
}, [t._v("继续重现赛")]) : n("a", {
staticClass: "btn btn-primary btn-xs nc-req-auth mtb-2",
staticStyle: {
width: "auto",
padding: "5px"
},
attrs: {
href: "javascript:void(0);"
},
on: {
click: t.actionCreateReplay
}
}, [t._v("创建重现赛")])], t._v(" "), t._e(), t._v(" "), t._e()], 2)])
}
), [function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("ul", {
staticClass: "match-menu"
}, [n("li", [n("a", {
attrs: {
href: "/acm/contest/vip-index"
}
}, [t._v("赛事首页")])]), t._v(" "), n("li", [t._v("/")]), t._v(" "), n("li", [n("a", {
attrs: {
href: "javascript:void(0);"
}
}, [t._v("当前比赛")])])])
}
], !1, null, null, null).exports
, P = n(94954)
, O = n(9992)
, N = n(71017)
, D = n.n(N)
, A = n(54719)
, z = n(40748)
, H = {
password: function(t) {
S.Z.password({
id: D().state.id,
call: t
})
},
signup: function(t) {
S.Z.signup({
id: D().state.id,
isAdmin: D().state.isManager,
call: function(e) {
D().commit("updateSignUp", {
isSignUp: !0,
isTeamSignUp: e.isTeam
}),
t && t()
},
finish: function() {
return window.location.reload()
}
})
},
second: function(t) {
if ((t = +t || 0) <= 0)
return "";
var e = A.second2data(Math.round(t / 1e3));
return [z.form(24 * e.day + e.hour), z.form(e.min), z.form(e.second)].join(":")
},
formNum: function(t) {
if (!t)
return t;
var e = (+t || 0).toFixed(2);
return t === Math.floor(+e) ? t : e
},
minute: function(t) {
if ((t = +t || 0) <= 0)
return "";
var e = A.second2data(Math.round(t / 1e3));
return z.form(e.min + 60 * (24 * e.day + e.hour))
}
};
var R = n(17203)
, B = n.n(R)
, U = n(87148)
, q = n(84696);
function V(t, e) {
var n = a()(t);
if (s()) {
var i = s()(t);
e && (i = c()(i).call(i, (function(e) {
return d()(t, e).enumerable
}
))),
n.push.apply(n, i)
}
return n
}
function W(t) {
for (var e = 1; e < arguments.length; e++) {
var n, i, r = null != arguments[e] ? arguments[e] : {};
e % 2 ? f()(n = V(Object(r), !0)).call(n, (function(e) {
(0,
w["default"])(t, e, r[e])
}
)) : m() ? v()(t, m()(r)) : f()(i = V(Object(r))).call(i, (function(e) {
y()(t, e, d()(r, e))
}
))
}
return t
}
var G = n(54719)
, Z = n(40748)
, J = n(49370)
, K = n(49548)
, Q = {
methods: W({
formNum: function(t) {
return Z.form(t)
},
actionSignUp: function() {
H.signup()
},
actionEditType: function() {
var t = this;
U.Z.show({
contestId: t.id,
uid: K.getUid(),
isFree: !0,
tid: t.teamId,
call: function(e) {
var n = e.isTeam;
B().signUpSwitch({
body: {
contestId: t.id,
isTeam: n,
teamId: n ? e.id : undefined
},
call: function() {
return J.tips("操作成功", (function() {
return window.location.reload()
}
))
},
error: function(t) {
return J.alert(t.msg)
}
})
}
})
},
actionEditInfo: function() {
var t = q.Z.show({
propsData: {
id: this.id,
signUpFields: this.settingInfo.signUpFields,
needSubmit: !0
}
});
t.$on("submit", (function(t) {
return J.tips("操作成功")
}
))
},
actionCancel: function() {
var t = this
, e = t.isTeamSignUp
, n = t.isTeamAdmin;
function i() {
B().signUpCancel({
body: {
contestId: t.id
},
call: function() {
return t.updateSignUp({
isSignUp: !1,
isTeamSignUp: !1
})
},
error: function(t) {
return J.alert(t.msg)
}
})
}
t.settingInfo.needCharge ? J.alert("该比赛不支持退款和取消") : e ? n ? J.confirm("该团队的报名将取消,是否确定这么操作?转换后,其他成员需重新报名。", i) : J.alert("该操作将更改所有成员报名状态,仅队长可执行此操作。") : J.confirm("确定取消报名?", i)
}
}, (0,
C.mapMutations)({
updateSignUp: "updateSignUp"
})),
computed: W(W({
leftTime: function() {
return G.second2data(Math.round(this.countDownTime / 1e3))
},
isCanSignUp: function() {
var t = this;
return true
},
isCanEditType: function() {
var t = this.settingInfo;
return t.needCharge && t.allowTeamSignUp
}
}, (0,
C.mapState)({
id: "id",
tagId: "tagId",
teamId: "teamId",
teamName: "teamName",
isManager: "isManager",
isSignUp: "isSignUp",
isTeamSignUp: "isTeamSignUp",
isTeamAdmin: "isTeamAdmin",
settingInfo: "settingInfo",
description: "description"
})), (0,
C.mapGetters)({
countDownTime: "countDownTime",
isSignUpStart: "isSignUpStart",
isSignUpFinished: "isSignUpFinished"
}))
};
var Y = Q
, X = (0,
$.Z)(Y, (function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("div", {
staticClass: "module-box"
}, [n("div", {
staticClass: "match-manager"
}, [n("div", {
staticClass: "match-entry-oprt"
}, [t.isSignUp ? n("div", {
staticClass: "sign-up-oprt"
}, [t.isCanEditType || t.settingInfo.needSignUpField ? n("div", {
staticClass: "sign-up-oprt"
}, [t._m(0), t._v(" "), n("ul", {
staticClass: "item-oprt"
}, [t.isCanEditType ? n("li", {
on: {
click: t.actionEditType
}
}, [n("i", {
staticClass: "icon-nc-edit2"
}), t._v("修改报名类型")]) : t._e(), t._v(" "), t.settingInfo.needSignUpField ? n("li", {
on: {
click: t.actionEditInfo
}
}, [n("i", {
staticClass: "icon-nc-edit2"
}), t._v("修改基本信息")]) : t._e(), t._v(" "), n("li", {
on: {
click: t.actionCancel
}
}, [n("i", {
staticClass: "icon-minus-sign"
}), t._v("取消报名")])])]) : n("a", {
staticClass: "icon-minus-sign",
attrs: {
href: "javascript:void(0);"
},
on: {
click: t.actionCancel
}
}, [t._v("取消报名")])]) : t._e(), t._v(" "), n("a", {
staticClass: "discuss-enter",
attrs: {
href: "/discuss/tag/" + t.tagId + "?type=101",
target: "_blank"
}
}, [t._v("由此进入本场讨论")])]), t._v(" "), t.isManager ? [n("a", {
staticClass: "link-green",
staticStyle: {
"margin-left": "20px"
},
attrs: {
href: t.settingInfo.signUpUrl,
target: t.settingInfo.signUpUrl ? "_blank" : "_self"
},
on: {
click: t.actionSignUp
}
}, [n("i", {
staticClass: "icon-user"
}), t._v("管理比赛")])] : t._e()], 2), t._v(" "), n("div", {
staticClass: "match-count-down"
}, [n("div", {
staticClass: "count-down-title"
}, [t._v("距比赛开始还有")]), t._v(" "), n("div", {
staticClass: "count-down-main"
}, [t.leftTime.day > 0 ? n("div", {
staticClass: "count-down-item"
}, [n("div", {
staticClass: "count-down-num"
}, [t._v(t._s(t.formNum(t.leftTime.day)))]), t._v(" "), n("div", {
staticClass: "count-down-label"
}, [t._v("天")])]) : t._e(), t._v(" "), n("div", {
staticClass: "count-down-item"
}, [n("div", {
staticClass: "count-down-num"
}, [t._v(t._s(t.formNum(t.leftTime.hour)))]), t._v(" "), n("div", {
staticClass: "count-down-label"
}, [t._v("小时")])]), t._v(" "), n("div", {
staticClass: "count-down-item"
}, [n("div", {
staticClass: "count-down-num"
}, [t._v(t._s(t.formNum(t.leftTime.min)))]), t._v(" "), n("div", {
staticClass: "count-down-label"
}, [t._v("分钟")])]), t._v(" "), n("div", {
staticClass: "count-down-item"
}, [n("div", {
staticClass: "count-down-num"
}, [t._v(t._s(t.formNum(t.leftTime.second)))]), t._v(" "), n("div", {
staticClass: "count-down-label"
}, [t._v("秒")])])])]), t._v(" "), t.isCanSignUp || t.isSignUp ? n("div", {
staticClass: "match-btn-wrap"
}, [t.isCanSignUp ? n("a", {
staticClass: "btn btn-primary",
attrs: {
href: t.settingInfo.signUpUrl || "javascript:void(0);",
target: t.settingInfo.signUpUrl ? "_blank" : "_self"
},
on: {
click: t.actionSignUp
}
}, [t._v("点此报名")]) : t.isSignUp ? [t.isTeamSignUp ? n("a", {
staticClass: "btn btn-default",
attrs: {
href: "/acm/team/view?id=" + t.teamId,
target: "_blank"
}
}, [n("i", {
staticClass: "icon-nc-member"
}), t._v("团队“"), n("span", {
staticClass: "name",
domProps: {
innerHTML: t._s(t.teamName)
}
}), t._v("”已报名")]) : n("a", {
staticClass: "btn btn-default",
attrs: {
href: "javascript:void(0);"
}
}, [t._v("已报名")])] : t._e()], 2) : t._e(), t._v(" "), t.description ? n("div", {
staticClass: "match-rule nc-post-content"
}, [n("div", [t._v("\n 比赛说明:\n "), n("div", {
staticStyle: {
"margin-top": "20px"
},
domProps: {
innerHTML: t._s(t.description)
}
})])]) : t._e()])
}
), [function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("a", {
staticClass: "icon-nc-edit2",
attrs: {
href: "javascript:void(0);"
}
}, [t._v("修改信息 "), n("i", {
staticClass: "icon-angle-up"
}), t._v(" "), n("i", {
staticClass: "icon-angle-down"
})])
}
], !1, null, null, null).exports;
function tt(t, e) {
var n = a()(t);
if (s()) {
var i = s()(t);
e && (i = c()(i).call(i, (function(e) {
return d()(t, e).enumerable
}
))),
n.push.apply(n, i)
}
return n
}
function et(t) {
for (var e = 1; e < arguments.length; e++) {
var n, i, r = null != arguments[e] ? arguments[e] : {};
e % 2 ? f()(n = tt(Object(r), !0)).call(n, (function(e) {
(0,
w["default"])(t, e, r[e])
}
)) : m() ? v()(t, m()(r)) : f()(i = tt(Object(r))).call(i, (function(e) {
y()(t, e, d()(r, e))
}
))
}
return t
}
var nt = n(54719)
, it = n(40748);
var rt = {
methods: {
formNum: function(t) {
return it.form(t)
},
actionPassword: function() {
H.password((function() {
return window.location.reload()
}
))
},
actionSignUp: function() {
H.signup()
}
},
computed: et(et({
leftTime: function() {
return nt.second2data(Math.round(this.endCountDownTime / 1e3))
},
isCanSignUp: function() {
var t = this;
return true
}
}, (0,
C.mapState)({
isSignUp: "isSignUp",
settingInfo: "settingInfo"
})), (0,
C.mapGetters)({
endCountDownTime: "endCountDownTime",
isFinished: "isFinished",
isSignUpStart: "isSignUpStart",
isSignUpFinished: "isSignUpFinished"
}))
}
, at = (0,
$.Z)(rt, (function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("div", {
staticClass: "module-box"
}, [t.isFinished ? [n("div", {
staticClass: "match-count-down"
}, [n("div", {
staticClass: "count-down-title"
}, [t._v("比赛已结束")]), t._v(" "), n("div", {
staticClass: "match-btn-wrap"
}, [n("a", {
staticClass: "btn btn-primary",
attrs: {
href: "javascript:void(0);"
},
on: {
click: t.actionPassword
}
}, [t._v("点此查看比赛详情")])])])] : [n("div", {
staticClass: "match-count-down"
}, [n("div", {
staticClass: "count-down-title"
}, [t._v("距比赛结束还有")]), t._v(" "), n("div", {
staticClass: "count-down-main"
}, [t.leftTime.day > 0 ? n("div", {
staticClass: "count-down-item"
}, [n("div", {
staticClass: "count-down-num"
}, [t._v(t._s(t.formNum(t.leftTime.day)))]), t._v(" "), n("div", {
staticClass: "count-down-label"
}, [t._v("天")])]) : t._e(), t._v(" "), n("div", {
staticClass: "count-down-item"
}, [n("div", {
staticClass: "count-down-num"
}, [t._v(t._s(t.formNum(t.leftTime.hour)))]), t._v(" "), n("div", {
staticClass: "count-down-label"
}, [t._v("小时")])]), t._v(" "), n("div", {
staticClass: "count-down-item"
}, [n("div", {
staticClass: "count-down-num"
}, [t._v(t._s(t.formNum(t.leftTime.min)))]), t._v(" "), n("div", {
staticClass: "count-down-label"
}, [t._v("分钟")])]), t._v(" "), n("div", {
staticClass: "count-down-item"
}, [n("div", {
staticClass: "count-down-num"
}, [t._v(t._s(t.formNum(t.leftTime.second)))]), t._v(" "), n("div", {
staticClass: "count-down-label"
}, [t._v("秒")])])])]), t._v(" "), t.isCanSignUp ? n("div", {
staticClass: "match-btn-wrap"
}, [n("a", {
staticClass: "btn btn-primary",
attrs: {
href: t.settingInfo.signUpUrl || "javascript:void(0);",
target: t.settingInfo.signUpUrl ? "_blank" : "_self"
},
on: {
click: t.actionSignUp
}
}, [t._v("点此报名")])]) : t._e()]], 2)
}
), [], !1, null, null, null).exports;
function ot(t, e) {
var n = a()(t);
if (s()) {
var i = s()(t);
e && (i = c()(i).call(i, (function(e) {
return d()(t, e).enumerable
}
))),
n.push.apply(n, i)
}
return n
}
var st = {
computed: function(t) {
for (var e = 1; e < arguments.length; e++) {
var n, i, r = null != arguments[e] ? arguments[e] : {};
e % 2 ? f()(n = ot(Object(r), !0)).call(n, (function(e) {
(0,
w["default"])(t, e, r[e])
}
)) : m() ? v()(t, m()(r)) : f()(i = ot(Object(r))).call(i, (function(e) {
y()(t, e, d()(r, e))
}
))
}
return t
}({}, (0,
C.mapState)({
description: "description"
}))
}
, lt = st
, ct = (0,
$.Z)(lt, (function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("div", {
staticClass: "module-box"
}, [n("div", {
staticClass: "match-rule nc-post-content js-nc-pop-image",
domProps: {
innerHTML: t._s(t.description || "暂无比赛说明")
}
})])
}
), [], !1, null, null, null).exports
, ut = n(95322)
, dt = n.n(ut)
, pt = n(98247)
, ft = n.n(pt)
, ht = n(13205)
, mt = n(83451)
, gt = n(7864)
, vt = n.n(gt)
, bt = n(67739)
, yt = {}
, wt = (0,
$.Z)(yt, (function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("div", {
staticClass: "empty-tip-mod"
}, [n("img", {
attrs: {
src: "//uploadfiles.nowcoder.com/images/20181030/56_1540880133017_3DF6AFFF1263007A534E6E67B1FE11D1"
}
}), t._v(" "), n("p", [t._t("default", (function() {
return [t._v("暂无数据")]
}
))], 2)])
}
), [], !1, null, null, null).exports;
function _t(t, e) {
var n = a()(t);
if (s()) {
var i = s()(t);
e && (i = c()(i).call(i, (function(e) {
return d()(t, e).enumerable
}
))),
n.push.apply(n, i)
}
return n
}
function xt(t) {
for (var e = 1; e < arguments.length; e++) {
var n, i, r = null != arguments[e] ? arguments[e] : {};
e % 2 ? f()(n = _t(Object(r), !0)).call(n, (function(e) {
(0,
w["default"])(t, e, r[e])
}
)) : m() ? v()(t, m()(r)) : f()(i = _t(Object(r))).call(i, (function(e) {
y()(t, e, d()(r, e))
}
))
}
return t
}
var Ct = n(93800)
, kt = n(70570)
, St = n(31471)
, Tt = n(13993)
, Et = kt.create();
St.extend(Et.prototype, {
initialize: function() {
this.initRoute()
},
initRoute: function() {
var t = this
, e = Ct.Router.extend({
routes: {
"": "navStep",
"/": "navStep",
":module": "navStep",
":module/:param": "navStep",
"*error": "navError"
},
navStep: function(e, n) {
e = ft()(Tt).call(Tt, e),
(n = n ? window.decodeURIComponent(ft()(Tt).call(Tt, n)) : "") && !/^\{/.test(n) && (n = "{" + n + "}"),
t.entryStep(e, St.json(n, {}))
},
navError: function() {
t.entryStep()
}
});
t.router = new e,
Ct.history.start()
},
entryStep: function(t, e) {
var n = this;
t !== D().state.step ? (n.param = e,
D().commit("updateModule", t)) : dt()(e) !== dt()(n.param) && (n.param = e,
D().commit("updateParamId", (new Date).getTime()))
},
nav: function(t, e, n) {
t = ft()(Tt).call(Tt, t),
f()(St).call(St, e, (function(t, n) {
return (null === t || t === undefined) && delete e[n]
}
));
var i = (dt()(e) || "").replace(/^{|}$/gi, "")
, r = e && St.size(e) > 0 ? window.encodeURIComponent(i) : "";
r = r ? "/".concat(r) : "",
this.router.navigate(t + r, xt({
trigger: !0
}, n))
},
refresh: function() {
var t = this;
t.router.navigate("", {
trigger: !1
}),
t.nav(D().getters.module, t.param)
},
getParam: function() {
return xt({}, this.param)
},
addParam: function(t, e) {
var n = this.param || {};
t === n && (t = xt({}, t)),
St.extend(n, t),
f()(St).call(St, n, (function(t, e) {
return (null === t || t === undefined) && delete n[e]
}
)),
this.nav(D().getters.module, n, {
trigger: !1,
replace: !e || !("replace"in e) || !!e.replace
})
}
});
var It = new Et;
function Lt(t, e) {
var n = a()(t);
if (s()) {
var i = s()(t);
e && (i = c()(i).call(i, (function(e) {
return d()(t, e).enumerable
}
))),
n.push.apply(n, i)
}
return n
}
function jt(t) {
for (var e = 1; e < arguments.length; e++) {
var n, i, r = null != arguments[e] ? arguments[e] : {};
e % 2 ? f()(n = Lt(Object(r), !0)).call(n, (function(e) {
(0,
w["default"])(t, e, r[e])
}
)) : m() ? v()(t, m()(r)) : f()(i = Lt(Object(r))).call(i, (function(e) {
y()(t, e, d()(r, e))
}
))
}
return t
}
var Mt = n(13993)
, $t = n(49548)
, Ft = n(49370)
, Pt = {
components: {
Status: ht.Z,
None: wt,
Pager: mt.Z
},
data: function() {
return {
isLoading: !0,
error: "",
data: {}
}
},
mounted: function() {
this.initEvaluateBtn(),
this.refresh()
},
methods: jt({
initEvaluateBtn: function() {
var t = this;
if (!$t.isLogin() || t.isEvaluate || !t.isFinished)
return;
function e(n) {
bt.Z.show({
problemId: n,
contestId: t.id,
batch: !0,
listeners: {
nextProblem: function(t) {
return e(t)
},
end: function() {
return t.updateNeedEvaluate(!1)
}
}
})
}
n = function(n) {
n && 0 !== n.nextProblemId && (t.updateNeedEvaluate(!0),
t.$watch("isShowEvaluate", (function() {
var i = t.isShowEvaluate;
i && e(n.nextProblemId),
i && t.updateNeedEvaluate(!1)
}
)))
}
,
vt().getNextProblem({
query: {
contestId: t.id
},
call: function(t) {
return n && n(t.data)
},
error: function(t) {
return n && n()
}
});
var n
},
getAcceptedLink: function(t) {
var e, n, i = {
problemIdFilter: t.problemId,
statusTypeFilter: 5
};
return x()(e = x()(n = "/acm/".concat(this.isEvaluate ? "evaluate" : "contest", "/")).call(n, this.id, "#submit/")).call(e, encodeURIComponent(dt()(i)))
},
isPass: function(t) {
var e = ft()(Mt).call(Mt, t.myStatus);
return "通过" === e || "已提交" === e
},
refresh: function(t) {
var e = this
, n = It.getParam();
t && It.addParam({
page: t
}),
e.isLoading = !0,
B()[e.isEvaluate ? "problemListEvaluate" : "problemList"]({
query: {
id: e.id,
page: t || n.page
},
call: function(t) {
return e.data = t.data
},
error: function(t) {
return e.error = t.msg
},
always: function() {
return e.isLoading = !1
}
})
},
actionGoSubmit: function(t) {
t.problemId && It.nav("submit", {
problemIdFilter: t.problemId,
onlyMyStatusFilter: !0
})
},
actionSignUp: function() {
if (this.isSignUpFinished && !this.needCharge)
return Ft.alert("你没有报名该比赛,比赛过程中不能查看题目。");
var t = this.settingInfo.signUpUrl
, e = Ft.confirm("你目前没有报名该比赛,报名后即可查看题目。", (function() {
return H.signup()
}
));
e.changeTitle("报名提醒"),
e.okBtn.html("去报名"),
e.okBtn.attr("href", t || "javascript:void(0);"),
t && e.okBtn.attr("target", "_blank")
}
}, (0,
C.mapMutations)({
updateNeedEvaluate: "updateNeedEvaluate",
updateShowEvaluate: "updateShowEvaluate"
})),
computed: jt(jt({
canGoQuestion: function() {
var t = this;
if (t.needCharge)
return t.isSignUp;
return t.isEvaluate || t.isFinished || t.isSignUp
}
}, (0,
C.mapState)({
tagId: "tagId",
id: "id",
settingInfo: "settingInfo",
isEvaluate: "isEvaluate",
isSignUp: "isSignUp",
isTeamSignUp: "isTeamSignUp",
isOI: "isOI",
isIOI: "isIOI",
isShowEvaluate: "isShowEvaluate",
needCharge: "needCharge"
})), (0,
C.mapGetters)({
isFinished: "isFinished",
isSignUpFinished: "isSignUpFinished"
})),
watch: {
isLoading: function() {
this.$emit("change")
}
}
};
var Ot = Pt
, Nt = (0,
$.Z)(Ot, (function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("div", {
staticClass: "module-box"
}, [t.isLoading ? n("Status", {
attrs: {
loading: !0
}
}, [t._v("加载中...")]) : t.error ? n("Status", [t._v(t._s(t.error))]) : 0 === (t.data.data || []).length ? n("None") : [n("table", {
staticClass: "table-hover"
}, [n("thead", [n("tr", [n("th", {
attrs: {
width: "10%"
}
}, [t._v("题号")]), t._v(" "), n("th", {
attrs: {
width: "60%"
}
}, [t._v("标题")]), t._v(" "), t.isFinished ? n("th", {
attrs: {
width: "10%"
}
}, [t._v("已通过代码")]) : t._e(), t._v(" "), t.isFinished || !t.isOI ? n("th", {
attrs: {
width: "10%"
}
}, [t._v("通过率")]) : t._e(), t._v(" "), n("th", {
attrs: {
width: "10%"
}
}, [t._v(t._s(t.isTeamSignUp ? "团队的状态" : "我的状态"))])])]), t._v(" "), n("tbody", t._l(t.data.data, (function(e, i) {
return n("tr", {
key: i
}, [n("td", [t._v(t._s(e.index))]), t._v(" "), n("td", {
staticStyle: {
"text-align": "left"
}
}, [t.canGoQuestion ? n("a", {
staticClass: "link-green",
attrs: {
href: "/acm/" + (t.isEvaluate ? "evaluate/" : "contest/") + t.id + "/" + e.index,
target: "_blank"
},
domProps: {
innerHTML: t._s(e.title)
}
}) : n("a", {
staticClass: "link-green",
attrs: {
href: "javascript:void(0);"
},
domProps: {
innerHTML: t._s(e.title)
},
on: {
click: function(e) {
return e.preventDefault(),
t.actionSignUp.apply(null, arguments)
}
}
})]), t._v(" "), t.isFinished ? n("td", [n("a", {
staticClass: "link-green",
attrs: {
href: t.getAcceptedLink(e),
target: "_blank"
}
}, [t._v("点击查看")])]) : t._e(), t._v(" "), t.isFinished || !t.isOI ? n("td", [t._v(t._s(e.acceptedCount || 0) + "/" + t._s(e.submitCount || 0))]) : t._e(), t._v(" "), t.isPass(e) ? [t.isOI ? n("td", {
staticStyle: {
cursor: "pointer"
},
on: {
click: function(n) {
return t.actionGoSubmit(e)
}
}
}, [n("span", {
staticClass: "font-green"
}, [n("i", {
staticClass: "icon-ok"
}), t._v(" " + t._s(e.myStatus))])]) : n("td", [n("span", {
staticClass: "font-green"
}, [n("i", {
staticClass: "icon-ok"
}), t._v(" " + t._s(e.myStatus))])])] : n("td", [t._v(t._s(e.myStatus))])], 2)
}
)), 0)]), t._v(" "), n("Pager", {
attrs: {
total: t.data.basicInfo.pageCount,
value: t.data.basicInfo.pageCurrent
},
on: {
input: t.refresh
}
})]], 2)
}
), [], !1, null, null, null)
, Dt = Nt.exports
, At = n(68226)
, zt = n(79007)
, Ht = n(75441)
, Rt = n.n(Ht)
, Bt = n(86990)
, Ut = n.n(Bt);
var qt = {
props: ["type", "param"],
methods: {
action: function(t) {
this.$emit("rank", this.type, t)
}
}
}
, Vt = (0,
$.Z)(qt, (function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("div", {
staticClass: "rank-oprt"
}, [n("a", {
staticClass: "rank-up",
"class": t.param && t.param.orderBy === t.type && "ASC" === t.param.orderType ? "selected" : "",
attrs: {
href: "javascript:void(0);"
},
on: {
click: function(e) {
return e.stopPropagation(),
t.action("ASC")
}
}
}), t._v(" "), n("a", {
staticClass: "rank-down",
"class": t.param && t.param.orderBy === t.type && "DESC" === t.param.orderType ? "selected" : "",
attrs: {
href: "javascript:void(0);"
},
on: {
click: function(e) {
return e.stopPropagation(),
t.action("DESC")
}
}
})])
}
), [], !1, null, null, null).exports
, Wt = n(27946)
, Gt = n.n(Wt)
, Zt = n(8604)
, Jt = n(31471)
, Kt = n(83970)
, Qt = {
props: ["title", "type", "items", "param"],
mounted: function() {
var t = this
, e = Zt(t.$el)
, n = Gt()(e).call(e, "div.btn-group")
, i = (t.param || {})[t.type]
, r = Kt.show({
target: e,
options: Rt()(Jt).call(Jt, t.items, (function(t) {
return {
text: t.text,
value: t.value,
checked: i === t.value
}
}
)),
canCancel: !0,
needClick: !0,
needReWidth: !0,
listeners: {
change: function() {
var e = (0,
w["default"])({}, t.type, this.val() || null);
t.$emit("filter", e)
}
}
});
r.attach.listen("attachShow", Jt.bind(n.addClass, n, "open")),
r.attach.listen("attachHide", Jt.bind(n.removeClass, n, "open")),
t.$ncPushChild && t.$ncPushChild(r)
}
};
var Yt = Qt
, Xt = (0,
$.Z)(Yt, (function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("th", {
staticClass: "simple-dropdown",
attrs: {
width: "100"
}
}, [n("div", {
staticClass: "btn-group"
}, [n("button", {
staticClass: "btn btn-default dropdown-toggle"
}, [t._v(t._s(t.title)), n("span", {
staticClass: "caret"
})])])])
}
), [], !1, null, null, null).exports;
function te(t, e) {
var n = a()(t);
if (s()) {
var i = s()(t);
e && (i = c()(i).call(i, (function(e) {
return d()(t, e).enumerable
}
))),
n.push.apply(n, i)
}
return n
}
var ee = n(31471)
, ne = n(54719)
, ie = n(96263)
, re = {
props: ["allQuestion", "data", "param"],
components: {
None: wt,
RankBtn: Vt,
Pager: mt.Z,
FilterTh: Xt
},
data: function() {
return {
defaultVal: "---",
statusTypeFilter: [{
text: "答案正确",
value: "5"
}, {
text: "正在判题",
value: "0"
}, {
text: "运行错误",
value: "3"
}, {
text: "答案错误",
value: "4"
}, {
text: "运行超时",
value: "6"
}, {
text: "内存超限",
value: "7"
}, {
text: "输出超限",
value: "10"
}, {
text: "编译错误",
value: "12"
}, {
text: "格式错误",
value: "13"
}, {
text: "内部错误",
value: "14"
}, {
text: "浮点错误",
value: "15"
}, {
text: "段错误",
value: "16"
}, {
text: "代码太长",
value: "20"
}, {
text: "返回非零",
value: "21"
}],
languageCategoryFilter: ie.getFilterLang(),
problemIdFilter: Rt()(ee).call(ee, this.allQuestion, (function(t) {
return {
text: t.index,
value: t.problemId
}
}
))
}
},
methods: {
formTime: function(t) {
return ne.form(new Date(t), "yyyy-MM-dd HH:mm:ss")
},
hasUser: function(t) {
var e = +t.userId;
return e && 0 !== e
},
getQuestionHref: function(t) {
var e, n;
return x()(e = x()(n = "/acm/".concat(this.isEvaluate ? "evaluate" : "contest", "/")).call(n, this.id, "/")).call(e, t.index)
},
getStatusCls: function(t) {
var e = t.statusMessage;
return Ut()(e).call(e, "正确") >= 0 ? "link-green" : Ut()(e).call(e, "错误") >= 0 ? "font-red" : ""
},
actionRank: function(t, e) {
this.$emit("filter", {
orderType: e,
orderBy: t
})
},
actionFilter: function(t) {
this.$emit("filter", t)
},
actionPage: function(t) {
this.$emit("filter", {
page: t
})
}
},
computed: function(t) {
for (var e = 1; e < arguments.length; e++) {
var n, i, r = null != arguments[e] ? arguments[e] : {};
e % 2 ? f()(n = te(Object(r), !0)).call(n, (function(e) {
(0,
w["default"])(t, e, r[e])
}
)) : m() ? v()(t, m()(r)) : f()(i = te(Object(r))).call(i, (function(e) {
y()(t, e, d()(r, e))
}
))
}
return t
}({
items: function() {
return this.data.data || []
}
}, (0,
C.mapState)({
id: "id",
isEvaluate: "isEvaluate"
}))
};
var ae = re
, oe = (0,
$.Z)(ae, (function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("div", [n("table", {
"class": 0 === t.items.length ? "" : "table-hover",
staticStyle: {
"word-break": "break-all"
}
}, [n("thead", [n("tr", [n("th", {
attrs: {
width: "150"
}
}, [t._v("运行ID")]), t._v(" "), n("th", {
attrs: {
width: "150"
}
}, [t._v("用户名")]), t._v(" "), n("FilterTh", {
attrs: {
title: "题号",
type: "problemIdFilter",
items: t.problemIdFilter,
param: t.param
},
on: {
filter: t.actionFilter
}
}), t._v(" "), n("FilterTh", {
attrs: {
title: "运行结果",
type: "statusTypeFilter",
items: t.statusTypeFilter,
param: t.param
},
on: {
filter: t.actionFilter
}
}), t._v(" "), n("th", {
attrs: {
width: "100"
}
}, [t._v("运行时间(ms)"), n("RankBtn", {
attrs: {
type: "time",
param: t.param
},
on: {
rank: t.actionRank
}
})], 1), t._v(" "), n("th", {
attrs: {
width: "100"
}
}, [t._v("使用内存(KB)"), n("RankBtn", {
attrs: {
type: "memory",
param: t.param
},
on: {
rank: t.actionRank
}
})], 1), t._v(" "), n("th", {
attrs: {
width: "100"
}
}, [t._v("代码长度"), n("RankBtn", {
attrs: {
type: "length",
param: t.param
},
on: {
rank: t.actionRank
}
})], 1), t._v(" "), n("FilterTh", {
attrs: {
title: "使用语言",
type: "languageCategoryFilter",
items: t.languageCategoryFilter,
param: t.param
},
on: {
filter: t.actionFilter
}
}), t._v(" "), n("th", {
attrs: {
width: "250"
}
}, [t._v("提交时间"), n("RankBtn", {
attrs: {
type: "submitTime",
param: t.param
},
on: {
rank: t.actionRank
}
})], 1)], 1)]), t._v(" "), n("tbody", [0 === t.items.length ? n("tr", [n("td", {
attrs: {
colspan: "9"
}
}, [n("None")], 1)]) : t._e(), t._v(" "), t._l(t.items, (function(e, i) {
return n("tr", {
key: i
}, [n("td", [n("a", {
attrs: {
href: "/acm/contest/view-submission?submissionId=" + e.submissionId,
target: "_blank"
}
}, [t._v(t._s(e.submissionId))])]), t._v(" "), n("td", [t.hasUser(e) ? n("a", {
"class": "rate-score" + e.colorLevel,
attrs: {
href: "/acm/contest/profile/" + e.userId,
target: "_blank"
}
}, [n("span", {
domProps: {
innerHTML: t._s(e.userName || t.defaultVal)
}
}), t._v(" "), e.isTeam ? n("i", {
staticClass: "icon-nc-member"
}) : t._e()]) : n("a", {
attrs: {
href: "javascript:void(0);"
}
}, [n("span", {
domProps: {
innerHTML: t._s(e.userName || t.defaultVal)
}
}), t._v(" "), e.isTeam ? n("i", {
staticClass: "icon-nc-member"
}) : t._e()])]), t._v(" "), "已删除题目" === e.index ? n("td", [t._v(t._s(e.index))]) : n("td", [n("a", {
attrs: {
href: t.getQuestionHref(e),
target: "_blank"
}
}, [t._v(t._s(e.index))])]), t._v(" "), n("td", [n("a", {
"class": t.getStatusCls(e),
attrs: {
href: "/acm/contest/view-submission?submissionId=" + e.submissionId,
target: "_blank"
}
}, [t._v(t._s(e.statusMessage))])]), t._v(" "), n("td", [t._v(t._s(e.time === undefined ? t.defaultVal : e.time))]), t._v(" "), n("td", [t._v(t._s(e.memory === undefined ? t.defaultVal : e.memory))]), t._v(" "), n("td", [t._v(t._s(e.length || t.defaultVal))]), t._v(" "), n("td", [t._v(t._s(e.languageCategoryName))]), t._v(" "), n("td", [t._v(t._s(t.formTime(e.submitTime)))])])
}
))], 2)]), t._v(" "), n("Pager", {
attrs: {
total: t.data.basicInfo.pageCount,
value: t.data.basicInfo.pageCurrent
},
on: {
input: t.actionPage
}
})], 1)
}
), [], !1, null, null, null).exports;
function se(t, e) {
var n = a()(t);
if (s()) {
var i = s()(t);
e && (i = c()(i).call(i, (function(e) {
return d()(t, e).enumerable
}
))),
n.push.apply(n, i)
}
return n
}
var le = n(31471)
, ce = n(54719)
, ue = n(96263)
, de = {
props: ["allQuestion", "data", "param"],
components: {
None: wt,
RankBtn: Vt,
Pager: mt.Z,
FilterTh: Xt
},
data: function() {
return {
defaultVal: "---",
statusTypeFilter: [{
text: "答案正确",
value: "5"
}, {
text: "正在判题",
value: "0"
}, {
text: "运行错误",
value: "3"
}, {
text: "答案错误",
value: "4"
}, {
text: "运行超时",
value: "6"
}, {
text: "内存超限",
value: "7"
}, {
text: "输出超限",
value: "10"
}, {
text: "编译错误",
value: "12"
}, {
text: "格式错误",
value: "13"
}, {
text: "内部错误",
value: "14"
}, {
text: "浮点错误",
value: "15"
}, {
text: "段错误",
value: "16"
}, {
text: "代码太长",
value: "20"
}, {
text: "返回非零",
value: "21"
}],
languageCategoryFilter: ue.getFilterLang(),
problemIdFilter: Rt()(le).call(le, this.allQuestion, (function(t) {
return {
text: t.index,
value: t.problemId
}
}
))
}
},
methods: {
formTime: function(t) {
return ce.form(new Date(t), "yyyy-MM-dd HH:mm:ss")
},
hasUser: function(t) {
var e = +t.userId;
return e && 0 !== e
},
getQuestionHref: function(t) {
var e, n;
return x()(e = x()(n = "/acm/".concat(this.isEvaluate ? "evaluate" : "contest", "/")).call(n, this.id, "/")).call(e, t.index)
},
getStatusCls: function(t) {
var e = t.statusMessage;
return Ut()(e).call(e, "正确") >= 0 ? "link-green" : Ut()(e).call(e, "错误") >= 0 ? "font-red" : ""
},
actionRank: function(t, e) {
this.$emit("filter", {
orderType: e,
orderBy: t
})
},
actionFilter: function(t) {
this.$emit("filter", t)
},
actionPage: function(t) {
this.$emit("filter", {
page: t
})
}
},
computed: function(t) {
for (var e = 1; e < arguments.length; e++) {
var n, i, r = null != arguments[e] ? arguments[e] : {};
e % 2 ? f()(n = se(Object(r), !0)).call(n, (function(e) {
(0,
w["default"])(t, e, r[e])
}
)) : m() ? v()(t, m()(r)) : f()(i = se(Object(r))).call(i, (function(e) {
y()(t, e, d()(r, e))
}
))
}
return t
}({
items: function() {
return this.data.data || []
}
}, (0,
C.mapState)({
id: "id",
isEvaluate: "isEvaluate"
}))
};
var pe = de
, fe = (0,
$.Z)(pe, (function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("div", [n("table", {
"class": 0 === t.items.length ? "" : "table-hover",
staticStyle: {
"word-break": "break-all"
}
}, [n("thead", [n("tr", [n("th", {
attrs: {
width: "150"
}
}, [t._v("运行ID")]), t._v(" "), n("th", {
attrs: {
width: "150"
}
}, [t._v("用户名")]), t._v(" "), n("FilterTh", {
attrs: {
title: "题号",
type: "problemIdFilter",
items: t.problemIdFilter,
param: t.param
},
on: {
filter: t.actionFilter
}
}), t._v(" "), n("th", {
attrs: {
width: "150"
}
}, [t._v("提交状态")]), t._v(" "), n("th", {
attrs: {
width: "100"
}
}, [t._v("代码长度"), n("RankBtn", {
attrs: {
type: "length",
param: t.param
},
on: {
rank: t.actionRank
}
})], 1), t._v(" "), n("FilterTh", {
attrs: {
title: "使用语言",
type: "languageCategoryFilter",
items: t.languageCategoryFilter,
param: t.param
},
on: {
filter: t.actionFilter
}
}), t._v(" "), n("th", {
attrs: {
width: "250"
}
}, [t._v("提交时间"), n("RankBtn", {
attrs: {
type: "submitTime",
param: t.param
},
on: {
rank: t.actionRank
}
})], 1)], 1)]), t._v(" "), n("tbody", [0 === t.items.length ? n("tr", [n("td", {
attrs: {
colspan: "7"
}
}, [n("None")], 1)]) : t._e(), t._v(" "), t._l(t.items, (function(e, i) {
return n("tr", {
key: i
}, [n("td", [n("a", {
attrs: {
href: "/acm/contest/view-submission?submissionId=" + e.submissionId,
target: "_blank"
}
}, [t._v(t._s(e.submissionId))])]), t._v(" "), n("td", [t.hasUser(e) ? n("a", {
"class": "rate-score" + e.colorLevel,
attrs: {
href: "/acm/contest/profile/" + e.userId,
target: "_blank"
}
}, [n("span", {
domProps: {
innerHTML: t._s(e.userName || t.defaultVal)
}
}), t._v(" "), e.isTeam ? n("i", {
staticClass: "icon-nc-member"
}) : t._e()]) : n("a", {
attrs: {
href: "javascript:void(0);"
}
}, [n("span", {
domProps: {
innerHTML: t._s(e.userName || t.defaultVal)
}
}), t._v(" "), e.isTeam ? n("i", {
staticClass: "icon-nc-member"
}) : t._e()])]), t._v(" "), "已删除题目" === e.index ? n("td", [t._v(t._s(e.index))]) : n("td", [n("a", {
attrs: {
href: t.getQuestionHref(e),
target: "_blank"
}
}, [t._v(t._s(e.index))])]), t._v(" "), n("td", [n("a", {
"class": t.getStatusCls(e),
attrs: {
href: "/acm/contest/view-submission?submissionId=" + e.submissionId,
target: "_blank"
}
}, [t._v(t._s(e.statusMessage))])]), t._v(" "), n("td", [t._v(t._s(e.length || t.defaultVal))]), t._v(" "), n("td", [t._v(t._s(e.languageCategoryName))]), t._v(" "), n("td", [t._v(t._s(t.formTime(e.submitTime)))])])
}
))], 2)]), t._v(" "), n("Pager", {
attrs: {
total: t.data.basicInfo.pageCount,
value: t.data.basicInfo.pageCurrent
},
on: {
input: t.actionPage
}
})], 1)
}
), [], !1, null, null, null).exports;
function he(t, e) {
var n = a()(t);
if (s()) {
var i = s()(t);
e && (i = c()(i).call(i, (function(e) {
return d()(t, e).enumerable
}
))),
n.push.apply(n, i)
}
return n
}
var me = n(31471)
, ge = n(54719)
, ve = n(96263)
, be = {
props: ["allQuestion", "data", "param"],
components: {
None: wt,
RankBtn: Vt,
Pager: mt.Z,
FilterTh: Xt
},
data: function() {
return {
defaultVal: "---",
statusTypeFilter: [{
text: "答案正确",
value: "5"
}, {
text: "正在判题",
value: "0"
}, {
text: "运行错误",
value: "3"
}, {
text: "答案错误",
value: "4"
}, {
text: "运行超时",
value: "6"
}, {
text: "内存超限",
value: "7"
}, {
text: "输出超限",
value: "10"
}, {
text: "编译错误",
value: "12"
}, {
text: "格式错误",
value: "13"
}, {
text: "内部错误",
value: "14"
}, {
text: "浮点错误",
value: "15"
}, {
text: "段错误",
value: "16"
}, {
text: "代码太长",
value: "20"
}, {
text: "返回非零",
value: "21"
}],
languageCategoryFilter: ve.getFilterLang(),
problemIdFilter: Rt()(me).call(me, this.allQuestion, (function(t) {
return {
text: t.index,
value: t.problemId
}
}
))
}
},
methods: {
formTime: function(t) {
return ge.form(new Date(t), "yyyy-MM-dd HH:mm:ss")
},
hasUser: function(t) {
var e = +t.userId;
return e && 0 !== e
},
getSubmissionHref: function(t, e) {
var n;
return x()(n = "/acm/contest/view-submission?submissionId=".concat(t.submissionId)).call(n, e ? "&scrollToDetail=1" : "")
},
getQuestionHref: function(t) {
var e, n;
return x()(e = x()(n = "/acm/".concat(this.isEvaluate ? "evaluate" : "contest", "/")).call(n, this.id, "/")).call(e, t.index)
},
getScore: function(t) {
return me.id(t.score) || this.defaultVal
},
getStatusCls: function(t) {
var e = t.statusMessage;
return Ut()(e).call(e, "正确") >= 0 ? "link-green" : Ut()(e).call(e, "错误") >= 0 ? "font-red" : ""
},
getScoreCls: function(t) {
var e = me.id(t.scoreColorLevel);
return e ? "match-score".concat(e) : ""
},
actionRank: function(t, e) {
this.$emit("filter", {
orderType: e,
orderBy: t
})
},
actionFilter: function(t) {
this.$emit("filter", t)
},
actionPage: function(t) {
this.$emit("filter", {
page: t
})
}
},
computed: function(t) {
for (var e = 1; e < arguments.length; e++) {
var n, i, r = null != arguments[e] ? arguments[e] : {};
e % 2 ? f()(n = he(Object(r), !0)).call(n, (function(e) {
(0,
w["default"])(t, e, r[e])
}
)) : m() ? v()(t, m()(r)) : f()(i = he(Object(r))).call(i, (function(e) {
y()(t, e, d()(r, e))
}
))
}
return t
}({
items: function() {
return this.data.data || []
}
}, (0,
C.mapState)({
id: "id",
isEvaluate: "isEvaluate"
}))
};
var ye = be
, we = (0,
$.Z)(ye, (function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("div", [n("table", {
"class": 0 === t.items.length ? "" : "table-hover",
staticStyle: {
"word-break": "break-all"
}
}, [n("thead", [n("tr", [n("th", {
attrs: {
width: "150"
}
}, [t._v("运行ID")]), t._v(" "), n("th", {
attrs: {
width: "150"
}
}, [t._v("用户名")]), t._v(" "), n("FilterTh", {
attrs: {
title: "题号",
type: "problemIdFilter",
items: t.problemIdFilter,
param: t.param
},
on: {
filter: t.actionFilter
}
}), t._v(" "), n("FilterTh", {
attrs: {
title: "运行结果",
type: "statusTypeFilter",
items: t.statusTypeFilter,
param: t.param
},
on: {
filter: t.actionFilter
}
}), t._v(" "), n("th", {
attrs: {
width: "100"
}
}, [t._v("得分")]), t._v(" "), n("th", {
attrs: {
width: "100"
}
}, [t._v("运行时间(ms)"), n("RankBtn", {
attrs: {
type: "time",
param: t.param
},
on: {
rank: t.actionRank
}
})], 1), t._v(" "), n("th", {
attrs: {
width: "100"
}
}, [t._v("使用内存(KB)"), n("RankBtn", {
attrs: {
type: "memory",
param: t.param
},
on: {
rank: t.actionRank
}
})], 1), t._v(" "), n("th", {
attrs: {
width: "100"
}
}, [t._v("代码长度"), n("RankBtn", {
attrs: {
type: "length",
param: t.param
},
on: {
rank: t.actionRank
}
})], 1), t._v(" "), n("FilterTh", {
attrs: {
title: "使用语言",
type: "languageCategoryFilter",
items: t.languageCategoryFilter,
param: t.param
},
on: {
filter: t.actionFilter
}
}), t._v(" "), n("th", {
attrs: {
width: "250"
}
}, [t._v("提交时间"), n("RankBtn", {
attrs: {
type: "submitTime",
param: t.param
},
on: {
rank: t.actionRank
}
})], 1)], 1)]), t._v(" "), n("tbody", [0 === t.items.length ? n("tr", [n("td", {
attrs: {
colspan: "10"
}
}, [n("None")], 1)]) : t._e(), t._v(" "), t._l(t.items, (function(e, i) {
return n("tr", {
key: i
}, [n("td", [n("a", {
attrs: {
href: t.getSubmissionHref(e),
target: "_blank"
}
}, [t._v(t._s(e.submissionId))])]), t._v(" "), n("td", [t.hasUser(e) ? n("a", {
"class": "rate-score" + e.colorLevel,
attrs: {
href: "/acm/contest/profile/" + e.userId,
target: "_blank"
}
}, [n("span", {
domProps: {
innerHTML: t._s(e.userName || t.defaultVal)
}
}), t._v(" "), e.isTeam ? n("i", {
staticClass: "icon-nc-member"
}) : t._e()]) : n("a", {
attrs: {
href: "javascript:void(0);"
}
}, [n("span", {
domProps: {
innerHTML: t._s(e.userName || t.defaultVal)
}
}), t._v(" "), e.isTeam ? n("i", {
staticClass: "icon-nc-member"
}) : t._e()])]), t._v(" "), "已删除题目" === e.index ? n("td", [t._v(t._s(e.index))]) : n("td", [n("a", {
attrs: {
href: t.getQuestionHref(e),
target: "_blank"
}
}, [t._v(t._s(e.index))])]), t._v(" "), n("td", [n("a", {
"class": t.getStatusCls(e),
attrs: {
href: t.getSubmissionHref(e),
target: "_blank"
}
}, [t._v(t._s(e.statusMessage))])]), t._v(" "), n("td", [n("a", {
"class": t.getScoreCls(e),
attrs: {
href: t.getSubmissionHref(e, !0),
target: "_blank"
}
}, [t._v(t._s(t.getScore(e)))])]), t._v(" "), n("td", [t._v(t._s(e.time === undefined ? t.defaultVal : e.time))]), t._v(" "), n("td", [t._v(t._s(e.memory === undefined ? t.defaultVal : e.memory))]), t._v(" "), n("td", [t._v(t._s(e.length || t.defaultVal))]), t._v(" "), n("td", [t._v(t._s(e.languageCategoryName))]), t._v(" "), n("td", [t._v(t._s(t.formTime(e.submitTime)))])])
}
))], 2)]), t._v(" "), n("Pager", {
attrs: {
total: t.data.basicInfo.pageCount,
value: t.data.basicInfo.pageCurrent
},
on: {
input: t.actionPage
}
})], 1)
}
), [], !1, null, null, null).exports;
function _e(t, e) {
var n = a()(t);
if (s()) {
var i = s()(t);
e && (i = c()(i).call(i, (function(e) {
return d()(t, e).enumerable
}
))),
n.push.apply(n, i)
}
return n
}
var xe = n(31471)
, Ce = n(54719)
, ke = n(96263)
, Se = {
props: ["allQuestion", "data", "param", "isShowAll"],
components: {
None: wt,
RankBtn: Vt,
Pager: mt.Z,
FilterTh: Xt
},
data: function() {
return {
defaultVal: "---",
statusTypeFilter: [{
text: "答案正确",
value: "5"
}, {
text: "正在判题",
value: "0"
}, {
text: "运行错误",
value: "3"
}, {
text: "答案错误",
value: "4"
}, {
text: "运行超时",
value: "6"
}, {
text: "内存超限",
value: "7"
}, {
text: "输出超限",
value: "10"
}, {
text: "编译错误",
value: "12"
}, {
text: "格式错误",
value: "13"
}, {
text: "内部错误",
value: "14"
}, {
text: "浮点错误",
value: "15"
}, {
text: "段错误",
value: "16"
}, {
text: "代码太长",
value: "20"
}, {
text: "返回非零",
value: "21"
}],
languageCategoryFilter: ke.getFilterLang(),
problemIdFilter: Rt()(xe).call(xe, this.allQuestion, (function(t) {
return {
text: t.index,
value: t.problemId
}
}
))
}
},
methods: {
formTime: function(t) {
return Ce.form(new Date(t), "yyyy-MM-dd HH:mm:ss")
},
hasUser: function(t) {
var e = +t.userId;
return e && 0 !== e
},
getSubmissionHref: function(t, e) {
var n;
return x()(n = "/acm/contest/view-submission?submissionId=".concat(t.submissionId)).call(n, e ? "&scrollToDetail=1" : "")
},
getQuestionHref: function(t) {
var e, n;
return x()(e = x()(n = "/acm/".concat(this.isEvaluate ? "evaluate" : "contest", "/")).call(n, this.id, "/")).call(e, t.index)
},
getScore: function(t) {
return xe.id(t.score) || this.defaultVal
},
getStatusCls: function(t) {
var e = t.statusMessage;
return Ut()(e).call(e, "正确") >= 0 ? "link-green" : Ut()(e).call(e, "错误") >= 0 ? "font-red" : ""
},
getScoreCls: function(t) {
var e = xe.id(t.scoreColorLevel);
return e ? "match-score".concat(e) : ""
},
actionRank: function(t, e) {
this.$emit("filter", {
orderType: e,
orderBy: t
})
},
actionFilter: function(t) {
this.$emit("filter", t)
},
actionPage: function(t) {
this.$emit("filter", {
page: t
})
}
},
computed: function(t) {
for (var e = 1; e < arguments.length; e++) {
var n, i, r = null != arguments[e] ? arguments[e] : {};
e % 2 ? f()(n = _e(Object(r), !0)).call(n, (function(e) {
(0,
w["default"])(t, e, r[e])
}
)) : m() ? v()(t, m()(r)) : f()(i = _e(Object(r))).call(i, (function(e) {
y()(t, e, d()(r, e))
}
))
}
return t
}({
items: function() {
return this.data.data || []
}
}, (0,
C.mapState)({
id: "id",
isEvaluate: "isEvaluate"
}))
};
var Te = Se
, Ee = (0,
$.Z)(Te, (function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("div", [n("table", {
"class": 0 === t.items.length ? "" : "table-hover",
staticStyle: {
"word-break": "break-all"
}
}, [n("thead", [n("tr", [n("th", {
attrs: {
width: "150"
}
}, [t._v("运行ID")]), t._v(" "), n("th", {
attrs: {
width: "150"
}
}, [t._v("用户名")]), t._v(" "), n("FilterTh", {
attrs: {
title: "题号",
type: "problemIdFilter",
items: t.problemIdFilter,
param: t.param
},
on: {
filter: t.actionFilter
}
}), t._v(" "), n("FilterTh", {
attrs: {
title: "运行结果",
type: "statusTypeFilter",
items: t.statusTypeFilter,
param: t.param
},
on: {
filter: t.actionFilter
}
}), t._v(" "), n("th", {
attrs: {
width: "100"
}
}, [t._v("得分")]), t._v(" "), t.isShowAll ? [n("th", {
attrs: {
width: "100"
}
}, [t._v("运行时间(ms)"), n("RankBtn", {
attrs: {
type: "time",
param: t.param
},
on: {
rank: t.actionRank
}
})], 1), t._v(" "), n("th", {
attrs: {
width: "100"
}
}, [t._v("使用内存(KB)"), n("RankBtn", {
attrs: {
type: "memory",
param: t.param
},
on: {
rank: t.actionRank
}
})], 1), t._v(" "), n("th", {
attrs: {
width: "100"
}
}, [t._v("代码长度"), n("RankBtn", {
attrs: {
type: "length",
param: t.param
},
on: {
rank: t.actionRank
}
})], 1)] : t._e(), t._v(" "), n("FilterTh", {
attrs: {
title: "使用语言",
type: "languageCategoryFilter",
items: t.languageCategoryFilter,
param: t.param
},
on: {
filter: t.actionFilter
}
}), t._v(" "), n("th", {
attrs: {
width: "250"
}
}, [t._v("提交时间"), n("RankBtn", {
attrs: {
type: "submitTime",
param: t.param
},
on: {
rank: t.actionRank
}
})], 1)], 2)]), t._v(" "), n("tbody", [0 === t.items.length ? n("tr", [n("td", {
attrs: {
colspan: "10"
}
}, [n("None")], 1)]) : t._e(), t._v(" "), t._l(t.items, (function(e, i) {
return n("tr", {
key: i
}, [n("td", [n("a", {
attrs: {
href: t.getSubmissionHref(e),
target: "_blank"
}
}, [t._v(t._s(e.submissionId))])]), t._v(" "), n("td", [t.hasUser(e) ? n("a", {
"class": "rate-score" + e.colorLevel,
attrs: {
href: "/acm/contest/profile/" + e.userId,
target: "_blank"
}
}, [n("span", {
domProps: {
innerHTML: t._s(e.userName || t.defaultVal)
}
}), t._v(" "), e.isTeam ? n("i", {
staticClass: "icon-nc-member"
}) : t._e()]) : n("a", {
attrs: {
href: "javascript:void(0);"
}
}, [n("span", {
domProps: {
innerHTML: t._s(e.userName || t.defaultVal)
}
}), t._v(" "), e.isTeam ? n("i", {
staticClass: "icon-nc-member"
}) : t._e()])]), t._v(" "), "已删除题目" === e.index ? n("td", [t._v(t._s(e.index))]) : n("td", [n("a", {
attrs: {
href: t.getQuestionHref(e),
target: "_blank"
}
}, [t._v(t._s(e.index))])]), t._v(" "), n("td", [n("a", {
"class": t.getStatusCls(e),
attrs: {
href: t.getSubmissionHref(e),
target: "_blank"
}
}, [t._v(t._s(e.statusMessage))])]), t._v(" "), n("td", [n("a", {
"class": t.getScoreCls(e),
attrs: {
href: t.getSubmissionHref(e, !0),
target: "_blank"
}
}, [t._v(t._s(t.getScore(e)))])]), t._v(" "), t.isShowAll ? [n("td", [t._v(t._s(e.time === undefined ? t.defaultVal : e.time))]), t._v(" "), n("td", [t._v(t._s(e.memory === undefined ? t.defaultVal : e.memory))]), t._v(" "), n("td", [t._v(t._s(e.length || t.defaultVal))])] : t._e(), t._v(" "), n("td", [t._v(t._s(e.languageCategoryName))]), t._v(" "), n("td", [t._v(t._s(t.formTime(e.submitTime)))])], 2)
}
))], 2)]), t._v(" "), n("Pager", {
attrs: {
total: t.data.basicInfo.pageCount,
value: t.data.basicInfo.pageCurrent
},
on: {
input: t.actionPage
}
})], 1)
}
), [], !1, null, null, null).exports;
function Ie(t, e) {
var n = a()(t);
if (s()) {
var i = s()(t);
e && (i = c()(i).call(i, (function(e) {
return d()(t, e).enumerable
}
))),
n.push.apply(n, i)
}
return n
}
function Le(t) {
for (var e = 1; e < arguments.length; e++) {
var n, i, r = null != arguments[e] ? arguments[e] : {};
e % 2 ? f()(n = Ie(Object(r), !0)).call(n, (function(e) {
(0,
w["default"])(t, e, r[e])
}
)) : m() ? v()(t, m()(r)) : f()(i = Ie(Object(r))).call(i, (function(e) {
y()(t, e, d()(r, e))
}
))
}
return t
}
var je = n(8604)
, Me = n(49548)
, $e = n(49370);
var Fe = {
components: {
Status: ht.Z,
CheckBox: At.Z,
Ipt: zt.Z,
List0: oe,
List20: fe,
List21: we,
List3: Ee
},
data: function() {
return {
param: {},
allQuestion: [],
isLoading: !0,
error: "",
isLogin: Me.isLogin(),
onlyMyStatusFilter: !1,
searchUserName: "",
data: {}
}
},
mounted: function() {
var t = this;
t.fetchAllQuestion((function() {
t.initCpn(),
t.fetchData()
}
))
},
methods: {
initCpn: function() {
var t = this;
if (t.isEvaluate)
return;
var e = It.getParam();
t.isLogin && (t.onlyMyStatusFilter = !!t.forceOnlyMyStatusFilter || !!e.onlyMyStatusFilter,
t.$watch("onlyMyStatusFilter", (function(e) {
return t.refresh({
onlyMyStatusFilter: e || null
}, !0)
}
)),
t.$watch("forceOnlyMyStatusFilter", (function(e) {
return t.onlyMyStatusFilter = !!e
}
)));
t.searchUserName = ft()(je).call(je, e.searchUserName)
},
refresh: function(t, e) {
je(window).scrollTop(0),
t && (e && (t.page = null),
It.addParam(t));
this.fetchData()
},
fetchAllQuestion: function(t) {
var e = this
, n = e.isEvaluate
, i = [];
e.isLoading = !0,
function r(a) {
a = +a || 1,
B()[n ? "problemListEvaluate" : "problemList"]({
query: {
id: e.id,
page: a,
pageSize: 100
},
call: function(n) {
var o = n.data
, s = o.basicInfo;
if (i = x()(i).call(i, o.data || []),
s.pageCurrent < s.pageCount)
return r(a + 1);
e.isLoading = !1,
e.allQuestion = i,
t()
},
error: function(t) {
e.isLoading = !1,
e.error = t.msg
}
})
}(1)
},
fetchData: function() {
var t = this
, e = t.param = It.getParam();
t.isLoading = !0,
B()[t.isEvaluate ? "statusListEvaluate" : "statusList"]({
query: {
id: t.id,
page: e.page,
pageSize: 20,
orderType: e.orderType,
orderBy: e.orderBy,
onlyMyStatusFilter: t.forceOnlyMyStatusFilter || t.submitOnlySelf || t.onlyMyStatusFilter ? "true" : undefined,
statusTypeFilter: e.statusTypeFilter,
contestTypeList: t.isFinished ? undefined : "contest",
languageCategoryFilter: e.languageCategoryFilter,
problemIdFilter: e.problemIdFilter,
searchUserName: t.submitOnlySelf ? undefined : t.searchUserName
},
call: function(e) {
return t.data = e.data
},
error: function(e) {
return t.error = e.msg
},
always: function() {
return t.isLoading = !1
}
})
},
actionSearch: function() {
var t = It.getParam()
, e = ft()(je).call(je, this.searchUserName)
, n = ft()(je).call(je, t.searchUserName);
e !== n && this.refresh({
searchUserName: e || null
}, !0)
},
actionFilter: function(t) {
this.refresh(t, !("page"in t))
},
actionCheckConfirm: function(t, e) {
var n = this.forceOnlyMyStatusFilter;
if (e(this.isLogin && !n),
!t && n)
return $e.alert("比赛过程中只能查看自己的提交")
}
},
computed: Le(Le({
items: function() {
return this.data.data || []
}
}, (0,
C.mapState)({
id: "id",
isOI: "isOI",
isIOI: "isIOI",
isEvaluate: "isEvaluate",
isManager: "isManager",
isTeamSignUp: "isTeamSignUp",
submitOnlySelf: "submitOnlySelf"
})), (0,
C.mapGetters)({
forceOnlyMyStatusFilter: "forceOnlyMyStatusFilter",
isFinished: "isFinished"
})),
watch: {
isLoading: function() {
this.$emit("change")
}
}
}
, Pe = (0,
$.Z)(Fe, (function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("div", {
staticClass: "module-box"
}, [t.isEvaluate || t.submitOnlySelf ? t._e() : n("div", {
staticClass: "oprt-bar"
}, [n("Ipt", {
staticClass: "search-input-wrap",
attrs: {
placeholder: "输入用户名称回车搜索"
},
on: {
enter: t.actionSearch
},
model: {
value: t.searchUserName,
callback: function(e) {
t.searchUserName = e
},
expression: "searchUserName"
}
}, [n("label", {
staticClass: "ico-search",
attrs: {
slot: "before"
},
slot: "before"
})]), t._v(" "), n("CheckBox", {
staticClass: "nc-req-auth",
attrs: {
checkConfirm: t.actionCheckConfirm
},
model: {
value: t.onlyMyStatusFilter,
callback: function(e) {
t.onlyMyStatusFilter = e
},
expression: "onlyMyStatusFilter"
}
}, [t._v(t._s(t.isTeamSignUp ? "只看团队提交" : "只看我的提交"))])], 1), t._v(" "), t.isLoading ? n("Status", {
attrs: {
loading: !0
}
}, [t._v("加载中...")]) : t.error ? n("Status", [t._v(t._s(t.error))]) : [t.isOI ? [t.isFinished || t.isManager ? n("List21", {
attrs: {
allQuestion: t.allQuestion,
data: t.data,
param: t.param
},
on: {
filter: t.actionFilter
}
}) : n("List20", {
attrs: {
allQuestion: t.allQuestion,
data: t.data,
param: t.param
},
on: {
filter: t.actionFilter
}
})] : t.isIOI ? n("List3", {
attrs: {
isShowAll: t.isFinished || t.isManager,
allQuestion: t.allQuestion,
data: t.data,
param: t.param
},
on: {
filter: t.actionFilter
}
}) : n("List0", {
attrs: {
allQuestion: t.allQuestion,
data: t.data,
param: t.param
},
on: {
filter: t.actionFilter
}
})]], 2)
}
), [], !1, null, null, null).exports
, Oe = n(12154)
, Ne = n.n(Oe)
, De = n(45629)
, Ae = n.n(De)
, ze = n(79349)
, He = n(91041)
, Re = n.n(He)
, Be = n(22324)
, Ue = n.n(Be)
, qe = {
isCodeError: function(t) {
return !!{
3: 1,
4: 1,
6: 1,
7: 1,
9: 1,
10: 1,
13: 1,
15: 1,
21: 1,
22: 1,
16: 1
}[t]
}
};
var Ve = n(31471)
, We = {
uid: +n(49548).getUid() || 0,
transform: function(t) {
var e = t.data
, n = t.follow
, i = t.limitTime
, r = +t.rankFrozenMillisecond || 0
, a = this.uid
, o = null
, s = D().state.contestId
, l = {}
, c = {}
, u = []
, d = {}
, p = [];
return f()(Ve).call(Ve, e.problemData, (function(t) {
var e = {
submitCount: 0,
acceptedCount: 0,
name: t.index,
problemId: t.problemId,
firstBloodTime: Infinity
};
c[t.problemId] = e,
u.push(e)
}
)),
f()(Ve).call(Ve, e.submitDataList, (function(t) {
var e = t.basicInfo || {}
, n = e.contestId
, u = 1 === e.contestType;
n && (f()(Ve).call(Ve, t.signUpUsers, (function(t) {
return l[t.uid] = t
}
)),
f()(Ve).call(Ve, t.submissions, (function(t) {
var f;
if (!(t.submitTime > e.endTime || t.submitTime > e.startTime + i || r && t.submitTime > e.endTime - r)) {
var h, m = t.problemId, g = c[m] || {}, v = l[t.uid] || {}, b = x()(f = "".concat(n, "_")).call(f, t.uid), y = 5 === t.status, w = 0 !== t.status, _ = qe.isCodeError(t.status), C = d[b];
if (!C)
C = {
acceptedCount: 0,
fullScore: 0,
ranking: 0,
school: v.school,
scoreMap: {},
scoreList: [],
team: !!v.team,
totalScore: 0,
uid: t.uid,
userName: x()(h = "".concat(v.name || "")).call(h, u ? "_重现赛".concat(n) : ""),
penaltyTime: 0
},
p.push(C),
d[b] = C;
s === n && a && a === C.uid && (o = C);
var k = C.scoreMap[m] = C.scoreMap[m] || {
accepted: !1,
acceptedTime: -1,
failedCount: 0,
finishJudge: !1,
firstBlood: !1,
fullScore: 0,
problemId: g.problemId,
score: 0,
submissionId: "",
submit: !0,
penaltyTime: 0,
waitingJudgeCount: 0
}
, S = !k.accepted && y;
k.accepted = !(!k.accepted && !y),
k.acceptedTime = S ? t.submitTime : k.acceptedTime,
k.contestBeginTime = e.startTime,
k.failedCount += _ && !k.accepted ? 1 : 0,
k.finishJudge = k.finishJudge || w,
k.penaltyTime += S ? t.submitTime - e.startTime : _ && !k.accepted ? 12e5 : 0,
k.submissionId = S ? t.submissionId : k.submissionId,
!w && k.waitingJudgeCount++,
g.submitCount += 1,
y && (g.acceptedCount += 1),
y && (g.firstBloodTime = Math.min(g.firstBloodTime, t.submitTime - e.startTime)),
t.contestId = n
}
}
)))
}
)),
f()(Ve).call(Ve, p, (function(t) {
var e = t.scoreMap;
delete t.scoreMap,
t.colorLevel = "",
t.isFollow = a !== t.uid && !!n[t.uid],
f()(Ve).call(Ve, u, (function(n) {
var i = n.problemId
, r = e[i] || {
accepted: !1,
acceptedTime: -1,
failedCount: 0,
finishJudge: !0,
firstBlood: !1,
fullScore: 0,
problemId: i,
score: 0,
submissionId: 0,
submit: !1,
waitingJudgeCount: 0
};
r.firstBlood = r.accepted && r.acceptedTime - r.contestBeginTime <= n.firstBloodTime,
t.scoreList.push(r),
t.acceptedCount += r.accepted ? 1 : 0,
t.totalScore += r.score,
t.penaltyTime += r.accepted && r.penaltyTime || 0,
delete r.penaltyTime
}
))
}
)),
Ue()(p).call(p, (function(t, e) {
return t.acceptedCount > e.acceptedCount ? -1 : t.acceptedCount < e.acceptedCount || t.penaltyTime > e.penaltyTime ? 1 : t.penaltyTime < e.penaltyTime ? -1 : 0
}
)),
f()(Ve).call(Ve, p, (function(t, e) {
var n = 0 === e ? null : p[e - 1];
t.ranking = n ? t.acceptedCount === n.acceptedCount && t.penaltyTime === n.penaltyTime ? n.ranking : e + 1 : 1
}
)),
{
myRankData: o,
problemData: u,
rankData: p
}
}
};
var Ge = n(31471)
, Ze = {
uid: +n(49548).getUid() || 0,
transform: function(t) {
var e = t.data
, n = t.follow
, i = t.limitTime
, r = +t.rankFrozenMillisecond || 0
, a = this.uid
, o = null
, s = D().state.contestId
, l = {}
, c = {}
, u = []
, d = 0
, p = {}
, h = [];
return f()(Ge).call(Ge, e.problemData, (function(t) {
var e = {
submitCount: 0,
acceptedCount: 0,
name: t.index,
problemId: t.problemId,
score: t.score,
firstBloodTime: Infinity
};
d += t.score,
c[t.problemId] = e,
u.push(e)
}
)),
f()(Ge).call(Ge, e.submitDataList, (function(t) {
var e = t.basicInfo || {}
, n = e.contestId
, u = 1 === e.contestType;
n && (f()(Ge).call(Ge, t.signUpUsers, (function(t) {
return l[t.uid] = t
}
)),
f()(Ge).call(Ge, t.submissions, (function(t) {
var f;
if (!(t.submitTime > e.endTime || t.submitTime > e.startTime + i || r && t.submitTime > e.endTime - r)) {
var m, g = t.problemId, v = c[g] || {}, b = l[t.uid] || {}, y = x()(f = "".concat(n, "_")).call(f, t.uid), w = 5 === t.status, _ = 0 !== t.status, C = qe.isCodeError(t.status), k = p[y];
if (!k)
k = {
acceptedCount: 0,
fullScore: d,
ranking: 0,
school: b.school,
scoreMap: {},
scoreList: [],
team: !!b.team,
totalScore: 0,
uid: t.uid,
userName: x()(m = "".concat(b.name)).call(m, u ? "_重现赛".concat(n) : ""),
timeConsumption: 0
},
h.push(k),
p[y] = k;
s === n && a && a === k.uid && (o = k);
var S = k.scoreMap[g] = k.scoreMap[g] || {
accepted: !1,
acceptedTime: -1,
failedCount: 0,
finishJudge: !1,
firstBlood: !1,
fullScore: v.score,
problemId: v.problemId,
score: 0,
submissionId: "",
submit: !0,
timeConsumption: 0,
waitingJudgeCount: 0
}
, T = +(t.rightCaseRate * S.fullScore).toFixed(2);
S.accepted = w,
S.acceptedTime = w ? t.submitTime : "",
S.failedCount += C ? 1 : 0,
S.finishJudge = S.finishJudge || _,
S.score = w ? S.fullScore : T,
S.timeConsumption = t.rightCaseRate > 0 ? t.timeConsumption : 0,
S.submissionId = t.submissionId,
!_ && S.waitingJudgeCount++,
v.submitCount += 1,
w && (v.acceptedCount += 1),
w && (v.firstBloodTime = Math.min(v.firstBloodTime, t.submitTime)),
t.contestId = n
}
}
)))
}
)),
f()(Ge).call(Ge, h, (function(t) {
var e = t.scoreMap;
delete t.scoreMap,
t.colorLevel = "",
t.isFollow = a !== t.uid && !!n[t.uid],
f()(Ge).call(Ge, u, (function(n) {
var i = n.problemId
, r = e[i] || {
accepted: !1,
acceptedTime: -1,
failedCount: 0,
finishJudge: !0,
firstBlood: !1,
fullScore: n.score,
problemId: i,
score: 0,
submissionId: 0,
submit: !1,
waitingJudgeCount: 0
};
r.firstBlood = r.accepted && r.acceptedTime <= n.firstBloodTime,
t.scoreList.push(r),
t.acceptedCount += r.accepted ? 1 : 0,
t.totalScore += r.score,
t.timeConsumption += r.timeConsumption || 0,
delete r.timeConsumption
}
))
}
)),
Ue()(h).call(h, (function(t, e) {
return t.totalScore > e.totalScore ? -1 : t.totalScore < e.totalScore || t.timeConsumption > e.timeConsumption ? 1 : t.timeConsumption < e.timeConsumption || t.acceptedCount > e.acceptedCount ? -1 : 0
}
)),
f()(Ge).call(Ge, h, (function(t, e) {
var n = 0 === e ? null : h[e - 1];
t.ranking = n ? t.totalScore === n.totalScore ? n.ranking : e + 1 : 1
}
)),
{
myRankData: o,
problemData: u,
rankData: h
}
}
};
var Je = n(31471)
, Ke = {
uid: +n(49548).getUid() || 0,
transform: function(t) {
var e = t.data
, n = t.follow
, i = t.limitTime
, r = +t.rankFrozenMillisecond || 0
, a = this.uid
, o = null
, s = D().state.contestId
, l = {}
, c = {}
, u = []
, d = 0
, p = {}
, h = [];
return f()(Je).call(Je, e.problemData, (function(t) {
var e = {
submitCount: 0,
acceptedCount: 0,
name: t.index,
problemId: t.problemId,
score: t.score,
firstBloodTime: Infinity
};
d += t.score,
c[t.problemId] = e,
u.push(e)
}
)),
f()(Je).call(Je, e.submitDataList, (function(t) {
var e = t.basicInfo || {}
, n = e.contestId
, u = 1 === e.contestType;
n && (f()(Je).call(Je, t.signUpUsers, (function(t) {
return l[t.uid] = t
}
)),
f()(Je).call(Je, t.submissions, (function(t) {
var f;
if (!(t.submitTime > e.endTime || t.submitTime > e.startTime + i || r && t.submitTime > e.endTime - r)) {
var m, g = t.problemId, v = c[g] || {}, b = l[t.uid] || {}, y = x()(f = "".concat(n, "_")).call(f, t.uid), w = 5 === t.status, _ = 0 !== t.status, C = qe.isCodeError(t.status), k = p[y];
if (!k)
k = {
acceptedCount: 0,
fullScore: d,
ranking: 0,
school: b.school,
scoreMap: {},
scoreList: [],
team: !!b.team,
totalScore: 0,
uid: t.uid,
userName: x()(m = "".concat(b.name)).call(m, u ? "_重现赛".concat(n) : ""),
timeConsumption: 0
},
h.push(k),
p[y] = k;
s === n && a && a === k.uid && (o = k);
var S = k.scoreMap[g] = k.scoreMap[g] || {
accepted: !1,
acceptedTime: -1,
failedCount: 0,
finishJudge: !1,
firstBlood: !1,
fullScore: v.score,
problemId: v.problemId,
score: 0,
submissionId: "",
submit: !0,
timeConsumption: 0,
waitingJudgeCount: 0
}
, T = !S.accepted && w
, E = !(!S.accepted && !w)
, I = +(t.rightCaseRate * S.fullScore).toFixed(2)
, L = E ? T : I > S.score;
S.accepted = E,
S.acceptedTime = T ? t.submitTime : S.acceptedTime,
S.failedCount += C ? 1 : 0,
S.finishJudge = S.finishJudge || _,
S.score = Math.max(S.score, w ? S.fullScore : I),
S.submissionId = L || !S.submissionId ? t.submissionId : S.submissionId,
S.timeConsumption = L ? t.rightCaseRate > 0 ? t.timeConsumption : 0 : S.timeConsumption,
!_ && S.waitingJudgeCount++,
v.submitCount += 1,
w && (v.acceptedCount += 1),
w && (v.firstBloodTime = Math.min(v.firstBloodTime, t.submitTime)),
t.contestId = n
}
}
)))
}
)),
f()(Je).call(Je, h, (function(t) {
var e = t.scoreMap;
delete t.scoreMap,
t.colorLevel = "",
t.isFollow = a !== t.uid && !!n[t.uid],
f()(Je).call(Je, u, (function(n) {
var i = n.problemId
, r = e[i] || {
accepted: !1,
acceptedTime: -1,
failedCount: 0,
finishJudge: !0,
firstBlood: !1,
fullScore: n.score,
problemId: i,
score: 0,
submissionId: 0,
submit: !1,
waitingJudgeCount: 0
};
r.firstBlood = r.accepted && r.acceptedTime <= n.firstBloodTime,
t.scoreList.push(r),
t.acceptedCount += r.accepted ? 1 : 0,
t.totalScore += r.score,
t.timeConsumption += r.timeConsumption || 0,
delete r.timeConsumption
}
))
}
)),
Ue()(h).call(h, (function(t, e) {
return t.totalScore > e.totalScore ? -1 : t.totalScore < e.totalScore || t.timeConsumption > e.timeConsumption ? 1 : t.timeConsumption < e.timeConsumption || t.acceptedCount > e.acceptedCount ? -1 : 0
}
)),
f()(Je).call(Je, h, (function(t, e) {
var n = 0 === e ? null : h[e - 1];
t.ranking = n ? t.totalScore === n.totalScore ? n.ranking : e + 1 : 1
}
)),
{
myRankData: o,
problemData: u,
rankData: h
}
}
};
var Qe = n(31471)
, Ye = n(40748)
, Xe = n(49548)
, tn = {
contestList: {},
submitList: {},
ratingColorLevel: {},
follow: null
}
, en = {
filter: function(t) {
var e, n = t.data, i = t.follow, r = t.cond || {}, a = +t.rankFrozenMillisecond || 0, o = t.call, s = D().state, l = D().getters, u = s.isOI ? Ze : s.isIOI ? Ke : We, d = (n = u.transform({
data: n,
follow: i,
limitTime: Math.abs(l.countDownTime),
rankFrozenMillisecond: a
})).rankData || [];
r.onlyMyFollow && (d = c()(Qe).call(Qe, d, (function(t) {
return t.isFollow
}
))),
r.searchUserName && (d = c()(Qe).call(Qe, d, (function(t) {
var e, n;
return t.userName && Ut()(e = t.userName).call(e, r.searchUserName) >= 0 || t.school && Ut()(n = t.school).call(n, r.searchUserName) >= 0
}
)));
var p = +t.limit || 0;
p > 0 && (d.length = Math.min(p, d.length));
var h = d.length
, m = r.pageSize || 50
, g = Ye.page(h, m)
, v = Math.max(1, +r.page || 1);
v > g && (v = 1);
var b = {
isContestFinished: l.isFinished,
basicInfo: {
contestBeginTime: s.startTime,
contestEndTime: s.endTime,
contestId: s.contestId,
pageCount: g,
pageCurrent: v,
pageSize: m,
rankCount: h,
rankType: s.isOI ? "OI" : "",
type: s.type
},
problemData: n.problemData,
myRankData: n.myRankData
};
d = Re()(d).call(d, (v - 1) * m, v * m),
b.rankData = d;
var y = []
, w = {}
, _ = n.myRankData;
f()(Qe).call(Qe, x()(e = []).call(e, (0,
ze.Z)(d), (0,
ze.Z)(_ ? [_] : [])), (function(t) {
y.push(t.uid),
w[t.uid] = t
}
)),
this.getUserRatingColorLevel({
ids: y,
call: function(t) {
f()(Qe).call(Qe, y, (function(e) {
return w[e] && (w[e].colorLevel = (t[e] || {}).colorLevel || "")
}
)),
o && o(Qe.json(dt()(b)))
}
})
},
getMatchList: function(t) {
var e = D().state
, n = tn.contestList;
if (n.sameContestList)
return t.call && t.call(n.sameContestList, n.defaultChooseIds),
void (t.always && t.always());
B().getSameContestList({
query: {
contestId: e.contestId
},
call: function(e) {
var i = e.data || []
, r = i.sameContests || []
, a = i.defaultChooseIds || [];
n.sameContestList = r,
n.defaultChooseIds = a,
D().commit("updateContestListSame", r),
D().commit("updateContestListChoose", a),
D().commit("updateContestDefaultChooseIds", a),
t.call && t.call(r, a)
},
error: function(e) {
return t.error && t.error(e)
},
always: function() {
return t.always && t.always()
}
})
},
getRankList: function(t) {
var e, n = tn.submitList, i = D().state.contestId, r = D().state.contestListChoose || [];
0 === r.length && r.push(i),
Ue()(r).call(r, (function(t, e) {
return t - e
}
));
var a = x()(e = "".concat(i, "_")).call(e, r.join("|"))
, o = n[a]
, s = (new Date).getTime();
if (o && o.createdAt && o.createdAt + 15e3 > s)
return t.call && t.call(o.data),
void (t.always && t.always());
B().getSubmitList({
query: {
currentContestId: i,
contestList: r
},
call: function(e) {
var i = e.data || {};
n[a] = {
data: i,
createdAt: (new Date).getTime()
},
t.call && t.call(i),
t.always && t.always()
},
error: function(e) {
t.error && t.error(e),
t.always && t.always()
}
})
},
getUserRatingColorLevel: function(t) {
var e = tn.ratingColorLevel
, n = t.ids
, i = []
, r = {}
, a = {};
if (f()(Qe).call(Qe, n, (function(t) {
return e[t] ? a[t] = e[t] : (!r[t] && i.push(t),
r[t] = !0)
}
)),
0 === i.length)
return t.call && t.call(a),
void (t.always && t.always());
B().getRatingColorLevel({
query: {
uids: i
},
call: function(n) {
var r = n.data || {};
f()(Qe).call(Qe, i, (function(t) {
e[t] = r[t],
a[t] = r[t]
}
)),
t.call && t.call(a)
},
error: t.error,
always: t.always
})
},
getUserFollow: function(t) {
if (!Xe.isLogin())
return n({});
var e = tn.follow;
if (e)
return n(e);
function n(e) {
t.call && t.call(e),
t.always && t.always()
}
B().getUserFollow({
type: "GET",
call: function(e) {
var n = (e.data || {}).uids || []
, i = Qe.toMap(n, (function(t) {
return {
key: t,
value: !0
}
}
));
tn.follow = i,
t.call && t.call(i)
},
error: t.error,
always: t.always
})
}
};
function nn(t, e) {
var n = a()(t);
if (s()) {
var i = s()(t);
e && (i = c()(i).call(i, (function(e) {
return d()(t, e).enumerable
}
))),
n.push.apply(n, i)
}
return n
}
var rn = n(54719)
, an = n(31471)
, on = n(49370)
, sn = n(7658)
, ln = {
show: function(t) {
var e = sn.extend(this)
, n = new e(t);
return on.wrap(n, {
width: 750,
title: "设置榜单展示范围",
ok: function() {
var t = n.val();
return t.length > 0 ? n.$emit("ok", t) : (on.alert("榜单展示范围不能为空"),
!0)
}
}),
n
},
props: ["contestList"],
components: {
Status: ht.Z,
None: wt
},
data: function() {
return {
isLoading: !0,
error: "",
items: [],
selected: {}
}
},
mounted: function() {
var t = this;
t.isLoading = !0,
en.getMatchList({
call: function(e, n) {
t.items = e,
t.selected = an.toMap(t.contestList || n, (function(t) {
return {
key: t,
value: !0
}
}
)),
t.popup.fixPosition()
},
error: function(e) {
return t.error = e.msg
},
always: function() {
return t.isLoading = !1
}
})
},
methods: {
val: function() {
return Ne()(an).call(an, this.selected)
},
actionSelect: function(t) {
var e = this;
if (t) {
var n = t.contestId
, i = e.selected[n];
delete e.selected[n],
!i && (e.selected[n] = !0),
e.selected = function(t) {
for (var e = 1; e < arguments.length; e++) {
var n, i, r = null != arguments[e] ? arguments[e] : {};
e % 2 ? f()(n = nn(Object(r), !0)).call(n, (function(e) {
(0,
w["default"])(t, e, r[e])
}
)) : m() ? v()(t, m()(r)) : f()(i = nn(Object(r))).call(i, (function(e) {
y()(t, e, d()(r, e))
}
))
}
return t
}({}, e.selected)
} else
e.selected = e.isAllChecked ? {} : an.toMap(e.items, (function(t) {
return {
key: t.contestId,
value: !0
}
}
))
},
formTime: function(t) {
return rn.form(new Date(t))
}
},
computed: {
isAllChecked: function() {
var t = this.selected;
return Ae()(an).call(an, this.items, (function(e) {
return !!t[e.contestId]
}
))
}
}
};
var cn = ln
, un = (0,
$.Z)(cn, (function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("div", {
staticClass: "pop-content clearfix"
}, [t.isLoading ? n("Status", {
attrs: {
loading: !0
}
}, [t._v("加载中...")]) : t.error ? n("Status", [t._v(t._s(t.error))]) : 0 === (t.items || []).length ? n("None") : n("table", [n("thead", [n("tr", [n("th", {
staticClass: "fn-left",
attrs: {
width: "6%"
}
}, [n("label", {
staticClass: "checkbox",
"class": t.isAllChecked ? "checked" : "",
on: {
click: function(e) {
return t.actionSelect()
}
}
}, [n("span", {
staticClass: "icons"
}), t._v("全部")])]), t._v(" "), n("th", {
attrs: {
width: "20%"
}
}, [t._v("相关比赛")]), t._v(" "), n("th", {
attrs: {
width: "20%"
}
}, [t._v("开始时间")])])]), t._v(" "), n("tbody", t._l(t.items, (function(e, i) {
return n("tr", {
key: i
}, [n("td", {
staticClass: "fn-left"
}, [n("label", {
staticClass: "checkbox",
"class": t.selected[e.contestId] ? "checked" : "",
on: {
click: function(n) {
return t.actionSelect(e)
}
}
}, [n("span", {
staticClass: "icons"
})])]), t._v(" "), n("td", {
domProps: {
innerHTML: t._s(e.name)
}
}), t._v(" "), n("td", [t._v(t._s(t.formTime(e.startTime)))])])
}
)), 0)])], 1)
}
), [], !1, null, null, null).exports
, dn = n(80798)
, pn = n.n(dn)
, fn = n(51027)
, hn = n.n(fn);
function mn(t, e) {
var n = a()(t);
if (s()) {
var i = s()(t);
e && (i = c()(i).call(i, (function(e) {
return d()(t, e).enumerable
}
))),
n.push.apply(n, i)
}
return n
}
function gn(t) {
for (var e = 1; e < arguments.length; e++) {
var n, i, r = null != arguments[e] ? arguments[e] : {};
e % 2 ? f()(n = mn(Object(r), !0)).call(n, (function(e) {
(0,
w["default"])(t, e, r[e])
}
)) : m() ? v()(t, m()(r)) : f()(i = mn(Object(r))).call(i, (function(e) {
y()(t, e, d()(r, e))
}
))
}
return t
}
var vn = n(13993)
, bn = n(31471)
, yn = {
components: {
Tooltip: hn()
},
props: ["rankItems", "problemItems", "basicInfo", "arrow"],
data: function() {
return {
defaultVal: "---"
}
},
methods: {
getSchool: function(t, e) {
var n = /填写/.test(t.school) ? "" : ft()(vn).call(vn, t.school);
return n && e ? this.fixStr(n, 32) : n
},
getProblemHref: function(t) {
return "#submit/" + encodeURIComponent(dt()({
problemIdFilter: t.problemId
}))
},
getAcceptedTime: function(t) {
return H.second(t.acceptedTime - (t.contestBeginTime || this.basicInfo.contestBeginTime))
},
getRankCls: function(t) {
var e = !!t.accepted
, n = e || t.failedCount > 0
, i = n ? e ? t.firstBlood ? "real-time-bg-blue" : "real-time-bg-green" : "real-time-bg-red" : "real-time-bg-grey";
return i
},
canShowItem: function(t) {
return t >= this.arrow.first && t <= this.arrow.last
},
fixStr: function(t, e) {
return vn.left(t, e || 50)
},
penaltyTime: bn.bind(H.second, H),
penaltyMinute: bn.bind(H.minute, H),
getAcceptedMinute: function(t) {
return H.minute(t.acceptedTime - (t.contestBeginTime || this.basicInfo.contestBeginTime))
}
},
computed: gn(gn({}, (0,
C.mapState)({
isManager: "isManager"
})), (0,
C.mapGetters)({
isFinished: "isFinished"
}))
};
var wn = yn
, _n = (0,
$.Z)(wn, (function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("div", {
staticClass: "rank-main clearfix acm-rank"
}, [n("div", {
staticClass: "real-time-box"
}, [n("table", [n("thead", {
ref: "rankHeader"
}, [t._m(0)]), t._v(" "), n("tbody", t._l(t.rankItems, (function(e, i) {
return n("tr", {
key: i,
staticClass: "real-time-bg-grey"
}, [n("td", [t._v(t._s(e.ranking))]), t._v(" "), n("td", [n("a", {
"class": "rate-score" + e.colorLevel,
attrs: {
href: "/acm/contest/profile/" + e.uid,
target: "_blank",
title: e.userName
}
}, [n("span", {
domProps: {
innerHTML: t._s(t.fixStr(e.userName) || t.defaultVal)
}
}), t._v(" "), e.team ? n("i", {
staticClass: "icon-nc-member"
}) : t._e()])]), t._v(" "), n("td", [e.isMine && !t.getSchool(e) ? n("a", {
staticClass: "nc-req-complete link-green",
attrs: {
href: "javascript:void(0);"
}
}, [t._v("点击设置")]) : t.getSchool(e) ? n("a", {
staticClass: "js-search-school link-green",
attrs: {
title: t.getSchool(e),
href: "javascript:void(0)"
},
domProps: {
innerHTML: t._s(t.getSchool(e, !0))
}
}) : [t._v(t._s(t.defaultVal))]], 2), t._v(" "), n("td", [n("span", {
staticClass: "platform-num"
}, [t._v(t._s(e.acceptedCount)), e.acceptedCount === (e.scoreList || []).length ? n("span", {
staticClass: "plat-label"
}, [t._v("AK")]) : t._e()])]), t._v(" "), n("td", {
staticClass: "lose-time"
}, [n("Tooltip", {
attrs: {
effect: "dark",
content: t.penaltyTime(e.penaltyTime),
placement: "bottom"
}
}, [n("p", [t._v(t._s(t.penaltyMinute(e.penaltyTime)))])])], 1)])
}
)), 0)])]), t._v(" "), n("div", {
staticClass: "real-time-coder"
}, [n("div", {
staticClass: "real-time-coder-main"
}, [t.arrow.isShowLeft ? n("a", {
staticClass: "icon-angle-left",
attrs: {
href: "javascript:void(0);"
},
on: {
click: function(e) {
return t.$emit("arrow", "pre")
}
}
}) : t._e(), t._v(" "), n("table", [n("thead", {
ref: "scoreHeader"
}, [n("tr", t._l(t.problemItems, (function(e, i) {
return n("th", {
directives: [{
name: "show",
rawName: "v-show",
value: t.canShowItem(i),
expression: "canShowItem(index)"
}],
key: i
}, [n("Tooltip", {
attrs: {
effect: "dark",
content: e.acceptedCount + "/" + e.submitCount,
placement: "bottom"
}
}, [n("a", {
attrs: {
href: t.getProblemHref(e),
target: "_blank"
}
}, [t._v("\n " + t._s(e.name) + "\n "), n("div", {
staticStyle: {
color: "#32ca99"
}
}, [t._v(t._s(e.acceptedCount))]), t._v(" "), n("div", {
staticStyle: {
color: "#999"
}
}, [t._v(t._s(e.submitCount))])])])], 1)
}
)), 0)]), t._v(" "), n("tbody", t._l(t.rankItems, (function(e, i) {
return n("tr", {
key: i
}, t._l(e.scoreList, (function(e, i) {
return n("td", {
directives: [{
name: "show",
rawName: "v-show",
value: t.canShowItem(i),
expression: "canShowItem(index)"
}],
key: i,
"class": t.getRankCls(e)
}, [n("Tooltip", {
attrs: {
effect: "dark",
content: t.getAcceptedTime(e),
placement: "bottom"
}
}, [n("p", [e.submissionId && (t.isFinished || t.isManager) ? n("a", {
attrs: {
href: "/acm/contest/view-submission?submissionId=" + e.submissionId,
target: e.submissionId && (t.isFinished || t.isManager) ? "_blank" : undefined
}
}, [t._v(t._s(t.getAcceptedMinute(e)))]) : n("span", [t._v(t._s(t.getAcceptedMinute(e)))])])]), t._v(" "), e.failedCount ? n("p", [t._v("(-" + t._s(e.failedCount) + ")")]) : t._e(), t._v(" "), n("div", {
directives: [{
name: "show",
rawName: "v-show",
value: (+e.waitingJudgeCount || 0) > 0,
expression: "(+item.waitingJudgeCount || 0) > 0"
}],
staticClass: "waiting-judge-count js-nc-title-tips",
attrs: {
"data-title": "待判题数量:" + e.waitingJudgeCount + "个"
}
}, [t._v(t._s(e.waitingJudgeCount))])], 1)
}
)), 0)
}
)), 0)]), t._v(" "), t.arrow.isShowRight ? n("a", {
staticClass: "icon-angle-right",
attrs: {
href: "javascript:void(0);"
},
on: {
click: function(e) {
return t.$emit("arrow", "next")
}
}
}) : t._e()])])])
}
), [function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("tr", [n("th", {
staticStyle: {
width: "32px"
}
}, [t._v("名次")]), t._v(" "), n("th", {
staticStyle: {
width: "80px"
}
}, [t._v("参赛者")]), t._v(" "), n("th", {
staticStyle: {
width: "80px"
}
}, [t._v("学校")]), t._v(" "), n("th", {
staticStyle: {
width: "37px"
}
}, [t._v("通过")]), t._v(" "), n("th", {
staticStyle: {
width: "37px"
}
}, [t._v("罚时")])])
}
], !1, null, null, null)
, xn = _n.exports;
function Cn(t, e) {
var n = a()(t);
if (s()) {
var i = s()(t);
e && (i = c()(i).call(i, (function(e) {
return d()(t, e).enumerable
}
))),
n.push.apply(n, i)
}
return n
}
function kn(t) {
for (var e = 1; e < arguments.length; e++) {
var n, i, r = null != arguments[e] ? arguments[e] : {};
e % 2 ? f()(n = Cn(Object(r), !0)).call(n, (function(e) {
(0,
w["default"])(t, e, r[e])
}
)) : m() ? v()(t, m()(r)) : f()(i = Cn(Object(r))).call(i, (function(e) {
y()(t, e, d()(r, e))
}
))
}
return t
}
var Sn = n(13993)
, Tn = {
props: ["rankItems", "problemItems", "basicInfo", "arrow"],
data: function() {
return {
defaultVal: "---"
}
},
methods: {
getSchool: function(t, e) {
var n = /填写/.test(t.school) ? "" : ft()(Sn).call(Sn, t.school);
return n && e ? this.fixStr(n, 32) : n
},
getProblemHref: function(t) {
return "#submit/" + encodeURIComponent(dt()({
problemIdFilter: t.problemId
}))
},
getScoreStyle: function(t) {
var e = +t.score || 0
, n = +t.fullScore || 0
, i = 0 === n ? 0 : Math.floor(100 * e / n);
return {
color: i > 80 ? "#39bf9c" : i > 60 ? "#ff5c1c" : i > 30 ? "#ffac1c" : "#d12a2a"
}
},
canShowItem: function(t) {
return t >= this.arrow.first && t <= this.arrow.last
},
fixStr: function(t, e) {
return Sn.left(t, e || 50)
},
formNum: n(31471).bind(H.formNum, H)
},
computed: kn(kn({}, (0,
C.mapState)({
isManager: "isManager"
})), (0,
C.mapGetters)({
isFinished: "isFinished"
}))
};
var En = Tn
, In = (0,
$.Z)(En, (function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("div", {
staticClass: "rank-main clearfix"
}, [n("div", {
staticClass: "real-time-box"
}, [n("table", [n("thead", {
ref: "rankHeader"
}, [t._m(0)]), t._v(" "), n("tbody", t._l(t.rankItems, (function(e, i) {
return n("tr", {
key: i,
staticClass: "real-time-bg-grey"
}, [n("td", [t._v(t._s(e.ranking))]), t._v(" "), n("td", [n("a", {
"class": "rate-score" + e.colorLevel,
attrs: {
href: "/acm/contest/profile/" + e.uid,
target: "_blank",
title: e.userName
}
}, [n("span", {
domProps: {
innerHTML: t._s(t.fixStr(e.userName) || t.defaultVal)
}
}), t._v(" "), e.team ? n("i", {
staticClass: "icon-nc-member"
}) : t._e()])]), t._v(" "), n("td", [e.isMine && !t.getSchool(e) ? n("a", {
staticClass: "nc-req-complete link-green",
attrs: {
href: "javascript:void(0);"
}
}, [t._v("点击设置")]) : t.getSchool(e) ? n("a", {
staticClass: "js-search-school link-green",
attrs: {
title: t.getSchool(e),
href: "javascript:void(0)"
},
domProps: {
innerHTML: t._s(t.getSchool(e, !0))
}
}) : [t._v(t._s(t.defaultVal))]], 2), t._v(" "), n("td", [n("span", {
staticClass: "platform-num"
}, [t._v(t._s(e.acceptedCount)), e.acceptedCount === (e.scoreList || []).length ? n("span", {
staticClass: "plat-label"
}, [t._v("AK")]) : t._e()])]), t._v(" "), n("td", [t._v("\n " + t._s(t.formNum(e.totalScore))), e.penaltyTime || e.timeConsumption ? [n("br"), t._v(t._s(e.penaltyTime || e.timeConsumption || 0) + " ms")] : t._e()], 2)])
}
)), 0)])]), t._v(" "), n("div", {
staticClass: "real-time-coder"
}, [n("div", {
staticClass: "real-time-coder-main"
}, [t.arrow.isShowLeft ? n("a", {
staticClass: "icon-angle-left",
attrs: {
href: "javascript:void(0);"
},
on: {
click: function(e) {
return t.$emit("arrow", "pre")
}
}
}) : t._e(), t._v(" "), n("table", [n("thead", {
ref: "scoreHeader"
}, [n("tr", t._l(t.problemItems, (function(e, i) {
return n("th", {
directives: [{
name: "show",
rawName: "v-show",
value: t.canShowItem(i),
expression: "canShowItem(index)"
}],
key: i,
staticStyle: {
padding: "7px 5px 6px"
}
}, [n("a", {
attrs: {
href: t.getProblemHref(e),
target: "_blank"
}
}, [t._v(t._s(e.name) + " (" + t._s(e.acceptedCount) + "/" + t._s(e.submitCount) + ")\n "), n("div", [t._v("满分: " + t._s(e.score) + "分")])])])
}
)), 0)]), t._v(" "), n("tbody", t._l(t.rankItems, (function(e, i) {
return n("tr", {
key: i
}, t._l(e.scoreList, (function(e, i) {
return n("td", {
directives: [{
name: "show",
rawName: "v-show",
value: t.canShowItem(i),
expression: "canShowItem(index)"
}],
key: i,
staticClass: "real-time-bg-grey"
}, [e.submit && e.finishJudge ? n("p", [n("a", {
attrs: {
href: t.isFinished || t.isManager ? "/acm/contest/view-submission?submissionId=" + e.submissionId : "javascript:void(0);",
target: t.isFinished || t.isManager ? "_blank" : undefined
}
}, [n("span", {
style: t.getScoreStyle(e)
}, [t._v(t._s(t.formNum(e.score)))])])]) : e.submit ? n("p", [t._v("正在判题")]) : n("p"), t._v(" "), n("div", {
directives: [{
name: "show",
rawName: "v-show",
value: (+e.waitingJudgeCount || 0) > 0,
expression: "(+item.waitingJudgeCount || 0) > 0"
}],
staticClass: "waiting-judge-count js-nc-title-tips",
attrs: {
"data-title": "待判题数量:" + e.waitingJudgeCount + "个"
}
}, [t._v(t._s(e.waitingJudgeCount))])])
}
)), 0)
}
)), 0)]), t._v(" "), t.arrow.isShowRight ? n("a", {
staticClass: "icon-angle-right",
attrs: {
href: "javascript:void(0);"
},
on: {
click: function(e) {
return t.$emit("arrow", "next")
}
}
}) : t._e()])])])
}
), [function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("tr", [n("th", {
staticStyle: {
width: "11%"
}
}, [t._v("名次")]), t._v(" "), n("th", {
staticStyle: {
width: "33%"
}
}, [t._v("参赛者")]), t._v(" "), n("th", {
staticStyle: {
width: "22%"
}
}, [t._v("学校")]), t._v(" "), n("th", {
staticStyle: {
width: "11%"
}
}, [t._v("通过")]), t._v(" "), n("th", {
staticStyle: {
width: "23%"
}
}, [t._v("总分")])])
}
], !1, null, null, null)
, Ln = In.exports;
function jn(t, e) {
var n = a()(t);
if (s()) {
var i = s()(t);
e && (i = c()(i).call(i, (function(e) {
return d()(t, e).enumerable
}
))),
n.push.apply(n, i)
}
return n
}
function Mn(t) {
for (var e = 1; e < arguments.length; e++) {
var n, i, r = null != arguments[e] ? arguments[e] : {};
e % 2 ? f()(n = jn(Object(r), !0)).call(n, (function(e) {
(0,
w["default"])(t, e, r[e])
}
)) : m() ? v()(t, m()(r)) : f()(i = jn(Object(r))).call(i, (function(e) {
y()(t, e, d()(r, e))
}
))
}
return t
}
var $n = n(13993)
, Fn = n(31471)
, Pn = {
props: ["rankItems", "problemItems", "basicInfo", "arrow"],
data: function() {
return {
defaultVal: "---"
}
},
methods: {
getSchool: function(t, e) {
var n = /填写/.test(t.school) ? "" : ft()($n).call($n, t.school);
return n && e ? this.fixStr(n, 32) : n
},
getProblemHref: function(t) {
return "#submit/" + encodeURIComponent(dt()({
problemIdFilter: t.problemId
}))
},
getScoreStyle: function(t) {
var e = +t.score || 0
, n = +t.fullScore || 0
, i = 0 === n ? 0 : Math.floor(100 * e / n);
return {
color: i > 80 ? "#39bf9c" : i > 60 ? "#ff5c1c" : i > 30 ? "#ffac1c" : "#d12a2a"
}
},
canShowItem: function(t) {
return t >= this.arrow.first && t <= this.arrow.last
},
fixStr: function(t, e) {
return $n.left(t, e || 50)
},
formNum: Fn.bind(H.formNum, H),
penaltyTime: Fn.bind(H.second, H)
},
computed: Mn(Mn({}, (0,
C.mapState)({
isManager: "isManager"
})), (0,
C.mapGetters)({
isFinished: "isFinished"
}))
};
var On = Pn
, Nn = (0,
$.Z)(On, (function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("div", {
staticClass: "rank-main clearfix"
}, [n("div", {
staticClass: "real-time-box"
}, [n("table", [n("thead", {
ref: "rankHeader"
}, [t._m(0)]), t._v(" "), n("tbody", t._l(t.rankItems, (function(e, i) {
return n("tr", {
key: i,
staticClass: "real-time-bg-grey"
}, [n("td", [t._v(t._s(e.ranking))]), t._v(" "), n("td", [n("a", {
"class": "rate-score" + e.colorLevel,
attrs: {
href: "/acm/contest/profile/" + e.uid,
target: "_blank",
title: e.userName
}
}, [n("span", {
domProps: {
innerHTML: t._s(t.fixStr(e.userName) || t.defaultVal)
}
}), t._v(" "), e.team ? n("i", {
staticClass: "icon-nc-member"
}) : t._e()])]), t._v(" "), n("td", [e.isMine && !t.getSchool(e) ? n("a", {
staticClass: "nc-req-complete link-green",
attrs: {
href: "javascript:void(0);"
}
}, [t._v("点击设置")]) : t.getSchool(e) ? n("a", {
staticClass: "js-search-school link-green",
attrs: {
title: t.getSchool(e),
href: "javascript:void(0)"
},
domProps: {
innerHTML: t._s(t.getSchool(e, !0))
}
}) : [t._v(t._s(t.defaultVal))]], 2), t._v(" "), n("td", [n("span", {
staticClass: "platform-num"
}, [t._v(t._s(e.acceptedCount)), e.acceptedCount === (e.scoreList || []).length ? n("span", {
staticClass: "plat-label"
}, [t._v("AK")]) : t._e()])]), t._v(" "), n("td", [t._v("\n " + t._s(t.formNum(e.totalScore))), e.penaltyTime || e.timeConsumption ? [n("br"), t._v(t._s(t.penaltyTime(e.penaltyTime || e.timeConsumption || 0)))] : t._e()], 2)])
}
)), 0)])]), t._v(" "), n("div", {
staticClass: "real-time-coder"
}, [n("div", {
staticClass: "real-time-coder-main"
}, [t.arrow.isShowLeft ? n("a", {
staticClass: "icon-angle-left",
attrs: {
href: "javascript:void(0);"
},
on: {
click: function(e) {
return t.$emit("arrow", "pre")
}
}
}) : t._e(), t._v(" "), n("table", [n("thead", {
ref: "scoreHeader"
}, [n("tr", t._l(t.problemItems, (function(e, i) {
return n("th", {
directives: [{
name: "show",
rawName: "v-show",
value: t.canShowItem(i),
expression: "canShowItem(index)"
}],
key: i,
staticStyle: {
padding: "7px 5px 6px"
}
}, [n("a", {
attrs: {
href: t.getProblemHref(e),
target: "_blank"
}
}, [t._v(t._s(e.name) + " (" + t._s(e.acceptedCount) + "/" + t._s(e.submitCount) + ")\n "), n("div", [t._v("满分: " + t._s(e.score) + "分")])])])
}
)), 0)]), t._v(" "), n("tbody", t._l(t.rankItems, (function(e, i) {
return n("tr", {
key: i
}, t._l(e.scoreList, (function(e, i) {
return n("td", {
directives: [{
name: "show",
rawName: "v-show",
value: t.canShowItem(i),
expression: "canShowItem(index)"
}],
key: i,
staticClass: "real-time-bg-grey"
}, [e.submit && e.finishJudge ? n("p", [n("a", {
attrs: {
href: t.isFinished || t.isManager ? "/acm/contest/view-submission?submissionId=" + e.submissionId : "javascript:void(0);",
target: t.isFinished || t.isManager ? "_blank" : undefined
}
}, [n("span", {
style: t.getScoreStyle(e)
}, [t._v(t._s(t.formNum(e.score)))])])]) : e.submit ? n("p", [t._v("正在判题")]) : n("p"), t._v(" "), n("div", {
directives: [{
name: "show",
rawName: "v-show",
value: (+e.waitingJudgeCount || 0) > 0,
expression: "(+item.waitingJudgeCount || 0) > 0"
}],
staticClass: "waiting-judge-count js-nc-title-tips",
attrs: {
"data-title": "待判题数量:" + e.waitingJudgeCount + "个"
}
}, [t._v(t._s(e.waitingJudgeCount))])])
}
)), 0)
}
)), 0)]), t._v(" "), t.arrow.isShowRight ? n("a", {
staticClass: "icon-angle-right",
attrs: {
href: "javascript:void(0);"
},
on: {
click: function(e) {
return t.$emit("arrow", "next")
}
}
}) : t._e()])])])
}
), [function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("tr", [n("th", {
staticStyle: {
width: "11%"
}
}, [t._v("名次")]), t._v(" "), n("th", {
staticStyle: {
width: "33%"
}
}, [t._v("参赛者")]), t._v(" "), n("th", {
staticStyle: {
width: "22%"
}
}, [t._v("学校")]), t._v(" "), n("th", {
staticStyle: {
width: "11%"
}
}, [t._v("通过")]), t._v(" "), n("th", {
staticStyle: {
width: "23%"
}
}, [t._v("总分")])])
}
], !1, null, null, null)
, Dn = Nn.exports;
function An(t, e) {
var n = a()(t);
if (s()) {
var i = s()(t);
e && (i = c()(i).call(i, (function(e) {
return d()(t, e).enumerable
}
))),
n.push.apply(n, i)
}
return n
}
function zn(t) {
for (var e = 1; e < arguments.length; e++) {
var n, i, r = null != arguments[e] ? arguments[e] : {};
e % 2 ? f()(n = An(Object(r), !0)).call(n, (function(e) {
(0,
w["default"])(t, e, r[e])
}
)) : m() ? v()(t, m()(r)) : f()(i = An(Object(r))).call(i, (function(e) {
y()(t, e, d()(r, e))
}
))
}
return t
}
var Hn = n(8604)
, Rn = n(31471)
, Bn = n(54719)
, Un = n(71295)
, qn = n(49370)
, Vn = n(34807)
, Wn = 6
, Gn = null
, Zn = {
props: ["data"],
components: {
None: wt,
List0: xn,
List2: Ln,
List3: Dn,
Pagination: pn()
},
data: function() {
return {
arrow: {
first: 0,
last: 0,
isShowLeft: !1,
isShowRight: !1
},
fix: {
isShow: !1,
width: 0,
top: 0
}
}
},
mounted: function() {
var t = this;
t.$nextTick((function() {
t.initFixHeader(),
t.actionArrow("pre")
}
)),
t.isAcm && (Wn = 15)
},
methods: {
initFixHeader: function() {
var t = this
, e = t.$refs.list;
if (!e)
return;
var n = Hn(e.$el)
, i = "none" === Hn(".js-site-global-nav").css("display") ? 0 : Vn.getNavHeight()
, r = Un.getPosTop(n) - i
, a = Bn.frequency(50)
, o = Hn(window);
function s() {
t.fix.isShow && (Hn(t.$refs.rankTable).html(e.$refs.rankHeader.cloneNode(!0)),
Hn(t.$refs.scoreTable).html(e.$refs.scoreHeader.cloneNode(!0)))
}
t.fix = zn(zn({}, t.fix), {}, {
width: n.width(),
top: i
}),
t.$watch("fix.isShow", s),
t.$watch("arrow.first", s),
Gn && o.unbind("scroll", Gn),
Gn = function() {
a((function() {
var e = o.scrollTop();
t.fix = zn(zn({}, t.fix), {}, {
isShow: e > r
})
}
))
}
,
o.on("scroll", Gn),
t.$on("hook:destroyed", (function() {
return o.unbind("scroll", Gn)
}
)),
t.$watch("data", Gn)
},
formTime: function(t) {
return Bn.form(new Date(t))
},
actionPage: function(t) {
this.$emit("filter", {
page: t
})
},
actionRule: function() {
var t = Rt()(Rn).call(Rn, (this.rankTypeInfo || "").split("\n"), (function(t) {
return '<p style="margin-bottom:10px;">'.concat(t, "</p>")
}
)).join("");
new qn({
title: "计分规则",
hasNoFooter: !0,
content: '\n <div>\n <div style="font-size:14px;margin-bottom:30px;">'.concat(t, '</div>\n <div style="text-align:center;"><a class="btn btn-primary js-close-popup" href="javascript:void(0)">我知道了</a></div>\n </div>')
})
},
actionArrow: function(t) {
var e = this
, n = Wn
, i = e.arrow
, r = e.problemItems.length
, a = Math.max(0, i.first + ("pre" === t ? -1 : 1) * n)
, o = a + n;
o > r && (o = r,
a = Math.max(0, o - n));
e.arrow = {
first: a,
last: o - 1,
isShowLeft: a > 0,
isShowRight: o < r
}
}
},
computed: zn(zn({
rankItems: function() {
return this.data.rankData || []
},
problemItems: function() {
return this.data.problemData || []
},
isAcm: function() {
return !this.isOI && !this.isIOI
}
}, (0,
C.mapState)({
rankTypeInfo: "rankTypeInfo",
endTime: "endTime",
isOI: "isOI",
isIOI: "isIOI",
rankFrozenTime: "rankFrozenTime",
isNeedRankFrozen: "isNeedRankFrozen",
rankFrozenMinute: "rankFrozenMinute"
})), (0,
C.mapGetters)({
isStart: "isStart",
isFinished: "isFinished",
isInFrozenRank: "isInFrozenRank"
}))
};
var Jn = Zn
, Kn = (0,
$.Z)(Jn, (function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("div", [t.isStart ? n("div", {
staticStyle: {
padding: "10px 0",
"font-size": "14px"
}
}, [t.isFinished ? [t._v("排行榜已在 " + t._s(t.formTime(t.endTime)) + " 比赛结束后正式封榜,比赛时间段之外的提交不计入排行。")] : t.isNeedRankFrozen ? [t._v(" 排行榜" + t._s(t.isInFrozenRank ? "已" : "将") + "在 " + t._s(t.formTime(t.rankFrozenTime)) + " 比赛结束前" + t._s(t.rankFrozenMinute) + "分钟封榜,比赛结束前最后" + t._s(t.rankFrozenMinute) + "分钟内的提交将在比赛结束后计入排行榜。比赛时间段之外的提交不计入排行。 ")] : [t._v("排行榜将在 " + t._s(t.formTime(t.endTime)) + " 比赛结束时封榜,比赛时间段之外的提交不计入排行。")], t._v(" "), t.isOI ? [t._v("OI赛制比赛的代码提交状态将在比赛结束后3分钟内进行更新,比赛过程中不显示代码提交状态。")] : t._e(), t._v(" "), t.isIOI ? [t._v("IOI赛制比赛的代码提交状态将在比赛进行中实时更新。")] : t._e(), t._v(" "), n("a", {
staticClass: "link-green",
attrs: {
href: "javascript:void(0);"
},
on: {
click: t.actionRule
}
}, [t._v("点击查看计分规则。")])], 2) : t._e(), t._v(" "), 0 === t.rankItems.length ? n("None") : [t.isOI ? n("List2", {
ref: "list",
attrs: {
arrow: t.arrow,
rankItems: t.rankItems,
problemItems: t.problemItems,
basicInfo: t.data.basicInfo
},
on: {
arrow: t.actionArrow
}
}) : t.isIOI ? n("List3", {
ref: "list",
attrs: {
arrow: t.arrow,
rankItems: t.rankItems,
problemItems: t.problemItems,
basicInfo: t.data.basicInfo
},
on: {
arrow: t.actionArrow
}
}) : n("List0", {
ref: "list",
attrs: {
arrow: t.arrow,
rankItems: t.rankItems,
problemItems: t.problemItems,
basicInfo: t.data.basicInfo
},
on: {
arrow: t.actionArrow
}
}), t._v(" "), n("Pagination", {
staticClass: "nc-el-container txt-center mt-4",
attrs: {
"current-page": t.data.basicInfo.pageCurrent,
total: t.data.basicInfo.rankCount,
"page-size": t.data.basicInfo.pageSize,
layout: "total, prev, pager, next, jumper",
"prev-text": "上一页",
"next-text": "下一页",
background: "",
"hide-on-single-page": ""
},
on: {
"update:currentPage": function(e) {
return t.$set(t.data.basicInfo, "pageCurrent", e)
},
"update:current-page": function(e) {
return t.$set(t.data.basicInfo, "pageCurrent", e)
},
"current-change": t.actionPage
}
}), t._v(" "), n("div", {
directives: [{
name: "show",
rawName: "v-show",
value: t.fix.isShow,
expression: "fix.isShow"
}],
ref: "fixHeader",
staticClass: "rank-main clearfix js-rank-main",
"class": t.isAcm ? "acm-rank" : "",
style: "width:" + t.fix.width + "px;position:fixed;top:" + t.fix.top + "px;"
}, [n("div", {
staticClass: "real-time-box"
}, [n("table", {
ref: "rankTable"
})]), t._v(" "), n("div", {
staticClass: "real-time-coder"
}, [n("div", {
staticClass: "real-time-coder-main"
}, [n("a", {
directives: [{
name: "show",
rawName: "v-show",
value: t.arrow.isShowLeft,
expression: "arrow.isShowLeft"
}],
staticClass: "icon-angle-left",
attrs: {
href: "javascript:void(0);"
},
on: {
click: function(e) {
return t.actionArrow("pre")
}
}
}), t._v(" "), n("table", {
ref: "scoreTable"
}), t._v(" "), n("a", {
directives: [{
name: "show",
rawName: "v-show",
value: t.arrow.isShowRight,
expression: "arrow.isShowRight"
}],
staticClass: "icon-angle-right",
attrs: {
href: "javascript:void(0);"
},
on: {
click: function(e) {
return t.actionArrow("next")
}
}
})])])])]], 2)
}
), [], !1, null, null, null).exports
, Qn = n(8604)
, Yn = n(7658)
, Xn = n(49548)
, ti = n(49370)
, ei = {
show: function(t) {
var e = Yn.extend(this)
, n = new e(t);
return ti.wrap(n, {
width: 878,
height: 962,
hasNoTitle: !0,
hasNoFooter: !0
}),
n
},
props: ["type", "data"],
mounted: function() {
var t = this;
t.$nextTick((function() {
var e = Qn(t.$el).parent();
e.css("border", "none"),
e.css("background-color", "rgba(255, 255, 255, 0)")
}
))
},
data: function() {
return {
uid: Xn.getUid()
}
},
methods: {
actionClose: function() {
this.popup.close()
}
},
computed: {
empty: function() {
var t = this;
return 1 === t.type && (!t.data.datas || 0 === t.data.datas.length)
}
}
};
var ni = ei
, ii = (0,
$.Z)(ni, (function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("div", {
staticClass: "pop-act-wrapper",
staticStyle: {
position: "relative"
}
}, [n("a", {
staticClass: "icon-nc-close",
attrs: {
href: "javascript:void(0)"
},
on: {
click: t.actionClose
}
}), t._v(" "), 2 === t.type ? [n("div", {
staticClass: "act-classes-box"
}, [n("img", {
attrs: {
src: "https://uploadfiles.nowcoder.com/activity/weeklycontest/badge/" + t.data.gradeParentId + ".png",
alt: ""
}
})])] : t._e(), t._v(" "), n("div", {
staticClass: "tips"
}, [t._v("\n " + t._s(t.empty ? "你在本场比赛中未获得任何称号" : "你在本场比赛中获得以下称号!!") + "\n ")]), t._v(" "), t.empty ? n("div", {
staticClass: "act-empty-tip"
}, [n("img", {
attrs: {
src: "//uploadfiles.nowcoder.com/images/20200624/6322587_1593000822823_761B0D46FE40645F2D7B815C2934D1D1",
alt: ""
}
}), t._v(" "), n("a", {
staticClass: "txt",
attrs: {
href: "//ac.nowcoder.com/discuss/444703"
}
}, [t._v(" 点此查看竞赛称号详情")])]) : n("div", {
staticClass: "pop-act-content",
staticStyle: {
width: "592px"
}
}, [1 === t.type ? n("ul", {
staticClass: "pop-match-list"
}, t._l(t.data.datas, (function(e) {
return n("li", {
key: e.titleId
}, [n("div", {
staticClass: "act-head"
}, [n("img", {
attrs: {
src: "https://uploadfiles.nowcoder.com/activity/acmexcitation/" + e.titleId + ".png",
alt: ""
}
})]), t._v(" "), n("div", {
staticClass: "act-cont"
}, [n("span", {
staticClass: "main"
}, [n("h2", [t._v(t._s(e.titleDesc))]), t._v(" "), n("div", [t._v(t._s(e.titleDetail))])]), t._v(" "), n("span", {
staticClass: "score"
}, [t._v("+1")]), t._v(" "), n("span", {}, [t._v("(共计 " + t._s(e.titleAllCount) + " 次)")])])])
}
)), 0) : 2 === t.type ? n("div", {
staticClass: "mb4"
}, [n("div", {
staticClass: "pop-classes-hd"
}, [t._v("\n " + t._s(t.data.gradeName) + "\n "), t._l(t.data.gradeDetailStar, (function(t) {
return n("i", {
key: t,
staticClass: "ico-star"
})
}
))], 2), t._v(" "), n("ul", {
staticClass: "pop-rank-list"
}, [t._l(t.data.questionArray, (function(e, i) {
return n("li", {
key: i
}, [n("span", {
staticClass: "pop-rank-num"
}, [t._v("题目 " + t._s(i + 1) + " 排名")]), t._v(" "), n("span", {
staticClass: "pop-rank-scale"
}, [t._v("\n " + t._s(e.rankRate > 0 ? "前 " + (100 * e.rankRate).toFixed(2) + "%" : "题目未完成") + "\n ")]), t._v(" "), n("span", {
staticClass: "pop-rank-star"
}, [t._v("\n " + t._s(e.starCount >= 0 ? "" : "扣除") + "\n "), t._l(Math.abs(e.starCount), (function(t) {
return n("i", {
key: t,
staticClass: "ico-star"
})
}
))], 2)])
}
)), t._v(" "), t.data.totalStarRank && t.data.totalStarRank.hasProtect ? n("li", [n("span", {
staticClass: "pop-rank-num"
}, [t._v("额外奖励")]), t._v(" "), n("span", {
staticClass: "pop-rank-scale"
}), t._v(" "), t._m(0)]) : t._e(), t._v(" "), t.data.totalStarRank ? n("li", [n("span", {
staticClass: "pop-rank-num"
}, [t._v("整场排名")]), t._v(" "), n("span", {
staticClass: "pop-rank-scale"
}, [t._v("前 " + t._s((100 * t.data.totalStarRank.rankRate).toFixed(2)) + "%")]), t._v(" "), n("span", {
staticClass: "pop-rank-star"
}, t._l(t.data.totalStarRank.starCount, (function(t) {
return n("i", {
key: t,
staticClass: "ico-star"
})
}
)), 0)]) : t._e()], 2), t._v(" "), n("div", {
staticClass: "pop-classes-ft"
}, [t._v("\n " + t._s(t.data.starChange >= 0 ? "" : "扣除") + "\n 合计 "), n("i", {
staticClass: "ico-star"
}), t._v(" X " + t._s(t.data.starChange) + "\n ")])]) : t._e()]), t._v(" "), t.empty ? t._e() : n("div", {
staticClass: "act-match-btn-box"
}, [n("a", {
staticClass: "act-match-btn",
attrs: {
href: "javascript:void(0)"
},
on: {
click: t.actionClose
}
}, [t._v("我知道了")])]), t._v(" "), n("div", {
staticClass: "pop-act-ft",
style: 1 === t.type ? "bottom: -158px" : ""
})], 2)
}
), [function() {
var t = this.$createElement
, e = this._self._c || t;
return e("span", {
staticClass: "pop-rank-star"
}, [e("i", {
staticClass: "ico-star"
})])
}
], !1, null, null, null).exports;
function ri(t, e) {
var n = a()(t);
if (s()) {
var i = s()(t);
e && (i = c()(i).call(i, (function(e) {
return d()(t, e).enumerable
}
))),
n.push.apply(n, i)
}
return n
}
var ai = n(49370)
, oi = {
data: function() {
return {
currentTime: (new Date).getTime()
}
},
computed: function(t) {
for (var e = 1; e < arguments.length; e++) {
var n, i, r = null != arguments[e] ? arguments[e] : {};
e % 2 ? f()(n = ri(Object(r), !0)).call(n, (function(e) {
(0,
w["default"])(t, e, r[e])
}
)) : m() ? v()(t, m()(r)) : f()(i = ri(Object(r))).call(i, (function(e) {
y()(t, e, d()(r, e))
}
))
}
return t
}({}, (0,
C.mapState)({
contestId: "contestId",
endTime: "endTime"
})),
methods: {
actionQuery: function() {
if (this.computing)
return;
B().getExcitation({
query: {
contestId: this.contestId
},
call: function(t) {
var e = t.data;
ii.show({
propsData: {
type: e.dataType,
data: e
}
})
},
error: function(t) {
var e = t.code
, n = t.msg;
if (2 === e)
return ai.alert("你的战绩正在计算中,请稍后查看");
ai.alert(n)
}
})
}
}
};
var si = oi
, li = (0,
$.Z)(si, (function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return t.currentTime >= t.endTime ? n("div", {
staticClass: "my-match-record",
on: {
click: t.actionQuery
}
}, [n("i", {
staticClass: "match-record-ico"
}), t._v(" "), n("span", [t._v("我的战绩")])]) : t._e()
}
), [], !1, null, null, null).exports;
function ci(t, e) {
var n = a()(t);
if (s()) {
var i = s()(t);
e && (i = c()(i).call(i, (function(e) {
return d()(t, e).enumerable
}
))),
n.push.apply(n, i)
}
return n
}
function ui(t) {
for (var e = 1; e < arguments.length; e++) {
var n, i, r = null != arguments[e] ? arguments[e] : {};
e % 2 ? f()(n = ci(Object(r), !0)).call(n, (function(e) {
(0,
w["default"])(t, e, r[e])
}
)) : m() ? v()(t, m()(r)) : f()(i = ci(Object(r))).call(i, (function(e) {
y()(t, e, d()(r, e))
}
))
}
return t
}
var di = n(8604)
, pi = n(49548)
, fi = n(11130)
, hi = n(64907)
, mi = {
components: {
Status: ht.Z,
List: Kn,
Score: li
},
mounted: function() {
var t = this;
t.isLoading = !0,
en.getMatchList({
call: function() {
t.$nextTick((function() {
t.initCpn(),
t.initSchool(),
t.fetchData()
}
))
},
error: function(e) {
return t.error = e.msg
},
always: function() {
return t.isLoading = !1
}
})
},
data: function() {
return {
param: {},
isLoading: !0,
error: "",
data: {}
}
},
methods: ui({
initCpn: function() {
var t = this
, e = di(t.$el)
, n = It.getParam()
, i = t.searchIpt = fi.transform(Gt()(e).call(e, ".js-search"), {
pressEnter: function() {
var e = It.getParam()
, n = ft()(di).call(di, i.val());
n !== e.searchUserName && t.refresh({
searchUserName: n || null
}, !0)
}
});
if (i.val(ft()(di).call(di, n.searchUserName)),
pi.isLogin()) {
var r = t.followChk = hi.transform(Gt()(e).call(e, ".js-only-my-follow"));
r.checked(!!n.onlyMyFollow),
r.listen("change", (function() {
return t.refresh({
searchUserName: null,
onlyMyFollow: r.isChecked()
}, !0)
}
))
}
},
initSchool: function() {
var t = this;
di(t.$el).on("click", ".js-search-school", (function(e) {
var n = di(e.currentTarget)
, i = ft()(di).call(di, n.attr("title"));
i && t.refresh({
searchUserName: i
}, !0)
}
))
},
refresh: function(t, e) {
di(window).scrollTop(0),
t && (e && (t.page = null),
It.addParam(t));
this.fetchData()
},
fetchData: function(t) {
var e = this
, n = It.getParam()
, i = ft()(di).call(di, n.searchUserName) || undefined
, r = !!n.onlyMyFollow
, a = n.contestList
, o = (e.contestListSame || []).length > 1;
if (o) {
var s = (e.isFinished && a ? a : e.contestDefaultChooseIds) || [];
o = 1 !== s.length || "".concat(s[0]) !== "".concat(e.contestId)
}
e.searchIpt.val(i || ""),
e.followChk && e.followChk.checked(r),
e.isLoading = !0;
var l = {
id: e.contestId,
page: n.page,
onlyMyFollow: r ? "true" : undefined,
searchUserName: i
};
if (a && e.updateContestListChoose(a),
!o)
return l.limit = e.rankLimit,
B().realTimeRankData2({
query: l,
call: function(t) {
var n = t.data;
if (!i && !r && n.myRankData) {
n.myRankData.isMine = !0;
var a = n.rankData || [];
a.unshift(n.myRankData),
n.rankData = a
}
e.data = n
},
error: function(t) {
return e.error = t.msg
},
always: function() {
return e.isLoading = !1
}
});
en.getUserFollow({
call: function(t) {
en.getRankList({
call: function(n) {
var a = !e.isFinished && e.isNeedRankFrozen && e.isInFrozenRank;
c()(en).call(en, {
data: n,
follow: t,
cond: l,
limit: e.rankLimit,
rankFrozenMillisecond: a ? e.rankFrozenMillisecond : 0,
call: function(t) {
if (!i && !r && t.myRankData) {
t.myRankData.isMine = !0;
var n = t.rankData || [];
n.unshift(t.myRankData),
t.rankData = n
}
e.data = ui({}, t),
e.$nextTick((function() {
return e.isLoading = !1
}
))
}
})
},
error: function(t) {
e.error = t.msg,
e.isLoading = !1
}
})
},
error: function(t) {
e.error = t.msg,
e.isLoading = !1
}
})
},
actionSelectRank: function() {
var t = this;
if (!pi.isLogin())
return;
var e = It.getParam()
, n = un.show({
propsData: {
contestList: e.contestList
}
});
n.$on("ok", (function(e) {
return t.refresh({
contestList: e
}, !0)
}
))
},
actionFilter: function(t) {
this.refresh(t, !("page"in t))
}
}, (0,
C.mapMutations)({
updateContestDefaultChooseIds: "updateContestDefaultChooseIds",
updateContestListChoose: "updateContestListChoose"
})),
computed: ui(ui({}, (0,
C.mapState)({
rankLimit: "rankLimit",
contestId: "contestId",
contestDefaultChooseIds: "contestDefaultChooseIds",
contestListSame: "contestListSame",
isReplay: "isReplay",
isNeedRankFrozen: "isNeedRankFrozen",
rankFrozenMillisecond: "rankFrozenMillisecond"
})), (0,
C.mapGetters)({
isFinished: "isFinished",
isInFrozenRank: "isInFrozenRank"
})),
watch: {
isLoading: function() {
this.$emit("change")
}
}
};
var gi = mi
, vi = (0,
$.Z)(gi, (function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("div", {
staticClass: "module-box"
}, [n("div", {
staticClass: "oprt-bar"
}, [t._m(0), t._v(" "), t._m(1), t._v(" "), t.isFinished ? n("label", {
staticClass: "checkbox nc-req-auth mr2",
on: {
click: t.actionSelectRank
}
}, [t._v("榜单范围设置")]) : t._e(), t._v(" "), t.data.myRankData ? n("score", {
staticStyle: {
float: "right"
}
}) : t._e()], 1), t._v(" "), t.isLoading ? n("Status", {
attrs: {
loading: !0
}
}, [t._v("加载中...")]) : t.error ? n("Status", [t._v(t._s(t.error))]) : n("List", {
attrs: {
data: t.data
},
on: {
filter: t.actionFilter
}
})], 1)
}
), [function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("div", {
staticClass: "search-input-wrap js-search"
}, [n("label", {
staticClass: "ico-search"
}), t._v(" "), n("input", {
attrs: {
type: "text",
placeholder: "输入用户名称/学校名称回车"
}
})])
}
, function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("label", {
staticClass: "js-only-my-follow checkbox nc-req-auth"
}, [n("span", {
staticClass: "icons"
}), t._v(" 查看我关注的人")])
}
], !1, null, null, null).exports;
function bi(t, e) {
var n = a()(t);
if (s()) {
var i = s()(t);
e && (i = c()(i).call(i, (function(e) {
return d()(t, e).enumerable
}
))),
n.push.apply(n, i)
}
return n
}
function yi(t) {
for (var e = 1; e < arguments.length; e++) {
var n, i, r = null != arguments[e] ? arguments[e] : {};
e % 2 ? f()(n = bi(Object(r), !0)).call(n, (function(e) {
(0,
w["default"])(t, e, r[e])
}
)) : m() ? v()(t, m()(r)) : f()(i = bi(Object(r))).call(i, (function(e) {
y()(t, e, d()(r, e))
}
))
}
return t
}
var wi = n(8604)
, _i = n(31471)
, xi = n(49370);
var Ci = {
mounted: function() {
var t = this;
t.$nextTick((function() {
return t.initContent()
}
))
},
methods: {
initContent: function() {
var t = this
, e = wi(t.$el);
function n() {
var n = Gt()(e).call(e, "a.js-action")
, i = t.isStart ? t.isFinished ? "2" : "1" : "0"
, r = {
0: "未开始",
1: "进行中",
2: "已结束"
}[i]
, a = {
0: "开始前",
1: "进行中",
2: "结束后"
};
f()(_i).call(_i, n, (function(t) {
t = wi(t);
var e = ft()(wi).call(wi, t.attr("data-valid"))
, n = e ? e.split(",") : []
, o = ft()(wi).call(wi, t.attr("data-href"))
, s = Rt()(_i).call(_i, n, (function(t) {
return a[t]
}
)).join("或");
t.removeAttr("data-href"),
t.removeAttr("data-valid");
var l = !!Gt()(_i).call(_i, n, (function(t) {
return t === i
}
));
if (0 === n.length || l)
return t.attr("href", o).attr("target", "_blank");
t.on("click", (function() {
var t;
return xi.alert(x()(t = "比赛".concat(s, "才能进行此操作,当前比赛")).call(t, r, ",无法进行此操作。"))
}
))
}
))
}
t.$watch("isStart", n),
t.$watch("isFinished", n),
n()
},
getEditUrl: function(t) {
var e, n, i = this, r = i.id;
return i.isPersonal || i.isSchool ? x()(e = "/acm/contest/admin/contest/".concat(t ? "edit_contest_index" : "edit_contest_problem_index", "?contestId=")).call(e, r) : x()(n = "/acm/contest/admin/".concat(t ? "edit_contest_index" : "edit_contest_problem_index", "?contestId=")).call(n, r)
}
},
computed: yi(yi({
isPersonal: function() {
return "16" === this.topCategoryId
},
isSchool: function() {
return "14" === this.topCategoryId
}
}, (0,
C.mapState)({
id: "id",
topCategoryId: "topCategoryId",
settingInfo: "settingInfo",
isReplay: "isReplay",
isManager: "isManager",
isAcmAdmin: "isAcmAdmin"
})), (0,
C.mapGetters)({
isStart: "isStart",
isFinished: "isFinished"
}))
}
, ki = (0,
$.Z)(Ci, (function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("div", [n("div", {
staticClass: "module-box"
}, [t._m(0), t._v(" "), n("div", {
staticClass: "module-body"
}, [n("div", {
staticClass: "edit-match-wrap"
}, [n("a", {
staticClass: "js-action edit-match-item",
attrs: {
"data-valid": "0,1",
href: "javascript:void(0);",
"data-href": t.getEditUrl(!0)
}
}, [n("i", {
staticClass: "edit-match-ico match-ico1"
}), t._v(" 编辑比赛信息")]), t._v(" "), !t.isReplay || t.isAcmAdmin ? n("a", {
staticClass: "js-action edit-match-item",
attrs: {
"data-valid": "0",
href: "javascript:void(0);",
"data-href": t.getEditUrl()
}
}, [n("i", {
staticClass: "edit-match-ico match-ico2"
}), t._v(" 编辑比赛题目")]) : t._e()])])]), t._v(" "), t.isReplay ? t._e() : [t.isPersonal || t.isSchool && !t.settingInfo.allowMessage ? t._e() : n("div", {
staticClass: "module-box"
}, [t._m(1), t._v(" "), n("div", {
staticClass: "module-body"
}, [n("div", {
staticClass: "edit-match-wrap"
}, [n("a", {
staticClass: "js-action edit-match-item",
attrs: {
href: "javascript:void(0);",
"data-href": "/acm/contest/admin/messages/" + t.id + "/index"
}
}, [n("i", {
staticClass: "edit-match-ico match-ico7"
}), t._v(" 比赛答疑")])])])]), t._v(" "), t.isManager ? n("div", {
staticClass: "module-box"
}, [t._m(2), t._v(" "), n("div", {
staticClass: "module-body"
}, [n("div", {
staticClass: "edit-match-wrap"
}, [t.isAcmAdmin || t.isSchool ? n("a", {
staticClass: "edit-match-item js-action",
attrs: {
href: "javascript:void(0);",
"data-href": t.isPersonal || t.isSchool ? "/acm/contest/admin/contest/sign-up-excel?contestId=" + t.id : "/admin/acm/sign-up-excel?id=" + t.id
}
}, [n("i", {
staticClass: "js-action edit-match-ico match-ico4"
}), t._v(" 导出报名名单")]) : t._e(), t._v(" "), n("a", {
staticClass: "js-action edit-match-item",
attrs: {
"data-valid": "2",
href: "javascript:void(0);",
"data-href": t.isPersonal || t.isSchool ? "/acm/contest/admin/contest/rank-data-excel?contestId=" + t.id : "/admin/acm/all-rank-data-excel?id=" + t.id
}
}, [n("i", {
staticClass: "edit-match-ico match-ico5"
}), t._v(" 导出排名名单")]), t._v(" "), t.isAcmAdmin || t.isSchool ? n("a", {
staticClass: "js-action edit-match-item",
attrs: {
"data-valid": "2",
href: "javascript:void(0);",
"data-href": t.isPersonal || t.isSchool ? "/acm/contest/admin/contest/cheat-data-excel?contestId=" + t.id : "/admin/acm/cheat-excel?id=" + t.id
}
}, [n("i", {
staticClass: "edit-match-ico match-ico6"
}), t._v(" 导出作弊信息")]) : t._e(), t._v(" "), t._e()])])]) : t._e()]], 2)
}
), [function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("div", {
staticClass: "module-head clearfix"
}, [n("h1", [t._v("编辑比赛信息")])])
}
, function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("div", {
staticClass: "module-head clearfix"
}, [n("h1", [t._v("比赛答疑")])])
}
, function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("div", {
staticClass: "module-head clearfix"
}, [n("h1", [t._v("导出比赛信息")])])
}
], !1, null, null, null).exports;
function Si(t, e) {
var n = a()(t);
if (s()) {
var i = s()(t);
e && (i = c()(i).call(i, (function(e) {
return d()(t, e).enumerable
}
))),
n.push.apply(n, i)
}
return n
}
function Ti(t) {
for (var e = 1; e < arguments.length; e++) {
var n, i, r = null != arguments[e] ? arguments[e] : {};
e % 2 ? f()(n = Si(Object(r), !0)).call(n, (function(e) {
(0,
w["default"])(t, e, r[e])
}
)) : m() ? v()(t, m()(r)) : f()(i = Si(Object(r))).call(i, (function(e) {
y()(t, e, d()(r, e))
}
))
}
return t
}
var Ei = n(54719)
, Ii = n(40748)
, Li = {
data: function() {
return {
isInitFinished: !1
}
},
mounted: function() {
var t = this;
t.$nextTick((function() {
t.isInitFinished = t.isFinished
}
))
},
methods: Ti({
formNum: function(t) {
return Ii.form(t)
},
actionNav: function(t) {
if (t && t.href)
return;
It.nav(t.value)
},
actionEvaluate: function() {
this.updateShowEvaluate(!0)
}
}, (0,
C.mapMutations)({
updateShowEvaluate: "updateShowEvaluate"
})),
computed: Ti(Ti({
leftTime: function() {
return Ei.second2data(Math.round(this.endCountDownTime / 1e3))
}
}, (0,
C.mapState)({
tagId: "tagId",
newLevel: "newLevel",
oldLevel: "oldLevel",
isEvaluate: "isEvaluate",
isNeedEvaluate: "isNeedEvaluate"
})), (0,
C.mapGetters)({
module: "module",
modules: "modules",
isStart: "isStart",
isFinished: "isFinished",
endCountDownTime: "endCountDownTime"
}))
};
var ji = Li
, Mi = (0,
$.Z)(ji, (function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("div", {
staticClass: "menu-box menu-line-box"
}, [n("ul", {
staticClass: "menu clearfix"
}, t._l(t.modules, (function(e, i) {
return n("li", {
key: i,
"class": t.module === e.value ? "selected" : "",
style: i + 1 === t.modules.length ? "margin-right:0;" : "",
on: {
click: function(n) {
return t.actionNav(e)
}
}
}, [n("a", {
attrs: {
href: e.href || "javascript:void(0);",
target: e.href ? "_blank" : undefined
}
}, [t._v(t._s(e.title))]), t._v(" "), e.ext ? n("span", {
domProps: {
innerHTML: t._s(e.ext)
}
}) : t._e()])
}
)), 0), t._v(" "), n("div", {
staticClass: "match-countdown",
style: t.isEvaluate && t.isFinished ? "margin-top:0" : ""
}, [t.isStart ? t.isFinished ? [t.isEvaluate ? [t.isInitFinished ? n("div", {
staticClass: "match-end-tips",
"class": t.newLevel >= t.oldLevel ? "rank-up" : "rank-down"
}, [n("i", {
staticClass: "icon-minus-sign"
}), t._v("\n 比赛已结束,你的本次成绩评级为LV" + t._s(t.newLevel) + "\n "), t.newLevel > t.oldLevel ? n("span", {
staticClass: "icon-nc-arrow-up font-green"
}) : t.newLevel < t.oldLevel ? n("span", {
staticClass: "icon-nc-arrow-down font-red"
}) : t._e()]) : n("div", {
staticClass: "match-end-tips rank-up"
}, [n("i", {
staticClass: "icon-minus-sign"
}), t._v(" 比赛已结束,能力评估中…")])] : t._e()] : [t._v("\n 距离比赛结束还有:\n "), t.leftTime.day > 0 ? [n("span", [t._v(t._s(t.formNum(t.leftTime.day)))]), t._v("\n 天\n ")] : t._e(), t._v(" "), n("span", [t._v(" " + t._s(t.formNum(t.leftTime.hour)))]), t._v("时 "), n("span", [t._v(t._s(t.formNum(t.leftTime.min)))]), t._v("分 "), n("span", [t._v(t._s(t.formNum(t.leftTime.second)))]), t._v("秒\n ")] : [t._v("比赛未开始,可进行题目预览")]], 2), t._v(" "), t.isFinished && !t.isEvaluate ? n("div", {
staticClass: "label-match-end"
}, [n("a", {
staticStyle: {
color: "#fff"
},
attrs: {
href: "/discuss/tag/" + t.tagId + "?type=101",
target: "_blank"
}
}, [n("i", {
staticClass: "icon-minus-sign"
}), t._v(" 比赛已结束,去参与讨论")])]) : t._e(), t._v(" "), n("a", {
directives: [{
name: "show",
rawName: "v-show",
value: t.isNeedEvaluate,
expression: "isNeedEvaluate"
}],
staticClass: "assess-btn",
attrs: {
href: "javascript:void(0);"
},
on: {
click: t.actionEvaluate
}
}, [t._v("我想评价题目")])])
}
), [], !1, null, null, null).exports;
function $i(t, e) {
var n = a()(t);
if (s()) {
var i = s()(t);
e && (i = c()(i).call(i, (function(e) {
return d()(t, e).enumerable
}
))),
n.push.apply(n, i)
}
return n
}
function Fi(t) {
for (var e = 1; e < arguments.length; e++) {
var n, i, r = null != arguments[e] ? arguments[e] : {};
e % 2 ? f()(n = $i(Object(r), !0)).call(n, (function(e) {
(0,
w["default"])(t, e, r[e])
}
)) : m() ? v()(t, m()(r)) : f()(i = $i(Object(r))).call(i, (function(e) {
y()(t, e, d()(r, e))
}
))
}
return t
}
var Pi = n(49548)
, Oi = n(49370)
, Ni = n(54719)
, Di = n(40748)
, Ai = n(4504)
, zi = n(8604)
, Hi = n(34807)
, Ri = n(10164)
, Bi = {
components: {
Tab: Mi,
ModuleCountDown: X,
ModulePassword: at,
ModuleDescription: ct,
ModuleQuestion: Dt,
ModuleSubmit: Pe,
ModuleRank: vi,
ModuleAdmin: ki
},
data: function() {
return {
isShow: !0
}
},
mounted: function() {
var t = this;
t.initTime(),
t.initReplay(),
t.initChat(),
t.initNotice(),
t.initNavStart(),
t.initFinish()
},
methods: Fi({
initTime: function() {
var t = this
, e = Ni.frequency(1e3)
, n = 0;
e((function(i, r) {
var a = t.systemTime;
t.updateSystemTime(a + i),
e(r),
n++,
t.isFinished || n % 10 != 9 || Ri.systemTime({
type: "GET",
call: function(e) {
return t.updateSystemTime(e.data.systemTime)
}
})
}
))
},
initReplay: function() {
var t = this
, e = t.id;
if (!Pi.isLogin())
return;
if (t.isReplay)
return;
B().getRelativeRunningContests({
query: {
contestList: [e]
},
call: function(n) {
var i = n.data || {};
i[e] && t.updateReplayUrl("/acm/contest/".concat(i[e]))
}
})
},
initChat: function() {
var t = this;
function e() {
var e = t.chat;
if (t.isStart && t.isSignUp && !t.isFinished)
!e && t.settingInfo.allowMessage && (t.chat = new P.Z({
manager: t,
contestId: t.id,
needFixBottom: !0,
signUpId: t.signUpId
}));
else {
if (!e)
return;
e.destroy(),
e.holderEl.remove(),
t.chat = null
}
}
t.$watch("isStart", e),
t.$watch("isSignUp", e),
t.$watch("isFinished", e),
e()
},
initNotice: function() {
var t = new O.Z({
renderTo: Hi.getSiteNav(),
renderBy: "after",
parent: zi(".nk-container")
});
Ai.listen("MSG_EVENT_NOTICE_SHOW", (function() {
t.showNotice.apply(t, arguments)
}
)),
Ai.listen("MSG_EVENT_NOTICE_HIDE", (function() {
t.closeNotice.apply(t, arguments)
}
))
},
initNavStart: function() {
var t = this;
function e() {
(t.isStart || t.isManager && t.isSignUp) && t.updateModule("question")
}
t.$watch("isSignUp", e),
t.$watch("isStart", e)
},
initFinish: function() {
var t = this;
t.$watch("isFinished", (function() {
var e, n;
t.isFinished && (e = Di.random(1, 20),
n = Oi.mask('比赛已结束,请耐心等待<span class="js-second">'.concat(e, "</span>秒...")),
Ni.countDown({
second: e,
call: function(t) {
return n.getEl(".js-second").html(t)
},
end: function() {
n && n.close(),
window.location.reload()
}
}))
}
))
},
actionChange: function() {
var t = this;
t.$nextTick((function() {
return t.chat && t.chat.fixPos()
}
))
}
}, (0,
C.mapMutations)({
updateModule: "updateModule",
updateSystemTime: "updateSystemTime",
updateReplayUrl: "updateReplayUrl"
})),
computed: Fi(Fi({}, (0,
C.mapState)({
id: "id",
onlyShowContent: "onlyShowContent",
paramId: "paramId",
signUpId: "signUpId",
settingInfo: "settingInfo",
systemTime: "systemTime",
isManager: "isManager",
isSignUp: "isSignUp",
isReplay: "isReplay"
})), (0,
C.mapGetters)({
module: "module",
isStart: "isStart",
isFinished: "isFinished"
})),
watch: {
module: function() {},
paramId: function() {
var t = this;
t.isShow = !1,
t.$nextTick((function() {
return t.isShow = !0
}
))
}
}
};
var Ui = Bi
, qi = (0,
$.Z)(Ui, (function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return t.isShow ? n("div", {
staticClass: "nk-main clearfix with-banner-page"
}, ["countdown" === t.module ? n("ModuleCountDown") : "password" === t.module ? n("ModulePassword") : [t.onlyShowContent ? t._e() : n("Tab"), t._v(" "), "description" === t.module ? n("ModuleDescription", {
on: {
change: t.actionChange
}
}) : t._e(), t._v(" "), "question" === t.module ? n("ModuleQuestion", {
on: {
change: t.actionChange
}
}) : t._e(), t._v(" "), "submit" === t.module ? n("ModuleSubmit", {
on: {
change: t.actionChange
}
}) : t._e(), t._v(" "), "admin" === t.module ? n("ModuleAdmin", {
on: {
change: t.actionChange
}
}) : t._e(), t._v(" "), "rank" === t.module ? n("ModuleRank", {
on: {
change: t.actionChange
}
}) : t._e()]], 2) : t._e()
}
), [], !1, null, null, null).exports
, Vi = n(7658)
, Wi = n(8604);
n(6813).ready({
initialize: function() {
var t = Wi(".js-container")
, e = D().state.onlyShowContent;
e && Wi(document.body).addClass("only-show-content"),
!e && this.initBanner(t),
this.initPage(t);
var n = window.gioInfo;
i.Z.competitionPage({
competitionType_var: n.competitionType_var,
competitionName_var: n.competitionName_var,
competitionSystem_var: n.competitionSystem_var,
sponsor_var: n.sponsor_var,
isOpen_var: n.isOpen_var
})
},
initBanner: function(t) {
var e = document.createElement("div");
t.before(e),
new Vi({
el: e,
store: D(),
render: function(t) {
return t(F)
}
})
},
initPage: function(t) {
new Vi({
el: t.get(0),
store: D(),
render: function(t) {
return t(qi)
}
})
}
})
},
71017: function(t, e, n) {
var i = n(98247)
, r = n(27946)
, a = n(7658)
, o = n(13984)
, s = n(13993)
, l = n(31471)
, c = n(64645);
a.use(o);
var u = window.pageInfo || {}
, d = u.settingInfo || {}
, p = +d.rankFrozenMillisecond || 0
, f = !!(window.globalInfo || {}).isAcmSuperAdmin;
t.exports = window.store = new o.Store({
state: function() {
return {
step: "",
paramId: "",
onlyShowContent: "true" === c.getParam("onlyShowContent"),
replayUrl: "",
topCategoryId: "".concat(u.topCategoryId || ""),
type: +u.type,
name: u.name,
password: u.password,
signUpCount: u.signUpCount,
description: i(s).call(s, u.description),
rankTypeInfo: u.rankTypeInfo,
isProblemOriginal: !!d.problemOriginal,
hideSignCount: !!d.hideSignCount,
rankLimit: +d.rankLimit || 0,
submitOnlySelf: !!d.submitOnlySelf,
id: u.contestId || u.evaluateId,
tagId: u.tagId,
signUpId: u.signUpId,
contestId: u.contestId,
evaluateId: u.evaluateId,
teamId: u.teamId,
teamName: u.teamName,
settingInfo: d,
needCharge: !!u.needCharge,
isEvaluate: u.isEvaluate,
isAcmAdmin: f,
isManager: f || u.isManager,
isSignUp: u.isSignUp,
isTeamSignUp: u.isTeamSignUp,
isTeamAdmin: u.isTeamAdmin,
isNeedEvaluate: !1,
isShowEvaluate: !1,
isReplay: 1 == +u.contestType,
isOI: 2 == +u.type,
isIOI: 3 == +u.type,
isNeedRankFrozen: !!d.needRankFrozen && p > 0,
rankFrozenMillisecond: p,
rankFrozenMinute: +d.rankFrozenMinute || 0,
filledPassword: !!u.filledPassword,
systemTime: u.startTime - u.countDownTime,
startTime: u.startTime,
signUpEndTime: u.signUpEndTime,
signUpStartTime: u.signUpStartTime,
endTime: u.endTime,
rankFrozenTime: u.endTime - p,
newLevel: u.newLevel,
oldLevel: u.oldLevel,
contestDefaultChooseIds: null,
contestListSame: null,
contestListChoose: null
}
},
getters: {
module: function(t, e) {
var n = t.step
, i = e.isStart || t.isManager && t.isSignUp
, a = "countdown" === n;
n && i !== a || (n = i ? "question" : "countdown");
if ("countdown" !== n) {
!!!r(l).call(l, e.modules, (function(t) {
return t.value === n
}
)) && (n = "question"),
e.isFilledPassword || (n = "password")
}
return n
},
modules: function(t, e) {
var n = []
, i = t.isEvaluate;
return !i && n.push({
title: "比赛说明",
value: "description"
}),
n.push({
title: "题目",
value: "question"
}),
n.push({
title: "提交",
value: "submit"
}),
!i && (t.isManager || e.isFinished || !e.isOI) && n.push({
title: "排名",
value: "rank"
}),
e.isFinished && n.push({
title: "解题&讨论",
href: "/acm/discuss/blogs?tagId=".concat(t.tagId),
ext: '<span class="menu-item-new">NEW</span>'
}),
!i && t.isManager && (!t.isReplay || !e.isStart || t.isAcmAdmin) && n.push({
title: "管理比赛",
value: "admin"
}),
n
},
forceOnlyMyStatusFilter: function(t, e) {
return !!t.settingInfo.forceOnlyMyStatusFilter && (!t.isAcmAdmin && (!t.isManager && !e.isFinished))
},
countDownTime: function(t) {
return t.startTime - t.systemTime
},
signUpEndCountDownTime: function(t) {
return t.signUpEndTime - t.systemTime
},
signUpStartCountDownTime: function(t) {
return t.signUpStartTime - t.systemTime
},
endCountDownTime: function(t) {
return t.endTime - t.systemTime
},
isStart: function(t, e) {
return e.countDownTime <= 0
},
isFinished: function(t, e) {
return e.endCountDownTime <= 0
},
isSignUpStart: function(t, e) {
return e.signUpStartCountDownTime <= 0
},
isSignUpFinished: function(t, e) {
return e.signUpEndCountDownTime <= 0
},
isInFrozenRank: function(t, e) {
return e.endCountDownTime > 0 && e.endCountDownTime <= t.rankFrozenMillisecond
},
isFilledPassword: function(t, e) {
return !t.settingInfo.needPassword || t.filledPassword
}
},
mutations: {
updateReplayUrl: function(t, e) {
t.replayUrl = e
},
updateModule: function(t, e) {
t.step = e
},
updateParamId: function(t, e) {
t.paramId = e
},
updateSignUp: function(t) {
var e = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
"isSignUp"in e && (t.isSignUp = !!e.isSignUp),
"isTeamSignUp"in e && (t.isTeamSignUp = !!e.isTeamSignUp)
},
updateSystemTime: function(t, e) {
t.systemTime = e
},
updateNeedEvaluate: function(t, e) {
t.isNeedEvaluate = e
},
updateShowEvaluate: function(t, e) {
t.isShowEvaluate = e
},
updateContestDefaultChooseIds: function(t, e) {
t.contestDefaultChooseIds = e || []
},
updateContestListSame: function(t, e) {
t.contestListSame = e || []
},
updateContestListChoose: function(t, e) {
t.contestListChoose = e || []
}
}
})
},
48568: function(t, e, n) {
"use strict";
n.d(e, {
Z: function() {
return wt
}
});
var i = n(95322)
, r = n.n(i)
, a = n(75533)
, o = n.n(a)
, s = n(17203)
, l = n.n(s)
, c = n(3266)
, u = n.n(c)
, d = n(85303)
, p = n.n(d)
, f = n(27946)
, h = n.n(f)
, m = n(47380)
, g = n.n(m)
, v = n(99734)
, b = n.n(v)
, y = n(91041)
, w = n.n(y)
, _ = n(70703)
, x = n(8604)
, C = n(31471)
, k = n(4504)
, S = n(3808)
, T = [];
k.listen("popupVueGlobalHideAll", (function() {
I && I.$hide && I.$hide(!0)
}
));
var E = {
props: ["isShow", "hasNoTitle", "hasNoFooter", "hasNoMove", "clickToHide", "noUnique", "hideOkBtn", "hideCancelBtn", "width", "height", "duration", "title", "content", "errorTips", "okTxt", "cancelTxt", "noHideDestroy"],
components: {
Layer: _.Z
},
data: function() {
return {
left: null,
top: null
}
},
created: function() {
var t = this;
!t.noUnique && I.$hide(),
t.initRef(),
t.$mount()
},
mounted: function() {
var t = this;
t.$nextTick((function() {
t.initDrag(),
t.initPosition(),
t.initDuration(),
t.initAction(),
t.fixPosition()
}
))
},
methods: {
initRef: function() {
var t = this;
T.push(t),
t.$on("hook:destroyed", (function() {
C.forReverse(T, (function(e, n) {
return e === t && p()(T).call(T, n, 1)
}
))
}
))
},
initDrag: function() {
var t = this
, e = x(t.$refs.popup)
, n = h()(e).call(e, ".js-popup-header");
!t.hasNoMove && n.get(0) && new S({
drag: n,
listeners: [{
name: "start",
handler: function() {
this.offset = {
left: g()(e.css("marginLeft"), 10),
top: g()(e.css("marginTop"), 10)
}
}
}, {
name: "drag",
handler: function() {
var e = this.offset
, n = e.left + this._moveX - this._downX
, i = e.top + this._moveY - this._downY;
t.left = n < 2 ? 1 : n,
t.top = i < 1 ? 1 : i
}
}, {
name: "drop",
handler: function() {
delete this.offset
}
}]
})
},
initPosition: function() {
var t = this
, e = t.$refs.layer;
function n() {
t.left = e.marginLeft,
t.top = e.marginTop
}
n(),
e.$watch("marginLeft", n),
e.$watch("marginTop", n),
t.$watch("isNeedShow", L)
},
initDuration: function() {
var t = this
, e = t.duration && g()(t.duration, 10) || 0;
if (e > 0) {
var n = window.setTimeout((function() {
return t.close()
}
), e);
t.$on("hook:destroyed", (function() {
return window.clearTimeout(n)
}
))
}
},
initAction: function() {
var t = this
, e = x(t.$refs.popup);
e.on("click", ".js-popup-close", C.bind(t.close, t)),
e.on("click", ".js-popup-cancel", C.bind(t.cancel, t)),
e.on("click", ".js-popup-ok", C.bind(t.ok, t))
},
fixPosition: L,
lang: C.bind(C.lang, C),
ok: function() {
this.$emit("ok"),
this.close()
},
cancel: function() {
this.$emit("cancel"),
this.close()
},
close: function() {
var t = this;
t.$emit("close"),
!t.noHideDestroy && t.$destroy()
},
fixVal: function(t, e) {
return C.id(t) ? t : e
}
},
computed: {
style: function() {
var t = this;
return {
width: (t.width || 520) + "px",
height: t.height ? t.height + "px" : undefined,
marginLeft: t.left + "px",
marginTop: t.top + "px"
}
},
isNeedShow: function() {
return this.isShow === undefined || !!this.isShow
}
}
}
, I = {
$hide: function(t) {
!t && k.fire("popupCpnGlobalHideAll"),
b()(C).call(C, w()(T).call(T, 0), (function(t) {
return t.close()
}
)),
T.length = 0
}
};
function L() {
var t = this;
t.isNeedShow && t.$nextTick((function() {
t.$refs.layer.center(t.$refs.popup)
}
))
}
var j = E
, M = n(51900)
, $ = (0,
M.Z)(j, (function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("Layer", {
ref: "layer",
attrs: {
isShow: t.isNeedShow,
isShowContent: !0,
needClick: t.clickToHide
},
on: {
click: t.close
},
scopedSlots: t._u([{
key: "default",
fn: function() {
return [n("div", {
ref: "popup",
staticClass: "pop-box",
style: t.style
}, [t.$scopedSlots.title ? t._t("title") : t.hasNoTitle ? t._e() : n("div", {
staticClass: "pop-title js-popup-header"
}, [t.$scopedSlots.closeBtn ? t._t("closeBtn") : n("a", {
staticClass: "pop-close",
attrs: {
href: "javascript:void(0);",
title: "关闭"
},
on: {
click: function(e) {
return e.stopPropagation(),
t.cancel.apply(null, arguments)
}
}
}), t._v(" "), t.errorTips ? n("span", {
staticClass: "pop-error-tip"
}) : t._e(), t._v(" "), n("h1", {
domProps: {
innerHTML: t._s(t.title)
}
})], 2), t._v(" "), t.$scopedSlots.content ? t._t("content") : n("div", {
staticClass: "pop-content",
domProps: {
innerHTML: t._s(t.content)
}
}), t._v(" "), t.$scopedSlots.footer ? t._t("footer") : t.hasNoFooter || t.hideOkBtn && t.hideCancelBtn ? t._e() : n("div", {
staticClass: "pop-footer clearfix"
}, [t.hideOkBtn ? t._e() : n("a", {
staticClass: "btn btn-primary confirm-btn",
attrs: {
href: "javascript:void(0);"
},
domProps: {
innerHTML: t._s(t.lang(t.okTxt || "确定"))
},
on: {
click: function(e) {
return e.stopPropagation(),
t.ok.apply(null, arguments)
}
}
}), t._v(" "), t.hideCancelBtn ? t._e() : n("a", {
staticClass: "btn btn-default cancle-btn",
attrs: {
href: "javascript:void(0);"
},
domProps: {
innerHTML: t._s(t.lang(t.cancelTxt || "取消"))
},
on: {
click: function(e) {
return e.stopPropagation(),
t.cancel.apply(null, arguments)
}
}
})])], 2)]
},
proxy: !0
}], null, !0)
})
}
), [], !1, null, null, null)
, F = $.exports
, P = n(7658)
, O = (n(31471),
P.extend(F),
F);
var N = n(79007)
, D = n(13205)
, A = n(7658)
, z = {
show: function() {
var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}
, e = A.extend(this)
, n = new e(t);
return n.$mount(),
n
},
props: ["item"],
data: function() {
return {
isLoading: !0,
error: "",
code: "",
visible: !0,
isOpen: !1
}
},
components: {
Ipt: N.Z,
NcPopup: O,
Status: D.Z
},
methods: {
actionSubmit: function() {
var t = this;
t.item.inviteCode = t.code,
t.isOpen ? l().getCheckoutCode({
type: "GET",
query: {
inviteType: 1,
itemId: t.item.contestId,
inviteCode: t.item.inviteCode
},
call: function(e) {
e.data;
t.$emit("submit", t.item),
t.visible = !1
},
error: function(e) {
e.msg;
t.$refs.input.setError("请输入正确的邀请码")
}
}) : (t.$emit("submit", t.item),
t.visible = !1)
}
},
mounted: function() {
this.isLoading = !1
}
};
var H = z
, R = (0,
M.Z)(H, (function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("nc-popup", {
attrs: {
isShow: t.visible,
noHideDestroy: !0,
width: 500,
hasNoTitle: !0,
hasNoFooter: !0
},
on: {
cancel: function(e) {
t.visible = !1
}
},
scopedSlots: t._u([{
key: "content",
fn: function() {
return [t.isLoading ? n("Status", {
attrs: {
loading: !0
}
}, [t._v("加载中...")]) : t.error ? n("Status", {
domProps: {
innerHTML: t._s(t.error)
}
}) : n("div", {
staticClass: "pop-content"
}, [n("a", {
staticClass: "pop-close",
attrs: {
href: "javascript: void(0);",
title: "关闭"
},
on: {
click: function(e) {
t.visible = !1
}
}
}), t._v(" "), n("div", {
staticClass: "pop-tips-img"
}, [n("img", {
attrs: {
src: "//static.nowcoder.com/fe/style/images/common/res/tips/5.png",
alt: ""
}
})]), t._v(" "), n("div", {
staticClass: "pop-tips-title"
}, [t._v("当前比赛正在参加活动哦~"), t.item.fissionActivityInfo.detailLink ? n("a", {
staticClass: "font-green",
attrs: {
href: t.item.fissionActivityInfo.detailLink
}
}, [t._v("点击查看详情")]) : t._e()]), t._v(" "), t.isOpen ? t._e() : n("div", {
staticClass: "submit-btnbox"
}, [n("div", [n("a", {
staticClass: "btn btn-primary confirm-btn",
attrs: {
href: "javascript: viod(0);"
},
on: {
click: t.actionSubmit
}
}, [t._v("继续报名")])]), t._v(" "), t.item.fissionActivityInfo.isFissionActivity && !t.isOpen ? n("span", {
on: {
click: function(e) {
t.isOpen = !0
}
}
}, [t._v("输入好友邀请码>")]) : t._e()]), t._v(" "), n("div", {
directives: [{
name: "show",
rawName: "v-show",
value: t.item.fissionActivityInfo.isFissionActivity && t.isOpen,
expression: "item.fissionActivityInfo.isFissionActivity && isOpen"
}]
}, [n("div", {
staticClass: "form-group"
}, [n("label", {
staticClass: "control-label"
}, [t._v("邀请码")]), t._v(" "), n("div", {
staticClass: "control-group"
}, [n("Ipt", {
ref: "input",
attrs: {
iptStyle: "width:250px height: 26px",
placeholder: "请输入兑换码",
type: "text"
},
model: {
value: t.code,
callback: function(e) {
t.code = e
},
expression: "code"
}
})], 1)]), t._v(" "), n("div", {
staticClass: "submit-btnbox"
}, [n("a", {
staticClass: "btn btn-default cancle-btn",
staticStyle: {
"margin-right": "20px"
},
attrs: {
href: "javascript:void(0);"
},
on: {
click: function(e) {
t.isOpen = !1
}
}
}, [t._v("取消")]), t._v(" "), n("a", {
staticClass: "btn btn-primary cancle-btn",
attrs: {
href: "javascript:void(0);"
},
on: {
click: t.actionSubmit
}
}, [t._v("确定")])])])])]
},
proxy: !0
}])
})
}
), [], !1, null, "b5939fb0", null).exports
, B = n(76620)
, U = n(98247)
, q = n.n(U)
, V = n(8604)
, W = n(7658)
, G = n(49370)
, Z = n(54719)
, J = {
show: function(t) {
var e = W.extend(this)
, n = new e(t);
return G.wrap(n, {
title: "添加到题单",
width: 640,
hasNoFooter: !0
}),
n
},
props: ["id"],
components: {
Status: D.Z
},
data: function() {
return {
isLoading: !0,
error: "",
newestList: [],
items: [],
keyword: ""
}
},
mounted: function() {
var t = this;
t.initData((function() {
return t.initSearch()
}
))
},
methods: {
initData: function(t) {
var e = this;
u().getMyCreate({
type: "GET",
call: function(n) {
e.newestList = e.items = (n.data || {}).collections || [],
t && t()
},
error: function(t) {
return e.error = t.msg
},
always: function() {
e.isLoading = !1,
e.$nextTick((function() {
return e.popup.fixPosition()
}
))
}
})
},
initSearch: function() {
var t = this
, e = Z.frequency(250)
, n = {};
function i() {
var e = q()(V).call(V, t.keyword)
, i = e ? n[e] : t.newestList;
if (i)
return t.items = i;
u().getMyCreate({
query: {
query: e
},
call: function(i) {
var r = (i.data || {}).collections || [];
n[e] = r,
q()(V).call(V, t.keyword),
t.items = r
},
error: function(n) {
return e === q()(V).call(V, t.keyword) && (t.items = [])
}
})
}
t.$watch("keyword", (function() {
return e(i)
}
))
},
actionItem: function(t) {
this.$emit("submit", t.id)
},
actionCreate: function() {
this.$emit("create")
}
},
computed: {
isInSearch: function() {
return !!q()(V).call(V, this.keyword)
}
}
};
var K = J
, Q = (0,
M.Z)(K, (function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("div", {
staticClass: "pop-content"
}, [t.isLoading ? n("Status", {
attrs: {
loading: !0
}
}) : t.error ? n("Status", [t._v(t._s(t.error))]) : n("div", {
staticClass: "pop-note"
}, [n("div", {
staticClass: "pop-note-search"
}, [n("div", {
staticClass: "search-input-wrap"
}, [n("label", {
staticClass: "ico-search"
}), t._v(" "), n("input", {
directives: [{
name: "model",
rawName: "v-model",
value: t.keyword,
expression: "keyword"
}],
ref: "input",
attrs: {
type: "text",
placeholder: "请输入题单标题进行搜索"
},
domProps: {
value: t.keyword
},
on: {
input: function(e) {
e.target.composing || (t.keyword = e.target.value)
}
}
})])]), t._v(" "), n("dl", [n("dt", [t._v(t._s(t.isInSearch ? "搜索结果" : "最近更新的题单"))]), t._v(" "), n("dd", [0 === t.items.length ? n("p", {
staticStyle: {
"text-align": "center"
}
}, [t._v("没有题单,"), n("a", {
staticClass: "link-green js-close-popup",
attrs: {
href: "javascript:void(0);"
},
on: {
click: t.actionCreate
}
}, [t._v("点击添加到新的题单")])]) : t._l(t.items, (function(e, i) {
return n("p", {
key: i
}, [n("a", {
staticClass: "js-close-popup",
staticStyle: {
display: "block"
},
attrs: {
href: "javascript:void(0);"
},
on: {
click: function(n) {
return t.actionItem(e)
}
}
}, [t._v(t._s(e.name || "未命名题单"))])])
}
))], 2)]), t._v(" "), n("a", {
staticClass: "btn btn-primary btn-auto js-close-popup",
attrs: {
href: "javascript:void(0);"
},
on: {
click: t.actionCreate
}
}, [t._v("+添加到新的题单")])])], 1)
}
), [], !1, null, null, null).exports
, Y = n(29701)
, X = n(7658)
, tt = n(49370)
, et = n(13993)
, nt = {
show: function(t) {
var e = X.extend(this)
, n = new e(t);
return tt.wrap(n, {
width: 550,
title: "输入比赛邀请码",
hasNoFooter: !0
}),
n
},
props: ["id"],
components: {
Ipt: N.Z
},
data: function() {
return {
isLoading: !1,
password: ""
}
},
methods: {
actionSubmit: function() {
var t = this
, e = q()(et).call(et, t.password)
, n = t.$refs.password;
if (!e)
return n.setError("密码不能为空");
if (t.isLoading)
return;
l().submitPassword({
body: {
contestId: t.id,
password: e
},
call: function() {
t.$emit("submit"),
t.popup.close()
},
error: function(t) {
return n.setError(t.msg)
},
always: function() {
return t.isLoading = !1
}
})
}
}
};
var it = nt
, rt = (0,
M.Z)(it, (function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("div", {
staticClass: "pop-content clearfix"
}, [n("div", {
staticClass: "fn-center mb2",
staticStyle: {
"font-size": "14px"
}
}, [t._v("该场比赛为非公开比赛,输入比赛邀请码后即可查看比赛详情")]), t._v(" "), n("div", {
staticClass: "pop-input-wrap"
}, [n("Ipt", {
ref: "password",
staticStyle: {
margin: "0 auto",
width: "350px"
},
attrs: {
placeholder: "输入密码进入比赛",
iptStyle: "width:338px;"
},
model: {
value: t.password,
callback: function(e) {
t.password = e
},
expression: "password"
}
})], 1), t._v(" "), n("div", {
staticClass: "pop-collect-tag"
}, [n("a", {
staticClass: "btn btn-primary",
attrs: {
href: "javascript:void(0);"
},
on: {
click: t.actionSubmit
}
}, [t._v("确定")])])])
}
), [], !1, null, null, null).exports
, at = n(7658)
, ot = n(49370)
, st = {
props: ["call"],
show: function(t) {
var e = at.extend(this)
, n = new e(t);
return ot.wrap(n, {
width: 480,
title: "创建重现赛",
hasNoFooter: !0
}),
n
},
data: function() {
return {
type: "1"
}
},
methods: {
actionSelect: function(t) {
this.type = t
},
actionSubmit: function() {
var t = this;
t.call && t.call(t.type || "1"),
t.popup.close()
}
}
};
var lt = st
, ct = (0,
M.Z)(lt, (function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("div", {
staticClass: "pop-content"
}, [n("div", {
staticClass: "pop-signup clearfix"
}, [n("div", [n("a", {
staticClass: "pop-signup-item pop-signup-single",
"class": "1" === t.type ? "selected" : "",
attrs: {
href: "javascript:void(0);"
},
on: {
click: function(e) {
return t.actionSelect("1")
}
}
}, [n("span", [t._v("立即做题(30s后开始)")]), n("i", {
staticClass: "icon-nc-check"
})]), t._v(" "), n("a", {
staticClass: "pop-signup-item pop-signup-single",
"class": "2" === t.type ? "selected" : "",
attrs: {
href: "javascript:void(0);"
},
on: {
click: function(e) {
return t.actionSelect("2")
}
}
}, [n("span", [t._v("其他时间开始")]), n("i", {
staticClass: "icon-nc-check"
})])]), t._v(" "), n("div", {
staticClass: "submit-btnbox mt4"
}, [n("a", {
staticClass: "btn btn-primary js-submit",
attrs: {
href: "javascript:void(0);"
},
on: {
click: t.actionSubmit
}
}, [t._v("确定")])])])])
}
), [], !1, null, null, null).exports
, ut = n(87148)
, dt = n(84696)
, pt = n(31050)
, ft = n(64645)
, ht = n(55622)
, mt = n(49370)
, gt = n(56714)
, vt = n(49548)
, bt = n(31471)
, yt = n(54719)
, wt = (mt = n(49370),
{
collect: function(t) {
var e = Q.show({
propsData: {
id: t.id
}
});
function n(e) {
u().addQuestion({
body: {
cid: e,
problemId: t.id
},
call: function(e) {
mt.tips("添加成功"),
t.call && t.call()
},
error: function(e) {
mt.alert(e.msg),
t.error && t.error()
},
always: t.always
})
}
e.$on("submit", n),
e.$on("create", (function() {
B.Z.show({
propsData: {
isAdd: !0,
isAdmin: !!t.isAdmin,
userPlanType: t.userPlanType
}
}).$on("submit", n)
}
))
},
password: function(t) {
rt.show({
propsData: {
id: t.id
}
}).$on("submit", (function() {
return t.call && t.call()
}
))
},
signup: function(t) {
var e = this
, n = window.globalInfo || {}
, i = n.ownerId
, a = t.id
, o = t.isAdmin;
if (!vt.isLogin())
return gt.showLogin();
var s = mt.mask("请稍等...");
function c(t) {
var e = t.settingInfo
, n = +t.rating || 0
, i = +e.ratingUpperLimit || 0;
if (!("Waiting" === e.ratingStatus || "Finished" === e.ratingStatus) || !e.needRatingUpperLimit || n <= i)
return t.fissionActivityInfo.isFissionActivity ? d(t) : u(t);
mt.confirm("该比赛rating分数>".concat(i, "的学生参加比赛将不计算rating分数"), (function() {
t.fissionActivityInfo.isFissionActivity ? d(t) : u(t)
}
)).okBtn.html("仍要报名")
}
function u(t) {
var e = t.settingInfo;
if (e.signUpUrl && !o)
return window.location.href = e.signUpUrl;
if (!e.needSignUpField) {
var i = !!n.isAcmCompleteInfo;
return i && p(t, (function(e, n) {
return f(t, e, n)
}
)),
void (!i && Y.Z.show({
title: "比赛报名,补全个人信息",
callCb: function() {
return p(t, (function(e, n) {
return f(t, e, n)
}
))
}
}))
}
p(t, (function(n, i) {
dt.Z.show({
propsData: {
id: a,
signUpFields: e.signUpFields
}
}).$on("submit", (function(e) {
return f(t, n, i, e)
}
))
}
))
}
function d(t) {
R.show({
propsData: {
item: t
}
}).$on("submit", (function(t) {
return u(t)
}
))
}
function p(t, e) {
var n = t.settingInfo;
if (!n.allowTeamSignUp)
return e && e(i);
var r = n.needCharge;
r = r && (t.sourceId ? !t.chargedWaitSignUp : !o),
ut.Z.show({
contestId: a,
uid: i,
isFree: !r,
onlyTeam: (null == n ? void 0 : n.forbiddenPersonalSignUp) || !1,
call: function(t) {
return e && e(t.id, t.isTeam)
}
})
}
function f(e, n, i, s) {
var c = e.settingInfo
, u = ft.addParam({
targetUid: n
}, c.purchaseUrl)
, d = c.needCharge;
if (d = d && (e.sourceId ? !e.chargedWaitSignUp : !o))
return window.location.href = u;
l().signUpTeam({
body: {
contestId: a,
isTeam: i,
teamId: i ? n : undefined,
customInfoJson: s ? r()(s) : undefined,
inviteCode: e.inviteCode
},
call: function(e) {
var r = ht.show({
tips: "报名成功",
qrCode: "//uploadfiles.nowcoder.com/images/20171109/68_1510217575727_4FA2AAE7EB5CCAF0C9D0DEA16D00A11C",
content: "<p>关注公众号“比赛自动姬”</p><p>随时进行赛事查询、设置推送提醒</p><p>邀请小伙伴一起AC、一起抽奖吧^^</p>"
});
t.finish && r.popup.listen("close", t.finish),
t.call && t.call({
id: n,
isTeam: i
});
var a = e.gioData;
pt.Z.competitionRegister({
competitionType_var: a.competitionType_var,
competitionName_var: a.competitionName_var,
competitionSystem_var: a.competitionSystem_var,
sponsor_var: a.sponsor_var,
isOpen_var: a.isOpen_var
})
},
error: function(t) {
return mt.alert(t.msg)
}
})
}
l().contestInfo({
query: {
id: a
},
call: function(t) {
return function(t) {
if (!t.settingInfo.needPassword || t.filledPassword)
return c(t);
e.password({
id: a,
call: function() {
return c(t)
}
})
}(t.data)
},
error: function(t) {
return mt.alert(t.msg)
},
always: function() {
return s.close()
}
})
},
createReadonly: function(t) {
var e, n, i = bt.id(t.id);
if (!i)
return;
if (t.isForce)
return r(i);
if (!t.needCharge || t.isSignUp || t.isTeamSignUp)
return r(i);
function r(t) {
ct.show({
propsData: {
call: function(e) {
return "1" === e ? function(t) {
l().createReadonly({
body: {
sourceId: t
},
call: function(t) {
var e = mt.mask('重现赛将在<span class="js-count-down">30</span>秒后开启...')
, n = e.getEl(".js-count-down");
yt.countDown({
second: 30,
call: function(t) {
return n.html(t)
},
end: function() {
e.close(),
window.location.href = "/acm/contest/".concat(t.data.contestId)
}
})
},
error: function(t) {
return mt.alert(t.msg)
}
})
}(t) : a(t)
}
}
})
}
function a(t) {
window.location.href = "/acm/contest/admin/create_contest_index?sourceId=".concat(t)
}
new mt({
title: "付费提示",
hasNoTitle: !0,
content: o()(e = o()(n = '\n <a href="javascript:void(0);" class="pop-close" title="关闭"></a>\n <div class="pop-pay-match">\n <p>该场比赛是付费比赛,创建重现赛将收取本场比赛费用。</p>\n <div class="pop-pay-get">\n <div class="hd">支付后获得权益</div>\n <ul class="cont">\n <li>查看 <a href="/acm/contest/'.concat(i, '" class="link-green">《')).call(n, t.contestName, '》</a>比赛题目 </li>\n <li>无限次创建重现赛</li>\n </ul>\n <div class="ft">支付价格:<span class="font-green">')).call(e, t.price || "---", '元</span></div>\n </div>\n <div class="submit-btnbox"><a href="javascript:void(0);" class="btn btn-primary btn-auto js-close-popup js-submit">知道了,继续创建</a></div>\n </div>')
}).getEl(".js-submit").on("click", (function() {
return a(i)
}
))
}
})
},
29362: function(t, e, n) {
var i = n(27946)
, r = n(98247)
, a = n(91041)
, o = n(99734)
, s = n(8604)
, l = n(31471)
, c = n(9854)
, u = n(70570)
, d = n(90758)
, p = n(13993)
, f = n(71295)
, h = n(73888)
, m = t.exports = u.create();
u.mix(m, c, {
_template: ['<div class="btn-group attach-suggest" style="display:block;">', '<ul class="dropdown-menu js-menu" style="position:static;float:none;border-bottom:0;overflow-x:hidden;"></ul>', '<div style="padding:20px 0;text-align:center;font-size:14px;display:none;background:#fff;border:1px solid #d4d4d4;" class="js-none attach-suggest-none">没有结果</div>', "</div>"].join(""),
listeners: [{
name: "render",
type: "custom",
handler: function() {
var t = this
, e = t.getEl();
t.ulEl = i(e).call(e, "ul.js-menu"),
t.noneEl = i(e).call(e, "div.js-none"),
t.initIpt(),
t.initKeyboard()
}
}, {
name: "click ul.js-menu li.js-item",
handler: function(t) {
var e = s(t.currentTarget);
this.selectItem(e)
}
}],
show: function(t) {
var e = this
, n = new m(t = t || {});
d.wrap(n, {
target: t.input,
targetHover: t.targetHover,
attach: t.attach,
content: n.html(),
needReWidth: t.needReWidth,
noHover: t.noHover,
noEnterLeave: t.noEnterLeave,
noLeave: t.noLeave,
zIndex: t.zIndex,
attachShow: function() {
return n.refreshList()
},
attachHide: function() {
window.clearTimeout(e._refreshListTimer),
n.clear()
}
});
return n
}
}, {
initialize: function(t) {
var e = this;
e.isHide = !0,
e.reqStatusMap = {},
e.selectCls = t.selectCls || "selected",
e.ipt = s(t.input),
e.cache = {}
},
initIpt: function() {
var t = this;
t.ipt.on("keyup", (function() {
return t.refreshList()
}
))
},
initKeyboard: function() {
var t = this
, e = t.rawConfig;
t.getEl();
t.keyboardItem = h.mix({
el: s(e.focusIpt).length > 0 ? e.focusIpt : t.ipt,
canFire: function() {
return !t.isHide
},
getItem: function() {
var e;
return i(e = t.ulEl).call(e, "li.js-item")
},
up: function(e, n, i) {
s(i[n]).removeClass(t.selectCls),
s(i[e]).addClass(t.selectCls),
f.fixScrollPos(t.ulEl, i[e])
},
down: function(e, n, i) {
s(i[n]).removeClass(t.selectCls),
s(i[e]).addClass(t.selectCls),
f.fixScrollPos(t.ulEl, i[e])
},
selected: function(e, n, i) {
e >= 0 && t.selectItem(i[e])
},
keyup13: function(n, i, a, o) {
(!i || a < 0) && e.okNone && e.okNone({
pending: t.reqStatusMap[r(s).call(s, t.ipt.val())]
})
}
})
},
refreshList: function() {
var t = this
, e = t.ipt
, n = t.rawConfig
, i = r(s).call(s, e.val());
if (window.clearTimeout(t._refreshListTimer),
i === t._lastVal)
return;
t.clear(),
t._lastVal = i;
var o = t.cache[i];
if (o)
return n.dealList && (o = n.dealList(a(o).call(o, 0))),
t.renderList(o, i);
t.reqStatusMap[i] = !0,
t._refreshListTimer = window.setTimeout((function() {
n.reqList(i, (function(o) {
t.reqStatusMap[i] = !1,
o && !n.noCache && (t.cache[i] = o);
var l = r(s).call(s, e.val());
l === i && (n.dealList && o && (o = n.dealList(a(o).call(o, 0))),
t.renderList(o || [], l))
}
))
}
), 100)
},
renderList: function(t, e) {
var n = this
, r = n.rawConfig
, a = !!r.needSame
, c = ""
, u = {};
o(l).call(l, t, (function(t) {
var i = n.getId()
, r = n.getItem(t);
r._sid = i,
u[i] = r,
(a || r.text !== e) && (c += n.getItemStr(r))
}
)),
n._itemMap = u,
n.ulEl.html(c),
r.showNone ? (n.ulEl[c ? "show" : "hide"](),
n.noneEl[c ? "hide" : "show"](),
c && n.hideList(!1),
n.isHide = !c) : n.hideList(!c);
if (c) {
var d, p = Math.max(-1, +r.defaultIndex || 0);
p >= 0 && s(i(d = n.ulEl).call(d, "li.js-item")[p]).addClass(n.selectCls),
n.keyboardItem && (n.keyboardItem.index = p)
}
(r.rePositionInList || r.attach && r.attach.verReverse) && n.attach.fixPosition()
},
clear: function() {
var t, e = this;
e.ulEl.scrollTop(0),
i(t = e.ulEl).call(t, "." + e.selectCls).removeClass(e.selectCls),
e.keyboardItem.clear(),
e._lastVal = null
},
getItem: function(t) {
var e = this.rawConfig;
return e.getItem ? e.getItem(t) : t
},
getItemStr: function(t) {
var e = this.rawConfig;
return e.getItemStr ? e.getItemStr(t) : p.execTpl('<li class="js-item" data-id="#{_sid}"><a href="javascript:void(0);">#{text}</a></li>', t)
},
selectItem: function(t) {
var e = this
, n = e.rawConfig
, i = s(t).attr("data-id")
, r = i ? e._itemMap[i] : null;
r && (n.ok && n.ok(r),
e.clear(),
e.hideList())
},
hideList: function(t) {
var e = this
, n = (e.rawConfig,
e.getEl());
t = !1 !== t,
e.isHide = t,
n[t ? "removeClass" : "addClass"]("open"),
e.fire("hideList", t)
},
getId: function() {
var t = this;
return t.id = (t.id || 0) + 1,
l.id(t.id)
}
})
},
96382: function(t, e, n) {
var i = n(75441)
, r = n(17986)
, a = n(99734)
, o = n(75533)
, s = n(86990)
, l = n(8604)
, c = n(31471)
, u = n(9854)
, d = n(70570)
, p = n(90758)
, f = n(40748)
, h = n(14091)
, m = n(49370)
, g = n(13993)
, v = n(92551)
, b = n(12218).Z
, y = t.exports = d.create();
d.mix(y, u, {
_template: '\n <div style="overflow:hidden;cursor:pointer;position:relative;">\n <label for="#{id}" style="position:absolute;left:0;top:0;display:block;opacity:0;cursor:pointer;z-index:9999;"></label>\n <input id="#{id}" class="js-upload" #{multiple} #{accept} type="file" style="display:block;opacity:0;cursor:pointer;" />\n </div>',
listeners: [{
name: "render",
type: "custom",
handler: function() {
var t = this;
t.fileEl = t.getEl("input.js-upload"),
t.labeEl = t.getEl("label"),
t.resize(),
t.initIpt()
}
}],
show: function(t) {
t = t || {},
this.file = null;
var e = (t.attach || {}).extOffset || {}
, n = o()
, i = !1;
b.$i18n.locale = t.lang || b.$i18n.locale;
var r = new y(t)
, a = p.wrap(r, {
target: t.target,
attach: n,
content: r.html(),
zIndex: t.zIndex,
noHover: t.noHover,
needClick: t.needClick,
canShow: t.canShow,
attachShow: function() {
try {
if (r.resize(),
!a || i)
return;
i = !0,
a.rawConfig.attach = o(),
a.fixPosition()
} catch (t) {}
}
});
return r;
function o() {
return c.extend({}, t.attach, {
extOffset: {
left: e.left,
top: -1 * l(t.target).outerHeight() + (+e.top || 0)
}
})
}
}
}, {
initialize: function(t) {
var e = this
, n = t.fileType || "";
e.isMultiple = !!t.isMultiple,
e.needShowProgress = !t.noProgress,
e.needShowError = !t.noError,
e.types = c.uniq("*" === n ? [] : i(c).call(c, g.split(n.replace(/\*\./gi, ""), ";"), (function(t) {
return t.toLowerCase()
}
)))
},
initIpt: function() {
var t = this
, e = t.rawConfig
, n = t.fileEl;
n.on("change", (function(i) {
var a = r(c).call(c, n.get(0).files || [], (function(t) {
return !!t
}
));
if (0 === a.length)
return t.clear();
var o = t.isMultiple ? a : a[0];
t.file = o,
!e.manual && t.start(),
e.manual && t.fire("loaded", o)
}
))
},
start: function(t) {
var e = this
, n = e.rawConfig
, i = e.isMultiple ? e.file : [e.file]
, r = e.types
, l = e.unvalidCodeType;
a(c).call(c, i, (function(i) {
if (!i)
return e.error({
msg: b.$t("fileNotExist"),
code: l[0]
}, i);
var a = i.size;
if (0 === a)
return e.error({
msg: b.$t("fileSize0"),
code: l[1]
}, i);
if (r.length > 0) {
var u = (i.name || "").split(".").pop().toLowerCase();
if (!c.contains(r, u)) {
var d, p = n.getFileTypeTips ? n.getFileTypeTips(r) : "";
return p = p || o(d = "".concat(b.$t("fileTypeFailed"))).call(d, r.join(",")),
e.error({
msg: p,
code: l[2]
}, i)
}
}
var h = +n.fileSize || 0;
if (h > 0 && a > 1024 * h * 1024) {
var m, g, v = null !== (m = null === (g = n.getFileSizeExceedTips) || void 0 === g ? void 0 : g.call(n, h, a)) && void 0 !== m ? m : b.$t("fileSizeLimit", {
maxSize: h,
size: f.byte2Size(a)
});
return e.error({
msg: v,
code: l[3]
}, i)
}
var y = ["image/png", "image/jpg", "image/jpeg", "image/bmp", "image/gif", "image/webp", "image/psd", "image/svg", "image/tiff"]
, w = -1 !== s(y).call(y, i.type);
if (!n.unlockImgLimit && w && a > 10485760)
return e.error({
msg: b.$t("uploadLimitTip", {
fileSize: f.byte2Size(a)
}),
code: l[3]
}, i);
var _ = n.checkFile ? n.checkFile(i, a, u) : null;
if (_ && !_.right)
return e.error({
msg: _.msg || b.$t("checkFileTips"),
code: l[4]
}, i);
e.upload(i, t)
}
)),
e.clear()
},
upload: function(t, e) {
var n = this
, i = n.rawConfig
, r = i.getUpload ? i.getUpload.call(n, t, e) : null;
(r = r || n.getUpload(t, e)).uploadFile(t)
},
getUpload: function(t, e) {
var n = this
, i = n.rawConfig;
return new h(c.extend({}, i, {
extData: c.extend({}, i.extData, e),
progress: function(e, r, a) {
if (i.progress && i.progress.call(n, e, r, a, t),
n.needShowProgress) {
var o = n.getPopupTips();
o.showProgress("".concat(b.$t("uploading")) + e + "%", e),
r === a && o.showProgress(b.$t("Saving"), 100)
}
},
call: function(e) {
n.getPopupTips().close(),
i.call && i.call.call(n, e, t)
},
error: function(e) {
var r = 999 === ((e = e || {}) || {}).code;
if (i.error && i.error.call(n, e, t),
n.needShowError) {
var a = r ? b.$t("uploadFailed") : e.msg || b.$t("errorPleaseTry");
n.getPopupTips().showError(a)
}
r && (i.goLogin && i.goLogin(),
!i.goLogin && window.setTimeout((function() {
return window.location.reload()
}
), 2e3))
}
}))
},
getPopupTips: function() {
var t = this;
if (!t._popupTips) {
(t._popupTips = v.show({})).popup.listen("close", (function() {
return t._popupTips = null
}
))
}
return t._popupTips
},
error: function(t, e) {
var n = this
, i = n.rawConfig;
n.clear(),
n.needShowError && m.alert(t.msg || b.$t("errorPleaseTry")),
i.error && i.error.call(n, t, e)
},
clear: function() {
this.fileEl.val("")
},
resize: function() {
var t = this
, e = t.getEl()
, n = t.rawConfig
, i = l(n.target)
, r = i.outerWidth()
, a = i.outerHeight();
r && (e.outerWidth(r),
t.fileEl.outerWidth(r),
t.labeEl.outerWidth(r));
a && (e.outerHeight(a),
t.fileEl.outerHeight(a),
t.labeEl.outerHeight(a))
},
_getData: function(t) {
var e = this.types;
return {
id: "jsAttachUpload".concat(c.key()),
multiple: t.isMultiple ? 'multiple="1"' : "",
accept: 0 === e.length ? "" : 'accept="'.concat(i(c).call(c, e, (function(t) {
return ".".concat(t)
}
)).join(","), '"')
}
},
unvalidCodeType: ["nc-no-file", "nc-filesize-empty", "nc-filetype-error", "nc-filesize-limit", "nc-checkFile-error"]
})
},
12218: function(t, e, n) {
"use strict";
n.d(e, {
Z: function() {
return o
}
});
var i = n(91706)
, r = n(69691)
, a = n(7658);
a.use(i.Z);
var o = new a({
i18n: new i.Z({
locale: r.get() || "zh",
messages: {
zh: {
uploadLimitTip: "上传的文件不能超过10MB,当前文件{fileSize}.",
Saving: "正在保存文件,请稍等...",
fileTypeFailed: "文件类型不正确,支持的类型:",
fileNotExist: "上传文件不存在",
fileSize0: "文件大小为0",
fileSizeLimit: "上传的文件不能超过{maxSize}MB,当前文件{size}",
checkFileTips: "出现错误,请检查上传文件是否正确",
uploading: "正在上传:",
uploadFailed: "上传失败,请重新登录",
errorPleaseTry: "出现错误,请重试"
},
en: {
uploadLimitTip: "The maximum upload image size is limited to 10MB, the current image is at {fileSize}.",
Saving: "Saving…",
fileTypeFailed: "Incorrect file type. Supported types:",
fileNotExist: "The uploaded file does not exist. ",
fileSize0: "The file size is 0. ",
fileSizeLimit: "The file size should not exceed {maxSize} MB. The current file size is {size}.",
checkFileTips: "Error! Please check if the uploaded file is correct.",
uploading: "Uploading:",
uploadFailed: "Upload failed, please login again. ",
errorPleaseTry: "Error! Please try again."
}
}
})
})
},
65634: function(t, e, n) {
var i = n(27946)
, r = n(98247)
, a = n(75441)
, o = n(8604)
, s = n(31471)
, l = n(9854)
, c = n(70570)
, u = n(49370)
, d = n(71295)
, p = n(9022)
, f = n(64659)
, h = n(49548)
, m = t.exports = c.create()
, g = /\$\$([^\$]*?)\$\$|\$([^\$]*?)\$/g
, v = {
1: ["\\alpha", "\\beta", "\\gamma", "\\delta", "\\epsilon", "\\varepsilon", "\\zeta", "\\eta", "\\theta", "\\vartheta", "\\iota", "\\kappa", "\\lambda", "\\mu", "\\nu", "\\xi", "\\pi", "\\varpi", "\\rho", "\\varrho", "\\sigma", "\\varsigma", "\\tau", "\\upsilon", "\\phi", "\\varphi", "\\chi", "\\psi", "\\omega", "\\Gamma", "\\Delta", "\\Theta", "\\Lambda", "\\Xi", "\\Pi", "\\Sigma", "\\Upsilon", "\\Phi", "\\Psi", "\\Omega"],
2: ["\\times", "\\div", "\\cdot", "\\pm", "\\mp", "\\ast", "\\star", "\\circ", "\\bullet", "\\oplus", "\\ominus", "\\oslash", "\\otimes", "\\odot", "\\dagger", "\\ddagger", "\\vee", "\\wedge", "\\cap", "\\cup", "\\aleph", "\\Re", "\\Im", "\\top", "\\bot", "\\infty", "\\partial", "\\forall", "\\exists", "\\neg", "\\angle", "\\triangle", "\\diamond"],
3: ["\\leq", "\\geq", "\\prec", "\\succ", "\\preceq", "\\succeq", "\\ll", "\\gg", "\\equiv", "\\sim", "\\simeq", "\\asymp", "\\approx", "\\ne", "\\subset", "\\supset", "\\subseteq", "\\supseteq", "\\in", "\\ni", "\\notin"],
4: ["x_{a}", "x^{b}", "x_{a}^{b}", "\\bar{x}", "\\tilde{x}", "\\frac{a}{b}", "\\sqrt{x}", "\\sqrt[n]{x}", "\\bigcap_{a}^{b}", "\\bigcup_{a}^{b}", "\\prod_{a}^{b}", "\\coprod_{a}^{b}", "\\left( x \\right)", "\\left[ x \\right]", "\\left\\{ x \\right\\}", "\\left| x \\right|", "\\int_{a}^{b}", "\\oint_{a}^{b}", "\\sum_{a}^{b}{x}", "\\lim_{a \\rightarrow b}{x}", "\\left[ \\begin{matrix}\n 0 & 1 \\\\\n 1 & 0 \\\\\n\\end{matrix} \\right]"],
5: ["\\leftarrow", "\\rightarrow", "\\leftrightarrow", "\\Leftarrow", "\\Rightarrow", "\\Leftrightarrow", "\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow"]
};
c.mix(m, l, {
_template: '<div class="pop-formula"><div style="font-size:14px;text-align:center;padding:20px;">加载中...</div></div>',
listeners: [{
name: "render",
type: "custom",
handler: function() {
var t = this
, e = t.rawConfig;
p.css("//static.nowcoder.com/nc/style/0.0.05/fontcustom/latex/latex.css", (function() {
t.initContainer(e),
t.initData(),
t.initFormult(e),
t.initLatex(e),
t.popup.fixPosition(),
t[e.useLaTex ? "latex" : "formult"].ipt.focus()
}
))
}
}, {
name: "click ul.js-formula-list li",
handler: function(t) {
var e = o(t.currentTarget)
, n = this.formult.ipt
, i = e.attr("data-type")
, r = e.attr("data-index")
, a = v[i][r];
i && r && a && (n.range(a),
n.caret(n.range().end),
this.refreshFormultImage())
}
}],
show: function(t) {
var e = new m(t = t || {});
return u.wrap(e, {
content: e.html(),
title: "插入公式",
noUnique: !0,
width: 720,
ok: function() {
return e.submit()
},
cancel: function() {}
}),
e
}
}, {
initialize: function(t) {
this.useLaTex = !!t.useLaTex
},
initContainer: function(t) {
var e = this
, n = e.getEl()
, r = !!e.useLaTex
, a = ['<div class="pop-formula js-formula">', '<div class="pop-formula-panel">', '<section class="clearfix"><ul class="js-formula-list"></ul></section>', '<section class="pop-formula-txt"><textarea class="js-formula-ipt"></textarea></section>', '<section class="pop-formula-review js-formula-preview">预览</section>', "</div>", "</div>"].join("");
if (!r)
return n.html(a);
var o = ['<div class="pop-formula js-latex" style="display:none;">', '<section class="pop-formula-txt" style="border:0;padding:0;"><textarea class="js-latex-ipt" style="height:180px;" placeholder="输入带有LaTeX公式(公式分隔符: $)的内容,将自动解析"></textarea></section>', '<section class="pop-formula-review js-latex-preview">预览</section>', "</div>"].join("");
n.html(a + o);
var l = i(n).call(n, ".js-formula")
, c = i(n).call(n, ".js-latex")
, u = s.id(t.type);
e.tabType = new f({
renderTo: n,
renderBy: "prepend",
type: "line",
items: [{
text: "LaTex",
value: "2",
checked: "2" === u
}, {
text: "数学公式",
value: "1",
checked: "1" === u
}],
listeners: {
render: function() {
this.getEl().css("marginBottom", "20px")
},
change: function() {
var t = this.val();
l["1" === t ? "show" : "hide"](),
c["2" === t ? "show" : "hide"]()
}
}
})
},
initData: function() {
var t = this
, e = t.getEl();
t.latex = {
el: i(e).call(e, ".js-latex"),
ipt: i(e).call(e, ".js-latex-ipt"),
preview: i(e).call(e, ".js-latex-preview")
},
t.formult = {
el: i(e).call(e, ".js-formula"),
ipt: i(e).call(e, ".js-formula-ipt"),
list: i(e).call(e, ".js-formula-list"),
preview: i(e).call(e, ".js-formula-preview")
}
},
initLatex: function(t) {
var e = this;
if (e.useLaTex) {
d.bindChange(e.latex.ipt, s.bind(e.refreshLatexContent, e));
var n = r(o).call(o, t.valueLaTex);
n && e.valLatexText(n)
}
},
initFormult: function(t) {
var e = this;
e.initFormultTab(),
d.bindChange(e.formult.ipt, s.bind(e.refreshFormultImage, e));
var n = r(o).call(o, t.value);
e.valText(n)
},
initFormultTab: function() {
var t = this
, e = {}
, n = [{
text: "特殊字符",
value: "1"
}, {
text: "运算符号",
value: "2"
}, {
text: "关系符号",
value: "3"
}, {
text: "函数符号",
value: "4"
}, {
text: "箭头符号",
value: "5"
}]
, l = o('<div class="pop-formula-sub"></div>')
, c = a(s).call(s, n, (function(t) {
return '<a href="javascript:void(0);" class="js-formult-item" data-id="' + t.value + '">' + t.text + "</a>"
}
)).join("");
function u(n) {
var r = i(l).call(l, ".js-formult-item[data-id=" + n + "]")
, a = function(t) {
if (!e[t]) {
var n = {
1: 40,
2: 33,
3: 21,
4: 21,
5: 12
}[t]
, i = [];
s.forCount(n, (function(e) {
i.push('<li data-type="' + t + '" data-index="' + e + '"><i class="icon-latex-symbol' + t + "-" + (e + 1) + '"></i></li>')
}
)),
e[t] = i.join("")
}
return e[t]
}(n);
i(l).call(l, ".js-formult-item").removeClass("selected"),
r.addClass("selected"),
t.formult.list.html(a)
}
l.html(c),
t.formult.el.prepend(l),
u(n[0].value),
l.on("click", ".js-formult-item", (function(t) {
var e = o(t.currentTarget);
u(r(o).call(o, e.attr("data-id")))
}
))
},
refreshLatexContent: function() {
var t = this
, e = t.latex.preview
, n = t._lastLatexVal
, i = t.valLatexText();
if (t._lastLatexVal = i,
i) {
if (i !== n) {
var r = t.valLatexHtml(!0);
e.html('<div style="text-align:left;">' + r + "</div>")
}
} else
e.html("预览")
},
refreshFormultImage: function() {
var t = this
, e = t.formult.preview
, n = t.valText()
, r = t.valSrc(!0);
if (!r)
return e.html("预览");
var a = document.createElement("img");
a.onload = function() {
if (t.valText() === n) {
var r = i(e).call(e, "img");
r.get(0) ? r.replaceWith(a) : e.html(a)
}
}
,
a.onerror = function() {
return t.valText() === n && e.html("加载出错,请重试")
}
,
o(a).attr("src", r).attr("alt", n)
},
valType: function() {
var t = this;
return t.useLaTex && t.tabType ? t.tabType.val() : "1"
},
valLatexText: function(t) {
var e = this.latex.ipt;
if (0 === arguments.length)
return r(o).call(o, e.val());
e.val(r(o).call(o, t)),
this.refreshLatexContent()
},
valLatexHtml: function(t) {
var e = this;
return e.valLatexText().replace(g, (function(n, i, r) {
var a = e.fixTex(i || r)
, o = a.content;
return a.isTex ? '<img src="' + e.getSrc(o, t) + '" alt="' + o + '" />' : o
}
)).replace(/\n/g, "<br />")
},
valText: function(t) {
var e = this.formult.ipt;
if (0 === arguments.length)
return r(o).call(o, e.val());
e.val(r(o).call(o, t)),
this.refreshFormultImage()
},
valSrc: function(t) {
return this.getSrc(this.valText(), t)
},
submit: function() {
var t = this
, e = t.rawConfig;
if ("1" === t.valType()) {
var n = t.valSrc()
, i = t.valText();
return !n && u.alert("公式不能为空"),
!n || (e.upload && e.upload.call(t, i, n, (function() {
return t.popup.close()
}
)),
!e.upload && e.call && e.call.call(t, i, n),
!!e.upload)
}
if (!(i = t.valLatexText()))
return u.alert("内容不能为空"),
!0;
if (e.uploadBatch) {
var r = []
, a = [];
if (i.replace(g, (function(e, n, i) {
var o = t.fixTex(n || i)
, s = o.content;
o.isTex && (s && r.push(s),
s && a.push(t.getSrc(s)))
}
)),
r = s.uniq(r),
a = s.uniq(a),
r.length > 0)
return e.uploadBatch.call(t, r, a, (function(n) {
var r = i.replace(g, (function(e, i, r) {
var a = t.fixTex(i || r)
, o = a.content;
return a.isTex ? '<img src="' + (n[o] || t.getSrc(o)) + '" alt="' + o + '" />' : o
}
)).replace(/\n/g, "<br />");
e.callLaTex && e.callLaTex(r),
t.popup.close()
}
)),
!0
}
e.callLaTex && e.callLaTex(t.valLatexHtml())
},
getEquationDomain: function() {
if (!this.rawConfig.useNewServerDomain)
return "www.nowcoder.com";
var t = "";
t = h.isInDev() ? "hr-test.nowcoder.com" : h.isInPre() ? "hr-pre.nowcoder.com" : "hr.nowcoder.com";
return t
},
getSrc: function(t, e) {
var n = this.rawConfig;
return (t = r(o).call(o, t)) ? n.isMeetcode ? "https://www.meetcode.com/equation?tex=" + window.encodeURIComponent(t) + (e ? "&preview=true" : "") : "https://".concat(this.getEquationDomain(), "/equation?tex=") + window.encodeURIComponent(t) + (e ? "&preview=true" : "") : ""
},
fixTex: function(t) {
var e = t = r(o).call(o, t);
!1;
var n = this.isRightTex(e);
return {
isTex: n,
content: n ? t : e.replace(/\\\{/gi, "{").replace(/\\\}/gi, "}")
}
},
isRightTex: function(t) {
return !!t
},
showLoad: function() {
return new u({
hasNoTitle: !0,
hasNoFooter: !0,
noUnique: !0,
content: '<div style="font-size:14px;text-align:center;">图片上传中...</div>'
})
}
})
},
55622: function(t, e, n) {
var i = n(27946)
, r = (n(8604),
n(31471),
n(9854))
, a = n(70570)
, o = n(49370)
, s = t.exports = a.create();
a.mix(s, r, {
_template: ['<div class="pop-label">', '<a href="javascript:void(0);" class="pop-ico-close js-close-popup"></a>', '<div class="pop-label-tips js-tips">', '<div class="icon-ok-sign"></div>', "<p>#{tips}</p>", "</div>", '<div class="pop-jobs-tips">', '<div class="pop-jobs-qrcode"><img src="#{qrCode}" /></div>', '<div class="pop-jobs-txt">', "#{content}", "</div>", "</div>", "</div>"].join(""),
listeners: [{
name: "render",
type: "custom",
handler: function() {
var t = this.rawConfig
, e = this.getEl();
t.noTips && i(e).call(e, ".js-tips").remove()
}
}],
show: function(t) {
var e = new s(t = t || {});
o.wrap(e, {
content: e.html(),
width: t.width || 420,
hasNoTitle: !0,
hasNoMove: !0,
listeners: {
close: function() {
t.call && t.call()
}
}
});
return e
}
}, {
_getData: function(t) {
return {
tips: t.tips || "操作成功",
qrCode: t.qrCode || "//www.nowcoder.com/qr/to?url=" + window.encodeURIComponent(t.qrUrl || "") + "&size=250",
content: t.content
}
}
})
},
92551: function(t, e, n) {
var i = n(98247)
, r = n(8604)
, a = (n(31471),
n(9854))
, o = n(70570)
, s = n(49370)
, l = t.exports = o.create();
o.mix(l, a, {
_template: '<div class="subject-upload-inner" style="margin:0"></div>',
listeners: [{
name: "render",
type: "custom",
handler: function() {
var t = this;
t.docClick = function() {
t.popup && t.popup.close()
}
,
t.showProgress()
}
}, {
name: "destroy",
type: "custom",
handler: function() {
r(document).unbind("click", this.docClick)
}
}],
show: function(t) {
var e = new l(t = t || {});
s.wrap(e, {
content: e.html(),
width: 540,
hasNoTitle: !0,
hasNoMove: !0,
hasNoMargin: !0,
noUnique: !0
});
return e
}
}, {
showProgress: function(t, e) {
var n = this.getEl();
t = i(r).call(r, t) || " ",
e = e || 0,
n.html('<div class="upload-progress-bar"><span class="progress-txt" style="color:#ccc;">' + t + '</span><div class="progressing" style="width:' + e + '%;"></div></div>'),
r(document).unbind("click", this.docClick)
},
showError: function(t) {
this.getEl().html('<a href="javascript:void(0);" class="btn btn-block btn-default"><span class="upload-rusult-ico"><span class="fui-cross"></span></span>' + t + "</a>"),
r(document).one("click", this.docClick)
},
close: function() {
this.popup && this.popup.close()
}
})
},
64659: function(t, e, n) {
var i = n(99734)
, r = n(27946)
, a = n(6510)
, o = n(98247)
, s = n(75441)
, l = n(8604)
, c = n(31471)
, u = n(9854)
, d = n(70570)
, p = n(13993)
, f = t.exports = d.create();
d.mix(f, u, {
_template: '<div class="menu-box #{cls}"><ul class="menu clearfix">#{list}</ul></div>',
listeners: [{
name: "render",
type: "custom",
handler: function() {
var t = this
, e = t.rawConfig;
t.getEl();
e.noFireChangeOnRender || (e.change && e.change.call(t),
t.fire("change"))
}
}, {
name: "click .js-tab-item",
handler: function(t) {
var e = l(t.currentTarget).index();
this.index(e)
}
}]
}, {
initialize: function(t) {
var e = t.items || []
, n = !1;
i(c).call(c, e, (function(t) {
t.checked && n && (t.checked = !1),
n = n || t.checked
}
)),
!n && e.length > 0 && (e[0].checked = !0)
},
val: function(t, e) {
var n = this
, r = n.rawConfig.items;
if (0 === arguments.length) {
var a = n.index();
return -1 === a ? null : r[a].value
}
i(c).call(c, r, (function(i, r) {
if (i.value === t)
return n.index(r, e),
c.BREAK
}
))
},
index: function(t, e) {
var n = this
, i = n.rawConfig
, a = n.getEl()
, o = r(a).call(a, "li.js-tab-item")
, s = r(a).call(a, "li.js-tab-item.selected")
, c = 0 === s.length || s.index();
c = s.index();
if (0 === arguments.length)
return c;
t !== c && (o.removeClass("selected"),
l(o[t]).addClass("selected"),
!1 !== e && (i.change && i.change.call(n),
n.fire("change")))
},
updateText: function(t, e) {
var n = this.getEl()
, i = this.rawConfig.items
, s = a(c).call(c, i, (function(e) {
return e.value === t
}
));
if (s >= 0) {
var u;
i[s];
r(u = l(r(n).call(n, "li.js-tab-item")[s])).call(u, "a").html(o(l).call(l, e))
}
},
_getData: function(t) {
var e = s(c).call(c, t.items, (function(t) {
return p.execTpl('<li class="#{cls} js-tab-item"><a href="javascript:void(0)">#{text}</a></li>', {
cls: t.checked ? "selected" : "",
text: t.text
})
}
)).join("");
return {
cls: "line" === t.type ? "menu-line-box" : "",
list: e
}
}
})
},
97389: function(t, e, n) {
var i = n(9854)
, r = n(70570)
, a = t.exports = r.create();
r.mix(a, i, {
_template: ['<#{tag} class="tag-label">', '<span class="js-text"></span>', "</#{tag}>"].join(""),
listeners: [{
name: "render",
type: "custom",
handler: function() {
var t = this
, e = t.rawConfig;
"span" !== e.tag && t.getEl().attr("href", "javascript:void(0);"),
e.text && t.text(e.text),
e.checked && t.checked(),
e.needDel && t.needDel(),
e.disabled && t.disabled()
}
}, {
name: "click",
handler: function() {
var t = this;
t.rawConfig.needToggle && t.checked(!t.isChecked()),
!t.isDisabled() && t.fire("click")
}
}, {
name: "click.stop .js-del",
handler: function() {
this.fire("del")
}
}]
}, {
text: function(t) {
var e = this.getEl(".js-text");
if (0 === arguments.length)
return e.html();
e.html(t)
},
val: function() {
return this.rawConfig.value
},
checked: function(t) {
var e = this
, n = e.getEl();
e.isChecked() !== (t = !1 !== t) && (n[t ? "addClass" : "removeClass"]("selected"),
e.fire("toggle"))
},
isChecked: function() {
return this.getEl().hasClass("selected")
},
disabled: function(t) {
var e = this;
t = !1 !== t,
e.getEl()[t ? "addClass" : "removeClass"]("disabled"),
e.needDel(!t && e.rawConfig.needDel)
},
isDisabled: function() {
return this.getEl().hasClass("disabled")
},
needDel: function(t) {
var e = this.getEl(".js-del");
(t = !1 !== t) && !e.get(0) && this.getEl().append('<span class="del-tag js-del">x</span>'),
!t && e.get(0) && e.remove()
},
showDel: function(t) {
return this.getEl(".js-del").css("display", !1 === t ? "none" : "")
},
_getData: function(t) {
return {
tag: "span" === t.tag ? "span" : "a"
}
}
})
},
38759: function(t, e, n) {
var i = n(27946)
, r = n(85303)
, a = n(99734)
, o = n(98247)
, s = n(47380)
, l = n(153)
, c = n(8604)
, u = n(31471)
, d = n(9854)
, p = n(70570)
, f = n(71295)
, h = n(13993)
, m = t.exports = p.create();
p.mix(m, d, {
_showTips: [],
_template: ['<div class="tooltip top">', '<div class="tooltip-arrow"></div>', '<div class="tooltip-inner"></div>', "</div>"].join(""),
listeners: [{
name: "render",
type: "custom",
handler: function() {
var t = this
, e = t.rawConfig
, n = t.getEl();
t.contentEl = i(n).call(n, "div.tooltip-inner");
var r = u.id(e.width);
r && n.outerWidth(r),
!r && !e.autoWidth && n.css("max-width", 250),
t.val(e.content, !0),
e.noCenter && t.contentEl.css("textAlign", "left"),
t.theme(e.theme)
}
}, {
name: "destroy",
type: "custom",
handler: function() {
var t = this
, e = m._showTips;
u.forReverse(e, (function(n, i) {
return n._index === t._index && r(e).call(e, i, 1)
}
))
}
}],
index: 1,
wrap: function(t, e) {
if (!t || !e)
return;
e.content = t.html();
var n = this.show(e);
return t.tips = n,
n.listen("render", (function() {
return d.setEvents()
}
)),
n.listen("destroy", (function() {
return t.destroy && t.destroy()
}
)),
t.listen("destroy", (function() {
return n.destroy && n.destroy()
}
)),
n
},
show: function(t) {
var e, n = c(t.target), i = new m(u.extend({}, t, {
noRender: !0
})), r = 100, o = !!t.noEnterLeave;
return n.on("mouseenter", s).on("mouseleave", d).on("click", d),
!o && i.listen("render", (function() {
i.getEl().on("mouseenter", s).on("mouseleave", d)
}
)),
i.listen("destroy", (function() {
window.clearTimeout(e),
n.unbind("mouseenter", s).unbind("mouseleave", d).unbind("click", d),
i.getEl().unbind("mouseenter", s).on("mouseleave", d)
}
)),
i.listen("forceUniqHide", (function() {
window.clearTimeout(e),
i.hide()
}
)),
m._showTips.push(i),
i;
function s() {
window.clearTimeout(e),
e = window.setTimeout((function() {
l(),
(null == t ? void 0 : t.shareGio) && (null == t || t.shareGio()),
e = window.setTimeout((function() {
if (!i.__destroy) {
if (document.contains && !document.contains(n.get(0)))
return d();
l(),
e = window.setTimeout(arguments.callee, 500)
}
}
), 500)
}
), r)
}
function l() {
a(u).call(u, m._showTips, (function(t) {
return t !== i && t.fire("forceUniqHide")
}
)),
i.render(),
i.show(),
i.attachTo(n, t.attach)
}
function d() {
window.clearTimeout(e),
o && i.hide(),
!o && (e = window.setTimeout((function() {
return i.hide()
}
), r))
}
},
title: function(t, e) {
e = e || {};
var n, i = this, r = {}, s = m._commonTips = m._commonTips || new m(u.extend({}, e.initConf, {
noRender: !0
}));
if (t = o(c).call(c, t),
e = e || {},
!t)
return;
if (t = t.replace(/^\.+/, ""),
d(),
!e.keep)
return;
var l = function() {
window.clearTimeout(n),
n = window.setTimeout(d, 250)
};
return c(document).on("mousemove", l),
function() {
c(document).unbind("mousemove", l),
window.clearTimeout(n)
}
;
function d() {
var n = c("." + t);
0 !== n.length && a(u).call(u, n, (function(n) {
var a;
n = c(n);
var l = o(c).call(c, n.attr("data-tips-index"))
, d = o(c).call(c, n.attr("data-title")) || o(c).call(c, n.attr("title"))
, f = "white" === n.attr("data-theme")
, h = "1" === n.attr("data-tips-left")
, m = "1" === n.attr("data-tips-vert");
if (!l || !r[l]) {
n.removeAttr("title"),
n.attr("data-title", d);
var g = o(c).call(c, i.index++);
n.attr("data-tips-index", g),
r[g] = !0,
!e.keepCls && n.removeClass(t),
n.on("mouseenter", (function(t) {
window.clearTimeout(a);
var i = m ? u.extend({}, e.attachConf, {
verReverse: !0
}) : e.attachConf;
s._updateTxt(n, i),
s.theme(f),
s.contentEl && s.contentEl.css("textAlign", h ? "left" : "center"),
a = window.setTimeout((function() {
if (document.contains && !document.contains(n.get(0)))
return p(s, a);
s._updateTxt(n, i),
a = window.setTimeout(arguments.callee, 500)
}
), 500)
}
)).on("mouseleave", (function() {
return p(s, a)
}
)),
n.on("click", (function() {
return p(s, a)
}
))
}
}
))
}
function p(t, e) {
window.clearTimeout(e),
t.hide()
}
},
titleEl: function(t, e, n) {
2 === arguments.length && u.isFunction(e) && (n = e);
function i(t, e) {
window.clearTimeout(e),
t.hide()
}
a(u).call(u, t, (function(t) {
t = c(t);
var r, a = new m({
noRender: !0
}), o = "white" === t.attr("data-theme");
t.on("mouseenter", (function(n) {
window.clearTimeout(r),
a.theme(o),
a._updateTxt(t, e),
r = window.setTimeout((function() {
if (document.contains && !document.contains(t.get(0)))
return i(a, r);
a._updateTxt(t, e),
r = window.setTimeout(arguments.callee, 500)
}
), 500)
}
)).on("mouseleave", (function() {
return i(a, r)
}
)),
t.on("click", (function() {
return i(a, r)
}
)),
n && n(a)
}
))
}
}, {
initialize: function(t) {
t.renderTo = t.renderTo || c(document.body)
},
topArrow: function(t) {
this.getEl().removeClass("top bottom").addClass(!1 === t ? "bottom" : "top")
},
val: function(t, e) {
var n = this;
if (t = (t = o(c).call(c, t)).replace(/(\n)+|(\\n)+/g, "<br />"),
!n.rendered)
return;
n.contentEl.html(t || "&nbsp;"),
!0 === e && n.fixPosition()
},
attachTo: function(t, e) {
var n = this
, r = n.getEl();
if (!(t = c(t)).get(0))
return;
var a = f.attachTo(u.extend({
zIndex: 1e4
}, e, {
el: n.getEl(),
target: t
}));
n.topArrow(!!a.verReverse);
var o = i(r).call(r, "div.tooltip-arrow")
, d = t.outerWidth()
, p = r.outerWidth()
, h = s(r.css("left"), 10)
, m = 0;
if (!e || !e.horz)
if (l(a)) {
o.css("left", "50%"),
m = 1 + (p - d) / 2;
var g = s(o.css("left"), 10);
o.css("left", Math.min(g + m, p - 13))
} else if ((h -= (p - d) / 2) < 1 && (m = 1 - h,
h = 1),
r.css("left", h),
o.css("left", "50%"),
m > 0) {
g = s(o.css("left"), 10);
o.css("left", Math.max(g - m, 13))
}
},
fixPosition: function() {
var t = this.rawConfig;
this.attachTo(t.target, t.attach)
},
theme: function(t) {
var e = this
, n = e.getEl();
t = !!t,
e.isWhite !== t && (n[t ? "addClass" : "removeClass"]("tooltip-info"),
i(n).call(n, ".tooltip-arrow").html(t ? "<i></i>" : ""),
e.isWhite = t)
},
_updateTxt: function(t, e) {
var n = this;
if (!(t = c(t)).get(0))
return;
var i = "1" === t.attr("data-encode")
, r = o(c).call(c, t.attr("title")) || o(c).call(c, t.attr("data-title"))
, a = o(c).call(c, t.attr("data-title"));
r = i ? h.encodeHTML(r) : r,
t.removeAttr("title"),
r !== a && (t.attr("data-title", r),
t.removeAttr("data-encode"));
if (!r)
return;
n.render(),
n.show(),
n.val(r),
n.attachTo(t, e)
}
})
},
89508: function(t, e, n) {
var i = n(96110)
, r = n(99221)
, a = n(87089)
, o = n(34076)
, s = n(75533)
, l = n(91041)
, c = n(86990);
t.exports = function(t) {
var e = {};
function n(i) {
if (e[i])
return e[i].exports;
var r = e[i] = {
i: i,
l: !1,
exports: {}
};
return t[i].call(r.exports, r, r.exports, n),
r.l = !0,
r.exports
}
return n.m = t,
n.c = e,
n.d = function(t, e, i) {
n.o(t, e) || r(t, e, {
enumerable: !0,
get: i
})
}
,
n.r = function(t) {
void 0 !== a && o && r(t, o, {
value: "Module"
}),
r(t, "__esModule", {
value: !0
})
}
,
n.t = function(t, e) {
if (1 & e && (t = n(t)),
8 & e)
return t;
if (4 & e && "object" === i(t) && t && t.__esModule)
return t;
var a = Object.create(null);
if (n.r(a),
r(a, "default", {
enumerable: !0,
value: t
}),
2 & e && "string" != typeof t)
for (var o in t)
n.d(a, o, function(e) {
return t[e]
}
.bind(null, o));
return a
}
,
n.n = function(t) {
var e = t && t.__esModule ? function() {
return t["default"]
}
: function() {
return t
}
;
return n.d(e, "a", e),
e
}
,
n.o = function(t, e) {
return Object.prototype.hasOwnProperty.call(t, e)
}
,
n.p = "/dist/",
n(n.s = 106)
}({
0: function(t, e, n) {
"use strict";
function i(t, e, n, i, r, a, o, l) {
var c, u = "function" == typeof t ? t.options : t;
if (e && (u.render = e,
u.staticRenderFns = n,
u._compiled = !0),
i && (u.functional = !0),
a && (u._scopeId = "data-v-" + a),
o ? (c = function(t) {
(t = t || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) || "undefined" == typeof __VUE_SSR_CONTEXT__ || (t = __VUE_SSR_CONTEXT__),
r && r.call(this, t),
t && t._registeredComponents && t._registeredComponents.add(o)
}
,
u._ssrRegister = c) : r && (c = l ? function() {
r.call(this, (u.functional ? this.parent : this).$root.$options.shadowRoot)
}
: r),
c)
if (u.functional) {
u._injectStyles = c;
var d = u.render;
u.render = function(t, e) {
return c.call(e),
d(t, e)
}
} else {
var p, f = u.beforeCreate;
u.beforeCreate = f ? s(p = []).call(p, f, c) : [c]
}
return {
exports: t,
options: u
}
}
n.d(e, "a", (function() {
return i
}
))
},
106: function(t, e, n) {
"use strict";
n.r(e);
var i = function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("label", {
staticClass: "el-checkbox",
"class": [t.checkboxSize ? "el-checkbox--" + t.checkboxSize : "", {
"is-disabled": t.isDisabled
}, {
"is-bordered": t.border
}, {
"is-checked": t.isChecked
}],
attrs: {
id: t.id
}
}, [n("span", {
staticClass: "el-checkbox__input",
"class": {
"is-disabled": t.isDisabled,
"is-checked": t.isChecked,
"is-indeterminate": t.indeterminate,
"is-focus": t.focus
},
attrs: {
tabindex: !!t.indeterminate && 0,
role: !!t.indeterminate && "checkbox",
"aria-checked": !!t.indeterminate && "mixed"
}
}, [n("span", {
staticClass: "el-checkbox__inner"
}), t.trueLabel || t.falseLabel ? n("input", {
directives: [{
name: "model",
rawName: "v-model",
value: t.model,
expression: "model"
}],
staticClass: "el-checkbox__original",
attrs: {
type: "checkbox",
"aria-hidden": t.indeterminate ? "true" : "false",
name: t.name,
disabled: t.isDisabled,
"true-value": t.trueLabel,
"false-value": t.falseLabel
},
domProps: {
checked: Array.isArray(t.model) ? t._i(t.model, null) > -1 : t._q(t.model, t.trueLabel)
},
on: {
change: [function(e) {
var n = t.model
, i = e.target
, r = i.checked ? t.trueLabel : t.falseLabel;
if (Array.isArray(n)) {
var a, o = t._i(n, null);
if (i.checked)
o < 0 && (t.model = s(n).call(n, [null]));
else
o > -1 && (t.model = s(a = l(n).call(n, 0, o)).call(a, l(n).call(n, o + 1)))
} else
t.model = r
}
, t.handleChange],
focus: function(e) {
t.focus = !0
},
blur: function(e) {
t.focus = !1
}
}
}) : n("input", {
directives: [{
name: "model",
rawName: "v-model",
value: t.model,
expression: "model"
}],
staticClass: "el-checkbox__original",
attrs: {
type: "checkbox",
"aria-hidden": t.indeterminate ? "true" : "false",
disabled: t.isDisabled,
name: t.name
},
domProps: {
value: t.label,
checked: Array.isArray(t.model) ? t._i(t.model, t.label) > -1 : t.model
},
on: {
change: [function(e) {
var n = t.model
, i = e.target
, r = !!i.checked;
if (Array.isArray(n)) {
var a, o = t.label, c = t._i(n, o);
if (i.checked)
c < 0 && (t.model = s(n).call(n, [o]));
else
c > -1 && (t.model = s(a = l(n).call(n, 0, c)).call(a, l(n).call(n, c + 1)))
} else
t.model = r
}
, t.handleChange],
focus: function(e) {
t.focus = !0
},
blur: function(e) {
t.focus = !1
}
}
})]), t.$slots["default"] || t.label ? n("span", {
staticClass: "el-checkbox__label"
}, [t._t("default"), t.$slots["default"] ? t._e() : [t._v(t._s(t.label))]], 2) : t._e()])
};
i._withStripped = !0;
var r = n(4)
, a = {
name: "ElCheckbox",
mixins: [n.n(r).a],
inject: {
elForm: {
"default": ""
},
elFormItem: {
"default": ""
}
},
componentName: "ElCheckbox",
data: function() {
return {
selfModel: !1,
focus: !1,
isLimitExceeded: !1
}
},
computed: {
model: {
get: function() {
return this.isGroup ? this.store : this.value !== undefined ? this.value : this.selfModel
},
set: function(t) {
this.isGroup ? (this.isLimitExceeded = !1,
this._checkboxGroup.min !== undefined && t.length < this._checkboxGroup.min && (this.isLimitExceeded = !0),
this._checkboxGroup.max !== undefined && t.length > this._checkboxGroup.max && (this.isLimitExceeded = !0),
!1 === this.isLimitExceeded && this.dispatch("ElCheckboxGroup", "input", [t])) : (this.$emit("input", t),
this.selfModel = t)
}
},
isChecked: function() {
return "[object Boolean]" === {}.toString.call(this.model) ? this.model : Array.isArray(this.model) ? c(t = this.model).call(t, this.label) > -1 : null !== this.model && this.model !== undefined ? this.model === this.trueLabel : void 0;
var t
},
isGroup: function() {
for (var t = this.$parent; t; ) {
if ("ElCheckboxGroup" === t.$options.componentName)
return this._checkboxGroup = t,
!0;
t = t.$parent
}
return !1
},
store: function() {
return this._checkboxGroup ? this._checkboxGroup.value : this.value
},
isLimitDisabled: function() {
var t = this._checkboxGroup
, e = t.max
, n = t.min;
return !(!e && !n) && this.model.length >= e && !this.isChecked || this.model.length <= n && this.isChecked
},
isDisabled: function() {
return this.isGroup ? this._checkboxGroup.disabled || this.disabled || (this.elForm || {}).disabled || this.isLimitDisabled : this.disabled || (this.elForm || {}).disabled
},
_elFormItemSize: function() {
return (this.elFormItem || {}).elFormItemSize
},
checkboxSize: function() {
var t = this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
return this.isGroup && this._checkboxGroup.checkboxGroupSize || t
}
},
props: {
value: {},
label: {},
indeterminate: Boolean,
disabled: Boolean,
checked: Boolean,
name: String,
trueLabel: [String, Number],
falseLabel: [String, Number],
id: String,
controls: String,
border: Boolean,
size: String
},
methods: {
addToStore: function() {
var t;
Array.isArray(this.model) && -1 === c(t = this.model).call(t, this.label) ? this.model.push(this.label) : this.model = this.trueLabel || !0
},
handleChange: function(t) {
var e = this;
if (!this.isLimitExceeded) {
var n = void 0;
n = t.target.checked ? this.trueLabel === undefined || this.trueLabel : this.falseLabel !== undefined && this.falseLabel,
this.$emit("change", n, t),
this.$nextTick((function() {
e.isGroup && e.dispatch("ElCheckboxGroup", "change", [e._checkboxGroup.value])
}
))
}
}
},
created: function() {
this.checked && this.addToStore()
},
mounted: function() {
this.indeterminate && this.$el.setAttribute("aria-controls", this.controls)
},
watch: {
value: function(t) {
this.dispatch("ElFormItem", "el.form.change", t)
}
}
}
, o = n(0)
, u = Object(o.a)(a, i, [], !1, null, null, null).exports;
u.install = function(t) {
t.component(u.name, u)
}
;
e["default"] = u
},
4: function(t, e) {
t.exports = n(50914)
}
})
},
53138: function(t, e, n) {
var i = n(96110)
, r = n(99221)
, a = n(87089)
, o = n(34076)
, s = n(75533)
, l = n(97806)
, c = n(75441)
, u = n(91041);
t.exports = function(t) {
var e = {};
function n(i) {
if (e[i])
return e[i].exports;
var r = e[i] = {
i: i,
l: !1,
exports: {}
};
return t[i].call(r.exports, r, r.exports, n),
r.l = !0,
r.exports
}
return n.m = t,
n.c = e,
n.d = function(t, e, i) {
n.o(t, e) || r(t, e, {
enumerable: !0,
get: i
})
}
,
n.r = function(t) {
void 0 !== a && o && r(t, o, {
value: "Module"
}),
r(t, "__esModule", {
value: !0
})
}
,
n.t = function(t, e) {
if (1 & e && (t = n(t)),
8 & e)
return t;
if (4 & e && "object" === i(t) && t && t.__esModule)
return t;
var a = Object.create(null);
if (n.r(a),
r(a, "default", {
enumerable: !0,
value: t
}),
2 & e && "string" != typeof t)
for (var o in t)
n.d(a, o, function(e) {
return t[e]
}
.bind(null, o));
return a
}
,
n.n = function(t) {
var e = t && t.__esModule ? function() {
return t["default"]
}
: function() {
return t
}
;
return n.d(e, "a", e),
e
}
,
n.o = function(t, e) {
return Object.prototype.hasOwnProperty.call(t, e)
}
,
n.p = "/dist/",
n(n.s = 78)
}({
0: function(t, e, n) {
"use strict";
function i(t, e, n, i, r, a, o, l) {
var c, u = "function" == typeof t ? t.options : t;
if (e && (u.render = e,
u.staticRenderFns = n,
u._compiled = !0),
i && (u.functional = !0),
a && (u._scopeId = "data-v-" + a),
o ? (c = function(t) {
(t = t || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) || "undefined" == typeof __VUE_SSR_CONTEXT__ || (t = __VUE_SSR_CONTEXT__),
r && r.call(this, t),
t && t._registeredComponents && t._registeredComponents.add(o)
}
,
u._ssrRegister = c) : r && (c = l ? function() {
r.call(this, (u.functional ? this.parent : this).$root.$options.shadowRoot)
}
: r),
c)
if (u.functional) {
u._injectStyles = c;
var d = u.render;
u.render = function(t, e) {
return c.call(e),
d(t, e)
}
} else {
var p, f = u.beforeCreate;
u.beforeCreate = f ? s(p = []).call(p, f, c) : [c]
}
return {
exports: t,
options: u
}
}
n.d(e, "a", (function() {
return i
}
))
},
11: function(t, e) {
t.exports = n(90269)
},
13: function(t, e) {
t.exports = n(78592)
},
26: function(t, e) {
t.exports = n(23115)
},
4: function(t, e) {
t.exports = n(50914)
},
78: function(t, e, n) {
"use strict";
n.r(e);
var i = function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("div", {
"class": ["textarea" === t.type ? "el-textarea" : "el-input", t.inputSize ? "el-input--" + t.inputSize : "", {
"is-disabled": t.inputDisabled,
"is-exceed": t.inputExceed,
"el-input-group": t.$slots.prepend || t.$slots.append,
"el-input-group--append": t.$slots.append,
"el-input-group--prepend": t.$slots.prepend,
"el-input--prefix": t.$slots.prefix || t.prefixIcon,
"el-input--suffix": t.$slots.suffix || t.suffixIcon || t.clearable || t.showPassword,
"is-borderless": t.borderless
}],
on: {
mouseenter: function(e) {
t.hovering = !0
},
mouseleave: function(e) {
t.hovering = !1
}
}
}, [t.isTextSelect ? [n("span", {
staticClass: "el-dropdown-link el-dropdown-selfdefine",
attrs: {
"aria-haspopup": "list",
"aria-controls": "dropdown-menu-5178",
role: "button",
tabindex: "0"
}
}, [t._v("\n " + t._s(t.dropdownText) + "\n ")])] : ["textarea" !== t.type ? [t.$slots.prepend ? n("div", {
staticClass: "el-input-group__prepend"
}, [t._t("prepend")], 2) : t._e(), "textarea" !== t.type ? n("input", t._b({
ref: "input",
"class": ["el-input__inner", "block" === t.searchType && "el-input__inner_search"],
style: t.inputStyle,
attrs: {
tabindex: t.tabindex,
type: t.showPassword ? t.passwordVisible ? "text" : "password" : t.type,
disabled: t.inputDisabled,
readonly: t.readonly,
autocomplete: t.autoComplete || t.autocomplete,
"aria-label": t.label
},
on: {
compositionstart: t.handleCompositionStart,
compositionupdate: t.handleCompositionUpdate,
compositionend: t.handleCompositionEnd,
input: t.handleInput,
focus: t.handleFocus,
blur: t.handleBlur,
change: t.handleChange
}
}, "input", t.$attrs, !1)) : t._e(), t.$slots.prefix || t.prefixIcon ? n("span", {
staticClass: "el-input__prefix"
}, [t._t("prefix"), t.prefixIcon ? n("i", {
staticClass: "el-input__icon",
"class": t.prefixIcon
}) : t._e()], 2) : t._e(), t.getSuffixVisible() ? n("span", {
ref: "inputSuffix",
staticClass: "el-input__suffix"
}, [n("span", {
staticClass: "el-input__suffix-inner"
}, [t.showClear && t.showPwdVisible && t.isWordLimitVisible ? t._e() : [t.searchType ? n("div", {
"class": ["circle" === t.searchType && "suffix-icon-container"]
}, [t._t("suffix"), t.suffixIcon ? n("i", {
staticClass: "el-input__icon",
"class": t.suffixIcon
}) : t._e()], 2) : [t._t("suffix"), t.suffixIcon ? n("i", {
staticClass: "el-input__icon",
"class": t.suffixIcon
}) : t._e()]], t.showClear ? n("i", {
staticClass: "el-input__icon el-icon-circle-close el-input__clear",
on: {
mousedown: function(t) {
t.preventDefault()
},
click: t.clear
}
}) : t._e(), t.showPwdVisible ? [t.passwordVisible ? n("BiYanSVG", {
staticClass: "el-input__biyan",
nativeOn: {
click: function(e) {
return t.handlePasswordVisible(e)
}
}
}) : n("YanJingSVG", {
staticClass: "el-input__yanjing",
nativeOn: {
click: function(e) {
return t.handlePasswordVisible(e)
}
}
})] : t._e(), t.isWordLimitVisible ? n("span", {
staticClass: "el-input__count"
}, [n("span", {
staticClass: "el-input__count-inner"
}, [n("span", {
"class": [t.textLength > 0 ? "el-input__count-text" : ""]
}, [t._v(t._s(t.textLength))]), t._v("\n /" + t._s(t.upperLimit) + "\n ")])]) : t._e()], 2), t.validateState ? n("i", {
staticClass: "el-input__icon",
"class": ["el-input__validateIcon", t.validateIcon]
}) : t._e()]) : t._e(), t.$slots.append ? n("div", {
"class": ["el-input-group__append", "block" === t.searchType && "el-input-group__append__search"]
}, [t._t("append")], 2) : t._e()] : n("textarea", t._b({
ref: "textarea",
staticClass: "el-textarea__inner",
"class": {
"limit-word": t.isWordLimitVisible
},
style: t.textareaStyle,
attrs: {
tabindex: t.tabindex,
disabled: t.inputDisabled,
readonly: t.readonly,
autocomplete: t.autoComplete || t.autocomplete,
"aria-label": t.label
},
on: {
compositionstart: t.handleCompositionStart,
compositionupdate: t.handleCompositionUpdate,
compositionend: t.handleCompositionEnd,
input: t.handleInput,
focus: t.handleFocus,
blur: t.handleBlur,
change: t.handleChange
}
}, "textarea", t.$attrs, !1)), t.isWordLimitVisible && "textarea" === t.type ? n("span", {
staticClass: "el-input__count"
}, [n("span", {
staticClass: "el-input__count-inner"
}, [n("span", {
"class": [t.textLength > 0 ? "el-input__count-text" : ""]
}, [t._v(t._s(t.textLength))]), t._v("\n /" + t._s(t.upperLimit) + "\n ")])]) : t._e()]], 2)
};
i._withStripped = !0;
var r = n(4)
, a = n.n(r)
, o = n(13)
, s = n.n(o)
, d = void 0
, p = ["letter-spacing", "line-height", "padding-top", "padding-bottom", "font-family", "font-weight", "font-size", "text-rendering", "text-transform", "width", "text-indent", "padding-left", "padding-right", "border-width", "box-sizing"];
function f(t) {
var e = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1
, n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
d || (d = document.createElement("textarea"),
document.body.appendChild(d));
var i = function(t) {
var e = window.getComputedStyle(t)
, n = e.getPropertyValue("box-sizing")
, i = l(e.getPropertyValue("padding-bottom")) + l(e.getPropertyValue("padding-top"))
, r = l(e.getPropertyValue("border-bottom-width")) + l(e.getPropertyValue("border-top-width"));
return {
contextStyle: c(p).call(p, (function(t) {
return t + ":" + e.getPropertyValue(t)
}
)).join(";"),
paddingSize: i,
borderSize: r,
boxSizing: n
}
}(t)
, r = i.paddingSize
, a = i.borderSize
, o = i.boxSizing
, s = i.contextStyle;
d.setAttribute("style", s + ";\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n"),
d.value = t.value || t.placeholder || "";
var u = d.scrollHeight
, f = {};
"border-box" === o ? u += a : "content-box" === o && (u -= r),
d.value = "";
var h = d.scrollHeight - r;
if (null !== e) {
var m = h * e;
"border-box" === o && (m = m + r + a),
u = Math.max(m, u),
f.minHeight = m + "px"
}
if (null !== n) {
var g = h * n;
"border-box" === o && (g = g + r + a),
u = Math.min(g, u)
}
return f.height = u + "px",
d.parentNode && d.parentNode.removeChild(d),
d = null,
f
}
var h = n(11)
, m = n.n(h)
, g = n(26)
, v = function() {
var t = this.$createElement
, e = this._self._c || t;
return e("svg", {
attrs: {
xmlns: "http://www.w3.org/2000/svg",
width: "16",
height: "100%",
viewBox: "0 0 80 80"
}
}, [e("g", {
attrs: {
fill: "#CCC",
"fill-rule": "nonzero"
}
}, [e("path", {
attrs: {
d: "M39.913 12.656c-12.166.007-22.948 7.643-32.304 22.38a11.25 11.25 0 0 0 .159 12.304l.083.121.259.373c8.993 12.876 19.647 19.517 31.807 19.51 12.256-.007 23.045-6.764 32.223-19.855a11.25 11.25 0 0 0 .31-12.45l-.08-.124-.271-.418c-9.42-14.398-20.162-21.848-32.186-21.84Zm-.272 7.502.276-.002c9.123-.005 17.745 5.974 25.906 18.447l.254.392A3.75 3.75 0 0 1 66 43.183c-7.88 11.24-16.527 16.655-26.086 16.66h-.284c-9.35-.1-17.756-5.401-25.37-16.303l-.24-.345a3.75 3.75 0 0 1-.078-4.139c8.027-12.643 16.58-18.772 25.7-18.898Z"
}
}), e("path", {
attrs: {
d: "M40 27.5c-6.904 0-12.5 5.596-12.5 12.5S33.096 52.5 40 52.5 52.5 46.904 52.5 40 46.904 27.5 40 27.5Zm0 7.5a5 5 0 1 1 0 10 5 5 0 0 1 0-10Z"
}
})])])
};
v._withStripped = !0;
var b = n(0)
, y = Object(b.a)({}, v, [], !1, null, null, null).exports
, w = function() {
var t = this.$createElement
, e = this._self._c || t;
return e("svg", {
attrs: {
xmlns: "http://www.w3.org/2000/svg",
width: "16",
height: "100%",
viewBox: "0 0 80 80"
}
}, [e("g", {
attrs: {
fill: "#CCC",
"fill-rule": "nonzero"
}
}, [e("path", {
attrs: {
d: "m15.938 24.197 5.3 5.3c-2.48 2.62-4.912 5.802-7.297 9.56a3.75 3.75 0 0 0 .053 4.1l.025.038.24.345c7.538 10.793 15.852 16.096 25.09 16.298l.28.004.284.002a24.354 24.354 0 0 0 9.674-1.997l5.617 5.617c-4.804 2.572-9.904 3.877-15.287 3.88-12.038.007-22.6-6.502-31.537-19.125l-.27-.385-.26-.373-.082-.121a11.25 11.25 0 0 1-.16-12.304c2.662-4.191 5.439-7.809 8.33-10.84Zm23.975-11.54c11.903-.007 22.55 7.294 31.903 21.41l.283.43.271.418.08.124a11.25 11.25 0 0 1-.31 12.45c-2.394 3.414-4.897 6.397-7.507 8.942l-5.3-5.3c2.282-2.216 4.503-4.862 6.666-7.948a3.75 3.75 0 0 0 .103-4.15l-.025-.038-.254-.392C57.662 26.13 49.04 20.151 39.917 20.156l-.276.002c-3.087.043-6.11.773-9.068 2.212l-5.54-5.54c4.703-2.766 9.664-4.17 14.88-4.174Zm-11.86 23.656 15.634 15.634c-1.165.36-2.403.553-3.687.553-6.904 0-12.5-5.596-12.5-12.5 0-1.284.193-2.522.553-3.687ZM40 27.5c6.904 0 12.5 5.596 12.5 12.5 0 1.3-.198 2.553-.566 3.73L36.269 28.067A12.496 12.496 0 0 1 40 27.5ZM13.483 13.483a3.75 3.75 0 0 1 5.304 0l48.558 48.559a3.75 3.75 0 0 1-5.303 5.303L13.483 18.787a3.75 3.75 0 0 1 0-5.304Z"
}
})])])
};
w._withStripped = !0;
var _ = {
name: "ElInput",
components: {
YanJingSVG: y,
BiYanSVG: Object(b.a)({}, w, [], !1, null, null, null).exports
},
componentName: "ElInput",
mixins: [a.a, s.a],
inheritAttrs: !1,
inject: {
elForm: {
"default": ""
},
elFormItem: {
"default": ""
}
},
data: function() {
return {
textareaCalcStyle: {},
hovering: !1,
focused: !1,
isComposing: !1,
passwordVisible: !1,
suffixWidth: 0
}
},
props: {
value: [String, Number],
size: String,
resize: String,
form: String,
disabled: Boolean,
readonly: Boolean,
type: {
type: String,
"default": "text"
},
autosize: {
type: [Boolean, Object],
"default": !1
},
autocomplete: {
type: String,
"default": "off"
},
autoComplete: {
type: String,
validator: function(t) {
return !0
}
},
validateEvent: {
type: Boolean,
"default": !0
},
suffixIcon: String,
prefixIcon: String,
label: String,
clearable: {
type: Boolean,
"default": !1
},
showPassword: {
type: Boolean,
"default": !1
},
showWordLimit: {
type: Boolean,
"default": !1
},
tabindex: String,
borderless: {
type: Boolean,
"default": !1
},
searchType: String,
isTextSelect: Boolean,
dropdownText: String
},
computed: {
_elFormItemSize: function() {
return (this.elFormItem || {}).elFormItemSize
},
validateState: function() {
return this.elFormItem ? this.elFormItem.validateState : ""
},
needStatusIcon: function() {
return !!this.elForm && this.elForm.statusIcon
},
validateIcon: function() {
return {
validating: "el-icon-loading",
success: "el-icon-circle-check",
error: "el-icon-circle-close"
}[this.validateState]
},
textareaStyle: function() {
return m()({}, this.textareaCalcStyle, {
resize: this.resize
})
},
inputSize: function() {
return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size
},
inputDisabled: function() {
return this.disabled || (this.elForm || {}).disabled
},
nativeInputValue: function() {
return null === this.value || this.value === undefined ? "" : String(this.value)
},
showClear: function() {
return this.clearable && !this.inputDisabled && !this.readonly && this.nativeInputValue && (this.focused || this.hovering)
},
showPwdVisible: function() {
return this.showPassword && !this.inputDisabled && !this.readonly && (!!this.nativeInputValue || this.focused)
},
isWordLimitVisible: function() {
return this.showWordLimit && this.$attrs.maxlength && ("text" === this.type || "textarea" === this.type) && !this.inputDisabled && !this.readonly && !this.showPassword
},
upperLimit: function() {
return this.$attrs.maxlength
},
textLength: function() {
return "number" == typeof this.value ? String(this.value).length : (this.value || "").length
},
inputExceed: function() {
return this.isWordLimitVisible && this.textLength > this.upperLimit
},
inputStyle: function() {
return this.upperLimit ? {
"padding-right": this.suffixWidth + 5 + "px"
} : {}
}
},
watch: {
value: function(t) {
var e = this;
this.$nextTick((function() {
e.resizeTextarea()
}
)),
this.validateEvent && this.dispatch("ElFormItem", "el.form.change", [t])
},
textLength: function() {
var t = this;
this.$nextTick((function() {
t.getSuffixWidth()
}
))
},
nativeInputValue: function() {
this.setNativeInputValue()
},
type: function() {
var t = this;
this.$nextTick((function() {
t.setNativeInputValue(),
t.resizeTextarea(),
t.updateIconOffset()
}
))
}
},
methods: {
focus: function() {
this.getInput() && this.getInput().focus()
},
blur: function() {
this.getInput() && this.getInput().blur()
},
getMigratingConfig: function() {
return {
props: {
icon: "icon is removed, use suffix-icon / prefix-icon instead.",
"on-icon-click": "on-icon-click is removed."
},
events: {
click: "click is removed."
}
}
},
handleBlur: function(t) {
this.focused = !1,
this.$emit("blur", t),
this.validateEvent && this.dispatch("ElFormItem", "el.form.blur", [this.value])
},
select: function() {
this.getInput() && this.getInput().select()
},
resizeTextarea: function() {
if (!this.$isServer) {
var t = this.autosize;
if ("textarea" === this.type)
if (t) {
var e = t.minRows
, n = t.maxRows;
this.textareaCalcStyle = f(this.$refs.textarea, e, n)
} else
this.textareaCalcStyle = {
minHeight: f(this.$refs.textarea).minHeight
}
}
},
setNativeInputValue: function() {
var t = this.getInput();
t && t.value !== this.nativeInputValue && (t.value = this.nativeInputValue)
},
handleFocus: function(t) {
this.focused = !0,
this.$emit("focus", t)
},
handleCompositionStart: function() {
this.isComposing = !0
},
handleCompositionUpdate: function(t) {
var e = t.target.value
, n = e[e.length - 1] || "";
this.isComposing = !Object(g.isKorean)(n)
},
handleCompositionEnd: function(t) {
this.isComposing && (this.isComposing = !1,
this.handleInput(t))
},
handleInput: function(t) {
this.isComposing || t.target.value !== this.nativeInputValue && (this.$emit("input", t.target.value),
this.$nextTick(this.setNativeInputValue))
},
handleChange: function(t) {
this.$emit("change", t.target.value)
},
calcIconOffset: function(t) {
var e = u([]).call(this.$el.querySelectorAll(".el-input__" + t) || []);
if (e.length) {
for (var n = null, i = 0; i < e.length; i++)
if (e[i].parentNode === this.$el) {
n = e[i];
break
}
if (n) {
var r = {
suffix: "append",
prefix: "prepend"
}[t];
this.$slots[r] ? n.style.transform = "translateX(" + ("suffix" === t ? "-" : "") + this.$el.querySelector(".el-input-group__" + r).offsetWidth + "px)" : n.removeAttribute("style")
}
}
},
updateIconOffset: function() {
this.calcIconOffset("prefix"),
this.calcIconOffset("suffix")
},
clear: function() {
this.$emit("input", ""),
this.$emit("change", ""),
this.$emit("clear")
},
handlePasswordVisible: function() {
var t = this;
this.passwordVisible = !this.passwordVisible,
this.$nextTick((function() {
t.focus()
}
))
},
getInput: function() {
return this.$refs.input || this.$refs.textarea
},
getSuffixVisible: function() {
return this.$slots.suffix || this.suffixIcon || this.showClear || this.showPassword || this.isWordLimitVisible || this.validateState && this.needStatusIcon
},
getSuffixWidth: function() {
var t = this.$refs.inputSuffix;
this.suffixWidth = t ? Math.ceil(t.getBoundingClientRect().width) : 0
}
},
created: function() {
this.$on("inputSelect", this.select)
},
mounted: function() {
this.setNativeInputValue(),
this.resizeTextarea(),
this.updateIconOffset(),
this.getSuffixWidth()
},
updated: function() {
this.$nextTick(this.updateIconOffset)
}
}
, x = _
, C = Object(b.a)(x, i, [], !1, null, null, null).exports;
C.install = function(t) {
t.component(C.name, C)
}
;
e["default"] = C
}
})
},
9148: function(t, e, n) {
"use strict";
e.__esModule = !0;
var i, r = n(72444), a = (i = r) && i.__esModule ? i : {
"default": i
};
e["default"] = function(t) {
return function(t) {
for (var e = arguments.length, n = Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
n[i - 1] = arguments[i];
return 1 === n.length && "object" === (0,
a["default"])(n[0]) && (n = n[0]),
n && n.hasOwnProperty || (n = {}),
t.replace(s, (function(e, i, r, a) {
var s = void 0;
return "{" === t[a - 1] && "}" === t[a + e.length] ? r : null === (s = (0,
o.hasOwn)(n, r) ? n[r] : null) || s === undefined ? "" : s
}
))
}
}
;
var o = n(17167);
var s = /(%|)\{([0-9a-zA-Z_]+)\}/g
},
12954: function(t, e, n) {
"use strict";
e.__esModule = !0,
e.getLocale = e.i18n = e.use = e.t = undefined;
var i = s(n(85105))
, r = s(n(88961))
, a = s(n(10055))
, o = s(n(12787));
function s(t) {
return t && t.__esModule ? t : {
"default": t
}
}
var l = (0,
s(n(9148))["default"])(a["default"])
, c = r["default"]
, u = !1
, d = function() {
var t = (0,
i["default"])(this || a["default"]).$t;
if ("function" == typeof t && a["default"].locale)
return u || (u = !0,
a["default"].locale(a["default"].config.lang, (0,
o["default"])(c, a["default"].locale(a["default"].config.lang) || {}, {
clone: !0
}))),
t.apply(this, arguments)
}
, p = e.t = function(t, e) {
var n = d.apply(this, arguments);
if (null !== n && n !== undefined)
return n;
for (var i = t.split("."), r = c, a = 0, o = i.length; a < o; a++) {
if (n = r[i[a]],
a === o - 1)
return l(n, e);
if (!n)
return "";
r = n
}
return ""
}
, f = e.use = function(t) {
c = t || c
}
, h = e.i18n = function(t) {
d = t || d
}
, m = e.getLocale = function() {
return c.locale
}
;
e["default"] = {
use: f,
t: p,
i18n: h,
getLocale: m
}
},
88961: function(t, e) {
"use strict";
e.__esModule = !0,
e["default"] = {
locale: "zh-CN",
el: {
colorpicker: {
confirm: "确定",
clear: "清空"
},
datepicker: {
now: "此刻",
today: "今天",
cancel: "取消",
clear: "清空",
confirm: "确定",
selectDate: "选择日期",
selectTime: "选择时间",
startDate: "开始日期",
startTime: "开始时间",
endDate: "结束日期",
endTime: "结束时间",
prevYear: "前一年",
nextYear: "后一年",
prevMonth: "上个月",
nextMonth: "下个月",
year: "年",
month1: "1 月",
month2: "2 月",
month3: "3 月",
month4: "4 月",
month5: "5 月",
month6: "6 月",
month7: "7 月",
month8: "8 月",
month9: "9 月",
month10: "10 月",
month11: "11 月",
month12: "12 月",
weeks: {
sun: "日",
mon: "一",
tue: "二",
wed: "三",
thu: "四",
fri: "五",
sat: "六"
},
months: {
jan: "一月",
feb: "二月",
mar: "三月",
apr: "四月",
may: "五月",
jun: "六月",
jul: "七月",
aug: "八月",
sep: "九月",
oct: "十月",
nov: "十一月",
dec: "十二月"
}
},
select: {
loading: "加载中",
noMatch: "无匹配数据",
noData: "无数据",
placeholder: "请选择"
},
cascader: {
noMatch: "无匹配数据",
loading: "加载中",
placeholder: "请选择",
noData: "暂无数据"
},
pagination: {
goto: "前往",
pagesize: "条/页",
total: "共 {total} 条",
pageClassifier: "页"
},
messagebox: {
title: "提示",
confirm: "确定",
cancel: "取消",
error: "输入的数据不合法!"
},
upload: {
deleteTip: "按 delete 键可删除",
"delete": "删除",
preview: "查看图片",
"continue": "继续上传"
},
table: {
emptyText: "暂无数据",
confirmFilter: "筛选",
resetFilter: "重置",
clearFilter: "全部",
sumText: "合计"
},
tree: {
emptyText: "暂无数据"
},
transfer: {
noMatch: "无匹配数据",
noData: "无数据",
titles: ["列表 1", "列表 2"],
filterPlaceholder: "请输入搜索内容",
noCheckedFormat: "共 {total} 项",
hasCheckedFormat: "已选 {checked}/{total} 项"
},
image: {
error: "加载失败"
},
pageHeader: {
title: "返回"
},
popconfirm: {
confirmButtonText: "确定",
cancelButtonText: "取消"
},
empty: {
description: "暂无数据"
}
}
}
},
50914: function(t, e, n) {
"use strict";
var i = n(99734)
, r = n(75533);
function a(t, e, n) {
var o;
i(o = this.$children).call(o, (function(i) {
var o, s;
i.$options.componentName === t ? i.$emit.apply(i, r(o = [e]).call(o, n)) : a.apply(i, r(s = [t, e]).call(s, [n]))
}
))
}
e.__esModule = !0,
e["default"] = {
methods: {
dispatch: function(t, e, n) {
for (var i, a = this.$parent || this.$root, o = a.$options.componentName; a && (!o || o !== t); )
(a = a.$parent) && (o = a.$options.componentName);
a && a.$emit.apply(a, r(i = [e]).call(i, n))
},
broadcast: function(t, e, n) {
a.call(this, t, e, n)
}
}
}
},
83555: function(t, e) {
"use strict";
e.__esModule = !0,
e["default"] = function(t) {
return {
methods: {
focus: function() {
this.$refs[t].focus()
}
}
}
}
},
977: function(t, e, n) {
"use strict";
e.__esModule = !0;
var i = n(12954);
e["default"] = {
methods: {
t: function() {
for (var t = arguments.length, e = Array(t), n = 0; n < t; n++)
e[n] = arguments[n];
return i.t.apply(this, e)
}
}
}
},
78592: function(t, e, n) {
"use strict";
e.__esModule = !0;
n(17167);
e["default"] = {
mounted: function() {},
methods: {
getMigratingConfig: function() {
return {
props: {},
events: {}
}
}
}
}
},
52728: function(t, e, n) {
var i = n(96110)
, r = n(99221)
, a = n(87089)
, o = n(34076)
, s = n(75533)
, l = n(86990)
, c = n(16011)
, u = n(85303);
t.exports = function(t) {
var e = {};
function n(i) {
if (e[i])
return e[i].exports;
var r = e[i] = {
i: i,
l: !1,
exports: {}
};
return t[i].call(r.exports, r, r.exports, n),
r.l = !0,
r.exports
}
return n.m = t,
n.c = e,
n.d = function(t, e, i) {
n.o(t, e) || r(t, e, {
enumerable: !0,
get: i
})
}
,
n.r = function(t) {
void 0 !== a && o && r(t, o, {
value: "Module"
}),
r(t, "__esModule", {
value: !0
})
}
,
n.t = function(t, e) {
if (1 & e && (t = n(t)),
8 & e)
return t;
if (4 & e && "object" === i(t) && t && t.__esModule)
return t;
var a = Object.create(null);
if (n.r(a),
r(a, "default", {
enumerable: !0,
value: t
}),
2 & e && "string" != typeof t)
for (var o in t)
n.d(a, o, function(e) {
return t[e]
}
.bind(null, o));
return a
}
,
n.n = function(t) {
var e = t && t.__esModule ? function() {
return t["default"]
}
: function() {
return t
}
;
return n.d(e, "a", e),
e
}
,
n.o = function(t, e) {
return Object.prototype.hasOwnProperty.call(t, e)
}
,
n.p = "/dist/",
n(n.s = 69)
}({
0: function(t, e, n) {
"use strict";
function i(t, e, n, i, r, a, o, l) {
var c, u = "function" == typeof t ? t.options : t;
if (e && (u.render = e,
u.staticRenderFns = n,
u._compiled = !0),
i && (u.functional = !0),
a && (u._scopeId = "data-v-" + a),
o ? (c = function(t) {
(t = t || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) || "undefined" == typeof __VUE_SSR_CONTEXT__ || (t = __VUE_SSR_CONTEXT__),
r && r.call(this, t),
t && t._registeredComponents && t._registeredComponents.add(o)
}
,
u._ssrRegister = c) : r && (c = l ? function() {
r.call(this, (u.functional ? this.parent : this).$root.$options.shadowRoot)
}
: r),
c)
if (u.functional) {
u._injectStyles = c;
var d = u.render;
u.render = function(t, e) {
return c.call(e),
d(t, e)
}
} else {
var p, f = u.beforeCreate;
u.beforeCreate = f ? s(p = []).call(p, f, c) : [c]
}
return {
exports: t,
options: u
}
}
n.d(e, "a", (function() {
return i
}
))
},
16: function(t, e) {
t.exports = n(72444)
},
23: function(t, e) {
t.exports = n(94421)
},
3: function(t, e) {
t.exports = n(17167)
},
39: function(t, e, n) {
"use strict";
var i = function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("Tooltip", {
staticClass: "item",
attrs: {
effect: "dark",
disabled: !(t.select.showToolTip && t.tooltipFlag),
content: t.currentLabel + "",
placement: t.select.placement || "right"
}
}, [n("li", {
directives: [{
name: "show",
rawName: "v-show",
value: t.visible,
expression: "visible"
}],
staticClass: "el-select-dropdown__item",
"class": {
selected: t.itemSelected,
"is-disabled": t.disabled || t.groupDisabled || t.limitReached,
hover: t.hover
},
on: {
mouseenter: function(e) {
t.hoverItem(e)
},
mouseleave: function(e) {
t.tooltipFlag = !1
},
click: function(e) {
return e.stopPropagation(),
t.selectOptionClick(e)
}
}
}, [t._t("default", [n("span", {
ref: "item"
}, [t._v(t._s(t.currentLabel))])])], 2)])
};
i._withStripped = !0;
var r = n(16)
, a = n.n(r)
, o = n(4)
, s = n.n(o)
, d = n(23)
, p = n.n(d)
, f = n(3)
, h = {
mixins: [s.a],
name: "ElOption",
componentName: "ElOption",
inject: ["select"],
components: {
Tooltip: p.a
},
props: {
value: {
required: !0
},
label: [String, Number],
created: Boolean,
disabled: {
type: Boolean,
"default": !1
}
},
data: function() {
return {
index: -1,
groupDisabled: !1,
visible: !0,
hitState: !1,
hover: !1,
isEl: !1,
tooltipFlag: !1
}
},
computed: {
isObject: function() {
return "[object object]" === Object.prototype.toString.call(this.value).toLowerCase()
},
currentLabel: function() {
return this.label || (this.isObject ? "" : this.value)
},
currentValue: function() {
return this.value || this.label || ""
},
itemSelected: function() {
return this.select.multiple ? this.contains(this.select.value, this.value) : this.isEqual(this.value, this.select.value)
},
limitReached: function() {
return !!this.select.multiple && (!this.itemSelected && (this.select.value || []).length >= this.select.multipleLimit && this.select.multipleLimit > 0)
}
},
watch: {
currentLabel: function() {
this.created || this.select.remote || this.dispatch("ElSelect", "setSelected")
},
value: function(t, e) {
var n = this.select
, i = n.remote
, r = n.valueKey;
if (!this.created && !i) {
if (r && "object" === (void 0 === t ? "undefined" : a()(t)) && "object" === (void 0 === e ? "undefined" : a()(e)) && t[r] === e[r])
return;
this.dispatch("ElSelect", "setSelected")
}
}
},
methods: {
isEqual: function(t, e) {
if (this.isObject) {
var n = this.select.valueKey;
return Object(f.getValueByPath)(t, n) === Object(f.getValueByPath)(e, n)
}
return t === e
},
contains: function() {
var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []
, e = arguments[1];
if (this.isObject) {
var n = this.select.valueKey;
return t && c(t).call(t, (function(t) {
return Object(f.getValueByPath)(t, n) === Object(f.getValueByPath)(e, n)
}
))
}
return t && l(t).call(t, e) > -1
},
handleGroupDisabled: function(t) {
this.groupDisabled = t
},
hoverItem: function(t) {
var e;
this.disabled || this.groupDisabled || (this.select.hoverIndex = l(e = this.select.options).call(e, this));
this.select.showToolTip && (this.tooltipFlag = t.target.scrollWidth > t.target.offsetWidth)
},
selectOptionClick: function() {
!0 !== this.disabled && !0 !== this.groupDisabled && this.dispatch("ElSelect", "handleOptionClick", [this, !0])
},
queryChange: function(t) {
this.visible = new RegExp(Object(f.escapeRegexpString)(t),"i").test(this.currentLabel) || this.created,
this.visible || this.select.filteredOptionsCount--
}
},
created: function() {
this.select.options.push(this),
this.select.cachedOptions.push(this),
this.select.optionsCount++,
this.select.filteredOptionsCount++,
this.$on("queryChange", this.queryChange),
this.$on("handleGroupDisabled", this.handleGroupDisabled)
},
beforeDestroy: function() {
var t, e, n, i = this.select, r = i.selected, a = i.multiple ? r : [r], o = l(t = this.select.cachedOptions).call(t, this), s = l(a).call(a, this);
o > -1 && s < 0 && u(n = this.select.cachedOptions).call(n, o, 1);
this.select.onOptionDestroy(l(e = this.select.options).call(e, this))
}
}
, m = h
, g = n(0)
, v = Object(g.a)(m, i, [], !1, null, null, null);
e.a = v.exports
},
4: function(t, e) {
t.exports = n(50914)
},
69: function(t, e, n) {
"use strict";
n.r(e);
var i = n(39);
i.a.install = function(t) {
t.component(i.a.name, i.a)
}
,
e["default"] = i.a
}
})
},
26464: function(t, e, n) {
var i = n(96110)
, r = n(99221)
, a = n(87089)
, o = n(34076);
t.exports = function(t) {
var e = {};
function n(i) {
if (e[i])
return e[i].exports;
var r = e[i] = {
i: i,
l: !1,
exports: {}
};
return t[i].call(r.exports, r, r.exports, n),
r.l = !0,
r.exports
}
return n.m = t,
n.c = e,
n.d = function(t, e, i) {
n.o(t, e) || r(t, e, {
enumerable: !0,
get: i
})
}
,
n.r = function(t) {
void 0 !== a && o && r(t, o, {
value: "Module"
}),
r(t, "__esModule", {
value: !0
})
}
,
n.t = function(t, e) {
if (1 & e && (t = n(t)),
8 & e)
return t;
if (4 & e && "object" === i(t) && t && t.__esModule)
return t;
var a = Object.create(null);
if (n.r(a),
r(a, "default", {
enumerable: !0,
value: t
}),
2 & e && "string" != typeof t)
for (var o in t)
n.d(a, o, function(e) {
return t[e]
}
.bind(null, o));
return a
}
,
n.n = function(t) {
var e = t && t.__esModule ? function() {
return t["default"]
}
: function() {
return t
}
;
return n.d(e, "a", e),
e
}
,
n.o = function(t, e) {
return Object.prototype.hasOwnProperty.call(t, e)
}
,
n.p = "/dist/",
n(n.s = 148)
}({
148: function(t, e, n) {
"use strict";
n.r(e);
var i = n(19)
, r = n(43)
, a = n.n(r)
, o = n(3)
, s = n(2)
, l = {
vertical: {
offset: "offsetHeight",
scroll: "scrollTop",
scrollSize: "scrollHeight",
size: "height",
key: "vertical",
axis: "Y",
client: "clientY",
direction: "top"
},
horizontal: {
offset: "offsetWidth",
scroll: "scrollLeft",
scrollSize: "scrollWidth",
size: "width",
key: "horizontal",
axis: "X",
client: "clientX",
direction: "left"
}
};
function c(t) {
var e = t.move
, n = t.size
, i = t.bar
, r = {}
, a = "translate" + i.axis + "(" + e + "%)";
return r[i.size] = n,
r.transform = a,
r.msTransform = a,
r.webkitTransform = a,
r
}
var u = {
name: "Bar",
props: {
vertical: Boolean,
size: String,
move: Number,
permanentThumb: Boolean
},
computed: {
bar: function() {
return l[this.vertical ? "vertical" : "horizontal"]
},
wrap: function() {
return this.$parent.wrap
}
},
render: function(t) {
var e = this.size
, n = this.move
, i = this.bar
, r = this.permanentThumb;
return t("div", {
"class": ["el-scrollbar__bar", "is-" + i.key],
style: r ? "opacity:1;" : "",
on: {
mousedown: this.clickTrackHandler
}
}, [t("div", {
ref: "thumb",
"class": "el-scrollbar__thumb",
on: {
mousedown: this.clickThumbHandler
},
style: c({
size: e,
move: n,
bar: i
})
})])
},
methods: {
clickThumbHandler: function(t) {
t.ctrlKey || 2 === t.button || (this.startDrag(t),
this[this.bar.axis] = t.currentTarget[this.bar.offset] - (t[this.bar.client] - t.currentTarget.getBoundingClientRect()[this.bar.direction]))
},
clickTrackHandler: function(t) {
var e = 100 * (Math.abs(t.target.getBoundingClientRect()[this.bar.direction] - t[this.bar.client]) - this.$refs.thumb[this.bar.offset] / 2) / this.$el[this.bar.offset];
this.wrap[this.bar.scroll] = e * this.wrap[this.bar.scrollSize] / 100
},
startDrag: function(t) {
t.stopImmediatePropagation(),
this.cursorDown = !0,
Object(s.on)(document, "mousemove", this.mouseMoveDocumentHandler),
Object(s.on)(document, "mouseup", this.mouseUpDocumentHandler),
document.onselectstart = function() {
return !1
}
},
mouseMoveDocumentHandler: function(t) {
if (!1 !== this.cursorDown) {
var e = this[this.bar.axis];
if (e) {
var n = 100 * (-1 * (this.$el.getBoundingClientRect()[this.bar.direction] - t[this.bar.client]) - (this.$refs.thumb[this.bar.offset] - e)) / this.$el[this.bar.offset];
this.wrap[this.bar.scroll] = n * this.wrap[this.bar.scrollSize] / 100
}
}
},
mouseUpDocumentHandler: function(t) {
this.cursorDown = !1,
this[this.bar.axis] = 0,
Object(s.off)(document, "mousemove", this.mouseMoveDocumentHandler),
document.onselectstart = null
}
},
destroyed: function() {
Object(s.off)(document, "mouseup", this.mouseUpDocumentHandler)
}
}
, d = {
name: "ElScrollbar",
components: {
Bar: u
},
props: {
native: Boolean,
wrapStyle: {},
wrapClass: {},
viewClass: {},
viewStyle: {},
noresize: Boolean,
tag: {
type: String,
"default": "div"
},
direction: {
type: String,
"default": ""
},
permanentThumb: {
type: Boolean,
"default": !1
}
},
data: function() {
return {
sizeWidth: "0",
sizeHeight: "0",
moveX: 0,
moveY: 0
}
},
computed: {
wrap: function() {
return this.$refs.wrap
},
outerStyle: function() {
switch (this.direction) {
case "vertical":
return "height:100%;";
case "horizontal":
return "width:100%;"
}
return ""
},
wrapAutoStyle: function() {
return "vertical" === this.direction ? "overflowX:auto;" : ""
}
},
render: function(t) {
var e = a()()
, n = this.wrapStyle
, i = this.permanentThumb;
if (e) {
var r = "-" + e + "px"
, s = "margin-bottom: " + r + "; margin-right: " + r + ";";
Array.isArray(this.wrapStyle) ? (n = Object(o.toObject)(this.wrapStyle)).marginRight = n.marginBottom = r : "string" == typeof this.wrapStyle ? n += s : n = s
}
var l = t(this.tag, {
"class": ["el-scrollbar__view", this.viewClass],
style: this.viewStyle,
ref: "resize"
}, this.$slots["default"])
, c = t("div", {
ref: "wrap",
style: n + this.wrapAutoStyle,
on: {
scroll: this.handleScroll
},
"class": [this.wrapClass, "el-scrollbar__wrap", e ? "" : "el-scrollbar__wrap--hidden-default"]
}, [[l]])
, d = void 0;
return d = this.native ? [t("div", {
ref: "wrap",
"class": [this.wrapClass, "el-scrollbar__wrap"],
style: n
}, [[l]])] : [c, t(u, {
attrs: {
permanentThumb: i,
move: this.moveX,
size: this.sizeWidth
}
}), t(u, {
attrs: {
vertical: !0,
permanentThumb: i,
move: this.moveY,
size: this.sizeHeight
}
})],
t("div", {
"class": ["el-scrollbar", "nowcoder-custom"],
style: this.outerStyle
}, d)
},
methods: {
handleScroll: function() {
var t = this.wrap;
this.moveY = 100 * t.scrollTop / t.clientHeight,
this.moveX = 100 * t.scrollLeft / t.clientWidth
},
update: function() {
var t, e, n = this.wrap;
n && (t = 100 * n.clientHeight / n.scrollHeight,
e = 100 * n.clientWidth / n.scrollWidth,
this.sizeHeight = t < 100 ? t + "%" : "",
this.sizeWidth = e < 100 ? e + "%" : "")
},
emitScroll: function(t) {
this.$emit("scroll", t)
}
},
mounted: function() {
this.native || (this.$nextTick(this.update),
!this.noresize && Object(i.addResizeListener)(this.$refs.resize, this.update),
!this.noresize && Object(i.addResizeListener)(this.$refs.wrap, this.update),
this.wrap.addEventListener("scroll", this.emitScroll))
},
beforeDestroy: function() {
this.native || (!this.noresize && Object(i.removeResizeListener)(this.$refs.resize, this.update),
!this.noresize && Object(i.removeResizeListener)(this.$refs.wrap, this.update),
this.wrap.removeEventListener("scroll", this.emitScroll))
},
install: function(t) {
t.component(d.name, d)
}
};
e["default"] = d
},
19: function(t, e) {
t.exports = n(32626)
},
2: function(t, e) {
t.exports = n(21807)
},
3: function(t, e) {
t.exports = n(17167)
},
43: function(t, e) {
t.exports = n(67945)
}
})
},
59982: function(t, e, n) {
var i = n(96110)
, r = n(99221)
, a = n(87089)
, o = n(34076)
, s = n(75533)
, l = n(86990)
, c = n(16011)
, u = n(85303)
, d = n(45629)
, p = n(17986)
, f = n(99734)
, h = n(47380)
, m = n(91041)
, g = n(97806)
, v = n(75441);
t.exports = function(t) {
var e = {};
function n(i) {
if (e[i])
return e[i].exports;
var r = e[i] = {
i: i,
l: !1,
exports: {}
};
return t[i].call(r.exports, r, r.exports, n),
r.l = !0,
r.exports
}
return n.m = t,
n.c = e,
n.d = function(t, e, i) {
n.o(t, e) || r(t, e, {
enumerable: !0,
get: i
})
}
,
n.r = function(t) {
void 0 !== a && o && r(t, o, {
value: "Module"
}),
r(t, "__esModule", {
value: !0
})
}
,
n.t = function(t, e) {
if (1 & e && (t = n(t)),
8 & e)
return t;
if (4 & e && "object" === i(t) && t && t.__esModule)
return t;
var a = Object.create(null);
if (n.r(a),
r(a, "default", {
enumerable: !0,
value: t
}),
2 & e && "string" != typeof t)
for (var o in t)
n.d(a, o, function(e) {
return t[e]
}
.bind(null, o));
return a
}
,
n.n = function(t) {
var e = t && t.__esModule ? function() {
return t["default"]
}
: function() {
return t
}
;
return n.d(e, "a", e),
e
}
,
n.o = function(t, e) {
return Object.prototype.hasOwnProperty.call(t, e)
}
,
n.p = "/dist/",
n(n.s = 80)
}({
0: function(t, e, n) {
"use strict";
function i(t, e, n, i, r, a, o, l) {
var c, u = "function" == typeof t ? t.options : t;
if (e && (u.render = e,
u.staticRenderFns = n,
u._compiled = !0),
i && (u.functional = !0),
a && (u._scopeId = "data-v-" + a),
o ? (c = function(t) {
(t = t || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) || "undefined" == typeof __VUE_SSR_CONTEXT__ || (t = __VUE_SSR_CONTEXT__),
r && r.call(this, t),
t && t._registeredComponents && t._registeredComponents.add(o)
}
,
u._ssrRegister = c) : r && (c = l ? function() {
r.call(this, (u.functional ? this.parent : this).$root.$options.shadowRoot)
}
: r),
c)
if (u.functional) {
u._injectStyles = c;
var d = u.render;
u.render = function(t, e) {
return c.call(e),
d(t, e)
}
} else {
var p, f = u.beforeCreate;
u.beforeCreate = f ? s(p = []).call(p, f, c) : [c]
}
return {
exports: t,
options: u
}
}
n.d(e, "a", (function() {
return i
}
))
},
12: function(t, e) {
t.exports = n(53138)
},
15: function(t, e) {
t.exports = n(19952)
},
16: function(t, e) {
t.exports = n(72444)
},
19: function(t, e) {
t.exports = n(32626)
},
20: function(t, e) {
t.exports = n(26464)
},
21: function(t, e) {
t.exports = n(89508)
},
22: function(t, e) {
t.exports = n(11864)
},
23: function(t, e) {
t.exports = n(94421)
},
26: function(t, e) {
t.exports = n(23115)
},
29: function(t, e) {
t.exports = n(83555)
},
3: function(t, e) {
t.exports = n(17167)
},
37: function(t, e) {
t.exports = n(62822)
},
39: function(t, e, n) {
"use strict";
var i = function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("Tooltip", {
staticClass: "item",
attrs: {
effect: "dark",
disabled: !(t.select.showToolTip && t.tooltipFlag),
content: t.currentLabel + "",
placement: t.select.placement || "right"
}
}, [n("li", {
directives: [{
name: "show",
rawName: "v-show",
value: t.visible,
expression: "visible"
}],
staticClass: "el-select-dropdown__item",
"class": {
selected: t.itemSelected,
"is-disabled": t.disabled || t.groupDisabled || t.limitReached,
hover: t.hover
},
on: {
mouseenter: function(e) {
t.hoverItem(e)
},
mouseleave: function(e) {
t.tooltipFlag = !1
},
click: function(e) {
return e.stopPropagation(),
t.selectOptionClick(e)
}
}
}, [t._t("default", [n("span", {
ref: "item"
}, [t._v(t._s(t.currentLabel))])])], 2)])
};
i._withStripped = !0;
var r = n(16)
, a = n.n(r)
, o = n(4)
, s = n.n(o)
, d = n(23)
, p = n.n(d)
, f = n(3)
, h = {
mixins: [s.a],
name: "ElOption",
componentName: "ElOption",
inject: ["select"],
components: {
Tooltip: p.a
},
props: {
value: {
required: !0
},
label: [String, Number],
created: Boolean,
disabled: {
type: Boolean,
"default": !1
}
},
data: function() {
return {
index: -1,
groupDisabled: !1,
visible: !0,
hitState: !1,
hover: !1,
isEl: !1,
tooltipFlag: !1
}
},
computed: {
isObject: function() {
return "[object object]" === Object.prototype.toString.call(this.value).toLowerCase()
},
currentLabel: function() {
return this.label || (this.isObject ? "" : this.value)
},
currentValue: function() {
return this.value || this.label || ""
},
itemSelected: function() {
return this.select.multiple ? this.contains(this.select.value, this.value) : this.isEqual(this.value, this.select.value)
},
limitReached: function() {
return !!this.select.multiple && (!this.itemSelected && (this.select.value || []).length >= this.select.multipleLimit && this.select.multipleLimit > 0)
}
},
watch: {
currentLabel: function() {
this.created || this.select.remote || this.dispatch("ElSelect", "setSelected")
},
value: function(t, e) {
var n = this.select
, i = n.remote
, r = n.valueKey;
if (!this.created && !i) {
if (r && "object" === (void 0 === t ? "undefined" : a()(t)) && "object" === (void 0 === e ? "undefined" : a()(e)) && t[r] === e[r])
return;
this.dispatch("ElSelect", "setSelected")
}
}
},
methods: {
isEqual: function(t, e) {
if (this.isObject) {
var n = this.select.valueKey;
return Object(f.getValueByPath)(t, n) === Object(f.getValueByPath)(e, n)
}
return t === e
},
contains: function() {
var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []
, e = arguments[1];
if (this.isObject) {
var n = this.select.valueKey;
return t && c(t).call(t, (function(t) {
return Object(f.getValueByPath)(t, n) === Object(f.getValueByPath)(e, n)
}
))
}
return t && l(t).call(t, e) > -1
},
handleGroupDisabled: function(t) {
this.groupDisabled = t
},
hoverItem: function(t) {
var e;
this.disabled || this.groupDisabled || (this.select.hoverIndex = l(e = this.select.options).call(e, this));
this.select.showToolTip && (this.tooltipFlag = t.target.scrollWidth > t.target.offsetWidth)
},
selectOptionClick: function() {
!0 !== this.disabled && !0 !== this.groupDisabled && this.dispatch("ElSelect", "handleOptionClick", [this, !0])
},
queryChange: function(t) {
this.visible = new RegExp(Object(f.escapeRegexpString)(t),"i").test(this.currentLabel) || this.created,
this.visible || this.select.filteredOptionsCount--
}
},
created: function() {
this.select.options.push(this),
this.select.cachedOptions.push(this),
this.select.optionsCount++,
this.select.filteredOptionsCount++,
this.$on("queryChange", this.queryChange),
this.$on("handleGroupDisabled", this.handleGroupDisabled)
},
beforeDestroy: function() {
var t, e, n, i = this.select, r = i.selected, a = i.multiple ? r : [r], o = l(t = this.select.cachedOptions).call(t, this), s = l(a).call(a, this);
o > -1 && s < 0 && u(n = this.select.cachedOptions).call(n, o, 1);
this.select.onOptionDestroy(l(e = this.select.options).call(e, this))
}
}
, m = h
, g = n(0)
, v = Object(g.a)(m, i, [], !1, null, null, null);
e.a = v.exports
},
4: function(t, e) {
t.exports = n(50914)
},
42: function(t, e) {
t.exports = n(57411)
},
6: function(t, e) {
t.exports = n(71764)
},
7: function(t, e) {
t.exports = n(977)
},
80: function(t, e, n) {
"use strict";
n.r(e);
var i = function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("div", {
directives: [{
name: "clickoutside",
rawName: "v-clickoutside",
value: t.handleClose,
expression: "handleClose"
}],
staticClass: "el-select",
"class": [t.selectSize ? "el-select--" + t.selectSize : "", t.selectExpansion && "el-select--expansion", t.textType && "el-select__textType"],
on: {
click: t.toggleMenu,
mouseenter: t.mouseenterAction
}
}, [t.multiple ? n("div", {
ref: "tags",
staticClass: "el-select__tags",
style: {
"max-width": t.inputWidth - 32 + "px",
width: "100%"
}
}, [t.collapseTags && t.selected.length && !t.textType ? n("span", [n("el-tag", {
attrs: {
closable: !t.selectDisabled,
size: t.collapseTagSize,
hit: t.selected[0].hitState,
type: "info",
"disable-transitions": ""
},
on: {
close: function(e) {
t.deleteTag(e, t.selected[0])
}
}
}, [n("span", {
staticClass: "el-select__tags-text"
}, [t._v(t._s(t.sliceTagContent(t.selected[0].currentLabel)))])]), t.selected.length > 1 ? n("el-tag", {
attrs: {
closable: !1,
size: t.collapseTagSize,
type: "info",
"disable-transitions": ""
}
}, [n("span", {
staticClass: "el-select__tags-text"
}, [t._v("+ " + t._s(t.selected.length - 1))])]) : t._e()], 1) : t._e(), t.collapseTags || t.textType ? t._e() : n("transition-group", {
on: {
"after-leave": t.resetInputHeight
}
}, t._l(t.selected, (function(e) {
return n("el-tag", {
key: t.getValueKey(e),
attrs: {
closable: !t.selectDisabled,
size: t.collapseTagSize,
hit: e.hitState,
type: "info",
"disable-transitions": ""
},
on: {
close: function(n) {
t.deleteTag(n, e)
}
}
}, [n("span", {
staticClass: "el-select__tags-text"
}, [t._v(t._s(t.sliceTagContent(e.currentLabel)))])])
}
)), 1), t.filterable ? n("input", {
directives: [{
name: "model",
rawName: "v-model",
value: t.query,
expression: "query"
}],
ref: "input",
staticClass: "el-select__input",
"class": [t.selectSize ? "is-" + t.selectSize : ""],
style: {
"flex-grow": "1",
width: t.inputLength / (t.inputWidth - 32) + "%",
"max-width": t.inputWidth - 42 + "px"
},
attrs: {
type: "text",
disabled: t.selectDisabled,
autocomplete: t.autoComplete || t.autocomplete,
borderless: t.borderless
},
domProps: {
value: t.query
},
on: {
focus: t.handleFocus,
blur: function(e) {
t.softFocus = !1
},
keyup: t.managePlaceholder,
keydown: [t.resetInputState, function(e) {
if (!("button"in e) && t._k(e.keyCode, "down", 40, e.key, ["Down", "ArrowDown"]))
return null;
e.preventDefault(),
t.navigateOptions("next")
}
, function(e) {
if (!("button"in e) && t._k(e.keyCode, "up", 38, e.key, ["Up", "ArrowUp"]))
return null;
e.preventDefault(),
t.navigateOptions("prev")
}
, function(e) {
return !("button"in e) && t._k(e.keyCode, "enter", 13, e.key, "Enter") ? null : (e.preventDefault(),
t.selectOption(e))
}
, function(e) {
if (!("button"in e) && t._k(e.keyCode, "esc", 27, e.key, ["Esc", "Escape"]))
return null;
e.stopPropagation(),
e.preventDefault(),
t.visible = !1
}
, function(e) {
return !("button"in e) && t._k(e.keyCode, "delete", [8, 46], e.key, ["Backspace", "Delete", "Del"]) ? null : t.deletePrevTag(e)
}
, function(e) {
if (!("button"in e) && t._k(e.keyCode, "tab", 9, e.key, "Tab"))
return null;
t.visible = !1
}
],
compositionstart: t.handleComposition,
compositionupdate: t.handleComposition,
compositionend: t.handleComposition,
input: [function(e) {
e.target.composing || (t.query = e.target.value)
}
, t.debouncedQueryChange]
}
}) : t._e()], 1) : t._e(), t.textType ? [n("div", {
staticStyle: {
display: "flex",
"align-items": "center",
cursor: "pointer"
}
}, [n("el-input", {
ref: "reference",
"class": {
"is-focus": t.visible
},
attrs: {
isTextSelect: "",
dropdownText: t.selectTextContent,
type: "text",
placeholder: t.currentPlaceholder,
name: t.name,
id: t.id,
autocomplete: t.autoComplete || t.autocomplete,
size: t.selectSize,
disabled: t.selectDisabled,
readonly: t.readonly,
"validate-event": !1,
tabindex: t.multiple && t.filterable ? "-1" : null,
borderless: t.borderless
},
on: {
focus: t.handleFocus,
blur: t.handleBlur
},
nativeOn: {
keyup: function(e) {
return t.debouncedOnInputChange(e)
},
keydown: [function(e) {
if (!("button"in e) && t._k(e.keyCode, "down", 40, e.key, ["Down", "ArrowDown"]))
return null;
e.stopPropagation(),
e.preventDefault(),
t.navigateOptions("next")
}
, function(e) {
if (!("button"in e) && t._k(e.keyCode, "up", 38, e.key, ["Up", "ArrowUp"]))
return null;
e.stopPropagation(),
e.preventDefault(),
t.navigateOptions("prev")
}
, function(e) {
return !("button"in e) && t._k(e.keyCode, "enter", 13, e.key, "Enter") ? null : (e.preventDefault(),
t.selectOption(e))
}
, function(e) {
if (!("button"in e) && t._k(e.keyCode, "esc", 27, e.key, ["Esc", "Escape"]))
return null;
e.stopPropagation(),
e.preventDefault(),
t.visible = !1
}
, function(e) {
if (!("button"in e) && t._k(e.keyCode, "tab", 9, e.key, "Tab"))
return null;
t.visible = !1
}
],
paste: function(e) {
return t.debouncedOnInputChange(e)
},
mouseenter: function(e) {
t.inputHovering = !0
},
mouseleave: function(e) {
t.inputHovering = !1
}
},
model: {
value: t.selectedLabel,
callback: function(e) {
t.selectedLabel = e
},
expression: "selectedLabel"
}
}, [t.$slots.prefix ? n("template", {
slot: "prefix"
}, [t._t("prefix")], 2) : t._e()], 2), n("i", {
directives: [{
name: "show",
rawName: "v-show",
value: !t.showClose,
expression: "!showClose"
}],
"class": ["el-select__caret", "el-input__icon", "el-icon-arrow-down", "el-select__textTypeIcon"],
style: {
transition: "all 0.3s",
transform: t.visible ? "rotateZ(180deg)" : "rotateZ(0deg)"
}
}), t.showClose ? n("i", {
staticClass: "el-select__caret el-input__icon el-icon-circle-close",
on: {
click: t.handleClearClick
}
}) : t._e()], 1)] : n("el-input", {
ref: "reference",
"class": {
"is-focus": t.visible
},
attrs: {
dropdownText: t.selectTextContent,
type: "text",
placeholder: t.currentPlaceholder,
name: t.name,
id: t.id,
autocomplete: t.autoComplete || t.autocomplete,
size: t.selectSize,
disabled: t.selectDisabled,
readonly: t.readonly,
"validate-event": !1,
tabindex: t.multiple && t.filterable ? "-1" : null,
borderless: t.borderless
},
on: {
focus: t.handleFocus,
blur: t.handleBlur
},
nativeOn: {
keyup: function(e) {
return t.debouncedOnInputChange(e)
},
keydown: [function(e) {
if (!("button"in e) && t._k(e.keyCode, "down", 40, e.key, ["Down", "ArrowDown"]))
return null;
e.stopPropagation(),
e.preventDefault(),
t.navigateOptions("next")
}
, function(e) {
if (!("button"in e) && t._k(e.keyCode, "up", 38, e.key, ["Up", "ArrowUp"]))
return null;
e.stopPropagation(),
e.preventDefault(),
t.navigateOptions("prev")
}
, function(e) {
return !("button"in e) && t._k(e.keyCode, "enter", 13, e.key, "Enter") ? null : (e.preventDefault(),
t.selectOption(e))
}
, function(e) {
if (!("button"in e) && t._k(e.keyCode, "esc", 27, e.key, ["Esc", "Escape"]))
return null;
e.stopPropagation(),
e.preventDefault(),
t.visible = !1
}
, function(e) {
if (!("button"in e) && t._k(e.keyCode, "tab", 9, e.key, "Tab"))
return null;
t.visible = !1
}
],
paste: function(e) {
return t.debouncedOnInputChange(e)
},
mouseenter: function(e) {
t.inputHovering = !0
},
mouseleave: function(e) {
t.inputHovering = !1
}
},
model: {
value: t.selectedLabel,
callback: function(e) {
t.selectedLabel = e
},
expression: "selectedLabel"
}
}, [t.$slots.prefix ? n("template", {
slot: "prefix"
}, [t._t("prefix")], 2) : t._e(), n("template", {
slot: "suffix"
}, [n("i", {
directives: [{
name: "show",
rawName: "v-show",
value: !t.showClose,
expression: "!showClose"
}],
"class": ["el-select__caret", "el-input__icon", "el-icon-" + t.iconClass]
}), t.showClose ? n("i", {
staticClass: "el-select__caret el-input__icon el-icon-circle-close",
on: {
click: t.handleClearClick
}
}) : t._e()])], 2), n("transition", {
attrs: {
name: "el-zoom-in-top"
},
on: {
"before-enter": t.handleMenuEnter,
"after-leave": t.doDestroy
}
}, [n("el-select-menu", {
directives: [{
name: "show",
rawName: "v-show",
value: t.visible && !1 !== t.emptyText,
expression: "visible && emptyText !== false"
}],
ref: "popper",
style: {
"max-width": t.widthFull ? t.inputWidth + "px" : "auto"
},
attrs: {
"append-to-body": t.popperAppendToBody,
visibleArrow: t.visibleArrow,
size: t.selectSize
}
}, [t.selectAll && t.multiple ? n("div", {
staticClass: "el-select__all"
}, [n("el-checkbox", {
attrs: {
indeterminate: t.isIndeterminate,
value: t.checkAll
},
on: {
change: t.handleCheckAllChange
}
}, [t._v("全选")])], 1) : t._e(), n("el-scrollbar", {
directives: [{
name: "show",
rawName: "v-show",
value: t.options.length > 0 && !t.loading,
expression: "options.length > 0 && !loading"
}],
ref: "scrollbar",
"class": {
"is-empty": !t.allowCreate && t.query && 0 === t.filteredOptionsCount
},
attrs: {
tag: "ul",
"wrap-class": "el-select-dropdown__wrap",
"view-class": "el-select-dropdown__list"
}
}, [t.showNewOption ? n("el-option", {
attrs: {
value: t.query,
created: ""
}
}) : t._e(), t._t("default")], 2), t.emptyText && (!t.allowCreate || t.loading || t.allowCreate && 0 === t.options.length) ? [t.$slots.empty ? t._t("empty") : n("p", {
staticClass: "el-select-dropdown__empty"
}, [t._v("\n " + t._s(t.emptyText) + "\n ")])] : t._e(), t._t("slotArea")], 2)], 1)], 2)
};
i._withStripped = !0;
var r = n(4)
, a = n.n(r)
, o = n(29)
, s = n.n(o)
, b = n(7)
, y = n.n(b)
, w = n(12)
, _ = n.n(w)
, x = n(21)
, C = n.n(x)
, k = function() {
var t = this
, e = t.$createElement;
return (t._self._c || e)("div", {
staticClass: "el-select-dropdown el-popper",
"class": [{
"is-multiple": t.$parent.multiple
}, t.popperClass, t.size ? "is-" + t.size : ""],
style: {
minWidth: t.minWidth
}
}, [t._t("default")], 2)
};
k._withStripped = !0;
var S = n(6)
, T = {
name: "ElSelectDropdown",
componentName: "ElSelectDropdown",
mixins: [n.n(S).a],
props: {
placement: {
"default": "bottom-start"
},
boundariesPadding: {
"default": 0
},
popperOptions: {
"default": function() {
return {
gpuAcceleration: !1
}
}
},
visibleArrow: {
"default": !0
},
appendToBody: {
type: Boolean,
"default": !0
},
size: {
type: String
}
},
data: function() {
return {
minWidth: ""
}
},
computed: {
popperClass: function() {
return this.$parent.popperClass
}
},
watch: {
"$parent.inputWidth": function() {
this.minWidth = this.$parent.textType ? this.$parent.textDropdownMinWidth : this.$parent.$el.getBoundingClientRect().width + "px"
}
},
mounted: function() {
var t = this;
this.referenceElm = this.$parent.$refs.reference.$el,
this.$parent.popperElm = this.popperElm = this.$el,
this.$on("updatePopper", (function() {
t.$parent.visible && t.updatePopper()
}
)),
this.$on("destroyPopper", this.destroyPopper)
}
}
, E = n(0)
, I = Object(E.a)(T, k, [], !1, null, null, null).exports
, L = n(39)
, j = n(42)
, M = n.n(j)
, $ = n(20)
, F = n.n($)
, P = n(22)
, O = n.n(P)
, N = n(15)
, D = n.n(N)
, A = n(19)
, z = n(37)
, H = n.n(z)
, R = n(3)
, B = {
data: function() {
return {
hoverOption: -1
}
},
computed: {
optionsAllDisabled: function() {
var t, e;
return d(t = p(e = this.options).call(e, (function(t) {
return t.visible
}
))).call(t, (function(t) {
return t.disabled
}
))
}
},
watch: {
hoverIndex: function(t) {
var e, n = this;
"number" == typeof t && t > -1 && (this.hoverOption = this.options[t] || {}),
f(e = this.options).call(e, (function(t) {
t.hover = n.hoverOption === t
}
))
}
},
methods: {
navigateOptions: function(t) {
var e = this;
if (this.visible) {
if (0 !== this.options.length && 0 !== this.filteredOptionsCount && !this.optionsAllDisabled) {
"next" === t ? (this.hoverIndex++,
this.hoverIndex === this.options.length && (this.hoverIndex = 0)) : "prev" === t && (this.hoverIndex--,
this.hoverIndex < 0 && (this.hoverIndex = this.options.length - 1));
var n = this.options[this.hoverIndex];
!0 !== n.disabled && !0 !== n.groupDisabled && n.visible || this.navigateOptions(t),
this.$nextTick((function() {
return e.scrollToOption(e.hoverOption)
}
))
}
} else
this.visible = !0
}
}
}
, U = n(26)
, q = {
mixins: [a.a, y.a, s()("reference"), B],
name: "ElSelect",
componentName: "ElSelect",
inject: {
elForm: {
"default": ""
},
elFormItem: {
"default": ""
}
},
provide: function() {
return {
select: this
}
},
computed: {
checkAll: function() {
return this.value.length >= this.optionsLen
},
optionsLen: function() {
var t = this.actualOptions.length || this.options.length;
return t
},
_elFormItemSize: function() {
return (this.elFormItem || {}).elFormItemSize
},
readonly: function() {
return !this.filterable || this.multiple || !Object(R.isIE)() && !Object(R.isEdge)() && !this.visible
},
showClose: function() {
var t = this.multiple ? Array.isArray(this.value) && this.value.length > 0 : this.value !== undefined && null !== this.value && "" !== this.value;
return this.clearable && !this.selectDisabled && this.inputHovering && t
},
iconClass: function() {
return this.remote && this.filterable ? "" : this.visible ? "arrow-up is-reverse" : "arrow-up"
},
debounce: function() {
return this.remote ? 300 : 0
},
emptyText: function() {
return this.loading ? this.loadingText || this.t("el.select.loading") : (!this.remote || "" !== this.query || 0 !== this.options.length) && (this.filterable && this.query && this.options.length > 0 && 0 === this.filteredOptionsCount ? this.noMatchText || this.t("el.select.noMatch") : 0 === this.options.length ? this.noDataText || this.t("el.select.noData") : null)
},
showNewOption: function() {
var t, e, n = this, i = c(t = p(e = this.options).call(e, (function(t) {
return !t.created
}
))).call(t, (function(t) {
return t.currentLabel === n.query
}
));
return this.filterable && this.allowCreate && "" !== this.query && !i
},
selectSize: function() {
return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size
},
selectDisabled: function() {
return this.disabled || (this.elForm || {}).disabled
},
collapseTagSize: function() {
var t;
return l(t = ["small", "mini"]).call(t, this.selectSize) > -1 ? "mini" : "small"
},
propPlaceholder: function() {
return "undefined" != typeof this.placeholder ? this.placeholder : this.t("el.select.placeholder")
},
isIndeterminate: function() {
return this.multiple && this.value.length > 0 && this.value.length < this.optionsLen
},
selectTextContent: function() {
var t = this;
if (!this.multiple && this.selectedLabel)
return this.selectedLabel;
if (this.selected.length) {
var e, n = "", i = this.selected.length;
return f(e = this.selected).call(e, (function(e, r) {
n += t.sliceTagContent(e.currentLabel) + (r < i - 1 ? "、" : "")
}
)),
n
}
return this.dropdownText
}
},
components: {
ElInput: _.a,
ElSelectMenu: I,
ElOption: L.a,
ElTag: M.a,
ElScrollbar: F.a,
ElCheckbox: C.a
},
directives: {
Clickoutside: D.a
},
props: {
name: String,
id: String,
value: {
required: !0
},
autocomplete: {
type: String,
"default": "off"
},
autoComplete: {
type: String,
validator: function(t) {
return !0
}
},
automaticDropdown: Boolean,
mouseenterDropdown: Boolean,
size: String,
disabled: Boolean,
clearable: Boolean,
filterable: Boolean,
allowCreate: Boolean,
loading: Boolean,
popperClass: String,
remote: Boolean,
loadingText: String,
noMatchText: String,
noDataText: String,
remoteMethod: Function,
filterMethod: Function,
multiple: Boolean,
selectAll: Boolean,
multipleLimit: {
type: Number,
"default": 0
},
placeholder: {
type: String,
required: !1
},
defaultFirstOption: Boolean,
reserveKeyword: Boolean,
valueKey: {
type: String,
"default": "value"
},
collapseTags: Boolean,
popperAppendToBody: {
type: Boolean,
"default": !0
},
borderless: {
type: Boolean,
"default": !1
},
visibleArrow: {
type: Boolean,
"default": !0
},
widthFull: {
type: Boolean,
"default": !1
},
tagContentLimit: {
type: Number,
"default": Infinity,
validator: function(t) {
return t >= 0 && h(t, 10) === t || t === Infinity
}
},
watchScrollBottomAction: {
type: Function,
"default": undefined,
validator: function(t) {
return "function" == typeof t
}
},
selectExpansion: {
type: Boolean,
"default": !1
},
showToolTip: {
type: Boolean
},
placement: {
type: String
},
dropdownText: String,
textType: Boolean,
textDropdownMinWidth: {
type: String,
"default": "120px"
},
actualOptions: {
type: Array,
"default": function() {
return []
}
}
},
data: function() {
return {
options: [],
cachedOptions: [],
createdLabel: null,
createdSelected: !1,
selected: this.multiple ? [] : {},
inputLength: 20,
inputWidth: 0,
initialInputHeight: 0,
cachedPlaceHolder: "",
optionsCount: 0,
filteredOptionsCount: 0,
visible: !1,
softFocus: !1,
selectedLabel: "",
hoverIndex: -1,
query: "",
previousQuery: null,
inputHovering: !1,
currentPlaceholder: "",
menuVisibleOnFocus: !1,
isOnComposition: !1,
isSilentBlur: !1
}
},
watch: {
selectDisabled: function() {
var t = this;
this.$nextTick((function() {
t.resetInputHeight()
}
))
},
propPlaceholder: function(t) {
this.cachedPlaceHolder = this.currentPlaceholder = t
},
value: function(t, e) {
this.multiple && (this.resetInputHeight(),
t && t.length > 0 || this.$refs.input && "" !== this.query ? this.currentPlaceholder = "" : this.currentPlaceholder = this.cachedPlaceHolder,
this.filterable && !this.reserveKeyword && (this.query = "",
this.handleQueryChange(this.query))),
this.setSelected(),
this.filterable && !this.multiple && (this.inputLength = 20),
Object(R.valueEquals)(t, e) || this.dispatch("ElFormItem", "el.form.change", t)
},
visible: function(t) {
var e = this;
t ? (this.broadcast("ElSelectDropdown", "updatePopper"),
this.filterable && (this.query = this.remote ? "" : this.selectedLabel,
this.handleQueryChange(this.query),
this.multiple ? this.$refs.input.focus() : (this.remote || (this.broadcast("ElOption", "queryChange", ""),
this.broadcast("ElOptionGroup", "queryChange")),
this.selectedLabel && (this.currentPlaceholder = this.selectedLabel,
this.selectedLabel = "")))) : (this.broadcast("ElSelectDropdown", "destroyPopper"),
this.$refs.input && this.$refs.input.blur(),
this.query = "",
this.previousQuery = null,
this.selectedLabel = "",
this.inputLength = 20,
this.menuVisibleOnFocus = !1,
this.resetHoverIndex(),
this.$nextTick((function() {
e.$refs.input && "" === e.$refs.input.value && 0 === e.selected.length && (e.currentPlaceholder = e.cachedPlaceHolder)
}
)),
this.multiple || (this.selected && (this.filterable && this.allowCreate && this.createdSelected && this.createdLabel ? this.selectedLabel = this.createdLabel : this.selectedLabel = this.selected.currentLabel,
this.filterable && (this.query = this.selectedLabel)),
this.filterable && (this.currentPlaceholder = this.cachedPlaceHolder))),
this.$emit("visible-change", t)
},
options: function() {
var t = this;
if (!this.$isServer) {
this.$nextTick((function() {
t.broadcast("ElSelectDropdown", "updatePopper")
}
)),
this.multiple && this.resetInputHeight();
var e = this.$el.querySelectorAll("input");
-1 === l([]).call(e, document.activeElement) && this.setSelected(),
this.defaultFirstOption && (this.filterable || this.remote) && this.filteredOptionsCount && this.checkDefaultFirstOption()
}
}
},
methods: {
scrollAction: function(t) {
var e = t.target;
e.scrollHeight - (e.scrollTop + e.clientHeight) <= 10 && this.watchScrollBottomAction()
},
sliceTagContent: function(t) {
return t.length > this.tagContentLimit ? m(t).call(t, 0, this.tagContentLimit) + "..." : t
},
initToggleSize: function() {
var t = this;
this.$watch((function() {
return !(!(this.visible && !1 !== this.emptyText && this.options.length > 0) || this.loading)
}
), (function(e) {
if (e)
try {
var n, i = (t.$refs.popper || {}).$el;
if (!i)
return;
var r = i.querySelector(".el-select-dropdown__wrap")
, a = t.$el
, o = r.getAttribute("style") || ""
, s = p(n = o.split(";")).call(n, (function(t) {
return t && -1 === l(t).call(t, "max-height")
}
)).join(";");
o !== s && r.setAttribute("style", s),
t.$nextTick((function() {
try {
var e = a.getBoundingClientRect()
, n = function(t) {
return t.offsetHeight || g(window.getComputedStyle(t, null).getPropertyValue("height") || 0)
}(r)
, i = (window.innerHeight || document.documentElement.clientHeight) - e.bottom;
if (n <= 125)
return;
if (e.top >= n || i >= n)
return;
r.style.maxHeight = "125px",
t.$nextTick((function() {
return t.broadcast("ElSelectDropdown", "updatePopper")
}
))
} catch (o) {}
}
))
} catch (c) {}
}
))
},
handleComposition: function(t) {
var e = this
, n = t.target.value;
if ("compositionend" === t.type)
this.isOnComposition = !1,
this.$nextTick((function(t) {
return e.handleQueryChange(n)
}
));
else {
var i = n[n.length - 1] || "";
this.isOnComposition = !Object(U.isKorean)(i)
}
},
handleQueryChange: function(t) {
var e = this;
this.previousQuery === t || this.isOnComposition || (null !== this.previousQuery || "function" != typeof this.filterMethod && "function" != typeof this.remoteMethod ? (this.previousQuery = t,
this.$nextTick((function() {
e.visible && e.broadcast("ElSelectDropdown", "updatePopper")
}
)),
this.hoverIndex = -1,
this.multiple && this.filterable && this.$nextTick((function() {
var t = 15 * e.$refs.input.value.length + 20;
e.inputLength = e.collapseTags ? Math.min(50, t) : t,
e.managePlaceholder(),
e.resetInputHeight()
}
)),
this.remote && "function" == typeof this.remoteMethod ? (this.hoverIndex = -1,
this.remoteMethod(t)) : "function" == typeof this.filterMethod ? (this.filterMethod(t),
this.broadcast("ElOptionGroup", "queryChange")) : (this.filteredOptionsCount = this.optionsCount,
this.broadcast("ElOption", "queryChange", t),
this.broadcast("ElOptionGroup", "queryChange")),
this.defaultFirstOption && (this.filterable || this.remote) && this.filteredOptionsCount && this.checkDefaultFirstOption()) : this.previousQuery = t)
},
scrollToOption: function(t) {
var e = Array.isArray(t) && t[0] ? t[0].$el : t.$el;
if (this.$refs.popper && e) {
var n = this.$refs.popper.$el.querySelector(".el-select-dropdown__wrap");
H()(n, e)
}
this.$refs.scrollbar && this.$refs.scrollbar.handleScroll()
},
handleMenuEnter: function() {
var t = this;
this.$nextTick((function() {
return t.scrollToOption(t.selected)
}
))
},
emitChange: function(t) {
Object(R.valueEquals)(this.value, t) || this.$emit("change", t)
},
getOption: function(t) {
for (var e = void 0, n = "[object object]" === Object.prototype.toString.call(t).toLowerCase(), i = "[object null]" === Object.prototype.toString.call(t).toLowerCase(), r = "[object undefined]" === Object.prototype.toString.call(t).toLowerCase(), a = this.cachedOptions.length - 1; a >= 0; a--) {
var o = this.cachedOptions[a];
if (n ? Object(R.getValueByPath)(o.value, this.valueKey) === Object(R.getValueByPath)(t, this.valueKey) : o.value === t) {
e = o;
break
}
}
if (e)
return e;
var s = {
value: t,
currentLabel: n || i || r ? "" : t
};
return this.multiple && (s.hitState = !1),
s
},
setSelected: function() {
var t = this;
if (!this.multiple) {
var e = this.getOption(this.value);
return e.created ? (this.createdLabel = e.currentLabel,
this.createdSelected = !0) : this.createdSelected = !1,
this.selectedLabel = e.currentLabel,
this.selected = e,
void (this.filterable && (this.query = this.selectedLabel))
}
var n, i = [];
Array.isArray(this.value) && f(n = this.value).call(n, (function(e) {
i.push(t.getOption(e))
}
));
this.selected = i,
this.$nextTick((function() {
t.resetInputHeight()
}
))
},
handleFocus: function(t) {
this.softFocus ? this.softFocus = !1 : ((this.automaticDropdown || this.filterable) && (this.visible = !0,
this.filterable && (this.menuVisibleOnFocus = !0)),
this.$emit("focus", t))
},
blur: function() {
this.visible = !1,
this.$refs.reference.blur()
},
handleBlur: function(t) {
var e = this;
setTimeout((function() {
e.isSilentBlur ? e.isSilentBlur = !1 : e.$emit("blur", t)
}
), 50),
this.softFocus = !1
},
handleClearClick: function(t) {
this.deleteSelected(t)
},
doDestroy: function() {
this.$refs.popper && this.$refs.popper.doDestroy()
},
handleClose: function() {
this.visible = !1
},
toggleLastOptionHitState: function(t) {
if (Array.isArray(this.selected)) {
var e = this.selected[this.selected.length - 1];
if (e)
return !0 === t || !1 === t ? (e.hitState = t,
t) : (e.hitState = !e.hitState,
e.hitState)
}
},
deletePrevTag: function(t) {
if (t.target.value.length <= 0 && !this.toggleLastOptionHitState()) {
var e, n = m(e = this.value).call(e);
n.pop(),
this.$emit("input", n),
this.emitChange(n)
}
},
managePlaceholder: function() {
"" !== this.currentPlaceholder && (this.currentPlaceholder = this.$refs.input.value ? "" : this.cachedPlaceHolder)
},
resetInputState: function(t) {
8 !== t.keyCode && this.toggleLastOptionHitState(!1),
this.inputLength = 15 * this.$refs.input.value.length + 20,
this.resetInputHeight()
},
resetInputHeight: function() {
var t = this;
this.collapseTags && !this.filterable || this.$nextTick((function() {
if (t.$refs.reference && !t.textType) {
var e = t.$refs.reference.$el.childNodes
, n = p([]).call(e, (function(t) {
return "INPUT" === t.tagName
}
))[0]
, i = t.$refs.tags
, r = t.initialInputHeight || 40;
n.style.height = 0 === t.selected.length ? r + "px" : Math.max(i ? i.clientHeight + (i.clientHeight > r ? 6 : 0) : 0, r) + "px",
t.visible && !1 !== t.emptyText && t.broadcast("ElSelectDropdown", "updatePopper")
}
}
))
},
resetHoverIndex: function() {
var t = this;
setTimeout((function() {
var e, n;
t.multiple ? t.selected.length > 0 ? t.hoverIndex = Math.min.apply(null, v(e = t.selected).call(e, (function(e) {
var n;
return l(n = t.options).call(n, e)
}
))) : t.hoverIndex = -1 : t.hoverIndex = l(n = t.options).call(n, t.selected)
}
), 300)
},
handleOptionSelect: function(t, e) {
var n = this;
if (this.multiple) {
var i, r = m(i = this.value || []).call(i), a = this.getValueIndex(r, t.value);
a > -1 ? u(r).call(r, a, 1) : (this.multipleLimit <= 0 || r.length < this.multipleLimit) && r.push(t.value),
this.$emit("input", r),
this.emitChange(r),
t.created && (this.query = "",
this.handleQueryChange(""),
this.inputLength = 20),
this.filterable && this.$refs.input && this.$refs.input.focus()
} else
this.$emit("input", t.value),
this.emitChange(t.value),
this.visible = !1;
this.isSilentBlur = e,
this.setSoftFocus(),
this.visible || this.$nextTick((function() {
n.scrollToOption(t)
}
))
},
setSoftFocus: function() {
this.softFocus = !0;
var t = this.$refs.input || this.$refs.reference;
t && t.focus()
},
getValueIndex: function() {
var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []
, e = arguments[1];
if ("[object object]" === Object.prototype.toString.call(e).toLowerCase()) {
var n = this.valueKey
, i = -1;
return c(t).call(t, (function(t, r) {
return Object(R.getValueByPath)(t, n) === Object(R.getValueByPath)(e, n) && (i = r,
!0)
}
)),
i
}
return l(t).call(t, e)
},
toggleMenu: function() {
this.selectDisabled || this.mouseenterDropdown || (this.menuVisibleOnFocus ? this.menuVisibleOnFocus = !1 : this.visible = !this.visible,
this.visible && (this.$refs.input || this.$refs.reference).focus())
},
mouseenterAction: function() {
!this.selectDisabled && this.mouseenterDropdown && (this.menuVisibleOnFocus ? this.menuVisibleOnFocus = !1 : (this.visible = !0,
(this.$refs.input || this.$refs.reference).focus()))
},
selectOption: function() {
this.visible ? this.options[this.hoverIndex] && !this.isOnComposition && this.handleOptionSelect(this.options[this.hoverIndex]) : this.toggleMenu()
},
deleteSelected: function(t) {
t.stopPropagation();
var e = this.multiple ? [] : "";
this.$emit("input", e),
this.emitChange(e),
this.visible = !1,
this.$emit("clear")
},
deleteTag: function(t, e) {
var n, i = l(n = this.selected).call(n, e);
if (i > -1 && !this.selectDisabled) {
var r, a = m(r = this.value).call(r);
u(a).call(a, i, 1),
this.$emit("input", a),
this.emitChange(a),
this.$emit("remove-tag", e.value)
}
t.stopPropagation()
},
onInputChange: function() {
this.filterable && this.query !== this.selectedLabel && (this.query = this.selectedLabel,
this.handleQueryChange(this.query))
},
onOptionDestroy: function(t) {
var e;
t > -1 && (this.optionsCount--,
this.filteredOptionsCount--,
u(e = this.options).call(e, t, 1))
},
resetInputWidth: function() {
this.inputWidth = this.$refs.reference.$el.getBoundingClientRect().width
},
handleResize: function() {
this.resetInputWidth(),
this.multiple && this.resetInputHeight()
},
autoBlur: function() {
this.filterable && "hidden" === document.visibilityState && (this.$refs.reference || this.$refs.input).blur()
},
checkDefaultFirstOption: function() {
this.hoverIndex = -1;
for (var t = !1, e = this.options.length - 1; e >= 0; e--)
if (this.options[e].created) {
t = !0,
this.hoverIndex = e;
break
}
if (!t)
for (var n = 0; n !== this.options.length; ++n) {
var i = this.options[n];
if (this.query) {
if (!i.disabled && !i.groupDisabled && i.visible) {
this.hoverIndex = n;
break
}
} else if (i.itemSelected) {
this.hoverIndex = n;
break
}
}
},
getValueKey: function(t) {
return "[object object]" !== Object.prototype.toString.call(t.value).toLowerCase() ? t.value : Object(R.getValueByPath)(t.value, this.valueKey)
},
handleCheckAllChange: function(t) {
var e, n = t ? v(e = this.getCanSelectOptions()).call(e, (function(t) {
return t.value
}
)) : [];
this.$emit("input", n),
this.$emit("checkAllChange", t, n),
this.emitChange(n)
},
getCanSelectOptions: function() {
var t;
return p(t = this.options).call(t, (function(t) {
return !t.disabled && t.visible
}
))
}
},
created: function() {
var t = this;
this.cachedPlaceHolder = this.currentPlaceholder = this.propPlaceholder,
this.multiple && !Array.isArray(this.value) && this.$emit("input", []),
!this.multiple && Array.isArray(this.value) && this.$emit("input", ""),
this.debouncedOnInputChange = O()(this.debounce, (function() {
t.onInputChange()
}
)),
this.debouncedQueryChange = O()(this.debounce, (function(e) {
t.handleQueryChange(e.target.value)
}
)),
this.$on("handleOptionClick", this.handleOptionSelect),
this.$on("setSelected", this.setSelected)
},
mounted: function() {
var t = this;
"function" == typeof this.watchScrollBottomAction && this.$refs.scrollbar.wrap.addEventListener("scroll", this.scrollAction),
this.initToggleSize(),
this.multiple && Array.isArray(this.value) && this.value.length > 0 && (this.currentPlaceholder = ""),
Object(A.addResizeListener)(this.$el, this.handleResize),
document.addEventListener("visibilitychange", this.autoBlur);
var e = this.$refs.reference;
if (e && e.$el) {
var n = e.$el.querySelector("input");
n && (this.initialInputHeight = n.getBoundingClientRect().height || {
medium: 36,
small: 32,
mini: 28,
s: 24
}[this.selectSize])
}
this.remote && this.multiple && this.resetInputHeight(),
this.$nextTick((function() {
e && e.$el && (t.inputWidth = e.$el.getBoundingClientRect().width)
}
)),
this.setSelected()
},
beforeDestroy: function() {
this.$el && this.handleResize && Object(A.removeResizeListener)(this.$el, this.handleResize),
"function" == typeof this.watchScrollBottomAction && this.$refs.scrollbar.wrap.removeEventListener("scroll", this.scrollAction),
document.removeEventListener("visibilitychange", this.autoBlur)
}
}
, V = q
, W = Object(E.a)(V, i, [], !1, null, null, null).exports;
W.install = function(t) {
t.component(W.name, W)
}
;
e["default"] = W
}
})
},
57411: function(t, e, n) {
var i = n(96110)
, r = n(99221)
, a = n(87089)
, o = n(34076)
, s = n(75533)
, l = n(86990);
t.exports = function(t) {
var e = {};
function n(i) {
if (e[i])
return e[i].exports;
var r = e[i] = {
i: i,
l: !1,
exports: {}
};
return t[i].call(r.exports, r, r.exports, n),
r.l = !0,
r.exports
}
return n.m = t,
n.c = e,
n.d = function(t, e, i) {
n.o(t, e) || r(t, e, {
enumerable: !0,
get: i
})
}
,
n.r = function(t) {
void 0 !== a && o && r(t, o, {
value: "Module"
}),
r(t, "__esModule", {
value: !0
})
}
,
n.t = function(t, e) {
if (1 & e && (t = n(t)),
8 & e)
return t;
if (4 & e && "object" === i(t) && t && t.__esModule)
return t;
var a = Object.create(null);
if (n.r(a),
r(a, "default", {
enumerable: !0,
value: t
}),
2 & e && "string" != typeof t)
for (var o in t)
n.d(a, o, function(e) {
return t[e]
}
.bind(null, o));
return a
}
,
n.n = function(t) {
var e = t && t.__esModule ? function() {
return t["default"]
}
: function() {
return t
}
;
return n.d(e, "a", e),
e
}
,
n.o = function(t, e) {
return Object.prototype.hasOwnProperty.call(t, e)
}
,
n.p = "/dist/",
n(n.s = 147)
}({
0: function(t, e, n) {
"use strict";
function i(t, e, n, i, r, a, o, l) {
var c, u = "function" == typeof t ? t.options : t;
if (e && (u.render = e,
u.staticRenderFns = n,
u._compiled = !0),
i && (u.functional = !0),
a && (u._scopeId = "data-v-" + a),
o ? (c = function(t) {
(t = t || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) || "undefined" == typeof __VUE_SSR_CONTEXT__ || (t = __VUE_SSR_CONTEXT__),
r && r.call(this, t),
t && t._registeredComponents && t._registeredComponents.add(o)
}
,
u._ssrRegister = c) : r && (c = l ? function() {
r.call(this, (u.functional ? this.parent : this).$root.$options.shadowRoot)
}
: r),
c)
if (u.functional) {
u._injectStyles = c;
var d = u.render;
u.render = function(t, e) {
return c.call(e),
d(t, e)
}
} else {
var p, f = u.beforeCreate;
u.beforeCreate = f ? s(p = []).call(p, f, c) : [c]
}
return {
exports: t,
options: u
}
}
n.d(e, "a", (function() {
return i
}
))
},
147: function(t, e, n) {
"use strict";
n.r(e);
var i = {
name: "ElTag",
props: {
text: String,
closable: Boolean,
type: String,
hit: Boolean,
disableTransitions: Boolean,
color: String,
size: String,
effect: {
type: String,
"default": "light",
validator: function(t) {
var e;
return -1 !== l(e = ["dark", "light", "plain"]).call(e, t)
}
}
},
methods: {
handleClose: function(t) {
t.stopPropagation(),
this.$emit("close", t)
},
handleClick: function(t) {
this.$emit("click", t)
}
},
computed: {
tagSize: function() {
return this.size || (this.$ELEMENT || {}).size
}
},
render: function(t) {
var e = this.type
, n = this.tagSize
, i = this.hit
, r = this.effect
, a = t("span", {
"class": ["el-tag", e ? "el-tag--" + e : "", n ? "el-tag--" + n : "", r ? "el-tag--" + r : "", i && "is-hit"],
style: {
backgroundColor: this.color
},
on: {
click: this.handleClick
}
}, [this.$slots["default"], this.closable && t("i", {
"class": "el-tag__close el-icon-close",
on: {
click: this.handleClose
}
})]);
return this.disableTransitions ? a : t("transition", {
attrs: {
name: "el-zoom-in-center"
}
}, [a])
}
}
, r = n(0)
, a = Object(r.a)(i, undefined, undefined, !1, null, null, null).exports;
a.install = function(t) {
t.component(a.name, a)
}
;
e["default"] = a
}
})
},
94421: function(t, e, n) {
var i = n(96110)
, r = n(99221)
, a = n(87089)
, o = n(34076);
t.exports = function(t) {
var e = {};
function n(i) {
if (e[i])
return e[i].exports;
var r = e[i] = {
i: i,
l: !1,
exports: {}
};
return t[i].call(r.exports, r, r.exports, n),
r.l = !0,
r.exports
}
return n.m = t,
n.c = e,
n.d = function(t, e, i) {
n.o(t, e) || r(t, e, {
enumerable: !0,
get: i
})
}
,
n.r = function(t) {
void 0 !== a && o && r(t, o, {
value: "Module"
}),
r(t, "__esModule", {
value: !0
})
}
,
n.t = function(t, e) {
if (1 & e && (t = n(t)),
8 & e)
return t;
if (4 & e && "object" === i(t) && t && t.__esModule)
return t;
var a = Object.create(null);
if (n.r(a),
r(a, "default", {
enumerable: !0,
value: t
}),
2 & e && "string" != typeof t)
for (var o in t)
n.d(a, o, function(e) {
return t[e]
}
.bind(null, o));
return a
}
,
n.n = function(t) {
var e = t && t.__esModule ? function() {
return t["default"]
}
: function() {
return t
}
;
return n.d(e, "a", e),
e
}
,
n.o = function(t, e) {
return Object.prototype.hasOwnProperty.call(t, e)
}
,
n.p = "/dist/",
n(n.s = 152)
}({
152: function(t, e, n) {
"use strict";
n.r(e);
var i = n(6)
, r = n.n(i)
, a = n(22)
, o = n.n(a)
, s = n(2)
, l = n(3)
, c = n(5)
, u = n.n(c)
, d = {
name: "ElTooltip",
mixins: [r.a],
props: {
openDelay: {
type: Number,
"default": 0
},
disabled: Boolean,
manual: Boolean,
effect: {
type: String,
"default": "dark"
},
arrowOffset: {
type: Number,
"default": 0
},
popperClass: String,
content: String,
visibleArrow: {
"default": !0
},
transition: {
type: String,
"default": "el-fade-in-linear"
},
popperOptions: {
"default": function() {
return {
boundariesPadding: 10,
gpuAcceleration: !1
}
}
},
enterable: {
type: Boolean,
"default": !0
},
hideAfter: {
type: Number,
"default": 0
},
tabindex: {
type: Number,
"default": 0
}
},
data: function() {
return {
tooltipId: "el-tooltip-" + Object(l.generateId)(),
timeoutPending: null,
focusing: !1
}
},
beforeCreate: function() {
var t = this;
this.$isServer || (this.popperVM = new u.a({
data: {
node: ""
},
render: function(t) {
return this.node
}
}).$mount(),
this.debounceClose = o()(200, (function() {
return t.handleClosePopper()
}
)))
},
render: function(t) {
var e = this;
this.popperVM && (this.popperVM.node = t("transition", {
attrs: {
name: this.transition
},
on: {
afterLeave: this.doDestroy
}
}, [t("div", {
on: {
mouseleave: function() {
e.setExpectedState(!1),
e.debounceClose()
},
mouseenter: function() {
e.setExpectedState(!0)
}
},
ref: "popper",
attrs: {
role: "tooltip",
id: this.tooltipId,
"aria-hidden": this.disabled || !this.showPopper ? "true" : "false"
},
directives: [{
name: "show",
value: !this.disabled && this.showPopper
}],
"class": ["el-tooltip__popper", "is-" + this.effect, this.popperClass]
}, [this.$slots.content || this.content])]));
var n = this.getFirstElement();
if (!n)
return null;
var i = n.data = n.data || {};
return i.staticClass = this.addTooltipClass(i.staticClass),
n
},
mounted: function() {
var t = this;
this.referenceElm = this.$el,
1 === this.$el.nodeType && (this.$el.setAttribute("aria-describedby", this.tooltipId),
this.$el.setAttribute("tabindex", this.tabindex),
Object(s.on)(this.referenceElm, "mouseenter", this.show),
Object(s.on)(this.referenceElm, "mouseleave", this.hide),
Object(s.on)(this.referenceElm, "focus", (function() {
if (t.$slots["default"] && t.$slots["default"].length) {
var e = t.$slots["default"][0].componentInstance;
e && e.focus ? e.focus() : t.handleFocus()
} else
t.handleFocus()
}
)),
Object(s.on)(this.referenceElm, "blur", this.handleBlur),
Object(s.on)(this.referenceElm, "click", this.removeFocusing)),
this.value && this.popperVM && this.popperVM.$nextTick((function() {
t.value && t.updatePopper()
}
))
},
watch: {
focusing: function(t) {
t ? Object(s.addClass)(this.referenceElm, "focusing") : Object(s.removeClass)(this.referenceElm, "focusing")
}
},
methods: {
show: function() {
this.setExpectedState(!0),
this.handleShowPopper()
},
hide: function() {
this.setExpectedState(!1),
this.debounceClose()
},
handleFocus: function() {
this.focusing = !0,
this.show()
},
handleBlur: function() {
this.focusing = !1,
this.hide(),
this.referenceElm.blur()
},
removeFocusing: function() {
this.focusing = !1
},
addTooltipClass: function(t) {
return t ? "el-tooltip " + t.replace("el-tooltip", "") : "el-tooltip"
},
handleShowPopper: function() {
var t = this;
this.expectedState && !this.manual && (clearTimeout(this.timeout),
this.timeout = setTimeout((function() {
t.showPopper = !0
}
), this.openDelay),
this.hideAfter > 0 && (this.timeoutPending = setTimeout((function() {
t.showPopper = !1
}
), this.hideAfter)))
},
handleClosePopper: function() {
this.enterable && this.expectedState || this.manual || (clearTimeout(this.timeout),
this.timeoutPending && clearTimeout(this.timeoutPending),
this.showPopper = !1,
this.disabled && this.doDestroy())
},
setExpectedState: function(t) {
!1 === t && clearTimeout(this.timeoutPending),
this.expectedState = t
},
getFirstElement: function() {
var t = this.$slots["default"];
if (!Array.isArray(t))
return null;
for (var e = null, n = 0; n < t.length; n++)
t[n] && t[n].tag && (e = t[n]);
return e
}
},
beforeDestroy: function() {
this.popperVM && this.popperVM.$destroy()
},
destroyed: function() {
var t = this.referenceElm;
1 === t.nodeType && (Object(s.off)(t, "mouseenter", this.show),
Object(s.off)(t, "mouseleave", this.hide),
Object(s.off)(t, "focus", this.handleFocus),
Object(s.off)(t, "blur", this.handleBlur),
Object(s.off)(t, "click", this.removeFocusing))
},
install: function(t) {
t.component(d.name, d)
}
};
e["default"] = d
},
2: function(t, e) {
t.exports = n(21807)
},
22: function(t, e) {
t.exports = n(11864)
},
3: function(t, e) {
t.exports = n(17167)
},
5: function(t, e) {
t.exports = n(10055)
},
6: function(t, e) {
t.exports = n(71764)
}
})
},
19952: function(t, e, n) {
"use strict";
var i = n(99734)
, r = n(85303);
e.__esModule = !0;
var a, o = n(10055), s = (a = o) && a.__esModule ? a : {
"default": a
}, l = n(21807);
var c = []
, u = "@@clickoutsideContext"
, d = void 0
, p = 0;
function f(t) {
i(c).call(c, (function(e) {
return e[u].documentHandler(t, d)
}
))
}
function h(t, e, n) {
return function() {
var i = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}
, r = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
!(n && n.context && i.target && r.target) || t.contains(i.target) || t.contains(r.target) || t === i.target || n.context.popperElm && (n.context.popperElm.contains(i.target) || n.context.popperElm.contains(r.target)) || (e.expression && t[u].methodName && n.context[t[u].methodName] ? n.context[t[u].methodName]() : t[u].bindingFn && t[u].bindingFn())
}
}
!s["default"].prototype.$isServer && (0,
l.on)(document, "mousedown", (function(t) {
d = t,
!s["default"].prototype.$isServer && (0,
l.on)(document, "mousemove", f)
}
)),
!s["default"].prototype.$isServer && (0,
l.on)(document, "mouseup", (function(t) {
document.onmousemove || ((0,
l.off)(document, "mousemove", f),
f(t))
}
)),
e["default"] = {
bind: function(t, e, n) {
c.push(t);
var i = p++;
t[u] = {
id: i,
documentHandler: h(t, e, n),
methodName: e.expression,
bindingFn: e.value
}
},
update: function(t, e, n) {
t[u].documentHandler = h(t, e, n),
t[u].methodName = e.expression,
t[u].bindingFn = e.value
},
unbind: function(t) {
for (var e = c.length, n = 0; n < e; n++)
if (c[n][u].id === t[u].id) {
r(c).call(c, n, 1);
break
}
delete t[u]
}
}
},
21807: function(t, e, n) {
"use strict";
var i = n(86990)
, r = n(27732);
e.__esModule = !0,
e.isInContainer = e.getScrollContainer = e.isScroll = e.getStyle = e.once = e.off = e.on = undefined;
var a = o(n(72444));
function o(t) {
return t && t.__esModule ? t : {
"default": t
}
}
e.hasClass = m,
e.addClass = function(t, e) {
if (!t)
return;
for (var n = t.className, i = (e || "").split(" "), r = 0, a = i.length; r < a; r++) {
var o = i[r];
o && (t.classList ? t.classList.add(o) : m(t, o) || (n += " " + o))
}
t.classList || (t.className = n)
}
,
e.removeClass = function(t, e) {
if (!t || !e)
return;
for (var n = e.split(" "), i = " " + t.className + " ", r = 0, a = n.length; r < a; r++) {
var o = n[r];
o && (t.classList ? t.classList.remove(o) : m(t, o) && (i = i.replace(" " + o + " ", " ")))
}
t.classList || (t.className = d(i))
}
,
e.setStyle = function b(t, e, n) {
if (!t || !e)
return;
if ("object" === (void 0 === e ? "undefined" : (0,
a["default"])(e)))
for (var i in e)
e.hasOwnProperty(i) && b(t, i, e[i]);
else
"opacity" === (e = p(e)) && u < 9 ? t.style.filter = isNaN(n) ? "" : "alpha(opacity=" + 100 * n + ")" : t.style[e] = n
}
;
var s = o(n(10055))["default"].prototype.$isServer
, l = /([\:\-\_]+(.))/g
, c = /^moz([A-Z])/
, u = s ? 0 : Number(document.documentMode)
, d = function(t) {
return (t || "").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, "")
}
, p = function(t) {
return t.replace(l, (function(t, e, n, i) {
return i ? n.toUpperCase() : n
}
)).replace(c, "Moz$1")
}
, f = e.on = !s && document.addEventListener ? function(t, e, n) {
t && e && n && t.addEventListener(e, n, !1)
}
: function(t, e, n) {
t && e && n && t.attachEvent("on" + e, n)
}
, h = e.off = !s && document.removeEventListener ? function(t, e, n) {
t && e && t.removeEventListener(e, n, !1)
}
: function(t, e, n) {
t && e && t.detachEvent("on" + e, n)
}
;
e.once = function(t, e, n) {
f(t, e, (function i() {
n && n.apply(this, arguments),
h(t, e, i)
}
))
}
;
function m(t, e) {
if (!t || !e)
return !1;
if (-1 !== i(e).call(e, " "))
throw new Error("className should not contain space.");
return t.classList ? t.classList.contains(e) : i(n = " " + t.className + " ").call(n, " " + e + " ") > -1;
var n
}
var g = e.getStyle = u < 9 ? function(t, e) {
if (!s) {
if (!t || !e)
return null;
"float" === (e = p(e)) && (e = "styleFloat");
try {
if ("opacity" === e)
try {
return t.filters.item("alpha").opacity / 100
} catch (n) {
return 1
}
return t.style[e] || t.currentStyle ? t.currentStyle[e] : null
} catch (n) {
return t.style[e]
}
}
}
: function(t, e) {
if (!s) {
if (!t || !e)
return null;
"float" === (e = p(e)) && (e = "cssFloat");
try {
var n = document.defaultView.getComputedStyle(t, "");
return t.style[e] || n ? n[e] : null
} catch (i) {
return t.style[e]
}
}
}
;
var v = e.isScroll = function(t, e) {
if (!s) {
var n = null !== e || e !== undefined;
return g(t, n ? e ? "overflow-y" : "overflow-x" : "overflow").match(/(scroll|auto)/)
}
}
;
e.getScrollContainer = function(t, e) {
if (!s) {
for (var n = t; n; ) {
var i;
if (r(i = [window, document, document.documentElement]).call(i, n))
return window;
if (v(n, e))
return n;
n = n.parentNode
}
return n
}
}
,
e.isInContainer = function(t, e) {
var n;
if (s || !t || !e)
return !1;
var i = t.getBoundingClientRect()
, a = void 0;
return a = r(n = [window, document, document.documentElement, null, undefined]).call(n, e) ? {
top: 0,
right: window.innerWidth,
bottom: window.innerHeight,
left: 0
} : e.getBoundingClientRect(),
i.top < a.bottom && i.bottom > a.top && i.right > a.left && i.left < a.right
}
},
90269: function(t, e) {
"use strict";
e.__esModule = !0,
e["default"] = function(t) {
for (var e = 1, n = arguments.length; e < n; e++) {
var i = arguments[e] || {};
for (var r in i)
if (i.hasOwnProperty(r)) {
var a = i[r];
a !== undefined && (t[r] = a)
}
}
return t
}
},
94789: function(t, e, n) {
"use strict";
var i, r, a = n(75441), o = n(86990), s = n(99734), l = n(91041), c = n(17986), u = n(97806), d = n(99221), p = m(n(8177)), f = m(n(88902)), h = m(n(52945));
m(n(72444));
function m(t) {
return t && t.__esModule ? t : {
"default": t
}
}
undefined,
i = function() {
var t = window
, e = {
placement: "bottom",
gpuAcceleration: !0,
offset: 0,
boundariesElement: "viewport",
boundariesPadding: 5,
preventOverflowOrder: ["left", "right", "top", "bottom"],
flipBehavior: "flip",
arrowElement: "[x-arrow]",
arrowOffset: 0,
modifiers: ["shift", "offset", "preventOverflow", "keepTogether", "arrow", "flip", "applyStyle"],
modifiersIgnored: [],
forceAbsolute: !1
};
function n(t, n, i) {
var r;
this._reference = t.jquery ? t[0] : t,
this.state = {};
var s = null == n
, l = n && "[object Object]" === Object.prototype.toString.call(n);
return this._popper = s || l ? this.parse(l ? n : {}) : n.jquery ? n[0] : n,
this._options = (0,
h["default"])({}, e, i),
this._options.modifiers = a(r = this._options.modifiers).call(r, function(t) {
var e;
if (-1 === o(e = this._options.modifiersIgnored).call(e, t))
return "applyStyle" === t && this._popper.setAttribute("x-placement", this._options.placement),
this.modifiers[t] || t
}
.bind(this)),
this.state.position = this._getPosition(this._popper, this._reference),
_(this._popper, {
position: this.state.position,
top: 0
}),
this.update(),
this._setupEventListeners(),
this
}
function i(e) {
var n = e.style.display
, i = e.style.visibility;
e.style.display = "block",
e.style.visibility = "hidden",
e.offsetWidth;
var r = t.getComputedStyle(e)
, a = u(r.marginTop) + u(r.marginBottom)
, o = u(r.marginLeft) + u(r.marginRight)
, s = {
width: e.offsetWidth + o,
height: e.offsetHeight + a
};
return e.style.display = n,
e.style.visibility = i,
s
}
function r(t) {
var e = {
left: "right",
right: "left",
bottom: "top",
top: "bottom"
};
return t.replace(/left|right|bottom|top/g, (function(t) {
return e[t]
}
))
}
function m(t) {
var e = (0,
h["default"])({}, t);
return e.right = e.left + e.width,
e.bottom = e.top + e.height,
e
}
function g(t, e) {
var n, i = 0;
for (n in t) {
if (t[n] === e)
return i;
i++
}
return null
}
function v(e, n) {
return t.getComputedStyle(e, null)[n]
}
function b(e) {
var n = e.offsetParent;
return n !== t.document.body && n ? n : t.document.documentElement
}
function y(e) {
var n, i, r, a = e.parentNode;
return a ? a === t.document ? t.document.body.scrollTop || t.document.body.scrollLeft ? t.document.body : t.document.documentElement : -1 !== o(n = ["scroll", "auto"]).call(n, v(a, "overflow")) || -1 !== o(i = ["scroll", "auto"]).call(i, v(a, "overflow-x")) || -1 !== o(r = ["scroll", "auto"]).call(r, v(a, "overflow-y")) ? a : y(e.parentNode) : e
}
function w(e, n) {
return e !== t.document.body && !n && ("fixed" === v(e, "position") || (e.parentNode ? w(e.parentNode) : e))
}
function _(t, e) {
var n;
function i(t) {
return "" !== t && !isNaN(u(t)) && isFinite(t)
}
s(n = (0,
f["default"])(e)).call(n, (function(n) {
var r, a = "";
-1 !== o(r = ["width", "height", "top", "right", "bottom", "left"]).call(r, n) && i(e[n]) && (a = "px"),
t.style[n] = e[n] + a
}
))
}
function x(t) {
return t && "[object Function]" === {}.toString.call(t)
}
function C(t) {
var e = {
width: t.offsetWidth,
height: t.offsetHeight,
left: t.offsetLeft,
top: t.offsetTop
};
return e.right = e.left + e.width,
e.bottom = e.top + e.height,
e
}
function k(t) {
var e, n = t.getBoundingClientRect(), i = -1 != o(e = navigator.userAgent).call(e, "MSIE") && "HTML" === t.tagName ? -t.scrollTop : n.top;
return {
left: n.left,
top: i,
right: n.right,
bottom: n.bottom,
width: n.right - n.left,
height: n.bottom - i
}
}
function S(t, e, n) {
var i = k(t)
, r = k(e);
if (n) {
var a = y(e);
r.top += a.scrollTop,
r.bottom += a.scrollTop,
r.left += a.scrollLeft,
r.right += a.scrollLeft
}
return {
top: i.top - r.top,
left: i.left - r.left,
bottom: i.top - r.top + i.height,
right: i.left - r.left + i.width,
width: i.width,
height: i.height
}
}
function T(e) {
for (var n = ["", "ms", "webkit", "moz", "o"], i = 0; i < n.length; i++) {
var r = n[i] ? n[i] + e.charAt(0).toUpperCase() + l(e).call(e, 1) : e;
if ("undefined" != typeof t.document.body.style[r])
return r
}
return null
}
return n.prototype.destroy = function() {
return this._popper.removeAttribute("x-placement"),
this._popper.style.left = "",
this._popper.style.position = "",
this._popper.style.top = "",
this._popper.style[T("transform")] = "",
this._removeEventListeners(),
this._options.removeOnDestroy && this._popper.remove(),
this
}
,
n.prototype.update = function() {
var t = {
instance: this,
styles: {}
};
t.placement = this._options.placement,
t._originalPlacement = this._options.placement,
t.offsets = this._getOffsets(this._popper, this._reference, t.placement),
t.boundaries = this._getBoundaries(t, this._options.boundariesPadding, this._options.boundariesElement),
t = this.runModifiers(t, this._options.modifiers),
"function" == typeof this.state.updateCallback && this.state.updateCallback(t)
}
,
n.prototype.onCreate = function(t) {
return t(this),
this
}
,
n.prototype.onUpdate = function(t) {
return this.state.updateCallback = t,
this
}
,
n.prototype.parse = function(e) {
var n = {
tagName: "div",
classNames: ["popper"],
attributes: [],
parent: t.document.body,
content: "",
contentType: "text",
arrowTagName: "div",
arrowClassNames: ["popper__arrow"],
arrowAttributes: ["x-arrow"]
};
e = (0,
h["default"])({}, n, e);
var i = t.document
, r = i.createElement(e.tagName);
if (l(r, e.classNames),
c(r, e.attributes),
"node" === e.contentType ? r.appendChild(e.content.jquery ? e.content[0] : e.content) : "html" === e.contentType ? r.innerHTML = e.content : r.textContent = e.content,
e.arrowTagName) {
var a = i.createElement(e.arrowTagName);
l(a, e.arrowClassNames),
c(a, e.arrowAttributes),
r.appendChild(a)
}
var o = e.parent.jquery ? e.parent[0] : e.parent;
if ("string" == typeof o) {
if ((o = i.querySelectorAll(e.parent)).length > 1 && console.warn("WARNING: the given `parent` query(" + e.parent + ") matched more than one element, the first one will be used"),
0 === o.length)
throw "ERROR: the given `parent` doesn't exists!";
o = o[0]
}
return o.length > 1 && o instanceof Element == 0 && (console.warn("WARNING: you have passed as parent a list of elements, the first one will be used"),
o = o[0]),
o.appendChild(r),
r;
function l(t, e) {
s(e).call(e, (function(e) {
t.classList.add(e)
}
))
}
function c(t, e) {
s(e).call(e, (function(e) {
t.setAttribute(e.split(":")[0], e.split(":")[1] || "")
}
))
}
}
,
n.prototype._getPosition = function(t, e) {
return b(e),
this._options.forceAbsolute ? "absolute" : w(e, this._options.isInDialog) ? "fixed" : "absolute"
}
,
n.prototype._getOffsets = function(t, e, n) {
var r;
n = n.split("-")[0];
var a = {};
a.position = this.state.position;
var s = "fixed" === a.position
, l = S(e, b(t), s)
, c = i(t);
return -1 !== o(r = ["right", "left"]).call(r, n) ? (a.top = l.top + l.height / 2 - c.height / 2,
a.left = "left" === n ? l.left - c.width : l.right) : (a.left = l.left + l.width / 2 - c.width / 2,
a.top = "top" === n ? l.top - c.height : l.bottom),
a.width = c.width,
a.height = c.height,
{
popper: a,
reference: l
}
}
,
n.prototype._setupEventListeners = function() {
if (this.state.updateBound = this.update.bind(this),
t.addEventListener("resize", this.state.updateBound),
"window" !== this._options.boundariesElement) {
var e = y(this._reference);
e !== t.document.body && e !== t.document.documentElement || (e = t),
e.addEventListener("scroll", this.state.updateBound),
this.state.scrollTarget = e
}
}
,
n.prototype._removeEventListeners = function() {
t.removeEventListener("resize", this.state.updateBound),
"window" !== this._options.boundariesElement && this.state.scrollTarget && (this.state.scrollTarget.removeEventListener("scroll", this.state.updateBound),
this.state.scrollTarget = null),
this.state.updateBound = null
}
,
n.prototype._getBoundaries = function(e, n, i) {
var r, a = {};
if ("window" === i) {
var o = t.document.body
, s = t.document.documentElement;
r = Math.max(o.scrollHeight, o.offsetHeight, s.clientHeight, s.scrollHeight, s.offsetHeight),
a = {
top: 0,
right: Math.max(o.scrollWidth, o.offsetWidth, s.clientWidth, s.scrollWidth, s.offsetWidth),
bottom: r,
left: 0
}
} else if ("viewport" === i) {
var l = b(this._popper)
, c = y(this._popper)
, u = C(l)
, d = function(t) {
return t == document.body ? Math.max(document.documentElement.scrollTop, document.body.scrollTop) : t.scrollTop
}
, p = function(t) {
return t == document.body ? Math.max(document.documentElement.scrollLeft, document.body.scrollLeft) : t.scrollLeft
}
, f = "fixed" === e.offsets.popper.position ? 0 : d(c)
, h = "fixed" === e.offsets.popper.position ? 0 : p(c);
a = {
top: 0 - (u.top - f),
right: t.document.documentElement.clientWidth - (u.left - h),
bottom: t.document.documentElement.clientHeight - (u.top - f),
left: 0 - (u.left - h)
}
} else
a = b(this._popper) === i ? {
top: 0,
left: 0,
right: i.clientWidth,
bottom: i.clientHeight
} : C(i);
return a.left += n,
a.right -= n,
a.top = a.top + n,
a.bottom = a.bottom - n,
a
}
,
n.prototype.runModifiers = function(t, e, n) {
var i, r = l(e).call(e);
return n !== undefined && (r = l(i = this._options.modifiers).call(i, 0, g(this._options.modifiers, n))),
s(r).call(r, function(e) {
x(e) && (t = e.call(this, t))
}
.bind(this)),
t
}
,
n.prototype.isModifierRequired = function(t, e) {
var n, i, r = g(this._options.modifiers, t);
return !!c(n = l(i = this._options.modifiers).call(i, 0, r)).call(n, (function(t) {
return t === e
}
)).length
}
,
n.prototype.modifiers = {},
n.prototype.modifiers.applyStyle = function(t) {
var e, n = {
position: t.offsets.popper.position
}, i = Math.round(t.offsets.popper.left), r = Math.round(t.offsets.popper.top);
return this._options.gpuAcceleration && (e = T("transform")) ? (n[e] = "translate3d(" + i + "px, " + r + "px, 0)",
n.top = 0,
n.left = 0) : (n.left = i,
n.top = r),
(0,
h["default"])(n, t.styles),
_(this._popper, n),
this._popper.setAttribute("x-placement", t.placement),
this.isModifierRequired(this.modifiers.applyStyle, this.modifiers.arrow) && t.offsets.arrow && _(t.arrowElement, t.offsets.arrow),
t
}
,
n.prototype.modifiers.shift = function(t) {
var e = t.placement
, n = e.split("-")[0]
, i = e.split("-")[1];
if (i) {
var r, a = t.offsets.reference, s = m(t.offsets.popper), l = {
y: {
start: {
top: a.top
},
end: {
top: a.top + a.height - s.height
}
},
x: {
start: {
left: a.left
},
end: {
left: a.left + a.width - s.width
}
}
}, c = -1 !== o(r = ["bottom", "top"]).call(r, n) ? "x" : "y";
t.offsets.popper = (0,
h["default"])(s, l[c][i])
}
return t
}
,
n.prototype.modifiers.preventOverflow = function(t) {
var e = this._options.preventOverflowOrder
, n = m(t.offsets.popper)
, i = {
left: function() {
var e = n.left;
return n.left < t.boundaries.left && (e = Math.max(n.left, t.boundaries.left)),
{
left: e
}
},
right: function() {
var e = n.left;
return n.right > t.boundaries.right && (e = Math.min(n.left, t.boundaries.right - n.width)),
{
left: e
}
},
top: function() {
var e = n.top;
return n.top < t.boundaries.top && (e = Math.max(n.top, t.boundaries.top)),
{
top: e
}
},
bottom: function() {
var e = n.top;
return n.bottom > t.boundaries.bottom && (e = Math.min(n.top, t.boundaries.bottom - n.height)),
{
top: e
}
}
};
return s(e).call(e, (function(e) {
t.offsets.popper = (0,
h["default"])(n, i[e]())
}
)),
t
}
,
n.prototype.modifiers.keepTogether = function(t) {
var e = m(t.offsets.popper)
, n = t.offsets.reference
, i = Math.floor;
return e.right < i(n.left) && (t.offsets.popper.left = i(n.left) - e.width),
e.left > i(n.right) && (t.offsets.popper.left = i(n.right)),
e.bottom < i(n.top) && (t.offsets.popper.top = i(n.top) - e.height),
e.top > i(n.bottom) && (t.offsets.popper.top = i(n.bottom)),
t
}
,
n.prototype.modifiers.flip = function(t) {
if (!this.isModifierRequired(this.modifiers.flip, this.modifiers.preventOverflow))
return console.warn("WARNING: preventOverflow modifier is required by flip modifier in order to work, be sure to include it before flip!"),
t;
if (t.flipped && t.placement === t._originalPlacement)
return t;
var e = t.placement.split("-")[0]
, n = r(e)
, i = t.placement.split("-")[1] || ""
, a = [];
return a = "flip" === this._options.flipBehavior ? [e, n] : this._options.flipBehavior,
s(a).call(a, function(s, l) {
var c;
if (e === s && a.length !== l + 1) {
e = t.placement.split("-")[0],
n = r(e);
var u = m(t.offsets.popper)
, d = -1 !== o(c = ["right", "bottom"]).call(c, e);
(d && Math.floor(t.offsets.reference[e]) > Math.floor(u[n]) || !d && Math.floor(t.offsets.reference[e]) < Math.floor(u[n])) && (t.flipped = !0,
t.placement = a[l + 1],
i && (t.placement += "-" + i),
t.offsets.popper = this._getOffsets(this._popper, this._reference, t.placement).popper,
t = this.runModifiers(t, this._options.modifiers, this._flip))
}
}
.bind(this)),
t
}
,
n.prototype.modifiers.offset = function(t) {
var e, n, i, r, a = this._options.offset, s = t.offsets.popper;
return -1 !== o(e = t.placement).call(e, "left") ? s.top -= a : -1 !== o(n = t.placement).call(n, "right") ? s.top += a : -1 !== o(i = t.placement).call(i, "top") ? s.left -= a : -1 !== o(r = t.placement).call(r, "bottom") && (s.left += a),
t
}
,
n.prototype.modifiers.arrow = function(t) {
var e, n = this._options.arrowElement, r = this._options.arrowOffset;
if ("string" == typeof n && (n = this._popper.querySelector(n)),
!n)
return t;
if (!this._popper.contains(n))
return console.warn("WARNING: `arrowElement` must be child of its popper element!"),
t;
if (!this.isModifierRequired(this.modifiers.arrow, this.modifiers.keepTogether))
return console.warn("WARNING: keepTogether modifier is required by arrow modifier in order to work, be sure to include it before arrow!"),
t;
var a = {}
, s = t.placement.split("-")[0]
, l = m(t.offsets.popper)
, c = t.offsets.reference
, u = -1 !== o(e = ["left", "right"]).call(e, s)
, d = u ? "height" : "width"
, p = u ? "top" : "left"
, f = u ? "left" : "top"
, h = u ? "bottom" : "right"
, g = i(n)[d];
c[h] - g < l[p] && (t.offsets.popper[p] -= l[p] - (c[h] - g)),
c[p] + g > l[h] && (t.offsets.popper[p] += c[p] + g - l[h]);
var v = c[p] + (r || c[d] / 2 - g / 2) - l[p];
return v = Math.max(Math.min(l[d] - g - 8, v), 8),
a[p] = v,
a[f] = "",
t.offsets.arrow = a,
t.arrowElement = n,
t
}
,
h["default"] || d(Object, "assign", {
enumerable: !1,
configurable: !0,
writable: !0,
value: function(t) {
if (t === undefined || null === t)
throw new TypeError("Cannot convert first argument to object");
for (var e = Object(t), n = 1; n < arguments.length; n++) {
var i = arguments[n];
if (i !== undefined && null !== i) {
i = Object(i);
for (var r = (0,
f["default"])(i), a = 0, o = r.length; a < o; a++) {
var s = r[a]
, l = (0,
p["default"])(i, s);
l !== undefined && l.enumerable && (e[s] = i[s])
}
}
}
return e
}
}),
n
}
,
(r = "function" == typeof i ? i.call(e, n, e, t) : i) === undefined || (t.exports = r)
},
87807: function(t, e, n) {
"use strict";
var i = n(47380)
, r = n(99734);
e.__esModule = !0,
e.PopupManager = undefined;
var a = d(n(88902))
, o = d(n(10055))
, s = d(n(90269))
, l = d(n(77202))
, c = d(n(67945))
, u = n(21807);
function d(t) {
return t && t.__esModule ? t : {
"default": t
}
}
var p = 1
, f = void 0;
e["default"] = {
props: {
visible: {
type: Boolean,
"default": !1
},
openDelay: {},
closeDelay: {},
zIndex: {},
modal: {
type: Boolean,
"default": !1
},
modalFade: {
type: Boolean,
"default": !0
},
modalClass: {},
modalAppendToBody: {
type: Boolean,
"default": !1
},
lockScroll: {
type: Boolean,
"default": !0
},
closeOnPressEscape: {
type: Boolean,
"default": !1
},
closeOnClickModal: {
type: Boolean,
"default": !1
}
},
beforeMount: function() {
this._popupId = "popup-" + p++,
l["default"].register(this._popupId, this)
},
beforeDestroy: function() {
l["default"].deregister(this._popupId),
l["default"].closeModal(this._popupId),
this.restoreBodyStyle()
},
data: function() {
return {
opened: !1,
bodyPaddingRight: null,
computedBodyPaddingRight: 0,
withoutHiddenClass: !0,
rendered: !1
}
},
watch: {
visible: function(t) {
var e = this;
if (t) {
if (this._opening)
return;
this.rendered ? this.open() : (this.rendered = !0,
o["default"].nextTick((function() {
e.open()
}
)))
} else
this.close()
}
},
methods: {
open: function(t) {
var e = this;
this.rendered || (this.rendered = !0);
var n = (0,
s["default"])({}, this.$props || this, t);
this._closeTimer && (clearTimeout(this._closeTimer),
this._closeTimer = null),
clearTimeout(this._openTimer);
var i = Number(n.openDelay);
i > 0 ? this._openTimer = setTimeout((function() {
e._openTimer = null,
e.doOpen(n)
}
), i) : this.doOpen(n)
},
doOpen: function(t) {
if (!this.$isServer && (!this.willOpen || this.willOpen()) && !this.opened) {
this._opening = !0;
var e = this.$el
, n = t.modal
, r = t.zIndex;
if (r && (l["default"].zIndex = r),
n && (this._closing && (l["default"].closeModal(this._popupId),
this._closing = !1),
l["default"].openModal(this._popupId, l["default"].nextZIndex(), this.modalAppendToBody ? undefined : e, t.modalClass, t.modalFade),
t.lockScroll)) {
this.withoutHiddenClass = !(0,
u.hasClass)(document.body, "el-popup-parent--hidden"),
this.withoutHiddenClass && (this.bodyPaddingRight = document.body.style.paddingRight,
this.computedBodyPaddingRight = i((0,
u.getStyle)(document.body, "paddingRight"), 10)),
f = (0,
c["default"])();
var a = document.documentElement.clientHeight < document.body.scrollHeight
, o = (0,
u.getStyle)(document.body, "overflowY");
f > 0 && (a || "scroll" === o) && this.withoutHiddenClass && (document.body.style.paddingRight = this.computedBodyPaddingRight + f + "px"),
(0,
u.addClass)(document.body, "el-popup-parent--hidden")
}
"static" === getComputedStyle(e).position && (e.style.position = "absolute"),
e.style.zIndex = l["default"].nextZIndex(),
this.opened = !0,
this.onOpen && this.onOpen(),
this.doAfterOpen()
}
},
doAfterOpen: function() {
this._opening = !1
},
close: function() {
var t = this;
if (!this.willClose || this.willClose()) {
null !== this._openTimer && (clearTimeout(this._openTimer),
this._openTimer = null),
clearTimeout(this._closeTimer);
var e = Number(this.closeDelay);
e > 0 ? this._closeTimer = setTimeout((function() {
t._closeTimer = null,
t.doClose()
}
), e) : this.doClose()
}
},
doClose: function() {
this._closing = !0,
this.onClose && this.onClose(),
this.lockScroll && setTimeout(this.restoreBodyStyle, 200),
this.opened = !1,
this.doAfterClose()
},
doAfterClose: function() {
l["default"].closeModal(this._popupId),
this._closing = !1
},
restoreBodyStyle: function() {
if (this.modal && (0,
u.hasClass)(document.body, "el-popup-parent--hidden")) {
var t;
document.body.style.paddingRight = this.bodyPaddingRight;
var e = l["default"].getInstances()
, n = !0;
r(t = (0,
a["default"])(e)).call(t, (function(t) {
e[t].opened && (n = !1)
}
)),
n && (0,
u.removeClass)(document.body, "el-popup-parent--hidden")
}
this.withoutHiddenClass = !0
}
}
},
e.PopupManager = l["default"]
},
77202: function(t, e, n) {
"use strict";
var i = n(98247)
, r = n(99734)
, a = n(85303)
, o = n(99221);
e.__esModule = !0;
var s, l = n(10055), c = (s = l) && s.__esModule ? s : {
"default": s
}, u = n(21807);
var d = !1
, p = !1
, f = void 0
, h = function() {
if (!c["default"].prototype.$isServer) {
var t = g.modalDom;
return t ? d = !0 : (d = !1,
t = document.createElement("div"),
g.modalDom = t,
t.addEventListener("touchmove", (function(t) {
t.preventDefault(),
t.stopPropagation()
}
)),
t.addEventListener("click", (function() {
g.doOnModalClick && g.doOnModalClick()
}
))),
t
}
}
, m = {}
, g = {
modalFade: !0,
getInstances: function() {
return m
},
getInstance: function(t) {
return m[t]
},
register: function(t, e) {
t && e && (m[t] = e)
},
deregister: function(t) {
t && (m[t] = null,
delete m[t])
},
nextZIndex: function() {
return g.zIndex++
},
modalStack: [],
doOnModalClick: function() {
var t = g.modalStack[g.modalStack.length - 1];
if (t) {
var e = g.getInstance(t.id);
e && e.closeOnClickModal && e.close()
}
},
openModal: function(t, e, n, a, o) {
if (!c["default"].prototype.$isServer && t && e !== undefined) {
this.modalFade = o;
for (var s = this.modalStack, l = 0, p = s.length; l < p; l++) {
if (s[l].id === t)
return
}
var f = h();
if ((0,
u.addClass)(f, "v-modal"),
this.modalFade && !d && (0,
u.addClass)(f, "v-modal-enter"),
a) {
var m = i(a).call(a).split(/\s+/);
r(m).call(m, (function(t) {
return (0,
u.addClass)(f, t)
}
))
}
setTimeout((function() {
(0,
u.removeClass)(f, "v-modal-enter")
}
), 200),
n && n.parentNode && 11 !== n.parentNode.nodeType ? n.parentNode.appendChild(f) : document.body.appendChild(f),
e && (f.style.zIndex = e),
f.tabIndex = 0,
f.style.display = "",
this.modalStack.push({
id: t,
zIndex: e,
modalClass: a
})
}
},
closeModal: function(t) {
var e = this.modalStack
, n = h();
if (e.length > 0) {
var o = e[e.length - 1];
if (o.id === t) {
if (o.modalClass) {
var s, l = i(s = o.modalClass).call(s).split(/\s+/);
r(l).call(l, (function(t) {
return (0,
u.removeClass)(n, t)
}
))
}
e.pop(),
e.length > 0 && (n.style.zIndex = e[e.length - 1].zIndex)
} else
for (var c = e.length - 1; c >= 0; c--)
if (e[c].id === t) {
a(e).call(e, c, 1);
break
}
}
0 === e.length && (this.modalFade && (0,
u.addClass)(n, "v-modal-leave"),
setTimeout((function() {
0 === e.length && (n.parentNode && n.parentNode.removeChild(n),
n.style.display = "none",
g.modalDom = undefined),
(0,
u.removeClass)(n, "v-modal-leave")
}
), 200))
}
};
o(g, "zIndex", {
configurable: !0,
get: function() {
return p || (f = f || (c["default"].prototype.$ELEMENT || {}).zIndex || 2e3,
p = !0),
f
},
set: function(t) {
f = t
}
});
c["default"].prototype.$isServer || window.addEventListener("keydown", (function(t) {
if (27 === t.keyCode) {
var e = function() {
if (!c["default"].prototype.$isServer && g.modalStack.length > 0) {
var t = g.modalStack[g.modalStack.length - 1];
if (!t)
return;
return g.getInstance(t.id)
}
}();
e && e.closeOnPressEscape && (e.handleClose ? e.handleClose() : e.handleAction ? e.handleAction("cancel") : e.close())
}
}
)),
e["default"] = g
},
32626: function(t, e, n) {
"use strict";
var i = n(99734)
, r = n(85303)
, a = n(86990);
e.__esModule = !0,
e.removeResizeListener = e.addResizeListener = undefined;
var o = l(n(26378))
, s = l(n(71262));
function l(t) {
return t && t.__esModule ? t : {
"default": t
}
}
var c = "undefined" == typeof window
, u = function(t) {
var e = t
, n = Array.isArray(e)
, r = 0;
for (e = n ? e : (0,
o["default"])(e); ; ) {
var a;
if (n) {
if (r >= e.length)
break;
a = e[r++]
} else {
if ((r = e.next()).done)
break;
a = r.value
}
var s = a.target.__resizeListeners__ || [];
s.length && i(s).call(s, (function(t) {
t()
}
))
}
};
e.addResizeListener = function(t, e) {
c || (t.__resizeListeners__ || (t.__resizeListeners__ = [],
t.__ro__ = new s["default"](u),
t.__ro__.observe(t)),
t.__resizeListeners__.push(e))
}
,
e.removeResizeListener = function(t, e) {
var n, i;
t && t.__resizeListeners__ && (r(n = t.__resizeListeners__).call(n, a(i = t.__resizeListeners__).call(i, e), 1),
t.__resizeListeners__.length || t.__ro__.disconnect())
}
},
62822: function(t, e, n) {
"use strict";
var i = n(53706);
e.__esModule = !0,
e["default"] = function(t, e) {
if (o["default"].prototype.$isServer)
return;
if (!e)
return void (t.scrollTop = 0);
var n = []
, r = e.offsetParent;
for (; r && t !== r && t.contains(r); )
n.push(r),
r = r.offsetParent;
var a = e.offsetTop + i(n).call(n, (function(t, e) {
return t + e.offsetTop
}
), 0)
, s = a + e.offsetHeight
, l = t.scrollTop
, c = l + t.clientHeight;
a < l ? t.scrollTop = a : s > c && (t.scrollTop = s - t.clientHeight)
}
;
var r, a = n(10055), o = (r = a) && r.__esModule ? r : {
"default": r
}
},
67945: function(t, e, n) {
"use strict";
e.__esModule = !0,
e["default"] = function() {
if (a["default"].prototype.$isServer)
return 0;
if (o !== undefined)
return o;
var t = document.createElement("div");
t.className = "el-scrollbar__wrap",
t.style.visibility = "hidden",
t.style.width = "100px",
t.style.position = "absolute",
t.style.top = "-9999px",
document.body.appendChild(t);
var e = t.offsetWidth;
t.style.overflow = "scroll";
var n = document.createElement("div");
n.style.width = "100%",
t.appendChild(n);
var i = n.offsetWidth;
return t.parentNode.removeChild(t),
o = e - i
}
;
var i, r = n(10055), a = (i = r) && i.__esModule ? i : {
"default": i
};
var o = void 0
},
23115: function(t, e) {
"use strict";
e.__esModule = !0,
e.isDef = function(t) {
return t !== undefined && null !== t
}
,
e.isKorean = function(t) {
return /([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(t)
}
},
15210: function(t, e, n) {
"use strict";
e.__esModule = !0,
e.isDefined = e.isUndefined = e.isFunction = undefined;
var i = a(n(72444));
e.isString = function(t) {
return "[object String]" === Object.prototype.toString.call(t)
}
,
e.isObject = function(t) {
return "[object Object]" === Object.prototype.toString.call(t)
}
,
e.isHtmlElement = function(t) {
return t && t.nodeType === Node.ELEMENT_NODE
}
;
var r = a(n(10055));
function a(t) {
return t && t.__esModule ? t : {
"default": t
}
}
var o = function(t) {
return t && "[object Function]" === {}.toString.call(t)
};
"object" === ("undefined" == typeof Int8Array ? "undefined" : (0,
i["default"])(Int8Array)) || !r["default"].prototype.$isServer && "function" == typeof document.childNodes || (e.isFunction = o = function(t) {
return "function" == typeof t || !1
}
),
e.isFunction = o;
e.isUndefined = function(t) {
return void 0 === t
}
,
e.isDefined = function(t) {
return t !== undefined && null !== t
}
},
17167: function(t, e, n) {
"use strict";
var i = n(86990)
, r = n(99734)
, a = n(91041)
, o = n(19178)
, s = n(62787);
e.__esModule = !0,
e.isEmpty = e.isEqual = e.arrayEquals = e.looseEqual = e.capitalize = e.kebabCase = e.autoprefixer = e.isFirefox = e.isEdge = e.isIE = e.coerceTruthyValueToArray = e.arrayFind = e.arrayFindIndex = e.escapeRegexpString = e.valueEquals = e.generateId = e.getValueByPath = undefined;
var l = f(n(88902))
, c = f(n(63239))
, u = f(n(72444));
e.noop = function() {}
,
e.hasOwn = function(t, e) {
return h.call(t, e)
}
,
e.toObject = function(t) {
for (var e = {}, n = 0; n < t.length; n++)
t[n] && m(e, t[n]);
return e
}
,
e.getPropByPath = function(t, e, n) {
for (var i = t, r = (e = (e = e.replace(/\[(\w+)\]/g, ".$1")).replace(/^\./, "")).split("."), a = 0, o = r.length; a < o - 1 && (i || n); ++a) {
var s = r[a];
if (!(s in i)) {
if (n)
throw new Error("please transfer a valid prop path to form item!");
break
}
i = i[s]
}
return {
o: i,
k: r[a],
v: i ? i[r[a]] : null
}
}
,
e.rafThrottle = function(t) {
var e = !1;
return function() {
for (var n = this, i = arguments.length, r = Array(i), a = 0; a < i; a++)
r[a] = arguments[a];
e || (e = !0,
window.requestAnimationFrame((function(i) {
t.apply(n, r),
e = !1
}
)))
}
}
,
e.objToArray = function(t) {
if (Array.isArray(t))
return t;
return y(t) ? [] : [t]
}
,
e.addQuery = function(t, e, n) {
var i = "";
o(t).call(t, "?") > o(t).call(t, "#") && (i = a(t).call(t, o(t).call(t, "?") + 1));
o(t).call(t, "?") < o(t).call(t, "#") && (i = a(t).call(t, o(t).call(t, "?") + 1, o(t).call(t, "#")));
var r = new s(i);
return r.set(e, n),
t.replace("?" + i, "") + "?" + r.toString()
}
;
var d = f(n(10055))
, p = n(15210);
function f(t) {
return t && t.__esModule ? t : {
"default": t
}
}
var h = Object.prototype.hasOwnProperty;
function m(t, e) {
for (var n in e)
t[n] = e[n];
return t
}
e.getValueByPath = function(t, e) {
for (var n = (e = e || "").split("."), i = t, r = null, a = 0, o = n.length; a < o; a++) {
var s = n[a];
if (!i)
break;
if (a === o - 1) {
r = i[s];
break
}
i = i[s]
}
return r
}
;
e.generateId = function() {
return Math.floor(1e4 * Math.random())
}
,
e.valueEquals = function(t, e) {
if (t === e)
return !0;
if (!(t instanceof Array))
return !1;
if (!(e instanceof Array))
return !1;
if (t.length !== e.length)
return !1;
for (var n = 0; n !== t.length; ++n)
if (t[n] !== e[n])
return !1;
return !0
}
,
e.escapeRegexpString = function() {
var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
return String(t).replace(/[|\\{}()[\]^$+*?.]/g, "\\$&")
}
;
var g = e.arrayFindIndex = function(t, e) {
for (var n = 0; n !== t.length; ++n)
if (e(t[n]))
return n;
return -1
}
, v = (e.arrayFind = function(t, e) {
var n = g(t, e);
return -1 !== n ? t[n] : undefined
}
,
e.coerceTruthyValueToArray = function(t) {
return Array.isArray(t) ? t : t ? [t] : []
}
,
e.isIE = function() {
return !d["default"].prototype.$isServer && !isNaN(Number(document.documentMode))
}
,
e.isEdge = function() {
var t;
return !d["default"].prototype.$isServer && i(t = navigator.userAgent).call(t, "Edge") > -1
}
,
e.isFirefox = function() {
return !d["default"].prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i)
}
,
e.autoprefixer = function(t) {
if ("object" !== (void 0 === t ? "undefined" : (0,
u["default"])(t)))
return t;
var e = ["transform", "transition", "animation"]
, n = ["ms-", "webkit-"];
return r(e).call(e, (function(e) {
var i = t[e];
e && i && r(n).call(n, (function(n) {
t[n + e] = i
}
))
}
)),
t
}
,
e.kebabCase = function(t) {
var e = /([^-])([A-Z])/g;
return t.replace(e, "$1-$2").replace(e, "$1-$2").toLowerCase()
}
,
e.capitalize = function(t) {
return (0,
p.isString)(t) ? t.charAt(0).toUpperCase() + a(t).call(t, 1) : t
}
,
e.looseEqual = function(t, e) {
var n = (0,
p.isObject)(t)
, i = (0,
p.isObject)(e);
return n && i ? (0,
c["default"])(t) === (0,
c["default"])(e) : !n && !i && String(t) === String(e)
}
)
, b = e.arrayEquals = function(t, e) {
if (e = e || [],
(t = t || []).length !== e.length)
return !1;
for (var n = 0; n < t.length; n++)
if (!v(t[n], e[n]))
return !1;
return !0
}
, y = (e.isEqual = function(t, e) {
return Array.isArray(t) && Array.isArray(e) ? b(t, e) : v(t, e)
}
,
e.isEmpty = function(t) {
if (null == t)
return !0;
if ("boolean" == typeof t)
return !1;
if ("number" == typeof t)
return !t;
if (t instanceof Error)
return "" === t.message;
switch (Object.prototype.toString.call(t)) {
case "[object String]":
case "[object Array]":
return !t.length;
case "[object File]":
case "[object Map]":
case "[object Set]":
return !t.size;
case "[object Object]":
return !(0,
l["default"])(t).length
}
return !1
}
)
},
71764: function(t, e, n) {
"use strict";
var i = n(86990);
e.__esModule = !0;
var r, a = n(10055), o = (r = a) && r.__esModule ? r : {
"default": r
}, s = n(87807);
var l = o["default"].prototype.$isServer ? function() {}
: n(94789)
, c = function(t) {
return t.stopPropagation()
};
e["default"] = {
props: {
transformOrigin: {
type: [Boolean, String],
"default": !0
},
placement: {
type: String,
"default": "bottom"
},
boundariesPadding: {
type: Number,
"default": 5
},
reference: {},
popper: {},
offset: {
"default": 0
},
value: Boolean,
visibleArrow: Boolean,
arrowOffset: {
type: Number,
"default": 35
},
appendToBody: {
type: Boolean,
"default": !0
},
popperOptions: {
type: Object,
"default": function() {
return {
gpuAcceleration: !1
}
}
}
},
data: function() {
return {
showPopper: !1,
currentPlacement: ""
}
},
watch: {
value: {
immediate: !0,
handler: function(t) {
this.showPopper = t,
this.$emit("input", t)
}
},
showPopper: function(t) {
this.disabled || (t ? this.updatePopper() : this.destroyPopper(),
this.$emit("input", t))
}
},
methods: {
createPopper: function() {
var t = this;
if (!this.$isServer && (this.currentPlacement = this.currentPlacement || this.placement,
/^(top|bottom|left|right)(-start|-end)?$/g.test(this.currentPlacement))) {
var e = this.popperOptions
, n = this.popperElm = this.popperElm || this.popper || this.$refs.popper
, i = this.referenceElm = this.referenceElm || this.reference || this.$refs.reference;
!i && this.$slots.reference && this.$slots.reference[0] && (i = this.referenceElm = this.$slots.reference[0].elm),
n && i && (this.visibleArrow && this.appendArrow(n),
this.appendToBody && document.body.appendChild(this.popperElm),
this.popperJS && this.popperJS.destroy && this.popperJS.destroy(),
e.placement = this.currentPlacement,
e.offset = this.offset,
e.arrowOffset = this.arrowOffset,
e.isInDialog = this.isInDialog,
this.popperJS = new l(i,n,e),
this.popperJS.onCreate((function(e) {
t.$emit("created", t),
t.resetTransformOrigin(),
t.$nextTick((function() {
t.updatePopper()
}
))
}
)),
"function" == typeof e.onUpdate && this.popperJS.onUpdate(e.onUpdate),
this.popperJS._popper.style.zIndex = s.PopupManager.nextZIndex(),
this.popperElm.addEventListener("click", c))
}
},
updatePopper: function() {
var t = this.popperJS;
t ? (t.update(),
t._popper && (t._popper.style.zIndex = s.PopupManager.nextZIndex())) : this.createPopper(this.isInDialog)
},
doDestroy: function(t) {
!this.popperJS || this.showPopper && !t || (this.popperJS.destroy(),
this.popperJS = null)
},
destroyPopper: function() {
this.popperJS && this.resetTransformOrigin()
},
resetTransformOrigin: function() {
var t;
if (this.transformOrigin) {
var e = this.popperJS._popper.getAttribute("x-placement").split("-")[0]
, n = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
}[e];
this.popperJS._popper.style.transformOrigin = "string" == typeof this.transformOrigin ? this.transformOrigin : i(t = ["top", "bottom"]).call(t, e) > -1 ? "center " + n : n + " center"
}
},
appendArrow: function(t) {
var e = void 0;
if (!this.appended) {
for (var n in this.appended = !0,
t.attributes)
if (/^_v-/.test(t.attributes[n].name)) {
e = t.attributes[n].name;
break
}
var i = document.createElement("div");
e && i.setAttribute(e, ""),
i.setAttribute("x-arrow", ""),
i.className = "popper__arrow",
t.appendChild(i)
}
}
},
beforeDestroy: function() {
this.doDestroy(!0),
this.popperElm && this.popperElm.parentNode === document.body && (this.popperElm.removeEventListener("click", c),
document.body.removeChild(this.popperElm))
},
deactivated: function() {
this.$options.beforeDestroy[0].call(this)
}
}
},
80384: function(t, e, n) {
var i = n(13349)
, r = n(68991)
, a = n(17986)
, o = n(13611)
, s = n(99734)
, l = n(76977)
, c = n(89463)
, u = n(99221)
, d = n(75533)
, p = n(42100);
function f(t, e) {
var n = i(t);
if (r) {
var s = r(t);
e && (s = a(s).call(s, (function(e) {
return o(t, e).enumerable
}
))),
n.push.apply(n, s)
}
return n
}
function h(t) {
for (var e = 1; e < arguments.length; e++) {
var n, i, r = null != arguments[e] ? arguments[e] : {};
e % 2 ? s(n = f(Object(r), !0)).call(n, (function(e) {
p(t, e, r[e])
}
)) : l ? c(t, l(r)) : s(i = f(Object(r))).call(i, (function(e) {
u(t, e, o(r, e))
}
))
}
return t
}
var m = n(31471)
, g = n(70570)
, v = n(63025)
, b = t.exports = g.create();
m.extend(b.prototype, {
initialize: function(t) {
t = t || {};
this.noEncodeResult = !!t.noEncodeResult,
this.getFullErrorContentUrl = t.getFullErrorContentUrl
},
submitDiyCode: function(t) {
var e = t.data || t
, n = m.extend({
selfType: e.selfType || e.tagId,
tagId: e.tagId,
subTagId: e.subTagId,
problemId: e.problemId || undefined,
questionId: e.questionId || undefined,
selfInput: e.input,
selfOutput: e.output,
content: e.content,
language: e.language,
languageName: e.languageName,
vojLanguage: e.vojLanguage
}, t.extCodeParam)
, i = m.extend({}, t, {
body: n
});
this.submitCode(i, !0)
},
submitSelfCode: function(t) {
var e = t.data || t
, n = m.extend({
questionId: e.questionId,
tagId: e.tagId,
subTagId: e.subTagId,
content: e.content,
language: e.language,
languageName: e.languageName,
vojLanguage: e.vojLanguage
}, t.extCodeParam)
, i = m.extend({}, t, {
body: n
});
this.submitCode(i)
},
submitTestCode: function(t) {
var e = t.data || t
, n = m.extend({
pid: e.pid,
tid: e.tid,
qid: e.qid,
tagId: e.tagId,
subTagId: e.subTagId,
content: e.content,
language: e.language
}, t.extCodeParam)
, i = m.extend({}, t, {
body: n
});
this.submitCode(i)
},
getCodeStatus: function(t, e) {
var n = this
, i = n.submissionId = t.submissionId
, r = t.body || {}
, a = r.tagId
, o = r.subTagId
, s = e ? "" : "您的代码已保存"
, l = 1e3;
function c() {
n.callback(t, "cbStatusCodeBefore"),
v.request({
$: t.$,
url: t.urlGetCodeStatus,
query: m.extend({
submissionId: i,
tagId: a,
subTagId: o,
selfType: r.selfType
}, t.extStatusParam),
call: function(r) {
if (n.submissionId === i)
if (m.isObject(r.data) && (r = h(h({}, r), r.data)),
r.submissionId = i,
!r.id && (r.id = i),
0 === r.status || 1 === r.status || 2 === r.status) {
if (l > Math.max(+t.maxStatusDelay || 0, 7e4))
return n.feedback(t, "".concat(s, "\n查询超时,请重试"), !0),
void n.callback(t, "cbStatusCodeError", {
msg: "".concat(s, "\n查询超时,请重试")
});
n.runTimer = setTimeout(c, l),
l = 1e3 === l ? 1001 : 2 * l
} else {
var p, f;
r.desc = u(r.desc),
r.memo = u(r.memo);
var g = 5 === r.status
, v = d(p = d(f = "".concat(s, "\n")).call(f, r.desc, "\n")).call(p, r.memo);
if (("isComplete"in r ? !r.isComplete : "outputContentHasMore"in r && r.outputContentHasMore) && !g) {
var b, y, w = n.getFullErrorContentUrl ? n.getFullErrorContentUrl({
submissionId: i,
tagId: a,
subTagId: o,
isSelfTest: e
}) : "";
w = w || d(b = d(y = "//nowcoder.com/completeSubmissionInfo?submissionId=".concat(i, "&tagId=")).call(y, a || "", "&subTagId=")).call(b, o || ""),
v += '<div><a class="js-show-result link-green" target="_blank" href="'.concat(w, '">查看全部</a></div>')
}
n.feedback(t, v, !g, r),
n.callback(t, g ? "cbStatusCodeSuccess" : "cbStatusCodeFail", r)
}
},
error: function(e) {
var r;
e.submissionId = i,
n.feedback(t, d(r = "".concat(s, "\n")).call(r, e.msg || "代码运行失败"), !0),
n.callback(t, "cbStatusCodeError", e)
}
})
}
function u(t) {
return t = t || "",
n.noEncodeResult ? t : t.replace(/</gi, "&lt;").replace(/>/gi, "&gt;")
}
n.runTimer = setTimeout((function() {
return c(n.submissionId)
}
), 500)
},
submitCode: function(t, e) {
var n = this
, i = e ? "" : "您的代码已保存";
if (window.clearTimeout(n.runTimer),
n.submissionId = null,
!t || !t.urlSubmitCode || !t.body)
return n.feedback(t, "参数错误", !0),
void n.callback(t, "cbSubmitCodeError", {
code: -1,
msg: "参数错误"
});
if (n.reqCaptcha)
return n.feedback(t, "请稍等..."),
n.callback(t, "cbGetCaptcha", (function(e) {
if (n.reqCaptcha = !1,
e)
return r(e);
n.callback(t, "cbGetCaptchaError"),
n.feedback(t, "验证码错误", !0)
}
));
r();
function r(r) {
n.feedback(t, "正在提交代码..."),
n.callback(t, "cbSubmitCodeBefore"),
v.request({
$: t.$,
url: t.urlSubmitCode,
query: m.extend(t.query || {}, t.query, r),
body: t.body,
call: function(r) {
var a, o;
n.callback(t, "cbSubmitCodeComplete", r);
var s, l = null !== (a = null === (o = r.data) || void 0 === o ? void 0 : o.submissionId) && void 0 !== a ? a : r.data;
("submissionId"in r && !l && (l = t.getSubmissionId ? t.getSubmissionId(r) : r.submissionId),
m.id(l) && l >= 0) ? (n.feedback(t, d(s = "".concat(i, "\n")).call(s, m.lang("正在查询结果..."))),
n.callback(t, "cbSubmitCodeSuccess", r),
n.getCodeStatus(m.extend({
submissionId: l
}, t), e)) : (n.feedback(t, r.msg || "代码提交失败,请再次运行", !0),
n.callback(t, "cbSubmitCodeError", r))
},
error: function(e) {
1125 === e.code ? (n.reqCaptcha = !0,
n.submitCode(t)) : (n.feedback(t, e.msg || "代码提交失败,请再次运行", !0),
n.callback(t, "cbSubmitCodeError", e))
}
})
}
},
getSubmissionDiff: function(t) {
v.request({
$: t.$,
url: t.urlGetSubmissionDiff,
query: {
submissionId: t.submissionId,
tagId: t.tagId
},
call: t.call,
error: t.error,
always: t.always
})
},
feedback: function(t) {
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
n[i - 1] = arguments[i];
return t && t.feedback && t.feedback.apply(this, n)
},
resultback: function(t, e) {
var n = (t || {}).resultback;
return n && n.apply(this, [e || {}])
},
callback: function(t, e) {
for (var n = this, i = arguments.length, r = new Array(i > 2 ? i - 2 : 0), a = 2; a < i; a++)
r[a - 2] = arguments[a];
var o = t && t[e] && t[e].apply(n, r)
, s = r[0];
return {
cbSubmitCodeBefore: !0
}[e] && n.resultback(t, {
statusType: "submit",
result: {
desc: "正在提交代码..."
}
}),
{
cbSubmitCodeComplete: !0
}[e] && n.resultback(t, {
statusType: "running",
result: s
}),
{
cbGetCaptchaError: !0,
cbSubmitCodeError: !0,
cbStatusCodeError: !0
}[e] && n.resultback(t, {
statusType: "exception",
result: s
}),
{
cbStatusCodeSuccess: !0,
cbStatusCodeFail: !0
}[e] && n.resultback(t, {
statusType: "finish",
result: s
}),
o
}
})
},
51118: function(t, e, n) {
var i = n(9644)
, r = n(2716)
, a = n(11636);
t.exports = {
diff: i,
unidiff: r,
ncdiff: a,
getDiffStr: function(t, e) {
var n = r.diffLines(t || "", e || "");
return r.formatLines(n) || ""
},
getDiffItems: function(t) {
return a.parse({
diff: t
})
}
}
},
90858: function(t, e, n) {
var i = n(75441)
, r = n(17986)
, a = n(91041)
, o = n(75533)
, s = n(85303)
, l = n(99734)
, c = function(t, e) {
return t === e
}
, u = function(t, e, n) {
var r, a = t.length, o = e.length, s = a + o, l = i(r = Array.apply(null, {
length: o + a + 1
})).call(r, (function() {
return []
}
)), u = [], d = -1;
n = n || c,
u[s + 1] = 0;
for (var p = 0; p <= s && -1 === d; p++)
for (var f, h, m, g = -p; g <= p && -1 === d; g += 2) {
for (g === -p || g !== p && u[g - 1 + s] < u[g + 1 + s] ? (f = u[g + 1 + s],
m = 3) : (f = u[g - 1 + s] + 1,
m = 2),
h = f - g,
l[f][h] = m; f < a && h < o && n(t[f], e[h]); )
h++,
l[++f][h] = 0;
u[g + s] = f,
f >= a && h >= o && (d = p)
}
return l
}
, d = function(t, e, n) {
var i, o, s, l, c, d = function(t, e, n) {
for (var i = [], r = [], a = t.length, o = e.length; a > 0 || o > 0; )
switch (n[a][o]) {
case 0:
i.unshift(t[a - 1]),
r.unshift(0),
a -= 1,
o -= 1;
break;
case 1:
i.unshift(t[a - 1]),
r.unshift(e[o - 1]),
a -= 1,
o -= 1;
break;
case 2:
i.unshift(t[a - 1]),
r.unshift(-1),
a -= 1,
o -= 0;
break;
case 3:
i.unshift(-1),
r.unshift(e[o - 1]),
a -= 0,
o -= 1
}
return {
src: i,
target: r
}
}(t, e, u(t, e, n)), p = d.src, f = d.target, h = function(t) {
return -1 !== t
}, m = [];
for (l = f.length - 1; l >= 0; ) {
for (c = l; 0 !== f[c] && c >= 0; c--)
;
var g, v, b;
if (c < l)
i = r(g = a(p).call(p, 0, c + 1)).call(g, h).length,
o = r(v = a(p).call(p, c + 1, l + 1)).call(v, h).length,
s = r(b = a(f).call(f, c + 1, l + 1)).call(b, h),
m.unshift(s.length ? [i, o, s] : [i, o]);
l = c - 1
}
return m
};
t.exports = {
coreCompare: u,
compare: d,
merge: function(t, e) {
for (var n, i = a(t).call(t), r = e.length - 1; r >= 0; r--) {
var l, c = (n = e[r])[2];
if (c)
n = o(l = a(n).call(n, 0, 2)).call(l, c);
s(i).apply(i, n)
}
return i
},
compareStr: function(t, e, n) {
n = "string" == typeof n ? n : "";
var i = t.split(n)
, r = e.split(n)
, a = d(i, r);
return l(a).call(a, (function(t) {
t[2] && (t[2] = t[2].join(n))
}
)),
{
splitter: n,
diff: a
}
},
mergeStr: function(t, e) {
for (var n, i = e.splitter, r = e.diff, a = t.split(i), o = r.length - 1; o >= 0; o--)
n = r[o],
s(a).apply(a, n);
return a.join(i)
}
}
},
11636: function(t, e, n) {
var i = n(86990)
, r = n(99734)
, a = n(91041)
, o = n(31471)
, s = n(90858);
t.exports = {
parse: function(t, e) {
var n = this
, l = (t.diff || "").split(/\n(?!\\ No newline at end of file)/)
, c = {
head: {},
body: [],
addLine: 0,
delLine: 0
}
, u = 0
, d = []
, p = [];
if ("" === l[l.length - 1] && l.pop(),
function(t) {
var e, n, i, r, o, s = t[t.length - 1].split("↵"), l = t[t.length - 2].split("↵");
if ("+" !== a(e = s[0]).call(e, 0, 1) || "-" !== a(n = l[0]).call(n, 0, 1))
return;
if (a(i = s[0]).call(i, 1) !== a(r = l[0]).call(r, 1))
return;
t.pop(),
t.pop(),
t.push(" " + a(o = s[0]).call(o, 1)),
t.push(2 === s.length ? "-" : "+"),
2 === s.length && t.push("+")
}(l),
/(---)|(\+\+\+)/.test(l[0])) {
var f = l.shift()
, h = l.shift();
c.head.old = f.replace(/(--- "?a\/).+/, "$1" + t.oldPath) + (4 === i(f).call(f, '"') ? '"' : ""),
c.head.update = h.replace(/(\+\+\+ "?b\/).+/, "$1" + t.newPath) + (4 === i(h).call(h, '"') ? '"' : "")
}
var m = {}
, g = 0
, v = 0;
return r(o).call(o, l, (function(t, e) {
if (/^@@/.test(t)) {
m = {
lines: []
},
c.body.push(m);
var n = t.split(" @@")
, i = /-(\d+),?(\d*)\s\+(\d+),?(\d*)/.exec(n[0] || "") || [];
return m.oldBeginIndex = g = +i[1] || 0,
m.newBeginIndex = v = +i[3] || 0,
void b(n[0] + " @@" + n[1])
}
b(t),
e === l.length - 1 && y()
}
)),
c;
function b(t) {
var e = function(t) {
var e = {};
t = t.split("\n")[0],
/^@/.test(t) ? e = {
code: 0,
type: "mark",
oldIndex: "...",
newIndex: "..."
} : /^\s/.test(t) ? (e = {
code: 1,
type: "normal",
oldIndex: g,
newIndex: v
},
v++,
g++) : /^\+/.test(t) ? (e = {
code: 2,
type: "add",
oldIndex: "",
newIndex: v
},
v++,
c.addLine++) : /^-/.test(t) ? (e = {
code: 3,
type: "del",
oldIndex: g,
newIndex: ""
},
g++,
c.delLine++) : "\\ No newline at end of file" === t && (e = {
code: 4,
type: "end",
oldIndex: "...",
newIndex: "..."
});
return o.extend(e, {
text: e.code ? n.encodeHTML(a(t).call(t, 1)) : n.encodeHTML(t)
}),
e
}(t)
, i = 4 === e.code
, r = e.code;
return u && 1 !== u || 3 !== r ? (1 === u || 2 === u) && 2 === r && p.length < d.length ? (u = 2,
void p.push(e)) : (1 !== u && 2 !== u || i || y(),
void (!i && m.lines.push(e))) : (u = 1,
void d.push(e))
}
function y() {
r(o).call(o, d, (function(t, n) {
var i = p[n];
if (i)
if (e) {
var l = s.compareStr(t.text, i.text, "");
t.diff = [],
i.diff = [];
f = 0;
r(o).call(o, l.diff, (function(e) {
var n = e[0]
, r = e[1]
, a = e[2];
r && t.diff.push([n, -r]),
a && i.diff.push([n + f, a.length]),
f = f - r + (a || "").length
}
))
} else {
var c = t.text.split(/(\W)/)
, u = i.text.split(/(\W)/)
, d = s.compare(c, u);
t.diff = [],
i.diff = [];
var f = 0;
r(o).call(o, d, (function(e) {
var n = e[0]
, r = e[1]
, o = e[2] || []
, s = a(c).call(c, 0, n).join("").length
, l = a(c).call(c, n, n + r).join("").length
, u = o.join("");
l && t.diff.push([s, -l]),
u && i.diff.push([s + f, u.length]),
f = f - l + (u || "").length
}
))
}
m.lines.push([t, i])
}
)),
u = 0,
d = [],
p = []
}
},
highlightLine: function(t) {
if (!t.diff)
return t;
var e = t.text;
return o.forReverse(t.diff, (function(n) {
var i = n[0]
, r = n[1]
, o = i + Math.abs(r);
e = a(e).call(e, 0, i) + '<span class="' + t.type + '-diff">' + a(e).call(e, i, o) + "</span>" + a(e).call(e, o)
}
)),
t.text = e,
t
},
encodeHTML: function(t) {
return t ? t.replace(/</g, "&lt;").replace(/>/g, "&gt;") : t
}
}
},
10966: function(t, e, n) {
var i = n(96110)
, r = n(99221)
, a = n(87089)
, o = n(34076)
, s = n(75533)
, l = n(91041)
, c = n(86990);
t.exports = function(t) {
var e = {};
function n(i) {
if (e[i])
return e[i].exports;
var r = e[i] = {
i: i,
l: !1,
exports: {}
};
return t[i].call(r.exports, r, r.exports, n),
r.l = !0,
r.exports
}
return n.m = t,
n.c = e,
n.d = function(t, e, i) {
n.o(t, e) || r(t, e, {
enumerable: !0,
get: i
})
}
,
n.r = function(t) {
void 0 !== a && o && r(t, o, {
value: "Module"
}),
r(t, "__esModule", {
value: !0
})
}
,
n.t = function(t, e) {
if (1 & e && (t = n(t)),
8 & e)
return t;
if (4 & e && "object" === i(t) && t && t.__esModule)
return t;
var a = Object.create(null);
if (n.r(a),
r(a, "default", {
enumerable: !0,
value: t
}),
2 & e && "string" != typeof t)
for (var o in t)
n.d(a, o, function(e) {
return t[e]
}
.bind(null, o));
return a
}
,
n.n = function(t) {
var e = t && t.__esModule ? function() {
return t["default"]
}
: function() {
return t
}
;
return n.d(e, "a", e),
e
}
,
n.o = function(t, e) {
return Object.prototype.hasOwnProperty.call(t, e)
}
,
n.p = "/dist/",
n(n.s = 91)
}({
0: function(t, e, n) {
"use strict";
function i(t, e, n, i, r, a, o, l) {
var c, u = "function" == typeof t ? t.options : t;
if (e && (u.render = e,
u.staticRenderFns = n,
u._compiled = !0),
i && (u.functional = !0),
a && (u._scopeId = "data-v-" + a),
o ? (c = function(t) {
(t = t || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) || "undefined" == typeof __VUE_SSR_CONTEXT__ || (t = __VUE_SSR_CONTEXT__),
r && r.call(this, t),
t && t._registeredComponents && t._registeredComponents.add(o)
}
,
u._ssrRegister = c) : r && (c = l ? function() {
r.call(this, (u.functional ? this.parent : this).$root.$options.shadowRoot)
}
: r),
c)
if (u.functional) {
u._injectStyles = c;
var d = u.render;
u.render = function(t, e) {
return c.call(e),
d(t, e)
}
} else {
var p, f = u.beforeCreate;
u.beforeCreate = f ? s(p = []).call(p, f, c) : [c]
}
return {
exports: t,
options: u
}
}
n.d(e, "a", (function() {
return i
}
))
},
4: function(t, e) {
t.exports = n(90083)
},
91: function(t, e, n) {
"use strict";
n.r(e);
var i = function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("label", {
staticClass: "el-checkbox",
"class": [t.checkboxSize ? "el-checkbox--" + t.checkboxSize : "", {
"is-disabled": t.isDisabled
}, {
"is-bordered": t.border
}, {
"is-checked": t.isChecked
}],
attrs: {
id: t.id
}
}, [n("span", {
staticClass: "el-checkbox__input",
"class": {
"is-disabled": t.isDisabled,
"is-checked": t.isChecked,
"is-indeterminate": t.indeterminate,
"is-focus": t.focus
},
attrs: {
tabindex: !!t.indeterminate && 0,
role: !!t.indeterminate && "checkbox",
"aria-checked": !!t.indeterminate && "mixed"
}
}, [n("span", {
staticClass: "el-checkbox__inner"
}), t.trueLabel || t.falseLabel ? n("input", {
directives: [{
name: "model",
rawName: "v-model",
value: t.model,
expression: "model"
}],
staticClass: "el-checkbox__original",
attrs: {
type: "checkbox",
"aria-hidden": t.indeterminate ? "true" : "false",
name: t.name,
disabled: t.isDisabled,
"true-value": t.trueLabel,
"false-value": t.falseLabel
},
domProps: {
checked: Array.isArray(t.model) ? t._i(t.model, null) > -1 : t._q(t.model, t.trueLabel)
},
on: {
change: [function(e) {
var n = t.model
, i = e.target
, r = i.checked ? t.trueLabel : t.falseLabel;
if (Array.isArray(n)) {
var a, o = t._i(n, null);
if (i.checked)
o < 0 && (t.model = s(n).call(n, [null]));
else
o > -1 && (t.model = s(a = l(n).call(n, 0, o)).call(a, l(n).call(n, o + 1)))
} else
t.model = r
}
, t.handleChange],
focus: function(e) {
t.focus = !0
},
blur: function(e) {
t.focus = !1
}
}
}) : n("input", {
directives: [{
name: "model",
rawName: "v-model",
value: t.model,
expression: "model"
}],
staticClass: "el-checkbox__original",
attrs: {
type: "checkbox",
"aria-hidden": t.indeterminate ? "true" : "false",
disabled: t.isDisabled,
name: t.name
},
domProps: {
value: t.label,
checked: Array.isArray(t.model) ? t._i(t.model, t.label) > -1 : t.model
},
on: {
change: [function(e) {
var n = t.model
, i = e.target
, r = !!i.checked;
if (Array.isArray(n)) {
var a, o = t.label, c = t._i(n, o);
if (i.checked)
c < 0 && (t.model = s(n).call(n, [o]));
else
c > -1 && (t.model = s(a = l(n).call(n, 0, c)).call(a, l(n).call(n, c + 1)))
} else
t.model = r
}
, t.handleChange],
focus: function(e) {
t.focus = !0
},
blur: function(e) {
t.focus = !1
}
}
})]), t.$slots["default"] || t.label ? n("span", {
staticClass: "el-checkbox__label"
}, [t._t("default"), t.$slots["default"] ? t._e() : [t._v(t._s(t.label))]], 2) : t._e()])
};
i._withStripped = !0;
var r = n(4)
, a = {
name: "ElCheckbox",
mixins: [n.n(r).a],
inject: {
elForm: {
"default": ""
},
elFormItem: {
"default": ""
}
},
componentName: "ElCheckbox",
data: function() {
return {
selfModel: !1,
focus: !1,
isLimitExceeded: !1
}
},
computed: {
model: {
get: function() {
return this.isGroup ? this.store : this.value !== undefined ? this.value : this.selfModel
},
set: function(t) {
this.isGroup ? (this.isLimitExceeded = !1,
this._checkboxGroup.min !== undefined && t.length < this._checkboxGroup.min && (this.isLimitExceeded = !0),
this._checkboxGroup.max !== undefined && t.length > this._checkboxGroup.max && (this.isLimitExceeded = !0),
!1 === this.isLimitExceeded && this.dispatch("ElCheckboxGroup", "input", [t])) : (this.$emit("input", t),
this.selfModel = t)
}
},
isChecked: function() {
return "[object Boolean]" === {}.toString.call(this.model) ? this.model : Array.isArray(this.model) ? c(t = this.model).call(t, this.label) > -1 : null !== this.model && this.model !== undefined ? this.model === this.trueLabel : void 0;
var t
},
isGroup: function() {
for (var t = this.$parent; t; ) {
if ("ElCheckboxGroup" === t.$options.componentName)
return this._checkboxGroup = t,
!0;
t = t.$parent
}
return !1
},
store: function() {
return this._checkboxGroup ? this._checkboxGroup.value : this.value
},
isLimitDisabled: function() {
var t = this._checkboxGroup
, e = t.max
, n = t.min;
return !(!e && !n) && this.model.length >= e && !this.isChecked || this.model.length <= n && this.isChecked
},
isDisabled: function() {
return this.isGroup ? this._checkboxGroup.disabled || this.disabled || (this.elForm || {}).disabled || this.isLimitDisabled : this.disabled || (this.elForm || {}).disabled
},
_elFormItemSize: function() {
return (this.elFormItem || {}).elFormItemSize
},
checkboxSize: function() {
var t = this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
return this.isGroup && this._checkboxGroup.checkboxGroupSize || t
}
},
props: {
value: {},
label: {},
indeterminate: Boolean,
disabled: Boolean,
checked: Boolean,
name: String,
trueLabel: [String, Number],
falseLabel: [String, Number],
id: String,
controls: String,
border: Boolean,
size: String
},
methods: {
addToStore: function() {
var t;
Array.isArray(this.model) && -1 === c(t = this.model).call(t, this.label) ? this.model.push(this.label) : this.model = this.trueLabel || !0
},
handleChange: function(t) {
var e = this;
if (!this.isLimitExceeded) {
var n = void 0;
n = t.target.checked ? this.trueLabel === undefined || this.trueLabel : this.falseLabel !== undefined && this.falseLabel,
this.$emit("change", n, t),
this.$nextTick((function() {
e.isGroup && e.dispatch("ElCheckboxGroup", "change", [e._checkboxGroup.value])
}
))
}
}
},
created: function() {
this.checked && this.addToStore()
},
mounted: function() {
this.indeterminate && this.$el.setAttribute("aria-controls", this.controls)
},
watch: {
value: function(t) {
this.dispatch("ElFormItem", "el.form.change", t)
}
}
}
, o = n(0)
, u = Object(o.a)(a, i, [], !1, null, null, null).exports;
u.install = function(t) {
t.component(u.name, u)
}
;
e["default"] = u
}
})
},
66522: function(t, e, n) {
"use strict";
var i = n(96110)
, r = n(87089)
, a = n(65700);
e.__esModule = !0;
var o = "function" == typeof r && "symbol" === i(a) ? function(t) {
return i(t)
}
: function(t) {
return t && "function" == typeof r && t.constructor === r && t !== r.prototype ? "symbol" : i(t)
}
;
e["default"] = function(t) {
return function(t) {
for (var e = arguments.length, n = Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
n[i - 1] = arguments[i];
return 1 === n.length && "object" === o(n[0]) && (n = n[0]),
n && n.hasOwnProperty || (n = {}),
t.replace(l, (function(e, i, r, a) {
var o = void 0;
return "{" === t[a - 1] && "}" === t[a + e.length] ? r : null === (o = (0,
s.hasOwn)(n, r) ? n[r] : null) || o === undefined ? "" : o
}
))
}
}
;
var s = n(72333)
, l = /(%|)\{([0-9a-zA-Z_]+)\}/g
},
9649: function(t, e, n) {
"use strict";
var i = n(15503);
e.__esModule = !0,
e.getLocale = e.i18n = e.use = e.t = undefined;
var r = s(n(90756))
, a = s(n(10055))
, o = s(n(12787));
function s(t) {
return t && t.__esModule ? t : {
"default": t
}
}
var l = (0,
s(n(66522))["default"])(a["default"])
, c = r["default"]
, u = !1
, d = function() {
var t = i(this || a["default"]).$t;
if ("function" == typeof t && a["default"].locale)
return u || (u = !0,
a["default"].locale(a["default"].config.lang, (0,
o["default"])(c, a["default"].locale(a["default"].config.lang) || {}, {
clone: !0
}))),
t.apply(this, arguments)
}
, p = e.t = function(t, e) {
var n = d.apply(this, arguments);
if (null !== n && n !== undefined)
return n;
for (var i = t.split("."), r = c, a = 0, o = i.length; a < o; a++) {
if (n = r[i[a]],
a === o - 1)
return l(n, e);
if (!n)
return "";
r = n
}
return ""
}
, f = e.use = function(t) {
c = t || c
}
, h = e.i18n = function(t) {
d = t || d
}
, m = e.getLocale = function() {
return c.locale
}
;
e["default"] = {
use: f,
t: p,
i18n: h,
getLocale: m
}
},
90756: function(t, e) {
"use strict";
e.__esModule = !0,
e["default"] = {
locale: "zh-CN",
el: {
colorpicker: {
confirm: "确定",
clear: "清空"
},
datepicker: {
now: "此刻",
today: "今天",
cancel: "取消",
clear: "清空",
confirm: "确定",
selectDate: "选择日期",
selectTime: "选择时间",
startDate: "开始日期",
startTime: "开始时间",
endDate: "结束日期",
endTime: "结束时间",
prevYear: "前一年",
nextYear: "后一年",
prevMonth: "上个月",
nextMonth: "下个月",
year: "年",
month1: "1 月",
month2: "2 月",
month3: "3 月",
month4: "4 月",
month5: "5 月",
month6: "6 月",
month7: "7 月",
month8: "8 月",
month9: "9 月",
month10: "10 月",
month11: "11 月",
month12: "12 月",
weeks: {
sun: "日",
mon: "一",
tue: "二",
wed: "三",
thu: "四",
fri: "五",
sat: "六"
},
months: {
jan: "一月",
feb: "二月",
mar: "三月",
apr: "四月",
may: "五月",
jun: "六月",
jul: "七月",
aug: "八月",
sep: "九月",
oct: "十月",
nov: "十一月",
dec: "十二月"
}
},
select: {
loading: "加载中",
noMatch: "无匹配数据",
noData: "无数据",
placeholder: "请选择"
},
cascader: {
noMatch: "无匹配数据",
loading: "加载中",
placeholder: "请选择",
noData: "暂无数据"
},
pagination: {
goto: "前往",
pagesize: "条/页",
total: "共 {total} 条",
pageClassifier: "页"
},
messagebox: {
title: "提示",
confirm: "确定",
cancel: "取消",
error: "输入的数据不合法!"
},
upload: {
deleteTip: "按 delete 键可删除",
"delete": "删除",
preview: "查看图片",
"continue": "继续上传"
},
table: {
emptyText: "暂无数据",
confirmFilter: "筛选",
resetFilter: "重置",
clearFilter: "全部",
sumText: "合计"
},
tree: {
emptyText: "暂无数据"
},
transfer: {
noMatch: "无匹配数据",
noData: "无数据",
titles: ["列表 1", "列表 2"],
filterPlaceholder: "请输入搜索内容",
noCheckedFormat: "共 {total} 项",
hasCheckedFormat: "已选 {checked}/{total} 项"
},
image: {
error: "加载失败"
},
pageHeader: {
title: "返回"
},
popconfirm: {
confirmButtonText: "确定",
cancelButtonText: "取消"
}
}
}
},
27360: function(t, e) {
"use strict";
e.__esModule = !0,
e["default"] = function(t) {
return {
methods: {
focus: function() {
this.$refs[t].focus()
}
}
}
}
},
2234: function(t, e, n) {
"use strict";
e.__esModule = !0;
var i = n(9649);
e["default"] = {
methods: {
t: function() {
for (var t = arguments.length, e = Array(t), n = 0; n < t; n++)
e[n] = arguments[n];
return i.t.apply(this, e)
}
}
}
},
2545: function(t, e, n) {
var i = n(96110)
, r = n(99221)
, a = n(87089)
, o = n(34076)
, s = n(75533)
, l = n(65700)
, c = n(86990)
, u = n(16011)
, d = n(85303);
t.exports = function(t) {
var e = {};
function n(i) {
if (e[i])
return e[i].exports;
var r = e[i] = {
i: i,
l: !1,
exports: {}
};
return t[i].call(r.exports, r, r.exports, n),
r.l = !0,
r.exports
}
return n.m = t,
n.c = e,
n.d = function(t, e, i) {
n.o(t, e) || r(t, e, {
enumerable: !0,
get: i
})
}
,
n.r = function(t) {
void 0 !== a && o && r(t, o, {
value: "Module"
}),
r(t, "__esModule", {
value: !0
})
}
,
n.t = function(t, e) {
if (1 & e && (t = n(t)),
8 & e)
return t;
if (4 & e && "object" === i(t) && t && t.__esModule)
return t;
var a = Object.create(null);
if (n.r(a),
r(a, "default", {
enumerable: !0,
value: t
}),
2 & e && "string" != typeof t)
for (var o in t)
n.d(a, o, function(e) {
return t[e]
}
.bind(null, o));
return a
}
,
n.n = function(t) {
var e = t && t.__esModule ? function() {
return t["default"]
}
: function() {
return t
}
;
return n.d(e, "a", e),
e
}
,
n.o = function(t, e) {
return Object.prototype.hasOwnProperty.call(t, e)
}
,
n.p = "/dist/",
n(n.s = 55)
}({
0: function(t, e, n) {
"use strict";
function i(t, e, n, i, r, a, o, l) {
var c, u = "function" == typeof t ? t.options : t;
if (e && (u.render = e,
u.staticRenderFns = n,
u._compiled = !0),
i && (u.functional = !0),
a && (u._scopeId = "data-v-" + a),
o ? (c = function(t) {
(t = t || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) || "undefined" == typeof __VUE_SSR_CONTEXT__ || (t = __VUE_SSR_CONTEXT__),
r && r.call(this, t),
t && t._registeredComponents && t._registeredComponents.add(o)
}
,
u._ssrRegister = c) : r && (c = l ? function() {
r.call(this, (u.functional ? this.parent : this).$root.$options.shadowRoot)
}
: r),
c)
if (u.functional) {
u._injectStyles = c;
var d = u.render;
u.render = function(t, e) {
return c.call(e),
d(t, e)
}
} else {
var p, f = u.beforeCreate;
u.beforeCreate = f ? s(p = []).call(p, f, c) : [c]
}
return {
exports: t,
options: u
}
}
n.d(e, "a", (function() {
return i
}
))
},
3: function(t, e) {
t.exports = n(72333)
},
35: function(t, e, n) {
"use strict";
var r = function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("li", {
directives: [{
name: "show",
rawName: "v-show",
value: t.visible,
expression: "visible"
}],
staticClass: "el-select-dropdown__item",
"class": {
selected: t.itemSelected,
"is-disabled": t.disabled || t.groupDisabled || t.limitReached,
hover: t.hover
},
on: {
mouseenter: t.hoverItem,
click: function(e) {
return e.stopPropagation(),
t.selectOptionClick(e)
}
}
}, [t._t("default", [n("span", [t._v(t._s(t.currentLabel))])])], 2)
};
r._withStripped = !0;
var o = n(4)
, s = n.n(o)
, p = n(3)
, f = "function" == typeof a && "symbol" === i(l) ? function(t) {
return i(t)
}
: function(t) {
return t && "function" == typeof a && t.constructor === a && t !== a.prototype ? "symbol" : i(t)
}
, h = {
mixins: [s.a],
name: "ElOption",
componentName: "ElOption",
inject: ["select"],
props: {
value: {
required: !0
},
label: [String, Number],
created: Boolean,
disabled: {
type: Boolean,
"default": !1
}
},
data: function() {
return {
index: -1,
groupDisabled: !1,
visible: !0,
hitState: !1,
hover: !1
}
},
computed: {
isObject: function() {
return "[object object]" === Object.prototype.toString.call(this.value).toLowerCase()
},
currentLabel: function() {
return this.label || (this.isObject ? "" : this.value)
},
currentValue: function() {
return this.value || this.label || ""
},
itemSelected: function() {
return this.select.multiple ? this.contains(this.select.value, this.value) : this.isEqual(this.value, this.select.value)
},
limitReached: function() {
return !!this.select.multiple && (!this.itemSelected && (this.select.value || []).length >= this.select.multipleLimit && this.select.multipleLimit > 0)
}
},
watch: {
currentLabel: function() {
this.created || this.select.remote || this.dispatch("ElSelect", "setSelected")
},
value: function(t, e) {
var n = this.select
, i = n.remote
, r = n.valueKey;
if (!this.created && !i) {
if (r && "object" === (void 0 === t ? "undefined" : f(t)) && "object" === (void 0 === e ? "undefined" : f(e)) && t[r] === e[r])
return;
this.dispatch("ElSelect", "setSelected")
}
}
},
methods: {
isEqual: function(t, e) {
if (this.isObject) {
var n = this.select.valueKey;
return Object(p.getValueByPath)(t, n) === Object(p.getValueByPath)(e, n)
}
return t === e
},
contains: function() {
var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []
, e = arguments[1];
if (this.isObject) {
var n = this.select.valueKey;
return t && u(t).call(t, (function(t) {
return Object(p.getValueByPath)(t, n) === Object(p.getValueByPath)(e, n)
}
))
}
return t && c(t).call(t, e) > -1
},
handleGroupDisabled: function(t) {
this.groupDisabled = t
},
hoverItem: function() {
var t;
this.disabled || this.groupDisabled || (this.select.hoverIndex = c(t = this.select.options).call(t, this))
},
selectOptionClick: function() {
!0 !== this.disabled && !0 !== this.groupDisabled && this.dispatch("ElSelect", "handleOptionClick", [this, !0])
},
queryChange: function(t) {
this.visible = new RegExp(Object(p.escapeRegexpString)(t),"i").test(this.currentLabel) || this.created,
this.visible || this.select.filteredOptionsCount--
}
},
created: function() {
this.select.options.push(this),
this.select.cachedOptions.push(this),
this.select.optionsCount++,
this.select.filteredOptionsCount++,
this.$on("queryChange", this.queryChange),
this.$on("handleGroupDisabled", this.handleGroupDisabled)
},
beforeDestroy: function() {
var t, e, n, i = this.select, r = i.selected, a = i.multiple ? r : [r], o = c(t = this.select.cachedOptions).call(t, this), s = c(a).call(a, this);
o > -1 && s < 0 && d(n = this.select.cachedOptions).call(n, o, 1);
this.select.onOptionDestroy(c(e = this.select.options).call(e, this))
}
}
, m = h
, g = n(0)
, v = Object(g.a)(m, r, [], !1, null, null, null);
e.a = v.exports
},
4: function(t, e) {
t.exports = n(90083)
},
55: function(t, e, n) {
"use strict";
n.r(e);
var i = n(35);
i.a.install = function(t) {
t.component(i.a.name, i.a)
}
,
e["default"] = i.a
}
})
},
80798: function(t, e, n) {
var i = n(96110)
, r = n(99221)
, a = n(87089)
, o = n(34076)
, s = n(75533)
, l = n(86990)
, c = n(75441)
, u = n(98247)
, d = n(99734)
, p = n(47380);
t.exports = function(t) {
var e = {};
function n(i) {
if (e[i])
return e[i].exports;
var r = e[i] = {
i: i,
l: !1,
exports: {}
};
return t[i].call(r.exports, r, r.exports, n),
r.l = !0,
r.exports
}
return n.m = t,
n.c = e,
n.d = function(t, e, i) {
n.o(t, e) || r(t, e, {
enumerable: !0,
get: i
})
}
,
n.r = function(t) {
void 0 !== a && o && r(t, o, {
value: "Module"
}),
r(t, "__esModule", {
value: !0
})
}
,
n.t = function(t, e) {
if (1 & e && (t = n(t)),
8 & e)
return t;
if (4 & e && "object" === i(t) && t && t.__esModule)
return t;
var a = Object.create(null);
if (n.r(a),
r(a, "default", {
enumerable: !0,
value: t
}),
2 & e && "string" != typeof t)
for (var o in t)
n.d(a, o, function(e) {
return t[e]
}
.bind(null, o));
return a
}
,
n.n = function(t) {
var e = t && t.__esModule ? function() {
return t["default"]
}
: function() {
return t
}
;
return n.d(e, "a", e),
e
}
,
n.o = function(t, e) {
return Object.prototype.hasOwnProperty.call(t, e)
}
,
n.p = "/dist/",
n(n.s = 75)
}({
0: function(t, e, n) {
"use strict";
function i(t, e, n, i, r, a, o, l) {
var c, u = "function" == typeof t ? t.options : t;
if (e && (u.render = e,
u.staticRenderFns = n,
u._compiled = !0),
i && (u.functional = !0),
a && (u._scopeId = "data-v-" + a),
o ? (c = function(t) {
(t = t || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) || "undefined" == typeof __VUE_SSR_CONTEXT__ || (t = __VUE_SSR_CONTEXT__),
r && r.call(this, t),
t && t._registeredComponents && t._registeredComponents.add(o)
}
,
u._ssrRegister = c) : r && (c = l ? function() {
r.call(this, (u.functional ? this.parent : this).$root.$options.shadowRoot)
}
: r),
c)
if (u.functional) {
u._injectStyles = c;
var d = u.render;
u.render = function(t, e) {
return c.call(e),
d(t, e)
}
} else {
var p, f = u.beforeCreate;
u.beforeCreate = f ? s(p = []).call(p, f, c) : [c]
}
return {
exports: t,
options: u
}
}
n.d(e, "a", (function() {
return i
}
))
},
10: function(t, e) {
t.exports = n(45388)
},
3: function(t, e) {
t.exports = n(72333)
},
45: function(t, e) {
t.exports = n(64017)
},
46: function(t, e) {
t.exports = n(2545)
},
7: function(t, e) {
t.exports = n(2234)
},
75: function(t, e, n) {
"use strict";
n.r(e);
var i = function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("ul", {
staticClass: "el-pager",
on: {
click: t.onPagerClick
}
}, [t.pageCount > 0 ? n("li", {
staticClass: "number",
"class": {
active: 1 === t.currentPage,
disabled: t.disabled
}
}, [t.pageBaseURL ? n("a", {
attrs: {
href: t.getLink(1)
},
on: {
click: function(t) {
t.preventDefault()
}
}
}, [t._v("1")]) : [t._v("1")]], 2) : t._e(), t.showPrevMore ? n("li", {
staticClass: "el-icon more btn-quickprev",
"class": [t.quickprevIconClass, {
disabled: t.disabled
}],
on: {
mouseenter: function(e) {
t.onMouseenter("left")
},
mouseleave: function(e) {
t.quickprevIconClass = "el-icon-more"
}
}
}) : t._e(), t._l(t.pagers, (function(e) {
return n("li", {
key: e,
staticClass: "number",
"class": {
active: t.currentPage === e,
disabled: t.disabled
}
}, [t.pageBaseURL ? n("a", {
attrs: {
href: t.getLink(e)
},
on: {
click: function(t) {
t.preventDefault()
}
}
}, [t._v(t._s(e))]) : [t._v(t._s(e))]], 2)
}
)), t.showNextMore ? n("li", {
staticClass: "el-icon more btn-quicknext",
"class": [t.quicknextIconClass, {
disabled: t.disabled
}],
on: {
mouseenter: function(e) {
t.onMouseenter("right")
},
mouseleave: function(e) {
t.quicknextIconClass = "el-icon-more"
}
}
}) : t._e(), t.pageCount > 1 ? n("li", {
staticClass: "number",
"class": {
active: t.currentPage === t.pageCount,
disabled: t.disabled
}
}, [t.pageBaseURL ? n("a", {
attrs: {
href: t.getLink(t.pageCount)
},
on: {
click: function(t) {
t.preventDefault()
}
}
}, [t._v(t._s(t.pageCount))]) : [t._v(t._s(t.pageCount))]], 2) : t._e()], 2)
};
i._withStripped = !0;
var r = {
name: "ElPager",
props: {
currentPage: Number,
pageCount: Number,
pagerCount: Number,
disabled: Boolean,
pageBaseURL: {
type: String,
"default": ""
},
pageQueryName: {
type: String,
"default": "page"
}
},
watch: {
showPrevMore: function(t) {
t || (this.quickprevIconClass = "el-icon-more")
},
showNextMore: function(t) {
t || (this.quicknextIconClass = "el-icon-more")
}
},
methods: {
onPagerClick: function(t) {
var e, n = t.target;
if ("UL" !== n.tagName && !this.disabled) {
var i, r, a = Number(t.target.textContent), o = this.pageCount, s = this.currentPage, c = this.pagerCount - 2;
if (-1 !== l(e = n.className).call(e, "more"))
-1 !== l(i = n.className).call(i, "quickprev") ? a = s - c : -1 !== l(r = n.className).call(r, "quicknext") && (a = s + c);
isNaN(a) || (a < 1 && (a = 1),
a > o && (a = o)),
a !== s && this.$emit("change", a)
}
},
onMouseenter: function(t) {
this.disabled || ("left" === t ? this.quickprevIconClass = "el-icon-d-arrow-left" : this.quicknextIconClass = "el-icon-d-arrow-right")
},
getLink: function(t) {
return this.pageBaseURL.split("?")[1] ? this.pageBaseURL + "&" + this.pageQueryName + "=" + t : this.pageBaseURL + "?" + this.pageQueryName + "=" + t
}
},
computed: {
pagers: function() {
var t = this.pagerCount
, e = (t - 1) / 2
, n = Number(this.currentPage)
, i = Number(this.pageCount)
, r = !1
, a = !1;
i > t && (n > t - e && (r = !0),
n < i - e && (a = !0));
var o = [];
if (r && !a)
for (var s = i - (t - 2); s < i; s++)
o.push(s);
else if (!r && a)
for (var l = 2; l < t; l++)
o.push(l);
else if (r && a)
for (var c = Math.floor(t / 2) - 1, u = n - c; u <= n + c; u++)
o.push(u);
else
for (var d = 2; d < i; d++)
o.push(d);
return this.showPrevMore = r,
this.showNextMore = a,
o
}
},
data: function() {
return {
current: null,
showPrevMore: !1,
showNextMore: !1,
quicknextIconClass: "el-icon-more",
quickprevIconClass: "el-icon-more"
}
}
}
, a = n(0)
, o = Object(a.a)(r, i, [], !1, null, null, null).exports
, s = n(45)
, f = n.n(s)
, h = n(46)
, m = n.n(h)
, g = n(10)
, v = n.n(g)
, b = n(7)
, y = n.n(b)
, w = n(3)
, _ = {
name: "ElPagination",
props: {
pageSize: {
type: Number,
"default": 10
},
small: Boolean,
total: Number,
pageCount: Number,
pagerCount: {
type: Number,
validator: function(t) {
return (0 | t) === t && t > 4 && t < 22 && t % 2 == 1
},
"default": 7
},
currentPage: {
type: Number,
"default": 1
},
layout: {
"default": "prev, pager, next, jumper, ->, total"
},
pageSizes: {
type: Array,
"default": function() {
return [10, 20, 30, 40, 50, 100]
}
},
popperClass: String,
prevText: String,
nextText: String,
background: Boolean,
disabled: Boolean,
hideOnSinglePage: Boolean,
sizesSize: {
type: String,
"default": "mini"
},
pageBaseURL: {
type: String,
"default": ""
},
pageQueryName: {
type: String,
"default": "page"
}
},
data: function() {
return {
internalCurrentPage: 1,
internalPageSize: 0,
lastEmittedPage: -1,
userChangePageSize: !1
}
},
render: function(t) {
var e, n = this.layout;
if (!n)
return null;
if (this.hideOnSinglePage && (!this.internalPageCount || 1 === this.internalPageCount))
return null;
var i = t("div", {
"class": ["el-pagination", {
"is-background": this.background,
"el-pagination--small": this.small
}]
})
, r = {
start: t("start"),
prev: t("prev"),
jumper: t("jumper"),
pager: t("pager", {
attrs: {
currentPage: this.internalCurrentPage,
pageCount: this.internalPageCount,
pagerCount: this.pagerCount,
disabled: this.disabled,
pageBaseURL: this.pageBaseURL,
pageQueryName: this.pageQueryName
},
on: {
change: this.handleCurrentChange
}
}),
next: t("next"),
end: t("end"),
sizes: t("sizes", {
attrs: {
pageSizes: this.pageSizes
}
}),
slot: t("slot", [this.$slots["default"] ? this.$slots["default"] : ""]),
total: t("total")
}
, a = c(e = n.split(",")).call(e, (function(t) {
return u(t).call(t)
}
))
, o = t("div", {
"class": "el-pagination__rightwrapper"
})
, s = !1;
return i.children = i.children || [],
o.children = o.children || [],
d(a).call(a, (function(t) {
"->" !== t ? s ? o.children.push(r[t]) : i.children.push(r[t]) : s = !0
}
)),
s && i.children.unshift(o),
i
},
components: {
Start: {
render: function(t) {
return t("button", {
attrs: {
type: "button",
disabled: this.$parent.disabled || this.$parent.internalCurrentPage <= 1
},
"class": "btn-prev",
on: {
click: this.$parent.start
}
}, [t("i", {
"class": "el-icon el-icon-d-arrow-left"
})])
}
},
End: {
render: function(t) {
return t("button", {
attrs: {
type: "button",
disabled: this.$parent.disabled || this.$parent.internalCurrentPage === this.$parent.internalPageCount
},
"class": "btn-prev",
on: {
click: this.$parent.end
}
}, [t("i", {
"class": "el-icon el-icon-d-arrow-right"
})])
}
},
Prev: {
render: function(t) {
return t("button", {
attrs: {
type: "button",
disabled: this.$parent.disabled || this.$parent.internalCurrentPage <= 1
},
"class": "btn-prev",
on: {
click: this.$parent.prev
}
}, [this.$parent.prevText ? t("span", [this.$parent.prevText]) : t("i", {
"class": "el-icon el-icon-arrow-left"
})])
}
},
Next: {
render: function(t) {
return t("button", {
attrs: {
type: "button",
disabled: this.$parent.disabled || this.$parent.internalCurrentPage === this.$parent.internalPageCount || 0 === this.$parent.internalPageCount
},
"class": "btn-next",
on: {
click: this.$parent.next
}
}, [this.$parent.nextText ? t("span", [this.$parent.nextText]) : t("i", {
"class": "el-icon el-icon-arrow-right"
})])
}
},
Sizes: {
mixins: [y.a],
props: {
pageSizes: Array
},
watch: {
pageSizes: {
immediate: !0,
handler: function(t, e) {
Object(w.valueEquals)(t, e) || Array.isArray(t) && (this.$parent.internalPageSize = l(t).call(t, this.$parent.pageSize) > -1 ? this.$parent.pageSize : this.pageSizes[0])
}
}
},
render: function(t) {
var e, n = this;
return t("span", {
"class": "el-pagination__sizes"
}, [t("el-select", {
attrs: {
value: this.$parent.internalPageSize,
popperClass: this.$parent.popperClass || "",
size: this.$parent.sizesSize,
disabled: this.$parent.disabled
},
on: {
input: this.handleChange
}
}, [c(e = this.pageSizes).call(e, (function(e) {
return t("el-option", {
attrs: {
value: e,
label: e + n.t("el.pagination.pagesize")
}
})
}
))])])
},
components: {
ElSelect: f.a,
ElOption: m.a
},
methods: {
handleChange: function(t) {
t !== this.$parent.internalPageSize && (this.$parent.internalPageSize = t = p(t, 10),
this.$parent.userChangePageSize = !0,
this.$parent.$emit("update:pageSize", t),
this.$parent.$emit("size-change", t))
}
}
},
Jumper: {
mixins: [y.a],
components: {
ElInput: v.a
},
data: function() {
return {
userInput: null
}
},
watch: {
"$parent.internalCurrentPage": function() {
this.userInput = null
}
},
methods: {
handleKeyup: function(t) {
var e = t.keyCode
, n = t.target;
13 === e && this.handleChange(n.value)
},
handleInput: function(t) {
this.userInput = t
},
handleChange: function(t) {
this.$parent.internalCurrentPage = this.$parent.getValidCurrentPage(t),
this.$parent.emitChange(),
this.userInput = null
}
},
render: function(t) {
return t("span", {
"class": "el-pagination__jump"
}, [this.t("el.pagination.goto"), t("el-input", {
"class": "el-pagination__editor is-in-pagination",
attrs: {
min: 1,
max: this.$parent.internalPageCount,
value: null !== this.userInput ? this.userInput : this.$parent.internalCurrentPage,
type: "number",
disabled: this.$parent.disabled
},
nativeOn: {
keyup: this.handleKeyup
},
on: {
input: this.handleInput,
change: this.handleChange
}
}), this.t("el.pagination.pageClassifier")])
}
},
Total: {
mixins: [y.a],
render: function(t) {
return "number" == typeof this.$parent.total ? t("span", {
"class": "el-pagination__total"
}, [this.t("el.pagination.total", {
total: this.$parent.total
})]) : ""
}
},
Pager: o
},
methods: {
handleCurrentChange: function(t) {
this.internalCurrentPage = this.getValidCurrentPage(t),
this.userChangePageSize = !0,
this.emitChange()
},
start: function() {
this.disabled || (this.internalCurrentPage = this.getValidCurrentPage(1),
this.emitChange())
},
end: function() {
this.disabled || (this.internalCurrentPage = this.getValidCurrentPage(this.internalPageCount),
this.emitChange())
},
prev: function() {
if (!this.disabled) {
var t = this.internalCurrentPage - 1;
this.internalCurrentPage = this.getValidCurrentPage(t),
this.$emit("prev-click", this.internalCurrentPage),
this.emitChange()
}
},
next: function() {
if (!this.disabled) {
var t = this.internalCurrentPage + 1;
this.internalCurrentPage = this.getValidCurrentPage(t),
this.$emit("next-click", this.internalCurrentPage),
this.emitChange()
}
},
getValidCurrentPage: function(t) {
t = p(t, 10);
var e = void 0;
return "number" == typeof this.internalPageCount ? t < 1 ? e = 1 : t > this.internalPageCount && (e = this.internalPageCount) : (isNaN(t) || t < 1) && (e = 1),
(e === undefined && isNaN(t) || 0 === e) && (e = 1),
e === undefined ? t : e
},
emitChange: function() {
var t = this;
this.$nextTick((function() {
(t.internalCurrentPage !== t.lastEmittedPage || t.userChangePageSize) && (t.$emit("current-change", t.internalCurrentPage),
t.lastEmittedPage = t.internalCurrentPage,
t.userChangePageSize = !1)
}
))
}
},
computed: {
internalPageCount: function() {
return "number" == typeof this.total ? Math.max(1, Math.ceil(this.total / this.internalPageSize)) : "number" == typeof this.pageCount ? Math.max(1, this.pageCount) : null
}
},
watch: {
currentPage: {
immediate: !0,
handler: function(t) {
this.internalCurrentPage = this.getValidCurrentPage(t)
}
},
pageSize: {
immediate: !0,
handler: function(t) {
this.internalPageSize = isNaN(t) ? 10 : t
}
},
internalCurrentPage: {
immediate: !0,
handler: function(t) {
this.$emit("update:currentPage", t),
this.lastEmittedPage = -1
}
},
internalPageCount: function(t) {
var e = this.internalCurrentPage;
t > 0 && 0 === e ? this.internalCurrentPage = 1 : e > t && (this.internalCurrentPage = 0 === t ? 1 : t,
this.userChangePageSize && this.emitChange()),
this.userChangePageSize = !1
}
},
install: function(t) {
t.component(_.name, _)
}
};
e["default"] = _
}
})
},
67951: function(t, e, n) {
var i = n(96110)
, r = n(99221)
, a = n(87089)
, o = n(34076);
t.exports = function(t) {
var e = {};
function n(i) {
if (e[i])
return e[i].exports;
var r = e[i] = {
i: i,
l: !1,
exports: {}
};
return t[i].call(r.exports, r, r.exports, n),
r.l = !0,
r.exports
}
return n.m = t,
n.c = e,
n.d = function(t, e, i) {
n.o(t, e) || r(t, e, {
enumerable: !0,
get: i
})
}
,
n.r = function(t) {
void 0 !== a && o && r(t, o, {
value: "Module"
}),
r(t, "__esModule", {
value: !0
})
}
,
n.t = function(t, e) {
if (1 & e && (t = n(t)),
8 & e)
return t;
if (4 & e && "object" === i(t) && t && t.__esModule)
return t;
var a = Object.create(null);
if (n.r(a),
r(a, "default", {
enumerable: !0,
value: t
}),
2 & e && "string" != typeof t)
for (var o in t)
n.d(a, o, function(e) {
return t[e]
}
.bind(null, o));
return a
}
,
n.n = function(t) {
var e = t && t.__esModule ? function() {
return t["default"]
}
: function() {
return t
}
;
return n.d(e, "a", e),
e
}
,
n.o = function(t, e) {
return Object.prototype.hasOwnProperty.call(t, e)
}
,
n.p = "/dist/",
n(n.s = 132)
}({
132: function(t, e, n) {
"use strict";
n.r(e);
var i = n(18)
, r = n(39)
, a = n.n(r)
, o = n(3)
, s = n(2)
, l = {
vertical: {
offset: "offsetHeight",
scroll: "scrollTop",
scrollSize: "scrollHeight",
size: "height",
key: "vertical",
axis: "Y",
client: "clientY",
direction: "top"
},
horizontal: {
offset: "offsetWidth",
scroll: "scrollLeft",
scrollSize: "scrollWidth",
size: "width",
key: "horizontal",
axis: "X",
client: "clientX",
direction: "left"
}
};
function c(t) {
var e = t.move
, n = t.size
, i = t.bar
, r = {}
, a = "translate" + i.axis + "(" + e + "%)";
return r[i.size] = n,
r.transform = a,
r.msTransform = a,
r.webkitTransform = a,
r
}
var u = {
name: "Bar",
props: {
vertical: Boolean,
size: String,
move: Number,
permanentThumb: Boolean
},
computed: {
bar: function() {
return l[this.vertical ? "vertical" : "horizontal"]
},
wrap: function() {
return this.$parent.wrap
}
},
render: function(t) {
var e = this.size
, n = this.move
, i = this.bar
, r = this.permanentThumb;
return t("div", {
"class": ["el-scrollbar__bar", "is-" + i.key],
style: r ? "opacity:1;" : "",
on: {
mousedown: this.clickTrackHandler
}
}, [t("div", {
ref: "thumb",
"class": "el-scrollbar__thumb",
on: {
mousedown: this.clickThumbHandler
},
style: c({
size: e,
move: n,
bar: i
})
})])
},
methods: {
clickThumbHandler: function(t) {
t.ctrlKey || 2 === t.button || (this.startDrag(t),
this[this.bar.axis] = t.currentTarget[this.bar.offset] - (t[this.bar.client] - t.currentTarget.getBoundingClientRect()[this.bar.direction]))
},
clickTrackHandler: function(t) {
var e = 100 * (Math.abs(t.target.getBoundingClientRect()[this.bar.direction] - t[this.bar.client]) - this.$refs.thumb[this.bar.offset] / 2) / this.$el[this.bar.offset];
this.wrap[this.bar.scroll] = e * this.wrap[this.bar.scrollSize] / 100
},
startDrag: function(t) {
t.stopImmediatePropagation(),
this.cursorDown = !0,
Object(s.on)(document, "mousemove", this.mouseMoveDocumentHandler),
Object(s.on)(document, "mouseup", this.mouseUpDocumentHandler),
document.onselectstart = function() {
return !1
}
},
mouseMoveDocumentHandler: function(t) {
if (!1 !== this.cursorDown) {
var e = this[this.bar.axis];
if (e) {
var n = 100 * (-1 * (this.$el.getBoundingClientRect()[this.bar.direction] - t[this.bar.client]) - (this.$refs.thumb[this.bar.offset] - e)) / this.$el[this.bar.offset];
this.wrap[this.bar.scroll] = n * this.wrap[this.bar.scrollSize] / 100
}
}
},
mouseUpDocumentHandler: function(t) {
this.cursorDown = !1,
this[this.bar.axis] = 0,
Object(s.off)(document, "mousemove", this.mouseMoveDocumentHandler),
document.onselectstart = null
}
},
destroyed: function() {
Object(s.off)(document, "mouseup", this.mouseUpDocumentHandler)
}
}
, d = {
name: "ElScrollbar",
components: {
Bar: u
},
props: {
native: Boolean,
wrapStyle: {},
wrapClass: {},
viewClass: {},
viewStyle: {},
noresize: Boolean,
tag: {
type: String,
"default": "div"
},
direction: {
type: String,
"default": ""
},
permanentThumb: {
type: Boolean,
"default": !1
}
},
data: function() {
return {
sizeWidth: "0",
sizeHeight: "0",
moveX: 0,
moveY: 0
}
},
computed: {
wrap: function() {
return this.$refs.wrap
},
outerStyle: function() {
switch (this.direction) {
case "vertical":
return "height:100%;";
case "horizontal":
return "width:100%;"
}
return ""
},
wrapAutoStyle: function() {
return "vertical" === this.direction ? "overflowX:auto;" : ""
}
},
render: function(t) {
var e = a()()
, n = this.wrapStyle
, i = this.permanentThumb;
if (e) {
var r = "-" + e + "px"
, s = "margin-bottom: " + r + "; margin-right: " + r + ";";
Array.isArray(this.wrapStyle) ? (n = Object(o.toObject)(this.wrapStyle)).marginRight = n.marginBottom = r : "string" == typeof this.wrapStyle ? n += s : n = s
}
var l = t(this.tag, {
"class": ["el-scrollbar__view", this.viewClass],
style: this.viewStyle,
ref: "resize"
}, this.$slots["default"])
, c = t("div", {
ref: "wrap",
style: n + this.wrapAutoStyle,
on: {
scroll: this.handleScroll
},
"class": [this.wrapClass, "el-scrollbar__wrap", e ? "" : "el-scrollbar__wrap--hidden-default"]
}, [[l]])
, d = void 0;
return d = this.native ? [t("div", {
ref: "wrap",
"class": [this.wrapClass, "el-scrollbar__wrap"],
style: n
}, [[l]])] : [c, t(u, {
attrs: {
permanentThumb: i,
move: this.moveX,
size: this.sizeWidth
}
}), t(u, {
attrs: {
vertical: !0,
permanentThumb: i,
move: this.moveY,
size: this.sizeHeight
}
})],
t("div", {
"class": ["el-scrollbar", "nowcoder-custom"],
style: this.outerStyle
}, d)
},
methods: {
handleScroll: function() {
var t = this.wrap;
this.moveY = 100 * t.scrollTop / t.clientHeight,
this.moveX = 100 * t.scrollLeft / t.clientWidth
},
update: function() {
var t, e, n = this.wrap;
n && (t = 100 * n.clientHeight / n.scrollHeight,
e = 100 * n.clientWidth / n.scrollWidth,
this.sizeHeight = t < 100 ? t + "%" : "",
this.sizeWidth = e < 100 ? e + "%" : "")
}
},
mounted: function() {
this.native || (this.$nextTick(this.update),
!this.noresize && Object(i.addResizeListener)(this.$refs.resize, this.update))
},
beforeDestroy: function() {
this.native || !this.noresize && Object(i.removeResizeListener)(this.$refs.resize, this.update)
},
install: function(t) {
t.component(d.name, d)
}
};
e["default"] = d
},
18: function(t, e) {
t.exports = n(50691)
},
2: function(t, e) {
t.exports = n(75682)
},
3: function(t, e) {
t.exports = n(72333)
},
39: function(t, e) {
t.exports = n(81837)
}
})
},
64017: function(t, e, n) {
var i = n(96110)
, r = n(99221)
, a = n(87089)
, o = n(34076)
, s = n(75533)
, l = n(65700)
, c = n(86990)
, u = n(16011)
, d = n(85303)
, p = n(45629)
, f = n(17986)
, h = n(99734)
, m = n(47380)
, g = n(91041)
, v = n(97806)
, b = n(75441);
t.exports = function(t) {
var e = {};
function n(i) {
if (e[i])
return e[i].exports;
var r = e[i] = {
i: i,
l: !1,
exports: {}
};
return t[i].call(r.exports, r, r.exports, n),
r.l = !0,
r.exports
}
return n.m = t,
n.c = e,
n.d = function(t, e, i) {
n.o(t, e) || r(t, e, {
enumerable: !0,
get: i
})
}
,
n.r = function(t) {
void 0 !== a && o && r(t, o, {
value: "Module"
}),
r(t, "__esModule", {
value: !0
})
}
,
n.t = function(t, e) {
if (1 & e && (t = n(t)),
8 & e)
return t;
if (4 & e && "object" === i(t) && t && t.__esModule)
return t;
var a = Object.create(null);
if (n.r(a),
r(a, "default", {
enumerable: !0,
value: t
}),
2 & e && "string" != typeof t)
for (var o in t)
n.d(a, o, function(e) {
return t[e]
}
.bind(null, o));
return a
}
,
n.n = function(t) {
var e = t && t.__esModule ? function() {
return t["default"]
}
: function() {
return t
}
;
return n.d(e, "a", e),
e
}
,
n.o = function(t, e) {
return Object.prototype.hasOwnProperty.call(t, e)
}
,
n.p = "/dist/",
n(n.s = 65)
}({
0: function(t, e, n) {
"use strict";
function i(t, e, n, i, r, a, o, l) {
var c, u = "function" == typeof t ? t.options : t;
if (e && (u.render = e,
u.staticRenderFns = n,
u._compiled = !0),
i && (u.functional = !0),
a && (u._scopeId = "data-v-" + a),
o ? (c = function(t) {
(t = t || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) || "undefined" == typeof __VUE_SSR_CONTEXT__ || (t = __VUE_SSR_CONTEXT__),
r && r.call(this, t),
t && t._registeredComponents && t._registeredComponents.add(o)
}
,
u._ssrRegister = c) : r && (c = l ? function() {
r.call(this, (u.functional ? this.parent : this).$root.$options.shadowRoot)
}
: r),
c)
if (u.functional) {
u._injectStyles = c;
var d = u.render;
u.render = function(t, e) {
return c.call(e),
d(t, e)
}
} else {
var p, f = u.beforeCreate;
u.beforeCreate = f ? s(p = []).call(p, f, c) : [c]
}
return {
exports: t,
options: u
}
}
n.d(e, "a", (function() {
return i
}
))
},
10: function(t, e) {
t.exports = n(45388)
},
12: function(t, e) {
t.exports = n(29757)
},
16: function(t, e) {
t.exports = n(67951)
},
17: function(t, e) {
t.exports = n(10966)
},
18: function(t, e) {
t.exports = n(50691)
},
19: function(t, e) {
t.exports = n(11864)
},
21: function(t, e) {
t.exports = n(9328)
},
22: function(t, e) {
t.exports = n(27360)
},
3: function(t, e) {
t.exports = n(72333)
},
33: function(t, e) {
t.exports = n(89893)
},
35: function(t, e, n) {
"use strict";
var r = function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("li", {
directives: [{
name: "show",
rawName: "v-show",
value: t.visible,
expression: "visible"
}],
staticClass: "el-select-dropdown__item",
"class": {
selected: t.itemSelected,
"is-disabled": t.disabled || t.groupDisabled || t.limitReached,
hover: t.hover
},
on: {
mouseenter: t.hoverItem,
click: function(e) {
return e.stopPropagation(),
t.selectOptionClick(e)
}
}
}, [t._t("default", [n("span", [t._v(t._s(t.currentLabel))])])], 2)
};
r._withStripped = !0;
var o = n(4)
, s = n.n(o)
, p = n(3)
, f = "function" == typeof a && "symbol" === i(l) ? function(t) {
return i(t)
}
: function(t) {
return t && "function" == typeof a && t.constructor === a && t !== a.prototype ? "symbol" : i(t)
}
, h = {
mixins: [s.a],
name: "ElOption",
componentName: "ElOption",
inject: ["select"],
props: {
value: {
required: !0
},
label: [String, Number],
created: Boolean,
disabled: {
type: Boolean,
"default": !1
}
},
data: function() {
return {
index: -1,
groupDisabled: !1,
visible: !0,
hitState: !1,
hover: !1
}
},
computed: {
isObject: function() {
return "[object object]" === Object.prototype.toString.call(this.value).toLowerCase()
},
currentLabel: function() {
return this.label || (this.isObject ? "" : this.value)
},
currentValue: function() {
return this.value || this.label || ""
},
itemSelected: function() {
return this.select.multiple ? this.contains(this.select.value, this.value) : this.isEqual(this.value, this.select.value)
},
limitReached: function() {
return !!this.select.multiple && (!this.itemSelected && (this.select.value || []).length >= this.select.multipleLimit && this.select.multipleLimit > 0)
}
},
watch: {
currentLabel: function() {
this.created || this.select.remote || this.dispatch("ElSelect", "setSelected")
},
value: function(t, e) {
var n = this.select
, i = n.remote
, r = n.valueKey;
if (!this.created && !i) {
if (r && "object" === (void 0 === t ? "undefined" : f(t)) && "object" === (void 0 === e ? "undefined" : f(e)) && t[r] === e[r])
return;
this.dispatch("ElSelect", "setSelected")
}
}
},
methods: {
isEqual: function(t, e) {
if (this.isObject) {
var n = this.select.valueKey;
return Object(p.getValueByPath)(t, n) === Object(p.getValueByPath)(e, n)
}
return t === e
},
contains: function() {
var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []
, e = arguments[1];
if (this.isObject) {
var n = this.select.valueKey;
return t && u(t).call(t, (function(t) {
return Object(p.getValueByPath)(t, n) === Object(p.getValueByPath)(e, n)
}
))
}
return t && c(t).call(t, e) > -1
},
handleGroupDisabled: function(t) {
this.groupDisabled = t
},
hoverItem: function() {
var t;
this.disabled || this.groupDisabled || (this.select.hoverIndex = c(t = this.select.options).call(t, this))
},
selectOptionClick: function() {
!0 !== this.disabled && !0 !== this.groupDisabled && this.dispatch("ElSelect", "handleOptionClick", [this, !0])
},
queryChange: function(t) {
this.visible = new RegExp(Object(p.escapeRegexpString)(t),"i").test(this.currentLabel) || this.created,
this.visible || this.select.filteredOptionsCount--
}
},
created: function() {
this.select.options.push(this),
this.select.cachedOptions.push(this),
this.select.optionsCount++,
this.select.filteredOptionsCount++,
this.$on("queryChange", this.queryChange),
this.$on("handleGroupDisabled", this.handleGroupDisabled)
},
beforeDestroy: function() {
var t, e, n, i = this.select, r = i.selected, a = i.multiple ? r : [r], o = c(t = this.select.cachedOptions).call(t, this), s = c(a).call(a, this);
o > -1 && s < 0 && d(n = this.select.cachedOptions).call(n, o, 1);
this.select.onOptionDestroy(c(e = this.select.options).call(e, this))
}
}
, m = h
, g = n(0)
, v = Object(g.a)(m, r, [], !1, null, null, null);
e.a = v.exports
},
38: function(t, e) {
t.exports = n(21334)
},
4: function(t, e) {
t.exports = n(90083)
},
6: function(t, e) {
t.exports = n(72525)
},
65: function(t, e, n) {
"use strict";
n.r(e);
var i = function() {
var t = this
, e = t.$createElement
, n = t._self._c || e;
return n("div", {
directives: [{
name: "clickoutside",
rawName: "v-clickoutside",
value: t.handleClose,
expression: "handleClose"
}],
staticClass: "el-select",
"class": [t.selectSize ? "el-select--" + t.selectSize : "", t.selectExpansion && "el-select--expansion"],
on: {
click: t.toggleMenu
}
}, [t.multiple ? n("div", {
ref: "tags",
staticClass: "el-select__tags",
style: {
"max-width": t.inputWidth - 32 + "px",
width: "100%"
}
}, [t.collapseTags && t.selected.length ? n("span", [n("el-tag", {
attrs: {
closable: !t.selectDisabled,
size: t.collapseTagSize,
hit: t.selected[0].hitState,
type: "info",
"disable-transitions": ""
},
on: {
close: function(e) {
t.deleteTag(e, t.selected[0])
}
}
}, [n("span", {
staticClass: "el-select__tags-text"
}, [t._v(t._s(t.sliceTagContent(t.selected[0].currentLabel)))])]), t.selected.length > 1 ? n("el-tag", {
attrs: {
closable: !1,
size: t.collapseTagSize,
type: "info",
"disable-transitions": ""
}
}, [n("span", {
staticClass: "el-select__tags-text"
}, [t._v("+ " + t._s(t.selected.length - 1))])]) : t._e()], 1) : t._e(), t.collapseTags ? t._e() : n("transition-group", {
on: {
"after-leave": t.resetInputHeight
}
}, t._l(t.selected, (function(e) {
return n("el-tag", {
key: t.getValueKey(e),
attrs: {
closable: !t.selectDisabled,
size: t.collapseTagSize,
hit: e.hitState,
type: "info",
"disable-transitions": ""
},
on: {
close: function(n) {
t.deleteTag(n, e)
}
}
}, [n("span", {
staticClass: "el-select__tags-text"
}, [t._v(t._s(t.sliceTagContent(e.currentLabel)))])])
}
)), 1), t.filterable ? n("input", {
directives: [{
name: "model",
rawName: "v-model",
value: t.query,
expression: "query"
}],
ref: "input",
staticClass: "el-select__input",
"class": [t.selectSize ? "is-" + t.selectSize : ""],
style: {
"flex-grow": "1",
width: t.inputLength / (t.inputWidth - 32) + "%",
"max-width": t.inputWidth - 42 + "px"
},
attrs: {
type: "text",
disabled: t.selectDisabled,
autocomplete: t.autoComplete || t.autocomplete,
borderless: t.borderless
},
domProps: {
value: t.query
},
on: {
focus: t.handleFocus,
blur: function(e) {
t.softFocus = !1
},
keyup: t.managePlaceholder,
keydown: [t.resetInputState, function(e) {
if (!("button"in e) && t._k(e.keyCode, "down", 40, e.key, ["Down", "ArrowDown"]))
return null;
e.preventDefault(),
t.navigateOptions("next")
}
, function(e) {
if (!("button"in e) && t._k(e.keyCode, "up", 38, e.key, ["Up", "ArrowUp"]))
return null;
e.preventDefault(),
t.navigateOptions("prev")
}
, function(e) {
return !("button"in e) && t._k(e.keyCode, "enter", 13, e.key, "Enter") ? null : (e.preventDefault(),
t.selectOption(e))
}
, function(e) {
if (!("button"in e) && t._k(e.keyCode, "esc", 27, e.key, ["Esc", "Escape"]))
return null;
e.stopPropagation(),
e.preventDefault(),
t.visible = !1
}
, function(e) {
return !("button"in e) && t._k(e.keyCode, "delete", [8, 46], e.key, ["Backspace", "Delete", "Del"]) ? null : t.deletePrevTag(e)
}
, function(e) {
if (!("button"in e) && t._k(e.keyCode, "tab", 9, e.key, "Tab"))
return null;
t.visible = !1
}
],
compositionstart: t.handleComposition,
compositionupdate: t.handleComposition,
compositionend: t.handleComposition,
input: [function(e) {
e.target.composing || (t.query = e.target.value)
}
, t.debouncedQueryChange]
}
}) : t._e()], 1) : t._e(), n("el-input", {
ref: "reference",
"class": {
"is-focus": t.visible
},
attrs: {
type: "text",
placeholder: t.currentPlaceholder,
name: t.name,
id: t.id,
autocomplete: t.autoComplete || t.autocomplete,
size: t.selectSize,
disabled: t.selectDisabled,
readonly: t.readonly,
"validate-event": !1,
tabindex: t.multiple && t.filterable ? "-1" : null,
borderless: t.borderless
},
on: {
focus: t.handleFocus,
blur: t.handleBlur
},
nativeOn: {
keyup: function(e) {
return t.debouncedOnInputChange(e)
},
keydown: [function(e) {
if (!("button"in e) && t._k(e.keyCode, "down", 40, e.key, ["Down", "ArrowDown"]))
return null;
e.stopPropagation(),
e.preventDefault(),
t.navigateOptions("next")
}
, function(e) {
if (!("button"in e) && t._k(e.keyCode, "up", 38, e.key, ["Up", "ArrowUp"]))
return null;
e.stopPropagation(),
e.preventDefault(),
t.navigateOptions("prev")
}
, function(e) {
return !("button"in e) && t._k(e.keyCode, "enter", 13, e.key, "Enter") ? null : (e.preventDefault(),
t.selectOption(e))
}
, function(e) {
if (!("button"in e) && t._k(e.keyCode, "esc", 27, e.key, ["Esc", "Escape"]))
return null;
e.stopPropagation(),
e.preventDefault(),
t.visible = !1
}
, function(e) {
if (!("button"in e) && t._k(e.keyCode, "tab", 9, e.key, "Tab"))
return null;
t.visible = !1
}
],
paste: function(e) {
return t.debouncedOnInputChange(e)
},
mouseenter: function(e) {
t.inputHovering = !0
},
mouseleave: function(e) {
t.inputHovering = !1
}
},
model: {
value: t.selectedLabel,
callback: function(e) {
t.selectedLabel = e
},
expression: "selectedLabel"
}
}, [t.$slots.prefix ? n("template", {
slot: "prefix"
}, [t._t("prefix")], 2) : t._e(), n("template", {
slot: "suffix"
}, [n("i", {
directives: [{
name: "show",
rawName: "v-show",
value: !t.showClose,
expression: "!showClose"
}],
"class": ["el-select__caret", "el-input__icon", "el-icon-" + t.iconClass]
}), t.showClose ? n("i", {
staticClass: "el-select__caret el-input__icon el-icon-circle-close",
on: {
click: t.handleClearClick
}
}) : t._e()])], 2), n("transition", {
attrs: {
name: "el-zoom-in-top"
},
on: {
"before-enter": t.handleMenuEnter,
"after-leave": t.doDestroy
}
}, [n("el-select-menu", {
directives: [{
name: "show",
rawName: "v-show",
value: t.visible && !1 !== t.emptyText,
expression: "visible && emptyText !== false"
}],
ref: "popper",
style: {
"max-width": t.widthFull ? t.inputWidth + "px" : "auto"
},
attrs: {
"append-to-body": t.popperAppendToBody,
visibleArrow: t.visibleArrow,
size: t.selectSize
}
}, [t.selectAll && t.multiple ? n("div", {
staticClass: "el-select__all"
}, [n("el-checkbox", {
attrs: {
indeterminate: t.isIndeterminate,
value: t.checkAll
},
on: {
change: t.handleCheckAllChange
}
}, [t._v("全选")])], 1) : t._e(), n("el-scrollbar", {
directives: [{
name: "show",
rawName: "v-show",
value: t.options.length > 0 && !t.loading,
expression: "options.length > 0 && !loading"
}],
ref: "scrollbar",
"class": {
"is-empty": !t.allowCreate && t.query && 0 === t.filteredOptionsCount
},
attrs: {
tag: "ul",
"wrap-class": "el-select-dropdown__wrap",
"view-class": "el-select-dropdown__list"
}
}, [t.showNewOption ? n("el-option", {
attrs: {
value: t.query,
created: ""
}
}) : t._e(), t._t("default")], 2), t.emptyText && (!t.allowCreate || t.loading || t.allowCreate && 0 === t.options.length) ? [t.$slots.empty ? t._t("empty") : n("p", {
staticClass: "el-select-dropdown__empty"
}, [t._v("\n " + t._s(t.emptyText) + "\n ")])] : t._e()], 2)], 1)], 1)
};
i._withStripped = !0;
var r = n(4)
, a = n.n(r)
, o = n(22)
, s = n.n(o)
, l = n(7)
, y = n.n(l)
, w = n(10)
, _ = n.n(w)
, x = n(17)
, C = n.n(x)
, k = function() {
var t = this
, e = t.$createElement;
return (t._self._c || e)("div", {
staticClass: "el-select-dropdown el-popper",
"class": [{
"is-multiple": t.$parent.multiple
}, t.popperClass, t.size ? "is-" + t.size : ""],
style: {
minWidth: t.minWidth
}
}, [t._t("default")], 2)
};
k._withStripped = !0;
var S = n(6)
, T = {
name: "ElSelectDropdown",
componentName: "ElSelectDropdown",
mixins: [n.n(S).a],
props: {
placement: {
"default": "bottom-start"
},
boundariesPadding: {
"default": 0
},
popperOptions: {
"default": function() {
return {
gpuAcceleration: !1
}
}
},
visibleArrow: {
"default": !0
},
appendToBody: {
type: Boolean,
"default": !0
},
size: {
type: String
}
},
data: function() {
return {
minWidth: ""
}
},
computed: {
popperClass: function() {
return this.$parent.popperClass
}
},
watch: {
"$parent.inputWidth": function() {
this.minWidth = this.$parent.$el.getBoundingClientRect().width + "px"
}
},
mounted: function() {
var t = this;
this.referenceElm = this.$parent.$refs.reference.$el,
this.$parent.popperElm = this.popperElm = this.$el,
this.$on("updatePopper", (function() {
t.$parent.visible && t.updatePopper()
}
)),
this.$on("destroyPopper", this.destroyPopper)
}
}
, E = n(0)
, I = Object(E.a)(T, k, [], !1, null, null, null).exports
, L = n(35)
, j = n(38)
, M = n.n(j)
, $ = n(16)
, F = n.n($)
, P = n(19)
, O = n.n(P)
, N = n(12)
, D = n.n(N)
, A = n(18)
, z = n(33)
, H = n.n(z)
, R = n(3)
, B = {
data: function() {
return {
hoverOption: -1
}
},
computed: {
optionsAllDisabled: function() {
var t, e;
return p(t = f(e = this.options).call(e, (function(t) {
return t.visible
}
))).call(t, (function(t) {
return t.disabled
}
))
}
},
watch: {
hoverIndex: function(t) {
var e, n = this;
"number" == typeof t && t > -1 && (this.hoverOption = this.options[t] || {}),
h(e = this.options).call(e, (function(t) {
t.hover = n.hoverOption === t
}
))
}
},
methods: {
navigateOptions: function(t) {
var e = this;
if (this.visible) {
if (0 !== this.options.length && 0 !== this.filteredOptionsCount && !this.optionsAllDisabled) {
"next" === t ? (this.hoverIndex++,
this.hoverIndex === this.options.length && (this.hoverIndex = 0)) : "prev" === t && (this.hoverIndex--,
this.hoverIndex < 0 && (this.hoverIndex = this.options.length - 1));
var n = this.options[this.hoverIndex];
!0 !== n.disabled && !0 !== n.groupDisabled && n.visible || this.navigateOptions(t),
this.$nextTick((function() {
return e.scrollToOption(e.hoverOption)
}
))
}
} else
this.visible = !0
}
}
}
, U = n(21)
, q = {
mixins: [a.a, y.a, s()("reference"), B],
name: "ElSelect",
componentName: "ElSelect",
inject: {
elForm: {
"default": ""
},
elFormItem: {
"default": ""
}
},
provide: function() {
return {
select: this
}
},
computed: {
checkAll: function() {
return this.value.length === this.options.length
},
_elFormItemSize: function() {
return (this.elFormItem || {}).elFormItemSize
},
readonly: function() {
return !this.filterable || this.multiple || !Object(R.isIE)() && !Object(R.isEdge)() && !this.visible
},
showClose: function() {
var t = this.multiple ? Array.isArray(this.value) && this.value.length > 0 : this.value !== undefined && null !== this.value && "" !== this.value;
return this.clearable && !this.selectDisabled && this.inputHovering && t
},
iconClass: function() {
return this.remote && this.filterable ? "" : this.visible ? "arrow-up is-reverse" : "arrow-up"
},
debounce: function() {
return this.remote ? 300 : 0
},
emptyText: function() {
return this.loading ? this.loadingText || this.t("el.select.loading") : (!this.remote || "" !== this.query || 0 !== this.options.length) && (this.filterable && this.query && this.options.length > 0 && 0 === this.filteredOptionsCount ? this.noMatchText || this.t("el.select.noMatch") : 0 === this.options.length ? this.noDataText || this.t("el.select.noData") : null)
},
showNewOption: function() {
var t, e, n = this, i = u(t = f(e = this.options).call(e, (function(t) {
return !t.created
}
))).call(t, (function(t) {
return t.currentLabel === n.query
}
));
return this.filterable && this.allowCreate && "" !== this.query && !i
},
selectSize: function() {
return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size
},
selectDisabled: function() {
return this.disabled || (this.elForm || {}).disabled
},
collapseTagSize: function() {
var t;
return c(t = ["small", "mini"]).call(t, this.selectSize) > -1 ? "mini" : "small"
},
propPlaceholder: function() {
return "undefined" != typeof this.placeholder ? this.placeholder : this.t("el.select.placeholder")
},
isIndeterminate: function() {
return this.multiple && this.value.length > 0 && this.value.length < this.options.length
}
},
components: {
ElInput: _.a,
ElSelectMenu: I,
ElOption: L.a,
ElTag: M.a,
ElScrollbar: F.a,
ElCheckbox: C.a
},
directives: {
Clickoutside: D.a
},
props: {
name: String,
id: String,
value: {
required: !0
},
autocomplete: {
type: String,
"default": "off"
},
autoComplete: {
type: String,
validator: function(t) {
return !0
}
},
automaticDropdown: Boolean,
size: String,
disabled: Boolean,
clearable: Boolean,
filterable: Boolean,
allowCreate: Boolean,
loading: Boolean,
popperClass: String,
remote: Boolean,
loadingText: String,
noMatchText: String,
noDataText: String,
remoteMethod: Function,
filterMethod: Function,
multiple: Boolean,
selectAll: Boolean,
multipleLimit: {
type: Number,
"default": 0
},
placeholder: {
type: String,
required: !1
},
defaultFirstOption: Boolean,
reserveKeyword: Boolean,
valueKey: {
type: String,
"default": "value"
},
collapseTags: Boolean,
popperAppendToBody: {
type: Boolean,
"default": !0
},
borderless: {
type: Boolean,
"default": !1
},
visibleArrow: {
type: Boolean,
"default": !0
},
widthFull: {
type: Boolean,
"default": !1
},
tagContentLimit: {
type: Number,
"default": Infinity,
validator: function(t) {
return t >= 0 && m(t, 10) === t || t === Infinity
}
},
watchScrollBottomAction: {
type: Function,
"default": undefined,
validator: function(t) {
return "function" == typeof t
}
},
selectExpansion: {
type: Boolean,
"default": !1
}
},
data: function() {
return {
options: [],
cachedOptions: [],
createdLabel: null,
createdSelected: !1,
selected: this.multiple ? [] : {},
inputLength: 20,
inputWidth: 0,
initialInputHeight: 0,
cachedPlaceHolder: "",
optionsCount: 0,
filteredOptionsCount: 0,
visible: !1,
softFocus: !1,
selectedLabel: "",
hoverIndex: -1,
query: "",
previousQuery: null,
inputHovering: !1,
currentPlaceholder: "",
menuVisibleOnFocus: !1,
isOnComposition: !1,
isSilentBlur: !1
}
},
watch: {
selectDisabled: function() {
var t = this;
this.$nextTick((function() {
t.resetInputHeight()
}
))
},
propPlaceholder: function(t) {
this.cachedPlaceHolder = this.currentPlaceholder = t
},
value: function(t, e) {
this.multiple && (this.resetInputHeight(),
t && t.length > 0 || this.$refs.input && "" !== this.query ? this.currentPlaceholder = "" : this.currentPlaceholder = this.cachedPlaceHolder,
this.filterable && !this.reserveKeyword && (this.query = "",
this.handleQueryChange(this.query))),
this.setSelected(),
this.filterable && !this.multiple && (this.inputLength = 20),
Object(R.valueEquals)(t, e) || this.dispatch("ElFormItem", "el.form.change", t)
},
visible: function(t) {
var e = this;
t ? (this.broadcast("ElSelectDropdown", "updatePopper"),
this.filterable && (this.query = this.remote ? "" : this.selectedLabel,
this.handleQueryChange(this.query),
this.multiple ? this.$refs.input.focus() : (this.remote || (this.broadcast("ElOption", "queryChange", ""),
this.broadcast("ElOptionGroup", "queryChange")),
this.selectedLabel && (this.currentPlaceholder = this.selectedLabel,
this.selectedLabel = "")))) : (this.broadcast("ElSelectDropdown", "destroyPopper"),
this.$refs.input && this.$refs.input.blur(),
this.query = "",
this.previousQuery = null,
this.selectedLabel = "",
this.inputLength = 20,
this.menuVisibleOnFocus = !1,
this.resetHoverIndex(),
this.$nextTick((function() {
e.$refs.input && "" === e.$refs.input.value && 0 === e.selected.length && (e.currentPlaceholder = e.cachedPlaceHolder)
}
)),
this.multiple || (this.selected && (this.filterable && this.allowCreate && this.createdSelected && this.createdLabel ? this.selectedLabel = this.createdLabel : this.selectedLabel = this.selected.currentLabel,
this.filterable && (this.query = this.selectedLabel)),
this.filterable && (this.currentPlaceholder = this.cachedPlaceHolder))),
this.$emit("visible-change", t)
},
options: function() {
var t = this;
if (!this.$isServer) {
this.$nextTick((function() {
t.broadcast("ElSelectDropdown", "updatePopper")
}
)),
this.multiple && this.resetInputHeight();
var e = this.$el.querySelectorAll("input");
-1 === c([]).call(e, document.activeElement) && this.setSelected(),
this.defaultFirstOption && (this.filterable || this.remote) && this.filteredOptionsCount && this.checkDefaultFirstOption()
}
}
},
methods: {
scrollAction: function(t) {
var e = t.target;
e.scrollHeight - (e.scrollTop + e.clientHeight) <= 10 && this.watchScrollBottomAction()
},
sliceTagContent: function(t) {
return t.length > this.tagContentLimit ? g(t).call(t, 0, this.tagContentLimit) + "..." : t
},
initToggleSize: function() {
var t = this;
this.$watch((function() {
return !(!(this.visible && !1 !== this.emptyText && this.options.length > 0) || this.loading)
}
), (function(e) {
if (e)
try {
var n, i = (t.$refs.popper || {}).$el;
if (!i)
return;
var r = i.querySelector(".el-select-dropdown__wrap")
, a = t.$el
, o = r.getAttribute("style") || ""
, s = f(n = o.split(";")).call(n, (function(t) {
return t && -1 === c(t).call(t, "max-height")
}
)).join(";");
o !== s && r.setAttribute("style", s),
t.$nextTick((function() {
try {
var e = a.getBoundingClientRect()
, n = function(t) {
return t.offsetHeight || v(window.getComputedStyle(t, null).getPropertyValue("height") || 0)
}(r)
, i = (window.innerHeight || document.documentElement.clientHeight) - e.bottom;
if (n <= 125)
return;
if (e.top >= n || i >= n)
return;
r.style.maxHeight = "125px",
t.$nextTick((function() {
return t.broadcast("ElSelectDropdown", "updatePopper")
}
))
} catch (o) {}
}
))
} catch (l) {}
}
))
},
handleComposition: function(t) {
var e = this
, n = t.target.value;
if ("compositionend" === t.type)
this.isOnComposition = !1,
this.$nextTick((function(t) {
return e.handleQueryChange(n)
}
));
else {
var i = n[n.length - 1] || "";
this.isOnComposition = !Object(U.isKorean)(i)
}
},
handleQueryChange: function(t) {
var e = this;
this.previousQuery === t || this.isOnComposition || (null !== this.previousQuery || "function" != typeof this.filterMethod && "function" != typeof this.remoteMethod ? (this.previousQuery = t,
this.$nextTick((function() {
e.visible && e.broadcast("ElSelectDropdown", "updatePopper")
}
)),
this.hoverIndex = -1,
this.multiple && this.filterable && this.$nextTick((function() {
var t = 15 * e.$refs.input.value.length + 20;
e.inputLength = e.collapseTags ? Math.min(50, t) : t,
e.managePlaceholder(),
e.resetInputHeight()
}
)),
this.remote && "function" == typeof this.remoteMethod ? (this.hoverIndex = -1,
this.remoteMethod(t)) : "function" == typeof this.filterMethod ? (this.filterMethod(t),
this.broadcast("ElOptionGroup", "queryChange")) : (this.filteredOptionsCount = this.optionsCount,
this.broadcast("ElOption", "queryChange", t),
this.broadcast("ElOptionGroup", "queryChange")),
this.defaultFirstOption && (this.filterable || this.remote) && this.filteredOptionsCount && this.checkDefaultFirstOption()) : this.previousQuery = t)
},
scrollToOption: function(t) {
var e = Array.isArray(t) && t[0] ? t[0].$el : t.$el;
if (this.$refs.popper && e) {
var n = this.$refs.popper.$el.querySelector(".el-select-dropdown__wrap");
H()(n, e)
}
this.$refs.scrollbar && this.$refs.scrollbar.handleScroll()
},
handleMenuEnter: function() {
var t = this;
this.$nextTick((function() {
return t.scrollToOption(t.selected)
}
))
},
emitChange: function(t) {
Object(R.valueEquals)(this.value, t) || this.$emit("change", t)
},
getOption: function(t) {
for (var e = void 0, n = "[object object]" === Object.prototype.toString.call(t).toLowerCase(), i = "[object null]" === Object.prototype.toString.call(t).toLowerCase(), r = "[object undefined]" === Object.prototype.toString.call(t).toLowerCase(), a = this.cachedOptions.length - 1; a >= 0; a--) {
var o = this.cachedOptions[a];
if (n ? Object(R.getValueByPath)(o.value, this.valueKey) === Object(R.getValueByPath)(t, this.valueKey) : o.value === t) {
e = o;
break
}
}
if (e)
return e;
var s = {
value: t,
currentLabel: n || i || r ? "" : t
};
return this.multiple && (s.hitState = !1),
s
},
setSelected: function() {
var t = this;
if (!this.multiple) {
var e = this.getOption(this.value);
return e.created ? (this.createdLabel = e.currentLabel,
this.createdSelected = !0) : this.createdSelected = !1,
this.selectedLabel = e.currentLabel,
this.selected = e,
void (this.filterable && (this.query = this.selectedLabel))
}
var n, i = [];
Array.isArray(this.value) && h(n = this.value).call(n, (function(e) {
i.push(t.getOption(e))
}
));
this.selected = i,
this.$nextTick((function() {
t.resetInputHeight()
}
))
},
handleFocus: function(t) {
this.softFocus ? this.softFocus = !1 : ((this.automaticDropdown || this.filterable) && (this.visible = !0,
this.filterable && (this.menuVisibleOnFocus = !0)),
this.$emit("focus", t))
},
blur: function() {
this.visible = !1,
this.$refs.reference.blur()
},
handleBlur: function(t) {
var e = this;
setTimeout((function() {
e.isSilentBlur ? e.isSilentBlur = !1 : e.$emit("blur", t)
}
), 50),
this.softFocus = !1
},
handleClearClick: function(t) {
this.deleteSelected(t)
},
doDestroy: function() {
this.$refs.popper && this.$refs.popper.doDestroy()
},
handleClose: function() {
this.visible = !1
},
toggleLastOptionHitState: function(t) {
if (Array.isArray(this.selected)) {
var e = this.selected[this.selected.length - 1];
if (e)
return !0 === t || !1 === t ? (e.hitState = t,
t) : (e.hitState = !e.hitState,
e.hitState)
}
},
deletePrevTag: function(t) {
if (t.target.value.length <= 0 && !this.toggleLastOptionHitState()) {
var e, n = g(e = this.value).call(e);
n.pop(),
this.$emit("input", n),
this.emitChange(n)
}
},
managePlaceholder: function() {
"" !== this.currentPlaceholder && (this.currentPlaceholder = this.$refs.input.value ? "" : this.cachedPlaceHolder)
},
resetInputState: function(t) {
8 !== t.keyCode && this.toggleLastOptionHitState(!1),
this.inputLength = 15 * this.$refs.input.value.length + 20,
this.resetInputHeight()
},
resetInputHeight: function() {
var t = this;
this.collapseTags && !this.filterable || this.$nextTick((function() {
if (t.$refs.reference) {
var e = t.$refs.reference.$el.childNodes
, n = f([]).call(e, (function(t) {
return "INPUT" === t.tagName
}
))[0]
, i = t.$refs.tags
, r = t.initialInputHeight || 40;
n.style.height = 0 === t.selected.length ? r + "px" : Math.max(i ? i.clientHeight + (i.clientHeight > r ? 6 : 0) : 0, r) + "px",
t.visible && !1 !== t.emptyText && t.broadcast("ElSelectDropdown", "updatePopper")
}
}
))
},
resetHoverIndex: function() {
var t = this;
setTimeout((function() {
var e, n;
t.multiple ? t.selected.length > 0 ? t.hoverIndex = Math.min.apply(null, b(e = t.selected).call(e, (function(e) {
var n;
return c(n = t.options).call(n, e)
}
))) : t.hoverIndex = -1 : t.hoverIndex = c(n = t.options).call(n, t.selected)
}
), 300)
},
handleOptionSelect: function(t, e) {
var n = this;
if (this.multiple) {
var i, r = g(i = this.value || []).call(i), a = this.getValueIndex(r, t.value);
a > -1 ? d(r).call(r, a, 1) : (this.multipleLimit <= 0 || r.length < this.multipleLimit) && r.push(t.value),
this.$emit("input", r),
this.emitChange(r),
t.created && (this.query = "",
this.handleQueryChange(""),
this.inputLength = 20),
this.filterable && this.$refs.input.focus()
} else
this.$emit("input", t.value),
this.emitChange(t.value),
this.visible = !1;
this.isSilentBlur = e,
this.setSoftFocus(),
this.visible || this.$nextTick((function() {
n.scrollToOption(t)
}
))
},
setSoftFocus: function() {
this.softFocus = !0;
var t = this.$refs.input || this.$refs.reference;
t && t.focus()
},
getValueIndex: function() {
var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []
, e = arguments[1];
if ("[object object]" === Object.prototype.toString.call(e).toLowerCase()) {
var n = this.valueKey
, i = -1;
return u(t).call(t, (function(t, r) {
return Object(R.getValueByPath)(t, n) === Object(R.getValueByPath)(e, n) && (i = r,
!0)
}
)),
i
}
return c(t).call(t, e)
},
toggleMenu: function() {
this.selectDisabled || (this.menuVisibleOnFocus ? this.menuVisibleOnFocus = !1 : this.visible = !this.visible,
this.visible && (this.$refs.input || this.$refs.reference).focus())
},
selectOption: function() {
this.visible ? this.options[this.hoverIndex] && this.handleOptionSelect(this.options[this.hoverIndex]) : this.toggleMenu()
},
deleteSelected: function(t) {
t.stopPropagation();
var e = this.multiple ? [] : "";
this.$emit("input", e),
this.emitChange(e),
this.visible = !1,
this.$emit("clear")
},
deleteTag: function(t, e) {
var n, i = c(n = this.selected).call(n, e);
if (i > -1 && !this.selectDisabled) {
var r, a = g(r = this.value).call(r);
d(a).call(a, i, 1),
this.$emit("input", a),
this.emitChange(a),
this.$emit("remove-tag", e.value)
}
t.stopPropagation()
},
onInputChange: function() {
this.filterable && this.query !== this.selectedLabel && (this.query = this.selectedLabel,
this.handleQueryChange(this.query))
},
onOptionDestroy: function(t) {
var e;
t > -1 && (this.optionsCount--,
this.filteredOptionsCount--,
d(e = this.options).call(e, t, 1))
},
resetInputWidth: function() {
this.inputWidth = this.$refs.reference.$el.getBoundingClientRect().width
},
handleResize: function() {
this.resetInputWidth(),
this.multiple && this.resetInputHeight()
},
autoBlur: function() {
this.filterable && "hidden" === document.visibilityState && (this.$refs.reference || this.$refs.input).blur()
},
checkDefaultFirstOption: function() {
this.hoverIndex = -1;
for (var t = !1, e = this.options.length - 1; e >= 0; e--)
if (this.options[e].created) {
t = !0,
this.hoverIndex = e;
break
}
if (!t)
for (var n = 0; n !== this.options.length; ++n) {
var i = this.options[n];
if (this.query) {
if (!i.disabled && !i.groupDisabled && i.visible) {
this.hoverIndex = n;
break
}
} else if (i.itemSelected) {
this.hoverIndex = n;
break
}
}
},
getValueKey: function(t) {
return "[object object]" !== Object.prototype.toString.call(t.value).toLowerCase() ? t.value : Object(R.getValueByPath)(t.value, this.valueKey)
},
handleCheckAllChange: function(t) {
var e, n = t ? b(e = this.getCanSelectOptions()).call(e, (function(t) {
return t.value
}
)) : [];
this.$emit("input", n),
this.emitChange(n)
},
getCanSelectOptions: function() {
var t;
return f(t = this.options).call(t, (function(t) {
return !t.disabled && t.visible
}
))
}
},
created: function() {
var t = this;
this.cachedPlaceHolder = this.currentPlaceholder = this.propPlaceholder,
this.multiple && !Array.isArray(this.value) && this.$emit("input", []),
!this.multiple && Array.isArray(this.value) && this.$emit("input", ""),
this.debouncedOnInputChange = O()(this.debounce, (function() {
t.onInputChange()
}
)),
this.debouncedQueryChange = O()(this.debounce, (function(e) {
t.handleQueryChange(e.target.value)
}
)),
this.$on("handleOptionClick", this.handleOptionSelect),
this.$on("setSelected", this.setSelected)
},
mounted: function() {
var t = this;
"function" == typeof this.watchScrollBottomAction && this.$refs.scrollbar.wrap.addEventListener("scroll", this.scrollAction),
this.initToggleSize(),
this.multiple && Array.isArray(this.value) && this.value.length > 0 && (this.currentPlaceholder = ""),
Object(A.addResizeListener)(this.$el, this.handleResize),
document.addEventListener("visibilitychange", this.autoBlur);
var e = this.$refs.reference;
if (e && e.$el) {
var n = e.$el.querySelector("input");
this.initialInputHeight = n.getBoundingClientRect().height || {
medium: 36,
small: 32,
mini: 28,
s: 24
}[this.selectSize]
}
this.remote && this.multiple && this.resetInputHeight(),
this.$nextTick((function() {
e && e.$el && (t.inputWidth = e.$el.getBoundingClientRect().width)
}
)),
this.setSelected()
},
beforeDestroy: function() {
this.$el && this.handleResize && Object(A.removeResizeListener)(this.$el, this.handleResize),
"function" == typeof this.watchScrollBottomAction && this.$refs.scrollbar.wrap.removeEventListener("scroll", this.scrollAction),
document.removeEventListener("visibilitychange", this.autoBlur)
}
}
, V = q
, W = Object(E.a)(V, i, [], !1, null, null, null).exports;
W.install = function(t) {
t.component(W.name, W)
}
;
e["default"] = W
},
7: function(t, e) {
t.exports = n(2234)
}
})
},
21334: function(t, e, n) {
var i = n(96110)
, r = n(99221)
, a = n(87089)
, o = n(34076)
, s = n(75533)
, l = n(86990);
t.exports = function(t) {
var e = {};
function n(i) {
if (e[i])
return e[i].exports;
var r = e[i] = {
i: i,
l: !1,
exports: {}
};
return t[i].call(r.exports, r, r.exports, n),
r.l = !0,
r.exports
}
return n.m = t,
n.c = e,
n.d = function(t, e, i) {
n.o(t, e) || r(t, e, {
enumerable: !0,
get: i
})
}
,
n.r = function(t) {
void 0 !== a && o && r(t, o, {
value: "Module"
}),
r(t, "__esModule", {
value: !0
})
}
,
n.t = function(t, e) {
if (1 & e && (t = n(t)),
8 & e)
return t;
if (4 & e && "object" === i(t) && t && t.__esModule)
return t;
var a = Object.create(null);
if (n.r(a),
r(a, "default", {
enumerable: !0,
value: t
}),
2 & e && "string" != typeof t)
for (var o in t)
n.d(a, o, function(e) {
return t[e]
}
.bind(null, o));
return a
}
,
n.n = function(t) {
var e = t && t.__esModule ? function() {
return t["default"]
}
: function() {
return t
}
;
return n.d(e, "a", e),
e
}
,
n.o = function(t, e) {
return Object.prototype.hasOwnProperty.call(t, e)
}
,
n.p = "/dist/",
n(n.s = 131)
}({
0: function(t, e, n) {
"use strict";
function i(t, e, n, i, r, a, o, l) {
var c, u = "function" == typeof t ? t.options : t;
if (e && (u.render = e,
u.staticRenderFns = n,
u._compiled = !0),
i && (u.functional = !0),
a && (u._scopeId = "data-v-" + a),
o ? (c = function(t) {
(t = t || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) || "undefined" == typeof __VUE_SSR_CONTEXT__ || (t = __VUE_SSR_CONTEXT__),
r && r.call(this, t),
t && t._registeredComponents && t._registeredComponents.add(o)
}
,
u._ssrRegister = c) : r && (c = l ? function() {
r.call(this, (u.functional ? this.parent : this).$root.$options.shadowRoot)
}
: r),
c)
if (u.functional) {
u._injectStyles = c;
var d = u.render;
u.render = function(t, e) {
return c.call(e),
d(t, e)
}
} else {
var p, f = u.beforeCreate;
u.beforeCreate = f ? s(p = []).call(p, f, c) : [c]
}
return {
exports: t,
options: u
}
}
n.d(e, "a", (function() {
return i
}
))
},
131: function(t, e, n) {
"use strict";
n.r(e);
var i = {
name: "ElTag",
props: {
text: String,
closable: Boolean,
type: String,
hit: Boolean,
disableTransitions: Boolean,
color: String,
size: String,
effect: {
type: String,
"default": "light",
validator: function(t) {
var e;
return -1 !== l(e = ["dark", "light", "plain"]).call(e, t)
}
}
},
methods: {
handleClose: function(t) {
t.stopPropagation(),
this.$emit("close", t)
},
handleClick: function(t) {
this.$emit("click", t)
}
},
computed: {
tagSize: function() {
return this.size || (this.$ELEMENT || {}).size
}
},
render: function(t) {
var e = this.type
, n = this.tagSize
, i = this.hit
, r = this.effect
, a = t("span", {
"class": ["el-tag", e ? "el-tag--" + e : "", n ? "el-tag--" + n : "", r ? "el-tag--" + r : "", i && "is-hit"],
style: {
backgroundColor: this.color
},
on: {
click: this.handleClick
}
}, [this.$slots["default"], this.closable && t("i", {
"class": "el-tag__close el-icon-close",
on: {
click: this.handleClose
}
})]);
return this.disableTransitions ? a : t("transition", {
attrs: {
name: "el-zoom-in-center"
}
}, [a])
}
}
, r = n(0)
, a = Object(r.a)(i, undefined, undefined, !1, null, null, null).exports;
a.install = function(t) {
t.component(a.name, a)
}
;
e["default"] = a
}
})
},
51027: function(t, e, n) {
var i = n(96110)
, r = n(99221)
, a = n(87089)
, o = n(34076);
t.exports = function(t) {
var e = {};
function n(i) {
if (e[i])
return e[i].exports;
var r = e[i] = {
i: i,
l: !1,
exports: {}
};
return t[i].call(r.exports, r, r.exports, n),
r.l = !0,
r.exports
}
return n.m = t,
n.c = e,
n.d = function(t, e, i) {
n.o(t, e) || r(t, e, {
enumerable: !0,
get: i
})
}
,
n.r = function(t) {
void 0 !== a && o && r(t, o, {
value: "Module"
}),
r(t, "__esModule", {
value: !0
})
}
,
n.t = function(t, e) {
if (1 & e && (t = n(t)),
8 & e)
return t;
if (4 & e && "object" === i(t) && t && t.__esModule)
return t;
var a = Object.create(null);
if (n.r(a),
r(a, "default", {
enumerable: !0,
value: t
}),
2 & e && "string" != typeof t)
for (var o in t)
n.d(a, o, function(e) {
return t[e]
}
.bind(null, o));
return a
}
,
n.n = function(t) {
var e = t && t.__esModule ? function() {
return t["default"]
}
: function() {
return t
}
;
return n.d(e, "a", e),
e
}
,
n.o = function(t, e) {
return Object.prototype.hasOwnProperty.call(t, e)
}
,
n.p = "/dist/",
n(n.s = 136)
}({
136: function(t, e, n) {
"use strict";
n.r(e);
var i = n(6)
, r = n.n(i)
, a = n(19)
, o = n.n(a)
, s = n(2)
, l = n(3)
, c = n(5)
, u = n.n(c)
, d = {
name: "ElTooltip",
mixins: [r.a],
props: {
openDelay: {
type: Number,
"default": 0
},
disabled: Boolean,
manual: Boolean,
effect: {
type: String,
"default": "dark"
},
arrowOffset: {
type: Number,
"default": 0
},
popperClass: String,
content: String,
visibleArrow: {
"default": !0
},
transition: {
type: String,
"default": "el-fade-in-linear"
},
popperOptions: {
"default": function() {
return {
boundariesPadding: 10,
gpuAcceleration: !1
}
}
},
enterable: {
type: Boolean,
"default": !0
},
hideAfter: {
type: Number,
"default": 0
},
tabindex: {
type: Number,
"default": 0
}
},
data: function() {
return {
tooltipId: "el-tooltip-" + Object(l.generateId)(),
timeoutPending: null,
focusing: !1
}
},
beforeCreate: function() {
var t = this;
this.$isServer || (this.popperVM = new u.a({
data: {
node: ""
},
render: function(t) {
return this.node
}
}).$mount(),
this.debounceClose = o()(200, (function() {
return t.handleClosePopper()
}
)))
},
render: function(t) {
var e = this;
this.popperVM && (this.popperVM.node = t("transition", {
attrs: {
name: this.transition
},
on: {
afterLeave: this.doDestroy
}
}, [t("div", {
on: {
mouseleave: function() {
e.setExpectedState(!1),
e.debounceClose()
},
mouseenter: function() {
e.setExpectedState(!0)
}
},
ref: "popper",
attrs: {
role: "tooltip",
id: this.tooltipId,
"aria-hidden": this.disabled || !this.showPopper ? "true" : "false"
},
directives: [{
name: "show",
value: !this.disabled && this.showPopper
}],
"class": ["el-tooltip__popper", "is-" + this.effect, this.popperClass]
}, [this.$slots.content || this.content])]));
var n = this.getFirstElement();
if (!n)
return null;
var i = n.data = n.data || {};
return i.staticClass = this.addTooltipClass(i.staticClass),
n
},
mounted: function() {
var t = this;
this.referenceElm = this.$el,
1 === this.$el.nodeType && (this.$el.setAttribute("aria-describedby", this.tooltipId),
this.$el.setAttribute("tabindex", this.tabindex),
Object(s.on)(this.referenceElm, "mouseenter", this.show),
Object(s.on)(this.referenceElm, "mouseleave", this.hide),
Object(s.on)(this.referenceElm, "focus", (function() {
if (t.$slots["default"] && t.$slots["default"].length) {
var e = t.$slots["default"][0].componentInstance;
e && e.focus ? e.focus() : t.handleFocus()
} else
t.handleFocus()
}
)),
Object(s.on)(this.referenceElm, "blur", this.handleBlur),
Object(s.on)(this.referenceElm, "click", this.removeFocusing)),
this.value && this.popperVM && this.popperVM.$nextTick((function() {
t.value && t.updatePopper()
}
))
},
watch: {
focusing: function(t) {
t ? Object(s.addClass)(this.referenceElm, "focusing") : Object(s.removeClass)(this.referenceElm, "focusing")
}
},
methods: {
show: function() {
this.setExpectedState(!0),
this.handleShowPopper()
},
hide: function() {
this.setExpectedState(!1),
this.debounceClose()
},
handleFocus: function() {
this.focusing = !0,
this.show()
},
handleBlur: function() {
this.focusing = !1,
this.hide(),
this.referenceElm.blur()
},
removeFocusing: function() {
this.focusing = !1
},
addTooltipClass: function(t) {
return t ? "el-tooltip " + t.replace("el-tooltip", "") : "el-tooltip"
},
handleShowPopper: function() {
var t = this;
this.expectedState && !this.manual && (clearTimeout(this.timeout),
this.timeout = setTimeout((function() {
t.showPopper = !0
}
), this.openDelay),
this.hideAfter > 0 && (this.timeoutPending = setTimeout((function() {
t.showPopper = !1
}
), this.hideAfter)))
},
handleClosePopper: function() {
this.enterable && this.expectedState || this.manual || (clearTimeout(this.timeout),
this.timeoutPending && clearTimeout(this.timeoutPending),
this.showPopper = !1,
this.disabled && this.doDestroy())
},
setExpectedState: function(t) {
!1 === t && clearTimeout(this.timeoutPending),
this.expectedState = t
},
getFirstElement: function() {
var t = this.$slots["default"];
if (!Array.isArray(t))
return null;
for (var e = null, n = 0; n < t.length; n++)
t[n] && t[n].tag && (e = t[n]);
return e
}
},
beforeDestroy: function() {
this.popperVM && this.popperVM.$destroy()
},
destroyed: function() {
var t = this.referenceElm;
1 === t.nodeType && (Object(s.off)(t, "mouseenter", this.show),
Object(s.off)(t, "mouseleave", this.hide),
Object(s.off)(t, "focus", this.handleFocus),
Object(s.off)(t, "blur", this.handleBlur),
Object(s.off)(t, "click", this.removeFocusing))
},
install: function(t) {
t.component(d.name, d)
}
};
e["default"] = d
},
19: function(t, e) {
t.exports = n(11864)
},
2: function(t, e) {
t.exports = n(75682)
},
3: function(t, e) {
t.exports = n(72333)
},
5: function(t, e) {
t.exports = n(10055)
},
6: function(t, e) {
t.exports = n(72525)
}
})
},
29757: function(t, e, n) {
"use strict";
var i = n(99734)
, r = n(85303);
e.__esModule = !0;
var a, o = n(10055), s = (a = o) && a.__esModule ? a : {
"default": a
}, l = n(75682);
var c = []
, u = "@@clickoutsideContext"
, d = void 0
, p = 0;
function f(t) {
i(c).call(c, (function(e) {
return e[u].documentHandler(t, d)
}
))
}
function h(t, e, n) {
return function() {
var i = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}
, r = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
!(n && n.context && i.target && r.target) || t.contains(i.target) || t.contains(r.target) || t === i.target || n.context.popperElm && (n.context.popperElm.contains(i.target) || n.context.popperElm.contains(r.target)) || (e.expression && t[u].methodName && n.context[t[u].methodName] ? n.context[t[u].methodName]() : t[u].bindingFn && t[u].bindingFn())
}
}
!s["default"].prototype.$isServer && (0,
l.on)(document, "mousedown", (function(t) {
d = t,
!s["default"].prototype.$isServer && (0,
l.on)(document, "mousemove", f)
}
)),
!s["default"].prototype.$isServer && (0,
l.on)(document, "mouseup", (function(t) {
document.onmousemove || ((0,
l.off)(document, "mousemove", f),
f(t))
}
)),
e["default"] = {
bind: function(t, e, n) {
c.push(t);
var i = p++;
t[u] = {
id: i,
documentHandler: h(t, e, n),
methodName: e.expression,
bindingFn: e.value
}
},
update: function(t, e, n) {
t[u].documentHandler = h(t, e, n),
t[u].methodName = e.expression,
t[u].bindingFn = e.value
},
unbind: function(t) {
for (var e = c.length, n = 0; n < e; n++)
if (c[n][u].id === t[u].id) {
r(c).call(c, n, 1);
break
}
delete t[u]
}
}
},
69708: function(t, e, n) {
"use strict";
var i, r, a = n(33864), o = n(96110), s = n(87089), l = n(65700), c = n(75441), u = n(86990), d = n(99734), p = n(91041), f = n(17986), h = n(97806), m = n(13349), g = n(37175), v = n(99221), b = n(13611);
"function" == typeof s && o(l);
undefined,
i = function() {
var t = window
, e = {
placement: "bottom",
gpuAcceleration: !0,
offset: 0,
boundariesElement: "viewport",
boundariesPadding: 5,
preventOverflowOrder: ["left", "right", "top", "bottom"],
flipBehavior: "flip",
arrowElement: "[x-arrow]",
arrowOffset: 0,
modifiers: ["shift", "offset", "preventOverflow", "keepTogether", "arrow", "flip", "applyStyle"],
modifiersIgnored: [],
forceAbsolute: !1
};
function n(t, n, i) {
var r;
this._reference = t.jquery ? t[0] : t,
this.state = {};
var o = null == n
, s = n && "[object Object]" === Object.prototype.toString.call(n);
return this._popper = o || s ? this.parse(s ? n : {}) : n.jquery ? n[0] : n,
this._options = a({}, e, i),
this._options.modifiers = c(r = this._options.modifiers).call(r, function(t) {
var e;
if (-1 === u(e = this._options.modifiersIgnored).call(e, t))
return "applyStyle" === t && this._popper.setAttribute("x-placement", this._options.placement),
this.modifiers[t] || t
}
.bind(this)),
this.state.position = this._getPosition(this._popper, this._reference),
x(this._popper, {
position: this.state.position,
top: 0
}),
this.update(),
this._setupEventListeners(),
this
}
function i(e) {
var n = e.style.display
, i = e.style.visibility;
e.style.display = "block",
e.style.visibility = "hidden",
e.offsetWidth;
var r = t.getComputedStyle(e)
, a = h(r.marginTop) + h(r.marginBottom)
, o = h(r.marginLeft) + h(r.marginRight)
, s = {
width: e.offsetWidth + o,
height: e.offsetHeight + a
};
return e.style.display = n,
e.style.visibility = i,
s
}
function r(t) {
var e = {
left: "right",
right: "left",
bottom: "top",
top: "bottom"
};
return t.replace(/left|right|bottom|top/g, (function(t) {
return e[t]
}
))
}
function o(t) {
var e = a({}, t);
return e.right = e.left + e.width,
e.bottom = e.top + e.height,
e
}
function s(t, e) {
var n, i = 0;
for (n in t) {
if (t[n] === e)
return i;
i++
}
return null
}
function l(e, n) {
return t.getComputedStyle(e, null)[n]
}
function y(e) {
var n = e.offsetParent;
return n !== t.document.body && n ? n : t.document.documentElement
}
function w(e) {
var n, i, r, a = e.parentNode;
return a ? a === t.document ? t.document.body.scrollTop || t.document.body.scrollLeft ? t.document.body : t.document.documentElement : -1 !== u(n = ["scroll", "auto"]).call(n, l(a, "overflow")) || -1 !== u(i = ["scroll", "auto"]).call(i, l(a, "overflow-x")) || -1 !== u(r = ["scroll", "auto"]).call(r, l(a, "overflow-y")) ? a : w(e.parentNode) : e
}
function _(e) {
return e !== t.document.body && ("fixed" === l(e, "position") || (e.parentNode ? _(e.parentNode) : e))
}
function x(t, e) {
var n;
function i(t) {
return "" !== t && !isNaN(h(t)) && isFinite(t)
}
d(n = m(e)).call(n, (function(n) {
var r, a = "";
-1 !== u(r = ["width", "height", "top", "right", "bottom", "left"]).call(r, n) && i(e[n]) && (a = "px"),
t.style[n] = e[n] + a
}
))
}
function C(t) {
return t && "[object Function]" === {}.toString.call(t)
}
function k(t) {
var e = {
width: t.offsetWidth,
height: t.offsetHeight,
left: t.offsetLeft,
top: t.offsetTop
};
return e.right = e.left + e.width,
e.bottom = e.top + e.height,
e
}
function S(t) {
var e, n = t.getBoundingClientRect(), i = -1 != u(e = navigator.userAgent).call(e, "MSIE") && "HTML" === t.tagName ? -t.scrollTop : n.top;
return {
left: n.left,
top: i,
right: n.right,
bottom: n.bottom,
width: n.right - n.left,
height: n.bottom - i
}
}
function T(t, e, n) {
var i = S(t)
, r = S(e);
if (n) {
var a = w(e);
r.top += a.scrollTop,
r.bottom += a.scrollTop,
r.left += a.scrollLeft,
r.right += a.scrollLeft
}
return {
top: i.top - r.top,
left: i.left - r.left,
bottom: i.top - r.top + i.height,
right: i.left - r.left + i.width,
width: i.width,
height: i.height
}
}
function E(e) {
for (var n = ["", "ms", "webkit", "moz", "o"], i = 0; i < n.length; i++) {
var r = n[i] ? n[i] + e.charAt(0).toUpperCase() + p(e).call(e, 1) : e;
if ("undefined" != typeof t.document.body.style[r])
return r
}
return null
}
return n.prototype.destroy = function() {
return this._popper.removeAttribute("x-placement"),
this._popper.style.left = "",
this._popper.style.position = "",
this._popper.style.top = "",
this._popper.style[E("transform")] = "",
this._removeEventListeners(),
this._options.removeOnDestroy && this._popper.remove(),
this
}
,
n.prototype.update = function() {
var t = {
instance: this,
styles: {}
};
t.placement = this._options.placement,
t._originalPlacement = this._options.placement,
t.offsets = this._getOffsets(this._popper, this._reference, t.placement),
t.boundaries = this._getBoundaries(t, this._options.boundariesPadding, this._options.boundariesElement),
t = this.runModifiers(t, this._options.modifiers),
"function" == typeof this.state.updateCallback && this.state.updateCallback(t)
}
,
n.prototype.onCreate = function(t) {
return t(this),
this
}
,
n.prototype.onUpdate = function(t) {
return this.state.updateCallback = t,
this
}
,
n.prototype.parse = function(e) {
var n = {
tagName: "div",
classNames: ["popper"],
attributes: [],
parent: t.document.body,
content: "",
contentType: "text",
arrowTagName: "div",
arrowClassNames: ["popper__arrow"],
arrowAttributes: ["x-arrow"]
};
e = a({}, n, e);
var i = t.document
, r = i.createElement(e.tagName);
if (l(r, e.classNames),
c(r, e.attributes),
"node" === e.contentType ? r.appendChild(e.content.jquery ? e.content[0] : e.content) : "html" === e.contentType ? r.innerHTML = e.content : r.textContent = e.content,
e.arrowTagName) {
var o = i.createElement(e.arrowTagName);
l(o, e.arrowClassNames),
c(o, e.arrowAttributes),
r.appendChild(o)
}
var s = e.parent.jquery ? e.parent[0] : e.parent;
if ("string" == typeof s) {
if ((s = i.querySelectorAll(e.parent)).length > 1 && console.warn("WARNING: the given `parent` query(" + e.parent + ") matched more than one element, the first one will be used"),
0 === s.length)
throw "ERROR: the given `parent` doesn't exists!";
s = s[0]
}
return s.length > 1 && s instanceof Element == 0 && (console.warn("WARNING: you have passed as parent a list of elements, the first one will be used"),
s = s[0]),
s.appendChild(r),
r;
function l(t, e) {
d(e).call(e, (function(e) {
t.classList.add(e)
}
))
}
function c(t, e) {
d(e).call(e, (function(e) {
t.setAttribute(e.split(":")[0], e.split(":")[1] || "")
}
))
}
}
,
n.prototype._getPosition = function(t, e) {
var n = y(e);
return this._options.forceAbsolute ? "absolute" : _(e, n) ? "fixed" : "absolute"
}
,
n.prototype._getOffsets = function(t, e, n) {
var r;
n = n.split("-")[0];
var a = {};
a.position = this.state.position;
var o = "fixed" === a.position
, s = T(e, y(t), o)
, l = i(t);
return -1 !== u(r = ["right", "left"]).call(r, n) ? (a.top = s.top + s.height / 2 - l.height / 2,
a.left = "left" === n ? s.left - l.width : s.right) : (a.left = s.left + s.width / 2 - l.width / 2,
a.top = "top" === n ? s.top - l.height : s.bottom),
a.width = l.width,
a.height = l.height,
{
popper: a,
reference: s
}
}
,
n.prototype._setupEventListeners = function() {
if (this.state.updateBound = this.update.bind(this),
t.addEventListener("resize", this.state.updateBound),
"window" !== this._options.boundariesElement) {
var e = w(this._reference);
e !== t.document.body && e !== t.document.documentElement || (e = t),
e.addEventListener("scroll", this.state.updateBound),
this.state.scrollTarget = e
}
}
,
n.prototype._removeEventListeners = function() {
t.removeEventListener("resize", this.state.updateBound),
"window" !== this._options.boundariesElement && this.state.scrollTarget && (this.state.scrollTarget.removeEventListener("scroll", this.state.updateBound),
this.state.scrollTarget = null),
this.state.updateBound = null
}
,
n.prototype._getBoundaries = function(e, n, i) {
var r, a = {};
if ("window" === i) {
var o = t.document.body
, s = t.document.documentElement;
r = Math.max(o.scrollHeight, o.offsetHeight, s.clientHeight, s.scrollHeight, s.offsetHeight),
a = {
top: 0,
right: Math.max(o.scrollWidth, o.offsetWidth, s.clientWidth, s.scrollWidth, s.offsetWidth),
bottom: r,
left: 0
}
} else if ("viewport" === i) {
var l = y(this._popper)
, c = w(this._popper)
, u = k(l)
, d = function(t) {
return t == document.body ? Math.max(document.documentElement.scrollTop, document.body.scrollTop) : t.scrollTop
}
, p = function(t) {
return t == document.body ? Math.max(document.documentElement.scrollLeft, document.body.scrollLeft) : t.scrollLeft
}
, f = "fixed" === e.offsets.popper.position ? 0 : d(c)
, h = "fixed" === e.offsets.popper.position ? 0 : p(c);
a = {
top: 0 - (u.top - f),
right: t.document.documentElement.clientWidth - (u.left - h),
bottom: t.document.documentElement.clientHeight - (u.top - f),
left: 0 - (u.left - h)
}
} else
a = y(this._popper) === i ? {
top: 0,
left: 0,
right: i.clientWidth,
bottom: i.clientHeight
} : k(i);
return a.left += n,
a.right -= n,
a.top = a.top + n,
a.bottom = a.bottom - n,
a
}
,
n.prototype.runModifiers = function(t, e, n) {
var i, r = p(e).call(e);
return n !== undefined && (r = p(i = this._options.modifiers).call(i, 0, s(this._options.modifiers, n))),
d(r).call(r, function(e) {
C(e) && (t = e.call(this, t))
}
.bind(this)),
t
}
,
n.prototype.isModifierRequired = function(t, e) {
var n, i, r = s(this._options.modifiers, t);
return !!f(n = p(i = this._options.modifiers).call(i, 0, r)).call(n, (function(t) {
return t === e
}
)).length
}
,
n.prototype.modifiers = {},
n.prototype.modifiers.applyStyle = function(t) {
var e, n = {
position: t.offsets.popper.position
}, i = Math.round(t.offsets.popper.left), r = Math.round(t.offsets.popper.top);
return this._options.gpuAcceleration && (e = E("transform")) ? (n[e] = "translate3d(" + i + "px, " + r + "px, 0)",
n.top = 0,
n.left = 0) : (n.left = i,
n.top = r),
a(n, t.styles),
x(this._popper, n),
this._popper.setAttribute("x-placement", t.placement),
this.isModifierRequired(this.modifiers.applyStyle, this.modifiers.arrow) && t.offsets.arrow && x(t.arrowElement, t.offsets.arrow),
t
}
,
n.prototype.modifiers.shift = function(t) {
var e = t.placement
, n = e.split("-")[0]
, i = e.split("-")[1];
if (i) {
var r, s = t.offsets.reference, l = o(t.offsets.popper), c = {
y: {
start: {
top: s.top
},
end: {
top: s.top + s.height - l.height
}
},
x: {
start: {
left: s.left
},
end: {
left: s.left + s.width - l.width
}
}
}, d = -1 !== u(r = ["bottom", "top"]).call(r, n) ? "x" : "y";
t.offsets.popper = a(l, c[d][i])
}
return t
}
,
n.prototype.modifiers.preventOverflow = function(t) {
var e = this._options.preventOverflowOrder
, n = o(t.offsets.popper)
, i = {
left: function() {
var e = n.left;
return n.left < t.boundaries.left && (e = Math.max(n.left, t.boundaries.left)),
{
left: e
}
},
right: function() {
var e = n.left;
return n.right > t.boundaries.right && (e = Math.min(n.left, t.boundaries.right - n.width)),
{
left: e
}
},
top: function() {
var e = n.top;
return n.top < t.boundaries.top && (e = Math.max(n.top, t.boundaries.top)),
{
top: e
}
},
bottom: function() {
var e = n.top;
return n.bottom > t.boundaries.bottom && (e = Math.min(n.top, t.boundaries.bottom - n.height)),
{
top: e
}
}
};
return d(e).call(e, (function(e) {
t.offsets.popper = a(n, i[e]())
}
)),
t
}
,
n.prototype.modifiers.keepTogether = function(t) {
var e = o(t.offsets.popper)
, n = t.offsets.reference
, i = Math.floor;
return e.right < i(n.left) && (t.offsets.popper.left = i(n.left) - e.width),
e.left > i(n.right) && (t.offsets.popper.left = i(n.right)),
e.bottom < i(n.top) && (t.offsets.popper.top = i(n.top) - e.height),
e.top > i(n.bottom) && (t.offsets.popper.top = i(n.bottom)),
t
}
,
n.prototype.modifiers.flip = function(t) {
if (!this.isModifierRequired(this.modifiers.flip, this.modifiers.preventOverflow))
return console.warn("WARNING: preventOverflow modifier is required by flip modifier in order to work, be sure to include it before flip!"),
t;
if (t.flipped && t.placement === t._originalPlacement)
return t;
var e = t.placement.split("-")[0]
, n = r(e)
, i = t.placement.split("-")[1] || ""
, a = [];
return a = "flip" === this._options.flipBehavior ? [e, n] : this._options.flipBehavior,
d(a).call(a, function(s, l) {
var c;
if (e === s && a.length !== l + 1) {
e = t.placement.split("-")[0],
n = r(e);
var d = o(t.offsets.popper)
, p = -1 !== u(c = ["right", "bottom"]).call(c, e);
(p && Math.floor(t.offsets.reference[e]) > Math.floor(d[n]) || !p && Math.floor(t.offsets.reference[e]) < Math.floor(d[n])) && (t.flipped = !0,
t.placement = a[l + 1],
i && (t.placement += "-" + i),
t.offsets.popper = this._getOffsets(this._popper, this._reference, t.placement).popper,
t = this.runModifiers(t, this._options.modifiers, this._flip))
}
}
.bind(this)),
t
}
,
n.prototype.modifiers.offset = function(t) {
var e, n, i, r, a = this._options.offset, o = t.offsets.popper;
return -1 !== u(e = t.placement).call(e, "left") ? o.top -= a : -1 !== u(n = t.placement).call(n, "right") ? o.top += a : -1 !== u(i = t.placement).call(i, "top") ? o.left -= a : -1 !== u(r = t.placement).call(r, "bottom") && (o.left += a),
t
}
,
n.prototype.modifiers.arrow = function(t) {
var e, n = this._options.arrowElement, r = this._options.arrowOffset;
if ("string" == typeof n && (n = this._popper.querySelector(n)),
!n)
return t;
if (!this._popper.contains(n))
return console.warn("WARNING: `arrowElement` must be child of its popper element!"),
t;
if (!this.isModifierRequired(this.modifiers.arrow, this.modifiers.keepTogether))
return console.warn("WARNING: keepTogether modifier is required by arrow modifier in order to work, be sure to include it before arrow!"),
t;
var a = {}
, s = t.placement.split("-")[0]
, l = o(t.offsets.popper)
, c = t.offsets.reference
, d = -1 !== u(e = ["left", "right"]).call(e, s)
, p = d ? "height" : "width"
, f = d ? "top" : "left"
, h = d ? "left" : "top"
, m = d ? "bottom" : "right"
, g = i(n)[p];
c[m] - g < l[f] && (t.offsets.popper[f] -= l[f] - (c[m] - g)),
c[f] + g > l[m] && (t.offsets.popper[f] += c[f] + g - l[m]);
var v = c[f] + (r || c[p] / 2 - g / 2) - l[f];
return v = Math.max(Math.min(l[p] - g - 8, v), 8),
a[f] = v,
a[h] = "",
t.offsets.arrow = a,
t.arrowElement = n,
t
}
,
g || v(Object, "assign", {
enumerable: !1,
configurable: !0,
writable: !0,
value: function(t) {
if (t === undefined || null === t)
throw new TypeError("Cannot convert first argument to object");
for (var e = Object(t), n = 1; n < arguments.length; n++) {
var i = arguments[n];
if (i !== undefined && null !== i) {
i = Object(i);
for (var r = m(i), a = 0, o = r.length; a < o; a++) {
var s = r[a]
, l = b(i, s);
l !== undefined && l.enumerable && (e[s] = i[s])
}
}
}
return e
}
}),
n
}
,
(r = "function" == typeof i ? i.call(e, n, e, t) : i) === undefined || (t.exports = r)
},
50691: function(t, e, n) {
"use strict";
var i = n(4415)
, r = n(99734)
, a = n(85303)
, o = n(86990);
e.__esModule = !0,
e.removeResizeListener = e.addResizeListener = undefined;
var s, l = n(71262), c = (s = l) && s.__esModule ? s : {
"default": s
};
var u = "undefined" == typeof window
, d = function(t) {
var e = t
, n = Array.isArray(e)
, a = 0;
for (e = n ? e : i(e); ; ) {
var o;
if (n) {
if (a >= e.length)
break;
o = e[a++]
} else {
if ((a = e.next()).done)
break;
o = a.value
}
var s = o.target.__resizeListeners__ || [];
s.length && r(s).call(s, (function(t) {
t()
}
))
}
};
e.addResizeListener = function(t, e) {
u || (t.__resizeListeners__ || (t.__resizeListeners__ = [],
t.__ro__ = new c["default"](d),
t.__ro__.observe(t)),
t.__resizeListeners__.push(e))
}
,
e.removeResizeListener = function(t, e) {
var n, i;
t && t.__resizeListeners__ && (a(n = t.__resizeListeners__).call(n, o(i = t.__resizeListeners__).call(i, e), 1),
t.__resizeListeners__.length || t.__ro__.disconnect())
}
},
89893: function(t, e, n) {
"use strict";
var i = n(53706);
e.__esModule = !0,
e["default"] = function(t, e) {
if (o["default"].prototype.$isServer)
return;
if (!e)
return void (t.scrollTop = 0);
var n = []
, r = e.offsetParent;
for (; r && t !== r && t.contains(r); )
n.push(r),
r = r.offsetParent;
var a = e.offsetTop + i(n).call(n, (function(t, e) {
return t + e.offsetTop
}
), 0)
, s = a + e.offsetHeight
, l = t.scrollTop
, c = l + t.clientHeight;
a < l ? t.scrollTop = a : s > c && (t.scrollTop = s - t.clientHeight)
}
;
var r, a = n(10055), o = (r = a) && r.__esModule ? r : {
"default": r
}
},
72525: function(t, e, n) {
"use strict";
var i = n(86990);
e.__esModule = !0;
var r, a = n(10055), o = (r = a) && r.__esModule ? r : {
"default": r
}, s = n(77997);
var l = o["default"].prototype.$isServer ? function() {}
: n(69708)
, c = function(t) {
return t.stopPropagation()
};
e["default"] = {
props: {
transformOrigin: {
type: [Boolean, String],
"default": !0
},
placement: {
type: String,
"default": "bottom"
},
boundariesPadding: {
type: Number,
"default": 5
},
reference: {},
popper: {},
offset: {
"default": 0
},
value: Boolean,
visibleArrow: Boolean,
arrowOffset: {
type: Number,
"default": 35
},
appendToBody: {
type: Boolean,
"default": !0
},
popperOptions: {
type: Object,
"default": function() {
return {
gpuAcceleration: !1
}
}
}
},
data: function() {
return {
showPopper: !1,
currentPlacement: ""
}
},
watch: {
value: {
immediate: !0,
handler: function(t) {
this.showPopper = t,
this.$emit("input", t)
}
},
showPopper: function(t) {
this.disabled || (t ? this.updatePopper() : this.destroyPopper(),
this.$emit("input", t))
}
},
methods: {
createPopper: function() {
var t = this;
if (!this.$isServer && (this.currentPlacement = this.currentPlacement || this.placement,
/^(top|bottom|left|right)(-start|-end)?$/g.test(this.currentPlacement))) {
var e = this.popperOptions
, n = this.popperElm = this.popperElm || this.popper || this.$refs.popper
, i = this.referenceElm = this.referenceElm || this.reference || this.$refs.reference;
!i && this.$slots.reference && this.$slots.reference[0] && (i = this.referenceElm = this.$slots.reference[0].elm),
n && i && (this.visibleArrow && this.appendArrow(n),
this.appendToBody && document.body.appendChild(this.popperElm),
this.popperJS && this.popperJS.destroy && this.popperJS.destroy(),
e.placement = this.currentPlacement,
e.offset = this.offset,
e.arrowOffset = this.arrowOffset,
this.popperJS = new l(i,n,e),
this.popperJS.onCreate((function(e) {
t.$emit("created", t),
t.resetTransformOrigin(),
t.$nextTick(t.updatePopper)
}
)),
"function" == typeof e.onUpdate && this.popperJS.onUpdate(e.onUpdate),
this.popperJS._popper.style.zIndex = s.PopupManager.nextZIndex(),
this.popperElm.addEventListener("click", c))
}
},
updatePopper: function() {
var t = this.popperJS;
t ? (t.update(),
t._popper && (t._popper.style.zIndex = s.PopupManager.nextZIndex())) : this.createPopper()
},
doDestroy: function(t) {
!this.popperJS || this.showPopper && !t || (this.popperJS.destroy(),
this.popperJS = null)
},
destroyPopper: function() {
this.popperJS && this.resetTransformOrigin()
},
resetTransformOrigin: function() {
var t;
if (this.transformOrigin) {
var e = this.popperJS._popper.getAttribute("x-placement").split("-")[0]
, n = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
}[e];
this.popperJS._popper.style.transformOrigin = "string" == typeof this.transformOrigin ? this.transformOrigin : i(t = ["top", "bottom"]).call(t, e) > -1 ? "center " + n : n + " center"
}
},
appendArrow: function(t) {
var e = void 0;
if (!this.appended) {
for (var n in this.appended = !0,
t.attributes)
if (/^_v-/.test(t.attributes[n].name)) {
e = t.attributes[n].name;
break
}
var i = document.createElement("div");
e && i.setAttribute(e, ""),
i.setAttribute("x-arrow", ""),
i.className = "popper__arrow",
t.appendChild(i)
}
}
},
beforeDestroy: function() {
this.doDestroy(!0),
this.popperElm && this.popperElm.parentNode === document.body && (this.popperElm.removeEventListener("click", c),
document.body.removeChild(this.popperElm))
},
deactivated: function() {
this.$options.beforeDestroy[0].call(this)
}
}
},
36412: function(module, __unused_webpack_exports, __webpack_require__) {
var _forEachInstanceProperty = __webpack_require__(99734)
, _mapInstanceProperty = __webpack_require__(75441)
, _concatInstanceProperty = __webpack_require__(75533)
, _trimInstanceProperty = __webpack_require__(98247)
, _indexOfInstanceProperty = __webpack_require__(86990)
, _keysInstanceProperty = __webpack_require__(12154)
, $ = __webpack_require__(8604)
, Base = __webpack_require__(31471)
, Str = __webpack_require__(13993);
function fReplaceLink(t) {
var e = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}
, n = !1
, i = (t || "").split(/(<\s*\/?\s*?\w+\s*[^>]*?>)/)
, r = []
, a = e.ignoreLeetcode
, o = e.safeLinkHost
, s = void 0 === o ? "" : o;
return _forEachInstanceProperty(Base).call(Base, i, (function(e, o) {
if (e) {
if (a && fIsIncludeLeetcode(t))
return;
var s = /<\s*(\/)?\s*?(\w+)\s*[^>]*?>/i.exec(e) || []
, u = (s[2] || "").toLowerCase()
, d = "/" === s[1];
if (!d && u && r.push(u),
d && u && r.pop(),
!u && !l("a") && !l("pre") && c(e)) {
e = Str.decodeHTML(e);
var f = _mapInstanceProperty(Base).call(Base, e.split(/((?:(?:(?:http|https|ftp):\/\/)|(?:www\.))[a-z0-9-\.]+\.[a-z]+[a-z0-9-\/\.:\?_=&#%]*)/gi), p);
i[o] = f.join(""),
n = !0
}
}
}
)),
n ? i.join("") : t;
function l(t) {
return t = (t || "").toLowerCase(),
Base.contains(r, t)
}
function c(t) {
return /(((http|https|ftp):\/\/)|(www\.))[a-zA-Z0-9-\.]+\.[a-zA-Z]+[a-zA-Z0-9-\/\.:\?=&]*/.test(t || "")
}
function u(t) {
return /^(?!.*?(\.nowcoder\.|\.nowpick\.)).*?$/.test(t || "")
}
function d(t, e) {
var n, i, r = "";
return u(e) && (r = "nofollow"),
_concatInstanceProperty(n = _concatInstanceProperty(i = '<a href="'.concat(t, '" target="_blank" rel="noopener noreferrer ')).call(i, r, '">')).call(n, e, "</a>")
}
function p(t) {
if (!c(t))
return t ? Str.encodeHTML(t) : "";
var e = _trimInstanceProperty(t).call(t);
return e = _indexOfInstanceProperty(e).call(e, "://") < 0 ? "http://" + e : e,
s && u(e) ? d("".concat(s, "?link=") + encodeURIComponent("".concat(e)), Str.encodeHTML(t)) : d(e, Str.encodeHTML(t))
}
}
function fTxt2Html(t) {
return t = (t = (t || "").replace(/\n/gi, "<br />")).replace(/\s+([^<>]+)(?=<)|\s+([^<>]+)$/g, (function(t) {
return t.replace(/\s/g, "&nbsp;")
}
))
}
function fHtml2Txt(t) {
return t = (t = (t = (t = (t = (t = t.replace(/&nbsp;/gi, " ")).replace(/\n\s*\n/g, "\n")).replace(/<br[^>]*>/gi, "\n")).replace(/<\/p><p[^>]*>/gi, "\n")).replace(/<\/div><div[^>]*>/gi, "\n")).replace(/<[^>]+>/g, "")
}
function fCopy(t) {
if ((t = t || {}).dealContent && window.getSelection && window.getSelection()) {
var e = Base.isArray(t.el) ? t.el : [t.el];
_forEachInstanceProperty(Base).call(Base, e, (function(t) {
t && $(t).on("copy", n)
}
))
}
function n(e) {
var n = $(e.target)
, i = e.originalEvent.clipboardData;
if (i && i.setData && (!{
input: 1,
textarea: 1,
iframe: 1
}[n.prop("tagName").toLowerCase()] && !n.closest("input,textarea,iframe").get(0))) {
var r = window.getSelection()
, a = r.toString();
if (!(a.length < (+t.max || 0))) {
a = _mapInstanceProperty(Base).call(Base, a.split(""), (function(t) {
return 160 === t.charCodeAt(0) ? " " : t
}
)).join("");
var o = r.getRangeAt(0).cloneContents()
, s = $("<div></div>").append(o).html();
t.canCopy && !t.canCopy(n, s, a) || (t.dealContent && (a = t.dealContent(n, a)),
t.dealContent && (s = t.dealContent(n, s, !0)),
i.setData("text/plain", a || ""),
i.setData("text/html", s || ""),
e.preventDefault())
}
}
}
}
function fClear(t, e) {
var n = this;
if (!t || !Base.isObject(e) || 0 === _keysInstanceProperty(Base).call(Base, e))
return t || "";
var i = e.removeTag || {};
return t.replace(/(\s*)<(\/)?([\w\-:]+)((?:\s+|(?:\s+[\w\-:]+)|(?:\s+[\w\-:]+=[^\s"'<>]+)|(?:\s+[\w\-:"]+="[^"]*")|(?:\s+[\w\-:"]+='[^']*'))*)(\/)?>(\s*)/g, (function(t, r, a, o, s, l, c) {
var u = t
, d = r || ""
, p = a || ""
, f = o.toLowerCase()
, h = s || ""
, m = l ? " " + l : ""
, g = c || "";
if (h) {
var v, b = n.getAttrList(u);
"img" === f && 0 === _indexOfInstanceProperty(v = b.src || "").call(v, "//") && (b.src = "https:" + b.src),
h = " ",
_forEachInstanceProperty(Base).call(Base, b, (function(t, n) {
e.removeStyle && "style" === n || t && (h += n + '="' + t + '" ')
}
))
}
return d + "<" + p + (f = i[f] || f) + h + m + ">" + g
}
))
}
function fGetAttrList(t) {
for (var e, n = {}, i = /\s+(?:([\w\-:]+)|(?:([\w\-:]+)=([^\s"'<>]+))|(?:([\w\-:"]+)="([^"]*)")|(?:([\w\-:"]+)='([^']*)'))(?=(?:\s|\/|>)+)/g; e = i.exec(t); ) {
var r = (e[1] || e[2] || e[4] || e[6]).toLowerCase()
, a = (e[2] ? e[3] : e[4] ? e[5] : e[7]) || "";
n[r] = a
}
return n
}
function fRemoveTag(sContent, sTag) {
sTag = sTag.replace(/(<|\/>)/gi, "");
var rReg = eval("/<".concat(sTag, "[^>].*?>/gi"));
return sContent.replace(rReg, "")
}
function fIsIncludeLeetcode(t) {
return /https?:\/\/([a-zA-Z0-9]+\.)?leetcode(-cn)?\.com/.test(t)
}
module.exports = {
isIncludeLeetcode: fIsIncludeLeetcode,
replaceLink: fReplaceLink,
txt2html: fTxt2Html,
html2txt: fHtml2Txt,
copy: fCopy,
clear: fClear,
getAttrList: fGetAttrList,
removeTag: fRemoveTag
}
},
69691: function(t, e, n) {
var i = n(52081).localStorage
, r = new (n(7658));
t.exports = {
get: function() {
return i && i.getItem("lang") || "zh"
},
set: function(t) {
i.setItem("lang", t),
r.$emit("change-language", t)
},
isZh: function() {
return !i || "zh" === i.getItem("lang")
},
isEn: function() {
return i && "en" === i.getItem("lang")
},
onChange: function(t) {
r.$on("change-language", t)
}
}
},
41528: function(t, e, n) {
var i, r = n(96110), a = n(31754), o = n(98247), s = n(86990), l = n(91041), c = n(153), u = n(47380), d = n(85303);
!function(p) {
"use strict";
var f = {
newline: /^\n+/,
code: /^( {4}[^\n]+\n*)+/,
mathblock: /^ *(?:\$\$([\w\W]+?)\$\$)/,
fences: /^ {0,3}(`{3,}|~{3,})([^`~\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,
hr: /^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,
heading: /^ {0,3}(#{1,6}) *([^\n]*?)(?: +#+)? *(?:\n+|$)/,
blockquote: /^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,
list: /^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,
html: "^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",
def: /^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,
nptable: E,
table: E,
lheading: /^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,
_paragraph: /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,
text: /^[^\n]+/
};
function h(t) {
this.tokens = [],
this.tokens.links = Object.create(null),
this.options = t || F.defaults,
this.rules = f.normal,
this.options.pedantic ? this.rules = f.pedantic : this.options.gfm && (this.rules = f.gfm)
}
f._label = /(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,
f._title = /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,
f.def = C(f.def).replace("label", f._label).replace("title", f._title).getRegex(),
f.bullet = /(?:[*+-]|\d{1,9}\.)/,
f.item = /^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,
f.item = C(f.item, "gm").replace(/bull/g, f.bullet).getRegex(),
f.list = C(f.list).replace(/bull/g, f.bullet).replace("hr", "\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def", "\\n+(?=" + f.def.source + ")").getRegex(),
f._tag = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",
f._comment = /<!--(?!-?>)[\s\S]*?-->/,
f.html = C(f.html, "i").replace("comment", f._comment).replace("tag", f._tag).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),
f.paragraph = C(f._paragraph).replace("hr", f.hr).replace("heading", " {0,3}#{1,6} +").replace("|lheading", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag", f._tag).getRegex(),
f.blockquote = C(f.blockquote).replace("paragraph", f.paragraph).getRegex(),
f.normal = I({}, f),
f.gfm = I({}, f.normal, {
nptable: /^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,
table: /^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/
}),
f.pedantic = I({}, f.normal, {
html: C("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", f._comment).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
heading: /^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,
fences: E,
paragraph: C(f.normal._paragraph).replace("hr", f.hr).replace("heading", " *#{1,6} *[^\n]").replace("lheading", f.lheading).replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").getRegex()
}),
h.rules = f,
h.lex = function(t, e) {
return new h(e).lex(t)
}
,
h.prototype.lex = function(t) {
return t = t.replace(/\r\n|\r/g, "\n").replace(/\t/g, " ").replace(/\u00a0/g, " ").replace(/\u2424/g, "\n"),
this.token(t, !0)
}
,
h.prototype.token = function(t, e, n) {
var i, r, c, u, d, p, h, m, g, v, b, y, w, x, C, k;
t = t.replace(/^ +$/gm, "");
for (var S = n ? 0 : 1, T = S; t; )
if (T = S,
(c = this.rules.newline.exec(t)) && (t = t.substring(c[0].length),
c[0].length > 1 && (S += F(c[0]),
this.tokens.push({
type: "space",
line: T
}),
T = S)),
c = this.rules.mathblock.exec(t))
t = t.substring(c[0].length),
S += F(c[0]),
this.tokens.push({
type: "mathblock",
text: c[1],
line: T
});
else if (c = this.rules.code.exec(t)) {
var E, I = this.tokens[this.tokens.length - 1];
t = t.substring(c[0].length),
S += F(c[0]),
I && "paragraph" === I.type ? I.text += "\n" + a(E = c[0]).call(E) : (c = c[0].replace(/^ {4}/gm, ""),
this.tokens.push({
type: "code",
codeBlockStyle: "indented",
text: this.options.pedantic ? c : j(c, "\n"),
line: T
}))
} else {
var M;
if (c = this.rules.fences.exec(t))
t = t.substring(c[0].length),
S += F(c[0]),
this.tokens.push({
type: "code",
lang: c[2] ? o(M = c[2]).call(M) : c[2],
text: c[3] || "",
line: T
});
else if (c = this.rules.heading.exec(t))
t = t.substring(c[0].length),
S += F(c[0]),
this.tokens.push({
type: "heading",
depth: c[1].length,
text: c[2],
line: T
});
else if ((c = this.rules.nptable.exec(t)) && (p = {
type: "table",
header: L(c[1].replace(/^ *| *\| *$/g, "")),
align: c[2].replace(/^ *|\| *$/g, "").split(/ *\| */),
cells: c[3] ? c[3].replace(/\n$/, "").split("\n") : []
}).header.length === p.align.length) {
for (t = t.substring(c[0].length),
S += F(c[0]),
b = 0; b < p.align.length; b++)
/^ *-+: *$/.test(p.align[b]) ? p.align[b] = "right" : /^ *:-+: *$/.test(p.align[b]) ? p.align[b] = "center" : /^ *:-+ *$/.test(p.align[b]) ? p.align[b] = "left" : p.align[b] = null;
for (b = 0; b < p.cells.length; b++)
p.cells[b] = L(p.cells[b], p.header.length);
p.line = T,
this.tokens.push(p)
} else if (c = this.rules.hr.exec(t))
t = t.substring(c[0].length),
S += F(c[0]),
this.tokens.push({
type: "hr",
line: T
});
else if (c = this.rules.blockquote.exec(t))
t = t.substring(c[0].length),
S += F(c[0], !0),
this.tokens.push({
type: "blockquote_start",
line: T
}),
c = c[0].replace(/^ *> ?/gm, ""),
this.token(c, e, !0),
this.tokens.push({
type: "blockquote_end",
line: T
});
else if (c = this.rules.list.exec(t)) {
for (t = t.substring(c[0].length),
S += F(c[0]),
h = {
type: "list_start",
ordered: x = (u = c[2]).length > 1,
start: x ? +u : "",
loose: !1,
line: T
},
this.tokens.push(h),
m = [],
i = !1,
w = (c = c[0].match(this.rules.item)).length,
b = 0; b < w; b++)
v = (p = c[b]).length,
p = p.replace(/^ *([*+-]|\d+\.) */, ""),
~s(p).call(p, "\n ") && (v -= p.length,
p = this.options.pedantic ? p.replace(/^ {1,4}/gm, "") : p.replace(new RegExp("^ {1," + v + "}","gm"), "")),
b !== w - 1 && (d = f.bullet.exec(c[b + 1])[0],
(u.length > 1 ? 1 === d.length : d.length > 1 || this.options.smartLists && d !== u) && (t = l(c).call(c, b + 1).join("\n") + t,
b = w - 1)),
r = i || /\n\n(?!\s*$)/.test(p),
b !== w - 1 && (i = "\n" === p.charAt(p.length - 1),
r || (r = i)),
r && (h.loose = !0),
C = /^\[[ xX]\] /.test(p),
k = undefined,
C && (k = " " !== p[1],
p = p.replace(/^\[[ xX]\] +/, "")),
g = {
type: "list_item_start",
task: C,
checked: k,
loose: r
},
m.push(g),
this.tokens.push(g),
this.token(p, !1, !0),
this.tokens.push({
type: "list_item_end"
});
if (h.loose)
for (w = m.length,
b = 0; b < w; b++)
m[b].loose = !0;
this.tokens.push({
type: "list_end",
line: T
})
} else if (c = this.rules.html.exec(t))
t = t.substring(c[0].length),
S += F(c[0]),
this.tokens.push({
type: this.options.sanitize ? "paragraph" : "html",
pre: !this.options.sanitizer && ("pre" === c[1] || "script" === c[1] || "style" === c[1]),
text: this.options.sanitize ? this.options.sanitizer ? this.options.sanitizer(c[0]) : _(c[0]) : c[0],
line: T
});
else if (e && (c = this.rules.def.exec(t)))
t = t.substring(c[0].length),
S += F(c[0]),
c[3] && (c[3] = c[3].substring(1, c[3].length - 1)),
y = c[1].toLowerCase().replace(/\s+/g, " "),
this.tokens.links[y] || (this.tokens.links[y] = {
href: c[2],
title: c[3],
line: T
});
else if ((c = this.rules.table.exec(t)) && (p = {
type: "table",
header: L(c[1].replace(/^ *| *\| *$/g, "")),
align: c[2].replace(/^ *|\| *$/g, "").split(/ *\| */),
cells: c[3] ? c[3].replace(/\n$/, "").split("\n") : []
}).header.length === p.align.length) {
for (t = t.substring(c[0].length),
S += F(c[0]),
b = 0; b < p.align.length; b++)
/^ *-+: *$/.test(p.align[b]) ? p.align[b] = "right" : /^ *:-+: *$/.test(p.align[b]) ? p.align[b] = "center" : /^ *:-+ *$/.test(p.align[b]) ? p.align[b] = "left" : p.align[b] = null;
for (b = 0; b < p.cells.length; b++)
p.cells[b] = L(p.cells[b].replace(/^ *\| *| *\| *$/g, ""), p.header.length);
p.line = T,
this.tokens.push(p)
} else {
var $;
if (c = this.rules.lheading.exec(t))
t = t.substring(c[0].length),
S += F(c[0]),
this.tokens.push({
type: "heading",
depth: "=" === c[2].charAt(0) ? 1 : 2,
text: c[1],
line: T
});
else if (e && (c = this.rules.paragraph.exec(t)))
t = t.substring(c[0].length),
S += F(c[0]),
this.tokens.push({
type: "paragraph",
text: "\n" === c[1].charAt(c[1].length - 1) ? l($ = c[1]).call($, 0, -1) : c[1],
line: T
});
else if (c = this.rules.text.exec(t))
t = t.substring(c[0].length),
S += F(c[0]),
this.tokens.push({
type: "text",
text: c[0],
line: T
});
else if (t)
throw new Error("Infinite loop on byte: " + t.charCodeAt(0))
}
}
return this.tokens;
function F(t, e) {
if (n)
return 0;
var i = t.split("\n")
, r = i.length;
if (r <= 1)
return r;
var a = ("" === i[0] ? 1 : 0) + ("" === i[r - 1] ? 1 : 0);
return r - (e ? 0 : a)
}
}
;
var m = {
escape: /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,
autolink: /^<(scheme:[^\s\x00-\x1f<>]*|email)>/,
url: E,
tag: "^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",
link: /^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,
mathinline: /^\$((?:\\\$|[^\$])+)\$/,
reflink: /^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,
nolink: /^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,
strong: /^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,
em: /^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,
code: /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,
br: /^( {2,}|\\)\n(?!\s*$)/,
del: E,
text: /^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/
};
function g(t, e) {
if (this.options = e || F.defaults,
this.links = t,
this.rules = m.normal,
this.renderer = this.options.renderer || new v,
this.renderer.options = this.options,
!this.links)
throw new Error("Tokens array requires a `links` property.");
this.options.pedantic ? this.rules = m.pedantic : this.options.gfm && (this.options.breaks ? this.rules = m.breaks : this.rules = m.gfm)
}
function v(t) {
this.options = t || F.defaults
}
function b() {}
function y(t) {
this.tokens = [],
this.token = null,
this.options = t || F.defaults,
this.options.renderer = this.options.renderer || new v,
this.renderer = this.options.renderer,
this.renderer.options = this.options,
this.slugger = new w
}
function w() {
this.seen = {}
}
function _(t, e) {
if (e) {
if (_.escapeTest.test(t))
return t.replace(_.escapeReplace, (function(t) {
return _.replacements[t]
}
))
} else if (_.escapeTestNoEncode.test(t))
return t.replace(_.escapeReplaceNoEncode, (function(t) {
return _.replacements[t]
}
));
return t
}
function x(t) {
return t.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi, (function(t, e) {
return "colon" === (e = e.toLowerCase()) ? ":" : "#" === e.charAt(0) ? "x" === e.charAt(1) ? String.fromCharCode(u(e.substring(2), 16)) : String.fromCharCode(+e.substring(1)) : ""
}
))
}
function C(t, e) {
return t = t.source || t,
e = e || "",
{
replace: function(e, n) {
return n = (n = n.source || n).replace(/(^|[^\[])\^/g, "$1"),
t = t.replace(e, n),
this
},
getRegex: function() {
return new RegExp(t,e)
}
}
}
function k(t, e, n) {
if (t) {
try {
var i = decodeURIComponent(x(n)).replace(/[^\w:]/g, "").toLowerCase()
} catch (r) {
return null
}
if (0 === s(i).call(i, "javascript:") || 0 === s(i).call(i, "vbscript:") || 0 === s(i).call(i, "data:"))
return null
}
e && !T.test(n) && (n = function(t, e) {
S[" " + t] || (/^[^:]+:\/*[^/]*$/.test(t) ? S[" " + t] = t + "/" : S[" " + t] = j(t, "/", !0));
t = S[" " + t];
var n = -1 === s(t).call(t, ":");
return "//" === l(e).call(e, 0, 2) ? n ? e : t.replace(/^([^:]+:)[\s\S]*$/, "$1") + e : "/" === e.charAt(0) ? n ? e : t.replace(/^([^:]+:\/*[^/]*)[\s\S]*$/, "$1") + e : t + e
}(e, n));
try {
n = encodeURI(n).replace(/%25/g, "%")
} catch (r) {
return null
}
return n
}
m._punctuation = "!\"#$%&'()*+,\\-./:;<=>?@\\[^_{|}~",
m.em = C(m.em).replace(/punctuation/g, m._punctuation).getRegex(),
m._escapes = /\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,
m._scheme = /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,
m._email = /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,
m.autolink = C(m.autolink).replace("scheme", m._scheme).replace("email", m._email).getRegex(),
m._attribute = /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,
m.tag = C(m.tag).replace("comment", f._comment).replace("attribute", m._attribute).getRegex(),
m._label = /(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,
m._href = /<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,
m._title = /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,
m.link = C(m.link).replace("label", m._label).replace("href", m._href).replace("title", m._title).getRegex(),
m.reflink = C(m.reflink).replace("label", m._label).getRegex(),
m.normal = I({}, m),
m.pedantic = I({}, m.normal, {
strong: /^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,
em: /^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,
link: C(/^!?\[(label)\]\((.*?)\)/).replace("label", m._label).getRegex(),
reflink: C(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", m._label).getRegex()
}),
m.gfm = I({}, m.normal, {
escape: C(m.escape).replace("])", "~|])").getRegex(),
_extended_email: /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,
url: /^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,
_backpedal: /(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,
del: /^~+(?=\S)([\s\S]*?\S)~+/,
text: /^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/
}),
m.gfm.url = C(m.gfm.url, "i").replace("email", m.gfm._extended_email).getRegex(),
m.breaks = I({}, m.gfm, {
br: C(m.br).replace("{2,}", "*").getRegex(),
text: C(m.gfm.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
}),
g.rules = m,
g.output = function(t, e, n) {
return new g(e,n).output(t)
}
,
g.prototype.output = function(t) {
for (var e, n, i, r, a, s, c = ""; t; )
if (a = this.rules.escape.exec(t))
t = t.substring(a[0].length),
c += _(a[1]);
else if (a = this.rules.tag.exec(t))
!this.inLink && /^<a /i.test(a[0]) ? this.inLink = !0 : this.inLink && /^<\/a>/i.test(a[0]) && (this.inLink = !1),
!this.inRawBlock && /^<(pre|code|kbd|script)(\s|>)/i.test(a[0]) ? this.inRawBlock = !0 : this.inRawBlock && /^<\/(pre|code|kbd|script)(\s|>)/i.test(a[0]) && (this.inRawBlock = !1),
t = t.substring(a[0].length),
c += this.options.sanitize ? this.options.sanitizer ? this.options.sanitizer(a[0]) : _(a[0]) : a[0];
else if (a = this.rules.link.exec(t)) {
var u, d = M(a[2], "()");
if (d > -1) {
var p, f = 4 + a[1].length + d;
a[2] = a[2].substring(0, d),
a[0] = o(p = a[0].substring(0, f)).call(p),
a[3] = ""
}
t = t.substring(a[0].length),
this.inLink = !0,
i = a[2],
this.options.pedantic ? (e = /^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i)) ? (i = e[1],
r = e[3]) : r = "" : r = a[3] ? l(u = a[3]).call(u, 1, -1) : "",
i = o(i).call(i).replace(/^<([\s\S]*)>$/, "$1"),
c += this.outputLink(a, {
href: g.escapes(i),
title: g.escapes(r)
}),
this.inLink = !1
} else if ((a = this.rules.reflink.exec(t)) || (a = this.rules.nolink.exec(t))) {
if (t = t.substring(a[0].length),
e = (a[2] || a[1]).replace(/\s+/g, " "),
!(e = this.links[e.toLowerCase()]) || !e.href) {
c += a[0].charAt(0),
t = a[0].substring(1) + t;
continue
}
this.inLink = !0,
c += this.outputLink(a, e),
this.inLink = !1
} else {
var h;
if (a = this.rules.mathinline.exec(t))
t = t.substring(a[0].length),
c += this.renderer.mathinline(a[1]);
else if (a = this.rules.strong.exec(t))
t = t.substring(a[0].length),
c += this.renderer.strong(this.output(a[4] || a[3] || a[2] || a[1]));
else if (a = this.rules.em.exec(t))
t = t.substring(a[0].length),
c += this.renderer.em(this.output(a[6] || a[5] || a[4] || a[3] || a[2] || a[1]));
else if (a = this.rules.code.exec(t))
t = t.substring(a[0].length),
c += this.renderer.codespan(_(o(h = a[2]).call(h), !0));
else if (a = this.rules.br.exec(t))
t = t.substring(a[0].length),
c += this.renderer.br();
else if (a = this.rules.del.exec(t))
t = t.substring(a[0].length),
c += this.renderer.del(this.output(a[1]));
else if (a = this.rules.autolink.exec(t))
t = t.substring(a[0].length),
i = "@" === a[2] ? "mailto:" + (n = _(this.mangle(a[1]))) : n = _(a[1]),
c += this.renderer.link(i, null, n);
else if (this.inLink || !(a = this.rules.url.exec(t))) {
if (a = /\$((?:\\\$|[^\$])+)\$/.exec(t))
c += this.output(t.substring(0, a.index)),
t = t.substring(a.index);
else if (a = this.rules.text.exec(t))
t = t.substring(a[0].length),
this.inRawBlock ? c += this.renderer.text(this.options.sanitize ? this.options.sanitizer ? this.options.sanitizer(a[0]) : _(a[0]) : a[0]) : c += this.renderer.text(_(this.smartypants(a[0])));
else if (t)
throw new Error("Infinite loop on byte: " + t.charCodeAt(0))
} else {
if ("@" === a[2])
i = "mailto:" + (n = _(a[0]));
else {
do {
s = a[0],
a[0] = this.rules._backpedal.exec(a[0])[0]
} while (s !== a[0]);
n = _(a[0]),
i = "www." === a[1] ? "http://" + n : n
}
t = t.substring(a[0].length),
c += this.renderer.link(i, null, n)
}
}
return c
}
,
g.escapes = function(t) {
return t ? t.replace(g.rules._escapes, "$1") : t
}
,
g.prototype.outputLink = function(t, e) {
var n = e.href
, i = e.title ? _(e.title) : null;
return "!" !== t[0].charAt(0) ? this.renderer.link(n, i, this.output(t[1])) : this.renderer.image(n, i, _(t[1]))
}
,
g.prototype.smartypants = function(t) {
return this.options.smartypants ? t.replace(/---/g, "—").replace(/--/g, "–").replace(/(^|[-\u2014/(\[{"\s])'/g, "$1‘").replace(/'/g, "’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g, "$1“").replace(/"/g, "”").replace(/\.{3}/g, "…") : t
}
,
g.prototype.mangle = function(t) {
if (!this.options.mangle)
return t;
for (var e, n = "", i = t.length, r = 0; r < i; r++)
e = t.charCodeAt(r),
Math.random() > .5 && (e = "x" + e.toString(16)),
n += "&#" + e + ";";
return n
}
,
v.prototype.mathblock = function(t, e) {
return '<img src="https://www.nowcoder.com/equation?tex=' + window.encodeURIComponent(t) + '&preview=true" ' + (e && this.options.showLine ? ' data-line="' + e + '" ' : "") + " />"
}
,
v.prototype.code = function(t, e, n, i) {
var r = (e || "").match(/\S*/)[0];
if (this.options.highlight) {
var a = this.options.highlight(t, r);
null != a && a !== t && (n = !0,
t = a)
}
return r ? '<pre class="prettyprint ' + this.options.langPrefix + _(r, !0) + '"' + (i && this.options.showLine ? ' data-line="' + i + '" ' : "") + ">" + (n ? t : _(t, !0)) + "</pre>\n" : '<pre class="prettyprint" ' + (i && this.options.showLine ? ' data-line="' + i + '" ' : "") + ">" + (n ? t : _(t, !0)) + "</pre>"
}
,
v.prototype.blockquote = function(t, e) {
return "<blockquote" + (e && this.options.showLine ? ' data-line="' + e + '" ' : "") + ">\n" + t + "</blockquote>\n"
}
,
v.prototype.html = function(t) {
return t
}
,
v.prototype.heading = function(t, e, n, i, r) {
return this.options.headerIds ? "<h" + e + (r && this.options.showLine ? ' data-line="' + r + '" ' : "") + ' id="' + this.options.headerPrefix + i.slug(n) + '">' + t + "</h" + e + ">\n" : "<h" + e + (r && this.options.showLine ? ' data-line="' + r + '" ' : "") + ">" + t + "</h" + e + ">\n"
}
,
v.prototype.hr = function() {
return this.options.xhtml ? "<hr/>\n" : "<hr>\n"
}
,
v.prototype.list = function(t, e, n, i) {
var r = e ? "ol" : "ul";
return "<" + r + (e && 1 !== n ? ' start="' + n + '"' : "") + (i && this.options.showLine ? ' data-line="' + i + '" ' : "") + ">\n" + t + "</" + r + ">\n"
}
,
v.prototype.listitem = function(t) {
return "<li>" + t + "</li>\n"
}
,
v.prototype.checkbox = function(t) {
return "<input " + (t ? 'checked="" ' : "") + 'disabled="" type="checkbox"' + (this.options.xhtml ? " /" : "") + "> "
}
,
v.prototype.paragraph = function(t, e) {
return "<p" + (e && this.options.showLine ? ' data-line="' + e + '" ' : "") + ">" + t + "</p>\n"
}
,
v.prototype.table = function(t, e, n) {
return e && (e = "<tbody>" + e + "</tbody>"),
"<table" + (n && this.options.showLine ? ' data-line="' + n + '" ' : "") + ">\n<thead>\n" + t + "</thead>\n" + e + "</table>\n"
}
,
v.prototype.tablerow = function(t) {
return "<tr>\n" + t + "</tr>\n"
}
,
v.prototype.tablecell = function(t, e) {
var n = e.header ? "th" : "td";
return (e.align ? "<" + n + ' align="' + e.align + '">' : "<" + n + ">") + t + "</" + n + ">\n"
}
,
v.prototype.mathinline = function(t) {
return '<img src="https://www.nowcoder.com/equation?tex=' + window.encodeURIComponent(t) + '&preview=true" />'
}
,
v.prototype.strong = function(t) {
return "<strong>" + t + "</strong>"
}
,
v.prototype.em = function(t) {
return "<em>" + t + "</em>"
}
,
v.prototype.codespan = function(t) {
return "<code>" + t + "</code>"
}
,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment