Files
CKB/public/js/vendor.js

3 lines
472 KiB
JavaScript
Raw Blame History

/*! For license information please see vendor.js.LICENSE.txt */
(()=>{var t={465:function(t){t.exports=function(){"use strict";function t(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function e(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function n(e,n){return e.get(t(e,n))}function i(t,n,i){e(t,n),n.set(t,i)}function o(e,n,i){return e.set(t(e,n),i),i}const r=100,s={},a=()=>{s.previousActiveElement instanceof HTMLElement?(s.previousActiveElement.focus(),s.previousActiveElement=null):document.body&&document.body.focus()},l=t=>new Promise((e=>{if(!t)return e();const n=window.scrollX,i=window.scrollY;s.restoreFocusTimeout=setTimeout((()=>{a(),e()}),r),window.scrollTo(n,i)})),c="swal2-",h=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","draggable","dragging"].reduce(((t,e)=>(t[e]=c+e,t)),{}),u=["success","warning","info","question","error"].reduce(((t,e)=>(t[e]=c+e,t)),{}),d="SweetAlert2:",f=t=>t.charAt(0).toUpperCase()+t.slice(1),p=t=>{console.warn(`${d} ${"object"==typeof t?t.join(" "):t}`)},g=t=>{console.error(`${d} ${t}`)},m=[],b=t=>{m.includes(t)||(m.push(t),p(t))},v=(t,e=null)=>{b(`"${t}" is deprecated and will be removed in the next major release.${e?` Use "${e}" instead.`:""}`)},y=t=>"function"==typeof t?t():t,w=t=>t&&"function"==typeof t.toPromise,x=t=>w(t)?t.toPromise():Promise.resolve(t),_=t=>t&&Promise.resolve(t)===t,S=()=>document.body.querySelector(`.${h.container}`),C=t=>{const e=S();return e?e.querySelector(t):null},k=t=>C(`.${t}`),D=()=>k(h.popup),T=()=>k(h.icon),A=()=>k(h["icon-content"]),M=()=>k(h.title),P=()=>k(h["html-container"]),L=()=>k(h.image),E=()=>k(h["progress-steps"]),I=()=>k(h["validation-message"]),O=()=>C(`.${h.actions} .${h.confirm}`),R=()=>C(`.${h.actions} .${h.cancel}`),F=()=>C(`.${h.actions} .${h.deny}`),j=()=>k(h["input-label"]),B=()=>C(`.${h.loader}`),N=()=>k(h.actions),H=()=>k(h.footer),z=()=>k(h["timer-progress-bar"]),W=()=>k(h.close),$='\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n',V=()=>{const t=D();if(!t)return[];const e=t.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(e).sort(((t,e)=>{const n=parseInt(t.getAttribute("tabindex")||"0"),i=parseInt(e.getAttribute("tabindex")||"0");return n>i?1:n<i?-1:0})),i=t.querySelectorAll($),o=Array.from(i).filter((t=>"-1"!==t.getAttribute("tabindex")));return[...new Set(n.concat(o))].filter((t=>ht(t)))},q=()=>J(document.body,h.shown)&&!J(document.body,h["toast-shown"])&&!J(document.body,h["no-backdrop"]),U=()=>{const t=D();return!!t&&J(t,h.toast)},X=()=>{const t=D();return!!t&&t.hasAttribute("data-loading")},Y=(t,e)=>{if(t.textContent="",e){const n=(new DOMParser).parseFromString(e,"text/html"),i=n.querySelector("head");i&&Array.from(i.childNodes).forEach((e=>{t.appendChild(e)}));const o=n.querySelector("body");o&&Array.from(o.childNodes).forEach((e=>{e instanceof HTMLVideoElement||e instanceof HTMLAudioElement?t.appendChild(e.cloneNode(!0)):t.appendChild(e)}))}},J=(t,e)=>{if(!e)return!1;const n=e.split(/\s+/);for(let e=0;e<n.length;e++)if(!t.classList.contains(n[e]))return!1;return!0},G=(t,e)=>{Array.from(t.classList).forEach((n=>{Object.values(h).includes(n)||Object.values(u).includes(n)||Object.values(e.showClass||{}).includes(n)||t.classList.remove(n)}))},K=(t,e,n)=>{if(G(t,e),!e.customClass)return;const i=e.customClass[n];i&&("string"==typeof i||i.forEach?et(t,i):p(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof i}"`))},Z=(t,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return t.querySelector(`.${h.popup} > .${h[e]}`);case"checkbox":return t.querySelector(`.${h.popup} > .${h.checkbox} input`);case"radio":return t.querySelector(`.${h.popup} > .${h.radio} input:checked`)||t.querySelector(`.${h.popup} > .${h.radio} input:first-child`);case"range":return t.querySelector(`.${h.popup} > .${h.range} input`);default:return t.querySelector(`.${h.popup} > .${h.input}`)}},Q=t=>{if(t.focus(),"file"!==t.type){const e=t.value;t.value="",t.value=e}},tt=(t,e,n)=>{t&&e&&("string"==typeof e&&(e=e.split(/\s+/).filter(Boolean)),e.forEach((e=>{Array.isArray(t)?t.forEach((t=>{n?t.classList.add(e):t.classList.remove(e)})):n?t.classList.add(e):t.classList.remove(e)})))},et=(t,e)=>{tt(t,e,!0)},nt=(t,e)=>{tt(t,e,!1)},it=(t,e)=>{const n=Array.from(t.children);for(let t=0;t<n.length;t++){const i=n[t];if(i instanceof HTMLElement&&J(i,e))return i}},ot=(t,e,n)=>{n===`${parseInt(n)}`&&(n=parseInt(n)),n||0===parseInt(n)?t.style.setProperty(e,"number"==typeof n?`${n}px`:n):t.style.removeProperty(e)},rt=(t,e="flex")=>{t&&(t.style.display=e)},st=t=>{t&&(t.style.display="none")},at=(t,e="block")=>{t&&new MutationObserver((()=>{ct(t,t.innerHTML,e)})).observe(t,{childList:!0,subtree:!0})},lt=(t,e,n,i)=>{const o=t.querySelector(e);o&&o.style.setProperty(n,i)},ct=(t,e,n="flex")=>{e?rt(t,n):st(t)},ht=t=>!(!t||!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),ut=()=>!ht(O())&&!ht(F())&&!ht(R()),dt=t=>!!(t.scrollHeight>t.clientHeight),ft=(t,e)=>{let n=t;for(;n&&n!==e;){if(dt(n))return!0;n=n.parentElement}return!1},pt=t=>{const e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),i=parseFloat(e.getPropertyValue("transition-duration")||"0");return n>0||i>0},gt=(t,e=!1)=>{const n=z();n&&ht(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout((()=>{n.style.transition=`width ${t/1e3}s linear`,n.style.width="0%"}),10))},mt=()=>{const t=z();if(!t)return;const e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";const n=e/parseInt(window.getComputedStyle(t).width)*100;t.style.width=`${n}%`},bt=()=>"undefined"==typeof window||"undefined"==typeof document,vt=`\n <div aria-labelledby="${h.title}" aria-describedby="${h["html-container"]}" class="${h.popup}" tabindex="-1">\n <button type="button" class="${h.close}"></button>\n <ul class="${h["progress-steps"]}"></ul>\n <div class="${h.icon}"></div>\n <img class="${h.image}" />\n <h2 class="${h.title}" id="${h.title}"></h2>\n <div class="${h["html-container"]}" id="${h["html-container"]}"></div>\n <input class="${h.input}" id="${h.input}" />\n <input type="file" class="${h.file}" />\n <div class="${h.range}">\n <input type="range" />\n <output></output>\n </div>\n <select class="${h.select}" id="${h.select}"></select>\n <div class="${h.radio}"></div>\n <label class="${h.checkbox}">\n <input type="checkbox" id="${h.checkbox}" />\n <span class="${h.label}"></span>\n </label>\n <textarea class="${h.textarea}" id="${h.textarea}"></textarea>\n <div class="${h["validation-message"]}" id="${h["validation-message"]}"></div>\n <div class="${h.actions}">\n <div class="${h.loader}"></div>\n <button type="button" class="${h.confirm}"></button>\n <button type="button" class="${h.deny}"></button>\n <button type="button" class="${h.cancel}"></button>\n </div>\n <div class="${h.footer}"></div>\n <div class="${h["timer-progress-bar-container"]}">\n <div class="${h["timer-progress-bar"]}"></div>\n </div>\n </div>\n`.replace(/(^|\n)\s*/g,""),yt=()=>{const t=S();return!!t&&(t.remove(),nt([document.documentElement,document.body],[h["no-backdrop"],h["toast-shown"],h["has-column"]]),!0)},wt=()=>{s.currentInstance.resetValidationMessage()},xt=()=>{const t=D(),e=it(t,h.input),n=it(t,h.file),i=t.querySelector(`.${h.range} input`),o=t.querySelector(`.${h.range} output`),r=it(t,h.select),s=t.querySelector(`.${h.checkbox} input`),a=it(t,h.textarea);e.oninput=wt,n.onchange=wt,r.onchange=wt,s.onchange=wt,a.oninput=wt,i.oninput=()=>{wt(),o.value=i.value},i.onchange=()=>{wt(),o.value=i.value}},_t=t=>"string"==typeof t?document.querySelector(t):t,St=t=>{const e=D();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},Ct=t=>{"rtl"===window.getComputedStyle(t).direction&&et(S(),h.rtl)},kt=t=>{const e=yt();if(bt())return void g("SweetAlert2 requires document to initialize");const n=document.createElement("div");n.className=h.container,e&&et(n,h["no-transition"]),Y(n,vt),n.dataset.swal2Theme=t.theme;const i=_t(t.target);i.appendChild(n),t.topLayer&&(n.setAttribute("popover",""),n.showPopover()),St(t),Ct(i),xt()},Dt=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):"object"==typeof t?Tt(t,e):t&&Y(e,t)},Tt=(t,e)=>{t.jquery?At(e,t):Y(e,t.toString())},At=(t,e)=>{if(t.textContent="",0 in e)for(let n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},Mt=(t,e)=>{const n=N(),i=B();n&&i&&(e.showConfirmButton||e.showDenyButton||e.showCancelButton?rt(n):st(n),K(n,e,"actions"),Pt(n,i,e),Y(i,e.loaderHtml||""),K(i,e,"loader"))};function Pt(t,e,n){const i=O(),o=F(),r=R();i&&o&&r&&(It(i,"confirm",n),It(o,"deny",n),It(r,"cancel",n),Lt(i,o,r,n),n.reverseButtons&&(n.toast?(t.insertBefore(r,i),t.insertBefore(o,i)):(t.insertBefore(r,e),t.insertBefore(o,e),t.insertBefore(i,e))))}function Lt(t,e,n,i){i.buttonsStyling?(et([t,e,n],h.styled),i.confirmButtonColor&&t.style.setProperty("--swal2-confirm-button-background-color",i.confirmButtonColor),i.denyButtonColor&&e.style.setProperty("--swal2-deny-button-background-color",i.denyButtonColor),i.cancelButtonColor&&n.style.setProperty("--swal2-cancel-button-background-color",i.cancelButtonColor),Et(t),Et(e),Et(n)):nt([t,e,n],h.styled)}function Et(t){const e=window.getComputedStyle(t);if(e.getPropertyValue("--swal2-action-button-focus-box-shadow"))return;const n=e.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");t.style.setProperty("--swal2-action-button-focus-box-shadow",e.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${n}`))}function It(t,e,n){const i=f(e);ct(t,n[`show${i}Button`],"inline-block"),Y(t,n[`${e}ButtonText`]||""),t.setAttribute("aria-label",n[`${e}ButtonAriaLabel`]||""),t.className=h[e],K(t,n,`${e}Button`)}const Ot=(t,e)=>{const n=W();n&&(Y(n,e.closeButtonHtml||""),K(n,e,"closeButton"),ct(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel||""))},Rt=(t,e)=>{const n=S();n&&(Ft(n,e.backdrop),jt(n,e.position),Bt(n,e.grow),K(n,e,"container"))};function Ft(t,e){"string"==typeof e?t.style.background=e:e||et([document.documentElement,document.body],h["no-backdrop"])}function jt(t,e){e&&(e in h?et(t,h[e]):(p('The "position" parameter is not valid, defaulting to "center"'),et(t,h.center)))}function Bt(t,e){e&&et(t,h[`grow-${e}`])}var Nt={innerParams:new WeakMap,domCache:new WeakMap};const Ht=["input","file","range","select","radio","checkbox","textarea"],zt=(t,e)=>{const n=D();if(!n)return;const i=Nt.innerParams.get(t),o=!i||e.input!==i.input;Ht.forEach((t=>{const i=it(n,h[t]);i&&(Vt(t,e.inputAttributes),i.className=h[t],o&&st(i))})),e.input&&(o&&Wt(e),qt(e))},Wt=t=>{if(!t.input)return;if(!Gt[t.input])return void g(`Unexpected type of input! Expected ${Object.keys(Gt).join(" | ")}, got "${t.input}"`);const e=Yt(t.input);if(!e)return;const n=Gt[t.input](e,t);rt(e),t.inputAutoFocus&&setTimeout((()=>{Q(n)}))},$t=t=>{for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;["id","type","value","style"].includes(n)||t.removeAttribute(n)}},Vt=(t,e)=>{const n=D();if(!n)return;const i=Z(n,t);if(i){$t(i);for(const t in e)i.setAttribute(t,e[t])}},qt=t=>{if(!t.input)return;const e=Yt(t.input);e&&K(e,t,"input")},Ut=(t,e)=>{!t.placeholder&&e.inputPlaceholder&&(t.placeholder=e.inputPlaceholder)},Xt=(t,e,n)=>{if(n.inputLabel){const i=document.createElement("label"),o=h["input-label"];i.setAttribute("for",t.id),i.className=o,"object"==typeof n.customClass&&et(i,n.customClass.inputLabel),i.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",i)}},Yt=t=>{const e=D();if(e)return it(e,h[t]||h.input)},Jt=(t,e)=>{["string","number"].includes(typeof e)?t.value=`${e}`:_(e)||p(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e}"`)},Gt={};Gt.text=Gt.email=Gt.password=Gt.number=Gt.tel=Gt.url=Gt.search=Gt.date=Gt["datetime-local"]=Gt.time=Gt.week=Gt.month=(t,e)=>(Jt(t,e.inputValue),Xt(t,t,e),Ut(t,e),t.type=e.input,t),Gt.file=(t,e)=>(Xt(t,t,e),Ut(t,e),t),Gt.range=(t,e)=>{const n=t.querySelector("input"),i=t.querySelector("output");return Jt(n,e.inputValue),n.type=e.input,Jt(i,e.inputValue),Xt(n,t,e),t},Gt.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");Y(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return Xt(t,t,e),t},Gt.radio=t=>(t.textContent="",t),Gt.checkbox=(t,e)=>{const n=Z(D(),"checkbox");n.value="1",n.checked=Boolean(e.inputValue);const i=t.querySelector("span");return Y(i,e.inputPlaceholder||e.inputLabel),n},Gt.textarea=(t,e)=>{Jt(t,e.inputValue),Ut(t,e),Xt(t,t,e);const n=t=>parseInt(window.getComputedStyle(t).marginLeft)+parseInt(window.getComputedStyle(t).marginRight);return setTimeout((()=>{if("MutationObserver"in window){const i=parseInt(window.getComputedStyle(D()).width);new MutationObserver((()=>{if(!document.body.contains(t))return;const o=t.offsetWidth+n(t);o>i?D().style.width=`${o}px`:ot(D(),"width",e.width)})).observe(t,{attributes:!0,attributeFilter:["style"]})}})),t};const Kt=(t,e)=>{const n=P();n&&(at(n),K(n,e,"htmlContainer"),e.html?(Dt(e.html,n),rt(n,"block")):e.text?(n.textContent=e.text,rt(n,"block")):st(n),zt(t,e))},Zt=(t,e)=>{const n=H();n&&(at(n),ct(n,e.footer,"block"),e.footer&&Dt(e.footer,n),K(n,e,"footer"))},Qt=(t,e)=>{const n=Nt.innerParams.get(t),i=T();if(i){if(n&&e.icon===n.icon)return oe(i,e),void te(i,e);if(e.icon||e.iconHtml){if(e.icon&&-1===Object.keys(u).indexOf(e.icon))return g(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),void st(i);rt(i),oe(i,e),te(i,e),et(i,e.showClass&&e.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",ee)}else st(i)}},te=(t,e)=>{for(const[n,i]of Object.entries(u))e.icon!==n&&nt(t,i);et(t,e.icon&&u[e.icon]),re(t,e),ee(),K(t,e,"icon")},ee=()=>{const t=D();if(!t)return;const e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let t=0;t<n.length;t++)n[t].style.backgroundColor=e},ne='\n <div class="swal2-success-circular-line-left"></div>\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n',ie='\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n',oe=(t,e)=>{if(!e.icon&&!e.iconHtml)return;let n=t.innerHTML,i="";e.iconHtml?i=se(e.iconHtml):"success"===e.icon?(i=ne,n=n.replace(/ style=".*?"/g,"")):"error"===e.icon?i=ie:e.icon&&(i=se({question:"?",warning:"!",info:"i"}[e.icon])),n.trim()!==i.trim()&&Y(t,i)},re=(t,e)=>{if(e.iconColor){t.style.color=e.iconColor,t.style.borderColor=e.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])lt(t,n,"background-color",e.iconColor);lt(t,".swal2-success-ring","border-color",e.iconColor)}},se=t=>`<div class="${h["icon-content"]}">${t}</div>`,ae=(t,e)=>{const n=L();n&&(e.imageUrl?(rt(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt||""),ot(n,"width",e.imageWidth),ot(n,"height",e.imageHeight),n.className=h.image,K(n,e,"image")):st(n))};let le=!1,ce=0,he=0,ue=0,de=0;const fe=t=>{t.addEventListener("mousedown",ge),document.body.addEventListener("mousemove",me),t.addEventListener("mouseup",be),t.addEventListener("touchstart",ge),document.body.addEventListener("touchmove",me),t.addEventListener("touchend",be)},pe=t=>{t.removeEventListener("mousedown",ge),document.body.removeEventListener("mousemove",me),t.removeEventListener("mouseup",be),t.removeEventListener("touchstart",ge),document.body.removeEventListener("touchmove",me),t.removeEventListener("touchend",be)},ge=t=>{const e=D();if(t.target===e||T().contains(t.target)){le=!0;const n=ve(t);ce=n.clientX,he=n.clientY,ue=parseInt(e.style.insetInlineStart)||0,de=parseInt(e.style.insetBlockStart)||0,et(e,"swal2-dragging")}},me=t=>{const e=D();if(le){let{clientX:n,clientY:i}=ve(t);e.style.insetInlineStart=`${ue+(n-ce)}px`,e.style.insetBlockStart=`${de+(i-he)}px`}},be=()=>{const t=D();le=!1,nt(t,"swal2-dragging")},ve=t=>{let e=0,n=0;return t.type.startsWith("mouse")?(e=t.clientX,n=t.clientY):t.type.startsWith("touch")&&(e=t.touches[0].clientX,n=t.touches[0].clientY),{clientX:e,clientY:n}},ye=(t,e)=>{const n=S(),i=D();if(n&&i){if(e.toast){ot(n,"width",e.width),i.style.width="100%";const t=B();t&&i.insertBefore(t,T())}else ot(i,"width",e.width);ot(i,"padding",e.padding),e.color&&(i.style.color=e.color),e.background&&(i.style.background=e.background),st(I()),we(i,e),e.draggable&&!e.toast?(et(i,h.draggable),fe(i)):(nt(i,h.draggable),pe(i))}},we=(t,e)=>{const n=e.showClass||{};t.className=`${h.popup} ${ht(t)?n.popup:""}`,e.toast?(et([document.documentElement,document.body],h["toast-shown"]),et(t,h.toast)):et(t,h.modal),K(t,e,"popup"),"string"==typeof e.customClass&&et(t,e.customClass),e.icon&&et(t,h[`icon-${e.icon}`])},xe=(t,e)=>{const n=E();if(!n)return;const{progressSteps:i,currentProgressStep:o}=e;i&&0!==i.length&&void 0!==o?(rt(n),n.textContent="",o>=i.length&&p("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),i.forEach(((t,r)=>{const s=_e(t);if(n.appendChild(s),r===o&&et(s,h["active-progress-step"]),r!==i.length-1){const t=Se(e);n.appendChild(t)}}))):st(n)},_e=t=>{const e=document.createElement("li");return et(e,h["progress-step"]),Y(e,t),e},Se=t=>{const e=document.createElement("li");return et(e,h["progress-step-line"]),t.progressStepsDistance&&ot(e,"width",t.progressStepsDistance),e},Ce=(t,e)=>{const n=M();n&&(at(n),ct(n,e.title||e.titleText,"block"),e.title&&Dt(e.title,n),e.titleText&&(n.innerText=e.titleText),K(n,e,"title"))},ke=(t,e)=>{ye(t,e),Rt(t,e),xe(t,e),Qt(t,e),ae(t,e),Ce(t,e),Ot(t,e),Kt(t,e),Mt(t,e),Zt(t,e);const n=D();"function"==typeof e.didRender&&n&&e.didRender(n),s.eventEmitter.emit("didRender",n)},De=()=>ht(D()),Te=()=>{var t;return null===(t=O())||void 0===t?void 0:t.click()},Ae=()=>{var t;return null===(t=F())||void 0===t?void 0:t.click()},Me=()=>{var t;return null===(t=R())||void 0===t?void 0:t.click()},Pe=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Le=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},Ee=(t,e,n)=>{Le(t),e.toast||(t.keydownHandler=t=>Fe(e,t,n),t.keydownTarget=e.keydownListenerCapture?window:D(),t.keydownListenerCapture=e.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)},Ie=(t,e)=>{var n;const i=V();if(i.length)return-2===(t+=e)&&(t=i.length-1),t===i.length?t=0:-1===t&&(t=i.length-1),void i[t].focus();null===(n=D())||void 0===n||n.focus()},Oe=["ArrowRight","ArrowDown"],Re=["ArrowLeft","ArrowUp"],Fe=(t,e,n)=>{t&&(e.isComposing||229===e.keyCode||(t.stopKeydownPropagation&&e.stopPropagation(),"Enter"===e.key?je(e,t):"Tab"===e.key?Be(e):[...Oe,...Re].includes(e.key)?Ne(e.key):"Escape"===e.key&&He(e,t,n)))},je=(t,e)=>{if(!y(e.allowEnterKey))return;const n=Z(D(),e.input);if(t.target&&n&&t.target instanceof HTMLElement&&t.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(e.input))return;Te(),t.preventDefault()}},Be=t=>{const e=t.target,n=V();let i=-1;for(let t=0;t<n.length;t++)if(e===n[t]){i=t;break}t.shiftKey?Ie(i,-1):Ie(i,1),t.stopPropagation(),t.preventDefault()},Ne=t=>{const e=N(),n=O(),i=F(),o=R();if(!(e&&n&&i&&o))return;const r=[n,i,o];if(document.activeElement instanceof HTMLElement&&!r.includes(document.activeElement))return;const s=Oe.includes(t)?"nextElementSibling":"previousElementSibling";let a=document.activeElement;if(a){for(let t=0;t<e.children.length;t++){if(a=a[s],!a)return;if(a instanceof HTMLButtonElement&&ht(a))break}a instanceof HTMLButtonElement&&a.focus()}},He=(t,e,n)=>{y(e.allowEscapeKey)&&(t.preventDefault(),n(Pe.esc))};var ze={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const We=()=>{const t=S();Array.from(document.body.children).forEach((e=>{e.contains(t)||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")||""),e.setAttribute("aria-hidden","true"))}))},$e=()=>{Array.from(document.body.children).forEach((t=>{t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")||""),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")}))},Ve="undefined"!=typeof window&&!!window.GestureEvent,qe=()=>{if(Ve&&!J(document.body,h.iosfix)){const t=document.body.scrollTop;document.body.style.top=-1*t+"px",et(document.body,h.iosfix),Ue()}},Ue=()=>{const t=S();if(!t)return;let e;t.ontouchstart=t=>{e=Xe(t)},t.ontouchmove=t=>{e&&(t.preventDefault(),t.stopPropagation())}},Xe=t=>{const e=t.target,n=S(),i=P();return!(!n||!i||Ye(t)||Je(t)||e!==n&&(dt(n)||!(e instanceof HTMLElement)||ft(e,i)||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||dt(i)&&i.contains(e)))},Ye=t=>t.touches&&t.touches.length&&"stylus"===t.touches[0].touchType,Je=t=>t.touches&&t.touches.length>1,Ge=()=>{if(J(document.body,h.iosfix)){const t=parseInt(document.body.style.top,10);nt(document.body,h.iosfix),document.body.style.top="",document.body.scrollTop=-1*t}},Ke=()=>{const t=document.createElement("div");t.className=h["scrollbar-measure"],document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e};let Ze=null;const Qe=t=>{null===Ze&&(document.body.scrollHeight>window.innerHeight||"scroll"===t)&&(Ze=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${Ze+Ke()}px`)},tn=()=>{null!==Ze&&(document.body.style.paddingRight=`${Ze}px`,Ze=null)};function en(t,e,n,i){U()?un(t,i):(l(n).then((()=>un(t,i))),Le(s)),Ve?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),q()&&(tn(),Ge(),$e()),nn()}function nn(){nt([document.documentElement,document.body],[h.shown,h["height-auto"],h["no-backdrop"],h["toast-shown"]])}function on(t){t=ln(t);const e=ze.swalPromiseResolve.get(this),n=rn(this);this.isAwaitingPromise?t.isDismissed||(an(this),e(t)):n&&e(t)}const rn=t=>{const e=D();if(!e)return!1;const n=Nt.innerParams.get(t);if(!n||J(e,n.hideClass.popup))return!1;nt(e,n.showClass.popup),et(e,n.hideClass.popup);const i=S();return nt(i,n.showClass.backdrop),et(i,n.hideClass.backdrop),cn(t,e,n),!0};function sn(t){const e=ze.swalPromiseReject.get(this);an(this),e&&e(t)}const an=t=>{t.isAwaitingPromise&&(delete t.isAwaitingPromise,Nt.innerParams.get(t)||t._destroy())},ln=t=>void 0===t?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),cn=(t,e,n)=>{var i;const o=S(),r=pt(e);"function"==typeof n.willClose&&n.willClose(e),null===(i=s.eventEmitter)||void 0===i||i.emit("willClose",e),r?hn(t,e,o,n.returnFocus,n.didClose):en(t,o,n.returnFocus,n.didClose)},hn=(t,e,n,i,o)=>{s.swalCloseEventFinishedCallback=en.bind(null,t,n,i,o);const r=function(t){var n;t.target===e&&(null===(n=s.swalCloseEventFinishedCallback)||void 0===n||n.call(s),delete s.swalCloseEventFinishedCallback,e.removeEventListener("animationend",r),e.removeEventListener("transitionend",r))};e.addEventListener("animationend",r),e.addEventListener("transitionend",r)},un=(t,e)=>{setTimeout((()=>{var n;"function"==typeof e&&e.bind(t.params)(),null===(n=s.eventEmitter)||void 0===n||n.emit("didClose"),t._destroy&&t._destroy()}))},dn=t=>{let e=D();if(e||new mo,e=D(),!e)return;const n=B();U()?st(T()):fn(e,t),rt(n),e.setAttribute("data-loading","true"),e.setAttribute("aria-busy","true"),e.focus()},fn=(t,e)=>{const n=N(),i=B();n&&i&&(!e&&ht(O())&&(e=O()),rt(n),e&&(st(e),i.setAttribute("data-button-to-replace",e.className),n.insertBefore(i,e)),et([t,n],h.loading))},pn=(t,e)=>{"select"===e.input||"radio"===e.input?yn(t,e):["text","email","number","tel","textarea"].some((t=>t===e.input))&&(w(e.inputValue)||_(e.inputValue))&&(dn(O()),wn(t,e))},gn=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return mn(n);case"radio":return bn(n);case"file":return vn(n);default:return e.inputAutoTrim?n.value.trim():n.value}},mn=t=>t.checked?1:0,bn=t=>t.checked?t.value:null,vn=t=>t.files&&t.files.length?null!==t.getAttribute("multiple")?t.files:t.files[0]:null,yn=(t,e)=>{const n=D();if(!n)return;const i=t=>{"select"===e.input?xn(n,Sn(t),e):"radio"===e.input&&_n(n,Sn(t),e)};w(e.inputOptions)||_(e.inputOptions)?(dn(O()),x(e.inputOptions).then((e=>{t.hideLoading(),i(e)}))):"object"==typeof e.inputOptions?i(e.inputOptions):g("Unexpected type of inputOptions! Expected object, Map or Promise, got "+typeof e.inputOptions)},wn=(t,e)=>{const n=t.getInput();n&&(st(n),x(e.inputValue).then((i=>{n.value="number"===e.input?`${parseFloat(i)||0}`:`${i}`,rt(n),n.focus(),t.hideLoading()})).catch((e=>{g(`Error in inputValue promise: ${e}`),n.value="",rt(n),n.focus(),t.hideLoading()})))};function xn(t,e,n){const i=it(t,h.select);if(!i)return;const o=(t,e,i)=>{const o=document.createElement("option");o.value=i,Y(o,e),o.selected=Cn(i,n.inputValue),t.appendChild(o)};e.forEach((t=>{const e=t[0],n=t[1];if(Array.isArray(n)){const t=document.createElement("optgroup");t.label=e,t.disabled=!1,i.appendChild(t),n.forEach((e=>o(t,e[1],e[0])))}else o(i,n,e)})),i.focus()}function _n(t,e,n){const i=it(t,h.radio);if(!i)return;e.forEach((t=>{const e=t[0],o=t[1],r=document.createElement("input"),s=document.createElement("label");r.type="radio",r.name=h.radio,r.value=e,Cn(e,n.inputValue)&&(r.checked=!0);const a=document.createElement("span");Y(a,o),a.className=h.label,s.appendChild(r),s.appendChild(a),i.appendChild(s)}));const o=i.querySelectorAll("input");o.length&&o[0].focus()}const Sn=t=>{const e=[];return t instanceof Map?t.forEach(((t,n)=>{let i=t;"object"==typeof i&&(i=Sn(i)),e.push([n,i])})):Object.keys(t).forEach((n=>{let i=t[n];"object"==typeof i&&(i=Sn(i)),e.push([n,i])})),e},Cn=(t,e)=>!!e&&e.toString()===t.toString(),kn=t=>{const e=Nt.innerParams.get(t);t.disableButtons(),e.input?An(t,"confirm"):In(t,!0)},Dn=t=>{const e=Nt.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?An(t,"deny"):Pn(t,!1)},Tn=(t,e)=>{t.disableButtons(),e(Pe.cancel)},An=(t,e)=>{const n=Nt.innerParams.get(t);if(!n.input)return void g(`The "input" parameter is needed to be set when using returnInputValueOn${f(e)}`);const i=t.getInput(),o=gn(t,n);n.inputValidator?Mn(t,o,e):i&&!i.checkValidity()?(t.enableButtons(),t.showValidationMessage(n.validationMessage||i.validationMessage)):"deny"===e?Pn(t,o):In(t,o)},Mn=(t,e,n)=>{const i=Nt.innerParams.get(t);t.disableInput(),Promise.resolve().then((()=>x(i.inputValidator(e,i.validationMessage)))).then((i=>{t.enableButtons(),t.enableInput(),i?t.showValidationMessage(i):"deny"===n?Pn(t,e):In(t,e)}))},Pn=(t,e)=>{const n=Nt.innerParams.get(t||void 0);n.showLoaderOnDeny&&dn(F()),n.preDeny?(t.isAwaitingPromise=!0,Promise.resolve().then((()=>x(n.preDeny(e,n.validationMessage)))).then((n=>{!1===n?(t.hideLoading(),an(t)):t.close({isDenied:!0,value:void 0===n?e:n})})).catch((e=>En(t||void 0,e)))):t.close({isDenied:!0,value:e})},Ln=(t,e)=>{t.close({isConfirmed:!0,value:e})},En=(t,e)=>{t.rejectPromise(e)},In=(t,e)=>{const n=Nt.innerParams.get(t||void 0);n.showLoaderOnConfirm&&dn(),n.preConfirm?(t.resetValidationMessage(),t.isAwaitingPromise=!0,Promise.resolve().then((()=>x(n.preConfirm(e,n.validationMessage)))).then((n=>{ht(I())||!1===n?(t.hideLoading(),an(t)):Ln(t,void 0===n?e:n)})).catch((e=>En(t||void 0,e)))):Ln(t,e)};function On(){const t=Nt.innerParams.get(this);if(!t)return;const e=Nt.domCache.get(this);st(e.loader),U()?t.icon&&rt(T()):Rn(e),nt([e.popup,e.actions],h.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const Rn=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?rt(e[0],"inline-block"):ut()&&st(t.actions)};function Fn(){const t=Nt.innerParams.get(this),e=Nt.domCache.get(this);return e?Z(e.popup,t.input):null}function jn(t,e,n){const i=Nt.domCache.get(t);e.forEach((t=>{i[t].disabled=n}))}function Bn(t,e){const n=D();if(n&&t)if("radio"===t.type){const t=n.querySelectorAll(`[name="${h.radio}"]`);for(let n=0;n<t.length;n++)t[n].disabled=e}else t.disabled=e}function Nn(){jn(this,["confirmButton","denyButton","cancelButton"],!1)}function Hn(){jn(this,["confirmButton","denyButton","cancelButton"],!0)}function zn(){Bn(this.getInput(),!1)}function Wn(){Bn(this.getInput(),!0)}function $n(t){const e=Nt.domCache.get(this),n=Nt.innerParams.get(this);Y(e.validationMessage,t),e.validationMessage.className=h["validation-message"],n.customClass&&n.customClass.validationMessage&&et(e.validationMessage,n.customClass.validationMessage),rt(e.validationMessage);const i=this.getInput();i&&(i.setAttribute("aria-invalid","true"),i.setAttribute("aria-describedby",h["validation-message"]),Q(i),et(i,h.inputerror))}function Vn(){const t=Nt.domCache.get(this);t.validationMessage&&st(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),nt(e,h.inputerror))}const qn={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0,topLayer:!1},Un=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],Xn={allowEnterKey:void 0},Yn=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Jn=t=>Object.prototype.hasOwnProperty.call(qn,t),Gn=t=>-1!==Un.indexOf(t),Kn=t=>Xn[t],Zn=t=>{Jn(t)||p(`Unknown parameter "${t}"`)},Qn=t=>{Yn.includes(t)&&p(`The parameter "${t}" is incompatible with toasts`)},ti=t=>{const e=Kn(t);e&&v(t,e)},ei=t=>{!1===t.backdrop&&t.allowOutsideClick&&p('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),t.theme&&!["light","dark","auto","minimal","borderless","embed-iframe","bulma","bulma-light","bulma-dark"].includes(t.theme)&&p(`Invalid theme "${t.theme}"`);for(const e in t)Zn(e),t.toast&&Qn(e),ti(e)};function ni(t){const e=S(),n=D(),i=Nt.innerParams.get(this);if(!n||J(n,i.hideClass.popup))return void p("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const o=ii(t),r=Object.assign({},i,o);ei(r),e.dataset.swal2Theme=r.theme,ke(this,r),Nt.innerParams.set(this,r),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const ii=t=>{const e={};return Object.keys(t).forEach((n=>{Gn(n)?e[n]=t[n]:p(`Invalid parameter to update: ${n}`)})),e};function oi(){const t=Nt.domCache.get(this),e=Nt.innerParams.get(this);e?(t.popup&&s.swalCloseEventFinishedCallback&&(s.swalCloseEventFinishedCallback(),delete s.swalCloseEventFinishedCallback),"function"==typeof e.didDestroy&&e.didDestroy(),s.eventEmitter.emit("didDestroy"),ri(this)):si(this)}const ri=t=>{si(t),delete t.params,delete s.keydownHandler,delete s.keydownTarget,delete s.currentInstance},si=t=>{t.isAwaitingPromise?(ai(Nt,t),t.isAwaitingPromise=!0):(ai(ze,t),ai(Nt,t),delete t.isAwaitingPromise,delete t.disableButtons,delete t.enableButtons,delete t.getInput,delete t.disableInput,delete t.enableInput,delete t.hideLoading,delete t.disableLoading,delete t.showValidationMessage,delete t.resetValidationMessage,delete t.close,delete t.closePopup,delete t.closeModal,delete t.closeToast,delete t.rejectPromise,delete t.update,delete t._destroy)},ai=(t,e)=>{for(const n in t)t[n].delete(e)};var li=Object.freeze({__proto__:null,_destroy:oi,close:on,closeModal:on,closePopup:on,closeToast:on,disableButtons:Hn,disableInput:Wn,disableLoading:On,enableButtons:Nn,enableInput:zn,getInput:Fn,handleAwaitingPromise:an,hideLoading:On,rejectPromise:sn,resetValidationMessage:Vn,showValidationMessage:$n,update:ni});const ci=(t,e,n)=>{t.toast?hi(t,e,n):(fi(e),pi(e),gi(t,e,n))},hi=(t,e,n)=>{e.popup.onclick=()=>{t&&(ui(t)||t.timer||t.input)||n(Pe.close)}},ui=t=>!!(t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton);let di=!1;const fi=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=()=>{},e.target===t.container&&(di=!0)}}},pi=t=>{t.container.onmousedown=e=>{e.target===t.container&&e.preventDefault(),t.popup.onmouseup=function(e){t.popup.onmouseup=()=>{},(e.target===t.popup||e.target instanceof HTMLElement&&t.popup.contains(e.target))&&(di=!0)}}},gi=(t,e,n)=>{e.container.onclick=i=>{di?di=!1:i.target===e.container&&y(t.allowOutsideClick)&&n(Pe.backdrop)}},mi=t=>"object"==typeof t&&t.jquery,bi=t=>t instanceof Element||mi(t),vi=t=>{const e={};return"object"!=typeof t[0]||bi(t[0])?["title","html","icon"].forEach(((n,i)=>{const o=t[i];"string"==typeof o||bi(o)?e[n]=o:void 0!==o&&g(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof o}`)})):Object.assign(e,t[0]),e};function yi(...t){return new this(...t)}function wi(t){class e extends(this){_main(e,n){return super._main(e,Object.assign({},t,n))}}return e}const xi=()=>s.timeout&&s.timeout.getTimerLeft(),_i=()=>{if(s.timeout)return mt(),s.timeout.stop()},Si=()=>{if(s.timeout){const t=s.timeout.start();return gt(t),t}},Ci=()=>{const t=s.timeout;return t&&(t.running?_i():Si())},ki=t=>{if(s.timeout){const e=s.timeout.increase(t);return gt(e,!0),e}},Di=()=>!(!s.timeout||!s.timeout.isRunning());let Ti=!1;const Ai={};function Mi(t="data-swal-template"){Ai[t]=this,Ti||(document.body.addEventListener("click",Pi),Ti=!0)}const Pi=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const t in Ai){const n=e.getAttribute(t);if(n)return void Ai[t].fire({template:n})}};class Li{constructor(){this.events={}}_getHandlersByEventName(t){return void 0===this.events[t]&&(this.events[t]=[]),this.events[t]}on(t,e){const n=this._getHandlersByEventName(t);n.includes(e)||n.push(e)}once(t,e){const n=(...i)=>{this.removeListener(t,n),e.apply(this,i)};this.on(t,n)}emit(t,...e){this._getHandlersByEventName(t).forEach((t=>{try{t.apply(this,e)}catch(t){console.error(t)}}))}removeListener(t,e){const n=this._getHandlersByEventName(t),i=n.indexOf(e);i>-1&&n.splice(i,1)}removeAllListeners(t){void 0!==this.events[t]&&(this.events[t].length=0)}reset(){this.events={}}}s.eventEmitter=new Li;const Ei=(t,e)=>{s.eventEmitter.on(t,e)},Ii=(t,e)=>{s.eventEmitter.once(t,e)},Oi=(t,e)=>{t?e?s.eventEmitter.removeListener(t,e):s.eventEmitter.removeAllListeners(t):s.eventEmitter.reset()};var Ri=Object.freeze({__proto__:null,argsToParams:vi,bindClickHandler:Mi,clickCancel:Me,clickConfirm:Te,clickDeny:Ae,enableLoading:dn,fire:yi,getActions:N,getCancelButton:R,getCloseButton:W,getConfirmButton:O,getContainer:S,getDenyButton:F,getFocusableElements:V,getFooter:H,getHtmlContainer:P,getIcon:T,getIconContent:A,getImage:L,getInputLabel:j,getLoader:B,getPopup:D,getProgressSteps:E,getTimerLeft:xi,getTimerProgressBar:z,getTitle:M,getValidationMessage:I,increaseTimer:ki,isDeprecatedParameter:Kn,isLoading:X,isTimerRunning:Di,isUpdatableParameter:Gn,isValidParameter:Jn,isVisible:De,mixin:wi,off:Oi,on:Ei,once:Ii,resumeTimer:Si,showLoading:dn,stopTimer:_i,toggleTimer:Ci});class Fi{constructor(t,e){this.callback=t,this.remaining=e,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(t){const e=this.running;return e&&this.stop(),this.remaining+=t,e&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const ji=["swal-title","swal-html","swal-footer"],Bi=t=>{const e="string"==typeof t.template?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return Ui(n),Object.assign(Ni(n),Hi(n),zi(n),Wi(n),$i(n),Vi(n),qi(n,ji))},Ni=t=>{const e={};return Array.from(t.querySelectorAll("swal-param")).forEach((t=>{Xi(t,["name","value"]);const n=t.getAttribute("name"),i=t.getAttribute("value");n&&i&&("boolean"==typeof qn[n]?e[n]="false"!==i:"object"==typeof qn[n]?e[n]=JSON.parse(i):e[n]=i)})),e},Hi=t=>{const e={};return Array.from(t.querySelectorAll("swal-function-param")).forEach((t=>{const n=t.getAttribute("name"),i=t.getAttribute("value");n&&i&&(e[n]=new Function(`return ${i}`)())})),e},zi=t=>{const e={};return Array.from(t.querySelectorAll("swal-button")).forEach((t=>{Xi(t,["type","color","aria-label"]);const n=t.getAttribute("type");n&&["confirm","cancel","deny"].includes(n)&&(e[`${n}ButtonText`]=t.innerHTML,e[`show${f(n)}Button`]=!0,t.hasAttribute("color")&&(e[`${n}ButtonColor`]=t.getAttribute("color")),t.hasAttribute("aria-label")&&(e[`${n}ButtonAriaLabel`]=t.getAttribute("aria-label")))})),e},Wi=t=>{const e={},n=t.querySelector("swal-image");return n&&(Xi(n,["src","width","height","alt"]),n.hasAttribute("src")&&(e.imageUrl=n.getAttribute("src")||void 0),n.hasAttribute("width")&&(e.imageWidth=n.getAttribute("width")||void 0),n.hasAttribute("height")&&(e.imageHeight=n.getAttribute("height")||void 0),n.hasAttribute("alt")&&(e.imageAlt=n.getAttribute("alt")||void 0)),e},$i=t=>{const e={},n=t.querySelector("swal-icon");return n&&(Xi(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e},Vi=t=>{const e={},n=t.querySelector("swal-input");n&&(Xi(n,["type","label","placeholder","value"]),e.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(e.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(e.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(e.inputValue=n.getAttribute("value")));const i=Array.from(t.querySelectorAll("swal-input-option"));return i.length&&(e.inputOptions={},i.forEach((t=>{Xi(t,["value"]);const n=t.getAttribute("value");if(!n)return;const i=t.innerHTML;e.inputOptions[n]=i}))),e},qi=(t,e)=>{const n={};for(const i in e){const o=e[i],r=t.querySelector(o);r&&(Xi(r,[]),n[o.replace(/^swal-/,"")]=r.innerHTML.trim())}return n},Ui=t=>{const e=ji.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(t.children).forEach((t=>{const n=t.tagName.toLowerCase();e.includes(n)||p(`Unrecognized element <${n}>`)}))},Xi=(t,e)=>{Array.from(t.attributes).forEach((n=>{-1===e.indexOf(n.name)&&p([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."])}))},Yi=10,Ji=t=>{const e=S(),n=D();"function"==typeof t.willOpen&&t.willOpen(n),s.eventEmitter.emit("willOpen",n);const i=window.getComputedStyle(document.body).overflowY;Qi(e,n,t),setTimeout((()=>{Ki(e,n)}),Yi),q()&&(Zi(e,t.scrollbarPadding,i),We()),U()||s.previousActiveElement||(s.previousActiveElement=document.activeElement),"function"==typeof t.didOpen&&setTimeout((()=>t.didOpen(n))),s.eventEmitter.emit("didOpen",n),nt(e,h["no-transition"])},Gi=t=>{const e=D();if(t.target!==e)return;const n=S();e.removeEventListener("animationend",Gi),e.removeEventListener("transitionend",Gi),n.style.overflowY="auto"},Ki=(t,e)=>{pt(e)?(t.style.overflowY="hidden",e.addEventListener("animationend",Gi),e.addEventListener("transitionend",Gi)):t.style.overflowY="auto"},Zi=(t,e,n)=>{qe(),e&&"hidden"!==n&&Qe(n),setTimeout((()=>{t.scrollTop=0}))},Qi=(t,e,n)=>{et(t,n.showClass.backdrop),n.animation?(e.style.setProperty("opacity","0","important"),rt(e,"grid"),setTimeout((()=>{et(e,n.showClass.popup),e.style.removeProperty("opacity")}),Yi)):rt(e,"grid"),et([document.documentElement,document.body],h.shown),n.heightAuto&&n.backdrop&&!n.toast&&et([document.documentElement,document.body],h["height-auto"])};var to={email:(t,e)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address"),url:(t,e)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")};function eo(t){t.inputValidator||("email"===t.input&&(t.inputValidator=to.email),"url"===t.input&&(t.inputValidator=to.url))}function no(t){(!t.target||"string"==typeof t.target&&!document.querySelector(t.target)||"string"!=typeof t.target&&!t.target.appendChild)&&(p('Target parameter is not valid, defaulting to "body"'),t.target="body")}function io(t){eo(t),t.showLoaderOnConfirm&&!t.preConfirm&&p("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),no(t),"string"==typeof t.title&&(t.title=t.title.split("\n").join("<br />")),kt(t)}let oo;var ro=new WeakMap;class so{constructor(...t){if(i(this,ro,void 0),"undefined"==typeof window)return;oo=this;const e=Object.freeze(this.constructor.argsToParams(t));this.params=e,this.isAwaitingPromise=!1,o(ro,this,this._main(oo.params))}_main(t,e={}){if(ei(Object.assign({},e,t)),s.currentInstance){const t=ze.swalPromiseResolve.get(s.currentInstance),{isAwaitingPromise:e}=s.currentInstance;s.currentInstance._destroy(),e||t({isDismissed:!0}),q()&&$e()}s.currentInstance=oo;const n=lo(t,e);io(n),Object.freeze(n),s.timeout&&(s.timeout.stop(),delete s.timeout),clearTimeout(s.restoreFocusTimeout);const i=co(oo);return ke(oo,n),Nt.innerParams.set(oo,n),ao(oo,i,n)}then(t){return n(ro,this).then(t)}finally(t){return n(ro,this).finally(t)}}const ao=(t,e,n)=>new Promise(((i,o)=>{const r=e=>{t.close({isDismissed:!0,dismiss:e})};ze.swalPromiseResolve.set(t,i),ze.swalPromiseReject.set(t,o),e.confirmButton.onclick=()=>{kn(t)},e.denyButton.onclick=()=>{Dn(t)},e.cancelButton.onclick=()=>{Tn(t,r)},e.closeButton.onclick=()=>{r(Pe.close)},ci(n,e,r),Ee(s,n,r),pn(t,n),Ji(n),ho(s,n,r),uo(e,n),setTimeout((()=>{e.container.scrollTop=0}))})),lo=(t,e)=>{const n=Bi(t),i=Object.assign({},qn,e,n,t);return i.showClass=Object.assign({},qn.showClass,i.showClass),i.hideClass=Object.assign({},qn.hideClass,i.hideClass),!1===i.animation&&(i.showClass={backdrop:"swal2-noanimation"},i.hideClass={}),i},co=t=>{const e={popup:D(),container:S(),actions:N(),confirmButton:O(),denyButton:F(),cancelButton:R(),loader:B(),closeButton:W(),validationMessage:I(),progressSteps:E()};return Nt.domCache.set(t,e),e},ho=(t,e,n)=>{const i=z();st(i),e.timer&&(t.timeout=new Fi((()=>{n("timer"),delete t.timeout}),e.timer),e.timerProgressBar&&(rt(i),K(i,e,"timerProgressBar"),setTimeout((()=>{t.timeout&&t.timeout.running&&gt(e.timer)}))))},uo=(t,e)=>{if(!e.toast)return y(e.allowEnterKey)?void(fo(t)||po(t,e)||Ie(-1,1)):(v("allowEnterKey"),void go())},fo=t=>{const e=Array.from(t.popup.querySelectorAll("[autofocus]"));for(const t of e)if(t instanceof HTMLElement&&ht(t))return t.focus(),!0;return!1},po=(t,e)=>e.focusDeny&&ht(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&ht(t.cancelButton)?(t.cancelButton.focus(),!0):!(!e.focusConfirm||!ht(t.confirmButton)||(t.confirmButton.focus(),0)),go=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){const t=new Date,e=localStorage.getItem("swal-initiation");e?(t.getTime()-Date.parse(e))/864e5>3&&setTimeout((()=>{document.body.style.pointerEvents="none";const t=document.createElement("audio");t.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",t.loop=!0,document.body.appendChild(t),setTimeout((()=>{t.play().catch((()=>{}))}),2500)}),500):localStorage.setItem("swal-initiation",`${t}`)}so.prototype.disableButtons=Hn,so.prototype.enableButtons=Nn,so.prototype.getInput=Fn,so.prototype.disableInput=Wn,so.prototype.enableInput=zn,so.prototype.hideLoading=On,so.prototype.disableLoading=On,so.prototype.showValidationMessage=$n,so.prototype.resetValidationMessage=Vn,so.prototype.close=on,so.prototype.closePopup=on,so.prototype.closeModal=on,so.prototype.closeToast=on,so.prototype.rejectPromise=sn,so.prototype.update=ni,so.prototype._destroy=oi,Object.assign(so,Ri),Object.keys(li).forEach((t=>{so[t]=function(...e){return oo&&oo[t]?oo[t](...e):null}})),so.DismissReason=Pe,so.version="11.22.0";const mo=so;return mo.default=mo,mo}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(t,e){var n=t.createElement("style");if(t.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=e);else try{n.innerHTML=e}catch(t){n.innerText=e}}(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.1s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px $swal2-outline-color;--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:all}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}')},692:function(t,e){var n;!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,(function(i,o){"use strict";var r=[],s=Object.getPrototypeOf,a=r.slice,l=r.flat?function(t){return r.flat.call(t)}:function(t){return r.concat.apply([],t)},c=r.push,h=r.indexOf,u={},d=u.toString,f=u.hasOwnProperty,p=f.toString,g=p.call(Object),m={},b=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},v=function(t){return null!=t&&t===t.window},y=i.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function x(t,e,n){var i,o,r=(n=n||y).createElement("script");if(r.text=t,e)for(i in w)(o=e[i]||e.getAttribute&&e.getAttribute(i))&&r.setAttribute(i,o);n.head.appendChild(r).parentNode.removeChild(r)}function _(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?u[d.call(t)]||"object":typeof t}var S="3.7.1",C=/HTML$/i,k=function(t,e){return new k.fn.init(t,e)};function D(t){var e=!!t&&"length"in t&&t.length,n=_(t);return!b(t)&&!v(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function T(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}k.fn=k.prototype={jquery:S,constructor:k,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=k.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return k.each(this,t)},map:function(t){return this.pushStack(k.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(k.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(k.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:r.sort,splice:r.splice},k.extend=k.fn.extend=function(){var t,e,n,i,o,r,s=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||b(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)i=t[e],"__proto__"!==e&&s!==i&&(c&&i&&(k.isPlainObject(i)||(o=Array.isArray(i)))?(n=s[e],r=o&&!Array.isArray(n)?[]:o||k.isPlainObject(n)?n:{},o=!1,s[e]=k.extend(c,r,i)):void 0!==i&&(s[e]=i));return s},k.extend({expando:"jQuery"+(S+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==d.call(t))&&(!(e=s(t))||"function"==typeof(n=f.call(e,"constructor")&&e.constructor)&&p.call(n)===g)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){x(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,i=0;if(D(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},text:function(t){var e,n="",i=0,o=t.nodeType;if(!o)for(;e=t[i++];)n+=k.text(e);return 1===o||11===o?t.textContent:9===o?t.documentElement.textContent:3===o||4===o?t.nodeValue:n},makeArray:function(t,e){var n=e||[];return null!=t&&(D(Object(t))?k.merge(n,"string"==typeof t?[t]:t):c.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:h.call(e,t,n)},isXMLDoc:function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!C.test(e||n&&n.nodeName||"HTML")},merge:function(t,e){for(var n=+e.length,i=0,o=t.length;i<n;i++)t[o++]=e[i];return t.length=o,t},grep:function(t,e,n){for(var i=[],o=0,r=t.length,s=!n;o<r;o++)!e(t[o],o)!==s&&i.push(t[o]);return i},map:function(t,e,n){var i,o,r=0,s=[];if(D(t))for(i=t.length;r<i;r++)null!=(o=e(t[r],r,n))&&s.push(o);else for(r in t)null!=(o=e(t[r],r,n))&&s.push(o);return l(s)},guid:1,support:m}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=r[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){u["[object "+e+"]"]=e.toLowerCase()}));var A=r.pop,M=r.sort,P=r.splice,L="[\\x20\\t\\r\\n\\f]",E=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g");k.contains=function(t,e){var n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(t.contains?t.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))};var I=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function O(t,e){return e?"\0"===t?"<EFBFBD>":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}k.escapeSelector=function(t){return(t+"").replace(I,O)};var R=y,F=c;!function(){var t,e,n,o,s,l,c,u,d,p,g=F,b=k.expando,v=0,y=0,w=tt(),x=tt(),_=tt(),S=tt(),C=function(t,e){return t===e&&(s=!0),0},D="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",I="(?:\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",O="\\["+L+"*("+I+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+L+"*\\]",j=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+O+")*)|.*)\\)|)",B=new RegExp(L+"+","g"),N=new RegExp("^"+L+"*,"+L+"*"),H=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),z=new RegExp(L+"|>"),W=new RegExp(j),$=new RegExp("^"+I+"$"),V={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+O),PSEUDO:new RegExp("^"+j),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+D+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},q=/^(?:input|select|textarea|button)$/i,U=/^h\d$/i,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Y=/[+~]/,J=new RegExp("\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\([^\\r\\n\\f])","g"),G=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},K=function(){lt()},Z=dt((function(t){return!0===t.disabled&&T(t,"fieldset")}),{dir:"parentNode",next:"legend"});try{g.apply(r=a.call(R.childNodes),R.childNodes),r[R.childNodes.length].nodeType}catch(t){g={apply:function(t,e){F.apply(t,a.call(e))},call:function(t){F.apply(t,a.call(arguments,1))}}}function Q(t,e,n,i){var o,r,s,a,c,h,f,p=e&&e.ownerDocument,v=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==v&&9!==v&&11!==v)return n;if(!i&&(lt(e),e=e||l,u)){if(11!==v&&(c=X.exec(t)))if(o=c[1]){if(9===v){if(!(s=e.getElementById(o)))return n;if(s.id===o)return g.call(n,s),n}else if(p&&(s=p.getElementById(o))&&Q.contains(e,s)&&s.id===o)return g.call(n,s),n}else{if(c[2])return g.apply(n,e.getElementsByTagName(t)),n;if((o=c[3])&&e.getElementsByClassName)return g.apply(n,e.getElementsByClassName(o)),n}if(!(S[t+" "]||d&&d.test(t))){if(f=t,p=e,1===v&&(z.test(t)||H.test(t))){for((p=Y.test(t)&&at(e.parentNode)||e)==e&&m.scope||((a=e.getAttribute("id"))?a=k.escapeSelector(a):e.setAttribute("id",a=b)),r=(h=ht(t)).length;r--;)h[r]=(a?"#"+a:":scope")+" "+ut(h[r]);f=h.join(",")}try{return g.apply(n,p.querySelectorAll(f)),n}catch(e){S(t,!0)}finally{a===b&&e.removeAttribute("id")}}}return vt(t.replace(E,"$1"),e,n,i)}function tt(){var t=[];return function n(i,o){return t.push(i+" ")>e.cacheLength&&delete n[t.shift()],n[i+" "]=o}}function et(t){return t[b]=!0,t}function nt(t){var e=l.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function it(t){return function(e){return T(e,"input")&&e.type===t}}function ot(t){return function(e){return(T(e,"input")||T(e,"button"))&&e.type===t}}function rt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&Z(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function st(t){return et((function(e){return e=+e,et((function(n,i){for(var o,r=t([],n.length,e),s=r.length;s--;)n[o=r[s]]&&(n[o]=!(i[o]=n[o]))}))}))}function at(t){return t&&void 0!==t.getElementsByTagName&&t}function lt(t){var n,i=t?t.ownerDocument||t:R;return i!=l&&9===i.nodeType&&i.documentElement?(c=(l=i).documentElement,u=!k.isXMLDoc(l),p=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&R!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",K),m.getById=nt((function(t){return c.appendChild(t).id=k.expando,!l.getElementsByName||!l.getElementsByName(k.expando).length})),m.disconnectedMatch=nt((function(t){return p.call(t,"*")})),m.scope=nt((function(){return l.querySelectorAll(":scope")})),m.cssHas=nt((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}})),m.getById?(e.filter.ID=function(t){var e=t.replace(J,G);return function(t){return t.getAttribute("id")===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&u){var n=e.getElementById(t);return n?[n]:[]}}):(e.filter.ID=function(t){var e=t.replace(J,G);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&u){var n,i,o,r=e.getElementById(t);if(r){if((n=r.getAttributeNode("id"))&&n.value===t)return[r];for(o=e.getElementsByName(t),i=0;r=o[i++];)if((n=r.getAttributeNode("id"))&&n.value===t)return[r]}return[]}}),e.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},e.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&u)return e.getElementsByClassName(t)},d=[],nt((function(t){var e;c.appendChild(t).innerHTML="<a id='"+b+"' href='' disabled='disabled'></a><select id='"+b+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||d.push("\\["+L+"*(?:value|"+D+")"),t.querySelectorAll("[id~="+b+"-]").length||d.push("~="),t.querySelectorAll("a#"+b+"+*").length||d.push(".#.+[+~]"),t.querySelectorAll(":checked").length||d.push(":checked"),(e=l.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),c.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(e=l.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||d.push("\\["+L+"*name"+L+"*="+L+"*(?:''|\"\")")})),m.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),C=function(t,e){if(t===e)return s=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!m.sortDetached&&e.compareDocumentPosition(t)===n?t===l||t.ownerDocument==R&&Q.contains(R,t)?-1:e===l||e.ownerDocument==R&&Q.contains(R,e)?1:o?h.call(o,t)-h.call(o,e):0:4&n?-1:1)},l):l}for(t in Q.matches=function(t,e){return Q(t,null,null,e)},Q.matchesSelector=function(t,e){if(lt(t),u&&!S[e+" "]&&(!d||!d.test(e)))try{var n=p.call(t,e);if(n||m.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){S(e,!0)}return Q(e,l,null,[t]).length>0},Q.contains=function(t,e){return(t.ownerDocument||t)!=l&&lt(t),k.contains(t,e)},Q.attr=function(t,n){(t.ownerDocument||t)!=l&&lt(t);var i=e.attrHandle[n.toLowerCase()],o=i&&f.call(e.attrHandle,n.toLowerCase())?i(t,n,!u):void 0;return void 0!==o?o:t.getAttribute(n)},Q.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},k.uniqueSort=function(t){var e,n=[],i=0,r=0;if(s=!m.sortStable,o=!m.sortStable&&a.call(t,0),M.call(t,C),s){for(;e=t[r++];)e===t[r]&&(i=n.push(r));for(;i--;)P.call(t,n[i],1)}return o=null,t},k.fn.uniqueSort=function(){return this.pushStack(k.uniqueSort(a.apply(this)))},e=k.expr={cacheLength:50,createPseudo:et,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(J,G),t[3]=(t[3]||t[4]||t[5]||"").replace(J,G),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||Q.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&Q.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return V.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&W.test(n)&&(e=ht(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(J,G).toLowerCase();return"*"===t?function(){return!0}:function(t){return T(t,e)}},CLASS:function(t){var e=w[t+" "];return e||(e=new RegExp("(^|"+L+")"+t+"("+L+"|$)"))&&w(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(i){var o=Q.attr(i,t);return null==o?"!="===e:!e||(o+="","="===e?o===n:"!="===e?o!==n:"^="===e?n&&0===o.indexOf(n):"*="===e?n&&o.indexOf(n)>-1:"$="===e?n&&o.slice(-n.length)===n:"~="===e?(" "+o.replace(B," ")+" ").indexOf(n)>-1:"|="===e&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,i,o){var r="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===i&&0===o?function(t){return!!t.parentNode}:function(e,n,l){var c,h,u,d,f,p=r!==s?"nextSibling":"previousSibling",g=e.parentNode,m=a&&e.nodeName.toLowerCase(),y=!l&&!a,w=!1;if(g){if(r){for(;p;){for(u=e;u=u[p];)if(a?T(u,m):1===u.nodeType)return!1;f=p="only"===t&&!f&&"nextSibling"}return!0}if(f=[s?g.firstChild:g.lastChild],s&&y){for(w=(d=(c=(h=g[b]||(g[b]={}))[t]||[])[0]===v&&c[1])&&c[2],u=d&&g.childNodes[d];u=++d&&u&&u[p]||(w=d=0)||f.pop();)if(1===u.nodeType&&++w&&u===e){h[t]=[v,d,w];break}}else if(y&&(w=d=(c=(h=e[b]||(e[b]={}))[t]||[])[0]===v&&c[1]),!1===w)for(;(u=++d&&u&&u[p]||(w=d=0)||f.pop())&&(!(a?T(u,m):1===u.nodeType)||!++w||(y&&((h=u[b]||(u[b]={}))[t]=[v,w]),u!==e)););return(w-=o)===i||w%i===0&&w/i>=0}}},PSEUDO:function(t,n){var i,o=e.pseudos[t]||e.setFilters[t.toLowerCase()]||Q.error("unsupported pseudo: "+t);return o[b]?o(n):o.length>1?(i=[t,t,"",n],e.setFilters.hasOwnProperty(t.toLowerCase())?et((function(t,e){for(var i,r=o(t,n),s=r.length;s--;)t[i=h.call(t,r[s])]=!(e[i]=r[s])})):function(t){return o(t,0,i)}):o}},pseudos:{not:et((function(t){var e=[],n=[],i=bt(t.replace(E,"$1"));return i[b]?et((function(t,e,n,o){for(var r,s=i(t,null,o,[]),a=t.length;a--;)(r=s[a])&&(t[a]=!(e[a]=r))})):function(t,o,r){return e[0]=t,i(e,null,r,n),e[0]=null,!n.pop()}})),has:et((function(t){return function(e){return Q(t,e).length>0}})),contains:et((function(t){return t=t.replace(J,G),function(e){return(e.textContent||k.text(e)).indexOf(t)>-1}})),lang:et((function(t){return $.test(t||"")||Q.error("unsupported lang: "+t),t=t.replace(J,G).toLowerCase(),function(e){var n;do{if(n=u?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(t){var e=i.location&&i.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===c},focus:function(t){return t===function(){try{return l.activeElement}catch(t){}}()&&l.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:rt(!1),disabled:rt(!0),checked:function(t){return T(t,"input")&&!!t.checked||T(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(t){return U.test(t.nodeName)},input:function(t){return q.test(t.nodeName)},button:function(t){return T(t,"input")&&"button"===t.type||T(t,"button")},text:function(t){var e;return T(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:st((function(){return[0]})),last:st((function(t,e){return[e-1]})),eq:st((function(t,e,n){return[n<0?n+e:n]})),even:st((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:st((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:st((function(t,e,n){var i;for(i=n<0?n+e:n>e?e:n;--i>=0;)t.push(i);return t})),gt:st((function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t}))}},e.pseudos.nth=e.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})e.pseudos[t]=it(t);for(t in{submit:!0,reset:!0})e.pseudos[t]=ot(t);function ct(){}function ht(t,n){var i,o,r,s,a,l,c,h=x[t+" "];if(h)return n?0:h.slice(0);for(a=t,l=[],c=e.preFilter;a;){for(s in i&&!(o=N.exec(a))||(o&&(a=a.slice(o[0].length)||a),l.push(r=[])),i=!1,(o=H.exec(a))&&(i=o.shift(),r.push({value:i,type:o[0].replace(E," ")}),a=a.slice(i.length)),e.filter)!(o=V[s].exec(a))||c[s]&&!(o=c[s](o))||(i=o.shift(),r.push({value:i,type:s,matches:o}),a=a.slice(i.length));if(!i)break}return n?a.length:a?Q.error(t):x(t,l).slice(0)}function ut(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function dt(t,e,n){var i=e.dir,o=e.next,r=o||i,s=n&&"parentNode"===r,a=y++;return e.first?function(e,n,o){for(;e=e[i];)if(1===e.nodeType||s)return t(e,n,o);return!1}:function(e,n,l){var c,h,u=[v,a];if(l){for(;e=e[i];)if((1===e.nodeType||s)&&t(e,n,l))return!0}else for(;e=e[i];)if(1===e.nodeType||s)if(h=e[b]||(e[b]={}),o&&T(e,o))e=e[i]||e;else{if((c=h[r])&&c[0]===v&&c[1]===a)return u[2]=c[2];if(h[r]=u,u[2]=t(e,n,l))return!0}return!1}}function ft(t){return t.length>1?function(e,n,i){for(var o=t.length;o--;)if(!t[o](e,n,i))return!1;return!0}:t[0]}function pt(t,e,n,i,o){for(var r,s=[],a=0,l=t.length,c=null!=e;a<l;a++)(r=t[a])&&(n&&!n(r,i,o)||(s.push(r),c&&e.push(a)));return s}function gt(t,e,n,i,o,r){return i&&!i[b]&&(i=gt(i)),o&&!o[b]&&(o=gt(o,r)),et((function(r,s,a,l){var c,u,d,f,p=[],m=[],b=s.length,v=r||function(t,e,n){for(var i=0,o=e.length;i<o;i++)Q(t,e[i],n);return n}(e||"*",a.nodeType?[a]:a,[]),y=!t||!r&&e?v:pt(v,p,t,a,l);if(n?n(y,f=o||(r?t:b||i)?[]:s,a,l):f=y,i)for(c=pt(f,m),i(c,[],a,l),u=c.length;u--;)(d=c[u])&&(f[m[u]]=!(y[m[u]]=d));if(r){if(o||t){if(o){for(c=[],u=f.length;u--;)(d=f[u])&&c.push(y[u]=d);o(null,f=[],c,l)}for(u=f.length;u--;)(d=f[u])&&(c=o?h.call(r,d):p[u])>-1&&(r[c]=!(s[c]=d))}}else f=pt(f===s?f.splice(b,f.length):f),o?o(null,s,f,l):g.apply(s,f)}))}function mt(t){for(var i,o,r,s=t.length,a=e.relative[t[0].type],l=a||e.relative[" "],c=a?1:0,u=dt((function(t){return t===i}),l,!0),d=dt((function(t){return h.call(i,t)>-1}),l,!0),f=[function(t,e,o){var r=!a&&(o||e!=n)||((i=e).nodeType?u(t,e,o):d(t,e,o));return i=null,r}];c<s;c++)if(o=e.relative[t[c].type])f=[dt(ft(f),o)];else{if((o=e.filter[t[c].type].apply(null,t[c].matches))[b]){for(r=++c;r<s&&!e.relative[t[r].type];r++);return gt(c>1&&ft(f),c>1&&ut(t.slice(0,c-1).concat({value:" "===t[c-2].type?"*":""})).replace(E,"$1"),o,c<r&&mt(t.slice(c,r)),r<s&&mt(t=t.slice(r)),r<s&&ut(t))}f.push(o)}return ft(f)}function bt(t,i){var o,r=[],s=[],a=_[t+" "];if(!a){for(i||(i=ht(t)),o=i.length;o--;)(a=mt(i[o]))[b]?r.push(a):s.push(a);a=_(t,function(t,i){var o=i.length>0,r=t.length>0,s=function(s,a,c,h,d){var f,p,m,b=0,y="0",w=s&&[],x=[],_=n,S=s||r&&e.find.TAG("*",d),C=v+=null==_?1:Math.random()||.1,D=S.length;for(d&&(n=a==l||a||d);y!==D&&null!=(f=S[y]);y++){if(r&&f){for(p=0,a||f.ownerDocument==l||(lt(f),c=!u);m=t[p++];)if(m(f,a||l,c)){g.call(h,f);break}d&&(v=C)}o&&((f=!m&&f)&&b--,s&&w.push(f))}if(b+=y,o&&y!==b){for(p=0;m=i[p++];)m(w,x,a,c);if(s){if(b>0)for(;y--;)w[y]||x[y]||(x[y]=A.call(h));x=pt(x)}g.apply(h,x),d&&!s&&x.length>0&&b+i.length>1&&k.uniqueSort(h)}return d&&(v=C,n=_),w};return o?et(s):s}(s,r)),a.selector=t}return a}function vt(t,n,i,o){var r,s,a,l,c,h="function"==typeof t&&t,d=!o&&ht(t=h.selector||t);if(i=i||[],1===d.length){if((s=d[0]=d[0].slice(0)).length>2&&"ID"===(a=s[0]).type&&9===n.nodeType&&u&&e.relative[s[1].type]){if(!(n=(e.find.ID(a.matches[0].replace(J,G),n)||[])[0]))return i;h&&(n=n.parentNode),t=t.slice(s.shift().value.length)}for(r=V.needsContext.test(t)?0:s.length;r--&&(a=s[r],!e.relative[l=a.type]);)if((c=e.find[l])&&(o=c(a.matches[0].replace(J,G),Y.test(s[0].type)&&at(n.parentNode)||n))){if(s.splice(r,1),!(t=o.length&&ut(s)))return g.apply(i,o),i;break}}return(h||bt(t,d))(o,n,!u,i,!n||Y.test(t)&&at(n.parentNode)||n),i}ct.prototype=e.filters=e.pseudos,e.setFilters=new ct,m.sortStable=b.split("").sort(C).join("")===b,lt(),m.sortDetached=nt((function(t){return 1&t.compareDocumentPosition(l.createElement("fieldset"))})),k.find=Q,k.expr[":"]=k.expr.pseudos,k.unique=k.uniqueSort,Q.compile=bt,Q.select=vt,Q.setDocument=lt,Q.tokenize=ht,Q.escape=k.escapeSelector,Q.getText=k.text,Q.isXML=k.isXMLDoc,Q.selectors=k.expr,Q.support=k.support,Q.uniqueSort=k.uniqueSort}();var j=function(t,e,n){for(var i=[],o=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&k(t).is(n))break;i.push(t)}return i},B=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},N=k.expr.match.needsContext,H=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function z(t,e,n){return b(e)?k.grep(t,(function(t,i){return!!e.call(t,i,t)!==n})):e.nodeType?k.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?k.grep(t,(function(t){return h.call(e,t)>-1!==n})):k.filter(e,t,n)}k.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?k.find.matchesSelector(i,t)?[i]:[]:k.find.matches(t,k.grep(e,(function(t){return 1===t.nodeType})))},k.fn.extend({find:function(t){var e,n,i=this.length,o=this;if("string"!=typeof t)return this.pushStack(k(t).filter((function(){for(e=0;e<i;e++)if(k.contains(o[e],this))return!0})));for(n=this.pushStack([]),e=0;e<i;e++)k.find(t,o[e],n);return i>1?k.uniqueSort(n):n},filter:function(t){return this.pushStack(z(this,t||[],!1))},not:function(t){return this.pushStack(z(this,t||[],!0))},is:function(t){return!!z(this,"string"==typeof t&&N.test(t)?k(t):t||[],!1).length}});var W,$=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(t,e,n){var i,o;if(!t)return this;if(n=n||W,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:$.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof k?e[0]:e,k.merge(this,k.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:y,!0)),H.test(i[1])&&k.isPlainObject(e))for(i in e)b(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(o=y.getElementById(i[2]))&&(this[0]=o,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):b(t)?void 0!==n.ready?n.ready(t):t(k):k.makeArray(t,this)}).prototype=k.fn,W=k(y);var V=/^(?:parents|prev(?:Until|All))/,q={children:!0,contents:!0,next:!0,prev:!0};function U(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}k.fn.extend({has:function(t){var e=k(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(k.contains(this,e[t]))return!0}))},closest:function(t,e){var n,i=0,o=this.length,r=[],s="string"!=typeof t&&k(t);if(!N.test(t))for(;i<o;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&k.find.matchesSelector(n,t))){r.push(n);break}return this.pushStack(r.length>1?k.uniqueSort(r):r)},index:function(t){return t?"string"==typeof t?h.call(k(t),this[0]):h.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),k.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return j(t,"parentNode")},parentsUntil:function(t,e,n){return j(t,"parentNode",n)},next:function(t){return U(t,"nextSibling")},prev:function(t){return U(t,"previousSibling")},nextAll:function(t){return j(t,"nextSibling")},prevAll:function(t){return j(t,"previousSibling")},nextUntil:function(t,e,n){return j(t,"nextSibling",n)},prevUntil:function(t,e,n){return j(t,"previousSibling",n)},siblings:function(t){return B((t.parentNode||{}).firstChild,t)},children:function(t){return B(t.firstChild)},contents:function(t){return null!=t.contentDocument&&s(t.contentDocument)?t.contentDocument:(T(t,"template")&&(t=t.content||t),k.merge([],t.childNodes))}},(function(t,e){k.fn[t]=function(n,i){var o=k.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=k.filter(i,o)),this.length>1&&(q[t]||k.uniqueSort(o),V.test(t)&&o.reverse()),this.pushStack(o)}}));var X=/[^\x20\t\r\n\f]+/g;function Y(t){return t}function J(t){throw t}function G(t,e,n,i){var o;try{t&&b(o=t.promise)?o.call(t).done(e).fail(n):t&&b(o=t.then)?o.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}k.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return k.each(t.match(X)||[],(function(t,n){e[n]=!0})),e}(t):k.extend({},t);var e,n,i,o,r=[],s=[],a=-1,l=function(){for(o=o||t.once,i=e=!0;s.length;a=-1)for(n=s.shift();++a<r.length;)!1===r[a].apply(n[0],n[1])&&t.stopOnFalse&&(a=r.length,n=!1);t.memory||(n=!1),e=!1,o&&(r=n?[]:"")},c={add:function(){return r&&(n&&!e&&(a=r.length-1,s.push(n)),function e(n){k.each(n,(function(n,i){b(i)?t.unique&&c.has(i)||r.push(i):i&&i.length&&"string"!==_(i)&&e(i)}))}(arguments),n&&!e&&l()),this},remove:function(){return k.each(arguments,(function(t,e){for(var n;(n=k.inArray(e,r,n))>-1;)r.splice(n,1),n<=a&&a--})),this},has:function(t){return t?k.inArray(t,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return o=s=[],r=n="",this},disabled:function(){return!r},lock:function(){return o=s=[],n||e||(r=n=""),this},locked:function(){return!!o},fireWith:function(t,n){return o||(n=[t,(n=n||[]).slice?n.slice():n],s.push(n),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},k.extend({Deferred:function(t){var e=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],n="pending",o={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},catch:function(t){return o.then(null,t)},pipe:function(){var t=arguments;return k.Deferred((function(n){k.each(e,(function(e,i){var o=b(t[i[4]])&&t[i[4]];r[i[1]]((function(){var t=o&&o.apply(this,arguments);t&&b(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,o?[t]:arguments)}))})),t=null})).promise()},then:function(t,n,o){var r=0;function s(t,e,n,o){return function(){var a=this,l=arguments,c=function(){var i,c;if(!(t<r)){if((i=n.apply(a,l))===e.promise())throw new TypeError("Thenable self-resolution");c=i&&("object"==typeof i||"function"==typeof i)&&i.then,b(c)?o?c.call(i,s(r,e,Y,o),s(r,e,J,o)):(r++,c.call(i,s(r,e,Y,o),s(r,e,J,o),s(r,e,Y,e.notifyWith))):(n!==Y&&(a=void 0,l=[i]),(o||e.resolveWith)(a,l))}},h=o?c:function(){try{c()}catch(i){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(i,h.error),t+1>=r&&(n!==J&&(a=void 0,l=[i]),e.rejectWith(a,l))}};t?h():(k.Deferred.getErrorHook?h.error=k.Deferred.getErrorHook():k.Deferred.getStackHook&&(h.error=k.Deferred.getStackHook()),i.setTimeout(h))}}return k.Deferred((function(i){e[0][3].add(s(0,i,b(o)?o:Y,i.notifyWith)),e[1][3].add(s(0,i,b(t)?t:Y)),e[2][3].add(s(0,i,b(n)?n:J))})).promise()},promise:function(t){return null!=t?k.extend(t,o):o}},r={};return k.each(e,(function(t,i){var s=i[2],a=i[5];o[i[1]]=s.add,a&&s.add((function(){n=a}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),s.add(i[3].fire),r[i[0]]=function(){return r[i[0]+"With"](this===r?void 0:this,arguments),this},r[i[0]+"With"]=s.fireWith})),o.promise(r),t&&t.call(r,r),r},when:function(t){var e=arguments.length,n=e,i=Array(n),o=a.call(arguments),r=k.Deferred(),s=function(t){return function(n){i[t]=this,o[t]=arguments.length>1?a.call(arguments):n,--e||r.resolveWith(i,o)}};if(e<=1&&(G(t,r.done(s(n)).resolve,r.reject,!e),"pending"===r.state()||b(o[n]&&o[n].then)))return r.then();for(;n--;)G(o[n],s(n),r.reject);return r.promise()}});var K=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(t,e){i.console&&i.console.warn&&t&&K.test(t.name)&&i.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},k.readyException=function(t){i.setTimeout((function(){throw t}))};var Z=k.Deferred();function Q(){y.removeEventListener("DOMContentLoaded",Q),i.removeEventListener("load",Q),k.ready()}k.fn.ready=function(t){return Z.then(t).catch((function(t){k.readyException(t)})),this},k.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--k.readyWait:k.isReady)||(k.isReady=!0,!0!==t&&--k.readyWait>0||Z.resolveWith(y,[k]))}}),k.ready.then=Z.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?i.setTimeout(k.ready):(y.addEventListener("DOMContentLoaded",Q),i.addEventListener("load",Q));var tt=function(t,e,n,i,o,r,s){var a=0,l=t.length,c=null==n;if("object"===_(n))for(a in o=!0,n)tt(t,e,a,n[a],!0,r,s);else if(void 0!==i&&(o=!0,b(i)||(s=!0),c&&(s?(e.call(t,i),e=null):(c=e,e=function(t,e,n){return c.call(k(t),n)})),e))for(;a<l;a++)e(t[a],n,s?i:i.call(t[a],a,e(t[a],n)));return o?t:c?e.call(t):l?e(t[0],n):r},et=/^-ms-/,nt=/-([a-z])/g;function it(t,e){return e.toUpperCase()}function ot(t){return t.replace(et,"ms-").replace(nt,it)}var rt=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function st(){this.expando=k.expando+st.uid++}st.uid=1,st.prototype={cache:function(t){var e=t[this.expando];return e||(e={},rt(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,o=this.cache(t);if("string"==typeof e)o[ot(e)]=n;else for(i in e)o[ot(i)]=e[i];return o},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][ot(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map(ot):(e=ot(e))in i?[e]:e.match(X)||[]).length;for(;n--;)delete i[e[n]]}(void 0===e||k.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!k.isEmptyObject(e)}};var at=new st,lt=new st,ct=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ht=/[A-Z]/g;function ut(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(ht,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:ct.test(t)?JSON.parse(t):t)}(n)}catch(t){}lt.set(t,e,n)}else n=void 0;return n}k.extend({hasData:function(t){return lt.hasData(t)||at.hasData(t)},data:function(t,e,n){return lt.access(t,e,n)},removeData:function(t,e){lt.remove(t,e)},_data:function(t,e,n){return at.access(t,e,n)},_removeData:function(t,e){at.remove(t,e)}}),k.fn.extend({data:function(t,e){var n,i,o,r=this[0],s=r&&r.attributes;if(void 0===t){if(this.length&&(o=lt.get(r),1===r.nodeType&&!at.get(r,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(i=s[n].name).indexOf("data-")&&(i=ot(i.slice(5)),ut(r,i,o[i]));at.set(r,"hasDataAttrs",!0)}return o}return"object"==typeof t?this.each((function(){lt.set(this,t)})):tt(this,(function(e){var n;if(r&&void 0===e)return void 0!==(n=lt.get(r,t))||void 0!==(n=ut(r,t))?n:void 0;this.each((function(){lt.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){lt.remove(this,t)}))}}),k.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=at.get(t,e),n&&(!i||Array.isArray(n)?i=at.access(t,e,k.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=k.queue(t,e),i=n.length,o=n.shift(),r=k._queueHooks(t,e);"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===e&&n.unshift("inprogress"),delete r.stop,o.call(t,(function(){k.dequeue(t,e)}),r)),!i&&r&&r.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return at.get(t,n)||at.access(t,n,{empty:k.Callbacks("once memory").add((function(){at.remove(t,[e+"queue",n])}))})}}),k.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?k.queue(this[0],t):void 0===e?this:this.each((function(){var n=k.queue(this,t,e);k._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&k.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){k.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,o=k.Deferred(),r=this,s=this.length,a=function(){--i||o.resolveWith(r,[r])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(n=at.get(r[s],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),o.promise(e)}});var dt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ft=new RegExp("^(?:([+-])=|)("+dt+")([a-z%]*)$","i"),pt=["Top","Right","Bottom","Left"],gt=y.documentElement,mt=function(t){return k.contains(t.ownerDocument,t)},bt={composed:!0};gt.getRootNode&&(mt=function(t){return k.contains(t.ownerDocument,t)||t.getRootNode(bt)===t.ownerDocument});var vt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&mt(t)&&"none"===k.css(t,"display")};function yt(t,e,n,i){var o,r,s=20,a=i?function(){return i.cur()}:function(){return k.css(t,e,"")},l=a(),c=n&&n[3]||(k.cssNumber[e]?"":"px"),h=t.nodeType&&(k.cssNumber[e]||"px"!==c&&+l)&&ft.exec(k.css(t,e));if(h&&h[3]!==c){for(l/=2,c=c||h[3],h=+l||1;s--;)k.style(t,e,h+c),(1-r)*(1-(r=a()/l||.5))<=0&&(s=0),h/=r;h*=2,k.style(t,e,h+c),n=n||[]}return n&&(h=+h||+l||0,o=n[1]?h+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=h,i.end=o)),o}var wt={};function xt(t){var e,n=t.ownerDocument,i=t.nodeName,o=wt[i];return o||(e=n.body.appendChild(n.createElement(i)),o=k.css(e,"display"),e.parentNode.removeChild(e),"none"===o&&(o="block"),wt[i]=o,o)}function _t(t,e){for(var n,i,o=[],r=0,s=t.length;r<s;r++)(i=t[r]).style&&(n=i.style.display,e?("none"===n&&(o[r]=at.get(i,"display")||null,o[r]||(i.style.display="")),""===i.style.display&&vt(i)&&(o[r]=xt(i))):"none"!==n&&(o[r]="none",at.set(i,"display",n)));for(r=0;r<s;r++)null!=o[r]&&(t[r].style.display=o[r]);return t}k.fn.extend({show:function(){return _t(this,!0)},hide:function(){return _t(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){vt(this)?k(this).show():k(this).hide()}))}});var St,Ct,kt=/^(?:checkbox|radio)$/i,Dt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Tt=/^$|^module$|\/(?:java|ecma)script/i;St=y.createDocumentFragment().appendChild(y.createElement("div")),(Ct=y.createElement("input")).setAttribute("type","radio"),Ct.setAttribute("checked","checked"),Ct.setAttribute("name","t"),St.appendChild(Ct),m.checkClone=St.cloneNode(!0).cloneNode(!0).lastChild.checked,St.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!St.cloneNode(!0).lastChild.defaultValue,St.innerHTML="<option></option>",m.option=!!St.lastChild;var At={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Mt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&T(t,e)?k.merge([t],n):n}function Pt(t,e){for(var n=0,i=t.length;n<i;n++)at.set(t[n],"globalEval",!e||at.get(e[n],"globalEval"))}At.tbody=At.tfoot=At.colgroup=At.caption=At.thead,At.th=At.td,m.option||(At.optgroup=At.option=[1,"<select multiple='multiple'>","</select>"]);var Lt=/<|&#?\w+;/;function Et(t,e,n,i,o){for(var r,s,a,l,c,h,u=e.createDocumentFragment(),d=[],f=0,p=t.length;f<p;f++)if((r=t[f])||0===r)if("object"===_(r))k.merge(d,r.nodeType?[r]:r);else if(Lt.test(r)){for(s=s||u.appendChild(e.createElement("div")),a=(Dt.exec(r)||["",""])[1].toLowerCase(),l=At[a]||At._default,s.innerHTML=l[1]+k.htmlPrefilter(r)+l[2],h=l[0];h--;)s=s.lastChild;k.merge(d,s.childNodes),(s=u.firstChild).textContent=""}else d.push(e.createTextNode(r));for(u.textContent="",f=0;r=d[f++];)if(i&&k.inArray(r,i)>-1)o&&o.push(r);else if(c=mt(r),s=Mt(u.appendChild(r),"script"),c&&Pt(s),n)for(h=0;r=s[h++];)Tt.test(r.type||"")&&n.push(r);return u}var It=/^([^.]*)(?:\.(.+)|)/;function Ot(){return!0}function Rt(){return!1}function Ft(t,e,n,i,o,r){var s,a;if("object"==typeof e){for(a in"string"!=typeof n&&(i=i||n,n=void 0),e)Ft(t,a,n,i,e[a],r);return t}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=Rt;else if(!o)return t;return 1===r&&(s=o,o=function(t){return k().off(t),s.apply(this,arguments)},o.guid=s.guid||(s.guid=k.guid++)),t.each((function(){k.event.add(this,e,o,i,n)}))}function jt(t,e,n){n?(at.set(t,e,!1),k.event.add(t,e,{namespace:!1,handler:function(t){var n,i=at.get(this,e);if(1&t.isTrigger&&this[e]){if(i)(k.event.special[e]||{}).delegateType&&t.stopPropagation();else if(i=a.call(arguments),at.set(this,e,i),this[e](),n=at.get(this,e),at.set(this,e,!1),i!==n)return t.stopImmediatePropagation(),t.preventDefault(),n}else i&&(at.set(this,e,k.event.trigger(i[0],i.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Ot)}})):void 0===at.get(t,e)&&k.event.add(t,e,Ot)}k.event={global:{},add:function(t,e,n,i,o){var r,s,a,l,c,h,u,d,f,p,g,m=at.get(t);if(rt(t))for(n.handler&&(n=(r=n).handler,o=r.selector),o&&k.find.matchesSelector(gt,o),n.guid||(n.guid=k.guid++),(l=m.events)||(l=m.events=Object.create(null)),(s=m.handle)||(s=m.handle=function(e){return void 0!==k&&k.event.triggered!==e.type?k.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(X)||[""]).length;c--;)f=g=(a=It.exec(e[c])||[])[1],p=(a[2]||"").split(".").sort(),f&&(u=k.event.special[f]||{},f=(o?u.delegateType:u.bindType)||f,u=k.event.special[f]||{},h=k.extend({type:f,origType:g,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&k.expr.match.needsContext.test(o),namespace:p.join(".")},r),(d=l[f])||((d=l[f]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(t,i,p,s)||t.addEventListener&&t.addEventListener(f,s)),u.add&&(u.add.call(t,h),h.handler.guid||(h.handler.guid=n.guid)),o?d.splice(d.delegateCount++,0,h):d.push(h),k.event.global[f]=!0)},remove:function(t,e,n,i,o){var r,s,a,l,c,h,u,d,f,p,g,m=at.hasData(t)&&at.get(t);if(m&&(l=m.events)){for(c=(e=(e||"").match(X)||[""]).length;c--;)if(f=g=(a=It.exec(e[c])||[])[1],p=(a[2]||"").split(".").sort(),f){for(u=k.event.special[f]||{},d=l[f=(i?u.delegateType:u.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=r=d.length;r--;)h=d[r],!o&&g!==h.origType||n&&n.guid!==h.guid||a&&!a.test(h.namespace)||i&&i!==h.selector&&("**"!==i||!h.selector)||(d.splice(r,1),h.selector&&d.delegateCount--,u.remove&&u.remove.call(t,h));s&&!d.length&&(u.teardown&&!1!==u.teardown.call(t,p,m.handle)||k.removeEvent(t,f,m.handle),delete l[f])}else for(f in l)k.event.remove(t,f+e[c],n,i,!0);k.isEmptyObject(l)&&at.remove(t,"handle events")}},dispatch:function(t){var e,n,i,o,r,s,a=new Array(arguments.length),l=k.event.fix(t),c=(at.get(this,"events")||Object.create(null))[l.type]||[],h=k.event.special[l.type]||{};for(a[0]=l,e=1;e<arguments.length;e++)a[e]=arguments[e];if(l.delegateTarget=this,!h.preDispatch||!1!==h.preDispatch.call(this,l)){for(s=k.event.handlers.call(this,l,c),e=0;(o=s[e++])&&!l.isPropagationStopped();)for(l.currentTarget=o.elem,n=0;(r=o.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==r.namespace&&!l.rnamespace.test(r.namespace)||(l.handleObj=r,l.data=r.data,void 0!==(i=((k.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,a))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return h.postDispatch&&h.postDispatch.call(this,l),l.result}},handlers:function(t,e){var n,i,o,r,s,a=[],l=e.delegateCount,c=t.target;if(l&&c.nodeType&&!("click"===t.type&&t.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(r=[],s={},n=0;n<l;n++)void 0===s[o=(i=e[n]).selector+" "]&&(s[o]=i.needsContext?k(o,this).index(c)>-1:k.find(o,this,null,[c]).length),s[o]&&r.push(i);r.length&&a.push({elem:c,handlers:r})}return c=this,l<e.length&&a.push({elem:c,handlers:e.slice(l)}),a},addProp:function(t,e){Object.defineProperty(k.Event.prototype,t,{enumerable:!0,configurable:!0,get:b(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[k.expando]?t:new k.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return kt.test(e.type)&&e.click&&T(e,"input")&&jt(e,"click",!0),!1},trigger:function(t){var e=this||t;return kt.test(e.type)&&e.click&&T(e,"input")&&jt(e,"click"),!0},_default:function(t){var e=t.target;return kt.test(e.type)&&e.click&&T(e,"input")&&at.get(e,"click")||T(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},k.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},k.Event=function(t,e){if(!(this instanceof k.Event))return new k.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Ot:Rt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&k.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:Rt,isPropagationStopped:Rt,isImmediatePropagationStopped:Rt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Ot,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Ot,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Ot,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},k.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},k.event.addProp),k.each({focus:"focusin",blur:"focusout"},(function(t,e){function n(t){if(y.documentMode){var n=at.get(this,"handle"),i=k.event.fix(t);i.type="focusin"===t.type?"focus":"blur",i.isSimulated=!0,n(t),i.target===i.currentTarget&&n(i)}else k.event.simulate(e,t.target,k.event.fix(t))}k.event.special[t]={setup:function(){var i;if(jt(this,t,!0),!y.documentMode)return!1;(i=at.get(this,e))||this.addEventListener(e,n),at.set(this,e,(i||0)+1)},trigger:function(){return jt(this,t),!0},teardown:function(){var t;if(!y.documentMode)return!1;(t=at.get(this,e)-1)?at.set(this,e,t):(this.removeEventListener(e,n),at.remove(this,e))},_default:function(e){return at.get(e.target,t)},delegateType:e},k.event.special[e]={setup:function(){var i=this.ownerDocument||this.document||this,o=y.documentMode?this:i,r=at.get(o,e);r||(y.documentMode?this.addEventListener(e,n):i.addEventListener(t,n,!0)),at.set(o,e,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,o=y.documentMode?this:i,r=at.get(o,e)-1;r?at.set(o,e,r):(y.documentMode?this.removeEventListener(e,n):i.removeEventListener(t,n,!0),at.remove(o,e))}}})),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){k.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=t.relatedTarget,o=t.handleObj;return i&&(i===this||k.contains(this,i))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}})),k.fn.extend({on:function(t,e,n,i){return Ft(this,t,e,n,i)},one:function(t,e,n,i){return Ft(this,t,e,n,i,1)},off:function(t,e,n){var i,o;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,k(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(o in t)this.off(o,e,t[o]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Rt),this.each((function(){k.event.remove(this,t,n,e)}))}});var Bt=/<script|<style|<link/i,Nt=/checked\s*(?:[^=]|=\s*.checked.)/i,Ht=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function zt(t,e){return T(t,"table")&&T(11!==e.nodeType?e:e.firstChild,"tr")&&k(t).children("tbody")[0]||t}function Wt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function $t(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Vt(t,e){var n,i,o,r,s,a;if(1===e.nodeType){if(at.hasData(t)&&(a=at.get(t).events))for(o in at.remove(e,"handle events"),a)for(n=0,i=a[o].length;n<i;n++)k.event.add(e,o,a[o][n]);lt.hasData(t)&&(r=lt.access(t),s=k.extend({},r),lt.set(e,s))}}function qt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&kt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Ut(t,e,n,i){e=l(e);var o,r,s,a,c,h,u=0,d=t.length,f=d-1,p=e[0],g=b(p);if(g||d>1&&"string"==typeof p&&!m.checkClone&&Nt.test(p))return t.each((function(o){var r=t.eq(o);g&&(e[0]=p.call(this,o,r.html())),Ut(r,e,n,i)}));if(d&&(r=(o=Et(e,t[0].ownerDocument,!1,t,i)).firstChild,1===o.childNodes.length&&(o=r),r||i)){for(a=(s=k.map(Mt(o,"script"),Wt)).length;u<d;u++)c=o,u!==f&&(c=k.clone(c,!0,!0),a&&k.merge(s,Mt(c,"script"))),n.call(t[u],c,u);if(a)for(h=s[s.length-1].ownerDocument,k.map(s,$t),u=0;u<a;u++)c=s[u],Tt.test(c.type||"")&&!at.access(c,"globalEval")&&k.contains(h,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?k._evalUrl&&!c.noModule&&k._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},h):x(c.textContent.replace(Ht,""),c,h))}return t}function Xt(t,e,n){for(var i,o=e?k.filter(e,t):t,r=0;null!=(i=o[r]);r++)n||1!==i.nodeType||k.cleanData(Mt(i)),i.parentNode&&(n&&mt(i)&&Pt(Mt(i,"script")),i.parentNode.removeChild(i));return t}k.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var i,o,r,s,a=t.cloneNode(!0),l=mt(t);if(!(m.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||k.isXMLDoc(t)))for(s=Mt(a),i=0,o=(r=Mt(t)).length;i<o;i++)qt(r[i],s[i]);if(e)if(n)for(r=r||Mt(t),s=s||Mt(a),i=0,o=r.length;i<o;i++)Vt(r[i],s[i]);else Vt(t,a);return(s=Mt(a,"script")).length>0&&Pt(s,!l&&Mt(t,"script")),a},cleanData:function(t){for(var e,n,i,o=k.event.special,r=0;void 0!==(n=t[r]);r++)if(rt(n)){if(e=n[at.expando]){if(e.events)for(i in e.events)o[i]?k.event.remove(n,i):k.removeEvent(n,i,e.handle);n[at.expando]=void 0}n[lt.expando]&&(n[lt.expando]=void 0)}}}),k.fn.extend({detach:function(t){return Xt(this,t,!0)},remove:function(t){return Xt(this,t)},text:function(t){return tt(this,(function(t){return void 0===t?k.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Ut(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||zt(this,t).appendChild(t)}))},prepend:function(){return Ut(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=zt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Ut(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Ut(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(k.cleanData(Mt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return k.clone(this,t,e)}))},html:function(t){return tt(this,(function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Bt.test(t)&&!At[(Dt.exec(t)||["",""])[1].toLowerCase()]){t=k.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(k.cleanData(Mt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Ut(this,arguments,(function(e){var n=this.parentNode;k.inArray(this,t)<0&&(k.cleanData(Mt(this)),n&&n.replaceChild(e,this))}),t)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){k.fn[t]=function(t){for(var n,i=[],o=k(t),r=o.length-1,s=0;s<=r;s++)n=s===r?this:this.clone(!0),k(o[s])[e](n),c.apply(i,n.get());return this.pushStack(i)}}));var Yt=new RegExp("^("+dt+")(?!px)[a-z%]+$","i"),Jt=/^--/,Gt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=i),e.getComputedStyle(t)},Kt=function(t,e,n){var i,o,r={};for(o in e)r[o]=t.style[o],t.style[o]=e[o];for(o in i=n.call(t),e)t.style[o]=r[o];return i},Zt=new RegExp(pt.join("|"),"i");function Qt(t,e,n){var i,o,r,s,a=Jt.test(e),l=t.style;return(n=n||Gt(t))&&(s=n.getPropertyValue(e)||n[e],a&&s&&(s=s.replace(E,"$1")||void 0),""!==s||mt(t)||(s=k.style(t,e)),!m.pixelBoxStyles()&&Yt.test(s)&&Zt.test(e)&&(i=l.width,o=l.minWidth,r=l.maxWidth,l.minWidth=l.maxWidth=l.width=s,s=n.width,l.width=i,l.minWidth=o,l.maxWidth=r)),void 0!==s?s+"":s}function te(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(h){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",h.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",gt.appendChild(c).appendChild(h);var t=i.getComputedStyle(h);n="1%"!==t.top,l=12===e(t.marginLeft),h.style.right="60%",s=36===e(t.right),o=36===e(t.width),h.style.position="absolute",r=12===e(h.offsetWidth/3),gt.removeChild(c),h=null}}function e(t){return Math.round(parseFloat(t))}var n,o,r,s,a,l,c=y.createElement("div"),h=y.createElement("div");h.style&&(h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===h.style.backgroundClip,k.extend(m,{boxSizingReliable:function(){return t(),o},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),r},reliableTrDimensions:function(){var t,e,n,o;return null==a&&(t=y.createElement("table"),e=y.createElement("tr"),n=y.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="box-sizing:content-box;border:1px solid",e.style.height="1px",n.style.height="9px",n.style.display="block",gt.appendChild(t).appendChild(e).appendChild(n),o=i.getComputedStyle(e),a=parseInt(o.height,10)+parseInt(o.borderTopWidth,10)+parseInt(o.borderBottomWidth,10)===e.offsetHeight,gt.removeChild(t)),a}}))}();var ee=["Webkit","Moz","ms"],ne=y.createElement("div").style,ie={};function oe(t){var e=k.cssProps[t]||ie[t];return e||(t in ne?t:ie[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=ee.length;n--;)if((t=ee[n]+e)in ne)return t}(t)||t)}var re=/^(none|table(?!-c[ea]).+)/,se={position:"absolute",visibility:"hidden",display:"block"},ae={letterSpacing:"0",fontWeight:"400"};function le(t,e,n){var i=ft.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function ce(t,e,n,i,o,r){var s="width"===e?1:0,a=0,l=0,c=0;if(n===(i?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(c+=k.css(t,n+pt[s],!0,o)),i?("content"===n&&(l-=k.css(t,"padding"+pt[s],!0,o)),"margin"!==n&&(l-=k.css(t,"border"+pt[s]+"Width",!0,o))):(l+=k.css(t,"padding"+pt[s],!0,o),"padding"!==n?l+=k.css(t,"border"+pt[s]+"Width",!0,o):a+=k.css(t,"border"+pt[s]+"Width",!0,o));return!i&&r>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-r-l-a-.5))||0),l+c}function he(t,e,n){var i=Gt(t),o=(!m.boxSizingReliable()||n)&&"border-box"===k.css(t,"boxSizing",!1,i),r=o,s=Qt(t,e,i),a="offset"+e[0].toUpperCase()+e.slice(1);if(Yt.test(s)){if(!n)return s;s="auto"}return(!m.boxSizingReliable()&&o||!m.reliableTrDimensions()&&T(t,"tr")||"auto"===s||!parseFloat(s)&&"inline"===k.css(t,"display",!1,i))&&t.getClientRects().length&&(o="border-box"===k.css(t,"boxSizing",!1,i),(r=a in t)&&(s=t[a])),(s=parseFloat(s)||0)+ce(t,e,n||(o?"border":"content"),r,i,s)+"px"}function ue(t,e,n,i,o){return new ue.prototype.init(t,e,n,i,o)}k.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Qt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!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,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,r,s,a=ot(e),l=Jt.test(e),c=t.style;if(l||(e=oe(a)),s=k.cssHooks[e]||k.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(o=s.get(t,!1,i))?o:c[e];"string"===(r=typeof n)&&(o=ft.exec(n))&&o[1]&&(n=yt(t,e,o),r="number"),null!=n&&n==n&&("number"!==r||l||(n+=o&&o[3]||(k.cssNumber[a]?"":"px")),m.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,i))||(l?c.setProperty(e,n):c[e]=n))}},css:function(t,e,n,i){var o,r,s,a=ot(e);return Jt.test(e)||(e=oe(a)),(s=k.cssHooks[e]||k.cssHooks[a])&&"get"in s&&(o=s.get(t,!0,n)),void 0===o&&(o=Qt(t,e,i)),"normal"===o&&e in ae&&(o=ae[e]),""===n||n?(r=parseFloat(o),!0===n||isFinite(r)?r||0:o):o}}),k.each(["height","width"],(function(t,e){k.cssHooks[e]={get:function(t,n,i){if(n)return!re.test(k.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?he(t,e,i):Kt(t,se,(function(){return he(t,e,i)}))},set:function(t,n,i){var o,r=Gt(t),s=!m.scrollboxSize()&&"absolute"===r.position,a=(s||i)&&"border-box"===k.css(t,"boxSizing",!1,r),l=i?ce(t,e,i,a,r):0;return a&&s&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(r[e])-ce(t,e,"border",!1,r)-.5)),l&&(o=ft.exec(n))&&"px"!==(o[3]||"px")&&(t.style[e]=n,n=k.css(t,e)),le(0,n,l)}}})),k.cssHooks.marginLeft=te(m.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Qt(t,"marginLeft"))||t.getBoundingClientRect().left-Kt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),k.each({margin:"",padding:"",border:"Width"},(function(t,e){k.cssHooks[t+e]={expand:function(n){for(var i=0,o={},r="string"==typeof n?n.split(" "):[n];i<4;i++)o[t+pt[i]+e]=r[i]||r[i-2]||r[0];return o}},"margin"!==t&&(k.cssHooks[t+e].set=le)})),k.fn.extend({css:function(t,e){return tt(this,(function(t,e,n){var i,o,r={},s=0;if(Array.isArray(e)){for(i=Gt(t),o=e.length;s<o;s++)r[e[s]]=k.css(t,e[s],!1,i);return r}return void 0!==n?k.style(t,e,n):k.css(t,e)}),t,e,arguments.length>1)}}),k.Tween=ue,ue.prototype={constructor:ue,init:function(t,e,n,i,o,r){this.elem=t,this.prop=n,this.easing=o||k.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=r||(k.cssNumber[n]?"":"px")},cur:function(){var t=ue.propHooks[this.prop];return t&&t.get?t.get(this):ue.propHooks._default.get(this)},run:function(t){var e,n=ue.propHooks[this.prop];return this.options.duration?this.pos=e=k.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ue.propHooks._default.set(this),this}},ue.prototype.init.prototype=ue.prototype,ue.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=k.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){k.fx.step[t.prop]?k.fx.step[t.prop](t):1!==t.elem.nodeType||!k.cssHooks[t.prop]&&null==t.elem.style[oe(t.prop)]?t.elem[t.prop]=t.now:k.style(t.elem,t.prop,t.now+t.unit)}}},ue.propHooks.scrollTop=ue.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},k.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},k.fx=ue.prototype.init,k.fx.step={};var de,fe,pe=/^(?:toggle|show|hide)$/,ge=/queueHooks$/;function me(){fe&&(!1===y.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(me):i.setTimeout(me,k.fx.interval),k.fx.tick())}function be(){return i.setTimeout((function(){de=void 0})),de=Date.now()}function ve(t,e){var n,i=0,o={height:t};for(e=e?1:0;i<4;i+=2-e)o["margin"+(n=pt[i])]=o["padding"+n]=t;return e&&(o.opacity=o.width=t),o}function ye(t,e,n){for(var i,o=(we.tweeners[e]||[]).concat(we.tweeners["*"]),r=0,s=o.length;r<s;r++)if(i=o[r].call(n,e,t))return i}function we(t,e,n){var i,o,r=0,s=we.prefilters.length,a=k.Deferred().always((function(){delete l.elem})),l=function(){if(o)return!1;for(var e=de||be(),n=Math.max(0,c.startTime+c.duration-e),i=1-(n/c.duration||0),r=0,s=c.tweens.length;r<s;r++)c.tweens[r].run(i);return a.notifyWith(t,[c,i,n]),i<1&&s?n:(s||a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c]),!1)},c=a.promise({elem:t,props:k.extend({},e),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},n),originalProperties:e,originalOptions:n,startTime:de||be(),duration:n.duration,tweens:[],createTween:function(e,n){var i=k.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(i),i},stop:function(e){var n=0,i=e?c.tweens.length:0;if(o)return this;for(o=!0;n<i;n++)c.tweens[n].run(1);return e?(a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c,e])):a.rejectWith(t,[c,e]),this}}),h=c.props;for(!function(t,e){var n,i,o,r,s;for(n in t)if(o=e[i=ot(n)],r=t[n],Array.isArray(r)&&(o=r[1],r=t[n]=r[0]),n!==i&&(t[i]=r,delete t[n]),(s=k.cssHooks[i])&&"expand"in s)for(n in r=s.expand(r),delete t[i],r)n in t||(t[n]=r[n],e[n]=o);else e[i]=o}(h,c.opts.specialEasing);r<s;r++)if(i=we.prefilters[r].call(c,t,h,c.opts))return b(i.stop)&&(k._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return k.map(h,ye,c),b(c.opts.start)&&c.opts.start.call(t,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),k.fx.timer(k.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c}k.Animation=k.extend(we,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return yt(n.elem,t,ft.exec(e),n),n}]},tweener:function(t,e){b(t)?(e=t,t=["*"]):t=t.match(X);for(var n,i=0,o=t.length;i<o;i++)n=t[i],we.tweeners[n]=we.tweeners[n]||[],we.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,o,r,s,a,l,c,h,u="width"in e||"height"in e,d=this,f={},p=t.style,g=t.nodeType&&vt(t),m=at.get(t,"fxshow");for(i in n.queue||(null==(s=k._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,d.always((function(){d.always((function(){s.unqueued--,k.queue(t,"fx").length||s.empty.fire()}))}))),e)if(o=e[i],pe.test(o)){if(delete e[i],r=r||"toggle"===o,o===(g?"hide":"show")){if("show"!==o||!m||void 0===m[i])continue;g=!0}f[i]=m&&m[i]||k.style(t,i)}if((l=!k.isEmptyObject(e))||!k.isEmptyObject(f))for(i in u&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=m&&m.display)&&(c=at.get(t,"display")),"none"===(h=k.css(t,"display"))&&(c?h=c:(_t([t],!0),c=t.style.display||c,h=k.css(t,"display"),_t([t]))),("inline"===h||"inline-block"===h&&null!=c)&&"none"===k.css(t,"float")&&(l||(d.done((function(){p.display=c})),null==c&&(h=p.display,c="none"===h?"":h)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",d.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),l=!1,f)l||(m?"hidden"in m&&(g=m.hidden):m=at.access(t,"fxshow",{display:c}),r&&(m.hidden=!g),g&&_t([t],!0),d.done((function(){for(i in g||_t([t]),at.remove(t,"fxshow"),f)k.style(t,i,f[i])}))),l=ye(g?m[i]:0,i,d),i in m||(m[i]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?we.prefilters.unshift(t):we.prefilters.push(t)}}),k.speed=function(t,e,n){var i=t&&"object"==typeof t?k.extend({},t):{complete:n||!n&&e||b(t)&&t,duration:t,easing:n&&e||e&&!b(e)&&e};return k.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in k.fx.speeds?i.duration=k.fx.speeds[i.duration]:i.duration=k.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){b(i.old)&&i.old.call(this),i.queue&&k.dequeue(this,i.queue)},i},k.fn.extend({fadeTo:function(t,e,n,i){return this.filter(vt).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var o=k.isEmptyObject(t),r=k.speed(e,n,i),s=function(){var e=we(this,k.extend({},t),r);(o||at.get(this,"finish"))&&e.stop(!0)};return s.finish=s,o||!1===r.queue?this.each(s):this.queue(r.queue,s)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,o=null!=t&&t+"queueHooks",r=k.timers,s=at.get(this);if(o)s[o]&&s[o].stop&&i(s[o]);else for(o in s)s[o]&&s[o].stop&&ge.test(o)&&i(s[o]);for(o=r.length;o--;)r[o].elem!==this||null!=t&&r[o].queue!==t||(r[o].anim.stop(n),e=!1,r.splice(o,1));!e&&n||k.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=at.get(this),i=n[t+"queue"],o=n[t+"queueHooks"],r=k.timers,s=i?i.length:0;for(n.finish=!0,k.queue(this,t,[]),o&&o.stop&&o.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===t&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;e<s;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish}))}}),k.each(["toggle","show","hide"],(function(t,e){var n=k.fn[e];k.fn[e]=function(t,i,o){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ve(e,!0),t,i,o)}})),k.each({slideDown:ve("show"),slideUp:ve("hide"),slideToggle:ve("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){k.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}})),k.timers=[],k.fx.tick=function(){var t,e=0,n=k.timers;for(de=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||k.fx.stop(),de=void 0},k.fx.timer=function(t){k.timers.push(t),k.fx.start()},k.fx.interval=13,k.fx.start=function(){fe||(fe=!0,me())},k.fx.stop=function(){fe=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(t,e){return t=k.fx&&k.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,n){var o=i.setTimeout(e,t);n.stop=function(){i.clearTimeout(o)}}))},function(){var t=y.createElement("input"),e=y.createElement("select").appendChild(y.createElement("option"));t.type="checkbox",m.checkOn=""!==t.value,m.optSelected=e.selected,(t=y.createElement("input")).value="t",t.type="radio",m.radioValue="t"===t.value}();var xe,_e=k.expr.attrHandle;k.fn.extend({attr:function(t,e){return tt(this,k.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){k.removeAttr(this,t)}))}}),k.extend({attr:function(t,e,n){var i,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===t.getAttribute?k.prop(t,e,n):(1===r&&k.isXMLDoc(t)||(o=k.attrHooks[e.toLowerCase()]||(k.expr.match.bool.test(e)?xe:void 0)),void 0!==n?null===n?void k.removeAttr(t,e):o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:(t.setAttribute(e,n+""),n):o&&"get"in o&&null!==(i=o.get(t,e))?i:null==(i=k.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!m.radioValue&&"radio"===e&&T(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,o=e&&e.match(X);if(o&&1===t.nodeType)for(;n=o[i++];)t.removeAttribute(n)}}),xe={set:function(t,e,n){return!1===e?k.removeAttr(t,n):t.setAttribute(n,n),n}},k.each(k.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=_e[e]||k.find.attr;_e[e]=function(t,e,i){var o,r,s=e.toLowerCase();return i||(r=_e[s],_e[s]=o,o=null!=n(t,e,i)?s:null,_e[s]=r),o}}));var Se=/^(?:input|select|textarea|button)$/i,Ce=/^(?:a|area)$/i;function ke(t){return(t.match(X)||[]).join(" ")}function De(t){return t.getAttribute&&t.getAttribute("class")||""}function Te(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(X)||[]}k.fn.extend({prop:function(t,e){return tt(this,k.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[k.propFix[t]||t]}))}}),k.extend({prop:function(t,e,n){var i,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&k.isXMLDoc(t)||(e=k.propFix[e]||e,o=k.propHooks[e]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:t[e]=n:o&&"get"in o&&null!==(i=o.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=k.find.attr(t,"tabindex");return e?parseInt(e,10):Se.test(t.nodeName)||Ce.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(k.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){k.propFix[this.toLowerCase()]=this})),k.fn.extend({addClass:function(t){var e,n,i,o,r,s;return b(t)?this.each((function(e){k(this).addClass(t.call(this,e,De(this)))})):(e=Te(t)).length?this.each((function(){if(i=De(this),n=1===this.nodeType&&" "+ke(i)+" "){for(r=0;r<e.length;r++)o=e[r],n.indexOf(" "+o+" ")<0&&(n+=o+" ");s=ke(n),i!==s&&this.setAttribute("class",s)}})):this},removeClass:function(t){var e,n,i,o,r,s;return b(t)?this.each((function(e){k(this).removeClass(t.call(this,e,De(this)))})):arguments.length?(e=Te(t)).length?this.each((function(){if(i=De(this),n=1===this.nodeType&&" "+ke(i)+" "){for(r=0;r<e.length;r++)for(o=e[r];n.indexOf(" "+o+" ")>-1;)n=n.replace(" "+o+" "," ");s=ke(n),i!==s&&this.setAttribute("class",s)}})):this:this.attr("class","")},toggleClass:function(t,e){var n,i,o,r,s=typeof t,a="string"===s||Array.isArray(t);return b(t)?this.each((function(n){k(this).toggleClass(t.call(this,n,De(this),e),e)})):"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):(n=Te(t),this.each((function(){if(a)for(r=k(this),o=0;o<n.length;o++)i=n[o],r.hasClass(i)?r.removeClass(i):r.addClass(i);else void 0!==t&&"boolean"!==s||((i=De(this))&&at.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===t?"":at.get(this,"__className__")||""))})))},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+ke(De(n))+" ").indexOf(e)>-1)return!0;return!1}});var Ae=/\r/g;k.fn.extend({val:function(t){var e,n,i,o=this[0];return arguments.length?(i=b(t),this.each((function(n){var o;1===this.nodeType&&(null==(o=i?t.call(this,n,k(this).val()):t)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=k.map(o,(function(t){return null==t?"":t+""}))),(e=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,o,"value")||(this.value=o))}))):o?(e=k.valHooks[o.type]||k.valHooks[o.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(Ae,""):null==n?"":n:void 0}}),k.extend({valHooks:{option:{get:function(t){var e=k.find.attr(t,"value");return null!=e?e:ke(k.text(t))}},select:{get:function(t){var e,n,i,o=t.options,r=t.selectedIndex,s="select-one"===t.type,a=s?null:[],l=s?r+1:o.length;for(i=r<0?l:s?r:0;i<l;i++)if(((n=o[i]).selected||i===r)&&!n.disabled&&(!n.parentNode.disabled||!T(n.parentNode,"optgroup"))){if(e=k(n).val(),s)return e;a.push(e)}return a},set:function(t,e){for(var n,i,o=t.options,r=k.makeArray(e),s=o.length;s--;)((i=o[s]).selected=k.inArray(k.valHooks.option.get(i),r)>-1)&&(n=!0);return n||(t.selectedIndex=-1),r}}}}),k.each(["radio","checkbox"],(function(){k.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=k.inArray(k(t).val(),e)>-1}},m.checkOn||(k.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var Me=i.location,Pe={guid:Date.now()},Le=/\?/;k.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new i.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||k.error("Invalid XML: "+(n?k.map(n.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var Ee=/^(?:focusinfocus|focusoutblur)$/,Ie=function(t){t.stopPropagation()};k.extend(k.event,{trigger:function(t,e,n,o){var r,s,a,l,c,h,u,d,p=[n||y],g=f.call(t,"type")?t.type:t,m=f.call(t,"namespace")?t.namespace.split("."):[];if(s=d=a=n=n||y,3!==n.nodeType&&8!==n.nodeType&&!Ee.test(g+k.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),c=g.indexOf(":")<0&&"on"+g,(t=t[k.expando]?t:new k.Event(g,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:k.makeArray(e,[t]),u=k.event.special[g]||{},o||!u.trigger||!1!==u.trigger.apply(n,e))){if(!o&&!u.noBubble&&!v(n)){for(l=u.delegateType||g,Ee.test(l+g)||(s=s.parentNode);s;s=s.parentNode)p.push(s),a=s;a===(n.ownerDocument||y)&&p.push(a.defaultView||a.parentWindow||i)}for(r=0;(s=p[r++])&&!t.isPropagationStopped();)d=s,t.type=r>1?l:u.bindType||g,(h=(at.get(s,"events")||Object.create(null))[t.type]&&at.get(s,"handle"))&&h.apply(s,e),(h=c&&s[c])&&h.apply&&rt(s)&&(t.result=h.apply(s,e),!1===t.result&&t.preventDefault());return t.type=g,o||t.isDefaultPrevented()||u._default&&!1!==u._default.apply(p.pop(),e)||!rt(n)||c&&b(n[g])&&!v(n)&&((a=n[c])&&(n[c]=null),k.event.triggered=g,t.isPropagationStopped()&&d.addEventListener(g,Ie),n[g](),t.isPropagationStopped()&&d.removeEventListener(g,Ie),k.event.triggered=void 0,a&&(n[c]=a)),t.result}},simulate:function(t,e,n){var i=k.extend(new k.Event,n,{type:t,isSimulated:!0});k.event.trigger(i,null,e)}}),k.fn.extend({trigger:function(t,e){return this.each((function(){k.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return k.event.trigger(t,e,n,!0)}});var Oe=/\[\]$/,Re=/\r?\n/g,Fe=/^(?:submit|button|image|reset|file)$/i,je=/^(?:input|select|textarea|keygen)/i;function Be(t,e,n,i){var o;if(Array.isArray(e))k.each(e,(function(e,o){n||Oe.test(t)?i(t,o):Be(t+"["+("object"==typeof o&&null!=o?e:"")+"]",o,n,i)}));else if(n||"object"!==_(e))i(t,e);else for(o in e)Be(t+"["+o+"]",e[o],n,i)}k.param=function(t,e){var n,i=[],o=function(t,e){var n=b(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!k.isPlainObject(t))k.each(t,(function(){o(this.name,this.value)}));else for(n in t)Be(n,t[n],e,o);return i.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=k.prop(this,"elements");return t?k.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!k(this).is(":disabled")&&je.test(this.nodeName)&&!Fe.test(t)&&(this.checked||!kt.test(t))})).map((function(t,e){var n=k(this).val();return null==n?null:Array.isArray(n)?k.map(n,(function(t){return{name:e.name,value:t.replace(Re,"\r\n")}})):{name:e.name,value:n.replace(Re,"\r\n")}})).get()}});var Ne=/%20/g,He=/#.*$/,ze=/([?&])_=[^&]*/,We=/^(.*?):[ \t]*([^\r\n]*)$/gm,$e=/^(?:GET|HEAD)$/,Ve=/^\/\//,qe={},Ue={},Xe="*/".concat("*"),Ye=y.createElement("a");function Je(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,o=0,r=e.toLowerCase().match(X)||[];if(b(n))for(;i=r[o++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function Ge(t,e,n,i){var o={},r=t===Ue;function s(a){var l;return o[a]=!0,k.each(t[a]||[],(function(t,a){var c=a(e,n,i);return"string"!=typeof c||r||o[c]?r?!(l=c):void 0:(e.dataTypes.unshift(c),s(c),!1)})),l}return s(e.dataTypes[0])||!o["*"]&&s("*")}function Ke(t,e){var n,i,o=k.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((o[n]?t:i||(i={}))[n]=e[n]);return i&&k.extend(!0,t,i),t}Ye.href=Me.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Me.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Me.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Xe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ke(Ke(t,k.ajaxSettings),e):Ke(k.ajaxSettings,t)},ajaxPrefilter:Je(qe),ajaxTransport:Je(Ue),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,o,r,s,a,l,c,h,u,d,f=k.ajaxSetup({},e),p=f.context||f,g=f.context&&(p.nodeType||p.jquery)?k(p):k.event,m=k.Deferred(),b=k.Callbacks("once memory"),v=f.statusCode||{},w={},x={},_="canceled",S={readyState:0,getResponseHeader:function(t){var e;if(c){if(!s)for(s={};e=We.exec(r);)s[e[1].toLowerCase()+" "]=(s[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=s[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?r:null},setRequestHeader:function(t,e){return null==c&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,w[t]=e),this},overrideMimeType:function(t){return null==c&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)S.always(t[S.status]);else for(e in t)v[e]=[v[e],t[e]];return this},abort:function(t){var e=t||_;return n&&n.abort(e),C(0,e),this}};if(m.promise(S),f.url=((t||f.url||Me.href)+"").replace(Ve,Me.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(X)||[""],null==f.crossDomain){l=y.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=Ye.protocol+"//"+Ye.host!=l.protocol+"//"+l.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=k.param(f.data,f.traditional)),Ge(qe,f,e,S),c)return S;for(u in(h=k.event&&f.global)&&0===k.active++&&k.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!$e.test(f.type),o=f.url.replace(He,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Ne,"+")):(d=f.url.slice(o.length),f.data&&(f.processData||"string"==typeof f.data)&&(o+=(Le.test(o)?"&":"?")+f.data,delete f.data),!1===f.cache&&(o=o.replace(ze,"$1"),d=(Le.test(o)?"&":"?")+"_="+Pe.guid+++d),f.url=o+d),f.ifModified&&(k.lastModified[o]&&S.setRequestHeader("If-Modified-Since",k.lastModified[o]),k.etag[o]&&S.setRequestHeader("If-None-Match",k.etag[o])),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&S.setRequestHeader("Content-Type",f.contentType),S.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Xe+"; q=0.01":""):f.accepts["*"]),f.headers)S.setRequestHeader(u,f.headers[u]);if(f.beforeSend&&(!1===f.beforeSend.call(p,S,f)||c))return S.abort();if(_="abort",b.add(f.complete),S.done(f.success),S.fail(f.error),n=Ge(Ue,f,e,S)){if(S.readyState=1,h&&g.trigger("ajaxSend",[S,f]),c)return S;f.async&&f.timeout>0&&(a=i.setTimeout((function(){S.abort("timeout")}),f.timeout));try{c=!1,n.send(w,C)}catch(t){if(c)throw t;C(-1,t)}}else C(-1,"No Transport");function C(t,e,s,l){var u,d,y,w,x,_=e;c||(c=!0,a&&i.clearTimeout(a),n=void 0,r=l||"",S.readyState=t>0?4:0,u=t>=200&&t<300||304===t,s&&(w=function(t,e,n){for(var i,o,r,s,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(o in a)if(a[o]&&a[o].test(i)){l.unshift(o);break}if(l[0]in n)r=l[0];else{for(o in n){if(!l[0]||t.converters[o+" "+l[0]]){r=o;break}s||(s=o)}r=r||s}if(r)return r!==l[0]&&l.unshift(r),n[r]}(f,S,s)),!u&&k.inArray("script",f.dataTypes)>-1&&k.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),w=function(t,e,n,i){var o,r,s,a,l,c={},h=t.dataTypes.slice();if(h[1])for(s in t.converters)c[s.toLowerCase()]=t.converters[s];for(r=h.shift();r;)if(t.responseFields[r]&&(n[t.responseFields[r]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=r,r=h.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(s=c[l+" "+r]||c["* "+r]))for(o in c)if((a=o.split(" "))[1]===r&&(s=c[l+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[o]:!0!==c[o]&&(r=a[0],h.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+l+" to "+r}}}return{state:"success",data:e}}(f,w,S,u),u?(f.ifModified&&((x=S.getResponseHeader("Last-Modified"))&&(k.lastModified[o]=x),(x=S.getResponseHeader("etag"))&&(k.etag[o]=x)),204===t||"HEAD"===f.type?_="nocontent":304===t?_="notmodified":(_=w.state,d=w.data,u=!(y=w.error))):(y=_,!t&&_||(_="error",t<0&&(t=0))),S.status=t,S.statusText=(e||_)+"",u?m.resolveWith(p,[d,_,S]):m.rejectWith(p,[S,_,y]),S.statusCode(v),v=void 0,h&&g.trigger(u?"ajaxSuccess":"ajaxError",[S,f,u?d:y]),b.fireWith(p,[S,_]),h&&(g.trigger("ajaxComplete",[S,f]),--k.active||k.event.trigger("ajaxStop")))}return S},getJSON:function(t,e,n){return k.get(t,e,n,"json")},getScript:function(t,e){return k.get(t,void 0,e,"script")}}),k.each(["get","post"],(function(t,e){k[e]=function(t,n,i,o){return b(n)&&(o=o||i,i=n,n=void 0),k.ajax(k.extend({url:t,type:e,dataType:o,data:n,success:i},k.isPlainObject(t)&&t))}})),k.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),k._evalUrl=function(t,e,n){return k.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){k.globalEval(t,e,n)}})},k.fn.extend({wrapAll:function(t){var e;return this[0]&&(b(t)&&(t=t.call(this[0])),e=k(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return b(t)?this.each((function(e){k(this).wrapInner(t.call(this,e))})):this.each((function(){var e=k(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=b(t);return this.each((function(n){k(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){k(this).replaceWith(this.childNodes)})),this}}),k.expr.pseudos.hidden=function(t){return!k.expr.pseudos.visible(t)},k.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(t){}};var Ze={0:200,1223:204},Qe=k.ajaxSettings.xhr();m.cors=!!Qe&&"withCredentials"in Qe,m.ajax=Qe=!!Qe,k.ajaxTransport((function(t){var e,n;if(m.cors||Qe&&!t.crossDomain)return{send:function(o,r){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];for(s in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)a.setRequestHeader(s,o[s]);e=function(t){return function(){e&&(e=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?r(0,"error"):r(a.status,a.statusText):r(Ze[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),n=a.onerror=a.ontimeout=e("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&i.setTimeout((function(){e&&n()}))},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),k.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return k.globalEval(t),t}}}),k.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),k.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(i,o){e=k("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&o("error"===t.type?404:200,t.type)}),y.head.appendChild(e[0])},abort:function(){n&&n()}}}));var tn,en=[],nn=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=en.pop()||k.expando+"_"+Pe.guid++;return this[t]=!0,t}}),k.ajaxPrefilter("json jsonp",(function(t,e,n){var o,r,s,a=!1!==t.jsonp&&(nn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return o=t.jsonpCallback=b(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(nn,"$1"+o):!1!==t.jsonp&&(t.url+=(Le.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return s||k.error(o+" was not called"),s[0]},t.dataTypes[0]="json",r=i[o],i[o]=function(){s=arguments},n.always((function(){void 0===r?k(i).removeProp(o):i[o]=r,t[o]&&(t.jsonpCallback=e.jsonpCallback,en.push(o)),s&&b(r)&&r(s[0]),s=r=void 0})),"script"})),m.createHTMLDocument=((tn=y.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===tn.childNodes.length),k.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(m.createHTMLDocument?((i=(e=y.implementation.createHTMLDocument("")).createElement("base")).href=y.location.href,e.head.appendChild(i)):e=y),r=!n&&[],(o=H.exec(t))?[e.createElement(o[1])]:(o=Et([t],e,r),r&&r.length&&k(r).remove(),k.merge([],o.childNodes)));var i,o,r},k.fn.load=function(t,e,n){var i,o,r,s=this,a=t.indexOf(" ");return a>-1&&(i=ke(t.slice(a)),t=t.slice(0,a)),b(e)?(n=e,e=void 0):e&&"object"==typeof e&&(o="POST"),s.length>0&&k.ajax({url:t,type:o||"GET",dataType:"html",data:e}).done((function(t){r=arguments,s.html(i?k("<div>").append(k.parseHTML(t)).find(i):t)})).always(n&&function(t,e){s.each((function(){n.apply(this,r||[t.responseText,e,t])}))}),this},k.expr.pseudos.animated=function(t){return k.grep(k.timers,(function(e){return t===e.elem})).length},k.offset={setOffset:function(t,e,n){var i,o,r,s,a,l,c=k.css(t,"position"),h=k(t),u={};"static"===c&&(t.style.position="relative"),a=h.offset(),r=k.css(t,"top"),l=k.css(t,"left"),("absolute"===c||"fixed"===c)&&(r+l).indexOf("auto")>-1?(s=(i=h.position()).top,o=i.left):(s=parseFloat(r)||0,o=parseFloat(l)||0),b(e)&&(e=e.call(t,n,k.extend({},a))),null!=e.top&&(u.top=e.top-a.top+s),null!=e.left&&(u.left=e.left-a.left+o),"using"in e?e.using.call(t,u):h.css(u)}},k.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){k.offset.setOffset(this,t,e)}));var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],o={top:0,left:0};if("fixed"===k.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===k.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((o=k(t).offset()).top+=k.css(t,"borderTopWidth",!0),o.left+=k.css(t,"borderLeftWidth",!0))}return{top:e.top-o.top-k.css(i,"marginTop",!0),left:e.left-o.left-k.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===k.css(t,"position");)t=t.offsetParent;return t||gt}))}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;k.fn[t]=function(i){return tt(this,(function(t,i,o){var r;if(v(t)?r=t:9===t.nodeType&&(r=t.defaultView),void 0===o)return r?r[e]:t[i];r?r.scrollTo(n?r.pageXOffset:o,n?o:r.pageYOffset):t[i]=o}),t,i,arguments.length)}})),k.each(["top","left"],(function(t,e){k.cssHooks[e]=te(m.pixelPosition,(function(t,n){if(n)return n=Qt(t,e),Yt.test(n)?k(t).position()[e]+"px":n}))})),k.each({Height:"height",Width:"width"},(function(t,e){k.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,i){k.fn[i]=function(o,r){var s=arguments.length&&(n||"boolean"!=typeof o),a=n||(!0===o||!0===r?"margin":"border");return tt(this,(function(e,n,o){var r;return v(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+t],r["scroll"+t],e.body["offset"+t],r["offset"+t],r["client"+t])):void 0===o?k.css(e,n,a):k.style(e,n,o,a)}),e,s?o:void 0,s)}}))})),k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){k.fn[e]=function(t){return this.on(e,t)}})),k.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.on("mouseenter",t).on("mouseleave",e||t)}}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,e){k.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}));var on=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;k.proxy=function(t,e){var n,i,o;if("string"==typeof e&&(n=t[e],e=t,t=n),b(t))return i=a.call(arguments,2),o=function(){return t.apply(e||this,i.concat(a.call(arguments)))},o.guid=t.guid=t.guid||k.guid++,o},k.holdReady=function(t){t?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=T,k.isFunction=b,k.isWindow=v,k.camelCase=ot,k.type=_,k.now=Date.now,k.isNumeric=function(t){var e=k.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},k.trim=function(t){return null==t?"":(t+"").replace(on,"$1")},void 0===(n=function(){return k}.apply(e,[]))||(t.exports=n);var rn=i.jQuery,sn=i.$;return k.noConflict=function(t){return i.$===k&&(i.$=sn),t&&i.jQuery===k&&(i.jQuery=rn),k},void 0===o&&(i.jQuery=i.$=k),k}))}},e={};function n(i){var o=e[i];if(void 0!==o)return o.exports;var r=e[i]={exports:{}};return t[i].call(r.exports,r,r.exports,n),r.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";var t,e,i,o,r=n(692),s=r,a=function(n,i){if(a.factory(n,i))return a;if(this instanceof a)return s(n).DataTable(i);i=n,this.$=function(t,e){return this.api(!0).$(t,e)},this._=function(t,e){return this.api(!0).rows(t,e).data()},this.api=function(n){return new e(n?ae(this[t.iApiIndex]):this)},this.fnAddData=function(t,e){var n=this.api(!0),i=Array.isArray(t)&&(Array.isArray(t[0])||s.isPlainObject(t[0]))?n.rows.add(t):n.row.add(t);return(void 0===e||e)&&n.draw(),i.flatten().toArray()},this.fnAdjustColumnSizing=function(t){var e=this.api(!0).columns.adjust(),n=e.settings()[0],i=n.oScroll;void 0===t||t?e.draw(!1):""===i.sX&&""===i.sY||Wt(n)},this.fnClearTable=function(t){var e=this.api(!0).clear();(void 0===t||t)&&e.draw()},this.fnClose=function(t){this.api(!0).row(t).child.hide()},this.fnDeleteRow=function(t,e,n){var i=this.api(!0),o=i.rows(t),r=o.settings()[0],s=r.aoData[o[0][0]];return o.remove(),e&&e.call(this,r,s),(void 0===n||n)&&i.draw(),s},this.fnDestroy=function(t){this.api(!0).destroy(t)},this.fnDraw=function(t){this.api(!0).draw(t)},this.fnFilter=function(t,e,n,i,o,r){var s=this.api(!0);null==e?s.search(t,n,i,r):s.column(e).search(t,n,i,r),s.draw()},this.fnGetData=function(t,e){var n=this.api(!0);if(void 0!==t){var i=t.nodeName?t.nodeName.toLowerCase():"";return void 0!==e||"td"==i||"th"==i?n.cell(t,e).data():n.row(t).data()||null}return n.data().toArray()},this.fnGetNodes=function(t){var e=this.api(!0);return void 0!==t?e.row(t).node():e.rows().nodes().flatten().toArray()},this.fnGetPosition=function(t){var e=this.api(!0),n=t.nodeName.toUpperCase();if("TR"==n)return e.row(t).index();if("TD"==n||"TH"==n){var i=e.cell(t).index();return[i.row,i.columnVisible,i.column]}return null},this.fnIsOpen=function(t){return this.api(!0).row(t).child.isShown()},this.fnOpen=function(t,e,n){return this.api(!0).row(t).child(e,n).show().child()[0]},this.fnPageChange=function(t,e){var n=this.api(!0).page(t);(void 0===e||e)&&n.draw(!1)},this.fnSetColumnVis=function(t,e,n){var i=this.api(!0).column(t).visible(e);(void 0===n||n)&&i.columns.adjust().draw()},this.fnSettings=function(){return ae(this[t.iApiIndex])},this.fnSort=function(t){this.api(!0).order(t).draw()},this.fnSortListener=function(t,e,n){this.api(!0).order.listener(t,e,n)},this.fnUpdate=function(t,e,n,i,o){var r=this.api(!0);return null==n?r.row(e).data(t):r.cell(e,n).data(t),(void 0===o||o)&&r.columns.adjust(),(void 0===i||i)&&r.draw(),0},this.fnVersionCheck=t.fnVersionCheck;var o=this,r=void 0===i,l=this.length;for(var c in r&&(i={}),this.oApi=this.internal=t.internal,a.ext.internal)c&&(this[c]=Ue(c));return this.each((function(){var t,e=l>1?he({},i,!0):i,n=0,c=this.getAttribute("id"),h=!1,u=a.defaults,d=s(this);if("table"==this.nodeName.toLowerCase()){L(u),E(u.column),A(u,u,!0),A(u.column,u.column,!0),A(u,s.extend(e,d.data()),!0);var f=a.settings;for(n=0,t=f.length;n<t;n++){var p=f[n];if(p.nTable==this||p.nTHead&&p.nTHead.parentNode==this||p.nTFoot&&p.nTFoot.parentNode==this){var g=void 0!==e.bRetrieve?e.bRetrieve:u.bRetrieve,m=void 0!==e.bDestroy?e.bDestroy:u.bDestroy;if(r||g)return p.oInstance;if(m){p.oInstance.fnDestroy();break}return void le(p,0,"Cannot reinitialise DataTable",3)}if(p.sTableId==this.id){f.splice(n,1);break}}null!==c&&""!==c||(c="DataTables_Table_"+a.ext._unique++,this.id=c);var b=s.extend(!0,{},a.models.oSettings,{sDestroyWidth:d[0].style.width,sInstance:c,sTableId:c});b.nTable=this,b.oApi=o.internal,b.oInit=e,f.push(b),b.oInstance=1===o.length?o:d.dataTable(),L(e),M(e.oLanguage),e.aLengthMenu&&!e.iDisplayLength&&(e.iDisplayLength=Array.isArray(e.aLengthMenu[0])?e.aLengthMenu[0][0]:e.aLengthMenu[0]),e=he(s.extend(!0,{},u),e),ce(b.oFeatures,e,["bPaginate","bLengthChange","bFilter","bSort","bSortMulti","bInfo","bProcessing","bAutoWidth","bSortClasses","bServerSide","bDeferRender"]),ce(b,e,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"]]),ce(b.oScroll,e,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),ce(b.oLanguage,e,"fnInfoCallback"),de(b,"aoDrawCallback",e.fnDrawCallback,"user"),de(b,"aoServerParams",e.fnServerParams,"user"),de(b,"aoStateSaveParams",e.fnStateSaveParams,"user"),de(b,"aoStateLoadParams",e.fnStateLoadParams,"user"),de(b,"aoStateLoaded",e.fnStateLoaded,"user"),de(b,"aoRowCallback",e.fnRowCallback,"user"),de(b,"aoRowCreatedCallback",e.fnCreatedRow,"user"),de(b,"aoHeaderCallback",e.fnHeaderCallback,"user"),de(b,"aoFooterCallback",e.fnFooterCallback,"user"),de(b,"aoInitComplete",e.fnInitComplete,"user"),de(b,"aoPreDrawCallback",e.fnPreDrawCallback,"user"),b.rowIdFn=K(e.rowId),I(b);var v=b.oClasses;if(s.extend(v,a.ext.classes,e.oClasses),d.addClass(v.sTable),void 0===b.iInitDisplayStart&&(b.iInitDisplayStart=e.iDisplayStart,b._iDisplayStart=e.iDisplayStart),null!==e.iDeferLoading){b.bDeferLoading=!0;var y=Array.isArray(e.iDeferLoading);b._iRecordsDisplay=y?e.iDeferLoading[0]:e.iDeferLoading,b._iRecordsTotal=y?e.iDeferLoading[1]:e.iDeferLoading}var w=b.oLanguage;s.extend(!0,w,e.oLanguage),w.sUrl?(s.ajax({dataType:"json",url:w.sUrl,success:function(t){A(u.oLanguage,t),M(t),s.extend(!0,w,t,b.oInit.oLanguage),fe(b,null,"i18n",[b]),It(b)},error:function(){It(b)}}),h=!0):fe(b,null,"i18n",[b]),null===e.asStripeClasses&&(b.asStripeClasses=[v.sStripeOdd,v.sStripeEven]);var x=b.asStripeClasses,_=d.children("tbody").find("tr").eq(0);-1!==s.inArray(!0,s.map(x,(function(t,e){return _.hasClass(t)})))&&(s("tbody tr",this).removeClass(x.join(" ")),b.asDestroyStripes=x.slice());var S,C=[],k=this.getElementsByTagName("thead");if(0!==k.length&&(ut(b.aoHeader,k[0]),C=dt(b)),null===e.aoColumns)for(S=[],n=0,t=C.length;n<t;n++)S.push(null);else S=e.aoColumns;for(n=0,t=S.length;n<t;n++)R(b,C?C[n]:null);if($(b,e.aoColumnDefs,S,(function(t,e){F(b,t,e)})),_.length){var D=function(t,e){return null!==t.getAttribute("data-"+e)?e:null};s(_[0]).children("th, td").each((function(t,e){var n=b.aoColumns[t];if(n||le(b,0,"Incorrect column count",18),n.mData===t){var i=D(e,"sort")||D(e,"order"),o=D(e,"filter")||D(e,"search");null===i&&null===o||(n.mData={_:t+".display",sort:null!==i?t+".@data-"+i:void 0,type:null!==i?t+".@data-"+i:void 0,filter:null!==o?t+".@data-"+o:void 0},n._isArrayHost=!0,F(b,t))}}))}var T=b.oFeatures,P=function(){if(void 0===e.aaSorting){var i=b.aaSorting;for(n=0,t=i.length;n<t;n++)i[n][1]=b.aoColumns[n].asSorting[0]}ne(b),T.bSort&&de(b,"aoDrawCallback",(function(){if(b.bSorted){var t=Kt(b),e={};s.each(t,(function(t,n){e[n.src]=n.dir})),fe(b,null,"order",[b,t,e]),Qt(b)}})),de(b,"aoDrawCallback",(function(){(b.bSorted||"ssp"===me(b)||T.bDeferRender)&&ne(b)}),"sc");var o=d.children("caption").each((function(){this._captionSide=s(this).css("caption-side")})),r=d.children("thead");0===r.length&&(r=s("<thead/>").appendTo(d)),b.nTHead=r[0];var a=d.children("tbody");0===a.length&&(a=s("<tbody/>").insertAfter(r)),b.nTBody=a[0];var l=d.children("tfoot");if(0===l.length&&o.length>0&&(""!==b.oScroll.sX||""!==b.oScroll.sY)&&(l=s("<tfoot/>").appendTo(d)),0===l.length||0===l.children().length?d.addClass(v.sNoFooter):l.length>0&&(b.nTFoot=l[0],ut(b.aoFooter,b.nTFoot)),e.aaData)for(n=0;n<e.aaData.length;n++)V(b,e.aaData[n]);else(b.bDeferLoading||"dom"==me(b))&&q(b,s(b.nTBody).children("tr"));b.aiDisplay=b.aiDisplayMaster.slice(),b.bInitialised=!0,!1===h&&It(b)};de(b,"aoDrawCallback",oe,"state_save"),e.bStateSave?(T.bStateSave=!0,re(b,e,P)):P()}else le(null,0,"Non-table node initialisation ("+this.nodeName+")",2)})),o=null,this},l={},c=/[\r\n\u2028]/g,h=/<.*?>/g,u=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,d=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),f=/['\u00A0,$£¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,p=function(t){return!t||!0===t||"-"===t},g=function(t){var e=parseInt(t,10);return!isNaN(e)&&isFinite(t)?e:null},m=function(t,e){return l[e]||(l[e]=new RegExp(Ct(e),"g")),"string"==typeof t&&"."!==e?t.replace(/\./g,"").replace(l[e],"."):t},b=function(t,e,n){var i=typeof t,o="string"===i;return"number"===i||"bigint"===i||(!!p(t)||(e&&o&&(t=m(t,e)),n&&o&&(t=t.replace(f,"")),!isNaN(parseFloat(t))&&isFinite(t)))},v=function(t,e,n){if(p(t))return!0;var i=function(t){return p(t)||"string"==typeof t}(t);return i&&!!b(S(t),e,n)||null},y=function(t,e,n){var i=[],o=0,r=t.length;if(void 0!==n)for(;o<r;o++)t[o]&&t[o][e]&&i.push(t[o][e][n]);else for(;o<r;o++)t[o]&&i.push(t[o][e]);return i},w=function(t,e,n,i){var o=[],r=0,s=e.length;if(void 0!==i)for(;r<s;r++)t[e[r]][n]&&o.push(t[e[r]][n][i]);else for(;r<s;r++)o.push(t[e[r]][n]);return o},x=function(t,e){var n,i=[];void 0===e?(e=0,n=t):(n=e,e=t);for(var o=e;o<n;o++)i.push(o);return i},_=function(t){for(var e=[],n=0,i=t.length;n<i;n++)t[n]&&e.push(t[n]);return e},S=function(t){return t.replace(h,"").replace(/<script/i,"")},C=function(t){if(function(t){if(t.length<2)return!0;for(var e=t.slice().sort(),n=e[0],i=1,o=e.length;i<o;i++){if(e[i]===n)return!1;n=e[i]}return!0}(t))return t.slice();var e,n,i,o=[],r=t.length,s=0;t:for(n=0;n<r;n++){for(e=t[n],i=0;i<s;i++)if(o[i]===e)continue t;o.push(e),s++}return o},k=function(t,e){if(Array.isArray(e))for(var n=0;n<e.length;n++)k(t,e[n]);else t.push(e);return t},D=function(t,e){return void 0===e&&(e=0),-1!==this.indexOf(t,e)};function T(t){var e,n,i={};s.each(t,(function(o,r){(e=o.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(e[1]+" ")&&(n=o.replace(e[0],e[2].toLowerCase()),i[n]=o,"o"===e[1]&&T(t[o]))})),t._hungarianMap=i}function A(t,e,n){var i;t._hungarianMap||T(t),s.each(e,(function(o,r){void 0===(i=t._hungarianMap[o])||!n&&void 0!==e[i]||("o"===i.charAt(0)?(e[i]||(e[i]={}),s.extend(!0,e[i],e[o]),A(t[i],e[i],n)):e[i]=e[o])}))}function M(t){var e=a.defaults.oLanguage,n=e.sDecimal;if(n&&Fe(n),t){var i=t.sZeroRecords;!t.sEmptyTable&&i&&"No data available in table"===e.sEmptyTable&&ce(t,t,"sZeroRecords","sEmptyTable"),!t.sLoadingRecords&&i&&"Loading..."===e.sLoadingRecords&&ce(t,t,"sZeroRecords","sLoadingRecords"),t.sInfoThousands&&(t.sThousands=t.sInfoThousands);var o=t.sDecimal;o&&n!==o&&Fe(o)}}Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),Array.prototype.includes||(Array.prototype.includes=D),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}),String.prototype.includes||(String.prototype.includes=D),a.util={throttle:function(t,e){var n,i,o=void 0!==e?e:200;return function(){var e=this,r=+new Date,s=arguments;n&&r<n+o?(clearTimeout(i),i=setTimeout((function(){n=void 0,t.apply(e,s)}),o)):(n=r,t.apply(e,s))}},escapeRegex:function(t){return t.replace(d,"\\$1")},set:function(t){if(s.isPlainObject(t))return a.util.set(t._);if(null===t)return function(){};if("function"==typeof t)return function(e,n,i){t(e,"set",n,i)};if("string"!=typeof t||-1===t.indexOf(".")&&-1===t.indexOf("[")&&-1===t.indexOf("("))return function(e,n){e[t]=n};var e=function(t,n,i){for(var o,r,s,a,l,c=G(i),h=c[c.length-1],u=0,d=c.length-1;u<d;u++){if("__proto__"===c[u]||"constructor"===c[u])throw new Error("Cannot set prototype values");if(r=c[u].match(Y),s=c[u].match(J),r){if(c[u]=c[u].replace(Y,""),t[c[u]]=[],(o=c.slice()).splice(0,u+1),l=o.join("."),Array.isArray(n))for(var f=0,p=n.length;f<p;f++)e(a={},n[f],l),t[c[u]].push(a);else t[c[u]]=n;return}s&&(c[u]=c[u].replace(J,""),t=t[c[u]](n)),null!==t[c[u]]&&void 0!==t[c[u]]||(t[c[u]]={}),t=t[c[u]]}h.match(J)?t=t[h.replace(J,"")](n):t[h.replace(Y,"")]=n};return function(n,i){return e(n,i,t)}},get:function(t){if(s.isPlainObject(t)){var e={};return s.each(t,(function(t,n){n&&(e[t]=a.util.get(n))})),function(t,n,i,o){var r=e[n]||e._;return void 0!==r?r(t,n,i,o):t}}if(null===t)return function(t){return t};if("function"==typeof t)return function(e,n,i,o){return t(e,n,i,o)};if("string"!=typeof t||-1===t.indexOf(".")&&-1===t.indexOf("[")&&-1===t.indexOf("("))return function(e,n){return e[t]};var n=function(t,e,i){var o,r,s,a;if(""!==i)for(var l=G(i),c=0,h=l.length;c<h;c++){if(o=l[c].match(Y),r=l[c].match(J),o){if(l[c]=l[c].replace(Y,""),""!==l[c]&&(t=t[l[c]]),s=[],l.splice(0,c+1),a=l.join("."),Array.isArray(t))for(var u=0,d=t.length;u<d;u++)s.push(n(t[u],e,a));var f=o[0].substring(1,o[0].length-1);t=""===f?s:s.join(f);break}if(r)l[c]=l[c].replace(J,""),t=t[l[c]]();else{if(null===t||null===t[l[c]])return null;if(void 0===t||void 0===t[l[c]])return;t=t[l[c]]}}return t};return function(e,i){return n(e,i,t)}}};var P=function(t,e,n){void 0!==t[e]&&(t[n]=t[e])};function L(t){P(t,"ordering","bSort"),P(t,"orderMulti","bSortMulti"),P(t,"orderClasses","bSortClasses"),P(t,"orderCellsTop","bSortCellsTop"),P(t,"order","aaSorting"),P(t,"orderFixed","aaSortingFixed"),P(t,"paging","bPaginate"),P(t,"pagingType","sPaginationType"),P(t,"pageLength","iDisplayLength"),P(t,"searching","bFilter"),"boolean"==typeof t.sScrollX&&(t.sScrollX=t.sScrollX?"100%":""),"boolean"==typeof t.scrollX&&(t.scrollX=t.scrollX?"100%":"");var e=t.aoSearchCols;if(e)for(var n=0,i=e.length;n<i;n++)e[n]&&A(a.models.oSearch,e[n])}function E(t){P(t,"orderable","bSortable"),P(t,"orderData","aDataSort"),P(t,"orderSequence","asSorting"),P(t,"orderDataType","sortDataType");var e=t.aDataSort;"number"!=typeof e||Array.isArray(e)||(t.aDataSort=[e])}function I(t){if(!a.__browser){var e={};a.__browser=e;var n=s("<div/>").css({position:"fixed",top:0,left:-1*s(window).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(s("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(s("<div/>").css({width:"100%",height:10}))).appendTo("body"),i=n.children(),o=i.children();e.barWidth=i[0].offsetWidth-i[0].clientWidth,e.bScrollOversize=100===o[0].offsetWidth&&100!==i[0].clientWidth,e.bScrollbarLeft=1!==Math.round(o.offset().left),e.bBounding=!!n[0].getBoundingClientRect().width,n.remove()}s.extend(t.oBrowser,a.__browser),t.oScroll.iBarWidth=a.__browser.barWidth}function O(t,e,n,i,o,r){var s,a=i,l=!1;for(void 0!==n&&(s=n,l=!0);a!==o;)t.hasOwnProperty(a)&&(s=l?e(s,t[a],a,t):t[a],l=!0,a+=r);return s}function R(t,e){var n=a.defaults.column,i=t.aoColumns.length,o=s.extend({},a.models.oColumn,n,{nTh:e||document.createElement("th"),sTitle:n.sTitle?n.sTitle:e?e.innerHTML:"",aDataSort:n.aDataSort?n.aDataSort:[i],mData:n.mData?n.mData:i,idx:i});t.aoColumns.push(o);var r=t.aoPreSearchCols;r[i]=s.extend({},a.models.oSearch,r[i]),F(t,i,s(e).data())}function F(t,e,n){var i=t.aoColumns[e],o=t.oClasses,r=s(i.nTh);if(!i.sWidthOrig){i.sWidthOrig=r.attr("width")||null;var l=(r.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);l&&(i.sWidthOrig=l[1])}if(null!=n){E(n),A(a.defaults.column,n,!0),void 0===n.mDataProp||n.mData||(n.mData=n.mDataProp),n.sType&&(i._sManualType=n.sType),n.className&&!n.sClass&&(n.sClass=n.className),n.sClass&&r.addClass(n.sClass);var c=i.sClass;s.extend(i,n),ce(i,n,"sWidth","sWidthOrig"),c!==i.sClass&&(i.sClass=c+" "+i.sClass),void 0!==n.iDataSort&&(i.aDataSort=[n.iDataSort]),ce(i,n,"aDataSort"),i.ariaTitle||(i.ariaTitle=r.attr("aria-label"))}var h=i.mData,u=K(h),d=i.mRender?K(i.mRender):null,f=function(t){return"string"==typeof t&&-1!==t.indexOf("@")};i._bAttrSrc=s.isPlainObject(h)&&(f(h.sort)||f(h.type)||f(h.filter)),i._setter=null,i.fnGetData=function(t,e,n){var i=u(t,e,void 0,n);return d&&e?d(i,e,t,n):i},i.fnSetData=function(t,e,n){return Z(h)(t,e,n)},"number"==typeof h||i._isArrayHost||(t._rowReadObject=!0),t.oFeatures.bSort||(i.bSortable=!1,r.addClass(o.sSortableNone));var p=-1!==s.inArray("asc",i.asSorting),g=-1!==s.inArray("desc",i.asSorting);i.bSortable&&(p||g)?p&&!g?(i.sSortingClass=o.sSortableAsc,i.sSortingClassJUI=o.sSortJUIAscAllowed):!p&&g?(i.sSortingClass=o.sSortableDesc,i.sSortingClassJUI=o.sSortJUIDescAllowed):(i.sSortingClass=o.sSortable,i.sSortingClassJUI=o.sSortJUI):(i.sSortingClass=o.sSortableNone,i.sSortingClassJUI="")}function j(t){if(!1!==t.oFeatures.bAutoWidth){var e=t.aoColumns;qt(t);for(var n=0,i=e.length;n<i;n++)e[n].nTh.style.width=e[n].sWidth}var o=t.oScroll;""===o.sY&&""===o.sX||Wt(t),fe(t,null,"column-sizing",[t])}function B(t,e){var n=z(t,"bVisible");return"number"==typeof n[e]?n[e]:null}function N(t,e){var n=z(t,"bVisible"),i=s.inArray(e,n);return-1!==i?i:null}function H(t){var e=0;return s.each(t.aoColumns,(function(t,n){n.bVisible&&"none"!==s(n.nTh).css("display")&&e++})),e}function z(t,e){var n=[];return s.map(t.aoColumns,(function(t,i){t[e]&&n.push(i)})),n}function W(t){var e,n,i,o,r,s,l,c,h,u=t.aoColumns,d=t.aoData,f=a.ext.type.detect;for(e=0,n=u.length;e<n;e++)if(h=[],!(l=u[e]).sType&&l._sManualType)l.sType=l._sManualType;else if(!l.sType){for(i=0,o=f.length;i<o;i++){for(r=0,s=d.length;r<s&&(void 0===h[r]&&(h[r]=U(t,r,e,"type")),(c=f[i](h[r],t))||i===f.length-1)&&("html"!==c||p(h[r]));r++);if(c){l.sType=c;break}}l.sType||(l.sType="string")}}function $(t,e,n,i){var o,r,a,l,c,h,u,d=t.aoColumns;if(e)for(o=e.length-1;o>=0;o--){var f=void 0!==(u=e[o]).target?u.target:void 0!==u.targets?u.targets:u.aTargets;for(Array.isArray(f)||(f=[f]),a=0,l=f.length;a<l;a++)if("number"==typeof f[a]&&f[a]>=0){for(;d.length<=f[a];)R(t);i(f[a],u)}else if("number"==typeof f[a]&&f[a]<0)i(d.length+f[a],u);else if("string"==typeof f[a])for(c=0,h=d.length;c<h;c++)("_all"==f[a]||s(d[c].nTh).hasClass(f[a]))&&i(c,u)}if(n)for(o=0,r=n.length;o<r;o++)i(o,n[o])}function V(t,e,n,i){var o=t.aoData.length,r=s.extend(!0,{},a.models.oRow,{src:n?"dom":"data",idx:o});r._aData=e,t.aoData.push(r);for(var l=t.aoColumns,c=0,h=l.length;c<h;c++)l[c].sType=null;t.aiDisplayMaster.push(o);var u=t.rowIdFn(e);return void 0!==u&&(t.aIds[u]=r),!n&&t.oFeatures.bDeferRender||ot(t,o,n,i),o}function q(t,e){var n;return e instanceof s||(e=s(e)),e.map((function(e,i){return n=it(t,i),V(t,n.data,i,n.cells)}))}function U(t,e,n,i){"search"===i?i="filter":"order"===i&&(i="sort");var o=t.iDraw,r=t.aoColumns[n],s=t.aoData[e]._aData,l=r.sDefaultContent,c=r.fnGetData(s,i,{settings:t,row:e,col:n});if(void 0===c)return t.iDrawError!=o&&null===l&&(le(t,0,"Requested unknown parameter "+("function"==typeof r.mData?"{function}":"'"+r.mData+"'")+" for row "+e+", column "+n,4),t.iDrawError=o),l;if(c!==s&&null!==c||null===l||void 0===i){if("function"==typeof c)return c.call(s)}else c=l;if(null===c&&"display"===i)return"";if("filter"===i){var h=a.ext.type.search;h[r.sType]&&(c=h[r.sType](c))}return c}function X(t,e,n,i){var o=t.aoColumns[n],r=t.aoData[e]._aData;o.fnSetData(r,i,{settings:t,row:e,col:n})}var Y=/\[.*?\]$/,J=/\(\)$/;function G(t){return s.map(t.match(/(\\.|[^\.])+/g)||[""],(function(t){return t.replace(/\\\./g,".")}))}var K=a.util.get,Z=a.util.set;function Q(t){return y(t.aoData,"_aData")}function tt(t){t.aoData.length=0,t.aiDisplayMaster.length=0,t.aiDisplay.length=0,t.aIds={}}function et(t,e,n){for(var i=-1,o=0,r=t.length;o<r;o++)t[o]==e?i=o:t[o]>e&&t[o]--;-1!=i&&void 0===n&&t.splice(i,1)}function nt(t,e,n,i){var o,r,s=t.aoData[e],a=function(n,i){for(;n.childNodes.length;)n.removeChild(n.firstChild);n.innerHTML=U(t,e,i,"display")};if("dom"!==n&&(n&&"auto"!==n||"dom"!==s.src)){var l=s.anCells;if(l)if(void 0!==i)a(l[i],i);else for(o=0,r=l.length;o<r;o++)a(l[o],o)}else s._aData=it(t,s,i,void 0===i?void 0:s._aData).data;s._aSortData=null,s._aFilterData=null;var c=t.aoColumns;if(void 0!==i)c[i].sType=null;else{for(o=0,r=c.length;o<r;o++)c[o].sType=null;rt(t,s)}}function it(t,e,n,i){var o,r,s,a=[],l=e.firstChild,c=0,h=t.aoColumns,u=t._rowReadObject;i=void 0!==i?i:u?{}:[];var d=function(t,e){if("string"==typeof t){var n=t.indexOf("@");if(-1!==n){var o=t.substring(n+1);Z(t)(i,e.getAttribute(o))}}},f=function(t){void 0!==n&&n!==c||(r=h[c],s=t.innerHTML.trim(),r&&r._bAttrSrc?(Z(r.mData._)(i,s),d(r.mData.sort,t),d(r.mData.type,t),d(r.mData.filter,t)):u?(r._setter||(r._setter=Z(r.mData)),r._setter(i,s)):i[c]=s);c++};if(l)for(;l;)"TD"!=(o=l.nodeName.toUpperCase())&&"TH"!=o||(f(l),a.push(l)),l=l.nextSibling;else for(var p=0,g=(a=e.anCells).length;p<g;p++)f(a[p]);var m=e.firstChild?e:e.nTr;if(m){var b=m.getAttribute("id");b&&Z(t.rowId)(i,b)}return{data:i,cells:a}}function ot(t,e,n,i){var o,r,a,l,c,h,u=t.aoData[e],d=u._aData,f=[];if(null===u.nTr){for(o=n||document.createElement("tr"),u.nTr=o,u.anCells=f,o._DT_RowIndex=e,rt(t,u),l=0,c=t.aoColumns.length;l<c;l++)a=t.aoColumns[l],(r=(h=!n)?document.createElement(a.sCellType):i[l])||le(t,0,"Incorrect column count",18),r._DT_CellIndex={row:e,column:l},f.push(r),!h&&(!a.mRender&&a.mData===l||s.isPlainObject(a.mData)&&a.mData._===l+".display")||(r.innerHTML=U(t,e,l,"display")),a.sClass&&(r.className+=" "+a.sClass),a.bVisible&&!n?o.appendChild(r):!a.bVisible&&n&&r.parentNode.removeChild(r),a.fnCreatedCell&&a.fnCreatedCell.call(t.oInstance,r,U(t,e,l),d,e,l);fe(t,"aoRowCreatedCallback",null,[o,d,e,f])}}function rt(t,e){var n=e.nTr,i=e._aData;if(n){var o=t.rowIdFn(i);if(o&&(n.id=o),i.DT_RowClass){var r=i.DT_RowClass.split(" ");e.__rowc=e.__rowc?C(e.__rowc.concat(r)):r,s(n).removeClass(e.__rowc.join(" ")).addClass(i.DT_RowClass)}i.DT_RowAttr&&s(n).attr(i.DT_RowAttr),i.DT_RowData&&s(n).data(i.DT_RowData)}}function st(t){var e,n,i,o,r,a=t.nTHead,l=t.nTFoot,c=0===s("th, td",a).length,h=t.oClasses,u=t.aoColumns;for(c&&(o=s("<tr/>").appendTo(a)),e=0,n=u.length;e<n;e++)r=u[e],i=s(r.nTh).addClass(r.sClass),c&&i.appendTo(o),t.oFeatures.bSort&&(i.addClass(r.sSortingClass),!1!==r.bSortable&&(i.attr("tabindex",t.iTabIndex).attr("aria-controls",t.sTableId),ee(t,r.nTh,e))),r.sTitle!=i[0].innerHTML&&i.html(r.sTitle),ge(t,"header")(t,i,r,h);if(c&&ut(t.aoHeader,a),s(a).children("tr").children("th, td").addClass(h.sHeaderTH),s(l).children("tr").children("th, td").addClass(h.sFooterTH),null!==l){var d=t.aoFooter[0];for(e=0,n=d.length;e<n;e++)(r=u[e])?(r.nTf=d[e].cell,r.sClass&&s(r.nTf).addClass(r.sClass)):le(t,0,"Incorrect column count",18)}}function at(t,e,n){var i,o,r,a,l,c,h,u,d,f=[],p=[],g=t.aoColumns.length;if(e){for(void 0===n&&(n=!1),i=0,o=e.length;i<o;i++){for(f[i]=e[i].slice(),f[i].nTr=e[i].nTr,r=g-1;r>=0;r--)t.aoColumns[r].bVisible||n||f[i].splice(r,1);p.push([])}for(i=0,o=f.length;i<o;i++){if(h=f[i].nTr)for(;c=h.firstChild;)h.removeChild(c);for(r=0,a=f[i].length;r<a;r++)if(u=1,d=1,void 0===p[i][r]){for(h.appendChild(f[i][r].cell),p[i][r]=1;void 0!==f[i+u]&&f[i][r].cell==f[i+u][r].cell;)p[i+u][r]=1,u++;for(;void 0!==f[i][r+d]&&f[i][r].cell==f[i][r+d].cell;){for(l=0;l<u;l++)p[i+l][r+d]=1;d++}s(f[i][r].cell).attr("rowspan",u).attr("colspan",d)}}}}function lt(t,e){!function(t){var e="ssp"==me(t),n=t.iInitDisplayStart;void 0!==n&&-1!==n&&(t._iDisplayStart=e?n:n>=t.fnRecordsDisplay()?0:n,t.iInitDisplayStart=-1)}(t);var n=fe(t,"aoPreDrawCallback","preDraw",[t]);if(-1===s.inArray(!1,n)){var i=[],o=0,r=t.asStripeClasses,a=r.length,l=t.oLanguage,c="ssp"==me(t),h=t.aiDisplay,u=t._iDisplayStart,d=t.fnDisplayEnd();if(t.bDrawing=!0,t.bDeferLoading)t.bDeferLoading=!1,t.iDraw++,Ht(t,!1);else if(c){if(!t.bDestroying&&!e)return void pt(t)}else t.iDraw++;if(0!==h.length)for(var f=c?0:u,p=c?t.aoData.length:d,g=f;g<p;g++){var m=h[g],b=t.aoData[m];null===b.nTr&&ot(t,m);var v=b.nTr;if(0!==a){var y=r[o%a];b._sRowStripe!=y&&(s(v).removeClass(b._sRowStripe).addClass(y),b._sRowStripe=y)}fe(t,"aoRowCallback",null,[v,b._aData,o,g,m]),i.push(v),o++}else{var w=l.sZeroRecords;1==t.iDraw&&"ajax"==me(t)?w=l.sLoadingRecords:l.sEmptyTable&&0===t.fnRecordsTotal()&&(w=l.sEmptyTable),i[0]=s("<tr/>",{class:a?r[0]:""}).append(s("<td />",{valign:"top",colSpan:H(t),class:t.oClasses.sRowEmpty}).html(w))[0]}fe(t,"aoHeaderCallback","header",[s(t.nTHead).children("tr")[0],Q(t),u,d,h]),fe(t,"aoFooterCallback","footer",[s(t.nTFoot).children("tr")[0],Q(t),u,d,h]);var x=s(t.nTBody);x.children().detach(),x.append(s(i)),fe(t,"aoDrawCallback","draw",[t]),t.bSorted=!1,t.bFiltered=!1,t.bDrawing=!1}else Ht(t,!1)}function ct(t,e){var n=t.oFeatures,i=n.bSort,o=n.bFilter;i&&Zt(t),o?yt(t,t.oPreviousSearch):t.aiDisplay=t.aiDisplayMaster.slice(),!0!==e&&(t._iDisplayStart=0),t._drawHold=e,lt(t),t._drawHold=!1}function ht(t){var e=t.oClasses,n=s(t.nTable),i=s("<div/>").insertBefore(n),o=t.oFeatures,r=s("<div/>",{id:t.sTableId+"_wrapper",class:e.sWrapper+(t.nTFoot?"":" "+e.sNoFooter)});t.nHolding=i[0],t.nTableWrapper=r[0],t.nTableReinsertBefore=t.nTable.nextSibling;for(var l,c,h,u,d,f,p=t.sDom.split(""),g=0;g<p.length;g++){if(l=null,"<"==(c=p[g])){if(h=s("<div/>")[0],"'"==(u=p[g+1])||'"'==u){for(d="",f=2;p[g+f]!=u;)d+=p[g+f],f++;if("H"==d?d=e.sJUIHeader:"F"==d&&(d=e.sJUIFooter),-1!=d.indexOf(".")){var m=d.split(".");h.id=m[0].substr(1,m[0].length-1),h.className=m[1]}else"#"==d.charAt(0)?h.id=d.substr(1,d.length-1):h.className=d;g+=f}r.append(h),r=s(h)}else if(">"==c)r=r.parent();else if("l"==c&&o.bPaginate&&o.bLengthChange)l=Ft(t);else if("f"==c&&o.bFilter)l=vt(t);else if("r"==c&&o.bProcessing)l=Nt(t);else if("t"==c)l=zt(t);else if("i"==c&&o.bInfo)l=Pt(t);else if("p"==c&&o.bPaginate)l=jt(t);else if(0!==a.ext.feature.length)for(var b=a.ext.feature,v=0,y=b.length;v<y;v++)if(c==b[v].cFeature){l=b[v].fnInit(t);break}if(l){var w=t.aanFeatures;w[c]||(w[c]=[]),w[c].push(l),r.append(l)}}i.replaceWith(r),t.nHolding=null}function ut(t,e){var n,i,o,r,a,l,c,h,u,d,f=s(e).children("tr"),p=function(t,e,n){for(var i=t[e];i[n];)n++;return n};for(t.splice(0,t.length),o=0,l=f.length;o<l;o++)t.push([]);for(o=0,l=f.length;o<l;o++)for(i=(n=f[o]).firstChild;i;){if("TD"==i.nodeName.toUpperCase()||"TH"==i.nodeName.toUpperCase())for(h=(h=1*i.getAttribute("colspan"))&&0!==h&&1!==h?h:1,u=(u=1*i.getAttribute("rowspan"))&&0!==u&&1!==u?u:1,c=p(t,o,0),d=1===h,a=0;a<h;a++)for(r=0;r<u;r++)t[o+r][c+a]={cell:i,unique:d},t[o+r].nTr=n;i=i.nextSibling}}function dt(t,e,n){var i=[];n||(n=t.aoHeader,e&&ut(n=[],e));for(var o=0,r=n.length;o<r;o++)for(var s=0,a=n[o].length;s<a;s++)!n[o][s].unique||i[s]&&t.bSortCellsTop||(i[s]=n[o][s].cell);return i}function ft(t,e,n){if(fe(t,"aoServerParams","serverParams",[e]),e&&Array.isArray(e)){var i={},o=/(.*?)\[\]$/;s.each(e,(function(t,e){var n=e.name.match(o);if(n){var r=n[0];i[r]||(i[r]=[]),i[r].push(e.value)}else i[e.name]=e.value})),e=i}var r,a=t.ajax,l=t.oInstance,c=function(e){var i=t.jqXHR?t.jqXHR.status:null;(null===e||"number"==typeof i&&204==i)&&bt(t,e={},[]);var o=e.error||e.sError;o&&le(t,0,o),t.json=e,fe(t,null,"xhr",[t,e,t.jqXHR]),n(e)};if(s.isPlainObject(a)&&a.data){var h="function"==typeof(r=a.data)?r(e,t):r;e="function"==typeof r&&h?h:s.extend(!0,e,h),delete a.data}var u={data:e,success:c,dataType:"json",cache:!1,type:t.sServerMethod,error:function(e,n,i){var o=fe(t,null,"xhr",[t,null,t.jqXHR]);-1===s.inArray(!0,o)&&("parsererror"==n?le(t,0,"Invalid JSON response",1):4===e.readyState&&le(t,0,"Ajax error",7)),Ht(t,!1)}};t.oAjaxData=e,fe(t,null,"preXhr",[t,e]),t.fnServerData?t.fnServerData.call(l,t.sAjaxSource,s.map(e,(function(t,e){return{name:e,value:t}})),c,t):t.sAjaxSource||"string"==typeof a?t.jqXHR=s.ajax(s.extend(u,{url:a||t.sAjaxSource})):"function"==typeof a?t.jqXHR=a.call(l,e,c,t):(t.jqXHR=s.ajax(s.extend(u,a)),a.data=r)}function pt(t){t.iDraw++,Ht(t,!0);var e=t._drawHold;ft(t,gt(t),(function(n){t._drawHold=e,mt(t,n),t._drawHold=!1}))}function gt(t){var e,n,i,o,r=t.aoColumns,l=r.length,c=t.oFeatures,h=t.oPreviousSearch,u=t.aoPreSearchCols,d=[],f=Kt(t),p=t._iDisplayStart,g=!1!==c.bPaginate?t._iDisplayLength:-1,m=function(t,e){d.push({name:t,value:e})};m("sEcho",t.iDraw),m("iColumns",l),m("sColumns",y(r,"sName").join(",")),m("iDisplayStart",p),m("iDisplayLength",g);var b={draw:t.iDraw,columns:[],order:[],start:p,length:g,search:{value:h.sSearch,regex:h.bRegex}};for(e=0;e<l;e++)i=r[e],o=u[e],n="function"==typeof i.mData?"function":i.mData,b.columns.push({data:n,name:i.sName,searchable:i.bSearchable,orderable:i.bSortable,search:{value:o.sSearch,regex:o.bRegex}}),m("mDataProp_"+e,n),c.bFilter&&(m("sSearch_"+e,o.sSearch),m("bRegex_"+e,o.bRegex),m("bSearchable_"+e,i.bSearchable)),c.bSort&&m("bSortable_"+e,i.bSortable);c.bFilter&&(m("sSearch",h.sSearch),m("bRegex",h.bRegex)),c.bSort&&(s.each(f,(function(t,e){b.order.push({column:e.col,dir:e.dir}),m("iSortCol_"+t,e.col),m("sSortDir_"+t,e.dir)})),m("iSortingCols",f.length));var v=a.ext.legacy.ajax;return null===v?t.sAjaxSource?d:b:v?d:b}function mt(t,e){var n=function(t,n){return void 0!==e[t]?e[t]:e[n]},i=bt(t,e),o=n("sEcho","draw"),r=n("iTotalRecords","recordsTotal"),s=n("iTotalDisplayRecords","recordsFiltered");if(void 0!==o){if(1*o<t.iDraw)return;t.iDraw=1*o}i||(i=[]),tt(t),t._iRecordsTotal=parseInt(r,10),t._iRecordsDisplay=parseInt(s,10);for(var a=0,l=i.length;a<l;a++)V(t,i[a]);t.aiDisplay=t.aiDisplayMaster.slice(),lt(t,!0),t._bInitComplete||Ot(t,e),Ht(t,!1)}function bt(t,e,n){var i=s.isPlainObject(t.ajax)&&void 0!==t.ajax.dataSrc?t.ajax.dataSrc:t.sAjaxDataProp;if(!n)return"data"===i?e.aaData||e[i]:""!==i?K(i)(e):e;Z(i)(e,n)}function vt(t){var e=t.oClasses,n=t.sTableId,i=t.oLanguage,o=t.oPreviousSearch,r=t.aanFeatures,a='<input type="search" class="'+e.sFilterInput+'"/>',l=i.sSearch;l=l.match(/_INPUT_/)?l.replace("_INPUT_",a):l+a;var c=s("<div/>",{id:r.f?null:n+"_filter",class:e.sFilter}).append(s("<label/>").append(l)),h=function(e){r.f;var n=this.value?this.value:"";o.return&&"Enter"!==e.key||n!=o.sSearch&&(yt(t,{sSearch:n,bRegex:o.bRegex,bSmart:o.bSmart,bCaseInsensitive:o.bCaseInsensitive,return:o.return}),t._iDisplayStart=0,lt(t))},u=null!==t.searchDelay?t.searchDelay:"ssp"===me(t)?400:0,d=s("input",c).val(o.sSearch).attr("placeholder",i.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",u?Ut(h,u):h).on("mouseup.DT",(function(t){setTimeout((function(){h.call(d[0],t)}),10)})).on("keypress.DT",(function(t){if(13==t.keyCode)return!1})).attr("aria-controls",n);return s(t.nTable).on("search.dt.DT",(function(e,n){if(t===n)try{d[0]!==document.activeElement&&d.val(o.sSearch)}catch(t){}})),c[0]}function yt(t,e,n){var i=t.oPreviousSearch,o=t.aoPreSearchCols,r=function(t){i.sSearch=t.sSearch,i.bRegex=t.bRegex,i.bSmart=t.bSmart,i.bCaseInsensitive=t.bCaseInsensitive,i.return=t.return},s=function(t){return void 0!==t.bEscapeRegex?!t.bEscapeRegex:t.bRegex};if(W(t),"ssp"!=me(t)){_t(t,e.sSearch,n,s(e),e.bSmart,e.bCaseInsensitive),r(e);for(var a=0;a<o.length;a++)xt(t,o[a].sSearch,a,s(o[a]),o[a].bSmart,o[a].bCaseInsensitive);wt(t)}else r(e);t.bFiltered=!0,fe(t,null,"search",[t])}function wt(t){for(var e,n,i=a.ext.search,o=t.aiDisplay,r=0,l=i.length;r<l;r++){for(var c=[],h=0,u=o.length;h<u;h++)n=o[h],e=t.aoData[n],i[r](t,e._aFilterData,n,e._aData,h)&&c.push(n);o.length=0,s.merge(o,c)}}function xt(t,e,n,i,o,r){if(""!==e){for(var s,a=[],l=t.aiDisplay,c=St(e,i,o,r),h=0;h<l.length;h++)s=t.aoData[l[h]]._aFilterData[n],c.test(s)&&a.push(l[h]);t.aiDisplay=a}}function _t(t,e,n,i,o,r){var s,l,c,h=St(e,i,o,r),u=t.oPreviousSearch.sSearch,d=t.aiDisplayMaster,f=[];if(0!==a.ext.search.length&&(n=!0),l=Tt(t),e.length<=0)t.aiDisplay=d.slice();else{for((l||n||i||u.length>e.length||0!==e.indexOf(u)||t.bSorted)&&(t.aiDisplay=d.slice()),s=t.aiDisplay,c=0;c<s.length;c++)h.test(t.aoData[s[c]]._sFilterRow)&&f.push(s[c]);t.aiDisplay=f}}function St(t,e,n,i){if(t=e?t:Ct(t),n){var o=s.map(t.match(/["\u201C][^"\u201D]+["\u201D]|[^ ]+/g)||[""],(function(t){if('"'===t.charAt(0)){var e=t.match(/^"(.*)"$/);t=e?e[1]:t}else if(""===t.charAt(0)){e=t.match(/^\u201C(.*)\u201D$/);t=e?e[1]:t}return t.replace('"',"")}));t="^(?=.*?"+o.join(")(?=.*?")+").*$"}return new RegExp(t,i?"i":"")}var Ct=a.util.escapeRegex,kt=s("<div>")[0],Dt=void 0!==kt.textContent;function Tt(t){var e,n,i,o,r,s,a,l=t.aoColumns,c=!1;for(e=0,i=t.aoData.length;e<i;e++)if(!(a=t.aoData[e])._aFilterData){for(r=[],n=0,o=l.length;n<o;n++)l[n].bSearchable?(null===(s=U(t,e,n,"filter"))&&(s=""),"string"!=typeof s&&s.toString&&(s=s.toString())):s="",s.indexOf&&-1!==s.indexOf("&")&&(kt.innerHTML=s,s=Dt?kt.textContent:kt.innerText),s.replace&&(s=s.replace(/[\r\n\u2028]/g,"")),r.push(s);a._aFilterData=r,a._sFilterRow=r.join(" "),c=!0}return c}function At(t){return{search:t.sSearch,smart:t.bSmart,regex:t.bRegex,caseInsensitive:t.bCaseInsensitive}}function Mt(t){return{sSearch:t.search,bSmart:t.smart,bRegex:t.regex,bCaseInsensitive:t.caseInsensitive}}function Pt(t){var e=t.sTableId,n=t.aanFeatures.i,i=s("<div/>",{class:t.oClasses.sInfo,id:n?null:e+"_info"});return n||(t.aoDrawCallback.push({fn:Lt,sName:"information"}),i.attr("role","status").attr("aria-live","polite"),s(t.nTable).attr("aria-describedby",e+"_info")),i[0]}function Lt(t){var e=t.aanFeatures.i;if(0!==e.length){var n=t.oLanguage,i=t._iDisplayStart+1,o=t.fnDisplayEnd(),r=t.fnRecordsTotal(),a=t.fnRecordsDisplay(),l=a?n.sInfo:n.sInfoEmpty;a!==r&&(l+=" "+n.sInfoFiltered),l=Et(t,l+=n.sInfoPostFix);var c=n.fnInfoCallback;null!==c&&(l=c.call(t.oInstance,t,i,o,r,a,l)),s(e).html(l)}}function Et(t,e){var n=t.fnFormatNumber,i=t._iDisplayStart+1,o=t._iDisplayLength,r=t.fnRecordsDisplay(),s=-1===o;return e.replace(/_START_/g,n.call(t,i)).replace(/_END_/g,n.call(t,t.fnDisplayEnd())).replace(/_MAX_/g,n.call(t,t.fnRecordsTotal())).replace(/_TOTAL_/g,n.call(t,r)).replace(/_PAGE_/g,n.call(t,s?1:Math.ceil(i/o))).replace(/_PAGES_/g,n.call(t,s?1:Math.ceil(r/o)))}function It(t){var e,n,i,o=t.iInitDisplayStart,r=t.aoColumns,s=t.oFeatures,a=t.bDeferLoading;if(t.bInitialised){for(ht(t),st(t),at(t,t.aoHeader),at(t,t.aoFooter),Ht(t,!0),s.bAutoWidth&&qt(t),e=0,n=r.length;e<n;e++)(i=r[e]).sWidth&&(i.nTh.style.width=Gt(i.sWidth));fe(t,null,"preInit",[t]),ct(t);var l=me(t);("ssp"!=l||a)&&("ajax"==l?ft(t,[],(function(n){var i=bt(t,n);for(e=0;e<i.length;e++)V(t,i[e]);t.iInitDisplayStart=o,ct(t),Ht(t,!1),Ot(t,n)})):(Ht(t,!1),Ot(t)))}else setTimeout((function(){It(t)}),200)}function Ot(t,e){t._bInitComplete=!0,(e||t.oInit.aaData)&&j(t),fe(t,null,"plugin-init",[t,e]),fe(t,"aoInitComplete","init",[t,e])}function Rt(t,e){var n=parseInt(e,10);t._iDisplayLength=n,pe(t),fe(t,null,"length",[t,n])}function Ft(t){for(var e=t.oClasses,n=t.sTableId,i=t.aLengthMenu,o=Array.isArray(i[0]),r=o?i[0]:i,a=o?i[1]:i,l=s("<select/>",{name:n+"_length","aria-controls":n,class:e.sLengthSelect}),c=0,h=r.length;c<h;c++)l[0][c]=new Option("number"==typeof a[c]?t.fnFormatNumber(a[c]):a[c],r[c]);var u=s("<div><label/></div>").addClass(e.sLength);return t.aanFeatures.l||(u[0].id=n+"_length"),u.children().append(t.oLanguage.sLengthMenu.replace("_MENU_",l[0].outerHTML)),s("select",u).val(t._iDisplayLength).on("change.DT",(function(e){Rt(t,s(this).val()),lt(t)})),s(t.nTable).on("length.dt.DT",(function(e,n,i){t===n&&s("select",u).val(i)})),u[0]}function jt(t){var e=t.sPaginationType,n=a.ext.pager[e],i="function"==typeof n,o=function(t){lt(t)},r=s("<div/>").addClass(t.oClasses.sPaging+e)[0],l=t.aanFeatures;return i||n.fnInit(t,r,o),l.p||(r.id=t.sTableId+"_paginate",t.aoDrawCallback.push({fn:function(t){if(i){var e,r,s=t._iDisplayStart,a=t._iDisplayLength,c=t.fnRecordsDisplay(),h=-1===a,u=h?0:Math.ceil(s/a),d=h?1:Math.ceil(c/a),f=n(u,d);for(e=0,r=l.p.length;e<r;e++)ge(t,"pageButton")(t,l.p[e],e,f,u,d)}else n.fnUpdate(t,o)},sName:"pagination"})),r}function Bt(t,e,n){var i=t._iDisplayStart,o=t._iDisplayLength,r=t.fnRecordsDisplay();0===r||-1===o?i=0:"number"==typeof e?(i=e*o)>r&&(i=0):"first"==e?i=0:"previous"==e?(i=o>=0?i-o:0)<0&&(i=0):"next"==e?i+o<r&&(i+=o):"last"==e?i=Math.floor((r-1)/o)*o:le(t,0,"Unknown paging action: "+e,5);var s=t._iDisplayStart!==i;return t._iDisplayStart=i,s?(fe(t,null,"page",[t]),n&&lt(t)):fe(t,null,"page-nc",[t]),s}function Nt(t){return s("<div/>",{id:t.aanFeatures.r?null:t.sTableId+"_processing",class:t.oClasses.sProcessing,role:"status"}).html(t.oLanguage.sProcessing).append("<div><div></div><div></div><div></div><div></div></div>").insertBefore(t.nTable)[0]}function Ht(t,e){t.oFeatures.bProcessing&&s(t.aanFeatures.r).css("display",e?"block":"none"),fe(t,null,"processing",[t,e])}function zt(t){var e=s(t.nTable),n=t.oScroll;if(""===n.sX&&""===n.sY)return t.nTable;var i=n.sX,o=n.sY,r=t.oClasses,a=e.children("caption"),l=a.length?a[0]._captionSide:null,c=s(e[0].cloneNode(!1)),h=s(e[0].cloneNode(!1)),u=e.children("tfoot"),d="<div/>",f=function(t){return t?Gt(t):null};u.length||(u=null);var p=s(d,{class:r.sScrollWrapper}).append(s(d,{class:r.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:i?f(i):"100%"}).append(s(d,{class:r.sScrollHeadInner}).css({"box-sizing":"content-box",width:n.sXInner||"100%"}).append(c.removeAttr("id").css("margin-left",0).append("top"===l?a:null).append(e.children("thead"))))).append(s(d,{class:r.sScrollBody}).css({position:"relative",overflow:"auto",width:f(i)}).append(e));u&&p.append(s(d,{class:r.sScrollFoot}).css({overflow:"hidden",border:0,width:i?f(i):"100%"}).append(s(d,{class:r.sScrollFootInner}).append(h.removeAttr("id").css("margin-left",0).append("bottom"===l?a:null).append(e.children("tfoot")))));var g=p.children(),m=g[0],b=g[1],v=u?g[2]:null;return i&&s(b).on("scroll.DT",(function(t){var e=this.scrollLeft;m.scrollLeft=e,u&&(v.scrollLeft=e)})),s(b).css("max-height",o),n.bCollapse||s(b).css("height",o),t.nScrollHead=m,t.nScrollBody=b,t.nScrollFoot=v,t.aoDrawCallback.push({fn:Wt,sName:"scrolling"}),p[0]}function Wt(t){var e,n,i,o,r,a,l,c,h,u=t.oScroll,d=u.sX,f=u.sXInner,p=u.sY,g=u.iBarWidth,m=s(t.nScrollHead),b=m[0].style,v=m.children("div"),w=v[0].style,x=v.children("table"),_=t.nScrollBody,S=s(_),C=_.style,k=s(t.nScrollFoot).children("div"),D=k.children("table"),T=s(t.nTHead),A=s(t.nTable),M=A[0],P=M.style,L=t.nTFoot?s(t.nTFoot):null,E=t.oBrowser,I=E.bScrollOversize,O=(y(t.aoColumns,"nTh"),[]),R=[],F=[],N=[],H=function(t){var e=t.style;e.paddingTop="0",e.paddingBottom="0",e.borderTopWidth="0",e.borderBottomWidth="0",e.height=0},z=_.scrollHeight>_.clientHeight;if(t.scrollBarVis!==z&&void 0!==t.scrollBarVis)return t.scrollBarVis=z,void j(t);t.scrollBarVis=z,A.children("thead, tfoot").remove(),L&&(a=L.clone().prependTo(A),n=L.find("tr"),o=a.find("tr"),a.find("[id]").removeAttr("id")),r=T.clone().prependTo(A),e=T.find("tr"),i=r.find("tr"),r.find("th, td").removeAttr("tabindex"),r.find("[id]").removeAttr("id"),d||(C.width="100%",m[0].style.width="100%"),s.each(dt(t,r),(function(e,n){l=B(t,e),n.style.width=t.aoColumns[l].sWidth})),L&&$t((function(t){t.style.width=""}),o),h=A.outerWidth(),""===d?(P.width="100%",I&&(A.find("tbody").height()>_.offsetHeight||"scroll"==S.css("overflow-y"))&&(P.width=Gt(A.outerWidth()-g)),h=A.outerWidth()):""!==f&&(P.width=Gt(f),h=A.outerWidth()),$t(H,i),$t((function(t){var e=window.getComputedStyle?window.getComputedStyle(t).width:Gt(s(t).width());F.push(t.innerHTML),O.push(e)}),i),$t((function(t,e){t.style.width=O[e]}),e),s(i).css("height",0),L&&($t(H,o),$t((function(t){N.push(t.innerHTML),R.push(Gt(s(t).css("width")))}),o),$t((function(t,e){t.style.width=R[e]}),n),s(o).height(0)),$t((function(t,e){t.innerHTML='<div class="dataTables_sizing">'+F[e]+"</div>",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=O[e]}),i),L&&$t((function(t,e){t.innerHTML='<div class="dataTables_sizing">'+N[e]+"</div>",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=R[e]}),o),Math.round(A.outerWidth())<Math.round(h)?(c=_.scrollHeight>_.offsetHeight||"scroll"==S.css("overflow-y")?h+g:h,I&&(_.scrollHeight>_.offsetHeight||"scroll"==S.css("overflow-y"))&&(P.width=Gt(c-g)),""!==d&&""===f||le(t,1,"Possible column misalignment",6)):c="100%",C.width=Gt(c),b.width=Gt(c),L&&(t.nScrollFoot.style.width=Gt(c)),p||I&&(C.height=Gt(M.offsetHeight+g));var W=A.outerWidth();x[0].style.width=Gt(W),w.width=Gt(W);var $=A.height()>_.clientHeight||"scroll"==S.css("overflow-y"),V="padding"+(E.bScrollbarLeft?"Left":"Right");w[V]=$?g+"px":"0px",L&&(D[0].style.width=Gt(W),k[0].style.width=Gt(W),k[0].style[V]=$?g+"px":"0px"),A.children("colgroup").insertBefore(A.children("thead")),S.trigger("scroll"),!t.bSorted&&!t.bFiltered||t._drawHold||(_.scrollTop=0)}function $t(t,e,n){for(var i,o,r=0,s=0,a=e.length;s<a;){for(i=e[s].firstChild,o=n?n[s].firstChild:null;i;)1===i.nodeType&&(n?t(i,o,r):t(i,r),r++),i=i.nextSibling,o=n?o.nextSibling:null;s++}}var Vt=/<.*?>/g;function qt(t){var e,n,i,o=t.nTable,r=t.aoColumns,a=t.oScroll,l=a.sY,c=a.sX,h=a.sXInner,u=r.length,d=z(t,"bVisible"),f=s("th",t.nTHead),p=o.getAttribute("width"),g=o.parentNode,m=!1,b=t.oBrowser,v=b.bScrollOversize,w=o.style.width;w&&-1!==w.indexOf("%")&&(p=w);var x=Xt(y(r,"sWidthOrig"),g);for(e=0;e<d.length;e++)null!==(n=r[d[e]]).sWidth&&(n.sWidth=x[e],m=!0);if(v||!m&&!c&&!l&&u==H(t)&&u==f.length)for(e=0;e<u;e++){var _=B(t,e);null!==_&&(r[_].sWidth=Gt(f.eq(e).width()))}else{var S=s(o).clone().css("visibility","hidden").removeAttr("id");S.find("tbody tr").remove();var C=s("<tr/>").appendTo(S.find("tbody"));for(S.find("thead, tfoot").remove(),S.append(s(t.nTHead).clone()).append(s(t.nTFoot).clone()),S.find("tfoot th, tfoot td").css("width",""),f=dt(t,S.find("thead")[0]),e=0;e<d.length;e++)n=r[d[e]],f[e].style.width=null!==n.sWidthOrig&&""!==n.sWidthOrig?Gt(n.sWidthOrig):"",n.sWidthOrig&&c&&s(f[e]).append(s("<div/>").css({width:n.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(t.aoData.length)for(e=0;e<d.length;e++)n=r[i=d[e]],s(Yt(t,i)).clone(!1).append(n.sContentPadding).appendTo(C);s("[name]",S).removeAttr("name");var k=s("<div/>").css(c||l?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(S).appendTo(g);c&&h?S.width(h):c?(S.css("width","auto"),S.removeAttr("width"),S.width()<g.clientWidth&&p&&S.width(g.clientWidth)):l?S.width(g.clientWidth):p&&S.width(p);var D=0;for(e=0;e<d.length;e++){var T=s(f[e]),A=T.outerWidth()-T.width(),M=b.bBounding?Math.ceil(f[e].getBoundingClientRect().width):T.outerWidth();D+=M,r[d[e]].sWidth=Gt(M-A)}o.style.width=Gt(D),k.remove()}if(p&&(o.style.width=Gt(p)),(p||c)&&!t._reszEvt){var P=function(){s(window).on("resize.DT-"+t.sInstance,Ut((function(){j(t)})))};v?setTimeout(P,1e3):P(),t._reszEvt=!0}}var Ut=a.util.throttle;function Xt(t,e){for(var n=[],i=[],o=0;o<t.length;o++)t[o]?n.push(s("<div/>").css("width",Gt(t[o])).appendTo(e||document.body)):n.push(null);for(o=0;o<t.length;o++)i.push(n[o]?n[o][0].offsetWidth:null);return s(n).remove(),i}function Yt(t,e){var n=Jt(t,e);if(n<0)return null;var i=t.aoData[n];return i.nTr?i.anCells[e]:s("<td/>").html(U(t,n,e,"display"))[0]}function Jt(t,e){for(var n,i=-1,o=-1,r=0,s=t.aoData.length;r<s;r++)(n=(n=(n=U(t,r,e,"display")+"").replace(Vt,"")).replace(/&nbsp;/g," ")).length>i&&(i=n.length,o=r);return o}function Gt(t){return null===t?"0px":"number"==typeof t?t<0?"0px":t+"px":t.match(/\d$/)?t+"px":t}function Kt(t){var e,n,i,o,r,l,c,h=[],u=t.aoColumns,d=t.aaSortingFixed,f=s.isPlainObject(d),p=[],g=function(t){t.length&&!Array.isArray(t[0])?p.push(t):s.merge(p,t)};for(Array.isArray(d)&&g(d),f&&d.pre&&g(d.pre),g(t.aaSorting),f&&d.post&&g(d.post),e=0;e<p.length;e++)for(n=0,i=(o=u[c=p[e][0]].aDataSort).length;n<i;n++)l=u[r=o[n]].sType||"string",void 0===p[e]._idx&&(p[e]._idx=s.inArray(p[e][1],u[r].asSorting)),h.push({src:c,col:r,dir:p[e][1],index:p[e]._idx,type:l,formatter:a.ext.type.order[l+"-pre"]});return h}function Zt(t){var e,n,i,o,r,s=[],l=a.ext.type.order,c=t.aoData,h=(t.aoColumns,0),u=t.aiDisplayMaster;for(W(t),e=0,n=(r=Kt(t)).length;e<n;e++)(o=r[e]).formatter&&h++,ie(t,o.col);if("ssp"!=me(t)&&0!==r.length){for(e=0,i=u.length;e<i;e++)s[u[e]]=e;h===r.length?u.sort((function(t,e){var n,i,o,a,l,h=r.length,u=c[t]._aSortData,d=c[e]._aSortData;for(o=0;o<h;o++)if(0!==(a=(n=u[(l=r[o]).col])<(i=d[l.col])?-1:n>i?1:0))return"asc"===l.dir?a:-a;return(n=s[t])<(i=s[e])?-1:n>i?1:0})):u.sort((function(t,e){var n,i,o,a,h,u=r.length,d=c[t]._aSortData,f=c[e]._aSortData;for(o=0;o<u;o++)if(n=d[(h=r[o]).col],i=f[h.col],0!==(a=(l[h.type+"-"+h.dir]||l["string-"+h.dir])(n,i)))return a;return(n=s[t])<(i=s[e])?-1:n>i?1:0}))}t.bSorted=!0}function Qt(t){for(var e,n,i=t.aoColumns,o=Kt(t),r=t.oLanguage.oAria,s=0,a=i.length;s<a;s++){var l=i[s],c=l.asSorting,h=l.ariaTitle||l.sTitle.replace(/<.*?>/g,""),u=l.nTh;u.removeAttribute("aria-sort"),l.bSortable?(o.length>0&&o[0].col==s?(u.setAttribute("aria-sort","asc"==o[0].dir?"ascending":"descending"),n=c[o[0].index+1]||c[0]):n=c[0],e=h+("asc"===n?r.sSortAscending:r.sSortDescending)):e=h,u.setAttribute("aria-label",e)}}function te(t,e,n,i){var o,r=t.aoColumns[e],a=t.aaSorting,l=r.asSorting,c=function(t,e){var n=t._idx;return void 0===n&&(n=s.inArray(t[1],l)),n+1<l.length?n+1:e?null:0};if("number"==typeof a[0]&&(a=t.aaSorting=[a]),n&&t.oFeatures.bSortMulti){var h=s.inArray(e,y(a,"0"));-1!==h?(null===(o=c(a[h],!0))&&1===a.length&&(o=0),null===o?a.splice(h,1):(a[h][1]=l[o],a[h]._idx=o)):(a.push([e,l[0],0]),a[a.length-1]._idx=0)}else a.length&&a[0][0]==e?(o=c(a[0]),a.length=1,a[0][1]=l[o],a[0]._idx=o):(a.length=0,a.push([e,l[0]]),a[0]._idx=0);ct(t),"function"==typeof i&&i(t)}function ee(t,e,n,i){var o=t.aoColumns[n];ue(e,{},(function(e){!1!==o.bSortable&&(t.oFeatures.bProcessing?(Ht(t,!0),setTimeout((function(){te(t,n,e.shiftKey,i),"ssp"!==me(t)&&Ht(t,!1)}),0)):te(t,n,e.shiftKey,i))}))}function ne(t){var e,n,i,o=t.aLastSort,r=t.oClasses.sSortColumn,a=Kt(t),l=t.oFeatures;if(l.bSort&&l.bSortClasses){for(e=0,n=o.length;e<n;e++)i=o[e].src,s(y(t.aoData,"anCells",i)).removeClass(r+(e<2?e+1:3));for(e=0,n=a.length;e<n;e++)i=a[e].src,s(y(t.aoData,"anCells",i)).addClass(r+(e<2?e+1:3))}t.aLastSort=a}function ie(t,e){var n,i,o,r=t.aoColumns[e],s=a.ext.order[r.sSortDataType];s&&(n=s.call(t.oInstance,t,e,N(t,e)));for(var l=a.ext.type.order[r.sType+"-pre"],c=0,h=t.aoData.length;c<h;c++)(i=t.aoData[c])._aSortData||(i._aSortData=[]),i._aSortData[e]&&!s||(o=s?n[c]:U(t,c,e,"sort"),i._aSortData[e]=l?l(o):o)}function oe(t){if(!t._bLoadingState){var e={time:+new Date,start:t._iDisplayStart,length:t._iDisplayLength,order:s.extend(!0,[],t.aaSorting),search:At(t.oPreviousSearch),columns:s.map(t.aoColumns,(function(e,n){return{visible:e.bVisible,search:At(t.aoPreSearchCols[n])}}))};t.oSavedState=e,fe(t,"aoStateSaveParams","stateSaveParams",[t,e]),t.oFeatures.bStateSave&&!t.bDestroying&&t.fnStateSaveCallback.call(t.oInstance,t,e)}}function re(t,e,n){if(t.oFeatures.bStateSave){var i=t.fnStateLoadCallback.call(t.oInstance,t,(function(e){se(t,e,n)}));return void 0!==i&&se(t,i,n),!0}n()}function se(t,e,n){var i,o,r=t.aoColumns;t._bLoadingState=!0;var l=t._bInitComplete?new a.Api(t):null;if(!e||!e.time)return t._bLoadingState=!1,void n();var c=fe(t,"aoStateLoadParams","stateLoadParams",[t,e]);if(-1!==s.inArray(!1,c))return t._bLoadingState=!1,void n();var h=t.iStateDuration;if(h>0&&e.time<+new Date-1e3*h)return t._bLoadingState=!1,void n();if(e.columns&&r.length!==e.columns.length)return t._bLoadingState=!1,void n();if(t.oLoadedState=s.extend(!0,{},e),void 0!==e.length&&(l?l.page.len(e.length):t._iDisplayLength=e.length),void 0!==e.start&&(null===l?(t._iDisplayStart=e.start,t.iInitDisplayStart=e.start):Bt(t,e.start/t._iDisplayLength)),void 0!==e.order&&(t.aaSorting=[],s.each(e.order,(function(e,n){t.aaSorting.push(n[0]>=r.length?[0,n[1]]:n)}))),void 0!==e.search&&s.extend(t.oPreviousSearch,Mt(e.search)),e.columns){for(i=0,o=e.columns.length;i<o;i++){var u=e.columns[i];void 0!==u.visible&&(l?l.column(i).visible(u.visible,!1):r[i].bVisible=u.visible),void 0!==u.search&&s.extend(t.aoPreSearchCols[i],Mt(u.search))}l&&l.columns.adjust()}t._bLoadingState=!1,fe(t,"aoStateLoaded","stateLoaded",[t,e]),n()}function ae(t){var e=a.settings,n=s.inArray(t,y(e,"nTable"));return-1!==n?e[n]:null}function le(t,e,n,i){if(n="DataTables warning: "+(t?"table id="+t.sTableId+" - ":"")+n,i&&(n+=". For more information about this error, please see https://datatables.net/tn/"+i),e)window.console&&console.log&&console.log(n);else{var o=a.ext,r=o.sErrMode||o.errMode;if(t&&fe(t,null,"error",[t,i,n]),"alert"==r)alert(n);else{if("throw"==r)throw new Error(n);"function"==typeof r&&r(t,i,n)}}}function ce(t,e,n,i){Array.isArray(n)?s.each(n,(function(n,i){Array.isArray(i)?ce(t,e,i[0],i[1]):ce(t,e,i)})):(void 0===i&&(i=n),void 0!==e[n]&&(t[i]=e[n]))}function he(t,e,n){var i;for(var o in e)e.hasOwnProperty(o)&&(i=e[o],s.isPlainObject(i)?(s.isPlainObject(t[o])||(t[o]={}),s.extend(!0,t[o],i)):n&&"data"!==o&&"aaData"!==o&&Array.isArray(i)?t[o]=i.slice():t[o]=i);return t}function ue(t,e,n){s(t).on("click.DT",e,(function(e){s(t).trigger("blur"),n(e)})).on("keypress.DT",e,(function(t){13===t.which&&(t.preventDefault(),n(t))})).on("selectstart.DT",(function(){return!1}))}function de(t,e,n,i){n&&t[e].push({fn:n,sName:i})}function fe(t,e,n,i){var o=[];if(e&&(o=s.map(t[e].slice().reverse(),(function(e,n){return e.fn.apply(t.oInstance,i)}))),null!==n){var r=s.Event(n+".dt"),a=s(t.nTable);a.trigger(r,i),0===a.parents("body").length&&s("body").trigger(r,i),o.push(r.result)}return o}function pe(t){var e=t._iDisplayStart,n=t.fnDisplayEnd(),i=t._iDisplayLength;e>=n&&(e=n-i),e-=e%i,(-1===i||e<0)&&(e=0),t._iDisplayStart=e}function ge(t,e){var n=t.renderer,i=a.ext.renderer[e];return s.isPlainObject(n)&&n[e]?i[n[e]]||i._:"string"==typeof n&&i[n]||i._}function me(t){return t.oFeatures.bServerSide?"ssp":t.ajax||t.sAjaxSource?"ajax":"dom"}var be=[],ve=Array.prototype;e=function(t,n){if(!(this instanceof e))return new e(t,n);var i=[],o=function(t){var e=function(t){var e,n,i=a.settings,o=s.map(i,(function(t,e){return t.nTable}));return t?t.nTable&&t.oApi?[t]:t.nodeName&&"table"===t.nodeName.toLowerCase()?-1!==(e=s.inArray(t,o))?[i[e]]:null:t&&"function"==typeof t.settings?t.settings().toArray():("string"==typeof t?n=s(t):t instanceof s&&(n=t),n?n.map((function(t){return-1!==(e=s.inArray(this,o))?i[e]:null})).toArray():void 0):[]}(t);e&&i.push.apply(i,e)};if(Array.isArray(t))for(var r=0,l=t.length;r<l;r++)o(t[r]);else o(t);this.context=C(i),n&&s.merge(this,n),this.selector={rows:null,cols:null,opts:null},e.extend(this,this,be)},a.Api=e,s.extend(e.prototype,{any:function(){return 0!==this.count()},concat:ve.concat,context:[],count:function(){return this.flatten().length},each:function(t){for(var e=0,n=this.length;e<n;e++)t.call(this,this[e],e,this);return this},eq:function(t){var n=this.context;return n.length>t?new e(n[t],this[t]):null},filter:function(t){var n=[];if(ve.filter)n=ve.filter.call(this,t,this);else for(var i=0,o=this.length;i<o;i++)t.call(this,this[i],i,this)&&n.push(this[i]);return new e(this.context,n)},flatten:function(){var t=[];return new e(this.context,t.concat.apply(t,this.toArray()))},join:ve.join,indexOf:ve.indexOf||function(t,e){for(var n=e||0,i=this.length;n<i;n++)if(this[n]===t)return n;return-1},iterator:function(t,n,i,o){var r,s,a,l,c,h,u,d,f=[],p=this.context,g=this.selector;for("string"==typeof t&&(o=i,i=n,n=t,t=!1),s=0,a=p.length;s<a;s++){var m=new e(p[s]);if("table"===n)void 0!==(r=i.call(m,p[s],s))&&f.push(r);else if("columns"===n||"rows"===n)void 0!==(r=i.call(m,p[s],this[s],s))&&f.push(r);else if("column"===n||"column-rows"===n||"row"===n||"cell"===n)for(u=this[s],"column-rows"===n&&(h=Ce(p[s],g.opts)),l=0,c=u.length;l<c;l++)d=u[l],void 0!==(r="cell"===n?i.call(m,p[s],d.row,d.column,s,l):i.call(m,p[s],d,s,l,h))&&f.push(r)}if(f.length||o){var b=new e(p,t?f.concat.apply([],f):f),v=b.selector;return v.rows=g.rows,v.cols=g.cols,v.opts=g.opts,b}return this},lastIndexOf:ve.lastIndexOf||function(t,e){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(t){var n=[];if(ve.map)n=ve.map.call(this,t,this);else for(var i=0,o=this.length;i<o;i++)n.push(t.call(this,this[i],i));return new e(this.context,n)},pluck:function(t){var e=a.util.get(t);return this.map((function(t){return e(t)}))},pop:ve.pop,push:ve.push,reduce:ve.reduce||function(t,e){return O(this,t,e,0,this.length,1)},reduceRight:ve.reduceRight||function(t,e){return O(this,t,e,this.length-1,-1,-1)},reverse:ve.reverse,selector:null,shift:ve.shift,slice:function(){return new e(this.context,this)},sort:ve.sort,splice:ve.splice,toArray:function(){return ve.slice.call(this)},to$:function(){return s(this)},toJQuery:function(){return s(this)},unique:function(){return new e(this.context,C(this))},unshift:ve.unshift}),e.extend=function(t,n,i){if(i.length&&n&&(n instanceof e||n.__dt_wrapper)){var o,r,s,a=function(t,n,i){return function(){var o=n.apply(t,arguments);return e.extend(o,o,i.methodExt),o}};for(o=0,r=i.length;o<r;o++)n[(s=i[o]).name]="function"===s.type?a(t,s.val,s):"object"===s.type?{}:s.val,n[s.name].__dt_wrapper=!0,e.extend(t,n[s.name],s.propExt)}},e.register=i=function(t,n){if(Array.isArray(t))for(var i=0,o=t.length;i<o;i++)e.register(t[i],n);else{var r,a,l,c,h=t.split("."),u=be,d=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n].name===e)return t[n];return null};for(r=0,a=h.length;r<a;r++){var f=d(u,l=(c=-1!==h[r].indexOf("()"))?h[r].replace("()",""):h[r]);f||(f={name:l,val:{},methodExt:[],propExt:[],type:"object"},u.push(f)),r===a-1?(f.val=n,f.type="function"==typeof n?"function":s.isPlainObject(n)?"object":"other"):u=c?f.methodExt:f.propExt}}},e.registerPlural=o=function(t,n,i){e.register(t,i),e.register(n,(function(){var t=i.apply(this,arguments);return t===this?this:t instanceof e?t.length?Array.isArray(t[0])?new e(t.context,t[0]):t[0]:void 0:t}))};var ye=function(t,e){if(Array.isArray(t))return s.map(t,(function(t){return ye(t,e)}));if("number"==typeof t)return[e[t]];var n=s.map(e,(function(t,e){return t.nTable}));return s(n).filter(t).map((function(t){var i=s.inArray(this,n);return e[i]})).toArray()};i("tables()",(function(t){return null!=t?new e(ye(t,this.context)):this})),i("table()",(function(t){var n=this.tables(t),i=n.context;return i.length?new e(i[0]):n})),o("tables().nodes()","table().node()",(function(){return this.iterator("table",(function(t){return t.nTable}),1)})),o("tables().body()","table().body()",(function(){return this.iterator("table",(function(t){return t.nTBody}),1)})),o("tables().header()","table().header()",(function(){return this.iterator("table",(function(t){return t.nTHead}),1)})),o("tables().footer()","table().footer()",(function(){return this.iterator("table",(function(t){return t.nTFoot}),1)})),o("tables().containers()","table().container()",(function(){return this.iterator("table",(function(t){return t.nTableWrapper}),1)})),i("draw()",(function(t){return this.iterator("table",(function(e){"page"===t?lt(e):("string"==typeof t&&(t="full-hold"!==t),ct(e,!1===t))}))})),i("page()",(function(t){return void 0===t?this.page.info().page:this.iterator("table",(function(e){Bt(e,t)}))})),i("page.info()",(function(t){if(0!==this.context.length){var e=this.context[0],n=e._iDisplayStart,i=e.oFeatures.bPaginate?e._iDisplayLength:-1,o=e.fnRecordsDisplay(),r=-1===i;return{page:r?0:Math.floor(n/i),pages:r?1:Math.ceil(o/i),start:n,end:e.fnDisplayEnd(),length:i,recordsTotal:e.fnRecordsTotal(),recordsDisplay:o,serverSide:"ssp"===me(e)}}})),i("page.len()",(function(t){return void 0===t?0!==this.context.length?this.context[0]._iDisplayLength:void 0:this.iterator("table",(function(e){Rt(e,t)}))}));var we=function(t,n,i){if(i){var o=new e(t);o.one("draw",(function(){i(o.ajax.json())}))}if("ssp"==me(t))ct(t,n);else{Ht(t,!0);var r=t.jqXHR;r&&4!==r.readyState&&r.abort(),ft(t,[],(function(e){tt(t);for(var i=bt(t,e),o=0,r=i.length;o<r;o++)V(t,i[o]);ct(t,n),Ht(t,!1)}))}};i("ajax.json()",(function(){var t=this.context;if(t.length>0)return t[0].json})),i("ajax.params()",(function(){var t=this.context;if(t.length>0)return t[0].oAjaxData})),i("ajax.reload()",(function(t,e){return this.iterator("table",(function(n){we(n,!1===e,t)}))})),i("ajax.url()",(function(t){var e=this.context;if(void 0===t){if(0===e.length)return;return(e=e[0]).ajax?s.isPlainObject(e.ajax)?e.ajax.url:e.ajax:e.sAjaxSource}return this.iterator("table",(function(e){s.isPlainObject(e.ajax)?e.ajax.url=t:e.ajax=t}))})),i("ajax.url().load()",(function(t,e){return this.iterator("table",(function(n){we(n,!1===e,t)}))}));var xe=function(e,n,i,o,r){var s,a,l,c,h,u,d=[],f=typeof n;for(n&&"string"!==f&&"function"!==f&&void 0!==n.length||(n=[n]),l=0,c=n.length;l<c;l++)for(h=0,u=(a=n[l]&&n[l].split&&!n[l].match(/[\[\(:]/)?n[l].split(","):[n[l]]).length;h<u;h++)(s=i("string"==typeof a[h]?a[h].trim():a[h]))&&s.length&&(d=d.concat(s));var p=t.selector[e];if(p.length)for(l=0,c=p.length;l<c;l++)d=p[l](o,r,d);return C(d)},_e=function(t){return t||(t={}),t.filter&&void 0===t.search&&(t.search=t.filter),s.extend({search:"none",order:"current",page:"all"},t)},Se=function(t){for(var e=0,n=t.length;e<n;e++)if(t[e].length>0)return t[0]=t[e],t[0].length=1,t.length=1,t.context=[t.context[e]],t;return t.length=0,t},Ce=function(t,e){var n,i=[],o=t.aiDisplay,r=t.aiDisplayMaster,a=e.search,l=e.order,c=e.page;if("ssp"==me(t))return"removed"===a?[]:x(0,r.length);if("current"==c)for(u=t._iDisplayStart,d=t.fnDisplayEnd();u<d;u++)i.push(o[u]);else if("current"==l||"applied"==l){if("none"==a)i=r.slice();else if("applied"==a)i=o.slice();else if("removed"==a){for(var h={},u=0,d=o.length;u<d;u++)h[o[u]]=null;i=s.map(r,(function(t){return h.hasOwnProperty(t)?null:t}))}}else if("index"==l||"original"==l)for(u=0,d=t.aoData.length;u<d;u++)("none"==a||-1===(n=s.inArray(u,o))&&"removed"==a||n>=0&&"applied"==a)&&i.push(u);return i};i("rows()",(function(t,e){void 0===t?t="":s.isPlainObject(t)&&(e=t,t=""),e=_e(e);var n=this.iterator("table",(function(n){return function(t,e,n){var i;return xe("row",e,(function(e){var o=g(e),r=t.aoData;if(null!==o&&!n)return[o];if(i||(i=Ce(t,n)),null!==o&&-1!==s.inArray(o,i))return[o];if(null==e||""===e)return i;if("function"==typeof e)return s.map(i,(function(t){var n=r[t];return e(t,n._aData,n.nTr)?t:null}));if(e.nodeName){var a=e._DT_RowIndex,l=e._DT_CellIndex;if(void 0!==a)return r[a]&&r[a].nTr===e?[a]:[];if(l)return r[l.row]&&r[l.row].nTr===e.parentNode?[l.row]:[];var c=s(e).closest("*[data-dt-row]");return c.length?[c.data("dt-row")]:[]}if("string"==typeof e&&"#"===e.charAt(0)){var h=t.aIds[e.replace(/^#/,"")];if(void 0!==h)return[h.idx]}var u=_(w(t.aoData,i,"nTr"));return s(u).filter(e).map((function(){return this._DT_RowIndex})).toArray()}),t,n)}(n,t,e)}),1);return n.selector.rows=t,n.selector.opts=e,n})),i("rows().nodes()",(function(){return this.iterator("row",(function(t,e){return t.aoData[e].nTr||void 0}),1)})),i("rows().data()",(function(){return this.iterator(!0,"rows",(function(t,e){return w(t.aoData,e,"_aData")}),1)})),o("rows().cache()","row().cache()",(function(t){return this.iterator("row",(function(e,n){var i=e.aoData[n];return"search"===t?i._aFilterData:i._aSortData}),1)})),o("rows().invalidate()","row().invalidate()",(function(t){return this.iterator("row",(function(e,n){nt(e,n,t)}))})),o("rows().indexes()","row().index()",(function(){return this.iterator("row",(function(t,e){return e}),1)})),o("rows().ids()","row().id()",(function(t){for(var n=[],i=this.context,o=0,r=i.length;o<r;o++)for(var s=0,a=this[o].length;s<a;s++){var l=i[o].rowIdFn(i[o].aoData[this[o][s]]._aData);n.push((!0===t?"#":"")+l)}return new e(i,n)})),o("rows().remove()","row().remove()",(function(){var t=this;return this.iterator("row",(function(e,n,i){var o,r,s,a,l,c,h=e.aoData,u=h[n];for(h.splice(n,1),o=0,r=h.length;o<r;o++)if(c=(l=h[o]).anCells,null!==l.nTr&&(l.nTr._DT_RowIndex=o),null!==c)for(s=0,a=c.length;s<a;s++)c[s]._DT_CellIndex.row=o;et(e.aiDisplayMaster,n),et(e.aiDisplay,n),et(t[i],n,!1),e._iRecordsDisplay>0&&e._iRecordsDisplay--,pe(e);var d=e.rowIdFn(u._aData);void 0!==d&&delete e.aIds[d]})),this.iterator("table",(function(t){for(var e=0,n=t.aoData.length;e<n;e++)t.aoData[e].idx=e})),this})),i("rows.add()",(function(t){var e=this.iterator("table",(function(e){var n,i,o,r=[];for(i=0,o=t.length;i<o;i++)(n=t[i]).nodeName&&"TR"===n.nodeName.toUpperCase()?r.push(q(e,n)[0]):r.push(V(e,n));return r}),1),n=this.rows(-1);return n.pop(),s.merge(n,e),n})),i("row()",(function(t,e){return Se(this.rows(t,e))})),i("row().data()",(function(t){var e=this.context;if(void 0===t)return e.length&&this.length?e[0].aoData[this[0]]._aData:void 0;var n=e[0].aoData[this[0]];return n._aData=t,Array.isArray(t)&&n.nTr&&n.nTr.id&&Z(e[0].rowId)(t,n.nTr.id),nt(e[0],this[0],"data"),this})),i("row().node()",(function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]].nTr||null})),i("row.add()",(function(t){t instanceof s&&t.length&&(t=t[0]);var e=this.iterator("table",(function(e){return t.nodeName&&"TR"===t.nodeName.toUpperCase()?q(e,t)[0]:V(e,t)}));return this.row(e[0])})),s(document).on("plugin-init.dt",(function(t,n){var i=new e(n),o="on-plugin-init",r="stateSaveParams."+o,a="destroy. "+o;i.on(r,(function(t,e,n){for(var i=e.rowIdFn,o=e.aoData,r=[],s=0;s<o.length;s++)o[s]._detailsShow&&r.push("#"+i(o[s]._aData));n.childRows=r})),i.on(a,(function(){i.off(r+" "+a)}));var l=i.state.loaded();l&&l.childRows&&i.rows(s.map(l.childRows,(function(t){return t.replace(/:/g,"\\:")}))).every((function(){fe(n,null,"requestChild",[this])}))}));var ke=a.util.throttle((function(t){oe(t[0])}),500),De=function(t,e){var n=t.context;if(n.length){var i=n[0].aoData[void 0!==e?e:t[0]];i&&i._details&&(i._details.remove(),i._detailsShow=void 0,i._details=void 0,s(i.nTr).removeClass("dt-hasChild"),ke(n))}},Te=function(t,e){var n=t.context;if(n.length&&t.length){var i=n[0].aoData[t[0]];i._details&&(i._detailsShow=e,e?(i._details.insertAfter(i.nTr),s(i.nTr).addClass("dt-hasChild")):(i._details.detach(),s(i.nTr).removeClass("dt-hasChild")),fe(n[0],null,"childRow",[e,t.row(t[0])]),Ae(n[0]),ke(n))}},Ae=function(t){var n=new e(t),i=".dt.DT_details",o="draw"+i,r="column-sizing"+i,a="destroy"+i,l=t.aoData;n.off(o+" "+r+" "+a),y(l,"_details").length>0&&(n.on(o,(function(e,i){t===i&&n.rows({page:"current"}).eq(0).each((function(t){var e=l[t];e._detailsShow&&e._details.insertAfter(e.nTr)}))})),n.on(r,(function(e,n,i,o){if(t===n)for(var r,a=H(n),c=0,h=l.length;c<h;c++)(r=l[c])._details&&r._details.each((function(){var t=s(this).children("td");1==t.length&&t.attr("colspan",a)}))})),n.on(a,(function(e,i){if(t===i)for(var o=0,r=l.length;o<r;o++)l[o]._details&&De(n,o)})))},Me="row().child",Pe=Me+"()";i(Pe,(function(t,e){var n=this.context;return void 0===t?n.length&&this.length?n[0].aoData[this[0]]._details:void 0:(!0===t?this.child.show():!1===t?De(this):n.length&&this.length&&function(t,e,n,i){var o=[],r=function(e,n){if(Array.isArray(e)||e instanceof s)for(var i=0,a=e.length;i<a;i++)r(e[i],n);else if(e.nodeName&&"tr"===e.nodeName.toLowerCase())o.push(e);else{var l=s("<tr><td></td></tr>").addClass(n);s("td",l).addClass(n).html(e)[0].colSpan=H(t),o.push(l[0])}};r(n,i),e._details&&e._details.detach(),e._details=s(o),e._detailsShow&&e._details.insertAfter(e.nTr)}(n[0],n[0].aoData[this[0]],t,e),this)})),i([Me+".show()",Pe+".show()"],(function(t){return Te(this,!0),this})),i([Me+".hide()",Pe+".hide()"],(function(){return Te(this,!1),this})),i([Me+".remove()",Pe+".remove()"],(function(){return De(this),this})),i(Me+".isShown()",(function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]]._detailsShow||!1}));var Le=/^([^:]+):(name|visIdx|visible)$/,Ee=function(t,e,n,i,o){for(var r=[],s=0,a=o.length;s<a;s++)r.push(U(t,o[s],e));return r};i("columns()",(function(t,e){void 0===t?t="":s.isPlainObject(t)&&(e=t,t=""),e=_e(e);var n=this.iterator("table",(function(n){return function(t,e,n){var i=t.aoColumns,o=y(i,"sName"),r=y(i,"nTh");return xe("column",e,(function(e){var a=g(e);if(""===e)return x(i.length);if(null!==a)return[a>=0?a:i.length+a];if("function"==typeof e){var l=Ce(t,n);return s.map(i,(function(n,i){return e(i,Ee(t,i,0,0,l),r[i])?i:null}))}var c="string"==typeof e?e.match(Le):"";if(c)switch(c[2]){case"visIdx":case"visible":var h=parseInt(c[1],10);if(h<0){var u=s.map(i,(function(t,e){return t.bVisible?e:null}));return[u[u.length+h]]}return[B(t,h)];case"name":return s.map(o,(function(t,e){return t===c[1]?e:null}));default:return[]}if(e.nodeName&&e._DT_CellIndex)return[e._DT_CellIndex.column];var d=s(r).filter(e).map((function(){return s.inArray(this,r)})).toArray();if(d.length||!e.nodeName)return d;var f=s(e).closest("*[data-dt-column]");return f.length?[f.data("dt-column")]:[]}),t,n)}(n,t,e)}),1);return n.selector.cols=t,n.selector.opts=e,n})),o("columns().header()","column().header()",(function(t,e){return this.iterator("column",(function(t,e){return t.aoColumns[e].nTh}),1)})),o("columns().footer()","column().footer()",(function(t,e){return this.iterator("column",(function(t,e){return t.aoColumns[e].nTf}),1)})),o("columns().data()","column().data()",(function(){return this.iterator("column-rows",Ee,1)})),o("columns().dataSrc()","column().dataSrc()",(function(){return this.iterator("column",(function(t,e){return t.aoColumns[e].mData}),1)})),o("columns().cache()","column().cache()",(function(t){return this.iterator("column-rows",(function(e,n,i,o,r){return w(e.aoData,r,"search"===t?"_aFilterData":"_aSortData",n)}),1)})),o("columns().nodes()","column().nodes()",(function(){return this.iterator("column-rows",(function(t,e,n,i,o){return w(t.aoData,o,"anCells",e)}),1)})),o("columns().visible()","column().visible()",(function(t,e){var n=this,i=this.iterator("column",(function(e,n){if(void 0===t)return e.aoColumns[n].bVisible;!function(t,e,n){var i,o,r,a,l=t.aoColumns,c=l[e],h=t.aoData;if(void 0===n)return c.bVisible;if(c.bVisible!==n){if(n){var u=s.inArray(!0,y(l,"bVisible"),e+1);for(o=0,r=h.length;o<r;o++)a=h[o].nTr,i=h[o].anCells,a&&a.insertBefore(i[e],i[u]||null)}else s(y(t.aoData,"anCells",e)).detach();c.bVisible=n}}(e,n,t)}));return void 0!==t&&this.iterator("table",(function(i){at(i,i.aoHeader),at(i,i.aoFooter),i.aiDisplay.length||s(i.nTBody).find("td[colspan]").attr("colspan",H(i)),oe(i),n.iterator("column",(function(n,i){fe(n,null,"column-visibility",[n,i,t,e])})),(void 0===e||e)&&n.columns.adjust()})),i})),o("columns().indexes()","column().index()",(function(t){return this.iterator("column",(function(e,n){return"visible"===t?N(e,n):n}),1)})),i("columns.adjust()",(function(){return this.iterator("table",(function(t){j(t)}),1)})),i("column.index()",(function(t,e){if(0!==this.context.length){var n=this.context[0];if("fromVisible"===t||"toData"===t)return B(n,e);if("fromData"===t||"toVisible"===t)return N(n,e)}})),i("column()",(function(t,e){return Se(this.columns(t,e))}));i("cells()",(function(t,e,n){if(s.isPlainObject(t)&&(void 0===t.row?(n=t,t=null):(n=e,e=null)),s.isPlainObject(e)&&(n=e,e=null),null==e)return this.iterator("table",(function(e){return function(t,e,n){var i,o,r,a,l,c,h,u=t.aoData,d=Ce(t,n),f=_(w(u,d,"anCells")),p=s(k([],f)),g=t.aoColumns.length;return xe("cell",e,(function(e){var n="function"==typeof e;if(null==e||n){for(o=[],r=0,a=d.length;r<a;r++)for(i=d[r],l=0;l<g;l++)c={row:i,column:l},n?(h=u[i],e(c,U(t,i,l),h.anCells?h.anCells[l]:null)&&o.push(c)):o.push(c);return o}if(s.isPlainObject(e))return void 0!==e.column&&void 0!==e.row&&-1!==s.inArray(e.row,d)?[e]:[];var f=p.filter(e).map((function(t,e){return{row:e._DT_CellIndex.row,column:e._DT_CellIndex.column}})).toArray();return f.length||!e.nodeName?f:(h=s(e).closest("*[data-dt-row]")).length?[{row:h.data("dt-row"),column:h.data("dt-column")}]:[]}),t,n)}(e,t,_e(n))}));var i,o,r,a,l=n?{page:n.page,order:n.order,search:n.search}:{},c=this.columns(e,l),h=this.rows(t,l),u=this.iterator("table",(function(t,e){var n=[];for(i=0,o=h[e].length;i<o;i++)for(r=0,a=c[e].length;r<a;r++)n.push({row:h[e][i],column:c[e][r]});return n}),1),d=n&&n.selected?this.cells(u,n):u;return s.extend(d.selector,{cols:e,rows:t,opts:n}),d})),o("cells().nodes()","cell().node()",(function(){return this.iterator("cell",(function(t,e,n){var i=t.aoData[e];return i&&i.anCells?i.anCells[n]:void 0}),1)})),i("cells().data()",(function(){return this.iterator("cell",(function(t,e,n){return U(t,e,n)}),1)})),o("cells().cache()","cell().cache()",(function(t){return t="search"===t?"_aFilterData":"_aSortData",this.iterator("cell",(function(e,n,i){return e.aoData[n][t][i]}),1)})),o("cells().render()","cell().render()",(function(t){return this.iterator("cell",(function(e,n,i){return U(e,n,i,t)}),1)})),o("cells().indexes()","cell().index()",(function(){return this.iterator("cell",(function(t,e,n){return{row:e,column:n,columnVisible:N(t,n)}}),1)})),o("cells().invalidate()","cell().invalidate()",(function(t){return this.iterator("cell",(function(e,n,i){nt(e,n,t,i)}))})),i("cell()",(function(t,e,n){return Se(this.cells(t,e,n))})),i("cell().data()",(function(t){var e=this.context,n=this[0];return void 0===t?e.length&&n.length?U(e[0],n[0].row,n[0].column):void 0:(X(e[0],n[0].row,n[0].column,t),nt(e[0],n[0].row,"data",n[0].column),this)})),i("order()",(function(t,e){var n=this.context;return void 0===t?0!==n.length?n[0].aaSorting:void 0:("number"==typeof t?t=[[t,e]]:t.length&&!Array.isArray(t[0])&&(t=Array.prototype.slice.call(arguments)),this.iterator("table",(function(e){e.aaSorting=t.slice()})))})),i("order.listener()",(function(t,e,n){return this.iterator("table",(function(i){ee(i,t,e,n)}))})),i("order.fixed()",(function(t){if(!t){var e=this.context,n=e.length?e[0].aaSortingFixed:void 0;return Array.isArray(n)?{pre:n}:n}return this.iterator("table",(function(e){e.aaSortingFixed=s.extend(!0,{},t)}))})),i(["columns().order()","column().order()"],(function(t){var e=this;return this.iterator("table",(function(n,i){var o=[];s.each(e[i],(function(e,n){o.push([n,t])})),n.aaSorting=o}))})),i("search()",(function(t,e,n,i){var o=this.context;return void 0===t?0!==o.length?o[0].oPreviousSearch.sSearch:void 0:this.iterator("table",(function(o){o.oFeatures.bFilter&&yt(o,s.extend({},o.oPreviousSearch,{sSearch:t+"",bRegex:null!==e&&e,bSmart:null===n||n,bCaseInsensitive:null===i||i}),1)}))})),o("columns().search()","column().search()",(function(t,e,n,i){return this.iterator("column",(function(o,r){var a=o.aoPreSearchCols;if(void 0===t)return a[r].sSearch;o.oFeatures.bFilter&&(s.extend(a[r],{sSearch:t+"",bRegex:null!==e&&e,bSmart:null===n||n,bCaseInsensitive:null===i||i}),yt(o,o.oPreviousSearch,1))}))})),i("state()",(function(){return this.context.length?this.context[0].oSavedState:null})),i("state.clear()",(function(){return this.iterator("table",(function(t){t.fnStateSaveCallback.call(t.oInstance,t,{})}))})),i("state.loaded()",(function(){return this.context.length?this.context[0].oLoadedState:null})),i("state.save()",(function(){return this.iterator("table",(function(t){oe(t)}))})),a.use=function(t,e){"lib"===e||t.fn?s=t:"win"==e||t.document?(window=t,document=t.document):"datetime"!==e&&"DateTime"!==t.type||(a.DateTime=t)},a.factory=function(t,e){var n=!1;return t&&t.document&&(window=t,document=t.document),e&&e.fn&&e.fn.jquery&&(s=e,n=!0),n},a.versionCheck=a.fnVersionCheck=function(t){for(var e,n,i=a.version.split("."),o=t.split("."),r=0,s=o.length;r<s;r++)if((e=parseInt(i[r],10)||0)!==(n=parseInt(o[r],10)||0))return e>n;return!0},a.isDataTable=a.fnIsDataTable=function(t){var e=s(t).get(0),n=!1;return t instanceof a.Api||(s.each(a.settings,(function(t,i){var o=i.nScrollHead?s("table",i.nScrollHead)[0]:null,r=i.nScrollFoot?s("table",i.nScrollFoot)[0]:null;i.nTable!==e&&o!==e&&r!==e||(n=!0)})),n)},a.tables=a.fnTables=function(t){var n=!1;s.isPlainObject(t)&&(n=t.api,t=t.visible);var i=s.map(a.settings,(function(e){if(!t||t&&s(e.nTable).is(":visible"))return e.nTable}));return n?new e(i):i},a.camelToHungarian=A,i("$()",(function(t,e){var n=this.rows(e).nodes(),i=s(n);return s([].concat(i.filter(t).toArray(),i.find(t).toArray()))})),s.each(["on","one","off"],(function(t,e){i(e+"()",(function(){var t=Array.prototype.slice.call(arguments);t[0]=s.map(t[0].split(/\s/),(function(t){return t.match(/\.dt\b/)?t:t+".dt"})).join(" ");var n=s(this.tables().nodes());return n[e].apply(n,t),this}))})),i("clear()",(function(){return this.iterator("table",(function(t){tt(t)}))})),i("settings()",(function(){return new e(this.context,this.context)})),i("init()",(function(){var t=this.context;return t.length?t[0].oInit:null})),i("data()",(function(){return this.iterator("table",(function(t){return y(t.aoData,"_aData")})).flatten()})),i("destroy()",(function(t){return t=t||!1,this.iterator("table",(function(n){var i,o=n.oClasses,r=n.nTable,l=n.nTBody,c=n.nTHead,h=n.nTFoot,u=s(r),d=s(l),f=s(n.nTableWrapper),p=s.map(n.aoData,(function(t){return t.nTr}));n.bDestroying=!0,fe(n,"aoDestroyCallback","destroy",[n]),t||new e(n).columns().visible(!0),f.off(".DT").find(":not(tbody *)").off(".DT"),s(window).off(".DT-"+n.sInstance),r!=c.parentNode&&(u.children("thead").detach(),u.append(c)),h&&r!=h.parentNode&&(u.children("tfoot").detach(),u.append(h)),n.aaSorting=[],n.aaSortingFixed=[],ne(n),s(p).removeClass(n.asStripeClasses.join(" ")),s("th, td",c).removeClass(o.sSortable+" "+o.sSortableAsc+" "+o.sSortableDesc+" "+o.sSortableNone),d.children().detach(),d.append(p);var g=n.nTableWrapper.parentNode,m=t?"remove":"detach";u[m](),f[m](),!t&&g&&(g.insertBefore(r,n.nTableReinsertBefore),u.css("width",n.sDestroyWidth).removeClass(o.sTable),(i=n.asDestroyStripes.length)&&d.children().each((function(t){s(this).addClass(n.asDestroyStripes[t%i])})));var b=s.inArray(n,a.settings);-1!==b&&a.settings.splice(b,1)}))})),s.each(["column","row","cell"],(function(t,e){i(e+"s().every()",(function(t){var n=this.selector.opts,i=this;return this.iterator(e,(function(o,r,s,a,l){t.call(i[e](r,"cell"===e?s:n,"cell"===e?n:void 0),r,s,a,l)}))}))})),i("i18n()",(function(t,e,n){var i=this.context[0],o=K(t)(i.oLanguage);return void 0===o&&(o=e),void 0!==n&&s.isPlainObject(o)&&(o=void 0!==o[n]?o[n]:o._),"string"==typeof o?o.replace("%d",n):o})),a.version="1.13.11",a.settings=[],a.models={},a.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0,return:!1},a.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},a.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null},a.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(t){try{return JSON.parse((-1===t.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+t.sInstance+"_"+location.pathname))}catch(t){return{}}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(t,e){try{(-1===t.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+t.sInstance+"_"+location.pathname,JSON.stringify(e))}catch(t){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:s.extend({},a.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},T(a.defaults),a.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},T(a.defaults.column),a.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,jqXHR:null,json:void 0,oAjaxData:void 0,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==me(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==me(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var t=this._iDisplayLength,e=this._iDisplayStart,n=e+t,i=this.aiDisplay.length,o=this.oFeatures,r=o.bPaginate;return o.bServerSide?!1===r||-1===t?e+i:Math.min(e+t,this._iRecordsDisplay):!r||n>i||-1===t?i:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},a.ext=t={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:a.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:a.version},s.extend(t,{afnFiltering:t.search,aTypes:t.type.detect,ofnSearch:t.type.search,oSort:t.type.order,afnSortData:t.order,aoFeatures:t.feature,oApi:t.internal,oStdClasses:t.classes,oPagination:t.pager}),s.extend(a.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_desc_disabled",sSortableDesc:"sorting_asc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var Ie=a.ext.pager;function Oe(t,e){var n=[],i=Ie.numbers_length,o=Math.floor(i/2);return e<=i?n=x(0,e):t<=o?((n=x(0,i-2)).push("ellipsis"),n.push(e-1)):t>=e-1-o?((n=x(e-(i-2),e)).splice(0,0,"ellipsis"),n.splice(0,0,0)):((n=x(t-o+2,t+o-1)).push("ellipsis"),n.push(e-1),n.splice(0,0,"ellipsis"),n.splice(0,0,0)),n.DT_el="span",n}s.extend(Ie,{simple:function(t,e){return["previous","next"]},full:function(t,e){return["first","previous","next","last"]},numbers:function(t,e){return[Oe(t,e)]},simple_numbers:function(t,e){return["previous",Oe(t,e),"next"]},full_numbers:function(t,e){return["first","previous",Oe(t,e),"next","last"]},first_last_numbers:function(t,e){return["first",Oe(t,e),"last"]},_numbers:Oe,numbers_length:7}),s.extend(!0,a.ext.renderer,{pageButton:{_:function(t,e,n,i,o,r){var a,l,c,h=t.oClasses,u=t.oLanguage.oPaginate,d=t.oLanguage.oAria.paginate||{},f=function(e,i){var c,p,g,m=h.sPageButtonDisabled,b=function(e){Bt(t,e.data.action,!0)};for(c=0,p=i.length;c<p;c++)if(g=i[c],Array.isArray(g)){var v=s("<"+(g.DT_el||"div")+"/>").appendTo(e);f(v,g)}else{var y=!1;switch(a=null,l=g,g){case"ellipsis":e.append('<span class="ellipsis">&#x2026;</span>');break;case"first":a=u.sFirst,0===o&&(y=!0);break;case"previous":a=u.sPrevious,0===o&&(y=!0);break;case"next":a=u.sNext,0!==r&&o!==r-1||(y=!0);break;case"last":a=u.sLast,0!==r&&o!==r-1||(y=!0);break;default:a=t.fnFormatNumber(g+1),l=o===g?h.sPageButtonActive:""}if(null!==a){var w=t.oInit.pagingTag||"a";y&&(l+=" "+m),ue(s("<"+w+">",{class:h.sPageButton+" "+l,"aria-controls":t.sTableId,"aria-disabled":y?"true":null,"aria-label":d[g],role:"link","aria-current":l===h.sPageButtonActive?"page":null,"data-dt-idx":g,tabindex:y?-1:t.iTabIndex,id:0===n&&"string"==typeof g?t.sTableId+"_"+g:null}).html(a).appendTo(e),{action:g},b)}}};try{c=s(e).find(document.activeElement).data("dt-idx")}catch(t){}f(s(e).empty(),i),void 0!==c&&s(e).find("[data-dt-idx="+c+"]").trigger("focus")}}}),s.extend(a.ext.type.detect,[function(t,e){var n=e.oLanguage.sDecimal;return b(t,n)?"num"+n:null},function(t,e){if(t&&!(t instanceof Date)&&!u.test(t))return null;var n=Date.parse(t);return null!==n&&!isNaN(n)||p(t)?"date":null},function(t,e){var n=e.oLanguage.sDecimal;return b(t,n,!0)?"num-fmt"+n:null},function(t,e){var n=e.oLanguage.sDecimal;return v(t,n)?"html-num"+n:null},function(t,e){var n=e.oLanguage.sDecimal;return v(t,n,!0)?"html-num-fmt"+n:null},function(t,e){return p(t)||"string"==typeof t&&-1!==t.indexOf("<")?"html":null}]),s.extend(a.ext.type.search,{html:function(t){return p(t)?t:"string"==typeof t?t.replace(c," ").replace(h,""):""},string:function(t){return p(t)?t:"string"==typeof t?t.replace(c," "):t}});var Re=function(t,e,n,i){if(0!==t&&(!t||"-"===t))return-1/0;var o=typeof t;return"number"===o||"bigint"===o?t:(e&&(t=m(t,e)),t.replace&&(n&&(t=t.replace(n,"")),i&&(t=t.replace(i,""))),1*t)};function Fe(e){s.each({num:function(t){return Re(t,e)},"num-fmt":function(t){return Re(t,e,f)},"html-num":function(t){return Re(t,e,h)},"html-num-fmt":function(t){return Re(t,e,h,f)}},(function(n,i){t.type.order[n+e+"-pre"]=i,n.match(/^html\-/)&&(t.type.search[n+e]=t.type.search.html)}))}s.extend(t.type.order,{"date-pre":function(t){var e=Date.parse(t);return isNaN(e)?-1/0:e},"html-pre":function(t){return p(t)?"":t.replace?t.replace(/<.*?>/g,"").toLowerCase():t+""},"string-pre":function(t){return p(t)?"":"string"==typeof t?t.toLowerCase():t.toString?t.toString():""},"string-asc":function(t,e){return t<e?-1:t>e?1:0},"string-desc":function(t,e){return t<e?1:t>e?-1:0}}),Fe(""),s.extend(!0,a.ext.renderer,{header:{_:function(t,e,n,i){s(t.nTable).on("order.dt.DT",(function(o,r,s,a){if(t===r){var l=n.idx;e.removeClass(i.sSortAsc+" "+i.sSortDesc).addClass("asc"==a[l]?i.sSortAsc:"desc"==a[l]?i.sSortDesc:n.sSortingClass)}}))},jqueryui:function(t,e,n,i){s("<div/>").addClass(i.sSortJUIWrapper).append(e.contents()).append(s("<span/>").addClass(i.sSortIcon+" "+n.sSortingClassJUI)).appendTo(e),s(t.nTable).on("order.dt.DT",(function(o,r,s,a){if(t===r){var l=n.idx;e.removeClass(i.sSortAsc+" "+i.sSortDesc).addClass("asc"==a[l]?i.sSortAsc:"desc"==a[l]?i.sSortDesc:n.sSortingClass),e.find("span."+i.sSortIcon).removeClass(i.sSortJUIAsc+" "+i.sSortJUIDesc+" "+i.sSortJUI+" "+i.sSortJUIAscAllowed+" "+i.sSortJUIDescAllowed).addClass("asc"==a[l]?i.sSortJUIAsc:"desc"==a[l]?i.sSortJUIDesc:n.sSortingClassJUI)}}))}}});var je=function(t){return Array.isArray(t)&&(t=t.join(",")),"string"==typeof t?t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):t};function Be(t,e,n,i,o){return window.moment?t[e](o):window.luxon?t[n](o):i?t[i](o):t}var Ne=!1;function He(t,e,n){var i;if(window.moment){if(!(i=window.moment.utc(t,e,n,!0)).isValid())return null}else if(window.luxon){if(!(i=e&&"string"==typeof t?window.luxon.DateTime.fromFormat(t,e):window.luxon.DateTime.fromISO(t)).isValid)return null;i.setLocale(n)}else e?(Ne||alert("DataTables warning: Formatted date without Moment.js or Luxon - https://datatables.net/tn/17"),Ne=!0):i=new Date(t);return i}function ze(t){return function(e,n,i,o){0===arguments.length?(i="en",n=null,e=null):1===arguments.length?(i="en",n=e,e=null):2===arguments.length&&(i=n,n=e,e=null);var r="datetime-"+n;return a.ext.type.order[r]||(a.ext.type.detect.unshift((function(t){return t===r&&r})),a.ext.type.order[r+"-asc"]=function(t,e){var n=t.valueOf(),i=e.valueOf();return n===i?0:n<i?-1:1},a.ext.type.order[r+"-desc"]=function(t,e){var n=t.valueOf(),i=e.valueOf();return n===i?0:n>i?-1:1}),function(s,a){if(null==s)if("--now"===o){var l=new Date;s=new Date(Date.UTC(l.getFullYear(),l.getMonth(),l.getDate(),l.getHours(),l.getMinutes(),l.getSeconds()))}else s="";if("type"===a)return r;if(""===s)return"sort"!==a?"":He("0000-01-01 00:00:00",null,i);if(null!==n&&e===n&&"sort"!==a&&"type"!==a&&!(s instanceof Date))return s;var c=He(s,e,i);if(null===c)return s;if("sort"===a)return c;var h=null===n?Be(c,"toDate","toJSDate","")[t]():Be(c,"format","toFormat","toISOString",n);return"display"===a?je(h):h}}}var We=",",$e=".";if(void 0!==window.Intl)try{for(var Ve=(new Intl.NumberFormat).formatToParts(100000.1),qe=0;qe<Ve.length;qe++)"group"===Ve[qe].type?We=Ve[qe].value:"decimal"===Ve[qe].type&&($e=Ve[qe].value)}catch(t){}function Ue(t){return function(){var e=[ae(this[a.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return a.ext.internal[t].apply(this,e)}}a.datetime=function(t,e){var n="datetime-detect-"+t;e||(e="en"),a.ext.type.order[n]||(a.ext.type.detect.unshift((function(i){var o=He(i,t,e);return!(""!==i&&!o)&&n})),a.ext.type.order[n+"-pre"]=function(n){return He(n,t,e)||0})},a.render={date:ze("toLocaleDateString"),datetime:ze("toLocaleString"),time:ze("toLocaleTimeString"),number:function(t,e,n,i,o){return null==t&&(t=We),null==e&&(e=$e),{display:function(r){if("number"!=typeof r&&"string"!=typeof r)return r;if(""===r||null===r)return r;var s=r<0?"-":"",a=parseFloat(r);if(isNaN(a))return je(r);a=a.toFixed(n),r=Math.abs(a);var l=parseInt(r,10),c=n?e+(r-l).toFixed(n).substring(2):"";return 0===l&&0===parseFloat(c)&&(s=""),s+(i||"")+l.toString().replace(/\B(?=(\d{3})+(?!\d))/g,t)+c+(o||"")}}},text:function(){return{display:je,filter:je}}},s.extend(a.ext.internal,{_fnExternApiFunc:Ue,_fnBuildAjax:ft,_fnAjaxUpdate:pt,_fnAjaxParameters:gt,_fnAjaxUpdateDraw:mt,_fnAjaxDataSrc:bt,_fnAddColumn:R,_fnColumnOptions:F,_fnAdjustColumnSizing:j,_fnVisibleToColumnIndex:B,_fnColumnIndexToVisible:N,_fnVisbleColumns:H,_fnGetColumns:z,_fnColumnTypes:W,_fnApplyColumnDefs:$,_fnHungarianMap:T,_fnCamelToHungarian:A,_fnLanguageCompat:M,_fnBrowserDetect:I,_fnAddData:V,_fnAddTr:q,_fnNodeToDataIndex:function(t,e){return void 0!==e._DT_RowIndex?e._DT_RowIndex:null},_fnNodeToColumnIndex:function(t,e,n){return s.inArray(n,t.aoData[e].anCells)},_fnGetCellData:U,_fnSetCellData:X,_fnSplitObjNotation:G,_fnGetObjectDataFn:K,_fnSetObjectDataFn:Z,_fnGetDataMaster:Q,_fnClearTable:tt,_fnDeleteIndex:et,_fnInvalidate:nt,_fnGetRowElements:it,_fnCreateTr:ot,_fnBuildHead:st,_fnDrawHead:at,_fnDraw:lt,_fnReDraw:ct,_fnAddOptionsHtml:ht,_fnDetectHeader:ut,_fnGetUniqueThs:dt,_fnFeatureHtmlFilter:vt,_fnFilterComplete:yt,_fnFilterCustom:wt,_fnFilterColumn:xt,_fnFilter:_t,_fnFilterCreateSearch:St,_fnEscapeRegex:Ct,_fnFilterData:Tt,_fnFeatureHtmlInfo:Pt,_fnUpdateInfo:Lt,_fnInfoMacros:Et,_fnInitialise:It,_fnInitComplete:Ot,_fnLengthChange:Rt,_fnFeatureHtmlLength:Ft,_fnFeatureHtmlPaginate:jt,_fnPageChange:Bt,_fnFeatureHtmlProcessing:Nt,_fnProcessingDisplay:Ht,_fnFeatureHtmlTable:zt,_fnScrollDraw:Wt,_fnApplyToChildren:$t,_fnCalculateColumnWidths:qt,_fnThrottle:Ut,_fnConvertToWidth:Xt,_fnGetWidestNode:Yt,_fnGetMaxLenString:Jt,_fnStringToCss:Gt,_fnSortFlatten:Kt,_fnSort:Zt,_fnSortAria:Qt,_fnSortListener:te,_fnSortAttachListener:ee,_fnSortingClasses:ne,_fnSortData:ie,_fnSaveState:oe,_fnLoadState:re,_fnImplementState:se,_fnSettingsFromNode:ae,_fnLog:le,_fnMap:ce,_fnBindAction:ue,_fnCallbackReg:de,_fnCallbackFire:fe,_fnLengthOverflow:pe,_fnRenderer:ge,_fnDataSource:me,_fnRowAttributes:rt,_fnExtend:he,_fnCalculateEnd:function(){}}),s.fn.dataTable=a,a.$=s,s.fn.dataTableSettings=a.settings,s.fn.dataTableExt=a.ext,s.fn.DataTable=function(t){return s(this).dataTable(t).api()},s.each(a,(function(t,e){s.fn.DataTable[t]=e}));const Xe=a;let Ye=r;Ye.extend(!0,Xe.defaults,{dom:"<'row'<'col-sm-12 col-md-6'l><'col-sm-12 col-md-6'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",renderer:"bootstrap"}),Ye.extend(Xe.ext.classes,{sWrapper:"dataTables_wrapper dt-bootstrap4",sFilterInput:"form-control form-control-sm",sLengthSelect:"custom-select custom-select-sm form-control form-control-sm",sProcessing:"dataTables_processing card",sPageButton:"paginate_button page-item"}),Xe.ext.renderer.pageButton.bootstrap=function(t,e,n,i,o,r){var s,a,l,c=new Xe.Api(t),h=t.oClasses,u=t.oLanguage.oPaginate,d=t.oLanguage.oAria.paginate||{},f=function(e,i){var l,p,g,m,b=function(t){t.preventDefault(),Ye(t.currentTarget).hasClass("disabled")||c.page()==t.data.action||c.page(t.data.action).draw("page")};for(l=0,p=i.length;l<p;l++)if(m=i[l],Array.isArray(m))f(e,m);else{switch(s="",a="",m){case"ellipsis":s="&#x2026;",a="disabled";break;case"first":s=u.sFirst,a=m+(o>0?"":" disabled");break;case"previous":s=u.sPrevious,a=m+(o>0?"":" disabled");break;case"next":s=u.sNext,a=m+(o<r-1?"":" disabled");break;case"last":s=u.sLast,a=m+(o<r-1?"":" disabled");break;default:s=m+1,a=o===m?"active":""}if(s){var v=-1!==a.indexOf("disabled");g=Ye("<li>",{class:h.sPageButton+" "+a,id:0===n&&"string"==typeof m?t.sTableId+"_"+m:null}).append(Ye("<a>",{href:v?null:"#","aria-controls":t.sTableId,"aria-disabled":v?"true":null,"aria-label":d[m],role:"link","aria-current":"active"===a?"page":null,"data-dt-idx":m,tabindex:v?-1:t.iTabIndex,class:"page-link"}).html(s)).appendTo(e),t.oApi._fnBindAction(g,{action:m},b)}}};try{l=Ye(e).find(document.activeElement).data("dt-idx")}catch(t){}f(Ye(e).empty().html('<ul class="pagination"/>').children("ul"),i),void 0!==l&&Ye(e).find("[data-dt-idx="+l+"]").trigger("focus")};let Je=r;!function(){var t,e;var n=function(){function n(i,o){var r=this;if(!e||!e.versionCheck||!e.versionCheck("1.10.0"))throw new Error("FixedColumns requires DataTables 1.10 or newer");var s=new e.Api(i);this.classes=t.extend(!0,{},n.classes),this.c=t.extend(!0,{},n.defaults,o),o&&void 0!==o.left||void 0===this.c.leftColumns||(this.c.left=this.c.leftColumns),o&&void 0!==o.right||void 0===this.c.rightColumns||(this.c.right=this.c.rightColumns),this.s={barWidth:0,dt:s,rtl:"rtl"===t("body").css("direction")};var a={bottom:"0px",display:"block",position:"absolute",width:this.s.barWidth+1+"px"};return this.dom={leftBottomBlocker:t("<div>").css(a).css("left",0).addClass(this.classes.leftBottomBlocker),leftTopBlocker:t("<div>").css(a).css({left:0,top:0}).addClass(this.classes.leftTopBlocker),rightBottomBlocker:t("<div>").css(a).css("right",0).addClass(this.classes.rightBottomBlocker),rightTopBlocker:t("<div>").css(a).css({right:0,top:0}).addClass(this.classes.rightTopBlocker)},this.s.dt.settings()[0]._bInitComplete?(this._addStyles(),this._setKeyTableListener()):s.one("init.dt.dtfc",(function(){r._addStyles(),r._setKeyTableListener()})),s.on("column-sizing.dt.dtfc",(function(){return r._addStyles()})),s.settings()[0]._fixedColumns=this,s.on("destroy",(function(){return r._destroy()})),this}return n.prototype.left=function(t){return void 0!==t?(t>=0&&t<=this.s.dt.columns().count()&&(this.c.left=t,this._addStyles()),this):this.c.left},n.prototype.right=function(t){return void 0!==t?(t>=0&&t<=this.s.dt.columns().count()&&(this.c.right=t,this._addStyles()),this):this.c.right},n.prototype._addStyles=function(){if(this.s.dt.settings()[0].oScroll.sY){var e=t(this.s.dt.table().node()).closest("div.dataTables_scrollBody")[0],n=this.s.dt.settings()[0].oBrowser.barWidth;e.offsetWidth-e.clientWidth>=n?this.s.barWidth=n:this.s.barWidth=0,this.dom.rightTopBlocker.css("width",this.s.barWidth+1),this.dom.leftTopBlocker.css("width",this.s.barWidth+1),this.dom.rightBottomBlocker.css("width",this.s.barWidth+1),this.dom.leftBottomBlocker.css("width",this.s.barWidth+1)}var i=null,o=this.s.dt.column(0).header(),r=null;null!==o&&(r=(o=t(o)).outerHeight()+1,i=t(o.closest("div.dataTables_scroll")).css("position","relative"));var s=this.s.dt.column(0).footer(),a=null;null!==s&&(a=(s=t(s)).outerHeight(),null===i&&(i=t(s.closest("div.dataTables_scroll")).css("position","relative")));for(var l=this.s.dt.columns().data().toArray().length,c=0,h=0,u=t(this.s.dt.table().node()).children("tbody").children("tr"),d=0,f=new Map,p=0;p<l;p++){var g=this.s.dt.column(p);if(p>0&&f.set(p-1,d),g.visible()){var m=t(g.header()),b=t(g.footer());if(p-d<this.c.left){if(t(this.s.dt.table().node()).addClass(this.classes.tableFixedLeft),i.addClass(this.classes.tableFixedLeft),p-d>0)for(var v=p;v+1<l;){if((A=this.s.dt.column(v-1,{page:"current"})).visible()){c+=t(A.nodes()[0]).outerWidth(),h+=A.header()||A.footer()?t(A.header()).outerWidth():0;break}v--}for(var y=0,w=u;y<w.length;y++){var x=w[y];t(t(x).children()[p-d]).css(this._getCellCSS(!1,c,"left")).addClass(this.classes.fixedLeft)}m.css(this._getCellCSS(!0,h,"left")).addClass(this.classes.fixedLeft),b.css(this._getCellCSS(!0,h,"left")).addClass(this.classes.fixedLeft)}else{for(var _=0,S=u;_<S.length;_++){x=S[_];(I=t(t(x).children()[p-d])).hasClass(this.classes.fixedLeft)&&I.css(this._clearCellCSS("left")).removeClass(this.classes.fixedLeft)}m.hasClass(this.classes.fixedLeft)&&m.css(this._clearCellCSS("left")).removeClass(this.classes.fixedLeft),b.hasClass(this.classes.fixedLeft)&&b.css(this._clearCellCSS("left")).removeClass(this.classes.fixedLeft)}}else d++}var C=0,k=0,D=0;for(p=l-1;p>=0;p--){if((g=this.s.dt.column(p)).visible()){m=t(g.header()),b=t(g.footer());var T=f.get(p);if(void 0===T&&(T=d),p+D>=l-this.c.right){if(t(this.s.dt.table().node()).addClass(this.classes.tableFixedRight),i.addClass(this.classes.tableFixedRight),p+1+D<l)for(v=p;v+1<l;){var A;if((A=this.s.dt.column(v+1,{page:"current"})).visible()){C+=t(A.nodes()[0]).outerWidth(),k+=A.header()||A.footer()?t(A.header()).outerWidth():0;break}v++}for(var M=0,P=u;M<P.length;M++){x=P[M];t(t(x).children()[p-T]).css(this._getCellCSS(!1,C,"right")).addClass(this.classes.fixedRight)}m.css(this._getCellCSS(!0,k,"right")).addClass(this.classes.fixedRight),b.css(this._getCellCSS(!0,k,"right")).addClass(this.classes.fixedRight)}else{for(var L=0,E=u;L<E.length;L++){var I;x=E[L];(I=t(t(x).children()[p-T])).hasClass(this.classes.fixedRight)&&I.css(this._clearCellCSS("right")).removeClass(this.classes.fixedRight)}m.hasClass(this.classes.fixedRight)&&m.css(this._clearCellCSS("right")).removeClass(this.classes.fixedRight),b.hasClass(this.classes.fixedRight)&&b.css(this._clearCellCSS("right")).removeClass(this.classes.fixedRight)}}else D++}o&&(this.s.rtl?(this.dom.leftTopBlocker.outerHeight(r),i.append(this.dom.leftTopBlocker)):(this.dom.rightTopBlocker.outerHeight(r),i.append(this.dom.rightTopBlocker))),s&&(this.s.rtl?(this.dom.leftBottomBlocker.outerHeight(a),i.append(this.dom.leftBottomBlocker)):(this.dom.rightBottomBlocker.outerHeight(a),i.append(this.dom.rightBottomBlocker)))},n.prototype._destroy=function(){this.s.dt.off(".dtfc"),this.dom.leftBottomBlocker.remove(),this.dom.leftTopBlocker.remove(),this.dom.rightBottomBlocker.remove(),this.dom.rightTopBlocker.remove()},n.prototype._getCellCSS=function(t,e,n){return"left"===n?this.s.rtl?{position:"sticky",right:e+"px"}:{left:e+"px",position:"sticky"}:this.s.rtl?{left:e+(t?this.s.barWidth:0)+"px",position:"sticky"}:{position:"sticky",right:e+(t?this.s.barWidth:0)+"px"}},n.prototype._clearCellCSS=function(t){return"left"===t?this.s.rtl?{position:"",right:""}:{left:"",position:""}:this.s.rtl?{left:"",position:""}:{position:"",right:""}},n.prototype._setKeyTableListener=function(){var e=this;this.s.dt.on("key-focus.dt.dtfc",(function(n,i,o){var r=t(o.node()).offset(),s=t(t(e.s.dt.table().node()).closest("div.dataTables_scrollBody"));if(e.c.left>0){var a=t(e.s.dt.column(e.c.left-1).header()),l=a.offset(),c=a.outerWidth();if(r.left<l.left+c){var h=s.scrollLeft();s.scrollLeft(h-(l.left+c-r.left))}}if(e.c.right>0){var u=e.s.dt.columns().data().toArray().length,d=t(o.node()).outerWidth(),f=t(e.s.dt.column(u-e.c.right).header()).offset();if(r.left+d>f.left){h=s.scrollLeft();s.scrollLeft(h-(f.left-(r.left+d)))}}})),this.s.dt.on("draw.dt.dtfc",(function(){e._addStyles()})),this.s.dt.on("column-reorder.dt.dtfc",(function(){e._addStyles()})),this.s.dt.on("column-visibility.dt.dtfc",(function(t,n,i,o,r){r&&!n.bDestroying&&setTimeout((function(){e._addStyles()}),50)}))},n.version="4.3.0",n.classes={fixedLeft:"dtfc-fixed-left",fixedRight:"dtfc-fixed-right",leftBottomBlocker:"dtfc-left-bottom-blocker",leftTopBlocker:"dtfc-left-top-blocker",rightBottomBlocker:"dtfc-right-bottom-blocker",rightTopBlocker:"dtfc-right-top-blocker",tableFixedLeft:"dtfc-has-left",tableFixedRight:"dtfc-has-right"},n.defaults={i18n:{button:"FixedColumns"},left:1,right:0},n}();e=(t=Je).fn.dataTable,Je.fn.dataTable.FixedColumns=n,Je.fn.DataTable.FixedColumns=n;var i=Xe.Api.register;function o(t,e){void 0===e&&(e=null);var i=new Xe.Api(t),o=e||(i.init().fixedColumns||Xe.defaults.fixedColumns);return new n(i,o)}i("fixedColumns()",(function(){return this})),i("fixedColumns().left()",(function(t){var e=this.context[0];return void 0!==t?(e._fixedColumns.left(t),this):e._fixedColumns.left()})),i("fixedColumns().right()",(function(t){var e=this.context[0];return void 0!==t?(e._fixedColumns.right(t),this):e._fixedColumns.right()})),Xe.ext.buttons.fixedColumns={action:function(t,e,n,i){Je(n).attr("active")?(Je(n).removeAttr("active").removeClass("active"),e.fixedColumns().left(0),e.fixedColumns().right(0)):(Je(n).attr("active","true").addClass("active"),e.fixedColumns().left(i.config.left),e.fixedColumns().right(i.config.right))},config:{left:1,right:0},init:function(t,e,n){void 0===t.settings()[0]._fixedColumns&&o(t.settings(),n),Je(e).attr("active","true").addClass("active"),t.button(e).text(n.text||t.i18n("buttons.fixedColumns",t.settings()[0]._fixedColumns.c.i18n.button))},text:null},Je(document).on("plugin-init.dt",(function(t,e){"dt"===t.namespace&&(e.oInit.fixedColumns||Xe.defaults.fixedColumns)&&(e._fixedColumns||o(e,null))}))}();var Ge=n(465),Ke=n.n(Ge);function Ze(t){return t+.5|0}const Qe=(t,e,n)=>Math.max(Math.min(t,n),e);function tn(t){return Qe(Ze(2.55*t),0,255)}function en(t){return Qe(Ze(255*t),0,255)}function nn(t){return Qe(Ze(t/2.55)/100,0,1)}function on(t){return Qe(Ze(100*t),0,100)}const rn={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},sn=[..."0123456789ABCDEF"],an=t=>sn[15&t],ln=t=>sn[(240&t)>>4]+sn[15&t],cn=t=>(240&t)>>4==(15&t);function hn(t){var e=(t=>cn(t.r)&&cn(t.g)&&cn(t.b)&&cn(t.a))(t)?an:ln;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const un=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function dn(t,e,n){const i=e*Math.min(n,1-n),o=(e,o=(e+t/30)%12)=>n-i*Math.max(Math.min(o-3,9-o,1),-1);return[o(0),o(8),o(4)]}function fn(t,e,n){const i=(i,o=(i+t/60)%6)=>n-n*e*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function pn(t,e,n){const i=dn(t,1,.5);let o;for(e+n>1&&(o=1/(e+n),e*=o,n*=o),o=0;o<3;o++)i[o]*=1-e-n,i[o]+=e;return i}function gn(t){const e=t.r/255,n=t.g/255,i=t.b/255,o=Math.max(e,n,i),r=Math.min(e,n,i),s=(o+r)/2;let a,l,c;return o!==r&&(c=o-r,l=s>.5?c/(2-o-r):c/(o+r),a=function(t,e,n,i,o){return t===o?(e-n)/i+(e<n?6:0):e===o?(n-t)/i+2:(t-e)/i+4}(e,n,i,c,o),a=60*a+.5),[0|a,l||0,s]}function mn(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(en)}function bn(t,e,n){return mn(dn,t,e,n)}function vn(t){return(t%360+360)%360}function yn(t){const e=un.exec(t);let n,i=255;if(!e)return;e[5]!==n&&(i=e[6]?tn(+e[5]):en(+e[5]));const o=vn(+e[2]),r=+e[3]/100,s=+e[4]/100;return n="hwb"===e[1]?function(t,e,n){return mn(pn,t,e,n)}(o,r,s):"hsv"===e[1]?function(t,e,n){return mn(fn,t,e,n)}(o,r,s):bn(o,r,s),{r:n[0],g:n[1],b:n[2],a:i}}const wn={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},xn={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let _n;function Sn(t){_n||(_n=function(){const t={},e=Object.keys(xn),n=Object.keys(wn);let i,o,r,s,a;for(i=0;i<e.length;i++){for(s=a=e[i],o=0;o<n.length;o++)r=n[o],a=a.replace(r,wn[r]);r=parseInt(xn[s],16),t[a]=[r>>16&255,r>>8&255,255&r]}return t}(),_n.transparent=[0,0,0,0]);const e=_n[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const Cn=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const kn=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Dn=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Tn(t,e,n){if(t){let i=gn(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,0===e?360:1)),i=bn(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function An(t,e){return t?Object.assign(e||{},t):t}function Mn(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=en(t[3]))):(e=An(t,{r:0,g:0,b:0,a:1})).a=en(e.a),e}function Pn(t){return"r"===t.charAt(0)?function(t){const e=Cn.exec(t);let n,i,o,r=255;if(e){if(e[7]!==n){const t=+e[7];r=e[8]?tn(t):Qe(255*t,0,255)}return n=+e[1],i=+e[3],o=+e[5],n=255&(e[2]?tn(n):Qe(n,0,255)),i=255&(e[4]?tn(i):Qe(i,0,255)),o=255&(e[6]?tn(o):Qe(o,0,255)),{r:n,g:i,b:o,a:r}}}(t):yn(t)}class Ln{constructor(t){if(t instanceof Ln)return t;const e=typeof t;let n;var i,o,r;"object"===e?n=Mn(t):"string"===e&&(r=(i=t).length,"#"===i[0]&&(4===r||5===r?o={r:255&17*rn[i[1]],g:255&17*rn[i[2]],b:255&17*rn[i[3]],a:5===r?17*rn[i[4]]:255}:7!==r&&9!==r||(o={r:rn[i[1]]<<4|rn[i[2]],g:rn[i[3]]<<4|rn[i[4]],b:rn[i[5]]<<4|rn[i[6]],a:9===r?rn[i[7]]<<4|rn[i[8]]:255})),n=o||Sn(t)||Pn(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=An(this._rgb);return t&&(t.a=nn(t.a)),t}set rgb(t){this._rgb=Mn(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${nn(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?hn(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=gn(t),n=e[0],i=on(e[1]),o=on(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${o}%, ${nn(t.a)})`:`hsl(${n}, ${i}%, ${o}%)`}(this._rgb):void 0}mix(t,e){if(t){const n=this.rgb,i=t.rgb;let o;const r=e===o?.5:e,s=2*r-1,a=n.a-i.a,l=((s*a===-1?s:(s+a)/(1+s*a))+1)/2;o=1-l,n.r=255&l*n.r+o*i.r+.5,n.g=255&l*n.g+o*i.g+.5,n.b=255&l*n.b+o*i.b+.5,n.a=r*n.a+(1-r)*i.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){const i=Dn(nn(t.r)),o=Dn(nn(t.g)),r=Dn(nn(t.b));return{r:en(kn(i+n*(Dn(nn(e.r))-i))),g:en(kn(o+n*(Dn(nn(e.g))-o))),b:en(kn(r+n*(Dn(nn(e.b))-r))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new Ln(this.rgb)}alpha(t){return this._rgb.a=en(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=Ze(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Tn(this._rgb,2,t),this}darken(t){return Tn(this._rgb,2,-t),this}saturate(t){return Tn(this._rgb,1,t),this}desaturate(t){return Tn(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=gn(t);n[0]=vn(n[0]+e),n=bn(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}function En(){}const In=(()=>{let t=0;return()=>t++})();function On(t){return null==t}function Rn(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function Fn(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function jn(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function Bn(t,e){return jn(t)?t:e}function Nn(t,e){return void 0===t?e:t}const Hn=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function zn(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function Wn(t,e,n,i){let o,r,s;if(Rn(t))if(r=t.length,i)for(o=r-1;o>=0;o--)e.call(n,t[o],o);else for(o=0;o<r;o++)e.call(n,t[o],o);else if(Fn(t))for(s=Object.keys(t),r=s.length,o=0;o<r;o++)e.call(n,t[s[o]],s[o])}function $n(t,e){let n,i,o,r;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(o=t[n],r=e[n],o.datasetIndex!==r.datasetIndex||o.index!==r.index)return!1;return!0}function Vn(t){if(Rn(t))return t.map(Vn);if(Fn(t)){const e=Object.create(null),n=Object.keys(t),i=n.length;let o=0;for(;o<i;++o)e[n[o]]=Vn(t[n[o]]);return e}return t}function qn(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function Un(t,e,n,i){if(!qn(t))return;const o=e[t],r=n[t];Fn(o)&&Fn(r)?Xn(o,r,i):e[t]=Vn(r)}function Xn(t,e,n){const i=Rn(e)?e:[e],o=i.length;if(!Fn(t))return t;const r=(n=n||{}).merger||Un;let s;for(let e=0;e<o;++e){if(s=i[e],!Fn(s))continue;const o=Object.keys(s);for(let e=0,i=o.length;e<i;++e)r(o[e],t,s,n)}return t}function Yn(t,e){return Xn(t,e,{merger:Jn})}function Jn(t,e,n){if(!qn(t))return;const i=e[t],o=n[t];Fn(i)&&Fn(o)?Yn(i,o):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=Vn(o))}const Gn={"":t=>t,x:t=>t.x,y:t=>t.y};function Kn(t,e){const n=Gn[e]||(Gn[e]=function(t){const e=function(t){const e=t.split("."),n=[];let i="";for(const t of e)i+=t,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}(t);return t=>{for(const n of e){if(""===n)break;t=t&&t[n]}return t}}(e));return n(t)}function Zn(t){return t.charAt(0).toUpperCase()+t.slice(1)}const Qn=t=>void 0!==t,ti=t=>"function"==typeof t,ei=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};const ni=Math.PI,ii=2*ni,oi=ii+ni,ri=Number.POSITIVE_INFINITY,si=ni/180,ai=ni/2,li=ni/4,ci=2*ni/3,hi=Math.log10,ui=Math.sign;function di(t,e,n){return Math.abs(t-e)<n}function fi(t){const e=Math.round(t);t=di(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(hi(t))),i=t/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function pi(t){return!function(t){return"symbol"==typeof t||"object"==typeof t&&null!==t&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function gi(t,e,n){let i,o,r;for(i=0,o=t.length;i<o;i++)r=t[i][n],isNaN(r)||(e.min=Math.min(e.min,r),e.max=Math.max(e.max,r))}function mi(t){return t*(ni/180)}function bi(t){return t*(180/ni)}function vi(t){if(!jn(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function yi(t,e){const n=e.x-t.x,i=e.y-t.y,o=Math.sqrt(n*n+i*i);let r=Math.atan2(i,n);return r<-.5*ni&&(r+=ii),{angle:r,distance:o}}function wi(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function xi(t,e){return(t-e+oi)%ii-ni}function _i(t){return(t%ii+ii)%ii}function Si(t,e,n,i){const o=_i(t),r=_i(e),s=_i(n),a=_i(r-o),l=_i(s-o),c=_i(o-r),h=_i(o-s);return o===r||o===s||i&&r===s||a>l&&c<h}function Ci(t,e,n){return Math.max(e,Math.min(n,t))}function ki(t,e,n,i=1e-6){return t>=Math.min(e,n)-i&&t<=Math.max(e,n)+i}function Di(t,e,n){n=n||(n=>t[n]<e);let i,o=t.length-1,r=0;for(;o-r>1;)i=r+o>>1,n(i)?r=i:o=i;return{lo:r,hi:o}}const Ti=(t,e,n,i)=>Di(t,n,i?i=>{const o=t[i][e];return o<n||o===n&&t[i+1][e]===n}:i=>t[i][e]<n),Ai=(t,e,n)=>Di(t,n,(i=>t[i][e]>=n));const Mi=["push","pop","shift","splice","unshift"];function Pi(t,e){const n=t._chartjs;if(!n)return;const i=n.listeners,o=i.indexOf(e);-1!==o&&i.splice(o,1),i.length>0||(Mi.forEach((e=>{delete t[e]})),delete t._chartjs)}function Li(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const Ei="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function Ii(t,e){let n=[],i=!1;return function(...o){n=o,i||(i=!0,Ei.call(window,(()=>{i=!1,t.apply(e,n)})))}}const Oi=t=>"start"===t?"left":"end"===t?"right":"center",Ri=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2;function Fi(t,e,n){const i=e.length;let o=0,r=i;if(t._sorted){const{iScale:s,vScale:a,_parsed:l}=t,c=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,h=s.axis,{min:u,max:d,minDefined:f,maxDefined:p}=s.getUserBounds();if(f){if(o=Math.min(Ti(l,h,u).lo,n?i:Ti(e,h,s.getPixelForValue(u)).lo),c){const t=l.slice(0,o+1).reverse().findIndex((t=>!On(t[a.axis])));o-=Math.max(0,t)}o=Ci(o,0,i-1)}if(p){let t=Math.max(Ti(l,s.axis,d,!0).hi+1,n?0:Ti(e,h,s.getPixelForValue(d),!0).hi+1);if(c){const e=l.slice(t-1).findIndex((t=>!On(t[a.axis])));t+=Math.max(0,e)}r=Ci(t,o,i)-o}else r=i-o}return{start:o,count:r}}function ji(t){const{xScale:e,yScale:n,_scaleRanges:i}=t,o={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!i)return t._scaleRanges=o,!0;const r=i.xmin!==e.min||i.xmax!==e.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,o),r}const Bi=t=>0===t||1===t,Ni=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*ii/n),Hi=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*ii/n)+1,zi={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*ai),easeOutSine:t=>Math.sin(t*ai),easeInOutSine:t=>-.5*(Math.cos(ni*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>Bi(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Bi(t)?t:Ni(t,.075,.3),easeOutElastic:t=>Bi(t)?t:Hi(t,.075,.3),easeInOutElastic(t){const e=.1125;return Bi(t)?t:t<.5?.5*Ni(2*t,e,.45):.5+.5*Hi(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-zi.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},easeInOutBounce:t=>t<.5?.5*zi.easeInBounce(2*t):.5*zi.easeOutBounce(2*t-1)+.5};function Wi(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function $i(t){return Wi(t)?t:new Ln(t)}function Vi(t){return Wi(t)?t:new Ln(t).saturate(.5).darken(.1).hexString()}const qi=["x","y","borderWidth","radius","tension"],Ui=["color","borderColor","backgroundColor"];const Xi=new Map;function Yi(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let i=Xi.get(n);return i||(i=new Intl.NumberFormat(t,e),Xi.set(n,i)),i}(e,n).format(t)}const Ji={values:t=>Rn(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const i=this.chart.options.locale;let o,r=t;if(n.length>1){const e=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(e<1e-4||e>1e15)&&(o="scientific"),r=function(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t));return n}(t,n)}const s=hi(Math.abs(r)),a=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:o,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Yi(t,i,l)},logarithmic(t,e,n){if(0===t)return"0";const i=n[e].significand||t/Math.pow(10,Math.floor(hi(t)));return[1,2,3,5,10,15].includes(i)||e>.8*n.length?Ji.numeric.call(this,t,e,n):""}};var Gi={formatters:Ji};const Ki=Object.create(null),Zi=Object.create(null);function Qi(t,e){if(!e)return t;const n=e.split(".");for(let e=0,i=n.length;e<i;++e){const i=n[e];t=t[i]||(t[i]=Object.create(null))}return t}function to(t,e,n){return"string"==typeof e?Xn(Qi(t,e),n):Xn(Qi(t,""),e)}class eo{constructor(t,e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>Vi(e.backgroundColor),this.hoverBorderColor=(t,e)=>Vi(e.borderColor),this.hoverColor=(t,e)=>Vi(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return to(this,t,e)}get(t){return Qi(this,t)}describe(t,e){return to(Zi,t,e)}override(t,e){return to(Ki,t,e)}route(t,e,n,i){const o=Qi(this,t),r=Qi(this,n),s="_"+e;Object.defineProperties(o,{[s]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[s],e=r[i];return Fn(t)?Object.assign({},e,t):Nn(t,e)},set(t){this[s]=t}}})}apply(t){t.forEach((t=>t(this)))}}var no=new eo({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),t.set("animations",{colors:{type:"color",properties:Ui},numbers:{type:"number",properties:qi}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Gi.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}]);function io(t,e,n,i,o){let r=e[o];return r||(r=e[o]=t.measureText(o).width,n.push(o)),r>i&&(i=r),i}function oo(t,e,n,i){let o=(i=i||{}).data=i.data||{},r=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(o=i.data={},r=i.garbageCollect=[],i.font=e),t.save(),t.font=e;let s=0;const a=n.length;let l,c,h,u,d;for(l=0;l<a;l++)if(u=n[l],null==u||Rn(u)){if(Rn(u))for(c=0,h=u.length;c<h;c++)d=u[c],null==d||Rn(d)||(s=io(t,o,r,s,d))}else s=io(t,o,r,s,u);t.restore();const f=r.length/2;if(f>n.length){for(l=0;l<f;l++)delete o[r[l]];r.splice(0,f)}return s}function ro(t,e,n){const i=t.currentDevicePixelRatio,o=0!==n?Math.max(n/2,.5):0;return Math.round((e-o)*i)/i+o}function so(t,e){(e||t)&&((e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function ao(t,e,n,i){lo(t,e,n,i,null)}function lo(t,e,n,i,o){let r,s,a,l,c,h,u,d;const f=e.pointStyle,p=e.rotation,g=e.radius;let m=(p||0)*si;if(f&&"object"==typeof f&&(r=f.toString(),"[object HTMLImageElement]"===r||"[object HTMLCanvasElement]"===r))return t.save(),t.translate(n,i),t.rotate(m),t.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),void t.restore();if(!(isNaN(g)||g<=0)){switch(t.beginPath(),f){default:o?t.ellipse(n,i,o/2,g,0,0,ii):t.arc(n,i,g,0,ii),t.closePath();break;case"triangle":h=o?o/2:g,t.moveTo(n+Math.sin(m)*h,i-Math.cos(m)*g),m+=ci,t.lineTo(n+Math.sin(m)*h,i-Math.cos(m)*g),m+=ci,t.lineTo(n+Math.sin(m)*h,i-Math.cos(m)*g),t.closePath();break;case"rectRounded":c=.516*g,l=g-c,s=Math.cos(m+li)*l,u=Math.cos(m+li)*(o?o/2-c:l),a=Math.sin(m+li)*l,d=Math.sin(m+li)*(o?o/2-c:l),t.arc(n-u,i-a,c,m-ni,m-ai),t.arc(n+d,i-s,c,m-ai,m),t.arc(n+u,i+a,c,m,m+ai),t.arc(n-d,i+s,c,m+ai,m+ni),t.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*g,h=o?o/2:l,t.rect(n-h,i-l,2*h,2*l);break}m+=li;case"rectRot":u=Math.cos(m)*(o?o/2:g),s=Math.cos(m)*g,a=Math.sin(m)*g,d=Math.sin(m)*(o?o/2:g),t.moveTo(n-u,i-a),t.lineTo(n+d,i-s),t.lineTo(n+u,i+a),t.lineTo(n-d,i+s),t.closePath();break;case"crossRot":m+=li;case"cross":u=Math.cos(m)*(o?o/2:g),s=Math.cos(m)*g,a=Math.sin(m)*g,d=Math.sin(m)*(o?o/2:g),t.moveTo(n-u,i-a),t.lineTo(n+u,i+a),t.moveTo(n+d,i-s),t.lineTo(n-d,i+s);break;case"star":u=Math.cos(m)*(o?o/2:g),s=Math.cos(m)*g,a=Math.sin(m)*g,d=Math.sin(m)*(o?o/2:g),t.moveTo(n-u,i-a),t.lineTo(n+u,i+a),t.moveTo(n+d,i-s),t.lineTo(n-d,i+s),m+=li,u=Math.cos(m)*(o?o/2:g),s=Math.cos(m)*g,a=Math.sin(m)*g,d=Math.sin(m)*(o?o/2:g),t.moveTo(n-u,i-a),t.lineTo(n+u,i+a),t.moveTo(n+d,i-s),t.lineTo(n-d,i+s);break;case"line":s=o?o/2:Math.cos(m)*g,a=Math.sin(m)*g,t.moveTo(n-s,i-a),t.lineTo(n+s,i+a);break;case"dash":t.moveTo(n,i),t.lineTo(n+Math.cos(m)*(o?o/2:g),i+Math.sin(m)*g);break;case!1:t.closePath()}t.fill(),e.borderWidth>0&&t.stroke()}}function co(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function ho(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function uo(t){t.restore()}function fo(t,e,n,i,o){if(!e)return t.lineTo(n.x,n.y);if("middle"===o){const i=(e.x+n.x)/2;t.lineTo(i,e.y),t.lineTo(i,n.y)}else"after"===o!=!!i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function po(t,e,n,i){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(i?e.cp1x:e.cp2x,i?e.cp1y:e.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function go(t,e,n,i,o){if(o.strikethrough||o.underline){const r=t.measureText(i),s=e-r.actualBoundingBoxLeft,a=e+r.actualBoundingBoxRight,l=n-r.actualBoundingBoxAscent,c=n+r.actualBoundingBoxDescent,h=o.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=o.decorationWidth||2,t.moveTo(s,h),t.lineTo(a,h),t.stroke()}}function mo(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function bo(t,e,n,i,o,r={}){const s=Rn(e)?e:[e],a=r.strokeWidth>0&&""!==r.strokeColor;let l,c;for(t.save(),t.font=o.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),On(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,r),l=0;l<s.length;++l)c=s[l],r.backdrop&&mo(t,r.backdrop),a&&(r.strokeColor&&(t.strokeStyle=r.strokeColor),On(r.strokeWidth)||(t.lineWidth=r.strokeWidth),t.strokeText(c,n,i,r.maxWidth)),t.fillText(c,n,i,r.maxWidth),go(t,n,i,c,r),i+=Number(o.lineHeight);t.restore()}function vo(t,e){const{x:n,y:i,w:o,h:r,radius:s}=e;t.arc(n+s.topLeft,i+s.topLeft,s.topLeft,1.5*ni,ni,!0),t.lineTo(n,i+r-s.bottomLeft),t.arc(n+s.bottomLeft,i+r-s.bottomLeft,s.bottomLeft,ni,ai,!0),t.lineTo(n+o-s.bottomRight,i+r),t.arc(n+o-s.bottomRight,i+r-s.bottomRight,s.bottomRight,ai,0,!0),t.lineTo(n+o,i+s.topRight),t.arc(n+o-s.topRight,i+s.topRight,s.topRight,0,-ai,!0),t.lineTo(n+s.topLeft,i)}const yo=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,wo=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function xo(t,e){const n=(""+t).match(yo);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}function _o(t,e){const n={},i=Fn(e),o=i?Object.keys(e):e,r=Fn(t)?i?n=>Nn(t[n],t[e[n]]):e=>t[e]:()=>t;for(const t of o)n[t]=+r(t)||0;return n}function So(t){return _o(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Co(t){return _o(t,["topLeft","topRight","bottomLeft","bottomRight"])}function ko(t){const e=So(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Do(t,e){t=t||{},e=e||no.font;let n=Nn(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let i=Nn(t.style,e.style);i&&!(""+i).match(wo)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const o={family:Nn(t.family,e.family),lineHeight:xo(Nn(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:Nn(t.weight,e.weight),string:""};return o.string=function(t){return!t||On(t.size)||On(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(o),o}function To(t,e,n,i){let o,r,s,a=!0;for(o=0,r=t.length;o<r;++o)if(s=t[o],void 0!==s&&(void 0!==e&&"function"==typeof s&&(s=s(e),a=!1),void 0!==n&&Rn(s)&&(s=s[n%s.length],a=!1),void 0!==s))return i&&!a&&(i.cacheable=!1),s}function Ao(t,e){return Object.assign(Object.create(t),e)}function Mo(t,e=[""],n,i,o=()=>t[0]){const r=n||t;void 0===i&&(i=Ho("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:r,_fallback:i,_getTarget:o,override:n=>Mo([n,...t],e,r,i)};return new Proxy(s,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,i)=>Oo(n,i,(()=>function(t,e,n,i){let o;for(const r of e)if(o=Ho(Eo(r,t),n),void 0!==o)return Io(t,o)?Bo(n,i,t,o):o}(i,e,t,n))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>zo(t).includes(e),ownKeys:t=>zo(t),set(t,e,n){const i=t._storage||(t._storage=o());return t[e]=i[e]=n,delete t._keys,!0}})}function Po(t,e,n,i){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:Lo(t,i),setContext:e=>Po(t,e,n,i),override:o=>Po(t.override(o),e,n,i)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>Oo(t,e,(()=>function(t,e,n){const{_proxy:i,_context:o,_subProxy:r,_descriptors:s}=t;let a=i[e];ti(a)&&s.isScriptable(e)&&(a=function(t,e,n,i){const{_proxy:o,_context:r,_subProxy:s,_stack:a}=n;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let l=e(r,s||i);a.delete(t),Io(t,l)&&(l=Bo(o._scopes,o,t,l));return l}(e,a,t,n));Rn(a)&&a.length&&(a=function(t,e,n,i){const{_proxy:o,_context:r,_subProxy:s,_descriptors:a}=n;if(void 0!==r.index&&i(t))return e[r.index%e.length];if(Fn(e[0])){const n=e,i=o._scopes.filter((t=>t!==n));e=[];for(const l of n){const n=Bo(i,o,t,l);e.push(Po(n,r,s&&s[t],a))}}return e}(e,a,t,s.isIndexable));Io(e,a)&&(a=Po(a,o,r&&r[e],s));return a}(t,e,n))),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,i)=>(t[n]=i,delete e[n],!0)})}function Lo(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:o=e.allKeys}=t;return{allKeys:o,scriptable:n,indexable:i,isScriptable:ti(n)?n:()=>n,isIndexable:ti(i)?i:()=>i}}const Eo=(t,e)=>t?t+Zn(e):e,Io=(t,e)=>Fn(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Oo(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||"constructor"===e)return t[e];const i=n();return t[e]=i,i}function Ro(t,e,n){return ti(t)?t(e,n):t}const Fo=(t,e)=>!0===t?e:"string"==typeof t?Kn(e,t):void 0;function jo(t,e,n,i,o){for(const r of e){const e=Fo(n,r);if(e){t.add(e);const r=Ro(e._fallback,n,o);if(void 0!==r&&r!==n&&r!==i)return r}else if(!1===e&&void 0!==i&&n!==i)return null}return!1}function Bo(t,e,n,i){const o=e._rootScopes,r=Ro(e._fallback,n,i),s=[...t,...o],a=new Set;a.add(i);let l=No(a,s,n,r||n,i);return null!==l&&((void 0===r||r===n||(l=No(a,s,r,l,i),null!==l))&&Mo(Array.from(a),[""],o,r,(()=>function(t,e,n){const i=t._getTarget();e in i||(i[e]={});const o=i[e];if(Rn(o)&&Fn(n))return n;return o||{}}(e,n,i))))}function No(t,e,n,i,o){for(;n;)n=jo(t,e,n,i,o);return n}function Ho(t,e){for(const n of e){if(!n)continue;const e=n[t];if(void 0!==e)return e}}function zo(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function Wo(t,e,n,i){const{iScale:o}=t,{key:r="r"}=this._parsing,s=new Array(i);let a,l,c,h;for(a=0,l=i;a<l;++a)c=a+n,h=e[c],s[a]={r:o.parse(Kn(h,r),c)};return s}const $o=Number.EPSILON||1e-14,Vo=(t,e)=>e<t.length&&!t[e].skip&&t[e],qo=t=>"x"===t?"y":"x";function Uo(t,e,n,i){const o=t.skip?e:t,r=e,s=n.skip?e:n,a=wi(r,o),l=wi(s,r);let c=a/(a+l),h=l/(a+l);c=isNaN(c)?0:c,h=isNaN(h)?0:h;const u=i*c,d=i*h;return{previous:{x:r.x-u*(s.x-o.x),y:r.y-u*(s.y-o.y)},next:{x:r.x+d*(s.x-o.x),y:r.y+d*(s.y-o.y)}}}function Xo(t,e="x"){const n=qo(e),i=t.length,o=Array(i).fill(0),r=Array(i);let s,a,l,c=Vo(t,0);for(s=0;s<i;++s)if(a=l,l=c,c=Vo(t,s+1),l){if(c){const t=c[e]-l[e];o[s]=0!==t?(c[n]-l[n])/t:0}r[s]=a?c?ui(o[s-1])!==ui(o[s])?0:(o[s-1]+o[s])/2:o[s-1]:o[s]}!function(t,e,n){const i=t.length;let o,r,s,a,l,c=Vo(t,0);for(let h=0;h<i-1;++h)l=c,c=Vo(t,h+1),l&&c&&(di(e[h],0,$o)?n[h]=n[h+1]=0:(o=n[h]/e[h],r=n[h+1]/e[h],a=Math.pow(o,2)+Math.pow(r,2),a<=9||(s=3/Math.sqrt(a),n[h]=o*s*e[h],n[h+1]=r*s*e[h])))}(t,o,r),function(t,e,n="x"){const i=qo(n),o=t.length;let r,s,a,l=Vo(t,0);for(let c=0;c<o;++c){if(s=a,a=l,l=Vo(t,c+1),!a)continue;const o=a[n],h=a[i];s&&(r=(o-s[n])/3,a[`cp1${n}`]=o-r,a[`cp1${i}`]=h-r*e[c]),l&&(r=(l[n]-o)/3,a[`cp2${n}`]=o+r,a[`cp2${i}`]=h+r*e[c])}}(t,r,e)}function Yo(t,e,n){return Math.max(Math.min(t,n),e)}function Jo(t,e,n,i,o){let r,s,a,l;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)Xo(t,o);else{let n=i?t[t.length-1]:t[0];for(r=0,s=t.length;r<s;++r)a=t[r],l=Uo(n,a,t[Math.min(r+1,s-(i?0:1))%s],e.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,n=a}e.capBezierPoints&&function(t,e){let n,i,o,r,s,a=co(t[0],e);for(n=0,i=t.length;n<i;++n)s=r,r=a,a=n<i-1&&co(t[n+1],e),r&&(o=t[n],s&&(o.cp1x=Yo(o.cp1x,e.left,e.right),o.cp1y=Yo(o.cp1y,e.top,e.bottom)),a&&(o.cp2x=Yo(o.cp2x,e.left,e.right),o.cp2y=Yo(o.cp2y,e.top,e.bottom)))}(t,n)}function Go(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Ko(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function Zo(t,e,n){let i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}const Qo=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);const tr=["top","right","bottom","left"];function er(t,e,n){const i={};n=n?"-"+n:"";for(let o=0;o<4;o++){const r=tr[o];i[r]=parseFloat(t[e+"-"+r+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function nr(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:i}=e,o=Qo(n),r="border-box"===o.boxSizing,s=er(o,"padding"),a=er(o,"border","width"),{x:l,y:c,box:h}=function(t,e){const n=t.touches,i=n&&n.length?n[0]:t,{offsetX:o,offsetY:r}=i;let s,a,l=!1;if(((t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot))(o,r,t.target))s=o,a=r;else{const t=e.getBoundingClientRect();s=i.clientX-t.left,a=i.clientY-t.top,l=!0}return{x:s,y:a,box:l}}(t,n),u=s.left+(h&&a.left),d=s.top+(h&&a.top);let{width:f,height:p}=e;return r&&(f-=s.width+a.width,p-=s.height+a.height),{x:Math.round((l-u)/f*n.width/i),y:Math.round((c-d)/p*n.height/i)}}const ir=t=>Math.round(10*t)/10;function or(t,e,n,i){const o=Qo(t),r=er(o,"margin"),s=Zo(o.maxWidth,t,"clientWidth")||ri,a=Zo(o.maxHeight,t,"clientHeight")||ri,l=function(t,e,n){let i,o;if(void 0===e||void 0===n){const r=t&&Ko(t);if(r){const t=r.getBoundingClientRect(),s=Qo(r),a=er(s,"border","width"),l=er(s,"padding");e=t.width-l.width-a.width,n=t.height-l.height-a.height,i=Zo(s.maxWidth,r,"clientWidth"),o=Zo(s.maxHeight,r,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:i||ri,maxHeight:o||ri}}(t,e,n);let{width:c,height:h}=l;if("content-box"===o.boxSizing){const t=er(o,"border","width"),e=er(o,"padding");c-=e.width+t.width,h-=e.height+t.height}c=Math.max(0,c-r.width),h=Math.max(0,i?c/i:h-r.height),c=ir(Math.min(c,s,l.maxWidth)),h=ir(Math.min(h,a,l.maxHeight)),c&&!h&&(h=ir(c/2));return(void 0!==e||void 0!==n)&&i&&l.height&&h>l.height&&(h=l.height,c=ir(Math.floor(h*i))),{width:c,height:h}}function rr(t,e,n){const i=e||1,o=Math.floor(t.height*i),r=Math.floor(t.width*i);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const s=t.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${t.height}px`,s.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==i||s.height!==o||s.width!==r)&&(t.currentDevicePixelRatio=i,s.height=o,s.width=r,t.ctx.setTransform(i,0,0,i,0,0),!0)}const sr=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};Go()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(t){}return t}();function ar(t,e){const n=function(t,e){return Qo(t).getPropertyValue(e)}(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function lr(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function cr(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:"middle"===i?n<.5?t.y:e.y:"after"===i?n<1?t.y:e.y:n>0?e.y:t.y}}function hr(t,e,n,i){const o={x:t.cp2x,y:t.cp2y},r={x:e.cp1x,y:e.cp1y},s=lr(t,o,n),a=lr(o,r,n),l=lr(r,e,n),c=lr(s,a,n),h=lr(a,l,n);return lr(c,h,n)}function ur(t,e,n){return t?function(t,e){return{x:n=>t+t+e-n,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,n):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function dr(t,e){let n,i;"ltr"!==e&&"rtl"!==e||(n=t.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=i)}function fr(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function pr(t){return"angle"===t?{between:Si,compare:xi,normalize:_i}:{between:ki,compare:(t,e)=>t-e,normalize:t=>t}}function gr({start:t,end:e,count:n,loop:i,style:o}){return{start:t%n,end:e%n,loop:i&&(e-t+1)%n==0,style:o}}function mr(t,e,n){if(!n)return[t];const{property:i,start:o,end:r}=n,s=e.length,{compare:a,between:l,normalize:c}=pr(i),{start:h,end:u,loop:d,style:f}=function(t,e,n){const{property:i,start:o,end:r}=n,{between:s,normalize:a}=pr(i),l=e.length;let c,h,{start:u,end:d,loop:f}=t;if(f){for(u+=l,d+=l,c=0,h=l;c<h&&s(a(e[u%l][i]),o,r);++c)u--,d--;u%=l,d%=l}return d<u&&(d+=l),{start:u,end:d,loop:f,style:t.style}}(t,e,n),p=[];let g,m,b,v=!1,y=null;const w=()=>v||l(o,b,g)&&0!==a(o,b),x=()=>!v||0===a(r,g)||l(r,b,g);for(let t=h,n=h;t<=u;++t)m=e[t%s],m.skip||(g=c(m[i]),g!==b&&(v=l(g,o,r),null===y&&w()&&(y=0===a(g,o)?t:n),null!==y&&x()&&(p.push(gr({start:y,end:t,loop:d,count:s,style:f})),y=null),n=t,b=g));return null!==y&&p.push(gr({start:y,end:u,loop:d,count:s,style:f})),p}function br(t,e){const n=[],i=t.segments;for(let o=0;o<i.length;o++){const r=mr(i[o],t.points,e);r.length&&n.push(...r)}return n}function vr(t,e,n,i){return i&&i.setContext&&n?function(t,e,n,i){const o=t._chart.getContext(),r=yr(t.options),{_datasetIndex:s,options:{spanGaps:a}}=t,l=n.length,c=[];let h=r,u=e[0].start,d=u;function f(t,e,i,o){const r=a?-1:1;if(t!==e){for(t+=l;n[t%l].skip;)t-=r;for(;n[e%l].skip;)e+=r;t%l!==e%l&&(c.push({start:t%l,end:e%l,loop:i,style:o}),h=o,u=e%l)}}for(const t of e){u=a?u:t.start;let e,r=n[u%l];for(d=u+1;d<=t.end;d++){const a=n[d%l];e=yr(i.setContext(Ao(o,{type:"segment",p0:r,p1:a,p0DataIndex:(d-1)%l,p1DataIndex:d%l,datasetIndex:s}))),wr(e,h)&&f(u,d-1,t.loop,h),r=a,h=e}u<d-1&&f(u,d-1,t.loop,h)}return c}(t,e,n,i):e}function yr(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function wr(t,e){if(!e)return!1;const n=[],i=function(t,e){return Wi(e)?(n.includes(e)||n.push(e),n.indexOf(e)):e};return JSON.stringify(t,i)!==JSON.stringify(e,i)}function xr(t,e,n){return t.options.clip?t[n]:e[n]}function _r(t,e){const n=e._clip;if(n.disabled)return!1;const i=function(t,e){const{xScale:n,yScale:i}=t;return n&&i?{left:xr(n,e,"left"),right:xr(n,e,"right"),top:xr(i,e,"top"),bottom:xr(i,e,"bottom")}:e}(e,t.chartArea);return{left:!1===n.left?0:i.left-(!0===n.left?0:n.left),right:!1===n.right?t.width:i.right+(!0===n.right?0:n.right),top:!1===n.top?0:i.top-(!0===n.top?0:n.top),bottom:!1===n.bottom?t.height:i.bottom+(!0===n.bottom?0:n.bottom)}}class Sr{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,i){const o=e.listeners[i],r=e.duration;o.forEach((i=>i({chart:t,initial:e.initial,numSteps:r,currentStep:Math.min(n-e.start,r)})))}_refresh(){this._request||(this._running=!0,this._request=Ei.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((n,i)=>{if(!n.running||!n.items.length)return;const o=n.items;let r,s=o.length-1,a=!1;for(;s>=0;--s)r=o[s],r._active?(r._total>n.duration&&(n.duration=r._total),r.tick(t),a=!0):(o[s]=o[o.length-1],o.pop());a&&(i.draw(),this._notify(i,n,t,"progress")),o.length||(n.running=!1,this._notify(i,n,t,"complete"),n.initial=!1),e+=o.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Cr=new Sr;const kr="transparent",Dr={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const i=$i(t||kr),o=i.valid&&$i(e||kr);return o&&o.valid?o.mix(i,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class Tr{constructor(t,e,n,i){const o=e[n];i=To([t.to,i,o,t.from]);const r=To([t.from,o,i]);this._active=!0,this._fn=t.fn||Dr[t.type||typeof r],this._easing=zi[t.easing]||zi.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=r,this._to=i,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const i=this._target[this._prop],o=n-this._start,r=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=To([t.to,e,i,t.from]),this._from=To([t.from,i,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,i=this._prop,o=this._from,r=this._loop,s=this._to;let a;if(this._active=o!==s&&(r||e<n),!this._active)return this._target[i]=s,void this._notify(!0);e<0?this._target[i]=o:(a=e/n%2,a=r&&a>1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[i]=this._fn(o,s,a))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,n)=>{t.push({res:e,rej:n})}))}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let t=0;t<n.length;t++)n[t][e]()}}class Ar{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!Fn(t))return;const e=Object.keys(no.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach((i=>{const o=t[i];if(!Fn(o))return;const r={};for(const t of e)r[t]=o[t];(Rn(o.properties)&&o.properties||[i]).forEach((t=>{t!==i&&n.has(t)||n.set(t,r)}))}))}_animateOptions(t,e){const n=e.options,i=function(t,e){if(!e)return;let n=t.options;if(!n)return void(t.options=e);n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(t,n);if(!i)return[];const o=this._createAnimations(i,n);return n.$shared&&function(t,e){const n=[],i=Object.keys(e);for(let e=0;e<i.length;e++){const o=t[i[e]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}(t.options.$animations,n).then((()=>{t.options=n}),(()=>{})),o}_createAnimations(t,e){const n=this._properties,i=[],o=t.$animations||(t.$animations={}),r=Object.keys(e),s=Date.now();let a;for(a=r.length-1;a>=0;--a){const l=r[a];if("$"===l.charAt(0))continue;if("options"===l){i.push(...this._animateOptions(t,e));continue}const c=e[l];let h=o[l];const u=n.get(l);if(h){if(u&&h.active()){h.update(u,c,s);continue}h.cancel()}u&&u.duration?(o[l]=h=new Tr(u,t,l,c),i.push(h)):t[l]=c}return i}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(Cr.add(this._chart,n),!0):void 0}}function Mr(t,e){const n=t&&t.options||{},i=n.reverse,o=void 0===n.min?e:0,r=void 0===n.max?e:0;return{start:i?r:o,end:i?o:r}}function Pr(t,e){const n=[],i=t._getSortedDatasetMetas(e);let o,r;for(o=0,r=i.length;o<r;++o)n.push(i[o].index);return n}function Lr(t,e,n,i={}){const o=t.keys,r="single"===i.mode;let s,a,l,c;if(null===e)return;let h=!1;for(s=0,a=o.length;s<a;++s){if(l=+o[s],l===n){if(h=!0,i.all)continue;break}c=t.values[l],jn(c)&&(r||0===e||ui(e)===ui(c))&&(e+=c)}return h||i.all?e:0}function Er(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function Ir(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function Or(t,e,n,i){for(const o of e.getMatchingVisibleMetas(i).reverse()){const e=t[o.index];if(n&&e>0||!n&&e<0)return o.index}return null}function Rr(t,e){const{chart:n,_cachedMeta:i}=t,o=n._stacks||(n._stacks={}),{iScale:r,vScale:s,index:a}=i,l=r.axis,c=s.axis,h=function(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}(r,s,i),u=e.length;let d;for(let t=0;t<u;++t){const n=e[t],{[l]:r,[c]:u}=n;d=(n._stacks||(n._stacks={}))[c]=Ir(o,h,r),d[a]=u,d._top=Or(d,s,!0,i.type),d._bottom=Or(d,s,!1,i.type);(d._visualValues||(d._visualValues={}))[a]=u}}function Fr(t,e){const n=t.scales;return Object.keys(n).filter((t=>n[t].axis===e)).shift()}function jr(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[i]||void 0===e[i][n])return;delete e[i][n],void 0!==e[i]._visualValues&&void 0!==e[i]._visualValues[n]&&delete e[i]._visualValues[n]}}}const Br=t=>"reset"===t||"none"===t,Nr=(t,e)=>e?t:Object.assign({},t);class Hr{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Er(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&jr(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),i=(t,e,n,i)=>"x"===t?e:"r"===t?i:n,o=e.xAxisID=Nn(n.xAxisID,Fr(t,"x")),r=e.yAxisID=Nn(n.yAxisID,Fr(t,"y")),s=e.rAxisID=Nn(n.rAxisID,Fr(t,"r")),a=e.indexAxis,l=e.iAxisID=i(a,o,r,s),c=e.vAxisID=i(a,r,o,s);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(r),e.rScale=this.getScaleForId(s),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Pi(this._data,this),t._stacked&&jr(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(Fn(e)){const t=this._cachedMeta;this._data=function(t,e){const{iScale:n,vScale:i}=e,o="x"===n.axis?"x":"y",r="x"===i.axis?"x":"y",s=Object.keys(t),a=new Array(s.length);let l,c,h;for(l=0,c=s.length;l<c;++l)h=s[l],a[l]={[o]:h,[r]:t[h]};return a}(e,t)}else if(n!==e){if(n){Pi(n,this);const t=this._cachedMeta;jr(t),t._parsed=[]}e&&Object.isExtensible(e)&&(o=this,(i=e)._chartjs?i._chartjs.listeners.push(o):(Object.defineProperty(i,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[o]}}),Mi.forEach((t=>{const e="_onData"+Zn(t),n=i[t];Object.defineProperty(i,t,{configurable:!0,enumerable:!1,value(...t){const o=n.apply(this,t);return i._chartjs.listeners.forEach((n=>{"function"==typeof n[e]&&n[e](...t)})),o}})})))),this._syncList=[],this._data=e}var i,o}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const o=e._stacked;e._stacked=Er(e.vScale,e),e.stack!==n.stack&&(i=!0,jr(e),e.stack=n.stack),this._resyncElements(t),(i||o!==e._stacked)&&(Rr(this,e._parsed),e._stacked=Er(e.vScale,e))}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:n,_data:i}=this,{iScale:o,_stacked:r}=n,s=o.axis;let a,l,c,h=0===t&&e===i.length||n._sorted,u=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=i,n._sorted=!0,c=i;else{c=Rn(i[t])?this.parseArrayData(n,i,t,e):Fn(i[t])?this.parseObjectData(n,i,t,e):this.parsePrimitiveData(n,i,t,e);const o=()=>null===l[s]||u&&l[s]<u[s];for(a=0;a<e;++a)n._parsed[a+t]=l=c[a],h&&(o()&&(h=!1),u=l);n._sorted=h}r&&Rr(this,c)}parsePrimitiveData(t,e,n,i){const{iScale:o,vScale:r}=t,s=o.axis,a=r.axis,l=o.getLabels(),c=o===r,h=new Array(i);let u,d,f;for(u=0,d=i;u<d;++u)f=u+n,h[u]={[s]:c||o.parse(l[f],f),[a]:r.parse(e[f],f)};return h}parseArrayData(t,e,n,i){const{xScale:o,yScale:r}=t,s=new Array(i);let a,l,c,h;for(a=0,l=i;a<l;++a)c=a+n,h=e[c],s[a]={x:o.parse(h[0],c),y:r.parse(h[1],c)};return s}parseObjectData(t,e,n,i){const{xScale:o,yScale:r}=t,{xAxisKey:s="x",yAxisKey:a="y"}=this._parsing,l=new Array(i);let c,h,u,d;for(c=0,h=i;c<h;++c)u=c+n,d=e[u],l[c]={x:o.parse(Kn(d,s),u),y:r.parse(Kn(d,a),u)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const i=this.chart,o=this._cachedMeta,r=e[t.axis];return Lr({keys:Pr(i,!0),values:e._stacks[t.axis]._visualValues},r,o.index,{mode:n})}updateRangeFromParsed(t,e,n,i){const o=n[e.axis];let r=null===o?NaN:o;const s=i&&n._stacks[e.axis];i&&s&&(i.values=s,r=Lr(i,o,this._cachedMeta.index)),t.min=Math.min(t.min,r),t.max=Math.max(t.max,r)}getMinMax(t,e){const n=this._cachedMeta,i=n._parsed,o=n._sorted&&t===n.iScale,r=i.length,s=this._getOtherScale(t),a=((t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:Pr(n,!0),values:null})(e,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:h}=function(t){const{min:e,max:n,minDefined:i,maxDefined:o}=t.getUserBounds();return{min:i?e:Number.NEGATIVE_INFINITY,max:o?n:Number.POSITIVE_INFINITY}}(s);let u,d;function f(){d=i[u];const e=d[s.axis];return!jn(d[t.axis])||c>e||h<e}for(u=0;u<r&&(f()||(this.updateRangeFromParsed(l,t,d,a),!o));++u);if(o)for(u=r-1;u>=0;--u)if(!f()){this.updateRangeFromParsed(l,t,d,a);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let i,o,r;for(i=0,o=e.length;i<o;++i)r=e[i][t.axis],jn(r)&&n.push(r);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,i=e.vScale,o=this.getParsed(t);return{label:n?""+n.getLabelForValue(o[n.axis]):"",value:i?""+i.getLabelForValue(o[i.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,n,i,o;return Fn(t)?(e=t.top,n=t.right,i=t.bottom,o=t.left):e=n=i=o=t,{top:e,right:n,bottom:i,left:o,disabled:!1===t}}(Nn(this.options.clip,function(t,e,n){if(!1===n)return!1;const i=Mr(t,n),o=Mr(e,n);return{top:o.end,right:i.end,bottom:o.start,left:i.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,n=this._cachedMeta,i=n.data||[],o=e.chartArea,r=[],s=this._drawStart||0,a=this._drawCount||i.length-s,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(t,o,s,a),c=s;c<s+a;++c){const e=i[c];e.hidden||(e.active&&l?r.push(e):e.draw(t,o))}for(c=0;c<r.length;++c)r[c].draw(t,o)}getStyle(t,e){const n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,e,n){const i=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];o=e.$context||(e.$context=function(t,e,n){return Ao(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),o.parsed=this.getParsed(t),o.raw=i.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=function(t,e){return Ao(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),o.dataset=i,o.index=o.datasetIndex=this.index;return o.active=!!e,o.mode=n,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",n){const i="active"===e,o=this._cachedDataOpts,r=t+"-"+e,s=o[r],a=this.enableOptionSharing&&Qn(n);if(s)return Nr(s,a);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),h=i?[`${t}Hover`,"hover",t,""]:[t,""],u=l.getOptionScopes(this.getDataset(),c),d=Object.keys(no.elements[t]),f=l.resolveNamedOptions(u,d,(()=>this.getContext(n,i,e)),h);return f.$shared&&(f.$shared=a,o[r]=Object.freeze(Nr(f,a))),f}_resolveAnimations(t,e,n){const i=this.chart,o=this._cachedDataOpts,r=`animation-${e}`,s=o[r];if(s)return s;let a;if(!1!==i.options.animation){const i=this.chart.config,o=i.datasetAnimationScopeKeys(this._type,e),r=i.getOptionScopes(this.getDataset(),o);a=i.createResolver(r,this.getContext(t,n,e))}const l=new Ar(i,a&&a.animations);return a&&a._cacheable&&(o[r]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Br(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),i=this._sharedOptions,o=this.getSharedOptions(n),r=this.includeOptions(e,o)||o!==i;return this.updateSharedOptions(o,e,n),{sharedOptions:o,includeOptions:r}}updateElement(t,e,n,i){Br(i)?Object.assign(t,n):this._resolveAnimations(e,i).update(t,n)}updateSharedOptions(t,e,n){t&&!Br(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,i){t.active=i;const o=this.getStyle(e,i);this._resolveAnimations(e,n,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,n=this._cachedMeta.data;for(const[t,e,n]of this._syncList)this[t](e,n);this._syncList=[];const i=n.length,o=e.length,r=Math.min(o,i);r&&this.parse(0,r),o>i?this._insertElements(i,o-i,t):o<i&&this._removeElements(o,i-o)}_insertElements(t,e,n=!0){const i=this._cachedMeta,o=i.data,r=t+e;let s;const a=t=>{for(t.length+=e,s=t.length-1;s>=r;s--)t[s]=t[s-e]};for(a(o),s=t;s<r;++s)o[s]=new this.dataElementType;this._parsing&&a(i._parsed),this.parse(t,e),n&&this.updateElements(o,t,e,"reset")}updateElements(t,e,n,i){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const i=n._parsed.splice(t,e);n._stacked&&jr(n,i)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,n,i]=t;this[e](n,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function zr(t){const e=t.iScale,n=function(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let i=[];for(let e=0,o=n.length;e<o;e++)i=i.concat(n[e].controller.getAllParsedValues(t));t._cache.$bar=Li(i.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let i,o,r,s,a=e._length;const l=()=>{32767!==r&&-32768!==r&&(Qn(s)&&(a=Math.min(a,Math.abs(r-s)||a)),s=r)};for(i=0,o=n.length;i<o;++i)r=e.getPixelForValue(n[i]),l();for(s=void 0,i=0,o=e.ticks.length;i<o;++i)r=e.getPixelForTick(i),l();return a}function Wr(t,e,n,i){return Rn(t)?function(t,e,n,i){const o=n.parse(t[0],i),r=n.parse(t[1],i),s=Math.min(o,r),a=Math.max(o,r);let l=s,c=a;Math.abs(s)>Math.abs(a)&&(l=a,c=s),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:o,end:r,min:s,max:a}}(t,e,n,i):e[n.axis]=n.parse(t,i),e}function $r(t,e,n,i){const o=t.iScale,r=t.vScale,s=o.getLabels(),a=o===r,l=[];let c,h,u,d;for(c=n,h=n+i;c<h;++c)d=e[c],u={},u[o.axis]=a||o.parse(s[c],c),l.push(Wr(d,u,r,c));return l}function Vr(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function qr(t,e,n,i){let o=e.borderSkipped;const r={};if(!o)return void(t.borderSkipped=r);if(!0===o)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:s,end:a,reverse:l,top:c,bottom:h}=function(t){let e,n,i,o,r;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.base<t.y,n="bottom",i="top"),e?(o="end",r="start"):(o="start",r="end"),{start:n,end:i,reverse:e,top:o,bottom:r}}(t);"middle"===o&&n&&(t.enableBorderRadius=!0,(n._top||0)===i?o=c:(n._bottom||0)===i?o=h:(r[Ur(h,s,a,l)]=!0,o=c)),r[Ur(o,s,a,l)]=!0,t.borderSkipped=r}function Ur(t,e,n,i){var o,r,s;return i?(s=n,t=Xr(t=(o=t)===(r=e)?s:o===s?r:o,n,e)):t=Xr(t,e,n),t}function Xr(t,e,n){return"start"===t?e:"end"===t?n:t}function Yr(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}class Jr extends Hr{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n,color:i}}=t.legend.options;return e.labels.map(((e,o)=>{const r=t.getDatasetMeta(0).controller.getStyle(o);return{text:e,fillStyle:r.backgroundColor,strokeStyle:r.borderColor,fontColor:i,lineWidth:r.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(o),index:o}}))}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}}}};constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const n=this.getDataset().data,i=this._cachedMeta;if(!1===this._parsing)i._parsed=n;else{let o,r,s=t=>+n[t];if(Fn(n[t])){const{key:t="value"}=this._parsing;s=e=>+Kn(n[e],t)}for(o=t,r=t+e;o<r;++o)i._parsed[o]=s(o)}}_getRotation(){return mi(this.options.rotation-90)}_getCircumference(){return mi(this.options.circumference)}_getRotationExtents(){let t=ii,e=-ii;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const i=this.chart.getDatasetMeta(n).controller,o=i._getRotation(),r=i._getCircumference();t=Math.min(t,o),e=Math.max(e,o+r)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:n}=e,i=this._cachedMeta,o=i.data,r=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,s=Math.max((Math.min(n.width,n.height)-r)/2,0),a=Math.min((l=this.options.cutout,c=s,"string"==typeof l&&l.endsWith("%")?parseFloat(l)/100:+l/c),1);var l,c;const h=this._getRingWeight(this.index),{circumference:u,rotation:d}=this._getRotationExtents(),{ratioX:f,ratioY:p,offsetX:g,offsetY:m}=function(t,e,n){let i=1,o=1,r=0,s=0;if(e<ii){const a=t,l=a+e,c=Math.cos(a),h=Math.sin(a),u=Math.cos(l),d=Math.sin(l),f=(t,e,i)=>Si(t,a,l,!0)?1:Math.max(e,e*n,i,i*n),p=(t,e,i)=>Si(t,a,l,!0)?-1:Math.min(e,e*n,i,i*n),g=f(0,c,u),m=f(ai,h,d),b=p(ni,c,u),v=p(ni+ai,h,d);i=(g-b)/2,o=(m-v)/2,r=-(g+b)/2,s=-(m+v)/2}return{ratioX:i,ratioY:o,offsetX:r,offsetY:s}}(d,u,a),b=(n.width-r)/f,v=(n.height-r)/p,y=Math.max(Math.min(b,v)/2,0),w=Hn(this.options.radius,y),x=(w-Math.max(w*a,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*w,this.offsetY=m*w,i.total=this.calculateTotal(),this.outerRadius=w-x*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-x*h,0),this.updateElements(o,0,o.length,t)}_circumference(t,e){const n=this.options,i=this._cachedMeta,o=this._getCircumference();return e&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===i._parsed[t]||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*o/ii)}updateElements(t,e,n,i){const o="reset"===i,r=this.chart,s=r.chartArea,a=r.options.animation,l=(s.left+s.right)/2,c=(s.top+s.bottom)/2,h=o&&a.animateScale,u=h?0:this.innerRadius,d=h?0:this.outerRadius,{sharedOptions:f,includeOptions:p}=this._getSharedOptions(e,i);let g,m=this._getRotation();for(g=0;g<e;++g)m+=this._circumference(g,o);for(g=e;g<e+n;++g){const e=this._circumference(g,o),n=t[g],r={x:l+this.offsetX,y:c+this.offsetY,startAngle:m,endAngle:m+e,circumference:e,outerRadius:d,innerRadius:u};p&&(r.options=f||this.resolveDataElementOptions(g,n.active?"active":i)),m+=e,this.updateElement(n,g,r,i)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let n,i=0;for(n=0;n<e.length;n++){const o=t._parsed[n];null===o||isNaN(o)||!this.chart.getDataVisibility(n)||e[n].hidden||(i+=Math.abs(o))}return i}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?ii*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],o=Yi(e._parsed[t],n.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const n=this.chart;let i,o,r,s,a;if(!t)for(i=0,o=n.data.datasets.length;i<o;++i)if(n.isDatasetVisible(i)){r=n.getDatasetMeta(i),t=r.data,s=r.controller;break}if(!t)return 0;for(i=0,o=t.length;i<o;++i)a=s.resolveDataElementOptions(i),"inner"!==a.borderAlign&&(e=Math.max(e,a.borderWidth||0,a.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let n=0,i=t.length;n<i;++n){const t=this.resolveDataElementOptions(n);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e}_getRingWeight(t){return Math.max(Nn(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class Gr extends Hr{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n,color:i}}=t.legend.options;return e.labels.map(((e,o)=>{const r=t.getDatasetMeta(0).controller.getStyle(o);return{text:e,fillStyle:r.backgroundColor,strokeStyle:r.borderColor,fontColor:i,lineWidth:r.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(o),index:o}}))}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],o=Yi(e._parsed[t].r,n.options.locale);return{label:i[t]||"",value:o}}parseObjectData(t,e,n,i){return Wo.bind(this)(t,e,n,i)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach(((t,n)=>{const i=this.getParsed(n).r;!isNaN(i)&&this.chart.getDataVisibility(n)&&(i<e.min&&(e.min=i),i>e.max&&(e.max=i))})),e}_updateRadius(){const t=this.chart,e=t.chartArea,n=t.options,i=Math.min(e.right-e.left,e.bottom-e.top),o=Math.max(i/2,0),r=(o-Math.max(n.cutoutPercentage?o/100*n.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=o-r*this.index,this.innerRadius=this.outerRadius-r}updateElements(t,e,n,i){const o="reset"===i,r=this.chart,s=r.options.animation,a=this._cachedMeta.rScale,l=a.xCenter,c=a.yCenter,h=a.getIndexAngle(0)-.5*ni;let u,d=h;const f=360/this.countVisibleElements();for(u=0;u<e;++u)d+=this._computeAngle(u,i,f);for(u=e;u<e+n;u++){const e=t[u];let n=d,p=d+this._computeAngle(u,i,f),g=r.getDataVisibility(u)?a.getDistanceFromCenterForValue(this.getParsed(u).r):0;d=p,o&&(s.animateScale&&(g=0),s.animateRotate&&(n=p=h));const m={x:l,y:c,innerRadius:0,outerRadius:g,startAngle:n,endAngle:p,options:this.resolveDataElementOptions(u,e.active?"active":i)};this.updateElement(e,u,m,i)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach(((t,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&e++})),e}_computeAngle(t,e,n){return this.chart.getDataVisibility(t)?mi(this.resolveDataElementOptions(t,e).angle||n):0}}var Kr=Object.freeze({__proto__:null,BarController:class extends Hr{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,e,n,i){return $r(t,e,n,i)}parseArrayData(t,e,n,i){return $r(t,e,n,i)}parseObjectData(t,e,n,i){const{iScale:o,vScale:r}=t,{xAxisKey:s="x",yAxisKey:a="y"}=this._parsing,l="x"===o.axis?s:a,c="x"===r.axis?s:a,h=[];let u,d,f,p;for(u=n,d=n+i;u<d;++u)p=e[u],f={},f[o.axis]=o.parse(Kn(p,l),u),h.push(Wr(Kn(p,c),f,r,u));return h}updateRangeFromParsed(t,e,n,i){super.updateRangeFromParsed(t,e,n,i);const o=n._custom;o&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:n,vScale:i}=e,o=this.getParsed(t),r=o._custom,s=Vr(r)?"["+r.start+", "+r.end+"]":""+i.getLabelForValue(o[i.axis]);return{label:""+n.getLabelForValue(o[n.axis]),value:s}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,n,i){const o="reset"===i,{index:r,_cachedMeta:{vScale:s}}=this,a=s.getBasePixel(),l=s.isHorizontal(),c=this._getRuler(),{sharedOptions:h,includeOptions:u}=this._getSharedOptions(e,i);for(let d=e;d<e+n;d++){const e=this.getParsed(d),n=o||On(e[s.axis])?{base:a,head:a}:this._calculateBarValuePixels(d),f=this._calculateBarIndexPixels(d,c),p=(e._stacks||{})[s.axis],g={horizontal:l,base:n.base,enableBorderRadius:!p||Vr(e._custom)||r===p._top||r===p._bottom,x:l?n.head:f.center,y:l?f.center:n.head,height:l?f.size:Math.abs(n.size),width:l?Math.abs(n.size):f.size};u&&(g.options=h||this.resolveDataElementOptions(d,t[d].active?"active":i));const m=g.options||t[d].options;qr(g,m,p,r),Yr(g,m,c.ratio),this.updateElement(t[d],d,g,i)}}_getStacks(t,e){const{iScale:n}=this._cachedMeta,i=n.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),o=n.options.stacked,r=[],s=this._cachedMeta.controller.getParsed(e),a=s&&s[n.axis],l=t=>{const e=t._parsed.find((t=>t[n.axis]===a)),i=e&&e[t.vScale.axis];if(On(i)||isNaN(i))return!0};for(const n of i)if((void 0===e||!l(n))&&((!1===o||-1===r.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&r.push(n.stack),n.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const t=this.chart.scales,e=this.chart.options.indexAxis;return Object.keys(t).filter((n=>t[n].axis===e)).shift()}_getAxis(){const t={},e=this.getFirstScaleIdForIndexAxis();for(const n of this.chart.data.datasets)t[Nn("x"===this.chart.options.indexAxis?n.xAxisID:n.yAxisID,e)]=!0;return Object.keys(t)}_getStackIndex(t,e,n){const i=this._getStacks(t,n),o=void 0!==e?i.indexOf(e):-1;return-1===o?i.length-1:o}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,i=[];let o,r;for(o=0,r=e.data.length;o<r;++o)i.push(n.getPixelForValue(this.getParsed(o)[n.axis],o));const s=t.barThickness;return{min:s||zr(e),pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:s?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:n,index:i},options:{base:o,minBarLength:r}}=this,s=o||0,a=this.getParsed(t),l=a._custom,c=Vr(l);let h,u,d=a[e.axis],f=0,p=n?this.applyStack(e,a,n):d;p!==d&&(f=p-d,p=d),c&&(d=l.barStart,p=l.barEnd-l.barStart,0!==d&&ui(d)!==ui(l.barEnd)&&(f=0),f+=d);const g=On(o)||c?f:o;let m=e.getPixelForValue(g);if(h=this.chart.getDataVisibility(t)?e.getPixelForValue(f+p):m,u=h-m,Math.abs(u)<r){u=function(t,e,n){return 0!==t?ui(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(u,e,s)*r,d===s&&(m-=u/2);const t=e.getPixelForDecimal(0),o=e.getPixelForDecimal(1),l=Math.min(t,o),f=Math.max(t,o);m=Math.max(Math.min(m,f),l),h=m+u,n&&!c&&(a._stacks[e.axis]._visualValues[i]=e.getValueForPixel(h)-e.getValueForPixel(m))}if(m===e.getPixelForValue(s)){const t=ui(u)*e.getLineWidthForValue(s)/2;m+=t,u-=t}return{size:u,base:m,head:h,center:h+u/2}}_calculateBarIndexPixels(t,e){const n=e.scale,i=this.options,o=i.skipNull,r=Nn(i.maxBarThickness,1/0);let s,a;const l=this._getAxisCount();if(e.grouped){const n=o?this._getStackCount(t):e.stackCount,c="flex"===i.barThickness?function(t,e,n,i){const o=e.pixels,r=o[t];let s=t>0?o[t-1]:null,a=t<o.length-1?o[t+1]:null;const l=n.categoryPercentage;null===s&&(s=r-(null===a?e.end-e.start:a-r)),null===a&&(a=r+r-s);const c=r-(r-Math.min(s,a))/2*l;return{chunk:Math.abs(a-s)/2*l/i,ratio:n.barPercentage,start:c}}(t,e,i,n*l):function(t,e,n,i){const o=n.barThickness;let r,s;return On(o)?(r=e.min*n.categoryPercentage,s=n.barPercentage):(r=o*i,s=1),{chunk:r/i,ratio:s,start:e.pixels[t]-r/2}}(t,e,i,n*l),h="x"===this.chart.options.indexAxis?this.getDataset().xAxisID:this.getDataset().yAxisID,u=this._getAxis().indexOf(Nn(h,this.getFirstScaleIdForIndexAxis())),d=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0)+u;s=c.start+c.chunk*d+c.chunk/2,a=Math.min(r,c.chunk*c.ratio)}else s=n.getPixelForValue(this.getParsed(t)[n.axis],t),a=Math.min(r,e.min*e.ratio);return{base:s-a/2,head:s+a/2,center:s,size:a}}draw(){const t=this._cachedMeta,e=t.vScale,n=t.data,i=n.length;let o=0;for(;o<i;++o)null===this.getParsed(o)[e.axis]||n[o].hidden||n[o].draw(this._ctx)}},BubbleController:class extends Hr{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,n,i){const o=super.parsePrimitiveData(t,e,n,i);for(let t=0;t<o.length;t++)o[t]._custom=this.resolveDataElementOptions(t+n).radius;return o}parseArrayData(t,e,n,i){const o=super.parseArrayData(t,e,n,i);for(let t=0;t<o.length;t++){const i=e[n+t];o[t]._custom=Nn(i[2],this.resolveDataElementOptions(t+n).radius)}return o}parseObjectData(t,e,n,i){const o=super.parseObjectData(t,e,n,i);for(let t=0;t<o.length;t++){const i=e[n+t];o[t]._custom=Nn(i&&i.r&&+i.r,this.resolveDataElementOptions(t+n).radius)}return o}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart.data.labels||[],{xScale:i,yScale:o}=e,r=this.getParsed(t),s=i.getLabelForValue(r.x),a=o.getLabelForValue(r.y),l=r._custom;return{label:n[t]||"",value:"("+s+", "+a+(l?", "+l:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,n,i){const o="reset"===i,{iScale:r,vScale:s}=this._cachedMeta,{sharedOptions:a,includeOptions:l}=this._getSharedOptions(e,i),c=r.axis,h=s.axis;for(let u=e;u<e+n;u++){const e=t[u],n=!o&&this.getParsed(u),d={},f=d[c]=o?r.getPixelForDecimal(.5):r.getPixelForValue(n[c]),p=d[h]=o?s.getBasePixel():s.getPixelForValue(n[h]);d.skip=isNaN(f)||isNaN(p),l&&(d.options=a||this.resolveDataElementOptions(u,e.active?"active":i),o&&(d.options.radius=0)),this.updateElement(e,u,d,i)}}resolveDataElementOptions(t,e){const n=this.getParsed(t);let i=super.resolveDataElementOptions(t,e);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const o=i.radius;return"active"!==e&&(i.radius=0),i.radius+=Nn(n&&n._custom,o),i}},DoughnutController:Jr,LineController:class extends Hr{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:n,data:i=[],_dataset:o}=e,r=this.chart._animationsDisabled;let{start:s,count:a}=Fi(e,i,r);this._drawStart=s,this._drawCount=a,ji(e)&&(s=0,a=i.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=i;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!r,options:l},t),this.updateElements(i,s,a,t)}updateElements(t,e,n,i){const o="reset"===i,{iScale:r,vScale:s,_stacked:a,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:h}=this._getSharedOptions(e,i),u=r.axis,d=s.axis,{spanGaps:f,segment:p}=this.options,g=pi(f)?f:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||o||"none"===i,b=e+n,v=t.length;let y=e>0&&this.getParsed(e-1);for(let n=0;n<v;++n){const f=t[n],v=m?f:{};if(n<e||n>=b){v.skip=!0;continue}const w=this.getParsed(n),x=On(w[d]),_=v[u]=r.getPixelForValue(w[u],n),S=v[d]=o||x?s.getBasePixel():s.getPixelForValue(a?this.applyStack(s,w,a):w[d],n);v.skip=isNaN(_)||isNaN(S)||x,v.stop=n>0&&Math.abs(w[u]-y[u])>g,p&&(v.parsed=w,v.raw=l.data[n]),h&&(v.options=c||this.resolveDataElementOptions(n,f.active?"active":i)),m||this.updateElement(f,n,v,i),y=w}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,n=e.options&&e.options.borderWidth||0,i=t.data||[];if(!i.length)return n;const o=i[0].size(this.resolveDataElementOptions(0)),r=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(n,o,r)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}},PieController:class extends Jr{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}},PolarAreaController:Gr,RadarController:class extends Hr{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(t){const e=this._cachedMeta.vScale,n=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(n[e.axis])}}parseObjectData(t,e,n,i){return Wo.bind(this)(t,e,n,i)}update(t){const e=this._cachedMeta,n=e.dataset,i=e.data||[],o=e.iScale.getLabels();if(n.points=i,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const r={_loop:!0,_fullLoop:o.length===i.length,options:e};this.updateElement(n,void 0,r,t)}this.updateElements(i,0,i.length,t)}updateElements(t,e,n,i){const o=this._cachedMeta.rScale,r="reset"===i;for(let s=e;s<e+n;s++){const e=t[s],n=this.resolveDataElementOptions(s,e.active?"active":i),a=o.getPointPositionForValue(s,this.getParsed(s).r),l=r?o.xCenter:a.x,c=r?o.yCenter:a.y,h={x:l,y:c,angle:a.angle,skip:isNaN(l)||isNaN(c),options:n};this.updateElement(e,s,h,i)}}},ScatterController:class extends Hr{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(t){const e=this._cachedMeta,n=this.chart.data.labels||[],{xScale:i,yScale:o}=e,r=this.getParsed(t),s=i.getLabelForValue(r.x),a=o.getLabelForValue(r.y);return{label:n[t]||"",value:"("+s+", "+a+")"}}update(t){const e=this._cachedMeta,{data:n=[]}=e,i=this.chart._animationsDisabled;let{start:o,count:r}=Fi(e,n,i);if(this._drawStart=o,this._drawCount=r,ji(e)&&(o=0,r=n.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:o,_dataset:r}=e;o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!r._decimated,o.points=n;const s=this.resolveDatasetElementOptions(t);s.segment=this.options.segment,this.updateElement(o,void 0,{animated:!i,options:s},t)}else this.datasetElementType&&(delete e.dataset,this.datasetElementType=!1);this.updateElements(n,o,r,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,e,n,i){const o="reset"===i,{iScale:r,vScale:s,_stacked:a,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(e,i),h=this.getSharedOptions(c),u=this.includeOptions(i,h),d=r.axis,f=s.axis,{spanGaps:p,segment:g}=this.options,m=pi(p)?p:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||"none"===i;let v=e>0&&this.getParsed(e-1);for(let c=e;c<e+n;++c){const e=t[c],n=this.getParsed(c),p=b?e:{},y=On(n[f]),w=p[d]=r.getPixelForValue(n[d],c),x=p[f]=o||y?s.getBasePixel():s.getPixelForValue(a?this.applyStack(s,n,a):n[f],c);p.skip=isNaN(w)||isNaN(x)||y,p.stop=c>0&&Math.abs(n[d]-v[d])>m,g&&(p.parsed=n,p.raw=l.data[c]),u&&(p.options=h||this.resolveDataElementOptions(c,e.active?"active":i)),b||this.updateElement(e,c,p,i),v=n}this.updateSharedOptions(h,i,c)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}const n=t.dataset,i=n.options&&n.options.borderWidth||0;if(!e.length)return i;const o=e[0].size(this.resolveDataElementOptions(0)),r=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(i,o,r)/2}}});function Zr(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Qr{static override(t){Object.assign(Qr.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return Zr()}parse(){return Zr()}format(){return Zr()}add(){return Zr()}diff(){return Zr()}startOf(){return Zr()}endOf(){return Zr()}}var ts=Qr;function es(t,e,n,i){const{controller:o,data:r,_sorted:s}=t,a=o._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(a&&e===a.axis&&"r"!==e&&s&&r.length){const s=a._reversePixels?Ai:Ti;if(!i){const i=s(r,e,n);if(l){const{vScale:e}=o._cachedMeta,{_parsed:n}=t,r=n.slice(0,i.lo+1).reverse().findIndex((t=>!On(t[e.axis])));i.lo-=Math.max(0,r);const s=n.slice(i.hi).findIndex((t=>!On(t[e.axis])));i.hi+=Math.max(0,s)}return i}if(o._sharedOptions){const t=r[0],i="function"==typeof t.getRange&&t.getRange(e);if(i){const t=s(r,e,n-i),o=s(r,e,n+i);return{lo:t.lo,hi:o.hi}}}}return{lo:0,hi:r.length-1}}function ns(t,e,n,i,o){const r=t.getSortedVisibleDatasetMetas(),s=n[e];for(let t=0,n=r.length;t<n;++t){const{index:n,data:a}=r[t],{lo:l,hi:c}=es(r[t],e,s,o);for(let t=l;t<=c;++t){const e=a[t];e.skip||i(e,n,t)}}}function is(t,e,n,i,o){const r=[];if(!o&&!t.isPointInArea(e))return r;return ns(t,n,e,(function(n,s,a){(o||co(n,t.chartArea,0))&&n.inRange(e.x,e.y,i)&&r.push({element:n,datasetIndex:s,index:a})}),!0),r}function os(t,e,n,i,o,r){let s=[];const a=function(t){const e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,i){const o=e?Math.abs(t.x-i.x):0,r=n?Math.abs(t.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(r,2))}}(n);let l=Number.POSITIVE_INFINITY;return ns(t,n,e,(function(n,c,h){const u=n.inRange(e.x,e.y,o);if(i&&!u)return;const d=n.getCenterPoint(o);if(!(!!r||t.isPointInArea(d))&&!u)return;const f=a(e,d);f<l?(s=[{element:n,datasetIndex:c,index:h}],l=f):f===l&&s.push({element:n,datasetIndex:c,index:h})})),s}function rs(t,e,n,i,o,r){return r||t.isPointInArea(e)?"r"!==n||i?os(t,e,n,i,o,r):function(t,e,n,i){let o=[];return ns(t,n,e,(function(t,n,r){const{startAngle:s,endAngle:a}=t.getProps(["startAngle","endAngle"],i),{angle:l}=yi(t,{x:e.x,y:e.y});Si(l,s,a)&&o.push({element:t,datasetIndex:n,index:r})})),o}(t,e,n,o):[]}function ss(t,e,n,i,o){const r=[],s="x"===n?"inXRange":"inYRange";let a=!1;return ns(t,n,e,((t,i,l)=>{t[s]&&t[s](e[n],o)&&(r.push({element:t,datasetIndex:i,index:l}),a=a||t.inRange(e.x,e.y,o))})),i&&!a?[]:r}var as={evaluateInteractionItems:ns,modes:{index(t,e,n,i){const o=nr(e,t),r=n.axis||"x",s=n.includeInvisible||!1,a=n.intersect?is(t,o,r,i,s):rs(t,o,r,!1,i,s),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=a[0].index,n=t.data[e];n&&!n.skip&&l.push({element:n,datasetIndex:t.index,index:e})})),l):[]},dataset(t,e,n,i){const o=nr(e,t),r=n.axis||"xy",s=n.includeInvisible||!1;let a=n.intersect?is(t,o,r,i,s):rs(t,o,r,!1,i,s);if(a.length>0){const e=a[0].datasetIndex,n=t.getDatasetMeta(e).data;a=[];for(let t=0;t<n.length;++t)a.push({element:n[t],datasetIndex:e,index:t})}return a},point:(t,e,n,i)=>is(t,nr(e,t),n.axis||"xy",i,n.includeInvisible||!1),nearest(t,e,n,i){const o=nr(e,t),r=n.axis||"xy",s=n.includeInvisible||!1;return rs(t,o,r,n.intersect,i,s)},x:(t,e,n,i)=>ss(t,nr(e,t),"x",n.intersect,i),y:(t,e,n,i)=>ss(t,nr(e,t),"y",n.intersect,i)}};const ls=["left","top","right","bottom"];function cs(t,e){return t.filter((t=>t.pos===e))}function hs(t,e){return t.filter((t=>-1===ls.indexOf(t.pos)&&t.box.axis===e))}function us(t,e){return t.sort(((t,n)=>{const i=e?n:t,o=e?t:n;return i.weight===o.weight?i.index-o.index:i.weight-o.weight}))}function ds(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:i,stackWeight:o}=n;if(!t||!ls.includes(i))continue;const r=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=o}return e}(t),{vBoxMaxWidth:i,hBoxMaxHeight:o}=e;let r,s,a;for(r=0,s=t.length;r<s;++r){a=t[r];const{fullSize:s}=a.box,l=n[a.stack],c=l&&a.stackWeight/l.weight;a.horizontal?(a.width=c?c*i:s&&e.availableWidth,a.height=o):(a.width=i,a.height=c?c*o:s&&e.availableHeight)}return n}function fs(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function ps(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function gs(t,e,n,i){const{pos:o,box:r}=n,s=t.maxPadding;if(!Fn(o)){n.size&&(t[o]-=n.size);const e=i[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?r.height:r.width),n.size=e.size/e.count,t[o]+=n.size}r.getPadding&&ps(s,r.getPadding());const a=Math.max(0,e.outerWidth-fs(s,t,"left","right")),l=Math.max(0,e.outerHeight-fs(s,t,"top","bottom")),c=a!==t.w,h=l!==t.h;return t.w=a,t.h=l,n.horizontal?{same:c,other:h}:{same:h,other:c}}function ms(t,e){const n=e.maxPadding;function i(t){const i={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{i[t]=Math.max(e[t],n[t])})),i}return i(t?["left","right"]:["top","bottom"])}function bs(t,e,n,i){const o=[];let r,s,a,l,c,h;for(r=0,s=t.length,c=0;r<s;++r){a=t[r],l=a.box,l.update(a.width||e.w,a.height||e.h,ms(a.horizontal,e));const{same:s,other:u}=gs(e,n,a,i);c|=s&&o.length,h=h||u,l.fullSize||o.push(a)}return c&&bs(o,e,n,i)||h}function vs(t,e,n,i,o){t.top=n,t.left=e,t.right=e+i,t.bottom=n+o,t.width=i,t.height=o}function ys(t,e,n,i){const o=n.padding;let{x:r,y:s}=e;for(const a of t){const t=a.box,l=i[a.stack]||{count:1,placed:0,weight:1},c=a.stackWeight/l.weight||1;if(a.horizontal){const i=e.w*c,r=l.size||t.height;Qn(l.start)&&(s=l.start),t.fullSize?vs(t,o.left,s,n.outerWidth-o.right-o.left,r):vs(t,e.left+l.placed,s,i,r),l.start=s,l.placed+=i,s=t.bottom}else{const i=e.h*c,s=l.size||t.width;Qn(l.start)&&(r=l.start),t.fullSize?vs(t,r,o.top,s,n.outerHeight-o.bottom-o.top):vs(t,r,e.top+l.placed,s,i),l.start=r,l.placed+=i,r=t.right}}e.x=r,e.y=s}var ws={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,i){if(!t)return;const o=ko(t.options.layout.padding),r=Math.max(e-o.width,0),s=Math.max(n-o.height,0),a=function(t){const e=function(t){const e=[];let n,i,o,r,s,a;for(n=0,i=(t||[]).length;n<i;++n)o=t[n],({position:r,options:{stack:s,stackWeight:a=1}}=o),e.push({index:n,box:o,pos:r,horizontal:o.isHorizontal(),weight:o.weight,stack:s&&r+s,stackWeight:a});return e}(t),n=us(e.filter((t=>t.box.fullSize)),!0),i=us(cs(e,"left"),!0),o=us(cs(e,"right")),r=us(cs(e,"top"),!0),s=us(cs(e,"bottom")),a=hs(e,"x"),l=hs(e,"y");return{fullSize:n,leftAndTop:i.concat(r),rightAndBottom:o.concat(l).concat(s).concat(a),chartArea:cs(e,"chartArea"),vertical:i.concat(o).concat(l),horizontal:r.concat(s).concat(a)}}(t.boxes),l=a.vertical,c=a.horizontal;Wn(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const h=l.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,u=Object.freeze({outerWidth:e,outerHeight:n,padding:o,availableWidth:r,availableHeight:s,vBoxMaxWidth:r/2/h,hBoxMaxHeight:s/2}),d=Object.assign({},o);ps(d,ko(i));const f=Object.assign({maxPadding:d,w:r,h:s,x:o.left,y:o.top},o),p=ds(l.concat(c),u);bs(a.fullSize,f,u,p),bs(l,f,u,p),bs(c,f,u,p)&&bs(l,f,u,p),function(t){const e=t.maxPadding;function n(n){const i=Math.max(e[n]-t[n],0);return t[n]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(f),ys(a.leftAndTop,f,u,p),f.x+=f.w,f.y+=f.h,ys(a.rightAndBottom,f,u,p),t.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},Wn(a.chartArea,(e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})}))}};class xs{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,i){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,i?Math.floor(e/i):n)}}isAttached(t){return!0}updateConfig(t){}}class _s extends xs{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Ss="$chartjs",Cs={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},ks=t=>null===t||""===t;const Ds=!!sr&&{passive:!0};function Ts(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,Ds)}function As(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function Ms(t,e,n){const i=t.canvas,o=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||As(n.addedNodes,i),e=e&&!As(n.removedNodes,i);e&&n()}));return o.observe(document,{childList:!0,subtree:!0}),o}function Ps(t,e,n){const i=t.canvas,o=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||As(n.removedNodes,i),e=e&&!As(n.addedNodes,i);e&&n()}));return o.observe(document,{childList:!0,subtree:!0}),o}const Ls=new Map;let Es=0;function Is(){const t=window.devicePixelRatio;t!==Es&&(Es=t,Ls.forEach(((e,n)=>{n.currentDevicePixelRatio!==t&&e()})))}function Os(t,e,n){const i=t.canvas,o=i&&Ko(i);if(!o)return;const r=Ii(((t,e)=>{const i=o.clientWidth;n(t,e),i<o.clientWidth&&n()}),window),s=new ResizeObserver((t=>{const e=t[0],n=e.contentRect.width,i=e.contentRect.height;0===n&&0===i||r(n,i)}));return s.observe(o),function(t,e){Ls.size||window.addEventListener("resize",Is),Ls.set(t,e)}(t,r),s}function Rs(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){Ls.delete(t),Ls.size||window.removeEventListener("resize",Is)}(t)}function Fs(t,e,n){const i=t.canvas,o=Ii((e=>{null!==t.ctx&&n(function(t,e){const n=Cs[t.type]||t.type,{x:i,y:o}=nr(t,e);return{type:n,chart:e,native:t,x:void 0!==i?i:null,y:void 0!==o?o:null}}(e,t))}),t);return function(t,e,n){t&&t.addEventListener(e,n,Ds)}(i,e,o),o}class js extends xs{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){const n=t.style,i=t.getAttribute("height"),o=t.getAttribute("width");if(t[Ss]={initial:{height:i,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",ks(o)){const e=ar(t,"width");void 0!==e&&(t.width=e)}if(ks(i))if(""===t.style.height)t.height=t.width/(e||2);else{const e=ar(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[Ss])return!1;const n=e[Ss].initial;["height","width"].forEach((t=>{const i=n[t];On(i)?e.removeAttribute(t):e.setAttribute(t,i)}));const i=n.style||{};return Object.keys(i).forEach((t=>{e.style[t]=i[t]})),e.width=e.width,delete e[Ss],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const i=t.$proxies||(t.$proxies={}),o={attach:Ms,detach:Ps,resize:Os}[e]||Fs;i[e]=o(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),i=n[e];if(!i)return;({attach:Rs,detach:Rs,resize:Rs}[e]||Ts)(t,e,i),n[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,i){return or(t,e,n,i)}isAttached(t){const e=t&&Ko(t);return!(!e||!e.isConnected)}}class Bs{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}hasValue(){return pi(this.x)&&pi(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const i={};return t.forEach((t=>{i[t]=n[t]&&n[t].active()?n[t]._to:this[t]})),i}}function Ns(t,e){const n=t.options.ticks,i=function(t){const e=t.options.offset,n=t._tickSize(),i=t._length/n+(e?0:1),o=t._maxLength/n;return Math.floor(Math.min(i,o))}(t),o=Math.min(n.maxTicksLimit||i,i),r=n.major.enabled?function(t){const e=[];let n,i;for(n=0,i=t.length;n<i;n++)t[n].major&&e.push(n);return e}(e):[],s=r.length,a=r[0],l=r[s-1],c=[];if(s>o)return function(t,e,n,i){let o,r=0,s=n[0];for(i=Math.ceil(i),o=0;o<t.length;o++)o===s&&(e.push(t[o]),r++,s=n[r*i])}(e,c,r,s/o),c;const h=function(t,e,n){const i=function(t){const e=t.length;let n,i;if(e<2)return!1;for(i=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==i)return!1;return i}(t),o=e.length/n;if(!i)return Math.max(o,1);const r=function(t){const e=[],n=Math.sqrt(t);let i;for(i=1;i<n;i++)t%i===0&&(e.push(i),e.push(t/i));return n===(0|n)&&e.push(n),e.sort(((t,e)=>t-e)).pop(),e}(i);for(let t=0,e=r.length-1;t<e;t++){const e=r[t];if(e>o)return e}return Math.max(o,1)}(r,e,o);if(s>0){let t,n;const i=s>1?Math.round((l-a)/(s-1)):null;for(Hs(e,c,h,On(i)?0:a-i,a),t=0,n=s-1;t<n;t++)Hs(e,c,h,r[t],r[t+1]);return Hs(e,c,h,l,On(i)?e.length:l+i),c}return Hs(e,c,h),c}function Hs(t,e,n,i,o){const r=Nn(i,0),s=Math.min(Nn(o,t.length),t.length);let a,l,c,h=0;for(n=Math.ceil(n),o&&(a=o-i,n=a/Math.floor(a/n)),c=r;c<0;)h++,c=Math.round(r+h*n);for(l=Math.max(r,0);l<s;l++)l===c&&(e.push(t[l]),h++,c=Math.round(r+h*n))}const zs=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n,Ws=(t,e)=>Math.min(e||t,t);function $s(t,e){const n=[],i=t.length/e,o=t.length;let r=0;for(;r<o;r+=i)n.push(t[Math.floor(r)]);return n}function Vs(t,e,n){const i=t.ticks.length,o=Math.min(e,i-1),r=t._startPixel,s=t._endPixel,a=1e-6;let l,c=t.getPixelForTick(o);if(!(n&&(l=1===i?Math.max(c-r,s-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(o-1))/2,c+=o<e?l:-l,c<r-a||c>s+a)))return c}function qs(t){return t.drawTicks?t.tickLength:0}function Us(t,e){if(!t.display)return 0;const n=Do(t.font,e),i=ko(t.padding);return(Rn(t.text)?t.text.length:1)*n.lineHeight+i.height}function Xs(t,e,n){let i=Oi(t);return(n&&"right"!==e||!n&&"right"===e)&&(i=(t=>"left"===t?"right":"right"===t?"left":t)(i)),i}class Ys extends Bs{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:n,_suggestedMax:i}=this;return t=Bn(t,Number.POSITIVE_INFINITY),e=Bn(e,Number.NEGATIVE_INFINITY),n=Bn(n,Number.POSITIVE_INFINITY),i=Bn(i,Number.NEGATIVE_INFINITY),{min:Bn(t,n),max:Bn(e,i),minDefined:jn(t),maxDefined:jn(e)}}getMinMax(t){let e,{min:n,max:i,minDefined:o,maxDefined:r}=this.getUserBounds();if(o&&r)return{min:n,max:i};const s=this.getMatchingVisibleMetas();for(let a=0,l=s.length;a<l;++a)e=s[a].controller.getMinMax(this,t),o||(n=Math.min(n,e.min)),r||(i=Math.max(i,e.max));return n=r&&n>i?i:n,i=o&&n>i?n:i,{min:Bn(n,Bn(i,n)),max:Bn(i,Bn(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){zn(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:i,grace:o,ticks:r}=this.options,s=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,n){const{min:i,max:o}=t,r=Hn(e,(o-i)/2),s=(t,e)=>n&&0===t?0:t+e;return{min:s(i,-Math.abs(r)),max:s(o,r)}}(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const a=s<this.ticks.length;this._convertTicksToLabels(a?$s(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),r.display&&(r.autoSkip||"auto"===r.source)&&(this.ticks=Ns(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),a&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){zn(this.options.afterUpdate,[this])}beforeSetDimensions(){zn(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){zn(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),zn(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){zn(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,i,o;for(n=0,i=t.length;n<i;n++)o=t[n],o.label=zn(e.callback,[o.value,n,t],this)}afterTickToLabelConversion(){zn(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){zn(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=Ws(this.ticks.length,t.ticks.maxTicksLimit),i=e.minRotation||0,o=e.maxRotation;let r,s,a,l=i;if(!this._isVisible()||!e.display||i>=o||n<=1||!this.isHorizontal())return void(this.labelRotation=i);const c=this._getLabelSizes(),h=c.widest.width,u=c.highest.height,d=Ci(this.chart.width-h,0,this.maxWidth);r=t.offset?this.maxWidth/n:d/(n-1),h+6>r&&(r=d/(n-(t.offset?.5:1)),s=this.maxHeight-qs(t.grid)-e.padding-Us(t.title,this.chart.options.font),a=Math.sqrt(h*h+u*u),l=bi(Math.min(Math.asin(Ci((c.highest.height+6)/r,-1,1)),Math.asin(Ci(s/a,-1,1))-Math.asin(Ci(u/a,-1,1)))),l=Math.max(i,Math.min(o,l))),this.labelRotation=l}afterCalculateLabelRotation(){zn(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){zn(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:i,grid:o}}=this,r=this._isVisible(),s=this.isHorizontal();if(r){const r=Us(i,e.options.font);if(s?(t.width=this.maxWidth,t.height=qs(o)+r):(t.height=this.maxHeight,t.width=qs(o)+r),n.display&&this.ticks.length){const{first:e,last:i,widest:o,highest:r}=this._getLabelSizes(),a=2*n.padding,l=mi(this.labelRotation),c=Math.cos(l),h=Math.sin(l);if(s){const e=n.mirror?0:h*o.width+c*r.height;t.height=Math.min(this.maxHeight,t.height+e+a)}else{const e=n.mirror?0:c*o.width+h*r.height;t.width=Math.min(this.maxWidth,t.width+e+a)}this._calculatePadding(e,i,h,c)}}this._handleMargins(),s?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,n,i){const{ticks:{align:o,padding:r},position:s}=this.options,a=0!==this.labelRotation,l="top"!==s&&"x"===this.axis;if(this.isHorizontal()){const s=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,u=0;a?l?(h=i*t.width,u=n*e.height):(h=n*t.height,u=i*e.width):"start"===o?u=e.width:"end"===o?h=t.width:"inner"!==o&&(h=t.width/2,u=e.width/2),this.paddingLeft=Math.max((h-s+r)*this.width/(this.width-s),0),this.paddingRight=Math.max((u-c+r)*this.width/(this.width-c),0)}else{let n=e.height/2,i=t.height/2;"start"===o?(n=0,i=t.height):"end"===o&&(n=e.height,i=0),this.paddingTop=n+r,this.paddingBottom=i+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){zn(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)On(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let n=this.ticks;e<n.length&&(n=$s(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,n){const{ctx:i,_longestTextCache:o}=this,r=[],s=[],a=Math.floor(e/Ws(e,n));let l,c,h,u,d,f,p,g,m,b,v,y=0,w=0;for(l=0;l<e;l+=a){if(u=t[l].label,d=this._resolveTickFontOptions(l),i.font=f=d.string,p=o[f]=o[f]||{data:{},gc:[]},g=d.lineHeight,m=b=0,On(u)||Rn(u)){if(Rn(u))for(c=0,h=u.length;c<h;++c)v=u[c],On(v)||Rn(v)||(m=io(i,p.data,p.gc,m,v),b+=g)}else m=io(i,p.data,p.gc,m,u),b=g;r.push(m),s.push(b),y=Math.max(m,y),w=Math.max(b,w)}!function(t,e){Wn(t,(t=>{const n=t.gc,i=n.length/2;let o;if(i>e){for(o=0;o<i;++o)delete t.data[n[o]];n.splice(0,i)}}))}(o,e);const x=r.indexOf(y),_=s.indexOf(w),S=t=>({width:r[t]||0,height:s[t]||0});return{first:S(0),last:S(e-1),widest:S(x),highest:S(_),widths:r,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return Ci(this._alignToPixels?ro(this.chart,e,0):e,-32768,32767)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const n=e[t];return n.$context||(n.$context=function(t,e,n){return Ao(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=Ao(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=mi(this.labelRotation),n=Math.abs(Math.cos(e)),i=Math.abs(Math.sin(e)),o=this._getLabelSizes(),r=t.autoSkipPadding||0,s=o?o.widest.width+r:0,a=o?o.highest.height+r:0;return this.isHorizontal()?a*n>s*i?s/n:a/i:a*i<s*n?a/n:s/i}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,n=this.chart,i=this.options,{grid:o,position:r,border:s}=i,a=o.offset,l=this.isHorizontal(),c=this.ticks.length+(a?1:0),h=qs(o),u=[],d=s.setContext(this.getContext()),f=d.display?d.width:0,p=f/2,g=function(t){return ro(n,t,f)};let m,b,v,y,w,x,_,S,C,k,D,T;if("top"===r)m=g(this.bottom),x=this.bottom-h,S=m-p,k=g(t.top)+p,T=t.bottom;else if("bottom"===r)m=g(this.top),k=t.top,T=g(t.bottom)-p,x=m+p,S=this.top+h;else if("left"===r)m=g(this.right),w=this.right-h,_=m-p,C=g(t.left)+p,D=t.right;else if("right"===r)m=g(this.left),C=t.left,D=g(t.right)-p,w=m+p,_=this.left+h;else if("x"===e){if("center"===r)m=g((t.top+t.bottom)/2+.5);else if(Fn(r)){const t=Object.keys(r)[0],e=r[t];m=g(this.chart.scales[t].getPixelForValue(e))}k=t.top,T=t.bottom,x=m+p,S=x+h}else if("y"===e){if("center"===r)m=g((t.left+t.right)/2);else if(Fn(r)){const t=Object.keys(r)[0],e=r[t];m=g(this.chart.scales[t].getPixelForValue(e))}w=m-p,_=w-h,C=t.left,D=t.right}const A=Nn(i.ticks.maxTicksLimit,c),M=Math.max(1,Math.ceil(c/A));for(b=0;b<c;b+=M){const t=this.getContext(b),e=o.setContext(t),i=s.setContext(t),r=e.lineWidth,c=e.color,h=i.dash||[],d=i.dashOffset,f=e.tickWidth,p=e.tickColor,g=e.tickBorderDash||[],m=e.tickBorderDashOffset;v=Vs(this,b,a),void 0!==v&&(y=ro(n,v,r),l?w=_=C=D=y:x=S=k=T=y,u.push({tx1:w,ty1:x,tx2:_,ty2:S,x1:C,y1:k,x2:D,y2:T,width:r,color:c,borderDash:h,borderDashOffset:d,tickWidth:f,tickColor:p,tickBorderDash:g,tickBorderDashOffset:m}))}return this._ticksLength=c,this._borderValue=m,u}_computeLabelItems(t){const e=this.axis,n=this.options,{position:i,ticks:o}=n,r=this.isHorizontal(),s=this.ticks,{align:a,crossAlign:l,padding:c,mirror:h}=o,u=qs(n.grid),d=u+c,f=h?-c:d,p=-mi(this.labelRotation),g=[];let m,b,v,y,w,x,_,S,C,k,D,T,A="middle";if("top"===i)x=this.bottom-f,_=this._getXAxisLabelAlignment();else if("bottom"===i)x=this.top+f,_=this._getXAxisLabelAlignment();else if("left"===i){const t=this._getYAxisLabelAlignment(u);_=t.textAlign,w=t.x}else if("right"===i){const t=this._getYAxisLabelAlignment(u);_=t.textAlign,w=t.x}else if("x"===e){if("center"===i)x=(t.top+t.bottom)/2+d;else if(Fn(i)){const t=Object.keys(i)[0],e=i[t];x=this.chart.scales[t].getPixelForValue(e)+d}_=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===i)w=(t.left+t.right)/2-d;else if(Fn(i)){const t=Object.keys(i)[0],e=i[t];w=this.chart.scales[t].getPixelForValue(e)}_=this._getYAxisLabelAlignment(u).textAlign}"y"===e&&("start"===a?A="top":"end"===a&&(A="bottom"));const M=this._getLabelSizes();for(m=0,b=s.length;m<b;++m){v=s[m],y=v.label;const t=o.setContext(this.getContext(m));S=this.getPixelForTick(m)+o.labelOffset,C=this._resolveTickFontOptions(m),k=C.lineHeight,D=Rn(y)?y.length:1;const e=D/2,n=t.color,a=t.textStrokeColor,c=t.textStrokeWidth;let u,d=_;if(r?(w=S,"inner"===_&&(d=m===b-1?this.options.reverse?"left":"right":0===m?this.options.reverse?"right":"left":"center"),T="top"===i?"near"===l||0!==p?-D*k+k/2:"center"===l?-M.highest.height/2-e*k+k:-M.highest.height+k/2:"near"===l||0!==p?k/2:"center"===l?M.highest.height/2-e*k:M.highest.height-D*k,h&&(T*=-1),0===p||t.showLabelBackdrop||(w+=k/2*Math.sin(p))):(x=S,T=(1-D)*k/2),t.showLabelBackdrop){const e=ko(t.backdropPadding),n=M.heights[m],i=M.widths[m];let o=T-e.top,r=0-e.left;switch(A){case"middle":o-=n/2;break;case"bottom":o-=n}switch(_){case"center":r-=i/2;break;case"right":r-=i;break;case"inner":m===b-1?r-=i:m>0&&(r-=i/2)}u={left:r,top:o,width:i+e.width,height:n+e.height,color:t.backdropColor}}g.push({label:y,font:C,textOffset:T,options:{rotation:p,color:n,strokeColor:a,strokeWidth:c,textAlign:d,textBaseline:A,translation:[w,x],backdrop:u}})}return g}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-mi(this.labelRotation))return"top"===t?"left":"right";let n="center";return"start"===e.align?n="left":"end"===e.align?n="right":"inner"===e.align&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:n,mirror:i,padding:o}}=this.options,r=t+o,s=this._getLabelSizes().widest.width;let a,l;return"left"===e?i?(l=this.right+o,"near"===n?a="left":"center"===n?(a="center",l+=s/2):(a="right",l+=s)):(l=this.right-r,"near"===n?a="right":"center"===n?(a="center",l-=s/2):(a="left",l=this.left)):"right"===e?i?(l=this.left+o,"near"===n?a="right":"center"===n?(a="center",l-=s/2):(a="left",l-=s)):(l=this.left+r,"near"===n?a="left":"center"===n?(a="center",l+=s/2):(a="right",l=this.right)):a="right",{textAlign:a,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:n,top:i,width:o,height:r}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,i,o,r),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex((e=>e.value===t));if(n>=0){return e.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,r;const s=(t,e,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(o=0,r=i.length;o<r;++o){const t=i[o];e.drawOnChartArea&&s({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&s({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:n,grid:i}}=this,o=n.setContext(this.getContext()),r=n.display?o.width:0;if(!r)return;const s=i.setContext(this.getContext(0)).lineWidth,a=this._borderValue;let l,c,h,u;this.isHorizontal()?(l=ro(t,this.left,r)-r/2,c=ro(t,this.right,s)+s/2,h=u=a):(h=ro(t,this.top,r)-r/2,u=ro(t,this.bottom,s)+s/2,l=c=a),e.save(),e.lineWidth=o.width,e.strokeStyle=o.color,e.beginPath(),e.moveTo(l,h),e.lineTo(c,u),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,n=this._computeLabelArea();n&&ho(e,n);const i=this.getLabelItems(t);for(const t of i){const n=t.options,i=t.font;bo(e,t.label,0,t.textOffset,i,n)}n&&uo(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:i}}=this;if(!n.display)return;const o=Do(n.font),r=ko(n.padding),s=n.align;let a=o.lineHeight/2;"bottom"===e||"center"===e||Fn(e)?(a+=r.bottom,Rn(n.text)&&(a+=o.lineHeight*(n.text.length-1))):a+=r.top;const{titleX:l,titleY:c,maxWidth:h,rotation:u}=function(t,e,n,i){const{top:o,left:r,bottom:s,right:a,chart:l}=t,{chartArea:c,scales:h}=l;let u,d,f,p=0;const g=s-o,m=a-r;if(t.isHorizontal()){if(d=Ri(i,r,a),Fn(n)){const t=Object.keys(n)[0],i=n[t];f=h[t].getPixelForValue(i)+g-e}else f="center"===n?(c.bottom+c.top)/2+g-e:zs(t,n,e);u=a-r}else{if(Fn(n)){const t=Object.keys(n)[0],i=n[t];d=h[t].getPixelForValue(i)-m+e}else d="center"===n?(c.left+c.right)/2-m+e:zs(t,n,e);f=Ri(i,s,o),p="left"===n?-ai:ai}return{titleX:d,titleY:f,maxWidth:u,rotation:p}}(this,a,e,s);bo(t,n.text,0,0,o,{color:n.color,maxWidth:h,rotation:u,textAlign:Xs(s,e,i),textBaseline:"middle",translation:[l,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,n=Nn(t.grid&&t.grid.z,-1),i=Nn(t.border&&t.border.z,0);return this._isVisible()&&this.draw===Ys.prototype.draw?[{z:n,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let o,r;for(o=0,r=e.length;o<r;++o){const r=e[o];r[n]!==this.id||t&&r.type!==t||i.push(r)}return i}_resolveTickFontOptions(t){return Do(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Js{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let n;(function(t){return"id"in t&&"defaults"in t})(e)&&(n=this.register(e));const i=this.items,o=t.id,r=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in i||(i[o]=t,function(t,e,n){const i=Xn(Object.create(null),[n?no.get(n):{},no.get(e),t.defaults]);no.set(e,i),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((n=>{const i=n.split("."),o=i.pop(),r=[t].concat(i).join("."),s=e[n].split("."),a=s.pop(),l=s.join(".");no.route(r,o,l,a)}))}(e,t.defaultRoutes);t.descriptors&&no.describe(e,t.descriptors)}(t,r,n),this.override&&no.override(t.id,t.overrides)),r}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,i=this.scope;n in e&&delete e[n],i&&n in no[i]&&(delete no[i][n],this.override&&delete Ki[n])}}class Gs{constructor(){this.controllers=new Js(Hr,"datasets",!0),this.elements=new Js(Bs,"elements"),this.plugins=new Js(Object,"plugins"),this.scales=new Js(Ys,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,n){[...e].forEach((e=>{const i=n||this._getRegistryForType(e);n||i.isForType(e)||i===this.plugins&&e.id?this._exec(t,i,e):Wn(e,(e=>{const i=n||this._getRegistryForType(e);this._exec(t,i,e)}))}))}_exec(t,e,n){const i=Zn(t);zn(n["before"+i],[],n),e[t](n),zn(n["after"+i],[],n)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}_get(t,e,n){const i=e.get(t);if(void 0===i)throw new Error('"'+t+'" is not a registered '+n+".");return i}}var Ks=new Gs;class Zs{constructor(){this._init=[]}notify(t,e,n,i){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=i?this._descriptors(t).filter(i):this._descriptors(t),r=this._notify(o,t,e,n);return"afterDestroy"===e&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),r}_notify(t,e,n,i){i=i||{};for(const o of t){const t=o.plugin;if(!1===zn(t[n],[e,i,o.options],t)&&i.cancelable)return!1}return!0}invalidate(){On(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const n=t&&t.config,i=Nn(n.options&&n.options.plugins,{}),o=function(t){const e={},n=[],i=Object.keys(Ks.plugins.items);for(let t=0;t<i.length;t++)n.push(Ks.getPlugin(i[t]));const o=t.plugins||[];for(let t=0;t<o.length;t++){const i=o[t];-1===n.indexOf(i)&&(n.push(i),e[i.id]=!0)}return{plugins:n,localIds:e}}(n);return!1!==i||e?function(t,{plugins:e,localIds:n},i,o){const r=[],s=t.getContext();for(const a of e){const e=a.id,l=Qs(i[e],o);null!==l&&r.push({plugin:a,options:ta(t.config,{plugin:a,local:n[e]},l,s)})}return r}(t,o,i,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,i=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(i(e,n),t,"stop"),this._notify(i(n,e),t,"start")}}function Qs(t,e){return e||!1!==t?!0===t?{}:t:null}function ta(t,{plugin:e,local:n},i,o){const r=t.pluginScopeKeys(e),s=t.getOptionScopes(i,r);return n&&e.defaults&&s.push(e.defaults),t.createResolver(s,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function ea(t,e){const n=no.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function na(t){if("x"===t||"y"===t||"r"===t)return t}function ia(t,...e){if(na(t))return t;for(const i of e){const e=i.axis||("top"===(n=i.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||t.length>1&&na(t[0].toLowerCase());if(e)return e}var n;throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function oa(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function ra(t,e){const n=Ki[t.type]||{scales:{}},i=e.scales||{},o=ea(t.type,e),r=Object.create(null);return Object.keys(i).forEach((e=>{const s=i[e];if(!Fn(s))return console.error(`Invalid scale configuration for scale: ${e}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const a=ia(e,s,function(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter((e=>e.xAxisID===t||e.yAxisID===t));if(n.length)return oa(t,"x",n[0])||oa(t,"y",n[0])}return{}}(e,t),no.scales[s.type]),l=function(t,e){return t===e?"_index_":"_value_"}(a,o),c=n.scales||{};r[e]=Yn(Object.create(null),[{axis:a},s,c[a],c[l]])})),t.data.datasets.forEach((n=>{const o=n.type||t.type,s=n.indexAxis||ea(o,e),a=(Ki[o]||{}).scales||{};Object.keys(a).forEach((t=>{const e=function(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}(t,s),o=n[e+"AxisID"]||e;r[o]=r[o]||Object.create(null),Yn(r[o],[{axis:e},i[o],a[t]])}))})),Object.keys(r).forEach((t=>{const e=r[t];Yn(e,[no.scales[e.type],no.scale])})),r}function sa(t){const e=t.options||(t.options={});e.plugins=Nn(e.plugins,{}),e.scales=ra(t,e)}function aa(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const la=new Map,ca=new Set;function ha(t,e){let n=la.get(t);return n||(n=e(),la.set(t,n),ca.add(n)),n}const ua=(t,e,n)=>{const i=Kn(e,n);void 0!==i&&t.add(i)};class da{constructor(t){this._config=function(t){return(t=t||{}).data=aa(t.data),sa(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=aa(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),sa(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return ha(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return ha(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return ha(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return ha(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const n=this._scopeCache;let i=n.get(t);return i&&!e||(i=new Map,n.set(t,i)),i}getOptionScopes(t,e,n){const{options:i,type:o}=this,r=this._cachedScopes(t,n),s=r.get(e);if(s)return s;const a=new Set;e.forEach((e=>{t&&(a.add(t),e.forEach((e=>ua(a,t,e)))),e.forEach((t=>ua(a,i,t))),e.forEach((t=>ua(a,Ki[o]||{},t))),e.forEach((t=>ua(a,no,t))),e.forEach((t=>ua(a,Zi,t)))}));const l=Array.from(a);return 0===l.length&&l.push(Object.create(null)),ca.has(e)&&r.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,Ki[e]||{},no.datasets[e]||{},{type:e},no,Zi]}resolveNamedOptions(t,e,n,i=[""]){const o={$shared:!0},{resolver:r,subPrefixes:s}=fa(this._resolverCache,t,i);let a=r;if(function(t,e){const{isScriptable:n,isIndexable:i}=Lo(t);for(const o of e){const e=n(o),r=i(o),s=(r||e)&&t[o];if(e&&(ti(s)||pa(s))||r&&Rn(s))return!0}return!1}(r,e)){o.$shared=!1;a=Po(r,n=ti(n)?n():n,this.createResolver(t,n,s))}for(const t of e)o[t]=a[t];return o}createResolver(t,e,n=[""],i){const{resolver:o}=fa(this._resolverCache,t,n);return Fn(e)?Po(o,e,void 0,i):o}}function fa(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const o=n.join();let r=i.get(o);if(!r){r={resolver:Mo(e,n),subPrefixes:n.filter((t=>!t.toLowerCase().includes("hover")))},i.set(o,r)}return r}const pa=t=>Fn(t)&&Object.getOwnPropertyNames(t).some((e=>ti(t[e])));const ga=["top","bottom","left","right","chartArea"];function ma(t,e){return"top"===t||"bottom"===t||-1===ga.indexOf(t)&&"x"===e}function ba(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function va(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),zn(n&&n.onComplete,[t],e)}function ya(t){const e=t.chart,n=e.options.animation;zn(n&&n.onProgress,[t],e)}function wa(t){return Go()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const xa={},_a=t=>{const e=wa(t);return Object.values(xa).filter((t=>t.canvas===e)).pop()};function Sa(t,e,n){const i=Object.keys(t);for(const o of i){const i=+o;if(i>=e){const r=t[o];delete t[o],(n>0||i>e)&&(t[i+n]=r)}}}class Ca{static defaults=no;static instances=xa;static overrides=Ki;static registry=Ks;static version="4.5.0";static getChart=_a;static register(...t){Ks.add(...t),ka()}static unregister(...t){Ks.remove(...t),ka()}constructor(t,e){const n=this.config=new da(e),i=wa(t),o=_a(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const r=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(t){return!Go()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?_s:js}(i)),this.platform.updateConfig(n);const s=this.platform.acquireContext(i,r.aspectRatio),a=s&&s.canvas,l=a&&a.height,c=a&&a.width;this.id=In(),this.ctx=s,this.canvas=a,this.width=c,this.height=l,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Zs,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}((t=>this.update(t)),r.resizeDelay||0),this._dataChanges=[],xa[this.id]=this,s&&a?(Cr.listen(this,"complete",va),Cr.listen(this,"progress",ya),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:n,height:i,_aspectRatio:o}=this;return On(t)?e&&o?o:i?n/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Ks}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():rr(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return so(this.canvas,this.ctx),this}stop(){return Cr.stop(this),this}resize(t,e){Cr.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,i=this.canvas,o=n.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(i,t,e,o),s=n.devicePixelRatio||this.platform.getDevicePixelRatio(),a=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,rr(this,s,!0)&&(this.notifyPlugins("resize",{size:r}),zn(n.onResize,[this,r],this),this.attached&&this._doResize(a)&&this.render())}ensureScalesHaveIDs(){Wn(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,i=Object.keys(n).reduce(((t,e)=>(t[e]=!1,t)),{});let o=[];e&&(o=o.concat(Object.keys(e).map((t=>{const n=e[t],i=ia(t,n),o="r"===i,r="x"===i;return{options:n,dposition:o?"chartArea":r?"bottom":"left",dtype:o?"radialLinear":r?"category":"linear"}})))),Wn(o,(e=>{const o=e.options,r=o.id,s=ia(r,o),a=Nn(o.type,e.dtype);void 0!==o.position&&ma(o.position,s)===ma(e.dposition)||(o.position=e.dposition),i[r]=!0;let l=null;if(r in n&&n[r].type===a)l=n[r];else{l=new(Ks.getScale(a))({id:r,type:a,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(o,t)})),Wn(i,((t,e)=>{t||delete n[e]})),Wn(n,(t=>{ws.configure(this,t,t.options),ws.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort(((t,e)=>t.index-e.index)),n>e){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(ba("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,n)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=e.length;n<i;n++){const i=e[n];let o=this.getDatasetMeta(n);const r=i.type||this.config.type;if(o.type&&o.type!==r&&(this._destroyDatasetMeta(n),o=this.getDatasetMeta(n)),o.type=r,o.indexAxis=i.indexAxis||ea(r,this.options),o.order=i.order||0,o.index=n,o.label=""+i.label,o.visible=this.isDatasetVisible(n),o.controller)o.controller.updateIndex(n),o.controller.linkScales();else{const e=Ks.getController(r),{datasetElementType:i,dataElementType:s}=no.datasets[r];Object.assign(e,{dataElementType:Ks.getElement(s),datasetElementType:i&&Ks.getElement(i)}),o.controller=new e(this,n),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){Wn(this.data.datasets,((t,e)=>{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),n=!i&&-1===o.indexOf(e);e.buildOrUpdateElements(n),r=Math.max(+e.getMaxOverflow(),r)}r=this._minPadding=n.layout.autoPadding?r:0,this._updateLayout(r),i||Wn(o,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(ba("z","_idx"));const{_active:s,_lastEvent:a}=this;a?this._eventHandler(a,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){Wn(this.scales,(t=>{ws.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);ei(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:o}of e){Sa(t,i,"_removeElements"===n?-o:o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),i=n(0);for(let t=1;t<e;t++)if(!ei(i,n(t)))return;return Array.from(i).map((t=>t.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;ws.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],Wn(this.boxes,(t=>{n&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,n=this.data.datasets.length;e<n;++e)this._updateDataset(e,ti(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),i={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",i)&&(n.controller._update(e),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(Cr.has(this)?this.attached&&!Cr.running(this)&&Cr.start(this):(this.draw(),va({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(t,e)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,n=[];let i,o;for(i=0,o=e.length;i<o;++i){const o=e[i];t&&!o.visible||n.push(o)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,n={meta:t,index:t.index,cancelable:!0},i=_r(this,t);!1!==this.notifyPlugins("beforeDatasetDraw",n)&&(i&&ho(e,i),t.controller.draw(),i&&uo(e),n.cancelable=!1,this.notifyPlugins("afterDatasetDraw",n))}isPointInArea(t){return co(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,i){const o=as.modes[e];return"function"==typeof o?o(this,t,n,i):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let i=n.filter((t=>t&&t._dataset===e)).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},n.push(i)),i}getContext(){return this.$context||(this.$context=Ao(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,n){const i=n?"show":"hide",o=this.getDatasetMeta(t),r=o.controller._resolveAnimations(void 0,i);Qn(e)?(o.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),r.update(o,{visible:n}),this.update((e=>e.datasetIndex===t?i:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),Cr.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),so(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete xa[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};Wn(this.options.events,(t=>n(t,i)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(n,i)=>{t[n]&&(e.removeEventListener(this,n,i),delete t[n])},o=(t,e)=>{this.canvas&&this.resize(t,e)};let r;const s=()=>{i("attach",s),this.attached=!0,this.resize(),n("resize",o),n("detach",r)};r=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),n("attach",s)},e.isAttached(this.canvas)?s():r()}unbindEvents(){Wn(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},Wn(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const i=n?"set":"remove";let o,r,s,a;for("dataset"===e&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),s=0,a=t.length;s<a;++s){r=t[s];const e=r&&this.getDatasetMeta(r.datasetIndex).controller;e&&e[i+"HoverStyle"](r.element,r.datasetIndex,r.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],n=t.map((({datasetIndex:t,index:e})=>{const n=this.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[e],index:e}}));!$n(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}isPluginEnabled(t){return 1===this._plugins._cache.filter((e=>e.plugin.id===t)).length}_updateHoverStyles(t,e,n){const i=this.options.hover,o=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),r=o(e,t),s=n?t:o(t,e);r.length&&this.updateHoverStyle(r,i.mode,!1),s.length&&i.mode&&this.updateHoverStyle(s,i.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},i=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,i))return;const o=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(o||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:i=[],options:o}=this,r=e,s=this._getActiveElements(t,i,n,r),a=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,n,i){return n&&"mouseout"!==t.type?i?e:t:null}(t,this._lastEvent,n,a);n&&(this._lastEvent=null,zn(o.onHover,[t,s,this],this),a&&zn(o.onClick,[t,s,this],this));const c=!$n(s,i);return(c||e)&&(this._active=s,this._updateHoverStyles(s,i,e)),this._lastEvent=l,c}_getActiveElements(t,e,n,i){if("mouseout"===t.type)return[];if(!n)return e;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}}function ka(){return Wn(Ca.instances,(t=>t._plugins.invalidate()))}function Da(t,e,n,i){const o=_o(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const r=(n-e)/2,s=Math.min(r,i*e/2),a=t=>{const e=(n-Math.min(r,t))*i/2;return Ci(t,0,Math.min(r,e))};return{outerStart:a(o.outerStart),outerEnd:a(o.outerEnd),innerStart:Ci(o.innerStart,0,s),innerEnd:Ci(o.innerEnd,0,s)}}function Ta(t,e,n,i){return{x:n+t*Math.cos(e),y:i+t*Math.sin(e)}}function Aa(t,e,n,i,o,r){const{x:s,y:a,startAngle:l,pixelMargin:c,innerRadius:h}=e,u=Math.max(e.outerRadius+i+n-c,0),d=h>0?h+i+n+c:0;let f=0;const p=o-l;if(i){const t=((h>0?h-i:0)+(u>0?u-i:0))/2;f=(p-(0!==t?p*t/(t+i):p))/2}const g=(p-Math.max(.001,p*u-n/ni)/u)/2,m=l+g+f,b=o-g-f,{outerStart:v,outerEnd:y,innerStart:w,innerEnd:x}=Da(e,d,u,b-m),_=u-v,S=u-y,C=m+v/_,k=b-y/S,D=d+w,T=d+x,A=m+w/D,M=b-x/T;if(t.beginPath(),r){const e=(C+k)/2;if(t.arc(s,a,u,C,e),t.arc(s,a,u,e,k),y>0){const e=Ta(S,k,s,a);t.arc(e.x,e.y,y,k,b+ai)}const n=Ta(T,b,s,a);if(t.lineTo(n.x,n.y),x>0){const e=Ta(T,M,s,a);t.arc(e.x,e.y,x,b+ai,M+Math.PI)}const i=(b-x/d+(m+w/d))/2;if(t.arc(s,a,d,b-x/d,i,!0),t.arc(s,a,d,i,m+w/d,!0),w>0){const e=Ta(D,A,s,a);t.arc(e.x,e.y,w,A+Math.PI,m-ai)}const o=Ta(_,m,s,a);if(t.lineTo(o.x,o.y),v>0){const e=Ta(_,C,s,a);t.arc(e.x,e.y,v,m-ai,C)}}else{t.moveTo(s,a);const e=Math.cos(C)*u+s,n=Math.sin(C)*u+a;t.lineTo(e,n);const i=Math.cos(k)*u+s,o=Math.sin(k)*u+a;t.lineTo(i,o)}t.closePath()}function Ma(t,e,n,i,o){const{fullCircles:r,startAngle:s,circumference:a,options:l}=e,{borderWidth:c,borderJoinStyle:h,borderDash:u,borderDashOffset:d,borderRadius:f}=l,p="inner"===l.borderAlign;if(!c)return;t.setLineDash(u||[]),t.lineDashOffset=d,p?(t.lineWidth=2*c,t.lineJoin=h||"round"):(t.lineWidth=c,t.lineJoin=h||"bevel");let g=e.endAngle;if(r){Aa(t,e,n,i,g,o);for(let e=0;e<r;++e)t.stroke();isNaN(a)||(g=s+(a%ii||ii))}p&&function(t,e,n){const{startAngle:i,pixelMargin:o,x:r,y:s,outerRadius:a,innerRadius:l}=e;let c=o/a;t.beginPath(),t.arc(r,s,a,i-c,n+c),l>o?(c=o/l,t.arc(r,s,l,n+c,i-c,!0)):t.arc(r,s,o,n+ai,i-ai),t.closePath(),t.clip()}(t,e,g),l.selfJoin&&g-s>=ni&&0===f&&"miter"!==h&&function(t,e,n){const{startAngle:i,x:o,y:r,outerRadius:s,innerRadius:a,options:l}=e,{borderWidth:c,borderJoinStyle:h}=l,u=Math.min(c/s,_i(i-n));if(t.beginPath(),t.arc(o,r,s-c/2,i+u/2,n-u/2),a>0){const e=Math.min(c/a,_i(i-n));t.arc(o,r,a+c/2,n-e/2,i+e/2,!0)}else{const e=Math.min(c/2,s*_i(i-n));if("round"===h)t.arc(o,r,e,n-ni/2,i+ni/2,!0);else if("bevel"===h){const s=2*e*e,a=-s*Math.cos(n+ni/2)+o,l=-s*Math.sin(n+ni/2)+r,c=s*Math.cos(i+ni/2)+o,h=s*Math.sin(i+ni/2)+r;t.lineTo(a,l),t.lineTo(c,h)}}t.closePath(),t.moveTo(0,0),t.rect(0,0,t.canvas.width,t.canvas.height),t.clip("evenodd")}(t,e,g),r||(Aa(t,e,n,i,g,o),t.stroke())}class Pa extends Bs{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,n){const i=this.getProps(["x","y"],n),{angle:o,distance:r}=yi(i,{x:t,y:e}),{startAngle:s,endAngle:a,innerRadius:l,outerRadius:c,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),u=(this.options.spacing+this.options.borderWidth)/2,d=Nn(h,a-s),f=Si(o,s,a)&&s!==a,p=d>=ii||f,g=ki(r,l+u,c+u);return p&&g}getCenterPoint(t){const{x:e,y:n,startAngle:i,endAngle:o,innerRadius:r,outerRadius:s}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:a,spacing:l}=this.options,c=(i+o)/2,h=(r+s+l+a)/2;return{x:e+Math.cos(c)*h,y:n+Math.sin(c)*h}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:n}=this,i=(e.offset||0)/4,o=(e.spacing||0)/2,r=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>ii?Math.floor(n/ii):0,0===n||this.innerRadius<0||this.outerRadius<0)return;t.save();const s=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(s)*i,Math.sin(s)*i);const a=i*(1-Math.sin(Math.min(ni,n||0)));t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,function(t,e,n,i,o){const{fullCircles:r,startAngle:s,circumference:a}=e;let l=e.endAngle;if(r){Aa(t,e,n,i,l,o);for(let e=0;e<r;++e)t.fill();isNaN(a)||(l=s+(a%ii||ii))}Aa(t,e,n,i,l,o),t.fill()}(t,this,a,o,r),Ma(t,this,a,o,r),t.restore()}}function La(t,e,n=e){t.lineCap=Nn(n.borderCapStyle,e.borderCapStyle),t.setLineDash(Nn(n.borderDash,e.borderDash)),t.lineDashOffset=Nn(n.borderDashOffset,e.borderDashOffset),t.lineJoin=Nn(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=Nn(n.borderWidth,e.borderWidth),t.strokeStyle=Nn(n.borderColor,e.borderColor)}function Ea(t,e,n){t.lineTo(n.x,n.y)}function Ia(t,e,n={}){const i=t.length,{start:o=0,end:r=i-1}=n,{start:s,end:a}=e,l=Math.max(o,s),c=Math.min(r,a),h=o<s&&r<s||o>a&&r>a;return{count:i,start:l,loop:e.loop,ilen:c<l&&!h?i+c-l:c-l}}function Oa(t,e,n,i){const{points:o,options:r}=e,{count:s,start:a,loop:l,ilen:c}=Ia(o,n,i),h=function(t){return t.stepped?fo:t.tension||"monotone"===t.cubicInterpolationMode?po:Ea}(r);let u,d,f,{move:p=!0,reverse:g}=i||{};for(u=0;u<=c;++u)d=o[(a+(g?c-u:u))%s],d.skip||(p?(t.moveTo(d.x,d.y),p=!1):h(t,f,d,g,r.stepped),f=d);return l&&(d=o[(a+(g?c:0))%s],h(t,f,d,g,r.stepped)),!!l}function Ra(t,e,n,i){const o=e.points,{count:r,start:s,ilen:a}=Ia(o,n,i),{move:l=!0,reverse:c}=i||{};let h,u,d,f,p,g,m=0,b=0;const v=t=>(s+(c?a-t:t))%r,y=()=>{f!==p&&(t.lineTo(m,p),t.lineTo(m,f),t.lineTo(m,g))};for(l&&(u=o[v(0)],t.moveTo(u.x,u.y)),h=0;h<=a;++h){if(u=o[v(h)],u.skip)continue;const e=u.x,n=u.y,i=0|e;i===d?(n<f?f=n:n>p&&(p=n),m=(b*m+e)/++b):(y(),t.lineTo(e,n),d=i,b=0,f=p=n),g=n}y()}function Fa(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||n)?Ra:Oa}const ja="function"==typeof Path2D;function Ba(t,e,n,i){ja&&!e.options.segment?function(t,e,n,i){let o=e._path;o||(o=e._path=new Path2D,e.path(o,n,i)&&o.closePath()),La(t,e.options),t.stroke(o)}(t,e,n,i):function(t,e,n,i){const{segments:o,options:r}=e,s=Fa(e);for(const a of o)La(t,r,a.style),t.beginPath(),s(t,e,a,{start:n,end:n+i-1})&&t.closePath(),t.stroke()}(t,e,n,i)}class Na extends Bs{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const i=n.spanGaps?this._loop:this._fullLoop;Jo(this._points,n,t,i,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(t,e){const n=t.points,i=t.options.spanGaps,o=n.length;if(!o)return[];const r=!!t._loop,{start:s,end:a}=function(t,e,n,i){let o=0,r=e-1;if(n&&!i)for(;o<e&&!t[o].skip;)o++;for(;o<e&&t[o].skip;)o++;for(o%=e,n&&(r+=o);r>o&&t[r%e].skip;)r--;return r%=e,{start:o,end:r}}(n,o,r,i);return vr(t,!0===i?[{start:s,end:a,loop:r}]:function(t,e,n,i){const o=t.length,r=[];let s,a=e,l=t[e];for(s=e+1;s<=n;++s){const n=t[s%o];n.skip||n.stop?l.skip||(i=!1,r.push({start:e%o,end:(s-1)%o,loop:i}),e=a=n.stop?s:null):(a=s,l.skip&&(e=s)),l=n}return null!==a&&r.push({start:e%o,end:a%o,loop:i}),r}(n,s,a<s?a+o:a,!!t._fullLoop&&0===s&&a===o-1),n,e)}(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,n=t.length;return n&&e[t[n-1].end]}interpolate(t,e){const n=this.options,i=t[e],o=this.points,r=br(this,{property:e,start:i,end:i});if(!r.length)return;const s=[],a=function(t){return t.stepped?cr:t.tension||"monotone"===t.cubicInterpolationMode?hr:lr}(n);let l,c;for(l=0,c=r.length;l<c;++l){const{start:c,end:h}=r[l],u=o[c],d=o[h];if(u===d){s.push(u);continue}const f=a(u,d,Math.abs((i-u[e])/(d[e]-u[e])),n.stepped);f[e]=t[e],s.push(f)}return 1===s.length?s[0]:s}pathSegment(t,e,n){return Fa(this)(t,this,e,n)}path(t,e,n){const i=this.segments,o=Fa(this);let r=this._loop;e=e||0,n=n||this.points.length-e;for(const s of i)r&=o(t,this,s,{start:e,end:e+n-1});return!!r}draw(t,e,n,i){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),Ba(t,this,n,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Ha(t,e,n,i){const o=t.options,{[n]:r}=t.getProps([n],i);return Math.abs(e-r)<o.radius+o.hitRadius}class za extends Bs{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,n){const i=this.options,{x:o,y:r}=this.getProps(["x","y"],n);return Math.pow(t-o,2)+Math.pow(e-r,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,e){return Ha(this,t,"x",e)}inYRange(t,e){return Ha(this,t,"y",e)}getCenterPoint(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}size(t){let e=(t=t||this.options||{}).radius||0;e=Math.max(e,e&&t.hoverRadius||0);return 2*(e+(e&&t.borderWidth||0))}draw(t,e){const n=this.options;this.skip||n.radius<.1||!co(this,e,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,ao(t,n,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function Wa(t,e){const{x:n,y:i,base:o,width:r,height:s}=t.getProps(["x","y","base","width","height"],e);let a,l,c,h,u;return t.horizontal?(u=s/2,a=Math.min(n,o),l=Math.max(n,o),c=i-u,h=i+u):(u=r/2,a=n-u,l=n+u,c=Math.min(i,o),h=Math.max(i,o)),{left:a,top:c,right:l,bottom:h}}function $a(t,e,n,i){return t?0:Ci(e,n,i)}function Va(t){const e=Wa(t),n=e.right-e.left,i=e.bottom-e.top,o=function(t,e,n){const i=t.options.borderWidth,o=t.borderSkipped,r=So(i);return{t:$a(o.top,r.top,0,n),r:$a(o.right,r.right,0,e),b:$a(o.bottom,r.bottom,0,n),l:$a(o.left,r.left,0,e)}}(t,n/2,i/2),r=function(t,e,n){const{enableBorderRadius:i}=t.getProps(["enableBorderRadius"]),o=t.options.borderRadius,r=Co(o),s=Math.min(e,n),a=t.borderSkipped,l=i||Fn(o);return{topLeft:$a(!l||a.top||a.left,r.topLeft,0,s),topRight:$a(!l||a.top||a.right,r.topRight,0,s),bottomLeft:$a(!l||a.bottom||a.left,r.bottomLeft,0,s),bottomRight:$a(!l||a.bottom||a.right,r.bottomRight,0,s)}}(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i,radius:r},inner:{x:e.left+o.l,y:e.top+o.t,w:n-o.l-o.r,h:i-o.t-o.b,radius:{topLeft:Math.max(0,r.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,r.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,r.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,r.bottomRight-Math.max(o.b,o.r))}}}}function qa(t,e,n,i){const o=null===e,r=null===n,s=t&&!(o&&r)&&Wa(t,i);return s&&(o||ki(e,s.left,s.right))&&(r||ki(n,s.top,s.bottom))}function Ua(t,e){t.rect(e.x,e.y,e.w,e.h)}function Xa(t,e,n={}){const i=t.x!==n.x?-e:0,o=t.y!==n.y?-e:0,r=(t.x+t.w!==n.x+n.w?e:0)-i,s=(t.y+t.h!==n.y+n.h?e:0)-o;return{x:t.x+i,y:t.y+o,w:t.w+r,h:t.h+s,radius:t.radius}}class Ya extends Bs{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:n,backgroundColor:i}}=this,{inner:o,outer:r}=Va(this),s=(a=r.radius).topLeft||a.topRight||a.bottomLeft||a.bottomRight?vo:Ua;var a;t.save(),r.w===o.w&&r.h===o.h||(t.beginPath(),s(t,Xa(r,e,o)),t.clip(),s(t,Xa(o,-e,r)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),s(t,Xa(o,e)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,e,n){return qa(this,t,e,n)}inXRange(t,e){return qa(this,t,null,e)}inYRange(t,e){return qa(this,null,t,e)}getCenterPoint(t){const{x:e,y:n,base:i,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(e+i)/2:e,y:o?n:(n+i)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}var Ja=Object.freeze({__proto__:null,ArcElement:Pa,BarElement:Ya,LineElement:Na,PointElement:za});const Ga=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],Ka=Ga.map((t=>t.replace("rgb(","rgba(").replace(")",", 0.5)")));function Za(t){return Ga[t%Ga.length]}function Qa(t){return Ka[t%Ka.length]}function tl(t){let e=0;return(n,i)=>{const o=t.getDatasetMeta(i).controller;o instanceof Jr?e=function(t,e){return t.backgroundColor=t.data.map((()=>Za(e++))),e}(n,e):o instanceof Gr?e=function(t,e){return t.backgroundColor=t.data.map((()=>Qa(e++))),e}(n,e):o&&(e=function(t,e){return t.borderColor=Za(e),t.backgroundColor=Qa(e),++e}(n,e))}}function el(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}var nl={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,n){if(!n.enabled)return;const{data:{datasets:i},options:o}=t.config,{elements:r}=o,s=el(i)||(a=o)&&(a.borderColor||a.backgroundColor)||r&&el(r)||"rgba(0,0,0,0.1)"!==no.borderColor||"rgba(0,0,0,0.1)"!==no.backgroundColor;var a;if(!n.forceOverride&&s)return;const l=tl(t);i.forEach(l)}};function il(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:e})}}function ol(t){t.data.datasets.forEach((t=>{il(t)}))}var rl={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,n)=>{if(!n.enabled)return void ol(t);const i=t.width;t.data.datasets.forEach(((e,o)=>{const{_data:r,indexAxis:s}=e,a=t.getDatasetMeta(o),l=r||e.data;if("y"===To([s,t.options.indexAxis]))return;if(!a.controller.supportsDecimation)return;const c=t.scales[a.xAxisID];if("linear"!==c.type&&"time"!==c.type)return;if(t.options.parsing)return;let{start:h,count:u}=function(t,e){const n=e.length;let i,o=0;const{iScale:r}=t,{min:s,max:a,minDefined:l,maxDefined:c}=r.getUserBounds();return l&&(o=Ci(Ti(e,r.axis,s).lo,0,n-1)),i=c?Ci(Ti(e,r.axis,a).hi+1,o,n)-o:n-o,{start:o,count:i}}(a,l);if(u<=(n.threshold||4*i))return void il(e);let d;switch(On(r)&&(e._data=l,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),n.algorithm){case"lttb":d=function(t,e,n,i,o){const r=o.samples||i;if(r>=n)return t.slice(e,e+n);const s=[],a=(n-2)/(r-2);let l=0;const c=e+n-1;let h,u,d,f,p,g=e;for(s[l++]=t[g],h=0;h<r-2;h++){let i,o=0,r=0;const c=Math.floor((h+1)*a)+1+e,m=Math.min(Math.floor((h+2)*a)+1,n)+e,b=m-c;for(i=c;i<m;i++)o+=t[i].x,r+=t[i].y;o/=b,r/=b;const v=Math.floor(h*a)+1+e,y=Math.min(Math.floor((h+1)*a)+1,n)+e,{x:w,y:x}=t[g];for(d=f=-1,i=v;i<y;i++)f=.5*Math.abs((w-o)*(t[i].y-x)-(w-t[i].x)*(r-x)),f>d&&(d=f,u=t[i],p=i);s[l++]=u,g=p}return s[l++]=t[c],s}(l,h,u,i,n);break;case"min-max":d=function(t,e,n,i){let o,r,s,a,l,c,h,u,d,f,p=0,g=0;const m=[],b=e+n-1,v=t[e].x,y=t[b].x-v;for(o=e;o<e+n;++o){r=t[o],s=(r.x-v)/y*i,a=r.y;const e=0|s;if(e===l)a<d?(d=a,c=o):a>f&&(f=a,h=o),p=(g*p+r.x)/++g;else{const n=o-1;if(!On(c)&&!On(h)){const e=Math.min(c,h),i=Math.max(c,h);e!==u&&e!==n&&m.push({...t[e],x:p}),i!==u&&i!==n&&m.push({...t[i],x:p})}o>0&&n!==u&&m.push(t[n]),m.push(r),l=e,g=0,d=f=a,c=h=u=o}}return m}(l,h,u,i);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}e._decimated=d}))},destroy(t){ol(t)}};function sl(t,e,n,i){if(i)return;let o=e[t],r=n[t];return"angle"===t&&(o=_i(o),r=_i(r)),{property:t,start:o,end:r}}function al(t,e,n){for(;e>t;e--){const t=n[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function ll(t,e,n,i){return t&&e?i(t[n],e[n]):t?t[n]:e?e[n]:0}function cl(t,e){let n=[],i=!1;return Rn(t)?(i=!0,n=t):n=function(t,e){const{x:n=null,y:i=null}=t||{},o=e.points,r=[];return e.segments.forEach((({start:t,end:e})=>{e=al(t,e,o);const s=o[t],a=o[e];null!==i?(r.push({x:s.x,y:i}),r.push({x:a.x,y:i})):null!==n&&(r.push({x:n,y:s.y}),r.push({x:n,y:a.y}))})),r}(t,e),n.length?new Na({points:n,options:{tension:0},_loop:i,_fullLoop:i}):null}function hl(t){return t&&!1!==t.fill}function ul(t,e,n){let i=t[e].fill;const o=[e];let r;if(!n)return i;for(;!1!==i&&-1===o.indexOf(i);){if(!jn(i))return i;if(r=t[i],!r)return!1;if(r.visible)return i;o.push(i),i=r.fill}return!1}function dl(t,e,n){const i=function(t){const e=t.options,n=e.fill;let i=Nn(n&&n.target,n);void 0===i&&(i=!!e.backgroundColor);if(!1===i||null===i)return!1;if(!0===i)return"origin";return i}(t);if(Fn(i))return!isNaN(i.value)&&i;let o=parseFloat(i);return jn(o)&&Math.floor(o)===o?function(t,e,n,i){"-"!==t&&"+"!==t||(n=e+n);if(n===e||n<0||n>=i)return!1;return n}(i[0],e,o,n):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function fl(t,e,n){const i=[];for(let o=0;o<n.length;o++){const r=n[o],{first:s,last:a,point:l}=pl(r,e,"x");if(!(!l||s&&a))if(s)i.unshift(l);else if(t.push(l),!a)break}t.push(...i)}function pl(t,e,n){const i=t.interpolate(e,n);if(!i)return{};const o=i[n],r=t.segments,s=t.points;let a=!1,l=!1;for(let t=0;t<r.length;t++){const e=r[t],i=s[e.start][n],c=s[e.end][n];if(ki(o,i,c)){a=o===i,l=o===c;break}}return{first:a,last:l,point:i}}class gl{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,n){const{x:i,y:o,radius:r}=this;return e=e||{start:0,end:ii},t.arc(i,o,r,e.end,e.start,!0),!n.bounds}interpolate(t){const{x:e,y:n,radius:i}=this,o=t.angle;return{x:e+Math.cos(o)*i,y:n+Math.sin(o)*i,angle:o}}}function ml(t){const{chart:e,fill:n,line:i}=t;if(jn(n))return function(t,e){const n=t.getDatasetMeta(e),i=n&&t.isDatasetVisible(e);return i?n.dataset:null}(e,n);if("stack"===n)return function(t){const{scale:e,index:n,line:i}=t,o=[],r=i.segments,s=i.points,a=function(t,e){const n=[],i=t.getMatchingVisibleMetas("line");for(let t=0;t<i.length;t++){const o=i[t];if(o.index===e)break;o.hidden||n.unshift(o.dataset)}return n}(e,n);a.push(cl({x:null,y:e.bottom},i));for(let t=0;t<r.length;t++){const e=r[t];for(let t=e.start;t<=e.end;t++)fl(o,s[t],a)}return new Na({points:o,options:{}})}(t);if("shape"===n)return!0;const o=function(t){const e=t.scale||{};if(e.getPointPositionForValue)return function(t){const{scale:e,fill:n}=t,i=e.options,o=e.getLabels().length,r=i.reverse?e.max:e.min,s=function(t,e,n){let i;return i="start"===t?n:"end"===t?e.options.reverse?e.min:e.max:Fn(t)?t.value:e.getBaseValue(),i}(n,e,r),a=[];if(i.grid.circular){const t=e.getPointPositionForValue(0,r);return new gl({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(s)})}for(let t=0;t<o;++t)a.push(e.getPointPositionForValue(t,s));return a}(t);return function(t){const{scale:e={},fill:n}=t,i=function(t,e){let n=null;return"start"===t?n=e.bottom:"end"===t?n=e.top:Fn(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}(n,e);if(jn(i)){const t=e.isHorizontal();return{x:t?i:null,y:t?null:i}}return null}(t)}(t);return o instanceof gl?o:cl(o,i)}function bl(t,e,n){const i=ml(e),{chart:o,index:r,line:s,scale:a,axis:l}=e,c=s.options,h=c.fill,u=c.backgroundColor,{above:d=u,below:f=u}=h||{},p=o.getDatasetMeta(r),g=_r(o,p);i&&s.points.length&&(ho(t,n),function(t,e){const{line:n,target:i,above:o,below:r,area:s,scale:a,clip:l}=e,c=n._loop?"angle":e.axis;t.save();let h=r;r!==o&&("x"===c?(vl(t,i,s.top),wl(t,{line:n,target:i,color:o,scale:a,property:c,clip:l}),t.restore(),t.save(),vl(t,i,s.bottom)):"y"===c&&(yl(t,i,s.left),wl(t,{line:n,target:i,color:r,scale:a,property:c,clip:l}),t.restore(),t.save(),yl(t,i,s.right),h=o));wl(t,{line:n,target:i,color:h,scale:a,property:c,clip:l}),t.restore()}(t,{line:s,target:i,above:d,below:f,area:n,scale:a,axis:l,clip:g}),uo(t))}function vl(t,e,n){const{segments:i,points:o}=e;let r=!0,s=!1;t.beginPath();for(const a of i){const{start:i,end:l}=a,c=o[i],h=o[al(i,l,o)];r?(t.moveTo(c.x,c.y),r=!1):(t.lineTo(c.x,n),t.lineTo(c.x,c.y)),s=!!e.pathSegment(t,a,{move:s}),s?t.closePath():t.lineTo(h.x,n)}t.lineTo(e.first().x,n),t.closePath(),t.clip()}function yl(t,e,n){const{segments:i,points:o}=e;let r=!0,s=!1;t.beginPath();for(const a of i){const{start:i,end:l}=a,c=o[i],h=o[al(i,l,o)];r?(t.moveTo(c.x,c.y),r=!1):(t.lineTo(n,c.y),t.lineTo(c.x,c.y)),s=!!e.pathSegment(t,a,{move:s}),s?t.closePath():t.lineTo(n,h.y)}t.lineTo(n,e.first().y),t.closePath(),t.clip()}function wl(t,e){const{line:n,target:i,property:o,color:r,scale:s,clip:a}=e,l=function(t,e,n){const i=t.segments,o=t.points,r=e.points,s=[];for(const t of i){let{start:i,end:a}=t;a=al(i,a,o);const l=sl(n,o[i],o[a],t.loop);if(!e.segments){s.push({source:t,target:l,start:o[i],end:o[a]});continue}const c=br(e,l);for(const e of c){const i=sl(n,r[e.start],r[e.end],e.loop),a=mr(t,o,i);for(const t of a)s.push({source:t,target:e,start:{[n]:ll(l,i,"start",Math.max)},end:{[n]:ll(l,i,"end",Math.min)}})}}return s}(n,i,o);for(const{source:e,target:c,start:h,end:u}of l){const{style:{backgroundColor:l=r}={}}=e,d=!0!==i;t.save(),t.fillStyle=l,xl(t,s,a,d&&sl(o,h,u)),t.beginPath();const f=!!n.pathSegment(t,e);let p;if(d){f?t.closePath():_l(t,i,u,o);const e=!!i.pathSegment(t,c,{move:f,reverse:!0});p=f&&e,p||_l(t,i,h,o)}t.closePath(),t.fill(p?"evenodd":"nonzero"),t.restore()}}function xl(t,e,n,i){const o=e.chart.chartArea,{property:r,start:s,end:a}=i||{};if("x"===r||"y"===r){let e,i,l,c;"x"===r?(e=s,i=o.top,l=a,c=o.bottom):(e=o.left,i=s,l=o.right,c=a),t.beginPath(),n&&(e=Math.max(e,n.left),l=Math.min(l,n.right),i=Math.max(i,n.top),c=Math.min(c,n.bottom)),t.rect(e,i,l-e,c-i),t.clip()}}function _l(t,e,n,i){const o=e.interpolate(n,i);o&&t.lineTo(o.x,o.y)}var Sl={id:"filler",afterDatasetsUpdate(t,e,n){const i=(t.data.datasets||[]).length,o=[];let r,s,a,l;for(s=0;s<i;++s)r=t.getDatasetMeta(s),a=r.dataset,l=null,a&&a.options&&a instanceof Na&&(l={visible:t.isDatasetVisible(s),index:s,fill:dl(a,s,i),chart:t,axis:r.controller.options.indexAxis,scale:r.vScale,line:a}),r.$filler=l,o.push(l);for(s=0;s<i;++s)l=o[s],l&&!1!==l.fill&&(l.fill=ul(o,s,n.propagate))},beforeDraw(t,e,n){const i="beforeDraw"===n.drawTime,o=t.getSortedVisibleDatasetMetas(),r=t.chartArea;for(let e=o.length-1;e>=0;--e){const n=o[e].$filler;n&&(n.line.updateControlPoints(r,n.axis),i&&n.fill&&bl(t.ctx,n,r))}},beforeDatasetsDraw(t,e,n){if("beforeDatasetsDraw"!==n.drawTime)return;const i=t.getSortedVisibleDatasetMetas();for(let e=i.length-1;e>=0;--e){const n=i[e].$filler;hl(n)&&bl(t.ctx,n,t.chartArea)}},beforeDatasetDraw(t,e,n){const i=e.meta.$filler;hl(i)&&"beforeDatasetDraw"===n.drawTime&&bl(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Cl=(t,e)=>{let{boxHeight:n=e,boxWidth:i=e}=t;return t.usePointStyle&&(n=Math.min(n,e),i=t.pointStyleWidth||Math.min(i,e)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(e,n)}};class kl extends Bs{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,n){this.maxWidth=t,this.maxHeight=e,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=zn(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,n)=>t.sort(e,n,this.chart.data)))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const n=t.labels,i=Do(n.font),o=i.size,r=this._computeTitleHeight(),{boxWidth:s,itemHeight:a}=Cl(n,o);let l,c;e.font=i.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(r,o,s,a)+10):(c=this.maxHeight,l=this._fitCols(r,i,s,a)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,n,i){const{ctx:o,maxWidth:r,options:{labels:{padding:s}}}=this,a=this.legendHitBoxes=[],l=this.lineWidths=[0],c=i+s;let h=t;o.textAlign="left",o.textBaseline="middle";let u=-1,d=-c;return this.legendItems.forEach(((t,f)=>{const p=n+e/2+o.measureText(t.text).width;(0===f||l[l.length-1]+p+2*s>r)&&(h+=c,l[l.length-(f>0?0:1)]=0,d+=c,u++),a[f]={left:0,top:d,row:u,width:p,height:i},l[l.length-1]+=p+s})),h}_fitCols(t,e,n,i){const{ctx:o,maxHeight:r,options:{labels:{padding:s}}}=this,a=this.legendHitBoxes=[],l=this.columnSizes=[],c=r-t;let h=s,u=0,d=0,f=0,p=0;return this.legendItems.forEach(((t,r)=>{const{itemWidth:g,itemHeight:m}=function(t,e,n,i,o){const r=function(t,e,n,i){let o=t.text;o&&"string"!=typeof o&&(o=o.reduce(((t,e)=>t.length>e.length?t:e)));return e+n.size/2+i.measureText(o).width}(i,t,e,n),s=function(t,e,n){let i=t;"string"!=typeof e.text&&(i=Dl(e,n));return i}(o,i,e.lineHeight);return{itemWidth:r,itemHeight:s}}(n,e,o,t,i);r>0&&d+m+2*s>c&&(h+=u+s,l.push({width:u,height:d}),f+=u+s,p++,u=d=0),a[r]={left:f,top:d,col:p,width:g,height:m},u=Math.max(u,g),d+=m+s})),h+=u,l.push({width:u,height:d}),h}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:i},rtl:o}}=this,r=ur(o,this.left,this.width);if(this.isHorizontal()){let o=0,s=Ri(n,this.left+i,this.right-this.lineWidths[o]);for(const a of e)o!==a.row&&(o=a.row,s=Ri(n,this.left+i,this.right-this.lineWidths[o])),a.top+=this.top+t+i,a.left=r.leftForLtr(r.x(s),a.width),s+=a.width+i}else{let o=0,s=Ri(n,this.top+t+i,this.bottom-this.columnSizes[o].height);for(const a of e)a.col!==o&&(o=a.col,s=Ri(n,this.top+t+i,this.bottom-this.columnSizes[o].height)),a.top=s,a.left+=this.left+i,a.left=r.leftForLtr(r.x(a.left),a.width),s+=a.height+i}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;ho(t,this),this._draw(),uo(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:n,ctx:i}=this,{align:o,labels:r}=t,s=no.color,a=ur(t.rtl,this.left,this.width),l=Do(r.font),{padding:c}=r,h=l.size,u=h/2;let d;this.drawTitle(),i.textAlign=a.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=l.string;const{boxWidth:f,boxHeight:p,itemHeight:g}=Cl(r,h),m=this.isHorizontal(),b=this._computeTitleHeight();d=m?{x:Ri(o,this.left+c,this.right-n[0]),y:this.top+c+b,line:0}:{x:this.left+c,y:Ri(o,this.top+b+c,this.bottom-e[0].height),line:0},dr(this.ctx,t.textDirection);const v=g+c;this.legendItems.forEach(((y,w)=>{i.strokeStyle=y.fontColor,i.fillStyle=y.fontColor;const x=i.measureText(y.text).width,_=a.textAlign(y.textAlign||(y.textAlign=r.textAlign)),S=f+u+x;let C=d.x,k=d.y;a.setWidth(this.width),m?w>0&&C+S+c>this.right&&(k=d.y+=v,d.line++,C=d.x=Ri(o,this.left+c,this.right-n[d.line])):w>0&&k+v>this.bottom&&(C=d.x=C+e[d.line].width+c,d.line++,k=d.y=Ri(o,this.top+b+c,this.bottom-e[d.line].height));if(function(t,e,n){if(isNaN(f)||f<=0||isNaN(p)||p<0)return;i.save();const o=Nn(n.lineWidth,1);if(i.fillStyle=Nn(n.fillStyle,s),i.lineCap=Nn(n.lineCap,"butt"),i.lineDashOffset=Nn(n.lineDashOffset,0),i.lineJoin=Nn(n.lineJoin,"miter"),i.lineWidth=o,i.strokeStyle=Nn(n.strokeStyle,s),i.setLineDash(Nn(n.lineDash,[])),r.usePointStyle){const s={radius:p*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:o},l=a.xPlus(t,f/2);lo(i,s,l,e+u,r.pointStyleWidth&&f)}else{const r=e+Math.max((h-p)/2,0),s=a.leftForLtr(t,f),l=Co(n.borderRadius);i.beginPath(),Object.values(l).some((t=>0!==t))?vo(i,{x:s,y:r,w:f,h:p,radius:l}):i.rect(s,r,f,p),i.fill(),0!==o&&i.stroke()}i.restore()}(a.x(C),k,y),C=((t,e,n,i)=>t===(i?"left":"right")?n:"center"===t?(e+n)/2:e)(_,C+f+u,m?C+S:this.right,t.rtl),function(t,e,n){bo(i,n.text,t,e+g/2,l,{strikethrough:n.hidden,textAlign:a.textAlign(n.textAlign)})}(a.x(C),k,y),m)d.x+=S+c;else if("string"!=typeof y.text){const t=l.lineHeight;d.y+=Dl(y,t)+c}else d.y+=v})),fr(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,n=Do(e.font),i=ko(e.padding);if(!e.display)return;const o=ur(t.rtl,this.left,this.width),r=this.ctx,s=e.position,a=n.size/2,l=i.top+a;let c,h=this.left,u=this.width;if(this.isHorizontal())u=Math.max(...this.lineWidths),c=this.top+l,h=Ri(t.align,h,this.right-u);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);c=l+Ri(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const d=Ri(s,h,h+u);r.textAlign=o.textAlign(Oi(s)),r.textBaseline="middle",r.strokeStyle=e.color,r.fillStyle=e.color,r.font=n.string,bo(r,e.text,d,c,n)}_computeTitleHeight(){const t=this.options.title,e=Do(t.font),n=ko(t.padding);return t.display?e.lineHeight+n.height:0}_getLegendItemAt(t,e){let n,i,o;if(ki(t,this.left,this.right)&&ki(e,this.top,this.bottom))for(o=this.legendHitBoxes,n=0;n<o.length;++n)if(i=o[n],ki(t,i.left,i.left+i.width)&&ki(e,i.top,i.top+i.height))return this.legendItems[n];return null}handleEvent(t){const e=this.options;if(!function(t,e){if(("mousemove"===t||"mouseout"===t)&&(e.onHover||e.onLeave))return!0;if(e.onClick&&("click"===t||"mouseup"===t))return!0;return!1}(t.type,e))return;const n=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const r=this._hoveredItem,s=(o=n,null!==(i=r)&&null!==o&&i.datasetIndex===o.datasetIndex&&i.index===o.index);r&&!s&&zn(e.onLeave,[t,r,this],this),this._hoveredItem=n,n&&!s&&zn(e.onHover,[t,n,this],this)}else n&&zn(e.onClick,[t,n,this],this);var i,o}}function Dl(t,e){return e*(t.text?t.text.length:0)}var Tl={id:"legend",_element:kl,start(t,e,n){const i=t.legend=new kl({ctx:t.ctx,options:n,chart:t});ws.configure(t,i,n),ws.addBox(t,i)},stop(t){ws.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const i=t.legend;ws.configure(t,i,n),i.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const i=e.datasetIndex,o=n.chart;o.isDatasetVisible(i)?(o.hide(i),e.hidden=!0):(o.show(i),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:o,color:r,useBorderRadius:s,borderRadius:a}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const l=t.controller.getStyle(n?0:void 0),c=ko(l.borderWidth);return{text:e[t.index].label,fillStyle:l.backgroundColor,fontColor:r,hidden:!t.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:l.borderColor,pointStyle:i||l.pointStyle,rotation:l.rotation,textAlign:o||l.textAlign,borderRadius:s&&(a||l.borderRadius),datasetIndex:t.index}}),this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class Al extends Bs{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const i=Rn(n.text)?n.text.length:1;this._padding=ko(n.padding);const o=i*Do(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:n,bottom:i,right:o,options:r}=this,s=r.align;let a,l,c,h=0;return this.isHorizontal()?(l=Ri(s,n,o),c=e+t,a=o-n):("left"===r.position?(l=n+t,c=Ri(s,i,e),h=-.5*ni):(l=o-t,c=Ri(s,e,i),h=.5*ni),a=i-e),{titleX:l,titleY:c,maxWidth:a,rotation:h}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const n=Do(e.font),i=n.lineHeight/2+this._padding.top,{titleX:o,titleY:r,maxWidth:s,rotation:a}=this._drawArgs(i);bo(t,e.text,0,0,n,{color:e.color,maxWidth:s,rotation:a,textAlign:Oi(e.align),textBaseline:"middle",translation:[o,r]})}}var Ml={id:"title",_element:Al,start(t,e,n){!function(t,e){const n=new Al({ctx:t.ctx,options:e,chart:t});ws.configure(t,n,e),ws.addBox(t,n),t.titleBlock=n}(t,n)},stop(t){const e=t.titleBlock;ws.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const i=t.titleBlock;ws.configure(t,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Pl=new WeakMap;var Ll={id:"subtitle",start(t,e,n){const i=new Al({ctx:t.ctx,options:n,chart:t});ws.configure(t,i,n),ws.addBox(t,i),Pl.set(t,i)},stop(t){ws.removeBox(t,Pl.get(t)),Pl.delete(t)},beforeUpdate(t,e,n){const i=Pl.get(t);ws.configure(t,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const El={average(t){if(!t.length)return!1;let e,n,i=new Set,o=0,r=0;for(e=0,n=t.length;e<n;++e){const n=t[e].element;if(n&&n.hasValue()){const t=n.tooltipPosition();i.add(t.x),o+=t.y,++r}}if(0===r||0===i.size)return!1;return{x:[...i].reduce(((t,e)=>t+e))/i.size,y:o/r}},nearest(t,e){if(!t.length)return!1;let n,i,o,r=e.x,s=e.y,a=Number.POSITIVE_INFINITY;for(n=0,i=t.length;n<i;++n){const i=t[n].element;if(i&&i.hasValue()){const t=wi(e,i.getCenterPoint());t<a&&(a=t,o=i)}}if(o){const t=o.tooltipPosition();r=t.x,s=t.y}return{x:r,y:s}}};function Il(t,e){return e&&(Rn(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Ol(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Rl(t,e){const{element:n,datasetIndex:i,index:o}=e,r=t.getDatasetMeta(i).controller,{label:s,value:a}=r.getLabelAndValue(o);return{chart:t,label:s,parsed:r.getParsed(o),raw:t.data.datasets[i].data[o],formattedValue:a,dataset:r.getDataset(),dataIndex:o,datasetIndex:i,element:n}}function Fl(t,e){const n=t.chart.ctx,{body:i,footer:o,title:r}=t,{boxWidth:s,boxHeight:a}=e,l=Do(e.bodyFont),c=Do(e.titleFont),h=Do(e.footerFont),u=r.length,d=o.length,f=i.length,p=ko(e.padding);let g=p.height,m=0,b=i.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);if(b+=t.beforeBody.length+t.afterBody.length,u&&(g+=u*c.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),b){g+=f*(e.displayColors?Math.max(a,l.lineHeight):l.lineHeight)+(b-f)*l.lineHeight+(b-1)*e.bodySpacing}d&&(g+=e.footerMarginTop+d*h.lineHeight+(d-1)*e.footerSpacing);let v=0;const y=function(t){m=Math.max(m,n.measureText(t).width+v)};return n.save(),n.font=c.string,Wn(t.title,y),n.font=l.string,Wn(t.beforeBody.concat(t.afterBody),y),v=e.displayColors?s+2+e.boxPadding:0,Wn(i,(t=>{Wn(t.before,y),Wn(t.lines,y),Wn(t.after,y)})),v=0,n.font=h.string,Wn(t.footer,y),n.restore(),m+=p.width,{width:m,height:g}}function jl(t,e,n,i){const{x:o,width:r}=n,{width:s,chartArea:{left:a,right:l}}=t;let c="center";return"center"===i?c=o<=(a+l)/2?"left":"right":o<=r/2?c="left":o>=s-r/2&&(c="right"),function(t,e,n,i){const{x:o,width:r}=i,s=n.caretSize+n.caretPadding;return"left"===t&&o+r+s>e.width||"right"===t&&o-r-s<0||void 0}(c,t,e,n)&&(c="center"),c}function Bl(t,e,n){const i=n.yAlign||e.yAlign||function(t,e){const{y:n,height:i}=e;return n<i/2?"top":n>t.height-i/2?"bottom":"center"}(t,n);return{xAlign:n.xAlign||e.xAlign||jl(t,e,n,i),yAlign:i}}function Nl(t,e,n,i){const{caretSize:o,caretPadding:r,cornerRadius:s}=t,{xAlign:a,yAlign:l}=n,c=o+r,{topLeft:h,topRight:u,bottomLeft:d,bottomRight:f}=Co(s);let p=function(t,e){let{x:n,width:i}=t;return"right"===e?n-=i:"center"===e&&(n-=i/2),n}(e,a);const g=function(t,e,n){let{y:i,height:o}=t;return"top"===e?i+=n:i-="bottom"===e?o+n:o/2,i}(e,l,c);return"center"===l?"left"===a?p+=c:"right"===a&&(p-=c):"left"===a?p-=Math.max(h,d)+o:"right"===a&&(p+=Math.max(u,f)+o),{x:Ci(p,0,i.width-e.width),y:Ci(g,0,i.height-e.height)}}function Hl(t,e,n){const i=ko(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-i.right:t.x+i.left}function zl(t){return Il([],Ol(t))}function Wl(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const $l={beforeTitle:En,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,i=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(i>0&&e.dataIndex<i)return n[e.dataIndex]}return""},afterTitle:En,beforeBody:En,beforeLabel:En,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return On(n)||(e+=n),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:En,afterBody:En,beforeFooter:En,footer:En,afterFooter:En};function Vl(t,e,n,i){const o=t[e].call(n,i);return void 0===o?$l[e].call(n,i):o}class ql extends Bs{static positioners=El;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,n=this.options.setContext(this.getContext()),i=n.enabled&&e.options.animation&&n.animations,o=new Ar(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,n=this._tooltipItems,Ao(t,{tooltip:e,tooltipItems:n,type:"tooltip"})));var t,e,n}getTitle(t,e){const{callbacks:n}=e,i=Vl(n,"beforeTitle",this,t),o=Vl(n,"title",this,t),r=Vl(n,"afterTitle",this,t);let s=[];return s=Il(s,Ol(i)),s=Il(s,Ol(o)),s=Il(s,Ol(r)),s}getBeforeBody(t,e){return zl(Vl(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:n}=e,i=[];return Wn(t,(t=>{const e={before:[],lines:[],after:[]},o=Wl(n,t);Il(e.before,Ol(Vl(o,"beforeLabel",this,t))),Il(e.lines,Vl(o,"label",this,t)),Il(e.after,Ol(Vl(o,"afterLabel",this,t))),i.push(e)})),i}getAfterBody(t,e){return zl(Vl(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:n}=e,i=Vl(n,"beforeFooter",this,t),o=Vl(n,"footer",this,t),r=Vl(n,"afterFooter",this,t);let s=[];return s=Il(s,Ol(i)),s=Il(s,Ol(o)),s=Il(s,Ol(r)),s}_createItems(t){const e=this._active,n=this.chart.data,i=[],o=[],r=[];let s,a,l=[];for(s=0,a=e.length;s<a;++s)l.push(Rl(this.chart,e[s]));return t.filter&&(l=l.filter(((e,i,o)=>t.filter(e,i,o,n)))),t.itemSort&&(l=l.sort(((e,i)=>t.itemSort(e,i,n)))),Wn(l,(e=>{const n=Wl(t.callbacks,e);i.push(Vl(n,"labelColor",this,e)),o.push(Vl(n,"labelPointStyle",this,e)),r.push(Vl(n,"labelTextColor",this,e))})),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=r,this.dataPoints=l,l}update(t,e){const n=this.options.setContext(this.getContext()),i=this._active;let o,r=[];if(i.length){const t=El[n.position].call(this,i,this._eventPosition);r=this._createItems(n),this.title=this.getTitle(r,n),this.beforeBody=this.getBeforeBody(r,n),this.body=this.getBody(r,n),this.afterBody=this.getAfterBody(r,n),this.footer=this.getFooter(r,n);const e=this._size=Fl(this,n),s=Object.assign({},t,e),a=Bl(this.chart,n,s),l=Nl(n,s,a,this.chart);this.xAlign=a.xAlign,this.yAlign=a.yAlign,o={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(o={opacity:0});this._tooltipItems=r,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,n,i){const o=this.getCaretPosition(t,n,i);e.lineTo(o.x1,o.y1),e.lineTo(o.x2,o.y2),e.lineTo(o.x3,o.y3)}getCaretPosition(t,e,n){const{xAlign:i,yAlign:o}=this,{caretSize:r,cornerRadius:s}=n,{topLeft:a,topRight:l,bottomLeft:c,bottomRight:h}=Co(s),{x:u,y:d}=t,{width:f,height:p}=e;let g,m,b,v,y,w;return"center"===o?(y=d+p/2,"left"===i?(g=u,m=g-r,v=y+r,w=y-r):(g=u+f,m=g+r,v=y-r,w=y+r),b=g):(m="left"===i?u+Math.max(a,c)+r:"right"===i?u+f-Math.max(l,h)-r:this.caretX,"top"===o?(v=d,y=v-r,g=m-r,b=m+r):(v=d+p,y=v+r,g=m+r,b=m-r),w=v),{x1:g,x2:m,x3:b,y1:v,y2:y,y3:w}}drawTitle(t,e,n){const i=this.title,o=i.length;let r,s,a;if(o){const l=ur(n.rtl,this.x,this.width);for(t.x=Hl(this,n.titleAlign,n),e.textAlign=l.textAlign(n.titleAlign),e.textBaseline="middle",r=Do(n.titleFont),s=n.titleSpacing,e.fillStyle=n.titleColor,e.font=r.string,a=0;a<o;++a)e.fillText(i[a],l.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+s,a+1===o&&(t.y+=n.titleMarginBottom-s)}}_drawColorBox(t,e,n,i,o){const r=this.labelColors[n],s=this.labelPointStyles[n],{boxHeight:a,boxWidth:l}=o,c=Do(o.bodyFont),h=Hl(this,"left",o),u=i.x(h),d=a<c.lineHeight?(c.lineHeight-a)/2:0,f=e.y+d;if(o.usePointStyle){const e={radius:Math.min(l,a)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},n=i.leftForLtr(u,l)+l/2,c=f+a/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,ao(t,e,n,c),t.strokeStyle=r.borderColor,t.fillStyle=r.backgroundColor,ao(t,e,n,c)}else{t.lineWidth=Fn(r.borderWidth)?Math.max(...Object.values(r.borderWidth)):r.borderWidth||1,t.strokeStyle=r.borderColor,t.setLineDash(r.borderDash||[]),t.lineDashOffset=r.borderDashOffset||0;const e=i.leftForLtr(u,l),n=i.leftForLtr(i.xPlus(u,1),l-2),s=Co(r.borderRadius);Object.values(s).some((t=>0!==t))?(t.beginPath(),t.fillStyle=o.multiKeyBackground,vo(t,{x:e,y:f,w:l,h:a,radius:s}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),vo(t,{x:n,y:f+1,w:l-2,h:a-2,radius:s}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(e,f,l,a),t.strokeRect(e,f,l,a),t.fillStyle=r.backgroundColor,t.fillRect(n,f+1,l-2,a-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,e,n){const{body:i}=this,{bodySpacing:o,bodyAlign:r,displayColors:s,boxHeight:a,boxWidth:l,boxPadding:c}=n,h=Do(n.bodyFont);let u=h.lineHeight,d=0;const f=ur(n.rtl,this.x,this.width),p=function(n){e.fillText(n,f.x(t.x+d),t.y+u/2),t.y+=u+o},g=f.textAlign(r);let m,b,v,y,w,x,_;for(e.textAlign=r,e.textBaseline="middle",e.font=h.string,t.x=Hl(this,g,n),e.fillStyle=n.bodyColor,Wn(this.beforeBody,p),d=s&&"right"!==g?"center"===r?l/2+c:l+2+c:0,y=0,x=i.length;y<x;++y){for(m=i[y],b=this.labelTextColors[y],e.fillStyle=b,Wn(m.before,p),v=m.lines,s&&v.length&&(this._drawColorBox(e,t,y,f,n),u=Math.max(h.lineHeight,a)),w=0,_=v.length;w<_;++w)p(v[w]),u=h.lineHeight;Wn(m.after,p)}d=0,u=h.lineHeight,Wn(this.afterBody,p),t.y-=o}drawFooter(t,e,n){const i=this.footer,o=i.length;let r,s;if(o){const a=ur(n.rtl,this.x,this.width);for(t.x=Hl(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=a.textAlign(n.footerAlign),e.textBaseline="middle",r=Do(n.footerFont),e.fillStyle=n.footerColor,e.font=r.string,s=0;s<o;++s)e.fillText(i[s],a.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+n.footerSpacing}}drawBackground(t,e,n,i){const{xAlign:o,yAlign:r}=this,{x:s,y:a}=t,{width:l,height:c}=n,{topLeft:h,topRight:u,bottomLeft:d,bottomRight:f}=Co(i.cornerRadius);e.fillStyle=i.backgroundColor,e.strokeStyle=i.borderColor,e.lineWidth=i.borderWidth,e.beginPath(),e.moveTo(s+h,a),"top"===r&&this.drawCaret(t,e,n,i),e.lineTo(s+l-u,a),e.quadraticCurveTo(s+l,a,s+l,a+u),"center"===r&&"right"===o&&this.drawCaret(t,e,n,i),e.lineTo(s+l,a+c-f),e.quadraticCurveTo(s+l,a+c,s+l-f,a+c),"bottom"===r&&this.drawCaret(t,e,n,i),e.lineTo(s+d,a+c),e.quadraticCurveTo(s,a+c,s,a+c-d),"center"===r&&"left"===o&&this.drawCaret(t,e,n,i),e.lineTo(s,a+h),e.quadraticCurveTo(s,a,s+h,a),e.closePath(),e.fill(),i.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,n=this.$animations,i=n&&n.x,o=n&&n.y;if(i||o){const n=El[t.position].call(this,this._active,this._eventPosition);if(!n)return;const r=this._size=Fl(this,t),s=Object.assign({},n,this._size),a=Bl(e,t,s),l=Nl(t,s,a,e);i._to===l.x&&o._to===l.y||(this.xAlign=a.xAlign,this.yAlign=a.yAlign,this.width=r.width,this.height=r.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(e);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const r=ko(e.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&s&&(t.save(),t.globalAlpha=n,this.drawBackground(o,t,i,e),dr(t,e.textDirection),o.y+=r.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),fr(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const n=this._active,i=t.map((({datasetIndex:t,index:e})=>{const n=this.chart.getDatasetMeta(t);if(!n)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:n.data[e],index:e}})),o=!$n(n,i),r=this._positionChanged(i,e);(o||r)&&(this._active=i,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,n=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],r=this._getActiveElements(t,o,e,n),s=this._positionChanged(r,t),a=e||!$n(r,o)||s;return a&&(this._active=r,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),a}_getActiveElements(t,e,n,i){const o=this.options;if("mouseout"===t.type)return[];if(!i)return e.filter((t=>this.chart.data.datasets[t.datasetIndex]&&void 0!==this.chart.getDatasetMeta(t.datasetIndex).controller.getParsed(t.index)));const r=this.chart.getElementsAtEventForMode(t,o.mode,o,n);return o.reverse&&r.reverse(),r}_positionChanged(t,e){const{caretX:n,caretY:i,options:o}=this,r=El[o.position].call(this,t,e);return!1!==r&&(n!==r.x||i!==r.y)}}var Ul={id:"tooltip",_element:ql,positioners:El,afterInit(t,e,n){n&&(t.tooltip=new ql({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0}))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:$l},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},Xl=Object.freeze({__proto__:null,Colors:nl,Decimation:rl,Filler:Sl,Legend:Tl,SubTitle:Ll,Title:Ml,Tooltip:Ul});function Yl(t,e,n,i){const o=t.indexOf(e);if(-1===o)return((t,e,n,i)=>("string"==typeof e?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n))(t,e,n,i);return o!==t.lastIndexOf(e)?n:o}function Jl(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}function Gl(t,e){const n=[],{bounds:i,step:o,min:r,max:s,precision:a,count:l,maxTicks:c,maxDigits:h,includeBounds:u}=t,d=o||1,f=c-1,{min:p,max:g}=e,m=!On(r),b=!On(s),v=!On(l),y=(g-p)/(h+1);let w,x,_,S,C=fi((g-p)/f/d)*d;if(C<1e-14&&!m&&!b)return[{value:p},{value:g}];S=Math.ceil(g/C)-Math.floor(p/C),S>f&&(C=fi(S*C/f/d)*d),On(a)||(w=Math.pow(10,a),C=Math.ceil(C*w)/w),"ticks"===i?(x=Math.floor(p/C)*C,_=Math.ceil(g/C)*C):(x=p,_=g),m&&b&&o&&function(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}((s-r)/o,C/1e3)?(S=Math.round(Math.min((s-r)/C,c)),C=(s-r)/S,x=r,_=s):v?(x=m?r:x,_=b?s:_,S=l-1,C=(_-x)/S):(S=(_-x)/C,S=di(S,Math.round(S),C/1e3)?Math.round(S):Math.ceil(S));const k=Math.max(vi(C),vi(x));w=Math.pow(10,On(a)?k:a),x=Math.round(x*w)/w,_=Math.round(_*w)/w;let D=0;for(m&&(u&&x!==r?(n.push({value:r}),x<r&&D++,di(Math.round((x+D*C)*w)/w,r,Kl(r,y,t))&&D++):x<r&&D++);D<S;++D){const t=Math.round((x+D*C)*w)/w;if(b&&t>s)break;n.push({value:t})}return b&&u&&_!==s?n.length&&di(n[n.length-1].value,s,Kl(s,y,t))?n[n.length-1].value=s:n.push({value:s}):b&&_!==s||n.push({value:_}),n}function Kl(t,e,{horizontal:n,minRotation:i}){const o=mi(i),r=(n?Math.sin(o):Math.cos(o))||.001,s=.75*e*(""+t).length;return Math.min(e/r,s)}class Zl extends Ys{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return On(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:i,max:o}=this;const r=t=>i=e?i:t,s=t=>o=n?o:t;if(t){const t=ui(i),e=ui(o);t<0&&e<0?s(0):t>0&&e>0&&r(0)}if(i===o){let e=0===o?1:Math.abs(.05*o);s(o+e),t||r(i-e)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:i}=t;return i?(e=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const i=Gl({maxTicks:n,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&gi(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}configure(){const t=this.ticks;let e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const i=(n-e)/Math.max(t.length-1,1)/2;e-=i,n+=i}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return Yi(t,this.chart.options.locale,this.options.ticks.format)}}class Ql extends Zl{static id="linear";static defaults={ticks:{callback:Gi.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=jn(t)?t:0,this.max=jn(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=mi(this.options.ticks.minRotation),i=(t?Math.sin(n):Math.cos(n))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}const tc=t=>Math.floor(hi(t)),ec=(t,e)=>Math.pow(10,tc(t)+e);function nc(t){return 1===t/Math.pow(10,tc(t))}function ic(t,e,n){const i=Math.pow(10,n),o=Math.floor(t/i);return Math.ceil(e/i)-o}function oc(t,{min:e,max:n}){e=Bn(t.min,e);const i=[],o=tc(e);let r=function(t,e){let n=tc(e-t);for(;ic(t,e,n)>10;)n++;for(;ic(t,e,n)<10;)n--;return Math.min(n,tc(t))}(e,n),s=r<0?Math.pow(10,Math.abs(r)):1;const a=Math.pow(10,r),l=o>r?Math.pow(10,o):0,c=Math.round((e-l)*s)/s,h=Math.floor((e-l)/a/10)*a*10;let u=Math.floor((c-h)/Math.pow(10,r)),d=Bn(t.min,Math.round((l+h+u*Math.pow(10,r))*s)/s);for(;d<n;)i.push({value:d,major:nc(d),significand:u}),u>=10?u=u<15?15:20:u++,u>=20&&(r++,u=2,s=r>=0?1:s),d=Math.round((l+h+u*Math.pow(10,r))*s)/s;const f=Bn(t.max,d);return i.push({value:f,major:nc(f),significand:u}),i}class rc extends Ys{static id="logarithmic";static defaults={ticks:{callback:Gi.formatters.logarithmic,major:{enabled:!0}}};constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const n=Zl.prototype.parse.apply(this,[t,e]);if(0!==n)return jn(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=jn(t)?Math.max(0,t):null,this.max=jn(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!jn(this._userMin)&&(this.min=t===ec(this.min,0)?ec(this.min,-1):ec(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let n=this.min,i=this.max;const o=e=>n=t?n:e,r=t=>i=e?i:t;n===i&&(n<=0?(o(1),r(10)):(o(ec(n,-1)),r(ec(i,1)))),n<=0&&o(ec(i,-1)),i<=0&&r(ec(n,1)),this.min=n,this.max=i}buildTicks(){const t=this.options,e=oc({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&gi(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":Yi(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=hi(t),this._valueRange=hi(this.max)-hi(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(hi(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function sc(t){const e=t.ticks;if(e.display&&t.display){const t=ko(e.backdropPadding);return Nn(e.font&&e.font.size,no.font.size)+t.height}return 0}function ac(t,e,n,i,o){return t===i||t===o?{start:e-n/2,end:e+n/2}:t<i||t>o?{start:e-n,end:e}:{start:e,end:e+n}}function lc(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),i=[],o=[],r=t._pointLabels.length,s=t.options.pointLabels,a=s.centerPointLabels?ni/r:0;for(let u=0;u<r;u++){const r=s.setContext(t.getPointLabelContext(u));o[u]=r.padding;const d=t.getPointPosition(u,t.drawingArea+o[u],a),f=Do(r.font),p=(l=t.ctx,c=f,h=Rn(h=t._pointLabels[u])?h:[h],{w:oo(l,c.string,h),h:h.length*c.lineHeight});i[u]=p;const g=_i(t.getIndexAngle(u)+a),m=Math.round(bi(g));cc(n,e,g,ac(m,d.x,p.w,0,180),ac(m,d.y,p.h,90,270))}var l,c,h;t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=function(t,e,n){const i=[],o=t._pointLabels.length,r=t.options,{centerPointLabels:s,display:a}=r.pointLabels,l={extra:sc(r)/2,additionalAngle:s?ni/o:0};let c;for(let r=0;r<o;r++){l.padding=n[r],l.size=e[r];const o=hc(t,r,l);i.push(o),"auto"===a&&(o.visible=uc(o,c),o.visible&&(c=o))}return i}(t,i,o)}function cc(t,e,n,i,o){const r=Math.abs(Math.sin(n)),s=Math.abs(Math.cos(n));let a=0,l=0;i.start<e.l?(a=(e.l-i.start)/r,t.l=Math.min(t.l,e.l-a)):i.end>e.r&&(a=(i.end-e.r)/r,t.r=Math.max(t.r,e.r+a)),o.start<e.t?(l=(e.t-o.start)/s,t.t=Math.min(t.t,e.t-l)):o.end>e.b&&(l=(o.end-e.b)/s,t.b=Math.max(t.b,e.b+l))}function hc(t,e,n){const i=t.drawingArea,{extra:o,additionalAngle:r,padding:s,size:a}=n,l=t.getPointPosition(e,i+o+s,r),c=Math.round(bi(_i(l.angle+ai))),h=function(t,e,n){90===n||270===n?t-=e/2:(n>270||n<90)&&(t-=e);return t}(l.y,a.h,c),u=function(t){if(0===t||180===t)return"center";if(t<180)return"left";return"right"}(c),d=function(t,e,n){"right"===n?t-=e:"center"===n&&(t-=e/2);return t}(l.x,a.w,u);return{visible:!0,x:l.x,y:h,textAlign:u,left:d,top:h,right:d+a.w,bottom:h+a.h}}function uc(t,e){if(!e)return!0;const{left:n,top:i,right:o,bottom:r}=t;return!(co({x:n,y:i},e)||co({x:n,y:r},e)||co({x:o,y:i},e)||co({x:o,y:r},e))}function dc(t,e,n){const{left:i,top:o,right:r,bottom:s}=n,{backdropColor:a}=e;if(!On(a)){const n=Co(e.borderRadius),l=ko(e.backdropPadding);t.fillStyle=a;const c=i-l.left,h=o-l.top,u=r-i+l.width,d=s-o+l.height;Object.values(n).some((t=>0!==t))?(t.beginPath(),vo(t,{x:c,y:h,w:u,h:d,radius:n}),t.fill()):t.fillRect(c,h,u,d)}}function fc(t,e,n,i){const{ctx:o}=t;if(n)o.arc(t.xCenter,t.yCenter,e,0,ii);else{let n=t.getPointPosition(0,e);o.moveTo(n.x,n.y);for(let r=1;r<i;r++)n=t.getPointPosition(r,e),o.lineTo(n.x,n.y)}}class pc extends Zl{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Gi.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=ko(sc(this.options)/2),e=this.width=this.maxWidth-t.width,n=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+n/2+t.top),this.drawingArea=Math.floor(Math.min(e,n)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=jn(t)&&!isNaN(t)?t:0,this.max=jn(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/sc(this.options))}generateTickLabels(t){Zl.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map(((t,e)=>{const n=zn(this.options.pointLabels.callback,[t,e],this);return n||0===n?n:""})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?lc(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,n,i){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((n-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,n,i))}getIndexAngle(t){return _i(t*(ii/(this._pointLabels.length||1))+mi(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(On(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(On(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const n=e[t];return function(t,e,n){return Ao(t,{label:n,index:e,type:"pointLabel"})}(this.getContext(),t,n)}}getPointPosition(t,e,n=0){const i=this.getIndexAngle(t)-ai+n;return{x:Math.cos(i)*e+this.xCenter,y:Math.sin(i)*e+this.yCenter,angle:i}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:n,right:i,bottom:o}=this._pointLabelItems[t];return{left:e,top:n,right:i,bottom:o}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const n=this.ctx;n.save(),n.beginPath(),fc(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),n.closePath(),n.fillStyle=t,n.fill(),n.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:n,grid:i,border:o}=e,r=this._pointLabels.length;let s,a,l;if(e.pointLabels.display&&function(t,e){const{ctx:n,options:{pointLabels:i}}=t;for(let o=e-1;o>=0;o--){const e=t._pointLabelItems[o];if(!e.visible)continue;const r=i.setContext(t.getPointLabelContext(o));dc(n,r,e);const s=Do(r.font),{x:a,y:l,textAlign:c}=e;bo(n,t._pointLabels[o],a,l+s.lineHeight/2,s,{color:r.color,textAlign:c,textBaseline:"middle"})}}(this,r),i.display&&this.ticks.forEach(((t,e)=>{if(0!==e||0===e&&this.min<0){a=this.getDistanceFromCenterForValue(t.value);const n=this.getContext(e),s=i.setContext(n),l=o.setContext(n);!function(t,e,n,i,o){const r=t.ctx,s=e.circular,{color:a,lineWidth:l}=e;!s&&!i||!a||!l||n<0||(r.save(),r.strokeStyle=a,r.lineWidth=l,r.setLineDash(o.dash||[]),r.lineDashOffset=o.dashOffset,r.beginPath(),fc(t,n,s,i),r.closePath(),r.stroke(),r.restore())}(this,s,a,r,l)}})),n.display){for(t.save(),s=r-1;s>=0;s--){const i=n.setContext(this.getPointLabelContext(s)),{color:o,lineWidth:r}=i;r&&o&&(t.lineWidth=r,t.strokeStyle=o,t.setLineDash(i.borderDash),t.lineDashOffset=i.borderDashOffset,a=this.getDistanceFromCenterForValue(e.reverse?this.min:this.max),l=this.getPointPosition(s,a),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,n=e.ticks;if(!n.display)return;const i=this.getIndexAngle(0);let o,r;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((i,s)=>{if(0===s&&this.min>=0&&!e.reverse)return;const a=n.setContext(this.getContext(s)),l=Do(a.font);if(o=this.getDistanceFromCenterForValue(this.ticks[s].value),a.showLabelBackdrop){t.font=l.string,r=t.measureText(i.label).width,t.fillStyle=a.backdropColor;const e=ko(a.backdropPadding);t.fillRect(-r/2-e.left,-o-l.size/2-e.top,r+e.width,l.size+e.height)}bo(t,i.label,0,-o,l,{color:a.color,strokeColor:a.textStrokeColor,strokeWidth:a.textStrokeWidth})})),t.restore()}drawTitle(){}}const gc={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},mc=Object.keys(gc);function bc(t,e){return t-e}function vc(t,e){if(On(e))return null;const n=t._adapter,{parser:i,round:o,isoWeekday:r}=t._parseOpts;let s=e;return"function"==typeof i&&(s=i(s)),jn(s)||(s="string"==typeof i?n.parse(s,i):n.parse(s)),null===s?null:(o&&(s="week"!==o||!pi(r)&&!0!==r?n.startOf(s,o):n.startOf(s,"isoWeek",r)),+s)}function yc(t,e,n,i){const o=mc.length;for(let r=mc.indexOf(t);r<o-1;++r){const t=gc[mc[r]],o=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((n-e)/(o*t.size))<=i)return mc[r]}return mc[o-1]}function wc(t,e,n){if(n){if(n.length){const{lo:i,hi:o}=Di(n,e);t[n[i]>=e?n[i]:n[o]]=!0}}else t[e]=!0}function xc(t,e,n){const i=[],o={},r=e.length;let s,a;for(s=0;s<r;++s)a=e[s],o[a]=s,i.push({value:a,major:!1});return 0!==r&&n?function(t,e,n,i){const o=t._adapter,r=+o.startOf(e[0].value,i),s=e[e.length-1].value;let a,l;for(a=r;a<=s;a=+o.add(a,1,i))l=n[a],l>=0&&(e[l].major=!0);return e}(t,i,o,n):i}class _c extends Ys{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e={}){const n=t.time||(t.time={}),i=this._adapter=new ts(t.adapters.date);i.init(e),Yn(n.displayFormats,i.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:vc(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,n=t.time.unit||"day";let{min:i,max:o,minDefined:r,maxDefined:s}=this.getUserBounds();function a(t){r||isNaN(t.min)||(i=Math.min(i,t.min)),s||isNaN(t.max)||(o=Math.max(o,t.max))}r&&s||(a(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||a(this.getMinMax(!1))),i=jn(i)&&!isNaN(i)?i:+e.startOf(Date.now(),n),o=jn(o)&&!isNaN(o)?o:+e.endOf(Date.now(),n)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],n=t[t.length-1]),{min:e,max:n}}buildTicks(){const t=this.options,e=t.time,n=t.ticks,i="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const o=this.min,r=function(t,e,n){let i=0,o=t.length;for(;i<o&&t[i]<e;)i++;for(;o>i&&t[o-1]>n;)o--;return i>0||o<t.length?t.slice(i,o):t}(i,o,this.max);return this._unit=e.unit||(n.autoSkip?yc(e.minUnit,this.min,this.max,this._getLabelCapacity(o)):function(t,e,n,i,o){for(let r=mc.length-1;r>=mc.indexOf(n);r--){const n=mc[r];if(gc[n].common&&t._adapter.diff(o,i,n)>=e-1)return n}return mc[n?mc.indexOf(n):0]}(this,r.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(t){for(let e=mc.indexOf(t)+1,n=mc.length;e<n;++e)if(gc[mc[e]].common)return mc[e]}(this._unit):void 0,this.initOffsets(i),t.reverse&&r.reverse(),xc(this,r,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((t=>+t.value)))}initOffsets(t=[]){let e,n,i=0,o=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),i=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,n=this.getDecimalForValue(t[t.length-1]),o=1===t.length?n:(n-this.getDecimalForValue(t[t.length-2]))/2);const r=t.length<3?.5:.25;i=Ci(i,0,r),o=Ci(o,0,r),this._offsets={start:i,end:o,factor:1/(i+1+o)}}_generate(){const t=this._adapter,e=this.min,n=this.max,i=this.options,o=i.time,r=o.unit||yc(o.minUnit,e,n,this._getLabelCapacity(e)),s=Nn(i.ticks.stepSize,1),a="week"===r&&o.isoWeekday,l=pi(a)||!0===a,c={};let h,u,d=e;if(l&&(d=+t.startOf(d,"isoWeek",a)),d=+t.startOf(d,l?"day":r),t.diff(n,e,r)>1e5*s)throw new Error(e+" and "+n+" are too far apart with stepSize of "+s+" "+r);const f="data"===i.ticks.source&&this.getDataTimestamps();for(h=d,u=0;h<n;h=+t.add(h,s,r),u++)wc(c,h,f);return h!==n&&"ticks"!==i.bounds&&1!==u||wc(c,h,f),Object.keys(c).sort(bc).map((t=>+t))}getLabelForValue(t){const e=this._adapter,n=this.options.time;return n.tooltipFormat?e.format(t,n.tooltipFormat):e.format(t,n.displayFormats.datetime)}format(t,e){const n=this.options.time.displayFormats,i=this._unit,o=e||n[i];return this._adapter.format(t,o)}_tickFormatFunction(t,e,n,i){const o=this.options,r=o.ticks.callback;if(r)return zn(r,[t,e,n],this);const s=o.time.displayFormats,a=this._unit,l=this._majorUnit,c=a&&s[a],h=l&&s[l],u=n[e],d=l&&h&&u&&u.major;return this._adapter.format(t,i||(d?h:c))}generateTickLabels(t){let e,n,i;for(e=0,n=t.length;e<n;++e)i=t[e],i.label=this._tickFormatFunction(i.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+n)*e.factor)}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,n=this.ctx.measureText(t).width,i=mi(this.isHorizontal()?e.maxRotation:e.minRotation),o=Math.cos(i),r=Math.sin(i),s=this._resolveTickFontOptions(0).size;return{w:n*o+s*r,h:n*r+s*o}}_getLabelCapacity(t){const e=this.options.time,n=e.displayFormats,i=n[e.unit]||n.millisecond,o=this._tickFormatFunction(t,0,xc(this,[t],this._majorUnit),i),r=this._getLabelSize(o),s=Math.floor(this.isHorizontal()?this.width/r.w:this.height/r.h)-1;return s>0?s:1}getDataTimestamps(){let t,e,n=this._cache.data||[];if(n.length)return n;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(t=0,e=i.length;t<e;++t)n=n.concat(i[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const t=this._cache.labels||[];let e,n;if(t.length)return t;const i=this.getLabels();for(e=0,n=i.length;e<n;++e)t.push(vc(this,i[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Li(t.sort(bc))}}function Sc(t,e,n){let i,o,r,s,a=0,l=t.length-1;n?(e>=t[a].pos&&e<=t[l].pos&&({lo:a,hi:l}=Ti(t,"pos",e)),({pos:i,time:r}=t[a]),({pos:o,time:s}=t[l])):(e>=t[a].time&&e<=t[l].time&&({lo:a,hi:l}=Ti(t,"time",e)),({time:i,pos:r}=t[a]),({time:o,pos:s}=t[l]));const c=o-i;return c?r+(s-r)*(e-i)/c:r}var Cc=Object.freeze({__proto__:null,CategoryScale:class extends Ys{static id="category";static defaults={ticks:{callback:Jl}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:n,label:i}of e)t[n]===i&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(On(t))return null;const n=this.getLabels();return((t,e)=>null===t?null:Ci(Math.round(t),0,e))(e=isFinite(e)&&n[e]===t?e:Yl(n,t,Nn(e,t),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,i=[];let o=this.getLabels();o=0===t&&e===o.length-1?o:o.slice(t,e+1),this._valueRange=Math.max(o.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=t;n<=e;n++)i.push({value:n});return i}getLabelForValue(t){return Jl.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}},LinearScale:Ql,LogarithmicScale:rc,RadialLinearScale:pc,TimeScale:_c,TimeSeriesScale:class extends _c{static id="timeseries";static defaults=_c.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=Sc(e,this.min),this._tableRange=Sc(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:n}=this,i=[],o=[];let r,s,a,l,c;for(r=0,s=t.length;r<s;++r)l=t[r],l>=e&&l<=n&&i.push(l);if(i.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(r=0,s=i.length;r<s;++r)c=i[r+1],a=i[r-1],l=i[r],Math.round((c+a)/2)!==l&&o.push({time:l,pos:r/(s-1)});return o}_generate(){const t=this.min,e=this.max;let n=super.getDataTimestamps();return n.includes(t)&&n.length||n.splice(0,0,t),n.includes(e)&&1!==n.length||n.push(e),n.sort(((t,e)=>t-e))}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),n=this.getLabelTimestamps();return t=e.length&&n.length?this.normalize(e.concat(n)):e.length?e:n,t=this._cache.all=t,t}getDecimalForValue(t){return(Sc(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return Sc(this._table,n*this._tableRange+this._minPos,!0)}}});const kc=[Kr,Ja,Xl,Cc];Ca.register(...kc);const Dc=Ca;var Tc=function(){if("undefined"!=typeof window){if(window.devicePixelRatio)return window.devicePixelRatio;var t=window.screen;if(t)return(t.deviceXDPI||1)/(t.logicalXDPI||1)}return 1}(),Ac=function(t){var e,n=[];for(t=[].concat(t);t.length;)"string"==typeof(e=t.pop())?n.unshift.apply(n,e.split("\n")):Array.isArray(e)?t.push.apply(t,e):On(t)||n.unshift(""+e);return n},Mc=function(t,e,n){var i,o=[].concat(e),r=o.length,s=t.font,a=0;for(t.font=n.string,i=0;i<r;++i)a=Math.max(t.measureText(o[i]).width,a);return t.font=s,{height:r*n.lineHeight,width:a}},Pc=function(t,e,n){return Math.max(t,Math.min(e,n))},Lc=function(t,e){var n,i,o,r,s=t.slice(),a=[];for(n=0,o=e.length;n<o;++n)r=e[n],-1===(i=s.indexOf(r))?a.push([r,1]):s.splice(i,1);for(n=0,o=s.length;n<o;++n)a.push([s[n],-1]);return a};function Ec(t,e){var n=e.x,i=e.y;if(null===n)return{x:0,y:-1};if(null===i)return{x:1,y:0};var o=t.x-n,r=t.y-i,s=Math.sqrt(o*o+r*r);return{x:s?o/s:0,y:s?r/s:-1}}function Ic(t,e,n){var i=0;return t<n.left?i|=1:t>n.right&&(i|=2),e<n.top?i|=8:e>n.bottom&&(i|=4),i}function Oc(t,e){var n,i,o=e.anchor,r=t;return e.clamp&&(r=function(t,e){for(var n,i,o,r=t.x0,s=t.y0,a=t.x1,l=t.y1,c=Ic(r,s,e),h=Ic(a,l,e);c|h&&!(c&h);)8&(n=c||h)?(i=r+(a-r)*(e.top-s)/(l-s),o=e.top):4&n?(i=r+(a-r)*(e.bottom-s)/(l-s),o=e.bottom):2&n?(o=s+(l-s)*(e.right-r)/(a-r),i=e.right):1&n&&(o=s+(l-s)*(e.left-r)/(a-r),i=e.left),n===c?c=Ic(r=i,s=o,e):h=Ic(a=i,l=o,e);return{x0:r,x1:a,y0:s,y1:l}}(r,e.area)),"start"===o?(n=r.x0,i=r.y0):"end"===o?(n=r.x1,i=r.y1):(n=(r.x0+r.x1)/2,i=(r.y0+r.y1)/2),function(t,e,n,i,o){switch(o){case"center":n=i=0;break;case"bottom":n=0,i=1;break;case"right":n=1,i=0;break;case"left":n=-1,i=0;break;case"top":n=0,i=-1;break;case"start":n=-n,i=-i;break;case"end":break;default:o*=Math.PI/180,n=Math.cos(o),i=Math.sin(o)}return{x:t,y:e,vx:n,vy:i}}(n,i,t.vx,t.vy,e.align)}var Rc=function(t,e){var n=(t.startAngle+t.endAngle)/2,i=Math.cos(n),o=Math.sin(n),r=t.innerRadius,s=t.outerRadius;return Oc({x0:t.x+i*r,y0:t.y+o*r,x1:t.x+i*s,y1:t.y+o*s,vx:i,vy:o},e)},Fc=function(t,e){var n=Ec(t,e.origin),i=n.x*t.options.radius,o=n.y*t.options.radius;return Oc({x0:t.x-i,y0:t.y-o,x1:t.x+i,y1:t.y+o,vx:n.x,vy:n.y},e)},jc=function(t,e){var n=Ec(t,e.origin),i=t.x,o=t.y,r=0,s=0;return t.horizontal?(i=Math.min(t.x,t.base),r=Math.abs(t.base-t.x)):(o=Math.min(t.y,t.base),s=Math.abs(t.base-t.y)),Oc({x0:i,y0:o+s,x1:i+r,y1:o,vx:n.x,vy:n.y},e)},Bc=function(t,e){var n=Ec(t,e.origin);return Oc({x0:t.x,y0:t.y,x1:t.x+(t.width||0),y1:t.y+(t.height||0),vx:n.x,vy:n.y},e)},Nc=function(t){return Math.round(t*Tc)/Tc};function Hc(t,e){var n=e.chart.getDatasetMeta(e.datasetIndex).vScale;if(!n)return null;if(void 0!==n.xCenter&&void 0!==n.yCenter)return{x:n.xCenter,y:n.yCenter};var i=n.getBasePixel();return t.horizontal?{x:i,y:null}:{x:null,y:i}}function zc(t,e,n){var i=n.backgroundColor,o=n.borderColor,r=n.borderWidth;(i||o&&r)&&(t.beginPath(),function(t,e,n,i,o,r){var s=Math.PI/2;if(r){var a=Math.min(r,o/2,i/2),l=e+a,c=n+a,h=e+i-a,u=n+o-a;t.moveTo(e,c),l<h&&c<u?(t.arc(l,c,a,-Math.PI,-s),t.arc(h,c,a,-s,0),t.arc(h,u,a,0,s),t.arc(l,u,a,s,Math.PI)):l<h?(t.moveTo(l,n),t.arc(h,c,a,-s,s),t.arc(l,c,a,s,Math.PI+s)):c<u?(t.arc(l,c,a,-Math.PI,0),t.arc(l,u,a,0,Math.PI)):t.arc(l,c,a,-Math.PI,Math.PI),t.closePath(),t.moveTo(e,n)}else t.rect(e,n,i,o)}(t,Nc(e.x)+r/2,Nc(e.y)+r/2,Nc(e.w)-r,Nc(e.h)-r,n.borderRadius),t.closePath(),i&&(t.fillStyle=i,t.fill()),o&&r&&(t.strokeStyle=o,t.lineWidth=r,t.lineJoin="miter",t.stroke()))}function Wc(t,e,n){var i=t.shadowBlur,o=n.stroked,r=Nc(n.x),s=Nc(n.y),a=Nc(n.w);o&&t.strokeText(e,r,s,a),n.filled&&(i&&o&&(t.shadowBlur=0),t.fillText(e,r,s,a),i&&o&&(t.shadowBlur=i))}var $c=function(t,e,n,i){var o=this;o._config=t,o._index=i,o._model=null,o._rects=null,o._ctx=e,o._el=n};Xn($c.prototype,{_modelize:function(t,e,n,i){var o,r=this,s=r._index,a=Do(To([n.font,{}],i,s)),l=To([n.color,no.color],i,s);return{align:To([n.align,"center"],i,s),anchor:To([n.anchor,"center"],i,s),area:i.chart.chartArea,backgroundColor:To([n.backgroundColor,null],i,s),borderColor:To([n.borderColor,null],i,s),borderRadius:To([n.borderRadius,0],i,s),borderWidth:To([n.borderWidth,0],i,s),clamp:To([n.clamp,!1],i,s),clip:To([n.clip,!1],i,s),color:l,display:t,font:a,lines:e,offset:To([n.offset,4],i,s),opacity:To([n.opacity,1],i,s),origin:Hc(r._el,i),padding:ko(To([n.padding,4],i,s)),positioner:(o=r._el,o instanceof Pa?Rc:o instanceof za?Fc:o instanceof Ya?jc:Bc),rotation:To([n.rotation,0],i,s)*(Math.PI/180),size:Mc(r._ctx,e,a),textAlign:To([n.textAlign,"start"],i,s),textShadowBlur:To([n.textShadowBlur,0],i,s),textShadowColor:To([n.textShadowColor,l],i,s),textStrokeColor:To([n.textStrokeColor,l],i,s),textStrokeWidth:To([n.textStrokeWidth,0],i,s)}},update:function(t){var e,n,i,o=this,r=null,s=null,a=o._index,l=o._config,c=To([l.display,!0],t,a);c&&(e=t.dataset.data[a],(i=On(n=Nn(zn(l.formatter,[e,t]),e))?[]:Ac(n)).length&&(s=function(t){var e=t.borderWidth||0,n=t.padding,i=t.size.height,o=t.size.width,r=-o/2,s=-i/2;return{frame:{x:r-n.left-e,y:s-n.top-e,w:o+n.width+2*e,h:i+n.height+2*e},text:{x:r,y:s,w:o,h:i}}}(r=o._modelize(c,i,l,t)))),o._model=r,o._rects=s},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(t,e){var n,i=t.ctx,o=this._model,r=this._rects;this.visible()&&(i.save(),o.clip&&(n=o.area,i.beginPath(),i.rect(n.left,n.top,n.right-n.left,n.bottom-n.top),i.clip()),i.globalAlpha=Pc(0,o.opacity,1),i.translate(Nc(e.x),Nc(e.y)),i.rotate(o.rotation),zc(i,r.frame,o),function(t,e,n,i){var o,r=i.textAlign,s=i.color,a=!!s,l=i.font,c=e.length,h=i.textStrokeColor,u=i.textStrokeWidth,d=h&&u;if(c&&(a||d))for(n=function(t,e,n){var i=n.lineHeight,o=t.w,r=t.x;return"center"===e?r+=o/2:"end"!==e&&"right"!==e||(r+=o),{h:i,w:o,x:r,y:t.y+i/2}}(n,r,l),t.font=l.string,t.textAlign=r,t.textBaseline="middle",t.shadowBlur=i.textShadowBlur,t.shadowColor=i.textShadowColor,a&&(t.fillStyle=s),d&&(t.lineJoin="round",t.lineWidth=u,t.strokeStyle=h),o=0,c=e.length;o<c;++o)Wc(t,e[o],{stroked:d,filled:a,w:n.w,x:n.x,y:n.y+n.h*o})}(i,o.lines,r.text,o),i.restore())}});var Vc=Number.MIN_SAFE_INTEGER||-9007199254740991,qc=Number.MAX_SAFE_INTEGER||9007199254740991;function Uc(t,e,n){var i=Math.cos(n),o=Math.sin(n),r=e.x,s=e.y;return{x:r+i*(t.x-r)-o*(t.y-s),y:s+o*(t.x-r)+i*(t.y-s)}}function Xc(t,e){var n,i,o,r,s,a=qc,l=Vc,c=e.origin;for(n=0;n<t.length;++n)o=(i=t[n]).x-c.x,r=i.y-c.y,s=e.vx*o+e.vy*r,a=Math.min(a,s),l=Math.max(l,s);return{min:a,max:l}}function Yc(t,e){var n=e.x-t.x,i=e.y-t.y,o=Math.sqrt(n*n+i*i);return{vx:(e.x-t.x)/o,vy:(e.y-t.y)/o,origin:t,ln:o}}var Jc=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};function Gc(t,e,n){var i=e.positioner(t,e),o=i.vx,r=i.vy;if(!o&&!r)return{x:i.x,y:i.y};var s=n.w,a=n.h,l=e.rotation,c=Math.abs(s/2*Math.cos(l))+Math.abs(a/2*Math.sin(l)),h=Math.abs(s/2*Math.sin(l))+Math.abs(a/2*Math.cos(l)),u=1/Math.max(Math.abs(o),Math.abs(r));return c*=o*u,h*=r*u,c+=e.offset*o,h+=e.offset*r,{x:i.x+c,y:i.y+h}}Xn(Jc.prototype,{center:function(){var t=this._rect;return{x:t.x+t.w/2,y:t.y+t.h/2}},update:function(t,e,n){this._rotation=n,this._rect={x:e.x+t.x,y:e.y+t.y,w:e.w,h:e.h}},contains:function(t){var e=this,n=e._rect;return!((t=Uc(t,e.center(),-e._rotation)).x<n.x-1||t.y<n.y-1||t.x>n.x+n.w+2||t.y>n.y+n.h+2)},intersects:function(t){var e,n,i,o=this._points(),r=t._points(),s=[Yc(o[0],o[1]),Yc(o[0],o[3])];for(this._rotation!==t._rotation&&s.push(Yc(r[0],r[1]),Yc(r[0],r[3])),e=0;e<s.length;++e)if(n=Xc(o,s[e]),i=Xc(r,s[e]),n.max<i.min||i.max<n.min)return!1;return!0},_points:function(){var t=this,e=t._rect,n=t._rotation,i=t.center();return[Uc({x:e.x,y:e.y},i,n),Uc({x:e.x+e.w,y:e.y},i,n),Uc({x:e.x+e.w,y:e.y+e.h},i,n),Uc({x:e.x,y:e.y+e.h},i,n)]}});var Kc={prepare:function(t){var e,n,i,o,r,s=[];for(e=0,i=t.length;e<i;++e)for(n=0,o=t[e].length;n<o;++n)r=t[e][n],s.push(r),r.$layout={_box:new Jc,_hidable:!1,_visible:!0,_set:e,_idx:r._index};return s.sort((function(t,e){var n=t.$layout,i=e.$layout;return n._idx===i._idx?i._set-n._set:i._idx-n._idx})),this.update(s),s},update:function(t){var e,n,i,o,r,s=!1;for(e=0,n=t.length;e<n;++e)o=(i=t[e]).model(),(r=i.$layout)._hidable=o&&"auto"===o.display,r._visible=i.visible(),s|=r._hidable;s&&function(t){var e,n,i,o,r,s,a;for(e=0,n=t.length;e<n;++e)(o=(i=t[e]).$layout)._visible&&(a=new Proxy(i._el,{get:(t,e)=>t.getProps([e],!0)[e]}),r=i.geometry(),s=Gc(a,i.model(),r),o._box.update(s,r,i.rotation()));(function(t,e){var n,i,o,r;for(n=t.length-1;n>=0;--n)for(o=t[n].$layout,i=n-1;i>=0&&o._visible;--i)(r=t[i].$layout)._visible&&o._box.intersects(r._box)&&e(o,r)})(t,(function(t,e){var n=t._hidable,i=e._hidable;n&&i||i?e._visible=!1:n&&(t._visible=!1)}))}(t)},lookup:function(t,e){var n,i;for(n=t.length-1;n>=0;--n)if((i=t[n].$layout)&&i._visible&&i._box.contains(e))return t[n];return null},draw:function(t,e){var n,i,o,r,s,a;for(n=0,i=e.length;n<i;++n)(r=(o=e[n]).$layout)._visible&&(s=o.geometry(),a=Gc(o._el,o.model(),s),r._box.update(a,s,o.rotation()),o.draw(t,a))}},Zc="$datalabels",Qc="$default";function th(t,e,n,i){if(e){var o,r=n.$context,s=n.$groups;e[s._set]&&(o=e[s._set][s._key])&&!0===zn(o,[r,i])&&(t[Zc]._dirty=!0,n.update(r))}}function eh(t,e){var n,i,o=t[Zc],r=o._listeners;if(r.enter||r.leave){if("mousemove"===e.type)i=Kc.lookup(o._labels,e);else if("mouseout"!==e.type)return;n=o._hovered,o._hovered=i,function(t,e,n,i,o){var r,s;(n||i)&&(n?i?n!==i&&(s=r=!0):s=!0:r=!0,s&&th(t,e.leave,n,o),r&&th(t,e.enter,i,o))}(t,r,n,i,e)}}var nh={id:"datalabels",defaults:{align:"center",anchor:"center",backgroundColor:null,borderColor:null,borderRadius:0,borderWidth:0,clamp:!1,clip:!1,color:void 0,display:!0,font:{family:void 0,lineHeight:1.2,size:void 0,style:void 0,weight:null},formatter:function(t){if(On(t))return null;var e,n,i,o=t;if(Fn(t))if(On(t.label))if(On(t.r))for(o="",i=0,n=(e=Object.keys(t)).length;i<n;++i)o+=(0!==i?", ":"")+e[i]+": "+t[e[i]];else o=t.r;else o=t.label;return""+o},labels:void 0,listeners:{},offset:4,opacity:1,padding:{top:4,right:4,bottom:4,left:4},rotation:0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,textShadowBlur:0,textShadowColor:void 0},beforeInit:function(t){t[Zc]={_actives:[]}},beforeUpdate:function(t){var e=t[Zc];e._listened=!1,e._listeners={},e._datasets=[],e._labels=[]},afterDatasetUpdate:function(t,e,n){var i,o,r,s,a,l,c,h,u=e.index,d=t[Zc],f=d._datasets[u]=[],p=t.isDatasetVisible(u),g=t.data.datasets[u],m=function(t,e){var n,i,o,r=t.datalabels,s=[];return!1===r?null:(!0===r&&(r={}),e=Xn({},[e,r]),i=e.labels||{},o=Object.keys(i),delete e.labels,o.length?o.forEach((function(t){i[t]&&s.push(Xn({},[e,i[t],{_key:t}]))})):s.push(e),n=s.reduce((function(t,e){return Wn(e.listeners||{},(function(n,i){t[i]=t[i]||{},t[i][e._key||Qc]=n})),delete e.listeners,t}),{}),{labels:s,listeners:n})}(g,n),b=e.meta.data||[],v=t.ctx;for(v.save(),i=0,r=b.length;i<r;++i)if((c=b[i])[Zc]=[],p&&c&&t.getDataVisibility(i)&&!c.skip)for(o=0,s=m.labels.length;o<s;++o)l=(a=m.labels[o])._key,(h=new $c(a,v,c,i)).$groups={_set:u,_key:l||Qc},h.$context={active:!1,chart:t,dataIndex:i,dataset:g,datasetIndex:u},h.update(h.$context),c[Zc].push(h),f.push(h);v.restore(),Xn(d._listeners,m.listeners,{merger:function(t,n,i){n[t]=n[t]||{},n[t][e.index]=i[t],d._listened=!0}})},afterUpdate:function(t){t[Zc]._labels=Kc.prepare(t[Zc]._datasets)},afterDatasetsDraw:function(t){Kc.draw(t,t[Zc]._labels)},beforeEvent:function(t,e){if(t[Zc]._listened){var n=e.event;switch(n.type){case"mousemove":case"mouseout":eh(t,n);break;case"click":!function(t,e){var n=t[Zc],i=n._listeners.click,o=i&&Kc.lookup(n._labels,e);o&&th(t,i,o,e)}(t,n)}}},afterEvent:function(t){var e,n,i,o,r,s,a,l=t[Zc],c=l._actives,h=l._actives=t.getActiveElements(),u=Lc(c,h);for(e=0,n=u.length;e<n;++e)if((r=u[e])[1])for(i=0,o=(a=r[0].element[Zc]||[]).length;i<o;++i)(s=a[i]).$context.active=1===r[1],s.update(s.$context);(l._dirty||u.length)&&(Kc.update(l._labels),t.render()),delete l._dirty}};window.Swal=Ke(),window.Chart=Dc,window.ChartDataLabels=nh,Dc.register(nh)})()})();
//# sourceMappingURL=vendor.js.map