-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
3 lines (3 loc) · 359 KB
/
main.js
1
2
3
/*! For license information please see main.js.LICENSE.txt */
(()=>{"use strict";var t={770:(t,e,n)=>{n.d(e,{Z:()=>s});var i=n(537),r=n.n(i),a=n(645),o=n.n(a)()(r());o.push([t.id,"/* carousel related css */\n\n.carousel-container {\n padding: 1em;\n box-shadow: 0 2px 10px var(--lighter-shadow);\n display: grid;\n}\n\n.italic {\n font-style: italic;\n}\n\n.caption {\n text-transform: uppercase;\n}\n\n/* Carousel realted */\n.carousel {\n justify-self: center;\n position: relative;\n}\n\n.carousel-img {\n width: calc(70vw - 50px);\n height: calc(80vh - 50px);\n}\n\n/* all the anchor links */\na {\n text-decoration: none;\n}\n\n.arrow {\n align-self: center;\n padding: 1em;\n font-style: 1.5rem;\n\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n\n width: 50px;\n color: var(--lighter-grey);\n background-color: var(--light-purple);\n opacity: 0.5;\n text-align: center;\n}\n\n.arrow:hover {\n cursor: pointer;\n opacity: 0.8;\n}\n\n.arrow-right {\n right: 0;\n}\n\n/* media queries */\n@media screen and (max-width: 500px) {\n html {\n font-size: var(--font-small);\n }\n .carousel-img {\n width: calc(100vw - 50px);\n height: calc(50vh - 50px);\n }\n\n .arrow {\n width: 30px;\n }\n}\n","",{version:3,sources:["webpack://./src/css/carousel.css"],names:[],mappings:"AAAA,yBAAyB;;AAEzB;EACE,YAAY;EACZ,4CAA4C;EAC5C,aAAa;AACf;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,yBAAyB;AAC3B;;AAEA,qBAAqB;AACrB;EACE,oBAAoB;EACpB,kBAAkB;AACpB;;AAEA;EACE,wBAAwB;EACxB,yBAAyB;AAC3B;;AAEA,yBAAyB;AACzB;EACE,qBAAqB;AACvB;;AAEA;EACE,kBAAkB;EAClB,YAAY;EACZ,kBAAkB;;EAElB,kBAAkB;EAClB,QAAQ;EACR,2BAA2B;;EAE3B,WAAW;EACX,0BAA0B;EAC1B,qCAAqC;EACrC,YAAY;EACZ,kBAAkB;AACpB;;AAEA;EACE,eAAe;EACf,YAAY;AACd;;AAEA;EACE,QAAQ;AACV;;AAEA,kBAAkB;AAClB;EACE;IACE,4BAA4B;EAC9B;EACA;IACE,yBAAyB;IACzB,yBAAyB;EAC3B;;EAEA;IACE,WAAW;EACb;AACF",sourcesContent:["/* carousel related css */\n\n.carousel-container {\n padding: 1em;\n box-shadow: 0 2px 10px var(--lighter-shadow);\n display: grid;\n}\n\n.italic {\n font-style: italic;\n}\n\n.caption {\n text-transform: uppercase;\n}\n\n/* Carousel realted */\n.carousel {\n justify-self: center;\n position: relative;\n}\n\n.carousel-img {\n width: calc(70vw - 50px);\n height: calc(80vh - 50px);\n}\n\n/* all the anchor links */\na {\n text-decoration: none;\n}\n\n.arrow {\n align-self: center;\n padding: 1em;\n font-style: 1.5rem;\n\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n\n width: 50px;\n color: var(--lighter-grey);\n background-color: var(--light-purple);\n opacity: 0.5;\n text-align: center;\n}\n\n.arrow:hover {\n cursor: pointer;\n opacity: 0.8;\n}\n\n.arrow-right {\n right: 0;\n}\n\n/* media queries */\n@media screen and (max-width: 500px) {\n html {\n font-size: var(--font-small);\n }\n .carousel-img {\n width: calc(100vw - 50px);\n height: calc(50vh - 50px);\n }\n\n .arrow {\n width: 30px;\n }\n}\n"],sourceRoot:""}]);const s=o},211:(t,e,n)=>{n.d(e,{Z:()=>s});var i=n(537),r=n.n(i),a=n(645),o=n.n(a)()(r());o.push([t.id,"/* Charts related */\n\n.chart-container {\n display: grid;\n grid-template-columns: 1fr 1fr;\n box-shadow: 0 2px 5px var(--lighter-shadow);;\n}\n\n.charts-panel {\n text-transform: capitalize;\n display: grid;\n grid-template-rows: auto 1fr;\n}\n\n.chart-type-div {\n justify-self: end;\n}\n\n.chart-type {\n font-size: 0.6em;\n text-transform: uppercase;\n}\n\n.active-chart-type {\n color: var(--light-purple);\n}\n\n.chart-type:hover {\n color: var(--light-purple);\n cursor: pointer;\n}\n\n.separator {\n color: var(--darker-grey);\n}\n\n.basic-padding {\n padding: 1em;\n}\n\n/* Viewers Panel related */\n.viewers-panel {\n border-right: solid 1px var(--light-grey);\n}\n\n.viewers-panel-title {\n text-align: left;\n font-size: 1.1rem;\n color: var(--light-purple);\n font-weight: 700;\n padding-bottom: 1rem;\n}\n\n.view-distribution {\n margin: 10px;\n}\n\n.change-count {\n display: grid;\n align-items: center;\n font-size: 0.9em;\n grid-template-columns: 1fr auto;\n}\n","",{version:3,sources:["webpack://./src/css/charts.css"],names:[],mappings:"AAAA,mBAAmB;;AAEnB;EACE,aAAa;EACb,8BAA8B;EAC9B,2CAA2C;AAC7C;;AAEA;EACE,0BAA0B;EAC1B,aAAa;EACb,4BAA4B;AAC9B;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,gBAAgB;EAChB,yBAAyB;AAC3B;;AAEA;EACE,0BAA0B;AAC5B;;AAEA;EACE,0BAA0B;EAC1B,eAAe;AACjB;;AAEA;EACE,yBAAyB;AAC3B;;AAEA;EACE,YAAY;AACd;;AAEA,0BAA0B;AAC1B;EACE,yCAAyC;AAC3C;;AAEA;EACE,gBAAgB;EAChB,iBAAiB;EACjB,0BAA0B;EAC1B,gBAAgB;EAChB,oBAAoB;AACtB;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,gBAAgB;EAChB,+BAA+B;AACjC",sourcesContent:["/* Charts related */\n\n.chart-container {\n display: grid;\n grid-template-columns: 1fr 1fr;\n box-shadow: 0 2px 5px var(--lighter-shadow);;\n}\n\n.charts-panel {\n text-transform: capitalize;\n display: grid;\n grid-template-rows: auto 1fr;\n}\n\n.chart-type-div {\n justify-self: end;\n}\n\n.chart-type {\n font-size: 0.6em;\n text-transform: uppercase;\n}\n\n.active-chart-type {\n color: var(--light-purple);\n}\n\n.chart-type:hover {\n color: var(--light-purple);\n cursor: pointer;\n}\n\n.separator {\n color: var(--darker-grey);\n}\n\n.basic-padding {\n padding: 1em;\n}\n\n/* Viewers Panel related */\n.viewers-panel {\n border-right: solid 1px var(--light-grey);\n}\n\n.viewers-panel-title {\n text-align: left;\n font-size: 1.1rem;\n color: var(--light-purple);\n font-weight: 700;\n padding-bottom: 1rem;\n}\n\n.view-distribution {\n margin: 10px;\n}\n\n.change-count {\n display: grid;\n align-items: center;\n font-size: 0.9em;\n grid-template-columns: 1fr auto;\n}\n"],sourceRoot:""}]);const s=o},740:(t,e,n)=>{n.d(e,{Z:()=>s});var i=n(537),r=n.n(i),a=n(645),o=n.n(a)()(r());o.push([t.id,"@import url(https://fonts.googleapis.com/css?family=Poppins:100,300,400,500,700);"]),o.push([t.id,'* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\n:root {\n --font-small: 10px;\n --font-regular: 16px;\n --font-family: "Poppins", sans-serif;\n\n --font-weight-regular: 300;\n --font-weight-dark: 700;\n\n --darker-grey: #aaa;\n --dark-grey: #ccc;\n --light-grey: #eee;\n --lighter-grey: #fff;\n\n --light-purple: #ab14ab;\n --lighter-purple: #dd65dd;\n\n --light-shadow: rgba(0, 0, 0, 0.4);\n --lighter-shadow: rgba(0, 0, 0, 0.2);\n}\n\nhtml {\n font-size: var(--font-regular);\n font-family: var(--font-family);\n}\n\nheader {\n display: grid;\n background-color: var(--light-purple);\n color: var(--lighter-grey);\n\n grid-template-columns: 1fr;\n padding: 1rem;\n}\n\n.container {\n display: grid;\n grid-template-columns: 1fr;\n\n border: solid 1px var(--dark-grey);\n box-shadow: 3px 5px 22px var(--light-shadow);\n}\n\n/* title of the application related */\n.title {\n font-weight: var(--font-weight-dark);\n background-color: var(--light-purple);\n color: var(--lighter-grey);\n padding: 0.5rem;\n}\n\n.bold-title {\n font-weight: var(--font-weight-dark);\n}\n\ninput[type="text"] {\n padding: 1.9em;\n font-size: 0.7em;\n letter-spacing: 1px;\n}\n\n/* content div related */\n\n/* scroll bar related */\n::-webkit-scrollbar {\n width: 10px;\n}\n\n::-webkit-scrollbar-thumb {\n background-color: #ccc;\n border-radius: 8px;\n}\n\n/* Input type range related */\ninput[type="range"] {\n -webkit-appearance: none; /* Hides the slider so that custom slider can be made */\n width: 100%; /* Specific width is required for Firefox. */\n background: transparent; /* Otherwise white in Chrome */\n}\n\ninput[type="range"]::-webkit-slider-thumb {\n -webkit-appearance: none;\n}\n\ninput[type="range"]:focus {\n outline: none; /* Removes the blue border. You should probably do some kind of focus styling for accessibility reasons though. */\n}\n\n/* Special styling for WebKit/Blink */\ninput[type="range"]::-webkit-slider-thumb {\n height: 10px;\n width: 5px;\n background: var(--light-purple);\n cursor: pointer;\n margin-top: -5px;\n}\n\n/* All the same stuff for Firefox */\ninput[type="range"]::-moz-range-thumb {\n height: 10px;\n width: 5px;\n border: solid 1px var(--light-purple);\n background: var(--light-purple);\n cursor: pointer;\n}\n\ninput[type="range"]::-webkit-slider-runnable-track {\n width: 100%;\n height: 1px;\n cursor: pointer;\n background: var(--lighter-purple);\n}\n\ninput[type="range"]::-moz-range-track {\n width: 100%;\n cursor: pointer;\n background: var(--lighter-purple);\n}\n\n/* media queries */\n@media screen and (max-width: 500px) {\n html {\n font-size: var(--font-small);\n }\n .charts-panel {\n grid-template-columns: 1fr;\n }\n .viewers-panel {\n border-bottom: solid 1px var(--light-grey);\n }\n}\n',"",{version:3,sources:["webpack://./src/css/styles.css"],names:[],mappings:"AAEA;EACE,SAAS;EACT,UAAU;EACV,sBAAsB;AACxB;;AAEA;EACE,kBAAkB;EAClB,oBAAoB;EACpB,oCAAoC;;EAEpC,0BAA0B;EAC1B,uBAAuB;;EAEvB,mBAAmB;EACnB,iBAAiB;EACjB,kBAAkB;EAClB,oBAAoB;;EAEpB,uBAAuB;EACvB,yBAAyB;;EAEzB,kCAAkC;EAClC,oCAAoC;AACtC;;AAEA;EACE,8BAA8B;EAC9B,+BAA+B;AACjC;;AAEA;EACE,aAAa;EACb,qCAAqC;EACrC,0BAA0B;;EAE1B,0BAA0B;EAC1B,aAAa;AACf;;AAEA;EACE,aAAa;EACb,0BAA0B;;EAE1B,kCAAkC;EAClC,4CAA4C;AAC9C;;AAEA,qCAAqC;AACrC;EACE,oCAAoC;EACpC,qCAAqC;EACrC,0BAA0B;EAC1B,eAAe;AACjB;;AAEA;EACE,oCAAoC;AACtC;;AAEA;EACE,cAAc;EACd,gBAAgB;EAChB,mBAAmB;AACrB;;AAEA,wBAAwB;;AAExB,uBAAuB;AACvB;EACE,WAAW;AACb;;AAEA;EACE,sBAAsB;EACtB,kBAAkB;AACpB;;AAEA,6BAA6B;AAC7B;EACE,wBAAwB,EAAE,uDAAuD;EACjF,WAAW,EAAE,4CAA4C;EACzD,uBAAuB,EAAE,8BAA8B;AACzD;;AAEA;EACE,wBAAwB;AAC1B;;AAEA;EACE,aAAa,EAAE,iHAAiH;AAClI;;AAEA,qCAAqC;AACrC;EACE,YAAY;EACZ,UAAU;EACV,+BAA+B;EAC/B,eAAe;EACf,gBAAgB;AAClB;;AAEA,mCAAmC;AACnC;EACE,YAAY;EACZ,UAAU;EACV,qCAAqC;EACrC,+BAA+B;EAC/B,eAAe;AACjB;;AAEA;EACE,WAAW;EACX,WAAW;EACX,eAAe;EACf,iCAAiC;AACnC;;AAEA;EACE,WAAW;EACX,eAAe;EACf,iCAAiC;AACnC;;AAEA,kBAAkB;AAClB;EACE;IACE,4BAA4B;EAC9B;EACA;IACE,0BAA0B;EAC5B;EACA;IACE,0CAA0C;EAC5C;AACF",sourcesContent:['@import url("https://fonts.googleapis.com/css?family=Poppins:100,300,400,500,700");\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\n:root {\n --font-small: 10px;\n --font-regular: 16px;\n --font-family: "Poppins", sans-serif;\n\n --font-weight-regular: 300;\n --font-weight-dark: 700;\n\n --darker-grey: #aaa;\n --dark-grey: #ccc;\n --light-grey: #eee;\n --lighter-grey: #fff;\n\n --light-purple: #ab14ab;\n --lighter-purple: #dd65dd;\n\n --light-shadow: rgba(0, 0, 0, 0.4);\n --lighter-shadow: rgba(0, 0, 0, 0.2);\n}\n\nhtml {\n font-size: var(--font-regular);\n font-family: var(--font-family);\n}\n\nheader {\n display: grid;\n background-color: var(--light-purple);\n color: var(--lighter-grey);\n\n grid-template-columns: 1fr;\n padding: 1rem;\n}\n\n.container {\n display: grid;\n grid-template-columns: 1fr;\n\n border: solid 1px var(--dark-grey);\n box-shadow: 3px 5px 22px var(--light-shadow);\n}\n\n/* title of the application related */\n.title {\n font-weight: var(--font-weight-dark);\n background-color: var(--light-purple);\n color: var(--lighter-grey);\n padding: 0.5rem;\n}\n\n.bold-title {\n font-weight: var(--font-weight-dark);\n}\n\ninput[type="text"] {\n padding: 1.9em;\n font-size: 0.7em;\n letter-spacing: 1px;\n}\n\n/* content div related */\n\n/* scroll bar related */\n::-webkit-scrollbar {\n width: 10px;\n}\n\n::-webkit-scrollbar-thumb {\n background-color: #ccc;\n border-radius: 8px;\n}\n\n/* Input type range related */\ninput[type="range"] {\n -webkit-appearance: none; /* Hides the slider so that custom slider can be made */\n width: 100%; /* Specific width is required for Firefox. */\n background: transparent; /* Otherwise white in Chrome */\n}\n\ninput[type="range"]::-webkit-slider-thumb {\n -webkit-appearance: none;\n}\n\ninput[type="range"]:focus {\n outline: none; /* Removes the blue border. You should probably do some kind of focus styling for accessibility reasons though. */\n}\n\n/* Special styling for WebKit/Blink */\ninput[type="range"]::-webkit-slider-thumb {\n height: 10px;\n width: 5px;\n background: var(--light-purple);\n cursor: pointer;\n margin-top: -5px;\n}\n\n/* All the same stuff for Firefox */\ninput[type="range"]::-moz-range-thumb {\n height: 10px;\n width: 5px;\n border: solid 1px var(--light-purple);\n background: var(--light-purple);\n cursor: pointer;\n}\n\ninput[type="range"]::-webkit-slider-runnable-track {\n width: 100%;\n height: 1px;\n cursor: pointer;\n background: var(--lighter-purple);\n}\n\ninput[type="range"]::-moz-range-track {\n width: 100%;\n cursor: pointer;\n background: var(--lighter-purple);\n}\n\n/* media queries */\n@media screen and (max-width: 500px) {\n html {\n font-size: var(--font-small);\n }\n .charts-panel {\n grid-template-columns: 1fr;\n }\n .viewers-panel {\n border-bottom: solid 1px var(--light-grey);\n }\n}\n'],sourceRoot:""}]);const s=o},841:(t,e,n)=>{n.d(e,{Z:()=>s});var i=n(537),r=n.n(i),a=n(645),o=n.n(a)()(r());o.push([t.id,"/* Container related */\n.timeline-container {\n display: grid;\n grid-template-columns: 1fr auto;\n background-color: var(--light-black);\n\n font-weight: var(--font-weight-thin);\n overflow: hidden;\n}\n\n/* Aside related*/\n.aside {\n background-color: var(--light-purple);\n display: grid;\n grid-template-rows: 4fr auto auto;\n grid-template-columns: 1fr;\n grid-gap: 1rem;\n}\n\n.photo-div {\n margin-left: 2px;\n margin-top: 5px;\n cursor: pointer;\n}\n\n.photo-div:hover {\n opacity: 0.6;\n}\n\n.profile-photo {\n width: 45px;\n height: 45px;\n border-radius: 50%;\n}\n\n/* Icon related */\n.icon-block {\n display: block;\n text-align: center;\n padding: 1rem;\n cursor: pointer;\n}\n\n.icon-block:hover {\n opacity: 0.5;\n}\n\n/* section related */\n.section {\n display: grid;\n align-items: center;\n justify-items: center;\n overflow-y: scroll;\n}\n\n.timeline-title {\n justify-self: flex-start;\n padding-left: 1rem;\n padding-top: 1rem;\n}\n\n/* timeline related */\n.timeline-div {\n border-left: 1px solid var(--light-purple);\n position: relative;\n width: 84vw;\n}\n\n.timeframe {\n border: 2px solid var(--light-purple);\n background-color: var(--light-purple);\n color: var(--lighter-grey);\n\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n left: -26px;\n\n font-weight: 300;\n padding: 5px;\n\n width: 70px;\n height: 34px;\n}\n\n.timeframe:hover {\n opacity: 0.5;\n cursor: pointer;\n}\n\n.actions {\n padding: 2em 5em;\n font-weight: var(--font-weight-regular);\n}\n\nli {\n list-style: square;\n padding-top: 0.5em;\n}\n\nli:hover {\n opacity: 0.5;\n cursor: pointer;\n}\n\n.channel-metadata {\n color: var(--darker-grey);\n}\n\n/* media queries */\n@media screen and (max-width: 500px) {\n body {\n font-size: var(--font-small);\n }\n\n .title {\n font-size: 1.5em;\n width: 70vw;\n }\n\n .timeline-div {\n width: 57vw;\n }\n\n .timeframe {\n width: 40px;\n height: 30px;\n left: -23px;\n }\n}\n\n@media screen and (max-width: 320px) {\n .title {\n font-size: 1.5em;\n width: 76vw;\n }\n\n .timeline-div {\n width: 60vw;\n }\n\n .timeframe {\n width: 37px;\n height: 26px;\n left: -21px;\n }\n}\n","",{version:3,sources:["webpack://./src/css/timeline.css"],names:[],mappings:"AAAA,sBAAsB;AACtB;EACE,aAAa;EACb,+BAA+B;EAC/B,oCAAoC;;EAEpC,oCAAoC;EACpC,gBAAgB;AAClB;;AAEA,iBAAiB;AACjB;EACE,qCAAqC;EACrC,aAAa;EACb,iCAAiC;EACjC,0BAA0B;EAC1B,cAAc;AAChB;;AAEA;EACE,gBAAgB;EAChB,eAAe;EACf,eAAe;AACjB;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,WAAW;EACX,YAAY;EACZ,kBAAkB;AACpB;;AAEA,iBAAiB;AACjB;EACE,cAAc;EACd,kBAAkB;EAClB,aAAa;EACb,eAAe;AACjB;;AAEA;EACE,YAAY;AACd;;AAEA,oBAAoB;AACpB;EACE,aAAa;EACb,mBAAmB;EACnB,qBAAqB;EACrB,kBAAkB;AACpB;;AAEA;EACE,wBAAwB;EACxB,kBAAkB;EAClB,iBAAiB;AACnB;;AAEA,qBAAqB;AACrB;EACE,0CAA0C;EAC1C,kBAAkB;EAClB,WAAW;AACb;;AAEA;EACE,qCAAqC;EACrC,qCAAqC;EACrC,0BAA0B;;EAE1B,kBAAkB;EAClB,QAAQ;EACR,2BAA2B;EAC3B,WAAW;;EAEX,gBAAgB;EAChB,YAAY;;EAEZ,WAAW;EACX,YAAY;AACd;;AAEA;EACE,YAAY;EACZ,eAAe;AACjB;;AAEA;EACE,gBAAgB;EAChB,uCAAuC;AACzC;;AAEA;EACE,kBAAkB;EAClB,kBAAkB;AACpB;;AAEA;EACE,YAAY;EACZ,eAAe;AACjB;;AAEA;EACE,yBAAyB;AAC3B;;AAEA,kBAAkB;AAClB;EACE;IACE,4BAA4B;EAC9B;;EAEA;IACE,gBAAgB;IAChB,WAAW;EACb;;EAEA;IACE,WAAW;EACb;;EAEA;IACE,WAAW;IACX,YAAY;IACZ,WAAW;EACb;AACF;;AAEA;EACE;IACE,gBAAgB;IAChB,WAAW;EACb;;EAEA;IACE,WAAW;EACb;;EAEA;IACE,WAAW;IACX,YAAY;IACZ,WAAW;EACb;AACF",sourcesContent:["/* Container related */\n.timeline-container {\n display: grid;\n grid-template-columns: 1fr auto;\n background-color: var(--light-black);\n\n font-weight: var(--font-weight-thin);\n overflow: hidden;\n}\n\n/* Aside related*/\n.aside {\n background-color: var(--light-purple);\n display: grid;\n grid-template-rows: 4fr auto auto;\n grid-template-columns: 1fr;\n grid-gap: 1rem;\n}\n\n.photo-div {\n margin-left: 2px;\n margin-top: 5px;\n cursor: pointer;\n}\n\n.photo-div:hover {\n opacity: 0.6;\n}\n\n.profile-photo {\n width: 45px;\n height: 45px;\n border-radius: 50%;\n}\n\n/* Icon related */\n.icon-block {\n display: block;\n text-align: center;\n padding: 1rem;\n cursor: pointer;\n}\n\n.icon-block:hover {\n opacity: 0.5;\n}\n\n/* section related */\n.section {\n display: grid;\n align-items: center;\n justify-items: center;\n overflow-y: scroll;\n}\n\n.timeline-title {\n justify-self: flex-start;\n padding-left: 1rem;\n padding-top: 1rem;\n}\n\n/* timeline related */\n.timeline-div {\n border-left: 1px solid var(--light-purple);\n position: relative;\n width: 84vw;\n}\n\n.timeframe {\n border: 2px solid var(--light-purple);\n background-color: var(--light-purple);\n color: var(--lighter-grey);\n\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n left: -26px;\n\n font-weight: 300;\n padding: 5px;\n\n width: 70px;\n height: 34px;\n}\n\n.timeframe:hover {\n opacity: 0.5;\n cursor: pointer;\n}\n\n.actions {\n padding: 2em 5em;\n font-weight: var(--font-weight-regular);\n}\n\nli {\n list-style: square;\n padding-top: 0.5em;\n}\n\nli:hover {\n opacity: 0.5;\n cursor: pointer;\n}\n\n.channel-metadata {\n color: var(--darker-grey);\n}\n\n/* media queries */\n@media screen and (max-width: 500px) {\n body {\n font-size: var(--font-small);\n }\n\n .title {\n font-size: 1.5em;\n width: 70vw;\n }\n\n .timeline-div {\n width: 57vw;\n }\n\n .timeframe {\n width: 40px;\n height: 30px;\n left: -23px;\n }\n}\n\n@media screen and (max-width: 320px) {\n .title {\n font-size: 1.5em;\n width: 76vw;\n }\n\n .timeline-div {\n width: 60vw;\n }\n\n .timeframe {\n width: 37px;\n height: 26px;\n left: -21px;\n }\n}\n"],sourceRoot:""}]);const s=o},645:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",i=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),i&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),i&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,i,r,a){"string"==typeof t&&(t=[[null,t,void 0]]);var o={};if(i)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(o[l]=!0)}for(var c=0;c<t.length;c++){var u=[].concat(t[c]);i&&o[u[0]]||(void 0!==a&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=a),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),e.push(u))}},e}},537:t=>{t.exports=function(t){var e=t[1],n=t[3];if(!n)return e;if("function"==typeof btoa){var i=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i),a="/*# ".concat(r," */"),o=n.sources.map((function(t){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(t," */")}));return[e].concat(o).concat([a]).join("\n")}return[e].join("\n")}},448:(t,e,n)=>{var i=n(294),r=n(840);function a(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,s={};function l(t,e){c(t,e),c(t+"Capture",e)}function c(t,e){for(s[t]=e,t=0;t<e.length;t++)o.add(e[t])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),h=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},p={};function g(t,e,n,i,r,a,o){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=a,this.removeEmptyString=o}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(t){m[t]=new g(t,0,!1,t,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(t){var e=t[0];m[e]=new g(e,1,!1,t[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(t){m[t]=new g(t,2,!1,t.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(t){m[t]=new g(t,2,!1,t,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(t){m[t]=new g(t,3,!1,t.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(t){m[t]=new g(t,3,!0,t,null,!1,!1)})),["capture","download"].forEach((function(t){m[t]=new g(t,4,!1,t,null,!1,!1)})),["cols","rows","size","span"].forEach((function(t){m[t]=new g(t,6,!1,t,null,!1,!1)})),["rowSpan","start"].forEach((function(t){m[t]=new g(t,5,!1,t.toLowerCase(),null,!1,!1)}));var b=/[\-:]([a-z])/g;function y(t){return t[1].toUpperCase()}function v(t,e,n,i){var r=m.hasOwnProperty(e)?m[e]:null;(null!==r?0!==r.type:i||!(2<e.length)||"o"!==e[0]&&"O"!==e[0]||"n"!==e[1]&&"N"!==e[1])&&(function(t,e,n,i){if(null==e||function(t,e,n,i){if(null!==n&&0===n.type)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return!i&&(null!==n?!n.acceptsBooleans:"data-"!==(t=t.toLowerCase().slice(0,5))&&"aria-"!==t);default:return!1}}(t,e,n,i))return!0;if(i)return!1;if(null!==n)switch(n.type){case 3:return!e;case 4:return!1===e;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}(e,n,r,i)&&(n=null),i||null===r?function(t){return!!h.call(p,t)||!h.call(f,t)&&(d.test(t)?p[t]=!0:(f[t]=!0,!1))}(e)&&(null===n?t.removeAttribute(e):t.setAttribute(e,""+n)):r.mustUseProperty?t[r.propertyName]=null===n?3!==r.type&&"":n:(e=r.attributeName,i=r.attributeNamespace,null===n?t.removeAttribute(e):(n=3===(r=r.type)||4===r&&!0===n?"":""+n,i?t.setAttributeNS(i,e,n):t.setAttribute(e,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(t){var e=t.replace(b,y);m[e]=new g(e,1,!1,t,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(t){var e=t.replace(b,y);m[e]=new g(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(t){var e=t.replace(b,y);m[e]=new g(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(t){m[t]=new g(t,1,!1,t.toLowerCase(),null,!1,!1)})),m.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(t){m[t]=new g(t,1,!1,t.toLowerCase(),null,!0,!0)}));var x=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.element"),A=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),S=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),D=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var O=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var L=Symbol.iterator;function z(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=L&&t[L]||t["@@iterator"])?t:null}var R,N=Object.assign;function I(t){if(void 0===R)try{throw Error()}catch(t){var e=t.stack.trim().match(/\n( *(at )?)/);R=e&&e[1]||""}return"\n"+R+t}var F=!1;function j(t,e){if(!t||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(e,[])}catch(t){var i=t}Reflect.construct(t,[],e)}else{try{e.call()}catch(t){i=t}t.call(e.prototype)}else{try{throw Error()}catch(t){i=t}t()}}catch(e){if(e&&i&&"string"==typeof e.stack){for(var r=e.stack.split("\n"),a=i.stack.split("\n"),o=r.length-1,s=a.length-1;1<=o&&0<=s&&r[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(r[o]!==a[s]){if(1!==o||1!==s)do{if(o--,0>--s||r[o]!==a[s]){var l="\n"+r[o].replace(" at new "," at ");return t.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",t.displayName)),l}}while(1<=o&&0<=s);break}}}finally{F=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?I(t):""}function W(t){switch(t.tag){case 5:return I(t.type);case 16:return I("Lazy");case 13:return I("Suspense");case 19:return I("SuspenseList");case 0:case 2:case 15:return j(t.type,!1);case 11:return j(t.type.render,!1);case 1:return j(t.type,!0);default:return""}}function V(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case w:return"Fragment";case A:return"Portal";case C:return"Profiler";case k:return"StrictMode";case P:return"Suspense";case B:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case S:return(t.displayName||"Context")+".Consumer";case E:return(t._context.displayName||"Context")+".Provider";case M:var e=t.render;return(t=t.displayName)||(t=""!==(t=e.displayName||e.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case T:return null!==(e=t.displayName||null)?e:V(t.type)||"Memo";case D:e=t._payload,t=t._init;try{return V(t(e))}catch(t){}}return null}function H(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=(t=e.render).displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return V(e);case 8:return e===k?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e}return null}function U(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":case"object":return t;default:return""}}function $(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function Y(t){t._valueTracker||(t._valueTracker=function(t){var e=$(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),i=""+t[e];if(!t.hasOwnProperty(e)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var r=n.get,a=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(t){i=""+t,a.call(this,t)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(t){i=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}(t))}function q(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=$(t)?t.checked?"true":"false":t.value),(t=i)!==n&&(e.setValue(t),!0)}function Q(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}function X(t,e){var n=e.checked;return N({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:t._wrapperState.initialChecked})}function K(t,e){var n=null==e.defaultValue?"":e.defaultValue,i=null!=e.checked?e.checked:e.defaultChecked;n=U(null!=e.value?e.value:n),t._wrapperState={initialChecked:i,initialValue:n,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function Z(t,e){null!=(e=e.checked)&&v(t,"checked",e,!1)}function G(t,e){Z(t,e);var n=U(e.value),i=e.type;if(null!=n)"number"===i?(0===n&&""===t.value||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if("submit"===i||"reset"===i)return void t.removeAttribute("value");e.hasOwnProperty("value")?tt(t,e.type,n):e.hasOwnProperty("defaultValue")&&tt(t,e.type,U(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function J(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var i=e.type;if(!("submit"!==i&&"reset"!==i||void 0!==e.value&&null!==e.value))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}""!==(n=t.name)&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,""!==n&&(t.name=n)}function tt(t,e,n){"number"===e&&Q(t.ownerDocument)===t||(null==n?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var et=Array.isArray;function nt(t,e,n,i){if(t=t.options,e){e={};for(var r=0;r<n.length;r++)e["$"+n[r]]=!0;for(n=0;n<t.length;n++)r=e.hasOwnProperty("$"+t[n].value),t[n].selected!==r&&(t[n].selected=r),r&&i&&(t[n].defaultSelected=!0)}else{for(n=""+U(n),e=null,r=0;r<t.length;r++){if(t[r].value===n)return t[r].selected=!0,void(i&&(t[r].defaultSelected=!0));null!==e||t[r].disabled||(e=t[r])}null!==e&&(e.selected=!0)}}function it(t,e){if(null!=e.dangerouslySetInnerHTML)throw Error(a(91));return N({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function rt(t,e){var n=e.value;if(null==n){if(n=e.children,e=e.defaultValue,null!=n){if(null!=e)throw Error(a(92));if(et(n)){if(1<n.length)throw Error(a(93));n=n[0]}e=n}null==e&&(e=""),n=e}t._wrapperState={initialValue:U(n)}}function at(t,e){var n=U(e.value),i=U(e.defaultValue);null!=n&&((n=""+n)!==t.value&&(t.value=n),null==e.defaultValue&&t.defaultValue!==n&&(t.defaultValue=n)),null!=i&&(t.defaultValue=""+i)}function ot(t){var e=t.textContent;e===t._wrapperState.initialValue&&""!==e&&null!==e&&(t.value=e)}function st(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function lt(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?st(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}var ct,ut,ht=(ut=function(t,e){if("http://www.w3.org/2000/svg"!==t.namespaceURI||"innerHTML"in t)t.innerHTML=e;else{for((ct=ct||document.createElement("div")).innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=ct.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,e,n,i){MSApp.execUnsafeLocalFunction((function(){return ut(t,e)}))}:ut);function dt(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e}var ft={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pt=["Webkit","ms","Moz","O"];function gt(t,e,n){return null==e||"boolean"==typeof e||""===e?"":n||"number"!=typeof e||0===e||ft.hasOwnProperty(t)&&ft[t]?(""+e).trim():e+"px"}function mt(t,e){for(var n in t=t.style,e)if(e.hasOwnProperty(n)){var i=0===n.indexOf("--"),r=gt(n,e[n],i);"float"===n&&(n="cssFloat"),i?t.setProperty(n,r):t[n]=r}}Object.keys(ft).forEach((function(t){pt.forEach((function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),ft[e]=ft[t]}))}));var bt=N({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function yt(t,e){if(e){if(bt[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML))throw Error(a(137,t));if(null!=e.dangerouslySetInnerHTML){if(null!=e.children)throw Error(a(60));if("object"!=typeof e.dangerouslySetInnerHTML||!("__html"in e.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=e.style&&"object"!=typeof e.style)throw Error(a(62))}}function vt(t,e){if(-1===t.indexOf("-"))return"string"==typeof e.is;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xt=null;function _t(t){return(t=t.target||t.srcElement||window).correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}var At=null,wt=null,kt=null;function Ct(t){if(t=vr(t)){if("function"!=typeof At)throw Error(a(280));var e=t.stateNode;e&&(e=_r(e),At(t.stateNode,t.type,e))}}function Et(t){wt?kt?kt.push(t):kt=[t]:wt=t}function St(){if(wt){var t=wt,e=kt;if(kt=wt=null,Ct(t),e)for(t=0;t<e.length;t++)Ct(e[t])}}function Mt(t,e){return t(e)}function Pt(){}var Bt=!1;function Tt(t,e,n){if(Bt)return t(e,n);Bt=!0;try{return Mt(t,e,n)}finally{Bt=!1,(null!==wt||null!==kt)&&(Pt(),St())}}function Dt(t,e){var n=t.stateNode;if(null===n)return null;var i=_r(n);if(null===i)return null;n=i[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(i=!("button"===(t=t.type)||"input"===t||"select"===t||"textarea"===t)),t=!i;break t;default:t=!1}if(t)return null;if(n&&"function"!=typeof n)throw Error(a(231,e,typeof n));return n}var Ot=!1;if(u)try{var Lt={};Object.defineProperty(Lt,"passive",{get:function(){Ot=!0}}),window.addEventListener("test",Lt,Lt),window.removeEventListener("test",Lt,Lt)}catch(ut){Ot=!1}function zt(t,e,n,i,r,a,o,s,l){var c=Array.prototype.slice.call(arguments,3);try{e.apply(n,c)}catch(t){this.onError(t)}}var Rt=!1,Nt=null,It=!1,Ft=null,jt={onError:function(t){Rt=!0,Nt=t}};function Wt(t,e,n,i,r,a,o,s,l){Rt=!1,Nt=null,zt.apply(jt,arguments)}function Vt(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do{0!=(4098&(e=t).flags)&&(n=e.return),t=e.return}while(t)}return 3===e.tag?n:null}function Ht(t){if(13===t.tag){var e=t.memoizedState;if(null===e&&null!==(t=t.alternate)&&(e=t.memoizedState),null!==e)return e.dehydrated}return null}function Ut(t){if(Vt(t)!==t)throw Error(a(188))}function $t(t){return null!==(t=function(t){var e=t.alternate;if(!e){if(null===(e=Vt(t)))throw Error(a(188));return e!==t?null:t}for(var n=t,i=e;;){var r=n.return;if(null===r)break;var o=r.alternate;if(null===o){if(null!==(i=r.return)){n=i;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===n)return Ut(r),t;if(o===i)return Ut(r),e;o=o.sibling}throw Error(a(188))}if(n.return!==i.return)n=r,i=o;else{for(var s=!1,l=r.child;l;){if(l===n){s=!0,n=r,i=o;break}if(l===i){s=!0,i=r,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,i=r;break}if(l===i){s=!0,i=o,n=r;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==i)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?t:e}(t))?Yt(t):null}function Yt(t){if(5===t.tag||6===t.tag)return t;for(t=t.child;null!==t;){var e=Yt(t);if(null!==e)return e;t=t.sibling}return null}var qt=r.unstable_scheduleCallback,Qt=r.unstable_cancelCallback,Xt=r.unstable_shouldYield,Kt=r.unstable_requestPaint,Zt=r.unstable_now,Gt=r.unstable_getCurrentPriorityLevel,Jt=r.unstable_ImmediatePriority,te=r.unstable_UserBlockingPriority,ee=r.unstable_NormalPriority,ne=r.unstable_LowPriority,ie=r.unstable_IdlePriority,re=null,ae=null,oe=Math.clz32?Math.clz32:function(t){return 0==(t>>>=0)?32:31-(se(t)/le|0)|0},se=Math.log,le=Math.LN2,ce=64,ue=4194304;function he(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&t;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&t;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function de(t,e){var n=t.pendingLanes;if(0===n)return 0;var i=0,r=t.suspendedLanes,a=t.pingedLanes,o=268435455&n;if(0!==o){var s=o&~r;0!==s?i=he(s):0!=(a&=o)&&(i=he(a))}else 0!=(o=n&~r)?i=he(o):0!==a&&(i=he(a));if(0===i)return 0;if(0!==e&&e!==i&&0==(e&r)&&((r=i&-i)>=(a=e&-e)||16===r&&0!=(4194240&a)))return e;if(0!=(4&i)&&(i|=16&n),0!==(e=t.entangledLanes))for(t=t.entanglements,e&=i;0<e;)r=1<<(n=31-oe(e)),i|=t[n],e&=~r;return i}function fe(t,e){switch(t){case 1:case 2:case 4:return e+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;default:return-1}}function pe(t){return 0!=(t=-1073741825&t.pendingLanes)?t:1073741824&t?1073741824:0}function ge(){var t=ce;return 0==(4194240&(ce<<=1))&&(ce=64),t}function me(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function be(t,e,n){t.pendingLanes|=e,536870912!==e&&(t.suspendedLanes=0,t.pingedLanes=0),(t=t.eventTimes)[e=31-oe(e)]=n}function ye(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var i=31-oe(n),r=1<<i;r&e|t[i]&e&&(t[i]|=e),n&=~r}}var ve=0;function xe(t){return 1<(t&=-t)?4<t?0!=(268435455&t)?16:536870912:4:1}var _e,Ae,we,ke,Ce,Ee=!1,Se=[],Me=null,Pe=null,Be=null,Te=new Map,De=new Map,Oe=[],Le="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ze(t,e){switch(t){case"focusin":case"focusout":Me=null;break;case"dragenter":case"dragleave":Pe=null;break;case"mouseover":case"mouseout":Be=null;break;case"pointerover":case"pointerout":Te.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":De.delete(e.pointerId)}}function Re(t,e,n,i,r,a){return null===t||t.nativeEvent!==a?(t={blockedOn:e,domEventName:n,eventSystemFlags:i,nativeEvent:a,targetContainers:[r]},null!==e&&null!==(e=vr(e))&&Ae(e),t):(t.eventSystemFlags|=i,e=t.targetContainers,null!==r&&-1===e.indexOf(r)&&e.push(r),t)}function Ne(t){var e=yr(t.target);if(null!==e){var n=Vt(e);if(null!==n)if(13===(e=n.tag)){if(null!==(e=Ht(n)))return t.blockedOn=e,void Ce(t.priority,(function(){we(n)}))}else if(3===e&&n.stateNode.current.memoizedState.isDehydrated)return void(t.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}t.blockedOn=null}function Ie(t){if(null!==t.blockedOn)return!1;for(var e=t.targetContainers;0<e.length;){var n=Xe(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(null!==n)return null!==(e=vr(n))&&Ae(e),t.blockedOn=n,!1;var i=new(n=t.nativeEvent).constructor(n.type,n);xt=i,n.target.dispatchEvent(i),xt=null,e.shift()}return!0}function Fe(t,e,n){Ie(t)&&n.delete(e)}function je(){Ee=!1,null!==Me&&Ie(Me)&&(Me=null),null!==Pe&&Ie(Pe)&&(Pe=null),null!==Be&&Ie(Be)&&(Be=null),Te.forEach(Fe),De.forEach(Fe)}function We(t,e){t.blockedOn===e&&(t.blockedOn=null,Ee||(Ee=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,je)))}function Ve(t){function e(e){return We(e,t)}if(0<Se.length){We(Se[0],t);for(var n=1;n<Se.length;n++){var i=Se[n];i.blockedOn===t&&(i.blockedOn=null)}}for(null!==Me&&We(Me,t),null!==Pe&&We(Pe,t),null!==Be&&We(Be,t),Te.forEach(e),De.forEach(e),n=0;n<Oe.length;n++)(i=Oe[n]).blockedOn===t&&(i.blockedOn=null);for(;0<Oe.length&&null===(n=Oe[0]).blockedOn;)Ne(n),null===n.blockedOn&&Oe.shift()}var He=x.ReactCurrentBatchConfig,Ue=!0;function $e(t,e,n,i){var r=ve,a=He.transition;He.transition=null;try{ve=1,qe(t,e,n,i)}finally{ve=r,He.transition=a}}function Ye(t,e,n,i){var r=ve,a=He.transition;He.transition=null;try{ve=4,qe(t,e,n,i)}finally{ve=r,He.transition=a}}function qe(t,e,n,i){if(Ue){var r=Xe(t,e,n,i);if(null===r)Ui(t,e,i,Qe,n),ze(t,i);else if(function(t,e,n,i,r){switch(e){case"focusin":return Me=Re(Me,t,e,n,i,r),!0;case"dragenter":return Pe=Re(Pe,t,e,n,i,r),!0;case"mouseover":return Be=Re(Be,t,e,n,i,r),!0;case"pointerover":var a=r.pointerId;return Te.set(a,Re(Te.get(a)||null,t,e,n,i,r)),!0;case"gotpointercapture":return a=r.pointerId,De.set(a,Re(De.get(a)||null,t,e,n,i,r)),!0}return!1}(r,t,e,n,i))i.stopPropagation();else if(ze(t,i),4&e&&-1<Le.indexOf(t)){for(;null!==r;){var a=vr(r);if(null!==a&&_e(a),null===(a=Xe(t,e,n,i))&&Ui(t,e,i,Qe,n),a===r)break;r=a}null!==r&&i.stopPropagation()}else Ui(t,e,i,null,n)}}var Qe=null;function Xe(t,e,n,i){if(Qe=null,null!==(t=yr(t=_t(i))))if(null===(e=Vt(t)))t=null;else if(13===(n=e.tag)){if(null!==(t=Ht(e)))return t;t=null}else if(3===n){if(e.stateNode.current.memoizedState.isDehydrated)return 3===e.tag?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return Qe=t,null}function Ke(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Gt()){case Jt:return 1;case te:return 4;case ee:case ne:return 16;case ie:return 536870912;default:return 16}default:return 16}}var Ze=null,Ge=null,Je=null;function tn(){if(Je)return Je;var t,e,n=Ge,i=n.length,r="value"in Ze?Ze.value:Ze.textContent,a=r.length;for(t=0;t<i&&n[t]===r[t];t++);var o=i-t;for(e=1;e<=o&&n[i-e]===r[a-e];e++);return Je=r.slice(t,1<e?1-e:void 0)}function en(t){var e=t.keyCode;return"charCode"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,10===t&&(t=13),32<=t||13===t?t:0}function nn(){return!0}function rn(){return!1}function an(t){function e(e,n,i,r,a){for(var o in this._reactName=e,this._targetInst=i,this.type=n,this.nativeEvent=r,this.target=a,this.currentTarget=null,t)t.hasOwnProperty(o)&&(e=t[o],this[o]=e?e(r):r[o]);return this.isDefaultPrevented=(null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return N(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),e}var on,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=an(cn),hn=N({},cn,{view:0,detail:0}),dn=an(hn),fn=N({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(t){return void 0===t.relatedTarget?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==ln&&(ln&&"mousemove"===t.type?(on=t.screenX-ln.screenX,sn=t.screenY-ln.screenY):sn=on=0,ln=t),on)},movementY:function(t){return"movementY"in t?t.movementY:sn}}),pn=an(fn),gn=an(N({},fn,{dataTransfer:0})),mn=an(N({},hn,{relatedTarget:0})),bn=an(N({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=N({},cn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),vn=an(yn),xn=an(N({},cn,{data:0})),_n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},An={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},wn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):!!(t=wn[t])&&!!e[t]}function Cn(){return kn}var En=N({},hn,{key:function(t){if(t.key){var e=_n[t.key]||t.key;if("Unidentified"!==e)return e}return"keypress"===t.type?13===(t=en(t))?"Enter":String.fromCharCode(t):"keydown"===t.type||"keyup"===t.type?An[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(t){return"keypress"===t.type?en(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?en(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}}),Sn=an(En),Mn=an(N({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=an(N({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Bn=an(N({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Tn=N({},fn,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Dn=an(Tn),On=[9,13,27,32],Ln=u&&"CompositionEvent"in window,zn=null;u&&"documentMode"in document&&(zn=document.documentMode);var Rn=u&&"TextEvent"in window&&!zn,Nn=u&&(!Ln||zn&&8<zn&&11>=zn),In=String.fromCharCode(32),Fn=!1;function jn(t,e){switch(t){case"keyup":return-1!==On.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wn(t){return"object"==typeof(t=t.detail)&&"data"in t?t.data:null}var Vn=!1,Hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Un(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!Hn[t.type]:"textarea"===e}function $n(t,e,n,i){Et(i),0<(e=Yi(e,"onChange")).length&&(n=new un("onChange","change",null,n,i),t.push({event:n,listeners:e}))}var Yn=null,qn=null;function Qn(t){Ii(t,0)}function Xn(t){if(q(xr(t)))return t}function Kn(t,e){if("change"===t)return e}var Zn=!1;if(u){var Gn;if(u){var Jn="oninput"in document;if(!Jn){var ti=document.createElement("div");ti.setAttribute("oninput","return;"),Jn="function"==typeof ti.oninput}Gn=Jn}else Gn=!1;Zn=Gn&&(!document.documentMode||9<document.documentMode)}function ei(){Yn&&(Yn.detachEvent("onpropertychange",ni),qn=Yn=null)}function ni(t){if("value"===t.propertyName&&Xn(qn)){var e=[];$n(e,qn,t,_t(t)),Tt(Qn,e)}}function ii(t,e,n){"focusin"===t?(ei(),qn=n,(Yn=e).attachEvent("onpropertychange",ni)):"focusout"===t&&ei()}function ri(t){if("selectionchange"===t||"keyup"===t||"keydown"===t)return Xn(qn)}function ai(t,e){if("click"===t)return Xn(e)}function oi(t,e){if("input"===t||"change"===t)return Xn(e)}var si="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e};function li(t,e){if(si(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var r=n[i];if(!h.call(e,r)||!si(t[r],e[r]))return!1}return!0}function ci(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function ui(t,e){var n,i=ci(t);for(t=0;i;){if(3===i.nodeType){if(n=t+i.textContent.length,t<=e&&n>=e)return{node:i,offset:e-t};t=n}t:{for(;i;){if(i.nextSibling){i=i.nextSibling;break t}i=i.parentNode}i=void 0}i=ci(i)}}function hi(t,e){return!(!t||!e)&&(t===e||(!t||3!==t.nodeType)&&(e&&3===e.nodeType?hi(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}function di(){for(var t=window,e=Q();e instanceof t.HTMLIFrameElement;){try{var n="string"==typeof e.contentWindow.location.href}catch(t){n=!1}if(!n)break;e=Q((t=e.contentWindow).document)}return e}function fi(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&("text"===t.type||"search"===t.type||"tel"===t.type||"url"===t.type||"password"===t.type)||"textarea"===e||"true"===t.contentEditable)}function pi(t){var e=di(),n=t.focusedElem,i=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&hi(n.ownerDocument.documentElement,n)){if(null!==i&&fi(n))if(e=i.start,void 0===(t=i.end)&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if((t=(e=n.ownerDocument||document)&&e.defaultView||window).getSelection){t=t.getSelection();var r=n.textContent.length,a=Math.min(i.start,r);i=void 0===i.end?a:Math.min(i.end,r),!t.extend&&a>i&&(r=i,i=a,a=r),r=ui(n,a);var o=ui(n,i);r&&o&&(1!==t.rangeCount||t.anchorNode!==r.node||t.anchorOffset!==r.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&((e=e.createRange()).setStart(r.node,r.offset),t.removeAllRanges(),a>i?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}for(e=[],t=n;t=t.parentNode;)1===t.nodeType&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<e.length;n++)(t=e[n]).element.scrollLeft=t.left,t.element.scrollTop=t.top}}var gi=u&&"documentMode"in document&&11>=document.documentMode,mi=null,bi=null,yi=null,vi=!1;function xi(t,e,n){var i=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vi||null==mi||mi!==Q(i)||(i="selectionStart"in(i=mi)&&fi(i)?{start:i.selectionStart,end:i.selectionEnd}:{anchorNode:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset},yi&&li(yi,i)||(yi=i,0<(i=Yi(bi,"onSelect")).length&&(e=new un("onSelect","select",null,e,n),t.push({event:e,listeners:i}),e.target=mi)))}function _i(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Ai={animationend:_i("Animation","AnimationEnd"),animationiteration:_i("Animation","AnimationIteration"),animationstart:_i("Animation","AnimationStart"),transitionend:_i("Transition","TransitionEnd")},wi={},ki={};function Ci(t){if(wi[t])return wi[t];if(!Ai[t])return t;var e,n=Ai[t];for(e in n)if(n.hasOwnProperty(e)&&e in ki)return wi[t]=n[e];return t}u&&(ki=document.createElement("div").style,"AnimationEvent"in window||(delete Ai.animationend.animation,delete Ai.animationiteration.animation,delete Ai.animationstart.animation),"TransitionEvent"in window||delete Ai.transitionend.transition);var Ei=Ci("animationend"),Si=Ci("animationiteration"),Mi=Ci("animationstart"),Pi=Ci("transitionend"),Bi=new Map,Ti="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Di(t,e){Bi.set(t,e),l(e,[t])}for(var Oi=0;Oi<Ti.length;Oi++){var Li=Ti[Oi];Di(Li.toLowerCase(),"on"+(Li[0].toUpperCase()+Li.slice(1)))}Di(Ei,"onAnimationEnd"),Di(Si,"onAnimationIteration"),Di(Mi,"onAnimationStart"),Di("dblclick","onDoubleClick"),Di("focusin","onFocus"),Di("focusout","onBlur"),Di(Pi,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ri=new Set("cancel close invalid load scroll toggle".split(" ").concat(zi));function Ni(t,e,n){var i=t.type||"unknown-event";t.currentTarget=n,function(t,e,n,i,r,o,s,l,c){if(Wt.apply(this,arguments),Rt){if(!Rt)throw Error(a(198));var u=Nt;Rt=!1,Nt=null,It||(It=!0,Ft=u)}}(i,e,void 0,t),t.currentTarget=null}function Ii(t,e){e=0!=(4&e);for(var n=0;n<t.length;n++){var i=t[n],r=i.event;i=i.listeners;t:{var a=void 0;if(e)for(var o=i.length-1;0<=o;o--){var s=i[o],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==a&&r.isPropagationStopped())break t;Ni(r,s,c),a=l}else for(o=0;o<i.length;o++){if(l=(s=i[o]).instance,c=s.currentTarget,s=s.listener,l!==a&&r.isPropagationStopped())break t;Ni(r,s,c),a=l}}}if(It)throw t=Ft,It=!1,Ft=null,t}function Fi(t,e){var n=e[gr];void 0===n&&(n=e[gr]=new Set);var i=t+"__bubble";n.has(i)||(Hi(e,t,2,!1),n.add(i))}function ji(t,e,n){var i=0;e&&(i|=4),Hi(n,t,i,e)}var Wi="_reactListening"+Math.random().toString(36).slice(2);function Vi(t){if(!t[Wi]){t[Wi]=!0,o.forEach((function(e){"selectionchange"!==e&&(Ri.has(e)||ji(e,!1,t),ji(e,!0,t))}));var e=9===t.nodeType?t:t.ownerDocument;null===e||e[Wi]||(e[Wi]=!0,ji("selectionchange",!1,e))}}function Hi(t,e,n,i){switch(Ke(e)){case 1:var r=$e;break;case 4:r=Ye;break;default:r=qe}n=r.bind(null,e,n,t),r=void 0,!Ot||"touchstart"!==e&&"touchmove"!==e&&"wheel"!==e||(r=!0),i?void 0!==r?t.addEventListener(e,n,{capture:!0,passive:r}):t.addEventListener(e,n,!0):void 0!==r?t.addEventListener(e,n,{passive:r}):t.addEventListener(e,n,!1)}function Ui(t,e,n,i,r){var a=i;if(0==(1&e)&&0==(2&e)&&null!==i)t:for(;;){if(null===i)return;var o=i.tag;if(3===o||4===o){var s=i.stateNode.containerInfo;if(s===r||8===s.nodeType&&s.parentNode===r)break;if(4===o)for(o=i.return;null!==o;){var l=o.tag;if((3===l||4===l)&&((l=o.stateNode.containerInfo)===r||8===l.nodeType&&l.parentNode===r))return;o=o.return}for(;null!==s;){if(null===(o=yr(s)))return;if(5===(l=o.tag)||6===l){i=a=o;continue t}s=s.parentNode}}i=i.return}Tt((function(){var i=a,r=_t(n),o=[];t:{var s=Bi.get(t);if(void 0!==s){var l=un,c=t;switch(t){case"keypress":if(0===en(n))break t;case"keydown":case"keyup":l=Sn;break;case"focusin":c="focus",l=mn;break;case"focusout":c="blur",l=mn;break;case"beforeblur":case"afterblur":l=mn;break;case"click":if(2===n.button)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Pn;break;case Ei:case Si:case Mi:l=bn;break;case Pi:l=Bn;break;case"scroll":l=dn;break;case"wheel":l=Dn;break;case"copy":case"cut":case"paste":l=vn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Mn}var u=0!=(4&e),h=!u&&"scroll"===t,d=u?null!==s?s+"Capture":null:s;u=[];for(var f,p=i;null!==p;){var g=(f=p).stateNode;if(5===f.tag&&null!==g&&(f=g,null!==d&&null!=(g=Dt(p,d))&&u.push($i(p,g,f))),h)break;p=p.return}0<u.length&&(s=new l(s,c,null,n,r),o.push({event:s,listeners:u}))}}if(0==(7&e)){if(l="mouseout"===t||"pointerout"===t,(!(s="mouseover"===t||"pointerover"===t)||n===xt||!(c=n.relatedTarget||n.fromElement)||!yr(c)&&!c[pr])&&(l||s)&&(s=r.window===r?r:(s=r.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=i,null!==(c=(c=n.relatedTarget||n.toElement)?yr(c):null)&&(c!==(h=Vt(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=i),l!==c)){if(u=pn,g="onMouseLeave",d="onMouseEnter",p="mouse","pointerout"!==t&&"pointerover"!==t||(u=Mn,g="onPointerLeave",d="onPointerEnter",p="pointer"),h=null==l?s:xr(l),f=null==c?s:xr(c),(s=new u(g,p+"leave",l,n,r)).target=h,s.relatedTarget=f,g=null,yr(r)===i&&((u=new u(d,p+"enter",c,n,r)).target=f,u.relatedTarget=h,g=u),h=g,l&&c)t:{for(d=c,p=0,f=u=l;f;f=qi(f))p++;for(f=0,g=d;g;g=qi(g))f++;for(;0<p-f;)u=qi(u),p--;for(;0<f-p;)d=qi(d),f--;for(;p--;){if(u===d||null!==d&&u===d.alternate)break t;u=qi(u),d=qi(d)}u=null}else u=null;null!==l&&Qi(o,s,l,u,!1),null!==c&&null!==h&&Qi(o,h,c,u,!0)}if("select"===(l=(s=i?xr(i):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m=Kn;else if(Un(s))if(Zn)m=oi;else{m=ri;var b=ii}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=ai);switch(m&&(m=m(t,i))?$n(o,m,n,r):(b&&b(t,s,i),"focusout"===t&&(b=s._wrapperState)&&b.controlled&&"number"===s.type&&tt(s,"number",s.value)),b=i?xr(i):window,t){case"focusin":(Un(b)||"true"===b.contentEditable)&&(mi=b,bi=i,yi=null);break;case"focusout":yi=bi=mi=null;break;case"mousedown":vi=!0;break;case"contextmenu":case"mouseup":case"dragend":vi=!1,xi(o,n,r);break;case"selectionchange":if(gi)break;case"keydown":case"keyup":xi(o,n,r)}var y;if(Ln)t:{switch(t){case"compositionstart":var v="onCompositionStart";break t;case"compositionend":v="onCompositionEnd";break t;case"compositionupdate":v="onCompositionUpdate";break t}v=void 0}else Vn?jn(t,n)&&(v="onCompositionEnd"):"keydown"===t&&229===n.keyCode&&(v="onCompositionStart");v&&(Nn&&"ko"!==n.locale&&(Vn||"onCompositionStart"!==v?"onCompositionEnd"===v&&Vn&&(y=tn()):(Ge="value"in(Ze=r)?Ze.value:Ze.textContent,Vn=!0)),0<(b=Yi(i,v)).length&&(v=new xn(v,t,null,n,r),o.push({event:v,listeners:b}),(y||null!==(y=Wn(n)))&&(v.data=y))),(y=Rn?function(t,e){switch(t){case"compositionend":return Wn(e);case"keypress":return 32!==e.which?null:(Fn=!0,In);case"textInput":return(t=e.data)===In&&Fn?null:t;default:return null}}(t,n):function(t,e){if(Vn)return"compositionend"===t||!Ln&&jn(t,e)?(t=tn(),Je=Ge=Ze=null,Vn=!1,t):null;switch(t){case"paste":default:return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Nn&&"ko"!==e.locale?null:e.data}}(t,n))&&0<(i=Yi(i,"onBeforeInput")).length&&(r=new xn("onBeforeInput","beforeinput",null,n,r),o.push({event:r,listeners:i}),r.data=y)}Ii(o,e)}))}function $i(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Yi(t,e){for(var n=e+"Capture",i=[];null!==t;){var r=t,a=r.stateNode;5===r.tag&&null!==a&&(r=a,null!=(a=Dt(t,n))&&i.unshift($i(t,a,r)),null!=(a=Dt(t,e))&&i.push($i(t,a,r))),t=t.return}return i}function qi(t){if(null===t)return null;do{t=t.return}while(t&&5!==t.tag);return t||null}function Qi(t,e,n,i,r){for(var a=e._reactName,o=[];null!==n&&n!==i;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===i)break;5===s.tag&&null!==c&&(s=c,r?null!=(l=Dt(n,a))&&o.unshift($i(n,l,s)):r||null!=(l=Dt(n,a))&&o.push($i(n,l,s))),n=n.return}0!==o.length&&t.push({event:e,listeners:o})}var Xi=/\r\n?/g,Ki=/\u0000|\uFFFD/g;function Zi(t){return("string"==typeof t?t:""+t).replace(Xi,"\n").replace(Ki,"")}function Gi(t,e,n){if(e=Zi(e),Zi(t)!==e&&n)throw Error(a(425))}function Ji(){}var tr=null,er=null;function nr(t,e){return"textarea"===t||"noscript"===t||"string"==typeof e.children||"number"==typeof e.children||"object"==typeof e.dangerouslySetInnerHTML&&null!==e.dangerouslySetInnerHTML&&null!=e.dangerouslySetInnerHTML.__html}var ir="function"==typeof setTimeout?setTimeout:void 0,rr="function"==typeof clearTimeout?clearTimeout:void 0,ar="function"==typeof Promise?Promise:void 0,or="function"==typeof queueMicrotask?queueMicrotask:void 0!==ar?function(t){return ar.resolve(null).then(t).catch(sr)}:ir;function sr(t){setTimeout((function(){throw t}))}function lr(t,e){var n=e,i=0;do{var r=n.nextSibling;if(t.removeChild(n),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===i)return t.removeChild(r),void Ve(e);i--}else"$"!==n&&"$?"!==n&&"$!"!==n||i++;n=r}while(n);Ve(e)}function cr(t){for(;null!=t;t=t.nextSibling){var e=t.nodeType;if(1===e||3===e)break;if(8===e){if("$"===(e=t.data)||"$!"===e||"$?"===e)break;if("/$"===e)return null}}return t}function ur(t){t=t.previousSibling;for(var e=0;t;){if(8===t.nodeType){var n=t.data;if("$"===n||"$!"===n||"$?"===n){if(0===e)return t;e--}else"/$"===n&&e++}t=t.previousSibling}return null}var hr=Math.random().toString(36).slice(2),dr="__reactFiber$"+hr,fr="__reactProps$"+hr,pr="__reactContainer$"+hr,gr="__reactEvents$"+hr,mr="__reactListeners$"+hr,br="__reactHandles$"+hr;function yr(t){var e=t[dr];if(e)return e;for(var n=t.parentNode;n;){if(e=n[pr]||n[dr]){if(n=e.alternate,null!==e.child||null!==n&&null!==n.child)for(t=ur(t);null!==t;){if(n=t[dr])return n;t=ur(t)}return e}n=(t=n).parentNode}return null}function vr(t){return!(t=t[dr]||t[pr])||5!==t.tag&&6!==t.tag&&13!==t.tag&&3!==t.tag?null:t}function xr(t){if(5===t.tag||6===t.tag)return t.stateNode;throw Error(a(33))}function _r(t){return t[fr]||null}var Ar=[],wr=-1;function kr(t){return{current:t}}function Cr(t){0>wr||(t.current=Ar[wr],Ar[wr]=null,wr--)}function Er(t,e){wr++,Ar[wr]=t.current,t.current=e}var Sr={},Mr=kr(Sr),Pr=kr(!1),Br=Sr;function Tr(t,e){var n=t.type.contextTypes;if(!n)return Sr;var i=t.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===e)return i.__reactInternalMemoizedMaskedChildContext;var r,a={};for(r in n)a[r]=e[r];return i&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=a),a}function Dr(t){return null!=t.childContextTypes}function Or(){Cr(Pr),Cr(Mr)}function Lr(t,e,n){if(Mr.current!==Sr)throw Error(a(168));Er(Mr,e),Er(Pr,n)}function zr(t,e,n){var i=t.stateNode;if(e=e.childContextTypes,"function"!=typeof i.getChildContext)return n;for(var r in i=i.getChildContext())if(!(r in e))throw Error(a(108,H(t)||"Unknown",r));return N({},n,i)}function Rr(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Sr,Br=Mr.current,Er(Mr,t),Er(Pr,Pr.current),!0}function Nr(t,e,n){var i=t.stateNode;if(!i)throw Error(a(169));n?(t=zr(t,e,Br),i.__reactInternalMemoizedMergedChildContext=t,Cr(Pr),Cr(Mr),Er(Mr,t)):Cr(Pr),Er(Pr,n)}var Ir=null,Fr=!1,jr=!1;function Wr(t){null===Ir?Ir=[t]:Ir.push(t)}function Vr(){if(!jr&&null!==Ir){jr=!0;var t=0,e=ve;try{var n=Ir;for(ve=1;t<n.length;t++){var i=n[t];do{i=i(!0)}while(null!==i)}Ir=null,Fr=!1}catch(e){throw null!==Ir&&(Ir=Ir.slice(t+1)),qt(Jt,Vr),e}finally{ve=e,jr=!1}}return null}var Hr=[],Ur=0,$r=null,Yr=0,qr=[],Qr=0,Xr=null,Kr=1,Zr="";function Gr(t,e){Hr[Ur++]=Yr,Hr[Ur++]=$r,$r=t,Yr=e}function Jr(t,e,n){qr[Qr++]=Kr,qr[Qr++]=Zr,qr[Qr++]=Xr,Xr=t;var i=Kr;t=Zr;var r=32-oe(i)-1;i&=~(1<<r),n+=1;var a=32-oe(e)+r;if(30<a){var o=r-r%5;a=(i&(1<<o)-1).toString(32),i>>=o,r-=o,Kr=1<<32-oe(e)+r|n<<r|i,Zr=a+t}else Kr=1<<a|n<<r|i,Zr=t}function ta(t){null!==t.return&&(Gr(t,1),Jr(t,1,0))}function ea(t){for(;t===$r;)$r=Hr[--Ur],Hr[Ur]=null,Yr=Hr[--Ur],Hr[Ur]=null;for(;t===Xr;)Xr=qr[--Qr],qr[Qr]=null,Zr=qr[--Qr],qr[Qr]=null,Kr=qr[--Qr],qr[Qr]=null}var na=null,ia=null,ra=!1,aa=null;function oa(t,e){var n=Tc(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,null===(e=t.deletions)?(t.deletions=[n],t.flags|=16):e.push(n)}function sa(t,e){switch(t.tag){case 5:var n=t.type;return null!==(e=1!==e.nodeType||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e)&&(t.stateNode=e,na=t,ia=cr(e.firstChild),!0);case 6:return null!==(e=""===t.pendingProps||3!==e.nodeType?null:e)&&(t.stateNode=e,na=t,ia=null,!0);case 13:return null!==(e=8!==e.nodeType?null:e)&&(n=null!==Xr?{id:Kr,overflow:Zr}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},(n=Tc(18,null,null,0)).stateNode=e,n.return=t,t.child=n,na=t,ia=null,!0);default:return!1}}function la(t){return 0!=(1&t.mode)&&0==(128&t.flags)}function ca(t){if(ra){var e=ia;if(e){var n=e;if(!sa(t,e)){if(la(t))throw Error(a(418));e=cr(n.nextSibling);var i=na;e&&sa(t,e)?oa(i,n):(t.flags=-4097&t.flags|2,ra=!1,na=t)}}else{if(la(t))throw Error(a(418));t.flags=-4097&t.flags|2,ra=!1,na=t}}}function ua(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag&&13!==t.tag;)t=t.return;na=t}function ha(t){if(t!==na)return!1;if(!ra)return ua(t),ra=!0,!1;var e;if((e=3!==t.tag)&&!(e=5!==t.tag)&&(e="head"!==(e=t.type)&&"body"!==e&&!nr(t.type,t.memoizedProps)),e&&(e=ia)){if(la(t))throw da(),Error(a(418));for(;e;)oa(t,e),e=cr(e.nextSibling)}if(ua(t),13===t.tag){if(!(t=null!==(t=t.memoizedState)?t.dehydrated:null))throw Error(a(317));t:{for(t=t.nextSibling,e=0;t;){if(8===t.nodeType){var n=t.data;if("/$"===n){if(0===e){ia=cr(t.nextSibling);break t}e--}else"$"!==n&&"$!"!==n&&"$?"!==n||e++}t=t.nextSibling}ia=null}}else ia=na?cr(t.stateNode.nextSibling):null;return!0}function da(){for(var t=ia;t;)t=cr(t.nextSibling)}function fa(){ia=na=null,ra=!1}function pa(t){null===aa?aa=[t]:aa.push(t)}var ga=x.ReactCurrentBatchConfig;function ma(t,e){if(t&&t.defaultProps){for(var n in e=N({},e),t=t.defaultProps)void 0===e[n]&&(e[n]=t[n]);return e}return e}var ba=kr(null),ya=null,va=null,xa=null;function _a(){xa=va=ya=null}function Aa(t){var e=ba.current;Cr(ba),t._currentValue=e}function wa(t,e,n){for(;null!==t;){var i=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,null!==i&&(i.childLanes|=e)):null!==i&&(i.childLanes&e)!==e&&(i.childLanes|=e),t===n)break;t=t.return}}function ka(t,e){ya=t,xa=va=null,null!==(t=t.dependencies)&&null!==t.firstContext&&(0!=(t.lanes&e)&&(xs=!0),t.firstContext=null)}function Ca(t){var e=t._currentValue;if(xa!==t)if(t={context:t,memoizedValue:e,next:null},null===va){if(null===ya)throw Error(a(308));va=t,ya.dependencies={lanes:0,firstContext:t}}else va=va.next=t;return e}var Ea=null;function Sa(t){null===Ea?Ea=[t]:Ea.push(t)}function Ma(t,e,n,i){var r=e.interleaved;return null===r?(n.next=n,Sa(e)):(n.next=r.next,r.next=n),e.interleaved=n,Pa(t,i)}function Pa(t,e){t.lanes|=e;var n=t.alternate;for(null!==n&&(n.lanes|=e),n=t,t=t.return;null!==t;)t.childLanes|=e,null!==(n=t.alternate)&&(n.childLanes|=e),n=t,t=t.return;return 3===n.tag?n.stateNode:null}var Ba=!1;function Ta(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Da(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Oa(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function La(t,e,n){var i=t.updateQueue;if(null===i)return null;if(i=i.shared,0!=(2&Ml)){var r=i.pending;return null===r?e.next=e:(e.next=r.next,r.next=e),i.pending=e,Pa(t,n)}return null===(r=i.interleaved)?(e.next=e,Sa(i)):(e.next=r.next,r.next=e),i.interleaved=e,Pa(t,n)}function za(t,e,n){if(null!==(e=e.updateQueue)&&(e=e.shared,0!=(4194240&n))){var i=e.lanes;n|=i&=t.pendingLanes,e.lanes=n,ye(t,n)}}function Ra(t,e){var n=t.updateQueue,i=t.alternate;if(null!==i&&n===(i=i.updateQueue)){var r=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?r=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?r=a=e:a=a.next=e}else r=a=e;return n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:a,shared:i.shared,effects:i.effects},void(t.updateQueue=n)}null===(t=n.lastBaseUpdate)?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function Na(t,e,n,i){var r=t.updateQueue;Ba=!1;var a=r.firstBaseUpdate,o=r.lastBaseUpdate,s=r.shared.pending;if(null!==s){r.shared.pending=null;var l=s,c=l.next;l.next=null,null===o?a=c:o.next=c,o=l;var u=t.alternate;null!==u&&(s=(u=u.updateQueue).lastBaseUpdate)!==o&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l)}if(null!==a){var h=r.baseState;for(o=0,u=c=l=null,s=a;;){var d=s.lane,f=s.eventTime;if((i&d)===d){null!==u&&(u=u.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});t:{var p=t,g=s;switch(d=e,f=n,g.tag){case 1:if("function"==typeof(p=g.payload)){h=p.call(f,h,d);break t}h=p;break t;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(d="function"==typeof(p=g.payload)?p.call(f,h,d):p))break t;h=N({},h,d);break t;case 2:Ba=!0}}null!==s.callback&&0!==s.lane&&(t.flags|=64,null===(d=r.effects)?r.effects=[s]:d.push(s))}else f={eventTime:f,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=f,l=h):u=u.next=f,o|=d;if(null===(s=s.next)){if(null===(s=r.shared.pending))break;s=(d=s).next,d.next=null,r.lastBaseUpdate=d,r.shared.pending=null}}if(null===u&&(l=h),r.baseState=l,r.firstBaseUpdate=c,r.lastBaseUpdate=u,null!==(e=r.shared.interleaved)){r=e;do{o|=r.lane,r=r.next}while(r!==e)}else null===a&&(r.shared.lanes=0);Rl|=o,t.lanes=o,t.memoizedState=h}}function Ia(t,e,n){if(t=e.effects,e.effects=null,null!==t)for(e=0;e<t.length;e++){var i=t[e],r=i.callback;if(null!==r){if(i.callback=null,i=n,"function"!=typeof r)throw Error(a(191,r));r.call(i)}}}var Fa=(new i.Component).refs;function ja(t,e,n,i){n=null==(n=n(i,e=t.memoizedState))?e:N({},e,n),t.memoizedState=n,0===t.lanes&&(t.updateQueue.baseState=n)}var Wa={isMounted:function(t){return!!(t=t._reactInternals)&&Vt(t)===t},enqueueSetState:function(t,e,n){t=t._reactInternals;var i=tc(),r=ec(t),a=Oa(i,r);a.payload=e,null!=n&&(a.callback=n),null!==(e=La(t,a,r))&&(nc(e,t,r,i),za(e,t,r))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var i=tc(),r=ec(t),a=Oa(i,r);a.tag=1,a.payload=e,null!=n&&(a.callback=n),null!==(e=La(t,a,r))&&(nc(e,t,r,i),za(e,t,r))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=tc(),i=ec(t),r=Oa(n,i);r.tag=2,null!=e&&(r.callback=e),null!==(e=La(t,r,i))&&(nc(e,t,i,n),za(e,t,i))}};function Va(t,e,n,i,r,a,o){return"function"==typeof(t=t.stateNode).shouldComponentUpdate?t.shouldComponentUpdate(i,a,o):!(e.prototype&&e.prototype.isPureReactComponent&&li(n,i)&&li(r,a))}function Ha(t,e,n){var i=!1,r=Sr,a=e.contextType;return"object"==typeof a&&null!==a?a=Ca(a):(r=Dr(e)?Br:Mr.current,a=(i=null!=(i=e.contextTypes))?Tr(t,r):Sr),e=new e(n,a),t.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,e.updater=Wa,t.stateNode=e,e._reactInternals=t,i&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,t.__reactInternalMemoizedMaskedChildContext=a),e}function Ua(t,e,n,i){t=e.state,"function"==typeof e.componentWillReceiveProps&&e.componentWillReceiveProps(n,i),"function"==typeof e.UNSAFE_componentWillReceiveProps&&e.UNSAFE_componentWillReceiveProps(n,i),e.state!==t&&Wa.enqueueReplaceState(e,e.state,null)}function $a(t,e,n,i){var r=t.stateNode;r.props=n,r.state=t.memoizedState,r.refs=Fa,Ta(t);var a=e.contextType;"object"==typeof a&&null!==a?r.context=Ca(a):(a=Dr(e)?Br:Mr.current,r.context=Tr(t,a)),r.state=t.memoizedState,"function"==typeof(a=e.getDerivedStateFromProps)&&(ja(t,e,a,n),r.state=t.memoizedState),"function"==typeof e.getDerivedStateFromProps||"function"==typeof r.getSnapshotBeforeUpdate||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||(e=r.state,"function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),e!==r.state&&Wa.enqueueReplaceState(r,r.state,null),Na(t,n,r,i),r.state=t.memoizedState),"function"==typeof r.componentDidMount&&(t.flags|=4194308)}function Ya(t,e,n){if(null!==(t=n.ref)&&"function"!=typeof t&&"object"!=typeof t){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var i=n.stateNode}if(!i)throw Error(a(147,t));var r=i,o=""+t;return null!==e&&null!==e.ref&&"function"==typeof e.ref&&e.ref._stringRef===o?e.ref:(e=function(t){var e=r.refs;e===Fa&&(e=r.refs={}),null===t?delete e[o]:e[o]=t},e._stringRef=o,e)}if("string"!=typeof t)throw Error(a(284));if(!n._owner)throw Error(a(290,t))}return t}function qa(t,e){throw t=Object.prototype.toString.call(e),Error(a(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function Qa(t){return(0,t._init)(t._payload)}function Xa(t){function e(e,n){if(t){var i=e.deletions;null===i?(e.deletions=[n],e.flags|=16):i.push(n)}}function n(n,i){if(!t)return null;for(;null!==i;)e(n,i),i=i.sibling;return null}function i(t,e){for(t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function r(t,e){return(t=Oc(t,e)).index=0,t.sibling=null,t}function o(e,n,i){return e.index=i,t?null!==(i=e.alternate)?(i=i.index)<n?(e.flags|=2,n):i:(e.flags|=2,n):(e.flags|=1048576,n)}function s(e){return t&&null===e.alternate&&(e.flags|=2),e}function l(t,e,n,i){return null===e||6!==e.tag?((e=Nc(n,t.mode,i)).return=t,e):((e=r(e,n)).return=t,e)}function c(t,e,n,i){var a=n.type;return a===w?h(t,e,n.props.children,i,n.key):null!==e&&(e.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===D&&Qa(a)===e.type)?((i=r(e,n.props)).ref=Ya(t,e,n),i.return=t,i):((i=Lc(n.type,n.key,n.props,null,t.mode,i)).ref=Ya(t,e,n),i.return=t,i)}function u(t,e,n,i){return null===e||4!==e.tag||e.stateNode.containerInfo!==n.containerInfo||e.stateNode.implementation!==n.implementation?((e=Ic(n,t.mode,i)).return=t,e):((e=r(e,n.children||[])).return=t,e)}function h(t,e,n,i,a){return null===e||7!==e.tag?((e=zc(n,t.mode,i,a)).return=t,e):((e=r(e,n)).return=t,e)}function d(t,e,n){if("string"==typeof e&&""!==e||"number"==typeof e)return(e=Nc(""+e,t.mode,n)).return=t,e;if("object"==typeof e&&null!==e){switch(e.$$typeof){case _:return(n=Lc(e.type,e.key,e.props,null,t.mode,n)).ref=Ya(t,null,e),n.return=t,n;case A:return(e=Ic(e,t.mode,n)).return=t,e;case D:return d(t,(0,e._init)(e._payload),n)}if(et(e)||z(e))return(e=zc(e,t.mode,n,null)).return=t,e;qa(t,e)}return null}function f(t,e,n,i){var r=null!==e?e.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==r?null:l(t,e,""+n,i);if("object"==typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===r?c(t,e,n,i):null;case A:return n.key===r?u(t,e,n,i):null;case D:return f(t,e,(r=n._init)(n._payload),i)}if(et(n)||z(n))return null!==r?null:h(t,e,n,i,null);qa(t,n)}return null}function p(t,e,n,i,r){if("string"==typeof i&&""!==i||"number"==typeof i)return l(e,t=t.get(n)||null,""+i,r);if("object"==typeof i&&null!==i){switch(i.$$typeof){case _:return c(e,t=t.get(null===i.key?n:i.key)||null,i,r);case A:return u(e,t=t.get(null===i.key?n:i.key)||null,i,r);case D:return p(t,e,n,(0,i._init)(i._payload),r)}if(et(i)||z(i))return h(e,t=t.get(n)||null,i,r,null);qa(e,i)}return null}function g(r,a,s,l){for(var c=null,u=null,h=a,g=a=0,m=null;null!==h&&g<s.length;g++){h.index>g?(m=h,h=null):m=h.sibling;var b=f(r,h,s[g],l);if(null===b){null===h&&(h=m);break}t&&h&&null===b.alternate&&e(r,h),a=o(b,a,g),null===u?c=b:u.sibling=b,u=b,h=m}if(g===s.length)return n(r,h),ra&&Gr(r,g),c;if(null===h){for(;g<s.length;g++)null!==(h=d(r,s[g],l))&&(a=o(h,a,g),null===u?c=h:u.sibling=h,u=h);return ra&&Gr(r,g),c}for(h=i(r,h);g<s.length;g++)null!==(m=p(h,r,g,s[g],l))&&(t&&null!==m.alternate&&h.delete(null===m.key?g:m.key),a=o(m,a,g),null===u?c=m:u.sibling=m,u=m);return t&&h.forEach((function(t){return e(r,t)})),ra&&Gr(r,g),c}function m(r,s,l,c){var u=z(l);if("function"!=typeof u)throw Error(a(150));if(null==(l=u.call(l)))throw Error(a(151));for(var h=u=null,g=s,m=s=0,b=null,y=l.next();null!==g&&!y.done;m++,y=l.next()){g.index>m?(b=g,g=null):b=g.sibling;var v=f(r,g,y.value,c);if(null===v){null===g&&(g=b);break}t&&g&&null===v.alternate&&e(r,g),s=o(v,s,m),null===h?u=v:h.sibling=v,h=v,g=b}if(y.done)return n(r,g),ra&&Gr(r,m),u;if(null===g){for(;!y.done;m++,y=l.next())null!==(y=d(r,y.value,c))&&(s=o(y,s,m),null===h?u=y:h.sibling=y,h=y);return ra&&Gr(r,m),u}for(g=i(r,g);!y.done;m++,y=l.next())null!==(y=p(g,r,m,y.value,c))&&(t&&null!==y.alternate&&g.delete(null===y.key?m:y.key),s=o(y,s,m),null===h?u=y:h.sibling=y,h=y);return t&&g.forEach((function(t){return e(r,t)})),ra&&Gr(r,m),u}return function t(i,a,o,l){if("object"==typeof o&&null!==o&&o.type===w&&null===o.key&&(o=o.props.children),"object"==typeof o&&null!==o){switch(o.$$typeof){case _:t:{for(var c=o.key,u=a;null!==u;){if(u.key===c){if((c=o.type)===w){if(7===u.tag){n(i,u.sibling),(a=r(u,o.props.children)).return=i,i=a;break t}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===D&&Qa(c)===u.type){n(i,u.sibling),(a=r(u,o.props)).ref=Ya(i,u,o),a.return=i,i=a;break t}n(i,u);break}e(i,u),u=u.sibling}o.type===w?((a=zc(o.props.children,i.mode,l,o.key)).return=i,i=a):((l=Lc(o.type,o.key,o.props,null,i.mode,l)).ref=Ya(i,a,o),l.return=i,i=l)}return s(i);case A:t:{for(u=o.key;null!==a;){if(a.key===u){if(4===a.tag&&a.stateNode.containerInfo===o.containerInfo&&a.stateNode.implementation===o.implementation){n(i,a.sibling),(a=r(a,o.children||[])).return=i,i=a;break t}n(i,a);break}e(i,a),a=a.sibling}(a=Ic(o,i.mode,l)).return=i,i=a}return s(i);case D:return t(i,a,(u=o._init)(o._payload),l)}if(et(o))return g(i,a,o,l);if(z(o))return m(i,a,o,l);qa(i,o)}return"string"==typeof o&&""!==o||"number"==typeof o?(o=""+o,null!==a&&6===a.tag?(n(i,a.sibling),(a=r(a,o)).return=i,i=a):(n(i,a),(a=Nc(o,i.mode,l)).return=i,i=a),s(i)):n(i,a)}}var Ka=Xa(!0),Za=Xa(!1),Ga={},Ja=kr(Ga),to=kr(Ga),eo=kr(Ga);function no(t){if(t===Ga)throw Error(a(174));return t}function io(t,e){switch(Er(eo,e),Er(to,t),Er(Ja,Ga),t=e.nodeType){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:lt(null,"");break;default:e=lt(e=(t=8===t?e.parentNode:e).namespaceURI||null,t=t.tagName)}Cr(Ja),Er(Ja,e)}function ro(){Cr(Ja),Cr(to),Cr(eo)}function ao(t){no(eo.current);var e=no(Ja.current),n=lt(e,t.type);e!==n&&(Er(to,t),Er(Ja,n))}function oo(t){to.current===t&&(Cr(Ja),Cr(to))}var so=kr(0);function lo(t){for(var e=t;null!==e;){if(13===e.tag){var n=e.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return e}else if(19===e.tag&&void 0!==e.memoizedProps.revealOrder){if(0!=(128&e.flags))return e}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var co=[];function uo(){for(var t=0;t<co.length;t++)co[t]._workInProgressVersionPrimary=null;co.length=0}var ho=x.ReactCurrentDispatcher,fo=x.ReactCurrentBatchConfig,po=0,go=null,mo=null,bo=null,yo=!1,vo=!1,xo=0,_o=0;function Ao(){throw Error(a(321))}function wo(t,e){if(null===e)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!si(t[n],e[n]))return!1;return!0}function ko(t,e,n,i,r,o){if(po=o,go=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,ho.current=null===t||null===t.memoizedState?ss:ls,t=n(i,r),vo){o=0;do{if(vo=!1,xo=0,25<=o)throw Error(a(301));o+=1,bo=mo=null,e.updateQueue=null,ho.current=cs,t=n(i,r)}while(vo)}if(ho.current=os,e=null!==mo&&null!==mo.next,po=0,bo=mo=go=null,yo=!1,e)throw Error(a(300));return t}function Co(){var t=0!==xo;return xo=0,t}function Eo(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===bo?go.memoizedState=bo=t:bo=bo.next=t,bo}function So(){if(null===mo){var t=go.alternate;t=null!==t?t.memoizedState:null}else t=mo.next;var e=null===bo?go.memoizedState:bo.next;if(null!==e)bo=e,mo=t;else{if(null===t)throw Error(a(310));t={memoizedState:(mo=t).memoizedState,baseState:mo.baseState,baseQueue:mo.baseQueue,queue:mo.queue,next:null},null===bo?go.memoizedState=bo=t:bo=bo.next=t}return bo}function Mo(t,e){return"function"==typeof e?e(t):e}function Po(t){var e=So(),n=e.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=t;var i=mo,r=i.baseQueue,o=n.pending;if(null!==o){if(null!==r){var s=r.next;r.next=o.next,o.next=s}i.baseQueue=r=o,n.pending=null}if(null!==r){o=r.next,i=i.baseState;var l=s=null,c=null,u=o;do{var h=u.lane;if((po&h)===h)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:t(i,u.action);else{var d={lane:h,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=d,s=i):c=c.next=d,go.lanes|=h,Rl|=h}u=u.next}while(null!==u&&u!==o);null===c?s=i:c.next=l,si(i,e.memoizedState)||(xs=!0),e.memoizedState=i,e.baseState=s,e.baseQueue=c,n.lastRenderedState=i}if(null!==(t=n.interleaved)){r=t;do{o=r.lane,go.lanes|=o,Rl|=o,r=r.next}while(r!==t)}else null===r&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function Bo(t){var e=So(),n=e.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=t;var i=n.dispatch,r=n.pending,o=e.memoizedState;if(null!==r){n.pending=null;var s=r=r.next;do{o=t(o,s.action),s=s.next}while(s!==r);si(o,e.memoizedState)||(xs=!0),e.memoizedState=o,null===e.baseQueue&&(e.baseState=o),n.lastRenderedState=o}return[o,i]}function To(){}function Do(t,e){var n=go,i=So(),r=e(),o=!si(i.memoizedState,r);if(o&&(i.memoizedState=r,xs=!0),i=i.queue,Uo(zo.bind(null,n,i,t),[t]),i.getSnapshot!==e||o||null!==bo&&1&bo.memoizedState.tag){if(n.flags|=2048,Fo(9,Lo.bind(null,n,i,r,e),void 0,null),null===Pl)throw Error(a(349));0!=(30&po)||Oo(n,e,r)}return r}function Oo(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},null===(e=go.updateQueue)?(e={lastEffect:null,stores:null},go.updateQueue=e,e.stores=[t]):null===(n=e.stores)?e.stores=[t]:n.push(t)}function Lo(t,e,n,i){e.value=n,e.getSnapshot=i,Ro(e)&&No(t)}function zo(t,e,n){return n((function(){Ro(e)&&No(t)}))}function Ro(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!si(t,n)}catch(t){return!0}}function No(t){var e=Pa(t,1);null!==e&&nc(e,t,1,-1)}function Io(t){var e=Eo();return"function"==typeof t&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Mo,lastRenderedState:t},e.queue=t,t=t.dispatch=ns.bind(null,go,t),[e.memoizedState,t]}function Fo(t,e,n,i){return t={tag:t,create:e,destroy:n,deps:i,next:null},null===(e=go.updateQueue)?(e={lastEffect:null,stores:null},go.updateQueue=e,e.lastEffect=t.next=t):null===(n=e.lastEffect)?e.lastEffect=t.next=t:(i=n.next,n.next=t,t.next=i,e.lastEffect=t),t}function jo(){return So().memoizedState}function Wo(t,e,n,i){var r=Eo();go.flags|=t,r.memoizedState=Fo(1|e,n,void 0,void 0===i?null:i)}function Vo(t,e,n,i){var r=So();i=void 0===i?null:i;var a=void 0;if(null!==mo){var o=mo.memoizedState;if(a=o.destroy,null!==i&&wo(i,o.deps))return void(r.memoizedState=Fo(e,n,a,i))}go.flags|=t,r.memoizedState=Fo(1|e,n,a,i)}function Ho(t,e){return Wo(8390656,8,t,e)}function Uo(t,e){return Vo(2048,8,t,e)}function $o(t,e){return Vo(4,2,t,e)}function Yo(t,e){return Vo(4,4,t,e)}function qo(t,e){return"function"==typeof e?(t=t(),e(t),function(){e(null)}):null!=e?(t=t(),e.current=t,function(){e.current=null}):void 0}function Qo(t,e,n){return n=null!=n?n.concat([t]):null,Vo(4,4,qo.bind(null,e,t),n)}function Xo(){}function Ko(t,e){var n=So();e=void 0===e?null:e;var i=n.memoizedState;return null!==i&&null!==e&&wo(e,i[1])?i[0]:(n.memoizedState=[t,e],t)}function Zo(t,e){var n=So();e=void 0===e?null:e;var i=n.memoizedState;return null!==i&&null!==e&&wo(e,i[1])?i[0]:(t=t(),n.memoizedState=[t,e],t)}function Go(t,e,n){return 0==(21&po)?(t.baseState&&(t.baseState=!1,xs=!0),t.memoizedState=n):(si(n,e)||(n=ge(),go.lanes|=n,Rl|=n,t.baseState=!0),e)}function Jo(t,e){var n=ve;ve=0!==n&&4>n?n:4,t(!0);var i=fo.transition;fo.transition={};try{t(!1),e()}finally{ve=n,fo.transition=i}}function ts(){return So().memoizedState}function es(t,e,n){var i=ec(t);n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},is(t)?rs(e,n):null!==(n=Ma(t,e,n,i))&&(nc(n,t,i,tc()),as(n,e,i))}function ns(t,e,n){var i=ec(t),r={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(is(t))rs(e,r);else{var a=t.alternate;if(0===t.lanes&&(null===a||0===a.lanes)&&null!==(a=e.lastRenderedReducer))try{var o=e.lastRenderedState,s=a(o,n);if(r.hasEagerState=!0,r.eagerState=s,si(s,o)){var l=e.interleaved;return null===l?(r.next=r,Sa(e)):(r.next=l.next,l.next=r),void(e.interleaved=r)}}catch(t){}null!==(n=Ma(t,e,r,i))&&(nc(n,t,i,r=tc()),as(n,e,i))}}function is(t){var e=t.alternate;return t===go||null!==e&&e===go}function rs(t,e){vo=yo=!0;var n=t.pending;null===n?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function as(t,e,n){if(0!=(4194240&n)){var i=e.lanes;n|=i&=t.pendingLanes,e.lanes=n,ye(t,n)}}var os={readContext:Ca,useCallback:Ao,useContext:Ao,useEffect:Ao,useImperativeHandle:Ao,useInsertionEffect:Ao,useLayoutEffect:Ao,useMemo:Ao,useReducer:Ao,useRef:Ao,useState:Ao,useDebugValue:Ao,useDeferredValue:Ao,useTransition:Ao,useMutableSource:Ao,useSyncExternalStore:Ao,useId:Ao,unstable_isNewReconciler:!1},ss={readContext:Ca,useCallback:function(t,e){return Eo().memoizedState=[t,void 0===e?null:e],t},useContext:Ca,useEffect:Ho,useImperativeHandle:function(t,e,n){return n=null!=n?n.concat([t]):null,Wo(4194308,4,qo.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Wo(4194308,4,t,e)},useInsertionEffect:function(t,e){return Wo(4,2,t,e)},useMemo:function(t,e){var n=Eo();return e=void 0===e?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var i=Eo();return e=void 0!==n?n(e):e,i.memoizedState=i.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},i.queue=t,t=t.dispatch=es.bind(null,go,t),[i.memoizedState,t]},useRef:function(t){return t={current:t},Eo().memoizedState=t},useState:Io,useDebugValue:Xo,useDeferredValue:function(t){return Eo().memoizedState=t},useTransition:function(){var t=Io(!1),e=t[0];return t=Jo.bind(null,t[1]),Eo().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var i=go,r=Eo();if(ra){if(void 0===n)throw Error(a(407));n=n()}else{if(n=e(),null===Pl)throw Error(a(349));0!=(30&po)||Oo(i,e,n)}r.memoizedState=n;var o={value:n,getSnapshot:e};return r.queue=o,Ho(zo.bind(null,i,o,t),[t]),i.flags|=2048,Fo(9,Lo.bind(null,i,o,n,e),void 0,null),n},useId:function(){var t=Eo(),e=Pl.identifierPrefix;if(ra){var n=Zr;e=":"+e+"R"+(n=(Kr&~(1<<32-oe(Kr)-1)).toString(32)+n),0<(n=xo++)&&(e+="H"+n.toString(32)),e+=":"}else e=":"+e+"r"+(n=_o++).toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},ls={readContext:Ca,useCallback:Ko,useContext:Ca,useEffect:Uo,useImperativeHandle:Qo,useInsertionEffect:$o,useLayoutEffect:Yo,useMemo:Zo,useReducer:Po,useRef:jo,useState:function(){return Po(Mo)},useDebugValue:Xo,useDeferredValue:function(t){return Go(So(),mo.memoizedState,t)},useTransition:function(){return[Po(Mo)[0],So().memoizedState]},useMutableSource:To,useSyncExternalStore:Do,useId:ts,unstable_isNewReconciler:!1},cs={readContext:Ca,useCallback:Ko,useContext:Ca,useEffect:Uo,useImperativeHandle:Qo,useInsertionEffect:$o,useLayoutEffect:Yo,useMemo:Zo,useReducer:Bo,useRef:jo,useState:function(){return Bo(Mo)},useDebugValue:Xo,useDeferredValue:function(t){var e=So();return null===mo?e.memoizedState=t:Go(e,mo.memoizedState,t)},useTransition:function(){return[Bo(Mo)[0],So().memoizedState]},useMutableSource:To,useSyncExternalStore:Do,useId:ts,unstable_isNewReconciler:!1};function us(t,e){try{var n="",i=e;do{n+=W(i),i=i.return}while(i);var r=n}catch(t){r="\nError generating stack: "+t.message+"\n"+t.stack}return{value:t,source:e,stack:r,digest:null}}function hs(t,e,n){return{value:t,source:null,stack:null!=n?n:null,digest:null!=e?e:null}}function ds(t,e){try{console.error(e.value)}catch(t){setTimeout((function(){throw t}))}}var fs="function"==typeof WeakMap?WeakMap:Map;function ps(t,e,n){(n=Oa(-1,n)).tag=3,n.payload={element:null};var i=e.value;return n.callback=function(){Ul||(Ul=!0,$l=i),ds(0,e)},n}function gs(t,e,n){(n=Oa(-1,n)).tag=3;var i=t.type.getDerivedStateFromError;if("function"==typeof i){var r=e.value;n.payload=function(){return i(r)},n.callback=function(){ds(0,e)}}var a=t.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){ds(0,e),"function"!=typeof i&&(null===Yl?Yl=new Set([this]):Yl.add(this));var t=e.stack;this.componentDidCatch(e.value,{componentStack:null!==t?t:""})}),n}function ms(t,e,n){var i=t.pingCache;if(null===i){i=t.pingCache=new fs;var r=new Set;i.set(e,r)}else void 0===(r=i.get(e))&&(r=new Set,i.set(e,r));r.has(n)||(r.add(n),t=Cc.bind(null,t,e,n),e.then(t,t))}function bs(t){do{var e;if((e=13===t.tag)&&(e=null===(e=t.memoizedState)||null!==e.dehydrated),e)return t;t=t.return}while(null!==t);return null}function ys(t,e,n,i,r){return 0==(1&t.mode)?(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((e=Oa(-1,1)).tag=2,La(n,e,1))),n.lanes|=1),t):(t.flags|=65536,t.lanes=r,t)}var vs=x.ReactCurrentOwner,xs=!1;function _s(t,e,n,i){e.child=null===t?Za(e,null,n,i):Ka(e,t.child,n,i)}function As(t,e,n,i,r){n=n.render;var a=e.ref;return ka(e,r),i=ko(t,e,n,i,a,r),n=Co(),null===t||xs?(ra&&n&&ta(e),e.flags|=1,_s(t,e,i,r),e.child):(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~r,Us(t,e,r))}function ws(t,e,n,i,r){if(null===t){var a=n.type;return"function"!=typeof a||Dc(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((t=Lc(n.type,null,i,e,e.mode,r)).ref=e.ref,t.return=e,e.child=t):(e.tag=15,e.type=a,ks(t,e,a,i,r))}if(a=t.child,0==(t.lanes&r)){var o=a.memoizedProps;if((n=null!==(n=n.compare)?n:li)(o,i)&&t.ref===e.ref)return Us(t,e,r)}return e.flags|=1,(t=Oc(a,i)).ref=e.ref,t.return=e,e.child=t}function ks(t,e,n,i,r){if(null!==t){var a=t.memoizedProps;if(li(a,i)&&t.ref===e.ref){if(xs=!1,e.pendingProps=i=a,0==(t.lanes&r))return e.lanes=t.lanes,Us(t,e,r);0!=(131072&t.flags)&&(xs=!0)}}return Ss(t,e,n,i,r)}function Cs(t,e,n){var i=e.pendingProps,r=i.children,a=null!==t?t.memoizedState:null;if("hidden"===i.mode)if(0==(1&e.mode))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},Er(Ol,Dl),Dl|=n;else{if(0==(1073741824&n))return t=null!==a?a.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,Er(Ol,Dl),Dl|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=null!==a?a.baseLanes:n,Er(Ol,Dl),Dl|=i}else null!==a?(i=a.baseLanes|n,e.memoizedState=null):i=n,Er(Ol,Dl),Dl|=i;return _s(t,e,r,n),e.child}function Es(t,e){var n=e.ref;(null===t&&null!==n||null!==t&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function Ss(t,e,n,i,r){var a=Dr(n)?Br:Mr.current;return a=Tr(e,a),ka(e,r),n=ko(t,e,n,i,a,r),i=Co(),null===t||xs?(ra&&i&&ta(e),e.flags|=1,_s(t,e,n,r),e.child):(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~r,Us(t,e,r))}function Ms(t,e,n,i,r){if(Dr(n)){var a=!0;Rr(e)}else a=!1;if(ka(e,r),null===e.stateNode)Hs(t,e),Ha(e,n,i),$a(e,n,i,r),i=!0;else if(null===t){var o=e.stateNode,s=e.memoizedProps;o.props=s;var l=o.context,c=n.contextType;c="object"==typeof c&&null!==c?Ca(c):Tr(e,c=Dr(n)?Br:Mr.current);var u=n.getDerivedStateFromProps,h="function"==typeof u||"function"==typeof o.getSnapshotBeforeUpdate;h||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==i||l!==c)&&Ua(e,o,i,c),Ba=!1;var d=e.memoizedState;o.state=d,Na(e,i,o,r),l=e.memoizedState,s!==i||d!==l||Pr.current||Ba?("function"==typeof u&&(ja(e,n,u,i),l=e.memoizedState),(s=Ba||Va(e,n,s,i,d,l,c))?(h||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(e.flags|=4194308)):("function"==typeof o.componentDidMount&&(e.flags|=4194308),e.memoizedProps=i,e.memoizedState=l),o.props=i,o.state=l,o.context=c,i=s):("function"==typeof o.componentDidMount&&(e.flags|=4194308),i=!1)}else{o=e.stateNode,Da(t,e),s=e.memoizedProps,c=e.type===e.elementType?s:ma(e.type,s),o.props=c,h=e.pendingProps,d=o.context,l="object"==typeof(l=n.contextType)&&null!==l?Ca(l):Tr(e,l=Dr(n)?Br:Mr.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==h||d!==l)&&Ua(e,o,i,l),Ba=!1,d=e.memoizedState,o.state=d,Na(e,i,o,r);var p=e.memoizedState;s!==h||d!==p||Pr.current||Ba?("function"==typeof f&&(ja(e,n,f,i),p=e.memoizedState),(c=Ba||Va(e,n,c,i,d,p,l)||!1)?(u||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(i,p,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(i,p,l)),"function"==typeof o.componentDidUpdate&&(e.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(e.flags|=1024)):("function"!=typeof o.componentDidUpdate||s===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),e.memoizedProps=i,e.memoizedState=p),o.props=i,o.state=p,o.context=l,i=c):("function"!=typeof o.componentDidUpdate||s===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),i=!1)}return Ps(t,e,n,i,a,r)}function Ps(t,e,n,i,r,a){Es(t,e);var o=0!=(128&e.flags);if(!i&&!o)return r&&Nr(e,n,!1),Us(t,e,a);i=e.stateNode,vs.current=e;var s=o&&"function"!=typeof n.getDerivedStateFromError?null:i.render();return e.flags|=1,null!==t&&o?(e.child=Ka(e,t.child,null,a),e.child=Ka(e,null,s,a)):_s(t,e,s,a),e.memoizedState=i.state,r&&Nr(e,n,!0),e.child}function Bs(t){var e=t.stateNode;e.pendingContext?Lr(0,e.pendingContext,e.pendingContext!==e.context):e.context&&Lr(0,e.context,!1),io(t,e.containerInfo)}function Ts(t,e,n,i,r){return fa(),pa(r),e.flags|=256,_s(t,e,n,i),e.child}var Ds,Os,Ls,zs={dehydrated:null,treeContext:null,retryLane:0};function Rs(t){return{baseLanes:t,cachePool:null,transitions:null}}function Ns(t,e,n){var i,r=e.pendingProps,o=so.current,s=!1,l=0!=(128&e.flags);if((i=l)||(i=(null===t||null!==t.memoizedState)&&0!=(2&o)),i?(s=!0,e.flags&=-129):null!==t&&null===t.memoizedState||(o|=1),Er(so,1&o),null===t)return ca(e),null!==(t=e.memoizedState)&&null!==(t=t.dehydrated)?(0==(1&e.mode)?e.lanes=1:"$!"===t.data?e.lanes=8:e.lanes=1073741824,null):(l=r.children,t=r.fallback,s?(r=e.mode,s=e.child,l={mode:"hidden",children:l},0==(1&r)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Rc(l,r,0,null),t=zc(t,r,n,null),s.return=e,t.return=e,s.sibling=t,e.child=s,e.child.memoizedState=Rs(n),e.memoizedState=zs,t):Is(e,l));if(null!==(o=t.memoizedState)&&null!==(i=o.dehydrated))return function(t,e,n,i,r,o,s){if(n)return 256&e.flags?(e.flags&=-257,Fs(t,e,s,i=hs(Error(a(422))))):null!==e.memoizedState?(e.child=t.child,e.flags|=128,null):(o=i.fallback,r=e.mode,i=Rc({mode:"visible",children:i.children},r,0,null),(o=zc(o,r,s,null)).flags|=2,i.return=e,o.return=e,i.sibling=o,e.child=i,0!=(1&e.mode)&&Ka(e,t.child,null,s),e.child.memoizedState=Rs(s),e.memoizedState=zs,o);if(0==(1&e.mode))return Fs(t,e,s,null);if("$!"===r.data){if(i=r.nextSibling&&r.nextSibling.dataset)var l=i.dgst;return i=l,Fs(t,e,s,i=hs(o=Error(a(419)),i,void 0))}if(l=0!=(s&t.childLanes),xs||l){if(null!==(i=Pl)){switch(s&-s){case 4:r=2;break;case 16:r=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:r=32;break;case 536870912:r=268435456;break;default:r=0}0!==(r=0!=(r&(i.suspendedLanes|s))?0:r)&&r!==o.retryLane&&(o.retryLane=r,Pa(t,r),nc(i,t,r,-1))}return gc(),Fs(t,e,s,i=hs(Error(a(421))))}return"$?"===r.data?(e.flags|=128,e.child=t.child,e=Sc.bind(null,t),r._reactRetry=e,null):(t=o.treeContext,ia=cr(r.nextSibling),na=e,ra=!0,aa=null,null!==t&&(qr[Qr++]=Kr,qr[Qr++]=Zr,qr[Qr++]=Xr,Kr=t.id,Zr=t.overflow,Xr=e),(e=Is(e,i.children)).flags|=4096,e)}(t,e,l,r,i,o,n);if(s){s=r.fallback,l=e.mode,i=(o=t.child).sibling;var c={mode:"hidden",children:r.children};return 0==(1&l)&&e.child!==o?((r=e.child).childLanes=0,r.pendingProps=c,e.deletions=null):(r=Oc(o,c)).subtreeFlags=14680064&o.subtreeFlags,null!==i?s=Oc(i,s):(s=zc(s,l,n,null)).flags|=2,s.return=e,r.return=e,r.sibling=s,e.child=r,r=s,s=e.child,l=null===(l=t.child.memoizedState)?Rs(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=t.childLanes&~n,e.memoizedState=zs,r}return t=(s=t.child).sibling,r=Oc(s,{mode:"visible",children:r.children}),0==(1&e.mode)&&(r.lanes=n),r.return=e,r.sibling=null,null!==t&&(null===(n=e.deletions)?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=r,e.memoizedState=null,r}function Is(t,e){return(e=Rc({mode:"visible",children:e},t.mode,0,null)).return=t,t.child=e}function Fs(t,e,n,i){return null!==i&&pa(i),Ka(e,t.child,null,n),(t=Is(e,e.pendingProps.children)).flags|=2,e.memoizedState=null,t}function js(t,e,n){t.lanes|=e;var i=t.alternate;null!==i&&(i.lanes|=e),wa(t.return,e,n)}function Ws(t,e,n,i,r){var a=t.memoizedState;null===a?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:r}:(a.isBackwards=e,a.rendering=null,a.renderingStartTime=0,a.last=i,a.tail=n,a.tailMode=r)}function Vs(t,e,n){var i=e.pendingProps,r=i.revealOrder,a=i.tail;if(_s(t,e,i.children,n),0!=(2&(i=so.current)))i=1&i|2,e.flags|=128;else{if(null!==t&&0!=(128&t.flags))t:for(t=e.child;null!==t;){if(13===t.tag)null!==t.memoizedState&&js(t,n,e);else if(19===t.tag)js(t,n,e);else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;null===t.sibling;){if(null===t.return||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}i&=1}if(Er(so,i),0==(1&e.mode))e.memoizedState=null;else switch(r){case"forwards":for(n=e.child,r=null;null!==n;)null!==(t=n.alternate)&&null===lo(t)&&(r=n),n=n.sibling;null===(n=r)?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),Ws(e,!1,r,n,a);break;case"backwards":for(n=null,r=e.child,e.child=null;null!==r;){if(null!==(t=r.alternate)&&null===lo(t)){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}Ws(e,!0,n,null,a);break;case"together":Ws(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function Hs(t,e){0==(1&e.mode)&&null!==t&&(t.alternate=null,e.alternate=null,e.flags|=2)}function Us(t,e,n){if(null!==t&&(e.dependencies=t.dependencies),Rl|=e.lanes,0==(n&e.childLanes))return null;if(null!==t&&e.child!==t.child)throw Error(a(153));if(null!==e.child){for(n=Oc(t=e.child,t.pendingProps),e.child=n,n.return=e;null!==t.sibling;)t=t.sibling,(n=n.sibling=Oc(t,t.pendingProps)).return=e;n.sibling=null}return e.child}function $s(t,e){if(!ra)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;null!==e;)null!==e.alternate&&(n=e),e=e.sibling;null===n?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var i=null;null!==n;)null!==n.alternate&&(i=n),n=n.sibling;null===i?e||null===t.tail?t.tail=null:t.tail.sibling=null:i.sibling=null}}function Ys(t){var e=null!==t.alternate&&t.alternate.child===t.child,n=0,i=0;if(e)for(var r=t.child;null!==r;)n|=r.lanes|r.childLanes,i|=14680064&r.subtreeFlags,i|=14680064&r.flags,r.return=t,r=r.sibling;else for(r=t.child;null!==r;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=t,r=r.sibling;return t.subtreeFlags|=i,t.childLanes=n,e}function qs(t,e,n){var i=e.pendingProps;switch(ea(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ys(e),null;case 1:case 17:return Dr(e.type)&&Or(),Ys(e),null;case 3:return i=e.stateNode,ro(),Cr(Pr),Cr(Mr),uo(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),null!==t&&null!==t.child||(ha(e)?e.flags|=4:null===t||t.memoizedState.isDehydrated&&0==(256&e.flags)||(e.flags|=1024,null!==aa&&(oc(aa),aa=null))),Ys(e),null;case 5:oo(e);var r=no(eo.current);if(n=e.type,null!==t&&null!=e.stateNode)Os(t,e,n,i),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!i){if(null===e.stateNode)throw Error(a(166));return Ys(e),null}if(t=no(Ja.current),ha(e)){i=e.stateNode,n=e.type;var o=e.memoizedProps;switch(i[dr]=e,i[fr]=o,t=0!=(1&e.mode),n){case"dialog":Fi("cancel",i),Fi("close",i);break;case"iframe":case"object":case"embed":Fi("load",i);break;case"video":case"audio":for(r=0;r<zi.length;r++)Fi(zi[r],i);break;case"source":Fi("error",i);break;case"img":case"image":case"link":Fi("error",i),Fi("load",i);break;case"details":Fi("toggle",i);break;case"input":K(i,o),Fi("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!o.multiple},Fi("invalid",i);break;case"textarea":rt(i,o),Fi("invalid",i)}for(var l in yt(n,o),r=null,o)if(o.hasOwnProperty(l)){var c=o[l];"children"===l?"string"==typeof c?i.textContent!==c&&(!0!==o.suppressHydrationWarning&&Gi(i.textContent,c,t),r=["children",c]):"number"==typeof c&&i.textContent!==""+c&&(!0!==o.suppressHydrationWarning&&Gi(i.textContent,c,t),r=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Fi("scroll",i)}switch(n){case"input":Y(i),J(i,o,!0);break;case"textarea":Y(i),ot(i);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(i.onclick=Ji)}i=r,e.updateQueue=i,null!==i&&(e.flags|=4)}else{l=9===r.nodeType?r:r.ownerDocument,"http://www.w3.org/1999/xhtml"===t&&(t=st(n)),"http://www.w3.org/1999/xhtml"===t?"script"===n?((t=l.createElement("div")).innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):"string"==typeof i.is?t=l.createElement(n,{is:i.is}):(t=l.createElement(n),"select"===n&&(l=t,i.multiple?l.multiple=!0:i.size&&(l.size=i.size))):t=l.createElementNS(t,n),t[dr]=e,t[fr]=i,Ds(t,e),e.stateNode=t;t:{switch(l=vt(n,i),n){case"dialog":Fi("cancel",t),Fi("close",t),r=i;break;case"iframe":case"object":case"embed":Fi("load",t),r=i;break;case"video":case"audio":for(r=0;r<zi.length;r++)Fi(zi[r],t);r=i;break;case"source":Fi("error",t),r=i;break;case"img":case"image":case"link":Fi("error",t),Fi("load",t),r=i;break;case"details":Fi("toggle",t),r=i;break;case"input":K(t,i),r=X(t,i),Fi("invalid",t);break;case"option":default:r=i;break;case"select":t._wrapperState={wasMultiple:!!i.multiple},r=N({},i,{value:void 0}),Fi("invalid",t);break;case"textarea":rt(t,i),r=it(t,i),Fi("invalid",t)}for(o in yt(n,r),c=r)if(c.hasOwnProperty(o)){var u=c[o];"style"===o?mt(t,u):"dangerouslySetInnerHTML"===o?null!=(u=u?u.__html:void 0)&&ht(t,u):"children"===o?"string"==typeof u?("textarea"!==n||""!==u)&&dt(t,u):"number"==typeof u&&dt(t,""+u):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(s.hasOwnProperty(o)?null!=u&&"onScroll"===o&&Fi("scroll",t):null!=u&&v(t,o,u,l))}switch(n){case"input":Y(t),J(t,i,!1);break;case"textarea":Y(t),ot(t);break;case"option":null!=i.value&&t.setAttribute("value",""+U(i.value));break;case"select":t.multiple=!!i.multiple,null!=(o=i.value)?nt(t,!!i.multiple,o,!1):null!=i.defaultValue&&nt(t,!!i.multiple,i.defaultValue,!0);break;default:"function"==typeof r.onClick&&(t.onclick=Ji)}switch(n){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break t;case"img":i=!0;break t;default:i=!1}}i&&(e.flags|=4)}null!==e.ref&&(e.flags|=512,e.flags|=2097152)}return Ys(e),null;case 6:if(t&&null!=e.stateNode)Ls(0,e,t.memoizedProps,i);else{if("string"!=typeof i&&null===e.stateNode)throw Error(a(166));if(n=no(eo.current),no(Ja.current),ha(e)){if(i=e.stateNode,n=e.memoizedProps,i[dr]=e,(o=i.nodeValue!==n)&&null!==(t=na))switch(t.tag){case 3:Gi(i.nodeValue,n,0!=(1&t.mode));break;case 5:!0!==t.memoizedProps.suppressHydrationWarning&&Gi(i.nodeValue,n,0!=(1&t.mode))}o&&(e.flags|=4)}else(i=(9===n.nodeType?n:n.ownerDocument).createTextNode(i))[dr]=e,e.stateNode=i}return Ys(e),null;case 13:if(Cr(so),i=e.memoizedState,null===t||null!==t.memoizedState&&null!==t.memoizedState.dehydrated){if(ra&&null!==ia&&0!=(1&e.mode)&&0==(128&e.flags))da(),fa(),e.flags|=98560,o=!1;else if(o=ha(e),null!==i&&null!==i.dehydrated){if(null===t){if(!o)throw Error(a(318));if(!(o=null!==(o=e.memoizedState)?o.dehydrated:null))throw Error(a(317));o[dr]=e}else fa(),0==(128&e.flags)&&(e.memoizedState=null),e.flags|=4;Ys(e),o=!1}else null!==aa&&(oc(aa),aa=null),o=!0;if(!o)return 65536&e.flags?e:null}return 0!=(128&e.flags)?(e.lanes=n,e):((i=null!==i)!=(null!==t&&null!==t.memoizedState)&&i&&(e.child.flags|=8192,0!=(1&e.mode)&&(null===t||0!=(1&so.current)?0===Ll&&(Ll=3):gc())),null!==e.updateQueue&&(e.flags|=4),Ys(e),null);case 4:return ro(),null===t&&Vi(e.stateNode.containerInfo),Ys(e),null;case 10:return Aa(e.type._context),Ys(e),null;case 19:if(Cr(so),null===(o=e.memoizedState))return Ys(e),null;if(i=0!=(128&e.flags),null===(l=o.rendering))if(i)$s(o,!1);else{if(0!==Ll||null!==t&&0!=(128&t.flags))for(t=e.child;null!==t;){if(null!==(l=lo(t))){for(e.flags|=128,$s(o,!1),null!==(i=l.updateQueue)&&(e.updateQueue=i,e.flags|=4),e.subtreeFlags=0,i=n,n=e.child;null!==n;)t=i,(o=n).flags&=14680066,null===(l=o.alternate)?(o.childLanes=0,o.lanes=t,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,t=l.dependencies,o.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return Er(so,1&so.current|2),e.child}t=t.sibling}null!==o.tail&&Zt()>Vl&&(e.flags|=128,i=!0,$s(o,!1),e.lanes=4194304)}else{if(!i)if(null!==(t=lo(l))){if(e.flags|=128,i=!0,null!==(n=t.updateQueue)&&(e.updateQueue=n,e.flags|=4),$s(o,!0),null===o.tail&&"hidden"===o.tailMode&&!l.alternate&&!ra)return Ys(e),null}else 2*Zt()-o.renderingStartTime>Vl&&1073741824!==n&&(e.flags|=128,i=!0,$s(o,!1),e.lanes=4194304);o.isBackwards?(l.sibling=e.child,e.child=l):(null!==(n=o.last)?n.sibling=l:e.child=l,o.last=l)}return null!==o.tail?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Zt(),e.sibling=null,n=so.current,Er(so,i?1&n|2:1&n),e):(Ys(e),null);case 22:case 23:return hc(),i=null!==e.memoizedState,null!==t&&null!==t.memoizedState!==i&&(e.flags|=8192),i&&0!=(1&e.mode)?0!=(1073741824&Dl)&&(Ys(e),6&e.subtreeFlags&&(e.flags|=8192)):Ys(e),null;case 24:case 25:return null}throw Error(a(156,e.tag))}function Qs(t,e){switch(ea(e),e.tag){case 1:return Dr(e.type)&&Or(),65536&(t=e.flags)?(e.flags=-65537&t|128,e):null;case 3:return ro(),Cr(Pr),Cr(Mr),uo(),0!=(65536&(t=e.flags))&&0==(128&t)?(e.flags=-65537&t|128,e):null;case 5:return oo(e),null;case 13:if(Cr(so),null!==(t=e.memoizedState)&&null!==t.dehydrated){if(null===e.alternate)throw Error(a(340));fa()}return 65536&(t=e.flags)?(e.flags=-65537&t|128,e):null;case 19:return Cr(so),null;case 4:return ro(),null;case 10:return Aa(e.type._context),null;case 22:case 23:return hc(),null;default:return null}}Ds=function(t,e){for(var n=e.child;null!==n;){if(5===n.tag||6===n.tag)t.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Os=function(t,e,n,i){var r=t.memoizedProps;if(r!==i){t=e.stateNode,no(Ja.current);var a,o=null;switch(n){case"input":r=X(t,r),i=X(t,i),o=[];break;case"select":r=N({},r,{value:void 0}),i=N({},i,{value:void 0}),o=[];break;case"textarea":r=it(t,r),i=it(t,i),o=[];break;default:"function"!=typeof r.onClick&&"function"==typeof i.onClick&&(t.onclick=Ji)}for(u in yt(n,i),n=null,r)if(!i.hasOwnProperty(u)&&r.hasOwnProperty(u)&&null!=r[u])if("style"===u){var l=r[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in i){var c=i[u];if(l=null!=r?r[u]:void 0,i.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(o||(o=[]),o.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(o=o||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(o=o||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Fi("scroll",t),o||l===c||(o=[])):(o=o||[]).push(u,c))}n&&(o=o||[]).push("style",n);var u=o;(e.updateQueue=u)&&(e.flags|=4)}},Ls=function(t,e,n,i){n!==i&&(e.flags|=4)};var Xs=!1,Ks=!1,Zs="function"==typeof WeakSet?WeakSet:Set,Gs=null;function Js(t,e){var n=t.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){kc(t,e,n)}else n.current=null}function tl(t,e,n){try{n()}catch(n){kc(t,e,n)}}var el=!1;function nl(t,e,n){var i=e.updateQueue;if(null!==(i=null!==i?i.lastEffect:null)){var r=i=i.next;do{if((r.tag&t)===t){var a=r.destroy;r.destroy=void 0,void 0!==a&&tl(e,n,a)}r=r.next}while(r!==i)}}function il(t,e){if(null!==(e=null!==(e=e.updateQueue)?e.lastEffect:null)){var n=e=e.next;do{if((n.tag&t)===t){var i=n.create;n.destroy=i()}n=n.next}while(n!==e)}}function rl(t){var e=t.ref;if(null!==e){var n=t.stateNode;t.tag,t=n,"function"==typeof e?e(t):e.current=t}}function al(t){var e=t.alternate;null!==e&&(t.alternate=null,al(e)),t.child=null,t.deletions=null,t.sibling=null,5===t.tag&&null!==(e=t.stateNode)&&(delete e[dr],delete e[fr],delete e[gr],delete e[mr],delete e[br]),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function ol(t){return 5===t.tag||3===t.tag||4===t.tag}function sl(t){t:for(;;){for(;null===t.sibling;){if(null===t.return||ol(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;5!==t.tag&&6!==t.tag&&18!==t.tag;){if(2&t.flags)continue t;if(null===t.child||4===t.tag)continue t;t.child.return=t,t=t.child}if(!(2&t.flags))return t.stateNode}}function ll(t,e,n){var i=t.tag;if(5===i||6===i)t=t.stateNode,e?8===n.nodeType?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(8===n.nodeType?(e=n.parentNode).insertBefore(t,n):(e=n).appendChild(t),null!=(n=n._reactRootContainer)||null!==e.onclick||(e.onclick=Ji));else if(4!==i&&null!==(t=t.child))for(ll(t,e,n),t=t.sibling;null!==t;)ll(t,e,n),t=t.sibling}function cl(t,e,n){var i=t.tag;if(5===i||6===i)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(4!==i&&null!==(t=t.child))for(cl(t,e,n),t=t.sibling;null!==t;)cl(t,e,n),t=t.sibling}var ul=null,hl=!1;function dl(t,e,n){for(n=n.child;null!==n;)fl(t,e,n),n=n.sibling}function fl(t,e,n){if(ae&&"function"==typeof ae.onCommitFiberUnmount)try{ae.onCommitFiberUnmount(re,n)}catch(t){}switch(n.tag){case 5:Ks||Js(n,e);case 6:var i=ul,r=hl;ul=null,dl(t,e,n),hl=r,null!==(ul=i)&&(hl?(t=ul,n=n.stateNode,8===t.nodeType?t.parentNode.removeChild(n):t.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(hl?(t=ul,n=n.stateNode,8===t.nodeType?lr(t.parentNode,n):1===t.nodeType&&lr(t,n),Ve(t)):lr(ul,n.stateNode));break;case 4:i=ul,r=hl,ul=n.stateNode.containerInfo,hl=!0,dl(t,e,n),ul=i,hl=r;break;case 0:case 11:case 14:case 15:if(!Ks&&null!==(i=n.updateQueue)&&null!==(i=i.lastEffect)){r=i=i.next;do{var a=r,o=a.destroy;a=a.tag,void 0!==o&&(0!=(2&a)||0!=(4&a))&&tl(n,e,o),r=r.next}while(r!==i)}dl(t,e,n);break;case 1:if(!Ks&&(Js(n,e),"function"==typeof(i=n.stateNode).componentWillUnmount))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(t){kc(n,e,t)}dl(t,e,n);break;case 21:dl(t,e,n);break;case 22:1&n.mode?(Ks=(i=Ks)||null!==n.memoizedState,dl(t,e,n),Ks=i):dl(t,e,n);break;default:dl(t,e,n)}}function pl(t){var e=t.updateQueue;if(null!==e){t.updateQueue=null;var n=t.stateNode;null===n&&(n=t.stateNode=new Zs),e.forEach((function(e){var i=Mc.bind(null,t,e);n.has(e)||(n.add(e),e.then(i,i))}))}}function gl(t,e){var n=e.deletions;if(null!==n)for(var i=0;i<n.length;i++){var r=n[i];try{var o=t,s=e,l=s;t:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,hl=!1;break t;case 3:case 4:ul=l.stateNode.containerInfo,hl=!0;break t}l=l.return}if(null===ul)throw Error(a(160));fl(o,s,r),ul=null,hl=!1;var c=r.alternate;null!==c&&(c.return=null),r.return=null}catch(t){kc(r,e,t)}}if(12854&e.subtreeFlags)for(e=e.child;null!==e;)ml(e,t),e=e.sibling}function ml(t,e){var n=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(gl(e,t),bl(t),4&i){try{nl(3,t,t.return),il(3,t)}catch(e){kc(t,t.return,e)}try{nl(5,t,t.return)}catch(e){kc(t,t.return,e)}}break;case 1:gl(e,t),bl(t),512&i&&null!==n&&Js(n,n.return);break;case 5:if(gl(e,t),bl(t),512&i&&null!==n&&Js(n,n.return),32&t.flags){var r=t.stateNode;try{dt(r,"")}catch(e){kc(t,t.return,e)}}if(4&i&&null!=(r=t.stateNode)){var o=t.memoizedProps,s=null!==n?n.memoizedProps:o,l=t.type,c=t.updateQueue;if(t.updateQueue=null,null!==c)try{"input"===l&&"radio"===o.type&&null!=o.name&&Z(r,o),vt(l,s);var u=vt(l,o);for(s=0;s<c.length;s+=2){var h=c[s],d=c[s+1];"style"===h?mt(r,d):"dangerouslySetInnerHTML"===h?ht(r,d):"children"===h?dt(r,d):v(r,h,d,u)}switch(l){case"input":G(r,o);break;case"textarea":at(r,o);break;case"select":var f=r._wrapperState.wasMultiple;r._wrapperState.wasMultiple=!!o.multiple;var p=o.value;null!=p?nt(r,!!o.multiple,p,!1):f!==!!o.multiple&&(null!=o.defaultValue?nt(r,!!o.multiple,o.defaultValue,!0):nt(r,!!o.multiple,o.multiple?[]:"",!1))}r[fr]=o}catch(e){kc(t,t.return,e)}}break;case 6:if(gl(e,t),bl(t),4&i){if(null===t.stateNode)throw Error(a(162));r=t.stateNode,o=t.memoizedProps;try{r.nodeValue=o}catch(e){kc(t,t.return,e)}}break;case 3:if(gl(e,t),bl(t),4&i&&null!==n&&n.memoizedState.isDehydrated)try{Ve(e.containerInfo)}catch(e){kc(t,t.return,e)}break;case 4:default:gl(e,t),bl(t);break;case 13:gl(e,t),bl(t),8192&(r=t.child).flags&&(o=null!==r.memoizedState,r.stateNode.isHidden=o,!o||null!==r.alternate&&null!==r.alternate.memoizedState||(Wl=Zt())),4&i&&pl(t);break;case 22:if(h=null!==n&&null!==n.memoizedState,1&t.mode?(Ks=(u=Ks)||h,gl(e,t),Ks=u):gl(e,t),bl(t),8192&i){if(u=null!==t.memoizedState,(t.stateNode.isHidden=u)&&!h&&0!=(1&t.mode))for(Gs=t,h=t.child;null!==h;){for(d=Gs=h;null!==Gs;){switch(p=(f=Gs).child,f.tag){case 0:case 11:case 14:case 15:nl(4,f,f.return);break;case 1:Js(f,f.return);var g=f.stateNode;if("function"==typeof g.componentWillUnmount){i=f,n=f.return;try{e=i,g.props=e.memoizedProps,g.state=e.memoizedState,g.componentWillUnmount()}catch(t){kc(i,n,t)}}break;case 5:Js(f,f.return);break;case 22:if(null!==f.memoizedState){_l(d);continue}}null!==p?(p.return=f,Gs=p):_l(d)}h=h.sibling}t:for(h=null,d=t;;){if(5===d.tag){if(null===h){h=d;try{r=d.stateNode,u?"function"==typeof(o=r.style).setProperty?o.setProperty("display","none","important"):o.display="none":(l=d.stateNode,s=null!=(c=d.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,l.style.display=gt("display",s))}catch(e){kc(t,t.return,e)}}}else if(6===d.tag){if(null===h)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(e){kc(t,t.return,e)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===t)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===t)break t;for(;null===d.sibling;){if(null===d.return||d.return===t)break t;h===d&&(h=null),d=d.return}h===d&&(h=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:gl(e,t),bl(t),4&i&&pl(t);case 21:}}function bl(t){var e=t.flags;if(2&e){try{t:{for(var n=t.return;null!==n;){if(ol(n)){var i=n;break t}n=n.return}throw Error(a(160))}switch(i.tag){case 5:var r=i.stateNode;32&i.flags&&(dt(r,""),i.flags&=-33),cl(t,sl(t),r);break;case 3:case 4:var o=i.stateNode.containerInfo;ll(t,sl(t),o);break;default:throw Error(a(161))}}catch(e){kc(t,t.return,e)}t.flags&=-3}4096&e&&(t.flags&=-4097)}function yl(t,e,n){Gs=t,vl(t,e,n)}function vl(t,e,n){for(var i=0!=(1&t.mode);null!==Gs;){var r=Gs,a=r.child;if(22===r.tag&&i){var o=null!==r.memoizedState||Xs;if(!o){var s=r.alternate,l=null!==s&&null!==s.memoizedState||Ks;s=Xs;var c=Ks;if(Xs=o,(Ks=l)&&!c)for(Gs=r;null!==Gs;)l=(o=Gs).child,22===o.tag&&null!==o.memoizedState?Al(r):null!==l?(l.return=o,Gs=l):Al(r);for(;null!==a;)Gs=a,vl(a,e,n),a=a.sibling;Gs=r,Xs=s,Ks=c}xl(t)}else 0!=(8772&r.subtreeFlags)&&null!==a?(a.return=r,Gs=a):xl(t)}}function xl(t){for(;null!==Gs;){var e=Gs;if(0!=(8772&e.flags)){var n=e.alternate;try{if(0!=(8772&e.flags))switch(e.tag){case 0:case 11:case 15:Ks||il(5,e);break;case 1:var i=e.stateNode;if(4&e.flags&&!Ks)if(null===n)i.componentDidMount();else{var r=e.elementType===e.type?n.memoizedProps:ma(e.type,n.memoizedProps);i.componentDidUpdate(r,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=e.updateQueue;null!==o&&Ia(e,o,i);break;case 3:var s=e.updateQueue;if(null!==s){if(n=null,null!==e.child)switch(e.child.tag){case 5:case 1:n=e.child.stateNode}Ia(e,s,n)}break;case 5:var l=e.stateNode;if(null===n&&4&e.flags){n=l;var c=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===e.memoizedState){var u=e.alternate;if(null!==u){var h=u.memoizedState;if(null!==h){var d=h.dehydrated;null!==d&&Ve(d)}}}break;default:throw Error(a(163))}Ks||512&e.flags&&rl(e)}catch(t){kc(e,e.return,t)}}if(e===t){Gs=null;break}if(null!==(n=e.sibling)){n.return=e.return,Gs=n;break}Gs=e.return}}function _l(t){for(;null!==Gs;){var e=Gs;if(e===t){Gs=null;break}var n=e.sibling;if(null!==n){n.return=e.return,Gs=n;break}Gs=e.return}}function Al(t){for(;null!==Gs;){var e=Gs;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{il(4,e)}catch(t){kc(e,n,t)}break;case 1:var i=e.stateNode;if("function"==typeof i.componentDidMount){var r=e.return;try{i.componentDidMount()}catch(t){kc(e,r,t)}}var a=e.return;try{rl(e)}catch(t){kc(e,a,t)}break;case 5:var o=e.return;try{rl(e)}catch(t){kc(e,o,t)}}}catch(t){kc(e,e.return,t)}if(e===t){Gs=null;break}var s=e.sibling;if(null!==s){s.return=e.return,Gs=s;break}Gs=e.return}}var wl,kl=Math.ceil,Cl=x.ReactCurrentDispatcher,El=x.ReactCurrentOwner,Sl=x.ReactCurrentBatchConfig,Ml=0,Pl=null,Bl=null,Tl=0,Dl=0,Ol=kr(0),Ll=0,zl=null,Rl=0,Nl=0,Il=0,Fl=null,jl=null,Wl=0,Vl=1/0,Hl=null,Ul=!1,$l=null,Yl=null,ql=!1,Ql=null,Xl=0,Kl=0,Zl=null,Gl=-1,Jl=0;function tc(){return 0!=(6&Ml)?Zt():-1!==Gl?Gl:Gl=Zt()}function ec(t){return 0==(1&t.mode)?1:0!=(2&Ml)&&0!==Tl?Tl&-Tl:null!==ga.transition?(0===Jl&&(Jl=ge()),Jl):0!==(t=ve)?t:t=void 0===(t=window.event)?16:Ke(t.type)}function nc(t,e,n,i){if(50<Kl)throw Kl=0,Zl=null,Error(a(185));be(t,n,i),0!=(2&Ml)&&t===Pl||(t===Pl&&(0==(2&Ml)&&(Nl|=n),4===Ll&&sc(t,Tl)),ic(t,i),1===n&&0===Ml&&0==(1&e.mode)&&(Vl=Zt()+500,Fr&&Vr()))}function ic(t,e){var n=t.callbackNode;!function(t,e){for(var n=t.suspendedLanes,i=t.pingedLanes,r=t.expirationTimes,a=t.pendingLanes;0<a;){var o=31-oe(a),s=1<<o,l=r[o];-1===l?0!=(s&n)&&0==(s&i)||(r[o]=fe(s,e)):l<=e&&(t.expiredLanes|=s),a&=~s}}(t,e);var i=de(t,t===Pl?Tl:0);if(0===i)null!==n&&Qt(n),t.callbackNode=null,t.callbackPriority=0;else if(e=i&-i,t.callbackPriority!==e){if(null!=n&&Qt(n),1===e)0===t.tag?function(t){Fr=!0,Wr(t)}(lc.bind(null,t)):Wr(lc.bind(null,t)),or((function(){0==(6&Ml)&&Vr()})),n=null;else{switch(xe(i)){case 1:n=Jt;break;case 4:n=te;break;case 16:default:n=ee;break;case 536870912:n=ie}n=Pc(n,rc.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function rc(t,e){if(Gl=-1,Jl=0,0!=(6&Ml))throw Error(a(327));var n=t.callbackNode;if(Ac()&&t.callbackNode!==n)return null;var i=de(t,t===Pl?Tl:0);if(0===i)return null;if(0!=(30&i)||0!=(i&t.expiredLanes)||e)e=mc(t,i);else{e=i;var r=Ml;Ml|=2;var o=pc();for(Pl===t&&Tl===e||(Hl=null,Vl=Zt()+500,dc(t,e));;)try{yc();break}catch(e){fc(t,e)}_a(),Cl.current=o,Ml=r,null!==Bl?e=0:(Pl=null,Tl=0,e=Ll)}if(0!==e){if(2===e&&0!==(r=pe(t))&&(i=r,e=ac(t,r)),1===e)throw n=zl,dc(t,0),sc(t,i),ic(t,Zt()),n;if(6===e)sc(t,i);else{if(r=t.current.alternate,0==(30&i)&&!function(t){for(var e=t;;){if(16384&e.flags){var n=e.updateQueue;if(null!==n&&null!==(n=n.stores))for(var i=0;i<n.length;i++){var r=n[i],a=r.getSnapshot;r=r.value;try{if(!si(a(),r))return!1}catch(t){return!1}}}if(n=e.child,16384&e.subtreeFlags&&null!==n)n.return=e,e=n;else{if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}(r)&&(2===(e=mc(t,i))&&0!==(o=pe(t))&&(i=o,e=ac(t,o)),1===e))throw n=zl,dc(t,0),sc(t,i),ic(t,Zt()),n;switch(t.finishedWork=r,t.finishedLanes=i,e){case 0:case 1:throw Error(a(345));case 2:case 5:_c(t,jl,Hl);break;case 3:if(sc(t,i),(130023424&i)===i&&10<(e=Wl+500-Zt())){if(0!==de(t,0))break;if(((r=t.suspendedLanes)&i)!==i){tc(),t.pingedLanes|=t.suspendedLanes&r;break}t.timeoutHandle=ir(_c.bind(null,t,jl,Hl),e);break}_c(t,jl,Hl);break;case 4:if(sc(t,i),(4194240&i)===i)break;for(e=t.eventTimes,r=-1;0<i;){var s=31-oe(i);o=1<<s,(s=e[s])>r&&(r=s),i&=~o}if(i=r,10<(i=(120>(i=Zt()-i)?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*kl(i/1960))-i)){t.timeoutHandle=ir(_c.bind(null,t,jl,Hl),i);break}_c(t,jl,Hl);break;default:throw Error(a(329))}}}return ic(t,Zt()),t.callbackNode===n?rc.bind(null,t):null}function ac(t,e){var n=Fl;return t.current.memoizedState.isDehydrated&&(dc(t,e).flags|=256),2!==(t=mc(t,e))&&(e=jl,jl=n,null!==e&&oc(e)),t}function oc(t){null===jl?jl=t:jl.push.apply(jl,t)}function sc(t,e){for(e&=~Il,e&=~Nl,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-oe(e),i=1<<n;t[n]=-1,e&=~i}}function lc(t){if(0!=(6&Ml))throw Error(a(327));Ac();var e=de(t,0);if(0==(1&e))return ic(t,Zt()),null;var n=mc(t,e);if(0!==t.tag&&2===n){var i=pe(t);0!==i&&(e=i,n=ac(t,i))}if(1===n)throw n=zl,dc(t,0),sc(t,e),ic(t,Zt()),n;if(6===n)throw Error(a(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,_c(t,jl,Hl),ic(t,Zt()),null}function cc(t,e){var n=Ml;Ml|=1;try{return t(e)}finally{0===(Ml=n)&&(Vl=Zt()+500,Fr&&Vr())}}function uc(t){null!==Ql&&0===Ql.tag&&0==(6&Ml)&&Ac();var e=Ml;Ml|=1;var n=Sl.transition,i=ve;try{if(Sl.transition=null,ve=1,t)return t()}finally{ve=i,Sl.transition=n,0==(6&(Ml=e))&&Vr()}}function hc(){Dl=Ol.current,Cr(Ol)}function dc(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(-1!==n&&(t.timeoutHandle=-1,rr(n)),null!==Bl)for(n=Bl.return;null!==n;){var i=n;switch(ea(i),i.tag){case 1:null!=(i=i.type.childContextTypes)&&Or();break;case 3:ro(),Cr(Pr),Cr(Mr),uo();break;case 5:oo(i);break;case 4:ro();break;case 13:case 19:Cr(so);break;case 10:Aa(i.type._context);break;case 22:case 23:hc()}n=n.return}if(Pl=t,Bl=t=Oc(t.current,null),Tl=Dl=e,Ll=0,zl=null,Il=Nl=Rl=0,jl=Fl=null,null!==Ea){for(e=0;e<Ea.length;e++)if(null!==(i=(n=Ea[e]).interleaved)){n.interleaved=null;var r=i.next,a=n.pending;if(null!==a){var o=a.next;a.next=r,i.next=o}n.pending=i}Ea=null}return t}function fc(t,e){for(;;){var n=Bl;try{if(_a(),ho.current=os,yo){for(var i=go.memoizedState;null!==i;){var r=i.queue;null!==r&&(r.pending=null),i=i.next}yo=!1}if(po=0,bo=mo=go=null,vo=!1,xo=0,El.current=null,null===n||null===n.return){Ll=1,zl=e,Bl=null;break}t:{var o=t,s=n.return,l=n,c=e;if(e=Tl,l.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,h=l,d=h.tag;if(0==(1&h.mode)&&(0===d||11===d||15===d)){var f=h.alternate;f?(h.updateQueue=f.updateQueue,h.memoizedState=f.memoizedState,h.lanes=f.lanes):(h.updateQueue=null,h.memoizedState=null)}var p=bs(s);if(null!==p){p.flags&=-257,ys(p,s,l,0,e),1&p.mode&&ms(o,u,e),c=u;var g=(e=p).updateQueue;if(null===g){var m=new Set;m.add(c),e.updateQueue=m}else g.add(c);break t}if(0==(1&e)){ms(o,u,e),gc();break t}c=Error(a(426))}else if(ra&&1&l.mode){var b=bs(s);if(null!==b){0==(65536&b.flags)&&(b.flags|=256),ys(b,s,l,0,e),pa(us(c,l));break t}}o=c=us(c,l),4!==Ll&&(Ll=2),null===Fl?Fl=[o]:Fl.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,e&=-e,o.lanes|=e,Ra(o,ps(0,c,e));break t;case 1:l=c;var y=o.type,v=o.stateNode;if(0==(128&o.flags)&&("function"==typeof y.getDerivedStateFromError||null!==v&&"function"==typeof v.componentDidCatch&&(null===Yl||!Yl.has(v)))){o.flags|=65536,e&=-e,o.lanes|=e,Ra(o,gs(o,l,e));break t}}o=o.return}while(null!==o)}xc(n)}catch(t){e=t,Bl===n&&null!==n&&(Bl=n=n.return);continue}break}}function pc(){var t=Cl.current;return Cl.current=os,null===t?os:t}function gc(){0!==Ll&&3!==Ll&&2!==Ll||(Ll=4),null===Pl||0==(268435455&Rl)&&0==(268435455&Nl)||sc(Pl,Tl)}function mc(t,e){var n=Ml;Ml|=2;var i=pc();for(Pl===t&&Tl===e||(Hl=null,dc(t,e));;)try{bc();break}catch(e){fc(t,e)}if(_a(),Ml=n,Cl.current=i,null!==Bl)throw Error(a(261));return Pl=null,Tl=0,Ll}function bc(){for(;null!==Bl;)vc(Bl)}function yc(){for(;null!==Bl&&!Xt();)vc(Bl)}function vc(t){var e=wl(t.alternate,t,Dl);t.memoizedProps=t.pendingProps,null===e?xc(t):Bl=e,El.current=null}function xc(t){var e=t;do{var n=e.alternate;if(t=e.return,0==(32768&e.flags)){if(null!==(n=qs(n,e,Dl)))return void(Bl=n)}else{if(null!==(n=Qs(n,e)))return n.flags&=32767,void(Bl=n);if(null===t)return Ll=6,void(Bl=null);t.flags|=32768,t.subtreeFlags=0,t.deletions=null}if(null!==(e=e.sibling))return void(Bl=e);Bl=e=t}while(null!==e);0===Ll&&(Ll=5)}function _c(t,e,n){var i=ve,r=Sl.transition;try{Sl.transition=null,ve=1,function(t,e,n,i){do{Ac()}while(null!==Ql);if(0!=(6&Ml))throw Error(a(327));n=t.finishedWork;var r=t.finishedLanes;if(null===n)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(a(177));t.callbackNode=null,t.callbackPriority=0;var o=n.lanes|n.childLanes;if(function(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var i=t.eventTimes;for(t=t.expirationTimes;0<n;){var r=31-oe(n),a=1<<r;e[r]=0,i[r]=-1,t[r]=-1,n&=~a}}(t,o),t===Pl&&(Bl=Pl=null,Tl=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||ql||(ql=!0,Pc(ee,(function(){return Ac(),null}))),o=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||o){o=Sl.transition,Sl.transition=null;var s=ve;ve=1;var l=Ml;Ml|=4,El.current=null,function(t,e){if(tr=Ue,fi(t=di())){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{var i=(n=(n=t.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(i&&0!==i.rangeCount){n=i.anchorNode;var r=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch(t){n=null;break t}var s=0,l=-1,c=-1,u=0,h=0,d=t,f=null;e:for(;;){for(var p;d!==n||0!==r&&3!==d.nodeType||(l=s+r),d!==o||0!==i&&3!==d.nodeType||(c=s+i),3===d.nodeType&&(s+=d.nodeValue.length),null!==(p=d.firstChild);)f=d,d=p;for(;;){if(d===t)break e;if(f===n&&++u===r&&(l=s),f===o&&++h===i&&(c=s),null!==(p=d.nextSibling))break;f=(d=f).parentNode}d=p}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(er={focusedElem:t,selectionRange:n},Ue=!1,Gs=e;null!==Gs;)if(t=(e=Gs).child,0!=(1028&e.subtreeFlags)&&null!==t)t.return=e,Gs=t;else for(;null!==Gs;){e=Gs;try{var g=e.alternate;if(0!=(1024&e.flags))switch(e.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var m=g.memoizedProps,b=g.memoizedState,y=e.stateNode,v=y.getSnapshotBeforeUpdate(e.elementType===e.type?m:ma(e.type,m),b);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var x=e.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(a(163))}}catch(t){kc(e,e.return,t)}if(null!==(t=e.sibling)){t.return=e.return,Gs=t;break}Gs=e.return}g=el,el=!1}(t,n),ml(n,t),pi(er),Ue=!!tr,er=tr=null,t.current=n,yl(n,t,r),Kt(),Ml=l,ve=s,Sl.transition=o}else t.current=n;if(ql&&(ql=!1,Ql=t,Xl=r),0===(o=t.pendingLanes)&&(Yl=null),function(t){if(ae&&"function"==typeof ae.onCommitFiberRoot)try{ae.onCommitFiberRoot(re,t,void 0,128==(128&t.current.flags))}catch(t){}}(n.stateNode),ic(t,Zt()),null!==e)for(i=t.onRecoverableError,n=0;n<e.length;n++)i((r=e[n]).value,{componentStack:r.stack,digest:r.digest});if(Ul)throw Ul=!1,t=$l,$l=null,t;0!=(1&Xl)&&0!==t.tag&&Ac(),0!=(1&(o=t.pendingLanes))?t===Zl?Kl++:(Kl=0,Zl=t):Kl=0,Vr()}(t,e,n,i)}finally{Sl.transition=r,ve=i}return null}function Ac(){if(null!==Ql){var t=xe(Xl),e=Sl.transition,n=ve;try{if(Sl.transition=null,ve=16>t?16:t,null===Ql)var i=!1;else{if(t=Ql,Ql=null,Xl=0,0!=(6&Ml))throw Error(a(331));var r=Ml;for(Ml|=4,Gs=t.current;null!==Gs;){var o=Gs,s=o.child;if(0!=(16&Gs.flags)){var l=o.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Gs=u;null!==Gs;){var h=Gs;switch(h.tag){case 0:case 11:case 15:nl(8,h,o)}var d=h.child;if(null!==d)d.return=h,Gs=d;else for(;null!==Gs;){var f=(h=Gs).sibling,p=h.return;if(al(h),h===u){Gs=null;break}if(null!==f){f.return=p,Gs=f;break}Gs=p}}}var g=o.alternate;if(null!==g){var m=g.child;if(null!==m){g.child=null;do{var b=m.sibling;m.sibling=null,m=b}while(null!==m)}}Gs=o}}if(0!=(2064&o.subtreeFlags)&&null!==s)s.return=o,Gs=s;else t:for(;null!==Gs;){if(0!=(2048&(o=Gs).flags))switch(o.tag){case 0:case 11:case 15:nl(9,o,o.return)}var y=o.sibling;if(null!==y){y.return=o.return,Gs=y;break t}Gs=o.return}}var v=t.current;for(Gs=v;null!==Gs;){var x=(s=Gs).child;if(0!=(2064&s.subtreeFlags)&&null!==x)x.return=s,Gs=x;else t:for(s=v;null!==Gs;){if(0!=(2048&(l=Gs).flags))try{switch(l.tag){case 0:case 11:case 15:il(9,l)}}catch(t){kc(l,l.return,t)}if(l===s){Gs=null;break t}var _=l.sibling;if(null!==_){_.return=l.return,Gs=_;break t}Gs=l.return}}if(Ml=r,Vr(),ae&&"function"==typeof ae.onPostCommitFiberRoot)try{ae.onPostCommitFiberRoot(re,t)}catch(t){}i=!0}return i}finally{ve=n,Sl.transition=e}}return!1}function wc(t,e,n){t=La(t,e=ps(0,e=us(n,e),1),1),e=tc(),null!==t&&(be(t,1,e),ic(t,e))}function kc(t,e,n){if(3===t.tag)wc(t,t,n);else for(;null!==e;){if(3===e.tag){wc(e,t,n);break}if(1===e.tag){var i=e.stateNode;if("function"==typeof e.type.getDerivedStateFromError||"function"==typeof i.componentDidCatch&&(null===Yl||!Yl.has(i))){e=La(e,t=gs(e,t=us(n,t),1),1),t=tc(),null!==e&&(be(e,1,t),ic(e,t));break}}e=e.return}}function Cc(t,e,n){var i=t.pingCache;null!==i&&i.delete(e),e=tc(),t.pingedLanes|=t.suspendedLanes&n,Pl===t&&(Tl&n)===n&&(4===Ll||3===Ll&&(130023424&Tl)===Tl&&500>Zt()-Wl?dc(t,0):Il|=n),ic(t,e)}function Ec(t,e){0===e&&(0==(1&t.mode)?e=1:(e=ue,0==(130023424&(ue<<=1))&&(ue=4194304)));var n=tc();null!==(t=Pa(t,e))&&(be(t,e,n),ic(t,n))}function Sc(t){var e=t.memoizedState,n=0;null!==e&&(n=e.retryLane),Ec(t,n)}function Mc(t,e){var n=0;switch(t.tag){case 13:var i=t.stateNode,r=t.memoizedState;null!==r&&(n=r.retryLane);break;case 19:i=t.stateNode;break;default:throw Error(a(314))}null!==i&&i.delete(e),Ec(t,n)}function Pc(t,e){return qt(t,e)}function Bc(t,e,n,i){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tc(t,e,n,i){return new Bc(t,e,n,i)}function Dc(t){return!(!(t=t.prototype)||!t.isReactComponent)}function Oc(t,e){var n=t.alternate;return null===n?((n=Tc(t.tag,e,t.key,t.mode)).elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&t.flags,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Lc(t,e,n,i,r,o){var s=2;if(i=t,"function"==typeof t)Dc(t)&&(s=1);else if("string"==typeof t)s=5;else t:switch(t){case w:return zc(n.children,r,o,e);case k:s=8,r|=8;break;case C:return(t=Tc(12,n,e,2|r)).elementType=C,t.lanes=o,t;case P:return(t=Tc(13,n,e,r)).elementType=P,t.lanes=o,t;case B:return(t=Tc(19,n,e,r)).elementType=B,t.lanes=o,t;case O:return Rc(n,r,o,e);default:if("object"==typeof t&&null!==t)switch(t.$$typeof){case E:s=10;break t;case S:s=9;break t;case M:s=11;break t;case T:s=14;break t;case D:s=16,i=null;break t}throw Error(a(130,null==t?t:typeof t,""))}return(e=Tc(s,n,e,r)).elementType=t,e.type=i,e.lanes=o,e}function zc(t,e,n,i){return(t=Tc(7,t,i,e)).lanes=n,t}function Rc(t,e,n,i){return(t=Tc(22,t,i,e)).elementType=O,t.lanes=n,t.stateNode={isHidden:!1},t}function Nc(t,e,n){return(t=Tc(6,t,null,e)).lanes=n,t}function Ic(t,e,n){return(e=Tc(4,null!==t.children?t.children:[],t.key,e)).lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Fc(t,e,n,i,r){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=me(0),this.expirationTimes=me(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=me(0),this.identifierPrefix=i,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function jc(t,e,n,i,r,a,o,s,l){return t=new Fc(t,e,n,s,l),1===e?(e=1,!0===a&&(e|=8)):e=0,a=Tc(3,null,null,e),t.current=a,a.stateNode=t,a.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ta(a),t}function Wc(t,e,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:A,key:null==i?null:""+i,children:t,containerInfo:e,implementation:n}}function Vc(t){if(!t)return Sr;t:{if(Vt(t=t._reactInternals)!==t||1!==t.tag)throw Error(a(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break t;case 1:if(Dr(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break t}}e=e.return}while(null!==e);throw Error(a(171))}if(1===t.tag){var n=t.type;if(Dr(n))return zr(t,n,e)}return e}function Hc(t,e,n,i,r,a,o,s,l){return(t=jc(n,i,!0,t,0,a,0,s,l)).context=Vc(null),n=t.current,(a=Oa(i=tc(),r=ec(n))).callback=null!=e?e:null,La(n,a,r),t.current.lanes=r,be(t,r,i),ic(t,i),t}function Uc(t,e,n,i){var r=e.current,a=tc(),o=ec(r);return n=Vc(n),null===e.context?e.context=n:e.pendingContext=n,(e=Oa(a,o)).payload={element:t},null!==(i=void 0===i?null:i)&&(e.callback=i),null!==(t=La(r,e,o))&&(nc(t,r,o,a),za(t,r,o)),o}function $c(t){return(t=t.current).child?(t.child.tag,t.child.stateNode):null}function Yc(t,e){if(null!==(t=t.memoizedState)&&null!==t.dehydrated){var n=t.retryLane;t.retryLane=0!==n&&n<e?n:e}}function qc(t,e){Yc(t,e),(t=t.alternate)&&Yc(t,e)}wl=function(t,e,n){if(null!==t)if(t.memoizedProps!==e.pendingProps||Pr.current)xs=!0;else{if(0==(t.lanes&n)&&0==(128&e.flags))return xs=!1,function(t,e,n){switch(e.tag){case 3:Bs(e),fa();break;case 5:ao(e);break;case 1:Dr(e.type)&&Rr(e);break;case 4:io(e,e.stateNode.containerInfo);break;case 10:var i=e.type._context,r=e.memoizedProps.value;Er(ba,i._currentValue),i._currentValue=r;break;case 13:if(null!==(i=e.memoizedState))return null!==i.dehydrated?(Er(so,1&so.current),e.flags|=128,null):0!=(n&e.child.childLanes)?Ns(t,e,n):(Er(so,1&so.current),null!==(t=Us(t,e,n))?t.sibling:null);Er(so,1&so.current);break;case 19:if(i=0!=(n&e.childLanes),0!=(128&t.flags)){if(i)return Vs(t,e,n);e.flags|=128}if(null!==(r=e.memoizedState)&&(r.rendering=null,r.tail=null,r.lastEffect=null),Er(so,so.current),i)break;return null;case 22:case 23:return e.lanes=0,Cs(t,e,n)}return Us(t,e,n)}(t,e,n);xs=0!=(131072&t.flags)}else xs=!1,ra&&0!=(1048576&e.flags)&&Jr(e,Yr,e.index);switch(e.lanes=0,e.tag){case 2:var i=e.type;Hs(t,e),t=e.pendingProps;var r=Tr(e,Mr.current);ka(e,n),r=ko(null,e,i,t,r,n);var o=Co();return e.flags|=1,"object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Dr(i)?(o=!0,Rr(e)):o=!1,e.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,Ta(e),r.updater=Wa,e.stateNode=r,r._reactInternals=e,$a(e,i,t,n),e=Ps(null,e,i,!0,o,n)):(e.tag=0,ra&&o&&ta(e),_s(null,e,r,n),e=e.child),e;case 16:i=e.elementType;t:{switch(Hs(t,e),t=e.pendingProps,i=(r=i._init)(i._payload),e.type=i,r=e.tag=function(t){if("function"==typeof t)return Dc(t)?1:0;if(null!=t){if((t=t.$$typeof)===M)return 11;if(t===T)return 14}return 2}(i),t=ma(i,t),r){case 0:e=Ss(null,e,i,t,n);break t;case 1:e=Ms(null,e,i,t,n);break t;case 11:e=As(null,e,i,t,n);break t;case 14:e=ws(null,e,i,ma(i.type,t),n);break t}throw Error(a(306,i,""))}return e;case 0:return i=e.type,r=e.pendingProps,Ss(t,e,i,r=e.elementType===i?r:ma(i,r),n);case 1:return i=e.type,r=e.pendingProps,Ms(t,e,i,r=e.elementType===i?r:ma(i,r),n);case 3:t:{if(Bs(e),null===t)throw Error(a(387));i=e.pendingProps,r=(o=e.memoizedState).element,Da(t,e),Na(e,i,null,n);var s=e.memoizedState;if(i=s.element,o.isDehydrated){if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},e.updateQueue.baseState=o,e.memoizedState=o,256&e.flags){e=Ts(t,e,i,n,r=us(Error(a(423)),e));break t}if(i!==r){e=Ts(t,e,i,n,r=us(Error(a(424)),e));break t}for(ia=cr(e.stateNode.containerInfo.firstChild),na=e,ra=!0,aa=null,n=Za(e,null,i,n),e.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(fa(),i===r){e=Us(t,e,n);break t}_s(t,e,i,n)}e=e.child}return e;case 5:return ao(e),null===t&&ca(e),i=e.type,r=e.pendingProps,o=null!==t?t.memoizedProps:null,s=r.children,nr(i,r)?s=null:null!==o&&nr(i,o)&&(e.flags|=32),Es(t,e),_s(t,e,s,n),e.child;case 6:return null===t&&ca(e),null;case 13:return Ns(t,e,n);case 4:return io(e,e.stateNode.containerInfo),i=e.pendingProps,null===t?e.child=Ka(e,null,i,n):_s(t,e,i,n),e.child;case 11:return i=e.type,r=e.pendingProps,As(t,e,i,r=e.elementType===i?r:ma(i,r),n);case 7:return _s(t,e,e.pendingProps,n),e.child;case 8:case 12:return _s(t,e,e.pendingProps.children,n),e.child;case 10:t:{if(i=e.type._context,r=e.pendingProps,o=e.memoizedProps,s=r.value,Er(ba,i._currentValue),i._currentValue=s,null!==o)if(si(o.value,s)){if(o.children===r.children&&!Pr.current){e=Us(t,e,n);break t}}else for(null!==(o=e.child)&&(o.return=e);null!==o;){var l=o.dependencies;if(null!==l){s=o.child;for(var c=l.firstContext;null!==c;){if(c.context===i){if(1===o.tag){(c=Oa(-1,n&-n)).tag=2;var u=o.updateQueue;if(null!==u){var h=(u=u.shared).pending;null===h?c.next=c:(c.next=h.next,h.next=c),u.pending=c}}o.lanes|=n,null!==(c=o.alternate)&&(c.lanes|=n),wa(o.return,n,e),l.lanes|=n;break}c=c.next}}else if(10===o.tag)s=o.type===e.type?null:o.child;else if(18===o.tag){if(null===(s=o.return))throw Error(a(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),wa(s,n,e),s=o.sibling}else s=o.child;if(null!==s)s.return=o;else for(s=o;null!==s;){if(s===e){s=null;break}if(null!==(o=s.sibling)){o.return=s.return,s=o;break}s=s.return}o=s}_s(t,e,r.children,n),e=e.child}return e;case 9:return r=e.type,i=e.pendingProps.children,ka(e,n),i=i(r=Ca(r)),e.flags|=1,_s(t,e,i,n),e.child;case 14:return r=ma(i=e.type,e.pendingProps),ws(t,e,i,r=ma(i.type,r),n);case 15:return ks(t,e,e.type,e.pendingProps,n);case 17:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:ma(i,r),Hs(t,e),e.tag=1,Dr(i)?(t=!0,Rr(e)):t=!1,ka(e,n),Ha(e,i,r),$a(e,i,r,n),Ps(null,e,i,!0,t,n);case 19:return Vs(t,e,n);case 22:return Cs(t,e,n)}throw Error(a(156,e.tag))};var Qc="function"==typeof reportError?reportError:function(t){console.error(t)};function Xc(t){this._internalRoot=t}function Kc(t){this._internalRoot=t}function Zc(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)}function Gc(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType&&(8!==t.nodeType||" react-mount-point-unstable "!==t.nodeValue))}function Jc(){}function tu(t,e,n,i,r){var a=n._reactRootContainer;if(a){var o=a;if("function"==typeof r){var s=r;r=function(){var t=$c(o);s.call(t)}}Uc(e,o,t,r)}else o=function(t,e,n,i,r){if(r){if("function"==typeof i){var a=i;i=function(){var t=$c(o);a.call(t)}}var o=Hc(e,i,t,0,null,!1,0,"",Jc);return t._reactRootContainer=o,t[pr]=o.current,Vi(8===t.nodeType?t.parentNode:t),uc(),o}for(;r=t.lastChild;)t.removeChild(r);if("function"==typeof i){var s=i;i=function(){var t=$c(l);s.call(t)}}var l=jc(t,0,!1,null,0,!1,0,"",Jc);return t._reactRootContainer=l,t[pr]=l.current,Vi(8===t.nodeType?t.parentNode:t),uc((function(){Uc(e,l,n,i)})),l}(n,e,t,r,i);return $c(o)}Kc.prototype.render=Xc.prototype.render=function(t){var e=this._internalRoot;if(null===e)throw Error(a(409));Uc(t,e,null,null)},Kc.prototype.unmount=Xc.prototype.unmount=function(){var t=this._internalRoot;if(null!==t){this._internalRoot=null;var e=t.containerInfo;uc((function(){Uc(null,t,null,null)})),e[pr]=null}},Kc.prototype.unstable_scheduleHydration=function(t){if(t){var e=ke();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Oe.length&&0!==e&&e<Oe[n].priority;n++);Oe.splice(n,0,t),0===n&&Ne(t)}},_e=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=he(e.pendingLanes);0!==n&&(ye(e,1|n),ic(e,Zt()),0==(6&Ml)&&(Vl=Zt()+500,Vr()))}break;case 13:uc((function(){var e=Pa(t,1);if(null!==e){var n=tc();nc(e,t,1,n)}})),qc(t,1)}},Ae=function(t){if(13===t.tag){var e=Pa(t,134217728);null!==e&&nc(e,t,134217728,tc()),qc(t,134217728)}},we=function(t){if(13===t.tag){var e=ec(t),n=Pa(t,e);null!==n&&nc(n,t,e,tc()),qc(t,e)}},ke=function(){return ve},Ce=function(t,e){var n=ve;try{return ve=t,e()}finally{ve=n}},At=function(t,e,n){switch(e){case"input":if(G(t,n),e=n.name,"radio"===n.type&&null!=e){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var i=n[e];if(i!==t&&i.form===t.form){var r=_r(i);if(!r)throw Error(a(90));q(i),G(i,r)}}}break;case"textarea":at(t,n);break;case"select":null!=(e=n.value)&&nt(t,!!n.multiple,e,!1)}},Mt=cc,Pt=uc;var eu={usingClientEntryPoint:!1,Events:[vr,xr,_r,Et,St,cc]},nu={findFiberByHostInstance:yr,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},iu={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return null===(t=$t(t))?null:t.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{re=ru.inject(iu),ae=ru}catch(ut){}}e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,e.createPortal=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Zc(e))throw Error(a(200));return Wc(t,e,null,n)},e.createRoot=function(t,e){if(!Zc(t))throw Error(a(299));var n=!1,i="",r=Qc;return null!=e&&(!0===e.unstable_strictMode&&(n=!0),void 0!==e.identifierPrefix&&(i=e.identifierPrefix),void 0!==e.onRecoverableError&&(r=e.onRecoverableError)),e=jc(t,1,!1,null,0,n,0,i,r),t[pr]=e.current,Vi(8===t.nodeType?t.parentNode:t),new Xc(e)},e.findDOMNode=function(t){if(null==t)return null;if(1===t.nodeType)return t;var e=t._reactInternals;if(void 0===e){if("function"==typeof t.render)throw Error(a(188));throw t=Object.keys(t).join(","),Error(a(268,t))}return null===(t=$t(e))?null:t.stateNode},e.flushSync=function(t){return uc(t)},e.hydrate=function(t,e,n){if(!Gc(e))throw Error(a(200));return tu(null,t,e,!0,n)},e.hydrateRoot=function(t,e,n){if(!Zc(t))throw Error(a(405));var i=null!=n&&n.hydratedSources||null,r=!1,o="",s=Qc;if(null!=n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),e=Hc(e,null,t,1,null!=n?n:null,r,0,o,s),t[pr]=e.current,Vi(t),i)for(t=0;t<i.length;t++)r=(r=(n=i[t])._getVersion)(n._source),null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[n,r]:e.mutableSourceEagerHydrationData.push(n,r);return new Kc(e)},e.render=function(t,e,n){if(!Gc(e))throw Error(a(200));return tu(null,t,e,!1,n)},e.unmountComponentAtNode=function(t){if(!Gc(t))throw Error(a(40));return!!t._reactRootContainer&&(uc((function(){tu(null,null,t,!1,(function(){t._reactRootContainer=null,t[pr]=null}))})),!0)},e.unstable_batchedUpdates=cc,e.unstable_renderSubtreeIntoContainer=function(t,e,n,i){if(!Gc(n))throw Error(a(200));if(null==t||void 0===t._reactInternals)throw Error(a(38));return tu(t,e,n,!1,i)},e.version="18.2.0-next-9e3b772b8-20220608"},745:(t,e,n)=>{var i=n(935);e.s=i.createRoot,i.hydrateRoot},935:(t,e,n)=>{!function t(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(t){console.error(t)}}(),t.exports=n(448)},251:(t,e,n)=>{var i=n(294),r=Symbol.for("react.element"),a=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(t,e,n){var i,a={},c=null,u=null;for(i in void 0!==n&&(c=""+n),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(u=e.ref),e)o.call(e,i)&&!l.hasOwnProperty(i)&&(a[i]=e[i]);if(t&&t.defaultProps)for(i in e=t.defaultProps)void 0===a[i]&&(a[i]=e[i]);return{$$typeof:r,type:t,key:c,ref:u,props:a,_owner:s.current}}e.Fragment=a,e.jsx=c,e.jsxs=c},408:(t,e)=>{var n=Symbol.for("react.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function b(t,e,n){this.props=t,this.context=e,this.refs=m,this.updater=n||p}function y(){}function v(t,e,n){this.props=t,this.context=e,this.refs=m,this.updater=n||p}b.prototype.isReactComponent={},b.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},b.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},y.prototype=b.prototype;var x=v.prototype=new y;x.constructor=v,g(x,b.prototype),x.isPureReactComponent=!0;var _=Array.isArray,A=Object.prototype.hasOwnProperty,w={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function C(t,e,i){var r,a={},o=null,s=null;if(null!=e)for(r in void 0!==e.ref&&(s=e.ref),void 0!==e.key&&(o=""+e.key),e)A.call(e,r)&&!k.hasOwnProperty(r)&&(a[r]=e[r]);var l=arguments.length-2;if(1===l)a.children=i;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(t&&t.defaultProps)for(r in l=t.defaultProps)void 0===a[r]&&(a[r]=l[r]);return{$$typeof:n,type:t,key:o,ref:s,props:a,_owner:w.current}}function E(t){return"object"==typeof t&&null!==t&&t.$$typeof===n}var S=/\/+/g;function M(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,(function(t){return e[t]}))}(""+t.key):e.toString(36)}function P(t,e,r,a,o){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var l=!1;if(null===t)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case n:case i:l=!0}}if(l)return o=o(l=t),t=""===a?"."+M(l,0):a,_(o)?(r="",null!=t&&(r=t.replace(S,"$&/")+"/"),P(o,e,r,"",(function(t){return t}))):null!=o&&(E(o)&&(o=function(t,e){return{$$typeof:n,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(o,r+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(S,"$&/")+"/")+t)),e.push(o)),1;if(l=0,a=""===a?".":a+":",_(t))for(var c=0;c<t.length;c++){var u=a+M(s=t[c],c);l+=P(s,e,r,u,o)}else if(u=function(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=f&&t[f]||t["@@iterator"])?t:null}(t),"function"==typeof u)for(t=u.call(t),c=0;!(s=t.next()).done;)l+=P(s=s.value,e,r,u=a+M(s,c++),o);else if("object"===s)throw e=String(t),Error("Objects are not valid as a React child (found: "+("[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return l}function B(t,e,n){if(null==t)return t;var i=[],r=0;return P(t,i,"","",(function(t){return e.call(n,t,r++)})),i}function T(t){if(-1===t._status){var e=t._result;(e=e()).then((function(e){0!==t._status&&-1!==t._status||(t._status=1,t._result=e)}),(function(e){0!==t._status&&-1!==t._status||(t._status=2,t._result=e)})),-1===t._status&&(t._status=0,t._result=e)}if(1===t._status)return t._result.default;throw t._result}var D={current:null},O={transition:null},L={ReactCurrentDispatcher:D,ReactCurrentBatchConfig:O,ReactCurrentOwner:w};e.Children={map:B,forEach:function(t,e,n){B(t,(function(){e.apply(this,arguments)}),n)},count:function(t){var e=0;return B(t,(function(){e++})),e},toArray:function(t){return B(t,(function(t){return t}))||[]},only:function(t){if(!E(t))throw Error("React.Children.only expected to receive a single React element child.");return t}},e.Component=b,e.Fragment=r,e.Profiler=o,e.PureComponent=v,e.StrictMode=a,e.Suspense=u,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,e.cloneElement=function(t,e,i){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var r=g({},t.props),a=t.key,o=t.ref,s=t._owner;if(null!=e){if(void 0!==e.ref&&(o=e.ref,s=w.current),void 0!==e.key&&(a=""+e.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(c in e)A.call(e,c)&&!k.hasOwnProperty(c)&&(r[c]=void 0===e[c]&&void 0!==l?l[c]:e[c])}var c=arguments.length-2;if(1===c)r.children=i;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:n,type:t.type,key:a,ref:o,props:r,_owner:s}},e.createContext=function(t){return(t={$$typeof:l,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:t},t.Consumer=t},e.createElement=C,e.createFactory=function(t){var e=C.bind(null,t);return e.type=t,e},e.createRef=function(){return{current:null}},e.forwardRef=function(t){return{$$typeof:c,render:t}},e.isValidElement=E,e.lazy=function(t){return{$$typeof:d,_payload:{_status:-1,_result:t},_init:T}},e.memo=function(t,e){return{$$typeof:h,type:t,compare:void 0===e?null:e}},e.startTransition=function(t){var e=O.transition;O.transition={};try{t()}finally{O.transition=e}},e.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},e.useCallback=function(t,e){return D.current.useCallback(t,e)},e.useContext=function(t){return D.current.useContext(t)},e.useDebugValue=function(){},e.useDeferredValue=function(t){return D.current.useDeferredValue(t)},e.useEffect=function(t,e){return D.current.useEffect(t,e)},e.useId=function(){return D.current.useId()},e.useImperativeHandle=function(t,e,n){return D.current.useImperativeHandle(t,e,n)},e.useInsertionEffect=function(t,e){return D.current.useInsertionEffect(t,e)},e.useLayoutEffect=function(t,e){return D.current.useLayoutEffect(t,e)},e.useMemo=function(t,e){return D.current.useMemo(t,e)},e.useReducer=function(t,e,n){return D.current.useReducer(t,e,n)},e.useRef=function(t){return D.current.useRef(t)},e.useState=function(t){return D.current.useState(t)},e.useSyncExternalStore=function(t,e,n){return D.current.useSyncExternalStore(t,e,n)},e.useTransition=function(){return D.current.useTransition()},e.version="18.2.0"},294:(t,e,n)=>{t.exports=n(408)},893:(t,e,n)=>{t.exports=n(251)},53:(t,e)=>{function n(t,e){var n=t.length;t.push(e);t:for(;0<n;){var i=n-1>>>1,r=t[i];if(!(0<a(r,e)))break t;t[i]=e,t[n]=r,n=i}}function i(t){return 0===t.length?null:t[0]}function r(t){if(0===t.length)return null;var e=t[0],n=t.pop();if(n!==e){t[0]=n;t:for(var i=0,r=t.length,o=r>>>1;i<o;){var s=2*(i+1)-1,l=t[s],c=s+1,u=t[c];if(0>a(l,n))c<r&&0>a(u,l)?(t[i]=u,t[c]=n,i=c):(t[i]=l,t[s]=n,i=s);else{if(!(c<r&&0>a(u,n)))break t;t[i]=u,t[c]=n,i=c}}}return e}function a(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}if("object"==typeof performance&&"function"==typeof performance.now){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var c=[],u=[],h=1,d=null,f=3,p=!1,g=!1,m=!1,b="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function x(t){for(var e=i(u);null!==e;){if(null===e.callback)r(u);else{if(!(e.startTime<=t))break;r(u),e.sortIndex=e.expirationTime,n(c,e)}e=i(u)}}function _(t){if(m=!1,x(t),!g)if(null!==i(c))g=!0,O(A);else{var e=i(u);null!==e&&L(_,e.startTime-t)}}function A(t,n){g=!1,m&&(m=!1,y(E),E=-1),p=!0;var a=f;try{for(x(n),d=i(c);null!==d&&(!(d.expirationTime>n)||t&&!P());){var o=d.callback;if("function"==typeof o){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=n);n=e.unstable_now(),"function"==typeof s?d.callback=s:d===i(c)&&r(c),x(n)}else r(c);d=i(c)}if(null!==d)var l=!0;else{var h=i(u);null!==h&&L(_,h.startTime-n),l=!1}return l}finally{d=null,f=a,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var w,k=!1,C=null,E=-1,S=5,M=-1;function P(){return!(e.unstable_now()-M<S)}function B(){if(null!==C){var t=e.unstable_now();M=t;var n=!0;try{n=C(!0,t)}finally{n?w():(k=!1,C=null)}}else k=!1}if("function"==typeof v)w=function(){v(B)};else if("undefined"!=typeof MessageChannel){var T=new MessageChannel,D=T.port2;T.port1.onmessage=B,w=function(){D.postMessage(null)}}else w=function(){b(B,0)};function O(t){C=t,k||(k=!0,w())}function L(t,n){E=b((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(t){t.callback=null},e.unstable_continueExecution=function(){g||p||(g=!0,O(A))},e.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):S=0<t?Math.floor(1e3/t):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return i(c)},e.unstable_next=function(t){switch(f){case 1:case 2:case 3:var e=3;break;default:e=f}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_scheduleCallback=function(t,r,a){var o=e.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?o+a:o,t){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return t={id:h++,callback:r,priorityLevel:t,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>o?(t.sortIndex=a,n(u,t),null===i(c)&&t===i(u)&&(m?(y(E),E=-1):m=!0,L(_,a-o))):(t.sortIndex=s,n(c,t),g||p||(g=!0,O(A))),t},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(t){var e=f;return function(){var n=f;f=e;try{return t.apply(this,arguments)}finally{f=n}}}},840:(t,e,n)=>{t.exports=n(53)},379:t=>{var e=[];function n(t){for(var n=-1,i=0;i<e.length;i++)if(e[i].identifier===t){n=i;break}return n}function i(t,i){for(var a={},o=[],s=0;s<t.length;s++){var l=t[s],c=i.base?l[0]+i.base:l[0],u=a[c]||0,h="".concat(c," ").concat(u);a[c]=u+1;var d=n(h),f={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)e[d].references++,e[d].updater(f);else{var p=r(f,i);i.byIndex=s,e.splice(s,0,{identifier:h,updater:p,references:1})}o.push(h)}return o}function r(t,e){var n=e.domAPI(e);return n.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;n.update(t=e)}else n.remove()}}t.exports=function(t,r){var a=i(t=t||[],r=r||{});return function(t){t=t||[];for(var o=0;o<a.length;o++){var s=n(a[o]);e[s].references--}for(var l=i(t,r),c=0;c<a.length;c++){var u=n(a[c]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}a=l}}},569:t=>{var e={};t.exports=function(t,n){var i=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}},216:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},565:(t,e,n)=>{t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},795:t=>{t.exports=function(t){var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var i="";n.supports&&(i+="@supports (".concat(n.supports,") {")),n.media&&(i+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,r&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleTagTransform(i,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},589:t=>{t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var a=e[i]={id:i,exports:{}};return t[i](a,a.exports,n),a.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t;n.g.importScripts&&(t=n.g.location+"");var e=n.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var i=e.getElementsByTagName("script");i.length&&(t=i[i.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=t})(),n.nc=void 0,(()=>{var t=n(745);n.p;var e=n(379),i=n.n(e),r=n(795),a=n.n(r),o=n(569),s=n.n(o),l=n(565),c=n.n(l),u=n(216),h=n.n(u),d=n(589),f=n.n(d),p=n(740),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=s().bind(null,"head"),g.domAPI=a(),g.insertStyleElement=h(),i()(p.Z,g),p.Z&&p.Z.locals&&p.Z.locals;var m=n(893);const b=()=>(0,m.jsx)("div",{className:"title",children:"Simple Dashboard"}),y=({userInfo:t})=>(0,m.jsx)("header",{children:(0,m.jsx)(b,{})});var v=n(294);const x=({updateImage:t,position:e})=>{const n="left"==e?"fas fa-angle-left arrow":"fas fa-angle-right arrow arrow-right";return(0,m.jsx)("i",{id:e,className:n,onClick:t})},_=({updateImage:t,srcNumber:e,total:n})=>{const i=`images/${e}.jpg`;return(0,m.jsxs)("div",{className:"carousel",children:[1!=e?(0,m.jsx)(x,{updateImage:t,position:"left"}):null,(0,m.jsx)("img",{src:i,className:"carousel-img"}),e!=n?(0,m.jsx)(x,{updateImage:t,position:"right"}):null]})};var A=n(770),w={};w.styleTagTransform=f(),w.setAttributes=c(),w.insert=s().bind(null,"head"),w.domAPI=a(),w.insertStyleElement=h(),i()(A.Z,w),A.Z&&A.Z.locals&&A.Z.locals,n.p,n.p,n.p,n.p;const k=()=>{const[t,e]=(0,v.useState)({active:1,total:4}),{active:n,total:i}=t;return(0,m.jsx)("section",{className:"carousel-container",children:(0,m.jsx)(_,{srcNumber:n,total:i,updateImage:n=>{let{id:i}=n.target,{active:r,total:a}=t;"left"==i?r=r>1?r-1:1:"right"==i&&(r=r<a?r+1:a),e({...t,active:r})}})})};var C,E=new Uint8Array(16);function S(){if(!C&&!(C="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return C(E)}const M=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,P=function(t){return"string"==typeof t&&M.test(t)};for(var B=[],T=0;T<256;++T)B.push((T+256).toString(16).substr(1));const D=function(t,e,n){var i=(t=t||{}).random||(t.rng||S)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e){n=n||0;for(var r=0;r<16;++r)e[n+r]=i[r];return e}return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(B[t[e+0]]+B[t[e+1]]+B[t[e+2]]+B[t[e+3]]+"-"+B[t[e+4]]+B[t[e+5]]+"-"+B[t[e+6]]+B[t[e+7]]+"-"+B[t[e+8]]+B[t[e+9]]+"-"+B[t[e+10]]+B[t[e+11]]+B[t[e+12]]+B[t[e+13]]+B[t[e+14]]+B[t[e+15]]).toLowerCase();if(!P(n))throw TypeError("Stringified UUID is invalid");return n}(i)},O=t=>{let{chartTypes:e,changeChartType:n,activeChart:i}=t;return(0,m.jsx)("div",{className:"chart-type-div",children:e.map(((t,e,r)=>{let a=i==t?"chart-type active-chart-type":"chart-type";return(0,m.jsx)("span",{id:t,className:a,onClick:n,children:e!=r.length-1?(0,m.jsx)(L,{value:t}):t},t)}))})},L=({value:t})=>(0,m.jsxs)(m.Fragment,{children:[t,(0,m.jsx)("span",{className:"basic-padding separator",children:"|"})]}),z="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function R(t,e,n){const i=n||(t=>Array.prototype.slice.call(t));let r=!1,a=[];return function(...n){a=i(n),r||(r=!0,z.call(window,(()=>{r=!1,t.apply(e,a)})))}}const N=t=>"start"===t?"left":"end"===t?"right":"center",I=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2;function F(){}const j=function(){let t=0;return function(){return t++}}();function W(t){return null==t}function V(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function H(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const U=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function $(t,e){return U(t)?t:e}function Y(t,e){return void 0===t?e:t}const q=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function Q(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function X(t,e,n,i){let r,a,o;if(V(t))if(a=t.length,i)for(r=a-1;r>=0;r--)e.call(n,t[r],r);else for(r=0;r<a;r++)e.call(n,t[r],r);else if(H(t))for(o=Object.keys(t),a=o.length,r=0;r<a;r++)e.call(n,t[o[r]],o[r])}function K(t,e){let n,i,r,a;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(r=t[n],a=e[n],r.datasetIndex!==a.datasetIndex||r.index!==a.index)return!1;return!0}function Z(t){if(V(t))return t.map(Z);if(H(t)){const e=Object.create(null),n=Object.keys(t),i=n.length;let r=0;for(;r<i;++r)e[n[r]]=Z(t[n[r]]);return e}return t}function G(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function J(t,e,n,i){if(!G(t))return;const r=e[t],a=n[t];H(r)&&H(a)?tt(r,a,i):e[t]=Z(a)}function tt(t,e,n){const i=V(e)?e:[e],r=i.length;if(!H(t))return t;const a=(n=n||{}).merger||J;for(let o=0;o<r;++o){if(e=i[o],!H(e))continue;const r=Object.keys(e);for(let i=0,o=r.length;i<o;++i)a(r[i],t,e,n)}return t}function et(t,e){return tt(t,e,{merger:nt})}function nt(t,e,n){if(!G(t))return;const i=e[t],r=n[t];H(i)&&H(r)?et(i,r):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=Z(r))}function it(t,e){const n=t.indexOf(".",e);return-1===n?t.length:n}function rt(t,e){if(""===e)return t;let n=0,i=it(e,n);for(;t&&i>n;)t=t[e.slice(n,i)],n=i+1,i=it(e,n);return t}function at(t){return t.charAt(0).toUpperCase()+t.slice(1)}const ot=t=>void 0!==t,st=t=>"function"==typeof t,lt=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0},ct=Math.PI,ut=2*ct,ht=ut+ct,dt=Number.POSITIVE_INFINITY,ft=ct/180,pt=ct/2,gt=ct/4,mt=2*ct/3,bt=Math.log10,yt=Math.sign;function vt(t){const e=Math.round(t);t=_t(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(bt(t))),i=t/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function xt(t){return!isNaN(parseFloat(t))&&isFinite(t)}function _t(t,e,n){return Math.abs(t-e)<n}function At(t,e,n){let i,r,a;for(i=0,r=t.length;i<r;i++)a=t[i][n],isNaN(a)||(e.min=Math.min(e.min,a),e.max=Math.max(e.max,a))}function wt(t){return t*(ct/180)}function kt(t){return t*(180/ct)}function Ct(t){if(!U(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function Et(t,e){const n=e.x-t.x,i=e.y-t.y,r=Math.sqrt(n*n+i*i);let a=Math.atan2(i,n);return a<-.5*ct&&(a+=ut),{angle:a,distance:r}}function St(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Mt(t,e){return(t-e+ht)%ut-ct}function Pt(t){return(t%ut+ut)%ut}function Bt(t,e,n,i){const r=Pt(t),a=Pt(e),o=Pt(n),s=Pt(a-r),l=Pt(o-r),c=Pt(r-a),u=Pt(r-o);return r===a||r===o||i&&a===o||s>l&&c<u}function Tt(t,e,n){return Math.max(e,Math.min(n,t))}function Dt(t,e,n,i=1e-6){return t>=Math.min(e,n)-i&&t<=Math.max(e,n)+i}const Ot=t=>0===t||1===t,Lt=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*ut/n),zt=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*ut/n)+1,Rt={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*pt),easeOutSine:t=>Math.sin(t*pt),easeInOutSine:t=>-.5*(Math.cos(ct*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>Ot(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Ot(t)?t:Lt(t,.075,.3),easeOutElastic:t=>Ot(t)?t:zt(t,.075,.3),easeInOutElastic(t){const e=.1125;return Ot(t)?t:t<.5?.5*Lt(2*t,e,.45):.5+.5*zt(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-Rt.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},easeInOutBounce:t=>t<.5?.5*Rt.easeInBounce(2*t):.5*Rt.easeOutBounce(2*t-1)+.5};function Nt(t){return t+.5|0}const It=(t,e,n)=>Math.max(Math.min(t,n),e);function Ft(t){return It(Nt(2.55*t),0,255)}function jt(t){return It(Nt(255*t),0,255)}function Wt(t){return It(Nt(t/2.55)/100,0,1)}function Vt(t){return It(Nt(100*t),0,100)}const Ht={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},Ut=[..."0123456789ABCDEF"],$t=t=>Ut[15&t],Yt=t=>Ut[(240&t)>>4]+Ut[15&t],qt=t=>(240&t)>>4==(15&t);const Qt=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Xt(t,e,n){const i=e*Math.min(n,1-n),r=(e,r=(e+t/30)%12)=>n-i*Math.max(Math.min(r-3,9-r,1),-1);return[r(0),r(8),r(4)]}function Kt(t,e,n){const i=(i,r=(i+t/60)%6)=>n-n*e*Math.max(Math.min(r,4-r,1),0);return[i(5),i(3),i(1)]}function Zt(t,e,n){const i=Xt(t,1,.5);let r;for(e+n>1&&(r=1/(e+n),e*=r,n*=r),r=0;r<3;r++)i[r]*=1-e-n,i[r]+=e;return i}function Gt(t){const e=t.r/255,n=t.g/255,i=t.b/255,r=Math.max(e,n,i),a=Math.min(e,n,i),o=(r+a)/2;let s,l,c;return r!==a&&(c=r-a,l=o>.5?c/(2-r-a):c/(r+a),s=function(t,e,n,i,r){return t===r?(e-n)/i+(e<n?6:0):e===r?(n-t)/i+2:(t-e)/i+4}(e,n,i,c,r),s=60*s+.5),[0|s,l||0,o]}function Jt(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(jt)}function te(t,e,n){return Jt(Xt,t,e,n)}function ee(t){return(t%360+360)%360}const ne={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"},ie={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let re;const ae=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,oe=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,se=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function le(t,e,n){if(t){let i=Gt(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,0===e?360:1)),i=te(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function ce(t,e){return t?Object.assign(e||{},t):t}function ue(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=jt(t[3]))):(e=ce(t,{r:0,g:0,b:0,a:1})).a=jt(e.a),e}function he(t){return"r"===t.charAt(0)?function(t){const e=ae.exec(t);let n,i,r,a=255;if(e){if(e[7]!==n){const t=+e[7];a=e[8]?Ft(t):It(255*t,0,255)}return n=+e[1],i=+e[3],r=+e[5],n=255&(e[2]?Ft(n):It(n,0,255)),i=255&(e[4]?Ft(i):It(i,0,255)),r=255&(e[6]?Ft(r):It(r,0,255)),{r:n,g:i,b:r,a}}}(t):function(t){const e=Qt.exec(t);let n,i=255;if(!e)return;e[5]!==n&&(i=e[6]?Ft(+e[5]):jt(+e[5]));const r=ee(+e[2]),a=+e[3]/100,o=+e[4]/100;return n="hwb"===e[1]?function(t,e,n){return Jt(Zt,t,e,n)}(r,a,o):"hsv"===e[1]?function(t,e,n){return Jt(Kt,t,e,n)}(r,a,o):te(r,a,o),{r:n[0],g:n[1],b:n[2],a:i}}(t)}class de{constructor(t){if(t instanceof de)return t;const e=typeof t;let n;var i,r,a;"object"===e?n=ue(t):"string"===e&&(a=(i=t).length,"#"===i[0]&&(4===a||5===a?r={r:255&17*Ht[i[1]],g:255&17*Ht[i[2]],b:255&17*Ht[i[3]],a:5===a?17*Ht[i[4]]:255}:7!==a&&9!==a||(r={r:Ht[i[1]]<<4|Ht[i[2]],g:Ht[i[3]]<<4|Ht[i[4]],b:Ht[i[5]]<<4|Ht[i[6]],a:9===a?Ht[i[7]]<<4|Ht[i[8]]:255})),n=r||function(t){re||(re=function(){const t={},e=Object.keys(ie),n=Object.keys(ne);let i,r,a,o,s;for(i=0;i<e.length;i++){for(o=s=e[i],r=0;r<n.length;r++)a=n[r],s=s.replace(a,ne[a]);a=parseInt(ie[o],16),t[s]=[a>>16&255,a>>8&255,255&a]}return t}(),re.transparent=[0,0,0,0]);const e=re[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(t)||he(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=ce(this._rgb);return t&&(t.a=Wt(t.a)),t}set rgb(t){this._rgb=ue(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Wt(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?(t=this._rgb,e=(t=>qt(t.r)&&qt(t.g)&&qt(t.b)&&qt(t.a))(t)?$t:Yt,t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0):void 0;var t,e}hslString(){return this._valid?function(t){if(!t)return;const e=Gt(t),n=e[0],i=Vt(e[1]),r=Vt(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${r}%, ${Wt(t.a)})`:`hsl(${n}, ${i}%, ${r}%)`}(this._rgb):void 0}mix(t,e){if(t){const n=this.rgb,i=t.rgb;let r;const a=e===r?.5:e,o=2*a-1,s=n.a-i.a,l=((o*s==-1?o:(o+s)/(1+o*s))+1)/2;r=1-l,n.r=255&l*n.r+r*i.r+.5,n.g=255&l*n.g+r*i.g+.5,n.b=255&l*n.b+r*i.b+.5,n.a=a*n.a+(1-a)*i.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){const i=se(Wt(t.r)),r=se(Wt(t.g)),a=se(Wt(t.b));return{r:jt(oe(i+n*(se(Wt(e.r))-i))),g:jt(oe(r+n*(se(Wt(e.g))-r))),b:jt(oe(a+n*(se(Wt(e.b))-a))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new de(this.rgb)}alpha(t){return this._rgb.a=jt(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=Nt(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return le(this._rgb,2,t),this}darken(t){return le(this._rgb,2,-t),this}saturate(t){return le(this._rgb,1,t),this}desaturate(t){return le(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=Gt(t);n[0]=ee(n[0]+e),n=te(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}function fe(t){return new de(t)}function pe(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function ge(t){return pe(t)?t:fe(t)}function me(t){return pe(t)?t:fe(t).saturate(.5).darken(.1).hexString()}const be=Object.create(null),ye=Object.create(null);function ve(t,e){if(!e)return t;const n=e.split(".");for(let e=0,i=n.length;e<i;++e){const i=n[e];t=t[i]||(t[i]=Object.create(null))}return t}function xe(t,e,n){return"string"==typeof e?tt(ve(t,e),n):tt(ve(t,""),e)}var _e=new class{constructor(t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>me(e.backgroundColor),this.hoverBorderColor=(t,e)=>me(e.borderColor),this.hoverColor=(t,e)=>me(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,e){return xe(this,t,e)}get(t){return ve(this,t)}describe(t,e){return xe(ye,t,e)}override(t,e){return xe(be,t,e)}route(t,e,n,i){const r=ve(this,t),a=ve(this,n),o="_"+e;Object.defineProperties(r,{[o]:{value:r[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[o],e=a[i];return H(t)?Object.assign({},e,t):Y(t,e)},set(t){this[o]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function Ae(t,e,n,i,r){let a=e[r];return a||(a=e[r]=t.measureText(r).width,n.push(r)),a>i&&(i=a),i}function we(t,e,n,i){let r=(i=i||{}).data=i.data||{},a=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(r=i.data={},a=i.garbageCollect=[],i.font=e),t.save(),t.font=e;let o=0;const s=n.length;let l,c,u,h,d;for(l=0;l<s;l++)if(h=n[l],null!=h&&!0!==V(h))o=Ae(t,r,a,o,h);else if(V(h))for(c=0,u=h.length;c<u;c++)d=h[c],null==d||V(d)||(o=Ae(t,r,a,o,d));t.restore();const f=a.length/2;if(f>n.length){for(l=0;l<f;l++)delete r[a[l]];a.splice(0,f)}return o}function ke(t,e,n){const i=t.currentDevicePixelRatio,r=0!==n?Math.max(n/2,.5):0;return Math.round((e-r)*i)/i+r}function Ce(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function Ee(t,e,n,i){Se(t,e,n,i,null)}function Se(t,e,n,i,r){let a,o,s,l,c,u;const h=e.pointStyle,d=e.rotation,f=e.radius;let p=(d||0)*ft;if(h&&"object"==typeof h&&(a=h.toString(),"[object HTMLImageElement]"===a||"[object HTMLCanvasElement]"===a))return t.save(),t.translate(n,i),t.rotate(p),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),void t.restore();if(!(isNaN(f)||f<=0)){switch(t.beginPath(),h){default:r?t.ellipse(n,i,r/2,f,0,0,ut):t.arc(n,i,f,0,ut),t.closePath();break;case"triangle":t.moveTo(n+Math.sin(p)*f,i-Math.cos(p)*f),p+=mt,t.lineTo(n+Math.sin(p)*f,i-Math.cos(p)*f),p+=mt,t.lineTo(n+Math.sin(p)*f,i-Math.cos(p)*f),t.closePath();break;case"rectRounded":c=.516*f,l=f-c,o=Math.cos(p+gt)*l,s=Math.sin(p+gt)*l,t.arc(n-o,i-s,c,p-ct,p-pt),t.arc(n+s,i-o,c,p-pt,p),t.arc(n+o,i+s,c,p,p+pt),t.arc(n-s,i+o,c,p+pt,p+ct),t.closePath();break;case"rect":if(!d){l=Math.SQRT1_2*f,u=r?r/2:l,t.rect(n-u,i-l,2*u,2*l);break}p+=gt;case"rectRot":o=Math.cos(p)*f,s=Math.sin(p)*f,t.moveTo(n-o,i-s),t.lineTo(n+s,i-o),t.lineTo(n+o,i+s),t.lineTo(n-s,i+o),t.closePath();break;case"crossRot":p+=gt;case"cross":o=Math.cos(p)*f,s=Math.sin(p)*f,t.moveTo(n-o,i-s),t.lineTo(n+o,i+s),t.moveTo(n+s,i-o),t.lineTo(n-s,i+o);break;case"star":o=Math.cos(p)*f,s=Math.sin(p)*f,t.moveTo(n-o,i-s),t.lineTo(n+o,i+s),t.moveTo(n+s,i-o),t.lineTo(n-s,i+o),p+=gt,o=Math.cos(p)*f,s=Math.sin(p)*f,t.moveTo(n-o,i-s),t.lineTo(n+o,i+s),t.moveTo(n+s,i-o),t.lineTo(n-s,i+o);break;case"line":o=r?r/2:Math.cos(p)*f,s=Math.sin(p)*f,t.moveTo(n-o,i-s),t.lineTo(n+o,i+s);break;case"dash":t.moveTo(n,i),t.lineTo(n+Math.cos(p)*f,i+Math.sin(p)*f)}t.fill(),e.borderWidth>0&&t.stroke()}}function Me(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function Pe(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Be(t){t.restore()}function Te(t,e,n,i,r){if(!e)return t.lineTo(n.x,n.y);if("middle"===r){const i=(e.x+n.x)/2;t.lineTo(i,e.y),t.lineTo(i,n.y)}else"after"===r!=!!i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function De(t,e,n,i){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(i?e.cp1x:e.cp2x,i?e.cp1y:e.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function Oe(t,e,n,i,r,a={}){const o=V(e)?e:[e],s=a.strokeWidth>0&&""!==a.strokeColor;let l,c;for(t.save(),t.font=r.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),W(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,a),l=0;l<o.length;++l)c=o[l],s&&(a.strokeColor&&(t.strokeStyle=a.strokeColor),W(a.strokeWidth)||(t.lineWidth=a.strokeWidth),t.strokeText(c,n,i,a.maxWidth)),t.fillText(c,n,i,a.maxWidth),Le(t,n,i,c,a),i+=r.lineHeight;t.restore()}function Le(t,e,n,i,r){if(r.strikethrough||r.underline){const a=t.measureText(i),o=e-a.actualBoundingBoxLeft,s=e+a.actualBoundingBoxRight,l=n-a.actualBoundingBoxAscent,c=n+a.actualBoundingBoxDescent,u=r.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=r.decorationWidth||2,t.moveTo(o,u),t.lineTo(s,u),t.stroke()}}function ze(t,e){const{x:n,y:i,w:r,h:a,radius:o}=e;t.arc(n+o.topLeft,i+o.topLeft,o.topLeft,-pt,ct,!0),t.lineTo(n,i+a-o.bottomLeft),t.arc(n+o.bottomLeft,i+a-o.bottomLeft,o.bottomLeft,ct,pt,!0),t.lineTo(n+r-o.bottomRight,i+a),t.arc(n+r-o.bottomRight,i+a-o.bottomRight,o.bottomRight,pt,0,!0),t.lineTo(n+r,i+o.topRight),t.arc(n+r-o.topRight,i+o.topRight,o.topRight,0,-pt,!0),t.lineTo(n+o.topLeft,i)}const Re=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),Ne=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function Ie(t,e){const n=(""+t).match(Re);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}function Fe(t,e){const n={},i=H(e),r=i?Object.keys(e):e,a=H(t)?i?n=>Y(t[n],t[e[n]]):e=>t[e]:()=>t;for(const t of r)n[t]=+a(t)||0;return n}function je(t){return Fe(t,{top:"y",right:"x",bottom:"y",left:"x"})}function We(t){return Fe(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Ve(t){const e=je(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function He(t,e){t=t||{},e=e||_e.font;let n=Y(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let i=Y(t.style,e.style);i&&!(""+i).match(Ne)&&(console.warn('Invalid font style specified: "'+i+'"'),i="");const r={family:Y(t.family,e.family),lineHeight:Ie(Y(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:Y(t.weight,e.weight),string:""};return r.string=function(t){return!t||W(t.size)||W(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(r),r}function Ue(t,e,n,i){let r,a,o,s=!0;for(r=0,a=t.length;r<a;++r)if(o=t[r],void 0!==o&&(void 0!==e&&"function"==typeof o&&(o=o(e),s=!1),void 0!==n&&V(o)&&(o=o[n%o.length],s=!1),void 0!==o))return i&&!s&&(i.cacheable=!1),o}function $e(t,e){return Object.assign(Object.create(t),e)}function Ye(t,e,n){n=n||(n=>t[n]<e);let i,r=t.length-1,a=0;for(;r-a>1;)i=a+r>>1,n(i)?a=i:r=i;return{lo:a,hi:r}}const qe=(t,e,n)=>Ye(t,n,(i=>t[i][e]<n)),Qe=(t,e,n)=>Ye(t,n,(i=>t[i][e]>=n)),Xe=["push","pop","shift","splice","unshift"];function Ke(t,e){const n=t._chartjs;if(!n)return;const i=n.listeners,r=i.indexOf(e);-1!==r&&i.splice(r,1),i.length>0||(Xe.forEach((e=>{delete t[e]})),delete t._chartjs)}function Ze(t){const e=new Set;let n,i;for(n=0,i=t.length;n<i;++n)e.add(t[n]);return e.size===i?t:Array.from(e)}function Ge(t,e=[""],n=t,i,r=(()=>t[0])){ot(i)||(i=un("_fallback",t));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:i,_getTarget:r,override:r=>Ge([r,...t],e,n,i)};return new Proxy(a,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,i)=>rn(n,i,(()=>function(t,e,n,i){let r;for(const a of e)if(r=un(en(a,t),n),ot(r))return nn(t,r)?ln(n,i,t,r):r}(i,e,t,n))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>hn(t).includes(e),ownKeys:t=>hn(t),set(t,e,n){const i=t._storage||(t._storage=r());return t[e]=i[e]=n,delete t._keys,!0}})}function Je(t,e,n,i){const r={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:tn(t,i),setContext:e=>Je(t,e,n,i),override:r=>Je(t.override(r),e,n,i)};return new Proxy(r,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>rn(t,e,(()=>function(t,e,n){const{_proxy:i,_context:r,_subProxy:a,_descriptors:o}=t;let s=i[e];return st(s)&&o.isScriptable(e)&&(s=function(t,e,n,i){const{_proxy:r,_context:a,_subProxy:o,_stack:s}=n;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);return s.add(t),e=e(a,o||i),s.delete(t),nn(t,e)&&(e=ln(r._scopes,r,t,e)),e}(e,s,t,n)),V(s)&&s.length&&(s=function(t,e,n,i){const{_proxy:r,_context:a,_subProxy:o,_descriptors:s}=n;if(ot(a.index)&&i(t))e=e[a.index%e.length];else if(H(e[0])){const n=e,i=r._scopes.filter((t=>t!==n));e=[];for(const l of n){const n=ln(i,r,t,l);e.push(Je(n,a,o&&o[t],s))}}return e}(e,s,t,o.isIndexable)),nn(e,s)&&(s=Je(s,r,a&&a[e],o)),s}(t,e,n))),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,i)=>(t[n]=i,delete e[n],!0)})}function tn(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:r=e.allKeys}=t;return{allKeys:r,scriptable:n,indexable:i,isScriptable:st(n)?n:()=>n,isIndexable:st(i)?i:()=>i}}const en=(t,e)=>t?t+at(e):e,nn=(t,e)=>H(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function rn(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const i=n();return t[e]=i,i}function an(t,e,n){return st(t)?t(e,n):t}const on=(t,e)=>!0===t?e:"string"==typeof t?rt(e,t):void 0;function sn(t,e,n,i,r){for(const a of e){const e=on(n,a);if(e){t.add(e);const a=an(e._fallback,n,r);if(ot(a)&&a!==n&&a!==i)return a}else if(!1===e&&ot(i)&&n!==i)return null}return!1}function ln(t,e,n,i){const r=e._rootScopes,a=an(e._fallback,n,i),o=[...t,...r],s=new Set;s.add(i);let l=cn(s,o,n,a||n,i);return null!==l&&(!ot(a)||a===n||(l=cn(s,o,a,l,i),null!==l))&&Ge(Array.from(s),[""],r,a,(()=>function(t,e,n){const i=t._getTarget();e in i||(i[e]={});const r=i[e];return V(r)&&H(n)?n:r}(e,n,i)))}function cn(t,e,n,i,r){for(;n;)n=sn(t,e,n,i,r);return n}function un(t,e){for(const n of e){if(!n)continue;const e=n[t];if(ot(e))return e}}function hn(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function dn(t,e,n,i){const{iScale:r}=t,{key:a="r"}=this._parsing,o=new Array(i);let s,l,c,u;for(s=0,l=i;s<l;++s)c=s+n,u=e[c],o[s]={r:r.parse(rt(u,a),c)};return o}const fn=Number.EPSILON||1e-14,pn=(t,e)=>e<t.length&&!t[e].skip&&t[e],gn=t=>"x"===t?"y":"x";function mn(t,e,n,i){const r=t.skip?e:t,a=e,o=n.skip?e:n,s=St(a,r),l=St(o,a);let c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const h=i*c,d=i*u;return{previous:{x:a.x-h*(o.x-r.x),y:a.y-h*(o.y-r.y)},next:{x:a.x+d*(o.x-r.x),y:a.y+d*(o.y-r.y)}}}function bn(t,e,n){return Math.max(Math.min(t,n),e)}function yn(t,e,n,i,r){let a,o,s,l;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)!function(t,e="x"){const n=gn(e),i=t.length,r=Array(i).fill(0),a=Array(i);let o,s,l,c=pn(t,0);for(o=0;o<i;++o)if(s=l,l=c,c=pn(t,o+1),l){if(c){const t=c[e]-l[e];r[o]=0!==t?(c[n]-l[n])/t:0}a[o]=s?c?yt(r[o-1])!==yt(r[o])?0:(r[o-1]+r[o])/2:r[o-1]:r[o]}!function(t,e,n){const i=t.length;let r,a,o,s,l,c=pn(t,0);for(let u=0;u<i-1;++u)l=c,c=pn(t,u+1),l&&c&&(_t(e[u],0,fn)?n[u]=n[u+1]=0:(r=n[u]/e[u],a=n[u+1]/e[u],s=Math.pow(r,2)+Math.pow(a,2),s<=9||(o=3/Math.sqrt(s),n[u]=r*o*e[u],n[u+1]=a*o*e[u])))}(t,r,a),function(t,e,n="x"){const i=gn(n),r=t.length;let a,o,s,l=pn(t,0);for(let c=0;c<r;++c){if(o=s,s=l,l=pn(t,c+1),!s)continue;const r=s[n],u=s[i];o&&(a=(r-o[n])/3,s[`cp1${n}`]=r-a,s[`cp1${i}`]=u-a*e[c]),l&&(a=(l[n]-r)/3,s[`cp2${n}`]=r+a,s[`cp2${i}`]=u+a*e[c])}}(t,a,e)}(t,r);else{let n=i?t[t.length-1]:t[0];for(a=0,o=t.length;a<o;++a)s=t[a],l=mn(n,s,t[Math.min(a+1,o-(i?0:1))%o],e.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,n=s}e.capBezierPoints&&function(t,e){let n,i,r,a,o,s=Me(t[0],e);for(n=0,i=t.length;n<i;++n)o=a,a=s,s=n<i-1&&Me(t[n+1],e),a&&(r=t[n],o&&(r.cp1x=bn(r.cp1x,e.left,e.right),r.cp1y=bn(r.cp1y,e.top,e.bottom)),s&&(r.cp2x=bn(r.cp2x,e.left,e.right),r.cp2y=bn(r.cp2y,e.top,e.bottom)))}(t,n)}function vn(){return"undefined"!=typeof window&&"undefined"!=typeof document}function xn(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function _n(t,e,n){let i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}const An=t=>window.getComputedStyle(t,null),wn=["top","right","bottom","left"];function kn(t,e,n){const i={};n=n?"-"+n:"";for(let r=0;r<4;r++){const a=wn[r];i[a]=parseFloat(t[e+"-"+a+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function Cn(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:i}=e,r=An(n),a="border-box"===r.boxSizing,o=kn(r,"padding"),s=kn(r,"border","width"),{x:l,y:c,box:u}=function(t,e){const n=t.touches,i=n&&n.length?n[0]:t,{offsetX:r,offsetY:a}=i;let o,s,l=!1;if(((t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot))(r,a,t.target))o=r,s=a;else{const t=e.getBoundingClientRect();o=i.clientX-t.left,s=i.clientY-t.top,l=!0}return{x:o,y:s,box:l}}(t,n),h=o.left+(u&&s.left),d=o.top+(u&&s.top);let{width:f,height:p}=e;return a&&(f-=o.width+s.width,p-=o.height+s.height),{x:Math.round((l-h)/f*n.width/i),y:Math.round((c-d)/p*n.height/i)}}const En=t=>Math.round(10*t)/10;function Sn(t,e,n){const i=e||1,r=Math.floor(t.height*i),a=Math.floor(t.width*i);t.height=r/i,t.width=a/i;const o=t.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${t.height}px`,o.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==i||o.height!==r||o.width!==a)&&(t.currentDevicePixelRatio=i,o.height=r,o.width=a,t.ctx.setTransform(i,0,0,i,0,0),!0)}const Mn=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function Pn(t,e){const n=function(t,e){return An(t).getPropertyValue(e)}(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function Bn(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function Tn(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:"middle"===i?n<.5?t.y:e.y:"after"===i?n<1?t.y:e.y:n>0?e.y:t.y}}function Dn(t,e,n,i){const r={x:t.cp2x,y:t.cp2y},a={x:e.cp1x,y:e.cp1y},o=Bn(t,r,n),s=Bn(r,a,n),l=Bn(a,e,n),c=Bn(o,s,n),u=Bn(s,l,n);return Bn(c,u,n)}const On=new Map;function Ln(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let i=On.get(n);return i||(i=new Intl.NumberFormat(t,e),On.set(n,i)),i}(e,n).format(t)}function zn(t,e,n){return t?function(t,e){return{x:n=>t+t+e-n,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,n):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function Rn(t,e){let n,i;"ltr"!==e&&"rtl"!==e||(n=t.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=i)}function Nn(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function In(t){return"angle"===t?{between:Bt,compare:Mt,normalize:Pt}:{between:Dt,compare:(t,e)=>t-e,normalize:t=>t}}function Fn({start:t,end:e,count:n,loop:i,style:r}){return{start:t%n,end:e%n,loop:i&&(e-t+1)%n==0,style:r}}function jn(t,e,n){if(!n)return[t];const{property:i,start:r,end:a}=n,o=e.length,{compare:s,between:l,normalize:c}=In(i),{start:u,end:h,loop:d,style:f}=function(t,e,n){const{property:i,start:r,end:a}=n,{between:o,normalize:s}=In(i),l=e.length;let c,u,{start:h,end:d,loop:f}=t;if(f){for(h+=l,d+=l,c=0,u=l;c<u&&o(s(e[h%l][i]),r,a);++c)h--,d--;h%=l,d%=l}return d<h&&(d+=l),{start:h,end:d,loop:f,style:t.style}}(t,e,n),p=[];let g,m,b,y=!1,v=null;for(let t=u,n=u;t<=h;++t)m=e[t%o],m.skip||(g=c(m[i]),g!==b&&(y=l(g,r,a),null===v&&(y||l(r,b,g)&&0!==s(r,b))&&(v=0===s(g,r)?t:n),null!==v&&(!y||0===s(a,g)||l(a,b,g))&&(p.push(Fn({start:v,end:t,loop:d,count:o,style:f})),v=null),n=t,b=g));return null!==v&&p.push(Fn({start:v,end:h,loop:d,count:o,style:f})),p}function Wn(t,e){const n=[],i=t.segments;for(let r=0;r<i.length;r++){const a=jn(i[r],t.points,e);a.length&&n.push(...a)}return n}function Vn(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function Hn(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}var Un=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,i){const r=e.listeners[i],a=e.duration;r.forEach((i=>i({chart:t,initial:e.initial,numSteps:a,currentStep:Math.min(n-e.start,a)})))}_refresh(){this._request||(this._running=!0,this._request=z.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((n,i)=>{if(!n.running||!n.items.length)return;const r=n.items;let a,o=r.length-1,s=!1;for(;o>=0;--o)a=r[o],a._active?(a._total>n.duration&&(n.duration=a._total),a.tick(t),s=!0):(r[o]=r[r.length-1],r.pop());s&&(i.draw(),this._notify(i,n,t,"progress")),r.length||(n.running=!1,this._notify(i,n,t,"complete"),n.initial=!1),e+=r.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const $n="transparent",Yn={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const i=ge(t||$n),r=i.valid&&ge(e||$n);return r&&r.valid?r.mix(i,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class qn{constructor(t,e,n,i){const r=e[n];i=Ue([t.to,i,r,t.from]);const a=Ue([t.from,r,i]);this._active=!0,this._fn=t.fn||Yn[t.type||typeof a],this._easing=Rt[t.easing]||Rt.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=a,this._to=i,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const i=this._target[this._prop],r=n-this._start,a=this._duration-r;this._start=n,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=r,this._loop=!!t.loop,this._to=Ue([t.to,e,i,t.from]),this._from=Ue([t.from,i,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,i=this._prop,r=this._from,a=this._loop,o=this._to;let s;if(this._active=r!==o&&(a||e<n),!this._active)return this._target[i]=o,void this._notify(!0);e<0?this._target[i]=r:(s=e/n%2,s=a&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[i]=this._fn(r,o,s))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,n)=>{t.push({res:e,rej:n})}))}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let t=0;t<n.length;t++)n[t][e]()}}_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});const Qn=Object.keys(_e.animation);_e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),_e.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),_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=>0|t}}}});class Xn{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!H(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach((n=>{const i=t[n];if(!H(i))return;const r={};for(const t of Qn)r[t]=i[t];(V(i.properties)&&i.properties||[n]).forEach((t=>{t!==n&&e.has(t)||e.set(t,r)}))}))}_animateOptions(t,e){const n=e.options,i=function(t,e){if(!e)return;let n=t.options;if(n)return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n;t.options=e}(t,n);if(!i)return[];const r=this._createAnimations(i,n);return n.$shared&&function(t,e){const n=[],i=Object.keys(e);for(let e=0;e<i.length;e++){const r=t[i[e]];r&&r.active()&&n.push(r.wait())}return Promise.all(n)}(t.options.$animations,n).then((()=>{t.options=n}),(()=>{})),r}_createAnimations(t,e){const n=this._properties,i=[],r=t.$animations||(t.$animations={}),a=Object.keys(e),o=Date.now();let s;for(s=a.length-1;s>=0;--s){const l=a[s];if("$"===l.charAt(0))continue;if("options"===l){i.push(...this._animateOptions(t,e));continue}const c=e[l];let u=r[l];const h=n.get(l);if(u){if(h&&u.active()){u.update(h,c,o);continue}u.cancel()}h&&h.duration?(r[l]=u=new qn(h,t,l,c),i.push(u)):t[l]=c}return i}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(Un.add(this._chart,n),!0):void 0}}function Kn(t,e){const n=t&&t.options||{},i=n.reverse,r=void 0===n.min?e:0,a=void 0===n.max?e:0;return{start:i?a:r,end:i?r:a}}function Zn(t,e){const n=[],i=t._getSortedDatasetMetas(e);let r,a;for(r=0,a=i.length;r<a;++r)n.push(i[r].index);return n}function Gn(t,e,n,i={}){const r=t.keys,a="single"===i.mode;let o,s,l,c;if(null!==e){for(o=0,s=r.length;o<s;++o){if(l=+r[o],l===n){if(i.all)continue;break}c=t.values[l],U(c)&&(a||0===e||yt(e)===yt(c))&&(e+=c)}return e}}function Jn(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function ti(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function ei(t,e,n,i){for(const r of e.getMatchingVisibleMetas(i).reverse()){const e=t[r.index];if(n&&e>0||!n&&e<0)return r.index}return null}function ni(t,e){const{chart:n,_cachedMeta:i}=t,r=n._stacks||(n._stacks={}),{iScale:a,vScale:o,index:s}=i,l=a.axis,c=o.axis,u=function(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}(a,o,i),h=e.length;let d;for(let t=0;t<h;++t){const n=e[t],{[l]:a,[c]:h}=n;d=(n._stacks||(n._stacks={}))[c]=ti(r,u,a),d[s]=h,d._top=ei(d,o,!0,i.type),d._bottom=ei(d,o,!1,i.type)}}function ii(t,e){const n=t.scales;return Object.keys(n).filter((t=>n[t].axis===e)).shift()}function ri(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[i]||void 0===e[i][n])return;delete e[i][n]}}}const ai=t=>"reset"===t||"none"===t,oi=(t,e)=>e?t:Object.assign({},t);class si{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Jn(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&ri(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),i=(t,e,n,i)=>"x"===t?e:"r"===t?i:n,r=e.xAxisID=Y(n.xAxisID,ii(t,"x")),a=e.yAxisID=Y(n.yAxisID,ii(t,"y")),o=e.rAxisID=Y(n.rAxisID,ii(t,"r")),s=e.indexAxis,l=e.iAxisID=i(s,r,a,o),c=e.vAxisID=i(s,a,r,o);e.xScale=this.getScaleForId(r),e.yScale=this.getScaleForId(a),e.rScale=this.getScaleForId(o),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Ke(this._data,this),t._stacked&&ri(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(H(e))this._data=function(t){const e=Object.keys(t),n=new Array(e.length);let i,r,a;for(i=0,r=e.length;i<r;++i)a=e[i],n[i]={x:a,y:t[a]};return n}(e);else if(n!==e){if(n){Ke(n,this);const t=this._cachedMeta;ri(t),t._parsed=[]}e&&Object.isExtensible(e)&&(this,(i=e)._chartjs?i._chartjs.listeners.push(this):(Object.defineProperty(i,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[this]}}),Xe.forEach((t=>{const e="_onData"+at(t),n=i[t];Object.defineProperty(i,t,{configurable:!0,enumerable:!1,value(...t){const r=n.apply(this,t);return i._chartjs.listeners.forEach((n=>{"function"==typeof n[e]&&n[e](...t)})),r}})})))),this._syncList=[],this._data=e}var i}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const r=e._stacked;e._stacked=Jn(e.vScale,e),e.stack!==n.stack&&(i=!0,ri(e),e.stack=n.stack),this._resyncElements(t),(i||r!==e._stacked)&&ni(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:n,_data:i}=this,{iScale:r,_stacked:a}=n,o=r.axis;let s,l,c,u=0===t&&e===i.length||n._sorted,h=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=i,n._sorted=!0,c=i;else{c=V(i[t])?this.parseArrayData(n,i,t,e):H(i[t])?this.parseObjectData(n,i,t,e):this.parsePrimitiveData(n,i,t,e);const r=()=>null===l[o]||h&&l[o]<h[o];for(s=0;s<e;++s)n._parsed[s+t]=l=c[s],u&&(r()&&(u=!1),h=l);n._sorted=u}a&&ni(this,c)}parsePrimitiveData(t,e,n,i){const{iScale:r,vScale:a}=t,o=r.axis,s=a.axis,l=r.getLabels(),c=r===a,u=new Array(i);let h,d,f;for(h=0,d=i;h<d;++h)f=h+n,u[h]={[o]:c||r.parse(l[f],f),[s]:a.parse(e[f],f)};return u}parseArrayData(t,e,n,i){const{xScale:r,yScale:a}=t,o=new Array(i);let s,l,c,u;for(s=0,l=i;s<l;++s)c=s+n,u=e[c],o[s]={x:r.parse(u[0],c),y:a.parse(u[1],c)};return o}parseObjectData(t,e,n,i){const{xScale:r,yScale:a}=t,{xAxisKey:o="x",yAxisKey:s="y"}=this._parsing,l=new Array(i);let c,u,h,d;for(c=0,u=i;c<u;++c)h=c+n,d=e[h],l[c]={x:r.parse(rt(d,o),h),y:a.parse(rt(d,s),h)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const i=this.chart,r=this._cachedMeta,a=e[t.axis];return Gn({keys:Zn(i,!0),values:e._stacks[t.axis]},a,r.index,{mode:n})}updateRangeFromParsed(t,e,n,i){const r=n[e.axis];let a=null===r?NaN:r;const o=i&&n._stacks[e.axis];i&&o&&(i.values=o,a=Gn(i,r,this._cachedMeta.index)),t.min=Math.min(t.min,a),t.max=Math.max(t.max,a)}getMinMax(t,e){const n=this._cachedMeta,i=n._parsed,r=n._sorted&&t===n.iScale,a=i.length,o=this._getOtherScale(t),s=((t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:Zn(n,!0),values:null})(e,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:u}=function(t){const{min:e,max:n,minDefined:i,maxDefined:r}=t.getUserBounds();return{min:i?e:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}(o);let h,d;function f(){d=i[h];const e=d[o.axis];return!U(d[t.axis])||c>e||u<e}for(h=0;h<a&&(f()||(this.updateRangeFromParsed(l,t,d,s),!r));++h);if(r)for(h=a-1;h>=0;--h)if(!f()){this.updateRangeFromParsed(l,t,d,s);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let i,r,a;for(i=0,r=e.length;i<r;++i)a=e[i][t.axis],U(a)&&n.push(a);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,i=e.vScale,r=this.getParsed(t);return{label:n?""+n.getLabelForValue(r[n.axis]):"",value:i?""+i.getLabelForValue(r[i.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,n,i,r;return H(t)?(e=t.top,n=t.right,i=t.bottom,r=t.left):e=n=i=r=t,{top:e,right:n,bottom:i,left:r,disabled:!1===t}}(Y(this.options.clip,function(t,e,n){if(!1===n)return!1;const i=Kn(t,n),r=Kn(e,n);return{top:r.end,right:i.end,bottom:r.start,left:i.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,n=this._cachedMeta,i=n.data||[],r=e.chartArea,a=[],o=this._drawStart||0,s=this._drawCount||i.length-o,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(t,r,o,s),c=o;c<o+s;++c){const e=i[c];e.hidden||(e.active&&l?a.push(e):e.draw(t,r))}for(c=0;c<a.length;++c)a[c].draw(t,r)}getStyle(t,e){const n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,e,n){const i=this.getDataset();let r;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];r=e.$context||(e.$context=function(t,e,n){return $e(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),r.parsed=this.getParsed(t),r.raw=i.data[t],r.index=r.dataIndex=t}else r=this.$context||(this.$context=function(t,e){return $e(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),r.dataset=i,r.index=r.datasetIndex=this.index;return r.active=!!e,r.mode=n,r}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",n){const i="active"===e,r=this._cachedDataOpts,a=t+"-"+e,o=r[a],s=this.enableOptionSharing&&ot(n);if(o)return oi(o,s);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),u=i?[`${t}Hover`,"hover",t,""]:[t,""],h=l.getOptionScopes(this.getDataset(),c),d=Object.keys(_e.elements[t]),f=l.resolveNamedOptions(h,d,(()=>this.getContext(n,i)),u);return f.$shared&&(f.$shared=s,r[a]=Object.freeze(oi(f,s))),f}_resolveAnimations(t,e,n){const i=this.chart,r=this._cachedDataOpts,a=`animation-${e}`,o=r[a];if(o)return o;let s;if(!1!==i.options.animation){const i=this.chart.config,r=i.datasetAnimationScopeKeys(this._type,e),a=i.getOptionScopes(this.getDataset(),r);s=i.createResolver(a,this.getContext(t,n,e))}const l=new Xn(i,s&&s.animations);return s&&s._cacheable&&(r[a]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||ai(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),i=this._sharedOptions,r=this.getSharedOptions(n),a=this.includeOptions(e,r)||r!==i;return this.updateSharedOptions(r,e,n),{sharedOptions:r,includeOptions:a}}updateElement(t,e,n,i){ai(i)?Object.assign(t,n):this._resolveAnimations(e,i).update(t,n)}updateSharedOptions(t,e,n){t&&!ai(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,i){t.active=i;const r=this.getStyle(e,i);this._resolveAnimations(e,n,i).update(t,{options:!i&&this.getSharedOptions(r)||r})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,n=this._cachedMeta.data;for(const[t,e,n]of this._syncList)this[t](e,n);this._syncList=[];const i=n.length,r=e.length,a=Math.min(r,i);a&&this.parse(0,a),r>i?this._insertElements(i,r-i,t):r<i&&this._removeElements(r,i-r)}_insertElements(t,e,n=!0){const i=this._cachedMeta,r=i.data,a=t+e;let o;const s=t=>{for(t.length+=e,o=t.length-1;o>=a;o--)t[o]=t[o-e]};for(s(r),o=t;o<a;++o)r[o]=new this.dataElementType;this._parsing&&s(i._parsed),this.parse(t,e),n&&this.updateElements(r,t,e,"reset")}updateElements(t,e,n,i){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const i=n._parsed.splice(t,e);n._stacked&&ri(n,i)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,n,i]=t;this[e](n,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function li(t){const e=t.iScale,n=function(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let i=[];for(let e=0,r=n.length;e<r;e++)i=i.concat(n[e].controller.getAllParsedValues(t));t._cache.$bar=Ze(i.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let i,r,a,o,s=e._length;const l=()=>{32767!==a&&-32768!==a&&(ot(o)&&(s=Math.min(s,Math.abs(a-o)||s)),o=a)};for(i=0,r=n.length;i<r;++i)a=e.getPixelForValue(n[i]),l();for(o=void 0,i=0,r=e.ticks.length;i<r;++i)a=e.getPixelForTick(i),l();return s}function ci(t,e,n,i){return V(t)?function(t,e,n,i){const r=n.parse(t[0],i),a=n.parse(t[1],i),o=Math.min(r,a),s=Math.max(r,a);let l=o,c=s;Math.abs(o)>Math.abs(s)&&(l=s,c=o),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:r,end:a,min:o,max:s}}(t,e,n,i):e[n.axis]=n.parse(t,i),e}function ui(t,e,n,i){const r=t.iScale,a=t.vScale,o=r.getLabels(),s=r===a,l=[];let c,u,h,d;for(c=n,u=n+i;c<u;++c)d=e[c],h={},h[r.axis]=s||r.parse(o[c],c),l.push(ci(d,h,a,c));return l}function hi(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function di(t,e,n,i){let r=e.borderSkipped;const a={};if(!r)return void(t.borderSkipped=a);const{start:o,end:s,reverse:l,top:c,bottom:u}=function(t){let e,n,i,r,a;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.base<t.y,n="bottom",i="top"),e?(r="end",a="start"):(r="start",a="end"),{start:n,end:i,reverse:e,top:r,bottom:a}}(t);"middle"===r&&n&&(t.enableBorderRadius=!0,(n._top||0)===i?r=c:(n._bottom||0)===i?r=u:(a[fi(u,o,s,l)]=!0,r=c)),a[fi(r,o,s,l)]=!0,t.borderSkipped=a}function fi(t,e,n,i){var r,a,o;return i?(o=n,t=pi(t=(r=t)===(a=e)?o:r===o?a:r,n,e)):t=pi(t,e,n),t}function pi(t,e,n){return"start"===t?e:"end"===t?n:t}function gi(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}si.defaults={},si.prototype.datasetElementType=null,si.prototype.dataElementType=null;class mi extends si{parsePrimitiveData(t,e,n,i){return ui(t,e,n,i)}parseArrayData(t,e,n,i){return ui(t,e,n,i)}parseObjectData(t,e,n,i){const{iScale:r,vScale:a}=t,{xAxisKey:o="x",yAxisKey:s="y"}=this._parsing,l="x"===r.axis?o:s,c="x"===a.axis?o:s,u=[];let h,d,f,p;for(h=n,d=n+i;h<d;++h)p=e[h],f={},f[r.axis]=r.parse(rt(p,l),h),u.push(ci(rt(p,c),f,a,h));return u}updateRangeFromParsed(t,e,n,i){super.updateRangeFromParsed(t,e,n,i);const r=n._custom;r&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,r.min),t.max=Math.max(t.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:n,vScale:i}=e,r=this.getParsed(t),a=r._custom,o=hi(a)?"["+a.start+", "+a.end+"]":""+i.getLabelForValue(r[i.axis]);return{label:""+n.getLabelForValue(r[n.axis]),value:o}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,n,i){const r="reset"===i,{index:a,_cachedMeta:{vScale:o}}=this,s=o.getBasePixel(),l=o.isHorizontal(),c=this._getRuler(),{sharedOptions:u,includeOptions:h}=this._getSharedOptions(e,i);for(let d=e;d<e+n;d++){const e=this.getParsed(d),n=r||W(e[o.axis])?{base:s,head:s}:this._calculateBarValuePixels(d),f=this._calculateBarIndexPixels(d,c),p=(e._stacks||{})[o.axis],g={horizontal:l,base:n.base,enableBorderRadius:!p||hi(e._custom)||a===p._top||a===p._bottom,x:l?n.head:f.center,y:l?f.center:n.head,height:l?f.size:Math.abs(n.size),width:l?Math.abs(n.size):f.size};h&&(g.options=u||this.resolveDataElementOptions(d,t[d].active?"active":i));const m=g.options||t[d].options;di(g,m,p,a),gi(g,m,c.ratio),this.updateElement(t[d],d,g,i)}}_getStacks(t,e){const{iScale:n}=this._cachedMeta,i=n.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),r=n.options.stacked,a=[],o=t=>{const n=t.controller.getParsed(e),i=n&&n[t.vScale.axis];if(W(i)||isNaN(i))return!0};for(const n of i)if((void 0===e||!o(n))&&((!1===r||-1===a.indexOf(n.stack)||void 0===r&&void 0===n.stack)&&a.push(n.stack),n.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,n){const i=this._getStacks(t,n),r=void 0!==e?i.indexOf(e):-1;return-1===r?i.length-1:r}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,i=[];let r,a;for(r=0,a=e.data.length;r<a;++r)i.push(n.getPixelForValue(this.getParsed(r)[n.axis],r));const o=t.barThickness;return{min:o||li(e),pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:o?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:n},options:{base:i,minBarLength:r}}=this,a=i||0,o=this.getParsed(t),s=o._custom,l=hi(s);let c,u,h=o[e.axis],d=0,f=n?this.applyStack(e,o,n):h;f!==h&&(d=f-h,f=h),l&&(h=s.barStart,f=s.barEnd-s.barStart,0!==h&&yt(h)!==yt(s.barEnd)&&(d=0),d+=h);const p=W(i)||l?d:i;let g=e.getPixelForValue(p);if(c=this.chart.getDataVisibility(t)?e.getPixelForValue(d+f):g,u=c-g,Math.abs(u)<r){u=function(t,e,n){return 0!==t?yt(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(u,e,a)*r,h===a&&(g-=u/2);const t=e.getPixelForDecimal(0),n=e.getPixelForDecimal(1),i=Math.min(t,n),o=Math.max(t,n);g=Math.max(Math.min(g,o),i),c=g+u}if(g===e.getPixelForValue(a)){const t=yt(u)*e.getLineWidthForValue(a)/2;g+=t,u-=t}return{size:u,base:g,head:c,center:c+u/2}}_calculateBarIndexPixels(t,e){const n=e.scale,i=this.options,r=i.skipNull,a=Y(i.maxBarThickness,1/0);let o,s;if(e.grouped){const n=r?this._getStackCount(t):e.stackCount,l="flex"===i.barThickness?function(t,e,n,i){const r=e.pixels,a=r[t];let o=t>0?r[t-1]:null,s=t<r.length-1?r[t+1]:null;const l=n.categoryPercentage;null===o&&(o=a-(null===s?e.end-e.start:s-a)),null===s&&(s=a+a-o);const c=a-(a-Math.min(o,s))/2*l;return{chunk:Math.abs(s-o)/2*l/i,ratio:n.barPercentage,start:c}}(t,e,i,n):function(t,e,n,i){const r=n.barThickness;let a,o;return W(r)?(a=e.min*n.categoryPercentage,o=n.barPercentage):(a=r*i,o=1),{chunk:a/i,ratio:o,start:e.pixels[t]-a/2}}(t,e,i,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,r?t:void 0);o=l.start+l.chunk*c+l.chunk/2,s=Math.min(a,l.chunk*l.ratio)}else o=n.getPixelForValue(this.getParsed(t)[n.axis],t),s=Math.min(a,e.min*e.ratio);return{base:o-s/2,head:o+s/2,center:o,size:s}}draw(){const t=this._cachedMeta,e=t.vScale,n=t.data,i=n.length;let r=0;for(;r<i;++r)null!==this.getParsed(r)[e.axis]&&n[r].draw(this._ctx)}}mi.id="bar",mi.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},mi.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class bi extends si{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,n,i){const r=super.parsePrimitiveData(t,e,n,i);for(let t=0;t<r.length;t++)r[t]._custom=this.resolveDataElementOptions(t+n).radius;return r}parseArrayData(t,e,n,i){const r=super.parseArrayData(t,e,n,i);for(let t=0;t<r.length;t++){const i=e[n+t];r[t]._custom=Y(i[2],this.resolveDataElementOptions(t+n).radius)}return r}parseObjectData(t,e,n,i){const r=super.parseObjectData(t,e,n,i);for(let t=0;t<r.length;t++){const i=e[n+t];r[t]._custom=Y(i&&i.r&&+i.r,this.resolveDataElementOptions(t+n).radius)}return r}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:n,yScale:i}=e,r=this.getParsed(t),a=n.getLabelForValue(r.x),o=i.getLabelForValue(r.y),s=r._custom;return{label:e.label,value:"("+a+", "+o+(s?", "+s:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,n,i){const r="reset"===i,{iScale:a,vScale:o}=this._cachedMeta,{sharedOptions:s,includeOptions:l}=this._getSharedOptions(e,i),c=a.axis,u=o.axis;for(let h=e;h<e+n;h++){const e=t[h],n=!r&&this.getParsed(h),d={},f=d[c]=r?a.getPixelForDecimal(.5):a.getPixelForValue(n[c]),p=d[u]=r?o.getBasePixel():o.getPixelForValue(n[u]);d.skip=isNaN(f)||isNaN(p),l&&(d.options=s||this.resolveDataElementOptions(h,e.active?"active":i),r&&(d.options.radius=0)),this.updateElement(e,h,d,i)}}resolveDataElementOptions(t,e){const n=this.getParsed(t);let i=super.resolveDataElementOptions(t,e);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const r=i.radius;return"active"!==e&&(i.radius=0),i.radius+=Y(n&&n._custom,r),i}}bi.id="bubble",bi.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},bi.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class yi extends si{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const n=this.getDataset().data,i=this._cachedMeta;if(!1===this._parsing)i._parsed=n;else{let r,a,o=t=>+n[t];if(H(n[t])){const{key:t="value"}=this._parsing;o=e=>+rt(n[e],t)}for(r=t,a=t+e;r<a;++r)i._parsed[r]=o(r)}}_getRotation(){return wt(this.options.rotation-90)}_getCircumference(){return wt(this.options.circumference)}_getRotationExtents(){let t=ut,e=-ut;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)){const i=this.chart.getDatasetMeta(n).controller,r=i._getRotation(),a=i._getCircumference();t=Math.min(t,r),e=Math.max(e,r+a)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:n}=e,i=this._cachedMeta,r=i.data,a=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,o=Math.max((Math.min(n.width,n.height)-a)/2,0),s=Math.min((c=o,"string"==typeof(l=this.options.cutout)&&l.endsWith("%")?parseFloat(l)/100:l/c),1);var l,c;const u=this._getRingWeight(this.index),{circumference:h,rotation:d}=this._getRotationExtents(),{ratioX:f,ratioY:p,offsetX:g,offsetY:m}=function(t,e,n){let i=1,r=1,a=0,o=0;if(e<ut){const s=t,l=s+e,c=Math.cos(s),u=Math.sin(s),h=Math.cos(l),d=Math.sin(l),f=(t,e,i)=>Bt(t,s,l,!0)?1:Math.max(e,e*n,i,i*n),p=(t,e,i)=>Bt(t,s,l,!0)?-1:Math.min(e,e*n,i,i*n),g=f(0,c,h),m=f(pt,u,d),b=p(ct,c,h),y=p(ct+pt,u,d);i=(g-b)/2,r=(m-y)/2,a=-(g+b)/2,o=-(m+y)/2}return{ratioX:i,ratioY:r,offsetX:a,offsetY:o}}(d,h,s),b=(n.width-a)/f,y=(n.height-a)/p,v=Math.max(Math.min(b,y)/2,0),x=q(this.options.radius,v),_=(x-Math.max(x*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*x,this.offsetY=m*x,i.total=this.calculateTotal(),this.outerRadius=x-_*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-_*u,0),this.updateElements(r,0,r.length,t)}_circumference(t,e){const n=this.options,i=this._cachedMeta,r=this._getCircumference();return e&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===i._parsed[t]||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*r/ut)}updateElements(t,e,n,i){const r="reset"===i,a=this.chart,o=a.chartArea,s=a.options.animation,l=(o.left+o.right)/2,c=(o.top+o.bottom)/2,u=r&&s.animateScale,h=u?0:this.innerRadius,d=u?0:this.outerRadius,{sharedOptions:f,includeOptions:p}=this._getSharedOptions(e,i);let g,m=this._getRotation();for(g=0;g<e;++g)m+=this._circumference(g,r);for(g=e;g<e+n;++g){const e=this._circumference(g,r),n=t[g],a={x:l+this.offsetX,y:c+this.offsetY,startAngle:m,endAngle:m+e,circumference:e,outerRadius:d,innerRadius:h};p&&(a.options=f||this.resolveDataElementOptions(g,n.active?"active":i)),m+=e,this.updateElement(n,g,a,i)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let n,i=0;for(n=0;n<e.length;n++){const r=t._parsed[n];null===r||isNaN(r)||!this.chart.getDataVisibility(n)||e[n].hidden||(i+=Math.abs(r))}return i}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?ut*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],r=Ln(e._parsed[t],n.options.locale);return{label:i[t]||"",value:r}}getMaxBorderWidth(t){let e=0;const n=this.chart;let i,r,a,o,s;if(!t)for(i=0,r=n.data.datasets.length;i<r;++i)if(n.isDatasetVisible(i)){a=n.getDatasetMeta(i),t=a.data,o=a.controller;break}if(!t)return 0;for(i=0,r=t.length;i<r;++i)s=o.resolveDataElementOptions(i),"inner"!==s.borderAlign&&(e=Math.max(e,s.borderWidth||0,s.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let n=0,i=t.length;n<i;++n){const t=this.resolveDataElementOptions(n);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e}_getRingWeight(t){return Math.max(Y(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}yi.id="doughnut",yi.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"},yi.descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t},yi.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map(((e,i)=>{const r=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:r.backgroundColor,strokeStyle:r.borderColor,lineWidth:r.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}}))}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label(t){let e=t.label;const n=": "+t.formattedValue;return V(e)?(e=e.slice(),e[0]+=n):e+=n,e}}}}};class vi extends si{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:n,data:i=[],_dataset:r}=e,a=this.chart._animationsDisabled;let{start:o,count:s}=function(t,e,n){const i=e.length;let r=0,a=i;if(t._sorted){const{iScale:o,_parsed:s}=t,l=o.axis,{min:c,max:u,minDefined:h,maxDefined:d}=o.getUserBounds();h&&(r=Tt(Math.min(qe(s,o.axis,c).lo,n?i:qe(e,l,o.getPixelForValue(c)).lo),0,i-1)),a=d?Tt(Math.max(qe(s,o.axis,u).hi+1,n?0:qe(e,l,o.getPixelForValue(u)).hi+1),r,i)-r:i-r}return{start:r,count:a}}(e,i,a);this._drawStart=o,this._drawCount=s,function(t){const{xScale:e,yScale:n,_scaleRanges:i}=t,r={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!i)return t._scaleRanges=r,!0;const a=i.xmin!==e.min||i.xmax!==e.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,r),a}(e)&&(o=0,s=i.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!r._decimated,n.points=i;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!a,options:l},t),this.updateElements(i,o,s,t)}updateElements(t,e,n,i){const r="reset"===i,{iScale:a,vScale:o,_stacked:s,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:u}=this._getSharedOptions(e,i),h=a.axis,d=o.axis,{spanGaps:f,segment:p}=this.options,g=xt(f)?f:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||r||"none"===i;let b=e>0&&this.getParsed(e-1);for(let f=e;f<e+n;++f){const e=t[f],n=this.getParsed(f),y=m?e:{},v=W(n[d]),x=y[h]=a.getPixelForValue(n[h],f),_=y[d]=r||v?o.getBasePixel():o.getPixelForValue(s?this.applyStack(o,n,s):n[d],f);y.skip=isNaN(x)||isNaN(_)||v,y.stop=f>0&&Math.abs(n[h]-b[h])>g,p&&(y.parsed=n,y.raw=l.data[f]),u&&(y.options=c||this.resolveDataElementOptions(f,e.active?"active":i)),m||this.updateElement(e,f,y,i),b=n}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,n=e.options&&e.options.borderWidth||0,i=t.data||[];if(!i.length)return n;const r=i[0].size(this.resolveDataElementOptions(0)),a=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(n,r,a)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}vi.id="line",vi.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},vi.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class xi extends si{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],r=Ln(e._parsed[t].r,n.options.locale);return{label:i[t]||"",value:r}}parseObjectData(t,e,n,i){return dn.bind(this)(t,e,n,i)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach(((t,n)=>{const i=this.getParsed(n).r;!isNaN(i)&&this.chart.getDataVisibility(n)&&(i<e.min&&(e.min=i),i>e.max&&(e.max=i))})),e}_updateRadius(){const t=this.chart,e=t.chartArea,n=t.options,i=Math.min(e.right-e.left,e.bottom-e.top),r=Math.max(i/2,0),a=(r-Math.max(n.cutoutPercentage?r/100*n.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=r-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,e,n,i){const r="reset"===i,a=this.chart,o=a.options.animation,s=this._cachedMeta.rScale,l=s.xCenter,c=s.yCenter,u=s.getIndexAngle(0)-.5*ct;let h,d=u;const f=360/this.countVisibleElements();for(h=0;h<e;++h)d+=this._computeAngle(h,i,f);for(h=e;h<e+n;h++){const e=t[h];let n=d,p=d+this._computeAngle(h,i,f),g=a.getDataVisibility(h)?s.getDistanceFromCenterForValue(this.getParsed(h).r):0;d=p,r&&(o.animateScale&&(g=0),o.animateRotate&&(n=p=u));const m={x:l,y:c,innerRadius:0,outerRadius:g,startAngle:n,endAngle:p,options:this.resolveDataElementOptions(h,e.active?"active":i)};this.updateElement(e,h,m,i)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach(((t,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&e++})),e}_computeAngle(t,e,n){return this.chart.getDataVisibility(t)?wt(this.resolveDataElementOptions(t,e).angle||n):0}}xi.id="polarArea",xi.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},xi.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map(((e,i)=>{const r=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:r.backgroundColor,strokeStyle:r.borderColor,lineWidth:r.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}}))}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label:t=>t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class _i extends yi{}_i.id="pie",_i.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class Ai extends si{getLabelAndValue(t){const e=this._cachedMeta.vScale,n=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(n[e.axis])}}parseObjectData(t,e,n,i){return dn.bind(this)(t,e,n,i)}update(t){const e=this._cachedMeta,n=e.dataset,i=e.data||[],r=e.iScale.getLabels();if(n.points=i,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const a={_loop:!0,_fullLoop:r.length===i.length,options:e};this.updateElement(n,void 0,a,t)}this.updateElements(i,0,i.length,t)}updateElements(t,e,n,i){const r=this._cachedMeta.rScale,a="reset"===i;for(let o=e;o<e+n;o++){const e=t[o],n=this.resolveDataElementOptions(o,e.active?"active":i),s=r.getPointPositionForValue(o,this.getParsed(o).r),l=a?r.xCenter:s.x,c=a?r.yCenter:s.y,u={x:l,y:c,angle:s.angle,skip:isNaN(l)||isNaN(c),options:n};this.updateElement(e,o,u,i)}}}Ai.id="radar",Ai.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},Ai.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class wi extends vi{}wi.id="scatter",wi.defaults={showLine:!1,fill:!1},wi.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var ki=Object.freeze({__proto__:null,BarController:mi,BubbleController:bi,DoughnutController:yi,LineController:vi,PolarAreaController:xi,PieController:_i,RadarController:Ai,ScatterController:wi});function Ci(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Ei{constructor(t){this.options=t||{}}formats(){return Ci()}parse(t,e){return Ci()}format(t,e){return Ci()}add(t,e,n){return Ci()}diff(t,e,n){return Ci()}startOf(t,e,n){return Ci()}endOf(t,e){return Ci()}}Ei.override=function(t){Object.assign(Ei.prototype,t)};var Si={_date:Ei};function Mi(t,e,n,i){const{controller:r,data:a,_sorted:o}=t,s=r._cachedMeta.iScale;if(s&&e===s.axis&&"r"!==e&&o&&a.length){const t=s._reversePixels?Qe:qe;if(!i)return t(a,e,n);if(r._sharedOptions){const i=a[0],r="function"==typeof i.getRange&&i.getRange(e);if(r){const i=t(a,e,n-r),o=t(a,e,n+r);return{lo:i.lo,hi:o.hi}}}}return{lo:0,hi:a.length-1}}function Pi(t,e,n,i,r){const a=t.getSortedVisibleDatasetMetas(),o=n[e];for(let t=0,n=a.length;t<n;++t){const{index:n,data:s}=a[t],{lo:l,hi:c}=Mi(a[t],e,o,r);for(let t=l;t<=c;++t){const e=s[t];e.skip||i(e,n,t)}}}function Bi(t,e,n,i,r){const a=[];return r||t.isPointInArea(e)?(Pi(t,n,e,(function(n,o,s){(r||Me(n,t.chartArea,0))&&n.inRange(e.x,e.y,i)&&a.push({element:n,datasetIndex:o,index:s})}),!0),a):a}function Ti(t,e,n,i,r,a){return a||t.isPointInArea(e)?"r"!==n||i?function(t,e,n,i,r,a){let o=[];const s=function(t){const e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,i){const r=e?Math.abs(t.x-i.x):0,a=n?Math.abs(t.y-i.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(a,2))}}(n);let l=Number.POSITIVE_INFINITY;return Pi(t,n,e,(function(n,c,u){const h=n.inRange(e.x,e.y,r);if(i&&!h)return;const d=n.getCenterPoint(r);if(!a&&!t.isPointInArea(d)&&!h)return;const f=s(e,d);f<l?(o=[{element:n,datasetIndex:c,index:u}],l=f):f===l&&o.push({element:n,datasetIndex:c,index:u})})),o}(t,e,n,i,r,a):function(t,e,n,i){let r=[];return Pi(t,n,e,(function(t,n,a){const{startAngle:o,endAngle:s}=t.getProps(["startAngle","endAngle"],i),{angle:l}=Et(t,{x:e.x,y:e.y});Bt(l,o,s)&&r.push({element:t,datasetIndex:n,index:a})})),r}(t,e,n,r):[]}function Di(t,e,n,i,r){const a=[],o="x"===n?"inXRange":"inYRange";let s=!1;return Pi(t,n,e,((t,i,l)=>{t[o](e[n],r)&&(a.push({element:t,datasetIndex:i,index:l}),s=s||t.inRange(e.x,e.y,r))})),i&&!s?[]:a}var Oi={evaluateInteractionItems:Pi,modes:{index(t,e,n,i){const r=Cn(e,t),a=n.axis||"x",o=n.includeInvisible||!1,s=n.intersect?Bi(t,r,a,i,o):Ti(t,r,a,!1,i,o),l=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=s[0].index,n=t.data[e];n&&!n.skip&&l.push({element:n,datasetIndex:t.index,index:e})})),l):[]},dataset(t,e,n,i){const r=Cn(e,t),a=n.axis||"xy",o=n.includeInvisible||!1;let s=n.intersect?Bi(t,r,a,i,o):Ti(t,r,a,!1,i,o);if(s.length>0){const e=s[0].datasetIndex,n=t.getDatasetMeta(e).data;s=[];for(let t=0;t<n.length;++t)s.push({element:n[t],datasetIndex:e,index:t})}return s},point:(t,e,n,i)=>Bi(t,Cn(e,t),n.axis||"xy",i,n.includeInvisible||!1),nearest(t,e,n,i){const r=Cn(e,t),a=n.axis||"xy",o=n.includeInvisible||!1;return Ti(t,r,a,n.intersect,i,o)},x:(t,e,n,i)=>Di(t,Cn(e,t),"x",n.intersect,i),y:(t,e,n,i)=>Di(t,Cn(e,t),"y",n.intersect,i)}};const Li=["left","top","right","bottom"];function zi(t,e){return t.filter((t=>t.pos===e))}function Ri(t,e){return t.filter((t=>-1===Li.indexOf(t.pos)&&t.box.axis===e))}function Ni(t,e){return t.sort(((t,n)=>{const i=e?n:t,r=e?t:n;return i.weight===r.weight?i.index-r.index:i.weight-r.weight}))}function Ii(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function Fi(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function ji(t,e,n,i){const{pos:r,box:a}=n,o=t.maxPadding;if(!H(r)){n.size&&(t[r]-=n.size);const e=i[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?a.height:a.width),n.size=e.size/e.count,t[r]+=n.size}a.getPadding&&Fi(o,a.getPadding());const s=Math.max(0,e.outerWidth-Ii(o,t,"left","right")),l=Math.max(0,e.outerHeight-Ii(o,t,"top","bottom")),c=s!==t.w,u=l!==t.h;return t.w=s,t.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function Wi(t,e){const n=e.maxPadding;return function(t){const i={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{i[t]=Math.max(e[t],n[t])})),i}(t?["left","right"]:["top","bottom"])}function Vi(t,e,n,i){const r=[];let a,o,s,l,c,u;for(a=0,o=t.length,c=0;a<o;++a){s=t[a],l=s.box,l.update(s.width||e.w,s.height||e.h,Wi(s.horizontal,e));const{same:o,other:h}=ji(e,n,s,i);c|=o&&r.length,u=u||h,l.fullSize||r.push(s)}return c&&Vi(r,e,n,i)||u}function Hi(t,e,n,i,r){t.top=n,t.left=e,t.right=e+i,t.bottom=n+r,t.width=i,t.height=r}function Ui(t,e,n,i){const r=n.padding;let{x:a,y:o}=e;for(const s of t){const t=s.box,l=i[s.stack]||{count:1,placed:0,weight:1},c=s.stackWeight/l.weight||1;if(s.horizontal){const i=e.w*c,a=l.size||t.height;ot(l.start)&&(o=l.start),t.fullSize?Hi(t,r.left,o,n.outerWidth-r.right-r.left,a):Hi(t,e.left+l.placed,o,i,a),l.start=o,l.placed+=i,o=t.bottom}else{const i=e.h*c,o=l.size||t.width;ot(l.start)&&(a=l.start),t.fullSize?Hi(t,a,r.top,o,n.outerHeight-r.bottom-r.top):Hi(t,a,e.top+l.placed,o,i),l.start=a,l.placed+=i,a=t.right}}e.x=a,e.y=o}_e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var $i={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,i){if(!t)return;const r=Ve(t.options.layout.padding),a=Math.max(e-r.width,0),o=Math.max(n-r.height,0),s=function(t){const e=function(t){const e=[];let n,i,r,a,o,s;for(n=0,i=(t||[]).length;n<i;++n)r=t[n],({position:a,options:{stack:o,stackWeight:s=1}}=r),e.push({index:n,box:r,pos:a,horizontal:r.isHorizontal(),weight:r.weight,stack:o&&a+o,stackWeight:s});return e}(t),n=Ni(e.filter((t=>t.box.fullSize)),!0),i=Ni(zi(e,"left"),!0),r=Ni(zi(e,"right")),a=Ni(zi(e,"top"),!0),o=Ni(zi(e,"bottom")),s=Ri(e,"x"),l=Ri(e,"y");return{fullSize:n,leftAndTop:i.concat(a),rightAndBottom:r.concat(l).concat(o).concat(s),chartArea:zi(e,"chartArea"),vertical:i.concat(r).concat(l),horizontal:a.concat(o).concat(s)}}(t.boxes),l=s.vertical,c=s.horizontal;X(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const u=l.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,h=Object.freeze({outerWidth:e,outerHeight:n,padding:r,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/u,hBoxMaxHeight:o/2}),d=Object.assign({},r);Fi(d,Ve(i));const f=Object.assign({maxPadding:d,w:a,h:o,x:r.left,y:r.top},r),p=function(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:i,stackWeight:r}=n;if(!t||!Li.includes(i))continue;const a=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=r}return e}(t),{vBoxMaxWidth:i,hBoxMaxHeight:r}=e;let a,o,s;for(a=0,o=t.length;a<o;++a){s=t[a];const{fullSize:o}=s.box,l=n[s.stack],c=l&&s.stackWeight/l.weight;s.horizontal?(s.width=c?c*i:o&&e.availableWidth,s.height=r):(s.width=i,s.height=c?c*r:o&&e.availableHeight)}return n}(l.concat(c),h);Vi(s.fullSize,f,h,p),Vi(l,f,h,p),Vi(c,f,h,p)&&Vi(l,f,h,p),function(t){const e=t.maxPadding;function n(n){const i=Math.max(e[n]-t[n],0);return t[n]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(f),Ui(s.leftAndTop,f,h,p),f.x+=f.w,f.y+=f.h,Ui(s.rightAndBottom,f,h,p),t.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},X(s.chartArea,(e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})}))}};class Yi{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,i){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,i?Math.floor(e/i):n)}}isAttached(t){return!0}updateConfig(t){}}class qi extends Yi{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Qi={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Xi=t=>null===t||""===t,Ki=!!Mn&&{passive:!0};function Zi(t,e,n){t.canvas.removeEventListener(e,n,Ki)}function Gi(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function Ji(t,e,n){const i=t.canvas,r=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||Gi(n.addedNodes,i),e=e&&!Gi(n.removedNodes,i);e&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}function tr(t,e,n){const i=t.canvas,r=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||Gi(n.removedNodes,i),e=e&&!Gi(n.addedNodes,i);e&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}const er=new Map;let nr=0;function ir(){const t=window.devicePixelRatio;t!==nr&&(nr=t,er.forEach(((e,n)=>{n.currentDevicePixelRatio!==t&&e()})))}function rr(t,e,n){const i=t.canvas,r=i&&xn(i);if(!r)return;const a=R(((t,e)=>{const i=r.clientWidth;n(t,e),i<r.clientWidth&&n()}),window),o=new ResizeObserver((t=>{const e=t[0],n=e.contentRect.width,i=e.contentRect.height;0===n&&0===i||a(n,i)}));return o.observe(r),function(t,e){er.size||window.addEventListener("resize",ir),er.set(t,e)}(t,a),o}function ar(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){er.delete(t),er.size||window.removeEventListener("resize",ir)}(t)}function or(t,e,n){const i=t.canvas,r=R((e=>{null!==t.ctx&&n(function(t,e){const n=Qi[t.type]||t.type,{x:i,y:r}=Cn(t,e);return{type:n,chart:e,native:t,x:void 0!==i?i:null,y:void 0!==r?r:null}}(e,t))}),t,(t=>{const e=t[0];return[e,e.offsetX,e.offsetY]}));return function(t,e,n){t.addEventListener(e,n,Ki)}(i,e,r),r}class sr extends Yi{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){const n=t.style,i=t.getAttribute("height"),r=t.getAttribute("width");if(t.$chartjs={initial:{height:i,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Xi(r)){const e=Pn(t,"width");void 0!==e&&(t.width=e)}if(Xi(i))if(""===t.style.height)t.height=t.width/(e||2);else{const e=Pn(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e.$chartjs)return!1;const n=e.$chartjs.initial;["height","width"].forEach((t=>{const i=n[t];W(i)?e.removeAttribute(t):e.setAttribute(t,i)}));const i=n.style||{};return Object.keys(i).forEach((t=>{e.style[t]=i[t]})),e.width=e.width,delete e.$chartjs,!0}addEventListener(t,e,n){this.removeEventListener(t,e);const i=t.$proxies||(t.$proxies={}),r={attach:Ji,detach:tr,resize:rr}[e]||or;i[e]=r(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),i=n[e];i&&(({attach:ar,detach:ar,resize:ar}[e]||Zi)(t,e,i),n[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,i){return function(t,e,n,i){const r=An(t),a=kn(r,"margin"),o=_n(r.maxWidth,t,"clientWidth")||dt,s=_n(r.maxHeight,t,"clientHeight")||dt,l=function(t,e,n){let i,r;if(void 0===e||void 0===n){const a=xn(t);if(a){const t=a.getBoundingClientRect(),o=An(a),s=kn(o,"border","width"),l=kn(o,"padding");e=t.width-l.width-s.width,n=t.height-l.height-s.height,i=_n(o.maxWidth,a,"clientWidth"),r=_n(o.maxHeight,a,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:i||dt,maxHeight:r||dt}}(t,e,n);let{width:c,height:u}=l;if("content-box"===r.boxSizing){const t=kn(r,"border","width"),e=kn(r,"padding");c-=e.width+t.width,u-=e.height+t.height}return c=Math.max(0,c-a.width),u=Math.max(0,i?Math.floor(c/i):u-a.height),c=En(Math.min(c,o,l.maxWidth)),u=En(Math.min(u,s,l.maxHeight)),c&&!u&&(u=En(c/2)),{width:c,height:u}}(t,e,n,i)}isAttached(t){const e=xn(t);return!(!e||!e.isConnected)}}class lr{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}hasValue(){return xt(this.x)&&xt(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const i={};return t.forEach((t=>{i[t]=n[t]&&n[t].active()?n[t]._to:this[t]})),i}}lr.defaults={},lr.defaultRoutes=void 0;const cr={values:t=>V(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const i=this.chart.options.locale;let r,a=t;if(n.length>1){const e=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(e<1e-4||e>1e15)&&(r="scientific"),a=function(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}(t,n)}const o=bt(Math.abs(a)),s=Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:r,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),Ln(t,i,l)},logarithmic(t,e,n){if(0===t)return"0";const i=t/Math.pow(10,Math.floor(bt(t)));return 1===i||2===i||5===i?cr.numeric.call(this,t,e,n):""}};var ur={formatters:cr};function hr(t,e,n,i,r){const a=Y(i,0),o=Math.min(Y(r,t.length),t.length);let s,l,c,u=0;for(n=Math.ceil(n),r&&(s=r-i,n=s/Math.floor(s/n)),c=a;c<0;)u++,c=Math.round(a+u*n);for(l=Math.max(a,0);l<o;l++)l===c&&(e.push(t[l]),u++,c=Math.round(a+u*n))}_e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth: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:ur.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.grid","borderColor","","borderColor"),_e.route("scale.title","color","","color"),_e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),_e.describe("scales",{_fallback:"scale"}),_e.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const dr=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n;function fr(t,e){const n=[],i=t.length/e,r=t.length;let a=0;for(;a<r;a+=i)n.push(t[Math.floor(a)]);return n}function pr(t,e,n){const i=t.ticks.length,r=Math.min(e,i-1),a=t._startPixel,o=t._endPixel,s=1e-6;let l,c=t.getPixelForTick(r);if(!(n&&(l=1===i?Math.max(c-a,o-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(r-1))/2,c+=r<e?l:-l,c<a-s||c>o+s)))return c}function gr(t){return t.drawTicks?t.tickLength:0}function mr(t,e){if(!t.display)return 0;const n=He(t.font,e),i=Ve(t.padding);return(V(t.text)?t.text.length:1)*n.lineHeight+i.height}function br(t,e,n){let i=N(t);return(n&&"right"!==e||!n&&"right"===e)&&(i=(t=>"left"===t?"right":"right"===t?"left":t)(i)),i}class yr extends lr{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:n,_suggestedMax:i}=this;return t=$(t,Number.POSITIVE_INFINITY),e=$(e,Number.NEGATIVE_INFINITY),n=$(n,Number.POSITIVE_INFINITY),i=$(i,Number.NEGATIVE_INFINITY),{min:$(t,n),max:$(e,i),minDefined:U(t),maxDefined:U(e)}}getMinMax(t){let e,{min:n,max:i,minDefined:r,maxDefined:a}=this.getUserBounds();if(r&&a)return{min:n,max:i};const o=this.getMatchingVisibleMetas();for(let s=0,l=o.length;s<l;++s)e=o[s].controller.getMinMax(this,t),r||(n=Math.min(n,e.min)),a||(i=Math.max(i,e.max));return n=a&&n>i?i:n,i=r&&n>i?n:i,{min:$(n,$(i,n)),max:$(i,$(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Q(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:i,grace:r,ticks:a}=this.options,o=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,n){const{min:i,max:r}=t,a=q(e,(r-i)/2),o=(t,e)=>n&&0===t?0:t+e;return{min:o(i,-Math.abs(a)),max:o(r,a)}}(this,r,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=o<this.ticks.length;this._convertTicksToLabels(s?fr(this.ticks,o):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||"auto"===a.source)&&(this.ticks=function(t,e){const n=t.options.ticks,i=n.maxTicksLimit||function(t){const e=t.options.offset,n=t._tickSize(),i=t._length/n+(e?0:1),r=t._maxLength/n;return Math.floor(Math.min(i,r))}(t),r=n.major.enabled?function(t){const e=[];let n,i;for(n=0,i=t.length;n<i;n++)t[n].major&&e.push(n);return e}(e):[],a=r.length,o=r[0],s=r[a-1],l=[];if(a>i)return function(t,e,n,i){let r,a=0,o=n[0];for(i=Math.ceil(i),r=0;r<t.length;r++)r===o&&(e.push(t[r]),a++,o=n[a*i])}(e,l,r,a/i),l;const c=function(t,e,n){const i=function(t){const e=t.length;let n,i;if(e<2)return!1;for(i=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==i)return!1;return i}(t),r=e.length/n;if(!i)return Math.max(r,1);const a=function(t){const e=[],n=Math.sqrt(t);let i;for(i=1;i<n;i++)t%i==0&&(e.push(i),e.push(t/i));return n===(0|n)&&e.push(n),e.sort(((t,e)=>t-e)).pop(),e}(i);for(let t=0,e=a.length-1;t<e;t++){const e=a[t];if(e>r)return e}return Math.max(r,1)}(r,e,i);if(a>0){let t,n;const i=a>1?Math.round((s-o)/(a-1)):null;for(hr(e,l,c,W(i)?0:o-i,o),t=0,n=a-1;t<n;t++)hr(e,l,c,r[t],r[t+1]);return hr(e,l,c,s,W(i)?e.length:s+i),l}return hr(e,l,c),l}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Q(this.options.afterUpdate,[this])}beforeSetDimensions(){Q(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(){Q(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Q(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Q(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,i,r;for(n=0,i=t.length;n<i;n++)r=t[n],r.label=Q(e.callback,[r.value,n,t],this)}afterTickToLabelConversion(){Q(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Q(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=this.ticks.length,i=e.minRotation||0,r=e.maxRotation;let a,o,s,l=i;if(!this._isVisible()||!e.display||i>=r||n<=1||!this.isHorizontal())return void(this.labelRotation=i);const c=this._getLabelSizes(),u=c.widest.width,h=c.highest.height,d=Tt(this.chart.width-u,0,this.maxWidth);a=t.offset?this.maxWidth/n:d/(n-1),u+6>a&&(a=d/(n-(t.offset?.5:1)),o=this.maxHeight-gr(t.grid)-e.padding-mr(t.title,this.chart.options.font),s=Math.sqrt(u*u+h*h),l=kt(Math.min(Math.asin(Tt((c.highest.height+6)/a,-1,1)),Math.asin(Tt(o/s,-1,1))-Math.asin(Tt(h/s,-1,1)))),l=Math.max(i,Math.min(r,l))),this.labelRotation=l}afterCalculateLabelRotation(){Q(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Q(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:i,grid:r}}=this,a=this._isVisible(),o=this.isHorizontal();if(a){const a=mr(i,e.options.font);if(o?(t.width=this.maxWidth,t.height=gr(r)+a):(t.height=this.maxHeight,t.width=gr(r)+a),n.display&&this.ticks.length){const{first:e,last:i,widest:r,highest:a}=this._getLabelSizes(),s=2*n.padding,l=wt(this.labelRotation),c=Math.cos(l),u=Math.sin(l);if(o){const e=n.mirror?0:u*r.width+c*a.height;t.height=Math.min(this.maxHeight,t.height+e+s)}else{const e=n.mirror?0:c*r.width+u*a.height;t.width=Math.min(this.maxWidth,t.width+e+s)}this._calculatePadding(e,i,u,c)}}this._handleMargins(),o?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,n,i){const{ticks:{align:r,padding:a},position:o}=this.options,s=0!==this.labelRotation,l="top"!==o&&"x"===this.axis;if(this.isHorizontal()){const o=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,h=0;s?l?(u=i*t.width,h=n*e.height):(u=n*t.height,h=i*e.width):"start"===r?h=e.width:"end"===r?u=t.width:"inner"!==r&&(u=t.width/2,h=e.width/2),this.paddingLeft=Math.max((u-o+a)*this.width/(this.width-o),0),this.paddingRight=Math.max((h-c+a)*this.width/(this.width-c),0)}else{let n=e.height/2,i=t.height/2;"start"===r?(n=0,i=t.height):"end"===r&&(n=e.height,i=0),this.paddingTop=n+a,this.paddingBottom=i+a}}_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(){Q(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)W(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let n=this.ticks;e<n.length&&(n=fr(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length)}return t}_computeLabelSizes(t,e){const{ctx:n,_longestTextCache:i}=this,r=[],a=[];let o,s,l,c,u,h,d,f,p,g,m,b=0,y=0;for(o=0;o<e;++o){if(c=t[o].label,u=this._resolveTickFontOptions(o),n.font=h=u.string,d=i[h]=i[h]||{data:{},gc:[]},f=u.lineHeight,p=g=0,W(c)||V(c)){if(V(c))for(s=0,l=c.length;s<l;++s)m=c[s],W(m)||V(m)||(p=Ae(n,d.data,d.gc,p,m),g+=f)}else p=Ae(n,d.data,d.gc,p,c),g=f;r.push(p),a.push(g),b=Math.max(p,b),y=Math.max(g,y)}!function(t,e){X(t,(t=>{const n=t.gc,i=n.length/2;let r;if(i>e){for(r=0;r<i;++r)delete t.data[n[r]];n.splice(0,i)}}))}(i,e);const v=r.indexOf(b),x=a.indexOf(y),_=t=>({width:r[t]||0,height:a[t]||0});return{first:_(0),last:_(e-1),widest:_(v),highest:_(x),widths:r,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return Tt(this._alignToPixels?ke(this.chart,e,0):e,-32768,32767)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const n=e[t];return n.$context||(n.$context=function(t,e,n){return $e(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=$e(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=wt(this.labelRotation),n=Math.abs(Math.cos(e)),i=Math.abs(Math.sin(e)),r=this._getLabelSizes(),a=t.autoSkipPadding||0,o=r?r.widest.width+a:0,s=r?r.highest.height+a:0;return this.isHorizontal()?s*n>o*i?o/n:s/i:s*i<o*n?s/n:o/i}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,n=this.chart,i=this.options,{grid:r,position:a}=i,o=r.offset,s=this.isHorizontal(),l=this.ticks.length+(o?1:0),c=gr(r),u=[],h=r.setContext(this.getContext()),d=h.drawBorder?h.borderWidth:0,f=d/2,p=function(t){return ke(n,t,d)};let g,m,b,y,v,x,_,A,w,k,C,E;if("top"===a)g=p(this.bottom),x=this.bottom-c,A=g-f,k=p(t.top)+f,E=t.bottom;else if("bottom"===a)g=p(this.top),k=t.top,E=p(t.bottom)-f,x=g+f,A=this.top+c;else if("left"===a)g=p(this.right),v=this.right-c,_=g-f,w=p(t.left)+f,C=t.right;else if("right"===a)g=p(this.left),w=t.left,C=p(t.right)-f,v=g+f,_=this.left+c;else if("x"===e){if("center"===a)g=p((t.top+t.bottom)/2+.5);else if(H(a)){const t=Object.keys(a)[0],e=a[t];g=p(this.chart.scales[t].getPixelForValue(e))}k=t.top,E=t.bottom,x=g+f,A=x+c}else if("y"===e){if("center"===a)g=p((t.left+t.right)/2);else if(H(a)){const t=Object.keys(a)[0],e=a[t];g=p(this.chart.scales[t].getPixelForValue(e))}v=g-f,_=v-c,w=t.left,C=t.right}const S=Y(i.ticks.maxTicksLimit,l),M=Math.max(1,Math.ceil(l/S));for(m=0;m<l;m+=M){const t=r.setContext(this.getContext(m)),e=t.lineWidth,i=t.color,a=r.borderDash||[],l=t.borderDashOffset,c=t.tickWidth,h=t.tickColor,d=t.tickBorderDash||[],f=t.tickBorderDashOffset;b=pr(this,m,o),void 0!==b&&(y=ke(n,b,e),s?v=_=w=C=y:x=A=k=E=y,u.push({tx1:v,ty1:x,tx2:_,ty2:A,x1:w,y1:k,x2:C,y2:E,width:e,color:i,borderDash:a,borderDashOffset:l,tickWidth:c,tickColor:h,tickBorderDash:d,tickBorderDashOffset:f}))}return this._ticksLength=l,this._borderValue=g,u}_computeLabelItems(t){const e=this.axis,n=this.options,{position:i,ticks:r}=n,a=this.isHorizontal(),o=this.ticks,{align:s,crossAlign:l,padding:c,mirror:u}=r,h=gr(n.grid),d=h+c,f=u?-c:d,p=-wt(this.labelRotation),g=[];let m,b,y,v,x,_,A,w,k,C,E,S,M="middle";if("top"===i)_=this.bottom-f,A=this._getXAxisLabelAlignment();else if("bottom"===i)_=this.top+f,A=this._getXAxisLabelAlignment();else if("left"===i){const t=this._getYAxisLabelAlignment(h);A=t.textAlign,x=t.x}else if("right"===i){const t=this._getYAxisLabelAlignment(h);A=t.textAlign,x=t.x}else if("x"===e){if("center"===i)_=(t.top+t.bottom)/2+d;else if(H(i)){const t=Object.keys(i)[0],e=i[t];_=this.chart.scales[t].getPixelForValue(e)+d}A=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===i)x=(t.left+t.right)/2-d;else if(H(i)){const t=Object.keys(i)[0],e=i[t];x=this.chart.scales[t].getPixelForValue(e)}A=this._getYAxisLabelAlignment(h).textAlign}"y"===e&&("start"===s?M="top":"end"===s&&(M="bottom"));const P=this._getLabelSizes();for(m=0,b=o.length;m<b;++m){y=o[m],v=y.label;const t=r.setContext(this.getContext(m));w=this.getPixelForTick(m)+r.labelOffset,k=this._resolveTickFontOptions(m),C=k.lineHeight,E=V(v)?v.length:1;const e=E/2,n=t.color,s=t.textStrokeColor,c=t.textStrokeWidth;let h,d=A;if(a?(x=w,"inner"===A&&(d=m===b-1?this.options.reverse?"left":"right":0===m?this.options.reverse?"right":"left":"center"),S="top"===i?"near"===l||0!==p?-E*C+C/2:"center"===l?-P.highest.height/2-e*C+C:-P.highest.height+C/2:"near"===l||0!==p?C/2:"center"===l?P.highest.height/2-e*C:P.highest.height-E*C,u&&(S*=-1)):(_=w,S=(1-E)*C/2),t.showLabelBackdrop){const e=Ve(t.backdropPadding),n=P.heights[m],i=P.widths[m];let r=_+S-e.top,a=x-e.left;switch(M){case"middle":r-=n/2;break;case"bottom":r-=n}switch(A){case"center":a-=i/2;break;case"right":a-=i}h={left:a,top:r,width:i+e.width,height:n+e.height,color:t.backdropColor}}g.push({rotation:p,label:v,font:k,color:n,strokeColor:s,strokeWidth:c,textOffset:S,textAlign:d,textBaseline:M,translation:[x,_],backdrop:h})}return g}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-wt(this.labelRotation))return"top"===t?"left":"right";let n="center";return"start"===e.align?n="left":"end"===e.align?n="right":"inner"===e.align&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:n,mirror:i,padding:r}}=this.options,a=t+r,o=this._getLabelSizes().widest.width;let s,l;return"left"===e?i?(l=this.right+r,"near"===n?s="left":"center"===n?(s="center",l+=o/2):(s="right",l+=o)):(l=this.right-a,"near"===n?s="right":"center"===n?(s="center",l-=o/2):(s="left",l=this.left)):"right"===e?i?(l=this.left+r,"near"===n?s="right":"center"===n?(s="center",l-=o/2):(s="left",l-=o)):(l=this.left+a,"near"===n?s="left":"center"===n?(s="center",l+=o/2):(s="right",l=this.right)):s="right",{textAlign:s,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:n,top:i,width:r,height:a}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,i,r,a),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex((e=>e.value===t));return n>=0?e.setContext(this.getContext(n)).lineWidth:0}drawGrid(t){const e=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let r,a;const o=(t,e,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(r=0,a=i.length;r<a;++r){const t=i[r];e.drawOnChartArea&&o({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&o({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{grid:n}}=this,i=n.setContext(this.getContext()),r=n.drawBorder?i.borderWidth:0;if(!r)return;const a=n.setContext(this.getContext(0)).lineWidth,o=this._borderValue;let s,l,c,u;this.isHorizontal()?(s=ke(t,this.left,r)-r/2,l=ke(t,this.right,a)+a/2,c=u=o):(c=ke(t,this.top,r)-r/2,u=ke(t,this.bottom,a)+a/2,s=l=o),e.save(),e.lineWidth=i.borderWidth,e.strokeStyle=i.borderColor,e.beginPath(),e.moveTo(s,c),e.lineTo(l,u),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,n=this._computeLabelArea();n&&Pe(e,n);const i=this._labelItems||(this._labelItems=this._computeLabelItems(t));let r,a;for(r=0,a=i.length;r<a;++r){const t=i[r],n=t.font,a=t.label;t.backdrop&&(e.fillStyle=t.backdrop.color,e.fillRect(t.backdrop.left,t.backdrop.top,t.backdrop.width,t.backdrop.height)),Oe(e,a,0,t.textOffset,n,t)}n&&Be(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:i}}=this;if(!n.display)return;const r=He(n.font),a=Ve(n.padding),o=n.align;let s=r.lineHeight/2;"bottom"===e||"center"===e||H(e)?(s+=a.bottom,V(n.text)&&(s+=r.lineHeight*(n.text.length-1))):s+=a.top;const{titleX:l,titleY:c,maxWidth:u,rotation:h}=function(t,e,n,i){const{top:r,left:a,bottom:o,right:s,chart:l}=t,{chartArea:c,scales:u}=l;let h,d,f,p=0;const g=o-r,m=s-a;if(t.isHorizontal()){if(d=I(i,a,s),H(n)){const t=Object.keys(n)[0],i=n[t];f=u[t].getPixelForValue(i)+g-e}else f="center"===n?(c.bottom+c.top)/2+g-e:dr(t,n,e);h=s-a}else{if(H(n)){const t=Object.keys(n)[0],i=n[t];d=u[t].getPixelForValue(i)-m+e}else d="center"===n?(c.left+c.right)/2-m+e:dr(t,n,e);f=I(i,o,r),p="left"===n?-pt:pt}return{titleX:d,titleY:f,maxWidth:h,rotation:p}}(this,s,e,o);Oe(t,n.text,0,0,r,{color:n.color,maxWidth:u,rotation:h,textAlign:br(o,e,i),textBaseline:"middle",translation:[l,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,n=Y(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===yr.prototype.draw?[{z:n,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:n+1,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let r,a;for(r=0,a=e.length;r<a;++r){const a=e[r];a[n]!==this.id||t&&a.type!==t||i.push(a)}return i}_resolveTickFontOptions(t){return He(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class vr{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let n;(function(t){return"id"in t&&"defaults"in t})(e)&&(n=this.register(e));const i=this.items,r=t.id,a=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+t);return r in i||(i[r]=t,function(t,e,n){const i=tt(Object.create(null),[n?_e.get(n):{},_e.get(e),t.defaults]);_e.set(e,i),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((n=>{const i=n.split("."),r=i.pop(),a=[t].concat(i).join("."),o=e[n].split("."),s=o.pop(),l=o.join(".");_e.route(a,r,l,s)}))}(e,t.defaultRoutes),t.descriptors&&_e.describe(e,t.descriptors)}(t,a,n),this.override&&_e.override(t.id,t.overrides)),a}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,i=this.scope;n in e&&delete e[n],i&&n in _e[i]&&(delete _e[i][n],this.override&&delete be[n])}}var xr=new class{constructor(){this.controllers=new vr(si,"datasets",!0),this.elements=new vr(lr,"elements"),this.plugins=new vr(Object,"plugins"),this.scales=new vr(yr,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,n){[...e].forEach((e=>{const i=n||this._getRegistryForType(e);n||i.isForType(e)||i===this.plugins&&e.id?this._exec(t,i,e):X(e,(e=>{const i=n||this._getRegistryForType(e);this._exec(t,i,e)}))}))}_exec(t,e,n){const i=at(t);Q(n["before"+i],[],n),e[t](n),Q(n["after"+i],[],n)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}_get(t,e,n){const i=e.get(t);if(void 0===i)throw new Error('"'+t+'" is not a registered '+n+".");return i}};class _r{constructor(){this._init=[]}notify(t,e,n,i){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const r=i?this._descriptors(t).filter(i):this._descriptors(t),a=this._notify(r,t,e,n);return"afterDestroy"===e&&(this._notify(r,t,"stop"),this._notify(this._init,t,"uninstall")),a}_notify(t,e,n,i){i=i||{};for(const r of t){const t=r.plugin;if(!1===Q(t[n],[e,i,r.options],t)&&i.cancelable)return!1}return!0}invalidate(){W(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const n=t&&t.config,i=Y(n.options&&n.options.plugins,{}),r=function(t){const e={},n=[],i=Object.keys(xr.plugins.items);for(let t=0;t<i.length;t++)n.push(xr.getPlugin(i[t]));const r=t.plugins||[];for(let t=0;t<r.length;t++){const i=r[t];-1===n.indexOf(i)&&(n.push(i),e[i.id]=!0)}return{plugins:n,localIds:e}}(n);return!1!==i||e?function(t,{plugins:e,localIds:n},i,r){const a=[],o=t.getContext();for(const s of e){const e=s.id,l=Ar(i[e],r);null!==l&&a.push({plugin:s,options:wr(t.config,{plugin:s,local:n[e]},l,o)})}return a}(t,r,i,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,i=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(i(e,n),t,"stop"),this._notify(i(n,e),t,"start")}}function Ar(t,e){return e||!1!==t?!0===t?{}:t:null}function wr(t,{plugin:e,local:n},i,r){const a=t.pluginScopeKeys(e),o=t.getOptionScopes(i,a);return n&&e.defaults&&o.push(e.defaults),t.createResolver(o,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function kr(t,e){const n=_e.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function Cr(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(n=e.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||t.charAt(0).toLowerCase();var n}function Er(t){const e=t.options||(t.options={});e.plugins=Y(e.plugins,{}),e.scales=function(t,e){const n=be[t.type]||{scales:{}},i=e.scales||{},r=kr(t.type,e),a=Object.create(null),o=Object.create(null);return Object.keys(i).forEach((t=>{const e=i[t];if(!H(e))return console.error(`Invalid scale configuration for scale: ${t}`);if(e._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const s=Cr(t,e),l=function(t,e){return t===e?"_index_":"_value_"}(s,r),c=n.scales||{};a[s]=a[s]||t,o[t]=et(Object.create(null),[{axis:s},e,c[s],c[l]])})),t.data.datasets.forEach((n=>{const r=n.type||t.type,s=n.indexAxis||kr(r,e),l=(be[r]||{}).scales||{};Object.keys(l).forEach((t=>{const e=function(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}(t,s),r=n[e+"AxisID"]||a[e]||e;o[r]=o[r]||Object.create(null),et(o[r],[{axis:e},i[r],l[t]])}))})),Object.keys(o).forEach((t=>{const e=o[t];et(e,[_e.scales[e.type],_e.scale])})),o}(t,e)}function Sr(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const Mr=new Map,Pr=new Set;function Br(t,e){let n=Mr.get(t);return n||(n=e(),Mr.set(t,n),Pr.add(n)),n}const Tr=(t,e,n)=>{const i=rt(e,n);void 0!==i&&t.add(i)};class Dr{constructor(t){this._config=function(t){return(t=t||{}).data=Sr(t.data),Er(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Sr(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(),Er(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Br(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return Br(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return Br(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return Br(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const n=this._scopeCache;let i=n.get(t);return i&&!e||(i=new Map,n.set(t,i)),i}getOptionScopes(t,e,n){const{options:i,type:r}=this,a=this._cachedScopes(t,n),o=a.get(e);if(o)return o;const s=new Set;e.forEach((e=>{t&&(s.add(t),e.forEach((e=>Tr(s,t,e)))),e.forEach((t=>Tr(s,i,t))),e.forEach((t=>Tr(s,be[r]||{},t))),e.forEach((t=>Tr(s,_e,t))),e.forEach((t=>Tr(s,ye,t)))}));const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),Pr.has(e)&&a.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,be[e]||{},_e.datasets[e]||{},{type:e},_e,ye]}resolveNamedOptions(t,e,n,i=[""]){const r={$shared:!0},{resolver:a,subPrefixes:o}=Or(this._resolverCache,t,i);let s=a;(function(t,e){const{isScriptable:n,isIndexable:i}=tn(t);for(const r of e){const e=n(r),a=i(r),o=(a||e)&&t[r];if(e&&(st(o)||Lr(o))||a&&V(o))return!0}return!1})(a,e)&&(r.$shared=!1,s=Je(a,n=st(n)?n():n,this.createResolver(t,n,o)));for(const t of e)r[t]=s[t];return r}createResolver(t,e,n=[""],i){const{resolver:r}=Or(this._resolverCache,t,n);return H(e)?Je(r,e,void 0,i):r}}function Or(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const r=n.join();let a=i.get(r);return a||(a={resolver:Ge(e,n),subPrefixes:n.filter((t=>!t.toLowerCase().includes("hover")))},i.set(r,a)),a}const Lr=t=>H(t)&&Object.getOwnPropertyNames(t).reduce(((e,n)=>e||st(t[n])),!1),zr=["top","bottom","left","right","chartArea"];function Rr(t,e){return"top"===t||"bottom"===t||-1===zr.indexOf(t)&&"x"===e}function Nr(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function Ir(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),Q(n&&n.onComplete,[t],e)}function Fr(t){const e=t.chart,n=e.options.animation;Q(n&&n.onProgress,[t],e)}function jr(t){return vn()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Wr={},Vr=t=>{const e=jr(t);return Object.values(Wr).filter((t=>t.canvas===e)).pop()};function Hr(t,e,n){const i=Object.keys(t);for(const r of i){const i=+r;if(i>=e){const a=t[r];delete t[r],(n>0||i>e)&&(t[i+n]=a)}}}class Ur{constructor(t,e){const n=this.config=new Dr(e),i=jr(t),r=Vr(i);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const a=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(t){return!vn()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?qi:sr}(i)),this.platform.updateConfig(n);const o=this.platform.acquireContext(i,a.aspectRatio),s=o&&o.canvas,l=s&&s.height,c=s&&s.width;this.id=j(),this.ctx=o,this.canvas=s,this.width=c,this.height=l,this._options=a,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 _r,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}((t=>this.update(t)),a.resizeDelay||0),this._dataChanges=[],Wr[this.id]=this,o&&s?(Un.listen(this,"complete",Ir),Un.listen(this,"progress",Fr),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:n,height:i,_aspectRatio:r}=this;return W(t)?e&&r?r:i?n/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Sn(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Ce(this.canvas,this.ctx),this}stop(){return Un.stop(this),this}resize(t,e){Un.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,i=this.canvas,r=n.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(i,t,e,r),o=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Sn(this,o,!0)&&(this.notifyPlugins("resize",{size:a}),Q(n.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){X(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,i=Object.keys(n).reduce(((t,e)=>(t[e]=!1,t)),{});let r=[];e&&(r=r.concat(Object.keys(e).map((t=>{const n=e[t],i=Cr(t,n),r="r"===i,a="x"===i;return{options:n,dposition:r?"chartArea":a?"bottom":"left",dtype:r?"radialLinear":a?"category":"linear"}})))),X(r,(e=>{const r=e.options,a=r.id,o=Cr(a,r),s=Y(r.type,e.dtype);void 0!==r.position&&Rr(r.position,o)===Rr(e.dposition)||(r.position=e.dposition),i[a]=!0;let l=null;a in n&&n[a].type===s?l=n[a]:(l=new(xr.getScale(s))({id:a,type:s,ctx:this.ctx,chart:this}),n[l.id]=l),l.init(r,t)})),X(i,((t,e)=>{t||delete n[e]})),X(n,(t=>{$i.configure(this,t,t.options),$i.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort(((t,e)=>t.index-e.index)),n>e){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(Nr("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,n)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=e.length;n<i;n++){const i=e[n];let r=this.getDatasetMeta(n);const a=i.type||this.config.type;if(r.type&&r.type!==a&&(this._destroyDatasetMeta(n),r=this.getDatasetMeta(n)),r.type=a,r.indexAxis=i.indexAxis||kr(a,this.options),r.order=i.order||0,r.index=n,r.label=""+i.label,r.visible=this.isDatasetVisible(n),r.controller)r.controller.updateIndex(n),r.controller.linkScales();else{const e=xr.getController(a),{datasetElementType:i,dataElementType:o}=_e.datasets[a];Object.assign(e.prototype,{dataElementType:xr.getElement(o),datasetElementType:i&&xr.getElement(i)}),r.controller=new e(this,n),t.push(r.controller)}}return this._updateMetasets(),t}_resetElements(){X(this.data.datasets,((t,e)=>{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),n=!i&&-1===r.indexOf(e);e.buildOrUpdateElements(n),a=Math.max(+e.getMaxOverflow(),a)}a=this._minPadding=n.layout.autoPadding?a:0,this._updateLayout(a),i||X(r,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Nr("z","_idx"));const{_active:o,_lastEvent:s}=this;s?this._eventHandler(s,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){X(this.scales,(t=>{$i.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);lt(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:r}of e)Hr(t,i,"_removeElements"===n?-r:r)}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),i=n(0);for(let t=1;t<e;t++)if(!lt(i,n(t)))return;return Array.from(i).map((t=>t.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;$i.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],X(this.boxes,(t=>{n&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,n=this.data.datasets.length;e<n;++e)this._updateDataset(e,st(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),i={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",i)&&(n.controller._update(e),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(Un.has(this)?this.attached&&!Un.running(this)&&Un.start(this):(this.draw(),Ir({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resize(t,e),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,n=[];let i,r;for(i=0,r=e.length;i<r;++i){const r=e[i];t&&!r.visible||n.push(r)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,n=t._clip,i=!n.disabled,r=this.chartArea,a={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",a)&&(i&&Pe(e,{left:!1===n.left?0:r.left-n.left,right:!1===n.right?this.width:r.right+n.right,top:!1===n.top?0:r.top-n.top,bottom:!1===n.bottom?this.height:r.bottom+n.bottom}),t.controller.draw(),i&&Be(e),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return Me(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,i){const r=Oi.modes[e];return"function"==typeof r?r(this,t,n,i):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let i=n.filter((t=>t&&t._dataset===e)).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},n.push(i)),i}getContext(){return this.$context||(this.$context=$e(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,n){const i=n?"show":"hide",r=this.getDatasetMeta(t),a=r.controller._resolveAnimations(void 0,i);ot(e)?(r.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),a.update(r,{visible:n}),this.update((e=>e.datasetIndex===t?i:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),Un.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Ce(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete Wr[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};X(this.options.events,(t=>n(t,i)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(n,i)=>{t[n]&&(e.removeEventListener(this,n,i),delete t[n])},r=(t,e)=>{this.canvas&&this.resize(t,e)};let a;const o=()=>{i("attach",o),this.attached=!0,this.resize(),n("resize",r),n("detach",a)};a=()=>{this.attached=!1,i("resize",r),this._stop(),this._resize(0,0),n("attach",o)},e.isAttached(this.canvas)?o():a()}unbindEvents(){X(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},X(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const i=n?"set":"remove";let r,a,o,s;for("dataset"===e&&(r=this.getDatasetMeta(t[0].datasetIndex),r.controller["_"+i+"DatasetHoverStyle"]()),o=0,s=t.length;o<s;++o){a=t[o];const e=a&&this.getDatasetMeta(a.datasetIndex).controller;e&&e[i+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],n=t.map((({datasetIndex:t,index:e})=>{const n=this.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[e],index:e}}));!K(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}_updateHoverStyles(t,e,n){const i=this.options.hover,r=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),a=r(e,t),o=n?t:r(t,e);a.length&&this.updateHoverStyle(a,i.mode,!1),o.length&&i.mode&&this.updateHoverStyle(o,i.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},i=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,i))return;const r=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(r||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:i=[],options:r}=this,a=e,o=this._getActiveElements(t,i,n,a),s=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,n,i){return n&&"mouseout"!==t.type?i?e:t:null}(t,this._lastEvent,n,s);n&&(this._lastEvent=null,Q(r.onHover,[t,o,this],this),s&&Q(r.onClick,[t,o,this],this));const c=!K(o,i);return(c||e)&&(this._active=o,this._updateHoverStyles(o,i,e)),this._lastEvent=l,c}_getActiveElements(t,e,n,i){if("mouseout"===t.type)return[];if(!n)return e;const r=this.options.hover;return this.getElementsAtEventForMode(t,r.mode,r,i)}}const $r=()=>X(Ur.instances,(t=>t._plugins.invalidate())),Yr=!0;function qr(t,e,n){const{startAngle:i,pixelMargin:r,x:a,y:o,outerRadius:s,innerRadius:l}=e;let c=r/s;t.beginPath(),t.arc(a,o,s,i-c,n+c),l>r?(c=r/l,t.arc(a,o,l,n+c,i-c,!0)):t.arc(a,o,r,n+pt,i-pt),t.closePath(),t.clip()}function Qr(t,e,n,i){return{x:n+t*Math.cos(e),y:i+t*Math.sin(e)}}function Xr(t,e,n,i,r){const{x:a,y:o,startAngle:s,pixelMargin:l,innerRadius:c}=e,u=Math.max(e.outerRadius+i+n-l,0),h=c>0?c+i+n+l:0;let d=0;const f=r-s;if(i){const t=((c>0?c-i:0)+(u>0?u-i:0))/2;d=(f-(0!==t?f*t/(t+i):f))/2}const p=(f-Math.max(.001,f*u-n/ct)/u)/2,g=s+p+d,m=r-p-d,{outerStart:b,outerEnd:y,innerStart:v,innerEnd:x}=function(t,e,n,i){const r=Fe(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]),a=(n-e)/2,o=Math.min(a,i*e/2),s=t=>{const e=(n-Math.min(a,t))*i/2;return Tt(t,0,Math.min(a,e))};return{outerStart:s(r.outerStart),outerEnd:s(r.outerEnd),innerStart:Tt(r.innerStart,0,o),innerEnd:Tt(r.innerEnd,0,o)}}(e,h,u,m-g),_=u-b,A=u-y,w=g+b/_,k=m-y/A,C=h+v,E=h+x,S=g+v/C,M=m-x/E;if(t.beginPath(),t.arc(a,o,u,w,k),y>0){const e=Qr(A,k,a,o);t.arc(e.x,e.y,y,k,m+pt)}const P=Qr(E,m,a,o);if(t.lineTo(P.x,P.y),x>0){const e=Qr(E,M,a,o);t.arc(e.x,e.y,x,m+pt,M+Math.PI)}if(t.arc(a,o,h,m-x/h,g+v/h,!0),v>0){const e=Qr(C,S,a,o);t.arc(e.x,e.y,v,S+Math.PI,g-pt)}const B=Qr(_,g,a,o);if(t.lineTo(B.x,B.y),b>0){const e=Qr(_,w,a,o);t.arc(e.x,e.y,b,g-pt,w)}t.closePath()}Object.defineProperties(Ur,{defaults:{enumerable:Yr,value:_e},instances:{enumerable:Yr,value:Wr},overrides:{enumerable:Yr,value:be},registry:{enumerable:Yr,value:xr},version:{enumerable:Yr,value:"3.8.2"},getChart:{enumerable:Yr,value:Vr},register:{enumerable:Yr,value:(...t)=>{xr.add(...t),$r()}},unregister:{enumerable:Yr,value:(...t)=>{xr.remove(...t),$r()}}});class Kr extends lr{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,n){const i=this.getProps(["x","y"],n),{angle:r,distance:a}=Et(i,{x:t,y:e}),{startAngle:o,endAngle:s,innerRadius:l,outerRadius:c,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),h=this.options.spacing/2,d=Y(u,s-o)>=ut||Bt(r,o,s),f=Dt(a,l+h,c+h);return d&&f}getCenterPoint(t){const{x:e,y:n,startAngle:i,endAngle:r,innerRadius:a,outerRadius:o}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:s,spacing:l}=this.options,c=(i+r)/2,u=(a+o+l+s)/2;return{x:e+Math.cos(c)*u,y:n+Math.sin(c)*u}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:n}=this,i=(e.offset||0)/2,r=(e.spacing||0)/2;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>ut?Math.floor(n/ut):0,0===n||this.innerRadius<0||this.outerRadius<0)return;t.save();let a=0;if(i){a=i/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*a,Math.sin(e)*a),this.circumference>=ct&&(a=i)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const o=function(t,e,n,i){const{fullCircles:r,startAngle:a,circumference:o}=e;let s=e.endAngle;if(r){Xr(t,e,n,i,a+ut);for(let e=0;e<r;++e)t.fill();isNaN(o)||(s=a+o%ut,o%ut==0&&(s+=ut))}return Xr(t,e,n,i,s),t.fill(),s}(t,this,a,r);(function(t,e,n,i,r){const{options:a}=e,{borderWidth:o,borderJoinStyle:s}=a,l="inner"===a.borderAlign;o&&(l?(t.lineWidth=2*o,t.lineJoin=s||"round"):(t.lineWidth=o,t.lineJoin=s||"bevel"),e.fullCircles&&function(t,e,n){const{x:i,y:r,startAngle:a,pixelMargin:o,fullCircles:s}=e,l=Math.max(e.outerRadius-o,0),c=e.innerRadius+o;let u;for(n&&qr(t,e,a+ut),t.beginPath(),t.arc(i,r,c,a+ut,a,!0),u=0;u<s;++u)t.stroke();for(t.beginPath(),t.arc(i,r,l,a,a+ut),u=0;u<s;++u)t.stroke()}(t,e,l),l&&qr(t,e,r),Xr(t,e,n,i,r),t.stroke())})(t,this,a,r,o),t.restore()}}function Zr(t,e,n=e){t.lineCap=Y(n.borderCapStyle,e.borderCapStyle),t.setLineDash(Y(n.borderDash,e.borderDash)),t.lineDashOffset=Y(n.borderDashOffset,e.borderDashOffset),t.lineJoin=Y(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=Y(n.borderWidth,e.borderWidth),t.strokeStyle=Y(n.borderColor,e.borderColor)}function Gr(t,e,n){t.lineTo(n.x,n.y)}function Jr(t,e,n={}){const i=t.length,{start:r=0,end:a=i-1}=n,{start:o,end:s}=e,l=Math.max(r,o),c=Math.min(a,s),u=r<o&&a<o||r>s&&a>s;return{count:i,start:l,loop:e.loop,ilen:c<l&&!u?i+c-l:c-l}}function ta(t,e,n,i){const{points:r,options:a}=e,{count:o,start:s,loop:l,ilen:c}=Jr(r,n,i),u=function(t){return t.stepped?Te:t.tension||"monotone"===t.cubicInterpolationMode?De:Gr}(a);let h,d,f,{move:p=!0,reverse:g}=i||{};for(h=0;h<=c;++h)d=r[(s+(g?c-h:h))%o],d.skip||(p?(t.moveTo(d.x,d.y),p=!1):u(t,f,d,g,a.stepped),f=d);return l&&(d=r[(s+(g?c:0))%o],u(t,f,d,g,a.stepped)),!!l}function ea(t,e,n,i){const r=e.points,{count:a,start:o,ilen:s}=Jr(r,n,i),{move:l=!0,reverse:c}=i||{};let u,h,d,f,p,g,m=0,b=0;const y=t=>(o+(c?s-t:t))%a,v=()=>{f!==p&&(t.lineTo(m,p),t.lineTo(m,f),t.lineTo(m,g))};for(l&&(h=r[y(0)],t.moveTo(h.x,h.y)),u=0;u<=s;++u){if(h=r[y(u)],h.skip)continue;const e=h.x,n=h.y,i=0|e;i===d?(n<f?f=n:n>p&&(p=n),m=(b*m+e)/++b):(v(),t.lineTo(e,n),d=i,b=0,f=p=n),g=n}v()}function na(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||n?ta:ea}Kr.id="arc",Kr.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0},Kr.defaultRoutes={backgroundColor:"backgroundColor"};const ia="function"==typeof Path2D;class ra extends lr{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const i=n.spanGaps?this._loop:this._fullLoop;yn(this._points,n,t,i,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(t,e){const n=t.points,i=t.options.spanGaps,r=n.length;if(!r)return[];const a=!!t._loop,{start:o,end:s}=function(t,e,n,i){let r=0,a=e-1;if(n&&!i)for(;r<e&&!t[r].skip;)r++;for(;r<e&&t[r].skip;)r++;for(r%=e,n&&(a+=r);a>r&&t[a%e].skip;)a--;return a%=e,{start:r,end:a}}(n,r,a,i);return function(t,e,n,i){return i&&i.setContext&&n?function(t,e,n,i){const r=t._chart.getContext(),a=Vn(t.options),{_datasetIndex:o,options:{spanGaps:s}}=t,l=n.length,c=[];let u=a,h=e[0].start,d=h;function f(t,e,i,r){const a=s?-1:1;if(t!==e){for(t+=l;n[t%l].skip;)t-=a;for(;n[e%l].skip;)e+=a;t%l!=e%l&&(c.push({start:t%l,end:e%l,loop:i,style:r}),u=r,h=e%l)}}for(const t of e){h=s?h:t.start;let e,a=n[h%l];for(d=h+1;d<=t.end;d++){const s=n[d%l];e=Vn(i.setContext($e(r,{type:"segment",p0:a,p1:s,p0DataIndex:(d-1)%l,p1DataIndex:d%l,datasetIndex:o}))),Hn(e,u)&&f(h,d-1,t.loop,u),a=s,u=e}h<d-1&&f(h,d-1,t.loop,u)}return c}(t,e,n,i):e}(t,!0===i?[{start:o,end:s,loop:a}]:function(t,e,n,i){const r=t.length,a=[];let o,s=e,l=t[e];for(o=e+1;o<=n;++o){const n=t[o%r];n.skip||n.stop?l.skip||(i=!1,a.push({start:e%r,end:(o-1)%r,loop:i}),e=s=n.stop?o:null):(s=o,l.skip&&(e=o)),l=n}return null!==s&&a.push({start:e%r,end:s%r,loop:i}),a}(n,o,s<o?s+r:s,!!t._fullLoop&&0===o&&s===r-1),n,e)}(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,n=t.length;return n&&e[t[n-1].end]}interpolate(t,e){const n=this.options,i=t[e],r=this.points,a=Wn(this,{property:e,start:i,end:i});if(!a.length)return;const o=[],s=function(t){return t.stepped?Tn:t.tension||"monotone"===t.cubicInterpolationMode?Dn:Bn}(n);let l,c;for(l=0,c=a.length;l<c;++l){const{start:c,end:u}=a[l],h=r[c],d=r[u];if(h===d){o.push(h);continue}const f=s(h,d,Math.abs((i-h[e])/(d[e]-h[e])),n.stepped);f[e]=t[e],o.push(f)}return 1===o.length?o[0]:o}pathSegment(t,e,n){return na(this)(t,this,e,n)}path(t,e,n){const i=this.segments,r=na(this);let a=this._loop;e=e||0,n=n||this.points.length-e;for(const o of i)a&=r(t,this,o,{start:e,end:e+n-1});return!!a}draw(t,e,n,i){const r=this.options||{};(this.points||[]).length&&r.borderWidth&&(t.save(),function(t,e,n,i){ia&&!e.options.segment?function(t,e,n,i){let r=e._path;r||(r=e._path=new Path2D,e.path(r,n,i)&&r.closePath()),Zr(t,e.options),t.stroke(r)}(t,e,n,i):function(t,e,n,i){const{segments:r,options:a}=e,o=na(e);for(const s of r)Zr(t,a,s.style),t.beginPath(),o(t,e,s,{start:n,end:n+i-1})&&t.closePath(),t.stroke()}(t,e,n,i)}(t,this,n,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function aa(t,e,n,i){const r=t.options,{[n]:a}=t.getProps([n],i);return Math.abs(e-a)<r.radius+r.hitRadius}ra.id="line",ra.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},ra.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},ra.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};class oa extends lr{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,n){const i=this.options,{x:r,y:a}=this.getProps(["x","y"],n);return Math.pow(t-r,2)+Math.pow(e-a,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,e){return aa(this,t,"x",e)}inYRange(t,e){return aa(this,t,"y",e)}getCenterPoint(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}size(t){let e=(t=t||this.options||{}).radius||0;return e=Math.max(e,e&&t.hoverRadius||0),2*(e+(e&&t.borderWidth||0))}draw(t,e){const n=this.options;this.skip||n.radius<.1||!Me(this,e,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,Ee(t,n,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function sa(t,e){const{x:n,y:i,base:r,width:a,height:o}=t.getProps(["x","y","base","width","height"],e);let s,l,c,u,h;return t.horizontal?(h=o/2,s=Math.min(n,r),l=Math.max(n,r),c=i-h,u=i+h):(h=a/2,s=n-h,l=n+h,c=Math.min(i,r),u=Math.max(i,r)),{left:s,top:c,right:l,bottom:u}}function la(t,e,n,i){return t?0:Tt(e,n,i)}function ca(t,e,n,i){const r=null===e,a=null===n,o=t&&!(r&&a)&&sa(t,i);return o&&(r||Dt(e,o.left,o.right))&&(a||Dt(n,o.top,o.bottom))}function ua(t,e){t.rect(e.x,e.y,e.w,e.h)}function ha(t,e,n={}){const i=t.x!==n.x?-e:0,r=t.y!==n.y?-e:0,a=(t.x+t.w!==n.x+n.w?e:0)-i,o=(t.y+t.h!==n.y+n.h?e:0)-r;return{x:t.x+i,y:t.y+r,w:t.w+a,h:t.h+o,radius:t.radius}}oa.id="point",oa.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},oa.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class da extends lr{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:n,backgroundColor:i}}=this,{inner:r,outer:a}=function(t){const e=sa(t),n=e.right-e.left,i=e.bottom-e.top,r=function(t,e,n){const i=t.options.borderWidth,r=t.borderSkipped,a=je(i);return{t:la(r.top,a.top,0,n),r:la(r.right,a.right,0,e),b:la(r.bottom,a.bottom,0,n),l:la(r.left,a.left,0,e)}}(t,n/2,i/2),a=function(t,e,n){const{enableBorderRadius:i}=t.getProps(["enableBorderRadius"]),r=t.options.borderRadius,a=We(r),o=Math.min(e,n),s=t.borderSkipped,l=i||H(r);return{topLeft:la(!l||s.top||s.left,a.topLeft,0,o),topRight:la(!l||s.top||s.right,a.topRight,0,o),bottomLeft:la(!l||s.bottom||s.left,a.bottomLeft,0,o),bottomRight:la(!l||s.bottom||s.right,a.bottomRight,0,o)}}(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i,radius:a},inner:{x:e.left+r.l,y:e.top+r.t,w:n-r.l-r.r,h:i-r.t-r.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,a.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(r.b,r.r))}}}}(this),o=(s=a.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?ze:ua;var s;t.save(),a.w===r.w&&a.h===r.h||(t.beginPath(),o(t,ha(a,e,r)),t.clip(),o(t,ha(r,-e,a)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),o(t,ha(r,e)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,e,n){return ca(this,t,e,n)}inXRange(t,e){return ca(this,t,null,e)}inYRange(t,e){return ca(this,null,t,e)}getCenterPoint(t){const{x:e,y:n,base:i,horizontal:r}=this.getProps(["x","y","base","horizontal"],t);return{x:r?(e+i)/2:e,y:r?n:(n+i)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}da.id="bar",da.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},da.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var fa=Object.freeze({__proto__:null,ArcElement:Kr,LineElement:ra,PointElement:oa,BarElement:da});function pa(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{value:e})}}function ga(t){t.data.datasets.forEach((t=>{pa(t)}))}var ma={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,n)=>{if(!n.enabled)return void ga(t);const i=t.width;t.data.datasets.forEach(((e,r)=>{const{_data:a,indexAxis:o}=e,s=t.getDatasetMeta(r),l=a||e.data;if("y"===Ue([o,t.options.indexAxis]))return;if(!s.controller.supportsDecimation)return;const c=t.scales[s.xAxisID];if("linear"!==c.type&&"time"!==c.type)return;if(t.options.parsing)return;let u,{start:h,count:d}=function(t,e){const n=e.length;let i,r=0;const{iScale:a}=t,{min:o,max:s,minDefined:l,maxDefined:c}=a.getUserBounds();return l&&(r=Tt(qe(e,a.axis,o).lo,0,n-1)),i=c?Tt(qe(e,a.axis,s).hi+1,r,n)-r:n-r,{start:r,count:i}}(s,l);if(d<=(n.threshold||4*i))pa(e);else{switch(W(a)&&(e._data=l,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),n.algorithm){case"lttb":u=function(t,e,n,i,r){const a=r.samples||i;if(a>=n)return t.slice(e,e+n);const o=[],s=(n-2)/(a-2);let l=0;const c=e+n-1;let u,h,d,f,p,g=e;for(o[l++]=t[g],u=0;u<a-2;u++){let i,r=0,a=0;const c=Math.floor((u+1)*s)+1+e,m=Math.min(Math.floor((u+2)*s)+1,n)+e,b=m-c;for(i=c;i<m;i++)r+=t[i].x,a+=t[i].y;r/=b,a/=b;const y=Math.floor(u*s)+1+e,v=Math.min(Math.floor((u+1)*s)+1,n)+e,{x,y:_}=t[g];for(d=f=-1,i=y;i<v;i++)f=.5*Math.abs((x-r)*(t[i].y-_)-(x-t[i].x)*(a-_)),f>d&&(d=f,h=t[i],p=i);o[l++]=h,g=p}return o[l++]=t[c],o}(l,h,d,i,n);break;case"min-max":u=function(t,e,n,i){let r,a,o,s,l,c,u,h,d,f,p=0,g=0;const m=[],b=e+n-1,y=t[e].x,v=t[b].x-y;for(r=e;r<e+n;++r){a=t[r],o=(a.x-y)/v*i,s=a.y;const e=0|o;if(e===l)s<d?(d=s,c=r):s>f&&(f=s,u=r),p=(g*p+a.x)/++g;else{const n=r-1;if(!W(c)&&!W(u)){const e=Math.min(c,u),i=Math.max(c,u);e!==h&&e!==n&&m.push({...t[e],x:p}),i!==h&&i!==n&&m.push({...t[i],x:p})}r>0&&n!==h&&m.push(t[n]),m.push(a),l=e,g=0,d=f=s,c=u=h=r}}return m}(l,h,d,i);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}e._decimated=u}}))},destroy(t){ga(t)}};function ba(t,e,n,i){if(i)return;let r=e[t],a=n[t];return"angle"===t&&(r=Pt(r),a=Pt(a)),{property:t,start:r,end:a}}function ya(t,e,n){for(;e>t;e--){const t=n[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function va(t,e,n,i){return t&&e?i(t[n],e[n]):t?t[n]:e?e[n]:0}function xa(t,e){let n=[],i=!1;return V(t)?(i=!0,n=t):n=function(t,e){const{x:n=null,y:i=null}=t||{},r=e.points,a=[];return e.segments.forEach((({start:t,end:e})=>{e=ya(t,e,r);const o=r[t],s=r[e];null!==i?(a.push({x:o.x,y:i}),a.push({x:s.x,y:i})):null!==n&&(a.push({x:n,y:o.y}),a.push({x:n,y:s.y}))})),a}(t,e),n.length?new ra({points:n,options:{tension:0},_loop:i,_fullLoop:i}):null}function _a(t){return t&&!1!==t.fill}function Aa(t,e,n){let i=t[e].fill;const r=[e];let a;if(!n)return i;for(;!1!==i&&-1===r.indexOf(i);){if(!U(i))return i;if(a=t[i],!a)return!1;if(a.visible)return i;r.push(i),i=a.fill}return!1}function wa(t,e,n){const i=function(t){const e=t.options,n=e.fill;let i=Y(n&&n.target,n);return void 0===i&&(i=!!e.backgroundColor),!1!==i&&null!==i&&(!0===i?"origin":i)}(t);if(H(i))return!isNaN(i.value)&&i;let r=parseFloat(i);return U(r)&&Math.floor(r)===r?function(t,e,n,i){return"-"!==t&&"+"!==t||(n=e+n),!(n===e||n<0||n>=i)&&n}(i[0],e,r,n):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function ka(t,e,n){const i=[];for(let r=0;r<n.length;r++){const a=n[r],{first:o,last:s,point:l}=Ca(a,e,"x");if(!(!l||o&&s))if(o)i.unshift(l);else if(t.push(l),!s)break}t.push(...i)}function Ca(t,e,n){const i=t.interpolate(e,n);if(!i)return{};const r=i[n],a=t.segments,o=t.points;let s=!1,l=!1;for(let t=0;t<a.length;t++){const e=a[t],i=o[e.start][n],c=o[e.end][n];if(Dt(r,i,c)){s=r===i,l=r===c;break}}return{first:s,last:l,point:i}}class Ea{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,n){const{x:i,y:r,radius:a}=this;return e=e||{start:0,end:ut},t.arc(i,r,a,e.end,e.start,!0),!n.bounds}interpolate(t){const{x:e,y:n,radius:i}=this,r=t.angle;return{x:e+Math.cos(r)*i,y:n+Math.sin(r)*i,angle:r}}}function Sa(t,e,n){const i=function(t){const{chart:e,fill:n,line:i}=t;if(U(n))return function(t,e){const n=t.getDatasetMeta(e);return n&&t.isDatasetVisible(e)?n.dataset:null}(e,n);if("stack"===n)return function(t){const{scale:e,index:n,line:i}=t,r=[],a=i.segments,o=i.points,s=function(t,e){const n=[],i=t.getMatchingVisibleMetas("line");for(let t=0;t<i.length;t++){const r=i[t];if(r.index===e)break;r.hidden||n.unshift(r.dataset)}return n}(e,n);s.push(xa({x:null,y:e.bottom},i));for(let t=0;t<a.length;t++){const e=a[t];for(let t=e.start;t<=e.end;t++)ka(r,o[t],s)}return new ra({points:r,options:{}})}(t);if("shape"===n)return!0;const r=function(t){return(t.scale||{}).getPointPositionForValue?function(t){const{scale:e,fill:n}=t,i=e.options,r=e.getLabels().length,a=i.reverse?e.max:e.min,o=function(t,e,n){let i;return i="start"===t?n:"end"===t?e.options.reverse?e.min:e.max:H(t)?t.value:e.getBaseValue(),i}(n,e,a),s=[];if(i.grid.circular){const t=e.getPointPositionForValue(0,a);return new Ea({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(o)})}for(let t=0;t<r;++t)s.push(e.getPointPositionForValue(t,o));return s}(t):function(t){const{scale:e={},fill:n}=t,i=function(t,e){let n=null;return"start"===t?n=e.bottom:"end"===t?n=e.top:H(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}(n,e);if(U(i)){const t=e.isHorizontal();return{x:t?i:null,y:t?null:i}}return null}(t)}(t);return r instanceof Ea?r:xa(r,i)}(e),{line:r,scale:a,axis:o}=e,s=r.options,l=s.fill,c=s.backgroundColor,{above:u=c,below:h=c}=l||{};i&&r.points.length&&(Pe(t,n),function(t,e){const{line:n,target:i,above:r,below:a,area:o,scale:s}=e,l=n._loop?"angle":e.axis;t.save(),"x"===l&&a!==r&&(Ma(t,i,o.top),Pa(t,{line:n,target:i,color:r,scale:s,property:l}),t.restore(),t.save(),Ma(t,i,o.bottom)),Pa(t,{line:n,target:i,color:a,scale:s,property:l}),t.restore()}(t,{line:r,target:i,above:u,below:h,area:n,scale:a,axis:o}),Be(t))}function Ma(t,e,n){const{segments:i,points:r}=e;let a=!0,o=!1;t.beginPath();for(const s of i){const{start:i,end:l}=s,c=r[i],u=r[ya(i,l,r)];a?(t.moveTo(c.x,c.y),a=!1):(t.lineTo(c.x,n),t.lineTo(c.x,c.y)),o=!!e.pathSegment(t,s,{move:o}),o?t.closePath():t.lineTo(u.x,n)}t.lineTo(e.first().x,n),t.closePath(),t.clip()}function Pa(t,e){const{line:n,target:i,property:r,color:a,scale:o}=e,s=function(t,e,n){const i=t.segments,r=t.points,a=e.points,o=[];for(const t of i){let{start:i,end:s}=t;s=ya(i,s,r);const l=ba(n,r[i],r[s],t.loop);if(!e.segments){o.push({source:t,target:l,start:r[i],end:r[s]});continue}const c=Wn(e,l);for(const e of c){const i=ba(n,a[e.start],a[e.end],e.loop),s=jn(t,r,i);for(const t of s)o.push({source:t,target:e,start:{[n]:va(l,i,"start",Math.max)},end:{[n]:va(l,i,"end",Math.min)}})}}return o}(n,i,r);for(const{source:e,target:l,start:c,end:u}of s){const{style:{backgroundColor:s=a}={}}=e,h=!0!==i;t.save(),t.fillStyle=s,Ba(t,o,h&&ba(r,c,u)),t.beginPath();const d=!!n.pathSegment(t,e);let f;if(h){d?t.closePath():Ta(t,i,u,r);const e=!!i.pathSegment(t,l,{move:d,reverse:!0});f=d&&e,f||Ta(t,i,c,r)}t.closePath(),t.fill(f?"evenodd":"nonzero"),t.restore()}}function Ba(t,e,n){const{top:i,bottom:r}=e.chart.chartArea,{property:a,start:o,end:s}=n||{};"x"===a&&(t.beginPath(),t.rect(o,i,s-o,r-i),t.clip())}function Ta(t,e,n,i){const r=e.interpolate(n,i);r&&t.lineTo(r.x,r.y)}var Da={id:"filler",afterDatasetsUpdate(t,e,n){const i=(t.data.datasets||[]).length,r=[];let a,o,s,l;for(o=0;o<i;++o)a=t.getDatasetMeta(o),s=a.dataset,l=null,s&&s.options&&s instanceof ra&&(l={visible:t.isDatasetVisible(o),index:o,fill:wa(s,o,i),chart:t,axis:a.controller.options.indexAxis,scale:a.vScale,line:s}),a.$filler=l,r.push(l);for(o=0;o<i;++o)l=r[o],l&&!1!==l.fill&&(l.fill=Aa(r,o,n.propagate))},beforeDraw(t,e,n){const i="beforeDraw"===n.drawTime,r=t.getSortedVisibleDatasetMetas(),a=t.chartArea;for(let e=r.length-1;e>=0;--e){const n=r[e].$filler;n&&(n.line.updateControlPoints(a,n.axis),i&&n.fill&&Sa(t.ctx,n,a))}},beforeDatasetsDraw(t,e,n){if("beforeDatasetsDraw"!==n.drawTime)return;const i=t.getSortedVisibleDatasetMetas();for(let e=i.length-1;e>=0;--e){const n=i[e].$filler;_a(n)&&Sa(t.ctx,n,t.chartArea)}},beforeDatasetDraw(t,e,n){const i=e.meta.$filler;_a(i)&&"beforeDatasetDraw"===n.drawTime&&Sa(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Oa=(t,e)=>{let{boxHeight:n=e,boxWidth:i=e}=t;return t.usePointStyle&&(n=Math.min(n,e),i=t.pointStyleWidth||Math.min(i,e)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(e,n)}};class La extends lr{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,n){this.maxWidth=t,this.maxHeight=e,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=Q(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,n)=>t.sort(e,n,this.chart.data)))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const n=t.labels,i=He(n.font),r=i.size,a=this._computeTitleHeight(),{boxWidth:o,itemHeight:s}=Oa(n,r);let l,c;e.font=i.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(a,r,o,s)+10):(c=this.maxHeight,l=this._fitCols(a,r,o,s)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,n,i){const{ctx:r,maxWidth:a,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],c=i+o;let u=t;r.textAlign="left",r.textBaseline="middle";let h=-1,d=-c;return this.legendItems.forEach(((t,f)=>{const p=n+e/2+r.measureText(t.text).width;(0===f||l[l.length-1]+p+2*o>a)&&(u+=c,l[l.length-(f>0?0:1)]=0,d+=c,h++),s[f]={left:0,top:d,row:h,width:p,height:i},l[l.length-1]+=p+o})),u}_fitCols(t,e,n,i){const{ctx:r,maxHeight:a,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],c=a-t;let u=o,h=0,d=0,f=0,p=0;return this.legendItems.forEach(((t,a)=>{const g=n+e/2+r.measureText(t.text).width;a>0&&d+i+2*o>c&&(u+=h+o,l.push({width:h,height:d}),f+=h+o,p++,h=d=0),s[a]={left:f,top:d,col:p,width:g,height:i},h=Math.max(h,g),d+=i+o})),u+=h,l.push({width:h,height:d}),u}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:i},rtl:r}}=this,a=zn(r,this.left,this.width);if(this.isHorizontal()){let r=0,o=I(n,this.left+i,this.right-this.lineWidths[r]);for(const s of e)r!==s.row&&(r=s.row,o=I(n,this.left+i,this.right-this.lineWidths[r])),s.top+=this.top+t+i,s.left=a.leftForLtr(a.x(o),s.width),o+=s.width+i}else{let r=0,o=I(n,this.top+t+i,this.bottom-this.columnSizes[r].height);for(const s of e)s.col!==r&&(r=s.col,o=I(n,this.top+t+i,this.bottom-this.columnSizes[r].height)),s.top=o,s.left+=this.left+i,s.left=a.leftForLtr(a.x(s.left),s.width),o+=s.height+i}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;Pe(t,this),this._draw(),Be(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:n,ctx:i}=this,{align:r,labels:a}=t,o=_e.color,s=zn(t.rtl,this.left,this.width),l=He(a.font),{color:c,padding:u}=a,h=l.size,d=h/2;let f;this.drawTitle(),i.textAlign=s.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=l.string;const{boxWidth:p,boxHeight:g,itemHeight:m}=Oa(a,h),b=this.isHorizontal(),y=this._computeTitleHeight();f=b?{x:I(r,this.left+u,this.right-n[0]),y:this.top+u+y,line:0}:{x:this.left+u,y:I(r,this.top+y+u,this.bottom-e[0].height),line:0},Rn(this.ctx,t.textDirection);const v=m+u;this.legendItems.forEach(((x,_)=>{i.strokeStyle=x.fontColor||c,i.fillStyle=x.fontColor||c;const A=i.measureText(x.text).width,w=s.textAlign(x.textAlign||(x.textAlign=a.textAlign)),k=p+d+A;let C=f.x,E=f.y;s.setWidth(this.width),b?_>0&&C+k+u>this.right&&(E=f.y+=v,f.line++,C=f.x=I(r,this.left+u,this.right-n[f.line])):_>0&&E+v>this.bottom&&(C=f.x=C+e[f.line].width+u,f.line++,E=f.y=I(r,this.top+y+u,this.bottom-e[f.line].height)),function(t,e,n){if(isNaN(p)||p<=0||isNaN(g)||g<0)return;i.save();const r=Y(n.lineWidth,1);if(i.fillStyle=Y(n.fillStyle,o),i.lineCap=Y(n.lineCap,"butt"),i.lineDashOffset=Y(n.lineDashOffset,0),i.lineJoin=Y(n.lineJoin,"miter"),i.lineWidth=r,i.strokeStyle=Y(n.strokeStyle,o),i.setLineDash(Y(n.lineDash,[])),a.usePointStyle){const a={radius:g*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:r},o=s.xPlus(t,p/2);Se(i,a,o,e+d,p)}else{const a=e+Math.max((h-g)/2,0),o=s.leftForLtr(t,p),l=We(n.borderRadius);i.beginPath(),Object.values(l).some((t=>0!==t))?ze(i,{x:o,y:a,w:p,h:g,radius:l}):i.rect(o,a,p,g),i.fill(),0!==r&&i.stroke()}i.restore()}(s.x(C),E,x),C=((t,e,n,i)=>t===(i?"left":"right")?n:"center"===t?(e+n)/2:e)(w,C+p+d,b?C+k:this.right,t.rtl),function(t,e,n){Oe(i,n.text,t,e+m/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(C),E,x),b?f.x+=k+u:f.y+=v})),Nn(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,n=He(e.font),i=Ve(e.padding);if(!e.display)return;const r=zn(t.rtl,this.left,this.width),a=this.ctx,o=e.position,s=n.size/2,l=i.top+s;let c,u=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),c=this.top+l,u=I(t.align,u,this.right-h);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);c=l+I(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const d=I(o,u,u+h);a.textAlign=r.textAlign(N(o)),a.textBaseline="middle",a.strokeStyle=e.color,a.fillStyle=e.color,a.font=n.string,Oe(a,e.text,d,c,n)}_computeTitleHeight(){const t=this.options.title,e=He(t.font),n=Ve(t.padding);return t.display?e.lineHeight+n.height:0}_getLegendItemAt(t,e){let n,i,r;if(Dt(t,this.left,this.right)&&Dt(e,this.top,this.bottom))for(r=this.legendHitBoxes,n=0;n<r.length;++n)if(i=r[n],Dt(t,i.left,i.left+i.width)&&Dt(e,i.top,i.top+i.height))return this.legendItems[n];return null}handleEvent(t){const e=this.options;if(!function(t,e){return!("mousemove"!==t&&"mouseout"!==t||!e.onHover&&!e.onLeave)||!(!e.onClick||"click"!==t&&"mouseup"!==t)}(t.type,e))return;const n=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const a=this._hoveredItem,o=(r=n,null!==(i=a)&&null!==r&&i.datasetIndex===r.datasetIndex&&i.index===r.index);a&&!o&&Q(e.onLeave,[t,a,this],this),this._hoveredItem=n,n&&!o&&Q(e.onHover,[t,n,this],this)}else n&&Q(e.onClick,[t,n,this],this);var i,r}}var za={id:"legend",_element:La,start(t,e,n){const i=t.legend=new La({ctx:t.ctx,options:n,chart:t});$i.configure(t,i,n),$i.addBox(t,i)},stop(t){$i.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const i=t.legend;$i.configure(t,i,n),i.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const i=e.datasetIndex,r=n.chart;r.isDatasetVisible(i)?(r.hide(i),e.hidden=!0):(r.show(i),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:r,color:a}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const o=t.controller.getStyle(n?0:void 0),s=Ve(o.borderWidth);return{text:e[t.index].label,fillStyle:o.backgroundColor,fontColor:a,hidden:!t.visible,lineCap:o.borderCapStyle,lineDash:o.borderDash,lineDashOffset:o.borderDashOffset,lineJoin:o.borderJoinStyle,lineWidth:(s.width+s.height)/4,strokeStyle:o.borderColor,pointStyle:i||o.pointStyle,rotation:o.rotation,textAlign:r||o.textAlign,borderRadius:0,datasetIndex:t.index}}),this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class Ra extends lr{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const i=V(n.text)?n.text.length:1;this._padding=Ve(n.padding);const r=i*He(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=r:this.width=r}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:n,bottom:i,right:r,options:a}=this,o=a.align;let s,l,c,u=0;return this.isHorizontal()?(l=I(o,n,r),c=e+t,s=r-n):("left"===a.position?(l=n+t,c=I(o,i,e),u=-.5*ct):(l=r-t,c=I(o,e,i),u=.5*ct),s=i-e),{titleX:l,titleY:c,maxWidth:s,rotation:u}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const n=He(e.font),i=n.lineHeight/2+this._padding.top,{titleX:r,titleY:a,maxWidth:o,rotation:s}=this._drawArgs(i);Oe(t,e.text,0,0,n,{color:e.color,maxWidth:o,rotation:s,textAlign:N(e.align),textBaseline:"middle",translation:[r,a]})}}var Na={id:"title",_element:Ra,start(t,e,n){!function(t,e){const n=new Ra({ctx:t.ctx,options:e,chart:t});$i.configure(t,n,e),$i.addBox(t,n),t.titleBlock=n}(t,n)},stop(t){const e=t.titleBlock;$i.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const i=t.titleBlock;$i.configure(t,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Ia=new WeakMap;var Fa={id:"subtitle",start(t,e,n){const i=new Ra({ctx:t.ctx,options:n,chart:t});$i.configure(t,i,n),$i.addBox(t,i),Ia.set(t,i)},stop(t){$i.removeBox(t,Ia.get(t)),Ia.delete(t)},beforeUpdate(t,e,n){const i=Ia.get(t);$i.configure(t,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ja={average(t){if(!t.length)return!1;let e,n,i=0,r=0,a=0;for(e=0,n=t.length;e<n;++e){const n=t[e].element;if(n&&n.hasValue()){const t=n.tooltipPosition();i+=t.x,r+=t.y,++a}}return{x:i/a,y:r/a}},nearest(t,e){if(!t.length)return!1;let n,i,r,a=e.x,o=e.y,s=Number.POSITIVE_INFINITY;for(n=0,i=t.length;n<i;++n){const i=t[n].element;if(i&&i.hasValue()){const t=St(e,i.getCenterPoint());t<s&&(s=t,r=i)}}if(r){const t=r.tooltipPosition();a=t.x,o=t.y}return{x:a,y:o}}};function Wa(t,e){return e&&(V(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Va(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Ha(t,e){const{element:n,datasetIndex:i,index:r}=e,a=t.getDatasetMeta(i).controller,{label:o,value:s}=a.getLabelAndValue(r);return{chart:t,label:o,parsed:a.getParsed(r),raw:t.data.datasets[i].data[r],formattedValue:s,dataset:a.getDataset(),dataIndex:r,datasetIndex:i,element:n}}function Ua(t,e){const n=t.chart.ctx,{body:i,footer:r,title:a}=t,{boxWidth:o,boxHeight:s}=e,l=He(e.bodyFont),c=He(e.titleFont),u=He(e.footerFont),h=a.length,d=r.length,f=i.length,p=Ve(e.padding);let g=p.height,m=0,b=i.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);b+=t.beforeBody.length+t.afterBody.length,h&&(g+=h*c.lineHeight+(h-1)*e.titleSpacing+e.titleMarginBottom),b&&(g+=f*(e.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(b-f)*l.lineHeight+(b-1)*e.bodySpacing),d&&(g+=e.footerMarginTop+d*u.lineHeight+(d-1)*e.footerSpacing);let y=0;const v=function(t){m=Math.max(m,n.measureText(t).width+y)};return n.save(),n.font=c.string,X(t.title,v),n.font=l.string,X(t.beforeBody.concat(t.afterBody),v),y=e.displayColors?o+2+e.boxPadding:0,X(i,(t=>{X(t.before,v),X(t.lines,v),X(t.after,v)})),y=0,n.font=u.string,X(t.footer,v),n.restore(),m+=p.width,{width:m,height:g}}function $a(t,e,n,i){const{x:r,width:a}=n,{width:o,chartArea:{left:s,right:l}}=t;let c="center";return"center"===i?c=r<=(s+l)/2?"left":"right":r<=a/2?c="left":r>=o-a/2&&(c="right"),function(t,e,n,i){const{x:r,width:a}=i,o=n.caretSize+n.caretPadding;return"left"===t&&r+a+o>e.width||"right"===t&&r-a-o<0||void 0}(c,t,e,n)&&(c="center"),c}function Ya(t,e,n){const i=n.yAlign||e.yAlign||function(t,e){const{y:n,height:i}=e;return n<i/2?"top":n>t.height-i/2?"bottom":"center"}(t,n);return{xAlign:n.xAlign||e.xAlign||$a(t,e,n,i),yAlign:i}}function qa(t,e,n,i){const{caretSize:r,caretPadding:a,cornerRadius:o}=t,{xAlign:s,yAlign:l}=n,c=r+a,{topLeft:u,topRight:h,bottomLeft:d,bottomRight:f}=We(o);let p=function(t,e){let{x:n,width:i}=t;return"right"===e?n-=i:"center"===e&&(n-=i/2),n}(e,s);const g=function(t,e,n){let{y:i,height:r}=t;return"top"===e?i+=n:i-="bottom"===e?r+n:r/2,i}(e,l,c);return"center"===l?"left"===s?p+=c:"right"===s&&(p-=c):"left"===s?p-=Math.max(u,d)+r:"right"===s&&(p+=Math.max(h,f)+r),{x:Tt(p,0,i.width-e.width),y:Tt(g,0,i.height-e.height)}}function Qa(t,e,n){const i=Ve(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-i.right:t.x+i.left}function Xa(t){return Wa([],Va(t))}function Ka(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}class Za extends lr{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||t._chart,this._chart=this.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,n=this.options.setContext(this.getContext()),i=n.enabled&&e.options.animation&&n.animations,r=new Xn(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=(this,$e(this.chart.getContext(),{tooltip:this,tooltipItems:this._tooltipItems,type:"tooltip"})))}getTitle(t,e){const{callbacks:n}=e,i=n.beforeTitle.apply(this,[t]),r=n.title.apply(this,[t]),a=n.afterTitle.apply(this,[t]);let o=[];return o=Wa(o,Va(i)),o=Wa(o,Va(r)),o=Wa(o,Va(a)),o}getBeforeBody(t,e){return Xa(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:n}=e,i=[];return X(t,(t=>{const e={before:[],lines:[],after:[]},r=Ka(n,t);Wa(e.before,Va(r.beforeLabel.call(this,t))),Wa(e.lines,r.label.call(this,t)),Wa(e.after,Va(r.afterLabel.call(this,t))),i.push(e)})),i}getAfterBody(t,e){return Xa(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:n}=e,i=n.beforeFooter.apply(this,[t]),r=n.footer.apply(this,[t]),a=n.afterFooter.apply(this,[t]);let o=[];return o=Wa(o,Va(i)),o=Wa(o,Va(r)),o=Wa(o,Va(a)),o}_createItems(t){const e=this._active,n=this.chart.data,i=[],r=[],a=[];let o,s,l=[];for(o=0,s=e.length;o<s;++o)l.push(Ha(this.chart,e[o]));return t.filter&&(l=l.filter(((e,i,r)=>t.filter(e,i,r,n)))),t.itemSort&&(l=l.sort(((e,i)=>t.itemSort(e,i,n)))),X(l,(e=>{const n=Ka(t.callbacks,e);i.push(n.labelColor.call(this,e)),r.push(n.labelPointStyle.call(this,e)),a.push(n.labelTextColor.call(this,e))})),this.labelColors=i,this.labelPointStyles=r,this.labelTextColors=a,this.dataPoints=l,l}update(t,e){const n=this.options.setContext(this.getContext()),i=this._active;let r,a=[];if(i.length){const t=ja[n.position].call(this,i,this._eventPosition);a=this._createItems(n),this.title=this.getTitle(a,n),this.beforeBody=this.getBeforeBody(a,n),this.body=this.getBody(a,n),this.afterBody=this.getAfterBody(a,n),this.footer=this.getFooter(a,n);const e=this._size=Ua(this,n),o=Object.assign({},t,e),s=Ya(this.chart,n,o),l=qa(n,o,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,r={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(r={opacity:0});this._tooltipItems=a,this.$context=void 0,r&&this._resolveAnimations().update(this,r),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,n,i){const r=this.getCaretPosition(t,n,i);e.lineTo(r.x1,r.y1),e.lineTo(r.x2,r.y2),e.lineTo(r.x3,r.y3)}getCaretPosition(t,e,n){const{xAlign:i,yAlign:r}=this,{caretSize:a,cornerRadius:o}=n,{topLeft:s,topRight:l,bottomLeft:c,bottomRight:u}=We(o),{x:h,y:d}=t,{width:f,height:p}=e;let g,m,b,y,v,x;return"center"===r?(v=d+p/2,"left"===i?(g=h,m=g-a,y=v+a,x=v-a):(g=h+f,m=g+a,y=v-a,x=v+a),b=g):(m="left"===i?h+Math.max(s,c)+a:"right"===i?h+f-Math.max(l,u)-a:this.caretX,"top"===r?(y=d,v=y-a,g=m-a,b=m+a):(y=d+p,v=y+a,g=m+a,b=m-a),x=y),{x1:g,x2:m,x3:b,y1:y,y2:v,y3:x}}drawTitle(t,e,n){const i=this.title,r=i.length;let a,o,s;if(r){const l=zn(n.rtl,this.x,this.width);for(t.x=Qa(this,n.titleAlign,n),e.textAlign=l.textAlign(n.titleAlign),e.textBaseline="middle",a=He(n.titleFont),o=n.titleSpacing,e.fillStyle=n.titleColor,e.font=a.string,s=0;s<r;++s)e.fillText(i[s],l.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+o,s+1===r&&(t.y+=n.titleMarginBottom-o)}}_drawColorBox(t,e,n,i,r){const a=this.labelColors[n],o=this.labelPointStyles[n],{boxHeight:s,boxWidth:l,boxPadding:c}=r,u=He(r.bodyFont),h=Qa(this,"left",r),d=i.x(h),f=s<u.lineHeight?(u.lineHeight-s)/2:0,p=e.y+f;if(r.usePointStyle){const e={radius:Math.min(l,s)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},n=i.leftForLtr(d,l)+l/2,c=p+s/2;t.strokeStyle=r.multiKeyBackground,t.fillStyle=r.multiKeyBackground,Ee(t,e,n,c),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,Ee(t,e,n,c)}else{t.lineWidth=H(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0;const e=i.leftForLtr(d,l-c),n=i.leftForLtr(i.xPlus(d,1),l-c-2),o=We(a.borderRadius);Object.values(o).some((t=>0!==t))?(t.beginPath(),t.fillStyle=r.multiKeyBackground,ze(t,{x:e,y:p,w:l,h:s,radius:o}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),ze(t,{x:n,y:p+1,w:l-2,h:s-2,radius:o}),t.fill()):(t.fillStyle=r.multiKeyBackground,t.fillRect(e,p,l,s),t.strokeRect(e,p,l,s),t.fillStyle=a.backgroundColor,t.fillRect(n,p+1,l-2,s-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,e,n){const{body:i}=this,{bodySpacing:r,bodyAlign:a,displayColors:o,boxHeight:s,boxWidth:l,boxPadding:c}=n,u=He(n.bodyFont);let h=u.lineHeight,d=0;const f=zn(n.rtl,this.x,this.width),p=function(n){e.fillText(n,f.x(t.x+d),t.y+h/2),t.y+=h+r},g=f.textAlign(a);let m,b,y,v,x,_,A;for(e.textAlign=a,e.textBaseline="middle",e.font=u.string,t.x=Qa(this,g,n),e.fillStyle=n.bodyColor,X(this.beforeBody,p),d=o&&"right"!==g?"center"===a?l/2+c:l+2+c:0,v=0,_=i.length;v<_;++v){for(m=i[v],b=this.labelTextColors[v],e.fillStyle=b,X(m.before,p),y=m.lines,o&&y.length&&(this._drawColorBox(e,t,v,f,n),h=Math.max(u.lineHeight,s)),x=0,A=y.length;x<A;++x)p(y[x]),h=u.lineHeight;X(m.after,p)}d=0,h=u.lineHeight,X(this.afterBody,p),t.y-=r}drawFooter(t,e,n){const i=this.footer,r=i.length;let a,o;if(r){const s=zn(n.rtl,this.x,this.width);for(t.x=Qa(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=s.textAlign(n.footerAlign),e.textBaseline="middle",a=He(n.footerFont),e.fillStyle=n.footerColor,e.font=a.string,o=0;o<r;++o)e.fillText(i[o],s.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+n.footerSpacing}}drawBackground(t,e,n,i){const{xAlign:r,yAlign:a}=this,{x:o,y:s}=t,{width:l,height:c}=n,{topLeft:u,topRight:h,bottomLeft:d,bottomRight:f}=We(i.cornerRadius);e.fillStyle=i.backgroundColor,e.strokeStyle=i.borderColor,e.lineWidth=i.borderWidth,e.beginPath(),e.moveTo(o+u,s),"top"===a&&this.drawCaret(t,e,n,i),e.lineTo(o+l-h,s),e.quadraticCurveTo(o+l,s,o+l,s+h),"center"===a&&"right"===r&&this.drawCaret(t,e,n,i),e.lineTo(o+l,s+c-f),e.quadraticCurveTo(o+l,s+c,o+l-f,s+c),"bottom"===a&&this.drawCaret(t,e,n,i),e.lineTo(o+d,s+c),e.quadraticCurveTo(o,s+c,o,s+c-d),"center"===a&&"left"===r&&this.drawCaret(t,e,n,i),e.lineTo(o,s+u),e.quadraticCurveTo(o,s,o+u,s),e.closePath(),e.fill(),i.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,n=this.$animations,i=n&&n.x,r=n&&n.y;if(i||r){const n=ja[t.position].call(this,this._active,this._eventPosition);if(!n)return;const a=this._size=Ua(this,t),o=Object.assign({},n,this._size),s=Ya(e,t,o),l=qa(t,o,s,e);i._to===l.x&&r._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=a.width,this.height=a.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(e);const i={width:this.width,height:this.height},r={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const a=Ve(e.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&o&&(t.save(),t.globalAlpha=n,this.drawBackground(r,t,i,e),Rn(t,e.textDirection),r.y+=a.top,this.drawTitle(r,t,e),this.drawBody(r,t,e),this.drawFooter(r,t,e),Nn(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const n=this._active,i=t.map((({datasetIndex:t,index:e})=>{const n=this.chart.getDatasetMeta(t);if(!n)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:n.data[e],index:e}})),r=!K(n,i),a=this._positionChanged(i,e);(r||a)&&(this._active=i,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,n=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,r=this._active||[],a=this._getActiveElements(t,r,e,n),o=this._positionChanged(a,t),s=e||!K(a,r)||o;return s&&(this._active=a,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),s}_getActiveElements(t,e,n,i){const r=this.options;if("mouseout"===t.type)return[];if(!i)return e;const a=this.chart.getElementsAtEventForMode(t,r.mode,r,n);return r.reverse&&a.reverse(),a}_positionChanged(t,e){const{caretX:n,caretY:i,options:r}=this,a=ja[r.position].call(this,t,e);return!1!==a&&(n!==a.x||i!==a.y)}}Za.positioners=ja;var Ga={id:"tooltip",_element:Za,positioners:ja,afterInit(t,e,n){n&&(t.tooltip=new Za({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",n))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:F,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,i=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(i>0&&e.dataIndex<i)return n[e.dataIndex]}return""},afterTitle:F,beforeBody:F,beforeLabel:F,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return W(n)||(e+=n),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:F,afterBody:F,beforeFooter:F,footer:F,afterFooter:F}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},Ja=Object.freeze({__proto__:null,Decimation:ma,Filler:Da,Legend:za,SubTitle:Fa,Title:Na,Tooltip:Ga});class to extends yr{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:n,label:i}of e)t[n]===i&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(W(t))return null;const n=this.getLabels();return((t,e)=>null===t?null:Tt(Math.round(t),0,e))(e=isFinite(e)&&n[e]===t?e:function(t,e,n,i){const r=t.indexOf(e);return-1===r?((t,e,n,i)=>("string"==typeof e?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n))(t,e,n,i):r!==t.lastIndexOf(e)?n:r}(n,t,Y(e,t),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,i=[];let r=this.getLabels();r=0===t&&e===r.length-1?r:r.slice(t,e+1),this._valueRange=Math.max(r.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=t;n<=e;n++)i.push({value:n});return i}getLabelForValue(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function eo(t,e,{horizontal:n,minRotation:i}){const r=wt(i),a=(n?Math.sin(r):Math.cos(r))||.001,o=.75*e*(""+t).length;return Math.min(e/a,o)}to.id="category",to.defaults={ticks:{callback:to.prototype.getLabelForValue}};class no extends yr{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return W(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:i,max:r}=this;const a=t=>i=e?i:t,o=t=>r=n?r:t;if(t){const t=yt(i),e=yt(r);t<0&&e<0?o(0):t>0&&e>0&&a(0)}if(i===r){let e=1;(r>=Number.MAX_SAFE_INTEGER||i<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*r)),o(r+e),t||a(i-e)}this.min=i,this.max=r}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:i}=t;return i?(e=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const i=function(t,e){const n=[],{bounds:i,step:r,min:a,max:o,precision:s,count:l,maxTicks:c,maxDigits:u,includeBounds:h}=t,d=r||1,f=c-1,{min:p,max:g}=e,m=!W(a),b=!W(o),y=!W(l),v=(g-p)/(u+1);let x,_,A,w,k=vt((g-p)/f/d)*d;if(k<1e-14&&!m&&!b)return[{value:p},{value:g}];w=Math.ceil(g/k)-Math.floor(p/k),w>f&&(k=vt(w*k/f/d)*d),W(s)||(x=Math.pow(10,s),k=Math.ceil(k*x)/x),"ticks"===i?(_=Math.floor(p/k)*k,A=Math.ceil(g/k)*k):(_=p,A=g),m&&b&&r&&function(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}((o-a)/r,k/1e3)?(w=Math.round(Math.min((o-a)/k,c)),k=(o-a)/w,_=a,A=o):y?(_=m?a:_,A=b?o:A,w=l-1,k=(A-_)/w):(w=(A-_)/k,w=_t(w,Math.round(w),k/1e3)?Math.round(w):Math.ceil(w));const C=Math.max(Ct(k),Ct(_));x=Math.pow(10,W(s)?C:s),_=Math.round(_*x)/x,A=Math.round(A*x)/x;let E=0;for(m&&(h&&_!==a?(n.push({value:a}),_<a&&E++,_t(Math.round((_+E*k)*x)/x,a,eo(a,v,t))&&E++):_<a&&E++);E<w;++E)n.push({value:Math.round((_+E*k)*x)/x});return b&&h&&A!==o?n.length&&_t(n[n.length-1].value,o,eo(o,v,t))?n[n.length-1].value=o:n.push({value:o}):b&&A!==o||n.push({value:A}),n}({maxTicks:n,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&At(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}configure(){const t=this.ticks;let e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const i=(n-e)/Math.max(t.length-1,1)/2;e-=i,n+=i}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return Ln(t,this.chart.options.locale,this.options.ticks.format)}}class io extends no{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=U(t)?t:0,this.max=U(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=wt(this.options.ticks.minRotation),i=(t?Math.sin(n):Math.cos(n))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,r.lineHeight/i))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function ro(t){return 1==t/Math.pow(10,Math.floor(bt(t)))}io.id="linear",io.defaults={ticks:{callback:ur.formatters.numeric}};class ao extends yr{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const n=no.prototype.parse.apply(this,[t,e]);if(0!==n)return U(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=U(t)?Math.max(0,t):null,this.max=U(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let n=this.min,i=this.max;const r=e=>n=t?n:e,a=t=>i=e?i:t,o=(t,e)=>Math.pow(10,Math.floor(bt(t))+e);n===i&&(n<=0?(r(1),a(10)):(r(o(n,-1)),a(o(i,1)))),n<=0&&r(o(i,-1)),i<=0&&a(o(n,1)),this._zero&&this.min!==this._suggestedMin&&n===o(this.min,0)&&r(o(n,-1)),this.min=n,this.max=i}buildTicks(){const t=this.options,e=function(t,e){const n=Math.floor(bt(e.max)),i=Math.ceil(e.max/Math.pow(10,n)),r=[];let a=$(t.min,Math.pow(10,Math.floor(bt(e.min)))),o=Math.floor(bt(a)),s=Math.floor(a/Math.pow(10,o)),l=o<0?Math.pow(10,Math.abs(o)):1;do{r.push({value:a,major:ro(a)}),++s,10===s&&(s=1,++o,l=o>=0?1:l),a=Math.round(s*Math.pow(10,o)*l)/l}while(o<n||o===n&&s<i);const c=$(t.max,a);return r.push({value:c,major:ro(a)}),r}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&At(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":Ln(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=bt(t),this._valueRange=bt(this.max)-bt(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(bt(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function oo(t){const e=t.ticks;if(e.display&&t.display){const t=Ve(e.backdropPadding);return Y(e.font&&e.font.size,_e.font.size)+t.height}return 0}function so(t,e,n,i,r){return t===i||t===r?{start:e-n/2,end:e+n/2}:t<i||t>r?{start:e-n,end:e}:{start:e,end:e+n}}function lo(t,e,n,i,r){const a=Math.abs(Math.sin(n)),o=Math.abs(Math.cos(n));let s=0,l=0;i.start<e.l?(s=(e.l-i.start)/a,t.l=Math.min(t.l,e.l-s)):i.end>e.r&&(s=(i.end-e.r)/a,t.r=Math.max(t.r,e.r+s)),r.start<e.t?(l=(e.t-r.start)/o,t.t=Math.min(t.t,e.t-l)):r.end>e.b&&(l=(r.end-e.b)/o,t.b=Math.max(t.b,e.b+l))}function co(t){return 0===t||180===t?"center":t<180?"left":"right"}function uo(t,e,n){return 90===n||270===n?t-=e/2:(n>270||n<90)&&(t-=e),t}function ho(t,e,n,i){const{ctx:r}=t;if(n)r.arc(t.xCenter,t.yCenter,e,0,ut);else{let n=t.getPointPosition(0,e);r.moveTo(n.x,n.y);for(let a=1;a<i;a++)n=t.getPointPosition(a,e),r.lineTo(n.x,n.y)}}ao.id="logarithmic",ao.defaults={ticks:{callback:ur.formatters.logarithmic,major:{enabled:!0}}};class fo extends no{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=Ve(oo(this.options)/2),e=this.width=this.maxWidth-t.width,n=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+n/2+t.top),this.drawingArea=Math.floor(Math.min(e,n)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=U(t)&&!isNaN(t)?t:0,this.max=U(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/oo(this.options))}generateTickLabels(t){no.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map(((t,e)=>{const n=Q(this.options.pointLabels.callback,[t,e],this);return n||0===n?n:""})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?function(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),i=[],r=[],a=t._pointLabels.length,o=t.options.pointLabels,s=o.centerPointLabels?ct/a:0;for(let h=0;h<a;h++){const a=o.setContext(t.getPointLabelContext(h));r[h]=a.padding;const d=t.getPointPosition(h,t.drawingArea+r[h],s),f=He(a.font),p=(l=t.ctx,c=f,u=V(u=t._pointLabels[h])?u:[u],{w:we(l,c.string,u),h:u.length*c.lineHeight});i[h]=p;const g=Pt(t.getIndexAngle(h)+s),m=Math.round(kt(g));lo(n,e,g,so(m,d.x,p.w,0,180),so(m,d.y,p.h,90,270))}var l,c,u;t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=function(t,e,n){const i=[],r=t._pointLabels.length,a=t.options,o=oo(a)/2,s=t.drawingArea,l=a.pointLabels.centerPointLabels?ct/r:0;for(let a=0;a<r;a++){const r=t.getPointPosition(a,s+o+n[a],l),d=Math.round(kt(Pt(r.angle+pt))),f=e[a],p=uo(r.y,f.h,d),g=co(d),m=(c=r.x,u=f.w,"right"===(h=g)?c-=u:"center"===h&&(c-=u/2),c);i.push({x:r.x,y:p,textAlign:g,left:m,top:p,right:m+f.w,bottom:p+f.h})}var c,u,h;return i}(t,i,r)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,n,i){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((n-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,n,i))}getIndexAngle(t){return Pt(t*(ut/(this._pointLabels.length||1))+wt(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(W(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(W(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const n=e[t];return function(t,e,n){return $e(t,{label:n,index:e,type:"pointLabel"})}(this.getContext(),t,n)}}getPointPosition(t,e,n=0){const i=this.getIndexAngle(t)-pt+n;return{x:Math.cos(i)*e+this.xCenter,y:Math.sin(i)*e+this.yCenter,angle:i}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:n,right:i,bottom:r}=this._pointLabelItems[t];return{left:e,top:n,right:i,bottom:r}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const n=this.ctx;n.save(),n.beginPath(),ho(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),n.closePath(),n.fillStyle=t,n.fill(),n.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:n,grid:i}=e,r=this._pointLabels.length;let a,o,s;if(e.pointLabels.display&&function(t,e){const{ctx:n,options:{pointLabels:i}}=t;for(let r=e-1;r>=0;r--){const e=i.setContext(t.getPointLabelContext(r)),a=He(e.font),{x:o,y:s,textAlign:l,left:c,top:u,right:h,bottom:d}=t._pointLabelItems[r],{backdropColor:f}=e;if(!W(f)){const t=We(e.borderRadius),i=Ve(e.backdropPadding);n.fillStyle=f;const r=c-i.left,a=u-i.top,o=h-c+i.width,s=d-u+i.height;Object.values(t).some((t=>0!==t))?(n.beginPath(),ze(n,{x:r,y:a,w:o,h:s,radius:t}),n.fill()):n.fillRect(r,a,o,s)}Oe(n,t._pointLabels[r],o,s+a.lineHeight/2,a,{color:e.color,textAlign:l,textBaseline:"middle"})}}(this,r),i.display&&this.ticks.forEach(((t,e)=>{0!==e&&(o=this.getDistanceFromCenterForValue(t.value),function(t,e,n,i){const r=t.ctx,a=e.circular,{color:o,lineWidth:s}=e;!a&&!i||!o||!s||n<0||(r.save(),r.strokeStyle=o,r.lineWidth=s,r.setLineDash(e.borderDash),r.lineDashOffset=e.borderDashOffset,r.beginPath(),ho(t,n,a,i),r.closePath(),r.stroke(),r.restore())}(this,i.setContext(this.getContext(e-1)),o,r))})),n.display){for(t.save(),a=r-1;a>=0;a--){const i=n.setContext(this.getPointLabelContext(a)),{color:r,lineWidth:l}=i;l&&r&&(t.lineWidth=l,t.strokeStyle=r,t.setLineDash(i.borderDash),t.lineDashOffset=i.borderDashOffset,o=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),s=this.getPointPosition(a,o),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(s.x,s.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,n=e.ticks;if(!n.display)return;const i=this.getIndexAngle(0);let r,a;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((i,o)=>{if(0===o&&!e.reverse)return;const s=n.setContext(this.getContext(o)),l=He(s.font);if(r=this.getDistanceFromCenterForValue(this.ticks[o].value),s.showLabelBackdrop){t.font=l.string,a=t.measureText(i.label).width,t.fillStyle=s.backdropColor;const e=Ve(s.backdropPadding);t.fillRect(-a/2-e.left,-r-l.size/2-e.top,a+e.width,l.size+e.height)}Oe(t,i.label,0,-r,l,{color:s.color})})),t.restore()}drawTitle(){}}fo.id="radialLinear",fo.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:ur.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},fo.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},fo.descriptors={angleLines:{_fallback:"grid"}};const po={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}},go=Object.keys(po);function mo(t,e){return t-e}function bo(t,e){if(W(e))return null;const n=t._adapter,{parser:i,round:r,isoWeekday:a}=t._parseOpts;let o=e;return"function"==typeof i&&(o=i(o)),U(o)||(o="string"==typeof i?n.parse(o,i):n.parse(o)),null===o?null:(r&&(o="week"!==r||!xt(a)&&!0!==a?n.startOf(o,r):n.startOf(o,"isoWeek",a)),+o)}function yo(t,e,n,i){const r=go.length;for(let a=go.indexOf(t);a<r-1;++a){const t=po[go[a]],r=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((n-e)/(r*t.size))<=i)return go[a]}return go[r-1]}function vo(t,e,n){if(n){if(n.length){const{lo:i,hi:r}=Ye(n,e);t[n[i]>=e?n[i]:n[r]]=!0}}else t[e]=!0}function xo(t,e,n){const i=[],r={},a=e.length;let o,s;for(o=0;o<a;++o)s=e[o],r[s]=o,i.push({value:s,major:!1});return 0!==a&&n?function(t,e,n,i){const r=t._adapter,a=+r.startOf(e[0].value,i),o=e[e.length-1].value;let s,l;for(s=a;s<=o;s=+r.add(s,1,i))l=n[s],l>=0&&(e[l].major=!0);return e}(t,i,r,n):i}class _o extends yr{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e){const n=t.time||(t.time={}),i=this._adapter=new Si._date(t.adapters.date);et(n.displayFormats,i.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:bo(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,n=t.time.unit||"day";let{min:i,max:r,minDefined:a,maxDefined:o}=this.getUserBounds();function s(t){a||isNaN(t.min)||(i=Math.min(i,t.min)),o||isNaN(t.max)||(r=Math.max(r,t.max))}a&&o||(s(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||s(this.getMinMax(!1))),i=U(i)&&!isNaN(i)?i:+e.startOf(Date.now(),n),r=U(r)&&!isNaN(r)?r:+e.endOf(Date.now(),n)+1,this.min=Math.min(i,r-1),this.max=Math.max(i+1,r)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],n=t[t.length-1]),{min:e,max:n}}buildTicks(){const t=this.options,e=t.time,n=t.ticks,i="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const r=this.min,a=function(t,e,n){let i=0,r=t.length;for(;i<r&&t[i]<e;)i++;for(;r>i&&t[r-1]>n;)r--;return i>0||r<t.length?t.slice(i,r):t}(i,r,this.max);return this._unit=e.unit||(n.autoSkip?yo(e.minUnit,this.min,this.max,this._getLabelCapacity(r)):function(t,e,n,i,r){for(let a=go.length-1;a>=go.indexOf(n);a--){const n=go[a];if(po[n].common&&t._adapter.diff(r,i,n)>=e-1)return n}return go[n?go.indexOf(n):0]}(this,a.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(t){for(let e=go.indexOf(t)+1,n=go.length;e<n;++e)if(po[go[e]].common)return go[e]}(this._unit):void 0,this.initOffsets(i),t.reverse&&a.reverse(),xo(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((t=>+t.value)))}initOffsets(t){let e,n,i=0,r=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),i=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,n=this.getDecimalForValue(t[t.length-1]),r=1===t.length?n:(n-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;i=Tt(i,0,a),r=Tt(r,0,a),this._offsets={start:i,end:r,factor:1/(i+1+r)}}_generate(){const t=this._adapter,e=this.min,n=this.max,i=this.options,r=i.time,a=r.unit||yo(r.minUnit,e,n,this._getLabelCapacity(e)),o=Y(r.stepSize,1),s="week"===a&&r.isoWeekday,l=xt(s)||!0===s,c={};let u,h,d=e;if(l&&(d=+t.startOf(d,"isoWeek",s)),d=+t.startOf(d,l?"day":a),t.diff(n,e,a)>1e5*o)throw new Error(e+" and "+n+" are too far apart with stepSize of "+o+" "+a);const f="data"===i.ticks.source&&this.getDataTimestamps();for(u=d,h=0;u<n;u=+t.add(u,o,a),h++)vo(c,u,f);return u!==n&&"ticks"!==i.bounds&&1!==h||vo(c,u,f),Object.keys(c).sort(((t,e)=>t-e)).map((t=>+t))}getLabelForValue(t){const e=this._adapter,n=this.options.time;return n.tooltipFormat?e.format(t,n.tooltipFormat):e.format(t,n.displayFormats.datetime)}_tickFormatFunction(t,e,n,i){const r=this.options,a=r.time.displayFormats,o=this._unit,s=this._majorUnit,l=o&&a[o],c=s&&a[s],u=n[e],h=s&&c&&u&&u.major,d=this._adapter.format(t,i||(h?c:l)),f=r.ticks.callback;return f?Q(f,[d,e,n],this):d}generateTickLabels(t){let e,n,i;for(e=0,n=t.length;e<n;++e)i=t[e],i.label=this._tickFormatFunction(i.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+n)*e.factor)}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,n=this.ctx.measureText(t).width,i=wt(this.isHorizontal()?e.maxRotation:e.minRotation),r=Math.cos(i),a=Math.sin(i),o=this._resolveTickFontOptions(0).size;return{w:n*r+o*a,h:n*a+o*r}}_getLabelCapacity(t){const e=this.options.time,n=e.displayFormats,i=n[e.unit]||n.millisecond,r=this._tickFormatFunction(t,0,xo(this,[t],this._majorUnit),i),a=this._getLabelSize(r),o=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return o>0?o:1}getDataTimestamps(){let t,e,n=this._cache.data||[];if(n.length)return n;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(t=0,e=i.length;t<e;++t)n=n.concat(i[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const t=this._cache.labels||[];let e,n;if(t.length)return t;const i=this.getLabels();for(e=0,n=i.length;e<n;++e)t.push(bo(this,i[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Ze(t.sort(mo))}}function Ao(t,e,n){let i,r,a,o,s=0,l=t.length-1;n?(e>=t[s].pos&&e<=t[l].pos&&({lo:s,hi:l}=qe(t,"pos",e)),({pos:i,time:a}=t[s]),({pos:r,time:o}=t[l])):(e>=t[s].time&&e<=t[l].time&&({lo:s,hi:l}=qe(t,"time",e)),({time:i,pos:a}=t[s]),({time:r,pos:o}=t[l]));const c=r-i;return c?a+(o-a)*(e-i)/c:a}_o.id="time",_o.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class wo extends _o{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=Ao(e,this.min),this._tableRange=Ao(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:n}=this,i=[],r=[];let a,o,s,l,c;for(a=0,o=t.length;a<o;++a)l=t[a],l>=e&&l<=n&&i.push(l);if(i.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(a=0,o=i.length;a<o;++a)c=i[a+1],s=i[a-1],l=i[a],Math.round((c+s)/2)!==l&&r.push({time:l,pos:a/(o-1)});return r}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),n=this.getLabelTimestamps();return t=e.length&&n.length?this.normalize(e.concat(n)):e.length?e:n,t=this._cache.all=t,t}getDecimalForValue(t){return(Ao(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return Ao(this._table,n*this._tableRange+this._minPos,!0)}}wo.id="timeseries",wo.defaults=_o.defaults;const ko=[ki,fa,Ja,Object.freeze({__proto__:null,CategoryScale:to,LinearScale:io,LogarithmicScale:ao,RadialLinearScale:fo,TimeScale:_o,TimeSeriesScale:wo})];Ur.register(...ko);const Co="label";function Eo(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function So(t,e){t.labels=e}function Mo(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Co;const i=[];t.datasets=e.map((e=>{const r=t.datasets.find((t=>t[n]===e[n]));return r&&e.data&&!i.includes(r)?(i.push(r),Object.assign(r,e),r):{...e}}))}function Po(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Co;const n={labels:[],datasets:[]};return So(n,t.labels),Mo(n,t.datasets,e),n}function Bo(t,e){let{height:n=150,width:i=300,redraw:r=!1,datasetIdKey:a,type:o,data:s,options:l,plugins:c=[],fallbackContent:u,updateMode:h,...d}=t;const f=(0,v.useRef)(null),p=(0,v.useRef)(),g=()=>{f.current&&(p.current=new Ur(f.current,{type:o,data:Po(s,a),options:l&&{...l},plugins:c}),Eo(e,p.current))},m=()=>{Eo(e,null),p.current&&(p.current.destroy(),p.current=null)};return(0,v.useEffect)((()=>{var t,e;!r&&p.current&&l&&(t=p.current,e=l,Object.assign(t.options,e))}),[r,l]),(0,v.useEffect)((()=>{!r&&p.current&&So(p.current.config.data,s.labels)}),[r,s.labels]),(0,v.useEffect)((()=>{!r&&p.current&&s.datasets&&Mo(p.current.config.data,s.datasets,a)}),[r,s.datasets]),(0,v.useEffect)((()=>{p.current&&(r?(m(),setTimeout(g)):p.current.update(h))}),[r,l,s.labels,s.datasets,h]),(0,v.useEffect)((()=>{p.current&&(m(),setTimeout(g))}),[o]),(0,v.useEffect)((()=>(g(),()=>m())),[]),v.createElement("canvas",Object.assign({ref:f,role:"img",height:n,width:i},d),u)}const To=(0,v.forwardRef)(Bo);function Do(t,e){return Ur.register(e),(0,v.forwardRef)(((e,n)=>v.createElement(To,Object.assign({},e,{ref:n,type:t}))))}const Oo=Do("bar",mi),Lo=Do("doughnut",yi),zo=Do("pie",_i),Ro=t=>{let{chartType:e,chartData:n}=t,i={maintainAspectRatio:!1,legend:{position:"bottom",labels:{boxWidth:20}},title:{display:!0,text:"Hourwise channel watching distribution graph"}},r=(()=>{switch(e){case"pie":return(0,m.jsx)(zo,{data:n,options:i});case"doughnut":return(0,m.jsx)(Lo,{data:n,options:i});case"bar":return i.legend={display:!1},(0,m.jsx)(Oo,{data:n,options:i})}})();return(0,m.jsx)("div",{className:"chart-div",children:r})},No=({data:t,labels:e,id:n})=>{const i={backgroundColor:["rgba(255, 99, 132, 0.8)","rgba(54, 162, 235, 0.8)","rgba(255, 206, 86, 0.8)","rgba(75, 192, 192, 0.8)","rgba(153, 102, 255, 0.8)","rgba(255, 159, 64, 0.8)"],borderColor:["rgba(255,99,132,1)","rgba(54, 162, 235, 1)","rgba(255, 206, 86, 1)","rgba(75, 192, 192, 1)","rgba(153, 102, 255, 1)","rgba(255, 159, 64, 1)"],labels:["Star Jalsha","Star Sports","National Geographic","Others"],data:[6,2,5,11],borderWidth:1,datasetLabel:"Hourwise Channel watching distribution",title:"Hourwise channel watching distribution graph"},[r,a]=(0,v.useState)({chartType:"doughnut",activeChart:"doughnut",chartData:{labels:e,datasets:[{label:i.datasetLabel,data:t,backgroundColor:i.backgroundColor,borderColor:i.borderColor,borderWidth:i.borderWidth}]}});(0,v.useEffect)((()=>{o()}),[n]);const o=()=>{let n=[...r.chartData.datasets];n[0].data=t,a({...r,chartData:{labels:e,datasets:n}})},{chartData:s,chartType:l,activeChart:c}=r;return(0,m.jsxs)("article",{className:"charts-panel basic-padding",children:[(0,m.jsx)(O,{chartTypes:["pie","doughnut","bar"],changeChartType:t=>{const{id:e}=t.target;a({...r,chartType:e,activeChart:e})},activeChart:c}),(0,m.jsx)(Ro,{chartData:s,chartType:l})]})},Io=t=>{const{name:e,viewers:n,id:i,handleChange:r}=t;return(0,m.jsxs)("div",{className:"change-count basic-padding",children:[(0,m.jsx)("label",{children:e}),(0,m.jsx)("input",{type:"range",min:"0",max:"24",defaultValue:n,onChange:r,step:"1",title:n,id:i})]})},Fo=t=>{const[e,n]=(0,v.useState)({channelInfo:[{name:"Star Jalsha",viewers:"6",id:D()},{name:"Star Sports",viewers:"2",id:D()},{name:"National Geograpic",viewers:"5",id:D()},{name:"Others",viewers:"11",id:D()}]}),i=i=>{const{id:r,value:a}=i.target,o=[...e.channelInfo];o.forEach(((t,e,n)=>{t.id==r&&(n[e].viewers=a)})),t.updateViewersCount(o),n({...e,channelInfo:o})};return(0,m.jsxs)("article",{className:"viewers-panel basic-padding",children:[(0,m.jsx)("div",{className:"viewers-panel-title",children:"Hourwise channel watching details"}),(0,m.jsx)("div",{className:"view-distribution",children:e.channelInfo.map((t=>(0,m.jsx)(Io,{...t,handleChange:i},t.id)))})]})};var jo=n(211),Wo={};Wo.styleTagTransform=f(),Wo.setAttributes=c(),Wo.insert=s().bind(null,"head"),Wo.domAPI=a(),Wo.insertStyleElement=h(),i()(jo.Z,Wo),jo.Z&&jo.Z.locals&&jo.Z.locals;const Vo=()=>{const t={backgroundColor:["rgba(255, 99, 132, 0.8)","rgba(54, 162, 235, 0.8)","rgba(255, 206, 86, 0.8)","rgba(75, 192, 192, 0.8)","rgba(153, 102, 255, 0.8)","rgba(255, 159, 64, 0.8)"],borderColor:["rgba(255,99,132,1)","rgba(54, 162, 235, 1)","rgba(255, 206, 86, 1)","rgba(75, 192, 192, 1)","rgba(153, 102, 255, 1)","rgba(255, 159, 64, 1)"],labels:["Star Jalsha","Star Sports","National Geographic","Others"],data:[6,2,5,11],borderWidth:1,datasetLabel:"Hourwise Channel watching distribution",title:"Hourwise channel watching distribution graph"},[e,n]=(0,v.useState)({labels:t.labels,data:t.data,id:D()}),{data:i,labels:r,id:a}=e;return(0,m.jsxs)("section",{className:"chart-container",children:[(0,m.jsx)(Fo,{updateViewersCount:t=>{const i=[],r=[];t.forEach((t=>{i.push(t.name),r.push(parseInt(t.viewers))})),n({...e,labels:i,data:r,id:D()})}}),(0,m.jsx)(No,{data:i,labels:r,id:a})]})};var Ho=n(841),Uo={};function $o(){return(0,m.jsx)("div",{className:"timeline-container",children:(0,m.jsxs)("section",{className:"section",children:[(0,m.jsx)("div",{className:"viewers-panel-title timeline-title",children:"TV Watching Guide"}),[{timeframe:"8:30AM",programList:[{programName:"Science of Stupid",channelName:"Nat Geo"},{programName:"Godhuli Aalaap",channelName:"Star Jalsha"},{programName:"Man vs Wild",channelName:"Discovery"}]},{timeframe:"12:30PM",programList:[{programName:"S.O.S Cars",channelName:"Nat Geo"},{programName:"Dhulokona",channelName:"Star Jalsha"},{programName:"India vs Newzealand",channelName:"Star Sports"}]},{timeframe:"4:30PM",programList:[{programName:"Man vs Wild",channelName:"Discovery"},{programName:"Wicked Tuna",channelName:"Nat Geo"}]},{timeframe:"8:30PM",programList:[{programName:"To Catch a Smuggler",channelName:"Nat Geo"},{programName:"Gaatchora",channelName:"Star Jalsha"}]}].map((t=>(0,m.jsxs)("div",{className:"timeline-div",children:[(0,m.jsx)("div",{className:"timeframe",children:t.timeframe}),(0,m.jsx)("div",{className:"actions",children:(0,m.jsx)("ul",{children:t.programList.map((t=>(0,m.jsxs)("li",{children:[t.programName,(0,m.jsxs)("span",{className:"channel-metadata",children:["(",t.channelName,")"]})]})))})})]})))]})})}Uo.styleTagTransform=f(),Uo.setAttributes=c(),Uo.insert=s().bind(null,"head"),Uo.domAPI=a(),Uo.insertStyleElement=h(),i()(Ho.Z,Uo),Ho.Z&&Ho.Z.locals&&Ho.Z.locals;const Yo=()=>(0,m.jsxs)("main",{className:"container",children:[(0,m.jsx)(y,{}),(0,m.jsx)(k,{}),(0,m.jsx)(Vo,{}),(0,m.jsx)($o,{})]});(0,t.s)(document.getElementById("app")).render((0,m.jsx)(Yo,{})),window.addEventListener("load",(async t=>{if(navigator.serviceWorker)try{await navigator.serviceWorker.register("serviceWorker.js")}catch(t){console.log("SW registration failed")}}))})()})();
//# sourceMappingURL=main.js.map