diff --git a/assets/js/challenges.js b/assets/js/challenges.js index 56a4317..eded794 100644 --- a/assets/js/challenges.js +++ b/assets/js/challenges.js @@ -74,6 +74,11 @@ Alpine.data("Challenge", () => ({ share_url: null, max_attempts: 0, attempts: 0, + ratingValue: 0, + hoveredRating: 0, + selectedRating: 0, + ratingReview: "", + ratingSubmitted: false, async init() { highlight(); @@ -221,6 +226,20 @@ Alpine.data("Challenge", () => ({ // Dispatch load-challenges event to call loadChallenges in the ChallengeBoard this.$dispatch("load-challenges"); }, + + async submitRating() { + const response = await CTFd.pages.challenge.submitRating( + this.id, + this.selectedRating, + this.ratingReview, + ); + if (response.value) { + this.ratingValue = this.selectedRating; + this.ratingSubmitted = true; + } else { + alert("Error submitting rating"); + } + }, })); Alpine.data("ChallengeBoard", () => ({ diff --git a/package.json b/package.json index e8cc6b1..5ff5ac6 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "verify": "vite build; git diff --quiet --exit-code" }, "dependencies": { - "@ctfdio/ctfd-js": "^0.0.17", + "@ctfdio/ctfd-js": "^0.0.18", "@fontsource/lato": "^4.5.3", "@fontsource/raleway": "^4.5.3", "@fortawesome/fontawesome-free": "6.5.1", diff --git a/static/assets/challenges.074c9899.js b/static/assets/challenges.074c9899.js new file mode 100644 index 0000000..a65b9f6 --- /dev/null +++ b/static/assets/challenges.074c9899.js @@ -0,0 +1 @@ +import{m as l,C as a,h,T as o,d,M as c,a as u}from"./index.b6be5691.js";function r(e){let s=new DOMParser().parseFromString(e,"text/html");return s.querySelectorAll('a[href*="://"]').forEach(i=>{i.setAttribute("target","_blank")}),s.documentElement.outerHTML}window.Alpine=l;l.store("challenge",{data:{view:""}});l.data("Hint",()=>({id:null,html:null,async showHint(e){if(e.target.open){let t=await a.pages.challenge.loadHint(this.id);if(t.errors){e.target.open=!1,a._functions.challenge.displayUnlockError(t);return}let s=t.data;if(s.content)this.html=r(s.html);else if(await a.pages.challenge.displayUnlock(this.id)){let i=await a.pages.challenge.loadUnlock(this.id);if(i.success){let g=(await a.pages.challenge.loadHint(this.id)).data;this.html=r(g.html)}else e.target.open=!1,a._functions.challenge.displayUnlockError(i)}else e.target.open=!1}}}));l.data("Challenge",()=>({id:null,next_id:null,submission:"",tab:null,solves:[],submissions:[],solution:null,response:null,share_url:null,max_attempts:0,attempts:0,ratingValue:0,hoveredRating:0,selectedRating:0,ratingReview:"",ratingSubmitted:!1,async init(){h()},getStyles(){let e={"modal-dialog":!0};try{switch(a.config.themeSettings.challenge_window_size){case"sm":e["modal-sm"]=!0;break;case"lg":e["modal-lg"]=!0;break;case"xl":e["modal-xl"]=!0;break;default:break}}catch(t){console.log("Error processing challenge_window_size"),console.log(t)}return e},async init(){h()},async showChallenge(){new o(this.$el).show()},async showSolves(){this.solves=await a.pages.challenge.loadSolves(this.id),this.solves.forEach(e=>(e.date=d(e.date).format("MMMM Do, h:mm:ss A"),e)),new o(this.$el).show()},async showSubmissions(){let e=await a.pages.users.userSubmissions("me",this.id);this.submissions=e.data,this.submissions.forEach(t=>(t.date=d(t.date).format("MMMM Do, h:mm:ss A"),t)),new o(this.$el).show()},getSolutionId(){return l.store("challenge").data.solution_id},async showSolution(){let e=this.getSolutionId();a._functions.challenge.displaySolution=t=>{this.solution=t.html,new o(this.$el).show()},await a.pages.challenge.displaySolution(e)},getNextId(){return l.store("challenge").data.next_id},async nextChallenge(){let e=c.getOrCreateInstance("[x-ref='challengeWindow']");e._element.addEventListener("hidden.bs.modal",t=>{l.nextTick(()=>{this.$dispatch("load-challenge",this.getNextId())})},{once:!0}),e.hide()},async getShareUrl(){let e={type:"solve",challenge_id:this.id};const n=(await(await a.fetch("/api/v1/shares",{method:"POST",body:JSON.stringify(e)})).json()).data.url;this.share_url=n},copyShareUrl(){navigator.clipboard.writeText(this.share_url);let e=u.getOrCreateInstance(this.$el);e.enable(),e.show(),setTimeout(()=>{e.hide(),e.disable()},2e3)},async submitChallenge(){this.response=await a.pages.challenge.submitChallenge(this.id,this.submission),await this.renderSubmissionResponse()},async renderSubmissionResponse(){this.response.data.status==="correct"&&(this.submission=""),this.max_attempts>0&&this.response.data.status!="already_solved"&&this.response.data.status!="ratelimited"&&(this.attempts+=1),this.$dispatch("load-challenges")},async submitRating(){(await a.pages.challenge.submitRating(this.id,this.selectedRating,this.ratingReview)).value?(this.ratingValue=this.selectedRating,this.ratingSubmitted=!0):alert("Error submitting rating")}}));l.data("ChallengeBoard",()=>({loaded:!1,challenges:[],challenge:null,async init(){if(this.challenges=await a.pages.challenges.getChallenges(),this.loaded=!0,window.location.hash){let e=decodeURIComponent(window.location.hash.substring(1)),t=e.lastIndexOf("-");if(t>=0){let n=[e.slice(0,t),e.slice(t+1)][1];await this.loadChallenge(n)}}},getCategories(){const e=[];this.challenges.forEach(t=>{const{category:s}=t;e.includes(s)||e.push(s)});try{const t=a.config.themeSettings.challenge_category_order;if(t){const s=new Function(`return (${t})`);e.sort(s())}}catch(t){console.log("Error running challenge_category_order function"),console.log(t)}return e},getChallenges(e){let t=this.challenges;e!==null&&(t=this.challenges.filter(s=>s.category===e));try{const s=a.config.themeSettings.challenge_order;if(s){const n=new Function(`return (${s})`);t.sort(n())}}catch(s){console.log("Error running challenge_order function"),console.log(s)}return t},async loadChallenges(){this.challenges=await a.pages.challenges.getChallenges()},async loadChallenge(e){await a.pages.challenge.displayChallenge(e,t=>{t.data.view=r(t.data.view),l.store("challenge").data=t.data,l.nextTick(()=>{let s=c.getOrCreateInstance("[x-ref='challengeWindow']");s._element.addEventListener("hidden.bs.modal",n=>{history.replaceState(null,null," ")},{once:!0}),s.show(),history.replaceState(null,null,`#${t.data.name}-${e}`)})})}}));l.start(); diff --git a/static/assets/challenges.4dca8d2f.js b/static/assets/challenges.4dca8d2f.js deleted file mode 100644 index 267061e..0000000 --- a/static/assets/challenges.4dca8d2f.js +++ /dev/null @@ -1 +0,0 @@ -import{m as l,C as a,h,T as o,d as c,M as d,a as u}from"./index.993fb568.js";function r(e){let s=new DOMParser().parseFromString(e,"text/html");return s.querySelectorAll('a[href*="://"]').forEach(i=>{i.setAttribute("target","_blank")}),s.documentElement.outerHTML}window.Alpine=l;l.store("challenge",{data:{view:""}});l.data("Hint",()=>({id:null,html:null,async showHint(e){if(e.target.open){let t=await a.pages.challenge.loadHint(this.id);if(t.errors){e.target.open=!1,a._functions.challenge.displayUnlockError(t);return}let s=t.data;if(s.content)this.html=r(s.html);else if(await a.pages.challenge.displayUnlock(this.id)){let i=await a.pages.challenge.loadUnlock(this.id);if(i.success){let g=(await a.pages.challenge.loadHint(this.id)).data;this.html=r(g.html)}else e.target.open=!1,a._functions.challenge.displayUnlockError(i)}else e.target.open=!1}}}));l.data("Challenge",()=>({id:null,next_id:null,submission:"",tab:null,solves:[],submissions:[],solution:null,response:null,share_url:null,max_attempts:0,attempts:0,async init(){h()},getStyles(){let e={"modal-dialog":!0};try{switch(a.config.themeSettings.challenge_window_size){case"sm":e["modal-sm"]=!0;break;case"lg":e["modal-lg"]=!0;break;case"xl":e["modal-xl"]=!0;break;default:break}}catch(t){console.log("Error processing challenge_window_size"),console.log(t)}return e},async init(){h()},async showChallenge(){new o(this.$el).show()},async showSolves(){this.solves=await a.pages.challenge.loadSolves(this.id),this.solves.forEach(e=>(e.date=c(e.date).format("MMMM Do, h:mm:ss A"),e)),new o(this.$el).show()},async showSubmissions(){let e=await a.pages.users.userSubmissions("me",this.id);this.submissions=e.data,this.submissions.forEach(t=>(t.date=c(t.date).format("MMMM Do, h:mm:ss A"),t)),new o(this.$el).show()},getSolutionId(){return l.store("challenge").data.solution_id},async showSolution(){let e=this.getSolutionId();a._functions.challenge.displaySolution=t=>{this.solution=t.html,new o(this.$el).show()},await a.pages.challenge.displaySolution(e)},getNextId(){return l.store("challenge").data.next_id},async nextChallenge(){let e=d.getOrCreateInstance("[x-ref='challengeWindow']");e._element.addEventListener("hidden.bs.modal",t=>{l.nextTick(()=>{this.$dispatch("load-challenge",this.getNextId())})},{once:!0}),e.hide()},async getShareUrl(){let e={type:"solve",challenge_id:this.id};const n=(await(await a.fetch("/api/v1/shares",{method:"POST",body:JSON.stringify(e)})).json()).data.url;this.share_url=n},copyShareUrl(){navigator.clipboard.writeText(this.share_url);let e=u.getOrCreateInstance(this.$el);e.enable(),e.show(),setTimeout(()=>{e.hide(),e.disable()},2e3)},async submitChallenge(){this.response=await a.pages.challenge.submitChallenge(this.id,this.submission),await this.renderSubmissionResponse()},async renderSubmissionResponse(){this.response.data.status==="correct"&&(this.submission=""),this.max_attempts>0&&this.response.data.status!="already_solved"&&this.response.data.status!="ratelimited"&&(this.attempts+=1),this.$dispatch("load-challenges")}}));l.data("ChallengeBoard",()=>({loaded:!1,challenges:[],challenge:null,async init(){if(this.challenges=await a.pages.challenges.getChallenges(),this.loaded=!0,window.location.hash){let e=decodeURIComponent(window.location.hash.substring(1)),t=e.lastIndexOf("-");if(t>=0){let n=[e.slice(0,t),e.slice(t+1)][1];await this.loadChallenge(n)}}},getCategories(){const e=[];this.challenges.forEach(t=>{const{category:s}=t;e.includes(s)||e.push(s)});try{const t=a.config.themeSettings.challenge_category_order;if(t){const s=new Function(`return (${t})`);e.sort(s())}}catch(t){console.log("Error running challenge_category_order function"),console.log(t)}return e},getChallenges(e){let t=this.challenges;e!==null&&(t=this.challenges.filter(s=>s.category===e));try{const s=a.config.themeSettings.challenge_order;if(s){const n=new Function(`return (${s})`);t.sort(n())}}catch(s){console.log("Error running challenge_order function"),console.log(s)}return t},async loadChallenges(){this.challenges=await a.pages.challenges.getChallenges()},async loadChallenge(e){await a.pages.challenge.displayChallenge(e,t=>{t.data.view=r(t.data.view),l.store("challenge").data=t.data,l.nextTick(()=>{let s=d.getOrCreateInstance("[x-ref='challengeWindow']");s._element.addEventListener("hidden.bs.modal",n=>{history.replaceState(null,null," ")},{once:!0}),s.show(),history.replaceState(null,null,`#${t.data.name}-${e}`)})})}}));l.start(); diff --git a/static/assets/clipboard.be7a2341.js b/static/assets/clipboard.98f9b827.js similarity index 91% rename from static/assets/clipboard.be7a2341.js rename to static/assets/clipboard.98f9b827.js index 24785ac..06cfd87 100644 --- a/static/assets/clipboard.be7a2341.js +++ b/static/assets/clipboard.98f9b827.js @@ -1 +1 @@ -import{a as u}from"./index.993fb568.js";function r(a){const t=new FormData(a),c=[];for(const[l,n]of t)c.push({name:l,value:n});return c}function h(a,t,c){let l={},n=r(a);return a.querySelectorAll("input[type=checkbox]:checked").forEach(e=>{n.push({name:e.name,value:!0})}),a.querySelectorAll("input[type=checkbox]:not(:checked)").forEach(e=>{n.push({name:e.name,value:!1})}),n.map(e=>{if(c)if(e.value!==null&&e.value!=="")l[e.name]=e.value;else{let o=a.querySelector(`[name='${e.name}']`);t[o.name]!==o.value&&(l[e.name]=e.value)}else l[e.name]=e.value}),l}function m(a){const t=new u(a,{title:"Copied!",trigger:"manual"});navigator.clipboard.writeText(a.value).then(()=>{t.show(),setTimeout(()=>{t.hide()},1500)})}export{m as c,h as s}; +import{a as u}from"./index.b6be5691.js";function r(a){const t=new FormData(a),c=[];for(const[l,n]of t)c.push({name:l,value:n});return c}function h(a,t,c){let l={},n=r(a);return a.querySelectorAll("input[type=checkbox]:checked").forEach(e=>{n.push({name:e.name,value:!0})}),a.querySelectorAll("input[type=checkbox]:not(:checked)").forEach(e=>{n.push({name:e.name,value:!1})}),n.map(e=>{if(c)if(e.value!==null&&e.value!=="")l[e.name]=e.value;else{let o=a.querySelector(`[name='${e.name}']`);t[o.name]!==o.value&&(l[e.name]=e.value)}else l[e.name]=e.value}),l}function m(a){const t=new u(a,{title:"Copied!",trigger:"manual"});navigator.clipboard.writeText(a.value).then(()=>{t.show(),setTimeout(()=>{t.hide()},1500)})}export{m as c,h as s}; diff --git a/static/assets/index.993fb568.js b/static/assets/index.b6be5691.js similarity index 78% rename from static/assets/index.993fb568.js rename to static/assets/index.b6be5691.js index 4781a8b..2240da1 100644 --- a/static/assets/index.993fb568.js +++ b/static/assets/index.b6be5691.js @@ -1,6 +1,6 @@ var oe=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof oe<"u"&&oe,ue={searchParams:"URLSearchParams"in oe,iterable:"Symbol"in oe&&"iterator"in Symbol,blob:"FileReader"in oe&&"Blob"in oe&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in oe,arrayBuffer:"ArrayBuffer"in oe};function _l(e){return e&&DataView.prototype.isPrototypeOf(e)}if(ue.arrayBuffer)var ml=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],gl=ArrayBuffer.isView||function(e){return e&&ml.indexOf(Object.prototype.toString.call(e))>-1};function tn(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||e==="")throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function si(e){return typeof e!="string"&&(e=String(e)),e}function oi(e){var t={next:function(){var n=e.shift();return{done:n===void 0,value:n}}};return ue.iterable&&(t[Symbol.iterator]=function(){return t}),t}function Z(e){this.map={},e instanceof Z?e.forEach(function(t,n){this.append(n,t)},this):Array.isArray(e)?e.forEach(function(t){this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}Z.prototype.append=function(e,t){e=tn(e),t=si(t);var n=this.map[e];this.map[e]=n?n+", "+t:t};Z.prototype.delete=function(e){delete this.map[tn(e)]};Z.prototype.get=function(e){return e=tn(e),this.has(e)?this.map[e]:null};Z.prototype.has=function(e){return this.map.hasOwnProperty(tn(e))};Z.prototype.set=function(e,t){this.map[tn(e)]=si(t)};Z.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)};Z.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),oi(e)};Z.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),oi(e)};Z.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),oi(e)};ue.iterable&&(Z.prototype[Symbol.iterator]=Z.prototype.entries);function hr(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function uo(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function vl(e){var t=new FileReader,n=uo(t);return t.readAsArrayBuffer(e),n}function yl(e){var t=new FileReader,n=uo(t);return t.readAsText(e),n}function bl(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?t:e}function ct(e,t){if(!(this instanceof ct))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{};var n=t.body;if(e instanceof ct){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new Z(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!n&&e._bodyInit!=null&&(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new Z(t.headers)),this.method=wl(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),(this.method==="GET"||this.method==="HEAD")&&(t.cache==="no-store"||t.cache==="no-cache")){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+new Date().getTime());else{var i=/\?/;this.url+=(i.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}ct.prototype.clone=function(){return new ct(this,{body:this._bodyInit})};function Al(e){var t=new FormData;return e.trim().split("&").forEach(function(n){if(n){var r=n.split("="),i=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(o))}}),t}function Tl(e){var t=new Z,n=e.replace(/\r?\n[\t ]+/g," ");return n.split("\r").map(function(r){return r.indexOf(` `)===0?r.substr(1,r.length):r}).forEach(function(r){var i=r.split(":"),o=i.shift().trim();if(o){var a=i.join(":").trim();t.append(o,a)}}),t}fo.call(ct.prototype);function De(e,t){if(!(this instanceof De))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=t.status===void 0?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText===void 0?"":""+t.statusText,this.headers=new Z(t.headers),this.url=t.url||"",this._initBody(e)}fo.call(De.prototype);De.prototype.clone=function(){return new De(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Z(this.headers),url:this.url})};De.error=function(){var e=new De(null,{status:0,statusText:""});return e.type="error",e};var Sl=[301,302,303,307,308];De.redirect=function(e,t){if(Sl.indexOf(t)===-1)throw new RangeError("Invalid status code");return new De(null,{status:t,headers:{location:e}})};var tt=oe.DOMException;try{new tt}catch{tt=function(t,n){this.message=t,this.name=n;var r=Error(t);this.stack=r.stack},tt.prototype=Object.create(Error.prototype),tt.prototype.constructor=tt}function ho(e,t){return new Promise(function(n,r){var i=new ct(e,t);if(i.signal&&i.signal.aborted)return r(new tt("Aborted","AbortError"));var o=new XMLHttpRequest;function a(){o.abort()}o.onload=function(){var f={status:o.status,statusText:o.statusText,headers:Tl(o.getAllResponseHeaders()||"")};f.url="responseURL"in o?o.responseURL:f.headers.get("X-Request-URL");var d="response"in o?o.response:o.responseText;setTimeout(function(){n(new De(d,f))},0)},o.onerror=function(){setTimeout(function(){r(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){r(new TypeError("Network request failed"))},0)},o.onabort=function(){setTimeout(function(){r(new tt("Aborted","AbortError"))},0)};function u(f){try{return f===""&&oe.location.href?oe.location.href:f}catch{return f}}o.open(i.method,u(i.url),!0),i.credentials==="include"?o.withCredentials=!0:i.credentials==="omit"&&(o.withCredentials=!1),"responseType"in o&&(ue.blob?o.responseType="blob":ue.arrayBuffer&&i.headers.get("Content-Type")&&i.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(o.responseType="arraybuffer")),t&&typeof t.headers=="object"&&!(t.headers instanceof Z)?Object.getOwnPropertyNames(t.headers).forEach(function(f){o.setRequestHeader(f,si(t.headers[f]))}):i.headers.forEach(function(f,d){o.setRequestHeader(d,f)}),i.signal&&(i.signal.addEventListener("abort",a),o.onreadystatechange=function(){o.readyState===4&&i.signal.removeEventListener("abort",a)}),o.send(typeof i._bodyInit>"u"?null:i._bodyInit)})}ho.polyfill=!0;oe.fetch||(oe.fetch=ho,oe.Headers=Z,oe.Request=ct,oe.Response=De);const X={urlRoot:"",csrfNonce:"",userMode:"",userName:"",userEmail:"",start:null,end:null,themeSettings:{},eventSounds:["/themes/core/static/sounds/notification.webm","/themes/core/static/sounds/notification.mp3"]},Ol=window.fetch,xl=(e,t)=>(t===void 0&&(t={method:"GET",credentials:"same-origin",headers:{}}),e=X.urlRoot+e,t.headers===void 0&&(t.headers={}),t.credentials="same-origin",t.headers.Accept="application/json",t.headers["Content-Type"]="application/json",t.headers["CSRF-Token"]=X.csrfNonce,Ol(e,t));var we=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},po={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(we,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",u="minute",f="hour",d="day",g="week",s="month",c="quarter",l="year",h="date",_="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,E={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(A){var b=["th","st","nd","rd"],v=A%100;return"["+A+(b[(v-20)%10]||b[v]||b[0])+"]"}},O=function(A,b,v){var T=String(A);return!T||T.length>=b?A:""+Array(b+1-T.length).join(v)+A},D={s:O,z:function(A){var b=-A.utcOffset(),v=Math.abs(b),T=Math.floor(v/60),y=v%60;return(b<=0?"+":"-")+O(T,2,"0")+":"+O(y,2,"0")},m:function A(b,v){if(b.date()1)return A(S[0])}else{var k=b.name;I[k]=b,y=k}return!T&&y&&(L=y),y||!T&&L},$=function(A,b){if(F(A))return A.clone();var v=typeof b=="object"?b:{};return v.date=A,v.args=arguments,new Y(v)},N=D;N.l=j,N.i=F,N.w=function(A,b){return $(A,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var Y=function(){function A(v){this.$L=j(v.locale,null,!0),this.parse(v)}var b=A.prototype;return b.parse=function(v){this.$d=function(T){var y=T.date,x=T.utc;if(y===null)return new Date(NaN);if(N.u(y))return new Date;if(y instanceof Date)return new Date(y);if(typeof y=="string"&&!/Z$/i.test(y)){var S=y.match(p);if(S){var k=S[2]-1||0,B=(S[7]||"0").substring(0,3);return x?new Date(Date.UTC(S[1],k,S[3]||1,S[4]||0,S[5]||0,S[6]||0,B)):new Date(S[1],k,S[3]||1,S[4]||0,S[5]||0,S[6]||0,B)}}return new Date(y)}(v),this.$x=v.x||{},this.init()},b.init=function(){var v=this.$d;this.$y=v.getFullYear(),this.$M=v.getMonth(),this.$D=v.getDate(),this.$W=v.getDay(),this.$H=v.getHours(),this.$m=v.getMinutes(),this.$s=v.getSeconds(),this.$ms=v.getMilliseconds()},b.$utils=function(){return N},b.isValid=function(){return this.$d.toString()!==_},b.isSame=function(v,T){var y=$(v);return this.startOf(T)<=y&&y<=this.endOf(T)},b.isAfter=function(v,T){return $(v)/,kl=/^\w+$/;function li(e,t){const n=Pl(t);return!e||!n&&!xt(t)&&!ne(t)?[]:!n&&Ll.test(e)?t.getElementsByClassName(e.slice(1).replace(/\\/g,"")):!n&&kl.test(e)?t.getElementsByTagName(e):t.querySelectorAll(e)}class Vn{constructor(t,n){if(!t)return;if(Pr(t))return t;let r=t;if(de(t)){const i=(Pr(n)?n[0]:n)||Pe;if(r=Ml.test(t)&&"getElementById"in i?i.getElementById(t.slice(1).replace(/\\/g,"")):Il.test(t)?So(t):li(t,i),!r)return}else if(pt(t))return this.ready(t);(r.nodeType||r===Cn)&&(r=[r]),this.length=r.length;for(let i=0,o=this.length;i{for(;t.firstChild;)t.removeChild(t.firstChild)})};function Dn(...e){const t=Hl(e[0])?e.shift():!1,n=e.shift(),r=e.length;if(!n)return{};if(!r)return Dn(t,H,n);for(let i=0;i{!ne(o)||ie(n,(a,u)=>{r?t?o.classList.add(u):o.classList.remove(u):o.classList.toggle(u)})})};C.addClass=function(e){return this.toggleClass(e,!0)};C.removeAttr=function(e){const t=jn(e);return this.each((n,r)=>{!ne(r)||ie(t,(i,o)=>{r.removeAttribute(o)})})};function Fl(e,t){if(!!e){if(de(e)){if(arguments.length<2){if(!this[0]||!ne(this[0]))return;const n=this[0].getAttribute(e);return Zt(n)?void 0:n}return he(t)?this:Zt(t)?this.removeAttr(e):this.each((n,r)=>{!ne(r)||r.setAttribute(e,t)})}for(const n in e)this.attr(n,e[n]);return this}}C.attr=Fl;C.removeClass=function(e){return arguments.length?this.toggleClass(e,!1):this.attr("class","")};C.hasClass=function(e){return!!e&&ci.call(this,t=>ne(t)&&t.classList.contains(e))};C.get=function(e){return he(e)?wo.call(this):(e=Number(e),this[e<0?e+this.length:e])};C.eq=function(e){return H(this.get(e))};C.first=function(){return this.eq(0)};C.last=function(){return this.eq(-1)};function Vl(e){return he(e)?this.get().map(t=>ne(t)||Rl(t)?t.textContent:"").join(""):this.each((t,n)=>{!ne(n)||(n.textContent=e)})}C.text=Vl;function Re(e,t,n){if(!ne(e))return;const r=Cn.getComputedStyle(e,null);return n?r.getPropertyValue(t)||void 0:r[t]||e.style[t]}function xe(e,t){return parseInt(Re(e,t),10)||0}function hs(e,t){return xe(e,`border${t?"Left":"Top"}Width`)+xe(e,`padding${t?"Left":"Top"}`)+xe(e,`padding${t?"Right":"Bottom"}`)+xe(e,`border${t?"Right":"Bottom"}Width`)}const _r={};function jl(e){if(_r[e])return _r[e];const t=ht(e);Pe.body.insertBefore(t,null);const n=Re(t,"display");return Pe.body.removeChild(t),_r[e]=n!=="none"?n:"block"}function ps(e){return Re(e,"display")==="none"}function To(e,t){const n=e&&(e.matches||e.webkitMatchesSelector||e.msMatchesSelector);return!!n&&!!t&&n.call(e,t)}function Wn(e){return de(e)?(t,n)=>To(n,e):pt(e)?e:Pr(e)?(t,n)=>e.is(n):e?(t,n)=>n===e:()=>!1}C.filter=function(e){const t=Wn(e);return H(ai.call(this,(n,r)=>t.call(n,r,n)))};function qe(e,t){return t?e.filter(t):e}C.detach=function(e){return qe(this,e).each((t,n)=>{n.parentNode&&n.parentNode.removeChild(n)}),this};const Wl=/^\s*<(\w+)[^>]*>/,Yl=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,_s={"*":vo,tr:$l,td:ds,th:ds,thead:pr,tbody:pr,tfoot:pr};function So(e){if(!de(e))return[];if(Yl.test(e))return[ht(RegExp.$1)];const t=Wl.test(e)&&RegExp.$1,n=_s[t]||_s["*"];return n.innerHTML=e,H(n.childNodes).detach().get()}H.parseHTML=So;C.has=function(e){const t=de(e)?(n,r)=>li(e,r).length:(n,r)=>r.contains(e);return this.filter(t)};C.not=function(e){const t=Wn(e);return this.filter((n,r)=>(!de(e)||ne(r))&&!t.call(r,n,r))};function Be(e,t,n,r){const i=[],o=pt(t),a=r&&Wn(r);for(let u=0,f=e.length;ut.selected&&!t.disabled&&!t.parentNode.disabled),"value"):e.value||""}function Gl(e){return arguments.length?this.each((t,n)=>{const r=n.multiple&&n.options;if(r||Io.test(n.type)){const i=Fn(e)?Eo.call(e,String):Zt(e)?[]:[String(e)];r?ie(n.options,(o,a)=>{a.selected=i.indexOf(a.value)>=0},!0):n.checked=i.indexOf(n.value)>=0}else n.value=he(e)||Zt(e)?"":e}):this[0]&&Oo(this[0])}C.val=Gl;C.is=function(e){const t=Wn(e);return ci.call(this,(n,r)=>t.call(n,r,n))};H.guid=1;function Me(e){return e.length>1?ai.call(e,(t,n,r)=>bo.call(r,t)===n):e}H.unique=Me;C.add=function(e,t){return H(Me(this.get().concat(H(e,t).get())))};C.children=function(e){return qe(H(Me(Be(this,t=>t.children))),e)};C.parent=function(e){return qe(H(Me(Be(this,"parentNode"))),e)};C.index=function(e){const t=e?H(e)[0]:this[0],n=e?this:H(t).parent().children();return bo.call(n,t)};C.closest=function(e){const t=this.filter(e);if(t.length)return t;const n=this.parent();return n.length?n.closest(e):t};C.siblings=function(e){return qe(H(Me(Be(this,t=>H(t).parent().children().not(t)))),e)};C.find=function(e){return H(Me(Be(this,t=>li(e,t))))};const Ul=/^\s*\s*$/g,Kl=/^$|^module$|\/(java|ecma)script/i,ql=["type","src","nonce","noModule"];function zl(e,t){const n=H(e);n.filter("script").add(n.find("script")).each((r,i)=>{if(Kl.test(i.type)&&go.contains(i)){const o=ht("script");o.text=i.textContent.replace(Ul,""),ie(ql,(a,u)=>{i[u]&&(o[u]=i[u])}),t.head.insertBefore(o,null),t.head.removeChild(o)}})}function Xl(e,t,n,r,i){r?e.insertBefore(t,n?e.firstChild:null):e.nodeName==="HTML"?e.parentNode.replaceChild(t,e):e.parentNode.insertBefore(t,n?e:e.nextSibling),i&&zl(t,e.ownerDocument)}function ze(e,t,n,r,i,o,a,u){return ie(e,(f,d)=>{ie(H(d),(g,s)=>{ie(H(t),(c,l)=>{const h=n?s:l,_=n?l:s,p=n?g:c;Xl(h,p?_.cloneNode(!0):_,r,i,!p)},u)},a)},o),t}C.after=function(){return ze(arguments,this,!1,!1,!1,!0,!0)};C.append=function(){return ze(arguments,this,!1,!1,!0)};function Ql(e){if(!arguments.length)return this[0]&&this[0].innerHTML;if(he(e))return this;const t=/]/.test(e);return this.each((n,r)=>{!ne(r)||(t?H(r).empty().append(e):r.innerHTML=e)})}C.html=Ql;C.appendTo=function(e){return ze(arguments,this,!0,!1,!0)};C.wrapInner=function(e){return this.each((t,n)=>{const r=H(n),i=r.contents();i.length?i.wrapAll(e):r.append(e)})};C.before=function(){return ze(arguments,this,!1,!0)};C.wrapAll=function(e){let t=H(e),n=t[0];for(;n.children.length;)n=n.firstElementChild;return this.first().before(t),this.appendTo(n)};C.wrap=function(e){return this.each((t,n)=>{const r=H(e)[0];H(n).wrapAll(t?r.cloneNode(!0):r)})};C.insertAfter=function(e){return ze(arguments,this,!0,!1,!1,!1,!1,!0)};C.insertBefore=function(e){return ze(arguments,this,!0,!0)};C.prepend=function(){return ze(arguments,this,!1,!0,!0,!0,!0)};C.prependTo=function(e){return ze(arguments,this,!0,!0,!0,!1,!1,!0)};C.contents=function(){return H(Me(Be(this,e=>e.tagName==="IFRAME"?[e.contentDocument]:e.tagName==="TEMPLATE"?e.content.childNodes:e.childNodes)))};C.next=function(e,t,n){return qe(H(Me(Be(this,"nextElementSibling",t,n))),e)};C.nextAll=function(e){return this.next(e,!0)};C.nextUntil=function(e,t){return this.next(t,!0,e)};C.parents=function(e,t){return qe(H(Me(Be(this,"parentElement",!0,t))),e)};C.parentsUntil=function(e,t){return this.parents(t,e)};C.prev=function(e,t,n){return qe(H(Me(Be(this,"previousElementSibling",t,n))),e)};C.prevAll=function(e){return this.prev(e,!0)};C.prevUntil=function(e,t){return this.prev(t,!0,e)};C.map=function(e){return H(Cl.apply([],Eo.call(this,(t,n)=>e.call(t,n,t))))};C.clone=function(){return this.map((e,t)=>t.cloneNode(!0))};C.offsetParent=function(){return this.map((e,t)=>{let n=t.offsetParent;for(;n&&Re(n,"position")==="static";)n=n.offsetParent;return n||go})};C.slice=function(e,t){return H(wo.call(this,e,t))};const Jl=/-([a-z])/g;function fi(e){return e.replace(Jl,(t,n)=>n.toUpperCase())}C.ready=function(e){const t=()=>setTimeout(e,0,H);return Pe.readyState!=="loading"?t():Pe.addEventListener("DOMContentLoaded",t),this};C.unwrap=function(){return this.parent().each((e,t)=>{if(t.tagName==="BODY")return;const n=H(t);n.replaceWith(n.children())}),this};C.offset=function(){const e=this[0];if(!e)return;const t=e.getBoundingClientRect();return{top:t.top+Cn.pageYOffset,left:t.left+Cn.pageXOffset}};C.position=function(){const e=this[0];if(!e)return;const t=Re(e,"position")==="fixed",n=t?e.getBoundingClientRect():this.offset();if(!t){const r=e.ownerDocument;let i=e.offsetParent||r.documentElement;for(;(i===r.body||i===r.documentElement)&&Re(i,"position")==="static";)i=i.parentNode;if(i!==e&&ne(i)){const o=H(i).offset();n.top-=o.top+xe(i,"borderTopWidth"),n.left-=o.left+xe(i,"borderLeftWidth")}}return{top:n.top-xe(e,"marginTop"),left:n.left-xe(e,"marginLeft")}};const xo={class:"className",contenteditable:"contentEditable",for:"htmlFor",readonly:"readOnly",maxlength:"maxLength",tabindex:"tabIndex",colspan:"colSpan",rowspan:"rowSpan",usemap:"useMap"};C.prop=function(e,t){if(!!e){if(de(e))return e=xo[e]||e,arguments.length<2?this[0]&&this[0][e]:this.each((n,r)=>{r[e]=t});for(const n in e)this.prop(n,e[n]);return this}};C.removeProp=function(e){return this.each((t,n)=>{delete n[xo[e]||e]})};const Zl=/^--/;function di(e){return Zl.test(e)}const mr={},{style:eu}=vo,tu=["webkit","moz","ms"];function nu(e,t=di(e)){if(t)return e;if(!mr[e]){const n=fi(e),r=`${n[0].toUpperCase()}${n.slice(1)}`,i=`${n} ${tu.join(`${r} `)}${r}`.split(" ");ie(i,(o,a)=>{if(a in eu)return mr[e]=a,!1})}return mr[e]}const ru={animationIterationCount:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0};function $o(e,t,n=di(e)){return!n&&!ru[e]&&Ao(t)?`${t}px`:t}function iu(e,t){if(de(e)){const n=di(e);return e=nu(e,n),arguments.length<2?this[0]&&Re(this[0],e,n):e?(t=$o(e,t,n),this.each((r,i)=>{!ne(i)||(n?i.style.setProperty(e,t):i.style[e]=t)})):this}for(const n in e)this.css(n,e[n]);return this}C.css=iu;function Co(e,t){try{return e(t)}catch{return t}}const su=/^\s+|\s+$/;function ms(e,t){const n=e.dataset[t]||e.dataset[fi(t)];return su.test(n)?n:Co(JSON.parse,n)}function ou(e,t,n){n=Co(JSON.stringify,n),e.dataset[fi(t)]=n}function au(e,t){if(!e){if(!this[0])return;const n={};for(const r in this[0].dataset)n[r]=ms(this[0],r);return n}if(de(e))return arguments.length<2?this[0]&&ms(this[0],e):he(t)?this:this.each((n,r)=>{ou(r,e,t)});for(const n in e)this.data(n,e[n]);return this}C.data=au;function Do(e,t){const n=e.documentElement;return Math.max(e.body[`scroll${t}`],n[`scroll${t}`],e.body[`offset${t}`],n[`offset${t}`],n[`client${t}`])}ie([!0,!1],(e,t)=>{ie(["Width","Height"],(n,r)=>{const i=`${t?"outer":"inner"}${r}`;C[i]=function(o){if(!!this[0])return Ot(this[0])?t?this[0][`inner${r}`]:this[0].document.documentElement[`client${r}`]:xt(this[0])?Do(this[0],r):this[0][`${t?"offset":"client"}${r}`]+(o&&t?xe(this[0],`margin${n?"Top":"Left"}`)+xe(this[0],`margin${n?"Bottom":"Right"}`):0)}})});ie(["Width","Height"],(e,t)=>{const n=t.toLowerCase();C[n]=function(r){if(!this[0])return he(r)?void 0:this;if(!arguments.length)return Ot(this[0])?this[0].document.documentElement[`client${t}`]:xt(this[0])?Do(this[0],t):this[0].getBoundingClientRect()[n]-hs(this[0],!e);const i=parseInt(r,10);return this.each((o,a)=>{if(!ne(a))return;const u=Re(a,"boxSizing");a.style[n]=$o(n,i+(u==="border-box"?hs(a,!e):0))})}});const gs="___cd";C.toggle=function(e){return this.each((t,n)=>{if(!ne(n))return;(he(e)?ps(n):e)?(n.style.display=n[gs]||"",ps(n)&&(n.style.display=jl(n.tagName))):(n[gs]=Re(n,"display"),n.style.display="none")})};C.hide=function(){return this.toggle(!1)};C.show=function(){return this.toggle(!0)};const vs="___ce",hi=".",pi={focus:"focusin",blur:"focusout"},No={mouseenter:"mouseover",mouseleave:"mouseout"},cu=/^(mouse|pointer|contextmenu|drag|drop|click|dblclick)/i;function _i(e){return No[e]||pi[e]||e}function mi(e){const t=e.split(hi);return[t[0],t.slice(1).sort()]}C.trigger=function(e,t){if(de(e)){const[r,i]=mi(e),o=_i(r);if(!o)return this;const a=cu.test(o)?"MouseEvents":"HTMLEvents";e=Pe.createEvent(a),e.initEvent(o,!0,!0),e.namespace=i.join(hi),e.___ot=r}e.___td=t;const n=e.___ot in pi;return this.each((r,i)=>{n&&pt(i[e.___ot])&&(i[`___i${e.type}`]=!0,i[e.___ot](),i[`___i${e.type}`]=!1),i.dispatchEvent(e)})};function Mo(e){return e[vs]=e[vs]||{}}function lu(e,t,n,r,i){const o=Mo(e);o[t]=o[t]||[],o[t].push([n,r,i]),e.addEventListener(t,i)}function Lo(e,t){return!t||!ci.call(t,n=>e.indexOf(n)<0)}function Nn(e,t,n,r,i){const o=Mo(e);if(t)o[t]&&(o[t]=o[t].filter(([a,u,f])=>{if(i&&f.guid!==i.guid||!Lo(a,n)||r&&r!==u)return!0;e.removeEventListener(t,f)}));else for(t in o)Nn(e,t,n,r,i)}C.off=function(e,t,n){if(he(e))this.each((r,i)=>{!ne(i)&&!xt(i)&&!Ot(i)||Nn(i)});else if(de(e))pt(t)&&(n=t,t=""),ie(jn(e),(r,i)=>{const[o,a]=mi(i),u=_i(o);this.each((f,d)=>{!ne(d)&&!xt(d)&&!Ot(d)||Nn(d,u,a,t,n)})});else for(const r in e)this.off(r,e[r]);return this};C.remove=function(e){return qe(this,e).detach().off(),this};C.replaceWith=function(e){return this.before(e).remove()};C.replaceAll=function(e){return H(e).replaceWith(this),this};function uu(e,t,n,r,i){if(!de(e)){for(const o in e)this.on(o,t,n,e[o],i);return this}return de(t)||(he(t)||Zt(t)?t="":he(n)?(n=t,t=""):(r=n,n=t,t="")),pt(r)||(r=n,n=void 0),r?(ie(jn(e),(o,a)=>{const[u,f]=mi(a),d=_i(u),g=u in No,s=u in pi;!d||this.each((c,l)=>{if(!ne(l)&&!xt(l)&&!Ot(l))return;const h=function(_){if(_.target[`___i${_.type}`])return _.stopImmediatePropagation();if(_.namespace&&!Lo(f,_.namespace.split(hi))||!t&&(s&&(_.target!==l||_.___ot===d)||g&&_.relatedTarget&&l.contains(_.relatedTarget)))return;let p=l;if(t){let E=_.target;for(;!To(E,t);)if(E===l||(E=E.parentNode,!E))return;p=E}Object.defineProperty(_,"currentTarget",{configurable:!0,get(){return p}}),Object.defineProperty(_,"delegateTarget",{configurable:!0,get(){return l}}),Object.defineProperty(_,"data",{configurable:!0,get(){return n}});const m=r.call(p,_,_.___td);i&&Nn(l,d,f,t,h),m===!1&&(_.preventDefault(),_.stopPropagation())};h.guid=r.guid=r.guid||H.guid++,lu(l,d,f,t,h)})}),this):this}C.on=uu;function fu(e,t,n,r){return this.on(e,t,n,r,!0)}C.one=fu;const du=/\r?\n/g;function hu(e,t){return`&${encodeURIComponent(e)}=${encodeURIComponent(t.replace(du,`\r -`))}`}const pu=/file|reset|submit|button|image/i,Io=/radio|checkbox/i;C.serialize=function(){let e="";return this.each((t,n)=>{ie(n.elements||[n],(r,i)=>{if(i.disabled||!i.name||i.tagName==="FIELDSET"||pu.test(i.type)||Io.test(i.type)&&!i.checked)return;const o=Oo(i);if(!he(o)){const a=Fn(o)?o:[o];ie(a,(u,f)=>{e+=hu(i.name,f)})}})}),e.slice(1)};nn.extend(mo);function _u(){let e=document.querySelectorAll("[data-time]");for(const t of e){let n=t.dataset.time,r=t.dataset.timeFormat;t.innerText=nn(n).format(r)}}function mu(e,t){H(t).select(),document.execCommand("copy"),H(e.target).tooltip({title:"Copied!",trigger:"manual"}),H(e.target).tooltip("show"),setTimeout(function(){H(e.target).tooltip("hide")},1500)}function gu(e){let t=0,n,r,i;if(e.length===0)return t;for(n=0,i=e.length;nnew Promise((t,n)=>{const r=document.querySelector(`script[src='${e}']`);r&&r.remove();const i=document.createElement("script");document.body.appendChild(i),i.onload=t,i.onerror=n,i.async=!0,i.src=e});async function bu(e,t){M._internal.challenge={};let n=M.config,r=await Po(e);M._functions.challenge.displayChallenge&&M._functions.challenge.displayChallenge(r),Ro(n.urlRoot+r.type_data.scripts.view).then(()=>{const o=M._internal.challenge;o.data=r,o.preRender(),M._functions.challenge.renderChallenge?M._functions.challenge.renderChallenge(o):t&&t(o),o.postRender()})}async function Eu(e,t,n=!1){if(M._functions.challenge.submitChallenge){M._functions.challenge.submitChallenge(e,t);return}let r="/api/v1/challenges/attempt";(n===!0||M.config.preview===!0)&&(r+="?preview=true");const o=await(await M.fetch(r,{method:"POST",body:JSON.stringify({challenge_id:e,submission:t})})).json();return M._functions.challenge.displaySubmissionResponse&&M._functions.challenge.displaySubmissionResponse(o),o}async function Ho(e){return await(await M.fetch(`/api/v1/hints/${e}`,{method:"GET"})).json()}async function gi(e,t="hints"){return await(await M.fetch("/api/v1/unlocks",{method:"POST",body:JSON.stringify({target:e,type:t})})).json()}async function Bo(e){let n=(await Ho(e)).data;if(n.content){M._functions.challenge.displayHint(n);return}if(await Fo(n)){let i=await gi(e);i.success?await Bo(e):M._functions.challenge.displayUnlockError(i)}}async function wu(e){return M._functions.challenge.displayUnlock(e)}async function Fo(e){return M._functions.challenge.displayHintUnlock(e)}async function Vo(e){return M._functions.challenge.displaySolutionUnlock(e)}async function jo(e){return(await(await M.fetch(`/api/v1/challenges/${e}/solves`,{method:"GET"})).json()).data}async function Au(e){let t=await jo(e);M._functions.challenge.displaySolves&&M._functions.challenge.displaySolves(t)}async function Wo(e){return(await(await M.fetch(`/api/v1/solutions/${e}`,{method:"GET"})).json()).data}async function Yo(e){let t=await Wo(e);if(t.content&&M._functions.challenge.displaySolution){M._functions.challenge.displaySolution(t);return}if(await Vo(t)){let r=await gi(t.id,"solutions");r.success?await Yo(e):M._functions.challenge.displayUnlockError(r)}}async function Tu(e=null){let t="/api/v1/scoreboard";return e&&(t=`${t}?bracket_id=${e}`),(await(await M.fetch(t,{method:"GET"})).json()).data}async function Su(e,t=null){let n=`/api/v1/scoreboard/top/${e}`;return t&&(n=`${n}?bracket_id=${t}`),(await(await M.fetch(n,{method:"GET"})).json()).data}async function Ou(e){return(await(await M.fetch(`/api/v1/brackets?type=${e}`,{method:"GET"})).json()).data}async function xu(e){return await(await M.fetch("/api/v1/users/me",{method:"PATCH",body:JSON.stringify(e)})).json()}async function $u(e){return await(await M.fetch("/api/v1/tokens",{method:"POST",body:JSON.stringify(e)})).json()}async function Cu(e){return await(await M.fetch(`/api/v1/tokens/${e}`,{method:"DELETE"})).json()}async function Du(e="me",t){return await(await M.fetch(`/api/v1/users/${e}/submissions?challenge_id=${t}`,{method:"GET"})).json()}async function Nu(e){return await(await M.fetch(`/api/v1/users/${e}/solves`,{method:"GET"})).json()}async function Mu(e){return await(await M.fetch(`/api/v1/users/${e}/fails`,{method:"GET"})).json()}async function Lu(e){return await(await M.fetch(`/api/v1/users/${e}/awards`,{method:"GET"})).json()}async function Iu(){return await(await M.fetch("/api/v1/teams/me/members",{method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}})).json()}async function ku(){return await(await M.fetch("/api/v1/teams/me",{method:"DELETE"})).json()}async function Pu(e){return await(await M.fetch("/api/v1/teams/me",{method:"PATCH",body:JSON.stringify(e)})).json()}async function Ru(e){return await(await M.fetch(`/api/v1/teams/${e}/solves`,{method:"GET"})).json()}async function Hu(e){return await(await M.fetch(`/api/v1/teams/${e}/fails`,{method:"GET"})).json()}async function Bu(e){return await(await M.fetch(`/api/v1/teams/${e}/awards`,{method:"GET"})).json()}function Fu(e){const t=document.createElement("template");return t.innerHTML=e.trim(),t.content.firstChild}function Go(e){const t=document.createElement("div");return t.innerText=e,t.innerHTML}class Vu{constructor(){this.id=Math.random(),this.isMaster=!1,this.others={},window.addEventListener("storage",this),window.addEventListener("unload",this),this.broadcast("hello"),setTimeout(this.check.bind(this),500),this._checkInterval=setInterval(this.check.bind(this),9e3),this._pingInterval=setInterval(this.sendPing.bind(this),17e3)}destroy(){clearInterval(this._pingInterval),clearInterval(this._checkInterval),window.removeEventListener("storage",this),window.removeEventListener("unload",this),this.broadcast("bye")}handleEvent(t){if(t.type==="unload"){this.destroy();return}if(t.type==="broadcast")try{const n=JSON.parse(t.newValue);n.id!==this.id&&this[n.type](n)}catch(n){console.error(n)}}sendPing(){this.broadcast("ping")}hello(t){if(this.ping(t),t.id{ie(n.elements||[n],(r,i)=>{if(i.disabled||!i.name||i.tagName==="FIELDSET"||pu.test(i.type)||Io.test(i.type)&&!i.checked)return;const o=Oo(i);if(!he(o)){const a=Fn(o)?o:[o];ie(a,(u,f)=>{e+=hu(i.name,f)})}})}),e.slice(1)};nn.extend(mo);function _u(){let e=document.querySelectorAll("[data-time]");for(const t of e){let n=t.dataset.time,r=t.dataset.timeFormat;t.innerText=nn(n).format(r)}}function mu(e,t){H(t).select(),document.execCommand("copy"),H(e.target).tooltip({title:"Copied!",trigger:"manual"}),H(e.target).tooltip("show"),setTimeout(function(){H(e.target).tooltip("hide")},1500)}function gu(e){let t=0,n,r,i;if(e.length===0)return t;for(n=0,i=e.length;nnew Promise((t,n)=>{const r=document.querySelector(`script[src='${e}']`);r&&r.remove();const i=document.createElement("script");document.body.appendChild(i),i.onload=t,i.onerror=n,i.async=!0,i.src=e});async function bu(e,t){M._internal.challenge={};let n=M.config,r=await Po(e);M._functions.challenge.displayChallenge&&M._functions.challenge.displayChallenge(r),Ro(n.urlRoot+r.type_data.scripts.view).then(()=>{const o=M._internal.challenge;o.data=r,o.preRender(),M._functions.challenge.renderChallenge?M._functions.challenge.renderChallenge(o):t&&t(o),o.postRender()})}async function Eu(e,t,n=!1){if(M._functions.challenge.submitChallenge){M._functions.challenge.submitChallenge(e,t);return}let r="/api/v1/challenges/attempt";(n===!0||M.config.preview===!0)&&(r+="?preview=true");const o=await(await M.fetch(r,{method:"POST",body:JSON.stringify({challenge_id:e,submission:t})})).json();return M._functions.challenge.displaySubmissionResponse&&M._functions.challenge.displaySubmissionResponse(o),o}async function Ho(e){return await(await M.fetch(`/api/v1/hints/${e}`,{method:"GET"})).json()}async function gi(e,t="hints"){return await(await M.fetch("/api/v1/unlocks",{method:"POST",body:JSON.stringify({target:e,type:t})})).json()}async function Bo(e){let n=(await Ho(e)).data;if(n.content){M._functions.challenge.displayHint(n);return}if(await Fo(n)){let i=await gi(e);i.success?await Bo(e):M._functions.challenge.displayUnlockError(i)}}async function wu(e){return M._functions.challenge.displayUnlock(e)}async function Fo(e){return M._functions.challenge.displayHintUnlock(e)}async function Vo(e){return M._functions.challenge.displaySolutionUnlock(e)}async function jo(e){return(await(await M.fetch(`/api/v1/challenges/${e}/solves`,{method:"GET"})).json()).data}async function Au(e){let t=await jo(e);M._functions.challenge.displaySolves&&M._functions.challenge.displaySolves(t)}async function Wo(e){return(await(await M.fetch(`/api/v1/solutions/${e}`,{method:"GET"})).json()).data}async function Yo(e){let t=await Wo(e);if(t.content&&M._functions.challenge.displaySolution){M._functions.challenge.displaySolution(t);return}if(await Vo(t)){let r=await gi(t.id,"solutions");r.success?await Yo(e):M._functions.challenge.displayUnlockError(r)}}async function Tu(e,t,n){return(await(await M.fetch(`/api/v1/challenges/${e}/ratings`,{method:"PUT",body:JSON.stringify({value:t,review:n})})).json()).data}async function Su(e=null){let t="/api/v1/scoreboard";return e&&(t=`${t}?bracket_id=${e}`),(await(await M.fetch(t,{method:"GET"})).json()).data}async function Ou(e,t=null){let n=`/api/v1/scoreboard/top/${e}`;return t&&(n=`${n}?bracket_id=${t}`),(await(await M.fetch(n,{method:"GET"})).json()).data}async function xu(e){return(await(await M.fetch(`/api/v1/brackets?type=${e}`,{method:"GET"})).json()).data}async function $u(e){return await(await M.fetch("/api/v1/users/me",{method:"PATCH",body:JSON.stringify(e)})).json()}async function Cu(e){return await(await M.fetch("/api/v1/tokens",{method:"POST",body:JSON.stringify(e)})).json()}async function Du(e){return await(await M.fetch(`/api/v1/tokens/${e}`,{method:"DELETE"})).json()}async function Nu(e="me",t){return await(await M.fetch(`/api/v1/users/${e}/submissions?challenge_id=${t}`,{method:"GET"})).json()}async function Mu(e){return await(await M.fetch(`/api/v1/users/${e}/solves`,{method:"GET"})).json()}async function Lu(e){return await(await M.fetch(`/api/v1/users/${e}/fails`,{method:"GET"})).json()}async function Iu(e){return await(await M.fetch(`/api/v1/users/${e}/awards`,{method:"GET"})).json()}async function ku(){return await(await M.fetch("/api/v1/teams/me/members",{method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}})).json()}async function Pu(){return await(await M.fetch("/api/v1/teams/me",{method:"DELETE"})).json()}async function Ru(e){return await(await M.fetch("/api/v1/teams/me",{method:"PATCH",body:JSON.stringify(e)})).json()}async function Hu(e){return await(await M.fetch(`/api/v1/teams/${e}/solves`,{method:"GET"})).json()}async function Bu(e){return await(await M.fetch(`/api/v1/teams/${e}/fails`,{method:"GET"})).json()}async function Fu(e){return await(await M.fetch(`/api/v1/teams/${e}/awards`,{method:"GET"})).json()}function Vu(e){const t=document.createElement("template");return t.innerHTML=e.trim(),t.content.firstChild}function Go(e){const t=document.createElement("div");return t.innerText=e,t.innerHTML}class ju{constructor(){this.id=Math.random(),this.isMaster=!1,this.others={},window.addEventListener("storage",this),window.addEventListener("unload",this),this.broadcast("hello"),setTimeout(this.check.bind(this),500),this._checkInterval=setInterval(this.check.bind(this),9e3),this._pingInterval=setInterval(this.sendPing.bind(this),17e3)}destroy(){clearInterval(this._pingInterval),clearInterval(this._checkInterval),window.removeEventListener("storage",this),window.removeEventListener("unload",this),this.broadcast("bye")}handleEvent(t){if(t.type==="unload"){this.destroy();return}if(t.type==="broadcast")try{const n=JSON.parse(t.newValue);n.id!==this.id&&this[n.type](n)}catch(n){console.error(n)}}sendPing(){this.broadcast("ping")}hello(t){if(this.ping(t),t.id=0;i--)r._howls[i].stereo(n);return r},HowlerGlobal.prototype.pos=function(n,r,i){var o=this;if(!o.ctx||!o.ctx.listener)return o;if(r=typeof r!="number"?o._pos[1]:r,i=typeof i!="number"?o._pos[2]:i,typeof n=="number")o._pos=[n,r,i],typeof o.ctx.listener.positionX<"u"?(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]);else return o._pos;return o},HowlerGlobal.prototype.orientation=function(n,r,i,o,a,u){var f=this;if(!f.ctx||!f.ctx.listener)return f;var d=f._orientation;if(r=typeof r!="number"?d[1]:r,i=typeof i!="number"?d[2]:i,o=typeof o!="number"?d[3]:o,a=typeof a!="number"?d[4]:a,u=typeof u!="number"?d[5]:u,typeof n=="number")f._orientation=[n,r,i,o,a,u],typeof f.ctx.listener.forwardX<"u"?(f.ctx.listener.forwardX.setTargetAtTime(n,Howler.ctx.currentTime,.1),f.ctx.listener.forwardY.setTargetAtTime(r,Howler.ctx.currentTime,.1),f.ctx.listener.forwardZ.setTargetAtTime(i,Howler.ctx.currentTime,.1),f.ctx.listener.upX.setTargetAtTime(o,Howler.ctx.currentTime,.1),f.ctx.listener.upY.setTargetAtTime(a,Howler.ctx.currentTime,.1),f.ctx.listener.upZ.setTargetAtTime(u,Howler.ctx.currentTime,.1)):f.ctx.listener.setOrientation(n,r,i,o,a,u);else return d;return f},Howl.prototype.init=function(n){return function(r){var i=this;return i._orientation=r.orientation||[1,0,0],i._stereo=r.stereo||null,i._pos=r.pos||null,i._pannerAttr={coneInnerAngle:typeof r.coneInnerAngle<"u"?r.coneInnerAngle:360,coneOuterAngle:typeof r.coneOuterAngle<"u"?r.coneOuterAngle:360,coneOuterGain:typeof r.coneOuterGain<"u"?r.coneOuterGain:0,distanceModel:typeof r.distanceModel<"u"?r.distanceModel:"inverse",maxDistance:typeof r.maxDistance<"u"?r.maxDistance:1e4,panningModel:typeof r.panningModel<"u"?r.panningModel:"HRTF",refDistance:typeof r.refDistance<"u"?r.refDistance:1,rolloffFactor:typeof r.rolloffFactor<"u"?r.rolloffFactor:1},i._onstereo=r.onstereo?[{fn:r.onstereo}]:[],i._onpos=r.onpos?[{fn:r.onpos}]:[],i._onorientation=r.onorientation?[{fn:r.onorientation}]:[],n.call(this,r)}}(Howl.prototype.init),Howl.prototype.stereo=function(n,r){var i=this;if(!i._webAudio)return i;if(i._state!=="loaded")return i._queue.push({event:"stereo",action:function(){i.stereo(n,r)}}),i;var o=typeof Howler.ctx.createStereoPanner>"u"?"spatial":"stereo";if(typeof r>"u")if(typeof n=="number")i._stereo=n,i._pos=[n,0,0];else return i._stereo;for(var a=i._getSoundIds(r),u=0;u"u")if(typeof n=="number")a._pos=[n,r,i];else return a._pos;for(var u=a._getSoundIds(o),f=0;f"u")if(typeof n=="number")a._orientation=[n,r,i];else return a._orientation;for(var u=a._getSoundIds(o),f=0;f"u"&&(i.pannerAttr||(i.pannerAttr={coneInnerAngle:i.coneInnerAngle,coneOuterAngle:i.coneOuterAngle,coneOuterGain:i.coneOuterGain,distanceModel:i.distanceModel,maxDistance:i.maxDistance,refDistance:i.refDistance,rolloffFactor:i.rolloffFactor,panningModel:i.panningModel}),n._pannerAttr={coneInnerAngle:typeof i.pannerAttr.coneInnerAngle<"u"?i.pannerAttr.coneInnerAngle:n._coneInnerAngle,coneOuterAngle:typeof i.pannerAttr.coneOuterAngle<"u"?i.pannerAttr.coneOuterAngle:n._coneOuterAngle,coneOuterGain:typeof i.pannerAttr.coneOuterGain<"u"?i.pannerAttr.coneOuterGain:n._coneOuterGain,distanceModel:typeof i.pannerAttr.distanceModel<"u"?i.pannerAttr.distanceModel:n._distanceModel,maxDistance:typeof i.pannerAttr.maxDistance<"u"?i.pannerAttr.maxDistance:n._maxDistance,refDistance:typeof i.pannerAttr.refDistance<"u"?i.pannerAttr.refDistance:n._refDistance,rolloffFactor:typeof i.pannerAttr.rolloffFactor<"u"?i.pannerAttr.rolloffFactor:n._rolloffFactor,panningModel:typeof i.pannerAttr.panningModel<"u"?i.pannerAttr.panningModel:n._panningModel});else return a=n._soundById(parseInt(r[0],10)),a?a._pannerAttr:n._pannerAttr;else r.length===2&&(i=r[0],o=parseInt(r[1],10));for(var u=n._getSoundIds(o),f=0;fJSON.parse(localStorage.getItem(`CTFd:${e}`))||t,qo=(e,t)=>{localStorage.setItem(`CTFd:${e}`,JSON.stringify(t))};function Yn(){return Ko("read_notifications")}function Gn(){return Ko("unread_notifications")}function vi(e){qo("read_notifications",e)}function Un(e){qo("unread_notifications",e)}function ju(e){const t=[...Yn(),e];return vi(t),zo(e),t}function Wu(e){const t=[...Gn(),e];return Un(t),t}function ys(){const e=Yn();return e.length===0?0:Math.max(...e)}function zo(e){const n=Gn().filter(r=>r!==e);Un(n)}function Yu(){const e=Gn(),t=Yn();vi(t.concat(e)),Un([])}const q={init:(e,t)=>{q.source=new EventSource(e+"/events");for(let r=0;r{let i=r.headers.get("result-count");i&&(q.controller.broadcast("counter",{count:i}),M._functions.events.eventCount(i))})},controller:new Vu,source:null,howl:null,connect:()=>{q.source.addEventListener("notification",function(e){let t=JSON.parse(e.data);q.controller.broadcast("notification",t),M.events.counter.unread.add(t.id);let n=M.events.counter.unread.getAll().length;q.controller.broadcast("counter",{count:n}),M._functions.events.eventCount(n),q.render(t),t.sound&&q.howl.play()},!1)},disconnect:()=>{q.source&&q.source.close()},render:e=>{switch(e.type){case"toast":{M._functions.events.eventToast(e);break}case"alert":{M._functions.events.eventAlert(e);break}case"background":{M._functions.events.eventBackground(e);break}default:{console.log(e),alert(e);break}}},counter:{read:{getAll:Yn,setAll:vi,add:ju,getLast:ys},unread:{getAll:Gn,setAll:Un,add:Wu,remove:zo,readAll:Yu}}};q.controller.alert=function(e){q.render(e)};q.controller.toast=function(e){q.render(e)};q.controller.background=function(e){q.render(e)};q.controller.counter=function(e){M._functions.events.eventCount(e.count)};q.controller.masterDidChange=function(){this.isMaster?q.connect():q.disconnect()};var Xo={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(we,function(){return function(n,r,i){n=n||{};var o=r.prototype,a={future:"in %s",past:"%s ago",s:"a few 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"};function u(d,g,s,c){return o.fromToBase(d,g,s,c)}i.en.relativeTime=a,o.fromToBase=function(d,g,s,c,l){for(var h,_,p,m=s.$locale().relativeTime||a,E=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],O=E.length,D=0;D0,I<=L.r||!L.r){I<=1&&D>0&&(L=E[D-1]);var F=m[L.l];l&&(I=l(""+I)),_=typeof F=="string"?F.replace("%d",I):F(I,g,L.l,p);break}}if(g)return _;var j=p?m.future:m.past;return typeof j=="function"?j(_):j.replace("%s",_)},o.to=function(d,g){return u(d,g,this,!0)},o.from=function(d,g){return u(d,g,this)};var f=function(d){return d.$u?i.utc():i()};o.toNow=function(d){return this.to(f(this),d)},o.fromNow=function(d){return this.from(f(this),d)}}})})(Xo);const Gu=Xo.exports;nn.extend(mo);nn.extend(Gu);const bt={id:null,name:null,email:null},Sn={id:null,name:null},Uu={},Ku={challenge:{displayChallenge:null,renderChallenge:null,displayHint(e){alert(e.content)},displayUnlock(e){return confirm("Are you sure you'd like to unlock this hint?")},displayHintUnlock(e){return confirm("Are you sure you'd like to unlock this hint?")},displaySolutionUnlock(e){return confirm("Are you sure you'd like to unlock this solution?")},displayUnlockError(e){const t=[];Object.keys(e.errors).map(r=>{t.push(e.errors[r])});const n=t.join(` -`);alert(n)},submitChallenge:null,displaySubmissionResponse:null,displaySolves:null},challenges:{displayChallenges:null,sortChallenges:null},events:{eventAlert:null,eventToast:null,eventBackground:null,eventRead:null,eventCount:null}},qu={htmlEntities:Go,colorHash:vu,copyToClipboard:mu,hashCode:gu,renderTimes:_u},zu={ajax:{getScript:Ro},html:{createHtmlNode:Fu,htmlEntities:Go}},Xu={challenge:{displayChallenge:bu,submitChallenge:Eu,loadSolves:jo,displaySolves:Au,loadHint:Ho,loadUnlock:gi,displayUnlock:wu,displayHintUnlock:Fo,displaySolutionUnlock:Vo,displayHint:Bo,loadSolution:Wo,displaySolution:Yo},challenges:{getChallenges:ko,getChallenge:Po,displayChallenges:yu},scoreboard:{getScoreboard:Tu,getScoreboardDetail:Su,getBrackets:Ou},settings:{updateSettings:xu,generateToken:$u,deleteToken:Cu},users:{userSolves:Nu,userFails:Mu,userAwards:Lu,userSubmissions:Du},teams:{getInviteToken:Iu,disbandTeam:ku,updateTeamSettings:Pu,teamSolves:Ru,teamFails:Hu,teamAwards:Bu}},Qu={$:H,dayjs:nn};let bs=!1;const Ju=e=>{bs||(bs=!0,X.urlRoot=e.urlRoot||X.urlRoot,X.csrfNonce=e.csrfNonce||X.csrfNonce,X.userMode=e.userMode||X.userMode,X.start=e.start||X.start,X.end=e.end||X.end,X.themeSettings=e.themeSettings||X.themeSettings,X.eventSounds=e.eventSounds||X.eventSounds,X.preview=!1,bt.id=e.userId,bt.name=e.userName||bt.name,bt.email=e.userEmail||bt.email,Sn.id=e.teamId,Sn.name=e.teamName||Sn.name,q.init(X.urlRoot,X.eventSounds))},Zu={run(e){e(yi)}},yi={init:Ju,config:X,fetch:xl,user:bt,team:Sn,ui:qu,utils:zu,pages:Xu,events:q,_internal:Uu,_functions:Ku,plugin:Zu,lib:Qu};window.CTFd=yi;const M=yi;var Qo={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(we,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",u="minute",f="hour",d="day",g="week",s="month",c="quarter",l="year",h="date",_="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,E={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},O=function(A,b,v){var T=String(A);return!T||T.length>=b?A:""+Array(b+1-T.length).join(v)+A},D={s:O,z:function(A){var b=-A.utcOffset(),v=Math.abs(b),T=Math.floor(v/60),y=v%60;return(b<=0?"+":"-")+O(T,2,"0")+":"+O(y,2,"0")},m:function A(b,v){if(b.date()1)return A(S[0])}else{var k=b.name;I[k]=b,y=k}return!T&&y&&(L=y),y||!T&&L},$=function(A,b){if(F(A))return A.clone();var v=typeof b=="object"?b:{};return v.date=A,v.args=arguments,new Y(v)},N=D;N.l=j,N.i=F,N.w=function(A,b){return $(A,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var Y=function(){function A(v){this.$L=j(v.locale,null,!0),this.parse(v)}var b=A.prototype;return b.parse=function(v){this.$d=function(T){var y=T.date,x=T.utc;if(y===null)return new Date(NaN);if(N.u(y))return new Date;if(y instanceof Date)return new Date(y);if(typeof y=="string"&&!/Z$/i.test(y)){var S=y.match(p);if(S){var k=S[2]-1||0,B=(S[7]||"0").substring(0,3);return x?new Date(Date.UTC(S[1],k,S[3]||1,S[4]||0,S[5]||0,S[6]||0,B)):new Date(S[1],k,S[3]||1,S[4]||0,S[5]||0,S[6]||0,B)}}return new Date(y)}(v),this.$x=v.x||{},this.init()},b.init=function(){var v=this.$d;this.$y=v.getFullYear(),this.$M=v.getMonth(),this.$D=v.getDate(),this.$W=v.getDay(),this.$H=v.getHours(),this.$m=v.getMinutes(),this.$s=v.getSeconds(),this.$ms=v.getMilliseconds()},b.$utils=function(){return N},b.isValid=function(){return this.$d.toString()!==_},b.isSame=function(v,T){var y=$(v);return this.startOf(T)<=y&&y<=this.endOf(T)},b.isAfter=function(v,T){return $(v){document.querySelectorAll("[data-time]").forEach(e=>{const t=e.getAttribute("data-time"),n=e.getAttribute("data-time-format")||"MMMM Do, h:mm:ss A";e.innerText=bi(t).format(n)})},tf=()=>{document.querySelectorAll(".form-control").forEach(e=>{e.addEventListener("onfocus",()=>{e.classList.remove("input-filled-invalid"),e.classList.add("input-filled-valid")}),e.addEventListener("onblur",()=>{e.nodeValue===""&&(e.classList.remove("input-filled-valid"),e.classList.remove("input-filled-invalid"))}),e.nodeValue&&e.classList.add("input-filled-valid")}),document.querySelectorAll(".page-select").forEach(e=>{e.addEventListener("change",t=>{var r;const n=new URL(window.location);n.searchParams.set("page",(r=t.target.value)!=null?r:"1"),window.location.href=n.toString()})})};var ea={exports:{}};/*! lolight v1.4.0 - https://larsjung.de/lolight/ */(function(e,t){(function(n,r){e.exports=r()})(we,function(){function n(c){if(typeof c!="string")throw new Error("tok: no string");for(var l=[],h=s.length,_=!1;c;)for(var p=0;p/],["rex",/\/(\\\/|[^\n])*?\//],["str",/(['"`])(\\\1|[\s\S])*?\1/],[g,/[+-]?([0-9]*\.?[0-9]+|[0-9]+\.?[0-9]*)([eE][+-]?[0-9]+)?/],["pct",/[\\.,:;+\-*\/=<>()[\]{}|?!&@~]/],["spc",/\s+/],[d,/[\w$]+/],["unk",/./]];return r(!1,function(c){var l=c.querySelector("head"),h=c.createElement("style");h.textContent=a,l.insertBefore(h,l.firstChild),/^(i|c|loade)/.test(c.readyState)?o():c.addEventListener("DOMContentLoaded",function(){o()})}),o.tok=n,o.el=i,o})})(ea);const nf=ea.exports,rf=()=>{(!M.config.themeSettings.hasOwnProperty("use_builtin_code_highlighter")||M.config.themeSettings.use_builtin_code_highlighter===!0)&&nf("pre code")};var ae="top",pe="bottom",_e="right",ce="left",Kn="auto",Ht=[ae,pe,_e,ce],lt="start",$t="end",ta="clippingParents",Ei="viewport",Et="popper",na="reference",Rr=Ht.reduce(function(e,t){return e.concat([t+"-"+lt,t+"-"+$t])},[]),wi=[].concat(Ht,[Kn]).reduce(function(e,t){return e.concat([t,t+"-"+lt,t+"-"+$t])},[]),ra="beforeRead",ia="read",sa="afterRead",oa="beforeMain",aa="main",ca="afterMain",la="beforeWrite",ua="write",fa="afterWrite",da=[ra,ia,sa,oa,aa,ca,la,ua,fa];function Ne(e){return e?(e.nodeName||"").toLowerCase():null}function Te(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ct(e){var t=Te(e).Element;return e instanceof t||e instanceof Element}function me(e){var t=Te(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ai(e){if(typeof ShadowRoot>"u")return!1;var t=Te(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function sf(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!me(o)||!Ne(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var u=i[a];u===!1?o.removeAttribute(a):o.setAttribute(a,u===!0?"":u)}))})}function of(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),u=a.reduce(function(f,d){return f[d]="",f},{});!me(i)||!Ne(i)||(Object.assign(i.style,u),Object.keys(o).forEach(function(f){i.removeAttribute(f)}))})}}const Ti={name:"applyStyles",enabled:!0,phase:"write",fn:sf,effect:of,requires:["computeStyles"]};function $e(e){return e.split("-")[0]}var it=Math.max,Mn=Math.min,Dt=Math.round;function Nt(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;if(me(e)&&t){var o=e.offsetHeight,a=e.offsetWidth;a>0&&(r=Dt(n.width)/a||1),o>0&&(i=Dt(n.height)/o||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function Si(e){var t=Nt(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ha(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ai(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function He(e){return Te(e).getComputedStyle(e)}function af(e){return["table","td","th"].indexOf(Ne(e))>=0}function Xe(e){return((Ct(e)?e.ownerDocument:e.document)||window.document).documentElement}function qn(e){return Ne(e)==="html"?e:e.assignedSlot||e.parentNode||(Ai(e)?e.host:null)||Xe(e)}function Es(e){return!me(e)||He(e).position==="fixed"?null:e.offsetParent}function cf(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&me(e)){var r=He(e);if(r.position==="fixed")return null}var i=qn(e);for(Ai(i)&&(i=i.host);me(i)&&["html","body"].indexOf(Ne(i))<0;){var o=He(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function rn(e){for(var t=Te(e),n=Es(e);n&&af(n)&&He(n).position==="static";)n=Es(n);return n&&(Ne(n)==="html"||Ne(n)==="body"&&He(n).position==="static")?t:n||cf(e)||t}function Oi(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function qt(e,t,n){return it(e,Mn(t,n))}function lf(e,t,n){var r=qt(e,t,n);return r>n?n:r}function pa(){return{top:0,right:0,bottom:0,left:0}}function _a(e){return Object.assign({},pa(),e)}function ma(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var uf=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,_a(typeof t!="number"?t:ma(t,Ht))};function ff(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,u=$e(n.placement),f=Oi(u),d=[ce,_e].indexOf(u)>=0,g=d?"height":"width";if(!(!o||!a)){var s=uf(i.padding,n),c=Si(o),l=f==="y"?ae:ce,h=f==="y"?pe:_e,_=n.rects.reference[g]+n.rects.reference[f]-a[f]-n.rects.popper[g],p=a[f]-n.rects.reference[f],m=rn(o),E=m?f==="y"?m.clientHeight||0:m.clientWidth||0:0,O=_/2-p/2,D=s[l],L=E-c[g]-s[h],I=E/2-c[g]/2+O,F=qt(D,I,L),j=f;n.modifiersData[r]=(t={},t[j]=F,t.centerOffset=F-I,t)}}function df(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||!ha(t.elements.popper,i)||(t.elements.arrow=i))}const ga={name:"arrow",enabled:!0,phase:"main",fn:ff,effect:df,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Mt(e){return e.split("-")[1]}var hf={top:"auto",right:"auto",bottom:"auto",left:"auto"};function pf(e){var t=e.x,n=e.y,r=window,i=r.devicePixelRatio||1;return{x:Dt(t*i)/i||0,y:Dt(n*i)/i||0}}function ws(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,u=e.position,f=e.gpuAcceleration,d=e.adaptive,g=e.roundOffsets,s=e.isFixed,c=a.x,l=c===void 0?0:c,h=a.y,_=h===void 0?0:h,p=typeof g=="function"?g({x:l,y:_}):{x:l,y:_};l=p.x,_=p.y;var m=a.hasOwnProperty("x"),E=a.hasOwnProperty("y"),O=ce,D=ae,L=window;if(d){var I=rn(n),F="clientHeight",j="clientWidth";if(I===Te(n)&&(I=Xe(n),He(I).position!=="static"&&u==="absolute"&&(F="scrollHeight",j="scrollWidth")),I=I,i===ae||(i===ce||i===_e)&&o===$t){D=pe;var $=s&&I===L&&L.visualViewport?L.visualViewport.height:I[F];_-=$-r.height,_*=f?1:-1}if(i===ce||(i===ae||i===pe)&&o===$t){O=_e;var N=s&&I===L&&L.visualViewport?L.visualViewport.width:I[j];l-=N-r.width,l*=f?1:-1}}var Y=Object.assign({position:u},d&&hf),Q=g===!0?pf({x:l,y:_}):{x:l,y:_};if(l=Q.x,_=Q.y,f){var A;return Object.assign({},Y,(A={},A[D]=E?"0":"",A[O]=m?"0":"",A.transform=(L.devicePixelRatio||1)<=1?"translate("+l+"px, "+_+"px)":"translate3d("+l+"px, "+_+"px, 0)",A))}return Object.assign({},Y,(t={},t[D]=E?_+"px":"",t[O]=m?l+"px":"",t.transform="",t))}function _f(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,u=n.roundOffsets,f=u===void 0?!0:u,d={placement:$e(t.placement),variation:Mt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ws(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ws(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const xi={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_f,data:{}};var mn={passive:!0};function mf(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,u=a===void 0?!0:a,f=Te(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&d.forEach(function(g){g.addEventListener("scroll",n.update,mn)}),u&&f.addEventListener("resize",n.update,mn),function(){o&&d.forEach(function(g){g.removeEventListener("scroll",n.update,mn)}),u&&f.removeEventListener("resize",n.update,mn)}}const $i={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:mf,data:{}};var gf={left:"right",right:"left",bottom:"top",top:"bottom"};function On(e){return e.replace(/left|right|bottom|top/g,function(t){return gf[t]})}var vf={start:"end",end:"start"};function As(e){return e.replace(/start|end/g,function(t){return vf[t]})}function Ci(e){var t=Te(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Di(e){return Nt(Xe(e)).left+Ci(e).scrollLeft}function yf(e){var t=Te(e),n=Xe(e),r=t.visualViewport,i=n.clientWidth,o=n.clientHeight,a=0,u=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,u=r.offsetTop)),{width:i,height:o,x:a+Di(e),y:u}}function bf(e){var t,n=Xe(e),r=Ci(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=it(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=it(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),u=-r.scrollLeft+Di(e),f=-r.scrollTop;return He(i||n).direction==="rtl"&&(u+=it(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:u,y:f}}function Ni(e){var t=He(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function va(e){return["html","body","#document"].indexOf(Ne(e))>=0?e.ownerDocument.body:me(e)&&Ni(e)?e:va(qn(e))}function zt(e,t){var n;t===void 0&&(t=[]);var r=va(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Te(r),a=i?[o].concat(o.visualViewport||[],Ni(r)?r:[]):r,u=t.concat(a);return i?u:u.concat(zt(qn(a)))}function Hr(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ef(e){var t=Nt(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Ts(e,t){return t===Ei?Hr(yf(e)):Ct(t)?Ef(t):Hr(bf(Xe(e)))}function wf(e){var t=zt(qn(e)),n=["absolute","fixed"].indexOf(He(e).position)>=0,r=n&&me(e)?rn(e):e;return Ct(r)?t.filter(function(i){return Ct(i)&&ha(i,r)&&Ne(i)!=="body"}):[]}function Af(e,t,n){var r=t==="clippingParents"?wf(e):[].concat(t),i=[].concat(r,[n]),o=i[0],a=i.reduce(function(u,f){var d=Ts(e,f);return u.top=it(d.top,u.top),u.right=Mn(d.right,u.right),u.bottom=Mn(d.bottom,u.bottom),u.left=it(d.left,u.left),u},Ts(e,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ya(e){var t=e.reference,n=e.element,r=e.placement,i=r?$e(r):null,o=r?Mt(r):null,a=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,f;switch(i){case ae:f={x:a,y:t.y-n.height};break;case pe:f={x:a,y:t.y+t.height};break;case _e:f={x:t.x+t.width,y:u};break;case ce:f={x:t.x-n.width,y:u};break;default:f={x:t.x,y:t.y}}var d=i?Oi(i):null;if(d!=null){var g=d==="y"?"height":"width";switch(o){case lt:f[d]=f[d]-(t[g]/2-n[g]/2);break;case $t:f[d]=f[d]+(t[g]/2-n[g]/2);break}}return f}function Lt(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.boundary,a=o===void 0?ta:o,u=n.rootBoundary,f=u===void 0?Ei:u,d=n.elementContext,g=d===void 0?Et:d,s=n.altBoundary,c=s===void 0?!1:s,l=n.padding,h=l===void 0?0:l,_=_a(typeof h!="number"?h:ma(h,Ht)),p=g===Et?na:Et,m=e.rects.popper,E=e.elements[c?p:g],O=Af(Ct(E)?E:E.contextElement||Xe(e.elements.popper),a,f),D=Nt(e.elements.reference),L=ya({reference:D,element:m,strategy:"absolute",placement:i}),I=Hr(Object.assign({},m,L)),F=g===Et?I:D,j={top:O.top-F.top+_.top,bottom:F.bottom-O.bottom+_.bottom,left:O.left-F.left+_.left,right:F.right-O.right+_.right},$=e.modifiersData.offset;if(g===Et&&$){var N=$[i];Object.keys(j).forEach(function(Y){var Q=[_e,pe].indexOf(Y)>=0?1:-1,A=[ae,pe].indexOf(Y)>=0?"y":"x";j[Y]+=N[A]*Q})}return j}function Tf(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,u=n.flipVariations,f=n.allowedAutoPlacements,d=f===void 0?wi:f,g=Mt(r),s=g?u?Rr:Rr.filter(function(h){return Mt(h)===g}):Ht,c=s.filter(function(h){return d.indexOf(h)>=0});c.length===0&&(c=s);var l=c.reduce(function(h,_){return h[_]=Lt(e,{placement:_,boundary:i,rootBoundary:o,padding:a})[$e(_)],h},{});return Object.keys(l).sort(function(h,_){return l[h]-l[_]})}function Sf(e){if($e(e)===Kn)return[];var t=On(e);return[As(e),t,As(t)]}function Of(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,u=a===void 0?!0:a,f=n.fallbackPlacements,d=n.padding,g=n.boundary,s=n.rootBoundary,c=n.altBoundary,l=n.flipVariations,h=l===void 0?!0:l,_=n.allowedAutoPlacements,p=t.options.placement,m=$e(p),E=m===p,O=f||(E||!h?[On(p)]:Sf(p)),D=[p].concat(O).reduce(function(U,G){return U.concat($e(G)===Kn?Tf(t,{placement:G,boundary:g,rootBoundary:s,padding:d,flipVariations:h,allowedAutoPlacements:_}):G)},[]),L=t.rects.reference,I=t.rects.popper,F=new Map,j=!0,$=D[0],N=0;N=0,v=b?"width":"height",T=Lt(t,{placement:Y,boundary:g,rootBoundary:s,altBoundary:c,padding:d}),y=b?A?_e:ce:A?pe:ae;L[v]>I[v]&&(y=On(y));var x=On(y),S=[];if(o&&S.push(T[Q]<=0),u&&S.push(T[y]<=0,T[x]<=0),S.every(function(U){return U})){$=Y,j=!1;break}F.set(Y,S)}if(j)for(var k=h?3:1,B=function(G){var re=D.find(function(se){var z=F.get(se);if(z)return z.slice(0,G).every(function(W){return W})});if(re)return $=re,"break"},R=k;R>0;R--){var V=B(R);if(V==="break")break}t.placement!==$&&(t.modifiersData[r]._skip=!0,t.placement=$,t.reset=!0)}}const ba={name:"flip",enabled:!0,phase:"main",fn:Of,requiresIfExists:["offset"],data:{_skip:!1}};function Ss(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Os(e){return[ae,_e,pe,ce].some(function(t){return e[t]>=0})}function xf(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Lt(t,{elementContext:"reference"}),u=Lt(t,{altBoundary:!0}),f=Ss(a,r),d=Ss(u,i,o),g=Os(f),s=Os(d);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:d,isReferenceHidden:g,hasPopperEscaped:s},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":s})}const Ea={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:xf};function $f(e,t,n){var r=$e(e),i=[ce,ae].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],u=o[1];return a=a||0,u=(u||0)*i,[ce,_e].indexOf(r)>=0?{x:u,y:a}:{x:a,y:u}}function Cf(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=wi.reduce(function(g,s){return g[s]=$f(s,t.rects,o),g},{}),u=a[t.placement],f=u.x,d=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=a}const wa={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Cf};function Df(e){var t=e.state,n=e.name;t.modifiersData[n]=ya({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Mi={name:"popperOffsets",enabled:!0,phase:"read",fn:Df,data:{}};function Nf(e){return e==="x"?"y":"x"}function Mf(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,u=a===void 0?!1:a,f=n.boundary,d=n.rootBoundary,g=n.altBoundary,s=n.padding,c=n.tether,l=c===void 0?!0:c,h=n.tetherOffset,_=h===void 0?0:h,p=Lt(t,{boundary:f,rootBoundary:d,padding:s,altBoundary:g}),m=$e(t.placement),E=Mt(t.placement),O=!E,D=Oi(m),L=Nf(D),I=t.modifiersData.popperOffsets,F=t.rects.reference,j=t.rects.popper,$=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,N=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),Y=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Q={x:0,y:0};if(!!I){if(o){var A,b=D==="y"?ae:ce,v=D==="y"?pe:_e,T=D==="y"?"height":"width",y=I[D],x=y+p[b],S=y-p[v],k=l?-j[T]/2:0,B=E===lt?F[T]:j[T],R=E===lt?-j[T]:-F[T],V=t.elements.arrow,U=l&&V?Si(V):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:pa(),re=G[b],se=G[v],z=qt(0,F[T],U[T]),W=O?F[T]/2-k-z-re-N.mainAxis:B-z-re-N.mainAxis,J=O?-F[T]/2+k+z+se+N.mainAxis:R+z+se+N.mainAxis,be=t.elements.arrow&&rn(t.elements.arrow),Ee=be?D==="y"?be.clientTop||0:be.clientLeft||0:0,ns=(A=Y==null?void 0:Y[D])!=null?A:0,fl=y+W-ns-Ee,dl=y+J-ns,rs=qt(l?Mn(x,fl):x,y,l?it(S,dl):S);I[D]=rs,Q[D]=rs-y}if(u){var is,hl=D==="x"?ae:ce,pl=D==="x"?pe:_e,Ze=I[L],_n=L==="y"?"height":"width",ss=Ze+p[hl],os=Ze-p[pl],dr=[ae,ce].indexOf(m)!==-1,as=(is=Y==null?void 0:Y[L])!=null?is:0,cs=dr?ss:Ze-F[_n]-j[_n]-as+N.altAxis,ls=dr?Ze+F[_n]+j[_n]-as-N.altAxis:os,us=l&&dr?lf(cs,Ze,ls):qt(l?cs:ss,Ze,l?ls:os);I[L]=us,Q[L]=us-Ze}t.modifiersData[r]=Q}}const Aa={name:"preventOverflow",enabled:!0,phase:"main",fn:Mf,requiresIfExists:["offset"]};function Lf(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function If(e){return e===Te(e)||!me(e)?Ci(e):Lf(e)}function kf(e){var t=e.getBoundingClientRect(),n=Dt(t.width)/e.offsetWidth||1,r=Dt(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Pf(e,t,n){n===void 0&&(n=!1);var r=me(t),i=me(t)&&kf(t),o=Xe(t),a=Nt(e,i),u={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(r||!r&&!n)&&((Ne(t)!=="body"||Ni(o))&&(u=If(t)),me(t)?(f=Nt(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):o&&(f.x=Di(o))),{x:a.left+u.scrollLeft-f.x,y:a.top+u.scrollTop-f.y,width:a.width,height:a.height}}function Rf(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(u){if(!n.has(u)){var f=t.get(u);f&&i(f)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function Hf(e){var t=Rf(e);return da.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Bf(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ff(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var xs={placement:"bottom",modifiers:[],strategy:"absolute"};function $s(){for(var e=arguments.length,t=new Array(e),n=0;n=0;i--)r._howls[i].stereo(n);return r},HowlerGlobal.prototype.pos=function(n,r,i){var o=this;if(!o.ctx||!o.ctx.listener)return o;if(r=typeof r!="number"?o._pos[1]:r,i=typeof i!="number"?o._pos[2]:i,typeof n=="number")o._pos=[n,r,i],typeof o.ctx.listener.positionX<"u"?(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]);else return o._pos;return o},HowlerGlobal.prototype.orientation=function(n,r,i,o,a,u){var f=this;if(!f.ctx||!f.ctx.listener)return f;var d=f._orientation;if(r=typeof r!="number"?d[1]:r,i=typeof i!="number"?d[2]:i,o=typeof o!="number"?d[3]:o,a=typeof a!="number"?d[4]:a,u=typeof u!="number"?d[5]:u,typeof n=="number")f._orientation=[n,r,i,o,a,u],typeof f.ctx.listener.forwardX<"u"?(f.ctx.listener.forwardX.setTargetAtTime(n,Howler.ctx.currentTime,.1),f.ctx.listener.forwardY.setTargetAtTime(r,Howler.ctx.currentTime,.1),f.ctx.listener.forwardZ.setTargetAtTime(i,Howler.ctx.currentTime,.1),f.ctx.listener.upX.setTargetAtTime(o,Howler.ctx.currentTime,.1),f.ctx.listener.upY.setTargetAtTime(a,Howler.ctx.currentTime,.1),f.ctx.listener.upZ.setTargetAtTime(u,Howler.ctx.currentTime,.1)):f.ctx.listener.setOrientation(n,r,i,o,a,u);else return d;return f},Howl.prototype.init=function(n){return function(r){var i=this;return i._orientation=r.orientation||[1,0,0],i._stereo=r.stereo||null,i._pos=r.pos||null,i._pannerAttr={coneInnerAngle:typeof r.coneInnerAngle<"u"?r.coneInnerAngle:360,coneOuterAngle:typeof r.coneOuterAngle<"u"?r.coneOuterAngle:360,coneOuterGain:typeof r.coneOuterGain<"u"?r.coneOuterGain:0,distanceModel:typeof r.distanceModel<"u"?r.distanceModel:"inverse",maxDistance:typeof r.maxDistance<"u"?r.maxDistance:1e4,panningModel:typeof r.panningModel<"u"?r.panningModel:"HRTF",refDistance:typeof r.refDistance<"u"?r.refDistance:1,rolloffFactor:typeof r.rolloffFactor<"u"?r.rolloffFactor:1},i._onstereo=r.onstereo?[{fn:r.onstereo}]:[],i._onpos=r.onpos?[{fn:r.onpos}]:[],i._onorientation=r.onorientation?[{fn:r.onorientation}]:[],n.call(this,r)}}(Howl.prototype.init),Howl.prototype.stereo=function(n,r){var i=this;if(!i._webAudio)return i;if(i._state!=="loaded")return i._queue.push({event:"stereo",action:function(){i.stereo(n,r)}}),i;var o=typeof Howler.ctx.createStereoPanner>"u"?"spatial":"stereo";if(typeof r>"u")if(typeof n=="number")i._stereo=n,i._pos=[n,0,0];else return i._stereo;for(var a=i._getSoundIds(r),u=0;u"u")if(typeof n=="number")a._pos=[n,r,i];else return a._pos;for(var u=a._getSoundIds(o),f=0;f"u")if(typeof n=="number")a._orientation=[n,r,i];else return a._orientation;for(var u=a._getSoundIds(o),f=0;f"u"&&(i.pannerAttr||(i.pannerAttr={coneInnerAngle:i.coneInnerAngle,coneOuterAngle:i.coneOuterAngle,coneOuterGain:i.coneOuterGain,distanceModel:i.distanceModel,maxDistance:i.maxDistance,refDistance:i.refDistance,rolloffFactor:i.rolloffFactor,panningModel:i.panningModel}),n._pannerAttr={coneInnerAngle:typeof i.pannerAttr.coneInnerAngle<"u"?i.pannerAttr.coneInnerAngle:n._coneInnerAngle,coneOuterAngle:typeof i.pannerAttr.coneOuterAngle<"u"?i.pannerAttr.coneOuterAngle:n._coneOuterAngle,coneOuterGain:typeof i.pannerAttr.coneOuterGain<"u"?i.pannerAttr.coneOuterGain:n._coneOuterGain,distanceModel:typeof i.pannerAttr.distanceModel<"u"?i.pannerAttr.distanceModel:n._distanceModel,maxDistance:typeof i.pannerAttr.maxDistance<"u"?i.pannerAttr.maxDistance:n._maxDistance,refDistance:typeof i.pannerAttr.refDistance<"u"?i.pannerAttr.refDistance:n._refDistance,rolloffFactor:typeof i.pannerAttr.rolloffFactor<"u"?i.pannerAttr.rolloffFactor:n._rolloffFactor,panningModel:typeof i.pannerAttr.panningModel<"u"?i.pannerAttr.panningModel:n._panningModel});else return a=n._soundById(parseInt(r[0],10)),a?a._pannerAttr:n._pannerAttr;else r.length===2&&(i=r[0],o=parseInt(r[1],10));for(var u=n._getSoundIds(o),f=0;fJSON.parse(localStorage.getItem(`CTFd:${e}`))||t,qo=(e,t)=>{localStorage.setItem(`CTFd:${e}`,JSON.stringify(t))};function Yn(){return Ko("read_notifications")}function Gn(){return Ko("unread_notifications")}function vi(e){qo("read_notifications",e)}function Un(e){qo("unread_notifications",e)}function Wu(e){const t=[...Yn(),e];return vi(t),zo(e),t}function Yu(e){const t=[...Gn(),e];return Un(t),t}function ys(){const e=Yn();return e.length===0?0:Math.max(...e)}function zo(e){const n=Gn().filter(r=>r!==e);Un(n)}function Gu(){const e=Gn(),t=Yn();vi(t.concat(e)),Un([])}const q={init:(e,t)=>{q.source=new EventSource(e+"/events");for(let r=0;r{let i=r.headers.get("result-count");i&&(q.controller.broadcast("counter",{count:i}),M._functions.events.eventCount(i))})},controller:new ju,source:null,howl:null,connect:()=>{q.source.addEventListener("notification",function(e){let t=JSON.parse(e.data);q.controller.broadcast("notification",t),M.events.counter.unread.add(t.id);let n=M.events.counter.unread.getAll().length;q.controller.broadcast("counter",{count:n}),M._functions.events.eventCount(n),q.render(t),t.sound&&q.howl.play()},!1)},disconnect:()=>{q.source&&q.source.close()},render:e=>{switch(e.type){case"toast":{M._functions.events.eventToast(e);break}case"alert":{M._functions.events.eventAlert(e);break}case"background":{M._functions.events.eventBackground(e);break}default:{console.log(e),alert(e);break}}},counter:{read:{getAll:Yn,setAll:vi,add:Wu,getLast:ys},unread:{getAll:Gn,setAll:Un,add:Yu,remove:zo,readAll:Gu}}};q.controller.alert=function(e){q.render(e)};q.controller.toast=function(e){q.render(e)};q.controller.background=function(e){q.render(e)};q.controller.counter=function(e){M._functions.events.eventCount(e.count)};q.controller.masterDidChange=function(){this.isMaster?q.connect():q.disconnect()};var Xo={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(we,function(){return function(n,r,i){n=n||{};var o=r.prototype,a={future:"in %s",past:"%s ago",s:"a few 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"};function u(d,g,s,c){return o.fromToBase(d,g,s,c)}i.en.relativeTime=a,o.fromToBase=function(d,g,s,c,l){for(var h,_,p,m=s.$locale().relativeTime||a,E=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],O=E.length,D=0;D0,I<=L.r||!L.r){I<=1&&D>0&&(L=E[D-1]);var F=m[L.l];l&&(I=l(""+I)),_=typeof F=="string"?F.replace("%d",I):F(I,g,L.l,p);break}}if(g)return _;var j=p?m.future:m.past;return typeof j=="function"?j(_):j.replace("%s",_)},o.to=function(d,g){return u(d,g,this,!0)},o.from=function(d,g){return u(d,g,this)};var f=function(d){return d.$u?i.utc():i()};o.toNow=function(d){return this.to(f(this),d)},o.fromNow=function(d){return this.from(f(this),d)}}})})(Xo);const Uu=Xo.exports;nn.extend(mo);nn.extend(Uu);const bt={id:null,name:null,email:null},Sn={id:null,name:null},Ku={},qu={challenge:{displayChallenge:null,renderChallenge:null,displayHint(e){alert(e.content)},displayUnlock(e){return confirm("Are you sure you'd like to unlock this hint?")},displayHintUnlock(e){return confirm("Are you sure you'd like to unlock this hint?")},displaySolutionUnlock(e){return confirm("Are you sure you'd like to unlock this solution?")},displayUnlockError(e){const t=[];Object.keys(e.errors).map(r=>{t.push(e.errors[r])});const n=t.join(` +`);alert(n)},submitChallenge:null,displaySubmissionResponse:null,displaySolves:null},challenges:{displayChallenges:null,sortChallenges:null},events:{eventAlert:null,eventToast:null,eventBackground:null,eventRead:null,eventCount:null}},zu={htmlEntities:Go,colorHash:vu,copyToClipboard:mu,hashCode:gu,renderTimes:_u},Xu={ajax:{getScript:Ro},html:{createHtmlNode:Vu,htmlEntities:Go}},Qu={challenge:{displayChallenge:bu,submitChallenge:Eu,loadSolves:jo,displaySolves:Au,loadHint:Ho,loadUnlock:gi,displayUnlock:wu,displayHintUnlock:Fo,displaySolutionUnlock:Vo,displayHint:Bo,loadSolution:Wo,displaySolution:Yo,submitRating:Tu},challenges:{getChallenges:ko,getChallenge:Po,displayChallenges:yu},scoreboard:{getScoreboard:Su,getScoreboardDetail:Ou,getBrackets:xu},settings:{updateSettings:$u,generateToken:Cu,deleteToken:Du},users:{userSolves:Mu,userFails:Lu,userAwards:Iu,userSubmissions:Nu},teams:{getInviteToken:ku,disbandTeam:Pu,updateTeamSettings:Ru,teamSolves:Hu,teamFails:Bu,teamAwards:Fu}},Ju={$:H,dayjs:nn};let bs=!1;const Zu=e=>{bs||(bs=!0,X.urlRoot=e.urlRoot||X.urlRoot,X.csrfNonce=e.csrfNonce||X.csrfNonce,X.userMode=e.userMode||X.userMode,X.start=e.start||X.start,X.end=e.end||X.end,X.themeSettings=e.themeSettings||X.themeSettings,X.eventSounds=e.eventSounds||X.eventSounds,X.preview=!1,bt.id=e.userId,bt.name=e.userName||bt.name,bt.email=e.userEmail||bt.email,Sn.id=e.teamId,Sn.name=e.teamName||Sn.name,q.init(X.urlRoot,X.eventSounds))},ef={run(e){e(yi)}},yi={init:Zu,config:X,fetch:xl,user:bt,team:Sn,ui:zu,utils:Xu,pages:Qu,events:q,_internal:Ku,_functions:qu,plugin:ef,lib:Ju};window.CTFd=yi;const M=yi;var Qo={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(we,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",u="minute",f="hour",d="day",g="week",s="month",c="quarter",l="year",h="date",_="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,E={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},O=function(A,b,v){var T=String(A);return!T||T.length>=b?A:""+Array(b+1-T.length).join(v)+A},D={s:O,z:function(A){var b=-A.utcOffset(),v=Math.abs(b),T=Math.floor(v/60),y=v%60;return(b<=0?"+":"-")+O(T,2,"0")+":"+O(y,2,"0")},m:function A(b,v){if(b.date()1)return A(S[0])}else{var k=b.name;I[k]=b,y=k}return!T&&y&&(L=y),y||!T&&L},$=function(A,b){if(F(A))return A.clone();var v=typeof b=="object"?b:{};return v.date=A,v.args=arguments,new Y(v)},N=D;N.l=j,N.i=F,N.w=function(A,b){return $(A,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var Y=function(){function A(v){this.$L=j(v.locale,null,!0),this.parse(v)}var b=A.prototype;return b.parse=function(v){this.$d=function(T){var y=T.date,x=T.utc;if(y===null)return new Date(NaN);if(N.u(y))return new Date;if(y instanceof Date)return new Date(y);if(typeof y=="string"&&!/Z$/i.test(y)){var S=y.match(p);if(S){var k=S[2]-1||0,B=(S[7]||"0").substring(0,3);return x?new Date(Date.UTC(S[1],k,S[3]||1,S[4]||0,S[5]||0,S[6]||0,B)):new Date(S[1],k,S[3]||1,S[4]||0,S[5]||0,S[6]||0,B)}}return new Date(y)}(v),this.$x=v.x||{},this.init()},b.init=function(){var v=this.$d;this.$y=v.getFullYear(),this.$M=v.getMonth(),this.$D=v.getDate(),this.$W=v.getDay(),this.$H=v.getHours(),this.$m=v.getMinutes(),this.$s=v.getSeconds(),this.$ms=v.getMilliseconds()},b.$utils=function(){return N},b.isValid=function(){return this.$d.toString()!==_},b.isSame=function(v,T){var y=$(v);return this.startOf(T)<=y&&y<=this.endOf(T)},b.isAfter=function(v,T){return $(v){document.querySelectorAll("[data-time]").forEach(e=>{const t=e.getAttribute("data-time"),n=e.getAttribute("data-time-format")||"MMMM Do, h:mm:ss A";e.innerText=bi(t).format(n)})},nf=()=>{document.querySelectorAll(".form-control").forEach(e=>{e.addEventListener("onfocus",()=>{e.classList.remove("input-filled-invalid"),e.classList.add("input-filled-valid")}),e.addEventListener("onblur",()=>{e.nodeValue===""&&(e.classList.remove("input-filled-valid"),e.classList.remove("input-filled-invalid"))}),e.nodeValue&&e.classList.add("input-filled-valid")}),document.querySelectorAll(".page-select").forEach(e=>{e.addEventListener("change",t=>{var r;const n=new URL(window.location);n.searchParams.set("page",(r=t.target.value)!=null?r:"1"),window.location.href=n.toString()})})};var ea={exports:{}};/*! lolight v1.4.0 - https://larsjung.de/lolight/ */(function(e,t){(function(n,r){e.exports=r()})(we,function(){function n(c){if(typeof c!="string")throw new Error("tok: no string");for(var l=[],h=s.length,_=!1;c;)for(var p=0;p/],["rex",/\/(\\\/|[^\n])*?\//],["str",/(['"`])(\\\1|[\s\S])*?\1/],[g,/[+-]?([0-9]*\.?[0-9]+|[0-9]+\.?[0-9]*)([eE][+-]?[0-9]+)?/],["pct",/[\\.,:;+\-*\/=<>()[\]{}|?!&@~]/],["spc",/\s+/],[d,/[\w$]+/],["unk",/./]];return r(!1,function(c){var l=c.querySelector("head"),h=c.createElement("style");h.textContent=a,l.insertBefore(h,l.firstChild),/^(i|c|loade)/.test(c.readyState)?o():c.addEventListener("DOMContentLoaded",function(){o()})}),o.tok=n,o.el=i,o})})(ea);const rf=ea.exports,sf=()=>{(!M.config.themeSettings.hasOwnProperty("use_builtin_code_highlighter")||M.config.themeSettings.use_builtin_code_highlighter===!0)&&rf("pre code")};var ae="top",pe="bottom",_e="right",ce="left",Kn="auto",Ht=[ae,pe,_e,ce],lt="start",$t="end",ta="clippingParents",Ei="viewport",Et="popper",na="reference",Rr=Ht.reduce(function(e,t){return e.concat([t+"-"+lt,t+"-"+$t])},[]),wi=[].concat(Ht,[Kn]).reduce(function(e,t){return e.concat([t,t+"-"+lt,t+"-"+$t])},[]),ra="beforeRead",ia="read",sa="afterRead",oa="beforeMain",aa="main",ca="afterMain",la="beforeWrite",ua="write",fa="afterWrite",da=[ra,ia,sa,oa,aa,ca,la,ua,fa];function Ne(e){return e?(e.nodeName||"").toLowerCase():null}function Te(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ct(e){var t=Te(e).Element;return e instanceof t||e instanceof Element}function me(e){var t=Te(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ai(e){if(typeof ShadowRoot>"u")return!1;var t=Te(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function of(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!me(o)||!Ne(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var u=i[a];u===!1?o.removeAttribute(a):o.setAttribute(a,u===!0?"":u)}))})}function af(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),u=a.reduce(function(f,d){return f[d]="",f},{});!me(i)||!Ne(i)||(Object.assign(i.style,u),Object.keys(o).forEach(function(f){i.removeAttribute(f)}))})}}const Ti={name:"applyStyles",enabled:!0,phase:"write",fn:of,effect:af,requires:["computeStyles"]};function $e(e){return e.split("-")[0]}var it=Math.max,Mn=Math.min,Dt=Math.round;function Nt(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;if(me(e)&&t){var o=e.offsetHeight,a=e.offsetWidth;a>0&&(r=Dt(n.width)/a||1),o>0&&(i=Dt(n.height)/o||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function Si(e){var t=Nt(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ha(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ai(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function He(e){return Te(e).getComputedStyle(e)}function cf(e){return["table","td","th"].indexOf(Ne(e))>=0}function Xe(e){return((Ct(e)?e.ownerDocument:e.document)||window.document).documentElement}function qn(e){return Ne(e)==="html"?e:e.assignedSlot||e.parentNode||(Ai(e)?e.host:null)||Xe(e)}function Es(e){return!me(e)||He(e).position==="fixed"?null:e.offsetParent}function lf(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&me(e)){var r=He(e);if(r.position==="fixed")return null}var i=qn(e);for(Ai(i)&&(i=i.host);me(i)&&["html","body"].indexOf(Ne(i))<0;){var o=He(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function rn(e){for(var t=Te(e),n=Es(e);n&&cf(n)&&He(n).position==="static";)n=Es(n);return n&&(Ne(n)==="html"||Ne(n)==="body"&&He(n).position==="static")?t:n||lf(e)||t}function Oi(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function qt(e,t,n){return it(e,Mn(t,n))}function uf(e,t,n){var r=qt(e,t,n);return r>n?n:r}function pa(){return{top:0,right:0,bottom:0,left:0}}function _a(e){return Object.assign({},pa(),e)}function ma(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var ff=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,_a(typeof t!="number"?t:ma(t,Ht))};function df(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,u=$e(n.placement),f=Oi(u),d=[ce,_e].indexOf(u)>=0,g=d?"height":"width";if(!(!o||!a)){var s=ff(i.padding,n),c=Si(o),l=f==="y"?ae:ce,h=f==="y"?pe:_e,_=n.rects.reference[g]+n.rects.reference[f]-a[f]-n.rects.popper[g],p=a[f]-n.rects.reference[f],m=rn(o),E=m?f==="y"?m.clientHeight||0:m.clientWidth||0:0,O=_/2-p/2,D=s[l],L=E-c[g]-s[h],I=E/2-c[g]/2+O,F=qt(D,I,L),j=f;n.modifiersData[r]=(t={},t[j]=F,t.centerOffset=F-I,t)}}function hf(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||!ha(t.elements.popper,i)||(t.elements.arrow=i))}const ga={name:"arrow",enabled:!0,phase:"main",fn:df,effect:hf,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Mt(e){return e.split("-")[1]}var pf={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _f(e){var t=e.x,n=e.y,r=window,i=r.devicePixelRatio||1;return{x:Dt(t*i)/i||0,y:Dt(n*i)/i||0}}function ws(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,u=e.position,f=e.gpuAcceleration,d=e.adaptive,g=e.roundOffsets,s=e.isFixed,c=a.x,l=c===void 0?0:c,h=a.y,_=h===void 0?0:h,p=typeof g=="function"?g({x:l,y:_}):{x:l,y:_};l=p.x,_=p.y;var m=a.hasOwnProperty("x"),E=a.hasOwnProperty("y"),O=ce,D=ae,L=window;if(d){var I=rn(n),F="clientHeight",j="clientWidth";if(I===Te(n)&&(I=Xe(n),He(I).position!=="static"&&u==="absolute"&&(F="scrollHeight",j="scrollWidth")),I=I,i===ae||(i===ce||i===_e)&&o===$t){D=pe;var $=s&&I===L&&L.visualViewport?L.visualViewport.height:I[F];_-=$-r.height,_*=f?1:-1}if(i===ce||(i===ae||i===pe)&&o===$t){O=_e;var N=s&&I===L&&L.visualViewport?L.visualViewport.width:I[j];l-=N-r.width,l*=f?1:-1}}var Y=Object.assign({position:u},d&&pf),Q=g===!0?_f({x:l,y:_}):{x:l,y:_};if(l=Q.x,_=Q.y,f){var A;return Object.assign({},Y,(A={},A[D]=E?"0":"",A[O]=m?"0":"",A.transform=(L.devicePixelRatio||1)<=1?"translate("+l+"px, "+_+"px)":"translate3d("+l+"px, "+_+"px, 0)",A))}return Object.assign({},Y,(t={},t[D]=E?_+"px":"",t[O]=m?l+"px":"",t.transform="",t))}function mf(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,u=n.roundOffsets,f=u===void 0?!0:u,d={placement:$e(t.placement),variation:Mt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ws(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ws(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const xi={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:mf,data:{}};var mn={passive:!0};function gf(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,u=a===void 0?!0:a,f=Te(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&d.forEach(function(g){g.addEventListener("scroll",n.update,mn)}),u&&f.addEventListener("resize",n.update,mn),function(){o&&d.forEach(function(g){g.removeEventListener("scroll",n.update,mn)}),u&&f.removeEventListener("resize",n.update,mn)}}const $i={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:gf,data:{}};var vf={left:"right",right:"left",bottom:"top",top:"bottom"};function On(e){return e.replace(/left|right|bottom|top/g,function(t){return vf[t]})}var yf={start:"end",end:"start"};function As(e){return e.replace(/start|end/g,function(t){return yf[t]})}function Ci(e){var t=Te(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Di(e){return Nt(Xe(e)).left+Ci(e).scrollLeft}function bf(e){var t=Te(e),n=Xe(e),r=t.visualViewport,i=n.clientWidth,o=n.clientHeight,a=0,u=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,u=r.offsetTop)),{width:i,height:o,x:a+Di(e),y:u}}function Ef(e){var t,n=Xe(e),r=Ci(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=it(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=it(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),u=-r.scrollLeft+Di(e),f=-r.scrollTop;return He(i||n).direction==="rtl"&&(u+=it(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:u,y:f}}function Ni(e){var t=He(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function va(e){return["html","body","#document"].indexOf(Ne(e))>=0?e.ownerDocument.body:me(e)&&Ni(e)?e:va(qn(e))}function zt(e,t){var n;t===void 0&&(t=[]);var r=va(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Te(r),a=i?[o].concat(o.visualViewport||[],Ni(r)?r:[]):r,u=t.concat(a);return i?u:u.concat(zt(qn(a)))}function Hr(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function wf(e){var t=Nt(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Ts(e,t){return t===Ei?Hr(bf(e)):Ct(t)?wf(t):Hr(Ef(Xe(e)))}function Af(e){var t=zt(qn(e)),n=["absolute","fixed"].indexOf(He(e).position)>=0,r=n&&me(e)?rn(e):e;return Ct(r)?t.filter(function(i){return Ct(i)&&ha(i,r)&&Ne(i)!=="body"}):[]}function Tf(e,t,n){var r=t==="clippingParents"?Af(e):[].concat(t),i=[].concat(r,[n]),o=i[0],a=i.reduce(function(u,f){var d=Ts(e,f);return u.top=it(d.top,u.top),u.right=Mn(d.right,u.right),u.bottom=Mn(d.bottom,u.bottom),u.left=it(d.left,u.left),u},Ts(e,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ya(e){var t=e.reference,n=e.element,r=e.placement,i=r?$e(r):null,o=r?Mt(r):null,a=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,f;switch(i){case ae:f={x:a,y:t.y-n.height};break;case pe:f={x:a,y:t.y+t.height};break;case _e:f={x:t.x+t.width,y:u};break;case ce:f={x:t.x-n.width,y:u};break;default:f={x:t.x,y:t.y}}var d=i?Oi(i):null;if(d!=null){var g=d==="y"?"height":"width";switch(o){case lt:f[d]=f[d]-(t[g]/2-n[g]/2);break;case $t:f[d]=f[d]+(t[g]/2-n[g]/2);break}}return f}function Lt(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.boundary,a=o===void 0?ta:o,u=n.rootBoundary,f=u===void 0?Ei:u,d=n.elementContext,g=d===void 0?Et:d,s=n.altBoundary,c=s===void 0?!1:s,l=n.padding,h=l===void 0?0:l,_=_a(typeof h!="number"?h:ma(h,Ht)),p=g===Et?na:Et,m=e.rects.popper,E=e.elements[c?p:g],O=Tf(Ct(E)?E:E.contextElement||Xe(e.elements.popper),a,f),D=Nt(e.elements.reference),L=ya({reference:D,element:m,strategy:"absolute",placement:i}),I=Hr(Object.assign({},m,L)),F=g===Et?I:D,j={top:O.top-F.top+_.top,bottom:F.bottom-O.bottom+_.bottom,left:O.left-F.left+_.left,right:F.right-O.right+_.right},$=e.modifiersData.offset;if(g===Et&&$){var N=$[i];Object.keys(j).forEach(function(Y){var Q=[_e,pe].indexOf(Y)>=0?1:-1,A=[ae,pe].indexOf(Y)>=0?"y":"x";j[Y]+=N[A]*Q})}return j}function Sf(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,u=n.flipVariations,f=n.allowedAutoPlacements,d=f===void 0?wi:f,g=Mt(r),s=g?u?Rr:Rr.filter(function(h){return Mt(h)===g}):Ht,c=s.filter(function(h){return d.indexOf(h)>=0});c.length===0&&(c=s);var l=c.reduce(function(h,_){return h[_]=Lt(e,{placement:_,boundary:i,rootBoundary:o,padding:a})[$e(_)],h},{});return Object.keys(l).sort(function(h,_){return l[h]-l[_]})}function Of(e){if($e(e)===Kn)return[];var t=On(e);return[As(e),t,As(t)]}function xf(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,u=a===void 0?!0:a,f=n.fallbackPlacements,d=n.padding,g=n.boundary,s=n.rootBoundary,c=n.altBoundary,l=n.flipVariations,h=l===void 0?!0:l,_=n.allowedAutoPlacements,p=t.options.placement,m=$e(p),E=m===p,O=f||(E||!h?[On(p)]:Of(p)),D=[p].concat(O).reduce(function(U,G){return U.concat($e(G)===Kn?Sf(t,{placement:G,boundary:g,rootBoundary:s,padding:d,flipVariations:h,allowedAutoPlacements:_}):G)},[]),L=t.rects.reference,I=t.rects.popper,F=new Map,j=!0,$=D[0],N=0;N=0,v=b?"width":"height",T=Lt(t,{placement:Y,boundary:g,rootBoundary:s,altBoundary:c,padding:d}),y=b?A?_e:ce:A?pe:ae;L[v]>I[v]&&(y=On(y));var x=On(y),S=[];if(o&&S.push(T[Q]<=0),u&&S.push(T[y]<=0,T[x]<=0),S.every(function(U){return U})){$=Y,j=!1;break}F.set(Y,S)}if(j)for(var k=h?3:1,B=function(G){var re=D.find(function(se){var z=F.get(se);if(z)return z.slice(0,G).every(function(W){return W})});if(re)return $=re,"break"},R=k;R>0;R--){var V=B(R);if(V==="break")break}t.placement!==$&&(t.modifiersData[r]._skip=!0,t.placement=$,t.reset=!0)}}const ba={name:"flip",enabled:!0,phase:"main",fn:xf,requiresIfExists:["offset"],data:{_skip:!1}};function Ss(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Os(e){return[ae,_e,pe,ce].some(function(t){return e[t]>=0})}function $f(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Lt(t,{elementContext:"reference"}),u=Lt(t,{altBoundary:!0}),f=Ss(a,r),d=Ss(u,i,o),g=Os(f),s=Os(d);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:d,isReferenceHidden:g,hasPopperEscaped:s},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":s})}const Ea={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:$f};function Cf(e,t,n){var r=$e(e),i=[ce,ae].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],u=o[1];return a=a||0,u=(u||0)*i,[ce,_e].indexOf(r)>=0?{x:u,y:a}:{x:a,y:u}}function Df(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=wi.reduce(function(g,s){return g[s]=Cf(s,t.rects,o),g},{}),u=a[t.placement],f=u.x,d=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=a}const wa={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Df};function Nf(e){var t=e.state,n=e.name;t.modifiersData[n]=ya({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Mi={name:"popperOffsets",enabled:!0,phase:"read",fn:Nf,data:{}};function Mf(e){return e==="x"?"y":"x"}function Lf(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,u=a===void 0?!1:a,f=n.boundary,d=n.rootBoundary,g=n.altBoundary,s=n.padding,c=n.tether,l=c===void 0?!0:c,h=n.tetherOffset,_=h===void 0?0:h,p=Lt(t,{boundary:f,rootBoundary:d,padding:s,altBoundary:g}),m=$e(t.placement),E=Mt(t.placement),O=!E,D=Oi(m),L=Mf(D),I=t.modifiersData.popperOffsets,F=t.rects.reference,j=t.rects.popper,$=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,N=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),Y=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Q={x:0,y:0};if(!!I){if(o){var A,b=D==="y"?ae:ce,v=D==="y"?pe:_e,T=D==="y"?"height":"width",y=I[D],x=y+p[b],S=y-p[v],k=l?-j[T]/2:0,B=E===lt?F[T]:j[T],R=E===lt?-j[T]:-F[T],V=t.elements.arrow,U=l&&V?Si(V):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:pa(),re=G[b],se=G[v],z=qt(0,F[T],U[T]),W=O?F[T]/2-k-z-re-N.mainAxis:B-z-re-N.mainAxis,J=O?-F[T]/2+k+z+se+N.mainAxis:R+z+se+N.mainAxis,be=t.elements.arrow&&rn(t.elements.arrow),Ee=be?D==="y"?be.clientTop||0:be.clientLeft||0:0,ns=(A=Y==null?void 0:Y[D])!=null?A:0,fl=y+W-ns-Ee,dl=y+J-ns,rs=qt(l?Mn(x,fl):x,y,l?it(S,dl):S);I[D]=rs,Q[D]=rs-y}if(u){var is,hl=D==="x"?ae:ce,pl=D==="x"?pe:_e,Ze=I[L],_n=L==="y"?"height":"width",ss=Ze+p[hl],os=Ze-p[pl],dr=[ae,ce].indexOf(m)!==-1,as=(is=Y==null?void 0:Y[L])!=null?is:0,cs=dr?ss:Ze-F[_n]-j[_n]-as+N.altAxis,ls=dr?Ze+F[_n]+j[_n]-as-N.altAxis:os,us=l&&dr?uf(cs,Ze,ls):qt(l?cs:ss,Ze,l?ls:os);I[L]=us,Q[L]=us-Ze}t.modifiersData[r]=Q}}const Aa={name:"preventOverflow",enabled:!0,phase:"main",fn:Lf,requiresIfExists:["offset"]};function If(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function kf(e){return e===Te(e)||!me(e)?Ci(e):If(e)}function Pf(e){var t=e.getBoundingClientRect(),n=Dt(t.width)/e.offsetWidth||1,r=Dt(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Rf(e,t,n){n===void 0&&(n=!1);var r=me(t),i=me(t)&&Pf(t),o=Xe(t),a=Nt(e,i),u={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(r||!r&&!n)&&((Ne(t)!=="body"||Ni(o))&&(u=kf(t)),me(t)?(f=Nt(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):o&&(f.x=Di(o))),{x:a.left+u.scrollLeft-f.x,y:a.top+u.scrollTop-f.y,width:a.width,height:a.height}}function Hf(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(u){if(!n.has(u)){var f=t.get(u);f&&i(f)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function Bf(e){var t=Hf(e);return da.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Ff(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Vf(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var xs={placement:"bottom",modifiers:[],strategy:"absolute"};function $s(){for(var e=arguments.length,t=new Array(e),n=0;n(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(t,n)=>`#${CSS.escape(n)}`)),e),Kf=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),qf=e=>{do e+=Math.floor(Math.random()*Gf);while(document.getElementById(e));return e},zf=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const r=Number.parseFloat(t),i=Number.parseFloat(n);return!r&&!i?0:(t=t.split(",")[0],n=n.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(n))*Uf)},Oa=e=>{e.dispatchEvent(new Event(Br))},Ie=e=>!e||typeof e!="object"?!1:(typeof e.jquery<"u"&&(e=e[0]),typeof e.nodeType<"u"),We=e=>Ie(e)?e.jquery?e[0]:e:typeof e=="string"&&e.length>0?document.querySelector(Sa(e)):null,Bt=e=>{if(!Ie(e)||e.getClientRects().length===0)return!1;const t=getComputedStyle(e).getPropertyValue("visibility")==="visible",n=e.closest("details:not([open])");if(!n)return t;if(n!==e){const r=e.closest("summary");if(r&&r.parentNode!==n||r===null)return!1}return t},Ye=e=>!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains("disabled")?!0:typeof e.disabled<"u"?e.disabled:e.hasAttribute("disabled")&&e.getAttribute("disabled")!=="false",xa=e=>{if(!document.documentElement.attachShadow)return null;if(typeof e.getRootNode=="function"){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?xa(e.parentNode):null},Ln=()=>{},sn=e=>{e.offsetHeight},$a=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,vr=[],Xf=e=>{document.readyState==="loading"?(vr.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of vr)t()}),vr.push(e)):e()},ge=()=>document.documentElement.dir==="rtl",ye=e=>{Xf(()=>{const t=$a();if(t){const n=e.NAME,r=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=r,e.jQueryInterface)}})},fe=(e,t=[],n=e)=>typeof e=="function"?e(...t):n,Ca=(e,t,n=!0)=>{if(!n){fe(e);return}const r=5,i=zf(t)+r;let o=!1;const a=({target:u})=>{u===t&&(o=!0,t.removeEventListener(Br,a),fe(e))};t.addEventListener(Br,a),setTimeout(()=>{o||Oa(t)},i)},Ii=(e,t,n,r)=>{const i=e.length;let o=e.indexOf(t);return o===-1?!n&&r?e[i-1]:e[0]:(o+=n?1:-1,r&&(o=(o+i)%i),e[Math.max(0,Math.min(o,i-1))])},Qf=/[^.]*(?=\..*)\.|.*/,Jf=/\..*/,Zf=/::\d+$/,yr={};let Cs=1;const Da={mouseenter:"mouseover",mouseleave:"mouseout"},ed=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function Na(e,t){return t&&`${t}::${Cs++}`||e.uidEvent||Cs++}function Ma(e){const t=Na(e);return e.uidEvent=t,yr[t]=yr[t]||{},yr[t]}function td(e,t){return function n(r){return ki(r,{delegateTarget:e}),n.oneOff&&w.off(e,r.type,t),t.apply(e,[r])}}function nd(e,t,n){return function r(i){const o=e.querySelectorAll(t);for(let{target:a}=i;a&&a!==this;a=a.parentNode)for(const u of o)if(u===a)return ki(i,{delegateTarget:a}),r.oneOff&&w.off(e,i.type,t,n),n.apply(a,[i])}}function La(e,t,n=null){return Object.values(e).find(r=>r.callable===t&&r.delegationSelector===n)}function Ia(e,t,n){const r=typeof t=="string",i=r?n:t||n;let o=ka(e);return ed.has(o)||(o=e),[r,i,o]}function Ds(e,t,n,r,i){if(typeof t!="string"||!e)return;let[o,a,u]=Ia(t,n,r);t in Da&&(a=(h=>function(_){if(!_.relatedTarget||_.relatedTarget!==_.delegateTarget&&!_.delegateTarget.contains(_.relatedTarget))return h.call(this,_)})(a));const f=Ma(e),d=f[u]||(f[u]={}),g=La(d,a,o?n:null);if(g){g.oneOff=g.oneOff&&i;return}const s=Na(a,t.replace(Qf,"")),c=o?nd(e,n,a):td(e,a);c.delegationSelector=o?n:null,c.callable=a,c.oneOff=i,c.uidEvent=s,d[s]=c,e.addEventListener(u,c,o)}function Fr(e,t,n,r,i){const o=La(t[n],r,i);!o||(e.removeEventListener(n,o,Boolean(i)),delete t[n][o.uidEvent])}function rd(e,t,n,r){const i=t[n]||{};for(const[o,a]of Object.entries(i))o.includes(r)&&Fr(e,t,n,a.callable,a.delegationSelector)}function ka(e){return e=e.replace(Jf,""),Da[e]||e}const w={on(e,t,n,r){Ds(e,t,n,r,!1)},one(e,t,n,r){Ds(e,t,n,r,!0)},off(e,t,n,r){if(typeof t!="string"||!e)return;const[i,o,a]=Ia(t,n,r),u=a!==t,f=Ma(e),d=f[a]||{},g=t.startsWith(".");if(typeof o<"u"){if(!Object.keys(d).length)return;Fr(e,f,a,o,i?n:null);return}if(g)for(const s of Object.keys(f))rd(e,f,s,t.slice(1));for(const[s,c]of Object.entries(d)){const l=s.replace(Zf,"");(!u||t.includes(l))&&Fr(e,f,a,c.callable,c.delegationSelector)}},trigger(e,t,n){if(typeof t!="string"||!e)return null;const r=$a(),i=ka(t),o=t!==i;let a=null,u=!0,f=!0,d=!1;o&&r&&(a=r.Event(t,n),r(e).trigger(a),u=!a.isPropagationStopped(),f=!a.isImmediatePropagationStopped(),d=a.isDefaultPrevented());const g=ki(new Event(t,{bubbles:u,cancelable:!0}),n);return d&&g.preventDefault(),f&&e.dispatchEvent(g),g.defaultPrevented&&a&&a.preventDefault(),g}};function ki(e,t={}){for(const[n,r]of Object.entries(t))try{e[n]=r}catch{Object.defineProperty(e,n,{configurable:!0,get(){return r}})}return e}function Ns(e){if(e==="true")return!0;if(e==="false")return!1;if(e===Number(e).toString())return Number(e);if(e===""||e==="null")return null;if(typeof e!="string")return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function br(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const ke={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${br(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${br(t)}`)},getDataAttributes(e){if(!e)return{};const t={},n=Object.keys(e.dataset).filter(r=>r.startsWith("bs")&&!r.startsWith("bsConfig"));for(const r of n){let i=r.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),t[i]=Ns(e.dataset[r])}return t},getDataAttribute(e,t){return Ns(e.getAttribute(`data-bs-${br(t)}`))}};class on{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,n){const r=Ie(n)?ke.getDataAttribute(n,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...Ie(n)?ke.getDataAttributes(n):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,n=this.constructor.DefaultType){for(const[r,i]of Object.entries(n)){const o=t[r],a=Ie(o)?"element":Kf(o);if(!new RegExp(i).test(a))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${a}" but expected type "${i}".`)}}}const id="5.3.3";class Se extends on{constructor(t,n){super(),t=We(t),t&&(this._element=t,this._config=this._getConfig(n),gr.set(this._element,this.constructor.DATA_KEY,this))}dispose(){gr.remove(this._element,this.constructor.DATA_KEY),w.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,n,r=!0){Ca(t,n,r)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return gr.get(We(t),this.DATA_KEY)}static getOrCreateInstance(t,n={}){return this.getInstance(t)||new this(t,typeof n=="object"?n:null)}static get VERSION(){return id}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const Er=e=>{let t=e.getAttribute("data-bs-target");if(!t||t==="#"){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),t=n&&n!=="#"?n.trim():null}return t?t.split(",").map(n=>Sa(n)).join(","):null},P={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(n=>n.matches(t))},parents(e,t){const n=[];let r=e.parentNode.closest(t);for(;r;)n.push(r),r=r.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(n=>`${n}:not([tabindex^="-"])`).join(",");return this.find(t,e).filter(n=>!Ye(n)&&Bt(n))},getSelectorFromElement(e){const t=Er(e);return t&&P.findOne(t)?t:null},getElementFromSelector(e){const t=Er(e);return t?P.findOne(t):null},getMultipleElementsFromSelector(e){const t=Er(e);return t?P.find(t):[]}},Xn=(e,t="hide")=>{const n=`click.dismiss${e.EVENT_KEY}`,r=e.NAME;w.on(document,n,`[data-bs-dismiss="${r}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),Ye(this))return;const o=P.getElementFromSelector(this)||this.closest(`.${r}`);e.getOrCreateInstance(o)[t]()})},sd="alert",od="bs.alert",Pa=`.${od}`,ad=`close${Pa}`,cd=`closed${Pa}`,ld="fade",ud="show";class an extends Se{static get NAME(){return sd}close(){if(w.trigger(this._element,ad).defaultPrevented)return;this._element.classList.remove(ud);const n=this._element.classList.contains(ld);this._queueCallback(()=>this._destroyElement(),this._element,n)}_destroyElement(){this._element.remove(),w.trigger(this._element,cd),this.dispose()}static jQueryInterface(t){return this.each(function(){const n=an.getOrCreateInstance(this);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t](this)}})}}Xn(an,"close");ye(an);const fd="button",dd="bs.button",hd=`.${dd}`,pd=".data-api",_d="active",Ms='[data-bs-toggle="button"]',md=`click${hd}${pd}`;class Qn extends Se{static get NAME(){return fd}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(_d))}static jQueryInterface(t){return this.each(function(){const n=Qn.getOrCreateInstance(this);t==="toggle"&&n[t]()})}}w.on(document,md,Ms,e=>{e.preventDefault();const t=e.target.closest(Ms);Qn.getOrCreateInstance(t).toggle()});ye(Qn);const gd="swipe",Ft=".bs.swipe",vd=`touchstart${Ft}`,yd=`touchmove${Ft}`,bd=`touchend${Ft}`,Ed=`pointerdown${Ft}`,wd=`pointerup${Ft}`,Ad="touch",Td="pen",Sd="pointer-event",Od=40,xd={endCallback:null,leftCallback:null,rightCallback:null},$d={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class In extends on{constructor(t,n){super(),this._element=t,!(!t||!In.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return xd}static get DefaultType(){return $d}static get NAME(){return gd}dispose(){w.off(this._element,Ft)}_start(t){if(!this._supportPointerEvents){this._deltaX=t.touches[0].clientX;return}this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX)}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),fe(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=Od)return;const n=t/this._deltaX;this._deltaX=0,n&&fe(n>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(w.on(this._element,Ed,t=>this._start(t)),w.on(this._element,wd,t=>this._end(t)),this._element.classList.add(Sd)):(w.on(this._element,vd,t=>this._start(t)),w.on(this._element,yd,t=>this._move(t)),w.on(this._element,bd,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===Td||t.pointerType===Ad)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Cd="carousel",Dd="bs.carousel",Qe=`.${Dd}`,Ra=".data-api",Nd="ArrowLeft",Md="ArrowRight",Ld=500,Wt="next",vt="prev",wt="left",xn="right",Id=`slide${Qe}`,wr=`slid${Qe}`,kd=`keydown${Qe}`,Pd=`mouseenter${Qe}`,Rd=`mouseleave${Qe}`,Hd=`dragstart${Qe}`,Bd=`load${Qe}${Ra}`,Fd=`click${Qe}${Ra}`,Ha="carousel",gn="active",Vd="slide",jd="carousel-item-end",Wd="carousel-item-start",Yd="carousel-item-next",Gd="carousel-item-prev",Ba=".active",Fa=".carousel-item",Ud=Ba+Fa,Kd=".carousel-item img",qd=".carousel-indicators",zd="[data-bs-slide], [data-bs-slide-to]",Xd='[data-bs-ride="carousel"]',Qd={[Nd]:xn,[Md]:wt},Jd={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Zd={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class cn extends Se{constructor(t,n){super(t,n),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=P.findOne(qd,this._element),this._addEventListeners(),this._config.ride===Ha&&this.cycle()}static get Default(){return Jd}static get DefaultType(){return Zd}static get NAME(){return Cd}next(){this._slide(Wt)}nextWhenVisible(){!document.hidden&&Bt(this._element)&&this.next()}prev(){this._slide(vt)}pause(){this._isSliding&&Oa(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(!!this._config.ride){if(this._isSliding){w.one(this._element,wr,()=>this.cycle());return}this.cycle()}}to(t){const n=this._getItems();if(t>n.length-1||t<0)return;if(this._isSliding){w.one(this._element,wr,()=>this.to(t));return}const r=this._getItemIndex(this._getActive());if(r===t)return;const i=t>r?Wt:vt;this._slide(i,n[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&w.on(this._element,kd,t=>this._keydown(t)),this._config.pause==="hover"&&(w.on(this._element,Pd,()=>this.pause()),w.on(this._element,Rd,()=>this._maybeEnableCycle())),this._config.touch&&In.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of P.find(Kd,this._element))w.on(r,Hd,i=>i.preventDefault());const n={leftCallback:()=>this._slide(this._directionToOrder(wt)),rightCallback:()=>this._slide(this._directionToOrder(xn)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),Ld+this._config.interval))}};this._swipeHelper=new In(this._element,n)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const n=Qd[t.key];n&&(t.preventDefault(),this._slide(this._directionToOrder(n)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const n=P.findOne(Ba,this._indicatorsElement);n.classList.remove(gn),n.removeAttribute("aria-current");const r=P.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);r&&(r.classList.add(gn),r.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const n=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=n||this._config.defaultInterval}_slide(t,n=null){if(this._isSliding)return;const r=this._getActive(),i=t===Wt,o=n||Ii(this._getItems(),r,i,this._config.wrap);if(o===r)return;const a=this._getItemIndex(o),u=l=>w.trigger(this._element,l,{relatedTarget:o,direction:this._orderToDirection(t),from:this._getItemIndex(r),to:a});if(u(Id).defaultPrevented||!r||!o)return;const d=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=o;const g=i?Wd:jd,s=i?Yd:Gd;o.classList.add(s),sn(o),r.classList.add(g),o.classList.add(g);const c=()=>{o.classList.remove(g,s),o.classList.add(gn),r.classList.remove(gn,s,g),this._isSliding=!1,u(wr)};this._queueCallback(c,r,this._isAnimated()),d&&this.cycle()}_isAnimated(){return this._element.classList.contains(Vd)}_getActive(){return P.findOne(Ud,this._element)}_getItems(){return P.find(Fa,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return ge()?t===wt?vt:Wt:t===wt?Wt:vt}_orderToDirection(t){return ge()?t===vt?wt:xn:t===vt?xn:wt}static jQueryInterface(t){return this.each(function(){const n=cn.getOrCreateInstance(this,t);if(typeof t=="number"){n.to(t);return}if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t]()}})}}w.on(document,Fd,zd,function(e){const t=P.getElementFromSelector(this);if(!t||!t.classList.contains(Ha))return;e.preventDefault();const n=cn.getOrCreateInstance(t),r=this.getAttribute("data-bs-slide-to");if(r){n.to(r),n._maybeEnableCycle();return}if(ke.getDataAttribute(this,"slide")==="next"){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()});w.on(window,Bd,()=>{const e=P.find(Xd);for(const t of e)cn.getOrCreateInstance(t)});ye(cn);const eh="collapse",th="bs.collapse",ln=`.${th}`,nh=".data-api",rh=`show${ln}`,ih=`shown${ln}`,sh=`hide${ln}`,oh=`hidden${ln}`,ah=`click${ln}${nh}`,Ar="show",Tt="collapse",vn="collapsing",ch="collapsed",lh=`:scope .${Tt} .${Tt}`,uh="collapse-horizontal",fh="width",dh="height",hh=".collapse.show, .collapse.collapsing",Vr='[data-bs-toggle="collapse"]',ph={parent:null,toggle:!0},_h={parent:"(null|element)",toggle:"boolean"};class It extends Se{constructor(t,n){super(t,n),this._isTransitioning=!1,this._triggerArray=[];const r=P.find(Vr);for(const i of r){const o=P.getSelectorFromElement(i),a=P.find(o).filter(u=>u===this._element);o!==null&&a.length&&this._triggerArray.push(i)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return ph}static get DefaultType(){return _h}static get NAME(){return eh}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(hh).filter(u=>u!==this._element).map(u=>It.getOrCreateInstance(u,{toggle:!1}))),t.length&&t[0]._isTransitioning||w.trigger(this._element,rh).defaultPrevented)return;for(const u of t)u.hide();const r=this._getDimension();this._element.classList.remove(Tt),this._element.classList.add(vn),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(vn),this._element.classList.add(Tt,Ar),this._element.style[r]="",w.trigger(this._element,ih)},a=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(i,this._element,!0),this._element.style[r]=`${this._element[a]}px`}hide(){if(this._isTransitioning||!this._isShown()||w.trigger(this._element,sh).defaultPrevented)return;const n=this._getDimension();this._element.style[n]=`${this._element.getBoundingClientRect()[n]}px`,sn(this._element),this._element.classList.add(vn),this._element.classList.remove(Tt,Ar);for(const i of this._triggerArray){const o=P.getElementFromSelector(i);o&&!this._isShown(o)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(vn),this._element.classList.add(Tt),w.trigger(this._element,oh)};this._element.style[n]="",this._queueCallback(r,this._element,!0)}_isShown(t=this._element){return t.classList.contains(Ar)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=We(t.parent),t}_getDimension(){return this._element.classList.contains(uh)?fh:dh}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(Vr);for(const n of t){const r=P.getElementFromSelector(n);r&&this._addAriaAndCollapsedClass([n],this._isShown(r))}}_getFirstLevelChildren(t){const n=P.find(lh,this._config.parent);return P.find(t,this._config.parent).filter(r=>!n.includes(r))}_addAriaAndCollapsedClass(t,n){if(!!t.length)for(const r of t)r.classList.toggle(ch,!n),r.setAttribute("aria-expanded",n)}static jQueryInterface(t){const n={};return typeof t=="string"&&/show|hide/.test(t)&&(n.toggle=!1),this.each(function(){const r=It.getOrCreateInstance(this,n);if(typeof t=="string"){if(typeof r[t]>"u")throw new TypeError(`No method named "${t}"`);r[t]()}})}}w.on(document,ah,Vr,function(e){(e.target.tagName==="A"||e.delegateTarget&&e.delegateTarget.tagName==="A")&&e.preventDefault();for(const t of P.getMultipleElementsFromSelector(this))It.getOrCreateInstance(t,{toggle:!1}).toggle()});ye(It);const Ls="dropdown",mh="bs.dropdown",_t=`.${mh}`,Pi=".data-api",gh="Escape",Is="Tab",vh="ArrowUp",ks="ArrowDown",yh=2,bh=`hide${_t}`,Eh=`hidden${_t}`,wh=`show${_t}`,Ah=`shown${_t}`,Va=`click${_t}${Pi}`,ja=`keydown${_t}${Pi}`,Th=`keyup${_t}${Pi}`,At="show",Sh="dropup",Oh="dropend",xh="dropstart",$h="dropup-center",Ch="dropdown-center",nt='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Dh=`${nt}.${At}`,$n=".dropdown-menu",Nh=".navbar",Mh=".navbar-nav",Lh=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Ih=ge()?"top-end":"top-start",kh=ge()?"top-start":"top-end",Ph=ge()?"bottom-end":"bottom-start",Rh=ge()?"bottom-start":"bottom-end",Hh=ge()?"left-start":"right-start",Bh=ge()?"right-start":"left-start",Fh="top",Vh="bottom",jh={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Wh={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Ce extends Se{constructor(t,n){super(t,n),this._popper=null,this._parent=this._element.parentNode,this._menu=P.next(this._element,$n)[0]||P.prev(this._element,$n)[0]||P.findOne($n,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return jh}static get DefaultType(){return Wh}static get NAME(){return Ls}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Ye(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!w.trigger(this._element,wh,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Mh))for(const r of[].concat(...document.body.children))w.on(r,"mouseover",Ln);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(At),this._element.classList.add(At),w.trigger(this._element,Ah,t)}}hide(){if(Ye(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!w.trigger(this._element,bh,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))w.off(r,"mouseover",Ln);this._popper&&this._popper.destroy(),this._menu.classList.remove(At),this._element.classList.remove(At),this._element.setAttribute("aria-expanded","false"),ke.removeDataAttribute(this._menu,"popper"),w.trigger(this._element,Eh,t)}}_getConfig(t){if(t=super._getConfig(t),typeof t.reference=="object"&&!Ie(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${Ls.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(typeof Ta>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;this._config.reference==="parent"?t=this._parent:Ie(this._config.reference)?t=We(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const n=this._getPopperConfig();this._popper=Li(t,this._menu,n)}_isShown(){return this._menu.classList.contains(At)}_getPlacement(){const t=this._parent;if(t.classList.contains(Oh))return Hh;if(t.classList.contains(xh))return Bh;if(t.classList.contains($h))return Fh;if(t.classList.contains(Ch))return Vh;const n=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(Sh)?n?kh:Ih:n?Rh:Ph}_detectNavbar(){return this._element.closest(Nh)!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(n=>Number.parseInt(n,10)):typeof t=="function"?n=>t(n,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(ke.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...fe(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:n}){const r=P.find(Lh,this._menu).filter(i=>Bt(i));!r.length||Ii(r,n,t===ks,!r.includes(n)).focus()}static jQueryInterface(t){return this.each(function(){const n=Ce.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t]()}})}static clearMenus(t){if(t.button===yh||t.type==="keyup"&&t.key!==Is)return;const n=P.find(Dh);for(const r of n){const i=Ce.getInstance(r);if(!i||i._config.autoClose===!1)continue;const o=t.composedPath(),a=o.includes(i._menu);if(o.includes(i._element)||i._config.autoClose==="inside"&&!a||i._config.autoClose==="outside"&&a||i._menu.contains(t.target)&&(t.type==="keyup"&&t.key===Is||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const u={relatedTarget:i._element};t.type==="click"&&(u.clickEvent=t),i._completeHide(u)}}static dataApiKeydownHandler(t){const n=/input|textarea/i.test(t.target.tagName),r=t.key===gh,i=[vh,ks].includes(t.key);if(!i&&!r||n&&!r)return;t.preventDefault();const o=this.matches(nt)?this:P.prev(this,nt)[0]||P.next(this,nt)[0]||P.findOne(nt,t.delegateTarget.parentNode),a=Ce.getOrCreateInstance(o);if(i){t.stopPropagation(),a.show(),a._selectMenuItem(t);return}a._isShown()&&(t.stopPropagation(),a.hide(),o.focus())}}w.on(document,ja,nt,Ce.dataApiKeydownHandler);w.on(document,ja,$n,Ce.dataApiKeydownHandler);w.on(document,Va,Ce.clearMenus);w.on(document,Th,Ce.clearMenus);w.on(document,Va,nt,function(e){e.preventDefault(),Ce.getOrCreateInstance(this).toggle()});ye(Ce);const Wa="backdrop",Yh="fade",Ps="show",Rs=`mousedown.bs.${Wa}`,Gh={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Uh={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Ya extends on{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Gh}static get DefaultType(){return Uh}static get NAME(){return Wa}show(t){if(!this._config.isVisible){fe(t);return}this._append();const n=this._getElement();this._config.isAnimated&&sn(n),n.classList.add(Ps),this._emulateAnimation(()=>{fe(t)})}hide(t){if(!this._config.isVisible){fe(t);return}this._getElement().classList.remove(Ps),this._emulateAnimation(()=>{this.dispose(),fe(t)})}dispose(){!this._isAppended||(w.off(this._element,Rs),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(Yh),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=We(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),w.on(t,Rs,()=>{fe(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){Ca(t,this._getElement(),this._config.isAnimated)}}const Kh="focustrap",qh="bs.focustrap",kn=`.${qh}`,zh=`focusin${kn}`,Xh=`keydown.tab${kn}`,Qh="Tab",Jh="forward",Hs="backward",Zh={autofocus:!0,trapElement:null},ep={autofocus:"boolean",trapElement:"element"};class Ga extends on{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Zh}static get DefaultType(){return ep}static get NAME(){return Kh}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),w.off(document,kn),w.on(document,zh,t=>this._handleFocusin(t)),w.on(document,Xh,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){!this._isActive||(this._isActive=!1,w.off(document,kn))}_handleFocusin(t){const{trapElement:n}=this._config;if(t.target===document||t.target===n||n.contains(t.target))return;const r=P.focusableChildren(n);r.length===0?n.focus():this._lastTabNavDirection===Hs?r[r.length-1].focus():r[0].focus()}_handleKeydown(t){t.key===Qh&&(this._lastTabNavDirection=t.shiftKey?Hs:Jh)}}const Bs=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Fs=".sticky-top",yn="padding-right",Vs="margin-right";class jr{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,yn,n=>n+t),this._setElementAttributes(Bs,yn,n=>n+t),this._setElementAttributes(Fs,Vs,n=>n-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,yn),this._resetElementAttributes(Bs,yn),this._resetElementAttributes(Fs,Vs)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,n,r){const i=this.getWidth(),o=a=>{if(a!==this._element&&window.innerWidth>a.clientWidth+i)return;this._saveInitialAttribute(a,n);const u=window.getComputedStyle(a).getPropertyValue(n);a.style.setProperty(n,`${r(Number.parseFloat(u))}px`)};this._applyManipulationCallback(t,o)}_saveInitialAttribute(t,n){const r=t.style.getPropertyValue(n);r&&ke.setDataAttribute(t,n,r)}_resetElementAttributes(t,n){const r=i=>{const o=ke.getDataAttribute(i,n);if(o===null){i.style.removeProperty(n);return}ke.removeDataAttribute(i,n),i.style.setProperty(n,o)};this._applyManipulationCallback(t,r)}_applyManipulationCallback(t,n){if(Ie(t)){n(t);return}for(const r of P.find(t,this._element))n(r)}}const tp="modal",np="bs.modal",ve=`.${np}`,rp=".data-api",ip="Escape",sp=`hide${ve}`,op=`hidePrevented${ve}`,Ua=`hidden${ve}`,Ka=`show${ve}`,ap=`shown${ve}`,cp=`resize${ve}`,lp=`click.dismiss${ve}`,up=`mousedown.dismiss${ve}`,fp=`keydown.dismiss${ve}`,dp=`click${ve}${rp}`,js="modal-open",hp="fade",Ws="show",Tr="modal-static",pp=".modal.show",_p=".modal-dialog",mp=".modal-body",gp='[data-bs-toggle="modal"]',vp={backdrop:!0,focus:!0,keyboard:!0},yp={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class ut extends Se{constructor(t,n){super(t,n),this._dialog=P.findOne(_p,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new jr,this._addEventListeners()}static get Default(){return vp}static get DefaultType(){return yp}static get NAME(){return tp}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||w.trigger(this._element,Ka,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(js),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){!this._isShown||this._isTransitioning||w.trigger(this._element,sp).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Ws),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){w.off(window,ve),w.off(this._dialog,ve),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Ya({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Ga({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const n=P.findOne(mp,this._dialog);n&&(n.scrollTop=0),sn(this._element),this._element.classList.add(Ws);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,w.trigger(this._element,ap,{relatedTarget:t})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){w.on(this._element,fp,t=>{if(t.key===ip){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),w.on(window,cp,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),w.on(this._element,up,t=>{w.one(this._element,lp,n=>{if(!(this._element!==t.target||this._element!==n.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(js),this._resetAdjustments(),this._scrollBar.reset(),w.trigger(this._element,Ua)})}_isAnimated(){return this._element.classList.contains(hp)}_triggerBackdropTransition(){if(w.trigger(this._element,op).defaultPrevented)return;const n=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains(Tr)||(n||(this._element.style.overflowY="hidden"),this._element.classList.add(Tr),this._queueCallback(()=>{this._element.classList.remove(Tr),this._queueCallback(()=>{this._element.style.overflowY=r},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,n=this._scrollBar.getWidth(),r=n>0;if(r&&!t){const i=ge()?"paddingLeft":"paddingRight";this._element.style[i]=`${n}px`}if(!r&&t){const i=ge()?"paddingRight":"paddingLeft";this._element.style[i]=`${n}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,n){return this.each(function(){const r=ut.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof r[t]>"u")throw new TypeError(`No method named "${t}"`);r[t](n)}})}}w.on(document,dp,gp,function(e){const t=P.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),w.one(t,Ka,i=>{i.defaultPrevented||w.one(t,Ua,()=>{Bt(this)&&this.focus()})});const n=P.findOne(pp);n&&ut.getInstance(n).hide(),ut.getOrCreateInstance(t).toggle(this)});Xn(ut);ye(ut);const bp="offcanvas",Ep="bs.offcanvas",Fe=`.${Ep}`,qa=".data-api",wp=`load${Fe}${qa}`,Ap="Escape",Ys="show",Gs="showing",Us="hiding",Tp="offcanvas-backdrop",za=".offcanvas.show",Sp=`show${Fe}`,Op=`shown${Fe}`,xp=`hide${Fe}`,Ks=`hidePrevented${Fe}`,Xa=`hidden${Fe}`,$p=`resize${Fe}`,Cp=`click${Fe}${qa}`,Dp=`keydown.dismiss${Fe}`,Np='[data-bs-toggle="offcanvas"]',Mp={backdrop:!0,keyboard:!0,scroll:!1},Lp={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Ge extends Se{constructor(t,n){super(t,n),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Mp}static get DefaultType(){return Lp}static get NAME(){return bp}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||w.trigger(this._element,Sp,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new jr().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Gs);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Ys),this._element.classList.remove(Gs),w.trigger(this._element,Op,{relatedTarget:t})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||w.trigger(this._element,xp).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Us),this._backdrop.hide();const n=()=>{this._element.classList.remove(Ys,Us),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new jr().reset(),w.trigger(this._element,Xa)};this._queueCallback(n,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=()=>{if(this._config.backdrop==="static"){w.trigger(this._element,Ks);return}this.hide()},n=Boolean(this._config.backdrop);return new Ya({className:Tp,isVisible:n,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:n?t:null})}_initializeFocusTrap(){return new Ga({trapElement:this._element})}_addEventListeners(){w.on(this._element,Dp,t=>{if(t.key===Ap){if(this._config.keyboard){this.hide();return}w.trigger(this._element,Ks)}})}static jQueryInterface(t){return this.each(function(){const n=Ge.getOrCreateInstance(this,t);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t](this)}})}}w.on(document,Cp,Np,function(e){const t=P.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),Ye(this))return;w.one(t,Xa,()=>{Bt(this)&&this.focus()});const n=P.findOne(za);n&&n!==t&&Ge.getInstance(n).hide(),Ge.getOrCreateInstance(t).toggle(this)});w.on(window,wp,()=>{for(const e of P.find(za))Ge.getOrCreateInstance(e).show()});w.on(window,$p,()=>{for(const e of P.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(e).position!=="fixed"&&Ge.getOrCreateInstance(e).hide()});Xn(Ge);ye(Ge);const Ip=/^aria-[\w-]*$/i,Qa={"*":["class","dir","id","lang","role",Ip],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},kp=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Pp=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Rp=(e,t)=>{const n=e.nodeName.toLowerCase();return t.includes(n)?kp.has(n)?Boolean(Pp.test(e.nodeValue)):!0:t.filter(r=>r instanceof RegExp).some(r=>r.test(n))};function Hp(e,t,n){if(!e.length)return e;if(n&&typeof n=="function")return n(e);const i=new window.DOMParser().parseFromString(e,"text/html"),o=[].concat(...i.body.querySelectorAll("*"));for(const a of o){const u=a.nodeName.toLowerCase();if(!Object.keys(t).includes(u)){a.remove();continue}const f=[].concat(...a.attributes),d=[].concat(t["*"]||[],t[u]||[]);for(const g of f)Rp(g,d)||a.removeAttribute(g.nodeName)}return i.body.innerHTML}const Bp="TemplateFactory",Fp={allowList:Qa,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},Vp={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},jp={entry:"(string|element|function|null)",selector:"(string|element)"};class Wp extends on{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Fp}static get DefaultType(){return Vp}static get NAME(){return Bp}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[i,o]of Object.entries(this._config.content))this._setContent(t,o,i);const n=t.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&n.classList.add(...r.split(" ")),n}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[n,r]of Object.entries(t))super._typeCheckConfig({selector:n,entry:r},jp)}_setContent(t,n,r){const i=P.findOne(r,t);if(!!i){if(n=this._resolvePossibleFunction(n),!n){i.remove();return}if(Ie(n)){this._putElementInTemplate(We(n),i);return}if(this._config.html){i.innerHTML=this._maybeSanitize(n);return}i.textContent=n}}_maybeSanitize(t){return this._config.sanitize?Hp(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return fe(t,[this])}_putElementInTemplate(t,n){if(this._config.html){n.innerHTML="",n.append(t);return}n.textContent=t.textContent}}const Yp="tooltip",Gp=new Set(["sanitize","allowList","sanitizeFn"]),Sr="fade",Up="modal",bn="show",Kp=".tooltip-inner",qs=`.${Up}`,zs="hide.bs.modal",Yt="hover",Or="focus",qp="click",zp="manual",Xp="hide",Qp="hidden",Jp="show",Zp="shown",e_="inserted",t_="click",n_="focusin",r_="focusout",i_="mouseenter",s_="mouseleave",o_={AUTO:"auto",TOP:"top",RIGHT:ge()?"left":"right",BOTTOM:"bottom",LEFT:ge()?"right":"left"},a_={allowList:Qa,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},c_={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class mt extends Se{constructor(t,n){if(typeof Ta>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,n),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return a_}static get DefaultType(){return c_}static get NAME(){return Yp}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(!!this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),w.off(this._element.closest(qs),zs,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const t=w.trigger(this._element,this.constructor.eventName(Jp)),r=(xa(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!r)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:o}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(o.append(i),w.trigger(this._element,this.constructor.eventName(e_))),this._popper=this._createPopper(i),i.classList.add(bn),"ontouchstart"in document.documentElement)for(const u of[].concat(...document.body.children))w.on(u,"mouseover",Ln);const a=()=>{w.trigger(this._element,this.constructor.eventName(Zp)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(a,this.tip,this._isAnimated())}hide(){if(!this._isShown()||w.trigger(this._element,this.constructor.eventName(Xp)).defaultPrevented)return;if(this._getTipElement().classList.remove(bn),"ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))w.off(i,"mouseover",Ln);this._activeTrigger[qp]=!1,this._activeTrigger[Or]=!1,this._activeTrigger[Yt]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),w.trigger(this._element,this.constructor.eventName(Qp)))};this._queueCallback(r,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const n=this._getTemplateFactory(t).toHtml();if(!n)return null;n.classList.remove(Sr,bn),n.classList.add(`bs-${this.constructor.NAME}-auto`);const r=qf(this.constructor.NAME).toString();return n.setAttribute("id",r),this._isAnimated()&&n.classList.add(Sr),n}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Wp({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Kp]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Sr)}_isShown(){return this.tip&&this.tip.classList.contains(bn)}_createPopper(t){const n=fe(this._config.placement,[this,t,this._element]),r=o_[n.toUpperCase()];return Li(this._element,t,this._getPopperConfig(r))}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(n=>Number.parseInt(n,10)):typeof t=="function"?n=>t(n,this._element):t}_resolvePossibleFunction(t){return fe(t,[this._element])}_getPopperConfig(t){const n={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:r=>{this._getTipElement().setAttribute("data-popper-placement",r.state.placement)}}]};return{...n,...fe(this._config.popperConfig,[n])}}_setListeners(){const t=this._config.trigger.split(" ");for(const n of t)if(n==="click")w.on(this._element,this.constructor.eventName(t_),this._config.selector,r=>{this._initializeOnDelegatedTarget(r).toggle()});else if(n!==zp){const r=n===Yt?this.constructor.eventName(i_):this.constructor.eventName(n_),i=n===Yt?this.constructor.eventName(s_):this.constructor.eventName(r_);w.on(this._element,r,this._config.selector,o=>{const a=this._initializeOnDelegatedTarget(o);a._activeTrigger[o.type==="focusin"?Or:Yt]=!0,a._enter()}),w.on(this._element,i,this._config.selector,o=>{const a=this._initializeOnDelegatedTarget(o);a._activeTrigger[o.type==="focusout"?Or:Yt]=a._element.contains(o.relatedTarget),a._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},w.on(this._element.closest(qs),zs,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");!t||(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,n){clearTimeout(this._timeout),this._timeout=setTimeout(t,n)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const n=ke.getDataAttributes(this._element);for(const r of Object.keys(n))Gp.has(r)&&delete n[r];return t={...n,...typeof t=="object"&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=t.container===!1?document.body:We(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[n,r]of Object.entries(this._config))this.constructor.Default[n]!==r&&(t[n]=r);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const n=mt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t]()}})}}ye(mt);const l_="popover",u_=".popover-header",f_=".popover-body",d_={...mt.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},h_={...mt.DefaultType,content:"(null|string|element|function)"};class Ri extends mt{static get Default(){return d_}static get DefaultType(){return h_}static get NAME(){return l_}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[u_]:this._getTitle(),[f_]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const n=Ri.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t]()}})}}ye(Ri);const p_="scrollspy",__="bs.scrollspy",Hi=`.${__}`,m_=".data-api",g_=`activate${Hi}`,Xs=`click${Hi}`,v_=`load${Hi}${m_}`,y_="dropdown-item",yt="active",b_='[data-bs-spy="scroll"]',xr="[href]",E_=".nav, .list-group",Qs=".nav-link",w_=".nav-item",A_=".list-group-item",T_=`${Qs}, ${w_} > ${Qs}, ${A_}`,S_=".dropdown",O_=".dropdown-toggle",x_={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},$_={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Jn extends Se{constructor(t,n){super(t,n),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return x_}static get DefaultType(){return $_}static get NAME(){return p_}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=We(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,typeof t.threshold=="string"&&(t.threshold=t.threshold.split(",").map(n=>Number.parseFloat(n))),t}_maybeEnableSmoothScroll(){!this._config.smoothScroll||(w.off(this._config.target,Xs),w.on(this._config.target,Xs,xr,t=>{const n=this._observableSections.get(t.target.hash);if(n){t.preventDefault();const r=this._rootElement||window,i=n.offsetTop-this._element.offsetTop;if(r.scrollTo){r.scrollTo({top:i,behavior:"smooth"});return}r.scrollTop=i}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(n=>this._observerCallback(n),t)}_observerCallback(t){const n=a=>this._targetLinks.get(`#${a.target.id}`),r=a=>{this._previousScrollData.visibleEntryTop=a.target.offsetTop,this._process(n(a))},i=(this._rootElement||document.documentElement).scrollTop,o=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const a of t){if(!a.isIntersecting){this._activeTarget=null,this._clearActiveClass(n(a));continue}const u=a.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(o&&u){if(r(a),!i)return;continue}!o&&!u&&r(a)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=P.find(xr,this._config.target);for(const n of t){if(!n.hash||Ye(n))continue;const r=P.findOne(decodeURI(n.hash),this._element);Bt(r)&&(this._targetLinks.set(decodeURI(n.hash),n),this._observableSections.set(n.hash,r))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(yt),this._activateParents(t),w.trigger(this._element,g_,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(y_)){P.findOne(O_,t.closest(S_)).classList.add(yt);return}for(const n of P.parents(t,E_))for(const r of P.prev(n,T_))r.classList.add(yt)}_clearActiveClass(t){t.classList.remove(yt);const n=P.find(`${xr}.${yt}`,t);for(const r of n)r.classList.remove(yt)}static jQueryInterface(t){return this.each(function(){const n=Jn.getOrCreateInstance(this,t);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t]()}})}}w.on(window,v_,()=>{for(const e of P.find(b_))Jn.getOrCreateInstance(e)});ye(Jn);const C_="tab",D_="bs.tab",gt=`.${D_}`,N_=`hide${gt}`,M_=`hidden${gt}`,L_=`show${gt}`,I_=`shown${gt}`,k_=`click${gt}`,P_=`keydown${gt}`,R_=`load${gt}`,H_="ArrowLeft",Js="ArrowRight",B_="ArrowUp",Zs="ArrowDown",$r="Home",eo="End",rt="active",to="fade",Cr="show",F_="dropdown",Ja=".dropdown-toggle",V_=".dropdown-menu",Dr=`:not(${Ja})`,j_='.list-group, .nav, [role="tablist"]',W_=".nav-item, .list-group-item",Y_=`.nav-link${Dr}, .list-group-item${Dr}, [role="tab"]${Dr}`,Za='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Nr=`${Y_}, ${Za}`,G_=`.${rt}[data-bs-toggle="tab"], .${rt}[data-bs-toggle="pill"], .${rt}[data-bs-toggle="list"]`;class kt extends Se{constructor(t){super(t),this._parent=this._element.closest(j_),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),w.on(this._element,P_,n=>this._keydown(n)))}static get NAME(){return C_}show(){const t=this._element;if(this._elemIsActive(t))return;const n=this._getActiveElem(),r=n?w.trigger(n,N_,{relatedTarget:t}):null;w.trigger(t,L_,{relatedTarget:n}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(n,t),this._activate(t,n))}_activate(t,n){if(!t)return;t.classList.add(rt),this._activate(P.getElementFromSelector(t));const r=()=>{if(t.getAttribute("role")!=="tab"){t.classList.add(Cr);return}t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),w.trigger(t,I_,{relatedTarget:n})};this._queueCallback(r,t,t.classList.contains(to))}_deactivate(t,n){if(!t)return;t.classList.remove(rt),t.blur(),this._deactivate(P.getElementFromSelector(t));const r=()=>{if(t.getAttribute("role")!=="tab"){t.classList.remove(Cr);return}t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),w.trigger(t,M_,{relatedTarget:n})};this._queueCallback(r,t,t.classList.contains(to))}_keydown(t){if(![H_,Js,B_,Zs,$r,eo].includes(t.key))return;t.stopPropagation(),t.preventDefault();const n=this._getChildren().filter(i=>!Ye(i));let r;if([$r,eo].includes(t.key))r=n[t.key===$r?0:n.length-1];else{const i=[Js,Zs].includes(t.key);r=Ii(n,t.target,i,!0)}r&&(r.focus({preventScroll:!0}),kt.getOrCreateInstance(r).show())}_getChildren(){return P.find(Nr,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,n){this._setAttributeIfNotExists(t,"role","tablist");for(const r of n)this._setInitialAttributesOnChild(r)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const n=this._elemIsActive(t),r=this._getOuterElement(t);t.setAttribute("aria-selected",n),r!==t&&this._setAttributeIfNotExists(r,"role","presentation"),n||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const n=P.getElementFromSelector(t);!n||(this._setAttributeIfNotExists(n,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(n,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,n){const r=this._getOuterElement(t);if(!r.classList.contains(F_))return;const i=(o,a)=>{const u=P.findOne(o,r);u&&u.classList.toggle(a,n)};i(Ja,rt),i(V_,Cr),r.setAttribute("aria-expanded",n)}_setAttributeIfNotExists(t,n,r){t.hasAttribute(n)||t.setAttribute(n,r)}_elemIsActive(t){return t.classList.contains(rt)}_getInnerElement(t){return t.matches(Nr)?t:P.findOne(Nr,t)}_getOuterElement(t){return t.closest(W_)||t}static jQueryInterface(t){return this.each(function(){const n=kt.getOrCreateInstance(this);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t]()}})}}w.on(document,k_,Za,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),!Ye(this)&&kt.getOrCreateInstance(this).show()});w.on(window,R_,()=>{for(const e of P.find(G_))kt.getOrCreateInstance(e)});ye(kt);const U_="toast",K_="bs.toast",Je=`.${K_}`,q_=`mouseover${Je}`,z_=`mouseout${Je}`,X_=`focusin${Je}`,Q_=`focusout${Je}`,J_=`hide${Je}`,Z_=`hidden${Je}`,em=`show${Je}`,tm=`shown${Je}`,nm="fade",no="hide",En="show",wn="showing",rm={animation:"boolean",autohide:"boolean",delay:"number"},im={animation:!0,autohide:!0,delay:5e3};class un extends Se{constructor(t,n){super(t,n),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return im}static get DefaultType(){return rm}static get NAME(){return U_}show(){if(w.trigger(this._element,em).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(nm);const n=()=>{this._element.classList.remove(wn),w.trigger(this._element,tm),this._maybeScheduleHide()};this._element.classList.remove(no),sn(this._element),this._element.classList.add(En,wn),this._queueCallback(n,this._element,this._config.animation)}hide(){if(!this.isShown()||w.trigger(this._element,J_).defaultPrevented)return;const n=()=>{this._element.classList.add(no),this._element.classList.remove(wn,En),w.trigger(this._element,Z_)};this._element.classList.add(wn),this._queueCallback(n,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(En),super.dispose()}isShown(){return this._element.classList.contains(En)}_maybeScheduleHide(){!this._config.autohide||this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay))}_onInteraction(t,n){switch(t.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=n;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=n;break}}if(n){this._clearTimeout();return}const r=t.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){w.on(this._element,q_,t=>this._onInteraction(t,!0)),w.on(this._element,z_,t=>this._onInteraction(t,!1)),w.on(this._element,X_,t=>this._onInteraction(t,!0)),w.on(this._element,Q_,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const n=un.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t](this)}})}}Xn(un);ye(un);const sm=()=>{[].slice.call(document.querySelectorAll(".alert")).map(function(t){return new an(t)})},om=()=>{[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map(t=>new mt(t))},am=()=>{[].slice.call(document.querySelectorAll(".collapse")).map(t=>new It(t,{toggle:!1}))};var Wr=!1,Yr=!1,st=[];function cm(e){lm(e)}function lm(e){st.includes(e)||st.push(e),um()}function ec(e){let t=st.indexOf(e);t!==-1&&st.splice(t,1)}function um(){!Yr&&!Wr&&(Wr=!0,queueMicrotask(fm))}function fm(){Wr=!1,Yr=!0;for(let e=0;ee.effect(t,{scheduler:n=>{Gr?cm(n):n()}}),tc=e.raw}function ro(e){fn=e}function pm(e){let t=()=>{};return[r=>{let i=fn(r);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(o=>o())}),e._x_effects.add(i),t=()=>{i!==void 0&&(e._x_effects.delete(i),Zn(i))},i},()=>{t()}]}var nc=[],rc=[],ic=[];function _m(e){ic.push(e)}function sc(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,rc.push(t))}function mm(e){nc.push(e)}function gm(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function oc(e,t){!e._x_attributeCleanups||Object.entries(e._x_attributeCleanups).forEach(([n,r])=>{(t===void 0||t.includes(n))&&(r.forEach(i=>i()),delete e._x_attributeCleanups[n])})}var Bi=new MutationObserver(ji),Fi=!1;function ac(){Bi.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Fi=!0}function vm(){ym(),Bi.disconnect(),Fi=!1}var Xt=[],Mr=!1;function ym(){Xt=Xt.concat(Bi.takeRecords()),Xt.length&&!Mr&&(Mr=!0,queueMicrotask(()=>{bm(),Mr=!1}))}function bm(){ji(Xt),Xt.length=0}function te(e){if(!Fi)return e();vm();let t=e();return ac(),t}var Vi=!1,Pn=[];function Em(){Vi=!0}function wm(){Vi=!1,ji(Pn),Pn=[]}function ji(e){if(Vi){Pn=Pn.concat(e);return}let t=[],n=[],r=new Map,i=new Map;for(let o=0;oa.nodeType===1&&t.push(a)),e[o].removedNodes.forEach(a=>a.nodeType===1&&n.push(a))),e[o].type==="attributes")){let a=e[o].target,u=e[o].attributeName,f=e[o].oldValue,d=()=>{r.has(a)||r.set(a,[]),r.get(a).push({name:u,value:a.getAttribute(u)})},g=()=>{i.has(a)||i.set(a,[]),i.get(a).push(u)};a.hasAttribute(u)&&f===null?d():a.hasAttribute(u)?(g(),d()):g()}i.forEach((o,a)=>{oc(a,o)}),r.forEach((o,a)=>{nc.forEach(u=>u(a,o))});for(let o of n)if(!t.includes(o)&&(rc.forEach(a=>a(o)),o._x_cleanups))for(;o._x_cleanups.length;)o._x_cleanups.pop()();t.forEach(o=>{o._x_ignoreSelf=!0,o._x_ignore=!0});for(let o of t)n.includes(o)||!o.isConnected||(delete o._x_ignoreSelf,delete o._x_ignore,ic.forEach(a=>a(o)),o._x_ignore=!0,o._x_ignoreSelf=!0);t.forEach(o=>{delete o._x_ignoreSelf,delete o._x_ignore}),t=null,n=null,r=null,i=null}function cc(e){return hn(Pt(e))}function dn(e,t,n){return e._x_dataStack=[t,...Pt(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(r=>r!==t)}}function io(e,t){let n=e._x_dataStack[0];Object.entries(t).forEach(([r,i])=>{n[r]=i})}function Pt(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?Pt(e.host):e.parentNode?Pt(e.parentNode):[]}function hn(e){let t=new Proxy({},{ownKeys:()=>Array.from(new Set(e.flatMap(n=>Object.keys(n)))),has:(n,r)=>e.some(i=>i.hasOwnProperty(r)),get:(n,r)=>(e.find(i=>{if(i.hasOwnProperty(r)){let o=Object.getOwnPropertyDescriptor(i,r);if(o.get&&o.get._x_alreadyBound||o.set&&o.set._x_alreadyBound)return!0;if((o.get||o.set)&&o.enumerable){let a=o.get,u=o.set,f=o;a=a&&a.bind(t),u=u&&u.bind(t),a&&(a._x_alreadyBound=!0),u&&(u._x_alreadyBound=!0),Object.defineProperty(i,r,{...f,get:a,set:u})}return!0}return!1})||{})[r],set:(n,r,i)=>{let o=e.find(a=>a.hasOwnProperty(r));return o?o[r]=i:e[e.length-1][r]=i,!0}});return t}function lc(e){let t=r=>typeof r=="object"&&!Array.isArray(r)&&r!==null,n=(r,i="")=>{Object.entries(Object.getOwnPropertyDescriptors(r)).forEach(([o,{value:a,enumerable:u}])=>{if(u===!1||a===void 0)return;let f=i===""?o:`${i}.${o}`;typeof a=="object"&&a!==null&&a._x_interceptor?r[o]=a.initialize(e,f,o):t(a)&&a!==r&&!(a instanceof Element)&&n(a,f)})};return n(e)}function uc(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(r,i,o){return e(this.initialValue,()=>Am(r,i),a=>Ur(r,i,a),i,o)}};return t(n),r=>{if(typeof r=="object"&&r!==null&&r._x_interceptor){let i=n.initialize.bind(n);n.initialize=(o,a,u)=>{let f=r.initialize(o,a,u);return n.initialValue=f,i(o,a,u)}}else n.initialValue=r;return n}}function Am(e,t){return t.split(".").reduce((n,r)=>n[r],e)}function Ur(e,t,n){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=n;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),Ur(e[t[0]],t.slice(1),n)}}var fc={};function Le(e,t){fc[e]=t}function Kr(e,t){return Object.entries(fc).forEach(([n,r])=>{Object.defineProperty(e,`$${n}`,{get(){let[i,o]=mc(t);return i={interceptor:uc,...i},sc(t,o),r(t,i)},enumerable:!1})}),e}function Tm(e,t,n,...r){try{return n(...r)}catch(i){en(i,e,t)}}function en(e,t,n=void 0){Object.assign(e,{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message} + */const Ve=new Map,gr={set(e,t,n){Ve.has(e)||Ve.set(e,new Map);const r=Ve.get(e);if(!r.has(t)&&r.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`);return}r.set(t,n)},get(e,t){return Ve.has(e)&&Ve.get(e).get(t)||null},remove(e,t){if(!Ve.has(e))return;const n=Ve.get(e);n.delete(t),n.size===0&&Ve.delete(e)}},Uf=1e6,Kf=1e3,Br="transitionend",Sa=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(t,n)=>`#${CSS.escape(n)}`)),e),qf=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),zf=e=>{do e+=Math.floor(Math.random()*Uf);while(document.getElementById(e));return e},Xf=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const r=Number.parseFloat(t),i=Number.parseFloat(n);return!r&&!i?0:(t=t.split(",")[0],n=n.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(n))*Kf)},Oa=e=>{e.dispatchEvent(new Event(Br))},Ie=e=>!e||typeof e!="object"?!1:(typeof e.jquery<"u"&&(e=e[0]),typeof e.nodeType<"u"),We=e=>Ie(e)?e.jquery?e[0]:e:typeof e=="string"&&e.length>0?document.querySelector(Sa(e)):null,Bt=e=>{if(!Ie(e)||e.getClientRects().length===0)return!1;const t=getComputedStyle(e).getPropertyValue("visibility")==="visible",n=e.closest("details:not([open])");if(!n)return t;if(n!==e){const r=e.closest("summary");if(r&&r.parentNode!==n||r===null)return!1}return t},Ye=e=>!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains("disabled")?!0:typeof e.disabled<"u"?e.disabled:e.hasAttribute("disabled")&&e.getAttribute("disabled")!=="false",xa=e=>{if(!document.documentElement.attachShadow)return null;if(typeof e.getRootNode=="function"){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?xa(e.parentNode):null},Ln=()=>{},sn=e=>{e.offsetHeight},$a=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,vr=[],Qf=e=>{document.readyState==="loading"?(vr.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of vr)t()}),vr.push(e)):e()},ge=()=>document.documentElement.dir==="rtl",ye=e=>{Qf(()=>{const t=$a();if(t){const n=e.NAME,r=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=r,e.jQueryInterface)}})},fe=(e,t=[],n=e)=>typeof e=="function"?e(...t):n,Ca=(e,t,n=!0)=>{if(!n){fe(e);return}const r=5,i=Xf(t)+r;let o=!1;const a=({target:u})=>{u===t&&(o=!0,t.removeEventListener(Br,a),fe(e))};t.addEventListener(Br,a),setTimeout(()=>{o||Oa(t)},i)},Ii=(e,t,n,r)=>{const i=e.length;let o=e.indexOf(t);return o===-1?!n&&r?e[i-1]:e[0]:(o+=n?1:-1,r&&(o=(o+i)%i),e[Math.max(0,Math.min(o,i-1))])},Jf=/[^.]*(?=\..*)\.|.*/,Zf=/\..*/,ed=/::\d+$/,yr={};let Cs=1;const Da={mouseenter:"mouseover",mouseleave:"mouseout"},td=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function Na(e,t){return t&&`${t}::${Cs++}`||e.uidEvent||Cs++}function Ma(e){const t=Na(e);return e.uidEvent=t,yr[t]=yr[t]||{},yr[t]}function nd(e,t){return function n(r){return ki(r,{delegateTarget:e}),n.oneOff&&w.off(e,r.type,t),t.apply(e,[r])}}function rd(e,t,n){return function r(i){const o=e.querySelectorAll(t);for(let{target:a}=i;a&&a!==this;a=a.parentNode)for(const u of o)if(u===a)return ki(i,{delegateTarget:a}),r.oneOff&&w.off(e,i.type,t,n),n.apply(a,[i])}}function La(e,t,n=null){return Object.values(e).find(r=>r.callable===t&&r.delegationSelector===n)}function Ia(e,t,n){const r=typeof t=="string",i=r?n:t||n;let o=ka(e);return td.has(o)||(o=e),[r,i,o]}function Ds(e,t,n,r,i){if(typeof t!="string"||!e)return;let[o,a,u]=Ia(t,n,r);t in Da&&(a=(h=>function(_){if(!_.relatedTarget||_.relatedTarget!==_.delegateTarget&&!_.delegateTarget.contains(_.relatedTarget))return h.call(this,_)})(a));const f=Ma(e),d=f[u]||(f[u]={}),g=La(d,a,o?n:null);if(g){g.oneOff=g.oneOff&&i;return}const s=Na(a,t.replace(Jf,"")),c=o?rd(e,n,a):nd(e,a);c.delegationSelector=o?n:null,c.callable=a,c.oneOff=i,c.uidEvent=s,d[s]=c,e.addEventListener(u,c,o)}function Fr(e,t,n,r,i){const o=La(t[n],r,i);!o||(e.removeEventListener(n,o,Boolean(i)),delete t[n][o.uidEvent])}function id(e,t,n,r){const i=t[n]||{};for(const[o,a]of Object.entries(i))o.includes(r)&&Fr(e,t,n,a.callable,a.delegationSelector)}function ka(e){return e=e.replace(Zf,""),Da[e]||e}const w={on(e,t,n,r){Ds(e,t,n,r,!1)},one(e,t,n,r){Ds(e,t,n,r,!0)},off(e,t,n,r){if(typeof t!="string"||!e)return;const[i,o,a]=Ia(t,n,r),u=a!==t,f=Ma(e),d=f[a]||{},g=t.startsWith(".");if(typeof o<"u"){if(!Object.keys(d).length)return;Fr(e,f,a,o,i?n:null);return}if(g)for(const s of Object.keys(f))id(e,f,s,t.slice(1));for(const[s,c]of Object.entries(d)){const l=s.replace(ed,"");(!u||t.includes(l))&&Fr(e,f,a,c.callable,c.delegationSelector)}},trigger(e,t,n){if(typeof t!="string"||!e)return null;const r=$a(),i=ka(t),o=t!==i;let a=null,u=!0,f=!0,d=!1;o&&r&&(a=r.Event(t,n),r(e).trigger(a),u=!a.isPropagationStopped(),f=!a.isImmediatePropagationStopped(),d=a.isDefaultPrevented());const g=ki(new Event(t,{bubbles:u,cancelable:!0}),n);return d&&g.preventDefault(),f&&e.dispatchEvent(g),g.defaultPrevented&&a&&a.preventDefault(),g}};function ki(e,t={}){for(const[n,r]of Object.entries(t))try{e[n]=r}catch{Object.defineProperty(e,n,{configurable:!0,get(){return r}})}return e}function Ns(e){if(e==="true")return!0;if(e==="false")return!1;if(e===Number(e).toString())return Number(e);if(e===""||e==="null")return null;if(typeof e!="string")return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function br(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const ke={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${br(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${br(t)}`)},getDataAttributes(e){if(!e)return{};const t={},n=Object.keys(e.dataset).filter(r=>r.startsWith("bs")&&!r.startsWith("bsConfig"));for(const r of n){let i=r.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),t[i]=Ns(e.dataset[r])}return t},getDataAttribute(e,t){return Ns(e.getAttribute(`data-bs-${br(t)}`))}};class on{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,n){const r=Ie(n)?ke.getDataAttribute(n,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...Ie(n)?ke.getDataAttributes(n):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,n=this.constructor.DefaultType){for(const[r,i]of Object.entries(n)){const o=t[r],a=Ie(o)?"element":qf(o);if(!new RegExp(i).test(a))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${a}" but expected type "${i}".`)}}}const sd="5.3.3";class Se extends on{constructor(t,n){super(),t=We(t),t&&(this._element=t,this._config=this._getConfig(n),gr.set(this._element,this.constructor.DATA_KEY,this))}dispose(){gr.remove(this._element,this.constructor.DATA_KEY),w.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,n,r=!0){Ca(t,n,r)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return gr.get(We(t),this.DATA_KEY)}static getOrCreateInstance(t,n={}){return this.getInstance(t)||new this(t,typeof n=="object"?n:null)}static get VERSION(){return sd}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const Er=e=>{let t=e.getAttribute("data-bs-target");if(!t||t==="#"){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),t=n&&n!=="#"?n.trim():null}return t?t.split(",").map(n=>Sa(n)).join(","):null},P={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(n=>n.matches(t))},parents(e,t){const n=[];let r=e.parentNode.closest(t);for(;r;)n.push(r),r=r.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(n=>`${n}:not([tabindex^="-"])`).join(",");return this.find(t,e).filter(n=>!Ye(n)&&Bt(n))},getSelectorFromElement(e){const t=Er(e);return t&&P.findOne(t)?t:null},getElementFromSelector(e){const t=Er(e);return t?P.findOne(t):null},getMultipleElementsFromSelector(e){const t=Er(e);return t?P.find(t):[]}},Xn=(e,t="hide")=>{const n=`click.dismiss${e.EVENT_KEY}`,r=e.NAME;w.on(document,n,`[data-bs-dismiss="${r}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),Ye(this))return;const o=P.getElementFromSelector(this)||this.closest(`.${r}`);e.getOrCreateInstance(o)[t]()})},od="alert",ad="bs.alert",Pa=`.${ad}`,cd=`close${Pa}`,ld=`closed${Pa}`,ud="fade",fd="show";class an extends Se{static get NAME(){return od}close(){if(w.trigger(this._element,cd).defaultPrevented)return;this._element.classList.remove(fd);const n=this._element.classList.contains(ud);this._queueCallback(()=>this._destroyElement(),this._element,n)}_destroyElement(){this._element.remove(),w.trigger(this._element,ld),this.dispose()}static jQueryInterface(t){return this.each(function(){const n=an.getOrCreateInstance(this);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t](this)}})}}Xn(an,"close");ye(an);const dd="button",hd="bs.button",pd=`.${hd}`,_d=".data-api",md="active",Ms='[data-bs-toggle="button"]',gd=`click${pd}${_d}`;class Qn extends Se{static get NAME(){return dd}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(md))}static jQueryInterface(t){return this.each(function(){const n=Qn.getOrCreateInstance(this);t==="toggle"&&n[t]()})}}w.on(document,gd,Ms,e=>{e.preventDefault();const t=e.target.closest(Ms);Qn.getOrCreateInstance(t).toggle()});ye(Qn);const vd="swipe",Ft=".bs.swipe",yd=`touchstart${Ft}`,bd=`touchmove${Ft}`,Ed=`touchend${Ft}`,wd=`pointerdown${Ft}`,Ad=`pointerup${Ft}`,Td="touch",Sd="pen",Od="pointer-event",xd=40,$d={endCallback:null,leftCallback:null,rightCallback:null},Cd={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class In extends on{constructor(t,n){super(),this._element=t,!(!t||!In.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return $d}static get DefaultType(){return Cd}static get NAME(){return vd}dispose(){w.off(this._element,Ft)}_start(t){if(!this._supportPointerEvents){this._deltaX=t.touches[0].clientX;return}this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX)}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),fe(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=xd)return;const n=t/this._deltaX;this._deltaX=0,n&&fe(n>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(w.on(this._element,wd,t=>this._start(t)),w.on(this._element,Ad,t=>this._end(t)),this._element.classList.add(Od)):(w.on(this._element,yd,t=>this._start(t)),w.on(this._element,bd,t=>this._move(t)),w.on(this._element,Ed,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===Sd||t.pointerType===Td)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Dd="carousel",Nd="bs.carousel",Qe=`.${Nd}`,Ra=".data-api",Md="ArrowLeft",Ld="ArrowRight",Id=500,Wt="next",vt="prev",wt="left",xn="right",kd=`slide${Qe}`,wr=`slid${Qe}`,Pd=`keydown${Qe}`,Rd=`mouseenter${Qe}`,Hd=`mouseleave${Qe}`,Bd=`dragstart${Qe}`,Fd=`load${Qe}${Ra}`,Vd=`click${Qe}${Ra}`,Ha="carousel",gn="active",jd="slide",Wd="carousel-item-end",Yd="carousel-item-start",Gd="carousel-item-next",Ud="carousel-item-prev",Ba=".active",Fa=".carousel-item",Kd=Ba+Fa,qd=".carousel-item img",zd=".carousel-indicators",Xd="[data-bs-slide], [data-bs-slide-to]",Qd='[data-bs-ride="carousel"]',Jd={[Md]:xn,[Ld]:wt},Zd={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},eh={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class cn extends Se{constructor(t,n){super(t,n),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=P.findOne(zd,this._element),this._addEventListeners(),this._config.ride===Ha&&this.cycle()}static get Default(){return Zd}static get DefaultType(){return eh}static get NAME(){return Dd}next(){this._slide(Wt)}nextWhenVisible(){!document.hidden&&Bt(this._element)&&this.next()}prev(){this._slide(vt)}pause(){this._isSliding&&Oa(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(!!this._config.ride){if(this._isSliding){w.one(this._element,wr,()=>this.cycle());return}this.cycle()}}to(t){const n=this._getItems();if(t>n.length-1||t<0)return;if(this._isSliding){w.one(this._element,wr,()=>this.to(t));return}const r=this._getItemIndex(this._getActive());if(r===t)return;const i=t>r?Wt:vt;this._slide(i,n[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&w.on(this._element,Pd,t=>this._keydown(t)),this._config.pause==="hover"&&(w.on(this._element,Rd,()=>this.pause()),w.on(this._element,Hd,()=>this._maybeEnableCycle())),this._config.touch&&In.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of P.find(qd,this._element))w.on(r,Bd,i=>i.preventDefault());const n={leftCallback:()=>this._slide(this._directionToOrder(wt)),rightCallback:()=>this._slide(this._directionToOrder(xn)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),Id+this._config.interval))}};this._swipeHelper=new In(this._element,n)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const n=Jd[t.key];n&&(t.preventDefault(),this._slide(this._directionToOrder(n)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const n=P.findOne(Ba,this._indicatorsElement);n.classList.remove(gn),n.removeAttribute("aria-current");const r=P.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);r&&(r.classList.add(gn),r.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const n=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=n||this._config.defaultInterval}_slide(t,n=null){if(this._isSliding)return;const r=this._getActive(),i=t===Wt,o=n||Ii(this._getItems(),r,i,this._config.wrap);if(o===r)return;const a=this._getItemIndex(o),u=l=>w.trigger(this._element,l,{relatedTarget:o,direction:this._orderToDirection(t),from:this._getItemIndex(r),to:a});if(u(kd).defaultPrevented||!r||!o)return;const d=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=o;const g=i?Yd:Wd,s=i?Gd:Ud;o.classList.add(s),sn(o),r.classList.add(g),o.classList.add(g);const c=()=>{o.classList.remove(g,s),o.classList.add(gn),r.classList.remove(gn,s,g),this._isSliding=!1,u(wr)};this._queueCallback(c,r,this._isAnimated()),d&&this.cycle()}_isAnimated(){return this._element.classList.contains(jd)}_getActive(){return P.findOne(Kd,this._element)}_getItems(){return P.find(Fa,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return ge()?t===wt?vt:Wt:t===wt?Wt:vt}_orderToDirection(t){return ge()?t===vt?wt:xn:t===vt?xn:wt}static jQueryInterface(t){return this.each(function(){const n=cn.getOrCreateInstance(this,t);if(typeof t=="number"){n.to(t);return}if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t]()}})}}w.on(document,Vd,Xd,function(e){const t=P.getElementFromSelector(this);if(!t||!t.classList.contains(Ha))return;e.preventDefault();const n=cn.getOrCreateInstance(t),r=this.getAttribute("data-bs-slide-to");if(r){n.to(r),n._maybeEnableCycle();return}if(ke.getDataAttribute(this,"slide")==="next"){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()});w.on(window,Fd,()=>{const e=P.find(Qd);for(const t of e)cn.getOrCreateInstance(t)});ye(cn);const th="collapse",nh="bs.collapse",ln=`.${nh}`,rh=".data-api",ih=`show${ln}`,sh=`shown${ln}`,oh=`hide${ln}`,ah=`hidden${ln}`,ch=`click${ln}${rh}`,Ar="show",Tt="collapse",vn="collapsing",lh="collapsed",uh=`:scope .${Tt} .${Tt}`,fh="collapse-horizontal",dh="width",hh="height",ph=".collapse.show, .collapse.collapsing",Vr='[data-bs-toggle="collapse"]',_h={parent:null,toggle:!0},mh={parent:"(null|element)",toggle:"boolean"};class It extends Se{constructor(t,n){super(t,n),this._isTransitioning=!1,this._triggerArray=[];const r=P.find(Vr);for(const i of r){const o=P.getSelectorFromElement(i),a=P.find(o).filter(u=>u===this._element);o!==null&&a.length&&this._triggerArray.push(i)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return _h}static get DefaultType(){return mh}static get NAME(){return th}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(ph).filter(u=>u!==this._element).map(u=>It.getOrCreateInstance(u,{toggle:!1}))),t.length&&t[0]._isTransitioning||w.trigger(this._element,ih).defaultPrevented)return;for(const u of t)u.hide();const r=this._getDimension();this._element.classList.remove(Tt),this._element.classList.add(vn),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(vn),this._element.classList.add(Tt,Ar),this._element.style[r]="",w.trigger(this._element,sh)},a=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(i,this._element,!0),this._element.style[r]=`${this._element[a]}px`}hide(){if(this._isTransitioning||!this._isShown()||w.trigger(this._element,oh).defaultPrevented)return;const n=this._getDimension();this._element.style[n]=`${this._element.getBoundingClientRect()[n]}px`,sn(this._element),this._element.classList.add(vn),this._element.classList.remove(Tt,Ar);for(const i of this._triggerArray){const o=P.getElementFromSelector(i);o&&!this._isShown(o)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(vn),this._element.classList.add(Tt),w.trigger(this._element,ah)};this._element.style[n]="",this._queueCallback(r,this._element,!0)}_isShown(t=this._element){return t.classList.contains(Ar)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=We(t.parent),t}_getDimension(){return this._element.classList.contains(fh)?dh:hh}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(Vr);for(const n of t){const r=P.getElementFromSelector(n);r&&this._addAriaAndCollapsedClass([n],this._isShown(r))}}_getFirstLevelChildren(t){const n=P.find(uh,this._config.parent);return P.find(t,this._config.parent).filter(r=>!n.includes(r))}_addAriaAndCollapsedClass(t,n){if(!!t.length)for(const r of t)r.classList.toggle(lh,!n),r.setAttribute("aria-expanded",n)}static jQueryInterface(t){const n={};return typeof t=="string"&&/show|hide/.test(t)&&(n.toggle=!1),this.each(function(){const r=It.getOrCreateInstance(this,n);if(typeof t=="string"){if(typeof r[t]>"u")throw new TypeError(`No method named "${t}"`);r[t]()}})}}w.on(document,ch,Vr,function(e){(e.target.tagName==="A"||e.delegateTarget&&e.delegateTarget.tagName==="A")&&e.preventDefault();for(const t of P.getMultipleElementsFromSelector(this))It.getOrCreateInstance(t,{toggle:!1}).toggle()});ye(It);const Ls="dropdown",gh="bs.dropdown",_t=`.${gh}`,Pi=".data-api",vh="Escape",Is="Tab",yh="ArrowUp",ks="ArrowDown",bh=2,Eh=`hide${_t}`,wh=`hidden${_t}`,Ah=`show${_t}`,Th=`shown${_t}`,Va=`click${_t}${Pi}`,ja=`keydown${_t}${Pi}`,Sh=`keyup${_t}${Pi}`,At="show",Oh="dropup",xh="dropend",$h="dropstart",Ch="dropup-center",Dh="dropdown-center",nt='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Nh=`${nt}.${At}`,$n=".dropdown-menu",Mh=".navbar",Lh=".navbar-nav",Ih=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",kh=ge()?"top-end":"top-start",Ph=ge()?"top-start":"top-end",Rh=ge()?"bottom-end":"bottom-start",Hh=ge()?"bottom-start":"bottom-end",Bh=ge()?"left-start":"right-start",Fh=ge()?"right-start":"left-start",Vh="top",jh="bottom",Wh={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Yh={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Ce extends Se{constructor(t,n){super(t,n),this._popper=null,this._parent=this._element.parentNode,this._menu=P.next(this._element,$n)[0]||P.prev(this._element,$n)[0]||P.findOne($n,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Wh}static get DefaultType(){return Yh}static get NAME(){return Ls}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Ye(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!w.trigger(this._element,Ah,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Lh))for(const r of[].concat(...document.body.children))w.on(r,"mouseover",Ln);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(At),this._element.classList.add(At),w.trigger(this._element,Th,t)}}hide(){if(Ye(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!w.trigger(this._element,Eh,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))w.off(r,"mouseover",Ln);this._popper&&this._popper.destroy(),this._menu.classList.remove(At),this._element.classList.remove(At),this._element.setAttribute("aria-expanded","false"),ke.removeDataAttribute(this._menu,"popper"),w.trigger(this._element,wh,t)}}_getConfig(t){if(t=super._getConfig(t),typeof t.reference=="object"&&!Ie(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${Ls.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(typeof Ta>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;this._config.reference==="parent"?t=this._parent:Ie(this._config.reference)?t=We(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const n=this._getPopperConfig();this._popper=Li(t,this._menu,n)}_isShown(){return this._menu.classList.contains(At)}_getPlacement(){const t=this._parent;if(t.classList.contains(xh))return Bh;if(t.classList.contains($h))return Fh;if(t.classList.contains(Ch))return Vh;if(t.classList.contains(Dh))return jh;const n=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(Oh)?n?Ph:kh:n?Hh:Rh}_detectNavbar(){return this._element.closest(Mh)!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(n=>Number.parseInt(n,10)):typeof t=="function"?n=>t(n,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(ke.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...fe(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:n}){const r=P.find(Ih,this._menu).filter(i=>Bt(i));!r.length||Ii(r,n,t===ks,!r.includes(n)).focus()}static jQueryInterface(t){return this.each(function(){const n=Ce.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t]()}})}static clearMenus(t){if(t.button===bh||t.type==="keyup"&&t.key!==Is)return;const n=P.find(Nh);for(const r of n){const i=Ce.getInstance(r);if(!i||i._config.autoClose===!1)continue;const o=t.composedPath(),a=o.includes(i._menu);if(o.includes(i._element)||i._config.autoClose==="inside"&&!a||i._config.autoClose==="outside"&&a||i._menu.contains(t.target)&&(t.type==="keyup"&&t.key===Is||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const u={relatedTarget:i._element};t.type==="click"&&(u.clickEvent=t),i._completeHide(u)}}static dataApiKeydownHandler(t){const n=/input|textarea/i.test(t.target.tagName),r=t.key===vh,i=[yh,ks].includes(t.key);if(!i&&!r||n&&!r)return;t.preventDefault();const o=this.matches(nt)?this:P.prev(this,nt)[0]||P.next(this,nt)[0]||P.findOne(nt,t.delegateTarget.parentNode),a=Ce.getOrCreateInstance(o);if(i){t.stopPropagation(),a.show(),a._selectMenuItem(t);return}a._isShown()&&(t.stopPropagation(),a.hide(),o.focus())}}w.on(document,ja,nt,Ce.dataApiKeydownHandler);w.on(document,ja,$n,Ce.dataApiKeydownHandler);w.on(document,Va,Ce.clearMenus);w.on(document,Sh,Ce.clearMenus);w.on(document,Va,nt,function(e){e.preventDefault(),Ce.getOrCreateInstance(this).toggle()});ye(Ce);const Wa="backdrop",Gh="fade",Ps="show",Rs=`mousedown.bs.${Wa}`,Uh={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Kh={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Ya extends on{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Uh}static get DefaultType(){return Kh}static get NAME(){return Wa}show(t){if(!this._config.isVisible){fe(t);return}this._append();const n=this._getElement();this._config.isAnimated&&sn(n),n.classList.add(Ps),this._emulateAnimation(()=>{fe(t)})}hide(t){if(!this._config.isVisible){fe(t);return}this._getElement().classList.remove(Ps),this._emulateAnimation(()=>{this.dispose(),fe(t)})}dispose(){!this._isAppended||(w.off(this._element,Rs),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(Gh),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=We(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),w.on(t,Rs,()=>{fe(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){Ca(t,this._getElement(),this._config.isAnimated)}}const qh="focustrap",zh="bs.focustrap",kn=`.${zh}`,Xh=`focusin${kn}`,Qh=`keydown.tab${kn}`,Jh="Tab",Zh="forward",Hs="backward",ep={autofocus:!0,trapElement:null},tp={autofocus:"boolean",trapElement:"element"};class Ga extends on{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return ep}static get DefaultType(){return tp}static get NAME(){return qh}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),w.off(document,kn),w.on(document,Xh,t=>this._handleFocusin(t)),w.on(document,Qh,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){!this._isActive||(this._isActive=!1,w.off(document,kn))}_handleFocusin(t){const{trapElement:n}=this._config;if(t.target===document||t.target===n||n.contains(t.target))return;const r=P.focusableChildren(n);r.length===0?n.focus():this._lastTabNavDirection===Hs?r[r.length-1].focus():r[0].focus()}_handleKeydown(t){t.key===Jh&&(this._lastTabNavDirection=t.shiftKey?Hs:Zh)}}const Bs=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Fs=".sticky-top",yn="padding-right",Vs="margin-right";class jr{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,yn,n=>n+t),this._setElementAttributes(Bs,yn,n=>n+t),this._setElementAttributes(Fs,Vs,n=>n-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,yn),this._resetElementAttributes(Bs,yn),this._resetElementAttributes(Fs,Vs)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,n,r){const i=this.getWidth(),o=a=>{if(a!==this._element&&window.innerWidth>a.clientWidth+i)return;this._saveInitialAttribute(a,n);const u=window.getComputedStyle(a).getPropertyValue(n);a.style.setProperty(n,`${r(Number.parseFloat(u))}px`)};this._applyManipulationCallback(t,o)}_saveInitialAttribute(t,n){const r=t.style.getPropertyValue(n);r&&ke.setDataAttribute(t,n,r)}_resetElementAttributes(t,n){const r=i=>{const o=ke.getDataAttribute(i,n);if(o===null){i.style.removeProperty(n);return}ke.removeDataAttribute(i,n),i.style.setProperty(n,o)};this._applyManipulationCallback(t,r)}_applyManipulationCallback(t,n){if(Ie(t)){n(t);return}for(const r of P.find(t,this._element))n(r)}}const np="modal",rp="bs.modal",ve=`.${rp}`,ip=".data-api",sp="Escape",op=`hide${ve}`,ap=`hidePrevented${ve}`,Ua=`hidden${ve}`,Ka=`show${ve}`,cp=`shown${ve}`,lp=`resize${ve}`,up=`click.dismiss${ve}`,fp=`mousedown.dismiss${ve}`,dp=`keydown.dismiss${ve}`,hp=`click${ve}${ip}`,js="modal-open",pp="fade",Ws="show",Tr="modal-static",_p=".modal.show",mp=".modal-dialog",gp=".modal-body",vp='[data-bs-toggle="modal"]',yp={backdrop:!0,focus:!0,keyboard:!0},bp={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class ut extends Se{constructor(t,n){super(t,n),this._dialog=P.findOne(mp,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new jr,this._addEventListeners()}static get Default(){return yp}static get DefaultType(){return bp}static get NAME(){return np}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||w.trigger(this._element,Ka,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(js),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){!this._isShown||this._isTransitioning||w.trigger(this._element,op).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Ws),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){w.off(window,ve),w.off(this._dialog,ve),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Ya({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Ga({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const n=P.findOne(gp,this._dialog);n&&(n.scrollTop=0),sn(this._element),this._element.classList.add(Ws);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,w.trigger(this._element,cp,{relatedTarget:t})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){w.on(this._element,dp,t=>{if(t.key===sp){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),w.on(window,lp,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),w.on(this._element,fp,t=>{w.one(this._element,up,n=>{if(!(this._element!==t.target||this._element!==n.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(js),this._resetAdjustments(),this._scrollBar.reset(),w.trigger(this._element,Ua)})}_isAnimated(){return this._element.classList.contains(pp)}_triggerBackdropTransition(){if(w.trigger(this._element,ap).defaultPrevented)return;const n=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains(Tr)||(n||(this._element.style.overflowY="hidden"),this._element.classList.add(Tr),this._queueCallback(()=>{this._element.classList.remove(Tr),this._queueCallback(()=>{this._element.style.overflowY=r},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,n=this._scrollBar.getWidth(),r=n>0;if(r&&!t){const i=ge()?"paddingLeft":"paddingRight";this._element.style[i]=`${n}px`}if(!r&&t){const i=ge()?"paddingRight":"paddingLeft";this._element.style[i]=`${n}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,n){return this.each(function(){const r=ut.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof r[t]>"u")throw new TypeError(`No method named "${t}"`);r[t](n)}})}}w.on(document,hp,vp,function(e){const t=P.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),w.one(t,Ka,i=>{i.defaultPrevented||w.one(t,Ua,()=>{Bt(this)&&this.focus()})});const n=P.findOne(_p);n&&ut.getInstance(n).hide(),ut.getOrCreateInstance(t).toggle(this)});Xn(ut);ye(ut);const Ep="offcanvas",wp="bs.offcanvas",Fe=`.${wp}`,qa=".data-api",Ap=`load${Fe}${qa}`,Tp="Escape",Ys="show",Gs="showing",Us="hiding",Sp="offcanvas-backdrop",za=".offcanvas.show",Op=`show${Fe}`,xp=`shown${Fe}`,$p=`hide${Fe}`,Ks=`hidePrevented${Fe}`,Xa=`hidden${Fe}`,Cp=`resize${Fe}`,Dp=`click${Fe}${qa}`,Np=`keydown.dismiss${Fe}`,Mp='[data-bs-toggle="offcanvas"]',Lp={backdrop:!0,keyboard:!0,scroll:!1},Ip={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Ge extends Se{constructor(t,n){super(t,n),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Lp}static get DefaultType(){return Ip}static get NAME(){return Ep}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||w.trigger(this._element,Op,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new jr().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Gs);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Ys),this._element.classList.remove(Gs),w.trigger(this._element,xp,{relatedTarget:t})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||w.trigger(this._element,$p).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Us),this._backdrop.hide();const n=()=>{this._element.classList.remove(Ys,Us),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new jr().reset(),w.trigger(this._element,Xa)};this._queueCallback(n,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=()=>{if(this._config.backdrop==="static"){w.trigger(this._element,Ks);return}this.hide()},n=Boolean(this._config.backdrop);return new Ya({className:Sp,isVisible:n,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:n?t:null})}_initializeFocusTrap(){return new Ga({trapElement:this._element})}_addEventListeners(){w.on(this._element,Np,t=>{if(t.key===Tp){if(this._config.keyboard){this.hide();return}w.trigger(this._element,Ks)}})}static jQueryInterface(t){return this.each(function(){const n=Ge.getOrCreateInstance(this,t);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t](this)}})}}w.on(document,Dp,Mp,function(e){const t=P.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),Ye(this))return;w.one(t,Xa,()=>{Bt(this)&&this.focus()});const n=P.findOne(za);n&&n!==t&&Ge.getInstance(n).hide(),Ge.getOrCreateInstance(t).toggle(this)});w.on(window,Ap,()=>{for(const e of P.find(za))Ge.getOrCreateInstance(e).show()});w.on(window,Cp,()=>{for(const e of P.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(e).position!=="fixed"&&Ge.getOrCreateInstance(e).hide()});Xn(Ge);ye(Ge);const kp=/^aria-[\w-]*$/i,Qa={"*":["class","dir","id","lang","role",kp],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Pp=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Rp=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Hp=(e,t)=>{const n=e.nodeName.toLowerCase();return t.includes(n)?Pp.has(n)?Boolean(Rp.test(e.nodeValue)):!0:t.filter(r=>r instanceof RegExp).some(r=>r.test(n))};function Bp(e,t,n){if(!e.length)return e;if(n&&typeof n=="function")return n(e);const i=new window.DOMParser().parseFromString(e,"text/html"),o=[].concat(...i.body.querySelectorAll("*"));for(const a of o){const u=a.nodeName.toLowerCase();if(!Object.keys(t).includes(u)){a.remove();continue}const f=[].concat(...a.attributes),d=[].concat(t["*"]||[],t[u]||[]);for(const g of f)Hp(g,d)||a.removeAttribute(g.nodeName)}return i.body.innerHTML}const Fp="TemplateFactory",Vp={allowList:Qa,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},jp={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Wp={entry:"(string|element|function|null)",selector:"(string|element)"};class Yp extends on{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Vp}static get DefaultType(){return jp}static get NAME(){return Fp}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[i,o]of Object.entries(this._config.content))this._setContent(t,o,i);const n=t.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&n.classList.add(...r.split(" ")),n}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[n,r]of Object.entries(t))super._typeCheckConfig({selector:n,entry:r},Wp)}_setContent(t,n,r){const i=P.findOne(r,t);if(!!i){if(n=this._resolvePossibleFunction(n),!n){i.remove();return}if(Ie(n)){this._putElementInTemplate(We(n),i);return}if(this._config.html){i.innerHTML=this._maybeSanitize(n);return}i.textContent=n}}_maybeSanitize(t){return this._config.sanitize?Bp(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return fe(t,[this])}_putElementInTemplate(t,n){if(this._config.html){n.innerHTML="",n.append(t);return}n.textContent=t.textContent}}const Gp="tooltip",Up=new Set(["sanitize","allowList","sanitizeFn"]),Sr="fade",Kp="modal",bn="show",qp=".tooltip-inner",qs=`.${Kp}`,zs="hide.bs.modal",Yt="hover",Or="focus",zp="click",Xp="manual",Qp="hide",Jp="hidden",Zp="show",e_="shown",t_="inserted",n_="click",r_="focusin",i_="focusout",s_="mouseenter",o_="mouseleave",a_={AUTO:"auto",TOP:"top",RIGHT:ge()?"left":"right",BOTTOM:"bottom",LEFT:ge()?"right":"left"},c_={allowList:Qa,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},l_={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class mt extends Se{constructor(t,n){if(typeof Ta>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,n),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return c_}static get DefaultType(){return l_}static get NAME(){return Gp}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(!!this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),w.off(this._element.closest(qs),zs,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const t=w.trigger(this._element,this.constructor.eventName(Zp)),r=(xa(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!r)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:o}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(o.append(i),w.trigger(this._element,this.constructor.eventName(t_))),this._popper=this._createPopper(i),i.classList.add(bn),"ontouchstart"in document.documentElement)for(const u of[].concat(...document.body.children))w.on(u,"mouseover",Ln);const a=()=>{w.trigger(this._element,this.constructor.eventName(e_)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(a,this.tip,this._isAnimated())}hide(){if(!this._isShown()||w.trigger(this._element,this.constructor.eventName(Qp)).defaultPrevented)return;if(this._getTipElement().classList.remove(bn),"ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))w.off(i,"mouseover",Ln);this._activeTrigger[zp]=!1,this._activeTrigger[Or]=!1,this._activeTrigger[Yt]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),w.trigger(this._element,this.constructor.eventName(Jp)))};this._queueCallback(r,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const n=this._getTemplateFactory(t).toHtml();if(!n)return null;n.classList.remove(Sr,bn),n.classList.add(`bs-${this.constructor.NAME}-auto`);const r=zf(this.constructor.NAME).toString();return n.setAttribute("id",r),this._isAnimated()&&n.classList.add(Sr),n}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Yp({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[qp]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Sr)}_isShown(){return this.tip&&this.tip.classList.contains(bn)}_createPopper(t){const n=fe(this._config.placement,[this,t,this._element]),r=a_[n.toUpperCase()];return Li(this._element,t,this._getPopperConfig(r))}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(n=>Number.parseInt(n,10)):typeof t=="function"?n=>t(n,this._element):t}_resolvePossibleFunction(t){return fe(t,[this._element])}_getPopperConfig(t){const n={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:r=>{this._getTipElement().setAttribute("data-popper-placement",r.state.placement)}}]};return{...n,...fe(this._config.popperConfig,[n])}}_setListeners(){const t=this._config.trigger.split(" ");for(const n of t)if(n==="click")w.on(this._element,this.constructor.eventName(n_),this._config.selector,r=>{this._initializeOnDelegatedTarget(r).toggle()});else if(n!==Xp){const r=n===Yt?this.constructor.eventName(s_):this.constructor.eventName(r_),i=n===Yt?this.constructor.eventName(o_):this.constructor.eventName(i_);w.on(this._element,r,this._config.selector,o=>{const a=this._initializeOnDelegatedTarget(o);a._activeTrigger[o.type==="focusin"?Or:Yt]=!0,a._enter()}),w.on(this._element,i,this._config.selector,o=>{const a=this._initializeOnDelegatedTarget(o);a._activeTrigger[o.type==="focusout"?Or:Yt]=a._element.contains(o.relatedTarget),a._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},w.on(this._element.closest(qs),zs,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");!t||(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,n){clearTimeout(this._timeout),this._timeout=setTimeout(t,n)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const n=ke.getDataAttributes(this._element);for(const r of Object.keys(n))Up.has(r)&&delete n[r];return t={...n,...typeof t=="object"&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=t.container===!1?document.body:We(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[n,r]of Object.entries(this._config))this.constructor.Default[n]!==r&&(t[n]=r);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const n=mt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t]()}})}}ye(mt);const u_="popover",f_=".popover-header",d_=".popover-body",h_={...mt.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},p_={...mt.DefaultType,content:"(null|string|element|function)"};class Ri extends mt{static get Default(){return h_}static get DefaultType(){return p_}static get NAME(){return u_}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[f_]:this._getTitle(),[d_]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const n=Ri.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t]()}})}}ye(Ri);const __="scrollspy",m_="bs.scrollspy",Hi=`.${m_}`,g_=".data-api",v_=`activate${Hi}`,Xs=`click${Hi}`,y_=`load${Hi}${g_}`,b_="dropdown-item",yt="active",E_='[data-bs-spy="scroll"]',xr="[href]",w_=".nav, .list-group",Qs=".nav-link",A_=".nav-item",T_=".list-group-item",S_=`${Qs}, ${A_} > ${Qs}, ${T_}`,O_=".dropdown",x_=".dropdown-toggle",$_={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},C_={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Jn extends Se{constructor(t,n){super(t,n),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return $_}static get DefaultType(){return C_}static get NAME(){return __}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=We(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,typeof t.threshold=="string"&&(t.threshold=t.threshold.split(",").map(n=>Number.parseFloat(n))),t}_maybeEnableSmoothScroll(){!this._config.smoothScroll||(w.off(this._config.target,Xs),w.on(this._config.target,Xs,xr,t=>{const n=this._observableSections.get(t.target.hash);if(n){t.preventDefault();const r=this._rootElement||window,i=n.offsetTop-this._element.offsetTop;if(r.scrollTo){r.scrollTo({top:i,behavior:"smooth"});return}r.scrollTop=i}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(n=>this._observerCallback(n),t)}_observerCallback(t){const n=a=>this._targetLinks.get(`#${a.target.id}`),r=a=>{this._previousScrollData.visibleEntryTop=a.target.offsetTop,this._process(n(a))},i=(this._rootElement||document.documentElement).scrollTop,o=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const a of t){if(!a.isIntersecting){this._activeTarget=null,this._clearActiveClass(n(a));continue}const u=a.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(o&&u){if(r(a),!i)return;continue}!o&&!u&&r(a)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=P.find(xr,this._config.target);for(const n of t){if(!n.hash||Ye(n))continue;const r=P.findOne(decodeURI(n.hash),this._element);Bt(r)&&(this._targetLinks.set(decodeURI(n.hash),n),this._observableSections.set(n.hash,r))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(yt),this._activateParents(t),w.trigger(this._element,v_,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(b_)){P.findOne(x_,t.closest(O_)).classList.add(yt);return}for(const n of P.parents(t,w_))for(const r of P.prev(n,S_))r.classList.add(yt)}_clearActiveClass(t){t.classList.remove(yt);const n=P.find(`${xr}.${yt}`,t);for(const r of n)r.classList.remove(yt)}static jQueryInterface(t){return this.each(function(){const n=Jn.getOrCreateInstance(this,t);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t]()}})}}w.on(window,y_,()=>{for(const e of P.find(E_))Jn.getOrCreateInstance(e)});ye(Jn);const D_="tab",N_="bs.tab",gt=`.${N_}`,M_=`hide${gt}`,L_=`hidden${gt}`,I_=`show${gt}`,k_=`shown${gt}`,P_=`click${gt}`,R_=`keydown${gt}`,H_=`load${gt}`,B_="ArrowLeft",Js="ArrowRight",F_="ArrowUp",Zs="ArrowDown",$r="Home",eo="End",rt="active",to="fade",Cr="show",V_="dropdown",Ja=".dropdown-toggle",j_=".dropdown-menu",Dr=`:not(${Ja})`,W_='.list-group, .nav, [role="tablist"]',Y_=".nav-item, .list-group-item",G_=`.nav-link${Dr}, .list-group-item${Dr}, [role="tab"]${Dr}`,Za='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Nr=`${G_}, ${Za}`,U_=`.${rt}[data-bs-toggle="tab"], .${rt}[data-bs-toggle="pill"], .${rt}[data-bs-toggle="list"]`;class kt extends Se{constructor(t){super(t),this._parent=this._element.closest(W_),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),w.on(this._element,R_,n=>this._keydown(n)))}static get NAME(){return D_}show(){const t=this._element;if(this._elemIsActive(t))return;const n=this._getActiveElem(),r=n?w.trigger(n,M_,{relatedTarget:t}):null;w.trigger(t,I_,{relatedTarget:n}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(n,t),this._activate(t,n))}_activate(t,n){if(!t)return;t.classList.add(rt),this._activate(P.getElementFromSelector(t));const r=()=>{if(t.getAttribute("role")!=="tab"){t.classList.add(Cr);return}t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),w.trigger(t,k_,{relatedTarget:n})};this._queueCallback(r,t,t.classList.contains(to))}_deactivate(t,n){if(!t)return;t.classList.remove(rt),t.blur(),this._deactivate(P.getElementFromSelector(t));const r=()=>{if(t.getAttribute("role")!=="tab"){t.classList.remove(Cr);return}t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),w.trigger(t,L_,{relatedTarget:n})};this._queueCallback(r,t,t.classList.contains(to))}_keydown(t){if(![B_,Js,F_,Zs,$r,eo].includes(t.key))return;t.stopPropagation(),t.preventDefault();const n=this._getChildren().filter(i=>!Ye(i));let r;if([$r,eo].includes(t.key))r=n[t.key===$r?0:n.length-1];else{const i=[Js,Zs].includes(t.key);r=Ii(n,t.target,i,!0)}r&&(r.focus({preventScroll:!0}),kt.getOrCreateInstance(r).show())}_getChildren(){return P.find(Nr,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,n){this._setAttributeIfNotExists(t,"role","tablist");for(const r of n)this._setInitialAttributesOnChild(r)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const n=this._elemIsActive(t),r=this._getOuterElement(t);t.setAttribute("aria-selected",n),r!==t&&this._setAttributeIfNotExists(r,"role","presentation"),n||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const n=P.getElementFromSelector(t);!n||(this._setAttributeIfNotExists(n,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(n,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,n){const r=this._getOuterElement(t);if(!r.classList.contains(V_))return;const i=(o,a)=>{const u=P.findOne(o,r);u&&u.classList.toggle(a,n)};i(Ja,rt),i(j_,Cr),r.setAttribute("aria-expanded",n)}_setAttributeIfNotExists(t,n,r){t.hasAttribute(n)||t.setAttribute(n,r)}_elemIsActive(t){return t.classList.contains(rt)}_getInnerElement(t){return t.matches(Nr)?t:P.findOne(Nr,t)}_getOuterElement(t){return t.closest(Y_)||t}static jQueryInterface(t){return this.each(function(){const n=kt.getOrCreateInstance(this);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t]()}})}}w.on(document,P_,Za,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),!Ye(this)&&kt.getOrCreateInstance(this).show()});w.on(window,H_,()=>{for(const e of P.find(U_))kt.getOrCreateInstance(e)});ye(kt);const K_="toast",q_="bs.toast",Je=`.${q_}`,z_=`mouseover${Je}`,X_=`mouseout${Je}`,Q_=`focusin${Je}`,J_=`focusout${Je}`,Z_=`hide${Je}`,em=`hidden${Je}`,tm=`show${Je}`,nm=`shown${Je}`,rm="fade",no="hide",En="show",wn="showing",im={animation:"boolean",autohide:"boolean",delay:"number"},sm={animation:!0,autohide:!0,delay:5e3};class un extends Se{constructor(t,n){super(t,n),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return sm}static get DefaultType(){return im}static get NAME(){return K_}show(){if(w.trigger(this._element,tm).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(rm);const n=()=>{this._element.classList.remove(wn),w.trigger(this._element,nm),this._maybeScheduleHide()};this._element.classList.remove(no),sn(this._element),this._element.classList.add(En,wn),this._queueCallback(n,this._element,this._config.animation)}hide(){if(!this.isShown()||w.trigger(this._element,Z_).defaultPrevented)return;const n=()=>{this._element.classList.add(no),this._element.classList.remove(wn,En),w.trigger(this._element,em)};this._element.classList.add(wn),this._queueCallback(n,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(En),super.dispose()}isShown(){return this._element.classList.contains(En)}_maybeScheduleHide(){!this._config.autohide||this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay))}_onInteraction(t,n){switch(t.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=n;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=n;break}}if(n){this._clearTimeout();return}const r=t.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){w.on(this._element,z_,t=>this._onInteraction(t,!0)),w.on(this._element,X_,t=>this._onInteraction(t,!1)),w.on(this._element,Q_,t=>this._onInteraction(t,!0)),w.on(this._element,J_,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const n=un.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t](this)}})}}Xn(un);ye(un);const om=()=>{[].slice.call(document.querySelectorAll(".alert")).map(function(t){return new an(t)})},am=()=>{[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map(t=>new mt(t))},cm=()=>{[].slice.call(document.querySelectorAll(".collapse")).map(t=>new It(t,{toggle:!1}))};var Wr=!1,Yr=!1,st=[];function lm(e){um(e)}function um(e){st.includes(e)||st.push(e),fm()}function ec(e){let t=st.indexOf(e);t!==-1&&st.splice(t,1)}function fm(){!Yr&&!Wr&&(Wr=!0,queueMicrotask(dm))}function dm(){Wr=!1,Yr=!0;for(let e=0;ee.effect(t,{scheduler:n=>{Gr?lm(n):n()}}),tc=e.raw}function ro(e){fn=e}function _m(e){let t=()=>{};return[r=>{let i=fn(r);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(o=>o())}),e._x_effects.add(i),t=()=>{i!==void 0&&(e._x_effects.delete(i),Zn(i))},i},()=>{t()}]}var nc=[],rc=[],ic=[];function mm(e){ic.push(e)}function sc(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,rc.push(t))}function gm(e){nc.push(e)}function vm(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function oc(e,t){!e._x_attributeCleanups||Object.entries(e._x_attributeCleanups).forEach(([n,r])=>{(t===void 0||t.includes(n))&&(r.forEach(i=>i()),delete e._x_attributeCleanups[n])})}var Bi=new MutationObserver(ji),Fi=!1;function ac(){Bi.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Fi=!0}function ym(){bm(),Bi.disconnect(),Fi=!1}var Xt=[],Mr=!1;function bm(){Xt=Xt.concat(Bi.takeRecords()),Xt.length&&!Mr&&(Mr=!0,queueMicrotask(()=>{Em(),Mr=!1}))}function Em(){ji(Xt),Xt.length=0}function te(e){if(!Fi)return e();ym();let t=e();return ac(),t}var Vi=!1,Pn=[];function wm(){Vi=!0}function Am(){Vi=!1,ji(Pn),Pn=[]}function ji(e){if(Vi){Pn=Pn.concat(e);return}let t=[],n=[],r=new Map,i=new Map;for(let o=0;oa.nodeType===1&&t.push(a)),e[o].removedNodes.forEach(a=>a.nodeType===1&&n.push(a))),e[o].type==="attributes")){let a=e[o].target,u=e[o].attributeName,f=e[o].oldValue,d=()=>{r.has(a)||r.set(a,[]),r.get(a).push({name:u,value:a.getAttribute(u)})},g=()=>{i.has(a)||i.set(a,[]),i.get(a).push(u)};a.hasAttribute(u)&&f===null?d():a.hasAttribute(u)?(g(),d()):g()}i.forEach((o,a)=>{oc(a,o)}),r.forEach((o,a)=>{nc.forEach(u=>u(a,o))});for(let o of n)if(!t.includes(o)&&(rc.forEach(a=>a(o)),o._x_cleanups))for(;o._x_cleanups.length;)o._x_cleanups.pop()();t.forEach(o=>{o._x_ignoreSelf=!0,o._x_ignore=!0});for(let o of t)n.includes(o)||!o.isConnected||(delete o._x_ignoreSelf,delete o._x_ignore,ic.forEach(a=>a(o)),o._x_ignore=!0,o._x_ignoreSelf=!0);t.forEach(o=>{delete o._x_ignoreSelf,delete o._x_ignore}),t=null,n=null,r=null,i=null}function cc(e){return hn(Pt(e))}function dn(e,t,n){return e._x_dataStack=[t,...Pt(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(r=>r!==t)}}function io(e,t){let n=e._x_dataStack[0];Object.entries(t).forEach(([r,i])=>{n[r]=i})}function Pt(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?Pt(e.host):e.parentNode?Pt(e.parentNode):[]}function hn(e){let t=new Proxy({},{ownKeys:()=>Array.from(new Set(e.flatMap(n=>Object.keys(n)))),has:(n,r)=>e.some(i=>i.hasOwnProperty(r)),get:(n,r)=>(e.find(i=>{if(i.hasOwnProperty(r)){let o=Object.getOwnPropertyDescriptor(i,r);if(o.get&&o.get._x_alreadyBound||o.set&&o.set._x_alreadyBound)return!0;if((o.get||o.set)&&o.enumerable){let a=o.get,u=o.set,f=o;a=a&&a.bind(t),u=u&&u.bind(t),a&&(a._x_alreadyBound=!0),u&&(u._x_alreadyBound=!0),Object.defineProperty(i,r,{...f,get:a,set:u})}return!0}return!1})||{})[r],set:(n,r,i)=>{let o=e.find(a=>a.hasOwnProperty(r));return o?o[r]=i:e[e.length-1][r]=i,!0}});return t}function lc(e){let t=r=>typeof r=="object"&&!Array.isArray(r)&&r!==null,n=(r,i="")=>{Object.entries(Object.getOwnPropertyDescriptors(r)).forEach(([o,{value:a,enumerable:u}])=>{if(u===!1||a===void 0)return;let f=i===""?o:`${i}.${o}`;typeof a=="object"&&a!==null&&a._x_interceptor?r[o]=a.initialize(e,f,o):t(a)&&a!==r&&!(a instanceof Element)&&n(a,f)})};return n(e)}function uc(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(r,i,o){return e(this.initialValue,()=>Tm(r,i),a=>Ur(r,i,a),i,o)}};return t(n),r=>{if(typeof r=="object"&&r!==null&&r._x_interceptor){let i=n.initialize.bind(n);n.initialize=(o,a,u)=>{let f=r.initialize(o,a,u);return n.initialValue=f,i(o,a,u)}}else n.initialValue=r;return n}}function Tm(e,t){return t.split(".").reduce((n,r)=>n[r],e)}function Ur(e,t,n){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=n;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),Ur(e[t[0]],t.slice(1),n)}}var fc={};function Le(e,t){fc[e]=t}function Kr(e,t){return Object.entries(fc).forEach(([n,r])=>{Object.defineProperty(e,`$${n}`,{get(){let[i,o]=mc(t);return i={interceptor:uc,...i},sc(t,o),r(t,i)},enumerable:!1})}),e}function Sm(e,t,n,...r){try{return n(...r)}catch(i){en(i,e,t)}}function en(e,t,n=void 0){Object.assign(e,{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message} ${n?'Expression: "'+n+`" -`:""}`,t),setTimeout(()=>{throw e},0)}function St(e,t,n={}){let r;return le(e,t)(i=>r=i,n),r}function le(...e){return dc(...e)}var dc=hc;function Sm(e){dc=e}function hc(e,t){let n={};Kr(n,e);let r=[n,...Pt(e)];if(typeof t=="function")return Om(r,t);let i=$m(r,t,e);return Tm.bind(null,e,t,i)}function Om(e,t){return(n=()=>{},{scope:r={},params:i=[]}={})=>{let o=t.apply(hn([r,...e]),i);Rn(n,o)}}var Lr={};function xm(e,t){if(Lr[e])return Lr[e];let n=Object.getPrototypeOf(async function(){}).constructor,r=/^[\n\s]*if.*\(.*\)/.test(e)||/^(let|const)\s/.test(e)?`(() => { ${e} })()`:e,o=(()=>{try{return new n(["__self","scope"],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`)}catch(a){return en(a,t,e),Promise.resolve()}})();return Lr[e]=o,o}function $m(e,t,n){let r=xm(t,n);return(i=()=>{},{scope:o={},params:a=[]}={})=>{r.result=void 0,r.finished=!1;let u=hn([o,...e]);if(typeof r=="function"){let f=r(r,u).catch(d=>en(d,n,t));r.finished?(Rn(i,r.result,u,a,n),r.result=void 0):f.then(d=>{Rn(i,d,u,a,n)}).catch(d=>en(d,n,t)).finally(()=>r.result=void 0)}}}function Rn(e,t,n,r,i){if(typeof t=="function"){let o=t.apply(n,r);o instanceof Promise?o.then(a=>Rn(e,a,n,r)).catch(a=>en(a,i,t)):e(o)}else e(t)}var Wi="x-";function jt(e=""){return Wi+e}function Cm(e){Wi=e}var pc={};function ee(e,t){pc[e]=t}function Yi(e,t,n){let r={};return Array.from(t).map(yc((o,a)=>r[o]=a)).filter(Ec).map(Lm(r,n)).sort(Im).map(o=>Mm(e,o))}function Dm(e){return Array.from(e).map(yc()).filter(t=>!Ec(t))}var qr=!1,Kt=new Map,_c=Symbol();function Nm(e){qr=!0;let t=Symbol();_c=t,Kt.set(t,[]);let n=()=>{for(;Kt.get(t).length;)Kt.get(t).shift()();Kt.delete(t)},r=()=>{qr=!1,n()};e(n),r()}function mc(e){let t=[],n=u=>t.push(u),[r,i]=pm(e);return t.push(i),[{Alpine:pn,effect:r,cleanup:n,evaluateLater:le.bind(le,e),evaluate:St.bind(St,e)},()=>t.forEach(u=>u())]}function Mm(e,t){let n=()=>{},r=pc[t.type]||n,[i,o]=mc(e);gm(e,t.original,o);let a=()=>{e._x_ignore||e._x_ignoreSelf||(r.inline&&r.inline(e,t,i),r=r.bind(r,e,t,i),qr?Kt.get(_c).push(r):r())};return a.runCleanups=o,a}var gc=(e,t)=>({name:n,value:r})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:r}),vc=e=>e;function yc(e=()=>{}){return({name:t,value:n})=>{let{name:r,value:i}=bc.reduce((o,a)=>a(o),{name:t,value:n});return r!==t&&e(r,t),{name:r,value:i}}}var bc=[];function Gi(e){bc.push(e)}function Ec({name:e}){return wc().test(e)}var wc=()=>new RegExp(`^${Wi}([^:^.]+)\\b`);function Lm(e,t){return({name:n,value:r})=>{let i=n.match(wc()),o=n.match(/:([a-zA-Z0-9\-:]+)/),a=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],u=t||e[n]||n;return{type:i?i[1]:null,value:o?o[1]:null,modifiers:a.map(f=>f.replace(".","")),expression:r,original:u}}}var zr="DEFAULT",An=["ignore","ref","data","id","bind","init","for","model","modelable","transition","show","if",zr,"teleport","element"];function Im(e,t){let n=An.indexOf(e.type)===-1?zr:e.type,r=An.indexOf(t.type)===-1?zr:t.type;return An.indexOf(n)-An.indexOf(r)}function Qt(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}var Xr=[],Ui=!1;function Ac(e){Xr.push(e),queueMicrotask(()=>{Ui||setTimeout(()=>{Qr()})})}function Qr(){for(Ui=!1;Xr.length;)Xr.shift()()}function km(){Ui=!0}function ft(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(i=>ft(i,t));return}let n=!1;if(t(e,()=>n=!0),n)return;let r=e.firstElementChild;for(;r;)ft(r,t),r=r.nextElementSibling}function Hn(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}function Pm(){document.body||Hn("Unable to initialize. Trying to load Alpine before `` is available. Did you forget to add `defer` in Alpine's `