From a2e5aa4b9e7e923105a679640495e0dcabec1a9a Mon Sep 17 00:00:00 2001 From: Kevin Chung Date: Sat, 2 May 2020 15:04:04 -0400 Subject: [PATCH] Add team mark missing --- CTFd/themes/admin/assets/js/pages/team.js | 84 ++++++++++++++++--- CTFd/themes/admin/assets/js/pages/user.js | 38 +++++---- CTFd/themes/admin/static/js/pages/team.dev.js | 2 +- CTFd/themes/admin/static/js/pages/team.min.js | 2 +- CTFd/themes/admin/static/js/pages/user.min.js | 2 +- .../admin/static/js/vendor.bundle.min.js | 20 ++--- CTFd/themes/admin/templates/teams/team.html | 64 ++++++++++++++ CTFd/themes/admin/templates/users/user.html | 15 ---- .../core/static/js/vendor.bundle.min.js | 20 ++--- 9 files changed, 182 insertions(+), 65 deletions(-) diff --git a/CTFd/themes/admin/assets/js/pages/team.js b/CTFd/themes/admin/assets/js/pages/team.js index 5726802..1c3a121 100644 --- a/CTFd/themes/admin/assets/js/pages/team.js +++ b/CTFd/themes/admin/assets/js/pages/team.js @@ -2,7 +2,7 @@ import "./main"; import $ from "jquery"; import CTFd from "core/CTFd"; import { htmlEntities } from "core/utils"; -import { ezQuery, ezBadge } from "core/ezq"; +import { ezAlert, ezQuery, ezBadge } from "core/ezq"; import { createGraph, updateGraph } from "core/graphs"; function createTeam(event) { @@ -84,16 +84,16 @@ function deleteSelectedSubmissions(event, target) { let submissions; let type; let title; - switch(target){ + switch (target) { case "solves": submissions = $("input[data-submission-type=correct]:checked"); type = "solve"; - title = "Solves" + title = "Solves"; break; case "fails": submissions = $("input[data-submission-type=incorrect]:checked"); type = "fail"; - title = "Fails" + title = "Fails"; break; default: break; @@ -102,11 +102,13 @@ function deleteSelectedSubmissions(event, target) { let submissionIDs = submissions.map(function() { return $(this).data("submission-id"); }); - let target_string = submissionIDs.length === 1 ? type : (type + "s"); + let target_string = submissionIDs.length === 1 ? type : type + "s"; ezQuery({ title: `Delete ${title}`, - body: `Are you sure you want to delete ${submissionIDs.length} ${target_string}?`, + body: `Are you sure you want to delete ${ + submissionIDs.length + } ${target_string}?`, success: function() { const reqs = []; for (var subId of submissionIDs) { @@ -148,6 +150,62 @@ function deleteSelectedAwards(event) { }); } +function solveSelectedMissingChallenges(event) { + event.preventDefault(); + let challengeIDs = $("input[data-missing-challenge-id]:checked").map( + function() { + return $(this).data("missing-challenge-id"); + } + ); + let target = challengeIDs.length === 1 ? "challenge" : "challenges"; + + ezQuery({ + title: `Mark Correct`, + body: `Are you sure you want to mark ${ + challengeIDs.length + } correct for ${htmlEntities(TEAM_NAME)}?`, + success: function() { + ezAlert({ + title: `User Attribution`, + body: ` + Which user on ${htmlEntities(TEAM_NAME)} solved these challenges? +
+ ${$("#team-member-select").html()} +
+ `, + button: "Mark Correct", + success: function() { + const USER_ID = $("#query-team-member-solve > select").val(); + const reqs = []; + for (var challengeID of challengeIDs) { + let params = { + provided: "MARKED AS SOLVED BY ADMIN", + user_id: USER_ID, + team_id: TEAM_ID, + challenge_id: challengeID, + type: "correct" + }; + + let req = CTFd.fetch("/api/v1/submissions", { + method: "POST", + credentials: "same-origin", + headers: { + Accept: "application/json", + "Content-Type": "application/json" + }, + body: JSON.stringify(params) + }); + reqs.push(req); + } + Promise.all(reqs).then(responses => { + window.location.reload(); + }); + } + }); + } + }); +} + const api_funcs = { team: [ x => CTFd.api.get_team_solves({ teamId: x }), @@ -403,18 +461,22 @@ $(() => { }); }); - $("#solves-delete-button").click(function(e){ - deleteSelectedSubmissions(e, "solves") + $("#solves-delete-button").click(function(e) { + deleteSelectedSubmissions(e, "solves"); }); - $("#fails-delete-button").click(function(e){ - deleteSelectedSubmissions(e, "fails") + $("#fails-delete-button").click(function(e) { + deleteSelectedSubmissions(e, "fails"); }); - $("#awards-delete-button").click(function(e){ + $("#awards-delete-button").click(function(e) { deleteSelectedAwards(e); }); + $("#missing-solve-button").click(function(e) { + solveSelectedMissingChallenges(e); + }); + $("#team-info-create-form").submit(createTeam); $("#team-info-edit-form").submit(updateTeam); diff --git a/CTFd/themes/admin/assets/js/pages/user.js b/CTFd/themes/admin/assets/js/pages/user.js index 3c094aa..b2c837c 100644 --- a/CTFd/themes/admin/assets/js/pages/user.js +++ b/CTFd/themes/admin/assets/js/pages/user.js @@ -193,16 +193,16 @@ function deleteSelectedSubmissions(event, target) { let submissions; let type; let title; - switch(target){ + switch (target) { case "solves": submissions = $("input[data-submission-type=correct]:checked"); type = "solve"; - title = "Solves" + title = "Solves"; break; case "fails": submissions = $("input[data-submission-type=incorrect]:checked"); type = "fail"; - title = "Fails" + title = "Fails"; break; default: break; @@ -211,11 +211,13 @@ function deleteSelectedSubmissions(event, target) { let submissionIDs = submissions.map(function() { return $(this).data("submission-id"); }); - let target_string = submissionIDs.length === 1 ? type : (type + "s"); + let target_string = submissionIDs.length === 1 ? type : type + "s"; ezQuery({ title: `Delete ${title}`, - body: `Are you sure you want to delete ${submissionIDs.length} ${target_string}?`, + body: `Are you sure you want to delete ${ + submissionIDs.length + } ${target_string}?`, success: function() { const reqs = []; for (var subId of submissionIDs) { @@ -259,14 +261,18 @@ function deleteSelectedAwards(event) { function solveSelectedMissingChallenges(event) { event.preventDefault(); - let challengeIDs = $("input[data-missing-challenge-id]:checked").map(function() { - return $(this).data("missing-challenge-id"); - }); + let challengeIDs = $("input[data-missing-challenge-id]:checked").map( + function() { + return $(this).data("missing-challenge-id"); + } + ); let target = challengeIDs.length === 1 ? "challenge" : "challenges"; ezQuery({ title: `Mark Correct`, - body: `Are you sure you want to mark ${challengeIDs.length} correct for ${htmlEntities(USER_NAME)}?`, + body: `Are you sure you want to mark ${ + challengeIDs.length + } correct for ${htmlEntities(USER_NAME)}?`, success: function() { const reqs = []; for (var challengeID of challengeIDs) { @@ -286,7 +292,7 @@ function solveSelectedMissingChallenges(event) { "Content-Type": "application/json" }, body: JSON.stringify(params) - }) + }); reqs.push(req); } Promise.all(reqs).then(responses => { @@ -406,19 +412,19 @@ $(() => { $("#user-mail-form").submit(emailUser); - $("#solves-delete-button").click(function(e){ - deleteSelectedSubmissions(e, "solves") + $("#solves-delete-button").click(function(e) { + deleteSelectedSubmissions(e, "solves"); }); - $("#fails-delete-button").click(function(e){ - deleteSelectedSubmissions(e, "fails") + $("#fails-delete-button").click(function(e) { + deleteSelectedSubmissions(e, "fails"); }); - $("#awards-delete-button").click(function(e){ + $("#awards-delete-button").click(function(e) { deleteSelectedAwards(e); }); - $("#missing-solve-button").click(function(e){ + $("#missing-solve-button").click(function(e) { solveSelectedMissingChallenges(e); }); diff --git a/CTFd/themes/admin/static/js/pages/team.dev.js b/CTFd/themes/admin/static/js/pages/team.dev.js index 38aabb2..40bf1fc 100644 --- a/CTFd/themes/admin/static/js/pages/team.dev.js +++ b/CTFd/themes/admin/static/js/pages/team.dev.js @@ -162,7 +162,7 @@ /***/ (function(module, exports, __webpack_require__) { ; -eval("\n\n__webpack_require__(/*! ./main */ \"./CTFd/themes/admin/assets/js/pages/main.js\");\n\nvar _jquery = _interopRequireDefault(__webpack_require__(/*! jquery */ \"./node_modules/jquery/dist/jquery.js\"));\n\nvar _CTFd = _interopRequireDefault(__webpack_require__(/*! core/CTFd */ \"./CTFd/themes/core/assets/js/CTFd.js\"));\n\nvar _utils = __webpack_require__(/*! core/utils */ \"./CTFd/themes/core/assets/js/utils.js\");\n\nvar _ezq = __webpack_require__(/*! core/ezq */ \"./CTFd/themes/core/assets/js/ezq.js\");\n\nvar _graphs = __webpack_require__(/*! core/graphs */ \"./CTFd/themes/core/assets/js/graphs.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); }\n\nfunction _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction createTeam(event) {\n event.preventDefault();\n var params = (0, _jquery.default)(\"#team-info-create-form\").serializeJSON(true);\n\n _CTFd.default.fetch(\"/api/v1/teams\", {\n method: \"POST\",\n credentials: \"same-origin\",\n headers: {\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\"\n },\n body: JSON.stringify(params)\n }).then(function (response) {\n return response.json();\n }).then(function (response) {\n if (response.success) {\n var team_id = response.data.id;\n window.location = _CTFd.default.config.urlRoot + \"/admin/teams/\" + team_id;\n } else {\n (0, _jquery.default)(\"#team-info-form > #results\").empty();\n Object.keys(response.errors).forEach(function (key, index) {\n (0, _jquery.default)(\"#team-info-form > #results\").append((0, _ezq.ezBadge)({\n type: \"error\",\n body: response.errors[key]\n }));\n var i = (0, _jquery.default)(\"#team-info-form\").find(\"input[name={0}]\".format(key));\n var input = (0, _jquery.default)(i);\n input.addClass(\"input-filled-invalid\");\n input.removeClass(\"input-filled-valid\");\n });\n }\n });\n}\n\nfunction updateTeam(event) {\n event.preventDefault();\n var params = (0, _jquery.default)(\"#team-info-edit-form\").serializeJSON(true);\n\n _CTFd.default.fetch(\"/api/v1/teams/\" + TEAM_ID, {\n method: \"PATCH\",\n credentials: \"same-origin\",\n headers: {\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\"\n },\n body: JSON.stringify(params)\n }).then(function (response) {\n return response.json();\n }).then(function (response) {\n if (response.success) {\n window.location.reload();\n } else {\n (0, _jquery.default)(\"#team-info-form > #results\").empty();\n Object.keys(response.errors).forEach(function (key, index) {\n (0, _jquery.default)(\"#team-info-form > #results\").append((0, _ezq.ezBadge)({\n type: \"error\",\n body: response.errors[key]\n }));\n var i = (0, _jquery.default)(\"#team-info-form\").find(\"input[name={0}]\".format(key));\n var input = (0, _jquery.default)(i);\n input.addClass(\"input-filled-invalid\");\n input.removeClass(\"input-filled-valid\");\n });\n }\n });\n}\n\nfunction deleteSelectedSubmissions(event, target) {\n var submissions;\n var type;\n var title;\n\n switch (target) {\n case \"solves\":\n submissions = (0, _jquery.default)(\"input[data-submission-type=correct]:checked\");\n type = \"solve\";\n title = \"Solves\";\n break;\n\n case \"fails\":\n submissions = (0, _jquery.default)(\"input[data-submission-type=incorrect]:checked\");\n type = \"fail\";\n title = \"Fails\";\n break;\n\n default:\n break;\n }\n\n var submissionIDs = submissions.map(function () {\n return (0, _jquery.default)(this).data(\"submission-id\");\n });\n var target_string = submissionIDs.length === 1 ? type : type + \"s\";\n (0, _ezq.ezQuery)({\n title: \"Delete \".concat(title),\n body: \"Are you sure you want to delete \".concat(submissionIDs.length, \" \").concat(target_string, \"?\"),\n success: function success() {\n var reqs = [];\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n\n try {\n for (var _iterator = submissionIDs[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var subId = _step.value;\n reqs.push(_CTFd.default.api.delete_submission({\n submissionId: subId\n }));\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n\n Promise.all(reqs).then(function (responses) {\n window.location.reload();\n });\n }\n });\n}\n\nfunction deleteSelectedAwards(event) {\n var awardIDs = (0, _jquery.default)(\"input[data-award-id]:checked\").map(function () {\n return (0, _jquery.default)(this).data(\"award-id\");\n });\n var target = awardIDs.length === 1 ? \"award\" : \"awards\";\n (0, _ezq.ezQuery)({\n title: \"Delete Awards\",\n body: \"Are you sure you want to delete \".concat(awardIDs.length, \" \").concat(target, \"?\"),\n success: function success() {\n var reqs = [];\n var _iteratorNormalCompletion2 = true;\n var _didIteratorError2 = false;\n var _iteratorError2 = undefined;\n\n try {\n for (var _iterator2 = awardIDs[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {\n var awardID = _step2.value;\n\n var req = _CTFd.default.fetch(\"/api/v1/awards/\" + awardID, {\n method: \"DELETE\",\n credentials: \"same-origin\",\n headers: {\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\"\n }\n });\n\n reqs.push(req);\n }\n } catch (err) {\n _didIteratorError2 = true;\n _iteratorError2 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion2 && _iterator2.return != null) {\n _iterator2.return();\n }\n } finally {\n if (_didIteratorError2) {\n throw _iteratorError2;\n }\n }\n }\n\n Promise.all(reqs).then(function (responses) {\n window.location.reload();\n });\n }\n });\n}\n\nvar api_funcs = {\n team: [function (x) {\n return _CTFd.default.api.get_team_solves({\n teamId: x\n });\n }, function (x) {\n return _CTFd.default.api.get_team_fails({\n teamId: x\n });\n }, function (x) {\n return _CTFd.default.api.get_team_awards({\n teamId: x\n });\n }],\n user: [function (x) {\n return _CTFd.default.api.get_user_solves({\n userId: x\n });\n }, function (x) {\n return _CTFd.default.api.get_user_fails({\n userId: x\n });\n }, function (x) {\n return _CTFd.default.api.get_user_awards({\n userId: x\n });\n }]\n};\n\nvar createGraphs = function createGraphs(type, id, name, account_id) {\n var _api_funcs$type = _slicedToArray(api_funcs[type], 3),\n solves_func = _api_funcs$type[0],\n fails_func = _api_funcs$type[1],\n awards_func = _api_funcs$type[2];\n\n Promise.all([solves_func(account_id), fails_func(account_id), awards_func(account_id)]).then(function (responses) {\n (0, _graphs.createGraph)(\"score_graph\", \"#score-graph\", responses, type, id, name, account_id);\n (0, _graphs.createGraph)(\"category_breakdown\", \"#categories-pie-graph\", responses, type, id, name, account_id);\n (0, _graphs.createGraph)(\"solve_percentages\", \"#keys-pie-graph\", responses, type, id, name, account_id);\n });\n};\n\nvar updateGraphs = function updateGraphs(type, id, name, account_id) {\n var _api_funcs$type2 = _slicedToArray(api_funcs[type], 3),\n solves_func = _api_funcs$type2[0],\n fails_func = _api_funcs$type2[1],\n awards_func = _api_funcs$type2[2];\n\n Promise.all([solves_func(account_id), fails_func(account_id), awards_func(account_id)]).then(function (responses) {\n (0, _graphs.updateGraph)(\"score_graph\", \"#score-graph\", responses, type, id, name, account_id);\n (0, _graphs.updateGraph)(\"category_breakdown\", \"#categories-pie-graph\", responses, type, id, name, account_id);\n (0, _graphs.updateGraph)(\"solve_percentages\", \"#keys-pie-graph\", responses, type, id, name, account_id);\n });\n};\n\n(0, _jquery.default)(function () {\n (0, _jquery.default)(\"#team-captain-form\").submit(function (e) {\n e.preventDefault();\n var params = (0, _jquery.default)(\"#team-captain-form\").serializeJSON(true);\n\n _CTFd.default.fetch(\"/api/v1/teams/\" + TEAM_ID, {\n method: \"PATCH\",\n credentials: \"same-origin\",\n headers: {\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\"\n },\n body: JSON.stringify(params)\n }).then(function (response) {\n return response.json();\n }).then(function (response) {\n if (response.success) {\n window.location.reload();\n } else {\n (0, _jquery.default)(\"#team-captain-form > #results\").empty();\n Object.keys(response.errors).forEach(function (key, index) {\n (0, _jquery.default)(\"#team-captain-form > #results\").append((0, _ezq.ezBadge)({\n type: \"error\",\n body: response.errors[key]\n }));\n var i = (0, _jquery.default)(\"#team-captain-form\").find(\"select[name={0}]\".format(key));\n var input = (0, _jquery.default)(i);\n input.addClass(\"input-filled-invalid\");\n input.removeClass(\"input-filled-valid\");\n });\n }\n });\n });\n (0, _jquery.default)(\".edit-team\").click(function (e) {\n (0, _jquery.default)(\"#team-info-edit-modal\").modal(\"toggle\");\n });\n (0, _jquery.default)(\".edit-captain\").click(function (e) {\n (0, _jquery.default)(\"#team-captain-modal\").modal(\"toggle\");\n });\n (0, _jquery.default)(\".award-team\").click(function (e) {\n (0, _jquery.default)(\"#team-award-modal\").modal(\"toggle\");\n });\n (0, _jquery.default)(\".addresses-team\").click(function (event) {\n (0, _jquery.default)(\"#team-addresses-modal\").modal(\"toggle\");\n });\n (0, _jquery.default)(\"#user-award-form\").submit(function (e) {\n e.preventDefault();\n var params = (0, _jquery.default)(\"#user-award-form\").serializeJSON(true);\n params[\"user_id\"] = (0, _jquery.default)(\"#award-member-input\").val();\n params[\"team_id\"] = TEAM_ID;\n (0, _jquery.default)(\"#user-award-form > #results\").empty();\n\n if (!params[\"user_id\"]) {\n (0, _jquery.default)(\"#user-award-form > #results\").append((0, _ezq.ezBadge)({\n type: \"error\",\n body: \"Please select a team member\"\n }));\n return;\n }\n\n params[\"user_id\"] = parseInt(params[\"user_id\"]);\n\n _CTFd.default.fetch(\"/api/v1/awards\", {\n method: \"POST\",\n credentials: \"same-origin\",\n headers: {\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\"\n },\n body: JSON.stringify(params)\n }).then(function (response) {\n return response.json();\n }).then(function (response) {\n if (response.success) {\n window.location.reload();\n } else {\n (0, _jquery.default)(\"#user-award-form > #results\").empty();\n Object.keys(response.errors).forEach(function (key, index) {\n (0, _jquery.default)(\"#user-award-form > #results\").append((0, _ezq.ezBadge)({\n type: \"error\",\n body: response.errors[key]\n }));\n var i = (0, _jquery.default)(\"#user-award-form\").find(\"input[name={0}]\".format(key));\n var input = (0, _jquery.default)(i);\n input.addClass(\"input-filled-invalid\");\n input.removeClass(\"input-filled-valid\");\n });\n }\n });\n });\n (0, _jquery.default)(\".delete-member\").click(function (e) {\n e.preventDefault();\n var member_id = (0, _jquery.default)(this).attr(\"member-id\");\n var member_name = (0, _jquery.default)(this).attr(\"member-name\");\n var params = {\n user_id: member_id\n };\n var row = (0, _jquery.default)(this).parent().parent();\n (0, _ezq.ezQuery)({\n title: \"Remove Member\",\n body: \"Are you sure you want to remove {0} from {1}?

All of their challenges solves, attempts, awards, and unlocked hints will also be deleted!\".format(\"\" + (0, _utils.htmlEntities)(member_name) + \"\", \"\" + (0, _utils.htmlEntities)(TEAM_NAME) + \"\"),\n success: function success() {\n _CTFd.default.fetch(\"/api/v1/teams/\" + TEAM_ID + \"/members\", {\n method: \"DELETE\",\n body: JSON.stringify(params)\n }).then(function (response) {\n return response.json();\n }).then(function (response) {\n if (response.success) {\n row.remove();\n }\n });\n }\n });\n });\n (0, _jquery.default)(\".delete-team\").click(function (e) {\n (0, _ezq.ezQuery)({\n title: \"Delete Team\",\n body: \"Are you sure you want to delete {0}\".format(\"\" + (0, _utils.htmlEntities)(TEAM_NAME) + \"\"),\n success: function success() {\n _CTFd.default.fetch(\"/api/v1/teams/\" + TEAM_ID, {\n method: \"DELETE\"\n }).then(function (response) {\n return response.json();\n }).then(function (response) {\n if (response.success) {\n window.location = _CTFd.default.config.urlRoot + \"/admin/teams\";\n }\n });\n }\n });\n });\n (0, _jquery.default)(\"#solves-delete-button\").click(function (e) {\n deleteSelectedSubmissions(e, \"solves\");\n });\n (0, _jquery.default)(\"#fails-delete-button\").click(function (e) {\n deleteSelectedSubmissions(e, \"fails\");\n });\n (0, _jquery.default)(\"#awards-delete-button\").click(function (e) {\n deleteSelectedAwards(e);\n });\n (0, _jquery.default)(\"#team-info-create-form\").submit(createTeam);\n (0, _jquery.default)(\"#team-info-edit-form\").submit(updateTeam);\n var type, id, name, account_id;\n var _window$stats_data = window.stats_data;\n type = _window$stats_data.type;\n id = _window$stats_data.id;\n name = _window$stats_data.name;\n account_id = _window$stats_data.account_id;\n createGraphs(type, id, name, account_id);\n setInterval(function () {\n updateGraphs(type, id, name, account_id);\n }, 300000);\n});\n\n//# sourceURL=webpack:///./CTFd/themes/admin/assets/js/pages/team.js?"); +eval("\n\n__webpack_require__(/*! ./main */ \"./CTFd/themes/admin/assets/js/pages/main.js\");\n\nvar _jquery = _interopRequireDefault(__webpack_require__(/*! jquery */ \"./node_modules/jquery/dist/jquery.js\"));\n\nvar _CTFd = _interopRequireDefault(__webpack_require__(/*! core/CTFd */ \"./CTFd/themes/core/assets/js/CTFd.js\"));\n\nvar _utils = __webpack_require__(/*! core/utils */ \"./CTFd/themes/core/assets/js/utils.js\");\n\nvar _ezq = __webpack_require__(/*! core/ezq */ \"./CTFd/themes/core/assets/js/ezq.js\");\n\nvar _graphs = __webpack_require__(/*! core/graphs */ \"./CTFd/themes/core/assets/js/graphs.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); }\n\nfunction _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction createTeam(event) {\n event.preventDefault();\n var params = (0, _jquery.default)(\"#team-info-create-form\").serializeJSON(true);\n\n _CTFd.default.fetch(\"/api/v1/teams\", {\n method: \"POST\",\n credentials: \"same-origin\",\n headers: {\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\"\n },\n body: JSON.stringify(params)\n }).then(function (response) {\n return response.json();\n }).then(function (response) {\n if (response.success) {\n var team_id = response.data.id;\n window.location = _CTFd.default.config.urlRoot + \"/admin/teams/\" + team_id;\n } else {\n (0, _jquery.default)(\"#team-info-form > #results\").empty();\n Object.keys(response.errors).forEach(function (key, index) {\n (0, _jquery.default)(\"#team-info-form > #results\").append((0, _ezq.ezBadge)({\n type: \"error\",\n body: response.errors[key]\n }));\n var i = (0, _jquery.default)(\"#team-info-form\").find(\"input[name={0}]\".format(key));\n var input = (0, _jquery.default)(i);\n input.addClass(\"input-filled-invalid\");\n input.removeClass(\"input-filled-valid\");\n });\n }\n });\n}\n\nfunction updateTeam(event) {\n event.preventDefault();\n var params = (0, _jquery.default)(\"#team-info-edit-form\").serializeJSON(true);\n\n _CTFd.default.fetch(\"/api/v1/teams/\" + TEAM_ID, {\n method: \"PATCH\",\n credentials: \"same-origin\",\n headers: {\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\"\n },\n body: JSON.stringify(params)\n }).then(function (response) {\n return response.json();\n }).then(function (response) {\n if (response.success) {\n window.location.reload();\n } else {\n (0, _jquery.default)(\"#team-info-form > #results\").empty();\n Object.keys(response.errors).forEach(function (key, index) {\n (0, _jquery.default)(\"#team-info-form > #results\").append((0, _ezq.ezBadge)({\n type: \"error\",\n body: response.errors[key]\n }));\n var i = (0, _jquery.default)(\"#team-info-form\").find(\"input[name={0}]\".format(key));\n var input = (0, _jquery.default)(i);\n input.addClass(\"input-filled-invalid\");\n input.removeClass(\"input-filled-valid\");\n });\n }\n });\n}\n\nfunction deleteSelectedSubmissions(event, target) {\n var submissions;\n var type;\n var title;\n\n switch (target) {\n case \"solves\":\n submissions = (0, _jquery.default)(\"input[data-submission-type=correct]:checked\");\n type = \"solve\";\n title = \"Solves\";\n break;\n\n case \"fails\":\n submissions = (0, _jquery.default)(\"input[data-submission-type=incorrect]:checked\");\n type = \"fail\";\n title = \"Fails\";\n break;\n\n default:\n break;\n }\n\n var submissionIDs = submissions.map(function () {\n return (0, _jquery.default)(this).data(\"submission-id\");\n });\n var target_string = submissionIDs.length === 1 ? type : type + \"s\";\n (0, _ezq.ezQuery)({\n title: \"Delete \".concat(title),\n body: \"Are you sure you want to delete \".concat(submissionIDs.length, \" \").concat(target_string, \"?\"),\n success: function success() {\n var reqs = [];\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n\n try {\n for (var _iterator = submissionIDs[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var subId = _step.value;\n reqs.push(_CTFd.default.api.delete_submission({\n submissionId: subId\n }));\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n\n Promise.all(reqs).then(function (responses) {\n window.location.reload();\n });\n }\n });\n}\n\nfunction deleteSelectedAwards(event) {\n var awardIDs = (0, _jquery.default)(\"input[data-award-id]:checked\").map(function () {\n return (0, _jquery.default)(this).data(\"award-id\");\n });\n var target = awardIDs.length === 1 ? \"award\" : \"awards\";\n (0, _ezq.ezQuery)({\n title: \"Delete Awards\",\n body: \"Are you sure you want to delete \".concat(awardIDs.length, \" \").concat(target, \"?\"),\n success: function success() {\n var reqs = [];\n var _iteratorNormalCompletion2 = true;\n var _didIteratorError2 = false;\n var _iteratorError2 = undefined;\n\n try {\n for (var _iterator2 = awardIDs[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {\n var awardID = _step2.value;\n\n var req = _CTFd.default.fetch(\"/api/v1/awards/\" + awardID, {\n method: \"DELETE\",\n credentials: \"same-origin\",\n headers: {\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\"\n }\n });\n\n reqs.push(req);\n }\n } catch (err) {\n _didIteratorError2 = true;\n _iteratorError2 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion2 && _iterator2.return != null) {\n _iterator2.return();\n }\n } finally {\n if (_didIteratorError2) {\n throw _iteratorError2;\n }\n }\n }\n\n Promise.all(reqs).then(function (responses) {\n window.location.reload();\n });\n }\n });\n}\n\nfunction solveSelectedMissingChallenges(event) {\n event.preventDefault();\n var challengeIDs = (0, _jquery.default)(\"input[data-missing-challenge-id]:checked\").map(function () {\n return (0, _jquery.default)(this).data(\"missing-challenge-id\");\n });\n var target = challengeIDs.length === 1 ? \"challenge\" : \"challenges\";\n (0, _ezq.ezQuery)({\n title: \"Mark Correct\",\n body: \"Are you sure you want to mark \".concat(challengeIDs.length, \" correct for \").concat((0, _utils.htmlEntities)(TEAM_NAME), \"?\"),\n success: function success() {\n (0, _ezq.ezAlert)({\n title: \"User Attribution\",\n body: \"\\n Which user on \".concat((0, _utils.htmlEntities)(TEAM_NAME), \" solved these challenges?\\n
\\n \").concat((0, _jquery.default)(\"#team-member-select\").html(), \"\\n
\\n \"),\n button: \"Mark Correct\",\n success: function success() {\n var USER_ID = (0, _jquery.default)(\"#query-team-member-solve > select\").val();\n var reqs = [];\n var _iteratorNormalCompletion3 = true;\n var _didIteratorError3 = false;\n var _iteratorError3 = undefined;\n\n try {\n for (var _iterator3 = challengeIDs[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {\n var challengeID = _step3.value;\n var params = {\n provided: \"MARKED AS SOLVED BY ADMIN\",\n user_id: USER_ID,\n team_id: TEAM_ID,\n challenge_id: challengeID,\n type: \"correct\"\n };\n\n var req = _CTFd.default.fetch(\"/api/v1/submissions\", {\n method: \"POST\",\n credentials: \"same-origin\",\n headers: {\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\"\n },\n body: JSON.stringify(params)\n });\n\n reqs.push(req);\n }\n } catch (err) {\n _didIteratorError3 = true;\n _iteratorError3 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion3 && _iterator3.return != null) {\n _iterator3.return();\n }\n } finally {\n if (_didIteratorError3) {\n throw _iteratorError3;\n }\n }\n }\n\n Promise.all(reqs).then(function (responses) {\n window.location.reload();\n });\n }\n });\n }\n });\n}\n\nvar api_funcs = {\n team: [function (x) {\n return _CTFd.default.api.get_team_solves({\n teamId: x\n });\n }, function (x) {\n return _CTFd.default.api.get_team_fails({\n teamId: x\n });\n }, function (x) {\n return _CTFd.default.api.get_team_awards({\n teamId: x\n });\n }],\n user: [function (x) {\n return _CTFd.default.api.get_user_solves({\n userId: x\n });\n }, function (x) {\n return _CTFd.default.api.get_user_fails({\n userId: x\n });\n }, function (x) {\n return _CTFd.default.api.get_user_awards({\n userId: x\n });\n }]\n};\n\nvar createGraphs = function createGraphs(type, id, name, account_id) {\n var _api_funcs$type = _slicedToArray(api_funcs[type], 3),\n solves_func = _api_funcs$type[0],\n fails_func = _api_funcs$type[1],\n awards_func = _api_funcs$type[2];\n\n Promise.all([solves_func(account_id), fails_func(account_id), awards_func(account_id)]).then(function (responses) {\n (0, _graphs.createGraph)(\"score_graph\", \"#score-graph\", responses, type, id, name, account_id);\n (0, _graphs.createGraph)(\"category_breakdown\", \"#categories-pie-graph\", responses, type, id, name, account_id);\n (0, _graphs.createGraph)(\"solve_percentages\", \"#keys-pie-graph\", responses, type, id, name, account_id);\n });\n};\n\nvar updateGraphs = function updateGraphs(type, id, name, account_id) {\n var _api_funcs$type2 = _slicedToArray(api_funcs[type], 3),\n solves_func = _api_funcs$type2[0],\n fails_func = _api_funcs$type2[1],\n awards_func = _api_funcs$type2[2];\n\n Promise.all([solves_func(account_id), fails_func(account_id), awards_func(account_id)]).then(function (responses) {\n (0, _graphs.updateGraph)(\"score_graph\", \"#score-graph\", responses, type, id, name, account_id);\n (0, _graphs.updateGraph)(\"category_breakdown\", \"#categories-pie-graph\", responses, type, id, name, account_id);\n (0, _graphs.updateGraph)(\"solve_percentages\", \"#keys-pie-graph\", responses, type, id, name, account_id);\n });\n};\n\n(0, _jquery.default)(function () {\n (0, _jquery.default)(\"#team-captain-form\").submit(function (e) {\n e.preventDefault();\n var params = (0, _jquery.default)(\"#team-captain-form\").serializeJSON(true);\n\n _CTFd.default.fetch(\"/api/v1/teams/\" + TEAM_ID, {\n method: \"PATCH\",\n credentials: \"same-origin\",\n headers: {\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\"\n },\n body: JSON.stringify(params)\n }).then(function (response) {\n return response.json();\n }).then(function (response) {\n if (response.success) {\n window.location.reload();\n } else {\n (0, _jquery.default)(\"#team-captain-form > #results\").empty();\n Object.keys(response.errors).forEach(function (key, index) {\n (0, _jquery.default)(\"#team-captain-form > #results\").append((0, _ezq.ezBadge)({\n type: \"error\",\n body: response.errors[key]\n }));\n var i = (0, _jquery.default)(\"#team-captain-form\").find(\"select[name={0}]\".format(key));\n var input = (0, _jquery.default)(i);\n input.addClass(\"input-filled-invalid\");\n input.removeClass(\"input-filled-valid\");\n });\n }\n });\n });\n (0, _jquery.default)(\".edit-team\").click(function (e) {\n (0, _jquery.default)(\"#team-info-edit-modal\").modal(\"toggle\");\n });\n (0, _jquery.default)(\".edit-captain\").click(function (e) {\n (0, _jquery.default)(\"#team-captain-modal\").modal(\"toggle\");\n });\n (0, _jquery.default)(\".award-team\").click(function (e) {\n (0, _jquery.default)(\"#team-award-modal\").modal(\"toggle\");\n });\n (0, _jquery.default)(\".addresses-team\").click(function (event) {\n (0, _jquery.default)(\"#team-addresses-modal\").modal(\"toggle\");\n });\n (0, _jquery.default)(\"#user-award-form\").submit(function (e) {\n e.preventDefault();\n var params = (0, _jquery.default)(\"#user-award-form\").serializeJSON(true);\n params[\"user_id\"] = (0, _jquery.default)(\"#award-member-input\").val();\n params[\"team_id\"] = TEAM_ID;\n (0, _jquery.default)(\"#user-award-form > #results\").empty();\n\n if (!params[\"user_id\"]) {\n (0, _jquery.default)(\"#user-award-form > #results\").append((0, _ezq.ezBadge)({\n type: \"error\",\n body: \"Please select a team member\"\n }));\n return;\n }\n\n params[\"user_id\"] = parseInt(params[\"user_id\"]);\n\n _CTFd.default.fetch(\"/api/v1/awards\", {\n method: \"POST\",\n credentials: \"same-origin\",\n headers: {\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\"\n },\n body: JSON.stringify(params)\n }).then(function (response) {\n return response.json();\n }).then(function (response) {\n if (response.success) {\n window.location.reload();\n } else {\n (0, _jquery.default)(\"#user-award-form > #results\").empty();\n Object.keys(response.errors).forEach(function (key, index) {\n (0, _jquery.default)(\"#user-award-form > #results\").append((0, _ezq.ezBadge)({\n type: \"error\",\n body: response.errors[key]\n }));\n var i = (0, _jquery.default)(\"#user-award-form\").find(\"input[name={0}]\".format(key));\n var input = (0, _jquery.default)(i);\n input.addClass(\"input-filled-invalid\");\n input.removeClass(\"input-filled-valid\");\n });\n }\n });\n });\n (0, _jquery.default)(\".delete-member\").click(function (e) {\n e.preventDefault();\n var member_id = (0, _jquery.default)(this).attr(\"member-id\");\n var member_name = (0, _jquery.default)(this).attr(\"member-name\");\n var params = {\n user_id: member_id\n };\n var row = (0, _jquery.default)(this).parent().parent();\n (0, _ezq.ezQuery)({\n title: \"Remove Member\",\n body: \"Are you sure you want to remove {0} from {1}?

All of their challenges solves, attempts, awards, and unlocked hints will also be deleted!\".format(\"\" + (0, _utils.htmlEntities)(member_name) + \"\", \"\" + (0, _utils.htmlEntities)(TEAM_NAME) + \"\"),\n success: function success() {\n _CTFd.default.fetch(\"/api/v1/teams/\" + TEAM_ID + \"/members\", {\n method: \"DELETE\",\n body: JSON.stringify(params)\n }).then(function (response) {\n return response.json();\n }).then(function (response) {\n if (response.success) {\n row.remove();\n }\n });\n }\n });\n });\n (0, _jquery.default)(\".delete-team\").click(function (e) {\n (0, _ezq.ezQuery)({\n title: \"Delete Team\",\n body: \"Are you sure you want to delete {0}\".format(\"\" + (0, _utils.htmlEntities)(TEAM_NAME) + \"\"),\n success: function success() {\n _CTFd.default.fetch(\"/api/v1/teams/\" + TEAM_ID, {\n method: \"DELETE\"\n }).then(function (response) {\n return response.json();\n }).then(function (response) {\n if (response.success) {\n window.location = _CTFd.default.config.urlRoot + \"/admin/teams\";\n }\n });\n }\n });\n });\n (0, _jquery.default)(\"#solves-delete-button\").click(function (e) {\n deleteSelectedSubmissions(e, \"solves\");\n });\n (0, _jquery.default)(\"#fails-delete-button\").click(function (e) {\n deleteSelectedSubmissions(e, \"fails\");\n });\n (0, _jquery.default)(\"#awards-delete-button\").click(function (e) {\n deleteSelectedAwards(e);\n });\n (0, _jquery.default)(\"#missing-solve-button\").click(function (e) {\n solveSelectedMissingChallenges(e);\n });\n (0, _jquery.default)(\"#team-info-create-form\").submit(createTeam);\n (0, _jquery.default)(\"#team-info-edit-form\").submit(updateTeam);\n var type, id, name, account_id;\n var _window$stats_data = window.stats_data;\n type = _window$stats_data.type;\n id = _window$stats_data.id;\n name = _window$stats_data.name;\n account_id = _window$stats_data.account_id;\n createGraphs(type, id, name, account_id);\n setInterval(function () {\n updateGraphs(type, id, name, account_id);\n }, 300000);\n});\n\n//# sourceURL=webpack:///./CTFd/themes/admin/assets/js/pages/team.js?"); /***/ }) diff --git a/CTFd/themes/admin/static/js/pages/team.min.js b/CTFd/themes/admin/static/js/pages/team.min.js index fd9302c..84ac14c 100644 --- a/CTFd/themes/admin/static/js/pages/team.min.js +++ b/CTFd/themes/admin/static/js/pages/team.min.js @@ -1 +1 @@ -!function(l){function e(e){for(var t,o,n=e[0],s=e[1],a=e[2],i=0,r=[];i #results").empty(),Object.keys(s.errors).forEach(function(e,t){(0,i.default)("#team-info-form > #results").append((0,d.ezBadge)({type:"error",body:s.errors[e]}));var o=(0,i.default)("#team-info-form").find("input[name={0}]".format(e)),n=(0,i.default)(o);n.addClass("input-filled-invalid"),n.removeClass("input-filled-valid")})})}function m(e){e.preventDefault();var t=(0,i.default)("#team-info-edit-form").serializeJSON(!0);r.default.fetch("/api/v1/teams/"+TEAM_ID,{method:"PATCH",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}).then(function(e){return e.json()}).then(function(s){s.success?window.location.reload():((0,i.default)("#team-info-form > #results").empty(),Object.keys(s.errors).forEach(function(e,t){(0,i.default)("#team-info-form > #results").append((0,d.ezBadge)({type:"error",body:s.errors[e]}));var o=(0,i.default)("#team-info-form").find("input[name={0}]".format(e)),n=(0,i.default)(o);n.addClass("input-filled-invalid"),n.removeClass("input-filled-valid")}))})}var p={team:[function(e){return r.default.api.get_team_solves({teamId:e})},function(e){return r.default.api.get_team_fails({teamId:e})},function(e){return r.default.api.get_team_awards({teamId:e})}],user:[function(e){return r.default.api.get_user_solves({userId:e})},function(e){return r.default.api.get_user_fails({userId:e})},function(e){return r.default.api.get_user_awards({userId:e})}]};(0,i.default)(function(){var e,t,o,n;(0,i.default)("#team-captain-form").submit(function(e){e.preventDefault();var t=(0,i.default)("#team-captain-form").serializeJSON(!0);r.default.fetch("/api/v1/teams/"+TEAM_ID,{method:"PATCH",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}).then(function(e){return e.json()}).then(function(s){s.success?window.location.reload():((0,i.default)("#team-captain-form > #results").empty(),Object.keys(s.errors).forEach(function(e,t){(0,i.default)("#team-captain-form > #results").append((0,d.ezBadge)({type:"error",body:s.errors[e]}));var o=(0,i.default)("#team-captain-form").find("select[name={0}]".format(e)),n=(0,i.default)(o);n.addClass("input-filled-invalid"),n.removeClass("input-filled-valid")}))})}),(0,i.default)(".edit-team").click(function(e){(0,i.default)("#team-info-edit-modal").modal("toggle")}),(0,i.default)(".edit-captain").click(function(e){(0,i.default)("#team-captain-modal").modal("toggle")}),(0,i.default)(".award-team").click(function(e){(0,i.default)("#team-award-modal").modal("toggle")}),(0,i.default)(".addresses-team").click(function(e){(0,i.default)("#team-addresses-modal").modal("toggle")}),(0,i.default)("#user-award-form").submit(function(e){e.preventDefault();var t=(0,i.default)("#user-award-form").serializeJSON(!0);t.user_id=(0,i.default)("#award-member-input").val(),t.team_id=TEAM_ID,(0,i.default)("#user-award-form > #results").empty(),t.user_id?(t.user_id=parseInt(t.user_id),r.default.fetch("/api/v1/awards",{method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}).then(function(e){return e.json()}).then(function(s){s.success?window.location.reload():((0,i.default)("#user-award-form > #results").empty(),Object.keys(s.errors).forEach(function(e,t){(0,i.default)("#user-award-form > #results").append((0,d.ezBadge)({type:"error",body:s.errors[e]}));var o=(0,i.default)("#user-award-form").find("input[name={0}]".format(e)),n=(0,i.default)(o);n.addClass("input-filled-invalid"),n.removeClass("input-filled-valid")}))})):(0,i.default)("#user-award-form > #results").append((0,d.ezBadge)({type:"error",body:"Please select a team member"}))}),(0,i.default)(".delete-member").click(function(e){e.preventDefault();var t=(0,i.default)(this).attr("member-id"),o=(0,i.default)(this).attr("member-name"),n={user_id:t},s=(0,i.default)(this).parent().parent();(0,d.ezQuery)({title:"Remove Member",body:"Are you sure you want to remove {0} from {1}?

All of their challenges solves, attempts, awards, and unlocked hints will also be deleted!".format(""+(0,l.htmlEntities)(o)+"",""+(0,l.htmlEntities)(TEAM_NAME)+""),success:function(){r.default.fetch("/api/v1/teams/"+TEAM_ID+"/members",{method:"DELETE",body:JSON.stringify(n)}).then(function(e){return e.json()}).then(function(e){e.success&&s.remove()})}})}),(0,i.default)(".delete-team").click(function(e){(0,d.ezQuery)({title:"Delete Team",body:"Are you sure you want to delete {0}".format(""+(0,l.htmlEntities)(TEAM_NAME)+""),success:function(){r.default.fetch("/api/v1/teams/"+TEAM_ID,{method:"DELETE"}).then(function(e){return e.json()}).then(function(e){e.success&&(window.location=r.default.config.urlRoot+"/admin/teams")})}})}),(0,i.default)(".delete-submission").click(function(e){e.preventDefault();var t=(0,i.default)(this).attr("submission-id"),o=(0,i.default)(this).attr("submission-type"),n=(0,i.default)(this).attr("submission-challenge"),s="Are you sure you want to delete {0} submission from {1} for {2}?".format((0,l.htmlEntities)(o),(0,l.htmlEntities)(TEAM_NAME),(0,l.htmlEntities)(n)),a=(0,i.default)(this).parent().parent();(0,d.ezQuery)({title:"Delete Submission",body:s,success:function(){r.default.fetch("/api/v1/submissions/"+t,{method:"DELETE",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}}).then(function(e){return e.json()}).then(function(e){e.success&&a.remove()})}})}),(0,i.default)(".delete-award").click(function(e){e.preventDefault();var t=(0,i.default)(this).attr("award-id"),o=(0,i.default)(this).attr("award-name"),n="Are you sure you want to delete the {0} award from {1}?".format((0,l.htmlEntities)(o),(0,l.htmlEntities)(TEAM_NAME)),s=(0,i.default)(this).parent().parent();(0,d.ezQuery)({title:"Delete Award",body:n,success:function(){r.default.fetch("/api/v1/awards/"+t,{method:"DELETE",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}}).then(function(e){return e.json()}).then(function(e){e.success&&s.remove()})}})}),(0,i.default)("#team-info-create-form").submit(a),(0,i.default)("#team-info-edit-form").submit(m);var s=window.stats_data;e=s.type,t=s.id,o=s.name,n=s.account_id,function(t,o,n,s){var e=u(p[t],3),a=e[0],i=e[1],r=e[2];Promise.all([a(s),i(s),r(s)]).then(function(e){(0,c.createGraph)("score_graph","#score-graph",e,t,o,n,s),(0,c.createGraph)("category_breakdown","#categories-pie-graph",e,t,o,n,s),(0,c.createGraph)("solve_percentages","#keys-pie-graph",e,t,o,n,s)})}(e,t,o,n),setInterval(function(){!function(t,o,n,s){var e=u(p[t],3),a=e[0],i=e[1],r=e[2];Promise.all([a(s),i(s),r(s)]).then(function(e){(0,c.updateGraph)("score_graph","#score-graph",e,t,o,n,s),(0,c.updateGraph)("category_breakdown","#categories-pie-graph",e,t,o,n,s),(0,c.updateGraph)("solve_percentages","#keys-pie-graph",e,t,o,n,s)})}(e,t,o,n)},3e5)})},"./CTFd/themes/admin/assets/js/styles.js":function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,o("./node_modules/bootstrap/dist/js/bootstrap.bundle.js");var n,s=o("./CTFd/themes/core/assets/js/utils.js"),a=(n=o("./node_modules/jquery/dist/jquery.js"))&&n.__esModule?n:{default:n};t.default=function(){(0,a.default)(":input").each(function(){(0,a.default)(this).data("initial",(0,a.default)(this).val())}),(0,a.default)(".form-control").bind({focus:function(){(0,a.default)(this).addClass("input-filled-valid")},blur:function(){""===(0,a.default)(this).val()&&(0,a.default)(this).removeClass("input-filled-valid")}}),(0,a.default)(".modal").on("show.bs.modal",function(e){(0,a.default)(".form-control").each(function(){(0,a.default)(this).val()&&(0,a.default)(this).addClass("input-filled-valid")})}),(0,a.default)(function(){(0,a.default)(".form-control").each(function(){(0,a.default)(this).val()&&(0,a.default)(this).addClass("input-filled-valid")}),(0,a.default)("tr[data-href]").click(function(){if(!getSelection().toString()){var e=(0,a.default)(this).attr("data-href");e&&(window.location=e)}return!1}),(0,a.default)("[data-checkbox]").click(function(e){(0,a.default)(e.target).is("input[type=checkbox]")?e.stopImmediatePropagation():((0,a.default)(this).find("input[type=checkbox]").click(),e.stopImmediatePropagation())}),(0,a.default)("[data-checkbox-all]").on("click change",function(e){var t=(0,a.default)(this).prop("checked"),o=(0,a.default)(this).index()+1;(0,a.default)(this).closest("table").find("tr td:nth-child(".concat(o,") input[type=checkbox]")).prop("checked",t),e.stopImmediatePropagation()}),(0,a.default)("tr[data-href] a, tr[data-href] button").click(function(e){(0,a.default)(this).attr("data-dismiss")||e.stopPropagation()}),(0,a.default)(".page-select").change(function(){var e=new URL(window.location);e.searchParams.set("page",this.value),window.location.href=e.toString()}),(0,s.makeSortableTables)(),(0,a.default)('[data-toggle="tooltip"]').tooltip()})}},"./CTFd/themes/core/assets/js/CTFd.js":function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=d(o("./CTFd/themes/core/assets/js/fetch.js")),s=d(o("./CTFd/themes/core/assets/js/config.js")),a=o("./CTFd/themes/core/assets/js/api.js");o("./CTFd/themes/core/assets/js/patch.js");var i=d(o("./node_modules/markdown-it/index.js")),r=d(o("./node_modules/jquery/dist/jquery.js")),l=d(o("./CTFd/themes/core/assets/js/ezq.js"));function d(e){return e&&e.__esModule?e:{default:e}}function c(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var u=new a.API("/"),m={},p={ezq:l.default},f={$:r.default,markdown:function(e){var t=function(t){for(var e=1;e".concat(e.body,"

")):o.find(".modal-body").append((0,r.default)(e.body));var n=(0,r.default)(c.format(e.button));return e.success&&(0,r.default)(n).click(function(){e.success()}),e.large&&o.find(".modal-dialog").addClass("modal-lg"),o.find(".modal-footer").append(n),(0,r.default)("main").append(o),o.modal("show"),(0,r.default)(o).on("hidden.bs.modal",function(){(0,r.default)(this).modal("dispose")}),o}function f(e){(0,r.default)("#ezq--notifications-toast-container").length||(0,r.default)("body").append((0,r.default)("
").attr({id:"ezq--notifications-toast-container"}).css({position:"fixed",bottom:"0",right:"0","min-width":"20%"}));var t=l.format(e.title,e.body),o=(0,r.default)(t);if(e.onclose&&(0,r.default)(o).find("button[data-dismiss=toast]").click(function(){e.onclose()}),e.onclick){var n=(0,r.default)(o).find(".toast-body");n.addClass("cursor-pointer"),n.click(function(){e.onclick()})}var s=!1!==e.autohide,a=!1!==e.animation,i=e.delay||1e4;return(0,r.default)("#ezq--notifications-toast-container").prepend(o),o.toast({autohide:s,delay:i,animation:a}),o.toast("show"),o}function j(e){var t=a.format(e.title),o=(0,r.default)(t);"string"==typeof e.body?o.find(".modal-body").append("

".concat(e.body,"

")):o.find(".modal-body").append((0,r.default)(e.body));var n=(0,r.default)(m),s=(0,r.default)(u);return o.find(".modal-footer").append(s),o.find(".modal-footer").append(n),(0,r.default)("main").append(o),(0,r.default)(o).on("hidden.bs.modal",function(){(0,r.default)(this).modal("dispose")}),(0,r.default)(n).click(function(){e.success()}),o.modal("show"),o}function h(e){if(e.target){var t=(0,r.default)(e.target);return t.find(".progress-bar").css("width",e.width+"%"),t}var o=i.format(e.width),n=a.format(e.title),s=(0,r.default)(n);return s.find(".modal-body").append((0,r.default)(o)),(0,r.default)("main").append(s),s.modal("show")}function _(e){var t={success:d,error:s}[e.type].format(e.body);return(0,r.default)(t)}var g={ezAlert:p,ezToast:f,ezQuery:j,ezProgressBar:h,ezBadge:_};t.default=g},"./CTFd/themes/core/assets/js/fetch.js":function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,o("./node_modules/whatwg-fetch/fetch.js");var n,s=(n=o("./CTFd/themes/core/assets/js/config.js"))&&n.__esModule?n:{default:n};var a=window.fetch;t.default=function(e,t){return void 0===t&&(t={method:"GET",credentials:"same-origin",headers:{}}),e=s.default.urlRoot+e,void 0===t.headers&&(t.headers={}),t.credentials="same-origin",t.headers.Accept="application/json",t.headers["Content-Type"]="application/json",t.headers["CSRF-Token"]=s.default.csrfNonce,a(e,t)}},"./CTFd/themes/core/assets/js/graphs.js":function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.createGraph=function(e,t,o,n,s,a,i){var r=f[e],l=(0,c.default)(t);if(l.empty(),void 0===l[0])return void console.log("Couldn't find graph target: "+t);l[0].fn=r.fn(n,s,a,i);var d=r.format(n,s,a,i,o);u.default.newPlot(l[0],d,r.layout,j)},t.updateGraph=function(e,t,o,n,s,a,i){var r=f[e],l=(0,c.default)(t),d=r.format(n,s,a,i,o);u.default.update(l[0],d,r.layout,j)};var c=n(o("./node_modules/jquery/dist/jquery.js")),u=n(o("./node_modules/plotly.js-basic-dist/plotly-basic.js")),m=n(o("./node_modules/moment/moment.js")),p=o("./CTFd/themes/core/assets/js/utils.js");function n(e){return e&&e.__esModule?e:{default:e}}var f={score_graph:{layout:{title:"Score over Time",paper_bgcolor:"rgba(0,0,0,0)",plot_bgcolor:"rgba(0,0,0,0)",hovermode:"closest",xaxis:{showgrid:!1,showspikes:!0},yaxis:{showgrid:!1,showspikes:!0},legend:{orientation:"h"}},fn:function(e,t,o,n){return"CTFd_score_".concat(e,"_").concat(o,"_").concat(t,"_").concat((new Date).toISOString().slice(0,19))},format:function(e,t,o,n,s){var a=[],i=[],r=s[0].data,l=s[2].data,d=r.concat(l);d.sort(function(e,t){return new Date(e.date)-new Date(t.date)});for(var c=0;c>8*s&255).toString(16)).substr(-2)}return n},t.htmlEntities=function(e){return(0,i.default)("
").text(e).html()},t.cumulativeSum=function(e){for(var t=e.concat(),o=0;o'),(0,i.default)("th.sort-col").click(function(){var e=(0,i.default)(this).parents("table").eq(0),t=e.find("tr:gt(0)").toArray().sort(function(s){return function(e,t){var o=a(e,s),n=a(t,s);return i.default.isNumeric(o)&&i.default.isNumeric(n)?o-n:o.toString().localeCompare(n)}}((0,i.default)(this).index()));this.asc=!this.asc,this.asc||(t=t.reverse());for(var o=0;o #results").empty(),Object.keys(s.errors).forEach(function(e,t){(0,u.default)("#team-info-form > #results").append((0,i.ezBadge)({type:"error",body:s.errors[e]}));var o=(0,u.default)("#team-info-form").find("input[name={0}]".format(e)),n=(0,u.default)(o);n.addClass("input-filled-invalid"),n.removeClass("input-filled-valid")})})}function c(e){e.preventDefault();var t=(0,u.default)("#team-info-edit-form").serializeJSON(!0);m.default.fetch("/api/v1/teams/"+TEAM_ID,{method:"PATCH",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}).then(function(e){return e.json()}).then(function(s){s.success?window.location.reload():((0,u.default)("#team-info-form > #results").empty(),Object.keys(s.errors).forEach(function(e,t){(0,u.default)("#team-info-form > #results").append((0,i.ezBadge)({type:"error",body:s.errors[e]}));var o=(0,u.default)("#team-info-form").find("input[name={0}]".format(e)),n=(0,u.default)(o);n.addClass("input-filled-invalid"),n.removeClass("input-filled-valid")}))})}function p(e,t){var o,n,s;switch(t){case"solves":o=(0,u.default)("input[data-submission-type=correct]:checked"),n="solve",s="Solves";break;case"fails":o=(0,u.default)("input[data-submission-type=incorrect]:checked"),n="fail",s="Fails"}var r=o.map(function(){return(0,u.default)(this).data("submission-id")}),a=1===r.length?n:n+"s";(0,i.ezQuery)({title:"Delete ".concat(s),body:"Are you sure you want to delete ".concat(r.length," ").concat(a,"?"),success:function(){var e=[],t=!0,o=!1,n=void 0;try{for(var s,a=r[Symbol.iterator]();!(t=(s=a.next()).done);t=!0){var i=s.value;e.push(m.default.api.delete_submission({submissionId:i}))}}catch(e){o=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(o)throw n}}Promise.all(e).then(function(e){window.location.reload()})}})}var f={team:[function(e){return m.default.api.get_team_solves({teamId:e})},function(e){return m.default.api.get_team_fails({teamId:e})},function(e){return m.default.api.get_team_awards({teamId:e})}],user:[function(e){return m.default.api.get_user_solves({userId:e})},function(e){return m.default.api.get_user_fails({userId:e})},function(e){return m.default.api.get_user_awards({userId:e})}]};(0,u.default)(function(){var e,t,o,n;(0,u.default)("#team-captain-form").submit(function(e){e.preventDefault();var t=(0,u.default)("#team-captain-form").serializeJSON(!0);m.default.fetch("/api/v1/teams/"+TEAM_ID,{method:"PATCH",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}).then(function(e){return e.json()}).then(function(s){s.success?window.location.reload():((0,u.default)("#team-captain-form > #results").empty(),Object.keys(s.errors).forEach(function(e,t){(0,u.default)("#team-captain-form > #results").append((0,i.ezBadge)({type:"error",body:s.errors[e]}));var o=(0,u.default)("#team-captain-form").find("select[name={0}]".format(e)),n=(0,u.default)(o);n.addClass("input-filled-invalid"),n.removeClass("input-filled-valid")}))})}),(0,u.default)(".edit-team").click(function(e){(0,u.default)("#team-info-edit-modal").modal("toggle")}),(0,u.default)(".edit-captain").click(function(e){(0,u.default)("#team-captain-modal").modal("toggle")}),(0,u.default)(".award-team").click(function(e){(0,u.default)("#team-award-modal").modal("toggle")}),(0,u.default)(".addresses-team").click(function(e){(0,u.default)("#team-addresses-modal").modal("toggle")}),(0,u.default)("#user-award-form").submit(function(e){e.preventDefault();var t=(0,u.default)("#user-award-form").serializeJSON(!0);t.user_id=(0,u.default)("#award-member-input").val(),t.team_id=TEAM_ID,(0,u.default)("#user-award-form > #results").empty(),t.user_id?(t.user_id=parseInt(t.user_id),m.default.fetch("/api/v1/awards",{method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}).then(function(e){return e.json()}).then(function(s){s.success?window.location.reload():((0,u.default)("#user-award-form > #results").empty(),Object.keys(s.errors).forEach(function(e,t){(0,u.default)("#user-award-form > #results").append((0,i.ezBadge)({type:"error",body:s.errors[e]}));var o=(0,u.default)("#user-award-form").find("input[name={0}]".format(e)),n=(0,u.default)(o);n.addClass("input-filled-invalid"),n.removeClass("input-filled-valid")}))})):(0,u.default)("#user-award-form > #results").append((0,i.ezBadge)({type:"error",body:"Please select a team member"}))}),(0,u.default)(".delete-member").click(function(e){e.preventDefault();var t=(0,u.default)(this).attr("member-id"),o=(0,u.default)(this).attr("member-name"),n={user_id:t},s=(0,u.default)(this).parent().parent();(0,i.ezQuery)({title:"Remove Member",body:"Are you sure you want to remove {0} from {1}?

All of their challenges solves, attempts, awards, and unlocked hints will also be deleted!".format(""+(0,a.htmlEntities)(o)+"",""+(0,a.htmlEntities)(TEAM_NAME)+""),success:function(){m.default.fetch("/api/v1/teams/"+TEAM_ID+"/members",{method:"DELETE",body:JSON.stringify(n)}).then(function(e){return e.json()}).then(function(e){e.success&&s.remove()})}})}),(0,u.default)(".delete-team").click(function(e){(0,i.ezQuery)({title:"Delete Team",body:"Are you sure you want to delete {0}".format(""+(0,a.htmlEntities)(TEAM_NAME)+""),success:function(){m.default.fetch("/api/v1/teams/"+TEAM_ID,{method:"DELETE"}).then(function(e){return e.json()}).then(function(e){e.success&&(window.location=m.default.config.urlRoot+"/admin/teams")})}})}),(0,u.default)("#solves-delete-button").click(function(e){p(0,"solves")}),(0,u.default)("#fails-delete-button").click(function(e){p(0,"fails")}),(0,u.default)("#awards-delete-button").click(function(e){!function(){var l=(0,u.default)("input[data-award-id]:checked").map(function(){return(0,u.default)(this).data("award-id")}),e=1===l.length?"award":"awards";(0,i.ezQuery)({title:"Delete Awards",body:"Are you sure you want to delete ".concat(l.length," ").concat(e,"?"),success:function(){var e=[],t=!0,o=!1,n=void 0;try{for(var s,a=l[Symbol.iterator]();!(t=(s=a.next()).done);t=!0){var i=s.value,r=m.default.fetch("/api/v1/awards/"+i,{method:"DELETE",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}});e.push(r)}}catch(e){o=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(o)throw n}}Promise.all(e).then(function(e){window.location.reload()})}})}()}),(0,u.default)("#missing-solve-button").click(function(e){!function(e){e.preventDefault();var c=(0,u.default)("input[data-missing-challenge-id]:checked").map(function(){return(0,u.default)(this).data("missing-challenge-id")});c.length,(0,i.ezQuery)({title:"Mark Correct",body:"Are you sure you want to mark ".concat(c.length," correct for ").concat((0,a.htmlEntities)(TEAM_NAME),"?"),success:function(){(0,i.ezAlert)({title:"User Attribution",body:"\n Which user on ".concat((0,a.htmlEntities)(TEAM_NAME),' solved these challenges?\n
\n ').concat((0,u.default)("#team-member-select").html(),"\n
\n "),button:"Mark Correct",success:function(){var e=(0,u.default)("#query-team-member-solve > select").val(),t=[],o=!0,n=!1,s=void 0;try{for(var a,i=c[Symbol.iterator]();!(o=(a=i.next()).done);o=!0){var r=a.value,l={provided:"MARKED AS SOLVED BY ADMIN",user_id:e,team_id:TEAM_ID,challenge_id:r,type:"correct"},d=m.default.fetch("/api/v1/submissions",{method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(l)});t.push(d)}}catch(e){n=!0,s=e}finally{try{o||null==i.return||i.return()}finally{if(n)throw s}}Promise.all(t).then(function(e){window.location.reload()})}})}})}(e)}),(0,u.default)("#team-info-create-form").submit(r),(0,u.default)("#team-info-edit-form").submit(c);var s=window.stats_data;e=s.type,t=s.id,o=s.name,n=s.account_id,function(t,o,n,s){var e=d(f[t],3),a=e[0],i=e[1],r=e[2];Promise.all([a(s),i(s),r(s)]).then(function(e){(0,l.createGraph)("score_graph","#score-graph",e,t,o,n,s),(0,l.createGraph)("category_breakdown","#categories-pie-graph",e,t,o,n,s),(0,l.createGraph)("solve_percentages","#keys-pie-graph",e,t,o,n,s)})}(e,t,o,n),setInterval(function(){!function(t,o,n,s){var e=d(f[t],3),a=e[0],i=e[1],r=e[2];Promise.all([a(s),i(s),r(s)]).then(function(e){(0,l.updateGraph)("score_graph","#score-graph",e,t,o,n,s),(0,l.updateGraph)("category_breakdown","#categories-pie-graph",e,t,o,n,s),(0,l.updateGraph)("solve_percentages","#keys-pie-graph",e,t,o,n,s)})}(e,t,o,n)},3e5)})},"./CTFd/themes/admin/assets/js/styles.js":function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,o("./node_modules/bootstrap/dist/js/bootstrap.bundle.js");var n,s=o("./CTFd/themes/core/assets/js/utils.js"),a=(n=o("./node_modules/jquery/dist/jquery.js"))&&n.__esModule?n:{default:n};t.default=function(){(0,a.default)(":input").each(function(){(0,a.default)(this).data("initial",(0,a.default)(this).val())}),(0,a.default)(".form-control").bind({focus:function(){(0,a.default)(this).addClass("input-filled-valid")},blur:function(){""===(0,a.default)(this).val()&&(0,a.default)(this).removeClass("input-filled-valid")}}),(0,a.default)(".modal").on("show.bs.modal",function(e){(0,a.default)(".form-control").each(function(){(0,a.default)(this).val()&&(0,a.default)(this).addClass("input-filled-valid")})}),(0,a.default)(function(){(0,a.default)(".form-control").each(function(){(0,a.default)(this).val()&&(0,a.default)(this).addClass("input-filled-valid")}),(0,a.default)("tr[data-href]").click(function(){if(!getSelection().toString()){var e=(0,a.default)(this).attr("data-href");e&&(window.location=e)}return!1}),(0,a.default)("[data-checkbox]").click(function(e){(0,a.default)(e.target).is("input[type=checkbox]")?e.stopImmediatePropagation():((0,a.default)(this).find("input[type=checkbox]").click(),e.stopImmediatePropagation())}),(0,a.default)("[data-checkbox-all]").on("click change",function(e){var t=(0,a.default)(this).prop("checked"),o=(0,a.default)(this).index()+1;(0,a.default)(this).closest("table").find("tr td:nth-child(".concat(o,") input[type=checkbox]")).prop("checked",t),e.stopImmediatePropagation()}),(0,a.default)("tr[data-href] a, tr[data-href] button").click(function(e){(0,a.default)(this).attr("data-dismiss")||e.stopPropagation()}),(0,a.default)(".page-select").change(function(){var e=new URL(window.location);e.searchParams.set("page",this.value),window.location.href=e.toString()}),(0,s.makeSortableTables)(),(0,a.default)('[data-toggle="tooltip"]').tooltip()})}},"./CTFd/themes/core/assets/js/CTFd.js":function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=d(o("./CTFd/themes/core/assets/js/fetch.js")),s=d(o("./CTFd/themes/core/assets/js/config.js")),a=o("./CTFd/themes/core/assets/js/api.js");o("./CTFd/themes/core/assets/js/patch.js");var i=d(o("./node_modules/markdown-it/index.js")),r=d(o("./node_modules/jquery/dist/jquery.js")),l=d(o("./CTFd/themes/core/assets/js/ezq.js"));function d(e){return e&&e.__esModule?e:{default:e}}function c(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var u=new a.API("/"),m={},p={ezq:l.default},f={$:r.default,markdown:function(e){var t=function(t){for(var e=1;e".concat(e.body,"

")):o.find(".modal-body").append((0,r.default)(e.body));var n=(0,r.default)(c.format(e.button));return e.success&&(0,r.default)(n).click(function(){e.success()}),e.large&&o.find(".modal-dialog").addClass("modal-lg"),o.find(".modal-footer").append(n),(0,r.default)("main").append(o),o.modal("show"),(0,r.default)(o).on("hidden.bs.modal",function(){(0,r.default)(this).modal("dispose")}),o}function f(e){(0,r.default)("#ezq--notifications-toast-container").length||(0,r.default)("body").append((0,r.default)("
").attr({id:"ezq--notifications-toast-container"}).css({position:"fixed",bottom:"0",right:"0","min-width":"20%"}));var t=l.format(e.title,e.body),o=(0,r.default)(t);if(e.onclose&&(0,r.default)(o).find("button[data-dismiss=toast]").click(function(){e.onclose()}),e.onclick){var n=(0,r.default)(o).find(".toast-body");n.addClass("cursor-pointer"),n.click(function(){e.onclick()})}var s=!1!==e.autohide,a=!1!==e.animation,i=e.delay||1e4;return(0,r.default)("#ezq--notifications-toast-container").prepend(o),o.toast({autohide:s,delay:i,animation:a}),o.toast("show"),o}function j(e){var t=a.format(e.title),o=(0,r.default)(t);"string"==typeof e.body?o.find(".modal-body").append("

".concat(e.body,"

")):o.find(".modal-body").append((0,r.default)(e.body));var n=(0,r.default)(m),s=(0,r.default)(u);return o.find(".modal-footer").append(s),o.find(".modal-footer").append(n),(0,r.default)("main").append(o),(0,r.default)(o).on("hidden.bs.modal",function(){(0,r.default)(this).modal("dispose")}),(0,r.default)(n).click(function(){e.success()}),o.modal("show"),o}function h(e){if(e.target){var t=(0,r.default)(e.target);return t.find(".progress-bar").css("width",e.width+"%"),t}var o=i.format(e.width),n=a.format(e.title),s=(0,r.default)(n);return s.find(".modal-body").append((0,r.default)(o)),(0,r.default)("main").append(s),s.modal("show")}function _(e){var t={success:d,error:s}[e.type].format(e.body);return(0,r.default)(t)}var g={ezAlert:p,ezToast:f,ezQuery:j,ezProgressBar:h,ezBadge:_};t.default=g},"./CTFd/themes/core/assets/js/fetch.js":function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,o("./node_modules/whatwg-fetch/fetch.js");var n,s=(n=o("./CTFd/themes/core/assets/js/config.js"))&&n.__esModule?n:{default:n};var a=window.fetch;t.default=function(e,t){return void 0===t&&(t={method:"GET",credentials:"same-origin",headers:{}}),e=s.default.urlRoot+e,void 0===t.headers&&(t.headers={}),t.credentials="same-origin",t.headers.Accept="application/json",t.headers["Content-Type"]="application/json",t.headers["CSRF-Token"]=s.default.csrfNonce,a(e,t)}},"./CTFd/themes/core/assets/js/graphs.js":function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.createGraph=function(e,t,o,n,s,a,i){var r=f[e],l=(0,c.default)(t);if(l.empty(),void 0===l[0])return void console.log("Couldn't find graph target: "+t);l[0].fn=r.fn(n,s,a,i);var d=r.format(n,s,a,i,o);u.default.newPlot(l[0],d,r.layout,j)},t.updateGraph=function(e,t,o,n,s,a,i){var r=f[e],l=(0,c.default)(t),d=r.format(n,s,a,i,o);u.default.update(l[0],d,r.layout,j)};var c=n(o("./node_modules/jquery/dist/jquery.js")),u=n(o("./node_modules/plotly.js-basic-dist/plotly-basic.js")),m=n(o("./node_modules/moment/moment.js")),p=o("./CTFd/themes/core/assets/js/utils.js");function n(e){return e&&e.__esModule?e:{default:e}}var f={score_graph:{layout:{title:"Score over Time",paper_bgcolor:"rgba(0,0,0,0)",plot_bgcolor:"rgba(0,0,0,0)",hovermode:"closest",xaxis:{showgrid:!1,showspikes:!0},yaxis:{showgrid:!1,showspikes:!0},legend:{orientation:"h"}},fn:function(e,t,o,n){return"CTFd_score_".concat(e,"_").concat(o,"_").concat(t,"_").concat((new Date).toISOString().slice(0,19))},format:function(e,t,o,n,s){var a=[],i=[],r=s[0].data,l=s[2].data,d=r.concat(l);d.sort(function(e,t){return new Date(e.date)-new Date(t.date)});for(var c=0;c>8*s&255).toString(16)).substr(-2)}return n},t.htmlEntities=function(e){return(0,i.default)("
").text(e).html()},t.cumulativeSum=function(e){for(var t=e.concat(),o=0;o'),(0,i.default)("th.sort-col").click(function(){var e=(0,i.default)(this).parents("table").eq(0),t=e.find("tr:gt(0)").toArray().sort(function(s){return function(e,t){var o=a(e,s),n=a(t,s);return i.default.isNumeric(o)&&i.default.isNumeric(n)?o-n:o.toString().localeCompare(n)}}((0,i.default)(this).index()));this.asc=!this.asc,this.asc||(t=t.reverse());for(var o=0;o #results").empty(),Object.keys(s.errors).forEach(function(e,t){(0,i.default)("#user-info-create-form > #results").append((0,d.ezBadge)({type:"error",body:s.errors[e]}));var o=(0,i.default)("#user-info-form").find("input[name={0}]".format(e)),n=(0,i.default)(o);n.addClass("input-filled-invalid"),n.removeClass("input-filled-valid")})})}function m(e){e.preventDefault();var t=(0,i.default)("#user-info-edit-form").serializeJSON(!0);r.default.fetch("/api/v1/users/"+USER_ID,{method:"PATCH",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}).then(function(e){return e.json()}).then(function(s){s.success?window.location.reload():((0,i.default)("#user-info-edit-form > #results").empty(),Object.keys(s.errors).forEach(function(e,t){(0,i.default)("#user-info-edit-form > #results").append((0,d.ezBadge)({type:"error",body:s.errors[e]}));var o=(0,i.default)("#user-info-edit-form").find("input[name={0}]".format(e)),n=(0,i.default)(o);n.addClass("input-filled-invalid"),n.removeClass("input-filled-valid")}))})}function p(e){e.preventDefault(),(0,d.ezQuery)({title:"Delete User",body:"Are you sure you want to delete {0}".format(""+(0,l.htmlEntities)(USER_NAME)+""),success:function(){r.default.fetch("/api/v1/users/"+USER_ID,{method:"DELETE"}).then(function(e){return e.json()}).then(function(e){e.success&&(window.location=r.default.config.urlRoot+"/admin/users")})}})}function f(e){e.preventDefault();var t=(0,i.default)("#user-award-form").serializeJSON(!0);t.user_id=USER_ID,r.default.fetch("/api/v1/awards",{method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}).then(function(e){return e.json()}).then(function(s){s.success?window.location.reload():((0,i.default)("#user-award-form > #results").empty(),Object.keys(s.errors).forEach(function(e,t){(0,i.default)("#user-award-form > #results").append((0,d.ezBadge)({type:"error",body:s.errors[e]}));var o=(0,i.default)("#user-award-form").find("input[name={0}]".format(e)),n=(0,i.default)(o);n.addClass("input-filled-invalid"),n.removeClass("input-filled-valid")}))})}function j(e){e.preventDefault();var t=(0,i.default)("#user-mail-form").serializeJSON(!0);r.default.fetch("/api/v1/users/"+USER_ID+"/email",{method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}).then(function(e){return e.json()}).then(function(s){s.success?((0,i.default)("#user-mail-form > #results").append((0,d.ezBadge)({type:"success",body:"E-Mail sent successfully!"})),(0,i.default)("#user-mail-form").find("input[type=text], textarea").val("")):((0,i.default)("#user-mail-form > #results").empty(),Object.keys(s.errors).forEach(function(e,t){(0,i.default)("#user-mail-form > #results").append((0,d.ezBadge)({type:"error",body:s.errors[e]}));var o=(0,i.default)("#user-mail-form").find("input[name={0}], textarea[name={0}]".format(e)),n=(0,i.default)(o);n.addClass("input-filled-invalid"),n.removeClass("input-filled-valid")}))})}function h(e){e.preventDefault();var t=(0,i.default)(this).attr("submission-id"),o=(0,i.default)(this).attr("submission-type"),n=(0,i.default)(this).attr("submission-challenge"),s="Are you sure you want to delete {0} submission from {1} for {2}?".format((0,l.htmlEntities)(o),(0,l.htmlEntities)(USER_NAME),(0,l.htmlEntities)(n)),a=(0,i.default)(this).parent().parent();(0,d.ezQuery)({title:"Delete Submission",body:s,success:function(){r.default.fetch("/api/v1/submissions/"+t,{method:"DELETE",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}}).then(function(e){return e.json()}).then(function(e){e.success&&a.remove()})}})}function _(e){e.preventDefault();var t=(0,i.default)(this).attr("award-id"),o=(0,i.default)(this).attr("award-name"),n="Are you sure you want to delete the {0} award from {1}?".format((0,l.htmlEntities)(o),(0,l.htmlEntities)(USER_NAME)),s=(0,i.default)(this).parent().parent();(0,d.ezQuery)({title:"Delete Award",body:n,success:function(){r.default.fetch("/api/v1/awards/"+t,{method:"DELETE",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}}).then(function(e){return e.json()}).then(function(e){e.success&&s.remove()})}})}function g(e){e.preventDefault();var t=(0,i.default)(this).attr("challenge-id"),o=(0,i.default)(this).attr("challenge-name"),n=(0,i.default)(this).parent().parent(),s="Are you sure you want to mark {0} solved for from {1}?".format((0,l.htmlEntities)(o),(0,l.htmlEntities)(USER_NAME)),a={provided:"MARKED AS SOLVED BY ADMIN",user_id:USER_ID,team_id:TEAM_ID,challenge_id:t,type:"correct"};(0,d.ezQuery)({title:"Mark Correct",body:s,success:function(){r.default.fetch("/api/v1/submissions",{method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(a)}).then(function(e){return e.json()}).then(function(e){e.success&&(n.remove(),window.location.reload())})}})}var v={team:[function(e){return r.default.api.get_team_solves({teamId:e})},function(e){return r.default.api.get_team_fails({teamId:e})},function(e){return r.default.api.get_team_awards({teamId:e})}],user:[function(e){return r.default.api.get_user_solves({userId:e})},function(e){return r.default.api.get_user_fails({userId:e})},function(e){return r.default.api.get_user_awards({userId:e})}]};(0,i.default)(function(){var e,t,o,n;(0,i.default)(".delete-user").click(p),(0,i.default)(".edit-user").click(function(e){(0,i.default)("#user-info-modal").modal("toggle")}),(0,i.default)(".award-user").click(function(e){(0,i.default)("#user-award-modal").modal("toggle")}),(0,i.default)(".email-user").click(function(e){(0,i.default)("#user-email-modal").modal("toggle")}),(0,i.default)(".addresses-user").click(function(e){(0,i.default)("#user-addresses-modal").modal("toggle")}),(0,i.default)("#user-mail-form").submit(j),(0,i.default)(".delete-submission").click(h),(0,i.default)(".delete-award").click(_),(0,i.default)(".correct-submission").click(g),(0,i.default)("#user-info-create-form").submit(a),(0,i.default)("#user-info-edit-form").submit(m),(0,i.default)("#user-award-form").submit(f);var s=window.stats_data;e=s.type,t=s.id,o=s.name,n=s.account_id,function(t,o,n,s){var e=u(v[t],3),a=e[0],i=e[1],r=e[2];Promise.all([a(s),i(s),r(s)]).then(function(e){(0,c.createGraph)("score_graph","#score-graph",e,t,o,n,s),(0,c.createGraph)("category_breakdown","#categories-pie-graph",e,t,o,n,s),(0,c.createGraph)("solve_percentages","#keys-pie-graph",e,t,o,n,s)})}(e,t,o,n),setInterval(function(){!function(t,o,n,s){var e=u(v[t],3),a=e[0],i=e[1],r=e[2];Promise.all([a(s),i(s),r(s)]).then(function(e){(0,c.updateGraph)("score_graph","#score-graph",e,t,o,n,s),(0,c.updateGraph)("category_breakdown","#categories-pie-graph",e,t,o,n,s),(0,c.updateGraph)("solve_percentages","#keys-pie-graph",e,t,o,n,s)})}(e,t,o,n)},3e5)})},"./CTFd/themes/admin/assets/js/styles.js":function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,o("./node_modules/bootstrap/dist/js/bootstrap.bundle.js");var n,s=o("./CTFd/themes/core/assets/js/utils.js"),a=(n=o("./node_modules/jquery/dist/jquery.js"))&&n.__esModule?n:{default:n};t.default=function(){(0,a.default)(":input").each(function(){(0,a.default)(this).data("initial",(0,a.default)(this).val())}),(0,a.default)(".form-control").bind({focus:function(){(0,a.default)(this).addClass("input-filled-valid")},blur:function(){""===(0,a.default)(this).val()&&(0,a.default)(this).removeClass("input-filled-valid")}}),(0,a.default)(".modal").on("show.bs.modal",function(e){(0,a.default)(".form-control").each(function(){(0,a.default)(this).val()&&(0,a.default)(this).addClass("input-filled-valid")})}),(0,a.default)(function(){(0,a.default)(".form-control").each(function(){(0,a.default)(this).val()&&(0,a.default)(this).addClass("input-filled-valid")}),(0,a.default)("tr[data-href]").click(function(){if(!getSelection().toString()){var e=(0,a.default)(this).attr("data-href");e&&(window.location=e)}return!1}),(0,a.default)("[data-checkbox]").click(function(e){(0,a.default)(e.target).is("input[type=checkbox]")?e.stopImmediatePropagation():((0,a.default)(this).find("input[type=checkbox]").click(),e.stopImmediatePropagation())}),(0,a.default)("[data-checkbox-all]").on("click change",function(e){var t=(0,a.default)(this).prop("checked"),o=(0,a.default)(this).index()+1;(0,a.default)(this).closest("table").find("tr td:nth-child(".concat(o,") input[type=checkbox]")).prop("checked",t),e.stopImmediatePropagation()}),(0,a.default)("tr[data-href] a, tr[data-href] button").click(function(e){(0,a.default)(this).attr("data-dismiss")||e.stopPropagation()}),(0,a.default)(".page-select").change(function(){var e=new URL(window.location);e.searchParams.set("page",this.value),window.location.href=e.toString()}),(0,s.makeSortableTables)(),(0,a.default)('[data-toggle="tooltip"]').tooltip()})}},"./CTFd/themes/core/assets/js/CTFd.js":function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=d(o("./CTFd/themes/core/assets/js/fetch.js")),s=d(o("./CTFd/themes/core/assets/js/config.js")),a=o("./CTFd/themes/core/assets/js/api.js");o("./CTFd/themes/core/assets/js/patch.js");var i=d(o("./node_modules/markdown-it/index.js")),r=d(o("./node_modules/jquery/dist/jquery.js")),l=d(o("./CTFd/themes/core/assets/js/ezq.js"));function d(e){return e&&e.__esModule?e:{default:e}}function c(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var u=new a.API("/"),m={},p={ezq:l.default},f={$:r.default,markdown:function(e){var t=function(t){for(var e=1;e".concat(e.body,"

")):o.find(".modal-body").append((0,r.default)(e.body));var n=(0,r.default)(c.format(e.button));return e.success&&(0,r.default)(n).click(function(){e.success()}),e.large&&o.find(".modal-dialog").addClass("modal-lg"),o.find(".modal-footer").append(n),(0,r.default)("main").append(o),o.modal("show"),(0,r.default)(o).on("hidden.bs.modal",function(){(0,r.default)(this).modal("dispose")}),o}function f(e){(0,r.default)("#ezq--notifications-toast-container").length||(0,r.default)("body").append((0,r.default)("
").attr({id:"ezq--notifications-toast-container"}).css({position:"fixed",bottom:"0",right:"0","min-width":"20%"}));var t=l.format(e.title,e.body),o=(0,r.default)(t);if(e.onclose&&(0,r.default)(o).find("button[data-dismiss=toast]").click(function(){e.onclose()}),e.onclick){var n=(0,r.default)(o).find(".toast-body");n.addClass("cursor-pointer"),n.click(function(){e.onclick()})}var s=!1!==e.autohide,a=!1!==e.animation,i=e.delay||1e4;return(0,r.default)("#ezq--notifications-toast-container").prepend(o),o.toast({autohide:s,delay:i,animation:a}),o.toast("show"),o}function j(e){var t=a.format(e.title),o=(0,r.default)(t);"string"==typeof e.body?o.find(".modal-body").append("

".concat(e.body,"

")):o.find(".modal-body").append((0,r.default)(e.body));var n=(0,r.default)(m),s=(0,r.default)(u);return o.find(".modal-footer").append(s),o.find(".modal-footer").append(n),(0,r.default)("main").append(o),(0,r.default)(o).on("hidden.bs.modal",function(){(0,r.default)(this).modal("dispose")}),(0,r.default)(n).click(function(){e.success()}),o.modal("show"),o}function h(e){if(e.target){var t=(0,r.default)(e.target);return t.find(".progress-bar").css("width",e.width+"%"),t}var o=i.format(e.width),n=a.format(e.title),s=(0,r.default)(n);return s.find(".modal-body").append((0,r.default)(o)),(0,r.default)("main").append(s),s.modal("show")}function _(e){var t={success:d,error:s}[e.type].format(e.body);return(0,r.default)(t)}var g={ezAlert:p,ezToast:f,ezQuery:j,ezProgressBar:h,ezBadge:_};t.default=g},"./CTFd/themes/core/assets/js/fetch.js":function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,o("./node_modules/whatwg-fetch/fetch.js");var n,s=(n=o("./CTFd/themes/core/assets/js/config.js"))&&n.__esModule?n:{default:n};var a=window.fetch;t.default=function(e,t){return void 0===t&&(t={method:"GET",credentials:"same-origin",headers:{}}),e=s.default.urlRoot+e,void 0===t.headers&&(t.headers={}),t.credentials="same-origin",t.headers.Accept="application/json",t.headers["Content-Type"]="application/json",t.headers["CSRF-Token"]=s.default.csrfNonce,a(e,t)}},"./CTFd/themes/core/assets/js/graphs.js":function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.createGraph=function(e,t,o,n,s,a,i){var r=f[e],l=(0,c.default)(t);if(l.empty(),void 0===l[0])return void console.log("Couldn't find graph target: "+t);l[0].fn=r.fn(n,s,a,i);var d=r.format(n,s,a,i,o);u.default.newPlot(l[0],d,r.layout,j)},t.updateGraph=function(e,t,o,n,s,a,i){var r=f[e],l=(0,c.default)(t),d=r.format(n,s,a,i,o);u.default.update(l[0],d,r.layout,j)};var c=n(o("./node_modules/jquery/dist/jquery.js")),u=n(o("./node_modules/plotly.js-basic-dist/plotly-basic.js")),m=n(o("./node_modules/moment/moment.js")),p=o("./CTFd/themes/core/assets/js/utils.js");function n(e){return e&&e.__esModule?e:{default:e}}var f={score_graph:{layout:{title:"Score over Time",paper_bgcolor:"rgba(0,0,0,0)",plot_bgcolor:"rgba(0,0,0,0)",hovermode:"closest",xaxis:{showgrid:!1,showspikes:!0},yaxis:{showgrid:!1,showspikes:!0},legend:{orientation:"h"}},fn:function(e,t,o,n){return"CTFd_score_".concat(e,"_").concat(o,"_").concat(t,"_").concat((new Date).toISOString().slice(0,19))},format:function(e,t,o,n,s){var a=[],i=[],r=s[0].data,l=s[2].data,d=r.concat(l);d.sort(function(e,t){return new Date(e.date)-new Date(t.date)});for(var c=0;c>8*s&255).toString(16)).substr(-2)}return n},t.htmlEntities=function(e){return(0,i.default)("
").text(e).html()},t.cumulativeSum=function(e){for(var t=e.concat(),o=0;o'),(0,i.default)("th.sort-col").click(function(){var e=(0,i.default)(this).parents("table").eq(0),t=e.find("tr:gt(0)").toArray().sort(function(s){return function(e,t){var o=a(e,s),n=a(t,s);return i.default.isNumeric(o)&&i.default.isNumeric(n)?o-n:o.toString().localeCompare(n)}}((0,i.default)(this).index()));this.asc=!this.asc,this.asc||(t=t.reverse());for(var o=0;o #results").empty(),Object.keys(s.errors).forEach(function(e,t){(0,i.default)("#user-info-create-form > #results").append((0,u.ezBadge)({type:"error",body:s.errors[e]}));var o=(0,i.default)("#user-info-form").find("input[name={0}]".format(e)),n=(0,i.default)(o);n.addClass("input-filled-invalid"),n.removeClass("input-filled-valid")})})}function m(e){e.preventDefault();var t=(0,i.default)("#user-info-edit-form").serializeJSON(!0);c.default.fetch("/api/v1/users/"+USER_ID,{method:"PATCH",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}).then(function(e){return e.json()}).then(function(s){s.success?window.location.reload():((0,i.default)("#user-info-edit-form > #results").empty(),Object.keys(s.errors).forEach(function(e,t){(0,i.default)("#user-info-edit-form > #results").append((0,u.ezBadge)({type:"error",body:s.errors[e]}));var o=(0,i.default)("#user-info-edit-form").find("input[name={0}]".format(e)),n=(0,i.default)(o);n.addClass("input-filled-invalid"),n.removeClass("input-filled-valid")}))})}function p(e){e.preventDefault(),(0,u.ezQuery)({title:"Delete User",body:"Are you sure you want to delete {0}".format(""+(0,a.htmlEntities)(USER_NAME)+""),success:function(){c.default.fetch("/api/v1/users/"+USER_ID,{method:"DELETE"}).then(function(e){return e.json()}).then(function(e){e.success&&(window.location=c.default.config.urlRoot+"/admin/users")})}})}function f(e){e.preventDefault();var t=(0,i.default)("#user-award-form").serializeJSON(!0);t.user_id=USER_ID,c.default.fetch("/api/v1/awards",{method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}).then(function(e){return e.json()}).then(function(s){s.success?window.location.reload():((0,i.default)("#user-award-form > #results").empty(),Object.keys(s.errors).forEach(function(e,t){(0,i.default)("#user-award-form > #results").append((0,u.ezBadge)({type:"error",body:s.errors[e]}));var o=(0,i.default)("#user-award-form").find("input[name={0}]".format(e)),n=(0,i.default)(o);n.addClass("input-filled-invalid"),n.removeClass("input-filled-valid")}))})}function j(e){e.preventDefault();var t=(0,i.default)("#user-mail-form").serializeJSON(!0);c.default.fetch("/api/v1/users/"+USER_ID+"/email",{method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}).then(function(e){return e.json()}).then(function(s){s.success?((0,i.default)("#user-mail-form > #results").append((0,u.ezBadge)({type:"success",body:"E-Mail sent successfully!"})),(0,i.default)("#user-mail-form").find("input[type=text], textarea").val("")):((0,i.default)("#user-mail-form > #results").empty(),Object.keys(s.errors).forEach(function(e,t){(0,i.default)("#user-mail-form > #results").append((0,u.ezBadge)({type:"error",body:s.errors[e]}));var o=(0,i.default)("#user-mail-form").find("input[name={0}], textarea[name={0}]".format(e)),n=(0,i.default)(o);n.addClass("input-filled-invalid"),n.removeClass("input-filled-valid")}))})}function h(e,t){var o,n,s;switch(t){case"solves":o=(0,i.default)("input[data-submission-type=correct]:checked"),n="solve",s="Solves";break;case"fails":o=(0,i.default)("input[data-submission-type=incorrect]:checked"),n="fail",s="Fails"}var r=o.map(function(){return(0,i.default)(this).data("submission-id")}),a=1===r.length?n:n+"s";(0,u.ezQuery)({title:"Delete ".concat(s),body:"Are you sure you want to delete ".concat(r.length," ").concat(a,"?"),success:function(){var e=[],t=!0,o=!1,n=void 0;try{for(var s,a=r[Symbol.iterator]();!(t=(s=a.next()).done);t=!0){var i=s.value;e.push(c.default.api.delete_submission({submissionId:i}))}}catch(e){o=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(o)throw n}}Promise.all(e).then(function(e){window.location.reload()})}})}var _={team:[function(e){return c.default.api.get_team_solves({teamId:e})},function(e){return c.default.api.get_team_fails({teamId:e})},function(e){return c.default.api.get_team_awards({teamId:e})}],user:[function(e){return c.default.api.get_user_solves({userId:e})},function(e){return c.default.api.get_user_fails({userId:e})},function(e){return c.default.api.get_user_awards({userId:e})}]};(0,i.default)(function(){var e,t,o,n;(0,i.default)(".delete-user").click(p),(0,i.default)(".edit-user").click(function(e){(0,i.default)("#user-info-modal").modal("toggle")}),(0,i.default)(".award-user").click(function(e){(0,i.default)("#user-award-modal").modal("toggle")}),(0,i.default)(".email-user").click(function(e){(0,i.default)("#user-email-modal").modal("toggle")}),(0,i.default)(".addresses-user").click(function(e){(0,i.default)("#user-addresses-modal").modal("toggle")}),(0,i.default)("#user-mail-form").submit(j),(0,i.default)("#solves-delete-button").click(function(e){h(0,"solves")}),(0,i.default)("#fails-delete-button").click(function(e){h(0,"fails")}),(0,i.default)("#awards-delete-button").click(function(e){!function(){var l=(0,i.default)("input[data-award-id]:checked").map(function(){return(0,i.default)(this).data("award-id")}),e=1===l.length?"award":"awards";(0,u.ezQuery)({title:"Delete Awards",body:"Are you sure you want to delete ".concat(l.length," ").concat(e,"?"),success:function(){var e=[],t=!0,o=!1,n=void 0;try{for(var s,a=l[Symbol.iterator]();!(t=(s=a.next()).done);t=!0){var i=s.value,r=c.default.fetch("/api/v1/awards/"+i,{method:"DELETE",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}});e.push(r)}}catch(e){o=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(o)throw n}}Promise.all(e).then(function(e){window.location.reload()})}})}()}),(0,i.default)("#missing-solve-button").click(function(e){!function(e){e.preventDefault();var d=(0,i.default)("input[data-missing-challenge-id]:checked").map(function(){return(0,i.default)(this).data("missing-challenge-id")});d.length,(0,u.ezQuery)({title:"Mark Correct",body:"Are you sure you want to mark ".concat(d.length," correct for ").concat((0,a.htmlEntities)(USER_NAME),"?"),success:function(){var e=[],t=!0,o=!1,n=void 0;try{for(var s,a=d[Symbol.iterator]();!(t=(s=a.next()).done);t=!0){var i=s.value,r={provided:"MARKED AS SOLVED BY ADMIN",user_id:USER_ID,team_id:TEAM_ID,challenge_id:i,type:"correct"},l=c.default.fetch("/api/v1/submissions",{method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(r)});e.push(l)}}catch(e){o=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(o)throw n}}Promise.all(e).then(function(e){window.location.reload()})}})}(e)}),(0,i.default)("#user-info-create-form").submit(r),(0,i.default)("#user-info-edit-form").submit(m),(0,i.default)("#user-award-form").submit(f);var s=window.stats_data;e=s.type,t=s.id,o=s.name,n=s.account_id,function(t,o,n,s){var e=d(_[t],3),a=e[0],i=e[1],r=e[2];Promise.all([a(s),i(s),r(s)]).then(function(e){(0,l.createGraph)("score_graph","#score-graph",e,t,o,n,s),(0,l.createGraph)("category_breakdown","#categories-pie-graph",e,t,o,n,s),(0,l.createGraph)("solve_percentages","#keys-pie-graph",e,t,o,n,s)})}(e,t,o,n),setInterval(function(){!function(t,o,n,s){var e=d(_[t],3),a=e[0],i=e[1],r=e[2];Promise.all([a(s),i(s),r(s)]).then(function(e){(0,l.updateGraph)("score_graph","#score-graph",e,t,o,n,s),(0,l.updateGraph)("category_breakdown","#categories-pie-graph",e,t,o,n,s),(0,l.updateGraph)("solve_percentages","#keys-pie-graph",e,t,o,n,s)})}(e,t,o,n)},3e5)})},"./CTFd/themes/admin/assets/js/styles.js":function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,o("./node_modules/bootstrap/dist/js/bootstrap.bundle.js");var n,s=o("./CTFd/themes/core/assets/js/utils.js"),a=(n=o("./node_modules/jquery/dist/jquery.js"))&&n.__esModule?n:{default:n};t.default=function(){(0,a.default)(":input").each(function(){(0,a.default)(this).data("initial",(0,a.default)(this).val())}),(0,a.default)(".form-control").bind({focus:function(){(0,a.default)(this).addClass("input-filled-valid")},blur:function(){""===(0,a.default)(this).val()&&(0,a.default)(this).removeClass("input-filled-valid")}}),(0,a.default)(".modal").on("show.bs.modal",function(e){(0,a.default)(".form-control").each(function(){(0,a.default)(this).val()&&(0,a.default)(this).addClass("input-filled-valid")})}),(0,a.default)(function(){(0,a.default)(".form-control").each(function(){(0,a.default)(this).val()&&(0,a.default)(this).addClass("input-filled-valid")}),(0,a.default)("tr[data-href]").click(function(){if(!getSelection().toString()){var e=(0,a.default)(this).attr("data-href");e&&(window.location=e)}return!1}),(0,a.default)("[data-checkbox]").click(function(e){(0,a.default)(e.target).is("input[type=checkbox]")?e.stopImmediatePropagation():((0,a.default)(this).find("input[type=checkbox]").click(),e.stopImmediatePropagation())}),(0,a.default)("[data-checkbox-all]").on("click change",function(e){var t=(0,a.default)(this).prop("checked"),o=(0,a.default)(this).index()+1;(0,a.default)(this).closest("table").find("tr td:nth-child(".concat(o,") input[type=checkbox]")).prop("checked",t),e.stopImmediatePropagation()}),(0,a.default)("tr[data-href] a, tr[data-href] button").click(function(e){(0,a.default)(this).attr("data-dismiss")||e.stopPropagation()}),(0,a.default)(".page-select").change(function(){var e=new URL(window.location);e.searchParams.set("page",this.value),window.location.href=e.toString()}),(0,s.makeSortableTables)(),(0,a.default)('[data-toggle="tooltip"]').tooltip()})}},"./CTFd/themes/core/assets/js/CTFd.js":function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=d(o("./CTFd/themes/core/assets/js/fetch.js")),s=d(o("./CTFd/themes/core/assets/js/config.js")),a=o("./CTFd/themes/core/assets/js/api.js");o("./CTFd/themes/core/assets/js/patch.js");var i=d(o("./node_modules/markdown-it/index.js")),r=d(o("./node_modules/jquery/dist/jquery.js")),l=d(o("./CTFd/themes/core/assets/js/ezq.js"));function d(e){return e&&e.__esModule?e:{default:e}}function c(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var u=new a.API("/"),m={},p={ezq:l.default},f={$:r.default,markdown:function(e){var t=function(t){for(var e=1;e".concat(e.body,"

")):o.find(".modal-body").append((0,r.default)(e.body));var n=(0,r.default)(c.format(e.button));return e.success&&(0,r.default)(n).click(function(){e.success()}),e.large&&o.find(".modal-dialog").addClass("modal-lg"),o.find(".modal-footer").append(n),(0,r.default)("main").append(o),o.modal("show"),(0,r.default)(o).on("hidden.bs.modal",function(){(0,r.default)(this).modal("dispose")}),o}function f(e){(0,r.default)("#ezq--notifications-toast-container").length||(0,r.default)("body").append((0,r.default)("
").attr({id:"ezq--notifications-toast-container"}).css({position:"fixed",bottom:"0",right:"0","min-width":"20%"}));var t=l.format(e.title,e.body),o=(0,r.default)(t);if(e.onclose&&(0,r.default)(o).find("button[data-dismiss=toast]").click(function(){e.onclose()}),e.onclick){var n=(0,r.default)(o).find(".toast-body");n.addClass("cursor-pointer"),n.click(function(){e.onclick()})}var s=!1!==e.autohide,a=!1!==e.animation,i=e.delay||1e4;return(0,r.default)("#ezq--notifications-toast-container").prepend(o),o.toast({autohide:s,delay:i,animation:a}),o.toast("show"),o}function j(e){var t=a.format(e.title),o=(0,r.default)(t);"string"==typeof e.body?o.find(".modal-body").append("

".concat(e.body,"

")):o.find(".modal-body").append((0,r.default)(e.body));var n=(0,r.default)(m),s=(0,r.default)(u);return o.find(".modal-footer").append(s),o.find(".modal-footer").append(n),(0,r.default)("main").append(o),(0,r.default)(o).on("hidden.bs.modal",function(){(0,r.default)(this).modal("dispose")}),(0,r.default)(n).click(function(){e.success()}),o.modal("show"),o}function h(e){if(e.target){var t=(0,r.default)(e.target);return t.find(".progress-bar").css("width",e.width+"%"),t}var o=i.format(e.width),n=a.format(e.title),s=(0,r.default)(n);return s.find(".modal-body").append((0,r.default)(o)),(0,r.default)("main").append(s),s.modal("show")}function _(e){var t={success:d,error:s}[e.type].format(e.body);return(0,r.default)(t)}var g={ezAlert:p,ezToast:f,ezQuery:j,ezProgressBar:h,ezBadge:_};t.default=g},"./CTFd/themes/core/assets/js/fetch.js":function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,o("./node_modules/whatwg-fetch/fetch.js");var n,s=(n=o("./CTFd/themes/core/assets/js/config.js"))&&n.__esModule?n:{default:n};var a=window.fetch;t.default=function(e,t){return void 0===t&&(t={method:"GET",credentials:"same-origin",headers:{}}),e=s.default.urlRoot+e,void 0===t.headers&&(t.headers={}),t.credentials="same-origin",t.headers.Accept="application/json",t.headers["Content-Type"]="application/json",t.headers["CSRF-Token"]=s.default.csrfNonce,a(e,t)}},"./CTFd/themes/core/assets/js/graphs.js":function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.createGraph=function(e,t,o,n,s,a,i){var r=f[e],l=(0,c.default)(t);if(l.empty(),void 0===l[0])return void console.log("Couldn't find graph target: "+t);l[0].fn=r.fn(n,s,a,i);var d=r.format(n,s,a,i,o);u.default.newPlot(l[0],d,r.layout,j)},t.updateGraph=function(e,t,o,n,s,a,i){var r=f[e],l=(0,c.default)(t),d=r.format(n,s,a,i,o);u.default.update(l[0],d,r.layout,j)};var c=n(o("./node_modules/jquery/dist/jquery.js")),u=n(o("./node_modules/plotly.js-basic-dist/plotly-basic.js")),m=n(o("./node_modules/moment/moment.js")),p=o("./CTFd/themes/core/assets/js/utils.js");function n(e){return e&&e.__esModule?e:{default:e}}var f={score_graph:{layout:{title:"Score over Time",paper_bgcolor:"rgba(0,0,0,0)",plot_bgcolor:"rgba(0,0,0,0)",hovermode:"closest",xaxis:{showgrid:!1,showspikes:!0},yaxis:{showgrid:!1,showspikes:!0},legend:{orientation:"h"}},fn:function(e,t,o,n){return"CTFd_score_".concat(e,"_").concat(o,"_").concat(t,"_").concat((new Date).toISOString().slice(0,19))},format:function(e,t,o,n,s){var a=[],i=[],r=s[0].data,l=s[2].data,d=r.concat(l);d.sort(function(e,t){return new Date(e.date)-new Date(t.date)});for(var c=0;c>8*s&255).toString(16)).substr(-2)}return n},t.htmlEntities=function(e){return(0,i.default)("
").text(e).html()},t.cumulativeSum=function(e){for(var t=e.concat(),o=0;o'),(0,i.default)("th.sort-col").click(function(){var e=(0,i.default)(this).parents("table").eq(0),t=e.find("tr:gt(0)").toArray().sort(function(s){return function(e,t){var o=a(e,s),n=a(t,s);return i.default.isNumeric(o)&&i.default.isNumeric(n)?o-n:o.toString().localeCompare(n)}}((0,i.default)(this).index()));this.asc=!this.asc,this.asc||(t=t.reverse());for(var o=0;o>10|55296,1023&n|56320))}function r(){L()}var e,f,g,i,a,m,p,h,v,c,l,L,A,s,k,_,u,M,b,w="sizzle"+1*new Date,y=n.document,T=0,o=0,z=ce(),S=ce(),O=ce(),x=ce(),D=function(e,t){return e===t&&(l=!0),0},N={}.hasOwnProperty,t=[],C=t.pop,E=t.push,Y=t.push,q=t.slice,W=function(e,t){for(var n=0,o=e.length;n+~]|"+B+")"+B+"*"),K=new RegExp(B+"|>"),V=new RegExp(P),G=new RegExp("^"+H+"$"),J={ID:new RegExp("^#("+H+")"),CLASS:new RegExp("^\\.("+H+")"),TAG:new RegExp("^("+H+"|[*])"),ATTR:new RegExp("^"+X),PSEUDO:new RegExp("^"+P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+B+"*(even|odd|(([+-]|)(\\d*)n|)"+B+"*(?:([+-]|)"+B+"*(\\d+)|))"+B+"*\\)|)","i"),bool:new RegExp("^(?:"+j+")$","i"),needsContext:new RegExp("^"+B+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+B+"*((?:-\\d)?\\d*)"+B+"*\\)|)(?=[^-]|$)","i")},Q=/HTML$/i,$=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,ee=/^[^{]+\{\s*\[native \w/,te=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ne=/[+~]/,oe=new RegExp("\\\\[\\da-fA-F]{1,6}"+B+"?|\\\\([^\\r\\n\\f])","g"),re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ae=ge(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{Y.apply(t=q.call(y.childNodes),y.childNodes),t[y.childNodes.length].nodeType}catch(e){Y={apply:t.length?function(e,t){E.apply(e,q.call(t))}:function(e,t){for(var n=e.length,o=0;e[n++]=t[o++];);e.length=n-1}}}function se(t,e,n,o){var r,i,a,s,c,l,u,d=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!o&&(L(e),e=e||A,k)){if(11!==p&&(c=te.exec(t)))if(r=c[1]){if(9===p){if(!(a=e.getElementById(r)))return n;if(a.id===r)return n.push(a),n}else if(d&&(a=d.getElementById(r))&&b(e,a)&&a.id===r)return n.push(a),n}else{if(c[2])return Y.apply(n,e.getElementsByTagName(t)),n;if((r=c[3])&&f.getElementsByClassName&&e.getElementsByClassName)return Y.apply(n,e.getElementsByClassName(r)),n}if(f.qsa&&!x[t+" "]&&(!_||!_.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(u=t,d=e,1===p&&(K.test(t)||U.test(t))){for((d=ne.test(t)&&Me(e.parentNode)||e)===e&&f.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=w)),i=(l=m(t)).length;i--;)l[i]=(s?"#"+s:":scope")+" "+ye(l[i]);u=l.join(",")}try{return Y.apply(n,d.querySelectorAll(u)),n}catch(e){x(t,!0)}finally{s===w&&e.removeAttribute("id")}}}return h(t.replace(I,"$1"),e,n,o)}function ce(){var o=[];return function e(t,n){return o.push(t+" ")>g.cacheLength&&delete e[o.shift()],e[t+" "]=n}}function le(e){return e[w]=!0,e}function ue(e){var t=A.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),o=n.length;o--;)g.attrHandle[n[o]]=t}function pe(e,t){var n=t&&e,o=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(o)return o;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function fe(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function me(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function he(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function _e(a){return le(function(i){return i=+i,le(function(e,t){for(var n,o=a([],e.length,i),r=o.length;r--;)e[n=o[r]]&&(e[n]=!(t[n]=e[n]))})})}function Me(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in f=se.support={},a=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Q.test(t||n&&n.nodeName||"HTML")},L=se.setDocument=function(e){var t,n,o=e?e.ownerDocument||e:y;return o!=A&&9===o.nodeType&&o.documentElement&&(s=(A=o).documentElement,k=!a(A),y!=A&&(n=A.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",r,!1):n.attachEvent&&n.attachEvent("onunload",r)),f.scope=ue(function(e){return s.appendChild(e).appendChild(A.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),f.attributes=ue(function(e){return e.className="i",!e.getAttribute("className")}),f.getElementsByTagName=ue(function(e){return e.appendChild(A.createComment("")),!e.getElementsByTagName("*").length}),f.getElementsByClassName=ee.test(A.getElementsByClassName),f.getById=ue(function(e){return s.appendChild(e).id=w,!A.getElementsByName||!A.getElementsByName(w).length}),f.getById?(g.filter.ID=function(e){var t=e.replace(oe,d);return function(e){return e.getAttribute("id")===t}},g.find.ID=function(e,t){if(void 0!==t.getElementById&&k){var n=t.getElementById(e);return n?[n]:[]}}):(g.filter.ID=function(e){var n=e.replace(oe,d);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},g.find.ID=function(e,t){if(void 0!==t.getElementById&&k){var n,o,r,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(r=t.getElementsByName(e),o=0;i=r[o++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),g.find.TAG=f.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):f.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,o=[],r=0,i=t.getElementsByTagName(e);if("*"!==e)return i;for(;n=i[r++];)1===n.nodeType&&o.push(n);return o},g.find.CLASS=f.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&k)return t.getElementsByClassName(e)},u=[],_=[],(f.qsa=ee.test(A.querySelectorAll))&&(ue(function(e){var t;s.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&_.push("[*^$]="+B+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||_.push("\\["+B+"*(?:value|"+j+")"),e.querySelectorAll("[id~="+w+"-]").length||_.push("~="),(t=A.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||_.push("\\["+B+"*name"+B+"*="+B+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||_.push(":checked"),e.querySelectorAll("a#"+w+"+*").length||_.push(".#.+[+~]"),e.querySelectorAll("\\\f"),_.push("[\\r\\n\\f]")}),ue(function(e){e.innerHTML="";var t=A.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&_.push("name"+B+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&_.push(":enabled",":disabled"),s.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&_.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),_.push(",.*:")})),(f.matchesSelector=ee.test(M=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&ue(function(e){f.disconnectedMatch=M.call(e,"*"),M.call(e,"[s!='']:x"),u.push("!=",P)}),_=_.length&&new RegExp(_.join("|")),u=u.length&&new RegExp(u.join("|")),t=ee.test(s.compareDocumentPosition),b=t||ee.test(s.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,o=t&&t.parentNode;return e===o||!(!o||1!==o.nodeType||!(n.contains?n.contains(o):e.compareDocumentPosition&&16&e.compareDocumentPosition(o)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!f.sortDetached&&t.compareDocumentPosition(e)===n?e==A||e.ownerDocument==y&&b(y,e)?-1:t==A||t.ownerDocument==y&&b(y,t)?1:c?W(c,e)-W(c,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,o=0,r=e.parentNode,i=t.parentNode,a=[e],s=[t];if(!r||!i)return e==A?-1:t==A?1:r?-1:i?1:c?W(c,e)-W(c,t):0;if(r===i)return pe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[o]===s[o];)o++;return o?pe(a[o],s[o]):a[o]==y?-1:s[o]==y?1:0}),A},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(L(e),f.matchesSelector&&k&&!x[t+" "]&&(!u||!u.test(t))&&(!_||!_.test(t)))try{var n=M.call(e,t);if(n||f.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){x(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(oe,d),e[3]=(e[3]||e[4]||e[5]||"").replace(oe,d),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return J.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&V.test(n)&&(t=m(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(oe,d).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=z[e+" "];return t||(t=new RegExp("(^|"+B+")"+e+"("+B+"|$)"))&&z(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,o,r){return function(e){var t=se.attr(e,n);return null==t?"!="===o:!o||(t+="","="===o?t===r:"!="===o?t!==r:"^="===o?r&&0===t.indexOf(r):"*="===o?r&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function S(e,n,o){return y(n)?w.grep(e,function(e,t){return!!n.call(e,t,e)!==o}):n.nodeType?w.grep(e,function(e){return e===n!==o}):"string"!=typeof n?w.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(w.fn.init=function(e,t,n){var o,r;if(!e)return this;if(n=n||O,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(w):w.makeArray(e,this);if(!(o="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:x.exec(e))||!o[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(o[1]){if(t=t instanceof w?t[0]:t,w.merge(this,w.parseHTML(o[1],t&&t.nodeType?t.ownerDocument||t:k,!0)),z.test(o[1])&&w.isPlainObject(t))for(o in t)y(this[o])?this[o](t[o]):this.attr(o,t[o]);return this}return(r=k.getElementById(o[2]))&&(this[0]=r,this.length=1),this}).prototype=w.fn,O=w(k);var D=/^(?:parents|prev(?:Until|All))/,N={children:!0,contents:!0,next:!0,prev:!0};function C(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}w.fn.extend({has:function(e){var t=w(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,fe=/^$|^module$|\/(?:java|ecma)script/i;le=k.createDocumentFragment().appendChild(k.createElement("div")),(ue=k.createElement("input")).setAttribute("type","radio"),ue.setAttribute("checked","checked"),ue.setAttribute("name","t"),le.appendChild(ue),b.checkClone=le.cloneNode(!0).cloneNode(!0).lastChild.checked,le.innerHTML="",b.noCloneChecked=!!le.cloneNode(!0).lastChild.defaultValue,le.innerHTML="",b.option=!!le.lastChild;var me={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function he(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&T(e,t)?w.merge([e],n):n}function _e(e,t){for(var n=0,o=e.length;n",""]);var Me=/<|&#?\w+;/;function be(e,t,n,o,r){for(var i,a,s,c,l,u,d=t.createDocumentFragment(),p=[],f=0,m=e.length;f\s*$/g;function xe(e,t){return T(e,"table")&&T(11!==t.nodeType?t:t.firstChild,"tr")&&w(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ne(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ce(e,t){var n,o,r,i,a,s;if(1===t.nodeType){if(V.hasData(e)&&(s=V.get(e).events))for(r in V.remove(t,"handle events"),s)for(n=0,o=s[r].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",r=function(e){o.remove(),r=null,e&&t("error"===e.type?404:200,e.type)}),k.head.appendChild(o[0])},abort:function(){r&&r()}}});var en,tn=[],nn=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=tn.pop()||w.expando+"_"+Nt.guid++;return this[e]=!0,e}}),w.ajaxPrefilter("json jsonp",function(e,t,n){var o,r,i,a=!1!==e.jsonp&&(nn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(nn,"$1"+o):!1!==e.jsonp&&(e.url+=(Ct.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return i||w.error(o+" was not called"),i[0]},e.dataTypes[0]="json",r=A[o],A[o]=function(){i=arguments},n.always(function(){void 0===r?w(A).removeProp(o):A[o]=r,e[o]&&(e.jsonpCallback=t.jsonpCallback,tn.push(o)),i&&y(r)&&r(i[0]),i=r=void 0}),"script"}),b.createHTMLDocument=((en=k.implementation.createHTMLDocument("").body).innerHTML="
",2===en.childNodes.length),w.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(b.createHTMLDocument?((o=(t=k.implementation.createHTMLDocument("")).createElement("base")).href=k.location.href,t.head.appendChild(o)):t=k),i=!n&&[],(r=z.exec(e))?[t.createElement(r[1])]:(r=be([e],t,i),i&&i.length&&w(i).remove(),w.merge([],r.childNodes)));var o,r,i},w.fn.load=function(e,t,n){var o,r,i,a=this,s=e.indexOf(" ");return-1").append(w.parseHTML(e)).find(o):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,i||[e.responseText,t,e])})}),this},w.expr.pseudos.animated=function(t){return w.grep(w.timers,function(e){return t===e.elem}).length},w.offset={setOffset:function(e,t,n){var o,r,i,a,s,c,l=w.css(e,"position"),u=w(e),d={};"static"===l&&(e.style.position="relative"),s=u.offset(),i=w.css(e,"top"),c=w.css(e,"left"),r=("absolute"===l||"fixed"===l)&&-1<(i+c).indexOf("auto")?(a=(o=u.position()).top,o.left):(a=parseFloat(i)||0,parseFloat(c)||0),y(t)&&(t=t.call(e,n,w.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+r),"using"in t?t.using.call(e,d):("number"==typeof d.top&&(d.top+="px"),"number"==typeof d.left&&(d.left+="px"),u.css(d))}},w.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){w.offset.setOffset(this,t,e)});var e,n,o=this[0];return o?o.getClientRects().length?(e=o.getBoundingClientRect(),n=o.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,o=this[0],r={top:0,left:0};if("fixed"===w.css(o,"position"))t=o.getBoundingClientRect();else{for(t=this.offset(),n=o.ownerDocument,e=o.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===w.css(e,"position");)e=e.parentNode;e&&e!==o&&1===e.nodeType&&((r=w(e).offset()).top+=w.css(e,"borderTopWidth",!0),r.left+=w.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-w.css(o,"marginTop",!0),left:t.left-r.left-w.css(o,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===w.css(e,"position");)e=e.offsetParent;return e||ne})}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var i="pageYOffset"===r;w.fn[t]=function(e){return X(this,function(e,t,n){var o;if(h(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===n)return o?o[r]:e[t];o?o.scrollTo(i?o.pageXOffset:n,i?n:o.pageYOffset):e[t]=n},t,e,arguments.length)}}),w.each(["top","left"],function(e,n){w.cssHooks[n]=Qe(b.pixelPosition,function(e,t){if(t)return t=Je(e,n),Fe.test(t)?w(e).position()[n]+"px":t})}),w.each({Height:"height",Width:"width"},function(a,s){w.each({padding:"inner"+a,content:s,"":"outer"+a},function(o,i){w.fn[i]=function(e,t){var n=arguments.length&&(o||"boolean"!=typeof e),r=o||(!0===e||!0===t?"margin":"border");return X(this,function(e,t,n){var o;return h(e)?0===i.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+a],o["scroll"+a],e.body["offset"+a],o["offset"+a],o["client"+a])):void 0===n?w.css(e,t,r):w.style(e,t,n,r)},s,n?e:void 0,n)}})}),w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){w.fn[t]=function(e){return this.on(t,e)}}),w.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,o){return this.on(t,e,n,o)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),w.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){w.fn[n]=function(e,t){return 0<|]|"+t.src_ZPCc+"))("+a+")","i"),o.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","ig"),o.re.pretest=RegExp("("+o.re.schema_test.source+")|("+o.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(o)}function p(e,t){var n=e.__index__,o=e.__last_index__,r=e.__text_cache__.slice(n,o);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=o+t,this.raw=r,this.text=r,this.url=r}function f(e,t){var n=new p(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function m(e,t){if(!(this instanceof m))return new m(e,t);t||!function(e){return Object.keys(e||{}).reduce(function(e,t){return e||o.hasOwnProperty(t)},!1)}(e)||(t=e,e={}),this.__opts__=n({},o,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=n({},r,e),this.__compiled__={},this.__tlds__=i,this.__tlds_replaced__=!1,this.re={},a(this)}m.prototype.add=function(e,t){return this.__schemas__[e]=t,a(this),this},m.prototype.set=function(e){return this.__opts__=n(this.__opts__,e),this},m.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,o,r,i,a,s,c;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(r=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+r;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&0<=(c=e.search(this.re.host_fuzzy_test))&&(this.__index__<0||cthis.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a)),0<=this.__index__},m.prototype.pretest=function(e){return this.re.pretest.test(e)},m.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},m.prototype.match=function(e){var t=0,n=[];0<=this.__index__&&this.__text_cache__===e&&(n.push(f(this,t)),t=this.__last_index__);for(var o=t?e.slice(t):e;this.test(o);)n.push(f(this,t)),o=o.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},m.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse():(this.__tlds__=e.slice(),this.__tlds_replaced__=!0),a(this),this},m.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},m.prototype.onCompile=function(){},e.exports=m},"./node_modules/linkify-it/lib/re.js":function(e,t,o){e.exports=function(e){var t={};t.src_Any=o("./node_modules/uc.micro/properties/Any/regex.js").source,t.src_Cc=o("./node_modules/uc.micro/categories/Cc/regex.js").source,t.src_Z=o("./node_modules/uc.micro/categories/Z/regex.js").source,t.src_P=o("./node_modules/uc.micro/categories/P/regex.js").source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var n="[><|]";return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+"|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,3}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]+',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|[><|]|\\(|"+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},"./node_modules/markdown-it/index.js":function(e,t,n){e.exports=n("./node_modules/markdown-it/lib/index.js")},"./node_modules/markdown-it/lib/common/entities.js":function(e,t,n){e.exports=n("./node_modules/entities/lib/maps/entities.json")},"./node_modules/markdown-it/lib/common/html_blocks.js":function(e,t,n){e.exports=["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","h1","h2","h3","h4","h5","h6","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"]},"./node_modules/markdown-it/lib/common/html_re.js":function(e,t,n){var o="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",r="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",i=new RegExp("^(?:"+o+"|"+r+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|]*>|)"),a=new RegExp("^(?:"+o+"|"+r+")");e.exports.HTML_TAG_RE=i,e.exports.HTML_OPEN_CLOSE_TAG_RE=a},"./node_modules/markdown-it/lib/common/utils.js":function(e,t,n){function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=Object.prototype.hasOwnProperty;function i(e,t){return r.call(e,t)}function a(e){return!(55296<=e&&e<=57343)&&(!(64976<=e&&e<=65007)&&(65535!=(65535&e)&&65534!=(65535&e)&&(!(0<=e&&e<=8)&&(11!==e&&(!(14<=e&&e<=31)&&(!(127<=e&&e<=159)&&!(1114111>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var c=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,l=new RegExp(c.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),u=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,d=n("./node_modules/markdown-it/lib/common/entities.js");var p=/[&<>"]/,f=/[&<>"]/g,m={"&":"&","<":"<",">":">",'"':"""};function h(e){return m[e]}var _=/[.?*+^$[\]\\(){}|-]/g;var M=n("./node_modules/uc.micro/categories/P/regex.js");t.lib={},t.lib.mdurl=n("./node_modules/mdurl/index.js"),t.lib.ucmicro=n("./node_modules/uc.micro/index.js"),t.assign=function(n){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if("object"!==o(t))throw new TypeError(t+"must be object");Object.keys(t).forEach(function(e){n[e]=t[e]})}}),n},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=i,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(c,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(l,function(e,t,n){return t||function(e,t){var n=0;return i(d,t)?d[t]:35===t.charCodeAt(0)&&u.test(t)&&a(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?s(n):e}(e,n)})},t.isValidEntityCode=a,t.fromCodePoint=s,t.escapeHtml=function(e){return p.test(e)?e.replace(f,h):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(8192<=e&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return M.test(e)},t.escapeRE=function(e){return e.replace(_,"\\$&")},t.normalizeReference=function(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}},"./node_modules/markdown-it/lib/index.js":function(e,t,n){var o=n("./node_modules/markdown-it/lib/common/utils.js"),r=n("./node_modules/markdown-it/lib/helpers/index.js"),i=n("./node_modules/markdown-it/lib/renderer.js"),a=n("./node_modules/markdown-it/lib/parser_core.js"),s=n("./node_modules/markdown-it/lib/parser_block.js"),c=n("./node_modules/markdown-it/lib/parser_inline.js"),l=n("./node_modules/linkify-it/index.js"),u=n("./node_modules/mdurl/index.js"),d=n("./node_modules/punycode/punycode.js"),p={default:n("./node_modules/markdown-it/lib/presets/default.js"),zero:n("./node_modules/markdown-it/lib/presets/zero.js"),commonmark:n("./node_modules/markdown-it/lib/presets/commonmark.js")},f=/^(vbscript|javascript|file|data):/,m=/^data:image\/(gif|png|jpeg|webp);/;function h(e){var t=e.trim().toLowerCase();return!f.test(t)||!!m.test(t)}var _=["http:","https:","mailto:"];function M(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||0<=_.indexOf(t.protocol)))try{t.hostname=d.toASCII(t.hostname)}catch(e){}return u.encode(u.format(t))}function b(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||0<=_.indexOf(t.protocol)))try{t.hostname=d.toUnicode(t.hostname)}catch(e){}return u.decode(u.format(t))}function y(e,t){if(!(this instanceof y))return new y(e,t);t||o.isString(e)||(t=e||{},e="default"),this.inline=new c,this.block=new s,this.core=new a,this.renderer=new i,this.linkify=new l,this.validateLink=h,this.normalizeLink=M,this.normalizeLinkText=b,this.utils=o,this.helpers=o.assign({},r),this.options={},this.configure(e),t&&this.set(t)}y.prototype.set=function(e){return o.assign(this.options,e),this},y.prototype.configure=function(t){var e,n=this;if(o.isString(t)&&!(t=p[e=t]))throw new Error('Wrong `markdown-it` preset "'+e+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&n.set(t.options),t.components&&Object.keys(t.components).forEach(function(e){t.components[e].rules&&n[e].ruler.enableOnly(t.components[e].rules),t.components[e].rules2&&n[e].ruler2.enableOnly(t.components[e].rules2)}),this},y.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(e){n=n.concat(this[e].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var o=t.filter(function(e){return n.indexOf(e)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this},y.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(e){n=n.concat(this[e].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var o=t.filter(function(e){return n.indexOf(e)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this},y.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},y.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},y.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},y.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},y.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=y},"./node_modules/markdown-it/lib/parser_block.js":function(e,t,n){var o=n("./node_modules/markdown-it/lib/ruler.js"),r=[["table",n("./node_modules/markdown-it/lib/rules_block/table.js"),["paragraph","reference"]],["code",n("./node_modules/markdown-it/lib/rules_block/code.js")],["fence",n("./node_modules/markdown-it/lib/rules_block/fence.js"),["paragraph","reference","blockquote","list"]],["blockquote",n("./node_modules/markdown-it/lib/rules_block/blockquote.js"),["paragraph","reference","blockquote","list"]],["hr",n("./node_modules/markdown-it/lib/rules_block/hr.js"),["paragraph","reference","blockquote","list"]],["list",n("./node_modules/markdown-it/lib/rules_block/list.js"),["paragraph","reference","blockquote"]],["reference",n("./node_modules/markdown-it/lib/rules_block/reference.js")],["heading",n("./node_modules/markdown-it/lib/rules_block/heading.js"),["paragraph","reference","blockquote"]],["lheading",n("./node_modules/markdown-it/lib/rules_block/lheading.js")],["html_block",n("./node_modules/markdown-it/lib/rules_block/html_block.js"),["paragraph","reference","blockquote"]],["paragraph",n("./node_modules/markdown-it/lib/rules_block/paragraph.js")]];function i(){this.ruler=new o;for(var e=0;e=c){e.line=n;break}for(o=0;o=i)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},a.prototype.parse=function(e,t,n,o){var r,i,a,s=new this.State(e,t,n,o);for(this.tokenize(s),a=(i=this.ruler2.getRules("")).length,r=0;r"+f(e[t].content)+""},r.code_block=function(e,t,n,o,r){var i=e[t];return""+f(e[t].content)+"\n"},r.fence=function(e,t,n,o,r){var i,a,s,c,l=e[t],u=l.info?p(l.info).trim():"",d="";return u&&(d=u.split(/\s+/g)[0]),0===(i=n.highlight&&n.highlight(l.content,d)||f(l.content)).indexOf(""+i+"\n"):"
"+i+"
\n"},r.image=function(e,t,n,o,r){var i=e[t];return i.attrs[i.attrIndex("alt")][1]=r.renderInlineAsText(i.children,n,o),r.renderToken(e,t,n)},r.hardbreak=function(e,t,n){return n.xhtmlOut?"
\n":"
\n"},r.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"
\n":"
\n":"\n"},r.text=function(e,t){return f(e[t].content)},r.html_block=function(e,t){return e[t].content},r.html_inline=function(e,t){return e[t].content},i.prototype.renderAttrs=function(e){var t,n,o;if(!e.attrs)return"";for(o="",t=0,n=e.attrs.length;t\n":">")},i.prototype.renderInline=function(e,t,n){for(var o,r="",i=this.rules,a=0,s=e.length;a",L.map=u=[t,0],e.md.block.tokenize(e,t,d),(L=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=k,e.parentType=_,u[1]=e.line,a=0;a|$))/i,/<\/(script|pre|style)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(r.source+"\\s*$"),/^$/,!1]];e.exports=function(e,t,n,o){var r,i,a,s,c=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(4<=e.sCount[t]-e.blkIndent)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(c))return!1;for(s=e.src.slice(c,l),r=0;r=e.blkIndent&&(c=e.bMarks[f]+e.tShift[f])<(l=e.eMarks[f])&&(45===(d=e.src.charCodeAt(c))||61===d)&&(c=e.skipChars(c,d),l<=(c=e.skipSpaces(c)))){u=61===d?1:2;break}if(!(e.sCount[f]<0)){for(r=!1,i=0,a=m.length;i=e.blkIndent&&(N=!0),0<=(T=Y(e,t))){if(u=!0,S=e.bMarks[t]+e.tShift[t],_=Number(e.src.substr(S,T-S-1)),N&&1!==_)return!1}else{if(!(0<=(T=E(e,t))))return!1;u=!1}if(N&&e.skipSpaces(T)>=e.eMarks[t])return!1;if(h=e.src.charCodeAt(T-1),o)return!0;for(m=e.tokens.length,u?(D=e.push("ordered_list_open","ol",1),1!==_&&(D.attrs=[["start",_]])):D=e.push("bullet_list_open","ul",1),D.map=f=[t,0],D.markup=String.fromCharCode(h),b=t,z=!1,x=e.md.block.ruler.getRules("list"),v=e.parentType,e.parentType="list";b=this.eMarks[e]},o.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e=e.eMarks[c])return!1;if(124!==(r=e.src.charCodeAt(a++))&&45!==r&&58!==r)return!1;for(;ap.length)return!1;if(o)return!0;for((d=e.push("table_open","table",1)).map=m=[t,0],(d=e.push("thead_open","thead",1)).map=[t,t+1],(d=e.push("tr_open","tr",1)).map=[t,t+1],s=0;s\s]/i.test(y)&&0/i.test(b)&&f++),!(0/,u=/^<([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)>/;e.exports=function(e,t){var n,o,r,i,a,s,c=e.pos;return 60===e.src.charCodeAt(c)&&(!((n=e.src.slice(c)).indexOf(">")<0)&&(u.test(n)?(i=(o=n.match(u))[0].slice(1,-1),a=e.md.normalizeLink(i),!!e.md.validateLink(a)&&(t||((s=e.push("link_open","a",1)).attrs=[["href",a]],s.markup="autolink",s.info="auto",(s=e.push("text","",0)).content=e.md.normalizeLinkText(i),(s=e.push("link_close","a",-1)).markup="autolink",s.info="auto"),e.pos+=o[0].length,!0)):!!l.test(n)&&(i=(r=n.match(l))[0].slice(1,-1),a=e.md.normalizeLink("mailto:"+i),!!e.md.validateLink(a)&&(t||((s=e.push("link_open","a",1)).attrs=[["href",a]],s.markup="autolink",s.info="auto",(s=e.push("text","",0)).content=e.md.normalizeLinkText(i),(s=e.push("link_close","a",-1)).markup="autolink",s.info="auto"),e.pos+=r[0].length,!0))))}},"./node_modules/markdown-it/lib/rules_inline/backticks.js":function(e,t,n){e.exports=function(e,t){var n,o,r,i,a,s,c=e.pos;if(96!==e.src.charCodeAt(c))return!1;for(n=c,c++,o=e.posMax;c?@[]^_`{|}~-".split("").forEach(function(e){a[e.charCodeAt(0)]=1}),e.exports=function(e,t){var n,o=e.pos,r=e.posMax;if(92!==e.src.charCodeAt(o))return!1;if(++o>10),56320+(1023&s))),t+=9):c+="�";return c})}o.defaultChars=";/?:@&=+$,#",o.componentChars="",e.exports=o},"./node_modules/mdurl/encode.js":function(e,t,n){var l={};function u(e,t,n){var o,r,i,a,s,c="";for("string"!=typeof t&&(n=t,t=u.defaultChars),void 0===n&&(n=!0),s=function(e){var t,n,o=l[e];if(o)return o;for(o=l[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?o.push(n):o.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t",'"',"`"," ","\r","\n","\t"]),a=["'"].concat(i),z=["%","/","?",";","#"].concat(a),S=["/","?","#"],O=/^[+a-z0-9A-Z_-]{0,63}$/,x=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,D={javascript:!0,"javascript:":!0},N={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};o.prototype.parse=function(e,t){var n,o,r,i,a,s=e;if(s=s.trim(),!t&&1===e.split("#").length){var c=T.exec(s);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var l=w.exec(s);if(l&&(r=(l=l[0]).toLowerCase(),this.protocol=l,s=s.substr(l.length)),(t||l||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(a="//"===s.substr(0,2))||l&&D[l]||(s=s.substr(2),this.slashes=!0)),!D[l]&&(a||l&&!N[l])){var u,d,p=-1;for(n=0;n>10|55296,1023&o|56320)}function r(){L()}var e,f,g,i,a,m,p,h,v,c,l,L,A,s,k,_,u,M,b,w="sizzle"+1*new Date,y=n.document,T=0,o=0,z=ce(),S=ce(),O=ce(),x=ce(),D=function(e,t){return e===t&&(l=!0),0},N={}.hasOwnProperty,t=[],C=t.pop,E=t.push,Y=t.push,q=t.slice,W=function(e,t){for(var n=0,o=e.length;n+~]|"+B+")"+B+"*"),K=new RegExp(B+"|>"),V=new RegExp(P),G=new RegExp("^"+H+"$"),J={ID:new RegExp("^#("+H+")"),CLASS:new RegExp("^\\.("+H+")"),TAG:new RegExp("^("+H+"|[*])"),ATTR:new RegExp("^"+X),PSEUDO:new RegExp("^"+P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+B+"*(even|odd|(([+-]|)(\\d*)n|)"+B+"*(?:([+-]|)"+B+"*(\\d+)|))"+B+"*\\)|)","i"),bool:new RegExp("^(?:"+j+")$","i"),needsContext:new RegExp("^"+B+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+B+"*((?:-\\d)?\\d*)"+B+"*\\)|)(?=[^-]|$)","i")},Q=/HTML$/i,$=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,ee=/^[^{]+\{\s*\[native \w/,te=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ne=/[+~]/,oe=new RegExp("\\\\([\\da-f]{1,6}"+B+"?|("+B+")|.)","ig"),re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ae=ge(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{Y.apply(t=q.call(y.childNodes),y.childNodes),t[y.childNodes.length].nodeType}catch(e){Y={apply:t.length?function(e,t){E.apply(e,q.call(t))}:function(e,t){for(var n=e.length,o=0;e[n++]=t[o++];);e.length=n-1}}}function se(t,e,n,o){var r,i,a,s,c,l,u,d=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!o&&((e?e.ownerDocument||e:y)!==A&&L(e),e=e||A,k)){if(11!==p&&(c=te.exec(t)))if(r=c[1]){if(9===p){if(!(a=e.getElementById(r)))return n;if(a.id===r)return n.push(a),n}else if(d&&(a=d.getElementById(r))&&b(e,a)&&a.id===r)return n.push(a),n}else{if(c[2])return Y.apply(n,e.getElementsByTagName(t)),n;if((r=c[3])&&f.getElementsByClassName&&e.getElementsByClassName)return Y.apply(n,e.getElementsByClassName(r)),n}if(f.qsa&&!x[t+" "]&&(!_||!_.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(u=t,d=e,1===p&&K.test(t)){for((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=w),i=(l=m(t)).length;i--;)l[i]="#"+s+" "+ye(l[i]);u=l.join(","),d=ne.test(t)&&Me(e.parentNode)||e}try{return Y.apply(n,d.querySelectorAll(u)),n}catch(e){x(t,!0)}finally{s===w&&e.removeAttribute("id")}}}return h(t.replace(I,"$1"),e,n,o)}function ce(){var o=[];return function e(t,n){return o.push(t+" ")>g.cacheLength&&delete e[o.shift()],e[t+" "]=n}}function le(e){return e[w]=!0,e}function ue(e){var t=A.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),o=n.length;o--;)g.attrHandle[n[o]]=t}function pe(e,t){var n=t&&e,o=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(o)return o;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function fe(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function me(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function he(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function _e(a){return le(function(i){return i=+i,le(function(e,t){for(var n,o=a([],e.length,i),r=o.length;r--;)e[n=o[r]]&&(e[n]=!(t[n]=e[n]))})})}function Me(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in f=se.support={},a=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Q.test(t||n&&n.nodeName||"HTML")},L=se.setDocument=function(e){var t,n,o=e?e.ownerDocument||e:y;return o!==A&&9===o.nodeType&&o.documentElement&&(s=(A=o).documentElement,k=!a(A),y!==A&&(n=A.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",r,!1):n.attachEvent&&n.attachEvent("onunload",r)),f.attributes=ue(function(e){return e.className="i",!e.getAttribute("className")}),f.getElementsByTagName=ue(function(e){return e.appendChild(A.createComment("")),!e.getElementsByTagName("*").length}),f.getElementsByClassName=ee.test(A.getElementsByClassName),f.getById=ue(function(e){return s.appendChild(e).id=w,!A.getElementsByName||!A.getElementsByName(w).length}),f.getById?(g.filter.ID=function(e){var t=e.replace(oe,d);return function(e){return e.getAttribute("id")===t}},g.find.ID=function(e,t){if(void 0!==t.getElementById&&k){var n=t.getElementById(e);return n?[n]:[]}}):(g.filter.ID=function(e){var n=e.replace(oe,d);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},g.find.ID=function(e,t){if(void 0!==t.getElementById&&k){var n,o,r,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(r=t.getElementsByName(e),o=0;i=r[o++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),g.find.TAG=f.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):f.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,o=[],r=0,i=t.getElementsByTagName(e);if("*"!==e)return i;for(;n=i[r++];)1===n.nodeType&&o.push(n);return o},g.find.CLASS=f.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&k)return t.getElementsByClassName(e)},u=[],_=[],(f.qsa=ee.test(A.querySelectorAll))&&(ue(function(e){s.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&_.push("[*^$]="+B+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||_.push("\\["+B+"*(?:value|"+j+")"),e.querySelectorAll("[id~="+w+"-]").length||_.push("~="),e.querySelectorAll(":checked").length||_.push(":checked"),e.querySelectorAll("a#"+w+"+*").length||_.push(".#.+[+~]")}),ue(function(e){e.innerHTML="";var t=A.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&_.push("name"+B+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&_.push(":enabled",":disabled"),s.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&_.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),_.push(",.*:")})),(f.matchesSelector=ee.test(M=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&ue(function(e){f.disconnectedMatch=M.call(e,"*"),M.call(e,"[s!='']:x"),u.push("!=",P)}),_=_.length&&new RegExp(_.join("|")),u=u.length&&new RegExp(u.join("|")),t=ee.test(s.compareDocumentPosition),b=t||ee.test(s.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,o=t&&t.parentNode;return e===o||!(!o||1!==o.nodeType||!(n.contains?n.contains(o):e.compareDocumentPosition&&16&e.compareDocumentPosition(o)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!f.sortDetached&&t.compareDocumentPosition(e)===n?e===A||e.ownerDocument===y&&b(y,e)?-1:t===A||t.ownerDocument===y&&b(y,t)?1:c?W(c,e)-W(c,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,o=0,r=e.parentNode,i=t.parentNode,a=[e],s=[t];if(!r||!i)return e===A?-1:t===A?1:r?-1:i?1:c?W(c,e)-W(c,t):0;if(r===i)return pe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[o]===s[o];)o++;return o?pe(a[o],s[o]):a[o]===y?-1:s[o]===y?1:0}),A},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==A&&L(e),f.matchesSelector&&k&&!x[t+" "]&&(!u||!u.test(t))&&(!_||!_.test(t)))try{var n=M.call(e,t);if(n||f.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){x(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(oe,d),e[3]=(e[3]||e[4]||e[5]||"").replace(oe,d),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return J.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&V.test(n)&&(t=m(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(oe,d).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=z[e+" "];return t||(t=new RegExp("(^|"+B+")"+e+"("+B+"|$)"))&&z(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,o,r){return function(e){var t=se.attr(e,n);return null==t?"!="===o:!o||(t+="","="===o?t===r:"!="===o?t!==r:"^="===o?r&&0===t.indexOf(r):"*="===o?r&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function O(e,n,o){return y(n)?w.grep(e,function(e,t){return!!n.call(e,t,e)!==o}):n.nodeType?w.grep(e,function(e){return e===n!==o}):"string"!=typeof n?w.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(w.fn.init=function(e,t,n){var o,r;if(!e)return this;if(n=n||x,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(w):w.makeArray(e,this);if(!(o="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:D.exec(e))||!o[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(o[1]){if(t=t instanceof w?t[0]:t,w.merge(this,w.parseHTML(o[1],t&&t.nodeType?t.ownerDocument||t:k,!0)),S.test(o[1])&&w.isPlainObject(t))for(o in t)y(this[o])?this[o](t[o]):this.attr(o,t[o]);return this}return(r=k.getElementById(o[2]))&&(this[0]=r,this.length=1),this}).prototype=w.fn,x=w(k);var N=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};function E(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}w.fn.extend({has:function(e){var t=w(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,fe=/^$|^module$|\/(?:java|ecma)script/i,me={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function he(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&z(e,t)?w.merge([e],n):n}function _e(e,t){for(var n=0,o=e.length;nx",b.noCloneChecked=!!Me.cloneNode(!0).lastChild.defaultValue;var ve=/^key/,Le=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ae=/^([^.]*)(?:\.(.+)|)/;function ke(){return!0}function we(){return!1}function Te(e,t){return e===function(){try{return k.activeElement}catch(e){}}()==("focus"===t)}function ze(e,t,n,o,r,i){var a,s;if("object"===ln(t)){for(s in"string"!=typeof n&&(o=o||n,n=void 0),t)ze(e,s,n,o,t[s],i);return e}if(null==o&&null==r?(r=n,o=n=void 0):null==r&&("string"==typeof n?(r=o,o=void 0):(r=o,o=n,n=void 0)),!1===r)r=we;else if(!r)return e;return 1===i&&(a=r,(r=function(e){return w().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=w.guid++)),e.each(function(){w.event.add(this,t,r,o,n)})}function Se(e,r,i){i?(G.set(e,r,!1),w.event.add(e,r,{namespace:!1,handler:function(e){var t,n,o=G.get(this,r);if(1&e.isTrigger&&this[r]){if(o.length)(w.event.special[r]||{}).delegateType&&e.stopPropagation();else if(o=s.call(arguments),G.set(this,r,o),t=i(this,r),this[r](),o!==(n=G.get(this,r))||t?G.set(this,r,!1):n={},o!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else o.length&&(G.set(this,r,{value:w.event.trigger(w.extend(o[0],w.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===G.get(e,r)&&w.event.add(e,r,ke)}w.event={global:{},add:function(t,e,n,o,r){var i,a,s,c,l,u,d,p,f,m,h,_=G.get(t);if(_)for(n.handler&&(n=(i=n).handler,r=i.selector),r&&w.find.matchesSelector(oe,r),n.guid||(n.guid=w.guid++),(c=_.events)||(c=_.events={}),(a=_.handle)||(a=_.handle=function(e){return void 0!==w&&w.event.triggered!==e.type?w.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(Y)||[""]).length;l--;)f=h=(s=Ae.exec(e[l])||[])[1],m=(s[2]||"").split(".").sort(),f&&(d=w.event.special[f]||{},f=(r?d.delegateType:d.bindType)||f,d=w.event.special[f]||{},u=w.extend({type:f,origType:h,data:o,handler:n,guid:n.guid,selector:r,needsContext:r&&w.expr.match.needsContext.test(r),namespace:m.join(".")},i),(p=c[f])||((p=c[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,o,m,a)||t.addEventListener&&t.addEventListener(f,a)),d.add&&(d.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),r?p.splice(p.delegateCount++,0,u):p.push(u),w.event.global[f]=!0)},remove:function(e,t,n,o,r){var i,a,s,c,l,u,d,p,f,m,h,_=G.hasData(e)&&G.get(e);if(_&&(c=_.events)){for(l=(t=(t||"").match(Y)||[""]).length;l--;)if(f=h=(s=Ae.exec(t[l])||[])[1],m=(s[2]||"").split(".").sort(),f){for(d=w.event.special[f]||{},p=c[f=(o?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=p.length;i--;)u=p[i],!r&&h!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||o&&o!==u.selector&&("**"!==o||!u.selector)||(p.splice(i,1),u.selector&&p.delegateCount--,d.remove&&d.remove.call(e,u));a&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,m,_.handle)||w.removeEvent(e,f,_.handle),delete c[f])}else for(f in c)w.event.remove(e,f+t[l],n,o,!0);w.isEmptyObject(c)&&G.remove(e,"handle events")}},dispatch:function(e){var t,n,o,r,i,a,s=w.event.fix(e),c=new Array(arguments.length),l=(G.get(this,"events")||{})[s.type]||[],u=w.event.special[s.type]||{};for(c[0]=s,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,xe=/\s*$/g;function Ce(e,t){return z(e,"table")&&z(11!==t.nodeType?t:t.firstChild,"tr")&&w(e).children("tbody")[0]||e}function Ee(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ye(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function qe(e,t){var n,o,r,i,a,s,c,l;if(1===t.nodeType){if(G.hasData(e)&&(i=G.access(e),a=G.set(t,i),l=i.events))for(r in delete a.handle,a.events={},l)for(n=0,o=l[r].length;n")},clone:function(e,t,n){var o,r,i,a,s,c,l,u=e.cloneNode(!0),d=re(e);if(!(b.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||w.isXMLDoc(e)))for(a=he(u),o=0,r=(i=he(e)).length;o").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",r=function(e){o.remove(),r=null,e&&t("error"===e.type?404:200,e.type)}),k.head.appendChild(o[0])},abort:function(){r&&r()}}});var tn,nn=[],on=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=nn.pop()||w.expando+"_"+Ct++;return this[e]=!0,e}}),w.ajaxPrefilter("json jsonp",function(e,t,n){var o,r,i,a=!1!==e.jsonp&&(on.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&on.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(on,"$1"+o):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return i||w.error(o+" was not called"),i[0]},e.dataTypes[0]="json",r=A[o],A[o]=function(){i=arguments},n.always(function(){void 0===r?w(A).removeProp(o):A[o]=r,e[o]&&(e.jsonpCallback=t.jsonpCallback,nn.push(o)),i&&y(r)&&r(i[0]),i=r=void 0}),"script"}),b.createHTMLDocument=((tn=k.implementation.createHTMLDocument("").body).innerHTML="
",2===tn.childNodes.length),w.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(b.createHTMLDocument?((o=(t=k.implementation.createHTMLDocument("")).createElement("base")).href=k.location.href,t.head.appendChild(o)):t=k),i=!n&&[],(r=S.exec(e))?[t.createElement(r[1])]:(r=ge([e],t,i),i&&i.length&&w(i).remove(),w.merge([],r.childNodes)));var o,r,i},w.fn.load=function(e,t,n){var o,r,i,a=this,s=e.indexOf(" ");return-1").append(w.parseHTML(e)).find(o):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,i||[e.responseText,t,e])})}),this},w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){w.fn[t]=function(e){return this.on(t,e)}}),w.expr.pseudos.animated=function(t){return w.grep(w.timers,function(e){return t===e.elem}).length},w.offset={setOffset:function(e,t,n){var o,r,i,a,s,c,l=w.css(e,"position"),u=w(e),d={};"static"===l&&(e.style.position="relative"),s=u.offset(),i=w.css(e,"top"),c=w.css(e,"left"),r=("absolute"===l||"fixed"===l)&&-1<(i+c).indexOf("auto")?(a=(o=u.position()).top,o.left):(a=parseFloat(i)||0,parseFloat(c)||0),y(t)&&(t=t.call(e,n,w.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+r),"using"in t?t.using.call(e,d):u.css(d)}},w.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){w.offset.setOffset(this,t,e)});var e,n,o=this[0];return o?o.getClientRects().length?(e=o.getBoundingClientRect(),n=o.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,o=this[0],r={top:0,left:0};if("fixed"===w.css(o,"position"))t=o.getBoundingClientRect();else{for(t=this.offset(),n=o.ownerDocument,e=o.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===w.css(e,"position");)e=e.parentNode;e&&e!==o&&1===e.nodeType&&((r=w(e).offset()).top+=w.css(e,"borderTopWidth",!0),r.left+=w.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-w.css(o,"marginTop",!0),left:t.left-r.left-w.css(o,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===w.css(e,"position");)e=e.offsetParent;return e||oe})}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var i="pageYOffset"===r;w.fn[t]=function(e){return P(this,function(e,t,n){var o;if(h(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===n)return o?o[r]:e[t];o?o.scrollTo(i?o.pageXOffset:n,i?n:o.pageYOffset):e[t]=n},t,e,arguments.length)}}),w.each(["top","left"],function(e,n){w.cssHooks[n]=$e(b.pixelPosition,function(e,t){if(t)return t=Qe(e,n),Ue.test(t)?w(e).position()[n]+"px":t})}),w.each({Height:"height",Width:"width"},function(a,s){w.each({padding:"inner"+a,content:s,"":"outer"+a},function(o,i){w.fn[i]=function(e,t){var n=arguments.length&&(o||"boolean"!=typeof e),r=o||(!0===e||!0===t?"margin":"border");return P(this,function(e,t,n){var o;return h(e)?0===i.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+a],o["scroll"+a],e.body["offset"+a],o["offset"+a],o["client"+a])):void 0===n?w.css(e,t,r):w.style(e,t,n,r)},s,n?e:void 0,n)}})}),w.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){w.fn[n]=function(e,t){return 0<|]|"+t.src_ZPCc+"))("+a+")","i"),o.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","ig"),o.re.pretest=RegExp("("+o.re.schema_test.source+")|("+o.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(o)}function p(e,t){var n=e.__index__,o=e.__last_index__,r=e.__text_cache__.slice(n,o);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=o+t,this.raw=r,this.text=r,this.url=r}function f(e,t){var n=new p(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function m(e,t){if(!(this instanceof m))return new m(e,t);t||!function(e){return Object.keys(e||{}).reduce(function(e,t){return e||o.hasOwnProperty(t)},!1)}(e)||(t=e,e={}),this.__opts__=n({},o,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=n({},r,e),this.__compiled__={},this.__tlds__=i,this.__tlds_replaced__=!1,this.re={},a(this)}m.prototype.add=function(e,t){return this.__schemas__[e]=t,a(this),this},m.prototype.set=function(e){return this.__opts__=n(this.__opts__,e),this},m.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,o,r,i,a,s,c;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(r=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+r;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&0<=(c=e.search(this.re.host_fuzzy_test))&&(this.__index__<0||cthis.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a)),0<=this.__index__},m.prototype.pretest=function(e){return this.re.pretest.test(e)},m.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},m.prototype.match=function(e){var t=0,n=[];0<=this.__index__&&this.__text_cache__===e&&(n.push(f(this,t)),t=this.__last_index__);for(var o=t?e.slice(t):e;this.test(o);)n.push(f(this,t)),o=o.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},m.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse():(this.__tlds__=e.slice(),this.__tlds_replaced__=!0),a(this),this},m.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},m.prototype.onCompile=function(){},e.exports=m},"./node_modules/linkify-it/lib/re.js":function(e,t,o){e.exports=function(e){var t={};t.src_Any=o("./node_modules/uc.micro/properties/Any/regex.js").source,t.src_Cc=o("./node_modules/uc.micro/categories/Cc/regex.js").source,t.src_Z=o("./node_modules/uc.micro/categories/Z/regex.js").source,t.src_P=o("./node_modules/uc.micro/categories/P/regex.js").source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var n="[><|]";return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+"|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,3}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]+',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|[><|]|\\(|"+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},"./node_modules/markdown-it/index.js":function(e,t,n){e.exports=n("./node_modules/markdown-it/lib/index.js")},"./node_modules/markdown-it/lib/common/entities.js":function(e,t,n){e.exports=n("./node_modules/entities/lib/maps/entities.json")},"./node_modules/markdown-it/lib/common/html_blocks.js":function(e,t,n){e.exports=["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","h1","h2","h3","h4","h5","h6","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"]},"./node_modules/markdown-it/lib/common/html_re.js":function(e,t,n){var o="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",r="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",i=new RegExp("^(?:"+o+"|"+r+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|]*>|)"),a=new RegExp("^(?:"+o+"|"+r+")");e.exports.HTML_TAG_RE=i,e.exports.HTML_OPEN_CLOSE_TAG_RE=a},"./node_modules/markdown-it/lib/common/utils.js":function(e,t,n){function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=Object.prototype.hasOwnProperty;function i(e,t){return r.call(e,t)}function a(e){return!(55296<=e&&e<=57343)&&(!(64976<=e&&e<=65007)&&(65535!=(65535&e)&&65534!=(65535&e)&&(!(0<=e&&e<=8)&&(11!==e&&(!(14<=e&&e<=31)&&(!(127<=e&&e<=159)&&!(1114111>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var c=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,l=new RegExp(c.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),u=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,d=n("./node_modules/markdown-it/lib/common/entities.js");var p=/[&<>"]/,f=/[&<>"]/g,m={"&":"&","<":"<",">":">",'"':"""};function h(e){return m[e]}var _=/[.?*+^$[\]\\(){}|-]/g;var M=n("./node_modules/uc.micro/categories/P/regex.js");t.lib={},t.lib.mdurl=n("./node_modules/mdurl/index.js"),t.lib.ucmicro=n("./node_modules/uc.micro/index.js"),t.assign=function(n){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if("object"!==o(t))throw new TypeError(t+"must be object");Object.keys(t).forEach(function(e){n[e]=t[e]})}}),n},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=i,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(c,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(l,function(e,t,n){return t||function(e,t){var n=0;return i(d,t)?d[t]:35===t.charCodeAt(0)&&u.test(t)&&a(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?s(n):e}(e,n)})},t.isValidEntityCode=a,t.fromCodePoint=s,t.escapeHtml=function(e){return p.test(e)?e.replace(f,h):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(8192<=e&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return M.test(e)},t.escapeRE=function(e){return e.replace(_,"\\$&")},t.normalizeReference=function(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}},"./node_modules/markdown-it/lib/index.js":function(e,t,n){var o=n("./node_modules/markdown-it/lib/common/utils.js"),r=n("./node_modules/markdown-it/lib/helpers/index.js"),i=n("./node_modules/markdown-it/lib/renderer.js"),a=n("./node_modules/markdown-it/lib/parser_core.js"),s=n("./node_modules/markdown-it/lib/parser_block.js"),c=n("./node_modules/markdown-it/lib/parser_inline.js"),l=n("./node_modules/linkify-it/index.js"),u=n("./node_modules/mdurl/index.js"),d=n("./node_modules/punycode/punycode.js"),p={default:n("./node_modules/markdown-it/lib/presets/default.js"),zero:n("./node_modules/markdown-it/lib/presets/zero.js"),commonmark:n("./node_modules/markdown-it/lib/presets/commonmark.js")},f=/^(vbscript|javascript|file|data):/,m=/^data:image\/(gif|png|jpeg|webp);/;function h(e){var t=e.trim().toLowerCase();return!f.test(t)||!!m.test(t)}var _=["http:","https:","mailto:"];function M(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||0<=_.indexOf(t.protocol)))try{t.hostname=d.toASCII(t.hostname)}catch(e){}return u.encode(u.format(t))}function b(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||0<=_.indexOf(t.protocol)))try{t.hostname=d.toUnicode(t.hostname)}catch(e){}return u.decode(u.format(t))}function y(e,t){if(!(this instanceof y))return new y(e,t);t||o.isString(e)||(t=e||{},e="default"),this.inline=new c,this.block=new s,this.core=new a,this.renderer=new i,this.linkify=new l,this.validateLink=h,this.normalizeLink=M,this.normalizeLinkText=b,this.utils=o,this.helpers=o.assign({},r),this.options={},this.configure(e),t&&this.set(t)}y.prototype.set=function(e){return o.assign(this.options,e),this},y.prototype.configure=function(t){var e,n=this;if(o.isString(t)&&!(t=p[e=t]))throw new Error('Wrong `markdown-it` preset "'+e+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&n.set(t.options),t.components&&Object.keys(t.components).forEach(function(e){t.components[e].rules&&n[e].ruler.enableOnly(t.components[e].rules),t.components[e].rules2&&n[e].ruler2.enableOnly(t.components[e].rules2)}),this},y.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(e){n=n.concat(this[e].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var o=t.filter(function(e){return n.indexOf(e)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this},y.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(e){n=n.concat(this[e].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var o=t.filter(function(e){return n.indexOf(e)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this},y.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},y.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},y.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},y.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},y.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=y},"./node_modules/markdown-it/lib/parser_block.js":function(e,t,n){var o=n("./node_modules/markdown-it/lib/ruler.js"),r=[["table",n("./node_modules/markdown-it/lib/rules_block/table.js"),["paragraph","reference"]],["code",n("./node_modules/markdown-it/lib/rules_block/code.js")],["fence",n("./node_modules/markdown-it/lib/rules_block/fence.js"),["paragraph","reference","blockquote","list"]],["blockquote",n("./node_modules/markdown-it/lib/rules_block/blockquote.js"),["paragraph","reference","blockquote","list"]],["hr",n("./node_modules/markdown-it/lib/rules_block/hr.js"),["paragraph","reference","blockquote","list"]],["list",n("./node_modules/markdown-it/lib/rules_block/list.js"),["paragraph","reference","blockquote"]],["reference",n("./node_modules/markdown-it/lib/rules_block/reference.js")],["heading",n("./node_modules/markdown-it/lib/rules_block/heading.js"),["paragraph","reference","blockquote"]],["lheading",n("./node_modules/markdown-it/lib/rules_block/lheading.js")],["html_block",n("./node_modules/markdown-it/lib/rules_block/html_block.js"),["paragraph","reference","blockquote"]],["paragraph",n("./node_modules/markdown-it/lib/rules_block/paragraph.js")]];function i(){this.ruler=new o;for(var e=0;e=c){e.line=n;break}for(o=0;o=i)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},a.prototype.parse=function(e,t,n,o){var r,i,a,s=new this.State(e,t,n,o);for(this.tokenize(s),a=(i=this.ruler2.getRules("")).length,r=0;r"+f(e[t].content)+""},r.code_block=function(e,t,n,o,r){var i=e[t];return""+f(e[t].content)+"\n"},r.fence=function(e,t,n,o,r){var i,a,s,c,l=e[t],u=l.info?p(l.info).trim():"",d="";return u&&(d=u.split(/\s+/g)[0]),0===(i=n.highlight&&n.highlight(l.content,d)||f(l.content)).indexOf(""+i+"\n"):"
"+i+"
\n"},r.image=function(e,t,n,o,r){var i=e[t];return i.attrs[i.attrIndex("alt")][1]=r.renderInlineAsText(i.children,n,o),r.renderToken(e,t,n)},r.hardbreak=function(e,t,n){return n.xhtmlOut?"
\n":"
\n"},r.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"
\n":"
\n":"\n"},r.text=function(e,t){return f(e[t].content)},r.html_block=function(e,t){return e[t].content},r.html_inline=function(e,t){return e[t].content},i.prototype.renderAttrs=function(e){var t,n,o;if(!e.attrs)return"";for(o="",t=0,n=e.attrs.length;t\n":">")},i.prototype.renderInline=function(e,t,n){for(var o,r="",i=this.rules,a=0,s=e.length;a",L.map=u=[t,0],e.md.block.tokenize(e,t,d),(L=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=k,e.parentType=_,u[1]=e.line,a=0;a|$))/i,/<\/(script|pre|style)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(r.source+"\\s*$"),/^$/,!1]];e.exports=function(e,t,n,o){var r,i,a,s,c=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(4<=e.sCount[t]-e.blkIndent)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(c))return!1;for(s=e.src.slice(c,l),r=0;r=e.blkIndent&&(c=e.bMarks[f]+e.tShift[f])<(l=e.eMarks[f])&&(45===(d=e.src.charCodeAt(c))||61===d)&&(c=e.skipChars(c,d),l<=(c=e.skipSpaces(c)))){u=61===d?1:2;break}if(!(e.sCount[f]<0)){for(r=!1,i=0,a=m.length;i=e.blkIndent&&(N=!0),0<=(T=Y(e,t))){if(u=!0,S=e.bMarks[t]+e.tShift[t],_=Number(e.src.substr(S,T-S-1)),N&&1!==_)return!1}else{if(!(0<=(T=E(e,t))))return!1;u=!1}if(N&&e.skipSpaces(T)>=e.eMarks[t])return!1;if(h=e.src.charCodeAt(T-1),o)return!0;for(m=e.tokens.length,u?(D=e.push("ordered_list_open","ol",1),1!==_&&(D.attrs=[["start",_]])):D=e.push("bullet_list_open","ul",1),D.map=f=[t,0],D.markup=String.fromCharCode(h),b=t,z=!1,x=e.md.block.ruler.getRules("list"),v=e.parentType,e.parentType="list";b=this.eMarks[e]},o.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e=e.eMarks[c])return!1;if(124!==(r=e.src.charCodeAt(a++))&&45!==r&&58!==r)return!1;for(;ap.length)return!1;if(o)return!0;for((d=e.push("table_open","table",1)).map=m=[t,0],(d=e.push("thead_open","thead",1)).map=[t,t+1],(d=e.push("tr_open","tr",1)).map=[t,t+1],s=0;s\s]/i.test(y)&&0/i.test(b)&&f++),!(0/,u=/^<([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)>/;e.exports=function(e,t){var n,o,r,i,a,s,c=e.pos;return 60===e.src.charCodeAt(c)&&(!((n=e.src.slice(c)).indexOf(">")<0)&&(u.test(n)?(i=(o=n.match(u))[0].slice(1,-1),a=e.md.normalizeLink(i),!!e.md.validateLink(a)&&(t||((s=e.push("link_open","a",1)).attrs=[["href",a]],s.markup="autolink",s.info="auto",(s=e.push("text","",0)).content=e.md.normalizeLinkText(i),(s=e.push("link_close","a",-1)).markup="autolink",s.info="auto"),e.pos+=o[0].length,!0)):!!l.test(n)&&(i=(r=n.match(l))[0].slice(1,-1),a=e.md.normalizeLink("mailto:"+i),!!e.md.validateLink(a)&&(t||((s=e.push("link_open","a",1)).attrs=[["href",a]],s.markup="autolink",s.info="auto",(s=e.push("text","",0)).content=e.md.normalizeLinkText(i),(s=e.push("link_close","a",-1)).markup="autolink",s.info="auto"),e.pos+=r[0].length,!0))))}},"./node_modules/markdown-it/lib/rules_inline/backticks.js":function(e,t,n){e.exports=function(e,t){var n,o,r,i,a,s,c=e.pos;if(96!==e.src.charCodeAt(c))return!1;for(n=c,c++,o=e.posMax;c?@[]^_`{|}~-".split("").forEach(function(e){a[e.charCodeAt(0)]=1}),e.exports=function(e,t){var n,o=e.pos,r=e.posMax;if(92!==e.src.charCodeAt(o))return!1;if(++o>10),56320+(1023&s))),t+=9):c+="�";return c})}o.defaultChars=";/?:@&=+$,#",o.componentChars="",e.exports=o},"./node_modules/mdurl/encode.js":function(e,t,n){var l={};function u(e,t,n){var o,r,i,a,s,c="";for("string"!=typeof t&&(n=t,t=u.defaultChars),void 0===n&&(n=!0),s=function(e){var t,n,o=l[e];if(o)return o;for(o=l[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?o.push(n):o.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t",'"',"`"," ","\r","\n","\t"]),a=["'"].concat(i),z=["%","/","?",";","#"].concat(a),S=["/","?","#"],O=/^[+a-z0-9A-Z_-]{0,63}$/,x=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,D={javascript:!0,"javascript:":!0},N={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};o.prototype.parse=function(e,t){var n,o,r,i,a,s=e;if(s=s.trim(),!t&&1===e.split("#").length){var c=T.exec(s);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var l=w.exec(s);if(l&&(r=(l=l[0]).toLowerCase(),this.protocol=l,s=s.substr(l.length)),(t||l||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(a="//"===s.substr(0,2))||l&&D[l]||(s=s.substr(2),this.slashes=!0)),!D[l]&&(a||l&&!N[l])){var u,d,p=-1;for(n=0;n>>0,o=0;oAe(e)?(i=e+1,s-Ae(e)):(i=e,s),{year:i,dayOfYear:a}}function Pe(e,t,n){var o,r,i=He(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?o=a+Re(r=e.year()-1,t,n):a>Re(e.year(),t,n)?(o=a-Re(e.year(),t,n),r=e.year()+1):(r=e.year(),o=a),{week:o,year:r}}function Re(e,t,n){var o=He(e,t,n),r=He(e+1,t,n);return(Ae(e)-o+r)/7}P("w",["ww",2],"wo","week"),P("W",["WW",2],"Wo","isoWeek"),N("week","w"),N("isoWeek","W"),q("week",5),q("isoWeek",5),ce("w",J),ce("ww",J,U),ce("W",J),ce("WW",J,U),fe(["w","ww","W","WW"],function(e,t,n,o){t[o.substr(0,1)]=L(e)});function Ie(e,t){return e.slice(t,7).concat(e.slice(0,t))}P("d",0,"do","day"),P("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),P("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),P("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),P("e",0,0,"weekday"),P("E",0,0,"isoWeekday"),N("day","d"),N("weekday","e"),N("isoWeekday","E"),q("day",11),q("weekday",11),q("isoWeekday",11),ce("d",J),ce("e",J),ce("E",J),ce("dd",function(e,t){return t.weekdaysMinRegex(e)}),ce("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ce("dddd",function(e,t){return t.weekdaysRegex(e)}),fe(["dd","ddd","dddd"],function(e,t,n,o){var r=n._locale.weekdaysParse(e,o,n._strict);null!=r?t.d=r:m(n).invalidWeekday=e}),fe(["d","e","E"],function(e,t,n,o){t[o]=L(e)});var Fe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var Ue="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Ke="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var Ve=ae;var Ge=ae;var Je=ae;function Qe(){function e(e,t){return t.length-e.length}var t,n,o,r,i,a=[],s=[],c=[],l=[];for(t=0;t<7;t++)n=d([2e3,1]).day(t),o=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),i=this.weekdays(n,""),a.push(o),s.push(r),c.push(i),l.push(o),l.push(r),l.push(i);for(a.sort(e),s.sort(e),c.sort(e),l.sort(e),t=0;t<7;t++)s[t]=ue(s[t]),c[t]=ue(c[t]),l[t]=ue(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function $e(){return this.hours()%12||12}function Ze(e,t){P(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function et(e,t){return t._meridiemParse}P("H",["HH",2],0,"hour"),P("h",["hh",2],0,$e),P("k",["kk",2],0,function(){return this.hours()||24}),P("hmm",0,0,function(){return""+$e.apply(this)+W(this.minutes(),2)}),P("hmmss",0,0,function(){return""+$e.apply(this)+W(this.minutes(),2)+W(this.seconds(),2)}),P("Hmm",0,0,function(){return""+this.hours()+W(this.minutes(),2)}),P("Hmmss",0,0,function(){return""+this.hours()+W(this.minutes(),2)+W(this.seconds(),2)}),Ze("a",!0),Ze("A",!1),N("hour","h"),q("hour",13),ce("a",et),ce("A",et),ce("H",J),ce("h",J),ce("k",J),ce("HH",J,U),ce("hh",J,U),ce("kk",J,U),ce("hmm",Q),ce("hmmss",$),ce("Hmm",Q),ce("Hmmss",$),pe(["H","HH"],Me),pe(["k","kk"],function(e,t,n){var o=L(e);t[Me]=24===o?0:o}),pe(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),pe(["h","hh"],function(e,t,n){t[Me]=L(e),m(n).bigHour=!0}),pe("hmm",function(e,t,n){var o=e.length-2;t[Me]=L(e.substr(0,o)),t[be]=L(e.substr(o)),m(n).bigHour=!0}),pe("hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[Me]=L(e.substr(0,o)),t[be]=L(e.substr(o,2)),t[ye]=L(e.substr(r)),m(n).bigHour=!0}),pe("Hmm",function(e,t,n){var o=e.length-2;t[Me]=L(e.substr(0,o)),t[be]=L(e.substr(o))}),pe("Hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[Me]=L(e.substr(0,o)),t[be]=L(e.substr(o,2)),t[ye]=L(e.substr(r))});var tt,nt=ze("Hours",!0),ot={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ne,monthsShort:Ce,week:{dow:0,doy:6},weekdays:Fe,weekdaysMin:Ke,weekdaysShort:Ue,meridiemParse:/[ap]\.?m?\.?/i},rt={},it={};function at(e){return e?e.toLowerCase().replace("_","-"):e}function st(e){var t=null;if(!rt[e]&&void 0!==Gn&&Gn&&Gn.exports)try{t=tt._abbr;Qn("./node_modules/moment/locale sync recursive ^\\.\\/.*$")("./"+e),ct(t)}catch(e){}return rt[e]}function ct(e,t){var n;return e&&((n=i(t)?ut(e):lt(e,t))?tt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),tt._abbr}function lt(e,t){if(null===t)return delete rt[e],null;var n,o=ot;if(t.abbr=e,null!=rt[e])z("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=rt[e]._config;else if(null!=t.parentLocale)if(null!=rt[t.parentLocale])o=rt[t.parentLocale]._config;else{if(null==(n=st(t.parentLocale)))return it[t.parentLocale]||(it[t.parentLocale]=[]),it[t.parentLocale].push({name:e,config:t}),null;o=n._config}return rt[e]=new x(O(o,t)),it[e]&&it[e].forEach(function(e){lt(e.name,e.config)}),ct(e),rt[e]}function ut(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return tt;if(!a(e)){if(t=st(e))return t;e=[e]}return function(e){for(var t,n,o,r,i=0;i=t&&A(r,n,!0)>=t-1)break;t--}i++}return tt}(e)}function dt(e){var t,n=e._a;return n&&-2===m(e).overflow&&(t=n[he]<0||11xe(n[me],n[he])?_e:n[Me]<0||24Re(n,i,a)?m(e)._overflowWeeks=!0:null!=c?m(e)._overflowWeekday=!0:(s=Xe(n,o,r,i,a),e._a[me]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(i=pt(e._a[me],o[me]),(e._dayOfYear>Ae(i)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=Be(i,0,e._dayOfYear),e._a[he]=n.getUTCMonth(),e._a[_e]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=o[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Me]&&0===e._a[be]&&0===e._a[ye]&&0===e._a[ge]&&(e._nextDay=!0,e._a[Me]=0),e._d=(e._useUTC?Be:function(e,t,n,o,r,i,a){var s;return e<100&&0<=e?(s=new Date(e+400,t,n,o,r,i,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,o,r,i,a),s}).apply(null,a),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Me]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(m(e).weekdayMismatch=!0)}}var mt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ht=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_t=/Z|[+-]\d\d(?::?\d\d)?/,Mt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],bt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],yt=/^\/?Date\((\-?\d+)/i;function gt(e){var t,n,o,r,i,a,s=e._i,c=mt.exec(s)||ht.exec(s);if(c){for(m(e).iso=!0,t=0,n=Mt.length;tn.valueOf():n.valueOf()this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},mn.isLocal=function(){return!!this.isValid()&&!this._isUTC},mn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},mn.isUtc=Xt,mn.isUTC=Xt,mn.zoneAbbr=function(){return this._isUTC?"UTC":""},mn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},mn.dates=n("dates accessor is deprecated. Use date instead.",cn),mn.months=n("months accessor is deprecated. Use month instead",Ye),mn.years=n("years accessor is deprecated. Use year instead",Te),mn.zone=n("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),mn.isDSTShifted=n("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!i(this._isDSTShifted))return this._isDSTShifted;var e={};if(b(e,this),(e=Tt(e))._a){var t=e._isUTC?d(e._a):St(e._a);this._isDSTShifted=this.isValid()&&0>>0,o=0;oAe(e)?(i=e+1,s-Ae(e)):(i=e,s),{year:i,dayOfYear:a}}function Pe(e,t,n){var o,r,i=He(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?o=a+Re(r=e.year()-1,t,n):a>Re(e.year(),t,n)?(o=a-Re(e.year(),t,n),r=e.year()+1):(r=e.year(),o=a),{week:o,year:r}}function Re(e,t,n){var o=He(e,t,n),r=He(e+1,t,n);return(Ae(e)-o+r)/7}P("w",["ww",2],"wo","week"),P("W",["WW",2],"Wo","isoWeek"),N("week","w"),N("isoWeek","W"),q("week",5),q("isoWeek",5),ce("w",J),ce("ww",J,U),ce("W",J),ce("WW",J,U),fe(["w","ww","W","WW"],function(e,t,n,o){t[o.substr(0,1)]=L(e)});function Ie(e,t){return e.slice(t,7).concat(e.slice(0,t))}P("d",0,"do","day"),P("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),P("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),P("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),P("e",0,0,"weekday"),P("E",0,0,"isoWeekday"),N("day","d"),N("weekday","e"),N("isoWeekday","E"),q("day",11),q("weekday",11),q("isoWeekday",11),ce("d",J),ce("e",J),ce("E",J),ce("dd",function(e,t){return t.weekdaysMinRegex(e)}),ce("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ce("dddd",function(e,t){return t.weekdaysRegex(e)}),fe(["dd","ddd","dddd"],function(e,t,n,o){var r=n._locale.weekdaysParse(e,o,n._strict);null!=r?t.d=r:m(n).invalidWeekday=e}),fe(["d","e","E"],function(e,t,n,o){t[o]=L(e)});var Fe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var Ue="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Ke="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var Ve=ae;var Ge=ae;var Je=ae;function Qe(){function e(e,t){return t.length-e.length}var t,n,o,r,i,a=[],s=[],c=[],l=[];for(t=0;t<7;t++)n=d([2e3,1]).day(t),o=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),i=this.weekdays(n,""),a.push(o),s.push(r),c.push(i),l.push(o),l.push(r),l.push(i);for(a.sort(e),s.sort(e),c.sort(e),l.sort(e),t=0;t<7;t++)s[t]=ue(s[t]),c[t]=ue(c[t]),l[t]=ue(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function $e(){return this.hours()%12||12}function Ze(e,t){P(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function et(e,t){return t._meridiemParse}P("H",["HH",2],0,"hour"),P("h",["hh",2],0,$e),P("k",["kk",2],0,function(){return this.hours()||24}),P("hmm",0,0,function(){return""+$e.apply(this)+W(this.minutes(),2)}),P("hmmss",0,0,function(){return""+$e.apply(this)+W(this.minutes(),2)+W(this.seconds(),2)}),P("Hmm",0,0,function(){return""+this.hours()+W(this.minutes(),2)}),P("Hmmss",0,0,function(){return""+this.hours()+W(this.minutes(),2)+W(this.seconds(),2)}),Ze("a",!0),Ze("A",!1),N("hour","h"),q("hour",13),ce("a",et),ce("A",et),ce("H",J),ce("h",J),ce("k",J),ce("HH",J,U),ce("hh",J,U),ce("kk",J,U),ce("hmm",Q),ce("hmmss",$),ce("Hmm",Q),ce("Hmmss",$),pe(["H","HH"],Me),pe(["k","kk"],function(e,t,n){var o=L(e);t[Me]=24===o?0:o}),pe(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),pe(["h","hh"],function(e,t,n){t[Me]=L(e),m(n).bigHour=!0}),pe("hmm",function(e,t,n){var o=e.length-2;t[Me]=L(e.substr(0,o)),t[be]=L(e.substr(o)),m(n).bigHour=!0}),pe("hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[Me]=L(e.substr(0,o)),t[be]=L(e.substr(o,2)),t[ye]=L(e.substr(r)),m(n).bigHour=!0}),pe("Hmm",function(e,t,n){var o=e.length-2;t[Me]=L(e.substr(0,o)),t[be]=L(e.substr(o))}),pe("Hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[Me]=L(e.substr(0,o)),t[be]=L(e.substr(o,2)),t[ye]=L(e.substr(r))});var tt,nt=ze("Hours",!0),ot={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ne,monthsShort:Ce,week:{dow:0,doy:6},weekdays:Fe,weekdaysMin:Ke,weekdaysShort:Ue,meridiemParse:/[ap]\.?m?\.?/i},rt={},it={};function at(e){return e?e.toLowerCase().replace("_","-"):e}function st(e){var t=null;if(!rt[e]&&void 0!==Gn&&Gn&&Gn.exports)try{t=tt._abbr;Qn("./node_modules/moment/locale sync recursive ^\\.\\/.*$")("./"+e),ct(t)}catch(e){}return rt[e]}function ct(e,t){var n;return e&&((n=i(t)?ut(e):lt(e,t))?tt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),tt._abbr}function lt(e,t){if(null===t)return delete rt[e],null;var n,o=ot;if(t.abbr=e,null!=rt[e])z("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=rt[e]._config;else if(null!=t.parentLocale)if(null!=rt[t.parentLocale])o=rt[t.parentLocale]._config;else{if(null==(n=st(t.parentLocale)))return it[t.parentLocale]||(it[t.parentLocale]=[]),it[t.parentLocale].push({name:e,config:t}),null;o=n._config}return rt[e]=new x(O(o,t)),it[e]&&it[e].forEach(function(e){lt(e.name,e.config)}),ct(e),rt[e]}function ut(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return tt;if(!a(e)){if(t=st(e))return t;e=[e]}return function(e){for(var t,n,o,r,i=0;i=t&&A(r,n,!0)>=t-1)break;t--}i++}return tt}(e)}function dt(e){var t,n=e._a;return n&&-2===m(e).overflow&&(t=n[he]<0||11xe(n[me],n[he])?_e:n[Me]<0||24Re(n,i,a)?m(e)._overflowWeeks=!0:null!=c?m(e)._overflowWeekday=!0:(s=Xe(n,o,r,i,a),e._a[me]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(i=pt(e._a[me],o[me]),(e._dayOfYear>Ae(i)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=Be(i,0,e._dayOfYear),e._a[he]=n.getUTCMonth(),e._a[_e]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=o[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Me]&&0===e._a[be]&&0===e._a[ye]&&0===e._a[ge]&&(e._nextDay=!0,e._a[Me]=0),e._d=(e._useUTC?Be:function(e,t,n,o,r,i,a){var s;return e<100&&0<=e?(s=new Date(e+400,t,n,o,r,i,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,o,r,i,a),s}).apply(null,a),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Me]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(m(e).weekdayMismatch=!0)}}var mt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ht=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_t=/Z|[+-]\d\d(?::?\d\d)?/,Mt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],bt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],yt=/^\/?Date\((\-?\d+)/i;function gt(e){var t,n,o,r,i,a,s=e._i,c=mt.exec(s)||ht.exec(s);if(c){for(m(e).iso=!0,t=0,n=Mt.length;tn.valueOf():n.valueOf()this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},mn.isLocal=function(){return!!this.isValid()&&!this._isUTC},mn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},mn.isUtc=Xt,mn.isUTC=Xt,mn.zoneAbbr=function(){return this._isUTC?"UTC":""},mn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},mn.dates=n("dates accessor is deprecated. Use date instead.",cn),mn.months=n("months accessor is deprecated. Use month instead",Ye),mn.years=n("years accessor is deprecated. Use year instead",Te),mn.zone=n("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),mn.isDSTShifted=n("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!i(this._isDSTShifted))return this._isDSTShifted;var e={};if(b(e,this),(e=Tt(e))._a){var t=e._isUTC?d(e._a):St(e._a);this._isDSTShifted=this.isValid()&&0":">"},a=/[&"'<>]/g;function s(e,t){return n.hasOwnProperty.call(e,t)}function c(e){return o[e]}function l(e,t,n){var o,r,i;if(e instanceof Error&&(e=(r=e).name+": "+r.message),Object.setPrototypeOf?(o=new Error(e),Object.setPrototypeOf(o,l.prototype)):(o=this,Object.defineProperty(o,"message",{enumerable:!1,writable:!0,value:e})),Object.defineProperty(o,"name",{value:"Template render error"}),Error.captureStackTrace&&Error.captureStackTrace(o,this.constructor),r){var a=Object.getOwnPropertyDescriptor(r,"stack");i=(i=a&&(a.get||function(){return a.value}))||function(){return r.stack}}else{var s=new Error(e).stack;i=function(){return s}}return Object.defineProperty(o,"stack",{get:function(){return i.call(o)}}),Object.defineProperty(o,"cause",{value:r}),o.lineno=t,o.colno=n,o.firstUpdate=!0,o.Update=function(e){var t="("+(e||"unknown path")+")";return this.firstUpdate&&(this.lineno&&this.colno?t+=" [Line "+this.lineno+", Column "+this.colno+"]":this.lineno&&(t+=" [Line "+this.lineno+"]")),t+="\n ",this.firstUpdate&&(t+=" "),this.message=t+(this.message||""),this.firstUpdate=!1,this},o}function u(e){return"[object Function]"===n.toString.call(e)}function d(e){return"[object Array]"===n.toString.call(e)}function p(e){return"[object String]"===n.toString.call(e)}function f(e){return"[object Object]"===n.toString.call(e)}function m(e){return Array.prototype.slice.call(e)}function h(e,t,n){return Array.prototype.indexOf.call(e||[],t,n)}function _(e){var t=[];for(var n in e)s(e,n)&&t.push(n);return t}(r=e.exports={}).hasOwnProp=s,r._prettifyError=function(e,t,n){if(n.Update||(n=new r.TemplateError(n)),n.Update(e),!t){var o=n;(n=new Error(o.message)).name=o.name}return n},Object.setPrototypeOf?Object.setPrototypeOf(l.prototype,Error.prototype):l.prototype=Object.create(Error.prototype,{constructor:{value:l}}),r.TemplateError=l,r.escape=function(e){return e.replace(a,c)},r.isFunction=u,r.isArray=d,r.isString=p,r.isObject=f,r.groupBy=function(e,t){for(var n={},o=u(t)?t:function(e){return e[t]},r=0;rc.length)o=t.slice(0,c.length),t.slice(o.length,r).forEach(function(e,t){t",r+2),o(n,r+4)})}}}},function(e,t){},function(e,t,n){"use strict";var s=n(8),c=n(17),p=n(3),o=n(0).TemplateError,f=n(2).Frame,r=n(1).Obj,i={"==":"==","===":"===","!=":"!=","!==":"!==","<":"<",">":">","<=":"<=",">=":">="},l=function(e){function t(){return e.apply(this,arguments)||this}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e);var n=t.prototype;return n.init=function(e,t){this.templateName=e,this.codebuf=[],this.lastId=0,this.buffer=null,this.bufferStack=[],this._scopeClosers="",this.inBlock=!1,this.throwOnUndefined=t},n.fail=function(e,t,n){throw void 0!==t&&(t+=1),void 0!==n&&(n+=1),new o(e,t,n)},n._pushBuffer=function(){var e=this._tmpid();return this.bufferStack.push(this.buffer),this.buffer=e,this._emit("var "+this.buffer+' = "";'),e},n._popBuffer=function(){this.buffer=this.bufferStack.pop()},n._emit=function(e){this.codebuf.push(e)},n._emitLine=function(e){this._emit(e+"\n")},n._emitLines=function(){for(var t=this,e=arguments.length,n=new Array(e),o=0;o","<=",">="],t=this.parseConcat(),n=[];;){var o=this.nextToken();if(!o)break;if(-1===e.indexOf(o.value)){this.pushToken(o);break}n.push(new d.CompareOperand(o.lineno,o.colno,this.parseConcat(),o.value))}return n.length?new d.Compare(n[0].lineno,n[0].colno,t,n):t},n.parseConcat=function(){for(var e=this.parseAdd();this.skipValue(s.TOKEN_TILDE,"~");){var t=this.parseAdd();e=new d.Concat(e.lineno,e.colno,e,t)}return e},n.parseAdd=function(){for(var e=this.parseSub();this.skipValue(s.TOKEN_OPERATOR,"+");){var t=this.parseSub();e=new d.Add(e.lineno,e.colno,e,t)}return e},n.parseSub=function(){for(var e=this.parseMul();this.skipValue(s.TOKEN_OPERATOR,"-");){var t=this.parseMul();e=new d.Sub(e.lineno,e.colno,e,t)}return e},n.parseMul=function(){for(var e=this.parseDiv();this.skipValue(s.TOKEN_OPERATOR,"*");){var t=this.parseDiv();e=new d.Mul(e.lineno,e.colno,e,t)}return e},n.parseDiv=function(){for(var e=this.parseFloorDiv();this.skipValue(s.TOKEN_OPERATOR,"/");){var t=this.parseFloorDiv();e=new d.Div(e.lineno,e.colno,e,t)}return e},n.parseFloorDiv=function(){for(var e=this.parseMod();this.skipValue(s.TOKEN_OPERATOR,"//");){var t=this.parseMod();e=new d.FloorDiv(e.lineno,e.colno,e,t)}return e},n.parseMod=function(){for(var e=this.parsePow();this.skipValue(s.TOKEN_OPERATOR,"%");){var t=this.parsePow();e=new d.Mod(e.lineno,e.colno,e,t)}return e},n.parsePow=function(){for(var e=this.parseUnary();this.skipValue(s.TOKEN_OPERATOR,"**");){var t=this.parseUnary();e=new d.Pow(e.lineno,e.colno,e,t)}return e},n.parseUnary=function(e){var t,n=this.peekToken();return t=this.skipValue(s.TOKEN_OPERATOR,"-")?new d.Neg(n.lineno,n.colno,this.parseUnary(!0)):this.skipValue(s.TOKEN_OPERATOR,"+")?new d.Pos(n.lineno,n.colno,this.parseUnary(!0)):this.parsePrimary(),e||(t=this.parseFilter(t)),t},n.parsePrimary=function(e){var t,n=this.nextToken(),o=null;if(n?n.type===s.TOKEN_STRING?t=n.value:n.type===s.TOKEN_INT?t=parseInt(n.value,10):n.type===s.TOKEN_FLOAT?t=parseFloat(n.value):n.type===s.TOKEN_BOOLEAN?"true"===n.value?t=!0:"false"===n.value?t=!1:this.fail("invalid boolean: "+n.value,n.lineno,n.colno):n.type===s.TOKEN_NONE?t=null:n.type===s.TOKEN_REGEX&&(t=new RegExp(n.value.body,n.value.flags)):this.fail("expected expression, got end of file"),o=void 0!==t?new d.Literal(n.lineno,n.colno,t):n.type===s.TOKEN_SYMBOL?new d.Symbol(n.lineno,n.colno,n.value):(this.pushToken(n),this.parseAggregate()),e||(o=this.parsePostfix(o)),o)return o;throw this.error("unexpected token: "+n.value,n.lineno,n.colno)},n.parseFilterName=function(){for(var e=this.expect(s.TOKEN_SYMBOL),t=e.value;this.skipValue(s.TOKEN_OPERATOR,".");)t+="."+this.expect(s.TOKEN_SYMBOL).value;return new d.Symbol(e.lineno,e.colno,t)},n.parseFilterArgs=function(e){return this.peekToken().type!==s.TOKEN_LEFT_PAREN?[]:this.parsePostfix(e).args.children},n.parseFilter=function(e){for(;this.skip(s.TOKEN_PIPE);){var t=this.parseFilterName();e=new d.Filter(t.lineno,t.colno,t,new d.NodeList(t.lineno,t.colno,[e].concat(this.parseFilterArgs(e))))}return e},n.parseFilterStatement=function(){var e=this.peekToken();this.skipSymbol("filter")||this.fail("parseFilterStatement: expected filter");var t=this.parseFilterName(),n=this.parseFilterArgs(t);this.advanceAfterBlockEnd(e.value);var o=new d.Capture(t.lineno,t.colno,this.parseUntilBlocks("endfilter"));this.advanceAfterBlockEnd();var r=new d.Filter(t.lineno,t.colno,t,new d.NodeList(t.lineno,t.colno,[o].concat(n)));return new d.Output(t.lineno,t.colno,[r])},n.parseAggregate=function(){var e,t=this.nextToken();switch(t.type){case s.TOKEN_LEFT_PAREN:e=new d.Group(t.lineno,t.colno);break;case s.TOKEN_LEFT_BRACKET:e=new d.Array(t.lineno,t.colno);break;case s.TOKEN_LEFT_CURLY:e=new d.Dict(t.lineno,t.colno);break;default:return null}for(;;){var n=this.peekToken().type;if(n===s.TOKEN_RIGHT_PAREN||n===s.TOKEN_RIGHT_BRACKET||n===s.TOKEN_RIGHT_CURLY){this.nextToken();break}if(0=!",_="whitespace",M="block-start",b="variable-start",y="variable-end",g="left-paren",v="right-paren",L="left-bracket",A="right-bracket",k="left-curly",w="right-curly";function T(e,t,n,o){return{type:e,value:t,lineno:n,colno:o}}var o=function(){function e(e,t){this.str=e,this.index=0,this.len=e.length,this.lineno=0,this.colno=0,this.in_code=!1;var n=(t=t||{}).tags||{};this.tags={BLOCK_START:n.blockStart||"{%",BLOCK_END:n.blockEnd||"%}",VARIABLE_START:n.variableStart||"{{",VARIABLE_END:n.variableEnd||"}}",COMMENT_START:n.commentStart||"{#",COMMENT_END:n.commentEnd||"#}"},this.trimBlocks=!!t.trimBlocks,this.lstripBlocks=!!t.lstripBlocks}var t=e.prototype;return t.nextToken=function(){var e,t=this.lineno,n=this.colno;if(this.in_code){var o=this.current();if(this.isFinished())return null;if('"'===o||"'"===o)return T("string",this._parseString(o),t,n);if(e=this._extract(" \n\t\r "))return T(_,e,t,n);if((e=this._extractString(this.tags.BLOCK_END))||(e=this._extractString("-"+this.tags.BLOCK_END)))return this.in_code=!1,this.trimBlocks&&("\n"===(o=this.current())?this.forward():"\r"===o&&(this.forward(),"\n"===(o=this.current())?this.forward():this.back())),T("block-end",e,t,n);if((e=this._extractString(this.tags.VARIABLE_END))||(e=this._extractString("-"+this.tags.VARIABLE_END)))return this.in_code=!1,T(y,e,t,n);if("r"===o&&"/"===this.str.charAt(this.index+1)){this.forwardN(2);for(var r="";!this.isFinished();){if("/"===this.current()&&"\\"!==this.previous()){this.forward();break}r+=this.current(),this.forward()}for(var i=["g","i","m","y"],a="";!this.isFinished();){if(!(-1!==i.indexOf(this.current())))break;a+=this.current(),this.forward()}return T("regex",{body:r,flags:a},t,n)}if(-1!==h.indexOf(o)){this.forward();var s,c=["==","===","!=","!==","<=",">=","//","**"],l=o+this.current();switch(-1!==m.indexOf(c,l)&&(this.forward(),o=l,-1!==m.indexOf(c,l+this.current())&&(o=l+this.current(),this.forward())),o){case"(":s=g;break;case")":s=v;break;case"[":s=L;break;case"]":s=A;break;case"{":s=k;break;case"}":s=w;break;case",":s="comma";break;case":":s="colon";break;case"~":s="tilde";break;case"|":s="pipe";break;default:s="operator"}return T(s,o,t,n)}if((e=this._extractUntil(" \n\t\r "+h)).match(/^[-+]?[0-9]+$/))return"."!==this.current()?T("int",e,t,n):(this.forward(),T("float",e+"."+this._extract("0123456789"),t,n));if(e.match(/^(true|false)$/))return T("boolean",e,t,n);if("none"===e)return T("none",e,t,n);if("null"===e)return T("none",e,t,n);if(e)return T("symbol",e,t,n);throw new Error("Unexpected value while parsing: "+e)}var u,d=this.tags.BLOCK_START.charAt(0)+this.tags.VARIABLE_START.charAt(0)+this.tags.COMMENT_START.charAt(0)+this.tags.COMMENT_END.charAt(0);if(this.isFinished())return null;if((e=this._extractString(this.tags.BLOCK_START+"-"))||(e=this._extractString(this.tags.BLOCK_START)))return this.in_code=!0,T(M,e,t,n);if((e=this._extractString(this.tags.VARIABLE_START+"-"))||(e=this._extractString(this.tags.VARIABLE_START)))return this.in_code=!0,T(b,e,t,n);e="";var p=!1;for(this._matches(this.tags.COMMENT_START)&&(p=!0,e=this._extractString(this.tags.COMMENT_START));null!==(u=this._extractUntil(d));){if(e+=u,(this._matches(this.tags.BLOCK_START)||this._matches(this.tags.VARIABLE_START)||this._matches(this.tags.COMMENT_START))&&!p){if(this.lstripBlocks&&this._matches(this.tags.BLOCK_START)&&0this.len?null:this.str.slice(this.index,this.index+e.length)===e},t._extractString=function(e){return this._matches(e)?(this.forwardN(e.length),e):null},t._extractUntil=function(e){return this._extractMatching(!0,e||"")},t._extract=function(e){return this._extractMatching(!1,e)},t._extractMatching=function(e,t){if(this.isFinished())return null;var n=t.indexOf(this.current());if(e&&-1===n||!e&&-1!==n){var o=this.current();this.forward();for(var r=t.indexOf(this.current());(e&&-1===r||!e&&-1!==r)&&!this.isFinished();)o+=this.current(),this.forward(),r=t.indexOf(this.current());return o}return""},t._extractRegex=function(e){var t=this.currentStr().match(e);return t?(this.forwardN(t[0].length),t):null},t.isFinished=function(){return this.index>=this.len},t.forwardN=function(e){for(var t=0;tr&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,function(e){console&&console.warn&&console.warn(e)}(s)}return e}function d(e,t,n){var o={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=function(){for(var e=[],t=0;t=t)return e;var n=t-e.length,o=s.repeat(" ",n/2-n%2),r=s.repeat(" ",n/2);return l.copySafeness(e,o+e+r)},t.default=function(e,t,n){return n?e||t:void 0!==e?e:t},t.dictsort=function(e,r,t){if(!s.isObject(e))throw new s.TemplateError("dictsort filter: val must be an object");var i,n=[];for(var o in e)n.push([o,e[o]]);if(void 0===t||"key"===t)i=0;else{if("value"!==t)throw new s.TemplateError("dictsort filter: You can only sort by either key or value");i=1}return n.sort(function(e,t){var n=e[i],o=t[i];return r||(s.isString(n)&&(n=n.toUpperCase()),s.isString(o)&&(o=o.toUpperCase())),o\n"))},t.random=function(e){return e[Math.floor(Math.random()*e.length)]},t.rejectattr=function(e,t){return e.filter(function(e){return!e[t]})},t.selectattr=function(e,t){return e.filter(function(e){return!!e[t]})},t.replace=function(e,t,n,o){var r=e;if(t instanceof RegExp)return e.replace(t,n);void 0===o&&(o=-1);var i="";if("number"==typeof t)t=""+t;else if("string"!=typeof t)return e;if("number"==typeof e&&(e=""+e),"string"!=typeof e&&!(e instanceof l.SafeString))return e;if(""===t)return i=n+e.split("").join(n)+n,l.copySafeness(e,i);var a=e.indexOf(t);if(0===o||-1===a)return e;for(var s=0,c=0;-1]*>|/gi,"")),o="";return o=t?n.replace(/^ +| +$/gm,"").replace(/ +/g," ").replace(/(\r\n)/g,"\n").replace(/\n\n\n+/g,"\n\n"):n.replace(/\s+/gi," "),l.copySafeness(e,o)},t.title=function(e){var t=(e=a(e,"")).split(" ").map(function(e){return r(e)});return l.copySafeness(e,t.join(" "))},t.trim=c,t.truncate=function(e,t,n,o){var r=e;if(t=t||255,(e=a(e,"")).length<=t)return e;if(n)e=e.substring(0,t);else{var i=e.lastIndexOf(" ",t);-1===i&&(i=t),e=e.substring(0,i)}return e+=null!=o?o:"...",l.copySafeness(r,e)},t.upper=function(e){return(e=a(e,"")).toUpperCase()},t.urlencode=function(e){var o=encodeURIComponent;return s.isString(e)?o(e):(s.isArray(e)?e:s._entries(e)).map(function(e){var t=e[0],n=e[1];return o(t)+"="+o(n)}).join("&")};var u=/^(?:\(|<|<)?(.*?)(?:\.|,|\)|\n|>)?$/,d=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,p=/^https?:\/\/.*$/,f=/^www\./,m=/\.(?:org|net|com)(?:\:|\/|$)/;t.urlize=function(e,r,t){o(r)&&(r=1/0);var i=!0===t?' rel="nofollow"':"";return e.split(/(\s+)/).filter(function(e){return e&&e.length}).map(function(e){var t=e.match(u),n=t?t[1]:e,o=n.substr(0,r);return p.test(n)?'"+o+"":f.test(n)?'"+o+"":d.test(n)?''+n+"":m.test(n)?'"+o+"":e}).join("")},t.wordcount=function(e){var t=(e=a(e,""))?e.match(/\w+/g):null;return t?t.length:null},t.float=function(e,t){var n=parseFloat(e);return o(n)?t:n},t.int=function(e,t){var n=parseInt(e,10);return o(n)?t:n},t.d=t.default,t.e=t.escape},function(e,t,n){"use strict";var o=function(n){function e(e){var t;return(t=n.call(this)||this).precompiled=e||{},t}return function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(e,n),e.prototype.getSource=function(e){return this.precompiled[e]?{src:{type:"code",obj:this.precompiled[e]},path:e}:null},e}(n(6));e.exports={PrecompiledLoader:o}},function(e,t,n){"use strict";var o=n(2).SafeString;t.callable=function(e){return"function"==typeof e},t.defined=function(e){return void 0!==e},t.divisibleby=function(e,t){return e%t==0},t.escaped=function(e){return e instanceof o},t.equalto=function(e,t){return e===t},t.eq=t.equalto,t.sameas=t.equalto,t.even=function(e){return e%2==0},t.falsy=function(e){return!e},t.ge=function(e,t){return t<=e},t.greaterthan=function(e,t){return t=e.length&&(t=0),this.current=e[t],this.current}}}(Array.prototype.slice.call(arguments))},joiner:function(e){return function(t){t=t||",";var n=!0;return function(){var e=n?"":t;return n=!1,e}}(e)}}}},function(e,t,n){var o=n(4);e.exports=function(n,e){function t(e,t){if(this.name=e,this.path=e,this.defaultEngine=t.defaultEngine,this.ext=o.extname(e),!this.ext&&!this.defaultEngine)throw new Error("No default engine was specified and no extension was provided.");this.ext||(this.name+=this.ext=("."!==this.defaultEngine[0]?".":"")+this.defaultEngine)}return t.prototype.render=function(e,t){n.render(this.name,e,t)},e.set("view",t),e.set("nunjucksEnv",n),n}},function(e,t,n){"use strict";var l=n(4),u=n(4),a=n(0)._prettifyError,s=n(5),d=n(7).Environment,p=n(24);function f(t,e){return!!Array.isArray(e)&&e.some(function(e){return t.match(e)})}function m(e,t){(t=t||{}).isString=!0;var n=t.env||new d([]),o=t.wrapper||p;if(!t.name)throw new Error('the "name" option is required when compiling a string');return o([h(e,t.name,n)],t)}function h(e,t,n){var o,r=(n=n||new d([])).asyncFilters,i=n.extensionsList;t=t.replace(/\\/g,"/");try{o=s.compile(e,r,i,t,n.opts)}catch(e){throw a(t,!1,e)}return{name:t,template:o}}e.exports={precompile:function(a,s){var e=(s=s||{}).env||new d([]),t=s.wrapper||p;if(s.isString)return m(a,s);var n=l.existsSync(a)&&l.statSync(a),o=[],c=[];if(n.isFile())o.push(h(l.readFileSync(a,"utf-8"),s.name||a,e));else if(n.isDirectory()){!function r(i){l.readdirSync(i).forEach(function(e){var t=u.join(i,e),n=t.substr(u.join(a,"/").length),o=l.statSync(t);o&&o.isDirectory()?f(n+="/",s.exclude)||r(t):f(n,s.include)&&c.push(t)})}(a);for(var r=0;r=this.length||e<0)throw new Error("KeyError");return this.splice(e,1)},append:function(e){return this.push(e)},remove:function(e){for(var t=0;te.length)&&!(0":">"},a=/[&"'<>]/g;function s(e,t){return n.hasOwnProperty.call(e,t)}function c(e){return o[e]}function l(e,t,n){var o,r,i;if(e instanceof Error&&(e=(r=e).name+": "+r.message),Object.setPrototypeOf?(o=new Error(e),Object.setPrototypeOf(o,l.prototype)):(o=this,Object.defineProperty(o,"message",{enumerable:!1,writable:!0,value:e})),Object.defineProperty(o,"name",{value:"Template render error"}),Error.captureStackTrace&&Error.captureStackTrace(o,this.constructor),r){var a=Object.getOwnPropertyDescriptor(r,"stack");i=(i=a&&(a.get||function(){return a.value}))||function(){return r.stack}}else{var s=new Error(e).stack;i=function(){return s}}return Object.defineProperty(o,"stack",{get:function(){return i.call(o)}}),Object.defineProperty(o,"cause",{value:r}),o.lineno=t,o.colno=n,o.firstUpdate=!0,o.Update=function(e){var t="("+(e||"unknown path")+")";return this.firstUpdate&&(this.lineno&&this.colno?t+=" [Line "+this.lineno+", Column "+this.colno+"]":this.lineno&&(t+=" [Line "+this.lineno+"]")),t+="\n ",this.firstUpdate&&(t+=" "),this.message=t+(this.message||""),this.firstUpdate=!1,this},o}function u(e){return"[object Function]"===n.toString.call(e)}function d(e){return"[object Array]"===n.toString.call(e)}function p(e){return"[object String]"===n.toString.call(e)}function f(e){return"[object Object]"===n.toString.call(e)}function m(e){return Array.prototype.slice.call(e)}function h(e,t,n){return Array.prototype.indexOf.call(e||[],t,n)}function _(e){var t=[];for(var n in e)s(e,n)&&t.push(n);return t}(r=e.exports={}).hasOwnProp=s,r._prettifyError=function(e,t,n){if(n.Update||(n=new r.TemplateError(n)),n.Update(e),!t){var o=n;(n=new Error(o.message)).name=o.name}return n},Object.setPrototypeOf?Object.setPrototypeOf(l.prototype,Error.prototype):l.prototype=Object.create(Error.prototype,{constructor:{value:l}}),r.TemplateError=l,r.escape=function(e){return e.replace(a,c)},r.isFunction=u,r.isArray=d,r.isString=p,r.isObject=f,r.groupBy=function(e,t){for(var n={},o=u(t)?t:function(e){return e[t]},r=0;rc.length)o=t.slice(0,c.length),t.slice(o.length,r).forEach(function(e,t){t",r+2),o(n,r+4)})}}}},function(e,t){},function(e,t,n){"use strict";var s=n(8),c=n(17),p=n(3),o=n(0).TemplateError,f=n(2).Frame,r=n(1).Obj,i={"==":"==","===":"===","!=":"!=","!==":"!==","<":"<",">":">","<=":"<=",">=":">="},l=function(e){function t(){return e.apply(this,arguments)||this}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e);var n=t.prototype;return n.init=function(e,t){this.templateName=e,this.codebuf=[],this.lastId=0,this.buffer=null,this.bufferStack=[],this._scopeClosers="",this.inBlock=!1,this.throwOnUndefined=t},n.fail=function(e,t,n){throw void 0!==t&&(t+=1),void 0!==n&&(n+=1),new o(e,t,n)},n._pushBuffer=function(){var e=this._tmpid();return this.bufferStack.push(this.buffer),this.buffer=e,this._emit("var "+this.buffer+' = "";'),e},n._popBuffer=function(){this.buffer=this.bufferStack.pop()},n._emit=function(e){this.codebuf.push(e)},n._emitLine=function(e){this._emit(e+"\n")},n._emitLines=function(){for(var t=this,e=arguments.length,n=new Array(e),o=0;o","<=",">="],t=this.parseConcat(),n=[];;){var o=this.nextToken();if(!o)break;if(-1===e.indexOf(o.value)){this.pushToken(o);break}n.push(new d.CompareOperand(o.lineno,o.colno,this.parseConcat(),o.value))}return n.length?new d.Compare(n[0].lineno,n[0].colno,t,n):t},n.parseConcat=function(){for(var e=this.parseAdd();this.skipValue(s.TOKEN_TILDE,"~");){var t=this.parseAdd();e=new d.Concat(e.lineno,e.colno,e,t)}return e},n.parseAdd=function(){for(var e=this.parseSub();this.skipValue(s.TOKEN_OPERATOR,"+");){var t=this.parseSub();e=new d.Add(e.lineno,e.colno,e,t)}return e},n.parseSub=function(){for(var e=this.parseMul();this.skipValue(s.TOKEN_OPERATOR,"-");){var t=this.parseMul();e=new d.Sub(e.lineno,e.colno,e,t)}return e},n.parseMul=function(){for(var e=this.parseDiv();this.skipValue(s.TOKEN_OPERATOR,"*");){var t=this.parseDiv();e=new d.Mul(e.lineno,e.colno,e,t)}return e},n.parseDiv=function(){for(var e=this.parseFloorDiv();this.skipValue(s.TOKEN_OPERATOR,"/");){var t=this.parseFloorDiv();e=new d.Div(e.lineno,e.colno,e,t)}return e},n.parseFloorDiv=function(){for(var e=this.parseMod();this.skipValue(s.TOKEN_OPERATOR,"//");){var t=this.parseMod();e=new d.FloorDiv(e.lineno,e.colno,e,t)}return e},n.parseMod=function(){for(var e=this.parsePow();this.skipValue(s.TOKEN_OPERATOR,"%");){var t=this.parsePow();e=new d.Mod(e.lineno,e.colno,e,t)}return e},n.parsePow=function(){for(var e=this.parseUnary();this.skipValue(s.TOKEN_OPERATOR,"**");){var t=this.parseUnary();e=new d.Pow(e.lineno,e.colno,e,t)}return e},n.parseUnary=function(e){var t,n=this.peekToken();return t=this.skipValue(s.TOKEN_OPERATOR,"-")?new d.Neg(n.lineno,n.colno,this.parseUnary(!0)):this.skipValue(s.TOKEN_OPERATOR,"+")?new d.Pos(n.lineno,n.colno,this.parseUnary(!0)):this.parsePrimary(),e||(t=this.parseFilter(t)),t},n.parsePrimary=function(e){var t,n=this.nextToken(),o=null;if(n?n.type===s.TOKEN_STRING?t=n.value:n.type===s.TOKEN_INT?t=parseInt(n.value,10):n.type===s.TOKEN_FLOAT?t=parseFloat(n.value):n.type===s.TOKEN_BOOLEAN?"true"===n.value?t=!0:"false"===n.value?t=!1:this.fail("invalid boolean: "+n.value,n.lineno,n.colno):n.type===s.TOKEN_NONE?t=null:n.type===s.TOKEN_REGEX&&(t=new RegExp(n.value.body,n.value.flags)):this.fail("expected expression, got end of file"),o=void 0!==t?new d.Literal(n.lineno,n.colno,t):n.type===s.TOKEN_SYMBOL?new d.Symbol(n.lineno,n.colno,n.value):(this.pushToken(n),this.parseAggregate()),e||(o=this.parsePostfix(o)),o)return o;throw this.error("unexpected token: "+n.value,n.lineno,n.colno)},n.parseFilterName=function(){for(var e=this.expect(s.TOKEN_SYMBOL),t=e.value;this.skipValue(s.TOKEN_OPERATOR,".");)t+="."+this.expect(s.TOKEN_SYMBOL).value;return new d.Symbol(e.lineno,e.colno,t)},n.parseFilterArgs=function(e){return this.peekToken().type!==s.TOKEN_LEFT_PAREN?[]:this.parsePostfix(e).args.children},n.parseFilter=function(e){for(;this.skip(s.TOKEN_PIPE);){var t=this.parseFilterName();e=new d.Filter(t.lineno,t.colno,t,new d.NodeList(t.lineno,t.colno,[e].concat(this.parseFilterArgs(e))))}return e},n.parseFilterStatement=function(){var e=this.peekToken();this.skipSymbol("filter")||this.fail("parseFilterStatement: expected filter");var t=this.parseFilterName(),n=this.parseFilterArgs(t);this.advanceAfterBlockEnd(e.value);var o=new d.Capture(t.lineno,t.colno,this.parseUntilBlocks("endfilter"));this.advanceAfterBlockEnd();var r=new d.Filter(t.lineno,t.colno,t,new d.NodeList(t.lineno,t.colno,[o].concat(n)));return new d.Output(t.lineno,t.colno,[r])},n.parseAggregate=function(){var e,t=this.nextToken();switch(t.type){case s.TOKEN_LEFT_PAREN:e=new d.Group(t.lineno,t.colno);break;case s.TOKEN_LEFT_BRACKET:e=new d.Array(t.lineno,t.colno);break;case s.TOKEN_LEFT_CURLY:e=new d.Dict(t.lineno,t.colno);break;default:return null}for(;;){var n=this.peekToken().type;if(n===s.TOKEN_RIGHT_PAREN||n===s.TOKEN_RIGHT_BRACKET||n===s.TOKEN_RIGHT_CURLY){this.nextToken();break}if(0=!",_="whitespace",M="block-start",b="variable-start",y="variable-end",g="left-paren",v="right-paren",L="left-bracket",A="right-bracket",k="left-curly",w="right-curly";function T(e,t,n,o){return{type:e,value:t,lineno:n,colno:o}}var o=function(){function e(e,t){this.str=e,this.index=0,this.len=e.length,this.lineno=0,this.colno=0,this.in_code=!1;var n=(t=t||{}).tags||{};this.tags={BLOCK_START:n.blockStart||"{%",BLOCK_END:n.blockEnd||"%}",VARIABLE_START:n.variableStart||"{{",VARIABLE_END:n.variableEnd||"}}",COMMENT_START:n.commentStart||"{#",COMMENT_END:n.commentEnd||"#}"},this.trimBlocks=!!t.trimBlocks,this.lstripBlocks=!!t.lstripBlocks}var t=e.prototype;return t.nextToken=function(){var e,t=this.lineno,n=this.colno;if(this.in_code){var o=this.current();if(this.isFinished())return null;if('"'===o||"'"===o)return T("string",this._parseString(o),t,n);if(e=this._extract(" \n\t\r "))return T(_,e,t,n);if((e=this._extractString(this.tags.BLOCK_END))||(e=this._extractString("-"+this.tags.BLOCK_END)))return this.in_code=!1,this.trimBlocks&&("\n"===(o=this.current())?this.forward():"\r"===o&&(this.forward(),"\n"===(o=this.current())?this.forward():this.back())),T("block-end",e,t,n);if((e=this._extractString(this.tags.VARIABLE_END))||(e=this._extractString("-"+this.tags.VARIABLE_END)))return this.in_code=!1,T(y,e,t,n);if("r"===o&&"/"===this.str.charAt(this.index+1)){this.forwardN(2);for(var r="";!this.isFinished();){if("/"===this.current()&&"\\"!==this.previous()){this.forward();break}r+=this.current(),this.forward()}for(var i=["g","i","m","y"],a="";!this.isFinished();){if(!(-1!==i.indexOf(this.current())))break;a+=this.current(),this.forward()}return T("regex",{body:r,flags:a},t,n)}if(-1!==h.indexOf(o)){this.forward();var s,c=["==","===","!=","!==","<=",">=","//","**"],l=o+this.current();switch(-1!==m.indexOf(c,l)&&(this.forward(),o=l,-1!==m.indexOf(c,l+this.current())&&(o=l+this.current(),this.forward())),o){case"(":s=g;break;case")":s=v;break;case"[":s=L;break;case"]":s=A;break;case"{":s=k;break;case"}":s=w;break;case",":s="comma";break;case":":s="colon";break;case"~":s="tilde";break;case"|":s="pipe";break;default:s="operator"}return T(s,o,t,n)}if((e=this._extractUntil(" \n\t\r "+h)).match(/^[-+]?[0-9]+$/))return"."!==this.current()?T("int",e,t,n):(this.forward(),T("float",e+"."+this._extract("0123456789"),t,n));if(e.match(/^(true|false)$/))return T("boolean",e,t,n);if("none"===e)return T("none",e,t,n);if("null"===e)return T("none",e,t,n);if(e)return T("symbol",e,t,n);throw new Error("Unexpected value while parsing: "+e)}var u,d=this.tags.BLOCK_START.charAt(0)+this.tags.VARIABLE_START.charAt(0)+this.tags.COMMENT_START.charAt(0)+this.tags.COMMENT_END.charAt(0);if(this.isFinished())return null;if((e=this._extractString(this.tags.BLOCK_START+"-"))||(e=this._extractString(this.tags.BLOCK_START)))return this.in_code=!0,T(M,e,t,n);if((e=this._extractString(this.tags.VARIABLE_START+"-"))||(e=this._extractString(this.tags.VARIABLE_START)))return this.in_code=!0,T(b,e,t,n);e="";var p=!1;for(this._matches(this.tags.COMMENT_START)&&(p=!0,e=this._extractString(this.tags.COMMENT_START));null!==(u=this._extractUntil(d));){if(e+=u,(this._matches(this.tags.BLOCK_START)||this._matches(this.tags.VARIABLE_START)||this._matches(this.tags.COMMENT_START))&&!p){if(this.lstripBlocks&&this._matches(this.tags.BLOCK_START)&&0this.len?null:this.str.slice(this.index,this.index+e.length)===e},t._extractString=function(e){return this._matches(e)?(this.forwardN(e.length),e):null},t._extractUntil=function(e){return this._extractMatching(!0,e||"")},t._extract=function(e){return this._extractMatching(!1,e)},t._extractMatching=function(e,t){if(this.isFinished())return null;var n=t.indexOf(this.current());if(e&&-1===n||!e&&-1!==n){var o=this.current();this.forward();for(var r=t.indexOf(this.current());(e&&-1===r||!e&&-1!==r)&&!this.isFinished();)o+=this.current(),this.forward(),r=t.indexOf(this.current());return o}return""},t._extractRegex=function(e){var t=this.currentStr().match(e);return t?(this.forwardN(t[0].length),t):null},t.isFinished=function(){return this.index>=this.len},t.forwardN=function(e){for(var t=0;tr&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,function(e){console&&console.warn&&console.warn(e)}(s)}return e}function d(e,t,n){var o={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=function(){for(var e=[],t=0;t=t)return e;var n=t-e.length,o=s.repeat(" ",n/2-n%2),r=s.repeat(" ",n/2);return l.copySafeness(e,o+e+r)},t.default=function(e,t,n){return n?e||t:void 0!==e?e:t},t.dictsort=function(e,r,t){if(!s.isObject(e))throw new s.TemplateError("dictsort filter: val must be an object");var i,n=[];for(var o in e)n.push([o,e[o]]);if(void 0===t||"key"===t)i=0;else{if("value"!==t)throw new s.TemplateError("dictsort filter: You can only sort by either key or value");i=1}return n.sort(function(e,t){var n=e[i],o=t[i];return r||(s.isString(n)&&(n=n.toUpperCase()),s.isString(o)&&(o=o.toUpperCase())),o\n"))},t.random=function(e){return e[Math.floor(Math.random()*e.length)]},t.rejectattr=function(e,t){return e.filter(function(e){return!e[t]})},t.selectattr=function(e,t){return e.filter(function(e){return!!e[t]})},t.replace=function(e,t,n,o){var r=e;if(t instanceof RegExp)return e.replace(t,n);void 0===o&&(o=-1);var i="";if("number"==typeof t)t=""+t;else if("string"!=typeof t)return e;if("number"==typeof e&&(e=""+e),"string"!=typeof e&&!(e instanceof l.SafeString))return e;if(""===t)return i=n+e.split("").join(n)+n,l.copySafeness(e,i);var a=e.indexOf(t);if(0===o||-1===a)return e;for(var s=0,c=0;-1]*>|/gi,"")),o="";return o=t?n.replace(/^ +| +$/gm,"").replace(/ +/g," ").replace(/(\r\n)/g,"\n").replace(/\n\n\n+/g,"\n\n"):n.replace(/\s+/gi," "),l.copySafeness(e,o)},t.title=function(e){var t=(e=a(e,"")).split(" ").map(function(e){return r(e)});return l.copySafeness(e,t.join(" "))},t.trim=c,t.truncate=function(e,t,n,o){var r=e;if(t=t||255,(e=a(e,"")).length<=t)return e;if(n)e=e.substring(0,t);else{var i=e.lastIndexOf(" ",t);-1===i&&(i=t),e=e.substring(0,i)}return e+=null!=o?o:"...",l.copySafeness(r,e)},t.upper=function(e){return(e=a(e,"")).toUpperCase()},t.urlencode=function(e){var o=encodeURIComponent;return s.isString(e)?o(e):(s.isArray(e)?e:s._entries(e)).map(function(e){var t=e[0],n=e[1];return o(t)+"="+o(n)}).join("&")};var u=/^(?:\(|<|<)?(.*?)(?:\.|,|\)|\n|>)?$/,d=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,p=/^https?:\/\/.*$/,f=/^www\./,m=/\.(?:org|net|com)(?:\:|\/|$)/;t.urlize=function(e,r,t){o(r)&&(r=1/0);var i=!0===t?' rel="nofollow"':"";return e.split(/(\s+)/).filter(function(e){return e&&e.length}).map(function(e){var t=e.match(u),n=t?t[1]:e,o=n.substr(0,r);return p.test(n)?'"+o+"":f.test(n)?'"+o+"":d.test(n)?''+n+"":m.test(n)?'"+o+"":e}).join("")},t.wordcount=function(e){var t=(e=a(e,""))?e.match(/\w+/g):null;return t?t.length:null},t.float=function(e,t){var n=parseFloat(e);return o(n)?t:n},t.int=function(e,t){var n=parseInt(e,10);return o(n)?t:n},t.d=t.default,t.e=t.escape},function(e,t,n){"use strict";var o=function(n){function e(e){var t;return(t=n.call(this)||this).precompiled=e||{},t}return function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(e,n),e.prototype.getSource=function(e){return this.precompiled[e]?{src:{type:"code",obj:this.precompiled[e]},path:e}:null},e}(n(6));e.exports={PrecompiledLoader:o}},function(e,t,n){"use strict";var o=n(2).SafeString;t.callable=function(e){return"function"==typeof e},t.defined=function(e){return void 0!==e},t.divisibleby=function(e,t){return e%t==0},t.escaped=function(e){return e instanceof o},t.equalto=function(e,t){return e===t},t.eq=t.equalto,t.sameas=t.equalto,t.even=function(e){return e%2==0},t.falsy=function(e){return!e},t.ge=function(e,t){return t<=e},t.greaterthan=function(e,t){return t=e.length&&(t=0),this.current=e[t],this.current}}}(Array.prototype.slice.call(arguments))},joiner:function(e){return function(t){t=t||",";var n=!0;return function(){var e=n?"":t;return n=!1,e}}(e)}}}},function(e,t,n){var o=n(4);e.exports=function(n,e){function t(e,t){if(this.name=e,this.path=e,this.defaultEngine=t.defaultEngine,this.ext=o.extname(e),!this.ext&&!this.defaultEngine)throw new Error("No default engine was specified and no extension was provided.");this.ext||(this.name+=this.ext=("."!==this.defaultEngine[0]?".":"")+this.defaultEngine)}return t.prototype.render=function(e,t){n.render(this.name,e,t)},e.set("view",t),e.set("nunjucksEnv",n),n}},function(e,t,n){"use strict";var l=n(4),u=n(4),a=n(0)._prettifyError,s=n(5),d=n(7).Environment,p=n(24);function f(t,e){return!!Array.isArray(e)&&e.some(function(e){return t.match(e)})}function m(e,t){(t=t||{}).isString=!0;var n=t.env||new d([]),o=t.wrapper||p;if(!t.name)throw new Error('the "name" option is required when compiling a string');return o([h(e,t.name,n)],t)}function h(e,t,n){var o,r=(n=n||new d([])).asyncFilters,i=n.extensionsList;t=t.replace(/\\/g,"/");try{o=s.compile(e,r,i,t,n.opts)}catch(e){throw a(t,!1,e)}return{name:t,template:o}}e.exports={precompile:function(a,s){var e=(s=s||{}).env||new d([]),t=s.wrapper||p;if(s.isString)return m(a,s);var n=l.existsSync(a)&&l.statSync(a),o=[],c=[];if(n.isFile())o.push(h(l.readFileSync(a,"utf-8"),s.name||a,e));else if(n.isDirectory()){!function r(i){l.readdirSync(i).forEach(function(e){var t=u.join(i,e),n=t.substr(u.join(a,"/").length),o=l.statSync(t);o&&o.isDirectory()?f(n+="/",s.exclude)||r(t):f(n,s.include)&&c.push(t)})}(a);for(var r=0;r=this.length||e<0)throw new Error("KeyError");return this.splice(e,1)},append:function(e){return this.push(e)},remove:function(e){for(var t=0;te.length)&&!(0= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=b-y,k=Math.floor,w=String.fromCharCode;function T(e){throw new RangeError(d[e])}function f(e,t){for(var n=e.length,o=[];n--;)o[n]=t(e[n]);return o}function m(e,t){var n=e.split("@"),o="";return 1>>10&1023|55296),e=56320|1023&e),t+=w(e)}).join("")}function O(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function x(e,t,n){var o=0;for(e=n?k(e/s):e>>1,e+=k(e/t);p*g>>1k((M-m)/a))&&T("overflow"),m+=c*a,!(c<(l=s<=_?y:_+g<=s?g:s-_));s+=b)a>k(M/(u=b-l))&&T("overflow"),a*=u;_=x(m-i,t=p.length+1,0==i),k(m/t)>M-h&&T("overflow"),h+=k(m/t),m%=t,p.splice(m++,0,h)}return S(p)}function _(e){var t,n,o,r,i,a,s,c,l,u,d,p,f,m,h,_=[];for(p=(e=z(e)).length,t=L,i=v,a=n=0;ak((M-n)/(f=o+1))&&T("overflow"),n+=(s-t)*f,t=s,a=0;aM&&T("overflow"),d==t){for(c=n,l=b;!(c<(u=l<=i?y:i+g<=l?g:l-i));l+=b)h=c-u,m=b-u,_.push(w(O(u+h%m,0))),c=k(h/m);_.push(w(O(c,0))),i=x(n,f,o==r),n=0,++o}++n,++t}return _.join("")}if(r={version:"1.4.1",ucs2:{decode:z,encode:S},decode:h,encode:_,toASCII:function(e){return m(e,function(e){return l.test(e)?"xn--"+_(e):e})},toUnicode:function(e){return m(e,function(e){return c.test(e)?h(e.slice(4).toLowerCase()):e})}},"object"==E(q("./node_modules/webpack/buildin/amd-options.js"))&&q("./node_modules/webpack/buildin/amd-options.js"))void 0===(C=function(){return r}.call(Y,q,Y,D))||(D.exports=C);else if(t&&n)if(D.exports==t)n.exports=r;else for(i in r)r.hasOwnProperty(i)&&(t[i]=r[i]);else e.punycode=r}(void 0)}).call(this,q("./node_modules/webpack/buildin/module.js")(e),q("./node_modules/webpack/buildin/global.js"))},"./node_modules/q/q.js":function(e,r,i){(function(V,G,t){var n,o;function J(e){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)} /*! * diff --git a/CTFd/themes/admin/templates/teams/team.html b/CTFd/themes/admin/templates/teams/team.html index faaa282..282d316 100644 --- a/CTFd/themes/admin/templates/teams/team.html +++ b/CTFd/themes/admin/templates/teams/team.html @@ -61,6 +61,15 @@
+ +
diff --git a/CTFd/themes/admin/templates/users/user.html b/CTFd/themes/admin/templates/users/user.html index f14d170..0816d4b 100644 --- a/CTFd/themes/admin/templates/users/user.html +++ b/CTFd/themes/admin/templates/users/user.html @@ -359,14 +359,6 @@ {{ award.value }} {{ award.category }} {{ award.icon }} - - {% endfor %} @@ -419,13 +411,6 @@ {{ challenge.category }} {{ challenge.value }} - {% endfor %} diff --git a/CTFd/themes/core/static/js/vendor.bundle.min.js b/CTFd/themes/core/static/js/vendor.bundle.min.js index 7e1e40f..e4b5aa0 100644 --- a/CTFd/themes/core/static/js/vendor.bundle.min.js +++ b/CTFd/themes/core/static/js/vendor.bundle.min.js @@ -111,7 +111,7 @@ a=function(i){"use strict";i=i&&i.hasOwnProperty("default")?i.default:i;var t="t */ function(){"use strict";var n,o,r;HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(e){var t=this;if(!t.ctx||!t.ctx.listener)return t;for(var n=t._howls.length-1;0<=n;n--)t._howls[n].stereo(e);return t},HowlerGlobal.prototype.pos=function(e,t,n){var o=this;return o.ctx&&o.ctx.listener?(t="number"!=typeof t?o._pos[1]:t,n="number"!=typeof n?o._pos[2]:n,"number"!=typeof e?o._pos:(o._pos=[e,t,n],void 0!==o.ctx.listener.positionX?(o.ctx.listener.positionX.setTargetAtTime(o._pos[0],Howler.ctx.currentTime,.1),o.ctx.listener.positionY.setTargetAtTime(o._pos[1],Howler.ctx.currentTime,.1),o.ctx.listener.positionZ.setTargetAtTime(o._pos[2],Howler.ctx.currentTime,.1)):o.ctx.listener.setPosition(o._pos[0],o._pos[1],o._pos[2]),o)):o},HowlerGlobal.prototype.orientation=function(e,t,n,o,r,i){var a=this;if(!a.ctx||!a.ctx.listener)return a;var s=a._orientation;return t="number"!=typeof t?s[1]:t,n="number"!=typeof n?s[2]:n,o="number"!=typeof o?s[3]:o,r="number"!=typeof r?s[4]:r,i="number"!=typeof i?s[5]:i,"number"!=typeof e?s:(a._orientation=[e,t,n,o,r,i],void 0!==a.ctx.listener.forwardX?(a.ctx.listener.forwardX.setTargetAtTime(e,Howler.ctx.currentTime,.1),a.ctx.listener.forwardY.setTargetAtTime(t,Howler.ctx.currentTime,.1),a.ctx.listener.forwardZ.setTargetAtTime(n,Howler.ctx.currentTime,.1),a.ctx.listener.upX.setTargetAtTime(e,Howler.ctx.currentTime,.1),a.ctx.listener.upY.setTargetAtTime(t,Howler.ctx.currentTime,.1),a.ctx.listener.upZ.setTargetAtTime(n,Howler.ctx.currentTime,.1)):a.ctx.listener.setOrientation(e,t,n,o,r,i),a)},Howl.prototype.init=(n=Howl.prototype.init,function(e){var t=this;return t._orientation=e.orientation||[1,0,0],t._stereo=e.stereo||null,t._pos=e.pos||null,t._pannerAttr={coneInnerAngle:void 0!==e.coneInnerAngle?e.coneInnerAngle:360,coneOuterAngle:void 0!==e.coneOuterAngle?e.coneOuterAngle:360,coneOuterGain:void 0!==e.coneOuterGain?e.coneOuterGain:0,distanceModel:void 0!==e.distanceModel?e.distanceModel:"inverse",maxDistance:void 0!==e.maxDistance?e.maxDistance:1e4,panningModel:void 0!==e.panningModel?e.panningModel:"HRTF",refDistance:void 0!==e.refDistance?e.refDistance:1,rolloffFactor:void 0!==e.rolloffFactor?e.rolloffFactor:1},t._onstereo=e.onstereo?[{fn:e.onstereo}]:[],t._onpos=e.onpos?[{fn:e.onpos}]:[],t._onorientation=e.onorientation?[{fn:e.onorientation}]:[],n.call(this,e)}),Howl.prototype.stereo=function(e,t){var n=this;if(!n._webAudio)return n;if("loaded"!==n._state)return n._queue.push({event:"stereo",action:function(){n.stereo(e,t)}}),n;var o=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===t){if("number"!=typeof e)return n._stereo;n._stereo=e,n._pos=[e,0,0]}for(var r=n._getSoundIds(t),i=0;i>10|55296,1023&n|56320))}function r(){v()}var e,m,g,i,a,f,p,_,L,c,u,v,A,s,T,h,l,M,b,z="sizzle"+1*new Date,y=n.document,k=0,o=0,S=ce(),w=ce(),O=ce(),D=ce(),N=function(e,t){return e===t&&(u=!0),0},Y={}.hasOwnProperty,t=[],x=t.pop,E=t.push,q=t.push,W=t.slice,j=function(e,t){for(var n=0,o=e.length;n+~]|"+B+")"+B+"*"),K=new RegExp(B+"|>"),V=new RegExp(P),G=new RegExp("^"+H+"$"),J={ID:new RegExp("^#("+H+")"),CLASS:new RegExp("^\\.("+H+")"),TAG:new RegExp("^("+H+"|[*])"),ATTR:new RegExp("^"+X),PSEUDO:new RegExp("^"+P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+B+"*(even|odd|(([+-]|)(\\d*)n|)"+B+"*(?:([+-]|)"+B+"*(\\d+)|))"+B+"*\\)|)","i"),bool:new RegExp("^(?:"+C+")$","i"),needsContext:new RegExp("^"+B+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+B+"*((?:-\\d)?\\d*)"+B+"*\\)|)(?=[^-]|$)","i")},Q=/HTML$/i,$=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,ee=/^[^{]+\{\s*\[native \w/,te=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ne=/[+~]/,oe=new RegExp("\\\\[\\da-fA-F]{1,6}"+B+"?|\\\\([^\\r\\n\\f])","g"),re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ae=ge(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{q.apply(t=W.call(y.childNodes),y.childNodes),t[y.childNodes.length].nodeType}catch(e){q={apply:t.length?function(e,t){E.apply(e,W.call(t))}:function(e,t){for(var n=e.length,o=0;e[n++]=t[o++];);e.length=n-1}}}function se(t,e,n,o){var r,i,a,s,c,u,l,d=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!o&&(v(e),e=e||A,T)){if(11!==p&&(c=te.exec(t)))if(r=c[1]){if(9===p){if(!(a=e.getElementById(r)))return n;if(a.id===r)return n.push(a),n}else if(d&&(a=d.getElementById(r))&&b(e,a)&&a.id===r)return n.push(a),n}else{if(c[2])return q.apply(n,e.getElementsByTagName(t)),n;if((r=c[3])&&m.getElementsByClassName&&e.getElementsByClassName)return q.apply(n,e.getElementsByClassName(r)),n}if(m.qsa&&!D[t+" "]&&(!h||!h.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(l=t,d=e,1===p&&(K.test(t)||U.test(t))){for((d=ne.test(t)&&Me(e.parentNode)||e)===e&&m.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=z)),i=(u=f(t)).length;i--;)u[i]=(s?"#"+s:":scope")+" "+ye(u[i]);l=u.join(",")}try{return q.apply(n,d.querySelectorAll(l)),n}catch(e){D(t,!0)}finally{s===z&&e.removeAttribute("id")}}}return _(t.replace(I,"$1"),e,n,o)}function ce(){var o=[];return function e(t,n){return o.push(t+" ")>g.cacheLength&&delete e[o.shift()],e[t+" "]=n}}function ue(e){return e[z]=!0,e}function le(e){var t=A.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),o=n.length;o--;)g.attrHandle[n[o]]=t}function pe(e,t){var n=t&&e,o=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(o)return o;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function me(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function fe(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function _e(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function he(a){return ue(function(i){return i=+i,ue(function(e,t){for(var n,o=a([],e.length,i),r=o.length;r--;)e[n=o[r]]&&(e[n]=!(t[n]=e[n]))})})}function Me(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in m=se.support={},a=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Q.test(t||n&&n.nodeName||"HTML")},v=se.setDocument=function(e){var t,n,o=e?e.ownerDocument||e:y;return o!=A&&9===o.nodeType&&o.documentElement&&(s=(A=o).documentElement,T=!a(A),y!=A&&(n=A.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",r,!1):n.attachEvent&&n.attachEvent("onunload",r)),m.scope=le(function(e){return s.appendChild(e).appendChild(A.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),m.attributes=le(function(e){return e.className="i",!e.getAttribute("className")}),m.getElementsByTagName=le(function(e){return e.appendChild(A.createComment("")),!e.getElementsByTagName("*").length}),m.getElementsByClassName=ee.test(A.getElementsByClassName),m.getById=le(function(e){return s.appendChild(e).id=z,!A.getElementsByName||!A.getElementsByName(z).length}),m.getById?(g.filter.ID=function(e){var t=e.replace(oe,d);return function(e){return e.getAttribute("id")===t}},g.find.ID=function(e,t){if(void 0!==t.getElementById&&T){var n=t.getElementById(e);return n?[n]:[]}}):(g.filter.ID=function(e){var n=e.replace(oe,d);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},g.find.ID=function(e,t){if(void 0!==t.getElementById&&T){var n,o,r,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(r=t.getElementsByName(e),o=0;i=r[o++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),g.find.TAG=m.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):m.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,o=[],r=0,i=t.getElementsByTagName(e);if("*"!==e)return i;for(;n=i[r++];)1===n.nodeType&&o.push(n);return o},g.find.CLASS=m.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&T)return t.getElementsByClassName(e)},l=[],h=[],(m.qsa=ee.test(A.querySelectorAll))&&(le(function(e){var t;s.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&h.push("[*^$]="+B+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||h.push("\\["+B+"*(?:value|"+C+")"),e.querySelectorAll("[id~="+z+"-]").length||h.push("~="),(t=A.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||h.push("\\["+B+"*name"+B+"*="+B+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||h.push(":checked"),e.querySelectorAll("a#"+z+"+*").length||h.push(".#.+[+~]"),e.querySelectorAll("\\\f"),h.push("[\\r\\n\\f]")}),le(function(e){e.innerHTML="";var t=A.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&h.push("name"+B+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&h.push(":enabled",":disabled"),s.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),h.push(",.*:")})),(m.matchesSelector=ee.test(M=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&le(function(e){m.disconnectedMatch=M.call(e,"*"),M.call(e,"[s!='']:x"),l.push("!=",P)}),h=h.length&&new RegExp(h.join("|")),l=l.length&&new RegExp(l.join("|")),t=ee.test(s.compareDocumentPosition),b=t||ee.test(s.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,o=t&&t.parentNode;return e===o||!(!o||1!==o.nodeType||!(n.contains?n.contains(o):e.compareDocumentPosition&&16&e.compareDocumentPosition(o)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},N=t?function(e,t){if(e===t)return u=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!m.sortDetached&&t.compareDocumentPosition(e)===n?e==A||e.ownerDocument==y&&b(y,e)?-1:t==A||t.ownerDocument==y&&b(y,t)?1:c?j(c,e)-j(c,t):0:4&n?-1:1)}:function(e,t){if(e===t)return u=!0,0;var n,o=0,r=e.parentNode,i=t.parentNode,a=[e],s=[t];if(!r||!i)return e==A?-1:t==A?1:r?-1:i?1:c?j(c,e)-j(c,t):0;if(r===i)return pe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[o]===s[o];)o++;return o?pe(a[o],s[o]):a[o]==y?-1:s[o]==y?1:0}),A},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(v(e),m.matchesSelector&&T&&!D[t+" "]&&(!l||!l.test(t))&&(!h||!h.test(t)))try{var n=M.call(e,t);if(n||m.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){D(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(oe,d),e[3]=(e[3]||e[4]||e[5]||"").replace(oe,d),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return J.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&V.test(n)&&(t=f(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(oe,d).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=S[e+" "];return t||(t=new RegExp("(^|"+B+")"+e+"("+B+"|$)"))&&S(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,o,r){return function(e){var t=se.attr(e,n);return null==t?"!="===o:!o||(t+="","="===o?t===r:"!="===o?t!==r:"^="===o?r&&0===t.indexOf(r):"*="===o?r&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function w(e,n,o){return y(n)?z.grep(e,function(e,t){return!!n.call(e,t,e)!==o}):n.nodeType?z.grep(e,function(e){return e===n!==o}):"string"!=typeof n?z.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(z.fn.init=function(e,t,n){var o,r;if(!e)return this;if(n=n||O,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(z):z.makeArray(e,this);if(!(o="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:D.exec(e))||!o[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(o[1]){if(t=t instanceof z?t[0]:t,z.merge(this,z.parseHTML(o[1],t&&t.nodeType?t.ownerDocument||t:T,!0)),S.test(o[1])&&z.isPlainObject(t))for(o in t)y(this[o])?this[o](t[o]):this.attr(o,t[o]);return this}return(r=T.getElementById(o[2]))&&(this[0]=r,this.length=1),this}).prototype=z.fn,O=z(T);var N=/^(?:parents|prev(?:Until|All))/,Y={children:!0,contents:!0,next:!0,prev:!0};function x(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}z.fn.extend({has:function(e){var t=z(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,me=/^$|^module$|\/(?:java|ecma)script/i;ue=T.createDocumentFragment().appendChild(T.createElement("div")),(le=T.createElement("input")).setAttribute("type","radio"),le.setAttribute("checked","checked"),le.setAttribute("name","t"),ue.appendChild(le),b.checkClone=ue.cloneNode(!0).cloneNode(!0).lastChild.checked,ue.innerHTML="",b.noCloneChecked=!!ue.cloneNode(!0).lastChild.defaultValue,ue.innerHTML="",b.option=!!ue.lastChild;var fe={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function _e(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&k(e,t)?z.merge([e],n):n}function he(e,t){for(var n=0,o=e.length;n",""]);var Me=/<|&#?\w+;/;function be(e,t,n,o,r){for(var i,a,s,c,u,l,d=t.createDocumentFragment(),p=[],m=0,f=e.length;m\s*$/g;function De(e,t){return k(e,"table")&&k(11!==t.nodeType?t:t.firstChild,"tr")&&z(e).children("tbody")[0]||e}function Ne(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ye(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function xe(e,t){var n,o,r,i,a,s;if(1===t.nodeType){if(V.hasData(e)&&(s=V.get(e).events))for(r in V.remove(t,"handle events"),s)for(n=0,o=s[r].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",r=function(e){o.remove(),r=null,e&&t("error"===e.type?404:200,e.type)}),T.head.appendChild(o[0])},abort:function(){r&&r()}}});var en,tn=[],nn=/(=)\?(?=&|$)|\?\?/;z.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=tn.pop()||z.expando+"_"+Yt.guid++;return this[e]=!0,e}}),z.ajaxPrefilter("json jsonp",function(e,t,n){var o,r,i,a=!1!==e.jsonp&&(nn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(nn,"$1"+o):!1!==e.jsonp&&(e.url+=(xt.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return i||z.error(o+" was not called"),i[0]},e.dataTypes[0]="json",r=A[o],A[o]=function(){i=arguments},n.always(function(){void 0===r?z(A).removeProp(o):A[o]=r,e[o]&&(e.jsonpCallback=t.jsonpCallback,tn.push(o)),i&&y(r)&&r(i[0]),i=r=void 0}),"script"}),b.createHTMLDocument=((en=T.implementation.createHTMLDocument("").body).innerHTML="
",2===en.childNodes.length),z.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(b.createHTMLDocument?((o=(t=T.implementation.createHTMLDocument("")).createElement("base")).href=T.location.href,t.head.appendChild(o)):t=T),i=!n&&[],(r=S.exec(e))?[t.createElement(r[1])]:(r=be([e],t,i),i&&i.length&&z(i).remove(),z.merge([],r.childNodes)));var o,r,i},z.fn.load=function(e,t,n){var o,r,i,a=this,s=e.indexOf(" ");return-1").append(z.parseHTML(e)).find(o):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,i||[e.responseText,t,e])})}),this},z.expr.pseudos.animated=function(t){return z.grep(z.timers,function(e){return t===e.elem}).length},z.offset={setOffset:function(e,t,n){var o,r,i,a,s,c,u=z.css(e,"position"),l=z(e),d={};"static"===u&&(e.style.position="relative"),s=l.offset(),i=z.css(e,"top"),c=z.css(e,"left"),r=("absolute"===u||"fixed"===u)&&-1<(i+c).indexOf("auto")?(a=(o=l.position()).top,o.left):(a=parseFloat(i)||0,parseFloat(c)||0),y(t)&&(t=t.call(e,n,z.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+r),"using"in t?t.using.call(e,d):("number"==typeof d.top&&(d.top+="px"),"number"==typeof d.left&&(d.left+="px"),l.css(d))}},z.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){z.offset.setOffset(this,t,e)});var e,n,o=this[0];return o?o.getClientRects().length?(e=o.getBoundingClientRect(),n=o.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,o=this[0],r={top:0,left:0};if("fixed"===z.css(o,"position"))t=o.getBoundingClientRect();else{for(t=this.offset(),n=o.ownerDocument,e=o.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===z.css(e,"position");)e=e.parentNode;e&&e!==o&&1===e.nodeType&&((r=z(e).offset()).top+=z.css(e,"borderTopWidth",!0),r.left+=z.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-z.css(o,"marginTop",!0),left:t.left-r.left-z.css(o,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===z.css(e,"position");)e=e.offsetParent;return e||ne})}}),z.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var i="pageYOffset"===r;z.fn[t]=function(e){return X(this,function(e,t,n){var o;if(_(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===n)return o?o[r]:e[t];o?o.scrollTo(i?o.pageXOffset:n,i?n:o.pageYOffset):e[t]=n},t,e,arguments.length)}}),z.each(["top","left"],function(e,n){z.cssHooks[n]=Qe(b.pixelPosition,function(e,t){if(t)return t=Je(e,n),Fe.test(t)?z(e).position()[n]+"px":t})}),z.each({Height:"height",Width:"width"},function(a,s){z.each({padding:"inner"+a,content:s,"":"outer"+a},function(o,i){z.fn[i]=function(e,t){var n=arguments.length&&(o||"boolean"!=typeof e),r=o||(!0===e||!0===t?"margin":"border");return X(this,function(e,t,n){var o;return _(e)?0===i.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+a],o["scroll"+a],e.body["offset"+a],o["offset"+a],o["client"+a])):void 0===n?z.css(e,t,r):z.style(e,t,n,r)},s,n?e:void 0,n)}})}),z.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){z.fn[t]=function(e){return this.on(t,e)}}),z.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,o){return this.on(t,e,n,o)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),z.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){z.fn[n]=function(e,t){return 0<|]|"+t.src_ZPCc+"))("+a+")","i"),o.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","ig"),o.re.pretest=RegExp("("+o.re.schema_test.source+")|("+o.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(o)}function p(e,t){var n=e.__index__,o=e.__last_index__,r=e.__text_cache__.slice(n,o);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=o+t,this.raw=r,this.text=r,this.url=r}function m(e,t){var n=new p(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function f(e,t){if(!(this instanceof f))return new f(e,t);t||!function(e){return Object.keys(e||{}).reduce(function(e,t){return e||o.hasOwnProperty(t)},!1)}(e)||(t=e,e={}),this.__opts__=n({},o,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=n({},r,e),this.__compiled__={},this.__tlds__=i,this.__tlds_replaced__=!1,this.re={},a(this)}f.prototype.add=function(e,t){return this.__schemas__[e]=t,a(this),this},f.prototype.set=function(e){return this.__opts__=n(this.__opts__,e),this},f.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,o,r,i,a,s,c;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(r=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+r;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&0<=(c=e.search(this.re.host_fuzzy_test))&&(this.__index__<0||cthis.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a)),0<=this.__index__},f.prototype.pretest=function(e){return this.re.pretest.test(e)},f.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},f.prototype.match=function(e){var t=0,n=[];0<=this.__index__&&this.__text_cache__===e&&(n.push(m(this,t)),t=this.__last_index__);for(var o=t?e.slice(t):e;this.test(o);)n.push(m(this,t)),o=o.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},f.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse():(this.__tlds__=e.slice(),this.__tlds_replaced__=!0),a(this),this},f.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},f.prototype.onCompile=function(){},e.exports=f},"./node_modules/linkify-it/lib/re.js":function(e,t,o){e.exports=function(e){var t={};t.src_Any=o("./node_modules/uc.micro/properties/Any/regex.js").source,t.src_Cc=o("./node_modules/uc.micro/categories/Cc/regex.js").source,t.src_Z=o("./node_modules/uc.micro/categories/Z/regex.js").source,t.src_P=o("./node_modules/uc.micro/categories/P/regex.js").source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var n="[><|]";return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+"|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,3}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]+',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|[><|]|\\(|"+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},"./node_modules/markdown-it/index.js":function(e,t,n){e.exports=n("./node_modules/markdown-it/lib/index.js")},"./node_modules/markdown-it/lib/common/entities.js":function(e,t,n){e.exports=n("./node_modules/entities/lib/maps/entities.json")},"./node_modules/markdown-it/lib/common/html_blocks.js":function(e,t,n){e.exports=["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","h1","h2","h3","h4","h5","h6","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"]},"./node_modules/markdown-it/lib/common/html_re.js":function(e,t,n){var o="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",r="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",i=new RegExp("^(?:"+o+"|"+r+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|]*>|)"),a=new RegExp("^(?:"+o+"|"+r+")");e.exports.HTML_TAG_RE=i,e.exports.HTML_OPEN_CLOSE_TAG_RE=a},"./node_modules/markdown-it/lib/common/utils.js":function(e,t,n){function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=Object.prototype.hasOwnProperty;function i(e,t){return r.call(e,t)}function a(e){return!(55296<=e&&e<=57343)&&(!(64976<=e&&e<=65007)&&(65535!=(65535&e)&&65534!=(65535&e)&&(!(0<=e&&e<=8)&&(11!==e&&(!(14<=e&&e<=31)&&(!(127<=e&&e<=159)&&!(1114111>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var c=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=new RegExp(c.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),l=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,d=n("./node_modules/markdown-it/lib/common/entities.js");var p=/[&<>"]/,m=/[&<>"]/g,f={"&":"&","<":"<",">":">",'"':"""};function _(e){return f[e]}var h=/[.?*+^$[\]\\(){}|-]/g;var M=n("./node_modules/uc.micro/categories/P/regex.js");t.lib={},t.lib.mdurl=n("./node_modules/mdurl/index.js"),t.lib.ucmicro=n("./node_modules/uc.micro/index.js"),t.assign=function(n){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if("object"!==o(t))throw new TypeError(t+"must be object");Object.keys(t).forEach(function(e){n[e]=t[e]})}}),n},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=i,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(c,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(u,function(e,t,n){return t||function(e,t){var n=0;return i(d,t)?d[t]:35===t.charCodeAt(0)&&l.test(t)&&a(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?s(n):e}(e,n)})},t.isValidEntityCode=a,t.fromCodePoint=s,t.escapeHtml=function(e){return p.test(e)?e.replace(m,_):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(8192<=e&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return M.test(e)},t.escapeRE=function(e){return e.replace(h,"\\$&")},t.normalizeReference=function(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}},"./node_modules/markdown-it/lib/index.js":function(e,t,n){var o=n("./node_modules/markdown-it/lib/common/utils.js"),r=n("./node_modules/markdown-it/lib/helpers/index.js"),i=n("./node_modules/markdown-it/lib/renderer.js"),a=n("./node_modules/markdown-it/lib/parser_core.js"),s=n("./node_modules/markdown-it/lib/parser_block.js"),c=n("./node_modules/markdown-it/lib/parser_inline.js"),u=n("./node_modules/linkify-it/index.js"),l=n("./node_modules/mdurl/index.js"),d=n("./node_modules/punycode/punycode.js"),p={default:n("./node_modules/markdown-it/lib/presets/default.js"),zero:n("./node_modules/markdown-it/lib/presets/zero.js"),commonmark:n("./node_modules/markdown-it/lib/presets/commonmark.js")},m=/^(vbscript|javascript|file|data):/,f=/^data:image\/(gif|png|jpeg|webp);/;function _(e){var t=e.trim().toLowerCase();return!m.test(t)||!!f.test(t)}var h=["http:","https:","mailto:"];function M(e){var t=l.parse(e,!0);if(t.hostname&&(!t.protocol||0<=h.indexOf(t.protocol)))try{t.hostname=d.toASCII(t.hostname)}catch(e){}return l.encode(l.format(t))}function b(e){var t=l.parse(e,!0);if(t.hostname&&(!t.protocol||0<=h.indexOf(t.protocol)))try{t.hostname=d.toUnicode(t.hostname)}catch(e){}return l.decode(l.format(t))}function y(e,t){if(!(this instanceof y))return new y(e,t);t||o.isString(e)||(t=e||{},e="default"),this.inline=new c,this.block=new s,this.core=new a,this.renderer=new i,this.linkify=new u,this.validateLink=_,this.normalizeLink=M,this.normalizeLinkText=b,this.utils=o,this.helpers=o.assign({},r),this.options={},this.configure(e),t&&this.set(t)}y.prototype.set=function(e){return o.assign(this.options,e),this},y.prototype.configure=function(t){var e,n=this;if(o.isString(t)&&!(t=p[e=t]))throw new Error('Wrong `markdown-it` preset "'+e+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&n.set(t.options),t.components&&Object.keys(t.components).forEach(function(e){t.components[e].rules&&n[e].ruler.enableOnly(t.components[e].rules),t.components[e].rules2&&n[e].ruler2.enableOnly(t.components[e].rules2)}),this},y.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(e){n=n.concat(this[e].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var o=t.filter(function(e){return n.indexOf(e)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this},y.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(e){n=n.concat(this[e].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var o=t.filter(function(e){return n.indexOf(e)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this},y.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},y.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},y.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},y.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},y.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=y},"./node_modules/markdown-it/lib/parser_block.js":function(e,t,n){var o=n("./node_modules/markdown-it/lib/ruler.js"),r=[["table",n("./node_modules/markdown-it/lib/rules_block/table.js"),["paragraph","reference"]],["code",n("./node_modules/markdown-it/lib/rules_block/code.js")],["fence",n("./node_modules/markdown-it/lib/rules_block/fence.js"),["paragraph","reference","blockquote","list"]],["blockquote",n("./node_modules/markdown-it/lib/rules_block/blockquote.js"),["paragraph","reference","blockquote","list"]],["hr",n("./node_modules/markdown-it/lib/rules_block/hr.js"),["paragraph","reference","blockquote","list"]],["list",n("./node_modules/markdown-it/lib/rules_block/list.js"),["paragraph","reference","blockquote"]],["reference",n("./node_modules/markdown-it/lib/rules_block/reference.js")],["heading",n("./node_modules/markdown-it/lib/rules_block/heading.js"),["paragraph","reference","blockquote"]],["lheading",n("./node_modules/markdown-it/lib/rules_block/lheading.js")],["html_block",n("./node_modules/markdown-it/lib/rules_block/html_block.js"),["paragraph","reference","blockquote"]],["paragraph",n("./node_modules/markdown-it/lib/rules_block/paragraph.js")]];function i(){this.ruler=new o;for(var e=0;e=c){e.line=n;break}for(o=0;o=i)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},a.prototype.parse=function(e,t,n,o){var r,i,a,s=new this.State(e,t,n,o);for(this.tokenize(s),a=(i=this.ruler2.getRules("")).length,r=0;r"+m(e[t].content)+""},r.code_block=function(e,t,n,o,r){var i=e[t];return""+m(e[t].content)+"\n"},r.fence=function(e,t,n,o,r){var i,a,s,c,u=e[t],l=u.info?p(u.info).trim():"",d="";return l&&(d=l.split(/\s+/g)[0]),0===(i=n.highlight&&n.highlight(u.content,d)||m(u.content)).indexOf(""+i+"\n"):"
"+i+"
\n"},r.image=function(e,t,n,o,r){var i=e[t];return i.attrs[i.attrIndex("alt")][1]=r.renderInlineAsText(i.children,n,o),r.renderToken(e,t,n)},r.hardbreak=function(e,t,n){return n.xhtmlOut?"
\n":"
\n"},r.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"
\n":"
\n":"\n"},r.text=function(e,t){return m(e[t].content)},r.html_block=function(e,t){return e[t].content},r.html_inline=function(e,t){return e[t].content},i.prototype.renderAttrs=function(e){var t,n,o;if(!e.attrs)return"";for(o="",t=0,n=e.attrs.length;t\n":">")},i.prototype.renderInline=function(e,t,n){for(var o,r="",i=this.rules,a=0,s=e.length;a",v.map=l=[t,0],e.md.block.tokenize(e,t,d),(v=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=T,e.parentType=h,l[1]=e.line,a=0;a|$))/i,/<\/(script|pre|style)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(r.source+"\\s*$"),/^$/,!1]];e.exports=function(e,t,n,o){var r,i,a,s,c=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(4<=e.sCount[t]-e.blkIndent)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(c))return!1;for(s=e.src.slice(c,u),r=0;r=e.blkIndent&&(c=e.bMarks[m]+e.tShift[m])<(u=e.eMarks[m])&&(45===(d=e.src.charCodeAt(c))||61===d)&&(c=e.skipChars(c,d),u<=(c=e.skipSpaces(c)))){l=61===d?1:2;break}if(!(e.sCount[m]<0)){for(r=!1,i=0,a=f.length;i=e.blkIndent&&(Y=!0),0<=(k=q(e,t))){if(l=!0,w=e.bMarks[t]+e.tShift[t],h=Number(e.src.substr(w,k-w-1)),Y&&1!==h)return!1}else{if(!(0<=(k=E(e,t))))return!1;l=!1}if(Y&&e.skipSpaces(k)>=e.eMarks[t])return!1;if(_=e.src.charCodeAt(k-1),o)return!0;for(f=e.tokens.length,l?(N=e.push("ordered_list_open","ol",1),1!==h&&(N.attrs=[["start",h]])):N=e.push("bullet_list_open","ul",1),N.map=m=[t,0],N.markup=String.fromCharCode(_),b=t,S=!1,D=e.md.block.ruler.getRules("list"),L=e.parentType,e.parentType="list";b=this.eMarks[e]},o.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e=e.eMarks[c])return!1;if(124!==(r=e.src.charCodeAt(a++))&&45!==r&&58!==r)return!1;for(;ap.length)return!1;if(o)return!0;for((d=e.push("table_open","table",1)).map=f=[t,0],(d=e.push("thead_open","thead",1)).map=[t,t+1],(d=e.push("tr_open","tr",1)).map=[t,t+1],s=0;s\s]/i.test(y)&&0/i.test(b)&&m++),!(0/,l=/^<([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)>/;e.exports=function(e,t){var n,o,r,i,a,s,c=e.pos;return 60===e.src.charCodeAt(c)&&(!((n=e.src.slice(c)).indexOf(">")<0)&&(l.test(n)?(i=(o=n.match(l))[0].slice(1,-1),a=e.md.normalizeLink(i),!!e.md.validateLink(a)&&(t||((s=e.push("link_open","a",1)).attrs=[["href",a]],s.markup="autolink",s.info="auto",(s=e.push("text","",0)).content=e.md.normalizeLinkText(i),(s=e.push("link_close","a",-1)).markup="autolink",s.info="auto"),e.pos+=o[0].length,!0)):!!u.test(n)&&(i=(r=n.match(u))[0].slice(1,-1),a=e.md.normalizeLink("mailto:"+i),!!e.md.validateLink(a)&&(t||((s=e.push("link_open","a",1)).attrs=[["href",a]],s.markup="autolink",s.info="auto",(s=e.push("text","",0)).content=e.md.normalizeLinkText(i),(s=e.push("link_close","a",-1)).markup="autolink",s.info="auto"),e.pos+=r[0].length,!0))))}},"./node_modules/markdown-it/lib/rules_inline/backticks.js":function(e,t,n){e.exports=function(e,t){var n,o,r,i,a,s,c=e.pos;if(96!==e.src.charCodeAt(c))return!1;for(n=c,c++,o=e.posMax;c?@[]^_`{|}~-".split("").forEach(function(e){a[e.charCodeAt(0)]=1}),e.exports=function(e,t){var n,o=e.pos,r=e.posMax;if(92!==e.src.charCodeAt(o))return!1;if(++o>10),56320+(1023&s))),t+=9):c+="�";return c})}o.defaultChars=";/?:@&=+$,#",o.componentChars="",e.exports=o},"./node_modules/mdurl/encode.js":function(e,t,n){var u={};function l(e,t,n){var o,r,i,a,s,c="";for("string"!=typeof t&&(n=t,t=l.defaultChars),void 0===n&&(n=!0),s=function(e){var t,n,o=u[e];if(o)return o;for(o=u[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?o.push(n):o.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t",'"',"`"," ","\r","\n","\t"]),a=["'"].concat(i),S=["%","/","?",";","#"].concat(a),w=["/","?","#"],O=/^[+a-z0-9A-Z_-]{0,63}$/,D=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,N={javascript:!0,"javascript:":!0},Y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};o.prototype.parse=function(e,t){var n,o,r,i,a,s=e;if(s=s.trim(),!t&&1===e.split("#").length){var c=k.exec(s);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var u=z.exec(s);if(u&&(r=(u=u[0]).toLowerCase(),this.protocol=u,s=s.substr(u.length)),(t||u||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(a="//"===s.substr(0,2))||u&&N[u]||(s=s.substr(2),this.slashes=!0)),!N[u]&&(a||u&&!Y[u])){var l,d,p=-1;for(n=0;n>10|55296,1023&o|56320)}function r(){v()}var e,m,g,i,a,f,p,_,L,c,u,v,A,s,T,h,l,M,b,z="sizzle"+1*new Date,y=n.document,k=0,o=0,S=ce(),w=ce(),O=ce(),D=ce(),N=function(e,t){return e===t&&(u=!0),0},Y={}.hasOwnProperty,t=[],x=t.pop,E=t.push,q=t.push,W=t.slice,j=function(e,t){for(var n=0,o=e.length;n+~]|"+B+")"+B+"*"),K=new RegExp(B+"|>"),V=new RegExp(P),G=new RegExp("^"+H+"$"),J={ID:new RegExp("^#("+H+")"),CLASS:new RegExp("^\\.("+H+")"),TAG:new RegExp("^("+H+"|[*])"),ATTR:new RegExp("^"+X),PSEUDO:new RegExp("^"+P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+B+"*(even|odd|(([+-]|)(\\d*)n|)"+B+"*(?:([+-]|)"+B+"*(\\d+)|))"+B+"*\\)|)","i"),bool:new RegExp("^(?:"+C+")$","i"),needsContext:new RegExp("^"+B+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+B+"*((?:-\\d)?\\d*)"+B+"*\\)|)(?=[^-]|$)","i")},Q=/HTML$/i,$=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,ee=/^[^{]+\{\s*\[native \w/,te=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ne=/[+~]/,oe=new RegExp("\\\\([\\da-f]{1,6}"+B+"?|("+B+")|.)","ig"),re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ae=ge(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{q.apply(t=W.call(y.childNodes),y.childNodes),t[y.childNodes.length].nodeType}catch(e){q={apply:t.length?function(e,t){E.apply(e,W.call(t))}:function(e,t){for(var n=e.length,o=0;e[n++]=t[o++];);e.length=n-1}}}function se(t,e,n,o){var r,i,a,s,c,u,l,d=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!o&&((e?e.ownerDocument||e:y)!==A&&v(e),e=e||A,T)){if(11!==p&&(c=te.exec(t)))if(r=c[1]){if(9===p){if(!(a=e.getElementById(r)))return n;if(a.id===r)return n.push(a),n}else if(d&&(a=d.getElementById(r))&&b(e,a)&&a.id===r)return n.push(a),n}else{if(c[2])return q.apply(n,e.getElementsByTagName(t)),n;if((r=c[3])&&m.getElementsByClassName&&e.getElementsByClassName)return q.apply(n,e.getElementsByClassName(r)),n}if(m.qsa&&!D[t+" "]&&(!h||!h.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(l=t,d=e,1===p&&K.test(t)){for((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=z),i=(u=f(t)).length;i--;)u[i]="#"+s+" "+ye(u[i]);l=u.join(","),d=ne.test(t)&&Me(e.parentNode)||e}try{return q.apply(n,d.querySelectorAll(l)),n}catch(e){D(t,!0)}finally{s===z&&e.removeAttribute("id")}}}return _(t.replace(I,"$1"),e,n,o)}function ce(){var o=[];return function e(t,n){return o.push(t+" ")>g.cacheLength&&delete e[o.shift()],e[t+" "]=n}}function ue(e){return e[z]=!0,e}function le(e){var t=A.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),o=n.length;o--;)g.attrHandle[n[o]]=t}function pe(e,t){var n=t&&e,o=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(o)return o;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function me(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function fe(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function _e(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function he(a){return ue(function(i){return i=+i,ue(function(e,t){for(var n,o=a([],e.length,i),r=o.length;r--;)e[n=o[r]]&&(e[n]=!(t[n]=e[n]))})})}function Me(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in m=se.support={},a=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Q.test(t||n&&n.nodeName||"HTML")},v=se.setDocument=function(e){var t,n,o=e?e.ownerDocument||e:y;return o!==A&&9===o.nodeType&&o.documentElement&&(s=(A=o).documentElement,T=!a(A),y!==A&&(n=A.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",r,!1):n.attachEvent&&n.attachEvent("onunload",r)),m.attributes=le(function(e){return e.className="i",!e.getAttribute("className")}),m.getElementsByTagName=le(function(e){return e.appendChild(A.createComment("")),!e.getElementsByTagName("*").length}),m.getElementsByClassName=ee.test(A.getElementsByClassName),m.getById=le(function(e){return s.appendChild(e).id=z,!A.getElementsByName||!A.getElementsByName(z).length}),m.getById?(g.filter.ID=function(e){var t=e.replace(oe,d);return function(e){return e.getAttribute("id")===t}},g.find.ID=function(e,t){if(void 0!==t.getElementById&&T){var n=t.getElementById(e);return n?[n]:[]}}):(g.filter.ID=function(e){var n=e.replace(oe,d);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},g.find.ID=function(e,t){if(void 0!==t.getElementById&&T){var n,o,r,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(r=t.getElementsByName(e),o=0;i=r[o++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),g.find.TAG=m.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):m.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,o=[],r=0,i=t.getElementsByTagName(e);if("*"!==e)return i;for(;n=i[r++];)1===n.nodeType&&o.push(n);return o},g.find.CLASS=m.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&T)return t.getElementsByClassName(e)},l=[],h=[],(m.qsa=ee.test(A.querySelectorAll))&&(le(function(e){s.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&h.push("[*^$]="+B+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||h.push("\\["+B+"*(?:value|"+C+")"),e.querySelectorAll("[id~="+z+"-]").length||h.push("~="),e.querySelectorAll(":checked").length||h.push(":checked"),e.querySelectorAll("a#"+z+"+*").length||h.push(".#.+[+~]")}),le(function(e){e.innerHTML="";var t=A.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&h.push("name"+B+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&h.push(":enabled",":disabled"),s.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),h.push(",.*:")})),(m.matchesSelector=ee.test(M=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&le(function(e){m.disconnectedMatch=M.call(e,"*"),M.call(e,"[s!='']:x"),l.push("!=",P)}),h=h.length&&new RegExp(h.join("|")),l=l.length&&new RegExp(l.join("|")),t=ee.test(s.compareDocumentPosition),b=t||ee.test(s.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,o=t&&t.parentNode;return e===o||!(!o||1!==o.nodeType||!(n.contains?n.contains(o):e.compareDocumentPosition&&16&e.compareDocumentPosition(o)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},N=t?function(e,t){if(e===t)return u=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!m.sortDetached&&t.compareDocumentPosition(e)===n?e===A||e.ownerDocument===y&&b(y,e)?-1:t===A||t.ownerDocument===y&&b(y,t)?1:c?j(c,e)-j(c,t):0:4&n?-1:1)}:function(e,t){if(e===t)return u=!0,0;var n,o=0,r=e.parentNode,i=t.parentNode,a=[e],s=[t];if(!r||!i)return e===A?-1:t===A?1:r?-1:i?1:c?j(c,e)-j(c,t):0;if(r===i)return pe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[o]===s[o];)o++;return o?pe(a[o],s[o]):a[o]===y?-1:s[o]===y?1:0}),A},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==A&&v(e),m.matchesSelector&&T&&!D[t+" "]&&(!l||!l.test(t))&&(!h||!h.test(t)))try{var n=M.call(e,t);if(n||m.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){D(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(oe,d),e[3]=(e[3]||e[4]||e[5]||"").replace(oe,d),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return J.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&V.test(n)&&(t=f(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(oe,d).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=S[e+" "];return t||(t=new RegExp("(^|"+B+")"+e+"("+B+"|$)"))&&S(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,o,r){return function(e){var t=se.attr(e,n);return null==t?"!="===o:!o||(t+="","="===o?t===r:"!="===o?t!==r:"^="===o?r&&0===t.indexOf(r):"*="===o?r&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function O(e,n,o){return y(n)?z.grep(e,function(e,t){return!!n.call(e,t,e)!==o}):n.nodeType?z.grep(e,function(e){return e===n!==o}):"string"!=typeof n?z.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(z.fn.init=function(e,t,n){var o,r;if(!e)return this;if(n=n||D,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(z):z.makeArray(e,this);if(!(o="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:N.exec(e))||!o[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(o[1]){if(t=t instanceof z?t[0]:t,z.merge(this,z.parseHTML(o[1],t&&t.nodeType?t.ownerDocument||t:T,!0)),w.test(o[1])&&z.isPlainObject(t))for(o in t)y(this[o])?this[o](t[o]):this.attr(o,t[o]);return this}return(r=T.getElementById(o[2]))&&(this[0]=r,this.length=1),this}).prototype=z.fn,D=z(T);var Y=/^(?:parents|prev(?:Until|All))/,x={children:!0,contents:!0,next:!0,prev:!0};function E(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}z.fn.extend({has:function(e){var t=z(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,me=/^$|^module$|\/(?:java|ecma)script/i,fe={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function _e(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&S(e,t)?z.merge([e],n):n}function he(e,t){for(var n=0,o=e.length;nx",b.noCloneChecked=!!Me.cloneNode(!0).lastChild.defaultValue;var Le=/^key/,ve=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ae=/^([^.]*)(?:\.(.+)|)/;function Te(){return!0}function ze(){return!1}function ke(e,t){return e===function(){try{return T.activeElement}catch(e){}}()==("focus"===t)}function Se(e,t,n,o,r,i){var a,s;if("object"===un(t)){for(s in"string"!=typeof n&&(o=o||n,n=void 0),t)Se(e,s,n,o,t[s],i);return e}if(null==o&&null==r?(r=n,o=n=void 0):null==r&&("string"==typeof n?(r=o,o=void 0):(r=o,o=n,n=void 0)),!1===r)r=ze;else if(!r)return e;return 1===i&&(a=r,(r=function(e){return z().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=z.guid++)),e.each(function(){z.event.add(this,t,r,o,n)})}function we(e,r,i){i?(G.set(e,r,!1),z.event.add(e,r,{namespace:!1,handler:function(e){var t,n,o=G.get(this,r);if(1&e.isTrigger&&this[r]){if(o.length)(z.event.special[r]||{}).delegateType&&e.stopPropagation();else if(o=s.call(arguments),G.set(this,r,o),t=i(this,r),this[r](),o!==(n=G.get(this,r))||t?G.set(this,r,!1):n={},o!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else o.length&&(G.set(this,r,{value:z.event.trigger(z.extend(o[0],z.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===G.get(e,r)&&z.event.add(e,r,Te)}z.event={global:{},add:function(t,e,n,o,r){var i,a,s,c,u,l,d,p,m,f,_,h=G.get(t);if(h)for(n.handler&&(n=(i=n).handler,r=i.selector),r&&z.find.matchesSelector(oe,r),n.guid||(n.guid=z.guid++),(c=h.events)||(c=h.events={}),(a=h.handle)||(a=h.handle=function(e){return void 0!==z&&z.event.triggered!==e.type?z.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(q)||[""]).length;u--;)m=_=(s=Ae.exec(e[u])||[])[1],f=(s[2]||"").split(".").sort(),m&&(d=z.event.special[m]||{},m=(r?d.delegateType:d.bindType)||m,d=z.event.special[m]||{},l=z.extend({type:m,origType:_,data:o,handler:n,guid:n.guid,selector:r,needsContext:r&&z.expr.match.needsContext.test(r),namespace:f.join(".")},i),(p=c[m])||((p=c[m]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,o,f,a)||t.addEventListener&&t.addEventListener(m,a)),d.add&&(d.add.call(t,l),l.handler.guid||(l.handler.guid=n.guid)),r?p.splice(p.delegateCount++,0,l):p.push(l),z.event.global[m]=!0)},remove:function(e,t,n,o,r){var i,a,s,c,u,l,d,p,m,f,_,h=G.hasData(e)&&G.get(e);if(h&&(c=h.events)){for(u=(t=(t||"").match(q)||[""]).length;u--;)if(m=_=(s=Ae.exec(t[u])||[])[1],f=(s[2]||"").split(".").sort(),m){for(d=z.event.special[m]||{},p=c[m=(o?d.delegateType:d.bindType)||m]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=p.length;i--;)l=p[i],!r&&_!==l.origType||n&&n.guid!==l.guid||s&&!s.test(l.namespace)||o&&o!==l.selector&&("**"!==o||!l.selector)||(p.splice(i,1),l.selector&&p.delegateCount--,d.remove&&d.remove.call(e,l));a&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,f,h.handle)||z.removeEvent(e,m,h.handle),delete c[m])}else for(m in c)z.event.remove(e,m+t[u],n,o,!0);z.isEmptyObject(c)&&G.remove(e,"handle events")}},dispatch:function(e){var t,n,o,r,i,a,s=z.event.fix(e),c=new Array(arguments.length),u=(G.get(this,"events")||{})[s.type]||[],l=z.event.special[s.type]||{};for(c[0]=s,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,De=/\s*$/g;function xe(e,t){return S(e,"table")&&S(11!==t.nodeType?t:t.firstChild,"tr")&&z(e).children("tbody")[0]||e}function Ee(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function We(e,t){var n,o,r,i,a,s,c,u;if(1===t.nodeType){if(G.hasData(e)&&(i=G.access(e),a=G.set(t,i),u=i.events))for(r in delete a.handle,a.events={},u)for(n=0,o=u[r].length;n")},clone:function(e,t,n){var o,r,i,a,s,c,u,l=e.cloneNode(!0),d=re(e);if(!(b.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||z.isXMLDoc(e)))for(a=_e(l),o=0,r=(i=_e(e)).length;o").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",r=function(e){o.remove(),r=null,e&&t("error"===e.type?404:200,e.type)}),T.head.appendChild(o[0])},abort:function(){r&&r()}}});var tn,nn=[],on=/(=)\?(?=&|$)|\?\?/;z.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=nn.pop()||z.expando+"_"+xt++;return this[e]=!0,e}}),z.ajaxPrefilter("json jsonp",function(e,t,n){var o,r,i,a=!1!==e.jsonp&&(on.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&on.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(on,"$1"+o):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return i||z.error(o+" was not called"),i[0]},e.dataTypes[0]="json",r=A[o],A[o]=function(){i=arguments},n.always(function(){void 0===r?z(A).removeProp(o):A[o]=r,e[o]&&(e.jsonpCallback=t.jsonpCallback,nn.push(o)),i&&y(r)&&r(i[0]),i=r=void 0}),"script"}),b.createHTMLDocument=((tn=T.implementation.createHTMLDocument("").body).innerHTML="
",2===tn.childNodes.length),z.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(b.createHTMLDocument?((o=(t=T.implementation.createHTMLDocument("")).createElement("base")).href=T.location.href,t.head.appendChild(o)):t=T),i=!n&&[],(r=w.exec(e))?[t.createElement(r[1])]:(r=ge([e],t,i),i&&i.length&&z(i).remove(),z.merge([],r.childNodes)));var o,r,i},z.fn.load=function(e,t,n){var o,r,i,a=this,s=e.indexOf(" ");return-1").append(z.parseHTML(e)).find(o):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,i||[e.responseText,t,e])})}),this},z.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){z.fn[t]=function(e){return this.on(t,e)}}),z.expr.pseudos.animated=function(t){return z.grep(z.timers,function(e){return t===e.elem}).length},z.offset={setOffset:function(e,t,n){var o,r,i,a,s,c,u=z.css(e,"position"),l=z(e),d={};"static"===u&&(e.style.position="relative"),s=l.offset(),i=z.css(e,"top"),c=z.css(e,"left"),r=("absolute"===u||"fixed"===u)&&-1<(i+c).indexOf("auto")?(a=(o=l.position()).top,o.left):(a=parseFloat(i)||0,parseFloat(c)||0),y(t)&&(t=t.call(e,n,z.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+r),"using"in t?t.using.call(e,d):l.css(d)}},z.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){z.offset.setOffset(this,t,e)});var e,n,o=this[0];return o?o.getClientRects().length?(e=o.getBoundingClientRect(),n=o.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,o=this[0],r={top:0,left:0};if("fixed"===z.css(o,"position"))t=o.getBoundingClientRect();else{for(t=this.offset(),n=o.ownerDocument,e=o.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===z.css(e,"position");)e=e.parentNode;e&&e!==o&&1===e.nodeType&&((r=z(e).offset()).top+=z.css(e,"borderTopWidth",!0),r.left+=z.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-z.css(o,"marginTop",!0),left:t.left-r.left-z.css(o,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===z.css(e,"position");)e=e.offsetParent;return e||oe})}}),z.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var i="pageYOffset"===r;z.fn[t]=function(e){return P(this,function(e,t,n){var o;if(_(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===n)return o?o[r]:e[t];o?o.scrollTo(i?o.pageXOffset:n,i?n:o.pageYOffset):e[t]=n},t,e,arguments.length)}}),z.each(["top","left"],function(e,n){z.cssHooks[n]=$e(b.pixelPosition,function(e,t){if(t)return t=Qe(e,n),Ue.test(t)?z(e).position()[n]+"px":t})}),z.each({Height:"height",Width:"width"},function(a,s){z.each({padding:"inner"+a,content:s,"":"outer"+a},function(o,i){z.fn[i]=function(e,t){var n=arguments.length&&(o||"boolean"!=typeof e),r=o||(!0===e||!0===t?"margin":"border");return P(this,function(e,t,n){var o;return _(e)?0===i.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+a],o["scroll"+a],e.body["offset"+a],o["offset"+a],o["client"+a])):void 0===n?z.css(e,t,r):z.style(e,t,n,r)},s,n?e:void 0,n)}})}),z.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){z.fn[n]=function(e,t){return 0<|]|"+t.src_ZPCc+"))("+a+")","i"),o.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","ig"),o.re.pretest=RegExp("("+o.re.schema_test.source+")|("+o.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(o)}function p(e,t){var n=e.__index__,o=e.__last_index__,r=e.__text_cache__.slice(n,o);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=o+t,this.raw=r,this.text=r,this.url=r}function m(e,t){var n=new p(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function f(e,t){if(!(this instanceof f))return new f(e,t);t||!function(e){return Object.keys(e||{}).reduce(function(e,t){return e||o.hasOwnProperty(t)},!1)}(e)||(t=e,e={}),this.__opts__=n({},o,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=n({},r,e),this.__compiled__={},this.__tlds__=i,this.__tlds_replaced__=!1,this.re={},a(this)}f.prototype.add=function(e,t){return this.__schemas__[e]=t,a(this),this},f.prototype.set=function(e){return this.__opts__=n(this.__opts__,e),this},f.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,o,r,i,a,s,c;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(r=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+r;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&0<=(c=e.search(this.re.host_fuzzy_test))&&(this.__index__<0||cthis.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a)),0<=this.__index__},f.prototype.pretest=function(e){return this.re.pretest.test(e)},f.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},f.prototype.match=function(e){var t=0,n=[];0<=this.__index__&&this.__text_cache__===e&&(n.push(m(this,t)),t=this.__last_index__);for(var o=t?e.slice(t):e;this.test(o);)n.push(m(this,t)),o=o.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},f.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse():(this.__tlds__=e.slice(),this.__tlds_replaced__=!0),a(this),this},f.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},f.prototype.onCompile=function(){},e.exports=f},"./node_modules/linkify-it/lib/re.js":function(e,t,o){e.exports=function(e){var t={};t.src_Any=o("./node_modules/uc.micro/properties/Any/regex.js").source,t.src_Cc=o("./node_modules/uc.micro/categories/Cc/regex.js").source,t.src_Z=o("./node_modules/uc.micro/categories/Z/regex.js").source,t.src_P=o("./node_modules/uc.micro/categories/P/regex.js").source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var n="[><|]";return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+"|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,3}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]+',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|[><|]|\\(|"+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},"./node_modules/markdown-it/index.js":function(e,t,n){e.exports=n("./node_modules/markdown-it/lib/index.js")},"./node_modules/markdown-it/lib/common/entities.js":function(e,t,n){e.exports=n("./node_modules/entities/lib/maps/entities.json")},"./node_modules/markdown-it/lib/common/html_blocks.js":function(e,t,n){e.exports=["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","h1","h2","h3","h4","h5","h6","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"]},"./node_modules/markdown-it/lib/common/html_re.js":function(e,t,n){var o="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",r="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",i=new RegExp("^(?:"+o+"|"+r+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|]*>|)"),a=new RegExp("^(?:"+o+"|"+r+")");e.exports.HTML_TAG_RE=i,e.exports.HTML_OPEN_CLOSE_TAG_RE=a},"./node_modules/markdown-it/lib/common/utils.js":function(e,t,n){function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=Object.prototype.hasOwnProperty;function i(e,t){return r.call(e,t)}function a(e){return!(55296<=e&&e<=57343)&&(!(64976<=e&&e<=65007)&&(65535!=(65535&e)&&65534!=(65535&e)&&(!(0<=e&&e<=8)&&(11!==e&&(!(14<=e&&e<=31)&&(!(127<=e&&e<=159)&&!(1114111>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var c=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=new RegExp(c.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),l=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,d=n("./node_modules/markdown-it/lib/common/entities.js");var p=/[&<>"]/,m=/[&<>"]/g,f={"&":"&","<":"<",">":">",'"':"""};function _(e){return f[e]}var h=/[.?*+^$[\]\\(){}|-]/g;var M=n("./node_modules/uc.micro/categories/P/regex.js");t.lib={},t.lib.mdurl=n("./node_modules/mdurl/index.js"),t.lib.ucmicro=n("./node_modules/uc.micro/index.js"),t.assign=function(n){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if("object"!==o(t))throw new TypeError(t+"must be object");Object.keys(t).forEach(function(e){n[e]=t[e]})}}),n},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=i,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(c,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(u,function(e,t,n){return t||function(e,t){var n=0;return i(d,t)?d[t]:35===t.charCodeAt(0)&&l.test(t)&&a(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?s(n):e}(e,n)})},t.isValidEntityCode=a,t.fromCodePoint=s,t.escapeHtml=function(e){return p.test(e)?e.replace(m,_):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(8192<=e&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return M.test(e)},t.escapeRE=function(e){return e.replace(h,"\\$&")},t.normalizeReference=function(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}},"./node_modules/markdown-it/lib/index.js":function(e,t,n){var o=n("./node_modules/markdown-it/lib/common/utils.js"),r=n("./node_modules/markdown-it/lib/helpers/index.js"),i=n("./node_modules/markdown-it/lib/renderer.js"),a=n("./node_modules/markdown-it/lib/parser_core.js"),s=n("./node_modules/markdown-it/lib/parser_block.js"),c=n("./node_modules/markdown-it/lib/parser_inline.js"),u=n("./node_modules/linkify-it/index.js"),l=n("./node_modules/mdurl/index.js"),d=n("./node_modules/punycode/punycode.js"),p={default:n("./node_modules/markdown-it/lib/presets/default.js"),zero:n("./node_modules/markdown-it/lib/presets/zero.js"),commonmark:n("./node_modules/markdown-it/lib/presets/commonmark.js")},m=/^(vbscript|javascript|file|data):/,f=/^data:image\/(gif|png|jpeg|webp);/;function _(e){var t=e.trim().toLowerCase();return!m.test(t)||!!f.test(t)}var h=["http:","https:","mailto:"];function M(e){var t=l.parse(e,!0);if(t.hostname&&(!t.protocol||0<=h.indexOf(t.protocol)))try{t.hostname=d.toASCII(t.hostname)}catch(e){}return l.encode(l.format(t))}function b(e){var t=l.parse(e,!0);if(t.hostname&&(!t.protocol||0<=h.indexOf(t.protocol)))try{t.hostname=d.toUnicode(t.hostname)}catch(e){}return l.decode(l.format(t))}function y(e,t){if(!(this instanceof y))return new y(e,t);t||o.isString(e)||(t=e||{},e="default"),this.inline=new c,this.block=new s,this.core=new a,this.renderer=new i,this.linkify=new u,this.validateLink=_,this.normalizeLink=M,this.normalizeLinkText=b,this.utils=o,this.helpers=o.assign({},r),this.options={},this.configure(e),t&&this.set(t)}y.prototype.set=function(e){return o.assign(this.options,e),this},y.prototype.configure=function(t){var e,n=this;if(o.isString(t)&&!(t=p[e=t]))throw new Error('Wrong `markdown-it` preset "'+e+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&n.set(t.options),t.components&&Object.keys(t.components).forEach(function(e){t.components[e].rules&&n[e].ruler.enableOnly(t.components[e].rules),t.components[e].rules2&&n[e].ruler2.enableOnly(t.components[e].rules2)}),this},y.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(e){n=n.concat(this[e].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var o=t.filter(function(e){return n.indexOf(e)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this},y.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(e){n=n.concat(this[e].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var o=t.filter(function(e){return n.indexOf(e)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this},y.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},y.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},y.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},y.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},y.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=y},"./node_modules/markdown-it/lib/parser_block.js":function(e,t,n){var o=n("./node_modules/markdown-it/lib/ruler.js"),r=[["table",n("./node_modules/markdown-it/lib/rules_block/table.js"),["paragraph","reference"]],["code",n("./node_modules/markdown-it/lib/rules_block/code.js")],["fence",n("./node_modules/markdown-it/lib/rules_block/fence.js"),["paragraph","reference","blockquote","list"]],["blockquote",n("./node_modules/markdown-it/lib/rules_block/blockquote.js"),["paragraph","reference","blockquote","list"]],["hr",n("./node_modules/markdown-it/lib/rules_block/hr.js"),["paragraph","reference","blockquote","list"]],["list",n("./node_modules/markdown-it/lib/rules_block/list.js"),["paragraph","reference","blockquote"]],["reference",n("./node_modules/markdown-it/lib/rules_block/reference.js")],["heading",n("./node_modules/markdown-it/lib/rules_block/heading.js"),["paragraph","reference","blockquote"]],["lheading",n("./node_modules/markdown-it/lib/rules_block/lheading.js")],["html_block",n("./node_modules/markdown-it/lib/rules_block/html_block.js"),["paragraph","reference","blockquote"]],["paragraph",n("./node_modules/markdown-it/lib/rules_block/paragraph.js")]];function i(){this.ruler=new o;for(var e=0;e=c){e.line=n;break}for(o=0;o=i)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},a.prototype.parse=function(e,t,n,o){var r,i,a,s=new this.State(e,t,n,o);for(this.tokenize(s),a=(i=this.ruler2.getRules("")).length,r=0;r"+m(e[t].content)+""},r.code_block=function(e,t,n,o,r){var i=e[t];return""+m(e[t].content)+"\n"},r.fence=function(e,t,n,o,r){var i,a,s,c,u=e[t],l=u.info?p(u.info).trim():"",d="";return l&&(d=l.split(/\s+/g)[0]),0===(i=n.highlight&&n.highlight(u.content,d)||m(u.content)).indexOf(""+i+"\n"):"
"+i+"
\n"},r.image=function(e,t,n,o,r){var i=e[t];return i.attrs[i.attrIndex("alt")][1]=r.renderInlineAsText(i.children,n,o),r.renderToken(e,t,n)},r.hardbreak=function(e,t,n){return n.xhtmlOut?"
\n":"
\n"},r.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"
\n":"
\n":"\n"},r.text=function(e,t){return m(e[t].content)},r.html_block=function(e,t){return e[t].content},r.html_inline=function(e,t){return e[t].content},i.prototype.renderAttrs=function(e){var t,n,o;if(!e.attrs)return"";for(o="",t=0,n=e.attrs.length;t\n":">")},i.prototype.renderInline=function(e,t,n){for(var o,r="",i=this.rules,a=0,s=e.length;a",v.map=l=[t,0],e.md.block.tokenize(e,t,d),(v=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=T,e.parentType=h,l[1]=e.line,a=0;a|$))/i,/<\/(script|pre|style)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(r.source+"\\s*$"),/^$/,!1]];e.exports=function(e,t,n,o){var r,i,a,s,c=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(4<=e.sCount[t]-e.blkIndent)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(c))return!1;for(s=e.src.slice(c,u),r=0;r=e.blkIndent&&(c=e.bMarks[m]+e.tShift[m])<(u=e.eMarks[m])&&(45===(d=e.src.charCodeAt(c))||61===d)&&(c=e.skipChars(c,d),u<=(c=e.skipSpaces(c)))){l=61===d?1:2;break}if(!(e.sCount[m]<0)){for(r=!1,i=0,a=f.length;i=e.blkIndent&&(Y=!0),0<=(k=q(e,t))){if(l=!0,w=e.bMarks[t]+e.tShift[t],h=Number(e.src.substr(w,k-w-1)),Y&&1!==h)return!1}else{if(!(0<=(k=E(e,t))))return!1;l=!1}if(Y&&e.skipSpaces(k)>=e.eMarks[t])return!1;if(_=e.src.charCodeAt(k-1),o)return!0;for(f=e.tokens.length,l?(N=e.push("ordered_list_open","ol",1),1!==h&&(N.attrs=[["start",h]])):N=e.push("bullet_list_open","ul",1),N.map=m=[t,0],N.markup=String.fromCharCode(_),b=t,S=!1,D=e.md.block.ruler.getRules("list"),L=e.parentType,e.parentType="list";b=this.eMarks[e]},o.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e=e.eMarks[c])return!1;if(124!==(r=e.src.charCodeAt(a++))&&45!==r&&58!==r)return!1;for(;ap.length)return!1;if(o)return!0;for((d=e.push("table_open","table",1)).map=f=[t,0],(d=e.push("thead_open","thead",1)).map=[t,t+1],(d=e.push("tr_open","tr",1)).map=[t,t+1],s=0;s\s]/i.test(y)&&0/i.test(b)&&m++),!(0/,l=/^<([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)>/;e.exports=function(e,t){var n,o,r,i,a,s,c=e.pos;return 60===e.src.charCodeAt(c)&&(!((n=e.src.slice(c)).indexOf(">")<0)&&(l.test(n)?(i=(o=n.match(l))[0].slice(1,-1),a=e.md.normalizeLink(i),!!e.md.validateLink(a)&&(t||((s=e.push("link_open","a",1)).attrs=[["href",a]],s.markup="autolink",s.info="auto",(s=e.push("text","",0)).content=e.md.normalizeLinkText(i),(s=e.push("link_close","a",-1)).markup="autolink",s.info="auto"),e.pos+=o[0].length,!0)):!!u.test(n)&&(i=(r=n.match(u))[0].slice(1,-1),a=e.md.normalizeLink("mailto:"+i),!!e.md.validateLink(a)&&(t||((s=e.push("link_open","a",1)).attrs=[["href",a]],s.markup="autolink",s.info="auto",(s=e.push("text","",0)).content=e.md.normalizeLinkText(i),(s=e.push("link_close","a",-1)).markup="autolink",s.info="auto"),e.pos+=r[0].length,!0))))}},"./node_modules/markdown-it/lib/rules_inline/backticks.js":function(e,t,n){e.exports=function(e,t){var n,o,r,i,a,s,c=e.pos;if(96!==e.src.charCodeAt(c))return!1;for(n=c,c++,o=e.posMax;c?@[]^_`{|}~-".split("").forEach(function(e){a[e.charCodeAt(0)]=1}),e.exports=function(e,t){var n,o=e.pos,r=e.posMax;if(92!==e.src.charCodeAt(o))return!1;if(++o>10),56320+(1023&s))),t+=9):c+="�";return c})}o.defaultChars=";/?:@&=+$,#",o.componentChars="",e.exports=o},"./node_modules/mdurl/encode.js":function(e,t,n){var u={};function l(e,t,n){var o,r,i,a,s,c="";for("string"!=typeof t&&(n=t,t=l.defaultChars),void 0===n&&(n=!0),s=function(e){var t,n,o=u[e];if(o)return o;for(o=u[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?o.push(n):o.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t",'"',"`"," ","\r","\n","\t"]),a=["'"].concat(i),S=["%","/","?",";","#"].concat(a),w=["/","?","#"],O=/^[+a-z0-9A-Z_-]{0,63}$/,D=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,N={javascript:!0,"javascript:":!0},Y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};o.prototype.parse=function(e,t){var n,o,r,i,a,s=e;if(s=s.trim(),!t&&1===e.split("#").length){var c=k.exec(s);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var u=z.exec(s);if(u&&(r=(u=u[0]).toLowerCase(),this.protocol=u,s=s.substr(u.length)),(t||u||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(a="//"===s.substr(0,2))||u&&N[u]||(s=s.substr(2),this.slashes=!0)),!N[u]&&(a||u&&!Y[u])){var l,d,p=-1;for(n=0;n>>0,o=0;oAe(e)?(i=e+1,s-Ae(e)):(i=e,s),{year:i,dayOfYear:a}}function Pe(e,t,n){var o,r,i=He(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?o=a+Re(r=e.year()-1,t,n):a>Re(e.year(),t,n)?(o=a-Re(e.year(),t,n),r=e.year()+1):(r=e.year(),o=a),{week:o,year:r}}function Re(e,t,n){var o=He(e,t,n),r=He(e+1,t,n);return(Ae(e)-o+r)/7}P("w",["ww",2],"wo","week"),P("W",["WW",2],"Wo","isoWeek"),Y("week","w"),Y("isoWeek","W"),W("week",5),W("isoWeek",5),ce("w",J),ce("ww",J,U),ce("W",J),ce("WW",J,U),me(["w","ww","W","WW"],function(e,t,n,o){t[o.substr(0,1)]=v(e)});function Ie(e,t){return e.slice(t,7).concat(e.slice(0,t))}P("d",0,"do","day"),P("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),P("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),P("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),P("e",0,0,"weekday"),P("E",0,0,"isoWeekday"),Y("day","d"),Y("weekday","e"),Y("isoWeekday","E"),W("day",11),W("weekday",11),W("isoWeekday",11),ce("d",J),ce("e",J),ce("E",J),ce("dd",function(e,t){return t.weekdaysMinRegex(e)}),ce("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ce("dddd",function(e,t){return t.weekdaysRegex(e)}),me(["dd","ddd","dddd"],function(e,t,n,o){var r=n._locale.weekdaysParse(e,o,n._strict);null!=r?t.d=r:f(n).invalidWeekday=e}),me(["d","e","E"],function(e,t,n,o){t[o]=v(e)});var Fe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var Ue="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Ke="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var Ve=ae;var Ge=ae;var Je=ae;function Qe(){function e(e,t){return t.length-e.length}var t,n,o,r,i,a=[],s=[],c=[],u=[];for(t=0;t<7;t++)n=d([2e3,1]).day(t),o=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),i=this.weekdays(n,""),a.push(o),s.push(r),c.push(i),u.push(o),u.push(r),u.push(i);for(a.sort(e),s.sort(e),c.sort(e),u.sort(e),t=0;t<7;t++)s[t]=le(s[t]),c[t]=le(c[t]),u[t]=le(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function $e(){return this.hours()%12||12}function Ze(e,t){P(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function et(e,t){return t._meridiemParse}P("H",["HH",2],0,"hour"),P("h",["hh",2],0,$e),P("k",["kk",2],0,function(){return this.hours()||24}),P("hmm",0,0,function(){return""+$e.apply(this)+j(this.minutes(),2)}),P("hmmss",0,0,function(){return""+$e.apply(this)+j(this.minutes(),2)+j(this.seconds(),2)}),P("Hmm",0,0,function(){return""+this.hours()+j(this.minutes(),2)}),P("Hmmss",0,0,function(){return""+this.hours()+j(this.minutes(),2)+j(this.seconds(),2)}),Ze("a",!0),Ze("A",!1),Y("hour","h"),W("hour",13),ce("a",et),ce("A",et),ce("H",J),ce("h",J),ce("k",J),ce("HH",J,U),ce("hh",J,U),ce("kk",J,U),ce("hmm",Q),ce("hmmss",$),ce("Hmm",Q),ce("Hmmss",$),pe(["H","HH"],Me),pe(["k","kk"],function(e,t,n){var o=v(e);t[Me]=24===o?0:o}),pe(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),pe(["h","hh"],function(e,t,n){t[Me]=v(e),f(n).bigHour=!0}),pe("hmm",function(e,t,n){var o=e.length-2;t[Me]=v(e.substr(0,o)),t[be]=v(e.substr(o)),f(n).bigHour=!0}),pe("hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[Me]=v(e.substr(0,o)),t[be]=v(e.substr(o,2)),t[ye]=v(e.substr(r)),f(n).bigHour=!0}),pe("Hmm",function(e,t,n){var o=e.length-2;t[Me]=v(e.substr(0,o)),t[be]=v(e.substr(o))}),pe("Hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[Me]=v(e.substr(0,o)),t[be]=v(e.substr(o,2)),t[ye]=v(e.substr(r))});var tt,nt=Se("Hours",!0),ot={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ye,monthsShort:xe,week:{dow:0,doy:6},weekdays:Fe,weekdaysMin:Ke,weekdaysShort:Ue,meridiemParse:/[ap]\.?m?\.?/i},rt={},it={};function at(e){return e?e.toLowerCase().replace("_","-"):e}function st(e){var t=null;if(!rt[e]&&void 0!==Gn&&Gn&&Gn.exports)try{t=tt._abbr;Qn("./node_modules/moment/locale sync recursive ^\\.\\/.*$")("./"+e),ct(t)}catch(e){}return rt[e]}function ct(e,t){var n;return e&&((n=i(t)?lt(e):ut(e,t))?tt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),tt._abbr}function ut(e,t){if(null===t)return delete rt[e],null;var n,o=ot;if(t.abbr=e,null!=rt[e])S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=rt[e]._config;else if(null!=t.parentLocale)if(null!=rt[t.parentLocale])o=rt[t.parentLocale]._config;else{if(null==(n=st(t.parentLocale)))return it[t.parentLocale]||(it[t.parentLocale]=[]),it[t.parentLocale].push({name:e,config:t}),null;o=n._config}return rt[e]=new D(O(o,t)),it[e]&&it[e].forEach(function(e){ut(e.name,e.config)}),ct(e),rt[e]}function lt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return tt;if(!a(e)){if(t=st(e))return t;e=[e]}return function(e){for(var t,n,o,r,i=0;i=t&&A(r,n,!0)>=t-1)break;t--}i++}return tt}(e)}function dt(e){var t,n=e._a;return n&&-2===f(e).overflow&&(t=n[_e]<0||11De(n[fe],n[_e])?he:n[Me]<0||24Re(n,i,a)?f(e)._overflowWeeks=!0:null!=c?f(e)._overflowWeekday=!0:(s=Xe(n,o,r,i,a),e._a[fe]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(i=pt(e._a[fe],o[fe]),(e._dayOfYear>Ae(i)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),n=Be(i,0,e._dayOfYear),e._a[_e]=n.getUTCMonth(),e._a[he]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=o[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Me]&&0===e._a[be]&&0===e._a[ye]&&0===e._a[ge]&&(e._nextDay=!0,e._a[Me]=0),e._d=(e._useUTC?Be:function(e,t,n,o,r,i,a){var s;return e<100&&0<=e?(s=new Date(e+400,t,n,o,r,i,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,o,r,i,a),s}).apply(null,a),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Me]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(f(e).weekdayMismatch=!0)}}var ft=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_t=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ht=/Z|[+-]\d\d(?::?\d\d)?/,Mt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],bt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],yt=/^\/?Date\((\-?\d+)/i;function gt(e){var t,n,o,r,i,a,s=e._i,c=ft.exec(s)||_t.exec(s);if(c){for(f(e).iso=!0,t=0,n=Mt.length;tn.valueOf():n.valueOf()this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},fn.isLocal=function(){return!!this.isValid()&&!this._isUTC},fn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},fn.isUtc=Xt,fn.isUTC=Xt,fn.zoneAbbr=function(){return this._isUTC?"UTC":""},fn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},fn.dates=n("dates accessor is deprecated. Use date instead.",cn),fn.months=n("months accessor is deprecated. Use month instead",qe),fn.years=n("years accessor is deprecated. Use year instead",ke),fn.zone=n("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),fn.isDSTShifted=n("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!i(this._isDSTShifted))return this._isDSTShifted;var e={};if(b(e,this),(e=kt(e))._a){var t=e._isUTC?d(e._a):wt(e._a);this._isDSTShifted=this.isValid()&&0>>0,o=0;oAe(e)?(i=e+1,s-Ae(e)):(i=e,s),{year:i,dayOfYear:a}}function Pe(e,t,n){var o,r,i=He(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?o=a+Re(r=e.year()-1,t,n):a>Re(e.year(),t,n)?(o=a-Re(e.year(),t,n),r=e.year()+1):(r=e.year(),o=a),{week:o,year:r}}function Re(e,t,n){var o=He(e,t,n),r=He(e+1,t,n);return(Ae(e)-o+r)/7}P("w",["ww",2],"wo","week"),P("W",["WW",2],"Wo","isoWeek"),Y("week","w"),Y("isoWeek","W"),W("week",5),W("isoWeek",5),ce("w",J),ce("ww",J,U),ce("W",J),ce("WW",J,U),me(["w","ww","W","WW"],function(e,t,n,o){t[o.substr(0,1)]=v(e)});function Ie(e,t){return e.slice(t,7).concat(e.slice(0,t))}P("d",0,"do","day"),P("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),P("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),P("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),P("e",0,0,"weekday"),P("E",0,0,"isoWeekday"),Y("day","d"),Y("weekday","e"),Y("isoWeekday","E"),W("day",11),W("weekday",11),W("isoWeekday",11),ce("d",J),ce("e",J),ce("E",J),ce("dd",function(e,t){return t.weekdaysMinRegex(e)}),ce("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ce("dddd",function(e,t){return t.weekdaysRegex(e)}),me(["dd","ddd","dddd"],function(e,t,n,o){var r=n._locale.weekdaysParse(e,o,n._strict);null!=r?t.d=r:f(n).invalidWeekday=e}),me(["d","e","E"],function(e,t,n,o){t[o]=v(e)});var Fe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var Ue="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Ke="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var Ve=ae;var Ge=ae;var Je=ae;function Qe(){function e(e,t){return t.length-e.length}var t,n,o,r,i,a=[],s=[],c=[],u=[];for(t=0;t<7;t++)n=d([2e3,1]).day(t),o=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),i=this.weekdays(n,""),a.push(o),s.push(r),c.push(i),u.push(o),u.push(r),u.push(i);for(a.sort(e),s.sort(e),c.sort(e),u.sort(e),t=0;t<7;t++)s[t]=le(s[t]),c[t]=le(c[t]),u[t]=le(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function $e(){return this.hours()%12||12}function Ze(e,t){P(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function et(e,t){return t._meridiemParse}P("H",["HH",2],0,"hour"),P("h",["hh",2],0,$e),P("k",["kk",2],0,function(){return this.hours()||24}),P("hmm",0,0,function(){return""+$e.apply(this)+j(this.minutes(),2)}),P("hmmss",0,0,function(){return""+$e.apply(this)+j(this.minutes(),2)+j(this.seconds(),2)}),P("Hmm",0,0,function(){return""+this.hours()+j(this.minutes(),2)}),P("Hmmss",0,0,function(){return""+this.hours()+j(this.minutes(),2)+j(this.seconds(),2)}),Ze("a",!0),Ze("A",!1),Y("hour","h"),W("hour",13),ce("a",et),ce("A",et),ce("H",J),ce("h",J),ce("k",J),ce("HH",J,U),ce("hh",J,U),ce("kk",J,U),ce("hmm",Q),ce("hmmss",$),ce("Hmm",Q),ce("Hmmss",$),pe(["H","HH"],Me),pe(["k","kk"],function(e,t,n){var o=v(e);t[Me]=24===o?0:o}),pe(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),pe(["h","hh"],function(e,t,n){t[Me]=v(e),f(n).bigHour=!0}),pe("hmm",function(e,t,n){var o=e.length-2;t[Me]=v(e.substr(0,o)),t[be]=v(e.substr(o)),f(n).bigHour=!0}),pe("hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[Me]=v(e.substr(0,o)),t[be]=v(e.substr(o,2)),t[ye]=v(e.substr(r)),f(n).bigHour=!0}),pe("Hmm",function(e,t,n){var o=e.length-2;t[Me]=v(e.substr(0,o)),t[be]=v(e.substr(o))}),pe("Hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[Me]=v(e.substr(0,o)),t[be]=v(e.substr(o,2)),t[ye]=v(e.substr(r))});var tt,nt=Se("Hours",!0),ot={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ye,monthsShort:xe,week:{dow:0,doy:6},weekdays:Fe,weekdaysMin:Ke,weekdaysShort:Ue,meridiemParse:/[ap]\.?m?\.?/i},rt={},it={};function at(e){return e?e.toLowerCase().replace("_","-"):e}function st(e){var t=null;if(!rt[e]&&void 0!==Gn&&Gn&&Gn.exports)try{t=tt._abbr;Qn("./node_modules/moment/locale sync recursive ^\\.\\/.*$")("./"+e),ct(t)}catch(e){}return rt[e]}function ct(e,t){var n;return e&&((n=i(t)?lt(e):ut(e,t))?tt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),tt._abbr}function ut(e,t){if(null===t)return delete rt[e],null;var n,o=ot;if(t.abbr=e,null!=rt[e])S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=rt[e]._config;else if(null!=t.parentLocale)if(null!=rt[t.parentLocale])o=rt[t.parentLocale]._config;else{if(null==(n=st(t.parentLocale)))return it[t.parentLocale]||(it[t.parentLocale]=[]),it[t.parentLocale].push({name:e,config:t}),null;o=n._config}return rt[e]=new D(O(o,t)),it[e]&&it[e].forEach(function(e){ut(e.name,e.config)}),ct(e),rt[e]}function lt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return tt;if(!a(e)){if(t=st(e))return t;e=[e]}return function(e){for(var t,n,o,r,i=0;i=t&&A(r,n,!0)>=t-1)break;t--}i++}return tt}(e)}function dt(e){var t,n=e._a;return n&&-2===f(e).overflow&&(t=n[_e]<0||11De(n[fe],n[_e])?he:n[Me]<0||24Re(n,i,a)?f(e)._overflowWeeks=!0:null!=c?f(e)._overflowWeekday=!0:(s=Xe(n,o,r,i,a),e._a[fe]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(i=pt(e._a[fe],o[fe]),(e._dayOfYear>Ae(i)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),n=Be(i,0,e._dayOfYear),e._a[_e]=n.getUTCMonth(),e._a[he]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=o[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Me]&&0===e._a[be]&&0===e._a[ye]&&0===e._a[ge]&&(e._nextDay=!0,e._a[Me]=0),e._d=(e._useUTC?Be:function(e,t,n,o,r,i,a){var s;return e<100&&0<=e?(s=new Date(e+400,t,n,o,r,i,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,o,r,i,a),s}).apply(null,a),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Me]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(f(e).weekdayMismatch=!0)}}var ft=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_t=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ht=/Z|[+-]\d\d(?::?\d\d)?/,Mt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],bt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],yt=/^\/?Date\((\-?\d+)/i;function gt(e){var t,n,o,r,i,a,s=e._i,c=ft.exec(s)||_t.exec(s);if(c){for(f(e).iso=!0,t=0,n=Mt.length;tn.valueOf():n.valueOf()this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},fn.isLocal=function(){return!!this.isValid()&&!this._isUTC},fn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},fn.isUtc=Xt,fn.isUTC=Xt,fn.zoneAbbr=function(){return this._isUTC?"UTC":""},fn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},fn.dates=n("dates accessor is deprecated. Use date instead.",cn),fn.months=n("months accessor is deprecated. Use month instead",qe),fn.years=n("years accessor is deprecated. Use year instead",ke),fn.zone=n("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),fn.isDSTShifted=n("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!i(this._isDSTShifted))return this._isDSTShifted;var e={};if(b(e,this),(e=kt(e))._a){var t=e._isUTC?d(e._a):wt(e._a);this._isDSTShifted=this.isValid()&&0":">"},a=/[&"'<>]/g;function s(e,t){return n.hasOwnProperty.call(e,t)}function c(e){return o[e]}function u(e,t,n){var o,r,i;if(e instanceof Error&&(e=(r=e).name+": "+r.message),Object.setPrototypeOf?(o=new Error(e),Object.setPrototypeOf(o,u.prototype)):(o=this,Object.defineProperty(o,"message",{enumerable:!1,writable:!0,value:e})),Object.defineProperty(o,"name",{value:"Template render error"}),Error.captureStackTrace&&Error.captureStackTrace(o,this.constructor),r){var a=Object.getOwnPropertyDescriptor(r,"stack");i=(i=a&&(a.get||function(){return a.value}))||function(){return r.stack}}else{var s=new Error(e).stack;i=function(){return s}}return Object.defineProperty(o,"stack",{get:function(){return i.call(o)}}),Object.defineProperty(o,"cause",{value:r}),o.lineno=t,o.colno=n,o.firstUpdate=!0,o.Update=function(e){var t="("+(e||"unknown path")+")";return this.firstUpdate&&(this.lineno&&this.colno?t+=" [Line "+this.lineno+", Column "+this.colno+"]":this.lineno&&(t+=" [Line "+this.lineno+"]")),t+="\n ",this.firstUpdate&&(t+=" "),this.message=t+(this.message||""),this.firstUpdate=!1,this},o}function l(e){return"[object Function]"===n.toString.call(e)}function d(e){return"[object Array]"===n.toString.call(e)}function p(e){return"[object String]"===n.toString.call(e)}function m(e){return"[object Object]"===n.toString.call(e)}function f(e){return Array.prototype.slice.call(e)}function _(e,t,n){return Array.prototype.indexOf.call(e||[],t,n)}function h(e){var t=[];for(var n in e)s(e,n)&&t.push(n);return t}(r=e.exports={}).hasOwnProp=s,r._prettifyError=function(e,t,n){if(n.Update||(n=new r.TemplateError(n)),n.Update(e),!t){var o=n;(n=new Error(o.message)).name=o.name}return n},Object.setPrototypeOf?Object.setPrototypeOf(u.prototype,Error.prototype):u.prototype=Object.create(Error.prototype,{constructor:{value:u}}),r.TemplateError=u,r.escape=function(e){return e.replace(a,c)},r.isFunction=l,r.isArray=d,r.isString=p,r.isObject=m,r.groupBy=function(e,t){for(var n={},o=l(t)?t:function(e){return e[t]},r=0;rc.length)o=t.slice(0,c.length),t.slice(o.length,r).forEach(function(e,t){t",r+2),o(n,r+4)})}}}},function(e,t){},function(e,t,n){"use strict";var s=n(8),c=n(17),p=n(3),o=n(0).TemplateError,m=n(2).Frame,r=n(1).Obj,i={"==":"==","===":"===","!=":"!=","!==":"!==","<":"<",">":">","<=":"<=",">=":">="},u=function(e){function t(){return e.apply(this,arguments)||this}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e);var n=t.prototype;return n.init=function(e,t){this.templateName=e,this.codebuf=[],this.lastId=0,this.buffer=null,this.bufferStack=[],this._scopeClosers="",this.inBlock=!1,this.throwOnUndefined=t},n.fail=function(e,t,n){throw void 0!==t&&(t+=1),void 0!==n&&(n+=1),new o(e,t,n)},n._pushBuffer=function(){var e=this._tmpid();return this.bufferStack.push(this.buffer),this.buffer=e,this._emit("var "+this.buffer+' = "";'),e},n._popBuffer=function(){this.buffer=this.bufferStack.pop()},n._emit=function(e){this.codebuf.push(e)},n._emitLine=function(e){this._emit(e+"\n")},n._emitLines=function(){for(var t=this,e=arguments.length,n=new Array(e),o=0;o","<=",">="],t=this.parseConcat(),n=[];;){var o=this.nextToken();if(!o)break;if(-1===e.indexOf(o.value)){this.pushToken(o);break}n.push(new d.CompareOperand(o.lineno,o.colno,this.parseConcat(),o.value))}return n.length?new d.Compare(n[0].lineno,n[0].colno,t,n):t},n.parseConcat=function(){for(var e=this.parseAdd();this.skipValue(s.TOKEN_TILDE,"~");){var t=this.parseAdd();e=new d.Concat(e.lineno,e.colno,e,t)}return e},n.parseAdd=function(){for(var e=this.parseSub();this.skipValue(s.TOKEN_OPERATOR,"+");){var t=this.parseSub();e=new d.Add(e.lineno,e.colno,e,t)}return e},n.parseSub=function(){for(var e=this.parseMul();this.skipValue(s.TOKEN_OPERATOR,"-");){var t=this.parseMul();e=new d.Sub(e.lineno,e.colno,e,t)}return e},n.parseMul=function(){for(var e=this.parseDiv();this.skipValue(s.TOKEN_OPERATOR,"*");){var t=this.parseDiv();e=new d.Mul(e.lineno,e.colno,e,t)}return e},n.parseDiv=function(){for(var e=this.parseFloorDiv();this.skipValue(s.TOKEN_OPERATOR,"/");){var t=this.parseFloorDiv();e=new d.Div(e.lineno,e.colno,e,t)}return e},n.parseFloorDiv=function(){for(var e=this.parseMod();this.skipValue(s.TOKEN_OPERATOR,"//");){var t=this.parseMod();e=new d.FloorDiv(e.lineno,e.colno,e,t)}return e},n.parseMod=function(){for(var e=this.parsePow();this.skipValue(s.TOKEN_OPERATOR,"%");){var t=this.parsePow();e=new d.Mod(e.lineno,e.colno,e,t)}return e},n.parsePow=function(){for(var e=this.parseUnary();this.skipValue(s.TOKEN_OPERATOR,"**");){var t=this.parseUnary();e=new d.Pow(e.lineno,e.colno,e,t)}return e},n.parseUnary=function(e){var t,n=this.peekToken();return t=this.skipValue(s.TOKEN_OPERATOR,"-")?new d.Neg(n.lineno,n.colno,this.parseUnary(!0)):this.skipValue(s.TOKEN_OPERATOR,"+")?new d.Pos(n.lineno,n.colno,this.parseUnary(!0)):this.parsePrimary(),e||(t=this.parseFilter(t)),t},n.parsePrimary=function(e){var t,n=this.nextToken(),o=null;if(n?n.type===s.TOKEN_STRING?t=n.value:n.type===s.TOKEN_INT?t=parseInt(n.value,10):n.type===s.TOKEN_FLOAT?t=parseFloat(n.value):n.type===s.TOKEN_BOOLEAN?"true"===n.value?t=!0:"false"===n.value?t=!1:this.fail("invalid boolean: "+n.value,n.lineno,n.colno):n.type===s.TOKEN_NONE?t=null:n.type===s.TOKEN_REGEX&&(t=new RegExp(n.value.body,n.value.flags)):this.fail("expected expression, got end of file"),o=void 0!==t?new d.Literal(n.lineno,n.colno,t):n.type===s.TOKEN_SYMBOL?new d.Symbol(n.lineno,n.colno,n.value):(this.pushToken(n),this.parseAggregate()),e||(o=this.parsePostfix(o)),o)return o;throw this.error("unexpected token: "+n.value,n.lineno,n.colno)},n.parseFilterName=function(){for(var e=this.expect(s.TOKEN_SYMBOL),t=e.value;this.skipValue(s.TOKEN_OPERATOR,".");)t+="."+this.expect(s.TOKEN_SYMBOL).value;return new d.Symbol(e.lineno,e.colno,t)},n.parseFilterArgs=function(e){return this.peekToken().type!==s.TOKEN_LEFT_PAREN?[]:this.parsePostfix(e).args.children},n.parseFilter=function(e){for(;this.skip(s.TOKEN_PIPE);){var t=this.parseFilterName();e=new d.Filter(t.lineno,t.colno,t,new d.NodeList(t.lineno,t.colno,[e].concat(this.parseFilterArgs(e))))}return e},n.parseFilterStatement=function(){var e=this.peekToken();this.skipSymbol("filter")||this.fail("parseFilterStatement: expected filter");var t=this.parseFilterName(),n=this.parseFilterArgs(t);this.advanceAfterBlockEnd(e.value);var o=new d.Capture(t.lineno,t.colno,this.parseUntilBlocks("endfilter"));this.advanceAfterBlockEnd();var r=new d.Filter(t.lineno,t.colno,t,new d.NodeList(t.lineno,t.colno,[o].concat(n)));return new d.Output(t.lineno,t.colno,[r])},n.parseAggregate=function(){var e,t=this.nextToken();switch(t.type){case s.TOKEN_LEFT_PAREN:e=new d.Group(t.lineno,t.colno);break;case s.TOKEN_LEFT_BRACKET:e=new d.Array(t.lineno,t.colno);break;case s.TOKEN_LEFT_CURLY:e=new d.Dict(t.lineno,t.colno);break;default:return null}for(;;){var n=this.peekToken().type;if(n===s.TOKEN_RIGHT_PAREN||n===s.TOKEN_RIGHT_BRACKET||n===s.TOKEN_RIGHT_CURLY){this.nextToken();break}if(0=!",h="whitespace",M="block-start",b="variable-start",y="variable-end",g="left-paren",L="right-paren",v="left-bracket",A="right-bracket",T="left-curly",z="right-curly";function k(e,t,n,o){return{type:e,value:t,lineno:n,colno:o}}var o=function(){function e(e,t){this.str=e,this.index=0,this.len=e.length,this.lineno=0,this.colno=0,this.in_code=!1;var n=(t=t||{}).tags||{};this.tags={BLOCK_START:n.blockStart||"{%",BLOCK_END:n.blockEnd||"%}",VARIABLE_START:n.variableStart||"{{",VARIABLE_END:n.variableEnd||"}}",COMMENT_START:n.commentStart||"{#",COMMENT_END:n.commentEnd||"#}"},this.trimBlocks=!!t.trimBlocks,this.lstripBlocks=!!t.lstripBlocks}var t=e.prototype;return t.nextToken=function(){var e,t=this.lineno,n=this.colno;if(this.in_code){var o=this.current();if(this.isFinished())return null;if('"'===o||"'"===o)return k("string",this._parseString(o),t,n);if(e=this._extract(" \n\t\r "))return k(h,e,t,n);if((e=this._extractString(this.tags.BLOCK_END))||(e=this._extractString("-"+this.tags.BLOCK_END)))return this.in_code=!1,this.trimBlocks&&("\n"===(o=this.current())?this.forward():"\r"===o&&(this.forward(),"\n"===(o=this.current())?this.forward():this.back())),k("block-end",e,t,n);if((e=this._extractString(this.tags.VARIABLE_END))||(e=this._extractString("-"+this.tags.VARIABLE_END)))return this.in_code=!1,k(y,e,t,n);if("r"===o&&"/"===this.str.charAt(this.index+1)){this.forwardN(2);for(var r="";!this.isFinished();){if("/"===this.current()&&"\\"!==this.previous()){this.forward();break}r+=this.current(),this.forward()}for(var i=["g","i","m","y"],a="";!this.isFinished();){if(!(-1!==i.indexOf(this.current())))break;a+=this.current(),this.forward()}return k("regex",{body:r,flags:a},t,n)}if(-1!==_.indexOf(o)){this.forward();var s,c=["==","===","!=","!==","<=",">=","//","**"],u=o+this.current();switch(-1!==f.indexOf(c,u)&&(this.forward(),o=u,-1!==f.indexOf(c,u+this.current())&&(o=u+this.current(),this.forward())),o){case"(":s=g;break;case")":s=L;break;case"[":s=v;break;case"]":s=A;break;case"{":s=T;break;case"}":s=z;break;case",":s="comma";break;case":":s="colon";break;case"~":s="tilde";break;case"|":s="pipe";break;default:s="operator"}return k(s,o,t,n)}if((e=this._extractUntil(" \n\t\r "+_)).match(/^[-+]?[0-9]+$/))return"."!==this.current()?k("int",e,t,n):(this.forward(),k("float",e+"."+this._extract("0123456789"),t,n));if(e.match(/^(true|false)$/))return k("boolean",e,t,n);if("none"===e)return k("none",e,t,n);if("null"===e)return k("none",e,t,n);if(e)return k("symbol",e,t,n);throw new Error("Unexpected value while parsing: "+e)}var l,d=this.tags.BLOCK_START.charAt(0)+this.tags.VARIABLE_START.charAt(0)+this.tags.COMMENT_START.charAt(0)+this.tags.COMMENT_END.charAt(0);if(this.isFinished())return null;if((e=this._extractString(this.tags.BLOCK_START+"-"))||(e=this._extractString(this.tags.BLOCK_START)))return this.in_code=!0,k(M,e,t,n);if((e=this._extractString(this.tags.VARIABLE_START+"-"))||(e=this._extractString(this.tags.VARIABLE_START)))return this.in_code=!0,k(b,e,t,n);e="";var p=!1;for(this._matches(this.tags.COMMENT_START)&&(p=!0,e=this._extractString(this.tags.COMMENT_START));null!==(l=this._extractUntil(d));){if(e+=l,(this._matches(this.tags.BLOCK_START)||this._matches(this.tags.VARIABLE_START)||this._matches(this.tags.COMMENT_START))&&!p){if(this.lstripBlocks&&this._matches(this.tags.BLOCK_START)&&0this.len?null:this.str.slice(this.index,this.index+e.length)===e},t._extractString=function(e){return this._matches(e)?(this.forwardN(e.length),e):null},t._extractUntil=function(e){return this._extractMatching(!0,e||"")},t._extract=function(e){return this._extractMatching(!1,e)},t._extractMatching=function(e,t){if(this.isFinished())return null;var n=t.indexOf(this.current());if(e&&-1===n||!e&&-1!==n){var o=this.current();this.forward();for(var r=t.indexOf(this.current());(e&&-1===r||!e&&-1!==r)&&!this.isFinished();)o+=this.current(),this.forward(),r=t.indexOf(this.current());return o}return""},t._extractRegex=function(e){var t=this.currentStr().match(e);return t?(this.forwardN(t[0].length),t):null},t.isFinished=function(){return this.index>=this.len},t.forwardN=function(e){for(var t=0;tr&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,function(e){console&&console.warn&&console.warn(e)}(s)}return e}function d(e,t,n){var o={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=function(){for(var e=[],t=0;t=t)return e;var n=t-e.length,o=s.repeat(" ",n/2-n%2),r=s.repeat(" ",n/2);return u.copySafeness(e,o+e+r)},t.default=function(e,t,n){return n?e||t:void 0!==e?e:t},t.dictsort=function(e,r,t){if(!s.isObject(e))throw new s.TemplateError("dictsort filter: val must be an object");var i,n=[];for(var o in e)n.push([o,e[o]]);if(void 0===t||"key"===t)i=0;else{if("value"!==t)throw new s.TemplateError("dictsort filter: You can only sort by either key or value");i=1}return n.sort(function(e,t){var n=e[i],o=t[i];return r||(s.isString(n)&&(n=n.toUpperCase()),s.isString(o)&&(o=o.toUpperCase())),o\n"))},t.random=function(e){return e[Math.floor(Math.random()*e.length)]},t.rejectattr=function(e,t){return e.filter(function(e){return!e[t]})},t.selectattr=function(e,t){return e.filter(function(e){return!!e[t]})},t.replace=function(e,t,n,o){var r=e;if(t instanceof RegExp)return e.replace(t,n);void 0===o&&(o=-1);var i="";if("number"==typeof t)t=""+t;else if("string"!=typeof t)return e;if("number"==typeof e&&(e=""+e),"string"!=typeof e&&!(e instanceof u.SafeString))return e;if(""===t)return i=n+e.split("").join(n)+n,u.copySafeness(e,i);var a=e.indexOf(t);if(0===o||-1===a)return e;for(var s=0,c=0;-1]*>|/gi,"")),o="";return o=t?n.replace(/^ +| +$/gm,"").replace(/ +/g," ").replace(/(\r\n)/g,"\n").replace(/\n\n\n+/g,"\n\n"):n.replace(/\s+/gi," "),u.copySafeness(e,o)},t.title=function(e){var t=(e=a(e,"")).split(" ").map(function(e){return r(e)});return u.copySafeness(e,t.join(" "))},t.trim=c,t.truncate=function(e,t,n,o){var r=e;if(t=t||255,(e=a(e,"")).length<=t)return e;if(n)e=e.substring(0,t);else{var i=e.lastIndexOf(" ",t);-1===i&&(i=t),e=e.substring(0,i)}return e+=null!=o?o:"...",u.copySafeness(r,e)},t.upper=function(e){return(e=a(e,"")).toUpperCase()},t.urlencode=function(e){var o=encodeURIComponent;return s.isString(e)?o(e):(s.isArray(e)?e:s._entries(e)).map(function(e){var t=e[0],n=e[1];return o(t)+"="+o(n)}).join("&")};var l=/^(?:\(|<|<)?(.*?)(?:\.|,|\)|\n|>)?$/,d=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,p=/^https?:\/\/.*$/,m=/^www\./,f=/\.(?:org|net|com)(?:\:|\/|$)/;t.urlize=function(e,r,t){o(r)&&(r=1/0);var i=!0===t?' rel="nofollow"':"";return e.split(/(\s+)/).filter(function(e){return e&&e.length}).map(function(e){var t=e.match(l),n=t?t[1]:e,o=n.substr(0,r);return p.test(n)?'"+o+"":m.test(n)?'"+o+"":d.test(n)?''+n+"":f.test(n)?'"+o+"":e}).join("")},t.wordcount=function(e){var t=(e=a(e,""))?e.match(/\w+/g):null;return t?t.length:null},t.float=function(e,t){var n=parseFloat(e);return o(n)?t:n},t.int=function(e,t){var n=parseInt(e,10);return o(n)?t:n},t.d=t.default,t.e=t.escape},function(e,t,n){"use strict";var o=function(n){function e(e){var t;return(t=n.call(this)||this).precompiled=e||{},t}return function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(e,n),e.prototype.getSource=function(e){return this.precompiled[e]?{src:{type:"code",obj:this.precompiled[e]},path:e}:null},e}(n(6));e.exports={PrecompiledLoader:o}},function(e,t,n){"use strict";var o=n(2).SafeString;t.callable=function(e){return"function"==typeof e},t.defined=function(e){return void 0!==e},t.divisibleby=function(e,t){return e%t==0},t.escaped=function(e){return e instanceof o},t.equalto=function(e,t){return e===t},t.eq=t.equalto,t.sameas=t.equalto,t.even=function(e){return e%2==0},t.falsy=function(e){return!e},t.ge=function(e,t){return t<=e},t.greaterthan=function(e,t){return t=e.length&&(t=0),this.current=e[t],this.current}}}(Array.prototype.slice.call(arguments))},joiner:function(e){return function(t){t=t||",";var n=!0;return function(){var e=n?"":t;return n=!1,e}}(e)}}}},function(e,t,n){var o=n(4);e.exports=function(n,e){function t(e,t){if(this.name=e,this.path=e,this.defaultEngine=t.defaultEngine,this.ext=o.extname(e),!this.ext&&!this.defaultEngine)throw new Error("No default engine was specified and no extension was provided.");this.ext||(this.name+=this.ext=("."!==this.defaultEngine[0]?".":"")+this.defaultEngine)}return t.prototype.render=function(e,t){n.render(this.name,e,t)},e.set("view",t),e.set("nunjucksEnv",n),n}},function(e,t,n){"use strict";var u=n(4),l=n(4),a=n(0)._prettifyError,s=n(5),d=n(7).Environment,p=n(24);function m(t,e){return!!Array.isArray(e)&&e.some(function(e){return t.match(e)})}function f(e,t){(t=t||{}).isString=!0;var n=t.env||new d([]),o=t.wrapper||p;if(!t.name)throw new Error('the "name" option is required when compiling a string');return o([_(e,t.name,n)],t)}function _(e,t,n){var o,r=(n=n||new d([])).asyncFilters,i=n.extensionsList;t=t.replace(/\\/g,"/");try{o=s.compile(e,r,i,t,n.opts)}catch(e){throw a(t,!1,e)}return{name:t,template:o}}e.exports={precompile:function(a,s){var e=(s=s||{}).env||new d([]),t=s.wrapper||p;if(s.isString)return f(a,s);var n=u.existsSync(a)&&u.statSync(a),o=[],c=[];if(n.isFile())o.push(_(u.readFileSync(a,"utf-8"),s.name||a,e));else if(n.isDirectory()){!function r(i){u.readdirSync(i).forEach(function(e){var t=l.join(i,e),n=t.substr(l.join(a,"/").length),o=u.statSync(t);o&&o.isDirectory()?m(n+="/",s.exclude)||r(t):m(n,s.include)&&c.push(t)})}(a);for(var r=0;r=this.length||e<0)throw new Error("KeyError");return this.splice(e,1)},append:function(e){return this.push(e)},remove:function(e){for(var t=0;te.length)&&!(0":">"},a=/[&"'<>]/g;function s(e,t){return n.hasOwnProperty.call(e,t)}function c(e){return o[e]}function u(e,t,n){var o,r,i;if(e instanceof Error&&(e=(r=e).name+": "+r.message),Object.setPrototypeOf?(o=new Error(e),Object.setPrototypeOf(o,u.prototype)):(o=this,Object.defineProperty(o,"message",{enumerable:!1,writable:!0,value:e})),Object.defineProperty(o,"name",{value:"Template render error"}),Error.captureStackTrace&&Error.captureStackTrace(o,this.constructor),r){var a=Object.getOwnPropertyDescriptor(r,"stack");i=(i=a&&(a.get||function(){return a.value}))||function(){return r.stack}}else{var s=new Error(e).stack;i=function(){return s}}return Object.defineProperty(o,"stack",{get:function(){return i.call(o)}}),Object.defineProperty(o,"cause",{value:r}),o.lineno=t,o.colno=n,o.firstUpdate=!0,o.Update=function(e){var t="("+(e||"unknown path")+")";return this.firstUpdate&&(this.lineno&&this.colno?t+=" [Line "+this.lineno+", Column "+this.colno+"]":this.lineno&&(t+=" [Line "+this.lineno+"]")),t+="\n ",this.firstUpdate&&(t+=" "),this.message=t+(this.message||""),this.firstUpdate=!1,this},o}function l(e){return"[object Function]"===n.toString.call(e)}function d(e){return"[object Array]"===n.toString.call(e)}function p(e){return"[object String]"===n.toString.call(e)}function m(e){return"[object Object]"===n.toString.call(e)}function f(e){return Array.prototype.slice.call(e)}function _(e,t,n){return Array.prototype.indexOf.call(e||[],t,n)}function h(e){var t=[];for(var n in e)s(e,n)&&t.push(n);return t}(r=e.exports={}).hasOwnProp=s,r._prettifyError=function(e,t,n){if(n.Update||(n=new r.TemplateError(n)),n.Update(e),!t){var o=n;(n=new Error(o.message)).name=o.name}return n},Object.setPrototypeOf?Object.setPrototypeOf(u.prototype,Error.prototype):u.prototype=Object.create(Error.prototype,{constructor:{value:u}}),r.TemplateError=u,r.escape=function(e){return e.replace(a,c)},r.isFunction=l,r.isArray=d,r.isString=p,r.isObject=m,r.groupBy=function(e,t){for(var n={},o=l(t)?t:function(e){return e[t]},r=0;rc.length)o=t.slice(0,c.length),t.slice(o.length,r).forEach(function(e,t){t",r+2),o(n,r+4)})}}}},function(e,t){},function(e,t,n){"use strict";var s=n(8),c=n(17),p=n(3),o=n(0).TemplateError,m=n(2).Frame,r=n(1).Obj,i={"==":"==","===":"===","!=":"!=","!==":"!==","<":"<",">":">","<=":"<=",">=":">="},u=function(e){function t(){return e.apply(this,arguments)||this}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e);var n=t.prototype;return n.init=function(e,t){this.templateName=e,this.codebuf=[],this.lastId=0,this.buffer=null,this.bufferStack=[],this._scopeClosers="",this.inBlock=!1,this.throwOnUndefined=t},n.fail=function(e,t,n){throw void 0!==t&&(t+=1),void 0!==n&&(n+=1),new o(e,t,n)},n._pushBuffer=function(){var e=this._tmpid();return this.bufferStack.push(this.buffer),this.buffer=e,this._emit("var "+this.buffer+' = "";'),e},n._popBuffer=function(){this.buffer=this.bufferStack.pop()},n._emit=function(e){this.codebuf.push(e)},n._emitLine=function(e){this._emit(e+"\n")},n._emitLines=function(){for(var t=this,e=arguments.length,n=new Array(e),o=0;o","<=",">="],t=this.parseConcat(),n=[];;){var o=this.nextToken();if(!o)break;if(-1===e.indexOf(o.value)){this.pushToken(o);break}n.push(new d.CompareOperand(o.lineno,o.colno,this.parseConcat(),o.value))}return n.length?new d.Compare(n[0].lineno,n[0].colno,t,n):t},n.parseConcat=function(){for(var e=this.parseAdd();this.skipValue(s.TOKEN_TILDE,"~");){var t=this.parseAdd();e=new d.Concat(e.lineno,e.colno,e,t)}return e},n.parseAdd=function(){for(var e=this.parseSub();this.skipValue(s.TOKEN_OPERATOR,"+");){var t=this.parseSub();e=new d.Add(e.lineno,e.colno,e,t)}return e},n.parseSub=function(){for(var e=this.parseMul();this.skipValue(s.TOKEN_OPERATOR,"-");){var t=this.parseMul();e=new d.Sub(e.lineno,e.colno,e,t)}return e},n.parseMul=function(){for(var e=this.parseDiv();this.skipValue(s.TOKEN_OPERATOR,"*");){var t=this.parseDiv();e=new d.Mul(e.lineno,e.colno,e,t)}return e},n.parseDiv=function(){for(var e=this.parseFloorDiv();this.skipValue(s.TOKEN_OPERATOR,"/");){var t=this.parseFloorDiv();e=new d.Div(e.lineno,e.colno,e,t)}return e},n.parseFloorDiv=function(){for(var e=this.parseMod();this.skipValue(s.TOKEN_OPERATOR,"//");){var t=this.parseMod();e=new d.FloorDiv(e.lineno,e.colno,e,t)}return e},n.parseMod=function(){for(var e=this.parsePow();this.skipValue(s.TOKEN_OPERATOR,"%");){var t=this.parsePow();e=new d.Mod(e.lineno,e.colno,e,t)}return e},n.parsePow=function(){for(var e=this.parseUnary();this.skipValue(s.TOKEN_OPERATOR,"**");){var t=this.parseUnary();e=new d.Pow(e.lineno,e.colno,e,t)}return e},n.parseUnary=function(e){var t,n=this.peekToken();return t=this.skipValue(s.TOKEN_OPERATOR,"-")?new d.Neg(n.lineno,n.colno,this.parseUnary(!0)):this.skipValue(s.TOKEN_OPERATOR,"+")?new d.Pos(n.lineno,n.colno,this.parseUnary(!0)):this.parsePrimary(),e||(t=this.parseFilter(t)),t},n.parsePrimary=function(e){var t,n=this.nextToken(),o=null;if(n?n.type===s.TOKEN_STRING?t=n.value:n.type===s.TOKEN_INT?t=parseInt(n.value,10):n.type===s.TOKEN_FLOAT?t=parseFloat(n.value):n.type===s.TOKEN_BOOLEAN?"true"===n.value?t=!0:"false"===n.value?t=!1:this.fail("invalid boolean: "+n.value,n.lineno,n.colno):n.type===s.TOKEN_NONE?t=null:n.type===s.TOKEN_REGEX&&(t=new RegExp(n.value.body,n.value.flags)):this.fail("expected expression, got end of file"),o=void 0!==t?new d.Literal(n.lineno,n.colno,t):n.type===s.TOKEN_SYMBOL?new d.Symbol(n.lineno,n.colno,n.value):(this.pushToken(n),this.parseAggregate()),e||(o=this.parsePostfix(o)),o)return o;throw this.error("unexpected token: "+n.value,n.lineno,n.colno)},n.parseFilterName=function(){for(var e=this.expect(s.TOKEN_SYMBOL),t=e.value;this.skipValue(s.TOKEN_OPERATOR,".");)t+="."+this.expect(s.TOKEN_SYMBOL).value;return new d.Symbol(e.lineno,e.colno,t)},n.parseFilterArgs=function(e){return this.peekToken().type!==s.TOKEN_LEFT_PAREN?[]:this.parsePostfix(e).args.children},n.parseFilter=function(e){for(;this.skip(s.TOKEN_PIPE);){var t=this.parseFilterName();e=new d.Filter(t.lineno,t.colno,t,new d.NodeList(t.lineno,t.colno,[e].concat(this.parseFilterArgs(e))))}return e},n.parseFilterStatement=function(){var e=this.peekToken();this.skipSymbol("filter")||this.fail("parseFilterStatement: expected filter");var t=this.parseFilterName(),n=this.parseFilterArgs(t);this.advanceAfterBlockEnd(e.value);var o=new d.Capture(t.lineno,t.colno,this.parseUntilBlocks("endfilter"));this.advanceAfterBlockEnd();var r=new d.Filter(t.lineno,t.colno,t,new d.NodeList(t.lineno,t.colno,[o].concat(n)));return new d.Output(t.lineno,t.colno,[r])},n.parseAggregate=function(){var e,t=this.nextToken();switch(t.type){case s.TOKEN_LEFT_PAREN:e=new d.Group(t.lineno,t.colno);break;case s.TOKEN_LEFT_BRACKET:e=new d.Array(t.lineno,t.colno);break;case s.TOKEN_LEFT_CURLY:e=new d.Dict(t.lineno,t.colno);break;default:return null}for(;;){var n=this.peekToken().type;if(n===s.TOKEN_RIGHT_PAREN||n===s.TOKEN_RIGHT_BRACKET||n===s.TOKEN_RIGHT_CURLY){this.nextToken();break}if(0=!",h="whitespace",M="block-start",b="variable-start",y="variable-end",g="left-paren",L="right-paren",v="left-bracket",A="right-bracket",T="left-curly",z="right-curly";function k(e,t,n,o){return{type:e,value:t,lineno:n,colno:o}}var o=function(){function e(e,t){this.str=e,this.index=0,this.len=e.length,this.lineno=0,this.colno=0,this.in_code=!1;var n=(t=t||{}).tags||{};this.tags={BLOCK_START:n.blockStart||"{%",BLOCK_END:n.blockEnd||"%}",VARIABLE_START:n.variableStart||"{{",VARIABLE_END:n.variableEnd||"}}",COMMENT_START:n.commentStart||"{#",COMMENT_END:n.commentEnd||"#}"},this.trimBlocks=!!t.trimBlocks,this.lstripBlocks=!!t.lstripBlocks}var t=e.prototype;return t.nextToken=function(){var e,t=this.lineno,n=this.colno;if(this.in_code){var o=this.current();if(this.isFinished())return null;if('"'===o||"'"===o)return k("string",this._parseString(o),t,n);if(e=this._extract(" \n\t\r "))return k(h,e,t,n);if((e=this._extractString(this.tags.BLOCK_END))||(e=this._extractString("-"+this.tags.BLOCK_END)))return this.in_code=!1,this.trimBlocks&&("\n"===(o=this.current())?this.forward():"\r"===o&&(this.forward(),"\n"===(o=this.current())?this.forward():this.back())),k("block-end",e,t,n);if((e=this._extractString(this.tags.VARIABLE_END))||(e=this._extractString("-"+this.tags.VARIABLE_END)))return this.in_code=!1,k(y,e,t,n);if("r"===o&&"/"===this.str.charAt(this.index+1)){this.forwardN(2);for(var r="";!this.isFinished();){if("/"===this.current()&&"\\"!==this.previous()){this.forward();break}r+=this.current(),this.forward()}for(var i=["g","i","m","y"],a="";!this.isFinished();){if(!(-1!==i.indexOf(this.current())))break;a+=this.current(),this.forward()}return k("regex",{body:r,flags:a},t,n)}if(-1!==_.indexOf(o)){this.forward();var s,c=["==","===","!=","!==","<=",">=","//","**"],u=o+this.current();switch(-1!==f.indexOf(c,u)&&(this.forward(),o=u,-1!==f.indexOf(c,u+this.current())&&(o=u+this.current(),this.forward())),o){case"(":s=g;break;case")":s=L;break;case"[":s=v;break;case"]":s=A;break;case"{":s=T;break;case"}":s=z;break;case",":s="comma";break;case":":s="colon";break;case"~":s="tilde";break;case"|":s="pipe";break;default:s="operator"}return k(s,o,t,n)}if((e=this._extractUntil(" \n\t\r "+_)).match(/^[-+]?[0-9]+$/))return"."!==this.current()?k("int",e,t,n):(this.forward(),k("float",e+"."+this._extract("0123456789"),t,n));if(e.match(/^(true|false)$/))return k("boolean",e,t,n);if("none"===e)return k("none",e,t,n);if("null"===e)return k("none",e,t,n);if(e)return k("symbol",e,t,n);throw new Error("Unexpected value while parsing: "+e)}var l,d=this.tags.BLOCK_START.charAt(0)+this.tags.VARIABLE_START.charAt(0)+this.tags.COMMENT_START.charAt(0)+this.tags.COMMENT_END.charAt(0);if(this.isFinished())return null;if((e=this._extractString(this.tags.BLOCK_START+"-"))||(e=this._extractString(this.tags.BLOCK_START)))return this.in_code=!0,k(M,e,t,n);if((e=this._extractString(this.tags.VARIABLE_START+"-"))||(e=this._extractString(this.tags.VARIABLE_START)))return this.in_code=!0,k(b,e,t,n);e="";var p=!1;for(this._matches(this.tags.COMMENT_START)&&(p=!0,e=this._extractString(this.tags.COMMENT_START));null!==(l=this._extractUntil(d));){if(e+=l,(this._matches(this.tags.BLOCK_START)||this._matches(this.tags.VARIABLE_START)||this._matches(this.tags.COMMENT_START))&&!p){if(this.lstripBlocks&&this._matches(this.tags.BLOCK_START)&&0this.len?null:this.str.slice(this.index,this.index+e.length)===e},t._extractString=function(e){return this._matches(e)?(this.forwardN(e.length),e):null},t._extractUntil=function(e){return this._extractMatching(!0,e||"")},t._extract=function(e){return this._extractMatching(!1,e)},t._extractMatching=function(e,t){if(this.isFinished())return null;var n=t.indexOf(this.current());if(e&&-1===n||!e&&-1!==n){var o=this.current();this.forward();for(var r=t.indexOf(this.current());(e&&-1===r||!e&&-1!==r)&&!this.isFinished();)o+=this.current(),this.forward(),r=t.indexOf(this.current());return o}return""},t._extractRegex=function(e){var t=this.currentStr().match(e);return t?(this.forwardN(t[0].length),t):null},t.isFinished=function(){return this.index>=this.len},t.forwardN=function(e){for(var t=0;tr&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,function(e){console&&console.warn&&console.warn(e)}(s)}return e}function d(e,t,n){var o={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=function(){for(var e=[],t=0;t=t)return e;var n=t-e.length,o=s.repeat(" ",n/2-n%2),r=s.repeat(" ",n/2);return u.copySafeness(e,o+e+r)},t.default=function(e,t,n){return n?e||t:void 0!==e?e:t},t.dictsort=function(e,r,t){if(!s.isObject(e))throw new s.TemplateError("dictsort filter: val must be an object");var i,n=[];for(var o in e)n.push([o,e[o]]);if(void 0===t||"key"===t)i=0;else{if("value"!==t)throw new s.TemplateError("dictsort filter: You can only sort by either key or value");i=1}return n.sort(function(e,t){var n=e[i],o=t[i];return r||(s.isString(n)&&(n=n.toUpperCase()),s.isString(o)&&(o=o.toUpperCase())),o\n"))},t.random=function(e){return e[Math.floor(Math.random()*e.length)]},t.rejectattr=function(e,t){return e.filter(function(e){return!e[t]})},t.selectattr=function(e,t){return e.filter(function(e){return!!e[t]})},t.replace=function(e,t,n,o){var r=e;if(t instanceof RegExp)return e.replace(t,n);void 0===o&&(o=-1);var i="";if("number"==typeof t)t=""+t;else if("string"!=typeof t)return e;if("number"==typeof e&&(e=""+e),"string"!=typeof e&&!(e instanceof u.SafeString))return e;if(""===t)return i=n+e.split("").join(n)+n,u.copySafeness(e,i);var a=e.indexOf(t);if(0===o||-1===a)return e;for(var s=0,c=0;-1]*>|/gi,"")),o="";return o=t?n.replace(/^ +| +$/gm,"").replace(/ +/g," ").replace(/(\r\n)/g,"\n").replace(/\n\n\n+/g,"\n\n"):n.replace(/\s+/gi," "),u.copySafeness(e,o)},t.title=function(e){var t=(e=a(e,"")).split(" ").map(function(e){return r(e)});return u.copySafeness(e,t.join(" "))},t.trim=c,t.truncate=function(e,t,n,o){var r=e;if(t=t||255,(e=a(e,"")).length<=t)return e;if(n)e=e.substring(0,t);else{var i=e.lastIndexOf(" ",t);-1===i&&(i=t),e=e.substring(0,i)}return e+=null!=o?o:"...",u.copySafeness(r,e)},t.upper=function(e){return(e=a(e,"")).toUpperCase()},t.urlencode=function(e){var o=encodeURIComponent;return s.isString(e)?o(e):(s.isArray(e)?e:s._entries(e)).map(function(e){var t=e[0],n=e[1];return o(t)+"="+o(n)}).join("&")};var l=/^(?:\(|<|<)?(.*?)(?:\.|,|\)|\n|>)?$/,d=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,p=/^https?:\/\/.*$/,m=/^www\./,f=/\.(?:org|net|com)(?:\:|\/|$)/;t.urlize=function(e,r,t){o(r)&&(r=1/0);var i=!0===t?' rel="nofollow"':"";return e.split(/(\s+)/).filter(function(e){return e&&e.length}).map(function(e){var t=e.match(l),n=t?t[1]:e,o=n.substr(0,r);return p.test(n)?'"+o+"":m.test(n)?'"+o+"":d.test(n)?''+n+"":f.test(n)?'"+o+"":e}).join("")},t.wordcount=function(e){var t=(e=a(e,""))?e.match(/\w+/g):null;return t?t.length:null},t.float=function(e,t){var n=parseFloat(e);return o(n)?t:n},t.int=function(e,t){var n=parseInt(e,10);return o(n)?t:n},t.d=t.default,t.e=t.escape},function(e,t,n){"use strict";var o=function(n){function e(e){var t;return(t=n.call(this)||this).precompiled=e||{},t}return function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(e,n),e.prototype.getSource=function(e){return this.precompiled[e]?{src:{type:"code",obj:this.precompiled[e]},path:e}:null},e}(n(6));e.exports={PrecompiledLoader:o}},function(e,t,n){"use strict";var o=n(2).SafeString;t.callable=function(e){return"function"==typeof e},t.defined=function(e){return void 0!==e},t.divisibleby=function(e,t){return e%t==0},t.escaped=function(e){return e instanceof o},t.equalto=function(e,t){return e===t},t.eq=t.equalto,t.sameas=t.equalto,t.even=function(e){return e%2==0},t.falsy=function(e){return!e},t.ge=function(e,t){return t<=e},t.greaterthan=function(e,t){return t=e.length&&(t=0),this.current=e[t],this.current}}}(Array.prototype.slice.call(arguments))},joiner:function(e){return function(t){t=t||",";var n=!0;return function(){var e=n?"":t;return n=!1,e}}(e)}}}},function(e,t,n){var o=n(4);e.exports=function(n,e){function t(e,t){if(this.name=e,this.path=e,this.defaultEngine=t.defaultEngine,this.ext=o.extname(e),!this.ext&&!this.defaultEngine)throw new Error("No default engine was specified and no extension was provided.");this.ext||(this.name+=this.ext=("."!==this.defaultEngine[0]?".":"")+this.defaultEngine)}return t.prototype.render=function(e,t){n.render(this.name,e,t)},e.set("view",t),e.set("nunjucksEnv",n),n}},function(e,t,n){"use strict";var u=n(4),l=n(4),a=n(0)._prettifyError,s=n(5),d=n(7).Environment,p=n(24);function m(t,e){return!!Array.isArray(e)&&e.some(function(e){return t.match(e)})}function f(e,t){(t=t||{}).isString=!0;var n=t.env||new d([]),o=t.wrapper||p;if(!t.name)throw new Error('the "name" option is required when compiling a string');return o([_(e,t.name,n)],t)}function _(e,t,n){var o,r=(n=n||new d([])).asyncFilters,i=n.extensionsList;t=t.replace(/\\/g,"/");try{o=s.compile(e,r,i,t,n.opts)}catch(e){throw a(t,!1,e)}return{name:t,template:o}}e.exports={precompile:function(a,s){var e=(s=s||{}).env||new d([]),t=s.wrapper||p;if(s.isString)return f(a,s);var n=u.existsSync(a)&&u.statSync(a),o=[],c=[];if(n.isFile())o.push(_(u.readFileSync(a,"utf-8"),s.name||a,e));else if(n.isDirectory()){!function r(i){u.readdirSync(i).forEach(function(e){var t=l.join(i,e),n=t.substr(l.join(a,"/").length),o=u.statSync(t);o&&o.isDirectory()?m(n+="/",s.exclude)||r(t):m(n,s.include)&&c.push(t)})}(a);for(var r=0;r=this.length||e<0)throw new Error("KeyError");return this.splice(e,1)},append:function(e){return this.push(e)},remove:function(e){for(var t=0;te.length)&&!(0= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=b-y,T=Math.floor,z=String.fromCharCode;function k(e){throw new RangeError(d[e])}function m(e,t){for(var n=e.length,o=[];n--;)o[n]=t(e[n]);return o}function f(e,t){var n=e.split("@"),o="";return 1>>10&1023|55296),e=56320|1023&e),t+=z(e)}).join("")}function O(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function D(e,t,n){var o=0;for(e=n?T(e/s):e>>1,e+=T(e/t);p*g>>1T((M-f)/a))&&k("overflow"),f+=c*a,!(c<(u=s<=h?y:h+g<=s?g:s-h));s+=b)a>T(M/(l=b-u))&&k("overflow"),a*=l;h=D(f-i,t=p.length+1,0==i),T(f/t)>M-_&&k("overflow"),_+=T(f/t),f%=t,p.splice(f++,0,_)}return w(p)}function h(e){var t,n,o,r,i,a,s,c,u,l,d,p,m,f,_,h=[];for(p=(e=S(e)).length,t=v,i=L,a=n=0;aT((M-n)/(m=o+1))&&k("overflow"),n+=(s-t)*m,t=s,a=0;aM&&k("overflow"),d==t){for(c=n,u=b;!(c<(l=u<=i?y:i+g<=u?g:u-i));u+=b)_=c-l,f=b-l,h.push(z(O(l+_%f,0))),c=T(_/f);h.push(z(O(c,0))),i=D(n,m,o==r),n=0,++o}++n,++t}return h.join("")}if(r={version:"1.4.1",ucs2:{decode:S,encode:w},decode:_,encode:h,toASCII:function(e){return f(e,function(e){return u.test(e)?"xn--"+h(e):e})},toUnicode:function(e){return f(e,function(e){return c.test(e)?_(e.slice(4).toLowerCase()):e})}},"object"==E(W("./node_modules/webpack/buildin/amd-options.js"))&&W("./node_modules/webpack/buildin/amd-options.js"))void 0===(x=function(){return r}.call(q,W,q,N))||(N.exports=x);else if(t&&n)if(N.exports==t)n.exports=r;else for(i in r)r.hasOwnProperty(i)&&(t[i]=r[i]);else e.punycode=r}(void 0)}).call(this,W("./node_modules/webpack/buildin/module.js")(e),W("./node_modules/webpack/buildin/global.js"))},"./node_modules/q/q.js":function(e,r,i){(function(V,G,t){var n,o;function J(e){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)} /*! *