lorgg-v2-components 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lorgg-components.cjs.js +8 -8
- package/dist/lorgg-components.css +1 -1
- package/dist/lorgg-components.es.js +436 -436
- package/dist/lorgg-components.umd.js +23 -23
- package/package.json +1 -1
|
@@ -605,7 +605,7 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
|
|
605
605
|
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
|
606
606
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
607
607
|
* Copyright 2024 Fonticons, Inc.
|
|
608
|
-
*/const xT={prefix:"fab",iconName:"discord",icon:[640,512,[],"f392","M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z"]},FT={prefix:"fab",iconName:"reddit-alien",icon:[512,512,[],"f281","M373 138.6c-25.2 0-46.3-17.5-51.9-41l0 0c-30.6 4.3-54.2 30.7-54.2 62.4l0 .2c47.4 1.8 90.6 15.1 124.9 36.3c12.6-9.7 28.4-15.5 45.5-15.5c41.3 0 74.7 33.4 74.7 74.7c0 29.8-17.4 55.5-42.7 67.5c-2.4 86.8-97 156.6-213.2 156.6S45.5 410.1 43 323.4C17.6 311.5 0 285.7 0 255.7c0-41.3 33.4-74.7 74.7-74.7c17.2 0 33 5.8 45.7 15.6c34-21.1 76.8-34.4 123.7-36.4l0-.3c0-44.3 33.7-80.9 76.8-85.5C325.8 50.2 347.2 32 373 32c29.4 0 53.3 23.9 53.3 53.3s-23.9 53.3-53.3 53.3zM157.5 255.3c-20.9 0-38.9 20.8-40.2 47.9s17.1 38.1 38 38.1s36.6-9.8 37.8-36.9s-14.7-49.1-35.7-49.1zM395 303.1c-1.2-27.1-19.2-47.9-40.2-47.9s-36.9 22-35.7 49.1c1.2 27.1 16.9 36.9 37.8 36.9s39.3-11 38-38.1zm-60.1 70.8c1.5-3.6-1-7.7-4.9-8.1c-23-2.3-47.9-3.6-73.8-3.6s-50.8 1.3-73.8 3.6c-3.9 .4-6.4 4.5-4.9 8.1c12.9 30.8 43.3 52.4 78.7 52.4s65.8-21.6 78.7-52.4z"]},TT={prefix:"fab",iconName:"facebook",icon:[512,512,[62e3],"f09a","M512 256C512 114.6 397.4 0 256 0S0 114.6 0 256C0 376 82.7 476.8 194.2 504.5V334.2H141.4V256h52.8V222.3c0-87.1 39.4-127.5 125-127.5c16.2 0 44.2 3.2 55.7 6.4V172c-6-.6-16.5-1-29.6-1c-42 0-58.2 15.9-58.2 57.2V256h83.6l-14.4 78.2H287V510.1C413.8 494.8 512 386.9 512 256h0z"]},IT={prefix:"fab",iconName:"twitter",icon:[512,512,[],"f099","M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"]};function DT(){Mv.add(k6,fT,ST,z6,vT,mT,sT,rT,X6,kT,q6,$6,J6,g6,x6,M6,_6,dT,K6,tT,S6,O6,hT,I6,b6,BT,j6,w6,m6,lT,IT,R6,TT,FT,xT,y6,_T,oT,F6,N6,H6,U6,V6,G6,CT,pT,wT,P6,W6,L6,cT,aT,Z6,yT,Q6,D6),Mv.add({prefix:"fak",iconName:"chart-decks",icon:[640,512,[],"","M564 89c13.8-11 16-31.2 5-45s-31.2-16-45-5L383.4 151.5 275.2 70.4c-11.7-8.8-27.8-8.5-39.2 .6L76 199c-13.8 11-16 31.2-5 45s31.2 16 45 5L256.6 136.5l108.2 81.1c11.7 8.8 27.8 8.5 39.2-.6L564 89zM224 256V448c0 17.7 14.3 32 32 32s32-14.3 32-32V256c0-17.7-14.3-32-32-32s-32 14.3-32 32zM96 352v96c0 17.7 14.3 32 32 32s32-14.3 32-32V352c0-17.7-14.3-32-32-32s-32 14.3-32 32zM352 464c0 16 16 16 32 16l160 0c16 0 32 0 32-16s-16-16-32-16H384c-16 0-32 0-32 16zm0-64c0 16 16 16 32 16l160 0c16 0 32 0 32-16s-16-16-32-16H384c-16 0-32 0-32 16zm0-64c0 16 16 16 32 16l160 0c16 0 32 0 32-16s-16-16-32-16H384c-16 0-32 0-32 16z"]},{prefix:"fak",iconName:"chart-cards",icon:[640,512,[],"","M564 89c13.8-11 16-31.2 5-45s-31.2-16-45-5L383.4 151.5 275.2 70.4c-11.7-8.8-27.8-8.5-39.2 .6L76 199c-13.8 11-16 31.2-5 45s31.2 16 45 5L256.6 136.5l108.2 81.1c11.7 8.8 27.8 8.5 39.2-.6L564 89zM224 256V448c0 17.7 14.3 32 32 32s32-14.3 32-32V256c0-17.7-14.3-32-32-32s-32 14.3-32 32zM96 352v96c0 17.7 14.3 32 32 32s32-14.3 32-32V352c0-17.7-14.3-32-32-32s-32 14.3-32 32zm480-96c0-16-16-32-32-32H448c-16 0-32.6 16-32.6 32s0 176 .6 192s16 32 32 32h96c16 0 32-16 32-32V256z"]},{prefix:"fak",iconName:"chart-decks-2",icon:[603,512,[],"","M467.1 210.8c4.3 0-60.2 0 15.1 0C467.8 108.4 377.7 0 271.4 0c-5.1 0-10.1 .2-15.1 .6V225.9h75.3c0-15.1 45.2-15.1 135.5-15.1zM301.5 346.4c0-27.1 0-45.2 0-75.3H211.1V30.6C93.4 38.4 .3 136.3 .3 256c0 124.8 101.2 225.9 225.9 225.9c41.2 0 42.1 4.2 75.3-15.1c0-45.2 0-80.5 0-120.5zm45.2 105.4c0 30.1 30.1 30.1 30.1 30.1H557.5s30.1 0 30.1-30.1s-30.1-30.1-30.1-30.1H376.8s-30.1 0-30.1 30.1zm0-90.4c0 30.1 30.1 30.1 30.1 30.1H557.5s30.1 0 30.1-30.1s-30.1-30.1-30.1-30.1H376.8s-30.1 0-30.1 30.1zm0-90.4c0 30.1 30.1 30.1 30.1 30.1H557.5s30.1 0 30.1-30.1s-30.1-30.1-30.1-30.1H376.8s-30.1 0-30.1 30.1z"]},{prefix:"fak",iconName:"chart-cards-2",icon:[603,512,[],"","M376.8 195.8c28.3-14.2 60.2 0 75.3 30.1h60.2c0-24.9-20.2-45.2-45.2-45.2H135.9c-24.9 0-45.2 20.2-45.2 45.2V256c0 24.9 20.2 45.2 45.2 45.2H256.3c-15.1-30.1 15.1-45.2 15.1-45.2s75.3-45.2 105.4-60.2zm-90.4 256c12.8 0 45.2 0 45.2 0L271.4 331.3H135.9c-24.9 0-45.2 20.2-45.2 45.2v30.1c0 24.9 20.2 45.2 45.2 45.2H286.4zM452.1 105.4V75.3c0-24.9-20.2-45.2-45.2-45.2H135.9c-24.9 0-45.2 20.2-45.2 45.2v30.1c0 24.9 20.2 45.2 45.2 45.2H406.9c24.9 0 45.2-20.2 45.2-45.2zM285.8 273.7c-13.8 8.2-18.5 26.2-10.5 40.3l86.4 153.2c8 14.1 25.6 19 39.4 10.8l99.8-59c13.8-8.2 18.5-26.2 10.6-40.3L425 225.5c-8-14.1-25.6-18.9-39.4-10.7l-99.9 58.9zM509.2 433.7l-70 41.3c5 4.3 11.5 6.9 18.6 6.9h116c16 0 29-13.3 29-29.6V274.4c0-16.4-13-29.6-29-29.6h-116c-.9 0-1.8 .1-2.7 .1l70.8 125.4c12.5 22.2 5.1 50.6-16.6 63.4z"]},{prefix:"fak",iconName:"cards",icon:[500,504,[],"","M224.5 80.9c-1.6.4-28.6 7.7-60 16.1l-57 15.2-7.3 3.5-7.3 3.6-3.9 4.5c-5 5.6-8.5 12.9-10 20.9l-1.2 6.2 1 6c1.8 9.9 53.1 199.9 55.3 204.6 2.6 5.5 8 11.8 13.3 15.4 2.4 1.7 7.2 3.9 10.7 5.1l6.4 2.2 8-.5 8-.5 59-15.6 59-15.6 5.5-2.7c7-3.4 13.6-10.1 17.7-17.9l3.2-6 .9-7.5.9-7.4-1.2-6c-.7-3.3-12.8-49-26.9-101.5l-25.7-95.5-3.1-6.3-3.2-6.4-4.5-4c-2.5-2.3-7.5-5.5-11.1-7.1l-6.5-3.1-8.5-.3c-4.7-.1-9.8.2-11.5.6M311.6 137.3c.8 3 10.9 40.7 22.6 83.8l21.2 78.4V313l.1 13.5-2.3 7c-1.3 3.8-3.8 9.7-5.5 13l-3.2 6-9 9.1-9 9.1-8.5 4.2-8.5 4.1-45.7 12.2c-25.2 6.8-45.8 12.5-45.8 12.9 0 .9 9.9 5.5 14.5 6.8l4 1.1h133.1l5-1.7c13.8-4.6 23.9-15.9 26.9-30l1.5-6.8v-202l-1-5.8c-.5-3.2-2-8.3-3.4-11.3l-2.5-5.4-5-5-5.1-5.1-6.8-3.2-6.7-3.2-31.2-.3-31.1-.3z"]},{prefix:"fak",iconName:"checkerboard",icon:[4,4,[],"","M0 0h1v1H0zM2 0h1v1H2zM1 1h1v1H1zM3 1h1v1H3zM0 2h1v1H0zM2 2h1v1H2zM1 3h1v1H1zM3 3h1v1H3z"]})}const y_=Sa.defineStore("searchBarOptions",{state:()=>({cardOptions:[],playerOptions:[]}),actions:{addOption(e){if(e.type==="card"){if(this.cardOptions.findIndex(t=>t.link===e.link)!==-1){console.log("Repeat Link",e);return}this.cardOptions.length>=5&&this.cardOptions.shift(),this.cardOptions.push(e)}else{if(this.playerOptions.findIndex(t=>t.link===e.link)!==-1){console.log("Repeat Link",e);return}this.playerOptions.length>=5&&this.playerOptions.shift(),this.playerOptions.push(e)}this.sync()},startup(){this.cardOptions=JSON.parse(localStorage.getItem("search-bar-options-card")??"[]"),this.playerOptions=JSON.parse(localStorage.getItem("search-bar-options-player")??"[]")},sync(){localStorage.setItem("search-bar-options-card",JSON.stringify(this.cardOptions)),localStorage.setItem("search-bar-options-player",JSON.stringify(this.playerOptions))}}}),UT=Sa.defineStore("filters",{state:()=>({filters:{}}),actions:{update(e){for(let t in e)this.filters[t]=e[t];this.sync()},startup(){this.filters=JSON.parse(localStorage.getItem("filters")??"{}")},sync(){localStorage.setItem("filters",JSON.stringify(this.filters))}}}),Zm=Sa.defineStore("cardJson",{state:()=>({cardJson:[]}),actions:{update(e){this.cardJson=e}}});function Nv(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function eg(e={},t={}){Object.keys(t).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:Nv(t[n])&&Nv(e[n])&&Object.keys(t[n]).length>0&&eg(e[n],t[n])})}const B_={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function di(){const e=typeof document<"u"?document:{};return eg(e,B_),e}const OT={document:B_,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function Pn(){const e=typeof window<"u"?window:{};return eg(e,OT),e}function LT(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function ph(e,t=0){return setTimeout(e,t)}function Fu(){return Date.now()}function QT(e){const t=Pn();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function MT(e,t="x"){const n=Pn();let r,a,s;const i=QT(e);return n.WebKitCSSMatrix?(a=i.transform||i.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(A=>A.replace(",",".")).join(", ")),s=new n.WebKitCSSMatrix(a==="none"?"":a)):(s=i.MozTransform||i.OTransform||i.MsTransform||i.msTransform||i.transform||i.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=s.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?a=s.m41:r.length===16?a=parseFloat(r[12]):a=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?a=s.m42:r.length===16?a=parseFloat(r[13]):a=parseFloat(r[5])),a||0}function ac(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function NT(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function Un(...e){const t=Object(e[0]),n=["__proto__","constructor","prototype"];for(let r=1;r<e.length;r+=1){const a=e[r];if(a!=null&&!NT(a)){const s=Object.keys(Object(a)).filter(i=>n.indexOf(i)<0);for(let i=0,A=s.length;i<A;i+=1){const l=s[i],c=Object.getOwnPropertyDescriptor(a,l);c!==void 0&&c.enumerable&&(ac(t[l])&&ac(a[l])?a[l].__swiper__?t[l]=a[l]:Un(t[l],a[l]):!ac(t[l])&&ac(a[l])?(t[l]={},a[l].__swiper__?t[l]=a[l]:Un(t[l],a[l])):t[l]=a[l])}}}return t}function sc(e,t,n){e.style.setProperty(t,n)}function w_({swiper:e,targetPosition:t,side:n}){const r=Pn(),a=-e.translate;let s=null,i;const A=e.params.speed;e.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(e.cssModeFrameID);const l=t>a?"next":"prev",c=(d,f)=>l==="next"&&d>=f||l==="prev"&&d<=f,u=()=>{i=new Date().getTime(),s===null&&(s=i);const d=Math.max(Math.min((i-s)/A,1),0),f=.5-Math.cos(d*Math.PI)/2;let p=a+f*(t-a);if(c(p,t)&&(p=t),e.wrapperEl.scrollTo({[n]:p}),c(p,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:p})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(u)};u()}function Fr(e,t=""){return[...e.children].filter(n=>n.matches(t))}function b_(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:[t]),n}function PT(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function RT(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function Va(e,t){return Pn().getComputedStyle(e,null).getPropertyValue(t)}function Pv(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function HT(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function Rv(e,t,n){const r=Pn();return n?e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom")):e.offsetWidth}let Qf;function VT(){const e=Pn(),t=di();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function __(){return Qf||(Qf=VT()),Qf}let Mf;function $T({userAgent:e}={}){const t=__(),n=Pn(),r=n.navigator.platform,a=e||n.navigator.userAgent,s={ios:!1,android:!1},i=n.screen.width,A=n.screen.height,l=a.match(/(Android);?[\s\/]+([\d.]+)?/);let c=a.match(/(iPad).*OS\s([\d_]+)/);const u=a.match(/(iPod)(.*OS\s([\d_]+))?/),d=!c&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f=r==="Win32";let p=r==="MacIntel";const h=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&p&&t.touch&&h.indexOf(`${i}x${A}`)>=0&&(c=a.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),p=!1),l&&!f&&(s.os="android",s.android=!0),(c||d||u)&&(s.os="ios",s.ios=!0),s}function KT(e={}){return Mf||(Mf=$T(e)),Mf}let Nf;function zT(){const e=Pn();let t=!1;function n(){const r=e.navigator.userAgent.toLowerCase();return r.indexOf("safari")>=0&&r.indexOf("chrome")<0&&r.indexOf("android")<0}if(n()){const r=String(e.navigator.userAgent);if(r.includes("Version/")){const[a,s]=r.split("Version/")[1].split(" ")[0].split(".").map(i=>Number(i));t=a<16||a===16&&s<2}}return{isSafari:t||n(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}function WT(){return Nf||(Nf=zT()),Nf}function GT({swiper:e,on:t,emit:n}){const r=Pn();let a=null,s=null;const i=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},A=()=>{!e||e.destroyed||!e.initialized||(a=new ResizeObserver(u=>{s=r.requestAnimationFrame(()=>{const{width:d,height:f}=e;let p=d,h=f;u.forEach(({contentBoxSize:m,contentRect:y,target:g})=>{g&&g!==e.el||(p=y?y.width:(m[0]||m).inlineSize,h=y?y.height:(m[0]||m).blockSize)}),(p!==d||h!==f)&&i()})}),a.observe(e.el))},l=()=>{s&&r.cancelAnimationFrame(s),a&&a.unobserve&&e.el&&(a.unobserve(e.el),a=null)},c=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof r.ResizeObserver<"u"){A();return}r.addEventListener("resize",i),r.addEventListener("orientationchange",c)}),t("destroy",()=>{l(),r.removeEventListener("resize",i),r.removeEventListener("orientationchange",c)})}function jT({swiper:e,extendParams:t,on:n,emit:r}){const a=[],s=Pn(),i=(c,u={})=>{const d=s.MutationObserver||s.WebkitMutationObserver,f=new d(p=>{if(e.__preventObserver__)return;if(p.length===1){r("observerUpdate",p[0]);return}const h=function(){r("observerUpdate",p[0])};s.requestAnimationFrame?s.requestAnimationFrame(h):s.setTimeout(h,0)});f.observe(c,{attributes:typeof u.attributes>"u"?!0:u.attributes,childList:typeof u.childList>"u"?!0:u.childList,characterData:typeof u.characterData>"u"?!0:u.characterData}),a.push(f)},A=()=>{if(e.params.observer){if(e.params.observeParents){const c=HT(e.el);for(let u=0;u<c.length;u+=1)i(c[u])}i(e.el,{childList:e.params.observeSlideChildren}),i(e.wrapperEl,{attributes:!1})}},l=()=>{a.forEach(c=>{c.disconnect()}),a.splice(0,a.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",A),n("destroy",l)}const YT={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const a=n?"unshift":"push";return e.split(" ").forEach(s=>{r.eventsListeners[s]||(r.eventsListeners[s]=[]),r.eventsListeners[s][a](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function a(...s){r.off(e,a),a.__emitterProxy&&delete a.__emitterProxy,t.apply(r,s)}return a.__emitterProxy=t,r.on(e,a,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((a,s)=>{(a===t||a.__emitterProxy&&a.__emitterProxy===t)&&n.eventsListeners[r].splice(s,1)})}),n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let n,r,a;return typeof e[0]=="string"||Array.isArray(e[0])?(n=e[0],r=e.slice(1,e.length),a=t):(n=e[0].events,r=e[0].data,a=e[0].context||t),r.unshift(a),(Array.isArray(n)?n:n.split(" ")).forEach(i=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(A=>{A.apply(a,[i,...r])}),t.eventsListeners&&t.eventsListeners[i]&&t.eventsListeners[i].forEach(A=>{A.apply(a,r)})}),t}};function qT(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(Va(r,"padding-left")||0,10)-parseInt(Va(r,"padding-right")||0,10),n=n-parseInt(Va(r,"padding-top")||0,10)-parseInt(Va(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function XT(){const e=this;function t(T){return e.isHorizontal()?T:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[T]}function n(T,F){return parseFloat(T.getPropertyValue(t(F))||0)}const r=e.params,{wrapperEl:a,slidesEl:s,size:i,rtlTranslate:A,wrongRTL:l}=e,c=e.virtual&&r.virtual.enabled,u=c?e.virtual.slides.length:e.slides.length,d=Fr(s,`.${e.params.slideClass}, swiper-slide`),f=c?e.virtual.slides.length:d.length;let p=[];const h=[],m=[];let y=r.slidesOffsetBefore;typeof y=="function"&&(y=r.slidesOffsetBefore.call(e));let g=r.slidesOffsetAfter;typeof g=="function"&&(g=r.slidesOffsetAfter.call(e));const w=e.snapGrid.length,B=e.slidesGrid.length;let v=r.spaceBetween,_=-y,b=0,k=0;if(typeof i>"u")return;typeof v=="string"&&v.indexOf("%")>=0?v=parseFloat(v.replace("%",""))/100*i:typeof v=="string"&&(v=parseFloat(v)),e.virtualSize=-v,d.forEach(T=>{A?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(sc(a,"--swiper-centered-offset-before",""),sc(a,"--swiper-centered-offset-after",""));const C=r.grid&&r.grid.rows>1&&e.grid;C&&e.grid.initSlides(f);let E;const D=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter(T=>typeof r.breakpoints[T].slidesPerView<"u").length>0;for(let T=0;T<f;T+=1){E=0;let F;if(d[T]&&(F=d[T]),C&&e.grid.updateSlide(T,F,f,t),!(d[T]&&Va(F,"display")==="none")){if(r.slidesPerView==="auto"){D&&(d[T].style[t("width")]="");const U=getComputedStyle(F),W=F.style.transform,J=F.style.webkitTransform;if(W&&(F.style.transform="none"),J&&(F.style.webkitTransform="none"),r.roundLengths)E=e.isHorizontal()?Rv(F,"width",!0):Rv(F,"height",!0);else{const R=n(U,"width"),$=n(U,"padding-left"),de=n(U,"padding-right"),q=n(U,"margin-left"),Ae=n(U,"margin-right"),oe=U.getPropertyValue("box-sizing");if(oe&&oe==="border-box")E=R+q+Ae;else{const{clientWidth:le,offsetWidth:ge}=F;E=R+$+de+q+Ae+(ge-le)}}W&&(F.style.transform=W),J&&(F.style.webkitTransform=J),r.roundLengths&&(E=Math.floor(E))}else E=(i-(r.slidesPerView-1)*v)/r.slidesPerView,r.roundLengths&&(E=Math.floor(E)),d[T]&&(d[T].style[t("width")]=`${E}px`);d[T]&&(d[T].swiperSlideSize=E),m.push(E),r.centeredSlides?(_=_+E/2+b/2+v,b===0&&T!==0&&(_=_-i/2-v),T===0&&(_=_-i/2-v),Math.abs(_)<1/1e3&&(_=0),r.roundLengths&&(_=Math.floor(_)),k%r.slidesPerGroup===0&&p.push(_),h.push(_)):(r.roundLengths&&(_=Math.floor(_)),(k-Math.min(e.params.slidesPerGroupSkip,k))%e.params.slidesPerGroup===0&&p.push(_),h.push(_),_=_+E+v),e.virtualSize+=E+v,b=E,k+=1}}if(e.virtualSize=Math.max(e.virtualSize,i)+g,A&&l&&(r.effect==="slide"||r.effect==="coverflow")&&(a.style.width=`${e.virtualSize+v}px`),r.setWrapperSize&&(a.style[t("width")]=`${e.virtualSize+v}px`),C&&e.grid.updateWrapperSize(E,p,t),!r.centeredSlides){const T=[];for(let F=0;F<p.length;F+=1){let U=p[F];r.roundLengths&&(U=Math.floor(U)),p[F]<=e.virtualSize-i&&T.push(U)}p=T,Math.floor(e.virtualSize-i)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-i)}if(c&&r.loop){const T=m[0]+v;if(r.slidesPerGroup>1){const F=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/r.slidesPerGroup),U=T*r.slidesPerGroup;for(let W=0;W<F;W+=1)p.push(p[p.length-1]+U)}for(let F=0;F<e.virtual.slidesBefore+e.virtual.slidesAfter;F+=1)r.slidesPerGroup===1&&p.push(p[p.length-1]+T),h.push(h[h.length-1]+T),e.virtualSize+=T}if(p.length===0&&(p=[0]),v!==0){const T=e.isHorizontal()&&A?"marginLeft":t("marginRight");d.filter((F,U)=>!r.cssMode||r.loop?!0:U!==d.length-1).forEach(F=>{F.style[T]=`${v}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let T=0;m.forEach(U=>{T+=U+(v||0)}),T-=v;const F=T-i;p=p.map(U=>U<=0?-y:U>F?F+g:U)}if(r.centerInsufficientSlides){let T=0;if(m.forEach(F=>{T+=F+(v||0)}),T-=v,T<i){const F=(i-T)/2;p.forEach((U,W)=>{p[W]=U-F}),h.forEach((U,W)=>{h[W]=U+F})}}if(Object.assign(e,{slides:d,snapGrid:p,slidesGrid:h,slidesSizesGrid:m}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){sc(a,"--swiper-centered-offset-before",`${-p[0]}px`),sc(a,"--swiper-centered-offset-after",`${e.size/2-m[m.length-1]/2}px`);const T=-e.snapGrid[0],F=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(U=>U+T),e.slidesGrid=e.slidesGrid.map(U=>U+F)}if(f!==u&&e.emit("slidesLengthChange"),p.length!==w&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==B&&e.emit("slidesGridLengthChange"),r.watchSlidesProgress&&e.updateSlidesOffset(),!c&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){const T=`${r.containerModifierClass}backface-hidden`,F=e.el.classList.contains(T);f<=r.maxBackfaceHiddenSlides?F||e.el.classList.add(T):F&&e.el.classList.remove(T)}}function JT(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let a=0,s;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const i=A=>r?t.slides[t.getSlideIndexByData(A)]:t.slides[A];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(A=>{n.push(A)});else for(s=0;s<Math.ceil(t.params.slidesPerView);s+=1){const A=t.activeIndex+s;if(A>t.slides.length&&!r)break;n.push(i(A))}else n.push(i(t.activeIndex));for(s=0;s<n.length;s+=1)if(typeof n[s]<"u"){const A=n[s].offsetHeight;a=A>a?A:a}(a||a===0)&&(t.wrapperEl.style.height=`${a}px`)}function ZT(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()}function eI(e=this&&this.translate||0){const t=this,n=t.params,{slides:r,rtlTranslate:a,snapGrid:s}=t;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let i=-e;a&&(i=e),r.forEach(l=>{l.classList.remove(n.slideVisibleClass)}),t.visibleSlidesIndexes=[],t.visibleSlides=[];let A=n.spaceBetween;typeof A=="string"&&A.indexOf("%")>=0?A=parseFloat(A.replace("%",""))/100*t.size:typeof A=="string"&&(A=parseFloat(A));for(let l=0;l<r.length;l+=1){const c=r[l];let u=c.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(u-=r[0].swiperSlideOffset);const d=(i+(n.centeredSlides?t.minTranslate():0)-u)/(c.swiperSlideSize+A),f=(i-s[0]+(n.centeredSlides?t.minTranslate():0)-u)/(c.swiperSlideSize+A),p=-(i-u),h=p+t.slidesSizesGrid[l];(p>=0&&p<t.size-1||h>1&&h<=t.size||p<=0&&h>=t.size)&&(t.visibleSlides.push(c),t.visibleSlidesIndexes.push(l),r[l].classList.add(n.slideVisibleClass)),c.progress=a?-d:d,c.originalProgress=a?-f:f}}function tI(e){const t=this;if(typeof e>"u"){const u=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*u||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:a,isBeginning:s,isEnd:i,progressLoop:A}=t;const l=s,c=i;if(r===0)a=0,s=!0,i=!0;else{a=(e-t.minTranslate())/r;const u=Math.abs(e-t.minTranslate())<1,d=Math.abs(e-t.maxTranslate())<1;s=u||a<=0,i=d||a>=1,u&&(a=0),d&&(a=1)}if(n.loop){const u=t.getSlideIndexByData(0),d=t.getSlideIndexByData(t.slides.length-1),f=t.slidesGrid[u],p=t.slidesGrid[d],h=t.slidesGrid[t.slidesGrid.length-1],m=Math.abs(e);m>=f?A=(m-f)/h:A=(m+h-p)/h,A>1&&(A-=1)}Object.assign(t,{progress:a,progressLoop:A,isBeginning:s,isEnd:i}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),s&&!l&&t.emit("reachBeginning toEdge"),i&&!c&&t.emit("reachEnd toEdge"),(l&&!s||c&&!i)&&t.emit("fromEdge"),t.emit("progress",a)}function nI(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:a}=e,s=e.virtual&&n.virtual.enabled,i=l=>Fr(r,`.${n.slideClass}${l}, swiper-slide${l}`)[0];t.forEach(l=>{l.classList.remove(n.slideActiveClass,n.slideNextClass,n.slidePrevClass)});let A;if(s)if(n.loop){let l=a-e.virtual.slidesBefore;l<0&&(l=e.virtual.slides.length+l),l>=e.virtual.slides.length&&(l-=e.virtual.slides.length),A=i(`[data-swiper-slide-index="${l}"]`)}else A=i(`[data-swiper-slide-index="${a}"]`);else A=t[a];if(A){A.classList.add(n.slideActiveClass);let l=RT(A,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!l&&(l=t[0]),l&&l.classList.add(n.slideNextClass);let c=PT(A,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!c===0&&(c=t[t.length-1]),c&&c.classList.add(n.slidePrevClass)}e.emitSlidesClasses()}const ru=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){const a=r.querySelector(`.${e.params.lazyPreloaderClass}`);a&&a.remove()}},Pf=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},hh=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),a=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const i=a,A=[i-t];A.push(...Array.from({length:t}).map((l,c)=>i+r+c)),e.slides.forEach((l,c)=>{A.includes(l.column)&&Pf(e,c)});return}const s=a+r-1;if(e.params.rewind||e.params.loop)for(let i=a-t;i<=s+t;i+=1){const A=(i%n+n)%n;(A<a||A>s)&&Pf(e,A)}else for(let i=Math.max(a-t,0);i<=Math.min(s+t,n-1);i+=1)i!==a&&(i>s||i<a)&&Pf(e,i)};function rI(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let a;for(let s=0;s<t.length;s+=1)typeof t[s+1]<"u"?r>=t[s]&&r<t[s+1]-(t[s+1]-t[s])/2?a=s:r>=t[s]&&r<t[s+1]&&(a=s+1):r>=t[s]&&(a=s);return n.normalizeSlideIndex&&(a<0||typeof a>"u")&&(a=0),a}function aI(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:a,activeIndex:s,realIndex:i,snapIndex:A}=t;let l=e,c;const u=f=>{let p=f-t.virtual.slidesBefore;return p<0&&(p=t.virtual.slides.length+p),p>=t.virtual.slides.length&&(p-=t.virtual.slides.length),p};if(typeof l>"u"&&(l=rI(t)),r.indexOf(n)>=0)c=r.indexOf(n);else{const f=Math.min(a.slidesPerGroupSkip,l);c=f+Math.floor((l-f)/a.slidesPerGroup)}if(c>=r.length&&(c=r.length-1),l===s){c!==A&&(t.snapIndex=c,t.emit("snapIndexChange")),t.params.loop&&t.virtual&&t.params.virtual.enabled&&(t.realIndex=u(l));return}let d;t.virtual&&a.virtual.enabled&&a.loop?d=u(l):t.slides[l]?d=parseInt(t.slides[l].getAttribute("data-swiper-slide-index")||l,10):d=l,Object.assign(t,{previousSnapIndex:A,snapIndex:c,previousRealIndex:i,realIndex:d,previousIndex:s,activeIndex:l}),t.initialized&&hh(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),i!==d&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")}function sI(e){const t=this,n=t.params,r=e.closest(`.${n.slideClass}, swiper-slide`);let a=!1,s;if(r){for(let i=0;i<t.slides.length;i+=1)if(t.slides[i]===r){a=!0,s=i;break}}if(r&&a)t.clickedSlide=r,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):t.clickedIndex=s;else{t.clickedSlide=void 0,t.clickedIndex=void 0;return}n.slideToClickedSlide&&t.clickedIndex!==void 0&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}const iI={updateSize:qT,updateSlides:XT,updateAutoHeight:JT,updateSlidesOffset:ZT,updateSlidesProgress:eI,updateProgress:tI,updateSlidesClasses:nI,updateActiveIndex:aI,updateClickedSlide:sI};function oI(e=this.isHorizontal()?"x":"y"){const t=this,{params:n,rtlTranslate:r,translate:a,wrapperEl:s}=t;if(n.virtualTranslate)return r?-a:a;if(n.cssMode)return a;let i=MT(s,e);return i+=t.cssOverflowAdjustment(),r&&(i=-i),i||0}function AI(e,t){const n=this,{rtlTranslate:r,params:a,wrapperEl:s,progress:i}=n;let A=0,l=0;const c=0;n.isHorizontal()?A=r?-e:e:l=e,a.roundLengths&&(A=Math.floor(A),l=Math.floor(l)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?A:l,a.cssMode?s[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-A:-l:a.virtualTranslate||(n.isHorizontal()?A-=n.cssOverflowAdjustment():l-=n.cssOverflowAdjustment(),s.style.transform=`translate3d(${A}px, ${l}px, ${c}px)`);let u;const d=n.maxTranslate()-n.minTranslate();d===0?u=0:u=(e-n.minTranslate())/d,u!==i&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function lI(){return-this.snapGrid[0]}function cI(){return-this.snapGrid[this.snapGrid.length-1]}function uI(e=0,t=this.params.speed,n=!0,r=!0,a){const s=this,{params:i,wrapperEl:A}=s;if(s.animating&&i.preventInteractionOnTransition)return!1;const l=s.minTranslate(),c=s.maxTranslate();let u;if(r&&e>l?u=l:r&&e<c?u=c:u=e,s.updateProgress(u),i.cssMode){const d=s.isHorizontal();if(t===0)A[d?"scrollLeft":"scrollTop"]=-u;else{if(!s.support.smoothScroll)return w_({swiper:s,targetPosition:-u,side:d?"left":"top"}),!0;A.scrollTo({[d?"left":"top"]:-u,behavior:"smooth"})}return!0}return t===0?(s.setTransition(0),s.setTranslate(u),n&&(s.emit("beforeTransitionStart",t,a),s.emit("transitionEnd"))):(s.setTransition(t),s.setTranslate(u),n&&(s.emit("beforeTransitionStart",t,a),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(f){!s||s.destroyed||f.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,n&&s.emit("transitionEnd"))}),s.wrapperEl.addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd))),!0}const dI={getTranslate:oI,setTranslate:AI,minTranslate:lI,maxTranslate:cI,translateTo:uI};function fI(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`),n.emit("setTransition",e,t)}function C_({swiper:e,runCallbacks:t,direction:n,step:r}){const{activeIndex:a,previousIndex:s}=e;let i=n;if(i||(a>s?i="next":a<s?i="prev":i="reset"),e.emit(`transition${r}`),t&&a!==s){if(i==="reset"){e.emit(`slideResetTransition${r}`);return}e.emit(`slideChangeTransition${r}`),i==="next"?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`)}}function pI(e=!0,t){const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),C_({swiper:n,runCallbacks:e,direction:t,step:"Start"}))}function hI(e=!0,t){const n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),C_({swiper:n,runCallbacks:e,direction:t,step:"End"}))}const mI={setTransition:fI,transitionStart:pI,transitionEnd:hI};function gI(e=0,t=this.params.speed,n=!0,r,a){typeof e=="string"&&(e=parseInt(e,10));const s=this;let i=e;i<0&&(i=0);const{params:A,snapGrid:l,slidesGrid:c,previousIndex:u,activeIndex:d,rtlTranslate:f,wrapperEl:p,enabled:h}=s;if(s.animating&&A.preventInteractionOnTransition||!h&&!r&&!a)return!1;const m=Math.min(s.params.slidesPerGroupSkip,i);let y=m+Math.floor((i-m)/s.params.slidesPerGroup);y>=l.length&&(y=l.length-1);const g=-l[y];if(A.normalizeSlideIndex)for(let B=0;B<c.length;B+=1){const v=-Math.floor(g*100),_=Math.floor(c[B]*100),b=Math.floor(c[B+1]*100);typeof c[B+1]<"u"?v>=_&&v<b-(b-_)/2?i=B:v>=_&&v<b&&(i=B+1):v>=_&&(i=B)}if(s.initialized&&i!==d&&(!s.allowSlideNext&&(f?g>s.translate&&g>s.minTranslate():g<s.translate&&g<s.minTranslate())||!s.allowSlidePrev&&g>s.translate&&g>s.maxTranslate()&&(d||0)!==i))return!1;i!==(u||0)&&n&&s.emit("beforeSlideChangeStart"),s.updateProgress(g);let w;if(i>d?w="next":i<d?w="prev":w="reset",f&&-g===s.translate||!f&&g===s.translate)return s.updateActiveIndex(i),A.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),A.effect!=="slide"&&s.setTranslate(g),w!=="reset"&&(s.transitionStart(n,w),s.transitionEnd(n,w)),!1;if(A.cssMode){const B=s.isHorizontal(),v=f?g:-g;if(t===0){const _=s.virtual&&s.params.virtual.enabled;_&&(s.wrapperEl.style.scrollSnapType="none",s._immediateVirtual=!0),_&&!s._cssModeVirtualInitialSet&&s.params.initialSlide>0?(s._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[B?"scrollLeft":"scrollTop"]=v})):p[B?"scrollLeft":"scrollTop"]=v,_&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._immediateVirtual=!1})}else{if(!s.support.smoothScroll)return w_({swiper:s,targetPosition:v,side:B?"left":"top"}),!0;p.scrollTo({[B?"left":"top"]:v,behavior:"smooth"})}return!0}return s.setTransition(t),s.setTranslate(g),s.updateActiveIndex(i),s.updateSlidesClasses(),s.emit("beforeTransitionStart",t,r),s.transitionStart(n,w),t===0?s.transitionEnd(n,w):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(v){!s||s.destroyed||v.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(n,w))}),s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)),!0}function vI(e=0,t=this.params.speed,n=!0,r){typeof e=="string"&&(e=parseInt(e,10));const a=this;let s=e;return a.params.loop&&(a.virtual&&a.params.virtual.enabled?s=s+a.virtual.slidesBefore:s=a.getSlideIndexByData(s)),a.slideTo(s,t,n,r)}function yI(e=this.params.speed,t=!0,n){const r=this,{enabled:a,params:s,animating:i}=r;if(!a)return r;let A=s.slidesPerGroup;s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(A=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndex<s.slidesPerGroupSkip?1:A,c=r.virtual&&s.virtual.enabled;if(s.loop){if(i&&!c&&s.loopPreventsSliding)return!1;r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft}return s.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+l,e,t,n)}function BI(e=this.params.speed,t=!0,n){const r=this,{params:a,snapGrid:s,slidesGrid:i,rtlTranslate:A,enabled:l,animating:c}=r;if(!l)return r;const u=r.virtual&&a.virtual.enabled;if(a.loop){if(c&&!u&&a.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const d=A?r.translate:-r.translate;function f(g){return g<0?-Math.floor(Math.abs(g)):Math.floor(g)}const p=f(d),h=s.map(g=>f(g));let m=s[h.indexOf(p)-1];if(typeof m>"u"&&a.cssMode){let g;s.forEach((w,B)=>{p>=w&&(g=B)}),typeof g<"u"&&(m=s[g>0?g-1:g])}let y=0;if(typeof m<"u"&&(y=i.indexOf(m),y<0&&(y=r.activeIndex-1),a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(y=y-r.slidesPerViewDynamic("previous",!0)+1,y=Math.max(y,0))),a.rewind&&r.isBeginning){const g=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(g,e,t,n)}return r.slideTo(y,e,t,n)}function wI(e=this.params.speed,t=!0,n){const r=this;return r.slideTo(r.activeIndex,e,t,n)}function bI(e=this.params.speed,t=!0,n,r=.5){const a=this;let s=a.activeIndex;const i=Math.min(a.params.slidesPerGroupSkip,s),A=i+Math.floor((s-i)/a.params.slidesPerGroup),l=a.rtlTranslate?a.translate:-a.translate;if(l>=a.snapGrid[A]){const c=a.snapGrid[A],u=a.snapGrid[A+1];l-c>(u-c)*r&&(s+=a.params.slidesPerGroup)}else{const c=a.snapGrid[A-1],u=a.snapGrid[A];l-c<=(u-c)*r&&(s-=a.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,a.slidesGrid.length-1),a.slideTo(s,e,t,n)}function _I(){const e=this,{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let a=e.clickedIndex,s;const i=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;s=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?a<e.loopedSlides-r/2||a>e.slides.length-e.loopedSlides+r/2?(e.loopFix(),a=e.getSlideIndex(Fr(n,`${i}[data-swiper-slide-index="${s}"]`)[0]),ph(()=>{e.slideTo(a)})):e.slideTo(a):a>e.slides.length-r?(e.loopFix(),a=e.getSlideIndex(Fr(n,`${i}[data-swiper-slide-index="${s}"]`)[0]),ph(()=>{e.slideTo(a)})):e.slideTo(a)}else e.slideTo(a)}const CI={slideTo:gI,slideToLoop:vI,slideNext:yI,slidePrev:BI,slideReset:wI,slideToClosest:bI,slideToClickedSlide:_I};function kI(e){const t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;Fr(r,`.${n.slideClass}, swiper-slide`).forEach((s,i)=>{s.setAttribute("data-swiper-slide-index",i)}),t.loopFix({slideRealIndex:e,direction:n.centeredSlides?void 0:"next"})}function EI({slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:r,activeSlideIndex:a,byController:s,byMousewheel:i}={}){const A=this;if(!A.params.loop)return;A.emit("beforeLoopFix");const{slides:l,allowSlidePrev:c,allowSlideNext:u,slidesEl:d,params:f}=A;if(A.allowSlidePrev=!0,A.allowSlideNext=!0,A.virtual&&f.virtual.enabled){t&&(!f.centeredSlides&&A.snapIndex===0?A.slideTo(A.virtual.slides.length,0,!1,!0):f.centeredSlides&&A.snapIndex<f.slidesPerView?A.slideTo(A.virtual.slides.length+A.snapIndex,0,!1,!0):A.snapIndex===A.snapGrid.length-1&&A.slideTo(A.virtual.slidesBefore,0,!1,!0)),A.allowSlidePrev=c,A.allowSlideNext=u,A.emit("loopFix");return}const p=f.slidesPerView==="auto"?A.slidesPerViewDynamic():Math.ceil(parseFloat(f.slidesPerView,10));let h=f.loopedSlides||p;h%f.slidesPerGroup!==0&&(h+=f.slidesPerGroup-h%f.slidesPerGroup),A.loopedSlides=h;const m=[],y=[];let g=A.activeIndex;typeof a>"u"?a=A.getSlideIndex(A.slides.filter(b=>b.classList.contains(f.slideActiveClass))[0]):g=a;const w=n==="next"||!n,B=n==="prev"||!n;let v=0,_=0;if(a<h){v=Math.max(h-a,f.slidesPerGroup);for(let b=0;b<h-a;b+=1){const k=b-Math.floor(b/l.length)*l.length;m.push(l.length-k-1)}}else if(a>A.slides.length-h*2){_=Math.max(a-(A.slides.length-h*2),f.slidesPerGroup);for(let b=0;b<_;b+=1){const k=b-Math.floor(b/l.length)*l.length;y.push(k)}}if(B&&m.forEach(b=>{A.slides[b].swiperLoopMoveDOM=!0,d.prepend(A.slides[b]),A.slides[b].swiperLoopMoveDOM=!1}),w&&y.forEach(b=>{A.slides[b].swiperLoopMoveDOM=!0,d.append(A.slides[b]),A.slides[b].swiperLoopMoveDOM=!1}),A.recalcSlides(),f.slidesPerView==="auto"&&A.updateSlides(),f.watchSlidesProgress&&A.updateSlidesOffset(),t){if(m.length>0&&B)if(typeof e>"u"){const b=A.slidesGrid[g],C=A.slidesGrid[g+v]-b;i?A.setTranslate(A.translate-C):(A.slideTo(g+v,0,!1,!0),r&&(A.touches[A.isHorizontal()?"startX":"startY"]+=C))}else r&&A.slideToLoop(e,0,!1,!0);else if(y.length>0&&w)if(typeof e>"u"){const b=A.slidesGrid[g],C=A.slidesGrid[g-_]-b;i?A.setTranslate(A.translate-C):(A.slideTo(g-_,0,!1,!0),r&&(A.touches[A.isHorizontal()?"startX":"startY"]+=C))}else A.slideToLoop(e,0,!1,!0)}if(A.allowSlidePrev=c,A.allowSlideNext=u,A.controller&&A.controller.control&&!s){const b={slideRealIndex:e,slideTo:!1,direction:n,setTranslate:r,activeSlideIndex:a,byController:!0};Array.isArray(A.controller.control)?A.controller.control.forEach(k=>{!k.destroyed&&k.params.loop&&k.loopFix(b)}):A.controller.control instanceof A.constructor&&A.controller.control.params.loop&&A.controller.control.loopFix(b)}A.emit("loopFix")}function SI(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(a=>{const s=typeof a.swiperSlideIndex>"u"?a.getAttribute("data-swiper-slide-index")*1:a.swiperSlideIndex;r[s]=a}),e.slides.forEach(a=>{a.removeAttribute("data-swiper-slide-index")}),r.forEach(a=>{n.append(a)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}const xI={loopCreate:kI,loopFix:EI,loopDestroy:SI};function FI(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function TI(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}const II={setGrabCursor:FI,unsetGrabCursor:TI};function DI(e,t=this){function n(r){if(!r||r===di()||r===Pn())return null;r.assignedSlot&&(r=r.assignedSlot);const a=r.closest(e);return!a&&!r.getRootNode?null:a||n(r.getRootNode().host)}return n(t)}function UI(e){const t=this,n=di(),r=Pn(),a=t.touchEventsData;a.evCache.push(e);const{params:s,touches:i,enabled:A}=t;if(!A||!s.simulateTouch&&e.pointerType==="mouse"||t.animating&&s.preventInteractionOnTransition)return;!t.animating&&s.cssMode&&s.loop&&t.loopFix();let l=e;l.originalEvent&&(l=l.originalEvent);let c=l.target;if(s.touchEventsTarget==="wrapper"&&!t.wrapperEl.contains(c)||"which"in l&&l.which===3||"button"in l&&l.button>0||a.isTouched&&a.isMoved)return;const u=!!s.noSwipingClass&&s.noSwipingClass!=="",d=e.composedPath?e.composedPath():e.path;u&&l.target&&l.target.shadowRoot&&d&&(c=d[0]);const f=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,p=!!(l.target&&l.target.shadowRoot);if(s.noSwiping&&(p?DI(f,c):c.closest(f))){t.allowClick=!0;return}if(s.swipeHandler&&!c.closest(s.swipeHandler))return;i.currentX=l.pageX,i.currentY=l.pageY;const h=i.currentX,m=i.currentY,y=s.edgeSwipeDetection||s.iOSEdgeSwipeDetection,g=s.edgeSwipeThreshold||s.iOSEdgeSwipeThreshold;if(y&&(h<=g||h>=r.innerWidth-g))if(y==="prevent")e.preventDefault();else return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),i.startX=h,i.startY=m,a.touchStartTime=Fu(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,s.threshold>0&&(a.allowThresholdMove=!1);let w=!0;c.matches(a.focusableElements)&&(w=!1,c.nodeName==="SELECT"&&(a.isTouched=!1)),n.activeElement&&n.activeElement.matches(a.focusableElements)&&n.activeElement!==c&&n.activeElement.blur();const B=w&&t.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||B)&&!c.isContentEditable&&l.preventDefault(),s.freeMode&&s.freeMode.enabled&&t.freeMode&&t.animating&&!s.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",l)}function OI(e){const t=di(),n=this,r=n.touchEventsData,{params:a,touches:s,rtlTranslate:i,enabled:A}=n;if(!A||!a.simulateTouch&&e.pointerType==="mouse")return;let l=e;if(l.originalEvent&&(l=l.originalEvent),!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",l);return}const c=r.evCache.findIndex(b=>b.pointerId===l.pointerId);c>=0&&(r.evCache[c]=l);const u=r.evCache.length>1?r.evCache[0]:l,d=u.pageX,f=u.pageY;if(l.preventedByNestedSwiper){s.startX=d,s.startY=f;return}if(!n.allowTouchMove){l.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(s,{startX:d,startY:f,prevX:n.touches.currentX,prevY:n.touches.currentY,currentX:d,currentY:f}),r.touchStartTime=Fu());return}if(a.touchReleaseOnEdges&&!a.loop){if(n.isVertical()){if(f<s.startY&&n.translate<=n.maxTranslate()||f>s.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(d<s.startX&&n.translate<=n.maxTranslate()||d>s.startX&&n.translate>=n.minTranslate())return}if(t.activeElement&&l.target===t.activeElement&&l.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}if(r.allowTouchCallbacks&&n.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;s.currentX=d,s.currentY=f;const p=s.currentX-s.startX,h=s.currentY-s.startY;if(n.params.threshold&&Math.sqrt(p**2+h**2)<n.params.threshold)return;if(typeof r.isScrolling>"u"){let b;n.isHorizontal()&&s.currentY===s.startY||n.isVertical()&&s.currentX===s.startX?r.isScrolling=!1:p*p+h*h>=25&&(b=Math.atan2(Math.abs(h),Math.abs(p))*180/Math.PI,r.isScrolling=n.isHorizontal()?b>a.touchAngle:90-b>a.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",l),typeof r.startMoving>"u"&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(r.startMoving=!0),r.isScrolling||n.zoom&&n.params.zoom&&n.params.zoom.enabled&&r.evCache.length>1){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!a.cssMode&&l.cancelable&&l.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&l.stopPropagation();let m=n.isHorizontal()?p:h,y=n.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;a.oneWayMovement&&(m=Math.abs(m)*(i?1:-1),y=Math.abs(y)*(i?1:-1)),s.diff=m,m*=a.touchRatio,i&&(m=-m,y=-y);const g=n.touchesDirection;n.swipeDirection=m>0?"prev":"next",n.touchesDirection=y>0?"prev":"next";const w=n.params.loop&&!a.cssMode;if(!r.isMoved){if(w&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const b=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});n.wrapperEl.dispatchEvent(b)}r.allowMomentumBounce=!1,a.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",l)}let B;r.isMoved&&g!==n.touchesDirection&&w&&Math.abs(m)>=1&&(n.loopFix({direction:n.swipeDirection,setTranslate:!0}),B=!0),n.emit("sliderMove",l),r.isMoved=!0,r.currentTranslate=m+r.startTranslate;let v=!0,_=a.resistanceRatio;if(a.touchReleaseOnEdges&&(_=0),m>0?(w&&!B&&r.currentTranslate>(a.centeredSlides?n.minTranslate()-n.size/2:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(v=!1,a.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+m)**_))):m<0&&(w&&!B&&r.currentTranslate<(a.centeredSlides?n.maxTranslate()+n.size/2:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(a.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(v=!1,a.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-m)**_))),v&&(l.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection==="next"&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&n.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),a.threshold>0)if(Math.abs(m)>a.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,r.currentTranslate=r.startTranslate,s.diff=n.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{r.currentTranslate=r.startTranslate;return}!a.followFinger||a.cssMode||((a.freeMode&&a.freeMode.enabled&&n.freeMode||a.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),a.freeMode&&a.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function LI(e){const t=this,n=t.touchEventsData,r=n.evCache.findIndex(B=>B.pointerId===e.pointerId);if(r>=0&&n.evCache.splice(r,1),["pointercancel","pointerout","pointerleave"].includes(e.type)&&!(e.type==="pointercancel"&&(t.browser.isSafari||t.browser.isWebView)))return;const{params:a,touches:s,rtlTranslate:i,slidesGrid:A,enabled:l}=t;if(!l||!a.simulateTouch&&e.pointerType==="mouse")return;let c=e;if(c.originalEvent&&(c=c.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",c),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&a.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}a.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const u=Fu(),d=u-n.touchStartTime;if(t.allowClick){const B=c.path||c.composedPath&&c.composedPath();t.updateClickedSlide(B&&B[0]||c.target),t.emit("tap click",c),d<300&&u-n.lastClickTime<300&&t.emit("doubleTap doubleClick",c)}if(n.lastClickTime=Fu(),ph(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||s.diff===0||n.currentTranslate===n.startTranslate){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let f;if(a.followFinger?f=i?t.translate:-t.translate:f=-n.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:f});return}let p=0,h=t.slidesSizesGrid[0];for(let B=0;B<A.length;B+=B<a.slidesPerGroupSkip?1:a.slidesPerGroup){const v=B<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;typeof A[B+v]<"u"?f>=A[B]&&f<A[B+v]&&(p=B,h=A[B+v]-A[B]):f>=A[B]&&(p=B,h=A[A.length-1]-A[A.length-2])}let m=null,y=null;a.rewind&&(t.isBeginning?y=a.virtual&&a.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(m=0));const g=(f-A[p])/h,w=p<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(d>a.longSwipesMs){if(!a.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(g>=a.longSwipesRatio?t.slideTo(a.rewind&&t.isEnd?m:p+w):t.slideTo(p)),t.swipeDirection==="prev"&&(g>1-a.longSwipesRatio?t.slideTo(p+w):y!==null&&g<0&&Math.abs(g)>a.longSwipesRatio?t.slideTo(y):t.slideTo(p))}else{if(!a.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(c.target===t.navigation.nextEl||c.target===t.navigation.prevEl)?c.target===t.navigation.nextEl?t.slideTo(p+w):t.slideTo(p):(t.swipeDirection==="next"&&t.slideTo(m!==null?m:p+w),t.swipeDirection==="prev"&&t.slideTo(y!==null?y:p))}}function Hv(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:a,snapGrid:s}=e,i=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const A=i&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!A?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!i?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=a,e.allowSlideNext=r,e.params.watchOverflow&&s!==e.snapGrid&&e.checkOverflow()}function QI(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function MI(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let a;const s=e.maxTranslate()-e.minTranslate();s===0?a=0:a=(e.translate-e.minTranslate())/s,a!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function NI(e){const t=this;ru(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}let Vv=!1;function PI(){}const k_=(e,t)=>{const n=di(),{params:r,el:a,wrapperEl:s,device:i}=e,A=!!r.nested,l=t==="on"?"addEventListener":"removeEventListener",c=t;a[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:A}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&a[l]("click",e.onClick,!0),r.cssMode&&s[l]("scroll",e.onScroll),r.updateOnWindowResize?e[c](i.ios||i.android?"resize orientationchange observerUpdate":"resize observerUpdate",Hv,!0):e[c]("observerUpdate",Hv,!0),a[l]("load",e.onLoad,{capture:!0})};function RI(){const e=this,t=di(),{params:n}=e;e.onTouchStart=UI.bind(e),e.onTouchMove=OI.bind(e),e.onTouchEnd=LI.bind(e),n.cssMode&&(e.onScroll=MI.bind(e)),e.onClick=QI.bind(e),e.onLoad=NI.bind(e),Vv||(t.addEventListener("touchstart",PI),Vv=!0),k_(e,"on")}function HI(){k_(this,"off")}const VI={attachEvents:RI,detachEvents:HI},$v=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function $I(){const e=this,{realIndex:t,initialized:n,params:r,el:a}=e,s=r.breakpoints;if(!s||s&&Object.keys(s).length===0)return;const i=e.getBreakpoint(s,e.params.breakpointsBase,e.el);if(!i||e.currentBreakpoint===i)return;const l=(i in s?s[i]:void 0)||e.originalParams,c=$v(e,r),u=$v(e,l),d=r.enabled;c&&!u?(a.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!c&&u&&(a.classList.add(`${r.containerModifierClass}grid`),(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&r.grid.fill==="column")&&a.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(m=>{if(typeof l[m]>"u")return;const y=r[m]&&r[m].enabled,g=l[m]&&l[m].enabled;y&&!g&&e[m].disable(),!y&&g&&e[m].enable()});const f=l.direction&&l.direction!==r.direction,p=r.loop&&(l.slidesPerView!==r.slidesPerView||f);f&&n&&e.changeDirection(),Un(e.params,l);const h=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),d&&!h?e.disable():!d&&h&&e.enable(),e.currentBreakpoint=i,e.emit("_beforeBreakpoint",l),p&&n&&(e.loopDestroy(),e.loopCreate(t),e.updateSlides()),e.emit("breakpoint",l)}function KI(e,t="window",n){if(!e||t==="container"&&!n)return;let r=!1;const a=Pn(),s=t==="window"?a.innerHeight:n.clientHeight,i=Object.keys(e).map(A=>{if(typeof A=="string"&&A.indexOf("@")===0){const l=parseFloat(A.substr(1));return{value:s*l,point:A}}return{value:A,point:A}});i.sort((A,l)=>parseInt(A.value,10)-parseInt(l.value,10));for(let A=0;A<i.length;A+=1){const{point:l,value:c}=i[A];t==="window"?a.matchMedia(`(min-width: ${c}px)`).matches&&(r=l):c<=n.clientWidth&&(r=l)}return r||"max"}const zI={setBreakpoint:$I,getBreakpoint:KI};function WI(e,t){const n=[];return e.forEach(r=>{typeof r=="object"?Object.keys(r).forEach(a=>{r[a]&&n.push(t+a)}):typeof r=="string"&&n.push(t+r)}),n}function GI(){const e=this,{classNames:t,params:n,rtl:r,el:a,device:s}=e,i=WI(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...i),a.classList.add(...t),e.emitContainerClasses()}function jI(){const e=this,{el:t,classNames:n}=e;t.classList.remove(...n),e.emitContainerClasses()}const YI={addClasses:GI,removeClasses:jI};function qI(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const a=e.slides.length-1,s=e.slidesGrid[a]+e.slidesSizesGrid[a]+r*2;e.isLocked=e.size>s}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}const XI={checkOverflow:qI},Kv={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function JI(e,t){return function(r={}){const a=Object.keys(r)[0],s=r[a];if(typeof s!="object"||s===null){Un(t,r);return}if(["navigation","pagination","scrollbar"].indexOf(a)>=0&&e[a]===!0&&(e[a]={auto:!0}),!(a in e&&"enabled"in s)){Un(t,r);return}e[a]===!0&&(e[a]={enabled:!0}),typeof e[a]=="object"&&!("enabled"in e[a])&&(e[a].enabled=!0),e[a]||(e[a]={enabled:!1}),Un(t,r)}}const Rf={eventsEmitter:YT,update:iI,translate:dI,transition:mI,slide:CI,loop:xI,grabCursor:II,events:VI,breakpoints:zI,checkOverflow:XI,classes:YI},Hf={};let YA=class ta{constructor(...t){let n,r;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?r=t[0]:[n,r]=t,r||(r={}),r=Un({},r),n&&!r.el&&(r.el=n);const a=di();if(r.el&&typeof r.el=="string"&&a.querySelectorAll(r.el).length>1){const l=[];return a.querySelectorAll(r.el).forEach(c=>{const u=Un({},r,{el:c});l.push(new ta(u))}),l}const s=this;s.__swiper__=!0,s.support=__(),s.device=KT({userAgent:r.userAgent}),s.browser=WT(),s.eventsListeners={},s.eventsAnyListeners=[],s.modules=[...s.__modules__],r.modules&&Array.isArray(r.modules)&&s.modules.push(...r.modules);const i={};s.modules.forEach(l=>{l({params:r,swiper:s,extendParams:JI(r,i),on:s.on.bind(s),once:s.once.bind(s),off:s.off.bind(s),emit:s.emit.bind(s)})});const A=Un({},Kv,i);return s.params=Un({},A,Hf,r),s.originalParams=Un({},s.params),s.passedParams=Un({},r),s.params&&s.params.on&&Object.keys(s.params.on).forEach(l=>{s.on(l,s.params.on[l])}),s.params&&s.params.onAny&&s.onAny(s.params.onAny),Object.assign(s,{enabled:s.params.enabled,el:n,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return s.params.direction==="horizontal"},isVertical(){return s.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:s.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:s.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),s.emit("_swiper"),s.params.init&&s.init(),s}getSlideIndex(t){const{slidesEl:n,params:r}=this,a=Fr(n,`.${r.slideClass}, swiper-slide`),s=Pv(a[0]);return Pv(t)-s}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter(n=>n.getAttribute("data-swiper-slide-index")*1===t)[0])}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=Fr(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const a=r.minTranslate(),i=(r.maxTranslate()-a)*t+a;r.translateTo(i,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const a=t.getSlideClasses(r);n.push({slideEl:r,classNames:a}),t.emit("_slideClass",r,a)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t="current",n=!1){const r=this,{params:a,slides:s,slidesGrid:i,slidesSizesGrid:A,size:l,activeIndex:c}=r;let u=1;if(a.centeredSlides){let d=s[c]?s[c].swiperSlideSize:0,f;for(let p=c+1;p<s.length;p+=1)s[p]&&!f&&(d+=s[p].swiperSlideSize,u+=1,d>l&&(f=!0));for(let p=c-1;p>=0;p-=1)s[p]&&!f&&(d+=s[p].swiperSlideSize,u+=1,d>l&&(f=!0))}else if(t==="current")for(let d=c+1;d<s.length;d+=1)(n?i[d]+A[d]-i[c]<l:i[d]-i[c]<l)&&(u+=1);else for(let d=c-1;d>=0;d-=1)i[c]-i[d]<l&&(u+=1);return u}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:n,params:r}=t;r.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(i=>{i.complete&&ru(t,i)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function a(){const i=t.rtlTranslate?t.translate*-1:t.translate,A=Math.min(Math.max(i,t.maxTranslate()),t.minTranslate());t.setTranslate(A),t.updateActiveIndex(),t.updateSlidesClasses()}let s;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)a(),r.autoHeight&&t.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){const i=t.virtual&&r.virtual.enabled?t.virtual.slides:t.slides;s=t.slideTo(i.length-1,0,!1,!0)}else s=t.slideTo(t.activeIndex,0,!1,!0);s||a()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n=!0){const r=this,a=r.params.direction;return t||(t=a==="horizontal"?"vertical":"horizontal"),t===a||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${a}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(s=>{t==="vertical"?s.style.width="":s.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.shadowEl&&(n.isElement=!0);const a=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let i=(()=>r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(a()):Fr(r,a())[0])();return!i&&n.params.createElements&&(i=b_("div",n.params.wrapperClass),r.append(i),Fr(r,`.${n.params.slideClass}`).forEach(A=>{i.append(A)})),Object.assign(n,{el:r,wrapperEl:i,slidesEl:n.isElement?r:i,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||Va(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||Va(r,"direction")==="rtl"),wrongRTL:Va(i,"display")==="-webkit-box"}),!0}init(t){const n=this;return n.initialized||n.mount(t)===!1||(n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents(),[...n.el.querySelectorAll('[loading="lazy"]')].forEach(a=>{a.complete?ru(n,a):a.addEventListener("load",s=>{ru(n,s.target)})}),hh(n),n.initialized=!0,hh(n),n.emit("init"),n.emit("afterInit")),n}destroy(t=!0,n=!0){const r=this,{params:a,el:s,wrapperEl:i,slides:A}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),a.loop&&r.loopDestroy(),n&&(r.removeClasses(),s.removeAttribute("style"),i.removeAttribute("style"),A&&A.length&&A.forEach(l=>{l.classList.remove(a.slideVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(l=>{r.off(l)}),t!==!1&&(r.el.swiper=null,LT(r)),r.destroyed=!0),null}static extendDefaults(t){Un(Hf,t)}static get extendedDefaults(){return Hf}static get defaults(){return Kv}static installModule(t){ta.prototype.__modules__||(ta.prototype.__modules__=[]);const n=ta.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>ta.installModule(n)),ta):(ta.installModule(t),ta)}};Object.keys(Rf).forEach(e=>{Object.keys(Rf[e]).forEach(t=>{YA.prototype[t]=Rf[e][t]})});YA.use([GT,jT]);function ZI(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(a=>{if(!n[a]&&n.auto===!0){let s=Fr(e.el,`.${r[a]}`)[0];s||(s=b_("div",r[a]),s.className=r[a],e.el.append(s)),n[a]=s,t[a]=s}}),n}function eD({swiper:e,extendParams:t,on:n,emit:r}){t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};const a=h=>(Array.isArray(h)||(h=[h].filter(m=>!!m)),h);function s(h){let m;return h&&typeof h=="string"&&e.isElement&&(m=e.el.shadowRoot.querySelector(h),m)?m:(h&&(typeof h=="string"&&(m=[...document.querySelectorAll(h)]),e.params.uniqueNavElements&&typeof h=="string"&&m.length>1&&e.el.querySelectorAll(h).length===1&&(m=e.el.querySelector(h))),h&&!m?h:m)}function i(h,m){const y=e.params.navigation;h=a(h),h.forEach(g=>{g&&(g.classList[m?"add":"remove"](...y.disabledClass.split(" ")),g.tagName==="BUTTON"&&(g.disabled=m),e.params.watchOverflow&&e.enabled&&g.classList[e.isLocked?"add":"remove"](y.lockClass))})}function A(){const{nextEl:h,prevEl:m}=e.navigation;if(e.params.loop){i(m,!1),i(h,!1);return}i(m,e.isBeginning&&!e.params.rewind),i(h,e.isEnd&&!e.params.rewind)}function l(h){h.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function c(h){h.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function u(){const h=e.params.navigation;if(e.params.navigation=ZI(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(h.nextEl||h.prevEl))return;let m=s(h.nextEl),y=s(h.prevEl);Object.assign(e.navigation,{nextEl:m,prevEl:y}),m=a(m),y=a(y);const g=(w,B)=>{w&&w.addEventListener("click",B==="next"?c:l),!e.enabled&&w&&w.classList.add(...h.lockClass.split(" "))};m.forEach(w=>g(w,"next")),y.forEach(w=>g(w,"prev"))}function d(){let{nextEl:h,prevEl:m}=e.navigation;h=a(h),m=a(m);const y=(g,w)=>{g.removeEventListener("click",w==="next"?c:l),g.classList.remove(...e.params.navigation.disabledClass.split(" "))};h.forEach(g=>y(g,"next")),m.forEach(g=>y(g,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?p():(u(),A())}),n("toEdge fromEdge lock unlock",()=>{A()}),n("destroy",()=>{d()}),n("enable disable",()=>{let{nextEl:h,prevEl:m}=e.navigation;h=a(h),m=a(m),[...h,...m].filter(y=>!!y).forEach(y=>y.classList[e.enabled?"remove":"add"](e.params.navigation.lockClass))}),n("click",(h,m)=>{let{nextEl:y,prevEl:g}=e.navigation;y=a(y),g=a(g);const w=m.target;if(e.params.navigation.hideOnClick&&!g.includes(w)&&!y.includes(w)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===w||e.pagination.el.contains(w)))return;let B;y.length?B=y[0].classList.contains(e.params.navigation.hiddenClass):g.length&&(B=g[0].classList.contains(e.params.navigation.hiddenClass)),r(B===!0?"navigationShow":"navigationHide"),[...y,...g].filter(v=>!!v).forEach(v=>v.classList.toggle(e.params.navigation.hiddenClass))}});const f=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),u(),A()},p=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),d()};Object.assign(e.navigation,{enable:f,disable:p,update:A,init:u,destroy:d})}function ri(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function $a(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:ri(t[r])&&ri(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:$a(e[r],t[r]):e[r]=t[r]})}function E_(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function S_(e={}){return e.pagination&&typeof e.pagination.el>"u"}function x_(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function F_(e=""){const t=e.split(" ").map(r=>r.trim()).filter(r=>!!r),n=[];return t.forEach(r=>{n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function tD(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}const T_=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function zv(e={},t=!0){const n={on:{}},r={},a={};$a(n,YA.defaults),$a(n,YA.extendedDefaults),n._emitClasses=!0,n.init=!1;const s={},i=T_.map(l=>l.replace(/_/,"")),A=Object.assign({},e);return Object.keys(A).forEach(l=>{typeof e[l]>"u"||(i.indexOf(l)>=0?ri(e[l])?(n[l]={},a[l]={},$a(n[l],e[l]),$a(a[l],e[l])):(n[l]=e[l],a[l]=e[l]):l.search(/on[A-Z]/)===0&&typeof e[l]=="function"?t?r[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:n.on[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:s[l]=e[l])}),["navigation","pagination","scrollbar"].forEach(l=>{n[l]===!0&&(n[l]={}),n[l]===!1&&delete n[l]}),{params:n,passedParams:a,rest:s,events:r}}function nD({el:e,nextEl:t,prevEl:n,paginationEl:r,scrollbarEl:a,swiper:s},i){E_(i)&&t&&n&&(s.params.navigation.nextEl=t,s.originalParams.navigation.nextEl=t,s.params.navigation.prevEl=n,s.originalParams.navigation.prevEl=n),S_(i)&&r&&(s.params.pagination.el=r,s.originalParams.pagination.el=r),x_(i)&&a&&(s.params.scrollbar.el=a,s.originalParams.scrollbar.el=a),s.init(e)}function rD(e,t,n,r,a){const s=[];if(!t)return s;const i=l=>{s.indexOf(l)<0&&s.push(l)};if(n&&r){const l=r.map(a),c=n.map(a);l.join("")!==c.join("")&&i("children"),r.length!==n.length&&i("children")}return T_.filter(l=>l[0]==="_").map(l=>l.replace(/_/,"")).forEach(l=>{if(l in e&&l in t)if(ri(e[l])&&ri(t[l])){const c=Object.keys(e[l]),u=Object.keys(t[l]);c.length!==u.length?i(l):(c.forEach(d=>{e[l][d]!==t[l][d]&&i(l)}),u.forEach(d=>{e[l][d]!==t[l][d]&&i(l)}))}else e[l]!==t[l]&&i(l)}),s}function Vf(e,t,n){e===void 0&&(e={});const r=[],a={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]},s=(i,A)=>{Array.isArray(i)&&i.forEach(l=>{const c=typeof l.type=="symbol";A==="default"&&(A="container-end"),c&&l.children?s(l.children,A):l.type&&(l.type.name==="SwiperSlide"||l.type.name==="AsyncComponentWrapper")?r.push(l):a[A]&&a[A].push(l)})};return Object.keys(e).forEach(i=>{if(typeof e[i]!="function")return;const A=e[i]();s(A,i)}),n.value=t.value,t.value=r,{slides:r,slots:a}}function aD({swiper:e,slides:t,passedParams:n,changedParams:r,nextEl:a,prevEl:s,scrollbarEl:i,paginationEl:A}){const l=r.filter(C=>C!=="children"&&C!=="direction"&&C!=="wrapperClass"),{params:c,pagination:u,navigation:d,scrollbar:f,virtual:p,thumbs:h}=e;let m,y,g,w,B,v,_,b;r.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&c.thumbs&&!c.thumbs.swiper&&(m=!0),r.includes("controller")&&n.controller&&n.controller.control&&c.controller&&!c.controller.control&&(y=!0),r.includes("pagination")&&n.pagination&&(n.pagination.el||A)&&(c.pagination||c.pagination===!1)&&u&&!u.el&&(g=!0),r.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||i)&&(c.scrollbar||c.scrollbar===!1)&&f&&!f.el&&(w=!0),r.includes("navigation")&&n.navigation&&(n.navigation.prevEl||s)&&(n.navigation.nextEl||a)&&(c.navigation||c.navigation===!1)&&d&&!d.prevEl&&!d.nextEl&&(B=!0);const k=C=>{e[C]&&(e[C].destroy(),C==="navigation"?(e.isElement&&(e[C].prevEl.remove(),e[C].nextEl.remove()),c[C].prevEl=void 0,c[C].nextEl=void 0,e[C].prevEl=void 0,e[C].nextEl=void 0):(e.isElement&&e[C].el.remove(),c[C].el=void 0,e[C].el=void 0))};r.includes("loop")&&e.isElement&&(c.loop&&!n.loop?v=!0:!c.loop&&n.loop?_=!0:b=!0),l.forEach(C=>{if(ri(c[C])&&ri(n[C]))$a(c[C],n[C]),(C==="navigation"||C==="pagination"||C==="scrollbar")&&"enabled"in n[C]&&!n[C].enabled&&k(C);else{const E=n[C];(E===!0||E===!1)&&(C==="navigation"||C==="pagination"||C==="scrollbar")?E===!1&&k(C):c[C]=n[C]}}),l.includes("controller")&&!y&&e.controller&&e.controller.control&&c.controller&&c.controller.control&&(e.controller.control=c.controller.control),r.includes("children")&&t&&p&&c.virtual.enabled&&(p.slides=t,p.update(!0)),r.includes("children")&&t&&c.loop&&(b=!0),m&&h.init()&&h.update(!0),y&&(e.controller.control=c.controller.control),g&&(e.isElement&&(!A||typeof A=="string")&&(A=document.createElement("div"),A.classList.add("swiper-pagination"),e.el.shadowEl.appendChild(A)),A&&(c.pagination.el=A),u.init(),u.render(),u.update()),w&&(e.isElement&&(!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-scrollbar"),e.el.shadowEl.appendChild(i)),i&&(c.scrollbar.el=i),f.init(),f.updateSize(),f.setTranslate()),B&&(e.isElement&&((!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-next"),e.el.shadowEl.appendChild(a)),(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-prev"),e.el.shadowEl.appendChild(s))),a&&(c.navigation.nextEl=a),s&&(c.navigation.prevEl=s),d.init(),d.update()),r.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),r.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),r.includes("direction")&&e.changeDirection(n.direction,!1),(v||b)&&e.loopDestroy(),(_||b)&&e.loopCreate(),e.update()}function sD(e,t,n){if(!n)return null;const r=u=>{let d=u;return u<0?d=t.length+u:d>=t.length&&(d=d-t.length),d},a=e.value.isHorizontal()?{[e.value.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:s,to:i}=n,A=e.value.params.loop?-t.length:0,l=e.value.params.loop?t.length*2:t.length,c=[];for(let u=A;u<l;u+=1)u>=s&&u<=i&&c.push(t[r(u)]);return c.map(u=>(u.props||(u.props={}),u.props.style||(u.props.style={}),u.props.swiperRef=e,u.props.style=a,o.h(u.type,{...u.props},u.children)))}const iD=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())},I_={name:"Swiper",props:{tag:{type:String,default:"div"},wrapperTag:{type:String,default:"div"},modules:{type:Array,default:void 0},init:{type:Boolean,default:void 0},direction:{type:String,default:void 0},oneWayMovement:{type:Boolean,default:void 0},touchEventsTarget:{type:String,default:void 0},initialSlide:{type:Number,default:void 0},speed:{type:Number,default:void 0},cssMode:{type:Boolean,default:void 0},updateOnWindowResize:{type:Boolean,default:void 0},resizeObserver:{type:Boolean,default:void 0},nested:{type:Boolean,default:void 0},focusableElements:{type:String,default:void 0},width:{type:Number,default:void 0},height:{type:Number,default:void 0},preventInteractionOnTransition:{type:Boolean,default:void 0},userAgent:{type:String,default:void 0},url:{type:String,default:void 0},edgeSwipeDetection:{type:[Boolean,String],default:void 0},edgeSwipeThreshold:{type:Number,default:void 0},autoHeight:{type:Boolean,default:void 0},setWrapperSize:{type:Boolean,default:void 0},virtualTranslate:{type:Boolean,default:void 0},effect:{type:String,default:void 0},breakpoints:{type:Object,default:void 0},spaceBetween:{type:[Number,String],default:void 0},slidesPerView:{type:[Number,String],default:void 0},maxBackfaceHiddenSlides:{type:Number,default:void 0},slidesPerGroup:{type:Number,default:void 0},slidesPerGroupSkip:{type:Number,default:void 0},slidesPerGroupAuto:{type:Boolean,default:void 0},centeredSlides:{type:Boolean,default:void 0},centeredSlidesBounds:{type:Boolean,default:void 0},slidesOffsetBefore:{type:Number,default:void 0},slidesOffsetAfter:{type:Number,default:void 0},normalizeSlideIndex:{type:Boolean,default:void 0},centerInsufficientSlides:{type:Boolean,default:void 0},watchOverflow:{type:Boolean,default:void 0},roundLengths:{type:Boolean,default:void 0},touchRatio:{type:Number,default:void 0},touchAngle:{type:Number,default:void 0},simulateTouch:{type:Boolean,default:void 0},shortSwipes:{type:Boolean,default:void 0},longSwipes:{type:Boolean,default:void 0},longSwipesRatio:{type:Number,default:void 0},longSwipesMs:{type:Number,default:void 0},followFinger:{type:Boolean,default:void 0},allowTouchMove:{type:Boolean,default:void 0},threshold:{type:Number,default:void 0},touchMoveStopPropagation:{type:Boolean,default:void 0},touchStartPreventDefault:{type:Boolean,default:void 0},touchStartForcePreventDefault:{type:Boolean,default:void 0},touchReleaseOnEdges:{type:Boolean,default:void 0},uniqueNavElements:{type:Boolean,default:void 0},resistance:{type:Boolean,default:void 0},resistanceRatio:{type:Number,default:void 0},watchSlidesProgress:{type:Boolean,default:void 0},grabCursor:{type:Boolean,default:void 0},preventClicks:{type:Boolean,default:void 0},preventClicksPropagation:{type:Boolean,default:void 0},slideToClickedSlide:{type:Boolean,default:void 0},loop:{type:Boolean,default:void 0},loopedSlides:{type:Number,default:void 0},loopPreventsSliding:{type:Boolean,default:void 0},rewind:{type:Boolean,default:void 0},allowSlidePrev:{type:Boolean,default:void 0},allowSlideNext:{type:Boolean,default:void 0},swipeHandler:{type:Boolean,default:void 0},noSwiping:{type:Boolean,default:void 0},noSwipingClass:{type:String,default:void 0},noSwipingSelector:{type:String,default:void 0},passiveListeners:{type:Boolean,default:void 0},containerModifierClass:{type:String,default:void 0},slideClass:{type:String,default:void 0},slideActiveClass:{type:String,default:void 0},slideVisibleClass:{type:String,default:void 0},slideNextClass:{type:String,default:void 0},slidePrevClass:{type:String,default:void 0},wrapperClass:{type:String,default:void 0},lazyPreloaderClass:{type:String,default:void 0},lazyPreloadPrevNext:{type:Number,default:void 0},runCallbacksOnInit:{type:Boolean,default:void 0},observer:{type:Boolean,default:void 0},observeParents:{type:Boolean,default:void 0},observeSlideChildren:{type:Boolean,default:void 0},a11y:{type:[Boolean,Object],default:void 0},autoplay:{type:[Boolean,Object],default:void 0},controller:{type:Object,default:void 0},coverflowEffect:{type:Object,default:void 0},cubeEffect:{type:Object,default:void 0},fadeEffect:{type:Object,default:void 0},flipEffect:{type:Object,default:void 0},creativeEffect:{type:Object,default:void 0},cardsEffect:{type:Object,default:void 0},hashNavigation:{type:[Boolean,Object],default:void 0},history:{type:[Boolean,Object],default:void 0},keyboard:{type:[Boolean,Object],default:void 0},mousewheel:{type:[Boolean,Object],default:void 0},navigation:{type:[Boolean,Object],default:void 0},pagination:{type:[Boolean,Object],default:void 0},parallax:{type:[Boolean,Object],default:void 0},scrollbar:{type:[Boolean,Object],default:void 0},thumbs:{type:Object,default:void 0},virtual:{type:[Boolean,Object],default:void 0},zoom:{type:[Boolean,Object],default:void 0},grid:{type:[Object],default:void 0},freeMode:{type:[Boolean,Object],default:void 0},enabled:{type:Boolean,default:void 0}},emits:["_beforeBreakpoint","_containerClasses","_slideClass","_slideClasses","_swiper","_freeModeNoMomentumRelease","activeIndexChange","afterInit","autoplay","autoplayStart","autoplayStop","autoplayPause","autoplayResume","autoplayTimeLeft","beforeDestroy","beforeInit","beforeLoopFix","beforeResize","beforeSlideChangeStart","beforeTransitionStart","breakpoint","changeDirection","click","disable","doubleTap","doubleClick","destroy","enable","fromEdge","hashChange","hashSet","init","keyPress","lock","loopFix","momentumBounce","navigationHide","navigationShow","navigationPrev","navigationNext","observerUpdate","orientationchange","paginationHide","paginationRender","paginationShow","paginationUpdate","progress","reachBeginning","reachEnd","realIndexChange","resize","scroll","scrollbarDragEnd","scrollbarDragMove","scrollbarDragStart","setTransition","setTranslate","slideChange","slideChangeTransitionEnd","slideChangeTransitionStart","slideNextTransitionEnd","slideNextTransitionStart","slidePrevTransitionEnd","slidePrevTransitionStart","slideResetTransitionStart","slideResetTransitionEnd","sliderMove","sliderFirstMove","slidesLengthChange","slidesGridLengthChange","snapGridLengthChange","snapIndexChange","swiper","tap","toEdge","touchEnd","touchMove","touchMoveOpposite","touchStart","transitionEnd","transitionStart","unlock","update","virtualUpdate","zoomChange"],setup(e,t){let{slots:n,emit:r}=t;const{tag:a,wrapperTag:s}=e,i=o.ref("swiper"),A=o.ref(null),l=o.ref(!1),c=o.ref(!1),u=o.ref(null),d=o.ref(null),f=o.ref(null),p={value:[]},h={value:[]},m=o.ref(null),y=o.ref(null),g=o.ref(null),w=o.ref(null),{params:B,passedParams:v}=zv(e,!1);Vf(n,p,h),f.value=v,h.value=p.value;const _=()=>{Vf(n,p,h),l.value=!0};B.onAny=function(C){for(var E=arguments.length,D=new Array(E>1?E-1:0),T=1;T<E;T++)D[T-1]=arguments[T];r(C,...D)},Object.assign(B.on,{_beforeBreakpoint:_,_containerClasses(C,E){i.value=E}});const b={...B};if(delete b.wrapperClass,d.value=new YA(b),d.value.virtual&&d.value.params.virtual.enabled){d.value.virtual.slides=p.value;const C={cache:!1,slides:p.value,renderExternal:E=>{A.value=E},renderExternalUpdate:!1};$a(d.value.params.virtual,C),$a(d.value.originalParams.virtual,C)}o.onUpdated(()=>{!c.value&&d.value&&(d.value.emitSlidesClasses(),c.value=!0);const{passedParams:C}=zv(e,!1),E=rD(C,f.value,p.value,h.value,D=>D.props&&D.props.key);f.value=C,(E.length||l.value)&&d.value&&!d.value.destroyed&&aD({swiper:d.value,slides:p.value,passedParams:C,changedParams:E,nextEl:m.value,prevEl:y.value,scrollbarEl:w.value,paginationEl:g.value}),l.value=!1}),o.provide("swiper",d),o.watch(A,()=>{o.nextTick(()=>{iD(d.value)})}),o.onMounted(()=>{u.value&&(nD({el:u.value,nextEl:m.value,prevEl:y.value,paginationEl:g.value,scrollbarEl:w.value,swiper:d.value},B),r("swiper",d.value))}),o.onBeforeUnmount(()=>{d.value&&!d.value.destroyed&&d.value.destroy(!0,!1)});function k(C){return B.virtual?sD(d,C,A.value):(C.forEach((E,D)=>{E.props||(E.props={}),E.props.swiperRef=d,E.props.swiperSlideIndex=D}),C)}return()=>{const{slides:C,slots:E}=Vf(n,p,h);return o.h(a,{ref:u,class:F_(i.value)},[E["container-start"],o.h(s,{class:tD(B.wrapperClass)},[E["wrapper-start"],k(C),E["wrapper-end"]]),E_(e)&&[o.h("div",{ref:y,class:"swiper-button-prev"}),o.h("div",{ref:m,class:"swiper-button-next"})],x_(e)&&o.h("div",{ref:w,class:"swiper-scrollbar"}),S_(e)&&o.h("div",{ref:g,class:"swiper-pagination"}),E["container-end"]])}}},D_={name:"SwiperSlide",props:{tag:{type:String,default:"div"},swiperRef:{type:Object,required:!1},swiperSlideIndex:{type:Number,default:void 0,required:!1},zoom:{type:Boolean,default:void 0,required:!1},lazy:{type:Boolean,default:!1,required:!1},virtualIndex:{type:[String,Number],default:void 0}},setup(e,t){let{slots:n}=t,r=!1;const{swiperRef:a}=e,s=o.ref(null),i=o.ref("swiper-slide"),A=o.ref(!1);function l(d,f,p){f===s.value&&(i.value=p)}o.onMounted(()=>{!a||!a.value||(a.value.on("_slideClass",l),r=!0)}),o.onBeforeUpdate(()=>{r||!a||!a.value||(a.value.on("_slideClass",l),r=!0)}),o.onUpdated(()=>{!s.value||!a||!a.value||(typeof e.swiperSlideIndex<"u"&&(s.value.swiperSlideIndex=e.swiperSlideIndex),a.value.destroyed&&i.value!=="swiper-slide"&&(i.value="swiper-slide"))}),o.onBeforeUnmount(()=>{!a||!a.value||a.value.off("_slideClass",l)});const c=o.computed(()=>({isActive:i.value.indexOf("swiper-slide-active")>=0,isVisible:i.value.indexOf("swiper-slide-visible")>=0,isPrev:i.value.indexOf("swiper-slide-prev")>=0,isNext:i.value.indexOf("swiper-slide-next")>=0}));o.provide("swiperSlide",c);const u=()=>{A.value=!0};return()=>o.h(e.tag,{class:F_(`${i.value}`),ref:s,"data-swiper-slide-index":typeof e.virtualIndex>"u"&&a&&a.value&&a.value.params.loop?e.swiperSlideIndex:e.virtualIndex,onLoadCapture:u},e.zoom?o.h("div",{class:"swiper-zoom-container","data-swiper-zoom":typeof e.zoom=="number"?e.zoom:void 0},[n.default&&n.default(c.value),e.lazy&&!A.value&&o.h("div",{class:"swiper-lazy-preloader"})]):[n.default&&n.default(c.value),e.lazy&&!A.value&&o.h("div",{class:"swiper-lazy-preloader"})])}};const oD={cardCodes:{type:Array,required:!0,default:[]}},AD=o.defineComponent({__name:"RevealCarousel",props:oD,setup(e){var A;const t=e,n=[eD],r=o.ref(null),a=o.ref((A=r.value)==null?void 0:A.clientWidth),s=o.computed(()=>a.value===void 0?!0:a.value<400);function i(){var l;a.value=(l=r.value)==null?void 0:l.clientWidth}return o.onMounted(()=>{window.addEventListener("resize",i),i()}),o.onUnmounted(()=>{window.removeEventListener("resize",i)}),(l,c)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"revealCarousel",ref:r,class:"reveal-carousel"},[o.createVNode(o.unref(I_),{"slides-per-view":"auto","space-between":15,"centered-slides":s.value,navigation:!0,modules:n},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.cardCodes,u=>(o.openBlock(),o.createBlock(o.unref(D_),{key:u},{default:o.withCtx(()=>[o.createVNode(o.unref(Bf),{class:"card-item-called","card-code-prop":u,"is-root":!0,"router-link":o.unref(_e)().callbacks.cardCodeRouterLinkCallback(u)},null,8,["card-code-prop","router-link"])]),_:2},1024))),128))]),_:1},8,["centered-slides"])],512))}});const tg=Q(AD,[["__scopeId","data-v-e6480629"]]),lD={fetchSeachResult:{type:Function,required:!0,default:()=>[]}};var Sn="top",Zn="bottom",er="right",xn="left",ng="auto",bl=[Sn,Zn,er,xn],oo="start",qA="end",cD="clippingParents",U_="viewport",Vo="popper",uD="reference",Wv=bl.reduce(function(e,t){return e.concat([t+"-"+oo,t+"-"+qA])},[]),O_=[].concat(bl,[ng]).reduce(function(e,t){return e.concat([t,t+"-"+oo,t+"-"+qA])},[]),dD="beforeRead",fD="read",pD="afterRead",hD="beforeMain",mD="main",gD="afterMain",vD="beforeWrite",yD="write",BD="afterWrite",wD=[dD,fD,pD,hD,mD,gD,vD,yD,BD];function Dr(e){return e?(e.nodeName||"").toLowerCase():null}function Qn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ai(e){var t=Qn(e).Element;return e instanceof t||e instanceof Element}function Xn(e){var t=Qn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function rg(e){if(typeof ShadowRoot>"u")return!1;var t=Qn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function bD(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},s=t.elements[n];!Xn(s)||!Dr(s)||(Object.assign(s.style,r),Object.keys(a).forEach(function(i){var A=a[i];A===!1?s.removeAttribute(i):s.setAttribute(i,A===!0?"":A)}))})}function _D(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],s=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),A=i.reduce(function(l,c){return l[c]="",l},{});!Xn(a)||!Dr(a)||(Object.assign(a.style,A),Object.keys(s).forEach(function(l){a.removeAttribute(l)}))})}}const L_={name:"applyStyles",enabled:!0,phase:"write",fn:bD,effect:_D,requires:["computeStyles"]};function Tr(e){return e.split("-")[0]}var Ws=Math.max,Tu=Math.min,Ao=Math.round;function mh(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Q_(){return!/^((?!chrome|android).)*safari/i.test(mh())}function lo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),a=1,s=1;t&&Xn(e)&&(a=e.offsetWidth>0&&Ao(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Ao(r.height)/e.offsetHeight||1);var i=ai(e)?Qn(e):window,A=i.visualViewport,l=!Q_()&&n,c=(r.left+(l&&A?A.offsetLeft:0))/a,u=(r.top+(l&&A?A.offsetTop:0))/s,d=r.width/a,f=r.height/s;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function ag(e){var t=lo(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function M_(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&rg(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ba(e){return Qn(e).getComputedStyle(e)}function CD(e){return["table","td","th"].indexOf(Dr(e))>=0}function ws(e){return((ai(e)?e.ownerDocument:e.document)||window.document).documentElement}function bd(e){return Dr(e)==="html"?e:e.assignedSlot||e.parentNode||(rg(e)?e.host:null)||ws(e)}function Gv(e){return!Xn(e)||ba(e).position==="fixed"?null:e.offsetParent}function kD(e){var t=/firefox/i.test(mh()),n=/Trident/i.test(mh());if(n&&Xn(e)){var r=ba(e);if(r.position==="fixed")return null}var a=bd(e);for(rg(a)&&(a=a.host);Xn(a)&&["html","body"].indexOf(Dr(a))<0;){var s=ba(a);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return a;a=a.parentNode}return null}function _l(e){for(var t=Qn(e),n=Gv(e);n&&CD(n)&&ba(n).position==="static";)n=Gv(n);return n&&(Dr(n)==="html"||Dr(n)==="body"&&ba(n).position==="static")?t:n||kD(e)||t}function sg(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function yA(e,t,n){return Ws(e,Tu(t,n))}function ED(e,t,n){var r=yA(e,t,n);return r>n?n:r}function N_(){return{top:0,right:0,bottom:0,left:0}}function P_(e){return Object.assign({},N_(),e)}function R_(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var SD=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,P_(typeof t!="number"?t:R_(t,bl))};function xD(e){var t,n=e.state,r=e.name,a=e.options,s=n.elements.arrow,i=n.modifiersData.popperOffsets,A=Tr(n.placement),l=sg(A),c=[xn,er].indexOf(A)>=0,u=c?"height":"width";if(!(!s||!i)){var d=SD(a.padding,n),f=ag(s),p=l==="y"?Sn:xn,h=l==="y"?Zn:er,m=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],y=i[l]-n.rects.reference[l],g=_l(s),w=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,B=m/2-y/2,v=d[p],_=w-f[u]-d[h],b=w/2-f[u]/2+B,k=yA(v,b,_),C=l;n.modifiersData[r]=(t={},t[C]=k,t.centerOffset=k-b,t)}}function FD(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||M_(t.elements.popper,a)&&(t.elements.arrow=a))}const TD={name:"arrow",enabled:!0,phase:"main",fn:xD,effect:FD,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function co(e){return e.split("-")[1]}var ID={top:"auto",right:"auto",bottom:"auto",left:"auto"};function DD(e,t){var n=e.x,r=e.y,a=t.devicePixelRatio||1;return{x:Ao(n*a)/a||0,y:Ao(r*a)/a||0}}function jv(e){var t,n=e.popper,r=e.popperRect,a=e.placement,s=e.variation,i=e.offsets,A=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=i.x,p=f===void 0?0:f,h=i.y,m=h===void 0?0:h,y=typeof u=="function"?u({x:p,y:m}):{x:p,y:m};p=y.x,m=y.y;var g=i.hasOwnProperty("x"),w=i.hasOwnProperty("y"),B=xn,v=Sn,_=window;if(c){var b=_l(n),k="clientHeight",C="clientWidth";if(b===Qn(n)&&(b=ws(n),ba(b).position!=="static"&&A==="absolute"&&(k="scrollHeight",C="scrollWidth")),b=b,a===Sn||(a===xn||a===er)&&s===qA){v=Zn;var E=d&&b===_&&_.visualViewport?_.visualViewport.height:b[k];m-=E-r.height,m*=l?1:-1}if(a===xn||(a===Sn||a===Zn)&&s===qA){B=er;var D=d&&b===_&&_.visualViewport?_.visualViewport.width:b[C];p-=D-r.width,p*=l?1:-1}}var T=Object.assign({position:A},c&&ID),F=u===!0?DD({x:p,y:m},Qn(n)):{x:p,y:m};if(p=F.x,m=F.y,l){var U;return Object.assign({},T,(U={},U[v]=w?"0":"",U[B]=g?"0":"",U.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",U))}return Object.assign({},T,(t={},t[v]=w?m+"px":"",t[B]=g?p+"px":"",t.transform="",t))}function UD(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,s=n.adaptive,i=s===void 0?!0:s,A=n.roundOffsets,l=A===void 0?!0:A,c={placement:Tr(t.placement),variation:co(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,jv(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,jv(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const OD={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:UD,data:{}};var ic={passive:!0};function LD(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,s=a===void 0?!0:a,i=r.resize,A=i===void 0?!0:i,l=Qn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(u){u.addEventListener("scroll",n.update,ic)}),A&&l.addEventListener("resize",n.update,ic),function(){s&&c.forEach(function(u){u.removeEventListener("scroll",n.update,ic)}),A&&l.removeEventListener("resize",n.update,ic)}}const QD={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:LD,data:{}};var MD={left:"right",right:"left",bottom:"top",top:"bottom"};function au(e){return e.replace(/left|right|bottom|top/g,function(t){return MD[t]})}var ND={start:"end",end:"start"};function Yv(e){return e.replace(/start|end/g,function(t){return ND[t]})}function ig(e){var t=Qn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function og(e){return lo(ws(e)).left+ig(e).scrollLeft}function PD(e,t){var n=Qn(e),r=ws(e),a=n.visualViewport,s=r.clientWidth,i=r.clientHeight,A=0,l=0;if(a){s=a.width,i=a.height;var c=Q_();(c||!c&&t==="fixed")&&(A=a.offsetLeft,l=a.offsetTop)}return{width:s,height:i,x:A+og(e),y:l}}function RD(e){var t,n=ws(e),r=ig(e),a=(t=e.ownerDocument)==null?void 0:t.body,s=Ws(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=Ws(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),A=-r.scrollLeft+og(e),l=-r.scrollTop;return ba(a||n).direction==="rtl"&&(A+=Ws(n.clientWidth,a?a.clientWidth:0)-s),{width:s,height:i,x:A,y:l}}function Ag(e){var t=ba(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function H_(e){return["html","body","#document"].indexOf(Dr(e))>=0?e.ownerDocument.body:Xn(e)&&Ag(e)?e:H_(bd(e))}function BA(e,t){var n;t===void 0&&(t=[]);var r=H_(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),s=Qn(r),i=a?[s].concat(s.visualViewport||[],Ag(r)?r:[]):r,A=t.concat(i);return a?A:A.concat(BA(bd(i)))}function gh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function HD(e,t){var n=lo(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function qv(e,t,n){return t===U_?gh(PD(e,n)):ai(t)?HD(t,n):gh(RD(ws(e)))}function VD(e){var t=BA(bd(e)),n=["absolute","fixed"].indexOf(ba(e).position)>=0,r=n&&Xn(e)?_l(e):e;return ai(r)?t.filter(function(a){return ai(a)&&M_(a,r)&&Dr(a)!=="body"}):[]}function $D(e,t,n,r){var a=t==="clippingParents"?VD(e):[].concat(t),s=[].concat(a,[n]),i=s[0],A=s.reduce(function(l,c){var u=qv(e,c,r);return l.top=Ws(u.top,l.top),l.right=Tu(u.right,l.right),l.bottom=Tu(u.bottom,l.bottom),l.left=Ws(u.left,l.left),l},qv(e,i,r));return A.width=A.right-A.left,A.height=A.bottom-A.top,A.x=A.left,A.y=A.top,A}function V_(e){var t=e.reference,n=e.element,r=e.placement,a=r?Tr(r):null,s=r?co(r):null,i=t.x+t.width/2-n.width/2,A=t.y+t.height/2-n.height/2,l;switch(a){case Sn:l={x:i,y:t.y-n.height};break;case Zn:l={x:i,y:t.y+t.height};break;case er:l={x:t.x+t.width,y:A};break;case xn:l={x:t.x-n.width,y:A};break;default:l={x:t.x,y:t.y}}var c=a?sg(a):null;if(c!=null){var u=c==="y"?"height":"width";switch(s){case oo:l[c]=l[c]-(t[u]/2-n[u]/2);break;case qA:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function XA(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,s=n.strategy,i=s===void 0?e.strategy:s,A=n.boundary,l=A===void 0?cD:A,c=n.rootBoundary,u=c===void 0?U_:c,d=n.elementContext,f=d===void 0?Vo:d,p=n.altBoundary,h=p===void 0?!1:p,m=n.padding,y=m===void 0?0:m,g=P_(typeof y!="number"?y:R_(y,bl)),w=f===Vo?uD:Vo,B=e.rects.popper,v=e.elements[h?w:f],_=$D(ai(v)?v:v.contextElement||ws(e.elements.popper),l,u,i),b=lo(e.elements.reference),k=V_({reference:b,element:B,strategy:"absolute",placement:a}),C=gh(Object.assign({},B,k)),E=f===Vo?C:b,D={top:_.top-E.top+g.top,bottom:E.bottom-_.bottom+g.bottom,left:_.left-E.left+g.left,right:E.right-_.right+g.right},T=e.modifiersData.offset;if(f===Vo&&T){var F=T[a];Object.keys(D).forEach(function(U){var W=[er,Zn].indexOf(U)>=0?1:-1,J=[Sn,Zn].indexOf(U)>=0?"y":"x";D[U]+=F[J]*W})}return D}function KD(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,s=n.rootBoundary,i=n.padding,A=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?O_:l,u=co(r),d=u?A?Wv:Wv.filter(function(h){return co(h)===u}):bl,f=d.filter(function(h){return c.indexOf(h)>=0});f.length===0&&(f=d);var p=f.reduce(function(h,m){return h[m]=XA(e,{placement:m,boundary:a,rootBoundary:s,padding:i})[Tr(m)],h},{});return Object.keys(p).sort(function(h,m){return p[h]-p[m]})}function zD(e){if(Tr(e)===ng)return[];var t=au(e);return[Yv(e),t,Yv(t)]}function WD(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,s=a===void 0?!0:a,i=n.altAxis,A=i===void 0?!0:i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=p===void 0?!0:p,m=n.allowedAutoPlacements,y=t.options.placement,g=Tr(y),w=g===y,B=l||(w||!h?[au(y)]:zD(y)),v=[y].concat(B).reduce(function(ie,Z){return ie.concat(Tr(Z)===ng?KD(t,{placement:Z,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):Z)},[]),_=t.rects.reference,b=t.rects.popper,k=new Map,C=!0,E=v[0],D=0;D<v.length;D++){var T=v[D],F=Tr(T),U=co(T)===oo,W=[Sn,Zn].indexOf(F)>=0,J=W?"width":"height",R=XA(t,{placement:T,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),$=W?U?er:xn:U?Zn:Sn;_[J]>b[J]&&($=au($));var de=au($),q=[];if(s&&q.push(R[F]<=0),A&&q.push(R[$]<=0,R[de]<=0),q.every(function(ie){return ie})){E=T,C=!1;break}k.set(T,q)}if(C)for(var Ae=h?3:1,oe=function(Z){var M=v.find(function(te){var Le=k.get(te);if(Le)return Le.slice(0,Z).every(function(nt){return nt})});if(M)return E=M,"break"},le=Ae;le>0;le--){var ge=oe(le);if(ge==="break")break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}}const GD={name:"flip",enabled:!0,phase:"main",fn:WD,requiresIfExists:["offset"],data:{_skip:!1}};function Xv(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Jv(e){return[Sn,er,Zn,xn].some(function(t){return e[t]>=0})}function jD(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,s=t.modifiersData.preventOverflow,i=XA(t,{elementContext:"reference"}),A=XA(t,{altBoundary:!0}),l=Xv(i,r),c=Xv(A,a,s),u=Jv(l),d=Jv(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const YD={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:jD};function qD(e,t,n){var r=Tr(e),a=[xn,Sn].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=s[0],A=s[1];return i=i||0,A=(A||0)*a,[xn,er].indexOf(r)>=0?{x:A,y:i}:{x:i,y:A}}function XD(e){var t=e.state,n=e.options,r=e.name,a=n.offset,s=a===void 0?[0,0]:a,i=O_.reduce(function(u,d){return u[d]=qD(d,t.rects,s),u},{}),A=i[t.placement],l=A.x,c=A.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}const JD={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:XD};function ZD(e){var t=e.state,n=e.name;t.modifiersData[n]=V_({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const eU={name:"popperOffsets",enabled:!0,phase:"read",fn:ZD,data:{}};function tU(e){return e==="x"?"y":"x"}function nU(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,s=a===void 0?!0:a,i=n.altAxis,A=i===void 0?!1:i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,h=n.tetherOffset,m=h===void 0?0:h,y=XA(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),g=Tr(t.placement),w=co(t.placement),B=!w,v=sg(g),_=tU(v),b=t.modifiersData.popperOffsets,k=t.rects.reference,C=t.rects.popper,E=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,D=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(b){if(s){var U,W=v==="y"?Sn:xn,J=v==="y"?Zn:er,R=v==="y"?"height":"width",$=b[v],de=$+y[W],q=$-y[J],Ae=p?-C[R]/2:0,oe=w===oo?k[R]:C[R],le=w===oo?-C[R]:-k[R],ge=t.elements.arrow,ie=p&&ge?ag(ge):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:N_(),M=Z[W],te=Z[J],Le=yA(0,k[R],ie[R]),nt=B?k[R]/2-Ae-Le-M-D.mainAxis:oe-Le-M-D.mainAxis,St=B?-k[R]/2+Ae+Le+te+D.mainAxis:le+Le+te+D.mainAxis,$t=t.elements.arrow&&_l(t.elements.arrow),Nt=$t?v==="y"?$t.clientTop||0:$t.clientLeft||0:0,Xt=(U=T==null?void 0:T[v])!=null?U:0,K=$+nt-Xt-Nt,ve=$+St-Xt,Jt=yA(p?Tu(de,K):de,$,p?Ws(q,ve):q);b[v]=Jt,F[v]=Jt-$}if(A){var Ct,Bt=v==="x"?Sn:xn,xt=v==="x"?Zn:er,S=b[_],x=_==="y"?"height":"width",N=S+y[Bt],ne=S-y[xt],Ie=[Sn,xn].indexOf(g)!==-1,ye=(Ct=T==null?void 0:T[_])!=null?Ct:0,xe=Ie?N:S-k[x]-C[x]-ye+D.altAxis,O=Ie?S+k[x]+C[x]-ye-D.altAxis:ne,P=p&&Ie?ED(xe,S,O):yA(p?xe:N,S,p?O:ne);b[_]=P,F[_]=P-S}t.modifiersData[r]=F}}const rU={name:"preventOverflow",enabled:!0,phase:"main",fn:nU,requiresIfExists:["offset"]};function aU(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function sU(e){return e===Qn(e)||!Xn(e)?ig(e):aU(e)}function iU(e){var t=e.getBoundingClientRect(),n=Ao(t.width)/e.offsetWidth||1,r=Ao(t.height)/e.offsetHeight||1;return n!==1||r!==1}function oU(e,t,n){n===void 0&&(n=!1);var r=Xn(t),a=Xn(t)&&iU(t),s=ws(t),i=lo(e,a,n),A={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Dr(t)!=="body"||Ag(s))&&(A=sU(t)),Xn(t)?(l=lo(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=og(s))),{x:i.left+A.scrollLeft-l.x,y:i.top+A.scrollTop-l.y,width:i.width,height:i.height}}function AU(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function a(s){n.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(A){if(!n.has(A)){var l=t.get(A);l&&a(l)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||a(s)}),r}function lU(e){var t=AU(e);return wD.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function cU(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function uU(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Zv={placement:"bottom",modifiers:[],strategy:"absolute"};function ey(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function dU(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,a=t.defaultOptions,s=a===void 0?Zv:a;return function(A,l,c){c===void 0&&(c=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Zv,s),modifiersData:{},elements:{reference:A,popper:l},attributes:{},styles:{}},d=[],f=!1,p={state:u,setOptions:function(g){var w=typeof g=="function"?g(u.options):g;m(),u.options=Object.assign({},s,u.options,w),u.scrollParents={reference:ai(A)?BA(A):A.contextElement?BA(A.contextElement):[],popper:BA(l)};var B=lU(uU([].concat(r,u.options.modifiers)));return u.orderedModifiers=B.filter(function(v){return v.enabled}),h(),p.update()},forceUpdate:function(){if(!f){var g=u.elements,w=g.reference,B=g.popper;if(ey(w,B)){u.rects={reference:oU(w,_l(B),u.options.strategy==="fixed"),popper:ag(B)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(D){return u.modifiersData[D.name]=Object.assign({},D.data)});for(var v=0;v<u.orderedModifiers.length;v++){if(u.reset===!0){u.reset=!1,v=-1;continue}var _=u.orderedModifiers[v],b=_.fn,k=_.options,C=k===void 0?{}:k,E=_.name;typeof b=="function"&&(u=b({state:u,options:C,name:E,instance:p})||u)}}}},update:cU(function(){return new Promise(function(y){p.forceUpdate(),y(u)})}),destroy:function(){m(),f=!0}};if(!ey(A,l))return p;p.setOptions(c).then(function(y){!f&&c.onFirstUpdate&&c.onFirstUpdate(y)});function h(){u.orderedModifiers.forEach(function(y){var g=y.name,w=y.options,B=w===void 0?{}:w,v=y.effect;if(typeof v=="function"){var _=v({state:u,name:g,instance:p,options:B}),b=function(){};d.push(_||b)}})}function m(){d.forEach(function(y){return y()}),d=[]}return p}}var fU=[QD,eU,OD,L_,JD,GD,rU,TD,YD],pU=dU({defaultModifiers:fU}),hU="tippy-box",$_="tippy-content",mU="tippy-backdrop",K_="tippy-arrow",z_="tippy-svg-arrow",Os={passive:!0,capture:!0},W_=function(){return document.body};function gU(e,t){return{}.hasOwnProperty.call(e,t)}function $f(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function lg(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function G_(e,t){return typeof e=="function"?e.apply(void 0,t):e}function ty(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function vU(e,t){var n=Object.assign({},e);return t.forEach(function(r){delete n[r]}),n}function yU(e){return e.split(/\s+/).filter(Boolean)}function Ni(e){return[].concat(e)}function ny(e,t){e.indexOf(t)===-1&&e.push(t)}function BU(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function wU(e){return e.split("-")[0]}function Iu(e){return[].slice.call(e)}function ry(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function wA(){return document.createElement("div")}function JA(e){return["Element","Fragment"].some(function(t){return lg(e,t)})}function bU(e){return lg(e,"NodeList")}function _U(e){return lg(e,"MouseEvent")}function CU(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function kU(e){return JA(e)?[e]:bU(e)?Iu(e):Array.isArray(e)?e:Iu(document.querySelectorAll(e))}function Kf(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function ay(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function EU(e){var t,n=Ni(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function SU(e,t){var n=t.clientX,r=t.clientY;return e.every(function(a){var s=a.popperRect,i=a.popperState,A=a.props,l=A.interactiveBorder,c=wU(i.placement),u=i.modifiersData.offset;if(!u)return!0;var d=c==="bottom"?u.top.y:0,f=c==="top"?u.bottom.y:0,p=c==="right"?u.left.x:0,h=c==="left"?u.right.x:0,m=s.top-r+d>l,y=r-s.bottom-f>l,g=s.left-n+p>l,w=n-s.right-h>l;return m||y||g||w})}function zf(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(a){e[r](a,n)})}function sy(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Cr={isTouch:!1},iy=0;function xU(){Cr.isTouch||(Cr.isTouch=!0,window.performance&&document.addEventListener("mousemove",j_))}function j_(){var e=performance.now();e-iy<20&&(Cr.isTouch=!1,document.removeEventListener("mousemove",j_)),iy=e}function FU(){var e=document.activeElement;if(CU(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function TU(){document.addEventListener("touchstart",xU,Os),window.addEventListener("blur",FU)}var IU=typeof window<"u"&&typeof document<"u",DU=IU?!!window.msCrypto:!1;function Si(e){var t=e==="destroy"?"n already-":" ";return[e+"() was called on a"+t+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function oy(e){var t=/[ \t]{2,}/g,n=/^[ \t]*/gm;return e.replace(t," ").replace(n,"").trim()}function UU(e){return oy(`
|
|
608
|
+
*/const xT={prefix:"fab",iconName:"discord",icon:[640,512,[],"f392","M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z"]},FT={prefix:"fab",iconName:"reddit-alien",icon:[512,512,[],"f281","M373 138.6c-25.2 0-46.3-17.5-51.9-41l0 0c-30.6 4.3-54.2 30.7-54.2 62.4l0 .2c47.4 1.8 90.6 15.1 124.9 36.3c12.6-9.7 28.4-15.5 45.5-15.5c41.3 0 74.7 33.4 74.7 74.7c0 29.8-17.4 55.5-42.7 67.5c-2.4 86.8-97 156.6-213.2 156.6S45.5 410.1 43 323.4C17.6 311.5 0 285.7 0 255.7c0-41.3 33.4-74.7 74.7-74.7c17.2 0 33 5.8 45.7 15.6c34-21.1 76.8-34.4 123.7-36.4l0-.3c0-44.3 33.7-80.9 76.8-85.5C325.8 50.2 347.2 32 373 32c29.4 0 53.3 23.9 53.3 53.3s-23.9 53.3-53.3 53.3zM157.5 255.3c-20.9 0-38.9 20.8-40.2 47.9s17.1 38.1 38 38.1s36.6-9.8 37.8-36.9s-14.7-49.1-35.7-49.1zM395 303.1c-1.2-27.1-19.2-47.9-40.2-47.9s-36.9 22-35.7 49.1c1.2 27.1 16.9 36.9 37.8 36.9s39.3-11 38-38.1zm-60.1 70.8c1.5-3.6-1-7.7-4.9-8.1c-23-2.3-47.9-3.6-73.8-3.6s-50.8 1.3-73.8 3.6c-3.9 .4-6.4 4.5-4.9 8.1c12.9 30.8 43.3 52.4 78.7 52.4s65.8-21.6 78.7-52.4z"]},TT={prefix:"fab",iconName:"facebook",icon:[512,512,[62e3],"f09a","M512 256C512 114.6 397.4 0 256 0S0 114.6 0 256C0 376 82.7 476.8 194.2 504.5V334.2H141.4V256h52.8V222.3c0-87.1 39.4-127.5 125-127.5c16.2 0 44.2 3.2 55.7 6.4V172c-6-.6-16.5-1-29.6-1c-42 0-58.2 15.9-58.2 57.2V256h83.6l-14.4 78.2H287V510.1C413.8 494.8 512 386.9 512 256h0z"]},IT={prefix:"fab",iconName:"twitter",icon:[512,512,[],"f099","M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"]};function DT(){Mv.add(k6,fT,ST,z6,vT,mT,sT,rT,X6,kT,q6,$6,J6,g6,x6,M6,_6,dT,K6,tT,S6,O6,hT,I6,b6,BT,j6,w6,m6,lT,IT,R6,TT,FT,xT,y6,_T,oT,F6,N6,H6,U6,V6,G6,CT,pT,wT,P6,W6,L6,cT,aT,Z6,yT,Q6,D6),Mv.add({prefix:"fak",iconName:"chart-decks",icon:[640,512,[],"","M564 89c13.8-11 16-31.2 5-45s-31.2-16-45-5L383.4 151.5 275.2 70.4c-11.7-8.8-27.8-8.5-39.2 .6L76 199c-13.8 11-16 31.2-5 45s31.2 16 45 5L256.6 136.5l108.2 81.1c11.7 8.8 27.8 8.5 39.2-.6L564 89zM224 256V448c0 17.7 14.3 32 32 32s32-14.3 32-32V256c0-17.7-14.3-32-32-32s-32 14.3-32 32zM96 352v96c0 17.7 14.3 32 32 32s32-14.3 32-32V352c0-17.7-14.3-32-32-32s-32 14.3-32 32zM352 464c0 16 16 16 32 16l160 0c16 0 32 0 32-16s-16-16-32-16H384c-16 0-32 0-32 16zm0-64c0 16 16 16 32 16l160 0c16 0 32 0 32-16s-16-16-32-16H384c-16 0-32 0-32 16zm0-64c0 16 16 16 32 16l160 0c16 0 32 0 32-16s-16-16-32-16H384c-16 0-32 0-32 16z"]},{prefix:"fak",iconName:"chart-cards",icon:[640,512,[],"","M564 89c13.8-11 16-31.2 5-45s-31.2-16-45-5L383.4 151.5 275.2 70.4c-11.7-8.8-27.8-8.5-39.2 .6L76 199c-13.8 11-16 31.2-5 45s31.2 16 45 5L256.6 136.5l108.2 81.1c11.7 8.8 27.8 8.5 39.2-.6L564 89zM224 256V448c0 17.7 14.3 32 32 32s32-14.3 32-32V256c0-17.7-14.3-32-32-32s-32 14.3-32 32zM96 352v96c0 17.7 14.3 32 32 32s32-14.3 32-32V352c0-17.7-14.3-32-32-32s-32 14.3-32 32zm480-96c0-16-16-32-32-32H448c-16 0-32.6 16-32.6 32s0 176 .6 192s16 32 32 32h96c16 0 32-16 32-32V256z"]},{prefix:"fak",iconName:"chart-decks-2",icon:[603,512,[],"","M467.1 210.8c4.3 0-60.2 0 15.1 0C467.8 108.4 377.7 0 271.4 0c-5.1 0-10.1 .2-15.1 .6V225.9h75.3c0-15.1 45.2-15.1 135.5-15.1zM301.5 346.4c0-27.1 0-45.2 0-75.3H211.1V30.6C93.4 38.4 .3 136.3 .3 256c0 124.8 101.2 225.9 225.9 225.9c41.2 0 42.1 4.2 75.3-15.1c0-45.2 0-80.5 0-120.5zm45.2 105.4c0 30.1 30.1 30.1 30.1 30.1H557.5s30.1 0 30.1-30.1s-30.1-30.1-30.1-30.1H376.8s-30.1 0-30.1 30.1zm0-90.4c0 30.1 30.1 30.1 30.1 30.1H557.5s30.1 0 30.1-30.1s-30.1-30.1-30.1-30.1H376.8s-30.1 0-30.1 30.1zm0-90.4c0 30.1 30.1 30.1 30.1 30.1H557.5s30.1 0 30.1-30.1s-30.1-30.1-30.1-30.1H376.8s-30.1 0-30.1 30.1z"]},{prefix:"fak",iconName:"chart-cards-2",icon:[603,512,[],"","M376.8 195.8c28.3-14.2 60.2 0 75.3 30.1h60.2c0-24.9-20.2-45.2-45.2-45.2H135.9c-24.9 0-45.2 20.2-45.2 45.2V256c0 24.9 20.2 45.2 45.2 45.2H256.3c-15.1-30.1 15.1-45.2 15.1-45.2s75.3-45.2 105.4-60.2zm-90.4 256c12.8 0 45.2 0 45.2 0L271.4 331.3H135.9c-24.9 0-45.2 20.2-45.2 45.2v30.1c0 24.9 20.2 45.2 45.2 45.2H286.4zM452.1 105.4V75.3c0-24.9-20.2-45.2-45.2-45.2H135.9c-24.9 0-45.2 20.2-45.2 45.2v30.1c0 24.9 20.2 45.2 45.2 45.2H406.9c24.9 0 45.2-20.2 45.2-45.2zM285.8 273.7c-13.8 8.2-18.5 26.2-10.5 40.3l86.4 153.2c8 14.1 25.6 19 39.4 10.8l99.8-59c13.8-8.2 18.5-26.2 10.6-40.3L425 225.5c-8-14.1-25.6-18.9-39.4-10.7l-99.9 58.9zM509.2 433.7l-70 41.3c5 4.3 11.5 6.9 18.6 6.9h116c16 0 29-13.3 29-29.6V274.4c0-16.4-13-29.6-29-29.6h-116c-.9 0-1.8 .1-2.7 .1l70.8 125.4c12.5 22.2 5.1 50.6-16.6 63.4z"]},{prefix:"fak",iconName:"cards",icon:[686,690,[],"","M308.6 12c-4.9 1-9.6 2.2-10.5 2.6-.9.3-3.2 1-5.1 1.5-3.6.8-16.7 4.3-37 9.9-6.3 1.7-13.1 3.5-15 4s-8.4 2.2-14.5 3.8c-6 1.7-17.7 4.8-26 7-8.2 2.2-20.2 5.5-26.5 7.2s-13.1 3.5-15 4c-3.9.9-19.2 5.1-37 10-6.3 1.7-13.1 3.5-15 4-5.2 1.3-24.8 6.6-30.5 8.3C61.1 78.9 48 85.9 39.1 94.4c-6.4 6.2-12.3 14.4-16.1 22.6-4.2 8.9-4.8 10.6-6.7 17.5l-1.8 7 .1 12v12l1.7 7c.9 3.8 2.9 11.9 4.6 18 1.6 6 4.7 17.7 6.9 26 2.2 8.2 5.5 20.2 7.2 26.5s3.5 13.1 4 15c.9 3.9 5.1 19.2 10 37 1.7 6.3 3.5 13.1 4 15s2.2 8.4 3.8 14.5c1.7 6 4.8 17.7 7 26 2.2 8.2 5.5 20.2 7.2 26.5s3.5 13.1 4 15c.9 3.9 5.1 19.2 10 37 1.7 6.3 3.5 13.1 4 15s2.2 8.4 3.8 14.5c1.7 6 4.8 17.7 7 26 2.2 8.2 5.5 20.2 7.2 26.5s3.5 13.1 4 15 2.3 8.7 4 15 3.5 13.1 4 15 1.9 6 3 9c1.2 3 2.5 6.6 2.9 8 1.5 4.6 10.1 16.4 17.4 23.8 3.9 3.9 7.7 7.2 8.3 7.2s1.8.7 2.5 1.6 2.2 2 3.4 2.5c1.1.5 2.7 1.3 3.5 1.8 3.7 2.4 13.1 6.1 19 7.6 3.6.9 10.4 1.9 15.2 2.2l8.8.6 7.7-1.2c4.3-.7 10.3-1.9 13.3-2.7s13.8-3.7 24-6.4c10.2-2.6 25.5-6.7 34-9s17.1-4.5 19-5c1.9-.4 10.5-2.7 19-5s17.1-4.5 19-5c1.9-.4 10.5-2.7 19-5s17.1-4.5 19-5c1.9-.4 10.5-2.7 19-5s17.1-4.5 19-5c12.3-2.9 32.6-8.5 39-10.7 9.7-3.3 11.8-4.4 21.5-10.8 11.7-7.7 20-17.4 27.5-32.1 4.8-9.2 6.8-17.1 7.9-30.7l.8-9.8-1.7-9.7c-1.7-9-4.9-21.8-13-51.2-1.7-6.3-3.5-13.1-4-15-.9-3.9-5.1-19.2-10-37-1.7-6.3-3.5-13.1-4-15s-2.2-8.5-3.8-14.5c-1.7-6.1-4.8-17.8-7-26-2.2-8.3-5.5-20.2-7.2-26.5s-3.5-13.1-4-15c-.9-3.9-5.1-19.2-10-37-1.7-6.3-3.5-13.1-4-15s-2.2-8.5-3.8-14.5c-1.7-6.1-4.8-17.8-7-26-2.2-8.3-5.5-20.2-7.2-26.5s-3.5-13.1-4-15c-.9-3.9-5.1-19.2-10-37-1.7-6.3-3.5-13.1-3.9-15-2.1-9.2-7-20.6-13.5-31.3-3-4.9-10.6-12.7-17.6-18-7.1-5.4-20.7-12.1-29-14.2l-6.5-1.7-11.5-.4-11.5-.3zm170.7 102.7-1.1.8.8 4c.5 2.2 2.2 8.9 3.8 15 1.7 6 4.8 17.7 7 26 2.2 8.2 5.5 20.2 7.2 26.5s3.5 13.1 4 15c.4 1.9 2.2 8.7 4 15 1.7 6.3 3.5 13.1 4 15 .9 3.9 5.1 19.2 10 37 1.7 6.3 3.5 13.1 4 15 .4 1.9 2.2 8.7 4 15 1.7 6.3 3.5 13.1 4 15s2.2 8.4 3.8 14.5c1.7 6 4.8 17.7 7 26 2.2 8.2 5.5 20.2 7.2 26.5s3.5 13.1 4 15 2.2 8.4 3.8 14.5c6.2 22.7 9.2 34.2 10.8 42l1.7 8 .1 16 .1 16-1.3 7c-1.5 8.2-4.9 20.6-6.8 25.2-.8 1.7-1.4 3.4-1.4 3.9 0 1.5-10.1 21.3-11.5 22.4-.8.7-1.5 1.7-1.5 2.2 0 1.8-5.3 7.9-18.5 21.2-7.1 7.2-15.7 15-19.1 17.2-8.2 5.5-25.1 13.8-34.9 17-4.4 1.4-14.5 4.3-22.5 6.4s-19.7 5.3-26 7-13.1 3.5-15 4-8.4 2.2-14.5 3.8c-6 1.7-17.7 4.8-26 7-8.2 2.2-20.2 5.5-26.5 7.2s-13.1 3.5-15 4-8.7 2.3-15 4-13.4 3.6-15.7 4.1l-4.3 1.1v1.8c0 1 .8 2 1.8 2.4.9.3 3.1 1.5 4.7 2.6 1.7 1.1 4.1 2.4 5.5 3s4.3 1.9 6.5 3c2.2 1 7.2 2.7 11 3.7l7 1.8h268l9.4-3.3c5.2-1.8 10.1-3.8 10.8-4.4s3.1-2 5.2-3.2c16.6-9 30.8-27.5 37.3-48.7l2.2-7.4.3-207.5.3-207.5-.9-8.5c-1.1-9.9-3.6-18.1-8.1-27.1-7.1-14.1-20.8-27.6-35-34.7-3.6-1.7-9.9-4.4-14-5.9l-7.5-2.7-59-.3c-32.4-.2-59.5 0-60.2.4"]},{prefix:"fak",iconName:"checkerboard",icon:[4,4,[],"","M0 0h1v1H0zM2 0h1v1H2zM1 1h1v1H1zM3 1h1v1H3zM0 2h1v1H0zM2 2h1v1H2zM1 3h1v1H1zM3 3h1v1H3z"]})}const y_=Sa.defineStore("searchBarOptions",{state:()=>({cardOptions:[],playerOptions:[]}),actions:{addOption(e){if(e.type==="card"){if(this.cardOptions.findIndex(t=>t.link===e.link)!==-1){console.log("Repeat Link",e);return}this.cardOptions.length>=5&&this.cardOptions.shift(),this.cardOptions.push(e)}else{if(this.playerOptions.findIndex(t=>t.link===e.link)!==-1){console.log("Repeat Link",e);return}this.playerOptions.length>=5&&this.playerOptions.shift(),this.playerOptions.push(e)}this.sync()},startup(){this.cardOptions=JSON.parse(localStorage.getItem("search-bar-options-card")??"[]"),this.playerOptions=JSON.parse(localStorage.getItem("search-bar-options-player")??"[]")},sync(){localStorage.setItem("search-bar-options-card",JSON.stringify(this.cardOptions)),localStorage.setItem("search-bar-options-player",JSON.stringify(this.playerOptions))}}}),UT=Sa.defineStore("filters",{state:()=>({filters:{}}),actions:{update(e){for(let t in e)this.filters[t]=e[t];this.sync()},startup(){this.filters=JSON.parse(localStorage.getItem("filters")??"{}")},sync(){localStorage.setItem("filters",JSON.stringify(this.filters))}}}),Zm=Sa.defineStore("cardJson",{state:()=>({cardJson:[]}),actions:{update(e){this.cardJson=e}}});function Nv(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function eg(e={},t={}){Object.keys(t).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:Nv(t[n])&&Nv(e[n])&&Object.keys(t[n]).length>0&&eg(e[n],t[n])})}const B_={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function di(){const e=typeof document<"u"?document:{};return eg(e,B_),e}const OT={document:B_,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function Pn(){const e=typeof window<"u"?window:{};return eg(e,OT),e}function LT(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function ph(e,t=0){return setTimeout(e,t)}function Fu(){return Date.now()}function QT(e){const t=Pn();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function MT(e,t="x"){const n=Pn();let r,a,s;const i=QT(e);return n.WebKitCSSMatrix?(a=i.transform||i.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(A=>A.replace(",",".")).join(", ")),s=new n.WebKitCSSMatrix(a==="none"?"":a)):(s=i.MozTransform||i.OTransform||i.MsTransform||i.msTransform||i.transform||i.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=s.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?a=s.m41:r.length===16?a=parseFloat(r[12]):a=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?a=s.m42:r.length===16?a=parseFloat(r[13]):a=parseFloat(r[5])),a||0}function ac(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function NT(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function Un(...e){const t=Object(e[0]),n=["__proto__","constructor","prototype"];for(let r=1;r<e.length;r+=1){const a=e[r];if(a!=null&&!NT(a)){const s=Object.keys(Object(a)).filter(i=>n.indexOf(i)<0);for(let i=0,A=s.length;i<A;i+=1){const l=s[i],c=Object.getOwnPropertyDescriptor(a,l);c!==void 0&&c.enumerable&&(ac(t[l])&&ac(a[l])?a[l].__swiper__?t[l]=a[l]:Un(t[l],a[l]):!ac(t[l])&&ac(a[l])?(t[l]={},a[l].__swiper__?t[l]=a[l]:Un(t[l],a[l])):t[l]=a[l])}}}return t}function sc(e,t,n){e.style.setProperty(t,n)}function w_({swiper:e,targetPosition:t,side:n}){const r=Pn(),a=-e.translate;let s=null,i;const A=e.params.speed;e.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(e.cssModeFrameID);const l=t>a?"next":"prev",c=(d,f)=>l==="next"&&d>=f||l==="prev"&&d<=f,u=()=>{i=new Date().getTime(),s===null&&(s=i);const d=Math.max(Math.min((i-s)/A,1),0),f=.5-Math.cos(d*Math.PI)/2;let p=a+f*(t-a);if(c(p,t)&&(p=t),e.wrapperEl.scrollTo({[n]:p}),c(p,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:p})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(u)};u()}function Fr(e,t=""){return[...e.children].filter(n=>n.matches(t))}function b_(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:[t]),n}function PT(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function RT(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function Va(e,t){return Pn().getComputedStyle(e,null).getPropertyValue(t)}function Pv(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function HT(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function Rv(e,t,n){const r=Pn();return n?e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom")):e.offsetWidth}let Qf;function VT(){const e=Pn(),t=di();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function __(){return Qf||(Qf=VT()),Qf}let Mf;function $T({userAgent:e}={}){const t=__(),n=Pn(),r=n.navigator.platform,a=e||n.navigator.userAgent,s={ios:!1,android:!1},i=n.screen.width,A=n.screen.height,l=a.match(/(Android);?[\s\/]+([\d.]+)?/);let c=a.match(/(iPad).*OS\s([\d_]+)/);const u=a.match(/(iPod)(.*OS\s([\d_]+))?/),d=!c&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f=r==="Win32";let p=r==="MacIntel";const h=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&p&&t.touch&&h.indexOf(`${i}x${A}`)>=0&&(c=a.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),p=!1),l&&!f&&(s.os="android",s.android=!0),(c||d||u)&&(s.os="ios",s.ios=!0),s}function KT(e={}){return Mf||(Mf=$T(e)),Mf}let Nf;function zT(){const e=Pn();let t=!1;function n(){const r=e.navigator.userAgent.toLowerCase();return r.indexOf("safari")>=0&&r.indexOf("chrome")<0&&r.indexOf("android")<0}if(n()){const r=String(e.navigator.userAgent);if(r.includes("Version/")){const[a,s]=r.split("Version/")[1].split(" ")[0].split(".").map(i=>Number(i));t=a<16||a===16&&s<2}}return{isSafari:t||n(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}function WT(){return Nf||(Nf=zT()),Nf}function GT({swiper:e,on:t,emit:n}){const r=Pn();let a=null,s=null;const i=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},A=()=>{!e||e.destroyed||!e.initialized||(a=new ResizeObserver(u=>{s=r.requestAnimationFrame(()=>{const{width:d,height:f}=e;let p=d,h=f;u.forEach(({contentBoxSize:m,contentRect:y,target:g})=>{g&&g!==e.el||(p=y?y.width:(m[0]||m).inlineSize,h=y?y.height:(m[0]||m).blockSize)}),(p!==d||h!==f)&&i()})}),a.observe(e.el))},l=()=>{s&&r.cancelAnimationFrame(s),a&&a.unobserve&&e.el&&(a.unobserve(e.el),a=null)},c=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof r.ResizeObserver<"u"){A();return}r.addEventListener("resize",i),r.addEventListener("orientationchange",c)}),t("destroy",()=>{l(),r.removeEventListener("resize",i),r.removeEventListener("orientationchange",c)})}function jT({swiper:e,extendParams:t,on:n,emit:r}){const a=[],s=Pn(),i=(c,u={})=>{const d=s.MutationObserver||s.WebkitMutationObserver,f=new d(p=>{if(e.__preventObserver__)return;if(p.length===1){r("observerUpdate",p[0]);return}const h=function(){r("observerUpdate",p[0])};s.requestAnimationFrame?s.requestAnimationFrame(h):s.setTimeout(h,0)});f.observe(c,{attributes:typeof u.attributes>"u"?!0:u.attributes,childList:typeof u.childList>"u"?!0:u.childList,characterData:typeof u.characterData>"u"?!0:u.characterData}),a.push(f)},A=()=>{if(e.params.observer){if(e.params.observeParents){const c=HT(e.el);for(let u=0;u<c.length;u+=1)i(c[u])}i(e.el,{childList:e.params.observeSlideChildren}),i(e.wrapperEl,{attributes:!1})}},l=()=>{a.forEach(c=>{c.disconnect()}),a.splice(0,a.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",A),n("destroy",l)}const YT={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const a=n?"unshift":"push";return e.split(" ").forEach(s=>{r.eventsListeners[s]||(r.eventsListeners[s]=[]),r.eventsListeners[s][a](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function a(...s){r.off(e,a),a.__emitterProxy&&delete a.__emitterProxy,t.apply(r,s)}return a.__emitterProxy=t,r.on(e,a,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((a,s)=>{(a===t||a.__emitterProxy&&a.__emitterProxy===t)&&n.eventsListeners[r].splice(s,1)})}),n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let n,r,a;return typeof e[0]=="string"||Array.isArray(e[0])?(n=e[0],r=e.slice(1,e.length),a=t):(n=e[0].events,r=e[0].data,a=e[0].context||t),r.unshift(a),(Array.isArray(n)?n:n.split(" ")).forEach(i=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(A=>{A.apply(a,[i,...r])}),t.eventsListeners&&t.eventsListeners[i]&&t.eventsListeners[i].forEach(A=>{A.apply(a,r)})}),t}};function qT(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(Va(r,"padding-left")||0,10)-parseInt(Va(r,"padding-right")||0,10),n=n-parseInt(Va(r,"padding-top")||0,10)-parseInt(Va(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function XT(){const e=this;function t(T){return e.isHorizontal()?T:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[T]}function n(T,F){return parseFloat(T.getPropertyValue(t(F))||0)}const r=e.params,{wrapperEl:a,slidesEl:s,size:i,rtlTranslate:A,wrongRTL:l}=e,c=e.virtual&&r.virtual.enabled,u=c?e.virtual.slides.length:e.slides.length,d=Fr(s,`.${e.params.slideClass}, swiper-slide`),f=c?e.virtual.slides.length:d.length;let p=[];const h=[],m=[];let y=r.slidesOffsetBefore;typeof y=="function"&&(y=r.slidesOffsetBefore.call(e));let g=r.slidesOffsetAfter;typeof g=="function"&&(g=r.slidesOffsetAfter.call(e));const w=e.snapGrid.length,B=e.slidesGrid.length;let v=r.spaceBetween,_=-y,b=0,k=0;if(typeof i>"u")return;typeof v=="string"&&v.indexOf("%")>=0?v=parseFloat(v.replace("%",""))/100*i:typeof v=="string"&&(v=parseFloat(v)),e.virtualSize=-v,d.forEach(T=>{A?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(sc(a,"--swiper-centered-offset-before",""),sc(a,"--swiper-centered-offset-after",""));const C=r.grid&&r.grid.rows>1&&e.grid;C&&e.grid.initSlides(f);let E;const D=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter(T=>typeof r.breakpoints[T].slidesPerView<"u").length>0;for(let T=0;T<f;T+=1){E=0;let F;if(d[T]&&(F=d[T]),C&&e.grid.updateSlide(T,F,f,t),!(d[T]&&Va(F,"display")==="none")){if(r.slidesPerView==="auto"){D&&(d[T].style[t("width")]="");const U=getComputedStyle(F),W=F.style.transform,J=F.style.webkitTransform;if(W&&(F.style.transform="none"),J&&(F.style.webkitTransform="none"),r.roundLengths)E=e.isHorizontal()?Rv(F,"width",!0):Rv(F,"height",!0);else{const R=n(U,"width"),$=n(U,"padding-left"),de=n(U,"padding-right"),q=n(U,"margin-left"),Ae=n(U,"margin-right"),oe=U.getPropertyValue("box-sizing");if(oe&&oe==="border-box")E=R+q+Ae;else{const{clientWidth:le,offsetWidth:ge}=F;E=R+$+de+q+Ae+(ge-le)}}W&&(F.style.transform=W),J&&(F.style.webkitTransform=J),r.roundLengths&&(E=Math.floor(E))}else E=(i-(r.slidesPerView-1)*v)/r.slidesPerView,r.roundLengths&&(E=Math.floor(E)),d[T]&&(d[T].style[t("width")]=`${E}px`);d[T]&&(d[T].swiperSlideSize=E),m.push(E),r.centeredSlides?(_=_+E/2+b/2+v,b===0&&T!==0&&(_=_-i/2-v),T===0&&(_=_-i/2-v),Math.abs(_)<1/1e3&&(_=0),r.roundLengths&&(_=Math.floor(_)),k%r.slidesPerGroup===0&&p.push(_),h.push(_)):(r.roundLengths&&(_=Math.floor(_)),(k-Math.min(e.params.slidesPerGroupSkip,k))%e.params.slidesPerGroup===0&&p.push(_),h.push(_),_=_+E+v),e.virtualSize+=E+v,b=E,k+=1}}if(e.virtualSize=Math.max(e.virtualSize,i)+g,A&&l&&(r.effect==="slide"||r.effect==="coverflow")&&(a.style.width=`${e.virtualSize+v}px`),r.setWrapperSize&&(a.style[t("width")]=`${e.virtualSize+v}px`),C&&e.grid.updateWrapperSize(E,p,t),!r.centeredSlides){const T=[];for(let F=0;F<p.length;F+=1){let U=p[F];r.roundLengths&&(U=Math.floor(U)),p[F]<=e.virtualSize-i&&T.push(U)}p=T,Math.floor(e.virtualSize-i)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-i)}if(c&&r.loop){const T=m[0]+v;if(r.slidesPerGroup>1){const F=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/r.slidesPerGroup),U=T*r.slidesPerGroup;for(let W=0;W<F;W+=1)p.push(p[p.length-1]+U)}for(let F=0;F<e.virtual.slidesBefore+e.virtual.slidesAfter;F+=1)r.slidesPerGroup===1&&p.push(p[p.length-1]+T),h.push(h[h.length-1]+T),e.virtualSize+=T}if(p.length===0&&(p=[0]),v!==0){const T=e.isHorizontal()&&A?"marginLeft":t("marginRight");d.filter((F,U)=>!r.cssMode||r.loop?!0:U!==d.length-1).forEach(F=>{F.style[T]=`${v}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let T=0;m.forEach(U=>{T+=U+(v||0)}),T-=v;const F=T-i;p=p.map(U=>U<=0?-y:U>F?F+g:U)}if(r.centerInsufficientSlides){let T=0;if(m.forEach(F=>{T+=F+(v||0)}),T-=v,T<i){const F=(i-T)/2;p.forEach((U,W)=>{p[W]=U-F}),h.forEach((U,W)=>{h[W]=U+F})}}if(Object.assign(e,{slides:d,snapGrid:p,slidesGrid:h,slidesSizesGrid:m}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){sc(a,"--swiper-centered-offset-before",`${-p[0]}px`),sc(a,"--swiper-centered-offset-after",`${e.size/2-m[m.length-1]/2}px`);const T=-e.snapGrid[0],F=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(U=>U+T),e.slidesGrid=e.slidesGrid.map(U=>U+F)}if(f!==u&&e.emit("slidesLengthChange"),p.length!==w&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==B&&e.emit("slidesGridLengthChange"),r.watchSlidesProgress&&e.updateSlidesOffset(),!c&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){const T=`${r.containerModifierClass}backface-hidden`,F=e.el.classList.contains(T);f<=r.maxBackfaceHiddenSlides?F||e.el.classList.add(T):F&&e.el.classList.remove(T)}}function JT(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let a=0,s;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const i=A=>r?t.slides[t.getSlideIndexByData(A)]:t.slides[A];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(A=>{n.push(A)});else for(s=0;s<Math.ceil(t.params.slidesPerView);s+=1){const A=t.activeIndex+s;if(A>t.slides.length&&!r)break;n.push(i(A))}else n.push(i(t.activeIndex));for(s=0;s<n.length;s+=1)if(typeof n[s]<"u"){const A=n[s].offsetHeight;a=A>a?A:a}(a||a===0)&&(t.wrapperEl.style.height=`${a}px`)}function ZT(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()}function eI(e=this&&this.translate||0){const t=this,n=t.params,{slides:r,rtlTranslate:a,snapGrid:s}=t;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let i=-e;a&&(i=e),r.forEach(l=>{l.classList.remove(n.slideVisibleClass)}),t.visibleSlidesIndexes=[],t.visibleSlides=[];let A=n.spaceBetween;typeof A=="string"&&A.indexOf("%")>=0?A=parseFloat(A.replace("%",""))/100*t.size:typeof A=="string"&&(A=parseFloat(A));for(let l=0;l<r.length;l+=1){const c=r[l];let u=c.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(u-=r[0].swiperSlideOffset);const d=(i+(n.centeredSlides?t.minTranslate():0)-u)/(c.swiperSlideSize+A),f=(i-s[0]+(n.centeredSlides?t.minTranslate():0)-u)/(c.swiperSlideSize+A),p=-(i-u),h=p+t.slidesSizesGrid[l];(p>=0&&p<t.size-1||h>1&&h<=t.size||p<=0&&h>=t.size)&&(t.visibleSlides.push(c),t.visibleSlidesIndexes.push(l),r[l].classList.add(n.slideVisibleClass)),c.progress=a?-d:d,c.originalProgress=a?-f:f}}function tI(e){const t=this;if(typeof e>"u"){const u=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*u||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:a,isBeginning:s,isEnd:i,progressLoop:A}=t;const l=s,c=i;if(r===0)a=0,s=!0,i=!0;else{a=(e-t.minTranslate())/r;const u=Math.abs(e-t.minTranslate())<1,d=Math.abs(e-t.maxTranslate())<1;s=u||a<=0,i=d||a>=1,u&&(a=0),d&&(a=1)}if(n.loop){const u=t.getSlideIndexByData(0),d=t.getSlideIndexByData(t.slides.length-1),f=t.slidesGrid[u],p=t.slidesGrid[d],h=t.slidesGrid[t.slidesGrid.length-1],m=Math.abs(e);m>=f?A=(m-f)/h:A=(m+h-p)/h,A>1&&(A-=1)}Object.assign(t,{progress:a,progressLoop:A,isBeginning:s,isEnd:i}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),s&&!l&&t.emit("reachBeginning toEdge"),i&&!c&&t.emit("reachEnd toEdge"),(l&&!s||c&&!i)&&t.emit("fromEdge"),t.emit("progress",a)}function nI(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:a}=e,s=e.virtual&&n.virtual.enabled,i=l=>Fr(r,`.${n.slideClass}${l}, swiper-slide${l}`)[0];t.forEach(l=>{l.classList.remove(n.slideActiveClass,n.slideNextClass,n.slidePrevClass)});let A;if(s)if(n.loop){let l=a-e.virtual.slidesBefore;l<0&&(l=e.virtual.slides.length+l),l>=e.virtual.slides.length&&(l-=e.virtual.slides.length),A=i(`[data-swiper-slide-index="${l}"]`)}else A=i(`[data-swiper-slide-index="${a}"]`);else A=t[a];if(A){A.classList.add(n.slideActiveClass);let l=RT(A,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!l&&(l=t[0]),l&&l.classList.add(n.slideNextClass);let c=PT(A,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!c===0&&(c=t[t.length-1]),c&&c.classList.add(n.slidePrevClass)}e.emitSlidesClasses()}const ru=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){const a=r.querySelector(`.${e.params.lazyPreloaderClass}`);a&&a.remove()}},Pf=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},hh=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),a=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const i=a,A=[i-t];A.push(...Array.from({length:t}).map((l,c)=>i+r+c)),e.slides.forEach((l,c)=>{A.includes(l.column)&&Pf(e,c)});return}const s=a+r-1;if(e.params.rewind||e.params.loop)for(let i=a-t;i<=s+t;i+=1){const A=(i%n+n)%n;(A<a||A>s)&&Pf(e,A)}else for(let i=Math.max(a-t,0);i<=Math.min(s+t,n-1);i+=1)i!==a&&(i>s||i<a)&&Pf(e,i)};function rI(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let a;for(let s=0;s<t.length;s+=1)typeof t[s+1]<"u"?r>=t[s]&&r<t[s+1]-(t[s+1]-t[s])/2?a=s:r>=t[s]&&r<t[s+1]&&(a=s+1):r>=t[s]&&(a=s);return n.normalizeSlideIndex&&(a<0||typeof a>"u")&&(a=0),a}function aI(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:a,activeIndex:s,realIndex:i,snapIndex:A}=t;let l=e,c;const u=f=>{let p=f-t.virtual.slidesBefore;return p<0&&(p=t.virtual.slides.length+p),p>=t.virtual.slides.length&&(p-=t.virtual.slides.length),p};if(typeof l>"u"&&(l=rI(t)),r.indexOf(n)>=0)c=r.indexOf(n);else{const f=Math.min(a.slidesPerGroupSkip,l);c=f+Math.floor((l-f)/a.slidesPerGroup)}if(c>=r.length&&(c=r.length-1),l===s){c!==A&&(t.snapIndex=c,t.emit("snapIndexChange")),t.params.loop&&t.virtual&&t.params.virtual.enabled&&(t.realIndex=u(l));return}let d;t.virtual&&a.virtual.enabled&&a.loop?d=u(l):t.slides[l]?d=parseInt(t.slides[l].getAttribute("data-swiper-slide-index")||l,10):d=l,Object.assign(t,{previousSnapIndex:A,snapIndex:c,previousRealIndex:i,realIndex:d,previousIndex:s,activeIndex:l}),t.initialized&&hh(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),i!==d&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")}function sI(e){const t=this,n=t.params,r=e.closest(`.${n.slideClass}, swiper-slide`);let a=!1,s;if(r){for(let i=0;i<t.slides.length;i+=1)if(t.slides[i]===r){a=!0,s=i;break}}if(r&&a)t.clickedSlide=r,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):t.clickedIndex=s;else{t.clickedSlide=void 0,t.clickedIndex=void 0;return}n.slideToClickedSlide&&t.clickedIndex!==void 0&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}const iI={updateSize:qT,updateSlides:XT,updateAutoHeight:JT,updateSlidesOffset:ZT,updateSlidesProgress:eI,updateProgress:tI,updateSlidesClasses:nI,updateActiveIndex:aI,updateClickedSlide:sI};function oI(e=this.isHorizontal()?"x":"y"){const t=this,{params:n,rtlTranslate:r,translate:a,wrapperEl:s}=t;if(n.virtualTranslate)return r?-a:a;if(n.cssMode)return a;let i=MT(s,e);return i+=t.cssOverflowAdjustment(),r&&(i=-i),i||0}function AI(e,t){const n=this,{rtlTranslate:r,params:a,wrapperEl:s,progress:i}=n;let A=0,l=0;const c=0;n.isHorizontal()?A=r?-e:e:l=e,a.roundLengths&&(A=Math.floor(A),l=Math.floor(l)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?A:l,a.cssMode?s[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-A:-l:a.virtualTranslate||(n.isHorizontal()?A-=n.cssOverflowAdjustment():l-=n.cssOverflowAdjustment(),s.style.transform=`translate3d(${A}px, ${l}px, ${c}px)`);let u;const d=n.maxTranslate()-n.minTranslate();d===0?u=0:u=(e-n.minTranslate())/d,u!==i&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function lI(){return-this.snapGrid[0]}function cI(){return-this.snapGrid[this.snapGrid.length-1]}function uI(e=0,t=this.params.speed,n=!0,r=!0,a){const s=this,{params:i,wrapperEl:A}=s;if(s.animating&&i.preventInteractionOnTransition)return!1;const l=s.minTranslate(),c=s.maxTranslate();let u;if(r&&e>l?u=l:r&&e<c?u=c:u=e,s.updateProgress(u),i.cssMode){const d=s.isHorizontal();if(t===0)A[d?"scrollLeft":"scrollTop"]=-u;else{if(!s.support.smoothScroll)return w_({swiper:s,targetPosition:-u,side:d?"left":"top"}),!0;A.scrollTo({[d?"left":"top"]:-u,behavior:"smooth"})}return!0}return t===0?(s.setTransition(0),s.setTranslate(u),n&&(s.emit("beforeTransitionStart",t,a),s.emit("transitionEnd"))):(s.setTransition(t),s.setTranslate(u),n&&(s.emit("beforeTransitionStart",t,a),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(f){!s||s.destroyed||f.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,n&&s.emit("transitionEnd"))}),s.wrapperEl.addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd))),!0}const dI={getTranslate:oI,setTranslate:AI,minTranslate:lI,maxTranslate:cI,translateTo:uI};function fI(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`),n.emit("setTransition",e,t)}function C_({swiper:e,runCallbacks:t,direction:n,step:r}){const{activeIndex:a,previousIndex:s}=e;let i=n;if(i||(a>s?i="next":a<s?i="prev":i="reset"),e.emit(`transition${r}`),t&&a!==s){if(i==="reset"){e.emit(`slideResetTransition${r}`);return}e.emit(`slideChangeTransition${r}`),i==="next"?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`)}}function pI(e=!0,t){const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),C_({swiper:n,runCallbacks:e,direction:t,step:"Start"}))}function hI(e=!0,t){const n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),C_({swiper:n,runCallbacks:e,direction:t,step:"End"}))}const mI={setTransition:fI,transitionStart:pI,transitionEnd:hI};function gI(e=0,t=this.params.speed,n=!0,r,a){typeof e=="string"&&(e=parseInt(e,10));const s=this;let i=e;i<0&&(i=0);const{params:A,snapGrid:l,slidesGrid:c,previousIndex:u,activeIndex:d,rtlTranslate:f,wrapperEl:p,enabled:h}=s;if(s.animating&&A.preventInteractionOnTransition||!h&&!r&&!a)return!1;const m=Math.min(s.params.slidesPerGroupSkip,i);let y=m+Math.floor((i-m)/s.params.slidesPerGroup);y>=l.length&&(y=l.length-1);const g=-l[y];if(A.normalizeSlideIndex)for(let B=0;B<c.length;B+=1){const v=-Math.floor(g*100),_=Math.floor(c[B]*100),b=Math.floor(c[B+1]*100);typeof c[B+1]<"u"?v>=_&&v<b-(b-_)/2?i=B:v>=_&&v<b&&(i=B+1):v>=_&&(i=B)}if(s.initialized&&i!==d&&(!s.allowSlideNext&&(f?g>s.translate&&g>s.minTranslate():g<s.translate&&g<s.minTranslate())||!s.allowSlidePrev&&g>s.translate&&g>s.maxTranslate()&&(d||0)!==i))return!1;i!==(u||0)&&n&&s.emit("beforeSlideChangeStart"),s.updateProgress(g);let w;if(i>d?w="next":i<d?w="prev":w="reset",f&&-g===s.translate||!f&&g===s.translate)return s.updateActiveIndex(i),A.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),A.effect!=="slide"&&s.setTranslate(g),w!=="reset"&&(s.transitionStart(n,w),s.transitionEnd(n,w)),!1;if(A.cssMode){const B=s.isHorizontal(),v=f?g:-g;if(t===0){const _=s.virtual&&s.params.virtual.enabled;_&&(s.wrapperEl.style.scrollSnapType="none",s._immediateVirtual=!0),_&&!s._cssModeVirtualInitialSet&&s.params.initialSlide>0?(s._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[B?"scrollLeft":"scrollTop"]=v})):p[B?"scrollLeft":"scrollTop"]=v,_&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._immediateVirtual=!1})}else{if(!s.support.smoothScroll)return w_({swiper:s,targetPosition:v,side:B?"left":"top"}),!0;p.scrollTo({[B?"left":"top"]:v,behavior:"smooth"})}return!0}return s.setTransition(t),s.setTranslate(g),s.updateActiveIndex(i),s.updateSlidesClasses(),s.emit("beforeTransitionStart",t,r),s.transitionStart(n,w),t===0?s.transitionEnd(n,w):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(v){!s||s.destroyed||v.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(n,w))}),s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)),!0}function vI(e=0,t=this.params.speed,n=!0,r){typeof e=="string"&&(e=parseInt(e,10));const a=this;let s=e;return a.params.loop&&(a.virtual&&a.params.virtual.enabled?s=s+a.virtual.slidesBefore:s=a.getSlideIndexByData(s)),a.slideTo(s,t,n,r)}function yI(e=this.params.speed,t=!0,n){const r=this,{enabled:a,params:s,animating:i}=r;if(!a)return r;let A=s.slidesPerGroup;s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(A=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndex<s.slidesPerGroupSkip?1:A,c=r.virtual&&s.virtual.enabled;if(s.loop){if(i&&!c&&s.loopPreventsSliding)return!1;r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft}return s.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+l,e,t,n)}function BI(e=this.params.speed,t=!0,n){const r=this,{params:a,snapGrid:s,slidesGrid:i,rtlTranslate:A,enabled:l,animating:c}=r;if(!l)return r;const u=r.virtual&&a.virtual.enabled;if(a.loop){if(c&&!u&&a.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const d=A?r.translate:-r.translate;function f(g){return g<0?-Math.floor(Math.abs(g)):Math.floor(g)}const p=f(d),h=s.map(g=>f(g));let m=s[h.indexOf(p)-1];if(typeof m>"u"&&a.cssMode){let g;s.forEach((w,B)=>{p>=w&&(g=B)}),typeof g<"u"&&(m=s[g>0?g-1:g])}let y=0;if(typeof m<"u"&&(y=i.indexOf(m),y<0&&(y=r.activeIndex-1),a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(y=y-r.slidesPerViewDynamic("previous",!0)+1,y=Math.max(y,0))),a.rewind&&r.isBeginning){const g=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(g,e,t,n)}return r.slideTo(y,e,t,n)}function wI(e=this.params.speed,t=!0,n){const r=this;return r.slideTo(r.activeIndex,e,t,n)}function bI(e=this.params.speed,t=!0,n,r=.5){const a=this;let s=a.activeIndex;const i=Math.min(a.params.slidesPerGroupSkip,s),A=i+Math.floor((s-i)/a.params.slidesPerGroup),l=a.rtlTranslate?a.translate:-a.translate;if(l>=a.snapGrid[A]){const c=a.snapGrid[A],u=a.snapGrid[A+1];l-c>(u-c)*r&&(s+=a.params.slidesPerGroup)}else{const c=a.snapGrid[A-1],u=a.snapGrid[A];l-c<=(u-c)*r&&(s-=a.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,a.slidesGrid.length-1),a.slideTo(s,e,t,n)}function _I(){const e=this,{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let a=e.clickedIndex,s;const i=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;s=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?a<e.loopedSlides-r/2||a>e.slides.length-e.loopedSlides+r/2?(e.loopFix(),a=e.getSlideIndex(Fr(n,`${i}[data-swiper-slide-index="${s}"]`)[0]),ph(()=>{e.slideTo(a)})):e.slideTo(a):a>e.slides.length-r?(e.loopFix(),a=e.getSlideIndex(Fr(n,`${i}[data-swiper-slide-index="${s}"]`)[0]),ph(()=>{e.slideTo(a)})):e.slideTo(a)}else e.slideTo(a)}const CI={slideTo:gI,slideToLoop:vI,slideNext:yI,slidePrev:BI,slideReset:wI,slideToClosest:bI,slideToClickedSlide:_I};function kI(e){const t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;Fr(r,`.${n.slideClass}, swiper-slide`).forEach((s,i)=>{s.setAttribute("data-swiper-slide-index",i)}),t.loopFix({slideRealIndex:e,direction:n.centeredSlides?void 0:"next"})}function EI({slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:r,activeSlideIndex:a,byController:s,byMousewheel:i}={}){const A=this;if(!A.params.loop)return;A.emit("beforeLoopFix");const{slides:l,allowSlidePrev:c,allowSlideNext:u,slidesEl:d,params:f}=A;if(A.allowSlidePrev=!0,A.allowSlideNext=!0,A.virtual&&f.virtual.enabled){t&&(!f.centeredSlides&&A.snapIndex===0?A.slideTo(A.virtual.slides.length,0,!1,!0):f.centeredSlides&&A.snapIndex<f.slidesPerView?A.slideTo(A.virtual.slides.length+A.snapIndex,0,!1,!0):A.snapIndex===A.snapGrid.length-1&&A.slideTo(A.virtual.slidesBefore,0,!1,!0)),A.allowSlidePrev=c,A.allowSlideNext=u,A.emit("loopFix");return}const p=f.slidesPerView==="auto"?A.slidesPerViewDynamic():Math.ceil(parseFloat(f.slidesPerView,10));let h=f.loopedSlides||p;h%f.slidesPerGroup!==0&&(h+=f.slidesPerGroup-h%f.slidesPerGroup),A.loopedSlides=h;const m=[],y=[];let g=A.activeIndex;typeof a>"u"?a=A.getSlideIndex(A.slides.filter(b=>b.classList.contains(f.slideActiveClass))[0]):g=a;const w=n==="next"||!n,B=n==="prev"||!n;let v=0,_=0;if(a<h){v=Math.max(h-a,f.slidesPerGroup);for(let b=0;b<h-a;b+=1){const k=b-Math.floor(b/l.length)*l.length;m.push(l.length-k-1)}}else if(a>A.slides.length-h*2){_=Math.max(a-(A.slides.length-h*2),f.slidesPerGroup);for(let b=0;b<_;b+=1){const k=b-Math.floor(b/l.length)*l.length;y.push(k)}}if(B&&m.forEach(b=>{A.slides[b].swiperLoopMoveDOM=!0,d.prepend(A.slides[b]),A.slides[b].swiperLoopMoveDOM=!1}),w&&y.forEach(b=>{A.slides[b].swiperLoopMoveDOM=!0,d.append(A.slides[b]),A.slides[b].swiperLoopMoveDOM=!1}),A.recalcSlides(),f.slidesPerView==="auto"&&A.updateSlides(),f.watchSlidesProgress&&A.updateSlidesOffset(),t){if(m.length>0&&B)if(typeof e>"u"){const b=A.slidesGrid[g],C=A.slidesGrid[g+v]-b;i?A.setTranslate(A.translate-C):(A.slideTo(g+v,0,!1,!0),r&&(A.touches[A.isHorizontal()?"startX":"startY"]+=C))}else r&&A.slideToLoop(e,0,!1,!0);else if(y.length>0&&w)if(typeof e>"u"){const b=A.slidesGrid[g],C=A.slidesGrid[g-_]-b;i?A.setTranslate(A.translate-C):(A.slideTo(g-_,0,!1,!0),r&&(A.touches[A.isHorizontal()?"startX":"startY"]+=C))}else A.slideToLoop(e,0,!1,!0)}if(A.allowSlidePrev=c,A.allowSlideNext=u,A.controller&&A.controller.control&&!s){const b={slideRealIndex:e,slideTo:!1,direction:n,setTranslate:r,activeSlideIndex:a,byController:!0};Array.isArray(A.controller.control)?A.controller.control.forEach(k=>{!k.destroyed&&k.params.loop&&k.loopFix(b)}):A.controller.control instanceof A.constructor&&A.controller.control.params.loop&&A.controller.control.loopFix(b)}A.emit("loopFix")}function SI(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(a=>{const s=typeof a.swiperSlideIndex>"u"?a.getAttribute("data-swiper-slide-index")*1:a.swiperSlideIndex;r[s]=a}),e.slides.forEach(a=>{a.removeAttribute("data-swiper-slide-index")}),r.forEach(a=>{n.append(a)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}const xI={loopCreate:kI,loopFix:EI,loopDestroy:SI};function FI(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function TI(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}const II={setGrabCursor:FI,unsetGrabCursor:TI};function DI(e,t=this){function n(r){if(!r||r===di()||r===Pn())return null;r.assignedSlot&&(r=r.assignedSlot);const a=r.closest(e);return!a&&!r.getRootNode?null:a||n(r.getRootNode().host)}return n(t)}function UI(e){const t=this,n=di(),r=Pn(),a=t.touchEventsData;a.evCache.push(e);const{params:s,touches:i,enabled:A}=t;if(!A||!s.simulateTouch&&e.pointerType==="mouse"||t.animating&&s.preventInteractionOnTransition)return;!t.animating&&s.cssMode&&s.loop&&t.loopFix();let l=e;l.originalEvent&&(l=l.originalEvent);let c=l.target;if(s.touchEventsTarget==="wrapper"&&!t.wrapperEl.contains(c)||"which"in l&&l.which===3||"button"in l&&l.button>0||a.isTouched&&a.isMoved)return;const u=!!s.noSwipingClass&&s.noSwipingClass!=="",d=e.composedPath?e.composedPath():e.path;u&&l.target&&l.target.shadowRoot&&d&&(c=d[0]);const f=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,p=!!(l.target&&l.target.shadowRoot);if(s.noSwiping&&(p?DI(f,c):c.closest(f))){t.allowClick=!0;return}if(s.swipeHandler&&!c.closest(s.swipeHandler))return;i.currentX=l.pageX,i.currentY=l.pageY;const h=i.currentX,m=i.currentY,y=s.edgeSwipeDetection||s.iOSEdgeSwipeDetection,g=s.edgeSwipeThreshold||s.iOSEdgeSwipeThreshold;if(y&&(h<=g||h>=r.innerWidth-g))if(y==="prevent")e.preventDefault();else return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),i.startX=h,i.startY=m,a.touchStartTime=Fu(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,s.threshold>0&&(a.allowThresholdMove=!1);let w=!0;c.matches(a.focusableElements)&&(w=!1,c.nodeName==="SELECT"&&(a.isTouched=!1)),n.activeElement&&n.activeElement.matches(a.focusableElements)&&n.activeElement!==c&&n.activeElement.blur();const B=w&&t.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||B)&&!c.isContentEditable&&l.preventDefault(),s.freeMode&&s.freeMode.enabled&&t.freeMode&&t.animating&&!s.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",l)}function OI(e){const t=di(),n=this,r=n.touchEventsData,{params:a,touches:s,rtlTranslate:i,enabled:A}=n;if(!A||!a.simulateTouch&&e.pointerType==="mouse")return;let l=e;if(l.originalEvent&&(l=l.originalEvent),!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",l);return}const c=r.evCache.findIndex(b=>b.pointerId===l.pointerId);c>=0&&(r.evCache[c]=l);const u=r.evCache.length>1?r.evCache[0]:l,d=u.pageX,f=u.pageY;if(l.preventedByNestedSwiper){s.startX=d,s.startY=f;return}if(!n.allowTouchMove){l.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(s,{startX:d,startY:f,prevX:n.touches.currentX,prevY:n.touches.currentY,currentX:d,currentY:f}),r.touchStartTime=Fu());return}if(a.touchReleaseOnEdges&&!a.loop){if(n.isVertical()){if(f<s.startY&&n.translate<=n.maxTranslate()||f>s.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(d<s.startX&&n.translate<=n.maxTranslate()||d>s.startX&&n.translate>=n.minTranslate())return}if(t.activeElement&&l.target===t.activeElement&&l.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}if(r.allowTouchCallbacks&&n.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;s.currentX=d,s.currentY=f;const p=s.currentX-s.startX,h=s.currentY-s.startY;if(n.params.threshold&&Math.sqrt(p**2+h**2)<n.params.threshold)return;if(typeof r.isScrolling>"u"){let b;n.isHorizontal()&&s.currentY===s.startY||n.isVertical()&&s.currentX===s.startX?r.isScrolling=!1:p*p+h*h>=25&&(b=Math.atan2(Math.abs(h),Math.abs(p))*180/Math.PI,r.isScrolling=n.isHorizontal()?b>a.touchAngle:90-b>a.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",l),typeof r.startMoving>"u"&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(r.startMoving=!0),r.isScrolling||n.zoom&&n.params.zoom&&n.params.zoom.enabled&&r.evCache.length>1){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!a.cssMode&&l.cancelable&&l.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&l.stopPropagation();let m=n.isHorizontal()?p:h,y=n.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;a.oneWayMovement&&(m=Math.abs(m)*(i?1:-1),y=Math.abs(y)*(i?1:-1)),s.diff=m,m*=a.touchRatio,i&&(m=-m,y=-y);const g=n.touchesDirection;n.swipeDirection=m>0?"prev":"next",n.touchesDirection=y>0?"prev":"next";const w=n.params.loop&&!a.cssMode;if(!r.isMoved){if(w&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const b=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});n.wrapperEl.dispatchEvent(b)}r.allowMomentumBounce=!1,a.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",l)}let B;r.isMoved&&g!==n.touchesDirection&&w&&Math.abs(m)>=1&&(n.loopFix({direction:n.swipeDirection,setTranslate:!0}),B=!0),n.emit("sliderMove",l),r.isMoved=!0,r.currentTranslate=m+r.startTranslate;let v=!0,_=a.resistanceRatio;if(a.touchReleaseOnEdges&&(_=0),m>0?(w&&!B&&r.currentTranslate>(a.centeredSlides?n.minTranslate()-n.size/2:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(v=!1,a.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+m)**_))):m<0&&(w&&!B&&r.currentTranslate<(a.centeredSlides?n.maxTranslate()+n.size/2:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(a.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(v=!1,a.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-m)**_))),v&&(l.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection==="next"&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&n.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),a.threshold>0)if(Math.abs(m)>a.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,r.currentTranslate=r.startTranslate,s.diff=n.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{r.currentTranslate=r.startTranslate;return}!a.followFinger||a.cssMode||((a.freeMode&&a.freeMode.enabled&&n.freeMode||a.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),a.freeMode&&a.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function LI(e){const t=this,n=t.touchEventsData,r=n.evCache.findIndex(B=>B.pointerId===e.pointerId);if(r>=0&&n.evCache.splice(r,1),["pointercancel","pointerout","pointerleave"].includes(e.type)&&!(e.type==="pointercancel"&&(t.browser.isSafari||t.browser.isWebView)))return;const{params:a,touches:s,rtlTranslate:i,slidesGrid:A,enabled:l}=t;if(!l||!a.simulateTouch&&e.pointerType==="mouse")return;let c=e;if(c.originalEvent&&(c=c.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",c),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&a.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}a.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const u=Fu(),d=u-n.touchStartTime;if(t.allowClick){const B=c.path||c.composedPath&&c.composedPath();t.updateClickedSlide(B&&B[0]||c.target),t.emit("tap click",c),d<300&&u-n.lastClickTime<300&&t.emit("doubleTap doubleClick",c)}if(n.lastClickTime=Fu(),ph(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||s.diff===0||n.currentTranslate===n.startTranslate){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let f;if(a.followFinger?f=i?t.translate:-t.translate:f=-n.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:f});return}let p=0,h=t.slidesSizesGrid[0];for(let B=0;B<A.length;B+=B<a.slidesPerGroupSkip?1:a.slidesPerGroup){const v=B<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;typeof A[B+v]<"u"?f>=A[B]&&f<A[B+v]&&(p=B,h=A[B+v]-A[B]):f>=A[B]&&(p=B,h=A[A.length-1]-A[A.length-2])}let m=null,y=null;a.rewind&&(t.isBeginning?y=a.virtual&&a.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(m=0));const g=(f-A[p])/h,w=p<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(d>a.longSwipesMs){if(!a.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(g>=a.longSwipesRatio?t.slideTo(a.rewind&&t.isEnd?m:p+w):t.slideTo(p)),t.swipeDirection==="prev"&&(g>1-a.longSwipesRatio?t.slideTo(p+w):y!==null&&g<0&&Math.abs(g)>a.longSwipesRatio?t.slideTo(y):t.slideTo(p))}else{if(!a.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(c.target===t.navigation.nextEl||c.target===t.navigation.prevEl)?c.target===t.navigation.nextEl?t.slideTo(p+w):t.slideTo(p):(t.swipeDirection==="next"&&t.slideTo(m!==null?m:p+w),t.swipeDirection==="prev"&&t.slideTo(y!==null?y:p))}}function Hv(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:a,snapGrid:s}=e,i=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const A=i&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!A?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!i?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=a,e.allowSlideNext=r,e.params.watchOverflow&&s!==e.snapGrid&&e.checkOverflow()}function QI(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function MI(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let a;const s=e.maxTranslate()-e.minTranslate();s===0?a=0:a=(e.translate-e.minTranslate())/s,a!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function NI(e){const t=this;ru(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}let Vv=!1;function PI(){}const k_=(e,t)=>{const n=di(),{params:r,el:a,wrapperEl:s,device:i}=e,A=!!r.nested,l=t==="on"?"addEventListener":"removeEventListener",c=t;a[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:A}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&a[l]("click",e.onClick,!0),r.cssMode&&s[l]("scroll",e.onScroll),r.updateOnWindowResize?e[c](i.ios||i.android?"resize orientationchange observerUpdate":"resize observerUpdate",Hv,!0):e[c]("observerUpdate",Hv,!0),a[l]("load",e.onLoad,{capture:!0})};function RI(){const e=this,t=di(),{params:n}=e;e.onTouchStart=UI.bind(e),e.onTouchMove=OI.bind(e),e.onTouchEnd=LI.bind(e),n.cssMode&&(e.onScroll=MI.bind(e)),e.onClick=QI.bind(e),e.onLoad=NI.bind(e),Vv||(t.addEventListener("touchstart",PI),Vv=!0),k_(e,"on")}function HI(){k_(this,"off")}const VI={attachEvents:RI,detachEvents:HI},$v=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function $I(){const e=this,{realIndex:t,initialized:n,params:r,el:a}=e,s=r.breakpoints;if(!s||s&&Object.keys(s).length===0)return;const i=e.getBreakpoint(s,e.params.breakpointsBase,e.el);if(!i||e.currentBreakpoint===i)return;const l=(i in s?s[i]:void 0)||e.originalParams,c=$v(e,r),u=$v(e,l),d=r.enabled;c&&!u?(a.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!c&&u&&(a.classList.add(`${r.containerModifierClass}grid`),(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&r.grid.fill==="column")&&a.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(m=>{if(typeof l[m]>"u")return;const y=r[m]&&r[m].enabled,g=l[m]&&l[m].enabled;y&&!g&&e[m].disable(),!y&&g&&e[m].enable()});const f=l.direction&&l.direction!==r.direction,p=r.loop&&(l.slidesPerView!==r.slidesPerView||f);f&&n&&e.changeDirection(),Un(e.params,l);const h=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),d&&!h?e.disable():!d&&h&&e.enable(),e.currentBreakpoint=i,e.emit("_beforeBreakpoint",l),p&&n&&(e.loopDestroy(),e.loopCreate(t),e.updateSlides()),e.emit("breakpoint",l)}function KI(e,t="window",n){if(!e||t==="container"&&!n)return;let r=!1;const a=Pn(),s=t==="window"?a.innerHeight:n.clientHeight,i=Object.keys(e).map(A=>{if(typeof A=="string"&&A.indexOf("@")===0){const l=parseFloat(A.substr(1));return{value:s*l,point:A}}return{value:A,point:A}});i.sort((A,l)=>parseInt(A.value,10)-parseInt(l.value,10));for(let A=0;A<i.length;A+=1){const{point:l,value:c}=i[A];t==="window"?a.matchMedia(`(min-width: ${c}px)`).matches&&(r=l):c<=n.clientWidth&&(r=l)}return r||"max"}const zI={setBreakpoint:$I,getBreakpoint:KI};function WI(e,t){const n=[];return e.forEach(r=>{typeof r=="object"?Object.keys(r).forEach(a=>{r[a]&&n.push(t+a)}):typeof r=="string"&&n.push(t+r)}),n}function GI(){const e=this,{classNames:t,params:n,rtl:r,el:a,device:s}=e,i=WI(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...i),a.classList.add(...t),e.emitContainerClasses()}function jI(){const e=this,{el:t,classNames:n}=e;t.classList.remove(...n),e.emitContainerClasses()}const YI={addClasses:GI,removeClasses:jI};function qI(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const a=e.slides.length-1,s=e.slidesGrid[a]+e.slidesSizesGrid[a]+r*2;e.isLocked=e.size>s}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}const XI={checkOverflow:qI},Kv={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function JI(e,t){return function(r={}){const a=Object.keys(r)[0],s=r[a];if(typeof s!="object"||s===null){Un(t,r);return}if(["navigation","pagination","scrollbar"].indexOf(a)>=0&&e[a]===!0&&(e[a]={auto:!0}),!(a in e&&"enabled"in s)){Un(t,r);return}e[a]===!0&&(e[a]={enabled:!0}),typeof e[a]=="object"&&!("enabled"in e[a])&&(e[a].enabled=!0),e[a]||(e[a]={enabled:!1}),Un(t,r)}}const Rf={eventsEmitter:YT,update:iI,translate:dI,transition:mI,slide:CI,loop:xI,grabCursor:II,events:VI,breakpoints:zI,checkOverflow:XI,classes:YI},Hf={};let YA=class ta{constructor(...t){let n,r;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?r=t[0]:[n,r]=t,r||(r={}),r=Un({},r),n&&!r.el&&(r.el=n);const a=di();if(r.el&&typeof r.el=="string"&&a.querySelectorAll(r.el).length>1){const l=[];return a.querySelectorAll(r.el).forEach(c=>{const u=Un({},r,{el:c});l.push(new ta(u))}),l}const s=this;s.__swiper__=!0,s.support=__(),s.device=KT({userAgent:r.userAgent}),s.browser=WT(),s.eventsListeners={},s.eventsAnyListeners=[],s.modules=[...s.__modules__],r.modules&&Array.isArray(r.modules)&&s.modules.push(...r.modules);const i={};s.modules.forEach(l=>{l({params:r,swiper:s,extendParams:JI(r,i),on:s.on.bind(s),once:s.once.bind(s),off:s.off.bind(s),emit:s.emit.bind(s)})});const A=Un({},Kv,i);return s.params=Un({},A,Hf,r),s.originalParams=Un({},s.params),s.passedParams=Un({},r),s.params&&s.params.on&&Object.keys(s.params.on).forEach(l=>{s.on(l,s.params.on[l])}),s.params&&s.params.onAny&&s.onAny(s.params.onAny),Object.assign(s,{enabled:s.params.enabled,el:n,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return s.params.direction==="horizontal"},isVertical(){return s.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:s.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:s.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),s.emit("_swiper"),s.params.init&&s.init(),s}getSlideIndex(t){const{slidesEl:n,params:r}=this,a=Fr(n,`.${r.slideClass}, swiper-slide`),s=Pv(a[0]);return Pv(t)-s}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter(n=>n.getAttribute("data-swiper-slide-index")*1===t)[0])}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=Fr(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const a=r.minTranslate(),i=(r.maxTranslate()-a)*t+a;r.translateTo(i,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const a=t.getSlideClasses(r);n.push({slideEl:r,classNames:a}),t.emit("_slideClass",r,a)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t="current",n=!1){const r=this,{params:a,slides:s,slidesGrid:i,slidesSizesGrid:A,size:l,activeIndex:c}=r;let u=1;if(a.centeredSlides){let d=s[c]?s[c].swiperSlideSize:0,f;for(let p=c+1;p<s.length;p+=1)s[p]&&!f&&(d+=s[p].swiperSlideSize,u+=1,d>l&&(f=!0));for(let p=c-1;p>=0;p-=1)s[p]&&!f&&(d+=s[p].swiperSlideSize,u+=1,d>l&&(f=!0))}else if(t==="current")for(let d=c+1;d<s.length;d+=1)(n?i[d]+A[d]-i[c]<l:i[d]-i[c]<l)&&(u+=1);else for(let d=c-1;d>=0;d-=1)i[c]-i[d]<l&&(u+=1);return u}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:n,params:r}=t;r.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(i=>{i.complete&&ru(t,i)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function a(){const i=t.rtlTranslate?t.translate*-1:t.translate,A=Math.min(Math.max(i,t.maxTranslate()),t.minTranslate());t.setTranslate(A),t.updateActiveIndex(),t.updateSlidesClasses()}let s;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)a(),r.autoHeight&&t.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){const i=t.virtual&&r.virtual.enabled?t.virtual.slides:t.slides;s=t.slideTo(i.length-1,0,!1,!0)}else s=t.slideTo(t.activeIndex,0,!1,!0);s||a()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n=!0){const r=this,a=r.params.direction;return t||(t=a==="horizontal"?"vertical":"horizontal"),t===a||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${a}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(s=>{t==="vertical"?s.style.width="":s.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.shadowEl&&(n.isElement=!0);const a=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let i=(()=>r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(a()):Fr(r,a())[0])();return!i&&n.params.createElements&&(i=b_("div",n.params.wrapperClass),r.append(i),Fr(r,`.${n.params.slideClass}`).forEach(A=>{i.append(A)})),Object.assign(n,{el:r,wrapperEl:i,slidesEl:n.isElement?r:i,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||Va(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||Va(r,"direction")==="rtl"),wrongRTL:Va(i,"display")==="-webkit-box"}),!0}init(t){const n=this;return n.initialized||n.mount(t)===!1||(n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents(),[...n.el.querySelectorAll('[loading="lazy"]')].forEach(a=>{a.complete?ru(n,a):a.addEventListener("load",s=>{ru(n,s.target)})}),hh(n),n.initialized=!0,hh(n),n.emit("init"),n.emit("afterInit")),n}destroy(t=!0,n=!0){const r=this,{params:a,el:s,wrapperEl:i,slides:A}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),a.loop&&r.loopDestroy(),n&&(r.removeClasses(),s.removeAttribute("style"),i.removeAttribute("style"),A&&A.length&&A.forEach(l=>{l.classList.remove(a.slideVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(l=>{r.off(l)}),t!==!1&&(r.el.swiper=null,LT(r)),r.destroyed=!0),null}static extendDefaults(t){Un(Hf,t)}static get extendedDefaults(){return Hf}static get defaults(){return Kv}static installModule(t){ta.prototype.__modules__||(ta.prototype.__modules__=[]);const n=ta.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>ta.installModule(n)),ta):(ta.installModule(t),ta)}};Object.keys(Rf).forEach(e=>{Object.keys(Rf[e]).forEach(t=>{YA.prototype[t]=Rf[e][t]})});YA.use([GT,jT]);function ZI(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(a=>{if(!n[a]&&n.auto===!0){let s=Fr(e.el,`.${r[a]}`)[0];s||(s=b_("div",r[a]),s.className=r[a],e.el.append(s)),n[a]=s,t[a]=s}}),n}function eD({swiper:e,extendParams:t,on:n,emit:r}){t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};const a=h=>(Array.isArray(h)||(h=[h].filter(m=>!!m)),h);function s(h){let m;return h&&typeof h=="string"&&e.isElement&&(m=e.el.shadowRoot.querySelector(h),m)?m:(h&&(typeof h=="string"&&(m=[...document.querySelectorAll(h)]),e.params.uniqueNavElements&&typeof h=="string"&&m.length>1&&e.el.querySelectorAll(h).length===1&&(m=e.el.querySelector(h))),h&&!m?h:m)}function i(h,m){const y=e.params.navigation;h=a(h),h.forEach(g=>{g&&(g.classList[m?"add":"remove"](...y.disabledClass.split(" ")),g.tagName==="BUTTON"&&(g.disabled=m),e.params.watchOverflow&&e.enabled&&g.classList[e.isLocked?"add":"remove"](y.lockClass))})}function A(){const{nextEl:h,prevEl:m}=e.navigation;if(e.params.loop){i(m,!1),i(h,!1);return}i(m,e.isBeginning&&!e.params.rewind),i(h,e.isEnd&&!e.params.rewind)}function l(h){h.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function c(h){h.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function u(){const h=e.params.navigation;if(e.params.navigation=ZI(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(h.nextEl||h.prevEl))return;let m=s(h.nextEl),y=s(h.prevEl);Object.assign(e.navigation,{nextEl:m,prevEl:y}),m=a(m),y=a(y);const g=(w,B)=>{w&&w.addEventListener("click",B==="next"?c:l),!e.enabled&&w&&w.classList.add(...h.lockClass.split(" "))};m.forEach(w=>g(w,"next")),y.forEach(w=>g(w,"prev"))}function d(){let{nextEl:h,prevEl:m}=e.navigation;h=a(h),m=a(m);const y=(g,w)=>{g.removeEventListener("click",w==="next"?c:l),g.classList.remove(...e.params.navigation.disabledClass.split(" "))};h.forEach(g=>y(g,"next")),m.forEach(g=>y(g,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?p():(u(),A())}),n("toEdge fromEdge lock unlock",()=>{A()}),n("destroy",()=>{d()}),n("enable disable",()=>{let{nextEl:h,prevEl:m}=e.navigation;h=a(h),m=a(m),[...h,...m].filter(y=>!!y).forEach(y=>y.classList[e.enabled?"remove":"add"](e.params.navigation.lockClass))}),n("click",(h,m)=>{let{nextEl:y,prevEl:g}=e.navigation;y=a(y),g=a(g);const w=m.target;if(e.params.navigation.hideOnClick&&!g.includes(w)&&!y.includes(w)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===w||e.pagination.el.contains(w)))return;let B;y.length?B=y[0].classList.contains(e.params.navigation.hiddenClass):g.length&&(B=g[0].classList.contains(e.params.navigation.hiddenClass)),r(B===!0?"navigationShow":"navigationHide"),[...y,...g].filter(v=>!!v).forEach(v=>v.classList.toggle(e.params.navigation.hiddenClass))}});const f=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),u(),A()},p=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),d()};Object.assign(e.navigation,{enable:f,disable:p,update:A,init:u,destroy:d})}function ri(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function $a(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:ri(t[r])&&ri(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:$a(e[r],t[r]):e[r]=t[r]})}function E_(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function S_(e={}){return e.pagination&&typeof e.pagination.el>"u"}function x_(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function F_(e=""){const t=e.split(" ").map(r=>r.trim()).filter(r=>!!r),n=[];return t.forEach(r=>{n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function tD(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}const T_=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function zv(e={},t=!0){const n={on:{}},r={},a={};$a(n,YA.defaults),$a(n,YA.extendedDefaults),n._emitClasses=!0,n.init=!1;const s={},i=T_.map(l=>l.replace(/_/,"")),A=Object.assign({},e);return Object.keys(A).forEach(l=>{typeof e[l]>"u"||(i.indexOf(l)>=0?ri(e[l])?(n[l]={},a[l]={},$a(n[l],e[l]),$a(a[l],e[l])):(n[l]=e[l],a[l]=e[l]):l.search(/on[A-Z]/)===0&&typeof e[l]=="function"?t?r[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:n.on[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:s[l]=e[l])}),["navigation","pagination","scrollbar"].forEach(l=>{n[l]===!0&&(n[l]={}),n[l]===!1&&delete n[l]}),{params:n,passedParams:a,rest:s,events:r}}function nD({el:e,nextEl:t,prevEl:n,paginationEl:r,scrollbarEl:a,swiper:s},i){E_(i)&&t&&n&&(s.params.navigation.nextEl=t,s.originalParams.navigation.nextEl=t,s.params.navigation.prevEl=n,s.originalParams.navigation.prevEl=n),S_(i)&&r&&(s.params.pagination.el=r,s.originalParams.pagination.el=r),x_(i)&&a&&(s.params.scrollbar.el=a,s.originalParams.scrollbar.el=a),s.init(e)}function rD(e,t,n,r,a){const s=[];if(!t)return s;const i=l=>{s.indexOf(l)<0&&s.push(l)};if(n&&r){const l=r.map(a),c=n.map(a);l.join("")!==c.join("")&&i("children"),r.length!==n.length&&i("children")}return T_.filter(l=>l[0]==="_").map(l=>l.replace(/_/,"")).forEach(l=>{if(l in e&&l in t)if(ri(e[l])&&ri(t[l])){const c=Object.keys(e[l]),u=Object.keys(t[l]);c.length!==u.length?i(l):(c.forEach(d=>{e[l][d]!==t[l][d]&&i(l)}),u.forEach(d=>{e[l][d]!==t[l][d]&&i(l)}))}else e[l]!==t[l]&&i(l)}),s}function Vf(e,t,n){e===void 0&&(e={});const r=[],a={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]},s=(i,A)=>{Array.isArray(i)&&i.forEach(l=>{const c=typeof l.type=="symbol";A==="default"&&(A="container-end"),c&&l.children?s(l.children,A):l.type&&(l.type.name==="SwiperSlide"||l.type.name==="AsyncComponentWrapper")?r.push(l):a[A]&&a[A].push(l)})};return Object.keys(e).forEach(i=>{if(typeof e[i]!="function")return;const A=e[i]();s(A,i)}),n.value=t.value,t.value=r,{slides:r,slots:a}}function aD({swiper:e,slides:t,passedParams:n,changedParams:r,nextEl:a,prevEl:s,scrollbarEl:i,paginationEl:A}){const l=r.filter(C=>C!=="children"&&C!=="direction"&&C!=="wrapperClass"),{params:c,pagination:u,navigation:d,scrollbar:f,virtual:p,thumbs:h}=e;let m,y,g,w,B,v,_,b;r.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&c.thumbs&&!c.thumbs.swiper&&(m=!0),r.includes("controller")&&n.controller&&n.controller.control&&c.controller&&!c.controller.control&&(y=!0),r.includes("pagination")&&n.pagination&&(n.pagination.el||A)&&(c.pagination||c.pagination===!1)&&u&&!u.el&&(g=!0),r.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||i)&&(c.scrollbar||c.scrollbar===!1)&&f&&!f.el&&(w=!0),r.includes("navigation")&&n.navigation&&(n.navigation.prevEl||s)&&(n.navigation.nextEl||a)&&(c.navigation||c.navigation===!1)&&d&&!d.prevEl&&!d.nextEl&&(B=!0);const k=C=>{e[C]&&(e[C].destroy(),C==="navigation"?(e.isElement&&(e[C].prevEl.remove(),e[C].nextEl.remove()),c[C].prevEl=void 0,c[C].nextEl=void 0,e[C].prevEl=void 0,e[C].nextEl=void 0):(e.isElement&&e[C].el.remove(),c[C].el=void 0,e[C].el=void 0))};r.includes("loop")&&e.isElement&&(c.loop&&!n.loop?v=!0:!c.loop&&n.loop?_=!0:b=!0),l.forEach(C=>{if(ri(c[C])&&ri(n[C]))$a(c[C],n[C]),(C==="navigation"||C==="pagination"||C==="scrollbar")&&"enabled"in n[C]&&!n[C].enabled&&k(C);else{const E=n[C];(E===!0||E===!1)&&(C==="navigation"||C==="pagination"||C==="scrollbar")?E===!1&&k(C):c[C]=n[C]}}),l.includes("controller")&&!y&&e.controller&&e.controller.control&&c.controller&&c.controller.control&&(e.controller.control=c.controller.control),r.includes("children")&&t&&p&&c.virtual.enabled&&(p.slides=t,p.update(!0)),r.includes("children")&&t&&c.loop&&(b=!0),m&&h.init()&&h.update(!0),y&&(e.controller.control=c.controller.control),g&&(e.isElement&&(!A||typeof A=="string")&&(A=document.createElement("div"),A.classList.add("swiper-pagination"),e.el.shadowEl.appendChild(A)),A&&(c.pagination.el=A),u.init(),u.render(),u.update()),w&&(e.isElement&&(!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-scrollbar"),e.el.shadowEl.appendChild(i)),i&&(c.scrollbar.el=i),f.init(),f.updateSize(),f.setTranslate()),B&&(e.isElement&&((!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-next"),e.el.shadowEl.appendChild(a)),(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-prev"),e.el.shadowEl.appendChild(s))),a&&(c.navigation.nextEl=a),s&&(c.navigation.prevEl=s),d.init(),d.update()),r.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),r.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),r.includes("direction")&&e.changeDirection(n.direction,!1),(v||b)&&e.loopDestroy(),(_||b)&&e.loopCreate(),e.update()}function sD(e,t,n){if(!n)return null;const r=u=>{let d=u;return u<0?d=t.length+u:d>=t.length&&(d=d-t.length),d},a=e.value.isHorizontal()?{[e.value.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:s,to:i}=n,A=e.value.params.loop?-t.length:0,l=e.value.params.loop?t.length*2:t.length,c=[];for(let u=A;u<l;u+=1)u>=s&&u<=i&&c.push(t[r(u)]);return c.map(u=>(u.props||(u.props={}),u.props.style||(u.props.style={}),u.props.swiperRef=e,u.props.style=a,o.h(u.type,{...u.props},u.children)))}const iD=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())},I_={name:"Swiper",props:{tag:{type:String,default:"div"},wrapperTag:{type:String,default:"div"},modules:{type:Array,default:void 0},init:{type:Boolean,default:void 0},direction:{type:String,default:void 0},oneWayMovement:{type:Boolean,default:void 0},touchEventsTarget:{type:String,default:void 0},initialSlide:{type:Number,default:void 0},speed:{type:Number,default:void 0},cssMode:{type:Boolean,default:void 0},updateOnWindowResize:{type:Boolean,default:void 0},resizeObserver:{type:Boolean,default:void 0},nested:{type:Boolean,default:void 0},focusableElements:{type:String,default:void 0},width:{type:Number,default:void 0},height:{type:Number,default:void 0},preventInteractionOnTransition:{type:Boolean,default:void 0},userAgent:{type:String,default:void 0},url:{type:String,default:void 0},edgeSwipeDetection:{type:[Boolean,String],default:void 0},edgeSwipeThreshold:{type:Number,default:void 0},autoHeight:{type:Boolean,default:void 0},setWrapperSize:{type:Boolean,default:void 0},virtualTranslate:{type:Boolean,default:void 0},effect:{type:String,default:void 0},breakpoints:{type:Object,default:void 0},spaceBetween:{type:[Number,String],default:void 0},slidesPerView:{type:[Number,String],default:void 0},maxBackfaceHiddenSlides:{type:Number,default:void 0},slidesPerGroup:{type:Number,default:void 0},slidesPerGroupSkip:{type:Number,default:void 0},slidesPerGroupAuto:{type:Boolean,default:void 0},centeredSlides:{type:Boolean,default:void 0},centeredSlidesBounds:{type:Boolean,default:void 0},slidesOffsetBefore:{type:Number,default:void 0},slidesOffsetAfter:{type:Number,default:void 0},normalizeSlideIndex:{type:Boolean,default:void 0},centerInsufficientSlides:{type:Boolean,default:void 0},watchOverflow:{type:Boolean,default:void 0},roundLengths:{type:Boolean,default:void 0},touchRatio:{type:Number,default:void 0},touchAngle:{type:Number,default:void 0},simulateTouch:{type:Boolean,default:void 0},shortSwipes:{type:Boolean,default:void 0},longSwipes:{type:Boolean,default:void 0},longSwipesRatio:{type:Number,default:void 0},longSwipesMs:{type:Number,default:void 0},followFinger:{type:Boolean,default:void 0},allowTouchMove:{type:Boolean,default:void 0},threshold:{type:Number,default:void 0},touchMoveStopPropagation:{type:Boolean,default:void 0},touchStartPreventDefault:{type:Boolean,default:void 0},touchStartForcePreventDefault:{type:Boolean,default:void 0},touchReleaseOnEdges:{type:Boolean,default:void 0},uniqueNavElements:{type:Boolean,default:void 0},resistance:{type:Boolean,default:void 0},resistanceRatio:{type:Number,default:void 0},watchSlidesProgress:{type:Boolean,default:void 0},grabCursor:{type:Boolean,default:void 0},preventClicks:{type:Boolean,default:void 0},preventClicksPropagation:{type:Boolean,default:void 0},slideToClickedSlide:{type:Boolean,default:void 0},loop:{type:Boolean,default:void 0},loopedSlides:{type:Number,default:void 0},loopPreventsSliding:{type:Boolean,default:void 0},rewind:{type:Boolean,default:void 0},allowSlidePrev:{type:Boolean,default:void 0},allowSlideNext:{type:Boolean,default:void 0},swipeHandler:{type:Boolean,default:void 0},noSwiping:{type:Boolean,default:void 0},noSwipingClass:{type:String,default:void 0},noSwipingSelector:{type:String,default:void 0},passiveListeners:{type:Boolean,default:void 0},containerModifierClass:{type:String,default:void 0},slideClass:{type:String,default:void 0},slideActiveClass:{type:String,default:void 0},slideVisibleClass:{type:String,default:void 0},slideNextClass:{type:String,default:void 0},slidePrevClass:{type:String,default:void 0},wrapperClass:{type:String,default:void 0},lazyPreloaderClass:{type:String,default:void 0},lazyPreloadPrevNext:{type:Number,default:void 0},runCallbacksOnInit:{type:Boolean,default:void 0},observer:{type:Boolean,default:void 0},observeParents:{type:Boolean,default:void 0},observeSlideChildren:{type:Boolean,default:void 0},a11y:{type:[Boolean,Object],default:void 0},autoplay:{type:[Boolean,Object],default:void 0},controller:{type:Object,default:void 0},coverflowEffect:{type:Object,default:void 0},cubeEffect:{type:Object,default:void 0},fadeEffect:{type:Object,default:void 0},flipEffect:{type:Object,default:void 0},creativeEffect:{type:Object,default:void 0},cardsEffect:{type:Object,default:void 0},hashNavigation:{type:[Boolean,Object],default:void 0},history:{type:[Boolean,Object],default:void 0},keyboard:{type:[Boolean,Object],default:void 0},mousewheel:{type:[Boolean,Object],default:void 0},navigation:{type:[Boolean,Object],default:void 0},pagination:{type:[Boolean,Object],default:void 0},parallax:{type:[Boolean,Object],default:void 0},scrollbar:{type:[Boolean,Object],default:void 0},thumbs:{type:Object,default:void 0},virtual:{type:[Boolean,Object],default:void 0},zoom:{type:[Boolean,Object],default:void 0},grid:{type:[Object],default:void 0},freeMode:{type:[Boolean,Object],default:void 0},enabled:{type:Boolean,default:void 0}},emits:["_beforeBreakpoint","_containerClasses","_slideClass","_slideClasses","_swiper","_freeModeNoMomentumRelease","activeIndexChange","afterInit","autoplay","autoplayStart","autoplayStop","autoplayPause","autoplayResume","autoplayTimeLeft","beforeDestroy","beforeInit","beforeLoopFix","beforeResize","beforeSlideChangeStart","beforeTransitionStart","breakpoint","changeDirection","click","disable","doubleTap","doubleClick","destroy","enable","fromEdge","hashChange","hashSet","init","keyPress","lock","loopFix","momentumBounce","navigationHide","navigationShow","navigationPrev","navigationNext","observerUpdate","orientationchange","paginationHide","paginationRender","paginationShow","paginationUpdate","progress","reachBeginning","reachEnd","realIndexChange","resize","scroll","scrollbarDragEnd","scrollbarDragMove","scrollbarDragStart","setTransition","setTranslate","slideChange","slideChangeTransitionEnd","slideChangeTransitionStart","slideNextTransitionEnd","slideNextTransitionStart","slidePrevTransitionEnd","slidePrevTransitionStart","slideResetTransitionStart","slideResetTransitionEnd","sliderMove","sliderFirstMove","slidesLengthChange","slidesGridLengthChange","snapGridLengthChange","snapIndexChange","swiper","tap","toEdge","touchEnd","touchMove","touchMoveOpposite","touchStart","transitionEnd","transitionStart","unlock","update","virtualUpdate","zoomChange"],setup(e,t){let{slots:n,emit:r}=t;const{tag:a,wrapperTag:s}=e,i=o.ref("swiper"),A=o.ref(null),l=o.ref(!1),c=o.ref(!1),u=o.ref(null),d=o.ref(null),f=o.ref(null),p={value:[]},h={value:[]},m=o.ref(null),y=o.ref(null),g=o.ref(null),w=o.ref(null),{params:B,passedParams:v}=zv(e,!1);Vf(n,p,h),f.value=v,h.value=p.value;const _=()=>{Vf(n,p,h),l.value=!0};B.onAny=function(C){for(var E=arguments.length,D=new Array(E>1?E-1:0),T=1;T<E;T++)D[T-1]=arguments[T];r(C,...D)},Object.assign(B.on,{_beforeBreakpoint:_,_containerClasses(C,E){i.value=E}});const b={...B};if(delete b.wrapperClass,d.value=new YA(b),d.value.virtual&&d.value.params.virtual.enabled){d.value.virtual.slides=p.value;const C={cache:!1,slides:p.value,renderExternal:E=>{A.value=E},renderExternalUpdate:!1};$a(d.value.params.virtual,C),$a(d.value.originalParams.virtual,C)}o.onUpdated(()=>{!c.value&&d.value&&(d.value.emitSlidesClasses(),c.value=!0);const{passedParams:C}=zv(e,!1),E=rD(C,f.value,p.value,h.value,D=>D.props&&D.props.key);f.value=C,(E.length||l.value)&&d.value&&!d.value.destroyed&&aD({swiper:d.value,slides:p.value,passedParams:C,changedParams:E,nextEl:m.value,prevEl:y.value,scrollbarEl:w.value,paginationEl:g.value}),l.value=!1}),o.provide("swiper",d),o.watch(A,()=>{o.nextTick(()=>{iD(d.value)})}),o.onMounted(()=>{u.value&&(nD({el:u.value,nextEl:m.value,prevEl:y.value,paginationEl:g.value,scrollbarEl:w.value,swiper:d.value},B),r("swiper",d.value))}),o.onBeforeUnmount(()=>{d.value&&!d.value.destroyed&&d.value.destroy(!0,!1)});function k(C){return B.virtual?sD(d,C,A.value):(C.forEach((E,D)=>{E.props||(E.props={}),E.props.swiperRef=d,E.props.swiperSlideIndex=D}),C)}return()=>{const{slides:C,slots:E}=Vf(n,p,h);return o.h(a,{ref:u,class:F_(i.value)},[E["container-start"],o.h(s,{class:tD(B.wrapperClass)},[E["wrapper-start"],k(C),E["wrapper-end"]]),E_(e)&&[o.h("div",{ref:y,class:"swiper-button-prev"}),o.h("div",{ref:m,class:"swiper-button-next"})],x_(e)&&o.h("div",{ref:w,class:"swiper-scrollbar"}),S_(e)&&o.h("div",{ref:g,class:"swiper-pagination"}),E["container-end"]])}}},D_={name:"SwiperSlide",props:{tag:{type:String,default:"div"},swiperRef:{type:Object,required:!1},swiperSlideIndex:{type:Number,default:void 0,required:!1},zoom:{type:Boolean,default:void 0,required:!1},lazy:{type:Boolean,default:!1,required:!1},virtualIndex:{type:[String,Number],default:void 0}},setup(e,t){let{slots:n}=t,r=!1;const{swiperRef:a}=e,s=o.ref(null),i=o.ref("swiper-slide"),A=o.ref(!1);function l(d,f,p){f===s.value&&(i.value=p)}o.onMounted(()=>{!a||!a.value||(a.value.on("_slideClass",l),r=!0)}),o.onBeforeUpdate(()=>{r||!a||!a.value||(a.value.on("_slideClass",l),r=!0)}),o.onUpdated(()=>{!s.value||!a||!a.value||(typeof e.swiperSlideIndex<"u"&&(s.value.swiperSlideIndex=e.swiperSlideIndex),a.value.destroyed&&i.value!=="swiper-slide"&&(i.value="swiper-slide"))}),o.onBeforeUnmount(()=>{!a||!a.value||a.value.off("_slideClass",l)});const c=o.computed(()=>({isActive:i.value.indexOf("swiper-slide-active")>=0,isVisible:i.value.indexOf("swiper-slide-visible")>=0,isPrev:i.value.indexOf("swiper-slide-prev")>=0,isNext:i.value.indexOf("swiper-slide-next")>=0}));o.provide("swiperSlide",c);const u=()=>{A.value=!0};return()=>o.h(e.tag,{class:F_(`${i.value}`),ref:s,"data-swiper-slide-index":typeof e.virtualIndex>"u"&&a&&a.value&&a.value.params.loop?e.swiperSlideIndex:e.virtualIndex,onLoadCapture:u},e.zoom?o.h("div",{class:"swiper-zoom-container","data-swiper-zoom":typeof e.zoom=="number"?e.zoom:void 0},[n.default&&n.default(c.value),e.lazy&&!A.value&&o.h("div",{class:"swiper-lazy-preloader"})]):[n.default&&n.default(c.value),e.lazy&&!A.value&&o.h("div",{class:"swiper-lazy-preloader"})])}};const oD={cardCodes:{type:Array,required:!0,default:[]}},AD=o.defineComponent({__name:"RevealCarousel",props:oD,setup(e){var A;const t=e,n=[eD],r=o.ref(null),a=o.ref((A=r.value)==null?void 0:A.clientWidth),s=o.computed(()=>a.value===void 0?!0:a.value<400);function i(){var l;a.value=(l=r.value)==null?void 0:l.clientWidth}return o.onMounted(()=>{window.addEventListener("resize",i),i()}),o.onUnmounted(()=>{window.removeEventListener("resize",i)}),(l,c)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"revealCarousel",ref:r,class:"reveal-carousel"},[o.createVNode(o.unref(I_),{"slides-per-view":"auto","space-between":15,"centered-slides":s.value,navigation:!0,modules:n},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.cardCodes,u=>(o.openBlock(),o.createBlock(o.unref(D_),{key:u},{default:o.withCtx(()=>[o.createVNode(o.unref(Bf),{class:"card-item-called","card-code-prop":u,"is-root":!0,"router-link":o.unref(_e)().callbacks.cardCodeRouterLinkCallback(u)},null,8,["card-code-prop","router-link"])]),_:2},1024))),128))]),_:1},8,["centered-slides"])],512))}});const tg=Q(AD,[["__scopeId","data-v-e6480629"]]),lD={fetchSeachResult:{type:Function,required:!0,default:()=>[]}};var Sn="top",Zn="bottom",er="right",xn="left",ng="auto",bl=[Sn,Zn,er,xn],oo="start",qA="end",cD="clippingParents",U_="viewport",Vo="popper",uD="reference",Wv=bl.reduce(function(e,t){return e.concat([t+"-"+oo,t+"-"+qA])},[]),O_=[].concat(bl,[ng]).reduce(function(e,t){return e.concat([t,t+"-"+oo,t+"-"+qA])},[]),dD="beforeRead",fD="read",pD="afterRead",hD="beforeMain",mD="main",gD="afterMain",vD="beforeWrite",yD="write",BD="afterWrite",wD=[dD,fD,pD,hD,mD,gD,vD,yD,BD];function Dr(e){return e?(e.nodeName||"").toLowerCase():null}function Qn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ai(e){var t=Qn(e).Element;return e instanceof t||e instanceof Element}function Xn(e){var t=Qn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function rg(e){if(typeof ShadowRoot>"u")return!1;var t=Qn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function bD(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},s=t.elements[n];!Xn(s)||!Dr(s)||(Object.assign(s.style,r),Object.keys(a).forEach(function(i){var A=a[i];A===!1?s.removeAttribute(i):s.setAttribute(i,A===!0?"":A)}))})}function _D(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],s=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),A=i.reduce(function(l,c){return l[c]="",l},{});!Xn(a)||!Dr(a)||(Object.assign(a.style,A),Object.keys(s).forEach(function(l){a.removeAttribute(l)}))})}}const L_={name:"applyStyles",enabled:!0,phase:"write",fn:bD,effect:_D,requires:["computeStyles"]};function Tr(e){return e.split("-")[0]}var Ws=Math.max,Tu=Math.min,Ao=Math.round;function mh(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Q_(){return!/^((?!chrome|android).)*safari/i.test(mh())}function lo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),a=1,s=1;t&&Xn(e)&&(a=e.offsetWidth>0&&Ao(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Ao(r.height)/e.offsetHeight||1);var i=ai(e)?Qn(e):window,A=i.visualViewport,l=!Q_()&&n,c=(r.left+(l&&A?A.offsetLeft:0))/a,u=(r.top+(l&&A?A.offsetTop:0))/s,d=r.width/a,f=r.height/s;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function ag(e){var t=lo(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function M_(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&rg(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ba(e){return Qn(e).getComputedStyle(e)}function CD(e){return["table","td","th"].indexOf(Dr(e))>=0}function ws(e){return((ai(e)?e.ownerDocument:e.document)||window.document).documentElement}function bd(e){return Dr(e)==="html"?e:e.assignedSlot||e.parentNode||(rg(e)?e.host:null)||ws(e)}function Gv(e){return!Xn(e)||ba(e).position==="fixed"?null:e.offsetParent}function kD(e){var t=/firefox/i.test(mh()),n=/Trident/i.test(mh());if(n&&Xn(e)){var r=ba(e);if(r.position==="fixed")return null}var a=bd(e);for(rg(a)&&(a=a.host);Xn(a)&&["html","body"].indexOf(Dr(a))<0;){var s=ba(a);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return a;a=a.parentNode}return null}function _l(e){for(var t=Qn(e),n=Gv(e);n&&CD(n)&&ba(n).position==="static";)n=Gv(n);return n&&(Dr(n)==="html"||Dr(n)==="body"&&ba(n).position==="static")?t:n||kD(e)||t}function sg(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function yA(e,t,n){return Ws(e,Tu(t,n))}function ED(e,t,n){var r=yA(e,t,n);return r>n?n:r}function N_(){return{top:0,right:0,bottom:0,left:0}}function P_(e){return Object.assign({},N_(),e)}function R_(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var SD=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,P_(typeof t!="number"?t:R_(t,bl))};function xD(e){var t,n=e.state,r=e.name,a=e.options,s=n.elements.arrow,i=n.modifiersData.popperOffsets,A=Tr(n.placement),l=sg(A),c=[xn,er].indexOf(A)>=0,u=c?"height":"width";if(!(!s||!i)){var d=SD(a.padding,n),f=ag(s),p=l==="y"?Sn:xn,h=l==="y"?Zn:er,m=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],y=i[l]-n.rects.reference[l],g=_l(s),w=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,B=m/2-y/2,v=d[p],_=w-f[u]-d[h],b=w/2-f[u]/2+B,k=yA(v,b,_),C=l;n.modifiersData[r]=(t={},t[C]=k,t.centerOffset=k-b,t)}}function FD(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||M_(t.elements.popper,a)&&(t.elements.arrow=a))}const TD={name:"arrow",enabled:!0,phase:"main",fn:xD,effect:FD,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function co(e){return e.split("-")[1]}var ID={top:"auto",right:"auto",bottom:"auto",left:"auto"};function DD(e,t){var n=e.x,r=e.y,a=t.devicePixelRatio||1;return{x:Ao(n*a)/a||0,y:Ao(r*a)/a||0}}function jv(e){var t,n=e.popper,r=e.popperRect,a=e.placement,s=e.variation,i=e.offsets,A=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=i.x,p=f===void 0?0:f,h=i.y,m=h===void 0?0:h,y=typeof u=="function"?u({x:p,y:m}):{x:p,y:m};p=y.x,m=y.y;var g=i.hasOwnProperty("x"),w=i.hasOwnProperty("y"),B=xn,v=Sn,_=window;if(c){var b=_l(n),k="clientHeight",C="clientWidth";if(b===Qn(n)&&(b=ws(n),ba(b).position!=="static"&&A==="absolute"&&(k="scrollHeight",C="scrollWidth")),b=b,a===Sn||(a===xn||a===er)&&s===qA){v=Zn;var E=d&&b===_&&_.visualViewport?_.visualViewport.height:b[k];m-=E-r.height,m*=l?1:-1}if(a===xn||(a===Sn||a===Zn)&&s===qA){B=er;var D=d&&b===_&&_.visualViewport?_.visualViewport.width:b[C];p-=D-r.width,p*=l?1:-1}}var T=Object.assign({position:A},c&&ID),F=u===!0?DD({x:p,y:m},Qn(n)):{x:p,y:m};if(p=F.x,m=F.y,l){var U;return Object.assign({},T,(U={},U[v]=w?"0":"",U[B]=g?"0":"",U.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",U))}return Object.assign({},T,(t={},t[v]=w?m+"px":"",t[B]=g?p+"px":"",t.transform="",t))}function UD(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,s=n.adaptive,i=s===void 0?!0:s,A=n.roundOffsets,l=A===void 0?!0:A,c={placement:Tr(t.placement),variation:co(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,jv(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,jv(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const OD={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:UD,data:{}};var ic={passive:!0};function LD(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,s=a===void 0?!0:a,i=r.resize,A=i===void 0?!0:i,l=Qn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(u){u.addEventListener("scroll",n.update,ic)}),A&&l.addEventListener("resize",n.update,ic),function(){s&&c.forEach(function(u){u.removeEventListener("scroll",n.update,ic)}),A&&l.removeEventListener("resize",n.update,ic)}}const QD={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:LD,data:{}};var MD={left:"right",right:"left",bottom:"top",top:"bottom"};function au(e){return e.replace(/left|right|bottom|top/g,function(t){return MD[t]})}var ND={start:"end",end:"start"};function Yv(e){return e.replace(/start|end/g,function(t){return ND[t]})}function ig(e){var t=Qn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function og(e){return lo(ws(e)).left+ig(e).scrollLeft}function PD(e,t){var n=Qn(e),r=ws(e),a=n.visualViewport,s=r.clientWidth,i=r.clientHeight,A=0,l=0;if(a){s=a.width,i=a.height;var c=Q_();(c||!c&&t==="fixed")&&(A=a.offsetLeft,l=a.offsetTop)}return{width:s,height:i,x:A+og(e),y:l}}function RD(e){var t,n=ws(e),r=ig(e),a=(t=e.ownerDocument)==null?void 0:t.body,s=Ws(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=Ws(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),A=-r.scrollLeft+og(e),l=-r.scrollTop;return ba(a||n).direction==="rtl"&&(A+=Ws(n.clientWidth,a?a.clientWidth:0)-s),{width:s,height:i,x:A,y:l}}function Ag(e){var t=ba(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function H_(e){return["html","body","#document"].indexOf(Dr(e))>=0?e.ownerDocument.body:Xn(e)&&Ag(e)?e:H_(bd(e))}function BA(e,t){var n;t===void 0&&(t=[]);var r=H_(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),s=Qn(r),i=a?[s].concat(s.visualViewport||[],Ag(r)?r:[]):r,A=t.concat(i);return a?A:A.concat(BA(bd(i)))}function gh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function HD(e,t){var n=lo(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function qv(e,t,n){return t===U_?gh(PD(e,n)):ai(t)?HD(t,n):gh(RD(ws(e)))}function VD(e){var t=BA(bd(e)),n=["absolute","fixed"].indexOf(ba(e).position)>=0,r=n&&Xn(e)?_l(e):e;return ai(r)?t.filter(function(a){return ai(a)&&M_(a,r)&&Dr(a)!=="body"}):[]}function $D(e,t,n,r){var a=t==="clippingParents"?VD(e):[].concat(t),s=[].concat(a,[n]),i=s[0],A=s.reduce(function(l,c){var u=qv(e,c,r);return l.top=Ws(u.top,l.top),l.right=Tu(u.right,l.right),l.bottom=Tu(u.bottom,l.bottom),l.left=Ws(u.left,l.left),l},qv(e,i,r));return A.width=A.right-A.left,A.height=A.bottom-A.top,A.x=A.left,A.y=A.top,A}function V_(e){var t=e.reference,n=e.element,r=e.placement,a=r?Tr(r):null,s=r?co(r):null,i=t.x+t.width/2-n.width/2,A=t.y+t.height/2-n.height/2,l;switch(a){case Sn:l={x:i,y:t.y-n.height};break;case Zn:l={x:i,y:t.y+t.height};break;case er:l={x:t.x+t.width,y:A};break;case xn:l={x:t.x-n.width,y:A};break;default:l={x:t.x,y:t.y}}var c=a?sg(a):null;if(c!=null){var u=c==="y"?"height":"width";switch(s){case oo:l[c]=l[c]-(t[u]/2-n[u]/2);break;case qA:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function XA(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,s=n.strategy,i=s===void 0?e.strategy:s,A=n.boundary,l=A===void 0?cD:A,c=n.rootBoundary,u=c===void 0?U_:c,d=n.elementContext,f=d===void 0?Vo:d,p=n.altBoundary,h=p===void 0?!1:p,m=n.padding,y=m===void 0?0:m,g=P_(typeof y!="number"?y:R_(y,bl)),w=f===Vo?uD:Vo,B=e.rects.popper,v=e.elements[h?w:f],_=$D(ai(v)?v:v.contextElement||ws(e.elements.popper),l,u,i),b=lo(e.elements.reference),k=V_({reference:b,element:B,strategy:"absolute",placement:a}),C=gh(Object.assign({},B,k)),E=f===Vo?C:b,D={top:_.top-E.top+g.top,bottom:E.bottom-_.bottom+g.bottom,left:_.left-E.left+g.left,right:E.right-_.right+g.right},T=e.modifiersData.offset;if(f===Vo&&T){var F=T[a];Object.keys(D).forEach(function(U){var W=[er,Zn].indexOf(U)>=0?1:-1,J=[Sn,Zn].indexOf(U)>=0?"y":"x";D[U]+=F[J]*W})}return D}function KD(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,s=n.rootBoundary,i=n.padding,A=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?O_:l,u=co(r),d=u?A?Wv:Wv.filter(function(h){return co(h)===u}):bl,f=d.filter(function(h){return c.indexOf(h)>=0});f.length===0&&(f=d);var p=f.reduce(function(h,m){return h[m]=XA(e,{placement:m,boundary:a,rootBoundary:s,padding:i})[Tr(m)],h},{});return Object.keys(p).sort(function(h,m){return p[h]-p[m]})}function zD(e){if(Tr(e)===ng)return[];var t=au(e);return[Yv(e),t,Yv(t)]}function WD(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,s=a===void 0?!0:a,i=n.altAxis,A=i===void 0?!0:i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=p===void 0?!0:p,m=n.allowedAutoPlacements,y=t.options.placement,g=Tr(y),w=g===y,B=l||(w||!h?[au(y)]:zD(y)),v=[y].concat(B).reduce(function(ie,Z){return ie.concat(Tr(Z)===ng?KD(t,{placement:Z,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):Z)},[]),_=t.rects.reference,b=t.rects.popper,k=new Map,C=!0,E=v[0],D=0;D<v.length;D++){var T=v[D],F=Tr(T),U=co(T)===oo,W=[Sn,Zn].indexOf(F)>=0,J=W?"width":"height",R=XA(t,{placement:T,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),$=W?U?er:xn:U?Zn:Sn;_[J]>b[J]&&($=au($));var de=au($),q=[];if(s&&q.push(R[F]<=0),A&&q.push(R[$]<=0,R[de]<=0),q.every(function(ie){return ie})){E=T,C=!1;break}k.set(T,q)}if(C)for(var Ae=h?3:1,oe=function(Z){var M=v.find(function(te){var Le=k.get(te);if(Le)return Le.slice(0,Z).every(function(nt){return nt})});if(M)return E=M,"break"},le=Ae;le>0;le--){var ge=oe(le);if(ge==="break")break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}}const GD={name:"flip",enabled:!0,phase:"main",fn:WD,requiresIfExists:["offset"],data:{_skip:!1}};function Xv(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Jv(e){return[Sn,er,Zn,xn].some(function(t){return e[t]>=0})}function jD(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,s=t.modifiersData.preventOverflow,i=XA(t,{elementContext:"reference"}),A=XA(t,{altBoundary:!0}),l=Xv(i,r),c=Xv(A,a,s),u=Jv(l),d=Jv(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const YD={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:jD};function qD(e,t,n){var r=Tr(e),a=[xn,Sn].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=s[0],A=s[1];return i=i||0,A=(A||0)*a,[xn,er].indexOf(r)>=0?{x:A,y:i}:{x:i,y:A}}function XD(e){var t=e.state,n=e.options,r=e.name,a=n.offset,s=a===void 0?[0,0]:a,i=O_.reduce(function(u,d){return u[d]=qD(d,t.rects,s),u},{}),A=i[t.placement],l=A.x,c=A.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}const JD={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:XD};function ZD(e){var t=e.state,n=e.name;t.modifiersData[n]=V_({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const eU={name:"popperOffsets",enabled:!0,phase:"read",fn:ZD,data:{}};function tU(e){return e==="x"?"y":"x"}function nU(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,s=a===void 0?!0:a,i=n.altAxis,A=i===void 0?!1:i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,h=n.tetherOffset,m=h===void 0?0:h,y=XA(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),g=Tr(t.placement),w=co(t.placement),B=!w,v=sg(g),_=tU(v),b=t.modifiersData.popperOffsets,k=t.rects.reference,C=t.rects.popper,E=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,D=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(b){if(s){var U,W=v==="y"?Sn:xn,J=v==="y"?Zn:er,R=v==="y"?"height":"width",$=b[v],de=$+y[W],q=$-y[J],Ae=p?-C[R]/2:0,oe=w===oo?k[R]:C[R],le=w===oo?-C[R]:-k[R],ge=t.elements.arrow,ie=p&&ge?ag(ge):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:N_(),M=Z[W],te=Z[J],Le=yA(0,k[R],ie[R]),nt=B?k[R]/2-Ae-Le-M-D.mainAxis:oe-Le-M-D.mainAxis,St=B?-k[R]/2+Ae+Le+te+D.mainAxis:le+Le+te+D.mainAxis,$t=t.elements.arrow&&_l(t.elements.arrow),Nt=$t?v==="y"?$t.clientTop||0:$t.clientLeft||0:0,Xt=(U=T==null?void 0:T[v])!=null?U:0,K=$+nt-Xt-Nt,ve=$+St-Xt,Jt=yA(p?Tu(de,K):de,$,p?Ws(q,ve):q);b[v]=Jt,F[v]=Jt-$}if(A){var Ct,Bt=v==="x"?Sn:xn,xt=v==="x"?Zn:er,S=b[_],x=_==="y"?"height":"width",N=S+y[Bt],ne=S-y[xt],Ie=[Sn,xn].indexOf(g)!==-1,ye=(Ct=T==null?void 0:T[_])!=null?Ct:0,xe=Ie?N:S-k[x]-C[x]-ye+D.altAxis,O=Ie?S+k[x]+C[x]-ye-D.altAxis:ne,P=p&&Ie?ED(xe,S,O):yA(p?xe:N,S,p?O:ne);b[_]=P,F[_]=P-S}t.modifiersData[r]=F}}const rU={name:"preventOverflow",enabled:!0,phase:"main",fn:nU,requiresIfExists:["offset"]};function aU(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function sU(e){return e===Qn(e)||!Xn(e)?ig(e):aU(e)}function iU(e){var t=e.getBoundingClientRect(),n=Ao(t.width)/e.offsetWidth||1,r=Ao(t.height)/e.offsetHeight||1;return n!==1||r!==1}function oU(e,t,n){n===void 0&&(n=!1);var r=Xn(t),a=Xn(t)&&iU(t),s=ws(t),i=lo(e,a,n),A={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Dr(t)!=="body"||Ag(s))&&(A=sU(t)),Xn(t)?(l=lo(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=og(s))),{x:i.left+A.scrollLeft-l.x,y:i.top+A.scrollTop-l.y,width:i.width,height:i.height}}function AU(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function a(s){n.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(A){if(!n.has(A)){var l=t.get(A);l&&a(l)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||a(s)}),r}function lU(e){var t=AU(e);return wD.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function cU(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function uU(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Zv={placement:"bottom",modifiers:[],strategy:"absolute"};function ey(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function dU(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,a=t.defaultOptions,s=a===void 0?Zv:a;return function(A,l,c){c===void 0&&(c=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Zv,s),modifiersData:{},elements:{reference:A,popper:l},attributes:{},styles:{}},d=[],f=!1,p={state:u,setOptions:function(g){var w=typeof g=="function"?g(u.options):g;m(),u.options=Object.assign({},s,u.options,w),u.scrollParents={reference:ai(A)?BA(A):A.contextElement?BA(A.contextElement):[],popper:BA(l)};var B=lU(uU([].concat(r,u.options.modifiers)));return u.orderedModifiers=B.filter(function(v){return v.enabled}),h(),p.update()},forceUpdate:function(){if(!f){var g=u.elements,w=g.reference,B=g.popper;if(ey(w,B)){u.rects={reference:oU(w,_l(B),u.options.strategy==="fixed"),popper:ag(B)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(D){return u.modifiersData[D.name]=Object.assign({},D.data)});for(var v=0;v<u.orderedModifiers.length;v++){if(u.reset===!0){u.reset=!1,v=-1;continue}var _=u.orderedModifiers[v],b=_.fn,k=_.options,C=k===void 0?{}:k,E=_.name;typeof b=="function"&&(u=b({state:u,options:C,name:E,instance:p})||u)}}}},update:cU(function(){return new Promise(function(y){p.forceUpdate(),y(u)})}),destroy:function(){m(),f=!0}};if(!ey(A,l))return p;p.setOptions(c).then(function(y){!f&&c.onFirstUpdate&&c.onFirstUpdate(y)});function h(){u.orderedModifiers.forEach(function(y){var g=y.name,w=y.options,B=w===void 0?{}:w,v=y.effect;if(typeof v=="function"){var _=v({state:u,name:g,instance:p,options:B}),b=function(){};d.push(_||b)}})}function m(){d.forEach(function(y){return y()}),d=[]}return p}}var fU=[QD,eU,OD,L_,JD,GD,rU,TD,YD],pU=dU({defaultModifiers:fU}),hU="tippy-box",$_="tippy-content",mU="tippy-backdrop",K_="tippy-arrow",z_="tippy-svg-arrow",Os={passive:!0,capture:!0},W_=function(){return document.body};function gU(e,t){return{}.hasOwnProperty.call(e,t)}function $f(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function lg(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function G_(e,t){return typeof e=="function"?e.apply(void 0,t):e}function ty(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function vU(e,t){var n=Object.assign({},e);return t.forEach(function(r){delete n[r]}),n}function yU(e){return e.split(/\s+/).filter(Boolean)}function Ni(e){return[].concat(e)}function ny(e,t){e.indexOf(t)===-1&&e.push(t)}function BU(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function wU(e){return e.split("-")[0]}function Iu(e){return[].slice.call(e)}function ry(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function wA(){return document.createElement("div")}function JA(e){return["Element","Fragment"].some(function(t){return lg(e,t)})}function bU(e){return lg(e,"NodeList")}function _U(e){return lg(e,"MouseEvent")}function CU(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function kU(e){return JA(e)?[e]:bU(e)?Iu(e):Array.isArray(e)?e:Iu(document.querySelectorAll(e))}function Kf(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function ay(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function EU(e){var t,n=Ni(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function SU(e,t){var n=t.clientX,r=t.clientY;return e.every(function(a){var s=a.popperRect,i=a.popperState,A=a.props,l=A.interactiveBorder,c=wU(i.placement),u=i.modifiersData.offset;if(!u)return!0;var d=c==="bottom"?u.top.y:0,f=c==="top"?u.bottom.y:0,p=c==="right"?u.left.x:0,h=c==="left"?u.right.x:0,m=s.top-r+d>l,y=r-s.bottom-f>l,g=s.left-n+p>l,w=n-s.right-h>l;return m||y||g||w})}function zf(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(a){e[r](a,n)})}function sy(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Cr={isTouch:!1},iy=0;function xU(){Cr.isTouch||(Cr.isTouch=!0,window.performance&&document.addEventListener("mousemove",j_))}function j_(){var e=performance.now();e-iy<20&&(Cr.isTouch=!1,document.removeEventListener("mousemove",j_)),iy=e}function FU(){var e=document.activeElement;if(CU(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function TU(){document.addEventListener("touchstart",xU,Os),window.addEventListener("blur",FU)}var IU=typeof window<"u"&&typeof document<"u",DU=IU?!!window.msCrypto:!1;function Si(e){var t=e==="destroy"?"n already-":" ";return[e+"() was called on a"+t+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function oy(e){var t=/[ \t]{2,}/g,n=/^[ \t]*/gm;return e.replace(t," ").replace(n,"").trim()}function UU(e){return oy(`
|
|
609
609
|
%ctippy.js
|
|
610
610
|
|
|
611
611
|
%c`+oy(e)+`
|
|
@@ -626,24 +626,24 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
|
|
626
626
|
|
|
627
627
|
`,`1) content: element.innerHTML
|
|
628
628
|
`,"2) content: () => element.cloneNode(true)"].join(" "))}var A=a.reduce(function(l,c){var u=c&&VU(c,r);return u&&l.push(u),l},[]);return JA(e)?A[0]:A}tt.defaultProps=On;tt.setDefaultProps=NU;tt.currentInput=Cr;Object.assign({},L_,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});tt.setDefaultProps({render:Z_});const eC={cardProp:{type:Object,required:!1,default:void 0},cardCodeProp:{type:String,required:!1,default:void 0},isRoot:{type:Boolean,required:!0},quantityNeeded:{type:Number,required:!1,default:void 0},deckList:{type:Object,required:!1,default(){return{}}},isDeckBuilder:{type:Boolean,required:!1,default:!1},showTippyLocation:{type:String,required:!1,default:null}},$U=["alt","src"],KU={key:0,class:"quantity-ticks-container"},zU={key:0},WU={key:0,class:"card-info-quantity-possessed"},GU={key:1,class:"line"},jU={class:"card-info-title"},YU={class:"card-info-text"},qU={key:2,class:"line"},XU={key:3,class:"card-info-text"},JU={key:1,class:"associated-card-container"},ZU=o.defineComponent({__name:"CardItem",props:eC,setup(e){const{t}=Y(),n=e,r=o.ref(null),a=o.ref(null);let s=null;const i=o.ref(!1),A=yl(n.cardProp,n.cardCodeProp),l=o.computed(()=>A.value===void 0||f.value===null?null:n.quantityNeeded!==void 0&&f.value<n.quantityNeeded?"bad":null),c=o.computed(()=>{if(A.value===void 0)return[];const g=[];if(n.isRoot)for(const w of A.value.associatedCardRefs)g.push(mn().cardJsonObject[w]);return g}),u=o.computed(()=>{if(A.value===void 0)return[];const g=[];for(const w of A.value.keywordRefs){const B=Be().dataJson.keywords.find(v=>v.nameRef===w);B&&g.push(B)}return g}),d=o.computed(()=>n.isRoot&&(f.value!==null||A.value&&(A.value.keywordRefs.length>0||A.value.associatedCardRefs.length>0))),f=o.computed(()=>{var w;const g=ld().acquiredCards;return g===void 0?null:g[((w=A.value)==null?void 0:w.cardCode)??0]??0}),p=o.computed(()=>A.value===void 0?null:n.isDeckBuilder&&n.deckList[A.value.cardCode]===3?"disabled":null);o.watch(()=>n.showTippyLocation,g=>{s&&(g?(s.setProps({placement:g}),s.show()):s.hide())});function h(){window.addEventListener("keyup",g=>{g.key=="Shift"&&(i.value=!1)})}function m(){window.addEventListener("keydown",g=>{g.key=="Shift"&&(i.value=!0)})}function y(g){return A.value===void 0?null:n.isDeckBuilder?!(A.value.cardCode in n.deckList)||g>n.deckList[A.value.cardCode]?"disabled":null:g>(f.value??0)?"disabled":null}return o.onMounted(()=>{(A.value===void 0||f.value!==null||A.value.keywordRefs.length>0||A.value.associatedCardRefs.length>0)&&(s=tt(r.value,{allowHTML:!0,content:a.value,placement:"right-start",duration:0,role:"card-info",maxWidth:"50vw",touch:!1})),(A.value===void 0||A.value.associatedCardRefs.length>0)&&(h(),m())}),(g,w)=>{var v,_,b;const B=o.resolveComponent("CardItem",!0);return o.openBlock(),o.createElementBlock("div",{class:"card-item-container",onMouseover:w[0]||(w[0]=k=>!0),onMouseleave:w[1]||(w[1]=k=>!1)},[o.createElementVNode("img",{ref_key:"cardItem",ref:r,alt:(v=o.unref(A))==null?void 0:v.name,class:o.normalizeClass(["card-item",p.value]),src:o.unref(_e)().callbacks.cardImageCallback(((_=o.unref(A))==null?void 0:_.cardCode)??"",o.unref(_t).Card)},null,10,$U),g.isDeckBuilder&&((b=o.unref(A))!=null&&b.collectible)?(o.openBlock(),o.createElementBlock("div",KU,[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(3,k=>o.createElementVNode("div",{key:k,class:o.normalizeClass(["quantity-tick",y(k)])},null,2)),64))])):o.createCommentVNode("",!0),o.createElementVNode("div",{ref_key:"cardInfo",ref:a,class:o.normalizeClass(i.value?null:"card-info")},[!i.value&&d.value&&o.unref(A)?(o.openBlock(),o.createElementBlock("div",zU,[f.value!==null?(o.openBlock(),o.createElementBlock("div",WU,[o.createTextVNode(o.toDisplayString(o.unref(t)("general.youHave"))+" ",1),o.createElementVNode("b",{class:o.normalizeClass(l.value)},o.toDisplayString(f.value+" / "+(g.quantityNeeded||3)),3)])):o.createCommentVNode("",!0),f.value!==null&&(o.unref(A).keywordRefs.length>0||o.unref(A).associatedCardRefs.length>0)?(o.openBlock(),o.createElementBlock("hr",GU)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(u.value,k=>(o.openBlock(),o.createElementBlock("div",{key:k.nameRef,class:"card-info-section"},[o.createElementVNode("h4",jU,o.toDisplayString(k.name),1),o.createElementVNode("p",YU,o.toDisplayString(k.description),1)]))),128)),o.unref(A).keywordRefs.length>0&&o.unref(A).associatedCardRefs.length>0?(o.openBlock(),o.createElementBlock("hr",qU)):o.createCommentVNode("",!0),o.unref(A).associatedCardRefs.length>0?(o.openBlock(),o.createElementBlock("div",XU,o.toDisplayString(o.unref(t)("general.holdShiftForAssociated")),1)):o.createCommentVNode("",!0)])):(o.openBlock(),o.createElementBlock("div",JU,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(c.value,k=>(o.openBlock(),o.createBlock(B,{key:k.cardCode,"card-code-prop":k.cardCode,"is-deck-builder":!1,"is-root":!1,class:"associated-card"},null,8,["card-code-prop"]))),128))]))],2)],32)}}});const si=Q(ZU,[["__scopeId","data-v-bdd119d0"]]),eO={cardProp:{type:Object,required:!1,default:void 0},cardCodeProp:{type:String,required:!1,default:void 0},ignoreCardItem:{type:Boolean,required:!1,default:void 0},color:{type:[String,null],required:!1,default:void 0},name:{type:String,required:!1,default:void 0},manaNumber:{type:[Number,null],required:!1,default:void 0},routerLink:{type:[Object,String],required:!1,default:"404"},quantityNumber:{type:Number,required:!1,default:void 0},maintainAspectRatio:{type:Boolean,required:!1,default:!0},showPlusMinus:{type:Boolean,required:!1,default:!1}},tO="data:image/svg+xml;base64,ICA8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDMxIDM2Ij4KICAgIDxkZWZzPgogICAgICA8bGluZWFyR3JhZGllbnQKICAgICAgICBpZD0iYSIKICAgICAgICB4MT0iLjA4IgogICAgICAgIHkxPSIuODIiCiAgICAgICAgeDI9IjEiCiAgICAgICAgeTI9Ii4xOSIKICAgICAgICBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIKICAgICAgPgogICAgICAgIDxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iIzA0NjZjOCIgLz4KICAgICAgICA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMwMDNhOWUiIC8+CiAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICA8L2RlZnM+CiAgICA8ZyB0cmFuc2Zvcm09InJvdGF0ZSg5MCAxNS41IDE1LjUpIiBmaWxsPSJ1cmwoI2EpIj4KICAgICAgPHBhdGgKICAgICAgICBkPSJNMjMuNTUgMzAuNWgtMTEuMWE1LjUyIDUuNTIgMCAwIDEtNC43NS0yLjc0bC01LjUyLTkuNWE1LjUxIDUuNTEgMCAwIDEgMC01LjUybDUuNTItOS41QTUuNTIgNS41MiAwIDAgMSAxMi40NS41aDExLjFhNS41MiA1LjUyIDAgMCAxIDQuNzUgMi43NGw1LjUyIDkuNWMuOTkgMS43Ljk5IDMuODIgMCA1LjUybC01LjUyIDkuNWE1LjUyIDUuNTIgMCAwIDEtNC43NSAyLjc0WiIKICAgICAgLz4KICAgICAgPHBhdGgKICAgICAgICBkPSJNMTIuNDUgMWMtMS43NyAwLTMuNDMuOTUtNC4zMiAyLjQ5bC01LjUyIDkuNWE1LjAxIDUuMDEgMCAwIDAgMCA1LjAybDUuNTIgOS41QTUuMDIgNS4wMiAwIDAgMCAxMi40NSAzMGgxMS4xYzEuNzcgMCAzLjQzLS45NSA0LjMyLTIuNDlsNS41Mi05LjVjLjktMS41NS45LTMuNDcgMC01LjAybC01LjUyLTkuNUE1LjAyIDUuMDIgMCAwIDAgMjMuNTUgMWgtMTEuMW0wLTFoMTEuMWE2IDYgMCAwIDEgNS4xOCAyLjk5bDUuNTIgOS41YTYgNiAwIDAgMSAwIDYuMDJsLTUuNTIgOS41QTYgNiAwIDAgMSAyMy41NSAzMWgtMTEuMWE2IDYgMCAwIDEtNS4xOC0yLjk5bC01LjUyLTkuNWE2IDYgMCAwIDEgMC02LjAybDUuNTItOS41QTYgNiAwIDAgMSAxMi40NSAwWiIKICAgICAgICBmaWxsPSIjZmZjNTNlIgogICAgICAvPgogICAgPC9nPgogIDwvc3ZnPg==",nO=["src"],Cl=o.defineComponent({__name:"ManaHexagonIcon",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("img",{src:o.unref(tO)},null,8,nO))}});function wh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function rO(e){if(Array.isArray(e))return wh(e)}function Zt(e,t,n){return(t=lO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aO(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sO(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
629
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ir(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uy(Object(n),!0).forEach(function(r){Zt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function iO(e,t){if(e==null)return{};var n,r,a=oO(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function oO(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function bh(e){return rO(e)||aO(e)||cO(e)||sO()}function AO(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lO(e){var t=AO(e,"string");return typeof t=="symbol"?t:t+""}function Du(e){"@babel/helpers - typeof";return Du=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Du(e)}function cO(e,t){if(e){if(typeof e=="string")return wh(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wh(e,t):void 0}}function bA(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Zt({},e,t):{}}function uO(e){var t,n=(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-flip":e.flip===!0,"fa-flip-horizontal":e.flip==="horizontal"||e.flip==="both","fa-flip-vertical":e.flip==="vertical"||e.flip==="both"},Zt(Zt(Zt(Zt(Zt(Zt(Zt(Zt(Zt(Zt(t,"fa-".concat(e.size),e.size!==null),"fa-rotate-".concat(e.rotation),e.rotation!==null),"fa-rotate-by",e.rotateBy),"fa-pull-".concat(e.pull),e.pull!==null),"fa-swap-opacity",e.swapOpacity),"fa-bounce",e.bounce),"fa-shake",e.shake),"fa-beat",e.beat),"fa-fade",e.fade),"fa-beat-fade",e.beatFade),Zt(Zt(Zt(Zt(t,"fa-flash",e.flash),"fa-spin-pulse",e.spinPulse),"fa-spin-reverse",e.spinReverse),"fa-width-auto",e.widthAuto));return Object.keys(n).map(function(r){return n[r]?r:null}).filter(function(r){return r})}var dO=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},tC={exports:{}};(function(e){(function(t){var n=function(g,w,B){if(!c(w)||d(w)||f(w)||p(w)||l(w))return w;var v,_=0,b=0;if(u(w))for(v=[],b=w.length;_<b;_++)v.push(n(g,w[_],B));else{v={};for(var k in w)Object.prototype.hasOwnProperty.call(w,k)&&(v[g(k,B)]=n(g,w[k],B))}return v},r=function(g,w){w=w||{};var B=w.separator||"_",v=w.split||/(?=[A-Z])/;return g.split(v).join(B)},a=function(g){return h(g)?g:(g=g.replace(/[\-_\s]+(.)?/g,function(w,B){return B?B.toUpperCase():""}),g.substr(0,1).toLowerCase()+g.substr(1))},s=function(g){var w=a(g);return w.substr(0,1).toUpperCase()+w.substr(1)},i=function(g,w){return r(g,w).toLowerCase()},A=Object.prototype.toString,l=function(g){return typeof g=="function"},c=function(g){return g===Object(g)},u=function(g){return A.call(g)=="[object Array]"},d=function(g){return A.call(g)=="[object Date]"},f=function(g){return A.call(g)=="[object RegExp]"},p=function(g){return A.call(g)=="[object Boolean]"},h=function(g){return g=g-0,g===g},m=function(g,w){var B=w&&"process"in w?w.process:w;return typeof B!="function"?g:function(v,_){return B(v,g,_)}},y={camelize:a,decamelize:i,pascalize:s,depascalize:i,camelizeKeys:function(g,w){return n(m(a,w),g)},decamelizeKeys:function(g,w){return n(m(i,w),g,w)},pascalizeKeys:function(g,w){return n(m(s,w),g)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=y:t.humps=y})(dO)})(tC);var fO=tC.exports,pO=["class","style"];function hO(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),a=fO.camelize(n.slice(0,r)),s=n.slice(r+1).trim();return t[a]=s,t},{})}function mO(e){return e.split(/\s+/).reduce(function(t,n){return t[n]=!0,t},{})}function cg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string")return e;var r=(e.children||[]).map(function(l){return cg(l)}),a=Object.keys(e.attributes||{}).reduce(function(l,c){var u=e.attributes[c];switch(c){case"class":l.class=mO(u);break;case"style":l.style=hO(u);break;default:l.attrs[c]=u}return l},{attrs:{},class:{},style:{}});n.class;var s=n.style,i=s===void 0?{}:s,A=iO(n,pO);return o.h(e.tag,ir(ir(ir({},t),{},{class:a.class,style:ir(ir({},a.style),i)},a.attrs),A),r)}var nC=!1;try{nC=process.env.NODE_ENV==="production"}catch{}function gO(){if(!nC&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function dy(e){if(e&&Du(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(xu.icon)return xu.icon(e);if(e===null)return null;if(Du(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}var Se=o.defineComponent({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(t){return[!0,!1,"horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},maskId:{type:String,default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(Number.parseInt(t,10))>-1}},rotateBy:{type:Boolean,default:!1},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},titleId:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1},widthAuto:{type:Boolean,default:!1}},setup:function(t,n){var r=n.attrs,a=o.computed(function(){return dy(t.icon)}),s=o.computed(function(){return bA("classes",uO(t))}),i=o.computed(function(){return bA("transform",typeof t.transform=="string"?xu.transform(t.transform):t.transform)}),A=o.computed(function(){return bA("mask",dy(t.mask))}),l=o.computed(function(){var u=ir(ir(ir(ir({},s.value),i.value),A.value),{},{symbol:t.symbol,maskId:t.maskId});return u.title=t.title,u.titleId=t.titleId,f6(a.value,u)});o.watch(l,function(u){if(!u)return gO("Could not find one or more icon(s)",a.value,A.value)},{immediate:!0});var c=o.computed(function(){return l.value?cg(l.value.abstract[0],{},r):null});return function(){return c.value}}});o.defineComponent({name:"FontAwesomeLayers",props:{fixedWidth:{type:Boolean,default:!1}},setup:function(t,n){var r=n.slots,a=v_.familyPrefix,s=o.computed(function(){return["".concat(a,"-layers")].concat(bh(t.fixedWidth?["".concat(a,"-fw")]:[]))});return function(){return o.h("div",{class:s.value},r.default?r.default():[])}}});o.defineComponent({name:"FontAwesomeLayersText",props:{value:{type:[String,Number],default:""},transform:{type:[String,Object],default:null},counter:{type:Boolean,default:!1},position:{type:String,default:null,validator:function(t){return["bottom-left","bottom-right","top-left","top-right"].indexOf(t)>-1}}},setup:function(t,n){var r=n.attrs,a=v_.familyPrefix,s=o.computed(function(){return bA("classes",[].concat(bh(t.counter?["".concat(a,"-layers-counter")]:[]),bh(t.position?["".concat(a,"-layers-").concat(t.position)]:[])))}),i=o.computed(function(){return bA("transform",typeof t.transform=="string"?xu.transform(t.transform):t.transform)}),A=o.computed(function(){var c=p6(t.value.toString(),ir(ir({},i.value),s.value)),u=c.abstract;return t.counter&&(u[0].attributes.class=u[0].attributes.class.replace("fa-layers-text","")),u[0]}),l=o.computed(function(){return cg(A.value,{},r)});return function(){return l.value}}});const vO={class:"card-slice"},yO={key:0,class:"mana-hexagon"},BO={class:"mana-number"},wO={class:"card-name"},bO={key:1,class:"quantity"},_O={class:"quantity-background"},CO={class:"plus-minus-content"},kO={class:"plus-minus-quantity"},EO=o.defineComponent({__name:"CardSliceItem",props:eO,emits:["update:card-quantity"],setup(e,{emit:t}){const n=e;console.log("props.color",n.color);const r=yl(n.cardProp,n.cardCodeProp,!1),a=t,s=o.ref(null),i=o.ref(null),A=o.ref(null),l=o.ref(null),c=o.computed(()=>{let p=n.color;return!p&&r.value&&(p=Ns(r.value,null,!0)),n.color===null&&(p="var(--color-background-2-rgb)"),{"--color":p}}),u=o.computed(()=>r.value?_e().callbacks.cardImageCallback(r.value.cardCode,_t.Slice):""),d=o.computed(()=>{const p=["card-slice-wrapper"];return n.maintainAspectRatio&&p.push("maintain-aspect-ratio"),p}),f=o.computed(()=>{const p=ld().acquiredCards;return r.value===void 0||n.quantityNumber===void 0||n.quantityNumber>3||p===void 0||n.showPlusMinus?null:(p[r.value.cardCode]??0)<n.quantityNumber?"missing-quantity":null});return o.onMounted(()=>{n.ignoreCardItem||tt(s.value,{content:A.value,placement:"right",arrow:!0,touch:!1,duration:0,role:"card-image",onShown:p=>{const h=p.popper.innerHTML.includes("right")?"right-start":"left-start";l.value=h},onHidden:()=>{l.value=null}})}),(p,h)=>{const m=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(m,{to:n.routerLink},{default:o.withCtx(()=>{var y,g;return[o.createElementVNode("div",{ref_key:"cardSlice",ref:s,class:o.normalizeClass(d.value)},[o.createElementVNode("div",vO,[o.createElementVNode("div",{class:"card-image",style:o.normalizeStyle({backgroundImage:`url(${u.value})`})},null,4),o.createElementVNode("div",{class:"region-gradient",style:o.normalizeStyle(c.value)},null,4),n.manaNumber!==null?(o.openBlock(),o.createElementBlock("div",yO,[o.createVNode(Cl,{class:"hexagon-icon"}),o.createElementVNode("div",BO,o.toDisplayString(n.manaNumber??((y=o.unref(r))==null?void 0:y.cost)),1)])):o.createCommentVNode("",!0),o.createElementVNode("div",wO,o.toDisplayString(n.name??((g=o.unref(r))==null?void 0:g.name)),1),n.quantityNumber!==void 0&&n.quantityNumber!==null?(o.openBlock(),o.createElementBlock("div",bO,[o.createElementVNode("div",_O,[o.createElementVNode("p",{class:o.normalizeClass(["num-quantity",f.value])},o.toDisplayString(n.quantityNumber),3)])])):o.createCommentVNode("",!0),n.showPlusMinus?(o.openBlock(),o.createElementBlock("div",{key:2,class:"plus-minus",onClick:h[2]||(h[2]=o.withModifiers(()=>{},["prevent"]))},[o.createElementVNode("div",CO,[o.createElementVNode("div",{class:"plus-minus-icon",onClick:h[0]||(h[0]=o.withModifiers(w=>{var B;return a("update:card-quantity",{cardCode:((B=o.unref(r))==null?void 0:B.cardCode)??"",quantity:-1})},["prevent"]))},[o.createVNode(o.unref(Se),{icon:"minus",class:"icon"})]),o.createElementVNode("div",{class:"plus-minus-icon",onClick:h[1]||(h[1]=o.withModifiers(w=>{var B;return a("update:card-quantity",{cardCode:((B=o.unref(r))==null?void 0:B.cardCode)??"",quantity:1})},["prevent"]))},[o.createVNode(o.unref(Se),{icon:"plus",class:"icon"})]),o.createElementVNode("div",kO,o.toDisplayString(n.quantityNumber),1)])])):o.createCommentVNode("",!0)])],2),o.createElementVNode("div",{ref_key:"cardItemWrapper",ref:A,class:"card-item-container"},[o.unref(r)&&!p.ignoreCardItem?(o.openBlock(),o.createBlock(si,{key:0,ref_key:"cardItem",ref:i,"is-root":!0,"card-prop":o.unref(r),"quantity-needed":n.quantityNumber,"show-tippy-location":l.value,class:"card-image-hover"},null,8,["card-prop","quantity-needed","show-tippy-location"])):o.createCommentVNode("",!0)],512)]}),_:1},8,["to"])}}});const bt=Q(EO,[["__scopeId","data-v-dc5cfc42"]]);function br(e){return e==null}function SO(e,t,n){const{object:r,valueProp:a,mode:s}=o.toRefs(e),i=o.getCurrentInstance().proxy,A=n.iv,l=(d,f=!0)=>{A.value=u(d);const p=c(d);t.emit("change",p,i),f&&(t.emit("input",p),t.emit("update:modelValue",p))},c=d=>r.value||br(d)?d:Array.isArray(d)?d.map(f=>f[a.value]):d[a.value],u=d=>br(d)?s.value==="single"?{}:[]:d;return{update:l}}function wt(e){return o.customRef(()=>({get:e,set:()=>{}}))}function xO(e,t){const{value:n,modelValue:r,mode:a,valueProp:s}=o.toRefs(e),i=o.ref(a.value!=="single"?[]:{}),A=wt(()=>r.value!==void 0?r.value:n.value),l=o.computed(()=>a.value==="single"?i.value[s.value]:i.value.map(u=>u[s.value])),c=wt(()=>a.value!=="single"?i.value.map(u=>u[s.value]).join(","):i.value[s.value]);return{iv:i,internalValue:i,ev:A,externalValue:A,textValue:c,plainValue:l}}function FO(e,t,n){const{regex:r}=o.toRefs(e),a=o.getCurrentInstance().proxy,s=n.isOpen,i=n.open,A=o.ref(null),l=()=>{A.value=""},c=f=>{A.value=f.target.value},u=f=>{if(r.value){let p=r.value;typeof p=="string"&&(p=new RegExp(p)),f.key.match(p)||f.preventDefault()}},d=f=>{if(r.value){let h=(f.clipboardData||window.clipboardData).getData("Text"),m=r.value;typeof m=="string"&&(m=new RegExp(m)),h.split("").every(y=>!!y.match(m))||f.preventDefault()}t.emit("paste",f,a)};return o.watch(A,f=>{!s.value&&f&&i(),t.emit("search-change",f,a)}),{search:A,clearSearch:l,handleSearchInput:c,handleKeypress:u,handlePaste:d}}function TO(e,t,n){const{groupSelect:r,mode:a,groups:s,disabledProp:i}=o.toRefs(e),A=o.ref(null),l=u=>{u===void 0||u!==null&&u[i.value]||s.value&&u&&u.group&&(a.value==="single"||!r.value)||(A.value=u)};return{pointer:A,setPointer:l,clearPointer:()=>{l(null)}}}function Gf(e,t=!0){return t?String(e).toLowerCase().trim():String(e).toLowerCase().normalize("NFD").trim().replace(/æ/g,"ae").replace(/œ/g,"oe").replace(/ø/g,"o").replace(/\p{Diacritic}/gu,"")}function IO(e){return Object.prototype.toString.call(e)==="[object Object]"}function DO(e,t){if(e.length!==t.length)return!1;const n=t.slice().sort();return e.slice().sort().every(function(r,a){return r===n[a]})}const rC=(e,t)=>{if(e===t)return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let a of n)if(!r.includes(a)||!rC(e[a],t[a]))return!1;return!0};function UO(e,t,n){const{options:r,mode:a,trackBy:s,limit:i,hideSelected:A,createTag:l,createOption:c,label:u,appendNewTag:d,appendNewOption:f,multipleLabel:p,object:h,loading:m,delay:y,resolveOnLoad:g,minChars:w,filterResults:B,clearOnSearch:v,clearOnSelect:_,valueProp:b,allowAbsent:k,groupLabel:C,canDeselect:E,max:D,strict:T,closeOnSelect:F,closeOnDeselect:U,groups:W,reverse:J,infinite:R,groupOptions:$,groupHideEmpty:de,groupSelect:q,onCreate:Ae,disabledProp:oe,searchStart:le,searchFilter:ge}=o.toRefs(e),ie=o.getCurrentInstance().proxy,Z=n.iv,M=n.ev,te=n.search,Le=n.clearSearch,nt=n.update,St=n.pointer,$t=n.setPointer,Nt=n.clearPointer,Xt=n.focus,K=n.deactivate,ve=n.close,Jt=n.localize,Ct=o.ref([]),Bt=o.ref([]),xt=o.ref(!1),S=o.ref(null),x=o.ref(R.value&&i.value===-1?10:i.value),N=o.computed({get:()=>Bt.value,set:I=>Bt.value=I}),ne=wt(()=>l.value||c.value||!1),Ie=wt(()=>d.value!==void 0?d.value:f.value!==void 0?f.value:!0),ye=o.computed(()=>{if(W.value){let I=P.value||[],z=[];return I.forEach(De=>{Cf(De[$.value]).forEach(Ft=>{z.push(Object.assign({},Ft,De[oe.value]?{[oe.value]:!0}:{}))})}),z}else{let I=Cf(Bt.value||[]);return Ct.value.length&&(I=I.concat(Ct.value)),I}}),xe=o.computed(()=>{let I=ye.value;return J.value&&(I=I.reverse()),re.value.length&&(I=re.value.concat(I)),_f(I)}),O=o.computed(()=>{let I=xe.value;return x.value>0&&(I=I.slice(0,x.value)),I}),P=o.computed(()=>{if(!W.value)return[];let I=[],z=Bt.value||[];return Ct.value.length&&I.push({[C.value]:" ",[$.value]:[...Ct.value],__CREATE__:!0}),I.concat(z)}),Qe=o.computed(()=>{let I=[...P.value].map(z=>({...z}));return re.value.length&&(I[0]&&I[0].__CREATE__?I[0][$.value]=[...re.value,...I[0][$.value]]:I=[{[C.value]:" ",[$.value]:[...re.value],__CREATE__:!0}].concat(I)),I}),Ze=o.computed(()=>{if(!W.value)return[];let I=Qe.value;return sS((I||[]).map((z,De)=>{const Ft=Cf(z[$.value]);return{...z,index:De,group:!0,[$.value]:_f(Ft,!1).map(Es=>Object.assign({},Es,z[oe.value]?{[oe.value]:!0}:{})),__VISIBLE__:_f(Ft).map(Es=>Object.assign({},Es,z[oe.value]?{[oe.value]:!0}:{}))}}))}),vn=o.computed(()=>{switch(a.value){case"single":return!br(Z.value[b.value]);case"multiple":case"tags":return!br(Z.value)&&Z.value.length>0}}),Oa=o.computed(()=>p.value!==void 0?p.value(Z.value,ie):Z.value&&Z.value.length>1?`${Z.value.length} options selected`:"1 option selected"),gr=wt(()=>!ye.value.length&&!xt.value&&!re.value.length),L=wt(()=>ye.value.length>0&&O.value.length==0&&(te.value&&W.value||!W.value)),re=o.computed(()=>ne.value===!1||!te.value?[]:nS(te.value)!==-1?[]:[{[b.value]:te.value,[ce.value[0]]:te.value,[u.value]:te.value,__CREATE__:!0}]),ce=o.computed(()=>s.value?Array.isArray(s.value)?s.value:[s.value]:[u.value]),ze=wt(()=>{switch(a.value){case"single":return null;case"multiple":case"tags":return[]}}),Me=wt(()=>m.value||xt.value),kt=I=>{switch(typeof I!="object"&&(I=jr(I)),a.value){case"single":nt(I);break;case"multiple":case"tags":nt(Z.value.concat(I));break}t.emit("select",Wr(I),I,ie)},Pt=I=>{switch(typeof I!="object"&&(I=jr(I)),a.value){case"single":ki();break;case"tags":case"multiple":nt(Array.isArray(I)?Z.value.filter(z=>I.map(De=>De[b.value]).indexOf(z[b.value])===-1):Z.value.filter(z=>z[b.value]!=I[b.value]));break}t.emit("deselect",Wr(I),I,ie)},Wr=I=>h.value?I:I[b.value],No=I=>{Pt(I)},Gr=(I,z)=>{if(z.button!==0){z.preventDefault();return}No(I)},ki=()=>{nt(ze.value),t.emit("clear",ie)},yn=I=>{if(I.group!==void 0)return a.value==="single"?!1:tS(I[$.value])&&I[$.value].length;switch(a.value){case"single":return!br(Z.value)&&(Z.value[b.value]==I[b.value]||typeof Z.value[b.value]=="object"&&typeof I[b.value]=="object"&&rC(Z.value[b.value],I[b.value]));case"tags":case"multiple":return!br(Z.value)&&Z.value.map(z=>z[b.value]).indexOf(I[b.value])!==-1}},vr=I=>I[oe.value]===!0,Po=()=>D===void 0||D.value===-1||!vn.value&&D.value>0?!1:Z.value.length>=D.value,Ro=I=>{if(!vr(I)){if(Ae.value&&!yn(I)&&I.__CREATE__&&(I={...I},delete I.__CREATE__,I=Ae.value(I,ie),I instanceof Promise)){xt.value=!0,I.then(z=>{xt.value=!1,ks(z)});return}ks(I)}},ks=I=>{switch(I.__CREATE__&&(I={...I},delete I.__CREATE__),a.value){case"single":if(I&&yn(I)){E.value&&Pt(I),U.value&&(Nt(),ve());return}I&&bf(I),_.value&&Le(),F.value&&(Nt(),ve()),I&&kt(I);break;case"multiple":if(I&&yn(I)){Pt(I),U.value&&(Nt(),ve());return}if(Po()){t.emit("max",ie);return}I&&(bf(I),kt(I)),_.value&&Le(),A.value&&Nt(),F.value&&ve();break;case"tags":if(I&&yn(I)){Pt(I),U.value&&(Nt(),ve());return}if(Po()){t.emit("max",ie);return}I&&bf(I),_.value&&Le(),I&&kt(I),A.value&&Nt(),F.value&&ve();break}F.value||Xt()},JE=I=>{if(!(vr(I)||a.value==="single"||!q.value)){switch(a.value){case"multiple":case"tags":eS(I[$.value])?Pt(I[$.value]):kt(I[$.value].filter(z=>Z.value.map(De=>De[b.value]).indexOf(z[b.value])===-1).filter(z=>!z[oe.value]).filter((z,De)=>Z.value.length+1+De<=D.value||D.value===-1)),A.value&&St.value&&$t(Ze.value.filter(z=>!z[oe.value])[St.value.index]);break}F.value&&K()}},bf=I=>{jr(I[b.value])===void 0&&ne.value&&(t.emit("tag",I[b.value],ie),t.emit("option",I[b.value],ie),t.emit("create",I[b.value],ie),Ie.value&&aS(I),Le())},ZE=()=>{a.value!=="single"&&kt(O.value.filter(I=>!I.disabled&&!yn(I)))},eS=I=>I.find(z=>!yn(z)&&!z[oe.value])===void 0,tS=I=>I.find(z=>!yn(z))===void 0,jr=I=>ye.value[ye.value.map(z=>String(z[b.value])).indexOf(String(I))],nS=I=>ye.value.findIndex(z=>ce.value.some(De=>(parseInt(z[De])==z[De]?parseInt(z[De]):z[De])===(parseInt(I)==I?parseInt(I):I))),rS=I=>["tags","multiple"].indexOf(a.value)!==-1&&A.value&&yn(I),aS=I=>{Ct.value.push(I)},sS=I=>de.value?I.filter(z=>te.value?z.__VISIBLE__.length:z[$.value].length):I.filter(z=>te.value?z.__VISIBLE__.length:!0),_f=(I,z=!0)=>{let De=I;if(te.value&&B.value){let Ft=ge.value;Ft||(Ft=(Es,_0,npe)=>ce.value.some(oS=>{let C0=Gf(Jt(Es[oS]),T.value);return le.value?C0.startsWith(Gf(_0,T.value)):C0.indexOf(Gf(_0,T.value))!==-1})),De=De.filter(Es=>Ft(Es,te.value,ie))}return A.value&&z&&(De=De.filter(Ft=>!rS(Ft))),De},Cf=I=>{let z=I;return IO(z)&&(z=Object.keys(z).map(De=>{let Ft=z[De];return{[b.value]:De,[ce.value[0]]:Ft,[u.value]:Ft}})),z&&Array.isArray(z)?z=z.map(De=>typeof De=="object"?De:{[b.value]:De,[ce.value[0]]:De,[u.value]:De}):z=[],z},Xl=()=>{br(M.value)||(Z.value=Zl(M.value))},Jl=I=>(xt.value=!0,new Promise((z,De)=>{r.value(te.value,ie).then(Ft=>{Bt.value=Ft||[],typeof I=="function"&&I(Ft),xt.value=!1}).catch(Ft=>{console.error(Ft),Bt.value=[],xt.value=!1}).finally(()=>{z()})})),kf=()=>{if(vn.value)if(a.value==="single"){let I=jr(Z.value[b.value]);if(I!==void 0){let z=I[u.value];Z.value[u.value]=z,h.value&&(M.value[u.value]=z)}}else Z.value.forEach((I,z)=>{let De=jr(Z.value[z][b.value]);if(De!==void 0){let Ft=De[u.value];Z.value[z][u.value]=Ft,h.value&&(M.value[z][u.value]=Ft)}})},iS=I=>{Jl(I)},Zl=I=>br(I)?a.value==="single"?{}:[]:h.value?I:a.value==="single"?jr(I)||(k.value?{[u.value]:I,[b.value]:I,[ce.value[0]]:I}:{}):I.filter(z=>!!jr(z)||k.value).map(z=>jr(z)||{[u.value]:z,[b.value]:z,[ce.value[0]]:z}),b0=()=>{S.value=o.watch(te,I=>{I.length<w.value||!I&&w.value!==0||(xt.value=!0,v.value&&(Bt.value=[]),setTimeout(()=>{I==te.value&&r.value(te.value,ie).then(z=>{(I==te.value||!te.value)&&(Bt.value=z,St.value=O.value.filter(De=>De[oe.value]!==!0)[0]||null,xt.value=!1)}).catch(z=>{console.error(z)})},y.value))},{flush:"sync"})};if(a.value!=="single"&&!br(M.value)&&!Array.isArray(M.value))throw new Error(`v-model must be an array when using "${a.value}" mode`);return r&&typeof r.value=="function"?g.value?Jl(Xl):h.value==!0&&Xl():(Bt.value=r.value,Xl()),y.value>-1&&b0(),o.watch(y,(I,z)=>{S.value&&S.value(),I>=0&&b0()}),o.watch(M,I=>{if(br(I)){nt(Zl(I),!1);return}switch(a.value){case"single":(h.value?I[b.value]!=Z.value[b.value]:I!=Z.value[b.value])&&nt(Zl(I),!1);break;case"multiple":case"tags":DO(h.value?I.map(z=>z[b.value]):I,Z.value.map(z=>z[b.value]))||nt(Zl(I),!1);break}},{deep:!0}),o.watch(r,(I,z)=>{typeof e.options=="function"?g.value&&(!z||I&&I.toString()!==z.toString())&&Jl():(Bt.value=e.options,Object.keys(Z.value).length||Xl(),kf())}),o.watch(u,kf),o.watch(i,(I,z)=>{x.value=R.value&&I===-1?10:I}),{resolvedOptions:N,pfo:xe,fo:O,filteredOptions:O,hasSelected:vn,multipleLabelText:Oa,eo:ye,extendedOptions:ye,eg:P,extendedGroups:P,fg:Ze,filteredGroups:Ze,noOptions:gr,noResults:L,resolving:xt,busy:Me,offset:x,select:kt,deselect:Pt,remove:No,selectAll:ZE,clear:ki,isSelected:yn,isDisabled:vr,isMax:Po,getOption:jr,handleOptionClick:Ro,handleGroupClick:JE,handleTagRemove:Gr,refreshOptions:iS,resolveOptions:Jl,refreshLabels:kf}}function OO(e,t,n){const{valueProp:r,showOptions:a,searchable:s,groupLabel:i,groups:A,mode:l,groupSelect:c,disabledProp:u,groupOptions:d}=o.toRefs(e),f=n.fo,p=n.fg,h=n.handleOptionClick,m=n.handleGroupClick,y=n.search,g=n.pointer,w=n.setPointer,B=n.clearPointer,v=n.multiselect,_=n.isOpen,b=o.computed(()=>f.value.filter(M=>!M[u.value])),k=o.computed(()=>p.value.filter(M=>!M[u.value])),C=wt(()=>l.value!=="single"&&c.value),E=wt(()=>g.value&&g.value.group),D=o.computed(()=>ie(g.value)),T=o.computed(()=>{const M=E.value?g.value:ie(g.value),te=k.value.map(nt=>nt[i.value]).indexOf(M[i.value]);let Le=k.value[te-1];return Le===void 0&&(Le=U.value),Le}),F=o.computed(()=>{let M=k.value.map(te=>te.label).indexOf(E.value?g.value[i.value]:ie(g.value)[i.value])+1;return k.value.length<=M&&(M=0),k.value[M]}),U=o.computed(()=>[...k.value].slice(-1)[0]),W=o.computed(()=>g.value.__VISIBLE__.filter(M=>!M[u.value])[0]),J=o.computed(()=>{const M=D.value.__VISIBLE__.filter(te=>!te[u.value]);return M[M.map(te=>te[r.value]).indexOf(g.value[r.value])-1]}),R=o.computed(()=>{const M=ie(g.value).__VISIBLE__.filter(te=>!te[u.value]);return M[M.map(te=>te[r.value]).indexOf(g.value[r.value])+1]}),$=o.computed(()=>[...T.value.__VISIBLE__.filter(M=>!M[u.value])].slice(-1)[0]),de=o.computed(()=>[...U.value.__VISIBLE__.filter(M=>!M[u.value])].slice(-1)[0]),q=M=>g.value&&(!M.group&&g.value[r.value]===M[r.value]||M.group!==void 0&&g.value[i.value]===M[i.value])?!0:void 0,Ae=()=>{w(b.value[0]||null)},oe=()=>{!g.value||g.value[u.value]===!0||(E.value?m(g.value):h(g.value))},le=()=>{if(g.value===null)w((A.value&&C.value?k.value[0].__CREATE__?b.value[0]:k.value[0]:b.value[0])||null);else if(A.value&&C.value){let M=E.value?W.value:R.value;M===void 0&&(M=F.value,M.__CREATE__&&(M=M[d.value][0])),w(M||null)}else{let M=b.value.map(te=>te[r.value]).indexOf(g.value[r.value])+1;b.value.length<=M&&(M=0),w(b.value[M]||null)}o.nextTick(()=>{Z()})},ge=()=>{if(g.value===null){let M=b.value[b.value.length-1];A.value&&C.value&&(M=de.value,M===void 0&&(M=U.value)),w(M||null)}else if(A.value&&C.value){let M=E.value?$.value:J.value;M===void 0&&(M=E.value?T.value:D.value,M.__CREATE__&&(M=$.value,M===void 0&&(M=T.value))),w(M||null)}else{let M=b.value.map(te=>te[r.value]).indexOf(g.value[r.value])-1;M<0&&(M=b.value.length-1),w(b.value[M]||null)}o.nextTick(()=>{Z()})},ie=M=>k.value.find(te=>te.__VISIBLE__.map(Le=>Le[r.value]).indexOf(M[r.value])!==-1),Z=()=>{let M=v.value.querySelector("[data-pointed]");if(!M)return;let te=M.parentElement.parentElement;A.value&&(te=E.value?M.parentElement.parentElement.parentElement:M.parentElement.parentElement.parentElement.parentElement),M.offsetTop+M.offsetHeight>te.clientHeight+te.scrollTop&&(te.scrollTop=M.offsetTop+M.offsetHeight-te.clientHeight),M.offsetTop<te.scrollTop&&(te.scrollTop=M.offsetTop)};return o.watch(y,M=>{s.value&&(M.length&&a.value?Ae():B())}),o.watch(_,M=>{if(M&&v&&v.value){let te=v.value.querySelectorAll("[data-selected]")[0];if(!te)return;let Le=te.parentElement.parentElement;o.nextTick(()=>{Le.scrollTop=te.offsetTop})}}),{pointer:g,canPointGroups:C,isPointed:q,setPointerFirst:Ae,selectPointer:oe,forwardPointer:le,backwardPointer:ge}}function Mn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ii(e){var t=Mn(e).Element;return e instanceof t||e instanceof Element}function Jn(e){var t=Mn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ug(e){if(typeof ShadowRoot>"u")return!1;var t=Mn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Gs=Math.max,Uu=Math.min,uo=Math.round;function _h(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function aC(){return!/^((?!chrome|android).)*safari/i.test(_h())}function fo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),a=1,s=1;t&&Jn(e)&&(a=e.offsetWidth>0&&uo(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&uo(r.height)/e.offsetHeight||1);var i=ii(e)?Mn(e):window,A=i.visualViewport,l=!aC()&&n,c=(r.left+(l&&A?A.offsetLeft:0))/a,u=(r.top+(l&&A?A.offsetTop:0))/s,d=r.width/a,f=r.height/s;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function dg(e){var t=Mn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function LO(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function QO(e){return e===Mn(e)||!Jn(e)?dg(e):LO(e)}function Ur(e){return e?(e.nodeName||"").toLowerCase():null}function bs(e){return((ii(e)?e.ownerDocument:e.document)||window.document).documentElement}function fg(e){return fo(bs(e)).left+dg(e).scrollLeft}function _a(e){return Mn(e).getComputedStyle(e)}function pg(e){var t=_a(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function MO(e){var t=e.getBoundingClientRect(),n=uo(t.width)/e.offsetWidth||1,r=uo(t.height)/e.offsetHeight||1;return n!==1||r!==1}function NO(e,t,n){n===void 0&&(n=!1);var r=Jn(t),a=Jn(t)&&MO(t),s=bs(t),i=fo(e,a,n),A={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ur(t)!=="body"||pg(s))&&(A=QO(t)),Jn(t)?(l=fo(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=fg(s))),{x:i.left+A.scrollLeft-l.x,y:i.top+A.scrollTop-l.y,width:i.width,height:i.height}}function sC(e){var t=fo(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function _d(e){return Ur(e)==="html"?e:e.assignedSlot||e.parentNode||(ug(e)?e.host:null)||bs(e)}function iC(e){return["html","body","#document"].indexOf(Ur(e))>=0?e.ownerDocument.body:Jn(e)&&pg(e)?e:iC(_d(e))}function _A(e,t){var n;t===void 0&&(t=[]);var r=iC(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),s=Mn(r),i=a?[s].concat(s.visualViewport||[],pg(r)?r:[]):r,A=t.concat(i);return a?A:A.concat(_A(_d(i)))}function PO(e){return["table","td","th"].indexOf(Ur(e))>=0}function fy(e){return!Jn(e)||_a(e).position==="fixed"?null:e.offsetParent}function RO(e){var t=/firefox/i.test(_h()),n=/Trident/i.test(_h());if(n&&Jn(e)){var r=_a(e);if(r.position==="fixed")return null}var a=_d(e);for(ug(a)&&(a=a.host);Jn(a)&&["html","body"].indexOf(Ur(a))<0;){var s=_a(a);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return a;a=a.parentNode}return null}function Cd(e){for(var t=Mn(e),n=fy(e);n&&PO(n)&&_a(n).position==="static";)n=fy(n);return n&&(Ur(n)==="html"||Ur(n)==="body"&&_a(n).position==="static")?t:n||RO(e)||t}var cr="top",Or="bottom",ds="right",pa="left",hg="auto",kd=[cr,Or,ds,pa],po="start",el="end",HO="clippingParents",oC="viewport",$o="popper",VO="reference",py=kd.reduce(function(e,t){return e.concat([t+"-"+po,t+"-"+el])},[]),$O=[].concat(kd,[hg]).reduce(function(e,t){return e.concat([t,t+"-"+po,t+"-"+el])},[]),KO="beforeRead",zO="read",WO="afterRead",GO="beforeMain",jO="main",YO="afterMain",qO="beforeWrite",XO="write",JO="afterWrite",ZO=[KO,zO,WO,GO,jO,YO,qO,XO,JO];function eL(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function a(s){n.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(A){if(!n.has(A)){var l=t.get(A);l&&a(l)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||a(s)}),r}function tL(e){var t=eL(e);return ZO.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function nL(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function rL(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}function aL(e,t){var n=Mn(e),r=bs(e),a=n.visualViewport,s=r.clientWidth,i=r.clientHeight,A=0,l=0;if(a){s=a.width,i=a.height;var c=aC();(c||!c&&t==="fixed")&&(A=a.offsetLeft,l=a.offsetTop)}return{width:s,height:i,x:A+fg(e),y:l}}function sL(e){var t,n=bs(e),r=dg(e),a=(t=e.ownerDocument)==null?void 0:t.body,s=Gs(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=Gs(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),A=-r.scrollLeft+fg(e),l=-r.scrollTop;return _a(a||n).direction==="rtl"&&(A+=Gs(n.clientWidth,a?a.clientWidth:0)-s),{width:s,height:i,x:A,y:l}}function iL(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ug(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ch(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function oL(e,t){var n=fo(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function hy(e,t,n){return t===oC?Ch(aL(e,n)):ii(t)?oL(t,n):Ch(sL(bs(e)))}function AL(e){var t=_A(_d(e)),n=["absolute","fixed"].indexOf(_a(e).position)>=0,r=n&&Jn(e)?Cd(e):e;return ii(r)?t.filter(function(a){return ii(a)&&iL(a,r)&&Ur(a)!=="body"}):[]}function lL(e,t,n,r){var a=t==="clippingParents"?AL(e):[].concat(t),s=[].concat(a,[n]),i=s[0],A=s.reduce(function(l,c){var u=hy(e,c,r);return l.top=Gs(u.top,l.top),l.right=Uu(u.right,l.right),l.bottom=Uu(u.bottom,l.bottom),l.left=Gs(u.left,l.left),l},hy(e,i,r));return A.width=A.right-A.left,A.height=A.bottom-A.top,A.x=A.left,A.y=A.top,A}function es(e){return e.split("-")[0]}function ho(e){return e.split("-")[1]}function AC(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function lC(e){var t=e.reference,n=e.element,r=e.placement,a=r?es(r):null,s=r?ho(r):null,i=t.x+t.width/2-n.width/2,A=t.y+t.height/2-n.height/2,l;switch(a){case cr:l={x:i,y:t.y-n.height};break;case Or:l={x:i,y:t.y+t.height};break;case ds:l={x:t.x+t.width,y:A};break;case pa:l={x:t.x-n.width,y:A};break;default:l={x:t.x,y:t.y}}var c=a?AC(a):null;if(c!=null){var u=c==="y"?"height":"width";switch(s){case po:l[c]=l[c]-(t[u]/2-n[u]/2);break;case el:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function cC(){return{top:0,right:0,bottom:0,left:0}}function cL(e){return Object.assign({},cC(),e)}function uL(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}function mg(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,s=n.strategy,i=s===void 0?e.strategy:s,A=n.boundary,l=A===void 0?HO:A,c=n.rootBoundary,u=c===void 0?oC:c,d=n.elementContext,f=d===void 0?$o:d,p=n.altBoundary,h=p===void 0?!1:p,m=n.padding,y=m===void 0?0:m,g=cL(typeof y!="number"?y:uL(y,kd)),w=f===$o?VO:$o,B=e.rects.popper,v=e.elements[h?w:f],_=lL(ii(v)?v:v.contextElement||bs(e.elements.popper),l,u,i),b=fo(e.elements.reference),k=lC({reference:b,element:B,strategy:"absolute",placement:a}),C=Ch(Object.assign({},B,k)),E=f===$o?C:b,D={top:_.top-E.top+g.top,bottom:E.bottom-_.bottom+g.bottom,left:_.left-E.left+g.left,right:E.right-_.right+g.right},T=e.modifiersData.offset;if(f===$o&&T){var F=T[a];Object.keys(D).forEach(function(U){var W=[ds,Or].indexOf(U)>=0?1:-1,J=[cr,Or].indexOf(U)>=0?"y":"x";D[U]+=F[J]*W})}return D}var my={placement:"bottom",modifiers:[],strategy:"absolute"};function gy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function dL(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,a=t.defaultOptions,s=a===void 0?my:a;return function(A,l,c){c===void 0&&(c=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},my,s),modifiersData:{},elements:{reference:A,popper:l},attributes:{},styles:{}},d=[],f=!1,p={state:u,setOptions:function(g){var w=typeof g=="function"?g(u.options):g;m(),u.options=Object.assign({},s,u.options,w),u.scrollParents={reference:ii(A)?_A(A):A.contextElement?_A(A.contextElement):[],popper:_A(l)};var B=tL(rL([].concat(r,u.options.modifiers)));return u.orderedModifiers=B.filter(function(v){return v.enabled}),h(),p.update()},forceUpdate:function(){if(!f){var g=u.elements,w=g.reference,B=g.popper;if(gy(w,B)){u.rects={reference:NO(w,Cd(B),u.options.strategy==="fixed"),popper:sC(B)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(D){return u.modifiersData[D.name]=Object.assign({},D.data)});for(var v=0;v<u.orderedModifiers.length;v++){if(u.reset===!0){u.reset=!1,v=-1;continue}var _=u.orderedModifiers[v],b=_.fn,k=_.options,C=k===void 0?{}:k,E=_.name;typeof b=="function"&&(u=b({state:u,options:C,name:E,instance:p})||u)}}}},update:nL(function(){return new Promise(function(y){p.forceUpdate(),y(u)})}),destroy:function(){m(),f=!0}};if(!gy(A,l))return p;p.setOptions(c).then(function(y){!f&&c.onFirstUpdate&&c.onFirstUpdate(y)});function h(){u.orderedModifiers.forEach(function(y){var g=y.name,w=y.options,B=w===void 0?{}:w,v=y.effect;if(typeof v=="function"){var _=v({state:u,name:g,instance:p,options:B}),b=function(){};d.push(_||b)}})}function m(){d.forEach(function(y){return y()}),d=[]}return p}}var Ac={passive:!0};function fL(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,s=a===void 0?!0:a,i=r.resize,A=i===void 0?!0:i,l=Mn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(u){u.addEventListener("scroll",n.update,Ac)}),A&&l.addEventListener("resize",n.update,Ac),function(){s&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Ac)}),A&&l.removeEventListener("resize",n.update,Ac)}}var pL={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:fL,data:{}};function hL(e){var t=e.state,n=e.name;t.modifiersData[n]=lC({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var mL={name:"popperOffsets",enabled:!0,phase:"read",fn:hL,data:{}},gL={top:"auto",right:"auto",bottom:"auto",left:"auto"};function vL(e,t){var n=e.x,r=e.y,a=t.devicePixelRatio||1;return{x:uo(n*a)/a||0,y:uo(r*a)/a||0}}function vy(e){var t,n=e.popper,r=e.popperRect,a=e.placement,s=e.variation,i=e.offsets,A=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=i.x,p=f===void 0?0:f,h=i.y,m=h===void 0?0:h,y=typeof u=="function"?u({x:p,y:m}):{x:p,y:m};p=y.x,m=y.y;var g=i.hasOwnProperty("x"),w=i.hasOwnProperty("y"),B=pa,v=cr,_=window;if(c){var b=Cd(n),k="clientHeight",C="clientWidth";if(b===Mn(n)&&(b=bs(n),_a(b).position!=="static"&&A==="absolute"&&(k="scrollHeight",C="scrollWidth")),b=b,a===cr||(a===pa||a===ds)&&s===el){v=Or;var E=d&&b===_&&_.visualViewport?_.visualViewport.height:b[k];m-=E-r.height,m*=l?1:-1}if(a===pa||(a===cr||a===Or)&&s===el){B=ds;var D=d&&b===_&&_.visualViewport?_.visualViewport.width:b[C];p-=D-r.width,p*=l?1:-1}}var T=Object.assign({position:A},c&&gL),F=u===!0?vL({x:p,y:m},Mn(n)):{x:p,y:m};if(p=F.x,m=F.y,l){var U;return Object.assign({},T,(U={},U[v]=w?"0":"",U[B]=g?"0":"",U.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",U))}return Object.assign({},T,(t={},t[v]=w?m+"px":"",t[B]=g?p+"px":"",t.transform="",t))}function yL(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,s=n.adaptive,i=s===void 0?!0:s,A=n.roundOffsets,l=A===void 0?!0:A,c={placement:es(t.placement),variation:ho(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,vy(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,vy(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var BL={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:yL,data:{}};function wL(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},s=t.elements[n];!Jn(s)||!Ur(s)||(Object.assign(s.style,r),Object.keys(a).forEach(function(i){var A=a[i];A===!1?s.removeAttribute(i):s.setAttribute(i,A===!0?"":A)}))})}function bL(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],s=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),A=i.reduce(function(l,c){return l[c]="",l},{});!Jn(a)||!Ur(a)||(Object.assign(a.style,A),Object.keys(s).forEach(function(l){a.removeAttribute(l)}))})}}var _L={name:"applyStyles",enabled:!0,phase:"write",fn:wL,effect:bL,requires:["computeStyles"]},CL=[pL,mL,BL,_L],kL=dL({defaultModifiers:CL});function EL(e){return e==="x"?"y":"x"}function su(e,t,n){return Gs(e,Uu(t,n))}function SL(e,t,n){var r=su(e,t,n);return r>n?n:r}function xL(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,s=a===void 0?!0:a,i=n.altAxis,A=i===void 0?!1:i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,h=n.tetherOffset,m=h===void 0?0:h,y=mg(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),g=es(t.placement),w=ho(t.placement),B=!w,v=AC(g),_=EL(v),b=t.modifiersData.popperOffsets,k=t.rects.reference,C=t.rects.popper,E=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,D=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(b){if(s){var U,W=v==="y"?cr:pa,J=v==="y"?Or:ds,R=v==="y"?"height":"width",$=b[v],de=$+y[W],q=$-y[J],Ae=p?-C[R]/2:0,oe=w===po?k[R]:C[R],le=w===po?-C[R]:-k[R],ge=t.elements.arrow,ie=p&&ge?sC(ge):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:cC(),M=Z[W],te=Z[J],Le=su(0,k[R],ie[R]),nt=B?k[R]/2-Ae-Le-M-D.mainAxis:oe-Le-M-D.mainAxis,St=B?-k[R]/2+Ae+Le+te+D.mainAxis:le+Le+te+D.mainAxis,$t=t.elements.arrow&&Cd(t.elements.arrow),Nt=$t?v==="y"?$t.clientTop||0:$t.clientLeft||0:0,Xt=(U=T==null?void 0:T[v])!=null?U:0,K=$+nt-Xt-Nt,ve=$+St-Xt,Jt=su(p?Uu(de,K):de,$,p?Gs(q,ve):q);b[v]=Jt,F[v]=Jt-$}if(A){var Ct,Bt=v==="x"?cr:pa,xt=v==="x"?Or:ds,S=b[_],x=_==="y"?"height":"width",N=S+y[Bt],ne=S-y[xt],Ie=[cr,pa].indexOf(g)!==-1,ye=(Ct=T==null?void 0:T[_])!=null?Ct:0,xe=Ie?N:S-k[x]-C[x]-ye+D.altAxis,O=Ie?S+k[x]+C[x]-ye-D.altAxis:ne,P=p&&Ie?SL(xe,S,O):su(p?xe:N,S,p?O:ne);b[_]=P,F[_]=P-S}t.modifiersData[r]=F}}var FL={name:"preventOverflow",enabled:!0,phase:"main",fn:xL,requiresIfExists:["offset"]},TL={left:"right",right:"left",bottom:"top",top:"bottom"};function iu(e){return e.replace(/left|right|bottom|top/g,function(t){return TL[t]})}var IL={start:"end",end:"start"};function yy(e){return e.replace(/start|end/g,function(t){return IL[t]})}function DL(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,s=n.rootBoundary,i=n.padding,A=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?$O:l,u=ho(r),d=u?A?py:py.filter(function(h){return ho(h)===u}):kd,f=d.filter(function(h){return c.indexOf(h)>=0});f.length===0&&(f=d);var p=f.reduce(function(h,m){return h[m]=mg(e,{placement:m,boundary:a,rootBoundary:s,padding:i})[es(m)],h},{});return Object.keys(p).sort(function(h,m){return p[h]-p[m]})}function UL(e){if(es(e)===hg)return[];var t=iu(e);return[yy(e),t,yy(t)]}function OL(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,s=a===void 0?!0:a,i=n.altAxis,A=i===void 0?!0:i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=p===void 0?!0:p,m=n.allowedAutoPlacements,y=t.options.placement,g=es(y),w=g===y,B=l||(w||!h?[iu(y)]:UL(y)),v=[y].concat(B).reduce(function(ie,Z){return ie.concat(es(Z)===hg?DL(t,{placement:Z,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):Z)},[]),_=t.rects.reference,b=t.rects.popper,k=new Map,C=!0,E=v[0],D=0;D<v.length;D++){var T=v[D],F=es(T),U=ho(T)===po,W=[cr,Or].indexOf(F)>=0,J=W?"width":"height",R=mg(t,{placement:T,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),$=W?U?ds:pa:U?Or:cr;_[J]>b[J]&&($=iu($));var de=iu($),q=[];if(s&&q.push(R[F]<=0),A&&q.push(R[$]<=0,R[de]<=0),q.every(function(ie){return ie})){E=T,C=!1;break}k.set(T,q)}if(C)for(var Ae=h?3:1,oe=function(Z){var M=v.find(function(te){var Le=k.get(te);if(Le)return Le.slice(0,Z).every(function(nt){return nt})});if(M)return E=M,"break"},le=Ae;le>0;le--){var ge=oe(le);if(ge==="break")break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}}var LL={name:"flip",enabled:!0,phase:"main",fn:OL,requiresIfExists:["offset"],data:{_skip:!1}};function QL(e,t,n){const{disabled:r,appendTo:a,appendToBody:s,openDirection:i}=o.toRefs(e),A=o.getCurrentInstance().proxy,l=n.multiselect,c=n.dropdown,u=o.ref(!1),d=o.ref(null),f=o.ref(null),p=wt(()=>a.value||s.value),h=wt(()=>i.value==="top"&&f.value==="bottom"||i.value==="bottom"&&f.value!=="top"?"bottom":"top"),m=()=>{u.value||r.value||(u.value=!0,t.emit("open",A),p.value&&o.nextTick(()=>{g()}))},y=()=>{u.value&&(u.value=!1,t.emit("close",A))},g=()=>{if(!d.value)return;let B=parseInt(window.getComputedStyle(c.value).borderTopWidth.replace("px","")),v=parseInt(window.getComputedStyle(c.value).borderBottomWidth.replace("px",""));d.value.setOptions(_=>({..._,modifiers:[..._.modifiers,{name:"offset",options:{offset:[0,(h.value==="top"?B:v)*-1]}}]})),d.value.update()},w=B=>{for(;B&&B!==document.body;){if(getComputedStyle(B).position==="fixed")return!0;B=B.parentElement}return!1};return o.onMounted(()=>{p.value&&(d.value=kL(l.value,c.value,{strategy:w(l.value)?"fixed":void 0,placement:i.value,modifiers:[FL,LL,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:B})=>{B.styles.popper.width=`${B.rects.reference.width}px`},effect:({state:B})=>{B.elements.popper.style.width=`${B.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:B}){f.value=B.placement}}]}))}),o.onBeforeUnmount(()=>{!p.value||!d.value||(d.value.destroy(),d.value=null)}),{popper:d,isOpen:u,open:m,close:y,placement:h,updatePopper:g}}function ML(e,t,n){const{searchable:r,disabled:a,clearOnBlur:s}=o.toRefs(e),i=n.input,A=n.open,l=n.close,c=n.clearSearch,u=n.isOpen,d=n.wrapper,f=n.tags,p=o.ref(!1),h=o.ref(!1),m=wt(()=>r.value||a.value?-1:0),y=()=>{r.value&&i.value.blur(),d.value.blur()},g=()=>{r.value&&!a.value&&i.value.focus()},w=(C=!0)=>{a.value||(p.value=!0,C&&A())},B=()=>{p.value=!1,setTimeout(()=>{p.value||(l(),s.value&&c())},1)};return{tabindex:m,isActive:p,mouseClicked:h,blur:y,focus:g,activate:w,deactivate:B,handleFocusIn:C=>{C.target.closest("[data-tags]")&&C.target.nodeName!=="INPUT"||C.target.closest("[data-clear]")||w(h.value)},handleFocusOut:()=>{B()},handleCaretClick:()=>{B(),y()},handleMousedown:C=>{h.value=!0,u.value&&(C.target.isEqualNode(d.value)||C.target.isEqualNode(f.value))?setTimeout(()=>{B()},0):!u.value&&(document.activeElement.isEqualNode(d.value)||document.activeElement.isEqualNode(i.value))&&w(),setTimeout(()=>{h.value=!1},0)}}}function NL(e,t,n){const{mode:r,addTagOn:a,openDirection:s,searchable:i,showOptions:A,valueProp:l,groups:c,addOptionOn:u,createTag:d,createOption:f,reverse:p}=o.toRefs(e),h=o.getCurrentInstance().proxy,m=n.iv,y=n.update,g=n.deselect,w=n.search,B=n.setPointer,v=n.selectPointer,_=n.backwardPointer,b=n.forwardPointer,k=n.multiselect,C=n.wrapper,E=n.tags,D=n.isOpen,T=n.open,F=n.blur,U=n.fo,W=wt(()=>d.value||f.value||!1),J=wt(()=>a.value!==void 0?a.value:u.value!==void 0?u.value:["enter"]),R=()=>{r.value==="tags"&&!A.value&&W.value&&i.value&&!c.value&&B(U.value[U.value.map(q=>q[l.value]).indexOf(w.value)])};return{handleKeydown:q=>{t.emit("keydown",q,h);let Ae,oe;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(q.key)!==-1&&r.value==="tags"&&(Ae=[...k.value.querySelectorAll("[data-tags] > *")].filter(le=>le!==E.value),oe=Ae.findIndex(le=>le===document.activeElement)),q.key){case"Backspace":if(r.value==="single"||i.value&&[null,""].indexOf(w.value)===-1||m.value.length===0)return;let le=m.value.filter(ge=>!ge.disabled&&ge.remove!==!1);le.length&&g(le[le.length-1]);break;case"Enter":if(q.preventDefault(),q.keyCode===229)return;if(oe!==-1&&oe!==void 0){y([...m.value].filter((ge,ie)=>ie!==oe)),oe===Ae.length-1&&(Ae.length-1?Ae[Ae.length-2].focus():i.value?E.value.querySelector("input").focus():C.value.focus());return}if(J.value.indexOf("enter")===-1&&W.value)return;R(),v();break;case" ":if(!W.value&&!i.value){q.preventDefault(),R(),v();return}if(!W.value)return!1;if(J.value.indexOf("space")===-1&&W.value)return;q.preventDefault(),R(),v();break;case"Tab":case";":case",":if(J.value.indexOf(q.key.toLowerCase())===-1||!W.value)return;R(),v(),q.preventDefault();break;case"Escape":F();break;case"ArrowUp":if(q.preventDefault(),!A.value)return;D.value||T(),_();break;case"ArrowDown":if(q.preventDefault(),!A.value)return;D.value||T(),b();break;case"ArrowLeft":if(i.value&&E.value&&E.value.querySelector("input").selectionStart||q.shiftKey||r.value!=="tags"||!m.value||!m.value.length)return;q.preventDefault(),oe===-1?Ae[Ae.length-1].focus():oe>0&&Ae[oe-1].focus();break;case"ArrowRight":if(oe===-1||q.shiftKey||r.value!=="tags"||!m.value||!m.value.length)return;q.preventDefault(),Ae.length>oe+1?Ae[oe+1].focus():i.value?E.value.querySelector("input").focus():i.value||C.value.focus();break}},handleKeyup:q=>{t.emit("keyup",q,h)},preparePointer:R}}function PL(e,t,n){const{classes:r,disabled:a,showOptions:s,breakTags:i}=o.toRefs(e),A=n.isOpen,l=n.isPointed,c=n.isSelected,u=n.isDisabled,d=n.isActive,f=n.canPointGroups,p=n.resolving,h=n.fo,m=n.placement,y=wt(()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagWrapper:"multiselect-tag-wrapper",tagWrapperBreak:"multiselect-tag-wrapper-break",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...r.value})),g=wt(()=>!!(A.value&&s.value&&(!p.value||p.value&&h.value.length)));return{classList:o.computed(()=>{const B=y.value;return{container:[B.container].concat(a.value?B.containerDisabled:[]).concat(g.value&&m.value==="top"?B.containerOpenTop:[]).concat(g.value&&m.value!=="top"?B.containerOpen:[]).concat(d.value?B.containerActive:[]),wrapper:B.wrapper,spacer:B.spacer,singleLabel:B.singleLabel,singleLabelText:B.singleLabelText,multipleLabel:B.multipleLabel,search:B.search,tags:B.tags,tag:[B.tag].concat(a.value?B.tagDisabled:[]),tagWrapper:[B.tagWrapper,i.value?B.tagWrapperBreak:null],tagDisabled:B.tagDisabled,tagRemove:B.tagRemove,tagRemoveIcon:B.tagRemoveIcon,tagsSearchWrapper:B.tagsSearchWrapper,tagsSearch:B.tagsSearch,tagsSearchCopy:B.tagsSearchCopy,placeholder:B.placeholder,caret:[B.caret].concat(A.value?B.caretOpen:[]),clear:B.clear,clearIcon:B.clearIcon,spinner:B.spinner,inifinite:B.inifinite,inifiniteSpinner:B.inifiniteSpinner,dropdown:[B.dropdown].concat(m.value==="top"?B.dropdownTop:[]).concat(!A.value||!s.value||!g.value?B.dropdownHidden:[]),options:[B.options].concat(m.value==="top"?B.optionsTop:[]),group:B.group,groupLabel:v=>{let _=[B.groupLabel];return l(v)?_.push(c(v)?B.groupLabelSelectedPointed:B.groupLabelPointed):c(v)&&f.value?_.push(u(v)?B.groupLabelSelectedDisabled:B.groupLabelSelected):u(v)&&_.push(B.groupLabelDisabled),f.value&&_.push(B.groupLabelPointable),_},groupOptions:B.groupOptions,option:(v,_)=>{let b=[B.option];return l(v)?b.push(c(v)?B.optionSelectedPointed:B.optionPointed):c(v)?b.push(u(v)?B.optionSelectedDisabled:B.optionSelected):(u(v)||_&&u(_))&&b.push(B.optionDisabled),b},noOptions:B.noOptions,noResults:B.noResults,assist:B.assist,fakeInput:B.fakeInput}}),showDropdown:g}}function RL(e,t,n){const{limit:r,infinite:a}=o.toRefs(e),s=n.isOpen,i=n.offset,A=n.search,l=n.pfo,c=n.eo,u=o.ref(null),d=o.shallowRef(null),f=wt(()=>i.value<l.value.length),p=m=>{const{isIntersecting:y,target:g}=m[0];if(y){const w=g.offsetParent,B=w.scrollTop;i.value+=r.value==-1?10:r.value,o.nextTick(()=>{w.scrollTop=B})}},h=()=>{s.value&&i.value<l.value.length?u.value.observe(d.value):!s.value&&u.value&&u.value.disconnect()};return o.watch(s,()=>{a.value&&h()}),o.watch(A,()=>{a.value&&(i.value=r.value,h())},{flush:"post"}),o.watch(c,()=>{a.value&&h()},{immediate:!1,flush:"post"}),o.onMounted(()=>{window&&window.IntersectionObserver&&(u.value=new IntersectionObserver(p))}),{hasMore:f,infiniteLoader:d}}function HL(e,t,n){const{placeholder:r,id:a,valueProp:s,label:i,mode:A,groupLabel:l,aria:c,searchable:u}=o.toRefs(e),d=n.pointer,f=n.iv,p=n.hasSelected,h=n.multipleLabelText,m=o.ref(null),y=wt(()=>`${a.value?a.value+"-":""}assist`),g=wt(()=>`${a.value?a.value+"-":""}multiselect-options`),w=wt(()=>{if(d.value){let F=a.value?`${a.value}-`:"";return F+=`${d.value.group?"multiselect-group":"multiselect-option"}-`,F+=d.value.group?d.value.index:d.value[s.value],F}}),B=wt(()=>r.value),v=wt(()=>A.value!=="single"),_=o.computed(()=>A.value==="single"&&p.value?f.value[i.value]:A.value==="multiple"&&p.value?h.value:A.value==="tags"&&p.value?f.value.map(F=>F[i.value]).join(", "):""),b=o.computed(()=>{let F={...c.value};return u.value&&(F["aria-labelledby"]=F["aria-labelledby"]?`${y.value} ${F["aria-labelledby"]}`:y.value,_.value&&F["aria-label"]&&(F["aria-label"]=`${_.value}, ${F["aria-label"]}`)),F}),k=F=>`${a.value?a.value+"-":""}multiselect-option-${F[s.value]}`,C=F=>`${a.value?a.value+"-":""}multiselect-group-${F.index}`,E=F=>`${F}`,D=F=>`${F}`,T=F=>`${F} ❎`;return o.onMounted(()=>{if(a.value&&document&&document.querySelector){let F=document.querySelector(`[for="${a.value}"]`);m.value=F?F.innerText:null}}),{arias:b,ariaLabel:_,ariaAssist:y,ariaControls:g,ariaPlaceholder:B,ariaMultiselectable:v,ariaActiveDescendant:w,ariaOptionId:k,ariaOptionLabel:E,ariaGroupId:C,ariaGroupLabel:D,ariaTagLabel:T}}function VL(e,t,n){const{locale:r,fallbackLocale:a}=o.toRefs(e);return{localize:i=>!i||typeof i!="object"?i:i&&i[r.value]?i[r.value]:i&&r.value&&i[r.value.toUpperCase()]?i[r.value.toUpperCase()]:i&&i[a.value]?i[a.value]:i&&a.value&&i[a.value.toUpperCase()]?i[a.value.toUpperCase()]:i&&Object.keys(i)[0]?i[Object.keys(i)[0]]:""}}function $L(e,t,n){const r=o.shallowRef(null),a=o.shallowRef(null),s=o.shallowRef(null),i=o.shallowRef(null),A=o.shallowRef(null);return{multiselect:r,wrapper:a,tags:s,input:i,dropdown:A}}function KL(e,t,n,r={}){return n.forEach(a=>{r={...r,...a(e,t,r)}}),r}var qt={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1,default:void 0},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:[String,Array],required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1,default:void 0},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1,default:void 0},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function,default:void 0},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1},appendToBody:{required:!1,type:Boolean,default:!1},closeOnScroll:{required:!1,type:Boolean,default:!1},breakTags:{required:!1,type:Boolean,default:!1},appendTo:{required:!1,type:String,default:void 0}},setup(e,t){return KL(e,t,[$L,VL,xO,TO,QL,FO,SO,ML,UO,RL,OO,NL,PL,HL])},beforeMount(){(this.$root.constructor&&this.$root.constructor.version&&this.$root.constructor.version.match(/^2\./)||this.vueVersionMs===2)&&(this.$options.components.Teleport||(this.$options.components.Teleport={render(){return this.$slots.default?this.$slots.default[0]:null}}))}};const zL=["id","dir"],WL=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],GL=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],jL=["onKeyup","aria-label"],YL=["onClick"],qL=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],XL=["innerHTML"],JL=["id"],ZL=["id"],eQ=["id","aria-label","aria-selected"],tQ=["data-pointed","onMouseenter","onClick"],nQ=["innerHTML"],rQ=["aria-label"],aQ=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],sQ=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],iQ=["innerHTML"],oQ=["innerHTML"],AQ=["value"],lQ=["name","value"],cQ=["name","value"],uQ=["id"];function dQ(e,t,n,r,a,s){return o.openBlock(),o.createElementBlock("div",{ref:"multiselect",class:o.normalizeClass(e.classList.container),id:n.searchable?void 0:n.id,dir:n.rtl?"rtl":void 0,onFocusin:t[12]||(t[12]=(...i)=>e.handleFocusIn&&e.handleFocusIn(...i)),onFocusout:t[13]||(t[13]=(...i)=>e.handleFocusOut&&e.handleFocusOut(...i)),onKeyup:t[14]||(t[14]=(...i)=>e.handleKeyup&&e.handleKeyup(...i)),onKeydown:t[15]||(t[15]=(...i)=>e.handleKeydown&&e.handleKeydown(...i))},[o.createElementVNode("div",o.mergeProps({class:e.classList.wrapper,onMousedown:t[9]||(t[9]=(...i)=>e.handleMousedown&&e.handleMousedown(...i)),ref:"wrapper",tabindex:e.tabindex,"aria-controls":n.searchable?void 0:e.ariaControls,"aria-placeholder":n.searchable?void 0:e.ariaPlaceholder,"aria-expanded":n.searchable?void 0:e.isOpen,"aria-activedescendant":n.searchable?void 0:e.ariaActiveDescendant,"aria-multiselectable":n.searchable?void 0:e.ariaMultiselectable,role:n.searchable?void 0:"combobox"},n.searchable?{}:e.arias),[o.createCommentVNode(" Search "),n.mode!=="tags"&&n.searchable&&!n.disabled?(o.openBlock(),o.createElementBlock("input",o.mergeProps({key:0,type:n.inputType,modelValue:e.search,value:e.search,class:e.classList.search,autocomplete:n.autocomplete,id:n.searchable?n.id:void 0,onInput:t[0]||(t[0]=(...i)=>e.handleSearchInput&&e.handleSearchInput(...i)),onKeypress:t[1]||(t[1]=(...i)=>e.handleKeypress&&e.handleKeypress(...i)),onPaste:t[2]||(t[2]=o.withModifiers((...i)=>e.handlePaste&&e.handlePaste(...i),["stop"])),ref:"input","aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},{...n.attrs,...e.arias}),null,16,GL)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Tags (with search) "),n.mode=="tags"?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(e.classList.tags),"data-tags":""},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.iv,(i,A,l)=>o.renderSlot(e.$slots,"tag",{option:i,handleTagRemove:e.handleTagRemove,disabled:n.disabled},()=>[(o.openBlock(),o.createElementBlock("span",{class:o.normalizeClass([e.classList.tag,i.disabled?e.classList.tagDisabled:null]),tabindex:"-1",onKeyup:o.withKeys(c=>e.handleTagRemove(i,c),["enter"]),key:l,"aria-label":e.ariaTagLabel(e.localize(i[n.label]))},[o.createElementVNode("span",{class:o.normalizeClass(e.classList.tagWrapper)},o.toDisplayString(e.localize(i[n.label])),3),!n.disabled&&!i.disabled?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(e.classList.tagRemove),onClick:o.withModifiers(c=>e.handleTagRemove(i,c),["stop"])},[o.createElementVNode("span",{class:o.normalizeClass(e.classList.tagRemoveIcon)},null,2)],10,YL)):o.createCommentVNode("v-if",!0)],42,jL))])),256)),o.createElementVNode("div",{class:o.normalizeClass(e.classList.tagsSearchWrapper),ref:"tags"},[o.createCommentVNode(" Used for measuring search width "),o.createElementVNode("span",{class:o.normalizeClass(e.classList.tagsSearchCopy)},o.toDisplayString(e.search),3),o.createCommentVNode(" Actual search input "),n.searchable&&!n.disabled?(o.openBlock(),o.createElementBlock("input",o.mergeProps({key:0,type:n.inputType,modelValue:e.search,value:e.search,class:e.classList.tagsSearch,id:n.searchable?n.id:void 0,autocomplete:n.autocomplete,onInput:t[3]||(t[3]=(...i)=>e.handleSearchInput&&e.handleSearchInput(...i)),onKeypress:t[4]||(t[4]=(...i)=>e.handleKeypress&&e.handleKeypress(...i)),onPaste:t[5]||(t[5]=o.withModifiers((...i)=>e.handlePaste&&e.handlePaste(...i),["stop"])),ref:"input","aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},{...n.attrs,...e.arias}),null,16,qL)):o.createCommentVNode("v-if",!0)],2)],2)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Single label "),n.mode=="single"&&e.hasSelected&&!e.search&&e.iv?o.renderSlot(e.$slots,"singlelabel",{key:2,value:e.iv},()=>[o.createElementVNode("div",{class:o.normalizeClass(e.classList.singleLabel)},[o.createElementVNode("span",{class:o.normalizeClass(e.classList.singleLabelText)},o.toDisplayString(e.localize(e.iv[n.label])),3)],2)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Multiple label "),n.mode=="multiple"&&e.hasSelected&&!e.search?o.renderSlot(e.$slots,"multiplelabel",{key:3,values:e.iv},()=>[o.createElementVNode("div",{class:o.normalizeClass(e.classList.multipleLabel),innerHTML:e.multipleLabelText},null,10,XL)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Placeholder "),n.placeholder&&!e.hasSelected&&!e.search?o.renderSlot(e.$slots,"placeholder",{key:4},()=>[o.createElementVNode("div",{class:o.normalizeClass(e.classList.placeholder),"aria-hidden":"true"},o.toDisplayString(n.placeholder),3)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Spinner "),n.loading||e.resolving?o.renderSlot(e.$slots,"spinner",{key:5},()=>[o.createElementVNode("span",{class:o.normalizeClass(e.classList.spinner),"aria-hidden":"true"},null,2)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Clear "),e.hasSelected&&!n.disabled&&n.canClear&&!e.busy?o.renderSlot(e.$slots,"clear",{key:6,clear:e.clear},()=>[o.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:o.normalizeClass(e.classList.clear),onClick:t[6]||(t[6]=(...i)=>e.clear&&e.clear(...i)),onKeyup:t[7]||(t[7]=o.withKeys((...i)=>e.clear&&e.clear(...i),["enter"]))},[o.createElementVNode("span",{class:o.normalizeClass(e.classList.clearIcon)},null,2)],34)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Caret "),n.caret&&n.showOptions?o.renderSlot(e.$slots,"caret",{key:7,handleCaretClick:e.handleCaretClick,isOpen:e.isOpen},()=>[o.createElementVNode("span",{class:o.normalizeClass(e.classList.caret),onClick:t[8]||(t[8]=(...i)=>e.handleCaretClick&&e.handleCaretClick(...i)),"aria-hidden":"true"},null,2)]):o.createCommentVNode("v-if",!0)],16,WL),o.createCommentVNode(" Options "),(o.openBlock(),o.createBlock(o.Teleport,{to:n.appendTo||"body",disabled:!n.appendToBody&&!n.appendTo},[o.createElementVNode("div",{id:n.id?`${n.id}-dropdown`:void 0,class:o.normalizeClass(e.classList.dropdown),tabindex:"-1",ref:"dropdown",onFocusin:t[10]||(t[10]=(...i)=>e.handleFocusIn&&e.handleFocusIn(...i)),onFocusout:t[11]||(t[11]=(...i)=>e.handleFocusOut&&e.handleFocusOut(...i))},[o.renderSlot(e.$slots,"beforelist",{options:e.fo}),o.createElementVNode("ul",{class:o.normalizeClass(e.classList.options),id:e.ariaControls,role:"listbox"},[n.groups?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(e.fg,(i,A,l)=>(o.openBlock(),o.createElementBlock("li",{class:o.normalizeClass(e.classList.group),key:l,id:e.ariaGroupId(i),"aria-label":e.ariaGroupLabel(e.localize(i[n.groupLabel])),"aria-selected":e.isSelected(i),role:"option"},[i.__CREATE__?o.createCommentVNode("v-if",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(e.classList.groupLabel(i)),"data-pointed":e.isPointed(i),onMouseenter:c=>e.setPointer(i,A),onClick:c=>e.handleGroupClick(i)},[o.renderSlot(e.$slots,"grouplabel",{group:i,isSelected:e.isSelected,isPointed:e.isPointed},()=>[o.createElementVNode("span",{innerHTML:e.localize(i[n.groupLabel])},null,8,nQ)])],42,tQ)),o.createElementVNode("ul",{class:o.normalizeClass(e.classList.groupOptions),"aria-label":e.ariaGroupLabel(e.localize(i[n.groupLabel])),role:"group"},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.__VISIBLE__,(c,u,d)=>(o.openBlock(),o.createElementBlock("li",{class:o.normalizeClass(e.classList.option(c,i)),"data-pointed":e.isPointed(c),"data-selected":e.isSelected(c)||void 0,key:d,onMouseenter:f=>e.setPointer(c),onClick:f=>e.handleOptionClick(c),id:e.ariaOptionId(c),"aria-selected":e.isSelected(c),"aria-label":e.ariaOptionLabel(e.localize(c[n.label])),role:"option"},[o.renderSlot(e.$slots,"option",{option:c,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},()=>[o.createElementVNode("span",null,o.toDisplayString(e.localize(c[n.label])),1)])],42,aQ))),128))],10,rQ)],10,eQ))),128)):(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(e.fo,(i,A,l)=>(o.openBlock(),o.createElementBlock("li",{class:o.normalizeClass(e.classList.option(i)),"data-pointed":e.isPointed(i),"data-selected":e.isSelected(i)||void 0,key:l,onMouseenter:c=>e.setPointer(i),onClick:c=>e.handleOptionClick(i),id:e.ariaOptionId(i),"aria-selected":e.isSelected(i),"aria-label":e.ariaOptionLabel(e.localize(i[n.label])),role:"option"},[o.renderSlot(e.$slots,"option",{option:i,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},()=>[o.createElementVNode("span",null,o.toDisplayString(e.localize(i[n.label])),1)])],42,sQ))),128))],10,ZL),e.noOptions?o.renderSlot(e.$slots,"nooptions",{key:0},()=>[o.createElementVNode("div",{class:o.normalizeClass(e.classList.noOptions),innerHTML:e.localize(n.noOptionsText)},null,10,iQ)]):o.createCommentVNode("v-if",!0),e.noResults?o.renderSlot(e.$slots,"noresults",{key:1},()=>[o.createElementVNode("div",{class:o.normalizeClass(e.classList.noResults),innerHTML:e.localize(n.noResultsText)},null,10,oQ)]):o.createCommentVNode("v-if",!0),n.infinite&&e.hasMore?(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(e.classList.inifinite),ref:"infiniteLoader"},[o.renderSlot(e.$slots,"infinite",{},()=>[o.createElementVNode("span",{class:o.normalizeClass(e.classList.inifiniteSpinner)},null,2)])],2)):o.createCommentVNode("v-if",!0),o.renderSlot(e.$slots,"afterlist",{options:e.fo})],42,JL)],8,["to","disabled"])),o.createCommentVNode(" Hacky input element to show HTML5 required warning "),n.required?(o.openBlock(),o.createElementBlock("input",{key:0,class:o.normalizeClass(e.classList.fakeInput),tabindex:"-1",value:e.textValue,required:""},null,10,AQ)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Native input support "),n.nativeSupport?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[n.mode=="single"?(o.openBlock(),o.createElementBlock("input",{key:0,type:"hidden",name:n.name,value:e.plainValue!==void 0?e.plainValue:""},null,8,lQ)):(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(e.plainValue,(i,A)=>(o.openBlock(),o.createElementBlock("input",{type:"hidden",name:`${n.name}[]`,value:i,key:A},null,8,cQ))),128))],64)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Screen reader assistive text "),n.searchable&&e.hasSelected?(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(e.classList.assist),id:e.ariaAssist,"aria-hidden":"true"},o.toDisplayString(e.ariaLabel),11,uQ)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Create height for empty input "),o.createElementVNode("div",{class:o.normalizeClass(e.classList.spacer)},null,2)],42,zL)}qt.render=dQ;qt.__file="src/Multiselect.vue";const fQ={class:"search-bar"},pQ=o.defineComponent({__name:"SearchBar",props:lD,setup(e){const{t}=Y(),n=o.ref(""),r=pn.useRouter(),a=e;function s(A,l,c){c.clear(),c.search=n.value,r.push(l.link),y_().addOption(l)}function i(A){n.value=A}return(A,l)=>(o.openBlock(),o.createElementBlock("div",fQ,[o.createVNode(o.unref(qt),{placeholder:o.unref(t)("navigation.searchPlaceholder"),"value-prop":"link","clear-on-blur":!1,"clear-on-search":!1,"clear-on-select":!1,"close-on-select":!0,delay:0,"filter-results":!1,groups:!0,"min-chars":0,"resolve-on-load":!1,searchable:!0,options:a.fetchSeachResult,onOpen:l[0]||(l[0]=c=>{c.noOptions&&c.resolveOptions()}),onSearchChange:i,onSelect:s},{option:o.withCtx(({option:c})=>[c.type==="card"?(o.openBlock(),o.createBlock(bt,{key:`card-${c.card.cardCode}`,class:"card-slice-item","maintain-aspect-ratio":!0,"card-prop":c.card,"router-link":c.link},null,8,["card-prop","router-link"])):(o.openBlock(),o.createBlock(bt,{key:`player-${c.link}`,class:"card-slice-item","maintain-aspect-ratio":!0,"ignore-card-item":!0,"card-code-prop":c.cardCode,color:c.color,name:c.name,"mana-number":c.rank,"router-link":c.link},null,8,["card-code-prop","color","name","mana-number","router-link"]))]),_:1},8,["placeholder","options"])]))}});const Ed=Q(pQ,[["__scopeId","data-v-f53c910f"]]),hQ={class:"social-links"},mQ={href:"https://discord.gg/tGTSXgDFVU"},gQ={href:"https://twitter.com/LORGG__"},vQ=o.defineComponent({__name:"SocialLinks",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("div",hQ,[o.createElementVNode("a",mQ,[o.createVNode(o.unref(Se),{class:"icon",icon:"fa-brands fa-discord"})]),o.createElementVNode("a",gQ,[o.createVNode(o.unref(Se),{class:"icon",icon:"fa-brands fa-twitter"})])]))}});const gg=Q(vQ,[["__scopeId","data-v-e6a74c37"]]),yQ={showModal:{type:Boolean,required:!0,default:!1}},BQ=o.defineComponent({__name:"ModalItem",props:yQ,emits:["update:showModal"],setup(e,{emit:t}){const n=e,r=t,a=o.ref(null),s=o.ref(!1);function i(){s.value&&r("update:showModal",!1)}o.onBeforeUnmount(()=>{var l;(l=a.value)==null||l.remove()});function A(){setTimeout(()=>{s.value=!1},1)}return o.watch(()=>n.showModal,()=>{n.showModal&&o.nextTick(()=>{a.value&&document.body.appendChild(a.value)})}),(l,c)=>n.showModal?(o.openBlock(),o.createElementBlock("div",{key:0,ref_key:"modalItem",ref:a,class:"modal-item",onMousedown:c[0]||(c[0]=o.withModifiers(u=>s.value=!0,["self"])),onClick:o.withModifiers(i,["self"]),onMouseup:A},[o.renderSlot(l.$slots,"default",{},void 0,!0)],544)):o.createCommentVNode("",!0)}});const Lr=Q(BQ,[["__scopeId","data-v-ab68e9be"]]),wQ={filterArray:{type:Array,required:!1,default:void 0},text:{type:String,required:!1,default:void 0},title:{type:String,required:!1,default:void 0}},bQ={class:"filter"},_Q={key:0,class:"top"},CQ={key:0,class:"title"},kQ={key:1,class:"text"},EQ=o.defineComponent({__name:"SidePanelSectionPane",props:wQ,emits:["clear:filterArray"],setup(e,{emit:t}){const n=e,r=t,a=o.computed(()=>n.filterArray&&n.filterArray.length>0?"clickable":null);function s(){r("clear:filterArray")}return(i,A)=>{const l=o.resolveDirective("t");return o.openBlock(),o.createElementBlock("div",bQ,[n.title||i.filterArray?(o.openBlock(),o.createElementBlock("div",_Q,[n.title?(o.openBlock(),o.createElementBlock("h2",CQ,o.toDisplayString(n.title),1)):o.createCommentVNode("",!0),n.text?(o.openBlock(),o.createElementBlock("p",kQ,o.toDisplayString(n.text),1)):i.filterArray?o.withDirectives((o.openBlock(),o.createElementBlock("p",{key:2,class:o.normalizeClass(["clear",a.value]),onClick:s},null,2)),[[l,"general.clear"]]):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),o.renderSlot(i.$slots,"default",{},void 0,!0)])}}});const ut=Q(EQ,[["__scopeId","data-v-d45db483"]]),SQ={filterArray:{type:Array,required:!0,default:[]}},xQ=["placeholder"],FQ=o.defineComponent({__name:"FilterSampleSize",props:SQ,emits:["update:filterArray"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.ref(r.filterArray),i=o.ref("");let A=setTimeout(()=>{},0);s.value.length>0&&(i.value=s.value[0]),o.watch(s,()=>{a("update:filterArray",s.value)}),o.watch(i,()=>{A&&clearTimeout(A),A=setTimeout(()=>{s.value.splice(0),i.value&&Number(i.value)>=10&&s.value.push(i.value)},1e3)});function l(){s.value.splice(0),i.value=""}return(c,u)=>(o.openBlock(),o.createBlock(ut,{"filter-array":s.value,title:o.unref(n)("general.sampleSize"),"onClear:filterArray":l},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":u[0]||(u[0]=d=>i.value=d),placeholder:o.unref(n)("general.minimumMatches"),type:"number",min:"10",step:"10"},null,8,xQ),[[o.vModelText,i.value]])]),_:1},8,["filter-array","title"]))}});const xo=Q(FQ,[["__scopeId","data-v-727f5a58"]]),TQ={filterArray:{type:Array,required:!0,default:[]}},IQ={isSelected:{type:Boolean,required:!0,default:!1},icon:{type:String,required:!1,default:void 0},prompt:{type:String,required:!0,default:""}},DQ=["selected"],UQ={class:"checkbox-name"},OQ=o.defineComponent({__name:"CheckboxItem",props:IQ,emits:["update:isSelected"],setup(e,{emit:t}){const n=e,r=t,a=o.computed(()=>(console.log(n.icon),{content:n.icon}));function s(){r("update:isSelected",!n.isSelected)}return(i,A)=>(o.openBlock(),o.createElementBlock("button",{class:"checkbox-item",selected:n.isSelected,onClick:s},[n.icon?(o.openBlock(),o.createElementBlock("div",{key:0,class:"checkbox-icon",style:o.normalizeStyle(a.value)},null,4)):o.createCommentVNode("",!0),o.createElementVNode("div",UQ,o.toDisplayString(n.prompt),1)],8,DQ))}});const sn=Q(OQ,[["__scopeId","data-v-ab8b99a4"]]),LQ={selectedOption:{type:Number,required:!0,default:-1},options:{type:Array,required:!0,default:[]}},QQ={class:"toggle-switch"},MQ=["onClick"],NQ={class:"option flex-center"},PQ={class:"option-text"},RQ=o.defineComponent({__name:"ToggleSwitch",props:LQ,emits:["update:selectedOption"],setup(e,{emit:t}){const n=e,r=t,a=o.computed(()=>({left:`calc(var(--spacing-1) + (100% - calc(var(--spacing-1) * 2)) / ${n.options.length} * ${n.selectedOption})`,width:`calc((100% - calc(var(--spacing-1) * 2)) / ${n.options.length})`}));function s(A){return{cursor:n.selectedOption!=A?"pointer":"default",left:`calc(var(--spacing-1) + (100% - calc(var(--spacing-1) * 2)) / ${n.options.length} * ${A})`,width:`${1/n.options.length*100}%`}}function i(A){r("update:selectedOption",A)}return(A,l)=>(o.openBlock(),o.createElementBlock("div",QQ,[o.withDirectives(o.createElementVNode("div",{class:"selection-container",style:o.normalizeStyle(a.value)},[...l[0]||(l[0]=[o.createElementVNode("div",{class:"selection"},null,-1)])],4),[[o.vShow,A.selectedOption>-1]]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.options,(c,u)=>(o.openBlock(),o.createElementBlock("div",{key:u,ref_for:!0,ref:"option-container",style:o.normalizeStyle(s(u)),class:"option-container",onClick:d=>i(u)},[o.createElementVNode("div",NQ,[o.createElementVNode("h1",PQ,o.toDisplayString(c),1)])],12,MQ))),128))]))}});const kl=Q(RQ,[["__scopeId","data-v-d5d9745a"]]),HQ={class:"checkboxes-container"},VQ=o.defineComponent({__name:"FilterRanks",props:TQ,emits:["update:filterArray"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.computed(()=>Be().dataJson.ranks.sort((u,d)=>d.order-u.order)),i=o.reactive(r.filterArray),A=o.ref(0);o.watch(i,()=>{a("update:filterArray",i)}),o.watch(A,()=>{A.value===0?i.splice(0):A.value===1&&(i.splice(0),i.push("Platinum","Diamond","Masters"))});function l(){i.splice(0),A.value=0}function c(u){const d=i.indexOf(u);if(d===-1){i.push(u);return}i.splice(d,1)}return(u,d)=>(o.openBlock(),o.createBlock(ut,{"filter-array":i,title:o.unref(n)("general.ranks"),"onClear:filterArray":l},{default:o.withCtx(()=>[o.createElementVNode("div",HQ,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,f=>(o.openBlock(),o.createBlock(sn,{key:f.nameRef,icon:`url(${f.icon})`,prompt:f.name,"is-selected":i.includes(f.nameRef),"onUpdate:isSelected":p=>c(f.nameRef)},null,8,["icon","prompt","is-selected","onUpdate:isSelected"]))),128)),o.createVNode(kl,{"selected-option":A.value,"onUpdate:selectedOption":d[0]||(d[0]=f=>A.value=f),options:[o.unref(n)("general.allRanks"),o.unref(n)("general.platPlus")]},null,8,["selected-option","options"])])]),_:1},8,["filter-array","title"]))}});const uC=Q(VQ,[["__scopeId","data-v-af7bc2a0"]]),$Q={filterArray:{type:Array,required:!0,default:[]}},KQ={isSelected:{type:Boolean,required:!0,default:!1},prompt:{type:Number,required:!0,default:""}},zQ=["selected"],WQ={class:"prompt"},GQ=o.defineComponent({__name:"CheckboxItemManaCost",props:KQ,emits:["update:isSelected"],setup(e,{emit:t}){const n=e,r=t;function a(){r("update:isSelected",!n.isSelected)}return(s,i)=>(o.openBlock(),o.createElementBlock("button",{class:"checkbox-item",selected:n.isSelected,onClick:a},[o.createVNode(Cl),o.createElementVNode("div",WQ,o.toDisplayString(n.prompt===10?"+":n.prompt),1)],8,zQ))}});const Ou=Q(GQ,[["__scopeId","data-v-2c74c2ed"]]),jQ={class:"checkbox-rows-container"},YQ={class:"top-row checkbox-items-container"},qQ={class:"bottom-row checkbox-items-container"},XQ=o.defineComponent({__name:"FilterManaCost",props:$Q,emits:["update:filterArray"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=Array(6).fill(1).map((c,u)=>u),i=Array(5).fill(1).map((c,u)=>u+6);function A(c){let u;r.filterArray.includes(c)?u=r.filterArray.filter(d=>d!==c):u=[...r.filterArray,c],a("update:filterArray",u)}function l(){a("update:filterArray",[])}return(c,u)=>(o.openBlock(),o.createBlock(ut,{"filter-array":r.filterArray,title:o.unref(n)("general.manaCost"),"onClear:filterArray":l},{default:o.withCtx(()=>[o.createElementVNode("div",jQ,[o.createElementVNode("div",YQ,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(s),d=>(o.openBlock(),o.createBlock(Ou,{key:d,class:"checkbox-item-mana-cost",prompt:d,"is-selected":r.filterArray.includes(d),"onUpdate:isSelected":f=>A(d)},null,8,["prompt","is-selected","onUpdate:isSelected"]))),128))]),o.createElementVNode("div",qQ,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(i),d=>(o.openBlock(),o.createBlock(Ou,{key:d,class:"checkbox-item-mana-cost",prompt:d,"is-selected":r.filterArray.includes(d),"onUpdate:isSelected":f=>A(d)},null,8,["prompt","is-selected","onUpdate:isSelected"]))),128))])])]),_:1},8,["filter-array","title"]))}});const vg=Q(XQ,[["__scopeId","data-v-a94d786a"]]),JQ={filterArray:{type:Array,required:!0,default:[]}},ZQ={class:"checkboxes-container"},yg=o.defineComponent({__name:"FilterRarities",props:JQ,emits:["update:filterArray"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.computed(()=>Be().dataJson.rarities.filter(c=>c.nameRef!=="None")),i=o.reactive(r.filterArray);o.watch(i,()=>{a("update:filterArray",i)});function A(){i.splice(0)}function l(c){const u=i.indexOf(c);if(u===-1){i.push(c);return}i.splice(u,1)}return(c,u)=>(o.openBlock(),o.createBlock(ut,{"filter-array":i,title:o.unref(n)("general.rarities"),"onClear:filterArray":A},{default:o.withCtx(()=>[o.createElementVNode("div",ZQ,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,d=>(o.openBlock(),o.createBlock(sn,{key:d.nameRef,icon:`url(${d.icon})`,prompt:d.name,"is-selected":i.includes(d.nameRef),"onUpdate:isSelected":f=>l(d.nameRef)},null,8,["icon","prompt","is-selected","onUpdate:isSelected"]))),128))])]),_:1},8,["filter-array","title"]))}}),eM={filterArray:{type:Array,required:!0,default:[]}},tM={class:"multiselect-tag",tabindex:"-1","aria-label":"{{option.name}} ❎"},nM=["src"],rM={class:"multiselect-tag-remove"},aM=["onMousedown"],sM=["src"],Bg=o.defineComponent({__name:"FilterSets",props:eM,emits:["update:filterArray"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.ref(r.filterArray);o.watch(s,()=>{a("update:filterArray",s.value)});function i(){s.value.splice(0)}return(A,l)=>(o.openBlock(),o.createBlock(ut,{"filter-array":s.value,title:o.unref(n)("general.sets"),"onClear:filterArray":i},{default:o.withCtx(()=>[o.createVNode(o.unref(qt),{modelValue:s.value,"onUpdate:modelValue":l[0]||(l[0]=c=>s.value=c),placeholder:o.unref(n)("general.sets"),class:"runeterra-select",mode:"tags",options:o.unref(Be)().dataJson.sets,searchable:!0,label:"name","value-prop":"nameRef"},{tag:o.withCtx(({option:c,handleTagRemove:u})=>[o.createElementVNode("span",tM,[o.createElementVNode("img",{class:"label-icon",src:c.icon},null,8,nM),o.createElementVNode("span",rM,[o.createElementVNode("span",{class:"multiselect-tag-remove-icon",onMousedown:o.withModifiers(d=>u(c,d),["prevent"])},null,40,aM)])])]),option:o.withCtx(({option:c})=>[o.createElementVNode("img",{class:"label-icon",src:c.icon},null,8,sM),o.createTextVNode(" "+o.toDisplayString(c.name),1)]),_:1},8,["modelValue","placeholder","options"])]),_:1},8,["filter-array","title"]))}}),iM={filterArray:{type:Array,required:!0,default:[]}},oM={class:"multiselect-tag",tabindex:"-1","aria-label":"{{option.name}} ❎"},AM=["src"],lM={class:"multiselect-tag-remove"},cM=["onMousedown"],uM=["src"],wg=o.defineComponent({__name:"FilterKeywords",props:iM,emits:["update:filterArray"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.ref(r.filterArray),i=o.computed(()=>Be().dataJson.keywords.filter(l=>l.showInFilter));o.watch(s,()=>{a("update:filterArray",s.value)});function A(){s.value.splice(0)}return(l,c)=>(o.openBlock(),o.createBlock(ut,{"filter-array":s.value,title:o.unref(n)("general.keywords"),"onClear:filterArray":A},{default:o.withCtx(()=>[o.createVNode(o.unref(qt),{modelValue:s.value,"onUpdate:modelValue":c[0]||(c[0]=u=>s.value=u),placeholder:o.unref(n)("general.keywords"),class:"runeterra-select",mode:"tags",options:i.value,searchable:!0,label:"name","value-prop":"nameRef"},{tag:o.withCtx(({option:u,handleTagRemove:d})=>[o.createElementVNode("span",oM,[o.createElementVNode("img",{class:"label-icon",src:u.icon},null,8,AM),o.createElementVNode("span",lM,[o.createElementVNode("span",{class:"multiselect-tag-remove-icon",onMousedown:o.withModifiers(f=>d(u,f),["prevent"])},null,40,cM)])])]),option:o.withCtx(({option:u})=>[o.createElementVNode("img",{class:"label-icon",src:u.icon},null,8,uM),o.createTextVNode(" "+o.toDisplayString(u.name),1)]),_:1},8,["modelValue","placeholder","options"])]),_:1},8,["filter-array","title"]))}}),dM={filterArray:{type:Array,required:!0,default:[]}},fM={class:"checkboxes-container"},Fo=o.defineComponent({__name:"FilterServers",props:dM,emits:["update:filterArray"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.reactive(r.filterArray);o.watch(s,()=>{a("update:filterArray",s)});function i(){s.splice(0)}function A(l){const c=s.indexOf(l);if(c===-1){s.push(l);return}s.splice(c,1)}return(l,c)=>(o.openBlock(),o.createBlock(ut,{"filter-array":s,title:o.unref(n)("general.servers"),"onClear:filterArray":i},{default:o.withCtx(()=>[o.createElementVNode("div",fM,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(Be)().dataJson.servers,u=>(o.openBlock(),o.createBlock(sn,{key:u.nameRef,prompt:u.name,"is-selected":s.includes(u.nameRef),"onUpdate:isSelected":d=>A(u.nameRef)},null,8,["prompt","is-selected","onUpdate:isSelected"]))),128))])]),_:1},8,["filter-array","title"]))}}),pM={filterArray:{type:Array,required:!0,default:[]},allowZero:{type:Boolean,required:!1,default:!1}},hM={class:"checkboxes-container"},mM=o.defineComponent({__name:"FilterTime",props:pM,emits:["update:filterArray"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.reactive(r.filterArray),i=o.ref(null),A=o.ref(null),l=s.find(h=>h.startsWith("patch_"));l&&(i.value=l);const c=s.find(h=>h.startsWith("season_"));c&&(A.value=c);const u=o.computed(()=>r.allowZero&&s.filter(h=>h.startsWith("patch")).length>0||!r.allowZero&&s.filter(h=>!h.startsWith("patch")).length===0);o.watch(s,()=>{a("update:filterArray",s)}),o.watch(i,(h,m)=>{d(h,m)}),o.watch(A,(h,m)=>{d(h,m)});function d(h,m){console.log(m,h),m&&s.splice(s.indexOf(m),1),h&&s.push(h),console.log(s)}function f(){s.splice(0),i.value=null,A.value=null}function p(h){s.splice(0),(r.allowZero||h!=="patch")&&s.push(h),h==="patch"&&i.value&&s.push(i.value),h==="season"&&A.value&&s.push(A.value)}return(h,m)=>(o.openBlock(),o.createBlock(ut,{class:"side-panel-section-pane","filter-array":s,title:o.unref(n)("general.time"),"onClear:filterArray":f},{default:o.withCtx(()=>[o.createElementVNode("div",hM,[o.createVNode(sn,{prompt:o.unref(n)("general.patch"),"is-selected":u.value,"onUpdate:isSelected":m[0]||(m[0]=y=>p("patch"))},null,8,["prompt","is-selected"]),o.createVNode(sn,{prompt:o.unref(n)("general.season"),"is-selected":s.includes("season"),"onUpdate:isSelected":m[1]||(m[1]=y=>p("season"))},null,8,["prompt","is-selected"]),o.createVNode(sn,{prompt:o.unref(n)("general.pastDays",7),"is-selected":s.includes("7days"),"onUpdate:isSelected":m[2]||(m[2]=y=>p("7days"))},null,8,["prompt","is-selected"]),o.createVNode(sn,{prompt:o.unref(n)("general.pastDays",3),"is-selected":s.includes("3days"),"onUpdate:isSelected":m[3]||(m[3]=y=>p("3days"))},null,8,["prompt","is-selected"]),o.createVNode(sn,{prompt:o.unref(n)("general.pastHours",24),"is-selected":s.includes("24hours"),"onUpdate:isSelected":m[4]||(m[4]=y=>p("24hours"))},null,8,["prompt","is-selected"]),o.createVNode(sn,{prompt:o.unref(n)("general.pastHour"),"is-selected":s.includes("1hour"),"onUpdate:isSelected":m[5]||(m[5]=y=>p("1hour"))},null,8,["prompt","is-selected"]),u.value?(o.openBlock(),o.createBlock(o.unref(qt),{key:0,modelValue:i.value,"onUpdate:modelValue":m[6]||(m[6]=y=>i.value=y),options:o.unref(Be)().dataJson.patches,searchable:!0,label:"name","value-prop":"nameRef",placeholder:o.unref(n)("general.patches")},null,8,["modelValue","options","placeholder"])):o.createCommentVNode("",!0),s.includes("season")?(o.openBlock(),o.createBlock(o.unref(qt),{key:1,modelValue:A.value,"onUpdate:modelValue":m[7]||(m[7]=y=>A.value=y),options:o.unref(Be)().dataJson.seasons,searchable:!0,label:"name","value-prop":"nameRef",placeholder:o.unref(n)("general.seasons")},null,8,["modelValue","options","placeholder"])):o.createCommentVNode("",!0)])]),_:1},8,["filter-array","title"]))}});const fi=Q(mM,[["__scopeId","data-v-921cb269"]]),gM={filterArray:{type:Array,required:!0,default:[]}},vM={cardCodes:{type:[Array,String,null],required:!0,default:[]},filterCallback:{type:Function,required:!1,default:()=>!0},mode:{type:String,required:!1,default:"tags"}},yM=o.defineComponent({__name:"CardMultiselect",props:vM,emits:["update:cardCodes"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.ref(r.cardCodes),i=o.computed(()=>{let A=Zm().cardJson.sort((l,c)=>l.name.localeCompare(c.name));return r.filterCallback&&(A=A.filter(r.filterCallback)),A});return o.watch(s,()=>{a("update:cardCodes",s.value)}),(A,l)=>(o.openBlock(),o.createBlock(o.unref(qt),{modelValue:s.value,"onUpdate:modelValue":l[0]||(l[0]=c=>s.value=c),class:"multiselect",placeholder:o.unref(n)("cards.cards"),mode:r.mode,options:i.value,infinite:!0,limit:10,searchable:!0,label:"name","value-prop":"cardCode"},null,8,["modelValue","placeholder","mode","options"]))}});const bg=Q(yM,[["__scopeId","data-v-e46bd34a"]]),Sd=o.defineComponent({__name:"FilterCardCodes",props:gM,emits:["update:filterArray"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.ref(r.filterArray);o.watch(s,()=>{console.log("watch(filterArray)",s.value),a("update:filterArray",s.value)});function i(){s.value.splice(0)}function A(l){return l.collectible}return(l,c)=>(o.openBlock(),o.createBlock(ut,{"filter-array":s.value,title:o.unref(n)("cards.cards"),"onClear:filterArray":i},{default:o.withCtx(()=>[o.createVNode(bg,{cardCodes:s.value,"onUpdate:cardCodes":c[0]||(c[0]=u=>s.value=u),mode:"tags","filter-callback":A},null,8,["cardCodes"])]),_:1},8,["filter-array","title"]))}}),BM={filterArray:{type:Array,required:!0,default:[]}},wM={class:"checkboxes-container"},bM=o.defineComponent({__name:"FilterRegions",props:BM,emits:["update:filterArray"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.reactive(r.filterArray),i=o.ref([]);i.value.push(...s.filter(c=>HA(c))),o.watch(s,()=>{a("update:filterArray",s)}),o.watch(i,(c,u)=>{let d=c.find(f=>!u.includes(f));if(d||(d=u.find(f=>!c.includes(f)),d))return l(d)});function A(){s.splice(0),i.value.slice(0)}function l(c){const u=s.indexOf(c);if(u===-1){s.push(c),c==="Runeterra"&&s.push(...i.value);return}if(s.splice(u,1),c==="Runeterra")for(let d=0;d<s.length;d++)HA(s[d])&&s.splice(d--,1)}return(c,u)=>(o.openBlock(),o.createBlock(ut,{"filter-array":s,title:o.unref(n)("general.regions"),"onClear:filterArray":A},{default:o.withCtx(()=>[o.createElementVNode("div",wM,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(Be)().dataJson.regions,d=>(o.openBlock(),o.createBlock(sn,{key:d.nameRef,icon:`url(${d.icon})`,prompt:d.name,"is-selected":s.includes(d.nameRef),"onUpdate:isSelected":f=>l(d.nameRef)},null,8,["icon","prompt","is-selected","onUpdate:isSelected"]))),128)),o.createVNode(sn,{class:"runeterra",prompt:"Runeterra","is-selected":s.includes("Runeterra"),"onUpdate:isSelected":u[0]||(u[0]=d=>l("Runeterra"))},null,8,["is-selected"]),s.includes("Runeterra")?(o.openBlock(),o.createBlock(o.unref(qt),{key:0,modelValue:i.value,"onUpdate:modelValue":u[1]||(u[1]=d=>i.value=d),class:"runeterra-select",mode:"tags",options:o.unref(Be)().dataJson.runeterraChampions,searchable:!0,label:"name","value-prop":"nameRef"},null,8,["modelValue","options"])):o.createCommentVNode("",!0)])]),_:1},8,["filter-array","title"]))}});const El=Q(bM,[["__scopeId","data-v-c93a9e90"]]),_M={filters:{type:Object,required:!0,default:{cardFilters:[],regionFilters:[],sampleSizeFilters:[],serverFilters:[],timeFilters:[],formatFilters:[],queueFilters:[]}},includeDataFilters:{type:Boolean,required:!1,default:!0}},CM={filterArray:{type:Array,required:!0,default:[]},allowZero:{type:Boolean,required:!1,default:!1}},kM={class:"checkboxes-container"},EM=o.defineComponent({__name:"FilterFormat",props:CM,emits:["update:filterArray"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.computed(()=>{const f=Be().dataJson.queues;return Object.values(Be().dataJson.formats).filter(p=>p.availableQueues.some(h=>!f[h].excludeInMassFilter))}),i=o.computed(()=>s.value.filter(f=>!f.inDropdown)),A=o.computed(()=>s.value.filter(f=>f.inDropdown)),l=o.reactive(r.filterArray),c=o.ref(null);o.onMounted(()=>{l.length>0&&A.value.map(f=>f.nameRef).includes(l[0])&&(c.value=l[0])}),o.watch(l,()=>{a("update:filterArray",l),l.length===0&&(c.value=null)}),o.watch(c,()=>{c.value&&(l.splice(0),l.push(c.value))});function u(f){c.value=null,l.splice(0),f!==sr.Standard&&l.push(f)}function d(){l.splice(0)}return(f,p)=>(o.openBlock(),o.createBlock(ut,{"filter-array":l,title:o.unref(n)("general.format"),"onClear:filterArray":d},{default:o.withCtx(()=>[o.createElementVNode("div",kM,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,h=>(o.openBlock(),o.createBlock(sn,{prompt:h.name,"is-selected":l.includes(h.nameRef)||!r.allowZero&&h.nameRef==="Standard"&&l.length===0,"onUpdate:isSelected":m=>u(h.nameRef)},null,8,["prompt","is-selected","onUpdate:isSelected"]))),256)),A.value.length>0?(o.openBlock(),o.createBlock(o.unref(qt),{key:0,modelValue:c.value,"onUpdate:modelValue":p[0]||(p[0]=h=>c.value=h),options:A.value,searchable:!1,placeholder:o.unref(n)("general.otherFormats"),label:"name","value-prop":"nameRef",onClear:d},null,8,["modelValue","options","placeholder"])):o.createCommentVNode("",!0)])]),_:1},8,["filter-array","title"]))}});const Sl=Q(EM,[["__scopeId","data-v-22de9b40"]]),SM={filterArray:{type:Array,required:!0,default:[]},availableQueues:{type:Array,required:!0,default:[]}},xl=o.defineComponent({__name:"FilterQueues",props:SM,emits:["update:filterArray"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.ref(r.filterArray),i=o.computed(()=>Object.values(Be().dataJson.queues).filter(l=>r.availableQueues.includes(l.nameRef)&&!l.excludeInMassFilter));o.watch(s,()=>{a("update:filterArray",s.value)});function A(){s.value.splice(0)}return(l,c)=>r.availableQueues.length>1?(o.openBlock(),o.createBlock(ut,{key:0,"filter-array":s.value,title:o.unref(n)("general.queues"),"onClear:filterArray":A},{default:o.withCtx(()=>{var u,d;return[o.createVNode(o.unref(qt),{modelValue:s.value,"onUpdate:modelValue":c[0]||(c[0]=f=>s.value=f),placeholder:(d=(u=i.value)==null?void 0:u.find(f=>f.nameRef===o.unref($w).Ranked))==null?void 0:d.name,class:"runeterra-select",mode:"tags",options:i.value,searchable:!0,label:"name","value-prop":"nameRef"},null,8,["modelValue","placeholder","options"])]}),_:1},8,["filter-array","title"])):o.createCommentVNode("",!0)}}),xM={filterObject:{type:Object,required:!1,default:void 0},showClearAll:{type:Boolean,required:!1,default:!0}},FM={class:"filter"},TM={key:0,class:"top"},IM=o.defineComponent({__name:"SidePanel",props:xM,emits:["clear:filterObject"],setup(e,{emit:t}){const n=e,r=t,a=o.computed(()=>n.filterObject&&Object.values(n.filterObject).some(i=>i.length>0)?"clickable":null);function s(){r("clear:filterObject")}return(i,A)=>{const l=o.resolveDirective("t");return o.openBlock(),o.createElementBlock("div",FM,[n.showClearAll&&n.filterObject?(o.openBlock(),o.createElementBlock("div",TM,[o.withDirectives(o.createElementVNode("p",{class:o.normalizeClass(["clear",a.value]),onClick:s},null,2),[[l,"general.clearAll"]])])):o.createCommentVNode("",!0),o.renderSlot(i.$slots,"default",{},void 0,!0)])}}});const pi=Q(IM,[["__scopeId","data-v-6a93fcc1"]]),dC=o.defineComponent({__name:"FilterDecks",props:_M,emits:["update:filters"],setup(e,{emit:t}){const n=e,r=t,a=o.reactive(n.filters);o.watch(a,()=>{r("update:filters",a)});const s=o.computed(()=>{var A;return(A=Be().dataJson.formats[a.formatFilters[0]??"Standard"])==null?void 0:A.availableQueues});function i(){for(const[,A]of Object.entries(a))A.splice(0)}return(A,l)=>(o.openBlock(),o.createBlock(pi,{"filter-object":n.filters,"onClear:filterObject":i},{default:o.withCtx(()=>[o.createVNode(El,{"filter-array":a.regionFilters,"onUpdate:filterArray":l[0]||(l[0]=c=>a.regionFilters=c)},null,8,["filter-array"]),o.createVNode(Sd,{"filter-array":a.cardFilters,"onUpdate:filterArray":l[1]||(l[1]=c=>a.cardFilters=c)},null,8,["filter-array"]),o.createVNode(Sl,{"filter-array":a.formatFilters,"onUpdate:filterArray":l[2]||(l[2]=c=>a.formatFilters=c)},null,8,["filter-array"]),n.includeDataFilters?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(xl,{"filter-array":a.queueFilters,"onUpdate:filterArray":l[3]||(l[3]=c=>a.queueFilters=c),"available-queues":s.value},null,8,["filter-array","available-queues"]),o.createVNode(xo,{"filter-array":a.sampleSizeFilters,"onUpdate:filterArray":l[4]||(l[4]=c=>a.sampleSizeFilters=c)},null,8,["filter-array"]),o.createVNode(fi,{"filter-array":a.timeFilters,"onUpdate:filterArray":l[5]||(l[5]=c=>a.timeFilters=c)},null,8,["filter-array"]),o.createVNode(Fo,{"filter-array":a.serverFilters,"onUpdate:filterArray":l[6]||(l[6]=c=>a.serverFilters=c)},null,8,["filter-array"])],64)):o.createCommentVNode("",!0)]),_:1},8,["filter-object"]))}}),DM={filters:{type:Object,required:!0,default:{cardFilters:[],regionFilters:[],sampleSizeFilters:[],serverFilters:[],timeFilters:[],formatFilters:[],queueFilters:[]}},includeDataFilters:{type:Boolean,required:!1,default:!0}},UM={filterArray:{type:Array,required:!0,default:[]},placeholder:{type:String,required:!1},title:{type:String,required:!1,default:"Text"}},OM=["placeholder"],LM=o.defineComponent({__name:"FilterText",props:UM,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,r=t,a=o.ref(n.filterArray),s=o.ref("");let i=setTimeout(()=>{},0);a.value.length>0&&(s.value=a.value[0]),o.watch(a,()=>{r("update:filterArray",a.value)}),o.watch(s,()=>{i&&clearTimeout(i),i=setTimeout(()=>{a.value.splice(0),s.value&&a.value.push(s.value)},1e3)});function A(){a.value.splice(0),s.value=""}return(l,c)=>(o.openBlock(),o.createBlock(ut,{"filter-array":a.value,title:n.title,"onClear:filterArray":A},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>s.value=u),placeholder:n.placeholder,type:"text"},null,8,OM),[[o.vModelText,s.value]])]),_:1},8,["filter-array","title"]))}});const tl=Q(LM,[["__scopeId","data-v-e9c34cae"]]),fC=o.defineComponent({__name:"FilterProfile",props:DM,emits:["update:filters"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.reactive(r.filters);o.watch(s,()=>{a("update:filters",s)});const i=o.computed(()=>{var l;return s.formatFilters.length===0?[]:(l=Be().dataJson.formats[s.formatFilters[0]??"Standard"])==null?void 0:l.availableQueues});function A(){for(const[,l]of Object.entries(s))l.splice(0)}return(l,c)=>(o.openBlock(),o.createBlock(pi,{"filter-object":r.filters,"onClear:filterObject":A},{default:o.withCtx(()=>[o.createVNode(El,{"filter-array":s.regionFilters,"onUpdate:filterArray":c[0]||(c[0]=u=>s.regionFilters=u)},null,8,["filter-array"]),o.createVNode(Sd,{"filter-array":s.cardFilters,"onUpdate:filterArray":c[1]||(c[1]=u=>s.cardFilters=u)},null,8,["filter-array"]),o.createVNode(tl,{"filter-array":s.deckCodeFilters,"onUpdate:filterArray":c[2]||(c[2]=u=>s.deckCodeFilters=u),placeholder:o.unref(n)("general.deckCode"),title:o.unref(n)("general.deckCode")},null,8,["filter-array","placeholder","title"]),o.createVNode(tl,{"filter-array":s.playerFilters,"onUpdate:filterArray":c[3]||(c[3]=u=>s.playerFilters=u),placeholder:o.unref(n)("general.players"),title:o.unref(n)("general.players")},null,8,["filter-array","placeholder","title"]),o.createVNode(xo,{"filter-array":s.sampleSizeFilters,"onUpdate:filterArray":c[4]||(c[4]=u=>s.sampleSizeFilters=u)},null,8,["filter-array"]),o.createVNode(Sl,{"allow-zero":!0,"filter-array":s.formatFilters,"onUpdate:filterArray":c[5]||(c[5]=u=>s.formatFilters=u)},null,8,["filter-array"]),o.createVNode(xl,{"filter-array":s.queueFilters,"onUpdate:filterArray":c[6]||(c[6]=u=>s.queueFilters=u),"available-queues":i.value},null,8,["filter-array","available-queues"]),o.createVNode(fi,{"allow-zero":!0,"filter-array":s.timeFilters,"onUpdate:filterArray":c[7]||(c[7]=u=>s.timeFilters=u)},null,8,["filter-array"])]),_:1},8,["filter-object"]))}}),QM={filterValue:{type:Object,required:!0,default:{attribute:"attack",equality:">",number:0}}},MM={class:"advanced-filter-item"},NM=["value"],PM=o.defineComponent({__name:"AdvancedFilterItem",props:QM,emits:["update:filterValue"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=[{value:"attack",label:n("cards.attack")},{value:"health",label:n("cards.health")},{value:"cost",label:n("cards.cost")},{value:"quantityOwned",label:n("cards.quantityOwned")}],i=o.ref(r.filterValue.attribute);o.watch(i,()=>{a("update:filterValue",{attribute:i.value,equality:r.filterValue.equality,number:r.filterValue.number})});function A(){let c=">";r.filterValue.equality===">"?c="<":r.filterValue.equality==="<"&&(c="="),a("update:filterValue",{attribute:r.filterValue.attribute,equality:c,number:r.filterValue.number})}function l(c){a("update:filterValue",{attribute:r.filterValue.attribute,equality:r.filterValue.equality,number:Number(c.target.value)})}return(c,u)=>(o.openBlock(),o.createElementBlock("div",MM,[o.createVNode(o.unref(qt),{modelValue:i.value,"onUpdate:modelValue":u[0]||(u[0]=d=>i.value=d),class:"advanced-attribute",options:s,"can-clear":!1,label:"label","value-prop":"value"},null,8,["modelValue"]),o.createElementVNode("div",{class:"equality-button",onClick:A},o.toDisplayString(r.filterValue.equality),1),o.createElementVNode("input",{type:"number",class:"equality-number",value:r.filterValue.number,onInput:l},null,40,NM)]))}});const _g=Q(PM,[["__scopeId","data-v-eb2d535d"]]),RM={filterValue:{type:Array,required:!0,default:[]}},HM=o.defineComponent({__name:"FilterAdvanced",props:RM,emits:["update:filterValue"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.reactive(r.filterValue);o.watch(s,()=>{a("update:filterValue",s)});function i(){s.splice(0)}function A(){s.push({attribute:"attack",equality:">",number:0})}return(l,c)=>(o.openBlock(),o.createBlock(ut,{class:"advanced-filters","filter-array":s,title:o.unref(n)("general.advanced"),"onClear:filterArray":i},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s,(u,d)=>(o.openBlock(),o.createBlock(_g,{key:d,"filter-value":s[d],"onUpdate:filterValue":f=>s[d]=f,class:"advanced-filter-item"},null,8,["filter-value","onUpdate:filterValue"]))),128)),o.createElementVNode("div",{class:"new-advanced-filter",onClick:A},o.toDisplayString(o.unref(n)("general.newAdvancedFilter")),1)]),_:1},8,["filter-array","title"]))}});const Cg=Q(HM,[["__scopeId","data-v-6c23ee29"]]),VM={filterArray:{type:Array,required:!0,default:[]}},$M={class:"checkboxes-container"},kg=o.defineComponent({__name:"FilterTypes",props:VM,emits:["update:filterArray"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.computed(()=>Be().dataJson.types.filter(c=>["Unit","Spell","Landmark","Equipment"].includes(c.nameRef))),i=o.reactive(r.filterArray);o.watch(i,()=>{a("update:filterArray",i)});function A(){i.splice(0)}function l(c){const u=i.indexOf(c);if(u===-1){i.push(c);return}i.splice(u,1)}return(c,u)=>(o.openBlock(),o.createBlock(ut,{"filter-array":r.filterArray,title:o.unref(n)("general.types"),"onClear:filterArray":A},{default:o.withCtx(()=>[o.createElementVNode("div",$M,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,d=>(o.openBlock(),o.createBlock(sn,{key:d.nameRef,icon:`url(${d.icon})`,prompt:d.name,"is-selected":i.includes(d.nameRef),"onUpdate:isSelected":f=>l(d.nameRef)},null,8,["icon","prompt","is-selected","onUpdate:isSelected"]))),128))])]),_:1},8,["filter-array","title"]))}}),KM={filters:{type:Object,required:!0,default:{advancedFilters:[],regionFilters:[],manaCostFilters:[],typeFilters:[],rarityFilters:[],setFilters:[],keywordFilters:[],textFilters:[],cardFormatFilters:[]}}},zM={filterArray:{type:Array,required:!0,default:[]}},WM={class:"checkboxes-container"},GM=o.defineComponent({__name:"FilterCardFormats",props:zM,emits:["update:filterArray"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.reactive(r.filterArray);o.watch(s,()=>{a("update:filterArray",s)});function i(){s.splice(0)}function A(l){const c=s.indexOf(l);if(c===-1){s.push(l);return}s.splice(c,1)}return(l,c)=>(o.openBlock(),o.createBlock(ut,{"filter-array":s,title:o.unref(n)("general.format"),"onClear:filterArray":i},{default:o.withCtx(()=>[o.createElementVNode("div",WM,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(Be)().dataJson.cardFormats.filter(u=>[o.unref(sr).Standard,o.unref(sr).Eternal].includes(u.nameRef)),u=>(o.openBlock(),o.createBlock(sn,{key:u.nameRef,prompt:u.name,"is-selected":s.includes(u.nameRef),"onUpdate:isSelected":d=>A(u.nameRef)},null,8,["prompt","is-selected","onUpdate:isSelected"]))),128))])]),_:1},8,["filter-array","title"]))}}),pC=o.defineComponent({__name:"FilterCards",props:KM,emits:["update:filters"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.reactive(r.filters);o.watch(s,()=>{a("update:filters",s)});const i=o.computed(()=>{var l;return"formatFilters"in s?(l=Be().dataJson.formats[s.formatFilters[0]??"Standard"])==null?void 0:l.availableQueues:[]});function A(){for(const[,l]of Object.entries(s))l.splice(0)}return(l,c)=>(o.openBlock(),o.createBlock(pi,{"filter-object":r.filters,"onClear:filterObject":A},{default:o.withCtx(()=>[o.createVNode(o.unref(tl),{"filter-array":s.textFilters,"onUpdate:filterArray":c[0]||(c[0]=u=>s.textFilters=u),placeholder:o.unref(n)("general.text"),title:o.unref(n)("general.text")},null,8,["filter-array","placeholder","title"]),o.createVNode(vg,{"filter-array":s.manaCostFilters,"onUpdate:filterArray":c[1]||(c[1]=u=>s.manaCostFilters=u)},null,8,["filter-array"]),"cardFormatFilters"in s?(o.openBlock(),o.createBlock(GM,{key:0,"filter-array":s.cardFormatFilters,"onUpdate:filterArray":c[2]||(c[2]=u=>s.cardFormatFilters=u)},null,8,["filter-array"])):o.createCommentVNode("",!0),o.createVNode(El,{"filter-array":s.regionFilters,"onUpdate:filterArray":c[3]||(c[3]=u=>s.regionFilters=u)},null,8,["filter-array"]),o.createVNode(kg,{"filter-array":s.typeFilters,"onUpdate:filterArray":c[4]||(c[4]=u=>s.typeFilters=u)},null,8,["filter-array"]),o.createVNode(yg,{"filter-array":s.rarityFilters,"onUpdate:filterArray":c[5]||(c[5]=u=>s.rarityFilters=u)},null,8,["filter-array"]),o.createVNode(Bg,{"filter-array":s.setFilters,"onUpdate:filterArray":c[6]||(c[6]=u=>s.setFilters=u)},null,8,["filter-array"]),o.createVNode(wg,{"filter-array":s.keywordFilters,"onUpdate:filterArray":c[7]||(c[7]=u=>s.keywordFilters=u)},null,8,["filter-array"]),o.createVNode(Cg,{"filter-value":s.advancedFilters,"onUpdate:filterValue":c[8]||(c[8]=u=>s.advancedFilters=u)},null,8,["filter-value"]),"serverFilters"in s?(o.openBlock(),o.createBlock(o.unref(Fo),{key:1,"filter-array":s.serverFilters,"onUpdate:filterArray":c[9]||(c[9]=u=>s.serverFilters=u)},null,8,["filter-array"])):o.createCommentVNode("",!0),"timeFilters"in s?(o.openBlock(),o.createBlock(fi,{key:2,"filter-array":s.timeFilters,"onUpdate:filterArray":c[10]||(c[10]=u=>s.timeFilters=u)},null,8,["filter-array"])):o.createCommentVNode("",!0),"formatFilters"in s?(o.openBlock(),o.createBlock(Sl,{key:3,"filter-array":s.formatFilters,"onUpdate:filterArray":c[11]||(c[11]=u=>s.formatFilters=u)},null,8,["filter-array"])):o.createCommentVNode("",!0),"queueFilters"in s?(o.openBlock(),o.createBlock(xl,{key:4,"filter-array":s.queueFilters,"onUpdate:filterArray":c[12]||(c[12]=u=>s.queueFilters=u),"available-queues":i.value},null,8,["filter-array","available-queues"])):o.createCommentVNode("",!0)]),_:1},8,["filter-object"]))}}),jM={regionRef:{type:String,required:!0,default:"Ionia"}},YM={text:{type:String,required:!0,default:""}},qM=["innerHTML"],XM=o.defineComponent({__name:"TippyText",props:YM,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",{class:"tippy-text",innerHTML:t.text},null,8,qM))}});const xd=Q(XM,[["__scopeId","data-v-715107fe"]]),JM={class:"region-item"},ZM=["alt","src"],eN=o.defineComponent({__name:"RegionItem",props:jM,setup(e){const t=e,n=o.ref(null),r=o.ref(null),a=o.computed(()=>Be().dataJson.regions.find(s=>s.nameRef==t.regionRef)??Be().dataJson.runeterraChampions.find(s=>s.nameRef===t.regionRef));return o.onMounted(()=>{tt(n.value,{content:r.value,arrow:!0})}),(s,i)=>{var A,l,c;return o.openBlock(),o.createElementBlock("div",JM,[o.createElementVNode("img",{ref_key:"regionImg",ref:n,alt:(A=a.value)==null?void 0:A.name,src:(l=a.value)==null?void 0:l.icon,class:"region-img"},null,8,ZM),o.createElementVNode("div",{ref_key:"regionTippy",ref:r},[o.createVNode(xd,{text:(c=a.value)==null?void 0:c.name},null,8,["text"])],512)])}}});const Fl=Q(eN,[["__scopeId","data-v-3d756f50"]]),tN={deckCode:{type:String,required:!0,default:""},deck:{type:Object,required:!1},cards:{type:Array,required:!1},describeRegions:{type:Boolean,required:!1,default:!1}},nN={class:"regions-line"},rN={key:0,class:"describe-regions"},aN={class:"lines"},sN=o.defineComponent({__name:"RegionsLine",props:tN,setup(e){const{t}=Y(),n=e,r=o.computed(()=>n.deck?n.deck:Et(n.deckCode)),a=o.computed(()=>n.cards?n.cards:ln(r.value)),s=o.computed(()=>{const A={};for(const l of cd(r.value))A[l]=0;for(const l of a.value)for(const c of l.regionRefs)c in A&&(A[c]+=r.value[l.cardCode]);return A});function i(A,l){return{flexGrow:A,backgroundColor:`var(--color-${l}, var(--color-Runeterra))`}}return(A,l)=>(o.openBlock(),o.createElementBlock("div",nN,[n.describeRegions?(o.openBlock(),o.createElementBlock("div",rN,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,(c,u)=>(o.openBlock(),o.createElementBlock("div",{key:u,class:"region-description"},[o.createVNode(Fl,{"region-ref":u,class:"icon"},null,8,["region-ref"]),o.createElementVNode("span",null,o.toDisplayString(`${c} ${o.unref(t)("general.cards")}`),1)]))),128))])):o.createCommentVNode("",!0),o.createElementVNode("div",aN,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,(c,u)=>(o.openBlock(),o.createElementBlock("div",{key:u,style:o.normalizeStyle(i(c,u)),class:"region-line"},null,4))),128))])]))}});const Eg=Q(sN,[["__scopeId","data-v-f1f94f8b"]]),iN={routerLink:{type:Object,required:!0,default:{path:"/404"}},cardCode:{type:String,required:!0,default:"01IO001"},toggledStats:{type:Object,required:!0,default:{matches:!0,winrate:!0,inclusion:!0,avgCopies:!0,mulliganWinrate:!1,kept:!1,drawnWinrate:!1,turnsHeld:!1,turnPlayed:!1}},index:{type:Number,required:!0,default:1},matches:{type:Number,required:!0,default:1},region:{type:String,required:!0,default:""},wins:{type:Number,required:!0,default:1},inclusion:{type:Number,required:!0,default:.5},avgCopies:{type:Number,required:!0,default:1},mulliganWinrate:{type:Number,required:!1,default:void 0},keptInMulligan:{type:Number,required:!1,default:void 0},drawnWinrate:{type:Number,required:!1,default:void 0},turnsHeld:{type:Number,required:!1,default:void 0},turnPlayed:{type:Number,required:!1,default:void 0}},oN={class:"cards-row-background-wrapper"},AN={class:"cards-row-background"},lN={class:"cards-row wrapper"},cN={key:0,class:"column-content"},uN={key:2,class:"column-content"},dN={key:3,class:"column-content"},fN={key:5,class:"column-content"},pN={key:7,class:"column-content"},hN={key:8,class:"column-content"},mN=o.defineComponent({__name:"CardsRow",props:iN,setup(e){const t=e,n=o.computed(()=>["",_e().callbacks.cardImageCallback(t.cardCode,_t.Banner)]);return(r,a)=>{const s=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(s,{to:t.routerLink,class:"wrapper"},{default:o.withCtx(()=>[o.createElementVNode("div",{class:"cards-row-wrapper wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",oN,[o.createElementVNode("div",AN,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,i=>(o.openBlock(),o.createElementBlock("div",{key:i,class:"background-card",style:o.normalizeStyle({"--background-image":`url(${i})`})},null,4))),128))])]),o.createElementVNode("div",lN,[o.createElementVNode("div",{class:"column-content deck-highlight-wrapper",onClick:a[0]||(a[0]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createVNode(bt,{class:"card-slice-item","card-code-prop":t.cardCode,"maintain-aspect-ratio":!1,color:`var(--color-${t.region}-rgb, var(--color-primary-2-rgb))`,"router-link":t.routerLink},null,8,["card-code-prop","color","router-link"])]),t.toggledStats.matches?(o.openBlock(),o.createElementBlock("div",cN,o.toDisplayString(o.unref(Te)(t.matches)),1)):o.createCommentVNode("",!0),t.toggledStats.winrate?(o.openBlock(),o.createElementBlock("div",{key:1,class:"column-content",style:o.normalizeStyle({color:`var(${o.unref(Yn)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Te)(t.wins/t.matches*100,2,3)+"%"),5)):o.createCommentVNode("",!0),t.toggledStats.inclusion?(o.openBlock(),o.createElementBlock("div",uN,o.toDisplayString(o.unref(Te)(t.inclusion*100,2,3)+"%"),1)):o.createCommentVNode("",!0),t.toggledStats.avgCopies?(o.openBlock(),o.createElementBlock("div",dN,o.toDisplayString(o.unref(Te)(t.avgCopies,2,3)),1)):o.createCommentVNode("",!0),t.toggledStats.mulliganWinrate?(o.openBlock(),o.createElementBlock("div",{key:4,class:"column-content",style:o.normalizeStyle({color:`var(${o.unref(Yn)(t.mulliganWinrate,t.wins/t.matches)})`})},o.toDisplayString(t.mulliganWinrate?o.unref(Te)(t.mulliganWinrate*100,2,3)+"%":"-"),5)):o.createCommentVNode("",!0),t.toggledStats.keptInMulligan?(o.openBlock(),o.createElementBlock("div",fN,o.toDisplayString(t.keptInMulligan?o.unref(Te)(t.keptInMulligan*100,2,3)+"%":"-"),1)):o.createCommentVNode("",!0),t.toggledStats.drawnWinrate?(o.openBlock(),o.createElementBlock("div",{key:6,class:"column-content",style:o.normalizeStyle({color:`var(${o.unref(Yn)(t.drawnWinrate,t.wins/t.matches)})`})},o.toDisplayString(t.drawnWinrate?o.unref(Te)(t.drawnWinrate*100,2,3)+"%":"-"),5)):o.createCommentVNode("",!0),t.toggledStats.turnPlayed?(o.openBlock(),o.createElementBlock("div",pN,o.toDisplayString(t.turnPlayed?o.unref(Te)(t.turnPlayed,2,3):"-"),1)):o.createCommentVNode("",!0),t.toggledStats.turnsHeld?(o.openBlock(),o.createElementBlock("div",hN,o.toDisplayString(t.turnsHeld?o.unref(Te)(t.turnsHeld,2,3):"-"),1)):o.createCommentVNode("",!0)])],4)]),_:1},8,["to"])}}});const Sg=Q(mN,[["__scopeId","data-v-e0c98d3c"]]),gN={cardRows:{type:Array,required:!0,default:[]},cardsRowToggle:{type:Object,requied:!0,default:{card:!0,matches:!0,winrate:!0,inclusion:!0,avgCopies:!0,mulliganWinrate:!0,keptInMulligan:!0,drawnWinrate:!0,turnsHeld:!0,turnPlayed:!0}},loading:{type:Boolean,required:!1,default:!1}};var we=(e=>(e.UP="sort-up",e.DOWN="sort-down",e.NEITHER="sort-neither",e.NOT_SORTABLE="not-sortable",e))(we||{});const vN={headingItems:{type:Array,required:!0,default:[]},loading:{type:Boolean,required:!1,default:!1}};const yN={},BN={class:"loader"};function wN(e,t){return o.openBlock(),o.createElementBlock("div",BN)}const xg=Q(yN,[["render",wN],["__scopeId","data-v-91218ab0"]]),bN={class:"table-wrapper"},_N={class:"table no-scrollbar"},CN={class:"heading wrapper"},kN=["onClick"],EN={class:"sort-icons"},SN={key:0,class:"no-content loading"},xN=o.defineComponent({__name:"LargeTable",props:vN,emits:["toggleSort"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s={"--background-image":`url(${_e().callbacks.cardImageCallback("01FR008",_t.Full)})`},i=o.computed(()=>r.headingItems.filter(A=>A.isShown));return(A,l)=>(o.openBlock(),o.createElementBlock("div",bN,[o.createElementVNode("div",_N,[l[0]||(l[0]=o.createElementVNode("div",{class:"heading-background-outer"},[o.createElementVNode("div",{class:"heading-background-absolute"}),o.createElementVNode("div",{class:"heading-background-inner"})],-1)),o.createElementVNode("div",CN,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,c=>(o.openBlock(),o.createElementBlock("div",{key:c.title,class:o.normalizeClass(["heading-cell column-content",c.sortDirection]),onClick:u=>a("toggleSort",c.id)},[o.createElementVNode("div",null,o.toDisplayString(c.title),1),o.createElementVNode("div",EN,[o.createVNode(o.unref(Se),{icon:"sort-up",class:"sort-icon"}),o.createVNode(o.unref(Se),{icon:"sort-down",class:"sort-icon"})])],10,kN))),128))]),o.renderSlot(A.$slots,"default",{},()=>[r.loading?(o.openBlock(),o.createElementBlock("div",SN,[o.createVNode(xg)])):(o.openBlock(),o.createElementBlock("div",{key:1,class:"no-content no-results",style:s},[o.createElementVNode("h2",null,o.toDisplayString(o.unref(n)("general.noResults")),1),o.createElementVNode("h4",null,o.toDisplayString(o.unref(n)("general.tryAgain")),1)]))],!0)])]))}});const Fa=Q(xN,[["__scopeId","data-v-8353300c"]]);function hi(e,t){const n=t.value.find(a=>a.id===e);if(!n||n.sortDirection===we.NOT_SORTABLE)return null;const r=n.sortDirection;return FN(t),r===we.NEITHER?n.sortDirection=we.DOWN:r===we.DOWN?n.sortDirection=we.UP:n.sortDirection=we.DOWN,n}function FN(e){e.value.forEach(t=>{t.sortDirection!==we.NOT_SORTABLE&&(t.sortDirection=we.NEITHER)})}const TN=o.defineComponent({__name:"CardsTable",props:gN,emits:["sort-updated"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=[{id:"card",isAlwaysShown:!0,isSortable:!1,title:n("general.card")},{id:"matches",isAlwaysShown:!1,isSortable:!0,title:n("general.matches")},{id:"winrate",isAlwaysShown:!1,isSortable:!0,title:n("general.winrate")},{id:"inclusion",isAlwaysShown:!1,isSortable:!0,title:n("general.inclusion")},{id:"avgCopies",isAlwaysShown:!1,isSortable:!0,title:n("general.avgCopies")},{id:"mulliganWinrate",isAlwaysShown:!1,isSortable:!0,title:n("general.mulliganWinrate")},{id:"keptInMulligan",isAlwaysShown:!1,isSortable:!0,title:n("general.keptInMulligan")},{id:"drawnWinrate",isAlwaysShown:!1,isSortable:!0,title:n("general.drawnWinrate")},{id:"turnsHeld",isAlwaysShown:!1,isSortable:!0,title:n("general.turnsHeld")},{id:"turnPlayed",isAlwaysShown:!1,isSortable:!0,title:n("general.turnPlayed")}];let i=!1;const A=o.ref(s.map(u=>{let d=we.NEITHER;return u.isSortable||(d=we.NOT_SORTABLE),!i&&u.isSortable&&(d=we.DOWN,i=!0),{id:u.id,isShown:r.cardsRowToggle[u.id],sortDirection:d,title:u.title}})),l=o.computed(()=>({"--table-grid-template-columns":`repeat(${Object.values(r.cardsRowToggle).reduce((d,f)=>f?d+1:d,0)}, 1fr)`}));function c(u){const d=hi(u,A);d&&a("sort-updated",d)}return(u,d)=>(o.openBlock(),o.createBlock(Fa,{class:"large-table",loading:r.loading,"heading-items":A.value,style:o.normalizeStyle(l.value),onToggleSort:c},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.cardRows,(f,p)=>(o.openBlock(),o.createBlock(Sg,{key:f.cardCode+f.region,"card-code":f.cardCode,matches:f.matches,wins:f.wins,index:p+2,"avg-copies":f.avgCopies,"drawn-winrate":f.drawnWinrate,"kept-in-mulligan":f.keptInMulligan,"mulligan-winrate":f.mulliganWinrate,inclusion:f.inclusion,"turns-held":f.turnsHeld,"turn-played":f.turnPlayed,"toggled-stats":r.cardsRowToggle,region:f.region,"router-link":o.unref(_e)().callbacks.cardCodeRouterLinkCallback(f.cardCode)},null,8,["card-code","matches","wins","index","avg-copies","drawn-winrate","kept-in-mulligan","mulligan-winrate","inclusion","turns-held","turn-played","toggled-stats","region","router-link"]))),128))]),_:1},8,["loading","heading-items","style"]))}});const hC=Q(TN,[["__scopeId","data-v-1894b267"]]),IN={regions:{type:Array,required:!0,default:[]}},DN={class:"deck-highlight-regions"},UN=o.defineComponent({__name:"DeckHighlightRegions",props:IN,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",DN,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.regions,a=>(o.openBlock(),o.createElementBlock("div",{key:a,class:"region-item-wrapper"},[o.createVNode(Fl,{class:"region-item","region-ref":a},null,8,["region-ref"])]))),128))]))}});const Tl=Q(UN,[["__scopeId","data-v-d28f95f4"]]),ON={},LN={xmlns:"http://www.w3.org/2000/svg",viewBox:"215.7 48.9 276.9 496"};function QN(e,t){return o.openBlock(),o.createElementBlock("svg",LN,[...t[0]||(t[0]=[o.createStaticVNode('<path fill="#146743" d="m271 136-54 90 150 316 14-50 29-312-51-130-88 86Z"></path><path fill="#419a4a" d="m356 121-75 105 86 316 14-50 29-312-54-59Z"></path><path fill="#baffb6" d="M410 180 359 50l-3 71 54 59Z"></path><path fill="#437f41" d="m359 50-88 86 10 90 75-105 3-71ZM281 360l86 182-86-316v134Z"></path><path fill="#419a4a" d="m454 332 28 33-33 85-4-13-8-85 17-20Z"></path>',5)])])}const Fg=Q(ON,[["render",QN]]),MN={deck:{type:Object,required:!0,default:{}}},NN={class:"gems-text"},PN={class:"gems-cost-title"},RN={class:"gems-cost-value"},HN={class:"gems-cost-title"},VN={class:"gems-cost-value"},$N=o.defineComponent({__name:"GemsCost",props:MN,setup(e){const{t}=Y(),n=e,r=o.ref(null),a=o.ref(null),s=o.computed(()=>_u(n.deck,!1)),i=o.computed(()=>_u(n.deck,!0));return o.onMounted(()=>{tt(r.value,{content:a.value,arrow:!0,duration:0})}),(A,l)=>{var c,u,d;return o.openBlock(),o.createElementBlock("div",{ref_key:"gemsCostDiv",ref:r,class:"gems-cost"},[o.createVNode(Fg,{class:"shards-icon"}),o.createElementVNode("div",NN,o.toDisplayString((c=i.value!==null?i.value:s.value)==null?void 0:c.toLocaleString()),1),o.createElementVNode("div",{ref_key:"gemsCostTippyDiv",ref:a,class:"gems-cost-tippy"},[i.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",PN,o.toDisplayString(o.unref(t)("deck.personalCost")),1),o.createElementVNode("div",RN,o.toDisplayString((u=i.value)==null?void 0:u.toLocaleString()),1),l[0]||(l[0]=o.createElementVNode("hr",{class:"divider"},null,-1))],64)):o.createCommentVNode("",!0),o.createElementVNode("div",HN,o.toDisplayString(o.unref(t)("deck.originalCost")),1),o.createElementVNode("div",VN,o.toDisplayString((d=s.value)==null?void 0:d.toLocaleString()),1)],512)],512)}}});const Tg=Q($N,[["__scopeId","data-v-25f680e9"]]),KN={class:"language-selection"},zN={class:"selection-panel"},WN=o.defineComponent({__name:"LanguageSelection",setup(e){const{locale:t,availableLocales:n}=Y(),r={en:"English",de:"Deutsch",es:"Español",fr:"Français",it:"Italiano",ja:"日本語",ko:"한국어",pl:"Polski",pt:"Português",th:"ไทย",tr:"Türkçe",ru:"Русский",zh:"中文"},a=pn.useRoute(),s=o.ref(!1),i=o.computed(()=>n.sort(l=>l===t.value?-1:1));function A(){s.value=!0}return(l,c)=>{const u=o.resolveComponent("RouterLink");return o.openBlock(),o.createElementBlock("div",KN,[o.createVNode(o.unref(Se),{ref:"languageIcon",icon:"language",class:"icon",onClick:A},null,512),o.createVNode(Lr,{"show-modal":s.value,"onUpdate:showModal":c[0]||(c[0]=d=>s.value=d)},{default:o.withCtx(()=>[o.createElementVNode("div",zN,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,d=>(o.openBlock(),o.createBlock(u,{class:o.normalizeClass(o.unref(t)===d?"selected":""),locale:d,key:d,to:{...o.unref(a),params:{...o.unref(a).params,lang:d}}},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(r[d]),1)]),_:2},1032,["class","locale","to"]))),128))])]),_:1},8,["show-modal"])])}}});const nl=Q(WN,[["__scopeId","data-v-8a6f5e0d"]]),GN={cardCodes:{type:Array,required:!0,default:[]},regions:{type:Array,required:!0,default:[]}},mC={routerLink:{type:Object,required:!0,default:{path:"/404"}},cardProp:{type:Object,required:!1,default:void 0},cardCodeProp:{type:String,required:!1,default:void 0},ignoreCardItem:{type:Boolean,required:!1},regions:{type:Array,required:!1,default:void 0},colorOverride:{type:String,required:!1,default:void 0}},jN={class:"circle-card-item"},YN=["alt","src"],qN=o.defineComponent({__name:"CircleCardItem",props:mC,setup(e){const t=e,n=yl(t.cardProp,t.cardCodeProp,!0),r=o.ref(null),a=o.ref(null),s=o.ref(null),i=o.ref(null),A=o.computed(()=>{var c;return _e().callbacks.cardImageCallback(((c=n.value)==null?void 0:c.cardCode)??"",_t.Icon)}),l=o.computed(()=>n.value===void 0?"--color-primary-2":Ns(n.value,t.regions));return o.onMounted(()=>{t.ignoreCardItem||tt(r.value,{content:a.value,placement:"right",arrow:!0,touch:!1,duration:0,role:"card-image",onShown:c=>{const u=c.popper.innerHTML.includes("right")?"right-start":"left-start";i.value=u},onHidden:()=>{i.value=null}})}),(c,u)=>{const d=o.resolveComponent("RouterLink");return o.openBlock(),o.createElementBlock("div",jN,[o.createVNode(d,{to:t.routerLink,class:"circle-card-link",onClick:u[0]||(u[0]=o.withModifiers(()=>{},["stop","prevent"]))},{default:o.withCtx(()=>{var f;return[o.createElementVNode("img",{ref_key:"circleCardImg",ref:r,alt:(f=o.unref(n))==null?void 0:f.name,src:A.value,class:"circle-card-img",style:o.normalizeStyle({borderColor:t.colorOverride??l.value})},null,12,YN)]}),_:1},8,["to"]),o.createElementVNode("div",{ref_key:"circleCardTippy",ref:a,class:"circle-card-tippy"},[!c.ignoreCardItem&&o.unref(n)?(o.openBlock(),o.createBlock(si,{key:0,ref_key:"cardItem",ref:s,"card-code-prop":o.unref(n).cardCode,"is-deck-builder":!1,"is-root":!0,"show-tippy-location":i.value},null,8,["card-code-prop","show-tippy-location"])):o.createCommentVNode("",!0)],512)])}}});const Ta=Q(qN,[["__scopeId","data-v-3ea9e838"]]),XN={cards:{type:Array,required:!1,default:void 0},cardCodes:{type:Array,required:!1,default:void 0},regions:{type:Array,required:!1,default:[]}},JN={class:"deck-highlight-cards"},ZN=o.defineComponent({__name:"DeckHighlightCards",props:XN,setup(e){const t=e,n=o.computed(()=>{if(t.cards)return t.cards;if(t.cardCodes)return t.cardCodes.map(r=>mn().cardJsonObject[r]).filter(r=>r!==void 0);throw new Error("Cards or CardCodes must be defined.")});return(r,a)=>(o.openBlock(),o.createElementBlock("div",JN,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,(s,i)=>(o.openBlock(),o.createElementBlock("div",{key:s.cardCode??i,class:"circle-card-item-wrapper"},[o.createVNode(Ta,{class:"circle-card-item","card-prop":s,regions:t.regions,"router-link":o.unref(_e)().callbacks.cardCodeRouterLinkCallback(s.cardCode)},null,8,["card-prop","regions","router-link"])]))),128))]))}});const Il=Q(ZN,[["__scopeId","data-v-021c3530"]]),eP=o.defineComponent({__name:"ArchetypeSidePanelHighlight",props:GN,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createBlock(ut,{class:"archetype-side-panel-highlight"},{default:o.withCtx(()=>[o.createVNode(Tl,{class:"deck-highlight-regions",regions:t.regions},null,8,["regions"]),o.createVNode(Il,{class:o.normalizeClass(["deck-highlight-cards",t.cardCodes.length===1?"single":""]),"card-codes":t.cardCodes},null,8,["class","card-codes"])]),_:1}))}});const Fd=Q(eP,[["__scopeId","data-v-ff538f6f"]]),tP={deckcode:{type:String,required:!0,default:""},filters:{type:Object,required:!0,default:{sampleSizeFilters:[],serverFilters:[],timeFilters:[],formatFilters:[],queueFilters:[]}},builtDeckProps:{type:Object,required:!1,default:void 0}},nP={deckCode:{type:String,required:!0,default:""},info:{type:String,required:!0,default:"typeRef"}};/*!
|
|
629
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ir(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uy(Object(n),!0).forEach(function(r){Zt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function iO(e,t){if(e==null)return{};var n,r,a=oO(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function oO(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function bh(e){return rO(e)||aO(e)||cO(e)||sO()}function AO(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lO(e){var t=AO(e,"string");return typeof t=="symbol"?t:t+""}function Du(e){"@babel/helpers - typeof";return Du=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Du(e)}function cO(e,t){if(e){if(typeof e=="string")return wh(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wh(e,t):void 0}}function bA(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Zt({},e,t):{}}function uO(e){var t,n=(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-flip":e.flip===!0,"fa-flip-horizontal":e.flip==="horizontal"||e.flip==="both","fa-flip-vertical":e.flip==="vertical"||e.flip==="both"},Zt(Zt(Zt(Zt(Zt(Zt(Zt(Zt(Zt(Zt(t,"fa-".concat(e.size),e.size!==null),"fa-rotate-".concat(e.rotation),e.rotation!==null),"fa-rotate-by",e.rotateBy),"fa-pull-".concat(e.pull),e.pull!==null),"fa-swap-opacity",e.swapOpacity),"fa-bounce",e.bounce),"fa-shake",e.shake),"fa-beat",e.beat),"fa-fade",e.fade),"fa-beat-fade",e.beatFade),Zt(Zt(Zt(Zt(t,"fa-flash",e.flash),"fa-spin-pulse",e.spinPulse),"fa-spin-reverse",e.spinReverse),"fa-width-auto",e.widthAuto));return Object.keys(n).map(function(r){return n[r]?r:null}).filter(function(r){return r})}var dO=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},tC={exports:{}};(function(e){(function(t){var n=function(g,w,B){if(!c(w)||d(w)||f(w)||p(w)||l(w))return w;var v,_=0,b=0;if(u(w))for(v=[],b=w.length;_<b;_++)v.push(n(g,w[_],B));else{v={};for(var k in w)Object.prototype.hasOwnProperty.call(w,k)&&(v[g(k,B)]=n(g,w[k],B))}return v},r=function(g,w){w=w||{};var B=w.separator||"_",v=w.split||/(?=[A-Z])/;return g.split(v).join(B)},a=function(g){return h(g)?g:(g=g.replace(/[\-_\s]+(.)?/g,function(w,B){return B?B.toUpperCase():""}),g.substr(0,1).toLowerCase()+g.substr(1))},s=function(g){var w=a(g);return w.substr(0,1).toUpperCase()+w.substr(1)},i=function(g,w){return r(g,w).toLowerCase()},A=Object.prototype.toString,l=function(g){return typeof g=="function"},c=function(g){return g===Object(g)},u=function(g){return A.call(g)=="[object Array]"},d=function(g){return A.call(g)=="[object Date]"},f=function(g){return A.call(g)=="[object RegExp]"},p=function(g){return A.call(g)=="[object Boolean]"},h=function(g){return g=g-0,g===g},m=function(g,w){var B=w&&"process"in w?w.process:w;return typeof B!="function"?g:function(v,_){return B(v,g,_)}},y={camelize:a,decamelize:i,pascalize:s,depascalize:i,camelizeKeys:function(g,w){return n(m(a,w),g)},decamelizeKeys:function(g,w){return n(m(i,w),g,w)},pascalizeKeys:function(g,w){return n(m(s,w),g)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=y:t.humps=y})(dO)})(tC);var fO=tC.exports,pO=["class","style"];function hO(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),a=fO.camelize(n.slice(0,r)),s=n.slice(r+1).trim();return t[a]=s,t},{})}function mO(e){return e.split(/\s+/).reduce(function(t,n){return t[n]=!0,t},{})}function cg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string")return e;var r=(e.children||[]).map(function(l){return cg(l)}),a=Object.keys(e.attributes||{}).reduce(function(l,c){var u=e.attributes[c];switch(c){case"class":l.class=mO(u);break;case"style":l.style=hO(u);break;default:l.attrs[c]=u}return l},{attrs:{},class:{},style:{}});n.class;var s=n.style,i=s===void 0?{}:s,A=iO(n,pO);return o.h(e.tag,ir(ir(ir({},t),{},{class:a.class,style:ir(ir({},a.style),i)},a.attrs),A),r)}var nC=!1;try{nC=process.env.NODE_ENV==="production"}catch{}function gO(){if(!nC&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function dy(e){if(e&&Du(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(xu.icon)return xu.icon(e);if(e===null)return null;if(Du(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}var Se=o.defineComponent({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(t){return[!0,!1,"horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},maskId:{type:String,default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(Number.parseInt(t,10))>-1}},rotateBy:{type:Boolean,default:!1},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},titleId:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1},widthAuto:{type:Boolean,default:!1}},setup:function(t,n){var r=n.attrs,a=o.computed(function(){return dy(t.icon)}),s=o.computed(function(){return bA("classes",uO(t))}),i=o.computed(function(){return bA("transform",typeof t.transform=="string"?xu.transform(t.transform):t.transform)}),A=o.computed(function(){return bA("mask",dy(t.mask))}),l=o.computed(function(){var u=ir(ir(ir(ir({},s.value),i.value),A.value),{},{symbol:t.symbol,maskId:t.maskId});return u.title=t.title,u.titleId=t.titleId,f6(a.value,u)});o.watch(l,function(u){if(!u)return gO("Could not find one or more icon(s)",a.value,A.value)},{immediate:!0});var c=o.computed(function(){return l.value?cg(l.value.abstract[0],{},r):null});return function(){return c.value}}});o.defineComponent({name:"FontAwesomeLayers",props:{fixedWidth:{type:Boolean,default:!1}},setup:function(t,n){var r=n.slots,a=v_.familyPrefix,s=o.computed(function(){return["".concat(a,"-layers")].concat(bh(t.fixedWidth?["".concat(a,"-fw")]:[]))});return function(){return o.h("div",{class:s.value},r.default?r.default():[])}}});o.defineComponent({name:"FontAwesomeLayersText",props:{value:{type:[String,Number],default:""},transform:{type:[String,Object],default:null},counter:{type:Boolean,default:!1},position:{type:String,default:null,validator:function(t){return["bottom-left","bottom-right","top-left","top-right"].indexOf(t)>-1}}},setup:function(t,n){var r=n.attrs,a=v_.familyPrefix,s=o.computed(function(){return bA("classes",[].concat(bh(t.counter?["".concat(a,"-layers-counter")]:[]),bh(t.position?["".concat(a,"-layers-").concat(t.position)]:[])))}),i=o.computed(function(){return bA("transform",typeof t.transform=="string"?xu.transform(t.transform):t.transform)}),A=o.computed(function(){var c=p6(t.value.toString(),ir(ir({},i.value),s.value)),u=c.abstract;return t.counter&&(u[0].attributes.class=u[0].attributes.class.replace("fa-layers-text","")),u[0]}),l=o.computed(function(){return cg(A.value,{},r)});return function(){return l.value}}});const vO={class:"card-slice"},yO={key:0,class:"mana-hexagon"},BO={class:"mana-number"},wO={class:"card-name"},bO={key:1,class:"quantity"},_O={class:"quantity-background"},CO={class:"plus-minus-content"},kO={class:"plus-minus-quantity"},EO=o.defineComponent({__name:"CardSliceItem",props:eO,emits:["update:card-quantity"],setup(e,{emit:t}){const n=e;console.log("props.color",n.color);const r=yl(n.cardProp,n.cardCodeProp,!1),a=t,s=o.ref(null),i=o.ref(null),A=o.ref(null),l=o.ref(null),c=o.computed(()=>{let p=n.color;return!p&&r.value&&(p=Ns(r.value,null,!0)),n.color===null&&(p="var(--color-background-2-rgb)"),{"--color":p}}),u=o.computed(()=>r.value?_e().callbacks.cardImageCallback(r.value.cardCode,_t.Slice):""),d=o.computed(()=>{const p=["card-slice-wrapper"];return n.maintainAspectRatio&&p.push("maintain-aspect-ratio"),p}),f=o.computed(()=>{const p=ld().acquiredCards;return r.value===void 0||n.quantityNumber===void 0||n.quantityNumber>3||p===void 0||n.showPlusMinus?null:(p[r.value.cardCode]??0)<n.quantityNumber?"missing-quantity":null});return o.onMounted(()=>{n.ignoreCardItem||tt(s.value,{content:A.value,placement:"right",arrow:!0,touch:!1,duration:0,role:"card-image",onShown:p=>{const h=p.popper.innerHTML.includes("right")?"right-start":"left-start";l.value=h},onHidden:()=>{l.value=null}})}),(p,h)=>{const m=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(m,{to:n.routerLink},{default:o.withCtx(()=>{var y,g;return[o.createElementVNode("div",{ref_key:"cardSlice",ref:s,class:o.normalizeClass(d.value)},[o.createElementVNode("div",vO,[o.createElementVNode("div",{class:"card-image",style:o.normalizeStyle({backgroundImage:`url(${u.value})`})},null,4),o.createElementVNode("div",{class:"region-gradient",style:o.normalizeStyle(c.value)},null,4),n.manaNumber!==null?(o.openBlock(),o.createElementBlock("div",yO,[o.createVNode(Cl,{class:"hexagon-icon"}),o.createElementVNode("div",BO,o.toDisplayString(n.manaNumber??((y=o.unref(r))==null?void 0:y.cost)),1)])):o.createCommentVNode("",!0),o.createElementVNode("div",wO,o.toDisplayString(n.name??((g=o.unref(r))==null?void 0:g.name)),1),n.quantityNumber!==void 0&&n.quantityNumber!==null?(o.openBlock(),o.createElementBlock("div",bO,[o.createElementVNode("div",_O,[o.createElementVNode("p",{class:o.normalizeClass(["num-quantity",f.value])},o.toDisplayString(n.quantityNumber),3)])])):o.createCommentVNode("",!0),n.showPlusMinus?(o.openBlock(),o.createElementBlock("div",{key:2,class:"plus-minus",onClick:h[2]||(h[2]=o.withModifiers(()=>{},["prevent"]))},[o.createElementVNode("div",CO,[o.createElementVNode("div",{class:"plus-minus-icon",onClick:h[0]||(h[0]=o.withModifiers(w=>{var B;return a("update:card-quantity",{cardCode:((B=o.unref(r))==null?void 0:B.cardCode)??"",quantity:-1})},["prevent"]))},[o.createVNode(o.unref(Se),{icon:"minus",class:"icon"})]),o.createElementVNode("div",{class:"plus-minus-icon",onClick:h[1]||(h[1]=o.withModifiers(w=>{var B;return a("update:card-quantity",{cardCode:((B=o.unref(r))==null?void 0:B.cardCode)??"",quantity:1})},["prevent"]))},[o.createVNode(o.unref(Se),{icon:"plus",class:"icon"})]),o.createElementVNode("div",kO,o.toDisplayString(n.quantityNumber),1)])])):o.createCommentVNode("",!0)])],2),o.createElementVNode("div",{ref_key:"cardItemWrapper",ref:A,class:"card-item-container"},[o.unref(r)&&!p.ignoreCardItem?(o.openBlock(),o.createBlock(si,{key:0,ref_key:"cardItem",ref:i,"is-root":!0,"card-prop":o.unref(r),"quantity-needed":n.quantityNumber,"show-tippy-location":l.value,class:"card-image-hover"},null,8,["card-prop","quantity-needed","show-tippy-location"])):o.createCommentVNode("",!0)],512)]}),_:1},8,["to"])}}});const bt=Q(EO,[["__scopeId","data-v-dc5cfc42"]]);function br(e){return e==null}function SO(e,t,n){const{object:r,valueProp:a,mode:s}=o.toRefs(e),i=o.getCurrentInstance().proxy,A=n.iv,l=(d,f=!0)=>{A.value=u(d);const p=c(d);t.emit("change",p,i),f&&(t.emit("input",p),t.emit("update:modelValue",p))},c=d=>r.value||br(d)?d:Array.isArray(d)?d.map(f=>f[a.value]):d[a.value],u=d=>br(d)?s.value==="single"?{}:[]:d;return{update:l}}function wt(e){return o.customRef(()=>({get:e,set:()=>{}}))}function xO(e,t){const{value:n,modelValue:r,mode:a,valueProp:s}=o.toRefs(e),i=o.ref(a.value!=="single"?[]:{}),A=wt(()=>r.value!==void 0?r.value:n.value),l=o.computed(()=>a.value==="single"?i.value[s.value]:i.value.map(u=>u[s.value])),c=wt(()=>a.value!=="single"?i.value.map(u=>u[s.value]).join(","):i.value[s.value]);return{iv:i,internalValue:i,ev:A,externalValue:A,textValue:c,plainValue:l}}function FO(e,t,n){const{regex:r}=o.toRefs(e),a=o.getCurrentInstance().proxy,s=n.isOpen,i=n.open,A=o.ref(null),l=()=>{A.value=""},c=f=>{A.value=f.target.value},u=f=>{if(r.value){let p=r.value;typeof p=="string"&&(p=new RegExp(p)),f.key.match(p)||f.preventDefault()}},d=f=>{if(r.value){let h=(f.clipboardData||window.clipboardData).getData("Text"),m=r.value;typeof m=="string"&&(m=new RegExp(m)),h.split("").every(y=>!!y.match(m))||f.preventDefault()}t.emit("paste",f,a)};return o.watch(A,f=>{!s.value&&f&&i(),t.emit("search-change",f,a)}),{search:A,clearSearch:l,handleSearchInput:c,handleKeypress:u,handlePaste:d}}function TO(e,t,n){const{groupSelect:r,mode:a,groups:s,disabledProp:i}=o.toRefs(e),A=o.ref(null),l=u=>{u===void 0||u!==null&&u[i.value]||s.value&&u&&u.group&&(a.value==="single"||!r.value)||(A.value=u)};return{pointer:A,setPointer:l,clearPointer:()=>{l(null)}}}function Gf(e,t=!0){return t?String(e).toLowerCase().trim():String(e).toLowerCase().normalize("NFD").trim().replace(/æ/g,"ae").replace(/œ/g,"oe").replace(/ø/g,"o").replace(/\p{Diacritic}/gu,"")}function IO(e){return Object.prototype.toString.call(e)==="[object Object]"}function DO(e,t){if(e.length!==t.length)return!1;const n=t.slice().sort();return e.slice().sort().every(function(r,a){return r===n[a]})}const rC=(e,t)=>{if(e===t)return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let a of n)if(!r.includes(a)||!rC(e[a],t[a]))return!1;return!0};function UO(e,t,n){const{options:r,mode:a,trackBy:s,limit:i,hideSelected:A,createTag:l,createOption:c,label:u,appendNewTag:d,appendNewOption:f,multipleLabel:p,object:h,loading:m,delay:y,resolveOnLoad:g,minChars:w,filterResults:B,clearOnSearch:v,clearOnSelect:_,valueProp:b,allowAbsent:k,groupLabel:C,canDeselect:E,max:D,strict:T,closeOnSelect:F,closeOnDeselect:U,groups:W,reverse:J,infinite:R,groupOptions:$,groupHideEmpty:de,groupSelect:q,onCreate:Ae,disabledProp:oe,searchStart:le,searchFilter:ge}=o.toRefs(e),ie=o.getCurrentInstance().proxy,Z=n.iv,M=n.ev,te=n.search,Le=n.clearSearch,nt=n.update,St=n.pointer,$t=n.setPointer,Nt=n.clearPointer,Xt=n.focus,K=n.deactivate,ve=n.close,Jt=n.localize,Ct=o.ref([]),Bt=o.ref([]),xt=o.ref(!1),S=o.ref(null),x=o.ref(R.value&&i.value===-1?10:i.value),N=o.computed({get:()=>Bt.value,set:I=>Bt.value=I}),ne=wt(()=>l.value||c.value||!1),Ie=wt(()=>d.value!==void 0?d.value:f.value!==void 0?f.value:!0),ye=o.computed(()=>{if(W.value){let I=P.value||[],z=[];return I.forEach(De=>{Cf(De[$.value]).forEach(Ft=>{z.push(Object.assign({},Ft,De[oe.value]?{[oe.value]:!0}:{}))})}),z}else{let I=Cf(Bt.value||[]);return Ct.value.length&&(I=I.concat(Ct.value)),I}}),xe=o.computed(()=>{let I=ye.value;return J.value&&(I=I.reverse()),re.value.length&&(I=re.value.concat(I)),_f(I)}),O=o.computed(()=>{let I=xe.value;return x.value>0&&(I=I.slice(0,x.value)),I}),P=o.computed(()=>{if(!W.value)return[];let I=[],z=Bt.value||[];return Ct.value.length&&I.push({[C.value]:" ",[$.value]:[...Ct.value],__CREATE__:!0}),I.concat(z)}),Qe=o.computed(()=>{let I=[...P.value].map(z=>({...z}));return re.value.length&&(I[0]&&I[0].__CREATE__?I[0][$.value]=[...re.value,...I[0][$.value]]:I=[{[C.value]:" ",[$.value]:[...re.value],__CREATE__:!0}].concat(I)),I}),Ze=o.computed(()=>{if(!W.value)return[];let I=Qe.value;return sS((I||[]).map((z,De)=>{const Ft=Cf(z[$.value]);return{...z,index:De,group:!0,[$.value]:_f(Ft,!1).map(Es=>Object.assign({},Es,z[oe.value]?{[oe.value]:!0}:{})),__VISIBLE__:_f(Ft).map(Es=>Object.assign({},Es,z[oe.value]?{[oe.value]:!0}:{}))}}))}),vn=o.computed(()=>{switch(a.value){case"single":return!br(Z.value[b.value]);case"multiple":case"tags":return!br(Z.value)&&Z.value.length>0}}),Oa=o.computed(()=>p.value!==void 0?p.value(Z.value,ie):Z.value&&Z.value.length>1?`${Z.value.length} options selected`:"1 option selected"),gr=wt(()=>!ye.value.length&&!xt.value&&!re.value.length),L=wt(()=>ye.value.length>0&&O.value.length==0&&(te.value&&W.value||!W.value)),re=o.computed(()=>ne.value===!1||!te.value?[]:nS(te.value)!==-1?[]:[{[b.value]:te.value,[ce.value[0]]:te.value,[u.value]:te.value,__CREATE__:!0}]),ce=o.computed(()=>s.value?Array.isArray(s.value)?s.value:[s.value]:[u.value]),ze=wt(()=>{switch(a.value){case"single":return null;case"multiple":case"tags":return[]}}),Me=wt(()=>m.value||xt.value),kt=I=>{switch(typeof I!="object"&&(I=jr(I)),a.value){case"single":nt(I);break;case"multiple":case"tags":nt(Z.value.concat(I));break}t.emit("select",Wr(I),I,ie)},Pt=I=>{switch(typeof I!="object"&&(I=jr(I)),a.value){case"single":ki();break;case"tags":case"multiple":nt(Array.isArray(I)?Z.value.filter(z=>I.map(De=>De[b.value]).indexOf(z[b.value])===-1):Z.value.filter(z=>z[b.value]!=I[b.value]));break}t.emit("deselect",Wr(I),I,ie)},Wr=I=>h.value?I:I[b.value],No=I=>{Pt(I)},Gr=(I,z)=>{if(z.button!==0){z.preventDefault();return}No(I)},ki=()=>{nt(ze.value),t.emit("clear",ie)},yn=I=>{if(I.group!==void 0)return a.value==="single"?!1:tS(I[$.value])&&I[$.value].length;switch(a.value){case"single":return!br(Z.value)&&(Z.value[b.value]==I[b.value]||typeof Z.value[b.value]=="object"&&typeof I[b.value]=="object"&&rC(Z.value[b.value],I[b.value]));case"tags":case"multiple":return!br(Z.value)&&Z.value.map(z=>z[b.value]).indexOf(I[b.value])!==-1}},vr=I=>I[oe.value]===!0,Po=()=>D===void 0||D.value===-1||!vn.value&&D.value>0?!1:Z.value.length>=D.value,Ro=I=>{if(!vr(I)){if(Ae.value&&!yn(I)&&I.__CREATE__&&(I={...I},delete I.__CREATE__,I=Ae.value(I,ie),I instanceof Promise)){xt.value=!0,I.then(z=>{xt.value=!1,ks(z)});return}ks(I)}},ks=I=>{switch(I.__CREATE__&&(I={...I},delete I.__CREATE__),a.value){case"single":if(I&&yn(I)){E.value&&Pt(I),U.value&&(Nt(),ve());return}I&&bf(I),_.value&&Le(),F.value&&(Nt(),ve()),I&&kt(I);break;case"multiple":if(I&&yn(I)){Pt(I),U.value&&(Nt(),ve());return}if(Po()){t.emit("max",ie);return}I&&(bf(I),kt(I)),_.value&&Le(),A.value&&Nt(),F.value&&ve();break;case"tags":if(I&&yn(I)){Pt(I),U.value&&(Nt(),ve());return}if(Po()){t.emit("max",ie);return}I&&bf(I),_.value&&Le(),I&&kt(I),A.value&&Nt(),F.value&&ve();break}F.value||Xt()},JE=I=>{if(!(vr(I)||a.value==="single"||!q.value)){switch(a.value){case"multiple":case"tags":eS(I[$.value])?Pt(I[$.value]):kt(I[$.value].filter(z=>Z.value.map(De=>De[b.value]).indexOf(z[b.value])===-1).filter(z=>!z[oe.value]).filter((z,De)=>Z.value.length+1+De<=D.value||D.value===-1)),A.value&&St.value&&$t(Ze.value.filter(z=>!z[oe.value])[St.value.index]);break}F.value&&K()}},bf=I=>{jr(I[b.value])===void 0&&ne.value&&(t.emit("tag",I[b.value],ie),t.emit("option",I[b.value],ie),t.emit("create",I[b.value],ie),Ie.value&&aS(I),Le())},ZE=()=>{a.value!=="single"&&kt(O.value.filter(I=>!I.disabled&&!yn(I)))},eS=I=>I.find(z=>!yn(z)&&!z[oe.value])===void 0,tS=I=>I.find(z=>!yn(z))===void 0,jr=I=>ye.value[ye.value.map(z=>String(z[b.value])).indexOf(String(I))],nS=I=>ye.value.findIndex(z=>ce.value.some(De=>(parseInt(z[De])==z[De]?parseInt(z[De]):z[De])===(parseInt(I)==I?parseInt(I):I))),rS=I=>["tags","multiple"].indexOf(a.value)!==-1&&A.value&&yn(I),aS=I=>{Ct.value.push(I)},sS=I=>de.value?I.filter(z=>te.value?z.__VISIBLE__.length:z[$.value].length):I.filter(z=>te.value?z.__VISIBLE__.length:!0),_f=(I,z=!0)=>{let De=I;if(te.value&&B.value){let Ft=ge.value;Ft||(Ft=(Es,_0,npe)=>ce.value.some(oS=>{let C0=Gf(Jt(Es[oS]),T.value);return le.value?C0.startsWith(Gf(_0,T.value)):C0.indexOf(Gf(_0,T.value))!==-1})),De=De.filter(Es=>Ft(Es,te.value,ie))}return A.value&&z&&(De=De.filter(Ft=>!rS(Ft))),De},Cf=I=>{let z=I;return IO(z)&&(z=Object.keys(z).map(De=>{let Ft=z[De];return{[b.value]:De,[ce.value[0]]:Ft,[u.value]:Ft}})),z&&Array.isArray(z)?z=z.map(De=>typeof De=="object"?De:{[b.value]:De,[ce.value[0]]:De,[u.value]:De}):z=[],z},Xl=()=>{br(M.value)||(Z.value=Zl(M.value))},Jl=I=>(xt.value=!0,new Promise((z,De)=>{r.value(te.value,ie).then(Ft=>{Bt.value=Ft||[],typeof I=="function"&&I(Ft),xt.value=!1}).catch(Ft=>{console.error(Ft),Bt.value=[],xt.value=!1}).finally(()=>{z()})})),kf=()=>{if(vn.value)if(a.value==="single"){let I=jr(Z.value[b.value]);if(I!==void 0){let z=I[u.value];Z.value[u.value]=z,h.value&&(M.value[u.value]=z)}}else Z.value.forEach((I,z)=>{let De=jr(Z.value[z][b.value]);if(De!==void 0){let Ft=De[u.value];Z.value[z][u.value]=Ft,h.value&&(M.value[z][u.value]=Ft)}})},iS=I=>{Jl(I)},Zl=I=>br(I)?a.value==="single"?{}:[]:h.value?I:a.value==="single"?jr(I)||(k.value?{[u.value]:I,[b.value]:I,[ce.value[0]]:I}:{}):I.filter(z=>!!jr(z)||k.value).map(z=>jr(z)||{[u.value]:z,[b.value]:z,[ce.value[0]]:z}),b0=()=>{S.value=o.watch(te,I=>{I.length<w.value||!I&&w.value!==0||(xt.value=!0,v.value&&(Bt.value=[]),setTimeout(()=>{I==te.value&&r.value(te.value,ie).then(z=>{(I==te.value||!te.value)&&(Bt.value=z,St.value=O.value.filter(De=>De[oe.value]!==!0)[0]||null,xt.value=!1)}).catch(z=>{console.error(z)})},y.value))},{flush:"sync"})};if(a.value!=="single"&&!br(M.value)&&!Array.isArray(M.value))throw new Error(`v-model must be an array when using "${a.value}" mode`);return r&&typeof r.value=="function"?g.value?Jl(Xl):h.value==!0&&Xl():(Bt.value=r.value,Xl()),y.value>-1&&b0(),o.watch(y,(I,z)=>{S.value&&S.value(),I>=0&&b0()}),o.watch(M,I=>{if(br(I)){nt(Zl(I),!1);return}switch(a.value){case"single":(h.value?I[b.value]!=Z.value[b.value]:I!=Z.value[b.value])&&nt(Zl(I),!1);break;case"multiple":case"tags":DO(h.value?I.map(z=>z[b.value]):I,Z.value.map(z=>z[b.value]))||nt(Zl(I),!1);break}},{deep:!0}),o.watch(r,(I,z)=>{typeof e.options=="function"?g.value&&(!z||I&&I.toString()!==z.toString())&&Jl():(Bt.value=e.options,Object.keys(Z.value).length||Xl(),kf())}),o.watch(u,kf),o.watch(i,(I,z)=>{x.value=R.value&&I===-1?10:I}),{resolvedOptions:N,pfo:xe,fo:O,filteredOptions:O,hasSelected:vn,multipleLabelText:Oa,eo:ye,extendedOptions:ye,eg:P,extendedGroups:P,fg:Ze,filteredGroups:Ze,noOptions:gr,noResults:L,resolving:xt,busy:Me,offset:x,select:kt,deselect:Pt,remove:No,selectAll:ZE,clear:ki,isSelected:yn,isDisabled:vr,isMax:Po,getOption:jr,handleOptionClick:Ro,handleGroupClick:JE,handleTagRemove:Gr,refreshOptions:iS,resolveOptions:Jl,refreshLabels:kf}}function OO(e,t,n){const{valueProp:r,showOptions:a,searchable:s,groupLabel:i,groups:A,mode:l,groupSelect:c,disabledProp:u,groupOptions:d}=o.toRefs(e),f=n.fo,p=n.fg,h=n.handleOptionClick,m=n.handleGroupClick,y=n.search,g=n.pointer,w=n.setPointer,B=n.clearPointer,v=n.multiselect,_=n.isOpen,b=o.computed(()=>f.value.filter(M=>!M[u.value])),k=o.computed(()=>p.value.filter(M=>!M[u.value])),C=wt(()=>l.value!=="single"&&c.value),E=wt(()=>g.value&&g.value.group),D=o.computed(()=>ie(g.value)),T=o.computed(()=>{const M=E.value?g.value:ie(g.value),te=k.value.map(nt=>nt[i.value]).indexOf(M[i.value]);let Le=k.value[te-1];return Le===void 0&&(Le=U.value),Le}),F=o.computed(()=>{let M=k.value.map(te=>te.label).indexOf(E.value?g.value[i.value]:ie(g.value)[i.value])+1;return k.value.length<=M&&(M=0),k.value[M]}),U=o.computed(()=>[...k.value].slice(-1)[0]),W=o.computed(()=>g.value.__VISIBLE__.filter(M=>!M[u.value])[0]),J=o.computed(()=>{const M=D.value.__VISIBLE__.filter(te=>!te[u.value]);return M[M.map(te=>te[r.value]).indexOf(g.value[r.value])-1]}),R=o.computed(()=>{const M=ie(g.value).__VISIBLE__.filter(te=>!te[u.value]);return M[M.map(te=>te[r.value]).indexOf(g.value[r.value])+1]}),$=o.computed(()=>[...T.value.__VISIBLE__.filter(M=>!M[u.value])].slice(-1)[0]),de=o.computed(()=>[...U.value.__VISIBLE__.filter(M=>!M[u.value])].slice(-1)[0]),q=M=>g.value&&(!M.group&&g.value[r.value]===M[r.value]||M.group!==void 0&&g.value[i.value]===M[i.value])?!0:void 0,Ae=()=>{w(b.value[0]||null)},oe=()=>{!g.value||g.value[u.value]===!0||(E.value?m(g.value):h(g.value))},le=()=>{if(g.value===null)w((A.value&&C.value?k.value[0].__CREATE__?b.value[0]:k.value[0]:b.value[0])||null);else if(A.value&&C.value){let M=E.value?W.value:R.value;M===void 0&&(M=F.value,M.__CREATE__&&(M=M[d.value][0])),w(M||null)}else{let M=b.value.map(te=>te[r.value]).indexOf(g.value[r.value])+1;b.value.length<=M&&(M=0),w(b.value[M]||null)}o.nextTick(()=>{Z()})},ge=()=>{if(g.value===null){let M=b.value[b.value.length-1];A.value&&C.value&&(M=de.value,M===void 0&&(M=U.value)),w(M||null)}else if(A.value&&C.value){let M=E.value?$.value:J.value;M===void 0&&(M=E.value?T.value:D.value,M.__CREATE__&&(M=$.value,M===void 0&&(M=T.value))),w(M||null)}else{let M=b.value.map(te=>te[r.value]).indexOf(g.value[r.value])-1;M<0&&(M=b.value.length-1),w(b.value[M]||null)}o.nextTick(()=>{Z()})},ie=M=>k.value.find(te=>te.__VISIBLE__.map(Le=>Le[r.value]).indexOf(M[r.value])!==-1),Z=()=>{let M=v.value.querySelector("[data-pointed]");if(!M)return;let te=M.parentElement.parentElement;A.value&&(te=E.value?M.parentElement.parentElement.parentElement:M.parentElement.parentElement.parentElement.parentElement),M.offsetTop+M.offsetHeight>te.clientHeight+te.scrollTop&&(te.scrollTop=M.offsetTop+M.offsetHeight-te.clientHeight),M.offsetTop<te.scrollTop&&(te.scrollTop=M.offsetTop)};return o.watch(y,M=>{s.value&&(M.length&&a.value?Ae():B())}),o.watch(_,M=>{if(M&&v&&v.value){let te=v.value.querySelectorAll("[data-selected]")[0];if(!te)return;let Le=te.parentElement.parentElement;o.nextTick(()=>{Le.scrollTop=te.offsetTop})}}),{pointer:g,canPointGroups:C,isPointed:q,setPointerFirst:Ae,selectPointer:oe,forwardPointer:le,backwardPointer:ge}}function Mn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ii(e){var t=Mn(e).Element;return e instanceof t||e instanceof Element}function Jn(e){var t=Mn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ug(e){if(typeof ShadowRoot>"u")return!1;var t=Mn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Gs=Math.max,Uu=Math.min,uo=Math.round;function _h(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function aC(){return!/^((?!chrome|android).)*safari/i.test(_h())}function fo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),a=1,s=1;t&&Jn(e)&&(a=e.offsetWidth>0&&uo(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&uo(r.height)/e.offsetHeight||1);var i=ii(e)?Mn(e):window,A=i.visualViewport,l=!aC()&&n,c=(r.left+(l&&A?A.offsetLeft:0))/a,u=(r.top+(l&&A?A.offsetTop:0))/s,d=r.width/a,f=r.height/s;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function dg(e){var t=Mn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function LO(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function QO(e){return e===Mn(e)||!Jn(e)?dg(e):LO(e)}function Ur(e){return e?(e.nodeName||"").toLowerCase():null}function bs(e){return((ii(e)?e.ownerDocument:e.document)||window.document).documentElement}function fg(e){return fo(bs(e)).left+dg(e).scrollLeft}function _a(e){return Mn(e).getComputedStyle(e)}function pg(e){var t=_a(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function MO(e){var t=e.getBoundingClientRect(),n=uo(t.width)/e.offsetWidth||1,r=uo(t.height)/e.offsetHeight||1;return n!==1||r!==1}function NO(e,t,n){n===void 0&&(n=!1);var r=Jn(t),a=Jn(t)&&MO(t),s=bs(t),i=fo(e,a,n),A={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ur(t)!=="body"||pg(s))&&(A=QO(t)),Jn(t)?(l=fo(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=fg(s))),{x:i.left+A.scrollLeft-l.x,y:i.top+A.scrollTop-l.y,width:i.width,height:i.height}}function sC(e){var t=fo(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function _d(e){return Ur(e)==="html"?e:e.assignedSlot||e.parentNode||(ug(e)?e.host:null)||bs(e)}function iC(e){return["html","body","#document"].indexOf(Ur(e))>=0?e.ownerDocument.body:Jn(e)&&pg(e)?e:iC(_d(e))}function _A(e,t){var n;t===void 0&&(t=[]);var r=iC(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),s=Mn(r),i=a?[s].concat(s.visualViewport||[],pg(r)?r:[]):r,A=t.concat(i);return a?A:A.concat(_A(_d(i)))}function PO(e){return["table","td","th"].indexOf(Ur(e))>=0}function fy(e){return!Jn(e)||_a(e).position==="fixed"?null:e.offsetParent}function RO(e){var t=/firefox/i.test(_h()),n=/Trident/i.test(_h());if(n&&Jn(e)){var r=_a(e);if(r.position==="fixed")return null}var a=_d(e);for(ug(a)&&(a=a.host);Jn(a)&&["html","body"].indexOf(Ur(a))<0;){var s=_a(a);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return a;a=a.parentNode}return null}function Cd(e){for(var t=Mn(e),n=fy(e);n&&PO(n)&&_a(n).position==="static";)n=fy(n);return n&&(Ur(n)==="html"||Ur(n)==="body"&&_a(n).position==="static")?t:n||RO(e)||t}var cr="top",Or="bottom",ds="right",pa="left",hg="auto",kd=[cr,Or,ds,pa],po="start",el="end",HO="clippingParents",oC="viewport",$o="popper",VO="reference",py=kd.reduce(function(e,t){return e.concat([t+"-"+po,t+"-"+el])},[]),$O=[].concat(kd,[hg]).reduce(function(e,t){return e.concat([t,t+"-"+po,t+"-"+el])},[]),KO="beforeRead",zO="read",WO="afterRead",GO="beforeMain",jO="main",YO="afterMain",qO="beforeWrite",XO="write",JO="afterWrite",ZO=[KO,zO,WO,GO,jO,YO,qO,XO,JO];function eL(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function a(s){n.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(A){if(!n.has(A)){var l=t.get(A);l&&a(l)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||a(s)}),r}function tL(e){var t=eL(e);return ZO.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function nL(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function rL(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}function aL(e,t){var n=Mn(e),r=bs(e),a=n.visualViewport,s=r.clientWidth,i=r.clientHeight,A=0,l=0;if(a){s=a.width,i=a.height;var c=aC();(c||!c&&t==="fixed")&&(A=a.offsetLeft,l=a.offsetTop)}return{width:s,height:i,x:A+fg(e),y:l}}function sL(e){var t,n=bs(e),r=dg(e),a=(t=e.ownerDocument)==null?void 0:t.body,s=Gs(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=Gs(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),A=-r.scrollLeft+fg(e),l=-r.scrollTop;return _a(a||n).direction==="rtl"&&(A+=Gs(n.clientWidth,a?a.clientWidth:0)-s),{width:s,height:i,x:A,y:l}}function iL(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ug(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ch(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function oL(e,t){var n=fo(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function hy(e,t,n){return t===oC?Ch(aL(e,n)):ii(t)?oL(t,n):Ch(sL(bs(e)))}function AL(e){var t=_A(_d(e)),n=["absolute","fixed"].indexOf(_a(e).position)>=0,r=n&&Jn(e)?Cd(e):e;return ii(r)?t.filter(function(a){return ii(a)&&iL(a,r)&&Ur(a)!=="body"}):[]}function lL(e,t,n,r){var a=t==="clippingParents"?AL(e):[].concat(t),s=[].concat(a,[n]),i=s[0],A=s.reduce(function(l,c){var u=hy(e,c,r);return l.top=Gs(u.top,l.top),l.right=Uu(u.right,l.right),l.bottom=Uu(u.bottom,l.bottom),l.left=Gs(u.left,l.left),l},hy(e,i,r));return A.width=A.right-A.left,A.height=A.bottom-A.top,A.x=A.left,A.y=A.top,A}function es(e){return e.split("-")[0]}function ho(e){return e.split("-")[1]}function AC(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function lC(e){var t=e.reference,n=e.element,r=e.placement,a=r?es(r):null,s=r?ho(r):null,i=t.x+t.width/2-n.width/2,A=t.y+t.height/2-n.height/2,l;switch(a){case cr:l={x:i,y:t.y-n.height};break;case Or:l={x:i,y:t.y+t.height};break;case ds:l={x:t.x+t.width,y:A};break;case pa:l={x:t.x-n.width,y:A};break;default:l={x:t.x,y:t.y}}var c=a?AC(a):null;if(c!=null){var u=c==="y"?"height":"width";switch(s){case po:l[c]=l[c]-(t[u]/2-n[u]/2);break;case el:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function cC(){return{top:0,right:0,bottom:0,left:0}}function cL(e){return Object.assign({},cC(),e)}function uL(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}function mg(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,s=n.strategy,i=s===void 0?e.strategy:s,A=n.boundary,l=A===void 0?HO:A,c=n.rootBoundary,u=c===void 0?oC:c,d=n.elementContext,f=d===void 0?$o:d,p=n.altBoundary,h=p===void 0?!1:p,m=n.padding,y=m===void 0?0:m,g=cL(typeof y!="number"?y:uL(y,kd)),w=f===$o?VO:$o,B=e.rects.popper,v=e.elements[h?w:f],_=lL(ii(v)?v:v.contextElement||bs(e.elements.popper),l,u,i),b=fo(e.elements.reference),k=lC({reference:b,element:B,strategy:"absolute",placement:a}),C=Ch(Object.assign({},B,k)),E=f===$o?C:b,D={top:_.top-E.top+g.top,bottom:E.bottom-_.bottom+g.bottom,left:_.left-E.left+g.left,right:E.right-_.right+g.right},T=e.modifiersData.offset;if(f===$o&&T){var F=T[a];Object.keys(D).forEach(function(U){var W=[ds,Or].indexOf(U)>=0?1:-1,J=[cr,Or].indexOf(U)>=0?"y":"x";D[U]+=F[J]*W})}return D}var my={placement:"bottom",modifiers:[],strategy:"absolute"};function gy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function dL(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,a=t.defaultOptions,s=a===void 0?my:a;return function(A,l,c){c===void 0&&(c=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},my,s),modifiersData:{},elements:{reference:A,popper:l},attributes:{},styles:{}},d=[],f=!1,p={state:u,setOptions:function(g){var w=typeof g=="function"?g(u.options):g;m(),u.options=Object.assign({},s,u.options,w),u.scrollParents={reference:ii(A)?_A(A):A.contextElement?_A(A.contextElement):[],popper:_A(l)};var B=tL(rL([].concat(r,u.options.modifiers)));return u.orderedModifiers=B.filter(function(v){return v.enabled}),h(),p.update()},forceUpdate:function(){if(!f){var g=u.elements,w=g.reference,B=g.popper;if(gy(w,B)){u.rects={reference:NO(w,Cd(B),u.options.strategy==="fixed"),popper:sC(B)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(D){return u.modifiersData[D.name]=Object.assign({},D.data)});for(var v=0;v<u.orderedModifiers.length;v++){if(u.reset===!0){u.reset=!1,v=-1;continue}var _=u.orderedModifiers[v],b=_.fn,k=_.options,C=k===void 0?{}:k,E=_.name;typeof b=="function"&&(u=b({state:u,options:C,name:E,instance:p})||u)}}}},update:nL(function(){return new Promise(function(y){p.forceUpdate(),y(u)})}),destroy:function(){m(),f=!0}};if(!gy(A,l))return p;p.setOptions(c).then(function(y){!f&&c.onFirstUpdate&&c.onFirstUpdate(y)});function h(){u.orderedModifiers.forEach(function(y){var g=y.name,w=y.options,B=w===void 0?{}:w,v=y.effect;if(typeof v=="function"){var _=v({state:u,name:g,instance:p,options:B}),b=function(){};d.push(_||b)}})}function m(){d.forEach(function(y){return y()}),d=[]}return p}}var Ac={passive:!0};function fL(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,s=a===void 0?!0:a,i=r.resize,A=i===void 0?!0:i,l=Mn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(u){u.addEventListener("scroll",n.update,Ac)}),A&&l.addEventListener("resize",n.update,Ac),function(){s&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Ac)}),A&&l.removeEventListener("resize",n.update,Ac)}}var pL={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:fL,data:{}};function hL(e){var t=e.state,n=e.name;t.modifiersData[n]=lC({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var mL={name:"popperOffsets",enabled:!0,phase:"read",fn:hL,data:{}},gL={top:"auto",right:"auto",bottom:"auto",left:"auto"};function vL(e,t){var n=e.x,r=e.y,a=t.devicePixelRatio||1;return{x:uo(n*a)/a||0,y:uo(r*a)/a||0}}function vy(e){var t,n=e.popper,r=e.popperRect,a=e.placement,s=e.variation,i=e.offsets,A=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=i.x,p=f===void 0?0:f,h=i.y,m=h===void 0?0:h,y=typeof u=="function"?u({x:p,y:m}):{x:p,y:m};p=y.x,m=y.y;var g=i.hasOwnProperty("x"),w=i.hasOwnProperty("y"),B=pa,v=cr,_=window;if(c){var b=Cd(n),k="clientHeight",C="clientWidth";if(b===Mn(n)&&(b=bs(n),_a(b).position!=="static"&&A==="absolute"&&(k="scrollHeight",C="scrollWidth")),b=b,a===cr||(a===pa||a===ds)&&s===el){v=Or;var E=d&&b===_&&_.visualViewport?_.visualViewport.height:b[k];m-=E-r.height,m*=l?1:-1}if(a===pa||(a===cr||a===Or)&&s===el){B=ds;var D=d&&b===_&&_.visualViewport?_.visualViewport.width:b[C];p-=D-r.width,p*=l?1:-1}}var T=Object.assign({position:A},c&&gL),F=u===!0?vL({x:p,y:m},Mn(n)):{x:p,y:m};if(p=F.x,m=F.y,l){var U;return Object.assign({},T,(U={},U[v]=w?"0":"",U[B]=g?"0":"",U.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",U))}return Object.assign({},T,(t={},t[v]=w?m+"px":"",t[B]=g?p+"px":"",t.transform="",t))}function yL(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,s=n.adaptive,i=s===void 0?!0:s,A=n.roundOffsets,l=A===void 0?!0:A,c={placement:es(t.placement),variation:ho(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,vy(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,vy(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var BL={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:yL,data:{}};function wL(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},s=t.elements[n];!Jn(s)||!Ur(s)||(Object.assign(s.style,r),Object.keys(a).forEach(function(i){var A=a[i];A===!1?s.removeAttribute(i):s.setAttribute(i,A===!0?"":A)}))})}function bL(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],s=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),A=i.reduce(function(l,c){return l[c]="",l},{});!Jn(a)||!Ur(a)||(Object.assign(a.style,A),Object.keys(s).forEach(function(l){a.removeAttribute(l)}))})}}var _L={name:"applyStyles",enabled:!0,phase:"write",fn:wL,effect:bL,requires:["computeStyles"]},CL=[pL,mL,BL,_L],kL=dL({defaultModifiers:CL});function EL(e){return e==="x"?"y":"x"}function su(e,t,n){return Gs(e,Uu(t,n))}function SL(e,t,n){var r=su(e,t,n);return r>n?n:r}function xL(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,s=a===void 0?!0:a,i=n.altAxis,A=i===void 0?!1:i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,h=n.tetherOffset,m=h===void 0?0:h,y=mg(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),g=es(t.placement),w=ho(t.placement),B=!w,v=AC(g),_=EL(v),b=t.modifiersData.popperOffsets,k=t.rects.reference,C=t.rects.popper,E=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,D=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(b){if(s){var U,W=v==="y"?cr:pa,J=v==="y"?Or:ds,R=v==="y"?"height":"width",$=b[v],de=$+y[W],q=$-y[J],Ae=p?-C[R]/2:0,oe=w===po?k[R]:C[R],le=w===po?-C[R]:-k[R],ge=t.elements.arrow,ie=p&&ge?sC(ge):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:cC(),M=Z[W],te=Z[J],Le=su(0,k[R],ie[R]),nt=B?k[R]/2-Ae-Le-M-D.mainAxis:oe-Le-M-D.mainAxis,St=B?-k[R]/2+Ae+Le+te+D.mainAxis:le+Le+te+D.mainAxis,$t=t.elements.arrow&&Cd(t.elements.arrow),Nt=$t?v==="y"?$t.clientTop||0:$t.clientLeft||0:0,Xt=(U=T==null?void 0:T[v])!=null?U:0,K=$+nt-Xt-Nt,ve=$+St-Xt,Jt=su(p?Uu(de,K):de,$,p?Gs(q,ve):q);b[v]=Jt,F[v]=Jt-$}if(A){var Ct,Bt=v==="x"?cr:pa,xt=v==="x"?Or:ds,S=b[_],x=_==="y"?"height":"width",N=S+y[Bt],ne=S-y[xt],Ie=[cr,pa].indexOf(g)!==-1,ye=(Ct=T==null?void 0:T[_])!=null?Ct:0,xe=Ie?N:S-k[x]-C[x]-ye+D.altAxis,O=Ie?S+k[x]+C[x]-ye-D.altAxis:ne,P=p&&Ie?SL(xe,S,O):su(p?xe:N,S,p?O:ne);b[_]=P,F[_]=P-S}t.modifiersData[r]=F}}var FL={name:"preventOverflow",enabled:!0,phase:"main",fn:xL,requiresIfExists:["offset"]},TL={left:"right",right:"left",bottom:"top",top:"bottom"};function iu(e){return e.replace(/left|right|bottom|top/g,function(t){return TL[t]})}var IL={start:"end",end:"start"};function yy(e){return e.replace(/start|end/g,function(t){return IL[t]})}function DL(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,s=n.rootBoundary,i=n.padding,A=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?$O:l,u=ho(r),d=u?A?py:py.filter(function(h){return ho(h)===u}):kd,f=d.filter(function(h){return c.indexOf(h)>=0});f.length===0&&(f=d);var p=f.reduce(function(h,m){return h[m]=mg(e,{placement:m,boundary:a,rootBoundary:s,padding:i})[es(m)],h},{});return Object.keys(p).sort(function(h,m){return p[h]-p[m]})}function UL(e){if(es(e)===hg)return[];var t=iu(e);return[yy(e),t,yy(t)]}function OL(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,s=a===void 0?!0:a,i=n.altAxis,A=i===void 0?!0:i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=p===void 0?!0:p,m=n.allowedAutoPlacements,y=t.options.placement,g=es(y),w=g===y,B=l||(w||!h?[iu(y)]:UL(y)),v=[y].concat(B).reduce(function(ie,Z){return ie.concat(es(Z)===hg?DL(t,{placement:Z,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):Z)},[]),_=t.rects.reference,b=t.rects.popper,k=new Map,C=!0,E=v[0],D=0;D<v.length;D++){var T=v[D],F=es(T),U=ho(T)===po,W=[cr,Or].indexOf(F)>=0,J=W?"width":"height",R=mg(t,{placement:T,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),$=W?U?ds:pa:U?Or:cr;_[J]>b[J]&&($=iu($));var de=iu($),q=[];if(s&&q.push(R[F]<=0),A&&q.push(R[$]<=0,R[de]<=0),q.every(function(ie){return ie})){E=T,C=!1;break}k.set(T,q)}if(C)for(var Ae=h?3:1,oe=function(Z){var M=v.find(function(te){var Le=k.get(te);if(Le)return Le.slice(0,Z).every(function(nt){return nt})});if(M)return E=M,"break"},le=Ae;le>0;le--){var ge=oe(le);if(ge==="break")break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}}var LL={name:"flip",enabled:!0,phase:"main",fn:OL,requiresIfExists:["offset"],data:{_skip:!1}};function QL(e,t,n){const{disabled:r,appendTo:a,appendToBody:s,openDirection:i}=o.toRefs(e),A=o.getCurrentInstance().proxy,l=n.multiselect,c=n.dropdown,u=o.ref(!1),d=o.ref(null),f=o.ref(null),p=wt(()=>a.value||s.value),h=wt(()=>i.value==="top"&&f.value==="bottom"||i.value==="bottom"&&f.value!=="top"?"bottom":"top"),m=()=>{u.value||r.value||(u.value=!0,t.emit("open",A),p.value&&o.nextTick(()=>{g()}))},y=()=>{u.value&&(u.value=!1,t.emit("close",A))},g=()=>{if(!d.value)return;let B=parseInt(window.getComputedStyle(c.value).borderTopWidth.replace("px","")),v=parseInt(window.getComputedStyle(c.value).borderBottomWidth.replace("px",""));d.value.setOptions(_=>({..._,modifiers:[..._.modifiers,{name:"offset",options:{offset:[0,(h.value==="top"?B:v)*-1]}}]})),d.value.update()},w=B=>{for(;B&&B!==document.body;){if(getComputedStyle(B).position==="fixed")return!0;B=B.parentElement}return!1};return o.onMounted(()=>{p.value&&(d.value=kL(l.value,c.value,{strategy:w(l.value)?"fixed":void 0,placement:i.value,modifiers:[FL,LL,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:B})=>{B.styles.popper.width=`${B.rects.reference.width}px`},effect:({state:B})=>{B.elements.popper.style.width=`${B.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:B}){f.value=B.placement}}]}))}),o.onBeforeUnmount(()=>{!p.value||!d.value||(d.value.destroy(),d.value=null)}),{popper:d,isOpen:u,open:m,close:y,placement:h,updatePopper:g}}function ML(e,t,n){const{searchable:r,disabled:a,clearOnBlur:s}=o.toRefs(e),i=n.input,A=n.open,l=n.close,c=n.clearSearch,u=n.isOpen,d=n.wrapper,f=n.tags,p=o.ref(!1),h=o.ref(!1),m=wt(()=>r.value||a.value?-1:0),y=()=>{r.value&&i.value.blur(),d.value.blur()},g=()=>{r.value&&!a.value&&i.value.focus()},w=(C=!0)=>{a.value||(p.value=!0,C&&A())},B=()=>{p.value=!1,setTimeout(()=>{p.value||(l(),s.value&&c())},1)};return{tabindex:m,isActive:p,mouseClicked:h,blur:y,focus:g,activate:w,deactivate:B,handleFocusIn:C=>{C.target.closest("[data-tags]")&&C.target.nodeName!=="INPUT"||C.target.closest("[data-clear]")||w(h.value)},handleFocusOut:()=>{B()},handleCaretClick:()=>{B(),y()},handleMousedown:C=>{h.value=!0,u.value&&(C.target.isEqualNode(d.value)||C.target.isEqualNode(f.value))?setTimeout(()=>{B()},0):!u.value&&(document.activeElement.isEqualNode(d.value)||document.activeElement.isEqualNode(i.value))&&w(),setTimeout(()=>{h.value=!1},0)}}}function NL(e,t,n){const{mode:r,addTagOn:a,openDirection:s,searchable:i,showOptions:A,valueProp:l,groups:c,addOptionOn:u,createTag:d,createOption:f,reverse:p}=o.toRefs(e),h=o.getCurrentInstance().proxy,m=n.iv,y=n.update,g=n.deselect,w=n.search,B=n.setPointer,v=n.selectPointer,_=n.backwardPointer,b=n.forwardPointer,k=n.multiselect,C=n.wrapper,E=n.tags,D=n.isOpen,T=n.open,F=n.blur,U=n.fo,W=wt(()=>d.value||f.value||!1),J=wt(()=>a.value!==void 0?a.value:u.value!==void 0?u.value:["enter"]),R=()=>{r.value==="tags"&&!A.value&&W.value&&i.value&&!c.value&&B(U.value[U.value.map(q=>q[l.value]).indexOf(w.value)])};return{handleKeydown:q=>{t.emit("keydown",q,h);let Ae,oe;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(q.key)!==-1&&r.value==="tags"&&(Ae=[...k.value.querySelectorAll("[data-tags] > *")].filter(le=>le!==E.value),oe=Ae.findIndex(le=>le===document.activeElement)),q.key){case"Backspace":if(r.value==="single"||i.value&&[null,""].indexOf(w.value)===-1||m.value.length===0)return;let le=m.value.filter(ge=>!ge.disabled&&ge.remove!==!1);le.length&&g(le[le.length-1]);break;case"Enter":if(q.preventDefault(),q.keyCode===229)return;if(oe!==-1&&oe!==void 0){y([...m.value].filter((ge,ie)=>ie!==oe)),oe===Ae.length-1&&(Ae.length-1?Ae[Ae.length-2].focus():i.value?E.value.querySelector("input").focus():C.value.focus());return}if(J.value.indexOf("enter")===-1&&W.value)return;R(),v();break;case" ":if(!W.value&&!i.value){q.preventDefault(),R(),v();return}if(!W.value)return!1;if(J.value.indexOf("space")===-1&&W.value)return;q.preventDefault(),R(),v();break;case"Tab":case";":case",":if(J.value.indexOf(q.key.toLowerCase())===-1||!W.value)return;R(),v(),q.preventDefault();break;case"Escape":F();break;case"ArrowUp":if(q.preventDefault(),!A.value)return;D.value||T(),_();break;case"ArrowDown":if(q.preventDefault(),!A.value)return;D.value||T(),b();break;case"ArrowLeft":if(i.value&&E.value&&E.value.querySelector("input").selectionStart||q.shiftKey||r.value!=="tags"||!m.value||!m.value.length)return;q.preventDefault(),oe===-1?Ae[Ae.length-1].focus():oe>0&&Ae[oe-1].focus();break;case"ArrowRight":if(oe===-1||q.shiftKey||r.value!=="tags"||!m.value||!m.value.length)return;q.preventDefault(),Ae.length>oe+1?Ae[oe+1].focus():i.value?E.value.querySelector("input").focus():i.value||C.value.focus();break}},handleKeyup:q=>{t.emit("keyup",q,h)},preparePointer:R}}function PL(e,t,n){const{classes:r,disabled:a,showOptions:s,breakTags:i}=o.toRefs(e),A=n.isOpen,l=n.isPointed,c=n.isSelected,u=n.isDisabled,d=n.isActive,f=n.canPointGroups,p=n.resolving,h=n.fo,m=n.placement,y=wt(()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagWrapper:"multiselect-tag-wrapper",tagWrapperBreak:"multiselect-tag-wrapper-break",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...r.value})),g=wt(()=>!!(A.value&&s.value&&(!p.value||p.value&&h.value.length)));return{classList:o.computed(()=>{const B=y.value;return{container:[B.container].concat(a.value?B.containerDisabled:[]).concat(g.value&&m.value==="top"?B.containerOpenTop:[]).concat(g.value&&m.value!=="top"?B.containerOpen:[]).concat(d.value?B.containerActive:[]),wrapper:B.wrapper,spacer:B.spacer,singleLabel:B.singleLabel,singleLabelText:B.singleLabelText,multipleLabel:B.multipleLabel,search:B.search,tags:B.tags,tag:[B.tag].concat(a.value?B.tagDisabled:[]),tagWrapper:[B.tagWrapper,i.value?B.tagWrapperBreak:null],tagDisabled:B.tagDisabled,tagRemove:B.tagRemove,tagRemoveIcon:B.tagRemoveIcon,tagsSearchWrapper:B.tagsSearchWrapper,tagsSearch:B.tagsSearch,tagsSearchCopy:B.tagsSearchCopy,placeholder:B.placeholder,caret:[B.caret].concat(A.value?B.caretOpen:[]),clear:B.clear,clearIcon:B.clearIcon,spinner:B.spinner,inifinite:B.inifinite,inifiniteSpinner:B.inifiniteSpinner,dropdown:[B.dropdown].concat(m.value==="top"?B.dropdownTop:[]).concat(!A.value||!s.value||!g.value?B.dropdownHidden:[]),options:[B.options].concat(m.value==="top"?B.optionsTop:[]),group:B.group,groupLabel:v=>{let _=[B.groupLabel];return l(v)?_.push(c(v)?B.groupLabelSelectedPointed:B.groupLabelPointed):c(v)&&f.value?_.push(u(v)?B.groupLabelSelectedDisabled:B.groupLabelSelected):u(v)&&_.push(B.groupLabelDisabled),f.value&&_.push(B.groupLabelPointable),_},groupOptions:B.groupOptions,option:(v,_)=>{let b=[B.option];return l(v)?b.push(c(v)?B.optionSelectedPointed:B.optionPointed):c(v)?b.push(u(v)?B.optionSelectedDisabled:B.optionSelected):(u(v)||_&&u(_))&&b.push(B.optionDisabled),b},noOptions:B.noOptions,noResults:B.noResults,assist:B.assist,fakeInput:B.fakeInput}}),showDropdown:g}}function RL(e,t,n){const{limit:r,infinite:a}=o.toRefs(e),s=n.isOpen,i=n.offset,A=n.search,l=n.pfo,c=n.eo,u=o.ref(null),d=o.shallowRef(null),f=wt(()=>i.value<l.value.length),p=m=>{const{isIntersecting:y,target:g}=m[0];if(y){const w=g.offsetParent,B=w.scrollTop;i.value+=r.value==-1?10:r.value,o.nextTick(()=>{w.scrollTop=B})}},h=()=>{s.value&&i.value<l.value.length?u.value.observe(d.value):!s.value&&u.value&&u.value.disconnect()};return o.watch(s,()=>{a.value&&h()}),o.watch(A,()=>{a.value&&(i.value=r.value,h())},{flush:"post"}),o.watch(c,()=>{a.value&&h()},{immediate:!1,flush:"post"}),o.onMounted(()=>{window&&window.IntersectionObserver&&(u.value=new IntersectionObserver(p))}),{hasMore:f,infiniteLoader:d}}function HL(e,t,n){const{placeholder:r,id:a,valueProp:s,label:i,mode:A,groupLabel:l,aria:c,searchable:u}=o.toRefs(e),d=n.pointer,f=n.iv,p=n.hasSelected,h=n.multipleLabelText,m=o.ref(null),y=wt(()=>`${a.value?a.value+"-":""}assist`),g=wt(()=>`${a.value?a.value+"-":""}multiselect-options`),w=wt(()=>{if(d.value){let F=a.value?`${a.value}-`:"";return F+=`${d.value.group?"multiselect-group":"multiselect-option"}-`,F+=d.value.group?d.value.index:d.value[s.value],F}}),B=wt(()=>r.value),v=wt(()=>A.value!=="single"),_=o.computed(()=>A.value==="single"&&p.value?f.value[i.value]:A.value==="multiple"&&p.value?h.value:A.value==="tags"&&p.value?f.value.map(F=>F[i.value]).join(", "):""),b=o.computed(()=>{let F={...c.value};return u.value&&(F["aria-labelledby"]=F["aria-labelledby"]?`${y.value} ${F["aria-labelledby"]}`:y.value,_.value&&F["aria-label"]&&(F["aria-label"]=`${_.value}, ${F["aria-label"]}`)),F}),k=F=>`${a.value?a.value+"-":""}multiselect-option-${F[s.value]}`,C=F=>`${a.value?a.value+"-":""}multiselect-group-${F.index}`,E=F=>`${F}`,D=F=>`${F}`,T=F=>`${F} ❎`;return o.onMounted(()=>{if(a.value&&document&&document.querySelector){let F=document.querySelector(`[for="${a.value}"]`);m.value=F?F.innerText:null}}),{arias:b,ariaLabel:_,ariaAssist:y,ariaControls:g,ariaPlaceholder:B,ariaMultiselectable:v,ariaActiveDescendant:w,ariaOptionId:k,ariaOptionLabel:E,ariaGroupId:C,ariaGroupLabel:D,ariaTagLabel:T}}function VL(e,t,n){const{locale:r,fallbackLocale:a}=o.toRefs(e);return{localize:i=>!i||typeof i!="object"?i:i&&i[r.value]?i[r.value]:i&&r.value&&i[r.value.toUpperCase()]?i[r.value.toUpperCase()]:i&&i[a.value]?i[a.value]:i&&a.value&&i[a.value.toUpperCase()]?i[a.value.toUpperCase()]:i&&Object.keys(i)[0]?i[Object.keys(i)[0]]:""}}function $L(e,t,n){const r=o.shallowRef(null),a=o.shallowRef(null),s=o.shallowRef(null),i=o.shallowRef(null),A=o.shallowRef(null);return{multiselect:r,wrapper:a,tags:s,input:i,dropdown:A}}function KL(e,t,n,r={}){return n.forEach(a=>{r={...r,...a(e,t,r)}}),r}var qt={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1,default:void 0},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:[String,Array],required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1,default:void 0},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1,default:void 0},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function,default:void 0},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1},appendToBody:{required:!1,type:Boolean,default:!1},closeOnScroll:{required:!1,type:Boolean,default:!1},breakTags:{required:!1,type:Boolean,default:!1},appendTo:{required:!1,type:String,default:void 0}},setup(e,t){return KL(e,t,[$L,VL,xO,TO,QL,FO,SO,ML,UO,RL,OO,NL,PL,HL])},beforeMount(){(this.$root.constructor&&this.$root.constructor.version&&this.$root.constructor.version.match(/^2\./)||this.vueVersionMs===2)&&(this.$options.components.Teleport||(this.$options.components.Teleport={render(){return this.$slots.default?this.$slots.default[0]:null}}))}};const zL=["id","dir"],WL=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],GL=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],jL=["onKeyup","aria-label"],YL=["onClick"],qL=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],XL=["innerHTML"],JL=["id"],ZL=["id"],eQ=["id","aria-label","aria-selected"],tQ=["data-pointed","onMouseenter","onClick"],nQ=["innerHTML"],rQ=["aria-label"],aQ=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],sQ=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],iQ=["innerHTML"],oQ=["innerHTML"],AQ=["value"],lQ=["name","value"],cQ=["name","value"],uQ=["id"];function dQ(e,t,n,r,a,s){return o.openBlock(),o.createElementBlock("div",{ref:"multiselect",class:o.normalizeClass(e.classList.container),id:n.searchable?void 0:n.id,dir:n.rtl?"rtl":void 0,onFocusin:t[12]||(t[12]=(...i)=>e.handleFocusIn&&e.handleFocusIn(...i)),onFocusout:t[13]||(t[13]=(...i)=>e.handleFocusOut&&e.handleFocusOut(...i)),onKeyup:t[14]||(t[14]=(...i)=>e.handleKeyup&&e.handleKeyup(...i)),onKeydown:t[15]||(t[15]=(...i)=>e.handleKeydown&&e.handleKeydown(...i))},[o.createElementVNode("div",o.mergeProps({class:e.classList.wrapper,onMousedown:t[9]||(t[9]=(...i)=>e.handleMousedown&&e.handleMousedown(...i)),ref:"wrapper",tabindex:e.tabindex,"aria-controls":n.searchable?void 0:e.ariaControls,"aria-placeholder":n.searchable?void 0:e.ariaPlaceholder,"aria-expanded":n.searchable?void 0:e.isOpen,"aria-activedescendant":n.searchable?void 0:e.ariaActiveDescendant,"aria-multiselectable":n.searchable?void 0:e.ariaMultiselectable,role:n.searchable?void 0:"combobox"},n.searchable?{}:e.arias),[o.createCommentVNode(" Search "),n.mode!=="tags"&&n.searchable&&!n.disabled?(o.openBlock(),o.createElementBlock("input",o.mergeProps({key:0,type:n.inputType,modelValue:e.search,value:e.search,class:e.classList.search,autocomplete:n.autocomplete,id:n.searchable?n.id:void 0,onInput:t[0]||(t[0]=(...i)=>e.handleSearchInput&&e.handleSearchInput(...i)),onKeypress:t[1]||(t[1]=(...i)=>e.handleKeypress&&e.handleKeypress(...i)),onPaste:t[2]||(t[2]=o.withModifiers((...i)=>e.handlePaste&&e.handlePaste(...i),["stop"])),ref:"input","aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},{...n.attrs,...e.arias}),null,16,GL)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Tags (with search) "),n.mode=="tags"?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(e.classList.tags),"data-tags":""},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.iv,(i,A,l)=>o.renderSlot(e.$slots,"tag",{option:i,handleTagRemove:e.handleTagRemove,disabled:n.disabled},()=>[(o.openBlock(),o.createElementBlock("span",{class:o.normalizeClass([e.classList.tag,i.disabled?e.classList.tagDisabled:null]),tabindex:"-1",onKeyup:o.withKeys(c=>e.handleTagRemove(i,c),["enter"]),key:l,"aria-label":e.ariaTagLabel(e.localize(i[n.label]))},[o.createElementVNode("span",{class:o.normalizeClass(e.classList.tagWrapper)},o.toDisplayString(e.localize(i[n.label])),3),!n.disabled&&!i.disabled?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(e.classList.tagRemove),onClick:o.withModifiers(c=>e.handleTagRemove(i,c),["stop"])},[o.createElementVNode("span",{class:o.normalizeClass(e.classList.tagRemoveIcon)},null,2)],10,YL)):o.createCommentVNode("v-if",!0)],42,jL))])),256)),o.createElementVNode("div",{class:o.normalizeClass(e.classList.tagsSearchWrapper),ref:"tags"},[o.createCommentVNode(" Used for measuring search width "),o.createElementVNode("span",{class:o.normalizeClass(e.classList.tagsSearchCopy)},o.toDisplayString(e.search),3),o.createCommentVNode(" Actual search input "),n.searchable&&!n.disabled?(o.openBlock(),o.createElementBlock("input",o.mergeProps({key:0,type:n.inputType,modelValue:e.search,value:e.search,class:e.classList.tagsSearch,id:n.searchable?n.id:void 0,autocomplete:n.autocomplete,onInput:t[3]||(t[3]=(...i)=>e.handleSearchInput&&e.handleSearchInput(...i)),onKeypress:t[4]||(t[4]=(...i)=>e.handleKeypress&&e.handleKeypress(...i)),onPaste:t[5]||(t[5]=o.withModifiers((...i)=>e.handlePaste&&e.handlePaste(...i),["stop"])),ref:"input","aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},{...n.attrs,...e.arias}),null,16,qL)):o.createCommentVNode("v-if",!0)],2)],2)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Single label "),n.mode=="single"&&e.hasSelected&&!e.search&&e.iv?o.renderSlot(e.$slots,"singlelabel",{key:2,value:e.iv},()=>[o.createElementVNode("div",{class:o.normalizeClass(e.classList.singleLabel)},[o.createElementVNode("span",{class:o.normalizeClass(e.classList.singleLabelText)},o.toDisplayString(e.localize(e.iv[n.label])),3)],2)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Multiple label "),n.mode=="multiple"&&e.hasSelected&&!e.search?o.renderSlot(e.$slots,"multiplelabel",{key:3,values:e.iv},()=>[o.createElementVNode("div",{class:o.normalizeClass(e.classList.multipleLabel),innerHTML:e.multipleLabelText},null,10,XL)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Placeholder "),n.placeholder&&!e.hasSelected&&!e.search?o.renderSlot(e.$slots,"placeholder",{key:4},()=>[o.createElementVNode("div",{class:o.normalizeClass(e.classList.placeholder),"aria-hidden":"true"},o.toDisplayString(n.placeholder),3)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Spinner "),n.loading||e.resolving?o.renderSlot(e.$slots,"spinner",{key:5},()=>[o.createElementVNode("span",{class:o.normalizeClass(e.classList.spinner),"aria-hidden":"true"},null,2)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Clear "),e.hasSelected&&!n.disabled&&n.canClear&&!e.busy?o.renderSlot(e.$slots,"clear",{key:6,clear:e.clear},()=>[o.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:o.normalizeClass(e.classList.clear),onClick:t[6]||(t[6]=(...i)=>e.clear&&e.clear(...i)),onKeyup:t[7]||(t[7]=o.withKeys((...i)=>e.clear&&e.clear(...i),["enter"]))},[o.createElementVNode("span",{class:o.normalizeClass(e.classList.clearIcon)},null,2)],34)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Caret "),n.caret&&n.showOptions?o.renderSlot(e.$slots,"caret",{key:7,handleCaretClick:e.handleCaretClick,isOpen:e.isOpen},()=>[o.createElementVNode("span",{class:o.normalizeClass(e.classList.caret),onClick:t[8]||(t[8]=(...i)=>e.handleCaretClick&&e.handleCaretClick(...i)),"aria-hidden":"true"},null,2)]):o.createCommentVNode("v-if",!0)],16,WL),o.createCommentVNode(" Options "),(o.openBlock(),o.createBlock(o.Teleport,{to:n.appendTo||"body",disabled:!n.appendToBody&&!n.appendTo},[o.createElementVNode("div",{id:n.id?`${n.id}-dropdown`:void 0,class:o.normalizeClass(e.classList.dropdown),tabindex:"-1",ref:"dropdown",onFocusin:t[10]||(t[10]=(...i)=>e.handleFocusIn&&e.handleFocusIn(...i)),onFocusout:t[11]||(t[11]=(...i)=>e.handleFocusOut&&e.handleFocusOut(...i))},[o.renderSlot(e.$slots,"beforelist",{options:e.fo}),o.createElementVNode("ul",{class:o.normalizeClass(e.classList.options),id:e.ariaControls,role:"listbox"},[n.groups?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(e.fg,(i,A,l)=>(o.openBlock(),o.createElementBlock("li",{class:o.normalizeClass(e.classList.group),key:l,id:e.ariaGroupId(i),"aria-label":e.ariaGroupLabel(e.localize(i[n.groupLabel])),"aria-selected":e.isSelected(i),role:"option"},[i.__CREATE__?o.createCommentVNode("v-if",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(e.classList.groupLabel(i)),"data-pointed":e.isPointed(i),onMouseenter:c=>e.setPointer(i,A),onClick:c=>e.handleGroupClick(i)},[o.renderSlot(e.$slots,"grouplabel",{group:i,isSelected:e.isSelected,isPointed:e.isPointed},()=>[o.createElementVNode("span",{innerHTML:e.localize(i[n.groupLabel])},null,8,nQ)])],42,tQ)),o.createElementVNode("ul",{class:o.normalizeClass(e.classList.groupOptions),"aria-label":e.ariaGroupLabel(e.localize(i[n.groupLabel])),role:"group"},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.__VISIBLE__,(c,u,d)=>(o.openBlock(),o.createElementBlock("li",{class:o.normalizeClass(e.classList.option(c,i)),"data-pointed":e.isPointed(c),"data-selected":e.isSelected(c)||void 0,key:d,onMouseenter:f=>e.setPointer(c),onClick:f=>e.handleOptionClick(c),id:e.ariaOptionId(c),"aria-selected":e.isSelected(c),"aria-label":e.ariaOptionLabel(e.localize(c[n.label])),role:"option"},[o.renderSlot(e.$slots,"option",{option:c,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},()=>[o.createElementVNode("span",null,o.toDisplayString(e.localize(c[n.label])),1)])],42,aQ))),128))],10,rQ)],10,eQ))),128)):(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(e.fo,(i,A,l)=>(o.openBlock(),o.createElementBlock("li",{class:o.normalizeClass(e.classList.option(i)),"data-pointed":e.isPointed(i),"data-selected":e.isSelected(i)||void 0,key:l,onMouseenter:c=>e.setPointer(i),onClick:c=>e.handleOptionClick(i),id:e.ariaOptionId(i),"aria-selected":e.isSelected(i),"aria-label":e.ariaOptionLabel(e.localize(i[n.label])),role:"option"},[o.renderSlot(e.$slots,"option",{option:i,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},()=>[o.createElementVNode("span",null,o.toDisplayString(e.localize(i[n.label])),1)])],42,sQ))),128))],10,ZL),e.noOptions?o.renderSlot(e.$slots,"nooptions",{key:0},()=>[o.createElementVNode("div",{class:o.normalizeClass(e.classList.noOptions),innerHTML:e.localize(n.noOptionsText)},null,10,iQ)]):o.createCommentVNode("v-if",!0),e.noResults?o.renderSlot(e.$slots,"noresults",{key:1},()=>[o.createElementVNode("div",{class:o.normalizeClass(e.classList.noResults),innerHTML:e.localize(n.noResultsText)},null,10,oQ)]):o.createCommentVNode("v-if",!0),n.infinite&&e.hasMore?(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(e.classList.inifinite),ref:"infiniteLoader"},[o.renderSlot(e.$slots,"infinite",{},()=>[o.createElementVNode("span",{class:o.normalizeClass(e.classList.inifiniteSpinner)},null,2)])],2)):o.createCommentVNode("v-if",!0),o.renderSlot(e.$slots,"afterlist",{options:e.fo})],42,JL)],8,["to","disabled"])),o.createCommentVNode(" Hacky input element to show HTML5 required warning "),n.required?(o.openBlock(),o.createElementBlock("input",{key:0,class:o.normalizeClass(e.classList.fakeInput),tabindex:"-1",value:e.textValue,required:""},null,10,AQ)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Native input support "),n.nativeSupport?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[n.mode=="single"?(o.openBlock(),o.createElementBlock("input",{key:0,type:"hidden",name:n.name,value:e.plainValue!==void 0?e.plainValue:""},null,8,lQ)):(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(e.plainValue,(i,A)=>(o.openBlock(),o.createElementBlock("input",{type:"hidden",name:`${n.name}[]`,value:i,key:A},null,8,cQ))),128))],64)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Screen reader assistive text "),n.searchable&&e.hasSelected?(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(e.classList.assist),id:e.ariaAssist,"aria-hidden":"true"},o.toDisplayString(e.ariaLabel),11,uQ)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Create height for empty input "),o.createElementVNode("div",{class:o.normalizeClass(e.classList.spacer)},null,2)],42,zL)}qt.render=dQ;qt.__file="src/Multiselect.vue";const fQ={class:"search-bar"},pQ=o.defineComponent({__name:"SearchBar",props:lD,setup(e){const{t}=Y(),n=o.ref(""),r=pn.useRouter(),a=e;function s(A,l,c){c.clear(),c.search=n.value,r.push(l.link),y_().addOption(l)}function i(A){n.value=A}return(A,l)=>(o.openBlock(),o.createElementBlock("div",fQ,[o.createVNode(o.unref(qt),{placeholder:o.unref(t)("navigation.searchPlaceholder"),"value-prop":"link","clear-on-blur":!1,"clear-on-search":!1,"clear-on-select":!1,"close-on-select":!0,delay:0,"filter-results":!1,groups:!0,"min-chars":0,"resolve-on-load":!1,searchable:!0,options:a.fetchSeachResult,onOpen:l[0]||(l[0]=c=>{c.noOptions&&c.resolveOptions()}),onSearchChange:i,onSelect:s},{option:o.withCtx(({option:c})=>[c.type==="card"?(o.openBlock(),o.createBlock(bt,{key:`card-${c.card.cardCode}`,class:"card-slice-item","maintain-aspect-ratio":!0,"card-prop":c.card,"router-link":c.link},null,8,["card-prop","router-link"])):(o.openBlock(),o.createBlock(bt,{key:`player-${c.link}`,class:"card-slice-item","maintain-aspect-ratio":!0,"ignore-card-item":!0,"card-code-prop":c.cardCode,color:c.color,name:c.name,"mana-number":c.rank,"router-link":c.link},null,8,["card-code-prop","color","name","mana-number","router-link"]))]),_:1},8,["placeholder","options"])]))}});const Ed=Q(pQ,[["__scopeId","data-v-f53c910f"]]),hQ={class:"social-links"},mQ={href:"https://discord.gg/tGTSXgDFVU"},gQ={href:"https://twitter.com/LORGG__"},vQ=o.defineComponent({__name:"SocialLinks",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("div",hQ,[o.createElementVNode("a",mQ,[o.createVNode(o.unref(Se),{class:"icon",icon:"fa-brands fa-discord"})]),o.createElementVNode("a",gQ,[o.createVNode(o.unref(Se),{class:"icon",icon:"fa-brands fa-twitter"})])]))}});const gg=Q(vQ,[["__scopeId","data-v-e6a74c37"]]),yQ={showModal:{type:Boolean,required:!0,default:!1}},BQ=o.defineComponent({__name:"ModalItem",props:yQ,emits:["update:showModal"],setup(e,{emit:t}){const n=e,r=t,a=o.ref(null),s=o.ref(!1);function i(){s.value&&r("update:showModal",!1)}o.onBeforeUnmount(()=>{var l;(l=a.value)==null||l.remove()});function A(){setTimeout(()=>{s.value=!1},1)}return o.watch(()=>n.showModal,()=>{n.showModal&&o.nextTick(()=>{a.value&&document.body.appendChild(a.value)})}),(l,c)=>n.showModal?(o.openBlock(),o.createElementBlock("div",{key:0,ref_key:"modalItem",ref:a,class:"modal-item",onMousedown:c[0]||(c[0]=o.withModifiers(u=>s.value=!0,["self"])),onClick:o.withModifiers(i,["self"]),onMouseup:A},[o.renderSlot(l.$slots,"default",{},void 0,!0)],544)):o.createCommentVNode("",!0)}});const Lr=Q(BQ,[["__scopeId","data-v-ab68e9be"]]),wQ={filterArray:{type:Array,required:!1,default:void 0},text:{type:String,required:!1,default:void 0},title:{type:String,required:!1,default:void 0}},bQ={class:"filter"},_Q={key:0,class:"top"},CQ={key:0,class:"title"},kQ={key:1,class:"text"},EQ=o.defineComponent({__name:"SidePanelSectionPane",props:wQ,emits:["clear:filterArray"],setup(e,{emit:t}){const n=e,r=t,a=o.computed(()=>n.filterArray&&n.filterArray.length>0?"clickable":null);function s(){r("clear:filterArray")}return(i,A)=>{const l=o.resolveDirective("t");return o.openBlock(),o.createElementBlock("div",bQ,[n.title||i.filterArray?(o.openBlock(),o.createElementBlock("div",_Q,[n.title?(o.openBlock(),o.createElementBlock("h2",CQ,o.toDisplayString(n.title),1)):o.createCommentVNode("",!0),n.text?(o.openBlock(),o.createElementBlock("p",kQ,o.toDisplayString(n.text),1)):i.filterArray?o.withDirectives((o.openBlock(),o.createElementBlock("p",{key:2,class:o.normalizeClass(["clear",a.value]),onClick:s},null,2)),[[l,"general.clear"]]):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),o.renderSlot(i.$slots,"default",{},void 0,!0)])}}});const ut=Q(EQ,[["__scopeId","data-v-d45db483"]]),SQ={filterArray:{type:Array,required:!0,default:[]}},xQ=["placeholder"],FQ=o.defineComponent({__name:"FilterSampleSize",props:SQ,emits:["update:filterArray"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.ref(r.filterArray),i=o.ref("");let A=setTimeout(()=>{},0);s.value.length>0&&(i.value=s.value[0]),o.watch(s,()=>{a("update:filterArray",s.value)}),o.watch(i,()=>{A&&clearTimeout(A),A=setTimeout(()=>{s.value.splice(0),i.value&&Number(i.value)>=10&&s.value.push(i.value)},1e3)});function l(){s.value.splice(0),i.value=""}return(c,u)=>(o.openBlock(),o.createBlock(ut,{"filter-array":s.value,title:o.unref(n)("general.sampleSize"),"onClear:filterArray":l},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":u[0]||(u[0]=d=>i.value=d),placeholder:o.unref(n)("general.minimumMatches"),type:"number",min:"10",step:"10"},null,8,xQ),[[o.vModelText,i.value]])]),_:1},8,["filter-array","title"]))}});const xo=Q(FQ,[["__scopeId","data-v-727f5a58"]]),TQ={filterArray:{type:Array,required:!0,default:[]}},IQ={isSelected:{type:Boolean,required:!0,default:!1},icon:{type:String,required:!1,default:void 0},prompt:{type:String,required:!0,default:""}},DQ=["selected"],UQ={class:"checkbox-name"},OQ=o.defineComponent({__name:"CheckboxItem",props:IQ,emits:["update:isSelected"],setup(e,{emit:t}){const n=e,r=t,a=o.computed(()=>(console.log(n.icon),{content:n.icon}));function s(){r("update:isSelected",!n.isSelected)}return(i,A)=>(o.openBlock(),o.createElementBlock("button",{class:"checkbox-item",selected:n.isSelected,onClick:s},[n.icon?(o.openBlock(),o.createElementBlock("div",{key:0,class:"checkbox-icon",style:o.normalizeStyle(a.value)},null,4)):o.createCommentVNode("",!0),o.createElementVNode("div",UQ,o.toDisplayString(n.prompt),1)],8,DQ))}});const sn=Q(OQ,[["__scopeId","data-v-ab8b99a4"]]),LQ={selectedOption:{type:Number,required:!0,default:-1},options:{type:Array,required:!0,default:[]}},QQ={class:"toggle-switch"},MQ=["onClick"],NQ={class:"option flex-center"},PQ={class:"option-text"},RQ=o.defineComponent({__name:"ToggleSwitch",props:LQ,emits:["update:selectedOption"],setup(e,{emit:t}){const n=e,r=t,a=o.computed(()=>({left:`calc(var(--spacing-1) + (100% - calc(var(--spacing-1) * 2)) / ${n.options.length} * ${n.selectedOption})`,width:`calc((100% - calc(var(--spacing-1) * 2)) / ${n.options.length})`}));function s(A){return{cursor:n.selectedOption!=A?"pointer":"default",left:`calc(var(--spacing-1) + (100% - calc(var(--spacing-1) * 2)) / ${n.options.length} * ${A})`,width:`${1/n.options.length*100}%`}}function i(A){r("update:selectedOption",A)}return(A,l)=>(o.openBlock(),o.createElementBlock("div",QQ,[o.withDirectives(o.createElementVNode("div",{class:"selection-container",style:o.normalizeStyle(a.value)},[...l[0]||(l[0]=[o.createElementVNode("div",{class:"selection"},null,-1)])],4),[[o.vShow,A.selectedOption>-1]]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.options,(c,u)=>(o.openBlock(),o.createElementBlock("div",{key:u,ref_for:!0,ref:"option-container",style:o.normalizeStyle(s(u)),class:"option-container",onClick:d=>i(u)},[o.createElementVNode("div",NQ,[o.createElementVNode("h1",PQ,o.toDisplayString(c),1)])],12,MQ))),128))]))}});const kl=Q(RQ,[["__scopeId","data-v-d5d9745a"]]),HQ={class:"checkboxes-container"},VQ=o.defineComponent({__name:"FilterRanks",props:TQ,emits:["update:filterArray"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.computed(()=>Be().dataJson.ranks.sort((u,d)=>d.order-u.order)),i=o.reactive(r.filterArray),A=o.ref(0);o.watch(i,()=>{a("update:filterArray",i)}),o.watch(A,()=>{A.value===0?i.splice(0):A.value===1&&(i.splice(0),i.push("Platinum","Diamond","Masters"))});function l(){i.splice(0),A.value=0}function c(u){const d=i.indexOf(u);if(d===-1){i.push(u);return}i.splice(d,1)}return(u,d)=>(o.openBlock(),o.createBlock(ut,{"filter-array":i,title:o.unref(n)("general.ranks"),"onClear:filterArray":l},{default:o.withCtx(()=>[o.createElementVNode("div",HQ,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,f=>(o.openBlock(),o.createBlock(sn,{key:f.nameRef,icon:`url(${f.icon})`,prompt:f.name,"is-selected":i.includes(f.nameRef),"onUpdate:isSelected":p=>c(f.nameRef)},null,8,["icon","prompt","is-selected","onUpdate:isSelected"]))),128)),o.createVNode(kl,{"selected-option":A.value,"onUpdate:selectedOption":d[0]||(d[0]=f=>A.value=f),options:[o.unref(n)("general.allRanks"),o.unref(n)("general.platPlus")]},null,8,["selected-option","options"])])]),_:1},8,["filter-array","title"]))}});const uC=Q(VQ,[["__scopeId","data-v-af7bc2a0"]]),$Q={filterArray:{type:Array,required:!0,default:[]}},KQ={isSelected:{type:Boolean,required:!0,default:!1},prompt:{type:Number,required:!0,default:""}},zQ=["selected"],WQ={class:"prompt"},GQ=o.defineComponent({__name:"CheckboxItemManaCost",props:KQ,emits:["update:isSelected"],setup(e,{emit:t}){const n=e,r=t;function a(){r("update:isSelected",!n.isSelected)}return(s,i)=>(o.openBlock(),o.createElementBlock("button",{class:"checkbox-item",selected:n.isSelected,onClick:a},[o.createVNode(Cl),o.createElementVNode("div",WQ,o.toDisplayString(n.prompt===10?"+":n.prompt),1)],8,zQ))}});const Ou=Q(GQ,[["__scopeId","data-v-2c74c2ed"]]),jQ={class:"checkbox-rows-container"},YQ={class:"top-row checkbox-items-container"},qQ={class:"bottom-row checkbox-items-container"},XQ=o.defineComponent({__name:"FilterManaCost",props:$Q,emits:["update:filterArray"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=Array(6).fill(1).map((c,u)=>u),i=Array(5).fill(1).map((c,u)=>u+6);function A(c){let u;r.filterArray.includes(c)?u=r.filterArray.filter(d=>d!==c):u=[...r.filterArray,c],a("update:filterArray",u)}function l(){a("update:filterArray",[])}return(c,u)=>(o.openBlock(),o.createBlock(ut,{"filter-array":r.filterArray,title:o.unref(n)("general.manaCost"),"onClear:filterArray":l},{default:o.withCtx(()=>[o.createElementVNode("div",jQ,[o.createElementVNode("div",YQ,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(s),d=>(o.openBlock(),o.createBlock(Ou,{key:d,class:"checkbox-item-mana-cost",prompt:d,"is-selected":r.filterArray.includes(d),"onUpdate:isSelected":f=>A(d)},null,8,["prompt","is-selected","onUpdate:isSelected"]))),128))]),o.createElementVNode("div",qQ,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(i),d=>(o.openBlock(),o.createBlock(Ou,{key:d,class:"checkbox-item-mana-cost",prompt:d,"is-selected":r.filterArray.includes(d),"onUpdate:isSelected":f=>A(d)},null,8,["prompt","is-selected","onUpdate:isSelected"]))),128))])])]),_:1},8,["filter-array","title"]))}});const vg=Q(XQ,[["__scopeId","data-v-a94d786a"]]),JQ={filterArray:{type:Array,required:!0,default:[]}},ZQ={class:"checkboxes-container"},yg=o.defineComponent({__name:"FilterRarities",props:JQ,emits:["update:filterArray"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.computed(()=>Be().dataJson.rarities.filter(c=>c.nameRef!=="None")),i=o.reactive(r.filterArray);o.watch(i,()=>{a("update:filterArray",i)});function A(){i.splice(0)}function l(c){const u=i.indexOf(c);if(u===-1){i.push(c);return}i.splice(u,1)}return(c,u)=>(o.openBlock(),o.createBlock(ut,{"filter-array":i,title:o.unref(n)("general.rarities"),"onClear:filterArray":A},{default:o.withCtx(()=>[o.createElementVNode("div",ZQ,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,d=>(o.openBlock(),o.createBlock(sn,{key:d.nameRef,icon:`url(${d.icon})`,prompt:d.name,"is-selected":i.includes(d.nameRef),"onUpdate:isSelected":f=>l(d.nameRef)},null,8,["icon","prompt","is-selected","onUpdate:isSelected"]))),128))])]),_:1},8,["filter-array","title"]))}}),eM={filterArray:{type:Array,required:!0,default:[]}},tM={class:"multiselect-tag",tabindex:"-1","aria-label":"{{option.name}} ❎"},nM=["src"],rM={class:"multiselect-tag-remove"},aM=["onMousedown"],sM=["src"],Bg=o.defineComponent({__name:"FilterSets",props:eM,emits:["update:filterArray"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.ref(r.filterArray);o.watch(s,()=>{a("update:filterArray",s.value)});function i(){s.value.splice(0)}return(A,l)=>(o.openBlock(),o.createBlock(ut,{"filter-array":s.value,title:o.unref(n)("general.sets"),"onClear:filterArray":i},{default:o.withCtx(()=>[o.createVNode(o.unref(qt),{modelValue:s.value,"onUpdate:modelValue":l[0]||(l[0]=c=>s.value=c),placeholder:o.unref(n)("general.sets"),class:"runeterra-select",mode:"tags",options:o.unref(Be)().dataJson.sets,searchable:!0,label:"name","value-prop":"nameRef"},{tag:o.withCtx(({option:c,handleTagRemove:u})=>[o.createElementVNode("span",tM,[o.createElementVNode("img",{class:"label-icon",src:c.icon},null,8,nM),o.createElementVNode("span",rM,[o.createElementVNode("span",{class:"multiselect-tag-remove-icon",onMousedown:o.withModifiers(d=>u(c,d),["prevent"])},null,40,aM)])])]),option:o.withCtx(({option:c})=>[o.createElementVNode("img",{class:"label-icon",src:c.icon},null,8,sM),o.createTextVNode(" "+o.toDisplayString(c.name),1)]),_:1},8,["modelValue","placeholder","options"])]),_:1},8,["filter-array","title"]))}}),iM={filterArray:{type:Array,required:!0,default:[]}},oM={class:"multiselect-tag",tabindex:"-1","aria-label":"{{option.name}} ❎"},AM=["src"],lM={class:"multiselect-tag-remove"},cM=["onMousedown"],uM=["src"],wg=o.defineComponent({__name:"FilterKeywords",props:iM,emits:["update:filterArray"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.ref(r.filterArray),i=o.computed(()=>Be().dataJson.keywords.filter(l=>l.showInFilter));o.watch(s,()=>{a("update:filterArray",s.value)});function A(){s.value.splice(0)}return(l,c)=>(o.openBlock(),o.createBlock(ut,{"filter-array":s.value,title:o.unref(n)("general.keywords"),"onClear:filterArray":A},{default:o.withCtx(()=>[o.createVNode(o.unref(qt),{modelValue:s.value,"onUpdate:modelValue":c[0]||(c[0]=u=>s.value=u),placeholder:o.unref(n)("general.keywords"),class:"runeterra-select",mode:"tags",options:i.value,searchable:!0,label:"name","value-prop":"nameRef"},{tag:o.withCtx(({option:u,handleTagRemove:d})=>[o.createElementVNode("span",oM,[o.createElementVNode("img",{class:"label-icon",src:u.icon},null,8,AM),o.createElementVNode("span",lM,[o.createElementVNode("span",{class:"multiselect-tag-remove-icon",onMousedown:o.withModifiers(f=>d(u,f),["prevent"])},null,40,cM)])])]),option:o.withCtx(({option:u})=>[o.createElementVNode("img",{class:"label-icon",src:u.icon},null,8,uM),o.createTextVNode(" "+o.toDisplayString(u.name),1)]),_:1},8,["modelValue","placeholder","options"])]),_:1},8,["filter-array","title"]))}}),dM={filterArray:{type:Array,required:!0,default:[]}},fM={class:"checkboxes-container"},Fo=o.defineComponent({__name:"FilterServers",props:dM,emits:["update:filterArray"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.reactive(r.filterArray);o.watch(s,()=>{a("update:filterArray",s)});function i(){s.splice(0)}function A(l){const c=s.indexOf(l);if(c===-1){s.push(l);return}s.splice(c,1)}return(l,c)=>(o.openBlock(),o.createBlock(ut,{"filter-array":s,title:o.unref(n)("general.servers"),"onClear:filterArray":i},{default:o.withCtx(()=>[o.createElementVNode("div",fM,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(Be)().dataJson.servers,u=>(o.openBlock(),o.createBlock(sn,{key:u.nameRef,prompt:u.name,"is-selected":s.includes(u.nameRef),"onUpdate:isSelected":d=>A(u.nameRef)},null,8,["prompt","is-selected","onUpdate:isSelected"]))),128))])]),_:1},8,["filter-array","title"]))}}),pM={filterArray:{type:Array,required:!0,default:[]},allowZero:{type:Boolean,required:!1,default:!1}},hM={class:"checkboxes-container"},mM=o.defineComponent({__name:"FilterTime",props:pM,emits:["update:filterArray"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.reactive(r.filterArray),i=o.ref(null),A=o.ref(null),l=s.find(h=>h.startsWith("patch_"));l&&(i.value=l);const c=s.find(h=>h.startsWith("season_"));c&&(A.value=c);const u=o.computed(()=>r.allowZero&&s.filter(h=>h.startsWith("patch")).length>0||!r.allowZero&&s.filter(h=>!h.startsWith("patch")).length===0);o.watch(s,()=>{a("update:filterArray",s)}),o.watch(i,(h,m)=>{d(h,m)}),o.watch(A,(h,m)=>{d(h,m)});function d(h,m){console.log(m,h),m&&s.splice(s.indexOf(m),1),h&&s.push(h),console.log(s)}function f(){s.splice(0),i.value=null,A.value=null}function p(h){s.splice(0),(r.allowZero||h!=="patch")&&s.push(h),h==="patch"&&i.value&&s.push(i.value),h==="season"&&A.value&&s.push(A.value)}return(h,m)=>(o.openBlock(),o.createBlock(ut,{class:"side-panel-section-pane","filter-array":s,title:o.unref(n)("general.time"),"onClear:filterArray":f},{default:o.withCtx(()=>[o.createElementVNode("div",hM,[o.createVNode(sn,{prompt:o.unref(n)("general.patch"),"is-selected":u.value,"onUpdate:isSelected":m[0]||(m[0]=y=>p("patch"))},null,8,["prompt","is-selected"]),o.createVNode(sn,{prompt:o.unref(n)("general.season"),"is-selected":s.includes("season"),"onUpdate:isSelected":m[1]||(m[1]=y=>p("season"))},null,8,["prompt","is-selected"]),o.createVNode(sn,{prompt:o.unref(n)("general.pastDays",7),"is-selected":s.includes("7days"),"onUpdate:isSelected":m[2]||(m[2]=y=>p("7days"))},null,8,["prompt","is-selected"]),o.createVNode(sn,{prompt:o.unref(n)("general.pastDays",3),"is-selected":s.includes("3days"),"onUpdate:isSelected":m[3]||(m[3]=y=>p("3days"))},null,8,["prompt","is-selected"]),o.createVNode(sn,{prompt:o.unref(n)("general.pastHours",24),"is-selected":s.includes("24hours"),"onUpdate:isSelected":m[4]||(m[4]=y=>p("24hours"))},null,8,["prompt","is-selected"]),o.createVNode(sn,{prompt:o.unref(n)("general.pastHour"),"is-selected":s.includes("1hour"),"onUpdate:isSelected":m[5]||(m[5]=y=>p("1hour"))},null,8,["prompt","is-selected"]),u.value?(o.openBlock(),o.createBlock(o.unref(qt),{key:0,modelValue:i.value,"onUpdate:modelValue":m[6]||(m[6]=y=>i.value=y),options:o.unref(Be)().dataJson.patches,searchable:!0,label:"name","value-prop":"nameRef",placeholder:o.unref(n)("general.patches")},null,8,["modelValue","options","placeholder"])):o.createCommentVNode("",!0),s.includes("season")?(o.openBlock(),o.createBlock(o.unref(qt),{key:1,modelValue:A.value,"onUpdate:modelValue":m[7]||(m[7]=y=>A.value=y),options:o.unref(Be)().dataJson.seasons,searchable:!0,label:"name","value-prop":"nameRef",placeholder:o.unref(n)("general.seasons")},null,8,["modelValue","options","placeholder"])):o.createCommentVNode("",!0)])]),_:1},8,["filter-array","title"]))}});const fi=Q(mM,[["__scopeId","data-v-921cb269"]]),gM={filterArray:{type:Array,required:!0,default:[]}},vM={cardCodes:{type:[Array,String,null],required:!0,default:[]},filterCallback:{type:Function,required:!1,default:()=>!0},mode:{type:String,required:!1,default:"tags"}},yM=o.defineComponent({__name:"CardMultiselect",props:vM,emits:["update:cardCodes"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.ref(r.cardCodes),i=o.computed(()=>{let A=Zm().cardJson.sort((l,c)=>l.name.localeCompare(c.name));return r.filterCallback&&(A=A.filter(r.filterCallback)),A});return o.watch(s,()=>{a("update:cardCodes",s.value)}),(A,l)=>(o.openBlock(),o.createBlock(o.unref(qt),{modelValue:s.value,"onUpdate:modelValue":l[0]||(l[0]=c=>s.value=c),class:"multiselect",placeholder:o.unref(n)("cards.cards"),mode:r.mode,options:i.value,infinite:!0,limit:10,searchable:!0,label:"name","value-prop":"cardCode"},null,8,["modelValue","placeholder","mode","options"]))}});const bg=Q(yM,[["__scopeId","data-v-e46bd34a"]]),Sd=o.defineComponent({__name:"FilterCardCodes",props:gM,emits:["update:filterArray"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.ref(r.filterArray);o.watch(s,()=>{console.log("watch(filterArray)",s.value),a("update:filterArray",s.value)});function i(){s.value.splice(0)}function A(l){return l.collectible}return(l,c)=>(o.openBlock(),o.createBlock(ut,{"filter-array":s.value,title:o.unref(n)("cards.cards"),"onClear:filterArray":i},{default:o.withCtx(()=>[o.createVNode(bg,{cardCodes:s.value,"onUpdate:cardCodes":c[0]||(c[0]=u=>s.value=u),mode:"tags","filter-callback":A},null,8,["cardCodes"])]),_:1},8,["filter-array","title"]))}}),BM={filterArray:{type:Array,required:!0,default:[]}},wM={class:"checkboxes-container"},bM=o.defineComponent({__name:"FilterRegions",props:BM,emits:["update:filterArray"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.reactive(r.filterArray),i=o.ref([]);i.value.push(...s.filter(c=>HA(c))),o.watch(s,()=>{a("update:filterArray",s)}),o.watch(i,(c,u)=>{let d=c.find(f=>!u.includes(f));if(d||(d=u.find(f=>!c.includes(f)),d))return l(d)});function A(){s.splice(0),i.value.slice(0)}function l(c){const u=s.indexOf(c);if(u===-1){s.push(c),c==="Runeterra"&&s.push(...i.value);return}if(s.splice(u,1),c==="Runeterra")for(let d=0;d<s.length;d++)HA(s[d])&&s.splice(d--,1)}return(c,u)=>(o.openBlock(),o.createBlock(ut,{"filter-array":s,title:o.unref(n)("general.regions"),"onClear:filterArray":A},{default:o.withCtx(()=>[o.createElementVNode("div",wM,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(Be)().dataJson.regions,d=>(o.openBlock(),o.createBlock(sn,{key:d.nameRef,icon:`url(${d.icon})`,prompt:d.name,"is-selected":s.includes(d.nameRef),"onUpdate:isSelected":f=>l(d.nameRef)},null,8,["icon","prompt","is-selected","onUpdate:isSelected"]))),128)),o.createVNode(sn,{class:"runeterra",prompt:"Runeterra","is-selected":s.includes("Runeterra"),"onUpdate:isSelected":u[0]||(u[0]=d=>l("Runeterra"))},null,8,["is-selected"]),s.includes("Runeterra")?(o.openBlock(),o.createBlock(o.unref(qt),{key:0,modelValue:i.value,"onUpdate:modelValue":u[1]||(u[1]=d=>i.value=d),class:"runeterra-select",mode:"tags",options:o.unref(Be)().dataJson.runeterraChampions,searchable:!0,label:"name","value-prop":"nameRef"},null,8,["modelValue","options"])):o.createCommentVNode("",!0)])]),_:1},8,["filter-array","title"]))}});const El=Q(bM,[["__scopeId","data-v-c93a9e90"]]),_M={filters:{type:Object,required:!0,default:{cardFilters:[],regionFilters:[],sampleSizeFilters:[],serverFilters:[],timeFilters:[],formatFilters:[],queueFilters:[]}},includeDataFilters:{type:Boolean,required:!1,default:!0}},CM={filterArray:{type:Array,required:!0,default:[]},allowZero:{type:Boolean,required:!1,default:!1}},kM={class:"checkboxes-container"},EM=o.defineComponent({__name:"FilterFormat",props:CM,emits:["update:filterArray"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.computed(()=>{const f=Be().dataJson.queues;return Object.values(Be().dataJson.formats).filter(p=>p.availableQueues.some(h=>!f[h].excludeInMassFilter))}),i=o.computed(()=>s.value.filter(f=>!f.inDropdown)),A=o.computed(()=>s.value.filter(f=>f.inDropdown)),l=o.reactive(r.filterArray),c=o.ref(null);o.onMounted(()=>{l.length>0&&A.value.map(f=>f.nameRef).includes(l[0])&&(c.value=l[0])}),o.watch(l,()=>{a("update:filterArray",l),l.length===0&&(c.value=null)}),o.watch(c,()=>{c.value&&(l.splice(0),l.push(c.value))});function u(f){c.value=null,l.splice(0),f!==sr.Standard&&l.push(f)}function d(){l.splice(0)}return(f,p)=>(o.openBlock(),o.createBlock(ut,{"filter-array":l,title:o.unref(n)("general.format"),"onClear:filterArray":d},{default:o.withCtx(()=>[o.createElementVNode("div",kM,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,h=>(o.openBlock(),o.createBlock(sn,{prompt:h.name,"is-selected":l.includes(h.nameRef)||!r.allowZero&&h.nameRef==="Standard"&&l.length===0,"onUpdate:isSelected":m=>u(h.nameRef)},null,8,["prompt","is-selected","onUpdate:isSelected"]))),256)),A.value.length>0?(o.openBlock(),o.createBlock(o.unref(qt),{key:0,modelValue:c.value,"onUpdate:modelValue":p[0]||(p[0]=h=>c.value=h),options:A.value,searchable:!1,placeholder:o.unref(n)("general.otherFormats"),label:"name","value-prop":"nameRef",onClear:d},null,8,["modelValue","options","placeholder"])):o.createCommentVNode("",!0)])]),_:1},8,["filter-array","title"]))}});const Sl=Q(EM,[["__scopeId","data-v-22de9b40"]]),SM={filterArray:{type:Array,required:!0,default:[]},availableQueues:{type:Array,required:!0,default:[]}},xl=o.defineComponent({__name:"FilterQueues",props:SM,emits:["update:filterArray"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.ref(r.filterArray),i=o.computed(()=>Object.values(Be().dataJson.queues).filter(l=>r.availableQueues.includes(l.nameRef)&&!l.excludeInMassFilter));o.watch(s,()=>{a("update:filterArray",s.value)});function A(){s.value.splice(0)}return(l,c)=>r.availableQueues.length>1?(o.openBlock(),o.createBlock(ut,{key:0,"filter-array":s.value,title:o.unref(n)("general.queues"),"onClear:filterArray":A},{default:o.withCtx(()=>{var u,d;return[o.createVNode(o.unref(qt),{modelValue:s.value,"onUpdate:modelValue":c[0]||(c[0]=f=>s.value=f),placeholder:(d=(u=i.value)==null?void 0:u.find(f=>f.nameRef===o.unref($w).Ranked))==null?void 0:d.name,class:"runeterra-select",mode:"tags",options:i.value,searchable:!0,label:"name","value-prop":"nameRef"},null,8,["modelValue","placeholder","options"])]}),_:1},8,["filter-array","title"])):o.createCommentVNode("",!0)}}),xM={filterObject:{type:Object,required:!1,default:void 0},showClearAll:{type:Boolean,required:!1,default:!0}},FM={class:"filter"},TM={key:0,class:"top"},IM=o.defineComponent({__name:"SidePanel",props:xM,emits:["clear:filterObject"],setup(e,{emit:t}){const n=e,r=t,a=o.computed(()=>n.filterObject&&Object.values(n.filterObject).some(i=>i.length>0)?"clickable":null);function s(){r("clear:filterObject")}return(i,A)=>{const l=o.resolveDirective("t");return o.openBlock(),o.createElementBlock("div",FM,[n.showClearAll&&n.filterObject?(o.openBlock(),o.createElementBlock("div",TM,[o.withDirectives(o.createElementVNode("p",{class:o.normalizeClass(["clear",a.value]),onClick:s},null,2),[[l,"general.clearAll"]])])):o.createCommentVNode("",!0),o.renderSlot(i.$slots,"default",{},void 0,!0)])}}});const pi=Q(IM,[["__scopeId","data-v-6a93fcc1"]]),dC=o.defineComponent({__name:"FilterDecks",props:_M,emits:["update:filters"],setup(e,{emit:t}){const n=e,r=t,a=o.reactive(n.filters);o.watch(a,()=>{r("update:filters",a)});const s=o.computed(()=>{var A;return(A=Be().dataJson.formats[a.formatFilters[0]??"Standard"])==null?void 0:A.availableQueues});function i(){for(const[,A]of Object.entries(a))A.splice(0)}return(A,l)=>(o.openBlock(),o.createBlock(pi,{"filter-object":n.filters,"onClear:filterObject":i},{default:o.withCtx(()=>[o.createVNode(El,{"filter-array":a.regionFilters,"onUpdate:filterArray":l[0]||(l[0]=c=>a.regionFilters=c)},null,8,["filter-array"]),o.createVNode(Sd,{"filter-array":a.cardFilters,"onUpdate:filterArray":l[1]||(l[1]=c=>a.cardFilters=c)},null,8,["filter-array"]),o.createVNode(Sl,{"filter-array":a.formatFilters,"onUpdate:filterArray":l[2]||(l[2]=c=>a.formatFilters=c)},null,8,["filter-array"]),n.includeDataFilters?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(xl,{"filter-array":a.queueFilters,"onUpdate:filterArray":l[3]||(l[3]=c=>a.queueFilters=c),"available-queues":s.value},null,8,["filter-array","available-queues"]),o.createVNode(xo,{"filter-array":a.sampleSizeFilters,"onUpdate:filterArray":l[4]||(l[4]=c=>a.sampleSizeFilters=c)},null,8,["filter-array"]),o.createVNode(fi,{"filter-array":a.timeFilters,"onUpdate:filterArray":l[5]||(l[5]=c=>a.timeFilters=c)},null,8,["filter-array"]),o.createVNode(Fo,{"filter-array":a.serverFilters,"onUpdate:filterArray":l[6]||(l[6]=c=>a.serverFilters=c)},null,8,["filter-array"])],64)):o.createCommentVNode("",!0)]),_:1},8,["filter-object"]))}}),DM={filters:{type:Object,required:!0,default:{cardFilters:[],regionFilters:[],sampleSizeFilters:[],serverFilters:[],timeFilters:[],formatFilters:[],queueFilters:[]}},includeDataFilters:{type:Boolean,required:!1,default:!0}},UM={filterArray:{type:Array,required:!0,default:[]},placeholder:{type:String,required:!1},title:{type:String,required:!1,default:"Text"}},OM=["placeholder"],LM=o.defineComponent({__name:"FilterText",props:UM,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,r=t,a=o.ref(n.filterArray),s=o.ref("");let i=setTimeout(()=>{},0);a.value.length>0&&(s.value=a.value[0]),o.watch(a,()=>{r("update:filterArray",a.value)}),o.watch(s,()=>{i&&clearTimeout(i),i=setTimeout(()=>{a.value.splice(0),s.value&&a.value.push(s.value)},1e3)});function A(){a.value.splice(0),s.value=""}return(l,c)=>(o.openBlock(),o.createBlock(ut,{"filter-array":a.value,title:n.title,"onClear:filterArray":A},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>s.value=u),placeholder:n.placeholder,type:"text"},null,8,OM),[[o.vModelText,s.value]])]),_:1},8,["filter-array","title"]))}});const tl=Q(LM,[["__scopeId","data-v-e9c34cae"]]),fC=o.defineComponent({__name:"FilterProfile",props:DM,emits:["update:filters"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.reactive(r.filters);o.watch(s,()=>{a("update:filters",s)});const i=o.computed(()=>{var l;return s.formatFilters.length===0?[]:(l=Be().dataJson.formats[s.formatFilters[0]??"Standard"])==null?void 0:l.availableQueues});function A(){for(const[,l]of Object.entries(s))l.splice(0)}return(l,c)=>(o.openBlock(),o.createBlock(pi,{"filter-object":r.filters,"onClear:filterObject":A},{default:o.withCtx(()=>[o.createVNode(El,{"filter-array":s.regionFilters,"onUpdate:filterArray":c[0]||(c[0]=u=>s.regionFilters=u)},null,8,["filter-array"]),o.createVNode(Sd,{"filter-array":s.cardFilters,"onUpdate:filterArray":c[1]||(c[1]=u=>s.cardFilters=u)},null,8,["filter-array"]),o.createVNode(tl,{"filter-array":s.deckCodeFilters,"onUpdate:filterArray":c[2]||(c[2]=u=>s.deckCodeFilters=u),placeholder:o.unref(n)("general.deckCode"),title:o.unref(n)("general.deckCode")},null,8,["filter-array","placeholder","title"]),o.createVNode(tl,{"filter-array":s.playerFilters,"onUpdate:filterArray":c[3]||(c[3]=u=>s.playerFilters=u),placeholder:o.unref(n)("general.players"),title:o.unref(n)("general.players")},null,8,["filter-array","placeholder","title"]),o.createVNode(xo,{"filter-array":s.sampleSizeFilters,"onUpdate:filterArray":c[4]||(c[4]=u=>s.sampleSizeFilters=u)},null,8,["filter-array"]),o.createVNode(Sl,{"allow-zero":!0,"filter-array":s.formatFilters,"onUpdate:filterArray":c[5]||(c[5]=u=>s.formatFilters=u)},null,8,["filter-array"]),o.createVNode(xl,{"filter-array":s.queueFilters,"onUpdate:filterArray":c[6]||(c[6]=u=>s.queueFilters=u),"available-queues":i.value},null,8,["filter-array","available-queues"]),o.createVNode(fi,{"allow-zero":!0,"filter-array":s.timeFilters,"onUpdate:filterArray":c[7]||(c[7]=u=>s.timeFilters=u)},null,8,["filter-array"])]),_:1},8,["filter-object"]))}}),QM={filterValue:{type:Object,required:!0,default:{attribute:"attack",equality:">",number:0}}},MM={class:"advanced-filter-item"},NM=["value"],PM=o.defineComponent({__name:"AdvancedFilterItem",props:QM,emits:["update:filterValue"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=[{value:"attack",label:n("cards.attack")},{value:"health",label:n("cards.health")},{value:"cost",label:n("cards.cost")},{value:"quantityOwned",label:n("cards.quantityOwned")}],i=o.ref(r.filterValue.attribute);o.watch(i,()=>{a("update:filterValue",{attribute:i.value,equality:r.filterValue.equality,number:r.filterValue.number})});function A(){let c=">";r.filterValue.equality===">"?c="<":r.filterValue.equality==="<"&&(c="="),a("update:filterValue",{attribute:r.filterValue.attribute,equality:c,number:r.filterValue.number})}function l(c){a("update:filterValue",{attribute:r.filterValue.attribute,equality:r.filterValue.equality,number:Number(c.target.value)})}return(c,u)=>(o.openBlock(),o.createElementBlock("div",MM,[o.createVNode(o.unref(qt),{modelValue:i.value,"onUpdate:modelValue":u[0]||(u[0]=d=>i.value=d),class:"advanced-attribute",options:s,"can-clear":!1,label:"label","value-prop":"value"},null,8,["modelValue"]),o.createElementVNode("div",{class:"equality-button",onClick:A},o.toDisplayString(r.filterValue.equality),1),o.createElementVNode("input",{type:"number",class:"equality-number",value:r.filterValue.number,onInput:l},null,40,NM)]))}});const _g=Q(PM,[["__scopeId","data-v-eb2d535d"]]),RM={filterValue:{type:Array,required:!0,default:[]}},HM=o.defineComponent({__name:"FilterAdvanced",props:RM,emits:["update:filterValue"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.reactive(r.filterValue);o.watch(s,()=>{a("update:filterValue",s)});function i(){s.splice(0)}function A(){s.push({attribute:"attack",equality:">",number:0})}return(l,c)=>(o.openBlock(),o.createBlock(ut,{class:"advanced-filters","filter-array":s,title:o.unref(n)("general.advanced"),"onClear:filterArray":i},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s,(u,d)=>(o.openBlock(),o.createBlock(_g,{key:d,"filter-value":s[d],"onUpdate:filterValue":f=>s[d]=f,class:"advanced-filter-item"},null,8,["filter-value","onUpdate:filterValue"]))),128)),o.createElementVNode("div",{class:"new-advanced-filter",onClick:A},o.toDisplayString(o.unref(n)("general.newAdvancedFilter")),1)]),_:1},8,["filter-array","title"]))}});const Cg=Q(HM,[["__scopeId","data-v-6c23ee29"]]),VM={filterArray:{type:Array,required:!0,default:[]}},$M={class:"checkboxes-container"},kg=o.defineComponent({__name:"FilterTypes",props:VM,emits:["update:filterArray"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.computed(()=>Be().dataJson.types.filter(c=>["Unit","Spell","Landmark","Equipment"].includes(c.nameRef))),i=o.reactive(r.filterArray);o.watch(i,()=>{a("update:filterArray",i)});function A(){i.splice(0)}function l(c){const u=i.indexOf(c);if(u===-1){i.push(c);return}i.splice(u,1)}return(c,u)=>(o.openBlock(),o.createBlock(ut,{"filter-array":r.filterArray,title:o.unref(n)("general.types"),"onClear:filterArray":A},{default:o.withCtx(()=>[o.createElementVNode("div",$M,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,d=>(o.openBlock(),o.createBlock(sn,{key:d.nameRef,icon:`url(${d.icon})`,prompt:d.name,"is-selected":i.includes(d.nameRef),"onUpdate:isSelected":f=>l(d.nameRef)},null,8,["icon","prompt","is-selected","onUpdate:isSelected"]))),128))])]),_:1},8,["filter-array","title"]))}}),KM={filters:{type:Object,required:!0,default:{advancedFilters:[],regionFilters:[],manaCostFilters:[],typeFilters:[],rarityFilters:[],setFilters:[],keywordFilters:[],textFilters:[],cardFormatFilters:[]}}},zM={filterArray:{type:Array,required:!0,default:[]}},WM={class:"checkboxes-container"},GM=o.defineComponent({__name:"FilterCardFormats",props:zM,emits:["update:filterArray"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.reactive(r.filterArray);o.watch(s,()=>{a("update:filterArray",s)});function i(){s.splice(0)}function A(l){const c=s.indexOf(l);if(c===-1){s.push(l);return}s.splice(c,1)}return(l,c)=>(o.openBlock(),o.createBlock(ut,{"filter-array":s,title:o.unref(n)("general.format"),"onClear:filterArray":i},{default:o.withCtx(()=>[o.createElementVNode("div",WM,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(Be)().dataJson.cardFormats.filter(u=>[o.unref(sr).Standard,o.unref(sr).Eternal].includes(u.nameRef)),u=>(o.openBlock(),o.createBlock(sn,{key:u.nameRef,prompt:u.name,"is-selected":s.includes(u.nameRef),"onUpdate:isSelected":d=>A(u.nameRef)},null,8,["prompt","is-selected","onUpdate:isSelected"]))),128))])]),_:1},8,["filter-array","title"]))}}),pC=o.defineComponent({__name:"FilterCards",props:KM,emits:["update:filters"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.reactive(r.filters);o.watch(s,()=>{a("update:filters",s)});const i=o.computed(()=>{var l;return"formatFilters"in s?(l=Be().dataJson.formats[s.formatFilters[0]??"Standard"])==null?void 0:l.availableQueues:[]});function A(){for(const[,l]of Object.entries(s))l.splice(0)}return(l,c)=>(o.openBlock(),o.createBlock(pi,{"filter-object":r.filters,"onClear:filterObject":A},{default:o.withCtx(()=>[o.createVNode(o.unref(tl),{"filter-array":s.textFilters,"onUpdate:filterArray":c[0]||(c[0]=u=>s.textFilters=u),placeholder:o.unref(n)("general.text"),title:o.unref(n)("general.text")},null,8,["filter-array","placeholder","title"]),o.createVNode(vg,{"filter-array":s.manaCostFilters,"onUpdate:filterArray":c[1]||(c[1]=u=>s.manaCostFilters=u)},null,8,["filter-array"]),"cardFormatFilters"in s?(o.openBlock(),o.createBlock(GM,{key:0,"filter-array":s.cardFormatFilters,"onUpdate:filterArray":c[2]||(c[2]=u=>s.cardFormatFilters=u)},null,8,["filter-array"])):o.createCommentVNode("",!0),o.createVNode(El,{"filter-array":s.regionFilters,"onUpdate:filterArray":c[3]||(c[3]=u=>s.regionFilters=u)},null,8,["filter-array"]),o.createVNode(kg,{"filter-array":s.typeFilters,"onUpdate:filterArray":c[4]||(c[4]=u=>s.typeFilters=u)},null,8,["filter-array"]),o.createVNode(yg,{"filter-array":s.rarityFilters,"onUpdate:filterArray":c[5]||(c[5]=u=>s.rarityFilters=u)},null,8,["filter-array"]),o.createVNode(Bg,{"filter-array":s.setFilters,"onUpdate:filterArray":c[6]||(c[6]=u=>s.setFilters=u)},null,8,["filter-array"]),o.createVNode(wg,{"filter-array":s.keywordFilters,"onUpdate:filterArray":c[7]||(c[7]=u=>s.keywordFilters=u)},null,8,["filter-array"]),o.createVNode(Cg,{"filter-value":s.advancedFilters,"onUpdate:filterValue":c[8]||(c[8]=u=>s.advancedFilters=u)},null,8,["filter-value"]),"serverFilters"in s?(o.openBlock(),o.createBlock(o.unref(Fo),{key:1,"filter-array":s.serverFilters,"onUpdate:filterArray":c[9]||(c[9]=u=>s.serverFilters=u)},null,8,["filter-array"])):o.createCommentVNode("",!0),"timeFilters"in s?(o.openBlock(),o.createBlock(fi,{key:2,"filter-array":s.timeFilters,"onUpdate:filterArray":c[10]||(c[10]=u=>s.timeFilters=u)},null,8,["filter-array"])):o.createCommentVNode("",!0),"formatFilters"in s?(o.openBlock(),o.createBlock(Sl,{key:3,"filter-array":s.formatFilters,"onUpdate:filterArray":c[11]||(c[11]=u=>s.formatFilters=u)},null,8,["filter-array"])):o.createCommentVNode("",!0),"queueFilters"in s?(o.openBlock(),o.createBlock(xl,{key:4,"filter-array":s.queueFilters,"onUpdate:filterArray":c[12]||(c[12]=u=>s.queueFilters=u),"available-queues":i.value},null,8,["filter-array","available-queues"])):o.createCommentVNode("",!0)]),_:1},8,["filter-object"]))}}),jM={regionRef:{type:String,required:!0,default:"Ionia"}},YM={text:{type:String,required:!0,default:""}},qM=["innerHTML"],XM=o.defineComponent({__name:"TippyText",props:YM,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",{class:"tippy-text",innerHTML:t.text},null,8,qM))}});const xd=Q(XM,[["__scopeId","data-v-715107fe"]]),JM={class:"region-item"},ZM=["alt","src"],e7=o.defineComponent({__name:"RegionItem",props:jM,setup(e){const t=e,n=o.ref(null),r=o.ref(null),a=o.computed(()=>Be().dataJson.regions.find(s=>s.nameRef==t.regionRef)??Be().dataJson.runeterraChampions.find(s=>s.nameRef===t.regionRef));return o.onMounted(()=>{tt(n.value,{content:r.value,arrow:!0})}),(s,i)=>{var A,l,c;return o.openBlock(),o.createElementBlock("div",JM,[o.createElementVNode("img",{ref_key:"regionImg",ref:n,alt:(A=a.value)==null?void 0:A.name,src:(l=a.value)==null?void 0:l.icon,class:"region-img"},null,8,ZM),o.createElementVNode("div",{ref_key:"regionTippy",ref:r},[o.createVNode(xd,{text:(c=a.value)==null?void 0:c.name},null,8,["text"])],512)])}}});const Fl=Q(e7,[["__scopeId","data-v-3d756f50"]]),t7={deckCode:{type:String,required:!0,default:""},deck:{type:Object,required:!1},cards:{type:Array,required:!1},describeRegions:{type:Boolean,required:!1,default:!1}},n7={class:"regions-line"},r7={key:0,class:"describe-regions"},a7={class:"lines"},s7=o.defineComponent({__name:"RegionsLine",props:t7,setup(e){const{t}=Y(),n=e,r=o.computed(()=>n.deck?n.deck:Et(n.deckCode)),a=o.computed(()=>n.cards?n.cards:ln(r.value)),s=o.computed(()=>{const A={};for(const l of cd(r.value))A[l]=0;for(const l of a.value)for(const c of l.regionRefs)c in A&&(A[c]+=r.value[l.cardCode]);return A});function i(A,l){return{flexGrow:A,backgroundColor:`var(--color-${l}, var(--color-Runeterra))`}}return(A,l)=>(o.openBlock(),o.createElementBlock("div",n7,[n.describeRegions?(o.openBlock(),o.createElementBlock("div",r7,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,(c,u)=>(o.openBlock(),o.createElementBlock("div",{key:u,class:"region-description"},[o.createVNode(Fl,{"region-ref":u,class:"icon"},null,8,["region-ref"]),o.createElementVNode("span",null,o.toDisplayString(`${c} ${o.unref(t)("general.cards")}`),1)]))),128))])):o.createCommentVNode("",!0),o.createElementVNode("div",a7,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,(c,u)=>(o.openBlock(),o.createElementBlock("div",{key:u,style:o.normalizeStyle(i(c,u)),class:"region-line"},null,4))),128))])]))}});const Eg=Q(s7,[["__scopeId","data-v-f1f94f8b"]]),i7={routerLink:{type:Object,required:!0,default:{path:"/404"}},cardCode:{type:String,required:!0,default:"01IO001"},toggledStats:{type:Object,required:!0,default:{matches:!0,winrate:!0,inclusion:!0,avgCopies:!0,mulliganWinrate:!1,kept:!1,drawnWinrate:!1,turnsHeld:!1,turnPlayed:!1}},index:{type:Number,required:!0,default:1},matches:{type:Number,required:!0,default:1},region:{type:String,required:!0,default:""},wins:{type:Number,required:!0,default:1},inclusion:{type:Number,required:!0,default:.5},avgCopies:{type:Number,required:!0,default:1},mulliganWinrate:{type:Number,required:!1,default:void 0},keptInMulligan:{type:Number,required:!1,default:void 0},drawnWinrate:{type:Number,required:!1,default:void 0},turnsHeld:{type:Number,required:!1,default:void 0},turnPlayed:{type:Number,required:!1,default:void 0}},o7={class:"cards-row-background-wrapper"},A7={class:"cards-row-background"},l7={class:"cards-row wrapper"},c7={key:0,class:"column-content"},u7={key:2,class:"column-content"},d7={key:3,class:"column-content"},f7={key:5,class:"column-content"},p7={key:7,class:"column-content"},h7={key:8,class:"column-content"},m7=o.defineComponent({__name:"CardsRow",props:i7,setup(e){const t=e,n=o.computed(()=>["",_e().callbacks.cardImageCallback(t.cardCode,_t.Banner)]);return(r,a)=>{const s=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(s,{to:t.routerLink,class:"wrapper"},{default:o.withCtx(()=>[o.createElementVNode("div",{class:"cards-row-wrapper wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",o7,[o.createElementVNode("div",A7,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,i=>(o.openBlock(),o.createElementBlock("div",{key:i,class:"background-card",style:o.normalizeStyle({"--background-image":`url(${i})`})},null,4))),128))])]),o.createElementVNode("div",l7,[o.createElementVNode("div",{class:"column-content deck-highlight-wrapper",onClick:a[0]||(a[0]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createVNode(bt,{class:"card-slice-item","card-code-prop":t.cardCode,"maintain-aspect-ratio":!1,color:`var(--color-${t.region}-rgb, var(--color-primary-2-rgb))`,"router-link":t.routerLink},null,8,["card-code-prop","color","router-link"])]),t.toggledStats.matches?(o.openBlock(),o.createElementBlock("div",c7,o.toDisplayString(o.unref(Te)(t.matches)),1)):o.createCommentVNode("",!0),t.toggledStats.winrate?(o.openBlock(),o.createElementBlock("div",{key:1,class:"column-content",style:o.normalizeStyle({color:`var(${o.unref(Yn)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Te)(t.wins/t.matches*100,2,3)+"%"),5)):o.createCommentVNode("",!0),t.toggledStats.inclusion?(o.openBlock(),o.createElementBlock("div",u7,o.toDisplayString(o.unref(Te)(t.inclusion*100,2,3)+"%"),1)):o.createCommentVNode("",!0),t.toggledStats.avgCopies?(o.openBlock(),o.createElementBlock("div",d7,o.toDisplayString(o.unref(Te)(t.avgCopies,2,3)),1)):o.createCommentVNode("",!0),t.toggledStats.mulliganWinrate?(o.openBlock(),o.createElementBlock("div",{key:4,class:"column-content",style:o.normalizeStyle({color:`var(${o.unref(Yn)(t.mulliganWinrate,t.wins/t.matches)})`})},o.toDisplayString(t.mulliganWinrate?o.unref(Te)(t.mulliganWinrate*100,2,3)+"%":"-"),5)):o.createCommentVNode("",!0),t.toggledStats.keptInMulligan?(o.openBlock(),o.createElementBlock("div",f7,o.toDisplayString(t.keptInMulligan?o.unref(Te)(t.keptInMulligan*100,2,3)+"%":"-"),1)):o.createCommentVNode("",!0),t.toggledStats.drawnWinrate?(o.openBlock(),o.createElementBlock("div",{key:6,class:"column-content",style:o.normalizeStyle({color:`var(${o.unref(Yn)(t.drawnWinrate,t.wins/t.matches)})`})},o.toDisplayString(t.drawnWinrate?o.unref(Te)(t.drawnWinrate*100,2,3)+"%":"-"),5)):o.createCommentVNode("",!0),t.toggledStats.turnPlayed?(o.openBlock(),o.createElementBlock("div",p7,o.toDisplayString(t.turnPlayed?o.unref(Te)(t.turnPlayed,2,3):"-"),1)):o.createCommentVNode("",!0),t.toggledStats.turnsHeld?(o.openBlock(),o.createElementBlock("div",h7,o.toDisplayString(t.turnsHeld?o.unref(Te)(t.turnsHeld,2,3):"-"),1)):o.createCommentVNode("",!0)])],4)]),_:1},8,["to"])}}});const Sg=Q(m7,[["__scopeId","data-v-e0c98d3c"]]),g7={cardRows:{type:Array,required:!0,default:[]},cardsRowToggle:{type:Object,requied:!0,default:{card:!0,matches:!0,winrate:!0,inclusion:!0,avgCopies:!0,mulliganWinrate:!0,keptInMulligan:!0,drawnWinrate:!0,turnsHeld:!0,turnPlayed:!0}},loading:{type:Boolean,required:!1,default:!1}};var we=(e=>(e.UP="sort-up",e.DOWN="sort-down",e.NEITHER="sort-neither",e.NOT_SORTABLE="not-sortable",e))(we||{});const v7={headingItems:{type:Array,required:!0,default:[]},loading:{type:Boolean,required:!1,default:!1}};const y7={},B7={class:"loader"};function w7(e,t){return o.openBlock(),o.createElementBlock("div",B7)}const xg=Q(y7,[["render",w7],["__scopeId","data-v-91218ab0"]]),b7={class:"table-wrapper"},_7={class:"table no-scrollbar"},C7={class:"heading wrapper"},k7=["onClick"],E7={class:"sort-icons"},S7={key:0,class:"no-content loading"},x7=o.defineComponent({__name:"LargeTable",props:v7,emits:["toggleSort"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s={"--background-image":`url(${_e().callbacks.cardImageCallback("01FR008",_t.Full)})`},i=o.computed(()=>r.headingItems.filter(A=>A.isShown));return(A,l)=>(o.openBlock(),o.createElementBlock("div",b7,[o.createElementVNode("div",_7,[l[0]||(l[0]=o.createElementVNode("div",{class:"heading-background-outer"},[o.createElementVNode("div",{class:"heading-background-absolute"}),o.createElementVNode("div",{class:"heading-background-inner"})],-1)),o.createElementVNode("div",C7,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,c=>(o.openBlock(),o.createElementBlock("div",{key:c.title,class:o.normalizeClass(["heading-cell column-content",c.sortDirection]),onClick:u=>a("toggleSort",c.id)},[o.createElementVNode("div",null,o.toDisplayString(c.title),1),o.createElementVNode("div",E7,[o.createVNode(o.unref(Se),{icon:"sort-up",class:"sort-icon"}),o.createVNode(o.unref(Se),{icon:"sort-down",class:"sort-icon"})])],10,k7))),128))]),o.renderSlot(A.$slots,"default",{},()=>[r.loading?(o.openBlock(),o.createElementBlock("div",S7,[o.createVNode(xg)])):(o.openBlock(),o.createElementBlock("div",{key:1,class:"no-content no-results",style:s},[o.createElementVNode("h2",null,o.toDisplayString(o.unref(n)("general.noResults")),1),o.createElementVNode("h4",null,o.toDisplayString(o.unref(n)("general.tryAgain")),1)]))],!0)])]))}});const Fa=Q(x7,[["__scopeId","data-v-8353300c"]]);function hi(e,t){const n=t.value.find(a=>a.id===e);if(!n||n.sortDirection===we.NOT_SORTABLE)return null;const r=n.sortDirection;return F7(t),r===we.NEITHER?n.sortDirection=we.DOWN:r===we.DOWN?n.sortDirection=we.UP:n.sortDirection=we.DOWN,n}function F7(e){e.value.forEach(t=>{t.sortDirection!==we.NOT_SORTABLE&&(t.sortDirection=we.NEITHER)})}const T7=o.defineComponent({__name:"CardsTable",props:g7,emits:["sort-updated"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=[{id:"card",isAlwaysShown:!0,isSortable:!1,title:n("general.card")},{id:"matches",isAlwaysShown:!1,isSortable:!0,title:n("general.matches")},{id:"winrate",isAlwaysShown:!1,isSortable:!0,title:n("general.winrate")},{id:"inclusion",isAlwaysShown:!1,isSortable:!0,title:n("general.inclusion")},{id:"avgCopies",isAlwaysShown:!1,isSortable:!0,title:n("general.avgCopies")},{id:"mulliganWinrate",isAlwaysShown:!1,isSortable:!0,title:n("general.mulliganWinrate")},{id:"keptInMulligan",isAlwaysShown:!1,isSortable:!0,title:n("general.keptInMulligan")},{id:"drawnWinrate",isAlwaysShown:!1,isSortable:!0,title:n("general.drawnWinrate")},{id:"turnsHeld",isAlwaysShown:!1,isSortable:!0,title:n("general.turnsHeld")},{id:"turnPlayed",isAlwaysShown:!1,isSortable:!0,title:n("general.turnPlayed")}];let i=!1;const A=o.ref(s.map(u=>{let d=we.NEITHER;return u.isSortable||(d=we.NOT_SORTABLE),!i&&u.isSortable&&(d=we.DOWN,i=!0),{id:u.id,isShown:r.cardsRowToggle[u.id],sortDirection:d,title:u.title}})),l=o.computed(()=>({"--table-grid-template-columns":`repeat(${Object.values(r.cardsRowToggle).reduce((d,f)=>f?d+1:d,0)}, 1fr)`}));function c(u){const d=hi(u,A);d&&a("sort-updated",d)}return(u,d)=>(o.openBlock(),o.createBlock(Fa,{class:"large-table",loading:r.loading,"heading-items":A.value,style:o.normalizeStyle(l.value),onToggleSort:c},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.cardRows,(f,p)=>(o.openBlock(),o.createBlock(Sg,{key:f.cardCode+f.region,"card-code":f.cardCode,matches:f.matches,wins:f.wins,index:p+2,"avg-copies":f.avgCopies,"drawn-winrate":f.drawnWinrate,"kept-in-mulligan":f.keptInMulligan,"mulligan-winrate":f.mulliganWinrate,inclusion:f.inclusion,"turns-held":f.turnsHeld,"turn-played":f.turnPlayed,"toggled-stats":r.cardsRowToggle,region:f.region,"router-link":o.unref(_e)().callbacks.cardCodeRouterLinkCallback(f.cardCode)},null,8,["card-code","matches","wins","index","avg-copies","drawn-winrate","kept-in-mulligan","mulligan-winrate","inclusion","turns-held","turn-played","toggled-stats","region","router-link"]))),128))]),_:1},8,["loading","heading-items","style"]))}});const hC=Q(T7,[["__scopeId","data-v-1894b267"]]),I7={regions:{type:Array,required:!0,default:[]}},D7={class:"deck-highlight-regions"},U7=o.defineComponent({__name:"DeckHighlightRegions",props:I7,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",D7,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.regions,a=>(o.openBlock(),o.createElementBlock("div",{key:a,class:"region-item-wrapper"},[o.createVNode(Fl,{class:"region-item","region-ref":a},null,8,["region-ref"])]))),128))]))}});const Tl=Q(U7,[["__scopeId","data-v-d28f95f4"]]),O7={},L7={xmlns:"http://www.w3.org/2000/svg",viewBox:"215.7 48.9 276.9 496"};function Q7(e,t){return o.openBlock(),o.createElementBlock("svg",L7,[...t[0]||(t[0]=[o.createStaticVNode('<path fill="#146743" d="m271 136-54 90 150 316 14-50 29-312-51-130-88 86Z"></path><path fill="#419a4a" d="m356 121-75 105 86 316 14-50 29-312-54-59Z"></path><path fill="#baffb6" d="M410 180 359 50l-3 71 54 59Z"></path><path fill="#437f41" d="m359 50-88 86 10 90 75-105 3-71ZM281 360l86 182-86-316v134Z"></path><path fill="#419a4a" d="m454 332 28 33-33 85-4-13-8-85 17-20Z"></path>',5)])])}const Fg=Q(O7,[["render",Q7]]),M7={deck:{type:Object,required:!0,default:{}}},N7={class:"gems-text"},P7={class:"gems-cost-title"},R7={class:"gems-cost-value"},H7={class:"gems-cost-title"},V7={class:"gems-cost-value"},$7=o.defineComponent({__name:"GemsCost",props:M7,setup(e){const{t}=Y(),n=e,r=o.ref(null),a=o.ref(null),s=o.computed(()=>_u(n.deck,!1)),i=o.computed(()=>_u(n.deck,!0));return o.onMounted(()=>{tt(r.value,{content:a.value,arrow:!0,duration:0})}),(A,l)=>{var c,u,d;return o.openBlock(),o.createElementBlock("div",{ref_key:"gemsCostDiv",ref:r,class:"gems-cost"},[o.createVNode(Fg,{class:"shards-icon"}),o.createElementVNode("div",N7,o.toDisplayString((c=i.value!==null?i.value:s.value)==null?void 0:c.toLocaleString()),1),o.createElementVNode("div",{ref_key:"gemsCostTippyDiv",ref:a,class:"gems-cost-tippy"},[i.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",P7,o.toDisplayString(o.unref(t)("deck.personalCost")),1),o.createElementVNode("div",R7,o.toDisplayString((u=i.value)==null?void 0:u.toLocaleString()),1),l[0]||(l[0]=o.createElementVNode("hr",{class:"divider"},null,-1))],64)):o.createCommentVNode("",!0),o.createElementVNode("div",H7,o.toDisplayString(o.unref(t)("deck.originalCost")),1),o.createElementVNode("div",V7,o.toDisplayString((d=s.value)==null?void 0:d.toLocaleString()),1)],512)],512)}}});const Tg=Q($7,[["__scopeId","data-v-25f680e9"]]),K7={class:"language-selection"},z7={class:"selection-panel"},W7=o.defineComponent({__name:"LanguageSelection",setup(e){const{locale:t,availableLocales:n}=Y(),r={en:"English",de:"Deutsch",es:"Español",fr:"Français",it:"Italiano",ja:"日本語",ko:"한국어",pl:"Polski",pt:"Português",th:"ไทย",tr:"Türkçe",ru:"Русский",zh:"中文"},a=pn.useRoute(),s=o.ref(!1),i=o.computed(()=>n.sort(l=>l===t.value?-1:1));function A(){s.value=!0}return(l,c)=>{const u=o.resolveComponent("RouterLink");return o.openBlock(),o.createElementBlock("div",K7,[o.createVNode(o.unref(Se),{ref:"languageIcon",icon:"language",class:"icon",onClick:A},null,512),o.createVNode(Lr,{"show-modal":s.value,"onUpdate:showModal":c[0]||(c[0]=d=>s.value=d)},{default:o.withCtx(()=>[o.createElementVNode("div",z7,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,d=>(o.openBlock(),o.createBlock(u,{class:o.normalizeClass(o.unref(t)===d?"selected":""),locale:d,key:d,to:{...o.unref(a),params:{...o.unref(a).params,lang:d}}},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(r[d]),1)]),_:2},1032,["class","locale","to"]))),128))])]),_:1},8,["show-modal"])])}}});const nl=Q(W7,[["__scopeId","data-v-8a6f5e0d"]]),G7={cardCodes:{type:Array,required:!0,default:[]},regions:{type:Array,required:!0,default:[]}},mC={routerLink:{type:Object,required:!0,default:{path:"/404"}},cardProp:{type:Object,required:!1,default:void 0},cardCodeProp:{type:String,required:!1,default:void 0},ignoreCardItem:{type:Boolean,required:!1},regions:{type:Array,required:!1,default:void 0},colorOverride:{type:String,required:!1,default:void 0}},j7={class:"circle-card-item"},Y7=["alt","src"],q7=o.defineComponent({__name:"CircleCardItem",props:mC,setup(e){const t=e,n=yl(t.cardProp,t.cardCodeProp,!0),r=o.ref(null),a=o.ref(null),s=o.ref(null),i=o.ref(null),A=o.computed(()=>{var c;return _e().callbacks.cardImageCallback(((c=n.value)==null?void 0:c.cardCode)??"",_t.Icon)}),l=o.computed(()=>n.value===void 0?"--color-primary-2":Ns(n.value,t.regions));return o.onMounted(()=>{t.ignoreCardItem||tt(r.value,{content:a.value,placement:"right",arrow:!0,touch:!1,duration:0,role:"card-image",onShown:c=>{const u=c.popper.innerHTML.includes("right")?"right-start":"left-start";i.value=u},onHidden:()=>{i.value=null}})}),(c,u)=>{const d=o.resolveComponent("RouterLink");return o.openBlock(),o.createElementBlock("div",j7,[o.createVNode(d,{to:t.routerLink,class:"circle-card-link",onClick:u[0]||(u[0]=o.withModifiers(()=>{},["stop","prevent"]))},{default:o.withCtx(()=>{var f;return[o.createElementVNode("img",{ref_key:"circleCardImg",ref:r,alt:(f=o.unref(n))==null?void 0:f.name,src:A.value,class:"circle-card-img",style:o.normalizeStyle({borderColor:t.colorOverride??l.value})},null,12,Y7)]}),_:1},8,["to"]),o.createElementVNode("div",{ref_key:"circleCardTippy",ref:a,class:"circle-card-tippy"},[!c.ignoreCardItem&&o.unref(n)?(o.openBlock(),o.createBlock(si,{key:0,ref_key:"cardItem",ref:s,"card-code-prop":o.unref(n).cardCode,"is-deck-builder":!1,"is-root":!0,"show-tippy-location":i.value},null,8,["card-code-prop","show-tippy-location"])):o.createCommentVNode("",!0)],512)])}}});const Ta=Q(q7,[["__scopeId","data-v-3ea9e838"]]),X7={cards:{type:Array,required:!1,default:void 0},cardCodes:{type:Array,required:!1,default:void 0},regions:{type:Array,required:!1,default:[]}},J7={class:"deck-highlight-cards"},Z7=o.defineComponent({__name:"DeckHighlightCards",props:X7,setup(e){const t=e,n=o.computed(()=>{if(t.cards)return t.cards;if(t.cardCodes)return t.cardCodes.map(r=>mn().cardJsonObject[r]).filter(r=>r!==void 0);throw new Error("Cards or CardCodes must be defined.")});return(r,a)=>(o.openBlock(),o.createElementBlock("div",J7,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,(s,i)=>(o.openBlock(),o.createElementBlock("div",{key:s.cardCode??i,class:"circle-card-item-wrapper"},[o.createVNode(Ta,{class:"circle-card-item","card-prop":s,regions:t.regions,"router-link":o.unref(_e)().callbacks.cardCodeRouterLinkCallback(s.cardCode)},null,8,["card-prop","regions","router-link"])]))),128))]))}});const Il=Q(Z7,[["__scopeId","data-v-021c3530"]]),eN=o.defineComponent({__name:"ArchetypeSidePanelHighlight",props:G7,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createBlock(ut,{class:"archetype-side-panel-highlight"},{default:o.withCtx(()=>[o.createVNode(Tl,{class:"deck-highlight-regions",regions:t.regions},null,8,["regions"]),o.createVNode(Il,{class:o.normalizeClass(["deck-highlight-cards",t.cardCodes.length===1?"single":""]),"card-codes":t.cardCodes},null,8,["class","card-codes"])]),_:1}))}});const Fd=Q(eN,[["__scopeId","data-v-ff538f6f"]]),tN={deckcode:{type:String,required:!0,default:""},filters:{type:Object,required:!0,default:{sampleSizeFilters:[],serverFilters:[],timeFilters:[],formatFilters:[],queueFilters:[]}},builtDeckProps:{type:Object,required:!1,default:void 0}},nN={deckCode:{type:String,required:!0,default:""},info:{type:String,required:!0,default:"typeRef"}};/*!
|
|
630
630
|
* @kurkle/color v0.3.4
|
|
631
631
|
* https://github.com/kurkle/color#readme
|
|
632
632
|
* (c) 2024 Jukka Kurkela
|
|
633
633
|
* Released under the MIT License
|
|
634
|
-
*/function Dl(e){return e+.5|0}const Ka=(e,t,n)=>Math.max(Math.min(e,n),t);function sA(e){return Ka(Dl(e*2.55),0,255)}function ts(e){return Ka(Dl(e*255),0,255)}function ia(e){return Ka(Dl(e/2.55)/100,0,1)}function By(e){return Ka(Dl(e*100),0,100)}const Hn={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},kh=[..."0123456789ABCDEF"],
|
|
634
|
+
*/function Dl(e){return e+.5|0}const Ka=(e,t,n)=>Math.max(Math.min(e,n),t);function sA(e){return Ka(Dl(e*2.55),0,255)}function ts(e){return Ka(Dl(e*255),0,255)}function ia(e){return Ka(Dl(e/2.55)/100,0,1)}function By(e){return Ka(Dl(e*100),0,100)}const Hn={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},kh=[..."0123456789ABCDEF"],rN=e=>kh[e&15],aN=e=>kh[(e&240)>>4]+kh[e&15],lc=e=>(e&240)>>4===(e&15),sN=e=>lc(e.r)&&lc(e.g)&&lc(e.b)&&lc(e.a);function iN(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Hn[e[1]]*17,g:255&Hn[e[2]]*17,b:255&Hn[e[3]]*17,a:t===5?Hn[e[4]]*17:255}:(t===7||t===9)&&(n={r:Hn[e[1]]<<4|Hn[e[2]],g:Hn[e[3]]<<4|Hn[e[4]],b:Hn[e[5]]<<4|Hn[e[6]],a:t===9?Hn[e[7]]<<4|Hn[e[8]]:255})),n}const oN=(e,t)=>e<255?t(e):"";function AN(e){var t=sN(e)?rN:aN;return e?"#"+t(e.r)+t(e.g)+t(e.b)+oN(e.a,t):void 0}const lN=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function gC(e,t,n){const r=t*Math.min(n,1-n),a=(s,i=(s+e/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1);return[a(0),a(8),a(4)]}function cN(e,t,n){const r=(a,s=(a+e/60)%6)=>n-n*t*Math.max(Math.min(s,4-s,1),0);return[r(5),r(3),r(1)]}function uN(e,t,n){const r=gC(e,1,.5);let a;for(t+n>1&&(a=1/(t+n),t*=a,n*=a),a=0;a<3;a++)r[a]*=1-t-n,r[a]+=t;return r}function dN(e,t,n,r,a){return e===a?(t-n)/r+(t<n?6:0):t===a?(n-e)/r+2:(e-t)/r+4}function Ig(e){const n=e.r/255,r=e.g/255,a=e.b/255,s=Math.max(n,r,a),i=Math.min(n,r,a),A=(s+i)/2;let l,c,u;return s!==i&&(u=s-i,c=A>.5?u/(2-s-i):u/(s+i),l=dN(n,r,a,u,s),l=l*60+.5),[l|0,c||0,A]}function Dg(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(ts)}function Ug(e,t,n){return Dg(gC,e,t,n)}function fN(e,t,n){return Dg(uN,e,t,n)}function pN(e,t,n){return Dg(cN,e,t,n)}function vC(e){return(e%360+360)%360}function hN(e){const t=lN.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?sA(+t[5]):ts(+t[5]));const a=vC(+t[2]),s=+t[3]/100,i=+t[4]/100;return t[1]==="hwb"?r=fN(a,s,i):t[1]==="hsv"?r=pN(a,s,i):r=Ug(a,s,i),{r:r[0],g:r[1],b:r[2],a:n}}function mN(e,t){var n=Ig(e);n[0]=vC(n[0]+t),n=Ug(n),e.r=n[0],e.g=n[1],e.b=n[2]}function gN(e){if(!e)return;const t=Ig(e),n=t[0],r=By(t[1]),a=By(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${a}%, ${ia(e.a)})`:`hsl(${n}, ${r}%, ${a}%)`}const wy={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"},by={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"};function vN(){const e={},t=Object.keys(by),n=Object.keys(wy);let r,a,s,i,A;for(r=0;r<t.length;r++){for(i=A=t[r],a=0;a<n.length;a++)s=n[a],A=A.replace(s,wy[s]);s=parseInt(by[i],16),e[A]=[s>>16&255,s>>8&255,s&255]}return e}let cc;function yN(e){cc||(cc=vN(),cc.transparent=[0,0,0,0]);const t=cc[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const BN=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function wN(e){const t=BN.exec(e);let n=255,r,a,s;if(t){if(t[7]!==r){const i=+t[7];n=t[8]?sA(i):Ka(i*255,0,255)}return r=+t[1],a=+t[3],s=+t[5],r=255&(t[2]?sA(r):Ka(r,0,255)),a=255&(t[4]?sA(a):Ka(a,0,255)),s=255&(t[6]?sA(s):Ka(s,0,255)),{r,g:a,b:s,a:n}}}function bN(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${ia(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const jf=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,xi=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function _N(e,t,n){const r=xi(ia(e.r)),a=xi(ia(e.g)),s=xi(ia(e.b));return{r:ts(jf(r+n*(xi(ia(t.r))-r))),g:ts(jf(a+n*(xi(ia(t.g))-a))),b:ts(jf(s+n*(xi(ia(t.b))-s))),a:e.a+n*(t.a-e.a)}}function uc(e,t,n){if(e){let r=Ig(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=Ug(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function yC(e,t){return e&&Object.assign(t||{},e)}function _y(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=ts(e[3]))):(t=yC(e,{r:0,g:0,b:0,a:1}),t.a=ts(t.a)),t}function CN(e){return e.charAt(0)==="r"?wN(e):hN(e)}class rl{constructor(t){if(t instanceof rl)return t;const n=typeof t;let r;n==="object"?r=_y(t):n==="string"&&(r=iN(t)||yN(t)||CN(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=yC(this._rgb);return t&&(t.a=ia(t.a)),t}set rgb(t){this._rgb=_y(t)}rgbString(){return this._valid?bN(this._rgb):void 0}hexString(){return this._valid?AN(this._rgb):void 0}hslString(){return this._valid?gN(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,a=t.rgb;let s;const i=n===s?.5:n,A=2*i-1,l=r.a-a.a,c=((A*l===-1?A:(A+l)/(1+A*l))+1)/2;s=1-c,r.r=255&c*r.r+s*a.r+.5,r.g=255&c*r.g+s*a.g+.5,r.b=255&c*r.b+s*a.b+.5,r.a=i*r.a+(1-i)*a.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=_N(this._rgb,t._rgb,n)),this}clone(){return new rl(this.rgb)}alpha(t){return this._rgb.a=ts(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=Dl(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.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 uc(this._rgb,2,t),this}darken(t){return uc(this._rgb,2,-t),this}saturate(t){return uc(this._rgb,1,t),this}desaturate(t){return uc(this._rgb,1,-t),this}rotate(t){return mN(this._rgb,t),this}}/*!
|
|
635
635
|
* Chart.js v4.5.1
|
|
636
636
|
* https://www.chartjs.org
|
|
637
637
|
* (c) 2025 Chart.js Contributors
|
|
638
638
|
* Released under the MIT License
|
|
639
|
-
*/function Xr(){}const kP=(()=>{let e=0;return()=>e++})();function Ce(e){return e==null}function Ve(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function ke(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function vt(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Dn(e,t){return vt(e)?e:t}function pe(e,t){return typeof e>"u"?t:e}const EP=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,BC=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function We(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function je(e,t,n,r){let a,s,i;if(Ve(e))if(s=e.length,r)for(a=s-1;a>=0;a--)t.call(n,e[a],a);else for(a=0;a<s;a++)t.call(n,e[a],a);else if(ke(e))for(i=Object.keys(e),s=i.length,a=0;a<s;a++)t.call(n,e[i[a]],i[a])}function Lu(e,t){let n,r,a,s;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(a=e[n],s=t[n],a.datasetIndex!==s.datasetIndex||a.index!==s.index)return!1;return!0}function Qu(e){if(Ve(e))return e.map(Qu);if(ke(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let a=0;for(;a<r;++a)t[n[a]]=Qu(e[n[a]]);return t}return e}function wC(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function SP(e,t,n,r){if(!wC(e))return;const a=t[e],s=n[e];ke(a)&&ke(s)?Qr(a,s,r):t[e]=Qu(s)}function Qr(e,t,n){const r=Ve(t)?t:[t],a=r.length;if(!ke(e))return e;n=n||{};const s=n.merger||SP;let i;for(let A=0;A<a;++A){if(i=r[A],!ke(i))continue;const l=Object.keys(i);for(let c=0,u=l.length;c<u;++c)s(l[c],e,i,n)}return e}function CA(e,t){return Qr(e,t,{merger:xP})}function xP(e,t,n){if(!wC(e))return;const r=t[e],a=n[e];ke(r)&&ke(a)?CA(r,a):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=Qu(a))}const Cy={"":e=>e,x:e=>e.x,y:e=>e.y};function FP(e){const t=e.split("."),n=[];let r="";for(const a of t)r+=a,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function TP(e){const t=FP(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function fs(e,t){return(Cy[t]||(Cy[t]=TP(t)))(e)}function Og(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Tn=e=>typeof e<"u",Fn=e=>typeof e=="function",ky=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function IP(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const be=Math.PI,it=2*be,DP=it+be,Mu=Number.POSITIVE_INFINITY,Lg=be/180,dt=be/2,$n=be/4,Nu=be*2/3,za=Math.log10,Ir=Math.sign;function kA(e,t,n){return Math.abs(e-t)<n}function Ey(e){const t=Math.round(e);e=kA(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(za(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function UP(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(n|0)&&t.push(n),t.sort((a,s)=>a-s).pop(),t}function OP(e){return typeof e=="symbol"||typeof e=="object"&&e!==null&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}function ps(e){return!OP(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function LP(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function bC(e,t,n){let r,a,s;for(r=0,a=e.length;r<a;r++)s=e[r][n],isNaN(s)||(t.min=Math.min(t.min,s),t.max=Math.max(t.max,s))}function Mt(e){return e*(be/180)}function Td(e){return e*(180/be)}function Sy(e){if(!vt(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function _C(e,t){const n=t.x-e.x,r=t.y-e.y,a=Math.sqrt(n*n+r*r);let s=Math.atan2(r,n);return s<-.5*be&&(s+=it),{angle:s,distance:a}}function mo(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function QP(e,t){return(e-t+DP)%it-be}function rn(e){return(e%it+it)%it}function al(e,t,n,r){const a=rn(e),s=rn(t),i=rn(n),A=rn(s-a),l=rn(i-a),c=rn(a-s),u=rn(a-i);return a===s||a===i||r&&s===i||A>l&&c<u}function Wt(e,t,n){return Math.max(t,Math.min(n,e))}function MP(e){return Wt(e,-32768,32767)}function Aa(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function Qg(e,t,n){n=n||(i=>e[i]<t);let r=e.length-1,a=0,s;for(;r-a>1;)s=a+r>>1,n(s)?a=s:r=s;return{lo:a,hi:r}}const la=(e,t,n,r)=>Qg(e,n,r?a=>{const s=e[a][t];return s<n||s===n&&e[a+1][t]===n}:a=>e[a][t]<n),NP=(e,t,n)=>Qg(e,n,r=>e[r][t]>=n);function PP(e,t,n){let r=0,a=e.length;for(;r<a&&e[r]<t;)r++;for(;a>r&&e[a-1]>n;)a--;return r>0||a<e.length?e.slice(r,a):e}const CC=["push","pop","shift","splice","unshift"];function RP(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),CC.forEach(n=>{const r="_onData"+Og(n),a=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...s){const i=a.apply(this,s);return e._chartjs.listeners.forEach(A=>{typeof A[r]=="function"&&A[r](...s)}),i}})})}function xy(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,a=r.indexOf(t);a!==-1&&r.splice(a,1),!(r.length>0)&&(CC.forEach(s=>{delete e[s]}),delete e._chartjs)}function kC(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const EC=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function SC(e,t){let n=[],r=!1;return function(...a){n=a,r||(r=!0,EC.call(window,()=>{r=!1,e.apply(t,n)}))}}function HP(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const Mg=e=>e==="start"?"left":e==="end"?"right":"center",tn=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,VP=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function xC(e,t,n){const r=t.length;let a=0,s=r;if(e._sorted){const{iScale:i,vScale:A,_parsed:l}=e,c=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,u=i.axis,{min:d,max:f,minDefined:p,maxDefined:h}=i.getUserBounds();if(p){if(a=Math.min(la(l,u,d).lo,n?r:la(t,u,i.getPixelForValue(d)).lo),c){const m=l.slice(0,a+1).reverse().findIndex(y=>!Ce(y[A.axis]));a-=Math.max(0,m)}a=Wt(a,0,r-1)}if(h){let m=Math.max(la(l,i.axis,f,!0).hi+1,n?0:la(t,u,i.getPixelForValue(f),!0).hi+1);if(c){const y=l.slice(m-1).findIndex(g=>!Ce(g[A.axis]));m+=Math.max(0,y)}s=Wt(m,a,r)-a}else s=r-a}return{start:a,count:s}}function FC(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,a={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=a,!0;const s=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,a),s}const dc=e=>e===0||e===1,Fy=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*it/n)),Ty=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*it/n)+1,EA={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*dt)+1,easeOutSine:e=>Math.sin(e*dt),easeInOutSine:e=>-.5*(Math.cos(be*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>dc(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>dc(e)?e:Fy(e,.075,.3),easeOutElastic:e=>dc(e)?e:Ty(e,.075,.3),easeInOutElastic(e){return dc(e)?e:e<.5?.5*Fy(e*2,.1125,.45):.5+.5*Ty(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-EA.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?EA.easeInBounce(e*2)*.5:EA.easeOutBounce(e*2-1)*.5+.5};function Ng(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Iy(e){return Ng(e)?e:new rl(e)}function Yf(e){return Ng(e)?e:new rl(e).saturate(.5).darken(.1).hexString()}const $P=["x","y","borderWidth","radius","tension"],KP=["color","borderColor","backgroundColor"];function zP(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:KP},numbers:{type:"number",properties:$P}}),e.describe("animations",{_fallback:"animation"}),e.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=>t|0}}}})}function WP(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Dy=new Map;function GP(e,t){t=t||{};const n=e+JSON.stringify(t);let r=Dy.get(n);return r||(r=new Intl.NumberFormat(e,t),Dy.set(n,r)),r}function Ul(e,t,n){return GP(t,n).format(e)}const TC={values(e){return Ve(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let a,s=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(a="scientific"),s=jP(e,n)}const i=za(Math.abs(s)),A=isNaN(i)?1:Math.max(Math.min(-1*Math.floor(i),20),0),l={notation:a,minimumFractionDigits:A,maximumFractionDigits:A};return Object.assign(l,this.options.ticks.format),Ul(e,r,l)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(za(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?TC.numeric.call(this,e,t,n):""}};function jP(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var Id={formatters:TC};function YP(e){e.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,n)=>n.lineWidth,tickColor:(t,n)=>n.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:Id.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const oi=Object.create(null),Eh=Object.create(null);function SA(e,t){if(!t)return e;const n=t.split(".");for(let r=0,a=n.length;r<a;++r){const s=n[r];e=e[s]||(e[s]=Object.create(null))}return e}function qf(e,t,n){return typeof t=="string"?Qr(SA(e,t),n):Qr(SA(e,""),t)}class qP{constructor(t,n){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=r=>r.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=(r,a)=>Yf(a.backgroundColor),this.hoverBorderColor=(r,a)=>Yf(a.borderColor),this.hoverColor=(r,a)=>Yf(a.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(n)}set(t,n){return qf(this,t,n)}get(t){return SA(this,t)}describe(t,n){return qf(Eh,t,n)}override(t,n){return qf(oi,t,n)}route(t,n,r,a){const s=SA(this,t),i=SA(this,r),A="_"+n;Object.defineProperties(s,{[A]:{value:s[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[A],c=i[a];return ke(l)?Object.assign({},c,l):pe(l,c)},set(l){this[A]=l}}})}apply(t){t.forEach(n=>n(this))}}var ot=new qP({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[zP,WP,YP]);function XP(e){return!e||Ce(e.size)||Ce(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Pu(e,t,n,r,a){let s=t[a];return s||(s=t[a]=e.measureText(a).width,n.push(a)),s>r&&(r=s),r}function JP(e,t,n,r){r=r||{};let a=r.data=r.data||{},s=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(a=r.data={},s=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let i=0;const A=n.length;let l,c,u,d,f;for(l=0;l<A;l++)if(d=n[l],d!=null&&!Ve(d))i=Pu(e,a,s,i,d);else if(Ve(d))for(c=0,u=d.length;c<u;c++)f=d[c],f!=null&&!Ve(f)&&(i=Pu(e,a,s,i,f));e.restore();const p=s.length/2;if(p>n.length){for(l=0;l<p;l++)delete a[s[l]];s.splice(0,p)}return i}function Fs(e,t,n){const r=e.currentDevicePixelRatio,a=n!==0?Math.max(n/2,.5):0;return Math.round((t-a)*r)/r+a}function Uy(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function Sh(e,t,n,r){IC(e,t,n,r,null)}function IC(e,t,n,r,a){let s,i,A,l,c,u,d,f;const p=t.pointStyle,h=t.rotation,m=t.radius;let y=(h||0)*Lg;if(p&&typeof p=="object"&&(s=p.toString(),s==="[object HTMLImageElement]"||s==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(y),e.drawImage(p,-p.width/2,-p.height/2,p.width,p.height),e.restore();return}if(!(isNaN(m)||m<=0)){switch(e.beginPath(),p){default:a?e.ellipse(n,r,a/2,m,0,0,it):e.arc(n,r,m,0,it),e.closePath();break;case"triangle":u=a?a/2:m,e.moveTo(n+Math.sin(y)*u,r-Math.cos(y)*m),y+=Nu,e.lineTo(n+Math.sin(y)*u,r-Math.cos(y)*m),y+=Nu,e.lineTo(n+Math.sin(y)*u,r-Math.cos(y)*m),e.closePath();break;case"rectRounded":c=m*.516,l=m-c,i=Math.cos(y+$n)*l,d=Math.cos(y+$n)*(a?a/2-c:l),A=Math.sin(y+$n)*l,f=Math.sin(y+$n)*(a?a/2-c:l),e.arc(n-d,r-A,c,y-be,y-dt),e.arc(n+f,r-i,c,y-dt,y),e.arc(n+d,r+A,c,y,y+dt),e.arc(n-f,r+i,c,y+dt,y+be),e.closePath();break;case"rect":if(!h){l=Math.SQRT1_2*m,u=a?a/2:l,e.rect(n-u,r-l,2*u,2*l);break}y+=$n;case"rectRot":d=Math.cos(y)*(a?a/2:m),i=Math.cos(y)*m,A=Math.sin(y)*m,f=Math.sin(y)*(a?a/2:m),e.moveTo(n-d,r-A),e.lineTo(n+f,r-i),e.lineTo(n+d,r+A),e.lineTo(n-f,r+i),e.closePath();break;case"crossRot":y+=$n;case"cross":d=Math.cos(y)*(a?a/2:m),i=Math.cos(y)*m,A=Math.sin(y)*m,f=Math.sin(y)*(a?a/2:m),e.moveTo(n-d,r-A),e.lineTo(n+d,r+A),e.moveTo(n+f,r-i),e.lineTo(n-f,r+i);break;case"star":d=Math.cos(y)*(a?a/2:m),i=Math.cos(y)*m,A=Math.sin(y)*m,f=Math.sin(y)*(a?a/2:m),e.moveTo(n-d,r-A),e.lineTo(n+d,r+A),e.moveTo(n+f,r-i),e.lineTo(n-f,r+i),y+=$n,d=Math.cos(y)*(a?a/2:m),i=Math.cos(y)*m,A=Math.sin(y)*m,f=Math.sin(y)*(a?a/2:m),e.moveTo(n-d,r-A),e.lineTo(n+d,r+A),e.moveTo(n+f,r-i),e.lineTo(n-f,r+i);break;case"line":i=a?a/2:Math.cos(y)*m,A=Math.sin(y)*m,e.moveTo(n-i,r-A),e.lineTo(n+i,r+A);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(y)*(a?a/2:m),r+Math.sin(y)*m);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function ca(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function Ol(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Ll(e){e.restore()}function ZP(e,t,n,r,a){if(!t)return e.lineTo(n.x,n.y);if(a==="middle"){const s=(t.x+n.x)/2;e.lineTo(s,t.y),e.lineTo(s,n.y)}else a==="after"!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function e7(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function t7(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),Ce(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function n7(e,t,n,r,a){if(a.strikethrough||a.underline){const s=e.measureText(r),i=t-s.actualBoundingBoxLeft,A=t+s.actualBoundingBoxRight,l=n-s.actualBoundingBoxAscent,c=n+s.actualBoundingBoxDescent,u=a.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=a.decorationWidth||2,e.moveTo(i,u),e.lineTo(A,u),e.stroke()}}function r7(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function Ai(e,t,n,r,a,s={}){const i=Ve(t)?t:[t],A=s.strokeWidth>0&&s.strokeColor!=="";let l,c;for(e.save(),e.font=a.string,t7(e,s),l=0;l<i.length;++l)c=i[l],s.backdrop&&r7(e,s.backdrop),A&&(s.strokeColor&&(e.strokeStyle=s.strokeColor),Ce(s.strokeWidth)||(e.lineWidth=s.strokeWidth),e.strokeText(c,n,r,s.maxWidth)),e.fillText(c,n,r,s.maxWidth),n7(e,n,r,c,s),r+=Number(a.lineHeight);e.restore()}function go(e,t){const{x:n,y:r,w:a,h:s,radius:i}=t;e.arc(n+i.topLeft,r+i.topLeft,i.topLeft,1.5*be,be,!0),e.lineTo(n,r+s-i.bottomLeft),e.arc(n+i.bottomLeft,r+s-i.bottomLeft,i.bottomLeft,be,dt,!0),e.lineTo(n+a-i.bottomRight,r+s),e.arc(n+a-i.bottomRight,r+s-i.bottomRight,i.bottomRight,dt,0,!0),e.lineTo(n+a,r+i.topRight),e.arc(n+a-i.topRight,r+i.topRight,i.topRight,0,-dt,!0),e.lineTo(n+i.topLeft,r)}const a7=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,s7=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function i7(e,t){const n=(""+e).match(a7);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const o7=e=>+e||0;function Pg(e,t){const n={},r=ke(t),a=r?Object.keys(t):t,s=ke(e)?r?i=>pe(e[i],e[t[i]]):i=>e[i]:()=>e;for(const i of a)n[i]=o7(s(i));return n}function DC(e){return Pg(e,{top:"y",right:"x",bottom:"y",left:"x"})}function ns(e){return Pg(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Ot(e){const t=DC(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function yt(e,t){e=e||{},t=t||ot.font;let n=pe(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=pe(e.style,t.style);r&&!(""+r).match(s7)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const a={family:pe(e.family,t.family),lineHeight:i7(pe(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:pe(e.weight,t.weight),string:""};return a.string=XP(a),a}function At(e,t,n,r){let a=!0,s,i,A;for(s=0,i=e.length;s<i;++s)if(A=e[s],A!==void 0&&(t!==void 0&&typeof A=="function"&&(A=A(t),a=!1),n!==void 0&&Ve(A)&&(A=A[n%A.length],a=!1),A!==void 0))return r&&!a&&(r.cacheable=!1),A}function A7(e,t,n){const{min:r,max:a}=e,s=BC(t,(a-r)/2),i=(A,l)=>n&&A===0?0:A+l;return{min:i(r,-Math.abs(s)),max:i(a,s)}}function _s(e,t){return Object.assign(Object.create(e),t)}function Rg(e,t=[""],n,r,a=()=>e[0]){const s=n||e;typeof r>"u"&&(r=QC("_fallback",e));const i={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:s,_fallback:r,_getTarget:a,override:A=>Rg([A,...e],t,s,r)};return new Proxy(i,{deleteProperty(A,l){return delete A[l],delete A._keys,delete e[0][l],!0},get(A,l){return OC(A,l,()=>m7(l,t,e,A))},getOwnPropertyDescriptor(A,l){return Reflect.getOwnPropertyDescriptor(A._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(A,l){return Ly(A).includes(l)},ownKeys(A){return Ly(A)},set(A,l,c){const u=A._storage||(A._storage=a());return A[l]=u[l]=c,delete A._keys,!0}})}function vo(e,t,n,r){const a={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:UC(e,r),setContext:s=>vo(e,s,n,r),override:s=>vo(e.override(s),t,n,r)};return new Proxy(a,{deleteProperty(s,i){return delete s[i],delete e[i],!0},get(s,i,A){return OC(s,i,()=>c7(s,i,A))},getOwnPropertyDescriptor(s,i){return s._descriptors.allKeys?Reflect.has(e,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,i)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(s,i){return Reflect.has(e,i)},ownKeys(){return Reflect.ownKeys(e)},set(s,i,A){return e[i]=A,delete s[i],!0}})}function UC(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:a=t.allKeys}=e;return{allKeys:a,scriptable:n,indexable:r,isScriptable:Fn(n)?n:()=>n,isIndexable:Fn(r)?r:()=>r}}const l7=(e,t)=>e?e+Og(t):t,Hg=(e,t)=>ke(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function OC(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const r=n();return e[t]=r,r}function c7(e,t,n){const{_proxy:r,_context:a,_subProxy:s,_descriptors:i}=e;let A=r[t];return Fn(A)&&i.isScriptable(t)&&(A=u7(t,A,e,n)),Ve(A)&&A.length&&(A=d7(t,A,e,i.isIndexable)),Hg(t,A)&&(A=vo(A,a,s&&s[t],i)),A}function u7(e,t,n,r){const{_proxy:a,_context:s,_subProxy:i,_stack:A}=n;if(A.has(e))throw new Error("Recursion detected: "+Array.from(A).join("->")+"->"+e);A.add(e);let l=t(s,i||r);return A.delete(e),Hg(e,l)&&(l=Vg(a._scopes,a,e,l)),l}function d7(e,t,n,r){const{_proxy:a,_context:s,_subProxy:i,_descriptors:A}=n;if(typeof s.index<"u"&&r(e))return t[s.index%t.length];if(ke(t[0])){const l=t,c=a._scopes.filter(u=>u!==l);t=[];for(const u of l){const d=Vg(c,a,e,u);t.push(vo(d,s,i&&i[e],A))}}return t}function LC(e,t,n){return Fn(e)?e(t,n):e}const f7=(e,t)=>e===!0?t:typeof e=="string"?fs(t,e):void 0;function p7(e,t,n,r,a){for(const s of t){const i=f7(n,s);if(i){e.add(i);const A=LC(i._fallback,n,a);if(typeof A<"u"&&A!==n&&A!==r)return A}else if(i===!1&&typeof r<"u"&&n!==r)return null}return!1}function Vg(e,t,n,r){const a=t._rootScopes,s=LC(t._fallback,n,r),i=[...e,...a],A=new Set;A.add(r);let l=Oy(A,i,n,s||n,r);return l===null||typeof s<"u"&&s!==n&&(l=Oy(A,i,s,l,r),l===null)?!1:Rg(Array.from(A),[""],a,s,()=>h7(t,n,r))}function Oy(e,t,n,r,a){for(;n;)n=p7(e,t,n,r,a);return n}function h7(e,t,n){const r=e._getTarget();t in r||(r[t]={});const a=r[t];return Ve(a)&&ke(n)?n:a||{}}function m7(e,t,n,r){let a;for(const s of t)if(a=QC(l7(s,e),n),typeof a<"u")return Hg(e,a)?Vg(n,r,e,a):a}function QC(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function Ly(e){let t=e._keys;return t||(t=e._keys=g7(e._scopes)),t}function g7(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(a=>!a.startsWith("_")))t.add(r);return Array.from(t)}function MC(e,t,n,r){const{iScale:a}=e,{key:s="r"}=this._parsing,i=new Array(r);let A,l,c,u;for(A=0,l=r;A<l;++A)c=A+n,u=t[c],i[A]={r:a.parse(fs(u,s),c)};return i}const v7=Number.EPSILON||1e-14,yo=(e,t)=>t<e.length&&!e[t].skip&&e[t],NC=e=>e==="x"?"y":"x";function y7(e,t,n,r){const a=e.skip?t:e,s=t,i=n.skip?t:n,A=mo(s,a),l=mo(i,s);let c=A/(A+l),u=l/(A+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=r*c,f=r*u;return{previous:{x:s.x-d*(i.x-a.x),y:s.y-d*(i.y-a.y)},next:{x:s.x+f*(i.x-a.x),y:s.y+f*(i.y-a.y)}}}function B7(e,t,n){const r=e.length;let a,s,i,A,l,c=yo(e,0);for(let u=0;u<r-1;++u)if(l=c,c=yo(e,u+1),!(!l||!c)){if(kA(t[u],0,v7)){n[u]=n[u+1]=0;continue}a=n[u]/t[u],s=n[u+1]/t[u],A=Math.pow(a,2)+Math.pow(s,2),!(A<=9)&&(i=3/Math.sqrt(A),n[u]=a*i*t[u],n[u+1]=s*i*t[u])}}function w7(e,t,n="x"){const r=NC(n),a=e.length;let s,i,A,l=yo(e,0);for(let c=0;c<a;++c){if(i=A,A=l,l=yo(e,c+1),!A)continue;const u=A[n],d=A[r];i&&(s=(u-i[n])/3,A[`cp1${n}`]=u-s,A[`cp1${r}`]=d-s*t[c]),l&&(s=(l[n]-u)/3,A[`cp2${n}`]=u+s,A[`cp2${r}`]=d+s*t[c])}}function b7(e,t="x"){const n=NC(t),r=e.length,a=Array(r).fill(0),s=Array(r);let i,A,l,c=yo(e,0);for(i=0;i<r;++i)if(A=l,l=c,c=yo(e,i+1),!!l){if(c){const u=c[t]-l[t];a[i]=u!==0?(c[n]-l[n])/u:0}s[i]=A?c?Ir(a[i-1])!==Ir(a[i])?0:(a[i-1]+a[i])/2:a[i-1]:a[i]}B7(e,a,s),w7(e,s,t)}function fc(e,t,n){return Math.max(Math.min(e,n),t)}function _7(e,t){let n,r,a,s,i,A=ca(e[0],t);for(n=0,r=e.length;n<r;++n)i=s,s=A,A=n<r-1&&ca(e[n+1],t),s&&(a=e[n],i&&(a.cp1x=fc(a.cp1x,t.left,t.right),a.cp1y=fc(a.cp1y,t.top,t.bottom)),A&&(a.cp2x=fc(a.cp2x,t.left,t.right),a.cp2y=fc(a.cp2y,t.top,t.bottom)))}function C7(e,t,n,r,a){let s,i,A,l;if(t.spanGaps&&(e=e.filter(c=>!c.skip)),t.cubicInterpolationMode==="monotone")b7(e,a);else{let c=r?e[e.length-1]:e[0];for(s=0,i=e.length;s<i;++s)A=e[s],l=y7(c,A,e[Math.min(s+1,i-(r?0:1))%i],t.tension),A.cp1x=l.previous.x,A.cp1y=l.previous.y,A.cp2x=l.next.x,A.cp2y=l.next.y,c=A}t.capBezierPoints&&_7(e,n)}function $g(){return typeof window<"u"&&typeof document<"u"}function Kg(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Ru(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const Dd=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function k7(e,t){return Dd(e).getPropertyValue(t)}const E7=["top","right","bottom","left"];function js(e,t,n){const r={};n=n?"-"+n:"";for(let a=0;a<4;a++){const s=E7[a];r[s]=parseFloat(e[t+"-"+s+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const S7=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function x7(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:a,offsetY:s}=r;let i=!1,A,l;if(S7(a,s,e.target))A=a,l=s;else{const c=t.getBoundingClientRect();A=r.clientX-c.left,l=r.clientY-c.top,i=!0}return{x:A,y:l,box:i}}function Ls(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,a=Dd(n),s=a.boxSizing==="border-box",i=js(a,"padding"),A=js(a,"border","width"),{x:l,y:c,box:u}=x7(e,n),d=i.left+(u&&A.left),f=i.top+(u&&A.top);let{width:p,height:h}=t;return s&&(p-=i.width+A.width,h-=i.height+A.height),{x:Math.round((l-d)/p*n.width/r),y:Math.round((c-f)/h*n.height/r)}}function F7(e,t,n){let r,a;if(t===void 0||n===void 0){const s=e&&Kg(e);if(!s)t=e.clientWidth,n=e.clientHeight;else{const i=s.getBoundingClientRect(),A=Dd(s),l=js(A,"border","width"),c=js(A,"padding");t=i.width-c.width-l.width,n=i.height-c.height-l.height,r=Ru(A.maxWidth,s,"clientWidth"),a=Ru(A.maxHeight,s,"clientHeight")}}return{width:t,height:n,maxWidth:r||Mu,maxHeight:a||Mu}}const Wa=e=>Math.round(e*10)/10;function T7(e,t,n,r){const a=Dd(e),s=js(a,"margin"),i=Ru(a.maxWidth,e,"clientWidth")||Mu,A=Ru(a.maxHeight,e,"clientHeight")||Mu,l=F7(e,t,n);let{width:c,height:u}=l;if(a.boxSizing==="content-box"){const f=js(a,"border","width"),p=js(a,"padding");c-=p.width+f.width,u-=p.height+f.height}return c=Math.max(0,c-s.width),u=Math.max(0,r?c/r:u-s.height),c=Wa(Math.min(c,i,l.maxWidth)),u=Wa(Math.min(u,A,l.maxHeight)),c&&!u&&(u=Wa(c/2)),(t!==void 0||n!==void 0)&&r&&l.height&&u>l.height&&(u=l.height,c=Wa(Math.floor(u*r))),{width:c,height:u}}function Qy(e,t,n){const r=t||1,a=Wa(e.height*r),s=Wa(e.width*r);e.height=Wa(e.height),e.width=Wa(e.width);const i=e.canvas;return i.style&&(n||!i.style.height&&!i.style.width)&&(i.style.height=`${e.height}px`,i.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||i.height!==a||i.width!==s?(e.currentDevicePixelRatio=r,i.height=a,i.width=s,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const I7=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};$g()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function My(e,t){const n=k7(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Qs(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function D7(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function U7(e,t,n,r){const a={x:e.cp2x,y:e.cp2y},s={x:t.cp1x,y:t.cp1y},i=Qs(e,a,n),A=Qs(a,s,n),l=Qs(s,t,n),c=Qs(i,A,n),u=Qs(A,l,n);return Qs(c,u,n)}const O7=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},L7=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function Yi(e,t,n){return e?O7(t,n):L7()}function PC(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function RC(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function HC(e){return e==="angle"?{between:al,compare:QP,normalize:rn}:{between:Aa,compare:(t,n)=>t-n,normalize:t=>t}}function Ny({start:e,end:t,count:n,loop:r,style:a}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:a}}function Q7(e,t,n){const{property:r,start:a,end:s}=n,{between:i,normalize:A}=HC(r),l=t.length;let{start:c,end:u,loop:d}=e,f,p;if(d){for(c+=l,u+=l,f=0,p=l;f<p&&i(A(t[c%l][r]),a,s);++f)c--,u--;c%=l,u%=l}return u<c&&(u+=l),{start:c,end:u,loop:d,style:e.style}}function VC(e,t,n){if(!n)return[e];const{property:r,start:a,end:s}=n,i=t.length,{compare:A,between:l,normalize:c}=HC(r),{start:u,end:d,loop:f,style:p}=Q7(e,t,n),h=[];let m=!1,y=null,g,w,B;const v=()=>l(a,B,g)&&A(a,B)!==0,_=()=>A(s,g)===0||l(s,B,g),b=()=>m||v(),k=()=>!m||_();for(let C=u,E=u;C<=d;++C)w=t[C%i],!w.skip&&(g=c(w[r]),g!==B&&(m=l(g,a,s),y===null&&b()&&(y=A(g,a)===0?C:E),y!==null&&k()&&(h.push(Ny({start:y,end:C,loop:f,count:i,style:p})),y=null),E=C,B=g));return y!==null&&h.push(Ny({start:y,end:d,loop:f,count:i,style:p})),h}function $C(e,t){const n=[],r=e.segments;for(let a=0;a<r.length;a++){const s=VC(r[a],e.points,t);s.length&&n.push(...s)}return n}function M7(e,t,n,r){let a=0,s=t-1;if(n&&!r)for(;a<t&&!e[a].skip;)a++;for(;a<t&&e[a].skip;)a++;for(a%=t,n&&(s+=a);s>a&&e[s%t].skip;)s--;return s%=t,{start:a,end:s}}function N7(e,t,n,r){const a=e.length,s=[];let i=t,A=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%a];c.skip||c.stop?A.skip||(r=!1,s.push({start:t%a,end:(l-1)%a,loop:r}),t=i=c.stop?l:null):(i=l,A.skip&&(t=l)),A=c}return i!==null&&s.push({start:t%a,end:i%a,loop:r}),s}function P7(e,t){const n=e.points,r=e.options.spanGaps,a=n.length;if(!a)return[];const s=!!e._loop,{start:i,end:A}=M7(n,a,s,r);if(r===!0)return Py(e,[{start:i,end:A,loop:s}],n,t);const l=A<i?A+a:A,c=!!e._fullLoop&&i===0&&A===a-1;return Py(e,N7(n,i,l,c),n,t)}function Py(e,t,n,r){return!r||!r.setContext||!n?t:R7(e,t,n,r)}function R7(e,t,n,r){const a=e._chart.getContext(),s=Ry(e.options),{_datasetIndex:i,options:{spanGaps:A}}=e,l=n.length,c=[];let u=s,d=t[0].start,f=d;function p(h,m,y,g){const w=A?-1:1;if(h!==m){for(h+=l;n[h%l].skip;)h-=w;for(;n[m%l].skip;)m+=w;h%l!==m%l&&(c.push({start:h%l,end:m%l,loop:y,style:g}),u=g,d=m%l)}}for(const h of t){d=A?d:h.start;let m=n[d%l],y;for(f=d+1;f<=h.end;f++){const g=n[f%l];y=Ry(r.setContext(_s(a,{type:"segment",p0:m,p1:g,p0DataIndex:(f-1)%l,p1DataIndex:f%l,datasetIndex:i}))),H7(y,u)&&p(d,f-1,h.loop,u),m=g,u=y}d<f-1&&p(d,f-1,h.loop,u)}return c}function Ry(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function H7(e,t){if(!t)return!1;const n=[],r=function(a,s){return Ng(s)?(n.includes(s)||n.push(s),n.indexOf(s)):s};return JSON.stringify(e,r)!==JSON.stringify(t,r)}function pc(e,t,n){return e.options.clip?e[n]:t[n]}function V7(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:pc(n,t,"left"),right:pc(n,t,"right"),top:pc(r,t,"top"),bottom:pc(r,t,"bottom")}:t}function KC(e,t){const n=t._clip;if(n.disabled)return!1;const r=V7(t,e.chartArea);return{left:n.left===!1?0:r.left-(n.left===!0?0:n.left),right:n.right===!1?e.width:r.right+(n.right===!0?0:n.right),top:n.top===!1?0:r.top-(n.top===!0?0:n.top),bottom:n.bottom===!1?e.height:r.bottom+(n.bottom===!0?0:n.bottom)}}/*!
|
|
639
|
+
*/function Xr(){}const kN=(()=>{let e=0;return()=>e++})();function Ce(e){return e==null}function Ve(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function ke(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function vt(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Dn(e,t){return vt(e)?e:t}function pe(e,t){return typeof e>"u"?t:e}const EN=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,BC=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function We(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function je(e,t,n,r){let a,s,i;if(Ve(e))if(s=e.length,r)for(a=s-1;a>=0;a--)t.call(n,e[a],a);else for(a=0;a<s;a++)t.call(n,e[a],a);else if(ke(e))for(i=Object.keys(e),s=i.length,a=0;a<s;a++)t.call(n,e[i[a]],i[a])}function Lu(e,t){let n,r,a,s;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(a=e[n],s=t[n],a.datasetIndex!==s.datasetIndex||a.index!==s.index)return!1;return!0}function Qu(e){if(Ve(e))return e.map(Qu);if(ke(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let a=0;for(;a<r;++a)t[n[a]]=Qu(e[n[a]]);return t}return e}function wC(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function SN(e,t,n,r){if(!wC(e))return;const a=t[e],s=n[e];ke(a)&&ke(s)?Qr(a,s,r):t[e]=Qu(s)}function Qr(e,t,n){const r=Ve(t)?t:[t],a=r.length;if(!ke(e))return e;n=n||{};const s=n.merger||SN;let i;for(let A=0;A<a;++A){if(i=r[A],!ke(i))continue;const l=Object.keys(i);for(let c=0,u=l.length;c<u;++c)s(l[c],e,i,n)}return e}function CA(e,t){return Qr(e,t,{merger:xN})}function xN(e,t,n){if(!wC(e))return;const r=t[e],a=n[e];ke(r)&&ke(a)?CA(r,a):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=Qu(a))}const Cy={"":e=>e,x:e=>e.x,y:e=>e.y};function FN(e){const t=e.split("."),n=[];let r="";for(const a of t)r+=a,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function TN(e){const t=FN(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function fs(e,t){return(Cy[t]||(Cy[t]=TN(t)))(e)}function Og(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Tn=e=>typeof e<"u",Fn=e=>typeof e=="function",ky=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function IN(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const be=Math.PI,it=2*be,DN=it+be,Mu=Number.POSITIVE_INFINITY,Lg=be/180,dt=be/2,$n=be/4,Nu=be*2/3,za=Math.log10,Ir=Math.sign;function kA(e,t,n){return Math.abs(e-t)<n}function Ey(e){const t=Math.round(e);e=kA(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(za(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function UN(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(n|0)&&t.push(n),t.sort((a,s)=>a-s).pop(),t}function ON(e){return typeof e=="symbol"||typeof e=="object"&&e!==null&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}function ps(e){return!ON(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function LN(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function bC(e,t,n){let r,a,s;for(r=0,a=e.length;r<a;r++)s=e[r][n],isNaN(s)||(t.min=Math.min(t.min,s),t.max=Math.max(t.max,s))}function Mt(e){return e*(be/180)}function Td(e){return e*(180/be)}function Sy(e){if(!vt(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function _C(e,t){const n=t.x-e.x,r=t.y-e.y,a=Math.sqrt(n*n+r*r);let s=Math.atan2(r,n);return s<-.5*be&&(s+=it),{angle:s,distance:a}}function mo(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function QN(e,t){return(e-t+DN)%it-be}function rn(e){return(e%it+it)%it}function al(e,t,n,r){const a=rn(e),s=rn(t),i=rn(n),A=rn(s-a),l=rn(i-a),c=rn(a-s),u=rn(a-i);return a===s||a===i||r&&s===i||A>l&&c<u}function Wt(e,t,n){return Math.max(t,Math.min(n,e))}function MN(e){return Wt(e,-32768,32767)}function Aa(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function Qg(e,t,n){n=n||(i=>e[i]<t);let r=e.length-1,a=0,s;for(;r-a>1;)s=a+r>>1,n(s)?a=s:r=s;return{lo:a,hi:r}}const la=(e,t,n,r)=>Qg(e,n,r?a=>{const s=e[a][t];return s<n||s===n&&e[a+1][t]===n}:a=>e[a][t]<n),NN=(e,t,n)=>Qg(e,n,r=>e[r][t]>=n);function PN(e,t,n){let r=0,a=e.length;for(;r<a&&e[r]<t;)r++;for(;a>r&&e[a-1]>n;)a--;return r>0||a<e.length?e.slice(r,a):e}const CC=["push","pop","shift","splice","unshift"];function RN(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),CC.forEach(n=>{const r="_onData"+Og(n),a=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...s){const i=a.apply(this,s);return e._chartjs.listeners.forEach(A=>{typeof A[r]=="function"&&A[r](...s)}),i}})})}function xy(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,a=r.indexOf(t);a!==-1&&r.splice(a,1),!(r.length>0)&&(CC.forEach(s=>{delete e[s]}),delete e._chartjs)}function kC(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const EC=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function SC(e,t){let n=[],r=!1;return function(...a){n=a,r||(r=!0,EC.call(window,()=>{r=!1,e.apply(t,n)}))}}function HN(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const Mg=e=>e==="start"?"left":e==="end"?"right":"center",tn=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,VN=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function xC(e,t,n){const r=t.length;let a=0,s=r;if(e._sorted){const{iScale:i,vScale:A,_parsed:l}=e,c=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,u=i.axis,{min:d,max:f,minDefined:p,maxDefined:h}=i.getUserBounds();if(p){if(a=Math.min(la(l,u,d).lo,n?r:la(t,u,i.getPixelForValue(d)).lo),c){const m=l.slice(0,a+1).reverse().findIndex(y=>!Ce(y[A.axis]));a-=Math.max(0,m)}a=Wt(a,0,r-1)}if(h){let m=Math.max(la(l,i.axis,f,!0).hi+1,n?0:la(t,u,i.getPixelForValue(f),!0).hi+1);if(c){const y=l.slice(m-1).findIndex(g=>!Ce(g[A.axis]));m+=Math.max(0,y)}s=Wt(m,a,r)-a}else s=r-a}return{start:a,count:s}}function FC(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,a={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=a,!0;const s=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,a),s}const dc=e=>e===0||e===1,Fy=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*it/n)),Ty=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*it/n)+1,EA={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*dt)+1,easeOutSine:e=>Math.sin(e*dt),easeInOutSine:e=>-.5*(Math.cos(be*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>dc(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>dc(e)?e:Fy(e,.075,.3),easeOutElastic:e=>dc(e)?e:Ty(e,.075,.3),easeInOutElastic(e){return dc(e)?e:e<.5?.5*Fy(e*2,.1125,.45):.5+.5*Ty(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-EA.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?EA.easeInBounce(e*2)*.5:EA.easeOutBounce(e*2-1)*.5+.5};function Ng(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Iy(e){return Ng(e)?e:new rl(e)}function Yf(e){return Ng(e)?e:new rl(e).saturate(.5).darken(.1).hexString()}const $N=["x","y","borderWidth","radius","tension"],KN=["color","borderColor","backgroundColor"];function zN(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:KN},numbers:{type:"number",properties:$N}}),e.describe("animations",{_fallback:"animation"}),e.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=>t|0}}}})}function WN(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Dy=new Map;function GN(e,t){t=t||{};const n=e+JSON.stringify(t);let r=Dy.get(n);return r||(r=new Intl.NumberFormat(e,t),Dy.set(n,r)),r}function Ul(e,t,n){return GN(t,n).format(e)}const TC={values(e){return Ve(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let a,s=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(a="scientific"),s=jN(e,n)}const i=za(Math.abs(s)),A=isNaN(i)?1:Math.max(Math.min(-1*Math.floor(i),20),0),l={notation:a,minimumFractionDigits:A,maximumFractionDigits:A};return Object.assign(l,this.options.ticks.format),Ul(e,r,l)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(za(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?TC.numeric.call(this,e,t,n):""}};function jN(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var Id={formatters:TC};function YN(e){e.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,n)=>n.lineWidth,tickColor:(t,n)=>n.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:Id.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const oi=Object.create(null),Eh=Object.create(null);function SA(e,t){if(!t)return e;const n=t.split(".");for(let r=0,a=n.length;r<a;++r){const s=n[r];e=e[s]||(e[s]=Object.create(null))}return e}function qf(e,t,n){return typeof t=="string"?Qr(SA(e,t),n):Qr(SA(e,""),t)}class qN{constructor(t,n){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=r=>r.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=(r,a)=>Yf(a.backgroundColor),this.hoverBorderColor=(r,a)=>Yf(a.borderColor),this.hoverColor=(r,a)=>Yf(a.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(n)}set(t,n){return qf(this,t,n)}get(t){return SA(this,t)}describe(t,n){return qf(Eh,t,n)}override(t,n){return qf(oi,t,n)}route(t,n,r,a){const s=SA(this,t),i=SA(this,r),A="_"+n;Object.defineProperties(s,{[A]:{value:s[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[A],c=i[a];return ke(l)?Object.assign({},c,l):pe(l,c)},set(l){this[A]=l}}})}apply(t){t.forEach(n=>n(this))}}var ot=new qN({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[zN,WN,YN]);function XN(e){return!e||Ce(e.size)||Ce(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Pu(e,t,n,r,a){let s=t[a];return s||(s=t[a]=e.measureText(a).width,n.push(a)),s>r&&(r=s),r}function JN(e,t,n,r){r=r||{};let a=r.data=r.data||{},s=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(a=r.data={},s=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let i=0;const A=n.length;let l,c,u,d,f;for(l=0;l<A;l++)if(d=n[l],d!=null&&!Ve(d))i=Pu(e,a,s,i,d);else if(Ve(d))for(c=0,u=d.length;c<u;c++)f=d[c],f!=null&&!Ve(f)&&(i=Pu(e,a,s,i,f));e.restore();const p=s.length/2;if(p>n.length){for(l=0;l<p;l++)delete a[s[l]];s.splice(0,p)}return i}function Fs(e,t,n){const r=e.currentDevicePixelRatio,a=n!==0?Math.max(n/2,.5):0;return Math.round((t-a)*r)/r+a}function Uy(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function Sh(e,t,n,r){IC(e,t,n,r,null)}function IC(e,t,n,r,a){let s,i,A,l,c,u,d,f;const p=t.pointStyle,h=t.rotation,m=t.radius;let y=(h||0)*Lg;if(p&&typeof p=="object"&&(s=p.toString(),s==="[object HTMLImageElement]"||s==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(y),e.drawImage(p,-p.width/2,-p.height/2,p.width,p.height),e.restore();return}if(!(isNaN(m)||m<=0)){switch(e.beginPath(),p){default:a?e.ellipse(n,r,a/2,m,0,0,it):e.arc(n,r,m,0,it),e.closePath();break;case"triangle":u=a?a/2:m,e.moveTo(n+Math.sin(y)*u,r-Math.cos(y)*m),y+=Nu,e.lineTo(n+Math.sin(y)*u,r-Math.cos(y)*m),y+=Nu,e.lineTo(n+Math.sin(y)*u,r-Math.cos(y)*m),e.closePath();break;case"rectRounded":c=m*.516,l=m-c,i=Math.cos(y+$n)*l,d=Math.cos(y+$n)*(a?a/2-c:l),A=Math.sin(y+$n)*l,f=Math.sin(y+$n)*(a?a/2-c:l),e.arc(n-d,r-A,c,y-be,y-dt),e.arc(n+f,r-i,c,y-dt,y),e.arc(n+d,r+A,c,y,y+dt),e.arc(n-f,r+i,c,y+dt,y+be),e.closePath();break;case"rect":if(!h){l=Math.SQRT1_2*m,u=a?a/2:l,e.rect(n-u,r-l,2*u,2*l);break}y+=$n;case"rectRot":d=Math.cos(y)*(a?a/2:m),i=Math.cos(y)*m,A=Math.sin(y)*m,f=Math.sin(y)*(a?a/2:m),e.moveTo(n-d,r-A),e.lineTo(n+f,r-i),e.lineTo(n+d,r+A),e.lineTo(n-f,r+i),e.closePath();break;case"crossRot":y+=$n;case"cross":d=Math.cos(y)*(a?a/2:m),i=Math.cos(y)*m,A=Math.sin(y)*m,f=Math.sin(y)*(a?a/2:m),e.moveTo(n-d,r-A),e.lineTo(n+d,r+A),e.moveTo(n+f,r-i),e.lineTo(n-f,r+i);break;case"star":d=Math.cos(y)*(a?a/2:m),i=Math.cos(y)*m,A=Math.sin(y)*m,f=Math.sin(y)*(a?a/2:m),e.moveTo(n-d,r-A),e.lineTo(n+d,r+A),e.moveTo(n+f,r-i),e.lineTo(n-f,r+i),y+=$n,d=Math.cos(y)*(a?a/2:m),i=Math.cos(y)*m,A=Math.sin(y)*m,f=Math.sin(y)*(a?a/2:m),e.moveTo(n-d,r-A),e.lineTo(n+d,r+A),e.moveTo(n+f,r-i),e.lineTo(n-f,r+i);break;case"line":i=a?a/2:Math.cos(y)*m,A=Math.sin(y)*m,e.moveTo(n-i,r-A),e.lineTo(n+i,r+A);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(y)*(a?a/2:m),r+Math.sin(y)*m);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function ca(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function Ol(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Ll(e){e.restore()}function ZN(e,t,n,r,a){if(!t)return e.lineTo(n.x,n.y);if(a==="middle"){const s=(t.x+n.x)/2;e.lineTo(s,t.y),e.lineTo(s,n.y)}else a==="after"!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function eP(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function tP(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),Ce(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function nP(e,t,n,r,a){if(a.strikethrough||a.underline){const s=e.measureText(r),i=t-s.actualBoundingBoxLeft,A=t+s.actualBoundingBoxRight,l=n-s.actualBoundingBoxAscent,c=n+s.actualBoundingBoxDescent,u=a.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=a.decorationWidth||2,e.moveTo(i,u),e.lineTo(A,u),e.stroke()}}function rP(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function Ai(e,t,n,r,a,s={}){const i=Ve(t)?t:[t],A=s.strokeWidth>0&&s.strokeColor!=="";let l,c;for(e.save(),e.font=a.string,tP(e,s),l=0;l<i.length;++l)c=i[l],s.backdrop&&rP(e,s.backdrop),A&&(s.strokeColor&&(e.strokeStyle=s.strokeColor),Ce(s.strokeWidth)||(e.lineWidth=s.strokeWidth),e.strokeText(c,n,r,s.maxWidth)),e.fillText(c,n,r,s.maxWidth),nP(e,n,r,c,s),r+=Number(a.lineHeight);e.restore()}function go(e,t){const{x:n,y:r,w:a,h:s,radius:i}=t;e.arc(n+i.topLeft,r+i.topLeft,i.topLeft,1.5*be,be,!0),e.lineTo(n,r+s-i.bottomLeft),e.arc(n+i.bottomLeft,r+s-i.bottomLeft,i.bottomLeft,be,dt,!0),e.lineTo(n+a-i.bottomRight,r+s),e.arc(n+a-i.bottomRight,r+s-i.bottomRight,i.bottomRight,dt,0,!0),e.lineTo(n+a,r+i.topRight),e.arc(n+a-i.topRight,r+i.topRight,i.topRight,0,-dt,!0),e.lineTo(n+i.topLeft,r)}const aP=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,sP=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function iP(e,t){const n=(""+e).match(aP);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const oP=e=>+e||0;function Pg(e,t){const n={},r=ke(t),a=r?Object.keys(t):t,s=ke(e)?r?i=>pe(e[i],e[t[i]]):i=>e[i]:()=>e;for(const i of a)n[i]=oP(s(i));return n}function DC(e){return Pg(e,{top:"y",right:"x",bottom:"y",left:"x"})}function ns(e){return Pg(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Ot(e){const t=DC(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function yt(e,t){e=e||{},t=t||ot.font;let n=pe(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=pe(e.style,t.style);r&&!(""+r).match(sP)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const a={family:pe(e.family,t.family),lineHeight:iP(pe(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:pe(e.weight,t.weight),string:""};return a.string=XN(a),a}function At(e,t,n,r){let a=!0,s,i,A;for(s=0,i=e.length;s<i;++s)if(A=e[s],A!==void 0&&(t!==void 0&&typeof A=="function"&&(A=A(t),a=!1),n!==void 0&&Ve(A)&&(A=A[n%A.length],a=!1),A!==void 0))return r&&!a&&(r.cacheable=!1),A}function AP(e,t,n){const{min:r,max:a}=e,s=BC(t,(a-r)/2),i=(A,l)=>n&&A===0?0:A+l;return{min:i(r,-Math.abs(s)),max:i(a,s)}}function _s(e,t){return Object.assign(Object.create(e),t)}function Rg(e,t=[""],n,r,a=()=>e[0]){const s=n||e;typeof r>"u"&&(r=QC("_fallback",e));const i={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:s,_fallback:r,_getTarget:a,override:A=>Rg([A,...e],t,s,r)};return new Proxy(i,{deleteProperty(A,l){return delete A[l],delete A._keys,delete e[0][l],!0},get(A,l){return OC(A,l,()=>mP(l,t,e,A))},getOwnPropertyDescriptor(A,l){return Reflect.getOwnPropertyDescriptor(A._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(A,l){return Ly(A).includes(l)},ownKeys(A){return Ly(A)},set(A,l,c){const u=A._storage||(A._storage=a());return A[l]=u[l]=c,delete A._keys,!0}})}function vo(e,t,n,r){const a={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:UC(e,r),setContext:s=>vo(e,s,n,r),override:s=>vo(e.override(s),t,n,r)};return new Proxy(a,{deleteProperty(s,i){return delete s[i],delete e[i],!0},get(s,i,A){return OC(s,i,()=>cP(s,i,A))},getOwnPropertyDescriptor(s,i){return s._descriptors.allKeys?Reflect.has(e,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,i)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(s,i){return Reflect.has(e,i)},ownKeys(){return Reflect.ownKeys(e)},set(s,i,A){return e[i]=A,delete s[i],!0}})}function UC(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:a=t.allKeys}=e;return{allKeys:a,scriptable:n,indexable:r,isScriptable:Fn(n)?n:()=>n,isIndexable:Fn(r)?r:()=>r}}const lP=(e,t)=>e?e+Og(t):t,Hg=(e,t)=>ke(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function OC(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const r=n();return e[t]=r,r}function cP(e,t,n){const{_proxy:r,_context:a,_subProxy:s,_descriptors:i}=e;let A=r[t];return Fn(A)&&i.isScriptable(t)&&(A=uP(t,A,e,n)),Ve(A)&&A.length&&(A=dP(t,A,e,i.isIndexable)),Hg(t,A)&&(A=vo(A,a,s&&s[t],i)),A}function uP(e,t,n,r){const{_proxy:a,_context:s,_subProxy:i,_stack:A}=n;if(A.has(e))throw new Error("Recursion detected: "+Array.from(A).join("->")+"->"+e);A.add(e);let l=t(s,i||r);return A.delete(e),Hg(e,l)&&(l=Vg(a._scopes,a,e,l)),l}function dP(e,t,n,r){const{_proxy:a,_context:s,_subProxy:i,_descriptors:A}=n;if(typeof s.index<"u"&&r(e))return t[s.index%t.length];if(ke(t[0])){const l=t,c=a._scopes.filter(u=>u!==l);t=[];for(const u of l){const d=Vg(c,a,e,u);t.push(vo(d,s,i&&i[e],A))}}return t}function LC(e,t,n){return Fn(e)?e(t,n):e}const fP=(e,t)=>e===!0?t:typeof e=="string"?fs(t,e):void 0;function pP(e,t,n,r,a){for(const s of t){const i=fP(n,s);if(i){e.add(i);const A=LC(i._fallback,n,a);if(typeof A<"u"&&A!==n&&A!==r)return A}else if(i===!1&&typeof r<"u"&&n!==r)return null}return!1}function Vg(e,t,n,r){const a=t._rootScopes,s=LC(t._fallback,n,r),i=[...e,...a],A=new Set;A.add(r);let l=Oy(A,i,n,s||n,r);return l===null||typeof s<"u"&&s!==n&&(l=Oy(A,i,s,l,r),l===null)?!1:Rg(Array.from(A),[""],a,s,()=>hP(t,n,r))}function Oy(e,t,n,r,a){for(;n;)n=pP(e,t,n,r,a);return n}function hP(e,t,n){const r=e._getTarget();t in r||(r[t]={});const a=r[t];return Ve(a)&&ke(n)?n:a||{}}function mP(e,t,n,r){let a;for(const s of t)if(a=QC(lP(s,e),n),typeof a<"u")return Hg(e,a)?Vg(n,r,e,a):a}function QC(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function Ly(e){let t=e._keys;return t||(t=e._keys=gP(e._scopes)),t}function gP(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(a=>!a.startsWith("_")))t.add(r);return Array.from(t)}function MC(e,t,n,r){const{iScale:a}=e,{key:s="r"}=this._parsing,i=new Array(r);let A,l,c,u;for(A=0,l=r;A<l;++A)c=A+n,u=t[c],i[A]={r:a.parse(fs(u,s),c)};return i}const vP=Number.EPSILON||1e-14,yo=(e,t)=>t<e.length&&!e[t].skip&&e[t],NC=e=>e==="x"?"y":"x";function yP(e,t,n,r){const a=e.skip?t:e,s=t,i=n.skip?t:n,A=mo(s,a),l=mo(i,s);let c=A/(A+l),u=l/(A+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=r*c,f=r*u;return{previous:{x:s.x-d*(i.x-a.x),y:s.y-d*(i.y-a.y)},next:{x:s.x+f*(i.x-a.x),y:s.y+f*(i.y-a.y)}}}function BP(e,t,n){const r=e.length;let a,s,i,A,l,c=yo(e,0);for(let u=0;u<r-1;++u)if(l=c,c=yo(e,u+1),!(!l||!c)){if(kA(t[u],0,vP)){n[u]=n[u+1]=0;continue}a=n[u]/t[u],s=n[u+1]/t[u],A=Math.pow(a,2)+Math.pow(s,2),!(A<=9)&&(i=3/Math.sqrt(A),n[u]=a*i*t[u],n[u+1]=s*i*t[u])}}function wP(e,t,n="x"){const r=NC(n),a=e.length;let s,i,A,l=yo(e,0);for(let c=0;c<a;++c){if(i=A,A=l,l=yo(e,c+1),!A)continue;const u=A[n],d=A[r];i&&(s=(u-i[n])/3,A[`cp1${n}`]=u-s,A[`cp1${r}`]=d-s*t[c]),l&&(s=(l[n]-u)/3,A[`cp2${n}`]=u+s,A[`cp2${r}`]=d+s*t[c])}}function bP(e,t="x"){const n=NC(t),r=e.length,a=Array(r).fill(0),s=Array(r);let i,A,l,c=yo(e,0);for(i=0;i<r;++i)if(A=l,l=c,c=yo(e,i+1),!!l){if(c){const u=c[t]-l[t];a[i]=u!==0?(c[n]-l[n])/u:0}s[i]=A?c?Ir(a[i-1])!==Ir(a[i])?0:(a[i-1]+a[i])/2:a[i-1]:a[i]}BP(e,a,s),wP(e,s,t)}function fc(e,t,n){return Math.max(Math.min(e,n),t)}function _P(e,t){let n,r,a,s,i,A=ca(e[0],t);for(n=0,r=e.length;n<r;++n)i=s,s=A,A=n<r-1&&ca(e[n+1],t),s&&(a=e[n],i&&(a.cp1x=fc(a.cp1x,t.left,t.right),a.cp1y=fc(a.cp1y,t.top,t.bottom)),A&&(a.cp2x=fc(a.cp2x,t.left,t.right),a.cp2y=fc(a.cp2y,t.top,t.bottom)))}function CP(e,t,n,r,a){let s,i,A,l;if(t.spanGaps&&(e=e.filter(c=>!c.skip)),t.cubicInterpolationMode==="monotone")bP(e,a);else{let c=r?e[e.length-1]:e[0];for(s=0,i=e.length;s<i;++s)A=e[s],l=yP(c,A,e[Math.min(s+1,i-(r?0:1))%i],t.tension),A.cp1x=l.previous.x,A.cp1y=l.previous.y,A.cp2x=l.next.x,A.cp2y=l.next.y,c=A}t.capBezierPoints&&_P(e,n)}function $g(){return typeof window<"u"&&typeof document<"u"}function Kg(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Ru(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const Dd=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function kP(e,t){return Dd(e).getPropertyValue(t)}const EP=["top","right","bottom","left"];function js(e,t,n){const r={};n=n?"-"+n:"";for(let a=0;a<4;a++){const s=EP[a];r[s]=parseFloat(e[t+"-"+s+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const SP=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function xP(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:a,offsetY:s}=r;let i=!1,A,l;if(SP(a,s,e.target))A=a,l=s;else{const c=t.getBoundingClientRect();A=r.clientX-c.left,l=r.clientY-c.top,i=!0}return{x:A,y:l,box:i}}function Ls(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,a=Dd(n),s=a.boxSizing==="border-box",i=js(a,"padding"),A=js(a,"border","width"),{x:l,y:c,box:u}=xP(e,n),d=i.left+(u&&A.left),f=i.top+(u&&A.top);let{width:p,height:h}=t;return s&&(p-=i.width+A.width,h-=i.height+A.height),{x:Math.round((l-d)/p*n.width/r),y:Math.round((c-f)/h*n.height/r)}}function FP(e,t,n){let r,a;if(t===void 0||n===void 0){const s=e&&Kg(e);if(!s)t=e.clientWidth,n=e.clientHeight;else{const i=s.getBoundingClientRect(),A=Dd(s),l=js(A,"border","width"),c=js(A,"padding");t=i.width-c.width-l.width,n=i.height-c.height-l.height,r=Ru(A.maxWidth,s,"clientWidth"),a=Ru(A.maxHeight,s,"clientHeight")}}return{width:t,height:n,maxWidth:r||Mu,maxHeight:a||Mu}}const Wa=e=>Math.round(e*10)/10;function TP(e,t,n,r){const a=Dd(e),s=js(a,"margin"),i=Ru(a.maxWidth,e,"clientWidth")||Mu,A=Ru(a.maxHeight,e,"clientHeight")||Mu,l=FP(e,t,n);let{width:c,height:u}=l;if(a.boxSizing==="content-box"){const f=js(a,"border","width"),p=js(a,"padding");c-=p.width+f.width,u-=p.height+f.height}return c=Math.max(0,c-s.width),u=Math.max(0,r?c/r:u-s.height),c=Wa(Math.min(c,i,l.maxWidth)),u=Wa(Math.min(u,A,l.maxHeight)),c&&!u&&(u=Wa(c/2)),(t!==void 0||n!==void 0)&&r&&l.height&&u>l.height&&(u=l.height,c=Wa(Math.floor(u*r))),{width:c,height:u}}function Qy(e,t,n){const r=t||1,a=Wa(e.height*r),s=Wa(e.width*r);e.height=Wa(e.height),e.width=Wa(e.width);const i=e.canvas;return i.style&&(n||!i.style.height&&!i.style.width)&&(i.style.height=`${e.height}px`,i.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||i.height!==a||i.width!==s?(e.currentDevicePixelRatio=r,i.height=a,i.width=s,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const IP=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};$g()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function My(e,t){const n=kP(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Qs(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function DP(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function UP(e,t,n,r){const a={x:e.cp2x,y:e.cp2y},s={x:t.cp1x,y:t.cp1y},i=Qs(e,a,n),A=Qs(a,s,n),l=Qs(s,t,n),c=Qs(i,A,n),u=Qs(A,l,n);return Qs(c,u,n)}const OP=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},LP=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function Yi(e,t,n){return e?OP(t,n):LP()}function PC(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function RC(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function HC(e){return e==="angle"?{between:al,compare:QN,normalize:rn}:{between:Aa,compare:(t,n)=>t-n,normalize:t=>t}}function Ny({start:e,end:t,count:n,loop:r,style:a}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:a}}function QP(e,t,n){const{property:r,start:a,end:s}=n,{between:i,normalize:A}=HC(r),l=t.length;let{start:c,end:u,loop:d}=e,f,p;if(d){for(c+=l,u+=l,f=0,p=l;f<p&&i(A(t[c%l][r]),a,s);++f)c--,u--;c%=l,u%=l}return u<c&&(u+=l),{start:c,end:u,loop:d,style:e.style}}function VC(e,t,n){if(!n)return[e];const{property:r,start:a,end:s}=n,i=t.length,{compare:A,between:l,normalize:c}=HC(r),{start:u,end:d,loop:f,style:p}=QP(e,t,n),h=[];let m=!1,y=null,g,w,B;const v=()=>l(a,B,g)&&A(a,B)!==0,_=()=>A(s,g)===0||l(s,B,g),b=()=>m||v(),k=()=>!m||_();for(let C=u,E=u;C<=d;++C)w=t[C%i],!w.skip&&(g=c(w[r]),g!==B&&(m=l(g,a,s),y===null&&b()&&(y=A(g,a)===0?C:E),y!==null&&k()&&(h.push(Ny({start:y,end:C,loop:f,count:i,style:p})),y=null),E=C,B=g));return y!==null&&h.push(Ny({start:y,end:d,loop:f,count:i,style:p})),h}function $C(e,t){const n=[],r=e.segments;for(let a=0;a<r.length;a++){const s=VC(r[a],e.points,t);s.length&&n.push(...s)}return n}function MP(e,t,n,r){let a=0,s=t-1;if(n&&!r)for(;a<t&&!e[a].skip;)a++;for(;a<t&&e[a].skip;)a++;for(a%=t,n&&(s+=a);s>a&&e[s%t].skip;)s--;return s%=t,{start:a,end:s}}function NP(e,t,n,r){const a=e.length,s=[];let i=t,A=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%a];c.skip||c.stop?A.skip||(r=!1,s.push({start:t%a,end:(l-1)%a,loop:r}),t=i=c.stop?l:null):(i=l,A.skip&&(t=l)),A=c}return i!==null&&s.push({start:t%a,end:i%a,loop:r}),s}function PP(e,t){const n=e.points,r=e.options.spanGaps,a=n.length;if(!a)return[];const s=!!e._loop,{start:i,end:A}=MP(n,a,s,r);if(r===!0)return Py(e,[{start:i,end:A,loop:s}],n,t);const l=A<i?A+a:A,c=!!e._fullLoop&&i===0&&A===a-1;return Py(e,NP(n,i,l,c),n,t)}function Py(e,t,n,r){return!r||!r.setContext||!n?t:RP(e,t,n,r)}function RP(e,t,n,r){const a=e._chart.getContext(),s=Ry(e.options),{_datasetIndex:i,options:{spanGaps:A}}=e,l=n.length,c=[];let u=s,d=t[0].start,f=d;function p(h,m,y,g){const w=A?-1:1;if(h!==m){for(h+=l;n[h%l].skip;)h-=w;for(;n[m%l].skip;)m+=w;h%l!==m%l&&(c.push({start:h%l,end:m%l,loop:y,style:g}),u=g,d=m%l)}}for(const h of t){d=A?d:h.start;let m=n[d%l],y;for(f=d+1;f<=h.end;f++){const g=n[f%l];y=Ry(r.setContext(_s(a,{type:"segment",p0:m,p1:g,p0DataIndex:(f-1)%l,p1DataIndex:f%l,datasetIndex:i}))),HP(y,u)&&p(d,f-1,h.loop,u),m=g,u=y}d<f-1&&p(d,f-1,h.loop,u)}return c}function Ry(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function HP(e,t){if(!t)return!1;const n=[],r=function(a,s){return Ng(s)?(n.includes(s)||n.push(s),n.indexOf(s)):s};return JSON.stringify(e,r)!==JSON.stringify(t,r)}function pc(e,t,n){return e.options.clip?e[n]:t[n]}function VP(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:pc(n,t,"left"),right:pc(n,t,"right"),top:pc(r,t,"top"),bottom:pc(r,t,"bottom")}:t}function KC(e,t){const n=t._clip;if(n.disabled)return!1;const r=VP(t,e.chartArea);return{left:n.left===!1?0:r.left-(n.left===!0?0:n.left),right:n.right===!1?e.width:r.right+(n.right===!0?0:n.right),top:n.top===!1?0:r.top-(n.top===!0?0:n.top),bottom:n.bottom===!1?e.height:r.bottom+(n.bottom===!0?0:n.bottom)}}/*!
|
|
640
640
|
* Chart.js v4.5.1
|
|
641
641
|
* https://www.chartjs.org
|
|
642
642
|
* (c) 2025 Chart.js Contributors
|
|
643
643
|
* Released under the MIT License
|
|
644
|
-
*/class $7{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,a){const s=n.listeners[a],i=n.duration;s.forEach(A=>A({chart:t,initial:n.initial,numSteps:i,currentStep:Math.min(r-n.start,i)}))}_refresh(){this._request||(this._running=!0,this._request=EC.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,a)=>{if(!r.running||!r.items.length)return;const s=r.items;let i=s.length-1,A=!1,l;for(;i>=0;--i)l=s[i],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),A=!0):(s[i]=s[s.length-1],s.pop());A&&(a.draw(),this._notify(a,r,t,"progress")),s.length||(r.running=!1,this._notify(a,r,t,"complete"),r.initial=!1),n+=s.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,a)=>Math.max(r,a._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let a=r.length-1;for(;a>=0;--a)r[a].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var na=new $7;const Hy="transparent",K7={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=Iy(e||Hy),a=r.valid&&Iy(t||Hy);return a&&a.valid?a.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class z7{constructor(t,n,r,a){const s=n[r];a=At([t.to,a,s,t.from]);const i=At([t.from,s,a]);this._active=!0,this._fn=t.fn||K7[t.type||typeof i],this._easing=EA[t.easing]||EA.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=i,this._to=a,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const a=this._target[this._prop],s=r-this._start,i=this._duration-s;this._start=r,this._duration=Math.floor(Math.max(i,t.duration)),this._total+=s,this._loop=!!t.loop,this._to=At([t.to,n,a,t.from]),this._from=At([t.from,a,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,a=this._prop,s=this._from,i=this._loop,A=this._to;let l;if(this._active=s!==A&&(i||n<r),!this._active){this._target[a]=A,this._notify(!0);return}if(n<0){this._target[a]=s;return}l=n/r%2,l=i&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[a]=this._fn(s,A,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let a=0;a<r.length;a++)r[a][n]()}}class zg{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!ke(t))return;const n=Object.keys(ot.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(a=>{const s=t[a];if(!ke(s))return;const i={};for(const A of n)i[A]=s[A];(Ve(s.properties)&&s.properties||[a]).forEach(A=>{(A===a||!r.has(A))&&r.set(A,i)})})}_animateOptions(t,n){const r=n.options,a=G7(t,r);if(!a)return[];const s=this._createAnimations(a,r);return r.$shared&&W7(t.options.$animations,r).then(()=>{t.options=r},()=>{}),s}_createAnimations(t,n){const r=this._properties,a=[],s=t.$animations||(t.$animations={}),i=Object.keys(n),A=Date.now();let l;for(l=i.length-1;l>=0;--l){const c=i[l];if(c.charAt(0)==="$")continue;if(c==="options"){a.push(...this._animateOptions(t,n));continue}const u=n[c];let d=s[c];const f=r.get(c);if(d)if(f&&d.active()){d.update(f,u,A);continue}else d.cancel();if(!f||!f.duration){t[c]=u;continue}s[c]=d=new z7(f,t,c,u),a.push(d)}return a}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return na.add(this._chart,r),!0}}function W7(e,t){const n=[],r=Object.keys(t);for(let a=0;a<r.length;a++){const s=e[r[a]];s&&s.active()&&n.push(s.wait())}return Promise.all(n)}function G7(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function Vy(e,t){const n=e&&e.options||{},r=n.reverse,a=n.min===void 0?t:0,s=n.max===void 0?t:0;return{start:r?s:a,end:r?a:s}}function j7(e,t,n){if(n===!1)return!1;const r=Vy(e,n),a=Vy(t,n);return{top:a.end,right:r.end,bottom:a.start,left:r.start}}function Y7(e){let t,n,r,a;return ke(e)?(t=e.top,n=e.right,r=e.bottom,a=e.left):t=n=r=a=e,{top:t,right:n,bottom:r,left:a,disabled:e===!1}}function zC(e,t){const n=[],r=e._getSortedDatasetMetas(t);let a,s;for(a=0,s=r.length;a<s;++a)n.push(r[a].index);return n}function $y(e,t,n,r={}){const a=e.keys,s=r.mode==="single";let i,A,l,c;if(t===null)return;let u=!1;for(i=0,A=a.length;i<A;++i){if(l=+a[i],l===n){if(u=!0,r.all)continue;break}c=e.values[l],vt(c)&&(s||t===0||Ir(t)===Ir(c))&&(t+=c)}return!u&&!r.all?0:t}function q7(e,t){const{iScale:n,vScale:r}=t,a=n.axis==="x"?"x":"y",s=r.axis==="x"?"x":"y",i=Object.keys(e),A=new Array(i.length);let l,c,u;for(l=0,c=i.length;l<c;++l)u=i[l],A[l]={[a]:u,[s]:e[u]};return A}function Xf(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function X7(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function J7(e){const{min:t,max:n,minDefined:r,maxDefined:a}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:a?n:Number.POSITIVE_INFINITY}}function Z7(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function Ky(e,t,n,r){for(const a of t.getMatchingVisibleMetas(r).reverse()){const s=e[a.index];if(n&&s>0||!n&&s<0)return a.index}return null}function zy(e,t){const{chart:n,_cachedMeta:r}=e,a=n._stacks||(n._stacks={}),{iScale:s,vScale:i,index:A}=r,l=s.axis,c=i.axis,u=X7(s,i,r),d=t.length;let f;for(let p=0;p<d;++p){const h=t[p],{[l]:m,[c]:y}=h,g=h._stacks||(h._stacks={});f=g[c]=Z7(a,u,m),f[A]=y,f._top=Ky(f,i,!0,r.type),f._bottom=Ky(f,i,!1,r.type);const w=f._visualValues||(f._visualValues={});w[A]=y}}function Jf(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function e9(e,t){return _s(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function t9(e,t,n){return _s(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Ko(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const a of t){const s=a._stacks;if(!s||s[r]===void 0||s[r][n]===void 0)return;delete s[r][n],s[r]._visualValues!==void 0&&s[r]._visualValues[n]!==void 0&&delete s[r]._visualValues[n]}}}const Zf=e=>e==="reset"||e==="none",Wy=(e,t)=>t?e:Object.assign({},e),n9=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:zC(n,!0),values:null};class ur{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,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=Xf(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&&Ko(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),a=(d,f,p,h)=>d==="x"?f:d==="r"?h:p,s=n.xAxisID=pe(r.xAxisID,Jf(t,"x")),i=n.yAxisID=pe(r.yAxisID,Jf(t,"y")),A=n.rAxisID=pe(r.rAxisID,Jf(t,"r")),l=n.indexAxis,c=n.iAxisID=a(l,s,i,A),u=n.vAxisID=a(l,i,s,A);n.xScale=this.getScaleForId(s),n.yScale=this.getScaleForId(i),n.rScale=this.getScaleForId(A),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}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 n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&xy(this._data,this),t._stacked&&Ko(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(ke(n)){const a=this._cachedMeta;this._data=q7(n,a)}else if(r!==n){if(r){xy(r,this);const a=this._cachedMeta;Ko(a),a._parsed=[]}n&&Object.isExtensible(n)&&RP(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let a=!1;this._dataCheck();const s=n._stacked;n._stacked=Xf(n.vScale,n),n.stack!==r.stack&&(a=!0,Ko(n),n.stack=r.stack),this._resyncElements(t),(a||s!==n._stacked)&&(zy(this,n._parsed),n._stacked=Xf(n.vScale,n))}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:a}=this,{iScale:s,_stacked:i}=r,A=s.axis;let l=t===0&&n===a.length?!0:r._sorted,c=t>0&&r._parsed[t-1],u,d,f;if(this._parsing===!1)r._parsed=a,r._sorted=!0,f=a;else{Ve(a[t])?f=this.parseArrayData(r,a,t,n):ke(a[t])?f=this.parseObjectData(r,a,t,n):f=this.parsePrimitiveData(r,a,t,n);const p=()=>d[A]===null||c&&d[A]<c[A];for(u=0;u<n;++u)r._parsed[u+t]=d=f[u],l&&(p()&&(l=!1),c=d);r._sorted=l}i&&zy(this,f)}parsePrimitiveData(t,n,r,a){const{iScale:s,vScale:i}=t,A=s.axis,l=i.axis,c=s.getLabels(),u=s===i,d=new Array(a);let f,p,h;for(f=0,p=a;f<p;++f)h=f+r,d[f]={[A]:u||s.parse(c[h],h),[l]:i.parse(n[h],h)};return d}parseArrayData(t,n,r,a){const{xScale:s,yScale:i}=t,A=new Array(a);let l,c,u,d;for(l=0,c=a;l<c;++l)u=l+r,d=n[u],A[l]={x:s.parse(d[0],u),y:i.parse(d[1],u)};return A}parseObjectData(t,n,r,a){const{xScale:s,yScale:i}=t,{xAxisKey:A="x",yAxisKey:l="y"}=this._parsing,c=new Array(a);let u,d,f,p;for(u=0,d=a;u<d;++u)f=u+r,p=n[f],c[u]={x:s.parse(fs(p,A),f),y:i.parse(fs(p,l),f)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,r){const a=this.chart,s=this._cachedMeta,i=n[t.axis],A={keys:zC(a,!0),values:n._stacks[t.axis]._visualValues};return $y(A,i,s.index,{mode:r})}updateRangeFromParsed(t,n,r,a){const s=r[n.axis];let i=s===null?NaN:s;const A=a&&r._stacks[n.axis];a&&A&&(a.values=A,i=$y(a,s,this._cachedMeta.index)),t.min=Math.min(t.min,i),t.max=Math.max(t.max,i)}getMinMax(t,n){const r=this._cachedMeta,a=r._parsed,s=r._sorted&&t===r.iScale,i=a.length,A=this._getOtherScale(t),l=n9(n,r,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:d}=J7(A);let f,p;function h(){p=a[f];const m=p[A.axis];return!vt(p[t.axis])||u>m||d<m}for(f=0;f<i&&!(!h()&&(this.updateRangeFromParsed(c,t,p,l),s));++f);if(s){for(f=i-1;f>=0;--f)if(!h()){this.updateRangeFromParsed(c,t,p,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let a,s,i;for(a=0,s=n.length;a<s;++a)i=n[a][t.axis],vt(i)&&r.push(i);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,r=n.iScale,a=n.vScale,s=this.getParsed(t);return{label:r?""+r.getLabelForValue(s[r.axis]):"",value:a?""+a.getLabelForValue(s[a.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=Y7(pe(this.options.clip,j7(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,r=this._cachedMeta,a=r.data||[],s=n.chartArea,i=[],A=this._drawStart||0,l=this._drawCount||a.length-A,c=this.options.drawActiveElementsOnTop;let u;for(r.dataset&&r.dataset.draw(t,s,A,l),u=A;u<A+l;++u){const d=a[u];d.hidden||(d.active&&c?i.push(d):d.draw(t,s))}for(u=0;u<i.length;++u)i[u].draw(t,s)}getStyle(t,n){const r=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,n,r){const a=this.getDataset();let s;if(t>=0&&t<this._cachedMeta.data.length){const i=this._cachedMeta.data[t];s=i.$context||(i.$context=t9(this.getContext(),t,i)),s.parsed=this.getParsed(t),s.raw=a.data[t],s.index=s.dataIndex=t}else s=this.$context||(this.$context=e9(this.chart.getContext(),this.index)),s.dataset=a,s.index=s.datasetIndex=this.index;return s.active=!!n,s.mode=r,s}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",r){const a=n==="active",s=this._cachedDataOpts,i=t+"-"+n,A=s[i],l=this.enableOptionSharing&&Tn(r);if(A)return Wy(A,l);const c=this.chart.config,u=c.datasetElementScopeKeys(this._type,t),d=a?[`${t}Hover`,"hover",t,""]:[t,""],f=c.getOptionScopes(this.getDataset(),u),p=Object.keys(ot.elements[t]),h=()=>this.getContext(r,a,n),m=c.resolveNamedOptions(f,p,h,d);return m.$shared&&(m.$shared=l,s[i]=Object.freeze(Wy(m,l))),m}_resolveAnimations(t,n,r){const a=this.chart,s=this._cachedDataOpts,i=`animation-${n}`,A=s[i];if(A)return A;let l;if(a.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,n),f=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(f,this.getContext(t,r,n))}const c=new zg(a,l&&l.animations);return l&&l._cacheable&&(s[i]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Zf(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),a=this._sharedOptions,s=this.getSharedOptions(r),i=this.includeOptions(n,s)||s!==a;return this.updateSharedOptions(s,n,r),{sharedOptions:s,includeOptions:i}}updateElement(t,n,r,a){Zf(a)?Object.assign(t,r):this._resolveAnimations(n,a).update(t,r)}updateSharedOptions(t,n,r){t&&!Zf(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,a){t.active=a;const s=this.getStyle(n,a);this._resolveAnimations(n,r,a).update(t,{options:!a&&this.getSharedOptions(s)||s})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"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 n=this._data,r=this._cachedMeta.data;for(const[A,l,c]of this._syncList)this[A](l,c);this._syncList=[];const a=r.length,s=n.length,i=Math.min(s,a);i&&this.parse(0,i),s>a?this._insertElements(a,s-a,t):s<a&&this._removeElements(s,a-s)}_insertElements(t,n,r=!0){const a=this._cachedMeta,s=a.data,i=t+n;let A;const l=c=>{for(c.length+=n,A=c.length-1;A>=i;A--)c[A]=c[A-n]};for(l(s),A=t;A<i;++A)s[A]=new this.dataElementType;this._parsing&&l(a._parsed),this.parse(t,n),r&&this.updateElements(s,t,n,"reset")}updateElements(t,n,r,a){}_removeElements(t,n){const r=this._cachedMeta;if(this._parsing){const a=r._parsed.splice(t,n);r._stacked&&Ko(r,a)}r.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,r,a]=t;this[n](r,a)}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,n){n&&this._sync(["_removeElements",t,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}G(ur,"defaults",{}),G(ur,"datasetElementType",null),G(ur,"dataElementType",null);function r9(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let r=[];for(let a=0,s=n.length;a<s;a++)r=r.concat(n[a].controller.getAllParsedValues(e));e._cache.$bar=kC(r.sort((a,s)=>a-s))}return e._cache.$bar}function a9(e){const t=e.iScale,n=r9(t,e.type);let r=t._length,a,s,i,A;const l=()=>{i===32767||i===-32768||(Tn(A)&&(r=Math.min(r,Math.abs(i-A)||r)),A=i)};for(a=0,s=n.length;a<s;++a)i=t.getPixelForValue(n[a]),l();for(A=void 0,a=0,s=t.ticks.length;a<s;++a)i=t.getPixelForTick(a),l();return r}function s9(e,t,n,r){const a=n.barThickness;let s,i;return Ce(a)?(s=t.min*n.categoryPercentage,i=n.barPercentage):(s=a*r,i=1),{chunk:s/r,ratio:i,start:t.pixels[e]-s/2}}function i9(e,t,n,r){const a=t.pixels,s=a[e];let i=e>0?a[e-1]:null,A=e<a.length-1?a[e+1]:null;const l=n.categoryPercentage;i===null&&(i=s-(A===null?t.end-t.start:A-s)),A===null&&(A=s+s-i);const c=s-(s-Math.min(i,A))/2*l;return{chunk:Math.abs(A-i)/2*l/r,ratio:n.barPercentage,start:c}}function o9(e,t,n,r){const a=n.parse(e[0],r),s=n.parse(e[1],r),i=Math.min(a,s),A=Math.max(a,s);let l=i,c=A;Math.abs(i)>Math.abs(A)&&(l=A,c=i),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:a,end:s,min:i,max:A}}function WC(e,t,n,r){return Ve(e)?o9(e,t,n,r):t[n.axis]=n.parse(e,r),t}function Gy(e,t,n,r){const a=e.iScale,s=e.vScale,i=a.getLabels(),A=a===s,l=[];let c,u,d,f;for(c=n,u=n+r;c<u;++c)f=t[c],d={},d[a.axis]=A||a.parse(i[c],c),l.push(WC(f,d,s,c));return l}function ep(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function A9(e,t,n){return e!==0?Ir(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function l9(e){let t,n,r,a,s;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(a="end",s="start"):(a="start",s="end"),{start:n,end:r,reverse:t,top:a,bottom:s}}function c9(e,t,n,r){let a=t.borderSkipped;const s={};if(!a){e.borderSkipped=s;return}if(a===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:i,end:A,reverse:l,top:c,bottom:u}=l9(e);a==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?a=c:(n._bottom||0)===r?a=u:(s[jy(u,i,A,l)]=!0,a=c)),s[jy(a,i,A,l)]=!0,e.borderSkipped=s}function jy(e,t,n,r){return r?(e=u9(e,t,n),e=Yy(e,n,t)):e=Yy(e,t,n),e}function u9(e,t,n){return e===t?n:e===n?t:e}function Yy(e,t,n){return e==="start"?t:e==="end"?n:e}function d9(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class ou extends ur{parsePrimitiveData(t,n,r,a){return Gy(t,n,r,a)}parseArrayData(t,n,r,a){return Gy(t,n,r,a)}parseObjectData(t,n,r,a){const{iScale:s,vScale:i}=t,{xAxisKey:A="x",yAxisKey:l="y"}=this._parsing,c=s.axis==="x"?A:l,u=i.axis==="x"?A:l,d=[];let f,p,h,m;for(f=r,p=r+a;f<p;++f)m=n[f],h={},h[s.axis]=s.parse(fs(m,c),f),d.push(WC(fs(m,u),h,i,f));return d}updateRangeFromParsed(t,n,r,a){super.updateRangeFromParsed(t,n,r,a);const s=r._custom;s&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,s.min),t.max=Math.max(t.max,s.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:r,vScale:a}=n,s=this.getParsed(t),i=s._custom,A=ep(i)?"["+i.start+", "+i.end+"]":""+a.getLabelForValue(s[a.axis]);return{label:""+r.getLabelForValue(s[r.axis]),value:A}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,r,a){const s=a==="reset",{index:i,_cachedMeta:{vScale:A}}=this,l=A.getBasePixel(),c=A.isHorizontal(),u=this._getRuler(),{sharedOptions:d,includeOptions:f}=this._getSharedOptions(n,a);for(let p=n;p<n+r;p++){const h=this.getParsed(p),m=s||Ce(h[A.axis])?{base:l,head:l}:this._calculateBarValuePixels(p),y=this._calculateBarIndexPixels(p,u),g=(h._stacks||{})[A.axis],w={horizontal:c,base:m.base,enableBorderRadius:!g||ep(h._custom)||i===g._top||i===g._bottom,x:c?m.head:y.center,y:c?y.center:m.head,height:c?y.size:Math.abs(m.size),width:c?Math.abs(m.size):y.size};f&&(w.options=d||this.resolveDataElementOptions(p,t[p].active?"active":a));const B=w.options||t[p].options;c9(w,B,g,i),d9(w,B,u.ratio),this.updateElement(t[p],p,w,a)}}_getStacks(t,n){const{iScale:r}=this._cachedMeta,a=r.getMatchingVisibleMetas(this._type).filter(u=>u.controller.options.grouped),s=r.options.stacked,i=[],A=this._cachedMeta.controller.getParsed(n),l=A&&A[r.axis],c=u=>{const d=u._parsed.find(p=>p[r.axis]===l),f=d&&d[u.vScale.axis];if(Ce(f)||isNaN(f))return!0};for(const u of a)if(!(n!==void 0&&c(u))&&((s===!1||i.indexOf(u.stack)===-1||s===void 0&&u.stack===void 0)&&i.push(u.stack),u.index===t))break;return i.length||i.push(void 0),i}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const t=this.chart.scales,n=this.chart.options.indexAxis;return Object.keys(t).filter(r=>t[r].axis===n).shift()}_getAxis(){const t={},n=this.getFirstScaleIdForIndexAxis();for(const r of this.chart.data.datasets)t[pe(this.chart.options.indexAxis==="x"?r.xAxisID:r.yAxisID,n)]=!0;return Object.keys(t)}_getStackIndex(t,n,r){const a=this._getStacks(t,r),s=n!==void 0?a.indexOf(n):-1;return s===-1?a.length-1:s}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,a=[];let s,i;for(s=0,i=n.data.length;s<i;++s)a.push(r.getPixelForValue(this.getParsed(s)[r.axis],s));const A=t.barThickness;return{min:A||a9(n),pixels:a,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:A?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:r,index:a},options:{base:s,minBarLength:i}}=this,A=s||0,l=this.getParsed(t),c=l._custom,u=ep(c);let d=l[n.axis],f=0,p=r?this.applyStack(n,l,r):d,h,m;p!==d&&(f=p-d,p=d),u&&(d=c.barStart,p=c.barEnd-c.barStart,d!==0&&Ir(d)!==Ir(c.barEnd)&&(f=0),f+=d);const y=!Ce(s)&&!u?s:f;let g=n.getPixelForValue(y);if(this.chart.getDataVisibility(t)?h=n.getPixelForValue(f+p):h=g,m=h-g,Math.abs(m)<i){m=A9(m,n,A)*i,d===A&&(g-=m/2);const w=n.getPixelForDecimal(0),B=n.getPixelForDecimal(1),v=Math.min(w,B),_=Math.max(w,B);g=Math.max(Math.min(g,_),v),h=g+m,r&&!u&&(l._stacks[n.axis]._visualValues[a]=n.getValueForPixel(h)-n.getValueForPixel(g))}if(g===n.getPixelForValue(A)){const w=Ir(m)*n.getLineWidthForValue(A)/2;g+=w,m-=w}return{size:m,base:g,head:h,center:h+m/2}}_calculateBarIndexPixels(t,n){const r=n.scale,a=this.options,s=a.skipNull,i=pe(a.maxBarThickness,1/0);let A,l;const c=this._getAxisCount();if(n.grouped){const u=s?this._getStackCount(t):n.stackCount,d=a.barThickness==="flex"?i9(t,n,a,u*c):s9(t,n,a,u*c),f=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,p=this._getAxis().indexOf(pe(f,this.getFirstScaleIdForIndexAxis())),h=this._getStackIndex(this.index,this._cachedMeta.stack,s?t:void 0)+p;A=d.start+d.chunk*h+d.chunk/2,l=Math.min(i,d.chunk*d.ratio)}else A=r.getPixelForValue(this.getParsed(t)[r.axis],t),l=Math.min(i,n.min*n.ratio);return{base:A-l/2,head:A+l/2,center:A,size:l}}draw(){const t=this._cachedMeta,n=t.vScale,r=t.data,a=r.length;let s=0;for(;s<a;++s)this.getParsed(s)[n.axis]!==null&&!r[s].hidden&&r[s].draw(this._ctx)}}G(ou,"id","bar"),G(ou,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),G(ou,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class Au extends ur{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,n,r,a){const s=super.parsePrimitiveData(t,n,r,a);for(let i=0;i<s.length;i++)s[i]._custom=this.resolveDataElementOptions(i+r).radius;return s}parseArrayData(t,n,r,a){const s=super.parseArrayData(t,n,r,a);for(let i=0;i<s.length;i++){const A=n[r+i];s[i]._custom=pe(A[2],this.resolveDataElementOptions(i+r).radius)}return s}parseObjectData(t,n,r,a){const s=super.parseObjectData(t,n,r,a);for(let i=0;i<s.length;i++){const A=n[r+i];s[i]._custom=pe(A&&A.r&&+A.r,this.resolveDataElementOptions(i+r).radius)}return s}getMaxOverflow(){const t=this._cachedMeta.data;let n=0;for(let r=t.length-1;r>=0;--r)n=Math.max(n,t[r].size(this.resolveDataElementOptions(r))/2);return n>0&&n}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:a,yScale:s}=n,i=this.getParsed(t),A=a.getLabelForValue(i.x),l=s.getLabelForValue(i.y),c=i._custom;return{label:r[t]||"",value:"("+A+", "+l+(c?", "+c:"")+")"}}update(t){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,r,a){const s=a==="reset",{iScale:i,vScale:A}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(n,a),u=i.axis,d=A.axis;for(let f=n;f<n+r;f++){const p=t[f],h=!s&&this.getParsed(f),m={},y=m[u]=s?i.getPixelForDecimal(.5):i.getPixelForValue(h[u]),g=m[d]=s?A.getBasePixel():A.getPixelForValue(h[d]);m.skip=isNaN(y)||isNaN(g),c&&(m.options=l||this.resolveDataElementOptions(f,p.active?"active":a),s&&(m.options.radius=0)),this.updateElement(p,f,m,a)}}resolveDataElementOptions(t,n){const r=this.getParsed(t);let a=super.resolveDataElementOptions(t,n);a.$shared&&(a=Object.assign({},a,{$shared:!1}));const s=a.radius;return n!=="active"&&(a.radius=0),a.radius+=pe(r&&r._custom,s),a}}G(Au,"id","bubble"),G(Au,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),G(Au,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function f9(e,t,n){let r=1,a=1,s=0,i=0;if(t<it){const A=e,l=A+t,c=Math.cos(A),u=Math.sin(A),d=Math.cos(l),f=Math.sin(l),p=(B,v,_)=>al(B,A,l,!0)?1:Math.max(v,v*n,_,_*n),h=(B,v,_)=>al(B,A,l,!0)?-1:Math.min(v,v*n,_,_*n),m=p(0,c,d),y=p(dt,u,f),g=h(be,c,d),w=h(be+dt,u,f);r=(m-g)/2,a=(y-w)/2,s=-(m+g)/2,i=-(y+w)/2}return{ratioX:r,ratioY:a,offsetX:s,offsetY:i}}class Hs extends ur{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const r=this.getDataset().data,a=this._cachedMeta;if(this._parsing===!1)a._parsed=r;else{let s=l=>+r[l];if(ke(r[t])){const{key:l="value"}=this._parsing;s=c=>+fs(r[c],l)}let i,A;for(i=t,A=t+n;i<A;++i)a._parsed[i]=s(i)}}_getRotation(){return Mt(this.options.rotation-90)}_getCircumference(){return Mt(this.options.circumference)}_getRotationExtents(){let t=it,n=-it;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const a=this.chart.getDatasetMeta(r).controller,s=a._getRotation(),i=a._getCircumference();t=Math.min(t,s),n=Math.max(n,s+i)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:r}=n,a=this._cachedMeta,s=a.data,i=this.getMaxBorderWidth()+this.getMaxOffset(s)+this.options.spacing,A=Math.max((Math.min(r.width,r.height)-i)/2,0),l=Math.min(EP(this.options.cutout,A),1),c=this._getRingWeight(this.index),{circumference:u,rotation:d}=this._getRotationExtents(),{ratioX:f,ratioY:p,offsetX:h,offsetY:m}=f9(d,u,l),y=(r.width-i)/f,g=(r.height-i)/p,w=Math.max(Math.min(y,g)/2,0),B=BC(this.options.radius,w),v=Math.max(B*l,0),_=(B-v)/this._getVisibleDatasetWeightTotal();this.offsetX=h*B,this.offsetY=m*B,a.total=this.calculateTotal(),this.outerRadius=B-_*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-_*c,0),this.updateElements(s,0,s.length,t)}_circumference(t,n){const r=this.options,a=this._cachedMeta,s=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(t)||a._parsed[t]===null||a.data[t].hidden?0:this.calculateCircumference(a._parsed[t]*s/it)}updateElements(t,n,r,a){const s=a==="reset",i=this.chart,A=i.chartArea,c=i.options.animation,u=(A.left+A.right)/2,d=(A.top+A.bottom)/2,f=s&&c.animateScale,p=f?0:this.innerRadius,h=f?0:this.outerRadius,{sharedOptions:m,includeOptions:y}=this._getSharedOptions(n,a);let g=this._getRotation(),w;for(w=0;w<n;++w)g+=this._circumference(w,s);for(w=n;w<n+r;++w){const B=this._circumference(w,s),v=t[w],_={x:u+this.offsetX,y:d+this.offsetY,startAngle:g,endAngle:g+B,circumference:B,outerRadius:h,innerRadius:p};y&&(_.options=m||this.resolveDataElementOptions(w,v.active?"active":a)),g+=B,this.updateElement(v,w,_,a)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let r=0,a;for(a=0;a<n.length;a++){const s=t._parsed[a];s!==null&&!isNaN(s)&&this.chart.getDataVisibility(a)&&!n[a].hidden&&(r+=Math.abs(s))}return r}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?it*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,a=r.data.labels||[],s=Ul(n._parsed[t],r.options.locale);return{label:a[t]||"",value:s}}getMaxBorderWidth(t){let n=0;const r=this.chart;let a,s,i,A,l;if(!t){for(a=0,s=r.data.datasets.length;a<s;++a)if(r.isDatasetVisible(a)){i=r.getDatasetMeta(a),t=i.data,A=i.controller;break}}if(!t)return 0;for(a=0,s=t.length;a<s;++a)l=A.resolveDataElementOptions(a),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let r=0,a=t.length;r<a;++r){const s=this.resolveDataElementOptions(r);n=Math.max(n,s.offset||0,s.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let r=0;r<t;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(t){return Math.max(pe(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}G(Hs,"id","doughnut"),G(Hs,"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"}),G(Hs,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),G(Hs,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data,{labels:{pointStyle:r,textAlign:a,color:s,useBorderRadius:i,borderRadius:A}}=t.legend.options;return n.labels.length&&n.datasets.length?n.labels.map((l,c)=>{const d=t.getDatasetMeta(0).controller.getStyle(c);return{text:l,fillStyle:d.backgroundColor,fontColor:s,hidden:!t.getDataVisibility(c),lineDash:d.borderDash,lineDashOffset:d.borderDashOffset,lineJoin:d.borderJoinStyle,lineWidth:d.borderWidth,strokeStyle:d.borderColor,textAlign:a,pointStyle:r,borderRadius:i&&(A||d.borderRadius),index:c}}):[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});class lu extends ur{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:a=[],_dataset:s}=n,i=this.chart._animationsDisabled;let{start:A,count:l}=xC(n,a,i);this._drawStart=A,this._drawCount=l,FC(n)&&(A=0,l=a.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!s._decimated,r.points=a;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(r,void 0,{animated:!i,options:c},t),this.updateElements(a,A,l,t)}updateElements(t,n,r,a){const s=a==="reset",{iScale:i,vScale:A,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:d}=this._getSharedOptions(n,a),f=i.axis,p=A.axis,{spanGaps:h,segment:m}=this.options,y=ps(h)?h:Number.POSITIVE_INFINITY,g=this.chart._animationsDisabled||s||a==="none",w=n+r,B=t.length;let v=n>0&&this.getParsed(n-1);for(let _=0;_<B;++_){const b=t[_],k=g?b:{};if(_<n||_>=w){k.skip=!0;continue}const C=this.getParsed(_),E=Ce(C[p]),D=k[f]=i.getPixelForValue(C[f],_),T=k[p]=s||E?A.getBasePixel():A.getPixelForValue(l?this.applyStack(A,C,l):C[p],_);k.skip=isNaN(D)||isNaN(T)||E,k.stop=_>0&&Math.abs(C[f]-v[f])>y,m&&(k.parsed=C,k.raw=c.data[_]),d&&(k.options=u||this.resolveDataElementOptions(_,b.active?"active":a)),g||this.updateElement(b,_,k,a),v=C}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,a=t.data||[];if(!a.length)return r;const s=a[0].size(this.resolveDataElementOptions(0)),i=a[a.length-1].size(this.resolveDataElementOptions(a.length-1));return Math.max(r,s,i)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}G(lu,"id","line"),G(lu,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),G(lu,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class xA extends ur{constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,a=r.data.labels||[],s=Ul(n._parsed[t].r,r.options.locale);return{label:a[t]||"",value:s}}parseObjectData(t,n,r,a){return MC.bind(this)(t,n,r,a)}update(t){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){const t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((r,a)=>{const s=this.getParsed(a).r;!isNaN(s)&&this.chart.getDataVisibility(a)&&(s<n.min&&(n.min=s),s>n.max&&(n.max=s))}),n}_updateRadius(){const t=this.chart,n=t.chartArea,r=t.options,a=Math.min(n.right-n.left,n.bottom-n.top),s=Math.max(a/2,0),i=Math.max(r.cutoutPercentage?s/100*r.cutoutPercentage:1,0),A=(s-i)/t.getVisibleDatasetCount();this.outerRadius=s-A*this.index,this.innerRadius=this.outerRadius-A}updateElements(t,n,r,a){const s=a==="reset",i=this.chart,l=i.options.animation,c=this._cachedMeta.rScale,u=c.xCenter,d=c.yCenter,f=c.getIndexAngle(0)-.5*be;let p=f,h;const m=360/this.countVisibleElements();for(h=0;h<n;++h)p+=this._computeAngle(h,a,m);for(h=n;h<n+r;h++){const y=t[h];let g=p,w=p+this._computeAngle(h,a,m),B=i.getDataVisibility(h)?c.getDistanceFromCenterForValue(this.getParsed(h).r):0;p=w,s&&(l.animateScale&&(B=0),l.animateRotate&&(g=w=f));const v={x:u,y:d,innerRadius:0,outerRadius:B,startAngle:g,endAngle:w,options:this.resolveDataElementOptions(h,y.active?"active":a)};this.updateElement(y,h,v,a)}}countVisibleElements(){const t=this._cachedMeta;let n=0;return t.data.forEach((r,a)=>{!isNaN(this.getParsed(a).r)&&this.chart.getDataVisibility(a)&&n++}),n}_computeAngle(t,n,r){return this.chart.getDataVisibility(t)?Mt(this.resolveDataElementOptions(t,n).angle||r):0}}G(xA,"id","polarArea"),G(xA,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),G(xA,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:a}}=t.legend.options;return n.labels.map((s,i)=>{const l=t.getDatasetMeta(0).controller.getStyle(i);return{text:s,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:a,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(i),index:i}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class xh extends Hs{}G(xh,"id","pie"),G(xh,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class cu extends ur{getLabelAndValue(t){const n=this._cachedMeta.vScale,r=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(r[n.axis])}}parseObjectData(t,n,r,a){return MC.bind(this)(t,n,r,a)}update(t){const n=this._cachedMeta,r=n.dataset,a=n.data||[],s=n.iScale.getLabels();if(r.points=a,t!=="resize"){const i=this.resolveDatasetElementOptions(t);this.options.showLine||(i.borderWidth=0);const A={_loop:!0,_fullLoop:s.length===a.length,options:i};this.updateElement(r,void 0,A,t)}this.updateElements(a,0,a.length,t)}updateElements(t,n,r,a){const s=this._cachedMeta.rScale,i=a==="reset";for(let A=n;A<n+r;A++){const l=t[A],c=this.resolveDataElementOptions(A,l.active?"active":a),u=s.getPointPositionForValue(A,this.getParsed(A).r),d=i?s.xCenter:u.x,f=i?s.yCenter:u.y,p={x:d,y:f,angle:u.angle,skip:isNaN(d)||isNaN(f),options:c};this.updateElement(l,A,p,a)}}}G(cu,"id","radar"),G(cu,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),G(cu,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class uu extends ur{getLabelAndValue(t){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:a,yScale:s}=n,i=this.getParsed(t),A=a.getLabelForValue(i.x),l=s.getLabelForValue(i.y);return{label:r[t]||"",value:"("+A+", "+l+")"}}update(t){const n=this._cachedMeta,{data:r=[]}=n,a=this.chart._animationsDisabled;let{start:s,count:i}=xC(n,r,a);if(this._drawStart=s,this._drawCount=i,FC(n)&&(s=0,i=r.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:A,_dataset:l}=n;A._chart=this.chart,A._datasetIndex=this.index,A._decimated=!!l._decimated,A.points=r;const c=this.resolveDatasetElementOptions(t);c.segment=this.options.segment,this.updateElement(A,void 0,{animated:!a,options:c},t)}else this.datasetElementType&&(delete n.dataset,this.datasetElementType=!1);this.updateElements(r,s,i,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,n,r,a){const s=a==="reset",{iScale:i,vScale:A,_stacked:l,_dataset:c}=this._cachedMeta,u=this.resolveDataElementOptions(n,a),d=this.getSharedOptions(u),f=this.includeOptions(a,d),p=i.axis,h=A.axis,{spanGaps:m,segment:y}=this.options,g=ps(m)?m:Number.POSITIVE_INFINITY,w=this.chart._animationsDisabled||s||a==="none";let B=n>0&&this.getParsed(n-1);for(let v=n;v<n+r;++v){const _=t[v],b=this.getParsed(v),k=w?_:{},C=Ce(b[h]),E=k[p]=i.getPixelForValue(b[p],v),D=k[h]=s||C?A.getBasePixel():A.getPixelForValue(l?this.applyStack(A,b,l):b[h],v);k.skip=isNaN(E)||isNaN(D)||C,k.stop=v>0&&Math.abs(b[p]-B[p])>g,y&&(k.parsed=b,k.raw=c.data[v]),f&&(k.options=d||this.resolveDataElementOptions(v,_.active?"active":a)),w||this.updateElement(_,v,k,a),B=b}this.updateSharedOptions(d,a,u)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let A=0;for(let l=n.length-1;l>=0;--l)A=Math.max(A,n[l].size(this.resolveDataElementOptions(l))/2);return A>0&&A}const r=t.dataset,a=r.options&&r.options.borderWidth||0;if(!n.length)return a;const s=n[0].size(this.resolveDataElementOptions(0)),i=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(a,s,i)/2}}G(uu,"id","scatter"),G(uu,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),G(uu,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var p9=Object.freeze({__proto__:null,BarController:ou,BubbleController:Au,DoughnutController:Hs,LineController:lu,PieController:xh,PolarAreaController:xA,RadarController:cu,ScatterController:uu});function Ts(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Wg{constructor(t){G(this,"options");this.options=t||{}}static override(t){Object.assign(Wg.prototype,t)}init(){}formats(){return Ts()}parse(){return Ts()}format(){return Ts()}add(){return Ts()}diff(){return Ts()}startOf(){return Ts()}endOf(){return Ts()}}var GC={_date:Wg};function h9(e,t,n,r){const{controller:a,data:s,_sorted:i}=e,A=a._cachedMeta.iScale,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(A&&t===A.axis&&t!=="r"&&i&&s.length){const c=A._reversePixels?NP:la;if(r){if(a._sharedOptions){const u=s[0],d=typeof u.getRange=="function"&&u.getRange(t);if(d){const f=c(s,t,n-d),p=c(s,t,n+d);return{lo:f.lo,hi:p.hi}}}}else{const u=c(s,t,n);if(l){const{vScale:d}=a._cachedMeta,{_parsed:f}=e,p=f.slice(0,u.lo+1).reverse().findIndex(m=>!Ce(m[d.axis]));u.lo-=Math.max(0,p);const h=f.slice(u.hi).findIndex(m=>!Ce(m[d.axis]));u.hi+=Math.max(0,h)}return u}}return{lo:0,hi:s.length-1}}function Ql(e,t,n,r,a){const s=e.getSortedVisibleDatasetMetas(),i=n[t];for(let A=0,l=s.length;A<l;++A){const{index:c,data:u}=s[A],{lo:d,hi:f}=h9(s[A],t,i,a);for(let p=d;p<=f;++p){const h=u[p];h.skip||r(h,c,p)}}}function m9(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(r,a){const s=t?Math.abs(r.x-a.x):0,i=n?Math.abs(r.y-a.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(i,2))}}function tp(e,t,n,r,a){const s=[];return!a&&!e.isPointInArea(t)||Ql(e,n,t,function(A,l,c){!a&&!ca(A,e.chartArea,0)||A.inRange(t.x,t.y,r)&&s.push({element:A,datasetIndex:l,index:c})},!0),s}function g9(e,t,n,r){let a=[];function s(i,A,l){const{startAngle:c,endAngle:u}=i.getProps(["startAngle","endAngle"],r),{angle:d}=_C(i,{x:t.x,y:t.y});al(d,c,u)&&a.push({element:i,datasetIndex:A,index:l})}return Ql(e,n,t,s),a}function v9(e,t,n,r,a,s){let i=[];const A=m9(n);let l=Number.POSITIVE_INFINITY;function c(u,d,f){const p=u.inRange(t.x,t.y,a);if(r&&!p)return;const h=u.getCenterPoint(a);if(!(!!s||e.isPointInArea(h))&&!p)return;const y=A(t,h);y<l?(i=[{element:u,datasetIndex:d,index:f}],l=y):y===l&&i.push({element:u,datasetIndex:d,index:f})}return Ql(e,n,t,c),i}function np(e,t,n,r,a,s){return!s&&!e.isPointInArea(t)?[]:n==="r"&&!r?g9(e,t,n,a):v9(e,t,n,r,a,s)}function qy(e,t,n,r,a){const s=[],i=n==="x"?"inXRange":"inYRange";let A=!1;return Ql(e,n,t,(l,c,u)=>{l[i]&&l[i](t[n],a)&&(s.push({element:l,datasetIndex:c,index:u}),A=A||l.inRange(t.x,t.y,a))}),r&&!A?[]:s}var y9={evaluateInteractionItems:Ql,modes:{index(e,t,n,r){const a=Ls(t,e),s=n.axis||"x",i=n.includeInvisible||!1,A=n.intersect?tp(e,a,s,r,i):np(e,a,s,!1,r,i),l=[];return A.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const u=A[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(e,t,n,r){const a=Ls(t,e),s=n.axis||"xy",i=n.includeInvisible||!1;let A=n.intersect?tp(e,a,s,r,i):np(e,a,s,!1,r,i);if(A.length>0){const l=A[0].datasetIndex,c=e.getDatasetMeta(l).data;A=[];for(let u=0;u<c.length;++u)A.push({element:c[u],datasetIndex:l,index:u})}return A},point(e,t,n,r){const a=Ls(t,e),s=n.axis||"xy",i=n.includeInvisible||!1;return tp(e,a,s,r,i)},nearest(e,t,n,r){const a=Ls(t,e),s=n.axis||"xy",i=n.includeInvisible||!1;return np(e,a,s,n.intersect,r,i)},x(e,t,n,r){const a=Ls(t,e);return qy(e,a,"x",n.intersect,r)},y(e,t,n,r){const a=Ls(t,e);return qy(e,a,"y",n.intersect,r)}}};const jC=["left","top","right","bottom"];function zo(e,t){return e.filter(n=>n.pos===t)}function Xy(e,t){return e.filter(n=>jC.indexOf(n.pos)===-1&&n.box.axis===t)}function Wo(e,t){return e.sort((n,r)=>{const a=t?r:n,s=t?n:r;return a.weight===s.weight?a.index-s.index:a.weight-s.weight})}function B9(e){const t=[];let n,r,a,s,i,A;for(n=0,r=(e||[]).length;n<r;++n)a=e[n],{position:s,options:{stack:i,stackWeight:A=1}}=a,t.push({index:n,box:a,pos:s,horizontal:a.isHorizontal(),weight:a.weight,stack:i&&s+i,stackWeight:A});return t}function w9(e){const t={};for(const n of e){const{stack:r,pos:a,stackWeight:s}=n;if(!r||!jC.includes(a))continue;const i=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});i.count++,i.weight+=s}return t}function b9(e,t){const n=w9(e),{vBoxMaxWidth:r,hBoxMaxHeight:a}=t;let s,i,A;for(s=0,i=e.length;s<i;++s){A=e[s];const{fullSize:l}=A.box,c=n[A.stack],u=c&&A.stackWeight/c.weight;A.horizontal?(A.width=u?u*r:l&&t.availableWidth,A.height=a):(A.width=r,A.height=u?u*a:l&&t.availableHeight)}return n}function _9(e){const t=B9(e),n=Wo(t.filter(c=>c.box.fullSize),!0),r=Wo(zo(t,"left"),!0),a=Wo(zo(t,"right")),s=Wo(zo(t,"top"),!0),i=Wo(zo(t,"bottom")),A=Xy(t,"x"),l=Xy(t,"y");return{fullSize:n,leftAndTop:r.concat(s),rightAndBottom:a.concat(l).concat(i).concat(A),chartArea:zo(t,"chartArea"),vertical:r.concat(a).concat(l),horizontal:s.concat(i).concat(A)}}function Jy(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function YC(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function C9(e,t,n,r){const{pos:a,box:s}=n,i=e.maxPadding;if(!ke(a)){n.size&&(e[a]-=n.size);const d=r[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?s.height:s.width),n.size=d.size/d.count,e[a]+=n.size}s.getPadding&&YC(i,s.getPadding());const A=Math.max(0,t.outerWidth-Jy(i,e,"left","right")),l=Math.max(0,t.outerHeight-Jy(i,e,"top","bottom")),c=A!==e.w,u=l!==e.h;return e.w=A,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function k9(e){const t=e.maxPadding;function n(r){const a=Math.max(t[r]-e[r],0);return e[r]+=a,a}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function E9(e,t){const n=t.maxPadding;function r(a){const s={left:0,top:0,right:0,bottom:0};return a.forEach(i=>{s[i]=Math.max(t[i],n[i])}),s}return r(e?["left","right"]:["top","bottom"])}function iA(e,t,n,r){const a=[];let s,i,A,l,c,u;for(s=0,i=e.length,c=0;s<i;++s){A=e[s],l=A.box,l.update(A.width||t.w,A.height||t.h,E9(A.horizontal,t));const{same:d,other:f}=C9(t,n,A,r);c|=d&&a.length,u=u||f,l.fullSize||a.push(A)}return c&&iA(a,t,n,r)||u}function hc(e,t,n,r,a){e.top=n,e.left=t,e.right=t+r,e.bottom=n+a,e.width=r,e.height=a}function Zy(e,t,n,r){const a=n.padding;let{x:s,y:i}=t;for(const A of e){const l=A.box,c=r[A.stack]||{count:1,placed:0,weight:1},u=A.stackWeight/c.weight||1;if(A.horizontal){const d=t.w*u,f=c.size||l.height;Tn(c.start)&&(i=c.start),l.fullSize?hc(l,a.left,i,n.outerWidth-a.right-a.left,f):hc(l,t.left+c.placed,i,d,f),c.start=i,c.placed+=d,i=l.bottom}else{const d=t.h*u,f=c.size||l.width;Tn(c.start)&&(s=c.start),l.fullSize?hc(l,s,a.top,f,n.outerHeight-a.bottom-a.top):hc(l,s,t.top+c.placed,f,d),c.start=s,c.placed+=d,s=l.right}}t.x=s,t.y=i}var on={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const a=Ot(e.options.layout.padding),s=Math.max(t-a.width,0),i=Math.max(n-a.height,0),A=_9(e.boxes),l=A.vertical,c=A.horizontal;je(e.boxes,m=>{typeof m.beforeLayout=="function"&&m.beforeLayout()});const u=l.reduce((m,y)=>y.box.options&&y.box.options.display===!1?m:m+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:a,availableWidth:s,availableHeight:i,vBoxMaxWidth:s/2/u,hBoxMaxHeight:i/2}),f=Object.assign({},a);YC(f,Ot(r));const p=Object.assign({maxPadding:f,w:s,h:i,x:a.left,y:a.top},a),h=b9(l.concat(c),d);iA(A.fullSize,p,d,h),iA(l,p,d,h),iA(c,p,d,h)&&iA(l,p,d,h),k9(p),Zy(A.leftAndTop,p,d,h),p.x+=p.w,p.y+=p.h,Zy(A.rightAndBottom,p,d,h),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},je(A.chartArea,m=>{const y=m.box;Object.assign(y,e.chartArea),y.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class qC{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,a){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,a?Math.floor(n/a):r)}}isAttached(t){return!0}updateConfig(t){}}class S9 extends qC{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const du="$chartjs",x9={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},eB=e=>e===null||e==="";function F9(e,t){const n=e.style,r=e.getAttribute("height"),a=e.getAttribute("width");if(e[du]={initial:{height:r,width:a,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",eB(a)){const s=My(e,"width");s!==void 0&&(e.width=s)}if(eB(r))if(e.style.height==="")e.height=e.width/(t||2);else{const s=My(e,"height");s!==void 0&&(e.height=s)}return e}const XC=I7?{passive:!0}:!1;function T9(e,t,n){e&&e.addEventListener(t,n,XC)}function I9(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,XC)}function D9(e,t){const n=x9[e.type]||e.type,{x:r,y:a}=Ls(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:a!==void 0?a:null}}function Hu(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function U9(e,t,n){const r=e.canvas,a=new MutationObserver(s=>{let i=!1;for(const A of s)i=i||Hu(A.addedNodes,r),i=i&&!Hu(A.removedNodes,r);i&&n()});return a.observe(document,{childList:!0,subtree:!0}),a}function O9(e,t,n){const r=e.canvas,a=new MutationObserver(s=>{let i=!1;for(const A of s)i=i||Hu(A.removedNodes,r),i=i&&!Hu(A.addedNodes,r);i&&n()});return a.observe(document,{childList:!0,subtree:!0}),a}const sl=new Map;let tB=0;function JC(){const e=window.devicePixelRatio;e!==tB&&(tB=e,sl.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function L9(e,t){sl.size||window.addEventListener("resize",JC),sl.set(e,t)}function Q9(e){sl.delete(e),sl.size||window.removeEventListener("resize",JC)}function M9(e,t,n){const r=e.canvas,a=r&&Kg(r);if(!a)return;const s=SC((A,l)=>{const c=a.clientWidth;n(A,l),c<a.clientWidth&&n()},window),i=new ResizeObserver(A=>{const l=A[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||s(c,u)});return i.observe(a),L9(e,s),i}function rp(e,t,n){n&&n.disconnect(),t==="resize"&&Q9(e)}function N9(e,t,n){const r=e.canvas,a=SC(s=>{e.ctx!==null&&n(D9(s,e))},e);return T9(r,t,a),a}class P9 extends qC{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(F9(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[du])return!1;const r=n[du].initial;["height","width"].forEach(s=>{const i=r[s];Ce(i)?n.removeAttribute(s):n.setAttribute(s,i)});const a=r.style||{};return Object.keys(a).forEach(s=>{n.style[s]=a[s]}),n.width=n.width,delete n[du],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const a=t.$proxies||(t.$proxies={}),i={attach:U9,detach:O9,resize:M9}[n]||N9;a[n]=i(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),a=r[n];if(!a)return;({attach:rp,detach:rp,resize:rp}[n]||I9)(t,n,a),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,a){return T7(t,n,r,a)}isAttached(t){const n=t&&Kg(t);return!!(n&&n.isConnected)}}function R9(e){return!$g()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?S9:P9}var Zc;let gn=(Zc=class{constructor(){G(this,"x");G(this,"y");G(this,"active",!1);G(this,"options");G(this,"$animations")}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return ps(this.x)&&ps(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const a={};return t.forEach(s=>{a[s]=r[s]&&r[s].active()?r[s]._to:this[s]}),a}},G(Zc,"defaults",{}),G(Zc,"defaultRoutes"),Zc);function H9(e,t){const n=e.options.ticks,r=V9(e),a=Math.min(n.maxTicksLimit||r,r),s=n.major.enabled?K9(t):[],i=s.length,A=s[0],l=s[i-1],c=[];if(i>a)return z9(t,c,s,i/a),c;const u=$9(s,t,a);if(i>0){let d,f;const p=i>1?Math.round((l-A)/(i-1)):null;for(mc(t,c,u,Ce(p)?0:A-p,A),d=0,f=i-1;d<f;d++)mc(t,c,u,s[d],s[d+1]);return mc(t,c,u,l,Ce(p)?t.length:l+p),c}return mc(t,c,u),c}function V9(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),a=e._maxLength/n;return Math.floor(Math.min(r,a))}function $9(e,t,n){const r=W9(e),a=t.length/n;if(!r)return Math.max(a,1);const s=UP(r);for(let i=0,A=s.length-1;i<A;i++){const l=s[i];if(l>a)return l}return Math.max(a,1)}function K9(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function z9(e,t,n,r){let a=0,s=n[0],i;for(r=Math.ceil(r),i=0;i<e.length;i++)i===s&&(t.push(e[i]),a++,s=n[a*r])}function mc(e,t,n,r,a){const s=pe(r,0),i=Math.min(pe(a,e.length),e.length);let A=0,l,c,u;for(n=Math.ceil(n),a&&(l=a-r,n=l/Math.floor(l/n)),u=s;u<0;)A++,u=Math.round(s+A*n);for(c=Math.max(s,0);c<i;c++)c===u&&(t.push(e[c]),A++,u=Math.round(s+A*n))}function W9(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}const G9=e=>e==="left"?"right":e==="right"?"left":e,nB=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,rB=(e,t)=>Math.min(t||e,e);function aB(e,t){const n=[],r=e.length/t,a=e.length;let s=0;for(;s<a;s+=r)n.push(e[Math.floor(s)]);return n}function j9(e,t,n){const r=e.ticks.length,a=Math.min(t,r-1),s=e._startPixel,i=e._endPixel,A=1e-6;let l=e.getPixelForTick(a),c;if(!(n&&(r===1?c=Math.max(l-s,i-l):t===0?c=(e.getPixelForTick(1)-l)/2:c=(l-e.getPixelForTick(a-1))/2,l+=a<t?c:-c,l<s-A||l>i+A)))return l}function Y9(e,t){je(e,n=>{const r=n.gc,a=r.length/2;let s;if(a>t){for(s=0;s<a;++s)delete n.data[r[s]];r.splice(0,a)}})}function Go(e){return e.drawTicks?e.tickLength:0}function sB(e,t){if(!e.display)return 0;const n=yt(e.font,t),r=Ot(e.padding);return(Ve(e.text)?e.text.length:1)*n.lineHeight+r.height}function q9(e,t){return _s(e,{scale:t,type:"scale"})}function X9(e,t,n){return _s(e,{tick:n,index:t,type:"tick"})}function J9(e,t,n){let r=Mg(e);return(n&&t!=="right"||!n&&t==="right")&&(r=G9(r)),r}function Z9(e,t,n,r){const{top:a,left:s,bottom:i,right:A,chart:l}=e,{chartArea:c,scales:u}=l;let d=0,f,p,h;const m=i-a,y=A-s;if(e.isHorizontal()){if(p=tn(r,s,A),ke(n)){const g=Object.keys(n)[0],w=n[g];h=u[g].getPixelForValue(w)+m-t}else n==="center"?h=(c.bottom+c.top)/2+m-t:h=nB(e,n,t);f=A-s}else{if(ke(n)){const g=Object.keys(n)[0],w=n[g];p=u[g].getPixelForValue(w)-y+t}else n==="center"?p=(c.left+c.right)/2-y+t:p=nB(e,n,t);h=tn(r,i,a),d=n==="left"?-dt:dt}return{titleX:p,titleY:h,maxWidth:f,rotation:d}}class mi extends gn{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,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:r,_suggestedMax:a}=this;return t=Dn(t,Number.POSITIVE_INFINITY),n=Dn(n,Number.NEGATIVE_INFINITY),r=Dn(r,Number.POSITIVE_INFINITY),a=Dn(a,Number.NEGATIVE_INFINITY),{min:Dn(t,r),max:Dn(n,a),minDefined:vt(t),maxDefined:vt(n)}}getMinMax(t){let{min:n,max:r,minDefined:a,maxDefined:s}=this.getUserBounds(),i;if(a&&s)return{min:n,max:r};const A=this.getMatchingVisibleMetas();for(let l=0,c=A.length;l<c;++l)i=A[l].controller.getMinMax(this,t),a||(n=Math.min(n,i.min)),s||(r=Math.max(r,i.max));return n=s&&n>r?r:n,r=a&&n>r?n:r,{min:Dn(n,Dn(r,n)),max:Dn(r,Dn(n,r))}}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(){We(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:a,grace:s,ticks:i}=this.options,A=i.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=A7(this,s,a),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=A<this.ticks.length;this._convertTicksToLabels(l?aB(this.ticks,A):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),i.display&&(i.autoSkip||i.source==="auto")&&(this.ticks=H9(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,t=!t),this._startPixel=n,this._endPixel=r,this._reversePixels=t,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){We(this.options.afterUpdate,[this])}beforeSetDimensions(){We(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(){We(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),We(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){We(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let r,a,s;for(r=0,a=t.length;r<a;r++)s=t[r],s.label=We(n.callback,[s.value,r,t],this)}afterTickToLabelConversion(){We(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){We(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=rB(this.ticks.length,t.ticks.maxTicksLimit),a=n.minRotation||0,s=n.maxRotation;let i=a,A,l,c;if(!this._isVisible()||!n.display||a>=s||r<=1||!this.isHorizontal()){this.labelRotation=a;return}const u=this._getLabelSizes(),d=u.widest.width,f=u.highest.height,p=Wt(this.chart.width-d,0,this.maxWidth);A=t.offset?this.maxWidth/r:p/(r-1),d+6>A&&(A=p/(r-(t.offset?.5:1)),l=this.maxHeight-Go(t.grid)-n.padding-sB(t.title,this.chart.options.font),c=Math.sqrt(d*d+f*f),i=Td(Math.min(Math.asin(Wt((u.highest.height+6)/A,-1,1)),Math.asin(Wt(l/c,-1,1))-Math.asin(Wt(f/c,-1,1)))),i=Math.max(a,Math.min(s,i))),this.labelRotation=i}afterCalculateLabelRotation(){We(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){We(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:a,grid:s}}=this,i=this._isVisible(),A=this.isHorizontal();if(i){const l=sB(a,n.options.font);if(A?(t.width=this.maxWidth,t.height=Go(s)+l):(t.height=this.maxHeight,t.width=Go(s)+l),r.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:f}=this._getLabelSizes(),p=r.padding*2,h=Mt(this.labelRotation),m=Math.cos(h),y=Math.sin(h);if(A){const g=r.mirror?0:y*d.width+m*f.height;t.height=Math.min(this.maxHeight,t.height+g+p)}else{const g=r.mirror?0:m*d.width+y*f.height;t.width=Math.min(this.maxWidth,t.width+g+p)}this._calculatePadding(c,u,y,m)}}this._handleMargins(),A?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,a){const{ticks:{align:s,padding:i},position:A}=this.options,l=this.labelRotation!==0,c=A!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,p=0;l?c?(f=a*t.width,p=r*n.height):(f=r*t.height,p=a*n.width):s==="start"?p=n.width:s==="end"?f=t.width:s!=="inner"&&(f=t.width/2,p=n.width/2),this.paddingLeft=Math.max((f-u+i)*this.width/(this.width-u),0),this.paddingRight=Math.max((p-d+i)*this.width/(this.width-d),0)}else{let u=n.height/2,d=t.height/2;s==="start"?(u=0,d=t.height):s==="end"&&(u=n.height,d=0),this.paddingTop=u+i,this.paddingBottom=d+i}}_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(){We(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n<r;n++)Ce(t[n].label)&&(t.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=aB(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,r){const{ctx:a,_longestTextCache:s}=this,i=[],A=[],l=Math.floor(n/rB(n,r));let c=0,u=0,d,f,p,h,m,y,g,w,B,v,_;for(d=0;d<n;d+=l){if(h=t[d].label,m=this._resolveTickFontOptions(d),a.font=y=m.string,g=s[y]=s[y]||{data:{},gc:[]},w=m.lineHeight,B=v=0,!Ce(h)&&!Ve(h))B=Pu(a,g.data,g.gc,B,h),v=w;else if(Ve(h))for(f=0,p=h.length;f<p;++f)_=h[f],!Ce(_)&&!Ve(_)&&(B=Pu(a,g.data,g.gc,B,_),v+=w);i.push(B),A.push(v),c=Math.max(B,c),u=Math.max(v,u)}Y9(s,n);const b=i.indexOf(c),k=A.indexOf(u),C=E=>({width:i[E]||0,height:A[E]||0});return{first:C(0),last:C(n-1),widest:C(b),highest:C(k),widths:i,heights:A}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return MP(this._alignToPixels?Fs(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const r=n[t];return r.$context||(r.$context=X9(this.getContext(),t,r))}return this.$context||(this.$context=q9(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=Mt(this.labelRotation),r=Math.abs(Math.cos(n)),a=Math.abs(Math.sin(n)),s=this._getLabelSizes(),i=t.autoSkipPadding||0,A=s?s.widest.width+i:0,l=s?s.highest.height+i:0;return this.isHorizontal()?l*r>A*a?A/r:l/a:l*a<A*r?l/r:A/a}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,r=this.chart,a=this.options,{grid:s,position:i,border:A}=a,l=s.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),f=Go(s),p=[],h=A.setContext(this.getContext()),m=h.display?h.width:0,y=m/2,g=function(R){return Fs(r,R,m)};let w,B,v,_,b,k,C,E,D,T,F,U;if(i==="top")w=g(this.bottom),k=this.bottom-f,E=w-y,T=g(t.top)+y,U=t.bottom;else if(i==="bottom")w=g(this.top),T=t.top,U=g(t.bottom)-y,k=w+y,E=this.top+f;else if(i==="left")w=g(this.right),b=this.right-f,C=w-y,D=g(t.left)+y,F=t.right;else if(i==="right")w=g(this.left),D=t.left,F=g(t.right)-y,b=w+y,C=this.left+f;else if(n==="x"){if(i==="center")w=g((t.top+t.bottom)/2+.5);else if(ke(i)){const R=Object.keys(i)[0],$=i[R];w=g(this.chart.scales[R].getPixelForValue($))}T=t.top,U=t.bottom,k=w+y,E=k+f}else if(n==="y"){if(i==="center")w=g((t.left+t.right)/2);else if(ke(i)){const R=Object.keys(i)[0],$=i[R];w=g(this.chart.scales[R].getPixelForValue($))}b=w-y,C=b-f,D=t.left,F=t.right}const W=pe(a.ticks.maxTicksLimit,d),J=Math.max(1,Math.ceil(d/W));for(B=0;B<d;B+=J){const R=this.getContext(B),$=s.setContext(R),de=A.setContext(R),q=$.lineWidth,Ae=$.color,oe=de.dash||[],le=de.dashOffset,ge=$.tickWidth,ie=$.tickColor,Z=$.tickBorderDash||[],M=$.tickBorderDashOffset;v=j9(this,B,l),v!==void 0&&(_=Fs(r,v,q),c?b=C=D=F=_:k=E=T=U=_,p.push({tx1:b,ty1:k,tx2:C,ty2:E,x1:D,y1:T,x2:F,y2:U,width:q,color:Ae,borderDash:oe,borderDashOffset:le,tickWidth:ge,tickColor:ie,tickBorderDash:Z,tickBorderDashOffset:M}))}return this._ticksLength=d,this._borderValue=w,p}_computeLabelItems(t){const n=this.axis,r=this.options,{position:a,ticks:s}=r,i=this.isHorizontal(),A=this.ticks,{align:l,crossAlign:c,padding:u,mirror:d}=s,f=Go(r.grid),p=f+u,h=d?-u:p,m=-Mt(this.labelRotation),y=[];let g,w,B,v,_,b,k,C,E,D,T,F,U="middle";if(a==="top")b=this.bottom-h,k=this._getXAxisLabelAlignment();else if(a==="bottom")b=this.top+h,k=this._getXAxisLabelAlignment();else if(a==="left"){const J=this._getYAxisLabelAlignment(f);k=J.textAlign,_=J.x}else if(a==="right"){const J=this._getYAxisLabelAlignment(f);k=J.textAlign,_=J.x}else if(n==="x"){if(a==="center")b=(t.top+t.bottom)/2+p;else if(ke(a)){const J=Object.keys(a)[0],R=a[J];b=this.chart.scales[J].getPixelForValue(R)+p}k=this._getXAxisLabelAlignment()}else if(n==="y"){if(a==="center")_=(t.left+t.right)/2-p;else if(ke(a)){const J=Object.keys(a)[0],R=a[J];_=this.chart.scales[J].getPixelForValue(R)}k=this._getYAxisLabelAlignment(f).textAlign}n==="y"&&(l==="start"?U="top":l==="end"&&(U="bottom"));const W=this._getLabelSizes();for(g=0,w=A.length;g<w;++g){B=A[g],v=B.label;const J=s.setContext(this.getContext(g));C=this.getPixelForTick(g)+s.labelOffset,E=this._resolveTickFontOptions(g),D=E.lineHeight,T=Ve(v)?v.length:1;const R=T/2,$=J.color,de=J.textStrokeColor,q=J.textStrokeWidth;let Ae=k;i?(_=C,k==="inner"&&(g===w-1?Ae=this.options.reverse?"left":"right":g===0?Ae=this.options.reverse?"right":"left":Ae="center"),a==="top"?c==="near"||m!==0?F=-T*D+D/2:c==="center"?F=-W.highest.height/2-R*D+D:F=-W.highest.height+D/2:c==="near"||m!==0?F=D/2:c==="center"?F=W.highest.height/2-R*D:F=W.highest.height-T*D,d&&(F*=-1),m!==0&&!J.showLabelBackdrop&&(_+=D/2*Math.sin(m))):(b=C,F=(1-T)*D/2);let oe;if(J.showLabelBackdrop){const le=Ot(J.backdropPadding),ge=W.heights[g],ie=W.widths[g];let Z=F-le.top,M=0-le.left;switch(U){case"middle":Z-=ge/2;break;case"bottom":Z-=ge;break}switch(k){case"center":M-=ie/2;break;case"right":M-=ie;break;case"inner":g===w-1?M-=ie:g>0&&(M-=ie/2);break}oe={left:M,top:Z,width:ie+le.width,height:ge+le.height,color:J.backdropColor}}y.push({label:v,font:E,textOffset:F,options:{rotation:m,color:$,strokeColor:de,strokeWidth:q,textAlign:Ae,textBaseline:U,translation:[_,b],backdrop:oe}})}return y}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-Mt(this.labelRotation))return t==="top"?"left":"right";let a="center";return n.align==="start"?a="left":n.align==="end"?a="right":n.align==="inner"&&(a="inner"),a}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:a,padding:s}}=this.options,i=this._getLabelSizes(),A=t+s,l=i.widest.width;let c,u;return n==="left"?a?(u=this.right+s,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-A,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?a?(u=this.left+s,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+A,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:a,width:s,height:i}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,a,s,i),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const a=this.ticks.findIndex(s=>s.value===t);return a>=0?n.setContext(this.getContext(a)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,a=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let s,i;const A=(l,c,u)=>{!u.width||!u.color||(r.save(),r.lineWidth=u.width,r.strokeStyle=u.color,r.setLineDash(u.borderDash||[]),r.lineDashOffset=u.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(s=0,i=a.length;s<i;++s){const l=a[s];n.drawOnChartArea&&A({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&A({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:r,grid:a}}=this,s=r.setContext(this.getContext()),i=r.display?s.width:0;if(!i)return;const A=a.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,u,d,f;this.isHorizontal()?(c=Fs(t,this.left,i)-i/2,u=Fs(t,this.right,A)+A/2,d=f=l):(d=Fs(t,this.top,i)-i/2,f=Fs(t,this.bottom,A)+A/2,c=u=l),n.save(),n.lineWidth=s.width,n.strokeStyle=s.color,n.beginPath(),n.moveTo(c,d),n.lineTo(u,f),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const r=this.ctx,a=this._computeLabelArea();a&&Ol(r,a);const s=this.getLabelItems(t);for(const i of s){const A=i.options,l=i.font,c=i.label,u=i.textOffset;Ai(r,c,0,u,l,A)}a&&Ll(r)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:a}}=this;if(!r.display)return;const s=yt(r.font),i=Ot(r.padding),A=r.align;let l=s.lineHeight/2;n==="bottom"||n==="center"||ke(n)?(l+=i.bottom,Ve(r.text)&&(l+=s.lineHeight*(r.text.length-1))):l+=i.top;const{titleX:c,titleY:u,maxWidth:d,rotation:f}=Z9(this,l,n,A);Ai(t,r.text,0,0,s,{color:r.color,maxWidth:d,rotation:f,textAlign:J9(A,n,a),textBaseline:"middle",translation:[c,u]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,r=pe(t.grid&&t.grid.z,-1),a=pe(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==mi.prototype.draw?[{z:n,draw:s=>{this.draw(s)}}]:[{z:r,draw:s=>{this.drawBackground(),this.drawGrid(s),this.drawTitle()}},{z:a,draw:()=>{this.drawBorder()}},{z:n,draw:s=>{this.drawLabels(s)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",a=[];let s,i;for(s=0,i=n.length;s<i;++s){const A=n[s];A[r]===this.id&&(!t||A.type===t)&&a.push(A)}return a}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return yt(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class gc{constructor(t,n,r){this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let r;nR(n)&&(r=this.register(n));const a=this.items,s=t.id,i=this.scope+"."+s;if(!s)throw new Error("class does not have id: "+t);return s in a||(a[s]=t,eR(t,i,r),this.override&&ot.override(t.id,t.overrides)),i}get(t){return this.items[t]}unregister(t){const n=this.items,r=t.id,a=this.scope;r in n&&delete n[r],a&&r in ot[a]&&(delete ot[a][r],this.override&&delete oi[r])}}function eR(e,t,n){const r=Qr(Object.create(null),[n?ot.get(n):{},ot.get(t),e.defaults]);ot.set(t,r),e.defaultRoutes&&tR(t,e.defaultRoutes),e.descriptors&&ot.describe(t,e.descriptors)}function tR(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),a=r.pop(),s=[e].concat(r).join("."),i=t[n].split("."),A=i.pop(),l=i.join(".");ot.route(s,a,l,A)})}function nR(e){return"id"in e&&"defaults"in e}class rR{constructor(){this.controllers=new gc(ur,"datasets",!0),this.elements=new gc(gn,"elements"),this.plugins=new gc(Object,"plugins"),this.scales=new gc(mi,"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,n,r){[...n].forEach(a=>{const s=r||this._getRegistryForType(a);r||s.isForType(a)||s===this.plugins&&a.id?this._exec(t,s,a):je(a,i=>{const A=r||this._getRegistryForType(i);this._exec(t,A,i)})})}_exec(t,n,r){const a=Og(t);We(r["before"+a],[],r),n[t](r),We(r["after"+a],[],r)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(t))return r}return this.plugins}_get(t,n,r){const a=n.get(t);if(a===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return a}}var _r=new rR;class aR{constructor(){this._init=void 0}notify(t,n,r,a){if(n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install")),this._init===void 0)return;const s=a?this._descriptors(t).filter(a):this._descriptors(t),i=this._notify(s,t,n,r);return n==="afterDestroy"&&(this._notify(s,t,"stop"),this._notify(this._init,t,"uninstall"),this._init=void 0),i}_notify(t,n,r,a){a=a||{};for(const s of t){const i=s.plugin,A=i[r],l=[n,a,s.options];if(We(A,l,i)===!1&&a.cancelable)return!1}return!0}invalidate(){Ce(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const r=t&&t.config,a=pe(r.options&&r.options.plugins,{}),s=sR(r);return a===!1&&!n?[]:oR(t,s,a,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,a=(s,i)=>s.filter(A=>!i.some(l=>A.plugin.id===l.plugin.id));this._notify(a(n,r),t,"stop"),this._notify(a(r,n),t,"start")}}function sR(e){const t={},n=[],r=Object.keys(_r.plugins.items);for(let s=0;s<r.length;s++)n.push(_r.getPlugin(r[s]));const a=e.plugins||[];for(let s=0;s<a.length;s++){const i=a[s];n.indexOf(i)===-1&&(n.push(i),t[i.id]=!0)}return{plugins:n,localIds:t}}function iR(e,t){return!t&&e===!1?null:e===!0?{}:e}function oR(e,{plugins:t,localIds:n},r,a){const s=[],i=e.getContext();for(const A of t){const l=A.id,c=iR(r[l],a);c!==null&&s.push({plugin:A,options:AR(e.config,{plugin:A,local:n[l]},c,i)})}return s}function AR(e,{plugin:t,local:n},r,a){const s=e.pluginScopeKeys(t),i=e.getOptionScopes(r,s);return n&&t.defaults&&i.push(t.defaults),e.createResolver(i,a,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Fh(e,t){const n=ot.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function lR(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function cR(e,t){return e===t?"_index_":"_value_"}function iB(e){if(e==="x"||e==="y"||e==="r")return e}function uR(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function Th(e,...t){if(iB(e))return e;for(const n of t){const r=n.axis||uR(n.position)||e.length>1&&iB(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function oB(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function dR(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return oB(e,"x",n[0])||oB(e,"y",n[0])}return{}}function fR(e,t){const n=oi[e.type]||{scales:{}},r=t.scales||{},a=Fh(e.type,t),s=Object.create(null);return Object.keys(r).forEach(i=>{const A=r[i];if(!ke(A))return console.error(`Invalid scale configuration for scale: ${i}`);if(A._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${i}`);const l=Th(i,A,dR(i,e),ot.scales[A.type]),c=cR(l,a),u=n.scales||{};s[i]=CA(Object.create(null),[{axis:l},A,u[l],u[c]])}),e.data.datasets.forEach(i=>{const A=i.type||e.type,l=i.indexAxis||Fh(A,t),u=(oi[A]||{}).scales||{};Object.keys(u).forEach(d=>{const f=lR(d,l),p=i[f+"AxisID"]||f;s[p]=s[p]||Object.create(null),CA(s[p],[{axis:f},r[p],u[d]])})}),Object.keys(s).forEach(i=>{const A=s[i];CA(A,[ot.scales[A.type],ot.scale])}),s}function ZC(e){const t=e.options||(e.options={});t.plugins=pe(t.plugins,{}),t.scales=fR(e,t)}function ek(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function pR(e){return e=e||{},e.data=ek(e.data),ZC(e),e}const AB=new Map,tk=new Set;function vc(e,t){let n=AB.get(e);return n||(n=t(),AB.set(e,n),tk.add(n)),n}const jo=(e,t,n)=>{const r=fs(t,n);r!==void 0&&e.add(r)};class hR{constructor(t){this._config=pR(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=ek(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(),ZC(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return vc(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return vc(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return vc(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return vc(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let a=r.get(t);return(!a||n)&&(a=new Map,r.set(t,a)),a}getOptionScopes(t,n,r){const{options:a,type:s}=this,i=this._cachedScopes(t,r),A=i.get(n);if(A)return A;const l=new Set;n.forEach(u=>{t&&(l.add(t),u.forEach(d=>jo(l,t,d))),u.forEach(d=>jo(l,a,d)),u.forEach(d=>jo(l,oi[s]||{},d)),u.forEach(d=>jo(l,ot,d)),u.forEach(d=>jo(l,Eh,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),tk.has(n)&&i.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,oi[n]||{},ot.datasets[n]||{},{type:n},ot,Eh]}resolveNamedOptions(t,n,r,a=[""]){const s={$shared:!0},{resolver:i,subPrefixes:A}=lB(this._resolverCache,t,a);let l=i;if(gR(i,n)){s.$shared=!1,r=Fn(r)?r():r;const c=this.createResolver(t,r,A);l=vo(i,r,c)}for(const c of n)s[c]=l[c];return s}createResolver(t,n,r=[""],a){const{resolver:s}=lB(this._resolverCache,t,r);return ke(n)?vo(s,n,void 0,a):s}}function lB(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const a=n.join();let s=r.get(a);return s||(s={resolver:Rg(t,n),subPrefixes:n.filter(A=>!A.toLowerCase().includes("hover"))},r.set(a,s)),s}const mR=e=>ke(e)&&Object.getOwnPropertyNames(e).some(t=>Fn(e[t]));function gR(e,t){const{isScriptable:n,isIndexable:r}=UC(e);for(const a of t){const s=n(a),i=r(a),A=(i||s)&&e[a];if(s&&(Fn(A)||mR(A))||i&&Ve(A))return!0}return!1}var vR="4.5.1";const yR=["top","bottom","left","right","chartArea"];function cB(e,t){return e==="top"||e==="bottom"||yR.indexOf(e)===-1&&t==="x"}function uB(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function dB(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),We(n&&n.onComplete,[e],t)}function BR(e){const t=e.chart,n=t.options.animation;We(n&&n.onProgress,[e],t)}function nk(e){return $g()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const fu={},fB=e=>{const t=nk(e);return Object.values(fu).filter(n=>n.canvas===t).pop()};function wR(e,t,n){const r=Object.keys(e);for(const a of r){const s=+a;if(s>=t){const i=e[a];delete e[a],(n>0||s>t)&&(e[s+n]=i)}}}function bR(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}class He{static register(...t){_r.add(...t),pB()}static unregister(...t){_r.remove(...t),pB()}constructor(t,n){const r=this.config=new hR(n),a=nk(t),s=fB(a);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const i=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||R9(a)),this.platform.updateConfig(r);const A=this.platform.acquireContext(a,i.aspectRatio),l=A&&A.canvas,c=l&&l.height,u=l&&l.width;if(this.id=kP(),this.ctx=A,this.canvas=l,this.width=u,this.height=c,this._options=i,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 aR,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=HP(d=>this.update(d),i.resizeDelay||0),this._dataChanges=[],fu[this.id]=this,!A||!l){console.error("Failed to create chart: can't acquire context from the given item");return}na.listen(this,"complete",dB),na.listen(this,"progress",BR),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:a,_aspectRatio:s}=this;return Ce(t)?n&&s?s:a?r/a: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 _r}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Qy(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Uy(this.canvas,this.ctx),this}stop(){return na.stop(this),this}resize(t,n){na.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,a=this.canvas,s=r.maintainAspectRatio&&this.aspectRatio,i=this.platform.getMaximumSize(a,t,n,s),A=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=i.width,this.height=i.height,this._aspectRatio=this.aspectRatio,Qy(this,A,!0)&&(this.notifyPlugins("resize",{size:i}),We(r.onResize,[this,i],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};je(n,(r,a)=>{r.id=a})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,a=Object.keys(r).reduce((i,A)=>(i[A]=!1,i),{});let s=[];n&&(s=s.concat(Object.keys(n).map(i=>{const A=n[i],l=Th(i,A),c=l==="r",u=l==="x";return{options:A,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),je(s,i=>{const A=i.options,l=A.id,c=Th(l,A),u=pe(A.type,i.dtype);(A.position===void 0||cB(A.position,c)!==cB(i.dposition))&&(A.position=i.dposition),a[l]=!0;let d=null;if(l in r&&r[l].type===u)d=r[l];else{const f=_r.getScale(u);d=new f({id:l,type:u,ctx:this.ctx,chart:this}),r[d.id]=d}d.init(A,t)}),je(a,(i,A)=>{i||delete r[A]}),je(r,i=>{on.configure(this,i,i.options),on.addBox(this,i)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((a,s)=>a.index-s.index),r>n){for(let a=n;a<r;++a)this._destroyDatasetMeta(a);t.splice(n,r-n)}this._sortedMetasets=t.slice(0).sort(uB("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((r,a)=>{n.filter(s=>s===r._dataset).length===0&&this._destroyDatasetMeta(a)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,a;for(this._removeUnreferencedMetasets(),r=0,a=n.length;r<a;r++){const s=n[r];let i=this.getDatasetMeta(r);const A=s.type||this.config.type;if(i.type&&i.type!==A&&(this._destroyDatasetMeta(r),i=this.getDatasetMeta(r)),i.type=A,i.indexAxis=s.indexAxis||Fh(A,this.options),i.order=s.order||0,i.index=r,i.label=""+s.label,i.visible=this.isDatasetVisible(r),i.controller)i.controller.updateIndex(r),i.controller.linkScales();else{const l=_r.getController(A),{datasetElementType:c,dataElementType:u}=ot.datasets[A];Object.assign(l,{dataElementType:_r.getElement(u),datasetElementType:c&&_r.getElement(c)}),i.controller=new l(this,r),t.push(i.controller)}}return this._updateMetasets(),t}_resetElements(){je(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),a=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let i=0;for(let c=0,u=this.data.datasets.length;c<u;c++){const{controller:d}=this.getDatasetMeta(c),f=!a&&s.indexOf(d)===-1;d.buildOrUpdateElements(f),i=Math.max(+d.getMaxOverflow(),i)}i=this._minPadding=r.layout.autoPadding?i:0,this._updateLayout(i),a||je(s,c=>{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(uB("z","_idx"));const{_active:A,_lastEvent:l}=this;l?this._eventHandler(l,!0):A.length&&this._updateHoverStyles(A,A,!0),this.render()}_updateScales(){je(this.scales,t=>{on.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!ky(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:a,count:s}of n){const i=r==="_removeElements"?-s:s;wR(t,a,i)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=s=>new Set(t.filter(i=>i[0]===s).map((i,A)=>A+","+i.splice(1).join(","))),a=r(0);for(let s=1;s<n;s++)if(!ky(a,r(s)))return;return Array.from(a).map(s=>s.split(",")).map(s=>({method:s[1],start:+s[2],count:+s[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;on.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],je(this.boxes,a=>{r&&a.position==="chartArea"||(a.configure&&a.configure(),this._layers.push(...a._layers()))},this),this._layers.forEach((a,s)=>{a._idx=s}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,Fn(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const r=this.getDatasetMeta(t),a={meta:r,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",a)!==!1&&(r.controller._update(n),a.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",a))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(na.has(this)?this.attached&&!na.running(this)&&na.start(this):(this.draw(),dB({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:r,height:a}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,a)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,r=[];let a,s;for(a=0,s=n.length;a<s;++a){const i=n[a];(!t||i.visible)&&r.push(i)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r={meta:t,index:t.index,cancelable:!0},a=KC(this,t);this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(a&&Ol(n,a),t.controller.draw(),a&&Ll(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return ca(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,a){const s=y9.modes[n];return typeof s=="function"?s(this,t,r,a):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let a=r.filter(s=>s&&s._dataset===n).pop();return a||(a={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(a)),a}getContext(){return this.$context||(this.$context=_s(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const a=r?"show":"hide",s=this.getDatasetMeta(t),i=s.controller._resolveAnimations(void 0,a);Tn(n)?(s.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),i.update(s,{visible:r}),this.update(A=>A.datasetIndex===t?a:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),na.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Uy(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete fu[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,n=this.platform,r=(s,i)=>{n.addEventListener(this,s,i),t[s]=i},a=(s,i,A)=>{s.offsetX=i,s.offsetY=A,this._eventHandler(s)};je(this.options.events,s=>r(s,a))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),t[l]=c},a=(l,c)=>{t[l]&&(n.removeEventListener(this,l,c),delete t[l])},s=(l,c)=>{this.canvas&&this.resize(l,c)};let i;const A=()=>{a("attach",A),this.attached=!0,this.resize(),r("resize",s),r("detach",i)};i=()=>{this.attached=!1,a("resize",s),this._stop(),this._resize(0,0),r("attach",A)},n.isAttached(this.canvas)?A():i()}unbindEvents(){je(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},je(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const a=r?"set":"remove";let s,i,A,l;for(n==="dataset"&&(s=this.getDatasetMeta(t[0].datasetIndex),s.controller["_"+a+"DatasetHoverStyle"]()),A=0,l=t.length;A<l;++A){i=t[A];const c=i&&this.getDatasetMeta(i.datasetIndex).controller;c&&c[a+"HoverStyle"](i.element,i.datasetIndex,i.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],r=t.map(({datasetIndex:s,index:i})=>{const A=this.getDatasetMeta(s);if(!A)throw new Error("No dataset found at index "+s);return{datasetIndex:s,element:A.data[i],index:i}});!Lu(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const a=this.options.hover,s=(l,c)=>l.filter(u=>!c.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),i=s(n,t),A=r?t:s(t,n);i.length&&this.updateHoverStyle(i,a.mode,!1),A.length&&a.mode&&this.updateHoverStyle(A,a.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},a=i=>(i.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,a)===!1)return;const s=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,a),(s||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:a=[],options:s}=this,i=n,A=this._getActiveElements(t,a,r,i),l=IP(t),c=bR(t,this._lastEvent,r,l);r&&(this._lastEvent=null,We(s.onHover,[t,A,this],this),l&&We(s.onClick,[t,A,this],this));const u=!Lu(A,a);return(u||n)&&(this._active=A,this._updateHoverStyles(A,a,n)),this._lastEvent=c,u}_getActiveElements(t,n,r,a){if(t.type==="mouseout")return[];if(!r)return n;const s=this.options.hover;return this.getElementsAtEventForMode(t,s.mode,s,a)}}G(He,"defaults",ot),G(He,"instances",fu),G(He,"overrides",oi),G(He,"registry",_r),G(He,"version",vR),G(He,"getChart",fB);function pB(){return je(He.instances,e=>e._plugins.invalidate())}function _R(e,t,n){const{startAngle:r,x:a,y:s,outerRadius:i,innerRadius:A,options:l}=t,{borderWidth:c,borderJoinStyle:u}=l,d=Math.min(c/i,rn(r-n));if(e.beginPath(),e.arc(a,s,i-c/2,r+d/2,n-d/2),A>0){const f=Math.min(c/A,rn(r-n));e.arc(a,s,A+c/2,n-f/2,r+f/2,!0)}else{const f=Math.min(c/2,i*rn(r-n));if(u==="round")e.arc(a,s,f,n-be/2,r+be/2,!0);else if(u==="bevel"){const p=2*f*f,h=-p*Math.cos(n+be/2)+a,m=-p*Math.sin(n+be/2)+s,y=p*Math.cos(r+be/2)+a,g=p*Math.sin(r+be/2)+s;e.lineTo(h,m),e.lineTo(y,g)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip("evenodd")}function CR(e,t,n){const{startAngle:r,pixelMargin:a,x:s,y:i,outerRadius:A,innerRadius:l}=t;let c=a/A;e.beginPath(),e.arc(s,i,A,r-c,n+c),l>a?(c=a/l,e.arc(s,i,l,n+c,r-c,!0)):e.arc(s,i,a,n+dt,r-dt),e.closePath(),e.clip()}function kR(e){return Pg(e,["outerStart","outerEnd","innerStart","innerEnd"])}function ER(e,t,n,r){const a=kR(e.options.borderRadius),s=(n-t)/2,i=Math.min(s,r*t/2),A=l=>{const c=(n-Math.min(s,l))*r/2;return Wt(l,0,Math.min(s,c))};return{outerStart:A(a.outerStart),outerEnd:A(a.outerEnd),innerStart:Wt(a.innerStart,0,i),innerEnd:Wt(a.innerEnd,0,i)}}function Fi(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function Vu(e,t,n,r,a,s){const{x:i,y:A,startAngle:l,pixelMargin:c,innerRadius:u}=t,d=Math.max(t.outerRadius+r+n-c,0),f=u>0?u+r+n+c:0;let p=0;const h=a-l;if(r){const J=u>0?u-r:0,R=d>0?d-r:0,$=(J+R)/2,de=$!==0?h*$/($+r):h;p=(h-de)/2}const m=Math.max(.001,h*d-n/be)/d,y=(h-m)/2,g=l+y+p,w=a-y-p,{outerStart:B,outerEnd:v,innerStart:_,innerEnd:b}=ER(t,f,d,w-g),k=d-B,C=d-v,E=g+B/k,D=w-v/C,T=f+_,F=f+b,U=g+_/T,W=w-b/F;if(e.beginPath(),s){const J=(E+D)/2;if(e.arc(i,A,d,E,J),e.arc(i,A,d,J,D),v>0){const q=Fi(C,D,i,A);e.arc(q.x,q.y,v,D,w+dt)}const R=Fi(F,w,i,A);if(e.lineTo(R.x,R.y),b>0){const q=Fi(F,W,i,A);e.arc(q.x,q.y,b,w+dt,W+Math.PI)}const $=(w-b/f+(g+_/f))/2;if(e.arc(i,A,f,w-b/f,$,!0),e.arc(i,A,f,$,g+_/f,!0),_>0){const q=Fi(T,U,i,A);e.arc(q.x,q.y,_,U+Math.PI,g-dt)}const de=Fi(k,g,i,A);if(e.lineTo(de.x,de.y),B>0){const q=Fi(k,E,i,A);e.arc(q.x,q.y,B,g-dt,E)}}else{e.moveTo(i,A);const J=Math.cos(E)*d+i,R=Math.sin(E)*d+A;e.lineTo(J,R);const $=Math.cos(D)*d+i,de=Math.sin(D)*d+A;e.lineTo($,de)}e.closePath()}function SR(e,t,n,r,a){const{fullCircles:s,startAngle:i,circumference:A}=t;let l=t.endAngle;if(s){Vu(e,t,n,r,l,a);for(let c=0;c<s;++c)e.fill();isNaN(A)||(l=i+(A%it||it))}return Vu(e,t,n,r,l,a),e.fill(),l}function xR(e,t,n,r,a){const{fullCircles:s,startAngle:i,circumference:A,options:l}=t,{borderWidth:c,borderJoinStyle:u,borderDash:d,borderDashOffset:f,borderRadius:p}=l,h=l.borderAlign==="inner";if(!c)return;e.setLineDash(d||[]),e.lineDashOffset=f,h?(e.lineWidth=c*2,e.lineJoin=u||"round"):(e.lineWidth=c,e.lineJoin=u||"bevel");let m=t.endAngle;if(s){Vu(e,t,n,r,m,a);for(let y=0;y<s;++y)e.stroke();isNaN(A)||(m=i+(A%it||it))}h&&CR(e,t,m),l.selfJoin&&m-i>=be&&p===0&&u!=="miter"&&_R(e,t,m),s||(Vu(e,t,n,r,m,a),e.stroke())}class zi extends gn{constructor(n){super();G(this,"circumference");G(this,"endAngle");G(this,"fullCircles");G(this,"innerRadius");G(this,"outerRadius");G(this,"pixelMargin");G(this,"startAngle");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,n&&Object.assign(this,n)}inRange(n,r,a){const s=this.getProps(["x","y"],a),{angle:i,distance:A}=_C(s,{x:n,y:r}),{startAngle:l,endAngle:c,innerRadius:u,outerRadius:d,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],a),p=(this.options.spacing+this.options.borderWidth)/2,h=pe(f,c-l),m=al(i,l,c)&&l!==c,y=h>=it||m,g=Aa(A,u+p,d+p);return y&&g}getCenterPoint(n){const{x:r,y:a,startAngle:s,endAngle:i,innerRadius:A,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:c,spacing:u}=this.options,d=(s+i)/2,f=(A+l+u+c)/2;return{x:r+Math.cos(d)*f,y:a+Math.sin(d)*f}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:r,circumference:a}=this,s=(r.offset||0)/4,i=(r.spacing||0)/2,A=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=a>it?Math.floor(a/it):0,a===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*s,Math.sin(l)*s);const c=1-Math.sin(Math.min(be,a||0)),u=s*c;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,SR(n,this,u,i,A),xR(n,this,u,i,A),n.restore()}}G(zi,"id","arc"),G(zi,"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}),G(zi,"defaultRoutes",{backgroundColor:"backgroundColor"}),G(zi,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function rk(e,t,n=t){e.lineCap=pe(n.borderCapStyle,t.borderCapStyle),e.setLineDash(pe(n.borderDash,t.borderDash)),e.lineDashOffset=pe(n.borderDashOffset,t.borderDashOffset),e.lineJoin=pe(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=pe(n.borderWidth,t.borderWidth),e.strokeStyle=pe(n.borderColor,t.borderColor)}function FR(e,t,n){e.lineTo(n.x,n.y)}function TR(e){return e.stepped?ZP:e.tension||e.cubicInterpolationMode==="monotone"?e7:FR}function ak(e,t,n={}){const r=e.length,{start:a=0,end:s=r-1}=n,{start:i,end:A}=t,l=Math.max(a,i),c=Math.min(s,A),u=a<i&&s<i||a>A&&s>A;return{count:r,start:l,loop:t.loop,ilen:c<l&&!u?r+c-l:c-l}}function IR(e,t,n,r){const{points:a,options:s}=t,{count:i,start:A,loop:l,ilen:c}=ak(a,n,r),u=TR(s);let{move:d=!0,reverse:f}=r||{},p,h,m;for(p=0;p<=c;++p)h=a[(A+(f?c-p:p))%i],!h.skip&&(d?(e.moveTo(h.x,h.y),d=!1):u(e,m,h,f,s.stepped),m=h);return l&&(h=a[(A+(f?c:0))%i],u(e,m,h,f,s.stepped)),!!l}function DR(e,t,n,r){const a=t.points,{count:s,start:i,ilen:A}=ak(a,n,r),{move:l=!0,reverse:c}=r||{};let u=0,d=0,f,p,h,m,y,g;const w=v=>(i+(c?A-v:v))%s,B=()=>{m!==y&&(e.lineTo(u,y),e.lineTo(u,m),e.lineTo(u,g))};for(l&&(p=a[w(0)],e.moveTo(p.x,p.y)),f=0;f<=A;++f){if(p=a[w(f)],p.skip)continue;const v=p.x,_=p.y,b=v|0;b===h?(_<m?m=_:_>y&&(y=_),u=(d*u+v)/++d):(B(),e.lineTo(v,_),h=b,d=0,m=y=_),g=_}B()}function Ih(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?DR:IR}function UR(e){return e.stepped?D7:e.tension||e.cubicInterpolationMode==="monotone"?U7:Qs}function OR(e,t,n,r){let a=t._path;a||(a=t._path=new Path2D,t.path(a,n,r)&&a.closePath()),rk(e,t.options),e.stroke(a)}function LR(e,t,n,r){const{segments:a,options:s}=t,i=Ih(t);for(const A of a)rk(e,s,A.style),e.beginPath(),i(e,t,A,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const QR=typeof Path2D=="function";function MR(e,t,n,r){QR&&!t.options.segment?OR(e,t,n,r):LR(e,t,n,r)}class Ga extends gn{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,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const a=r.spanGaps?this._loop:this._fullLoop;C7(this._points,r,t,a,n),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=P7(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,a=t[n],s=this.points,i=$C(this,{property:n,start:a,end:a});if(!i.length)return;const A=[],l=UR(r);let c,u;for(c=0,u=i.length;c<u;++c){const{start:d,end:f}=i[c],p=s[d],h=s[f];if(p===h){A.push(p);continue}const m=Math.abs((a-p[n])/(h[n]-p[n])),y=l(p,h,m,r.stepped);y[n]=t[n],A.push(y)}return A.length===1?A[0]:A}pathSegment(t,n,r){return Ih(this)(t,this,n,r)}path(t,n,r){const a=this.segments,s=Ih(this);let i=this._loop;n=n||0,r=r||this.points.length-n;for(const A of a)i&=s(t,this,A,{start:n,end:n+r-1});return!!i}draw(t,n,r,a){const s=this.options||{};(this.points||[]).length&&s.borderWidth&&(t.save(),MR(t,this,r,a),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}G(Ga,"id","line"),G(Ga,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),G(Ga,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),G(Ga,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function hB(e,t,n,r){const a=e.options,{[n]:s}=e.getProps([n],r);return Math.abs(t-s)<a.radius+a.hitRadius}class FA extends gn{constructor(n){super();G(this,"parsed");G(this,"skip");G(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,r,a){const s=this.options,{x:i,y:A}=this.getProps(["x","y"],a);return Math.pow(n-i,2)+Math.pow(r-A,2)<Math.pow(s.hitRadius+s.radius,2)}inXRange(n,r){return hB(this,n,"x",r)}inYRange(n,r){return hB(this,n,"y",r)}getCenterPoint(n){const{x:r,y:a}=this.getProps(["x","y"],n);return{x:r,y:a}}size(n){n=n||this.options||{};let r=n.radius||0;r=Math.max(r,r&&n.hoverRadius||0);const a=r&&n.borderWidth||0;return(r+a)*2}draw(n,r){const a=this.options;this.skip||a.radius<.1||!ca(this,r,this.size(a)/2)||(n.strokeStyle=a.borderColor,n.lineWidth=a.borderWidth,n.fillStyle=a.backgroundColor,Sh(n,a,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}G(FA,"id","point"),G(FA,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),G(FA,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function sk(e,t){const{x:n,y:r,base:a,width:s,height:i}=e.getProps(["x","y","base","width","height"],t);let A,l,c,u,d;return e.horizontal?(d=i/2,A=Math.min(n,a),l=Math.max(n,a),c=r-d,u=r+d):(d=s/2,A=n-d,l=n+d,c=Math.min(r,a),u=Math.max(r,a)),{left:A,top:c,right:l,bottom:u}}function ja(e,t,n,r){return e?0:Wt(t,n,r)}function NR(e,t,n){const r=e.options.borderWidth,a=e.borderSkipped,s=DC(r);return{t:ja(a.top,s.top,0,n),r:ja(a.right,s.right,0,t),b:ja(a.bottom,s.bottom,0,n),l:ja(a.left,s.left,0,t)}}function PR(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),a=e.options.borderRadius,s=ns(a),i=Math.min(t,n),A=e.borderSkipped,l=r||ke(a);return{topLeft:ja(!l||A.top||A.left,s.topLeft,0,i),topRight:ja(!l||A.top||A.right,s.topRight,0,i),bottomLeft:ja(!l||A.bottom||A.left,s.bottomLeft,0,i),bottomRight:ja(!l||A.bottom||A.right,s.bottomRight,0,i)}}function RR(e){const t=sk(e),n=t.right-t.left,r=t.bottom-t.top,a=NR(e,n/2,r/2),s=PR(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:s},inner:{x:t.left+a.l,y:t.top+a.t,w:n-a.l-a.r,h:r-a.t-a.b,radius:{topLeft:Math.max(0,s.topLeft-Math.max(a.t,a.l)),topRight:Math.max(0,s.topRight-Math.max(a.t,a.r)),bottomLeft:Math.max(0,s.bottomLeft-Math.max(a.b,a.l)),bottomRight:Math.max(0,s.bottomRight-Math.max(a.b,a.r))}}}}function ap(e,t,n,r){const a=t===null,s=n===null,A=e&&!(a&&s)&&sk(e,r);return A&&(a||Aa(t,A.left,A.right))&&(s||Aa(n,A.top,A.bottom))}function HR(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function VR(e,t){e.rect(t.x,t.y,t.w,t.h)}function sp(e,t,n={}){const r=e.x!==n.x?-t:0,a=e.y!==n.y?-t:0,s=(e.x+e.w!==n.x+n.w?t:0)-r,i=(e.y+e.h!==n.y+n.h?t:0)-a;return{x:e.x+r,y:e.y+a,w:e.w+s,h:e.h+i,radius:e.radius}}class TA extends gn{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:n,options:{borderColor:r,backgroundColor:a}}=this,{inner:s,outer:i}=RR(this),A=HR(i.radius)?go:VR;t.save(),(i.w!==s.w||i.h!==s.h)&&(t.beginPath(),A(t,sp(i,n,s)),t.clip(),A(t,sp(s,-n,i)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),A(t,sp(s,n)),t.fillStyle=a,t.fill(),t.restore()}inRange(t,n,r){return ap(this,t,n,r)}inXRange(t,n){return ap(this,t,null,n)}inYRange(t,n){return ap(this,null,t,n)}getCenterPoint(t){const{x:n,y:r,base:a,horizontal:s}=this.getProps(["x","y","base","horizontal"],t);return{x:s?(n+a)/2:n,y:s?r:(r+a)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}G(TA,"id","bar"),G(TA,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),G(TA,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var $R=Object.freeze({__proto__:null,ArcElement:zi,BarElement:TA,LineElement:Ga,PointElement:FA});const Dh=["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)"],mB=Dh.map(e=>e.replace("rgb(","rgba(").replace(")",", 0.5)"));function ik(e){return Dh[e%Dh.length]}function ok(e){return mB[e%mB.length]}function KR(e,t){return e.borderColor=ik(t),e.backgroundColor=ok(t),++t}function zR(e,t){return e.backgroundColor=e.data.map(()=>ik(t++)),t}function WR(e,t){return e.backgroundColor=e.data.map(()=>ok(t++)),t}function GR(e){let t=0;return(n,r)=>{const a=e.getDatasetMeta(r).controller;a instanceof Hs?t=zR(n,t):a instanceof xA?t=WR(n,t):a&&(t=KR(n,t))}}function gB(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function jR(e){return e&&(e.borderColor||e.backgroundColor)}function YR(){return ot.borderColor!=="rgba(0,0,0,0.1)"||ot.backgroundColor!=="rgba(0,0,0,0.1)"}var qR={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;const{data:{datasets:r},options:a}=e.config,{elements:s}=a,i=gB(r)||jR(a)||s&&gB(s)||YR();if(!n.forceOverride&&i)return;const A=GR(e);r.forEach(A)}};function XR(e,t,n,r,a){const s=a.samples||r;if(s>=n)return e.slice(t,t+n);const i=[],A=(n-2)/(s-2);let l=0;const c=t+n-1;let u=t,d,f,p,h,m;for(i[l++]=e[u],d=0;d<s-2;d++){let y=0,g=0,w;const B=Math.floor((d+1)*A)+1+t,v=Math.min(Math.floor((d+2)*A)+1,n)+t,_=v-B;for(w=B;w<v;w++)y+=e[w].x,g+=e[w].y;y/=_,g/=_;const b=Math.floor(d*A)+1+t,k=Math.min(Math.floor((d+1)*A)+1,n)+t,{x:C,y:E}=e[u];for(p=h=-1,w=b;w<k;w++)h=.5*Math.abs((C-y)*(e[w].y-E)-(C-e[w].x)*(g-E)),h>p&&(p=h,f=e[w],m=w);i[l++]=f,u=m}return i[l++]=e[c],i}function JR(e,t,n,r){let a=0,s=0,i,A,l,c,u,d,f,p,h,m;const y=[],g=t+n-1,w=e[t].x,v=e[g].x-w;for(i=t;i<t+n;++i){A=e[i],l=(A.x-w)/v*r,c=A.y;const _=l|0;if(_===u)c<h?(h=c,d=i):c>m&&(m=c,f=i),a=(s*a+A.x)/++s;else{const b=i-1;if(!Ce(d)&&!Ce(f)){const k=Math.min(d,f),C=Math.max(d,f);k!==p&&k!==b&&y.push({...e[k],x:a}),C!==p&&C!==b&&y.push({...e[C],x:a})}i>0&&b!==p&&y.push(e[b]),y.push(A),u=_,s=0,h=m=c,d=f=p=i}}return y}function Ak(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function vB(e){e.data.datasets.forEach(t=>{Ak(t)})}function ZR(e,t){const n=t.length;let r=0,a;const{iScale:s}=e,{min:i,max:A,minDefined:l,maxDefined:c}=s.getUserBounds();return l&&(r=Wt(la(t,s.axis,i).lo,0,n-1)),c?a=Wt(la(t,s.axis,A).hi+1,r,n)-r:a=n-r,{start:r,count:a}}var eH={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){vB(e);return}const r=e.width;e.data.datasets.forEach((a,s)=>{const{_data:i,indexAxis:A}=a,l=e.getDatasetMeta(s),c=i||a.data;if(At([A,e.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const u=e.scales[l.xAxisID];if(u.type!=="linear"&&u.type!=="time"||e.options.parsing)return;let{start:d,count:f}=ZR(l,c);const p=n.threshold||4*r;if(f<=p){Ak(a);return}Ce(i)&&(a._data=c,delete a.data,Object.defineProperty(a,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(m){this._data=m}}));let h;switch(n.algorithm){case"lttb":h=XR(c,d,f,r,n);break;case"min-max":h=JR(c,d,f,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}a._decimated=h})},destroy(e){vB(e)}};function tH(e,t,n){const r=e.segments,a=e.points,s=t.points,i=[];for(const A of r){let{start:l,end:c}=A;c=Ud(l,c,a);const u=Uh(n,a[l],a[c],A.loop);if(!t.segments){i.push({source:A,target:u,start:a[l],end:a[c]});continue}const d=$C(t,u);for(const f of d){const p=Uh(n,s[f.start],s[f.end],f.loop),h=VC(A,a,p);for(const m of h)i.push({source:m,target:f,start:{[n]:yB(u,p,"start",Math.max)},end:{[n]:yB(u,p,"end",Math.min)}})}}return i}function Uh(e,t,n,r){if(r)return;let a=t[e],s=n[e];return e==="angle"&&(a=rn(a),s=rn(s)),{property:e,start:a,end:s}}function nH(e,t){const{x:n=null,y:r=null}=e||{},a=t.points,s=[];return t.segments.forEach(({start:i,end:A})=>{A=Ud(i,A,a);const l=a[i],c=a[A];r!==null?(s.push({x:l.x,y:r}),s.push({x:c.x,y:r})):n!==null&&(s.push({x:n,y:l.y}),s.push({x:n,y:c.y}))}),s}function Ud(e,t,n){for(;t>e;t--){const r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function yB(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function lk(e,t){let n=[],r=!1;return Ve(e)?(r=!0,n=e):n=nH(e,t),n.length?new Ga({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function BB(e){return e&&e.fill!==!1}function rH(e,t,n){let a=e[t].fill;const s=[t];let i;if(!n)return a;for(;a!==!1&&s.indexOf(a)===-1;){if(!vt(a))return a;if(i=e[a],!i)return!1;if(i.visible)return a;s.push(a),a=i.fill}return!1}function aH(e,t,n){const r=AH(e);if(ke(r))return isNaN(r.value)?!1:r;let a=parseFloat(r);return vt(a)&&Math.floor(a)===a?sH(r[0],t,a,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function sH(e,t,n,r){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=r?!1:n}function iH(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:ke(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function oH(e,t,n){let r;return e==="start"?r=n:e==="end"?r=t.options.reverse?t.min:t.max:ke(e)?r=e.value:r=t.getBaseValue(),r}function AH(e){const t=e.options,n=t.fill;let r=pe(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function lH(e){const{scale:t,index:n,line:r}=e,a=[],s=r.segments,i=r.points,A=cH(t,n);A.push(lk({x:null,y:t.bottom},r));for(let l=0;l<s.length;l++){const c=s[l];for(let u=c.start;u<=c.end;u++)uH(a,i[u],A)}return new Ga({points:a,options:{}})}function cH(e,t){const n=[],r=e.getMatchingVisibleMetas("line");for(let a=0;a<r.length;a++){const s=r[a];if(s.index===t)break;s.hidden||n.unshift(s.dataset)}return n}function uH(e,t,n){const r=[];for(let a=0;a<n.length;a++){const s=n[a],{first:i,last:A,point:l}=dH(s,t,"x");if(!(!l||i&&A)){if(i)r.unshift(l);else if(e.push(l),!A)break}}e.push(...r)}function dH(e,t,n){const r=e.interpolate(t,n);if(!r)return{};const a=r[n],s=e.segments,i=e.points;let A=!1,l=!1;for(let c=0;c<s.length;c++){const u=s[c],d=i[u.start][n],f=i[u.end][n];if(Aa(a,d,f)){A=a===d,l=a===f;break}}return{first:A,last:l,point:r}}class ck{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,r){const{x:a,y:s,radius:i}=this;return n=n||{start:0,end:it},t.arc(a,s,i,n.end,n.start,!0),!r.bounds}interpolate(t){const{x:n,y:r,radius:a}=this,s=t.angle;return{x:n+Math.cos(s)*a,y:r+Math.sin(s)*a,angle:s}}}function fH(e){const{chart:t,fill:n,line:r}=e;if(vt(n))return pH(t,n);if(n==="stack")return lH(e);if(n==="shape")return!0;const a=hH(e);return a instanceof ck?a:lk(a,r)}function pH(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function hH(e){return(e.scale||{}).getPointPositionForValue?gH(e):mH(e)}function mH(e){const{scale:t={},fill:n}=e,r=iH(n,t);if(vt(r)){const a=t.isHorizontal();return{x:a?r:null,y:a?null:r}}return null}function gH(e){const{scale:t,fill:n}=e,r=t.options,a=t.getLabels().length,s=r.reverse?t.max:t.min,i=oH(n,t,s),A=[];if(r.grid.circular){const l=t.getPointPositionForValue(0,s);return new ck({x:l.x,y:l.y,radius:t.getDistanceFromCenterForValue(i)})}for(let l=0;l<a;++l)A.push(t.getPointPositionForValue(l,i));return A}function ip(e,t,n){const r=fH(t),{chart:a,index:s,line:i,scale:A,axis:l}=t,c=i.options,u=c.fill,d=c.backgroundColor,{above:f=d,below:p=d}=u||{},h=a.getDatasetMeta(s),m=KC(a,h);r&&i.points.length&&(Ol(e,n),vH(e,{line:i,target:r,above:f,below:p,area:n,scale:A,axis:l,clip:m}),Ll(e))}function vH(e,t){const{line:n,target:r,above:a,below:s,area:i,scale:A,clip:l}=t,c=n._loop?"angle":t.axis;e.save();let u=s;s!==a&&(c==="x"?(wB(e,r,i.top),op(e,{line:n,target:r,color:a,scale:A,property:c,clip:l}),e.restore(),e.save(),wB(e,r,i.bottom)):c==="y"&&(bB(e,r,i.left),op(e,{line:n,target:r,color:s,scale:A,property:c,clip:l}),e.restore(),e.save(),bB(e,r,i.right),u=a)),op(e,{line:n,target:r,color:u,scale:A,property:c,clip:l}),e.restore()}function wB(e,t,n){const{segments:r,points:a}=t;let s=!0,i=!1;e.beginPath();for(const A of r){const{start:l,end:c}=A,u=a[l],d=a[Ud(l,c,a)];s?(e.moveTo(u.x,u.y),s=!1):(e.lineTo(u.x,n),e.lineTo(u.x,u.y)),i=!!t.pathSegment(e,A,{move:i}),i?e.closePath():e.lineTo(d.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function bB(e,t,n){const{segments:r,points:a}=t;let s=!0,i=!1;e.beginPath();for(const A of r){const{start:l,end:c}=A,u=a[l],d=a[Ud(l,c,a)];s?(e.moveTo(u.x,u.y),s=!1):(e.lineTo(n,u.y),e.lineTo(u.x,u.y)),i=!!t.pathSegment(e,A,{move:i}),i?e.closePath():e.lineTo(n,d.y)}e.lineTo(n,t.first().y),e.closePath(),e.clip()}function op(e,t){const{line:n,target:r,property:a,color:s,scale:i,clip:A}=t,l=tH(n,r,a);for(const{source:c,target:u,start:d,end:f}of l){const{style:{backgroundColor:p=s}={}}=c,h=r!==!0;e.save(),e.fillStyle=p,yH(e,i,A,h&&Uh(a,d,f)),e.beginPath();const m=!!n.pathSegment(e,c);let y;if(h){m?e.closePath():_B(e,r,f,a);const g=!!r.pathSegment(e,u,{move:m,reverse:!0});y=m&&g,y||_B(e,r,d,a)}e.closePath(),e.fill(y?"evenodd":"nonzero"),e.restore()}}function yH(e,t,n,r){const a=t.chart.chartArea,{property:s,start:i,end:A}=r||{};if(s==="x"||s==="y"){let l,c,u,d;s==="x"?(l=i,c=a.top,u=A,d=a.bottom):(l=a.left,c=i,u=a.right,d=A),e.beginPath(),n&&(l=Math.max(l,n.left),u=Math.min(u,n.right),c=Math.max(c,n.top),d=Math.min(d,n.bottom)),e.rect(l,c,u-l,d-c),e.clip()}}function _B(e,t,n,r){const a=t.interpolate(n,r);a&&e.lineTo(a.x,a.y)}var BH={id:"filler",afterDatasetsUpdate(e,t,n){const r=(e.data.datasets||[]).length,a=[];let s,i,A,l;for(i=0;i<r;++i)s=e.getDatasetMeta(i),A=s.dataset,l=null,A&&A.options&&A instanceof Ga&&(l={visible:e.isDatasetVisible(i),index:i,fill:aH(A,i,r),chart:e,axis:s.controller.options.indexAxis,scale:s.vScale,line:A}),s.$filler=l,a.push(l);for(i=0;i<r;++i)l=a[i],!(!l||l.fill===!1)&&(l.fill=rH(a,i,n.propagate))},beforeDraw(e,t,n){const r=n.drawTime==="beforeDraw",a=e.getSortedVisibleDatasetMetas(),s=e.chartArea;for(let i=a.length-1;i>=0;--i){const A=a[i].$filler;A&&(A.line.updateControlPoints(s,A.axis),r&&A.fill&&ip(e.ctx,A,s))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const r=e.getSortedVisibleDatasetMetas();for(let a=r.length-1;a>=0;--a){const s=r[a].$filler;BB(s)&&ip(e.ctx,s,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;!BB(r)||n.drawTime!=="beforeDatasetDraw"||ip(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const CB=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},wH=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class kB extends gn{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,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,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 n=We(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,a)=>t.sort(r,a,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,a=yt(r.font),s=a.size,i=this._computeTitleHeight(),{boxWidth:A,itemHeight:l}=CB(r,s);let c,u;n.font=a.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(i,s,A,l)+10):(u=this.maxHeight,c=this._fitCols(i,a,A,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,a){const{ctx:s,maxWidth:i,options:{labels:{padding:A}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=a+A;let d=t;s.textAlign="left",s.textBaseline="middle";let f=-1,p=-u;return this.legendItems.forEach((h,m)=>{const y=r+n/2+s.measureText(h.text).width;(m===0||c[c.length-1]+y+2*A>i)&&(d+=u,c[c.length-(m>0?0:1)]=0,p+=u,f++),l[m]={left:0,top:p,row:f,width:y,height:a},c[c.length-1]+=y+A}),d}_fitCols(t,n,r,a){const{ctx:s,maxHeight:i,options:{labels:{padding:A}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=i-t;let d=A,f=0,p=0,h=0,m=0;return this.legendItems.forEach((y,g)=>{const{itemWidth:w,itemHeight:B}=bH(r,n,s,y,a);g>0&&p+B+2*A>u&&(d+=f+A,c.push({width:f,height:p}),h+=f+A,m++,f=p=0),l[g]={left:h,top:p,col:m,width:w,height:B},f=Math.max(f,w),p+=B+A}),d+=f,c.push({width:f,height:p}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:a},rtl:s}}=this,i=Yi(s,this.left,this.width);if(this.isHorizontal()){let A=0,l=tn(r,this.left+a,this.right-this.lineWidths[A]);for(const c of n)A!==c.row&&(A=c.row,l=tn(r,this.left+a,this.right-this.lineWidths[A])),c.top+=this.top+t+a,c.left=i.leftForLtr(i.x(l),c.width),l+=c.width+a}else{let A=0,l=tn(r,this.top+t+a,this.bottom-this.columnSizes[A].height);for(const c of n)c.col!==A&&(A=c.col,l=tn(r,this.top+t+a,this.bottom-this.columnSizes[A].height)),c.top=l,c.left+=this.left+a,c.left=i.leftForLtr(i.x(c.left),c.width),l+=c.height+a}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Ol(t,this),this._draw(),Ll(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:a}=this,{align:s,labels:i}=t,A=ot.color,l=Yi(t.rtl,this.left,this.width),c=yt(i.font),{padding:u}=i,d=c.size,f=d/2;let p;this.drawTitle(),a.textAlign=l.textAlign("left"),a.textBaseline="middle",a.lineWidth=.5,a.font=c.string;const{boxWidth:h,boxHeight:m,itemHeight:y}=CB(i,d),g=function(b,k,C){if(isNaN(h)||h<=0||isNaN(m)||m<0)return;a.save();const E=pe(C.lineWidth,1);if(a.fillStyle=pe(C.fillStyle,A),a.lineCap=pe(C.lineCap,"butt"),a.lineDashOffset=pe(C.lineDashOffset,0),a.lineJoin=pe(C.lineJoin,"miter"),a.lineWidth=E,a.strokeStyle=pe(C.strokeStyle,A),a.setLineDash(pe(C.lineDash,[])),i.usePointStyle){const D={radius:m*Math.SQRT2/2,pointStyle:C.pointStyle,rotation:C.rotation,borderWidth:E},T=l.xPlus(b,h/2),F=k+f;IC(a,D,T,F,i.pointStyleWidth&&h)}else{const D=k+Math.max((d-m)/2,0),T=l.leftForLtr(b,h),F=ns(C.borderRadius);a.beginPath(),Object.values(F).some(U=>U!==0)?go(a,{x:T,y:D,w:h,h:m,radius:F}):a.rect(T,D,h,m),a.fill(),E!==0&&a.stroke()}a.restore()},w=function(b,k,C){Ai(a,C.text,b,k+y/2,c,{strikethrough:C.hidden,textAlign:l.textAlign(C.textAlign)})},B=this.isHorizontal(),v=this._computeTitleHeight();B?p={x:tn(s,this.left+u,this.right-r[0]),y:this.top+u+v,line:0}:p={x:this.left+u,y:tn(s,this.top+v+u,this.bottom-n[0].height),line:0},PC(this.ctx,t.textDirection);const _=y+u;this.legendItems.forEach((b,k)=>{a.strokeStyle=b.fontColor,a.fillStyle=b.fontColor;const C=a.measureText(b.text).width,E=l.textAlign(b.textAlign||(b.textAlign=i.textAlign)),D=h+f+C;let T=p.x,F=p.y;l.setWidth(this.width),B?k>0&&T+D+u>this.right&&(F=p.y+=_,p.line++,T=p.x=tn(s,this.left+u,this.right-r[p.line])):k>0&&F+_>this.bottom&&(T=p.x=T+n[p.line].width+u,p.line++,F=p.y=tn(s,this.top+v+u,this.bottom-n[p.line].height));const U=l.x(T);if(g(U,F,b),T=VP(E,T+h+f,B?T+D:this.right,t.rtl),w(l.x(T),F,b),B)p.x+=D+u;else if(typeof b.text!="string"){const W=c.lineHeight;p.y+=uk(b,W)+u}else p.y+=_}),RC(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=yt(n.font),a=Ot(n.padding);if(!n.display)return;const s=Yi(t.rtl,this.left,this.width),i=this.ctx,A=n.position,l=r.size/2,c=a.top+l;let u,d=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),u=this.top+c,d=tn(t.align,d,this.right-f);else{const h=this.columnSizes.reduce((m,y)=>Math.max(m,y.height),0);u=c+tn(t.align,this.top,this.bottom-h-t.labels.padding-this._computeTitleHeight())}const p=tn(A,d,d+f);i.textAlign=s.textAlign(Mg(A)),i.textBaseline="middle",i.strokeStyle=n.color,i.fillStyle=n.color,i.font=r.string,Ai(i,n.text,p,u,r)}_computeTitleHeight(){const t=this.options.title,n=yt(t.font),r=Ot(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,a,s;if(Aa(t,this.left,this.right)&&Aa(n,this.top,this.bottom)){for(s=this.legendHitBoxes,r=0;r<s.length;++r)if(a=s[r],Aa(t,a.left,a.left+a.width)&&Aa(n,a.top,a.top+a.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!kH(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const a=this._hoveredItem,s=wH(a,r);a&&!s&&We(n.onLeave,[t,a,this],this),this._hoveredItem=r,r&&!s&&We(n.onHover,[t,r,this],this)}else r&&We(n.onClick,[t,r,this],this)}}function bH(e,t,n,r,a){const s=_H(r,e,t,n),i=CH(a,r,t.lineHeight);return{itemWidth:s,itemHeight:i}}function _H(e,t,n,r){let a=e.text;return a&&typeof a!="string"&&(a=a.reduce((s,i)=>s.length>i.length?s:i)),t+n.size/2+r.measureText(a).width}function CH(e,t,n){let r=e;return typeof t.text!="string"&&(r=uk(t,n)),r}function uk(e,t){const n=e.text?e.text.length:0;return t*n}function kH(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var EH={id:"legend",_element:kB,start(e,t,n){const r=e.legend=new kB({ctx:e.ctx,options:n,chart:e});on.configure(e,r,n),on.addBox(e,r)},stop(e){on.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;on.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,a=n.chart;a.isDatasetVisible(r)?(a.hide(r),t.hidden=!0):(a.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:a,color:s,useBorderRadius:i,borderRadius:A}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=Ot(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:s,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:a||c.textAlign,borderRadius:i&&(A||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class Gg extends gn{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,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const a=Ve(r.text)?r.text.length:1;this._padding=Ot(r.padding);const s=a*yt(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:a,right:s,options:i}=this,A=i.align;let l=0,c,u,d;return this.isHorizontal()?(u=tn(A,r,s),d=n+t,c=s-r):(i.position==="left"?(u=r+t,d=tn(A,a,n),l=be*-.5):(u=s-t,d=tn(A,n,a),l=be*.5),c=a-n),{titleX:u,titleY:d,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=yt(n.font),s=r.lineHeight/2+this._padding.top,{titleX:i,titleY:A,maxWidth:l,rotation:c}=this._drawArgs(s);Ai(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:c,textAlign:Mg(n.align),textBaseline:"middle",translation:[i,A]})}}function SH(e,t){const n=new Gg({ctx:e.ctx,options:t,chart:e});on.configure(e,n,t),on.addBox(e,n),e.titleBlock=n}var xH={id:"title",_element:Gg,start(e,t,n){SH(e,n)},stop(e){const t=e.titleBlock;on.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;on.configure(e,r,n),r.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 yc=new WeakMap;var FH={id:"subtitle",start(e,t,n){const r=new Gg({ctx:e.ctx,options:n,chart:e});on.configure(e,r,n),on.addBox(e,r),yc.set(e,r)},stop(e){on.removeBox(e,yc.get(e)),yc.delete(e)},beforeUpdate(e,t,n){const r=yc.get(e);on.configure(e,r,n),r.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 oA={average(e){if(!e.length)return!1;let t,n,r=new Set,a=0,s=0;for(t=0,n=e.length;t<n;++t){const A=e[t].element;if(A&&A.hasValue()){const l=A.tooltipPosition();r.add(l.x),a+=l.y,++s}}return s===0||r.size===0?!1:{x:[...r].reduce((A,l)=>A+l)/r.size,y:a/s}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,a=Number.POSITIVE_INFINITY,s,i,A;for(s=0,i=e.length;s<i;++s){const l=e[s].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),u=mo(t,c);u<a&&(a=u,A=l)}}if(A){const l=A.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function wr(e,t){return t&&(Ve(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function ra(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
|
|
644
|
+
*/class $P{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,a){const s=n.listeners[a],i=n.duration;s.forEach(A=>A({chart:t,initial:n.initial,numSteps:i,currentStep:Math.min(r-n.start,i)}))}_refresh(){this._request||(this._running=!0,this._request=EC.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,a)=>{if(!r.running||!r.items.length)return;const s=r.items;let i=s.length-1,A=!1,l;for(;i>=0;--i)l=s[i],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),A=!0):(s[i]=s[s.length-1],s.pop());A&&(a.draw(),this._notify(a,r,t,"progress")),s.length||(r.running=!1,this._notify(a,r,t,"complete"),r.initial=!1),n+=s.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,a)=>Math.max(r,a._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let a=r.length-1;for(;a>=0;--a)r[a].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var na=new $P;const Hy="transparent",KP={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=Iy(e||Hy),a=r.valid&&Iy(t||Hy);return a&&a.valid?a.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class zP{constructor(t,n,r,a){const s=n[r];a=At([t.to,a,s,t.from]);const i=At([t.from,s,a]);this._active=!0,this._fn=t.fn||KP[t.type||typeof i],this._easing=EA[t.easing]||EA.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=i,this._to=a,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const a=this._target[this._prop],s=r-this._start,i=this._duration-s;this._start=r,this._duration=Math.floor(Math.max(i,t.duration)),this._total+=s,this._loop=!!t.loop,this._to=At([t.to,n,a,t.from]),this._from=At([t.from,a,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,a=this._prop,s=this._from,i=this._loop,A=this._to;let l;if(this._active=s!==A&&(i||n<r),!this._active){this._target[a]=A,this._notify(!0);return}if(n<0){this._target[a]=s;return}l=n/r%2,l=i&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[a]=this._fn(s,A,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let a=0;a<r.length;a++)r[a][n]()}}class zg{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!ke(t))return;const n=Object.keys(ot.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(a=>{const s=t[a];if(!ke(s))return;const i={};for(const A of n)i[A]=s[A];(Ve(s.properties)&&s.properties||[a]).forEach(A=>{(A===a||!r.has(A))&&r.set(A,i)})})}_animateOptions(t,n){const r=n.options,a=GP(t,r);if(!a)return[];const s=this._createAnimations(a,r);return r.$shared&&WP(t.options.$animations,r).then(()=>{t.options=r},()=>{}),s}_createAnimations(t,n){const r=this._properties,a=[],s=t.$animations||(t.$animations={}),i=Object.keys(n),A=Date.now();let l;for(l=i.length-1;l>=0;--l){const c=i[l];if(c.charAt(0)==="$")continue;if(c==="options"){a.push(...this._animateOptions(t,n));continue}const u=n[c];let d=s[c];const f=r.get(c);if(d)if(f&&d.active()){d.update(f,u,A);continue}else d.cancel();if(!f||!f.duration){t[c]=u;continue}s[c]=d=new zP(f,t,c,u),a.push(d)}return a}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return na.add(this._chart,r),!0}}function WP(e,t){const n=[],r=Object.keys(t);for(let a=0;a<r.length;a++){const s=e[r[a]];s&&s.active()&&n.push(s.wait())}return Promise.all(n)}function GP(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function Vy(e,t){const n=e&&e.options||{},r=n.reverse,a=n.min===void 0?t:0,s=n.max===void 0?t:0;return{start:r?s:a,end:r?a:s}}function jP(e,t,n){if(n===!1)return!1;const r=Vy(e,n),a=Vy(t,n);return{top:a.end,right:r.end,bottom:a.start,left:r.start}}function YP(e){let t,n,r,a;return ke(e)?(t=e.top,n=e.right,r=e.bottom,a=e.left):t=n=r=a=e,{top:t,right:n,bottom:r,left:a,disabled:e===!1}}function zC(e,t){const n=[],r=e._getSortedDatasetMetas(t);let a,s;for(a=0,s=r.length;a<s;++a)n.push(r[a].index);return n}function $y(e,t,n,r={}){const a=e.keys,s=r.mode==="single";let i,A,l,c;if(t===null)return;let u=!1;for(i=0,A=a.length;i<A;++i){if(l=+a[i],l===n){if(u=!0,r.all)continue;break}c=e.values[l],vt(c)&&(s||t===0||Ir(t)===Ir(c))&&(t+=c)}return!u&&!r.all?0:t}function qP(e,t){const{iScale:n,vScale:r}=t,a=n.axis==="x"?"x":"y",s=r.axis==="x"?"x":"y",i=Object.keys(e),A=new Array(i.length);let l,c,u;for(l=0,c=i.length;l<c;++l)u=i[l],A[l]={[a]:u,[s]:e[u]};return A}function Xf(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function XP(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function JP(e){const{min:t,max:n,minDefined:r,maxDefined:a}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:a?n:Number.POSITIVE_INFINITY}}function ZP(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function Ky(e,t,n,r){for(const a of t.getMatchingVisibleMetas(r).reverse()){const s=e[a.index];if(n&&s>0||!n&&s<0)return a.index}return null}function zy(e,t){const{chart:n,_cachedMeta:r}=e,a=n._stacks||(n._stacks={}),{iScale:s,vScale:i,index:A}=r,l=s.axis,c=i.axis,u=XP(s,i,r),d=t.length;let f;for(let p=0;p<d;++p){const h=t[p],{[l]:m,[c]:y}=h,g=h._stacks||(h._stacks={});f=g[c]=ZP(a,u,m),f[A]=y,f._top=Ky(f,i,!0,r.type),f._bottom=Ky(f,i,!1,r.type);const w=f._visualValues||(f._visualValues={});w[A]=y}}function Jf(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function e9(e,t){return _s(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function t9(e,t,n){return _s(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Ko(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const a of t){const s=a._stacks;if(!s||s[r]===void 0||s[r][n]===void 0)return;delete s[r][n],s[r]._visualValues!==void 0&&s[r]._visualValues[n]!==void 0&&delete s[r]._visualValues[n]}}}const Zf=e=>e==="reset"||e==="none",Wy=(e,t)=>t?e:Object.assign({},e),n9=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:zC(n,!0),values:null};class ur{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,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=Xf(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&&Ko(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),a=(d,f,p,h)=>d==="x"?f:d==="r"?h:p,s=n.xAxisID=pe(r.xAxisID,Jf(t,"x")),i=n.yAxisID=pe(r.yAxisID,Jf(t,"y")),A=n.rAxisID=pe(r.rAxisID,Jf(t,"r")),l=n.indexAxis,c=n.iAxisID=a(l,s,i,A),u=n.vAxisID=a(l,i,s,A);n.xScale=this.getScaleForId(s),n.yScale=this.getScaleForId(i),n.rScale=this.getScaleForId(A),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}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 n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&xy(this._data,this),t._stacked&&Ko(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(ke(n)){const a=this._cachedMeta;this._data=qP(n,a)}else if(r!==n){if(r){xy(r,this);const a=this._cachedMeta;Ko(a),a._parsed=[]}n&&Object.isExtensible(n)&&RN(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let a=!1;this._dataCheck();const s=n._stacked;n._stacked=Xf(n.vScale,n),n.stack!==r.stack&&(a=!0,Ko(n),n.stack=r.stack),this._resyncElements(t),(a||s!==n._stacked)&&(zy(this,n._parsed),n._stacked=Xf(n.vScale,n))}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:a}=this,{iScale:s,_stacked:i}=r,A=s.axis;let l=t===0&&n===a.length?!0:r._sorted,c=t>0&&r._parsed[t-1],u,d,f;if(this._parsing===!1)r._parsed=a,r._sorted=!0,f=a;else{Ve(a[t])?f=this.parseArrayData(r,a,t,n):ke(a[t])?f=this.parseObjectData(r,a,t,n):f=this.parsePrimitiveData(r,a,t,n);const p=()=>d[A]===null||c&&d[A]<c[A];for(u=0;u<n;++u)r._parsed[u+t]=d=f[u],l&&(p()&&(l=!1),c=d);r._sorted=l}i&&zy(this,f)}parsePrimitiveData(t,n,r,a){const{iScale:s,vScale:i}=t,A=s.axis,l=i.axis,c=s.getLabels(),u=s===i,d=new Array(a);let f,p,h;for(f=0,p=a;f<p;++f)h=f+r,d[f]={[A]:u||s.parse(c[h],h),[l]:i.parse(n[h],h)};return d}parseArrayData(t,n,r,a){const{xScale:s,yScale:i}=t,A=new Array(a);let l,c,u,d;for(l=0,c=a;l<c;++l)u=l+r,d=n[u],A[l]={x:s.parse(d[0],u),y:i.parse(d[1],u)};return A}parseObjectData(t,n,r,a){const{xScale:s,yScale:i}=t,{xAxisKey:A="x",yAxisKey:l="y"}=this._parsing,c=new Array(a);let u,d,f,p;for(u=0,d=a;u<d;++u)f=u+r,p=n[f],c[u]={x:s.parse(fs(p,A),f),y:i.parse(fs(p,l),f)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,r){const a=this.chart,s=this._cachedMeta,i=n[t.axis],A={keys:zC(a,!0),values:n._stacks[t.axis]._visualValues};return $y(A,i,s.index,{mode:r})}updateRangeFromParsed(t,n,r,a){const s=r[n.axis];let i=s===null?NaN:s;const A=a&&r._stacks[n.axis];a&&A&&(a.values=A,i=$y(a,s,this._cachedMeta.index)),t.min=Math.min(t.min,i),t.max=Math.max(t.max,i)}getMinMax(t,n){const r=this._cachedMeta,a=r._parsed,s=r._sorted&&t===r.iScale,i=a.length,A=this._getOtherScale(t),l=n9(n,r,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:d}=JP(A);let f,p;function h(){p=a[f];const m=p[A.axis];return!vt(p[t.axis])||u>m||d<m}for(f=0;f<i&&!(!h()&&(this.updateRangeFromParsed(c,t,p,l),s));++f);if(s){for(f=i-1;f>=0;--f)if(!h()){this.updateRangeFromParsed(c,t,p,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let a,s,i;for(a=0,s=n.length;a<s;++a)i=n[a][t.axis],vt(i)&&r.push(i);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,r=n.iScale,a=n.vScale,s=this.getParsed(t);return{label:r?""+r.getLabelForValue(s[r.axis]):"",value:a?""+a.getLabelForValue(s[a.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=YP(pe(this.options.clip,jP(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,r=this._cachedMeta,a=r.data||[],s=n.chartArea,i=[],A=this._drawStart||0,l=this._drawCount||a.length-A,c=this.options.drawActiveElementsOnTop;let u;for(r.dataset&&r.dataset.draw(t,s,A,l),u=A;u<A+l;++u){const d=a[u];d.hidden||(d.active&&c?i.push(d):d.draw(t,s))}for(u=0;u<i.length;++u)i[u].draw(t,s)}getStyle(t,n){const r=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,n,r){const a=this.getDataset();let s;if(t>=0&&t<this._cachedMeta.data.length){const i=this._cachedMeta.data[t];s=i.$context||(i.$context=t9(this.getContext(),t,i)),s.parsed=this.getParsed(t),s.raw=a.data[t],s.index=s.dataIndex=t}else s=this.$context||(this.$context=e9(this.chart.getContext(),this.index)),s.dataset=a,s.index=s.datasetIndex=this.index;return s.active=!!n,s.mode=r,s}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",r){const a=n==="active",s=this._cachedDataOpts,i=t+"-"+n,A=s[i],l=this.enableOptionSharing&&Tn(r);if(A)return Wy(A,l);const c=this.chart.config,u=c.datasetElementScopeKeys(this._type,t),d=a?[`${t}Hover`,"hover",t,""]:[t,""],f=c.getOptionScopes(this.getDataset(),u),p=Object.keys(ot.elements[t]),h=()=>this.getContext(r,a,n),m=c.resolveNamedOptions(f,p,h,d);return m.$shared&&(m.$shared=l,s[i]=Object.freeze(Wy(m,l))),m}_resolveAnimations(t,n,r){const a=this.chart,s=this._cachedDataOpts,i=`animation-${n}`,A=s[i];if(A)return A;let l;if(a.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,n),f=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(f,this.getContext(t,r,n))}const c=new zg(a,l&&l.animations);return l&&l._cacheable&&(s[i]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Zf(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),a=this._sharedOptions,s=this.getSharedOptions(r),i=this.includeOptions(n,s)||s!==a;return this.updateSharedOptions(s,n,r),{sharedOptions:s,includeOptions:i}}updateElement(t,n,r,a){Zf(a)?Object.assign(t,r):this._resolveAnimations(n,a).update(t,r)}updateSharedOptions(t,n,r){t&&!Zf(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,a){t.active=a;const s=this.getStyle(n,a);this._resolveAnimations(n,r,a).update(t,{options:!a&&this.getSharedOptions(s)||s})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"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 n=this._data,r=this._cachedMeta.data;for(const[A,l,c]of this._syncList)this[A](l,c);this._syncList=[];const a=r.length,s=n.length,i=Math.min(s,a);i&&this.parse(0,i),s>a?this._insertElements(a,s-a,t):s<a&&this._removeElements(s,a-s)}_insertElements(t,n,r=!0){const a=this._cachedMeta,s=a.data,i=t+n;let A;const l=c=>{for(c.length+=n,A=c.length-1;A>=i;A--)c[A]=c[A-n]};for(l(s),A=t;A<i;++A)s[A]=new this.dataElementType;this._parsing&&l(a._parsed),this.parse(t,n),r&&this.updateElements(s,t,n,"reset")}updateElements(t,n,r,a){}_removeElements(t,n){const r=this._cachedMeta;if(this._parsing){const a=r._parsed.splice(t,n);r._stacked&&Ko(r,a)}r.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,r,a]=t;this[n](r,a)}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,n){n&&this._sync(["_removeElements",t,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}G(ur,"defaults",{}),G(ur,"datasetElementType",null),G(ur,"dataElementType",null);function r9(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let r=[];for(let a=0,s=n.length;a<s;a++)r=r.concat(n[a].controller.getAllParsedValues(e));e._cache.$bar=kC(r.sort((a,s)=>a-s))}return e._cache.$bar}function a9(e){const t=e.iScale,n=r9(t,e.type);let r=t._length,a,s,i,A;const l=()=>{i===32767||i===-32768||(Tn(A)&&(r=Math.min(r,Math.abs(i-A)||r)),A=i)};for(a=0,s=n.length;a<s;++a)i=t.getPixelForValue(n[a]),l();for(A=void 0,a=0,s=t.ticks.length;a<s;++a)i=t.getPixelForTick(a),l();return r}function s9(e,t,n,r){const a=n.barThickness;let s,i;return Ce(a)?(s=t.min*n.categoryPercentage,i=n.barPercentage):(s=a*r,i=1),{chunk:s/r,ratio:i,start:t.pixels[e]-s/2}}function i9(e,t,n,r){const a=t.pixels,s=a[e];let i=e>0?a[e-1]:null,A=e<a.length-1?a[e+1]:null;const l=n.categoryPercentage;i===null&&(i=s-(A===null?t.end-t.start:A-s)),A===null&&(A=s+s-i);const c=s-(s-Math.min(i,A))/2*l;return{chunk:Math.abs(A-i)/2*l/r,ratio:n.barPercentage,start:c}}function o9(e,t,n,r){const a=n.parse(e[0],r),s=n.parse(e[1],r),i=Math.min(a,s),A=Math.max(a,s);let l=i,c=A;Math.abs(i)>Math.abs(A)&&(l=A,c=i),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:a,end:s,min:i,max:A}}function WC(e,t,n,r){return Ve(e)?o9(e,t,n,r):t[n.axis]=n.parse(e,r),t}function Gy(e,t,n,r){const a=e.iScale,s=e.vScale,i=a.getLabels(),A=a===s,l=[];let c,u,d,f;for(c=n,u=n+r;c<u;++c)f=t[c],d={},d[a.axis]=A||a.parse(i[c],c),l.push(WC(f,d,s,c));return l}function ep(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function A9(e,t,n){return e!==0?Ir(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function l9(e){let t,n,r,a,s;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(a="end",s="start"):(a="start",s="end"),{start:n,end:r,reverse:t,top:a,bottom:s}}function c9(e,t,n,r){let a=t.borderSkipped;const s={};if(!a){e.borderSkipped=s;return}if(a===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:i,end:A,reverse:l,top:c,bottom:u}=l9(e);a==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?a=c:(n._bottom||0)===r?a=u:(s[jy(u,i,A,l)]=!0,a=c)),s[jy(a,i,A,l)]=!0,e.borderSkipped=s}function jy(e,t,n,r){return r?(e=u9(e,t,n),e=Yy(e,n,t)):e=Yy(e,t,n),e}function u9(e,t,n){return e===t?n:e===n?t:e}function Yy(e,t,n){return e==="start"?t:e==="end"?n:e}function d9(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class ou extends ur{parsePrimitiveData(t,n,r,a){return Gy(t,n,r,a)}parseArrayData(t,n,r,a){return Gy(t,n,r,a)}parseObjectData(t,n,r,a){const{iScale:s,vScale:i}=t,{xAxisKey:A="x",yAxisKey:l="y"}=this._parsing,c=s.axis==="x"?A:l,u=i.axis==="x"?A:l,d=[];let f,p,h,m;for(f=r,p=r+a;f<p;++f)m=n[f],h={},h[s.axis]=s.parse(fs(m,c),f),d.push(WC(fs(m,u),h,i,f));return d}updateRangeFromParsed(t,n,r,a){super.updateRangeFromParsed(t,n,r,a);const s=r._custom;s&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,s.min),t.max=Math.max(t.max,s.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:r,vScale:a}=n,s=this.getParsed(t),i=s._custom,A=ep(i)?"["+i.start+", "+i.end+"]":""+a.getLabelForValue(s[a.axis]);return{label:""+r.getLabelForValue(s[r.axis]),value:A}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,r,a){const s=a==="reset",{index:i,_cachedMeta:{vScale:A}}=this,l=A.getBasePixel(),c=A.isHorizontal(),u=this._getRuler(),{sharedOptions:d,includeOptions:f}=this._getSharedOptions(n,a);for(let p=n;p<n+r;p++){const h=this.getParsed(p),m=s||Ce(h[A.axis])?{base:l,head:l}:this._calculateBarValuePixels(p),y=this._calculateBarIndexPixels(p,u),g=(h._stacks||{})[A.axis],w={horizontal:c,base:m.base,enableBorderRadius:!g||ep(h._custom)||i===g._top||i===g._bottom,x:c?m.head:y.center,y:c?y.center:m.head,height:c?y.size:Math.abs(m.size),width:c?Math.abs(m.size):y.size};f&&(w.options=d||this.resolveDataElementOptions(p,t[p].active?"active":a));const B=w.options||t[p].options;c9(w,B,g,i),d9(w,B,u.ratio),this.updateElement(t[p],p,w,a)}}_getStacks(t,n){const{iScale:r}=this._cachedMeta,a=r.getMatchingVisibleMetas(this._type).filter(u=>u.controller.options.grouped),s=r.options.stacked,i=[],A=this._cachedMeta.controller.getParsed(n),l=A&&A[r.axis],c=u=>{const d=u._parsed.find(p=>p[r.axis]===l),f=d&&d[u.vScale.axis];if(Ce(f)||isNaN(f))return!0};for(const u of a)if(!(n!==void 0&&c(u))&&((s===!1||i.indexOf(u.stack)===-1||s===void 0&&u.stack===void 0)&&i.push(u.stack),u.index===t))break;return i.length||i.push(void 0),i}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const t=this.chart.scales,n=this.chart.options.indexAxis;return Object.keys(t).filter(r=>t[r].axis===n).shift()}_getAxis(){const t={},n=this.getFirstScaleIdForIndexAxis();for(const r of this.chart.data.datasets)t[pe(this.chart.options.indexAxis==="x"?r.xAxisID:r.yAxisID,n)]=!0;return Object.keys(t)}_getStackIndex(t,n,r){const a=this._getStacks(t,r),s=n!==void 0?a.indexOf(n):-1;return s===-1?a.length-1:s}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,a=[];let s,i;for(s=0,i=n.data.length;s<i;++s)a.push(r.getPixelForValue(this.getParsed(s)[r.axis],s));const A=t.barThickness;return{min:A||a9(n),pixels:a,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:A?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:r,index:a},options:{base:s,minBarLength:i}}=this,A=s||0,l=this.getParsed(t),c=l._custom,u=ep(c);let d=l[n.axis],f=0,p=r?this.applyStack(n,l,r):d,h,m;p!==d&&(f=p-d,p=d),u&&(d=c.barStart,p=c.barEnd-c.barStart,d!==0&&Ir(d)!==Ir(c.barEnd)&&(f=0),f+=d);const y=!Ce(s)&&!u?s:f;let g=n.getPixelForValue(y);if(this.chart.getDataVisibility(t)?h=n.getPixelForValue(f+p):h=g,m=h-g,Math.abs(m)<i){m=A9(m,n,A)*i,d===A&&(g-=m/2);const w=n.getPixelForDecimal(0),B=n.getPixelForDecimal(1),v=Math.min(w,B),_=Math.max(w,B);g=Math.max(Math.min(g,_),v),h=g+m,r&&!u&&(l._stacks[n.axis]._visualValues[a]=n.getValueForPixel(h)-n.getValueForPixel(g))}if(g===n.getPixelForValue(A)){const w=Ir(m)*n.getLineWidthForValue(A)/2;g+=w,m-=w}return{size:m,base:g,head:h,center:h+m/2}}_calculateBarIndexPixels(t,n){const r=n.scale,a=this.options,s=a.skipNull,i=pe(a.maxBarThickness,1/0);let A,l;const c=this._getAxisCount();if(n.grouped){const u=s?this._getStackCount(t):n.stackCount,d=a.barThickness==="flex"?i9(t,n,a,u*c):s9(t,n,a,u*c),f=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,p=this._getAxis().indexOf(pe(f,this.getFirstScaleIdForIndexAxis())),h=this._getStackIndex(this.index,this._cachedMeta.stack,s?t:void 0)+p;A=d.start+d.chunk*h+d.chunk/2,l=Math.min(i,d.chunk*d.ratio)}else A=r.getPixelForValue(this.getParsed(t)[r.axis],t),l=Math.min(i,n.min*n.ratio);return{base:A-l/2,head:A+l/2,center:A,size:l}}draw(){const t=this._cachedMeta,n=t.vScale,r=t.data,a=r.length;let s=0;for(;s<a;++s)this.getParsed(s)[n.axis]!==null&&!r[s].hidden&&r[s].draw(this._ctx)}}G(ou,"id","bar"),G(ou,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),G(ou,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class Au extends ur{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,n,r,a){const s=super.parsePrimitiveData(t,n,r,a);for(let i=0;i<s.length;i++)s[i]._custom=this.resolveDataElementOptions(i+r).radius;return s}parseArrayData(t,n,r,a){const s=super.parseArrayData(t,n,r,a);for(let i=0;i<s.length;i++){const A=n[r+i];s[i]._custom=pe(A[2],this.resolveDataElementOptions(i+r).radius)}return s}parseObjectData(t,n,r,a){const s=super.parseObjectData(t,n,r,a);for(let i=0;i<s.length;i++){const A=n[r+i];s[i]._custom=pe(A&&A.r&&+A.r,this.resolveDataElementOptions(i+r).radius)}return s}getMaxOverflow(){const t=this._cachedMeta.data;let n=0;for(let r=t.length-1;r>=0;--r)n=Math.max(n,t[r].size(this.resolveDataElementOptions(r))/2);return n>0&&n}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:a,yScale:s}=n,i=this.getParsed(t),A=a.getLabelForValue(i.x),l=s.getLabelForValue(i.y),c=i._custom;return{label:r[t]||"",value:"("+A+", "+l+(c?", "+c:"")+")"}}update(t){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,r,a){const s=a==="reset",{iScale:i,vScale:A}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(n,a),u=i.axis,d=A.axis;for(let f=n;f<n+r;f++){const p=t[f],h=!s&&this.getParsed(f),m={},y=m[u]=s?i.getPixelForDecimal(.5):i.getPixelForValue(h[u]),g=m[d]=s?A.getBasePixel():A.getPixelForValue(h[d]);m.skip=isNaN(y)||isNaN(g),c&&(m.options=l||this.resolveDataElementOptions(f,p.active?"active":a),s&&(m.options.radius=0)),this.updateElement(p,f,m,a)}}resolveDataElementOptions(t,n){const r=this.getParsed(t);let a=super.resolveDataElementOptions(t,n);a.$shared&&(a=Object.assign({},a,{$shared:!1}));const s=a.radius;return n!=="active"&&(a.radius=0),a.radius+=pe(r&&r._custom,s),a}}G(Au,"id","bubble"),G(Au,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),G(Au,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function f9(e,t,n){let r=1,a=1,s=0,i=0;if(t<it){const A=e,l=A+t,c=Math.cos(A),u=Math.sin(A),d=Math.cos(l),f=Math.sin(l),p=(B,v,_)=>al(B,A,l,!0)?1:Math.max(v,v*n,_,_*n),h=(B,v,_)=>al(B,A,l,!0)?-1:Math.min(v,v*n,_,_*n),m=p(0,c,d),y=p(dt,u,f),g=h(be,c,d),w=h(be+dt,u,f);r=(m-g)/2,a=(y-w)/2,s=-(m+g)/2,i=-(y+w)/2}return{ratioX:r,ratioY:a,offsetX:s,offsetY:i}}class Hs extends ur{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const r=this.getDataset().data,a=this._cachedMeta;if(this._parsing===!1)a._parsed=r;else{let s=l=>+r[l];if(ke(r[t])){const{key:l="value"}=this._parsing;s=c=>+fs(r[c],l)}let i,A;for(i=t,A=t+n;i<A;++i)a._parsed[i]=s(i)}}_getRotation(){return Mt(this.options.rotation-90)}_getCircumference(){return Mt(this.options.circumference)}_getRotationExtents(){let t=it,n=-it;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const a=this.chart.getDatasetMeta(r).controller,s=a._getRotation(),i=a._getCircumference();t=Math.min(t,s),n=Math.max(n,s+i)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:r}=n,a=this._cachedMeta,s=a.data,i=this.getMaxBorderWidth()+this.getMaxOffset(s)+this.options.spacing,A=Math.max((Math.min(r.width,r.height)-i)/2,0),l=Math.min(EN(this.options.cutout,A),1),c=this._getRingWeight(this.index),{circumference:u,rotation:d}=this._getRotationExtents(),{ratioX:f,ratioY:p,offsetX:h,offsetY:m}=f9(d,u,l),y=(r.width-i)/f,g=(r.height-i)/p,w=Math.max(Math.min(y,g)/2,0),B=BC(this.options.radius,w),v=Math.max(B*l,0),_=(B-v)/this._getVisibleDatasetWeightTotal();this.offsetX=h*B,this.offsetY=m*B,a.total=this.calculateTotal(),this.outerRadius=B-_*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-_*c,0),this.updateElements(s,0,s.length,t)}_circumference(t,n){const r=this.options,a=this._cachedMeta,s=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(t)||a._parsed[t]===null||a.data[t].hidden?0:this.calculateCircumference(a._parsed[t]*s/it)}updateElements(t,n,r,a){const s=a==="reset",i=this.chart,A=i.chartArea,c=i.options.animation,u=(A.left+A.right)/2,d=(A.top+A.bottom)/2,f=s&&c.animateScale,p=f?0:this.innerRadius,h=f?0:this.outerRadius,{sharedOptions:m,includeOptions:y}=this._getSharedOptions(n,a);let g=this._getRotation(),w;for(w=0;w<n;++w)g+=this._circumference(w,s);for(w=n;w<n+r;++w){const B=this._circumference(w,s),v=t[w],_={x:u+this.offsetX,y:d+this.offsetY,startAngle:g,endAngle:g+B,circumference:B,outerRadius:h,innerRadius:p};y&&(_.options=m||this.resolveDataElementOptions(w,v.active?"active":a)),g+=B,this.updateElement(v,w,_,a)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let r=0,a;for(a=0;a<n.length;a++){const s=t._parsed[a];s!==null&&!isNaN(s)&&this.chart.getDataVisibility(a)&&!n[a].hidden&&(r+=Math.abs(s))}return r}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?it*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,a=r.data.labels||[],s=Ul(n._parsed[t],r.options.locale);return{label:a[t]||"",value:s}}getMaxBorderWidth(t){let n=0;const r=this.chart;let a,s,i,A,l;if(!t){for(a=0,s=r.data.datasets.length;a<s;++a)if(r.isDatasetVisible(a)){i=r.getDatasetMeta(a),t=i.data,A=i.controller;break}}if(!t)return 0;for(a=0,s=t.length;a<s;++a)l=A.resolveDataElementOptions(a),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let r=0,a=t.length;r<a;++r){const s=this.resolveDataElementOptions(r);n=Math.max(n,s.offset||0,s.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let r=0;r<t;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(t){return Math.max(pe(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}G(Hs,"id","doughnut"),G(Hs,"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"}),G(Hs,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),G(Hs,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data,{labels:{pointStyle:r,textAlign:a,color:s,useBorderRadius:i,borderRadius:A}}=t.legend.options;return n.labels.length&&n.datasets.length?n.labels.map((l,c)=>{const d=t.getDatasetMeta(0).controller.getStyle(c);return{text:l,fillStyle:d.backgroundColor,fontColor:s,hidden:!t.getDataVisibility(c),lineDash:d.borderDash,lineDashOffset:d.borderDashOffset,lineJoin:d.borderJoinStyle,lineWidth:d.borderWidth,strokeStyle:d.borderColor,textAlign:a,pointStyle:r,borderRadius:i&&(A||d.borderRadius),index:c}}):[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});class lu extends ur{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:a=[],_dataset:s}=n,i=this.chart._animationsDisabled;let{start:A,count:l}=xC(n,a,i);this._drawStart=A,this._drawCount=l,FC(n)&&(A=0,l=a.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!s._decimated,r.points=a;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(r,void 0,{animated:!i,options:c},t),this.updateElements(a,A,l,t)}updateElements(t,n,r,a){const s=a==="reset",{iScale:i,vScale:A,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:d}=this._getSharedOptions(n,a),f=i.axis,p=A.axis,{spanGaps:h,segment:m}=this.options,y=ps(h)?h:Number.POSITIVE_INFINITY,g=this.chart._animationsDisabled||s||a==="none",w=n+r,B=t.length;let v=n>0&&this.getParsed(n-1);for(let _=0;_<B;++_){const b=t[_],k=g?b:{};if(_<n||_>=w){k.skip=!0;continue}const C=this.getParsed(_),E=Ce(C[p]),D=k[f]=i.getPixelForValue(C[f],_),T=k[p]=s||E?A.getBasePixel():A.getPixelForValue(l?this.applyStack(A,C,l):C[p],_);k.skip=isNaN(D)||isNaN(T)||E,k.stop=_>0&&Math.abs(C[f]-v[f])>y,m&&(k.parsed=C,k.raw=c.data[_]),d&&(k.options=u||this.resolveDataElementOptions(_,b.active?"active":a)),g||this.updateElement(b,_,k,a),v=C}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,a=t.data||[];if(!a.length)return r;const s=a[0].size(this.resolveDataElementOptions(0)),i=a[a.length-1].size(this.resolveDataElementOptions(a.length-1));return Math.max(r,s,i)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}G(lu,"id","line"),G(lu,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),G(lu,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class xA extends ur{constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,a=r.data.labels||[],s=Ul(n._parsed[t].r,r.options.locale);return{label:a[t]||"",value:s}}parseObjectData(t,n,r,a){return MC.bind(this)(t,n,r,a)}update(t){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){const t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((r,a)=>{const s=this.getParsed(a).r;!isNaN(s)&&this.chart.getDataVisibility(a)&&(s<n.min&&(n.min=s),s>n.max&&(n.max=s))}),n}_updateRadius(){const t=this.chart,n=t.chartArea,r=t.options,a=Math.min(n.right-n.left,n.bottom-n.top),s=Math.max(a/2,0),i=Math.max(r.cutoutPercentage?s/100*r.cutoutPercentage:1,0),A=(s-i)/t.getVisibleDatasetCount();this.outerRadius=s-A*this.index,this.innerRadius=this.outerRadius-A}updateElements(t,n,r,a){const s=a==="reset",i=this.chart,l=i.options.animation,c=this._cachedMeta.rScale,u=c.xCenter,d=c.yCenter,f=c.getIndexAngle(0)-.5*be;let p=f,h;const m=360/this.countVisibleElements();for(h=0;h<n;++h)p+=this._computeAngle(h,a,m);for(h=n;h<n+r;h++){const y=t[h];let g=p,w=p+this._computeAngle(h,a,m),B=i.getDataVisibility(h)?c.getDistanceFromCenterForValue(this.getParsed(h).r):0;p=w,s&&(l.animateScale&&(B=0),l.animateRotate&&(g=w=f));const v={x:u,y:d,innerRadius:0,outerRadius:B,startAngle:g,endAngle:w,options:this.resolveDataElementOptions(h,y.active?"active":a)};this.updateElement(y,h,v,a)}}countVisibleElements(){const t=this._cachedMeta;let n=0;return t.data.forEach((r,a)=>{!isNaN(this.getParsed(a).r)&&this.chart.getDataVisibility(a)&&n++}),n}_computeAngle(t,n,r){return this.chart.getDataVisibility(t)?Mt(this.resolveDataElementOptions(t,n).angle||r):0}}G(xA,"id","polarArea"),G(xA,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),G(xA,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:a}}=t.legend.options;return n.labels.map((s,i)=>{const l=t.getDatasetMeta(0).controller.getStyle(i);return{text:s,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:a,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(i),index:i}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class xh extends Hs{}G(xh,"id","pie"),G(xh,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class cu extends ur{getLabelAndValue(t){const n=this._cachedMeta.vScale,r=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(r[n.axis])}}parseObjectData(t,n,r,a){return MC.bind(this)(t,n,r,a)}update(t){const n=this._cachedMeta,r=n.dataset,a=n.data||[],s=n.iScale.getLabels();if(r.points=a,t!=="resize"){const i=this.resolveDatasetElementOptions(t);this.options.showLine||(i.borderWidth=0);const A={_loop:!0,_fullLoop:s.length===a.length,options:i};this.updateElement(r,void 0,A,t)}this.updateElements(a,0,a.length,t)}updateElements(t,n,r,a){const s=this._cachedMeta.rScale,i=a==="reset";for(let A=n;A<n+r;A++){const l=t[A],c=this.resolveDataElementOptions(A,l.active?"active":a),u=s.getPointPositionForValue(A,this.getParsed(A).r),d=i?s.xCenter:u.x,f=i?s.yCenter:u.y,p={x:d,y:f,angle:u.angle,skip:isNaN(d)||isNaN(f),options:c};this.updateElement(l,A,p,a)}}}G(cu,"id","radar"),G(cu,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),G(cu,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class uu extends ur{getLabelAndValue(t){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:a,yScale:s}=n,i=this.getParsed(t),A=a.getLabelForValue(i.x),l=s.getLabelForValue(i.y);return{label:r[t]||"",value:"("+A+", "+l+")"}}update(t){const n=this._cachedMeta,{data:r=[]}=n,a=this.chart._animationsDisabled;let{start:s,count:i}=xC(n,r,a);if(this._drawStart=s,this._drawCount=i,FC(n)&&(s=0,i=r.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:A,_dataset:l}=n;A._chart=this.chart,A._datasetIndex=this.index,A._decimated=!!l._decimated,A.points=r;const c=this.resolveDatasetElementOptions(t);c.segment=this.options.segment,this.updateElement(A,void 0,{animated:!a,options:c},t)}else this.datasetElementType&&(delete n.dataset,this.datasetElementType=!1);this.updateElements(r,s,i,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,n,r,a){const s=a==="reset",{iScale:i,vScale:A,_stacked:l,_dataset:c}=this._cachedMeta,u=this.resolveDataElementOptions(n,a),d=this.getSharedOptions(u),f=this.includeOptions(a,d),p=i.axis,h=A.axis,{spanGaps:m,segment:y}=this.options,g=ps(m)?m:Number.POSITIVE_INFINITY,w=this.chart._animationsDisabled||s||a==="none";let B=n>0&&this.getParsed(n-1);for(let v=n;v<n+r;++v){const _=t[v],b=this.getParsed(v),k=w?_:{},C=Ce(b[h]),E=k[p]=i.getPixelForValue(b[p],v),D=k[h]=s||C?A.getBasePixel():A.getPixelForValue(l?this.applyStack(A,b,l):b[h],v);k.skip=isNaN(E)||isNaN(D)||C,k.stop=v>0&&Math.abs(b[p]-B[p])>g,y&&(k.parsed=b,k.raw=c.data[v]),f&&(k.options=d||this.resolveDataElementOptions(v,_.active?"active":a)),w||this.updateElement(_,v,k,a),B=b}this.updateSharedOptions(d,a,u)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let A=0;for(let l=n.length-1;l>=0;--l)A=Math.max(A,n[l].size(this.resolveDataElementOptions(l))/2);return A>0&&A}const r=t.dataset,a=r.options&&r.options.borderWidth||0;if(!n.length)return a;const s=n[0].size(this.resolveDataElementOptions(0)),i=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(a,s,i)/2}}G(uu,"id","scatter"),G(uu,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),G(uu,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var p9=Object.freeze({__proto__:null,BarController:ou,BubbleController:Au,DoughnutController:Hs,LineController:lu,PieController:xh,PolarAreaController:xA,RadarController:cu,ScatterController:uu});function Ts(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Wg{constructor(t){G(this,"options");this.options=t||{}}static override(t){Object.assign(Wg.prototype,t)}init(){}formats(){return Ts()}parse(){return Ts()}format(){return Ts()}add(){return Ts()}diff(){return Ts()}startOf(){return Ts()}endOf(){return Ts()}}var GC={_date:Wg};function h9(e,t,n,r){const{controller:a,data:s,_sorted:i}=e,A=a._cachedMeta.iScale,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(A&&t===A.axis&&t!=="r"&&i&&s.length){const c=A._reversePixels?NN:la;if(r){if(a._sharedOptions){const u=s[0],d=typeof u.getRange=="function"&&u.getRange(t);if(d){const f=c(s,t,n-d),p=c(s,t,n+d);return{lo:f.lo,hi:p.hi}}}}else{const u=c(s,t,n);if(l){const{vScale:d}=a._cachedMeta,{_parsed:f}=e,p=f.slice(0,u.lo+1).reverse().findIndex(m=>!Ce(m[d.axis]));u.lo-=Math.max(0,p);const h=f.slice(u.hi).findIndex(m=>!Ce(m[d.axis]));u.hi+=Math.max(0,h)}return u}}return{lo:0,hi:s.length-1}}function Ql(e,t,n,r,a){const s=e.getSortedVisibleDatasetMetas(),i=n[t];for(let A=0,l=s.length;A<l;++A){const{index:c,data:u}=s[A],{lo:d,hi:f}=h9(s[A],t,i,a);for(let p=d;p<=f;++p){const h=u[p];h.skip||r(h,c,p)}}}function m9(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(r,a){const s=t?Math.abs(r.x-a.x):0,i=n?Math.abs(r.y-a.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(i,2))}}function tp(e,t,n,r,a){const s=[];return!a&&!e.isPointInArea(t)||Ql(e,n,t,function(A,l,c){!a&&!ca(A,e.chartArea,0)||A.inRange(t.x,t.y,r)&&s.push({element:A,datasetIndex:l,index:c})},!0),s}function g9(e,t,n,r){let a=[];function s(i,A,l){const{startAngle:c,endAngle:u}=i.getProps(["startAngle","endAngle"],r),{angle:d}=_C(i,{x:t.x,y:t.y});al(d,c,u)&&a.push({element:i,datasetIndex:A,index:l})}return Ql(e,n,t,s),a}function v9(e,t,n,r,a,s){let i=[];const A=m9(n);let l=Number.POSITIVE_INFINITY;function c(u,d,f){const p=u.inRange(t.x,t.y,a);if(r&&!p)return;const h=u.getCenterPoint(a);if(!(!!s||e.isPointInArea(h))&&!p)return;const y=A(t,h);y<l?(i=[{element:u,datasetIndex:d,index:f}],l=y):y===l&&i.push({element:u,datasetIndex:d,index:f})}return Ql(e,n,t,c),i}function np(e,t,n,r,a,s){return!s&&!e.isPointInArea(t)?[]:n==="r"&&!r?g9(e,t,n,a):v9(e,t,n,r,a,s)}function qy(e,t,n,r,a){const s=[],i=n==="x"?"inXRange":"inYRange";let A=!1;return Ql(e,n,t,(l,c,u)=>{l[i]&&l[i](t[n],a)&&(s.push({element:l,datasetIndex:c,index:u}),A=A||l.inRange(t.x,t.y,a))}),r&&!A?[]:s}var y9={evaluateInteractionItems:Ql,modes:{index(e,t,n,r){const a=Ls(t,e),s=n.axis||"x",i=n.includeInvisible||!1,A=n.intersect?tp(e,a,s,r,i):np(e,a,s,!1,r,i),l=[];return A.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const u=A[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(e,t,n,r){const a=Ls(t,e),s=n.axis||"xy",i=n.includeInvisible||!1;let A=n.intersect?tp(e,a,s,r,i):np(e,a,s,!1,r,i);if(A.length>0){const l=A[0].datasetIndex,c=e.getDatasetMeta(l).data;A=[];for(let u=0;u<c.length;++u)A.push({element:c[u],datasetIndex:l,index:u})}return A},point(e,t,n,r){const a=Ls(t,e),s=n.axis||"xy",i=n.includeInvisible||!1;return tp(e,a,s,r,i)},nearest(e,t,n,r){const a=Ls(t,e),s=n.axis||"xy",i=n.includeInvisible||!1;return np(e,a,s,n.intersect,r,i)},x(e,t,n,r){const a=Ls(t,e);return qy(e,a,"x",n.intersect,r)},y(e,t,n,r){const a=Ls(t,e);return qy(e,a,"y",n.intersect,r)}}};const jC=["left","top","right","bottom"];function zo(e,t){return e.filter(n=>n.pos===t)}function Xy(e,t){return e.filter(n=>jC.indexOf(n.pos)===-1&&n.box.axis===t)}function Wo(e,t){return e.sort((n,r)=>{const a=t?r:n,s=t?n:r;return a.weight===s.weight?a.index-s.index:a.weight-s.weight})}function B9(e){const t=[];let n,r,a,s,i,A;for(n=0,r=(e||[]).length;n<r;++n)a=e[n],{position:s,options:{stack:i,stackWeight:A=1}}=a,t.push({index:n,box:a,pos:s,horizontal:a.isHorizontal(),weight:a.weight,stack:i&&s+i,stackWeight:A});return t}function w9(e){const t={};for(const n of e){const{stack:r,pos:a,stackWeight:s}=n;if(!r||!jC.includes(a))continue;const i=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});i.count++,i.weight+=s}return t}function b9(e,t){const n=w9(e),{vBoxMaxWidth:r,hBoxMaxHeight:a}=t;let s,i,A;for(s=0,i=e.length;s<i;++s){A=e[s];const{fullSize:l}=A.box,c=n[A.stack],u=c&&A.stackWeight/c.weight;A.horizontal?(A.width=u?u*r:l&&t.availableWidth,A.height=a):(A.width=r,A.height=u?u*a:l&&t.availableHeight)}return n}function _9(e){const t=B9(e),n=Wo(t.filter(c=>c.box.fullSize),!0),r=Wo(zo(t,"left"),!0),a=Wo(zo(t,"right")),s=Wo(zo(t,"top"),!0),i=Wo(zo(t,"bottom")),A=Xy(t,"x"),l=Xy(t,"y");return{fullSize:n,leftAndTop:r.concat(s),rightAndBottom:a.concat(l).concat(i).concat(A),chartArea:zo(t,"chartArea"),vertical:r.concat(a).concat(l),horizontal:s.concat(i).concat(A)}}function Jy(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function YC(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function C9(e,t,n,r){const{pos:a,box:s}=n,i=e.maxPadding;if(!ke(a)){n.size&&(e[a]-=n.size);const d=r[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?s.height:s.width),n.size=d.size/d.count,e[a]+=n.size}s.getPadding&&YC(i,s.getPadding());const A=Math.max(0,t.outerWidth-Jy(i,e,"left","right")),l=Math.max(0,t.outerHeight-Jy(i,e,"top","bottom")),c=A!==e.w,u=l!==e.h;return e.w=A,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function k9(e){const t=e.maxPadding;function n(r){const a=Math.max(t[r]-e[r],0);return e[r]+=a,a}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function E9(e,t){const n=t.maxPadding;function r(a){const s={left:0,top:0,right:0,bottom:0};return a.forEach(i=>{s[i]=Math.max(t[i],n[i])}),s}return r(e?["left","right"]:["top","bottom"])}function iA(e,t,n,r){const a=[];let s,i,A,l,c,u;for(s=0,i=e.length,c=0;s<i;++s){A=e[s],l=A.box,l.update(A.width||t.w,A.height||t.h,E9(A.horizontal,t));const{same:d,other:f}=C9(t,n,A,r);c|=d&&a.length,u=u||f,l.fullSize||a.push(A)}return c&&iA(a,t,n,r)||u}function hc(e,t,n,r,a){e.top=n,e.left=t,e.right=t+r,e.bottom=n+a,e.width=r,e.height=a}function Zy(e,t,n,r){const a=n.padding;let{x:s,y:i}=t;for(const A of e){const l=A.box,c=r[A.stack]||{count:1,placed:0,weight:1},u=A.stackWeight/c.weight||1;if(A.horizontal){const d=t.w*u,f=c.size||l.height;Tn(c.start)&&(i=c.start),l.fullSize?hc(l,a.left,i,n.outerWidth-a.right-a.left,f):hc(l,t.left+c.placed,i,d,f),c.start=i,c.placed+=d,i=l.bottom}else{const d=t.h*u,f=c.size||l.width;Tn(c.start)&&(s=c.start),l.fullSize?hc(l,s,a.top,f,n.outerHeight-a.bottom-a.top):hc(l,s,t.top+c.placed,f,d),c.start=s,c.placed+=d,s=l.right}}t.x=s,t.y=i}var on={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const a=Ot(e.options.layout.padding),s=Math.max(t-a.width,0),i=Math.max(n-a.height,0),A=_9(e.boxes),l=A.vertical,c=A.horizontal;je(e.boxes,m=>{typeof m.beforeLayout=="function"&&m.beforeLayout()});const u=l.reduce((m,y)=>y.box.options&&y.box.options.display===!1?m:m+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:a,availableWidth:s,availableHeight:i,vBoxMaxWidth:s/2/u,hBoxMaxHeight:i/2}),f=Object.assign({},a);YC(f,Ot(r));const p=Object.assign({maxPadding:f,w:s,h:i,x:a.left,y:a.top},a),h=b9(l.concat(c),d);iA(A.fullSize,p,d,h),iA(l,p,d,h),iA(c,p,d,h)&&iA(l,p,d,h),k9(p),Zy(A.leftAndTop,p,d,h),p.x+=p.w,p.y+=p.h,Zy(A.rightAndBottom,p,d,h),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},je(A.chartArea,m=>{const y=m.box;Object.assign(y,e.chartArea),y.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class qC{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,a){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,a?Math.floor(n/a):r)}}isAttached(t){return!0}updateConfig(t){}}class S9 extends qC{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const du="$chartjs",x9={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},eB=e=>e===null||e==="";function F9(e,t){const n=e.style,r=e.getAttribute("height"),a=e.getAttribute("width");if(e[du]={initial:{height:r,width:a,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",eB(a)){const s=My(e,"width");s!==void 0&&(e.width=s)}if(eB(r))if(e.style.height==="")e.height=e.width/(t||2);else{const s=My(e,"height");s!==void 0&&(e.height=s)}return e}const XC=IP?{passive:!0}:!1;function T9(e,t,n){e&&e.addEventListener(t,n,XC)}function I9(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,XC)}function D9(e,t){const n=x9[e.type]||e.type,{x:r,y:a}=Ls(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:a!==void 0?a:null}}function Hu(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function U9(e,t,n){const r=e.canvas,a=new MutationObserver(s=>{let i=!1;for(const A of s)i=i||Hu(A.addedNodes,r),i=i&&!Hu(A.removedNodes,r);i&&n()});return a.observe(document,{childList:!0,subtree:!0}),a}function O9(e,t,n){const r=e.canvas,a=new MutationObserver(s=>{let i=!1;for(const A of s)i=i||Hu(A.removedNodes,r),i=i&&!Hu(A.addedNodes,r);i&&n()});return a.observe(document,{childList:!0,subtree:!0}),a}const sl=new Map;let tB=0;function JC(){const e=window.devicePixelRatio;e!==tB&&(tB=e,sl.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function L9(e,t){sl.size||window.addEventListener("resize",JC),sl.set(e,t)}function Q9(e){sl.delete(e),sl.size||window.removeEventListener("resize",JC)}function M9(e,t,n){const r=e.canvas,a=r&&Kg(r);if(!a)return;const s=SC((A,l)=>{const c=a.clientWidth;n(A,l),c<a.clientWidth&&n()},window),i=new ResizeObserver(A=>{const l=A[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||s(c,u)});return i.observe(a),L9(e,s),i}function rp(e,t,n){n&&n.disconnect(),t==="resize"&&Q9(e)}function N9(e,t,n){const r=e.canvas,a=SC(s=>{e.ctx!==null&&n(D9(s,e))},e);return T9(r,t,a),a}class P9 extends qC{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(F9(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[du])return!1;const r=n[du].initial;["height","width"].forEach(s=>{const i=r[s];Ce(i)?n.removeAttribute(s):n.setAttribute(s,i)});const a=r.style||{};return Object.keys(a).forEach(s=>{n.style[s]=a[s]}),n.width=n.width,delete n[du],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const a=t.$proxies||(t.$proxies={}),i={attach:U9,detach:O9,resize:M9}[n]||N9;a[n]=i(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),a=r[n];if(!a)return;({attach:rp,detach:rp,resize:rp}[n]||I9)(t,n,a),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,a){return TP(t,n,r,a)}isAttached(t){const n=t&&Kg(t);return!!(n&&n.isConnected)}}function R9(e){return!$g()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?S9:P9}var Zc;let gn=(Zc=class{constructor(){G(this,"x");G(this,"y");G(this,"active",!1);G(this,"options");G(this,"$animations")}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return ps(this.x)&&ps(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const a={};return t.forEach(s=>{a[s]=r[s]&&r[s].active()?r[s]._to:this[s]}),a}},G(Zc,"defaults",{}),G(Zc,"defaultRoutes"),Zc);function H9(e,t){const n=e.options.ticks,r=V9(e),a=Math.min(n.maxTicksLimit||r,r),s=n.major.enabled?K9(t):[],i=s.length,A=s[0],l=s[i-1],c=[];if(i>a)return z9(t,c,s,i/a),c;const u=$9(s,t,a);if(i>0){let d,f;const p=i>1?Math.round((l-A)/(i-1)):null;for(mc(t,c,u,Ce(p)?0:A-p,A),d=0,f=i-1;d<f;d++)mc(t,c,u,s[d],s[d+1]);return mc(t,c,u,l,Ce(p)?t.length:l+p),c}return mc(t,c,u),c}function V9(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),a=e._maxLength/n;return Math.floor(Math.min(r,a))}function $9(e,t,n){const r=W9(e),a=t.length/n;if(!r)return Math.max(a,1);const s=UN(r);for(let i=0,A=s.length-1;i<A;i++){const l=s[i];if(l>a)return l}return Math.max(a,1)}function K9(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function z9(e,t,n,r){let a=0,s=n[0],i;for(r=Math.ceil(r),i=0;i<e.length;i++)i===s&&(t.push(e[i]),a++,s=n[a*r])}function mc(e,t,n,r,a){const s=pe(r,0),i=Math.min(pe(a,e.length),e.length);let A=0,l,c,u;for(n=Math.ceil(n),a&&(l=a-r,n=l/Math.floor(l/n)),u=s;u<0;)A++,u=Math.round(s+A*n);for(c=Math.max(s,0);c<i;c++)c===u&&(t.push(e[c]),A++,u=Math.round(s+A*n))}function W9(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}const G9=e=>e==="left"?"right":e==="right"?"left":e,nB=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,rB=(e,t)=>Math.min(t||e,e);function aB(e,t){const n=[],r=e.length/t,a=e.length;let s=0;for(;s<a;s+=r)n.push(e[Math.floor(s)]);return n}function j9(e,t,n){const r=e.ticks.length,a=Math.min(t,r-1),s=e._startPixel,i=e._endPixel,A=1e-6;let l=e.getPixelForTick(a),c;if(!(n&&(r===1?c=Math.max(l-s,i-l):t===0?c=(e.getPixelForTick(1)-l)/2:c=(l-e.getPixelForTick(a-1))/2,l+=a<t?c:-c,l<s-A||l>i+A)))return l}function Y9(e,t){je(e,n=>{const r=n.gc,a=r.length/2;let s;if(a>t){for(s=0;s<a;++s)delete n.data[r[s]];r.splice(0,a)}})}function Go(e){return e.drawTicks?e.tickLength:0}function sB(e,t){if(!e.display)return 0;const n=yt(e.font,t),r=Ot(e.padding);return(Ve(e.text)?e.text.length:1)*n.lineHeight+r.height}function q9(e,t){return _s(e,{scale:t,type:"scale"})}function X9(e,t,n){return _s(e,{tick:n,index:t,type:"tick"})}function J9(e,t,n){let r=Mg(e);return(n&&t!=="right"||!n&&t==="right")&&(r=G9(r)),r}function Z9(e,t,n,r){const{top:a,left:s,bottom:i,right:A,chart:l}=e,{chartArea:c,scales:u}=l;let d=0,f,p,h;const m=i-a,y=A-s;if(e.isHorizontal()){if(p=tn(r,s,A),ke(n)){const g=Object.keys(n)[0],w=n[g];h=u[g].getPixelForValue(w)+m-t}else n==="center"?h=(c.bottom+c.top)/2+m-t:h=nB(e,n,t);f=A-s}else{if(ke(n)){const g=Object.keys(n)[0],w=n[g];p=u[g].getPixelForValue(w)-y+t}else n==="center"?p=(c.left+c.right)/2-y+t:p=nB(e,n,t);h=tn(r,i,a),d=n==="left"?-dt:dt}return{titleX:p,titleY:h,maxWidth:f,rotation:d}}class mi extends gn{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,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:r,_suggestedMax:a}=this;return t=Dn(t,Number.POSITIVE_INFINITY),n=Dn(n,Number.NEGATIVE_INFINITY),r=Dn(r,Number.POSITIVE_INFINITY),a=Dn(a,Number.NEGATIVE_INFINITY),{min:Dn(t,r),max:Dn(n,a),minDefined:vt(t),maxDefined:vt(n)}}getMinMax(t){let{min:n,max:r,minDefined:a,maxDefined:s}=this.getUserBounds(),i;if(a&&s)return{min:n,max:r};const A=this.getMatchingVisibleMetas();for(let l=0,c=A.length;l<c;++l)i=A[l].controller.getMinMax(this,t),a||(n=Math.min(n,i.min)),s||(r=Math.max(r,i.max));return n=s&&n>r?r:n,r=a&&n>r?n:r,{min:Dn(n,Dn(r,n)),max:Dn(r,Dn(n,r))}}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(){We(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:a,grace:s,ticks:i}=this.options,A=i.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=AP(this,s,a),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=A<this.ticks.length;this._convertTicksToLabels(l?aB(this.ticks,A):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),i.display&&(i.autoSkip||i.source==="auto")&&(this.ticks=H9(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,t=!t),this._startPixel=n,this._endPixel=r,this._reversePixels=t,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){We(this.options.afterUpdate,[this])}beforeSetDimensions(){We(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(){We(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),We(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){We(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let r,a,s;for(r=0,a=t.length;r<a;r++)s=t[r],s.label=We(n.callback,[s.value,r,t],this)}afterTickToLabelConversion(){We(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){We(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=rB(this.ticks.length,t.ticks.maxTicksLimit),a=n.minRotation||0,s=n.maxRotation;let i=a,A,l,c;if(!this._isVisible()||!n.display||a>=s||r<=1||!this.isHorizontal()){this.labelRotation=a;return}const u=this._getLabelSizes(),d=u.widest.width,f=u.highest.height,p=Wt(this.chart.width-d,0,this.maxWidth);A=t.offset?this.maxWidth/r:p/(r-1),d+6>A&&(A=p/(r-(t.offset?.5:1)),l=this.maxHeight-Go(t.grid)-n.padding-sB(t.title,this.chart.options.font),c=Math.sqrt(d*d+f*f),i=Td(Math.min(Math.asin(Wt((u.highest.height+6)/A,-1,1)),Math.asin(Wt(l/c,-1,1))-Math.asin(Wt(f/c,-1,1)))),i=Math.max(a,Math.min(s,i))),this.labelRotation=i}afterCalculateLabelRotation(){We(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){We(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:a,grid:s}}=this,i=this._isVisible(),A=this.isHorizontal();if(i){const l=sB(a,n.options.font);if(A?(t.width=this.maxWidth,t.height=Go(s)+l):(t.height=this.maxHeight,t.width=Go(s)+l),r.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:f}=this._getLabelSizes(),p=r.padding*2,h=Mt(this.labelRotation),m=Math.cos(h),y=Math.sin(h);if(A){const g=r.mirror?0:y*d.width+m*f.height;t.height=Math.min(this.maxHeight,t.height+g+p)}else{const g=r.mirror?0:m*d.width+y*f.height;t.width=Math.min(this.maxWidth,t.width+g+p)}this._calculatePadding(c,u,y,m)}}this._handleMargins(),A?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,a){const{ticks:{align:s,padding:i},position:A}=this.options,l=this.labelRotation!==0,c=A!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,p=0;l?c?(f=a*t.width,p=r*n.height):(f=r*t.height,p=a*n.width):s==="start"?p=n.width:s==="end"?f=t.width:s!=="inner"&&(f=t.width/2,p=n.width/2),this.paddingLeft=Math.max((f-u+i)*this.width/(this.width-u),0),this.paddingRight=Math.max((p-d+i)*this.width/(this.width-d),0)}else{let u=n.height/2,d=t.height/2;s==="start"?(u=0,d=t.height):s==="end"&&(u=n.height,d=0),this.paddingTop=u+i,this.paddingBottom=d+i}}_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(){We(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n<r;n++)Ce(t[n].label)&&(t.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=aB(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,r){const{ctx:a,_longestTextCache:s}=this,i=[],A=[],l=Math.floor(n/rB(n,r));let c=0,u=0,d,f,p,h,m,y,g,w,B,v,_;for(d=0;d<n;d+=l){if(h=t[d].label,m=this._resolveTickFontOptions(d),a.font=y=m.string,g=s[y]=s[y]||{data:{},gc:[]},w=m.lineHeight,B=v=0,!Ce(h)&&!Ve(h))B=Pu(a,g.data,g.gc,B,h),v=w;else if(Ve(h))for(f=0,p=h.length;f<p;++f)_=h[f],!Ce(_)&&!Ve(_)&&(B=Pu(a,g.data,g.gc,B,_),v+=w);i.push(B),A.push(v),c=Math.max(B,c),u=Math.max(v,u)}Y9(s,n);const b=i.indexOf(c),k=A.indexOf(u),C=E=>({width:i[E]||0,height:A[E]||0});return{first:C(0),last:C(n-1),widest:C(b),highest:C(k),widths:i,heights:A}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return MN(this._alignToPixels?Fs(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const r=n[t];return r.$context||(r.$context=X9(this.getContext(),t,r))}return this.$context||(this.$context=q9(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=Mt(this.labelRotation),r=Math.abs(Math.cos(n)),a=Math.abs(Math.sin(n)),s=this._getLabelSizes(),i=t.autoSkipPadding||0,A=s?s.widest.width+i:0,l=s?s.highest.height+i:0;return this.isHorizontal()?l*r>A*a?A/r:l/a:l*a<A*r?l/r:A/a}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,r=this.chart,a=this.options,{grid:s,position:i,border:A}=a,l=s.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),f=Go(s),p=[],h=A.setContext(this.getContext()),m=h.display?h.width:0,y=m/2,g=function(R){return Fs(r,R,m)};let w,B,v,_,b,k,C,E,D,T,F,U;if(i==="top")w=g(this.bottom),k=this.bottom-f,E=w-y,T=g(t.top)+y,U=t.bottom;else if(i==="bottom")w=g(this.top),T=t.top,U=g(t.bottom)-y,k=w+y,E=this.top+f;else if(i==="left")w=g(this.right),b=this.right-f,C=w-y,D=g(t.left)+y,F=t.right;else if(i==="right")w=g(this.left),D=t.left,F=g(t.right)-y,b=w+y,C=this.left+f;else if(n==="x"){if(i==="center")w=g((t.top+t.bottom)/2+.5);else if(ke(i)){const R=Object.keys(i)[0],$=i[R];w=g(this.chart.scales[R].getPixelForValue($))}T=t.top,U=t.bottom,k=w+y,E=k+f}else if(n==="y"){if(i==="center")w=g((t.left+t.right)/2);else if(ke(i)){const R=Object.keys(i)[0],$=i[R];w=g(this.chart.scales[R].getPixelForValue($))}b=w-y,C=b-f,D=t.left,F=t.right}const W=pe(a.ticks.maxTicksLimit,d),J=Math.max(1,Math.ceil(d/W));for(B=0;B<d;B+=J){const R=this.getContext(B),$=s.setContext(R),de=A.setContext(R),q=$.lineWidth,Ae=$.color,oe=de.dash||[],le=de.dashOffset,ge=$.tickWidth,ie=$.tickColor,Z=$.tickBorderDash||[],M=$.tickBorderDashOffset;v=j9(this,B,l),v!==void 0&&(_=Fs(r,v,q),c?b=C=D=F=_:k=E=T=U=_,p.push({tx1:b,ty1:k,tx2:C,ty2:E,x1:D,y1:T,x2:F,y2:U,width:q,color:Ae,borderDash:oe,borderDashOffset:le,tickWidth:ge,tickColor:ie,tickBorderDash:Z,tickBorderDashOffset:M}))}return this._ticksLength=d,this._borderValue=w,p}_computeLabelItems(t){const n=this.axis,r=this.options,{position:a,ticks:s}=r,i=this.isHorizontal(),A=this.ticks,{align:l,crossAlign:c,padding:u,mirror:d}=s,f=Go(r.grid),p=f+u,h=d?-u:p,m=-Mt(this.labelRotation),y=[];let g,w,B,v,_,b,k,C,E,D,T,F,U="middle";if(a==="top")b=this.bottom-h,k=this._getXAxisLabelAlignment();else if(a==="bottom")b=this.top+h,k=this._getXAxisLabelAlignment();else if(a==="left"){const J=this._getYAxisLabelAlignment(f);k=J.textAlign,_=J.x}else if(a==="right"){const J=this._getYAxisLabelAlignment(f);k=J.textAlign,_=J.x}else if(n==="x"){if(a==="center")b=(t.top+t.bottom)/2+p;else if(ke(a)){const J=Object.keys(a)[0],R=a[J];b=this.chart.scales[J].getPixelForValue(R)+p}k=this._getXAxisLabelAlignment()}else if(n==="y"){if(a==="center")_=(t.left+t.right)/2-p;else if(ke(a)){const J=Object.keys(a)[0],R=a[J];_=this.chart.scales[J].getPixelForValue(R)}k=this._getYAxisLabelAlignment(f).textAlign}n==="y"&&(l==="start"?U="top":l==="end"&&(U="bottom"));const W=this._getLabelSizes();for(g=0,w=A.length;g<w;++g){B=A[g],v=B.label;const J=s.setContext(this.getContext(g));C=this.getPixelForTick(g)+s.labelOffset,E=this._resolveTickFontOptions(g),D=E.lineHeight,T=Ve(v)?v.length:1;const R=T/2,$=J.color,de=J.textStrokeColor,q=J.textStrokeWidth;let Ae=k;i?(_=C,k==="inner"&&(g===w-1?Ae=this.options.reverse?"left":"right":g===0?Ae=this.options.reverse?"right":"left":Ae="center"),a==="top"?c==="near"||m!==0?F=-T*D+D/2:c==="center"?F=-W.highest.height/2-R*D+D:F=-W.highest.height+D/2:c==="near"||m!==0?F=D/2:c==="center"?F=W.highest.height/2-R*D:F=W.highest.height-T*D,d&&(F*=-1),m!==0&&!J.showLabelBackdrop&&(_+=D/2*Math.sin(m))):(b=C,F=(1-T)*D/2);let oe;if(J.showLabelBackdrop){const le=Ot(J.backdropPadding),ge=W.heights[g],ie=W.widths[g];let Z=F-le.top,M=0-le.left;switch(U){case"middle":Z-=ge/2;break;case"bottom":Z-=ge;break}switch(k){case"center":M-=ie/2;break;case"right":M-=ie;break;case"inner":g===w-1?M-=ie:g>0&&(M-=ie/2);break}oe={left:M,top:Z,width:ie+le.width,height:ge+le.height,color:J.backdropColor}}y.push({label:v,font:E,textOffset:F,options:{rotation:m,color:$,strokeColor:de,strokeWidth:q,textAlign:Ae,textBaseline:U,translation:[_,b],backdrop:oe}})}return y}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-Mt(this.labelRotation))return t==="top"?"left":"right";let a="center";return n.align==="start"?a="left":n.align==="end"?a="right":n.align==="inner"&&(a="inner"),a}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:a,padding:s}}=this.options,i=this._getLabelSizes(),A=t+s,l=i.widest.width;let c,u;return n==="left"?a?(u=this.right+s,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-A,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?a?(u=this.left+s,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+A,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:a,width:s,height:i}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,a,s,i),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const a=this.ticks.findIndex(s=>s.value===t);return a>=0?n.setContext(this.getContext(a)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,a=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let s,i;const A=(l,c,u)=>{!u.width||!u.color||(r.save(),r.lineWidth=u.width,r.strokeStyle=u.color,r.setLineDash(u.borderDash||[]),r.lineDashOffset=u.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(s=0,i=a.length;s<i;++s){const l=a[s];n.drawOnChartArea&&A({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&A({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:r,grid:a}}=this,s=r.setContext(this.getContext()),i=r.display?s.width:0;if(!i)return;const A=a.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,u,d,f;this.isHorizontal()?(c=Fs(t,this.left,i)-i/2,u=Fs(t,this.right,A)+A/2,d=f=l):(d=Fs(t,this.top,i)-i/2,f=Fs(t,this.bottom,A)+A/2,c=u=l),n.save(),n.lineWidth=s.width,n.strokeStyle=s.color,n.beginPath(),n.moveTo(c,d),n.lineTo(u,f),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const r=this.ctx,a=this._computeLabelArea();a&&Ol(r,a);const s=this.getLabelItems(t);for(const i of s){const A=i.options,l=i.font,c=i.label,u=i.textOffset;Ai(r,c,0,u,l,A)}a&&Ll(r)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:a}}=this;if(!r.display)return;const s=yt(r.font),i=Ot(r.padding),A=r.align;let l=s.lineHeight/2;n==="bottom"||n==="center"||ke(n)?(l+=i.bottom,Ve(r.text)&&(l+=s.lineHeight*(r.text.length-1))):l+=i.top;const{titleX:c,titleY:u,maxWidth:d,rotation:f}=Z9(this,l,n,A);Ai(t,r.text,0,0,s,{color:r.color,maxWidth:d,rotation:f,textAlign:J9(A,n,a),textBaseline:"middle",translation:[c,u]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,r=pe(t.grid&&t.grid.z,-1),a=pe(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==mi.prototype.draw?[{z:n,draw:s=>{this.draw(s)}}]:[{z:r,draw:s=>{this.drawBackground(),this.drawGrid(s),this.drawTitle()}},{z:a,draw:()=>{this.drawBorder()}},{z:n,draw:s=>{this.drawLabels(s)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",a=[];let s,i;for(s=0,i=n.length;s<i;++s){const A=n[s];A[r]===this.id&&(!t||A.type===t)&&a.push(A)}return a}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return yt(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class gc{constructor(t,n,r){this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let r;nR(n)&&(r=this.register(n));const a=this.items,s=t.id,i=this.scope+"."+s;if(!s)throw new Error("class does not have id: "+t);return s in a||(a[s]=t,eR(t,i,r),this.override&&ot.override(t.id,t.overrides)),i}get(t){return this.items[t]}unregister(t){const n=this.items,r=t.id,a=this.scope;r in n&&delete n[r],a&&r in ot[a]&&(delete ot[a][r],this.override&&delete oi[r])}}function eR(e,t,n){const r=Qr(Object.create(null),[n?ot.get(n):{},ot.get(t),e.defaults]);ot.set(t,r),e.defaultRoutes&&tR(t,e.defaultRoutes),e.descriptors&&ot.describe(t,e.descriptors)}function tR(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),a=r.pop(),s=[e].concat(r).join("."),i=t[n].split("."),A=i.pop(),l=i.join(".");ot.route(s,a,l,A)})}function nR(e){return"id"in e&&"defaults"in e}class rR{constructor(){this.controllers=new gc(ur,"datasets",!0),this.elements=new gc(gn,"elements"),this.plugins=new gc(Object,"plugins"),this.scales=new gc(mi,"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,n,r){[...n].forEach(a=>{const s=r||this._getRegistryForType(a);r||s.isForType(a)||s===this.plugins&&a.id?this._exec(t,s,a):je(a,i=>{const A=r||this._getRegistryForType(i);this._exec(t,A,i)})})}_exec(t,n,r){const a=Og(t);We(r["before"+a],[],r),n[t](r),We(r["after"+a],[],r)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(t))return r}return this.plugins}_get(t,n,r){const a=n.get(t);if(a===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return a}}var _r=new rR;class aR{constructor(){this._init=void 0}notify(t,n,r,a){if(n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install")),this._init===void 0)return;const s=a?this._descriptors(t).filter(a):this._descriptors(t),i=this._notify(s,t,n,r);return n==="afterDestroy"&&(this._notify(s,t,"stop"),this._notify(this._init,t,"uninstall"),this._init=void 0),i}_notify(t,n,r,a){a=a||{};for(const s of t){const i=s.plugin,A=i[r],l=[n,a,s.options];if(We(A,l,i)===!1&&a.cancelable)return!1}return!0}invalidate(){Ce(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const r=t&&t.config,a=pe(r.options&&r.options.plugins,{}),s=sR(r);return a===!1&&!n?[]:oR(t,s,a,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,a=(s,i)=>s.filter(A=>!i.some(l=>A.plugin.id===l.plugin.id));this._notify(a(n,r),t,"stop"),this._notify(a(r,n),t,"start")}}function sR(e){const t={},n=[],r=Object.keys(_r.plugins.items);for(let s=0;s<r.length;s++)n.push(_r.getPlugin(r[s]));const a=e.plugins||[];for(let s=0;s<a.length;s++){const i=a[s];n.indexOf(i)===-1&&(n.push(i),t[i.id]=!0)}return{plugins:n,localIds:t}}function iR(e,t){return!t&&e===!1?null:e===!0?{}:e}function oR(e,{plugins:t,localIds:n},r,a){const s=[],i=e.getContext();for(const A of t){const l=A.id,c=iR(r[l],a);c!==null&&s.push({plugin:A,options:AR(e.config,{plugin:A,local:n[l]},c,i)})}return s}function AR(e,{plugin:t,local:n},r,a){const s=e.pluginScopeKeys(t),i=e.getOptionScopes(r,s);return n&&t.defaults&&i.push(t.defaults),e.createResolver(i,a,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Fh(e,t){const n=ot.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function lR(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function cR(e,t){return e===t?"_index_":"_value_"}function iB(e){if(e==="x"||e==="y"||e==="r")return e}function uR(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function Th(e,...t){if(iB(e))return e;for(const n of t){const r=n.axis||uR(n.position)||e.length>1&&iB(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function oB(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function dR(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return oB(e,"x",n[0])||oB(e,"y",n[0])}return{}}function fR(e,t){const n=oi[e.type]||{scales:{}},r=t.scales||{},a=Fh(e.type,t),s=Object.create(null);return Object.keys(r).forEach(i=>{const A=r[i];if(!ke(A))return console.error(`Invalid scale configuration for scale: ${i}`);if(A._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${i}`);const l=Th(i,A,dR(i,e),ot.scales[A.type]),c=cR(l,a),u=n.scales||{};s[i]=CA(Object.create(null),[{axis:l},A,u[l],u[c]])}),e.data.datasets.forEach(i=>{const A=i.type||e.type,l=i.indexAxis||Fh(A,t),u=(oi[A]||{}).scales||{};Object.keys(u).forEach(d=>{const f=lR(d,l),p=i[f+"AxisID"]||f;s[p]=s[p]||Object.create(null),CA(s[p],[{axis:f},r[p],u[d]])})}),Object.keys(s).forEach(i=>{const A=s[i];CA(A,[ot.scales[A.type],ot.scale])}),s}function ZC(e){const t=e.options||(e.options={});t.plugins=pe(t.plugins,{}),t.scales=fR(e,t)}function ek(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function pR(e){return e=e||{},e.data=ek(e.data),ZC(e),e}const AB=new Map,tk=new Set;function vc(e,t){let n=AB.get(e);return n||(n=t(),AB.set(e,n),tk.add(n)),n}const jo=(e,t,n)=>{const r=fs(t,n);r!==void 0&&e.add(r)};class hR{constructor(t){this._config=pR(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=ek(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(),ZC(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return vc(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return vc(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return vc(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return vc(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let a=r.get(t);return(!a||n)&&(a=new Map,r.set(t,a)),a}getOptionScopes(t,n,r){const{options:a,type:s}=this,i=this._cachedScopes(t,r),A=i.get(n);if(A)return A;const l=new Set;n.forEach(u=>{t&&(l.add(t),u.forEach(d=>jo(l,t,d))),u.forEach(d=>jo(l,a,d)),u.forEach(d=>jo(l,oi[s]||{},d)),u.forEach(d=>jo(l,ot,d)),u.forEach(d=>jo(l,Eh,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),tk.has(n)&&i.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,oi[n]||{},ot.datasets[n]||{},{type:n},ot,Eh]}resolveNamedOptions(t,n,r,a=[""]){const s={$shared:!0},{resolver:i,subPrefixes:A}=lB(this._resolverCache,t,a);let l=i;if(gR(i,n)){s.$shared=!1,r=Fn(r)?r():r;const c=this.createResolver(t,r,A);l=vo(i,r,c)}for(const c of n)s[c]=l[c];return s}createResolver(t,n,r=[""],a){const{resolver:s}=lB(this._resolverCache,t,r);return ke(n)?vo(s,n,void 0,a):s}}function lB(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const a=n.join();let s=r.get(a);return s||(s={resolver:Rg(t,n),subPrefixes:n.filter(A=>!A.toLowerCase().includes("hover"))},r.set(a,s)),s}const mR=e=>ke(e)&&Object.getOwnPropertyNames(e).some(t=>Fn(e[t]));function gR(e,t){const{isScriptable:n,isIndexable:r}=UC(e);for(const a of t){const s=n(a),i=r(a),A=(i||s)&&e[a];if(s&&(Fn(A)||mR(A))||i&&Ve(A))return!0}return!1}var vR="4.5.1";const yR=["top","bottom","left","right","chartArea"];function cB(e,t){return e==="top"||e==="bottom"||yR.indexOf(e)===-1&&t==="x"}function uB(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function dB(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),We(n&&n.onComplete,[e],t)}function BR(e){const t=e.chart,n=t.options.animation;We(n&&n.onProgress,[e],t)}function nk(e){return $g()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const fu={},fB=e=>{const t=nk(e);return Object.values(fu).filter(n=>n.canvas===t).pop()};function wR(e,t,n){const r=Object.keys(e);for(const a of r){const s=+a;if(s>=t){const i=e[a];delete e[a],(n>0||s>t)&&(e[s+n]=i)}}}function bR(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}class He{static register(...t){_r.add(...t),pB()}static unregister(...t){_r.remove(...t),pB()}constructor(t,n){const r=this.config=new hR(n),a=nk(t),s=fB(a);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const i=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||R9(a)),this.platform.updateConfig(r);const A=this.platform.acquireContext(a,i.aspectRatio),l=A&&A.canvas,c=l&&l.height,u=l&&l.width;if(this.id=kN(),this.ctx=A,this.canvas=l,this.width=u,this.height=c,this._options=i,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 aR,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=HN(d=>this.update(d),i.resizeDelay||0),this._dataChanges=[],fu[this.id]=this,!A||!l){console.error("Failed to create chart: can't acquire context from the given item");return}na.listen(this,"complete",dB),na.listen(this,"progress",BR),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:a,_aspectRatio:s}=this;return Ce(t)?n&&s?s:a?r/a: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 _r}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Qy(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Uy(this.canvas,this.ctx),this}stop(){return na.stop(this),this}resize(t,n){na.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,a=this.canvas,s=r.maintainAspectRatio&&this.aspectRatio,i=this.platform.getMaximumSize(a,t,n,s),A=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=i.width,this.height=i.height,this._aspectRatio=this.aspectRatio,Qy(this,A,!0)&&(this.notifyPlugins("resize",{size:i}),We(r.onResize,[this,i],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};je(n,(r,a)=>{r.id=a})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,a=Object.keys(r).reduce((i,A)=>(i[A]=!1,i),{});let s=[];n&&(s=s.concat(Object.keys(n).map(i=>{const A=n[i],l=Th(i,A),c=l==="r",u=l==="x";return{options:A,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),je(s,i=>{const A=i.options,l=A.id,c=Th(l,A),u=pe(A.type,i.dtype);(A.position===void 0||cB(A.position,c)!==cB(i.dposition))&&(A.position=i.dposition),a[l]=!0;let d=null;if(l in r&&r[l].type===u)d=r[l];else{const f=_r.getScale(u);d=new f({id:l,type:u,ctx:this.ctx,chart:this}),r[d.id]=d}d.init(A,t)}),je(a,(i,A)=>{i||delete r[A]}),je(r,i=>{on.configure(this,i,i.options),on.addBox(this,i)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((a,s)=>a.index-s.index),r>n){for(let a=n;a<r;++a)this._destroyDatasetMeta(a);t.splice(n,r-n)}this._sortedMetasets=t.slice(0).sort(uB("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((r,a)=>{n.filter(s=>s===r._dataset).length===0&&this._destroyDatasetMeta(a)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,a;for(this._removeUnreferencedMetasets(),r=0,a=n.length;r<a;r++){const s=n[r];let i=this.getDatasetMeta(r);const A=s.type||this.config.type;if(i.type&&i.type!==A&&(this._destroyDatasetMeta(r),i=this.getDatasetMeta(r)),i.type=A,i.indexAxis=s.indexAxis||Fh(A,this.options),i.order=s.order||0,i.index=r,i.label=""+s.label,i.visible=this.isDatasetVisible(r),i.controller)i.controller.updateIndex(r),i.controller.linkScales();else{const l=_r.getController(A),{datasetElementType:c,dataElementType:u}=ot.datasets[A];Object.assign(l,{dataElementType:_r.getElement(u),datasetElementType:c&&_r.getElement(c)}),i.controller=new l(this,r),t.push(i.controller)}}return this._updateMetasets(),t}_resetElements(){je(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),a=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let i=0;for(let c=0,u=this.data.datasets.length;c<u;c++){const{controller:d}=this.getDatasetMeta(c),f=!a&&s.indexOf(d)===-1;d.buildOrUpdateElements(f),i=Math.max(+d.getMaxOverflow(),i)}i=this._minPadding=r.layout.autoPadding?i:0,this._updateLayout(i),a||je(s,c=>{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(uB("z","_idx"));const{_active:A,_lastEvent:l}=this;l?this._eventHandler(l,!0):A.length&&this._updateHoverStyles(A,A,!0),this.render()}_updateScales(){je(this.scales,t=>{on.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!ky(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:a,count:s}of n){const i=r==="_removeElements"?-s:s;wR(t,a,i)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=s=>new Set(t.filter(i=>i[0]===s).map((i,A)=>A+","+i.splice(1).join(","))),a=r(0);for(let s=1;s<n;s++)if(!ky(a,r(s)))return;return Array.from(a).map(s=>s.split(",")).map(s=>({method:s[1],start:+s[2],count:+s[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;on.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],je(this.boxes,a=>{r&&a.position==="chartArea"||(a.configure&&a.configure(),this._layers.push(...a._layers()))},this),this._layers.forEach((a,s)=>{a._idx=s}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,Fn(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const r=this.getDatasetMeta(t),a={meta:r,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",a)!==!1&&(r.controller._update(n),a.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",a))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(na.has(this)?this.attached&&!na.running(this)&&na.start(this):(this.draw(),dB({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:r,height:a}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,a)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,r=[];let a,s;for(a=0,s=n.length;a<s;++a){const i=n[a];(!t||i.visible)&&r.push(i)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r={meta:t,index:t.index,cancelable:!0},a=KC(this,t);this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(a&&Ol(n,a),t.controller.draw(),a&&Ll(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return ca(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,a){const s=y9.modes[n];return typeof s=="function"?s(this,t,r,a):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let a=r.filter(s=>s&&s._dataset===n).pop();return a||(a={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(a)),a}getContext(){return this.$context||(this.$context=_s(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const a=r?"show":"hide",s=this.getDatasetMeta(t),i=s.controller._resolveAnimations(void 0,a);Tn(n)?(s.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),i.update(s,{visible:r}),this.update(A=>A.datasetIndex===t?a:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),na.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Uy(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete fu[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,n=this.platform,r=(s,i)=>{n.addEventListener(this,s,i),t[s]=i},a=(s,i,A)=>{s.offsetX=i,s.offsetY=A,this._eventHandler(s)};je(this.options.events,s=>r(s,a))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),t[l]=c},a=(l,c)=>{t[l]&&(n.removeEventListener(this,l,c),delete t[l])},s=(l,c)=>{this.canvas&&this.resize(l,c)};let i;const A=()=>{a("attach",A),this.attached=!0,this.resize(),r("resize",s),r("detach",i)};i=()=>{this.attached=!1,a("resize",s),this._stop(),this._resize(0,0),r("attach",A)},n.isAttached(this.canvas)?A():i()}unbindEvents(){je(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},je(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const a=r?"set":"remove";let s,i,A,l;for(n==="dataset"&&(s=this.getDatasetMeta(t[0].datasetIndex),s.controller["_"+a+"DatasetHoverStyle"]()),A=0,l=t.length;A<l;++A){i=t[A];const c=i&&this.getDatasetMeta(i.datasetIndex).controller;c&&c[a+"HoverStyle"](i.element,i.datasetIndex,i.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],r=t.map(({datasetIndex:s,index:i})=>{const A=this.getDatasetMeta(s);if(!A)throw new Error("No dataset found at index "+s);return{datasetIndex:s,element:A.data[i],index:i}});!Lu(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const a=this.options.hover,s=(l,c)=>l.filter(u=>!c.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),i=s(n,t),A=r?t:s(t,n);i.length&&this.updateHoverStyle(i,a.mode,!1),A.length&&a.mode&&this.updateHoverStyle(A,a.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},a=i=>(i.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,a)===!1)return;const s=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,a),(s||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:a=[],options:s}=this,i=n,A=this._getActiveElements(t,a,r,i),l=IN(t),c=bR(t,this._lastEvent,r,l);r&&(this._lastEvent=null,We(s.onHover,[t,A,this],this),l&&We(s.onClick,[t,A,this],this));const u=!Lu(A,a);return(u||n)&&(this._active=A,this._updateHoverStyles(A,a,n)),this._lastEvent=c,u}_getActiveElements(t,n,r,a){if(t.type==="mouseout")return[];if(!r)return n;const s=this.options.hover;return this.getElementsAtEventForMode(t,s.mode,s,a)}}G(He,"defaults",ot),G(He,"instances",fu),G(He,"overrides",oi),G(He,"registry",_r),G(He,"version",vR),G(He,"getChart",fB);function pB(){return je(He.instances,e=>e._plugins.invalidate())}function _R(e,t,n){const{startAngle:r,x:a,y:s,outerRadius:i,innerRadius:A,options:l}=t,{borderWidth:c,borderJoinStyle:u}=l,d=Math.min(c/i,rn(r-n));if(e.beginPath(),e.arc(a,s,i-c/2,r+d/2,n-d/2),A>0){const f=Math.min(c/A,rn(r-n));e.arc(a,s,A+c/2,n-f/2,r+f/2,!0)}else{const f=Math.min(c/2,i*rn(r-n));if(u==="round")e.arc(a,s,f,n-be/2,r+be/2,!0);else if(u==="bevel"){const p=2*f*f,h=-p*Math.cos(n+be/2)+a,m=-p*Math.sin(n+be/2)+s,y=p*Math.cos(r+be/2)+a,g=p*Math.sin(r+be/2)+s;e.lineTo(h,m),e.lineTo(y,g)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip("evenodd")}function CR(e,t,n){const{startAngle:r,pixelMargin:a,x:s,y:i,outerRadius:A,innerRadius:l}=t;let c=a/A;e.beginPath(),e.arc(s,i,A,r-c,n+c),l>a?(c=a/l,e.arc(s,i,l,n+c,r-c,!0)):e.arc(s,i,a,n+dt,r-dt),e.closePath(),e.clip()}function kR(e){return Pg(e,["outerStart","outerEnd","innerStart","innerEnd"])}function ER(e,t,n,r){const a=kR(e.options.borderRadius),s=(n-t)/2,i=Math.min(s,r*t/2),A=l=>{const c=(n-Math.min(s,l))*r/2;return Wt(l,0,Math.min(s,c))};return{outerStart:A(a.outerStart),outerEnd:A(a.outerEnd),innerStart:Wt(a.innerStart,0,i),innerEnd:Wt(a.innerEnd,0,i)}}function Fi(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function Vu(e,t,n,r,a,s){const{x:i,y:A,startAngle:l,pixelMargin:c,innerRadius:u}=t,d=Math.max(t.outerRadius+r+n-c,0),f=u>0?u+r+n+c:0;let p=0;const h=a-l;if(r){const J=u>0?u-r:0,R=d>0?d-r:0,$=(J+R)/2,de=$!==0?h*$/($+r):h;p=(h-de)/2}const m=Math.max(.001,h*d-n/be)/d,y=(h-m)/2,g=l+y+p,w=a-y-p,{outerStart:B,outerEnd:v,innerStart:_,innerEnd:b}=ER(t,f,d,w-g),k=d-B,C=d-v,E=g+B/k,D=w-v/C,T=f+_,F=f+b,U=g+_/T,W=w-b/F;if(e.beginPath(),s){const J=(E+D)/2;if(e.arc(i,A,d,E,J),e.arc(i,A,d,J,D),v>0){const q=Fi(C,D,i,A);e.arc(q.x,q.y,v,D,w+dt)}const R=Fi(F,w,i,A);if(e.lineTo(R.x,R.y),b>0){const q=Fi(F,W,i,A);e.arc(q.x,q.y,b,w+dt,W+Math.PI)}const $=(w-b/f+(g+_/f))/2;if(e.arc(i,A,f,w-b/f,$,!0),e.arc(i,A,f,$,g+_/f,!0),_>0){const q=Fi(T,U,i,A);e.arc(q.x,q.y,_,U+Math.PI,g-dt)}const de=Fi(k,g,i,A);if(e.lineTo(de.x,de.y),B>0){const q=Fi(k,E,i,A);e.arc(q.x,q.y,B,g-dt,E)}}else{e.moveTo(i,A);const J=Math.cos(E)*d+i,R=Math.sin(E)*d+A;e.lineTo(J,R);const $=Math.cos(D)*d+i,de=Math.sin(D)*d+A;e.lineTo($,de)}e.closePath()}function SR(e,t,n,r,a){const{fullCircles:s,startAngle:i,circumference:A}=t;let l=t.endAngle;if(s){Vu(e,t,n,r,l,a);for(let c=0;c<s;++c)e.fill();isNaN(A)||(l=i+(A%it||it))}return Vu(e,t,n,r,l,a),e.fill(),l}function xR(e,t,n,r,a){const{fullCircles:s,startAngle:i,circumference:A,options:l}=t,{borderWidth:c,borderJoinStyle:u,borderDash:d,borderDashOffset:f,borderRadius:p}=l,h=l.borderAlign==="inner";if(!c)return;e.setLineDash(d||[]),e.lineDashOffset=f,h?(e.lineWidth=c*2,e.lineJoin=u||"round"):(e.lineWidth=c,e.lineJoin=u||"bevel");let m=t.endAngle;if(s){Vu(e,t,n,r,m,a);for(let y=0;y<s;++y)e.stroke();isNaN(A)||(m=i+(A%it||it))}h&&CR(e,t,m),l.selfJoin&&m-i>=be&&p===0&&u!=="miter"&&_R(e,t,m),s||(Vu(e,t,n,r,m,a),e.stroke())}class zi extends gn{constructor(n){super();G(this,"circumference");G(this,"endAngle");G(this,"fullCircles");G(this,"innerRadius");G(this,"outerRadius");G(this,"pixelMargin");G(this,"startAngle");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,n&&Object.assign(this,n)}inRange(n,r,a){const s=this.getProps(["x","y"],a),{angle:i,distance:A}=_C(s,{x:n,y:r}),{startAngle:l,endAngle:c,innerRadius:u,outerRadius:d,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],a),p=(this.options.spacing+this.options.borderWidth)/2,h=pe(f,c-l),m=al(i,l,c)&&l!==c,y=h>=it||m,g=Aa(A,u+p,d+p);return y&&g}getCenterPoint(n){const{x:r,y:a,startAngle:s,endAngle:i,innerRadius:A,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:c,spacing:u}=this.options,d=(s+i)/2,f=(A+l+u+c)/2;return{x:r+Math.cos(d)*f,y:a+Math.sin(d)*f}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:r,circumference:a}=this,s=(r.offset||0)/4,i=(r.spacing||0)/2,A=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=a>it?Math.floor(a/it):0,a===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*s,Math.sin(l)*s);const c=1-Math.sin(Math.min(be,a||0)),u=s*c;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,SR(n,this,u,i,A),xR(n,this,u,i,A),n.restore()}}G(zi,"id","arc"),G(zi,"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}),G(zi,"defaultRoutes",{backgroundColor:"backgroundColor"}),G(zi,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function rk(e,t,n=t){e.lineCap=pe(n.borderCapStyle,t.borderCapStyle),e.setLineDash(pe(n.borderDash,t.borderDash)),e.lineDashOffset=pe(n.borderDashOffset,t.borderDashOffset),e.lineJoin=pe(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=pe(n.borderWidth,t.borderWidth),e.strokeStyle=pe(n.borderColor,t.borderColor)}function FR(e,t,n){e.lineTo(n.x,n.y)}function TR(e){return e.stepped?ZN:e.tension||e.cubicInterpolationMode==="monotone"?eP:FR}function ak(e,t,n={}){const r=e.length,{start:a=0,end:s=r-1}=n,{start:i,end:A}=t,l=Math.max(a,i),c=Math.min(s,A),u=a<i&&s<i||a>A&&s>A;return{count:r,start:l,loop:t.loop,ilen:c<l&&!u?r+c-l:c-l}}function IR(e,t,n,r){const{points:a,options:s}=t,{count:i,start:A,loop:l,ilen:c}=ak(a,n,r),u=TR(s);let{move:d=!0,reverse:f}=r||{},p,h,m;for(p=0;p<=c;++p)h=a[(A+(f?c-p:p))%i],!h.skip&&(d?(e.moveTo(h.x,h.y),d=!1):u(e,m,h,f,s.stepped),m=h);return l&&(h=a[(A+(f?c:0))%i],u(e,m,h,f,s.stepped)),!!l}function DR(e,t,n,r){const a=t.points,{count:s,start:i,ilen:A}=ak(a,n,r),{move:l=!0,reverse:c}=r||{};let u=0,d=0,f,p,h,m,y,g;const w=v=>(i+(c?A-v:v))%s,B=()=>{m!==y&&(e.lineTo(u,y),e.lineTo(u,m),e.lineTo(u,g))};for(l&&(p=a[w(0)],e.moveTo(p.x,p.y)),f=0;f<=A;++f){if(p=a[w(f)],p.skip)continue;const v=p.x,_=p.y,b=v|0;b===h?(_<m?m=_:_>y&&(y=_),u=(d*u+v)/++d):(B(),e.lineTo(v,_),h=b,d=0,m=y=_),g=_}B()}function Ih(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?DR:IR}function UR(e){return e.stepped?DP:e.tension||e.cubicInterpolationMode==="monotone"?UP:Qs}function OR(e,t,n,r){let a=t._path;a||(a=t._path=new Path2D,t.path(a,n,r)&&a.closePath()),rk(e,t.options),e.stroke(a)}function LR(e,t,n,r){const{segments:a,options:s}=t,i=Ih(t);for(const A of a)rk(e,s,A.style),e.beginPath(),i(e,t,A,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const QR=typeof Path2D=="function";function MR(e,t,n,r){QR&&!t.options.segment?OR(e,t,n,r):LR(e,t,n,r)}class Ga extends gn{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,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const a=r.spanGaps?this._loop:this._fullLoop;CP(this._points,r,t,a,n),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=PP(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,a=t[n],s=this.points,i=$C(this,{property:n,start:a,end:a});if(!i.length)return;const A=[],l=UR(r);let c,u;for(c=0,u=i.length;c<u;++c){const{start:d,end:f}=i[c],p=s[d],h=s[f];if(p===h){A.push(p);continue}const m=Math.abs((a-p[n])/(h[n]-p[n])),y=l(p,h,m,r.stepped);y[n]=t[n],A.push(y)}return A.length===1?A[0]:A}pathSegment(t,n,r){return Ih(this)(t,this,n,r)}path(t,n,r){const a=this.segments,s=Ih(this);let i=this._loop;n=n||0,r=r||this.points.length-n;for(const A of a)i&=s(t,this,A,{start:n,end:n+r-1});return!!i}draw(t,n,r,a){const s=this.options||{};(this.points||[]).length&&s.borderWidth&&(t.save(),MR(t,this,r,a),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}G(Ga,"id","line"),G(Ga,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),G(Ga,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),G(Ga,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function hB(e,t,n,r){const a=e.options,{[n]:s}=e.getProps([n],r);return Math.abs(t-s)<a.radius+a.hitRadius}class FA extends gn{constructor(n){super();G(this,"parsed");G(this,"skip");G(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,r,a){const s=this.options,{x:i,y:A}=this.getProps(["x","y"],a);return Math.pow(n-i,2)+Math.pow(r-A,2)<Math.pow(s.hitRadius+s.radius,2)}inXRange(n,r){return hB(this,n,"x",r)}inYRange(n,r){return hB(this,n,"y",r)}getCenterPoint(n){const{x:r,y:a}=this.getProps(["x","y"],n);return{x:r,y:a}}size(n){n=n||this.options||{};let r=n.radius||0;r=Math.max(r,r&&n.hoverRadius||0);const a=r&&n.borderWidth||0;return(r+a)*2}draw(n,r){const a=this.options;this.skip||a.radius<.1||!ca(this,r,this.size(a)/2)||(n.strokeStyle=a.borderColor,n.lineWidth=a.borderWidth,n.fillStyle=a.backgroundColor,Sh(n,a,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}G(FA,"id","point"),G(FA,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),G(FA,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function sk(e,t){const{x:n,y:r,base:a,width:s,height:i}=e.getProps(["x","y","base","width","height"],t);let A,l,c,u,d;return e.horizontal?(d=i/2,A=Math.min(n,a),l=Math.max(n,a),c=r-d,u=r+d):(d=s/2,A=n-d,l=n+d,c=Math.min(r,a),u=Math.max(r,a)),{left:A,top:c,right:l,bottom:u}}function ja(e,t,n,r){return e?0:Wt(t,n,r)}function NR(e,t,n){const r=e.options.borderWidth,a=e.borderSkipped,s=DC(r);return{t:ja(a.top,s.top,0,n),r:ja(a.right,s.right,0,t),b:ja(a.bottom,s.bottom,0,n),l:ja(a.left,s.left,0,t)}}function PR(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),a=e.options.borderRadius,s=ns(a),i=Math.min(t,n),A=e.borderSkipped,l=r||ke(a);return{topLeft:ja(!l||A.top||A.left,s.topLeft,0,i),topRight:ja(!l||A.top||A.right,s.topRight,0,i),bottomLeft:ja(!l||A.bottom||A.left,s.bottomLeft,0,i),bottomRight:ja(!l||A.bottom||A.right,s.bottomRight,0,i)}}function RR(e){const t=sk(e),n=t.right-t.left,r=t.bottom-t.top,a=NR(e,n/2,r/2),s=PR(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:s},inner:{x:t.left+a.l,y:t.top+a.t,w:n-a.l-a.r,h:r-a.t-a.b,radius:{topLeft:Math.max(0,s.topLeft-Math.max(a.t,a.l)),topRight:Math.max(0,s.topRight-Math.max(a.t,a.r)),bottomLeft:Math.max(0,s.bottomLeft-Math.max(a.b,a.l)),bottomRight:Math.max(0,s.bottomRight-Math.max(a.b,a.r))}}}}function ap(e,t,n,r){const a=t===null,s=n===null,A=e&&!(a&&s)&&sk(e,r);return A&&(a||Aa(t,A.left,A.right))&&(s||Aa(n,A.top,A.bottom))}function HR(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function VR(e,t){e.rect(t.x,t.y,t.w,t.h)}function sp(e,t,n={}){const r=e.x!==n.x?-t:0,a=e.y!==n.y?-t:0,s=(e.x+e.w!==n.x+n.w?t:0)-r,i=(e.y+e.h!==n.y+n.h?t:0)-a;return{x:e.x+r,y:e.y+a,w:e.w+s,h:e.h+i,radius:e.radius}}class TA extends gn{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:n,options:{borderColor:r,backgroundColor:a}}=this,{inner:s,outer:i}=RR(this),A=HR(i.radius)?go:VR;t.save(),(i.w!==s.w||i.h!==s.h)&&(t.beginPath(),A(t,sp(i,n,s)),t.clip(),A(t,sp(s,-n,i)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),A(t,sp(s,n)),t.fillStyle=a,t.fill(),t.restore()}inRange(t,n,r){return ap(this,t,n,r)}inXRange(t,n){return ap(this,t,null,n)}inYRange(t,n){return ap(this,null,t,n)}getCenterPoint(t){const{x:n,y:r,base:a,horizontal:s}=this.getProps(["x","y","base","horizontal"],t);return{x:s?(n+a)/2:n,y:s?r:(r+a)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}G(TA,"id","bar"),G(TA,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),G(TA,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var $R=Object.freeze({__proto__:null,ArcElement:zi,BarElement:TA,LineElement:Ga,PointElement:FA});const Dh=["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)"],mB=Dh.map(e=>e.replace("rgb(","rgba(").replace(")",", 0.5)"));function ik(e){return Dh[e%Dh.length]}function ok(e){return mB[e%mB.length]}function KR(e,t){return e.borderColor=ik(t),e.backgroundColor=ok(t),++t}function zR(e,t){return e.backgroundColor=e.data.map(()=>ik(t++)),t}function WR(e,t){return e.backgroundColor=e.data.map(()=>ok(t++)),t}function GR(e){let t=0;return(n,r)=>{const a=e.getDatasetMeta(r).controller;a instanceof Hs?t=zR(n,t):a instanceof xA?t=WR(n,t):a&&(t=KR(n,t))}}function gB(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function jR(e){return e&&(e.borderColor||e.backgroundColor)}function YR(){return ot.borderColor!=="rgba(0,0,0,0.1)"||ot.backgroundColor!=="rgba(0,0,0,0.1)"}var qR={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;const{data:{datasets:r},options:a}=e.config,{elements:s}=a,i=gB(r)||jR(a)||s&&gB(s)||YR();if(!n.forceOverride&&i)return;const A=GR(e);r.forEach(A)}};function XR(e,t,n,r,a){const s=a.samples||r;if(s>=n)return e.slice(t,t+n);const i=[],A=(n-2)/(s-2);let l=0;const c=t+n-1;let u=t,d,f,p,h,m;for(i[l++]=e[u],d=0;d<s-2;d++){let y=0,g=0,w;const B=Math.floor((d+1)*A)+1+t,v=Math.min(Math.floor((d+2)*A)+1,n)+t,_=v-B;for(w=B;w<v;w++)y+=e[w].x,g+=e[w].y;y/=_,g/=_;const b=Math.floor(d*A)+1+t,k=Math.min(Math.floor((d+1)*A)+1,n)+t,{x:C,y:E}=e[u];for(p=h=-1,w=b;w<k;w++)h=.5*Math.abs((C-y)*(e[w].y-E)-(C-e[w].x)*(g-E)),h>p&&(p=h,f=e[w],m=w);i[l++]=f,u=m}return i[l++]=e[c],i}function JR(e,t,n,r){let a=0,s=0,i,A,l,c,u,d,f,p,h,m;const y=[],g=t+n-1,w=e[t].x,v=e[g].x-w;for(i=t;i<t+n;++i){A=e[i],l=(A.x-w)/v*r,c=A.y;const _=l|0;if(_===u)c<h?(h=c,d=i):c>m&&(m=c,f=i),a=(s*a+A.x)/++s;else{const b=i-1;if(!Ce(d)&&!Ce(f)){const k=Math.min(d,f),C=Math.max(d,f);k!==p&&k!==b&&y.push({...e[k],x:a}),C!==p&&C!==b&&y.push({...e[C],x:a})}i>0&&b!==p&&y.push(e[b]),y.push(A),u=_,s=0,h=m=c,d=f=p=i}}return y}function Ak(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function vB(e){e.data.datasets.forEach(t=>{Ak(t)})}function ZR(e,t){const n=t.length;let r=0,a;const{iScale:s}=e,{min:i,max:A,minDefined:l,maxDefined:c}=s.getUserBounds();return l&&(r=Wt(la(t,s.axis,i).lo,0,n-1)),c?a=Wt(la(t,s.axis,A).hi+1,r,n)-r:a=n-r,{start:r,count:a}}var eH={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){vB(e);return}const r=e.width;e.data.datasets.forEach((a,s)=>{const{_data:i,indexAxis:A}=a,l=e.getDatasetMeta(s),c=i||a.data;if(At([A,e.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const u=e.scales[l.xAxisID];if(u.type!=="linear"&&u.type!=="time"||e.options.parsing)return;let{start:d,count:f}=ZR(l,c);const p=n.threshold||4*r;if(f<=p){Ak(a);return}Ce(i)&&(a._data=c,delete a.data,Object.defineProperty(a,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(m){this._data=m}}));let h;switch(n.algorithm){case"lttb":h=XR(c,d,f,r,n);break;case"min-max":h=JR(c,d,f,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}a._decimated=h})},destroy(e){vB(e)}};function tH(e,t,n){const r=e.segments,a=e.points,s=t.points,i=[];for(const A of r){let{start:l,end:c}=A;c=Ud(l,c,a);const u=Uh(n,a[l],a[c],A.loop);if(!t.segments){i.push({source:A,target:u,start:a[l],end:a[c]});continue}const d=$C(t,u);for(const f of d){const p=Uh(n,s[f.start],s[f.end],f.loop),h=VC(A,a,p);for(const m of h)i.push({source:m,target:f,start:{[n]:yB(u,p,"start",Math.max)},end:{[n]:yB(u,p,"end",Math.min)}})}}return i}function Uh(e,t,n,r){if(r)return;let a=t[e],s=n[e];return e==="angle"&&(a=rn(a),s=rn(s)),{property:e,start:a,end:s}}function nH(e,t){const{x:n=null,y:r=null}=e||{},a=t.points,s=[];return t.segments.forEach(({start:i,end:A})=>{A=Ud(i,A,a);const l=a[i],c=a[A];r!==null?(s.push({x:l.x,y:r}),s.push({x:c.x,y:r})):n!==null&&(s.push({x:n,y:l.y}),s.push({x:n,y:c.y}))}),s}function Ud(e,t,n){for(;t>e;t--){const r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function yB(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function lk(e,t){let n=[],r=!1;return Ve(e)?(r=!0,n=e):n=nH(e,t),n.length?new Ga({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function BB(e){return e&&e.fill!==!1}function rH(e,t,n){let a=e[t].fill;const s=[t];let i;if(!n)return a;for(;a!==!1&&s.indexOf(a)===-1;){if(!vt(a))return a;if(i=e[a],!i)return!1;if(i.visible)return a;s.push(a),a=i.fill}return!1}function aH(e,t,n){const r=AH(e);if(ke(r))return isNaN(r.value)?!1:r;let a=parseFloat(r);return vt(a)&&Math.floor(a)===a?sH(r[0],t,a,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function sH(e,t,n,r){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=r?!1:n}function iH(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:ke(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function oH(e,t,n){let r;return e==="start"?r=n:e==="end"?r=t.options.reverse?t.min:t.max:ke(e)?r=e.value:r=t.getBaseValue(),r}function AH(e){const t=e.options,n=t.fill;let r=pe(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function lH(e){const{scale:t,index:n,line:r}=e,a=[],s=r.segments,i=r.points,A=cH(t,n);A.push(lk({x:null,y:t.bottom},r));for(let l=0;l<s.length;l++){const c=s[l];for(let u=c.start;u<=c.end;u++)uH(a,i[u],A)}return new Ga({points:a,options:{}})}function cH(e,t){const n=[],r=e.getMatchingVisibleMetas("line");for(let a=0;a<r.length;a++){const s=r[a];if(s.index===t)break;s.hidden||n.unshift(s.dataset)}return n}function uH(e,t,n){const r=[];for(let a=0;a<n.length;a++){const s=n[a],{first:i,last:A,point:l}=dH(s,t,"x");if(!(!l||i&&A)){if(i)r.unshift(l);else if(e.push(l),!A)break}}e.push(...r)}function dH(e,t,n){const r=e.interpolate(t,n);if(!r)return{};const a=r[n],s=e.segments,i=e.points;let A=!1,l=!1;for(let c=0;c<s.length;c++){const u=s[c],d=i[u.start][n],f=i[u.end][n];if(Aa(a,d,f)){A=a===d,l=a===f;break}}return{first:A,last:l,point:r}}class ck{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,r){const{x:a,y:s,radius:i}=this;return n=n||{start:0,end:it},t.arc(a,s,i,n.end,n.start,!0),!r.bounds}interpolate(t){const{x:n,y:r,radius:a}=this,s=t.angle;return{x:n+Math.cos(s)*a,y:r+Math.sin(s)*a,angle:s}}}function fH(e){const{chart:t,fill:n,line:r}=e;if(vt(n))return pH(t,n);if(n==="stack")return lH(e);if(n==="shape")return!0;const a=hH(e);return a instanceof ck?a:lk(a,r)}function pH(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function hH(e){return(e.scale||{}).getPointPositionForValue?gH(e):mH(e)}function mH(e){const{scale:t={},fill:n}=e,r=iH(n,t);if(vt(r)){const a=t.isHorizontal();return{x:a?r:null,y:a?null:r}}return null}function gH(e){const{scale:t,fill:n}=e,r=t.options,a=t.getLabels().length,s=r.reverse?t.max:t.min,i=oH(n,t,s),A=[];if(r.grid.circular){const l=t.getPointPositionForValue(0,s);return new ck({x:l.x,y:l.y,radius:t.getDistanceFromCenterForValue(i)})}for(let l=0;l<a;++l)A.push(t.getPointPositionForValue(l,i));return A}function ip(e,t,n){const r=fH(t),{chart:a,index:s,line:i,scale:A,axis:l}=t,c=i.options,u=c.fill,d=c.backgroundColor,{above:f=d,below:p=d}=u||{},h=a.getDatasetMeta(s),m=KC(a,h);r&&i.points.length&&(Ol(e,n),vH(e,{line:i,target:r,above:f,below:p,area:n,scale:A,axis:l,clip:m}),Ll(e))}function vH(e,t){const{line:n,target:r,above:a,below:s,area:i,scale:A,clip:l}=t,c=n._loop?"angle":t.axis;e.save();let u=s;s!==a&&(c==="x"?(wB(e,r,i.top),op(e,{line:n,target:r,color:a,scale:A,property:c,clip:l}),e.restore(),e.save(),wB(e,r,i.bottom)):c==="y"&&(bB(e,r,i.left),op(e,{line:n,target:r,color:s,scale:A,property:c,clip:l}),e.restore(),e.save(),bB(e,r,i.right),u=a)),op(e,{line:n,target:r,color:u,scale:A,property:c,clip:l}),e.restore()}function wB(e,t,n){const{segments:r,points:a}=t;let s=!0,i=!1;e.beginPath();for(const A of r){const{start:l,end:c}=A,u=a[l],d=a[Ud(l,c,a)];s?(e.moveTo(u.x,u.y),s=!1):(e.lineTo(u.x,n),e.lineTo(u.x,u.y)),i=!!t.pathSegment(e,A,{move:i}),i?e.closePath():e.lineTo(d.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function bB(e,t,n){const{segments:r,points:a}=t;let s=!0,i=!1;e.beginPath();for(const A of r){const{start:l,end:c}=A,u=a[l],d=a[Ud(l,c,a)];s?(e.moveTo(u.x,u.y),s=!1):(e.lineTo(n,u.y),e.lineTo(u.x,u.y)),i=!!t.pathSegment(e,A,{move:i}),i?e.closePath():e.lineTo(n,d.y)}e.lineTo(n,t.first().y),e.closePath(),e.clip()}function op(e,t){const{line:n,target:r,property:a,color:s,scale:i,clip:A}=t,l=tH(n,r,a);for(const{source:c,target:u,start:d,end:f}of l){const{style:{backgroundColor:p=s}={}}=c,h=r!==!0;e.save(),e.fillStyle=p,yH(e,i,A,h&&Uh(a,d,f)),e.beginPath();const m=!!n.pathSegment(e,c);let y;if(h){m?e.closePath():_B(e,r,f,a);const g=!!r.pathSegment(e,u,{move:m,reverse:!0});y=m&&g,y||_B(e,r,d,a)}e.closePath(),e.fill(y?"evenodd":"nonzero"),e.restore()}}function yH(e,t,n,r){const a=t.chart.chartArea,{property:s,start:i,end:A}=r||{};if(s==="x"||s==="y"){let l,c,u,d;s==="x"?(l=i,c=a.top,u=A,d=a.bottom):(l=a.left,c=i,u=a.right,d=A),e.beginPath(),n&&(l=Math.max(l,n.left),u=Math.min(u,n.right),c=Math.max(c,n.top),d=Math.min(d,n.bottom)),e.rect(l,c,u-l,d-c),e.clip()}}function _B(e,t,n,r){const a=t.interpolate(n,r);a&&e.lineTo(a.x,a.y)}var BH={id:"filler",afterDatasetsUpdate(e,t,n){const r=(e.data.datasets||[]).length,a=[];let s,i,A,l;for(i=0;i<r;++i)s=e.getDatasetMeta(i),A=s.dataset,l=null,A&&A.options&&A instanceof Ga&&(l={visible:e.isDatasetVisible(i),index:i,fill:aH(A,i,r),chart:e,axis:s.controller.options.indexAxis,scale:s.vScale,line:A}),s.$filler=l,a.push(l);for(i=0;i<r;++i)l=a[i],!(!l||l.fill===!1)&&(l.fill=rH(a,i,n.propagate))},beforeDraw(e,t,n){const r=n.drawTime==="beforeDraw",a=e.getSortedVisibleDatasetMetas(),s=e.chartArea;for(let i=a.length-1;i>=0;--i){const A=a[i].$filler;A&&(A.line.updateControlPoints(s,A.axis),r&&A.fill&&ip(e.ctx,A,s))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const r=e.getSortedVisibleDatasetMetas();for(let a=r.length-1;a>=0;--a){const s=r[a].$filler;BB(s)&&ip(e.ctx,s,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;!BB(r)||n.drawTime!=="beforeDatasetDraw"||ip(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const CB=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},wH=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class kB extends gn{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,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,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 n=We(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,a)=>t.sort(r,a,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,a=yt(r.font),s=a.size,i=this._computeTitleHeight(),{boxWidth:A,itemHeight:l}=CB(r,s);let c,u;n.font=a.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(i,s,A,l)+10):(u=this.maxHeight,c=this._fitCols(i,a,A,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,a){const{ctx:s,maxWidth:i,options:{labels:{padding:A}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=a+A;let d=t;s.textAlign="left",s.textBaseline="middle";let f=-1,p=-u;return this.legendItems.forEach((h,m)=>{const y=r+n/2+s.measureText(h.text).width;(m===0||c[c.length-1]+y+2*A>i)&&(d+=u,c[c.length-(m>0?0:1)]=0,p+=u,f++),l[m]={left:0,top:p,row:f,width:y,height:a},c[c.length-1]+=y+A}),d}_fitCols(t,n,r,a){const{ctx:s,maxHeight:i,options:{labels:{padding:A}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=i-t;let d=A,f=0,p=0,h=0,m=0;return this.legendItems.forEach((y,g)=>{const{itemWidth:w,itemHeight:B}=bH(r,n,s,y,a);g>0&&p+B+2*A>u&&(d+=f+A,c.push({width:f,height:p}),h+=f+A,m++,f=p=0),l[g]={left:h,top:p,col:m,width:w,height:B},f=Math.max(f,w),p+=B+A}),d+=f,c.push({width:f,height:p}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:a},rtl:s}}=this,i=Yi(s,this.left,this.width);if(this.isHorizontal()){let A=0,l=tn(r,this.left+a,this.right-this.lineWidths[A]);for(const c of n)A!==c.row&&(A=c.row,l=tn(r,this.left+a,this.right-this.lineWidths[A])),c.top+=this.top+t+a,c.left=i.leftForLtr(i.x(l),c.width),l+=c.width+a}else{let A=0,l=tn(r,this.top+t+a,this.bottom-this.columnSizes[A].height);for(const c of n)c.col!==A&&(A=c.col,l=tn(r,this.top+t+a,this.bottom-this.columnSizes[A].height)),c.top=l,c.left+=this.left+a,c.left=i.leftForLtr(i.x(c.left),c.width),l+=c.height+a}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Ol(t,this),this._draw(),Ll(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:a}=this,{align:s,labels:i}=t,A=ot.color,l=Yi(t.rtl,this.left,this.width),c=yt(i.font),{padding:u}=i,d=c.size,f=d/2;let p;this.drawTitle(),a.textAlign=l.textAlign("left"),a.textBaseline="middle",a.lineWidth=.5,a.font=c.string;const{boxWidth:h,boxHeight:m,itemHeight:y}=CB(i,d),g=function(b,k,C){if(isNaN(h)||h<=0||isNaN(m)||m<0)return;a.save();const E=pe(C.lineWidth,1);if(a.fillStyle=pe(C.fillStyle,A),a.lineCap=pe(C.lineCap,"butt"),a.lineDashOffset=pe(C.lineDashOffset,0),a.lineJoin=pe(C.lineJoin,"miter"),a.lineWidth=E,a.strokeStyle=pe(C.strokeStyle,A),a.setLineDash(pe(C.lineDash,[])),i.usePointStyle){const D={radius:m*Math.SQRT2/2,pointStyle:C.pointStyle,rotation:C.rotation,borderWidth:E},T=l.xPlus(b,h/2),F=k+f;IC(a,D,T,F,i.pointStyleWidth&&h)}else{const D=k+Math.max((d-m)/2,0),T=l.leftForLtr(b,h),F=ns(C.borderRadius);a.beginPath(),Object.values(F).some(U=>U!==0)?go(a,{x:T,y:D,w:h,h:m,radius:F}):a.rect(T,D,h,m),a.fill(),E!==0&&a.stroke()}a.restore()},w=function(b,k,C){Ai(a,C.text,b,k+y/2,c,{strikethrough:C.hidden,textAlign:l.textAlign(C.textAlign)})},B=this.isHorizontal(),v=this._computeTitleHeight();B?p={x:tn(s,this.left+u,this.right-r[0]),y:this.top+u+v,line:0}:p={x:this.left+u,y:tn(s,this.top+v+u,this.bottom-n[0].height),line:0},PC(this.ctx,t.textDirection);const _=y+u;this.legendItems.forEach((b,k)=>{a.strokeStyle=b.fontColor,a.fillStyle=b.fontColor;const C=a.measureText(b.text).width,E=l.textAlign(b.textAlign||(b.textAlign=i.textAlign)),D=h+f+C;let T=p.x,F=p.y;l.setWidth(this.width),B?k>0&&T+D+u>this.right&&(F=p.y+=_,p.line++,T=p.x=tn(s,this.left+u,this.right-r[p.line])):k>0&&F+_>this.bottom&&(T=p.x=T+n[p.line].width+u,p.line++,F=p.y=tn(s,this.top+v+u,this.bottom-n[p.line].height));const U=l.x(T);if(g(U,F,b),T=VN(E,T+h+f,B?T+D:this.right,t.rtl),w(l.x(T),F,b),B)p.x+=D+u;else if(typeof b.text!="string"){const W=c.lineHeight;p.y+=uk(b,W)+u}else p.y+=_}),RC(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=yt(n.font),a=Ot(n.padding);if(!n.display)return;const s=Yi(t.rtl,this.left,this.width),i=this.ctx,A=n.position,l=r.size/2,c=a.top+l;let u,d=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),u=this.top+c,d=tn(t.align,d,this.right-f);else{const h=this.columnSizes.reduce((m,y)=>Math.max(m,y.height),0);u=c+tn(t.align,this.top,this.bottom-h-t.labels.padding-this._computeTitleHeight())}const p=tn(A,d,d+f);i.textAlign=s.textAlign(Mg(A)),i.textBaseline="middle",i.strokeStyle=n.color,i.fillStyle=n.color,i.font=r.string,Ai(i,n.text,p,u,r)}_computeTitleHeight(){const t=this.options.title,n=yt(t.font),r=Ot(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,a,s;if(Aa(t,this.left,this.right)&&Aa(n,this.top,this.bottom)){for(s=this.legendHitBoxes,r=0;r<s.length;++r)if(a=s[r],Aa(t,a.left,a.left+a.width)&&Aa(n,a.top,a.top+a.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!kH(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const a=this._hoveredItem,s=wH(a,r);a&&!s&&We(n.onLeave,[t,a,this],this),this._hoveredItem=r,r&&!s&&We(n.onHover,[t,r,this],this)}else r&&We(n.onClick,[t,r,this],this)}}function bH(e,t,n,r,a){const s=_H(r,e,t,n),i=CH(a,r,t.lineHeight);return{itemWidth:s,itemHeight:i}}function _H(e,t,n,r){let a=e.text;return a&&typeof a!="string"&&(a=a.reduce((s,i)=>s.length>i.length?s:i)),t+n.size/2+r.measureText(a).width}function CH(e,t,n){let r=e;return typeof t.text!="string"&&(r=uk(t,n)),r}function uk(e,t){const n=e.text?e.text.length:0;return t*n}function kH(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var EH={id:"legend",_element:kB,start(e,t,n){const r=e.legend=new kB({ctx:e.ctx,options:n,chart:e});on.configure(e,r,n),on.addBox(e,r)},stop(e){on.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;on.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,a=n.chart;a.isDatasetVisible(r)?(a.hide(r),t.hidden=!0):(a.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:a,color:s,useBorderRadius:i,borderRadius:A}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=Ot(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:s,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:a||c.textAlign,borderRadius:i&&(A||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class Gg extends gn{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,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const a=Ve(r.text)?r.text.length:1;this._padding=Ot(r.padding);const s=a*yt(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:a,right:s,options:i}=this,A=i.align;let l=0,c,u,d;return this.isHorizontal()?(u=tn(A,r,s),d=n+t,c=s-r):(i.position==="left"?(u=r+t,d=tn(A,a,n),l=be*-.5):(u=s-t,d=tn(A,n,a),l=be*.5),c=a-n),{titleX:u,titleY:d,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=yt(n.font),s=r.lineHeight/2+this._padding.top,{titleX:i,titleY:A,maxWidth:l,rotation:c}=this._drawArgs(s);Ai(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:c,textAlign:Mg(n.align),textBaseline:"middle",translation:[i,A]})}}function SH(e,t){const n=new Gg({ctx:e.ctx,options:t,chart:e});on.configure(e,n,t),on.addBox(e,n),e.titleBlock=n}var xH={id:"title",_element:Gg,start(e,t,n){SH(e,n)},stop(e){const t=e.titleBlock;on.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;on.configure(e,r,n),r.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 yc=new WeakMap;var FH={id:"subtitle",start(e,t,n){const r=new Gg({ctx:e.ctx,options:n,chart:e});on.configure(e,r,n),on.addBox(e,r),yc.set(e,r)},stop(e){on.removeBox(e,yc.get(e)),yc.delete(e)},beforeUpdate(e,t,n){const r=yc.get(e);on.configure(e,r,n),r.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 oA={average(e){if(!e.length)return!1;let t,n,r=new Set,a=0,s=0;for(t=0,n=e.length;t<n;++t){const A=e[t].element;if(A&&A.hasValue()){const l=A.tooltipPosition();r.add(l.x),a+=l.y,++s}}return s===0||r.size===0?!1:{x:[...r].reduce((A,l)=>A+l)/r.size,y:a/s}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,a=Number.POSITIVE_INFINITY,s,i,A;for(s=0,i=e.length;s<i;++s){const l=e[s].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),u=mo(t,c);u<a&&(a=u,A=l)}}if(A){const l=A.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function wr(e,t){return t&&(Ve(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function ra(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
|
|
645
645
|
`)>-1?e.split(`
|
|
646
|
-
`):e}function TH(e,t){const{element:n,datasetIndex:r,index:a}=t,s=e.getDatasetMeta(r).controller,{label:i,value:A}=s.getLabelAndValue(a);return{chart:e,label:i,parsed:s.getParsed(a),raw:e.data.datasets[r].data[a],formattedValue:A,dataset:s.getDataset(),dataIndex:a,datasetIndex:r,element:n}}function EB(e,t){const n=e.chart.ctx,{body:r,footer:a,title:s}=e,{boxWidth:i,boxHeight:A}=t,l=yt(t.bodyFont),c=yt(t.titleFont),u=yt(t.footerFont),d=s.length,f=a.length,p=r.length,h=Ot(t.padding);let m=h.height,y=0,g=r.reduce((v,_)=>v+_.before.length+_.lines.length+_.after.length,0);if(g+=e.beforeBody.length+e.afterBody.length,d&&(m+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),g){const v=t.displayColors?Math.max(A,l.lineHeight):l.lineHeight;m+=p*v+(g-p)*l.lineHeight+(g-1)*t.bodySpacing}f&&(m+=t.footerMarginTop+f*u.lineHeight+(f-1)*t.footerSpacing);let w=0;const B=function(v){y=Math.max(y,n.measureText(v).width+w)};return n.save(),n.font=c.string,je(e.title,B),n.font=l.string,je(e.beforeBody.concat(e.afterBody),B),w=t.displayColors?i+2+t.boxPadding:0,je(r,v=>{je(v.before,B),je(v.lines,B),je(v.after,B)}),w=0,n.font=u.string,je(e.footer,B),n.restore(),y+=h.width,{width:y,height:m}}function IH(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function DH(e,t,n,r){const{x:a,width:s}=r,i=n.caretSize+n.caretPadding;if(e==="left"&&a+s+i>t.width||e==="right"&&a-s-i<0)return!0}function UH(e,t,n,r){const{x:a,width:s}=n,{width:i,chartArea:{left:A,right:l}}=e;let c="center";return r==="center"?c=a<=(A+l)/2?"left":"right":a<=s/2?c="left":a>=i-s/2&&(c="right"),DH(c,e,t,n)&&(c="center"),c}function SB(e,t,n){const r=n.yAlign||t.yAlign||IH(e,n);return{xAlign:n.xAlign||t.xAlign||UH(e,t,n,r),yAlign:r}}function OH(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function LH(e,t,n){let{y:r,height:a}=e;return t==="top"?r+=n:t==="bottom"?r-=a+n:r-=a/2,r}function xB(e,t,n,r){const{caretSize:a,caretPadding:s,cornerRadius:i}=e,{xAlign:A,yAlign:l}=n,c=a+s,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:p}=ns(i);let h=OH(t,A);const m=LH(t,l,c);return l==="center"?A==="left"?h+=c:A==="right"&&(h-=c):A==="left"?h-=Math.max(u,f)+a:A==="right"&&(h+=Math.max(d,p)+a),{x:Wt(h,0,r.width-t.width),y:Wt(m,0,r.height-t.height)}}function Bc(e,t,n){const r=Ot(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function FB(e){return wr([],ra(e))}function QH(e,t,n){return _s(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function TB(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const dk={beforeTitle:Xr,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:Xr,beforeBody:Xr,beforeLabel:Xr,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return Ce(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:Xr,afterBody:Xr,beforeFooter:Xr,footer:Xr,afterFooter:Xr};function wn(e,t,n,r){const a=e[t].call(n,r);return typeof a>"u"?dk[t].call(n,r):a}class Oh extends gn{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 n=this.chart,r=this.options.setContext(this.getContext()),a=r.enabled&&n.options.animation&&r.animations,s=new zg(this.chart,a);return a._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=QH(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,a=wn(r,"beforeTitle",this,t),s=wn(r,"title",this,t),i=wn(r,"afterTitle",this,t);let A=[];return A=wr(A,ra(a)),A=wr(A,ra(s)),A=wr(A,ra(i)),A}getBeforeBody(t,n){return FB(wn(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,a=[];return je(t,s=>{const i={before:[],lines:[],after:[]},A=TB(r,s);wr(i.before,ra(wn(A,"beforeLabel",this,s))),wr(i.lines,wn(A,"label",this,s)),wr(i.after,ra(wn(A,"afterLabel",this,s))),a.push(i)}),a}getAfterBody(t,n){return FB(wn(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,a=wn(r,"beforeFooter",this,t),s=wn(r,"footer",this,t),i=wn(r,"afterFooter",this,t);let A=[];return A=wr(A,ra(a)),A=wr(A,ra(s)),A=wr(A,ra(i)),A}_createItems(t){const n=this._active,r=this.chart.data,a=[],s=[],i=[];let A=[],l,c;for(l=0,c=n.length;l<c;++l)A.push(TH(this.chart,n[l]));return t.filter&&(A=A.filter((u,d,f)=>t.filter(u,d,f,r))),t.itemSort&&(A=A.sort((u,d)=>t.itemSort(u,d,r))),je(A,u=>{const d=TB(t.callbacks,u);a.push(wn(d,"labelColor",this,u)),s.push(wn(d,"labelPointStyle",this,u)),i.push(wn(d,"labelTextColor",this,u))}),this.labelColors=a,this.labelPointStyles=s,this.labelTextColors=i,this.dataPoints=A,A}update(t,n){const r=this.options.setContext(this.getContext()),a=this._active;let s,i=[];if(!a.length)this.opacity!==0&&(s={opacity:0});else{const A=oA[r.position].call(this,a,this._eventPosition);i=this._createItems(r),this.title=this.getTitle(i,r),this.beforeBody=this.getBeforeBody(i,r),this.body=this.getBody(i,r),this.afterBody=this.getAfterBody(i,r),this.footer=this.getFooter(i,r);const l=this._size=EB(this,r),c=Object.assign({},A,l),u=SB(this.chart,r,c),d=xB(r,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,s={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:A.x,caretY:A.y}}this._tooltipItems=i,this.$context=void 0,s&&this._resolveAnimations().update(this,s),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,a){const s=this.getCaretPosition(t,r,a);n.lineTo(s.x1,s.y1),n.lineTo(s.x2,s.y2),n.lineTo(s.x3,s.y3)}getCaretPosition(t,n,r){const{xAlign:a,yAlign:s}=this,{caretSize:i,cornerRadius:A}=r,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=ns(A),{x:f,y:p}=t,{width:h,height:m}=n;let y,g,w,B,v,_;return s==="center"?(v=p+m/2,a==="left"?(y=f,g=y-i,B=v+i,_=v-i):(y=f+h,g=y+i,B=v-i,_=v+i),w=y):(a==="left"?g=f+Math.max(l,u)+i:a==="right"?g=f+h-Math.max(c,d)-i:g=this.caretX,s==="top"?(B=p,v=B-i,y=g-i,w=g+i):(B=p+m,v=B+i,y=g+i,w=g-i),_=B),{x1:y,x2:g,x3:w,y1:B,y2:v,y3:_}}drawTitle(t,n,r){const a=this.title,s=a.length;let i,A,l;if(s){const c=Yi(r.rtl,this.x,this.width);for(t.x=Bc(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",i=yt(r.titleFont),A=r.titleSpacing,n.fillStyle=r.titleColor,n.font=i.string,l=0;l<s;++l)n.fillText(a[l],c.x(t.x),t.y+i.lineHeight/2),t.y+=i.lineHeight+A,l+1===s&&(t.y+=r.titleMarginBottom-A)}}_drawColorBox(t,n,r,a,s){const i=this.labelColors[r],A=this.labelPointStyles[r],{boxHeight:l,boxWidth:c}=s,u=yt(s.bodyFont),d=Bc(this,"left",s),f=a.x(d),p=l<u.lineHeight?(u.lineHeight-l)/2:0,h=n.y+p;if(s.usePointStyle){const m={radius:Math.min(c,l)/2,pointStyle:A.pointStyle,rotation:A.rotation,borderWidth:1},y=a.leftForLtr(f,c)+c/2,g=h+l/2;t.strokeStyle=s.multiKeyBackground,t.fillStyle=s.multiKeyBackground,Sh(t,m,y,g),t.strokeStyle=i.borderColor,t.fillStyle=i.backgroundColor,Sh(t,m,y,g)}else{t.lineWidth=ke(i.borderWidth)?Math.max(...Object.values(i.borderWidth)):i.borderWidth||1,t.strokeStyle=i.borderColor,t.setLineDash(i.borderDash||[]),t.lineDashOffset=i.borderDashOffset||0;const m=a.leftForLtr(f,c),y=a.leftForLtr(a.xPlus(f,1),c-2),g=ns(i.borderRadius);Object.values(g).some(w=>w!==0)?(t.beginPath(),t.fillStyle=s.multiKeyBackground,go(t,{x:m,y:h,w:c,h:l,radius:g}),t.fill(),t.stroke(),t.fillStyle=i.backgroundColor,t.beginPath(),go(t,{x:y,y:h+1,w:c-2,h:l-2,radius:g}),t.fill()):(t.fillStyle=s.multiKeyBackground,t.fillRect(m,h,c,l),t.strokeRect(m,h,c,l),t.fillStyle=i.backgroundColor,t.fillRect(y,h+1,c-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:a}=this,{bodySpacing:s,bodyAlign:i,displayColors:A,boxHeight:l,boxWidth:c,boxPadding:u}=r,d=yt(r.bodyFont);let f=d.lineHeight,p=0;const h=Yi(r.rtl,this.x,this.width),m=function(C){n.fillText(C,h.x(t.x+p),t.y+f/2),t.y+=f+s},y=h.textAlign(i);let g,w,B,v,_,b,k;for(n.textAlign=i,n.textBaseline="middle",n.font=d.string,t.x=Bc(this,y,r),n.fillStyle=r.bodyColor,je(this.beforeBody,m),p=A&&y!=="right"?i==="center"?c/2+u:c+2+u:0,v=0,b=a.length;v<b;++v){for(g=a[v],w=this.labelTextColors[v],n.fillStyle=w,je(g.before,m),B=g.lines,A&&B.length&&(this._drawColorBox(n,t,v,h,r),f=Math.max(d.lineHeight,l)),_=0,k=B.length;_<k;++_)m(B[_]),f=d.lineHeight;je(g.after,m)}p=0,f=d.lineHeight,je(this.afterBody,m),t.y-=s}drawFooter(t,n,r){const a=this.footer,s=a.length;let i,A;if(s){const l=Yi(r.rtl,this.x,this.width);for(t.x=Bc(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",i=yt(r.footerFont),n.fillStyle=r.footerColor,n.font=i.string,A=0;A<s;++A)n.fillText(a[A],l.x(t.x),t.y+i.lineHeight/2),t.y+=i.lineHeight+r.footerSpacing}}drawBackground(t,n,r,a){const{xAlign:s,yAlign:i}=this,{x:A,y:l}=t,{width:c,height:u}=r,{topLeft:d,topRight:f,bottomLeft:p,bottomRight:h}=ns(a.cornerRadius);n.fillStyle=a.backgroundColor,n.strokeStyle=a.borderColor,n.lineWidth=a.borderWidth,n.beginPath(),n.moveTo(A+d,l),i==="top"&&this.drawCaret(t,n,r,a),n.lineTo(A+c-f,l),n.quadraticCurveTo(A+c,l,A+c,l+f),i==="center"&&s==="right"&&this.drawCaret(t,n,r,a),n.lineTo(A+c,l+u-h),n.quadraticCurveTo(A+c,l+u,A+c-h,l+u),i==="bottom"&&this.drawCaret(t,n,r,a),n.lineTo(A+p,l+u),n.quadraticCurveTo(A,l+u,A,l+u-p),i==="center"&&s==="left"&&this.drawCaret(t,n,r,a),n.lineTo(A,l+d),n.quadraticCurveTo(A,l,A+d,l),n.closePath(),n.fill(),a.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,a=r&&r.x,s=r&&r.y;if(a||s){const i=oA[t.position].call(this,this._active,this._eventPosition);if(!i)return;const A=this._size=EB(this,t),l=Object.assign({},i,this._size),c=SB(n,t,l),u=xB(t,l,c,n);(a._to!==u.x||s._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=A.width,this.height=A.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const a={width:this.width,height:this.height},s={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const i=Ot(n.padding),A=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&A&&(t.save(),t.globalAlpha=r,this.drawBackground(s,t,a,n),PC(t,n.textDirection),s.y+=i.top,this.drawTitle(s,t,n),this.drawBody(s,t,n),this.drawFooter(s,t,n),RC(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,a=t.map(({datasetIndex:A,index:l})=>{const c=this.chart.getDatasetMeta(A);if(!c)throw new Error("Cannot find a dataset at index "+A);return{datasetIndex:A,element:c.data[l],index:l}}),s=!Lu(r,a),i=this._positionChanged(a,n);(s||i)&&(this._active=a,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const a=this.options,s=this._active||[],i=this._getActiveElements(t,s,n,r),A=this._positionChanged(i,t),l=n||!Lu(i,s)||A;return l&&(this._active=i,(a.enabled||a.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,a){const s=this.options;if(t.type==="mouseout")return[];if(!a)return n.filter(A=>this.chart.data.datasets[A.datasetIndex]&&this.chart.getDatasetMeta(A.datasetIndex).controller.getParsed(A.index)!==void 0);const i=this.chart.getElementsAtEventForMode(t,s.mode,s,r);return s.reverse&&i.reverse(),i}_positionChanged(t,n){const{caretX:r,caretY:a,options:s}=this,i=oA[s.position].call(this,t,n);return i!==!1&&(r!==i.x||a!==i.y)}}G(Oh,"positioners",oA);var MH={id:"tooltip",_element:Oh,positioners:oA,afterInit(e,t,n){n&&(e.tooltip=new Oh({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.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:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.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:dk},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},NH=Object.freeze({__proto__:null,Colors:qR,Decimation:eH,Filler:BH,Legend:EH,SubTitle:FH,Title:xH,Tooltip:MH});const PH=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function RH(e,t,n,r){const a=e.indexOf(t);if(a===-1)return PH(e,t,n,r);const s=e.lastIndexOf(t);return a!==s?n:a}const HH=(e,t)=>e===null?null:Wt(Math.round(e),0,t);function IB(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class Lh extends mi{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:a,label:s}of n)r[a]===s&&r.splice(a,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(Ce(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:RH(r,t,pe(n,t),this._addedLabels),HH(n,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:a}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(a=this.getLabels().length-1)),this.min=r,this.max=a}buildTicks(){const t=this.min,n=this.max,r=this.options.offset,a=[];let s=this.getLabels();s=t===0&&n===s.length-1?s:s.slice(t,n+1),this._valueRange=Math.max(s.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let i=t;i<=n;i++)a.push({value:i});return a}getLabelForValue(t){return IB.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}G(Lh,"id","category"),G(Lh,"defaults",{ticks:{callback:IB}});function VH(e,t){const n=[],{bounds:a,step:s,min:i,max:A,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:f}=e,p=s||1,h=u-1,{min:m,max:y}=t,g=!Ce(i),w=!Ce(A),B=!Ce(c),v=(y-m)/(d+1);let _=Ey((y-m)/h/p)*p,b,k,C,E;if(_<1e-14&&!g&&!w)return[{value:m},{value:y}];E=Math.ceil(y/_)-Math.floor(m/_),E>h&&(_=Ey(E*_/h/p)*p),Ce(l)||(b=Math.pow(10,l),_=Math.ceil(_*b)/b),a==="ticks"?(k=Math.floor(m/_)*_,C=Math.ceil(y/_)*_):(k=m,C=y),g&&w&&s&&LP((A-i)/s,_/1e3)?(E=Math.round(Math.min((A-i)/_,u)),_=(A-i)/E,k=i,C=A):B?(k=g?i:k,C=w?A:C,E=c-1,_=(C-k)/E):(E=(C-k)/_,kA(E,Math.round(E),_/1e3)?E=Math.round(E):E=Math.ceil(E));const D=Math.max(Sy(_),Sy(k));b=Math.pow(10,Ce(l)?D:l),k=Math.round(k*b)/b,C=Math.round(C*b)/b;let T=0;for(g&&(f&&k!==i?(n.push({value:i}),k<i&&T++,kA(Math.round((k+T*_)*b)/b,i,DB(i,v,e))&&T++):k<i&&T++);T<E;++T){const F=Math.round((k+T*_)*b)/b;if(w&&F>A)break;n.push({value:F})}return w&&f&&C!==A?n.length&&kA(n[n.length-1].value,A,DB(A,v,e))?n[n.length-1].value=A:n.push({value:A}):(!w||C===A)&&n.push({value:C}),n}function DB(e,t,{horizontal:n,minRotation:r}){const a=Mt(r),s=(n?Math.sin(a):Math.cos(a))||.001,i=.75*t*(""+e).length;return Math.min(t/s,i)}class $u extends mi{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,n){return Ce(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:a,max:s}=this;const i=l=>a=n?a:l,A=l=>s=r?s:l;if(t){const l=Ir(a),c=Ir(s);l<0&&c<0?A(0):l>0&&c>0&&i(0)}if(a===s){let l=s===0?1:Math.abs(s*.05);A(s+l),t||i(a-l)}this.min=a,this.max=s}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,a;return r?(a=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,a>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${a} ticks. Limiting to 1000.`),a=1e3)):(a=this.computeTickLimit(),n=n||11),n&&(a=Math.min(n,a)),a}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const a={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},s=this._range||this,i=VH(a,s);return t.bounds==="ticks"&&bC(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 n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const a=(r-n)/Math.max(t.length-1,1)/2;n-=a,r+=a}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return Ul(t,this.chart.options.locale,this.options.ticks.format)}}class Qh extends $u{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=vt(t)?t:0,this.max=vt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=Mt(this.options.ticks.minRotation),a=(t?Math.sin(r):Math.cos(r))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,s.lineHeight/a))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}G(Qh,"id","linear"),G(Qh,"defaults",{ticks:{callback:Id.formatters.numeric}});const il=e=>Math.floor(za(e)),Is=(e,t)=>Math.pow(10,il(e)+t);function UB(e){return e/Math.pow(10,il(e))===1}function OB(e,t,n){const r=Math.pow(10,n),a=Math.floor(e/r);return Math.ceil(t/r)-a}function $H(e,t){const n=t-e;let r=il(n);for(;OB(e,t,r)>10;)r++;for(;OB(e,t,r)<10;)r--;return Math.min(r,il(e))}function KH(e,{min:t,max:n}){t=Dn(e.min,t);const r=[],a=il(t);let s=$H(t,n),i=s<0?Math.pow(10,Math.abs(s)):1;const A=Math.pow(10,s),l=a>s?Math.pow(10,a):0,c=Math.round((t-l)*i)/i,u=Math.floor((t-l)/A/10)*A*10;let d=Math.floor((c-u)/Math.pow(10,s)),f=Dn(e.min,Math.round((l+u+d*Math.pow(10,s))*i)/i);for(;f<n;)r.push({value:f,major:UB(f),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(s++,d=2,i=s>=0?1:i),f=Math.round((l+u+d*Math.pow(10,s))*i)/i;const p=Dn(e.max,f);return r.push({value:p,major:UB(p),significand:d}),r}class Mh extends mi{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=$u.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return vt(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=vt(t)?Math.max(0,t):null,this.max=vt(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!vt(this._userMin)&&(this.min=t===Is(this.min,0)?Is(this.min,-1):Is(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,a=this.max;const s=A=>r=t?r:A,i=A=>a=n?a:A;r===a&&(r<=0?(s(1),i(10)):(s(Is(r,-1)),i(Is(a,1)))),r<=0&&s(Is(a,-1)),a<=0&&i(Is(r,1)),this.min=r,this.max=a}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=KH(n,this);return t.bounds==="ticks"&&bC(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":Ul(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=za(t),this._valueRange=za(this.max)-za(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(za(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}G(Mh,"id","logarithmic"),G(Mh,"defaults",{ticks:{callback:Id.formatters.logarithmic,major:{enabled:!0}}});function Nh(e){const t=e.ticks;if(t.display&&e.display){const n=Ot(t.backdropPadding);return pe(t.font&&t.font.size,ot.font.size)+n.height}return 0}function zH(e,t,n){return n=Ve(n)?n:[n],{w:JP(e,t.string,n),h:n.length*t.lineHeight}}function LB(e,t,n,r,a){return e===r||e===a?{start:t-n/2,end:t+n/2}:e<r||e>a?{start:t-n,end:t}:{start:t,end:t+n}}function WH(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],a=[],s=e._pointLabels.length,i=e.options.pointLabels,A=i.centerPointLabels?be/s:0;for(let l=0;l<s;l++){const c=i.setContext(e.getPointLabelContext(l));a[l]=c.padding;const u=e.getPointPosition(l,e.drawingArea+a[l],A),d=yt(c.font),f=zH(e.ctx,d,e._pointLabels[l]);r[l]=f;const p=rn(e.getIndexAngle(l)+A),h=Math.round(Td(p)),m=LB(h,u.x,f.w,0,180),y=LB(h,u.y,f.h,90,270);GH(n,t,p,m,y)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=qH(e,r,a)}function GH(e,t,n,r,a){const s=Math.abs(Math.sin(n)),i=Math.abs(Math.cos(n));let A=0,l=0;r.start<t.l?(A=(t.l-r.start)/s,e.l=Math.min(e.l,t.l-A)):r.end>t.r&&(A=(r.end-t.r)/s,e.r=Math.max(e.r,t.r+A)),a.start<t.t?(l=(t.t-a.start)/i,e.t=Math.min(e.t,t.t-l)):a.end>t.b&&(l=(a.end-t.b)/i,e.b=Math.max(e.b,t.b+l))}function jH(e,t,n){const r=e.drawingArea,{extra:a,additionalAngle:s,padding:i,size:A}=n,l=e.getPointPosition(t,r+a+i,s),c=Math.round(Td(rn(l.angle+dt))),u=ZH(l.y,A.h,c),d=XH(c),f=JH(l.x,A.w,d);return{visible:!0,x:l.x,y:u,textAlign:d,left:f,top:u,right:f+A.w,bottom:u+A.h}}function YH(e,t){if(!t)return!0;const{left:n,top:r,right:a,bottom:s}=e;return!(ca({x:n,y:r},t)||ca({x:n,y:s},t)||ca({x:a,y:r},t)||ca({x:a,y:s},t))}function qH(e,t,n){const r=[],a=e._pointLabels.length,s=e.options,{centerPointLabels:i,display:A}=s.pointLabels,l={extra:Nh(s)/2,additionalAngle:i?be/a:0};let c;for(let u=0;u<a;u++){l.padding=n[u],l.size=t[u];const d=jH(e,u,l);r.push(d),A==="auto"&&(d.visible=YH(d,c),d.visible&&(c=d))}return r}function XH(e){return e===0||e===180?"center":e<180?"left":"right"}function JH(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function ZH(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function eV(e,t,n){const{left:r,top:a,right:s,bottom:i}=n,{backdropColor:A}=t;if(!Ce(A)){const l=ns(t.borderRadius),c=Ot(t.backdropPadding);e.fillStyle=A;const u=r-c.left,d=a-c.top,f=s-r+c.width,p=i-a+c.height;Object.values(l).some(h=>h!==0)?(e.beginPath(),go(e,{x:u,y:d,w:f,h:p,radius:l}),e.fill()):e.fillRect(u,d,f,p)}}function tV(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let a=t-1;a>=0;a--){const s=e._pointLabelItems[a];if(!s.visible)continue;const i=r.setContext(e.getPointLabelContext(a));eV(n,i,s);const A=yt(i.font),{x:l,y:c,textAlign:u}=s;Ai(n,e._pointLabels[a],l,c+A.lineHeight/2,A,{color:i.color,textAlign:u,textBaseline:"middle"})}}function fk(e,t,n,r){const{ctx:a}=e;if(n)a.arc(e.xCenter,e.yCenter,t,0,it);else{let s=e.getPointPosition(0,t);a.moveTo(s.x,s.y);for(let i=1;i<r;i++)s=e.getPointPosition(i,t),a.lineTo(s.x,s.y)}}function nV(e,t,n,r,a){const s=e.ctx,i=t.circular,{color:A,lineWidth:l}=t;!i&&!r||!A||!l||n<0||(s.save(),s.strokeStyle=A,s.lineWidth=l,s.setLineDash(a.dash||[]),s.lineDashOffset=a.dashOffset,s.beginPath(),fk(e,n,i,r),s.closePath(),s.stroke(),s.restore())}function rV(e,t,n){return _s(e,{label:n,index:t,type:"pointLabel"})}class AA extends $u{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=Ot(Nh(this.options)/2),n=this.width=this.maxWidth-t.width,r=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+n/2+t.left),this.yCenter=Math.floor(this.top+r/2+t.top),this.drawingArea=Math.floor(Math.min(n,r)/2)}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!1);this.min=vt(t)&&!isNaN(t)?t:0,this.max=vt(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Nh(this.options))}generateTickLabels(t){$u.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((n,r)=>{const a=We(this.options.pointLabels.callback,[n,r],this);return a||a===0?a:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?WH(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,a){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-a)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,a))}getIndexAngle(t){const n=it/(this._pointLabels.length||1),r=this.options.startAngle||0;return rn(t*n+Mt(r))}getDistanceFromCenterForValue(t){if(Ce(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(Ce(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t<n.length){const r=n[t];return rV(this.getContext(),t,r)}}getPointPosition(t,n,r=0){const a=this.getIndexAngle(t)-dt+r;return{x:Math.cos(a)*n+this.xCenter,y:Math.sin(a)*n+this.yCenter,angle:a}}getPointPositionForValue(t,n){return this.getPointPosition(t,this.getDistanceFromCenterForValue(n))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:n,top:r,right:a,bottom:s}=this._pointLabelItems[t];return{left:n,top:r,right:a,bottom:s}}drawBackground(){const{backgroundColor:t,grid:{circular:n}}=this.options;if(t){const r=this.ctx;r.save(),r.beginPath(),fk(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=t,r.fill(),r.restore()}}drawGrid(){const t=this.ctx,n=this.options,{angleLines:r,grid:a,border:s}=n,i=this._pointLabels.length;let A,l,c;if(n.pointLabels.display&&tV(this,i),a.display&&this.ticks.forEach((u,d)=>{if(d!==0||d===0&&this.min<0){l=this.getDistanceFromCenterForValue(u.value);const f=this.getContext(d),p=a.setContext(f),h=s.setContext(f);nV(this,p,l,i,h)}}),r.display){for(t.save(),A=i-1;A>=0;A--){const u=r.setContext(this.getPointLabelContext(A)),{color:d,lineWidth:f}=u;!f||!d||(t.lineWidth=f,t.strokeStyle=d,t.setLineDash(u.borderDash),t.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(n.reverse?this.min:this.max),c=this.getPointPosition(A,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const a=this.getIndexAngle(0);let s,i;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(a),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((A,l)=>{if(l===0&&this.min>=0&&!n.reverse)return;const c=r.setContext(this.getContext(l)),u=yt(c.font);if(s=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){t.font=u.string,i=t.measureText(A.label).width,t.fillStyle=c.backdropColor;const d=Ot(c.backdropPadding);t.fillRect(-i/2-d.left,-s-u.size/2-d.top,i+d.width,u.size+d.height)}Ai(t,A.label,0,-s,u,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),t.restore()}drawTitle(){}}G(AA,"id","radialLinear"),G(AA,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Id.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),G(AA,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),G(AA,"descriptors",{angleLines:{_fallback:"grid"}});const Od={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}},En=Object.keys(Od);function QB(e,t){return e-t}function MB(e,t){if(Ce(t))return null;const n=e._adapter,{parser:r,round:a,isoWeekday:s}=e._parseOpts;let i=t;return typeof r=="function"&&(i=r(i)),vt(i)||(i=typeof r=="string"?n.parse(i,r):n.parse(i)),i===null?null:(a&&(i=a==="week"&&(ps(s)||s===!0)?n.startOf(i,"isoWeek",s):n.startOf(i,a)),+i)}function NB(e,t,n,r){const a=En.length;for(let s=En.indexOf(e);s<a-1;++s){const i=Od[En[s]],A=i.steps?i.steps:Number.MAX_SAFE_INTEGER;if(i.common&&Math.ceil((n-t)/(A*i.size))<=r)return En[s]}return En[a-1]}function aV(e,t,n,r,a){for(let s=En.length-1;s>=En.indexOf(n);s--){const i=En[s];if(Od[i].common&&e._adapter.diff(a,r,i)>=t-1)return i}return En[n?En.indexOf(n):0]}function sV(e){for(let t=En.indexOf(e)+1,n=En.length;t<n;++t)if(Od[En[t]].common)return En[t]}function PB(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:a}=Qg(n,t),s=n[r]>=t?n[r]:n[a];e[s]=!0}}function iV(e,t,n,r){const a=e._adapter,s=+a.startOf(t[0].value,r),i=t[t.length-1].value;let A,l;for(A=s;A<=i;A=+a.add(A,1,r))l=n[A],l>=0&&(t[l].major=!0);return t}function RB(e,t,n){const r=[],a={},s=t.length;let i,A;for(i=0;i<s;++i)A=t[i],a[A]=i,r.push({value:A,major:!1});return s===0||!n?r:iV(e,r,a,n)}class ol extends mi{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,n={}){const r=t.time||(t.time={}),a=this._adapter=new GC._date(t.adapters.date);a.init(n),CA(r.displayFormats,a.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:MB(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,r=t.time.unit||"day";let{min:a,max:s,minDefined:i,maxDefined:A}=this.getUserBounds();function l(c){!i&&!isNaN(c.min)&&(a=Math.min(a,c.min)),!A&&!isNaN(c.max)&&(s=Math.max(s,c.max))}(!i||!A)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),a=vt(a)&&!isNaN(a)?a:+n.startOf(Date.now(),r),s=vt(s)&&!isNaN(s)?s:+n.endOf(Date.now(),r)+1,this.min=Math.min(a,s-1),this.max=Math.max(a+1,s)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],r=t[t.length-1]),{min:n,max:r}}buildTicks(){const t=this.options,n=t.time,r=t.ticks,a=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&a.length&&(this.min=this._userMin||a[0],this.max=this._userMax||a[a.length-1]);const s=this.min,i=this.max,A=PP(a,s,i);return this._unit=n.unit||(r.autoSkip?NB(n.minUnit,this.min,this.max,this._getLabelCapacity(s)):aV(this,A.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:sV(this._unit),this.initOffsets(a),t.reverse&&A.reverse(),RB(this,A,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,r=0,a,s;this.options.offset&&t.length&&(a=this.getDecimalForValue(t[0]),t.length===1?n=1-a:n=(this.getDecimalForValue(t[1])-a)/2,s=this.getDecimalForValue(t[t.length-1]),t.length===1?r=s:r=(s-this.getDecimalForValue(t[t.length-2]))/2);const i=t.length<3?.5:.25;n=Wt(n,0,i),r=Wt(r,0,i),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,a=this.options,s=a.time,i=s.unit||NB(s.minUnit,n,r,this._getLabelCapacity(n)),A=pe(a.ticks.stepSize,1),l=i==="week"?s.isoWeekday:!1,c=ps(l)||l===!0,u={};let d=n,f,p;if(c&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,c?"day":i),t.diff(r,n,i)>1e5*A)throw new Error(n+" and "+r+" are too far apart with stepSize of "+A+" "+i);const h=a.ticks.source==="data"&&this.getDataTimestamps();for(f=d,p=0;f<r;f=+t.add(f,A,i),p++)PB(u,f,h);return(f===r||a.bounds==="ticks"||p===1)&&PB(u,f,h),Object.keys(u).sort(QB).map(m=>+m)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const a=this.options.time.displayFormats,s=this._unit,i=n||a[s];return this._adapter.format(t,i)}_tickFormatFunction(t,n,r,a){const s=this.options,i=s.ticks.callback;if(i)return We(i,[t,n,r],this);const A=s.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&A[l],d=c&&A[c],f=r[n],p=c&&d&&f&&f.major;return this._adapter.format(t,a||(p?d:u))}generateTickLabels(t){let n,r,a;for(n=0,r=t.length;n<r;++n)a=t[n],a.label=this._tickFormatFunction(a.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,r=this.ctx.measureText(t).width,a=Mt(this.isHorizontal()?n.maxRotation:n.minRotation),s=Math.cos(a),i=Math.sin(a),A=this._resolveTickFontOptions(0).size;return{w:r*s+A*i,h:r*i+A*s}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,a=r[n.unit]||r.millisecond,s=this._tickFormatFunction(t,0,RB(this,[t],this._majorUnit),a),i=this._getLabelSize(s),A=Math.floor(this.isHorizontal()?this.width/i.w:this.height/i.h)-1;return A>0?A:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const a=this.getMatchingVisibleMetas();if(this._normalized&&a.length)return this._cache.data=a[0].controller.getAllParsedValues(this);for(n=0,r=a.length;n<r;++n)t=t.concat(a[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,r;if(t.length)return t;const a=this.getLabels();for(n=0,r=a.length;n<r;++n)t.push(MB(this,a[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return kC(t.sort(QB))}}G(ol,"id","time"),G(ol,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function wc(e,t,n){let r=0,a=e.length-1,s,i,A,l;n?(t>=e[r].pos&&t<=e[a].pos&&({lo:r,hi:a}=la(e,"pos",t)),{pos:s,time:A}=e[r],{pos:i,time:l}=e[a]):(t>=e[r].time&&t<=e[a].time&&({lo:r,hi:a}=la(e,"time",t)),{time:s,pos:A}=e[r],{time:i,pos:l}=e[a]);const c=i-s;return c?A+(l-A)*(t-s)/c:A}class Ph extends ol{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=wc(n,this.min),this._tableRange=wc(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,a=[],s=[];let i,A,l,c,u;for(i=0,A=t.length;i<A;++i)c=t[i],c>=n&&c<=r&&a.push(c);if(a.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(i=0,A=a.length;i<A;++i)u=a[i+1],l=a[i-1],c=a[i],Math.round((u+l)/2)!==c&&s.push({time:c,pos:i/(A-1)});return s}_generate(){const t=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(t)||!r.length)&&r.splice(0,0,t),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((a,s)=>a-s)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(wc(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return wc(this._table,r*this._tableRange+this._minPos,!0)}}G(Ph,"id","timeseries"),G(Ph,"defaults",ol.defaults);var oV=Object.freeze({__proto__:null,CategoryScale:Lh,LinearScale:Qh,LogarithmicScale:Mh,RadialLinearScale:AA,TimeScale:ol,TimeSeriesScale:Ph});const Rr=[p9,$R,NH,oV];var AV=typeof global=="object"&&global&&global.Object===Object&&global;const pk=AV;var lV=typeof self=="object"&&self&&self.Object===Object&&self,cV=pk||lV||Function("return this")();const Hr=cV;var uV=Hr.Symbol;const hs=uV;var hk=Object.prototype,dV=hk.hasOwnProperty,fV=hk.toString,Yo=hs?hs.toStringTag:void 0;function pV(e){var t=dV.call(e,Yo),n=e[Yo];try{e[Yo]=void 0;var r=!0}catch{}var a=fV.call(e);return r&&(t?e[Yo]=n:delete e[Yo]),a}var hV=Object.prototype,mV=hV.toString;function gV(e){return mV.call(e)}var vV="[object Null]",yV="[object Undefined]",HB=hs?hs.toStringTag:void 0;function Ml(e){return e==null?e===void 0?yV:vV:HB&&HB in Object(e)?pV(e):gV(e)}function li(e){return e!=null&&typeof e=="object"}var BV=Array.isArray;const Bo=BV;function Nl(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var wV="[object AsyncFunction]",bV="[object Function]",_V="[object GeneratorFunction]",CV="[object Proxy]";function mk(e){if(!Nl(e))return!1;var t=Ml(e);return t==bV||t==_V||t==wV||t==CV}var kV=Hr["__core-js_shared__"];const Ap=kV;var VB=function(){var e=/[^.]+$/.exec(Ap&&Ap.keys&&Ap.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function EV(e){return!!VB&&VB in e}var SV=Function.prototype,xV=SV.toString;function gi(e){if(e!=null){try{return xV.call(e)}catch{}try{return e+""}catch{}}return""}var FV=/[\\^$.*+?()[\]{}|]/g,TV=/^\[object .+?Constructor\]$/,IV=Function.prototype,DV=Object.prototype,UV=IV.toString,OV=DV.hasOwnProperty,LV=RegExp("^"+UV.call(OV).replace(FV,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function QV(e){if(!Nl(e)||EV(e))return!1;var t=mk(e)?LV:TV;return t.test(gi(e))}function MV(e,t){return e==null?void 0:e[t]}function vi(e,t){var n=MV(e,t);return QV(n)?n:void 0}var NV=vi(Hr,"WeakMap");const Rh=NV;var $B=Object.create,PV=function(){function e(){}return function(t){if(!Nl(t))return{};if($B)return $B(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const RV=PV;function HV(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var VV=function(){try{var e=vi(Object,"defineProperty");return e({},"",{}),e}catch{}}();const KB=VV;function $V(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var KV=9007199254740991,zV=/^(?:0|[1-9]\d*)$/;function WV(e,t){var n=typeof e;return t=t??KV,!!t&&(n=="number"||n!="symbol"&&zV.test(e))&&e>-1&&e%1==0&&e<t}function gk(e,t,n){t=="__proto__"&&KB?KB(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function jg(e,t){return e===t||e!==e&&t!==t}var GV=Object.prototype,jV=GV.hasOwnProperty;function vk(e,t,n){var r=e[t];(!(jV.call(e,t)&&jg(r,n))||n===void 0&&!(t in e))&&gk(e,t,n)}function Ld(e,t,n,r){var a=!n;n||(n={});for(var s=-1,i=t.length;++s<i;){var A=t[s],l=r?r(n[A],e[A],A,n,e):void 0;l===void 0&&(l=e[A]),a?gk(n,A,l):vk(n,A,l)}return n}var YV=9007199254740991;function yk(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=YV}function Yg(e){return e!=null&&yk(e.length)&&!mk(e)}var qV=Object.prototype;function Qd(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||qV;return e===n}function XV(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var JV="[object Arguments]";function zB(e){return li(e)&&Ml(e)==JV}var Bk=Object.prototype,ZV=Bk.hasOwnProperty,e$=Bk.propertyIsEnumerable,t$=zB(function(){return arguments}())?zB:function(e){return li(e)&&ZV.call(e,"callee")&&!e$.call(e,"callee")};const wk=t$;function n$(){return!1}var bk=typeof exports=="object"&&exports&&!exports.nodeType&&exports,WB=bk&&typeof module=="object"&&module&&!module.nodeType&&module,r$=WB&&WB.exports===bk,GB=r$?Hr.Buffer:void 0,a$=GB?GB.isBuffer:void 0,s$=a$||n$;const Al=s$;var i$="[object Arguments]",o$="[object Array]",A$="[object Boolean]",l$="[object Date]",c$="[object Error]",u$="[object Function]",d$="[object Map]",f$="[object Number]",p$="[object Object]",h$="[object RegExp]",m$="[object Set]",g$="[object String]",v$="[object WeakMap]",y$="[object ArrayBuffer]",B$="[object DataView]",w$="[object Float32Array]",b$="[object Float64Array]",_$="[object Int8Array]",C$="[object Int16Array]",k$="[object Int32Array]",E$="[object Uint8Array]",S$="[object Uint8ClampedArray]",x$="[object Uint16Array]",F$="[object Uint32Array]",lt={};lt[w$]=lt[b$]=lt[_$]=lt[C$]=lt[k$]=lt[E$]=lt[S$]=lt[x$]=lt[F$]=!0;lt[i$]=lt[o$]=lt[y$]=lt[A$]=lt[B$]=lt[l$]=lt[c$]=lt[u$]=lt[d$]=lt[f$]=lt[p$]=lt[h$]=lt[m$]=lt[g$]=lt[v$]=!1;function T$(e){return li(e)&&yk(e.length)&&!!lt[Ml(e)]}function qg(e){return function(t){return e(t)}}var _k=typeof exports=="object"&&exports&&!exports.nodeType&&exports,IA=_k&&typeof module=="object"&&module&&!module.nodeType&&module,I$=IA&&IA.exports===_k,lp=I$&&pk.process,D$=function(){try{var e=IA&&IA.require&&IA.require("util").types;return e||lp&&lp.binding&&lp.binding("util")}catch{}}();const wo=D$;var jB=wo&&wo.isTypedArray,U$=jB?qg(jB):T$;const Xg=U$;var O$=Object.prototype,L$=O$.hasOwnProperty;function Ck(e,t){var n=Bo(e),r=!n&&wk(e),a=!n&&!r&&Al(e),s=!n&&!r&&!a&&Xg(e),i=n||r||a||s,A=i?XV(e.length,String):[],l=A.length;for(var c in e)(t||L$.call(e,c))&&!(i&&(c=="length"||a&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||WV(c,l)))&&A.push(c);return A}function kk(e,t){return function(n){return e(t(n))}}var Q$=kk(Object.keys,Object);const M$=Q$;var N$=Object.prototype,P$=N$.hasOwnProperty;function Ek(e){if(!Qd(e))return M$(e);var t=[];for(var n in Object(e))P$.call(e,n)&&n!="constructor"&&t.push(n);return t}function Jg(e){return Yg(e)?Ck(e):Ek(e)}function R$(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var H$=Object.prototype,V$=H$.hasOwnProperty;function $$(e){if(!Nl(e))return R$(e);var t=Qd(e),n=[];for(var r in e)r=="constructor"&&(t||!V$.call(e,r))||n.push(r);return n}function Zg(e){return Yg(e)?Ck(e,!0):$$(e)}var K$=vi(Object,"create");const ll=K$;function z$(){this.__data__=ll?ll(null):{},this.size=0}function W$(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var G$="__lodash_hash_undefined__",j$=Object.prototype,Y$=j$.hasOwnProperty;function q$(e){var t=this.__data__;if(ll){var n=t[e];return n===G$?void 0:n}return Y$.call(t,e)?t[e]:void 0}var X$=Object.prototype,J$=X$.hasOwnProperty;function Z$(e){var t=this.__data__;return ll?t[e]!==void 0:J$.call(t,e)}var eK="__lodash_hash_undefined__";function tK(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ll&&t===void 0?eK:t,this}function ci(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ci.prototype.clear=z$;ci.prototype.delete=W$;ci.prototype.get=q$;ci.prototype.has=Z$;ci.prototype.set=tK;function nK(){this.__data__=[],this.size=0}function Md(e,t){for(var n=e.length;n--;)if(jg(e[n][0],t))return n;return-1}var rK=Array.prototype,aK=rK.splice;function sK(e){var t=this.__data__,n=Md(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():aK.call(t,n,1),--this.size,!0}function iK(e){var t=this.__data__,n=Md(t,e);return n<0?void 0:t[n][1]}function oK(e){return Md(this.__data__,e)>-1}function AK(e,t){var n=this.__data__,r=Md(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ia(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ia.prototype.clear=nK;Ia.prototype.delete=sK;Ia.prototype.get=iK;Ia.prototype.has=oK;Ia.prototype.set=AK;var lK=vi(Hr,"Map");const cl=lK;function cK(){this.size=0,this.__data__={hash:new ci,map:new(cl||Ia),string:new ci}}function uK(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Nd(e,t){var n=e.__data__;return uK(t)?n[typeof t=="string"?"string":"hash"]:n.map}function dK(e){var t=Nd(this,e).delete(e);return this.size-=t?1:0,t}function fK(e){return Nd(this,e).get(e)}function pK(e){return Nd(this,e).has(e)}function hK(e,t){var n=Nd(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function yi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}yi.prototype.clear=cK;yi.prototype.delete=dK;yi.prototype.get=fK;yi.prototype.has=pK;yi.prototype.set=hK;function Sk(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var mK=kk(Object.getPrototypeOf,Object);const xk=mK;function gK(){this.__data__=new Ia,this.size=0}function vK(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function yK(e){return this.__data__.get(e)}function BK(e){return this.__data__.has(e)}var wK=200;function bK(e,t){var n=this.__data__;if(n instanceof Ia){var r=n.__data__;if(!cl||r.length<wK-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new yi(r)}return n.set(e,t),this.size=n.size,this}function ha(e){var t=this.__data__=new Ia(e);this.size=t.size}ha.prototype.clear=gK;ha.prototype.delete=vK;ha.prototype.get=yK;ha.prototype.has=BK;ha.prototype.set=bK;function _K(e,t){return e&&Ld(t,Jg(t),e)}function CK(e,t){return e&&Ld(t,Zg(t),e)}var Fk=typeof exports=="object"&&exports&&!exports.nodeType&&exports,YB=Fk&&typeof module=="object"&&module&&!module.nodeType&&module,kK=YB&&YB.exports===Fk,qB=kK?Hr.Buffer:void 0,XB=qB?qB.allocUnsafe:void 0;function EK(e,t){if(t)return e.slice();var n=e.length,r=XB?XB(n):new e.constructor(n);return e.copy(r),r}function SK(e,t){for(var n=-1,r=e==null?0:e.length,a=0,s=[];++n<r;){var i=e[n];t(i,n,e)&&(s[a++]=i)}return s}function Tk(){return[]}var xK=Object.prototype,FK=xK.propertyIsEnumerable,JB=Object.getOwnPropertySymbols,TK=JB?function(e){return e==null?[]:(e=Object(e),SK(JB(e),function(t){return FK.call(e,t)}))}:Tk;const e1=TK;function IK(e,t){return Ld(e,e1(e),t)}var DK=Object.getOwnPropertySymbols,UK=DK?function(e){for(var t=[];e;)Sk(t,e1(e)),e=xk(e);return t}:Tk;const Ik=UK;function OK(e,t){return Ld(e,Ik(e),t)}function Dk(e,t,n){var r=t(e);return Bo(e)?r:Sk(r,n(e))}function Hh(e){return Dk(e,Jg,e1)}function LK(e){return Dk(e,Zg,Ik)}var QK=vi(Hr,"DataView");const Vh=QK;var MK=vi(Hr,"Promise");const $h=MK;var NK=vi(Hr,"Set");const Kh=NK;var ZB="[object Map]",PK="[object Object]",e2="[object Promise]",t2="[object Set]",n2="[object WeakMap]",r2="[object DataView]",RK=gi(Vh),HK=gi(cl),VK=gi($h),$K=gi(Kh),KK=gi(Rh),Ms=Ml;(Vh&&Ms(new Vh(new ArrayBuffer(1)))!=r2||cl&&Ms(new cl)!=ZB||$h&&Ms($h.resolve())!=e2||Kh&&Ms(new Kh)!=t2||Rh&&Ms(new Rh)!=n2)&&(Ms=function(e){var t=Ml(e),n=t==PK?e.constructor:void 0,r=n?gi(n):"";if(r)switch(r){case RK:return r2;case HK:return ZB;case VK:return e2;case $K:return t2;case KK:return n2}return t});const bo=Ms;var zK=Object.prototype,WK=zK.hasOwnProperty;function GK(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&WK.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var jK=Hr.Uint8Array;const Ku=jK;function t1(e){var t=new e.constructor(e.byteLength);return new Ku(t).set(new Ku(e)),t}function YK(e,t){var n=t?t1(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var qK=/\w*$/;function XK(e){var t=new e.constructor(e.source,qK.exec(e));return t.lastIndex=e.lastIndex,t}var a2=hs?hs.prototype:void 0,s2=a2?a2.valueOf:void 0;function JK(e){return s2?Object(s2.call(e)):{}}function ZK(e,t){var n=t?t1(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var ez="[object Boolean]",tz="[object Date]",nz="[object Map]",rz="[object Number]",az="[object RegExp]",sz="[object Set]",iz="[object String]",oz="[object Symbol]",Az="[object ArrayBuffer]",lz="[object DataView]",cz="[object Float32Array]",uz="[object Float64Array]",dz="[object Int8Array]",fz="[object Int16Array]",pz="[object Int32Array]",hz="[object Uint8Array]",mz="[object Uint8ClampedArray]",gz="[object Uint16Array]",vz="[object Uint32Array]";function yz(e,t,n){var r=e.constructor;switch(t){case Az:return t1(e);case ez:case tz:return new r(+e);case lz:return YK(e,n);case cz:case uz:case dz:case fz:case pz:case hz:case mz:case gz:case vz:return ZK(e,n);case nz:return new r;case rz:case iz:return new r(e);case az:return XK(e);case sz:return new r;case oz:return JK(e)}}function Bz(e){return typeof e.constructor=="function"&&!Qd(e)?RV(xk(e)):{}}var wz="[object Map]";function bz(e){return li(e)&&bo(e)==wz}var i2=wo&&wo.isMap,_z=i2?qg(i2):bz;const Cz=_z;var kz="[object Set]";function Ez(e){return li(e)&&bo(e)==kz}var o2=wo&&wo.isSet,Sz=o2?qg(o2):Ez;const xz=Sz;var Fz=1,Tz=2,Iz=4,Uk="[object Arguments]",Dz="[object Array]",Uz="[object Boolean]",Oz="[object Date]",Lz="[object Error]",Ok="[object Function]",Qz="[object GeneratorFunction]",Mz="[object Map]",Nz="[object Number]",Lk="[object Object]",Pz="[object RegExp]",Rz="[object Set]",Hz="[object String]",Vz="[object Symbol]",$z="[object WeakMap]",Kz="[object ArrayBuffer]",zz="[object DataView]",Wz="[object Float32Array]",Gz="[object Float64Array]",jz="[object Int8Array]",Yz="[object Int16Array]",qz="[object Int32Array]",Xz="[object Uint8Array]",Jz="[object Uint8ClampedArray]",Zz="[object Uint16Array]",eW="[object Uint32Array]",rt={};rt[Uk]=rt[Dz]=rt[Kz]=rt[zz]=rt[Uz]=rt[Oz]=rt[Wz]=rt[Gz]=rt[jz]=rt[Yz]=rt[qz]=rt[Mz]=rt[Nz]=rt[Lk]=rt[Pz]=rt[Rz]=rt[Hz]=rt[Vz]=rt[Xz]=rt[Jz]=rt[Zz]=rt[eW]=!0;rt[Lz]=rt[Ok]=rt[$z]=!1;function pu(e,t,n,r,a,s){var i,A=t&Fz,l=t&Tz,c=t&Iz;if(n&&(i=a?n(e,r,a,s):n(e)),i!==void 0)return i;if(!Nl(e))return e;var u=Bo(e);if(u){if(i=GK(e),!A)return HV(e,i)}else{var d=bo(e),f=d==Ok||d==Qz;if(Al(e))return EK(e,A);if(d==Lk||d==Uk||f&&!a){if(i=l||f?{}:Bz(e),!A)return l?OK(e,CK(i,e)):IK(e,_K(i,e))}else{if(!rt[d])return a?e:{};i=yz(e,d,A)}}s||(s=new ha);var p=s.get(e);if(p)return p;s.set(e,i),xz(e)?e.forEach(function(y){i.add(pu(y,t,n,y,e,s))}):Cz(e)&&e.forEach(function(y,g){i.set(g,pu(y,t,n,g,e,s))});var h=c?l?LK:Hh:l?Zg:Jg,m=u?void 0:h(e);return $V(m||e,function(y,g){m&&(g=y,y=e[g]),vk(i,g,pu(y,t,n,g,e,s))}),i}var tW=1,nW=4;function qo(e){return pu(e,tW|nW)}var rW="__lodash_hash_undefined__";function aW(e){return this.__data__.set(e,rW),this}function sW(e){return this.__data__.has(e)}function zu(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new yi;++t<n;)this.add(e[t])}zu.prototype.add=zu.prototype.push=aW;zu.prototype.has=sW;function iW(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function oW(e,t){return e.has(t)}var AW=1,lW=2;function Qk(e,t,n,r,a,s){var i=n&AW,A=e.length,l=t.length;if(A!=l&&!(i&&l>A))return!1;var c=s.get(e),u=s.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,p=n&lW?new zu:void 0;for(s.set(e,t),s.set(t,e);++d<A;){var h=e[d],m=t[d];if(r)var y=i?r(m,h,d,t,e,s):r(h,m,d,e,t,s);if(y!==void 0){if(y)continue;f=!1;break}if(p){if(!iW(t,function(g,w){if(!oW(p,w)&&(h===g||a(h,g,n,r,s)))return p.push(w)})){f=!1;break}}else if(!(h===m||a(h,m,n,r,s))){f=!1;break}}return s.delete(e),s.delete(t),f}function cW(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}function uW(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var dW=1,fW=2,pW="[object Boolean]",hW="[object Date]",mW="[object Error]",gW="[object Map]",vW="[object Number]",yW="[object RegExp]",BW="[object Set]",wW="[object String]",bW="[object Symbol]",_W="[object ArrayBuffer]",CW="[object DataView]",A2=hs?hs.prototype:void 0,cp=A2?A2.valueOf:void 0;function kW(e,t,n,r,a,s,i){switch(n){case CW:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _W:return!(e.byteLength!=t.byteLength||!s(new Ku(e),new Ku(t)));case pW:case hW:case vW:return jg(+e,+t);case mW:return e.name==t.name&&e.message==t.message;case yW:case wW:return e==t+"";case gW:var A=cW;case BW:var l=r&dW;if(A||(A=uW),e.size!=t.size&&!l)return!1;var c=i.get(e);if(c)return c==t;r|=fW,i.set(e,t);var u=Qk(A(e),A(t),r,a,s,i);return i.delete(e),u;case bW:if(cp)return cp.call(e)==cp.call(t)}return!1}var EW=1,SW=Object.prototype,xW=SW.hasOwnProperty;function FW(e,t,n,r,a,s){var i=n&EW,A=Hh(e),l=A.length,c=Hh(t),u=c.length;if(l!=u&&!i)return!1;for(var d=l;d--;){var f=A[d];if(!(i?f in t:xW.call(t,f)))return!1}var p=s.get(e),h=s.get(t);if(p&&h)return p==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var y=i;++d<l;){f=A[d];var g=e[f],w=t[f];if(r)var B=i?r(w,g,f,t,e,s):r(g,w,f,e,t,s);if(!(B===void 0?g===w||a(g,w,n,r,s):B)){m=!1;break}y||(y=f=="constructor")}if(m&&!y){var v=e.constructor,_=t.constructor;v!=_&&"constructor"in e&&"constructor"in t&&!(typeof v=="function"&&v instanceof v&&typeof _=="function"&&_ instanceof _)&&(m=!1)}return s.delete(e),s.delete(t),m}var TW=1,l2="[object Arguments]",c2="[object Array]",bc="[object Object]",IW=Object.prototype,u2=IW.hasOwnProperty;function DW(e,t,n,r,a,s){var i=Bo(e),A=Bo(t),l=i?c2:bo(e),c=A?c2:bo(t);l=l==l2?bc:l,c=c==l2?bc:c;var u=l==bc,d=c==bc,f=l==c;if(f&&Al(e)){if(!Al(t))return!1;i=!0,u=!1}if(f&&!u)return s||(s=new ha),i||Xg(e)?Qk(e,t,n,r,a,s):kW(e,t,l,n,r,a,s);if(!(n&TW)){var p=u&&u2.call(e,"__wrapped__"),h=d&&u2.call(t,"__wrapped__");if(p||h){var m=p?e.value():e,y=h?t.value():t;return s||(s=new ha),a(m,y,n,r,s)}}return f?(s||(s=new ha),FW(e,t,n,r,a,s)):!1}function Mk(e,t,n,r,a){return e===t?!0:e==null||t==null||!li(e)&&!li(t)?e!==e&&t!==t:DW(e,t,n,r,Mk,a)}var UW="[object Map]",OW="[object Set]",LW=Object.prototype,QW=LW.hasOwnProperty;function MW(e){if(e==null)return!0;if(Yg(e)&&(Bo(e)||typeof e=="string"||typeof e.splice=="function"||Al(e)||Xg(e)||wk(e)))return!e.length;var t=bo(e);if(t==UW||t==OW)return!e.size;if(Qd(e))return!Ek(e).length;for(var n in e)if(QW.call(e,n))return!1;return!0}function d2(e,t){return Mk(e,t)}var NW=Object.defineProperty,PW=Object.defineProperties,RW=Object.getOwnPropertyDescriptors,f2=Object.getOwnPropertySymbols,HW=Object.prototype.hasOwnProperty,VW=Object.prototype.propertyIsEnumerable,p2=(e,t,n)=>t in e?NW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$W=(e,t)=>{for(var n in t||(t={}))HW.call(t,n)&&p2(e,n,t[n]);if(f2)for(var n of f2(t))VW.call(t,n)&&p2(e,n,t[n]);return e},KW=(e,t)=>PW(e,RW(t));function zW(e){return(e.match(/[a-zA-Z0-9]+/g)||[]).map(t=>`${t.charAt(0).toUpperCase()}${t.slice(1)}`).join("")}var Cs=(e,t)=>{const n={chartData:{type:Object,required:!0},options:{type:Object,required:!1},chartId:{default:e,type:String},width:{default:400,type:Number},height:{default:400,type:Number},cssClasses:{type:String,default:""},styles:{type:Object},plugins:{type:Array,default:()=>[]},onLabelsUpdate:{type:Function},onChartUpdate:{type:Function},onChartDestroy:{type:Function},onChartRender:{type:Function}},r=zW(e);return o.defineComponent({name:r,props:n,emits:{"labels:update":()=>!0,"chart:update":a=>!0,"chart:destroy":()=>!0,"chart:render":a=>!0},setup(a,{emit:s,expose:i}){const A=o.ref(null),l=`${a.chartId}`;let c=o.shallowRef(null);o.watch(()=>a.chartData,u,{deep:!0}),o.watch(()=>a.options,y=>{c.value&&y&&(c.value.options=qo(y),h())},{deep:!0});function u(y){if(c.value){let g=c.value;d2(y.labels,c.value.data.labels)||(g.data.labels=y.labels,f()),d2(y.datasets,c.value.data.datasets)||y.datasets.forEach((w,B)=>{var v,_;if(MW(w))g.data.datasets=[];else{const b=qo(g.data),k=Object.keys((_=(v=b.datasets)==null?void 0:v[B])!=null?_:{}),C=Object.keys(w);k.filter(D=>D!=="_meta"&&C.indexOf(D)===-1).forEach(D=>{g.data.datasets[B]&&delete g.data.datasets[B][D]});for(const D in w){const T=qo(w[D]);g.data.datasets[B]||(g.data.datasets[B]={}),w.hasOwnProperty(D)&&T!=null&&g&&(g.data.datasets[B][D]=T)}}}),h()}else c.value&&m(),d()}function d(){A.value?(c.value=new He(A.value,{data:qo(a.chartData),type:t,options:qo(a.options),plugins:a.plugins}),p()):console.error(`Error on component ${r}, canvas cannot be rendered. Check if the render appends server-side`)}function f(){s("labels:update"),a.onLabelsUpdate&&a.onLabelsUpdate()}function p(){c.value&&(s("chart:render",c.value),a.onChartRender&&a.onChartRender(c.value))}function h(){c.value&&(c.value.update(),s("chart:update",c.value),a.onChartUpdate&&a.onChartUpdate(c.value))}function m(){c.value&&c.value.destroy(),s("chart:destroy"),a.onChartDestroy&&a.onChartDestroy()}return o.onMounted(d),o.onBeforeUnmount(()=>{c.value&&c.value.destroy()}),i({canvasRef:A,renderChart:d,chartInstance:c,canvasId:l,update:h}),()=>o.h("div",{style:KW($W({maxWidth:"100%"},a.styles),{position:"relative"}),class:a.cssClasses},[o.h("canvas",{style:{maxWidth:"100%",maxHeight:"100%"},id:l,width:a.width,height:a.height,ref:A})])}})},Pd=Cs("bar-chart","bar"),Rd=Cs("doughnut-chart","doughnut"),Nk=Cs("line-chart","line");Cs("pie-chart","pie");Cs("polar-chart","polarArea");Cs("radar-chart","radar");Cs("bubble-chart","bubble");Cs("scatter-chart","scatter");const Wu=o.defineComponent({__name:"InfoDoughnutChart",props:nP,setup(e){const t=o.ref(null);He.register(...Rr);const n=e,r=o.computed(()=>{const s=n.info==="typeRef"?"types":"rarities",i={},A=Et(n.deckCode);for(const c in A){const u=mn().cardJsonObject[c];if(u===void 0)continue;let d=u[n.info];d==="Unit"&&(d=u.supertype==="Champion"?"Champion":"Follower"),i[d]===void 0&&(i[d]=0),i[d]+=A[c]}const l=[];for(const c in i){const u=Be().dataJson[s].find(f=>f.nameRef===c),d={key:c,value:i[c],color:u==null?void 0:u.color,name:u==null?void 0:u.name,order:u==null?void 0:u.order};l.push(d)}return console.log(l),l.sort((c,u)=>c.order-u.order),{labels:l.map(c=>c.name),datasets:[{data:l.map(c=>c.value),backgroundColor:l.map(c=>c.color)}]}}),a={cutout:55,layout:{padding:{top:10,bottom:10}},elements:{arc:{borderWidth:0}},plugins:{legend:{display:!0,position:"right",labels:{usePointStyle:!0,generateLabels(s){const i=[],A=s.data.labels;for(let l=0;l<s.data.labels.length;l++)i.push({text:`${A[l]} (${s.data.datasets[0].data[l]})`,borderRadius:999,datasetIndex:0,index:l,fontColor:os("--color-0"),fillStyle:s.data.datasets[0].backgroundColor[l]});return i}}},datalabels:{display:!1}}};return(s,i)=>(o.openBlock(),o.createBlock(o.unref(Rd),{ref_key:"chart",ref:t,"chart-data":r.value,options:a},null,8,["chart-data"]))}}),WW={deck:{type:Object,required:!1,default:void 0},deckCode:{type:String,required:!1,default:void 0},paddingTop:{type:Number,required:!1,default:10},showDataLabels:{type:Boolean,required:!1,default:!0},dataLabelsOffset:{type:Number,required:!1,default:-10},tooltipsEnabled:{type:Boolean,required:!1,default:!0},displayXScale:{type:Boolean,required:!1,default:!0},animation:{type:Boolean,required:!1}};//! moment.js
|
|
646
|
+
`):e}function TH(e,t){const{element:n,datasetIndex:r,index:a}=t,s=e.getDatasetMeta(r).controller,{label:i,value:A}=s.getLabelAndValue(a);return{chart:e,label:i,parsed:s.getParsed(a),raw:e.data.datasets[r].data[a],formattedValue:A,dataset:s.getDataset(),dataIndex:a,datasetIndex:r,element:n}}function EB(e,t){const n=e.chart.ctx,{body:r,footer:a,title:s}=e,{boxWidth:i,boxHeight:A}=t,l=yt(t.bodyFont),c=yt(t.titleFont),u=yt(t.footerFont),d=s.length,f=a.length,p=r.length,h=Ot(t.padding);let m=h.height,y=0,g=r.reduce((v,_)=>v+_.before.length+_.lines.length+_.after.length,0);if(g+=e.beforeBody.length+e.afterBody.length,d&&(m+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),g){const v=t.displayColors?Math.max(A,l.lineHeight):l.lineHeight;m+=p*v+(g-p)*l.lineHeight+(g-1)*t.bodySpacing}f&&(m+=t.footerMarginTop+f*u.lineHeight+(f-1)*t.footerSpacing);let w=0;const B=function(v){y=Math.max(y,n.measureText(v).width+w)};return n.save(),n.font=c.string,je(e.title,B),n.font=l.string,je(e.beforeBody.concat(e.afterBody),B),w=t.displayColors?i+2+t.boxPadding:0,je(r,v=>{je(v.before,B),je(v.lines,B),je(v.after,B)}),w=0,n.font=u.string,je(e.footer,B),n.restore(),y+=h.width,{width:y,height:m}}function IH(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function DH(e,t,n,r){const{x:a,width:s}=r,i=n.caretSize+n.caretPadding;if(e==="left"&&a+s+i>t.width||e==="right"&&a-s-i<0)return!0}function UH(e,t,n,r){const{x:a,width:s}=n,{width:i,chartArea:{left:A,right:l}}=e;let c="center";return r==="center"?c=a<=(A+l)/2?"left":"right":a<=s/2?c="left":a>=i-s/2&&(c="right"),DH(c,e,t,n)&&(c="center"),c}function SB(e,t,n){const r=n.yAlign||t.yAlign||IH(e,n);return{xAlign:n.xAlign||t.xAlign||UH(e,t,n,r),yAlign:r}}function OH(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function LH(e,t,n){let{y:r,height:a}=e;return t==="top"?r+=n:t==="bottom"?r-=a+n:r-=a/2,r}function xB(e,t,n,r){const{caretSize:a,caretPadding:s,cornerRadius:i}=e,{xAlign:A,yAlign:l}=n,c=a+s,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:p}=ns(i);let h=OH(t,A);const m=LH(t,l,c);return l==="center"?A==="left"?h+=c:A==="right"&&(h-=c):A==="left"?h-=Math.max(u,f)+a:A==="right"&&(h+=Math.max(d,p)+a),{x:Wt(h,0,r.width-t.width),y:Wt(m,0,r.height-t.height)}}function Bc(e,t,n){const r=Ot(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function FB(e){return wr([],ra(e))}function QH(e,t,n){return _s(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function TB(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const dk={beforeTitle:Xr,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:Xr,beforeBody:Xr,beforeLabel:Xr,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return Ce(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:Xr,afterBody:Xr,beforeFooter:Xr,footer:Xr,afterFooter:Xr};function wn(e,t,n,r){const a=e[t].call(n,r);return typeof a>"u"?dk[t].call(n,r):a}class Oh extends gn{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 n=this.chart,r=this.options.setContext(this.getContext()),a=r.enabled&&n.options.animation&&r.animations,s=new zg(this.chart,a);return a._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=QH(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,a=wn(r,"beforeTitle",this,t),s=wn(r,"title",this,t),i=wn(r,"afterTitle",this,t);let A=[];return A=wr(A,ra(a)),A=wr(A,ra(s)),A=wr(A,ra(i)),A}getBeforeBody(t,n){return FB(wn(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,a=[];return je(t,s=>{const i={before:[],lines:[],after:[]},A=TB(r,s);wr(i.before,ra(wn(A,"beforeLabel",this,s))),wr(i.lines,wn(A,"label",this,s)),wr(i.after,ra(wn(A,"afterLabel",this,s))),a.push(i)}),a}getAfterBody(t,n){return FB(wn(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,a=wn(r,"beforeFooter",this,t),s=wn(r,"footer",this,t),i=wn(r,"afterFooter",this,t);let A=[];return A=wr(A,ra(a)),A=wr(A,ra(s)),A=wr(A,ra(i)),A}_createItems(t){const n=this._active,r=this.chart.data,a=[],s=[],i=[];let A=[],l,c;for(l=0,c=n.length;l<c;++l)A.push(TH(this.chart,n[l]));return t.filter&&(A=A.filter((u,d,f)=>t.filter(u,d,f,r))),t.itemSort&&(A=A.sort((u,d)=>t.itemSort(u,d,r))),je(A,u=>{const d=TB(t.callbacks,u);a.push(wn(d,"labelColor",this,u)),s.push(wn(d,"labelPointStyle",this,u)),i.push(wn(d,"labelTextColor",this,u))}),this.labelColors=a,this.labelPointStyles=s,this.labelTextColors=i,this.dataPoints=A,A}update(t,n){const r=this.options.setContext(this.getContext()),a=this._active;let s,i=[];if(!a.length)this.opacity!==0&&(s={opacity:0});else{const A=oA[r.position].call(this,a,this._eventPosition);i=this._createItems(r),this.title=this.getTitle(i,r),this.beforeBody=this.getBeforeBody(i,r),this.body=this.getBody(i,r),this.afterBody=this.getAfterBody(i,r),this.footer=this.getFooter(i,r);const l=this._size=EB(this,r),c=Object.assign({},A,l),u=SB(this.chart,r,c),d=xB(r,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,s={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:A.x,caretY:A.y}}this._tooltipItems=i,this.$context=void 0,s&&this._resolveAnimations().update(this,s),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,a){const s=this.getCaretPosition(t,r,a);n.lineTo(s.x1,s.y1),n.lineTo(s.x2,s.y2),n.lineTo(s.x3,s.y3)}getCaretPosition(t,n,r){const{xAlign:a,yAlign:s}=this,{caretSize:i,cornerRadius:A}=r,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=ns(A),{x:f,y:p}=t,{width:h,height:m}=n;let y,g,w,B,v,_;return s==="center"?(v=p+m/2,a==="left"?(y=f,g=y-i,B=v+i,_=v-i):(y=f+h,g=y+i,B=v-i,_=v+i),w=y):(a==="left"?g=f+Math.max(l,u)+i:a==="right"?g=f+h-Math.max(c,d)-i:g=this.caretX,s==="top"?(B=p,v=B-i,y=g-i,w=g+i):(B=p+m,v=B+i,y=g+i,w=g-i),_=B),{x1:y,x2:g,x3:w,y1:B,y2:v,y3:_}}drawTitle(t,n,r){const a=this.title,s=a.length;let i,A,l;if(s){const c=Yi(r.rtl,this.x,this.width);for(t.x=Bc(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",i=yt(r.titleFont),A=r.titleSpacing,n.fillStyle=r.titleColor,n.font=i.string,l=0;l<s;++l)n.fillText(a[l],c.x(t.x),t.y+i.lineHeight/2),t.y+=i.lineHeight+A,l+1===s&&(t.y+=r.titleMarginBottom-A)}}_drawColorBox(t,n,r,a,s){const i=this.labelColors[r],A=this.labelPointStyles[r],{boxHeight:l,boxWidth:c}=s,u=yt(s.bodyFont),d=Bc(this,"left",s),f=a.x(d),p=l<u.lineHeight?(u.lineHeight-l)/2:0,h=n.y+p;if(s.usePointStyle){const m={radius:Math.min(c,l)/2,pointStyle:A.pointStyle,rotation:A.rotation,borderWidth:1},y=a.leftForLtr(f,c)+c/2,g=h+l/2;t.strokeStyle=s.multiKeyBackground,t.fillStyle=s.multiKeyBackground,Sh(t,m,y,g),t.strokeStyle=i.borderColor,t.fillStyle=i.backgroundColor,Sh(t,m,y,g)}else{t.lineWidth=ke(i.borderWidth)?Math.max(...Object.values(i.borderWidth)):i.borderWidth||1,t.strokeStyle=i.borderColor,t.setLineDash(i.borderDash||[]),t.lineDashOffset=i.borderDashOffset||0;const m=a.leftForLtr(f,c),y=a.leftForLtr(a.xPlus(f,1),c-2),g=ns(i.borderRadius);Object.values(g).some(w=>w!==0)?(t.beginPath(),t.fillStyle=s.multiKeyBackground,go(t,{x:m,y:h,w:c,h:l,radius:g}),t.fill(),t.stroke(),t.fillStyle=i.backgroundColor,t.beginPath(),go(t,{x:y,y:h+1,w:c-2,h:l-2,radius:g}),t.fill()):(t.fillStyle=s.multiKeyBackground,t.fillRect(m,h,c,l),t.strokeRect(m,h,c,l),t.fillStyle=i.backgroundColor,t.fillRect(y,h+1,c-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:a}=this,{bodySpacing:s,bodyAlign:i,displayColors:A,boxHeight:l,boxWidth:c,boxPadding:u}=r,d=yt(r.bodyFont);let f=d.lineHeight,p=0;const h=Yi(r.rtl,this.x,this.width),m=function(C){n.fillText(C,h.x(t.x+p),t.y+f/2),t.y+=f+s},y=h.textAlign(i);let g,w,B,v,_,b,k;for(n.textAlign=i,n.textBaseline="middle",n.font=d.string,t.x=Bc(this,y,r),n.fillStyle=r.bodyColor,je(this.beforeBody,m),p=A&&y!=="right"?i==="center"?c/2+u:c+2+u:0,v=0,b=a.length;v<b;++v){for(g=a[v],w=this.labelTextColors[v],n.fillStyle=w,je(g.before,m),B=g.lines,A&&B.length&&(this._drawColorBox(n,t,v,h,r),f=Math.max(d.lineHeight,l)),_=0,k=B.length;_<k;++_)m(B[_]),f=d.lineHeight;je(g.after,m)}p=0,f=d.lineHeight,je(this.afterBody,m),t.y-=s}drawFooter(t,n,r){const a=this.footer,s=a.length;let i,A;if(s){const l=Yi(r.rtl,this.x,this.width);for(t.x=Bc(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",i=yt(r.footerFont),n.fillStyle=r.footerColor,n.font=i.string,A=0;A<s;++A)n.fillText(a[A],l.x(t.x),t.y+i.lineHeight/2),t.y+=i.lineHeight+r.footerSpacing}}drawBackground(t,n,r,a){const{xAlign:s,yAlign:i}=this,{x:A,y:l}=t,{width:c,height:u}=r,{topLeft:d,topRight:f,bottomLeft:p,bottomRight:h}=ns(a.cornerRadius);n.fillStyle=a.backgroundColor,n.strokeStyle=a.borderColor,n.lineWidth=a.borderWidth,n.beginPath(),n.moveTo(A+d,l),i==="top"&&this.drawCaret(t,n,r,a),n.lineTo(A+c-f,l),n.quadraticCurveTo(A+c,l,A+c,l+f),i==="center"&&s==="right"&&this.drawCaret(t,n,r,a),n.lineTo(A+c,l+u-h),n.quadraticCurveTo(A+c,l+u,A+c-h,l+u),i==="bottom"&&this.drawCaret(t,n,r,a),n.lineTo(A+p,l+u),n.quadraticCurveTo(A,l+u,A,l+u-p),i==="center"&&s==="left"&&this.drawCaret(t,n,r,a),n.lineTo(A,l+d),n.quadraticCurveTo(A,l,A+d,l),n.closePath(),n.fill(),a.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,a=r&&r.x,s=r&&r.y;if(a||s){const i=oA[t.position].call(this,this._active,this._eventPosition);if(!i)return;const A=this._size=EB(this,t),l=Object.assign({},i,this._size),c=SB(n,t,l),u=xB(t,l,c,n);(a._to!==u.x||s._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=A.width,this.height=A.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const a={width:this.width,height:this.height},s={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const i=Ot(n.padding),A=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&A&&(t.save(),t.globalAlpha=r,this.drawBackground(s,t,a,n),PC(t,n.textDirection),s.y+=i.top,this.drawTitle(s,t,n),this.drawBody(s,t,n),this.drawFooter(s,t,n),RC(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,a=t.map(({datasetIndex:A,index:l})=>{const c=this.chart.getDatasetMeta(A);if(!c)throw new Error("Cannot find a dataset at index "+A);return{datasetIndex:A,element:c.data[l],index:l}}),s=!Lu(r,a),i=this._positionChanged(a,n);(s||i)&&(this._active=a,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const a=this.options,s=this._active||[],i=this._getActiveElements(t,s,n,r),A=this._positionChanged(i,t),l=n||!Lu(i,s)||A;return l&&(this._active=i,(a.enabled||a.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,a){const s=this.options;if(t.type==="mouseout")return[];if(!a)return n.filter(A=>this.chart.data.datasets[A.datasetIndex]&&this.chart.getDatasetMeta(A.datasetIndex).controller.getParsed(A.index)!==void 0);const i=this.chart.getElementsAtEventForMode(t,s.mode,s,r);return s.reverse&&i.reverse(),i}_positionChanged(t,n){const{caretX:r,caretY:a,options:s}=this,i=oA[s.position].call(this,t,n);return i!==!1&&(r!==i.x||a!==i.y)}}G(Oh,"positioners",oA);var MH={id:"tooltip",_element:Oh,positioners:oA,afterInit(e,t,n){n&&(e.tooltip=new Oh({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.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:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.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:dk},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},NH=Object.freeze({__proto__:null,Colors:qR,Decimation:eH,Filler:BH,Legend:EH,SubTitle:FH,Title:xH,Tooltip:MH});const PH=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function RH(e,t,n,r){const a=e.indexOf(t);if(a===-1)return PH(e,t,n,r);const s=e.lastIndexOf(t);return a!==s?n:a}const HH=(e,t)=>e===null?null:Wt(Math.round(e),0,t);function IB(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class Lh extends mi{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:a,label:s}of n)r[a]===s&&r.splice(a,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(Ce(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:RH(r,t,pe(n,t),this._addedLabels),HH(n,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:a}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(a=this.getLabels().length-1)),this.min=r,this.max=a}buildTicks(){const t=this.min,n=this.max,r=this.options.offset,a=[];let s=this.getLabels();s=t===0&&n===s.length-1?s:s.slice(t,n+1),this._valueRange=Math.max(s.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let i=t;i<=n;i++)a.push({value:i});return a}getLabelForValue(t){return IB.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}G(Lh,"id","category"),G(Lh,"defaults",{ticks:{callback:IB}});function VH(e,t){const n=[],{bounds:a,step:s,min:i,max:A,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:f}=e,p=s||1,h=u-1,{min:m,max:y}=t,g=!Ce(i),w=!Ce(A),B=!Ce(c),v=(y-m)/(d+1);let _=Ey((y-m)/h/p)*p,b,k,C,E;if(_<1e-14&&!g&&!w)return[{value:m},{value:y}];E=Math.ceil(y/_)-Math.floor(m/_),E>h&&(_=Ey(E*_/h/p)*p),Ce(l)||(b=Math.pow(10,l),_=Math.ceil(_*b)/b),a==="ticks"?(k=Math.floor(m/_)*_,C=Math.ceil(y/_)*_):(k=m,C=y),g&&w&&s&&LN((A-i)/s,_/1e3)?(E=Math.round(Math.min((A-i)/_,u)),_=(A-i)/E,k=i,C=A):B?(k=g?i:k,C=w?A:C,E=c-1,_=(C-k)/E):(E=(C-k)/_,kA(E,Math.round(E),_/1e3)?E=Math.round(E):E=Math.ceil(E));const D=Math.max(Sy(_),Sy(k));b=Math.pow(10,Ce(l)?D:l),k=Math.round(k*b)/b,C=Math.round(C*b)/b;let T=0;for(g&&(f&&k!==i?(n.push({value:i}),k<i&&T++,kA(Math.round((k+T*_)*b)/b,i,DB(i,v,e))&&T++):k<i&&T++);T<E;++T){const F=Math.round((k+T*_)*b)/b;if(w&&F>A)break;n.push({value:F})}return w&&f&&C!==A?n.length&&kA(n[n.length-1].value,A,DB(A,v,e))?n[n.length-1].value=A:n.push({value:A}):(!w||C===A)&&n.push({value:C}),n}function DB(e,t,{horizontal:n,minRotation:r}){const a=Mt(r),s=(n?Math.sin(a):Math.cos(a))||.001,i=.75*t*(""+e).length;return Math.min(t/s,i)}class $u extends mi{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,n){return Ce(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:a,max:s}=this;const i=l=>a=n?a:l,A=l=>s=r?s:l;if(t){const l=Ir(a),c=Ir(s);l<0&&c<0?A(0):l>0&&c>0&&i(0)}if(a===s){let l=s===0?1:Math.abs(s*.05);A(s+l),t||i(a-l)}this.min=a,this.max=s}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,a;return r?(a=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,a>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${a} ticks. Limiting to 1000.`),a=1e3)):(a=this.computeTickLimit(),n=n||11),n&&(a=Math.min(n,a)),a}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const a={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},s=this._range||this,i=VH(a,s);return t.bounds==="ticks"&&bC(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 n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const a=(r-n)/Math.max(t.length-1,1)/2;n-=a,r+=a}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return Ul(t,this.chart.options.locale,this.options.ticks.format)}}class Qh extends $u{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=vt(t)?t:0,this.max=vt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=Mt(this.options.ticks.minRotation),a=(t?Math.sin(r):Math.cos(r))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,s.lineHeight/a))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}G(Qh,"id","linear"),G(Qh,"defaults",{ticks:{callback:Id.formatters.numeric}});const il=e=>Math.floor(za(e)),Is=(e,t)=>Math.pow(10,il(e)+t);function UB(e){return e/Math.pow(10,il(e))===1}function OB(e,t,n){const r=Math.pow(10,n),a=Math.floor(e/r);return Math.ceil(t/r)-a}function $H(e,t){const n=t-e;let r=il(n);for(;OB(e,t,r)>10;)r++;for(;OB(e,t,r)<10;)r--;return Math.min(r,il(e))}function KH(e,{min:t,max:n}){t=Dn(e.min,t);const r=[],a=il(t);let s=$H(t,n),i=s<0?Math.pow(10,Math.abs(s)):1;const A=Math.pow(10,s),l=a>s?Math.pow(10,a):0,c=Math.round((t-l)*i)/i,u=Math.floor((t-l)/A/10)*A*10;let d=Math.floor((c-u)/Math.pow(10,s)),f=Dn(e.min,Math.round((l+u+d*Math.pow(10,s))*i)/i);for(;f<n;)r.push({value:f,major:UB(f),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(s++,d=2,i=s>=0?1:i),f=Math.round((l+u+d*Math.pow(10,s))*i)/i;const p=Dn(e.max,f);return r.push({value:p,major:UB(p),significand:d}),r}class Mh extends mi{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=$u.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return vt(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=vt(t)?Math.max(0,t):null,this.max=vt(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!vt(this._userMin)&&(this.min=t===Is(this.min,0)?Is(this.min,-1):Is(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,a=this.max;const s=A=>r=t?r:A,i=A=>a=n?a:A;r===a&&(r<=0?(s(1),i(10)):(s(Is(r,-1)),i(Is(a,1)))),r<=0&&s(Is(a,-1)),a<=0&&i(Is(r,1)),this.min=r,this.max=a}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=KH(n,this);return t.bounds==="ticks"&&bC(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":Ul(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=za(t),this._valueRange=za(this.max)-za(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(za(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}G(Mh,"id","logarithmic"),G(Mh,"defaults",{ticks:{callback:Id.formatters.logarithmic,major:{enabled:!0}}});function Nh(e){const t=e.ticks;if(t.display&&e.display){const n=Ot(t.backdropPadding);return pe(t.font&&t.font.size,ot.font.size)+n.height}return 0}function zH(e,t,n){return n=Ve(n)?n:[n],{w:JN(e,t.string,n),h:n.length*t.lineHeight}}function LB(e,t,n,r,a){return e===r||e===a?{start:t-n/2,end:t+n/2}:e<r||e>a?{start:t-n,end:t}:{start:t,end:t+n}}function WH(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],a=[],s=e._pointLabels.length,i=e.options.pointLabels,A=i.centerPointLabels?be/s:0;for(let l=0;l<s;l++){const c=i.setContext(e.getPointLabelContext(l));a[l]=c.padding;const u=e.getPointPosition(l,e.drawingArea+a[l],A),d=yt(c.font),f=zH(e.ctx,d,e._pointLabels[l]);r[l]=f;const p=rn(e.getIndexAngle(l)+A),h=Math.round(Td(p)),m=LB(h,u.x,f.w,0,180),y=LB(h,u.y,f.h,90,270);GH(n,t,p,m,y)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=qH(e,r,a)}function GH(e,t,n,r,a){const s=Math.abs(Math.sin(n)),i=Math.abs(Math.cos(n));let A=0,l=0;r.start<t.l?(A=(t.l-r.start)/s,e.l=Math.min(e.l,t.l-A)):r.end>t.r&&(A=(r.end-t.r)/s,e.r=Math.max(e.r,t.r+A)),a.start<t.t?(l=(t.t-a.start)/i,e.t=Math.min(e.t,t.t-l)):a.end>t.b&&(l=(a.end-t.b)/i,e.b=Math.max(e.b,t.b+l))}function jH(e,t,n){const r=e.drawingArea,{extra:a,additionalAngle:s,padding:i,size:A}=n,l=e.getPointPosition(t,r+a+i,s),c=Math.round(Td(rn(l.angle+dt))),u=ZH(l.y,A.h,c),d=XH(c),f=JH(l.x,A.w,d);return{visible:!0,x:l.x,y:u,textAlign:d,left:f,top:u,right:f+A.w,bottom:u+A.h}}function YH(e,t){if(!t)return!0;const{left:n,top:r,right:a,bottom:s}=e;return!(ca({x:n,y:r},t)||ca({x:n,y:s},t)||ca({x:a,y:r},t)||ca({x:a,y:s},t))}function qH(e,t,n){const r=[],a=e._pointLabels.length,s=e.options,{centerPointLabels:i,display:A}=s.pointLabels,l={extra:Nh(s)/2,additionalAngle:i?be/a:0};let c;for(let u=0;u<a;u++){l.padding=n[u],l.size=t[u];const d=jH(e,u,l);r.push(d),A==="auto"&&(d.visible=YH(d,c),d.visible&&(c=d))}return r}function XH(e){return e===0||e===180?"center":e<180?"left":"right"}function JH(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function ZH(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function eV(e,t,n){const{left:r,top:a,right:s,bottom:i}=n,{backdropColor:A}=t;if(!Ce(A)){const l=ns(t.borderRadius),c=Ot(t.backdropPadding);e.fillStyle=A;const u=r-c.left,d=a-c.top,f=s-r+c.width,p=i-a+c.height;Object.values(l).some(h=>h!==0)?(e.beginPath(),go(e,{x:u,y:d,w:f,h:p,radius:l}),e.fill()):e.fillRect(u,d,f,p)}}function tV(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let a=t-1;a>=0;a--){const s=e._pointLabelItems[a];if(!s.visible)continue;const i=r.setContext(e.getPointLabelContext(a));eV(n,i,s);const A=yt(i.font),{x:l,y:c,textAlign:u}=s;Ai(n,e._pointLabels[a],l,c+A.lineHeight/2,A,{color:i.color,textAlign:u,textBaseline:"middle"})}}function fk(e,t,n,r){const{ctx:a}=e;if(n)a.arc(e.xCenter,e.yCenter,t,0,it);else{let s=e.getPointPosition(0,t);a.moveTo(s.x,s.y);for(let i=1;i<r;i++)s=e.getPointPosition(i,t),a.lineTo(s.x,s.y)}}function nV(e,t,n,r,a){const s=e.ctx,i=t.circular,{color:A,lineWidth:l}=t;!i&&!r||!A||!l||n<0||(s.save(),s.strokeStyle=A,s.lineWidth=l,s.setLineDash(a.dash||[]),s.lineDashOffset=a.dashOffset,s.beginPath(),fk(e,n,i,r),s.closePath(),s.stroke(),s.restore())}function rV(e,t,n){return _s(e,{label:n,index:t,type:"pointLabel"})}class AA extends $u{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=Ot(Nh(this.options)/2),n=this.width=this.maxWidth-t.width,r=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+n/2+t.left),this.yCenter=Math.floor(this.top+r/2+t.top),this.drawingArea=Math.floor(Math.min(n,r)/2)}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!1);this.min=vt(t)&&!isNaN(t)?t:0,this.max=vt(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Nh(this.options))}generateTickLabels(t){$u.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((n,r)=>{const a=We(this.options.pointLabels.callback,[n,r],this);return a||a===0?a:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?WH(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,a){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-a)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,a))}getIndexAngle(t){const n=it/(this._pointLabels.length||1),r=this.options.startAngle||0;return rn(t*n+Mt(r))}getDistanceFromCenterForValue(t){if(Ce(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(Ce(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t<n.length){const r=n[t];return rV(this.getContext(),t,r)}}getPointPosition(t,n,r=0){const a=this.getIndexAngle(t)-dt+r;return{x:Math.cos(a)*n+this.xCenter,y:Math.sin(a)*n+this.yCenter,angle:a}}getPointPositionForValue(t,n){return this.getPointPosition(t,this.getDistanceFromCenterForValue(n))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:n,top:r,right:a,bottom:s}=this._pointLabelItems[t];return{left:n,top:r,right:a,bottom:s}}drawBackground(){const{backgroundColor:t,grid:{circular:n}}=this.options;if(t){const r=this.ctx;r.save(),r.beginPath(),fk(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=t,r.fill(),r.restore()}}drawGrid(){const t=this.ctx,n=this.options,{angleLines:r,grid:a,border:s}=n,i=this._pointLabels.length;let A,l,c;if(n.pointLabels.display&&tV(this,i),a.display&&this.ticks.forEach((u,d)=>{if(d!==0||d===0&&this.min<0){l=this.getDistanceFromCenterForValue(u.value);const f=this.getContext(d),p=a.setContext(f),h=s.setContext(f);nV(this,p,l,i,h)}}),r.display){for(t.save(),A=i-1;A>=0;A--){const u=r.setContext(this.getPointLabelContext(A)),{color:d,lineWidth:f}=u;!f||!d||(t.lineWidth=f,t.strokeStyle=d,t.setLineDash(u.borderDash),t.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(n.reverse?this.min:this.max),c=this.getPointPosition(A,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const a=this.getIndexAngle(0);let s,i;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(a),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((A,l)=>{if(l===0&&this.min>=0&&!n.reverse)return;const c=r.setContext(this.getContext(l)),u=yt(c.font);if(s=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){t.font=u.string,i=t.measureText(A.label).width,t.fillStyle=c.backdropColor;const d=Ot(c.backdropPadding);t.fillRect(-i/2-d.left,-s-u.size/2-d.top,i+d.width,u.size+d.height)}Ai(t,A.label,0,-s,u,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),t.restore()}drawTitle(){}}G(AA,"id","radialLinear"),G(AA,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Id.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),G(AA,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),G(AA,"descriptors",{angleLines:{_fallback:"grid"}});const Od={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}},En=Object.keys(Od);function QB(e,t){return e-t}function MB(e,t){if(Ce(t))return null;const n=e._adapter,{parser:r,round:a,isoWeekday:s}=e._parseOpts;let i=t;return typeof r=="function"&&(i=r(i)),vt(i)||(i=typeof r=="string"?n.parse(i,r):n.parse(i)),i===null?null:(a&&(i=a==="week"&&(ps(s)||s===!0)?n.startOf(i,"isoWeek",s):n.startOf(i,a)),+i)}function NB(e,t,n,r){const a=En.length;for(let s=En.indexOf(e);s<a-1;++s){const i=Od[En[s]],A=i.steps?i.steps:Number.MAX_SAFE_INTEGER;if(i.common&&Math.ceil((n-t)/(A*i.size))<=r)return En[s]}return En[a-1]}function aV(e,t,n,r,a){for(let s=En.length-1;s>=En.indexOf(n);s--){const i=En[s];if(Od[i].common&&e._adapter.diff(a,r,i)>=t-1)return i}return En[n?En.indexOf(n):0]}function sV(e){for(let t=En.indexOf(e)+1,n=En.length;t<n;++t)if(Od[En[t]].common)return En[t]}function PB(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:a}=Qg(n,t),s=n[r]>=t?n[r]:n[a];e[s]=!0}}function iV(e,t,n,r){const a=e._adapter,s=+a.startOf(t[0].value,r),i=t[t.length-1].value;let A,l;for(A=s;A<=i;A=+a.add(A,1,r))l=n[A],l>=0&&(t[l].major=!0);return t}function RB(e,t,n){const r=[],a={},s=t.length;let i,A;for(i=0;i<s;++i)A=t[i],a[A]=i,r.push({value:A,major:!1});return s===0||!n?r:iV(e,r,a,n)}class ol extends mi{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,n={}){const r=t.time||(t.time={}),a=this._adapter=new GC._date(t.adapters.date);a.init(n),CA(r.displayFormats,a.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:MB(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,r=t.time.unit||"day";let{min:a,max:s,minDefined:i,maxDefined:A}=this.getUserBounds();function l(c){!i&&!isNaN(c.min)&&(a=Math.min(a,c.min)),!A&&!isNaN(c.max)&&(s=Math.max(s,c.max))}(!i||!A)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),a=vt(a)&&!isNaN(a)?a:+n.startOf(Date.now(),r),s=vt(s)&&!isNaN(s)?s:+n.endOf(Date.now(),r)+1,this.min=Math.min(a,s-1),this.max=Math.max(a+1,s)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],r=t[t.length-1]),{min:n,max:r}}buildTicks(){const t=this.options,n=t.time,r=t.ticks,a=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&a.length&&(this.min=this._userMin||a[0],this.max=this._userMax||a[a.length-1]);const s=this.min,i=this.max,A=PN(a,s,i);return this._unit=n.unit||(r.autoSkip?NB(n.minUnit,this.min,this.max,this._getLabelCapacity(s)):aV(this,A.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:sV(this._unit),this.initOffsets(a),t.reverse&&A.reverse(),RB(this,A,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,r=0,a,s;this.options.offset&&t.length&&(a=this.getDecimalForValue(t[0]),t.length===1?n=1-a:n=(this.getDecimalForValue(t[1])-a)/2,s=this.getDecimalForValue(t[t.length-1]),t.length===1?r=s:r=(s-this.getDecimalForValue(t[t.length-2]))/2);const i=t.length<3?.5:.25;n=Wt(n,0,i),r=Wt(r,0,i),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,a=this.options,s=a.time,i=s.unit||NB(s.minUnit,n,r,this._getLabelCapacity(n)),A=pe(a.ticks.stepSize,1),l=i==="week"?s.isoWeekday:!1,c=ps(l)||l===!0,u={};let d=n,f,p;if(c&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,c?"day":i),t.diff(r,n,i)>1e5*A)throw new Error(n+" and "+r+" are too far apart with stepSize of "+A+" "+i);const h=a.ticks.source==="data"&&this.getDataTimestamps();for(f=d,p=0;f<r;f=+t.add(f,A,i),p++)PB(u,f,h);return(f===r||a.bounds==="ticks"||p===1)&&PB(u,f,h),Object.keys(u).sort(QB).map(m=>+m)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const a=this.options.time.displayFormats,s=this._unit,i=n||a[s];return this._adapter.format(t,i)}_tickFormatFunction(t,n,r,a){const s=this.options,i=s.ticks.callback;if(i)return We(i,[t,n,r],this);const A=s.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&A[l],d=c&&A[c],f=r[n],p=c&&d&&f&&f.major;return this._adapter.format(t,a||(p?d:u))}generateTickLabels(t){let n,r,a;for(n=0,r=t.length;n<r;++n)a=t[n],a.label=this._tickFormatFunction(a.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,r=this.ctx.measureText(t).width,a=Mt(this.isHorizontal()?n.maxRotation:n.minRotation),s=Math.cos(a),i=Math.sin(a),A=this._resolveTickFontOptions(0).size;return{w:r*s+A*i,h:r*i+A*s}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,a=r[n.unit]||r.millisecond,s=this._tickFormatFunction(t,0,RB(this,[t],this._majorUnit),a),i=this._getLabelSize(s),A=Math.floor(this.isHorizontal()?this.width/i.w:this.height/i.h)-1;return A>0?A:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const a=this.getMatchingVisibleMetas();if(this._normalized&&a.length)return this._cache.data=a[0].controller.getAllParsedValues(this);for(n=0,r=a.length;n<r;++n)t=t.concat(a[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,r;if(t.length)return t;const a=this.getLabels();for(n=0,r=a.length;n<r;++n)t.push(MB(this,a[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return kC(t.sort(QB))}}G(ol,"id","time"),G(ol,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function wc(e,t,n){let r=0,a=e.length-1,s,i,A,l;n?(t>=e[r].pos&&t<=e[a].pos&&({lo:r,hi:a}=la(e,"pos",t)),{pos:s,time:A}=e[r],{pos:i,time:l}=e[a]):(t>=e[r].time&&t<=e[a].time&&({lo:r,hi:a}=la(e,"time",t)),{time:s,pos:A}=e[r],{time:i,pos:l}=e[a]);const c=i-s;return c?A+(l-A)*(t-s)/c:A}class Ph extends ol{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=wc(n,this.min),this._tableRange=wc(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,a=[],s=[];let i,A,l,c,u;for(i=0,A=t.length;i<A;++i)c=t[i],c>=n&&c<=r&&a.push(c);if(a.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(i=0,A=a.length;i<A;++i)u=a[i+1],l=a[i-1],c=a[i],Math.round((u+l)/2)!==c&&s.push({time:c,pos:i/(A-1)});return s}_generate(){const t=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(t)||!r.length)&&r.splice(0,0,t),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((a,s)=>a-s)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(wc(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return wc(this._table,r*this._tableRange+this._minPos,!0)}}G(Ph,"id","timeseries"),G(Ph,"defaults",ol.defaults);var oV=Object.freeze({__proto__:null,CategoryScale:Lh,LinearScale:Qh,LogarithmicScale:Mh,RadialLinearScale:AA,TimeScale:ol,TimeSeriesScale:Ph});const Rr=[p9,$R,NH,oV];var AV=typeof global=="object"&&global&&global.Object===Object&&global;const pk=AV;var lV=typeof self=="object"&&self&&self.Object===Object&&self,cV=pk||lV||Function("return this")();const Hr=cV;var uV=Hr.Symbol;const hs=uV;var hk=Object.prototype,dV=hk.hasOwnProperty,fV=hk.toString,Yo=hs?hs.toStringTag:void 0;function pV(e){var t=dV.call(e,Yo),n=e[Yo];try{e[Yo]=void 0;var r=!0}catch{}var a=fV.call(e);return r&&(t?e[Yo]=n:delete e[Yo]),a}var hV=Object.prototype,mV=hV.toString;function gV(e){return mV.call(e)}var vV="[object Null]",yV="[object Undefined]",HB=hs?hs.toStringTag:void 0;function Ml(e){return e==null?e===void 0?yV:vV:HB&&HB in Object(e)?pV(e):gV(e)}function li(e){return e!=null&&typeof e=="object"}var BV=Array.isArray;const Bo=BV;function Nl(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var wV="[object AsyncFunction]",bV="[object Function]",_V="[object GeneratorFunction]",CV="[object Proxy]";function mk(e){if(!Nl(e))return!1;var t=Ml(e);return t==bV||t==_V||t==wV||t==CV}var kV=Hr["__core-js_shared__"];const Ap=kV;var VB=function(){var e=/[^.]+$/.exec(Ap&&Ap.keys&&Ap.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function EV(e){return!!VB&&VB in e}var SV=Function.prototype,xV=SV.toString;function gi(e){if(e!=null){try{return xV.call(e)}catch{}try{return e+""}catch{}}return""}var FV=/[\\^$.*+?()[\]{}|]/g,TV=/^\[object .+?Constructor\]$/,IV=Function.prototype,DV=Object.prototype,UV=IV.toString,OV=DV.hasOwnProperty,LV=RegExp("^"+UV.call(OV).replace(FV,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function QV(e){if(!Nl(e)||EV(e))return!1;var t=mk(e)?LV:TV;return t.test(gi(e))}function MV(e,t){return e==null?void 0:e[t]}function vi(e,t){var n=MV(e,t);return QV(n)?n:void 0}var NV=vi(Hr,"WeakMap");const Rh=NV;var $B=Object.create,PV=function(){function e(){}return function(t){if(!Nl(t))return{};if($B)return $B(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const RV=PV;function HV(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var VV=function(){try{var e=vi(Object,"defineProperty");return e({},"",{}),e}catch{}}();const KB=VV;function $V(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var KV=9007199254740991,zV=/^(?:0|[1-9]\d*)$/;function WV(e,t){var n=typeof e;return t=t??KV,!!t&&(n=="number"||n!="symbol"&&zV.test(e))&&e>-1&&e%1==0&&e<t}function gk(e,t,n){t=="__proto__"&&KB?KB(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function jg(e,t){return e===t||e!==e&&t!==t}var GV=Object.prototype,jV=GV.hasOwnProperty;function vk(e,t,n){var r=e[t];(!(jV.call(e,t)&&jg(r,n))||n===void 0&&!(t in e))&&gk(e,t,n)}function Ld(e,t,n,r){var a=!n;n||(n={});for(var s=-1,i=t.length;++s<i;){var A=t[s],l=r?r(n[A],e[A],A,n,e):void 0;l===void 0&&(l=e[A]),a?gk(n,A,l):vk(n,A,l)}return n}var YV=9007199254740991;function yk(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=YV}function Yg(e){return e!=null&&yk(e.length)&&!mk(e)}var qV=Object.prototype;function Qd(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||qV;return e===n}function XV(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var JV="[object Arguments]";function zB(e){return li(e)&&Ml(e)==JV}var Bk=Object.prototype,ZV=Bk.hasOwnProperty,e$=Bk.propertyIsEnumerable,t$=zB(function(){return arguments}())?zB:function(e){return li(e)&&ZV.call(e,"callee")&&!e$.call(e,"callee")};const wk=t$;function n$(){return!1}var bk=typeof exports=="object"&&exports&&!exports.nodeType&&exports,WB=bk&&typeof module=="object"&&module&&!module.nodeType&&module,r$=WB&&WB.exports===bk,GB=r$?Hr.Buffer:void 0,a$=GB?GB.isBuffer:void 0,s$=a$||n$;const Al=s$;var i$="[object Arguments]",o$="[object Array]",A$="[object Boolean]",l$="[object Date]",c$="[object Error]",u$="[object Function]",d$="[object Map]",f$="[object Number]",p$="[object Object]",h$="[object RegExp]",m$="[object Set]",g$="[object String]",v$="[object WeakMap]",y$="[object ArrayBuffer]",B$="[object DataView]",w$="[object Float32Array]",b$="[object Float64Array]",_$="[object Int8Array]",C$="[object Int16Array]",k$="[object Int32Array]",E$="[object Uint8Array]",S$="[object Uint8ClampedArray]",x$="[object Uint16Array]",F$="[object Uint32Array]",lt={};lt[w$]=lt[b$]=lt[_$]=lt[C$]=lt[k$]=lt[E$]=lt[S$]=lt[x$]=lt[F$]=!0;lt[i$]=lt[o$]=lt[y$]=lt[A$]=lt[B$]=lt[l$]=lt[c$]=lt[u$]=lt[d$]=lt[f$]=lt[p$]=lt[h$]=lt[m$]=lt[g$]=lt[v$]=!1;function T$(e){return li(e)&&yk(e.length)&&!!lt[Ml(e)]}function qg(e){return function(t){return e(t)}}var _k=typeof exports=="object"&&exports&&!exports.nodeType&&exports,IA=_k&&typeof module=="object"&&module&&!module.nodeType&&module,I$=IA&&IA.exports===_k,lp=I$&&pk.process,D$=function(){try{var e=IA&&IA.require&&IA.require("util").types;return e||lp&&lp.binding&&lp.binding("util")}catch{}}();const wo=D$;var jB=wo&&wo.isTypedArray,U$=jB?qg(jB):T$;const Xg=U$;var O$=Object.prototype,L$=O$.hasOwnProperty;function Ck(e,t){var n=Bo(e),r=!n&&wk(e),a=!n&&!r&&Al(e),s=!n&&!r&&!a&&Xg(e),i=n||r||a||s,A=i?XV(e.length,String):[],l=A.length;for(var c in e)(t||L$.call(e,c))&&!(i&&(c=="length"||a&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||WV(c,l)))&&A.push(c);return A}function kk(e,t){return function(n){return e(t(n))}}var Q$=kk(Object.keys,Object);const M$=Q$;var N$=Object.prototype,P$=N$.hasOwnProperty;function Ek(e){if(!Qd(e))return M$(e);var t=[];for(var n in Object(e))P$.call(e,n)&&n!="constructor"&&t.push(n);return t}function Jg(e){return Yg(e)?Ck(e):Ek(e)}function R$(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var H$=Object.prototype,V$=H$.hasOwnProperty;function $$(e){if(!Nl(e))return R$(e);var t=Qd(e),n=[];for(var r in e)r=="constructor"&&(t||!V$.call(e,r))||n.push(r);return n}function Zg(e){return Yg(e)?Ck(e,!0):$$(e)}var K$=vi(Object,"create");const ll=K$;function z$(){this.__data__=ll?ll(null):{},this.size=0}function W$(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var G$="__lodash_hash_undefined__",j$=Object.prototype,Y$=j$.hasOwnProperty;function q$(e){var t=this.__data__;if(ll){var n=t[e];return n===G$?void 0:n}return Y$.call(t,e)?t[e]:void 0}var X$=Object.prototype,J$=X$.hasOwnProperty;function Z$(e){var t=this.__data__;return ll?t[e]!==void 0:J$.call(t,e)}var eK="__lodash_hash_undefined__";function tK(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ll&&t===void 0?eK:t,this}function ci(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ci.prototype.clear=z$;ci.prototype.delete=W$;ci.prototype.get=q$;ci.prototype.has=Z$;ci.prototype.set=tK;function nK(){this.__data__=[],this.size=0}function Md(e,t){for(var n=e.length;n--;)if(jg(e[n][0],t))return n;return-1}var rK=Array.prototype,aK=rK.splice;function sK(e){var t=this.__data__,n=Md(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():aK.call(t,n,1),--this.size,!0}function iK(e){var t=this.__data__,n=Md(t,e);return n<0?void 0:t[n][1]}function oK(e){return Md(this.__data__,e)>-1}function AK(e,t){var n=this.__data__,r=Md(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ia(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ia.prototype.clear=nK;Ia.prototype.delete=sK;Ia.prototype.get=iK;Ia.prototype.has=oK;Ia.prototype.set=AK;var lK=vi(Hr,"Map");const cl=lK;function cK(){this.size=0,this.__data__={hash:new ci,map:new(cl||Ia),string:new ci}}function uK(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Nd(e,t){var n=e.__data__;return uK(t)?n[typeof t=="string"?"string":"hash"]:n.map}function dK(e){var t=Nd(this,e).delete(e);return this.size-=t?1:0,t}function fK(e){return Nd(this,e).get(e)}function pK(e){return Nd(this,e).has(e)}function hK(e,t){var n=Nd(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function yi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}yi.prototype.clear=cK;yi.prototype.delete=dK;yi.prototype.get=fK;yi.prototype.has=pK;yi.prototype.set=hK;function Sk(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var mK=kk(Object.getPrototypeOf,Object);const xk=mK;function gK(){this.__data__=new Ia,this.size=0}function vK(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function yK(e){return this.__data__.get(e)}function BK(e){return this.__data__.has(e)}var wK=200;function bK(e,t){var n=this.__data__;if(n instanceof Ia){var r=n.__data__;if(!cl||r.length<wK-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new yi(r)}return n.set(e,t),this.size=n.size,this}function ha(e){var t=this.__data__=new Ia(e);this.size=t.size}ha.prototype.clear=gK;ha.prototype.delete=vK;ha.prototype.get=yK;ha.prototype.has=BK;ha.prototype.set=bK;function _K(e,t){return e&&Ld(t,Jg(t),e)}function CK(e,t){return e&&Ld(t,Zg(t),e)}var Fk=typeof exports=="object"&&exports&&!exports.nodeType&&exports,YB=Fk&&typeof module=="object"&&module&&!module.nodeType&&module,kK=YB&&YB.exports===Fk,qB=kK?Hr.Buffer:void 0,XB=qB?qB.allocUnsafe:void 0;function EK(e,t){if(t)return e.slice();var n=e.length,r=XB?XB(n):new e.constructor(n);return e.copy(r),r}function SK(e,t){for(var n=-1,r=e==null?0:e.length,a=0,s=[];++n<r;){var i=e[n];t(i,n,e)&&(s[a++]=i)}return s}function Tk(){return[]}var xK=Object.prototype,FK=xK.propertyIsEnumerable,JB=Object.getOwnPropertySymbols,TK=JB?function(e){return e==null?[]:(e=Object(e),SK(JB(e),function(t){return FK.call(e,t)}))}:Tk;const e1=TK;function IK(e,t){return Ld(e,e1(e),t)}var DK=Object.getOwnPropertySymbols,UK=DK?function(e){for(var t=[];e;)Sk(t,e1(e)),e=xk(e);return t}:Tk;const Ik=UK;function OK(e,t){return Ld(e,Ik(e),t)}function Dk(e,t,n){var r=t(e);return Bo(e)?r:Sk(r,n(e))}function Hh(e){return Dk(e,Jg,e1)}function LK(e){return Dk(e,Zg,Ik)}var QK=vi(Hr,"DataView");const Vh=QK;var MK=vi(Hr,"Promise");const $h=MK;var NK=vi(Hr,"Set");const Kh=NK;var ZB="[object Map]",PK="[object Object]",e2="[object Promise]",t2="[object Set]",n2="[object WeakMap]",r2="[object DataView]",RK=gi(Vh),HK=gi(cl),VK=gi($h),$K=gi(Kh),KK=gi(Rh),Ms=Ml;(Vh&&Ms(new Vh(new ArrayBuffer(1)))!=r2||cl&&Ms(new cl)!=ZB||$h&&Ms($h.resolve())!=e2||Kh&&Ms(new Kh)!=t2||Rh&&Ms(new Rh)!=n2)&&(Ms=function(e){var t=Ml(e),n=t==PK?e.constructor:void 0,r=n?gi(n):"";if(r)switch(r){case RK:return r2;case HK:return ZB;case VK:return e2;case $K:return t2;case KK:return n2}return t});const bo=Ms;var zK=Object.prototype,WK=zK.hasOwnProperty;function GK(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&WK.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var jK=Hr.Uint8Array;const Ku=jK;function t1(e){var t=new e.constructor(e.byteLength);return new Ku(t).set(new Ku(e)),t}function YK(e,t){var n=t?t1(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var qK=/\w*$/;function XK(e){var t=new e.constructor(e.source,qK.exec(e));return t.lastIndex=e.lastIndex,t}var a2=hs?hs.prototype:void 0,s2=a2?a2.valueOf:void 0;function JK(e){return s2?Object(s2.call(e)):{}}function ZK(e,t){var n=t?t1(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var ez="[object Boolean]",tz="[object Date]",nz="[object Map]",rz="[object Number]",az="[object RegExp]",sz="[object Set]",iz="[object String]",oz="[object Symbol]",Az="[object ArrayBuffer]",lz="[object DataView]",cz="[object Float32Array]",uz="[object Float64Array]",dz="[object Int8Array]",fz="[object Int16Array]",pz="[object Int32Array]",hz="[object Uint8Array]",mz="[object Uint8ClampedArray]",gz="[object Uint16Array]",vz="[object Uint32Array]";function yz(e,t,n){var r=e.constructor;switch(t){case Az:return t1(e);case ez:case tz:return new r(+e);case lz:return YK(e,n);case cz:case uz:case dz:case fz:case pz:case hz:case mz:case gz:case vz:return ZK(e,n);case nz:return new r;case rz:case iz:return new r(e);case az:return XK(e);case sz:return new r;case oz:return JK(e)}}function Bz(e){return typeof e.constructor=="function"&&!Qd(e)?RV(xk(e)):{}}var wz="[object Map]";function bz(e){return li(e)&&bo(e)==wz}var i2=wo&&wo.isMap,_z=i2?qg(i2):bz;const Cz=_z;var kz="[object Set]";function Ez(e){return li(e)&&bo(e)==kz}var o2=wo&&wo.isSet,Sz=o2?qg(o2):Ez;const xz=Sz;var Fz=1,Tz=2,Iz=4,Uk="[object Arguments]",Dz="[object Array]",Uz="[object Boolean]",Oz="[object Date]",Lz="[object Error]",Ok="[object Function]",Qz="[object GeneratorFunction]",Mz="[object Map]",Nz="[object Number]",Lk="[object Object]",Pz="[object RegExp]",Rz="[object Set]",Hz="[object String]",Vz="[object Symbol]",$z="[object WeakMap]",Kz="[object ArrayBuffer]",zz="[object DataView]",Wz="[object Float32Array]",Gz="[object Float64Array]",jz="[object Int8Array]",Yz="[object Int16Array]",qz="[object Int32Array]",Xz="[object Uint8Array]",Jz="[object Uint8ClampedArray]",Zz="[object Uint16Array]",eW="[object Uint32Array]",rt={};rt[Uk]=rt[Dz]=rt[Kz]=rt[zz]=rt[Uz]=rt[Oz]=rt[Wz]=rt[Gz]=rt[jz]=rt[Yz]=rt[qz]=rt[Mz]=rt[Nz]=rt[Lk]=rt[Pz]=rt[Rz]=rt[Hz]=rt[Vz]=rt[Xz]=rt[Jz]=rt[Zz]=rt[eW]=!0;rt[Lz]=rt[Ok]=rt[$z]=!1;function pu(e,t,n,r,a,s){var i,A=t&Fz,l=t&Tz,c=t&Iz;if(n&&(i=a?n(e,r,a,s):n(e)),i!==void 0)return i;if(!Nl(e))return e;var u=Bo(e);if(u){if(i=GK(e),!A)return HV(e,i)}else{var d=bo(e),f=d==Ok||d==Qz;if(Al(e))return EK(e,A);if(d==Lk||d==Uk||f&&!a){if(i=l||f?{}:Bz(e),!A)return l?OK(e,CK(i,e)):IK(e,_K(i,e))}else{if(!rt[d])return a?e:{};i=yz(e,d,A)}}s||(s=new ha);var p=s.get(e);if(p)return p;s.set(e,i),xz(e)?e.forEach(function(y){i.add(pu(y,t,n,y,e,s))}):Cz(e)&&e.forEach(function(y,g){i.set(g,pu(y,t,n,g,e,s))});var h=c?l?LK:Hh:l?Zg:Jg,m=u?void 0:h(e);return $V(m||e,function(y,g){m&&(g=y,y=e[g]),vk(i,g,pu(y,t,n,g,e,s))}),i}var tW=1,nW=4;function qo(e){return pu(e,tW|nW)}var rW="__lodash_hash_undefined__";function aW(e){return this.__data__.set(e,rW),this}function sW(e){return this.__data__.has(e)}function zu(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new yi;++t<n;)this.add(e[t])}zu.prototype.add=zu.prototype.push=aW;zu.prototype.has=sW;function iW(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function oW(e,t){return e.has(t)}var AW=1,lW=2;function Qk(e,t,n,r,a,s){var i=n&AW,A=e.length,l=t.length;if(A!=l&&!(i&&l>A))return!1;var c=s.get(e),u=s.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,p=n&lW?new zu:void 0;for(s.set(e,t),s.set(t,e);++d<A;){var h=e[d],m=t[d];if(r)var y=i?r(m,h,d,t,e,s):r(h,m,d,e,t,s);if(y!==void 0){if(y)continue;f=!1;break}if(p){if(!iW(t,function(g,w){if(!oW(p,w)&&(h===g||a(h,g,n,r,s)))return p.push(w)})){f=!1;break}}else if(!(h===m||a(h,m,n,r,s))){f=!1;break}}return s.delete(e),s.delete(t),f}function cW(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}function uW(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var dW=1,fW=2,pW="[object Boolean]",hW="[object Date]",mW="[object Error]",gW="[object Map]",vW="[object Number]",yW="[object RegExp]",BW="[object Set]",wW="[object String]",bW="[object Symbol]",_W="[object ArrayBuffer]",CW="[object DataView]",A2=hs?hs.prototype:void 0,cp=A2?A2.valueOf:void 0;function kW(e,t,n,r,a,s,i){switch(n){case CW:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _W:return!(e.byteLength!=t.byteLength||!s(new Ku(e),new Ku(t)));case pW:case hW:case vW:return jg(+e,+t);case mW:return e.name==t.name&&e.message==t.message;case yW:case wW:return e==t+"";case gW:var A=cW;case BW:var l=r&dW;if(A||(A=uW),e.size!=t.size&&!l)return!1;var c=i.get(e);if(c)return c==t;r|=fW,i.set(e,t);var u=Qk(A(e),A(t),r,a,s,i);return i.delete(e),u;case bW:if(cp)return cp.call(e)==cp.call(t)}return!1}var EW=1,SW=Object.prototype,xW=SW.hasOwnProperty;function FW(e,t,n,r,a,s){var i=n&EW,A=Hh(e),l=A.length,c=Hh(t),u=c.length;if(l!=u&&!i)return!1;for(var d=l;d--;){var f=A[d];if(!(i?f in t:xW.call(t,f)))return!1}var p=s.get(e),h=s.get(t);if(p&&h)return p==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var y=i;++d<l;){f=A[d];var g=e[f],w=t[f];if(r)var B=i?r(w,g,f,t,e,s):r(g,w,f,e,t,s);if(!(B===void 0?g===w||a(g,w,n,r,s):B)){m=!1;break}y||(y=f=="constructor")}if(m&&!y){var v=e.constructor,_=t.constructor;v!=_&&"constructor"in e&&"constructor"in t&&!(typeof v=="function"&&v instanceof v&&typeof _=="function"&&_ instanceof _)&&(m=!1)}return s.delete(e),s.delete(t),m}var TW=1,l2="[object Arguments]",c2="[object Array]",bc="[object Object]",IW=Object.prototype,u2=IW.hasOwnProperty;function DW(e,t,n,r,a,s){var i=Bo(e),A=Bo(t),l=i?c2:bo(e),c=A?c2:bo(t);l=l==l2?bc:l,c=c==l2?bc:c;var u=l==bc,d=c==bc,f=l==c;if(f&&Al(e)){if(!Al(t))return!1;i=!0,u=!1}if(f&&!u)return s||(s=new ha),i||Xg(e)?Qk(e,t,n,r,a,s):kW(e,t,l,n,r,a,s);if(!(n&TW)){var p=u&&u2.call(e,"__wrapped__"),h=d&&u2.call(t,"__wrapped__");if(p||h){var m=p?e.value():e,y=h?t.value():t;return s||(s=new ha),a(m,y,n,r,s)}}return f?(s||(s=new ha),FW(e,t,n,r,a,s)):!1}function Mk(e,t,n,r,a){return e===t?!0:e==null||t==null||!li(e)&&!li(t)?e!==e&&t!==t:DW(e,t,n,r,Mk,a)}var UW="[object Map]",OW="[object Set]",LW=Object.prototype,QW=LW.hasOwnProperty;function MW(e){if(e==null)return!0;if(Yg(e)&&(Bo(e)||typeof e=="string"||typeof e.splice=="function"||Al(e)||Xg(e)||wk(e)))return!e.length;var t=bo(e);if(t==UW||t==OW)return!e.size;if(Qd(e))return!Ek(e).length;for(var n in e)if(QW.call(e,n))return!1;return!0}function d2(e,t){return Mk(e,t)}var NW=Object.defineProperty,PW=Object.defineProperties,RW=Object.getOwnPropertyDescriptors,f2=Object.getOwnPropertySymbols,HW=Object.prototype.hasOwnProperty,VW=Object.prototype.propertyIsEnumerable,p2=(e,t,n)=>t in e?NW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$W=(e,t)=>{for(var n in t||(t={}))HW.call(t,n)&&p2(e,n,t[n]);if(f2)for(var n of f2(t))VW.call(t,n)&&p2(e,n,t[n]);return e},KW=(e,t)=>PW(e,RW(t));function zW(e){return(e.match(/[a-zA-Z0-9]+/g)||[]).map(t=>`${t.charAt(0).toUpperCase()}${t.slice(1)}`).join("")}var Cs=(e,t)=>{const n={chartData:{type:Object,required:!0},options:{type:Object,required:!1},chartId:{default:e,type:String},width:{default:400,type:Number},height:{default:400,type:Number},cssClasses:{type:String,default:""},styles:{type:Object},plugins:{type:Array,default:()=>[]},onLabelsUpdate:{type:Function},onChartUpdate:{type:Function},onChartDestroy:{type:Function},onChartRender:{type:Function}},r=zW(e);return o.defineComponent({name:r,props:n,emits:{"labels:update":()=>!0,"chart:update":a=>!0,"chart:destroy":()=>!0,"chart:render":a=>!0},setup(a,{emit:s,expose:i}){const A=o.ref(null),l=`${a.chartId}`;let c=o.shallowRef(null);o.watch(()=>a.chartData,u,{deep:!0}),o.watch(()=>a.options,y=>{c.value&&y&&(c.value.options=qo(y),h())},{deep:!0});function u(y){if(c.value){let g=c.value;d2(y.labels,c.value.data.labels)||(g.data.labels=y.labels,f()),d2(y.datasets,c.value.data.datasets)||y.datasets.forEach((w,B)=>{var v,_;if(MW(w))g.data.datasets=[];else{const b=qo(g.data),k=Object.keys((_=(v=b.datasets)==null?void 0:v[B])!=null?_:{}),C=Object.keys(w);k.filter(D=>D!=="_meta"&&C.indexOf(D)===-1).forEach(D=>{g.data.datasets[B]&&delete g.data.datasets[B][D]});for(const D in w){const T=qo(w[D]);g.data.datasets[B]||(g.data.datasets[B]={}),w.hasOwnProperty(D)&&T!=null&&g&&(g.data.datasets[B][D]=T)}}}),h()}else c.value&&m(),d()}function d(){A.value?(c.value=new He(A.value,{data:qo(a.chartData),type:t,options:qo(a.options),plugins:a.plugins}),p()):console.error(`Error on component ${r}, canvas cannot be rendered. Check if the render appends server-side`)}function f(){s("labels:update"),a.onLabelsUpdate&&a.onLabelsUpdate()}function p(){c.value&&(s("chart:render",c.value),a.onChartRender&&a.onChartRender(c.value))}function h(){c.value&&(c.value.update(),s("chart:update",c.value),a.onChartUpdate&&a.onChartUpdate(c.value))}function m(){c.value&&c.value.destroy(),s("chart:destroy"),a.onChartDestroy&&a.onChartDestroy()}return o.onMounted(d),o.onBeforeUnmount(()=>{c.value&&c.value.destroy()}),i({canvasRef:A,renderChart:d,chartInstance:c,canvasId:l,update:h}),()=>o.h("div",{style:KW($W({maxWidth:"100%"},a.styles),{position:"relative"}),class:a.cssClasses},[o.h("canvas",{style:{maxWidth:"100%",maxHeight:"100%"},id:l,width:a.width,height:a.height,ref:A})])}})},Pd=Cs("bar-chart","bar"),Rd=Cs("doughnut-chart","doughnut"),Nk=Cs("line-chart","line");Cs("pie-chart","pie");Cs("polar-chart","polarArea");Cs("radar-chart","radar");Cs("bubble-chart","bubble");Cs("scatter-chart","scatter");const Wu=o.defineComponent({__name:"InfoDoughnutChart",props:nN,setup(e){const t=o.ref(null);He.register(...Rr);const n=e,r=o.computed(()=>{const s=n.info==="typeRef"?"types":"rarities",i={},A=Et(n.deckCode);for(const c in A){const u=mn().cardJsonObject[c];if(u===void 0)continue;let d=u[n.info];d==="Unit"&&(d=u.supertype==="Champion"?"Champion":"Follower"),i[d]===void 0&&(i[d]=0),i[d]+=A[c]}const l=[];for(const c in i){const u=Be().dataJson[s].find(f=>f.nameRef===c),d={key:c,value:i[c],color:u==null?void 0:u.color,name:u==null?void 0:u.name,order:u==null?void 0:u.order};l.push(d)}return console.log(l),l.sort((c,u)=>c.order-u.order),{labels:l.map(c=>c.name),datasets:[{data:l.map(c=>c.value),backgroundColor:l.map(c=>c.color)}]}}),a={cutout:55,layout:{padding:{top:10,bottom:10}},elements:{arc:{borderWidth:0}},plugins:{legend:{display:!0,position:"right",labels:{usePointStyle:!0,generateLabels(s){const i=[],A=s.data.labels;for(let l=0;l<s.data.labels.length;l++)i.push({text:`${A[l]} (${s.data.datasets[0].data[l]})`,borderRadius:999,datasetIndex:0,index:l,fontColor:os("--color-0"),fillStyle:s.data.datasets[0].backgroundColor[l]});return i}}},datalabels:{display:!1}}};return(s,i)=>(o.openBlock(),o.createBlock(o.unref(Rd),{ref_key:"chart",ref:t,"chart-data":r.value,options:a},null,8,["chart-data"]))}}),WW={deck:{type:Object,required:!1,default:void 0},deckCode:{type:String,required:!1,default:void 0},paddingTop:{type:Number,required:!1,default:10},showDataLabels:{type:Boolean,required:!1,default:!0},dataLabelsOffset:{type:Number,required:!1,default:-10},tooltipsEnabled:{type:Boolean,required:!1,default:!0},displayXScale:{type:Boolean,required:!1,default:!0},animation:{type:Boolean,required:!1}};//! moment.js
|
|
647
647
|
//! version : 2.30.1
|
|
648
648
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
649
649
|
//! license : MIT
|
|
@@ -668,7 +668,7 @@ j.version="2.30.1";GW(ft);j.fn=V;j.min=Lj;j.max=Qj;j.now=Mj;j.utc=Vr;j.unix=uq;j
|
|
|
668
668
|
* https://www.chartjs.org/chartjs-plugin-annotation/index
|
|
669
669
|
* (c) 2023 chartjs-plugin-annotation Contributors
|
|
670
670
|
* Released under the MIT License
|
|
671
|
-
*/const _2={modes:{point(e,t){return vu(e,t,{intersect:!0})},nearest(e,t,n){return gX(e,t,n)},x(e,t,n){return vu(e,t,{intersect:n.intersect,axis:"x"})},y(e,t,n){return vu(e,t,{intersect:n.intersect,axis:"y"})}}};function C1(e,t,n){return(_2.modes[n.mode]||_2.modes.nearest)(e,t,n)}function hX(e,t,n){return n!=="x"&&n!=="y"?e.inRange(t.x,t.y,"x",!0)||e.inRange(t.x,t.y,"y",!0):e.inRange(t.x,t.y,n,!0)}function mX(e,t,n){return n==="x"?{x:e.x,y:t.y}:n==="y"?{x:t.x,y:e.y}:t}function vu(e,t,n){return e.visibleElements.filter(r=>n.intersect?r.inRange(t.x,t.y):hX(r,t,n.axis))}function gX(e,t,n){let r=Number.POSITIVE_INFINITY;return vu(e,t,n).reduce((a,s)=>{const i=s.getCenterPoint(),A=mX(t,i,n.axis),l=mo(t,A);return l<r?(a=[s],r=l):l===r&&a.push(s),a},[]).sort((a,s)=>a._index-s._index).slice(0,1)}const vX=(e,t)=>t>e||e.length>t.length&&e.slice(0,t.length)===t,$s=.001,Zd=(e,t,n)=>Math.min(n,Math.max(t,e));function yX(e,t,n){for(const r of Object.keys(e))e[r]=Zd(e[r],t,n);return e}function BX(e,t,n,r){if(!e||!t||n<=0)return!1;const a=r/2;return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)<=Math.pow(n+a,2)}function N4(e,{x:t,y:n,x2:r,y2:a},s,i){const A=i/2,l=e.x>=t-A-$s&&e.x<=r+A+$s,c=e.y>=n-A-$s&&e.y<=a+A+$s;return s==="x"?l:(s==="y"||l)&&c}function Uo(e,t){const{centerX:n,centerY:r}=e.getProps(["centerX","centerY"],t);return{x:n,y:r}}function wX(e,t,n,r=!0){const a=n.split(".");let s=0;for(const i of t.split(".")){const A=a[s++];if(parseInt(i,10)<parseInt(A,10))break;if(vX(A,i)){if(r)throw new Error(`${e} v${n} is not supported. v${t} or newer is required.`);return!1}}return!0}const P4=e=>typeof e=="string"&&e.endsWith("%"),R4=e=>parseFloat(e)/100,H4=e=>Zd(R4(e),0,1);function k1(e,t){return t==="start"?0:t==="end"?e:P4(t)?H4(t)*e:e/2}function ms(e,t,n=!0){return typeof t=="number"?t:P4(t)?(n?H4(t):R4(t))*e:e}function bX(e,t){const{x:n,width:r}=e,a=t.textAlign;return a==="center"?n+r/2:a==="end"||a==="right"?n+r:n}function E1(e,t="center"){return ke(e)?{x:pe(e.x,t),y:pe(e.y,t)}:(e=pe(e,t),{x:e,y:e})}function V4(e){return e&&(Tn(e.xValue)||Tn(e.yValue))}function $l(e,t,n,r=!1){const a=n.init;if(a){if(a===!0)return K4(t,r)}else return;return _X(t,r,We(a,[{chart:e,properties:t,options:n}]))}function $4(e,t,n){let r=!1;return t.forEach(a=>{Fn(e[a])?(r=!0,n[a]=e[a]):Tn(n[a])&&delete n[a]}),r}function K4({centerX:e,centerY:t},n){return n?{centerX:e,centerY:t,radius:0,width:0,height:0}:{x:e,y:t,x2:e,y2:t,width:0,height:0}}function _X(e,t,n){if(n===!0)return K4(e,t);if(ke(n))return n}const mp=new Map,CX=e=>isNaN(e)||e<=0,kX=e=>e.reduce(function(t,n){return t+=n.string,t},"");function ef(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object HTMLImageElement]"||t==="[object HTMLCanvasElement]"}}function S1(e,{x:t,y:n},r){r&&(e.translate(t,n),e.rotate(Mt(r)),e.translate(-t,-n))}function gs(e,t){if(t&&t.borderWidth)return e.lineCap=t.borderCapStyle,e.setLineDash(t.borderDash),e.lineDashOffset=t.borderDashOffset,e.lineJoin=t.borderJoinStyle,e.lineWidth=t.borderWidth,e.strokeStyle=t.borderColor,!0}function Oo(e,t){e.shadowColor=t.backgroundShadowColor,e.shadowBlur=t.shadowBlur,e.shadowOffsetX=t.shadowOffsetX,e.shadowOffsetY=t.shadowOffsetY}function x1(e,t){const n=t.content;if(ef(n))return{width:ms(n.width,t.width),height:ms(n.height,t.height)};const r=t.font,a=Ve(r)?r.map(l=>yt(l)):[yt(r)],s=t.textStrokeWidth,i=Ve(n)?n:[n],A=i.join()+kX(a)+s+(e._measureText?"-spriting":"");return mp.has(A)||mp.set(A,TX(e,i,a,s)),mp.get(A)}function z4(e,t,n){const{x:r,y:a,width:s,height:i}=t;e.save(),Oo(e,n);const A=gs(e,n);e.fillStyle=n.backgroundColor,e.beginPath(),go(e,{x:r,y:a,w:s,h:i,radius:yX(ns(n.borderRadius),0,Math.min(s,i)/2)}),e.closePath(),e.fill(),A&&(e.shadowColor=n.borderShadowColor,e.stroke()),e.restore()}function EX(e,t,n){const r=n.content;if(ef(r)){e.save(),e.globalAlpha=UX(n.opacity,r.style.opacity),e.drawImage(r,t.x,t.y,t.width,t.height),e.restore();return}const a=Ve(r)?r:[r],s=n.font,i=Ve(s)?s.map(d=>yt(d)):[yt(s)],A=n.color,l=Ve(A)?A:[A],c=bX(t,n),u=t.y+n.textStrokeWidth/2;e.save(),e.textBaseline="middle",e.textAlign=n.textAlign,SX(e,n)&&IX(e,{x:c,y:u},a,i),DX(e,{x:c,y:u},a,{fonts:i,colors:l}),e.restore()}function SX(e,t){if(t.textStrokeWidth>0)return e.lineJoin="round",e.miterLimit=2,e.lineWidth=t.textStrokeWidth,e.strokeStyle=t.textStrokeColor,!0}function xX(e,t,n,r){const{radius:a,options:s}=t,i=s.pointStyle,A=s.rotation;let l=(A||0)*Lg;if(ef(i)){e.save(),e.translate(n,r),e.rotate(l),e.drawImage(i,-i.width/2,-i.height/2,i.width,i.height),e.restore();return}CX(a)||FX(e,{x:n,y:r,radius:a,rotation:A,style:i,rad:l})}function FX(e,{x:t,y:n,radius:r,rotation:a,style:s,rad:i}){let A,l,c,u;switch(e.beginPath(),s){default:e.arc(t,n,r,0,it),e.closePath();break;case"triangle":e.moveTo(t+Math.sin(i)*r,n-Math.cos(i)*r),i+=Nu,e.lineTo(t+Math.sin(i)*r,n-Math.cos(i)*r),i+=Nu,e.lineTo(t+Math.sin(i)*r,n-Math.cos(i)*r),e.closePath();break;case"rectRounded":u=r*.516,c=r-u,A=Math.cos(i+$n)*c,l=Math.sin(i+$n)*c,e.arc(t-A,n-l,u,i-be,i-dt),e.arc(t+l,n-A,u,i-dt,i),e.arc(t+A,n+l,u,i,i+dt),e.arc(t-l,n+A,u,i+dt,i+be),e.closePath();break;case"rect":if(!a){c=Math.SQRT1_2*r,e.rect(t-c,n-c,2*c,2*c);break}i+=$n;case"rectRot":A=Math.cos(i)*r,l=Math.sin(i)*r,e.moveTo(t-A,n-l),e.lineTo(t+l,n-A),e.lineTo(t+A,n+l),e.lineTo(t-l,n+A),e.closePath();break;case"crossRot":i+=$n;case"cross":A=Math.cos(i)*r,l=Math.sin(i)*r,e.moveTo(t-A,n-l),e.lineTo(t+A,n+l),e.moveTo(t+l,n-A),e.lineTo(t-l,n+A);break;case"star":A=Math.cos(i)*r,l=Math.sin(i)*r,e.moveTo(t-A,n-l),e.lineTo(t+A,n+l),e.moveTo(t+l,n-A),e.lineTo(t-l,n+A),i+=$n,A=Math.cos(i)*r,l=Math.sin(i)*r,e.moveTo(t-A,n-l),e.lineTo(t+A,n+l),e.moveTo(t+l,n-A),e.lineTo(t-l,n+A);break;case"line":A=Math.cos(i)*r,l=Math.sin(i)*r,e.moveTo(t-A,n-l),e.lineTo(t+A,n+l);break;case"dash":e.moveTo(t,n),e.lineTo(t+Math.cos(i)*r,n+Math.sin(i)*r);break}e.fill()}function TX(e,t,n,r){e.save();const a=t.length;let s=0,i=r;for(let A=0;A<a;A++){const l=n[Math.min(A,n.length-1)];e.font=l.string;const c=t[A];s=Math.max(s,e.measureText(c).width+r),i+=l.lineHeight}return e.restore(),{width:s,height:i}}function IX(e,{x:t,y:n},r,a){e.beginPath();let s=0;r.forEach(function(i,A){const l=a[Math.min(A,a.length-1)],c=l.lineHeight;e.font=l.string,e.strokeText(i,t,n+c/2+s),s+=c}),e.stroke()}function DX(e,{x:t,y:n},r,{fonts:a,colors:s}){let i=0;r.forEach(function(A,l){const c=s[Math.min(l,s.length-1)],u=a[Math.min(l,a.length-1)],d=u.lineHeight;e.beginPath(),e.font=u.string,e.fillStyle=c,e.fillText(A,t,n+d/2+i),i+=d,e.fill()})}function UX(e,t){const n=ps(e)?e:t;return ps(n)?Zd(n,0,1):1}const C2={xScaleID:{min:"xMin",max:"xMax",start:"left",end:"right",startProp:"x",endProp:"x2"},yScaleID:{min:"yMin",max:"yMax",start:"bottom",end:"top",startProp:"y",endProp:"y2"}};function _o(e,t,n){return t=typeof t=="number"?t:e.parse(t),vt(t)?e.getPixelForValue(t):n}function ui(e,t,n){const r=t[n];if(r||n==="scaleID")return r;const a=n.charAt(0),s=Object.values(e).filter(i=>i.axis&&i.axis===a);return s.length?s[0].id:a}function W4(e,t){if(e){const n=e.options.reverse,r=_o(e,t.min,n?t.end:t.start),a=_o(e,t.max,n?t.start:t.end);return{start:r,end:a}}}function G4(e,t){const{chartArea:n,scales:r}=e,a=r[ui(r,t,"xScaleID")],s=r[ui(r,t,"yScaleID")];let i=n.width/2,A=n.height/2;return a&&(i=_o(a,t.xValue,a.left+a.width/2)),s&&(A=_o(s,t.yValue,s.top+s.height/2)),{x:i,y:A}}function F1(e,t){const n=e.scales,r=n[ui(n,t,"xScaleID")],a=n[ui(n,t,"yScaleID")];if(!r&&!a)return{};let{left:s,right:i}=r||e.chartArea,{top:A,bottom:l}=a||e.chartArea;const c=k2(r,{min:t.xMin,max:t.xMax,start:s,end:i});s=c.start,i=c.end;const u=k2(a,{min:t.yMin,max:t.yMax,start:l,end:A});return A=u.start,l=u.end,{x:s,y:A,x2:i,y2:l,width:i-s,height:l-A,centerX:s+(i-s)/2,centerY:A+(l-A)/2}}function j4(e,t){if(!V4(t)){const n=F1(e,t);let r=t.radius;(!r||isNaN(r))&&(r=Math.min(n.width,n.height)/2,t.radius=r);const a=r*2,s=n.centerX+t.xAdjust,i=n.centerY+t.yAdjust;return{x:s-r,y:i-r,x2:s+r,y2:i+r,centerX:s,centerY:i,width:a,height:a,radius:r}}return LX(e,t)}function OX(e,t){const{scales:n,chartArea:r}=e,a=n[t.scaleID],s={x:r.left,y:r.top,x2:r.right,y2:r.bottom};return a?QX(a,s,t):MX(n,s,t),s}function Y4(e,t,n){const r=F1(e,t);return r.initProperties=$l(e,r,t,n),r.elements=[{type:"label",optionScope:"label",properties:RX(e,r,t),initProperties:r.initProperties}],r}function LX(e,t){const n=G4(e,t),r=t.radius*2;return{x:n.x-t.radius+t.xAdjust,y:n.y-t.radius+t.yAdjust,x2:n.x+t.radius+t.xAdjust,y2:n.y+t.radius+t.yAdjust,centerX:n.x+t.xAdjust,centerY:n.y+t.yAdjust,radius:t.radius,width:r,height:r}}function k2(e,t){const n=W4(e,t)||t;return{start:Math.min(n.start,n.end),end:Math.max(n.start,n.end)}}function QX(e,t,n){const r=_o(e,n.value,NaN),a=_o(e,n.endValue,r);e.isHorizontal()?(t.x=r,t.x2=a):(t.y=r,t.y2=a)}function MX(e,t,n){for(const r of Object.keys(C2)){const a=e[ui(e,n,r)];if(a){const{min:s,max:i,start:A,end:l,startProp:c,endProp:u}=C2[r],d=W4(a,{min:n[s],max:n[i],start:a[A],end:a[l]});t[c]=d.start,t[u]=d.end}}}function NX({properties:e,options:t},n,r,a){const{x:s,x2:i,width:A}=e;return q4({start:s,end:i,size:A,borderWidth:t.borderWidth},{position:r.x,padding:{start:a.left,end:a.right},adjust:t.label.xAdjust,size:n.width})}function PX({properties:e,options:t},n,r,a){const{y:s,y2:i,height:A}=e;return q4({start:s,end:i,size:A,borderWidth:t.borderWidth},{position:r.y,padding:{start:a.top,end:a.bottom},adjust:t.label.yAdjust,size:n.height})}function q4(e,t){const{start:n,end:r,borderWidth:a}=e,{position:s,padding:{start:i,end:A},adjust:l}=t,c=r-a-n-i-A-t.size;return n+a/2+l+k1(c,s)}function RX(e,t,n){const r=n.label;r.backgroundColor="transparent",r.callout.display=!1;const a=E1(r.position),s=Ot(r.padding),i=x1(e.ctx,r),A=NX({properties:t,options:n},i,a,s),l=PX({properties:t,options:n},i,a,s),c=i.width+s.width,u=i.height+s.height;return{x:A,y:l,x2:A+c,y2:l+u,width:c,height:u,centerX:A+c/2,centerY:l+u/2,rotation:r.rotation}}function wi(e,t,n){const r=Math.cos(n),a=Math.sin(n),s=t.x,i=t.y;return{x:s+r*(e.x-s)-a*(e.y-i),y:i+a*(e.x-s)+r*(e.y-i)}}const Zh=["enter","leave"],T1=Zh.concat("click");function HX(e,t,n){t.listened=$4(n,T1,t.listeners),t.moveListened=!1,t._getElements=C1,Zh.forEach(r=>{Fn(n[r])&&(t.moveListened=!0)}),(!t.listened||!t.moveListened)&&t.annotations.forEach(r=>{!t.listened&&Fn(r.click)&&(t.listened=!0),t.moveListened||Zh.forEach(a=>{Fn(r[a])&&(t.listened=!0,t.moveListened=!0)})})}function VX(e,t,n){if(e.listened)switch(t.type){case"mousemove":case"mouseout":return $X(e,t,n);case"click":return KX(e,t,n)}}function $X(e,t,n){if(!e.moveListened)return;let r;t.type==="mousemove"?r=C1(e,t,n.interaction):r=[];const a=e.hovered;e.hovered=r;const s={state:e,event:t};let i=E2(s,"leave",a,r);return E2(s,"enter",r,a)||i}function E2({state:e,event:t},n,r,a){let s;for(const i of r)a.indexOf(i)<0&&(s=X4(i.options[n]||e.listeners[n],i,t)||s);return s}function KX(e,t,n){const r=e.listeners,a=C1(e,t,n.interaction);let s;for(const i of a)s=X4(i.options.click||r.click,i,t)||s;return s}function X4(e,t,n){return We(e,[t.$context,n])===!0}const Ju=["afterDraw","beforeDraw"];function zX(e,t,n){const r=t.visibleElements;t.hooked=$4(n,Ju,t.hooks),t.hooked||r.forEach(a=>{t.hooked||Ju.forEach(s=>{Fn(a.options[s])&&(t.hooked=!0)})})}function S2(e,t,n){if(e.hooked){const r=t.options[n]||e.hooks[n];return We(r,[t.$context])}}function WX(e,t,n){const r=XX(e.scales,t,n);let a=x2(t,r,"min","suggestedMin");a=x2(t,r,"max","suggestedMax")||a,a&&Fn(t.handleTickRangeOptions)&&t.handleTickRangeOptions()}function GX(e,t){for(const n of e)YX(n,t)}function x2(e,t,n,r){if(vt(t[n])&&!jX(e.options,n,r)){const a=e[n]!==t[n];return e[n]=t[n],a}}function jX(e,t,n){return Tn(e[t])||Tn(e[n])}function YX(e,t){for(const n of["scaleID","xScaleID","yScaleID"]){const r=ui(t,e,n);r&&!t[r]&&qX(e,n)&&console.warn(`No scale found with id '${r}' for annotation '${e.id}'`)}}function qX(e,t){if(t==="scaleID")return!0;const n=t.charAt(0);for(const r of["Min","Max","Value"])if(Tn(e[n+r]))return!0;return!1}function XX(e,t,n){const r=t.axis,a=t.id,s=r+"ScaleID",i={min:pe(t.min,Number.NEGATIVE_INFINITY),max:pe(t.max,Number.POSITIVE_INFINITY)};for(const A of n)A.scaleID===a?F2(A,t,["value","endValue"],i):ui(e,A,s)===a&&F2(A,t,[r+"Min",r+"Max",r+"Value"],i);return i}function F2(e,t,n,r){for(const a of n){const s=e[a];if(Tn(s)){const i=t.parse(s);r.min=Math.min(r.min,i),r.max=Math.max(r.max,i)}}}class Lo extends gn{inRange(t,n,r,a){const{x:s,y:i}=wi({x:t,y:n},this.getCenterPoint(a),Mt(-this.options.rotation));return N4({x:s,y:i},this.getProps(["x","y","x2","y2"],a),r,this.options.borderWidth)}getCenterPoint(t){return Uo(this,t)}draw(t){t.save(),S1(t,this.getCenterPoint(),this.options.rotation),z4(t,this,this.options),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,n){return Y4(t,n)}}Lo.id="boxAnnotation";Lo.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,label:{backgroundColor:"transparent",borderWidth:0,callout:{display:!1},color:"black",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,opacity:void 0,padding:6,position:"center",rotation:void 0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};Lo.defaultRoutes={borderColor:"color",backgroundColor:"color"};Lo.descriptors={label:{_fallback:!0}};const J4=["left","bottom","top","right"];class Kl extends gn{inRange(t,n,r,a){const{x:s,y:i}=wi({x:t,y:n},this.getCenterPoint(a),Mt(-this.rotation));return N4({x:s,y:i},this.getProps(["x","y","x2","y2"],a),r,this.options.borderWidth)}getCenterPoint(t){return Uo(this,t)}draw(t){const n=this.options,r=!Tn(this._visible)||this._visible;!n.display||!n.content||!r||(t.save(),S1(t,this.getCenterPoint(),this.rotation),ZX(t,this),z4(t,this,n),EX(t,iJ(this),n),t.restore())}resolveElementProperties(t,n){let r;if(V4(n))r=G4(t,n);else{const{centerX:A,centerY:l}=F1(t,n);r={x:A,y:l}}const a=Ot(n.padding),s=x1(t.ctx,n),i=JX(r,s,n,a);return{initProperties:$l(t,i,n),pointX:r.x,pointY:r.y,...i,rotation:n.rotation}}}Kl.id="labelAnnotation";Kl.defaults={adjustScaleRange:!0,backgroundColor:"transparent",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:0,callout:{borderCapStyle:"butt",borderColor:void 0,borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:1,display:!1,margin:5,position:"auto",side:5,start:"50%"},color:"black",content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,init:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0};Kl.defaultRoutes={borderColor:"color"};function JX(e,t,n,r){const a=t.width+r.width+n.borderWidth,s=t.height+r.height+n.borderWidth,i=E1(n.position,"center"),A=T2(e.x,a,n.xAdjust,i.x),l=T2(e.y,s,n.yAdjust,i.y);return{x:A,y:l,x2:A+a,y2:l+s,width:a,height:s,centerX:A+a/2,centerY:l+s/2}}function T2(e,t,n=0,r){return e-k1(t,r)+n}function ZX(e,t){const{pointX:n,pointY:r,options:a}=t,s=a.callout,i=s&&s.display&&aJ(t,s);if(!i||oJ(t,s,i))return;if(e.save(),e.beginPath(),!gs(e,s))return e.restore();const{separatorStart:l,separatorEnd:c}=eJ(t,i),{sideStart:u,sideEnd:d}=nJ(t,i,l);(s.margin>0||a.borderWidth===0)&&(e.moveTo(l.x,l.y),e.lineTo(c.x,c.y)),e.moveTo(u.x,u.y),e.lineTo(d.x,d.y);const f=wi({x:n,y:r},t.getCenterPoint(),Mt(-t.rotation));e.lineTo(f.x,f.y),e.stroke(),e.restore()}function eJ(e,t){const{x:n,y:r,x2:a,y2:s}=e,i=tJ(e,t);let A,l;return t==="left"||t==="right"?(A={x:n+i,y:r},l={x:A.x,y:s}):(A={x:n,y:r+i},l={x:a,y:A.y}),{separatorStart:A,separatorEnd:l}}function tJ(e,t){const{width:n,height:r,options:a}=e,s=a.callout.margin+a.borderWidth/2;return t==="right"?n+s:t==="bottom"?r+s:-s}function nJ(e,t,n){const{y:r,width:a,height:s,options:i}=e,A=i.callout.start,l=rJ(t,i.callout);let c,u;return t==="left"||t==="right"?(c={x:n.x,y:r+ms(s,A)},u={x:c.x+l,y:c.y}):(c={x:n.x+ms(a,A),y:n.y},u={x:c.x,y:c.y+l}),{sideStart:c,sideEnd:u}}function rJ(e,t){const n=t.side;return e==="left"||e==="top"?-n:n}function aJ(e,t){const n=t.position;return J4.includes(n)?n:sJ(e,t)}function sJ(e,t){const{x:n,y:r,x2:a,y2:s,width:i,height:A,pointX:l,pointY:c,centerX:u,centerY:d,rotation:f}=e,p={x:u,y:d},h=t.start,m=ms(i,h),y=ms(A,h),g=[n,n+m,n+m,a],w=[r+y,s,r,s],B=[];for(let v=0;v<4;v++){const _=wi({x:g[v],y:w[v]},p,Mt(f));B.push({position:J4[v],distance:mo(_,{x:l,y:c})})}return B.sort((v,_)=>v.distance-_.distance)[0].position}function iJ({x:e,y:t,width:n,height:r,options:a}){const s=a.borderWidth/2,i=Ot(a.padding);return{x:e+i.left+s,y:t+i.top+s,width:n-i.left-i.right-a.borderWidth,height:r-i.top-i.bottom-a.borderWidth}}function oJ(e,t,n){const{pointX:r,pointY:a}=e,s=t.margin;let i=r,A=a;return n==="left"?i+=s:n==="right"?i-=s:n==="top"?A+=s:n==="bottom"&&(A-=s),e.inRange(i,A)}const I1=(e,t,n)=>({x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}),em=(e,t,n)=>I1(t,n,Math.abs((e-t.y)/(n.y-t.y))).x,I2=(e,t,n)=>I1(t,n,Math.abs((e-t.x)/(n.x-t.x))).y,lA=e=>e*e,AJ=(e,t,{x:n,y:r,x2:a,y2:s},i)=>i==="y"?{start:Math.min(r,s),end:Math.max(r,s),value:t}:{start:Math.min(n,a),end:Math.max(n,a),value:e},D2=(e,t,n,r)=>(1-r)*(1-r)*e+2*(1-r)*r*t+r*r*n,tm=(e,t,n,r)=>({x:D2(e.x,t.x,n.x,r),y:D2(e.y,t.y,n.y,r)}),U2=(e,t,n,r)=>2*(1-r)*(t-e)+2*r*(n-t),O2=(e,t,n,r)=>-Math.atan2(U2(e.x,t.x,n.x,r),U2(e.y,t.y,n.y,r))+.5*be;class zl extends gn{inRange(t,n,r,a){const s=this.options.borderWidth/2;if(r!=="x"&&r!=="y"){const i={mouseX:t,mouseY:n},{path:A,ctx:l}=this;if(A){gs(l,this.options);const{chart:u}=this.$context,d=t*u.currentDevicePixelRatio,f=n*u.currentDevicePixelRatio,p=l.isPointInStroke(A,d,f)||nm(this,i,a);return l.restore(),p}const c=lA(s);return dJ(this,i,c,a)||nm(this,i,a)}return lJ(this,{mouseX:t,mouseY:n},r,{hBorderWidth:s,useFinalPosition:a})}getCenterPoint(t){return Uo(this,t)}draw(t){const{x:n,y:r,x2:a,y2:s,cp:i,options:A}=this;if(t.save(),!gs(t,A))return t.restore();Oo(t,A);const l=Math.sqrt(Math.pow(a-n,2)+Math.pow(s-r,2));if(A.curve&&i)return BJ(t,this,i,l),t.restore();const{startOpts:c,endOpts:u,startAdjust:d,endAdjust:f}=Z4(this),p=Math.atan2(s-r,a-n);t.translate(n,r),t.rotate(p),t.beginPath(),t.moveTo(0+d,0),t.lineTo(l-f,0),t.shadowColor=A.borderShadowColor,t.stroke(),rm(t,0,d,c),rm(t,l,-f,u),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,n){const r=OX(t,n),{x:a,y:s,x2:i,y2:A}=r,l=cJ(r,t.chartArea),c=l?uJ({x:a,y:s},{x:i,y:A},t.chartArea):{x:a,y:s,x2:i,y2:A,width:Math.abs(i-a),height:Math.abs(A-s)};if(c.centerX=(i+a)/2,c.centerY=(A+s)/2,c.initProperties=$l(t,c,n),n.curve){const d={x:c.x,y:c.y},f={x:c.x2,y:c.y2};c.cp=yJ(c,n,mo(d,f))}const u=fJ(t,c,n.label);return u._visible=l,c.elements=[{type:"label",optionScope:"label",properties:u,initProperties:c.initProperties}],c}}zl.id="lineAnnotation";const L2={backgroundColor:void 0,backgroundShadowColor:void 0,borderColor:void 0,borderDash:void 0,borderDashOffset:void 0,borderShadowColor:void 0,borderWidth:void 0,display:void 0,fill:void 0,length:void 0,shadowBlur:void 0,shadowOffsetX:void 0,shadowOffsetY:void 0,width:void 0};zl.defaults={adjustScaleRange:!0,arrowHeads:{display:!1,end:Object.assign({},L2),fill:!1,length:12,start:Object.assign({},L2),width:6},borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:2,curve:!1,controlPoint:{y:"-50%"},display:!0,endValue:void 0,init:void 0,label:{backgroundColor:"rgba(0,0,0,0.8)",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderColor:"black",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:6,borderShadowColor:"transparent",borderWidth:0,callout:Object.assign({},Kl.defaults.callout),color:"#fff",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},scaleID:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,value:void 0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};zl.descriptors={arrowHeads:{start:{_fallback:!0},end:{_fallback:!0},_fallback:!0}};zl.defaultRoutes={borderColor:"color"};function lJ(e,{mouseX:t,mouseY:n},r,{hBorderWidth:a,useFinalPosition:s}){const i=AJ(t,n,e.getProps(["x","y","x2","y2"],s),r);return i.value>=i.start-a&&i.value<=i.end+a||nm(e,{mouseX:t,mouseY:n},s,r)}function cJ({x:e,y:t,x2:n,y2:r},{top:a,right:s,bottom:i,left:A}){return!(e<A&&n<A||e>s&&n>s||t<a&&r<a||t>i&&r>i)}function Q2({x:e,y:t},n,{top:r,right:a,bottom:s,left:i}){return e<i&&(t=I2(i,{x:e,y:t},n),e=i),e>a&&(t=I2(a,{x:e,y:t},n),e=a),t<r&&(e=em(r,{x:e,y:t},n),t=r),t>s&&(e=em(s,{x:e,y:t},n),t=s),{x:e,y:t}}function uJ(e,t,n){const{x:r,y:a}=Q2(e,t,n),{x:s,y:i}=Q2(t,e,n);return{x:r,y:a,x2:s,y2:i,width:Math.abs(s-r),height:Math.abs(i-a)}}function dJ(e,{mouseX:t,mouseY:n},r=$s,a){const{x:s,y:i,x2:A,y2:l}=e.getProps(["x","y","x2","y2"],a),c=A-s,u=l-i,d=lA(c)+lA(u),f=d===0?-1:((t-s)*c+(n-i)*u)/d;let p,h;return f<0?(p=s,h=i):f>1?(p=A,h=l):(p=s+f*c,h=i+f*u),lA(t-p)+lA(n-h)<=r}function nm(e,{mouseX:t,mouseY:n},r,a){const s=e.label;return s.options.display&&s.inRange(t,n,a,r)}function fJ(e,t,n){const r=n.borderWidth,a=Ot(n.padding),s=x1(e.ctx,n),i=s.width+a.width+r,A=s.height+a.height+r;return hJ(t,n,{width:i,height:A,padding:a},e.chartArea)}function pJ(e){const{x:t,y:n,x2:r,y2:a}=e,s=Math.atan2(a-n,r-t);return s>be/2?s-be:s<be/-2?s+be:s}function hJ(e,t,n,r){const{width:a,height:s,padding:i}=n,{xAdjust:A,yAdjust:l}=t,c={x:e.x,y:e.y},u={x:e.x2,y:e.y2},d=t.rotation==="auto"?pJ(e):Mt(t.rotation),f=mJ(a,s,d),p=gJ(e,t,{labelSize:f,padding:i},r),h=e.cp?tm(c,e.cp,u,p):I1(c,u,p),m={size:f.w,min:r.left,max:r.right,padding:i.left},y={size:f.h,min:r.top,max:r.bottom,padding:i.top},g=N2(h.x,m)+A,w=N2(h.y,y)+l;return{x:g-a/2,y:w-s/2,x2:g+a/2,y2:w+s/2,centerX:g,centerY:w,pointX:h.x,pointY:h.y,width:a,height:s,rotation:Td(d)}}function mJ(e,t,n){const r=Math.cos(n),a=Math.sin(n);return{w:Math.abs(e*r)+Math.abs(t*a),h:Math.abs(e*a)+Math.abs(t*r)}}function gJ(e,t,n,r){let a;const s=vJ(e,r);return t.position==="start"?a=M2({w:e.x2-e.x,h:e.y2-e.y},n,t,s):t.position==="end"?a=1-M2({w:e.x-e.x2,h:e.y-e.y2},n,t,s):a=k1(1,t.position),a}function M2(e,t,n,r){const{labelSize:a,padding:s}=t,i=e.w*r.dx,A=e.h*r.dy,l=i>0&&(a.w/2+s.left-r.x)/i,c=A>0&&(a.h/2+s.top-r.y)/A;return Zd(Math.max(l,c),0,.25)}function vJ(e,t){const{x:n,x2:r,y:a,y2:s}=e,i=Math.min(a,s)-t.top,A=Math.min(n,r)-t.left,l=t.bottom-Math.max(a,s),c=t.right-Math.max(n,r);return{x:Math.min(A,c),y:Math.min(i,l),dx:A<=c?1:-1,dy:i<=l?1:-1}}function N2(e,t){const{size:n,min:r,max:a,padding:s}=t,i=n/2;return n>a-r?(a+r)/2:(r>=e-s-i&&(e=r+s+i),a<=e+s+i&&(e=a-s-i),e)}function Z4(e){const t=e.options,n=t.arrowHeads&&t.arrowHeads.start,r=t.arrowHeads&&t.arrowHeads.end;return{startOpts:n,endOpts:r,startAdjust:P2(e,n),endAdjust:P2(e,r)}}function P2(e,t){if(!t||!t.display)return 0;const{length:n,width:r}=t,a=e.options.borderWidth/2,s={x:n,y:r+a};return Math.abs(em(0,s,{x:0,y:a}))}function rm(e,t,n,r){if(!r||!r.display)return;const{length:a,width:s,fill:i,backgroundColor:A,borderColor:l}=r,c=Math.abs(t-a)+n;e.beginPath(),Oo(e,r),gs(e,r),e.moveTo(c,-s),e.lineTo(t+n,0),e.lineTo(c,s),i===!0?(e.fillStyle=A||l,e.closePath(),e.fill(),e.shadowColor="transparent"):e.shadowColor=r.borderShadowColor,e.stroke()}function yJ(e,t,n){const{x:r,y:a,x2:s,y2:i,centerX:A,centerY:l}=e,c=Math.atan2(i-a,s-r),u=E1(t.controlPoint,0),d={x:A+ms(n,u.x,!1),y:l+ms(n,u.y,!1)};return wi(d,{x:A,y:l},c)}function R2(e,{x:t,y:n},{angle:r,adjust:a},s){!s||!s.display||(e.save(),e.translate(t,n),e.rotate(r),rm(e,0,-a,s),e.restore())}function BJ(e,t,n,r){const{x:a,y:s,x2:i,y2:A,options:l}=t,{startOpts:c,endOpts:u,startAdjust:d,endAdjust:f}=Z4(t),p={x:a,y:s},h={x:i,y:A},m=O2(p,n,h,0),y=O2(p,n,h,1)-be,g=tm(p,n,h,d/r),w=tm(p,n,h,1-f/r),B=new Path2D;e.beginPath(),B.moveTo(g.x,g.y),B.quadraticCurveTo(n.x,n.y,w.x,w.y),e.shadowColor=l.borderShadowColor,e.stroke(B),t.path=B,t.ctx=e,R2(e,g,{angle:m,adjust:d},c),R2(e,w,{angle:y,adjust:f},u)}class Wl extends gn{inRange(t,n,r,a){const s=this.options.rotation,i=this.options.borderWidth;if(r!=="x"&&r!=="y")return wJ({x:t,y:n},this.getProps(["width","height","centerX","centerY"],a),s,i);const{x:A,y:l,x2:c,y2:u}=this.getProps(["x","y","x2","y2"],a),d=i/2,f=r==="y"?{start:l,end:u}:{start:A,end:c},p=wi({x:t,y:n},this.getCenterPoint(a),Mt(-s));return p[r]>=f.start-d-$s&&p[r]<=f.end+d+$s}getCenterPoint(t){return Uo(this,t)}draw(t){const{width:n,height:r,centerX:a,centerY:s,options:i}=this;t.save(),S1(t,this.getCenterPoint(),i.rotation),Oo(t,this.options),t.beginPath(),t.fillStyle=i.backgroundColor;const A=gs(t,i);t.ellipse(a,s,r/2,n/2,be/2,0,2*be),t.fill(),A&&(t.shadowColor=i.borderShadowColor,t.stroke()),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,n){return Y4(t,n,!0)}}Wl.id="ellipseAnnotation";Wl.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,label:Object.assign({},Lo.defaults.label),rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};Wl.defaultRoutes={borderColor:"color",backgroundColor:"color"};Wl.descriptors={label:{_fallback:!0}};function wJ(e,t,n,r){const{width:a,height:s,centerX:i,centerY:A}=t,l=a/2,c=s/2;if(l<=0||c<=0)return!1;const u=Mt(n||0),d=r/2||0,f=Math.cos(u),p=Math.sin(u),h=Math.pow(f*(e.x-i)+p*(e.y-A),2),m=Math.pow(p*(e.x-i)-f*(e.y-A),2);return h/Math.pow(l+d,2)+m/Math.pow(c+d,2)<=1.0001}class tf extends gn{inRange(t,n,r,a){const{x:s,y:i,x2:A,y2:l,width:c}=this.getProps(["x","y","x2","y2","width"],a),u=this.options.borderWidth;if(r!=="x"&&r!=="y")return BX({x:t,y:n},this.getCenterPoint(a),c/2,u);const d=u/2,f=r==="y"?{start:i,end:l,value:n}:{start:s,end:A,value:t};return f.value>=f.start-d&&f.value<=f.end+d}getCenterPoint(t){return Uo(this,t)}draw(t){const n=this.options,r=n.borderWidth;if(n.radius<.1)return;t.save(),t.fillStyle=n.backgroundColor,Oo(t,n);const a=gs(t,n);xX(t,this,this.centerX,this.centerY),a&&!ef(n.pointStyle)&&(t.shadowColor=n.borderShadowColor,t.stroke()),t.restore(),n.borderWidth=r}resolveElementProperties(t,n){const r=j4(t,n);return r.initProperties=$l(t,r,n,!0),r}}tf.id="pointAnnotation";tf.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,pointStyle:"circle",radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0};tf.defaultRoutes={borderColor:"color",backgroundColor:"color"};class nf extends gn{inRange(t,n,r,a){if(r!=="x"&&r!=="y")return this.options.radius>=.1&&this.elements.length>1&&_J(this.elements,t,n,a);const s=wi({x:t,y:n},this.getCenterPoint(a),Mt(-this.options.rotation)),i=this.elements.map(c=>r==="y"?c.bY:c.bX),A=Math.min(...i),l=Math.max(...i);return s[r]>=A&&s[r]<=l}getCenterPoint(t){return Uo(this,t)}draw(t){const{elements:n,options:r}=this;t.save(),t.beginPath(),t.fillStyle=r.backgroundColor,Oo(t,r);const a=gs(t,r);let s=!0;for(const i of n)s?(t.moveTo(i.x,i.y),s=!1):t.lineTo(i.x,i.y);t.closePath(),t.fill(),a&&(t.shadowColor=r.borderShadowColor,t.stroke()),t.restore()}resolveElementProperties(t,n){const r=j4(t,n),{sides:a,rotation:s}=n,i=[],A=2*be/a;let l=s*Lg;for(let c=0;c<a;c++,l+=A){const u=bJ(r,n,l);u.initProperties=$l(t,r,n),i.push(u)}return r.elements=i,r}}nf.id="polygonAnnotation";nf.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,point:{radius:0},radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,sides:3,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0};nf.defaultRoutes={borderColor:"color",backgroundColor:"color"};function bJ({centerX:e,centerY:t},{radius:n,borderWidth:r},a){const s=r/2,i=Math.sin(a),A=Math.cos(a),l={x:e+i*n,y:t-A*n};return{type:"point",optionScope:"point",properties:{x:l.x,y:l.y,centerX:l.x,centerY:l.y,bX:e+i*(n+s),bY:t-A*(n+s)}}}function _J(e,t,n,r){let a=!1,s=e[e.length-1].getProps(["bX","bY"],r);for(const i of e){const A=i.getProps(["bX","bY"],r);A.bY>n!=s.bY>n&&t<(s.bX-A.bX)*(n-A.bY)/(s.bY-A.bY)+A.bX&&(a=!a),s=A}return a}const as={box:Lo,ellipse:Wl,label:Kl,line:zl,point:tf,polygon:nf};Object.keys(as).forEach(e=>{ot.describe(`elements.${as[e].id}`,{_fallback:"plugins.annotation.common"})});const CJ={update:Object.assign},kJ=T1.concat(Ju),H2=(e,t)=>ke(t)?sm(e,t):e,am=e=>e==="color"||e==="font";function D1(e="line"){return as[e]?e:(console.warn(`Unknown annotation type: '${e}', defaulting to 'line'`),"line")}function EJ(e,t,n,r){const a=xJ(e,n.animations,r),s=t.annotations,i=IJ(t.elements,s);for(let A=0;A<s.length;A++){const l=s[A],c=e3(i,A,l.type),u=l.setContext(TJ(e,c,l)),d=c.resolveElementProperties(e,u);d.skip=SJ(d),"elements"in d&&(FJ(c,d.elements,u,a),delete d.elements),Tn(c.x)||Object.assign(c,d),Object.assign(c,d.initProperties),d.options=t3(u),a.update(c,d)}}function SJ(e){return isNaN(e.x)||isNaN(e.y)}function xJ(e,t,n){return n==="reset"||n==="none"||n==="resize"?CJ:new zg(e,t)}function FJ(e,t,n,r){const a=e.elements||(e.elements=[]);a.length=t.length;for(let s=0;s<t.length;s++){const i=t[s],A=i.properties,l=e3(a,s,i.type,i.initProperties),c=n[i.optionScope].override(i);A.options=t3(c),r.update(l,A)}}function e3(e,t,n,r){const a=as[D1(n)];let s=e[t];return(!s||!(s instanceof a))&&(s=e[t]=new a,Object.assign(s,r)),s}function t3(e){const t=as[D1(e.type)],n={};n.id=e.id,n.type=e.type,n.drawTime=e.drawTime,Object.assign(n,sm(e,t.defaults),sm(e,t.defaultRoutes));for(const r of kJ)n[r]=e[r];return n}function sm(e,t){const n={};for(const r of Object.keys(t)){const a=t[r],s=e[r];am(r)&&Ve(s)?n[r]=s.map(i=>H2(i,a)):n[r]=H2(s,a)}return n}function TJ(e,t,n){return t.$context||(t.$context=Object.assign(Object.create(e.getContext()),{element:t,id:n.id,type:"annotation"}))}function IJ(e,t){const n=t.length,r=e.length;if(r<n){const a=n-r;e.splice(r,0,...new Array(a))}else r>n&&e.splice(n,r-n);return e}var DJ="2.2.1";const Ma=new Map,UJ=T1.concat(Ju);var bi={id:"annotation",version:DJ,beforeRegister(){wX("chart.js","3.7",He.version)},afterRegister(){He.register(as)},afterUnregister(){He.unregister(as)},beforeInit(e){Ma.set(e,{annotations:[],elements:[],visibleElements:[],listeners:{},listened:!1,moveListened:!1,hooks:{},hooked:!1,hovered:[]})},beforeUpdate(e,t,n){const r=Ma.get(e),a=r.annotations=[];let s=n.annotations;ke(s)?Object.keys(s).forEach(i=>{const A=s[i];ke(A)&&(A.id=i,a.push(A))}):Ve(s)&&a.push(...s),GX(a,e.scales)},afterDataLimits(e,t){const n=Ma.get(e);WX(e,t.scale,n.annotations.filter(r=>r.display&&r.adjustScaleRange))},afterUpdate(e,t,n){const r=Ma.get(e);HX(e,r,n),EJ(e,r,n,t.mode),r.visibleElements=r.elements.filter(a=>!a.skip&&a.options.display),zX(e,r,n)},beforeDatasetsDraw(e,t,n){Fc(e,"beforeDatasetsDraw",n.clip)},afterDatasetsDraw(e,t,n){Fc(e,"afterDatasetsDraw",n.clip)},beforeDraw(e,t,n){Fc(e,"beforeDraw",n.clip)},afterDraw(e,t,n){Fc(e,"afterDraw",n.clip)},beforeEvent(e,t,n){const r=Ma.get(e);VX(r,t.event,n)&&(t.changed=!0)},afterDestroy(e){Ma.delete(e)},_getState(e){return Ma.get(e)},defaults:{animations:{numbers:{properties:["x","y","x2","y2","width","height","centerX","centerY","pointX","pointY","radius"],type:"number"}},clip:!0,interaction:{mode:void 0,axis:void 0,intersect:void 0},common:{drawTime:"afterDatasetsDraw",init:!1,label:{}}},descriptors:{_indexable:!1,_scriptable:e=>!UJ.includes(e)&&e!=="init",annotations:{_allKeys:!1,_fallback:(e,t)=>`elements.${as[D1(t.type)].id}`},interaction:{_fallback:!0},common:{label:{_indexable:am,_fallback:!0},_indexable:am}},additionalOptionScopes:[""]};function Fc(e,t,n){const{ctx:r,chartArea:a}=e,s=Ma.get(e);n&&Ol(r,a);const i=OJ(s.visibleElements,t).sort((A,l)=>A.element.options.z-l.element.options.z);for(const A of i)LJ(r,a,s,A);n&&Ll(r)}function OJ(e,t){const n=[];for(const r of e)if(r.options.drawTime===t&&n.push({element:r,main:!0}),r.elements&&r.elements.length)for(const a of r.elements)a.options.display&&a.options.drawTime===t&&n.push({element:a});return n}function LJ(e,t,n,r){const a=r.element;r.main?(S2(n,a,"beforeDraw"),a.draw(e,t),S2(n,a,"afterDraw")):a.draw(e,t)}const Gl=o.defineComponent({__name:"ManaCurveChart",props:WW,setup(e){const{t}=Y(),n=o.ref();He.register(...Rr),He.register(bi),He.register(Jd);const r=e,a={topLeft:9999,topRight:9999,bottomLeft:9999,bottomRight:9999},s=o.computed(()=>["0","1","2","3","4","5","6","7","8","9","+"]),i=o.computed(()=>{if(console.log(r.deck),r.deck)return r.deck;if(console.log(r.deckCode),r.deckCode)return Et(r.deckCode);throw console.log("props.deckCode"),new Error("Deck or DeckCode must be defined")}),A=o.computed(()=>{const u={},d=cd(i.value);for(const f of d)u[f]=s.value.map(()=>0);for(const f in i.value){const p=mn().cardJsonObject[f];if(p===void 0)continue;const h=Im(p,d);if(p.cost>10){u[h][10]+=i.value[f];continue}u[h][p.cost]+=i.value[f]}return u}),l=o.computed(()=>{const u=[];for(let d=0;d<Object.keys(A.value).length;d++){const f=Object.keys(A.value)[d];u.push({backgroundColor:Ww(f),data:A.value[f],borderRadius:a,borderSkipped:!1,label:Tm(f),barPercentage:.5},{backgroundColor:"transparent",data:A.value[f].map(p=>p>0?1:0)})}return{labels:s.value,datasets:u}}),c={responsive:!0,animation:r.animation,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:r.tooltipsEnabled,mode:"index",intersect:!1,filter(u){return u.datasetIndex%2===0&&u.formattedValue!=="0"},callbacks:{title(u){return u.length===0?"":t("deck.numManaCards",{num:u[0].label==="+"?"10+":u[0].label})},footer(u){if(u.length===0)return"";let d=0;for(let f=0;f<u[0].chart.data.datasets.length;f++)f%2!==1&&(d+=u[0].chart.data.datasets[f].data[u[0].dataIndex]);return`${t("general.total")}: ${d}`}}},datalabels:{align:"end",anchor:"end",offset:r.dataLabelsOffset,formatter(u,d){let f=0;for(let p=0;p<d.chart.data.datasets.length;p++)p%2!==1&&(f+=d.chart.data.datasets[p].data[d.dataIndex]);return f||""},display(u){return r.showDataLabels?u.datasetIndex===u.chart.data.datasets.length-1:!1}}},scales:{x:{stacked:!0,grid:{display:!1},display:r.displayXScale},y:{stacked:!0,grid:{display:!1},display:!1}},layout:{padding:{top:r.paddingTop}}};return(u,d)=>(o.openBlock(),o.createBlock(o.unref(Pd),{ref_key:"chart",ref:n,"chart-data":l.value,options:c},null,8,["chart-data"]))}}),QJ={playerId:{type:Number,required:!0,default:1},playerName:{type:String,required:!0,default:""},selectedIconCard:{type:String,required:!1,default:void 0},selectedBannerColor:{type:String,required:!1,default:void 0},createdAt:{type:Date,required:!0,default:new Date},updatedAt:{type:Date,required:!0,default:new Date}},MJ={class:"player"},NJ={class:"row"},PJ={class:"prompt"},RJ={class:"value"},HJ={class:"row"},VJ={class:"prompt"},$J={class:"value"},KJ=o.defineComponent({__name:"BuiltDeckHighlight",props:QJ,setup(e){const t=o.inject(Nr),{t:n}=Y(),r=e;return(a,s)=>{const i=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(ut,{class:"archetype-side-panel-highlight"},{default:o.withCtx(()=>[o.createElementVNode("div",MJ,[o.createVNode(Ta,{class:"circle-card-item","card-code-prop":r.selectedIconCard??"05BC160","ignore-card-item":!0,"color-override":r.selectedBannerColor,"router-link":o.unref(_e)().callbacks.playerIdRouterLinkCallback(r.playerId)},null,8,["card-code-prop","color-override","router-link"]),o.createVNode(i,{to:o.unref(_e)().callbacks.playerIdRouterLinkCallback(r.playerId),class:"name"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(r.playerName),1)]),_:1},8,["to"])]),o.createElementVNode("div",NJ,[o.createElementVNode("div",PJ,o.toDisplayString(o.unref(n)("general.createdAt")),1),o.createElementVNode("div",RJ,o.toDisplayString(o.unref(t)(r.createdAt).fromNow()),1)]),o.createElementVNode("div",HJ,[o.createElementVNode("div",VJ,o.toDisplayString(o.unref(n)("general.updatedAt")),1),o.createElementVNode("div",$J,o.toDisplayString(o.unref(t)(r.updatedAt).fromNow()),1)])]),_:1})}}});const zJ=Q(KJ,[["__scopeId","data-v-9743903e"]]),WJ=o.defineComponent({__name:"DeckSidePanel",props:tP,emits:["update:filters"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.reactive(r.filters),i=o.computed(()=>SS(r.deckcode)),A=o.computed(()=>Object.keys(Et(r.deckcode)).filter(u=>ro(mn().cardJsonObject[u]))),l=o.computed(()=>{var u;return(u=Be().dataJson.formats[s.formatFilters[0]??"Standard"])==null?void 0:u.availableQueues});o.watch(s,()=>{a("update:filters",s)});function c(){for(const[,u]of Object.entries(s))u.splice(0)}return(u,d)=>(o.openBlock(),o.createBlock(pi,{"filter-object":r.filters,"onClear:filterObject":c},{default:o.withCtx(()=>[r.builtDeckProps?(o.openBlock(),o.createBlock(zJ,o.normalizeProps(o.mergeProps({key:0},r.builtDeckProps)),null,16)):o.createCommentVNode("",!0),o.createVNode(Fd,{"card-codes":A.value,regions:i.value},null,8,["card-codes","regions"]),o.createVNode(ut,{title:o.unref(n)("general.regions")},{default:o.withCtx(()=>[o.createVNode(Eg,{"deck-code":r.deckcode,"describe-regions":!0},null,8,["deck-code"])]),_:1},8,["title"]),o.createVNode(ut,{title:o.unref(n)("general.manaCurve")},{default:o.withCtx(()=>[o.createVNode(Gl,{class:"mana-curve-chart","deck-code":r.deckcode,"padding-top":5,"show-data-labels":!0,"data-labels-offset":-5,"tooltips-enabled":!0,"display-x-scale":!0,animation:void 0},null,8,["deck-code"])]),_:1},8,["title"]),o.createVNode(ut,{title:o.unref(n)("general.type")},{default:o.withCtx(()=>[o.createVNode(Wu,{class:"side-panel-chart","deck-code":r.deckcode,info:"typeRef"},null,8,["deck-code"])]),_:1},8,["title"]),o.createVNode(ut,{title:o.unref(n)("general.rarity")},{default:o.withCtx(()=>[o.createVNode(Wu,{class:"side-panel-chart","deck-code":r.deckcode,info:"rarityRef"},null,8,["deck-code"])]),_:1},8,["title"]),o.createVNode(xo,{"filter-array":s.sampleSizeFilters,"onUpdate:filterArray":d[0]||(d[0]=f=>s.sampleSizeFilters=f)},null,8,["filter-array"]),o.createVNode(fi,{"filter-array":s.timeFilters,"onUpdate:filterArray":d[1]||(d[1]=f=>s.timeFilters=f)},null,8,["filter-array"]),o.createVNode(Fo,{"filter-array":s.serverFilters,"onUpdate:filterArray":d[2]||(d[2]=f=>s.serverFilters=f)},null,8,["filter-array"]),o.createVNode(Sl,{"filter-array":s.formatFilters,"onUpdate:filterArray":d[3]||(d[3]=f=>s.formatFilters=f)},null,8,["filter-array"]),o.createVNode(xl,{"filter-array":s.queueFilters,"onUpdate:filterArray":d[4]||(d[4]=f=>s.queueFilters=f),"available-queues":l.value},null,8,["filter-array","available-queues"])]),_:1},8,["filter-object"]))}});const n3=Q(WJ,[["__scopeId","data-v-b95c4f38"]]),GJ={cardsProp:{type:Object,required:!1,default:void 0},deck:{type:Object,required:!0,default:{}}},jJ={class:"deck-summary"},YJ={class:"deck-cards"},qJ={class:"champions-landmarks column"},XJ={key:0,class:"type"},JJ={class:"type-heading"},ZJ={class:"title"},eZ={class:"type-quantity"},tZ={class:"card-container"},nZ={key:1,class:"type column"},rZ={class:"type-heading"},aZ={class:"title"},sZ={class:"type-quantity"},iZ={class:"card-container"},oZ={key:2,class:"type column"},AZ={class:"type-heading"},lZ={class:"title"},cZ={class:"type-quantity"},uZ={class:"card-container"},dZ={key:0,class:"type column"},fZ={class:"type-heading"},pZ={class:"title"},hZ={class:"type-quantity"},mZ={class:"card-container"},gZ={key:1,class:"type"},vZ={class:"type-heading"},yZ={class:"title"},BZ={class:"type-quantity"},wZ={class:"card-container"},bZ=o.defineComponent({__name:"DeckSummary",props:GJ,setup(e){const t=e,n=o.computed(()=>t.cardsProp?t.cardsProp:ln(t.deck)),r=o.computed(()=>vl(n.value)),a=o.computed(()=>n.value.filter(u=>ro(u))),s=o.computed(()=>n.value.filter(u=>u.typeRef==="Unit"&&u.supertype==="")),i=o.computed(()=>n.value.filter(u=>u.typeRef==="Spell")),A=o.computed(()=>n.value.filter(u=>u.typeRef==="Landmark")),l=o.computed(()=>n.value.filter(u=>u.typeRef==="Equipment"));function c(u){return u.reduce((d,f)=>d+t.deck[f.cardCode],0)}return(u,d)=>{const f=o.resolveDirective("t");return o.openBlock(),o.createElementBlock("div",jJ,[o.createElementVNode("div",YJ,[o.createElementVNode("div",qJ,[a.value.length>0?(o.openBlock(),o.createElementBlock("div",XJ,[o.createElementVNode("div",JJ,[d[0]||(d[0]=o.createElementVNode("img",{class:"icon",src:"https://lor.gg/storage/icons/champion.svg"},null,-1)),o.withDirectives(o.createElementVNode("div",ZJ,null,512),[[f,"general.champions"]]),o.createElementVNode("p",eZ,o.toDisplayString(c(a.value)),1)]),o.createElementVNode("div",tZ,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.value,p=>(o.openBlock(),o.createBlock(bt,{key:p.cardCode,"card-prop":p,color:o.unref(Ns)(p,r.value,!0),name:p.name,"mana-number":p.cost,"quantity-number":t.deck[p.cardCode],"maintain-aspect-ratio":!0,"router-link":o.unref(_e)().callbacks.cardCodeRouterLinkCallback(p.cardCode)},null,8,["card-prop","color","name","mana-number","quantity-number","router-link"]))),128))])])):o.createCommentVNode("",!0),A.value.length>0?(o.openBlock(),o.createElementBlock("div",nZ,[o.createElementVNode("div",rZ,[d[1]||(d[1]=o.createElementVNode("img",{class:"icon",src:"https://lor.gg/storage/icons/landmark.svg"},null,-1)),o.withDirectives(o.createElementVNode("div",aZ,null,512),[[f,"general.landmarks"]]),o.createElementVNode("p",sZ,o.toDisplayString(c(A.value)),1)]),o.createElementVNode("div",iZ,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(A.value,p=>(o.openBlock(),o.createBlock(bt,{key:p.cardCode,"card-prop":p,color:o.unref(Ns)(p,r.value,!0),name:p.name,"mana-number":p.cost,"quantity-number":t.deck[p.cardCode],"maintain-aspect-ratio":!0,"router-link":o.unref(_e)().callbacks.cardCodeRouterLinkCallback(p.cardCode)},null,8,["card-prop","color","name","mana-number","quantity-number","router-link"]))),128))])])):o.createCommentVNode("",!0),l.value.length>0?(o.openBlock(),o.createElementBlock("div",oZ,[o.createElementVNode("div",AZ,[d[2]||(d[2]=o.createElementVNode("img",{class:"icon",src:"https://lor.gg/storage/icons/equipment.svg"},null,-1)),o.withDirectives(o.createElementVNode("div",lZ,null,512),[[f,"general.equipments"]]),o.createElementVNode("p",cZ,o.toDisplayString(c(l.value)),1)]),o.createElementVNode("div",uZ,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,p=>(o.openBlock(),o.createBlock(bt,{key:p.cardCode,"card-prop":p,color:o.unref(Ns)(p,r.value,!0),name:p.name,"mana-number":p.cost,"quantity-number":t.deck[p.cardCode],"maintain-aspect-ratio":!0,"router-link":o.unref(_e)().callbacks.cardCodeRouterLinkCallback(p.cardCode)},null,8,["card-prop","color","name","mana-number","quantity-number","router-link"]))),128))])])):o.createCommentVNode("",!0)]),s.value.length>0?(o.openBlock(),o.createElementBlock("div",dZ,[o.createElementVNode("div",fZ,[d[3]||(d[3]=o.createElementVNode("img",{class:"icon",src:"https://lor.gg/storage/icons/follower.svg"},null,-1)),o.withDirectives(o.createElementVNode("div",pZ,null,512),[[f,"general.followers"]]),o.createElementVNode("p",hZ,o.toDisplayString(c(s.value)),1)]),o.createElementVNode("div",mZ,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,p=>(o.openBlock(),o.createBlock(bt,{key:p.cardCode,"card-prop":p,color:o.unref(Ns)(p,r.value,!0),name:p.name,"mana-number":p.cost,"quantity-number":t.deck[p.cardCode],"maintain-aspect-ratio":!0,"router-link":o.unref(_e)().callbacks.cardCodeRouterLinkCallback(p.cardCode)},null,8,["card-prop","color","name","mana-number","quantity-number","router-link"]))),128))])])):o.createCommentVNode("",!0),i.value.length>0?(o.openBlock(),o.createElementBlock("div",gZ,[o.createElementVNode("div",vZ,[d[4]||(d[4]=o.createElementVNode("img",{class:"icon",src:"https://lor.gg/storage/icons/spell.svg"},null,-1)),o.withDirectives(o.createElementVNode("div",yZ,null,512),[[f,"general.spells"]]),o.createElementVNode("p",BZ,o.toDisplayString(c(i.value)),1)]),o.createElementVNode("div",wZ,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,p=>(o.openBlock(),o.createBlock(bt,{key:p.cardCode,"card-prop":p,color:o.unref(Ns)(p,r.value,!0),name:p.name,"mana-number":p.cost,"quantity-number":t.deck[p.cardCode],"maintain-aspect-ratio":!0,"router-link":o.unref(_e)().callbacks.cardCodeRouterLinkCallback(p.cardCode)},null,8,["card-prop","color","name","mana-number","quantity-number","router-link"]))),128))])])):o.createCommentVNode("",!0)])])}}});const rf=Q(bZ,[["__scopeId","data-v-b253a25c"]]),_Z={deckCode:{type:String,required:!0,default:""}},af=o.defineComponent({__name:"CopyDeckButton",props:_Z,setup(e){const{t}=Y(),n=e,r=o.ref(null);let a,s;o.onMounted(()=>{s=tt(r.value,{content:t("deck.copyDeckCode"),arrow:!0}),a=tt(r.value,{content:t("deck.deckCodeCopied"),trigger:"manual",arrow:!0})});function i(){FS(n.deckCode),s.hide(),a.show()}return(A,l)=>(o.openBlock(),o.createElementBlock("button",{ref_key:"button",ref:r,class:"circle-button",onClick:i},[o.createVNode(o.unref(Se),{icon:"copy",class:"icon"})],512))}}),CZ={deckId:{type:Number,required:!0,default:-1}},U1=o.defineComponent({__name:"DeleteDeckButton",props:CZ,setup(e){const{t}=Y(),n=o.ref(null);return o.onMounted(()=>{tt(n.value,{content:t("deck.deleteDeck"),arrow:!0})}),(r,a)=>(o.openBlock(),o.createElementBlock("button",{ref_key:"button",ref:n,class:"circle-button"},[o.createVNode(o.unref(Se),{icon:"trash-alt",class:"icon"})],512))}}),O1=o.defineComponent({__name:"EditDeckNameButton",setup(e){const{t}=Y(),n=o.ref(null);return o.onMounted(()=>{tt(n.value,{content:t("deck.editDeckName"),arrow:!0})}),(r,a)=>(o.openBlock(),o.createElementBlock("button",{ref_key:"button",ref:n,class:"circle-button"},[o.createVNode(o.unref(Se),{icon:"pencil-alt",class:"icon"})],512))}}),kZ={routerLink:{type:Object,required:!0,default:{path:"/404"}}},EZ=o.defineComponent({__name:"OpenArchetypePageButton",props:kZ,setup(e){const{t}=Y(),n=e,r=o.ref(null);return o.onMounted(()=>{tt(r.value,{content:t("deck.openArchetypePage"),arrow:!0})}),(a,s)=>{const i=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(i,{to:n.routerLink},{default:o.withCtx(()=>[o.createElementVNode("button",{ref_key:"button",ref:r,class:"circle-button"},o.toDisplayString(o.unref(t)("archetype.abbreviation")),513)]),_:1},8,["to"])}}});const L1=Q(EZ,[["__scopeId","data-v-b921ee68"]]),SZ={routerLink:{type:Object,required:!0,default:{path:"/404"}}},Q1=o.defineComponent({__name:"OpenInDeckBuilderButton",props:SZ,setup(e){const{t}=Y(),n=e,r=o.ref(null);return o.onMounted(()=>{tt(r.value,{content:t("deck.openInDeckBuilder"),arrow:!0})}),(a,s)=>{const i=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(i,{to:n.routerLink},{default:o.withCtx(()=>[o.createElementVNode("button",{ref_key:"button",ref:r,class:"circle-button"},[o.createVNode(o.unref(Se),{icon:"hammer",class:"icon"})],512)]),_:1},8,["to"])}}}),xZ={deck:{type:Object,required:!0,default:{}}},FZ={deck:{type:Object,required:!0,default:{}}},TZ={class:"simulate-mulligan"},IZ={class:"cards"},DZ={class:"buttons"},UZ=o.defineComponent({__name:"SimulateMulligan",props:FZ,setup(e){const{t}=Y(),n=e,r=o.computed(()=>{const c=[];for(const u in n.deck)for(let d=0;d<n.deck[u];d++)c.push(u);return c}),a=o.computed(()=>{const c=Array.from(r.value);for(const u of s.value)u!==null&&c.splice(c.indexOf(u.cardCode),1);return c}),s=o.ref([null,null,null,null]);function i(){s.value.fill(null),l()}function A(){var c;for(let u=0;u<s.value.length;u++)s.value[u]===null||!((c=s.value[u])!=null&&c.isSelected)||(s.value[u]=null);l()}function l(){for(;s.value.some(c=>c===null);)s.value[s.value.indexOf(null)]={cardCode:a.value[CS(0,a.value.length)],isSelected:!1};console.log(s.value)}return l(),(c,u)=>(o.openBlock(),o.createElementBlock("div",TZ,[o.createElementVNode("div",IZ,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value.filter(d=>d!==null),(d,f)=>(o.openBlock(),o.createBlock(si,{key:d.cardCode+f,"card-code-prop":d.cardCode,"is-root":!0,style:o.normalizeStyle(d.isSelected?{opacity:.5}:null),onClick:p=>d.isSelected=!d.isSelected},null,8,["card-code-prop","style","onClick"]))),128))]),o.createElementVNode("div",DZ,[o.createElementVNode("button",{class:"primary-button",onClick:i},o.toDisplayString(o.unref(t)("deck.replaceAllCards")),1),o.createElementVNode("button",{class:"primary-button",onClick:A},o.toDisplayString(o.unref(t)("deck.replaceSelectedCards")),1)])]))}});const M1=Q(UZ,[["__scopeId","data-v-e3540f85"]]),OZ={class:"simulate-mulligan-wrapper"},LZ=o.defineComponent({__name:"SimulateMulliganButton",props:xZ,setup(e){const{t}=Y(),n=e,r=o.ref(null),a=o.ref(!1);return o.onMounted(()=>{tt(r.value,{content:t("deck.simulateMulligan"),arrow:!0})}),(s,i)=>(o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("button",{ref_key:"button",ref:r,class:"circle-button",onClick:i[0]||(i[0]=A=>a.value=!0)},[o.createVNode(o.unref(Se),{icon:"hand-paper"})],512),o.createVNode(Lr,{"show-modal":a.value,"onUpdate:showModal":i[1]||(i[1]=A=>a.value=A)},{default:o.withCtx(()=>[o.createElementVNode("div",OZ,[o.createVNode(M1,{deck:n.deck},null,8,["deck"])])]),_:1},8,["show-modal"])]))}});const sf=Q(LZ,[["__scopeId","data-v-63aa9043"]]),QZ={deckIsPrivate:{type:Boolean,required:!0,default:!0}},N1=o.defineComponent({__name:"UpdateDeckPrivacyButton",props:QZ,setup(e){const{t}=Y(),n=e,r=o.ref(null);let a;return o.onMounted(()=>{a=tt(r.value,{content:`${t("deck.updatePrivacy")}:
|
|
671
|
+
*/const _2={modes:{point(e,t){return vu(e,t,{intersect:!0})},nearest(e,t,n){return gX(e,t,n)},x(e,t,n){return vu(e,t,{intersect:n.intersect,axis:"x"})},y(e,t,n){return vu(e,t,{intersect:n.intersect,axis:"y"})}}};function C1(e,t,n){return(_2.modes[n.mode]||_2.modes.nearest)(e,t,n)}function hX(e,t,n){return n!=="x"&&n!=="y"?e.inRange(t.x,t.y,"x",!0)||e.inRange(t.x,t.y,"y",!0):e.inRange(t.x,t.y,n,!0)}function mX(e,t,n){return n==="x"?{x:e.x,y:t.y}:n==="y"?{x:t.x,y:e.y}:t}function vu(e,t,n){return e.visibleElements.filter(r=>n.intersect?r.inRange(t.x,t.y):hX(r,t,n.axis))}function gX(e,t,n){let r=Number.POSITIVE_INFINITY;return vu(e,t,n).reduce((a,s)=>{const i=s.getCenterPoint(),A=mX(t,i,n.axis),l=mo(t,A);return l<r?(a=[s],r=l):l===r&&a.push(s),a},[]).sort((a,s)=>a._index-s._index).slice(0,1)}const vX=(e,t)=>t>e||e.length>t.length&&e.slice(0,t.length)===t,$s=.001,Zd=(e,t,n)=>Math.min(n,Math.max(t,e));function yX(e,t,n){for(const r of Object.keys(e))e[r]=Zd(e[r],t,n);return e}function BX(e,t,n,r){if(!e||!t||n<=0)return!1;const a=r/2;return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)<=Math.pow(n+a,2)}function N4(e,{x:t,y:n,x2:r,y2:a},s,i){const A=i/2,l=e.x>=t-A-$s&&e.x<=r+A+$s,c=e.y>=n-A-$s&&e.y<=a+A+$s;return s==="x"?l:(s==="y"||l)&&c}function Uo(e,t){const{centerX:n,centerY:r}=e.getProps(["centerX","centerY"],t);return{x:n,y:r}}function wX(e,t,n,r=!0){const a=n.split(".");let s=0;for(const i of t.split(".")){const A=a[s++];if(parseInt(i,10)<parseInt(A,10))break;if(vX(A,i)){if(r)throw new Error(`${e} v${n} is not supported. v${t} or newer is required.`);return!1}}return!0}const P4=e=>typeof e=="string"&&e.endsWith("%"),R4=e=>parseFloat(e)/100,H4=e=>Zd(R4(e),0,1);function k1(e,t){return t==="start"?0:t==="end"?e:P4(t)?H4(t)*e:e/2}function ms(e,t,n=!0){return typeof t=="number"?t:P4(t)?(n?H4(t):R4(t))*e:e}function bX(e,t){const{x:n,width:r}=e,a=t.textAlign;return a==="center"?n+r/2:a==="end"||a==="right"?n+r:n}function E1(e,t="center"){return ke(e)?{x:pe(e.x,t),y:pe(e.y,t)}:(e=pe(e,t),{x:e,y:e})}function V4(e){return e&&(Tn(e.xValue)||Tn(e.yValue))}function $l(e,t,n,r=!1){const a=n.init;if(a){if(a===!0)return K4(t,r)}else return;return _X(t,r,We(a,[{chart:e,properties:t,options:n}]))}function $4(e,t,n){let r=!1;return t.forEach(a=>{Fn(e[a])?(r=!0,n[a]=e[a]):Tn(n[a])&&delete n[a]}),r}function K4({centerX:e,centerY:t},n){return n?{centerX:e,centerY:t,radius:0,width:0,height:0}:{x:e,y:t,x2:e,y2:t,width:0,height:0}}function _X(e,t,n){if(n===!0)return K4(e,t);if(ke(n))return n}const mp=new Map,CX=e=>isNaN(e)||e<=0,kX=e=>e.reduce(function(t,n){return t+=n.string,t},"");function ef(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object HTMLImageElement]"||t==="[object HTMLCanvasElement]"}}function S1(e,{x:t,y:n},r){r&&(e.translate(t,n),e.rotate(Mt(r)),e.translate(-t,-n))}function gs(e,t){if(t&&t.borderWidth)return e.lineCap=t.borderCapStyle,e.setLineDash(t.borderDash),e.lineDashOffset=t.borderDashOffset,e.lineJoin=t.borderJoinStyle,e.lineWidth=t.borderWidth,e.strokeStyle=t.borderColor,!0}function Oo(e,t){e.shadowColor=t.backgroundShadowColor,e.shadowBlur=t.shadowBlur,e.shadowOffsetX=t.shadowOffsetX,e.shadowOffsetY=t.shadowOffsetY}function x1(e,t){const n=t.content;if(ef(n))return{width:ms(n.width,t.width),height:ms(n.height,t.height)};const r=t.font,a=Ve(r)?r.map(l=>yt(l)):[yt(r)],s=t.textStrokeWidth,i=Ve(n)?n:[n],A=i.join()+kX(a)+s+(e._measureText?"-spriting":"");return mp.has(A)||mp.set(A,TX(e,i,a,s)),mp.get(A)}function z4(e,t,n){const{x:r,y:a,width:s,height:i}=t;e.save(),Oo(e,n);const A=gs(e,n);e.fillStyle=n.backgroundColor,e.beginPath(),go(e,{x:r,y:a,w:s,h:i,radius:yX(ns(n.borderRadius),0,Math.min(s,i)/2)}),e.closePath(),e.fill(),A&&(e.shadowColor=n.borderShadowColor,e.stroke()),e.restore()}function EX(e,t,n){const r=n.content;if(ef(r)){e.save(),e.globalAlpha=UX(n.opacity,r.style.opacity),e.drawImage(r,t.x,t.y,t.width,t.height),e.restore();return}const a=Ve(r)?r:[r],s=n.font,i=Ve(s)?s.map(d=>yt(d)):[yt(s)],A=n.color,l=Ve(A)?A:[A],c=bX(t,n),u=t.y+n.textStrokeWidth/2;e.save(),e.textBaseline="middle",e.textAlign=n.textAlign,SX(e,n)&&IX(e,{x:c,y:u},a,i),DX(e,{x:c,y:u},a,{fonts:i,colors:l}),e.restore()}function SX(e,t){if(t.textStrokeWidth>0)return e.lineJoin="round",e.miterLimit=2,e.lineWidth=t.textStrokeWidth,e.strokeStyle=t.textStrokeColor,!0}function xX(e,t,n,r){const{radius:a,options:s}=t,i=s.pointStyle,A=s.rotation;let l=(A||0)*Lg;if(ef(i)){e.save(),e.translate(n,r),e.rotate(l),e.drawImage(i,-i.width/2,-i.height/2,i.width,i.height),e.restore();return}CX(a)||FX(e,{x:n,y:r,radius:a,rotation:A,style:i,rad:l})}function FX(e,{x:t,y:n,radius:r,rotation:a,style:s,rad:i}){let A,l,c,u;switch(e.beginPath(),s){default:e.arc(t,n,r,0,it),e.closePath();break;case"triangle":e.moveTo(t+Math.sin(i)*r,n-Math.cos(i)*r),i+=Nu,e.lineTo(t+Math.sin(i)*r,n-Math.cos(i)*r),i+=Nu,e.lineTo(t+Math.sin(i)*r,n-Math.cos(i)*r),e.closePath();break;case"rectRounded":u=r*.516,c=r-u,A=Math.cos(i+$n)*c,l=Math.sin(i+$n)*c,e.arc(t-A,n-l,u,i-be,i-dt),e.arc(t+l,n-A,u,i-dt,i),e.arc(t+A,n+l,u,i,i+dt),e.arc(t-l,n+A,u,i+dt,i+be),e.closePath();break;case"rect":if(!a){c=Math.SQRT1_2*r,e.rect(t-c,n-c,2*c,2*c);break}i+=$n;case"rectRot":A=Math.cos(i)*r,l=Math.sin(i)*r,e.moveTo(t-A,n-l),e.lineTo(t+l,n-A),e.lineTo(t+A,n+l),e.lineTo(t-l,n+A),e.closePath();break;case"crossRot":i+=$n;case"cross":A=Math.cos(i)*r,l=Math.sin(i)*r,e.moveTo(t-A,n-l),e.lineTo(t+A,n+l),e.moveTo(t+l,n-A),e.lineTo(t-l,n+A);break;case"star":A=Math.cos(i)*r,l=Math.sin(i)*r,e.moveTo(t-A,n-l),e.lineTo(t+A,n+l),e.moveTo(t+l,n-A),e.lineTo(t-l,n+A),i+=$n,A=Math.cos(i)*r,l=Math.sin(i)*r,e.moveTo(t-A,n-l),e.lineTo(t+A,n+l),e.moveTo(t+l,n-A),e.lineTo(t-l,n+A);break;case"line":A=Math.cos(i)*r,l=Math.sin(i)*r,e.moveTo(t-A,n-l),e.lineTo(t+A,n+l);break;case"dash":e.moveTo(t,n),e.lineTo(t+Math.cos(i)*r,n+Math.sin(i)*r);break}e.fill()}function TX(e,t,n,r){e.save();const a=t.length;let s=0,i=r;for(let A=0;A<a;A++){const l=n[Math.min(A,n.length-1)];e.font=l.string;const c=t[A];s=Math.max(s,e.measureText(c).width+r),i+=l.lineHeight}return e.restore(),{width:s,height:i}}function IX(e,{x:t,y:n},r,a){e.beginPath();let s=0;r.forEach(function(i,A){const l=a[Math.min(A,a.length-1)],c=l.lineHeight;e.font=l.string,e.strokeText(i,t,n+c/2+s),s+=c}),e.stroke()}function DX(e,{x:t,y:n},r,{fonts:a,colors:s}){let i=0;r.forEach(function(A,l){const c=s[Math.min(l,s.length-1)],u=a[Math.min(l,a.length-1)],d=u.lineHeight;e.beginPath(),e.font=u.string,e.fillStyle=c,e.fillText(A,t,n+d/2+i),i+=d,e.fill()})}function UX(e,t){const n=ps(e)?e:t;return ps(n)?Zd(n,0,1):1}const C2={xScaleID:{min:"xMin",max:"xMax",start:"left",end:"right",startProp:"x",endProp:"x2"},yScaleID:{min:"yMin",max:"yMax",start:"bottom",end:"top",startProp:"y",endProp:"y2"}};function _o(e,t,n){return t=typeof t=="number"?t:e.parse(t),vt(t)?e.getPixelForValue(t):n}function ui(e,t,n){const r=t[n];if(r||n==="scaleID")return r;const a=n.charAt(0),s=Object.values(e).filter(i=>i.axis&&i.axis===a);return s.length?s[0].id:a}function W4(e,t){if(e){const n=e.options.reverse,r=_o(e,t.min,n?t.end:t.start),a=_o(e,t.max,n?t.start:t.end);return{start:r,end:a}}}function G4(e,t){const{chartArea:n,scales:r}=e,a=r[ui(r,t,"xScaleID")],s=r[ui(r,t,"yScaleID")];let i=n.width/2,A=n.height/2;return a&&(i=_o(a,t.xValue,a.left+a.width/2)),s&&(A=_o(s,t.yValue,s.top+s.height/2)),{x:i,y:A}}function F1(e,t){const n=e.scales,r=n[ui(n,t,"xScaleID")],a=n[ui(n,t,"yScaleID")];if(!r&&!a)return{};let{left:s,right:i}=r||e.chartArea,{top:A,bottom:l}=a||e.chartArea;const c=k2(r,{min:t.xMin,max:t.xMax,start:s,end:i});s=c.start,i=c.end;const u=k2(a,{min:t.yMin,max:t.yMax,start:l,end:A});return A=u.start,l=u.end,{x:s,y:A,x2:i,y2:l,width:i-s,height:l-A,centerX:s+(i-s)/2,centerY:A+(l-A)/2}}function j4(e,t){if(!V4(t)){const n=F1(e,t);let r=t.radius;(!r||isNaN(r))&&(r=Math.min(n.width,n.height)/2,t.radius=r);const a=r*2,s=n.centerX+t.xAdjust,i=n.centerY+t.yAdjust;return{x:s-r,y:i-r,x2:s+r,y2:i+r,centerX:s,centerY:i,width:a,height:a,radius:r}}return LX(e,t)}function OX(e,t){const{scales:n,chartArea:r}=e,a=n[t.scaleID],s={x:r.left,y:r.top,x2:r.right,y2:r.bottom};return a?QX(a,s,t):MX(n,s,t),s}function Y4(e,t,n){const r=F1(e,t);return r.initProperties=$l(e,r,t,n),r.elements=[{type:"label",optionScope:"label",properties:RX(e,r,t),initProperties:r.initProperties}],r}function LX(e,t){const n=G4(e,t),r=t.radius*2;return{x:n.x-t.radius+t.xAdjust,y:n.y-t.radius+t.yAdjust,x2:n.x+t.radius+t.xAdjust,y2:n.y+t.radius+t.yAdjust,centerX:n.x+t.xAdjust,centerY:n.y+t.yAdjust,radius:t.radius,width:r,height:r}}function k2(e,t){const n=W4(e,t)||t;return{start:Math.min(n.start,n.end),end:Math.max(n.start,n.end)}}function QX(e,t,n){const r=_o(e,n.value,NaN),a=_o(e,n.endValue,r);e.isHorizontal()?(t.x=r,t.x2=a):(t.y=r,t.y2=a)}function MX(e,t,n){for(const r of Object.keys(C2)){const a=e[ui(e,n,r)];if(a){const{min:s,max:i,start:A,end:l,startProp:c,endProp:u}=C2[r],d=W4(a,{min:n[s],max:n[i],start:a[A],end:a[l]});t[c]=d.start,t[u]=d.end}}}function NX({properties:e,options:t},n,r,a){const{x:s,x2:i,width:A}=e;return q4({start:s,end:i,size:A,borderWidth:t.borderWidth},{position:r.x,padding:{start:a.left,end:a.right},adjust:t.label.xAdjust,size:n.width})}function PX({properties:e,options:t},n,r,a){const{y:s,y2:i,height:A}=e;return q4({start:s,end:i,size:A,borderWidth:t.borderWidth},{position:r.y,padding:{start:a.top,end:a.bottom},adjust:t.label.yAdjust,size:n.height})}function q4(e,t){const{start:n,end:r,borderWidth:a}=e,{position:s,padding:{start:i,end:A},adjust:l}=t,c=r-a-n-i-A-t.size;return n+a/2+l+k1(c,s)}function RX(e,t,n){const r=n.label;r.backgroundColor="transparent",r.callout.display=!1;const a=E1(r.position),s=Ot(r.padding),i=x1(e.ctx,r),A=NX({properties:t,options:n},i,a,s),l=PX({properties:t,options:n},i,a,s),c=i.width+s.width,u=i.height+s.height;return{x:A,y:l,x2:A+c,y2:l+u,width:c,height:u,centerX:A+c/2,centerY:l+u/2,rotation:r.rotation}}function wi(e,t,n){const r=Math.cos(n),a=Math.sin(n),s=t.x,i=t.y;return{x:s+r*(e.x-s)-a*(e.y-i),y:i+a*(e.x-s)+r*(e.y-i)}}const Zh=["enter","leave"],T1=Zh.concat("click");function HX(e,t,n){t.listened=$4(n,T1,t.listeners),t.moveListened=!1,t._getElements=C1,Zh.forEach(r=>{Fn(n[r])&&(t.moveListened=!0)}),(!t.listened||!t.moveListened)&&t.annotations.forEach(r=>{!t.listened&&Fn(r.click)&&(t.listened=!0),t.moveListened||Zh.forEach(a=>{Fn(r[a])&&(t.listened=!0,t.moveListened=!0)})})}function VX(e,t,n){if(e.listened)switch(t.type){case"mousemove":case"mouseout":return $X(e,t,n);case"click":return KX(e,t,n)}}function $X(e,t,n){if(!e.moveListened)return;let r;t.type==="mousemove"?r=C1(e,t,n.interaction):r=[];const a=e.hovered;e.hovered=r;const s={state:e,event:t};let i=E2(s,"leave",a,r);return E2(s,"enter",r,a)||i}function E2({state:e,event:t},n,r,a){let s;for(const i of r)a.indexOf(i)<0&&(s=X4(i.options[n]||e.listeners[n],i,t)||s);return s}function KX(e,t,n){const r=e.listeners,a=C1(e,t,n.interaction);let s;for(const i of a)s=X4(i.options.click||r.click,i,t)||s;return s}function X4(e,t,n){return We(e,[t.$context,n])===!0}const Ju=["afterDraw","beforeDraw"];function zX(e,t,n){const r=t.visibleElements;t.hooked=$4(n,Ju,t.hooks),t.hooked||r.forEach(a=>{t.hooked||Ju.forEach(s=>{Fn(a.options[s])&&(t.hooked=!0)})})}function S2(e,t,n){if(e.hooked){const r=t.options[n]||e.hooks[n];return We(r,[t.$context])}}function WX(e,t,n){const r=XX(e.scales,t,n);let a=x2(t,r,"min","suggestedMin");a=x2(t,r,"max","suggestedMax")||a,a&&Fn(t.handleTickRangeOptions)&&t.handleTickRangeOptions()}function GX(e,t){for(const n of e)YX(n,t)}function x2(e,t,n,r){if(vt(t[n])&&!jX(e.options,n,r)){const a=e[n]!==t[n];return e[n]=t[n],a}}function jX(e,t,n){return Tn(e[t])||Tn(e[n])}function YX(e,t){for(const n of["scaleID","xScaleID","yScaleID"]){const r=ui(t,e,n);r&&!t[r]&&qX(e,n)&&console.warn(`No scale found with id '${r}' for annotation '${e.id}'`)}}function qX(e,t){if(t==="scaleID")return!0;const n=t.charAt(0);for(const r of["Min","Max","Value"])if(Tn(e[n+r]))return!0;return!1}function XX(e,t,n){const r=t.axis,a=t.id,s=r+"ScaleID",i={min:pe(t.min,Number.NEGATIVE_INFINITY),max:pe(t.max,Number.POSITIVE_INFINITY)};for(const A of n)A.scaleID===a?F2(A,t,["value","endValue"],i):ui(e,A,s)===a&&F2(A,t,[r+"Min",r+"Max",r+"Value"],i);return i}function F2(e,t,n,r){for(const a of n){const s=e[a];if(Tn(s)){const i=t.parse(s);r.min=Math.min(r.min,i),r.max=Math.max(r.max,i)}}}class Lo extends gn{inRange(t,n,r,a){const{x:s,y:i}=wi({x:t,y:n},this.getCenterPoint(a),Mt(-this.options.rotation));return N4({x:s,y:i},this.getProps(["x","y","x2","y2"],a),r,this.options.borderWidth)}getCenterPoint(t){return Uo(this,t)}draw(t){t.save(),S1(t,this.getCenterPoint(),this.options.rotation),z4(t,this,this.options),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,n){return Y4(t,n)}}Lo.id="boxAnnotation";Lo.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,label:{backgroundColor:"transparent",borderWidth:0,callout:{display:!1},color:"black",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,opacity:void 0,padding:6,position:"center",rotation:void 0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};Lo.defaultRoutes={borderColor:"color",backgroundColor:"color"};Lo.descriptors={label:{_fallback:!0}};const J4=["left","bottom","top","right"];class Kl extends gn{inRange(t,n,r,a){const{x:s,y:i}=wi({x:t,y:n},this.getCenterPoint(a),Mt(-this.rotation));return N4({x:s,y:i},this.getProps(["x","y","x2","y2"],a),r,this.options.borderWidth)}getCenterPoint(t){return Uo(this,t)}draw(t){const n=this.options,r=!Tn(this._visible)||this._visible;!n.display||!n.content||!r||(t.save(),S1(t,this.getCenterPoint(),this.rotation),ZX(t,this),z4(t,this,n),EX(t,iJ(this),n),t.restore())}resolveElementProperties(t,n){let r;if(V4(n))r=G4(t,n);else{const{centerX:A,centerY:l}=F1(t,n);r={x:A,y:l}}const a=Ot(n.padding),s=x1(t.ctx,n),i=JX(r,s,n,a);return{initProperties:$l(t,i,n),pointX:r.x,pointY:r.y,...i,rotation:n.rotation}}}Kl.id="labelAnnotation";Kl.defaults={adjustScaleRange:!0,backgroundColor:"transparent",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:0,callout:{borderCapStyle:"butt",borderColor:void 0,borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:1,display:!1,margin:5,position:"auto",side:5,start:"50%"},color:"black",content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,init:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0};Kl.defaultRoutes={borderColor:"color"};function JX(e,t,n,r){const a=t.width+r.width+n.borderWidth,s=t.height+r.height+n.borderWidth,i=E1(n.position,"center"),A=T2(e.x,a,n.xAdjust,i.x),l=T2(e.y,s,n.yAdjust,i.y);return{x:A,y:l,x2:A+a,y2:l+s,width:a,height:s,centerX:A+a/2,centerY:l+s/2}}function T2(e,t,n=0,r){return e-k1(t,r)+n}function ZX(e,t){const{pointX:n,pointY:r,options:a}=t,s=a.callout,i=s&&s.display&&aJ(t,s);if(!i||oJ(t,s,i))return;if(e.save(),e.beginPath(),!gs(e,s))return e.restore();const{separatorStart:l,separatorEnd:c}=eJ(t,i),{sideStart:u,sideEnd:d}=nJ(t,i,l);(s.margin>0||a.borderWidth===0)&&(e.moveTo(l.x,l.y),e.lineTo(c.x,c.y)),e.moveTo(u.x,u.y),e.lineTo(d.x,d.y);const f=wi({x:n,y:r},t.getCenterPoint(),Mt(-t.rotation));e.lineTo(f.x,f.y),e.stroke(),e.restore()}function eJ(e,t){const{x:n,y:r,x2:a,y2:s}=e,i=tJ(e,t);let A,l;return t==="left"||t==="right"?(A={x:n+i,y:r},l={x:A.x,y:s}):(A={x:n,y:r+i},l={x:a,y:A.y}),{separatorStart:A,separatorEnd:l}}function tJ(e,t){const{width:n,height:r,options:a}=e,s=a.callout.margin+a.borderWidth/2;return t==="right"?n+s:t==="bottom"?r+s:-s}function nJ(e,t,n){const{y:r,width:a,height:s,options:i}=e,A=i.callout.start,l=rJ(t,i.callout);let c,u;return t==="left"||t==="right"?(c={x:n.x,y:r+ms(s,A)},u={x:c.x+l,y:c.y}):(c={x:n.x+ms(a,A),y:n.y},u={x:c.x,y:c.y+l}),{sideStart:c,sideEnd:u}}function rJ(e,t){const n=t.side;return e==="left"||e==="top"?-n:n}function aJ(e,t){const n=t.position;return J4.includes(n)?n:sJ(e,t)}function sJ(e,t){const{x:n,y:r,x2:a,y2:s,width:i,height:A,pointX:l,pointY:c,centerX:u,centerY:d,rotation:f}=e,p={x:u,y:d},h=t.start,m=ms(i,h),y=ms(A,h),g=[n,n+m,n+m,a],w=[r+y,s,r,s],B=[];for(let v=0;v<4;v++){const _=wi({x:g[v],y:w[v]},p,Mt(f));B.push({position:J4[v],distance:mo(_,{x:l,y:c})})}return B.sort((v,_)=>v.distance-_.distance)[0].position}function iJ({x:e,y:t,width:n,height:r,options:a}){const s=a.borderWidth/2,i=Ot(a.padding);return{x:e+i.left+s,y:t+i.top+s,width:n-i.left-i.right-a.borderWidth,height:r-i.top-i.bottom-a.borderWidth}}function oJ(e,t,n){const{pointX:r,pointY:a}=e,s=t.margin;let i=r,A=a;return n==="left"?i+=s:n==="right"?i-=s:n==="top"?A+=s:n==="bottom"&&(A-=s),e.inRange(i,A)}const I1=(e,t,n)=>({x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}),em=(e,t,n)=>I1(t,n,Math.abs((e-t.y)/(n.y-t.y))).x,I2=(e,t,n)=>I1(t,n,Math.abs((e-t.x)/(n.x-t.x))).y,lA=e=>e*e,AJ=(e,t,{x:n,y:r,x2:a,y2:s},i)=>i==="y"?{start:Math.min(r,s),end:Math.max(r,s),value:t}:{start:Math.min(n,a),end:Math.max(n,a),value:e},D2=(e,t,n,r)=>(1-r)*(1-r)*e+2*(1-r)*r*t+r*r*n,tm=(e,t,n,r)=>({x:D2(e.x,t.x,n.x,r),y:D2(e.y,t.y,n.y,r)}),U2=(e,t,n,r)=>2*(1-r)*(t-e)+2*r*(n-t),O2=(e,t,n,r)=>-Math.atan2(U2(e.x,t.x,n.x,r),U2(e.y,t.y,n.y,r))+.5*be;class zl extends gn{inRange(t,n,r,a){const s=this.options.borderWidth/2;if(r!=="x"&&r!=="y"){const i={mouseX:t,mouseY:n},{path:A,ctx:l}=this;if(A){gs(l,this.options);const{chart:u}=this.$context,d=t*u.currentDevicePixelRatio,f=n*u.currentDevicePixelRatio,p=l.isPointInStroke(A,d,f)||nm(this,i,a);return l.restore(),p}const c=lA(s);return dJ(this,i,c,a)||nm(this,i,a)}return lJ(this,{mouseX:t,mouseY:n},r,{hBorderWidth:s,useFinalPosition:a})}getCenterPoint(t){return Uo(this,t)}draw(t){const{x:n,y:r,x2:a,y2:s,cp:i,options:A}=this;if(t.save(),!gs(t,A))return t.restore();Oo(t,A);const l=Math.sqrt(Math.pow(a-n,2)+Math.pow(s-r,2));if(A.curve&&i)return BJ(t,this,i,l),t.restore();const{startOpts:c,endOpts:u,startAdjust:d,endAdjust:f}=Z4(this),p=Math.atan2(s-r,a-n);t.translate(n,r),t.rotate(p),t.beginPath(),t.moveTo(0+d,0),t.lineTo(l-f,0),t.shadowColor=A.borderShadowColor,t.stroke(),rm(t,0,d,c),rm(t,l,-f,u),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,n){const r=OX(t,n),{x:a,y:s,x2:i,y2:A}=r,l=cJ(r,t.chartArea),c=l?uJ({x:a,y:s},{x:i,y:A},t.chartArea):{x:a,y:s,x2:i,y2:A,width:Math.abs(i-a),height:Math.abs(A-s)};if(c.centerX=(i+a)/2,c.centerY=(A+s)/2,c.initProperties=$l(t,c,n),n.curve){const d={x:c.x,y:c.y},f={x:c.x2,y:c.y2};c.cp=yJ(c,n,mo(d,f))}const u=fJ(t,c,n.label);return u._visible=l,c.elements=[{type:"label",optionScope:"label",properties:u,initProperties:c.initProperties}],c}}zl.id="lineAnnotation";const L2={backgroundColor:void 0,backgroundShadowColor:void 0,borderColor:void 0,borderDash:void 0,borderDashOffset:void 0,borderShadowColor:void 0,borderWidth:void 0,display:void 0,fill:void 0,length:void 0,shadowBlur:void 0,shadowOffsetX:void 0,shadowOffsetY:void 0,width:void 0};zl.defaults={adjustScaleRange:!0,arrowHeads:{display:!1,end:Object.assign({},L2),fill:!1,length:12,start:Object.assign({},L2),width:6},borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:2,curve:!1,controlPoint:{y:"-50%"},display:!0,endValue:void 0,init:void 0,label:{backgroundColor:"rgba(0,0,0,0.8)",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderColor:"black",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:6,borderShadowColor:"transparent",borderWidth:0,callout:Object.assign({},Kl.defaults.callout),color:"#fff",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},scaleID:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,value:void 0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};zl.descriptors={arrowHeads:{start:{_fallback:!0},end:{_fallback:!0},_fallback:!0}};zl.defaultRoutes={borderColor:"color"};function lJ(e,{mouseX:t,mouseY:n},r,{hBorderWidth:a,useFinalPosition:s}){const i=AJ(t,n,e.getProps(["x","y","x2","y2"],s),r);return i.value>=i.start-a&&i.value<=i.end+a||nm(e,{mouseX:t,mouseY:n},s,r)}function cJ({x:e,y:t,x2:n,y2:r},{top:a,right:s,bottom:i,left:A}){return!(e<A&&n<A||e>s&&n>s||t<a&&r<a||t>i&&r>i)}function Q2({x:e,y:t},n,{top:r,right:a,bottom:s,left:i}){return e<i&&(t=I2(i,{x:e,y:t},n),e=i),e>a&&(t=I2(a,{x:e,y:t},n),e=a),t<r&&(e=em(r,{x:e,y:t},n),t=r),t>s&&(e=em(s,{x:e,y:t},n),t=s),{x:e,y:t}}function uJ(e,t,n){const{x:r,y:a}=Q2(e,t,n),{x:s,y:i}=Q2(t,e,n);return{x:r,y:a,x2:s,y2:i,width:Math.abs(s-r),height:Math.abs(i-a)}}function dJ(e,{mouseX:t,mouseY:n},r=$s,a){const{x:s,y:i,x2:A,y2:l}=e.getProps(["x","y","x2","y2"],a),c=A-s,u=l-i,d=lA(c)+lA(u),f=d===0?-1:((t-s)*c+(n-i)*u)/d;let p,h;return f<0?(p=s,h=i):f>1?(p=A,h=l):(p=s+f*c,h=i+f*u),lA(t-p)+lA(n-h)<=r}function nm(e,{mouseX:t,mouseY:n},r,a){const s=e.label;return s.options.display&&s.inRange(t,n,a,r)}function fJ(e,t,n){const r=n.borderWidth,a=Ot(n.padding),s=x1(e.ctx,n),i=s.width+a.width+r,A=s.height+a.height+r;return hJ(t,n,{width:i,height:A,padding:a},e.chartArea)}function pJ(e){const{x:t,y:n,x2:r,y2:a}=e,s=Math.atan2(a-n,r-t);return s>be/2?s-be:s<be/-2?s+be:s}function hJ(e,t,n,r){const{width:a,height:s,padding:i}=n,{xAdjust:A,yAdjust:l}=t,c={x:e.x,y:e.y},u={x:e.x2,y:e.y2},d=t.rotation==="auto"?pJ(e):Mt(t.rotation),f=mJ(a,s,d),p=gJ(e,t,{labelSize:f,padding:i},r),h=e.cp?tm(c,e.cp,u,p):I1(c,u,p),m={size:f.w,min:r.left,max:r.right,padding:i.left},y={size:f.h,min:r.top,max:r.bottom,padding:i.top},g=N2(h.x,m)+A,w=N2(h.y,y)+l;return{x:g-a/2,y:w-s/2,x2:g+a/2,y2:w+s/2,centerX:g,centerY:w,pointX:h.x,pointY:h.y,width:a,height:s,rotation:Td(d)}}function mJ(e,t,n){const r=Math.cos(n),a=Math.sin(n);return{w:Math.abs(e*r)+Math.abs(t*a),h:Math.abs(e*a)+Math.abs(t*r)}}function gJ(e,t,n,r){let a;const s=vJ(e,r);return t.position==="start"?a=M2({w:e.x2-e.x,h:e.y2-e.y},n,t,s):t.position==="end"?a=1-M2({w:e.x-e.x2,h:e.y-e.y2},n,t,s):a=k1(1,t.position),a}function M2(e,t,n,r){const{labelSize:a,padding:s}=t,i=e.w*r.dx,A=e.h*r.dy,l=i>0&&(a.w/2+s.left-r.x)/i,c=A>0&&(a.h/2+s.top-r.y)/A;return Zd(Math.max(l,c),0,.25)}function vJ(e,t){const{x:n,x2:r,y:a,y2:s}=e,i=Math.min(a,s)-t.top,A=Math.min(n,r)-t.left,l=t.bottom-Math.max(a,s),c=t.right-Math.max(n,r);return{x:Math.min(A,c),y:Math.min(i,l),dx:A<=c?1:-1,dy:i<=l?1:-1}}function N2(e,t){const{size:n,min:r,max:a,padding:s}=t,i=n/2;return n>a-r?(a+r)/2:(r>=e-s-i&&(e=r+s+i),a<=e+s+i&&(e=a-s-i),e)}function Z4(e){const t=e.options,n=t.arrowHeads&&t.arrowHeads.start,r=t.arrowHeads&&t.arrowHeads.end;return{startOpts:n,endOpts:r,startAdjust:P2(e,n),endAdjust:P2(e,r)}}function P2(e,t){if(!t||!t.display)return 0;const{length:n,width:r}=t,a=e.options.borderWidth/2,s={x:n,y:r+a};return Math.abs(em(0,s,{x:0,y:a}))}function rm(e,t,n,r){if(!r||!r.display)return;const{length:a,width:s,fill:i,backgroundColor:A,borderColor:l}=r,c=Math.abs(t-a)+n;e.beginPath(),Oo(e,r),gs(e,r),e.moveTo(c,-s),e.lineTo(t+n,0),e.lineTo(c,s),i===!0?(e.fillStyle=A||l,e.closePath(),e.fill(),e.shadowColor="transparent"):e.shadowColor=r.borderShadowColor,e.stroke()}function yJ(e,t,n){const{x:r,y:a,x2:s,y2:i,centerX:A,centerY:l}=e,c=Math.atan2(i-a,s-r),u=E1(t.controlPoint,0),d={x:A+ms(n,u.x,!1),y:l+ms(n,u.y,!1)};return wi(d,{x:A,y:l},c)}function R2(e,{x:t,y:n},{angle:r,adjust:a},s){!s||!s.display||(e.save(),e.translate(t,n),e.rotate(r),rm(e,0,-a,s),e.restore())}function BJ(e,t,n,r){const{x:a,y:s,x2:i,y2:A,options:l}=t,{startOpts:c,endOpts:u,startAdjust:d,endAdjust:f}=Z4(t),p={x:a,y:s},h={x:i,y:A},m=O2(p,n,h,0),y=O2(p,n,h,1)-be,g=tm(p,n,h,d/r),w=tm(p,n,h,1-f/r),B=new Path2D;e.beginPath(),B.moveTo(g.x,g.y),B.quadraticCurveTo(n.x,n.y,w.x,w.y),e.shadowColor=l.borderShadowColor,e.stroke(B),t.path=B,t.ctx=e,R2(e,g,{angle:m,adjust:d},c),R2(e,w,{angle:y,adjust:f},u)}class Wl extends gn{inRange(t,n,r,a){const s=this.options.rotation,i=this.options.borderWidth;if(r!=="x"&&r!=="y")return wJ({x:t,y:n},this.getProps(["width","height","centerX","centerY"],a),s,i);const{x:A,y:l,x2:c,y2:u}=this.getProps(["x","y","x2","y2"],a),d=i/2,f=r==="y"?{start:l,end:u}:{start:A,end:c},p=wi({x:t,y:n},this.getCenterPoint(a),Mt(-s));return p[r]>=f.start-d-$s&&p[r]<=f.end+d+$s}getCenterPoint(t){return Uo(this,t)}draw(t){const{width:n,height:r,centerX:a,centerY:s,options:i}=this;t.save(),S1(t,this.getCenterPoint(),i.rotation),Oo(t,this.options),t.beginPath(),t.fillStyle=i.backgroundColor;const A=gs(t,i);t.ellipse(a,s,r/2,n/2,be/2,0,2*be),t.fill(),A&&(t.shadowColor=i.borderShadowColor,t.stroke()),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,n){return Y4(t,n,!0)}}Wl.id="ellipseAnnotation";Wl.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,label:Object.assign({},Lo.defaults.label),rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};Wl.defaultRoutes={borderColor:"color",backgroundColor:"color"};Wl.descriptors={label:{_fallback:!0}};function wJ(e,t,n,r){const{width:a,height:s,centerX:i,centerY:A}=t,l=a/2,c=s/2;if(l<=0||c<=0)return!1;const u=Mt(n||0),d=r/2||0,f=Math.cos(u),p=Math.sin(u),h=Math.pow(f*(e.x-i)+p*(e.y-A),2),m=Math.pow(p*(e.x-i)-f*(e.y-A),2);return h/Math.pow(l+d,2)+m/Math.pow(c+d,2)<=1.0001}class tf extends gn{inRange(t,n,r,a){const{x:s,y:i,x2:A,y2:l,width:c}=this.getProps(["x","y","x2","y2","width"],a),u=this.options.borderWidth;if(r!=="x"&&r!=="y")return BX({x:t,y:n},this.getCenterPoint(a),c/2,u);const d=u/2,f=r==="y"?{start:i,end:l,value:n}:{start:s,end:A,value:t};return f.value>=f.start-d&&f.value<=f.end+d}getCenterPoint(t){return Uo(this,t)}draw(t){const n=this.options,r=n.borderWidth;if(n.radius<.1)return;t.save(),t.fillStyle=n.backgroundColor,Oo(t,n);const a=gs(t,n);xX(t,this,this.centerX,this.centerY),a&&!ef(n.pointStyle)&&(t.shadowColor=n.borderShadowColor,t.stroke()),t.restore(),n.borderWidth=r}resolveElementProperties(t,n){const r=j4(t,n);return r.initProperties=$l(t,r,n,!0),r}}tf.id="pointAnnotation";tf.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,pointStyle:"circle",radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0};tf.defaultRoutes={borderColor:"color",backgroundColor:"color"};class nf extends gn{inRange(t,n,r,a){if(r!=="x"&&r!=="y")return this.options.radius>=.1&&this.elements.length>1&&_J(this.elements,t,n,a);const s=wi({x:t,y:n},this.getCenterPoint(a),Mt(-this.options.rotation)),i=this.elements.map(c=>r==="y"?c.bY:c.bX),A=Math.min(...i),l=Math.max(...i);return s[r]>=A&&s[r]<=l}getCenterPoint(t){return Uo(this,t)}draw(t){const{elements:n,options:r}=this;t.save(),t.beginPath(),t.fillStyle=r.backgroundColor,Oo(t,r);const a=gs(t,r);let s=!0;for(const i of n)s?(t.moveTo(i.x,i.y),s=!1):t.lineTo(i.x,i.y);t.closePath(),t.fill(),a&&(t.shadowColor=r.borderShadowColor,t.stroke()),t.restore()}resolveElementProperties(t,n){const r=j4(t,n),{sides:a,rotation:s}=n,i=[],A=2*be/a;let l=s*Lg;for(let c=0;c<a;c++,l+=A){const u=bJ(r,n,l);u.initProperties=$l(t,r,n),i.push(u)}return r.elements=i,r}}nf.id="polygonAnnotation";nf.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,point:{radius:0},radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,sides:3,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0};nf.defaultRoutes={borderColor:"color",backgroundColor:"color"};function bJ({centerX:e,centerY:t},{radius:n,borderWidth:r},a){const s=r/2,i=Math.sin(a),A=Math.cos(a),l={x:e+i*n,y:t-A*n};return{type:"point",optionScope:"point",properties:{x:l.x,y:l.y,centerX:l.x,centerY:l.y,bX:e+i*(n+s),bY:t-A*(n+s)}}}function _J(e,t,n,r){let a=!1,s=e[e.length-1].getProps(["bX","bY"],r);for(const i of e){const A=i.getProps(["bX","bY"],r);A.bY>n!=s.bY>n&&t<(s.bX-A.bX)*(n-A.bY)/(s.bY-A.bY)+A.bX&&(a=!a),s=A}return a}const as={box:Lo,ellipse:Wl,label:Kl,line:zl,point:tf,polygon:nf};Object.keys(as).forEach(e=>{ot.describe(`elements.${as[e].id}`,{_fallback:"plugins.annotation.common"})});const CJ={update:Object.assign},kJ=T1.concat(Ju),H2=(e,t)=>ke(t)?sm(e,t):e,am=e=>e==="color"||e==="font";function D1(e="line"){return as[e]?e:(console.warn(`Unknown annotation type: '${e}', defaulting to 'line'`),"line")}function EJ(e,t,n,r){const a=xJ(e,n.animations,r),s=t.annotations,i=IJ(t.elements,s);for(let A=0;A<s.length;A++){const l=s[A],c=e3(i,A,l.type),u=l.setContext(TJ(e,c,l)),d=c.resolveElementProperties(e,u);d.skip=SJ(d),"elements"in d&&(FJ(c,d.elements,u,a),delete d.elements),Tn(c.x)||Object.assign(c,d),Object.assign(c,d.initProperties),d.options=t3(u),a.update(c,d)}}function SJ(e){return isNaN(e.x)||isNaN(e.y)}function xJ(e,t,n){return n==="reset"||n==="none"||n==="resize"?CJ:new zg(e,t)}function FJ(e,t,n,r){const a=e.elements||(e.elements=[]);a.length=t.length;for(let s=0;s<t.length;s++){const i=t[s],A=i.properties,l=e3(a,s,i.type,i.initProperties),c=n[i.optionScope].override(i);A.options=t3(c),r.update(l,A)}}function e3(e,t,n,r){const a=as[D1(n)];let s=e[t];return(!s||!(s instanceof a))&&(s=e[t]=new a,Object.assign(s,r)),s}function t3(e){const t=as[D1(e.type)],n={};n.id=e.id,n.type=e.type,n.drawTime=e.drawTime,Object.assign(n,sm(e,t.defaults),sm(e,t.defaultRoutes));for(const r of kJ)n[r]=e[r];return n}function sm(e,t){const n={};for(const r of Object.keys(t)){const a=t[r],s=e[r];am(r)&&Ve(s)?n[r]=s.map(i=>H2(i,a)):n[r]=H2(s,a)}return n}function TJ(e,t,n){return t.$context||(t.$context=Object.assign(Object.create(e.getContext()),{element:t,id:n.id,type:"annotation"}))}function IJ(e,t){const n=t.length,r=e.length;if(r<n){const a=n-r;e.splice(r,0,...new Array(a))}else r>n&&e.splice(n,r-n);return e}var DJ="2.2.1";const Ma=new Map,UJ=T1.concat(Ju);var bi={id:"annotation",version:DJ,beforeRegister(){wX("chart.js","3.7",He.version)},afterRegister(){He.register(as)},afterUnregister(){He.unregister(as)},beforeInit(e){Ma.set(e,{annotations:[],elements:[],visibleElements:[],listeners:{},listened:!1,moveListened:!1,hooks:{},hooked:!1,hovered:[]})},beforeUpdate(e,t,n){const r=Ma.get(e),a=r.annotations=[];let s=n.annotations;ke(s)?Object.keys(s).forEach(i=>{const A=s[i];ke(A)&&(A.id=i,a.push(A))}):Ve(s)&&a.push(...s),GX(a,e.scales)},afterDataLimits(e,t){const n=Ma.get(e);WX(e,t.scale,n.annotations.filter(r=>r.display&&r.adjustScaleRange))},afterUpdate(e,t,n){const r=Ma.get(e);HX(e,r,n),EJ(e,r,n,t.mode),r.visibleElements=r.elements.filter(a=>!a.skip&&a.options.display),zX(e,r,n)},beforeDatasetsDraw(e,t,n){Fc(e,"beforeDatasetsDraw",n.clip)},afterDatasetsDraw(e,t,n){Fc(e,"afterDatasetsDraw",n.clip)},beforeDraw(e,t,n){Fc(e,"beforeDraw",n.clip)},afterDraw(e,t,n){Fc(e,"afterDraw",n.clip)},beforeEvent(e,t,n){const r=Ma.get(e);VX(r,t.event,n)&&(t.changed=!0)},afterDestroy(e){Ma.delete(e)},_getState(e){return Ma.get(e)},defaults:{animations:{numbers:{properties:["x","y","x2","y2","width","height","centerX","centerY","pointX","pointY","radius"],type:"number"}},clip:!0,interaction:{mode:void 0,axis:void 0,intersect:void 0},common:{drawTime:"afterDatasetsDraw",init:!1,label:{}}},descriptors:{_indexable:!1,_scriptable:e=>!UJ.includes(e)&&e!=="init",annotations:{_allKeys:!1,_fallback:(e,t)=>`elements.${as[D1(t.type)].id}`},interaction:{_fallback:!0},common:{label:{_indexable:am,_fallback:!0},_indexable:am}},additionalOptionScopes:[""]};function Fc(e,t,n){const{ctx:r,chartArea:a}=e,s=Ma.get(e);n&&Ol(r,a);const i=OJ(s.visibleElements,t).sort((A,l)=>A.element.options.z-l.element.options.z);for(const A of i)LJ(r,a,s,A);n&&Ll(r)}function OJ(e,t){const n=[];for(const r of e)if(r.options.drawTime===t&&n.push({element:r,main:!0}),r.elements&&r.elements.length)for(const a of r.elements)a.options.display&&a.options.drawTime===t&&n.push({element:a});return n}function LJ(e,t,n,r){const a=r.element;r.main?(S2(n,a,"beforeDraw"),a.draw(e,t),S2(n,a,"afterDraw")):a.draw(e,t)}const Gl=o.defineComponent({__name:"ManaCurveChart",props:WW,setup(e){const{t}=Y(),n=o.ref();He.register(...Rr),He.register(bi),He.register(Jd);const r=e,a={topLeft:9999,topRight:9999,bottomLeft:9999,bottomRight:9999},s=o.computed(()=>["0","1","2","3","4","5","6","7","8","9","+"]),i=o.computed(()=>{if(console.log(r.deck),r.deck)return r.deck;if(console.log(r.deckCode),r.deckCode)return Et(r.deckCode);throw console.log("props.deckCode"),new Error("Deck or DeckCode must be defined")}),A=o.computed(()=>{const u={},d=cd(i.value);for(const f of d)u[f]=s.value.map(()=>0);for(const f in i.value){const p=mn().cardJsonObject[f];if(p===void 0)continue;const h=Im(p,d);if(p.cost>10){u[h][10]+=i.value[f];continue}u[h][p.cost]+=i.value[f]}return u}),l=o.computed(()=>{const u=[];for(let d=0;d<Object.keys(A.value).length;d++){const f=Object.keys(A.value)[d];u.push({backgroundColor:Ww(f),data:A.value[f],borderRadius:a,borderSkipped:!1,label:Tm(f),barPercentage:.5},{backgroundColor:"transparent",data:A.value[f].map(p=>p>0?1:0)})}return{labels:s.value,datasets:u}}),c={responsive:!0,animation:r.animation,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:r.tooltipsEnabled,mode:"index",intersect:!1,filter(u){return u.datasetIndex%2===0&&u.formattedValue!=="0"},callbacks:{title(u){return u.length===0?"":t("deck.numManaCards",{num:u[0].label==="+"?"10+":u[0].label})},footer(u){if(u.length===0)return"";let d=0;for(let f=0;f<u[0].chart.data.datasets.length;f++)f%2!==1&&(d+=u[0].chart.data.datasets[f].data[u[0].dataIndex]);return`${t("general.total")}: ${d}`}}},datalabels:{align:"end",anchor:"end",offset:r.dataLabelsOffset,formatter(u,d){let f=0;for(let p=0;p<d.chart.data.datasets.length;p++)p%2!==1&&(f+=d.chart.data.datasets[p].data[d.dataIndex]);return f||""},display(u){return r.showDataLabels?u.datasetIndex===u.chart.data.datasets.length-1:!1}}},scales:{x:{stacked:!0,grid:{display:!1},display:r.displayXScale},y:{stacked:!0,grid:{display:!1},display:!1}},layout:{padding:{top:r.paddingTop}}};return(u,d)=>(o.openBlock(),o.createBlock(o.unref(Pd),{ref_key:"chart",ref:n,"chart-data":l.value,options:c},null,8,["chart-data"]))}}),QJ={playerId:{type:Number,required:!0,default:1},playerName:{type:String,required:!0,default:""},selectedIconCard:{type:String,required:!1,default:void 0},selectedBannerColor:{type:String,required:!1,default:void 0},createdAt:{type:Date,required:!0,default:new Date},updatedAt:{type:Date,required:!0,default:new Date}},MJ={class:"player"},NJ={class:"row"},PJ={class:"prompt"},RJ={class:"value"},HJ={class:"row"},VJ={class:"prompt"},$J={class:"value"},KJ=o.defineComponent({__name:"BuiltDeckHighlight",props:QJ,setup(e){const t=o.inject(Nr),{t:n}=Y(),r=e;return(a,s)=>{const i=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(ut,{class:"archetype-side-panel-highlight"},{default:o.withCtx(()=>[o.createElementVNode("div",MJ,[o.createVNode(Ta,{class:"circle-card-item","card-code-prop":r.selectedIconCard??"05BC160","ignore-card-item":!0,"color-override":r.selectedBannerColor,"router-link":o.unref(_e)().callbacks.playerIdRouterLinkCallback(r.playerId)},null,8,["card-code-prop","color-override","router-link"]),o.createVNode(i,{to:o.unref(_e)().callbacks.playerIdRouterLinkCallback(r.playerId),class:"name"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(r.playerName),1)]),_:1},8,["to"])]),o.createElementVNode("div",NJ,[o.createElementVNode("div",PJ,o.toDisplayString(o.unref(n)("general.createdAt")),1),o.createElementVNode("div",RJ,o.toDisplayString(o.unref(t)(r.createdAt).fromNow()),1)]),o.createElementVNode("div",HJ,[o.createElementVNode("div",VJ,o.toDisplayString(o.unref(n)("general.updatedAt")),1),o.createElementVNode("div",$J,o.toDisplayString(o.unref(t)(r.updatedAt).fromNow()),1)])]),_:1})}}});const zJ=Q(KJ,[["__scopeId","data-v-9743903e"]]),WJ=o.defineComponent({__name:"DeckSidePanel",props:tN,emits:["update:filters"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.reactive(r.filters),i=o.computed(()=>SS(r.deckcode)),A=o.computed(()=>Object.keys(Et(r.deckcode)).filter(u=>ro(mn().cardJsonObject[u]))),l=o.computed(()=>{var u;return(u=Be().dataJson.formats[s.formatFilters[0]??"Standard"])==null?void 0:u.availableQueues});o.watch(s,()=>{a("update:filters",s)});function c(){for(const[,u]of Object.entries(s))u.splice(0)}return(u,d)=>(o.openBlock(),o.createBlock(pi,{"filter-object":r.filters,"onClear:filterObject":c},{default:o.withCtx(()=>[r.builtDeckProps?(o.openBlock(),o.createBlock(zJ,o.normalizeProps(o.mergeProps({key:0},r.builtDeckProps)),null,16)):o.createCommentVNode("",!0),o.createVNode(Fd,{"card-codes":A.value,regions:i.value},null,8,["card-codes","regions"]),o.createVNode(ut,{title:o.unref(n)("general.regions")},{default:o.withCtx(()=>[o.createVNode(Eg,{"deck-code":r.deckcode,"describe-regions":!0},null,8,["deck-code"])]),_:1},8,["title"]),o.createVNode(ut,{title:o.unref(n)("general.manaCurve")},{default:o.withCtx(()=>[o.createVNode(Gl,{class:"mana-curve-chart","deck-code":r.deckcode,"padding-top":5,"show-data-labels":!0,"data-labels-offset":-5,"tooltips-enabled":!0,"display-x-scale":!0,animation:void 0},null,8,["deck-code"])]),_:1},8,["title"]),o.createVNode(ut,{title:o.unref(n)("general.type")},{default:o.withCtx(()=>[o.createVNode(Wu,{class:"side-panel-chart","deck-code":r.deckcode,info:"typeRef"},null,8,["deck-code"])]),_:1},8,["title"]),o.createVNode(ut,{title:o.unref(n)("general.rarity")},{default:o.withCtx(()=>[o.createVNode(Wu,{class:"side-panel-chart","deck-code":r.deckcode,info:"rarityRef"},null,8,["deck-code"])]),_:1},8,["title"]),o.createVNode(xo,{"filter-array":s.sampleSizeFilters,"onUpdate:filterArray":d[0]||(d[0]=f=>s.sampleSizeFilters=f)},null,8,["filter-array"]),o.createVNode(fi,{"filter-array":s.timeFilters,"onUpdate:filterArray":d[1]||(d[1]=f=>s.timeFilters=f)},null,8,["filter-array"]),o.createVNode(Fo,{"filter-array":s.serverFilters,"onUpdate:filterArray":d[2]||(d[2]=f=>s.serverFilters=f)},null,8,["filter-array"]),o.createVNode(Sl,{"filter-array":s.formatFilters,"onUpdate:filterArray":d[3]||(d[3]=f=>s.formatFilters=f)},null,8,["filter-array"]),o.createVNode(xl,{"filter-array":s.queueFilters,"onUpdate:filterArray":d[4]||(d[4]=f=>s.queueFilters=f),"available-queues":l.value},null,8,["filter-array","available-queues"])]),_:1},8,["filter-object"]))}});const n3=Q(WJ,[["__scopeId","data-v-b95c4f38"]]),GJ={cardsProp:{type:Object,required:!1,default:void 0},deck:{type:Object,required:!0,default:{}}},jJ={class:"deck-summary"},YJ={class:"deck-cards"},qJ={class:"champions-landmarks column"},XJ={key:0,class:"type"},JJ={class:"type-heading"},ZJ={class:"title"},eZ={class:"type-quantity"},tZ={class:"card-container"},nZ={key:1,class:"type column"},rZ={class:"type-heading"},aZ={class:"title"},sZ={class:"type-quantity"},iZ={class:"card-container"},oZ={key:2,class:"type column"},AZ={class:"type-heading"},lZ={class:"title"},cZ={class:"type-quantity"},uZ={class:"card-container"},dZ={key:0,class:"type column"},fZ={class:"type-heading"},pZ={class:"title"},hZ={class:"type-quantity"},mZ={class:"card-container"},gZ={key:1,class:"type"},vZ={class:"type-heading"},yZ={class:"title"},BZ={class:"type-quantity"},wZ={class:"card-container"},bZ=o.defineComponent({__name:"DeckSummary",props:GJ,setup(e){const t=e,n=o.computed(()=>t.cardsProp?t.cardsProp:ln(t.deck)),r=o.computed(()=>vl(n.value)),a=o.computed(()=>n.value.filter(u=>ro(u))),s=o.computed(()=>n.value.filter(u=>u.typeRef==="Unit"&&u.supertype==="")),i=o.computed(()=>n.value.filter(u=>u.typeRef==="Spell")),A=o.computed(()=>n.value.filter(u=>u.typeRef==="Landmark")),l=o.computed(()=>n.value.filter(u=>u.typeRef==="Equipment"));function c(u){return u.reduce((d,f)=>d+t.deck[f.cardCode],0)}return(u,d)=>{const f=o.resolveDirective("t");return o.openBlock(),o.createElementBlock("div",jJ,[o.createElementVNode("div",YJ,[o.createElementVNode("div",qJ,[a.value.length>0?(o.openBlock(),o.createElementBlock("div",XJ,[o.createElementVNode("div",JJ,[d[0]||(d[0]=o.createElementVNode("img",{class:"icon",src:"https://lor.gg/storage/icons/champion.svg"},null,-1)),o.withDirectives(o.createElementVNode("div",ZJ,null,512),[[f,"general.champions"]]),o.createElementVNode("p",eZ,o.toDisplayString(c(a.value)),1)]),o.createElementVNode("div",tZ,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.value,p=>(o.openBlock(),o.createBlock(bt,{key:p.cardCode,"card-prop":p,color:o.unref(Ns)(p,r.value,!0),name:p.name,"mana-number":p.cost,"quantity-number":t.deck[p.cardCode],"maintain-aspect-ratio":!0,"router-link":o.unref(_e)().callbacks.cardCodeRouterLinkCallback(p.cardCode)},null,8,["card-prop","color","name","mana-number","quantity-number","router-link"]))),128))])])):o.createCommentVNode("",!0),A.value.length>0?(o.openBlock(),o.createElementBlock("div",nZ,[o.createElementVNode("div",rZ,[d[1]||(d[1]=o.createElementVNode("img",{class:"icon",src:"https://lor.gg/storage/icons/landmark.svg"},null,-1)),o.withDirectives(o.createElementVNode("div",aZ,null,512),[[f,"general.landmarks"]]),o.createElementVNode("p",sZ,o.toDisplayString(c(A.value)),1)]),o.createElementVNode("div",iZ,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(A.value,p=>(o.openBlock(),o.createBlock(bt,{key:p.cardCode,"card-prop":p,color:o.unref(Ns)(p,r.value,!0),name:p.name,"mana-number":p.cost,"quantity-number":t.deck[p.cardCode],"maintain-aspect-ratio":!0,"router-link":o.unref(_e)().callbacks.cardCodeRouterLinkCallback(p.cardCode)},null,8,["card-prop","color","name","mana-number","quantity-number","router-link"]))),128))])])):o.createCommentVNode("",!0),l.value.length>0?(o.openBlock(),o.createElementBlock("div",oZ,[o.createElementVNode("div",AZ,[d[2]||(d[2]=o.createElementVNode("img",{class:"icon",src:"https://lor.gg/storage/icons/equipment.svg"},null,-1)),o.withDirectives(o.createElementVNode("div",lZ,null,512),[[f,"general.equipments"]]),o.createElementVNode("p",cZ,o.toDisplayString(c(l.value)),1)]),o.createElementVNode("div",uZ,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,p=>(o.openBlock(),o.createBlock(bt,{key:p.cardCode,"card-prop":p,color:o.unref(Ns)(p,r.value,!0),name:p.name,"mana-number":p.cost,"quantity-number":t.deck[p.cardCode],"maintain-aspect-ratio":!0,"router-link":o.unref(_e)().callbacks.cardCodeRouterLinkCallback(p.cardCode)},null,8,["card-prop","color","name","mana-number","quantity-number","router-link"]))),128))])])):o.createCommentVNode("",!0)]),s.value.length>0?(o.openBlock(),o.createElementBlock("div",dZ,[o.createElementVNode("div",fZ,[d[3]||(d[3]=o.createElementVNode("img",{class:"icon",src:"https://lor.gg/storage/icons/follower.svg"},null,-1)),o.withDirectives(o.createElementVNode("div",pZ,null,512),[[f,"general.followers"]]),o.createElementVNode("p",hZ,o.toDisplayString(c(s.value)),1)]),o.createElementVNode("div",mZ,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,p=>(o.openBlock(),o.createBlock(bt,{key:p.cardCode,"card-prop":p,color:o.unref(Ns)(p,r.value,!0),name:p.name,"mana-number":p.cost,"quantity-number":t.deck[p.cardCode],"maintain-aspect-ratio":!0,"router-link":o.unref(_e)().callbacks.cardCodeRouterLinkCallback(p.cardCode)},null,8,["card-prop","color","name","mana-number","quantity-number","router-link"]))),128))])])):o.createCommentVNode("",!0),i.value.length>0?(o.openBlock(),o.createElementBlock("div",gZ,[o.createElementVNode("div",vZ,[d[4]||(d[4]=o.createElementVNode("img",{class:"icon",src:"https://lor.gg/storage/icons/spell.svg"},null,-1)),o.withDirectives(o.createElementVNode("div",yZ,null,512),[[f,"general.spells"]]),o.createElementVNode("p",BZ,o.toDisplayString(c(i.value)),1)]),o.createElementVNode("div",wZ,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,p=>(o.openBlock(),o.createBlock(bt,{key:p.cardCode,"card-prop":p,color:o.unref(Ns)(p,r.value,!0),name:p.name,"mana-number":p.cost,"quantity-number":t.deck[p.cardCode],"maintain-aspect-ratio":!0,"router-link":o.unref(_e)().callbacks.cardCodeRouterLinkCallback(p.cardCode)},null,8,["card-prop","color","name","mana-number","quantity-number","router-link"]))),128))])])):o.createCommentVNode("",!0)])])}}});const rf=Q(bZ,[["__scopeId","data-v-b253a25c"]]),_Z={deckCode:{type:String,required:!0,default:""}},af=o.defineComponent({__name:"CopyDeckButton",props:_Z,setup(e){const{t}=Y(),n=e,r=o.ref(null);let a,s;o.onMounted(()=>{s=tt(r.value,{content:t("deck.copyDeckCode"),arrow:!0}),a=tt(r.value,{content:t("deck.deckCodeCopied"),trigger:"manual",arrow:!0})});function i(){FS(n.deckCode),s.hide(),a.show()}return(A,l)=>(o.openBlock(),o.createElementBlock("button",{ref_key:"button",ref:r,class:"circle-button",onClick:i},[o.createVNode(o.unref(Se),{icon:"copy",class:"icon"})],512))}}),CZ={deckId:{type:Number,required:!0,default:-1}},U1=o.defineComponent({__name:"DeleteDeckButton",props:CZ,setup(e){const{t}=Y(),n=o.ref(null);return o.onMounted(()=>{tt(n.value,{content:t("deck.deleteDeck"),arrow:!0})}),(r,a)=>(o.openBlock(),o.createElementBlock("button",{ref_key:"button",ref:n,class:"circle-button"},[o.createVNode(o.unref(Se),{icon:"trash-alt",class:"icon"})],512))}}),O1=o.defineComponent({__name:"EditDeckNameButton",setup(e){const{t}=Y(),n=o.ref(null);return o.onMounted(()=>{tt(n.value,{content:t("deck.editDeckName"),arrow:!0})}),(r,a)=>(o.openBlock(),o.createElementBlock("button",{ref_key:"button",ref:n,class:"circle-button"},[o.createVNode(o.unref(Se),{icon:"pencil-alt",class:"icon"})],512))}}),kZ={routerLink:{type:Object,required:!0,default:{path:"/404"}}},EZ=o.defineComponent({__name:"OpenArchetypePageButton",props:kZ,setup(e){const{t}=Y(),n=e,r=o.ref(null);return o.onMounted(()=>{tt(r.value,{content:t("deck.openArchetypePage"),arrow:!0})}),(a,s)=>{const i=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(i,{to:n.routerLink},{default:o.withCtx(()=>[o.createElementVNode("button",{ref_key:"button",ref:r,class:"circle-button"},o.toDisplayString(o.unref(t)("archetype.abbreviation")),513)]),_:1},8,["to"])}}});const L1=Q(EZ,[["__scopeId","data-v-b921ee68"]]),SZ={routerLink:{type:Object,required:!0,default:{path:"/404"}}},Q1=o.defineComponent({__name:"OpenInDeckBuilderButton",props:SZ,setup(e){const{t}=Y(),n=e,r=o.ref(null);return o.onMounted(()=>{tt(r.value,{content:t("deck.openInDeckBuilder"),arrow:!0})}),(a,s)=>{const i=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(i,{to:n.routerLink},{default:o.withCtx(()=>[o.createElementVNode("button",{ref_key:"button",ref:r,class:"circle-button"},[o.createVNode(o.unref(Se),{icon:"hammer",class:"icon"})],512)]),_:1},8,["to"])}}}),xZ={deck:{type:Object,required:!0,default:{}}},FZ={deck:{type:Object,required:!0,default:{}}},TZ={class:"simulate-mulligan"},IZ={class:"cards"},DZ={class:"buttons"},UZ=o.defineComponent({__name:"SimulateMulligan",props:FZ,setup(e){const{t}=Y(),n=e,r=o.computed(()=>{const c=[];for(const u in n.deck)for(let d=0;d<n.deck[u];d++)c.push(u);return c}),a=o.computed(()=>{const c=Array.from(r.value);for(const u of s.value)u!==null&&c.splice(c.indexOf(u.cardCode),1);return c}),s=o.ref([null,null,null,null]);function i(){s.value.fill(null),l()}function A(){var c;for(let u=0;u<s.value.length;u++)s.value[u]===null||!((c=s.value[u])!=null&&c.isSelected)||(s.value[u]=null);l()}function l(){for(;s.value.some(c=>c===null);)s.value[s.value.indexOf(null)]={cardCode:a.value[CS(0,a.value.length)],isSelected:!1};console.log(s.value)}return l(),(c,u)=>(o.openBlock(),o.createElementBlock("div",TZ,[o.createElementVNode("div",IZ,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value.filter(d=>d!==null),(d,f)=>(o.openBlock(),o.createBlock(si,{key:d.cardCode+f,"card-code-prop":d.cardCode,"is-root":!0,style:o.normalizeStyle(d.isSelected?{opacity:.5}:null),onClick:p=>d.isSelected=!d.isSelected},null,8,["card-code-prop","style","onClick"]))),128))]),o.createElementVNode("div",DZ,[o.createElementVNode("button",{class:"primary-button",onClick:i},o.toDisplayString(o.unref(t)("deck.replaceAllCards")),1),o.createElementVNode("button",{class:"primary-button",onClick:A},o.toDisplayString(o.unref(t)("deck.replaceSelectedCards")),1)])]))}});const M1=Q(UZ,[["__scopeId","data-v-e3540f85"]]),OZ={class:"simulate-mulligan-wrapper"},LZ=o.defineComponent({__name:"SimulateMulliganButton",props:xZ,setup(e){const{t}=Y(),n=e,r=o.ref(null),a=o.ref(!1);return o.onMounted(()=>{tt(r.value,{content:t("deck.simulateMulligan"),arrow:!0})}),(s,i)=>(o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("button",{ref_key:"button",ref:r,class:"circle-button",onClick:i[0]||(i[0]=A=>a.value=!0)},[o.createVNode(o.unref(Se),{icon:"hand-paper"})],512),o.createVNode(Lr,{"show-modal":a.value,"onUpdate:showModal":i[1]||(i[1]=A=>a.value=A)},{default:o.withCtx(()=>[o.createElementVNode("div",OZ,[o.createVNode(M1,{deck:n.deck},null,8,["deck"])])]),_:1},8,["show-modal"])]))}});const sf=Q(LZ,[["__scopeId","data-v-63aa9043"]]),QZ={deckIsPrivate:{type:Boolean,required:!0,default:!0}},N1=o.defineComponent({__name:"UpdateDeckPrivacyButton",props:QZ,setup(e){const{t}=Y(),n=e,r=o.ref(null);let a;return o.onMounted(()=>{a=tt(r.value,{content:`${t("deck.updatePrivacy")}:
|
|
672
672
|
${n.deckIsPrivate?t("deck.deckPrivate"):t("deck.deckPublic")}`,arrow:!0})}),o.watch(()=>n.deckIsPrivate,s=>{a.setContent(`${t("deck.updatePrivacy")}:
|
|
673
673
|
${t(s?"deck.deckPrivate":"deck.deckPublic")}`)}),(s,i)=>(o.openBlock(),o.createElementBlock("button",{ref_key:"button",ref:r,class:"circle-button"},[o.createVNode(o.unref(Se),{icon:n.deckIsPrivate?"lock":"unlock",class:"icon"},null,8,["icon"])],512))}}),MZ={},NZ={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 496"};function PZ(e,t){return o.openBlock(),o.createElementBlock("svg",NZ,[...t[0]||(t[0]=[o.createElementVNode("path",{d:"M75.8 25.4a3527.2 3527.2 0 0 1-32.2 16.2A429.1 429.1 0 0 0 24.8 51a117.6 117.6 0 0 0-8.6 4.4c-5.7 2.7-7.5 8-5.8 17 .2 1.2.6 4.9.8 8.2l.8 8.8c.2 1.5.4 4.2.4 6 0 1.8.2 3.8.4 4.6.2.8.5 3.8.6 6.8.1 3 .4 6 .6 6.6.2.7.5 3.5.6 6.3 0 2.7.4 6.3.6 7.8l.8 8.7c.2 3.3.7 8.2 1 10.8.3 2.6.6 6.2.6 8 0 1.8.2 3.8.4 4.6.2.7.5 3.7.6 6.6.2 2.8.4 6 .6 7 .2.8.5 4 .6 7.1.2 3 .4 6 .6 6.7.2.7.5 3.7.6 6.8.1 3 .3 5.7.5 6 .2.3.6 5 1.3 14.4C24 231 24 231 29.7 235.6A74.8 74.8 0 0 1 50 259.2c4.9 10.3 5.3 24 1 36.6l-1.5 5.3c0 .3-.4 1.3-1 2.2L47 307c-.3 1-1.4 3.2-2.3 4.7a43 43 0 0 1-6.2 9.3c-3.8 4.5-4.8 8.2-3.7 13 .4 2 1.4 10.4 1.8 15.6.2 1.9.4 3.8.6 4.3.2.4.6 3.4.8 6.5.3 3.2.7 6.2.9 6.8.2.5.5 3.4.7 6.4.2 3 .6 6 .8 6.6.2.6.6 3.3.8 6 .4 5 .9 8.6 1.8 14.2.3 2 .6 4.4.6 5.5 0 1.1.3 4 .8 6.6l1 7.4c.5 6.2 2.2 8.1 9.8 10.8a99.5 99.5 0 0 1 10 4c1.7.5 3.2 1.1 3.4 1.3.7.5 6.2 2.8 6.8 2.8.3 0 1.7.5 3 1.2l4.2 1.6 5.8 2.4a82.2 82.2 0 0 0 8.8 3.6l5 2c2.1.6 5 1.8 6.7 2.6 1.6.7 3.5 1.5 4.1 1.6l4 1.6c1.5.7 4 1.7 5.4 2.1l8 3.1a193.7 193.7 0 0 0 15.8 6.3l3.6 1.4 5.3 2.1c1.8.9 4.5 2 6 2.5 1.5.4 3 1 3.5 1.3a100 100 0 0 1 14.2 5.5l4.6 1.9a56 56 0 0 0 5.2 1.8 62 62 0 0 1 6.2 2.3c4 1.8 9.9.7 20.7-4 1.6-.7 3-1.3 3.4-1.3a60.5 60.5 0 0 1 9.3-3.7 73.4 73.4 0 0 0 8.9-3.3l4.9-2c1.6-.8 4.2-1.9 5.8-2.4 1.6-.5 3.5-1.2 4.2-1.6a41 41 0 0 1 4.3-1.7c1.7-.5 4-1.4 5.1-2 2.3-1.1 7-3 13.6-5.3a85.1 85.1 0 0 0 11-4.5 675 675 0 0 0 23.4-9.3 53 53 0 0 1 5.6-2.2 38 38 0 0 0 4.2-1.6l4-1.6 4.6-1.8c2.8-1.4 13.9-5.8 14.4-5.8 1.2 0 6.7-2.6 8.2-4 2.4-2 3.2-3.7 3.4-7.1l.8-6.7c1.2-7.8 1.8-13 1.8-14.9 0-1 .3-3 .6-4.3.3-1.3.7-4.9 1-7.8.2-3 .5-6 .8-6.6.2-.7.6-3.7.8-6.7.2-3 .6-5.9.8-6.4a245.2 245.2 0 0 1 2.9-23.7c.1-1.8.5-4.7.8-6.6 1.2-9.6 1-10.1-5.2-18a40 40 0 0 1-5-8.1l-1.5-3c0-.3-.7-2.1-1.6-4.2a54 54 0 0 1-3.6-10.4c-.8-2.4-2.1-12.5-2.1-16.3a44.4 44.4 0 0 1 10-27 103 103 0 0 1 16.8-16.1c2.8-2.2 3.9-6.1 4-14.8 0-1.6.3-3.7.5-4.6.2-1 .5-4.1.6-7.1.1-3 .4-6.1.6-7 .2-.9.5-4 .6-7 .1-2.9.3-5.5.5-5.7.1-.3.4-2.8.5-5.7l.7-8.8c.6-4.6 1.5-15 2.4-28 .2-2.7.5-5 .6-5.2l.5-5.6c0-3 .3-6 .6-7 .2-1 .5-4.2.6-7.2.1-3 .4-6 .6-6.8.2-.8.5-3.7.6-6.6.1-2.9.4-6 .6-6.8.2-.9.4-3 .4-4.6 0-1.7.2-4.4.4-6l.8-8.2.9-10c1-10.5.1-12.9-6.1-15.8l-4.4-2.1-5.8-3-8.2-4A783.8 783.8 0 0 0 342 34.7l-32.5-16.2c-1.5-.5-11-.6-110.2-.6H90.6l-14.8 7.4m228.5 32.4a129 129 0 0 0 11.7 5.6c.6.2 6.6 3 13.4 6.4 6.8 3.3 13.4 6.5 14.7 7 8 3.1 8.4 5 7 30.2a905.9 905.9 0 0 0-.8 19.4 354.8 354.8 0 0 0-1.2 15.8l-.7 11.8c-.8 13.3-1.2 18.8-1.6 21.2-.2 1.4-.4 4.2-.4 6.2s-.2 4.3-.4 5.2c-.2.9-.4 4.3-.6 7.6-.1 3.2-.3 6-.4 6.2-.1.2-.4 3.2-.6 6.7-.4 7.8-.9 9-5.1 13.6a92.3 92.3 0 0 0-19.5 31 73.8 73.8 0 0 0-2.8 44.1c.2 1.1.6 3 1 4.2.5 1.2 1.3 3.9 1.8 6a75.2 75.2 0 0 0 8 18.3 74 74 0 0 0 3.2 5.7c3.8 5.8 5 11.5 3.5 17a48 48 0 0 0-.7 6.6 67 67 0 0 1-.7 7.2 77 77 0 0 0-.7 7.2l-.8 9.2-1.8 19c-.8 10.2-.9 11.3-1.8 13.3-1 2.3-3.8 5.1-5.6 5.6l-4.4 1.8c-4.7 2.2-11 4.9-15.8 6.7-2.2.8-5 2-6.4 2.7l-4 1.7-3.8 1.6-4.6 2-4.4 1.6a227.8 227.8 0 0 0-12.4 5.3c-2.2 1-4.3 1.9-4.6 1.9-.3 0-1.2.4-1.9.8s-2.7 1.2-4.4 1.8a55 55 0 0 0-5.5 2.3l-5 2.2a52 52 0 0 0-4 1.7c-.7.4-3 1.3-4.9 2a83.9 83.9 0 0 0-9.5 3.8c-.6.2-2.6 1-4.6 2-2 1-4.7 2-6 2.5-1.4.4-3.4 1.3-4.5 1.9l-2.5 1c-.3 0-2.2.7-4.2 1.6-4.8 2-6.5 2-10.2.3a80.4 80.4 0 0 0-9.8-4l-4.8-2a80 80 0 0 1-4.8-2 13017.1 13017.1 0 0 0-27.6-11.6c-1.8-.7-4.1-1.7-5.2-2l-3.8-1.7c-1-.5-2.6-1.1-3.6-1.4-1-.3-3.6-1.3-5.8-2.4a66.4 66.4 0 0 0-7.6-3.2c-.6-.5-6.3-2.8-6.9-2.8a23 23 0 0 1-3.6-1.4 114 114 0 0 0-5.5-2.4c-1.3-.5-3.5-1.4-4.8-2.1-1.3-.7-3.6-1.6-5-2a45 45 0 0 1-4.8-2 22 22 0 0 0-3.4-1.5c-.6-.1-3.1-1.2-5.6-2.4l-5.9-2.6c-4-1.3-6.1-5.8-6.5-13.6-.1-2.8-.4-5.8-.6-6.7-.2-1-.6-4.4-.8-7.6l-.8-9.5-.8-9.2a75 75 0 0 0-.8-7.6c-.2-1-.5-4-.6-6.5-.1-2.6-.4-5.6-.7-6.7a20.5 20.5 0 0 1 3.3-17 2248.4 2248.4 0 0 1 6-11 82.4 82.4 0 0 0 7.8-22.4l1-4.4a87.8 87.8 0 0 0-1.2-34.2A98.2 98.2 0 0 0 58.4 219c-2-2-3.2-4.4-3.2-6.6l-.6-7.8c-.6-6-1-11.6-1.8-24.1-.2-3.6-.5-6.7-.6-7a1106.2 1106.2 0 0 1-4.6-81.1l-.1-8.3 1.5-2.5c1.4-2.2 2-2.6 4.6-3.9a2066.4 2066.4 0 0 0 24.6-12l16-7.6c2-1 4.1-1.9 4.9-2 .7-.2 46.3-.3 101.3-.3h100l3.9 2m-185 29c-3 .4-2 4.6 2.7 11.6a84.9 84.9 0 0 1 10 23.4c.7 5 .8 249.2.2 252.4a39.4 39.4 0 0 1-5 12.5c-.7 1.4-2.8 4.7-4.8 7.4-3.6 5-4.1 6.2-3.6 7.2.5.7 70.4 1 72.7.3 2.3-.8 2-2-1-5.8a60 60 0 0 1-3.2-4.5l-2.6-3.6a45.5 45.5 0 0 1-4.8-9.7c-.8-2.1-.8-3.4-1-34.6 0-40.3 0-42 1.7-43.5l10.3-8.8c7-5.7 10.7-8.9 10.7-9.1 0-.5 4-3.2 4.4-3 .6.4 2 3.7 4.6 11.6 1.4 4.4 3.1 9.3 3.8 10.8a296.1 296.1 0 0 1 7.1 20l1.4 3.8a158.4 158.4 0 0 0 3.7 10.4 63 63 0 0 0 1.6 4.4l1.7 4.6a199.6 199.6 0 0 0 3.8 10.8l5 13.8c2.3 5.3 1.4 15.2-1.7 18.8a41.8 41.8 0 0 1-3.7 6.8c-3.2 5.2-3.3 6.4 0 6.9 4.2.6 71 .3 71.5-.3.8-1 .1-2.3-3-5.6a67.7 67.7 0 0 1-8.5-10.8c-1.9-3-6.3-14.2-10.5-26.2-3-8.4-3.7-10.5-5-13.6l-1.4-4c0-.5-.5-2-1.2-3.4s-1.2-2.9-1.2-3.2a40 40 0 0 0-2.6-7.2 156.6 156.6 0 0 1-12-33.6l-2-5.6c-.9-1.5-3.5-8.7-5.5-15-.9-2.8-1.8-5.2-2-5.5-.2-.2-.8-2-1.5-3.8l-3.4-9.7c-3-8.3-3-7.9.3-12a202.4 202.4 0 0 0 12-17.2c1-1.3 2.1-3.4 2.8-4.7.6-1.3 1.7-3.1 2.3-4 .7-.9 1.2-1.8 1.2-2 0-.6 2.7-6.3 3.6-7.5.4-.6 1-1.7 1.2-2.6l1.8-4.2c1.5-3 1.9-4 4.4-12.2l2.6-8.2a39 39 0 0 0 1.2-5.4 111 111 0 0 0 0-46.5 53.4 53.4 0 0 0-41.2-37.5 133 133 0 0 0-22-3.2c-2.5-.3-94.1-.5-95.9-.3m92.5 38a26 26 0 0 1 18.7 18.6 36 36 0 0 0 1.4 4 108.6 108.6 0 0 1-3.4 40 73.8 73.8 0 0 1-12.7 24c-1.5 2.5-8.5 10.5-12 13.9a120.1 120.1 0 0 1-13.7 12.1 52.5 52.5 0 0 1-4.6 3.7l-3.9 2.8c-1 .8-2 1.4-2.2 1.3-.4-.2-.7-120.8-.3-121.6 0-.2 6.4-.3 14.1-.3h14l4.6 1.4",fill:"#cca444","fill-rule":"evenodd"},null,-1)])])}const P1=Q(MZ,[["render",PZ]]),RZ={deckCode:{type:String,required:!0,default:""},deckName:{type:String,required:!0,default:""}},HZ=o.defineComponent({__name:"UploadDeckToLorButton",props:RZ,setup(e){const{t}=Y(),n=e,r=o.computed(()=>nn().user?t("deck.uploadDeckToLor"):t("deck.signInToUpload")),a=o.ref(null);let s;function i(){nn().user&&_e().callbacks.uploadDeckToLorCallback(n.deckCode,n.deckName)}return o.onMounted(()=>{s=tt(a.value,{content:r.value,arrow:!0})}),o.watch(r,()=>{s.setContent(r.value)}),(A,l)=>(o.openBlock(),o.createElementBlock("button",{ref_key:"button",ref:a,class:"circle-button",onClick:i},[o.createVNode(P1)],512))}});const of=Q(HZ,[["__scopeId","data-v-b942bc9b"]]),VZ={class:"primary-button"},R1=o.defineComponent({__name:"ShareButton",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("button",VZ,[o.createVNode(o.unref(Se),{icon:"share-nodes"}),o.createElementVNode("span",null,[o.renderSlot(t.$slots,"default")])]))}}),r3={isPrivate:{type:Boolean,required:!1,default:!1},showUploaded:{type:Boolean,required:!1,default:!1},deckBuilderRouterLink:{type:Object,required:!0,default:"404"},archetypeRouterLink:{type:Object,required:!1,default:void 0},deckName:{type:String,required:!1,default:void 0},deckCode:{type:String,required:!0,default:"CUCACBIKYYAQCBQMAEBAMCI5F4EAMCQLB4IRGFI2D4WACAQGBIIBQAA"},deckId:{type:Number,required:!1,default:void 0},showButtons:{type:Object,required:!1,default:{deleteDeck:!0,updateDeckPrivacy:!0,editDeckName:!0,gemsCost:!0,openArchetypePage:!0,simulateMulligan:!0,openInDeckBuilder:!0,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!0}}},$Z={class:"deck-buttons"},KZ={key:0,class:"owned-deck-buttons buttons"},zZ={class:"normal-buttons buttons"},WZ=o.defineComponent({__name:"DeckButtons",props:r3,emits:["click:share","click:edit-name","click:update-privacy","click:delete"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.computed(()=>Et(r.deckCode));return console.log(s),(i,A)=>(o.openBlock(),o.createElementBlock("div",$Z,[r.showButtons.deleteDeck||r.showButtons.updateDeckPrivacy||r.showButtons.editDeckName?(o.openBlock(),o.createElementBlock("div",KZ,[r.showButtons.deleteDeck?(o.openBlock(),o.createBlock(U1,{key:0,onClick:A[0]||(A[0]=l=>a("click:delete"))})):o.createCommentVNode("",!0),r.showButtons.updateDeckPrivacy?(o.openBlock(),o.createBlock(N1,{key:1,"deck-is-private":r.isPrivate,onClick:A[1]||(A[1]=l=>a("click:update-privacy"))},null,8,["deck-is-private"])):o.createCommentVNode("",!0),r.showButtons.editDeckName?(o.openBlock(),o.createBlock(O1,{key:2,onClick:A[2]||(A[2]=l=>a("click:edit-name"))})):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),o.createElementVNode("div",zZ,[r.showButtons.gemsCost?(o.openBlock(),o.createBlock(Tg,{key:0,class:"gems-cost",deck:s.value},null,8,["deck"])):o.createCommentVNode("",!0),r.showButtons.openArchetypePage?(o.openBlock(),o.createBlock(L1,{key:1,"router-link":r.archetypeRouterLink},null,8,["router-link"])):o.createCommentVNode("",!0),r.showButtons.simulateMulligan?(o.openBlock(),o.createBlock(sf,{key:2,deck:s.value},null,8,["deck"])):o.createCommentVNode("",!0),r.showButtons.openInDeckBuilder?(o.openBlock(),o.createBlock(Q1,{key:3,"router-link":r.deckBuilderRouterLink},null,8,["router-link"])):o.createCommentVNode("",!0),r.showButtons.copyDeckCode?(o.openBlock(),o.createBlock(af,{key:4,"deck-code":r.deckCode},null,8,["deck-code"])):o.createCommentVNode("",!0),r.showButtons.uploadDeckToLor?(o.openBlock(),o.createBlock(of,{key:5,"deck-code":r.deckCode,"deck-name":r.deckName??o.unref(Dm)(r.deckCode)},null,8,["deck-code","deck-name"])):o.createCommentVNode("",!0),r.showButtons.shareDeck?(o.openBlock(),o.createBlock(R1,{key:6,class:"share-button",onClick:A[3]||(A[3]=l=>a("click:share"))},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(n)("deck.shareDeck")),1)]),_:1})):o.createCommentVNode("",!0)])]))}});const Qo=Q(WZ,[["__scopeId","data-v-427da7ee"]]),GZ={cards:{type:Array,required:!1},deck:{type:Object,required:!1},deckCode:{type:String,required:!0,default:""},deckName:{type:String,required:!1,default:void 0},isSaving:{type:Boolean,required:!1,default:!1},deckButtonsProps:{type:Object,required:!0,default:{deckCode:"",deckId:void 0,showButtons:void 0,archetypeRouterLink:void 0,deckBuilderRouterLink:"404",deckName:void 0,showUploaded:void 0,isPrivate:void 0}}},jZ={element:{type:Object,required:!0,default:""}};/*!
|
|
674
674
|
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
|
|
@@ -697,4 +697,4 @@ Report: I am spiderbit on left forearm. Sydell claims a misunderstanding, but hi
|
|
|
697
697
|
- Ravenbloom discipline card`,artistName:"Polar Engine",name:"Spell Slinger",cardCode:"06NX013",keywords:["Fearsome"],keywordRefs:["Fearsome"],spellSpeedRef:"",rarityRef:"Common",subtypes:["SPIDER"],subtypeRefs:["SPIDER"],supertype:"",typeRef:"Unit",collectible:!0,set:"Set6",createdAt:"2022-09-09",updatedAt:"2022-09-14"}}},die={class:"card-similar-cards"},fie=o.defineComponent({__name:"CardSimilarCards",props:uie,setup(e){const t=e;function n(a,s,i){if(a.length===10&&i<a[0].points)return;let A=0;for(;A<a.length&&a[A].points<i;)A++;a.splice(A,0,{cardCode:s,points:i}),a.length>10&&a.splice(0,1)}const r=o.computed(()=>{const a=[],s=mn().cardJsonObject;let i=0;for(const A in s){if(A===t.card.cardCode||t.card.collectible&&!s[A].collectible)continue;i=0;const l=s[A];for(const c of l.regionRefs)for(const u of t.card.regionRefs)c===u&&(i+=2);for(const c of l.subtypes)for(const u of t.card.subtypes)c===u&&(i+=2);for(const c of l.keywordRefs)for(const u of t.card.keywordRefs)c===u&&(i+=1);l.typeRef===t.card.typeRef&&(i+=3),l.rarityRef!=="None"&&l.rarityRef===t.card.rarityRef&&(i+=1),l.typeRef==="Unit"&&t.card.typeRef==="Unit"&&(i+=(9-Math.abs(l.attack-t.card.attack))/3,i+=(9-Math.abs(l.health-t.card.health))/3),i+=(12-Math.abs(l.cost-t.card.cost))/3,n(a,A,i)}return a.reverse().map(A=>mn().cardJsonObject[A.cardCode])});return(a,s)=>(o.openBlock(),o.createElementBlock("div",die,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value,i=>(o.openBlock(),o.createBlock(o.unref(Bf),{key:i.cardCode,"card-prop":i,"is-root":!0,"router-link":o.unref(_e)().callbacks.cardCodeRouterLinkCallback(i.cardCode)},null,8,["card-prop","router-link"]))),128))]))}});const AE=Q(fie,[["__scopeId","data-v-4db54a8d"]]),pie={logoType:{type:String,required:!0,default:"logo-and-text"}},hie={key:0,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 862.33 136.654"},mie={key:1,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 926.43 201.096"},gie={key:2,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 201.1 201.12"},vie=o.defineComponent({__name:"LogoIcon",props:pie,setup(e){const t=e;return(n,r)=>t.logoType==="text-only"?(o.openBlock(),o.createElementBlock("svg",hie,[...r[0]||(r[0]=[o.createStaticVNode('<path d="M0 2.947h18.418V115.29h77.35v18.416H0Z" data-v-bb0b24b5></path><path d="M205.729 0a68.327 68.327 0 1 1-68.326 68.331A68.3 68.3 0 0 1 205.729 0Zm0 118.236a49.908 49.908 0 1 0-49.909-49.909 49.948 49.948 0 0 0 49.909 49.904Z" data-v-bb0b24b5></path><path d="M396.538 2.947a42.211 42.211 0 0 1 41.991 41.991 41.554 41.554 0 0 1-32.046 40.7l29.1 48.067H414.22l-28.363-46.962h-32.046v46.962h-18.416V68.326h39.413l-39.413-65.38Zm0 65.38a23.481 23.481 0 1 0 0-46.962h-28.73l28.363 46.962Z" data-v-bb0b24b5></path><path d="M495.266 115.291h18.418v18.416h-18.418Z" data-v-bb0b24b5></path><path d="M685.517 60.778v72.928h-18.418v-6.443a68.378 68.378 0 1 1 12.894-107.926l-12.894 13.076a49.909 49.909 0 1 0 0 71.827V79.192h-49.726V60.779Z" data-v-bb0b24b5></path><path d="M862.33 60.778v72.928h-18.417v-6.443a68.379 68.379 0 1 1 12.89-107.926l-12.89 13.076a49.909 49.909 0 1 0 0 71.827V79.192H794.19V60.779Z" data-v-bb0b24b5></path>',6)])])):t.logoType==="logo-and-text"?(o.openBlock(),o.createElementBlock("svg",mie,[...r[1]||(r[1]=[o.createStaticVNode('<path d="M251.125 49.347h14.423v87.978h60.574v14.422h-75Z" data-v-bb0b24b5></path><path d="M412.235 47.039a53.507 53.507 0 1 1-53.508 53.507 53.487 53.487 0 0 1 53.508-53.507Zm0 92.592a39.084 39.084 0 1 0-39.085-39.084 39.115 39.115 0 0 0 39.085 39.084Z" data-v-bb0b24b5></path><path d="M561.66 49.347a33.056 33.056 0 0 1 32.884 32.884 32.542 32.542 0 0 1-25.1 31.873l22.787 37.642h-16.729l-22.212-36.777h-25.1v36.777h-14.422v-51.2h30.865l-30.865-51.2Zm0 51.2a18.388 18.388 0 1 0 0-36.776h-22.5l22.211 36.776Z" data-v-bb0b24b5></path><path d="M638.976 137.325h14.423v14.422h-14.423Z" data-v-bb0b24b5></path><path d="M787.964 94.635v57.111h-14.422V146.7a53.547 53.547 0 1 1 10.1-84.518l-10.1 10.24a39.084 39.084 0 1 0 0 56.248v-19.616h-38.939v-14.42Z" data-v-bb0b24b5></path><path d="M926.429 94.635v57.111h-14.423V146.7A53.548 53.548 0 1 1 922.1 62.182l-10.094 10.24a39.084 39.084 0 1 0 0 56.248v-19.616h-38.939v-14.42Z" data-v-bb0b24b5></path><path d="M100.548 0A100.548 100.548 0 0 1 201.1 100.548a98.177 98.177 0 0 1-3.633 26.46c-.011-.011-17.535 0-17.535 0s5.292-19.211 5.292-26.46a84.672 84.672 0 0 0-169.344 0c0 46.782 39.667 84.672 84.672 84.672s73.348-43.16 73.348-43.16h18.252A100.558 100.558 0 1 1 100.548 0Z" data-v-bb0b24b5></path><path d="M108.72 45.643c19.711 0 36.623 15.51 36.623 34.994 0 16.991-12.308 31.253-28.078 34.994l15.87 25.34h59.707s-4 7.623-11.509 11.243-18.271 3.238-18.271 3.238h-38.473l-24.415-39.821H72.097v39.821h-15.87V99.945h34.182l-34.182-54.3Zm0 54.3c11.2 0 20.753-8.242 20.753-19.307s-9.557-19.307-20.753-19.307H84.304l24.416 38.614Z" data-v-bb0b24b5></path>',8)])])):(o.openBlock(),o.createElementBlock("svg",gie,[...r[2]||(r[2]=[o.createElementVNode("path",{d:"M100.548 0A100.548 100.548 0 0 1 201.1 100.548a98.177 98.177 0 0 1-3.633 26.46c-.011-.011-17.535 0-17.535 0s5.292-19.211 5.292-26.46a84.672 84.672 0 0 0-169.344 0c0 46.782 39.667 84.672 84.672 84.672s73.348-43.16 73.348-43.16h18.252A100.558 100.558 0 1 1 100.548 0Z"},null,-1),o.createElementVNode("path",{d:"M108.72 45.643c19.711 0 36.623 15.51 36.623 34.994 0 16.991-12.308 31.253-28.078 34.994l15.87 25.34h59.707s-4 7.623-11.509 11.243-18.271 3.238-18.271 3.238h-38.473l-24.415-39.821H72.097v39.821h-15.87V99.945h34.182l-34.182-54.3Zm0 54.3c11.2 0 20.753-8.242 20.753-19.307s-9.557-19.307-20.753-19.307H84.304l24.416 38.614Z"},null,-1)])]))}});const ko=Q(vie,[["__scopeId","data-v-bb0b24b5"]]),yie={class:"dashboard-sign-up"},Bie={class:"top"},wie={class:"subtitle"},bie={class:"fancy-button"},_ie=o.defineComponent({__name:"DashboardSignUp",setup(e){const{t}=Y();return(n,r)=>(o.openBlock(),o.createElementBlock("div",yie,[o.createElementVNode("div",Bie,[o.createVNode(ko,{"logo-type":"text-only",class:"logo-icon"}),o.createElementVNode("div",wie,o.toDisplayString(o.unref(t)("general.becomeTheMaster")),1)]),o.createElementVNode("div",bie,o.toDisplayString(o.unref(t)("general.signIn")),1)]))}});const lE=Q(_ie,[["__scopeId","data-v-a8d77f09"]]),Cie={deckCode:{type:String,required:!0,default:""},gameMode:{type:String,required:!0,default:""},gameType:{type:String,required:!0,default:""},isAttackingFirst:{type:Boolean,required:!0,default:!0},isVictory:{type:Boolean,required:!0,default:""},opponentDeckCode:{type:String,required:!0,default:""},opponentName:{type:String,required:!0,default:""},playedAt:{type:Date,required:!0,default:new Date},opponentRouterLink:{type:Object,required:!0,default:""},archetypeRouterLink:{type:Object,required:!0,default:""},deckBuilderRouterLink:{type:Object,required:!0,default:""},opponentArchetypeRouterLink:{type:Object,required:!0,default:""},opponentDeckBuilderRouterLink:{type:Object,required:!0,default:""}},kie={class:"match-item"},Eie={class:"details"},Sie={class:"match-details"},xie={class:"game-type"},Fie={class:"time"},Tie={class:"main"},Iie={class:"container"},Die={class:"container"},Uie=o.defineComponent({__name:"MatchItem",props:Cie,setup(e){const{t}=Y(),n=o.inject(Nr),r=e,a=o.computed(()=>Et(r.deckCode)),s=o.computed(()=>Et(r.opponentDeckCode)),i=o.computed(()=>{const c=Zm().cardJson;return!c||c.length===0?[]:[ya(ln(a.value),a.value,1)[0],ya(ln(s.value),s.value,1)[0]].map(u=>_e().callbacks.cardImageCallback(u.cardCode,_t.Banner))}),A=o.computed(()=>({showButtons:{deleteDeck:!1,updateDeckPrivacy:!1,editDeckName:!1,gemsCost:!0,openArchetypePage:!0,simulateMulligan:!0,openInDeckBuilder:!0,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!0},deckCode:r.deckCode,deckBuilderRouterLink:r.deckBuilderRouterLink,archetypeRouterLink:r.archetypeRouterLink})),l=o.computed(()=>({showButtons:{deleteDeck:!1,updateDeckPrivacy:!1,editDeckName:!1,gemsCost:!0,openArchetypePage:!0,simulateMulligan:!0,openInDeckBuilder:!0,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!0},deckCode:r.opponentDeckCode,deckBuilderRouterLink:r.opponentDeckBuilderRouterLink,archetypeRouterLink:r.opponentArchetypeRouterLink}));return(c,u)=>{const d=o.resolveComponent("RouterLink");return o.openBlock(),o.createElementBlock("div",kie,[o.createElementVNode("div",{class:"background",style:o.normalizeStyle({"--background-image":`url(${i.value[0]})`})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,f=>(o.openBlock(),o.createElementBlock("div",{key:f,class:"background-card-wrapper",style:o.normalizeStyle({"--background-image":`url(${f})`})},[...u[0]||(u[0]=[o.createElementVNode("div",{class:"background-card"},null,-1)])],4))),128))],4),o.createElementVNode("div",Eie,[o.createElementVNode("div",Sie,[o.createElementVNode("div",xie,o.toDisplayString(r.gameType)+" - "+o.toDisplayString(r.gameMode),1),o.createElementVNode("div",Fie,o.toDisplayString(o.unref(n)(r.playedAt).fromNow()),1)]),o.createVNode(d,{to:r.opponentRouterLink,class:"opponent-details"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(r.opponentName),1)]),_:1},8,["to"])]),o.createElementVNode("div",Tie,[o.createElementVNode("div",Iie,[o.createVNode(Ea,{class:"deck-highlight",deck:a.value,"deck-code":r.deckCode,"deck-buttons-props":A.value},null,8,["deck","deck-code","deck-buttons-props"])]),o.createElementVNode("div",{class:"container results",style:o.normalizeStyle({color:r.isVictory?"var(--color-good)":"var(--color-bad)"})},o.toDisplayString(r.isVictory?o.unref(t)("general.victory"):o.unref(t)("general.defeat")),5),o.createElementVNode("div",Die,[o.createVNode(Ea,{class:"deck-highlight opponent",deck:s.value,"deck-code":r.opponentDeckCode,"deck-buttons-props":l.value},null,8,["deck","deck-code","deck-buttons-props"])])])])}}});const cE=Q(Uie,[["__scopeId","data-v-2b3ae97b"]]),Oie={players:{type:Array,required:!0,default:[]}},Lie={class:"leaderboard-top-10-region"},Qie=o.defineComponent({__name:"LeaderboardTop10Region",props:Oie,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",Lie,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.players,a=>(o.openBlock(),o.createBlock(bt,{key:`${a.name}${a.rank}`,"card-code-prop":a.selected_banner_card??void 0,color:a.selected_banner_color??"var(--color-background-2-rgb)","mana-number":a.rank,name:a.name,"quantity-number":a.lp,"ignore-card-item":!0,"router-link":o.unref(_e)().callbacks.playerRouterLinkCallback(a)},null,8,["card-code-prop","color","mana-number","name","quantity-number","router-link"]))),128))]))}});const J1=Q(Qie,[["__scopeId","data-v-41d779ee"]]),Mie={routerLink:{type:Object,required:!0,default:{path:"/404"}},index:{type:Number,required:!0,default:0},change:{type:Number,required:!0,default:null},favorite_deck:{type:String,required:!0,default:null},lp:{type:Number,required:!0,default:0},matches:{type:Number,required:!0,default:null},name:{type:String,required:!0,default:""},rank:{type:Number,required:!0,default:0},selected_banner_card:{type:String,required:!1,default:null},selected_banner_color:{type:String,required:!1,default:null},server:{type:String,required:!0,default:"americas"},updated_at:{type:String,required:!0,default:""},user_id:{type:Number,required:!0,default:null},wins:{type:Number,required:!0,default:null},shownColumns:{type:Object,required:!0,default:{player:!0,lp:!0,change:!0,wins:!0,matches:!0,winrate:!0,deck:!0}}},Nie={class:"leaderboard-detail-row-background-wrapper"},Pie={class:"leaderboard-detail-row-background"},Rie={class:"leaderboard-detail-row wrapper"},Hie={key:1,class:"column-content"},Vie={key:3,class:"column-content"},$ie={key:4,class:"column-content"},Kie={key:6,class:"column-content deck-highlight-wrapper"},zie={key:1},Wie=o.defineComponent({__name:"LeaderboardDetailRow",props:Mie,setup(e){const t=e,n=o.computed(()=>t.selected_banner_card?["",_e().callbacks.cardImageCallback(t.selected_banner_card,_t.Banner)]:[]),r=o.computed(()=>t.change===null||t.change===void 0?[]:t.change===0?["neutral"]:[t.change>0?"good":"bad"]);return(a,s)=>{const i=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(i,{to:t.routerLink,class:"wrapper"},{default:o.withCtx(()=>[o.createElementVNode("div",{class:"leaderboard-detail-row-wrapper wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",Nie,[o.createElementVNode("div",Pie,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,A=>(o.openBlock(),o.createElementBlock("div",{key:A,class:"background-card",style:o.normalizeStyle({"--background-image":`url(${A})`})},null,4))),128))])]),o.createElementVNode("div",Rie,[t.shownColumns.player?(o.openBlock(),o.createElementBlock("div",{key:0,class:"column-content card-wrapper",onClick:s[0]||(s[0]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createVNode(bt,{class:"card-slice-item","card-code-prop":t.selected_banner_card??void 0,color:t.selected_banner_color??"var(--color-background-2-rgb)","ignore-card-item":!0,"mana-number":t.rank,name:t.name,"maintain-aspect-ratio":!1,"router-link":t.routerLink},null,8,["card-code-prop","color","mana-number","name","router-link"])])):o.createCommentVNode("",!0),t.shownColumns.lp?(o.openBlock(),o.createElementBlock("div",Hie,o.toDisplayString(o.unref(Te)(t.lp,0,10)),1)):o.createCommentVNode("",!0),t.shownColumns.change?(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(["column-content change",r.value])},[t.change!==null?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(o.unref(Se),{class:"icon",icon:"fa-chevron-down"}),o.createElementVNode("span",null,o.toDisplayString(t.change?o.unref(Te)(Math.abs(t.change),0,10):""),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[],64))],2)):o.createCommentVNode("",!0),t.shownColumns.wins?(o.openBlock(),o.createElementBlock("div",Vie,o.toDisplayString(o.unref(Te)(t.wins)),1)):o.createCommentVNode("",!0),t.shownColumns.matches?(o.openBlock(),o.createElementBlock("div",$ie,o.toDisplayString(o.unref(Te)(t.matches)),1)):o.createCommentVNode("",!0),t.shownColumns.winrate?(o.openBlock(),o.createElementBlock("div",{key:5,class:"column-content",style:o.normalizeStyle({color:t.wins===null||t.matches===null?"var(--color-primary-2)":`var(${o.unref(Yn)(t.wins/t.matches)})`})},o.toDisplayString(t.matches===null||t.wins===null?"-":o.unref(Te)(t.wins/t.matches*100,1,3)+"%"),5)):o.createCommentVNode("",!0),t.shownColumns.deck?(o.openBlock(),o.createElementBlock("div",Kie,[t.favorite_deck?(o.openBlock(),o.createBlock(Ea,{key:0,"deck-code":t.favorite_deck},null,8,["deck-code"])):(o.openBlock(),o.createElementBlock("span",zie,"-"))])):o.createCommentVNode("",!0)])],4)]),_:1},8,["to"])}}});const Z1=Q(Wie,[["__scopeId","data-v-2ce9c554"]]),Gie={routerLink:{type:Object,required:!0,default:{path:"/404"}},playerRouterLink:{type:Object,required:!1,default:{path:"/404"}},deckCode:{type:String,required:!0,default:""},type:{type:String,required:!0,default:"built"},wins:{type:Number,required:!1,default:0},matches:{type:Number,required:!1,default:0},deckId:{type:Number,required:!1,default:0},userName:{type:String,required:!1,default:""},userId:{type:Number,required:!1,default:0},deckName:{type:String,required:!1,default:""},updatedAt:{type:Date,required:!1,default:new Date},archetypeRouterLink:{type:Object,required:!1,default:void 0},deckBuilderRouterLink:{type:Object,required:!0,default:"404"},showOwnerButtons:{type:Boolean,required:!1,default:!1},isPrivate:{type:Boolean,required:!1,default:!1}};const jie={},Yie={xmlns:"http://www.w3.org/2000/svg",viewBox:"25.21 66.56 353.98 269.42"};function qie(e,t){return o.openBlock(),o.createElementBlock("svg",Yie,[...t[0]||(t[0]=[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M95 67.249c-9.442 3.237-27.165 14.29-35.055 21.862-11.985 11.504-13.495 17.449-8.521 33.553 2.884 9.338 3.125 12.31 1.653 20.336-.565 3.08-1.282 7.497-1.593 9.816-.654 4.859-1.507 6.968-3.167 7.827-3.347 1.731-6.07-.959-12.46-12.308-3.227-5.732-5.32-5.733-7.478-.002-2.901 7.705-4.229 34.074-2.178 43.267 2.612 11.708 12.146 22.248 23.887 26.408 8.91 3.158 11.435 5.049 14.233 10.662 8.79 17.627 7.541 23.49-4.121 19.348-1.98-.704-5.67-2.014-8.2-2.912-14.356-5.094-16.5 2.124-5.514 18.561 11.421 17.088 27.745 24.899 44.255 21.178 8.934-2.013 10.069-1.524 24.2 10.428 6.649 5.624 4.594 9.455-6.606 12.316-12.406 3.169-15.535 4.779-15.535 7.993 0 5.469 18.596 14.356 38.74 18.513l8.26 1.705 9.6-.008c15.176-.013 24.599-3.381 27.766-9.923 3.23-6.671-3.138-11.752-20.405-16.279-12.779-3.351-30.021-11.869-38.294-18.917-1.247-1.063-3.897-3.157-5.888-4.655-4.364-3.282-4.942-3.837-11.668-11.218-11.085-12.163-22.048-27.835-28.466-40.688-3.51-7.033-9.477-26.526-11.236-36.712-.456-2.64-1.19-6.571-1.631-8.736-2.292-11.243-2.558-44.967-.409-51.864 1.238-3.974 3.331-7.113 8.743-13.113 5.167-5.728 14.42-17.676 17.042-22.003C102.408 72.867 105.053 63.804 95 67.249m208.422.186c-3.908 3.908 15.994 38.934 31.232 54.965 10.996 11.569 10.723 10.583 10.696 38.6-.019 19.623-.295 24.066-1.963 31.6-.536 2.42-1.261 5.93-1.612 7.8-2.746 14.637-10.641 36.205-16.189 44.223-.904 1.308-3.281 4.807-5.282 7.777-10.021 14.873-21.298 27.434-32.304 35.985-8.729 6.78-14.267 10.233-24.2 15.088-5.783 2.826-8.281 3.691-18.309 6.339-18.029 4.761-23.977 11.711-16.463 19.235 10.208 10.222 41.826 8.98 67.937-2.669 18.937-8.448 18.603-13.956-1.126-18.585-11.879-2.787-13.761-6.768-6.284-13.29 10.684-9.318 15.331-11.406 22.045-9.904 19.751 4.416 38.64-5.948 49.204-26.999 7.093-14.133 2.492-17.531-14.547-10.743-14.009 5.581-15.808 2.355-8.334-14.948 3.515-8.137 5.055-9.639 13.261-12.938 12.256-4.926 18.075-9.526 22.289-17.62 5.112-9.82 6.884-21.96 4.955-33.951-.425-2.64-.978-6.6-1.229-8.8-1.713-15.016-5.073-17.902-10.183-8.747-8.477 15.19-14.387 14.824-15.445-.955-.217-3.244-.773-7.942-1.234-10.441-1.032-5.581-.845-7.054 2.093-16.489 4.123-13.244 3.044-19.481-4.99-28.827-11.239-13.075-39.907-29.817-44.018-25.706M154.939 85.232c-3.352.569-6.053 1.748-19.923 8.695-19.225 9.629-19.157 9.528-16.851 24.998.866 5.807 1.256 10.746 2.045 25.875.132 2.53.594 6.94 1.026 9.8.433 2.86 1.057 8.516 1.389 12.568.904 11.063 1.161 11.837 5.636 16.979 4.078 4.685 5.623 6.898 6.554 9.385 3.192 8.532 2.461 17.086-2.219 25.952-4.076 7.723-4.323 11.769-1.59 26.116.523 2.75 1.15 7.416 1.392 10.369.858 10.47 1.649 11.962 8.002 15.115 3.337 1.656 44.33 18.375 56 22.839 5.951 2.277 6.046 2.253 32.8-8.361 37.31-14.801 37.429-14.853 39.694-17.327 1.98-2.162 3.87-11.183 4.91-23.435.346-4.07.906-9.11 1.245-11.2.888-5.479.613-6.76-3.053-14.2-6.949-14.101-6.029-23.115 3.597-35.251 5.448-6.868 6.466-11.089 7.811-32.387.335-5.301.967-11.781 1.404-14.4.437-2.619.971-7.732 1.186-11.362.214-3.63.597-9.435.85-12.9.575-7.874.303-9.161-2.449-11.613-2.137-1.902-25.779-13.911-30.595-15.54L251 85l-47-.059c-25.85-.032-47.928.099-49.061.291m58.368 27.111c31.052 5.446 39.083 34.191 18.288 65.457-6.499 9.772-6.864 11.713-3.691 19.6.885 2.2 4.129 10.93 7.209 19.4 6.148 16.906 11.122 29.697 12.978 33.378C252.452 258.825 249.46 261 233.2 261c-15.701 0-17.591-1.169-15.554-9.621 1.257-5.212-1.044-13.36-9.338-33.066-3.593-8.535-8.291-9.515-11.759-2.453l-1.149 2.34v27.6l1.543 4.506c3.059 8.927 1.215 10.438-13.143 10.775-17.559.412-20.099-1.187-16.9-10.64l1.3-3.841V131l-1.322-3.6c-4.295-11.694-3.493-14.57 4.276-15.338 4.722-.467 39.199-.237 42.153.281m-15.188 22.413c-2.764 1.746-2.719 1.382-2.719 21.844 0 17.841.025 18.442.822 19.799 1.436 2.445 3.249 2.141 6.676-1.119 11.294-10.747 15.557-31.235 7.868-37.817-3.234-2.768-10.192-4.257-12.647-2.707"},null,-1)])])}const e0=Q(jie,[["render",qie],["__scopeId","data-v-5b8e191d"]]);const Xie={},Jie={xmlns:"http://www.w3.org/2000/svg",viewBox:"58.93 70.36 282.28 264.88"};function Zie(e,t){return o.openBlock(),o.createElementBlock("svg",Jie,[...t[0]||(t[0]=[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M74.274 70.98C70.143 72.453 70 73.187 70 92.989c0 21.375-.191 20.705 7.953 27.937 2.556 2.269 6.54 5.914 8.854 8.1 2.315 2.186 5.915 5.497 8 7.359 2.086 1.861 5.953 5.468 8.593 8.015 2.64 2.547 6.42 5.963 8.4 7.591 1.98 1.628 5.94 5.133 8.8 7.788 2.86 2.654 7 6.432 9.2 8.395 2.2 1.962 5.98 5.503 8.4 7.868s6.59 6.158 9.268 8.429c4.882 4.142 12.716 11.282 23.838 21.729 3.28 3.08 7.792 7.123 10.028 8.985 2.236 1.861 5.776 5.021 7.866 7.021s5.69 5.329 8 7.396c2.31 2.068 6.81 6.22 10 9.226 3.19 3.007 7.69 7.081 10 9.053 21.285 18.171 21.513 18.953 9.193 31.537-11.486 11.732-11.469 11.443-1.589 26.173 10.712 15.973 10.896 15.947 20.619-2.991 11.834-23.052 13.416-25.365 25.434-37.203 11.725-11.549 16.26-14.348 43.754-26.997 11.527-5.303 11.173-7.25-3.018-16.595-15.492-10.2-15.171-10.208-26.226.594-13.433 13.125-12.533 13.445-37.919-13.489-3.986-4.229-12.558-13.143-19.048-19.807-6.49-6.665-13.69-14.274-16-16.909-2.31-2.635-9.78-10.466-16.6-17.402-6.82-6.936-15.279-15.667-18.799-19.402-3.519-3.734-11.46-11.95-17.645-18.256-6.186-6.306-13.297-13.768-15.802-16.581-20.002-22.467-26.5-28.126-33.898-29.522-4.553-.859-33.002-.901-35.382-.051m216.926.059c-7.757 1.18-15.308 7.452-32.457 26.961-2.998 3.41-10.947 11.813-17.664 18.674-18.498 18.89-18.283 16.816-3.329 32.126 5.05 5.17 11.341 11.83 13.981 14.8 10.629 11.958 10.819 11.943 25.898-2.122 3.206-2.991 7.616-6.926 9.8-8.745 2.184-1.819 6.041-5.312 8.571-7.763 4.366-4.231 7.244-6.886 21.639-19.97 13.379-12.161 12.447-9.635 12.278-33.282-.166-23.132 1.735-21.089-19.717-21.188-11.529-.052-16.118.07-19 .509M100.353 214.552c-2.773.991-20.47 12.72-22.081 14.635-1.619 1.924-1.444 3.394.643 5.394 1.846 1.768 16.397 9.364 26.085 13.616 11.889 5.218 13.609 6.491 26.829 19.866 11.076 11.206 10.481 10.327 20.611 30.449 11.967 23.77 11.22 23.54 22.788 7.024 10.227-14.603 10.258-13.976-1.248-25.724-10.551-10.773-10.909-12.12-5.142-19.314 4.67-5.824 3.236-8.817-9.202-19.218-2.55-2.132-6.976-6.088-9.836-8.791-8.553-8.083-10.094-8.421-16.842-3.693-6.031 4.224-8.258 3.44-18.406-6.477-8.442-8.25-10.183-9.202-14.199-7.767m-3.956 64.232c-2.342.689-4.018 2.019-10.527 8.355-3.778 3.678-8.94 8.499-11.47 10.715-7.557 6.617-12.117 11.625-13.871 15.235-4.825 9.931 1.8 21.016 12.924 21.628 6.239.343 9.298-1.455 19.527-11.475 3.971-3.89 9.903-9.585 13.182-12.657 13.369-12.524 13.444-13.102 3.039-23.437-7.544-7.493-10.098-9.161-12.804-8.364m203.369.571c-2.737 1.275-13.946 12.139-15.534 15.057-2.288 4.204-1.446 5.641 9.351 15.954 4.28 4.089 10.49 10.054 13.8 13.257 13.601 13.162 21.004 14.833 29.242 6.6 8.552-8.547 5.312-18.062-11.025-32.369-2.53-2.215-7.718-7.063-11.529-10.773-8.942-8.704-10.453-9.52-14.305-7.726"},null,-1)])])}const t0=Q(Xie,[["render",Zie],["__scopeId","data-v-5b6f3d5e"]]);const eoe={},toe={xmlns:"http://www.w3.org/2000/svg",viewBox:"5.25 32.41 384.35 392.23"};function noe(e,t){return o.openBlock(),o.createElementBlock("svg",toe,[...t[0]||(t[0]=[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M196.56 32.706c-.242.162-.643.68-.891 1.151-.464.882-6.181 23.37-7.663 30.143-2.029 9.277-13.207 54.007-16.187 64.776-2.401 8.677-2.227 10.411 1.102 11.036 2.465.462 8.894-4.762 13.798-11.212 1.004-1.32 2.566-3.21 3.473-4.2.906-.99 2.417-2.935 3.358-4.322 2.851-4.205 4.112-4.166 7.292.224.916 1.264 2.6 3.288 3.743 4.498 1.142 1.21 3.257 3.64 4.698 5.401 6.387 7.801 10.008 10.411 12.645 9.115 2.896-1.422 3.516 2.259-6.28-37.316-2.423-9.79-4.945-20.05-5.603-22.8-8.63-36.06-11.562-46.819-12.753-46.794-.161.003-.49.138-.732.3m-77.835 9.868c-4.03 2.43-9.532 6.24-14.703 10.181-9.024 6.878-10.169 7.804-13.417 10.853-1.763 1.654-4.015 3.621-5.005 4.371-.99.75-3.702 3.177-6.026 5.393-2.324 2.215-5.474 5.198-7 6.628-3.458 3.241-9.993 10.614-12.232 13.8-.928 1.32-2.79 3.75-4.139 5.4-1.349 1.65-3.548 4.53-4.888 6.4-1.34 1.87-2.926 3.85-3.524 4.4-.599.55-2.45 2.8-4.113 5-1.663 2.2-3.953 5.08-5.087 6.4-1.134 1.32-3.261 4.11-4.725 6.2-1.464 2.09-3.443 4.88-4.399 6.2-8.17 11.289-23.812 36.82-24.163 39.441-.282 2.099.484 2.895 3.842 3.991 24.399 7.967 28.64 32.858 8.613 50.547-4.2 3.71-4.802 4.749-4.005 6.917 1.139 3.094 4.592 10.511 5.944 12.767.771 1.285 2.411 4.317 3.645 6.737s3.462 6.311 4.95 8.646c1.489 2.336 3.697 5.821 4.907 7.746 7.683 12.222 15.624 23.335 21.97 30.748 1.666 1.947 4.165 4.917 5.552 6.6 3.393 4.116 18.291 19.067 22.278 22.357 1.76 1.452 4.28 3.669 5.6 4.926 3.052 2.907 14.983 11.823 22.898 17.112 3.353 2.241 7.313 5.202 8.8 6.581 1.486 1.378 4.005 3.554 5.597 4.836 1.592 1.282 3.752 3.43 4.8 4.774 1.048 1.344 3.54 4.161 5.538 6.259 5.088 5.343 11.547 13.615 14.195 18.181 5.189 8.946 7.369 7.129 5.539-4.618-.458-2.942-.98-6.518-1.161-7.948-.906-7.167-3.701-21.63-4.87-25.2-4.277-13.062-8.002-19.195-11.662-19.199-2.363-.002-5.716-2.286-11.474-7.815-1.65-1.585-4.08-3.663-5.4-4.619-3.099-2.244-19.447-18.69-23.229-23.367-1.601-1.98-4.093-4.95-5.536-6.6-7.749-8.854-11.713-14.165-20.9-28-2.557-3.85-5.634-8.44-6.837-10.2-5.081-7.431-6.634-10.061-11.099-18.794-2.586-5.056-5.616-10.546-6.735-12.2-2.255-3.333-6.408-12.086-7.014-14.781-.886-3.942 4.505-17.812 11.748-30.225 1.155-1.98 3.322-5.76 4.815-8.4 3.088-5.461 12.353-19.487 14.344-21.717.729-.816 2.922-3.643 4.874-6.283 4.239-5.731 12.608-16.065 16.623-20.525 2.06-2.289 2.639-4.032 4.337-13.06 1.059-5.628 4.403-17.624 6.027-21.615.626-1.54 2.075-5.23 3.219-8.2 1.145-2.97 2.752-6.75 3.572-8.4.82-1.65 2.428-5.16 3.571-7.8 1.144-2.64 2.587-5.61 3.206-6.6.619-.99 2.405-4.315 3.97-7.388 4.164-8.182 3.716-10.062-1.631-6.838m152.701-1.017c-.394.638.802 3.336 6.061 13.68 7.714 15.171 14.334 30.793 16.444 38.805.428 1.627 1.251 4.578 1.828 6.558.577 1.98 1.741 6.957 2.586 11.061 1.741 8.459 1.616 8.201 7.055 14.569 3.573 4.183 5.806 6.933 12.8 15.763 17.7 22.344 38.646 60.307 37.177 67.379-.676 3.251-8.705 20.112-15.157 31.828-5.617 10.199-23.977 36.675-29.818 43-.813.88-2.297 2.68-3.298 4-1.001 1.32-2.399 2.94-3.107 3.6-.707.66-2.331 2.55-3.608 4.2-2.713 3.505-27.938 28.771-31.236 31.286-1.235.943-3.395 2.69-4.8 3.883-3.642 3.095-5.699 4.303-7.862 4.618-2.822.411-3.4.977-5.808 5.693-5.426 10.628-7.737 19.106-9.9 36.32-.194 1.54-.629 4.211-.968 5.935-.693 3.535-.813 9.292-.225 10.839.813 2.137 2.274 1.116 6.546-4.574 1.239-1.65 3.164-4.08 4.277-5.4 1.114-1.32 3.412-4.11 5.106-6.2 7.458-9.199 18.47-19.652 26.23-24.899 20.895-14.128 42.028-32.329 55.15-47.501 1.998-2.31 4.673-5.28 5.945-6.6 3.106-3.225 9.323-11.242 16.556-21.349 10.726-14.987 23-38.069 23-43.251 0-1.421-.265-1.773-3.657-4.866-13.765-12.547-17.154-26-10.012-39.734 2.918-5.61 7.799-9.456 15.469-12.187 3.788-1.349 5.4-2.597 5.4-4.181 0-2.486-15.591-29.304-21.703-37.33-.964-1.266-2.992-4.102-4.507-6.302-3.233-4.697-12.836-17.271-16.037-21-1.228-1.43-5.14-5.903-8.693-9.939-3.553-4.037-7.9-9.063-9.66-11.17-6.962-8.333-21.833-22.69-29.55-28.528-2.007-1.519-6.922-5.237-10.921-8.262-11.116-8.41-16.153-11.28-17.103-9.744M179.2 51.341c-.55.296-3.07 1.762-5.6 3.259-2.53 1.498-7.39 4.339-10.8 6.313-3.41 1.975-7.46 4.406-9 5.403-1.54.997-6.847 4.239-11.794 7.206-15.808 9.481-31.025 19.992-33.345 23.033-1.987 2.605-3.944 11.726-2.958 13.789 1.055 2.209 2.118 1.698 11.097-5.333 19.356-15.157 31.76-23.788 34.211-23.805 1.433-.01 2.574 1.182 4.172 4.361 3.175 6.314 4.208 6.746 8.866 3.708 1.623-1.058 4.259-2.7 5.857-3.649 4.495-2.667 4.798-3.169 6.895-11.426.447-1.76 1.8-7.035 3.006-11.723 2.901-11.276 2.809-12.968-.607-11.136m34.667.526c-1.284 1.284 5.221 27.239 7.638 30.478.938 1.256 7.903 6.113 11.489 8.011 3.101 1.642 4.066 1.08 6.79-3.956 3.49-6.451 3.98-6.45 13.616.006 7.527 5.044 20.023 14.489 26.751 20.221 9.473 8.07 11.523 7.245 8.835-3.555-1.659-6.668-2.042-7.168-10.078-13.136-6.485-4.816-28.683-18.844-36.308-22.944-1.98-1.065-5.329-2.973-7.442-4.24-2.113-1.267-5.623-3.289-7.8-4.492-2.177-1.203-5.758-3.194-7.958-4.424-3.846-2.15-4.957-2.545-5.533-1.969m-66.528 42.131c-.473.191-2.293 1.395-4.044 2.675-1.75 1.28-5.216 3.767-7.702 5.527-15.252 10.8-20.061 14.74-30.518 25-7.651 7.506-10.953 11.189-16.78 18.709-1.488 1.92-3.502 4.491-4.476 5.713-1.563 1.962-6.305 8.602-12.875 18.026-8.992 12.898-21.491 35.511-21.525 38.94-.019 2.036 3.141 9.239 6.762 15.412.709 1.21 2.606 4.63 4.214 7.6 11.397 21.048 20.971 33.763 39.005 51.803 19.754 19.761 24.958 24.424 43.868 39.309 9.849 7.752 9.183 9.072 9.042-17.927-.125-24.038.191-22.035-3.762-23.789-1.495-.662-4.107-2.852-9.61-8.053-4.156-3.929-9.331-8.762-11.501-10.742-4.157-3.792-11.026-11.294-14.652-16.001-1.186-1.54-2.888-3.63-3.782-4.644-.894-1.015-2.767-3.535-4.162-5.6-1.86-2.755-3.274-4.326-5.305-5.893-5.021-3.876-15.634-18.493-17.185-23.669-1.028-3.43 6.996-14.13 20.767-27.694 7.562-7.448 8.393-7.601 12.523-2.294.939 1.207 3.069 3.647 4.733 5.422 1.664 1.775 3.892 4.25 4.951 5.5 2.585 3.051 3.779 3.1 7.712.317 4.055-2.87 16.785-15.892 17.142-17.536.331-1.521.569-.625-3.411-12.797-4.73-14.467-6.033-11.772 12.572-26.006 4.48-3.426 4.785-3.849 4.555-6.302-.189-2.012-4.81-13.623-7.882-19.804-.82-1.65-2.009-4.335-2.641-5.966-1.772-4.57-3.648-6.198-6.033-5.236m96.668.395c-.807.807-2.36 3.975-4.415 9.007-.629 1.54-2.336 5.5-3.793 8.8-6.848 15.511-6.888 14.52.812 19.977 8.955 6.347 14.589 11.497 14.589 13.337-.001.946-3.853 12.713-6.344 19.376-1.908 5.104-1.758 5.362 9.369 16.04 11.414 10.953 11.327 10.936 17.454 3.294 1.565-1.952 8.193-9.257 9.696-10.687 2.159-2.052 4.75-.516 12.425 7.366 14.713 15.111 20.166 22.564 19.029 26.01-.732 2.216-7.044 12.21-9.14 14.469-1.679 1.811-4.565 5.349-11.089 13.6-8.574 10.841-41.872 43.429-47.041 46.036-3.976 2.006-3.759.609-3.759 24.2 0 22.706-.039 22.382 2.721 22.382 1.569 0 2.82-.883 13.163-9.293 1.696-1.379 4.396-3.568 6-4.864 1.604-1.297 4.176-3.562 5.716-5.034 1.54-1.471 3.97-3.592 5.4-4.712 1.43-1.121 3.86-3.33 5.4-4.911 1.54-1.58 3.7-3.585 4.8-4.454 3.3-2.61 18.909-17.902 21.546-21.109 1.35-1.642 3.464-4.074 4.698-5.404 2.215-2.389 3.163-3.563 8.898-11.019 7.577-9.85 14.393-21.081 21.886-36.056 5.889-11.771 5.957-12.57 1.607-18.893-.659-.959-2.706-4.332-4.548-7.497-7.471-12.836-15.422-25.234-21.131-32.954-13.902-18.797-15.65-20.983-22.616-28.278-7.44-7.792-13.149-13.243-18.142-17.322-7.348-6.003-18.73-14.447-28.138-20.874-2.216-1.514-3.895-1.691-5.053-.533m-48.324 38.234c-.492.345-1.784 1.944-2.871 3.555-2.76 4.091-6.753 8.511-10.568 11.697-1.784 1.491-9.814 9.219-17.844 17.174-8.03 7.954-15.767 15.427-17.193 16.605-1.426 1.178-6.663 6.102-11.637 10.942-4.975 4.84-14.224 13.736-20.555 19.769-12.119 11.549-13.028 12.587-12.985 14.831.042 2.222.386 2.728 5.306 7.8 2.561 2.64 6.154 6.375 7.986 8.3 5.068 5.328 4.972 5.368 18.52-7.778 5.647-5.48 6.33-5.384 13.358 1.876 1.43 1.478 6.38 6.205 11 10.506s14.823 14.086 22.674 21.744c17.648 17.215 15.94 16.543 23.171 9.12 2.555-2.623 5.293-5.283 6.085-5.912 1.798-1.43 21.471-20.066 26.871-25.456 7.915-7.901 16.576-15.779 17.64-16.046 1.759-.441 3.27.704 10.693 8.098 8.234 8.203 9.025 8.556 11.835 5.279.787-.919 2.988-3.304 4.891-5.3 11.519-12.086 11.901-13.498 5.206-19.285-1.686-1.458-10.356-9.712-19.266-18.343-8.91-8.631-17.28-16.642-18.6-17.803-1.32-1.16-5.756-5.46-9.857-9.555-13.461-13.439-19.294-19.065-22.743-21.936-4.84-4.029-11.755-11.258-15.099-15.785-3.522-4.767-4.303-5.299-6.018-4.097m2.802 27.673c.335.385 1.442 2.328 2.46 4.318 1.977 3.863 6.153 8.307 16.146 17.182 2.23 1.98 5.461 5.196 7.181 7.146 1.721 1.951 4.658 4.92 6.528 6.597 13.563 12.168 15.184 14.028 14.195 16.285-.513 1.169-10.056 10.824-15.845 16.029-1.677 1.509-8.247 7.714-14.6 13.789-15.23 14.565-15.45 14.754-17.166 14.754-1.572 0-2.598-.881-16.275-13.988-4.24-4.063-12.901-12.339-19.247-18.392-11.302-10.781-12.662-12.29-12.662-14.049 0-.61 3.353-4.137 11.3-11.884 6.215-6.059 13.19-12.935 15.5-15.281 2.31-2.346 5.763-5.566 7.674-7.157 5.063-4.214 8.072-7.596 9.55-10.734 2.323-4.934 3.832-6.258 5.261-4.615m-2.368 9.95c-.265.113-1.38 1.408-2.476 2.878-1.977 2.648-14.1 14.843-18.559 18.667-1.275 1.094-5.46 5.272-9.3 9.285-7.641 7.986-7.921 8.488-6.192 11.11 1.133 1.72 37.333 37.449 37.81 37.319 1.004-.273 37.7-37.781 37.942-38.781.143-.59.087-1.526-.124-2.08-.428-1.128-12.115-13.671-14.262-15.309-.758-.578-6.175-6.02-12.038-12.095-10.112-10.476-11.405-11.586-12.801-10.994m2.203 16.313c1.773.925 21.6 21.18 21.9 22.373.147.585.144 1.553-.006 2.15-.348 1.389-22.144 23.394-23.007 23.23-.334-.064-5.602-5.183-11.707-11.376-14.563-14.772-14.98-10.815 3.09-29.282 7.377-7.538 8.003-7.995 9.73-7.095m-16.023 95.832c-1.603 1.261-15.227 23.557-15.633 25.583-.163.818.3 3.34 1.382 7.526.895 3.463 2.229 8.906 2.966 12.096 1.606 6.958 7.686 30.805 12.085 47.4 1.75 6.6 3.462 13.17 3.805 14.6 2.478 10.341 6.74 26.114 7.411 27.429.446.875 1.034 2.724 1.307 4.11.889 4.517 2.575 4.686 3.753.378.379-1.385 1.284-4.407 2.012-6.717.727-2.31 1.728-6 2.222-8.2.495-2.2 1.149-4.99 1.455-6.2 2.792-11.062 9.84-38.585 11.933-46.6 1.437-5.5 3.071-11.98 3.632-14.4.56-2.42 1.807-7.37 2.77-11 2.989-11.267 4.603-18.241 4.603-19.885 0-2.163-.932-3.846-9.589-17.315-1.485-2.31-3.156-5.01-3.714-6-2.806-4.983-5.381-4.588-10.137 1.555-2.771 3.579-3.209 4.54-3.962 8.681-2.699 14.846-3.756 15.117-6.183 1.582-1.658-9.245-8.484-17.481-12.118-14.623"},null,-1)])])}const n0=Q(eoe,[["render",noe],["__scopeId","data-v-81223df9"]]),roe={class:"content"},aoe={class:"format"},soe={class:"format-text"},ioe={key:0,class:"details built"},ooe={class:"title"},Aoe={class:"extra-info"},loe={class:"info-time"},coe={key:1,class:"details stats"},uoe={class:"stat-column"},doe={class:"descriptor"},foe={class:"stat-column"},poe={class:"number"},hoe={class:"descriptor"},moe=o.defineComponent({__name:"DeckBlock",props:Gie,emits:["click:share","click:edit-name","click:update-privacy","click:delete"],setup(e,{emit:t}){const{t:n}=Y(),r=o.inject(Nr),a=e,s=t,i=o.ref(!1),A=o.computed(()=>Et(a.deckCode)),l=o.computed(()=>ln(A.value)),c=o.computed(()=>vl(l.value)),u=o.computed(()=>l.value.filter(m=>ro(m))),d=o.computed(()=>{var y;const m=(y=ya(l.value,A.value,1)[0])==null?void 0:y.cardCode;return{"--background-image":`url(${_e().callbacks.cardImageCallback(m??"",_t.Full)})`}}),f=o.computed(()=>TS(l.value)),p=o.computed(()=>f.value.map(m=>Be().dataJson.cardFormats.find(y=>y.nameRef===m)).filter(m=>m!==void 0).sort((m,y)=>m.order-y.order)[0]),h=o.computed(()=>({showButtons:{deleteDeck:a.type==="built"?a.showOwnerButtons:!1,updateDeckPrivacy:a.type==="built"?a.showOwnerButtons:!1,editDeckName:a.type==="built"?a.showOwnerButtons:!1,gemsCost:!1,openArchetypePage:a.type!=="built",simulateMulligan:!0,openInDeckBuilder:!0,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!1},deckCode:a.deckCode,deckBuilderRouterLink:a.deckBuilderRouterLink,archetypeRouterLink:a.type==="built"?void 0:a.archetypeRouterLink,deckId:a.type==="built"?a.deckId:void 0,deckName:a.type==="built"?a.deckName:void 0,isPrivate:a.type==="built"?a.isPrivate:void 0}));return(m,y)=>{const g=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(g,{to:a.routerLink},{default:o.withCtx(()=>{var w,B,v;return[o.createElementVNode("div",{class:o.normalizeClass(["built-deck-preview",i.value?"show":"hide"]),style:o.normalizeStyle(d.value)},[y[8]||(y[8]=o.createElementVNode("div",{class:"background"},null,-1)),o.createVNode(yf,{class:"deck-highlight-eye icon","deck-code":a.deckCode,onClick:y[0]||(y[0]=o.withModifiers(()=>{},["stop","prevent"])),"deck-buttons-props":{...h.value,showButtons:{...h.value.showButtons,gemsCost:!0,shareDeck:!0}}},null,8,["deck-code","deck-buttons-props"]),o.createElementVNode("div",{class:"options-button icon",onClick:y[1]||(y[1]=o.withModifiers(_=>i.value=!i.value,["stop","prevent"]))},[o.createVNode(o.unref(Se),{icon:"ellipsis-v"})]),o.createVNode(Qo,o.mergeProps({class:"deck-buttons",onClick:y[2]||(y[2]=o.withModifiers(()=>{},["stop","prevent"])),"onClick:delete":y[3]||(y[3]=_=>s("click:delete")),"onClick:editName":y[4]||(y[4]=_=>s("click:edit-name")),"onClick:share":y[5]||(y[5]=_=>s("click:share")),"onClick:updatePrivacy":y[6]||(y[6]=_=>s("click:update-privacy"))},h.value),null,16),o.createVNode(Tl,{class:"deck-highlight-regions deck-highlight-section",regions:c.value},null,8,["regions"]),o.createElementVNode("div",roe,[o.createElementVNode("div",aoe,[((w=p.value)==null?void 0:w.nameRef)===o.unref(sr).Eternal?(o.openBlock(),o.createBlock(e0,{key:0,class:"format-icon"})):((B=p.value)==null?void 0:B.nameRef)===o.unref(sr).Standard?(o.openBlock(),o.createBlock(t0,{key:1,class:"format-icon"})):(o.openBlock(),o.createBlock(n0,{key:2,class:"format-icon"})),o.createElementVNode("span",soe,o.toDisplayString((v=p.value)==null?void 0:v.name),1)]),o.createVNode(Il,{class:"deck-highlight-cards deck-highlight-section",cards:u.value},null,8,["cards"])]),a.type==="built"?(o.openBlock(),o.createElementBlock("div",ioe,[o.createElementVNode("div",ooe,o.toDisplayString(a.deckName),1),o.createElementVNode("div",Aoe,[o.createElementVNode("div",{class:"info-user",onClick:y[7]||(y[7]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createVNode(g,{to:a.playerRouterLink},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(a.userName),1)]),_:1},8,["to"])]),o.createElementVNode("div",loe,o.toDisplayString(o.unref(r)(a.updatedAt).fromNow()),1)])])):o.createCommentVNode("",!0),a.type==="stats"?(o.openBlock(),o.createElementBlock("div",coe,[o.createElementVNode("div",uoe,[o.createElementVNode("div",{class:"number",style:o.normalizeStyle({color:`var(${o.unref(Yn)(a.wins/a.matches)})`})},o.toDisplayString(o.unref(Te)(a.wins/a.matches*100,1,3))+"% ",5),o.createElementVNode("div",doe,o.toDisplayString(o.unref(n)("general.winrate")),1)]),o.createElementVNode("div",foe,[o.createElementVNode("div",poe,o.toDisplayString(o.unref(Te)(a.matches,0,10)),1),o.createElementVNode("div",hoe,o.toDisplayString(o.unref(n)("general.matches")),1)])])):o.createCommentVNode("",!0)],6)]}),_:1},8,["to"])}}});const uE=Q(moe,[["__scopeId","data-v-5e85fdba"]]),goe={headingItems:{type:Array,required:!0,default:[]}},voe={class:"table-wrapper"},yoe={class:"table no-scrollbar"},Boe={class:"heading wrapper"},woe=o.defineComponent({__name:"SmallTable",props:goe,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",voe,[o.createElementVNode("div",yoe,[o.createElementVNode("div",Boe,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.headingItems,a=>(o.openBlock(),o.createElementBlock("div",{key:a.title,class:"heading-cell column-content"},[o.createElementVNode("div",null,o.toDisplayString(a.title),1)]))),128)),o.renderSlot(n.$slots,"heading",{},void 0,!0)]),o.renderSlot(n.$slots,"default",{},void 0,!0)])]))}});const _i=Q(woe,[["__scopeId","data-v-20cc8387"]]),boe={players:{type:Array,required:!0,default:[]}},_oe={class:"leaderboard-top"},Coe={class:"heading-wrapper"},koe=o.defineComponent({__name:"LeaderboardTop",props:boe,setup(e){const t=e,n=o.computed(()=>Be().dataJson.servers.map(r=>t.players.filter(a=>a.server===r.nameRef).sort((a,s)=>a.rank-s.rank).slice(0,10)));return(r,a)=>(o.openBlock(),o.createElementBlock("div",_oe,[a[0]||(a[0]=o.createElementVNode("div",{class:"heading-background"},null,-1)),o.createElementVNode("div",Coe,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(Be)().dataJson.servers,s=>(o.openBlock(),o.createElementBlock("div",{key:s.nameRef,class:"heading"},o.toDisplayString(s.name),1))),128))]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,(s,i)=>(o.openBlock(),o.createElementBlock("div",{key:i,class:"top-10"},[o.createVNode(J1,{players:s},null,8,["players"])]))),128))]))}});const dE=Q(koe,[["__scopeId","data-v-48a25357"]]),Eoe={flipped:{type:Boolean,required:!0,default:!0},cardCode:{type:String,required:!0,default:"01IO001"}},Soe={class:"card-item-3d"},xoe=o.defineComponent({__name:"CardItem3d",props:Eoe,setup(e){const t=e,n=o.computed(()=>{const s=yl(void 0,t.cardCode,!0);if(s.value===void 0)return{};const i=s.value.regionRefs[0]??"Runeterra";return{content:`url(${_e().callbacks.cardbackCallback(i)})`}}),r=o.computed(()=>({"background-image":`url("${_e().callbacks.cardImageCallback(t.cardCode,_t.Card)}")`,"background-size":"cover"})),a=o.computed(()=>t.flipped?["flipped"]:[]);return(s,i)=>(o.openBlock(),o.createElementBlock("div",Soe,[o.createElementVNode("div",{class:o.normalizeClass(["card",a.value])},[o.createElementVNode("div",{class:"front face",style:o.normalizeStyle(n.value)},null,4),o.createElementVNode("div",{class:"back face",style:o.normalizeStyle(r.value)},null,4)],2)]))}});const r0=Q(xoe,[["__scopeId","data-v-1f9dece8"]]),Foe={cardFlips:{type:Array,required:!0,default:[]},chosenCardCode:{type:String,required:!0,default:null},opensAvailable:{type:Number,required:!0,default:0}},Toe={class:"card-lottery"},Ioe={class:"cards"},Doe={key:0,class:"bottom"},Uoe={class:"slice"},Ooe={class:"circle-slice-item-wrapper"},Loe={class:"options"},Qoe={class:"icon"},Moe={class:"circle-card-item-wrapper"},Noe=o.defineComponent({__name:"CardLottery",props:Foe,emits:["update:cardFlips","update:chosenCardCode","click:setBanner","click:setIcon","click:openAnother"],setup(e,{emit:t}){const n=e,r=t;function a(s){r("update:chosenCardCode",s.cardCode),s.flipped=!0;for(const i of n.cardFlips)s!==i&&setTimeout(()=>{i.display=!1},1e3)}return(s,i)=>{var l,c,u;const A=o.resolveDirective("t");return o.openBlock(),o.createElementBlock("div",Toe,[o.createElementVNode("div",Ioe,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.cardFlips,d=>(o.openBlock(),o.createElementBlock("div",{key:`${d.cardCode}`,class:o.normalizeClass(["card-item-3d-wrapper",d.display?null:"hide"])},[o.createVNode(r0,{flipped:d.flipped,"card-code":d.cardCode,onClick:f=>a(d)},null,8,["flipped","card-code","onClick"])],2))),128))]),s.chosenCardCode?(o.openBlock(),o.createElementBlock("div",Doe,[o.createElementVNode("div",Uoe,[o.createElementVNode("div",Ooe,[o.createVNode(bt,{name:(l=o.unref(nn)().user)==null?void 0:l.name,"mana-number":1,"card-code-prop":s.chosenCardCode,"ignore-card-item":!0,color:((c=o.unref(nn)().user)==null?void 0:c.selectedBannerColor)??"var(--color-background-2-rgb)","router-link":""},null,8,["name","card-code-prop","color"])])]),o.createElementVNode("div",Loe,[o.withDirectives(o.createElementVNode("button",{onClick:i[0]||(i[0]=d=>r("click:setBanner")),class:"fancy-button"},null,512),[[A,"cardLottery.setBanner"]]),o.withDirectives(o.createElementVNode("button",{onClick:i[1]||(i[1]=d=>r("click:setIcon")),class:"fancy-button"},null,512),[[A,"cardLottery.setIcon"]]),o.createElementVNode("button",{class:"fancy-button",onClick:i[2]||(i[2]=d=>r("click:openAnother"))},[o.withDirectives(o.createElementVNode("span",null,null,512),[[A,"cardLottery.openAnother"]]),o.createElementVNode("span",null," ("+o.toDisplayString(n.opensAvailable)+") ",1)])]),o.createElementVNode("div",Qoe,[o.createElementVNode("div",Moe,[o.createVNode(Ta,{"color-override":((u=o.unref(nn)().user)==null?void 0:u.selectedBannerColor)??"var(--color-primary-2)","card-code-prop":s.chosenCardCode,"ignore-card-item":!0,"router-link":""},null,8,["color-override","card-code-prop"])])])])):o.createCommentVNode("",!0)])}}});const fE=Q(Noe,[["__scopeId","data-v-53ddcbb6"]]),Poe={bannerCardCode:{type:String,required:!0,default:""},bannerColor:{type:String,required:!0,default:""},iconCardCode:{type:String,required:!0,default:""},name:{type:String,required:!0,default:""},server:{type:String,required:!0,default:""},matches:{type:Number,required:!0,default:1},wins:{type:Number,required:!0,default:1},premiumExpiration:{type:Date,required:!1,default:null},isPremiumRenewing:{type:Boolean,required:!0,default:!1},routerLink:{type:Object,required:!0,default:""},premiumLink:{type:Object,required:!0,default:""}},Roe={wins:{type:Number,required:!0,default:1},matches:{type:Number,required:!0,default:2},cutout:{type:Number,required:!1,default:145}},a0=o.defineComponent({__name:"WinrateDoughnutChart",props:Roe,setup(e){const t=o.ref(null);He.register(...Rr);const n=e,r=o.computed(()=>({labels:["Wins","Losses"],datasets:[{data:[n.wins,n.matches-n.wins],backgroundColor:["#00adff","#ff5153"]}]})),a={cutout:n.cutout,elements:{arc:{borderWidth:0}},plugins:{legend:{display:!1},datalabels:{display:!1}}},s=[{id:"text",beforeDraw:function(i){const A=i.chartArea.width,l=i.chartArea.height,c=i.ctx;c.restore();const u=(l/100).toFixed(2);c.font=`bold ${u}em sans-serif`,c.textBaseline="middle";const d=i.data.datasets[0].data[0],f=i.data.datasets[0].data[1],p=(d/(d+f)*100).toFixed(2)+"%",h=Math.round((A-c.measureText(p).width)/2),m=l/2;d>f?c.fillStyle="#00adff":d<f?c.fillStyle="#ff5153":c.fillStyle="#ffffff",c.fillText(p,h,m),c.save()}}];return(i,A)=>(o.openBlock(),o.createBlock(o.unref(Rd),{ref_key:"chart",ref:t,"chart-data":r.value,options:a,plugins:s},null,8,["chart-data"]))}}),Hoe={class:"dashboard-profile"},Voe={class:"profile-banner"},$oe=["src"],Koe={class:"edit-banner"},zoe={class:"profile-text"},Woe={class:"profile-region"},Goe={class:"profile-tiles"},joe={class:"profile-tile"},Yoe={class:"tile-content"},qoe={class:"games-text"},Xoe={class:"tile-text"},Joe={class:"profile-tile"},Zoe={class:"chart-container"},eAe={class:"tile-content"},tAe={class:"tile-text"},nAe={key:0,class:"profile-premium-expiration"},rAe={class:"profile-premium-expiration-time"},aAe=o.defineComponent({__name:"DashboardProfile",props:Poe,setup(e){const{t}=Y(),n=o.inject(Nr),r=e;return(a,s)=>{const i=o.resolveComponent("RouterLink");return o.openBlock(),o.createElementBlock("div",Hoe,[o.createElementVNode("div",Voe,[o.createElementVNode("img",{alt:"Profile Banner",src:o.unref(_e)().callbacks.cardImageCallback(r.bannerCardCode??"05BC160",o.unref(_t).Banner),class:"profile-banner-img"},null,8,$oe),o.createVNode(Ta,{"card-code-prop":r.iconCardCode??"05BC160","ignore-card-item":!0,"color-override":r.bannerColor,"router-link":r.routerLink},null,8,["card-code-prop","color-override","router-link"]),o.createElementVNode("div",Koe,[o.createVNode(o.unref(Se),{icon:"pencil-alt"})])]),o.createElementVNode("div",zoe,[o.createVNode(i,{to:r.routerLink,class:"profile-name"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(r.name),1)]),_:1},8,["to"]),o.createElementVNode("div",Woe,o.toDisplayString(r.server),1)]),o.createElementVNode("div",Goe,[o.createElementVNode("div",joe,[o.createElementVNode("div",Yoe,[o.createElementVNode("div",qoe,o.toDisplayString(o.unref(Te)(r.matches,0,10)),1)]),o.createElementVNode("div",Xoe,o.toDisplayString(o.unref(t)("general.gamesPlayed")),1)]),o.createElementVNode("div",Joe,[o.createElementVNode("div",Zoe,[o.createElementVNode("div",eAe,[o.createVNode(a0,{matches:r.matches,wins:r.wins,cutout:30},null,8,["matches","wins"])])]),o.createElementVNode("div",tAe,o.toDisplayString(o.unref(t)("general.winrate")),1)])]),r.premiumExpiration?(o.openBlock(),o.createElementBlock("div",nAe,[o.createTextVNode(o.toDisplayString(o.unref(t)("general.premium"))+" "+o.toDisplayString(r.isPremiumRenewing?o.unref(t)("general.renews"):o.unref(t)("general.expires"))+" ",1),o.createElementVNode("b",rAe,o.toDisplayString(o.unref(n)(r.premiumExpiration).fromNow()),1)])):(o.openBlock(),o.createBlock(i,{key:1,to:r.premiumLink,class:"profile-premium fancy-button"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(t)("general.getPremium")),1)]),_:1},8,["to"]))])}}});const pE=Q(aAe,[["__scopeId","data-v-592eac82"]]),sAe={data:{type:Array,required:!0,default:[]},type:{type:String,required:!0,default:"totalPlayers"},server:{type:String,required:!1}};function iAe(e,t){const{t:n}=Y();He.register(bi),e.plugins||(e.plugins={}),e.plugins.annotation||(e.plugins.annotation={}),e.plugins.annotation.annotations=[];let r=new Date("1972-01-01"),a=new Date("3000-12-01");for(const i of t)i>r&&(r=i),i<a&&(a=i);const s=[];for(const i of Object.values(Be().dataJson.patches))new Date(i.startTime)<=r&&new Date(i.startTime)>=a&&s.push(i);for(const i of s)e.plugins.annotation.annotations.push({type:"line",xMin:i.startTime,xMax:i.startTime,borderColor:"rgba(255, 255, 255, 0.1)",borderDash:[10,5],borderWidth:1,label:{content:`${n("general.patch")} ${i.name}`,display:!0,position:"start",font:{weight:"normal"},backgroundColor:"rgba(0,0,0,0.2)"}})}const hE=o.defineComponent({__name:"LeaderboardChart",props:sAe,setup(e){const t=o.ref();He.register(...Rr),He.register(bi);const n=e,r=o.computed(()=>n.data.slice().sort((i,A)=>+i.date-+A.date)),a=o.computed(()=>{let i;return n.type==="totalPlayers"?i=Be().dataJson.servers.filter(A=>n.server===null?!0:A.nameRef===n.server).map(A=>({label:A.name,borderColor:E0(A.nameRef),data:r.value.filter(l=>l.server===A.nameRef).map(l=>l.players),pointBackgroundColor:"rgba(255, 255, 255, 0.25)"})):i=r.value.reduce((A,l)=>A.includes(l.name)?A:[...A,l.name],[]).map(A=>({label:A,borderColor:E0(A),data:r.value.filter(l=>l.name===A).map(l=>n.type==="lp"?l.lp:l.rank),pointBackgroundColor:"rgba(255, 255, 255, 0.25)"})),{labels:r.value.map(A=>A.date).filter((A,l,c)=>c.findIndex(u=>u.getTime()===A.getTime())===l),datasets:i}}),s={plugins:{legend:{display:!0},tooltip:{mode:"nearest",position:"nearest",axis:"x",intersect:!1},annotation:{annotations:[]},datalabels:{display:!1}},elements:{line:{tension:.25}},scales:{x:{type:"time",time:{unit:"day",displayFormats:{day:"MMM D"},tooltipFormat:"MMM D"}}}};return iAe(s,n.data.map(i=>i.date)),(i,A)=>(o.openBlock(),o.createBlock(o.unref(Nk),{ref_key:"chart",ref:t,"chart-data":a.value,options:s},null,8,["chart-data"]))}}),oAe={data:{type:Array,required:!0,default:[]},type:{type:Object,required:!0,default:"winrate"},baseline:{type:Number,required:!1,default:50}},mE=o.defineComponent({__name:"CardQuantityBarChart",props:oAe,setup(e){const{t}=Y(),n=o.ref();He.register(...Rr),He.register(bi),He.register(Jd);const r=e,a=o.computed(()=>({labels:r.data.map(i=>i.quantity),datasets:[{backgroundColor:r.data.map(i=>i.wins*2>=i.matches?"rgba(0, 173, 255, 0.5)":"rgba(255, 81, 83, 0.5)"),borderWidth:0,borderRadius:9999,data:r.data.map(i=>r.type==="winrate"?i.wins/i.matches*100-r.baseline:i.matches)}]})),s={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:!0,mode:"index",intersect:!1,callbacks:{title(i){return`${t("general.quantity")}: ${i[0].label}`},label(i){return r.type==="winrate"?(i.dataset.data[i.dataIndex]+r.baseline).toFixed(2)+"%":i.dataset.data[i.dataIndex].toString()},footer(i){return[`${t("general.matches")}: ${r.data[i[0].dataIndex].matches}`,`${t("general.wins")}: ${r.data[i[0].dataIndex].wins}`]}}},datalabels:{display:!1}},scales:{y:{title:{display:!0,text:r.type==="winrate"?t("general.winrate"):t("general.matches")},ticks:{callback(i){return r.type==="winrate"?i+r.baseline+"%":i}}},x:{title:{display:!0,text:t("general.quantity")}}}};return(i,A)=>(o.openBlock(),o.createBlock(o.unref(Pd),{ref_key:"chart",ref:n,"chart-data":a.value,options:s},null,8,["chart-data"]))}}),AAe={data:{type:Array,required:!0,default:""}},gE=o.defineComponent({__name:"WinsLossesBarChart",props:AAe,setup(e){const{t}=Y(),n=o.ref();He.register(...Rr),He.register(bi),He.register(Jd);const r=e,a=o.computed(()=>r.data.length===0?!1:typeof r.data[0].column!="string"),s=o.computed(()=>a.value?r.data.slice().sort((u,d)=>u.column.getTime()-d.column.getTime()):r.data),i=o.computed(()=>[...new Set(s.value.map(u=>u.column))]),A=o.computed(()=>({losses:s.value.map(u=>u.matches-u.wins),wins:s.value.map(u=>u.wins)})),l=o.computed(()=>({labels:i.value,datasets:Object.entries(A.value).map((u,d)=>({backgroundColor:u[0]==="wins"?`rgba(${os("--color-good-rgb")}, 0.5)`:`rgba(${os("--color-bad-rgb")}, 0.5)`,data:u[1],borderRadius:d===0?{topLeft:0,topRight:0,bottomLeft:10,bottomRight:10}:{topLeft:10,topRight:10,bottomLeft:0,bottomRight:0},borderSkipped:!1,label:t(`general.${u[0]}`),barPercentage:.5}))})),c={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:!0,mode:"index",intersect:!1,callbacks:{footer(u){if(u.length===0)return"";let d=0;const f=u[0].chart.data.datasets[1].data[u[0].dataIndex];for(let p=0;p<u[0].chart.data.datasets.length;p++)d+=u[0].chart.data.datasets[p].data[u[0].dataIndex];return`${t("general.total")}: ${d}
|
|
698
698
|
${t("general.winrate")}: ${Te(f/d*100,1,3)}%`}}},datalabels:{align:"end",anchor:"end",formatter(u,d){const f=s.value[d.dataIndex];return Te(f.wins/f.matches*100,2)+"%"},display(u){return u.datasetIndex===u.chart.data.datasets.length-1}}},scales:{x:{type:a.value?"time":"category",time:{unit:"day",displayFormats:{day:"MMM D"},tooltipFormat:"MMM D"},stacked:!0,grid:{display:!1}},y:{stacked:!0,grid:{display:!1},display:!0}}};return(u,d)=>(o.openBlock(),o.createBlock(o.unref(Pd),{ref_key:"chart",ref:n,"chart-data":l.value,options:c},null,8,["chart-data"]))}}),lAe={data:{type:Array,required:!0,default:[]},type:{type:String,required:!0,default:"winrate"},baseline:{type:Number,required:!1,default:50}},vE=o.defineComponent({__name:"RoundCardInfoBarChart",props:lAe,setup(e){const{t}=Y(),n=o.ref();He.register(...Rr),He.register(bi),He.register(Jd);const r=e,a=o.computed(()=>Object.values(kS(r.data,A=>A.copy))),s=o.computed(()=>({labels:Array.from(r.data.reduce((A,l)=>A.add(l.round),new Set)),datasets:a.value.map(A=>{var l;return{backgroundColor:A.map(c=>c.wins*2>=c.matches?"rgba(0, 173, 255, 0.5)":"rgba(255, 81, 83, 0.5)"),borderWidth:0,borderRadius:9999,data:A.map(c=>c.wins/c.matches*100-r.baseline),label:`${t("general.copy")} ${(l=A[0])==null?void 0:l.copy}`}})})),i={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!0},tooltip:{enabled:!0,mode:"index",intersect:!1,callbacks:{title(A){return`${t("general.round")}: ${A[0].label}`},label(A){return(A.dataset.data[A.dataIndex]+r.baseline).toFixed(2)+"%"},footer(A){const l=[];for(const c of a.value)c[A[0].dataIndex]!==void 0&&l.push(`${t("general.copy")} ${c[A[0].dataIndex].copy}`,`${t("general.matches")}: ${c[A[0].dataIndex].matches}`,`${t("general.wins")}: ${c[A[0].dataIndex].wins}`);return l}}},datalabels:{display:!1}},scales:{y:{title:{display:!0,text:t("general.winrate")},ticks:{callback(A){return A+r.baseline+"%"}}},x:{title:{display:!0,text:r.type==="drawn"?t("cards.roundDrawn"):t("cards.roundPlayed")}}}};return(A,l)=>(o.openBlock(),o.createBlock(o.unref(Pd),{ref_key:"chart",ref:n,"chart-data":s.value,options:i},null,8,["chart-data"]))}}),cAe={data:{type:Array,required:!0,default:[]},baseline:{type:Number,required:!1,default:50},type:{type:String,required:!0,default:"winrate"},yAxis:{type:String,required:!0,default:"date"}},yE=o.defineComponent({__name:"LineChart",props:cAe,setup(e){const{t}=Y(),n=o.ref();He.register(...Rr),He.register(bi);const r=e,a=o.computed(()=>({labels:r.data.map(A=>A.label),datasets:[{borderColor:"rgba(255, 255, 255, 0.1)",data:r.data.map(A=>A.totalMatches&&r.type==="playrate"?A.matches/(A.totalMatches??1)*100:A.winrate*100),pointBackgroundColor:"rgba(255, 255, 255, 0.25)"},{pointBackgroundColor:"rgba(255, 255, 255, 0)",data:r.data.map(()=>r.baseline),borderColor:"rgba(0, 0, 0, 0.05)"}]})),s=o.computed(()=>({plugins:{legend:{display:!1},tooltip:{mode:"nearest",position:"nearest",axis:"x",intersect:!1,filter:function(A){return A.datasetIndex===0},callbacks:{label(A){let l=A.dataset.label||"";return l&&(l+=": "),l+=A.parsed.y+"%",l},footer:A=>{let l="";return A[0].dataIndex!==null&&r.data[A[0].dataIndex].matches&&(l+=`${t("general.matches")}: ${r.data[A[0].dataIndex].matches}`),l}}},annotation:{annotations:[]},datalabels:{display:!1}},elements:{line:{tension:.25}},scales:{x:r.yAxis==="date"?{type:"time",time:{unit:"day",displayFormats:{day:"MMM D"},tooltipFormat:"MMM D"}}:void 0}})),i=[{id:"chartGradient",beforeDraw:function(A){if(!A.scales.y)return;const l=A.ctx.createLinearGradient(0,0,0,A.height);if(l.addColorStop(0,"rgba(0, 173, 255, 0.25)"),r.type==="playrate"){l.addColorStop(1,"rgba(0, 173, 255, 0)"),A.config.data.datasets[0].fill={target:1,above:l},A.update();return}const c=A.scales.y,u=Math.max.apply(null,A.data.datasets[0].data),d=c.getPixelForValue(u),f=c.getPixelForValue(50),p=Math.min(Math.min.apply(null,A.data.datasets[0].data),50),h=c.getPixelForValue(p),m=Math.max(Math.min((f-d)/(h-d),1),0);l.addColorStop(Math.max(m-.08,0),"rgba(0, 173, 255, 0)");const y=A.ctx.createLinearGradient(0,0,0,A.height);y.addColorStop(m,"rgba(255, 81, 83, 0)"),y.addColorStop(1,"rgba(255, 81, 83, 0.25)"),A.config.data.datasets[0].fill={target:1,above:l,below:y},A.update()}}];return(A,l)=>(o.openBlock(),o.createBlock(o.unref(Nk),{ref_key:"chart",ref:n,"chart-data":a.value,options:s.value,plugins:i},null,8,["chart-data","options"]))}}),uAe={deckRows:{type:Array,required:!0,default:[]},loading:{type:Boolean,required:!1,default:!1}},dAe=o.defineComponent({__name:"BuiltDecksTable",props:uAe,emits:["sort-updated"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.ref([{id:"deck",isShown:!0,sortDirection:we.NOT_SORTABLE,title:n("general.deck")},{id:"name",isShown:!0,sortDirection:we.NEITHER,title:n("general.name")},{id:"updatedAt",isShown:!0,sortDirection:we.DOWN,title:n("general.updated")},{id:"createdAt",isShown:!0,sortDirection:we.NEITHER,title:n("general.created")},{id:"manaCurve",isShown:!0,sortDirection:we.NOT_SORTABLE,title:n("general.manaCurve")},{id:"cost",isShown:!0,sortDirection:we.NOT_SORTABLE,title:n("general.cost")}]);function i(A){const l=hi(A,s);l&&a("sort-updated",l)}return(A,l)=>(o.openBlock(),o.createBlock(Fa,{class:"large-table",loading:r.loading,"heading-items":s.value,onToggleSort:i},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.deckRows,(c,u)=>(o.openBlock(),o.createBlock(ql,{id:c.id,key:c.id,type:"built","deck-code":c.deckCode,name:c.name,"created-at":c.createdAt,"updated-at":c.updatedAt,index:u+2},null,8,["id","deck-code","name","created-at","updated-at","index"]))),128))]),_:1},8,["loading","heading-items"]))}});const BE=Q(dAe,[["__scopeId","data-v-3cbac27b"]]),fAe={regionNameRef:{type:String,required:!0,default:"01IO001"},matches:{type:Number,required:!0,default:0},wins:{type:Number,required:!0,default:0},index:{type:Number,required:!0,default:0}},pAe={class:"wrapper"},hAe={class:"champion-column column-content"},mAe={class:"matches-column column-content"},gAe=o.defineComponent({__name:"ProfileRegionRow",props:fAe,setup(e){const t=e,n=o.computed(()=>Be().dataJson.regions.find(a=>a.nameRef===t.regionNameRef)),r=o.computed(()=>{var a;return _e().callbacks.cardImageCallback(((a=n.value)==null?void 0:a.cardCode)??"",_t.Banner)});return(a,s)=>{var i;return o.openBlock(),o.createElementBlock("div",{class:"profile-champion-row wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",{class:"small-table-background",style:o.normalizeStyle({"--background-image":`url(${r.value})`})},null,4),o.createElementVNode("div",pAe,[o.createElementVNode("div",hAe,[o.createVNode(Fl,{"region-ref":t.regionNameRef},null,8,["region-ref"]),o.createElementVNode("span",null,o.toDisplayString((i=n.value)==null?void 0:i.name),1)]),o.createElementVNode("div",mAe,o.toDisplayString(o.unref(Te)(t.matches,0,10)),1),o.createElementVNode("div",{class:"winrate-column column-content",style:o.normalizeStyle({color:`var(${o.unref(Yn)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Te)(t.wins/t.matches*100,1,3))+"% ",5)])],4)}}});const s0=Q(gAe,[["__scopeId","data-v-b0ce9955"]]),vAe={rows:{type:Array,required:!0,default:[]}},yAe=o.defineComponent({__name:"ProfileRegionTable",props:vAe,setup(e){const{t}=Y(),n=e,r=[{title:t("general.regions"),id:"regions"},{title:t("general.matches"),id:"matches"},{title:t("general.winrate"),id:"winrate"}];return(a,s)=>(o.openBlock(),o.createBlock(_i,{class:"small-table","heading-items":r},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.rows,i=>(o.openBlock(),o.createBlock(s0,{key:i.regionNameRef,"region-name-ref":i.regionNameRef,matches:i.matches,wins:i.wins,index:i.index+2},null,8,["region-name-ref","matches","wins","index"]))),128))]),_:1}))}});const wE=Q(yAe,[["__scopeId","data-v-2dae645c"]]),BAe={rows:{type:Array,required:!0,default:[]}},wAe={archetypeId:{type:Number,required:!0,default:0},deckCode:{type:String,required:!0,default:""},matches:{type:Number,required:!0,default:0},wins:{type:Number,required:!0,default:0},index:{type:Number,required:!0,default:0}},bAe={class:"wrapper"},_Ae={class:"champion-column column-content"},CAe={class:"matches-column column-content"},kAe=o.defineComponent({__name:"ProfileArchetypeRow",props:wAe,setup(e){const t=e,n=o.computed(()=>Et(t.deckCode)),r=o.computed(()=>ln(n.value)),a=o.computed(()=>{var i;const s=(i=ya(r.value,n.value,1)[0])==null?void 0:i.cardCode;return _e().callbacks.cardImageCallback(s??"",_t.Banner)});return(s,i)=>(o.openBlock(),o.createElementBlock("div",{class:"profile-champion-row wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",{class:"small-table-background",style:o.normalizeStyle({"--background-image":`url(${a.value})`})},null,4),o.createElementVNode("div",bAe,[o.createElementVNode("div",_Ae,[o.createVNode(Ea,{"deck-code":t.deckCode},null,8,["deck-code"])]),o.createElementVNode("div",CAe,o.toDisplayString(o.unref(Te)(t.matches,0,10)),1),o.createElementVNode("div",{class:"winrate-column column-content",style:o.normalizeStyle({color:`var(${o.unref(Yn)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Te)(t.wins/t.matches*100,1,3))+"% ",5)])],4))}});const i0=Q(kAe,[["__scopeId","data-v-d5c99255"]]),EAe=o.defineComponent({__name:"ProfileArchetypeTable",props:BAe,setup(e){const{t}=Y(),n=e,r=[{title:t("general.archetypes"),id:"archetypes"},{title:t("general.matches"),id:"matches"},{title:t("general.winrate"),id:"winrate"}];return(a,s)=>(o.openBlock(),o.createBlock(_i,{class:"small-table","heading-items":r},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.rows,i=>(o.openBlock(),o.createBlock(i0,{key:i.archetypeId,"archetype-id":i.archetypeId,"deck-code":i.deckCode,matches:i.matches,wins:i.wins,index:i.index+2},null,8,["archetype-id","deck-code","matches","wins","index"]))),128))]),_:1}))}});const bE=Q(EAe,[["__scopeId","data-v-f883a9d9"]]),SAe={selectedRegion:{type:String,required:!0,default:null},selectedPlayers:{type:Array,required:!0,default:[]},selectedGraphOption:{type:String,required:!0,default:"totalPlayers"},players:{type:Array,required:!0,default:[]},updatedAt:{type:Number,required:!0,default:0},isGraphShown:{type:Boolean,required:!0,default:!1}},xAe={class:"leaderboard-options"},FAe={class:"multiselects"},TAe={class:"details"},IAe={class:"players"},DAe={class:"updated"},UAe=o.defineComponent({__name:"LeaderboardOptions",props:SAe,emits:["update:selectedPlayers","update:selectedRegion","update:selectedGraphOption"],setup(e,{emit:t}){const{t:n}=Y(),r=o.inject(Nr),a=e,s=t,i=[{name:n("leaderboard.lp"),nameRef:"lp"},{name:n("leaderboard.rank"),nameRef:"rank"},{name:n("leaderboard.totalPlayers"),nameRef:"totalPlayers"}],A=o.ref(a.selectedRegion),l=o.ref(a.selectedPlayers),c=o.ref(a.selectedGraphOption),u=o.computed(()=>A.value===null?a.players:a.players.filter(d=>d.server===A.value));return o.watch(A,d=>{s("update:selectedRegion",d),s("update:selectedPlayers",[])}),o.watch(l,d=>{s("update:selectedPlayers",d)}),o.watch(c,d=>{s("update:selectedGraphOption",d)}),o.watch(()=>a.selectedPlayers,d=>{l.value=d}),o.watch(()=>a.selectedRegion,d=>{A.value=d}),o.watch(()=>a.selectedGraphOption,d=>{c.value=d}),o.watch(()=>a.isGraphShown,d=>{d&&l.value.length>0&&(c.value="lp")}),(d,f)=>(o.openBlock(),o.createElementBlock("div",xAe,[o.createElementVNode("div",FAe,[o.createVNode(o.unref(qt),{modelValue:l.value,"onUpdate:modelValue":f[0]||(f[0]=p=>l.value=p),placeholder:o.unref(n)("general.players"),mode:A.value?"tags":"disabled",options:u.value,searchable:!0,label:"name","value-prop":"name"},null,8,["modelValue","placeholder","mode","options"]),o.createVNode(o.unref(qt),{modelValue:A.value,"onUpdate:modelValue":f[1]||(f[1]=p=>A.value=p),placeholder:o.unref(n)("general.server"),options:o.unref(Be)().dataJson.servers,label:"name","value-prop":"nameRef"},null,8,["modelValue","placeholder","options"]),a.isGraphShown?(o.openBlock(),o.createBlock(o.unref(qt),{key:0,modelValue:c.value,"onUpdate:modelValue":f[2]||(f[2]=p=>c.value=p),options:i,"can-clear":!1,label:"name","value-prop":"nameRef"},null,8,["modelValue"])):o.createCommentVNode("",!0)]),o.createElementVNode("div",TAe,[o.createElementVNode("div",IAe,[o.createTextVNode(o.toDisplayString(o.unref(n)("leaderboard.totalPlayers"))+": ",1),o.createElementVNode("span",null,o.toDisplayString(o.unref(Te)(u.value.length)),1)]),o.createElementVNode("div",DAe,[o.createTextVNode(o.toDisplayString(o.unref(n)("leaderboard.updated"))+": ",1),o.createElementVNode("span",null,o.toDisplayString(o.unref(r)(a.updatedAt*60*1e3).fromNow()),1)])])]))}});const _E=Q(UAe,[["__scopeId","data-v-0689a8b2"]]),OAe={deckRows:{type:Array,required:!0,default:[]},originalDeckcode:{type:String,required:!0,default:""},loading:{type:Boolean,required:!1,default:!1}},LAe=o.defineComponent({__name:"SimilarDecksTable",props:OAe,emits:["sort-updated"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.ref([{id:"deck",isShown:!0,sortDirection:we.NOT_SORTABLE,title:n("general.deck")},{id:"matches",isShown:!0,sortDirection:we.DOWN,title:n("general.matches")},{id:"winrate",isShown:!0,sortDirection:we.NEITHER,title:n("general.winrate")},{id:"cost",isShown:!0,sortDirection:we.NOT_SORTABLE,title:n("general.cost")},{id:"differences",isShown:!0,sortDirection:we.NOT_SORTABLE,title:n("general.deckDifferences")}]);function i(A){const l=hi(A,s);l&&a("sort-updated",l)}return(A,l)=>(o.openBlock(),o.createBlock(Fa,{class:"large-table",loading:r.loading,"heading-items":s.value,onToggleSort:i},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.deckRows,(c,u)=>(o.openBlock(),o.createBlock(ql,o.mergeProps({key:c.deckCode},{ref_for:!0},c,{type:"similar",index:u+2,"compared-deck-code":r.originalDeckcode}),null,16,["index","compared-deck-code"]))),128))]),_:1},8,["loading","heading-items"]))}});const CE=Q(LAe,[["__scopeId","data-v-65e706f5"]]),QAe={heading:{type:String,required:!1,default:""}},MAe={class:"top"},NAe={class:"heading"},PAe={class:"chart"},RAe=o.defineComponent({__name:"StatisticsPaneContainer",props:QAe,setup(e){const t=e,n=o.ref(null),r=o.ref(!1);function a(){var s;r.value?document.exitFullscreen():(s=n.value)==null||s.requestFullscreen()}return o.onMounted(()=>{var s;(s=n.value)==null||s.addEventListener("fullscreenchange",()=>{r.value=document.fullscreenElement!==null})}),(s,i)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"statitisticsPaneContainer",ref:n,class:o.normalizeClass(["statitistics-pane-container",r.value?"full-screen":""])},[o.createElementVNode("div",MAe,[o.createElementVNode("div",NAe,o.toDisplayString(t.heading),1),o.createVNode(o.unref(Se),{class:"maximize-icon",icon:"fa-maximize",onClick:a})]),o.createElementVNode("div",PAe,[o.renderSlot(s.$slots,"default",{},void 0,!0)])],2))}});const RA=Q(RAe,[["__scopeId","data-v-f00b184f"]]);function HAe({swiper:e,on:t}){t("beforeInit",()=>{if(e.params.effect!=="carousel")return;e.classNames.push(`${e.params.containerModifierClass}carousel`);const n={watchSlidesProgress:!0,centeredSlides:!0};Object.assign(e.params,n),Object.assign(e.originalParams,n)}),t("progress",()=>{if(e.params.effect!=="carousel")return;const n=.2,r=e.slides.length;for(let a=0;a<e.slides.length;a+=1){const s=e.slides[a],i=e.slides[a].progress,A=Math.abs(i);let l=1;A>1&&(l=(A-1)*.3+1);const c=s.querySelectorAll(".swiper-carousel-animate-opacity"),u=`${i*l*50}%`,d=1-A*n,f=r-Math.abs(Math.round(i));s.style.transform=`translateX(${u}) scale(${d})`,s.style.zIndex=f,A>3?s.style.opacity=0:s.style.opacity=1,c.forEach(p=>{p.style.opacity=1-A/3})}}),t("setTransition",(n,r)=>{if(e.params.effect==="carousel")for(let a=0;a<e.slides.length;a+=1){const s=e.slides[a],i=s.querySelectorAll(".swiper-carousel-animate-opacity");s.style.transitionDuration=`${r}ms`,i.forEach(A=>{A.style.transitionDuration=`${r}ms`})}})}const VAe={activeIndex:{type:Number,required:!0,default:0},cardCodes:{type:Array,required:!0,default:[]}},$Ae={class:"card-carousel"},KAe=["src"],zAe=o.defineComponent({__name:"CardCarousel",props:VAe,emits:["update:activeIndex"],setup(e,{emit:t}){const n=e,r=t;console.log(n);const a=[HAe];function s(i){r("update:activeIndex",i.activeIndex)}return(i,A)=>(o.openBlock(),o.createElementBlock("div",$Ae,[o.createVNode(o.unref(I_),{effect:"carousel","grab-cursor":!0,loop:!1,"looped-slides":5,"slides-per-view":"auto",modules:a,"slide-to-clicked-slide":!0,onActiveIndexChange:s},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.cardCodes,l=>(o.openBlock(),o.createBlock(o.unref(D_),{key:l},{default:o.withCtx(()=>[o.createElementVNode("img",{src:o.unref(_e)().callbacks.cardImageCallback(l,o.unref(_t).Card)},null,8,KAe)]),_:2},1024))),128))]),_:1})]))}});const kE=Q(zAe,[["__scopeId","data-v-6fc8ea3c"]]),WAe={wins:{type:Number,required:!0,default:1},matches:{type:Number,required:!0,default:1},showDetails:{type:Boolean,required:!1,default:!0}},GAe={class:"wins-losses-line"},jAe={key:0,class:"details"},YAe={class:"wl-record"},qAe={class:"lines"},XAe=o.defineComponent({__name:"WinsLossesLine",props:WAe,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",GAe,[t.showDetails?(o.openBlock(),o.createElementBlock("div",jAe,[o.createElementVNode("span",YAe,o.toDisplayString(t.wins)+"W "+o.toDisplayString(t.matches-t.wins)+"L - ",1),o.createElementVNode("span",{style:o.normalizeStyle({color:`var(${o.unref(Yn)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Te)(t.wins/t.matches*100,1,3))+"%",5)])):o.createCommentVNode("",!0),o.createElementVNode("div",qAe,[t.wins!==0?(o.openBlock(),o.createElementBlock("div",{key:0,class:"wins line",style:o.normalizeStyle({flexGrow:t.wins})},null,4)):o.createCommentVNode("",!0),t.matches-t.wins!==0?(o.openBlock(),o.createElementBlock("div",{key:1,class:"losses line",style:o.normalizeStyle({flexGrow:t.matches-t.wins})},null,4)):o.createCommentVNode("",!0)])]))}});const o0=Q(XAe,[["__scopeId","data-v-511803da"]]),JAe={cardCode:{type:String,required:!0,default:"01IO001"},matches:{type:Number,required:!0,default:0},wins:{type:Number,required:!0,default:0},index:{type:Number,required:!0,default:0}},ZAe={key:0,class:"wrapper"},ele={class:"champion-column column-content"},tle={class:"matches-column column-content"},nle=o.defineComponent({__name:"DashboardCardRow",props:JAe,setup(e){const t=e,n=o.computed(()=>mn().cardJsonObject[t.cardCode]),r=o.computed(()=>{var a;return _e().callbacks.cardImageCallback(((a=n.value)==null?void 0:a.cardCode)??"",_t.Banner)});return(a,s)=>(o.openBlock(),o.createElementBlock("div",{class:"profile-champion-row wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",{class:"small-table-background",style:o.normalizeStyle({"--background-image":`url(${r.value})`})},null,4),n.value?(o.openBlock(),o.createElementBlock("div",ZAe,[o.createElementVNode("div",ele,[o.createVNode(Ta,{class:"circle-card-item","card-prop":n.value,"router-link":o.unref(_e)().callbacks.cardCodeRouterLinkCallback(t.cardCode)},null,8,["card-prop","router-link"]),o.createElementVNode("span",null,o.toDisplayString(n.value.name),1)]),o.createElementVNode("div",tle,o.toDisplayString(o.unref(Te)(t.matches,0,10)),1),o.createElementVNode("div",{class:"winrate-column column-content",style:o.normalizeStyle({color:`var(${o.unref(Yn)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Te)(t.wins/t.matches*100,1,3))+"% ",5)])):o.createCommentVNode("",!0)],4))}});const A0=Q(nle,[["__scopeId","data-v-47d946ce"]]),rle={class:"card-page-toggle"},ale=o.defineComponent({__name:"CardTogglePage",setup(e){const{t}=Y(),n=o.ref(0);return(r,a)=>(o.openBlock(),o.createElementBlock("div",rle,[o.createVNode(kl,{"selected-option":n.value,"onUpdate:selectedOption":a[0]||(a[0]=s=>n.value=s),options:[o.unref(t)("cards.recommendedDecks"),o.unref(t)("cards.similarCards"),o.unref(t)("general.statistics")]},null,8,["selected-option","options"])]))}});const EE=Q(ale,[["__scopeId","data-v-07d07f20"]]),sle=o.defineComponent({setup(){return{}},mounted(){const e=Et("EUAACAIEA54Q6AIGBECACBQKF4AQIBQGAECAOUYBAECBWAICAYKACAIFFUAQIBAOAIDAOBJIAIDAYBIIAIDAMGY5AMDAEGI4EIBQMAYTC4RAGBQABIMCQAYGAUBQMHY");console.log(e),console.log(xS(e))}});function ile(e,t,n,r,a,s){return o.openBlock(),o.createElementBlock("div",null,[...t[0]||(t[0]=[o.createElementVNode("h1",null,"TestComponent",-1)])])}const SE=Q(sle,[["render",ile]]),ole={name:{type:String,required:!0,default:""},selectedBannerCard:{type:String,required:!0,default:""},rank:{type:Number,required:!0,default:0},id:{type:Number,required:!0,default:0},matches:{type:Number,required:!0,default:0},lp:{type:Number,required:!0,default:0},change:{type:Number,required:!0,default:0},index:{type:Number,required:!0,default:0}},Ale={class:"wrapper"},lle={class:"champion-column column-content"},cle={class:"mana-hexagon"},ule={class:"mana-number"},dle={class:"name"},fle={class:"matches-column column-content"},ple=o.defineComponent({__name:"DashboardLeaderboardRow",props:ole,setup(e){const t=e,n=o.computed(()=>t.selectedBannerCard===void 0?null:_e().callbacks.cardImageCallback(t.selectedBannerCard,_t.Banner)),r=o.computed(()=>t.change===void 0?[]:t.change===0?["neutral"]:[t.change>0?"good":"bad"]);return(a,s)=>(o.openBlock(),o.createElementBlock("div",{class:"profile-champion-row wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",{class:"small-table-background",style:o.normalizeStyle({"--background-image":`url(${n.value})`,"--background-color":t.index%2===0?"var(--color-background-0)":"transparent"})},null,4),o.createElementVNode("div",Ale,[o.createElementVNode("div",lle,[o.createElementVNode("div",cle,[o.createVNode(Cl,{class:"hexagon-icon"}),o.createElementVNode("div",ule,o.toDisplayString(t.rank),1)]),o.createElementVNode("div",dle,o.toDisplayString(t.name),1)]),o.createElementVNode("div",fle,o.toDisplayString(o.unref(Te)(t.matches,0,10)),1),o.createElementVNode("div",{class:o.normalizeClass(["column-content change",r.value])},[t.change!==void 0?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(o.unref(Se),{class:"icon",icon:"fa-chevron-down"}),o.createElementVNode("span",null,o.toDisplayString(o.unref(Te)(Math.abs(t.change),0,10)),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(" Test ")],64))],2)])],4))}});const l0=Q(ple,[["__scopeId","data-v-7abf758d"]]),hle={date:{type:String,required:!0,default:""},available:{type:Boolean,required:!0,default:!1},activated:{type:Boolean,required:!0,default:!1},soon:{type:Boolean,required:!0,default:!1}},Np="data:image/webp;base64,UklGRpQVAABXRUJQVlA4WAoAAAAQAAAAYwAAjQAAQUxQSAEBAAABgGPb2rHn+e3KTunUNntXPyaQKSSV7UzBSfejizkD26htPU/y/lZETABIK2xW2koVX0DKFxXZrLR1CQD2y3vah6PpUeLxnXviuwEBtL5SPz6/Ur+8Urvl0EbGQLccWsPjXH6DO+jg+vQSZGh5Zb7XaAp7aPEKbezzKMKEWuP+C7y0xdzV6gXkWif7drOyTtj34Mg99QL28KAcr5B14g0yAyo5p94gzytkn7Dv3qZz49xvzM6hzi5ffHrankNevMXZzIDUhuFfDw2PdKQr1SqVSqX+rUqbPfP8et2YqFKjqgz1I8ODA8O/7SnjAnC4qIBvGNm18wGdw0WF/6jMFcCfBwBWUDggbBQAABBDAJ0BKmQAjgAAwBIliAKSzJgM/yf5TextXv8H/bv2BwHdg+Vdzn/0vWB/tPVF5h36ofrv14vMX+3Xq2/7v1cf2b1AP6l/gOtp9A/9x/Th/dX4aP7X/2f3C9rXBZ+F2Jr4/8+/kPzM9c3+w73vS/++9CP5x+Df1n9q/dL2b8DflTqHfln9a/0/Ar209A7vn37/+R6R/YP/le4H/Ov63/oeSc9E9g3+ef3T/s/4z2Uf/P/Zelr6a/9f+k+BH+df27/reu51QB6l8J+19f+pT6sZj+zE2+wE9vWoNfcEz0oTpvLjAO+Oa0LQ0Jow+wnjIYPuMNdJgebCP0A0x9HFV9m1SGgYnekuqE7R0gGfFSqVDdnmaEzLXqoY5ab7mI283b2U6qHsm1LaV2sv3hWYD74YbO9I365ZyH7IOZW2np5xzxY1uNwlx8m3/TlZpshWOQCUqQEaeXuo/NGNB7fPAFQA9spGF46iKOVdiy4H51LojrONPcDzWBAEuAoyxYSjdLl+yL79WxDhr4xWsGpRCikM1q5cdoxI5DzxmQC+WU34EWnl4CUNbIztZ0DdID1a0xmf9PiWSXfO4bZPzx8wcVrzgmGBY4h9fhG06Eg8Pe4iO3CVETaIxrPsQBwT/o2De9RYWlsdvaDBCRFNqTIhtugVNyhTOM/+NHgy2FRNW55uPOcszqLATAsZl/DQCkGM1H3/Q6b8yOWsaDQ8wYl8YUfoAP7u3JuG7XFiqpPFp/zTze9Dk0t236U3vstNlqJ6SMY/EUhcAaCy3g3fU1aSTwRLVo/tbHheprGIHpVpNqjxBzS1OFaBnyrYoywF4mxQQRjLtYqhSzPDGyjl/+mVF30ZwM1deMxjDDSwpabr//JIfGwSajIir7csLqBcPmzLwiG0X8yyOdc6OggQUYZentENwuvqEfj4tkP5AdpcIlLP6PXPTMLwXYC5UVVGobBIg429evsLhW4cFRY7HS7kzF/loDieDUMVuHgsMHmBlHbV0ft7uggiS+/oURoyeFXHtbAffBaM7WcIS0lh3dr/hH+xcEKpG6voqahtySY9unVDK4Ma+M4J9OXSo71s3dEeACMKt+lj+FBWDsCJDXpu9Lm3VLbYyT5aF4l0kiGnDuTyRednJJxXlv9ZB2XqhFRCRxK1YE9sx6PGzx8h1YQvNTO5vUl/nAq/pglypqDeR1DHey3IRtZsO/1/M12zYhtN58HYvZriSE/pzLhUGdKAnDJN+N1zpts+c79KrZYjR5+LC8mqTp3zA107/ruodw4OhlDLLtEkHoK0aL6L9kgYkVYuk051/J0iVKO6TrNDjtGCXCzQ61VHH07nEMhfWQqzs+eEOnCdem+/mp99Y5moGhX/AG8JXlhIt15Lv5D60Crp8RJMOD93GDx3WmltCm+Uv1YUslp6iqCDT9pJkbrVnz19cge4T3b7AMrWIAxvDVSB+GjGkX/VQXtjcfsYyHhBaNDOrAPmMkk43eLISRFlsUW9xJ70I7YqMi4KkLA5BSawyrIJeGDRRPpOyqXBJ3he27M6nYaDUcu/dw+zKZFrH6JJepygQiw9/gTA8qAo9Wy4TxVrbJ3iVIyWD9tN6kW+H0ATrOZcaPr4mEoJATghh5iOmN12PTvewVv3VhiUXfqV2BWbUrqWHOkvUgcNaMRXkTobbwOziNe7s9Ub8f1fyJJ+KoqDjl5TXGTKJf71c5O8PiHEwUijMoTg1GNrxg/iyd2pvikPHJ/LeYRAjV77bM1tdlnWBYiABeF3lU6zrp/qqdxhb8P33GXLOZC+7Q+k29zjZyKON23ZtaPwSL1oDj4jmqXJ0DV/iWA+79rebbt2US+K8ARkowLBGCyDHGaKBFXplZu5qY2Jr6P0YUmkj8Se0bToxblcTq3Yo99+M+HkAnRjvQ6iVKId8+YXuXpHdWG2e0XjaXsZ6IBomXeg/qv7XzhWsqrLDSmmSG1scFVF9w5hYj02X4QIhwfHS9DJ46kN1NvcCouEHbUnMQHzUsndQ/LXToevL3LcziuwhLIDliY5NZVQGbChii5WdshXFpqLTnMoSx/QLlWVrcEpCWeg1QCKc32cIAdHGm85bWc1BWWymuRFjr5Tgp3b9TPWLbmnJyb+oSemQmbAPvG9LJIqXmr2xCr0TGmDluE4zO8vaZ/YMEtA9ObEVpVaRj/fqmgL6oHMSW8btJ19nVA62zSzzTuNWJjkN2Zx/t3a5oddkCmbJATg/9VKopqZllxD/GmhAA2Z+o2Yl+CoH3mwuLLPslUy54VmjbhRr+FyR7akdBlYodQHYMNcOKTqhcRGICgXOLTRXn27nIzblK2s7Ts8zAeHmG48CpkdL0ogJ+mrFlrUonC65itjH25Zybm2oM+zxGTTFmy3qhxeF44T6UObeh1vuD/xnjE7NOi28jLT2p7QOjRifMsWRKF8A1+4WnZwba/telVJ0M6W12iygb8UFKOypj4S3LoX1Sx+DIoHPssoAW9iBseVXrDaK8AUOd4jhVQ1WZXhAyQrLt5vuLNMEaFbCq0RltFolGtQ9UYWId2iCWWUAob/O5rzCZMRGWlrXfqV2OMsz7NzL8MkLUlj/XCo/PHG7Lqo/QabVPLqTejIyn8VMf75hXLI4vX3fFT9uVIjfrLe3wDtwo3hgQlrT+8wtcHIkMnpF1wK0Pmi3q3dt+cBzJ7twZjPrXbla5YVz18ptitmRDERECQ67qfzqNrl2C9pLJ/q1f/Ew/JY3Fr/02nDtq35QZ0dZYgfTf47HOzzo4UjL+noRi2L+dBj0fBp9NznpszWtf/ViprbM+6Zzv1l+tD4U3Zu//+Oey/Lgbh8EQfzgm9i59POCMUU/7sNjnSLils28YksYWNbznb3xcNIpy2wR85ntEWFLTuHfln1UVFAUGGrZdmWz6JzqNPxD0AeXjf8ntg4NCbxgB8iohTpMedkpD2q9xEEUXBeo8yuCJKNjP+zg/AYfX9/PVLZWqo5l/XXgtH2ABNTFqA2942K8zLTN4rjFvA8KqN5rmSofCljeENG145859vlNSmeR0T1U7KZ/z6Q/crwGbDY1f9Cmfzjf7MsZklghfj/1shlyq7gSv5Ym375SxDw/iDuj67jYdGOBVjmpB1mnV158my0bdh75nONKc2vK8ZjU+iNXS/P8aJUAiRFk7st3bV5h9baGPOQqbOk4dWjw8NUN7nwm0fmJQ5vp73I/A4UZ8eqf638Gkr3pXrHvUebaPb+xcIzBDE1Nvcojfb/5nm95LL0aHg1iKt36a6uavLgIvpkN7Qo3TujZX95S02Bjz3vhFXVLmBFQCYemOTW9uc4LHakG8kU8VevsB1HT+S1RQKKGdo8JtG9raNhNJjHGLqolgRumnusF3c3ABwOjbQhbjjfMQpu7cdy6J0DTh2hatG32udWg1LPdR9fsVpjEysfGQ0GDDxrvx9YwIGgSRZOZpNEJop4ey3CbpHsmfbpTu+aiszsvP5P6WtQ92vlZ8hxGp2cmnFD2MB6+gQ0hM7eZRxHsKG0+WcpmGsBbtEcNBFvUhbVul/oh7JL+W7adTjOuAVWYVYoTud4ovKjSckZfM1oTXnO4Ky5/LPkQICBB53iz2cdoAWm7owZYQ/S/m4Uwya+G8RezTLMacJChJKqvaibSzfr1bLY6Vry/907SR/JMI7gNWKaUF3Vba3b5b0HxlnFvPrH9H/e+v/zKavQWUONrFVDJYy1XBQUKeYi/Nk2TjiR28KllKGnB2Fq4UnOXuNFR6A2fOnv22Ud48xB8MDHPdrkiVnT362fvOFVnTizjBiQ8TsDnPCs9yEBp16IVDSPomLlWtRkTdEKM6vtCfOz5kpT/0/f18Zx1GX1lvHApIkCfMiNePrIQ9HXD0kmtO7+kdpnb01upiB8fDivDuW+Q0T9Ekbl4PcAAl6+TEntzh67pMz09ikbexC0m6HJHt2TiTtEeCNtLfTWM7HNNFnyoD6HOVEHxiygPZ4y8pyIEJY6J8xwz4TjpyIsHs3cFHpgqfjkUgTFx3uclUbtjRvRXWkgXyZd2ysup9AT8mS0ZJxbARswqXFxJaMDemxOcr6pMmpUPPx6m3QAAnD5YW7H7ATCMs7x2pa2P++IZrqP5lRbgR3bmPDGNdaK0MJWIdUEp/KMOQS9B6vwdVSLl/8mjT5CxXSx2VxxrgGTVW6NBBuTmP9Vt9ZOQ0d0ORGcg++/xMiPrl91fbiMOVAa5GRuhKUhIpUCxVplYkot97+71nhgPlFn6t3NoJKsWX7ecxQQ2Ju2lHT7kO007o0voWXVBgS4t1L3tHfiGWu9NcmCjKwt8PwHn/Jz3v6Uek7SG+ZjCMiakQpmV+0QrjA09K3jZfQgUr+zs/3n/X1zZPPLWk+TlywRK6p0/qbliMMhyXFKbGpTXqvlvBC2Fr58dVvfouGrlfh72hq6YOaZn9zdQWPqbjtqIg8g9QxZzL954uK2OuI1JJittRNNcVSSra2lACV/Ej7Or5II6lx2C3FjqTsrh4UXCcUZWtsOA24NHIJ9CzFmsC4IyIOUXhZEN65l9PYCkjNWKaNz89kPq2+4ye1/jzAuDDg2RrKp/FNIKhhKO0YSPaLz9ODfQTLJhMTpPAXm+xLB0oX7Vo75znqCKyJvmxCmfzANcHkBciBEuOOq68Zl6RZtvaAB0xxFCOfvwBwUY+0qWjfW5PVAaY9bzRJlL100JT3b2kkKDbSW1JXvJqoC/Gubz7CPLYlMJ8dNbim9ydCev9Yq4uzuFENwzKxXa/+CJOmjxzMMCUO8Et1aezpZRwhRESDWtEzJpOKzapC0Hy+M9LX92rbTLKuAfIs+t2RLVUI914oLWgqjEfsM+8o8Tp+U+TRjZ2FF4Ksvp2tGNUiwUapjWbERc67w9nCCgSfLo/c3J1nQLygbzMoJrH4FojgB5aomLL3Qu6IHsRkYhXeYS5oHE0EyRRQXDSEsr4Agr+Yfe5rM854ckE/Yjtm9JnUazZfvvxW2UhxIs9N1m706CP2Ypvs1i7dW+ZmqMCL6uSL+C7hOyycrmvY3Y1YHfIm/pn6u2tgqDN0Y/mZKlUtFq431+zZtpV7+M8ImZf+ou67QEQgXKlc5nxIRUn4WPWlDg2J+6ifiADxcmoRbqWCcG7PR1aUBaLcdSH9KfyF9wgQEj3V+4gyQIa/4JZICFGBUF1BBpZ/anb9TggFs64t+P8eXsWK/kYO+YjSiRyclvKR6hdZRs3hsPY5i7CnmpMUZIns0Ir1ZD8T38M3GM2CcjVW7dG8+0pgw9Si3W5RQrSQjYNq/0A9slLyqiv6ZjrmJFk8Vumsh0VfVPiE7vzqDoxlssE+RqwjJb7DCYE6MHby3aDhaThUE8lgQ7wHTzwoT6IwKqw1ofiTrBycnkdgSKnNEcAgmEQm/Nc4SfKQIjYFgAC+IZeC+S8/pKr8oSNd53EyIK7cuYgnPCUSYn8K2wZD3f/HeVjWIk2EaqRQNZvhCL9pMdwBR8OFRxr36qHCqSx2ZPJOQ3MOPk7swYH4B1QSo4K5tY7/RSl69ftU132HNN0NDfzsvWmBTzVLArpA8RY9LCv7PQ+tbH+6xQWWT4zo41H0hZroZB9Y1BRkiR1jU2XXIQzjY8M2WxSCUywHQOItrSSuDf43zfF+0pXshiSJh3wkP7UVjoF1JMXAPzr2YtxaKFTaZHj0t+e2KUYnGCPDMRt/jsJ1VNqvqGMjhbzmK/Ji7jcaK0nVU2t150c0NRtZlmCiRa7hpNnWe8JlN946yTf4mBY6we5YtS+tHlFzb6xxXgSNdAJUQ/Cf/gbr1MOYnfNPn7tgsduJnySBfUxlhueUByJNOC3T+QE5gELLjR8V/YThTkoJl7a4clEiUTt+fUCWTdjRcJgg8LQSvOspSnGQ5o5a42FBWa2brKLjpnmcroiLKuqJ8SM/UeCuF78esGhAuc2nC0jXZv12w17el7YAcHrpA2Vx+Jv6X5ok4PxVseLzfIY9wbb0nrOCAU3Gg/eKUcu2emB7XfMAgEbBPf7tOMUfluV4zeGsAFHhH3jCmTT0ie7YZP13tsgzt6I+llT2GnDkU9ylV0Rjzdl92EnAJhLyZovmJn2r+3xytit6NWsWFNLk8xZeFTY6cWoqEtVA2HoX/dvgwba3wkOMiZHRRnDWc5OHZ8DvUufoI4BEp4lLz8LqDcJ4U2ROGcH/tNtLAWpov5bBWwYZghIsAyxK4elFVxROoKzEytuvDaHjB85srMddi0+wpvq8Gv2hadSObXFOTXuJYuca+dVPRPg6i8Jy4YRCCcvDJ9h/G4pHs8UtxcagVPFP3LtdVn8qwgiO4/RkY/NvkpOnzPrgtjKA9F25cFO/iEV1SONr2YEg2e21jHzxn1BpHOC+VjkYP6+XVfhyW3FnO55pyGqelLpWnIMcvLUb/nYZluleyUZSt9yjLLW6HyeMT/TsCJpQ+TixJzS2a/JQRc+igKZAJCN5f4pHylBS/nTZQqff5FAhr6QbQIbB+3sfEH7dCB5G4BcRU/hWRacndN8it2rV+0OL+q9WuSGBeFROmtq7ko9ZK00n9mGhhm+CYaUiUyUpdNEhcjDi72xSDSPr5PIlg4ecGmxXOzJMAvwi7oAQQg+Yf0/4z2VCGkFCJ+brkSSZLb8fs2G2c+fYVn/tnAmmooSpfNyJw90LiRdDuQbQ93BQWt3azhV9TEBsPGFE3GGkTw0krNqcURqAQKzvXr2bnhO8KRWoWG7XliqBjI/qGv4UOSaZGwIFqc88q1XuMWRIvW6Cy0jaeljlEotz0AFnDGH2Aq1Pn6SREslqfkNcbIyJ/ZH8oMeXhw4Ua92QnhLp909o39dtaOK/eyzPuAH0ev2kS5g9sKHUC7eEoZIBtPPDrdsGXKpr+L+P9BRvo7OcKaVBxchzd2ZLrq/KC+l5UF0ZSfFqSW6UE0inppd0zfwM2/igkrgcDqi6fKcNBLQO3Yh9ysmWdD7EQ2ZnQ1rzdxuR59XgwjJvDgAAA",mle={class:"reveal-day-option-wrapper"},gle={class:"card-wrapper"},vle=["src"],yle={class:"card-wrapper"},Ble=["src"],wle={class:"card-wrapper"},ble=["src"],_le=o.defineComponent({__name:"RevealDayOption",props:hle,setup(e){const t=o.inject(Nr),n=e,r=o.ref(null),a=o.ref(null),s=o.computed(()=>(console.log(n.date,`${n.date}T10:00:00-08:00`),new Date(`${n.date}T10:00:00-08:00`))),i=o.computed(()=>s.value.getTime()<new Date().getTime()),A=o.computed(()=>(console.log(s.value),i.value?`Revealed Cards
|
|
699
699
|
${s.value.toLocaleDateString()}`:`Cards Revealed
|
|
700
|
-
${t(s.value).fromNow()}`)),l=o.computed(()=>{const c=[];return n.activated&&c.push("activated"),n.soon&&c.push("soon"),i.value&&c.push("past"),c});return o.onMounted(()=>{tt(r.value,{content:a.value,arrow:!0,delay:[0,0],duration:[0,0]})}),(c,u)=>(o.openBlock(),o.createElementBlock("div",mle,[o.createElementVNode("div",{ref_key:"revealDayOption",ref:r,class:o.normalizeClass(["reveal-day-option",l.value])},[o.createElementVNode("div",gle,[o.createElementVNode("img",{src:o.unref(Np),alt:"card",class:"card"},null,8,vle)]),o.createElementVNode("div",yle,[o.createElementVNode("img",{src:o.unref(Np),alt:"card",class:"card"},null,8,Ble)]),o.createElementVNode("div",wle,[o.createElementVNode("img",{src:o.unref(Np),alt:"card",class:"card"},null,8,ble)])],2),o.createElementVNode("div",{ref_key:"revealDayOptionTippy",ref:a},[o.createVNode(xd,{text:A.value},null,8,["text"])],512)]))}});const c0=Q(_le,[["__scopeId","data-v-daac7e87"]]),Cle={days:{type:Array,required:!0,default:[]},date:{type:String,required:!0,default:""}},kle={class:"reveal-day-options"},Ele=o.defineComponent({__name:"RevealDayOptions",props:Cle,emits:["update:date"],setup(e,{emit:t}){const n=e,r=t;function a(s){n.days[s].available&&r("update:date",n.days[s].date)}return(s,i)=>(o.openBlock(),o.createElementBlock("div",kle,[i[0]||(i[0]=o.createElementVNode("div",{class:"line"},null,-1)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.days,(A,l)=>(o.openBlock(),o.createBlock(c0,{key:A.date,date:A.date,activated:A.date===n.date,soon:A.soon,available:A.available,onClick:c=>a(l)},null,8,["date","activated","soon","available","onClick"]))),128))]))}});const xE=Q(Ele,[["__scopeId","data-v-3ca708c1"]]),Sle={cardCodes:{type:Array,required:!0,default:[]}},xle=o.defineComponent({__name:"DashboardNewCards",props:Sle,setup(e){const{t}=Y(),n=e,r=[{title:t("general.newCards"),id:"newCards"}];return(a,s)=>(o.openBlock(),o.createBlock(_i,{class:"small-table","heading-items":r},{default:o.withCtx(()=>[o.createVNode(tg,{class:"reveal-carousel","card-codes":n.cardCodes},null,8,["card-codes"])]),_:1}))}});const FE=Q(xle,[["__scopeId","data-v-89a26f2c"]]),Fle={players:{type:Array,required:!0,default:[]},shownColumns:{type:Object,required:!0,default:{player:!0,lp:!0,change:!0,wins:!0,matches:!0,winrate:!0,deck:!0}},loading:{type:Boolean,required:!1,default:!1}},Tle=o.defineComponent({__name:"LeaderboardDetailTable",props:Fle,emits:["sort-updated"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.ref([{id:"player",isShown:r.shownColumns.player,sortDirection:we.UP,title:n("general.player")},{id:"lp",isShown:r.shownColumns.lp,sortDirection:we.NEITHER,title:n("general.lp")},{id:"change",isShown:r.shownColumns.change,sortDirection:we.NEITHER,title:n("general.change")},{id:"wins",isShown:r.shownColumns.wins,sortDirection:we.NEITHER,title:n("general.wins")},{id:"matches",isShown:r.shownColumns.matches,sortDirection:we.NEITHER,title:n("general.matches")},{id:"winrate",isShown:r.shownColumns.winrate,sortDirection:we.NEITHER,title:n("general.winrate")},{id:"deck",isShown:r.shownColumns.deck,sortDirection:we.NOT_SORTABLE,title:n("general.favoriteDeck")}]),i=o.computed(()=>({"--columns":s.value.filter(l=>l.isShown).length}));function A(l){const c=hi(l,s);c&&a("sort-updated",c)}return(l,c)=>(o.openBlock(),o.createBlock(Fa,{class:"large-table",loading:r.loading,style:o.normalizeStyle(i.value),"heading-items":s.value,onToggleSort:A},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.players,(u,d)=>(o.openBlock(),o.createBlock(Z1,o.mergeProps({key:`${u.rank}${u.name}${u.user_id}`},{ref_for:!0},u,{index:d+2,"shown-columns":r.shownColumns,"router-link":o.unref(_e)().callbacks.playerRouterLinkCallback(u)}),null,16,["index","shown-columns","router-link"]))),128))]),_:1},8,["loading","style","heading-items"]))}});const TE=Q(Tle,[["__scopeId","data-v-11a25b9c"]]);const Ile={},Dle={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 400"};function Ule(e,t){return o.openBlock(),o.createElementBlock("svg",Dle,[...t[0]||(t[0]=[o.createElementVNode("path",{d:"M107 57.2C23 99 25 97.6 22.2 106.3c-3.4 10.4-6 4 43.5 103.1l44 88.3.5-6.6c.4-4.6 1-7.7 2.4-10.4l1.9-3.7-40-80.8c-22.1-44.4-40.1-81.5-40.1-82.4 0-5-.9-4.5 78-43.9l75-37.4 3.4 1.1 3.3 1.2 49.8 99.6c33 65.8 49.8 100.4 49.8 102 0 4.9-1 5.5-28.2 19.2l-26 13 15.4.1h15.4l13.9-6.9c19.2-9.6 23.1-14 23.2-25.6v-5.7L257 129.6C221.5 58.6 206 28 204 26c-4-4.2-9.6-6.5-15.8-6.5h-5.1L107 57.2m121.5-15.8 3.5 7h29.6c26 0 29.7.2 31.3 1.3 4 2.8 4 1.9 4 68v61.6l6.6 12.9 6.6 12.9v-76.3c0-90 .7-84.8-11.8-91.7l-4.2-2.3-34.6-.3-34.6-.2 3.6 7m95.7 42.1V91l24.3 12.1c25.1 12.5 28 14.5 28 18.7 0 1.3-10.8 24-26.1 55l-26.2 53 .2 14.9.2 14.8 32.8-65.8 32.8-65.8v-5.5a20 20 0 0 0-7-16 739.5 739.5 0 0 0-58.6-30.6c-.2 0-.4 3.4-.4 7.6M126.5 285.1c-4.2 4.2-2 10.3 4 11.4 1.5.2 57.1.3 123.6.2l120.9-.2 1.9-2c3-3 3-6.9 0-9.8l-1.8-1.9H128.8l-2.3 2.3m1.9 25.8c-4.5 1.8-5.5 7.5-1.9 11l2.3 2.3h122.4c130.4 0 125.8.1 127.2-3.5 1.5-3.8.3-7.8-2.7-9.4-2.5-1.3-244-1.7-247.3-.4m-2.3 29.3c-2.6 2.6-2.6 6.6.2 9.3l2 2h246.8l1.9-1.9c2.6-2.6 2.6-7.2.1-9.6l-1.8-1.7H128l-2 1.9m.6 27c-3.7 3.5-3 8.9 1.4 11.1 2.6 1.3 9.8 1.4 124.8 1.2l122-.2 2-2c3-3 3-6.9 0-9.8l-1.8-1.9H251.7c-122.8 0-123.3 0-125 1.6"},null,-1)])])}const IE=Q(Ile,[["render",Ule],["__scopeId","data-v-c8a918ec"]]);const Ole={},Lle={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 431.6"};function Qle(e,t){return o.openBlock(),o.createElementBlock("svg",Lle,[...t[0]||(t[0]=[o.createElementVNode("path",{d:"m178 26.2-8.6 1.8-9.6 2c-2.6.6-6.6 1.5-8.8 1.8-2.2.4-5.7 1-7.8 1.6l-8.8 1.8-8.8 1.8-8.6 1.8c-2.6.5-6.2 1.2-8 1.7l-8.8 1.7-8.6 1.8-6.6 1.4c-3.2.5-14.1 2.9-18.3 3.9-4.2 1-4.4 2.2-2.2 15.1 4.2 24.3 5.2 51.8 2.9 80.4l-.8 10.8c-.2 2-.8 6.9-1.4 10.6-.6 3.7-1.5 9-1.8 11.8-.4 2.8-1.2 7-1.8 9.6a138 138 0 0 0-1.8 8.3c-.3 2-1.1 5.3-1.8 7.4l-1.6 6.1c-.8 4-3.8 14.2-7.1 23.6a191.2 191.2 0 0 1-5.7 15.3L39 259.8c-.7 2-1.7 4.2-2.1 5l-8.5 17c-3.4 7-3.6 6.6 11.3 17a13873.6 13873.6 0 0 1 92 64.6c17.4 12.3 16.5 12.7 18-8L151 332c.6-12 .9-16 2-30.4.6-7.2 1-13.3 1.8-30.2l1.2-18c1.6-20.9 3-46.9 2.6-48.9-.4-2.3-1.8-2.8-5-1.8-9.2 3-18 4.4-23 3.7-15.1-2-25.3-12.8-29.8-31.8a95.5 95.5 0 0 1-2.6-29.8c0-19.7.1-20 5.5-21.6a691 691 0 0 0 14.5-4.2 583.1 583.1 0 0 0 24-6.8 88 88 0 0 0 6.4-1.8c2-.6 4.9-1.5 6.4-1.8 1.5-.3 4.7-1.3 7-2l5-1.4 5-1.4c12-3.9 13.8-3.9 28.5.4a746 746 0 0 0 23 6.5c.4.2 2.3.8 4.3 1.3 2 .4 5.2 1.4 7.2 2l6.4 1.8c1.5.3 4.2 1 5.8 1.6l7.4 2.2c19 5 18.6 4.5 18.6 24.2 0 48.9-20.7 71.2-55 59.3-6.4-2.2-6.8-1.3-5.6 13a948 948 0 0 1 1.8 30.3c.2 4.7.9 14.2 1.4 21 1.1 14.4 1.6 22.6 2.2 34.8.2 4.8.9 14.7 1.4 21.8 1 12.3 1.2 16.4 2.2 36 .9 16.2-.6 16.4 26.2-2.6a2102.7 2102.7 0 0 1 24.8-17.3c2.6-2 7.1-5 10-7.1a3744.4 3744.4 0 0 1 30.2-21.1l17.8-12.5c13.2-9.2 14-9.9 13.7-12.5-.2-2-.5-2.7-3.4-8.1a164.8 164.8 0 0 1-10.7-22.4 292 292 0 0 1-9.5-25.4 292 292 0 0 1-7.2-25.2 345.8 345.8 0 0 1-10.4-64.4c-.9-7.7-.6-44.7.4-53.6l1.7-15.4 1.4-10.6c2-9.4 2-10.2-.1-11.7-.7-.4-2.1-1-3.2-1l-6.5-1.5-9.5-2c-2.7-.4-6.7-1.2-8.8-1.8l-6.9-1.4c-1.7-.3-5.7-1-9-1.8l-9.8-2c-2-.3-5.5-1-7.6-1.6l-8.8-1.8-8.8-1.8c-2.1-.5-5.6-1.3-7.8-1.6-2.2-.4-5.8-1.1-8-1.7l-9.4-2c-3-.4-7.3-1.3-9.6-1.9a28.3 28.3 0 0 0-14.8 0"},null,-1)])])}const u0=Q(Ole,[["render",Qle],["__scopeId","data-v-4a6733fd"]]);const Mle={},Nle={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 429.1"};function Ple(e,t){return o.openBlock(),o.createElementBlock("svg",Nle,[...t[0]||(t[0]=[o.createElementVNode("path",{d:"M53.8 32.8c-2.6 1-8.3 12.9-13.6 28l-2.1 5.8c-.4 1.1-1.1 3.5-1.5 5.4L35 78.8a84.1 84.1 0 0 0-2.6 14.1c0 2.7.8 4.1 7.4 12.5 16.7 21.3 16.7 21 2.2 21-13.3 0-13-.3-12.7 11.8.2 8.4.7 11.8 1.9 14.2.9 1.7 1.7 2.7 27 35.3 8.1 10.6 7.8 11.5-4.2 11.5-11.9 0-12 .3-4.4 16.9a269.4 269.4 0 0 0 28.7 47.7c8.4 11 8.6 11.5 9 19.8.5 8 1.1 11.4 4.3 24.4 7 28.8 30 57 60 73.2a97 97 0 0 1 5 2.8l3 1.4c1.5.5 3.5 1.4 4.5 2 2.8 1.4 10.6 4 11.6 3.6 2.1-.5 2.4-3.6 1-10.6-.6-2.6-1.4-7.3-1.9-10.6-.4-3.2-1.2-7.6-1.6-9.7a218 218 0 0 1-2.6-15.1l-1.8-10.2-1.6-8.2c-1-5.6-.9-5.5-13-5.8-10.4-.2-11-.4-12.3-2.5-.4-.7-.5-7-.7-28.7-.2-26.2-.2-27.9-1-29.2-.4-.8-5.5-6.3-11.4-12.2-5.9-6-11-11.4-11.4-12.2-.8-1.5-1.3-65.8-.5-68.5.7-2.6 2.6-2.3 7.3 1.3l6.8 4.9a1371.6 1371.6 0 0 1 25 17.9c16.1 11.6 25 18.2 26.2 19.7l1.2 1.6.2 28.6c.2 31.6.1 30.2 2.8 32 1.7 1.1 28 1.4 30.6.3 3-1.2 2.8.6 3-31.4.2-31.9 0-29.5 3-32.5 1.7-1.5 7.1-5.6 18.6-13.7a3147.5 3147.5 0 0 0 38.3-27.6c4.4-3.3 6-3.6 7-1.2.7 2 .4 66.8-.3 68.3-.4.7-5.4 6-11.2 11.9-5.7 5.8-10.9 11.3-11.4 12.2l-1 1.6-.2 27.8c-.3 35 1.2 31.2-12.6 31.6-12 .3-12.2.4-13.6 12.6-.3 2.9-1 7.3-1.4 9.8-1.4 8.3-2 11.7-2.6 17-.3 2.9-1 7.5-1.6 10.4-1 5.6-2.2 14.1-2.2 16.9 0 2 1 3.3 2.8 3.3a93.6 93.6 0 0 0 21.9-9.4 124.7 124.7 0 0 0 47-44.9 128.2 128.2 0 0 0 15.9-52.5c.7-11.5 0-9.7 11.7-27.2l10.4-15.6c2.3-3.3 18.2-34.8 19-37.7 1.1-3.3-.8-4.3-8.8-4.3-11.8-.1-11.9.1 3.4-20.2a1330 1330 0 0 0 15.4-20.8c4.9-6.6 5.5-8.5 6.6-20.9.6-6.3.4-8.2-1-9.6l-1.1-1.1-9-.2c-13.5-.3-13.6-.6-4.2-13.4 14.6-19.7 14.1-18.3 11-31a188 188 0 0 0-9.9-31.1c-2.8-8-7.8-17.3-9.9-18.1-2.6-1.1-1.7-2.8-24.6 43-20.2 40.3-21.3 42.4-22.7 43.2-2.1 1.1-3 .5-6.3-4.2A118.4 118.4 0 0 0 237.3 71a122.9 122.9 0 0 0-76 2 73.7 73.7 0 0 0-14.9 6.9c-13.8 7-29.8 21.3-39.1 35-3.3 4.8-5.2 5.6-7.4 3.1L78.4 75.7c-22.4-44.9-22-44-24.6-43"},null,-1)])])}const d0=Q(Mle,[["render",Ple],["__scopeId","data-v-b519ac08"]]);const Rle={},Hle={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 470.8"};function Vle(e,t){return o.openBlock(),o.createElementBlock("svg",Hle,[...t[0]||(t[0]=[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M60.6 11c-.5.8-.6 17.6-.5 157l.1 156 1 .8c1.5 1.3 278.4 1.2 279.6 0 1.3-1.3 1.2.8 1.1-81.1l-.1-78.6-1.3-1.1c-1-.9-4.5-2.2-16-6-38.4-12.5-36.7-12-38-10.7-.7.7-.7 5.1-.9 64.4l-.2 63.7-.9 2.2c-3.9 9.5-11 14-23.1 14.3-12.4.3-20-3.6-24.3-12.3-2.4-4.8-2.3-1.4-2.3-95v-87l-1-1.1c-1.2-1.4 1-.6-31.6-12.6a552 552 0 0 0-25.5-9.1c-2.5 0-2.3-8.5-2.3 98.8 0 60.3-.2 98.7-.4 100.8-2.7 23.7-41.9 26.6-49.7 3.6l-.9-2.6-.2-120.9-.2-120.9-1-1c-.7-.6-5-2.5-12.6-5.3C59.9 8.6 61.7 9.2 60.6 10.9m.9 356.3c-2.6.5-3 1.8-3 7.7-.1 12.3-5.7 18.7-24.6 28.2-11.4 5.6-16.6 10.9-19.3 19.3a86 86 0 0 0-.9 19.5l-.2 17.3 1 1 1 1h368.1l1-1c.7-.6 1-1.6 1.2-3.2.4-3.3 0-28.3-.6-31.4-1.9-10.7-8-17.3-22-23.4-17.3-7.6-21.8-13.2-22.6-28.5-.3-4.5-.4-5-1.3-5.8l-1-.9H200.7c-75.7 0-138.4 0-139.2.2"},null,-1)])])}const f0=Q(Rle,[["render",Vle],["__scopeId","data-v-f1928c9e"]]);const $le={},Kle={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 459.4"};function zle(e,t){return o.openBlock(),o.createElementBlock("svg",Kle,[...t[0]||(t[0]=[o.createElementVNode("path",{d:"M175.3 29.5c-1.7.3-.9 1.5 6.1 8.9A57.6 57.6 0 0 1 200 82.6a63.5 63.5 0 0 1-5 25.1 63.5 63.5 0 0 1-23 27.5c-4.6 2.7-6.3 2-14.8-6.2-7.9-7.7-8-7.8-11.1-6.2-2.6 1.3-14.6 12-20.5 18.2l-9.6 10a349.5 349.5 0 0 0-35.5 43.8c-3.1 4.6-6 9.1-9.3 15.2a753 753 0 0 1-5.2 9.2c-.9 1.4-2 3.7-2.4 5-.4 1.2-1.3 3.2-2 4.4l-2.2 4.8a52 52 0 0 1-1.8 4.2c-.4.8-1.3 3.2-2 5.4l-2.2 6c-.5 1-1.3 3.8-1.8 6l-2 7.7a62 62 0 0 0-1.8 8c-3.2 23.5-3 26.6 1.7 31A154.6 154.6 0 0 0 73 318a254 254 0 0 0 33.9 16.2c2.4 1.3 12.6 4.6 19 6.3 3.6 1 7.4 2 8.4 2.4l7.4 1.6c3 .5 7.5 1.4 9.8 2 2.7.6 7.5 1.3 13.2 1.8 5 .4 11.5 1 14.6 1.4 3.8.4 9.7.6 18.6.6 18.5 0 19.9 1.2 13.7 11.9a86.4 86.4 0 0 1-50.1 39.8c-1.4.6-4.1 1.4-6 2-1.9.4-5.2 1.3-7.4 2-2.2.6-6.3 1.4-9.2 1.7-6 .7-10 1.5-10.7 2.2-1.3 1.2 2.5 4 7 5.1l8.3 2.3c2.8.8 6.8 1.7 9 2l15.8 2.6c6.9 1.3 29.5 2 39.8 1.2 6.5-.4 8-.6 18.2-2.4l8.3-1.4c2-.3 5.7-1.2 8-2 2.4-.7 5.4-1.6 6.7-1.8 1.3-.3 3.8-1 5.6-1.8l6-2.2c1.5-.5 3.7-1.3 4.7-1.9l4.2-1.8a228 228 0 0 0 22-11.7c20.9-13.4 40-38.5 44.7-58.8l1.8-6c1.7-4.9 1.9-5.8 2.6-13.2a116.3 116.3 0 0 0-10.4-71l-1.4-2.7c-.4-1-2.5-4.5-6-9.7-4.3-6.6-7.5-7.3-10-2.3-3.1 6.1-15.8 20.3-23.2 25.8a81.5 81.5 0 0 1-71.1 13.4l-6.3-2.3a93 93 0 0 1-38.7-30.1c-4-5.7-4-7.3-.4-12.8a82.1 82.1 0 0 1 38.7-30.2c17-7.5 42.3-7.4 57.2.3 8.8 4.5 10.9 2.5 9.2-9.2-.3-2.2-.6-6.5-.6-9.6a129 129 0 0 0-4.6-34.6 75.6 75.6 0 0 0-3.6-13.8c-4.5-17-18-42.2-32-59.6a193.3 193.3 0 0 0-27.5-25.9 82.1 82.1 0 0 0-18-10.3c-3-1.8-14.6-4.6-17-4.1"},null,-1)])])}const p0=Q($le,[["render",zle],["__scopeId","data-v-b1448e85"]]);const Wle={},Gle={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function jle(e,t){return o.openBlock(),o.createElementBlock("svg",Gle,[...t[0]||(t[0]=[o.createElementVNode("path",{d:"M9.51 16.698 2.244 9.18 1 11.478l6.226 6.264 2.283-1.044ZM6.189 6.676 4.943 5.423 7.02 3.335l1.245 1.253L6.19 6.676ZM9.302 14.61 4.113 9.39l.83-1.044H6.19l3.736-3.55V3.545L10.962 2.5l4.981.626.415 4.803-.83.835-1.453.209-.83 1.043 1.453 1.253.83-.835 1.453.626-4.15 4.176L12 13.775l.83-.835-1.453-1.462-1.037 1.253v1.252l-1.038.627ZM20.924 21.5l-6.018-6.473 1.66-1.67L23 19.412 20.924 21.5Z"},null,-1)])])}const h0=Q(Wle,[["render",jle],["__scopeId","data-v-e5501fa0"]]),Yle={...wf,expanded:{type:Boolean,required:!1,default:!1}},qle={class:"content logo no-scrollbar"},Xle={class:"nav-icon-wrapper"},Jle={class:"nav-text"},Zle={class:"nav-icon-wrapper"},ece={class:"nav-text"},tce={class:"profile content"},nce={class:"nav-icon-wrapper"},rce={class:"nav-text"},ace={class:"nav-icon-wrapper"},sce={class:"nav-text"},ice={class:"nav-icon-wrapper"},oce={class:"nav-text"},Ace={class:"nav-icon-wrapper"},lce={class:"nav-text settings"},cce={class:"nav-icon-wrapper"},uce={class:"nav-text"},dce={class:"nav-icon-wrapper"},fce={class:"nav-text name"},pce={class:"nav-icon-wrapper"},hce={class:"nav-text settings"},mce=["href"],gce={class:"nav-icon-wrapper"},vce={class:"nav-text sign-in-container"},yce={class:"fancy-button"},Bce=o.defineComponent({__name:"NavigationSide",props:Yle,emits:["click:sync","click:sign-in","click:language"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=o.ref(),s=o.ref();let i;const A=t;o.onMounted(()=>{var c;i=new ResizeObserver(l),a.value&&i.observe(a.value),(c=s.value)==null||c.addEventListener("scroll",l),l()}),o.onUnmounted(()=>{var c;i.disconnect(),(c=s.value)==null||c.removeEventListener("scroll",l)});function l(){var d,f;let c=!1,u=!1;s.value&&(s.value.clientHeight<s.value.scrollHeight&&(c=s.value.scrollTop>0,u=s.value.scrollTop<s.value.scrollHeight-s.value.clientHeight),(d=s.value)==null||d.classList.toggle("scrollable-up",c),(f=s.value)==null||f.classList.toggle("scrollable-down",u))}return(c,u)=>{var d;return o.openBlock(),o.createElementBlock("div",{ref_key:"navigationSide",ref:a,class:o.normalizeClass(["navigation-side",r.expanded?"expanded":""])},[o.createElementVNode("div",qle,[o.createVNode(o.unref(pn.RouterLink),{to:r.homeLink,class:"nav-item"},{default:o.withCtx(()=>[o.createElementVNode("div",Xle,[o.createVNode(ko,{"logo-type":"logo-only"})]),o.createElementVNode("div",Jle,[o.createVNode(ko,{"logo-type":"text-only"})])]),_:1},8,["to"])]),o.createElementVNode("div",{ref_key:"navigationPages",ref:s,class:"pages content no-scrollbar"},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.items,f=>(o.openBlock(),o.createBlock(o.unref(pn.RouterLink),{key:f.text,to:f.routerLocation,class:o.normalizeClass(["nav-item",f.highlighted?"highlight":""])},{default:o.withCtx(()=>[o.createElementVNode("div",Zle,[o.createVNode(o.unref(Se),{class:"nav-icon",icon:f.faIcon},null,8,["icon"])]),o.createElementVNode("div",ece,o.toDisplayString(f.text),1)]),_:2},1032,["to","class"]))),128))],512),o.createElementVNode("div",tce,[o.unref(nn)().user?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[(d=o.unref(nn)().user)!=null&&d.isPremium?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(pn.RouterLink),{key:0,to:o.unref(_e)().callbacks.premiumLinkCallback(),class:"nav-item premium"},{default:o.withCtx(()=>[o.createElementVNode("div",nce,[o.createVNode(o.unref(Se),{class:"nav-icon",icon:"crown"})]),o.createElementVNode("div",rce,o.toDisplayString(o.unref(n)("general.premium")),1)]),_:1},8,["to"])),o.createVNode(o.unref(pn.RouterLink),{to:r.links.gift,class:"nav-item"},{default:o.withCtx(()=>[o.createElementVNode("div",ace,[o.createVNode(o.unref(Se),{class:"nav-icon",icon:"gift"})]),o.createElementVNode("div",sce,o.toDisplayString(o.unref(n)("general.openCards")),1)]),_:1},8,["to"]),o.createVNode(o.unref(pn.RouterLink),{to:r.links.personalization,class:"nav-item"},{default:o.withCtx(()=>[o.createElementVNode("div",ice,[o.createVNode(o.unref(Se),{class:"nav-icon",icon:"paintbrush"})]),o.createElementVNode("div",oce,o.toDisplayString(o.unref(n)("general.personalization")),1)]),_:1},8,["to"]),o.createVNode(o.unref(pn.RouterLink),{to:r.links.settings,class:"nav-item"},{default:o.withCtx(()=>[o.createElementVNode("div",Ace,[o.createVNode(o.unref(Se),{class:"nav-icon",icon:"cog"})]),o.createElementVNode("div",lce,[o.createElementVNode("div",null,o.toDisplayString(o.unref(n)("general.settings")),1),o.createVNode(o.unref(nl),{class:"language-selection icon",onClick:u[0]||(u[0]=o.withModifiers(()=>{},["stop","prevent"]))})])]),_:1},8,["to"]),o.createElementVNode("div",{class:"nav-item",onClick:u[1]||(u[1]=f=>A("click:sync"))},[o.createElementVNode("div",cce,[o.createVNode(o.unref(Se),{class:"nav-icon",icon:"rotate-right"})]),o.createElementVNode("div",uce,o.toDisplayString(o.unref(n)("general.syncUserData")),1)]),o.createVNode(o.unref(pn.RouterLink),{to:r.links.profile,class:"nav-item"},{default:o.withCtx(()=>{var f,p,h,m,y;return[o.createElementVNode("div",dce,[(o.openBlock(),o.createBlock(Ta,{key:`${(f=o.unref(nn)().user)==null?void 0:f.selectedIconCard}${(p=o.unref(nn)().user)==null?void 0:p.selectedBannerColor}`,"card-code-prop":((h=o.unref(nn)().user)==null?void 0:h.selectedIconCard)??"05BC160","ignore-card-item":!0,"color-override":(m=o.unref(nn)().user)==null?void 0:m.selectedBannerColor,"router-link":r.links.profile},null,8,["card-code-prop","color-override","router-link"]))]),o.createElementVNode("div",fce,o.toDisplayString((y=o.unref(nn)().user)==null?void 0:y.name),1)]}),_:1},8,["to"])],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createVNode(o.unref(pn.RouterLink),{to:r.links.settings,class:"nav-item"},{default:o.withCtx(()=>[o.createElementVNode("div",pce,[o.createVNode(o.unref(Se),{class:"nav-icon",icon:"cog"})]),o.createElementVNode("div",hce,[o.createElementVNode("div",null,o.toDisplayString(o.unref(n)("general.settings")),1),o.createVNode(o.unref(nl),{class:"language-selection icon",onClick:u[2]||(u[2]=o.withModifiers(()=>{},["stop","prevent"]))})])]),_:1},8,["to"]),o.createElementVNode("a",{class:"nav-item",onClick:u[3]||(u[3]=f=>A("click:sign-in")),href:r.loginLink,target:"_blank"},[o.createElementVNode("div",gce,[o.createVNode(o.unref(Se),{class:"nav-icon",icon:"arrow-right-to-bracket"})]),o.createElementVNode("div",vce,[o.createElementVNode("div",yce,o.toDisplayString(o.unref(n)("general.signIn")),1)])],8,mce)],64))])],2)}}});const m0=Q(Bce,[["__scopeId","data-v-9d83667b"]]),wce=o.defineComponent({__name:"NavigationTopMobile",props:wf,emits:["click:sync","click:sign-in"],setup(e,{emit:t}){const n=e,r=t,a=o.ref(!1),s=o.ref(!1),i=o.ref(),A=o.ref();window.addEventListener("click",l);function l(d){var f;a.value&&(a.value=!!((f=A.value)!=null&&f.contains(d.target)))}function c(){o.nextTick(()=>{a.value=!0,o.nextTick(()=>{var d,f;(f=(d=i.value)==null?void 0:d.$el.querySelector("input"))==null||f.focus()})})}function u(){s.value=!0}return o.onUnmounted(()=>{window.removeEventListener("click",l)}),(d,f)=>{const p=o.resolveComponent("RouterLink");return o.openBlock(),o.createElementBlock("div",{ref_key:"navigationTopMobile",ref:A,class:"navigation-top-mobile"},[a.value?(o.openBlock(),o.createBlock(Ed,{key:1,"fetch-seach-result":n.fetchSeachResult,ref_key:"searchBar",ref:i,class:"search-bar"},null,8,["fetch-seach-result"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(o.unref(Se),{class:"icon",icon:"bars",onClick:u}),o.createVNode(p,{to:n.homeLink},{default:o.withCtx(()=>[o.createVNode(ko,{class:"logo-icon","logo-type":"text-only"})]),_:1},8,["to"]),o.createVNode(o.unref(Se),{class:"icon",icon:"search",onClick:o.withModifiers(c,["stop","prevent"])})],64)),o.createVNode(Lr,{"show-modal":s.value,"onUpdate:showModal":f[2]||(f[2]=h=>s.value=h)},{default:o.withCtx(()=>[o.createVNode(m0,o.mergeProps({class:"navigation-side","onClick:sync":f[0]||(f[0]=h=>r("click:sync")),"onClick:signIn":f[1]||(f[1]=h=>r("click:sign-in"))},n,{expanded:!0}),null,16)]),_:1},8,["show-modal"])],512)}}});const g0=Q(wce,[["__scopeId","data-v-f840153f"]]),bce={class:"navigation-top"},_ce=o.defineComponent({__name:"NavigationTop",props:wf,emits:["click:sync","click:sign-in"],setup(e,{emit:t}){const n=t,r=e;return(a,s)=>(o.openBlock(),o.createElementBlock("div",bce,[o.createVNode(X1,o.mergeProps({class:"navigation-top-desktop"},r),{default:o.withCtx(()=>[o.renderSlot(a.$slots,"default",{},void 0,!0)]),_:3},16),o.createVNode(g0,o.mergeProps({"onClick:signIn":s[0]||(s[0]=i=>n("click:sign-in")),"onClick:sync":s[1]||(s[1]=i=>n("click:sync")),class:"navigation-top-mobile"},r),null,16)]))}});const DE=Q(_ce,[["__scopeId","data-v-508e62c8"]]),Cce={name:{type:String,required:!0,default:""}},kce={class:"profile-dropdown-wrapper"},Ece=o.defineComponent({__name:"ProfileDropdown",props:Cce,setup(e){const t=e,n=o.ref(),r=o.ref();return o.onMounted(()=>{tt(n.value,{content:r.value,arrow:!0,interactive:!0,interactiveBorder:10})}),(a,s)=>(o.openBlock(),o.createElementBlock("div",kce,[o.createElementVNode("div",{ref_key:"profile",ref:n,class:"profile-dropdown"},o.toDisplayString(t.name),513),o.createElementVNode("div",{ref_key:"dropdown",ref:r,class:"slider-wrapper"},"Test",512)]))}});const UE=Q(Ece,[["__scopeId","data-v-1c516824"]]),Sce={modelValue:{type:String,required:!0,default:!1}},xce=["value"],Fce=o.defineComponent({__name:"ColorPicker",props:Sce,emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t;function a(s){r("update:modelValue",s.target.value)}return(s,i)=>(o.openBlock(),o.createElementBlock("input",{type:"color",value:n.modelValue,onInput:a},null,40,xce))}});const OE=Q(Fce,[["__scopeId","data-v-5ebbd7eb"]]),Tce={rows:{type:Array,required:!0,default:[]},selectedRegion:{type:String,required:!0,default:"americas"}},Ice={class:"multiselect-wrapper"},Dce=o.defineComponent({__name:"DashboardLeaderboardTable",props:Tce,emits:["update:selectedRegion"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.ref(r.selectedRegion),i=[{title:n("general.leaderboard"),id:"leaderboard"}];return o.watch(s,A=>{a("update:selectedRegion",A)}),(A,l)=>(o.openBlock(),o.createBlock(_i,{class:"small-table","heading-items":i},{heading:o.withCtx(()=>[o.createElementVNode("div",Ice,[o.createVNode(o.unref(qt),{modelValue:s.value,"onUpdate:modelValue":l[0]||(l[0]=c=>s.value=c),class:"multiselect",placeholder:o.unref(n)("general.server"),options:o.unref(Be)().dataJson.servers,"can-clear":!1,label:"name","value-prop":"nameRef"},null,8,["modelValue","placeholder","options"])])]),default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.rows,(c,u)=>(o.openBlock(),o.createBlock(l0,{id:c.id,key:c.id,change:c.change,lp:c.lp,name:c.name,rank:c.rank,"selected-banner-card":c.selectedBannerCard,matches:c.matches,index:u+2},null,8,["id","change","lp","name","rank","selected-banner-card","matches","index"]))),128))]),_:1}))}});const LE=Q(Dce,[["__scopeId","data-v-fe0f916c"]]),Uce={routerLink:{type:Object,required:!0,default:{path:"/404"}},deckBuilderRouterLink:{type:Object,required:!0,default:{path:"/404"}},archetypeId:{type:Number,required:!0,default:1},deckCode:{type:String,required:!0,default:""},index:{type:Number,required:!0,default:1},matches:{type:Number,required:!0,default:1},wins:{type:Number,required:!0,default:1},playrate:{type:Number,required:!0,default:1},regions:{type:Array,required:!0,default:[]},cards:{type:Array,required:!0,default:[]}},Oce={class:"table-card-row-background-wrapper"},Lce={class:"table-card-row-background"},Qce={class:"archetypes-row wrapper"},Mce={class:"column-content"},Nce={class:"column-content"},Pce=o.defineComponent({__name:"ArchetypesRow",props:Uce,setup(e){const t=e,n=o.computed(()=>Et(t.deckCode)),r=o.computed(()=>ln(n.value)),a=o.computed(()=>t.cards.map(i=>_e().callbacks.cardImageCallback(i,_t.Banner))),s=o.computed(()=>({showButtons:{deleteDeck:!1,updateDeckPrivacy:!1,editDeckName:!1,gemsCost:!1,openArchetypePage:!0,simulateMulligan:!0,openInDeckBuilder:!0,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!1},deckCode:t.deckCode,deckBuilderRouterLink:t.deckBuilderRouterLink,archetypeRouterLink:t.routerLink,deckId:void 0,deckName:void 0,isPrivate:void 0}));return(i,A)=>{const l=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(l,{to:t.routerLink,class:"wrapper"},{default:o.withCtx(()=>[o.createElementVNode("div",{class:"archetypes-row-wrapper wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",Oce,[o.createElementVNode("div",Lce,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.value,c=>(o.openBlock(),o.createElementBlock("div",{key:c,class:"background-card-wrapper",style:o.normalizeStyle({"--background-image":`url(${c})`})},[...A[1]||(A[1]=[o.createElementVNode("div",{class:"background-card"},null,-1)])],4))),128))])]),o.createElementVNode("div",Qce,[o.createElementVNode("div",{class:"column-content deck-highlight-wrapper",onClick:A[0]||(A[0]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createVNode(Ea,{"deck-code":t.deckCode,deck:n.value,cards:r.value,"deck-buttons-props":s.value},null,8,["deck-code","deck","cards","deck-buttons-props"])]),o.createElementVNode("div",Mce,o.toDisplayString(o.unref(Te)(t.matches)),1),o.createElementVNode("div",{class:"column-content",style:o.normalizeStyle({color:`var(${o.unref(Yn)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Te)(t.wins/t.matches*100,2,3)+"%"),5),o.createElementVNode("div",Nce,o.toDisplayString(o.unref(Te)(t.playrate,2,3)+"%"),1)])],4)]),_:1},8,["to"])}}});const v0=Q(Pce,[["__scopeId","data-v-61aebadd"]]),Rce={archetypeRows:{type:Array,required:!0,default:[]},loading:{type:Boolean,required:!1,default:!1}},Hce=o.defineComponent({__name:"ArchetypesTable",props:Rce,emits:["sort-updated"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.ref([{id:"deck",isShown:!0,sortDirection:we.NOT_SORTABLE,title:n("general.deck")},{id:"matches",isShown:!0,sortDirection:we.DOWN,title:n("general.matches")},{id:"winrate",isShown:!0,sortDirection:we.NEITHER,title:n("general.winrate")},{id:"playrate",isShown:!0,sortDirection:we.NEITHER,title:n("general.playrate")}]);function i(A){const l=hi(A,s);l&&a("sort-updated",l)}return(A,l)=>(o.openBlock(),o.createBlock(Fa,{class:"large-table",loading:r.loading,"heading-items":s.value,onToggleSort:i},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.archetypeRows,(c,u)=>(o.openBlock(),o.createBlock(v0,o.mergeProps({key:c.deckCode},{ref_for:!0},c,{index:u+2}),null,16,["index"]))),128))]),_:1},8,["loading","heading-items"]))}});const QE=Q(Hce,[["__scopeId","data-v-4a8597f4"]]),Vce={typeSummary:{type:Object,required:!0,default:{quantity:0,isError:!1,typeRef:"Champion"}}},$ce={class:"number-container"},Kce={key:0,class:"type-icon"},zce=o.defineComponent({__name:"DeckBuilderSummaryType",props:Vce,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["deck-builder-summary-type",[t.typeSummary.isError?"error":"",t.typeSummary.typeRef==="Deck"?"deck":""]])},[o.createElementVNode("div",$ce,o.toDisplayString(t.typeSummary.quantity),1),t.typeSummary.typeRef!=="Deck"?(o.openBlock(),o.createElementBlock("div",Kce,[t.typeSummary.typeRef==="Champion"?(o.openBlock(),o.createBlock(d0,{key:0})):t.typeSummary.typeRef==="Follower"?(o.openBlock(),o.createBlock(u0,{key:1})):t.typeSummary.typeRef==="Spell"?(o.openBlock(),o.createBlock(p0,{key:2})):t.typeSummary.typeRef==="Landmark"?(o.openBlock(),o.createBlock(f0,{key:3})):t.typeSummary.typeRef==="Equipment"?(o.openBlock(),o.createBlock(h0,{key:4})):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)],2))}});const Ha=Q(zce,[["__scopeId","data-v-2e6bb287"]]),Wce={cards:{type:Array,required:!0,default:[]},deck:{type:Object,required:!0,default:{}}},Gce={class:"deck-builder-summary"},jce=o.defineComponent({__name:"DeckBuilderSummary",props:Wce,setup(e){const t=e;function n(c,u,d){const f=t.cards.filter(c).map(p=>t.deck[p.cardCode]).reduce((p,h)=>p+h,0);return{typeRef:d,quantity:f,isError:u(f)}}const r=o.computed(()=>n(c=>c.typeRef==="Unit"&&c.supertype==="Champion",c=>c>6,"Champion")),a=o.computed(()=>n(c=>c.typeRef==="Unit"&&c.supertype==="",()=>!1,"Follower")),s=o.computed(()=>n(c=>c.typeRef==="Spell",()=>!1,"Spell")),i=o.computed(()=>n(c=>c.typeRef==="Landmark",()=>!1,"Landmark")),A=o.computed(()=>n(c=>c.typeRef==="Equipment",()=>!1,"Equipment")),l=o.computed(()=>n(()=>!0,c=>c!==40,"Deck"));return(c,u)=>(o.openBlock(),o.createElementBlock("div",Gce,[o.createVNode(Ha,{"type-summary":r.value},null,8,["type-summary"]),o.createVNode(Ha,{"type-summary":a.value},null,8,["type-summary"]),o.createVNode(Ha,{"type-summary":s.value},null,8,["type-summary"]),o.createVNode(Ha,{"type-summary":i.value},null,8,["type-summary"]),o.createVNode(Ha,{"type-summary":A.value},null,8,["type-summary"]),o.createVNode(Ha,{"type-summary":l.value},null,8,["type-summary"])]))}});const y0=Q(jce,[["__scopeId","data-v-ec8f0fa9"]]),Yce={rows:{type:Array,required:!0,default:[]}},qce=o.defineComponent({__name:"DashboardCardTable",props:Yce,setup(e){const{t}=Y(),n=e,r=[{title:t("general.cards"),id:"cards"},{title:t("general.matches"),id:"matches"},{title:t("general.winrate"),id:"winrate"}];return(a,s)=>(o.openBlock(),o.createBlock(_i,{class:"small-table","heading-items":r},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.rows,i=>(o.openBlock(),o.createBlock(A0,{key:i.cardCode,"card-code":i.cardCode,matches:i.matches,wins:i.wins,index:i.index+2},null,8,["card-code","matches","wins","index"]))),128))]),_:1}))}});const ME=Q(qce,[["__scopeId","data-v-e5817be3"]]),Xce={modelValue:{type:Number,required:!0,default:5}},Jce=["value"],Zce=o.defineComponent({__name:"ZoomSlider",props:Xce,emits:["update:modelValue"],setup(e,{emit:t}){const n=o.ref(),r=o.ref(),a=e,s=t;function i(A){s("update:modelValue",Number.parseInt(A.target.value))}return o.onMounted(()=>{tt(n.value,{content:r.value,arrow:!0,interactive:!0,trigger:"mouseenter click",interactiveBorder:10})}),(A,l)=>(o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("div",{ref_key:"button",ref:n,class:"circle-button"},[o.createVNode(o.unref(Se),{icon:"search-plus",class:"zoom-button"})],512),o.createElementVNode("div",{ref_key:"slider",ref:r,class:"slider-wrapper"},[o.createElementVNode("input",{type:"range",min:"1",max:"10",class:"slider",value:a.modelValue,onInput:i},null,40,Jce)],512)]))}});const NE=Q(Zce,[["__scopeId","data-v-bb4c05e4"]]),eue={cardProp:{type:Object,required:!1,default:void 0},cardCodeProp:{type:String,required:!1,default:void 0}},tue={class:"card-overview"},nue={class:"full-art-wrapper"},rue=["src"],aue={class:"overview-top"},sue={class:"card-name"},iue={class:"card-tags"},oue={class:"card-tag"},Aue={class:"card-tag-text"},lue={class:"card-tag"},cue={class:"card-tag-text"},uue={class:"card-tag"},due={class:"card-tag-text"},fue={class:"card-tag"},pue={class:"card-tag-text"},hue={class:"card-text"},mue={class:"keyword-description"},gue={class:"keyword-name"},vue={class:"flavor-text"},yue=o.defineComponent({__name:"CardOverview",props:eue,setup(e){const t=e,n=yl(t.cardProp,t.cardCodeProp,!0),r=o.ref(!1),a=o.computed(()=>{if(n.value===void 0)return[];const c=[];for(const u of n.value.keywordRefs){const d=Be().dataJson.keywords.find(f=>f.nameRef===u);d&&c.push(d)}return c}),s=o.computed(()=>{if(n.value===void 0)return null;const c=Be().dataJson;return HA(n.value.regionRefs[0])?c.runeterraChampions.find(u=>u.nameRef===n.value.regionRefs[0])??c.regions[0]:c.regions.find(u=>u.nameRef===n.value.regionRefs[0])??c.regions[0]}),i=o.computed(()=>n.value===void 0?null:Be().dataJson.rarities.find(c=>c.nameRef===n.value.rarityRef)??Be().dataJson.rarities[0]),A=o.computed(()=>n.value===void 0?null:Be().dataJson.types.find(c=>c.nameRef===n.value.typeRef)??Be().dataJson.types[0]),l=o.computed(()=>n.value===void 0?null:Be().dataJson.sets.find(c=>c.nameRef===n.value.set)??Be().dataJson.sets[0]);return(c,u)=>{var d,f,p,h,m,y,g,w;return o.openBlock(),o.createElementBlock("div",tue,[o.createVNode(o.unref(Lr),{"show-modal":r.value,"onUpdate:showModal":u[0]||(u[0]=B=>r.value=B)},{default:o.withCtx(()=>{var B;return[o.createElementVNode("div",nue,[o.createElementVNode("img",{class:"full-art",src:o.unref(_e)().callbacks.cardImageCallback(((B=o.unref(n))==null?void 0:B.cardCode)??"01IO001",o.unref(_t).Full)},null,8,rue)])]}),_:1},8,["show-modal"]),o.unref(n)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",aue,[o.createElementVNode("div",sue,o.toDisplayString(o.unref(n).name),1),o.createElementVNode("button",{ref:"button",class:"circle-button",onClick:u[1]||(u[1]=B=>r.value=!0)},[o.createVNode(o.unref(Se),{icon:"image"})],512)]),o.createElementVNode("div",iue,[o.createElementVNode("div",oue,[o.createElementVNode("div",{class:"icon",style:o.normalizeStyle({content:`url(${((d=s.value)==null?void 0:d.icon)??""})`})},null,4),o.createElementVNode("div",Aue,o.toDisplayString((f=s.value)==null?void 0:f.name),1)]),o.createElementVNode("div",lue,[o.createElementVNode("div",{class:"icon",style:o.normalizeStyle({content:`url(${((p=i.value)==null?void 0:p.icon)??""})`})},null,4),o.createElementVNode("div",cue,o.toDisplayString((h=i.value)==null?void 0:h.name),1)]),o.createElementVNode("div",uue,[o.createElementVNode("div",{class:"icon",style:o.normalizeStyle({content:`url(${((m=A.value)==null?void 0:m.icon)??""})`})},null,4),o.createElementVNode("div",due,o.toDisplayString((y=A.value)==null?void 0:y.name),1)]),o.createElementVNode("div",fue,[o.createElementVNode("div",{class:"icon",style:o.normalizeStyle({content:`url(${((g=l.value)==null?void 0:g.icon)??""})`})},null,4),o.createElementVNode("div",pue,o.toDisplayString((w=l.value)==null?void 0:w.name),1)])]),u[3]||(u[3]=o.createElementVNode("hr",{class:"divider"},null,-1)),o.createElementVNode("div",hue,o.toDisplayString(o.unref(n).descriptionRaw),1),u[4]||(u[4]=o.createElementVNode("hr",{class:"divider"},null,-1)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.value,B=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:B.nameRef},[o.createElementVNode("div",mue,[o.createElementVNode("b",gue,o.toDisplayString(B.name+" - "),1),o.createElementVNode("span",null,o.toDisplayString(B.description),1)]),u[2]||(u[2]=o.createElementVNode("hr",{class:"divider"},null,-1))],64))),128)),o.createElementVNode("div",vue,o.toDisplayString(o.unref(n).flavorText),1)],64)):o.createCommentVNode("",!0)])}}});const PE=Q(yue,[["__scopeId","data-v-d4e75028"]]),Bue={gameType:{type:String,required:!0,default:""},matches:{type:Number,required:!0,default:1},wins:{type:Number,required:!0,default:1}},wue={class:"profile-game-type-winrate"},bue={class:"game-type"},_ue=o.defineComponent({__name:"ProfileGameTypeWinrate",props:Bue,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",wue,[o.createElementVNode("div",bue,o.toDisplayString(t.gameType),1),o.createVNode(o0,{matches:t.matches,wins:t.wins},null,8,["matches","wins"])]))}});const RE=Q(_ue,[["__scopeId","data-v-1bb3c9de"]]),Cue={deckRows:{type:Array,required:!0,default:[]},loading:{type:Boolean,required:!1,default:!1}},kue=o.defineComponent({__name:"DecksTable",props:Cue,emits:["sort-updated"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.ref([{id:"deck",isShown:!0,sortDirection:we.NOT_SORTABLE,title:n("general.deck")},{id:"matches",isShown:!0,sortDirection:we.DOWN,title:n("general.matches")},{id:"winrate",isShown:!0,sortDirection:we.NEITHER,title:n("general.winrate")},{id:"manaCurve",isShown:!0,sortDirection:we.NOT_SORTABLE,title:n("general.manaCurve")},{id:"cost",isShown:!0,sortDirection:we.NOT_SORTABLE,title:n("general.cost")}]);function i(A){const l=hi(A,s);l&&a("sort-updated",l)}return(A,l)=>(o.openBlock(),o.createBlock(Fa,{class:"large-table",loading:r.loading,"heading-items":s.value,onToggleSort:i},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.deckRows,(c,u)=>(o.openBlock(),o.createBlock(ql,o.mergeProps({key:c.deckCode},{ref_for:!0},c,{index:u+2}),null,16,["index"]))),128))]),_:1},8,["loading","heading-items"]))}});const HE=Q(kue,[["__scopeId","data-v-c789c9b5"]]),Eue={deckCode:{type:String,required:!1,default:""}},Sue={deck:{type:Object,required:!0,default:{}},deckButtonsProps:{type:Object,required:!0,default:{deckCode:"",deckId:void 0,showButtons:void 0,archetypeRouterLink:void 0,deckBuilderRouterLink:"404",deckName:void 0,showUploaded:void 0,isPrivate:void 0}}},xue={class:"deck-preview-wrapper"},Fue=o.defineComponent({__name:"ShowDeckPreviewButton",props:Sue,setup(e){const{t}=Y(),n=e,r=o.ref(null),a=o.ref(!1);return o.onMounted(()=>{tt(r.value,{content:t("deck.showPreview"),arrow:!0})}),(s,i)=>(o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("button",{ref_key:"button",ref:r,class:"circle-button",onClick:i[0]||(i[0]=A=>a.value=!0)},[o.createVNode(o.unref(Se),{icon:"camera"})],512),o.createVNode(Lr,{"show-modal":a.value,"onUpdate:showModal":i[1]||(i[1]=A=>a.value=A)},{default:o.withCtx(()=>[o.createElementVNode("div",xue,[o.createVNode(o.unref(vf),{deck:n.deck,"deck-buttons-props":n.deckButtonsProps},null,8,["deck","deck-buttons-props"])])]),_:1},8,["show-modal"])]))}});const Tue=Q(Fue,[["__scopeId","data-v-90be9f81"]]),Iue={class:"cards-container no-scrollbar"},Due={key:0,class:"input-deck-code"},Uue={class:"text"},Oue=["placeholder"],Lue={class:"bottom"},Que={class:"bottom-buttons"},VE=o.defineComponent({__name:"DeckBuilderSidePanel",props:Eue,emits:["update:card-quantity","input:deck-code","click:save"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.computed(()=>{if(r.deckCode===void 0)throw new Error("DeckCode must be defined");return Et(r.deckCode)}),i=o.computed(()=>ln(s.value)),A=o.computed(()=>({showButtons:{deleteDeck:!1,updateDeckPrivacy:!1,editDeckName:!1,gemsCost:!0,openArchetypePage:!1,simulateMulligan:!0,openInDeckBuilder:!1,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!0},deckCode:r.deckCode,deckBuilderRouterLink:"404"}));function l(c){a("input:deck-code",c.target.value)}return(c,u)=>(o.openBlock(),o.createBlock(pi,{"show-clear-all":!1},{default:o.withCtx(()=>[o.createVNode(o.unref(y0),{cards:i.value,deck:s.value},null,8,["cards","deck"]),(o.openBlock(),o.createBlock(o.unref(Gl),{class:"mana-curve-chart",key:r.deckCode,"padding-top":0,"show-data-labels":!1,"data-labels-offset":0,"tooltips-enabled":!1,"display-x-scale":!0,deck:s.value},null,8,["deck"])),o.createElementVNode("div",Iue,[i.value.length===0?(o.openBlock(),o.createElementBlock("div",Due,[o.createElementVNode("div",Uue,o.toDisplayString(o.unref(n)("deckBuilder.inputDeckCode")),1),o.createElementVNode("input",{onInput:l,placeholder:o.unref(n)("general.deckCode"),type:"text"},null,40,Oue)])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,d=>(o.openBlock(),o.createBlock(o.unref(bt),{"onUpdate:cardQuantity":u[0]||(u[0]=f=>a("update:card-quantity",f)),key:d.cardCode,"card-prop":d,"maintain-aspect-ratio":!0,"quantity-number":s.value[d.cardCode],"show-plus-minus":!0,"router-link":o.unref(_e)().callbacks.cardCodeRouterLinkCallback(d.cardCode),class:"card-slice-item"},null,8,["card-prop","quantity-number","router-link"]))),128))]),o.createElementVNode("div",Lue,[o.createElementVNode("div",Que,[o.createVNode(o.unref(sf),{deck:s.value},null,8,["deck"]),o.createVNode(o.unref(af),{"deck-code":r.deckCode},null,8,["deck-code"]),o.createVNode(Tue,{deck:s.value,"deck-buttons-props":A.value},null,8,["deck","deck-buttons-props"]),o.createVNode(o.unref(of),{"deck-code":r.deckCode,"deck-name":o.unref(Dm)(r.deckCode)},null,8,["deck-code","deck-name"])]),o.createElementVNode("div",{class:"fancy-button",onClick:u[1]||(u[1]=d=>a("click:save"))},o.toDisplayString(o.unref(n)("general.save")),1)])]),_:1}))}});const Mue={data:{type:Array,required:!0,default:[]},backgroundColor:{type:String,required:!1,default:"#000000"}},$E=o.defineComponent({__name:"RegionDistributionChart",props:Mue,setup(e){const t=o.ref(null);He.register(...Rr);const n=e,r=o.computed(()=>({labels:n.data.map(s=>s.region),datasets:[{data:n.data.map(s=>s.matches),backgroundColor:n.data.map(s=>Ww(s.region))}]})),a={cutout:"80%",elements:{arc:{borderWidth:3,borderColor:n.backgroundColor}},plugins:{legend:{display:!0,position:"right",labels:{usePointStyle:!0,generateLabels(s){const i=[],A=s.data.labels;for(let l=0;l<s.data.labels.length;l++)i.push({text:`${Tm(A[l])} (${s.data.datasets[0].data[l]})`,borderRadius:999,datasetIndex:0,index:l,fontColor:os("--color-0"),fillStyle:s.data.datasets[0].backgroundColor[l]});return i}}},datalabels:{display:!1}}};return(s,i)=>(o.openBlock(),o.createBlock(o.unref(Rd),{ref_key:"chart",ref:t,"chart-data":r.value,options:a},null,8,["chart-data"]))}}),Nue={class:"circle-button"},Pue=o.defineComponent({__name:"DeckButtonsDropdown",props:r3,emits:["click:share","click:edit-name","click:update-privacy","click:delete"],setup(e,{emit:t}){const n=e,r=o.ref(null),a=o.ref(null),s=t;return o.onMounted(()=>{tt(r.value,{content:a.value,arrow:!0,interactive:!0,trigger:"click",duration:0})}),(i,A)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"containerDiv",ref:r,class:"deck-buttons-dropdown"},[o.createElementVNode("div",Nue,[o.createVNode(o.unref(Se),{class:"icon",icon:"fa-chevron-down"})]),o.createElementVNode("div",{ref_key:"tippyDiv",ref:a,class:"tippy-div"},[o.createVNode(o.unref(Qo),o.mergeProps({class:"deck-buttons","onClick:delete":A[0]||(A[0]=l=>s("click:delete")),"onClick:editName":A[1]||(A[1]=l=>s("click:edit-name")),"onClick:share":A[2]||(A[2]=l=>s("click:share")),"onClick:updatePrivacy":A[3]||(A[3]=l=>s("click:update-privacy"))},n),null,16)],512)],512))}});const B0=Q(Pue,[["__scopeId","data-v-79fac15d"]]),Rue={value:{type:Number,required:!0,default:1},max:{type:Number,required:!0,default:2}},KE=o.defineComponent({__name:"SimpleDoughnutChart",props:Rue,setup(e){const t=o.ref(null);He.register(...Rr);const n=e,r=o.computed(()=>({labels:["Value","Max"],datasets:[{data:[n.value,n.max-n.value],backgroundColor:[os("--color-good"),"transparent"]}]})),a={cutout:"80%",elements:{arc:{borderWidth:0}},plugins:{legend:{display:!1}}},s=[{id:"text",beforeDraw:function(i){const A=i.chartArea.width,l=i.chartArea.height,c=i.ctx;c.restore();const u=(l/100).toFixed(2);c.font=`bold ${u}em sans-serif`,c.textBaseline="middle";const f=i.data.datasets[0].data[0].toFixed(2),p=Math.round((A-c.measureText(f).width)/2),h=l/2;c.fillStyle=os("--color-good"),c.fillText(f,p,h),c.save()}}];return(i,A)=>(o.openBlock(),o.createBlock(o.unref(Rd),{ref_key:"chart",ref:t,"chart-data":r.value,options:a,plugins:s},null,8,["chart-data"]))}}),Hue={items:{type:Array,required:!0,default:()=>[]}},Vue={title:{type:String,required:!0,default:""},start:{type:Date,required:!0,default:new Date},state:{type:String,required:!0,default:!1},description:{type:String,required:!0,default:""}},$ue={class:"content"},Kue={class:"heading"},zue={class:"title"},Wue={class:"date"},Gue={class:"description"},jue=o.defineComponent({__name:"TournamentTimelineItem",props:Vue,setup(e){const t=o.inject(Nr),n=e;return(r,a)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["tournament-timeline-item",n.state])},[a[0]||(a[0]=o.createElementVNode("div",{class:"progress-circle"},null,-1)),o.createElementVNode("div",$ue,[o.createElementVNode("div",Kue,[o.createElementVNode("div",zue,o.toDisplayString(n.title),1),o.createElementVNode("div",Wue,o.toDisplayString(o.unref(t)(n.start).fromNow()),1)]),o.createElementVNode("div",Gue,o.toDisplayString(r.description),1)])],2))}});const Yue=Q(jue,[["__scopeId","data-v-f008d11f"]]),que={class:"tournament-timeline no-scrollbar"},Xue=o.defineComponent({__name:"TournamentTimeline",props:Hue,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",que,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.items,a=>(o.openBlock(),o.createBlock(Yue,{description:a.description,state:a.state,title:a.title,start:a.start},null,8,["description","state","title","start"]))),256))]))}});const zE=Q(Xue,[["__scopeId","data-v-420a5855"]]),Jue={players:{type:Array,required:!0,default:[]},shownColumns:{type:Object,required:!0,default:{player:!0,lp:!0,change:!0,wins:!0,matches:!0,winrate:!0,deck:!0}},loading:{type:Boolean,required:!1,default:!1}},Zue={routerLink:{type:Object,required:!0,default:{path:"/404"}},index:{type:Number,required:!0,default:0},id:{type:Number,required:!0,default:0},name:{type:String,required:!0,default:""},rank:{type:Number,required:!0,default:0},gameWins:{type:Number,required:!0,default:0},gameLosses:{type:Number,required:!0,default:0},matchWins:{type:Number,required:!0,default:0},matchLosses:{type:Number,required:!0,default:0},opponentsMatchWinrate:{type:Number,required:!0,default:0},opponentsGameWinrate:{type:Number,required:!0,default:0},decks:{type:Array,required:!0,default:[]},selectedBannerCard:{type:[String,null],required:!0,default:""},selectedBannerColor:{type:[String,null],required:!1,default:""},shownColumns:{type:Object,required:!0,default:{player:!0,lp:!0,change:!0,wins:!0,matches:!0,winrate:!0,deck:!0}}},ede={results:{type:Object,required:!0,default:{type:"single",isVictory:null}},deckCode:{type:String,required:!0,default:""},showEye:{type:Boolean,required:!1,default:!1}},tde={class:"tournament-deck-result"},nde={key:0,class:"results"},rde={class:"good"},ade={class:"bad"},sde=o.defineComponent({__name:"TournamentDeckResult",props:ede,setup(e){const t=e,n=o.computed(()=>t.results.type==="multiple"?"":t.results.isBanned?"ban":t.results.isVictory===null?"":t.results.isVictory===!1?"times":"check"),r=o.computed(()=>n.value==="check"),a=o.computed(()=>({showButtons:{deleteDeck:!1,updateDeckPrivacy:!1,editDeckName:!1,gemsCost:!0,openArchetypePage:!0,simulateMulligan:!0,openInDeckBuilder:!0,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!0},deckCode:t.deckCode,deckBuilderRouterLink:{name:"deck-builder",params:{deckCode:t.deckCode}},archetypeRouterLink:"/404"}));return(s,i)=>(o.openBlock(),o.createElementBlock("div",tde,[o.createVNode(Ea,{"deck-code":t.deckCode,"show-eye":t.results.type==="multiple"||t.showEye,"deck-buttons-props":a.value,class:"deck-highlight"},null,8,["deck-code","show-eye","deck-buttons-props"]),t.results.type==="multiple"?(o.openBlock(),o.createElementBlock("div",nde,[o.createElementVNode("span",rde,o.toDisplayString(t.results.wins),1),i[0]||(i[0]=o.createTextVNode(" - ",-1)),o.createElementVNode("span",ade,o.toDisplayString(t.results.losses),1),i[1]||(i[1]=o.createTextVNode(" - ",-1)),o.createElementVNode("span",null,o.toDisplayString(t.results.bans),1)])):n.value.length>0?(o.openBlock(),o.createBlock(o.unref(Se),{key:1,class:o.normalizeClass(["icon",r.value?"good":"bad"]),icon:n.value},null,8,["icon","class"])):o.createCommentVNode("",!0)]))}});const lr=Q(sde,[["__scopeId","data-v-8aaa4e70"]]),ide={class:"tournament-player-additional-data-wrapper"},ode={class:"tournament-player-additional-data-content-top"},Ade={class:"winrate-wrapper"},lde={class:"winrate-wrapper"},cde={class:"winrate-wrapper"},ude={class:"tournament-player-additional-data-content-bottom"},dde={class:"row tournament-player-row-background-wrapper"},fde={class:"tournament-player-row-background"},pde={class:"row tournament-player-row wrapper"},hde={class:"column-content"},mde={class:"column-content"},gde=o.defineComponent({__name:"TournamentPlayerRow",props:Zue,setup(e){const{t}=Y(),n=e,r=o.ref(null),a=o.ref(0),s=o.ref(!1),i=o.computed(()=>n.selectedBannerCard?["",_e().callbacks.cardImageCallback(n.selectedBannerCard,_t.Banner)]:[]);return o.onMounted(()=>{r.value&&(a.value=r.value.clientHeight)}),(A,l)=>{const c=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(c,{to:n.routerLink,class:"wrapper"},{default:o.withCtx(()=>[o.createElementVNode("div",{class:o.normalizeClass(["tournament-player-row-wrapper wrapper",{expanded:s.value}]),style:o.normalizeStyle({"--index":n.index})},[o.createElementVNode("div",{class:"row tournament-player-additional-data-row",style:o.normalizeStyle({"--height":a.value+"px"}),onClick:l[0]||(l[0]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createElementVNode("div",ide,[o.createElementVNode("div",{class:"tournament-player-additional-data-content",ref_key:"additionalDataContent",ref:r},[o.createElementVNode("div",ode,[o.createVNode(RA,{heading:o.unref(t)("tournament.oppWinrate")},{default:o.withCtx(()=>[o.createElementVNode("div",Ade,o.toDisplayString(o.unref(Te)(n.opponentsMatchWinrate*100,1,3)+"%"),1)]),_:1},8,["heading"]),o.createVNode(RA,{heading:o.unref(t)("tournament.gameWinrate")},{default:o.withCtx(()=>[o.createElementVNode("div",lde,o.toDisplayString(o.unref(Te)(n.opponentsMatchWinrate*100,1,3)+"%"),1)]),_:1},8,["heading"]),o.createVNode(RA,{heading:o.unref(t)("tournament.oppGameWinrate")},{default:o.withCtx(()=>[o.createElementVNode("div",cde,o.toDisplayString(o.unref(Te)(n.opponentsMatchWinrate*100,1,3)+"%"),1)]),_:1},8,["heading"])]),o.createElementVNode("div",ude,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.decks,u=>(o.openBlock(),o.createBlock(lr,{key:u.deckCode,"deck-code":u.deckCode,results:{type:"multiple",wins:u.wins,losses:u.losses,bans:u.bans}},null,8,["deck-code","results"]))),128))])],512)])],4),o.createElementVNode("div",dde,[o.createElementVNode("div",fde,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,u=>(o.openBlock(),o.createElementBlock("div",{key:u,class:"background-card",style:o.normalizeStyle({"--background-image":`url(${u})`})},null,4))),128))])]),o.createElementVNode("div",pde,[n.shownColumns.player?(o.openBlock(),o.createElementBlock("div",{key:0,class:"column-content card-wrapper",onClick:l[1]||(l[1]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createVNode(bt,{class:"card-slice-item","card-code-prop":n.selectedBannerCard??void 0,color:n.selectedBannerColor??"var(--color-background-2-rgb)","ignore-card-item":!0,"mana-number":n.rank,name:n.name,"maintain-aspect-ratio":!1,"router-link":n.routerLink},null,8,["card-code-prop","color","mana-number","name","router-link"])])):o.createCommentVNode("",!0),o.createElementVNode("div",hde,o.toDisplayString(n.matchWins)+" - "+o.toDisplayString(n.matchLosses),1),o.createElementVNode("div",mde,o.toDisplayString(n.gameWins)+" - "+o.toDisplayString(n.gameLosses),1),o.createElementVNode("div",{class:"column-content",style:o.normalizeStyle({color:`var(${o.unref(Yn)(n.matchWins/(n.matchWins+n.matchLosses))})`})},o.toDisplayString(o.unref(Te)(n.matchWins/(n.matchWins+n.matchLosses)*100,1,3)+"%"),5),o.createElementVNode("div",{class:"column-content options-button",onClick:l[2]||(l[2]=o.withModifiers(u=>s.value=!s.value,["stop","prevent"]))},[o.createVNode(o.unref(Se),{class:"icon",icon:"fa-chevron-down"})])])],6)]),_:1},8,["to"])}}});const vde=Q(gde,[["__scopeId","data-v-3656be66"]]),yde=o.defineComponent({__name:"TournamentPlayerTable",props:Jue,emits:["sort-updated"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.ref([{id:"player",isShown:r.shownColumns.player,sortDirection:we.UP,title:n("general.player")},{id:"matchWLs",isShown:r.shownColumns.matchWLs,sortDirection:we.NEITHER,title:n("general.matchRecord")},{id:"gameWLs",isShown:r.shownColumns.gameWLs,sortDirection:we.NEITHER,title:n("general.gameRecord")},{id:"winrate",isShown:r.shownColumns.winrate,sortDirection:we.NEITHER,title:n("general.winrate")}]),i=o.computed(()=>({"--columns":s.value.filter(l=>l.isShown).length}));function A(l){const c=hi(l,s);c&&a("sort-updated",c)}return(l,c)=>(o.openBlock(),o.createBlock(Fa,{class:"large-table",loading:r.loading,style:o.normalizeStyle(i.value),"heading-items":s.value,onToggleSort:A},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.players,(u,d)=>(o.openBlock(),o.createBlock(vde,o.mergeProps({key:`${u.rank}${u.name}${u.id}`},{ref_for:!0},u,{index:d+2,"router-link":o.unref(_e)().callbacks.playerIdRouterLinkCallback(u.id),"shown-columns":r.shownColumns}),null,16,["index","router-link","shown-columns"]))),128))]),_:1},8,["loading","style","heading-items"]))}});const WE=Q(yde,[["__scopeId","data-v-a8525fd3"]]),Bde={selectedRound:{type:Number,required:!0,default:1},numRounds:{type:Number,required:!0,default:1}},wde={class:"swiss-round-options"},bde=["onClick"],_de=o.defineComponent({__name:"TournamentSwissRoundOptions",props:Bde,emits:["update:selectedRound"],setup(e,{emit:t}){const n=e,r=t;return(a,s)=>(o.openBlock(),o.createElementBlock("div",wde,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.numRounds,i=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["swiss-round-option",i===n.selectedRound?"selected":""]),onClick:A=>r("update:selectedRound",i)},o.toDisplayString(i),11,bde))),256))]))}});const GE=Q(_de,[["__scopeId","data-v-cfee2da2"]]),Cde={isHorizontal:{type:Boolean,required:!0,default:!1},player:{type:[Object,null],required:!0,default:null},games:{type:Array,required:!0,default:()=>[]},resultToShow:{type:[Number,null],required:!0,default:null},showTippy:{type:Boolean,required:!1,default:!1},placement:{type:String,required:!0,default:"top"},playerNumber:{type:Number,required:!0,default:1}},kde={class:"results"},Ede=["onMouseenter","result-index"],Sde=["result-index"],xde=o.defineComponent({__name:"TournamentPlayer",props:Cde,emits:["update:result-to-show"],setup(e,{emit:t}){const n=pn.useRoute(),r=e,a=o.ref(null),s=o.ref(null),i=o.ref(null),A=o.ref([]),l=o.ref(null),c=o.ref(null),u=t,d=o.computed(()=>r.playerNumber===1?"player1":"player2");function f(m){u("update:result-to-show",m)}o.onMounted(()=>{console.log(l.value),p()}),o.watch([()=>r.showTippy,()=>r.resultToShow],()=>{h()});function p(){if(!(s.value===null||i.value===null)&&(a.value=tt(i.value,{content:s.value,placement:r.placement==="top"?"top-start":r.isHorizontal?"bottom-end":"bottom-start",arrow:!0,duration:0,trigger:"manual",popperOptions:{modifiers:[{name:"flip",options:{fallbackPlacements:r.isHorizontal?[r.placement==="top"?"bottom-end":"bottom-start",r.placement==="top"?"top-end":"top-start",r.placement==="top"?"bottom-start":"bottom-end",r.placement==="top"?"top-start":"top-end"]:[r.placement==="top"?"right":"left",r.placement==="top"?"left":"right"]}}]}}),!(l.value===null||c.value===null)))for(const m of l.value){const y=m.getAttribute("result-index");console.log(y);const g=c.value.find(w=>w.getAttribute("result-index")===y);console.log(g),g&&A.value.push(tt(g,{content:m,placement:r.placement,arrow:!0,duration:0,trigger:"manual",popperOptions:{modifiers:[{name:"flip",options:{fallbackPlacements:r.isHorizontal?[r.placement==="top"?"bottom-end":"bottom-start",r.placement==="top"?"top-end":"top-start",r.placement==="top"?"bottom-start":"bottom-end",r.placement==="top"?"top-start":"top-end"]:[r.placement==="top"?"right":"left",r.placement==="top"?"left":"right"]}}]}}))}}function h(){var m,y;if((m=a.value)==null||m.hide(),A.value.forEach(g=>{g.hide()}),!!r.showTippy){if(r.resultToShow===null){(y=a.value)==null||y.show();return}A.value.forEach((g,w)=>{w===r.resultToShow&&g.show()})}}return(m,y)=>{var g,w;return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["tournament-player",[r.showTippy?"show-results":null,r.isHorizontal?"horizontal":"vertical",r.placement]]),ref_key:"tournamentPlayer",ref:i},[r.player?(o.openBlock(),o.createBlock(bt,{key:0,class:"card-slice-item","card-code-prop":r.player.cardCode??void 0,name:r.player.name,color:null,"router-link":{name:"profile",params:{id:r.player.id,lang:o.unref(n).params.lang}},"ignore-card-item":!0,"maintain-aspect-ratio":!1,"mana-number":null,"show-plus-minus":!1,onMouseenter:y[0]||(y[0]=()=>f(null))},null,8,["card-code-prop","name","router-link"])):(o.openBlock(),o.createBlock(bt,{key:1,class:"card-slice-item",name:"",color:null,"router-link":"","ignore-card-item":!0,"maintain-aspect-ratio":!1,"mana-number":null,"show-plus-minus":!1})),o.createElementVNode("div",kde,[o.withDirectives(o.createElementVNode("div",{class:o.normalizeClass(["result",(g=r.player)!=null&&g.isVictory?"win":"loss"])},o.toDisplayString(r.games.filter(B=>B[d.value].isVictory).length),3),[[o.vShow,!r.showTippy]]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.games,(B,v)=>o.withDirectives((o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["result",B[d.value].isVictory?"win":"loss"]),onMouseenter:()=>f(v),ref_for:!0,ref_key:"results",ref:c,"result-index":v},o.toDisplayString(B[d.value].isVictory?1:0),43,Ede)),[[o.vShow,r.showTippy]])),256)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.games,(B,v)=>(o.openBlock(),o.createElementBlock("div",{class:"result-tippy","result-index":v,ref_for:!0,ref_key:"resultTippyContents",ref:l},[o.createVNode(lr,{"deck-code":B[d.value].deckCode,results:{type:"single",isVictory:B[d.value].isVictory}},null,8,["deck-code","results"])],8,Sde))),256))]),o.createElementVNode("div",{class:"main-tippy",ref_key:"mainTippyContent",ref:s},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(((w=r.player)==null?void 0:w.decks)??[],B=>{var v,_;return o.openBlock(),o.createBlock(lr,{"deck-code":B,results:{type:"single",isVictory:(v=r.games.find(b=>b[d.value].deckCode===B))!=null&&v[d.value].isVictory?!0:null,isBanned:(_=r.player)==null?void 0:_.bannedDecks.includes(B)}},null,8,["deck-code","results"])}),256))],512)],2)}}});const Hw=Q(xde,[["__scopeId","data-v-322df46f"]]),w0={matchId:{type:Number,required:!0,default:0},player1:{type:Object,required:!0,default:()=>({})},player2:{type:Object,required:!0,default:()=>({})},games:{type:Array,required:!0,default:()=>[]}},Fde={...w0,isHorizontal:{type:Boolean,required:!0,default:!1},showAdminControls:{type:Boolean,required:!1,default:!1}},Tde={class:"content no-scrollbar"},Ide={class:"players"},Dde={class:"player"},Ude={class:"player-record"},Ode={class:"player-decks"},Lde={class:"player"},Qde={class:"player-record"},Mde={class:"player-decks"},Nde={key:0,class:"results"},Pde={class:"game"},Rde={class:"game-number"},Hde={class:"game-result"},Vde={class:"game-player"},$de={class:"game-player-name"},Kde={class:"vs"},zde={class:"game-player"},Wde={class:"game-player-name"},Gde=o.defineComponent({__name:"TournamentMatchupDetails",props:w0,setup(e){const{t}=Y(),n=pn.useRoute(),r=e;return(a,s)=>(o.openBlock(),o.createElementBlock("div",Tde,[o.createElementVNode("div",Ide,[o.createElementVNode("div",Dde,[o.createVNode(bt,{class:"card-slice-item","card-code-prop":r.player1.cardCode??void 0,color:null,"ignore-card-item":!0,"mana-number":null,name:r.player1.name,"maintain-aspect-ratio":!0,"router-link":{name:"profile",params:{id:r.player1.id,lang:o.unref(n).params.lang}}},null,8,["card-code-prop","name","router-link"]),o.createElementVNode("div",Ude,o.toDisplayString(r.games.reduce((i,A)=>A.player1.isVictory?i+1:i,0))+" - "+o.toDisplayString(r.games.reduce((i,A)=>A.player1.isVictory?i:i+1,0)),1),o.createElementVNode("div",Ode,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.player1.decks,i=>(o.openBlock(),o.createBlock(lr,{class:"tournament-deck-result",key:i,"deck-code":i,"show-eye":!0,results:{type:"single",isVictory:r.games.some(A=>A.player1.isVictory&&A.player1.deckCode===i)?!0:null,isBanned:r.player1.bannedDecks.includes(i)}},null,8,["deck-code","results"]))),128))])]),o.createElementVNode("div",Lde,[o.createVNode(bt,{class:"card-slice-item","card-code-prop":r.player2.cardCode??void 0,color:null,"ignore-card-item":!0,"mana-number":null,name:r.player2.name,"maintain-aspect-ratio":!0,"router-link":{name:"profile",params:{id:r.player2.id,lang:o.unref(n).params.lang}}},null,8,["card-code-prop","name","router-link"]),o.createElementVNode("div",Qde,o.toDisplayString(r.games.reduce((i,A)=>A.player2.isVictory?i+1:i,0))+" - "+o.toDisplayString(r.games.reduce((i,A)=>A.player2.isVictory?i:i+1,0)),1),o.createElementVNode("div",Mde,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.player2.decks,i=>(o.openBlock(),o.createBlock(lr,{class:"tournament-deck-result",key:i,"deck-code":i,"show-eye":!0,results:{type:"single",isVictory:r.games.some(A=>A.player2.isVictory&&A.player2.deckCode===i)?!0:null,isBanned:r.player2.bannedDecks.includes(i)}},null,8,["deck-code","results"]))),128))])])]),r.games.length>0?(o.openBlock(),o.createElementBlock("div",Nde,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.games,(i,A)=>(o.openBlock(),o.createElementBlock("div",Pde,[o.createElementVNode("div",Rde,o.toDisplayString(o.unref(t)("general.game"))+" "+o.toDisplayString(A+1),1),o.createElementVNode("div",Hde,[o.createElementVNode("div",Vde,[o.createElementVNode("div",$de,o.toDisplayString(r.player1.name),1),o.createVNode(lr,{class:"tournament-deck-result","deck-code":i.player1.deckCode,"show-eye":!0,results:{type:"single",isVictory:i.player1.isVictory,isBanned:!1}},null,8,["deck-code","results"])]),o.createElementVNode("div",Kde,o.toDisplayString(o.unref(t)("general.vs")),1),o.createElementVNode("div",zde,[o.createElementVNode("div",Wde,o.toDisplayString(r.player2.name),1),o.createVNode(lr,{class:"tournament-deck-result","deck-code":i.player2.deckCode,"show-eye":!0,results:{type:"single",isVictory:i.player2.isVictory,isBanned:!1}},null,8,["deck-code","results"])])])]))),256))])):o.createCommentVNode("",!0)]))}});const jde=Q(Gde,[["__scopeId","data-v-a329da5a"]]),Yde={class:"content no-scrollbar"},qde={class:"heading"},Xde=o.defineComponent({__name:"TournamentMatchupEdit",props:w0,emits:["matchup-edit:submit"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.ref(0);o.onMounted(()=>{r.player1.isVictory===r.player2.isVictory?s.value=1:r.player2.isVictory&&(s.value=2)});function i(){a("matchup-edit:submit",{matchId:r.matchId,playerId:s.value===0?r.player1.challongeId:s.value===2?r.player2.challongeId:null})}return(A,l)=>(o.openBlock(),o.createElementBlock("div",Yde,[o.createElementVNode("div",qde,o.toDisplayString(o.unref(n)("tournament.admin.editMatchWinner")),1),o.createVNode(kl,{class:"toggle-switch",options:[r.player1.name,o.unref(n)("general.tie"),r.player2.name],"selected-option":s.value,"onUpdate:selectedOption":l[0]||(l[0]=c=>s.value=c)},null,8,["options","selected-option"]),o.createElementVNode("button",{class:"primary-button centered",onClick:i},o.toDisplayString(o.unref(n)("general.submit")),1)]))}});const Jde=Q(Xde,[["__scopeId","data-v-0a4547ed"]]),Zde={class:"tournament-matchup"},efe={class:"hover-options-container"},tfe={class:"hover-options"},nfe=o.defineComponent({__name:"TournamentMatchup",props:Fde,emits:["matchup-edit:submit"],setup(e,{emit:t}){const n=e,r=t,a=o.ref(null),s=o.ref(!1),i=o.ref(!1),A=o.ref(!1);function l(){s.value=!1,a.value=null}function c(u){r("matchup-edit:submit",u)}return(u,d)=>(o.openBlock(),o.createElementBlock("div",Zde,[o.createElementVNode("div",{class:o.normalizeClass(["players",n.isHorizontal?"horizontal":"vertical"]),onMouseenter:d[2]||(d[2]=f=>s.value=!0),onMouseleave:l},[o.createVNode(Hw,{"result-to-show":a.value,"onUpdate:resultToShow":d[0]||(d[0]=f=>a.value=f),player:n.player1??null,games:n.games,"show-tippy":s.value,"is-horizontal":n.isHorizontal,"player-number":1,placement:"top"},null,8,["result-to-show","player","games","show-tippy","is-horizontal"]),o.createVNode(Hw,{"result-to-show":a.value,"onUpdate:resultToShow":d[1]||(d[1]=f=>a.value=f),player:n.player2??null,games:n.games,"show-tippy":s.value,"is-horizontal":n.isHorizontal,"player-number":2,placement:"bottom"},null,8,["result-to-show","player","games","show-tippy","is-horizontal"])],34),o.createElementVNode("div",efe,[o.createElementVNode("div",tfe,[n.showAdminControls?(o.openBlock(),o.createElementBlock("div",{key:0,class:"option",onClick:d[3]||(d[3]=()=>i.value=!0)},[o.createVNode(o.unref(Se),{icon:"pencil"})])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"option",onClick:d[4]||(d[4]=()=>A.value=!0)},[o.createVNode(o.unref(Se),{icon:"search"})])])]),o.createVNode(o.unref(Lr),{"show-modal":i.value,"onUpdate:showModal":d[5]||(d[5]=f=>i.value=f)},{default:o.withCtx(()=>[o.createVNode(Jde,o.mergeProps({class:"tournament-matchup-edit"},n,{"onMatchupEdit:submit":c}),null,16)]),_:1},8,["show-modal"]),o.createVNode(o.unref(Lr),{"show-modal":A.value,"onUpdate:showModal":d[6]||(d[6]=f=>A.value=f)},{default:o.withCtx(()=>[o.createVNode(jde,o.mergeProps({class:"tournament-matchup-details"},n),null,16)]),_:1},8,["show-modal"])]))}});const jE=Q(nfe,[["__scopeId","data-v-539a82c9"]]),rfe={matchups:{type:Array,required:!0,default:null},showAdminControls:{type:Boolean,required:!1,default:!1}},afe={class:"swiss-round"},sfe={key:1,class:"empty"},ife=o.defineComponent({__name:"TournamentSwissRound",props:rfe,emits:["matchup-edit:submit"],setup(e,{emit:t}){const n=e,r=t;function a(s){r("matchup-edit:submit",s)}return(s,i)=>(o.openBlock(),o.createElementBlock("div",afe,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.matchups,A=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[A?(o.openBlock(),o.createBlock(jE,o.mergeProps({key:0,class:"matchup"},{ref_for:!0},A,{"is-horizontal":!0,"show-admin-controls":n.showAdminControls,"onMatchupEdit:submit":a}),null,16,["show-admin-controls"])):(o.openBlock(),o.createElementBlock("div",sfe))],64))),256))]))}});const YE=Q(ife,[["__scopeId","data-v-fb604c77"]]),ofe={rounds:{type:Array,required:!0,default:null},showAdminControls:{type:Boolean,required:!1,default:!1}},Afe={class:"tournament-bracket"},lfe={class:"round"},cfe={key:1,class:"empty"},ufe=o.defineComponent({__name:"TournamentBracket",props:ofe,emits:["matchup-edit:submit"],setup(e,{emit:t}){const n=e,r=t;function a(s){r("matchup-edit:submit",s)}return(s,i)=>(o.openBlock(),o.createElementBlock("div",Afe,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.rounds,A=>(o.openBlock(),o.createElementBlock("div",lfe,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(A,l=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[l?(o.openBlock(),o.createBlock(jE,{key:0,player1:l.player1,player2:l.player2,games:l.games,"is-horizontal":!1,"match-id":l.matchId,"show-admin-controls":n.showAdminControls,"onMatchupEdit:submit":a},null,8,["player1","player2","games","match-id","show-admin-controls"])):(o.openBlock(),o.createElementBlock("div",cfe))],64))),256))]))),256))]))}});const qE=Q(ufe,[["__scopeId","data-v-5fb5924f"]]),dfe={title:{type:String,required:!0,default:""},createdAt:{type:String,required:!0,default:""}},ffe={class:"content"},pfe=o.defineComponent({__name:"TournamentFeedEvent",props:dfe,setup(e){const t=o.inject(Nr),n=e;return(r,a)=>(o.openBlock(),o.createBlock(ut,{class:"tournament-feed-event",title:n.title,text:o.unref(t)(n.createdAt).fromNow()},{default:o.withCtx(()=>[o.createElementVNode("div",ffe,[o.renderSlot(r.$slots,"default",{},void 0,!0)])]),_:3},8,["title","text"]))}});const Ci=Q(pfe,[["__scopeId","data-v-c8ad471f"]]),hfe={createdAt:{type:String,required:!0,default:""}},mfe=o.defineComponent({__name:"TournamentFeedEventAdminUpdate",props:hfe,setup(e){const{t}=Y(),n=e;return(r,a)=>(o.openBlock(),o.createBlock(Ci,{title:o.unref(t)("tournament.feed.adminUpdate"),"created-at":n.createdAt},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(t)("tournament.feed.adminUpdateMessage")),1)]),_:1},8,["title","created-at"]))}});const gfe=Q(mfe,[["__scopeId","data-v-9f936feb"]]),vfe={id:{type:Number,required:!0,default:0},name:{type:String,required:!0,default:""},cardCode:{type:[String,null],required:!0,default:null},createdAt:{type:String,required:!0,default:""}},yfe={class:"content"},Bfe=o.defineComponent({__name:"TournamentFeedEventCheckIn",props:vfe,setup(e){const{t}=Y(),n=pn.useRoute(),r=e,a=o.computed(()=>({name:"profile",params:{id:r.id,lang:n.params.lang}}));return(s,i)=>{const A=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(Ci,{title:o.unref(t)("tournament.feed.checkIn"),"created-at":r.createdAt},{default:o.withCtx(()=>[o.createElementVNode("div",yfe,[o.createVNode(A,{to:a.value},{default:o.withCtx(()=>[o.createVNode(bt,{class:"card-slice-item","card-code-prop":r.cardCode??void 0,color:null,"ignore-card-item":!0,"mana-number":null,name:r.name,"maintain-aspect-ratio":!0,"router-link":a.value},null,8,["card-code-prop","name","router-link"])]),_:1},8,["to"])])]),_:1},8,["title","created-at"])}}});const wfe=Q(Bfe,[["__scopeId","data-v-6d9b3357"]]),bfe={createdAt:{type:String,required:!0,default:""}},_fe=o.defineComponent({__name:"TournamentFeedEventCreated",props:bfe,setup(e){const{t}=Y(),n=e;return(r,a)=>(o.openBlock(),o.createBlock(Ci,{title:o.unref(t)("tournament.feed.created"),"created-at":n.createdAt},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(t)("tournament.feed.createdMessage")),1)]),_:1},8,["title","created-at"]))}});const Cfe=Q(_fe,[["__scopeId","data-v-f7db2ed6"]]),kfe={isStarting:{type:Boolean,required:!0,default:!1},matchId:{type:Number,required:!0,default:0},player1:{type:Object,required:!0,default:()=>({})},player2:{type:Object,required:!0,default:()=>({})},games:{type:Array,required:!0,default:()=>[]},createdAt:{type:String,required:!0,default:""}},Efe={class:"content"},Sfe={class:"players"},xfe={class:"player"},Ffe={class:"player-record"},Tfe={class:"player-decks"},Ife={class:"player"},Dfe={class:"player-record"},Ufe={class:"player-decks"},Ofe={key:0,class:"result"},Lfe={class:"game-number"},Qfe={class:"game-result"},Mfe={class:"game-player"},Nfe={class:"game-player-name"},Pfe={class:"vs"},Rfe={class:"game-player"},Hfe={class:"game-player-name"},Vfe=o.defineComponent({__name:"TournamentFeedEventMatchUpdate",props:kfe,setup(e){const{t}=Y(),n=pn.useRoute(),r=e;return(a,s)=>(o.openBlock(),o.createBlock(Ci,{class:"tournament-feed-event match-update",title:o.unref(t)("tournament.feed.matchUpdate"),"created-at":r.createdAt},{default:o.withCtx(()=>[o.createElementVNode("div",Efe,[o.createElementVNode("div",Sfe,[o.createElementVNode("div",xfe,[o.createVNode(bt,{class:"card-slice-item","card-code-prop":r.player1.cardCode??void 0,color:null,"ignore-card-item":!0,"mana-number":null,name:r.player1.name,"maintain-aspect-ratio":!0,"router-link":{name:"profile",params:{id:r.player1.id,lang:o.unref(n).params.lang}}},null,8,["card-code-prop","name","router-link"]),o.createElementVNode("div",Ffe,o.toDisplayString(r.games.reduce((i,A)=>A.player1.isVictory?i+1:i,0))+" - "+o.toDisplayString(r.games.reduce((i,A)=>A.player1.isVictory?i:i+1,0)),1),o.createElementVNode("div",Tfe,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.player1.decks,i=>(o.openBlock(),o.createBlock(lr,{class:"tournament-deck-result",key:i,"deck-code":i,"show-eye":!0,results:{type:"single",isVictory:r.games.some(A=>A.player1.isVictory&&A.player1.deckCode===i)?!0:null,isBanned:r.player1.bannedDecks.includes(i)}},null,8,["deck-code","results"]))),128))])]),o.createElementVNode("div",Ife,[o.createVNode(bt,{class:"card-slice-item","card-code-prop":r.player2.cardCode??void 0,color:null,"ignore-card-item":!0,"mana-number":null,name:r.player2.name,"maintain-aspect-ratio":!0,"router-link":{name:"profile",params:{id:r.player2.id,lang:o.unref(n).params.lang}}},null,8,["card-code-prop","name","router-link"]),o.createElementVNode("div",Dfe,o.toDisplayString(r.games.reduce((i,A)=>A.player2.isVictory?i+1:i,0))+" - "+o.toDisplayString(r.games.reduce((i,A)=>A.player2.isVictory?i:i+1,0)),1),o.createElementVNode("div",Ufe,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.player2.decks,i=>(o.openBlock(),o.createBlock(lr,{class:"tournament-deck-result",key:i,"deck-code":i,"show-eye":!0,results:{type:"single",isVictory:r.games.some(A=>A.player2.isVictory&&A.player2.deckCode===i)?!0:null,isBanned:r.player2.bannedDecks.includes(i)}},null,8,["deck-code","results"]))),128))])])]),!r.isStarting&&r.games.length>0?(o.openBlock(),o.createElementBlock("div",Ofe,[o.createElementVNode("div",Lfe,o.toDisplayString(o.unref(t)("general.game"))+" "+o.toDisplayString(r.games.length),1),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList([r.games[r.games.length-1]],i=>(o.openBlock(),o.createElementBlock("div",Qfe,[o.createElementVNode("div",Mfe,[o.createElementVNode("div",Nfe,o.toDisplayString(r.player1.name),1),o.createVNode(lr,{class:"tournament-deck-result","deck-code":i.player1.deckCode,"show-eye":!0,results:{type:"single",isVictory:i.player1.isVictory,isBanned:!1}},null,8,["deck-code","results"])]),o.createElementVNode("div",Pfe,o.toDisplayString(o.unref(t)("general.vs")),1),o.createElementVNode("div",Rfe,[o.createElementVNode("div",Hfe,o.toDisplayString(r.player2.name),1),o.createVNode(lr,{class:"tournament-deck-result","deck-code":i.player2.deckCode,"show-eye":!0,results:{type:"single",isVictory:i.player2.isVictory,isBanned:!1}},null,8,["deck-code","results"])])]))),256))])):o.createCommentVNode("",!0)])]),_:1},8,["title","created-at"]))}});const $fe=Q(Vfe,[["__scopeId","data-v-60efabe2"]]),Kfe={createdAt:{type:String,required:!0,default:""}},zfe=o.defineComponent({__name:"TournamentFeedEventRoundStarted",props:Kfe,setup(e){const{t}=Y(),n=e;return(r,a)=>(o.openBlock(),o.createBlock(Ci,{title:o.unref(t)("tournament.feed.roundStarted"),"created-at":n.createdAt},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(t)("tournament.feed.roundStartedMessage")),1)]),_:1},8,["title","created-at"]))}});const Wfe=Q(zfe,[["__scopeId","data-v-8ad5656f"]]),Gfe={id:{type:Number,required:!0,default:0},name:{type:String,required:!0,default:""},cardCode:{type:[String,null],required:!0,default:null},createdAt:{type:String,required:!0,default:""}},jfe={class:"content"},Yfe=o.defineComponent({__name:"TournamentFeedEventSignUp",props:Gfe,setup(e){const{t}=Y(),n=pn.useRoute(),r=o.computed(()=>({name:"profile",params:{id:a.id,lang:n.params.lang}})),a=e;return(s,i)=>{const A=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(Ci,{class:"tournament-feed-event match-update",title:o.unref(t)("tournament.feed.signUp"),"created-at":a.createdAt},{default:o.withCtx(()=>[o.createElementVNode("div",jfe,[o.createVNode(A,{to:r.value},{default:o.withCtx(()=>[o.createVNode(bt,{class:"card-slice-item","card-code-prop":a.cardCode??void 0,color:null,"ignore-card-item":!0,"mana-number":null,name:a.name,"maintain-aspect-ratio":!0,"router-link":r.value},null,8,["card-code-prop","name","router-link"])]),_:1},8,["to"])])]),_:1},8,["title","created-at"])}}});const qfe=Q(Yfe,[["__scopeId","data-v-bd9944b6"]]),Xfe={createdAt:{type:String,required:!0,default:""}},Jfe=o.defineComponent({__name:"TournamentFeedEventWithdraw",props:Xfe,setup(e){const{t}=Y(),n=e;return(r,a)=>(o.openBlock(),o.createBlock(Ci,{title:o.unref(t)("tournament.feed.withdrawal"),"created-at":n.createdAt},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(t)("tournament.feed.withdrawalMessage")),1)]),_:1},8,["title","created-at"]))}});const Zfe=Q(Jfe,[["__scopeId","data-v-d3bac452"]]),epe={feed:{type:Array,required:!0,default:[]}},XE=o.defineComponent({__name:"TournamentSidePanel",props:epe,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createBlock(pi,null,{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.feed,a=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[a.type==="sign_up"?(o.openBlock(),o.createBlock(qfe,o.mergeProps({key:0,ref_for:!0},a),null,16)):o.createCommentVNode("",!0),a.type==="check_in"?(o.openBlock(),o.createBlock(wfe,o.mergeProps({key:1,ref_for:!0},a),null,16)):o.createCommentVNode("",!0),a.type==="match_update"?(o.openBlock(),o.createBlock($fe,o.mergeProps({key:2,ref_for:!0},a),null,16)):o.createCommentVNode("",!0),a.type==="withdraw"?(o.openBlock(),o.createBlock(Zfe,o.mergeProps({key:3,ref_for:!0},a),null,16)):o.createCommentVNode("",!0),a.type==="admin_match_update"?(o.openBlock(),o.createBlock(gfe,o.mergeProps({key:4,ref_for:!0},a),null,16)):o.createCommentVNode("",!0),a.type==="round_started"?(o.openBlock(),o.createBlock(Wfe,o.mergeProps({key:5,ref_for:!0},a),null,16)):o.createCommentVNode("",!0),a.type==="created"?(o.openBlock(),o.createBlock(Cfe,o.mergeProps({key:6,ref_for:!0},a),null,16)):o.createCommentVNode("",!0)],64))),256))]),_:1}))}}),tpe={install:async e=>{e.component("RevealCarousel",tg),e.component("SearchBar",Ed),e.component("SocialLinks",gg),e.component("ModalItem",Lr),e.component("FilterSampleSize",xo),e.component("FilterRanks",uC),e.component("FilterManaCost",vg),e.component("FilterRarities",yg),e.component("FilterSets",Bg),e.component("FilterKeywords",wg),e.component("FilterServers",Fo),e.component("FilterTime",fi),e.component("FilterCardCodes",Sd),e.component("FilterDecks",dC),e.component("FilterProfile",fC),e.component("FilterText",tl),e.component("FilterAdvanced",Cg),e.component("FilterRegions",El),e.component("FilterCards",pC),e.component("AdvancedFilterItem",_g),e.component("FilterTypes",kg),e.component("RegionsLine",Eg),e.component("CardsTable",hC),e.component("DeckHighlightRegions",Tl),e.component("GemsCost",Tg),e.component("CardSliceItem",bt),e.component("LanguageSelection",nl),e.component("DeckSidePanel",n3),e.component("DeckHighlight",Ea),e.component("ArchetypeSidePanel",oE),e.component("OpenInDeckBuilderButton",Q1),e.component("CopyDeckButton",af),e.component("UpdateDeckPrivacyButton",N1),e.component("EditDeckNameButton",O1),e.component("UploadDeckToLorButton",of),e.component("DeleteDeckButton",U1),e.component("OpenArchetypePageButton",L1),e.component("SimulateMulliganButton",sf),e.component("DecksRow",ql),e.component("CardItemLinkWrapper",Bf),e.component("DeckHighlightCards",Il),e.component("CheckboxItem",sn),e.component("NavigationTopDesktop",X1),e.component("SidePanelSectionPane",ut),e.component("CardSimilarCards",AE),e.component("DashboardSignUp",lE),e.component("MatchItem",cE),e.component("ToggleSwitch",kl),e.component("LeaderboardTop10Region",J1),e.component("ShareButton",R1),e.component("LeaderboardDetailRow",Z1),e.component("DeckBlock",uE),e.component("SmallTable",_i),e.component("LeaderboardTop",dE),e.component("CardLottery",fE),e.component("DashboardProfile",pE),e.component("LeaderboardChart",hE),e.component("CardQuantityBarChart",mE),e.component("WinsLossesBarChart",gE),e.component("RoundCardInfoBarChart",vE),e.component("LineChart",yE),e.component("ManaCurveChart",Gl),e.component("WinrateDoughnutChart",a0),e.component("InfoDoughnutChart",Wu),e.component("BuiltDecksTable",BE),e.component("ProfileRegionTable",wE),e.component("ProfileArchetypeTable",bE),e.component("CardItem3d",r0),e.component("LeaderboardOptions",_E),e.component("SimilarDecksTable",CE),e.component("LargeTable",Fa),e.component("StatisticsPaneContainer",RA),e.component("ArchetypeSidePanelHighlight",Fd),e.component("CardCarousel",kE),e.component("DeckButtons",Qo),e.component("WinsLossesLine",o0),e.component("DashboardCardRow",A0),e.component("CardTogglePage",EE),e.component("TestComponent",SE),e.component("DashboardLeaderboardRow",l0),e.component("DeckPreview",vf),e.component("CheckboxItemManaCost",Ou),e.component("RevealDayOptions",xE),e.component("DeckDifferenceItem",j1),e.component("DashboardNewCards",FE),e.component("CardsRow",Sg),e.component("LeaderboardDetailTable",TE),e.component("DeckIcon",IE),e.component("LogoIcon",ko),e.component("FollowerIcon",u0),e.component("ChampionIcon",d0),e.component("EternalIcon",e0),e.component("InfoIcon",q1),e.component("LandmarkIcon",f0),e.component("ManaHexagonIcon",Cl),e.component("RuneterraIcon",P1),e.component("ShardsIcon",Fg),e.component("StandardIcon",t0),e.component("SpellIcon",p0),e.component("GauntletIcon",n0),e.component("EquipmentIcon",h0),e.component("NavigationTop",DE),e.component("CardMultiselect",bg),e.component("ProfileDropdown",UE),e.component("ColorPicker",OE),e.component("DashboardLeaderboardTable",LE),e.component("NavigationSide",m0),e.component("ArchetypesTable",QE),e.component("DeckBuilderSummary",y0),e.component("DeckBuilderSummaryType",Ha),e.component("DashboardCardTable",ME),e.component("ArchetypesRow",v0),e.component("RevealDayOption",c0),e.component("DeckHighlightEye",yf),e.component("DeckDifferences",Y1),e.component("ZoomSlider",NE),e.component("CardOverview",PE),e.component("CircleCardItem",Ta),e.component("ProfileGameTypeWinrate",RE),e.component("DecksTable",HE),e.component("RegionItem",Fl),e.component("TippyText",xd),e.component("ProfileRegionRow",s0),e.component("SimulateMulligan",M1),e.component("DeckSummary",rf),e.component("NavigationTopMobile",g0),e.component("CardItem",si),e.component("ProfileArchetypeRow",i0),e.component("DeckBuilderSidePanel",VE),e.component("SimpleDoughnutChart",KE),e.component("RegionDistributionChart",$E),e.component("DeckButtonsDropdown",B0),e.component("Spinner",xg),e.component("ToastContainer",Vw),e.component("TournamentTimeline",zE),e.component("TournamentPlayerTable",WE),e.component("TournamentSwissRoundOptions",GE),e.component("TournamentSwissRound",YE),e.component("TournamentBracket",qE),e.component("TournamentSidePanel",XE),e.component("FontAwesomeIcon",Se),e.component("Multiselect",qt)}};exports.AdvancedFilterItem=_g;exports.ArchetypeSidePanel=oE;exports.ArchetypeSidePanelHighlight=Fd;exports.ArchetypesRow=v0;exports.ArchetypesTable=QE;exports.BuiltDecksTable=BE;exports.CardCarousel=kE;exports.CardImageType=_t;exports.CardItem=si;exports.CardItem3d=r0;exports.CardItemLinkWrapper=Bf;exports.CardLottery=fE;exports.CardMultiselect=bg;exports.CardOverview=PE;exports.CardQuantityBarChart=mE;exports.CardSimilarCards=AE;exports.CardSliceItem=bt;exports.CardTogglePage=EE;exports.CardsRow=Sg;exports.CardsTable=hC;exports.ChampionIcon=d0;exports.CheckboxItem=sn;exports.CheckboxItemManaCost=Ou;exports.CircleCardItem=Ta;exports.ColorPicker=OE;exports.CopyDeckButton=af;exports.DashboardCardRow=A0;exports.DashboardCardTable=ME;exports.DashboardLeaderboardRow=l0;exports.DashboardLeaderboardTable=LE;exports.DashboardNewCards=FE;exports.DashboardProfile=pE;exports.DashboardSignUp=lE;exports.DeckBlock=uE;exports.DeckBuilderSidePanel=VE;exports.DeckBuilderSummary=y0;exports.DeckBuilderSummaryType=Ha;exports.DeckButtons=Qo;exports.DeckButtonsDropdown=B0;exports.DeckDifferenceItem=j1;exports.DeckDifferences=Y1;exports.DeckHighlight=Ea;exports.DeckHighlightCards=Il;exports.DeckHighlightEye=yf;exports.DeckHighlightRegions=Tl;exports.DeckIcon=IE;exports.DeckPreview=vf;exports.DeckSidePanel=n3;exports.DeckSummary=rf;exports.DecksRow=ql;exports.DecksTable=HE;exports.DeleteDeckButton=U1;exports.EditDeckNameButton=O1;exports.EquipmentIcon=h0;exports.EternalIcon=e0;exports.FilterAdvanced=Cg;exports.FilterCardCodes=Sd;exports.FilterCards=pC;exports.FilterDecks=dC;exports.FilterKeywords=wg;exports.FilterManaCost=vg;exports.FilterProfile=fC;exports.FilterRanks=uC;exports.FilterRarities=yg;exports.FilterRegions=El;exports.FilterSampleSize=xo;exports.FilterServers=Fo;exports.FilterSets=Bg;exports.FilterText=tl;exports.FilterTime=fi;exports.FilterTypes=kg;exports.FollowerIcon=u0;exports.GauntletIcon=n0;exports.GemsCost=Tg;exports.InfoDoughnutChart=Wu;exports.InfoIcon=q1;exports.LandmarkIcon=f0;exports.LanguageSelection=nl;exports.LargeTable=Fa;exports.LeaderboardChart=hE;exports.LeaderboardDetailRow=Z1;exports.LeaderboardDetailTable=TE;exports.LeaderboardOptions=_E;exports.LeaderboardTop=dE;exports.LeaderboardTop10Region=J1;exports.LineChart=yE;exports.LogoIcon=ko;exports.ManaCurveChart=Gl;exports.ManaHexagonIcon=Cl;exports.MatchItem=cE;exports.ModalItem=Lr;exports.NavigationSide=m0;exports.NavigationTop=DE;exports.NavigationTopDesktop=X1;exports.NavigationTopMobile=g0;exports.OpenArchetypePageButton=L1;exports.OpenInDeckBuilderButton=Q1;exports.ProfileArchetypeRow=i0;exports.ProfileArchetypeTable=bE;exports.ProfileDropdown=UE;exports.ProfileGameTypeWinrate=RE;exports.ProfileRegionRow=s0;exports.ProfileRegionTable=wE;exports.RegionDistributionChart=$E;exports.RegionItem=Fl;exports.RegionsLine=Eg;exports.RevealCarousel=tg;exports.RevealDayOption=c0;exports.RevealDayOptions=xE;exports.RoundCardInfoBarChart=vE;exports.RuneterraIcon=P1;exports.SearchBar=Ed;exports.ShardsIcon=Fg;exports.ShareButton=R1;exports.SidePanelSectionPane=ut;exports.SimilarDecksTable=CE;exports.SimpleDoughnutChart=KE;exports.SimulateMulligan=M1;exports.SimulateMulliganButton=sf;exports.SmallTable=_i;exports.SocialLinks=gg;exports.SpellIcon=p0;exports.Spinner=xg;exports.StandardIcon=t0;exports.StatisticsPaneContainer=RA;exports.TestComponent=SE;exports.TippyText=xd;exports.ToastContainer=Vw;exports.ToggleSwitch=kl;exports.TournamentBracket=qE;exports.TournamentPlayerTable=WE;exports.TournamentSidePanel=XE;exports.TournamentSwissRound=YE;exports.TournamentSwissRoundOptions=GE;exports.TournamentTimeline=zE;exports.UpdateDeckPrivacyButton=N1;exports.UploadDeckToLorButton=of;exports.WinrateDoughnutChart=a0;exports.WinsLossesBarChart=gE;exports.WinsLossesLine=o0;exports.ZoomSlider=NE;exports.default=tpe;exports.getCardsFromDeck=ln;exports.getDate=_S;exports.getDeckObjectFromCode=Et;exports.getMostImportantCards=ya;exports.getRegionNameOfRegionRef=Tm;exports.getRegions=vl;exports.importIcons=DT;exports.keyDayjs=Nr;exports.regionOfCard=Im;exports.setupi18n=u5;exports.useAcquiredCardsStore=ld;exports.useCallbacksStore=_e;exports.useCardJsonObjectStore=mn;exports.useCardJsonStore=Zm;exports.useDataJsonStore=Be;exports.useFilterStore=UT;exports.useSearchBarOptionsStore=y_;exports.useToastsStore=Pp;exports.useUserStore=nn;
|
|
700
|
+
${t(s.value).fromNow()}`)),l=o.computed(()=>{const c=[];return n.activated&&c.push("activated"),n.soon&&c.push("soon"),i.value&&c.push("past"),c});return o.onMounted(()=>{tt(r.value,{content:a.value,arrow:!0,delay:[0,0],duration:[0,0]})}),(c,u)=>(o.openBlock(),o.createElementBlock("div",mle,[o.createElementVNode("div",{ref_key:"revealDayOption",ref:r,class:o.normalizeClass(["reveal-day-option",l.value])},[o.createElementVNode("div",gle,[o.createElementVNode("img",{src:o.unref(Np),alt:"card",class:"card"},null,8,vle)]),o.createElementVNode("div",yle,[o.createElementVNode("img",{src:o.unref(Np),alt:"card",class:"card"},null,8,Ble)]),o.createElementVNode("div",wle,[o.createElementVNode("img",{src:o.unref(Np),alt:"card",class:"card"},null,8,ble)])],2),o.createElementVNode("div",{ref_key:"revealDayOptionTippy",ref:a},[o.createVNode(xd,{text:A.value},null,8,["text"])],512)]))}});const c0=Q(_le,[["__scopeId","data-v-daac7e87"]]),Cle={days:{type:Array,required:!0,default:[]},date:{type:String,required:!0,default:""}},kle={class:"reveal-day-options"},Ele=o.defineComponent({__name:"RevealDayOptions",props:Cle,emits:["update:date"],setup(e,{emit:t}){const n=e,r=t;function a(s){n.days[s].available&&r("update:date",n.days[s].date)}return(s,i)=>(o.openBlock(),o.createElementBlock("div",kle,[i[0]||(i[0]=o.createElementVNode("div",{class:"line"},null,-1)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.days,(A,l)=>(o.openBlock(),o.createBlock(c0,{key:A.date,date:A.date,activated:A.date===n.date,soon:A.soon,available:A.available,onClick:c=>a(l)},null,8,["date","activated","soon","available","onClick"]))),128))]))}});const xE=Q(Ele,[["__scopeId","data-v-3ca708c1"]]),Sle={cardCodes:{type:Array,required:!0,default:[]}},xle=o.defineComponent({__name:"DashboardNewCards",props:Sle,setup(e){const{t}=Y(),n=e,r=[{title:t("general.newCards"),id:"newCards"}];return(a,s)=>(o.openBlock(),o.createBlock(_i,{class:"small-table","heading-items":r},{default:o.withCtx(()=>[o.createVNode(tg,{class:"reveal-carousel","card-codes":n.cardCodes},null,8,["card-codes"])]),_:1}))}});const FE=Q(xle,[["__scopeId","data-v-89a26f2c"]]),Fle={players:{type:Array,required:!0,default:[]},shownColumns:{type:Object,required:!0,default:{player:!0,lp:!0,change:!0,wins:!0,matches:!0,winrate:!0,deck:!0}},loading:{type:Boolean,required:!1,default:!1}},Tle=o.defineComponent({__name:"LeaderboardDetailTable",props:Fle,emits:["sort-updated"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.ref([{id:"player",isShown:r.shownColumns.player,sortDirection:we.UP,title:n("general.player")},{id:"lp",isShown:r.shownColumns.lp,sortDirection:we.NEITHER,title:n("general.lp")},{id:"change",isShown:r.shownColumns.change,sortDirection:we.NEITHER,title:n("general.change")},{id:"wins",isShown:r.shownColumns.wins,sortDirection:we.NEITHER,title:n("general.wins")},{id:"matches",isShown:r.shownColumns.matches,sortDirection:we.NEITHER,title:n("general.matches")},{id:"winrate",isShown:r.shownColumns.winrate,sortDirection:we.NEITHER,title:n("general.winrate")},{id:"deck",isShown:r.shownColumns.deck,sortDirection:we.NOT_SORTABLE,title:n("general.favoriteDeck")}]),i=o.computed(()=>({"--columns":s.value.filter(l=>l.isShown).length}));function A(l){const c=hi(l,s);c&&a("sort-updated",c)}return(l,c)=>(o.openBlock(),o.createBlock(Fa,{class:"large-table",loading:r.loading,style:o.normalizeStyle(i.value),"heading-items":s.value,onToggleSort:A},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.players,(u,d)=>(o.openBlock(),o.createBlock(Z1,o.mergeProps({key:`${u.rank}${u.name}${u.user_id}`},{ref_for:!0},u,{index:d+2,"shown-columns":r.shownColumns,"router-link":o.unref(_e)().callbacks.playerRouterLinkCallback(u)}),null,16,["index","shown-columns","router-link"]))),128))]),_:1},8,["loading","style","heading-items"]))}});const TE=Q(Tle,[["__scopeId","data-v-11a25b9c"]]);const Ile={},Dle={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 400"};function Ule(e,t){return o.openBlock(),o.createElementBlock("svg",Dle,[...t[0]||(t[0]=[o.createElementVNode("path",{d:"M107 57.2C23 99 25 97.6 22.2 106.3c-3.4 10.4-6 4 43.5 103.1l44 88.3.5-6.6c.4-4.6 1-7.7 2.4-10.4l1.9-3.7-40-80.8c-22.1-44.4-40.1-81.5-40.1-82.4 0-5-.9-4.5 78-43.9l75-37.4 3.4 1.1 3.3 1.2 49.8 99.6c33 65.8 49.8 100.4 49.8 102 0 4.9-1 5.5-28.2 19.2l-26 13 15.4.1h15.4l13.9-6.9c19.2-9.6 23.1-14 23.2-25.6v-5.7L257 129.6C221.5 58.6 206 28 204 26c-4-4.2-9.6-6.5-15.8-6.5h-5.1L107 57.2m121.5-15.8 3.5 7h29.6c26 0 29.7.2 31.3 1.3 4 2.8 4 1.9 4 68v61.6l6.6 12.9 6.6 12.9v-76.3c0-90 .7-84.8-11.8-91.7l-4.2-2.3-34.6-.3-34.6-.2 3.6 7m95.7 42.1V91l24.3 12.1c25.1 12.5 28 14.5 28 18.7 0 1.3-10.8 24-26.1 55l-26.2 53 .2 14.9.2 14.8 32.8-65.8 32.8-65.8v-5.5a20 20 0 0 0-7-16 739.5 739.5 0 0 0-58.6-30.6c-.2 0-.4 3.4-.4 7.6M126.5 285.1c-4.2 4.2-2 10.3 4 11.4 1.5.2 57.1.3 123.6.2l120.9-.2 1.9-2c3-3 3-6.9 0-9.8l-1.8-1.9H128.8l-2.3 2.3m1.9 25.8c-4.5 1.8-5.5 7.5-1.9 11l2.3 2.3h122.4c130.4 0 125.8.1 127.2-3.5 1.5-3.8.3-7.8-2.7-9.4-2.5-1.3-244-1.7-247.3-.4m-2.3 29.3c-2.6 2.6-2.6 6.6.2 9.3l2 2h246.8l1.9-1.9c2.6-2.6 2.6-7.2.1-9.6l-1.8-1.7H128l-2 1.9m.6 27c-3.7 3.5-3 8.9 1.4 11.1 2.6 1.3 9.8 1.4 124.8 1.2l122-.2 2-2c3-3 3-6.9 0-9.8l-1.8-1.9H251.7c-122.8 0-123.3 0-125 1.6"},null,-1)])])}const IE=Q(Ile,[["render",Ule],["__scopeId","data-v-c8a918ec"]]);const Ole={},Lle={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 431.6"};function Qle(e,t){return o.openBlock(),o.createElementBlock("svg",Lle,[...t[0]||(t[0]=[o.createElementVNode("path",{d:"m178 26.2-8.6 1.8-9.6 2c-2.6.6-6.6 1.5-8.8 1.8-2.2.4-5.7 1-7.8 1.6l-8.8 1.8-8.8 1.8-8.6 1.8c-2.6.5-6.2 1.2-8 1.7l-8.8 1.7-8.6 1.8-6.6 1.4c-3.2.5-14.1 2.9-18.3 3.9-4.2 1-4.4 2.2-2.2 15.1 4.2 24.3 5.2 51.8 2.9 80.4l-.8 10.8c-.2 2-.8 6.9-1.4 10.6-.6 3.7-1.5 9-1.8 11.8-.4 2.8-1.2 7-1.8 9.6a138 138 0 0 0-1.8 8.3c-.3 2-1.1 5.3-1.8 7.4l-1.6 6.1c-.8 4-3.8 14.2-7.1 23.6a191.2 191.2 0 0 1-5.7 15.3L39 259.8c-.7 2-1.7 4.2-2.1 5l-8.5 17c-3.4 7-3.6 6.6 11.3 17a13873.6 13873.6 0 0 1 92 64.6c17.4 12.3 16.5 12.7 18-8L151 332c.6-12 .9-16 2-30.4.6-7.2 1-13.3 1.8-30.2l1.2-18c1.6-20.9 3-46.9 2.6-48.9-.4-2.3-1.8-2.8-5-1.8-9.2 3-18 4.4-23 3.7-15.1-2-25.3-12.8-29.8-31.8a95.5 95.5 0 0 1-2.6-29.8c0-19.7.1-20 5.5-21.6a691 691 0 0 0 14.5-4.2 583.1 583.1 0 0 0 24-6.8 88 88 0 0 0 6.4-1.8c2-.6 4.9-1.5 6.4-1.8 1.5-.3 4.7-1.3 7-2l5-1.4 5-1.4c12-3.9 13.8-3.9 28.5.4a746 746 0 0 0 23 6.5c.4.2 2.3.8 4.3 1.3 2 .4 5.2 1.4 7.2 2l6.4 1.8c1.5.3 4.2 1 5.8 1.6l7.4 2.2c19 5 18.6 4.5 18.6 24.2 0 48.9-20.7 71.2-55 59.3-6.4-2.2-6.8-1.3-5.6 13a948 948 0 0 1 1.8 30.3c.2 4.7.9 14.2 1.4 21 1.1 14.4 1.6 22.6 2.2 34.8.2 4.8.9 14.7 1.4 21.8 1 12.3 1.2 16.4 2.2 36 .9 16.2-.6 16.4 26.2-2.6a2102.7 2102.7 0 0 1 24.8-17.3c2.6-2 7.1-5 10-7.1a3744.4 3744.4 0 0 1 30.2-21.1l17.8-12.5c13.2-9.2 14-9.9 13.7-12.5-.2-2-.5-2.7-3.4-8.1a164.8 164.8 0 0 1-10.7-22.4 292 292 0 0 1-9.5-25.4 292 292 0 0 1-7.2-25.2 345.8 345.8 0 0 1-10.4-64.4c-.9-7.7-.6-44.7.4-53.6l1.7-15.4 1.4-10.6c2-9.4 2-10.2-.1-11.7-.7-.4-2.1-1-3.2-1l-6.5-1.5-9.5-2c-2.7-.4-6.7-1.2-8.8-1.8l-6.9-1.4c-1.7-.3-5.7-1-9-1.8l-9.8-2c-2-.3-5.5-1-7.6-1.6l-8.8-1.8-8.8-1.8c-2.1-.5-5.6-1.3-7.8-1.6-2.2-.4-5.8-1.1-8-1.7l-9.4-2c-3-.4-7.3-1.3-9.6-1.9a28.3 28.3 0 0 0-14.8 0"},null,-1)])])}const u0=Q(Ole,[["render",Qle],["__scopeId","data-v-4a6733fd"]]);const Mle={},Nle={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 429.1"};function Ple(e,t){return o.openBlock(),o.createElementBlock("svg",Nle,[...t[0]||(t[0]=[o.createElementVNode("path",{d:"M53.8 32.8c-2.6 1-8.3 12.9-13.6 28l-2.1 5.8c-.4 1.1-1.1 3.5-1.5 5.4L35 78.8a84.1 84.1 0 0 0-2.6 14.1c0 2.7.8 4.1 7.4 12.5 16.7 21.3 16.7 21 2.2 21-13.3 0-13-.3-12.7 11.8.2 8.4.7 11.8 1.9 14.2.9 1.7 1.7 2.7 27 35.3 8.1 10.6 7.8 11.5-4.2 11.5-11.9 0-12 .3-4.4 16.9a269.4 269.4 0 0 0 28.7 47.7c8.4 11 8.6 11.5 9 19.8.5 8 1.1 11.4 4.3 24.4 7 28.8 30 57 60 73.2a97 97 0 0 1 5 2.8l3 1.4c1.5.5 3.5 1.4 4.5 2 2.8 1.4 10.6 4 11.6 3.6 2.1-.5 2.4-3.6 1-10.6-.6-2.6-1.4-7.3-1.9-10.6-.4-3.2-1.2-7.6-1.6-9.7a218 218 0 0 1-2.6-15.1l-1.8-10.2-1.6-8.2c-1-5.6-.9-5.5-13-5.8-10.4-.2-11-.4-12.3-2.5-.4-.7-.5-7-.7-28.7-.2-26.2-.2-27.9-1-29.2-.4-.8-5.5-6.3-11.4-12.2-5.9-6-11-11.4-11.4-12.2-.8-1.5-1.3-65.8-.5-68.5.7-2.6 2.6-2.3 7.3 1.3l6.8 4.9a1371.6 1371.6 0 0 1 25 17.9c16.1 11.6 25 18.2 26.2 19.7l1.2 1.6.2 28.6c.2 31.6.1 30.2 2.8 32 1.7 1.1 28 1.4 30.6.3 3-1.2 2.8.6 3-31.4.2-31.9 0-29.5 3-32.5 1.7-1.5 7.1-5.6 18.6-13.7a3147.5 3147.5 0 0 0 38.3-27.6c4.4-3.3 6-3.6 7-1.2.7 2 .4 66.8-.3 68.3-.4.7-5.4 6-11.2 11.9-5.7 5.8-10.9 11.3-11.4 12.2l-1 1.6-.2 27.8c-.3 35 1.2 31.2-12.6 31.6-12 .3-12.2.4-13.6 12.6-.3 2.9-1 7.3-1.4 9.8-1.4 8.3-2 11.7-2.6 17-.3 2.9-1 7.5-1.6 10.4-1 5.6-2.2 14.1-2.2 16.9 0 2 1 3.3 2.8 3.3a93.6 93.6 0 0 0 21.9-9.4 124.7 124.7 0 0 0 47-44.9 128.2 128.2 0 0 0 15.9-52.5c.7-11.5 0-9.7 11.7-27.2l10.4-15.6c2.3-3.3 18.2-34.8 19-37.7 1.1-3.3-.8-4.3-8.8-4.3-11.8-.1-11.9.1 3.4-20.2a1330 1330 0 0 0 15.4-20.8c4.9-6.6 5.5-8.5 6.6-20.9.6-6.3.4-8.2-1-9.6l-1.1-1.1-9-.2c-13.5-.3-13.6-.6-4.2-13.4 14.6-19.7 14.1-18.3 11-31a188 188 0 0 0-9.9-31.1c-2.8-8-7.8-17.3-9.9-18.1-2.6-1.1-1.7-2.8-24.6 43-20.2 40.3-21.3 42.4-22.7 43.2-2.1 1.1-3 .5-6.3-4.2A118.4 118.4 0 0 0 237.3 71a122.9 122.9 0 0 0-76 2 73.7 73.7 0 0 0-14.9 6.9c-13.8 7-29.8 21.3-39.1 35-3.3 4.8-5.2 5.6-7.4 3.1L78.4 75.7c-22.4-44.9-22-44-24.6-43"},null,-1)])])}const d0=Q(Mle,[["render",Ple],["__scopeId","data-v-b519ac08"]]);const Rle={},Hle={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 470.8"};function Vle(e,t){return o.openBlock(),o.createElementBlock("svg",Hle,[...t[0]||(t[0]=[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M60.6 11c-.5.8-.6 17.6-.5 157l.1 156 1 .8c1.5 1.3 278.4 1.2 279.6 0 1.3-1.3 1.2.8 1.1-81.1l-.1-78.6-1.3-1.1c-1-.9-4.5-2.2-16-6-38.4-12.5-36.7-12-38-10.7-.7.7-.7 5.1-.9 64.4l-.2 63.7-.9 2.2c-3.9 9.5-11 14-23.1 14.3-12.4.3-20-3.6-24.3-12.3-2.4-4.8-2.3-1.4-2.3-95v-87l-1-1.1c-1.2-1.4 1-.6-31.6-12.6a552 552 0 0 0-25.5-9.1c-2.5 0-2.3-8.5-2.3 98.8 0 60.3-.2 98.7-.4 100.8-2.7 23.7-41.9 26.6-49.7 3.6l-.9-2.6-.2-120.9-.2-120.9-1-1c-.7-.6-5-2.5-12.6-5.3C59.9 8.6 61.7 9.2 60.6 10.9m.9 356.3c-2.6.5-3 1.8-3 7.7-.1 12.3-5.7 18.7-24.6 28.2-11.4 5.6-16.6 10.9-19.3 19.3a86 86 0 0 0-.9 19.5l-.2 17.3 1 1 1 1h368.1l1-1c.7-.6 1-1.6 1.2-3.2.4-3.3 0-28.3-.6-31.4-1.9-10.7-8-17.3-22-23.4-17.3-7.6-21.8-13.2-22.6-28.5-.3-4.5-.4-5-1.3-5.8l-1-.9H200.7c-75.7 0-138.4 0-139.2.2"},null,-1)])])}const f0=Q(Rle,[["render",Vle],["__scopeId","data-v-f1928c9e"]]);const $le={},Kle={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 459.4"};function zle(e,t){return o.openBlock(),o.createElementBlock("svg",Kle,[...t[0]||(t[0]=[o.createElementVNode("path",{d:"M175.3 29.5c-1.7.3-.9 1.5 6.1 8.9A57.6 57.6 0 0 1 200 82.6a63.5 63.5 0 0 1-5 25.1 63.5 63.5 0 0 1-23 27.5c-4.6 2.7-6.3 2-14.8-6.2-7.9-7.7-8-7.8-11.1-6.2-2.6 1.3-14.6 12-20.5 18.2l-9.6 10a349.5 349.5 0 0 0-35.5 43.8c-3.1 4.6-6 9.1-9.3 15.2a753 753 0 0 1-5.2 9.2c-.9 1.4-2 3.7-2.4 5-.4 1.2-1.3 3.2-2 4.4l-2.2 4.8a52 52 0 0 1-1.8 4.2c-.4.8-1.3 3.2-2 5.4l-2.2 6c-.5 1-1.3 3.8-1.8 6l-2 7.7a62 62 0 0 0-1.8 8c-3.2 23.5-3 26.6 1.7 31A154.6 154.6 0 0 0 73 318a254 254 0 0 0 33.9 16.2c2.4 1.3 12.6 4.6 19 6.3 3.6 1 7.4 2 8.4 2.4l7.4 1.6c3 .5 7.5 1.4 9.8 2 2.7.6 7.5 1.3 13.2 1.8 5 .4 11.5 1 14.6 1.4 3.8.4 9.7.6 18.6.6 18.5 0 19.9 1.2 13.7 11.9a86.4 86.4 0 0 1-50.1 39.8c-1.4.6-4.1 1.4-6 2-1.9.4-5.2 1.3-7.4 2-2.2.6-6.3 1.4-9.2 1.7-6 .7-10 1.5-10.7 2.2-1.3 1.2 2.5 4 7 5.1l8.3 2.3c2.8.8 6.8 1.7 9 2l15.8 2.6c6.9 1.3 29.5 2 39.8 1.2 6.5-.4 8-.6 18.2-2.4l8.3-1.4c2-.3 5.7-1.2 8-2 2.4-.7 5.4-1.6 6.7-1.8 1.3-.3 3.8-1 5.6-1.8l6-2.2c1.5-.5 3.7-1.3 4.7-1.9l4.2-1.8a228 228 0 0 0 22-11.7c20.9-13.4 40-38.5 44.7-58.8l1.8-6c1.7-4.9 1.9-5.8 2.6-13.2a116.3 116.3 0 0 0-10.4-71l-1.4-2.7c-.4-1-2.5-4.5-6-9.7-4.3-6.6-7.5-7.3-10-2.3-3.1 6.1-15.8 20.3-23.2 25.8a81.5 81.5 0 0 1-71.1 13.4l-6.3-2.3a93 93 0 0 1-38.7-30.1c-4-5.7-4-7.3-.4-12.8a82.1 82.1 0 0 1 38.7-30.2c17-7.5 42.3-7.4 57.2.3 8.8 4.5 10.9 2.5 9.2-9.2-.3-2.2-.6-6.5-.6-9.6a129 129 0 0 0-4.6-34.6 75.6 75.6 0 0 0-3.6-13.8c-4.5-17-18-42.2-32-59.6a193.3 193.3 0 0 0-27.5-25.9 82.1 82.1 0 0 0-18-10.3c-3-1.8-14.6-4.6-17-4.1"},null,-1)])])}const p0=Q($le,[["render",zle],["__scopeId","data-v-b1448e85"]]);const Wle={},Gle={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function jle(e,t){return o.openBlock(),o.createElementBlock("svg",Gle,[...t[0]||(t[0]=[o.createElementVNode("path",{d:"M9.51 16.698 2.244 9.18 1 11.478l6.226 6.264 2.283-1.044ZM6.189 6.676 4.943 5.423 7.02 3.335l1.245 1.253L6.19 6.676ZM9.302 14.61 4.113 9.39l.83-1.044H6.19l3.736-3.55V3.545L10.962 2.5l4.981.626.415 4.803-.83.835-1.453.209-.83 1.043 1.453 1.253.83-.835 1.453.626-4.15 4.176L12 13.775l.83-.835-1.453-1.462-1.037 1.253v1.252l-1.038.627ZM20.924 21.5l-6.018-6.473 1.66-1.67L23 19.412 20.924 21.5Z"},null,-1)])])}const h0=Q(Wle,[["render",jle],["__scopeId","data-v-e5501fa0"]]),Yle={...wf,expanded:{type:Boolean,required:!1,default:!1}},qle={class:"content logo no-scrollbar"},Xle={class:"nav-icon-wrapper"},Jle={class:"nav-text"},Zle={class:"nav-icon-wrapper"},ece={class:"nav-text"},tce={class:"profile content"},nce={class:"nav-icon-wrapper"},rce={class:"nav-text"},ace={class:"nav-icon-wrapper"},sce={class:"nav-text"},ice={class:"nav-icon-wrapper"},oce={class:"nav-text"},Ace={class:"nav-icon-wrapper"},lce={class:"nav-text settings"},cce={class:"nav-icon-wrapper"},uce={class:"nav-text"},dce={class:"nav-icon-wrapper"},fce={class:"nav-text name"},pce={class:"nav-icon-wrapper"},hce={class:"nav-text settings"},mce=["href"],gce={class:"nav-icon-wrapper"},vce={class:"nav-text sign-in-container"},yce={class:"fancy-button"},Bce=o.defineComponent({__name:"NavigationSide",props:Yle,emits:["click:sync","click:sign-in","click:language"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=o.ref(),s=o.ref();let i;const A=t;o.onMounted(()=>{var c;i=new ResizeObserver(l),a.value&&i.observe(a.value),(c=s.value)==null||c.addEventListener("scroll",l),l()}),o.onUnmounted(()=>{var c;i.disconnect(),(c=s.value)==null||c.removeEventListener("scroll",l)});function l(){var d,f;let c=!1,u=!1;s.value&&(s.value.clientHeight<s.value.scrollHeight&&(c=s.value.scrollTop>0,u=s.value.scrollTop<s.value.scrollHeight-s.value.clientHeight),(d=s.value)==null||d.classList.toggle("scrollable-up",c),(f=s.value)==null||f.classList.toggle("scrollable-down",u))}return(c,u)=>{var d;return o.openBlock(),o.createElementBlock("div",{ref_key:"navigationSide",ref:a,class:o.normalizeClass(["navigation-side",r.expanded?"expanded":""])},[o.createElementVNode("div",qle,[o.createVNode(o.unref(pn.RouterLink),{to:r.homeLink,class:"nav-item"},{default:o.withCtx(()=>[o.createElementVNode("div",Xle,[o.createVNode(ko,{"logo-type":"logo-only"})]),o.createElementVNode("div",Jle,[o.createVNode(ko,{"logo-type":"text-only"})])]),_:1},8,["to"])]),o.createElementVNode("div",{ref_key:"navigationPages",ref:s,class:"pages content no-scrollbar"},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.items,f=>(o.openBlock(),o.createBlock(o.unref(pn.RouterLink),{key:f.text,to:f.routerLocation,class:o.normalizeClass(["nav-item",f.highlighted?"highlight":""])},{default:o.withCtx(()=>[o.createElementVNode("div",Zle,[o.createVNode(o.unref(Se),{class:"nav-icon",icon:f.faIcon},null,8,["icon"])]),o.createElementVNode("div",ece,o.toDisplayString(f.text),1)]),_:2},1032,["to","class"]))),128))],512),o.createElementVNode("div",tce,[o.unref(nn)().user?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[(d=o.unref(nn)().user)!=null&&d.isPremium?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(pn.RouterLink),{key:0,to:o.unref(_e)().callbacks.premiumLinkCallback(),class:"nav-item premium"},{default:o.withCtx(()=>[o.createElementVNode("div",nce,[o.createVNode(o.unref(Se),{class:"nav-icon",icon:"crown"})]),o.createElementVNode("div",rce,o.toDisplayString(o.unref(n)("general.premium")),1)]),_:1},8,["to"])),o.createVNode(o.unref(pn.RouterLink),{to:r.links.gift,class:"nav-item"},{default:o.withCtx(()=>[o.createElementVNode("div",ace,[o.createVNode(o.unref(Se),{class:"nav-icon",icon:"gift"})]),o.createElementVNode("div",sce,o.toDisplayString(o.unref(n)("general.openCards")),1)]),_:1},8,["to"]),o.createVNode(o.unref(pn.RouterLink),{to:r.links.personalization,class:"nav-item"},{default:o.withCtx(()=>[o.createElementVNode("div",ice,[o.createVNode(o.unref(Se),{class:"nav-icon",icon:"paintbrush"})]),o.createElementVNode("div",oce,o.toDisplayString(o.unref(n)("settings.personalization")),1)]),_:1},8,["to"]),o.createVNode(o.unref(pn.RouterLink),{to:r.links.settings,class:"nav-item"},{default:o.withCtx(()=>[o.createElementVNode("div",Ace,[o.createVNode(o.unref(Se),{class:"nav-icon",icon:"cog"})]),o.createElementVNode("div",lce,[o.createElementVNode("div",null,o.toDisplayString(o.unref(n)("general.settings")),1),o.createVNode(o.unref(nl),{class:"language-selection icon",onClick:u[0]||(u[0]=o.withModifiers(()=>{},["stop","prevent"]))})])]),_:1},8,["to"]),o.createElementVNode("div",{class:"nav-item",onClick:u[1]||(u[1]=f=>A("click:sync"))},[o.createElementVNode("div",cce,[o.createVNode(o.unref(Se),{class:"nav-icon",icon:"rotate-right"})]),o.createElementVNode("div",uce,o.toDisplayString(o.unref(n)("general.syncUserData")),1)]),o.createVNode(o.unref(pn.RouterLink),{to:r.links.profile,class:"nav-item"},{default:o.withCtx(()=>{var f,p,h,m,y;return[o.createElementVNode("div",dce,[(o.openBlock(),o.createBlock(Ta,{key:`${(f=o.unref(nn)().user)==null?void 0:f.selectedIconCard}${(p=o.unref(nn)().user)==null?void 0:p.selectedBannerColor}`,"card-code-prop":((h=o.unref(nn)().user)==null?void 0:h.selectedIconCard)??"05BC160","ignore-card-item":!0,"color-override":(m=o.unref(nn)().user)==null?void 0:m.selectedBannerColor,"router-link":r.links.profile},null,8,["card-code-prop","color-override","router-link"]))]),o.createElementVNode("div",fce,o.toDisplayString((y=o.unref(nn)().user)==null?void 0:y.name),1)]}),_:1},8,["to"])],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createVNode(o.unref(pn.RouterLink),{to:r.links.settings,class:"nav-item"},{default:o.withCtx(()=>[o.createElementVNode("div",pce,[o.createVNode(o.unref(Se),{class:"nav-icon",icon:"cog"})]),o.createElementVNode("div",hce,[o.createElementVNode("div",null,o.toDisplayString(o.unref(n)("general.settings")),1),o.createVNode(o.unref(nl),{class:"language-selection icon",onClick:u[2]||(u[2]=o.withModifiers(()=>{},["stop","prevent"]))})])]),_:1},8,["to"]),o.createElementVNode("a",{class:"nav-item",onClick:u[3]||(u[3]=f=>A("click:sign-in")),href:r.loginLink,target:"_blank"},[o.createElementVNode("div",gce,[o.createVNode(o.unref(Se),{class:"nav-icon",icon:"arrow-right-to-bracket"})]),o.createElementVNode("div",vce,[o.createElementVNode("div",yce,o.toDisplayString(o.unref(n)("general.signIn")),1)])],8,mce)],64))])],2)}}});const m0=Q(Bce,[["__scopeId","data-v-50df5264"]]),wce=o.defineComponent({__name:"NavigationTopMobile",props:wf,emits:["click:sync","click:sign-in"],setup(e,{emit:t}){const n=e,r=t,a=o.ref(!1),s=o.ref(!1),i=o.ref(),A=o.ref();window.addEventListener("click",l);function l(d){var f;a.value&&(a.value=!!((f=A.value)!=null&&f.contains(d.target)))}function c(){o.nextTick(()=>{a.value=!0,o.nextTick(()=>{var d,f;(f=(d=i.value)==null?void 0:d.$el.querySelector("input"))==null||f.focus()})})}function u(){s.value=!0}return o.onUnmounted(()=>{window.removeEventListener("click",l)}),(d,f)=>{const p=o.resolveComponent("RouterLink");return o.openBlock(),o.createElementBlock("div",{ref_key:"navigationTopMobile",ref:A,class:"navigation-top-mobile"},[a.value?(o.openBlock(),o.createBlock(Ed,{key:1,"fetch-seach-result":n.fetchSeachResult,ref_key:"searchBar",ref:i,class:"search-bar"},null,8,["fetch-seach-result"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(o.unref(Se),{class:"icon",icon:"bars",onClick:u}),o.createVNode(p,{to:n.homeLink},{default:o.withCtx(()=>[o.createVNode(ko,{class:"logo-icon","logo-type":"text-only"})]),_:1},8,["to"]),o.createVNode(o.unref(Se),{class:"icon",icon:"search",onClick:o.withModifiers(c,["stop","prevent"])})],64)),o.createVNode(Lr,{"show-modal":s.value,"onUpdate:showModal":f[2]||(f[2]=h=>s.value=h)},{default:o.withCtx(()=>[o.createVNode(m0,o.mergeProps({class:"navigation-side","onClick:sync":f[0]||(f[0]=h=>r("click:sync")),"onClick:signIn":f[1]||(f[1]=h=>r("click:sign-in"))},n,{expanded:!0}),null,16)]),_:1},8,["show-modal"])],512)}}});const g0=Q(wce,[["__scopeId","data-v-f840153f"]]),bce={class:"navigation-top"},_ce=o.defineComponent({__name:"NavigationTop",props:wf,emits:["click:sync","click:sign-in"],setup(e,{emit:t}){const n=t,r=e;return(a,s)=>(o.openBlock(),o.createElementBlock("div",bce,[o.createVNode(X1,o.mergeProps({class:"navigation-top-desktop"},r),{default:o.withCtx(()=>[o.renderSlot(a.$slots,"default",{},void 0,!0)]),_:3},16),o.createVNode(g0,o.mergeProps({"onClick:signIn":s[0]||(s[0]=i=>n("click:sign-in")),"onClick:sync":s[1]||(s[1]=i=>n("click:sync")),class:"navigation-top-mobile"},r),null,16)]))}});const DE=Q(_ce,[["__scopeId","data-v-508e62c8"]]),Cce={name:{type:String,required:!0,default:""}},kce={class:"profile-dropdown-wrapper"},Ece=o.defineComponent({__name:"ProfileDropdown",props:Cce,setup(e){const t=e,n=o.ref(),r=o.ref();return o.onMounted(()=>{tt(n.value,{content:r.value,arrow:!0,interactive:!0,interactiveBorder:10})}),(a,s)=>(o.openBlock(),o.createElementBlock("div",kce,[o.createElementVNode("div",{ref_key:"profile",ref:n,class:"profile-dropdown"},o.toDisplayString(t.name),513),o.createElementVNode("div",{ref_key:"dropdown",ref:r,class:"slider-wrapper"},"Test",512)]))}});const UE=Q(Ece,[["__scopeId","data-v-1c516824"]]),Sce={modelValue:{type:String,required:!0,default:!1}},xce=["value"],Fce=o.defineComponent({__name:"ColorPicker",props:Sce,emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t;function a(s){r("update:modelValue",s.target.value)}return(s,i)=>(o.openBlock(),o.createElementBlock("input",{type:"color",value:n.modelValue,onInput:a},null,40,xce))}});const OE=Q(Fce,[["__scopeId","data-v-5ebbd7eb"]]),Tce={rows:{type:Array,required:!0,default:[]},selectedRegion:{type:String,required:!0,default:"americas"}},Ice={class:"multiselect-wrapper"},Dce=o.defineComponent({__name:"DashboardLeaderboardTable",props:Tce,emits:["update:selectedRegion"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.ref(r.selectedRegion),i=[{title:n("general.leaderboard"),id:"leaderboard"}];return o.watch(s,A=>{a("update:selectedRegion",A)}),(A,l)=>(o.openBlock(),o.createBlock(_i,{class:"small-table","heading-items":i},{heading:o.withCtx(()=>[o.createElementVNode("div",Ice,[o.createVNode(o.unref(qt),{modelValue:s.value,"onUpdate:modelValue":l[0]||(l[0]=c=>s.value=c),class:"multiselect",placeholder:o.unref(n)("general.server"),options:o.unref(Be)().dataJson.servers,"can-clear":!1,label:"name","value-prop":"nameRef"},null,8,["modelValue","placeholder","options"])])]),default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.rows,(c,u)=>(o.openBlock(),o.createBlock(l0,{id:c.id,key:c.id,change:c.change,lp:c.lp,name:c.name,rank:c.rank,"selected-banner-card":c.selectedBannerCard,matches:c.matches,index:u+2},null,8,["id","change","lp","name","rank","selected-banner-card","matches","index"]))),128))]),_:1}))}});const LE=Q(Dce,[["__scopeId","data-v-fe0f916c"]]),Uce={routerLink:{type:Object,required:!0,default:{path:"/404"}},deckBuilderRouterLink:{type:Object,required:!0,default:{path:"/404"}},archetypeId:{type:Number,required:!0,default:1},deckCode:{type:String,required:!0,default:""},index:{type:Number,required:!0,default:1},matches:{type:Number,required:!0,default:1},wins:{type:Number,required:!0,default:1},playrate:{type:Number,required:!0,default:1},regions:{type:Array,required:!0,default:[]},cards:{type:Array,required:!0,default:[]}},Oce={class:"table-card-row-background-wrapper"},Lce={class:"table-card-row-background"},Qce={class:"archetypes-row wrapper"},Mce={class:"column-content"},Nce={class:"column-content"},Pce=o.defineComponent({__name:"ArchetypesRow",props:Uce,setup(e){const t=e,n=o.computed(()=>Et(t.deckCode)),r=o.computed(()=>ln(n.value)),a=o.computed(()=>t.cards.map(i=>_e().callbacks.cardImageCallback(i,_t.Banner))),s=o.computed(()=>({showButtons:{deleteDeck:!1,updateDeckPrivacy:!1,editDeckName:!1,gemsCost:!1,openArchetypePage:!0,simulateMulligan:!0,openInDeckBuilder:!0,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!1},deckCode:t.deckCode,deckBuilderRouterLink:t.deckBuilderRouterLink,archetypeRouterLink:t.routerLink,deckId:void 0,deckName:void 0,isPrivate:void 0}));return(i,A)=>{const l=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(l,{to:t.routerLink,class:"wrapper"},{default:o.withCtx(()=>[o.createElementVNode("div",{class:"archetypes-row-wrapper wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",Oce,[o.createElementVNode("div",Lce,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.value,c=>(o.openBlock(),o.createElementBlock("div",{key:c,class:"background-card-wrapper",style:o.normalizeStyle({"--background-image":`url(${c})`})},[...A[1]||(A[1]=[o.createElementVNode("div",{class:"background-card"},null,-1)])],4))),128))])]),o.createElementVNode("div",Qce,[o.createElementVNode("div",{class:"column-content deck-highlight-wrapper",onClick:A[0]||(A[0]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createVNode(Ea,{"deck-code":t.deckCode,deck:n.value,cards:r.value,"deck-buttons-props":s.value},null,8,["deck-code","deck","cards","deck-buttons-props"])]),o.createElementVNode("div",Mce,o.toDisplayString(o.unref(Te)(t.matches)),1),o.createElementVNode("div",{class:"column-content",style:o.normalizeStyle({color:`var(${o.unref(Yn)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Te)(t.wins/t.matches*100,2,3)+"%"),5),o.createElementVNode("div",Nce,o.toDisplayString(o.unref(Te)(t.playrate,2,3)+"%"),1)])],4)]),_:1},8,["to"])}}});const v0=Q(Pce,[["__scopeId","data-v-61aebadd"]]),Rce={archetypeRows:{type:Array,required:!0,default:[]},loading:{type:Boolean,required:!1,default:!1}},Hce=o.defineComponent({__name:"ArchetypesTable",props:Rce,emits:["sort-updated"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.ref([{id:"deck",isShown:!0,sortDirection:we.NOT_SORTABLE,title:n("general.deck")},{id:"matches",isShown:!0,sortDirection:we.DOWN,title:n("general.matches")},{id:"winrate",isShown:!0,sortDirection:we.NEITHER,title:n("general.winrate")},{id:"playrate",isShown:!0,sortDirection:we.NEITHER,title:n("general.playrate")}]);function i(A){const l=hi(A,s);l&&a("sort-updated",l)}return(A,l)=>(o.openBlock(),o.createBlock(Fa,{class:"large-table",loading:r.loading,"heading-items":s.value,onToggleSort:i},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.archetypeRows,(c,u)=>(o.openBlock(),o.createBlock(v0,o.mergeProps({key:c.deckCode},{ref_for:!0},c,{index:u+2}),null,16,["index"]))),128))]),_:1},8,["loading","heading-items"]))}});const QE=Q(Hce,[["__scopeId","data-v-4a8597f4"]]),Vce={typeSummary:{type:Object,required:!0,default:{quantity:0,isError:!1,typeRef:"Champion"}}},$ce={class:"number-container"},Kce={key:0,class:"type-icon"},zce=o.defineComponent({__name:"DeckBuilderSummaryType",props:Vce,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["deck-builder-summary-type",[t.typeSummary.isError?"error":"",t.typeSummary.typeRef==="Deck"?"deck":""]])},[o.createElementVNode("div",$ce,o.toDisplayString(t.typeSummary.quantity),1),t.typeSummary.typeRef!=="Deck"?(o.openBlock(),o.createElementBlock("div",Kce,[t.typeSummary.typeRef==="Champion"?(o.openBlock(),o.createBlock(d0,{key:0})):t.typeSummary.typeRef==="Follower"?(o.openBlock(),o.createBlock(u0,{key:1})):t.typeSummary.typeRef==="Spell"?(o.openBlock(),o.createBlock(p0,{key:2})):t.typeSummary.typeRef==="Landmark"?(o.openBlock(),o.createBlock(f0,{key:3})):t.typeSummary.typeRef==="Equipment"?(o.openBlock(),o.createBlock(h0,{key:4})):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)],2))}});const Ha=Q(zce,[["__scopeId","data-v-2e6bb287"]]),Wce={cards:{type:Array,required:!0,default:[]},deck:{type:Object,required:!0,default:{}}},Gce={class:"deck-builder-summary"},jce=o.defineComponent({__name:"DeckBuilderSummary",props:Wce,setup(e){const t=e;function n(c,u,d){const f=t.cards.filter(c).map(p=>t.deck[p.cardCode]).reduce((p,h)=>p+h,0);return{typeRef:d,quantity:f,isError:u(f)}}const r=o.computed(()=>n(c=>c.typeRef==="Unit"&&c.supertype==="Champion",c=>c>6,"Champion")),a=o.computed(()=>n(c=>c.typeRef==="Unit"&&c.supertype==="",()=>!1,"Follower")),s=o.computed(()=>n(c=>c.typeRef==="Spell",()=>!1,"Spell")),i=o.computed(()=>n(c=>c.typeRef==="Landmark",()=>!1,"Landmark")),A=o.computed(()=>n(c=>c.typeRef==="Equipment",()=>!1,"Equipment")),l=o.computed(()=>n(()=>!0,c=>c!==40,"Deck"));return(c,u)=>(o.openBlock(),o.createElementBlock("div",Gce,[o.createVNode(Ha,{"type-summary":r.value},null,8,["type-summary"]),o.createVNode(Ha,{"type-summary":a.value},null,8,["type-summary"]),o.createVNode(Ha,{"type-summary":s.value},null,8,["type-summary"]),o.createVNode(Ha,{"type-summary":i.value},null,8,["type-summary"]),o.createVNode(Ha,{"type-summary":A.value},null,8,["type-summary"]),o.createVNode(Ha,{"type-summary":l.value},null,8,["type-summary"])]))}});const y0=Q(jce,[["__scopeId","data-v-ec8f0fa9"]]),Yce={rows:{type:Array,required:!0,default:[]}},qce=o.defineComponent({__name:"DashboardCardTable",props:Yce,setup(e){const{t}=Y(),n=e,r=[{title:t("general.cards"),id:"cards"},{title:t("general.matches"),id:"matches"},{title:t("general.winrate"),id:"winrate"}];return(a,s)=>(o.openBlock(),o.createBlock(_i,{class:"small-table","heading-items":r},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.rows,i=>(o.openBlock(),o.createBlock(A0,{key:i.cardCode,"card-code":i.cardCode,matches:i.matches,wins:i.wins,index:i.index+2},null,8,["card-code","matches","wins","index"]))),128))]),_:1}))}});const ME=Q(qce,[["__scopeId","data-v-e5817be3"]]),Xce={modelValue:{type:Number,required:!0,default:5}},Jce=["value"],Zce=o.defineComponent({__name:"ZoomSlider",props:Xce,emits:["update:modelValue"],setup(e,{emit:t}){const n=o.ref(),r=o.ref(),a=e,s=t;function i(A){s("update:modelValue",Number.parseInt(A.target.value))}return o.onMounted(()=>{tt(n.value,{content:r.value,arrow:!0,interactive:!0,trigger:"mouseenter click",interactiveBorder:10})}),(A,l)=>(o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("div",{ref_key:"button",ref:n,class:"circle-button"},[o.createVNode(o.unref(Se),{icon:"search-plus",class:"zoom-button"})],512),o.createElementVNode("div",{ref_key:"slider",ref:r,class:"slider-wrapper"},[o.createElementVNode("input",{type:"range",min:"1",max:"10",class:"slider",value:a.modelValue,onInput:i},null,40,Jce)],512)]))}});const NE=Q(Zce,[["__scopeId","data-v-bb4c05e4"]]),eue={cardProp:{type:Object,required:!1,default:void 0},cardCodeProp:{type:String,required:!1,default:void 0}},tue={class:"card-overview"},nue={class:"full-art-wrapper"},rue=["src"],aue={class:"overview-top"},sue={class:"card-name"},iue={class:"card-tags"},oue={class:"card-tag"},Aue={class:"card-tag-text"},lue={class:"card-tag"},cue={class:"card-tag-text"},uue={class:"card-tag"},due={class:"card-tag-text"},fue={class:"card-tag"},pue={class:"card-tag-text"},hue={class:"card-text"},mue={class:"keyword-description"},gue={class:"keyword-name"},vue={class:"flavor-text"},yue=o.defineComponent({__name:"CardOverview",props:eue,setup(e){const t=e,n=yl(t.cardProp,t.cardCodeProp,!0),r=o.ref(!1),a=o.computed(()=>{if(n.value===void 0)return[];const c=[];for(const u of n.value.keywordRefs){const d=Be().dataJson.keywords.find(f=>f.nameRef===u);d&&c.push(d)}return c}),s=o.computed(()=>{if(n.value===void 0)return null;const c=Be().dataJson;return HA(n.value.regionRefs[0])?c.runeterraChampions.find(u=>u.nameRef===n.value.regionRefs[0])??c.regions[0]:c.regions.find(u=>u.nameRef===n.value.regionRefs[0])??c.regions[0]}),i=o.computed(()=>n.value===void 0?null:Be().dataJson.rarities.find(c=>c.nameRef===n.value.rarityRef)??Be().dataJson.rarities[0]),A=o.computed(()=>n.value===void 0?null:Be().dataJson.types.find(c=>c.nameRef===n.value.typeRef)??Be().dataJson.types[0]),l=o.computed(()=>n.value===void 0?null:Be().dataJson.sets.find(c=>c.nameRef===n.value.set)??Be().dataJson.sets[0]);return(c,u)=>{var d,f,p,h,m,y,g,w;return o.openBlock(),o.createElementBlock("div",tue,[o.createVNode(o.unref(Lr),{"show-modal":r.value,"onUpdate:showModal":u[0]||(u[0]=B=>r.value=B)},{default:o.withCtx(()=>{var B;return[o.createElementVNode("div",nue,[o.createElementVNode("img",{class:"full-art",src:o.unref(_e)().callbacks.cardImageCallback(((B=o.unref(n))==null?void 0:B.cardCode)??"01IO001",o.unref(_t).Full)},null,8,rue)])]}),_:1},8,["show-modal"]),o.unref(n)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",aue,[o.createElementVNode("div",sue,o.toDisplayString(o.unref(n).name),1),o.createElementVNode("button",{ref:"button",class:"circle-button",onClick:u[1]||(u[1]=B=>r.value=!0)},[o.createVNode(o.unref(Se),{icon:"image"})],512)]),o.createElementVNode("div",iue,[o.createElementVNode("div",oue,[o.createElementVNode("div",{class:"icon",style:o.normalizeStyle({content:`url(${((d=s.value)==null?void 0:d.icon)??""})`})},null,4),o.createElementVNode("div",Aue,o.toDisplayString((f=s.value)==null?void 0:f.name),1)]),o.createElementVNode("div",lue,[o.createElementVNode("div",{class:"icon",style:o.normalizeStyle({content:`url(${((p=i.value)==null?void 0:p.icon)??""})`})},null,4),o.createElementVNode("div",cue,o.toDisplayString((h=i.value)==null?void 0:h.name),1)]),o.createElementVNode("div",uue,[o.createElementVNode("div",{class:"icon",style:o.normalizeStyle({content:`url(${((m=A.value)==null?void 0:m.icon)??""})`})},null,4),o.createElementVNode("div",due,o.toDisplayString((y=A.value)==null?void 0:y.name),1)]),o.createElementVNode("div",fue,[o.createElementVNode("div",{class:"icon",style:o.normalizeStyle({content:`url(${((g=l.value)==null?void 0:g.icon)??""})`})},null,4),o.createElementVNode("div",pue,o.toDisplayString((w=l.value)==null?void 0:w.name),1)])]),u[3]||(u[3]=o.createElementVNode("hr",{class:"divider"},null,-1)),o.createElementVNode("div",hue,o.toDisplayString(o.unref(n).descriptionRaw),1),u[4]||(u[4]=o.createElementVNode("hr",{class:"divider"},null,-1)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.value,B=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:B.nameRef},[o.createElementVNode("div",mue,[o.createElementVNode("b",gue,o.toDisplayString(B.name+" - "),1),o.createElementVNode("span",null,o.toDisplayString(B.description),1)]),u[2]||(u[2]=o.createElementVNode("hr",{class:"divider"},null,-1))],64))),128)),o.createElementVNode("div",vue,o.toDisplayString(o.unref(n).flavorText),1)],64)):o.createCommentVNode("",!0)])}}});const PE=Q(yue,[["__scopeId","data-v-d4e75028"]]),Bue={gameType:{type:String,required:!0,default:""},matches:{type:Number,required:!0,default:1},wins:{type:Number,required:!0,default:1}},wue={class:"profile-game-type-winrate"},bue={class:"game-type"},_ue=o.defineComponent({__name:"ProfileGameTypeWinrate",props:Bue,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",wue,[o.createElementVNode("div",bue,o.toDisplayString(t.gameType),1),o.createVNode(o0,{matches:t.matches,wins:t.wins},null,8,["matches","wins"])]))}});const RE=Q(_ue,[["__scopeId","data-v-1bb3c9de"]]),Cue={deckRows:{type:Array,required:!0,default:[]},loading:{type:Boolean,required:!1,default:!1}},kue=o.defineComponent({__name:"DecksTable",props:Cue,emits:["sort-updated"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.ref([{id:"deck",isShown:!0,sortDirection:we.NOT_SORTABLE,title:n("general.deck")},{id:"matches",isShown:!0,sortDirection:we.DOWN,title:n("general.matches")},{id:"winrate",isShown:!0,sortDirection:we.NEITHER,title:n("general.winrate")},{id:"manaCurve",isShown:!0,sortDirection:we.NOT_SORTABLE,title:n("general.manaCurve")},{id:"cost",isShown:!0,sortDirection:we.NOT_SORTABLE,title:n("general.cost")}]);function i(A){const l=hi(A,s);l&&a("sort-updated",l)}return(A,l)=>(o.openBlock(),o.createBlock(Fa,{class:"large-table",loading:r.loading,"heading-items":s.value,onToggleSort:i},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.deckRows,(c,u)=>(o.openBlock(),o.createBlock(ql,o.mergeProps({key:c.deckCode},{ref_for:!0},c,{index:u+2}),null,16,["index"]))),128))]),_:1},8,["loading","heading-items"]))}});const HE=Q(kue,[["__scopeId","data-v-c789c9b5"]]),Eue={deckCode:{type:String,required:!1,default:""}},Sue={deck:{type:Object,required:!0,default:{}},deckButtonsProps:{type:Object,required:!0,default:{deckCode:"",deckId:void 0,showButtons:void 0,archetypeRouterLink:void 0,deckBuilderRouterLink:"404",deckName:void 0,showUploaded:void 0,isPrivate:void 0}}},xue={class:"deck-preview-wrapper"},Fue=o.defineComponent({__name:"ShowDeckPreviewButton",props:Sue,setup(e){const{t}=Y(),n=e,r=o.ref(null),a=o.ref(!1);return o.onMounted(()=>{tt(r.value,{content:t("deck.showPreview"),arrow:!0})}),(s,i)=>(o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("button",{ref_key:"button",ref:r,class:"circle-button",onClick:i[0]||(i[0]=A=>a.value=!0)},[o.createVNode(o.unref(Se),{icon:"camera"})],512),o.createVNode(Lr,{"show-modal":a.value,"onUpdate:showModal":i[1]||(i[1]=A=>a.value=A)},{default:o.withCtx(()=>[o.createElementVNode("div",xue,[o.createVNode(o.unref(vf),{deck:n.deck,"deck-buttons-props":n.deckButtonsProps},null,8,["deck","deck-buttons-props"])])]),_:1},8,["show-modal"])]))}});const Tue=Q(Fue,[["__scopeId","data-v-90be9f81"]]),Iue={class:"cards-container no-scrollbar"},Due={key:0,class:"input-deck-code"},Uue={class:"text"},Oue=["placeholder"],Lue={class:"bottom"},Que={class:"bottom-buttons"},VE=o.defineComponent({__name:"DeckBuilderSidePanel",props:Eue,emits:["update:card-quantity","input:deck-code","click:save"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.computed(()=>{if(r.deckCode===void 0)throw new Error("DeckCode must be defined");return Et(r.deckCode)}),i=o.computed(()=>ln(s.value)),A=o.computed(()=>({showButtons:{deleteDeck:!1,updateDeckPrivacy:!1,editDeckName:!1,gemsCost:!0,openArchetypePage:!1,simulateMulligan:!0,openInDeckBuilder:!1,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!0},deckCode:r.deckCode,deckBuilderRouterLink:"404"}));function l(c){a("input:deck-code",c.target.value)}return(c,u)=>(o.openBlock(),o.createBlock(pi,{"show-clear-all":!1},{default:o.withCtx(()=>[o.createVNode(o.unref(y0),{cards:i.value,deck:s.value},null,8,["cards","deck"]),(o.openBlock(),o.createBlock(o.unref(Gl),{class:"mana-curve-chart",key:r.deckCode,"padding-top":0,"show-data-labels":!1,"data-labels-offset":0,"tooltips-enabled":!1,"display-x-scale":!0,deck:s.value},null,8,["deck"])),o.createElementVNode("div",Iue,[i.value.length===0?(o.openBlock(),o.createElementBlock("div",Due,[o.createElementVNode("div",Uue,o.toDisplayString(o.unref(n)("deckBuilder.inputDeckCode")),1),o.createElementVNode("input",{onInput:l,placeholder:o.unref(n)("general.deckCode"),type:"text"},null,40,Oue)])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,d=>(o.openBlock(),o.createBlock(o.unref(bt),{"onUpdate:cardQuantity":u[0]||(u[0]=f=>a("update:card-quantity",f)),key:d.cardCode,"card-prop":d,"maintain-aspect-ratio":!0,"quantity-number":s.value[d.cardCode],"show-plus-minus":!0,"router-link":o.unref(_e)().callbacks.cardCodeRouterLinkCallback(d.cardCode),class:"card-slice-item"},null,8,["card-prop","quantity-number","router-link"]))),128))]),o.createElementVNode("div",Lue,[o.createElementVNode("div",Que,[o.createVNode(o.unref(sf),{deck:s.value},null,8,["deck"]),o.createVNode(o.unref(af),{"deck-code":r.deckCode},null,8,["deck-code"]),o.createVNode(Tue,{deck:s.value,"deck-buttons-props":A.value},null,8,["deck","deck-buttons-props"]),o.createVNode(o.unref(of),{"deck-code":r.deckCode,"deck-name":o.unref(Dm)(r.deckCode)},null,8,["deck-code","deck-name"])]),o.createElementVNode("div",{class:"fancy-button",onClick:u[1]||(u[1]=d=>a("click:save"))},o.toDisplayString(o.unref(n)("general.save")),1)])]),_:1}))}});const Mue={data:{type:Array,required:!0,default:[]},backgroundColor:{type:String,required:!1,default:"#000000"}},$E=o.defineComponent({__name:"RegionDistributionChart",props:Mue,setup(e){const t=o.ref(null);He.register(...Rr);const n=e,r=o.computed(()=>({labels:n.data.map(s=>s.region),datasets:[{data:n.data.map(s=>s.matches),backgroundColor:n.data.map(s=>Ww(s.region))}]})),a={cutout:"80%",elements:{arc:{borderWidth:3,borderColor:n.backgroundColor}},plugins:{legend:{display:!0,position:"right",labels:{usePointStyle:!0,generateLabels(s){const i=[],A=s.data.labels;for(let l=0;l<s.data.labels.length;l++)i.push({text:`${Tm(A[l])} (${s.data.datasets[0].data[l]})`,borderRadius:999,datasetIndex:0,index:l,fontColor:os("--color-0"),fillStyle:s.data.datasets[0].backgroundColor[l]});return i}}},datalabels:{display:!1}}};return(s,i)=>(o.openBlock(),o.createBlock(o.unref(Rd),{ref_key:"chart",ref:t,"chart-data":r.value,options:a},null,8,["chart-data"]))}}),Nue={class:"circle-button"},Pue=o.defineComponent({__name:"DeckButtonsDropdown",props:r3,emits:["click:share","click:edit-name","click:update-privacy","click:delete"],setup(e,{emit:t}){const n=e,r=o.ref(null),a=o.ref(null),s=t;return o.onMounted(()=>{tt(r.value,{content:a.value,arrow:!0,interactive:!0,trigger:"click",duration:0})}),(i,A)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"containerDiv",ref:r,class:"deck-buttons-dropdown"},[o.createElementVNode("div",Nue,[o.createVNode(o.unref(Se),{class:"icon",icon:"fa-chevron-down"})]),o.createElementVNode("div",{ref_key:"tippyDiv",ref:a,class:"tippy-div"},[o.createVNode(o.unref(Qo),o.mergeProps({class:"deck-buttons","onClick:delete":A[0]||(A[0]=l=>s("click:delete")),"onClick:editName":A[1]||(A[1]=l=>s("click:edit-name")),"onClick:share":A[2]||(A[2]=l=>s("click:share")),"onClick:updatePrivacy":A[3]||(A[3]=l=>s("click:update-privacy"))},n),null,16)],512)],512))}});const B0=Q(Pue,[["__scopeId","data-v-79fac15d"]]),Rue={value:{type:Number,required:!0,default:1},max:{type:Number,required:!0,default:2}},KE=o.defineComponent({__name:"SimpleDoughnutChart",props:Rue,setup(e){const t=o.ref(null);He.register(...Rr);const n=e,r=o.computed(()=>({labels:["Value","Max"],datasets:[{data:[n.value,n.max-n.value],backgroundColor:[os("--color-good"),"transparent"]}]})),a={cutout:"80%",elements:{arc:{borderWidth:0}},plugins:{legend:{display:!1}}},s=[{id:"text",beforeDraw:function(i){const A=i.chartArea.width,l=i.chartArea.height,c=i.ctx;c.restore();const u=(l/100).toFixed(2);c.font=`bold ${u}em sans-serif`,c.textBaseline="middle";const f=i.data.datasets[0].data[0].toFixed(2),p=Math.round((A-c.measureText(f).width)/2),h=l/2;c.fillStyle=os("--color-good"),c.fillText(f,p,h),c.save()}}];return(i,A)=>(o.openBlock(),o.createBlock(o.unref(Rd),{ref_key:"chart",ref:t,"chart-data":r.value,options:a,plugins:s},null,8,["chart-data"]))}}),Hue={items:{type:Array,required:!0,default:()=>[]}},Vue={title:{type:String,required:!0,default:""},start:{type:Date,required:!0,default:new Date},state:{type:String,required:!0,default:!1},description:{type:String,required:!0,default:""}},$ue={class:"content"},Kue={class:"heading"},zue={class:"title"},Wue={class:"date"},Gue={class:"description"},jue=o.defineComponent({__name:"TournamentTimelineItem",props:Vue,setup(e){const t=o.inject(Nr),n=e;return(r,a)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["tournament-timeline-item",n.state])},[a[0]||(a[0]=o.createElementVNode("div",{class:"progress-circle"},null,-1)),o.createElementVNode("div",$ue,[o.createElementVNode("div",Kue,[o.createElementVNode("div",zue,o.toDisplayString(n.title),1),o.createElementVNode("div",Wue,o.toDisplayString(o.unref(t)(n.start).fromNow()),1)]),o.createElementVNode("div",Gue,o.toDisplayString(r.description),1)])],2))}});const Yue=Q(jue,[["__scopeId","data-v-f008d11f"]]),que={class:"tournament-timeline no-scrollbar"},Xue=o.defineComponent({__name:"TournamentTimeline",props:Hue,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",que,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.items,a=>(o.openBlock(),o.createBlock(Yue,{description:a.description,state:a.state,title:a.title,start:a.start},null,8,["description","state","title","start"]))),256))]))}});const zE=Q(Xue,[["__scopeId","data-v-420a5855"]]),Jue={players:{type:Array,required:!0,default:[]},shownColumns:{type:Object,required:!0,default:{player:!0,lp:!0,change:!0,wins:!0,matches:!0,winrate:!0,deck:!0}},loading:{type:Boolean,required:!1,default:!1}},Zue={routerLink:{type:Object,required:!0,default:{path:"/404"}},index:{type:Number,required:!0,default:0},id:{type:Number,required:!0,default:0},name:{type:String,required:!0,default:""},rank:{type:Number,required:!0,default:0},gameWins:{type:Number,required:!0,default:0},gameLosses:{type:Number,required:!0,default:0},matchWins:{type:Number,required:!0,default:0},matchLosses:{type:Number,required:!0,default:0},opponentsMatchWinrate:{type:Number,required:!0,default:0},opponentsGameWinrate:{type:Number,required:!0,default:0},decks:{type:Array,required:!0,default:[]},selectedBannerCard:{type:[String,null],required:!0,default:""},selectedBannerColor:{type:[String,null],required:!1,default:""},shownColumns:{type:Object,required:!0,default:{player:!0,lp:!0,change:!0,wins:!0,matches:!0,winrate:!0,deck:!0}}},ede={results:{type:Object,required:!0,default:{type:"single",isVictory:null}},deckCode:{type:String,required:!0,default:""},showEye:{type:Boolean,required:!1,default:!1}},tde={class:"tournament-deck-result"},nde={key:0,class:"results"},rde={class:"good"},ade={class:"bad"},sde=o.defineComponent({__name:"TournamentDeckResult",props:ede,setup(e){const t=e,n=o.computed(()=>t.results.type==="multiple"?"":t.results.isBanned?"ban":t.results.isVictory===null?"":t.results.isVictory===!1?"times":"check"),r=o.computed(()=>n.value==="check"),a=o.computed(()=>({showButtons:{deleteDeck:!1,updateDeckPrivacy:!1,editDeckName:!1,gemsCost:!0,openArchetypePage:!0,simulateMulligan:!0,openInDeckBuilder:!0,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!0},deckCode:t.deckCode,deckBuilderRouterLink:{name:"deck-builder",params:{deckCode:t.deckCode}},archetypeRouterLink:"/404"}));return(s,i)=>(o.openBlock(),o.createElementBlock("div",tde,[o.createVNode(Ea,{"deck-code":t.deckCode,"show-eye":t.results.type==="multiple"||t.showEye,"deck-buttons-props":a.value,class:"deck-highlight"},null,8,["deck-code","show-eye","deck-buttons-props"]),t.results.type==="multiple"?(o.openBlock(),o.createElementBlock("div",nde,[o.createElementVNode("span",rde,o.toDisplayString(t.results.wins),1),i[0]||(i[0]=o.createTextVNode(" - ",-1)),o.createElementVNode("span",ade,o.toDisplayString(t.results.losses),1),i[1]||(i[1]=o.createTextVNode(" - ",-1)),o.createElementVNode("span",null,o.toDisplayString(t.results.bans),1)])):n.value.length>0?(o.openBlock(),o.createBlock(o.unref(Se),{key:1,class:o.normalizeClass(["icon",r.value?"good":"bad"]),icon:n.value},null,8,["icon","class"])):o.createCommentVNode("",!0)]))}});const lr=Q(sde,[["__scopeId","data-v-8aaa4e70"]]),ide={class:"tournament-player-additional-data-wrapper"},ode={class:"tournament-player-additional-data-content-top"},Ade={class:"winrate-wrapper"},lde={class:"winrate-wrapper"},cde={class:"winrate-wrapper"},ude={class:"tournament-player-additional-data-content-bottom"},dde={class:"row tournament-player-row-background-wrapper"},fde={class:"tournament-player-row-background"},pde={class:"row tournament-player-row wrapper"},hde={class:"column-content"},mde={class:"column-content"},gde=o.defineComponent({__name:"TournamentPlayerRow",props:Zue,setup(e){const{t}=Y(),n=e,r=o.ref(null),a=o.ref(0),s=o.ref(!1),i=o.computed(()=>n.selectedBannerCard?["",_e().callbacks.cardImageCallback(n.selectedBannerCard,_t.Banner)]:[]);return o.onMounted(()=>{r.value&&(a.value=r.value.clientHeight)}),(A,l)=>{const c=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(c,{to:n.routerLink,class:"wrapper"},{default:o.withCtx(()=>[o.createElementVNode("div",{class:o.normalizeClass(["tournament-player-row-wrapper wrapper",{expanded:s.value}]),style:o.normalizeStyle({"--index":n.index})},[o.createElementVNode("div",{class:"row tournament-player-additional-data-row",style:o.normalizeStyle({"--height":a.value+"px"}),onClick:l[0]||(l[0]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createElementVNode("div",ide,[o.createElementVNode("div",{class:"tournament-player-additional-data-content",ref_key:"additionalDataContent",ref:r},[o.createElementVNode("div",ode,[o.createVNode(RA,{heading:o.unref(t)("tournament.oppWinrate")},{default:o.withCtx(()=>[o.createElementVNode("div",Ade,o.toDisplayString(o.unref(Te)(n.opponentsMatchWinrate*100,1,3)+"%"),1)]),_:1},8,["heading"]),o.createVNode(RA,{heading:o.unref(t)("tournament.gameWinrate")},{default:o.withCtx(()=>[o.createElementVNode("div",lde,o.toDisplayString(o.unref(Te)(n.opponentsMatchWinrate*100,1,3)+"%"),1)]),_:1},8,["heading"]),o.createVNode(RA,{heading:o.unref(t)("tournament.oppGameWinrate")},{default:o.withCtx(()=>[o.createElementVNode("div",cde,o.toDisplayString(o.unref(Te)(n.opponentsMatchWinrate*100,1,3)+"%"),1)]),_:1},8,["heading"])]),o.createElementVNode("div",ude,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.decks,u=>(o.openBlock(),o.createBlock(lr,{key:u.deckCode,"deck-code":u.deckCode,results:{type:"multiple",wins:u.wins,losses:u.losses,bans:u.bans}},null,8,["deck-code","results"]))),128))])],512)])],4),o.createElementVNode("div",dde,[o.createElementVNode("div",fde,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,u=>(o.openBlock(),o.createElementBlock("div",{key:u,class:"background-card",style:o.normalizeStyle({"--background-image":`url(${u})`})},null,4))),128))])]),o.createElementVNode("div",pde,[n.shownColumns.player?(o.openBlock(),o.createElementBlock("div",{key:0,class:"column-content card-wrapper",onClick:l[1]||(l[1]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createVNode(bt,{class:"card-slice-item","card-code-prop":n.selectedBannerCard??void 0,color:n.selectedBannerColor??"var(--color-background-2-rgb)","ignore-card-item":!0,"mana-number":n.rank,name:n.name,"maintain-aspect-ratio":!1,"router-link":n.routerLink},null,8,["card-code-prop","color","mana-number","name","router-link"])])):o.createCommentVNode("",!0),o.createElementVNode("div",hde,o.toDisplayString(n.matchWins)+" - "+o.toDisplayString(n.matchLosses),1),o.createElementVNode("div",mde,o.toDisplayString(n.gameWins)+" - "+o.toDisplayString(n.gameLosses),1),o.createElementVNode("div",{class:"column-content",style:o.normalizeStyle({color:`var(${o.unref(Yn)(n.matchWins/(n.matchWins+n.matchLosses))})`})},o.toDisplayString(o.unref(Te)(n.matchWins/(n.matchWins+n.matchLosses)*100,1,3)+"%"),5),o.createElementVNode("div",{class:"column-content options-button",onClick:l[2]||(l[2]=o.withModifiers(u=>s.value=!s.value,["stop","prevent"]))},[o.createVNode(o.unref(Se),{class:"icon",icon:"fa-chevron-down"})])])],6)]),_:1},8,["to"])}}});const vde=Q(gde,[["__scopeId","data-v-3656be66"]]),yde=o.defineComponent({__name:"TournamentPlayerTable",props:Jue,emits:["sort-updated"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.ref([{id:"player",isShown:r.shownColumns.player,sortDirection:we.UP,title:n("general.player")},{id:"matchWLs",isShown:r.shownColumns.matchWLs,sortDirection:we.NEITHER,title:n("general.matchRecord")},{id:"gameWLs",isShown:r.shownColumns.gameWLs,sortDirection:we.NEITHER,title:n("general.gameRecord")},{id:"winrate",isShown:r.shownColumns.winrate,sortDirection:we.NEITHER,title:n("general.winrate")}]),i=o.computed(()=>({"--columns":s.value.filter(l=>l.isShown).length}));function A(l){const c=hi(l,s);c&&a("sort-updated",c)}return(l,c)=>(o.openBlock(),o.createBlock(Fa,{class:"large-table",loading:r.loading,style:o.normalizeStyle(i.value),"heading-items":s.value,onToggleSort:A},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.players,(u,d)=>(o.openBlock(),o.createBlock(vde,o.mergeProps({key:`${u.rank}${u.name}${u.id}`},{ref_for:!0},u,{index:d+2,"router-link":o.unref(_e)().callbacks.playerIdRouterLinkCallback(u.id),"shown-columns":r.shownColumns}),null,16,["index","router-link","shown-columns"]))),128))]),_:1},8,["loading","style","heading-items"]))}});const WE=Q(yde,[["__scopeId","data-v-a8525fd3"]]),Bde={selectedRound:{type:Number,required:!0,default:1},numRounds:{type:Number,required:!0,default:1}},wde={class:"swiss-round-options"},bde=["onClick"],_de=o.defineComponent({__name:"TournamentSwissRoundOptions",props:Bde,emits:["update:selectedRound"],setup(e,{emit:t}){const n=e,r=t;return(a,s)=>(o.openBlock(),o.createElementBlock("div",wde,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.numRounds,i=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["swiss-round-option",i===n.selectedRound?"selected":""]),onClick:A=>r("update:selectedRound",i)},o.toDisplayString(i),11,bde))),256))]))}});const GE=Q(_de,[["__scopeId","data-v-cfee2da2"]]),Cde={isHorizontal:{type:Boolean,required:!0,default:!1},player:{type:[Object,null],required:!0,default:null},games:{type:Array,required:!0,default:()=>[]},resultToShow:{type:[Number,null],required:!0,default:null},showTippy:{type:Boolean,required:!1,default:!1},placement:{type:String,required:!0,default:"top"},playerNumber:{type:Number,required:!0,default:1}},kde={class:"results"},Ede=["onMouseenter","result-index"],Sde=["result-index"],xde=o.defineComponent({__name:"TournamentPlayer",props:Cde,emits:["update:result-to-show"],setup(e,{emit:t}){const n=pn.useRoute(),r=e,a=o.ref(null),s=o.ref(null),i=o.ref(null),A=o.ref([]),l=o.ref(null),c=o.ref(null),u=t,d=o.computed(()=>r.playerNumber===1?"player1":"player2");function f(m){u("update:result-to-show",m)}o.onMounted(()=>{console.log(l.value),p()}),o.watch([()=>r.showTippy,()=>r.resultToShow],()=>{h()});function p(){if(!(s.value===null||i.value===null)&&(a.value=tt(i.value,{content:s.value,placement:r.placement==="top"?"top-start":r.isHorizontal?"bottom-end":"bottom-start",arrow:!0,duration:0,trigger:"manual",popperOptions:{modifiers:[{name:"flip",options:{fallbackPlacements:r.isHorizontal?[r.placement==="top"?"bottom-end":"bottom-start",r.placement==="top"?"top-end":"top-start",r.placement==="top"?"bottom-start":"bottom-end",r.placement==="top"?"top-start":"top-end"]:[r.placement==="top"?"right":"left",r.placement==="top"?"left":"right"]}}]}}),!(l.value===null||c.value===null)))for(const m of l.value){const y=m.getAttribute("result-index");console.log(y);const g=c.value.find(w=>w.getAttribute("result-index")===y);console.log(g),g&&A.value.push(tt(g,{content:m,placement:r.placement,arrow:!0,duration:0,trigger:"manual",popperOptions:{modifiers:[{name:"flip",options:{fallbackPlacements:r.isHorizontal?[r.placement==="top"?"bottom-end":"bottom-start",r.placement==="top"?"top-end":"top-start",r.placement==="top"?"bottom-start":"bottom-end",r.placement==="top"?"top-start":"top-end"]:[r.placement==="top"?"right":"left",r.placement==="top"?"left":"right"]}}]}}))}}function h(){var m,y;if((m=a.value)==null||m.hide(),A.value.forEach(g=>{g.hide()}),!!r.showTippy){if(r.resultToShow===null){(y=a.value)==null||y.show();return}A.value.forEach((g,w)=>{w===r.resultToShow&&g.show()})}}return(m,y)=>{var g,w;return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["tournament-player",[r.showTippy?"show-results":null,r.isHorizontal?"horizontal":"vertical",r.placement]]),ref_key:"tournamentPlayer",ref:i},[r.player?(o.openBlock(),o.createBlock(bt,{key:0,class:"card-slice-item","card-code-prop":r.player.cardCode??void 0,name:r.player.name,color:null,"router-link":{name:"profile",params:{id:r.player.id,lang:o.unref(n).params.lang}},"ignore-card-item":!0,"maintain-aspect-ratio":!1,"mana-number":null,"show-plus-minus":!1,onMouseenter:y[0]||(y[0]=()=>f(null))},null,8,["card-code-prop","name","router-link"])):(o.openBlock(),o.createBlock(bt,{key:1,class:"card-slice-item",name:"",color:null,"router-link":"","ignore-card-item":!0,"maintain-aspect-ratio":!1,"mana-number":null,"show-plus-minus":!1})),o.createElementVNode("div",kde,[o.withDirectives(o.createElementVNode("div",{class:o.normalizeClass(["result",(g=r.player)!=null&&g.isVictory?"win":"loss"])},o.toDisplayString(r.games.filter(B=>B[d.value].isVictory).length),3),[[o.vShow,!r.showTippy]]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.games,(B,v)=>o.withDirectives((o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["result",B[d.value].isVictory?"win":"loss"]),onMouseenter:()=>f(v),ref_for:!0,ref_key:"results",ref:c,"result-index":v},o.toDisplayString(B[d.value].isVictory?1:0),43,Ede)),[[o.vShow,r.showTippy]])),256)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.games,(B,v)=>(o.openBlock(),o.createElementBlock("div",{class:"result-tippy","result-index":v,ref_for:!0,ref_key:"resultTippyContents",ref:l},[o.createVNode(lr,{"deck-code":B[d.value].deckCode,results:{type:"single",isVictory:B[d.value].isVictory}},null,8,["deck-code","results"])],8,Sde))),256))]),o.createElementVNode("div",{class:"main-tippy",ref_key:"mainTippyContent",ref:s},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(((w=r.player)==null?void 0:w.decks)??[],B=>{var v,_;return o.openBlock(),o.createBlock(lr,{"deck-code":B,results:{type:"single",isVictory:(v=r.games.find(b=>b[d.value].deckCode===B))!=null&&v[d.value].isVictory?!0:null,isBanned:(_=r.player)==null?void 0:_.bannedDecks.includes(B)}},null,8,["deck-code","results"])}),256))],512)],2)}}});const Hw=Q(xde,[["__scopeId","data-v-322df46f"]]),w0={matchId:{type:Number,required:!0,default:0},player1:{type:Object,required:!0,default:()=>({})},player2:{type:Object,required:!0,default:()=>({})},games:{type:Array,required:!0,default:()=>[]}},Fde={...w0,isHorizontal:{type:Boolean,required:!0,default:!1},showAdminControls:{type:Boolean,required:!1,default:!1}},Tde={class:"content no-scrollbar"},Ide={class:"players"},Dde={class:"player"},Ude={class:"player-record"},Ode={class:"player-decks"},Lde={class:"player"},Qde={class:"player-record"},Mde={class:"player-decks"},Nde={key:0,class:"results"},Pde={class:"game"},Rde={class:"game-number"},Hde={class:"game-result"},Vde={class:"game-player"},$de={class:"game-player-name"},Kde={class:"vs"},zde={class:"game-player"},Wde={class:"game-player-name"},Gde=o.defineComponent({__name:"TournamentMatchupDetails",props:w0,setup(e){const{t}=Y(),n=pn.useRoute(),r=e;return(a,s)=>(o.openBlock(),o.createElementBlock("div",Tde,[o.createElementVNode("div",Ide,[o.createElementVNode("div",Dde,[o.createVNode(bt,{class:"card-slice-item","card-code-prop":r.player1.cardCode??void 0,color:null,"ignore-card-item":!0,"mana-number":null,name:r.player1.name,"maintain-aspect-ratio":!0,"router-link":{name:"profile",params:{id:r.player1.id,lang:o.unref(n).params.lang}}},null,8,["card-code-prop","name","router-link"]),o.createElementVNode("div",Ude,o.toDisplayString(r.games.reduce((i,A)=>A.player1.isVictory?i+1:i,0))+" - "+o.toDisplayString(r.games.reduce((i,A)=>A.player1.isVictory?i:i+1,0)),1),o.createElementVNode("div",Ode,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.player1.decks,i=>(o.openBlock(),o.createBlock(lr,{class:"tournament-deck-result",key:i,"deck-code":i,"show-eye":!0,results:{type:"single",isVictory:r.games.some(A=>A.player1.isVictory&&A.player1.deckCode===i)?!0:null,isBanned:r.player1.bannedDecks.includes(i)}},null,8,["deck-code","results"]))),128))])]),o.createElementVNode("div",Lde,[o.createVNode(bt,{class:"card-slice-item","card-code-prop":r.player2.cardCode??void 0,color:null,"ignore-card-item":!0,"mana-number":null,name:r.player2.name,"maintain-aspect-ratio":!0,"router-link":{name:"profile",params:{id:r.player2.id,lang:o.unref(n).params.lang}}},null,8,["card-code-prop","name","router-link"]),o.createElementVNode("div",Qde,o.toDisplayString(r.games.reduce((i,A)=>A.player2.isVictory?i+1:i,0))+" - "+o.toDisplayString(r.games.reduce((i,A)=>A.player2.isVictory?i:i+1,0)),1),o.createElementVNode("div",Mde,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.player2.decks,i=>(o.openBlock(),o.createBlock(lr,{class:"tournament-deck-result",key:i,"deck-code":i,"show-eye":!0,results:{type:"single",isVictory:r.games.some(A=>A.player2.isVictory&&A.player2.deckCode===i)?!0:null,isBanned:r.player2.bannedDecks.includes(i)}},null,8,["deck-code","results"]))),128))])])]),r.games.length>0?(o.openBlock(),o.createElementBlock("div",Nde,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.games,(i,A)=>(o.openBlock(),o.createElementBlock("div",Pde,[o.createElementVNode("div",Rde,o.toDisplayString(o.unref(t)("general.game"))+" "+o.toDisplayString(A+1),1),o.createElementVNode("div",Hde,[o.createElementVNode("div",Vde,[o.createElementVNode("div",$de,o.toDisplayString(r.player1.name),1),o.createVNode(lr,{class:"tournament-deck-result","deck-code":i.player1.deckCode,"show-eye":!0,results:{type:"single",isVictory:i.player1.isVictory,isBanned:!1}},null,8,["deck-code","results"])]),o.createElementVNode("div",Kde,o.toDisplayString(o.unref(t)("general.vs")),1),o.createElementVNode("div",zde,[o.createElementVNode("div",Wde,o.toDisplayString(r.player2.name),1),o.createVNode(lr,{class:"tournament-deck-result","deck-code":i.player2.deckCode,"show-eye":!0,results:{type:"single",isVictory:i.player2.isVictory,isBanned:!1}},null,8,["deck-code","results"])])])]))),256))])):o.createCommentVNode("",!0)]))}});const jde=Q(Gde,[["__scopeId","data-v-a329da5a"]]),Yde={class:"content no-scrollbar"},qde={class:"heading"},Xde=o.defineComponent({__name:"TournamentMatchupEdit",props:w0,emits:["matchup-edit:submit"],setup(e,{emit:t}){const{t:n}=Y(),r=e,a=t,s=o.ref(0);o.onMounted(()=>{r.player1.isVictory===r.player2.isVictory?s.value=1:r.player2.isVictory&&(s.value=2)});function i(){a("matchup-edit:submit",{matchId:r.matchId,playerId:s.value===0?r.player1.challongeId:s.value===2?r.player2.challongeId:null})}return(A,l)=>(o.openBlock(),o.createElementBlock("div",Yde,[o.createElementVNode("div",qde,o.toDisplayString(o.unref(n)("tournament.admin.editMatchWinner")),1),o.createVNode(kl,{class:"toggle-switch",options:[r.player1.name,o.unref(n)("general.tie"),r.player2.name],"selected-option":s.value,"onUpdate:selectedOption":l[0]||(l[0]=c=>s.value=c)},null,8,["options","selected-option"]),o.createElementVNode("button",{class:"primary-button centered",onClick:i},o.toDisplayString(o.unref(n)("general.submit")),1)]))}});const Jde=Q(Xde,[["__scopeId","data-v-0a4547ed"]]),Zde={class:"tournament-matchup"},efe={class:"hover-options-container"},tfe={class:"hover-options"},nfe=o.defineComponent({__name:"TournamentMatchup",props:Fde,emits:["matchup-edit:submit"],setup(e,{emit:t}){const n=e,r=t,a=o.ref(null),s=o.ref(!1),i=o.ref(!1),A=o.ref(!1);function l(){s.value=!1,a.value=null}function c(u){r("matchup-edit:submit",u)}return(u,d)=>(o.openBlock(),o.createElementBlock("div",Zde,[o.createElementVNode("div",{class:o.normalizeClass(["players",n.isHorizontal?"horizontal":"vertical"]),onMouseenter:d[2]||(d[2]=f=>s.value=!0),onMouseleave:l},[o.createVNode(Hw,{"result-to-show":a.value,"onUpdate:resultToShow":d[0]||(d[0]=f=>a.value=f),player:n.player1??null,games:n.games,"show-tippy":s.value,"is-horizontal":n.isHorizontal,"player-number":1,placement:"top"},null,8,["result-to-show","player","games","show-tippy","is-horizontal"]),o.createVNode(Hw,{"result-to-show":a.value,"onUpdate:resultToShow":d[1]||(d[1]=f=>a.value=f),player:n.player2??null,games:n.games,"show-tippy":s.value,"is-horizontal":n.isHorizontal,"player-number":2,placement:"bottom"},null,8,["result-to-show","player","games","show-tippy","is-horizontal"])],34),o.createElementVNode("div",efe,[o.createElementVNode("div",tfe,[n.showAdminControls?(o.openBlock(),o.createElementBlock("div",{key:0,class:"option",onClick:d[3]||(d[3]=()=>i.value=!0)},[o.createVNode(o.unref(Se),{icon:"pencil"})])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"option",onClick:d[4]||(d[4]=()=>A.value=!0)},[o.createVNode(o.unref(Se),{icon:"search"})])])]),o.createVNode(o.unref(Lr),{"show-modal":i.value,"onUpdate:showModal":d[5]||(d[5]=f=>i.value=f)},{default:o.withCtx(()=>[o.createVNode(Jde,o.mergeProps({class:"tournament-matchup-edit"},n,{"onMatchupEdit:submit":c}),null,16)]),_:1},8,["show-modal"]),o.createVNode(o.unref(Lr),{"show-modal":A.value,"onUpdate:showModal":d[6]||(d[6]=f=>A.value=f)},{default:o.withCtx(()=>[o.createVNode(jde,o.mergeProps({class:"tournament-matchup-details"},n),null,16)]),_:1},8,["show-modal"])]))}});const jE=Q(nfe,[["__scopeId","data-v-539a82c9"]]),rfe={matchups:{type:Array,required:!0,default:null},showAdminControls:{type:Boolean,required:!1,default:!1}},afe={class:"swiss-round"},sfe={key:1,class:"empty"},ife=o.defineComponent({__name:"TournamentSwissRound",props:rfe,emits:["matchup-edit:submit"],setup(e,{emit:t}){const n=e,r=t;function a(s){r("matchup-edit:submit",s)}return(s,i)=>(o.openBlock(),o.createElementBlock("div",afe,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.matchups,A=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[A?(o.openBlock(),o.createBlock(jE,o.mergeProps({key:0,class:"matchup"},{ref_for:!0},A,{"is-horizontal":!0,"show-admin-controls":n.showAdminControls,"onMatchupEdit:submit":a}),null,16,["show-admin-controls"])):(o.openBlock(),o.createElementBlock("div",sfe))],64))),256))]))}});const YE=Q(ife,[["__scopeId","data-v-fb604c77"]]),ofe={rounds:{type:Array,required:!0,default:null},showAdminControls:{type:Boolean,required:!1,default:!1}},Afe={class:"tournament-bracket"},lfe={class:"round"},cfe={key:1,class:"empty"},ufe=o.defineComponent({__name:"TournamentBracket",props:ofe,emits:["matchup-edit:submit"],setup(e,{emit:t}){const n=e,r=t;function a(s){r("matchup-edit:submit",s)}return(s,i)=>(o.openBlock(),o.createElementBlock("div",Afe,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.rounds,A=>(o.openBlock(),o.createElementBlock("div",lfe,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(A,l=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[l?(o.openBlock(),o.createBlock(jE,{key:0,player1:l.player1,player2:l.player2,games:l.games,"is-horizontal":!1,"match-id":l.matchId,"show-admin-controls":n.showAdminControls,"onMatchupEdit:submit":a},null,8,["player1","player2","games","match-id","show-admin-controls"])):(o.openBlock(),o.createElementBlock("div",cfe))],64))),256))]))),256))]))}});const qE=Q(ufe,[["__scopeId","data-v-5fb5924f"]]),dfe={title:{type:String,required:!0,default:""},createdAt:{type:String,required:!0,default:""}},ffe={class:"content"},pfe=o.defineComponent({__name:"TournamentFeedEvent",props:dfe,setup(e){const t=o.inject(Nr),n=e;return(r,a)=>(o.openBlock(),o.createBlock(ut,{class:"tournament-feed-event",title:n.title,text:o.unref(t)(n.createdAt).fromNow()},{default:o.withCtx(()=>[o.createElementVNode("div",ffe,[o.renderSlot(r.$slots,"default",{},void 0,!0)])]),_:3},8,["title","text"]))}});const Ci=Q(pfe,[["__scopeId","data-v-c8ad471f"]]),hfe={createdAt:{type:String,required:!0,default:""}},mfe=o.defineComponent({__name:"TournamentFeedEventAdminUpdate",props:hfe,setup(e){const{t}=Y(),n=e;return(r,a)=>(o.openBlock(),o.createBlock(Ci,{title:o.unref(t)("tournament.feed.adminUpdate"),"created-at":n.createdAt},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(t)("tournament.feed.adminUpdateMessage")),1)]),_:1},8,["title","created-at"]))}});const gfe=Q(mfe,[["__scopeId","data-v-9f936feb"]]),vfe={id:{type:Number,required:!0,default:0},name:{type:String,required:!0,default:""},cardCode:{type:[String,null],required:!0,default:null},createdAt:{type:String,required:!0,default:""}},yfe={class:"content"},Bfe=o.defineComponent({__name:"TournamentFeedEventCheckIn",props:vfe,setup(e){const{t}=Y(),n=pn.useRoute(),r=e,a=o.computed(()=>({name:"profile",params:{id:r.id,lang:n.params.lang}}));return(s,i)=>{const A=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(Ci,{title:o.unref(t)("tournament.feed.checkIn"),"created-at":r.createdAt},{default:o.withCtx(()=>[o.createElementVNode("div",yfe,[o.createVNode(A,{to:a.value},{default:o.withCtx(()=>[o.createVNode(bt,{class:"card-slice-item","card-code-prop":r.cardCode??void 0,color:null,"ignore-card-item":!0,"mana-number":null,name:r.name,"maintain-aspect-ratio":!0,"router-link":a.value},null,8,["card-code-prop","name","router-link"])]),_:1},8,["to"])])]),_:1},8,["title","created-at"])}}});const wfe=Q(Bfe,[["__scopeId","data-v-6d9b3357"]]),bfe={createdAt:{type:String,required:!0,default:""}},_fe=o.defineComponent({__name:"TournamentFeedEventCreated",props:bfe,setup(e){const{t}=Y(),n=e;return(r,a)=>(o.openBlock(),o.createBlock(Ci,{title:o.unref(t)("tournament.feed.created"),"created-at":n.createdAt},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(t)("tournament.feed.createdMessage")),1)]),_:1},8,["title","created-at"]))}});const Cfe=Q(_fe,[["__scopeId","data-v-f7db2ed6"]]),kfe={isStarting:{type:Boolean,required:!0,default:!1},matchId:{type:Number,required:!0,default:0},player1:{type:Object,required:!0,default:()=>({})},player2:{type:Object,required:!0,default:()=>({})},games:{type:Array,required:!0,default:()=>[]},createdAt:{type:String,required:!0,default:""}},Efe={class:"content"},Sfe={class:"players"},xfe={class:"player"},Ffe={class:"player-record"},Tfe={class:"player-decks"},Ife={class:"player"},Dfe={class:"player-record"},Ufe={class:"player-decks"},Ofe={key:0,class:"result"},Lfe={class:"game-number"},Qfe={class:"game-result"},Mfe={class:"game-player"},Nfe={class:"game-player-name"},Pfe={class:"vs"},Rfe={class:"game-player"},Hfe={class:"game-player-name"},Vfe=o.defineComponent({__name:"TournamentFeedEventMatchUpdate",props:kfe,setup(e){const{t}=Y(),n=pn.useRoute(),r=e;return(a,s)=>(o.openBlock(),o.createBlock(Ci,{class:"tournament-feed-event match-update",title:o.unref(t)("tournament.feed.matchUpdate"),"created-at":r.createdAt},{default:o.withCtx(()=>[o.createElementVNode("div",Efe,[o.createElementVNode("div",Sfe,[o.createElementVNode("div",xfe,[o.createVNode(bt,{class:"card-slice-item","card-code-prop":r.player1.cardCode??void 0,color:null,"ignore-card-item":!0,"mana-number":null,name:r.player1.name,"maintain-aspect-ratio":!0,"router-link":{name:"profile",params:{id:r.player1.id,lang:o.unref(n).params.lang}}},null,8,["card-code-prop","name","router-link"]),o.createElementVNode("div",Ffe,o.toDisplayString(r.games.reduce((i,A)=>A.player1.isVictory?i+1:i,0))+" - "+o.toDisplayString(r.games.reduce((i,A)=>A.player1.isVictory?i:i+1,0)),1),o.createElementVNode("div",Tfe,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.player1.decks,i=>(o.openBlock(),o.createBlock(lr,{class:"tournament-deck-result",key:i,"deck-code":i,"show-eye":!0,results:{type:"single",isVictory:r.games.some(A=>A.player1.isVictory&&A.player1.deckCode===i)?!0:null,isBanned:r.player1.bannedDecks.includes(i)}},null,8,["deck-code","results"]))),128))])]),o.createElementVNode("div",Ife,[o.createVNode(bt,{class:"card-slice-item","card-code-prop":r.player2.cardCode??void 0,color:null,"ignore-card-item":!0,"mana-number":null,name:r.player2.name,"maintain-aspect-ratio":!0,"router-link":{name:"profile",params:{id:r.player2.id,lang:o.unref(n).params.lang}}},null,8,["card-code-prop","name","router-link"]),o.createElementVNode("div",Dfe,o.toDisplayString(r.games.reduce((i,A)=>A.player2.isVictory?i+1:i,0))+" - "+o.toDisplayString(r.games.reduce((i,A)=>A.player2.isVictory?i:i+1,0)),1),o.createElementVNode("div",Ufe,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.player2.decks,i=>(o.openBlock(),o.createBlock(lr,{class:"tournament-deck-result",key:i,"deck-code":i,"show-eye":!0,results:{type:"single",isVictory:r.games.some(A=>A.player2.isVictory&&A.player2.deckCode===i)?!0:null,isBanned:r.player2.bannedDecks.includes(i)}},null,8,["deck-code","results"]))),128))])])]),!r.isStarting&&r.games.length>0?(o.openBlock(),o.createElementBlock("div",Ofe,[o.createElementVNode("div",Lfe,o.toDisplayString(o.unref(t)("general.game"))+" "+o.toDisplayString(r.games.length),1),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList([r.games[r.games.length-1]],i=>(o.openBlock(),o.createElementBlock("div",Qfe,[o.createElementVNode("div",Mfe,[o.createElementVNode("div",Nfe,o.toDisplayString(r.player1.name),1),o.createVNode(lr,{class:"tournament-deck-result","deck-code":i.player1.deckCode,"show-eye":!0,results:{type:"single",isVictory:i.player1.isVictory,isBanned:!1}},null,8,["deck-code","results"])]),o.createElementVNode("div",Pfe,o.toDisplayString(o.unref(t)("general.vs")),1),o.createElementVNode("div",Rfe,[o.createElementVNode("div",Hfe,o.toDisplayString(r.player2.name),1),o.createVNode(lr,{class:"tournament-deck-result","deck-code":i.player2.deckCode,"show-eye":!0,results:{type:"single",isVictory:i.player2.isVictory,isBanned:!1}},null,8,["deck-code","results"])])]))),256))])):o.createCommentVNode("",!0)])]),_:1},8,["title","created-at"]))}});const $fe=Q(Vfe,[["__scopeId","data-v-60efabe2"]]),Kfe={createdAt:{type:String,required:!0,default:""}},zfe=o.defineComponent({__name:"TournamentFeedEventRoundStarted",props:Kfe,setup(e){const{t}=Y(),n=e;return(r,a)=>(o.openBlock(),o.createBlock(Ci,{title:o.unref(t)("tournament.feed.roundStarted"),"created-at":n.createdAt},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(t)("tournament.feed.roundStartedMessage")),1)]),_:1},8,["title","created-at"]))}});const Wfe=Q(zfe,[["__scopeId","data-v-8ad5656f"]]),Gfe={id:{type:Number,required:!0,default:0},name:{type:String,required:!0,default:""},cardCode:{type:[String,null],required:!0,default:null},createdAt:{type:String,required:!0,default:""}},jfe={class:"content"},Yfe=o.defineComponent({__name:"TournamentFeedEventSignUp",props:Gfe,setup(e){const{t}=Y(),n=pn.useRoute(),r=o.computed(()=>({name:"profile",params:{id:a.id,lang:n.params.lang}})),a=e;return(s,i)=>{const A=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(Ci,{class:"tournament-feed-event match-update",title:o.unref(t)("tournament.feed.signUp"),"created-at":a.createdAt},{default:o.withCtx(()=>[o.createElementVNode("div",jfe,[o.createVNode(A,{to:r.value},{default:o.withCtx(()=>[o.createVNode(bt,{class:"card-slice-item","card-code-prop":a.cardCode??void 0,color:null,"ignore-card-item":!0,"mana-number":null,name:a.name,"maintain-aspect-ratio":!0,"router-link":r.value},null,8,["card-code-prop","name","router-link"])]),_:1},8,["to"])])]),_:1},8,["title","created-at"])}}});const qfe=Q(Yfe,[["__scopeId","data-v-bd9944b6"]]),Xfe={createdAt:{type:String,required:!0,default:""}},Jfe=o.defineComponent({__name:"TournamentFeedEventWithdraw",props:Xfe,setup(e){const{t}=Y(),n=e;return(r,a)=>(o.openBlock(),o.createBlock(Ci,{title:o.unref(t)("tournament.feed.withdrawal"),"created-at":n.createdAt},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(t)("tournament.feed.withdrawalMessage")),1)]),_:1},8,["title","created-at"]))}});const Zfe=Q(Jfe,[["__scopeId","data-v-d3bac452"]]),epe={feed:{type:Array,required:!0,default:[]}},XE=o.defineComponent({__name:"TournamentSidePanel",props:epe,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createBlock(pi,null,{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.feed,a=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[a.type==="sign_up"?(o.openBlock(),o.createBlock(qfe,o.mergeProps({key:0,ref_for:!0},a),null,16)):o.createCommentVNode("",!0),a.type==="check_in"?(o.openBlock(),o.createBlock(wfe,o.mergeProps({key:1,ref_for:!0},a),null,16)):o.createCommentVNode("",!0),a.type==="match_update"?(o.openBlock(),o.createBlock($fe,o.mergeProps({key:2,ref_for:!0},a),null,16)):o.createCommentVNode("",!0),a.type==="withdraw"?(o.openBlock(),o.createBlock(Zfe,o.mergeProps({key:3,ref_for:!0},a),null,16)):o.createCommentVNode("",!0),a.type==="admin_match_update"?(o.openBlock(),o.createBlock(gfe,o.mergeProps({key:4,ref_for:!0},a),null,16)):o.createCommentVNode("",!0),a.type==="round_started"?(o.openBlock(),o.createBlock(Wfe,o.mergeProps({key:5,ref_for:!0},a),null,16)):o.createCommentVNode("",!0),a.type==="created"?(o.openBlock(),o.createBlock(Cfe,o.mergeProps({key:6,ref_for:!0},a),null,16)):o.createCommentVNode("",!0)],64))),256))]),_:1}))}}),tpe={install:async e=>{e.component("RevealCarousel",tg),e.component("SearchBar",Ed),e.component("SocialLinks",gg),e.component("ModalItem",Lr),e.component("FilterSampleSize",xo),e.component("FilterRanks",uC),e.component("FilterManaCost",vg),e.component("FilterRarities",yg),e.component("FilterSets",Bg),e.component("FilterKeywords",wg),e.component("FilterServers",Fo),e.component("FilterTime",fi),e.component("FilterCardCodes",Sd),e.component("FilterDecks",dC),e.component("FilterProfile",fC),e.component("FilterText",tl),e.component("FilterAdvanced",Cg),e.component("FilterRegions",El),e.component("FilterCards",pC),e.component("AdvancedFilterItem",_g),e.component("FilterTypes",kg),e.component("RegionsLine",Eg),e.component("CardsTable",hC),e.component("DeckHighlightRegions",Tl),e.component("GemsCost",Tg),e.component("CardSliceItem",bt),e.component("LanguageSelection",nl),e.component("DeckSidePanel",n3),e.component("DeckHighlight",Ea),e.component("ArchetypeSidePanel",oE),e.component("OpenInDeckBuilderButton",Q1),e.component("CopyDeckButton",af),e.component("UpdateDeckPrivacyButton",N1),e.component("EditDeckNameButton",O1),e.component("UploadDeckToLorButton",of),e.component("DeleteDeckButton",U1),e.component("OpenArchetypePageButton",L1),e.component("SimulateMulliganButton",sf),e.component("DecksRow",ql),e.component("CardItemLinkWrapper",Bf),e.component("DeckHighlightCards",Il),e.component("CheckboxItem",sn),e.component("NavigationTopDesktop",X1),e.component("SidePanelSectionPane",ut),e.component("CardSimilarCards",AE),e.component("DashboardSignUp",lE),e.component("MatchItem",cE),e.component("ToggleSwitch",kl),e.component("LeaderboardTop10Region",J1),e.component("ShareButton",R1),e.component("LeaderboardDetailRow",Z1),e.component("DeckBlock",uE),e.component("SmallTable",_i),e.component("LeaderboardTop",dE),e.component("CardLottery",fE),e.component("DashboardProfile",pE),e.component("LeaderboardChart",hE),e.component("CardQuantityBarChart",mE),e.component("WinsLossesBarChart",gE),e.component("RoundCardInfoBarChart",vE),e.component("LineChart",yE),e.component("ManaCurveChart",Gl),e.component("WinrateDoughnutChart",a0),e.component("InfoDoughnutChart",Wu),e.component("BuiltDecksTable",BE),e.component("ProfileRegionTable",wE),e.component("ProfileArchetypeTable",bE),e.component("CardItem3d",r0),e.component("LeaderboardOptions",_E),e.component("SimilarDecksTable",CE),e.component("LargeTable",Fa),e.component("StatisticsPaneContainer",RA),e.component("ArchetypeSidePanelHighlight",Fd),e.component("CardCarousel",kE),e.component("DeckButtons",Qo),e.component("WinsLossesLine",o0),e.component("DashboardCardRow",A0),e.component("CardTogglePage",EE),e.component("TestComponent",SE),e.component("DashboardLeaderboardRow",l0),e.component("DeckPreview",vf),e.component("CheckboxItemManaCost",Ou),e.component("RevealDayOptions",xE),e.component("DeckDifferenceItem",j1),e.component("DashboardNewCards",FE),e.component("CardsRow",Sg),e.component("LeaderboardDetailTable",TE),e.component("DeckIcon",IE),e.component("LogoIcon",ko),e.component("FollowerIcon",u0),e.component("ChampionIcon",d0),e.component("EternalIcon",e0),e.component("InfoIcon",q1),e.component("LandmarkIcon",f0),e.component("ManaHexagonIcon",Cl),e.component("RuneterraIcon",P1),e.component("ShardsIcon",Fg),e.component("StandardIcon",t0),e.component("SpellIcon",p0),e.component("GauntletIcon",n0),e.component("EquipmentIcon",h0),e.component("NavigationTop",DE),e.component("CardMultiselect",bg),e.component("ProfileDropdown",UE),e.component("ColorPicker",OE),e.component("DashboardLeaderboardTable",LE),e.component("NavigationSide",m0),e.component("ArchetypesTable",QE),e.component("DeckBuilderSummary",y0),e.component("DeckBuilderSummaryType",Ha),e.component("DashboardCardTable",ME),e.component("ArchetypesRow",v0),e.component("RevealDayOption",c0),e.component("DeckHighlightEye",yf),e.component("DeckDifferences",Y1),e.component("ZoomSlider",NE),e.component("CardOverview",PE),e.component("CircleCardItem",Ta),e.component("ProfileGameTypeWinrate",RE),e.component("DecksTable",HE),e.component("RegionItem",Fl),e.component("TippyText",xd),e.component("ProfileRegionRow",s0),e.component("SimulateMulligan",M1),e.component("DeckSummary",rf),e.component("NavigationTopMobile",g0),e.component("CardItem",si),e.component("ProfileArchetypeRow",i0),e.component("DeckBuilderSidePanel",VE),e.component("SimpleDoughnutChart",KE),e.component("RegionDistributionChart",$E),e.component("DeckButtonsDropdown",B0),e.component("Spinner",xg),e.component("ToastContainer",Vw),e.component("TournamentTimeline",zE),e.component("TournamentPlayerTable",WE),e.component("TournamentSwissRoundOptions",GE),e.component("TournamentSwissRound",YE),e.component("TournamentBracket",qE),e.component("TournamentSidePanel",XE),e.component("FontAwesomeIcon",Se),e.component("Multiselect",qt)}};exports.AdvancedFilterItem=_g;exports.ArchetypeSidePanel=oE;exports.ArchetypeSidePanelHighlight=Fd;exports.ArchetypesRow=v0;exports.ArchetypesTable=QE;exports.BuiltDecksTable=BE;exports.CardCarousel=kE;exports.CardImageType=_t;exports.CardItem=si;exports.CardItem3d=r0;exports.CardItemLinkWrapper=Bf;exports.CardLottery=fE;exports.CardMultiselect=bg;exports.CardOverview=PE;exports.CardQuantityBarChart=mE;exports.CardSimilarCards=AE;exports.CardSliceItem=bt;exports.CardTogglePage=EE;exports.CardsRow=Sg;exports.CardsTable=hC;exports.ChampionIcon=d0;exports.CheckboxItem=sn;exports.CheckboxItemManaCost=Ou;exports.CircleCardItem=Ta;exports.ColorPicker=OE;exports.CopyDeckButton=af;exports.DashboardCardRow=A0;exports.DashboardCardTable=ME;exports.DashboardLeaderboardRow=l0;exports.DashboardLeaderboardTable=LE;exports.DashboardNewCards=FE;exports.DashboardProfile=pE;exports.DashboardSignUp=lE;exports.DeckBlock=uE;exports.DeckBuilderSidePanel=VE;exports.DeckBuilderSummary=y0;exports.DeckBuilderSummaryType=Ha;exports.DeckButtons=Qo;exports.DeckButtonsDropdown=B0;exports.DeckDifferenceItem=j1;exports.DeckDifferences=Y1;exports.DeckHighlight=Ea;exports.DeckHighlightCards=Il;exports.DeckHighlightEye=yf;exports.DeckHighlightRegions=Tl;exports.DeckIcon=IE;exports.DeckPreview=vf;exports.DeckSidePanel=n3;exports.DeckSummary=rf;exports.DecksRow=ql;exports.DecksTable=HE;exports.DeleteDeckButton=U1;exports.EditDeckNameButton=O1;exports.EquipmentIcon=h0;exports.EternalIcon=e0;exports.FilterAdvanced=Cg;exports.FilterCardCodes=Sd;exports.FilterCards=pC;exports.FilterDecks=dC;exports.FilterKeywords=wg;exports.FilterManaCost=vg;exports.FilterProfile=fC;exports.FilterRanks=uC;exports.FilterRarities=yg;exports.FilterRegions=El;exports.FilterSampleSize=xo;exports.FilterServers=Fo;exports.FilterSets=Bg;exports.FilterText=tl;exports.FilterTime=fi;exports.FilterTypes=kg;exports.FollowerIcon=u0;exports.GauntletIcon=n0;exports.GemsCost=Tg;exports.InfoDoughnutChart=Wu;exports.InfoIcon=q1;exports.LandmarkIcon=f0;exports.LanguageSelection=nl;exports.LargeTable=Fa;exports.LeaderboardChart=hE;exports.LeaderboardDetailRow=Z1;exports.LeaderboardDetailTable=TE;exports.LeaderboardOptions=_E;exports.LeaderboardTop=dE;exports.LeaderboardTop10Region=J1;exports.LineChart=yE;exports.LogoIcon=ko;exports.ManaCurveChart=Gl;exports.ManaHexagonIcon=Cl;exports.MatchItem=cE;exports.ModalItem=Lr;exports.NavigationSide=m0;exports.NavigationTop=DE;exports.NavigationTopDesktop=X1;exports.NavigationTopMobile=g0;exports.OpenArchetypePageButton=L1;exports.OpenInDeckBuilderButton=Q1;exports.ProfileArchetypeRow=i0;exports.ProfileArchetypeTable=bE;exports.ProfileDropdown=UE;exports.ProfileGameTypeWinrate=RE;exports.ProfileRegionRow=s0;exports.ProfileRegionTable=wE;exports.RegionDistributionChart=$E;exports.RegionItem=Fl;exports.RegionsLine=Eg;exports.RevealCarousel=tg;exports.RevealDayOption=c0;exports.RevealDayOptions=xE;exports.RoundCardInfoBarChart=vE;exports.RuneterraIcon=P1;exports.SearchBar=Ed;exports.ShardsIcon=Fg;exports.ShareButton=R1;exports.SidePanelSectionPane=ut;exports.SimilarDecksTable=CE;exports.SimpleDoughnutChart=KE;exports.SimulateMulligan=M1;exports.SimulateMulliganButton=sf;exports.SmallTable=_i;exports.SocialLinks=gg;exports.SpellIcon=p0;exports.Spinner=xg;exports.StandardIcon=t0;exports.StatisticsPaneContainer=RA;exports.TestComponent=SE;exports.TippyText=xd;exports.ToastContainer=Vw;exports.ToggleSwitch=kl;exports.TournamentBracket=qE;exports.TournamentPlayerTable=WE;exports.TournamentSidePanel=XE;exports.TournamentSwissRound=YE;exports.TournamentSwissRoundOptions=GE;exports.TournamentTimeline=zE;exports.UpdateDeckPrivacyButton=N1;exports.UploadDeckToLorButton=of;exports.WinrateDoughnutChart=a0;exports.WinsLossesBarChart=gE;exports.WinsLossesLine=o0;exports.ZoomSlider=NE;exports.default=tpe;exports.getCardsFromDeck=ln;exports.getDate=_S;exports.getDeckObjectFromCode=Et;exports.getMostImportantCards=ya;exports.getRegionNameOfRegionRef=Tm;exports.getRegions=vl;exports.importIcons=DT;exports.keyDayjs=Nr;exports.regionOfCard=Im;exports.setupi18n=u5;exports.useAcquiredCardsStore=ld;exports.useCallbacksStore=_e;exports.useCardJsonObjectStore=mn;exports.useCardJsonStore=Zm;exports.useDataJsonStore=Be;exports.useFilterStore=UT;exports.useSearchBarOptionsStore=y_;exports.useToastsStore=Pp;exports.useUserStore=nn;
|