diff --git "a/assets/index-DO5RO1Vm.js" "b/assets/index-DO5RO1Vm.js" new file mode 100644--- /dev/null +++ "b/assets/index-DO5RO1Vm.js" @@ -0,0 +1,851 @@ +(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function e(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(r){if(r.ep)return;r.ep=!0;const i=e(r);fetch(r.href,i)}})();(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function e(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(r){if(r.ep)return;r.ep=!0;const i=e(r);fetch(r.href,i)}})();var w1=Object.defineProperty,k1=(t,e,n)=>e in t?w1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,R=(t,e,n)=>k1(t,typeof e!="symbol"?e+"":e,n);function _1(t,e){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function e(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(r){if(r.ep)return;r.ep=!0;const i=e(r);fetch(r.href,i)}})();function eg(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ng={exports:{}},tl={},rg={exports:{}},W={};/** +* @license React +* react.production.min.js +* +* Copyright (c) Facebook, Inc. and its affiliates. +* +* This source code is licensed under the MIT license found in the +* LICENSE file in the root directory of this source tree. +*/var Ha=Symbol.for("react.element"),S1=Symbol.for("react.portal"),C1=Symbol.for("react.fragment"),E1=Symbol.for("react.strict_mode"),N1=Symbol.for("react.profiler"),P1=Symbol.for("react.provider"),M1=Symbol.for("react.context"),j1=Symbol.for("react.forward_ref"),O1=Symbol.for("react.suspense"),T1=Symbol.for("react.memo"),R1=Symbol.for("react.lazy"),Rh=Symbol.iterator;function A1(t){return t===null||typeof t!="object"?null:(t=Rh&&t[Rh]||t["@@iterator"],typeof t=="function"?t:null)}var ig={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ag=Object.assign,og={};function fi(t,e,n){this.props=t,this.context=e,this.refs=og,this.updater=n||ig}fi.prototype.isReactComponent={};fi.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)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")};fi.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function sg(){}sg.prototype=fi.prototype;function Ju(t,e,n){this.props=t,this.context=e,this.refs=og,this.updater=n||ig}var Zu=Ju.prototype=new sg;Zu.constructor=Ju;ag(Zu,fi.prototype);Zu.isPureReactComponent=!0;var Ah=Array.isArray,lg=Object.prototype.hasOwnProperty,td={current:null},cg={key:!0,ref:!0,__self:!0,__source:!0};function ug(t,e,n){var r,i={},a=null,o=null;if(e!=null)for(r in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(a=""+e.key),e)lg.call(e,r)&&!cg.hasOwnProperty(r)&&(i[r]=e[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1>>1,et=j[G];if(0>>1;Gi(He,I))Zti(no,He)?(j[G]=no,j[Zt]=I,G=Zt):(j[G]=He,j[Bt]=I,G=Bt);else if(Zti(no,I))j[G]=no,j[Zt]=I,G=Zt;else break t}}return D}function i(j,D){var I=j.sortIndex-D.sortIndex;return I!==0?I:j.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();t.unstable_now=function(){return o.now()-s}}var l=[],c=[],u=1,d=null,h=3,f=!1,m=!1,x=!1,v=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(j){for(var D=n(c);D!==null;){if(D.callback===null)r(c);else if(D.startTime<=j)r(c),D.sortIndex=D.expirationTime,e(l,D);else break;D=n(c)}}function w(j){if(x=!1,b(j),!m)if(n(l)!==null)m=!0,Q(k);else{var D=n(c);D!==null&&Pt(w,D.startTime-j)}}function k(j,D){m=!1,x&&(x=!1,g(E),E=-1),f=!0;var I=h;try{for(b(D),d=n(l);d!==null&&(!(d.expirationTime>D)||j&&!z());){var G=d.callback;if(typeof G=="function"){d.callback=null,h=d.priorityLevel;var et=G(d.expirationTime<=D);D=t.unstable_now(),typeof et=="function"?d.callback=et:d===n(l)&&r(l),b(D)}else r(l);d=n(l)}if(d!==null)var Oe=!0;else{var Bt=n(c);Bt!==null&&Pt(w,Bt.startTime-D),Oe=!1}return Oe}finally{d=null,h=I,f=!1}}var _=!1,C=null,E=-1,A=5,M=-1;function z(){return!(t.unstable_now()-Mj||125G?(j.sortIndex=I,e(c,j),n(l)===null&&j===n(c)&&(x?(g(E),E=-1):x=!0,Pt(w,I-G))):(j.sortIndex=et,e(l,j),m||f||(m=!0,Q(k))),j},t.unstable_shouldYield=z,t.unstable_wrapCallback=function(j){var D=h;return function(){var I=h;h=D;try{return j.apply(this,arguments)}finally{h=I}}}})(mg);pg.exports=mg;var Y1=pg.exports;/** +* @license React +* react-dom.production.min.js +* +* Copyright (c) Facebook, Inc. and its affiliates. +* +* This source code is licensed under the MIT license found in the +* LICENSE file in the root directory of this source tree. +*/var q1=N,ae=Y1;function P(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Nc=Object.prototype.hasOwnProperty,K1=/^[: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]*$/,Dh={},zh={};function X1(t){return Nc.call(zh,t)?!0:Nc.call(Dh,t)?!1:K1.test(t)?zh[t]=!0:(Dh[t]=!0,!1)}function Q1(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function G1(t,e,n,r){if(e===null||typeof e>"u"||Q1(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Wt(t,e,n,r,i,a,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=a,this.removeEmptyString=o}var Ot={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Ot[t]=new Wt(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Ot[e]=new Wt(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Ot[t]=new Wt(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Ot[t]=new Wt(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){Ot[t]=new Wt(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Ot[t]=new Wt(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Ot[t]=new Wt(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Ot[t]=new Wt(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Ot[t]=new Wt(t,5,!1,t.toLowerCase(),null,!1,!1)});var nd=/[\-:]([a-z])/g;function rd(t){return t[1].toUpperCase()}"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(nd,rd);Ot[e]=new Wt(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(nd,rd);Ot[e]=new Wt(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(nd,rd);Ot[e]=new Wt(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Ot[t]=new Wt(t,1,!1,t.toLowerCase(),null,!1,!1)});Ot.xlinkHref=new Wt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Ot[t]=new Wt(t,1,!1,t.toLowerCase(),null,!0,!0)});function id(t,e,n,r){var i=Ot.hasOwnProperty(e)?Ot[e]:null;(i!==null?i.type!==0:r||!(2s||i[o]!==a[s]){var l=` +`+i[o].replace(" at new "," at ");return t.displayName&&l.includes("")&&(l=l.replace("",t.displayName)),l}while(1<=o&&0<=s);break}}}finally{Al=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?zi(t):""}function J1(t){switch(t.tag){case 5:return zi(t.type);case 16:return zi("Lazy");case 13:return zi("Suspense");case 19:return zi("SuspenseList");case 0:case 2:case 15:return t=Ll(t.type,!1),t;case 11:return t=Ll(t.type.render,!1),t;case 1:return t=Ll(t.type,!0),t;default:return""}}function Oc(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Lr:return"Fragment";case Ar:return"Portal";case Pc:return"Profiler";case ad:return"StrictMode";case Mc:return"Suspense";case jc:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case yg:return(t.displayName||"Context")+".Consumer";case bg:return(t._context.displayName||"Context")+".Provider";case od:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case sd:return e=t.displayName||null,e!==null?e:Oc(t.type)||"Memo";case mn:e=t._payload,t=t._init;try{return Oc(t(e))}catch{}}return null}function Z1(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=e.render,t=t.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 Oc(e);case 8:return e===ad?"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(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Dn(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function vg(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function tx(t){var e=vg(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function ao(t){t._valueTracker||(t._valueTracker=tx(t))}function wg(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=vg(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function fs(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Tc(t,e){var n=e.checked;return ht({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function Fh(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=Dn(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function kg(t,e){e=e.checked,e!=null&&id(t,"checked",e,!1)}function Rc(t,e){kg(t,e);var n=Dn(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Ac(t,e.type,n):e.hasOwnProperty("defaultValue")&&Ac(t,e.type,Dn(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Bh(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function Ac(t,e,n){(e!=="number"||fs(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var Ii=Array.isArray;function Xr(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i"+e.valueOf().toString()+"",e=oo.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function da(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Ki={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},ex=["Webkit","ms","Moz","O"];Object.keys(Ki).forEach(function(t){ex.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Ki[e]=Ki[t]})});function Eg(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Ki.hasOwnProperty(t)&&Ki[t]?(""+e).trim():e+"px"}function Ng(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Eg(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}var nx=ht({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 zc(t,e){if(e){if(nx[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(P(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(P(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(P(61))}if(e.style!=null&&typeof e.style!="object")throw Error(P(62))}}function Ic(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";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 Fc=null;function ld(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Bc=null,Qr=null,Gr=null;function Hh(t){if(t=Ya(t)){if(typeof Bc!="function")throw Error(P(280));var e=t.stateNode;e&&(e=al(e),Bc(t.stateNode,t.type,e))}}function Pg(t){Qr?Gr?Gr.push(t):Gr=[t]:Qr=t}function Mg(){if(Qr){var t=Qr,e=Gr;if(Gr=Qr=null,Hh(t),e)for(t=0;t>>=0,t===0?32:31-(fx(t)/px|0)|0}var so=64,lo=4194304;function Fi(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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function bs(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,i=t.suspendedLanes,a=t.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=Fi(s):(a&=o,a!==0&&(r=Fi(a)))}else o=n&~i,o!==0?r=Fi(o):a!==0&&(r=Fi(a));if(r===0)return 0;if(e!==0&&e!==r&&!(e&i)&&(i=r&-r,a=e&-e,i>=a||i===16&&(a&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0n;n++)e.push(t);return e}function Wa(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Ce(e),t[e]=n}function yx(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 r=t.eventTimes;for(t=t.expirationTimes;0=Qi),Jh=" ",Zh=!1;function Xg(t,e){switch(t){case"keyup":return Yx.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qg(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Dr=!1;function Kx(t,e){switch(t){case"compositionend":return Qg(e);case"keypress":return e.which!==32?null:(Zh=!0,Jh);case"textInput":return t=e.data,t===Jh&&Zh?null:t;default:return null}}function Xx(t,e){if(Dr)return t==="compositionend"||!gd&&Xg(t,e)?(t=qg(),Ko=fd=xn=null,Dr=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=r}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=rf(n)}}function t0(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?t0(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function e0(){for(var t=window,e=fs();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=fs(t.document)}return e}function bd(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function iv(t){var e=e0(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&t0(n.ownerDocument.documentElement,n)){if(r!==null&&bd(n)){if(e=r.start,t=r.end,t===void 0&&(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,t.getSelection){t=t.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!t.extend&&a>r&&(i=r,r=a,a=i),i=af(n,a);var o=af(n,r);i&&o&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),a>r?(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;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,zr=null,Yc=null,Ji=null,qc=!1;function of(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;qc||zr==null||zr!==fs(r)||(r=zr,"selectionStart"in r&&bd(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ji&&ba(Ji,r)||(Ji=r,r=vs(Yc,"onSelect"),0Br||(t.current=Zc[Br],Zc[Br]=null,Br--)}function Z(t,e){Br++,Zc[Br]=t.current,t.current=e}var zn={},It=Wn(zn),Xt=Wn(!1),gr=zn;function ii(t,e){var n=t.type.contextTypes;if(!n)return zn;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=e[a];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function Qt(t){return t=t.childContextTypes,t!=null}function ks(){it(Xt),it(It)}function ff(t,e,n){if(It.current!==zn)throw Error(P(168));Z(It,e),Z(Xt,n)}function u0(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(P(108,Z1(t)||"Unknown",i));return ht({},n,r)}function _s(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||zn,gr=It.current,Z(It,t),Z(Xt,Xt.current),!0}function pf(t,e,n){var r=t.stateNode;if(!r)throw Error(P(169));n?(t=u0(t,e,gr),r.__reactInternalMemoizedMergedChildContext=t,it(Xt),it(It),Z(It,t)):it(Xt),Z(Xt,n)}var Xe=null,ol=!1,Xl=!1;function d0(t){Xe===null?Xe=[t]:Xe.push(t)}function gv(t){ol=!0,d0(t)}function $n(){if(!Xl&&Xe!==null){Xl=!0;var t=0,e=X;try{var n=Xe;for(X=1;t>=o,i-=o,Ge=1<<32-Ce(e)+i|n<E?(A=C,C=null):A=C.sibling;var M=h(g,C,b[E],w);if(M===null){C===null&&(C=A);break}t&&C&&M.alternate===null&&e(g,C),y=a(M,y,E),_===null?k=M:_.sibling=M,_=M,C=A}if(E===b.length)return n(g,C),ot&&Zn(g,E),k;if(C===null){for(;EE?(A=C,C=null):A=C.sibling;var z=h(g,C,M.value,w);if(z===null){C===null&&(C=A);break}t&&C&&z.alternate===null&&e(g,C),y=a(z,y,E),_===null?k=z:_.sibling=z,_=z,C=A}if(M.done)return n(g,C),ot&&Zn(g,E),k;if(C===null){for(;!M.done;E++,M=b.next())M=d(g,M.value,w),M!==null&&(y=a(M,y,E),_===null?k=M:_.sibling=M,_=M);return ot&&Zn(g,E),k}for(C=r(g,C);!M.done;E++,M=b.next())M=f(C,g,E,M.value,w),M!==null&&(t&&M.alternate!==null&&C.delete(M.key===null?E:M.key),y=a(M,y,E),_===null?k=M:_.sibling=M,_=M);return t&&C.forEach(function(V){return e(g,V)}),ot&&Zn(g,E),k}function v(g,y,b,w){if(typeof b=="object"&&b!==null&&b.type===Lr&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case io:t:{for(var k=b.key,_=y;_!==null;){if(_.key===k){if(k=b.type,k===Lr){if(_.tag===7){n(g,_.sibling),y=i(_,b.props.children),y.return=g,g=y;break t}}else if(_.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===mn&&bf(k)===_.type){n(g,_.sibling),y=i(_,b.props),y.ref=Pi(g,_,b),y.return=g,g=y;break t}n(g,_);break}else e(g,_);_=_.sibling}b.type===Lr?(y=dr(b.props.children,g.mode,w,b.key),y.return=g,g=y):(w=ns(b.type,b.key,b.props,null,g.mode,w),w.ref=Pi(g,y,b),w.return=g,g=w)}return o(g);case Ar:t:{for(_=b.key;y!==null;){if(y.key===_)if(y.tag===4&&y.stateNode.containerInfo===b.containerInfo&&y.stateNode.implementation===b.implementation){n(g,y.sibling),y=i(y,b.children||[]),y.return=g,g=y;break t}else{n(g,y);break}else e(g,y);y=y.sibling}y=rc(b,g.mode,w),y.return=g,g=y}return o(g);case mn:return _=b._init,v(g,y,_(b._payload),w)}if(Ii(b))return m(g,y,b,w);if(_i(b))return x(g,y,b,w);go(g,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,y!==null&&y.tag===6?(n(g,y.sibling),y=i(y,b),y.return=g,g=y):(n(g,y),y=nc(b,g.mode,w),y.return=g,g=y),o(g)):n(g,y)}return v}var oi=m0(!0),g0=m0(!1),Es=Wn(null),Ns=null,Hr=null,wd=null;function kd(){wd=Hr=Ns=null}function _d(t){var e=Es.current;it(Es),t._currentValue=e}function nu(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function Zr(t,e){Ns=t,wd=Hr=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(Kt=!0),t.firstContext=null)}function ge(t){var e=t._currentValue;if(wd!==t)if(t={context:t,memoizedValue:e,next:null},Hr===null){if(Ns===null)throw Error(P(308));Hr=t,Ns.dependencies={lanes:0,firstContext:t}}else Hr=Hr.next=t;return e}var ar=null;function Sd(t){ar===null?ar=[t]:ar.push(t)}function b0(t,e,n,r){var i=e.interleaved;return i===null?(n.next=n,Sd(e)):(n.next=i.next,i.next=n),e.interleaved=n,rn(t,r)}function rn(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var gn=!1;function Cd(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function y0(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 tn(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function jn(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,$&2){var i=r.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),r.pending=e,rn(t,n)}return i=r.interleaved,i===null?(e.next=e,Sd(r)):(e.next=i.next,i.next=e),r.interleaved=e,rn(t,n)}function Qo(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,ud(t,n)}}function yf(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=e:a=a.next=e}else i=a=e;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function Ps(t,e,n,r){var i=t.updateQueue;gn=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,o===null?a=c:o.next=c,o=l;var u=t.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(a!==null){var d=i.baseState;o=0,u=c=l=null,s=a;do{var h=s.lane,f=s.eventTime;if((r&h)===h){u!==null&&(u=u.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});t:{var m=t,x=s;switch(h=e,f=n,x.tag){case 1:if(m=x.payload,typeof m=="function"){d=m.call(f,d,h);break t}d=m;break t;case 3:m.flags=m.flags&-65537|128;case 0:if(m=x.payload,h=typeof m=="function"?m.call(f,d,h):m,h==null)break t;d=ht({},d,h);break t;case 2:gn=!0}}s.callback!==null&&s.lane!==0&&(t.flags|=64,h=i.effects,h===null?i.effects=[s]:h.push(s))}else f={eventTime:f,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=f,l=d):u=u.next=f,o|=h;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;h=s,s=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(u===null&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,e=i.shared.interleaved,e!==null){i=e;do o|=i.lane,i=i.next;while(i!==e)}else a===null&&(i.shared.lanes=0);xr|=o,t.lanes=o,t.memoizedState=d}}function xf(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;en?n:4,t(!0);var r=Gl.transition;Gl.transition={};try{t(!1),e()}finally{X=n,Gl.transition=r}}function L0(){return be().memoizedState}function vv(t,e,n){var r=Tn(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},D0(t))z0(e,n);else if(n=b0(t,e,n,r),n!==null){var i=Vt();Ee(n,t,r,i),I0(n,e,r)}}function wv(t,e,n){var r=Tn(t),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(D0(t))z0(e,i);else{var a=t.alternate;if(t.lanes===0&&(a===null||a.lanes===0)&&(a=e.lastRenderedReducer,a!==null))try{var o=e.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Pe(s,o)){var l=e.interleaved;l===null?(i.next=i,Sd(e)):(i.next=l.next,l.next=i),e.interleaved=i;return}}catch{}finally{}n=b0(t,e,i,r),n!==null&&(i=Vt(),Ee(n,t,r,i),I0(n,e,r))}}function D0(t){var e=t.alternate;return t===dt||e!==null&&e===dt}function z0(t,e){Zi=js=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function I0(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,ud(t,n)}}var Os={readContext:ge,useCallback:Rt,useContext:Rt,useEffect:Rt,useImperativeHandle:Rt,useInsertionEffect:Rt,useLayoutEffect:Rt,useMemo:Rt,useReducer:Rt,useRef:Rt,useState:Rt,useDebugValue:Rt,useDeferredValue:Rt,useTransition:Rt,useMutableSource:Rt,useSyncExternalStore:Rt,useId:Rt,unstable_isNewReconciler:!1},kv={readContext:ge,useCallback:function(t,e){return Ae().memoizedState=[t,e===void 0?null:e],t},useContext:ge,useEffect:wf,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,Jo(4194308,4,j0.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Jo(4194308,4,t,e)},useInsertionEffect:function(t,e){return Jo(4,2,t,e)},useMemo:function(t,e){var n=Ae();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=Ae();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=vv.bind(null,dt,t),[r.memoizedState,t]},useRef:function(t){var e=Ae();return t={current:t},e.memoizedState=t},useState:vf,useDebugValue:Rd,useDeferredValue:function(t){return Ae().memoizedState=t},useTransition:function(){var t=vf(!1),e=t[0];return t=xv.bind(null,t[1]),Ae().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=dt,i=Ae();if(ot){if(n===void 0)throw Error(P(407));n=n()}else{if(n=e(),Nt===null)throw Error(P(349));yr&30||k0(r,e,n)}i.memoizedState=n;var a={value:n,getSnapshot:e};return i.queue=a,wf(S0.bind(null,r,a,t),[t]),r.flags|=2048,Ca(9,_0.bind(null,r,a,n,e),void 0,null),n},useId:function(){var t=Ae(),e=Nt.identifierPrefix;if(ot){var n=Je,r=Ge;n=(r&~(1<<32-Ce(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=_a++,0<\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=o.createElement(n,{is:r.is}):(t=o.createElement(n),n==="select"&&(o=t,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):t=o.createElementNS(t,n),t[ze]=e,t[va]=r,K0(t,e,!1,!1),e.stateNode=t;t:{switch(o=Ic(n,r),n){case"dialog":nt("cancel",t),nt("close",t),i=r;break;case"iframe":case"object":case"embed":nt("load",t),i=r;break;case"video":case"audio":for(i=0;ici&&(e.flags|=128,r=!0,Mi(a,!1),e.lanes=4194304)}else{if(!r)if(t=Ms(o),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),Mi(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!ot)return At(e),null}else 2*gt()-a.renderingStartTime>ci&&n!==1073741824&&(e.flags|=128,r=!0,Mi(a,!1),e.lanes=4194304);a.isBackwards?(o.sibling=e.child,e.child=o):(n=a.last,n!==null?n.sibling=o:e.child=o,a.last=o)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=gt(),e.sibling=null,n=ct.current,Z(ct,r?n&1|2:n&1),e):(At(e),null);case 22:case 23:return Fd(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?ne&1073741824&&(At(e),e.subtreeFlags&6&&(e.flags|=8192)):At(e),null;case 24:return null;case 25:return null}throw Error(P(156,e.tag))}function jv(t,e){switch(xd(e),e.tag){case 1:return Qt(e.type)&&ks(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return si(),it(Xt),it(It),Pd(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return Nd(e),null;case 13:if(it(ct),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(P(340));ai()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return it(ct),null;case 4:return si(),null;case 10:return _d(e.type._context),null;case 22:case 23:return Fd(),null;case 24:return null;default:return null}}var yo=!1,Dt=!1,Ov=typeof WeakSet=="function"?WeakSet:Set,T=null;function Wr(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ft(t,e,r)}else n.current=null}function G0(t,e,n){try{n()}catch(r){ft(t,e,r)}}var Tf=!1;function Tv(t,e){if(Kc=ys,t=e0(),bd(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break t}var o=0,s=-1,l=-1,c=0,u=0,d=t,h=null;e:for(;;){for(var f;d!==n||i!==0&&d.nodeType!==3||(s=o+i),d!==a||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(f=d.firstChild)!==null;)h=d,d=f;for(;;){if(d===t)break e;if(h===n&&++c===i&&(s=o),h===a&&++u===r&&(l=o),(f=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=f}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Xc={focusedElem:t,selectionRange:n},ys=!1,T=e;T!==null;)if(e=T,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,T=t;else for(;T!==null;){e=T;try{var m=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var x=m.memoizedProps,v=m.memoizedState,g=e.stateNode,y=g.getSnapshotBeforeUpdate(e.elementType===e.type?x:xe(e.type,x),v);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=e.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(P(163))}}catch(w){ft(e,e.return,w)}if(t=e.sibling,t!==null){t.return=e.return,T=t;break}T=e.return}return m=Tf,Tf=!1,m}function ta(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&t)===t){var a=i.destroy;i.destroy=void 0,a!==void 0&&G0(e,n,a)}i=i.next}while(i!==r)}}function cl(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function du(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function J0(t){var e=t.alternate;e!==null&&(t.alternate=null,J0(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[ze],delete e[va],delete e[Jc],delete e[pv],delete e[mv])),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 Z0(t){return t.tag===5||t.tag===3||t.tag===4}function Rf(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Z0(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function hu(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=ws));else if(r!==4&&(t=t.child,t!==null))for(hu(t,e,n),t=t.sibling;t!==null;)hu(t,e,n),t=t.sibling}function fu(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(fu(t,e,n),t=t.sibling;t!==null;)fu(t,e,n),t=t.sibling}var Mt=null,ve=!1;function dn(t,e,n){for(n=n.child;n!==null;)tb(t,e,n),n=n.sibling}function tb(t,e,n){if(Be&&typeof Be.onCommitFiberUnmount=="function")try{Be.onCommitFiberUnmount(el,n)}catch{}switch(n.tag){case 5:Dt||Wr(n,e);case 6:var r=Mt,i=ve;Mt=null,dn(t,e,n),Mt=r,ve=i,Mt!==null&&(ve?(t=Mt,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):Mt.removeChild(n.stateNode));break;case 18:Mt!==null&&(ve?(t=Mt,n=n.stateNode,t.nodeType===8?Kl(t.parentNode,n):t.nodeType===1&&Kl(t,n),ma(t)):Kl(Mt,n.stateNode));break;case 4:r=Mt,i=ve,Mt=n.stateNode.containerInfo,ve=!0,dn(t,e,n),Mt=r,ve=i;break;case 0:case 11:case 14:case 15:if(!Dt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&G0(n,e,o),i=i.next}while(i!==r)}dn(t,e,n);break;case 1:if(!Dt&&(Wr(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ft(n,e,s)}dn(t,e,n);break;case 21:dn(t,e,n);break;case 22:n.mode&1?(Dt=(r=Dt)||n.memoizedState!==null,dn(t,e,n),Dt=r):dn(t,e,n);break;default:dn(t,e,n)}}function Af(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new Ov),e.forEach(function(r){var i=Uv.bind(null,t,r);n.has(r)||(n.add(r),r.then(i,i))})}}function ye(t,e){var n=e.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~a}if(r=i,r=gt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Av(r/1960))-r,10t?16:t,vn===null)var r=!1;else{if(t=vn,vn=null,As=0,$&6)throw Error(P(331));var i=$;for($|=4,T=t.current;T!==null;){var a=T,o=a.child;if(T.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lgt()-zd?ur(t,0):Dd|=n),Gt(t,e)}function lb(t,e){e===0&&(t.mode&1?(e=lo,lo<<=1,!(lo&130023424)&&(lo=4194304)):e=1);var n=Vt();t=rn(t,e),t!==null&&(Wa(t,e,n),Gt(t,n))}function Bv(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),lb(t,n)}function Uv(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(P(314))}r!==null&&r.delete(e),lb(t,n)}var cb;cb=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||Xt.current)Kt=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return Kt=!1,Pv(t,e,n);Kt=!!(t.flags&131072)}else Kt=!1,ot&&e.flags&1048576&&h0(e,Cs,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;Zo(t,e),t=e.pendingProps;var i=ii(e,It.current);Zr(e,n),i=jd(null,e,r,t,i,n);var a=Od();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Qt(r)?(a=!0,_s(e)):a=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Cd(e),i.updater=ll,e.stateNode=i,i._reactInternals=e,iu(e,r,t,n),e=su(null,e,r,!0,a,n)):(e.tag=0,ot&&a&&yd(e),Ut(null,e,i,n),e=e.child),e;case 16:r=e.elementType;t:{switch(Zo(t,e),t=e.pendingProps,i=r._init,r=i(r._payload),e.type=r,i=e.tag=Hv(r),t=xe(r,t),i){case 0:e=ou(null,e,r,t,n);break t;case 1:e=Mf(null,e,r,t,n);break t;case 11:e=Nf(null,e,r,t,n);break t;case 14:e=Pf(null,e,r,xe(r.type,t),n);break t}throw Error(P(306,r,""))}return e;case 0:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:xe(r,i),ou(t,e,r,i,n);case 1:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:xe(r,i),Mf(t,e,r,i,n);case 3:t:{if($0(e),t===null)throw Error(P(387));r=e.pendingProps,a=e.memoizedState,i=a.element,y0(t,e),Ps(e,r,null,n);var o=e.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=a,e.memoizedState=a,e.flags&256){i=li(Error(P(423)),e),e=jf(t,e,r,n,i);break t}else if(r!==i){i=li(Error(P(424)),e),e=jf(t,e,r,n,i);break t}else for(re=Mn(e.stateNode.containerInfo.firstChild),ie=e,ot=!0,_e=null,n=g0(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ai(),r===i){e=an(t,e,n);break t}Ut(t,e,r,n)}e=e.child}return e;case 5:return x0(e),t===null&&eu(e),r=e.type,i=e.pendingProps,a=t!==null?t.memoizedProps:null,o=i.children,Qc(r,i)?o=null:a!==null&&Qc(r,a)&&(e.flags|=32),W0(t,e),Ut(t,e,o,n),e.child;case 6:return t===null&&eu(e),null;case 13:return Y0(t,e,n);case 4:return Ed(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=oi(e,null,r,n):Ut(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:xe(r,i),Nf(t,e,r,i,n);case 7:return Ut(t,e,e.pendingProps,n),e.child;case 8:return Ut(t,e,e.pendingProps.children,n),e.child;case 12:return Ut(t,e,e.pendingProps.children,n),e.child;case 10:t:{if(r=e.type._context,i=e.pendingProps,a=e.memoizedProps,o=i.value,Z(Es,r._currentValue),r._currentValue=o,a!==null)if(Pe(a.value,o)){if(a.children===i.children&&!Xt.current){e=an(t,e,n);break t}}else for(a=e.child,a!==null&&(a.return=e);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=tn(-1,n&-n),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),nu(a.return,n,e),s.lanes|=n;break}l=l.next}}else if(a.tag===10)o=a.type===e.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(P(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),nu(o,n,e),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===e){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}Ut(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=e.pendingProps.children,Zr(e,n),i=ge(i),r=r(i),e.flags|=1,Ut(t,e,r,n),e.child;case 14:return r=e.type,i=xe(r,e.pendingProps),i=xe(r.type,i),Pf(t,e,r,i,n);case 15:return V0(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:xe(r,i),Zo(t,e),e.tag=1,Qt(r)?(t=!0,_s(e)):t=!1,Zr(e,n),F0(e,r,i),iu(e,r,i,n),su(null,e,r,!0,t,n);case 19:return q0(t,e,n);case 22:return H0(t,e,n)}throw Error(P(156,e.tag))};function ub(t,e){return Dg(t,e)}function Vv(t,e,n,r){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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function he(t,e,n,r){return new Vv(t,e,n,r)}function Ud(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Hv(t){if(typeof t=="function")return Ud(t)?1:0;if(t!=null){if(t=t.$$typeof,t===od)return 11;if(t===sd)return 14}return 2}function Rn(t,e){var n=t.alternate;return n===null?(n=he(t.tag,e,t.key,t.mode),n.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=t.flags&14680064,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=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function ns(t,e,n,r,i,a){var o=2;if(r=t,typeof t=="function")Ud(t)&&(o=1);else if(typeof t=="string")o=5;else t:switch(t){case Lr:return dr(n.children,i,a,e);case ad:o=8,i|=8;break;case Pc:return t=he(12,n,e,i|2),t.elementType=Pc,t.lanes=a,t;case Mc:return t=he(13,n,e,i),t.elementType=Mc,t.lanes=a,t;case jc:return t=he(19,n,e,i),t.elementType=jc,t.lanes=a,t;case xg:return dl(n,i,a,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case bg:o=10;break t;case yg:o=9;break t;case od:o=11;break t;case sd:o=14;break t;case mn:o=16,r=null;break t}throw Error(P(130,t==null?t:typeof t,""))}return e=he(o,n,e,i),e.elementType=t,e.type=r,e.lanes=a,e}function dr(t,e,n,r){return t=he(7,t,r,e),t.lanes=n,t}function dl(t,e,n,r){return t=he(22,t,r,e),t.elementType=xg,t.lanes=n,t.stateNode={isHidden:!1},t}function nc(t,e,n){return t=he(6,t,null,e),t.lanes=n,t}function rc(t,e,n){return e=he(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Wv(t,e,n,r,i){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=zl(0),this.expirationTimes=zl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Vd(t,e,n,r,i,a,o,s,l){return t=new Wv(t,e,n,s,l),e===1?(e=1,a===!0&&(e|=8)):e=0,a=he(3,null,null,e),t.current=a,a.stateNode=t,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Cd(a),t}function $v(t,e,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(pb)}catch(t){console.error(t)}}pb(),fg.exports=oe;var Qv=fg.exports,Vf=Qv;Ec.createRoot=Vf.createRoot,Ec.hydrateRoot=Vf.hydrateRoot;/** +* @remix-run/router v1.17.0 +* +* Copyright (c) Remix Software Inc. +* +* This source code is licensed under the MIT license found in the +* LICENSE.md file in the root directory of this source tree. +* +* @license MIT +*/function Na(){return Na=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function mb(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function Jv(){return Math.random().toString(36).substr(2,8)}function Wf(t,e){return{usr:t.state,key:t.key,idx:e}}function yu(t,e,n,r){return n===void 0&&(n=null),Na({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?bi(e):e,{state:n,key:e&&e.key||r||Jv()})}function zs(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function bi(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function Zv(t,e,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=wn.Pop,l=null,c=u();c==null&&(c=0,o.replaceState(Na({},o.state,{idx:c}),""));function u(){return(o.state||{idx:null}).idx}function d(){s=wn.Pop;let v=u(),g=v==null?null:v-c;c=v,l&&l({action:s,location:x.location,delta:g})}function h(v,g){s=wn.Push;let y=yu(x.location,v,g);c=u()+1;let b=Wf(y,c),w=x.createHref(y);try{o.pushState(b,"",w)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;i.location.assign(w)}a&&l&&l({action:s,location:x.location,delta:1})}function f(v,g){s=wn.Replace;let y=yu(x.location,v,g);c=u();let b=Wf(y,c),w=x.createHref(y);o.replaceState(b,"",w),a&&l&&l({action:s,location:x.location,delta:0})}function m(v){let g=i.location.origin!=="null"?i.location.origin:i.location.href,y=typeof v=="string"?v:zs(v);return y=y.replace(/ $/,"%20"),yt(g,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,g)}let x={get action(){return s},get location(){return t(i,o)},listen(v){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Hf,d),l=v,()=>{i.removeEventListener(Hf,d),l=null}},createHref(v){return e(i,v)},createURL:m,encodeLocation(v){let g=m(v);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:h,replace:f,go(v){return o.go(v)}};return x}var $f;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})($f||($f={}));function t2(t,e,n){return n===void 0&&(n="/"),e2(t,e,n,!1)}function e2(t,e,n,r){let i=typeof e=="string"?bi(e):e,a=Yd(i.pathname||"/",n);if(a==null)return null;let o=gb(t);n2(o);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(yt(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=An([r,l.relativePath]),u=n.concat(l);a.children&&a.children.length>0&&(yt(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),gb(a.children,e,u,c)),!(a.path==null&&!a.index)&&e.push({path:c,score:c2(c,a.index),routesMeta:u})};return t.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let l of bb(a.path))i(a,o,l)}),e}function bb(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=bb(r.join("/")),s=[];return s.push(...o.map(l=>l===""?a:[a,l].join("/"))),i&&s.push(...o),s.map(l=>t.startsWith("/")&&l===""?"/":l)}function n2(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:u2(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const r2=/^:[\w-]+$/,i2=3,a2=2,o2=1,s2=10,l2=-2,Yf=t=>t==="*";function c2(t,e){let n=t.split("/"),r=n.length;return n.some(Yf)&&(r+=l2),e&&(r+=a2),n.filter(i=>!Yf(i)).reduce((i,a)=>i+(r2.test(a)?i2:a===""?o2:s2),r)}function u2(t,e){return t.length===e.length&&t.slice(0,-1).every((n,r)=>n===e[r])?t[t.length-1]-e[e.length-1]:0}function d2(t,e,n){let{routesMeta:r}=t,i={},a="/",o=[];for(let s=0;s{let{paramName:d,isOptional:h}=c;if(d==="*"){let m=s[u]||"";o=a.slice(0,a.length-m.length).replace(/(.)\/+$/,"$1")}const f=s[u];return h&&!f?l[d]=void 0:l[d]=(f||"").replace(/%2F/g,"/"),l},{}),pathname:a,pathnameBase:o,pattern:t}}function h2(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),mb(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let r=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,o,s)=>(r.push({paramName:o,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),r]}function f2(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return mb(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function Yd(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function p2(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:i=""}=typeof t=="string"?bi(t):t;return{pathname:n?n.startsWith("/")?n:m2(n,e):e,search:y2(r),hash:x2(i)}}function m2(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function ic(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function g2(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function qd(t,e){let n=g2(t);return e?n.map((r,i)=>i===t.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Kd(t,e,n,r){r===void 0&&(r=!1);let i;typeof t=="string"?i=bi(t):(i=Na({},t),yt(!i.pathname||!i.pathname.includes("?"),ic("?","pathname","search",i)),yt(!i.pathname||!i.pathname.includes("#"),ic("#","pathname","hash",i)),yt(!i.search||!i.search.includes("#"),ic("#","search","hash",i)));let a=t===""||i.pathname==="",o=a?"/":i.pathname,s;if(o==null)s=n;else{let d=e.length-1;if(!r&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),d-=1;i.pathname=h.join("/")}s=d>=0?e[d]:"/"}let l=p2(i,s),c=o&&o!=="/"&&o.endsWith("/"),u=(a||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const An=t=>t.join("/").replace(/\/\/+/g,"/"),b2=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),y2=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,x2=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function v2(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const yb=["post","put","patch","delete"];new Set(yb);const w2=["get",...yb];new Set(w2);/** +* React Router v6.24.0 +* +* Copyright (c) Remix Software Inc. +* +* This source code is licensed under the MIT license found in the +* LICENSE.md file in the root directory of this source tree. +* +* @license MIT +*/function Pa(){return Pa=Object.assign?Object.assign.bind():function(t){for(var e=1;e{s.current=!0}),N.useCallback(function(l,c){if(c===void 0&&(c={}),!s.current)return;if(typeof l=="number"){r.go(l);return}let u=Kd(l,JSON.parse(o),a,c.relative==="path");t==null&&e!=="/"&&(u.pathname=u.pathname==="/"?e:An([e,u.pathname])),(c.replace?r.replace:r.push)(u,c.state,c)},[e,r,o,a,t])}function wb(t,e){let{relative:n}=e===void 0?{}:e,{future:r}=N.useContext(Yn),{matches:i}=N.useContext(qn),{pathname:a}=Ka(),o=JSON.stringify(qd(i,r.v7_relativeSplatPath));return N.useMemo(()=>Kd(t,JSON.parse(o),a,n==="path"),[t,o,a,n])}function C2(t,e){return E2(t,e)}function E2(t,e,n,r){yi()||yt(!1);let{navigator:i}=N.useContext(Yn),{matches:a}=N.useContext(qn),o=a[a.length-1],s=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c=Ka(),u;if(e){var d;let v=typeof e=="string"?bi(e):e;l==="/"||(d=v.pathname)!=null&&d.startsWith(l)||yt(!1),u=v}else u=c;let h=u.pathname||"/",f=h;if(l!=="/"){let v=l.replace(/^\//,"").split("/");f="/"+h.replace(/^\//,"").split("/").slice(v.length).join("/")}let m=t2(t,{pathname:f}),x=O2(m&&m.map(v=>Object.assign({},v,{params:Object.assign({},s,v.params),pathname:An([l,i.encodeLocation?i.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?l:An([l,i.encodeLocation?i.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),a,n,r);return e&&x?N.createElement(gl.Provider,{value:{location:Pa({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:wn.Pop}},x):x}function N2(){let t=L2(),e=v2(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},e),n?N.createElement("pre",{style:r},n):null,null)}const P2=N.createElement(N2,null);class M2 extends N.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?N.createElement(qn.Provider,{value:this.props.routeContext},N.createElement(xb.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function j2(t){let{routeContext:e,match:n,children:r}=t,i=N.useContext(Xd);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),N.createElement(qn.Provider,{value:e},r)}function O2(t,e,n,r){var i;if(e===void 0&&(e=[]),n===void 0&&(n=null),r===void 0&&(r=null),t==null){var a;if((a=n)!=null&&a.errors)t=n.matches;else return null}let o=t,s=(i=n)==null?void 0:i.errors;if(s!=null){let u=o.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);u>=0||yt(!1),o=o.slice(0,Math.min(o.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((u,d,h)=>{let f,m=!1,x=null,v=null;n&&(f=s&&d.route.id?s[d.route.id]:void 0,x=d.route.errorElement||P2,l&&(c<0&&h===0?(m=!0,v=null):c===h&&(m=!0,v=d.route.hydrateFallbackElement||null)));let g=e.concat(o.slice(0,h+1)),y=()=>{let b;return f?b=x:m?b=v:d.route.Component?b=N.createElement(d.route.Component,null):d.route.element?b=d.route.element:b=u,N.createElement(j2,{match:d,routeContext:{outlet:u,matches:g,isDataRoute:n!=null},children:b})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?N.createElement(M2,{location:n.location,revalidation:n.revalidation,component:x,error:f,children:y(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):y()},null)}var kb=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(kb||{}),Is=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Is||{});function T2(t){let e=N.useContext(Xd);return e||yt(!1),e}function R2(t){let e=N.useContext(k2);return e||yt(!1),e}function A2(t){let e=N.useContext(qn);return e||yt(!1),e}function _b(t){let e=A2(),n=e.matches[e.matches.length-1];return n.route.id||yt(!1),n.route.id}function L2(){var t;let e=N.useContext(xb),n=R2(Is.UseRouteError),r=_b(Is.UseRouteError);return e!==void 0?e:(t=n.errors)==null?void 0:t[r]}function D2(){let{router:t}=T2(kb.UseNavigateStable),e=_b(Is.UseNavigateStable),n=N.useRef(!1);return vb(()=>{n.current=!0}),N.useCallback(function(r,i){i===void 0&&(i={}),n.current&&(typeof r=="number"?t.navigate(r):t.navigate(r,Pa({fromRouteId:e},i)))},[t,e])}function Sb(t){let{to:e,replace:n,state:r,relative:i}=t;yi()||yt(!1);let{future:a,static:o}=N.useContext(Yn),{matches:s}=N.useContext(qn),{pathname:l}=Ka(),c=xi(),u=Kd(e,qd(s,a.v7_relativeSplatPath),l,i==="path"),d=JSON.stringify(u);return N.useEffect(()=>c(JSON.parse(d),{replace:n,state:r,relative:i}),[c,d,i,n,r]),null}function te(t){yt(!1)}function z2(t){let{basename:e="/",children:n=null,location:r,navigationType:i=wn.Pop,navigator:a,static:o=!1,future:s}=t;yi()&&yt(!1);let l=e.replace(/^\/*/,"/"),c=N.useMemo(()=>({basename:l,navigator:a,static:o,future:Pa({v7_relativeSplatPath:!1},s)}),[l,s,a,o]);typeof r=="string"&&(r=bi(r));let{pathname:u="/",search:d="",hash:h="",state:f=null,key:m="default"}=r,x=N.useMemo(()=>{let v=Yd(u,l);return v==null?null:{location:{pathname:v,search:d,hash:h,state:f,key:m},navigationType:i}},[l,u,d,h,f,m,i]);return x==null?null:N.createElement(Yn.Provider,{value:c},N.createElement(gl.Provider,{children:n,value:x}))}function I2(t){let{children:e,location:n}=t;return C2(xu(e),n)}new Promise(()=>{});function xu(t,e){e===void 0&&(e=[]);let n=[];return N.Children.forEach(t,(r,i)=>{if(!N.isValidElement(r))return;let a=[...e,i];if(r.type===N.Fragment){n.push.apply(n,xu(r.props.children,a));return}r.type!==te&&yt(!1),!r.props.index||!r.props.children||yt(!1);let o={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=xu(r.props.children,a)),n.push(o)}),n}/** +* React Router DOM v6.24.0 +* +* Copyright (c) Remix Software Inc. +* +* This source code is licensed under the MIT license found in the +* LICENSE.md file in the root directory of this source tree. +* +* @license MIT +*/function vu(){return vu=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function B2(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function U2(t,e){return t.button===0&&(!e||e==="_self")&&!B2(t)}const V2=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],H2="6";try{window.__reactRouterVersion=H2}catch{}const W2="startTransition",Kf=F1[W2];function $2(t){let{basename:e,children:n,future:r,window:i}=t,a=N.useRef();a.current==null&&(a.current=Gv({window:i,v5Compat:!0}));let o=a.current,[s,l]=N.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},u=N.useCallback(d=>{c&&Kf?Kf(()=>l(d)):l(d)},[l,c]);return N.useLayoutEffect(()=>o.listen(u),[o,u]),N.createElement(z2,{basename:e,children:n,location:s.location,navigationType:s.action,navigator:o,future:r})}const Y2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",q2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,we=N.forwardRef(function(t,e){let{onClick:n,relative:r,reloadDocument:i,replace:a,state:o,target:s,to:l,preventScrollReset:c,unstable_viewTransition:u}=t,d=F2(t,V2),{basename:h}=N.useContext(Yn),f,m=!1;if(typeof l=="string"&&q2.test(l)&&(f=l,Y2))try{let y=new URL(window.location.href),b=l.startsWith("//")?new URL(y.protocol+l):new URL(l),w=Yd(b.pathname,h);b.origin===y.origin&&w!=null?l=w+b.search+b.hash:m=!0}catch{}let x=_2(l,{relative:r}),v=K2(l,{replace:a,state:o,target:s,preventScrollReset:c,relative:r,unstable_viewTransition:u});function g(y){n&&n(y),y.defaultPrevented||v(y)}return N.createElement("a",vu({},d,{href:f||x,onClick:m||i?n:g,ref:e,target:s}))});var Xf;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(Xf||(Xf={}));var Qf;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(Qf||(Qf={}));function K2(t,e){let{target:n,replace:r,state:i,preventScrollReset:a,relative:o,unstable_viewTransition:s}=e===void 0?{}:e,l=xi(),c=Ka(),u=wb(t,{relative:o});return N.useCallback(d=>{if(U2(d,n)){d.preventDefault();let h=r!==void 0?r:zs(c)===zs(u);l(t,{replace:h,state:i,preventScrollReset:a,relative:o,unstable_viewTransition:s})}},[c,l,u,r,i,n,t,a,o,s])}function Cb(t,e){return function(){return t.apply(e,arguments)}}const{toString:X2}=Object.prototype,{getPrototypeOf:Qd}=Object,bl=(t=>e=>{const n=X2.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),je=t=>(t=t.toLowerCase(),e=>bl(e)===t),yl=t=>e=>typeof e===t,{isArray:vi}=Array,Ma=yl("undefined");function Q2(t){return t!==null&&!Ma(t)&&t.constructor!==null&&!Ma(t.constructor)&&me(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Eb=je("ArrayBuffer");function G2(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Eb(t.buffer),e}const J2=yl("string"),me=yl("function"),Nb=yl("number"),xl=t=>t!==null&&typeof t=="object",Z2=t=>t===!0||t===!1,rs=t=>{if(bl(t)!=="object")return!1;const e=Qd(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},tw=je("Date"),ew=je("File"),nw=je("Blob"),rw=je("FileList"),iw=t=>xl(t)&&me(t.pipe),aw=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||me(t.append)&&((e=bl(t))==="formdata"||e==="object"&&me(t.toString)&&t.toString()==="[object FormData]"))},ow=je("URLSearchParams"),[sw,lw,cw,uw]=["ReadableStream","Request","Response","Headers"].map(je),dw=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Xa(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,i;if(typeof t!="object"&&(t=[t]),vi(t))for(r=0,i=t.length;r0;)if(i=n[r],e===i.toLowerCase())return i;return null}const Mb=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,jb=t=>!Ma(t)&&t!==Mb;function wu(){const{caseless:t}=jb(this)&&this||{},e={},n=(r,i)=>{const a=t&&Pb(e,i)||i;rs(e[a])&&rs(r)?e[a]=wu(e[a],r):rs(r)?e[a]=wu({},r):vi(r)?e[a]=r.slice():e[a]=r};for(let r=0,i=arguments.length;r(Xa(e,(i,a)=>{n&&me(i)?t[a]=Cb(i,n):t[a]=i},{allOwnKeys:r}),t),fw=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),pw=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},mw=(t,e,n,r)=>{let i,a,o;const s={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),a=i.length;a-- >0;)o=i[a],(!r||r(o,t,e))&&!s[o]&&(e[o]=t[o],s[o]=!0);t=n!==!1&&Qd(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},gw=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},bw=t=>{if(!t)return null;if(vi(t))return t;let e=t.length;if(!Nb(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},yw=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Qd(Uint8Array)),xw=(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=n.next())&&!r.done;){const i=r.value;e.call(t,i[0],i[1])}},vw=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},ww=je("HTMLFormElement"),kw=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,n,r){return n.toUpperCase()+r}),Gf=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),_w=je("RegExp"),Ob=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Xa(n,(i,a)=>{let o;(o=e(i,a,t))!==!1&&(r[a]=o||i)}),Object.defineProperties(t,r)},Sw=t=>{Ob(t,(e,n)=>{if(me(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(me(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Cw=(t,e)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return vi(t)?r(t):r(String(t).split(e)),n},Ew=()=>{},Nw=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,ac="abcdefghijklmnopqrstuvwxyz",Jf="0123456789",Tb={DIGIT:Jf,ALPHA:ac,ALPHA_DIGIT:ac+ac.toUpperCase()+Jf},Pw=(t=16,e=Tb.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function Mw(t){return!!(t&&me(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const jw=t=>{const e=new Array(10),n=(r,i)=>{if(xl(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[i]=r;const a=vi(r)?[]:{};return Xa(r,(o,s)=>{const l=n(o,i+1);!Ma(l)&&(a[s]=l)}),e[i]=void 0,a}}return r};return n(t,0)},Ow=je("AsyncFunction"),Tw=t=>t&&(xl(t)||me(t))&&me(t.then)&&me(t.catch),S={isArray:vi,isArrayBuffer:Eb,isBuffer:Q2,isFormData:aw,isArrayBufferView:G2,isString:J2,isNumber:Nb,isBoolean:Z2,isObject:xl,isPlainObject:rs,isReadableStream:sw,isRequest:lw,isResponse:cw,isHeaders:uw,isUndefined:Ma,isDate:tw,isFile:ew,isBlob:nw,isRegExp:_w,isFunction:me,isStream:iw,isURLSearchParams:ow,isTypedArray:yw,isFileList:rw,forEach:Xa,merge:wu,extend:hw,trim:dw,stripBOM:fw,inherits:pw,toFlatObject:mw,kindOf:bl,kindOfTest:je,endsWith:gw,toArray:bw,forEachEntry:xw,matchAll:vw,isHTMLForm:ww,hasOwnProperty:Gf,hasOwnProp:Gf,reduceDescriptors:Ob,freezeMethods:Sw,toObjectSet:Cw,toCamelCase:kw,noop:Ew,toFiniteNumber:Nw,findKey:Pb,global:Mb,isContextDefined:jb,ALPHABET:Tb,generateString:Pw,isSpecCompliantForm:Mw,toJSONObject:jw,isAsyncFn:Ow,isThenable:Tw};function F(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}S.inherits(F,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:S.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Rb=F.prototype,Ab={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Ab[t]={value:t}});Object.defineProperties(F,Ab);Object.defineProperty(Rb,"isAxiosError",{value:!0});F.from=(t,e,n,r,i,a)=>{const o=Object.create(Rb);return S.toFlatObject(t,o,function(s){return s!==Error.prototype},s=>s!=="isAxiosError"),F.call(o,t.message,e,n,r,i),o.cause=t,o.name=t.name,a&&Object.assign(o,a),o};const Rw=null;function ku(t){return S.isPlainObject(t)||S.isArray(t)}function Lb(t){return S.endsWith(t,"[]")?t.slice(0,-2):t}function Zf(t,e,n){return t?t.concat(e).map(function(r,i){return r=Lb(r),!n&&i?"["+r+"]":r}).join(n?".":""):e}function Aw(t){return S.isArray(t)&&!t.some(ku)}const Lw=S.toFlatObject(S,{},null,function(t){return/^is[A-Z]/.test(t)});function vl(t,e,n){if(!S.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=S.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,m){return!S.isUndefined(m[f])});const r=n.metaTokens,i=n.visitor||c,a=n.dots,o=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(e);if(!S.isFunction(i))throw new TypeError("visitor must be a function");function l(f){if(f===null)return"";if(S.isDate(f))return f.toISOString();if(!s&&S.isBlob(f))throw new F("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(f)||S.isTypedArray(f)?s&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function c(f,m,x){let v=f;if(f&&!x&&typeof f=="object"){if(S.endsWith(m,"{}"))m=r?m:m.slice(0,-2),f=JSON.stringify(f);else if(S.isArray(f)&&Aw(f)||(S.isFileList(f)||S.endsWith(m,"[]"))&&(v=S.toArray(f)))return m=Lb(m),v.forEach(function(g,y){!(S.isUndefined(g)||g===null)&&e.append(o===!0?Zf([m],y,a):o===null?m:m+"[]",l(g))}),!1}return ku(f)?!0:(e.append(Zf(x,m,a),l(f)),!1)}const u=[],d=Object.assign(Lw,{defaultVisitor:c,convertValue:l,isVisitable:ku});function h(f,m){if(!S.isUndefined(f)){if(u.indexOf(f)!==-1)throw Error("Circular reference detected in "+m.join("."));u.push(f),S.forEach(f,function(x,v){(!(S.isUndefined(x)||x===null)&&i.call(e,x,S.isString(v)?v.trim():v,m,d))===!0&&h(x,m?m.concat(v):[v])}),u.pop()}}if(!S.isObject(t))throw new TypeError("data must be an object");return h(t),e}function tp(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Gd(t,e){this._pairs=[],t&&vl(t,this,e)}const Db=Gd.prototype;Db.append=function(t,e){this._pairs.push([t,e])};Db.toString=function(t){const e=t?function(n){return t.call(this,n,tp)}:tp;return this._pairs.map(function(n){return e(n[0])+"="+e(n[1])},"").join("&")};function Dw(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function zb(t,e,n){if(!e)return t;const r=n&&n.encode||Dw,i=n&&n.serialize;let a;if(i?a=i(e,n):a=S.isURLSearchParams(e)?e.toString():new Gd(e,n).toString(r),a){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t}class ep{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){S.forEach(this.handlers,function(n){n!==null&&e(n)})}}const Ib={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},zw=typeof URLSearchParams<"u"?URLSearchParams:Gd,Iw=typeof FormData<"u"?FormData:null,Fw=typeof Blob<"u"?Blob:null,Bw={isBrowser:!0,classes:{URLSearchParams:zw,FormData:Iw,Blob:Fw},protocols:["http","https","file","blob","url","data"]},Jd=typeof window<"u"&&typeof document<"u",Uw=(t=>Jd&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),Vw=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Hw=Jd&&window.location.href||"http://localhost",Ww=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Jd,hasStandardBrowserEnv:Uw,hasStandardBrowserWebWorkerEnv:Vw,origin:Hw},Symbol.toStringTag,{value:"Module"})),Ne={...Ww,...Bw};function $w(t,e){return vl(t,new Ne.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,a){return Ne.isNode&&S.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},e))}function Yw(t){return S.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function qw(t){const e={},n=Object.keys(t);let r;const i=n.length;let a;for(r=0;r=n.length;return o=!o&&S.isArray(i)?i.length:o,l?(S.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!s):((!i[o]||!S.isObject(i[o]))&&(i[o]=[]),e(n,r,i[o],a)&&S.isArray(i[o])&&(i[o]=qw(i[o])),!s)}if(S.isFormData(t)&&S.isFunction(t.entries)){const n={};return S.forEachEntry(t,(r,i)=>{e(Yw(r),i,n,0)}),n}return null}function Kw(t,e,n){if(S.isString(t))try{return(e||JSON.parse)(t),S.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const Qa={transitional:Ib,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,i=S.isObject(t);if(i&&S.isHTMLForm(t)&&(t=new FormData(t)),S.isFormData(t))return r?JSON.stringify(Fb(t)):t;if(S.isArrayBuffer(t)||S.isBuffer(t)||S.isStream(t)||S.isFile(t)||S.isBlob(t)||S.isReadableStream(t))return t;if(S.isArrayBufferView(t))return t.buffer;if(S.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return $w(t,this.formSerializer).toString();if((a=S.isFileList(t))||n.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return vl(a?{"files[]":t}:t,o&&new o,this.formSerializer)}}return i||r?(e.setContentType("application/json",!1),Kw(t)):t}],transformResponse:[function(t){const e=this.transitional||Qa.transitional,n=e&&e.forcedJSONParsing,r=this.responseType==="json";if(S.isResponse(t)||S.isReadableStream(t))return t;if(t&&S.isString(t)&&(n&&!this.responseType||r)){const i=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(a){if(i)throw a.name==="SyntaxError"?F.from(a,F.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ne.classes.FormData,Blob:Ne.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};S.forEach(["delete","get","head","post","put","patch"],t=>{Qa.headers[t]={}});const Xw=S.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Qw=t=>{const e={};let n,r,i;return t&&t.split(` +`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||e[n]&&Xw[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},np=Symbol("internals");function Oi(t){return t&&String(t).trim().toLowerCase()}function is(t){return t===!1||t==null?t:S.isArray(t)?t.map(is):String(t)}function Gw(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const Jw=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function oc(t,e,n,r,i){if(S.isFunction(r))return r.call(this,e,n);if(i&&(e=n),!!S.isString(e)){if(S.isString(r))return e.indexOf(r)!==-1;if(S.isRegExp(r))return r.test(e)}}function Zw(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function tk(t,e){const n=S.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(i,a,o){return this[r].call(this,e,i,a,o)},configurable:!0})})}class Jt{constructor(e){e&&this.set(e)}set(e,n,r){const i=this;function a(s,l,c){const u=Oi(l);if(!u)throw new Error("header name must be a non-empty string");const d=S.findKey(i,u);(!d||i[d]===void 0||c===!0||c===void 0&&i[d]!==!1)&&(i[d||l]=is(s))}const o=(s,l)=>S.forEach(s,(c,u)=>a(c,u,l));if(S.isPlainObject(e)||e instanceof this.constructor)o(e,n);else if(S.isString(e)&&(e=e.trim())&&!Jw(e))o(Qw(e),n);else if(S.isHeaders(e))for(const[s,l]of e.entries())a(l,s,r);else e!=null&&a(n,e,r);return this}get(e,n){if(e=Oi(e),e){const r=S.findKey(this,e);if(r){const i=this[r];if(!n)return i;if(n===!0)return Gw(i);if(S.isFunction(n))return n.call(this,i,r);if(S.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Oi(e),e){const r=S.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||oc(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let i=!1;function a(o){if(o=Oi(o),o){const s=S.findKey(r,o);s&&(!n||oc(r,r[s],s,n))&&(delete r[s],i=!0)}}return S.isArray(e)?e.forEach(a):a(e),i}clear(e){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!e||oc(this,this[a],a,e,!0))&&(delete this[a],i=!0)}return i}normalize(e){const n=this,r={};return S.forEach(this,(i,a)=>{const o=S.findKey(r,a);if(o){n[o]=is(i),delete n[a];return}const s=e?Zw(a):String(a).trim();s!==a&&delete n[a],n[s]=is(i),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return S.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=e&&S.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(i=>r.set(i)),r}static accessor(e){const n=(this[np]=this[np]={accessors:{}}).accessors,r=this.prototype;function i(a){const o=Oi(a);n[o]||(tk(r,a),n[o]=!0)}return S.isArray(e)?e.forEach(i):i(e),this}}Jt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);S.reduceDescriptors(Jt.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});S.freezeMethods(Jt);function sc(t,e){const n=this||Qa,r=e||n,i=Jt.from(r.headers);let a=r.data;return S.forEach(t,function(o){a=o.call(n,a,i.normalize(),e?e.status:void 0)}),i.normalize(),a}function Bb(t){return!!(t&&t.__CANCEL__)}function wi(t,e,n){F.call(this,t??"canceled",F.ERR_CANCELED,e,n),this.name="CanceledError"}S.inherits(wi,F,{__CANCEL__:!0});function Ub(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new F("Request failed with status code "+n.status,[F.ERR_BAD_REQUEST,F.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function ek(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function nk(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i=0,a=0,o;return e=e!==void 0?e:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u=u%t;if(i=(i+1)%t,i===a&&(a=(a+1)%t),l-or)return i&&(clearTimeout(i),i=null),n=o,t.apply(null,arguments);i||(i=setTimeout(()=>(i=null,n=Date.now(),t.apply(null,arguments)),r-(o-n)))}}const Fs=(t,e,n=3)=>{let r=0;const i=nk(50,250);return rk(a=>{const o=a.loaded,s=a.lengthComputable?a.total:void 0,l=o-r,c=i(l),u=o<=s;r=o;const d={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-o)/c:void 0,event:a,lengthComputable:s!=null};d[e?"download":"upload"]=!0,t(d)},n)},ik=Ne.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let n;function r(i){let a=i;return t&&(e.setAttribute("href",a),a=e.href),e.setAttribute("href",a),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:e.pathname.charAt(0)==="/"?e.pathname:"/"+e.pathname}}return n=r(window.location.href),function(i){const a=S.isString(i)?r(i):i;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}(),ak=Ne.hasStandardBrowserEnv?{write(t,e,n,r,i,a){const o=[t+"="+encodeURIComponent(e)];S.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),S.isString(r)&&o.push("path="+r),S.isString(i)&&o.push("domain="+i),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ok(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function sk(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Vb(t,e){return t&&!ok(e)?sk(t,e):e}const rp=t=>t instanceof Jt?{...t}:t;function wr(t,e){e=e||{};const n={};function r(c,u,d){return S.isPlainObject(c)&&S.isPlainObject(u)?S.merge.call({caseless:d},c,u):S.isPlainObject(u)?S.merge({},u):S.isArray(u)?u.slice():u}function i(c,u,d){if(S.isUndefined(u)){if(!S.isUndefined(c))return r(void 0,c,d)}else return r(c,u,d)}function a(c,u){if(!S.isUndefined(u))return r(void 0,u)}function o(c,u){if(S.isUndefined(u)){if(!S.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,d){if(d in e)return r(c,u);if(d in t)return r(void 0,c)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(c,u)=>i(rp(c),rp(u),!0)};return S.forEach(Object.keys(Object.assign({},t,e)),function(c){const u=l[c]||i,d=u(t[c],e[c],c);S.isUndefined(d)&&u!==s||(n[c]=d)}),n}const Hb=t=>{const e=wr({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=e;e.headers=o=Jt.from(o),e.url=zb(Vb(e.baseURL,e.url),t.params,t.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(S.isFormData(n)){if(Ne.hasStandardBrowserEnv||Ne.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];o.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Ne.hasStandardBrowserEnv&&(r&&S.isFunction(r)&&(r=r(e)),r||r!==!1&&ik(e.url))){const c=i&&a&&ak.read(a);c&&o.set(i,c)}return e},lk=typeof XMLHttpRequest<"u",ck=lk&&function(t){return new Promise(function(e,n){const r=Hb(t);let i=r.data;const a=Jt.from(r.headers).normalize();let{responseType:o}=r,s;function l(){r.cancelToken&&r.cancelToken.unsubscribe(s),r.signal&&r.signal.removeEventListener("abort",s)}let c=new XMLHttpRequest;c.open(r.method.toUpperCase(),r.url,!0),c.timeout=r.timeout;function u(){if(!c)return;const h=Jt.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),f={data:!o||o==="text"||o==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:h,config:t,request:c};Ub(function(m){e(m),l()},function(m){n(m),l()},f),c=null}"onloadend"in c?c.onloadend=u:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(u)},c.onabort=function(){c&&(n(new F("Request aborted",F.ECONNABORTED,r,c)),c=null)},c.onerror=function(){n(new F("Network Error",F.ERR_NETWORK,r,c)),c=null},c.ontimeout=function(){let h=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const f=r.transitional||Ib;r.timeoutErrorMessage&&(h=r.timeoutErrorMessage),n(new F(h,f.clarifyTimeoutError?F.ETIMEDOUT:F.ECONNABORTED,r,c)),c=null},i===void 0&&a.setContentType(null),"setRequestHeader"in c&&S.forEach(a.toJSON(),function(h,f){c.setRequestHeader(f,h)}),S.isUndefined(r.withCredentials)||(c.withCredentials=!!r.withCredentials),o&&o!=="json"&&(c.responseType=r.responseType),typeof r.onDownloadProgress=="function"&&c.addEventListener("progress",Fs(r.onDownloadProgress,!0)),typeof r.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",Fs(r.onUploadProgress)),(r.cancelToken||r.signal)&&(s=h=>{c&&(n(!h||h.type?new wi(null,t,c):h),c.abort(),c=null)},r.cancelToken&&r.cancelToken.subscribe(s),r.signal&&(r.signal.aborted?s():r.signal.addEventListener("abort",s)));const d=ek(r.url);if(d&&Ne.protocols.indexOf(d)===-1){n(new F("Unsupported protocol "+d+":",F.ERR_BAD_REQUEST,t));return}c.send(i||null)})},uk=(t,e)=>{let n=new AbortController,r;const i=function(l){if(!r){r=!0,o();const c=l instanceof Error?l:this.reason;n.abort(c instanceof F?c:new wi(c instanceof Error?c.message:c))}};let a=e&&setTimeout(()=>{i(new F(`timeout ${e} of ms exceeded`,F.ETIMEDOUT))},e);const o=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",i):l.unsubscribe(i))}),t=null)};t.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",i));const{signal:s}=n;return s.unsubscribe=o,[s,()=>{a&&clearTimeout(a),a=null}]},dk=function*(t,e){let n=t.byteLength;if(n{const a=hk(t,e,i);let o=0;return new ReadableStream({type:"bytes",async pull(s){const{done:l,value:c}=await a.next();if(l){s.close(),r();return}let u=c.byteLength;n&&n(o+=u),s.enqueue(new Uint8Array(c))},cancel(s){return r(s),a.return()}},{highWaterMark:2})},ap=(t,e)=>{const n=t!=null;return r=>setTimeout(()=>e({lengthComputable:n,total:t,loaded:r}))},wl=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Wb=wl&&typeof ReadableStream=="function",_u=wl&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),fk=Wb&&(()=>{let t=!1;const e=new Request(Ne.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})(),op=64*1024,Su=Wb&&!!(()=>{try{return S.isReadableStream(new Response("").body)}catch{}})(),Bs={stream:Su&&(t=>t.body)};wl&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Bs[e]&&(Bs[e]=S.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new F(`Response type '${e}' is not supported`,F.ERR_NOT_SUPPORT,r)})})})(new Response);const pk=async t=>{if(t==null)return 0;if(S.isBlob(t))return t.size;if(S.isSpecCompliantForm(t))return(await new Request(t).arrayBuffer()).byteLength;if(S.isArrayBufferView(t))return t.byteLength;if(S.isURLSearchParams(t)&&(t=t+""),S.isString(t))return(await _u(t)).byteLength},mk=async(t,e)=>S.toFiniteNumber(t.getContentLength())??pk(e),gk=wl&&(async t=>{let{url:e,method:n,data:r,signal:i,cancelToken:a,timeout:o,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:h}=Hb(t);c=c?(c+"").toLowerCase():"text";let[f,m]=i||a||o?uk([i,a],o):[],x,v;const g=()=>{!x&&setTimeout(()=>{f&&f.unsubscribe()}),x=!0};let y;try{if(l&&fk&&n!=="get"&&n!=="head"&&(y=await mk(u,r))!==0){let _=new Request(e,{method:"POST",body:r,duplex:"half"}),C;S.isFormData(r)&&(C=_.headers.get("content-type"))&&u.setContentType(C),_.body&&(r=ip(_.body,op,ap(y,Fs(l)),null,_u))}S.isString(d)||(d=d?"cors":"omit"),v=new Request(e,{...h,signal:f,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",withCredentials:d});let b=await fetch(v);const w=Su&&(c==="stream"||c==="response");if(Su&&(s||w)){const _={};["status","statusText","headers"].forEach(E=>{_[E]=b[E]});const C=S.toFiniteNumber(b.headers.get("content-length"));b=new Response(ip(b.body,op,s&&ap(C,Fs(s,!0)),w&&g,_u),_)}c=c||"text";let k=await Bs[S.findKey(Bs,c)||"text"](b,t);return!w&&g(),m&&m(),await new Promise((_,C)=>{Ub(_,C,{data:k,headers:Jt.from(b.headers),status:b.status,statusText:b.statusText,config:t,request:v})})}catch(b){throw g(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new F("Network Error",F.ERR_NETWORK,t,v),{cause:b.cause||b}):F.from(b,b&&b.code,t,v)}}),Cu={http:Rw,xhr:ck,fetch:gk};S.forEach(Cu,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const sp=t=>`- ${t}`,bk=t=>S.isFunction(t)||t===null||t===!1,$b={getAdapter:t=>{t=S.isArray(t)?t:[t];const{length:e}=t;let n,r;const i={};for(let a=0;a`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=e?a.length>1?`since : +`+a.map(sp).join(` +`):" "+sp(a[0]):"as no adapter specified";throw new F("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Cu};function lc(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new wi(null,t)}function lp(t){return lc(t),t.headers=Jt.from(t.headers),t.data=sc.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),$b.getAdapter(t.adapter||Qa.adapter)(t).then(function(e){return lc(t),e.data=sc.call(t,t.transformResponse,e),e.headers=Jt.from(e.headers),e},function(e){return Bb(e)||(lc(t),e&&e.response&&(e.response.data=sc.call(t,t.transformResponse,e.response),e.response.headers=Jt.from(e.response.headers))),Promise.reject(e)})}const Yb="1.7.2",Zd={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Zd[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const cp={};Zd.transitional=function(t,e,n){function r(i,a){return"[Axios v"+Yb+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,o)=>{if(t===!1)throw new F(r(a," has been removed"+(e?" in "+e:"")),F.ERR_DEPRECATED);return e&&!cp[a]&&(cp[a]=!0,console.warn(r(a," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(i,a,o):!0}};function yk(t,e,n){if(typeof t!="object")throw new F("options must be an object",F.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const a=r[i],o=e[a];if(o){const s=t[a],l=s===void 0||o(s,a,t);if(l!==!0)throw new F("option "+a+" must be "+l,F.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new F("Unknown option "+a,F.ERR_BAD_OPTION)}}const Eu={assertOptions:yk,validators:Zd},hn=Eu.validators;class hr{constructor(e){this.defaults=e,this.interceptors={request:new ep,response:new ep}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+a):r.stack=a}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=wr(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&Eu.assertOptions(r,{silentJSONParsing:hn.transitional(hn.boolean),forcedJSONParsing:hn.transitional(hn.boolean),clarifyTimeoutError:hn.transitional(hn.boolean)},!1),i!=null&&(S.isFunction(i)?n.paramsSerializer={serialize:i}:Eu.assertOptions(i,{encode:hn.function,serialize:hn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&S.merge(a.common,a[n.method]);a&&S.forEach(["delete","get","head","post","put","patch","common"],m=>{delete a[m]}),n.headers=Jt.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let u,d=0,h;if(!l){const m=[lp.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,c),h=m.length,u=Promise.resolve(n);d{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{r.subscribe(s),a=s}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},e(function(i,a,o){r.reason||(r.reason=new wi(i,a,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new th(function(n){e=n}),cancel:e}}}function xk(t){return function(e){return t.apply(null,e)}}function vk(t){return S.isObject(t)&&t.isAxiosError===!0}const Nu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Nu).forEach(([t,e])=>{Nu[e]=t});function qb(t){const e=new hr(t),n=Cb(hr.prototype.request,e);return S.extend(n,hr.prototype,e,{allOwnKeys:!0}),S.extend(n,e,null,{allOwnKeys:!0}),n.create=function(r){return qb(wr(t,r))},n}const tt=qb(Qa);tt.Axios=hr;tt.CanceledError=wi;tt.CancelToken=th;tt.isCancel=Bb;tt.VERSION=Yb;tt.toFormData=vl;tt.AxiosError=F;tt.Cancel=tt.CanceledError;tt.all=function(t){return Promise.all(t)};tt.spread=xk;tt.isAxiosError=vk;tt.mergeConfig=wr;tt.AxiosHeaders=Jt;tt.formToJSON=t=>Fb(S.isHTMLForm(t)?new FormData(t):t);tt.getAdapter=$b.getAdapter;tt.HttpStatusCode=Nu;tt.default=tt;const wk="http://localhost:8000",kr=tt.create({baseURL:wk});kr.interceptors.request.use(t=>{const e=localStorage.getItem("token");return e&&(t.headers.Authorization=`Bearer ${e}`),t.headers["xi-api-key"]="u2",t.data instanceof FormData?t.headers["Content-Type"]="multipart/form-data":typeof t.data=="object"&&(t.headers["Content-Type"]="application/json"),t},t=>Promise.reject(t));kr.interceptors.response.use(t=>t,t=>Promise.reject(t));const In="http://localhost:8000",kk=async(t,e,n,r,i,a,o)=>{const s=new URLSearchParams;s.append("first_name",t),s.append("surname",e),s.append("email",n),s.append("phone",r),s.append("country",i),s.append("address",a),s.append("password",o);try{return console.log("data",s),(await tt.post(`${In}/api/v1/user/`,s,{headers:{"Content-Type":"application/x-www-form-urlencoded",accept:"application/json"}})).data}catch(l){throw console.error("Registration failed:",l),l}},_k=async(t,e)=>{const n=new URLSearchParams;n.append("username",t),n.append("password",e);try{return await tt.post(`${In}/token`,n,{headers:{"Content-Type":"application/x-www-form-urlencoded",accept:"application/json"}})}catch(r){throw console.error("Login failed:",r),r}},Kb=async t=>{try{return(await kr.get(`${In}/api/v1/ocrtemplate/`,{params:{template_name:t}})).data}catch(e){throw console.error("Error fetching templates:",e),e}},up=async(t,e,n,r)=>{const i={template_name:t,fields:e,user_id:n};try{let a;return console.log(r),r?a=await kr.put(`${In}/api/v1/ocrtemplate/templates/`,i):a=await kr.post(`${In}/api/v1/ocrtemplate/`,i),a.data}catch(a){throw console.error("Error creating/updating template:",a),a}},Sk=async t=>{try{return(await kr.delete(`${In}/api/v1/ocrtemplate/${t}`)).data}catch(e){throw console.error("Error deleting template:",e),e}},Ck=async t=>{try{for(let[r,i]of t.entries())console.log(`${r}: ${i.name||i}`);const e=await kr.post(`${In}/api/v1/ocr/process`,t);if(e.status!==200)throw new Error(`Error: ${e.statusText}`);const n=e.data;return console.log("Success:",n),n}catch(e){throw console.error("Error:",e),alert("There was an error processing the files."),e}},Ek=async(t,e,n,r,i,a,o)=>{const s={text:t,language_code:e,ssml_gender:n,name:r,pitch:i,speaking_rate:a,volume_gain_db:o},l={"xi-api-key":"u2","Content-Type":"application/json",Authorization:`Bearer ${localStorage.getItem("token")}`};try{console.log(s);const c=(await tt.post(`${In}/api/v1/text-to-speech/generate`,s,{headers:l})).data.data.key;return console.log(c),c}catch(c){throw c.response?(console.error("Error response data:",c.response.data),console.error("Error response status:",c.response.status),console.error("Error response headers:",c.response.headers)):c.request?console.error("Error request data:",c.request):console.error("Error message:",c.message),console.error("Error config:",c.config),c}},Nk=()=>{const[t,e]=N.useState({first_name:"",surname:"",email:"",phone:"",country:"",address:"",password:"",confirm_password:""}),[n,r]=N.useState(null),i=xi(),a=s=>{e({...t,[s.target.name]:s.target.value})},o=async s=>{s.preventDefault();const{first_name:l,surname:c,email:u,phone:d,country:h,address:f,password:m,confirm_password:x}=t;if(m!==x){r("Passwords do not match");return}try{console.log("Form Data:",t);const v=await kk(l,c,u,d,h,f,m);console.log("Response:",v.data),i("/login")}catch(v){console.error("Registration failed",v),v.response&&v.response.status===400?r(v.response.data.detail||"Registration failed"):r("An unexpected error occurred")}};return p.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-r from-purple-400 via-pink-500 to-blue-500",children:p.jsxs("div",{className:"flex flex-col md:flex-row bg-white rounded-lg shadow-md overflow-hidden w-full max-w-7xl",children:[p.jsx("div",{className:"md:w-1/2 flex justify-center items-center bg-gray-100",children:p.jsx("img",{src:"/public/HiDigiH.jpg",alt:"HiDigi Logo",style:{height:"250px",width:"250px"}})}),p.jsxs("div",{className:"md:w-1/2 p-8",children:[p.jsx("h2",{className:"text-2xl font-bold mb-6 text-center",children:"Sign Up"}),p.jsxs("form",{onSubmit:o,children:[n&&p.jsx("div",{className:"mb-4 text-center text-red-500",children:n}),p.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 mb-2",children:"First Name"}),p.jsx("input",{type:"text",name:"first_name",value:t.first_name,onChange:a,className:"w-full p-3 border border-gray-300 rounded",placeholder:"First Name",required:!0})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 mb-2",children:"Surname"}),p.jsx("input",{type:"text",name:"surname",value:t.surname,onChange:a,className:"w-full p-3 border border-gray-300 rounded",placeholder:"Surname",required:!0})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 mb-2",children:"Phone Number"}),p.jsx("input",{type:"text",name:"phone",value:t.phone,onChange:a,className:"w-full p-3 border border-gray-300 rounded",placeholder:"Phone Number",required:!0})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 mb-2",children:"Country"}),p.jsx("input",{type:"text",name:"country",value:t.country,onChange:a,className:"w-full p-3 border border-gray-300 rounded",placeholder:"Country",required:!0})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 mb-2",children:"Address"}),p.jsx("input",{type:"text",name:"address",value:t.address,onChange:a,className:"w-full p-3 border border-gray-300 rounded",placeholder:"Address",required:!0})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 mb-2",children:"E-Mail"}),p.jsx("input",{type:"email",name:"email",value:t.email,onChange:a,className:"w-full p-3 border border-gray-300 rounded",placeholder:"E-Mail",required:!0})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 mb-2",children:"Password"}),p.jsx("input",{type:"password",name:"password",value:t.password,onChange:a,className:"w-full p-3 border border-gray-300 rounded",placeholder:"Password",required:!0})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 mb-2",children:"Confirm Password"}),p.jsx("input",{type:"password",name:"confirm_password",value:t.confirm_password,onChange:a,className:"w-full p-3 border border-gray-300 rounded",placeholder:"Confirm Password",required:!0})]})]}),p.jsx("button",{type:"submit",className:"w-full bg-blue-500 text-white py-3 px-4 rounded mt-4 hover:bg-blue-600",children:"Register"})]}),p.jsxs("div",{className:"text-center text-gray-500 text-sm mt-6",children:["Already have an account? ",p.jsx("a",{href:"/login",className:"text-blue-500 hover:underline",children:"Sign in"})]})]})]})})};function Pk(t,e){return N.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"}))}const Mk=N.forwardRef(Pk);function jk(t,e){return N.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"}))}const Ok=N.forwardRef(jk);function Tk(t,e){return N.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}))}const Rk=N.forwardRef(Tk);function Ak(t,e){return N.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"}))}const Lk=N.forwardRef(Ak);function Dk(t,e){return N.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z"}))}const zk=N.forwardRef(Dk);function Ik(t,e){return N.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"}))}const Fk=N.forwardRef(Ik);function Bk(t,e){return N.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 5a1 1 0 011-1h14a1 1 0 011 1v2a1 1 0 01-1 1H5a1 1 0 01-1-1V5zM4 13a1 1 0 011-1h6a1 1 0 011 1v6a1 1 0 01-1 1H5a1 1 0 01-1-1v-6zM16 13a1 1 0 011-1h2a1 1 0 011 1v6a1 1 0 01-1 1h-2a1 1 0 01-1-1v-6z"}))}const Uk=N.forwardRef(Bk);function kl(){return xi(),p.jsxs("div",{className:"bg-gray-800 text-white w-64 p-4 space-y-6",children:[p.jsx("h2",{className:"text-2xl font-bold",children:"HiDigi"}),p.jsx("nav",{children:p.jsxs("ul",{className:"space-y-4",children:[p.jsx("li",{className:"hover:bg-gray-700 p-2 rounded-lg",children:p.jsxs(we,{to:"/ocrdashboard",className:"flex items-center space-x-2",children:[p.jsx(Lk,{className:"h-6 w-6"}),p.jsx("span",{children:"Home"})]})}),p.jsx("li",{className:"hover:bg-gray-700 p-2 rounded-lg",children:p.jsxs(we,{to:"/ocrtemplate",className:"flex items-center space-x-2",children:[p.jsx(Uk,{className:"h-6 w-6"}),p.jsx("span",{children:"Application Template"})]})}),p.jsx("li",{className:"hover:bg-gray-700 p-2 rounded-lg",children:p.jsxs(we,{to:"/erpcredential",className:"flex items-center space-x-2",children:[p.jsx(zk,{className:"h-6 w-6"}),p.jsx("span",{children:"Manage Credentials"})]})}),p.jsx("li",{className:"hover:bg-gray-700 p-2 rounded-lg",children:p.jsxs(we,{to:"/summary",className:"flex items-center space-x-2",children:[p.jsx(Mk,{className:"h-6 w-6"}),p.jsx("span",{children:"Summary"})]})}),p.jsx("li",{className:"hover:bg-gray-700 p-2 rounded-lg",children:p.jsxs(we,{to:"/transaction-detail",className:"flex items-center space-x-2",children:[p.jsx(Ok,{className:"h-6 w-6"}),p.jsx("span",{children:"Transaction Detail"})]})}),p.jsx("li",{className:"hover:bg-gray-700 p-2 rounded-lg",children:p.jsxs(we,{to:"/settings",className:"flex items-center space-x-2",children:[p.jsx(Rk,{className:"h-6 w-6"}),p.jsx("span",{children:"Settings"})]})}),p.jsx("li",{className:"hover:bg-gray-700 p-2 rounded-lg",children:p.jsxs(we,{to:"/logout",className:"flex items-center space-x-2",children:[p.jsx(Fk,{className:"h-6 w-6"}),p.jsx("span",{children:"Logout"})]})})]})})]})}function Xb(){return p.jsxs("div",{className:"flex justify-between items-center mb-4",children:[p.jsx("h1",{className:"text-2xl font-semibold text-gray-700",children:"OCR Dashboard"}),p.jsxs("div",{className:"flex space-x-4",children:[p.jsx("button",{className:"bg-blue-500 text-white py-2 px-4 rounded-lg hover:bg-blue-600 transition duration-200",children:"Contact us"}),p.jsx("button",{className:"bg-green-500 text-white py-2 px-4 rounded-lg hover:bg-green-600 transition duration-200",children:"Get Your Free Trial"})]})]})}const Vk=()=>{const[t,e]=N.useState({MONGO_DETAILS:"",MongoDB_NAME:"",COLLECTION_NAMES:"",SECRET_KEY:"",ALGORITHM:"",ACCESS_TOKEN_EXPIRE_MINUTES:0});N.useEffect(()=>{tt.get("http://localhost:8000/config").then(i=>e(i.data)).catch(i=>console.error("Error fetching config:",i))},[]);const n=i=>{const{name:a,value:o}=i.target;e({...t,[a]:o})},r=i=>{i.preventDefault(),tt.patch("http://localhost:8000/config",t).then(a=>{e(a.data),alert("Config updated successfully!")}).catch(a=>console.error("Error updating config:",a))};return p.jsxs("div",{className:"min-h-screen bg-gray-100 flex",children:[p.jsx(kl,{}),p.jsxs("div",{className:"flex-1 p-6",children:[p.jsx(Xb,{}),p.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-lg w-full max-w-4xl mx-auto",children:[p.jsx("h2",{className:"text-2xl font-bold mb-6",children:"Manage Credentials"}),p.jsxs("form",{className:"space-y-4",onSubmit:r,children:[p.jsxs("div",{children:[p.jsx("label",{className:"block text-gray-700",children:"ERP details"}),p.jsx("input",{type:"text",name:"MONGO_DETAILS",value:t.MONGO_DETAILS,onChange:n,className:"w-full px-4 py-2 border rounded-md"})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-gray-700",children:"Client ID"}),p.jsx("input",{type:"text",name:"MongoDB_NAME",value:t.MongoDB_NAME,onChange:n,className:"w-full px-4 py-2 border rounded-md"})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-gray-700",children:"Client Secret"}),p.jsx("input",{type:"text",name:"COLLECTION_NAMES",value:t.COLLECTION_NAMES,onChange:n,className:"w-full px-4 py-2 border rounded-md"})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-gray-700",children:"Username"}),p.jsx("input",{type:"text",name:"SECRET_KEY",value:t.SECRET_KEY,onChange:n,className:"w-full px-4 py-2 border rounded-md"})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-gray-700",children:"Password"}),p.jsx("input",{type:"password",name:"ALGORITHM",value:t.ALGORITHM,onChange:n,className:"w-full px-4 py-2 border rounded-md"})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-gray-700",children:"Company Code"}),p.jsx("input",{type:"text",name:"ACCESS_TOKEN_EXPIRE_MINUTES",value:t.ACCESS_TOKEN_EXPIRE_MINUTES,onChange:n,className:"w-full px-4 py-2 border rounded-md"})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-gray-700",children:"API Key (Optional)"}),p.jsx("input",{type:"text",name:"API_KEY",value:t.API_KEY,onChange:n,className:"w-full px-4 py-2 border rounded-md"})]}),p.jsx("button",{type:"submit",className:"w-full bg-blue-500 text-white px-4 py-2 rounded-md",children:"Save Credentials"})]})]})]})]})},cc={"en-US":[{name:"en-US-Standard-A",label:"Alex"},{name:"en-US-Standard-B",label:"Bob"},{name:"en-US-Standard-C",label:"Charlie"},{name:"en-US-Standard-D",label:"Dave"}],"en-GB":[{name:"en-GB-Standard-A",label:"David"},{name:"en-GB-Standard-B",label:"Emma"},{name:"en-GB-Standard-C",label:"Geraint"},{name:"en-GB-Standard-D",label:"Brian"}],"id-ID":[{name:"id-ID-Standard-A",label:"Indra"},{name:"id-ID-Standard-B",label:"Kartika"},{name:"id-ID-Standard-C",label:"Kusuma"},{name:"id-ID-Standard-D",label:"Nadia"}]};function Hk(){const[t,e]=N.useState(""),[n,r]=N.useState("en-US"),[i,a]=N.useState("NEUTRAL"),[o,s]=N.useState("en-US-Standard-C"),[l,c]=N.useState(0),[u,d]=N.useState(1),[h,f]=N.useState(0),[m,x]=N.useState(null),v="http://localhost:8000",g=async()=>{try{const b=await Ek(t,n,i,o,l,u,h),w=`${new URL(v).origin}/static/storage/audio/${b}`;console.log(w),x(w)}catch(b){console.error("Text-to-Speech failed:",b)}},y=()=>{x(null)};return p.jsx("div",{className:"flex justify-center items-center min-h-screen bg-gray-100 p-4",children:p.jsxs("div",{className:"w-full max-w-3xl p-6 bg-white rounded-lg shadow-md",children:[p.jsx("h2",{className:"text-3xl font-bold mb-6 text-center text-blue-500",children:"Text-to-Speech AI"}),p.jsx("div",{className:"mb-6",children:p.jsx("textarea",{value:t,onChange:b=>e(b.target.value),className:"w-full h-32 p-3 border rounded",placeholder:"Enter some text here..."})}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 font-bold mb-2",children:"Volume"}),p.jsx("input",{type:"range",min:"-96.0",max:"16.0",step:"0.1",value:h,onChange:b=>f(parseFloat(b.target.value)),className:"w-full"}),p.jsx("span",{className:"block text-right text-gray-600",children:h.toFixed(1)})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 font-bold mb-2",children:"Rate"}),p.jsx("input",{type:"range",min:"0.25",max:"4.0",step:"0.01",value:u,onChange:b=>d(parseFloat(b.target.value)),className:"w-full"}),p.jsx("span",{className:"block text-right text-gray-600",children:u.toFixed(2)})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 font-bold mb-2",children:"Pitch"}),p.jsx("input",{type:"range",min:"-20.0",max:"20.0",step:"0.1",value:l,onChange:b=>c(parseFloat(b.target.value)),className:"w-full"}),p.jsx("span",{className:"block text-right text-gray-600",children:l.toFixed(1)})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 font-bold mb-2",children:"Language"}),p.jsx("select",{value:n,onChange:b=>{r(b.target.value),s(cc[b.target.value][0].name)},className:"w-full p-2 border rounded",children:Object.keys(cc).map(b=>p.jsx("option",{value:b,children:b},b))})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 font-bold mb-2",children:"Voice"}),p.jsx("select",{value:o,onChange:b=>s(b.target.value),className:"w-full p-2 border rounded",children:cc[n].map(b=>p.jsx("option",{value:b.name,children:b.label},b.name))})]}),p.jsx("div",{className:"flex justify-between mt-6",children:p.jsx("button",{onClick:g,className:"w-fit px-4 py-2 bg-blue-500 text-white rounded hover:shadow-lg hover:bg-blue-700 transition duration-200",children:"Generate"})}),m&&p.jsx("div",{className:"mt-6",children:p.jsxs("div",{className:"flex items-center",children:[p.jsx("audio",{controls:!0,src:m,className:"w-full",children:"Your browser does not support the audio element."}),p.jsx("button",{onClick:y,className:"ml-4 px-4 py-2 bg-red-500 text-white rounded hover:bg-red-700 transition duration-200",children:"Delete"})]})})]})})}function Wk(){return p.jsx(Hk,{})}tt.defaults.withCredentials=!0;function $k(){const[t,e]=N.useState({usernameOrEmail:"",password:""}),n=xi(),r=a=>{e({...t,[a.target.name]:a.target.value})},i=async a=>{a.preventDefault();const{usernameOrEmail:o,password:s}=t;try{const l=await _k(o,s);console.log(l.data),localStorage.setItem("token",l.data.access_token),console.log("Token stored in localStorage:",localStorage.getItem("token")),n("/ocrdashboard")}catch(l){console.error("Login failed",l)}};return p.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-r from-purple-400 via-pink-500 to-blue-500",children:p.jsxs("div",{className:"flex flex-col md:flex-row bg-white rounded-lg shadow-md overflow-hidden w-full max-w-4xl",children:[p.jsx("div",{className:"md:w-1/2 flex justify-center items-center bg-gray-100",children:p.jsx("img",{src:"/public/HiDigiH.jpg",alt:"HiDigi Logo",style:{height:"250px",width:"250px"}})}),p.jsxs("div",{className:"md:w-1/2 p-8",children:[p.jsx("h2",{className:"text-2xl font-bold mb-6 text-center",children:"Sign in"}),p.jsxs("form",{onSubmit:i,children:[p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 mb-2",children:"Username or Email"}),p.jsx("input",{type:"text",name:"usernameOrEmail",value:t.usernameOrEmail,onChange:r,className:"w-full p-3 border border-gray-300 rounded",placeholder:"Type your username or email",required:!0})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 mb-2",children:"Password"}),p.jsx("input",{type:"password",name:"password",value:t.password,onChange:r,className:"w-full p-3 border border-gray-300 rounded",placeholder:"Type your password",required:!0}),p.jsx("div",{className:"text-right mt-2",children:p.jsx("a",{href:"/forgot-password",className:"text-blue-500 hover:underline",children:"Forgot Password?"})})]}),p.jsx("button",{type:"submit",className:"w-full bg-blue-500 text-white py-3 px-4 rounded mt-4 hover:bg-blue-600",children:"Sign in"})]}),p.jsxs("div",{className:"text-center text-gray-500 text-sm mt-6",children:['By clicking "Sign in", you agree to our ',p.jsx("a",{href:"/terms",className:"text-blue-500 hover:underline",children:"Terms and Conditions"})," and ",p.jsx("a",{href:"/privacy",className:"text-blue-500 hover:underline",children:"Privacy Policy"}),"."]}),p.jsxs("div",{className:"text-center text-gray-500 text-sm mt-4",children:["Don't have an account? ",p.jsx("a",{href:"/register",className:"text-blue-500 hover:underline",children:"Register"})]})]})]})})}function Yk(){return p.jsx($k,{})}class Ui extends Error{}Ui.prototype.name="InvalidTokenError";function qk(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,n)=>{let r=n.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}function Kk(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return qk(e)}catch{return atob(e)}}function Xk(t,e){if(typeof t!="string")throw new Ui("Invalid token specified: must be a string");e||(e={});const n=e.header===!0?0:1,r=t.split(".")[n];if(typeof r!="string")throw new Ui(`Invalid token specified: missing part #${n+1}`);let i;try{i=Kk(r)}catch(a){throw new Ui(`Invalid token specified: invalid base64 for part #${n+1} (${a.message})`)}try{return JSON.parse(i)}catch(a){throw new Ui(`Invalid token specified: invalid json for part #${n+1} (${a.message})`)}}const Qk=t=>{try{const e=Xk(t),n=Date.now()/1e3;return!(e.exp{try{const b=await Kb();console.log("fetchTemplates Response:",b);const w=b.map(k=>({template_name:k.template_name,variables:Object.values(k.fields||{}),user_id:k.user_id}));e(w)}catch(b){console.error("Error fetching templates:",b)}},d=b=>{const w=b.target.value;if(w==="new")r(null),a(""),s(!1);else{const k=t.find(_=>_.template_name===w);r(k||null),s(!!k)}},h=()=>{const b={...n,variables:[...n.variables||[],""]};r(b)},f=b=>{const w={...n,template_name:b};r(w)},m=(b,w)=>{const k={...n};k.variables[b]=w,r(k)},x=()=>{r({template_name:i,variables:[""]}),s(!0)},v=async()=>{const b=n,w={};b.variables.forEach((k,_)=>{w[`additionalProp${_+1}`]=k});try{console.log(b);const k=t.find(_=>_.template_name===b.template_name);if(k)console.log("existingTemplate",k.template_name),await up(b.template_name,w,b.user_id,!0),c("Template updated successfully!");else{console.log("Creating new template");const _=await up(b.template_name,w,b.user_id,!1);c("Template created successfully!")}u()}catch{c("Handle submit Error creating/updating template.")}},g=async()=>{const b=n.template_name;try{await Sk(b),e(t.filter(w=>w.template_name!==b)),r(null),c("Template deleted successfully!")}catch{c("Error deleting template.")}},y=b=>{const w={...n};w.variables.splice(b,1),r(w)};return N.useEffect(()=>{u()},[]),p.jsxs("div",{className:"min-h-screen bg-gray-100 flex",children:[p.jsx(kl,{}),p.jsx("div",{className:"flex-1 p-6",children:p.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-lg w-full max-w-4xl mx-auto",children:[p.jsx("h2",{className:"text-xl font-semibold text-gray-700",children:"Application Template"}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 text-sm font-bold mb-2",children:"Select Template"}),p.jsxs("select",{value:n?n.template_name:"new",onChange:d,className:"w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600 mb-2",children:[p.jsx("option",{value:"new",children:"Create New Template"}),t.map((b,w)=>p.jsx("option",{value:b.template_name,children:b.template_name},w))]})]}),!n&&p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 text-sm font-bold mb-2",children:"Template Name"}),p.jsx("input",{type:"text",value:i,onChange:b=>a(b.target.value),className:"w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600 mb-2"}),p.jsx("button",{onClick:x,className:"bg-green-500 text-white py-2 px-4 rounded-lg hover:bg-green-600 transition duration-200",children:"Add Template"})]}),n&&p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 text-sm font-bold mb-2",children:"Template Name"}),p.jsx("input",{type:"text",value:n.template_name,onChange:b=>f(b.target.value),className:"w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600 mb-2"}),n.variables.map((b,w)=>p.jsxs("div",{className:"mb-2 flex items-center",children:[p.jsxs("label",{className:"block text-gray-700 text-sm font-bold mb-2",children:["Variable ",w+1]}),p.jsx("input",{type:"text",value:b,onChange:k=>m(w,k.target.value),className:"w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600 mx-2"}),p.jsx("button",{onClick:()=>y(w),className:"bg-red-500 text-white py-2 px-4 rounded-lg hover:bg-red-600 transition duration-200",children:"Delete Variable"})]},w)),p.jsxs("div",{className:"flex items-center",children:[p.jsx("button",{onClick:h,className:"bg-blue-500 text-white py-2 px-4 rounded-lg hover:bg-blue-600 transition duration-200 mr-2",children:"Add Variable"}),p.jsx("button",{onClick:v,className:"bg-green-500 text-white py-2 px-4 rounded-lg hover:bg-green-600 transition duration-200 mr-2",children:"Submit Template"}),p.jsx("button",{onClick:g,className:"bg-red-500 text-white py-2 px-4 rounded-lg hover:bg-red-600 transition duration-200",children:"Delete Template"})]})]}),l&&p.jsx("p",{className:"mt-4 text-gray-700",children:l})]})})]})}function Jk({onSave:t}){const[e,n]=N.useState({sapUrl:"",clientId:"",clientSecret:"",username:"",password:"",companyCode:"",apiKey:""}),r=a=>{const{name:o,value:s}=a.target;n({...e,[o]:s})},i=a=>{a.preventDefault(),t(e)};return p.jsxs("div",{className:"min-h-screen bg-gray-100 flex",children:[p.jsx(kl,{}),p.jsx("div",{className:"flex-1 p-6",children:p.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-lg w-full max-w-4xl mx-auto",children:[p.jsx("h2",{className:"text-xl font-semibold text-gray-700 mb-4",children:"Manage Credentials"}),p.jsxs("form",{onSubmit:i,children:[p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 text-sm font-bold mb-2",children:"SAP System URL"}),p.jsx("input",{type:"text",name:"sapUrl",value:e.sapUrl,onChange:r,className:"w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600"})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 text-sm font-bold mb-2",children:"Client ID"}),p.jsx("input",{type:"text",name:"clientId",value:e.clientId,onChange:r,className:"w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600"})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 text-sm font-bold mb-2",children:"Client Secret"}),p.jsx("input",{type:"text",name:"clientSecret",value:e.clientSecret,onChange:r,className:"w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600"})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 text-sm font-bold mb-2",children:"Username"}),p.jsx("input",{type:"text",name:"username",value:e.username,onChange:r,className:"w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600"})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 text-sm font-bold mb-2",children:"Password"}),p.jsx("input",{type:"password",name:"password",value:e.password,onChange:r,className:"w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600"})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 text-sm font-bold mb-2",children:"Company Code"}),p.jsx("input",{type:"text",name:"companyCode",value:e.companyCode,onChange:r,className:"w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600"})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 text-sm font-bold mb-2",children:"API Key (Optional)"}),p.jsx("input",{type:"text",name:"apiKey",value:e.apiKey,onChange:r,className:"w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600"})]}),p.jsx("button",{type:"submit",className:"w-full bg-blue-500 text-white py-2 rounded-lg hover:bg-blue-600 transition duration-200",children:"Save Credentials"})]})]})})]})}const Zk=()=>{const[t,e]=N.useState([]),[n,r]=N.useState([]),[i,a]=N.useState("");N.useState({sapUrl:"",clientId:"",clientSecret:"",username:"",password:"",companyCode:"",apiKey:""});const o=async(u=!1)=>{try{const d=await Kb(u);r(d)}catch(d){console.error("Error fetching templates:",d)}},s=u=>{const d=Array.from(u.target.files),h=["application/pdf","image/png","image/jpeg","image/jpg","image/PNG","image/JPEG"],f=d.filter(m=>h.includes(m.type));e(f)},l=u=>{const d=u.target.value;a(d),console.log("selectedTemplate:",d)},c=async u=>{if(u.preventDefault(),t.length===0){alert("Please select files containing PDF, PNG, or JPG files.");return}if(!i){alert("Please select a template.");return}const d=new FormData;t.forEach(h=>d.append("files",h)),d.append("template_name",i);for(let[h,f]of d.entries())console.log(`${h}: ${f.name||f}`);try{const h=await Ck(d);console.log("Response:",h),alert("Files processed successfully!")}catch(h){console.error("Error:",h),alert("There was an error processing the files.")}};return N.useEffect(()=>{o()},[]),p.jsxs("div",{className:"min-h-screen bg-gray-100 flex",children:[p.jsx(kl,{}),p.jsxs("div",{className:"flex-1 p-6",children:[p.jsx(Xb,{}),p.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-lg w-full max-w-4xl mx-auto",children:[p.jsx("h1",{className:"text-2xl font-semibold text-gray-700 mb-4",children:"Automate Data Input & OCR"}),p.jsx("p",{className:"text-gray-600 mb-4",children:"AI services that allow you to extract information from any documents and automate data input to external applications."}),p.jsxs("div",{className:"border-t border-gray-200 pt-4",children:[p.jsx("h2",{className:"text-xl font-semibold text-gray-700 mb-4",children:"Upload PDF Folder"}),p.jsx("div",{className:"mb-4",children:p.jsx("input",{type:"file",onChange:s,multiple:!0,className:"w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600"})}),t.length>0&&p.jsxs("div",{className:"mb-4",children:[p.jsx("h3",{className:"text-lg font-semibold text-gray-700",children:"Detected PDF Files:"}),p.jsx("ul",{className:"list-disc pl-5",children:t.map((u,d)=>p.jsx("li",{className:"text-gray-600",children:u.name},d))})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 text-sm font-bold mb-2",children:"Select Template"}),p.jsxs("select",{value:i,onChange:l,className:"w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600",children:[p.jsx("option",{value:"",children:"Select a template"}),n.map((u,d)=>p.jsx("option",{value:u.template_name,children:u.template_name},d))]})]}),p.jsx("button",{onClick:c,className:"w-full bg-blue-500 text-white py-2 rounded-lg hover:bg-blue-600 transition duration-200 mb-4",children:"Process Files"})]})]})]})]})};function t_(){return p.jsx(Zk,{})}function e_(){return p.jsx(Jk,{})}function n_(){return p.jsx(Gk,{})}function r_(){const t=xi();return N.useEffect(()=>{localStorage.removeItem("token"),t("/login")},[t]),null}function dp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function O(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n-1;i--){var a=n[i],o=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=a)}return at.head.insertBefore(e,r),t}}var M_="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Aa(){for(var t=12,e="";t-- >0;)e+=M_[Math.random()*62|0];return e}function ki(t){for(var e=[],n=(t||[]).length>>>0;n--;)e[n]=t[n];return e}function oh(t){return t.classList?ki(t.classList):(t.getAttribute("class")||"").split(" ").filter(function(e){return e})}function sy(t){return"".concat(t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function j_(t){return Object.keys(t||{}).reduce(function(e,n){return e+"".concat(n,'="').concat(sy(t[n]),'" ')},"").trim()}function _l(t){return Object.keys(t||{}).reduce(function(e,n){return e+"".concat(n,": ").concat(t[n].trim(),";")},"")}function sh(t){return t.size!==Ie.size||t.x!==Ie.x||t.y!==Ie.y||t.rotate!==Ie.rotate||t.flipX||t.flipY}function O_(t){var e=t.transform,n=t.containerWidth,r=t.iconWidth,i={transform:"translate(".concat(n/2," 256)")},a="translate(".concat(e.x*32,", ").concat(e.y*32,") "),o="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),s="rotate(".concat(e.rotate," 0 0)"),l={transform:"".concat(a," ").concat(o," ").concat(s)},c={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:l,path:c}}function T_(t){var e=t.transform,n=t.width,r=n===void 0?Mu:n,i=t.height,a=i===void 0?Mu:i,o=t.startCentered,s=o===void 0?!1:o,l="";return s&&ty?l+="translate(".concat(e.x/fn-r/2,"em, ").concat(e.y/fn-a/2,"em) "):s?l+="translate(calc(-50% + ".concat(e.x/fn,"em), calc(-50% + ").concat(e.y/fn,"em)) "):l+="translate(".concat(e.x/fn,"em, ").concat(e.y/fn,"em) "),l+="scale(".concat(e.size/fn*(e.flipX?-1:1),", ").concat(e.size/fn*(e.flipY?-1:1),") "),l+="rotate(".concat(e.rotate,"deg) "),l}var R_=`:root, :host { + --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid"; + --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular"; + --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light"; + --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin"; + --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone"; + --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp"; + --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands"; +} + +svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { + overflow: visible; + box-sizing: content-box; +} + +.svg-inline--fa { + display: var(--fa-display, inline-block); + height: 1em; + overflow: visible; + vertical-align: -0.125em; +} +.svg-inline--fa.fa-2xs { + vertical-align: 0.1em; +} +.svg-inline--fa.fa-xs { + vertical-align: 0em; +} +.svg-inline--fa.fa-sm { + vertical-align: -0.0714285705em; +} +.svg-inline--fa.fa-lg { + vertical-align: -0.2em; +} +.svg-inline--fa.fa-xl { + vertical-align: -0.25em; +} +.svg-inline--fa.fa-2xl { + vertical-align: -0.3125em; +} +.svg-inline--fa.fa-pull-left { + margin-right: var(--fa-pull-margin, 0.3em); + width: auto; +} +.svg-inline--fa.fa-pull-right { + margin-left: var(--fa-pull-margin, 0.3em); + width: auto; +} +.svg-inline--fa.fa-li { + width: var(--fa-li-width, 2em); + top: 0.25em; +} +.svg-inline--fa.fa-fw { + width: var(--fa-fw-width, 1.25em); +} + +.fa-layers svg.svg-inline--fa { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; +} + +.fa-layers-counter, .fa-layers-text { + display: inline-block; + position: absolute; + text-align: center; +} + +.fa-layers { + display: inline-block; + height: 1em; + position: relative; + text-align: center; + vertical-align: -0.125em; + width: 1em; +} +.fa-layers svg.svg-inline--fa { + -webkit-transform-origin: center center; + transform-origin: center center; +} + +.fa-layers-text { + left: 50%; + top: 50%; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); + -webkit-transform-origin: center center; + transform-origin: center center; +} + +.fa-layers-counter { + background-color: var(--fa-counter-background-color, #ff253a); + border-radius: var(--fa-counter-border-radius, 1em); + box-sizing: border-box; + color: var(--fa-inverse, #fff); + line-height: var(--fa-counter-line-height, 1); + max-width: var(--fa-counter-max-width, 5em); + min-width: var(--fa-counter-min-width, 1.5em); + overflow: hidden; + padding: var(--fa-counter-padding, 0.25em 0.5em); + right: var(--fa-right, 0); + text-overflow: ellipsis; + top: var(--fa-top, 0); + -webkit-transform: scale(var(--fa-counter-scale, 0.25)); + transform: scale(var(--fa-counter-scale, 0.25)); + -webkit-transform-origin: top right; + transform-origin: top right; +} + +.fa-layers-bottom-right { + bottom: var(--fa-bottom, 0); + right: var(--fa-right, 0); + top: auto; + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: bottom right; + transform-origin: bottom right; +} + +.fa-layers-bottom-left { + bottom: var(--fa-bottom, 0); + left: var(--fa-left, 0); + right: auto; + top: auto; + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: bottom left; + transform-origin: bottom left; +} + +.fa-layers-top-right { + top: var(--fa-top, 0); + right: var(--fa-right, 0); + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: top right; + transform-origin: top right; +} + +.fa-layers-top-left { + left: var(--fa-left, 0); + right: auto; + top: var(--fa-top, 0); + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: top left; + transform-origin: top left; +} + +.fa-1x { + font-size: 1em; +} + +.fa-2x { + font-size: 2em; +} + +.fa-3x { + font-size: 3em; +} + +.fa-4x { + font-size: 4em; +} + +.fa-5x { + font-size: 5em; +} + +.fa-6x { + font-size: 6em; +} + +.fa-7x { + font-size: 7em; +} + +.fa-8x { + font-size: 8em; +} + +.fa-9x { + font-size: 9em; +} + +.fa-10x { + font-size: 10em; +} + +.fa-2xs { + font-size: 0.625em; + line-height: 0.1em; + vertical-align: 0.225em; +} + +.fa-xs { + font-size: 0.75em; + line-height: 0.0833333337em; + vertical-align: 0.125em; +} + +.fa-sm { + font-size: 0.875em; + line-height: 0.0714285718em; + vertical-align: 0.0535714295em; +} + +.fa-lg { + font-size: 1.25em; + line-height: 0.05em; + vertical-align: -0.075em; +} + +.fa-xl { + font-size: 1.5em; + line-height: 0.0416666682em; + vertical-align: -0.125em; +} + +.fa-2xl { + font-size: 2em; + line-height: 0.03125em; + vertical-align: -0.1875em; +} + +.fa-fw { + text-align: center; + width: 1.25em; +} + +.fa-ul { + list-style-type: none; + margin-left: var(--fa-li-margin, 2.5em); + padding-left: 0; +} +.fa-ul > li { + position: relative; +} + +.fa-li { + left: calc(var(--fa-li-width, 2em) * -1); + position: absolute; + text-align: center; + width: var(--fa-li-width, 2em); + line-height: inherit; +} + +.fa-border { + border-color: var(--fa-border-color, #eee); + border-radius: var(--fa-border-radius, 0.1em); + border-style: var(--fa-border-style, solid); + border-width: var(--fa-border-width, 0.08em); + padding: var(--fa-border-padding, 0.2em 0.25em 0.15em); +} + +.fa-pull-left { + float: left; + margin-right: var(--fa-pull-margin, 0.3em); +} + +.fa-pull-right { + float: right; + margin-left: var(--fa-pull-margin, 0.3em); +} + +.fa-beat { + -webkit-animation-name: fa-beat; + animation-name: fa-beat; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-bounce { + -webkit-animation-name: fa-bounce; + animation-name: fa-bounce; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); +} + +.fa-fade { + -webkit-animation-name: fa-fade; + animation-name: fa-fade; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); +} + +.fa-beat-fade { + -webkit-animation-name: fa-beat-fade; + animation-name: fa-beat-fade; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); +} + +.fa-flip { + -webkit-animation-name: fa-flip; + animation-name: fa-flip; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-shake { + -webkit-animation-name: fa-shake; + animation-name: fa-shake; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, linear); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin { + -webkit-animation-name: fa-spin; + animation-name: fa-spin; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 2s); + animation-duration: var(--fa-animation-duration, 2s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, linear); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin-reverse { + --fa-animation-direction: reverse; +} + +.fa-pulse, +.fa-spin-pulse { + -webkit-animation-name: fa-spin; + animation-name: fa-spin; + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, steps(8)); + animation-timing-function: var(--fa-animation-timing, steps(8)); +} + +@media (prefers-reduced-motion: reduce) { + .fa-beat, +.fa-bounce, +.fa-fade, +.fa-beat-fade, +.fa-flip, +.fa-pulse, +.fa-shake, +.fa-spin, +.fa-spin-pulse { + -webkit-animation-delay: -1ms; + animation-delay: -1ms; + -webkit-animation-duration: 1ms; + animation-duration: 1ms; + -webkit-animation-iteration-count: 1; + animation-iteration-count: 1; + -webkit-transition-delay: 0s; + transition-delay: 0s; + -webkit-transition-duration: 0s; + transition-duration: 0s; + } +} +@-webkit-keyframes fa-beat { + 0%, 90% { + -webkit-transform: scale(1); + transform: scale(1); + } + 45% { + -webkit-transform: scale(var(--fa-beat-scale, 1.25)); + transform: scale(var(--fa-beat-scale, 1.25)); + } +} +@keyframes fa-beat { + 0%, 90% { + -webkit-transform: scale(1); + transform: scale(1); + } + 45% { + -webkit-transform: scale(var(--fa-beat-scale, 1.25)); + transform: scale(var(--fa-beat-scale, 1.25)); + } +} +@-webkit-keyframes fa-bounce { + 0% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 10% { + -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + } + 30% { + -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); + transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); + } + 50% { + -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + } + 57% { + -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + } + 64% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 100% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } +} +@keyframes fa-bounce { + 0% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 10% { + -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + } + 30% { + -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); + transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); + } + 50% { + -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + } + 57% { + -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + } + 64% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 100% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } +} +@-webkit-keyframes fa-fade { + 50% { + opacity: var(--fa-fade-opacity, 0.4); + } +} +@keyframes fa-fade { + 50% { + opacity: var(--fa-fade-opacity, 0.4); + } +} +@-webkit-keyframes fa-beat-fade { + 0%, 100% { + opacity: var(--fa-beat-fade-opacity, 0.4); + -webkit-transform: scale(1); + transform: scale(1); + } + 50% { + opacity: 1; + -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); + transform: scale(var(--fa-beat-fade-scale, 1.125)); + } +} +@keyframes fa-beat-fade { + 0%, 100% { + opacity: var(--fa-beat-fade-opacity, 0.4); + -webkit-transform: scale(1); + transform: scale(1); + } + 50% { + opacity: 1; + -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); + transform: scale(var(--fa-beat-fade-scale, 1.125)); + } +} +@-webkit-keyframes fa-flip { + 50% { + -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + } +} +@keyframes fa-flip { + 50% { + -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + } +} +@-webkit-keyframes fa-shake { + 0% { + -webkit-transform: rotate(-15deg); + transform: rotate(-15deg); + } + 4% { + -webkit-transform: rotate(15deg); + transform: rotate(15deg); + } + 8%, 24% { + -webkit-transform: rotate(-18deg); + transform: rotate(-18deg); + } + 12%, 28% { + -webkit-transform: rotate(18deg); + transform: rotate(18deg); + } + 16% { + -webkit-transform: rotate(-22deg); + transform: rotate(-22deg); + } + 20% { + -webkit-transform: rotate(22deg); + transform: rotate(22deg); + } + 32% { + -webkit-transform: rotate(-12deg); + transform: rotate(-12deg); + } + 36% { + -webkit-transform: rotate(12deg); + transform: rotate(12deg); + } + 40%, 100% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } +} +@keyframes fa-shake { + 0% { + -webkit-transform: rotate(-15deg); + transform: rotate(-15deg); + } + 4% { + -webkit-transform: rotate(15deg); + transform: rotate(15deg); + } + 8%, 24% { + -webkit-transform: rotate(-18deg); + transform: rotate(-18deg); + } + 12%, 28% { + -webkit-transform: rotate(18deg); + transform: rotate(18deg); + } + 16% { + -webkit-transform: rotate(-22deg); + transform: rotate(-22deg); + } + 20% { + -webkit-transform: rotate(22deg); + transform: rotate(22deg); + } + 32% { + -webkit-transform: rotate(-12deg); + transform: rotate(-12deg); + } + 36% { + -webkit-transform: rotate(12deg); + transform: rotate(12deg); + } + 40%, 100% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } +} +@-webkit-keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +@keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +.fa-rotate-90 { + -webkit-transform: rotate(90deg); + transform: rotate(90deg); +} + +.fa-rotate-180 { + -webkit-transform: rotate(180deg); + transform: rotate(180deg); +} + +.fa-rotate-270 { + -webkit-transform: rotate(270deg); + transform: rotate(270deg); +} + +.fa-flip-horizontal { + -webkit-transform: scale(-1, 1); + transform: scale(-1, 1); +} + +.fa-flip-vertical { + -webkit-transform: scale(1, -1); + transform: scale(1, -1); +} + +.fa-flip-both, +.fa-flip-horizontal.fa-flip-vertical { + -webkit-transform: scale(-1, -1); + transform: scale(-1, -1); +} + +.fa-rotate-by { + -webkit-transform: rotate(var(--fa-rotate-angle, 0)); + transform: rotate(var(--fa-rotate-angle, 0)); +} + +.fa-stack { + display: inline-block; + vertical-align: middle; + height: 2em; + position: relative; + width: 2.5em; +} + +.fa-stack-1x, +.fa-stack-2x { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; + z-index: var(--fa-stack-z-index, auto); +} + +.svg-inline--fa.fa-stack-1x { + height: 1em; + width: 1.25em; +} +.svg-inline--fa.fa-stack-2x { + height: 2em; + width: 2.5em; +} + +.fa-inverse { + color: var(--fa-inverse, #fff); +} + +.sr-only, +.fa-sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} + +.sr-only-focusable:not(:focus), +.fa-sr-only-focusable:not(:focus) { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} + +.svg-inline--fa .fa-primary { + fill: var(--fa-primary-color, currentColor); + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa .fa-secondary { + fill: var(--fa-secondary-color, currentColor); + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-primary { + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-secondary { + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa mask .fa-primary, +.svg-inline--fa mask .fa-secondary { + fill: black; +} + +.fad.fa-inverse, +.fa-duotone.fa-inverse { + color: var(--fa-inverse, #fff); +}`;function ly(){var t=ey,e=ny,n=L.cssPrefix,r=L.replacementClass,i=R_;if(n!==t||r!==e){var a=new RegExp("\\.".concat(t,"\\-"),"g"),o=new RegExp("\\--".concat(t,"\\-"),"g"),s=new RegExp("\\.".concat(e),"g");i=i.replace(a,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(s,".".concat(r))}return i}var bp=!1;function uc(){L.autoAddCss&&!bp&&(P_(ly()),bp=!0)}var A_={mixout:function(){return{dom:{css:ly,insertCss:uc}}},hooks:function(){return{beforeDOMElementCreation:function(){uc()},beforeI2svg:function(){uc()}}}},sn=Fn||{};sn[on]||(sn[on]={});sn[on].styles||(sn[on].styles={});sn[on].hooks||(sn[on].hooks={});sn[on].shims||(sn[on].shims=[]);var Se=sn[on],cy=[],L_=function t(){at.removeEventListener("DOMContentLoaded",t),Vs=1,cy.map(function(e){return e()})},Vs=!1;un&&(Vs=(at.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(at.readyState),Vs||at.addEventListener("DOMContentLoaded",L_));function D_(t){un&&(Vs?setTimeout(t,0):cy.push(t))}function Za(t){var e=t.tag,n=t.attributes,r=n===void 0?{}:n,i=t.children,a=i===void 0?[]:i;return typeof t=="string"?sy(t):"<".concat(e," ").concat(j_(r),">").concat(a.map(Za).join(""),"")}function yp(t,e,n){if(t&&t[e]&&t[e][n])return{prefix:e,iconName:n,icon:t[e][n]}}var dc=function(t,e,n,r){var i=Object.keys(t),a=i.length,o=e,s,l,c;for(n===void 0?(s=1,c=t[i[0]]):(s=0,c=n);s=55296&&i<=56319&&n=55296&&r<=56319&&n>e+1&&(i=t.charCodeAt(e+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function xp(t){return Object.keys(t).reduce(function(e,n){var r=t[n],i=!!r.icon;return i?e[r.iconName]=r.icon:e[n]=r,e},{})}function Ou(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,i=r===void 0?!1:r,a=xp(e);typeof Se.hooks.addPack=="function"&&!i?Se.hooks.addPack(t,xp(e)):Se.styles[t]=O(O({},Se.styles[t]||{}),a),t==="fas"&&Ou("fa",e)}var No,Po,Mo,Yr=Se.styles,F_=Se.shims,B_=(No={},St(No,rt,Object.values(Ta[rt])),St(No,pt,Object.values(Ta[pt])),No),lh=null,dy={},hy={},fy={},py={},my={},U_=(Po={},St(Po,rt,Object.keys(ja[rt])),St(Po,pt,Object.keys(ja[pt])),Po);function V_(t){return~__.indexOf(t)}function H_(t,e){var n=e.split("-"),r=n[0],i=n.slice(1).join("-");return r===t&&i!==""&&!V_(i)?i:null}var gy=function(){var t=function(r){return dc(Yr,function(i,a,o){return i[o]=dc(a,r,{}),i},{})};dy=t(function(r,i,a){if(i[3]&&(r[i[3]]=a),i[2]){var o=i[2].filter(function(s){return typeof s=="number"});o.forEach(function(s){r[s.toString(16)]=a})}return r}),hy=t(function(r,i,a){if(r[a]=a,i[2]){var o=i[2].filter(function(s){return typeof s=="string"});o.forEach(function(s){r[s]=a})}return r}),my=t(function(r,i,a){var o=i[2];return r[a]=a,o.forEach(function(s){r[s]=a}),r});var e="far"in Yr||L.autoFetchSvg,n=dc(F_,function(r,i){var a=i[0],o=i[1],s=i[2];return o==="far"&&!e&&(o="fas"),typeof a=="string"&&(r.names[a]={prefix:o,iconName:s}),typeof a=="number"&&(r.unicodes[a.toString(16)]={prefix:o,iconName:s}),r},{names:{},unicodes:{}});fy=n.names,py=n.unicodes,lh=Sl(L.styleDefault,{family:L.familyDefault})};N_(function(t){lh=Sl(t.styleDefault,{family:L.familyDefault})});gy();function ch(t,e){return(dy[t]||{})[e]}function W_(t,e){return(hy[t]||{})[e]}function lr(t,e){return(my[t]||{})[e]}function by(t){return fy[t]||{prefix:null,iconName:null}}function $_(t){var e=py[t],n=ch("fas",t);return e||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Bn(){return lh}var uh=function(){return{prefix:null,iconName:null,rest:[]}};function Sl(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.family,r=n===void 0?rt:n,i=ja[r][t],a=Oa[r][t]||Oa[r][i],o=t in Se.styles?t:null;return a||o||null}var vp=(Mo={},St(Mo,rt,Object.keys(Ta[rt])),St(Mo,pt,Object.keys(Ta[pt])),Mo);function Cl(t){var e,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,i=r===void 0?!1:r,a=(e={},St(e,rt,"".concat(L.cssPrefix,"-").concat(rt)),St(e,pt,"".concat(L.cssPrefix,"-").concat(pt)),e),o=null,s=rt;(t.includes(a[rt])||t.some(function(c){return vp[rt].includes(c)}))&&(s=rt),(t.includes(a[pt])||t.some(function(c){return vp[pt].includes(c)}))&&(s=pt);var l=t.reduce(function(c,u){var d=H_(L.cssPrefix,u);if(Yr[u]?(u=B_[s].includes(u)?b_[s][u]:u,o=u,c.prefix=u):U_[s].indexOf(u)>-1?(o=u,c.prefix=Sl(u,{family:s})):d?c.iconName=d:u!==L.replacementClass&&u!==a[rt]&&u!==a[pt]&&c.rest.push(u),!i&&c.prefix&&c.iconName){var h=o==="fa"?by(c.iconName):{},f=lr(c.prefix,c.iconName);h.prefix&&(o=null),c.iconName=h.iconName||f||c.iconName,c.prefix=h.prefix||c.prefix,c.prefix==="far"&&!Yr.far&&Yr.fas&&!L.autoFetchSvg&&(c.prefix="fas")}return c},uh());return(t.includes("fa-brands")||t.includes("fab"))&&(l.prefix="fab"),(t.includes("fa-duotone")||t.includes("fad"))&&(l.prefix="fad"),!l.prefix&&s===pt&&(Yr.fass||L.autoFetchSvg)&&(l.prefix="fass",l.iconName=lr(l.prefix,l.iconName)||l.iconName),(l.prefix==="fa"||o==="fa")&&(l.prefix=Bn()||"fas"),l}var Y_=function(){function t(){i_(this,t),this.definitions={}}return o_(t,[{key:"add",value:function(){for(var e=this,n=arguments.length,r=new Array(n),i=0;i0&&c.forEach(function(u){typeof u=="string"&&(e[o][u]=l)}),e[o][s]=l}),e}}]),t}(),wp=[],qr={},ei={},q_=Object.keys(ei);function K_(t,e){var n=e.mixoutsTo;return wp=t,qr={},Object.keys(ei).forEach(function(r){q_.indexOf(r)===-1&&delete ei[r]}),wp.forEach(function(r){var i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(function(o){typeof i[o]=="function"&&(n[o]=i[o]),Us(i[o])==="object"&&Object.keys(i[o]).forEach(function(s){n[o]||(n[o]={}),n[o][s]=i[o][s]})}),r.hooks){var a=r.hooks();Object.keys(a).forEach(function(o){qr[o]||(qr[o]=[]),qr[o].push(a[o])})}r.provides&&r.provides(ei)}),n}function Tu(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i1?e-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:{};return un?(Sr("beforeI2svg",t),ln("pseudoElements2svg",t),ln("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.autoReplaceSvgRoot;L.autoReplaceSvg===!1&&(L.autoReplaceSvg=!0),L.observeMutations=!0,D_(function(){J_({autoReplaceSvgRoot:e}),Sr("watch",t)})}},G_={icon:function(t){if(t===null)return null;if(Us(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:lr(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var e=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],n=Sl(t[0]);return{prefix:n,iconName:lr(n,e)||e}}if(typeof t=="string"&&(t.indexOf("".concat(L.cssPrefix,"-"))>-1||t.match(y_))){var r=Cl(t.split(" "),{skipLookups:!0});return{prefix:r.prefix||Bn(),iconName:lr(r.prefix,r.iconName)||r.iconName}}if(typeof t=="string"){var i=Bn();return{prefix:i,iconName:lr(i,t)||t}}}},le={noAuto:X_,config:L,dom:Q_,parse:G_,library:yy,findIconDefinition:Ru,toHtml:Za},J_=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.autoReplaceSvgRoot,n=e===void 0?at:e;(Object.keys(Se.styles).length>0||L.autoFetchSvg)&&un&&L.autoReplaceSvg&&le.dom.i2svg({node:n})};function El(t,e){return Object.defineProperty(t,"abstract",{get:e}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map(function(n){return Za(n)})}}),Object.defineProperty(t,"node",{get:function(){if(un){var n=at.createElement("div");return n.innerHTML=t.html,n.children}}}),t}function Z_(t){var e=t.children,n=t.main,r=t.mask,i=t.attributes,a=t.styles,o=t.transform;if(sh(o)&&n.found&&!r.found){var s=n.width,l=n.height,c={x:s/l/2,y:.5};i.style=_l(O(O({},a),{},{"transform-origin":"".concat(c.x+o.x/16,"em ").concat(c.y+o.y/16,"em")}))}return[{tag:"svg",attributes:i,children:e}]}function tS(t){var e=t.prefix,n=t.iconName,r=t.children,i=t.attributes,a=t.symbol,o=a===!0?"".concat(e,"-").concat(L.cssPrefix,"-").concat(n):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:O(O({},i),{},{id:o}),children:r}]}]}function dh(t){var e=t.icons,n=e.main,r=e.mask,i=t.prefix,a=t.iconName,o=t.transform,s=t.symbol,l=t.title,c=t.maskId,u=t.titleId,d=t.extra,h=t.watchable,f=h===void 0?!1:h,m=r.found?r:n,x=m.width,v=m.height,g=i==="fak",y=[L.replacementClass,a?"".concat(L.cssPrefix,"-").concat(a):""].filter(function(A){return d.classes.indexOf(A)===-1}).filter(function(A){return A!==""||!!A}).concat(d.classes).join(" "),b={children:[],attributes:O(O({},d.attributes),{},{"data-prefix":i,"data-icon":a,class:y,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(x," ").concat(v)})},w=g&&!~d.classes.indexOf("fa-fw")?{width:"".concat(x/v*16*.0625,"em")}:{};f&&(b.attributes[_r]=""),l&&(b.children.push({tag:"title",attributes:{id:b.attributes["aria-labelledby"]||"title-".concat(u||Aa())},children:[l]}),delete b.attributes.title);var k=O(O({},b),{},{prefix:i,iconName:a,main:n,mask:r,maskId:c,transform:o,symbol:s,styles:O(O({},w),d.styles)}),_=r.found&&n.found?ln("generateAbstractMask",k)||{children:[],attributes:{}}:ln("generateAbstractIcon",k)||{children:[],attributes:{}},C=_.children,E=_.attributes;return k.children=C,k.attributes=E,s?tS(k):Z_(k)}function kp(t){var e=t.content,n=t.width,r=t.height,i=t.transform,a=t.title,o=t.extra,s=t.watchable,l=s===void 0?!1:s,c=O(O(O({},o.attributes),a?{title:a}:{}),{},{class:o.classes.join(" ")});l&&(c[_r]="");var u=O({},o.styles);sh(i)&&(u.transform=T_({transform:i,startCentered:!0,width:n,height:r}),u["-webkit-transform"]=u.transform);var d=_l(u);d.length>0&&(c.style=d);var h=[];return h.push({tag:"span",attributes:c,children:[e]}),a&&h.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),h}function eS(t){var e=t.content,n=t.title,r=t.extra,i=O(O(O({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),a=_l(r.styles);a.length>0&&(i.style=a);var o=[];return o.push({tag:"span",attributes:i,children:[e]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}var hc=Se.styles;function Au(t){var e=t[0],n=t[1],r=t.slice(4),i=eh(r,1),a=i[0],o=null;return Array.isArray(a)?o={tag:"g",attributes:{class:"".concat(L.cssPrefix,"-").concat(sr.GROUP)},children:[{tag:"path",attributes:{class:"".concat(L.cssPrefix,"-").concat(sr.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(L.cssPrefix,"-").concat(sr.PRIMARY),fill:"currentColor",d:a[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:a}},{found:!0,width:e,height:n,icon:o}}var nS={found:!1,width:512,height:512};function rS(t,e){!ry&&!L.showMissingIcons&&t&&console.error('Icon with name "'.concat(t,'" and prefix "').concat(e,'" is missing.'))}function Lu(t,e){var n=e;return e==="fa"&&L.styleDefault!==null&&(e=Bn()),new Promise(function(r,i){if(ln("missingIconAbstract"),n==="fa"){var a=by(t)||{};t=a.iconName||t,e=a.prefix||e}if(t&&e&&hc[e]&&hc[e][t]){var o=hc[e][t];return r(Au(o))}rS(t,e),r(O(O({},nS),{},{icon:L.showMissingIcons&&t?ln("missingIconAbstract")||{}:{}}))})}var _p=function(){},Du=L.measurePerformance&&wo&&wo.mark&&wo.measure?wo:{mark:_p,measure:_p},Vi='FA "6.5.2"',iS=function(t){return Du.mark("".concat(Vi," ").concat(t," begins")),function(){return xy(t)}},xy=function(t){Du.mark("".concat(Vi," ").concat(t," ends")),Du.measure("".concat(Vi," ").concat(t),"".concat(Vi," ").concat(t," begins"),"".concat(Vi," ").concat(t," ends"))},hh={begin:iS,end:xy},as=function(){};function Sp(t){var e=t.getAttribute?t.getAttribute(_r):null;return typeof e=="string"}function aS(t){var e=t.getAttribute?t.getAttribute(rh):null,n=t.getAttribute?t.getAttribute(ih):null;return e&&n}function oS(t){return t&&t.classList&&t.classList.contains&&t.classList.contains(L.replacementClass)}function sS(){if(L.autoReplaceSvg===!0)return os.replace;var t=os[L.autoReplaceSvg];return t||os.replace}function lS(t){return at.createElementNS("http://www.w3.org/2000/svg",t)}function cS(t){return at.createElement(t)}function vy(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.ceFn,r=n===void 0?t.tag==="svg"?lS:cS:n;if(typeof t=="string")return at.createTextNode(t);var i=r(t.tag);Object.keys(t.attributes||[]).forEach(function(o){i.setAttribute(o,t.attributes[o])});var a=t.children||[];return a.forEach(function(o){i.appendChild(vy(o,{ceFn:r}))}),i}function uS(t){var e=" ".concat(t.outerHTML," ");return e="".concat(e,"Font Awesome fontawesome.com "),e}var os={replace:function(t){var e=t[0];if(e.parentNode)if(t[1].forEach(function(r){e.parentNode.insertBefore(vy(r),e)}),e.getAttribute(_r)===null&&L.keepOriginalSource){var n=at.createComment(uS(e));e.parentNode.replaceChild(n,e)}else e.remove()},nest:function(t){var e=t[0],n=t[1];if(~oh(e).indexOf(L.replacementClass))return os.replace(t);var r=new RegExp("".concat(L.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var i=n[0].attributes.class.split(" ").reduce(function(o,s){return s===L.replacementClass||s.match(r)?o.toSvg.push(s):o.toNode.push(s),o},{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?e.removeAttribute("class"):e.setAttribute("class",i.toNode.join(" "))}var a=n.map(function(o){return Za(o)}).join(` +`);e.setAttribute(_r,""),e.innerHTML=a}};function Cp(t){t()}function wy(t,e){var n=typeof e=="function"?e:as;if(t.length===0)n();else{var r=Cp;L.mutateApproach===m_&&(r=Fn.requestAnimationFrame||Cp),r(function(){var i=sS(),a=hh.begin("mutate");t.map(i),a(),n()})}}var fh=!1;function ky(){fh=!0}function zu(){fh=!1}var Hs=null;function Ep(t){if(mp&&L.observeMutations){var e=t.treeCallback,n=e===void 0?as:e,r=t.nodeCallback,i=r===void 0?as:r,a=t.pseudoElementsCallback,o=a===void 0?as:a,s=t.observeMutationsRoot,l=s===void 0?at:s;Hs=new mp(function(c){if(!fh){var u=Bn();ki(c).forEach(function(d){if(d.type==="childList"&&d.addedNodes.length>0&&!Sp(d.addedNodes[0])&&(L.searchPseudoElements&&o(d.target),n(d.target)),d.type==="attributes"&&d.target.parentNode&&L.searchPseudoElements&&o(d.target.parentNode),d.type==="attributes"&&Sp(d.target)&&~k_.indexOf(d.attributeName))if(d.attributeName==="class"&&aS(d.target)){var h=Cl(oh(d.target)),f=h.prefix,m=h.iconName;d.target.setAttribute(rh,f||u),m&&d.target.setAttribute(ih,m)}else oS(d.target)&&i(d.target)})}}),un&&Hs.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function dS(){Hs&&Hs.disconnect()}function hS(t){var e=t.getAttribute("style"),n=[];return e&&(n=e.split(";").reduce(function(r,i){var a=i.split(":"),o=a[0],s=a.slice(1);return o&&s.length>0&&(r[o]=s.join(":").trim()),r},{})),n}function fS(t){var e=t.getAttribute("data-prefix"),n=t.getAttribute("data-icon"),r=t.innerText!==void 0?t.innerText.trim():"",i=Cl(oh(t));return i.prefix||(i.prefix=Bn()),e&&n&&(i.prefix=e,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=W_(i.prefix,t.innerText)||ch(i.prefix,uy(t.innerText))),!i.iconName&&L.autoFetchSvg&&t.firstChild&&t.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=t.firstChild.data)),i}function pS(t){var e=ki(t.attributes).reduce(function(i,a){return i.name!=="class"&&i.name!=="style"&&(i[a.name]=a.value),i},{}),n=t.getAttribute("title"),r=t.getAttribute("data-fa-title-id");return L.autoA11y&&(n?e["aria-labelledby"]="".concat(L.replacementClass,"-title-").concat(r||Aa()):(e["aria-hidden"]="true",e.focusable="false")),e}function mS(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Ie,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Np(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=fS(t),r=n.iconName,i=n.prefix,a=n.rest,o=pS(t),s=Tu("parseNodeAttributes",{},t),l=e.styleParser?hS(t):[];return O({iconName:r,title:t.getAttribute("title"),titleId:t.getAttribute("data-fa-title-id"),prefix:i,transform:Ie,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:l,attributes:o}},s)}var gS=Se.styles;function _y(t){var e=L.autoReplaceSvg==="nest"?Np(t,{styleParser:!1}):Np(t);return~e.extra.classes.indexOf(iy)?ln("generateLayersText",t,e):ln("generateSvgReplacementMutation",t,e)}var Un=new Set;ah.map(function(t){Un.add("fa-".concat(t))});Object.keys(ja[rt]).map(Un.add.bind(Un));Object.keys(ja[pt]).map(Un.add.bind(Un));Un=Ga(Un);function Pp(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!un)return Promise.resolve();var n=at.documentElement.classList,r=function(u){return n.add("".concat(gp,"-").concat(u))},i=function(u){return n.remove("".concat(gp,"-").concat(u))},a=L.autoFetchSvg?Un:ah.map(function(u){return"fa-".concat(u)}).concat(Object.keys(gS));a.includes("fa")||a.push("fa");var o=[".".concat(iy,":not([").concat(_r,"])")].concat(a.map(function(u){return".".concat(u,":not([").concat(_r,"])")})).join(", ");if(o.length===0)return Promise.resolve();var s=[];try{s=ki(t.querySelectorAll(o))}catch{}if(s.length>0)r("pending"),i("complete");else return Promise.resolve();var l=hh.begin("onTree"),c=s.reduce(function(u,d){try{var h=_y(d);h&&u.push(h)}catch(f){ry||f.name==="MissingIcon"&&console.error(f)}return u},[]);return new Promise(function(u,d){Promise.all(c).then(function(h){wy(h,function(){r("active"),r("complete"),i("pending"),typeof e=="function"&&e(),l(),u()})}).catch(function(h){l(),d(h)})})}function bS(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;_y(t).then(function(n){n&&wy([n],e)})}function yS(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(e||{}).icon?e:Ru(e||{}),i=n.mask;return i&&(i=(i||{}).icon?i:Ru(i||{})),t(r,O(O({},n),{},{mask:i}))}}var xS=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.transform,r=n===void 0?Ie:n,i=e.symbol,a=i===void 0?!1:i,o=e.mask,s=o===void 0?null:o,l=e.maskId,c=l===void 0?null:l,u=e.title,d=u===void 0?null:u,h=e.titleId,f=h===void 0?null:h,m=e.classes,x=m===void 0?[]:m,v=e.attributes,g=v===void 0?{}:v,y=e.styles,b=y===void 0?{}:y;if(t){var w=t.prefix,k=t.iconName,_=t.icon;return El(O({type:"icon"},t),function(){return Sr("beforeDOMElementCreation",{iconDefinition:t,params:e}),L.autoA11y&&(d?g["aria-labelledby"]="".concat(L.replacementClass,"-title-").concat(f||Aa()):(g["aria-hidden"]="true",g.focusable="false")),dh({icons:{main:Au(_),mask:s?Au(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:w,iconName:k,transform:O(O({},Ie),r),symbol:a,title:d,maskId:c,titleId:f,extra:{attributes:g,styles:b,classes:x}})})}},vS={mixout:function(){return{icon:yS(xS)}},hooks:function(){return{mutationObserverCallbacks:function(t){return t.treeCallback=Pp,t.nodeCallback=bS,t}}},provides:function(t){t.i2svg=function(e){var n=e.node,r=n===void 0?at:n,i=e.callback,a=i===void 0?function(){}:i;return Pp(r,a)},t.generateSvgReplacementMutation=function(e,n){var r=n.iconName,i=n.title,a=n.titleId,o=n.prefix,s=n.transform,l=n.symbol,c=n.mask,u=n.maskId,d=n.extra;return new Promise(function(h,f){Promise.all([Lu(r,o),c.iconName?Lu(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(m){var x=eh(m,2),v=x[0],g=x[1];h([e,dh({icons:{main:v,mask:g},prefix:o,iconName:r,transform:s,symbol:l,maskId:u,title:i,titleId:a,extra:d,watchable:!0})])}).catch(f)})},t.generateAbstractIcon=function(e){var n=e.children,r=e.attributes,i=e.main,a=e.transform,o=e.styles,s=_l(o);s.length>0&&(r.style=s);var l;return sh(a)&&(l=ln("generateAbstractTransformGrouping",{main:i,transform:a,containerWidth:i.width,iconWidth:i.width})),n.push(l||i.icon),{children:n,attributes:r}}}},wS={mixout:function(){return{layer:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.classes,r=n===void 0?[]:n;return El({type:"layer"},function(){Sr("beforeDOMElementCreation",{assembler:t,params:e});var i=[];return t(function(a){Array.isArray(a)?a.map(function(o){i=i.concat(o.abstract)}):i=i.concat(a.abstract)}),[{tag:"span",attributes:{class:["".concat(L.cssPrefix,"-layers")].concat(Ga(r)).join(" ")},children:i}]})}}}},kS={mixout:function(){return{counter:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.title,r=n===void 0?null:n,i=e.classes,a=i===void 0?[]:i,o=e.attributes,s=o===void 0?{}:o,l=e.styles,c=l===void 0?{}:l;return El({type:"counter",content:t},function(){return Sr("beforeDOMElementCreation",{content:t,params:e}),eS({content:t.toString(),title:r,extra:{attributes:s,styles:c,classes:["".concat(L.cssPrefix,"-layers-counter")].concat(Ga(a))}})})}}}},_S={mixout:function(){return{text:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.transform,r=n===void 0?Ie:n,i=e.title,a=i===void 0?null:i,o=e.classes,s=o===void 0?[]:o,l=e.attributes,c=l===void 0?{}:l,u=e.styles,d=u===void 0?{}:u;return El({type:"text",content:t},function(){return Sr("beforeDOMElementCreation",{content:t,params:e}),kp({content:t,transform:O(O({},Ie),r),title:a,extra:{attributes:c,styles:d,classes:["".concat(L.cssPrefix,"-layers-text")].concat(Ga(s))}})})}}},provides:function(t){t.generateLayersText=function(e,n){var r=n.title,i=n.transform,a=n.extra,o=null,s=null;if(ty){var l=parseInt(getComputedStyle(e).fontSize,10),c=e.getBoundingClientRect();o=c.width/l,s=c.height/l}return L.autoA11y&&!r&&(a.attributes["aria-hidden"]="true"),Promise.resolve([e,kp({content:e.innerHTML,width:o,height:s,transform:i,title:r,extra:a,watchable:!0})])}}},SS=new RegExp('"',"ug"),Mp=[1105920,1112319];function CS(t){var e=t.replace(SS,""),n=I_(e,0),r=n>=Mp[0]&&n<=Mp[1],i=e.length===2?e[0]===e[1]:!1;return{value:uy(i?e[0]:e),isSecondary:r||i}}function jp(t,e){var n="".concat(p_).concat(e.replace(":","-"));return new Promise(function(r,i){if(t.getAttribute(n)!==null)return r();var a=ki(t.children),o=a.filter(function(C){return C.getAttribute(ju)===e})[0],s=Fn.getComputedStyle(t,e),l=s.getPropertyValue("font-family").match(x_),c=s.getPropertyValue("font-weight"),u=s.getPropertyValue("content");if(o&&!l)return t.removeChild(o),r();if(l&&u!=="none"&&u!==""){var d=s.getPropertyValue("content"),h=~["Sharp"].indexOf(l[2])?pt:rt,f=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?Oa[h][l[2].toLowerCase()]:v_[h][c],m=CS(d),x=m.value,v=m.isSecondary,g=l[0].startsWith("FontAwesome"),y=ch(f,x),b=y;if(g){var w=$_(x);w.iconName&&w.prefix&&(y=w.iconName,f=w.prefix)}if(y&&!v&&(!o||o.getAttribute(rh)!==f||o.getAttribute(ih)!==b)){t.setAttribute(n,b),o&&t.removeChild(o);var k=mS(),_=k.extra;_.attributes[ju]=e,Lu(y,f).then(function(C){var E=dh(O(O({},k),{},{icons:{main:C,mask:uh()},prefix:f,iconName:b,extra:_,watchable:!0})),A=at.createElementNS("http://www.w3.org/2000/svg","svg");e==="::before"?t.insertBefore(A,t.firstChild):t.appendChild(A),A.outerHTML=E.map(function(M){return Za(M)}).join(` +`),t.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function ES(t){return Promise.all([jp(t,"::before"),jp(t,"::after")])}function NS(t){return t.parentNode!==document.head&&!~g_.indexOf(t.tagName.toUpperCase())&&!t.getAttribute(ju)&&(!t.parentNode||t.parentNode.tagName!=="svg")}function Op(t){if(un)return new Promise(function(e,n){var r=ki(t.querySelectorAll("*")).filter(NS).map(ES),i=hh.begin("searchPseudoElements");ky(),Promise.all(r).then(function(){i(),zu(),e()}).catch(function(){i(),zu(),n()})})}var PS={hooks:function(){return{mutationObserverCallbacks:function(t){return t.pseudoElementsCallback=Op,t}}},provides:function(t){t.pseudoElements2svg=function(e){var n=e.node,r=n===void 0?at:n;L.searchPseudoElements&&Op(r)}}},Tp=!1,MS={mixout:function(){return{dom:{unwatch:function(){ky(),Tp=!0}}}},hooks:function(){return{bootstrap:function(){Ep(Tu("mutationObserverCallbacks",{}))},noAuto:function(){dS()},watch:function(t){var e=t.observeMutationsRoot;Tp?zu():Ep(Tu("mutationObserverCallbacks",{observeMutationsRoot:e}))}}}},Rp=function(t){var e={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(n,r){var i=r.toLowerCase().split("-"),a=i[0],o=i.slice(1).join("-");if(a&&o==="h")return n.flipX=!0,n;if(a&&o==="v")return n.flipY=!0,n;if(o=parseFloat(o),isNaN(o))return n;switch(a){case"grow":n.size=n.size+o;break;case"shrink":n.size=n.size-o;break;case"left":n.x=n.x-o;break;case"right":n.x=n.x+o;break;case"up":n.y=n.y-o;break;case"down":n.y=n.y+o;break;case"rotate":n.rotate=n.rotate+o;break}return n},e)},jS={mixout:function(){return{parse:{transform:function(t){return Rp(t)}}}},hooks:function(){return{parseNodeAttributes:function(t,e){var n=e.getAttribute("data-fa-transform");return n&&(t.transform=Rp(n)),t}}},provides:function(t){t.generateAbstractTransformGrouping=function(e){var n=e.main,r=e.transform,i=e.containerWidth,a=e.iconWidth,o={transform:"translate(".concat(i/2," 256)")},s="translate(".concat(r.x*32,", ").concat(r.y*32,") "),l="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),c="rotate(".concat(r.rotate," 0 0)"),u={transform:"".concat(s," ").concat(l," ").concat(c)},d={transform:"translate(".concat(a/2*-1," -256)")},h={outer:o,inner:u,path:d};return{tag:"g",attributes:O({},h.outer),children:[{tag:"g",attributes:O({},h.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:O(O({},n.icon.attributes),h.path)}]}]}}}},fc={x:0,y:0,width:"100%",height:"100%"};function Ap(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return t.attributes&&(t.attributes.fill||e)&&(t.attributes.fill="black"),t}function OS(t){return t.tag==="g"?t.children:[t]}var TS={hooks:function(){return{parseNodeAttributes:function(t,e){var n=e.getAttribute("data-fa-mask"),r=n?Cl(n.split(" ").map(function(i){return i.trim()})):uh();return r.prefix||(r.prefix=Bn()),t.mask=r,t.maskId=e.getAttribute("data-fa-mask-id"),t}}},provides:function(t){t.generateAbstractMask=function(e){var n=e.children,r=e.attributes,i=e.main,a=e.mask,o=e.maskId,s=e.transform,l=i.width,c=i.icon,u=a.width,d=a.icon,h=O_({transform:s,containerWidth:u,iconWidth:l}),f={tag:"rect",attributes:O(O({},fc),{},{fill:"white"})},m=c.children?{children:c.children.map(Ap)}:{},x={tag:"g",attributes:O({},h.inner),children:[Ap(O({tag:c.tag,attributes:O(O({},c.attributes),h.path)},m))]},v={tag:"g",attributes:O({},h.outer),children:[x]},g="mask-".concat(o||Aa()),y="clip-".concat(o||Aa()),b={tag:"mask",attributes:O(O({},fc),{},{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[f,v]},w={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:OS(d)},b]};return n.push(w,{tag:"rect",attributes:O({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(g,")")},fc)}),{children:n,attributes:r}}}},RS={provides:function(t){var e=!1;Fn.matchMedia&&(e=Fn.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var n=[],r={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:O(O({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var a=O(O({},i),{},{attributeName:"opacity"}),o={tag:"circle",attributes:O(O({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return e||o.children.push({tag:"animate",attributes:O(O({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:O(O({},a),{},{values:"1;0;1;1;0;1;"})}),n.push(o),n.push({tag:"path",attributes:O(O({},r),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:e?[]:[{tag:"animate",attributes:O(O({},a),{},{values:"1;0;0;0;0;1;"})}]}),e||n.push({tag:"path",attributes:O(O({},r),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:O(O({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},AS={hooks:function(){return{parseNodeAttributes:function(t,e){var n=e.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return t.symbol=r,t}}}},LS=[A_,vS,wS,kS,_S,PS,MS,jS,TS,RS,AS];K_(LS,{mixoutsTo:le});le.noAuto;le.config;le.library;le.dom;var Iu=le.parse;le.findIconDefinition;le.toHtml;var DS=le.icon;le.layer;le.text;le.counter;var Sy={exports:{}},zS="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",IS=zS,FS=IS;function Cy(){}function Ey(){}Ey.resetWarningCache=Cy;var BS=function(){function t(r,i,a,o,s,l){if(l!==FS){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:Ey,resetWarningCache:Cy};return n.PropTypes=n,n};Sy.exports=BS();var US=Sy.exports;const H=eg(US);function Lp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function De(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function HS(t,e){if(t==null)return{};var n=VS(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Fu(t){return WS(t)||$S(t)||YS(t)||qS()}function WS(t){if(Array.isArray(t))return Bu(t)}function $S(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function YS(t,e){if(t){if(typeof t=="string")return Bu(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bu(t,e)}}function Bu(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string")return e;var r=(e.children||[]).map(function(l){return Py(t,l)}),i=Object.keys(e.attributes||{}).reduce(function(l,c){var u=e.attributes[c];switch(c){case"class":l.attrs.className=u,delete e.attributes.class;break;case"style":l.attrs.style=JS(u);break;default:c.indexOf("aria-")===0||c.indexOf("data-")===0?l.attrs[c.toLowerCase()]=u:l.attrs[Ny(c)]=u}return l},{attrs:{}}),a=n.style,o=a===void 0?{}:a,s=HS(n,QS);return i.attrs.style=De(De({},i.attrs.style),o),t.apply(void 0,[e.tag,De(De({},i.attrs),s)].concat(Fu(r)))}var My=!1;try{My=!0}catch{}function ZS(){if(!My&&console&&typeof console.error=="function"){var t;(t=console).error.apply(t,arguments)}}function Dp(t){if(t&&Ws(t)==="object"&&t.prefix&&t.iconName&&t.icon)return t;if(Iu.icon)return Iu.icon(t);if(t===null)return null;if(t&&Ws(t)==="object"&&t.prefix&&t.iconName)return t;if(Array.isArray(t)&&t.length===2)return{prefix:t[0],iconName:t[1]};if(typeof t=="string")return{prefix:"fas",iconName:t}}function pc(t,e){return Array.isArray(e)&&e.length>0||!Array.isArray(e)&&e?Kr({},t,e):{}}var zp={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},rr=pi.forwardRef(function(t,e){var n=De(De({},zp),t),r=n.icon,i=n.mask,a=n.symbol,o=n.className,s=n.title,l=n.titleId,c=n.maskId,u=Dp(r),d=pc("classes",[].concat(Fu(KS(n)),Fu((o||"").split(" ")))),h=pc("transform",typeof n.transform=="string"?Iu.transform(n.transform):n.transform),f=pc("mask",Dp(i)),m=DS(u,De(De(De(De({},d),h),f),{},{symbol:a,title:s,titleId:l,maskId:c}));if(!m)return ZS("Could not find icon",u),null;var x=m.abstract,v={ref:e};return Object.keys(n).forEach(function(g){zp.hasOwnProperty(g)||(v[g]=n[g])}),t5(x[0],v)});rr.displayName="FontAwesomeIcon";rr.propTypes={beat:H.bool,border:H.bool,beatFade:H.bool,bounce:H.bool,className:H.string,fade:H.bool,flash:H.bool,mask:H.oneOfType([H.object,H.array,H.string]),maskId:H.string,fixedWidth:H.bool,inverse:H.bool,flip:H.oneOf([!0,!1,"horizontal","vertical","both"]),icon:H.oneOfType([H.object,H.array,H.string]),listItem:H.bool,pull:H.oneOf(["right","left"]),pulse:H.bool,rotation:H.oneOf([0,90,180,270]),shake:H.bool,size:H.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:H.bool,spinPulse:H.bool,spinReverse:H.bool,symbol:H.oneOfType([H.bool,H.string]),title:H.string,titleId:H.string,transform:H.oneOfType([H.string,H.object]),swapOpacity:H.bool};var t5=Py.bind(null,pi.createElement),e5={prefix:"fas",iconName:"star",icon:[576,512,[11088,61446],"f005","M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z"]},n5={prefix:"fas",iconName:"arrows-rotate",icon:[512,512,[128472,"refresh","sync"],"f021","M105.1 202.6c7.7-21.8 20.2-42.3 37.8-59.8c62.5-62.5 163.8-62.5 226.3 0L386.3 160H352c-17.7 0-32 14.3-32 32s14.3 32 32 32H463.5c0 0 0 0 0 0h.4c17.7 0 32-14.3 32-32V80c0-17.7-14.3-32-32-32s-32 14.3-32 32v35.2L414.4 97.6c-87.5-87.5-229.3-87.5-316.8 0C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5zM39 289.3c-5 1.5-9.8 4.2-13.7 8.2c-4 4-6.7 8.8-8.1 14c-.3 1.2-.6 2.5-.8 3.8c-.3 1.7-.4 3.4-.4 5.1V432c0 17.7 14.3 32 32 32s32-14.3 32-32V396.9l17.6 17.5 0 0c87.5 87.4 229.3 87.4 316.7 0c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.5 62.5-163.8 62.5-226.3 0l-.1-.1L125.6 352H160c17.7 0 32-14.3 32-32s-14.3-32-32-32H48.4c-1.6 0-3.2 .1-4.8 .3s-3.1 .5-4.6 1z"]},r5=n5,i5={prefix:"fas",iconName:"volume-high",icon:[640,512,[128266,"volume-up"],"f028","M533.6 32.5C598.5 85.2 640 165.8 640 256s-41.5 170.7-106.4 223.5c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C557.5 398.2 592 331.2 592 256s-34.5-142.2-88.7-186.3c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zM473.1 107c43.2 35.2 70.9 88.9 70.9 149s-27.7 113.8-70.9 149c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C475.3 341.3 496 301.1 496 256s-20.7-85.3-53.2-111.8c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zm-60.5 74.5C434.1 199.1 448 225.9 448 256s-13.9 56.9-35.4 74.5c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C393.1 284.4 400 271 400 256s-6.9-28.4-17.7-37.3c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zM301.1 34.8C312.6 40 320 51.4 320 64V448c0 12.6-7.4 24-18.9 29.2s-25 3.1-34.4-5.3L131.8 352H64c-35.3 0-64-28.7-64-64V224c0-35.3 28.7-64 64-64h67.8L266.7 40.1c9.4-8.4 22.9-10.4 34.4-5.3z"]},a5=i5,o5={prefix:"fas",iconName:"copy",icon:[448,512,[],"f0c5","M208 0H332.1c12.7 0 24.9 5.1 33.9 14.1l67.9 67.9c9 9 14.1 21.2 14.1 33.9V336c0 26.5-21.5 48-48 48H208c-26.5 0-48-21.5-48-48V48c0-26.5 21.5-48 48-48zM48 128h80v64H64V448H256V416h64v48c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48z"]},s5={prefix:"fas",iconName:"gears",icon:[640,512,["cogs"],"f085","M308.5 135.3c7.1-6.3 9.9-16.2 6.2-25c-2.3-5.3-4.8-10.5-7.6-15.5L304 89.4c-3-5-6.3-9.9-9.8-14.6c-5.7-7.6-15.7-10.1-24.7-7.1l-28.2 9.3c-10.7-8.8-23-16-36.2-20.9L199 27.1c-1.9-9.3-9.1-16.7-18.5-17.8C173.9 8.4 167.2 8 160.4 8h-.7c-6.8 0-13.5 .4-20.1 1.2c-9.4 1.1-16.6 8.6-18.5 17.8L115 56.1c-13.3 5-25.5 12.1-36.2 20.9L50.5 67.8c-9-3-19-.5-24.7 7.1c-3.5 4.7-6.8 9.6-9.9 14.6l-3 5.3c-2.8 5-5.3 10.2-7.6 15.6c-3.7 8.7-.9 18.6 6.2 25l22.2 19.8C32.6 161.9 32 168.9 32 176s.6 14.1 1.7 20.9L11.5 216.7c-7.1 6.3-9.9 16.2-6.2 25c2.3 5.3 4.8 10.5 7.6 15.6l3 5.2c3 5.1 6.3 9.9 9.9 14.6c5.7 7.6 15.7 10.1 24.7 7.1l28.2-9.3c10.7 8.8 23 16 36.2 20.9l6.1 29.1c1.9 9.3 9.1 16.7 18.5 17.8c6.7 .8 13.5 1.2 20.4 1.2s13.7-.4 20.4-1.2c9.4-1.1 16.6-8.6 18.5-17.8l6.1-29.1c13.3-5 25.5-12.1 36.2-20.9l28.2 9.3c9 3 19 .5 24.7-7.1c3.5-4.7 6.8-9.5 9.8-14.6l3.1-5.4c2.8-5 5.3-10.2 7.6-15.5c3.7-8.7 .9-18.6-6.2-25l-22.2-19.8c1.1-6.8 1.7-13.8 1.7-20.9s-.6-14.1-1.7-20.9l22.2-19.8zM112 176a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM504.7 500.5c6.3 7.1 16.2 9.9 25 6.2c5.3-2.3 10.5-4.8 15.5-7.6l5.4-3.1c5-3 9.9-6.3 14.6-9.8c7.6-5.7 10.1-15.7 7.1-24.7l-9.3-28.2c8.8-10.7 16-23 20.9-36.2l29.1-6.1c9.3-1.9 16.7-9.1 17.8-18.5c.8-6.7 1.2-13.5 1.2-20.4s-.4-13.7-1.2-20.4c-1.1-9.4-8.6-16.6-17.8-18.5L583.9 307c-5-13.3-12.1-25.5-20.9-36.2l9.3-28.2c3-9 .5-19-7.1-24.7c-4.7-3.5-9.6-6.8-14.6-9.9l-5.3-3c-5-2.8-10.2-5.3-15.6-7.6c-8.7-3.7-18.6-.9-25 6.2l-19.8 22.2c-6.8-1.1-13.8-1.7-20.9-1.7s-14.1 .6-20.9 1.7l-19.8-22.2c-6.3-7.1-16.2-9.9-25-6.2c-5.3 2.3-10.5 4.8-15.6 7.6l-5.2 3c-5.1 3-9.9 6.3-14.6 9.9c-7.6 5.7-10.1 15.7-7.1 24.7l9.3 28.2c-8.8 10.7-16 23-20.9 36.2L315.1 313c-9.3 1.9-16.7 9.1-17.8 18.5c-.8 6.7-1.2 13.5-1.2 20.4s.4 13.7 1.2 20.4c1.1 9.4 8.6 16.6 17.8 18.5l29.1 6.1c5 13.3 12.1 25.5 20.9 36.2l-9.3 28.2c-3 9-.5 19 7.1 24.7c4.7 3.5 9.5 6.8 14.6 9.8l5.4 3.1c5 2.8 10.2 5.3 15.5 7.6c8.7 3.7 18.6 .9 25-6.2l19.8-22.2c6.8 1.1 13.8 1.7 20.9 1.7s14.1-.6 20.9-1.7l19.8 22.2zM464 304a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"]},l5=s5;const c5=({message:t,isUser:e})=>p.jsx("div",{className:`flex ${e?"justify-end":"justify-start"} mb-2`,children:p.jsxs("div",{className:`flex items-end ${e?"flex-row-reverse":"flex-row"}`,children:[p.jsxs("div",{className:"flex flex-col items-center",children:[p.jsx("div",{className:"w-10 h-10 rounded-full overflow-hidden",children:p.jsx("img",{src:e?"/public/you.png":"/public/bot.png",alt:e?"You":"AI Bot",className:"w-full h-full object-cover"})}),p.jsx("p",{className:"text-xs mt-1",children:e?"You":"AI Bot"})]}),p.jsxs("div",{className:`p-3 rounded-lg ml-2 max-w-lg ${e?"bg-blue-600 text-white":"bg-gray-300 text-black"}`,children:[p.jsx("p",{className:"text-sm whitespace-pre-wrap",dangerouslySetInnerHTML:{__html:t.text}}),p.jsx("p",{className:"text-xs mt-1",children:t.timestamp}),!e&&p.jsxs("div",{className:"flex mt-2 space-x-2",children:[p.jsx("button",{className:"p-1 text-sm bg-white rounded-full hover:bg-gray-200",children:p.jsx(rr,{icon:a5})}),p.jsx("button",{className:"p-1 text-sm bg-white rounded-full hover:bg-gray-200",children:p.jsx(rr,{icon:o5})}),p.jsx("button",{className:"p-1 text-sm bg-white rounded-full hover:bg-gray-200",children:p.jsx(rr,{icon:r5})}),p.jsx("button",{className:"p-1 text-sm bg-white rounded-full hover:bg-gray-200",children:p.jsx(rr,{icon:e5})}),p.jsx("button",{className:"p-1 text-sm bg-white rounded-full hover:bg-gray-200",children:p.jsx(rr,{icon:l5})})]})]})]})}),ph=()=>p.jsxs("div",{className:"h-screen w-64 bg-gray-800 text-white flex flex-col fixed",children:[p.jsx("div",{className:"p-4 text-2xl font-bold",children:"Dashboard"}),p.jsxs("nav",{className:"mt-4 flex flex-col space-y-2",children:[p.jsx(we,{to:"/",className:"px-4 py-2 hover:bg-gray-700",children:"Chat"}),p.jsx(we,{to:"/analytics",className:"px-4 py-2 hover:bg-gray-700",children:"Analytics"}),p.jsx(we,{to:"/models",className:"px-4 py-2 hover:bg-gray-700",children:"Models"}),p.jsx(we,{to:"/settings",className:"px-4 py-2 hover:bg-gray-700",children:"Settings"})]})]}),u5=()=>{const[t,e]=N.useState([]),[n,r]=N.useState(""),i=()=>{if(n.trim()){const a={text:n,timestamp:new Date().toLocaleTimeString(),isUser:!0};e([...t,a]),setTimeout(()=>{const o={text:"Onboarding clients is a critical process that sets the tone for your relationship and ensures that the client understands and is comfortable with your services. Here's a detailed procedure for onboarding clients, tailored to a technology or software development company:",timestamp:new Date().toLocaleTimeString(),isUser:!1};e(s=>[...s,o])},1e3),r("")}};return p.jsxs("div",{className:"flex",children:[p.jsx(ph,{}),p.jsx("div",{className:"ml-64 flex-1 p-6 bg-gray-100",children:p.jsxs("div",{className:"p-4 bg-white rounded-lg shadow",children:[p.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Chat"}),p.jsxs("div",{className:"flex flex-col h-96 bg-gray-100 rounded-lg overflow-hidden",children:[p.jsx("div",{className:"flex-1 p-4 overflow-y-auto",children:t.map((a,o)=>p.jsx(c5,{message:a,isUser:a.isUser},o))}),p.jsxs("div",{className:"flex p-4 border-t",children:[p.jsx("input",{type:"text",className:"flex-1 p-2 border rounded-lg",value:n,onChange:a=>r(a.target.value),placeholder:"Type a message..."}),p.jsx("button",{onClick:i,className:"ml-4 px-4 py-2 bg-blue-600 text-white rounded-lg",children:"Send"})]})]})]})})]})};/*! +* @kurkle/color v0.3.2 +* https://github.com/kurkle/color#readme +* (c) 2023 Jukka Kurkela +* Released under the MIT License +*/function to(t){return t+.5|0}const kn=(t,e,n)=>Math.max(Math.min(t,n),e);function Hi(t){return kn(to(t*2.55),0,255)}function Ln(t){return kn(to(t*255),0,255)}function Qe(t){return kn(to(t/2.55)/100,0,1)}function Ip(t){return kn(to(t*100),0,100)}const ce={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},Uu=[..."0123456789ABCDEF"],d5=t=>Uu[t&15],h5=t=>Uu[(t&240)>>4]+Uu[t&15],jo=t=>(t&240)>>4===(t&15),f5=t=>jo(t.r)&&jo(t.g)&&jo(t.b)&&jo(t.a);function p5(t){var e=t.length,n;return t[0]==="#"&&(e===4||e===5?n={r:255&ce[t[1]]*17,g:255&ce[t[2]]*17,b:255&ce[t[3]]*17,a:e===5?ce[t[4]]*17:255}:(e===7||e===9)&&(n={r:ce[t[1]]<<4|ce[t[2]],g:ce[t[3]]<<4|ce[t[4]],b:ce[t[5]]<<4|ce[t[6]],a:e===9?ce[t[7]]<<4|ce[t[8]]:255})),n}const m5=(t,e)=>t<255?e(t):"";function g5(t){var e=f5(t)?d5:h5;return t?"#"+e(t.r)+e(t.g)+e(t.b)+m5(t.a,e):void 0}const b5=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function jy(t,e,n){const r=e*Math.min(n,1-n),i=(a,o=(a+t/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[i(0),i(8),i(4)]}function y5(t,e,n){const r=(i,a=(i+t/60)%6)=>n-n*e*Math.max(Math.min(a,4-a,1),0);return[r(5),r(3),r(1)]}function x5(t,e,n){const r=jy(t,1,.5);let i;for(e+n>1&&(i=1/(e+n),e*=i,n*=i),i=0;i<3;i++)r[i]*=1-e-n,r[i]+=e;return r}function v5(t,e,n,r,i){return t===i?(e-n)/r+(e.5?c/(2-i-a):c/(i+a),s=v5(e,n,r,c,i),s=s*60+.5),[s|0,l||0,o]}function gh(t,e,n,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,r)).map(Ln)}function bh(t,e,n){return gh(jy,t,e,n)}function w5(t,e,n){return gh(x5,t,e,n)}function k5(t,e,n){return gh(y5,t,e,n)}function Oy(t){return(t%360+360)%360}function _5(t){const e=b5.exec(t);let n=255,r;if(!e)return;e[5]!==r&&(n=e[6]?Hi(+e[5]):Ln(+e[5]));const i=Oy(+e[2]),a=+e[3]/100,o=+e[4]/100;return e[1]==="hwb"?r=w5(i,a,o):e[1]==="hsv"?r=k5(i,a,o):r=bh(i,a,o),{r:r[0],g:r[1],b:r[2],a:n}}function S5(t,e){var n=mh(t);n[0]=Oy(n[0]+e),n=bh(n),t.r=n[0],t.g=n[1],t.b=n[2]}function C5(t){if(!t)return;const e=mh(t),n=e[0],r=Ip(e[1]),i=Ip(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${i}%, ${Qe(t.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const Fp={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"},Bp={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function E5(){const t={},e=Object.keys(Bp),n=Object.keys(Fp);let r,i,a,o,s;for(r=0;r>16&255,a>>8&255,a&255]}return t}let Oo;function N5(t){Oo||(Oo=E5(),Oo.transparent=[0,0,0,0]);const e=Oo[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const P5=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function M5(t){const e=P5.exec(t);let n=255,r,i,a;if(e){if(e[7]!==r){const o=+e[7];n=e[8]?Hi(o):kn(o*255,0,255)}return r=+e[1],i=+e[3],a=+e[5],r=255&(e[2]?Hi(r):kn(r,0,255)),i=255&(e[4]?Hi(i):kn(i,0,255)),a=255&(e[6]?Hi(a):kn(a,0,255)),{r,g:i,b:a,a:n}}}function j5(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Qe(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const mc=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,Tr=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function O5(t,e,n){const r=Tr(Qe(t.r)),i=Tr(Qe(t.g)),a=Tr(Qe(t.b));return{r:Ln(mc(r+n*(Tr(Qe(e.r))-r))),g:Ln(mc(i+n*(Tr(Qe(e.g))-i))),b:Ln(mc(a+n*(Tr(Qe(e.b))-a))),a:t.a+n*(e.a-t.a)}}function To(t,e,n){if(t){let r=mh(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,e===0?360:1)),r=bh(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function Ty(t,e){return t&&Object.assign(e||{},t)}function Up(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=Ln(t[3]))):(e=Ty(t,{r:0,g:0,b:0,a:1}),e.a=Ln(e.a)),e}function T5(t){return t.charAt(0)==="r"?M5(t):_5(t)}class La{constructor(e){if(e instanceof La)return e;const n=typeof e;let r;n==="object"?r=Up(e):n==="string"&&(r=p5(e)||N5(e)||T5(e)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=Ty(this._rgb);return e&&(e.a=Qe(e.a)),e}set rgb(e){this._rgb=Up(e)}rgbString(){return this._valid?j5(this._rgb):void 0}hexString(){return this._valid?g5(this._rgb):void 0}hslString(){return this._valid?C5(this._rgb):void 0}mix(e,n){if(e){const r=this.rgb,i=e.rgb;let a;const o=n===a?.5:n,s=2*o-1,l=r.a-i.a,c=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;a=1-c,r.r=255&c*r.r+a*i.r+.5,r.g=255&c*r.g+a*i.g+.5,r.b=255&c*r.b+a*i.b+.5,r.a=o*r.a+(1-o)*i.a,this.rgb=r}return this}interpolate(e,n){return e&&(this._rgb=O5(this._rgb,e._rgb,n)),this}clone(){return new La(this.rgb)}alpha(e){return this._rgb.a=Ln(e),this}clearer(e){const n=this._rgb;return n.a*=1-e,this}greyscale(){const e=this._rgb,n=to(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=n,this}opaquer(e){const n=this._rgb;return n.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return To(this._rgb,2,e),this}darken(e){return To(this._rgb,2,-e),this}saturate(e){return To(this._rgb,1,e),this}desaturate(e){return To(this._rgb,1,-e),this}rotate(e){return S5(this._rgb,e),this}}/*! +* Chart.js v4.4.3 +* https://www.chartjs.org +* (c) 2024 Chart.js Contributors +* Released under the MIT License +*/function $e(){}const R5=(()=>{let t=0;return()=>t++})();function K(t){return t===null||typeof t>"u"}function ut(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function Y(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function Et(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function ee(t,e){return Et(t)?t:e}function U(t,e){return typeof t>"u"?e:t}const A5=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,Ry=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function J(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function q(t,e,n,r){let i,a,o;if(ut(t))for(a=t.length,i=0;it,x:t=>t.x,y:t=>t.y};function z5(t){const e=t.split("."),n=[];let r="";for(const i of e)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function I5(t){const e=z5(t);return n=>{for(const r of e){if(r==="")break;n=n&&n[r]}return n}}function Cr(t,e){return(Vp[e]||(Vp[e]=I5(e)))(t)}function yh(t){return t.charAt(0).toUpperCase()+t.slice(1)}const za=t=>typeof t<"u",Vn=t=>typeof t=="function",Hp=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function F5(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const lt=Math.PI,st=2*lt,B5=st+lt,qs=Number.POSITIVE_INFINITY,U5=lt/180,bt=lt/2,Xn=lt/4,Wp=lt*2/3,_n=Math.log10,Ve=Math.sign;function oa(t,e,n){return Math.abs(t-e)i-a).pop(),e}function Ia(t){return!isNaN(parseFloat(t))&&isFinite(t)}function H5(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function Ly(t,e,n){let r,i,a;for(r=0,i=t.length;rl&&c=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function vh(t,e,n){n=n||(o=>t[o]1;)a=i+r>>1,n(a)?i=a:r=a;return{lo:i,hi:r}}const cr=(t,e,n,r)=>vh(t,n,r?i=>{const a=t[i][e];return at[i][e]vh(t,n,r=>t[r][e]>=n);function q5(t,e,n){let r=0,i=t.length;for(;rr&&t[i-1]>n;)i--;return r>0||i{const r="_onData"+yh(n),i=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...a){const o=i.apply(this,a);return t._chartjs.listeners.forEach(s=>{typeof s[r]=="function"&&s[r](...a)}),o}})})}function qp(t,e){const n=t._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(e);i!==-1&&r.splice(i,1),!(r.length>0)&&(zy.forEach(a=>{delete t[a]}),delete t._chartjs)}function Iy(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const Fy=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function By(t,e){let n=[],r=!1;return function(...i){n=i,r||(r=!0,Fy.call(window,()=>{r=!1,t.apply(e,n)}))}}function X5(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}const wh=t=>t==="start"?"left":t==="end"?"right":"center",Lt=(t,e,n)=>t==="start"?e:t==="end"?n:(e+n)/2,Q5=(t,e,n,r)=>t===(r?"left":"right")?n:t==="center"?(e+n)/2:e;function G5(t,e,n){const r=e.length;let i=0,a=r;if(t._sorted){const{iScale:o,_parsed:s}=t,l=o.axis,{min:c,max:u,minDefined:d,maxDefined:h}=o.getUserBounds();d&&(i=zt(Math.min(cr(s,l,c).lo,n?r:cr(e,l,o.getPixelForValue(c)).lo),0,r-1)),h?a=zt(Math.max(cr(s,o.axis,u,!0).hi+1,n?0:cr(e,l,o.getPixelForValue(u),!0).hi+1),i,r)-i:a=r-i}return{start:i,count:a}}function J5(t){const{xScale:e,yScale:n,_scaleRanges:r}=t,i={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!r)return t._scaleRanges=i,!0;const a=r.xmin!==e.min||r.xmax!==e.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),a}const Ro=t=>t===0||t===1,Kp=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*st/n)),Xp=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*st/n)+1,sa={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=>-Math.cos(t*bt)+1,easeOutSine:t=>Math.sin(t*bt),easeInOutSine:t=>-.5*(Math.cos(lt*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>Ro(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),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=>Ro(t)?t:Kp(t,.075,.3),easeOutElastic:t=>Ro(t)?t:Xp(t,.075,.3),easeInOutElastic(t){return Ro(t)?t:t<.5?.5*Kp(t*2,.1125,.45):.5+.5*Xp(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-sa.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?sa.easeInBounce(t*2)*.5:sa.easeOutBounce(t*2-1)*.5+.5};function kh(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function Qp(t){return kh(t)?t:new La(t)}function gc(t){return kh(t)?t:new La(t).saturate(.5).darken(.1).hexString()}const Z5=["x","y","borderWidth","radius","tension"],t4=["color","borderColor","backgroundColor"];function e4(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:t4},numbers:{type:"number",properties:Z5}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function n4(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Gp=new Map;function r4(t,e){e=e||{};const n=t+JSON.stringify(e);let r=Gp.get(n);return r||(r=new Intl.NumberFormat(t,e),Gp.set(n,r)),r}function Nl(t,e,n){return r4(e,n).format(t)}const Uy={values(t){return ut(t)?t:""+t},numeric(t,e,n){if(t===0)return"0";const r=this.chart.options.locale;let i,a=t;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),a=i4(t,n)}const o=_n(Math.abs(a)),s=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),Nl(t,r,l)},logarithmic(t,e,n){if(t===0)return"0";const r=n[e].significand||t/Math.pow(10,Math.floor(_n(t)));return[1,2,3,5,10,15].includes(r)||e>.8*n.length?Uy.numeric.call(this,t,e,n):""}};function i4(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}var Pl={formatters:Uy};function a4(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,n)=>n.lineWidth,tickColor:(e,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Pl.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const Er=Object.create(null),Hu=Object.create(null);function la(t,e){if(!e)return t;const n=e.split(".");for(let r=0,i=n.length;rr.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>gc(i.backgroundColor),this.hoverBorderColor=(r,i)=>gc(i.borderColor),this.hoverColor=(r,i)=>gc(i.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(e),this.apply(n)}set(e,n){return bc(this,e,n)}get(e){return la(this,e)}describe(e,n){return bc(Hu,e,n)}override(e,n){return bc(Er,e,n)}route(e,n,r,i){const a=la(this,e),o=la(this,r),s="_"+n;Object.defineProperties(a,{[s]:{value:a[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[s],c=o[i];return Y(l)?Object.assign({},c,l):U(l,c)},set(l){this[s]=l}}})}apply(e){e.forEach(n=>n(this))}}var mt=new o4({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[e4,n4,a4]);function s4(t){return!t||K(t.size)||K(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function Ks(t,e,n,r,i){let a=e[i];return a||(a=e[i]=t.measureText(i).width,n.push(i)),a>r&&(r=a),r}function l4(t,e,n,r){r=r||{};let i=r.data=r.data||{},a=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(i=r.data={},a=r.garbageCollect=[],r.font=e),t.save(),t.font=e;let o=0;const s=n.length;let l,c,u,d,h;for(l=0;ln.length){for(l=0;l0&&t.stroke()}}function Ze(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.xe.top-n&&t.y0&&a.strokeColor!=="";let l,c;for(t.save(),t.font=i.string,d4(t,a),l=0;l+t||0;function Ch(t,e){const n={},r=Y(e),i=r?Object.keys(e):e,a=Y(t)?r?o=>U(t[o],t[e[o]]):o=>t[o]:()=>t;for(const o of i)n[o]=b4(a(o));return n}function Hy(t){return Ch(t,{top:"y",right:"x",bottom:"y",left:"x"})}function fr(t){return Ch(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Ft(t){const e=Hy(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function _t(t,e){t=t||{},e=e||mt.font;let n=U(t.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let r=U(t.style,e.style);r&&!(""+r).match(m4)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:U(t.family,e.family),lineHeight:g4(U(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:U(t.weight,e.weight),string:""};return i.string=s4(i),i}function Ao(t,e,n,r){let i,a,o;for(i=0,a=t.length;in&&s===0?0:s+l;return{min:o(r,-Math.abs(a)),max:o(i,a)}}function Kn(t,e){return Object.assign(Object.create(t),e)}function Eh(t,e=[""],n,r,i=()=>t[0]){const a=n||t;typeof r>"u"&&(r=qy("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:a,_fallback:r,_getTarget:i,override:s=>Eh([s,...t],e,a,r)};return new Proxy(o,{deleteProperty(s,l){return delete s[l],delete s._keys,delete t[0][l],!0},get(s,l){return $y(s,l,()=>E4(l,e,t,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(s,l){return tm(s).includes(l)},ownKeys(s){return tm(s)},set(s,l,c){const u=s._storage||(s._storage=i());return s[l]=u[l]=c,delete s._keys,!0}})}function di(t,e,n,r){const i={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:Wy(t,r),setContext:a=>di(t,a,n,r),override:a=>di(t.override(a),e,n,r)};return new Proxy(i,{deleteProperty(a,o){return delete a[o],delete t[o],!0},get(a,o,s){return $y(a,o,()=>v4(a,o,s))},getOwnPropertyDescriptor(a,o){return a._descriptors.allKeys?Reflect.has(t,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,o)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(a,o){return Reflect.has(t,o)},ownKeys(){return Reflect.ownKeys(t)},set(a,o,s){return t[o]=s,delete a[o],!0}})}function Wy(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:i=e.allKeys}=t;return{allKeys:i,scriptable:n,indexable:r,isScriptable:Vn(n)?n:()=>n,isIndexable:Vn(r)?r:()=>r}}const x4=(t,e)=>t?t+yh(e):e,Nh=(t,e)=>Y(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function $y(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const r=n();return t[e]=r,r}function v4(t,e,n){const{_proxy:r,_context:i,_subProxy:a,_descriptors:o}=t;let s=r[e];return Vn(s)&&o.isScriptable(e)&&(s=w4(e,s,t,n)),ut(s)&&s.length&&(s=k4(e,s,t,o.isIndexable)),Nh(e,s)&&(s=di(s,i,a&&a[e],o)),s}function w4(t,e,n,r){const{_proxy:i,_context:a,_subProxy:o,_stack:s}=n;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t);let l=e(a,o||r);return s.delete(t),Nh(t,l)&&(l=Ph(i._scopes,i,t,l)),l}function k4(t,e,n,r){const{_proxy:i,_context:a,_subProxy:o,_descriptors:s}=n;if(typeof a.index<"u"&&r(t))return e[a.index%e.length];if(Y(e[0])){const l=e,c=i._scopes.filter(u=>u!==l);e=[];for(const u of l){const d=Ph(c,i,t,u);e.push(di(d,a,o&&o[t],s))}}return e}function Yy(t,e,n){return Vn(t)?t(e,n):t}const _4=(t,e)=>t===!0?e:typeof t=="string"?Cr(e,t):void 0;function S4(t,e,n,r,i){for(const a of e){const o=_4(n,a);if(o){t.add(o);const s=Yy(o._fallback,n,i);if(typeof s<"u"&&s!==n&&s!==r)return s}else if(o===!1&&typeof r<"u"&&n!==r)return null}return!1}function Ph(t,e,n,r){const i=e._rootScopes,a=Yy(e._fallback,n,r),o=[...t,...i],s=new Set;s.add(r);let l=Zp(s,o,n,a||n,r);return l===null||typeof a<"u"&&a!==n&&(l=Zp(s,o,a,l,r),l===null)?!1:Eh(Array.from(s),[""],i,a,()=>C4(e,n,r))}function Zp(t,e,n,r,i){for(;n;)n=S4(t,e,n,r,i);return n}function C4(t,e,n){const r=t._getTarget();e in r||(r[e]={});const i=r[e];return ut(i)&&Y(n)?n:i||{}}function E4(t,e,n,r){let i;for(const a of e)if(i=qy(x4(a,t),n),typeof i<"u")return Nh(t,i)?Ph(n,r,t,i):i}function qy(t,e){for(const n of e){if(!n)continue;const r=n[t];if(typeof r<"u")return r}}function tm(t){let e=t._keys;return e||(e=t._keys=N4(t._scopes)),e}function N4(t){const e=new Set;for(const n of t)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))e.add(r);return Array.from(e)}const P4=Number.EPSILON||1e-14,hi=(t,e)=>et==="x"?"y":"x";function M4(t,e,n,r){const i=t.skip?e:t,a=e,o=n.skip?e:n,s=Vu(a,i),l=Vu(o,a);let c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=r*c,h=r*u;return{previous:{x:a.x-d*(o.x-i.x),y:a.y-d*(o.y-i.y)},next:{x:a.x+h*(o.x-i.x),y:a.y+h*(o.y-i.y)}}}function j4(t,e,n){const r=t.length;let i,a,o,s,l,c=hi(t,0);for(let u=0;u!c.skip)),e.cubicInterpolationMode==="monotone")T4(t,i);else{let c=r?t[t.length-1]:t[0];for(a=0,o=t.length;at.ownerDocument.defaultView.getComputedStyle(t,null);function L4(t,e){return Ml(t).getPropertyValue(e)}const D4=["top","right","bottom","left"];function pr(t,e,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const a=D4[i];r[a]=parseFloat(t[e+"-"+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const z4=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function I4(t,e){const n=t.touches,r=n&&n.length?n[0]:t,{offsetX:i,offsetY:a}=r;let o=!1,s,l;if(z4(i,a,t.target))s=i,l=a;else{const c=e.getBoundingClientRect();s=r.clientX-c.left,l=r.clientY-c.top,o=!0}return{x:s,y:l,box:o}}function er(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:r}=e,i=Ml(n),a=i.boxSizing==="border-box",o=pr(i,"padding"),s=pr(i,"border","width"),{x:l,y:c,box:u}=I4(t,n),d=o.left+(u&&s.left),h=o.top+(u&&s.top);let{width:f,height:m}=e;return a&&(f-=o.width+s.width,m-=o.height+s.height),{x:Math.round((l-d)/f*n.width/r),y:Math.round((c-h)/m*n.height/r)}}function F4(t,e,n){let r,i;if(e===void 0||n===void 0){const a=t&&jh(t);if(!a)e=t.clientWidth,n=t.clientHeight;else{const o=a.getBoundingClientRect(),s=Ml(a),l=pr(s,"border","width"),c=pr(s,"padding");e=o.width-c.width-l.width,n=o.height-c.height-l.height,r=Xs(s.maxWidth,a,"clientWidth"),i=Xs(s.maxHeight,a,"clientHeight")}}return{width:e,height:n,maxWidth:r||qs,maxHeight:i||qs}}const Do=t=>Math.round(t*10)/10;function B4(t,e,n,r){const i=Ml(t),a=pr(i,"margin"),o=Xs(i.maxWidth,t,"clientWidth")||qs,s=Xs(i.maxHeight,t,"clientHeight")||qs,l=F4(t,e,n);let{width:c,height:u}=l;if(i.boxSizing==="content-box"){const d=pr(i,"border","width"),h=pr(i,"padding");c-=h.width+d.width,u-=h.height+d.height}return c=Math.max(0,c-a.width),u=Math.max(0,r?c/r:u-a.height),c=Do(Math.min(c,o,l.maxWidth)),u=Do(Math.min(u,s,l.maxHeight)),c&&!u&&(u=Do(c/2)),(e!==void 0||n!==void 0)&&r&&l.height&&u>l.height&&(u=l.height,c=Do(Math.floor(u*r))),{width:c,height:u}}function em(t,e,n){const r=e||1,i=Math.floor(t.height*r),a=Math.floor(t.width*r);t.height=Math.floor(t.height),t.width=Math.floor(t.width);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!==r||o.height!==i||o.width!==a?(t.currentDevicePixelRatio=r,o.height=i,o.width=a,t.ctx.setTransform(r,0,0,r,0,0),!0):!1}const U4=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};Mh()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t}();function nm(t,e){const n=L4(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function nr(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function V4(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:r==="middle"?n<.5?t.y:e.y:r==="after"?n<1?t.y:e.y:n>0?e.y:t.y}}function H4(t,e,n,r){const i={x:t.cp2x,y:t.cp2y},a={x:e.cp1x,y:e.cp1y},o=nr(t,i,n),s=nr(i,a,n),l=nr(a,e,n),c=nr(o,s,n),u=nr(s,l,n);return nr(c,u,n)}const W4=function(t,e){return{x(n){return t+t+e-n},setWidth(n){e=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},$4=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function ni(t,e,n){return t?W4(e,n):$4()}function Xy(t,e){let n,r;(e==="ltr"||e==="rtl")&&(n=t.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function Qy(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function Gy(t){return t==="angle"?{between:Fa,compare:W5,normalize:ke}:{between:Sn,compare:(e,n)=>e-n,normalize:e=>e}}function rm({start:t,end:e,count:n,loop:r,style:i}){return{start:t%n,end:e%n,loop:r&&(e-t+1)%n===0,style:i}}function Y4(t,e,n){const{property:r,start:i,end:a}=n,{between:o,normalize:s}=Gy(r),l=e.length;let{start:c,end:u,loop:d}=t,h,f;if(d){for(c+=l,u+=l,h=0,f=l;hl(i,b,g)&&s(i,b)!==0,k=()=>s(a,g)===0||l(a,b,g),_=()=>x||w(),C=()=>!x||k();for(let E=u,A=u;E<=d;++E)y=e[E%o],!y.skip&&(g=c(y[r]),g!==b&&(x=l(g,i,a),v===null&&_()&&(v=s(g,i)===0?E:A),v!==null&&C()&&(m.push(rm({start:v,end:E,loop:h,count:o,style:f})),v=null),A=E,b=g));return v!==null&&m.push(rm({start:v,end:d,loop:h,count:o,style:f})),m}function K4(t,e){const n=[],r=t.segments;for(let i=0;ii&&t[a%e].skip;)a--;return a%=e,{start:i,end:a}}function Q4(t,e,n,r){const i=t.length,a=[];let o=e,s=t[e],l;for(l=e+1;l<=n;++l){const c=t[l%i];c.skip||c.stop?s.skip||(r=!1,a.push({start:e%i,end:(l-1)%i,loop:r}),e=o=c.stop?l:null):(o=l,s.skip&&(e=l)),s=c}return o!==null&&a.push({start:e%i,end:o%i,loop:r}),a}function G4(t,e){const n=t.points,r=t.options.spanGaps,i=n.length;if(!i)return[];const a=!!t._loop,{start:o,end:s}=X4(n,i,a,r);if(r===!0)return im(t,[{start:o,end:s,loop:a}],n,e);const l=ss({chart:e,initial:n.initial,numSteps:o,currentStep:Math.min(r-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=Fy.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const a=r.items;let o=a.length-1,s=!1,l;for(;o>=0;--o)l=a[o],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(e),s=!0):(a[o]=a[a.length-1],a.pop());s&&(i.draw(),this._notify(i,r,e,"progress")),a.length||(r.running=!1,this._notify(i,r,e,"complete"),r.initial=!1),n+=a.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let r=n.get(e);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,r)),r}listen(e,n,r){this._getAnims(e).listeners[n].push(r)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var Ye=new t3;const om="transparent",e3={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const r=Qp(t||om),i=r.valid&&Qp(e||om);return i&&i.valid?i.mix(r,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class n3{constructor(e,n,r,i){const a=n[r];i=Ao([e.to,i,a,e.from]);const o=Ao([e.from,a,i]);this._active=!0,this._fn=e.fn||e3[e.type||typeof o],this._easing=sa[e.easing]||sa.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=r,this._from=o,this._to=i,this._promises=void 0}active(){return this._active}update(e,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],a=r-this._start,o=this._duration-a;this._start=r,this._duration=Math.floor(Math.max(o,e.duration)),this._total+=a,this._loop=!!e.loop,this._to=Ao([e.to,n,i,e.from]),this._from=Ao([e.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,r=this._duration,i=this._prop,a=this._from,o=this._loop,s=this._to;let l;if(this._active=a!==s&&(o||n1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(a,s,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,r)=>{e.push({res:n,rej:r})})}_notify(e){const n=e?"res":"rej",r=this._promises||[];for(let i=0;i{const a=e[i];if(!Y(a))return;const o={};for(const s of n)o[s]=a[s];(ut(a.properties)&&a.properties||[i]).forEach(s=>{(s===i||!r.has(s))&&r.set(s,o)})})}_animateOptions(e,n){const r=n.options,i=i3(e,r);if(!i)return[];const a=this._createAnimations(i,r);return r.$shared&&r3(e.options.$animations,r).then(()=>{e.options=r},()=>{}),a}_createAnimations(e,n){const r=this._properties,i=[],a=e.$animations||(e.$animations={}),o=Object.keys(n),s=Date.now();let l;for(l=o.length-1;l>=0;--l){const c=o[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(e,n));continue}const u=n[c];let d=a[c];const h=r.get(c);if(d)if(h&&d.active()){d.update(h,u,s);continue}else d.cancel();if(!h||!h.duration){e[c]=u;continue}a[c]=d=new n3(h,e,c,u),i.push(d)}return i}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const r=this._createAnimations(e,n);if(r.length)return Ye.add(this._chart,r),!0}}function r3(t,e){const n=[],r=Object.keys(e);for(let i=0;i0||!n&&a<0)return i.index}return null}function dm(t,e){const{chart:n,_cachedMeta:r}=t,i=n._stacks||(n._stacks={}),{iScale:a,vScale:o,index:s}=r,l=a.axis,c=o.axis,u=l3(a,o,r),d=e.length;let h;for(let f=0;fn[r].axis===e).shift()}function d3(t,e){return Kn(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function h3(t,e,n){return Kn(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function Ti(t,e){const n=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){e=e||t._parsed;for(const i of e){const a=i._stacks;if(!a||a[r]===void 0||a[r][n]===void 0)return;delete a[r][n],a[r]._visualValues!==void 0&&a[r]._visualValues[n]!==void 0&&delete a[r]._visualValues[n]}}}const xc=t=>t==="reset"||t==="none",hm=(t,e)=>e?t:Object.assign({},t),f3=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:Zy(n,!0),values:null};class mr{constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=cm(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&Ti(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(d,h,f,m)=>d==="x"?h:d==="r"?m:f,a=n.xAxisID=U(r.xAxisID,yc(e,"x")),o=n.yAxisID=U(r.yAxisID,yc(e,"y")),s=n.rAxisID=U(r.rAxisID,yc(e,"r")),l=n.indexAxis,c=n.iAxisID=i(l,a,o,s),u=n.vAxisID=i(l,o,a,s);n.xScale=this.getScaleForId(a),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(s),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&qp(this._data,this),e._stacked&&Ti(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),r=this._data;if(Y(n)){const i=this._cachedMeta;this._data=s3(n,i)}else if(r!==n){if(r){qp(r,this);const i=this._cachedMeta;Ti(i),i._parsed=[]}n&&Object.isExtensible(n)&&K5(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const a=n._stacked;n._stacked=cm(n.vScale,n),n.stack!==r.stack&&(i=!0,Ti(n),n.stack=r.stack),this._resyncElements(e),(i||a!==n._stacked)&&dm(this,n._parsed)}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:r,_data:i}=this,{iScale:a,_stacked:o}=r,s=a.axis;let l=e===0&&n===i.length?!0:r._sorted,c=e>0&&r._parsed[e-1],u,d,h;if(this._parsing===!1)r._parsed=i,r._sorted=!0,h=i;else{ut(i[e])?h=this.parseArrayData(r,i,e,n):Y(i[e])?h=this.parseObjectData(r,i,e,n):h=this.parsePrimitiveData(r,i,e,n);const f=()=>d[s]===null||c&&d[s]x||d=0;--h)if(!m()){this.updateRangeFromParsed(c,e,f,l);break}}return c}getAllParsedValues(e){const n=this._cachedMeta._parsed,r=[];let i,a,o;for(i=0,a=n.length;i=0&&ethis.getContext(r,i,n),x=c.resolveNamedOptions(h,f,m,d);return x.$shared&&(x.$shared=l,a[o]=Object.freeze(hm(x,l))),x}_resolveAnimations(e,n,r){const i=this.chart,a=this._cachedDataOpts,o=`animation-${n}`,s=a[o];if(s)return s;let l;if(i.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,n),h=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(h,this.getContext(e,r,n))}const c=new Jy(i,l&&l.animations);return l&&l._cacheable&&(a[o]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||xc(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const r=this.resolveDataElementOptions(e,n),i=this._sharedOptions,a=this.getSharedOptions(r),o=this.includeOptions(n,a)||a!==i;return this.updateSharedOptions(a,n,r),{sharedOptions:a,includeOptions:o}}updateElement(e,n,r,i){xc(i)?Object.assign(e,r):this._resolveAnimations(n,i).update(e,r)}updateSharedOptions(e,n,r){e&&!xc(n)&&this._resolveAnimations(void 0,n).update(e,r)}_setStyle(e,n,r,i){e.active=i;const a=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(e,{options:!i&&this.getSharedOptions(a)||a})}removeHoverStyle(e,n,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,n,r){this._setStyle(e,r,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,r=this._cachedMeta.data;for(const[s,l,c]of this._syncList)this[s](l,c);this._syncList=[];const i=r.length,a=n.length,o=Math.min(a,i);o&&this.parse(0,o),a>i?this._insertElements(i,a-i,e):a{for(c.length+=n,s=c.length-1;s>=o;s--)c[s]=c[s-n]};for(l(a),s=e;si-a))}return t._cache.$bar}function m3(t){const e=t.iScale,n=p3(e,t.type);let r=e._length,i,a,o,s;const l=()=>{o===32767||o===-32768||(za(s)&&(r=Math.min(r,Math.abs(o-s)||r)),s=o)};for(i=0,a=n.length;i0?i[t-1]:null,s=tMath.abs(s)&&(l=s,c=o),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:i,end:a,min:o,max:s}}function t1(t,e,n,r){return ut(t)?y3(t,e,n,r):e[n.axis]=n.parse(t,r),e}function fm(t,e,n,r){const i=t.iScale,a=t.vScale,o=i.getLabels(),s=i===a,l=[];let c,u,d,h;for(c=n,u=n+r;c=n?1:-1)}function v3(t){let e,n,r,i,a;return t.horizontal?(e=t.base>t.x,n="left",r="right"):(e=t.basel.controller.options.grouped),a=r.options.stacked,o=[],s=l=>{const c=l.controller.getParsed(n),u=c&&c[l.vScale.axis];if(K(u)||isNaN(u))return!0};for(const l of i)if(!(n!==void 0&&s(l))&&((a===!1||o.indexOf(l.stack)===-1||a===void 0&&l.stack===void 0)&&o.push(l.stack),l.index===e))break;return o.length||o.push(void 0),o}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,n,r){const i=this._getStacks(e,r),a=n!==void 0?i.indexOf(n):-1;return a===-1?i.length-1:a}_getRuler(){const e=this.options,n=this._cachedMeta,r=n.iScale,i=[];let a,o;for(a=0,o=n.data.length;aFa(b,s,l,!0)?1:Math.max(w,w*n,k,k*n),m=(b,w,k)=>Fa(b,s,l,!0)?-1:Math.min(w,w*n,k,k*n),x=f(0,c,d),v=f(bt,u,h),g=m(lt,c,d),y=m(lt+bt,u,h);r=(x-g)/2,i=(v-y)/2,a=-(x+g)/2,o=-(v+y)/2}return{ratioX:r,ratioY:i,offsetX:a,offsetY:o}}class Wi extends mr{constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let a=l=>+r[l];if(Y(r[e])){const{key:l="value"}=this._parsing;a=c=>+Cr(r[c],l)}let o,s;for(o=e,s=e+n;o0&&!isNaN(e)?st*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],a=Nl(n._parsed[e],r.options.locale);return{label:i[e]||"",value:a}}getMaxBorderWidth(e){let n=0;const r=this.chart;let i,a,o,s,l;if(!e){for(i=0,a=r.data.datasets.length;it!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),R(Wi,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n,color:r}}=t.legend.options;return e.labels.map((i,a)=>{const o=t.getDatasetMeta(0).controller.getStyle(a);return{text:i,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,fontColor:r,lineWidth:o.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(a),index:a}})}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}}}});class ls extends mr{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:a}=n,o=this.chart._animationsDisabled;let{start:s,count:l}=G5(n,i,o);this._drawStart=s,this._drawCount=l,J5(n)&&(s=0,l=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!a._decimated,r.points=i;const c=this.resolveDatasetElementOptions(e);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(r,void 0,{animated:!o,options:c},e),this.updateElements(i,s,l,e)}updateElements(e,n,r,i){const a=i==="reset",{iScale:o,vScale:s,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:d}=this._getSharedOptions(n,i),h=o.axis,f=s.axis,{spanGaps:m,segment:x}=this.options,v=Ia(m)?m:Number.POSITIVE_INFINITY,g=this.chart._animationsDisabled||a||i==="none",y=n+r,b=e.length;let w=n>0&&this.getParsed(n-1);for(let k=0;k=y){C.skip=!0;continue}const E=this.getParsed(k),A=K(E[f]),M=C[h]=o.getPixelForValue(E[h],k),z=C[f]=a||A?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,E,l):E[f],k);C.skip=isNaN(M)||isNaN(z)||A,C.stop=k>0&&Math.abs(E[h]-w[h])>v,x&&(C.parsed=E,C.raw=c.data[k]),d&&(C.options=u||this.resolveDataElementOptions(k,_.active?"active":i)),g||this.updateElement(_,k,C,i),w=E}}getMaxOverflow(){const e=this._cachedMeta,n=e.dataset,r=n.options&&n.options.borderWidth||0,i=e.data||[];if(!i.length)return r;const a=i[0].size(this.resolveDataElementOptions(0)),o=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,a,o)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}R(ls,"id","line"),R(ls,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),R(ls,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});function Gn(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Oh{constructor(e){R(this,"options"),this.options=e||{}}static override(e){Object.assign(Oh.prototype,e)}init(){}formats(){return Gn()}parse(){return Gn()}format(){return Gn()}add(){return Gn()}diff(){return Gn()}startOf(){return Gn()}endOf(){return Gn()}}var C3={_date:Oh};function E3(t,e,n,r){const{controller:i,data:a,_sorted:o}=t,s=i._cachedMeta.iScale;if(s&&e===s.axis&&e!=="r"&&o&&a.length){const l=s._reversePixels?Y5:cr;if(r){if(i._sharedOptions){const c=a[0],u=typeof c.getRange=="function"&&c.getRange(e);if(u){const d=l(a,e,n-u),h=l(a,e,n+u);return{lo:d.lo,hi:h.hi}}}}else return l(a,e,n)}return{lo:0,hi:a.length-1}}function eo(t,e,n,r,i){const a=t.getSortedVisibleDatasetMetas(),o=n[e];for(let s=0,l=a.length;s{l[o](e[n],i)&&(a.push({element:l,datasetIndex:c,index:u}),s=s||l.inRange(e.x,e.y,i))}),r&&!s?[]:a}var j3={evaluateInteractionItems:eo,modes:{index(t,e,n,r){const i=er(e,t),a=n.axis||"x",o=n.includeInvisible||!1,s=n.intersect?wc(t,i,a,r,o):kc(t,i,a,!1,r,o),l=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{const u=s[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(t,e,n,r){const i=er(e,t),a=n.axis||"xy",o=n.includeInvisible||!1;let s=n.intersect?wc(t,i,a,r,o):kc(t,i,a,!1,r,o);if(s.length>0){const l=s[0].datasetIndex,c=t.getDatasetMeta(l).data;s=[];for(let u=0;un.pos===e)}function bm(t,e){return t.filter(n=>e1.indexOf(n.pos)===-1&&n.box.axis===e)}function Ai(t,e){return t.sort((n,r)=>{const i=e?r:n,a=e?n:r;return i.weight===a.weight?i.index-a.index:i.weight-a.weight})}function O3(t){const e=[];let n,r,i,a,o,s;for(n=0,r=(t||[]).length;nc.box.fullSize),!0),r=Ai(Ri(e,"left"),!0),i=Ai(Ri(e,"right")),a=Ai(Ri(e,"top"),!0),o=Ai(Ri(e,"bottom")),s=bm(e,"x"),l=bm(e,"y");return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:i.concat(l).concat(o).concat(s),chartArea:Ri(e,"chartArea"),vertical:r.concat(i).concat(l),horizontal:a.concat(o).concat(s)}}function ym(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function n1(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 L3(t,e,n,r){const{pos:i,box:a}=n,o=t.maxPadding;if(!Y(i)){n.size&&(t[i]-=n.size);const d=r[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?a.height:a.width),n.size=d.size/d.count,t[i]+=n.size}a.getPadding&&n1(o,a.getPadding());const s=Math.max(0,e.outerWidth-ym(o,t,"left","right")),l=Math.max(0,e.outerHeight-ym(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 D3(t){const e=t.maxPadding;function n(r){const i=Math.max(e[r]-t[r],0);return t[r]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function z3(t,e){const n=e.maxPadding;function r(i){const a={left:0,top:0,right:0,bottom:0};return i.forEach(o=>{a[o]=Math.max(e[o],n[o])}),a}return r(t?["left","right"]:["top","bottom"])}function $i(t,e,n,r){const i=[];let a,o,s,l,c,u;for(a=0,o=t.length,c=0;a{typeof x.beforeLayout=="function"&&x.beforeLayout()});const u=l.reduce((x,v)=>v.box.options&&v.box.options.display===!1?x:x+1,0)||1,d=Object.freeze({outerWidth:e,outerHeight:n,padding:i,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/u,hBoxMaxHeight:o/2}),h=Object.assign({},i);n1(h,Ft(r));const f=Object.assign({maxPadding:h,w:a,h:o,x:i.left,y:i.top},i),m=R3(l.concat(c),d);$i(s.fullSize,f,d,m),$i(l,f,d,m),$i(c,f,d,m)&&$i(l,f,d,m),D3(f),xm(s.leftAndTop,f,d,m),f.x+=f.w,f.y+=f.h,xm(s.rightAndBottom,f,d,m),t.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},q(s.chartArea,x=>{const v=x.box;Object.assign(v,t.chartArea),v.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class r1{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,r){}removeEventListener(e,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,r,i){return n=Math.max(0,n||e.width),r=r||e.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(e){return!0}updateConfig(e){}}class I3 extends r1{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const cs="$chartjs",F3={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},vm=t=>t===null||t==="";function B3(t,e){const n=t.style,r=t.getAttribute("height"),i=t.getAttribute("width");if(t[cs]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",vm(i)){const a=nm(t,"width");a!==void 0&&(t.width=a)}if(vm(r))if(t.style.height==="")t.height=t.width/(e||2);else{const a=nm(t,"height");a!==void 0&&(t.height=a)}return t}const i1=U4?{passive:!0}:!1;function U3(t,e,n){t&&t.addEventListener(e,n,i1)}function V3(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,i1)}function H3(t,e){const n=F3[t.type]||t.type,{x:r,y:i}=er(t,e);return{type:n,chart:e,native:t,x:r!==void 0?r:null,y:i!==void 0?i:null}}function Qs(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function W3(t,e,n){const r=t.canvas,i=new MutationObserver(a=>{let o=!1;for(const s of a)o=o||Qs(s.addedNodes,r),o=o&&!Qs(s.removedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function $3(t,e,n){const r=t.canvas,i=new MutationObserver(a=>{let o=!1;for(const s of a)o=o||Qs(s.removedNodes,r),o=o&&!Qs(s.addedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Ua=new Map;let wm=0;function a1(){const t=window.devicePixelRatio;t!==wm&&(wm=t,Ua.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function Y3(t,e){Ua.size||window.addEventListener("resize",a1),Ua.set(t,e)}function q3(t){Ua.delete(t),Ua.size||window.removeEventListener("resize",a1)}function K3(t,e,n){const r=t.canvas,i=r&&jh(r);if(!i)return;const a=By((s,l)=>{const c=i.clientWidth;n(s,l),c{const l=s[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||a(c,u)});return o.observe(i),Y3(t,a),o}function _c(t,e,n){n&&n.disconnect(),e==="resize"&&q3(t)}function X3(t,e,n){const r=t.canvas,i=By(a=>{t.ctx!==null&&n(H3(a,t))},t);return U3(r,e,i),i}class Q3 extends r1{acquireContext(e,n){const r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(B3(e,n),r):null}releaseContext(e){const n=e.canvas;if(!n[cs])return!1;const r=n[cs].initial;["height","width"].forEach(a=>{const o=r[a];K(o)?n.removeAttribute(a):n.setAttribute(a,o)});const i=r.style||{};return Object.keys(i).forEach(a=>{n.style[a]=i[a]}),n.width=n.width,delete n[cs],!0}addEventListener(e,n,r){this.removeEventListener(e,n);const i=e.$proxies||(e.$proxies={}),a={attach:W3,detach:$3,resize:K3}[n]||X3;i[n]=a(e,n,r)}removeEventListener(e,n){const r=e.$proxies||(e.$proxies={}),i=r[n];i&&(({attach:_c,detach:_c,resize:_c}[n]||V3)(e,n,i),r[n]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,r,i){return B4(e,n,r,i)}isAttached(e){const n=e&&jh(e);return!!(n&&n.isConnected)}}function G3(t){return!Mh()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?I3:Q3}class Me{constructor(){R(this,"x"),R(this,"y"),R(this,"active",!1),R(this,"options"),R(this,"$animations")}tooltipPosition(e){const{x:n,y:r}=this.getProps(["x","y"],e);return{x:n,y:r}}hasValue(){return Ia(this.x)&&Ia(this.y)}getProps(e,n){const r=this.$animations;if(!n||!r)return this;const i={};return e.forEach(a=>{i[a]=r[a]&&r[a].active()?r[a]._to:this[a]}),i}}R(Me,"defaults",{}),R(Me,"defaultRoutes");function J3(t,e){const n=t.options.ticks,r=Z3(t),i=Math.min(n.maxTicksLimit||r,r),a=n.major.enabled?eC(e):[],o=a.length,s=a[0],l=a[o-1],c=[];if(o>i)return nC(e,c,a,o/i),c;const u=tC(a,e,i);if(o>0){let d,h;const f=o>1?Math.round((l-s)/(o-1)):null;for(Io(e,c,u,K(f)?0:s-f,s),d=0,h=o-1;di)return l}return Math.max(i,1)}function eC(t){const e=[];let n,r;for(n=0,r=t.length;nt==="left"?"right":t==="right"?"left":t,km=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n,_m=(t,e)=>Math.min(e||t,t);function Sm(t,e){const n=[],r=t.length/e,i=t.length;let a=0;for(;ao+s)))return l}function oC(t,e){q(t,n=>{const r=n.gc,i=r.length/2;let a;if(i>e){for(a=0;ar?r:n,r=i&&n>r?n:r,{min:ee(n,ee(r,n)),max:ee(r,ee(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){J(this.options.beforeUpdate,[this])}update(e,n,r){const{beginAtZero:i,grace:a,ticks:o}=this.options,s=o.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=y4(this,a,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s=a||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const u=this._getLabelSizes(),d=u.widest.width,h=u.highest.height,f=zt(this.chart.width-d,0,this.maxWidth);s=e.offset?this.maxWidth/r:f/(r-1),d+6>s&&(s=f/(r-(e.offset?.5:1)),l=this.maxHeight-Li(e.grid)-n.padding-Cm(e.title,this.chart.options.font),c=Math.sqrt(d*d+h*h),o=xh(Math.min(Math.asin(zt((u.highest.height+6)/s,-1,1)),Math.asin(zt(l/c,-1,1))-Math.asin(zt(h/c,-1,1)))),o=Math.max(i,Math.min(a,o))),this.labelRotation=o}afterCalculateLabelRotation(){J(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){J(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:a}}=this,o=this._isVisible(),s=this.isHorizontal();if(o){const l=Cm(i,n.options.font);if(s?(e.width=this.maxWidth,e.height=Li(a)+l):(e.height=this.maxHeight,e.width=Li(a)+l),r.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:h}=this._getLabelSizes(),f=r.padding*2,m=Fe(this.labelRotation),x=Math.cos(m),v=Math.sin(m);if(s){const g=r.mirror?0:v*d.width+x*h.height;e.height=Math.min(this.maxHeight,e.height+g+f)}else{const g=r.mirror?0:x*d.width+v*h.height;e.width=Math.min(this.maxWidth,e.width+g+f)}this._calculatePadding(c,u,v,x)}}this._handleMargins(),s?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,n,r,i){const{ticks:{align:a,padding:o},position:s}=this.options,l=this.labelRotation!==0,c=s!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,f=0;l?c?(h=i*e.width,f=r*n.height):(h=r*e.height,f=i*n.width):a==="start"?f=n.width:a==="end"?h=e.width:a!=="inner"&&(h=e.width/2,f=n.width/2),this.paddingLeft=Math.max((h-u+o)*this.width/(this.width-u),0),this.paddingRight=Math.max((f-d+o)*this.width/(this.width-d),0)}else{let u=n.height/2,d=e.height/2;a==="start"?(u=0,d=e.height):a==="end"&&(u=n.height,d=0),this.paddingTop=u+o,this.paddingBottom=d+o}}_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(){J(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return n==="top"||n==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let n,r;for(n=0,r=e.length;n({width:o[A]||0,height:s[A]||0});return{first:E(0),last:E(n-1),widest:E(_),highest:E(C),widths:o,heights:s}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const n=this._startPixel+e*this._length;return $5(this._alignToPixels?Qn(this.chart,n,0):n)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this.ticks||[];if(e>=0&&es*i?s/r:l/i:l*i0}_computeGridLineItems(e){const n=this.axis,r=this.chart,i=this.options,{grid:a,position:o,border:s}=i,l=a.offset,c=this.isHorizontal(),u=this.ticks.length+(l?1:0),d=Li(a),h=[],f=s.setContext(this.getContext()),m=f.display?f.width:0,x=m/2,v=function(B){return Qn(r,B,m)};let g,y,b,w,k,_,C,E,A,M,z,V;if(o==="top")g=v(this.bottom),_=this.bottom-d,E=g-x,M=v(e.top)+x,V=e.bottom;else if(o==="bottom")g=v(this.top),M=e.top,V=v(e.bottom)-x,_=g+x,E=this.top+d;else if(o==="left")g=v(this.right),k=this.right-d,C=g-x,A=v(e.left)+x,z=e.right;else if(o==="right")g=v(this.left),A=e.left,z=v(e.right)-x,k=g+x,C=this.left+d;else if(n==="x"){if(o==="center")g=v((e.top+e.bottom)/2+.5);else if(Y(o)){const B=Object.keys(o)[0],Q=o[B];g=v(this.chart.scales[B].getPixelForValue(Q))}M=e.top,V=e.bottom,_=g+x,E=_+d}else if(n==="y"){if(o==="center")g=v((e.left+e.right)/2);else if(Y(o)){const B=Object.keys(o)[0],Q=o[B];g=v(this.chart.scales[B].getPixelForValue(Q))}k=g-x,C=k-d,A=e.left,z=e.right}const vt=U(i.ticks.maxTicksLimit,u),Tt=Math.max(1,Math.ceil(u/vt));for(y=0;y0&&(Zt-=Bt/2);break}G={left:Zt,top:He,width:Bt+et.width,height:Oe+et.height,color:B.backdropColor}}v.push({label:w,font:A,textOffset:V,options:{rotation:x,color:Pt,strokeColor:j,strokeWidth:D,textAlign:I,textBaseline:vt,translation:[k,_],backdrop:G}})}return v}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-Fe(this.labelRotation))return e==="top"?"left":"right";let r="center";return n.align==="start"?r="left":n.align==="end"?r="right":n.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:r,mirror:i,padding:a}}=this.options,o=this._getLabelSizes(),s=e+a,l=o.widest.width;let c,u;return n==="left"?i?(u=this.right+a,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-s,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?i?(u=this.left+a,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+s,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:n},left:r,top:i,width:a,height:o}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(r,i,a,o),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const r=this.ticks.findIndex(i=>i.value===e);return r>=0?n.setContext(this.getContext(r)).lineWidth:0}drawGrid(e){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let a,o;const s=(l,c,u)=>{!u.width||!u.color||(r.save(),r.lineWidth=u.width,r.strokeStyle=u.color,r.setLineDash(u.borderDash||[]),r.lineDashOffset=u.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(a=0,o=i.length;a{this.draw(a)}}]:[{z:r,draw:a=>{this.drawBackground(),this.drawGrid(a),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:a=>{this.drawLabels(a)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let a,o;for(a=0,o=n.length;a{const r=n.split("."),i=r.pop(),a=[t].concat(r).join("."),o=e[n].split("."),s=o.pop(),l=o.join(".");mt.route(a,i,l,s)})}function fC(t){return"id"in t&&"defaults"in t}class pC{constructor(){this.controllers=new Fo(mr,"datasets",!0),this.elements=new Fo(Me,"elements"),this.plugins=new Fo(Object,"plugins"),this.scales=new Fo(jr,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,n,r){[...n].forEach(i=>{const a=r||this._getRegistryForType(i);r||a.isForType(i)||a===this.plugins&&i.id?this._exec(e,a,i):q(i,o=>{const s=r||this._getRegistryForType(o);this._exec(e,s,o)})})}_exec(e,n,r){const i=yh(e);J(r["before"+i],[],r),n[e](r),J(r["after"+i],[],r)}_getRegistryForType(e){for(let n=0;na.filter(s=>!o.some(l=>s.plugin.id===l.plugin.id));this._notify(i(n,r),e,"stop"),this._notify(i(r,n),e,"start")}}function gC(t){const e={},n=[],r=Object.keys(Le.plugins.items);for(let a=0;a1&&Em(t[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function Nm(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function _C(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter(r=>r.xAxisID===t||r.yAxisID===t);if(n.length)return Nm(t,"x",n[0])||Nm(t,"y",n[0])}return{}}function SC(t,e){const n=Er[t.type]||{scales:{}},r=e.scales||{},i=$u(t.type,e),a=Object.create(null);return Object.keys(r).forEach(o=>{const s=r[o];if(!Y(s))return console.error(`Invalid scale configuration for scale: ${o}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const l=Yu(o,s,_C(o,t),mt.scales[s.type]),c=wC(l,i),u=n.scales||{};a[o]=aa(Object.create(null),[{axis:l},s,u[l],u[c]])}),t.data.datasets.forEach(o=>{const s=o.type||t.type,l=o.indexAxis||$u(s,e),c=(Er[s]||{}).scales||{};Object.keys(c).forEach(u=>{const d=vC(u,l),h=o[d+"AxisID"]||d;a[h]=a[h]||Object.create(null),aa(a[h],[{axis:d},r[h],c[u]])})}),Object.keys(a).forEach(o=>{const s=a[o];aa(s,[mt.scales[s.type],mt.scale])}),a}function o1(t){const e=t.options||(t.options={});e.plugins=U(e.plugins,{}),e.scales=SC(t,e)}function s1(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function CC(t){return t=t||{},t.data=s1(t.data),o1(t),t}const Pm=new Map,l1=new Set;function Bo(t,e){let n=Pm.get(t);return n||(n=e(),Pm.set(t,n),l1.add(n)),n}const Di=(t,e,n)=>{const r=Cr(e,n);r!==void 0&&t.add(r)};class EC{constructor(e){this._config=CC(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=s1(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),o1(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Bo(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return Bo(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return Bo(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,r=this.type;return Bo(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const r=this._scopeCache;let i=r.get(e);return(!i||n)&&(i=new Map,r.set(e,i)),i}getOptionScopes(e,n,r){const{options:i,type:a}=this,o=this._cachedScopes(e,r),s=o.get(n);if(s)return s;const l=new Set;n.forEach(u=>{e&&(l.add(e),u.forEach(d=>Di(l,e,d))),u.forEach(d=>Di(l,i,d)),u.forEach(d=>Di(l,Er[a]||{},d)),u.forEach(d=>Di(l,mt,d)),u.forEach(d=>Di(l,Hu,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),l1.has(n)&&o.set(n,c),c}chartOptionScopes(){const{options:e,type:n}=this;return[e,Er[n]||{},mt.datasets[n]||{},{type:n},mt,Hu]}resolveNamedOptions(e,n,r,i=[""]){const a={$shared:!0},{resolver:o,subPrefixes:s}=Mm(this._resolverCache,e,i);let l=o;if(PC(o,n)){a.$shared=!1,r=Vn(r)?r():r;const c=this.createResolver(e,r,s);l=di(o,r,c)}for(const c of n)a[c]=l[c];return a}createResolver(e,n,r=[""],i){const{resolver:a}=Mm(this._resolverCache,e,r);return Y(n)?di(a,n,void 0,i):a}}function Mm(t,e,n){let r=t.get(e);r||(r=new Map,t.set(e,r));const i=n.join();let a=r.get(i);return a||(a={resolver:Eh(e,n),subPrefixes:n.filter(o=>!o.toLowerCase().includes("hover"))},r.set(i,a)),a}const NC=t=>Y(t)&&Object.getOwnPropertyNames(t).some(e=>Vn(t[e]));function PC(t,e){const{isScriptable:n,isIndexable:r}=Wy(t);for(const i of e){const a=n(i),o=r(i),s=(o||a)&&t[i];if(a&&(Vn(s)||NC(s))||o&&ut(s))return!0}return!1}var MC="4.4.3";const jC=["top","bottom","left","right","chartArea"];function jm(t,e){return t==="top"||t==="bottom"||jC.indexOf(t)===-1&&e==="x"}function Om(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function Tm(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),J(n&&n.onComplete,[t],e)}function OC(t){const e=t.chart,n=e.options.animation;J(n&&n.onProgress,[t],e)}function c1(t){return Mh()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const us={},Rm=t=>{const e=c1(t);return Object.values(us).filter(n=>n.canvas===e).pop()};function TC(t,e,n){const r=Object.keys(t);for(const i of r){const a=+i;if(a>=e){const o=t[i];delete t[i],(n>0||a>e)&&(t[a+n]=o)}}}function RC(t,e,n,r){return!n||t.type==="mouseout"?null:r?e:t}function Uo(t,e,n){return t.options.clip?t[n]:e[n]}function AC(t,e){const{xScale:n,yScale:r}=t;return n&&r?{left:Uo(n,e,"left"),right:Uo(n,e,"right"),top:Uo(r,e,"top"),bottom:Uo(r,e,"bottom")}:e}var pn;let jl=(pn=class{static register(...t){Le.add(...t),Am()}static unregister(...t){Le.remove(...t),Am()}constructor(t,e){const n=this.config=new EC(e),r=c1(t),i=Rm(r);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const a=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||G3(r)),this.platform.updateConfig(n);const o=this.platform.acquireContext(r,a.aspectRatio),s=o&&o.canvas,l=s&&s.height,c=s&&s.width;if(this.id=R5(),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 mC,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=X5(u=>this.update(u),a.resizeDelay||0),this._dataChanges=[],us[this.id]=this,!o||!s){console.error("Failed to create chart: can't acquire context from the given item");return}Ye.listen(this,"complete",Tm),Ye.listen(this,"progress",OC),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:n,height:r,_aspectRatio:i}=this;return K(t)?e&&i?i:r?n/r:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Le}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():em(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Jp(this.canvas,this.ctx),this}stop(){return Ye.stop(this),this}resize(t,e){Ye.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,r=this.canvas,i=n.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(r,t,e,i),o=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,em(this,o,!0)&&(this.notifyPlugins("resize",{size:a}),J(n.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){const t=this.options.scales||{};q(t,(e,n)=>{e.id=n})}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,r=Object.keys(n).reduce((a,o)=>(a[o]=!1,a),{});let i=[];e&&(i=i.concat(Object.keys(e).map(a=>{const o=e[a],s=Yu(a,o),l=s==="r",c=s==="x";return{options:o,dposition:l?"chartArea":c?"bottom":"left",dtype:l?"radialLinear":c?"category":"linear"}}))),q(i,a=>{const o=a.options,s=o.id,l=Yu(s,o),c=U(o.type,a.dtype);(o.position===void 0||jm(o.position,l)!==jm(a.dposition))&&(o.position=a.dposition),r[s]=!0;let u=null;if(s in n&&n[s].type===c)u=n[s];else{const d=Le.getScale(c);u=new d({id:s,type:c,ctx:this.ctx,chart:this}),n[u.id]=u}u.init(o,t)}),q(r,(a,o)=>{a||delete n[o]}),q(n,a=>{fe.configure(this,a,a.options),fe.addBox(this,a)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort((r,i)=>r.index-i.index),n>e){for(let r=e;re.length&&delete this._stacks,t.forEach((n,r)=>{e.filter(i=>i===n._dataset).length===0&&this._destroyDatasetMeta(r)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,r;for(this._removeUnreferencedMetasets(),n=0,r=e.length;n{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()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let l=0,c=this.data.datasets.length;l{l.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Om("z","_idx"));const{_active:o,_lastEvent:s}=this;s?this._eventHandler(s,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){q(this.scales,t=>{fe.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);(!Hp(e,n)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:r,count:i}of e){const a=n==="_removeElements"?-i:i;TC(t,r,a)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=i=>new Set(t.filter(a=>a[0]===i).map((a,o)=>o+","+a.splice(1).join(","))),r=n(0);for(let i=1;ii.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;fe.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],q(this.boxes,r=>{n&&r.position==="chartArea"||(r.configure&&r.configure(),this._layers.push(...r._layers()))},this),this._layers.forEach((r,i)=>{r._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let e=0,n=this.data.datasets.length;e=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,n=t._clip,r=!n.disabled,i=AC(t,this.chartArea),a={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(r&&_h(e,{left:n.left===!1?0:i.left-n.left,right:n.right===!1?this.width:i.right+n.right,top:n.top===!1?0:i.top-n.top,bottom:n.bottom===!1?this.height:i.bottom+n.bottom}),t.controller.draw(),r&&Sh(e),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return Ze(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,r){const i=j3.modes[e];return typeof i=="function"?i(this,t,n,r):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let r=n.filter(i=>i&&i._dataset===e).pop();return r||(r={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(r)),r}getContext(){return this.$context||(this.$context=Kn(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 typeof n.hidden=="boolean"?!n.hidden:!e.hidden}setDatasetVisibility(t,e){const n=this.getDatasetMeta(t);n.hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,n){const r=n?"show":"hide",i=this.getDatasetMeta(t),a=i.controller._resolveAnimations(void 0,r);za(e)?(i.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),a.update(i,{visible:n}),this.update(o=>o.datasetIndex===t?r: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(),Ye.remove(this),t=0,e=this.data.datasets.length;t{e.addEventListener(this,i,a),t[i]=a},r=(i,a,o)=>{i.offsetX=a,i.offsetY=o,this._eventHandler(i)};q(this.options.events,i=>n(i,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(s,l)=>{e.addEventListener(this,s,l),t[s]=l},r=(s,l)=>{t[s]&&(e.removeEventListener(this,s,l),delete t[s])},i=(s,l)=>{this.canvas&&this.resize(s,l)};let a;const o=()=>{r("attach",o),this.attached=!0,this.resize(),n("resize",i),n("detach",a)};a=()=>{this.attached=!1,r("resize",i),this._stop(),this._resize(0,0),n("attach",o)},e.isAttached(this.canvas)?o():a()}unbindEvents(){q(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},q(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const r=n?"set":"remove";let i,a,o,s;for(e==="dataset"&&(i=this.getDatasetMeta(t[0].datasetIndex),i.controller["_"+r+"DatasetHoverStyle"]()),o=0,s=t.length;o{const a=this.getDatasetMeta(r);if(!a)throw new Error("No dataset found at index "+r);return{datasetIndex:r,element:a.data[i],index:i}});!$s(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}isPluginEnabled(t){return this._plugins._cache.filter(e=>e.plugin.id===t).length===1}_updateHoverStyles(t,e,n){const r=this.options.hover,i=(s,l)=>s.filter(c=>!l.some(u=>c.datasetIndex===u.datasetIndex&&c.index===u.index)),a=i(e,t),o=n?t:i(t,e);a.length&&this.updateHoverStyle(a,r.mode,!1),o.length&&r.mode&&this.updateHoverStyle(o,r.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},r=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",n,r)===!1)return;const i=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,r),(i||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:r=[],options:i}=this,a=e,o=this._getActiveElements(t,r,n,a),s=F5(t),l=RC(t,this._lastEvent,n,s);n&&(this._lastEvent=null,J(i.onHover,[t,o,this],this),s&&J(i.onClick,[t,o,this],this));const c=!$s(o,r);return(c||e)&&(this._active=o,this._updateHoverStyles(o,r,e)),this._lastEvent=l,c}_getActiveElements(t,e,n,r){if(t.type==="mouseout")return[];if(!n)return e;const i=this.options.hover;return this.getElementsAtEventForMode(t,i.mode,i,r)}},R(pn,"defaults",mt),R(pn,"instances",us),R(pn,"overrides",Er),R(pn,"registry",Le),R(pn,"version",MC),R(pn,"getChart",Rm),pn);function Am(){return q(jl.instances,t=>t._plugins.invalidate())}function LC(t,e,n){const{startAngle:r,pixelMargin:i,x:a,y:o,outerRadius:s,innerRadius:l}=e;let c=i/s;t.beginPath(),t.arc(a,o,s,r-c,n+c),l>i?(c=i/l,t.arc(a,o,l,n+c,r-c,!0)):t.arc(a,o,i,n+bt,r-bt),t.closePath(),t.clip()}function DC(t){return Ch(t,["outerStart","outerEnd","innerStart","innerEnd"])}function zC(t,e,n,r){const i=DC(t.options.borderRadius),a=(n-e)/2,o=Math.min(a,r*e/2),s=l=>{const c=(n-Math.min(a,l))*r/2;return zt(l,0,Math.min(a,c))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:zt(i.innerStart,0,o),innerEnd:zt(i.innerEnd,0,o)}}function Rr(t,e,n,r){return{x:n+t*Math.cos(e),y:r+t*Math.sin(e)}}function Gs(t,e,n,r,i,a){const{x:o,y:s,startAngle:l,pixelMargin:c,innerRadius:u}=e,d=Math.max(e.outerRadius+r+n-c,0),h=u>0?u+r+n+c:0;let f=0;const m=i-l;if(r){const B=u>0?u-r:0,Q=d>0?d-r:0,Pt=(B+Q)/2,j=Pt!==0?m*Pt/(Pt+r):m;f=(m-j)/2}const x=Math.max(.001,m*d-n/lt)/d,v=(m-x)/2,g=l+v+f,y=i-v-f,{outerStart:b,outerEnd:w,innerStart:k,innerEnd:_}=zC(e,h,d,y-g),C=d-b,E=d-w,A=g+b/C,M=y-w/E,z=h+k,V=h+_,vt=g+k/z,Tt=y-_/V;if(t.beginPath(),a){const B=(A+M)/2;if(t.arc(o,s,d,A,B),t.arc(o,s,d,B,M),w>0){const D=Rr(E,M,o,s);t.arc(D.x,D.y,w,M,y+bt)}const Q=Rr(V,y,o,s);if(t.lineTo(Q.x,Q.y),_>0){const D=Rr(V,Tt,o,s);t.arc(D.x,D.y,_,y+bt,Tt+Math.PI)}const Pt=(y-_/h+(g+k/h))/2;if(t.arc(o,s,h,y-_/h,Pt,!0),t.arc(o,s,h,Pt,g+k/h,!0),k>0){const D=Rr(z,vt,o,s);t.arc(D.x,D.y,k,vt+Math.PI,g-bt)}const j=Rr(C,g,o,s);if(t.lineTo(j.x,j.y),b>0){const D=Rr(C,A,o,s);t.arc(D.x,D.y,b,g-bt,A)}}else{t.moveTo(o,s);const B=Math.cos(A)*d+o,Q=Math.sin(A)*d+s;t.lineTo(B,Q);const Pt=Math.cos(M)*d+o,j=Math.sin(M)*d+s;t.lineTo(Pt,j)}t.closePath()}function IC(t,e,n,r,i){const{fullCircles:a,startAngle:o,circumference:s}=e;let l=e.endAngle;if(a){Gs(t,e,n,r,l,i);for(let c=0;c=st||Fa(a,s,l),m=Sn(o,c+h,u+h);return f&&m}getCenterPoint(e){const{x:n,y:r,startAngle:i,endAngle:a,innerRadius:o,outerRadius:s}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:l,spacing:c}=this.options,u=(i+a)/2,d=(o+s+c+l)/2;return{x:n+Math.cos(u)*d,y:r+Math.sin(u)*d}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:n,circumference:r}=this,i=(n.offset||0)/4,a=(n.spacing||0)/2,o=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=r>st?Math.floor(r/st):0,r===0||this.innerRadius<0||this.outerRadius<0)return;e.save();const s=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(s)*i,Math.sin(s)*i);const l=1-Math.sin(Math.min(lt,r||0)),c=i*l;e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor,IC(e,this,c,a,o),FC(e,this,c,a,o),e.restore()}}R(Yi,"id","arc"),R(Yi,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),R(Yi,"defaultRoutes",{backgroundColor:"backgroundColor"}),R(Yi,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"});function u1(t,e,n=e){t.lineCap=U(n.borderCapStyle,e.borderCapStyle),t.setLineDash(U(n.borderDash,e.borderDash)),t.lineDashOffset=U(n.borderDashOffset,e.borderDashOffset),t.lineJoin=U(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=U(n.borderWidth,e.borderWidth),t.strokeStyle=U(n.borderColor,e.borderColor)}function BC(t,e,n){t.lineTo(n.x,n.y)}function UC(t){return t.stepped?c4:t.tension||t.cubicInterpolationMode==="monotone"?u4:BC}function d1(t,e,n={}){const r=t.length,{start:i=0,end:a=r-1}=n,{start:o,end:s}=e,l=Math.max(i,o),c=Math.min(a,s),u=is&&a>s;return{count:r,start:l,loop:e.loop,ilen:c(o+(c?s-w:w))%a,b=()=>{x!==v&&(t.lineTo(u,v),t.lineTo(u,x),t.lineTo(u,g))};for(l&&(f=i[y(0)],t.moveTo(f.x,f.y)),h=0;h<=s;++h){if(f=i[y(h)],f.skip)continue;const w=f.x,k=f.y,_=w|0;_===m?(kv&&(v=k),u=(d*u+w)/++d):(b(),t.lineTo(w,k),m=_,d=0,x=v=k),g=k}b()}function qu(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!n?HC:VC}function WC(t){return t.stepped?V4:t.tension||t.cubicInterpolationMode==="monotone"?H4:nr}function $C(t,e,n,r){let i=e._path;i||(i=e._path=new Path2D,e.path(i,n,r)&&i.closePath()),u1(t,e.options),t.stroke(i)}function YC(t,e,n,r){const{segments:i,options:a}=e,o=qu(e);for(const s of i)u1(t,a,s.style),t.beginPath(),o(t,e,s,{start:n,end:n+r-1})&&t.closePath(),t.stroke()}const qC=typeof Path2D=="function";function KC(t,e,n,r){qC&&!e.options.segment?$C(t,e,n,r):YC(t,e,n,r)}class qi extends Me{constructor(e){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,e&&Object.assign(this,e)}updateControlPoints(e,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;A4(this._points,r,e,i,n),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=G4(this,this.options.segment))}first(){const e=this.segments,n=this.points;return e.length&&n[e[0].start]}last(){const e=this.segments,n=this.points,r=e.length;return r&&n[e[r-1].end]}interpolate(e,n){const r=this.options,i=e[n],a=this.points,o=K4(this,{property:n,start:i,end:i});if(!o.length)return;const s=[],l=WC(r);let c,u;for(c=0,u=o.length;ct!=="borderDash"&&t!=="fill"});function Lm(t,e,n,r){const i=t.options,{[n]:a}=t.getProps([n],r);return Math.abs(e-a){let{boxHeight:n=e,boxWidth:r=e}=t;return t.usePointStyle&&(n=Math.min(n,e),r=t.pointStyleWidth||Math.min(r,e)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(e,n)}},tE=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class zm extends Me{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.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(e,n,r){this.maxWidth=e,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let n=J(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(r=>e.filter(r,this.chart.data))),e.sort&&(n=n.sort((r,i)=>e.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display){this.width=this.height=0;return}const r=e.labels,i=_t(r.font),a=i.size,o=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=Dm(r,a);let c,u;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(o,a,s,l)+10):(u=this.maxHeight,c=this._fitCols(o,i,s,l)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(u,e.maxHeight||this.maxHeight)}_fitRows(e,n,r,i){const{ctx:a,maxWidth:o,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=i+s;let d=e;a.textAlign="left",a.textBaseline="middle";let h=-1,f=-u;return this.legendItems.forEach((m,x)=>{const v=r+n/2+a.measureText(m.text).width;(x===0||c[c.length-1]+v+2*s>o)&&(d+=u,c[c.length-(x>0?0:1)]=0,f+=u,h++),l[x]={left:0,top:f,row:h,width:v,height:i},c[c.length-1]+=v+s}),d}_fitCols(e,n,r,i){const{ctx:a,maxHeight:o,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=o-e;let d=s,h=0,f=0,m=0,x=0;return this.legendItems.forEach((v,g)=>{const{itemWidth:y,itemHeight:b}=eE(r,n,a,v,i);g>0&&f+b+2*s>u&&(d+=h+s,c.push({width:h,height:f}),m+=h+s,x++,h=f=0),l[g]={left:m,top:f,col:x,width:y,height:b},h=Math.max(h,y),f+=b+s}),d+=h,c.push({width:h,height:f}),d}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:a}}=this,o=ni(a,this.left,this.width);if(this.isHorizontal()){let s=0,l=Lt(r,this.left+i,this.right-this.lineWidths[s]);for(const c of n)s!==c.row&&(s=c.row,l=Lt(r,this.left+i,this.right-this.lineWidths[s])),c.top+=this.top+e+i,c.left=o.leftForLtr(o.x(l),c.width),l+=c.width+i}else{let s=0,l=Lt(r,this.top+e+i,this.bottom-this.columnSizes[s].height);for(const c of n)c.col!==s&&(s=c.col,l=Lt(r,this.top+e+i,this.bottom-this.columnSizes[s].height)),c.top=l,c.left+=this.left+i,c.left=o.leftForLtr(o.x(c.left),c.width),l+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;_h(e,this),this._draw(),Sh(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:r,ctx:i}=this,{align:a,labels:o}=e,s=mt.color,l=ni(e.rtl,this.left,this.width),c=_t(o.font),{padding:u}=o,d=c.size,h=d/2;let f;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:m,boxHeight:x,itemHeight:v}=Dm(o,d),g=function(_,C,E){if(isNaN(m)||m<=0||isNaN(x)||x<0)return;i.save();const A=U(E.lineWidth,1);if(i.fillStyle=U(E.fillStyle,s),i.lineCap=U(E.lineCap,"butt"),i.lineDashOffset=U(E.lineDashOffset,0),i.lineJoin=U(E.lineJoin,"miter"),i.lineWidth=A,i.strokeStyle=U(E.strokeStyle,s),i.setLineDash(U(E.lineDash,[])),o.usePointStyle){const M={radius:x*Math.SQRT2/2,pointStyle:E.pointStyle,rotation:E.rotation,borderWidth:A},z=l.xPlus(_,m/2),V=C+h;Vy(i,M,z,V,o.pointStyleWidth&&m)}else{const M=C+Math.max((d-x)/2,0),z=l.leftForLtr(_,m),V=fr(E.borderRadius);i.beginPath(),Object.values(V).some(vt=>vt!==0)?Ba(i,{x:z,y:M,w:m,h:x,radius:V}):i.rect(z,M,m,x),i.fill(),A!==0&&i.stroke()}i.restore()},y=function(_,C,E){Nr(i,E.text,_,C+v/2,c,{strikethrough:E.hidden,textAlign:l.textAlign(E.textAlign)})},b=this.isHorizontal(),w=this._computeTitleHeight();b?f={x:Lt(a,this.left+u,this.right-r[0]),y:this.top+u+w,line:0}:f={x:this.left+u,y:Lt(a,this.top+w+u,this.bottom-n[0].height),line:0},Xy(this.ctx,e.textDirection);const k=v+u;this.legendItems.forEach((_,C)=>{i.strokeStyle=_.fontColor,i.fillStyle=_.fontColor;const E=i.measureText(_.text).width,A=l.textAlign(_.textAlign||(_.textAlign=o.textAlign)),M=m+h+E;let z=f.x,V=f.y;l.setWidth(this.width),b?C>0&&z+M+u>this.right&&(V=f.y+=k,f.line++,z=f.x=Lt(a,this.left+u,this.right-r[f.line])):C>0&&V+k>this.bottom&&(z=f.x=z+n[f.line].width+u,f.line++,V=f.y=Lt(a,this.top+w+u,this.bottom-n[f.line].height));const vt=l.x(z);if(g(vt,V,_),z=Q5(A,z+m+h,b?z+M:this.right,e.rtl),y(l.x(z),V,_),b)f.x+=M+u;else if(typeof _.text!="string"){const Tt=c.lineHeight;f.y+=f1(_,Tt)+u}else f.y+=k}),Qy(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,r=_t(n.font),i=Ft(n.padding);if(!n.display)return;const a=ni(e.rtl,this.left,this.width),o=this.ctx,s=n.position,l=r.size/2,c=i.top+l;let u,d=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),u=this.top+c,d=Lt(e.align,d,this.right-h);else{const m=this.columnSizes.reduce((x,v)=>Math.max(x,v.height),0);u=c+Lt(e.align,this.top,this.bottom-m-e.labels.padding-this._computeTitleHeight())}const f=Lt(s,d,d+h);o.textAlign=a.textAlign(wh(s)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=r.string,Nr(o,n.text,f,u,r)}_computeTitleHeight(){const e=this.options.title,n=_t(e.font),r=Ft(e.padding);return e.display?n.lineHeight+r.height:0}_getLegendItemAt(e,n){let r,i,a;if(Sn(e,this.left,this.right)&&Sn(n,this.top,this.bottom)){for(a=this.legendHitBoxes,r=0;ra.length>o.length?a:o)),e+n.size/2+r.measureText(i).width}function rE(t,e,n){let r=t;return typeof e.text!="string"&&(r=f1(e,n)),r}function f1(t,e){const n=t.text?t.text.length:0;return e*n}function iE(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var aE={id:"legend",_element:zm,start(t,e,n){const r=t.legend=new zm({ctx:t.ctx,options:n,chart:t});fe.configure(t,r,n),fe.addBox(t,r)},stop(t){fe.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const r=t.legend;fe.configure(t,r,n),r.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 r=e.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),e.hidden=!0):(i.show(r),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:r,textAlign:i,color:a,useBorderRadius:o,borderRadius:s}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=Ft(c.borderWidth);return{text:e[l.index].label,fillStyle:c.backgroundColor,fontColor:a,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:o&&(s||c.borderRadius),datasetIndex:l.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 p1 extends Me{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.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(e,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=n;const i=ut(r.text)?r.text.length:1;this._padding=Ft(r.padding);const a=i*_t(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=a:this.width=a}isHorizontal(){const e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){const{top:n,left:r,bottom:i,right:a,options:o}=this,s=o.align;let l=0,c,u,d;return this.isHorizontal()?(u=Lt(s,r,a),d=n+e,c=a-r):(o.position==="left"?(u=r+e,d=Lt(s,i,n),l=lt*-.5):(u=a-e,d=Lt(s,n,i),l=lt*.5),c=i-n),{titleX:u,titleY:d,maxWidth:c,rotation:l}}draw(){const e=this.ctx,n=this.options;if(!n.display)return;const r=_t(n.font),i=r.lineHeight/2+this._padding.top,{titleX:a,titleY:o,maxWidth:s,rotation:l}=this._drawArgs(i);Nr(e,n.text,0,0,r,{color:n.color,maxWidth:s,rotation:l,textAlign:wh(n.align),textBaseline:"middle",translation:[a,o]})}}function oE(t,e){const n=new p1({ctx:t.ctx,options:e,chart:t});fe.configure(t,n,e),fe.addBox(t,n),t.titleBlock=n}var sE={id:"title",_element:p1,start(t,e,n){oE(t,n)},stop(t){const e=t.titleBlock;fe.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const r=t.titleBlock;fe.configure(t,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ca={average(t){if(!t.length)return!1;let e,n,r=new Set,i=0,a=0;for(e=0,n=t.length;eo+s)/r.size,y:i/a}},nearest(t,e){if(!t.length)return!1;let n=e.x,r=e.y,i=Number.POSITIVE_INFINITY,a,o,s;for(a=0,o=t.length;a-1?t.split(` +`):t}function lE(t,e){const{element:n,datasetIndex:r,index:i}=e,a=t.getDatasetMeta(r).controller,{label:o,value:s}=a.getLabelAndValue(i);return{chart:t,label:o,parsed:a.getParsed(i),raw:t.data.datasets[r].data[i],formattedValue:s,dataset:a.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function Im(t,e){const n=t.chart.ctx,{body:r,footer:i,title:a}=t,{boxWidth:o,boxHeight:s}=e,l=_t(e.bodyFont),c=_t(e.titleFont),u=_t(e.footerFont),d=a.length,h=i.length,f=r.length,m=Ft(e.padding);let x=m.height,v=0,g=r.reduce((w,k)=>w+k.before.length+k.lines.length+k.after.length,0);if(g+=t.beforeBody.length+t.afterBody.length,d&&(x+=d*c.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),g){const w=e.displayColors?Math.max(s,l.lineHeight):l.lineHeight;x+=f*w+(g-f)*l.lineHeight+(g-1)*e.bodySpacing}h&&(x+=e.footerMarginTop+h*u.lineHeight+(h-1)*e.footerSpacing);let y=0;const b=function(w){v=Math.max(v,n.measureText(w).width+y)};return n.save(),n.font=c.string,q(t.title,b),n.font=l.string,q(t.beforeBody.concat(t.afterBody),b),y=e.displayColors?o+2+e.boxPadding:0,q(r,w=>{q(w.before,b),q(w.lines,b),q(w.after,b)}),y=0,n.font=u.string,q(t.footer,b),n.restore(),v+=m.width,{width:v,height:x}}function cE(t,e){const{y:n,height:r}=e;return nt.height-r/2?"bottom":"center"}function uE(t,e,n,r){const{x:i,width:a}=r,o=n.caretSize+n.caretPadding;if(t==="left"&&i+a+o>e.width||t==="right"&&i-a-o<0)return!0}function dE(t,e,n,r){const{x:i,width:a}=n,{width:o,chartArea:{left:s,right:l}}=t;let c="center";return r==="center"?c=i<=(s+l)/2?"left":"right":i<=a/2?c="left":i>=o-a/2&&(c="right"),uE(c,t,e,n)&&(c="center"),c}function Fm(t,e,n){const r=n.yAlign||e.yAlign||cE(t,n);return{xAlign:n.xAlign||e.xAlign||dE(t,e,n,r),yAlign:r}}function hE(t,e){let{x:n,width:r}=t;return e==="right"?n-=r:e==="center"&&(n-=r/2),n}function fE(t,e,n){let{y:r,height:i}=t;return e==="top"?r+=n:e==="bottom"?r-=i+n:r-=i/2,r}function Bm(t,e,n,r){const{caretSize:i,caretPadding:a,cornerRadius:o}=t,{xAlign:s,yAlign:l}=n,c=i+a,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:f}=fr(o);let m=hE(e,s);const x=fE(e,l,c);return l==="center"?s==="left"?m+=c:s==="right"&&(m-=c):s==="left"?m-=Math.max(u,h)+i:s==="right"&&(m+=Math.max(d,f)+i),{x:zt(m,0,r.width-e.width),y:zt(x,0,r.height-e.height)}}function Vo(t,e,n){const r=Ft(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-r.right:t.x+r.left}function Um(t){return Re([],qe(t))}function pE(t,e,n){return Kn(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function Vm(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const m1={beforeTitle:$e,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex"u"?m1[e].call(n,r):i}class Ku extends Me{constructor(e){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=e.chart,this.options=e.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(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,a=new Jy(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=pE(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:r}=n,i=$t(r,"beforeTitle",this,e),a=$t(r,"title",this,e),o=$t(r,"afterTitle",this,e);let s=[];return s=Re(s,qe(i)),s=Re(s,qe(a)),s=Re(s,qe(o)),s}getBeforeBody(e,n){return Um($t(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:r}=n,i=[];return q(e,a=>{const o={before:[],lines:[],after:[]},s=Vm(r,a);Re(o.before,qe($t(s,"beforeLabel",this,a))),Re(o.lines,$t(s,"label",this,a)),Re(o.after,qe($t(s,"afterLabel",this,a))),i.push(o)}),i}getAfterBody(e,n){return Um($t(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:r}=n,i=$t(r,"beforeFooter",this,e),a=$t(r,"footer",this,e),o=$t(r,"afterFooter",this,e);let s=[];return s=Re(s,qe(i)),s=Re(s,qe(a)),s=Re(s,qe(o)),s}_createItems(e){const n=this._active,r=this.chart.data,i=[],a=[],o=[];let s=[],l,c;for(l=0,c=n.length;le.filter(u,d,h,r))),e.itemSort&&(s=s.sort((u,d)=>e.itemSort(u,d,r))),q(s,u=>{const d=Vm(e.callbacks,u);i.push($t(d,"labelColor",this,u)),a.push($t(d,"labelPointStyle",this,u)),o.push($t(d,"labelTextColor",this,u))}),this.labelColors=i,this.labelPointStyles=a,this.labelTextColors=o,this.dataPoints=s,s}update(e,n){const r=this.options.setContext(this.getContext()),i=this._active;let a,o=[];if(!i.length)this.opacity!==0&&(a={opacity:0});else{const s=ca[r.position].call(this,i,this._eventPosition);o=this._createItems(r),this.title=this.getTitle(o,r),this.beforeBody=this.getBeforeBody(o,r),this.body=this.getBody(o,r),this.afterBody=this.getAfterBody(o,r),this.footer=this.getFooter(o,r);const l=this._size=Im(this,r),c=Object.assign({},s,l),u=Fm(this.chart,r,c),d=Bm(r,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,a={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:s.x,caretY:s.y}}this._tooltipItems=o,this.$context=void 0,a&&this._resolveAnimations().update(this,a),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,r,i){const a=this.getCaretPosition(e,r,i);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)}getCaretPosition(e,n,r){const{xAlign:i,yAlign:a}=this,{caretSize:o,cornerRadius:s}=r,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=fr(s),{x:h,y:f}=e,{width:m,height:x}=n;let v,g,y,b,w,k;return a==="center"?(w=f+x/2,i==="left"?(v=h,g=v-o,b=w+o,k=w-o):(v=h+m,g=v+o,b=w-o,k=w+o),y=v):(i==="left"?g=h+Math.max(l,u)+o:i==="right"?g=h+m-Math.max(c,d)-o:g=this.caretX,a==="top"?(b=f,w=b-o,v=g-o,y=g+o):(b=f+x,w=b+o,v=g+o,y=g-o),k=b),{x1:v,x2:g,x3:y,y1:b,y2:w,y3:k}}drawTitle(e,n,r){const i=this.title,a=i.length;let o,s,l;if(a){const c=ni(r.rtl,this.x,this.width);for(e.x=Vo(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",o=_t(r.titleFont),s=r.titleSpacing,n.fillStyle=r.titleColor,n.font=o.string,l=0;ly!==0)?(e.beginPath(),e.fillStyle=a.multiKeyBackground,Ba(e,{x,y:m,w:c,h:l,radius:g}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),Ba(e,{x:v,y:m+1,w:c-2,h:l-2,radius:g}),e.fill()):(e.fillStyle=a.multiKeyBackground,e.fillRect(x,m,c,l),e.strokeRect(x,m,c,l),e.fillStyle=o.backgroundColor,e.fillRect(v,m+1,c-2,l-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,n,r){const{body:i}=this,{bodySpacing:a,bodyAlign:o,displayColors:s,boxHeight:l,boxWidth:c,boxPadding:u}=r,d=_t(r.bodyFont);let h=d.lineHeight,f=0;const m=ni(r.rtl,this.x,this.width),x=function(E){n.fillText(E,m.x(e.x+f),e.y+h/2),e.y+=h+a},v=m.textAlign(o);let g,y,b,w,k,_,C;for(n.textAlign=o,n.textBaseline="middle",n.font=d.string,e.x=Vo(this,v,r),n.fillStyle=r.bodyColor,q(this.beforeBody,x),f=s&&v!=="right"?o==="center"?c/2+u:c+2+u:0,w=0,_=i.length;w<_;++w){for(g=i[w],y=this.labelTextColors[w],n.fillStyle=y,q(g.before,x),b=g.lines,s&&b.length&&(this._drawColorBox(n,e,w,m,r),h=Math.max(d.lineHeight,l)),k=0,C=b.length;k0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,r=this.$animations,i=r&&r.x,a=r&&r.y;if(i||a){const o=ca[e.position].call(this,this._active,this._eventPosition);if(!o)return;const s=this._size=Im(this,e),l=Object.assign({},o,this._size),c=Fm(n,e,l),u=Bm(e,l,c,n);(i._to!==u.x||a._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=s.width,this.height=s.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},a={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const o=Ft(n.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&s&&(e.save(),e.globalAlpha=r,this.drawBackground(a,e,i,n),Xy(e,n.textDirection),a.y+=o.top,this.drawTitle(a,e,n),this.drawBody(a,e,n),this.drawFooter(a,e,n),Qy(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const r=this._active,i=e.map(({datasetIndex:s,index:l})=>{const c=this.chart.getDatasetMeta(s);if(!c)throw new Error("Cannot find a dataset at index "+s);return{datasetIndex:s,element:c.data[l],index:l}}),a=!$s(r,i),o=this._positionChanged(i,n);(a||o)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,a=this._active||[],o=this._getActiveElements(e,a,n,r),s=this._positionChanged(o,e),l=n||!$s(o,a)||s;return l&&(this._active=o,(i.enabled||i.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),l}_getActiveElements(e,n,r,i){const a=this.options;if(e.type==="mouseout")return[];if(!i)return n.filter(s=>this.chart.data.datasets[s.datasetIndex]&&this.chart.getDatasetMeta(s.datasetIndex).controller.getParsed(s.index)!==void 0);const o=this.chart.getElementsAtEventForMode(e,a.mode,a,r);return a.reverse&&o.reverse(),o}_positionChanged(e,n){const{caretX:r,caretY:i,options:a}=this,o=ca[a.position].call(this,e,n);return o!==!1&&(r!==o.x||i!==o.y)}}R(Ku,"positioners",ca);var mE={id:"tooltip",_element:Ku,positioners:ca,afterInit(t,e,n){n&&(t.tooltip=new Ku({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(t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)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:m1},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const gE=(t,e,n,r)=>(typeof e=="string"?(n=t.push(e)-1,r.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function bE(t,e,n,r){const i=t.indexOf(e);if(i===-1)return gE(t,e,n,r);const a=t.lastIndexOf(e);return i!==a?n:i}const yE=(t,e)=>t===null?null:zt(Math.round(t),0,e);function g1(t){const e=this.getLabels();return t>=0&&tn.length-1?null:this.getPixelForValue(n[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}R(Xu,"id","category"),R(Xu,"defaults",{ticks:{callback:g1}});function xE(t,e){const n=[],{bounds:r,step:i,min:a,max:o,precision:s,count:l,maxTicks:c,maxDigits:u,includeBounds:d}=t,h=i||1,f=c-1,{min:m,max:x}=e,v=!K(a),g=!K(o),y=!K(l),b=(x-m)/(u+1);let w=$p((x-m)/f/h)*h,k,_,C,E;if(w<1e-14&&!v&&!g)return[{value:m},{value:x}];E=Math.ceil(x/w)-Math.floor(m/w),E>f&&(w=$p(E*w/f/h)*h),K(s)||(k=Math.pow(10,s),w=Math.ceil(w*k)/k),r==="ticks"?(_=Math.floor(m/w)*w,C=Math.ceil(x/w)*w):(_=m,C=x),v&&g&&i&&H5((o-a)/i,w/1e3)?(E=Math.round(Math.min((o-a)/w,c)),w=(o-a)/E,_=a,C=o):y?(_=v?a:_,C=g?o:C,E=l-1,w=(C-_)/E):(E=(C-_)/w,oa(E,Math.round(E),w/1e3)?E=Math.round(E):E=Math.ceil(E));const A=Math.max(Yp(w),Yp(_));k=Math.pow(10,K(s)?A:s),_=Math.round(_*k)/k,C=Math.round(C*k)/k;let M=0;for(v&&(d&&_!==a?(n.push({value:a}),_o)break;n.push({value:z})}return g&&d&&C!==o?n.length&&oa(n[n.length-1].value,o,Hm(o,b,t))?n[n.length-1].value=o:n.push({value:o}):(!g||C===o)&&n.push({value:C}),n}function Hm(t,e,{horizontal:n,minRotation:r}){const i=Fe(r),a=(n?Math.sin(i):Math.cos(i))||.001,o=.75*e*(""+t).length;return Math.min(e/a,o)}class Js extends jr{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,n){return K(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:a}=this;const o=l=>i=n?i:l,s=l=>a=r?a:l;if(e){const l=Ve(i),c=Ve(a);l<0&&c<0?s(0):l>0&&c>0&&o(0)}if(i===a){let l=a===0?1:Math.abs(a*.05);s(a+l),e||o(i-l)}this.min=i,this.max=a}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=e,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,n=e.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:e.bounds,min:e.min,max:e.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},a=this._range||this,o=xE(i,a);return e.bounds==="ticks"&&Ly(o,this,"value"),e.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const e=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&e.length){const i=(r-n)/Math.max(e.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(e){return Nl(e,this.chart.options.locale,this.options.ticks.format)}}class Qu extends Js{determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=Et(e)?e:0,this.max=Et(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,r=Fe(this.options.ticks.minRotation),i=(e?Math.sin(r):Math.cos(r))||.001,a=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,a.lineHeight/i))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}R(Qu,"id","linear"),R(Qu,"defaults",{ticks:{callback:Pl.formatters.numeric}});const Va=t=>Math.floor(_n(t)),Jn=(t,e)=>Math.pow(10,Va(t)+e);function Wm(t){return t/Math.pow(10,Va(t))===1}function $m(t,e,n){const r=Math.pow(10,n),i=Math.floor(t/r);return Math.ceil(e/r)-i}function vE(t,e){const n=e-t;let r=Va(n);for(;$m(t,e,r)>10;)r++;for(;$m(t,e,r)<10;)r--;return Math.min(r,Va(t))}function wE(t,{min:e,max:n}){e=ee(t.min,e);const r=[],i=Va(e);let a=vE(e,n),o=a<0?Math.pow(10,Math.abs(a)):1;const s=Math.pow(10,a),l=i>a?Math.pow(10,i):0,c=Math.round((e-l)*o)/o,u=Math.floor((e-l)/s/10)*s*10;let d=Math.floor((c-u)/Math.pow(10,a)),h=ee(t.min,Math.round((l+u+d*Math.pow(10,a))*o)/o);for(;h=10?d=d<15?15:20:d++,d>=20&&(a++,d=2,o=a>=0?1:o),h=Math.round((l+u+d*Math.pow(10,a))*o)/o;const f=ee(t.max,h);return r.push({value:f,major:Wm(f),significand:d}),r}class Ym extends jr{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,n){const r=Js.prototype.parse.apply(this,[e,n]);if(r===0){this._zero=!0;return}return Et(r)&&r>0?r:null}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=Et(e)?Math.max(0,e):null,this.max=Et(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Et(this._userMin)&&(this.min=e===Jn(this.min,0)?Jn(this.min,-1):Jn(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let r=this.min,i=this.max;const a=s=>r=e?r:s,o=s=>i=n?i:s;r===i&&(r<=0?(a(1),o(10)):(a(Jn(r,-1)),o(Jn(i,1)))),r<=0&&a(Jn(i,-1)),i<=0&&o(Jn(r,1)),this.min=r,this.max=i}buildTicks(){const e=this.options,n={min:this._userMin,max:this._userMax},r=wE(n,this);return e.bounds==="ticks"&&Ly(r,this,"value"),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(e){return e===void 0?"0":Nl(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=_n(e),this._valueRange=_n(this.max)-_n(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(_n(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const n=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+n*this._valueRange)}}R(Ym,"id","logarithmic"),R(Ym,"defaults",{ticks:{callback:Pl.formatters.logarithmic,major:{enabled:!0}}});function Gu(t){const e=t.ticks;if(e.display&&t.display){const n=Ft(e.backdropPadding);return U(e.font&&e.font.size,mt.font.size)+n.height}return 0}function kE(t,e,n){return n=ut(n)?n:[n],{w:l4(t,e.string,n),h:n.length*e.lineHeight}}function qm(t,e,n,r,i){return t===r||t===i?{start:e-n/2,end:e+n/2}:ti?{start:e-n,end:e}:{start:e,end:e+n}}function _E(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),r=[],i=[],a=t._pointLabels.length,o=t.options.pointLabels,s=o.centerPointLabels?lt/a:0;for(let l=0;le.r&&(s=(r.end-e.r)/a,t.r=Math.max(t.r,e.r+s)),i.starte.b&&(l=(i.end-e.b)/o,t.b=Math.max(t.b,e.b+l))}function CE(t,e,n){const r=t.drawingArea,{extra:i,additionalAngle:a,padding:o,size:s}=n,l=t.getPointPosition(e,r+i+o,a),c=Math.round(xh(ke(l.angle+bt))),u=jE(l.y,s.h,c),d=PE(c),h=ME(l.x,s.w,d);return{visible:!0,x:l.x,y:u,textAlign:d,left:h,top:u,right:h+s.w,bottom:u+s.h}}function EE(t,e){if(!e)return!0;const{left:n,top:r,right:i,bottom:a}=t;return!(Ze({x:n,y:r},e)||Ze({x:n,y:a},e)||Ze({x:i,y:r},e)||Ze({x:i,y:a},e))}function NE(t,e,n){const r=[],i=t._pointLabels.length,a=t.options,{centerPointLabels:o,display:s}=a.pointLabels,l={extra:Gu(a)/2,additionalAngle:o?lt/i:0};let c;for(let u=0;u270||n<90)&&(t-=e),t}function OE(t,e,n){const{left:r,top:i,right:a,bottom:o}=n,{backdropColor:s}=e;if(!K(s)){const l=fr(e.borderRadius),c=Ft(e.backdropPadding);t.fillStyle=s;const u=r-c.left,d=i-c.top,h=a-r+c.width,f=o-i+c.height;Object.values(l).some(m=>m!==0)?(t.beginPath(),Ba(t,{x:u,y:d,w:h,h:f,radius:l}),t.fill()):t.fillRect(u,d,h,f)}}function TE(t,e){const{ctx:n,options:{pointLabels:r}}=t;for(let i=e-1;i>=0;i--){const a=t._pointLabelItems[i];if(!a.visible)continue;const o=r.setContext(t.getPointLabelContext(i));OE(n,o,a);const s=_t(o.font),{x:l,y:c,textAlign:u}=a;Nr(n,t._pointLabels[i],l,c+s.lineHeight/2,s,{color:o.color,textAlign:u,textBaseline:"middle"})}}function b1(t,e,n,r){const{ctx:i}=t;if(n)i.arc(t.xCenter,t.yCenter,e,0,st);else{let a=t.getPointPosition(0,e);i.moveTo(a.x,a.y);for(let o=1;o{const i=J(this.options.pointLabels.callback,[n,r],this);return i||i===0?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const e=this.options;e.display&&e.pointLabels.display?_E(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,n,r,i){this.xCenter+=Math.floor((e-n)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,n,r,i))}getIndexAngle(e){const n=st/(this._pointLabels.length||1),r=this.options.startAngle||0;return ke(e*n+Fe(r))}getDistanceFromCenterForValue(e){if(K(e))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*n:(e-this.min)*n}getValueForDistanceFromCenter(e){if(K(e))return NaN;const n=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(e){const n=this._pointLabels||[];if(e>=0&&e{if(d!==0||d===0&&this.min<0){l=this.getDistanceFromCenterForValue(u.value);const h=this.getContext(d),f=i.setContext(h),m=a.setContext(h);RE(this,f,l,o,m)}}),r.display){for(e.save(),s=o-1;s>=0;s--){const u=r.setContext(this.getPointLabelContext(s)),{color:d,lineWidth:h}=u;!h||!d||(e.lineWidth=h,e.strokeStyle=d,e.setLineDash(u.borderDash),e.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(s,l),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(c.x,c.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let a,o;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(i),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((s,l)=>{if(l===0&&this.min>=0&&!n.reverse)return;const c=r.setContext(this.getContext(l)),u=_t(c.font);if(a=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){e.font=u.string,o=e.measureText(s.label).width,e.fillStyle=c.backdropColor;const d=Ft(c.backdropPadding);e.fillRect(-o/2-d.left,-a-u.size/2-d.top,o+d.width,u.size+d.height)}Nr(e,s.label,0,-a,u,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),e.restore()}drawTitle(){}}R(Ho,"id","radialLinear"),R(Ho,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Pl.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),R(Ho,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),R(Ho,"descriptors",{angleLines:{_fallback:"grid"}});const Ol={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}},qt=Object.keys(Ol);function Km(t,e){return t-e}function Xm(t,e){if(K(e))return null;const n=t._adapter,{parser:r,round:i,isoWeekday:a}=t._parseOpts;let o=e;return typeof r=="function"&&(o=r(o)),Et(o)||(o=typeof r=="string"?n.parse(o,r):n.parse(o)),o===null?null:(i&&(o=i==="week"&&(Ia(a)||a===!0)?n.startOf(o,"isoWeek",a):n.startOf(o,i)),+o)}function Qm(t,e,n,r){const i=qt.length;for(let a=qt.indexOf(t);a=qt.indexOf(n);a--){const o=qt[a];if(Ol[o].common&&t._adapter.diff(i,r,o)>=e-1)return o}return qt[n?qt.indexOf(n):0]}function DE(t){for(let e=qt.indexOf(t)+1,n=qt.length;e=e?n[r]:n[i];t[a]=!0}}function zE(t,e,n,r){const i=t._adapter,a=+i.startOf(e[0].value,r),o=e[e.length-1].value;let s,l;for(s=a;s<=o;s=+i.add(s,1,r))l=n[s],l>=0&&(e[l].major=!0);return e}function Jm(t,e,n){const r=[],i={},a=e.length;let o,s;for(o=0;o+e.value))}initOffsets(e=[]){let n=0,r=0,i,a;this.options.offset&&e.length&&(i=this.getDecimalForValue(e[0]),e.length===1?n=1-i:n=(this.getDecimalForValue(e[1])-i)/2,a=this.getDecimalForValue(e[e.length-1]),e.length===1?r=a:r=(a-this.getDecimalForValue(e[e.length-2]))/2);const o=e.length<3?.5:.25;n=zt(n,0,o),r=zt(r,0,o),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const e=this._adapter,n=this.min,r=this.max,i=this.options,a=i.time,o=a.unit||Qm(a.minUnit,n,r,this._getLabelCapacity(n)),s=U(i.ticks.stepSize,1),l=o==="week"?a.isoWeekday:!1,c=Ia(l)||l===!0,u={};let d=n,h,f;if(c&&(d=+e.startOf(d,"isoWeek",l)),d=+e.startOf(d,c?"day":o),e.diff(r,n,o)>1e5*s)throw new Error(n+" and "+r+" are too far apart with stepSize of "+s+" "+o);const m=i.ticks.source==="data"&&this.getDataTimestamps();for(h=d,f=0;h+x)}getLabelForValue(e){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(e,r.tooltipFormat):n.format(e,r.displayFormats.datetime)}format(e,n){const r=this.options.time.displayFormats,i=this._unit,a=n||r[i];return this._adapter.format(e,a)}_tickFormatFunction(e,n,r,i){const a=this.options,o=a.ticks.callback;if(o)return J(o,[e,n,r],this);const s=a.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&s[l],d=c&&s[c],h=r[n],f=c&&d&&h&&h.major;return this._adapter.format(e,i||(f?d:u))}generateTickLabels(e){let n,r,i;for(n=0,r=e.length;n0?s:1}getDataTimestamps(){let e=this._cache.data||[],n,r;if(e.length)return e;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n=t[r].pos&&e<=t[i].pos&&({lo:r,hi:i}=cr(t,"pos",e)),{pos:a,time:s}=t[r],{pos:o,time:l}=t[i]):(e>=t[r].time&&e<=t[i].time&&({lo:r,hi:i}=cr(t,"time",e)),{time:a,pos:s}=t[r],{time:o,pos:l}=t[i]);const c=o-a;return c?s+(l-s)*(e-a)/c:s}class Zm extends Zs{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=Wo(n,this.min),this._tableRange=Wo(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:r}=this,i=[],a=[];let o,s,l,c,u;for(o=0,s=e.length;o=n&&c<=r&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(o=0,s=i.length;oi-a)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?e=this.normalize(n.concat(r)):e=n.length?n:r,e=this._cache.all=e,e}getDecimalForValue(e){return(Wo(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return Wo(this._table,r*this._tableRange+this._minPos,!0)}}R(Zm,"id","timeseries"),R(Zm,"defaults",Zs.defaults);const y1="label";function tg(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function IE(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function x1(t,e){t.labels=e}function v1(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:y1;const r=[];t.datasets=e.map(i=>{const a=t.datasets.find(o=>o[n]===i[n]);return!a||!i.data||r.includes(a)?{...i}:(r.push(a),Object.assign(a,i),a)})}function FE(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:y1;const n={labels:[],datasets:[]};return x1(n,t.labels),v1(n,t.datasets,e),n}function BE(t,e){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:a,type:o,data:s,options:l,plugins:c=[],fallbackContent:u,updateMode:d,...h}=t,f=N.useRef(null),m=N.useRef(),x=()=>{f.current&&(m.current=new jl(f.current,{type:o,data:FE(s,a),options:l&&{...l},plugins:c}),tg(e,m.current))},v=()=>{tg(e,null),m.current&&(m.current.destroy(),m.current=null)};return N.useEffect(()=>{!i&&m.current&&l&&IE(m.current,l)},[i,l]),N.useEffect(()=>{!i&&m.current&&x1(m.current.config.data,s.labels)},[i,s.labels]),N.useEffect(()=>{!i&&m.current&&s.datasets&&v1(m.current.config.data,s.datasets,a)},[i,s.datasets]),N.useEffect(()=>{m.current&&(i?(v(),setTimeout(x)):m.current.update(d))},[i,l,s.labels,s.datasets,d]),N.useEffect(()=>{m.current&&(v(),setTimeout(x))},[o]),N.useEffect(()=>(x(),()=>v()),[]),pi.createElement("canvas",Object.assign({ref:f,role:"img",height:n,width:r},h),u)}const UE=N.forwardRef(BE);function Th(t,e){return jl.register(e),N.forwardRef((n,r)=>pi.createElement(UE,Object.assign({},n,{ref:r,type:t})))}const VE=Th("line",ls),HE=Th("bar",ss),WE=Th("doughnut",Wi),$E=()=>{const t={labels:["January","February","March","April","May","June"],datasets:[{label:"Messages",data:[65,59,80,81,56,55],fill:!1,backgroundColor:"rgba(75,192,192,0.2)",borderColor:"rgba(75,192,192,1)"}]},e={labels:["User","Bot"],datasets:[{label:"Messages",data:[300,450],backgroundColor:["#36A2EB","#FF6384"]}]},n={labels:["<1s","1-2s","2-3s",">3s"],datasets:[{label:"Response Time",data:[50,100,75,25],backgroundColor:["rgba(255, 99, 132, 0.2)","rgba(54, 162, 235, 0.2)","rgba(255, 206, 86, 0.2)","rgba(75, 192, 192, 0.2)"],borderColor:["rgba(255, 99, 132, 1)","rgba(54, 162, 235, 1)","rgba(255, 206, 86, 1)","rgba(75, 192, 192, 1)"],borderWidth:1}]};return p.jsxs("div",{className:"flex",children:[p.jsx(ph,{}),p.jsx("div",{className:"ml-64 flex-1 p-6 bg-gray-100",children:p.jsxs("div",{className:"p-4 bg-white rounded-lg shadow",children:[p.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Analytics"}),p.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[p.jsxs("div",{className:"p-4 bg-gray-100 rounded-lg",children:[p.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Messages Over Time"}),p.jsx(VE,{data:t})]}),p.jsxs("div",{className:"p-4 bg-gray-100 rounded-lg",children:[p.jsx("h3",{className:"text-xl font-semibold mb-2",children:"User vs Bot Messages"}),p.jsx(WE,{data:e})]}),p.jsxs("div",{className:"p-4 bg-gray-100 rounded-lg",children:[p.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Response Time Distribution"}),p.jsx(HE,{data:n})]})]})]})})]})},YE=()=>p.jsxs("div",{className:"flex",children:[p.jsx(ph,{}),p.jsx("div",{className:"ml-64 flex-1 p-6 bg-gray-100",children:p.jsxs("div",{className:"p-4 bg-white rounded-lg shadow",children:[p.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Selected MDL List"}),p.jsxs("div",{className:"space-y-4",children:[p.jsx("div",{className:"p-4 bg-blue-50 rounded-lg",children:p.jsx("h3",{className:"font-semibold",children:"Project Details"})}),p.jsx("div",{className:"p-4 bg-blue-50 rounded-lg",children:p.jsx("h3",{className:"font-semibold",children:"SO Details"})}),p.jsxs("div",{className:"p-4 bg-blue-50 rounded-lg",children:[p.jsx("h3",{className:"font-semibold",children:"Master Document List"}),p.jsxs("table",{className:"min-w-full bg-white rounded-lg",children:[p.jsx("thead",{className:"bg-gray-200",children:p.jsxs("tr",{children:[p.jsx("th",{className:"py-2 px-4",children:"Document Title"}),p.jsx("th",{className:"py-2 px-4",children:"Planned Date"}),p.jsx("th",{className:"py-2 px-4",children:"Doc. No"}),p.jsx("th",{className:"py-2 px-4",children:"Latest Rev No"}),p.jsx("th",{className:"py-2 px-4",children:"Submission Dt"}),p.jsx("th",{className:"py-2 px-4",children:"Commented Dt"}),p.jsx("th",{className:"py-2 px-4",children:"Approved Dt"}),p.jsx("th",{className:"py-2 px-4",children:"Approval Status"}),p.jsx("th",{className:"py-2 px-4",children:"Options For Enquiry"})]})}),p.jsxs("tbody",{children:[p.jsxs("tr",{children:[p.jsx("td",{className:"border px-4 py-2",children:"Strainer Drawing"}),p.jsx("td",{className:"border px-4 py-2",children:"06/17/2017"}),p.jsx("td",{className:"border px-4 py-2",children:"15201"}),p.jsx("td",{className:"border px-4 py-2",children:"R1"}),p.jsx("td",{className:"border px-4 py-2",children:"05/07/2017"}),p.jsx("td",{className:"border px-4 py-2",children:"05/07/2017"}),p.jsx("td",{className:"border px-4 py-2",children:"05/07/2017"}),p.jsx("td",{className:"border px-4 py-2",children:"APPROVED"}),p.jsx("td",{className:"border px-4 py-2",children:p.jsx("button",{className:"bg-blue-500 text-white px-2 py-1 rounded",children:"Options"})})]}),p.jsxs("tr",{children:[p.jsx("td",{className:"border px-4 py-2",children:"Strainer QCP"}),p.jsx("td",{className:"border px-4 py-2",children:"08/20/2017"}),p.jsx("td",{className:"border px-4 py-2",children:"EC5024"}),p.jsx("td",{className:"border px-4 py-2",children:"R4"}),p.jsx("td",{className:"border px-4 py-2",children:"05/07/2017"}),p.jsx("td",{className:"border px-4 py-2",children:"05/07/2017"}),p.jsx("td",{className:"border px-4 py-2",children:"05/07/2017"}),p.jsx("td",{className:"border px-4 py-2",children:"APPROVED"}),p.jsx("td",{className:"border px-4 py-2",children:p.jsx("button",{className:"bg-blue-500 text-white px-2 py-1 rounded",children:"Options"})})]}),p.jsxs("tr",{children:[p.jsx("td",{className:"border px-4 py-2",children:"Motor GA Drawing"}),p.jsx("td",{className:"border px-4 py-2",children:"08/30/2017"}),p.jsx("td",{className:"border px-4 py-2",children:"EC4121"}),p.jsx("td",{className:"border px-4 py-2",children:"R2"}),p.jsx("td",{className:"border px-4 py-2",children:"05/07/2017"}),p.jsx("td",{className:"border px-4 py-2",children:"05/07/2017"}),p.jsx("td",{className:"border px-4 py-2",children:"05/07/2017"}),p.jsx("td",{className:"border px-4 py-2",children:"APPROVED"}),p.jsx("td",{className:"border px-4 py-2",children:p.jsx("button",{className:"bg-blue-500 text-white px-2 py-1 rounded",children:"Options"})})]})]})]})]}),p.jsxs("div",{className:"p-4 bg-blue-50 rounded-lg",children:[p.jsx("h3",{className:"font-semibold",children:"Revision History: Strainer Drawing"}),p.jsxs("table",{className:"min-w-full bg-white rounded-lg",children:[p.jsx("thead",{className:"bg-gray-200",children:p.jsxs("tr",{children:[p.jsx("th",{className:"py-2 px-4",children:"SR. No"}),p.jsx("th",{className:"py-2 px-4",children:"Document Title"}),p.jsx("th",{className:"py-2 px-4",children:"Doc. No"}),p.jsx("th",{className:"py-2 px-4",children:"Latest Rev No"}),p.jsx("th",{className:"py-2 px-4",children:"Submission Dt"}),p.jsx("th",{className:"py-2 px-4",children:"Commented Dt"}),p.jsx("th",{className:"py-2 px-4",children:"Approved Dt"}),p.jsx("th",{className:"py-2 px-4",children:"Approval Status"}),p.jsx("th",{className:"py-2 px-4",children:"Options For Enquiry"})]})}),p.jsx("tbody",{children:p.jsxs("tr",{children:[p.jsx("td",{className:"border px-4 py-2",children:"1"}),p.jsx("td",{className:"border px-4 py-2",children:"Strainer Drawing"}),p.jsx("td",{className:"border px-4 py-2",children:"15201"}),p.jsx("td",{className:"border px-4 py-2",children:"R0"}),p.jsx("td",{className:"border px-4 py-2",children:"02/07/2017"}),p.jsx("td",{className:"border px-4 py-2",children:"02/07/2017"}),p.jsx("td",{className:"border px-4 py-2",children:"02/07/2017"}),p.jsx("td",{className:"border px-4 py-2",children:"Enquiry"}),p.jsx("td",{className:"border px-4 py-2",children:p.jsx("button",{className:"bg-blue-500 text-white px-2 py-1 rounded",children:"Options"})})]})})]})]})]})]})})]});function qE(){const[t,e]=N.useState(localStorage.getItem("token"));return p.jsx($2,{children:p.jsx("div",{className:"min-h-screen flex flex-col",children:p.jsxs(I2,{children:[p.jsx(te,{path:"/",element:p.jsx(Sb,{to:"/ocrdashboard",replace:!0})}),p.jsx(te,{path:"/text-to-speech",element:p.jsx(We,{token:t,children:p.jsx(Wk,{})})}),p.jsx(te,{path:"/login",element:p.jsx(Yk,{setToken:e})}),p.jsx(te,{path:"/logout",element:p.jsx(We,{token:t,children:p.jsx(r_,{setToken:e})})}),p.jsx(te,{path:"/register",element:p.jsx(Nk,{})}),p.jsx(te,{path:"/ocrdashboard",element:p.jsx(We,{token:t,children:p.jsx(t_,{})})}),p.jsx(te,{path:"/ocrtemplate",element:p.jsx(We,{token:t,children:p.jsx(n_,{})})}),p.jsx(te,{path:"/erpcredential",element:p.jsx(We,{token:t,children:p.jsx(e_,{})})}),p.jsx(te,{path:"/chat",element:p.jsx(We,{token:t,children:p.jsx(u5,{})})}),p.jsx(te,{path:"/analytics",element:p.jsx(We,{token:t,children:p.jsx($E,{})})}),p.jsx(te,{path:"/models",element:p.jsx(We,{token:t,children:p.jsx(YE,{})})}),p.jsx(te,{path:"/config",element:p.jsx(We,{token:t,children:p.jsx(Vk,{})})})]})})})}jl.register(Xu,Qu,ds,qi,hs,Yi,sE,mE,aE);Ec.createRoot(document.getElementById("root")).render(p.jsx(pi.StrictMode,{children:p.jsx(qE,{})}));