!function(d){function e(e){for(var t,i,n=e[0],o=e[1],r=e[2],a=0,s=[];a<n.length;a++)i=n[a],p[i]&&s.push(p[i][0]),p[i]=0;for(t in o)Object.prototype.hasOwnProperty.call(o,t)&&(d[t]=o[t]);for(u&&u(e);s.length;)s.shift()();return l.push.apply(l,r||[]),c()}function c(){for(var e,t=0;t<l.length;t++){for(var i=l[t],n=!0,o=1;o<i.length;o++){var r=i[o];0!==p[r]&&(n=!1)}n&&(l.splice(t--,1),e=a(a.s=i[0]))}return e}var i={},p={18:0,8:0},l=[];function a(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return d[e].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.m=d,a.c=i,a.d=function(e,t,i){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(a.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)a.d(i,n,function(e){return t[e]}.bind(null,n));return i},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="/themes/admin/static/js";var t=window.webpackJsonp=window.webpackJsonp||[],n=t.push.bind(t);t.push=e,t=t.slice();for(var o=0;o<t.length;o++)e(t[o]);var u=n;l.push(["./CTFd/themes/admin/assets/js/pages/users.js",0,1,2]),c()}({"./CTFd/themes/admin/assets/js/pages/main.js":function(e,t,i){var n=f(i("./CTFd/themes/core/assets/js/CTFd.js")),o=f(i("./node_modules/jquery/dist/jquery.js")),r=f(i("./node_modules/dayjs/dayjs.min.js")),a=f(i("./node_modules/dayjs/plugin/advancedFormat.js")),s=f(i("./node_modules/nunjucks/browser/nunjucks.js")),d=i("./node_modules/howler/dist/howler.js"),c=f(i("./CTFd/themes/core/assets/js/events.js")),p=f(i("./CTFd/themes/core/assets/js/times.js")),l=f(i("./CTFd/themes/admin/assets/js/styles.js")),u=f(i("./CTFd/themes/core/assets/js/helpers.js"));function f(e){return e&&e.__esModule?e:{default:e}}r.default.extend(a.default),n.default.init(window.init),window.CTFd=n.default,window.helpers=u.default,window.$=o.default,window.dayjs=r.default,window.nunjucks=s.default,window.Howl=d.Howl,(0,o.default)(function(){(0,l.default)(),(0,p.default)(),(0,c.default)(n.default.config.urlRoot)})},"./CTFd/themes/admin/assets/js/pages/users.js":function(e,t,i){i("./CTFd/themes/admin/assets/js/pages/main.js");var a=o(i("./CTFd/themes/core/assets/js/CTFd.js")),s=o(i("./node_modules/jquery/dist/jquery.js")),n=i("./CTFd/themes/core/assets/js/ezq.js");function o(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var i;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(i=function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return c(e,t)}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);function n(){}var o=0;return{s:n,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,s=!1;return{s:function(){i=e[Symbol.iterator]()},n:function(){var e=i.next();return a=e.done,e},e:function(e){s=!0,r=e},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw r}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function r(e){var o=(0,s.default)("input[data-user-id]:checked").map(function(){return(0,s.default)(this).data("user-id")}),t=1===o.length?"user":"users";(0,n.ezQuery)({title:"Delete Users",body:"Are you sure you want to delete ".concat(o.length," ").concat(t,"?"),success:function(){var e,t=[],i=d(o);try{for(i.s();!(e=i.n()).done;){var n=e.value;t.push(a.default.fetch("/api/v1/users/".concat(n),{method:"DELETE"}))}}catch(e){i.e(e)}finally{i.f()}Promise.all(t).then(function(e){window.location.reload()})}})}function p(e){var r=(0,s.default)("input[data-user-id]:checked").map(function(){return(0,s.default)(this).data("user-id")});(0,n.ezAlert)({title:"Edit Users",body:(0,s.default)('\n    <form id="users-bulk-edit">\n      <div class="form-group">\n        <label>Verified</label>\n        <select name="verified" data-initial="">\n          <option value="">--</option>\n          <option value="true">True</option>\n          <option value="false">False</option>\n        </select>\n      </div>\n      <div class="form-group">\n        <label>Banned</label>\n        <select name="banned" data-initial="">\n          <option value="">--</option>\n          <option value="true">True</option>\n          <option value="false">False</option>\n        </select>\n      </div>\n      <div class="form-group">\n        <label>Hidden</label>\n        <select name="hidden" data-initial="">\n          <option value="">--</option>\n          <option value="true">True</option>\n          <option value="false">False</option>\n        </select>\n      </div>\n    </form>\n    '),button:"Submit",success:function(){var e,t=(0,s.default)("#users-bulk-edit").serializeJSON(!0),i=[],n=d(r);try{for(n.s();!(e=n.n()).done;){var o=e.value;i.push(a.default.fetch("/api/v1/users/".concat(o),{method:"PATCH",body:JSON.stringify(t)}))}}catch(e){n.e(e)}finally{n.f()}Promise.all(i).then(function(e){window.location.reload()})}})}(0,s.default)(function(){(0,s.default)("#users-delete-button").click(r),(0,s.default)("#users-edit-button").click(p)})},"./CTFd/themes/admin/assets/js/styles.js":function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.showMediaLibrary=p,t.bindMarkdownEditor=l,t.bindMarkdownEditors=u,t.default=void 0,i("./node_modules/bootstrap/dist/js/bootstrap.bundle.js");var n=i("./CTFd/themes/core/assets/js/utils.js"),o=c(i("./node_modules/jquery/dist/jquery.js")),r=c(i("./node_modules/easymde/src/js/easymde.js")),a=c(i("./node_modules/vue/dist/vue.esm.browser.js")),s=c(i("./CTFd/themes/admin/assets/js/components/files/MediaLibrary.vue")),d=c(i("./node_modules/highlight.js/lib/index.js"));function c(e){return e&&e.__esModule?e:{default:e}}function p(e){var t=a.default.extend(s.default),i=document.createElement("div");document.querySelector("main").appendChild(i);var n=new t({propsData:{editor:e}}).$mount(i);(0,o.default)("#media-modal").on("hidden.bs.modal",function(e){n.$destroy(),(0,o.default)("#media-modal").remove()}),(0,o.default)("#media-modal").modal()}function l(e){var t;!1===e.hasOwnProperty("mde")&&(t=new r.default({autoDownloadFontAwesome:!1,toolbar:["bold","italic","heading","|","quote","unordered-list","ordered-list","|","link","image",{name:"media",action:function(e){p(e)},className:"fas fa-file-upload",title:"Media Library"},"|","preview","guide"],element:e,initialValue:(0,o.default)(e).val(),forceSync:!0,minHeight:"200px",renderingConfig:{codeSyntaxHighlighting:!0,hljs:d.default}}),e.mde=t,e.codemirror=t.codemirror,(0,o.default)(e).on("change keyup paste",function(){t.codemirror.getDoc().setValue((0,o.default)(e).val()),t.codemirror.refresh()}))}function u(){(0,o.default)("textarea.markdown").each(function(e,t){l(t)})}t.default=function(){(0,o.default)(":input").each(function(){(0,o.default)(this).data("initial",(0,o.default)(this).val())}),(0,o.default)(function(){(0,o.default)("tr[data-href], td[data-href]").click(function(){var e;return getSelection().toString()||(e=(0,o.default)(this).attr("data-href"))&&(window.location=e),!1}),(0,o.default)("[data-checkbox]").click(function(e){(0,o.default)(e.target).is("input[type=checkbox]")||(0,o.default)(this).find("input[type=checkbox]").click(),e.stopImmediatePropagation()}),(0,o.default)("[data-checkbox-all]").on("click change",function(e){var t=(0,o.default)(this).prop("checked"),i=(0,o.default)(this).index()+1;(0,o.default)(this).closest("table").find("tr td:nth-child(".concat(i,") input[type=checkbox]")).prop("checked",t),e.stopImmediatePropagation()}),(0,o.default)("tr[data-href] a, tr[data-href] button").click(function(e){(0,o.default)(this).attr("data-dismiss")||e.stopPropagation()}),(0,o.default)(".page-select").change(function(){var e=new URL(window.location);e.searchParams.set("page",this.value),window.location.href=e.toString()}),(0,o.default)('a[data-toggle="tab"]').on("shown.bs.tab",function(e){sessionStorage.setItem("activeTab",(0,o.default)(e.target).attr("href"))});var e,t=sessionStorage.getItem("activeTab");t&&((e=(0,o.default)('.nav-tabs a[href="'.concat(t,'"], .nav-pills a[href="').concat(t,'"]'))).length?e.tab("show"):sessionStorage.removeItem("activeTab")),u(),(0,n.makeSortableTables)(),(0,o.default)('[data-toggle="tooltip"]').tooltip(),document.querySelectorAll("pre code").forEach(function(e){d.default.highlightBlock(e)})})}},"./CTFd/themes/core/assets/js/CTFd.js":function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(i("./node_modules/jquery/dist/jquery.js")),o=l(i("./node_modules/dayjs/dayjs.min.js")),r=l(i("./node_modules/markdown-it/index.js"));i("./CTFd/themes/core/assets/js/patch.js");var a=l(i("./CTFd/themes/core/assets/js/fetch.js")),s=l(i("./CTFd/themes/core/assets/js/config.js")),d=i("./CTFd/themes/core/assets/js/api.js"),c=l(i("./CTFd/themes/core/assets/js/ezq.js")),p=i("./CTFd/themes/core/assets/js/utils.js");function l(e){return e&&e.__esModule?e:{default:e}}function u(t,e){var i,n=Object.keys(t);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(t),e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)),n}function f(o){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach(function(e){var t,i,n;t=o,n=r[i=e],i in t?Object.defineProperty(t,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[i]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(r,e))})}return o}var m=new d.API("/"),h={},v={ezq:c.default},g={$:n.default,markdown:function(e){var t=f(f({},{html:!0,linkify:!0}),e),i=(0,r.default)(t);return i.renderer.rules.link_open=function(e,t,i,n,o){return e[t].attrPush(["target","_blank"]),o.renderToken(e,t,i)},i},dayjs:o.default},y=!1,j={run:function(e){e(T)}};var _={ajax:{getScript:p.getScript},html:{createHtmlNode:p.createHtmlNode,htmlEntities:p.htmlEntities}},T={init:function(e){y||(y=!0,s.default.urlRoot=e.urlRoot||s.default.urlRoot,s.default.csrfNonce=e.csrfNonce||s.default.csrfNonce,s.default.userMode=e.userMode||s.default.userMode,m.domain=s.default.urlRoot+"/api/v1",h.id=e.userId)},config:s.default,fetch:a.default,user:h,ui:v,utils:_,api:m,lib:g,_internal:{},plugin:j};t.default=T},"./CTFd/themes/core/assets/js/api.js":function(e,t,i){var p=n(i("./CTFd/themes/core/assets/js/fetch.js")),s=n(i("./node_modules/q/q.js"));function n(e){return e&&e.__esModule?e:{default:e}}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=function(){"use strict";function e(e){var t="object"===o(e)?e.domain:e;if(this.domain=t||"",0===this.domain.length)throw new Error("Domain parameter must be specified as a string.")}function a(i,n){return i.$queryParameters&&Object.keys(i.$queryParameters).forEach(function(e){var t=i.$queryParameters[e];n[e]=t}),n}return e.prototype.request=function(e,t,i,n,o,r,a,s){var d=r&&Object.keys(r).length?function(e){var t,i=[];for(t in e)e.hasOwnProperty(t)&&i.push(encodeURIComponent(t)+"="+encodeURIComponent(e[t]));return i.join("&")}(r):null,c=t+(d?"?"+d:"");n&&!Object.keys(n).length&&(n=void 0),(0,p.default)(c,{method:e,headers:o,body:JSON.stringify(n)}).then(function(e){return e.json()}).then(function(e){s.resolve(e)}).catch(function(e){s.reject(e)})},e.prototype.post_award_list=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],n=a(e,n),this.request("POST",i+"/awards",e,{},o,n,{},t),t.promise},e.prototype.delete_award=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/awards/{award_id}".replace("{award_id}",e.awardId),void 0===e.awardId?i.reject(new Error("Missing required  parameter: awardId")):(o=a(e,o),this.request("DELETE",n+t,e,{},r,o,{},i)),i.promise},e.prototype.get_award=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/awards/{award_id}".replace("{award_id}",e.awardId),void 0===e.awardId?i.reject(new Error("Missing required  parameter: awardId")):(o=a(e,o),this.request("GET",n+t,e,{},r,o,{},i)),i.promise},e.prototype.post_challenge_list=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],n=a(e,n),this.request("POST",i+"/challenges",e,{},o,n,{},t),t.promise},e.prototype.get_challenge_list=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],n=a(e,n),this.request("GET",i+"/challenges",e,{},o,n,{},t),t.promise},e.prototype.post_challenge_attempt=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],n=a(e,n),this.request("POST",i+"/challenges/attempt",e,{},o,n,{},t),t.promise},e.prototype.get_challenge_types=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],n=a(e,n),this.request("GET",i+"/challenges/types",e,{},o,n,{},t),t.promise},e.prototype.patch_challenge=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/challenges/{challenge_id}".replace("{challenge_id}",e.challengeId),void 0===e.challengeId?i.reject(new Error("Missing required  parameter: challengeId")):(o=a(e,o),this.request("PATCH",n+t,e,{},r,o,{},i)),i.promise},e.prototype.delete_challenge=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/challenges/{challenge_id}".replace("{challenge_id}",e.challengeId),void 0===e.challengeId?i.reject(new Error("Missing required  parameter: challengeId")):(o=a(e,o),this.request("DELETE",n+t,e,{},r,o,{},i)),i.promise},e.prototype.get_challenge=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/challenges/{challenge_id}".replace("{challenge_id}",e.challengeId),void 0===e.challengeId?i.reject(new Error("Missing required  parameter: challengeId")):(o=a(e,o),this.request("GET",n+t,e,{},r,o,{},i)),i.promise},e.prototype.get_challenge_files=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],void 0!==e.id&&(o.id=e.id),t="/challenges/{challenge_id}/files".replace("{challenge_id}",e.challengeId),void 0===e.challengeId?i.reject(new Error("Missing required  parameter: challengeId")):(o=a(e,o),this.request("GET",n+t,e,{},r,o,{},i)),i.promise},e.prototype.get_challenge_flags=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],void 0!==e.id&&(o.id=e.id),t="/challenges/{challenge_id}/flags".replace("{challenge_id}",e.challengeId),void 0===e.challengeId?i.reject(new Error("Missing required  parameter: challengeId")):(o=a(e,o),this.request("GET",n+t,e,{},r,o,{},i)),i.promise},e.prototype.get_challenge_hints=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],void 0!==e.id&&(o.id=e.id),t="/challenges/{challenge_id}/hints".replace("{challenge_id}",e.challengeId),void 0===e.challengeId?i.reject(new Error("Missing required  parameter: challengeId")):(o=a(e,o),this.request("GET",n+t,e,{},r,o,{},i)),i.promise},e.prototype.get_challenge_solves=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],void 0!==e.id&&(o.id=e.id),t="/challenges/{challenge_id}/solves".replace("{challenge_id}",e.challengeId),void 0===e.challengeId?i.reject(new Error("Missing required  parameter: challengeId")):(o=a(e,o),this.request("GET",n+t,e,{},r,o,{},i)),i.promise},e.prototype.get_challenge_tags=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],void 0!==e.id&&(o.id=e.id),t="/challenges/{challenge_id}/tags".replace("{challenge_id}",e.challengeId),void 0===e.challengeId?i.reject(new Error("Missing required  parameter: challengeId")):(o=a(e,o),this.request("GET",n+t,e,{},r,o,{},i)),i.promise},e.prototype.post_config_list=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],n=a(e,n),this.request("POST",i+"/configs",e,{},o,n,{},t),t.promise},e.prototype.patch_config_list=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],n=a(e,n),this.request("PATCH",i+"/configs",e,{},o,n,{},t),t.promise},e.prototype.get_config_list=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],n=a(e,n),this.request("GET",i+"/configs",e,{},o,n,{},t),t.promise},e.prototype.patch_config=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/configs/{config_key}".replace("{config_key}",e.configKey),void 0===e.configKey?i.reject(new Error("Missing required  parameter: configKey")):(o=a(e,o),this.request("PATCH",n+t,e,{},r,o,{},i)),i.promise},e.prototype.delete_config=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/configs/{config_key}".replace("{config_key}",e.configKey),void 0===e.configKey?i.reject(new Error("Missing required  parameter: configKey")):(o=a(e,o),this.request("DELETE",n+t,e,{},r,o,{},i)),i.promise},e.prototype.get_config=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/configs/{config_key}".replace("{config_key}",e.configKey),void 0===e.configKey?i.reject(new Error("Missing required  parameter: configKey")):(o=a(e,o),this.request("GET",n+t,e,{},r,o,{},i)),i.promise},e.prototype.post_files_list=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],n=a(e,n),this.request("POST",i+"/files",e,{},o,n,{},t),t.promise},e.prototype.get_files_list=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],n=a(e,n),this.request("GET",i+"/files",e,{},o,n,{},t),t.promise},e.prototype.delete_files_detail=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/files/{file_id}".replace("{file_id}",e.fileId),void 0===e.fileId?i.reject(new Error("Missing required  parameter: fileId")):(o=a(e,o),this.request("DELETE",n+t,e,{},r,o,{},i)),i.promise},e.prototype.get_files_detail=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/files/{file_id}".replace("{file_id}",e.fileId),void 0===e.fileId?i.reject(new Error("Missing required  parameter: fileId")):(o=a(e,o),this.request("GET",n+t,e,{},r,o,{},i)),i.promise},e.prototype.post_flag_list=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],n=a(e,n),this.request("POST",i+"/flags",e,{},o,n,{},t),t.promise},e.prototype.get_flag_list=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],n=a(e,n),this.request("GET",i+"/flags",e,{},o,n,{},t),t.promise},e.prototype.get_flag_types=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],n=a(e,n),this.request("GET",i+"/flags/types",e,{},o,n,{},t),t.promise},e.prototype.get_flag_types_1=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/flags/types/{type_name}".replace("{type_name}",e.typeName),void 0===e.typeName?i.reject(new Error("Missing required  parameter: typeName")):(o=a(e,o),this.request("GET",n+t,e,{},r,o,{},i)),i.promise},e.prototype.patch_flag=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/flags/{flag_id}".replace("{flag_id}",e.flagId),void 0===e.flagId?i.reject(new Error("Missing required  parameter: flagId")):(o=a(e,o),this.request("PATCH",n+t,e,{},r,o,{},i)),i.promise},e.prototype.delete_flag=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/flags/{flag_id}".replace("{flag_id}",e.flagId),void 0===e.flagId?i.reject(new Error("Missing required  parameter: flagId")):(o=a(e,o),this.request("DELETE",n+t,e,{},r,o,{},i)),i.promise},e.prototype.get_flag=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/flags/{flag_id}".replace("{flag_id}",e.flagId),void 0===e.flagId?i.reject(new Error("Missing required  parameter: flagId")):(o=a(e,o),this.request("GET",n+t,e,{},r,o,{},i)),i.promise},e.prototype.post_hint_list=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],n=a(e,n),this.request("POST",i+"/hints",e,{},o,n,{},t),t.promise},e.prototype.get_hint_list=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],n=a(e,n),this.request("GET",i+"/hints",e,{},o,n,{},t),t.promise},e.prototype.patch_hint=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/hints/{hint_id}".replace("{hint_id}",e.hintId),void 0===e.hintId?i.reject(new Error("Missing required  parameter: hintId")):(o=a(e,o),this.request("PATCH",n+t,e,{},r,o,{},i)),i.promise},e.prototype.delete_hint=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/hints/{hint_id}".replace("{hint_id}",e.hintId),void 0===e.hintId?i.reject(new Error("Missing required  parameter: hintId")):(o=a(e,o),this.request("DELETE",n+t,e,{},r,o,{},i)),i.promise},e.prototype.get_hint=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/hints/{hint_id}".replace("{hint_id}",e.hintId),void 0===e.hintId?i.reject(new Error("Missing required  parameter: hintId")):(o=a(e,o),this.request("GET",n+t,e,{},r,o,{},i)),i.promise},e.prototype.post_notification_list=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],n=a(e,n),this.request("POST",i+"/notifications",e,{},o,n,{},t),t.promise},e.prototype.get_notification_list=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],n=a(e,n),this.request("GET",i+"/notifications",e,{},o,n,{},t),t.promise},e.prototype.delete_notification=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/notifications/{notification_id}".replace("{notification_id}",e.notificationId),void 0===e.notificationId?i.reject(new Error("Missing required  parameter: notificationId")):(o=a(e,o),this.request("DELETE",n+t,e,{},r,o,{},i)),i.promise},e.prototype.get_notification=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/notifications/{notification_id}".replace("{notification_id}",e.notificationId),void 0===e.notificationId?i.reject(new Error("Missing required  parameter: notificationId")):(o=a(e,o),this.request("GET",n+t,e,{},r,o,{},i)),i.promise},e.prototype.post_page_list=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],n=a(e,n),this.request("POST",i+"/pages",e,{},o,n,{},t),t.promise},e.prototype.get_page_list=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],n=a(e,n),this.request("GET",i+"/pages",e,{},o,n,{},t),t.promise},e.prototype.patch_page_detail=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/pages/{page_id}".replace("{page_id}",e.pageId),void 0===e.pageId?i.reject(new Error("Missing required  parameter: pageId")):(o=a(e,o),this.request("PATCH",n+t,e,{},r,o,{},i)),i.promise},e.prototype.delete_page_detail=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/pages/{page_id}".replace("{page_id}",e.pageId),void 0===e.pageId?i.reject(new Error("Missing required  parameter: pageId")):(o=a(e,o),this.request("DELETE",n+t,e,{},r,o,{},i)),i.promise},e.prototype.get_page_detail=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/pages/{page_id}".replace("{page_id}",e.pageId),void 0===e.pageId?i.reject(new Error("Missing required  parameter: pageId")):(o=a(e,o),this.request("GET",n+t,e,{},r,o,{},i)),i.promise},e.prototype.get_scoreboard_list=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],n=a(e,n),this.request("GET",i+"/scoreboard",e,{},o,n,{},t),t.promise},e.prototype.get_scoreboard_detail=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/scoreboard/top/{count}".replace("{count}",e.count),void 0===e.count?i.reject(new Error("Missing required  parameter: count")):(o=a(e,o),this.request("GET",n+t,e,{},r,o,{},i)),i.promise},e.prototype.get_challenge_solve_statistics=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],n=a(e,n),this.request("GET",i+"/statistics/challenges/solves",e,{},o,n,{},t),t.promise},e.prototype.get_challenge_solve_percentages=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],n=a(e,n),this.request("GET",i+"/statistics/challenges/solves/percentages",e,{},o,n,{},t),t.promise},e.prototype.get_challenge_property_counts=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/statistics/challenges/{column}".replace("{column}",e.column),void 0===e.column?i.reject(new Error("Missing required  parameter: column")):(o=a(e,o),this.request("GET",n+t,e,{},r,o,{},i)),i.promise},e.prototype.get_submission_property_counts=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/statistics/submissions/{column}".replace("{column}",e.column),void 0===e.column?i.reject(new Error("Missing required  parameter: column")):(o=a(e,o),this.request("GET",n+t,e,{},r,o,{},i)),i.promise},e.prototype.get_team_statistics=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],n=a(e,n),this.request("GET",i+"/statistics/teams",e,{},o,n,{},t),t.promise},e.prototype.get_user_statistics=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],n=a(e,n),this.request("GET",i+"/statistics/users",e,{},o,n,{},t),t.promise},e.prototype.get_user_property_counts=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/statistics/users/{column}".replace("{column}",e.column),void 0===e.column?i.reject(new Error("Missing required  parameter: column")):(o=a(e,o),this.request("GET",n+t,e,{},r,o,{},i)),i.promise},e.prototype.post_submissions_list=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],n=a(e,n),this.request("POST",i+"/submissions",e,{},o,n,{},t),t.promise},e.prototype.get_submissions_list=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],n=a(e,n),this.request("GET",i+"/submissions",e,{},o,n,{},t),t.promise},e.prototype.delete_submission=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/submissions/{submission_id}".replace("{submission_id}",e.submissionId),void 0===e.submissionId?i.reject(new Error("Missing required  parameter: submissionId")):(o=a(e,o),this.request("DELETE",n+t,e,{},r,o,{},i)),i.promise},e.prototype.get_submission=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/submissions/{submission_id}".replace("{submission_id}",e.submissionId),void 0===e.submissionId?i.reject(new Error("Missing required  parameter: submissionId")):(o=a(e,o),this.request("GET",n+t,e,{},r,o,{},i)),i.promise},e.prototype.post_tag_list=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],n=a(e,n),this.request("POST",i+"/tags",e,{},o,n,{},t),t.promise},e.prototype.get_tag_list=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],n=a(e,n),this.request("GET",i+"/tags",e,{},o,n,{},t),t.promise},e.prototype.patch_tag=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/tags/{tag_id}".replace("{tag_id}",e.tagId),void 0===e.tagId?i.reject(new Error("Missing required  parameter: tagId")):(o=a(e,o),this.request("PATCH",n+t,e,{},r,o,{},i)),i.promise},e.prototype.delete_tag=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/tags/{tag_id}".replace("{tag_id}",e.tagId),void 0===e.tagId?i.reject(new Error("Missing required  parameter: tagId")):(o=a(e,o),this.request("DELETE",n+t,e,{},r,o,{},i)),i.promise},e.prototype.get_tag=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/tags/{tag_id}".replace("{tag_id}",e.tagId),void 0===e.tagId?i.reject(new Error("Missing required  parameter: tagId")):(o=a(e,o),this.request("GET",n+t,e,{},r,o,{},i)),i.promise},e.prototype.post_team_list=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],n=a(e,n),this.request("POST",i+"/teams",e,{},o,n,{},t),t.promise},e.prototype.get_team_list=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],n=a(e,n),this.request("GET",i+"/teams",e,{},o,n,{},t),t.promise},e.prototype.patch_team_private=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],void 0!==e.teamId&&(n.team_id=e.teamId),n=a(e,n),this.request("PATCH",i+"/teams/me",e,{},o,n,{},t),t.promise},e.prototype.get_team_private=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],void 0!==e.teamId&&(n.team_id=e.teamId),n=a(e,n),this.request("GET",i+"/teams/me",e,{},o,n,{},t),t.promise},e.prototype.patch_team_public=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/teams/{team_id}".replace("{team_id}",e.teamId),void 0===e.teamId?i.reject(new Error("Missing required  parameter: teamId")):(o=a(e,o),this.request("PATCH",n+t,e,{},r,o,{},i)),i.promise},e.prototype.delete_team_public=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/teams/{team_id}".replace("{team_id}",e.teamId),void 0===e.teamId?i.reject(new Error("Missing required  parameter: teamId")):(o=a(e,o),this.request("DELETE",n+t,e,{},r,o,{},i)),i.promise},e.prototype.get_team_public=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/teams/{team_id}".replace("{team_id}",e.teamId),void 0===e.teamId?i.reject(new Error("Missing required  parameter: teamId")):(o=a(e,o),this.request("GET",n+t,e,{},r,o,{},i)),i.promise},e.prototype.get_team_awards=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/teams/{team_id}/awards".replace("{team_id}",e.teamId),void 0===e.teamId?i.reject(new Error("Missing required  parameter: teamId")):(o=a(e,o),this.request("GET",n+t,e,{},r,o,{},i)),i.promise},e.prototype.get_team_fails=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/teams/{team_id}/fails".replace("{team_id}",e.teamId),void 0===e.teamId?i.reject(new Error("Missing required  parameter: teamId")):(o=a(e,o),this.request("GET",n+t,e,{},r,o,{},i)),i.promise},e.prototype.get_team_solves=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/teams/{team_id}/solves".replace("{team_id}",e.teamId),void 0===e.teamId?i.reject(new Error("Missing required  parameter: teamId")):(o=a(e,o),this.request("GET",n+t,e,{},r,o,{},i)),i.promise},e.prototype.post_unlock_list=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],n=a(e,n),this.request("POST",i+"/unlocks",e,{},o,n,{},t),t.promise},e.prototype.get_unlock_list=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],n=a(e,n),this.request("GET",i+"/unlocks",e,{},o,n,{},t),t.promise},e.prototype.post_user_list=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],n=a(e,n),this.request("POST",i+"/users",e,{},o,n,{},t),t.promise},e.prototype.get_user_list=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],n=a(e,n),this.request("GET",i+"/users",e,{},o,n,{},t),t.promise},e.prototype.patch_user_private=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],n=a(e,n),this.request("PATCH",i+"/users/me",e,{},o,n,{},t),t.promise},e.prototype.get_user_private=function(e){void 0===e&&(e={});var t=s.default.defer(),i=this.domain,n={},o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],n=a(e,n),this.request("GET",i+"/users/me",e,{},o,n,{},t),t.promise},e.prototype.patch_user_public=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/users/{user_id}".replace("{user_id}",e.userId),void 0===e.userId?i.reject(new Error("Missing required  parameter: userId")):(o=a(e,o),this.request("PATCH",n+t,e,{},r,o,{},i)),i.promise},e.prototype.delete_user_public=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/users/{user_id}".replace("{user_id}",e.userId),void 0===e.userId?i.reject(new Error("Missing required  parameter: userId")):(o=a(e,o),this.request("DELETE",n+t,e,{},r,o,{},i)),i.promise},e.prototype.get_user_public=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/users/{user_id}".replace("{user_id}",e.userId),void 0===e.userId?i.reject(new Error("Missing required  parameter: userId")):(o=a(e,o),this.request("GET",n+t,e,{},r,o,{},i)),i.promise},e.prototype.get_user_awards=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/users/{user_id}/awards".replace("{user_id}",e.userId),void 0===e.userId?i.reject(new Error("Missing required  parameter: userId")):(o=a(e,o),this.request("GET",n+t,e,{},r,o,{},i)),i.promise},e.prototype.get_user_fails=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/users/{user_id}/fails".replace("{user_id}",e.userId),void 0===e.userId?i.reject(new Error("Missing required  parameter: userId")):(o=a(e,o),this.request("GET",n+t,e,{},r,o,{},i)),i.promise},e.prototype.get_user_solves=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/users/{user_id}/solves".replace("{user_id}",e.userId),void 0===e.userId?i.reject(new Error("Missing required  parameter: userId")):(o=a(e,o),this.request("GET",n+t,e,{},r,o,{},i)),i.promise},e}();t.API=r},"./CTFd/themes/core/assets/js/config.js":function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={urlRoot:"",csrfNonce:"",userMode:""}},"./CTFd/themes/core/assets/js/events.js":function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i("./node_modules/howler/dist/howler.js"),n=i("./node_modules/event-source-polyfill/src/eventsource.js"),a=i("./CTFd/themes/core/assets/js/ezq.js"),s=i("./CTFd/themes/core/assets/js/utils.js"),d=n.NativeEventSource||n.EventSourcePolyfill;t.default=function(e){var t=new d(e+"/events"),i=new s.WindowController,n=new r.Howl({src:[e+"/themes/core/static/sounds/notification.webm",e+"/themes/core/static/sounds/notification.mp3"]});function o(e){switch(e.type){case"toast":(0,s.inc_notification_counter)();var t=50<e.content.length?e.content.substring(0,47)+"...":e.content,i=!1;(0,a.ezToast)({title:e.title,body:t,onclick:function(){(0,a.ezAlert)({title:e.title,body:e.html,button:"Got it!",success:function(){i=!0,(0,s.dec_notification_counter)()}})},onclose:function(){i||(0,s.dec_notification_counter)()}});break;case"alert":(0,s.inc_notification_counter)(),(0,a.ezAlert)({title:e.title,body:e.html,button:"Got it!",success:function(){(0,s.dec_notification_counter)()}});break;case"background":default:(0,s.inc_notification_counter)()}}(0,s.init_notification_counter)(),i.alert=function(e){o(e)},i.toast=function(e){o(e)},i.background=function(e){o(e)},i.masterDidChange=function(){this.isMaster?t.addEventListener("notification",function(e){var t=JSON.parse(e.data);i.broadcast("notification",t),o(t),t.sound&&n.play()},!1):t&&t.close()}}},"./CTFd/themes/core/assets/js/ezq.js":function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.ezAlert=m,t.ezToast=h,t.ezQuery=v,t.ezProgressBar=g,t.ezBadge=y,t.default=void 0,i("./node_modules/bootstrap/js/dist/modal.js");var s=n(i("./node_modules/jquery/dist/jquery.js")),r=n(i("./node_modules/highlight.js/lib/index.js"));function n(e){return e&&e.__esModule?e:{default:e}}var a='<div class="modal fade" tabindex="-1" role="dialog">  <div class="modal-dialog" role="document">    <div class="modal-content">      <div class="modal-header">        <h5 class="modal-title">{0}</h5>        <button type="button" class="close" data-dismiss="modal" aria-label="Close">          <span aria-hidden="true">&times;</span>        </button>      </div>      <div class="modal-body">      </div>      <div class="modal-footer">      </div>    </div>  </div></div>',d='<div class="toast m-3" role="alert">  <div class="toast-header">    <strong class="mr-auto">{0}</strong>    <button type="button" class="ml-2 mb-1 close" data-dismiss="toast" aria-label="Close">      <span aria-hidden="true">&times;</span>    </button>  </div>  <div class="toast-body">{1}</div></div>',c='<div class="progress">  <div class="progress-bar progress-bar-success progress-bar-striped progress-bar-animated" role="progressbar" style="width: {0}%">  </div></div>',o='<div class="alert alert-danger alert-dismissable" role="alert">\n  <span class="sr-only">Error:</span>\n  {0}\n  <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>\n</div>',p='<div class="alert alert-success alert-dismissable submit-row" role="alert">\n  <strong>Success!</strong>\n  {0}\n  <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>\n</div>',l='<button type="button" class="btn btn-primary" data-dismiss="modal">{0}</button>',u='<button type="button" class="btn btn-danger" data-dismiss="modal">No</button>',f='<button type="button" class="btn btn-primary" data-dismiss="modal">Yes</button>';function m(e){var t=a.format(e.title),i=(0,s.default)(t);"string"==typeof e.body?i.find(".modal-body").append("<p>".concat(e.body,"</p>")):i.find(".modal-body").append((0,s.default)(e.body));var n=(0,s.default)(l.format(e.button));return e.success&&(0,s.default)(n).click(function(){e.success()}),e.large&&i.find(".modal-dialog").addClass("modal-lg"),i.find(".modal-footer").append(n),i.find("pre code").each(function(e){r.default.highlightBlock(this)}),(0,s.default)("main").append(i),i.modal("show"),(0,s.default)(i).on("hidden.bs.modal",function(){(0,s.default)(this).modal("dispose")}),i}function h(e){(0,s.default)("#ezq--notifications-toast-container").length||(0,s.default)("body").append((0,s.default)("<div/>").attr({id:"ezq--notifications-toast-container"}).css({position:"fixed",bottom:"0",right:"0","min-width":"20%"}));var t,i=d.format(e.title,e.body),n=(0,s.default)(i);e.onclose&&(0,s.default)(n).find("button[data-dismiss=toast]").click(function(){e.onclose()}),e.onclick&&((t=(0,s.default)(n).find(".toast-body")).addClass("cursor-pointer"),t.click(function(){e.onclick()}));var o=!1!==e.autohide,r=!1!==e.animation,a=e.delay||1e4;return(0,s.default)("#ezq--notifications-toast-container").prepend(n),n.toast({autohide:o,delay:a,animation:r}),n.toast("show"),n}function v(e){var t=a.format(e.title),i=(0,s.default)(t);"string"==typeof e.body?i.find(".modal-body").append("<p>".concat(e.body,"</p>")):i.find(".modal-body").append((0,s.default)(e.body));var n=(0,s.default)(f),o=(0,s.default)(u);return i.find(".modal-footer").append(o),i.find(".modal-footer").append(n),i.find("pre code").each(function(e){r.default.highlightBlock(this)}),(0,s.default)("main").append(i),(0,s.default)(i).on("hidden.bs.modal",function(){(0,s.default)(this).modal("dispose")}),(0,s.default)(n).click(function(){e.success()}),i.modal("show"),i}function g(e){if(e.target){var t=(0,s.default)(e.target);return t.find(".progress-bar").css("width",e.width+"%"),t}var i=c.format(e.width),n=a.format(e.title),o=(0,s.default)(n);return o.find(".modal-body").append((0,s.default)(i)),(0,s.default)("main").append(o),o.modal("show")}function y(e){var t={success:p,error:o}[e.type].format(e.body);return(0,s.default)(t)}var j={ezAlert:m,ezToast:h,ezQuery:v,ezProgressBar:g,ezBadge:y};t.default=j},"./CTFd/themes/core/assets/js/fetch.js":function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("./node_modules/whatwg-fetch/fetch.js");var n,o=(n=i("./CTFd/themes/core/assets/js/config.js"))&&n.__esModule?n:{default:n};var r=window.fetch;t.default=function(e,t){return void 0===t&&(t={method:"GET",credentials:"same-origin",headers:{}}),e=o.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"]=o.default.csrfNonce,r(e,t)}},"./CTFd/themes/core/assets/js/patch.js":function(e,t,i){var n,s=(n=i("./node_modules/q/q.js"))&&n.__esModule?n:{default:n},o=i("./CTFd/themes/core/assets/js/api.js");function a(t,e){var i,n=Object.keys(t);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(t),e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)),n}function r(o){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach(function(e){var t,i,n;t=o,n=r[i=e],i in t?Object.defineProperty(t,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[i]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(r,e))})}return o}function d(e,t){return r(r({},e),t)}o.API.prototype.requestRaw=function(e,t,i,n,o,r,a,s){var d=r&&Object.keys(r).length?function(e){var t,i=[];for(t in e)e.hasOwnProperty(t)&&i.push(encodeURIComponent(t)+"="+encodeURIComponent(e[t]));return i.join("&")}(r):null,c=t+(d?"?"+d:"");n&&!Object.keys(n).length&&(n=void 0),fetch(c,{method:e,headers:o,body:n}).then(function(e){return e.json()}).then(function(e){s.resolve(e)}).catch(function(e){s.reject(e)})},o.API.prototype.patch_user_public=function(e,t){void 0===e&&(e={});var i,n=s.default.defer(),o=this.domain,r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],i="/users/{user_id}".replace("{user_id}",e.userId),void 0===e.userId?n.reject(new Error("Missing required  parameter: userId")):this.request("PATCH",o+i,e,t,r,{},{},n),n.promise},o.API.prototype.patch_user_private=function(e,t){void 0===e&&(e={});var i=s.default.defer(),n=this.domain,o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],this.request("PATCH",n+"/users/me",e,t,o,{},{},i),i.promise},o.API.prototype.post_unlock_list=function(e,t){var i=s.default.defer(),n=this.domain,o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],this.request("POST",n+"/unlocks",e,t,o,{},{},i),i.promise},o.API.prototype.post_notification_list=function(e,t){void 0===e&&(e={});var i=s.default.defer(),n=this.domain,o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],this.request("POST",n+"/notifications",e,t,o,{},{},i),i.promise},o.API.prototype.post_files_list=function(e,t){var i=s.default.defer(),n=this.domain,o={};return o.Accept=["application/json"],o["Content-Type"]=["application/json"],this.requestRaw("POST",n+"/files",e,t,o,{},{},i),i.promise},o.API.prototype.patch_config=function(e,t){void 0===e&&(e={});var i,n=s.default.defer(),o=this.domain,r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],i="/configs/{config_key}".replace("{config_key}",e.configKey),void 0===e.configKey?n.reject(new Error("Missing required  parameter: configKey")):this.request("PATCH",o+i,e,t,r,{},{},n),n.promise},o.API.prototype.patch_config_list=function(e,t){void 0===e&&(e={});var i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],o=d(e,o),this.request("PATCH",n+"/configs",e,t,r,o,{},i),i.promise},o.API.prototype.post_tag_list=function(e,t){void 0===e&&(e={});var i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],o=d(e,o),this.request("POST",n+"/tags",e,t,r,o,{},i),i.promise},o.API.prototype.patch_team_public=function(e,t){void 0===e&&(e={});var i,n=s.default.defer(),o=this.domain,r={},a={};return a.Accept=["application/json"],a["Content-Type"]=["application/json"],i="/teams/{team_id}".replace("{team_id}",e.teamId),void 0===e.teamId?n.reject(new Error("Missing required  parameter: teamId")):(r=d(e,r),this.request("PATCH",o+i,e,t,a,r,{},n)),n.promise},o.API.prototype.post_challenge_attempt=function(e,t){void 0===e&&(e={});var i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],o=d(e,o),this.request("POST",n+"/challenges/attempt",e,t,r,o,{},i),i.promise},o.API.prototype.get_hint=function(e){void 0===e&&(e={});var t,i=s.default.defer(),n=this.domain,o={},r={};return r.Accept=["application/json"],r["Content-Type"]=["application/json"],t="/hints/{hint_id}".replace("{hint_id}",e.hintId),void 0===e.hintId?i.reject(new Error("Missing required  parameter: hintId")):(delete e.hintId,o=d(e,o),this.request("GET",n+t,e,{},r,o,{},i)),i.promise}},"./CTFd/themes/core/assets/js/times.js":function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(i("./node_modules/dayjs/dayjs.min.js")),n=o(i("./node_modules/dayjs/plugin/advancedFormat.js")),a=o(i("./node_modules/jquery/dist/jquery.js"));function o(e){return e&&e.__esModule?e:{default:e}}r.default.extend(n.default);t.default=function(){(0,a.default)("[data-time]").each(function(e,t){var i=(0,a.default)(t),n=i.data("time"),o=i.data("time-format")||"MMMM Do, h:mm:ss A";t.innerText=(0,r.default)(n).format(o)})}},"./CTFd/themes/core/assets/js/utils.js":function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.WindowController=o,t.colorHash=function(e){for(var t=0,i=0;i<e.length;i++)t=e.charCodeAt(i)+((t<<5)-t),t&=t;var n=(t%25+25)%25+75,o=(t%20+20)%20+40;return"hsl(".concat((t%360+360)%360,", ").concat(n,"%, ").concat(o,"%)")},t.cumulativeSum=function(e){for(var t=e.concat(),i=0;i<e.length;i++)t[i]=e.slice(0,i+1).reduce(function(e,t){return e+t});return t},t.init_notification_counter=function(){var e=r.getItem(s);null===e?r.setItem(s,0):0<e&&(0,a.default)(".badge-notification").text(e)},t.set_notification_counter=function(e){r.setItem(s,e)},t.inc_notification_counter=function(){var e=r.getItem(s)||0;r.setItem(s,++e),(0,a.default)(".badge-notification").text(e)},t.dec_notification_counter=function(){var e=r.getItem(s)||0;0<e&&(r.setItem(s,--e),(0,a.default)(".badge-notification").text(e));0==e&&d()},t.clear_notification_counter=d,t.copyToClipboard=function(e,t){(0,a.default)(t).select(),document.execCommand("copy"),(0,a.default)(e.target).tooltip({title:"Copied!",trigger:"manual"}),(0,a.default)(e.target).tooltip("show"),setTimeout(function(){(0,a.default)(e.target).tooltip("hide")},1500)},t.makeSortableTables=function(){function r(e,t){return(0,a.default)(e).children("td").eq(t).text()}(0,a.default)("th.sort-col").append(' <i class="fas fa-sort"></i>'),(0,a.default)("th.sort-col").click(function(){var o,e=(0,a.default)(this).parents("table").eq(0),t=e.find("tr:gt(0)").toArray().sort((o=(0,a.default)(this).index(),function(e,t){var i=r(e,o),n=r(t,o);return a.default.isNumeric(i)&&a.default.isNumeric(n)?i-n:i.toString().localeCompare(n)}));this.asc=!this.asc,this.asc||(t=t.reverse());for(var i=0;i<t.length;i++)e.append(t[i])})},t.getScript=function(n){return new Promise(function(e,t){var i=document.createElement("script");document.body.appendChild(i),i.onload=e,i.onerror=t,i.async=!0,i.src=n})},t.createHtmlNode=function(e){var t=document.createElement("template");return t.innerHTML=e.trim(),t.content.firstChild},t.htmlEntities=function(e){return(0,a.default)("<div/>").text(e).html()};var n,a=(n=i("./node_modules/jquery/dist/jquery.js"))&&n.__esModule?n:{default:n};function o(){this.id=Math.random(),this.isMaster=!1,this.others={},window.addEventListener("storage",this,!1),window.addEventListener("unload",this,!1),this.broadcast("hello");var t=this;this._checkTimeout=setTimeout(function e(){t.check(),t._checkTimeout=setTimeout(e,9e3)},500),this._pingTimeout=setTimeout(function e(){t.sendPing(),t._pingTimeout=setTimeout(e,17e3)},17e3)}a.default.fn.serializeJSON=function(i){var n={},o=(0,a.default)(this),e=o.serializeArray();return(e=(e=e.concat(o.find("input[type=checkbox]:checked").map(function(){return{name:this.name,value:!0}}).get())).concat(o.find("input[type=checkbox]:not(:checked)").map(function(){return{name:this.name,value:!1}}).get())).map(function(e){var t;i&&(null===e.value||""===e.value)&&(t=o.find(":input[name='".concat(e.name,"']"))).data("initial")===t.val()||(n[e.name]=e.value)}),n},String.prototype.format=String.prototype.f=function(){for(var e=this,t=arguments.length;t--;)e=e.replace(new RegExp("\\{"+t+"\\}","gm"),arguments[t]);return e},String.prototype.hashCode=function(){var e,t,i=0;if(0==this.length)return i;for(e=0,t=this.length;e<t;e++)i=(i<<5)-i+this.charCodeAt(e),i|=0;return i},o.prototype.destroy=function(){clearTimeout(this._pingTimeout),clearTimeout(this._checkTimeout),window.removeEventListener("storage",this,!1),window.removeEventListener("unload",this,!1),this.broadcast("bye")},o.prototype.handleEvent=function(e){if("unload"===e.type)this.destroy();else if("broadcast"===e.key)try{var t=JSON.parse(e.newValue);t.id!==this.id&&this[t.type](t)}catch(e){}},o.prototype.sendPing=function(){this.broadcast("ping")},o.prototype.hello=function(e){this.ping(e),e.id<this.id?this.check():this.sendPing()},o.prototype.ping=function(e){this.others[e.id]=+new Date},o.prototype.bye=function(e){delete this.others[e.id],this.check()},o.prototype.check=function(e){var t,i=+new Date,n=!0;for(t in this.others)this.others[t]+23e3<i?delete this.others[t]:t<this.id&&(n=!1);this.isMaster!==n&&(this.isMaster=n,this.masterDidChange())},o.prototype.masterDidChange=function(){},o.prototype.broadcast=function(e,t){var i,n={id:this.id,type:e};for(i in t)n[i]=t[i];try{localStorage.setItem("broadcast",JSON.stringify(n))}catch(e){}};var r=window.localStorage,s="unread_notifications";function d(){r.setItem(s,0),(0,a.default)(".badge-notification").empty()}},0:function(e,t){},1:function(e,t){},2:function(e,t){}});